*,:after,:before{box-sizing:border-box}:root{--bg:#f5f6f8;--surface:#fff;--surface-2:#f0f2f5;--border:#e3e6eb;--border-strong:#cdd2da;--text:#0f1d36;--text-muted:#5d6676;--text-faint:#8a92a0;--navy:#14254a;--accent:#1f5bd6;--accent-hover:#1a4cb4;--accent-soft:#e9effb;--accent-text:#1a4cb4;--success-text:#136a42;--success-bg:#e5f3ec;--warning-text:#8a5208;--warning-bg:#fcf1dd;--error-bg:#fdeeec;--error-border:#f2c3bd;--error-text:#a3271c;--empty-bg:#f7f8fa;--radius-sm:8px;--radius:12px;--radius-lg:16px;--shadow:0 1px 2px rgba(15,29,54,.05),0 1px 3px rgba(15,29,54,.04);--shadow-raised:0 8px 24px rgba(15,29,54,.12),0 2px 6px rgba(15,29,54,.06);--header-h:56px;--nav-h:0px;--sidebar-w:0px;--safe-bottom:env(safe-area-inset-bottom,0px);--font:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;--mono:ui-monospace,"SF Mono",Menlo,Consolas,monospace}html{-webkit-text-size-adjust:100%}body{margin:0;font-family:var(--font);font-size:16px;line-height:1.5;background:var(--bg);-webkit-font-smoothing:antialiased}body,h1,h2,h3{color:var(--text)}a{color:var(--accent-text)}button,input,select,textarea{font:inherit;color:inherit}:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.app-header{position:-webkit-sticky;position:sticky;top:0;z-index:50;height:var(--header-h);gap:12px;padding:0 16px;background:hsla(0,0%,100%,.94);-webkit-backdrop-filter:saturate(180%) blur(12px);backdrop-filter:saturate(180%) blur(12px);border-bottom:1px solid var(--border)}.app-header,.app-header-brand{display:flex;align-items:center}.app-header-brand{flex:0 0 auto;width:32px;height:32px}.app-header-brand img{width:32px;height:32px;display:block}.app-header-title{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;line-height:1.2;text-decoration:none;color:var(--text)}.app-header-title strong{font-size:17px;font-weight:600}.app-header-title span,.app-header-title strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.app-header-title span{font-size:13px;color:var(--text-muted)}.app-header-actions{flex:0 0 auto;display:flex;align-items:center;gap:8px}.status-pill{display:inline-flex;align-items:center;gap:6px;height:28px;padding:0 10px;border-radius:999px;font-size:13px;font-weight:500;white-space:nowrap}.status-pill-offline{background:var(--warning-bg);color:var(--warning-text)}.status-pill-admin{background:var(--surface-2);color:var(--text-muted)}.avatar-button{width:44px;height:44px;border:none;background:none;padding:0;cursor:pointer}.avatar,.avatar-button{display:flex;align-items:center;justify-content:center;border-radius:999px}.avatar{width:32px;height:32px;background:var(--navy);color:#fff;font-size:14px;font-weight:600;flex:0 0 auto}.avatar-agent{background:var(--accent-soft);color:var(--accent-text)}.account-menu{position:relative}.account-menu-panel{position:absolute;top:calc(100% + 6px);right:0;width:min(300px,calc(100vw - 32px));background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow-raised);padding:8px;z-index:60}.account-menu-identity{padding:8px 10px 12px;border-bottom:1px solid var(--border);margin-bottom:6px}.account-menu-identity strong{display:block;font-size:15px}.account-menu-identity span{display:block;font-size:13px;color:var(--text-muted);overflow:hidden;text-overflow:ellipsis}.account-menu-identity .status-pill{margin-top:8px}.menu-group-title{padding:10px 10px 4px;font-size:12px;font-weight:600;color:var(--text-faint);letter-spacing:.02em}.menu-item{display:flex;align-items:center;gap:10px;width:100%;min-height:44px;padding:0 10px;border:none;border-radius:var(--radius-sm);background:none;color:var(--text);font-size:15px;text-decoration:none;text-align:left;cursor:pointer}.menu-item:hover{background:var(--surface-2)}.menu-item[aria-current=true]{color:var(--accent-text);font-weight:600}.menu-item svg{flex:0 0 auto;color:var(--text-muted)}.menu-divider{height:1px;background:var(--border);margin:6px 0}.app-body{padding-left:var(--sidebar-w)}.app-main{max-width:960px;margin:0 auto;padding:24px 16px calc(32px + var(--nav-h) + var(--safe-bottom))}.app-main.app-main-flush{max-width:none;padding:0}.bottom-nav{position:fixed;left:0;right:0;bottom:0;z-index:50;height:calc(var(--nav-h) + var(--safe-bottom));padding-bottom:var(--safe-bottom);display:none;background:hsla(0,0%,100%,.96);-webkit-backdrop-filter:saturate(180%) blur(12px);backdrop-filter:saturate(180%) blur(12px);border-top:1px solid var(--border)}.bottom-nav a{flex:1 1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:44px;font-size:12px;font-weight:500;color:var(--text-muted);text-decoration:none}.bottom-nav a[aria-current=page]{color:var(--accent-text)}.sidebar{display:none;position:fixed;top:var(--header-h);left:0;bottom:0;width:var(--sidebar-w);padding:16px 12px;overflow-y:auto;border-right:1px solid var(--border);background:var(--bg)}.sidebar .menu-item[aria-current=page]{background:var(--accent-soft);color:var(--accent-text);font-weight:600}.sidebar .menu-item[aria-current=page] svg{color:var(--accent-text)}@media (max-width:767px){:root.has-vessel-nav{--nav-h:64px}:root.has-vessel-nav .bottom-nav{display:flex}}@media (min-width:768px){:root.has-vessel-nav{--sidebar-w:232px}:root.has-vessel-nav .sidebar{display:block}.app-header{padding:0 20px}.app-main{padding:32px 32px 48px}}@media (min-width:1200px){:root.has-vessel-nav{--sidebar-w:260px}}.page-header{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:24px}.page-title{line-height:1.2;font-weight:650;letter-spacing:-.01em;margin:0}.page-title,.page-title-lg{font-size:26px}.page-subtitle{font-size:15px;color:var(--text-muted);margin:4px 0 0}@media (min-width:768px){.page-title,.page-title-lg{font-size:28px}}.section{margin-bottom:32px}.section-header,.section-title{font-size:18px;font-weight:600;line-height:1.3;margin:0 0 12px;color:var(--text)}.section-title-row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:12px}.section-title-row .section-header,.section-title-row .section-title{margin:0}.guidance-box,.section-note{font-size:15px;color:var(--text-muted);line-height:1.55;margin:0 0 16px}.guidance-box p{margin:0 0 8px}.guidance-box p:last-child{margin:0}.guidance-box ul{margin:4px 0 0 18px;padding:0}.guidance-box li{margin-bottom:4px}.guidance-box .link-row{display:flex;align-items:center;gap:8px}.guidance-box .link-row .monospace{flex:1 1 auto;overflow-wrap:anywhere}.meta,.muted{color:var(--text-muted)}.meta{font-size:14px}.table-link,.text-link{color:var(--accent-text);text-decoration:none;font-weight:500}.table-link:hover,.text-link:hover{text-decoration:underline}.link-button{background:none;border:none;padding:0;font:inherit;cursor:pointer;text-align:left}.monospace{font-family:var(--mono);font-size:13px;color:var(--text-muted);overflow-wrap:anywhere}.plain-list{list-style:none;margin:8px 0 0;padding:0;display:flex;flex-direction:column;gap:6px;max-height:320px;overflow-y:auto}.empty-state{padding:32px 16px;text-align:center;color:var(--text-muted);font-size:15px}.error-banner{background:var(--error-bg);border:1px solid var(--error-border);color:var(--error-text);border-radius:var(--radius);padding:12px 16px;margin-bottom:16px;font-size:14px;overflow-wrap:anywhere}.error-banner strong{display:block;margin-bottom:2px}.notice{display:flex;gap:10px;align-items:flex-start;background:var(--surface-2);border-radius:var(--radius);padding:12px 14px;font-size:14px;color:var(--text-muted);margin-bottom:16px}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);padding:16px;min-width:0}.card+.card{margin-top:12px}.card-list{display:flex;flex-direction:column;gap:12px}.card-list>.card+.card{margin-top:0}.card-grid{display:grid;grid-gap:12px;gap:12px;grid-template-columns:repeat(auto-fill,minmax(260px,1fr))}.card-title{font-size:16px;font-weight:600;line-height:1.35;margin:0;overflow-wrap:anywhere}.card-meta{font-size:14px;color:var(--text-muted);margin-top:4px;overflow-wrap:anywhere}.card-row{display:flex;align-items:flex-start;gap:12px}.card-row>.card-body{flex:1 1 auto;min-width:0}.card-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.row-group{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden}.row-group+.row-group{margin-top:16px}.row-link{display:flex;align-items:center;gap:12px;width:100%;min-height:56px;padding:10px 16px;background:none;border:none;border-top:1px solid var(--border);color:var(--text);text-decoration:none;text-align:left;cursor:pointer;font-size:16px}.row-link:first-child{border-top:none}.row-link:hover{background:var(--empty-bg)}.row-link-icon{flex:0 0 auto;width:36px;height:36px;border-radius:10px;background:var(--surface-2);color:var(--navy);display:flex;align-items:center;justify-content:center}.row-link-body{flex:1 1 auto;min-width:0}.row-link-body strong{display:block;font-weight:500}.row-link-body span{display:block;font-size:14px;color:var(--text-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.row-link-trail{flex:0 0 auto;color:var(--text-faint);display:flex;align-items:center;gap:6px;font-size:14px}.coverage{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-gap:12px;gap:12px}@media (min-width:640px){.coverage{grid-template-columns:repeat(3,minmax(0,1fr))}}.coverage-item{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:14px 16px;text-decoration:none;color:var(--text);min-width:0}.coverage-item strong{display:block;font-size:24px;font-weight:650;line-height:1.2}.coverage-item span{display:block;font-size:14px;color:var(--text-muted)}.coverage-item.is-attention strong{color:var(--warning-text)}.btn-danger,.btn-ghost,.btn-primary,.btn-secondary{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:0 18px;border-radius:10px;font-size:15px;font-weight:600;font-family:inherit;cursor:pointer;white-space:nowrap;text-decoration:none;border:1px solid transparent}.btn-primary{background:var(--accent);color:#fff}.btn-primary:hover{background:var(--accent-hover)}.btn-secondary{background:var(--surface);color:var(--text);border-color:var(--border-strong)}.btn-secondary:hover{background:var(--surface-2)}.btn-danger{background:var(--surface);color:var(--error-text);border-color:var(--error-border)}.btn-danger:hover{background:var(--error-bg)}.btn-ghost{background:none;color:var(--accent-text);padding:0 10px}.btn-ghost:hover{background:var(--accent-soft)}.btn-small{min-height:36px;padding:0 12px;font-size:14px}.btn-danger:disabled,.btn-ghost:disabled,.btn-primary:disabled,.btn-secondary:disabled{opacity:.5;cursor:default}.icon-button{width:44px;height:44px;flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;border:none;background:none;border-radius:999px;color:var(--text-muted);cursor:pointer}.icon-button:hover{background:var(--surface-2);color:var(--text)}.icon-button:disabled{opacity:.4;cursor:default}.action-row,.table-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.create-form{display:flex;flex-wrap:wrap;gap:12px 16px;align-items:flex-end}.form-field{display:flex;flex-direction:column;gap:6px;flex:1 1 200px;min-width:0}.field-label,.form-field label{font-size:14px;color:var(--text-muted);font-weight:500}.form-field input,.form-field select,.form-field textarea,.text-input{width:100%;min-height:44px;padding:10px 12px;border:1px solid var(--border-strong);border-radius:10px;font-size:16px;font-family:inherit;background:var(--surface);color:var(--text)}.form-field textarea{min-height:120px;resize:vertical}.form-field input[type=file]{padding:8px;color:var(--text-muted)}.form-field input:focus,.form-field select:focus,.form-field textarea:focus,.text-input:focus{outline:2px solid var(--accent);outline-offset:-1px;border-color:var(--accent)}.form-field-wide{flex:1 1 100%}.form-field-divider{text-align:center;color:var(--text-muted);font-size:14px;flex:1 1 100%}.form-error{width:100%;color:var(--error-text);font-size:14px}.form-actions{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap;flex:1 1 100%}.input-prefix-group{display:flex;align-items:stretch}.input-prefix-group .input-prefix{display:flex;align-items:center;padding:0 12px;border:1px solid var(--border-strong);border-right:none;border-radius:10px 0 0 10px;background:var(--surface-2);color:var(--text-muted);font-size:15px}.input-prefix-group input{border-radius:0 10px 10px 0}.search-field{position:relative;flex:1 1 auto;min-width:0}.search-field svg{position:absolute;left:12px;top:50%;transform:translateY(-50%);color:var(--text-faint);pointer-events:none}.search-field input{width:100%;min-height:44px;padding:10px 12px 10px 40px;border:1px solid var(--border-strong);border-radius:10px;background:var(--surface);font-size:16px}.search-field input:focus{outline:2px solid var(--accent);outline-offset:-1px;border-color:var(--accent)}.segmented{display:flex;background:var(--surface-2);border-radius:10px;padding:3px;gap:2px;margin-bottom:16px}.segmented button{flex:1 1;min-height:40px;border:none;border-radius:8px;background:none;font-size:15px;font-weight:500;color:var(--text-muted);cursor:pointer;white-space:nowrap}.segmented button[aria-pressed=true]{background:var(--surface);color:var(--text);font-weight:600;box-shadow:var(--shadow)}.segmented .count{color:var(--text-faint);font-weight:500;margin-left:4px}.switch{position:relative;display:inline-flex;align-items:center;width:44px;height:44px;justify-content:center;flex:0 0 auto}.switch input{-moz-appearance:none;appearance:none;-webkit-appearance:none;width:40px;height:24px;margin:0;border-radius:999px;background:var(--border-strong);position:relative;cursor:pointer;transition:background .15s ease}.switch input:after{content:"";position:absolute;top:2px;left:2px;width:20px;height:20px;border-radius:999px;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.2);transition:transform .15s ease}.switch input:checked{background:var(--accent)}.switch input:checked:after{transform:translateX(16px)}.switch input:disabled{opacity:.6;cursor:default}.knowledge-enable-toggle{display:flex;align-items:center;gap:4px}.knowledge-enable-status{font-size:13px;color:var(--text-muted)}.knowledge-enable-error{color:var(--error-text)}.badge{display:inline-flex;align-items:center;height:24px;padding:0 8px;border-radius:6px;font-size:13px;font-weight:500;white-space:nowrap;background:var(--surface-2);color:var(--text-muted)}.badge-row{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.badge-due,.badge-due-soon,.badge-pending{background:var(--warning-bg);color:var(--warning-text)}.badge-overdue{background:var(--error-bg);color:var(--error-text)}.badge-current{background:var(--success-bg);color:var(--success-text)}.badge-unknown{background:var(--surface-2);color:var(--text-muted)}.badge-recommended,.badge-shared{background:var(--accent-soft);color:var(--accent-text)}.badge-private{background:var(--surface-2);color:var(--text-muted)}.reason{display:flex;gap:6px;align-items:flex-start;font-size:14px;color:var(--accent-text);margin-top:8px}.reason svg{flex:0 0 auto;margin-top:2px}.table-scroll{width:100%;overflow-x:auto;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius)}.vessel-table{width:100%;border-collapse:collapse;font-size:15px}.vessel-table th{text-align:left;padding:10px 16px;color:var(--text-muted);font-weight:500;font-size:13px;white-space:nowrap}.vessel-table td,.vessel-table th{border-bottom:1px solid var(--border)}.vessel-table td{padding:12px 16px;vertical-align:middle}.vessel-table tbody tr:last-child td{border-bottom:none}.vessel-name{font-weight:500}@media (max-width:767px){.responsive-table{background:none;border:none;overflow:visible}.responsive-table .vessel-table,.responsive-table .vessel-table tbody{display:block}.responsive-table .vessel-table thead{display:none}.responsive-table .vessel-table tr{display:block;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:8px 16px;margin-bottom:12px}.responsive-table .vessel-table td{display:flex;justify-content:space-between;gap:16px;padding:6px 0;border:none;text-align:right;overflow-wrap:anywhere}.responsive-table .vessel-table td:before{content:attr(data-label);color:var(--text-muted);font-family:var(--font);font-size:14px;text-align:left;flex:0 0 auto}.responsive-table .vessel-table td[data-label=""]:before{content:none}.responsive-table .vessel-table td.vessel-name{font-size:16px;text-align:left}}.detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-gap:16px;gap:16px;margin:0}.detail-grid dt{margin:0 0 2px;color:var(--text-muted);font-size:14px}.detail-grid dd{margin:0;min-width:0;overflow-wrap:anywhere}@media (max-width:639px){.detail-grid{grid-template-columns:1fr}}details.disclosure{border-top:1px solid var(--border);padding:4px 0}details.disclosure:last-of-type{border-bottom:1px solid var(--border)}details.disclosure>summary{list-style:none;cursor:pointer;min-height:52px;display:flex;align-items:center;justify-content:space-between;gap:12px;font-weight:600}details.disclosure>summary::-webkit-details-marker{display:none}details.disclosure>summary:after{content:"";width:8px;height:8px;border-right:2px solid var(--text-faint);border-bottom:2px solid var(--text-faint);transform:rotate(45deg);margin-right:4px;transition:transform .15s ease}details.disclosure[open]>summary:after{transform:rotate(-135deg)}details.disclosure>.disclosure-body{padding:4px 0 20px}.chat-page{display:flex;flex-direction:column;height:calc(100dvh - var(--header-h) - var(--nav-h) - var(--safe-bottom));max-width:820px;margin:0 auto}.vessel-chat{flex:1 1 auto;min-height:0;display:flex;flex-direction:column}.vessel-chat-messages-wrap{position:relative;flex:1 1 auto;min-height:0;display:flex}.vessel-chat-messages{flex:1 1 auto;overflow-y:auto;padding:16px 16px 8px;display:flex;flex-direction:column;gap:16px;overscroll-behavior:contain}.chat-intro{text-align:center;padding:32px 16px 8px;color:var(--text-muted)}.chat-intro .avatar{width:56px;height:56px;font-size:22px;margin:0 auto 12px}.chat-intro h2{margin:0;font-size:22px;font-weight:650}.chat-intro p{margin:4px 0 0;font-size:15px}.vessel-chat-jump-button{position:absolute;right:16px;bottom:12px;width:40px;height:40px;border-radius:999px;border:1px solid var(--border);background:var(--surface);color:var(--text);box-shadow:var(--shadow-raised);cursor:pointer;display:flex;align-items:center;justify-content:center}.chat-bubble-row{display:flex;justify-content:flex-start}.chat-bubble-row.own{justify-content:flex-end}.chat-bubble{max-width:min(85%,620px);background:var(--surface);border:1px solid var(--border);border-radius:18px;border-bottom-left-radius:6px;padding:10px 14px;font-size:16px;min-width:0}.chat-bubble-row.own .chat-bubble{background:var(--navy);border-color:var(--navy);color:#fff;border-radius:18px;border-bottom-right-radius:6px}.chat-bubble.agent{background:none;border:none;padding:0;max-width:100%;width:100%}.chat-bubble-sender{font-size:13px;font-weight:600;color:var(--text-muted);margin-bottom:4px}.chat-agent-head{display:flex;align-items:center;gap:8px;margin-bottom:6px}.chat-agent-head .avatar{width:26px;height:26px;font-size:12px}.chat-agent-head strong{font-size:15px}.chat-agent-head .chat-bubble-time{margin:0}.chat-bubble-body{white-space:pre-wrap;word-break:break-word}.chat-paragraph+.chat-paragraph{margin-top:10px}.chat-bubble-time{font-size:12px;color:var(--text-faint);margin-top:4px}.chat-bubble-row.own .chat-bubble-time{color:hsla(0,0%,100%,.7);text-align:right}.chat-bubble-voice-icon{display:inline-flex;vertical-align:-3px;margin-right:4px;opacity:.8}.chat-bubble-pending .chat-bubble-body{display:flex;align-items:center;gap:8px;color:var(--text-muted)}.chat-bubble-pending-dots{display:inline-flex;gap:3px}.chat-bubble-pending-dots span{width:6px;height:6px;border-radius:50%;background:var(--text-faint);animation:chat-bubble-pending-bounce 1.2s ease-in-out infinite}.chat-bubble-pending-dots span:nth-child(2){animation-delay:.15s}.chat-bubble-pending-dots span:nth-child(3){animation-delay:.3s}@keyframes chat-bubble-pending-bounce{0%,80%,to{opacity:.3;transform:translateY(0)}40%{opacity:1;transform:translateY(-3px)}}.message-tools{display:flex;align-items:center;gap:2px;margin-top:4px;margin-left:-10px}.message-tools .icon-button{width:36px;height:36px}.chip-row{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.chip{display:inline-flex;align-items:center;gap:6px;max-width:100%;min-height:32px;padding:4px 10px;border-radius:8px;border:1px solid var(--border);background:var(--surface);font-size:13px;font-weight:500;color:var(--text);cursor:pointer;text-align:left}.chip:hover{border-color:var(--border-strong);background:var(--empty-bg)}.chip span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.chip svg{flex:0 0 auto;color:var(--accent-text)}.chip-inference{border-style:dashed;background:none}.chip-inference,.chip-inference svg{color:var(--text-muted)}.effect-list{display:flex;flex-direction:column;gap:6px;margin-top:10px}.effect{display:flex;align-items:center;gap:8px;font-size:14px;color:var(--text-muted);min-width:0}.effect svg{flex:0 0 auto;color:var(--success-text)}.effect a{color:var(--text-muted);text-decoration:none;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.effect a:hover{color:var(--text);text-decoration:underline}.effect a strong{color:var(--text);font-weight:500}.effect.is-undone{opacity:.6}.effect.is-undone a{text-decoration:line-through}.effect .btn-ghost{min-height:32px;padding:0 8px;font-size:14px;margin-left:auto;flex:0 0 auto}.proposal-card{margin-top:10px;border:1px solid var(--border-strong);border-radius:var(--radius);background:var(--surface);padding:12px 14px}.proposal-card-label{font-size:13px;font-weight:600;color:var(--text-muted)}.proposal-card p{margin:4px 0 0}.proposal-card .card-actions{margin-top:10px}.vessel-chat-composer{flex:0 0 auto;padding:8px 12px 12px;background:linear-gradient(to bottom,rgba(245,246,248,0),var(--bg) 12px)}.composer-field{display:flex;align-items:flex-end;gap:4px;background:var(--surface);border:1px solid var(--border-strong);border-radius:24px;padding:4px;box-shadow:var(--shadow)}.composer-field:focus-within{border-color:var(--accent)}.composer-field textarea{flex:1 1 auto;min-width:0;min-height:44px;max-height:200px;padding:11px 8px 11px 14px;border:none;outline:none;background:none;resize:none;font-size:16px;line-height:22px;white-space:pre-wrap;word-break:break-word;overflow-y:auto}.composer-send{width:44px;height:44px;flex:0 0 auto;border-radius:999px;border:none;background:var(--accent);color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer}.composer-send:disabled{background:var(--surface-2);color:var(--text-faint);cursor:default}.composer-recording{display:flex;align-items:center;gap:8px;min-height:44px;flex:1 1 auto;padding-left:8px;min-width:0}.recording-dot{width:10px;height:10px;border-radius:999px;background:#d93025;flex:0 0 auto;animation:recording-pulse 1.4s ease-in-out infinite}@keyframes recording-pulse{0%,to{opacity:1}50%{opacity:.35}}.recording-time{font-feature-settings:"tnum";font-variant-numeric:tabular-nums;font-size:15px;color:var(--text);flex:0 0 auto}.waveform{flex:1 1 auto;min-width:0;height:28px;display:flex;align-items:center;justify-content:flex-end;gap:2px;overflow:hidden}.waveform span{flex:0 0 3px;border-radius:2px;background:var(--accent);min-height:3px}.composer-hint{font-size:13px;color:var(--text-muted);text-align:center;margin:6px 0 0}.modal-overlay,.sheet-overlay{position:fixed;inset:0;background:rgba(15,29,54,.4);display:flex;align-items:flex-end;justify-content:center;z-index:100;overflow-y:auto}.modal-panel,.sheet{background:var(--surface);width:100%;max-width:640px;max-height:calc(100dvh - 48px);overflow-y:auto;border-radius:var(--radius-lg) var(--radius-lg) 0 0;box-shadow:var(--shadow-raised);padding:8px 20px calc(20px + var(--safe-bottom))}.modal-panel:before,.sheet:before{content:"";display:block;width:36px;height:4px;border-radius:999px;background:var(--border-strong);margin:0 auto 12px}@media (min-width:768px){.modal-overlay,.sheet-overlay{align-items:flex-start;padding:64px 24px}.modal-panel,.sheet{border-radius:var(--radius-lg);padding:20px 24px 24px;max-height:none}.modal-panel:before,.sheet:before{display:none}}.modal-panel-wide{max-width:920px}.modal-header,.sheet-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:16px}.modal-header h2,.sheet-header h2{font-size:19px;font-weight:600;margin:0;line-height:1.3;overflow-wrap:anywhere}.modal-close{width:44px;height:44px;margin:-10px -12px 0 0;flex:0 0 auto;background:none;border:none;font-size:24px;line-height:1;cursor:pointer;color:var(--text-muted);border-radius:999px}.modal-close:hover{background:var(--surface-2);color:var(--text)}.modal-section{margin-bottom:20px}.modal-section-title{font-size:15px;font-weight:600;color:var(--text);margin-bottom:8px}.modal-footer{display:flex;justify-content:flex-end;gap:8px;padding-top:12px;border-top:1px solid var(--border);flex-wrap:wrap}.modal-search{width:100%;min-height:44px;padding:10px 12px;border:1px solid var(--border-strong);border-radius:10px;font-size:16px;background:var(--surface);margin-bottom:12px}.sheet-excerpt{background:var(--surface-2);border-radius:var(--radius-sm);padding:12px 14px;font-size:15px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere;margin:12px 0}.sheet-meta{display:flex;flex-wrap:wrap;gap:6px 16px;font-size:14px;color:var(--text-muted)}.checkbox-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-gap:8px 20px;gap:8px 20px}@media (max-width:639px){.checkbox-grid{grid-template-columns:1fr}}.checkbox-option{display:flex;align-items:center;gap:10px;min-height:36px;font-size:15px;font-weight:400;min-width:0}.checkbox-option input[type=checkbox]{width:18px;height:18px;flex-shrink:0;accent-color:var(--accent)}.catalog-list{display:flex;flex-direction:column}.catalog-item{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid var(--border)}.catalog-item:last-child{border-bottom:none}.catalog-item-main{flex:1 1 auto;min-width:0}.catalog-item-title{font-weight:500;overflow-wrap:anywhere}.catalog-item-detail{font-size:14px;color:var(--text-muted);margin-top:2px}.catalog-reason{font-size:14px;color:var(--accent-text);margin-top:4px}.knowledge-section-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:16px}.list-modal-overlay{padding:16px;align-items:center}.list-modal-panel{width:min(96vw,1500px);max-width:none;height:min(90vh,900px);display:flex;flex-direction:column;border-radius:var(--radius-lg);padding:20px 24px 24px}.list-modal-panel:before{display:none}.list-modal-body{min-height:0;flex:1 1;display:flex;flex-direction:column;gap:12px}.list-view-toggle{align-self:flex-start;margin-bottom:4px}.record-cards{overflow-y:auto;min-height:0;flex:1 1;display:flex;flex-direction:column;gap:10px}.record-card dl{margin:6px 0 0;display:grid;grid-template-columns:auto 1fr;grid-gap:2px 12px;gap:2px 12px;font-size:14px}.record-card dt{color:var(--text-muted)}.record-card dd{margin:0;min-width:0;overflow-wrap:anywhere}@media (max-width:767px){.list-modal-overlay{padding:0;align-items:stretch}.import-modal-panel,.list-modal-panel{width:100vw;height:100dvh;max-height:none;border-radius:0;padding:12px 16px calc(16px + var(--safe-bottom))}}.editable-list-scroll{min-height:0;flex:1 1;overflow:auto;border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface)}.editable-list{table-layout:fixed;font-size:14px}.editable-list thead th{position:-webkit-sticky;position:sticky;top:0;z-index:2;background:var(--surface);box-shadow:inset 0 -1px 0 var(--border);padding:8px 10px}.editable-list tbody td{padding:0;border-bottom:1px solid var(--border);vertical-align:middle;overflow:hidden}.editable-list tbody tr:hover>td{background:var(--empty-bg)}.editable-list tbody tr.grid-row-dragging>td{opacity:.4}.grid-handle-col{width:28px;min-width:28px;text-align:center}.grid-drag-handle{display:block;padding:4px 0;color:var(--text-faint);cursor:-webkit-grab;cursor:grab;font-size:13px;-webkit-user-select:none;-moz-user-select:none;user-select:none}.editable-list tbody tr[draggable=true]:active .grid-drag-handle{cursor:-webkit-grabbing;cursor:grabbing}.grid-th{position:relative}.grid-th-label{display:block;overflow:hidden;text-overflow:ellipsis}.col-resize-handle{position:absolute;top:0;right:0;width:8px;height:100%;cursor:col-resize;z-index:3;touch-action:none}.col-resize-handle:after{content:"";position:absolute;top:4px;bottom:4px;right:3px;width:2px;border-radius:1px;background:var(--border)}.col-resize-handle:hover:after{background:var(--accent)}body.col-resizing{cursor:col-resize!important}body.col-resizing,body.col-resizing *{-webkit-user-select:none!important;-moz-user-select:none!important;user-select:none!important}.grid-input{display:block;width:100%;min-width:90px;border:1px solid transparent;background:transparent;color:inherit;font:inherit;padding:8px 10px;border-radius:0}.grid-input:hover{border-color:var(--border)}.grid-input:focus{border-color:var(--accent);outline:none;background:var(--surface)}.grid-derived{display:block;padding:8px 10px;color:var(--text-muted);white-space:nowrap}.combo-trigger{text-align:left;cursor:pointer;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.combo-menu{position:absolute;z-index:200;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-sm);box-shadow:var(--shadow-raised);max-height:260px;overflow-y:auto;font-size:14px}.combo-option{padding:8px 12px;cursor:pointer;white-space:nowrap}.combo-option:hover{background:var(--empty-bg)}.multiselect-option{display:flex;align-items:center;gap:8px}.multiselect-option input[type=checkbox]{margin:0;cursor:pointer}.combo-empty{padding:8px 12px;color:var(--text-muted);font-style:italic}.combo-add-row{border-top:1px solid var(--border);padding:6px;position:-webkit-sticky;position:sticky;bottom:0;background:var(--surface)}.combo-add-row input{width:100%;padding:6px 8px;border:1px solid var(--border);border-radius:6px;font:inherit}.combo-add-row input:focus{outline:none;border-color:var(--accent)}.grid-insert-row td{padding:0;border-bottom:none;height:7px}.grid-insert-btn{display:flex;align-items:center;justify-content:center;width:100%;height:7px;border:none;background:transparent;color:var(--accent);cursor:pointer;font-size:12px;line-height:1;padding:0;opacity:0;transition:opacity .1s ease,background .1s ease}.grid-insert-btn:focus-visible,.grid-insert-row:hover .grid-insert-btn{opacity:1;background:var(--empty-bg)}.grid-insert-btn:disabled{opacity:1;cursor:default}.grid-delete-col{width:36px;min-width:36px;text-align:center}.grid-delete-btn{display:block;width:100%;border:none;background:transparent;cursor:pointer;font-size:14px;padding:8px 0;opacity:.35;transition:opacity .1s ease,background .1s ease}.editable-list tbody tr:hover .grid-delete-btn,.grid-delete-btn:focus-visible{opacity:1}.grid-delete-btn:hover{background:var(--error-bg);opacity:1}.grid-delete-btn:disabled{opacity:.6;cursor:default}.grid-add-row-btn{align-self:flex-start}.grid-footer-actions{justify-content:space-between;align-items:center;margin-top:8px}.grid-footer-actions,.grid-save-actions{display:flex;gap:8px;flex-wrap:wrap}.memory-list{gap:10px;min-height:0}.memory-list,.memory-row{display:flex;flex-direction:column}.memory-row{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:10px 12px;gap:6px;scroll-margin-top:calc(var(--header-h) + 16px)}.memory-row:target{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}.memory-textarea{width:100%;min-height:3.5em;resize:vertical;border:1px solid var(--border);border-radius:var(--radius-sm);padding:8px 10px;font:inherit;background:var(--surface)}.memory-textarea:focus{border-color:var(--accent);outline:none}.memory-text-readonly{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.memory-row-footer{display:flex;align-items:center;justify-content:space-between;gap:8px}.memory-row-footer input[type=text]{flex:1 1 auto;min-width:0;min-height:40px;border:1px solid transparent;border-radius:var(--radius-sm);padding:6px 8px;font-size:16px;background:none}.memory-row-footer input[type=text]:focus{border-color:var(--accent);outline:none;background:var(--surface)}.memory-meta{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;flex:1 1 auto}.memory-row-footer .grid-delete-btn{width:40px;height:40px;flex:0 0 auto;padding:0;opacity:.6;border-radius:var(--radius-sm)}.memory-row-footer .grid-delete-btn:focus-visible,.memory-row:hover .memory-row-footer .grid-delete-btn{opacity:1}.simple-list-drag-handle{flex:0 0 auto;width:32px;height:40px;touch-action:none;cursor:-webkit-grab;cursor:grab;background:none;border:none;padding:0;color:var(--text-faint);font-size:18px;line-height:1}.simple-list-drag-handle:active{cursor:-webkit-grabbing;cursor:grabbing}.simple-list-row-dragging{opacity:.6;border-style:dashed}.simple-list-checkbox{flex:0 0 auto;width:20px;height:20px;accent-color:var(--accent)}.simple-list-item-checked{text-decoration:line-through;color:var(--text-muted)}.simple-list-description{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.import-modal-panel{width:min(92vw,720px);max-width:none;max-height:90vh}.import-modal-panel,.import-step{display:flex;flex-direction:column}.import-step{gap:14px;min-height:0;overflow-y:auto}.import-mode-choice{border:1px solid var(--border);border-radius:var(--radius);padding:12px;display:flex;flex-direction:column;gap:6px}.import-mode-choice legend{font-size:14px;font-weight:600;color:var(--text-muted);padding:0 4px}.import-mode-choice label{display:flex;align-items:center;gap:8px;font-size:15px;cursor:pointer;min-height:36px}.import-mapping-scroll{max-height:45vh;overflow:auto;border:1px solid var(--border);border-radius:var(--radius-sm)}.import-mapping-scroll table{width:100%}.import-mapping-scroll .grid-input{border-color:var(--border)}@media (hover:none){.grid-insert-btn{opacity:1}.grid-delete-btn{opacity:.6}}.memory-cleanup-status{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:8px 0 12px}.memory-cleanup-error{font-size:14px}.memory-cleanup-list{list-style:none;margin:8px 0 0;padding:0;display:flex;flex-direction:column;gap:10px}.memory-cleanup-item{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:12px 14px;display:flex;flex-direction:column;gap:6px}.memory-cleanup-item.is-undone{opacity:.6}.memory-cleanup-item-head{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap}.memory-cleanup-texts{margin:0;padding-left:20px}.memory-cleanup-texts li{white-space:pre-wrap;overflow-wrap:anywhere}.memory-cleanup-result{font-style:italic;overflow-wrap:anywhere}.memory-cleanup-item-actions{display:flex;gap:8px}.install-prompt{position:fixed;left:16px;right:16px;bottom:calc(16px + var(--nav-h) + var(--safe-bottom));z-index:150;max-width:440px;margin:0 auto;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow-raised);padding:12px 16px;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.install-prompt p{margin:0;font-size:15px;flex:1 1 200px}.install-prompt-actions{display:flex;gap:8px;flex:0 0 auto}.centered-page{max-width:440px;margin:48px auto;padding:0 16px}.list-modal-panel-narrow{width:min(96vw,640px);height:auto;max-height:90vh}.list-modal-panel-narrow .list-modal-body{overflow-y:auto}@media (max-width:767px){.list-modal-panel-narrow{width:100vw;height:100dvh;max-height:none}}.source-more{margin-top:8px;padding-left:48px}.source-more>summary{list-style:none;cursor:pointer;display:inline-flex;align-items:center;min-height:32px}.source-more>summary::-webkit-details-marker{display:none}.source-more .card-actions{margin-top:4px}.search-result+.search-result{margin-top:12px}.search-row{display:flex;gap:8px;align-items:center}