/* ═══════════════════════════════════════════
   HettsAI Legal — Taskpane Theme
   White · Magenta · Sleek · Professional
   ═══════════════════════════════════════════ */

:root {
  --bg:          radial-gradient(circle at top left, rgba(59, 130, 246, 0.10), transparent 34%), linear-gradient(180deg, #f8fbff 0%, #f5f7fb 100%);
  --surface:     #ffffff;
  --surface2:    #f8fafc;
  --border:      #e2e8f0;
  --border-soft: #ebeff5;
  --mg:          #d946ef;
  --mg-bright:   #c026d3;
  --mg-dim:      rgba(217, 70, 239, 0.1);
  --mg-glow:     rgba(217, 70, 239, 0.2);
  --text:        #1f2937;
  --text-mid:    #475569;
  --text-dim:    #64748b;
  --radius:      8px;
  --radius-sm:   5px;
}

:root[data-theme='dark'],
html[data-theme='dark'],
body[data-theme='dark'] {
  --bg:          radial-gradient(circle at top left, rgba(217, 70, 239, 0.08), transparent 34%), linear-gradient(180deg, #0b1220 0%, #0a1020 100%);
  --surface:     #111827;
  --surface2:    #0f172a;
  --border:      #243143;
  --border-soft: #1e293b;
  --mg:          #d946ef;
  --mg-bright:   #f0abfc;
  --mg-dim:      rgba(217, 70, 239, 0.12);
  --mg-glow:     rgba(217, 70, 239, 0.26);
  --text:        #e5e7eb;
  --text-mid:    #cbd5e1;
  --text-dim:    #94a3b8;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 0;
  font-size: 13px;
}

/* ── HEADER ──────────────────────────────── */
header {
  flex: 0 0 auto;
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
  padding: 14px 16px 12px;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 8px;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  color: #fff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.32);
}

.brand-mark img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

header h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
}

header h2 span {
  color: var(--mg);
}

.status-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 14px;
}

.theme-toggle {
  padding: 4px 9px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface2);
  color: var(--text-mid);
}

.theme-toggle:hover {
  border-color: var(--mg);
  color: var(--mg);
  background: var(--surface);
}

.status {
  font-size: 11px;
  color: var(--text-dim);
  min-height: 14px;
  letter-spacing: 0.01em;
}

/* ── SPINNER ─────────────────────────────── */
.spinner {
  display: inline-block;
  width: 10px;
  height: 10px;
  border: 2px solid var(--border);
  border-top-color: var(--mg);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex: 0 0 auto;
}
.spinner.hidden { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── VISIBILITY ──────────────────────────── */
.hidden { display: none !important; }
#signedOut, #signedIn { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; }
#signedIn.hidden, #signedOut.hidden { display: none; }

/* ── SIGNED-OUT PANEL ────────────────────── */
#signedOut {
  justify-content: center;
  align-items: center;
  padding: 32px 20px;
  gap: 16px;
  text-align: center;
}

#signedOut p {
  color: var(--text-mid);
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
  max-width: 220px;
}

/* ── MAIN CONTENT AREA ───────────────────── */
#signedIn {
  padding: 0 0 12px 0;
  overflow: hidden;
}

/* ── USER ROW ────────────────────────────── */
.user-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px;
  border-bottom: 1px solid var(--border-soft);
  background: var(--surface2);
}

#userEmail {
  font-size: 11px;
  color: var(--text-dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 160px;
}

