:root{
  --blue:#24599f;--blue-dark:#19477f;--blue-pale:#edf3fb;--surface:#fff;--bg:#eeeff4;
  --line:#d9ddea;--text:#17243a;--muted:#69758a;--yellow:#ffd10c;--danger:#c54444;
  --success:#257a54;--warning:#a86b11;--shadow:0 12px 34px rgba(28,52,84,.12)
}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:"Noto Sans JP","Yu Gothic UI",Meiryo,"Microsoft YaHei",sans-serif;background:var(--bg);color:var(--text);font-size:14px}
button,input,select,textarea{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid rgba(36,89,159,.2);outline-offset:1px}
.hidden{display:none!important}.muted{color:var(--muted)}.full{width:100%}
.primary,.secondary,.danger,.ai-button,.accent-button,.icon-button,.link-button{border:1px solid transparent;border-radius:7px;padding:9px 13px;font-weight:650;transition:.17s;display:inline-flex;align-items:center;justify-content:center;gap:7px}
.primary{background:var(--blue);border-color:var(--blue);color:#fff}.primary:hover{background:var(--blue-dark)}
.secondary{background:#fff;border-color:var(--line);color:var(--text)}.secondary:hover{background:#f8fafc;border-color:#aeb8c8}
.danger{background:#fff;border-color:#edc8c8;color:var(--danger)}.danger:hover{background:#fff3f3}
.ai-button{background:#15191f;border-color:#15191f;color:#fff}.ai-button:hover{background:var(--yellow);border-color:var(--yellow);color:var(--text)}
.accent-button{background:var(--blue);border-color:var(--blue);color:#fff}.accent-button:hover{background:var(--blue-dark)}
.icon-button{background:#fff;border-color:var(--line);color:#5f6b7d;padding:8px 10px}.icon-button:hover{background:var(--blue-pale);color:var(--blue);border-color:#aec5e3}.icon-button.active{background:var(--blue-pale);color:var(--blue);border-color:#aec5e3}
.link-button{background:transparent;color:var(--blue);padding:6px;border:0}

.auth-screen{min-height:100vh;display:grid;place-items:center;background:radial-gradient(circle at top left,#dce8fa 0,transparent 38%),linear-gradient(135deg,#f7f8fb,#eaedf3)}
.auth-card{position:relative;width:min(420px,92vw);background:#fff;padding:38px;border-radius:18px;box-shadow:var(--shadow);text-align:center}.auth-card h1{margin:12px 0 8px;font-size:29px}.auth-card p{color:var(--muted);line-height:1.7;margin-bottom:25px}.auth-card label{display:block;text-align:left;margin:13px 0;color:#4b5568}.auth-card input{width:100%;margin-top:6px;padding:12px;border:1px solid var(--line);border-radius:8px}.form-error{color:var(--danger);min-height:20px;margin-top:10px}
.brand-mark{width:60px;height:60px;border-radius:16px;background:var(--blue);color:#fff;display:grid;place-items:center;font-weight:800;font-size:28px;margin:auto}.brand-mark.small{width:34px;height:34px;border-radius:9px;background:#fff;color:var(--blue);font-size:17px;margin:0}
.language-select{border:1px solid var(--line);border-radius:7px;background:#fff;color:#4b566c;padding:7px 8px}.auth-language{position:absolute;top:16px;right:16px;font-size:12px}.top-language{max-width:92px;font-size:12px}

.app{display:grid;grid-template-columns:232px minmax(0,1fr);min-height:100vh}.sidebar{background:var(--blue);color:#fff;display:flex;flex-direction:column;padding:23px 15px 16px;position:sticky;top:0;height:100vh;overflow:auto}.brand{display:flex;align-items:center;gap:11px;padding:0 8px 25px;font-weight:750;letter-spacing:.03em;font-size:16px}.sidebar-nav{display:block}.nav-label{font-size:11px;color:rgba(255,255,255,.58);margin:12px 11px 7px;letter-spacing:.1em}.sidebar-title{display:flex;align-items:center;justify-content:space-between;margin:20px 10px 7px;font-size:11px;color:rgba(255,255,255,.58);letter-spacing:.08em}.sidebar-add{border:0;background:rgba(255,255,255,.12);color:#fff;width:26px;height:26px;border-radius:6px;padding:0}.sidebar-add:hover{background:rgba(255,255,255,.22)}
.folder-row-wrap{position:relative;display:flex;align-items:center;margin:3px 0;border-radius:8px}.folder-row{flex:1;min-width:0;width:100%;border:0;background:transparent;color:rgba(255,255,255,.78);padding:10px 66px 10px 12px;border-radius:8px;text-align:left;display:flex;align-items:center;gap:10px;margin:0}.folder-row:hover{background:rgba(255,255,255,.1);color:#fff}.folder-row.active{background:#fff;color:var(--blue);font-weight:750}.folder-rename,.folder-delete{position:absolute;width:27px;height:27px;border:0;border-radius:6px;background:transparent;color:rgba(255,255,255,.62);opacity:0;transition:.15s;padding:0}.folder-rename{right:35px}.folder-delete{right:5px}.folder-row-wrap:hover .folder-rename,.folder-row-wrap:hover .folder-delete,.folder-row-wrap.active .folder-rename,.folder-row-wrap.active .folder-delete{opacity:1}.folder-rename:hover{background:rgba(255,255,255,.18);color:#fff}.folder-delete:hover{background:rgba(197,68,68,.88);color:#fff}.folder-row-wrap.active .folder-rename,.folder-row-wrap.active .folder-delete{color:var(--blue)}.folder-row-wrap.active .folder-rename:hover{background:var(--blue-pale);color:var(--blue)}.folder-row-wrap.active .folder-delete:hover{color:#fff}.nav-icon{width:18px;text-align:center}.folder-children{padding-left:12px}.sidebar-footer{margin-top:auto}.service-status{font-size:11px;line-height:1.6;color:rgba(255,255,255,.65);padding:12px 8px}.profile{border-top:1px solid rgba(255,255,255,.17);padding:17px 7px 0;display:flex;align-items:center;gap:10px}.avatar{width:34px;height:34px;border-radius:50%;background:#fff;color:var(--blue);display:grid;place-items:center;font-weight:800;flex:none}.profile-text{min-width:0;flex:1}.profile-text strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.profile-text small{display:block;color:rgba(255,255,255,.62);margin-top:2px;font-size:11px}.profile-logout{border:0;background:transparent;color:rgba(255,255,255,.72);font-size:19px;padding:6px}.profile-logout:hover{color:#fff}

.main-shell{min-width:0}.topbar{height:68px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 28px;position:sticky;top:0;z-index:20;gap:20px}.page-title{display:flex;flex-direction:column;gap:2px;white-space:nowrap}.page-title strong{font-size:16px}.page-title span{font-size:11px;color:var(--muted)}.top-actions{display:flex;align-items:center;gap:8px;margin-left:auto;min-width:0}.global-search{width:min(390px,34vw);position:relative}.global-search input{width:100%;border:1px solid var(--line);border-radius:8px;padding:10px 14px 10px 38px;background:#f7f8fb}.search-icon{position:absolute;left:13px;top:9px;color:var(--muted);font-size:18px}
.workspace{height:calc(100vh - 68px);display:grid;grid-template-columns:minmax(0,1fr) 330px}.content{padding:25px 28px 38px;overflow:auto}.content-toolbar{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:18px}.eyebrow{font-size:11px;font-weight:800;letter-spacing:.15em;color:var(--blue);margin:0 0 5px}.content-toolbar h2{font-size:25px;margin:0 0 5px}.view-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}.view-switch{display:flex;gap:5px;margin-left:3px}.view-button{width:38px;padding:9px}
.worker-monitor{background:#fff;border:1px solid var(--line);border-radius:11px;padding:15px 17px;margin-bottom:15px;box-shadow:0 2px 5px rgba(40,50,70,.03)}.worker-monitor-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.worker-title-line{display:flex;align-items:center;gap:8px}.worker-online{display:inline-flex;align-items:center;border-radius:999px;background:#e8f8f1;color:var(--success);padding:3px 8px;font-size:10px;font-weight:750}.worker-online.offline{background:#fff0f0;color:var(--danger)}.worker-toggle{padding:5px 9px}.worker-toggle.active{transform:rotate(180deg)}.worker-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(118px,1fr));gap:9px;margin-top:13px}.worker-metric{background:#f7f8fb;border:1px solid #e6e9f0;border-radius:8px;padding:9px 11px}.worker-metric span{display:block;color:var(--muted);font-size:11px}.worker-metric strong{display:block;font-size:19px;margin-top:4px}.worker-progress{height:8px;background:#e9edf4;border-radius:999px;overflow:hidden;margin-top:12px}.worker-progress>div{height:100%;width:0;background:var(--blue);border-radius:inherit;transition:width .3s}.worker-monitor-details{display:grid;grid-template-columns:1fr 1fr;gap:14px;border-top:1px solid var(--line);margin-top:14px;padding-top:13px}.worker-list-block h4{margin:0 0 8px;font-size:12px}.worker-job-list{border:1px solid #e4e7ee;border-radius:8px;max-height:235px;overflow:auto;background:#fafbfc}.worker-job{display:flex;align-items:center;gap:9px;padding:9px 10px;border-bottom:1px solid #e9ebf1}.worker-job:last-child{border-bottom:0}.worker-position{width:25px;height:25px;border-radius:50%;background:var(--blue-pale);color:var(--blue);display:grid;place-items:center;font-size:10px;font-weight:750;flex:none}.worker-job-main{min-width:0;flex:1}.worker-job-main strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px;margin-bottom:5px}.worker-empty{padding:18px 12px;text-align:center;color:var(--muted);font-size:12px}
.file-surface{background:var(--surface);border:1px solid var(--line);border-radius:11px;box-shadow:0 2px 5px rgba(40,50,70,.03);min-height:430px;overflow:hidden}.table-wrap{overflow:auto}.file-table{width:100%;border-collapse:collapse}.file-table th{text-align:left;background:#f7f8fb;color:#536176;font-size:11px;letter-spacing:.07em;padding:11px 14px;border-bottom:1px solid var(--line);white-space:nowrap}.file-table td{padding:13px 14px;border-bottom:1px solid #e9ebf1;vertical-align:middle}.file-table tbody tr{transition:.15s}.file-table tbody tr:hover>td{background:#f7f9fc}.file-table tbody tr.selected>td{background:#edf3fb}.file-table tbody tr.active-detail>td{background:#fff1c7!important}.file-table tbody tr.active-detail>td:first-child{box-shadow:inset 4px 0 0 #d59a2a}.file-table tbody tr.selected.active-detail>td{background:#fff1c7!important}.file-table tbody tr.selected.active-detail>td:first-child{box-shadow:inset 4px 0 0 #d59a2a}.file-table tbody tr.selected.active-detail>td:last-child{box-shadow:inset -3px 0 0 #7ea2cf}.file-table.compact td{padding-top:7px;padding-bottom:7px}.file-table.compact .file-icon{width:30px;height:30px;border-radius:6px}.file-table.compact .file-name-sub{display:none}.check-col{width:38px}.file-name-cell{display:flex;align-items:center;gap:12px;min-width:240px}.file-name-main{font-weight:720;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:310px}.file-name-sub{font-size:11px;color:var(--muted);margin-top:3px}.file-icon{width:38px;height:38px;border-radius:8px;background:var(--blue-pale);color:var(--blue);display:grid;place-items:center;font-size:10px;font-weight:800;flex:none}.file-icon.large{width:54px;height:54px;border-radius:12px;font-size:12px}.status-pill{display:inline-flex;align-items:center;padding:4px 8px;border-radius:999px;font-size:11px;background:#eef1f7;color:#5c6678;white-space:nowrap}.status-ready{background:#e8f8f1;color:var(--success)}.status-failed{background:#fff0f0;color:var(--danger)}.status-processing{background:#fff7e5;color:var(--warning)}.tag{display:inline-block;background:var(--blue-pale);color:var(--blue);border-radius:999px;padding:3px 8px;font-size:11px;margin:2px 3px 2px 0}.row-actions{display:flex;gap:4px;justify-content:flex-end}.row-actions button{border:0;background:transparent;color:#617087;padding:6px}.row-actions button:hover{color:var(--blue);background:var(--blue-pale);border-radius:5px}
.grid-view{padding:17px;display:grid;grid-template-columns:repeat(auto-fill,minmax(185px,1fr));gap:13px}.document-card{position:relative;border:1px solid var(--line);border-radius:9px;padding:13px;background:#fff;transition:.18s;min-width:0}.document-card:hover{transform:translateY(-2px);box-shadow:var(--shadow);border-color:#b9c4d5}.document-card.selected{border-color:#8fb1dc;background:#f6f9fd}.document-card.active-detail{border-color:#d6a44a;background:#fff9ec;box-shadow:0 0 0 2px rgba(213,154,42,.12)}.document-card.selected.active-detail{border-color:#d6a44a;background:#fff9ec;box-shadow:inset 0 0 0 2px rgba(73,118,174,.16),0 0 0 2px rgba(213,154,42,.10)}.document-card-check{position:absolute;top:10px;left:10px;z-index:2}.document-thumb{height:108px;border-radius:7px;background:#f0f3f8;display:grid;place-items:center;margin-bottom:12px;font-size:27px;color:var(--blue);font-weight:800}.document-card-title{display:block;font-weight:730;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.document-card-meta{font-size:11px;color:var(--muted);margin-top:5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.document-card-tags{height:25px;overflow:hidden;margin-top:6px}.document-card-actions{display:flex;justify-content:flex-end;gap:4px;margin-top:8px}.document-card-actions button{border:0;background:transparent;color:#617087;padding:5px}.document-card-actions button:hover{background:var(--blue-pale);color:var(--blue);border-radius:5px}
.empty-state{text-align:center;padding:78px 20px;color:var(--muted)}.empty-state h3{color:var(--text)}.empty-icon{font-size:48px;color:#b8c0d2}.drop-zone{position:fixed;inset:88px 350px 24px 252px;border:3px dashed var(--blue);background:rgba(238,243,251,.94);z-index:40;border-radius:18px;display:grid;place-items:center;color:var(--blue);font-size:22px;font-weight:750}

.detail-panel{background:#fff;border-left:1px solid var(--line);padding:20px;overflow:auto}.detail-empty{height:100%;display:grid;place-content:center;text-align:center;color:var(--muted)}.detail-icon{font-size:42px}.detail-header{display:flex;align-items:center;gap:12px}.detail-header h3{margin:0 0 4px;font-size:18px;word-break:break-word}.detail-actions{display:flex;gap:7px;margin:18px 0}.field-label{display:block;color:#4f5b70;margin:12px 0;font-size:12px;font-weight:650}.field-label input,.field-label textarea,.field-label select{display:block;width:100%;margin-top:6px;border:1px solid #cbd2df;border-radius:7px;padding:10px;background:#fff;color:var(--text);font-weight:400}.field-label textarea{resize:vertical}.field-label small{display:block;color:var(--muted);font-weight:400;margin-top:5px;line-height:1.5}.two-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px}.detail-section{border-top:1px solid var(--line);padding-top:15px;margin-top:18px}.detail-section h4{margin:0 0 10px}.summary-text{white-space:pre-wrap;line-height:1.75;color:#414b5f}.detail-section pre{white-space:pre-wrap;word-break:break-all;background:#f7f8fb;padding:10px;border-radius:8px;font-size:11px;max-height:250px;overflow:auto}

.modal{position:fixed;inset:0;background:rgba(10,21,38,.55);z-index:100;display:grid;place-items:center;padding:20px}.modal-card{background:#fff;border-radius:13px;box-shadow:0 28px 80px rgba(0,0,0,.25);width:min(94vw,520px);max-height:92vh;overflow:auto;padding:22px}.modal-card.small{width:min(94vw,420px)}.modal-card.upload-card{width:min(94vw,820px)}.modal-card.ai-modal-card{width:min(94vw,760px)}.modal-card.result-card{width:min(96vw,980px)}.modal-head{display:flex;justify-content:space-between;align-items:flex-start;gap:15px}.modal-head h3{margin:0 0 4px;font-size:19px}.modal-head>button{border:0;background:transparent;font-size:26px;color:#7c8494}.modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:20px}.selected-files{background:#f7f8fb;border:1px solid var(--line);border-radius:8px;padding:10px;max-height:130px;overflow:auto;line-height:1.7;margin:15px 0}.archive-upload-hint{display:flex;gap:9px;align-items:flex-start;background:var(--blue-pale);border:1px solid #c9d9ed;border-radius:8px;padding:10px 12px;color:#425d80;font-size:12px;line-height:1.55;margin:-4px 0 12px}.archive-upload-hint strong{background:var(--blue);color:#fff;border-radius:5px;padding:2px 6px;font-size:10px;letter-spacing:.06em;flex:none}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 15px}.full-row{grid-column:1/-1}.progress{height:8px;background:#edf0f5;border-radius:999px;overflow:hidden;margin-top:14px}.progress>div{height:100%;width:0;background:var(--blue);transition:.2s}.ai-intent-section{margin-top:18px}.ai-intent-header{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin-bottom:9px}.ai-intent-header .muted{font-size:12px;text-align:right}.ai-intent-options{display:flex;flex-wrap:wrap;gap:8px}.ai-intent-option{border:1px solid #d9e0eb;background:#f7f9fc;border-radius:999px;padding:8px 12px;color:#506078;font-size:13px;font-weight:600;transition:.16s}.ai-intent-option:hover{border-color:#9db3d2;background:#f0f5fb}.ai-intent-option.active{border-color:var(--blue);background:var(--blue-pale);color:var(--blue);box-shadow:0 0 0 1px rgba(47,99,160,.08)}.ai-input-wrap{position:relative;margin-top:14px}.ai-input-wrap textarea{width:100%;resize:vertical;padding:14px 54px 14px 14px;border:1px solid var(--line);border-radius:10px;font-size:15px;line-height:1.6}.record-button{position:absolute;right:12px;bottom:12px;width:36px;height:36px;border-radius:50%;border:0;background:#fff0f0;color:#d63d4b}.record-button.recording{animation:pulse 1s infinite;background:#d63d4b;color:#fff}.prompt-examples{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px}.prompt-examples button{border:1px solid #dfe4ef;background:#f8f9fc;border-radius:999px;padding:7px 10px;color:#566177;font-size:12px}.llm-usage{display:flex;flex-wrap:wrap;gap:7px 14px;align-items:center;margin-top:12px;padding:9px 11px;border:1px solid #dce4ef;border-radius:8px;background:#f8fafc;color:#5c687b;font-size:11px}.llm-usage-label{font-weight:750;color:var(--blue)}.llm-usage strong{color:#26364e;font-size:12px}.result-loading{padding:70px 20px;text-align:center;color:var(--muted)}.result-message{background:#f5f7fb;padding:12px;border-radius:10px;margin:15px 0}.result-text{white-space:pre-wrap;line-height:1.8;padding:8px 2px}.result-section{margin-top:22px}.result-section h4{margin:0 0 10px}.result-file{display:flex;align-items:center;justify-content:space-between;border:1px solid var(--line);border-radius:10px;padding:10px;margin:7px 0;gap:12px}.result-file-main{min-width:0}.result-file-title{font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.match-card{background:#f7f8fb;border-left:3px solid #aebdf2;padding:10px;margin:8px 0;border-radius:6px;line-height:1.6}.confirmation-box{background:#fff6e8;border:1px solid #f1d29f;padding:14px;border-radius:11px}.confirmation-box>div{display:flex;gap:8px;justify-content:flex-end}.result-table{overflow:auto}.result-table table{border-collapse:collapse;width:100%}.result-table th,.result-table td{border:1px solid var(--line);padding:8px;text-align:left;font-size:12px}

.sidebar-history-row{width:100%;margin-top:10px;border:1px solid #dfe4ec;background:#f8fafc;color:#526177;border-radius:7px;padding:9px 10px;display:flex;align-items:center;gap:9px;text-align:left;font-weight:650}.sidebar-history-row:hover{background:var(--blue-pale);border-color:#c7d5e8;color:var(--blue)}
.modal-card.ai-history-card{width:min(94vw,760px)}.ai-history-list{display:flex;flex-direction:column;gap:8px;margin-top:16px}.ai-history-item{width:100%;border:1px solid var(--line);background:#fff;border-radius:10px;padding:12px 14px;text-align:left;color:var(--text);transition:.15s}.ai-history-item:hover{border-color:#9eb5d3;background:#f8fbff;box-shadow:0 4px 14px rgba(34,52,76,.06)}.ai-history-item-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.ai-history-item-title{font-weight:730;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ai-history-item-meta{display:flex;flex-wrap:wrap;gap:6px 12px;margin-top:6px;color:var(--muted);font-size:11px}.ai-history-status{font-size:11px;font-weight:700;border-radius:999px;padding:3px 8px;background:#edf2f8;color:#536277}.ai-history-status.completed{background:#e8f8f1;color:var(--success)}.ai-history-status.failed{background:#fff0f0;color:var(--danger)}.ai-history-status.cancelled{background:#f1f2f5;color:#6b7280}.ai-history-empty{padding:54px 16px;text-align:center;color:var(--muted)}
#toast{position:fixed;right:22px;top:78px;z-index:300;display:flex;flex-direction:column;gap:8px}.toast-item{background:#1f2937;color:#fff;padding:11px 15px;border-radius:8px;box-shadow:var(--shadow);max-width:360px}.toast-item.error{background:#b83d46}.toast-item.success{background:#167b52}
@keyframes pulse{0%,100%{box-shadow:0 0 0 0 rgba(214,61,75,.4)}50%{box-shadow:0 0 0 9px rgba(214,61,75,0)}}


/* Versioning, shared access, collapsible detail panel, Office editor and LLM confirmation */
.workspace{position:relative;transition:grid-template-columns .2s ease}.workspace.detail-collapsed{grid-template-columns:minmax(0,1fr) 0}.detail-panel{min-width:0;transition:padding .2s ease,border-color .2s ease,opacity .15s ease}.workspace.detail-collapsed .detail-panel{padding-left:0;padding-right:0;border-left-color:transparent;overflow:hidden;opacity:0;pointer-events:none}.detail-panel-toggle{position:absolute;right:330px;top:50%;transform:translate(50%,-50%);z-index:25;width:28px;height:62px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--blue);box-shadow:0 4px 18px rgba(28,52,84,.12);font-size:22px;line-height:1;transition:right .2s ease,background .15s ease}.detail-panel-toggle:hover{background:var(--blue-pale)}.workspace.detail-collapsed .detail-panel-toggle{right:10px}.detail-actions{flex-wrap:wrap}.detail-meta-line{display:flex;align-items:center;gap:6px 10px;flex-wrap:wrap;padding:9px 10px;background:#f7f9fc;border:1px solid var(--line);border-radius:8px;font-size:12px}.detail-meta-line span{color:var(--muted)}.detail-readonly{margin:10px 0;padding:10px 12px;border:1px solid #d8e5f4;border-radius:8px;background:#f1f6fc;color:#486584;line-height:1.55;font-size:12px}.detail-section-head{display:flex;justify-content:space-between;align-items:center;gap:10px}.detail-section-head h4{margin:0}.version-list{display:flex;flex-direction:column;gap:7px}.version-row{display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid var(--line);border-radius:8px;padding:9px 10px;background:#fafbfd}.version-main{min-width:0}.version-note{font-size:11px;color:#4e5d72;margin-top:4px;white-space:pre-wrap}.current-version-badge{display:inline-block;margin-left:5px;padding:2px 6px;border-radius:999px;background:#e8f8f1;color:var(--success);font-size:10px}.shared-badge{display:inline-flex;align-items:center;flex:none;border-radius:999px;padding:2px 6px;background:#e8f1ff;color:#24599f;font-size:9px;font-weight:750;vertical-align:middle}.folder-row .shared-badge{margin-left:auto;background:rgba(255,255,255,.16);color:inherit}.folder-row.active .shared-badge{background:var(--blue-pale);color:var(--blue)}.document-shared-badge{margin-left:4px}.web-search-option{display:flex;align-items:flex-start;gap:10px;margin-top:12px;padding:11px 12px;border:1px solid #dce4ef;border-radius:9px;background:#f8fafc;cursor:pointer}.web-search-option input{margin-top:2px}.web-search-option span{display:flex;flex-direction:column;gap:3px}.web-search-option small{color:var(--muted);line-height:1.5}.confirmation-documents{margin:12px 0;padding:10px;border:1px solid #ead5af;border-radius:8px;background:#fff}.confirmation-documents-title{font-weight:700;margin-bottom:7px}.confirmation-document{display:flex!important;justify-content:flex-start!important;align-items:flex-start;gap:9px!important;padding:8px 4px;border-top:1px solid #f1e6d5;cursor:pointer}.confirmation-document:first-of-type{border-top:0}.confirmation-document input{margin-top:3px}.confirmation-document span{display:flex;flex-direction:column;min-width:0}.confirmation-document strong{word-break:break-word}.confirmation-document small{color:var(--muted);margin-top:3px}.web-grounding-content{white-space:pre-wrap;line-height:1.7;padding:10px 12px;background:#f7f9fc;border-radius:8px}.web-search-error{padding:9px 11px;border-radius:8px;background:#fff2f2;color:var(--danger);margin-bottom:8px}.web-source-links{display:flex;flex-direction:column;gap:6px;margin-top:9px}.web-source-link{display:flex;flex-direction:column;gap:2px;border:1px solid var(--line);border-radius:8px;padding:8px 10px;text-decoration:none;color:var(--blue);background:#fff}.web-source-link:hover{background:var(--blue-pale)}.web-source-link small{color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.modal-card.office-editor-card{width:min(98vw,1500px);height:min(95vh,1050px);display:flex;flex-direction:column;overflow:hidden}.onlyoffice-editor-host{flex:1;min-height:420px;overflow:hidden;border:1px solid var(--line);border-radius:9px;background:#fff}.onlyoffice-editor-host iframe{display:block;width:100%!important;height:100%!important;border:0}.onlyoffice-actions{flex:0 0 auto}.office-editor-body{flex:1;min-height:0;overflow:auto;border:1px solid var(--line);border-radius:9px;padding:12px;background:#f8fafc}.office-docx-editor{display:flex;flex-direction:column;gap:9px}.office-paragraph{display:flex;flex-direction:column;gap:5px;font-size:11px;color:var(--muted)}.office-paragraph textarea{width:100%;resize:vertical;border:1px solid #cbd2df;border-radius:7px;padding:9px;background:#fff;color:var(--text)}.office-table-section{margin:12px 0}.office-table-section h4{margin:0 0 7px}.office-sheet-scroll{overflow:auto;max-width:100%;border:1px solid var(--line);background:#fff}.office-sheet-table{border-collapse:collapse;min-width:100%}.office-sheet-table th,.office-sheet-table td{border:1px solid #e1e5ed;padding:0;min-width:110px}.office-sheet-table th{min-width:42px;padding:6px;background:#f2f5f9;position:sticky;left:0;z-index:1}.office-sheet-table input,.office-sheet-table textarea{width:100%;min-width:108px;border:0;padding:7px;background:#fff;color:var(--text);resize:vertical}.office-sheet-table input:focus,.office-sheet-table textarea:focus{outline:2px solid rgba(36,89,159,.25);outline-offset:-2px}


/* Elder-friendly readability: larger, heavier Data Bank UI typography. */
html,body{font-size:17px;font-weight:700;line-height:1.55}
button,input,select,textarea{font-size:16px;font-weight:700;line-height:1.45}
small,.muted{font-size:14px;font-weight:650}
p,li,td,th,label,a,pre{font-weight:650}
h1,h2,h3,h4,h5,h6,strong{font-weight:800}
.app{grid-template-columns:260px minmax(0,1fr)}
.brand{font-size:19px}.nav-label,.sidebar-title,.service-status,.profile-text small{font-size:14px;font-weight:700}
.folder-row,.sidebar-history-row{font-size:16px;font-weight:700;min-height:44px}
.folder-rename,.folder-delete{font-size:18px;font-weight:800}
.topbar{height:78px}.workspace{height:calc(100vh - 78px);grid-template-columns:minmax(0,1fr) 360px}.detail-panel-toggle{right:360px}
.page-title strong{font-size:19px}.page-title span,.eyebrow{font-size:14px;font-weight:750}.content-toolbar h2{font-size:29px}
.global-search input{font-size:16px;padding-top:12px;padding-bottom:12px}
.primary,.secondary,.danger,.ai-button,.accent-button,.icon-button,.link-button{font-size:16px;font-weight:750;min-height:42px;padding:10px 14px}
.file-table th{font-size:14px;font-weight:800}.file-table td{font-size:16px}.file-name-main,.document-card-title{font-size:16px;font-weight:800}.file-name-sub,.document-card-meta{font-size:14px;font-weight:650}
.file-icon{font-size:12px}.file-icon.large{font-size:14px}.status-pill,.tag,.shared-badge,.current-version-badge{font-size:13px;font-weight:750}
.worker-metric span,.worker-empty,.worker-position,.worker-job .status-pill{font-size:14px;font-weight:700}.worker-metric strong{font-size:20px}
.detail-header h3{font-size:21px}.field-label{font-size:15px;font-weight:750}.field-label input,.field-label textarea,.field-label select{font-size:16px;font-weight:650}.field-label small{font-size:14px;font-weight:650}
.detail-meta-line,.detail-readonly,.version-note,.detail-section pre{font-size:14px;font-weight:650}.summary-text,.result-text,.match-card{font-size:16px;font-weight:650}
.modal-card{padding:26px}.modal-head h3{font-size:23px}.archive-upload-hint{font-size:15px;font-weight:700}.archive-upload-hint strong{font-size:13px}
.modal-card.ai-modal-card{width:min(96vw,1120px);max-height:94vh;padding:30px}.ai-intent-header .muted{font-size:14px}.ai-intent-option{font-size:16px;font-weight:750;padding:10px 15px}.ai-input-wrap textarea{font-size:18px;font-weight:650;min-height:190px;line-height:1.7;padding:16px 58px 16px 16px}.prompt-examples button{font-size:15px;font-weight:700}.web-search-option small{font-size:14px;font-weight:650}
.modal-card.ai-history-card{width:min(96vw,980px)}.ai-history-item-meta,.ai-history-status{font-size:14px}.llm-usage,.llm-usage strong{font-size:14px}.result-table th,.result-table td{font-size:15px;font-weight:650}
#selection-summary{font-size:15px;font-weight:700}
button:disabled{cursor:not-allowed;opacity:.5}

@media(max-width:1180px){.workspace,.workspace.detail-collapsed{grid-template-columns:minmax(0,1fr)}.detail-panel,.detail-panel-toggle{display:none}.drop-zone{right:24px}.top-actions .ai-button span:last-child,.top-actions .accent-button span:last-child{display:none}.global-search{width:min(420px,42vw)}}
@media(max-width:900px){.worker-metrics{grid-template-columns:1fr 1fr}.worker-monitor-details{grid-template-columns:1fr}.folder-delete,.folder-rename{display:none}.app{grid-template-columns:76px minmax(0,1fr)}.sidebar{padding:20px 10px}.brand strong,.folder-row span:last-child,.nav-label,.sidebar-title>span,.profile-text,.service-status{display:none}.brand{justify-content:center;padding-inline:0}.folder-row{justify-content:center;padding:10px}.sidebar-history-row{justify-content:center;padding:10px}.sidebar-history-row span:last-child{display:none}.folder-children{padding-left:0}.sidebar-title{justify-content:center}.profile{justify-content:center}.profile-logout{display:none}.topbar{padding:0 16px}.page-title{display:none}.global-search{width:min(480px,55vw)}.drop-zone{left:90px}.content{padding:20px 16px}}
@media(max-width:680px){.worker-monitor{padding:12px}.worker-metrics{grid-template-columns:1fr 1fr}.worker-metric strong{font-size:16px}.app{display:block}.sidebar{height:auto;position:fixed;left:0;right:0;bottom:0;top:auto;z-index:50;display:flex;flex-direction:row;padding:7px 8px}.brand,.nav-label,.sidebar-title,.sidebar-footer,#folder-tree{display:none}.sidebar-history-row{margin:0;flex:1;justify-content:center}.sidebar-history-row span:last-child{display:none}.sidebar-nav{width:100%;display:flex}.folder-row{margin:0;flex:1;justify-content:center}.topbar{height:auto;padding:10px 12px;gap:8px}.top-actions{width:100%}.global-search{width:100%;flex:1}.top-language,.top-actions .icon-button{display:none}.workspace{height:auto}.content{padding:14px 10px 82px}.content-toolbar{align-items:flex-start;flex-direction:column}.view-actions{justify-content:flex-start}.file-table th:nth-child(3),.file-table td:nth-child(3),.file-table th:nth-child(4),.file-table td:nth-child(4),.file-table th:nth-child(5),.file-table td:nth-child(5){display:none}.grid-view{grid-template-columns:repeat(2,minmax(0,1fr));padding:10px;gap:9px}.document-thumb{height:82px}.drop-zone{inset:76px 12px 78px 12px}.form-grid,.two-fields{grid-template-columns:1fr}.full-row{grid-column:auto}.modal-card{padding:17px}}
