/* DRUGPilot workspace layout. */
[v-cloak] { display: none; }
.login-required { width: calc(100% - 32px); max-width: 560px; margin: 64px auto; padding: 32px; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.login-required h1 { margin: 0; font-size: 28px; }
.login-required p { margin: 0; color: var(--ink-soft); line-height: 1.8; }
:root {
  --paper: #16181c;
  --canvas-soft: #1b1e24;
  --card-face: #16181c;
  --line: #353b45;
  --ink-soft: #bac2ce;
  --ink-muted: #a5afbd;
  --shadow-card: none;
  --shadow-lift: none;
}
html[data-theme="light"] {
  --canvas: #f7f8fa;
  --paper: #fff;
  --canvas-soft: #f7f8fa;
  --card-face: #fff;
  --line: #dce1e7;
  --ink: #202630;
  --ink-soft: #505c6b;
  --ink-muted: #596574;
  --shadow-card: none;
  --shadow-lift: none;
}
body { background: var(--canvas); }
body::after { content: none; }
.app-header { height: 76px; background: var(--paper); backdrop-filter: none; }
.header-inner { max-width: 1184px; padding: 0 32px; }
.brand-mark { width: 36px; height: 36px; border: 0; }
.brand-name { font-size: 20px; }
.brand-subtitle { margin-top: 4px; font-size: 11px; letter-spacing: .05em; }
.header-actions { flex-wrap: nowrap; }
.theme-toggle { width: 40px; height: 40px; background: transparent; }
.header-badge { border: 0; padding: 0; background: none; }
.login-menu { position: relative; }
.login-trigger { display: grid; place-content: center; min-width: 76px; min-height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: 6px; font-size: 13px; font-weight: 600; cursor: pointer; list-style: none; }
.login-trigger::-webkit-details-marker { display: none; }
.login-menu[open] .login-trigger { border-color: var(--accent); }
.login-menu .auth-form { position: absolute; right: 0; top: 50px; width: 300px; max-width: calc(100vw - 32px); max-height: calc(100dvh - 100px); overflow-y: auto; display: flex; flex-direction: column; align-items: stretch; gap: 8px; padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); box-shadow: 0 12px 40px #0002; }
.login-caption { margin: 0 0 10px; font-size: 13px; color: var(--ink-soft); }
.login-menu label { font-size: 12px; font-weight: 600; }
.login-menu .auth-input { width: 100%; height: 42px; flex: none; }
.login-menu .btn-primary, .login-menu .btn-google { min-height: 42px; justify-content: center; }
.login-menu .auth-or { text-align: center; }
.auth-notice { max-width: 1120px; width: calc(100% - 64px); }
.workspace-layout { display: flex; flex-direction: column; max-width: 1184px; min-height: calc(100dvh - 76px); padding: 0 32px 28px; gap: 0; }
.simple-nav { display: flex; gap: 24px; min-width: 0; margin-bottom: 32px; border-bottom: 1px solid var(--line); }
.simple-nav button { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 66px; padding: 0 4px; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; background: transparent; color: var(--ink-soft); font-size: 14px; white-space: nowrap; }
.simple-nav button:hover { color: var(--ink); }
.simple-nav button.active { color: var(--accent-text); border-bottom-color: var(--accent); font-weight: 600; }
.simple-nav .nav-icon { display: inline-flex; }
.simple-nav svg { width: 17px; height: 17px; }
.nav-count { min-width: 19px; padding: 1px 5px; background: var(--canvas-sink); border-radius: 5px; color: var(--ink); font-size: 11px; }
.page-intro { margin-bottom: 24px; padding: 0; }
.page-intro h1 { margin: 0 0 8px; font-family: inherit; font-size: 27px; line-height: 1.4; font-weight: 650; letter-spacing: -.6px; }
.page-intro p { font-size: 14px; max-width: none; }
.workspace-main { flex: 1; }
.tool-page { flex: none; }
.tool-page.tool-search { gap: 20px; }
.search-panel { padding: 24px; }
.simple-search-grid { display: grid; grid-template-columns: 150px minmax(0, 1fr) 108px; align-items: end; gap: 16px; }
.tool-page label { font-size: 13px; letter-spacing: 0; text-transform: none; }
.simple-search-grid select, .simple-search-grid input[type="search"], .simple-search-grid .btn-tech { min-height: 46px; }
.search-options { margin-top: 16px; }
.search-options summary { min-height: 30px; width: fit-content; color: var(--ink-soft); font-size: 13px; cursor: pointer; }
.search-options summary span { margin-left: 12px; font-size: 12px; }
.search-options-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 550px; padding-top: 14px; }
.search-error { padding: 14px 18px; border: 1px solid var(--text-red); border-radius: 8px; background: var(--tint-red); color: var(--text-red); font-size: 14px; }
.search-loading { padding: 20px; color: var(--ink-soft); font-size: 14px; }
.skeleton-line { height: 16px; margin-top: 16px; border-radius: 5px; background: var(--line); animation: simple-pulse 1.5s ease-in-out infinite; }
.skeleton-line:last-child { width: 65%; }
@keyframes simple-pulse { 50% { opacity: .4; } }
.empty-state { min-height: 230px; border: 0; border-radius: 0; background: none; padding: 42px 16px; }
.empty-state h2 { font-family: inherit; font-size: 19px; font-weight: 600; letter-spacing: 0; }
.empty-lead { font-size: 14px; max-width: none; margin: 12px auto 22px; }
.empty-examples { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.example-chip { flex: none; display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 8px 14px; border-radius: 7px; background: var(--paper); box-shadow: none; }
.example-chip strong { font-family: inherit; font-size: 13px; font-weight: 500; }
.source-note { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 12px; }
.source-note summary { width: fit-content; min-height: 28px; cursor: pointer; }
.source-note p { margin: 6px 0 0; line-height: 1.7; }
.tool-page .results-list > .glass-panel { padding: 20px; border-width: 1px; }
.results-list > .glass-panel > .pr-12 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(200px, .75fr); gap: 10px 24px; }
.results-list > .glass-panel > .pr-12 > h3 { grid-column: 1; grid-row: 1; margin: 0; font-size: 18px; overflow-wrap: anywhere; }
.results-list > .glass-panel > .pr-12 > p { grid-column: 1; grid-row: 2; margin: 0; padding: 0; border: 0; overflow-wrap: anywhere; }
.results-list > .glass-panel > .pr-12 > .grid { grid-column: 2; grid-row: 1 / 3; margin: 0; align-content: center; }
.results-list .ingredient-details, .results-list .badge-row { grid-column: 1 / -1; }
.ingredient-details { font-size: 12px; color: var(--ink-soft); }
.ingredient-details summary { padding: 4px 0; cursor: pointer; }
.ingredient-details ul { margin: 8px 0; }
.tool-page .badge-row { margin-top: 2px; }
.tool-page .badge-row > span { font-weight: 500; }
.tool-page .glass-panel, .tool-page .data-card { box-shadow: none; }
.tool-page .card-picked { box-shadow: none !important; }
.tool-page h3, .queue-empty h3 { font-family: inherit; }
.tool-page .queue-empty h3 { font-size: 20px; }
.queue-empty { flex: none; min-height: 210px; border: 0; background: none; }
.tool-analysis > .glass-panel:first-child:has(.queue-empty), .tool-compare > .glass-panel:first-child:has(.queue-empty) { flex: none; }
.tool-page .compact-actionbar { margin-top: 20px; }
.tool-page .compact-actionbar button { width: auto; }
.tool-page .compact-actionbar h3 { font-size: 14px; }
.tool-page .space-y-8 { gap: 0; }
.animate-fade-in, .results-list > * { animation: none; }
.tool-page [class*="text-slate-600"] { color: var(--ink-soft); }
@media (max-width: 700px) {
  .app-header { height: 68px; }
  .header-inner { padding: 0 16px; flex-wrap: nowrap; gap: 12px; }
  .header-actions { width: auto; gap: 8px; }
  .brand-block { gap: 8px; }
  .brand-name { font-size: 18px; }
  .brand-subtitle { display: none; }
  .brand-mark { width: 30px; height: 30px; }
  .edition-label { padding: 3px 5px; font-size: 10px; }
  .login-trigger { min-width: 56px; }
  .header-badge > strong { max-width: 100px; }
  .header-badge > span { display: none; }
  .workspace-layout { padding: 0 16px 24px; min-height: calc(100dvh - 68px); }
  .simple-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-bottom: 24px; }
  .simple-nav button { flex-direction: column; gap: 5px; min-height: 70px; padding: 10px 4px; font-size: 12px; white-space: normal; line-height: 1.35; text-align: center; }
  .nav-count { position: absolute; right: 5px; top: 3px; }
  .page-intro h1 { font-size: 24px; }
  .page-intro p { font-size: 13px; }
  .search-panel { padding: 18px; }
  .simple-search-grid { grid-template-columns: minmax(0, 1fr) 82px; gap: 16px 10px; }
  .simple-search-grid > .field:first-child { grid-column: 1 / -1; }
  .simple-search-grid > .field:nth-child(2) { grid-column: 1; }
  .simple-search-grid > .btn-tech { grid-column: 2; padding: 0 14px; }
  .simple-search-grid input[type="search"], .simple-search-grid select { font-size: 16px; }
  .search-options summary span { margin-left: 5px; font-size: 11px; }
  .empty-state { padding: 24px 0; min-height: 210px; }
  .empty-state h2 { font-size: 18px; }
  .empty-lead { font-size: 13px; max-width: 26em; }
  .auth-notice { width: calc(100% - 32px); }
  .results-list > .glass-panel > .pr-12 { display: block; padding-right: 24px; }
  .results-list > .glass-panel > .pr-12 > .grid { margin: 14px 0; }
  .results-list > .glass-panel > .pr-12 > p { margin-top: 4px; }
  .tool-page .results-list > .glass-panel { padding: 16px; }
  .tool-page .compact-actionbar button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .skeleton-line { animation: none; } }
@media print { .simple-nav, .source-note { display: none !important; } }

.account-summary { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; max-width: 1184px; width: 100%; padding: 14px 32px 0; margin: 0 auto; color: var(--ink-soft); font-size: 12px; }
.account-summary a { color: var(--accent-text); font-weight: 600; text-decoration: none; }
@media (max-width: 700px) { .account-summary { padding: 12px 16px 0; } }