/* ── BUTTONS ─────────────────────────────── */
button {
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface2);
  color: var(--text-mid);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s;
  letter-spacing: 0.01em;
}
button:not(.primary):not(.link):hover {
  background: linear-gradient(135deg, #1f3556 0%, #2b3b8f 100%);
  color: #ffffff;
  border-color: #2f4f86;
}

button.primary {
  background: linear-gradient(135deg, #345aa8 0%, #4f46e5 52%, #6d28d9 100%);
  color: #fff;
  border-color: rgba(148, 163, 184, 0.32);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.42), inset 0 1px 0 rgba(191, 219, 254, 0.2);
}

html:not([data-theme='dark']) button.primary,
body:not([data-theme='dark']) button.primary,
:root:not([data-theme='dark']) button.primary {
  background: linear-gradient(135deg, #0a2540 0%, #3730a3 100%);
  border-color: rgba(55, 48, 163, 0.25);
  box-shadow: 0 10px 22px rgba(30, 64, 175, 0.22);
}

html:not([data-theme='dark']) button.primary:hover,
body:not([data-theme='dark']) button.primary:hover,
:root:not([data-theme='dark']) button.primary:hover {
  background: linear-gradient(135deg, #12345d 0%, #4338ca 100%);
  box-shadow: 0 14px 28px rgba(30, 64, 175, 0.28);
}
button.primary:hover {
  background: linear-gradient(135deg, #3b6ac3 0%, #5b51ef 52%, #7c3aed 100%);
  border-color: rgba(191, 219, 254, 0.35);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.52), inset 0 1px 0 rgba(191, 219, 254, 0.28);
}

button.link {
  border: none;
  background: transparent;
  color: var(--mg);
  padding: 0;
  margin: 0;
  font-weight: 500;
  font-size: 11px;
  box-shadow: none;
}
button.link:hover {
  color: var(--mg-bright);
  background: transparent;
  border: none;
}

button.loading,
button[disabled] {
  opacity: 0.38;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
}

.button-row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.button-row button { flex: 1; margin-top: 0; }

/* ── TABS ────────────────────────────────── */
.tabs {
  display: flex;
  flex-wrap: wrap;
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
  padding: 0 8px;
  margin: 0;
  gap: 0;
}

.tabs .tab {
  flex: 1 1 33.333%;
  min-width: 0;
  margin: 0;
  padding: 10px 4px 9px;
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  border-radius: 0;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
  cursor: pointer;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.15s, border-color 0.15s;
}
.tabs .tab:hover {
  color: var(--text-mid);
  background: transparent;
  border-color: transparent;
}
.tabs .tab.active {
  color: #f0abfc;
  border-bottom-color: #d946ef;
  background: transparent;
}

/* ── TAB PANELS ──────────────────────────── */
.tab-panel { display: none; padding: 14px 16px; flex-direction: column; }
.tab-panel.active { display: flex; flex: 1 1 auto; min-height: 0; }

#chatTab.active { gap: 0; }
#chatTab .chat-log { flex: 1 1 auto; height: auto; min-height: 200px; }
#reportTab.active { overflow-y: auto; }

/* Draft tab scrolls so the refine section is always reachable */
#draftTab.active { overflow-y: auto; }
#draftDocumentTab.active { overflow-y: auto; }
#selectionTab.active { overflow-y: auto; }

/* ── LABELS ──────────────────────────────── */
label {
  display: block;
  margin: 12px 0 5px;
  font-weight: 600;
  font-size: 11px;
  color: var(--text-mid);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── INPUTS & TEXTAREAS ──────────────────── */
textarea,
input[type="text"] {
  width: 100%;
  font-family: inherit;
  font-size: 13px;
  padding: 9px 11px;
  background: var(--surface2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  resize: vertical;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}
textarea::placeholder,
input[type="text"]::placeholder {
  color: var(--text-dim);
  font-style: italic;
}
textarea:focus,
input[type="text"]:focus {
  border-color: var(--mg);
  box-shadow: 0 0 0 3px var(--mg-dim);
}

/* ── WARNING BANNER ──────────────────────── */
.warning {
  background: var(--mg-dim);
  border: 1px solid rgba(209,0,209,0.2);
  border-left: 3px solid var(--mg);
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--mg);
  margin: 0 0 8px 0;
  line-height: 1.5;
}

/* ── SECTION DESCRIPTION ─────────────────── */
.section-desc {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.55;
  margin: 0 0 6px 0;
}

/* Grow textarea fills remaining vertical space in its flex column */
.grow-textarea {
  flex: 1 1 auto;
  min-height: 120px;
  resize: none;
}

/* ── CHAT ────────────────────────────────── */
.chat-options {
  display: flex;
  gap: 10px;
  margin: 4px 0 8px 0;
  font-size: 12px;
  color: var(--text-dim);
}
.chat-opt {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}
.chat-opt input[type="checkbox"] {
  width: auto;
  accent-color: var(--mg);
  cursor: pointer;
}

.chat-log {
  border: 1px solid var(--border);
  background: var(--surface2);
  border-radius: var(--radius);
  padding: 10px;
  overflow-y: auto;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chat-msg {
  padding: 8px 11px;
  border-radius: var(--radius);
  word-wrap: break-word;
  max-width: 95%;
  line-height: 1.5;
}
.chat-msg.user {
  background: rgba(79, 70, 229, 0.22);
  border: 1px solid rgba(129, 140, 248, 0.35);
  color: #1e1b4b;
  align-self: flex-end;
  border-radius: var(--radius) var(--radius-sm) var(--radius) var(--radius);
}

:root[data-theme='dark'] .chat-msg.user,
html[data-theme='dark'] .chat-msg.user,
body[data-theme='dark'] .chat-msg.user {
  color: #eef2ff;
}
.chat-msg.assistant {
  background: var(--surface);
  border: 1px solid var(--border);
  align-self: flex-start;
  white-space: normal;
  color: var(--text);
  border-radius: var(--radius-sm) var(--radius) var(--radius) var(--radius);
}
.chat-msg.assistant p { margin: 0 0 8px 0; }
.chat-msg.assistant p:last-child { margin-bottom: 0; }
.chat-msg.assistant h3,
.chat-msg.assistant h4,
.chat-msg.assistant h5 {
  margin: 10px 0 4px 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--mg-bright);
}
.chat-msg.assistant ul,
.chat-msg.assistant ol {
  margin: 4px 0 8px 0;
  padding-left: 18px;
}
.chat-msg.assistant li { margin: 2px 0; }
.chat-msg.assistant strong { color: var(--text); }
.chat-msg.assistant code {
  background: var(--surface2);
  border: 1px solid var(--border);
  padding: 1px 5px;
  border-radius: 3px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 11px;
  color: var(--mg-bright);
}
.chat-msg.assistant pre {
  background: #0b1324;
  border: 1px solid var(--border);
  color: var(--text-mid);
  padding: 10px;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  font-size: 11px;
  margin: 6px 0;
}
.chat-msg.assistant pre code { background: transparent; border: none; color: inherit; padding: 0; }
.chat-msg.system {
  background: transparent;
  color: var(--text-dim);
  font-style: italic;
  text-align: center;
  align-self: center;
  font-size: 11px;
  border: none;
  padding: 2px 0;
}

/* ── REPORT TAB ──────────────────────────── */
.report-result {
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface2);
  min-height: 220px;
  max-height: 420px;
  overflow-y: auto;
  color: var(--text);
}

.report-result p { margin: 0 0 8px 0; }
.report-result p:last-child { margin-bottom: 0; }
.report-result h3,
.report-result h4,
.report-result h5 {
  margin: 10px 0 4px 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--mg-bright);
}
.report-result ul,
.report-result ol {
  margin: 4px 0 8px 0;
  padding-left: 18px;
}
.report-result li { margin: 2px 0; }
.report-result strong { color: var(--text); }
.report-result code {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1px 5px;
  border-radius: 3px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 11px;
  color: var(--mg-bright);
}
.report-result pre {
  background: #0b1324;
  border: 1px solid var(--border);
  color: var(--text-mid);
  padding: 10px;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  font-size: 11px;
  margin: 6px 0;
}
.report-result pre code { background: transparent; border: none; color: inherit; padding: 0; }

/* ── CITATION CHECKER ────────────────────── */
.citation-results { margin-top: 10px; }

.citation-card {
  border: 1px solid var(--border);
  border-left: 3px solid var(--mg);
  border-radius: var(--radius);
  padding: 11px 13px;
  margin-bottom: 10px;
  background: var(--surface2);
  transition: border-color 0.15s;
}
.citation-card:hover {
  border-color: var(--mg);
  border-left-color: var(--mg-bright);
}
.citation-card .cite-name {
  font-weight: 700;
  font-size: 12px;
  color: var(--text);
  margin-bottom: 5px;
  line-height: 1.4;
}
.citation-score {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  margin-bottom: 6px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.score-high { background: rgba(16,124,16,0.18); color: #4dc94d; border: 1px solid rgba(16,124,16,0.3); }
.score-mid  { background: rgba(200,150,0,0.15); color: #d4a500; border: 1px solid rgba(200,150,0,0.3); }
.score-low  { background: rgba(212,0,106,0.15); color: var(--mg-bright); border: 1px solid var(--mg-glow); }

.citation-card .cite-note {
  font-size: 12px;
  color: var(--text-mid);
  margin-bottom: 8px;
  line-height: 1.5;
}
.cite-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.cite-links li { margin: 0; }
.cite-links a {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-dim);
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: 0.03em;
  transition: color 0.15s, border-color 0.15s;
}
.cite-links a:hover {
  color: var(--mg-bright);
  border-color: var(--mg);
}
.citation-none {
  color: var(--text-dim);
  font-size: 12px;
  text-align: center;
  padding: 20px 0;
}

/* ── WILL STREAMING PREVIEW ──────────────── */
#willStreamBox {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
  min-height: 0;
}
.will-stream-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 600;
  color: var(--mg);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.will-stream-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mg);
  animation: willPulse 1s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes willPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.7); }
}
.will-stream-preview {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--mg);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: 11px;
  font-family: Calibri, Aptos, Arial, sans-serif;
  color: var(--text-mid);
  line-height: 1.5;
  flex: 1 1 0;
  min-height: 120px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ── SOLICITOR SUGGESTIONS PANEL ─────────── */
