[hidden]{display:none!important}
.logged-out>aside,.logged-out>main{display:none}
.login-screen{display:none;position:fixed;inset:0;z-index:100;background:#f2f5ef;align-items:center;justify-content:center;padding:24px}
.logged-out .login-screen{display:flex}
.login-card{width:420px;max-width:100%;padding:40px;border:1px solid #dce5d7;border-radius:24px;background:white;box-shadow:0 20px 70px #28463110}
.login-card h1{font-size:25px;margin-top:32px}
.login-card p{color:#7a8877}
.login-card label:not(.check){display:block;margin:18px 0}
.login-card input:not([type=checkbox]){width:100%;margin-top:8px}
/* 飞 2026-10-16：login-card 默认 display:block 会覆盖 [hidden] 属性，
   显式声明 [hidden] 优先让注册/登录切换生效。*/
.login-card[hidden]{display:none}
.login-switch{margin-top:14px;text-align:center}
.login-switch button{background:transparent;border:0;color:#5d7660;font-size:13px;cursor:pointer;padding:6px 10px}
.login-switch button:hover{color:#284e36;text-decoration:underline}
#registerSubmit{margin-top:8px}
.login-card .primary{width:100%;margin-top:20px}
#loginError{color:#a83f3f}
.ordinary-user .admin-only{display:none!important}
aside{display:flex;flex-direction:column}
aside nav{flex:none}
#chatList{flex:1;min-height:0;max-height:none;margin-bottom:12px}
.chat-top{gap:20px;align-items:center;padding:16px 0;border-bottom:1px solid #e7ede4}
.chat-context{display:flex;flex-direction:column;gap:9px;flex:1;min-width:0;color:#304638}
.chat-context>b{font-size:16px;font-weight:600}
.customer-note{font-size:12px;display:flex;align-items:center;gap:10px;color:#798671}
.customer-note input{width:240px;max-width:100%;padding:8px 11px;margin:0}
.chat-actions{display:flex;gap:10px;align-items:center}
.chat-actions button{white-space:nowrap;padding:10px 15px;border-radius:9px}
.chat-actions .primary{background:#214c39;color:#fff;border-color:#214c39}
.chat-actions .secondary{background:#fff;color:#35533f;border-color:#cfdbca}
.chat-actions button:disabled{opacity:.45}
.chat-list-label{display:flex;flex-direction:column;gap:9px}
.chat-list-label select{font-size:12px;padding:7px 10px;margin:0;background:white}
#chatList .chat-entry{display:flex;align-items:flex-start;position:relative;border-radius:10px;margin:4px 0;min-width:0;height:auto}
#chatList .chat-entry.current{background:#e4ecdf}
#chatList .chat-entry .chat-open{flex:1;min-width:0;display:block;height:auto;overflow:visible;text-overflow:clip;white-space:normal;overflow-wrap:anywhere;word-break:normal;text-align:left;border:0;background:transparent;color:#526451;font-size:12px;line-height:1.5;padding:10px 8px;margin:0}
.feedback-item{padding:15px 0;border-bottom:1px solid #e1e8dd}.feedback-item:last-child{border:0}.feedback-item p{white-space:pre-wrap;margin:7px 0;color:#385442}
.ai-summaries-wrap{margin-top:8px;padding:10px 12px;background:#f3f7ee;border:1px solid #d8e3cf;border-radius:8px}
.ai-summaries-label{font-size:11px;letter-spacing:.06em;color:#58724c;text-transform:uppercase;font-weight:700}
.ai-summaries{margin:6px 0 0;padding:0 0 0 18px;font-size:13px;line-height:1.6;color:#34523e}
.ai-summaries li{margin:3px 0}
.ai-summaries li small{color:#8a9881;margin-left:4px}
.ai-summaries-empty{margin:6px 0 0;font-size:12px;color:#8a9881;font-style:italic}
.card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}
.card-head h2{margin:0}
.feedback-item-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.feedback-copy{flex:none;font-size:12px;padding:2px 10px;border:1px solid #cfe0cb;border-radius:999px;background:#f3f8f1;color:var(--brand-deep)}
.feedback-copy:hover:not(:disabled){background:#e7f1e4;color:var(--brand-hover)}
.learning-review-guide{margin:10px 0 18px;padding:14px 16px;border:1px solid #d8e3d2;border-radius:10px;background:#f5f8f2;color:#466052}
.learning-review-guide>b{display:block;margin-bottom:8px;color:#254936}
.learning-review-guide p{margin:5px 0;font-size:11px;line-height:1.55;color:#587063}
.learning-review-guide small{display:block;margin-top:8px;padding-top:7px;border-top:1px dashed #d4dfcf;color:#7b8c80}
#chatList .chat-menu{flex:none;padding:0;border:0}
#chatList .chat-menu>summary{cursor:pointer;list-style:none;padding:8px 5px;color:#809079;font-size:15px}
#chatList .chat-menu>summary::-webkit-details-marker{display:none}
#chatList .chat-menu>div{position:absolute;right:0;top:34px;z-index:25;background:white;border:1px solid #dce5d7;border-radius:12px;box-shadow:0 10px 24px #28463120;padding:5px;min-width:128px}
#chatList .chat-menu button{display:block;width:100%;padding:9px 10px;margin:0;border:0;border-radius:7px;background:white;color:#405746;text-align:left;font-size:12px}
#chatList .chat-menu button:hover{background:#edf3e8}
.pin-mark{color:#557e46;font-weight:700}
.list-empty{font-size:12px;color:#899680;margin:18px 14px}
.aside-bottom{position:static;flex:none;margin-top:auto;padding-top:8px;border-top:1px solid #e0e7db;z-index:1;background:inherit}
.aside-bottom button{font-size:12px;color:inherit}
.heading button{flex:none}
.heading{gap:12px}
.heading>div{flex:1}
.history-item .export-one{margin-left:8px}
@media(max-width:750px){.chat-top{flex-wrap:wrap}.chat-actions{width:100%;justify-content:flex-end}.customer-note{flex-wrap:wrap}.login-card{padding:26px}.heading{flex-wrap:wrap}}
@media(max-width:650px){#chatList{display:block;max-height:125px;flex:none}.chat-list-label{display:flex;margin:12px 0 8px}.aside-bottom{display:block;margin-top:0}.chat-tab{height:calc(100dvh - 330px);min-height:420px}}

/* Brand treatment shared with the ISEE PACK public site. */
.login-screen {
  background: radial-gradient(circle at 82% 18%, #dcebd7 0, transparent 36%),
    linear-gradient(116deg, #f0f3e9 0%, #f8faf5 50%, #e8eee3 100%);
}
.login-card {
  border-color: #d2ddd0;
  border-radius: 14px;
  box-shadow: 0 24px 70px #193d3117;
}
.login-card .brand, aside .brand { font-size: 22px; font-weight: 850; letter-spacing: -.08em; }
.login-card .brand .ai, aside .brand .ai { color: var(--brand-leaf); font-weight: 700; margin-left: .32em; letter-spacing: -.04em; }
.login-card h1 { color: var(--brand-ink); font-size: 28px; font-weight: 720; letter-spacing: -.05em; }
.login-card p { color: #536d60; }
.login-card .primary { min-height: 46px; }
.login-card input:not([type=checkbox]) { background: #fff; }
.aside-bottom { border-top-color: var(--brand-line); color: #536d60; }
.aside-bottom b { color: var(--brand-ink); font-weight: 700; }
.aside-bottom .textbutton { color: var(--brand-leaf); }
.chat-context>b { color: var(--brand-ink); font-size: 17px; font-weight: 700; }
.customer-note { color: #536d60; }
.customer-note input { background: #fff; border-color: #c8d8c7; }
.chat-top { border-bottom-color: var(--brand-line); }
.chat-actions .primary { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; }
.chat-actions .primary:hover:not(:disabled) { background: var(--brand-hover); }
.chat-actions .secondary { color: var(--brand-deep); border-color: #c8d8c7; background: #fff; }
.chat-actions .secondary:hover:not(:disabled) { background: #edf2e9; border-color: #64836c; }
.chat-list-label { color: #536d60; }
.chat-list-label select { border-color: #c8d8c7; }
#chatList .chat-entry.current { background: #edf2e9; }
#chatList .chat-entry .chat-open { color: #365347; }
#chatList .chat-entry.current .chat-open { color: var(--brand-deep); font-weight: 700; }
#chatList .chat-menu>div { border-color: #d2ddd0; border-radius: 9px; }
#chatList .chat-menu button { color: var(--brand-deep); }
#chatList .chat-menu button:hover { background: #edf2e9; }
.pin-mark { color: var(--brand-leaf); }
.list-empty { color: #647568; }
.batch-card { border-color: #d2ddd0; box-shadow: 0 10px 28px #193d310a; }
.batch-item-header strong, .batch-total b { color: var(--brand-deep); }
.batch-specs { color: #536d60; }
.batch-source { color: #6b806f; }
.batch-wait { color: #875e27; background: #fff8e9; }
.ordinary-user #form .heading,
.ordinary-user #form .workspace { max-width: 960px; margin-left: auto; margin-right: auto; }
.ordinary-user #form .workspace { grid-template-columns: minmax(0, 1fr); }
.ordinary-user #form .result-column .note { padding: 0 4px 22px; }
@media (max-width: 750px) {
  .chat-top { gap: 12px; }
  .chat-context { flex-basis: 100%; }
  .customer-note input { flex: 1 1 180px; }
}
@media (max-width: 650px) {
  .login-card { padding: 26px; }
  aside .brand { font-size: 19px; }
  aside .brand .ai { margin-left: .28em; }
  .aside-bottom { font-size: 11px; }
  .chat-tab { min-height: 430px; }
  .chat-actions { justify-content: flex-start; }
  .chat-actions button { flex: 1; }
  .customer-note { gap: 6px; }
  .chat-list-label select { max-width: 180px; }
}

/* Account picker (multi-account switcher) */
.account-picker{position:relative;display:flex;flex-direction:column;gap:6px;margin-bottom:6px}
.account-picker>#currentUser{text-align:left;font-size:13px;color:var(--brand-ink);padding:7px 9px;border-radius:8px;background:#fff;border:1px solid var(--brand-line);cursor:pointer;display:flex;align-items:center;gap:6px}
.account-picker>#currentUser:hover{background:#edf2e9}
.account-menu{position:absolute;bottom:calc(100% + 6px);left:0;right:0;z-index:25;background:#fff;border:1px solid var(--brand-line);border-radius:10px;box-shadow:0 16px 36px #193d3122;padding:8px;display:flex;flex-direction:column;gap:6px}
.account-menu-list{display:flex;flex-direction:column;gap:4px;max-height:280px;overflow-y:auto}
.account-empty{font-size:12px;color:#647568;padding:10px;margin:0}
.account-row{display:flex;align-items:center;justify-content:space-between;gap:8px;border:0;background:transparent;padding:8px 10px;border-radius:7px;color:var(--brand-deep);text-align:left;font-size:12px;width:100%}
.account-row:hover{background:#edf2e9}
.account-select{display:flex;align-items:center;justify-content:space-between;gap:6px;flex:1;min-width:0;background:transparent;border:0;padding:0;color:inherit;text-align:left;font-size:12px}
.account-row.active{background:#edf2e9;color:var(--brand-deep);font-weight:700}
.account-row .pin-mark{color:var(--brand-leaf);margin-right:6px}
.account-actions{display:flex;align-items:center;gap:6px}
.account-switch{font-size:11px;color:#647568}
.account-forget{background:transparent;border:0;color:#889b86;cursor:pointer;font-size:14px;padding:2px 5px;border-radius:4px}
.account-forget:hover{color:#a83f3f;background:#fff5f5}
.account-menu-actions{display:flex;justify-content:space-between;gap:6px;padding-top:6px;border-top:1px solid var(--brand-line)}
.account-menu-actions button{flex:1;font-size:12px;padding:7px 8px;border-radius:7px;border:1px solid var(--brand-line);background:#fff;color:var(--brand-deep);cursor:pointer}
.account-menu-actions button:hover{background:#edf2e9}
.account-menu-actions .secondary{background:#fff;color:var(--brand-deep)}
.account-menu-actions .textbutton{border:0;background:transparent;color:#647568}
.account-menu-actions .textbutton:hover{background:#fff0f0;color:#a83f3f}
.adding-account .login-card{border-color:var(--brand-leaf);box-shadow:0 0 0 4px #2d514433, 0 24px 70px #193d3117}
/* 负边距会让这段提示与下方 logo 重叠并被盖住，改为正间距独立成行；
   同时只在登录表单上出现——注册页说「将记住此账号」语义不对。 */
.adding-account #loginForm::before{content:'将记住此账号，可随时在下拉中切换';display:block;font-size:11px;line-height:1.6;color:var(--brand-leaf);margin-bottom:12px}

/* Collapsible workspace navigation; on phones it behaves as a drawer. */
.header-location{display:flex;align-items:center;gap:11px;min-width:0}
#sidebarToggle,#sidebarClose{border:1px solid #c8d8c7;background:#fff;color:var(--brand-deep);display:inline-grid;place-items:center;width:36px;height:36px;padding:0;border-radius:9px;font-size:18px;line-height:1;flex:none}
#sidebarClose{display:none}
#sidebarToggle:hover,#sidebarClose:hover{background:#edf2e9}
body>aside{transition:transform .2s ease;z-index:35}
body>main{transition:margin-left .2s ease;min-width:0}
body.sidebar-collapsed>aside{transform:translateX(-105%);pointer-events:none}
body.sidebar-collapsed>main{margin-left:0}
#sidebarScrim{display:none}

/* Use the entire width left after the navigation, including quote cards. */
#quote.chat-tab{width:100%;max-width:none;padding-left:0;padding-right:0}
#quote .chat-top,#quote .chat-messages,#quote .composer-wrap{width:100%;max-width:none}
#quote .chat-messages{min-width:0;padding-left:8px;padding-right:8px}
#quote .assistant-content,#quote .batch-card,#quote .draft-card{max-width:none;width:100%}
#quote .chat-row.assistant .message-bubble{max-width:100%}
#quote .composer{width:100%}
#quote .packing-summary{max-width:none}

@media(max-width:700px){
  body>aside{position:fixed!important;inset:0 auto 0 0!important;width:min(86vw,310px)!important;max-width:310px;height:100dvh;overflow-y:auto;padding:22px 18px 18px;transform:translateX(-105%);box-shadow:16px 0 48px #173c3322;z-index:60}
  body.sidebar-open>aside{transform:translateX(0);pointer-events:auto}
  body:not(.sidebar-open)>aside{pointer-events:none}
  #sidebarClose{display:grid;position:absolute;right:12px;top:12px}
  #sidebarScrim:not([hidden]){display:block;position:fixed;inset:0;border:0;border-radius:0;background:#142f2970;z-index:55;padding:0}
  body>main,body.sidebar-collapsed>main{margin-left:0!important;width:100%;max-width:none;padding:0 12px 12px!important}
  header{height:56px!important;position:sticky;top:0;background:var(--brand-paper);z-index:30}
  header .badge{display:none}
  #quote.chat-tab{height:calc(100dvh - 56px)!important;min-height:0!important;padding:0!important}
  #quote .chat-messages{padding:8px 2px 18px}
  #quote .composer-wrap{padding:8px 0 10px;flex:none}
  #quote .chat-top{padding:10px 0}
  #quote .batch-card{padding:14px}
  #quote .chat-row{gap:8px}
  aside nav{display:grid;gap:6px;margin-top:28px}
  aside nav button{font-size:13px;padding:12px 14px;text-align:left}
  aside .chat-list-label{display:flex;margin:22px 0 8px}
  aside #chatList{display:block;max-height:none;overflow:visible}
  aside .aside-bottom{position:static;margin-top:24px;padding-top:14px}
}
@media(prefers-reduced-motion:reduce){body>aside,body>main{transition:none}}
