.backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-end;
}

.sheet {
  width: 100%;
  max-height: 70vh;
  display: flex;
  flex-direction: column;
  background: rgba(37, 37, 38, 0.92);
  backdrop-filter: blur(12px) saturate(1.6);
  -webkit-backdrop-filter: blur(12px) saturate(1.6);
  border-top: 1px solid var(--border);
  border-radius: 12px 12px 0 0;
  padding-bottom: 8px;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 8px;
  flex-shrink: 0;
}

.title {
  font-size: 15px;
  font-weight: 600;
  color: var(--fg-primary);
}

.badge {
  font-size: 11px;
  color: var(--fg-muted);
  margin-left: 6px;
}

.closeBtn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  background: none;
  color: var(--fg-muted);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  padding: 0;
}

.list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 12px;
}

.empty {
  padding: 24px 16px;
  text-align: center;
  font-size: 13px;
  color: var(--fg-muted);
}

.item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.itemUsed {
  opacity: 0.5;
}

.itemBody {
  flex: 1;
  min-width: 0;
}

.itemText {
  font-size: 13px;
  color: var(--fg-primary);
  font-family: var(--font-mono);
  white-space: pre-wrap;
  overflow-wrap: break-word;
  line-height: 1.4;
}

.itemMeta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
}

.itemDate {
  font-size: 11px;
  color: var(--fg-muted);
}

.itemProject {
  font-size: 10px;
  padding: 1px 5px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  color: var(--fg-muted);
}

.itemActions {
  display: flex;
  gap: 2px;
  flex-shrink: 0;
}

.actionBtn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: none;
  background: none;
  color: var(--fg-muted);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  padding: 0;
  border-radius: var(--radius-sm);
  font-size: 14px;
}

.actionBtn:active {
  background: rgba(255, 255, 255, 0.06);
}

.sendBtn {
  color: var(--accent);
}

.deleteBtn {
  color: var(--accent-red, #f44747);
}

.inputArea {
  display: flex;
  gap: 8px;
  padding: 8px 12px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.input {
  flex: 1;
  min-height: 36px;
  max-height: 80px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-tertiary);
  color: var(--fg-primary);
  font-size: 13px;
  font-family: var(--font-mono);
  resize: none;
  outline: none;
}

.input:focus {
  border-color: var(--accent);
}

.submitBtn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: var(--radius-md);
  background: var(--accent);
  color: var(--bg-primary);
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
  align-self: flex-end;
}

.submitBtn:disabled {
  opacity: 0.4;
}

.submitBtn:active:not(:disabled) {
  opacity: 0.8;
}