#draftSuggestionsBox {
  margin-top: 14px;
  border: 1px solid var(--border);
  border-left: 3px solid #f59e0b;
  border-radius: var(--radius-sm);
  background: var(--surface2);
  overflow: hidden;
}
.draft-suggest-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  background: rgba(245,158,11,0.08);
  border-bottom: 1px solid var(--border);
}
.draft-suggest-title {
  font-size: 11px;
  font-weight: 700;
  color: #b45309;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
#draftSuggestionsContent {
  padding: 10px;
  font-size: 12px;
  color: var(--text);
  line-height: 1.55;
  max-height: 420px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ── DRAFT REFINE SECTION ────────────────── */
.draft-refine-section {
  margin-top: 16px;
}

.refine-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--text-dim);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.refine-divider::before,
.refine-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}
.refine-divider span {
  white-space: nowrap;
  color: var(--mg);
}

.file-input {
  display: block;
  width: 100%;
  padding: 7px 10px;
  background: var(--surface2);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-mid);
  font-size: 12px;
  cursor: pointer;
  transition: border-color 0.15s;
}
.file-input:hover,
.file-input:focus {
  border-color: var(--mg);
  outline: none;
}

/* ── SELECTION TAB ────────────────────────── */
.selection-hint {
  font-size: 12px;
  color: var(--text-dim);
  font-style: italic;
  text-align: center;
  padding: 12px 0 4px 0;
  margin: 0;
}

.selection-preview-wrap {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--mg);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  margin-bottom: 10px;
}

.selection-preview-label {
  margin: 0 0 4px 0 !important;
  font-size: 10px !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700 !important;
  color: var(--mg) !important;
}

.selection-preview {
  font-size: 12px;
  color: var(--text-mid);
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 80px;
  overflow: hidden;
}

.selection-section {
  border-top: 1px solid var(--border-soft);
  padding-top: 12px;
  margin-top: 12px;
}

.selection-section-title {
  margin: 0 0 4px 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.01em;
}

.selection-result {
  margin-top: 10px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 12px;
  color: var(--text);
  line-height: 1.6;
  max-height: 260px;
  overflow-y: auto;
}
.selection-result p { margin: 0 0 6px 0; }
.selection-result p:last-child { margin-bottom: 0; }
.selection-result h3,
.selection-result h4,
.selection-result h5 {
  font-size: 12px;
  font-weight: 700;
  color: var(--mg-bright);
  margin: 8px 0 3px 0;
}
.selection-result ul,
.selection-result ol {
  margin: 4px 0 8px 0;
  padding-left: 18px;
}
.selection-result li { margin: 2px 0; }
.selection-result strong { color: var(--text); }
.selection-result pre {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 8px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text-mid);
  margin: 6px 0 0 0;
}

.suggested-wording-box {
  margin-top: 6px;
  padding: 9px 11px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.6;
}

/* ── CASE PICKER ─────────────────────────── */
.case-picker-row {
  margin: 6px 0 8px;
  padding: 8px 11px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--mg);
  border-radius: var(--radius-sm);
}

.case-picker-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--mg);
  margin-bottom: 5px;
}

.case-picker-controls {
  display: flex;
  gap: 6px;
  align-items: center;
}

.case-combo {
  position: relative;
  flex: 1;
}

.case-input {
  width: 100%;
  box-sizing: border-box;
  padding: 5px 8px;
  font-size: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
}

.case-input:focus {
  outline: none;
  border-color: var(--mg);
}

.case-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  z-index: 9999;
  max-height: 200px;
  overflow-y: auto;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  margin-top: 2px;
}

.case-option {
  padding: 6px 8px;
  font-size: 12px;
  cursor: pointer;
  color: var(--text);
}

.case-option:hover {
  background: var(--surface2);
}

.case-option.clear-option {
  color: #888;
  font-style: italic;
}

.icon-btn {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  padding: 0;
  font-size: 15px;
  line-height: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-mid);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s, color 0.15s;
}

.icon-btn:hover {
  border-color: var(--mg);
  color: var(--mg);
}

.case-picker-status {
  margin-top: 5px;
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.4;
}
