:root {
  --canvas:#f7f8fc; --surface:#fff; --ink:#292c3b; --muted:#707486; --subtle:#838697;
  --line:#e7e7f0; --accent:#7758d8; --accent-hover:#6546c4; --accent-soft:#f0ebfc;
  --planned:#666d85; --planned-bg:#f1f2f8; --review:#97743e; --review-bg:#faf3e5;
  --confirmed:#41816f; --confirmed-bg:#edf7f3; --danger:#a53443; --radius:17px;
  --duration:160ms; --ease:cubic-bezier(.2,.6,.3,1);
  font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;
  color:var(--ink);background:var(--canvas);font-synthesis:none;color-scheme:light;
}
*{box-sizing:border-box}body{margin:0;font-size:14px;line-height:1.6}button,input,select,textarea{font:inherit}button{cursor:pointer;color:inherit;transition:background var(--duration) var(--ease),border-color var(--duration) var(--ease),box-shadow var(--duration) var(--ease)}button:disabled{cursor:not-allowed;opacity:.55}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #a08ae5;outline-offset:3px}h1,h2,h3,p{margin:0}h1{font-size:25px;line-height:1.4;font-weight:650;letter-spacing:.2px}h2{font-size:18px;font-weight:600;line-height:1.5}h3{font-size:14px;font-weight:600}a{color:var(--accent);text-decoration:none}svg.lucide{width:18px;height:18px;stroke-width:1.7;flex-shrink:0}[hidden]{display:none!important}.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}.muted{color:var(--muted)}
/* Global shell */
.sidebar{position:fixed;inset:0 auto 0 0;width:72px;background:#fff;border-right:1px solid var(--line);display:flex;flex-direction:column;align-items:center;padding:20px 0;z-index:30}.brand{border:0;display:grid;place-items:center;width:36px;height:36px;border-radius:12px;background:var(--accent-soft);color:var(--accent);padding:0}.brand svg{width:23px;height:23px}.main-nav{display:flex;flex-direction:column;gap:15px;margin-top:43px}.main-nav button{border:0;background:transparent;display:grid;place-items:center;width:43px;height:43px;color:#7e8295;border-radius:12px;position:relative}.main-nav button:hover{background:#f6f4fb;color:var(--accent)}.main-nav button[aria-current=page]{background:var(--accent-soft);color:var(--accent)}.main-nav button[aria-current=page]:before{content:"";position:absolute;left:-15px;width:3px;height:19px;background:var(--accent);border-radius:0 3px 3px 0}.sidebar-bottom{margin-top:auto}.rail-profile{display:grid;place-items:center;border-radius:50%;width:33px;height:33px;background:#f5f2fb;border:1px solid #e7e3f2;color:#786a9a;font-size:12px}.app-main{margin-left:72px;min-height:100vh;background:radial-gradient(ellipse at 87% 8%,#f0effb 0,transparent 32%),radial-gradient(ellipse at 27% 0%,#f0f5fc 0,transparent 39%),var(--canvas)}.topbar{height:70px;display:flex;align-items:center;justify-content:space-between;padding:0 32px;background:#ffffffd9;border-bottom:1px solid var(--line)}.breadcrumb{display:flex;align-items:center;gap:17px;font-size:13px;color:var(--muted)}.desktop-brand{font-size:15px;color:var(--ink);font-weight:650;letter-spacing:.3px}.breadcrumb-divider{color:#c9c9d7}.topbar-actions{display:flex;align-items:center;gap:18px}.workspace-badge{font-size:12px;color:var(--muted)}.profile-avatar{width:30px;height:30px;border:1px solid #e7e3f2;border-radius:50%;display:grid;place-items:center;color:#786a9a;font-size:12px;background:#f7f4fd}.mobile-brand{display:none}.main-content{padding:26px 32px 30px;max-width:1840px;margin:0 auto}.page-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;min-height:73px}.eyebrow{display:none}.page-description{font-size:13px;color:var(--muted);margin-top:5px}.heading-actions{display:flex;align-items:center;gap:12px;padding-top:4px;flex-shrink:0}.button{min-height:38px;padding:8px 14px;display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid var(--line);border-radius:9px;background:#fff;font-size:13px;font-weight:500;white-space:nowrap}.button svg{width:16px;height:16px}.button.primary{color:#fff;background:var(--accent);border-color:var(--accent);box-shadow:0 3px 7px #7758d81a}.button.primary:hover{background:var(--accent-hover)}.button.secondary:hover{background:#f5f2fc;border-color:#c6b5e7}.button.ghost{background:transparent;border-color:transparent;color:var(--muted);padding:3px 5px;min-height:28px}.button.ghost:hover{background:var(--accent-soft);color:var(--accent)}.icon-button{background:transparent;border:0;padding:4px;display:inline-flex;align-items:center;justify-content:center;height:30px;width:28px;border-radius:6px;color:var(--muted)}.icon-button:hover{background:var(--accent-soft);color:var(--accent)}
/* Calendar and activity identity */
.workspace-columns{display:grid;grid-template-columns:minmax(0,1fr) 348px;gap:22px;align-items:start}.calendar-column{min-width:0}.calendar-panel{background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;box-shadow:0 5px 20px #444a6506;display:flex;flex-direction:column}.calendar-toolbar{min-height:64px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 20px}.period-controls{display:flex;align-items:center;gap:8px}.period-controls h2{font-size:19px;font-weight:600;letter-spacing:.2px;white-space:nowrap}.today-button{font-size:12px;border:1px solid var(--line);border-radius:6px;padding:4px 9px;background:#fff;color:var(--muted);margin-left:2px;min-height:29px}.segmented{display:flex;gap:2px;padding:3px;background:#f5f5f9;border-radius:8px}.segmented button{border:0;background:transparent;color:var(--muted);padding:5px 11px;border-radius:6px;font-size:12px;min-height:29px}.segmented button[aria-pressed=true]{background:#fff;color:var(--accent);box-shadow:0 1px 3px #ded9ec}.calendar-filters{display:flex;align-items:center;gap:12px;padding:0 22px 11px;font-size:11px;color:var(--muted)}.date-selects{display:flex;gap:4px}.calendar-filters select{border:0;background:#fff;color:var(--muted);padding:2px 3px;font-size:11px;max-width:120px;min-height:24px}.category-select{display:flex;align-items:center;gap:4px;border-left:1px solid var(--line);padding-left:10px}.category-select svg{width:13px;height:13px}.period-meta{margin-left:auto;font-size:11px}.period-meta .stat-dot{vertical-align:middle}.weekdays{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));background:#fcfcfe;border-block:1px solid var(--line);font-size:11px;color:var(--muted)}.weekdays span{padding:7px 13px}.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}.day-cell{position:relative;min-height:73px;min-width:0;padding:5px 8px;border-right:1px solid #ededf4;border-bottom:1px solid #ededf4;background:#fff}.day-cell:nth-child(7n){border-right:0}.day-cell:nth-child(7n),.day-cell:nth-child(7n-1){background:#fdfdff}.day-cell:nth-last-child(-n+7){border-bottom:0}.day-number{font-size:12px;font-variant-numeric:tabular-nums;line-height:22px;width:23px;height:23px;padding:0;display:flex;align-items:center;justify-content:center;background:transparent;border:0;border-radius:7px;color:#646a7c;margin-bottom:4px}.outside .day-number{color:#7c8090}.day-cell.selected{background:#f8f5ff;box-shadow:inset 0 0 0 1.5px #b59fe7}.day-cell.selected .day-number{background:var(--accent);color:#fff;font-weight:600}.day-cell.today:not(.selected) .day-number{color:var(--accent);box-shadow:inset 0 0 0 1px #b59fe7}.day-cell>button.day-number:hover{box-shadow:0 0 0 2px #d4c5ee}.day-events{display:flex;flex-direction:column;gap:4px}.event-chip{width:100%;text-align:left;border:0;border-left:2px solid #b4b9cd;border-radius:4px;padding:3px 5px 3px 7px;background:var(--planned-bg);color:var(--planned);line-height:1.4;font-size:12px;min-height:23px}.event-chip-title{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.event-chip small{display:none}.event-chip[data-status=confirmed]{background:var(--confirmed-bg);border-color:#83b9a7;color:var(--confirmed)}.event-chip[data-status=review]{color:#7755b8;background:#eee6fc;border-color:#a185d1}.event-chip:hover{box-shadow:0 0 0 1px #cbbde4}.calendar-footer{border-top:1px solid var(--line);padding:0 20px}.overview-strip{display:flex;align-items:center;gap:19px;min-height:44px}.overview-strip>div,.overview-strip>button{display:flex;align-items:center;gap:6px;font-size:11px;color:var(--muted)}.overview-strip>div:first-child{margin-left:auto;order:4}.overview-strip strong{font-weight:500;font-size:12px;color:#666c80;font-variant-numeric:tabular-nums}.overview-strip>button{border:0;background:transparent;border-radius:4px;padding:4px 0}.overview-strip>button[aria-pressed=true]{color:var(--accent);box-shadow:0 0 0 5px var(--accent-soft);background:var(--accent-soft)}.overview-strip>button svg{width:12px;height:12px}.stat-dot{width:5px;height:5px;display:inline-block;border-radius:50%;flex-shrink:0}.stat-dot.planned{background:#a5adc6}.stat-dot.confirmed{background:#79a996}.stat-dot.review{background:#a786cd}.selected-bar{min-height:82px;margin-top:17px;padding:14px 20px;display:flex;align-items:center;gap:17px;border:1px solid #e8e6f0;border-radius:14px;background:#ffffffdf}.date-tile{width:50px;min-height:50px;display:flex;flex-direction:column;align-items:center;justify-content:center;border-right:1px solid #ece8f3;padding-right:15px;flex-shrink:0}.date-tile strong{font-size:23px;line-height:27px;color:#8064bc;font-weight:600;font-variant-numeric:tabular-nums}.date-tile span,.date-tile small{font-size:11px;color:var(--muted);white-space:nowrap}.selected-description{min-width:0;flex:1}.selected-title h2{font-size:15px;font-weight:600;line-height:1.6}.selected-title{display:flex;align-items:center;gap:10px;font-size:15px;font-weight:600;flex-wrap:wrap}.type-tag{font-size:11px;font-weight:400;border-radius:4px;padding:2px 5px;background:#f2eff8;color:#7e6c99}.selected-meta{display:flex;align-items:center;gap:13px;margin-top:7px;font-size:11px;color:var(--muted);flex-wrap:wrap}.selected-meta span{display:flex;align-items:center;gap:5px}.selected-meta svg{width:12px;height:12px}.selected-edit{border:0;background:transparent;color:var(--muted);padding:4px;display:flex;align-items:center}.status-pill{display:inline-flex;align-items:center;font-size:11px;padding:3px 7px;border-radius:5px;white-space:nowrap;background:var(--planned-bg);color:var(--planned);font-weight:400}.status-pill[data-status=review]{background:var(--review-bg);color:var(--review)}.status-pill[data-status=confirmed]{background:var(--confirmed-bg);color:var(--confirmed)}
/* AI collaboration inspector */
.detail-panel{border:1px solid #e4dfee;border-radius:var(--radius);background:radial-gradient(ellipse at 100% 0%,#eaeafb 0,transparent 25%),linear-gradient(150deg,#f5f1fd 0,#fafafe 16%,#fff 42%);padding:20px;box-shadow:0 6px 24px #56468408;min-width:0;scroll-margin-top:18px}.ai-panel-header{display:flex;align-items:center;gap:9px;font-size:14px;font-weight:600;margin-bottom:14px}.ai-panel-label{display:flex;align-items:center;gap:9px}.ai-panel-label strong{font-weight:600}.ai-panel-header .ai-panel-label>svg{width:28px;height:28px;padding:5px;border:1px solid #e6dff3;border-radius:9px;background:#ffffffca;color:var(--accent)}.ai-panel-header>span:last-child{font-size:11px;font-weight:400;color:var(--muted);margin-left:auto}.detail-panel>h2{font-size:22px;font-weight:600;letter-spacing:.3px;line-height:1.5}.ai-intro{font-size:12px;color:var(--muted);line-height:1.8;margin:6px 0 12px;overflow-wrap:anywhere}.ai-flow{display:flex;align-items:center;justify-content:space-between;padding:10px 0 16px;border-bottom:1px solid #e9e5f1;margin-bottom:18px;font-size:11px;color:#7b689e}.ai-flow span{display:flex;align-items:center;gap:5px}.ai-flow svg{width:14px;height:14px}.ai-flow .flow-arrow{color:#b5a5d1;width:25px}.workflow-step{position:relative;display:flex;gap:10px;padding-bottom:14px;min-width:0}.workflow-step:before{content:"";position:absolute;left:9px;top:25px;bottom:3px;width:1px;background:#e6dff1}.workflow-step:last-of-type:before{display:none}.step-index{height:20px;width:20px;border:1px solid #ded4ee;border-radius:50%;background:#fff;color:#8e76ac;font-size:11px;display:grid;place-items:center;flex-shrink:0;font-variant-numeric:tabular-nums}.step-body{flex:1;min-width:0}.step-heading{display:flex;align-items:center;justify-content:space-between;gap:7px;font-size:13px;line-height:20px;font-weight:600;margin-bottom:10px}.step-heading>span{font-size:11px;color:var(--muted);font-weight:400}.step-heading .button{font-size:11px;padding:0;min-height:24px}.step-heading .button svg{width:12px;height:12px}.step-body .file-row{padding:10px;border:1px solid #e9e6ef;border-radius:9px;margin:7px 0;background:#fff;gap:9px}.file-row{display:flex;align-items:center;gap:10px;padding:15px 0;border-bottom:1px solid var(--line);min-width:0}.file-icon{width:30px;height:30px;display:grid;place-items:center;background:#f6f3fc;color:#9a83b6;border-radius:6px;flex-shrink:0}.file-icon svg{width:17px;height:17px}.file-info{min-width:0;flex:1}.file-info strong{display:block;font-size:12px;font-weight:500;overflow-wrap:anywhere;color:#5f6176}.file-info small{display:block;color:var(--muted);font-size:11px;margin-top:3px;overflow-wrap:anywhere}.file-action{background:transparent;border:0;display:flex;align-items:center;padding:3px;color:#9a8aaf;border-radius:4px}.file-action:hover{background:var(--accent-soft);color:var(--accent)}.file-action svg{width:14px;height:14px}.review-note{border:1px solid #e7e1ee;background:#faf9fd;padding:11px 12px;border-radius:9px;font-size:12px;color:#767084;line-height:1.85}.review-note p+p{margin-top:8px}.step-body>.ai-source{font-size:11px;color:var(--muted);line-height:1.7;margin-top:8px}.review-note .ai-source{font-size:11px;margin-top:9px;color:var(--muted);padding-top:8px;border-top:1px solid #e9e4f1}.review-note .check-list{padding-left:16px;margin:7px 0 0}.review-note .check-list li+li{margin-top:4px}.summary-gate{display:flex;gap:7px;align-items:flex-start;color:#787183;font-size:12px;line-height:1.9}.summary-gate svg{width:14px;height:14px;margin-top:4px;color:#9b8daa;flex-shrink:0}.ai-actions{padding-top:16px;border-top:1px solid #ede9f2;margin-top:4px}.ai-actions>.button.ghost{display:none}.ai-actions .button{width:100%;min-height:41px}.action-caption{font-size:11px;line-height:1.8;color:var(--muted);margin-top:9px;text-align:center;display:flex;justify-content:center;gap:5px;align-items:center}.action-caption svg{width:12px;height:12px}.history-note{font-size:11px;color:var(--muted);margin-top:10px;line-height:1.7}.empty-state{text-align:center;padding:26px 12px;color:var(--muted);font-size:13px;line-height:1.9}.empty-state h3{font-size:14px;color:var(--ink);margin-bottom:7px}.empty-state .button{margin-top:14px}.empty-copy{font-size:12px;color:var(--muted);line-height:1.8;margin:9px 0}.selected-bar .empty-state{width:100%;padding:7px 0}
/* Alternative views */
.agenda-list{display:none}#app[data-view=list] .agenda-list{display:block}#app[data-view=year] .agenda-list{display:none}.event-card{display:flex;align-items:center;gap:15px;padding:16px 20px;width:100%;text-align:left;background:#fff;border:0;border-bottom:1px solid var(--line)}.event-card.selected{background:#f5f1fc}.event-card:hover{background:#f8f6fd}.event-date{font-size:21px;font-weight:500;width:35px;color:#7d6a9e;flex-shrink:0;font-variant-numeric:tabular-nums}.event-date small{display:block;font-size:11px;white-space:nowrap;font-weight:400;color:var(--muted)}.event-body{min-width:0;flex:1}.event-title{font-size:13px;font-weight:500;line-height:1.7}.event-meta{font-size:11px;color:var(--muted);margin-top:4px;display:flex;gap:6px;align-items:center;flex-wrap:wrap}.year-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:18px;gap:12px}.month-card{border:1px solid var(--line);border-radius:10px;background:#fff;min-height:112px;padding:14px;text-align:left}.month-card:hover{background:#f5f1fd;border-color:#bfabe5}.month-card-head{display:flex;align-items:center;justify-content:space-between;font-size:16px}.month-card-head strong{font-weight:500}.month-card-head span{font-size:11px;color:var(--muted)}.month-mini-info{display:block;font-size:11px;color:var(--muted);margin-top:9px}
/* Materials and reports */
.library-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:10px 0 22px}.search-field{display:flex;align-items:center;gap:10px;background:#fff;border:1px solid var(--line);border-radius:9px;padding:10px 13px;width:min(450px,100%);color:var(--muted)}.search-field input{width:100%;min-width:0;font-size:13px;border:0;background:transparent}.library-list{border:1px solid var(--line);border-radius:var(--radius);background:#fff;padding:0 24px}.library-list .file-icon{width:38px;height:40px;border-radius:9px}.library-list .file-info strong{font-size:14px}.library-list .file-info small{font-size:12px}.library-list .file-row:last-child{border-bottom:0}.report-toolbar{display:flex;align-items:center;gap:12px;margin:8px 0 22px;font-size:13px}.report-toolbar select{border:1px solid var(--line);border-radius:8px;padding:8px 12px;background:#fff;color:var(--ink)}.report-toolbar>.muted{margin-left:auto;font-size:12px}.report-columns{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:24px}.report-paper{border:1px solid var(--line);border-radius:var(--radius);background:#fff;padding:26px}.paper-top{display:flex;align-items:center;justify-content:space-between}.paper-top h2{font-size:19px}.document-state{font-size:11px;color:var(--muted)}#report-draft{display:block;width:100%;min-height:285px;resize:vertical;border:1px solid var(--line);border-radius:9px;background:#fcfbfe;color:var(--ink);padding:16px;margin:20px 0;font-size:14px;line-height:2}.report-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.sources-section{margin-top:24px;padding-top:20px;border-top:1px solid var(--line)}.sources-section h3{font-size:12px;color:var(--muted);margin-bottom:8px}#report-sources button{display:flex;align-items:center;gap:8px;width:100%;padding:12px 0;border:0;border-bottom:1px solid var(--line);background:transparent;text-align:left;color:var(--accent);font-size:12px}#report-sources button:hover{background:#f8f5fd}.source-number{color:var(--muted);width:22px;flex-shrink:0;font-variant-numeric:tabular-nums}.source-row>span:nth-child(2){flex:1}.source-row strong,.source-row small{display:block}.source-row strong{font-weight:500}.source-row small{font-size:11px;color:var(--muted);margin-top:3px}.report-aside{border:1px solid #e5dff0;background:linear-gradient(145deg,#f5f2fc,#fff 45%);padding:20px;border-radius:var(--radius);align-self:start}.report-aside h2{font-size:15px}.report-check-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 0;border-bottom:1px solid var(--line);font-size:12px}.report-check-row strong{font-size:18px;font-weight:500;white-space:nowrap}.report-check-note{font-size:12px;color:var(--muted);line-height:1.8;margin-top:12px}.report-warning{color:var(--review);background:var(--review-bg);padding:10px;border-radius:7px}.report-guidance{border-top:1px solid var(--line);padding-top:18px;margin-top:20px}.report-guidance>svg{color:var(--accent);margin-bottom:8px}.report-guidance p{font-size:12px;color:var(--muted);line-height:1.9;margin-top:10px}.mobile-nav{display:none}
/* Forms and feedback */
form{margin:0}dialog{padding:0;border:1px solid var(--line);border-radius:17px;width:540px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 48px);overflow:auto;color:var(--ink);box-shadow:0 24px 90px #33205125}dialog::backdrop{background:#24243a66;backdrop-filter:blur(3px)}dialog[open]{animation:dialog-in 180ms var(--ease)}@keyframes dialog-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}.modal-header{display:flex;align-items:center;justify-content:space-between;padding:20px 24px;border-bottom:1px solid var(--line)}.modal-header h2{font-size:19px}#modal-content{padding:22px 24px}#modal-footer:empty{display:none}#modal-footer{padding:0 24px 24px}.form-field{display:flex;flex-direction:column;gap:6px;margin-bottom:16px;font-size:13px}.form-field input:not([type=checkbox]),.form-field select,.form-field textarea{width:100%;padding:10px 11px;border:1px solid #d0c9dc;border-radius:8px;background:#fff;color:var(--ink);font-size:14px;min-height:42px}.form-field textarea{min-height:90px;resize:vertical}.form-hint,.form-field small{font-size:12px;color:var(--muted);line-height:1.8}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}.form-error{background:#fff0f1;border:1px solid #ecc0c6;color:#982b42;border-radius:8px;padding:10px 12px;font-size:12px;margin:12px 0}.form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}.upload-zone{border:1px dashed #b2a1cd;background:#faf7fe;border-radius:11px;padding:24px 16px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:6px;margin:14px 0}.upload-zone svg{color:var(--accent);width:27px;height:27px}.upload-zone input[type=file]{max-width:100%;font-size:12px}.upload-zone>span,.upload-zone>small{font-size:12px;color:var(--muted)}.upload-list{list-style:none;padding:0;margin:12px 0}.upload-list li{padding:8px 0;border-bottom:1px solid var(--line);font-size:12px;overflow-wrap:anywhere}.upload-file-item{display:flex;align-items:center;justify-content:space-between;gap:12px}.upload-file-item small{white-space:nowrap;color:var(--muted)}.checkbox-field{display:flex;gap:9px;align-items:flex-start;font-size:12px;line-height:1.8;margin-top:14px}.checkbox-field input{accent-color:var(--accent);width:16px;height:16px;flex-shrink:0;margin-top:3px}.confirm-context{padding:14px;background:#f7f4fb;border:1px solid var(--line);border-radius:9px;margin-bottom:16px}.confirm-context p{color:var(--muted);font-size:12px;margin:5px 0 9px}.toast{position:fixed;bottom:28px;left:calc(50% + 36px);transform:translateX(-50%);background:#473562;color:#fff;border:1px solid #6d578b;border-radius:10px;padding:11px 18px;font-size:13px;z-index:100;box-shadow:0 5px 25px #33205120;max-width:calc(100vw - 32px)}.global-error{padding:12px 16px;border:1px solid #e7b9c4;background:#fff1f4;color:#9b334d;font-size:13px;border-radius:9px;margin-bottom:20px}
/* Responsive structure */
@media(min-width:1001px) and (max-width:1250px){.main-content{padding:24px}.workspace-columns{grid-template-columns:minmax(0,1fr) 310px;gap:18px}.detail-panel{padding:18px}.calendar-toolbar{padding:12px;gap:6px}.period-controls{gap:3px}.period-controls h2{font-size:17px}.segmented button{padding-inline:8px}.selected-meta{gap:8px}.day-cell{padding:5px}.file-info strong{font-size:11px}}
@media(max-width:1000px){.workspace-columns{grid-template-columns:1fr}.detail-panel{max-width:none}.calendar-column{min-width:0}.report-columns{grid-template-columns:1fr}.report-aside{order:-1}.report-guidance{display:none}.report-aside h2{margin-bottom:8px}.page-heading{margin-bottom:14px}.topbar{padding-inline:24px}.main-content{padding:24px}.ai-intro{font-size:13px}.review-note{font-size:13px}.workflow-step{padding-bottom:19px}.file-info strong{font-size:13px}.selected-bar{margin-top:16px}.ai-actions .button{max-width:400px;display:flex;margin:0 auto}}
@media(max-width:700px){
 .sidebar{display:none}.app-main{margin-left:0}.topbar{height:56px;padding:0 18px}.desktop-brand,.breadcrumb-divider,#page-label,.workspace-badge{display:none}.mobile-brand{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:600;color:var(--ink)}.mobile-brand svg{color:var(--accent);width:20px;height:20px}.main-content{padding:21px 16px 96px}.page-heading{min-height:0;flex-wrap:wrap;gap:15px;margin-bottom:18px}.page-heading h1{font-size:25px}.page-description{font-size:12px}.heading-actions{width:100%;gap:10px;padding-top:0}.heading-actions .button{flex:1;min-height:43px}.button{font-size:13px}.calendar-toolbar{padding:12px 10px;gap:6px;flex-wrap:wrap;min-height:0}.period-controls{gap:1px}.period-controls h2{font-size:14px}.period-controls .icon-button{width:25px;height:32px}.today-button{font-size:11px;min-height:30px;padding:3px 6px;margin-left:2px}.segmented{padding:2px}.segmented button{min-height:30px;font-size:11px;padding:4px 7px}.calendar-filters{padding:0 13px 9px;gap:6px}.calendar-filters select{min-height:30px;font-size:11px}.date-selects{display:none}.category-select{border:0;padding:0}.period-meta{font-size:11px}.weekdays span{font-size:11px;text-align:center;padding:7px 0}.calendar-footer{order:-1;padding:0 13px;background:#fdfbff;border-top:0;border-bottom:1px solid var(--line)}.overview-strip{min-height:40px;gap:14px}.overview-strip>div,.overview-strip>button{gap:4px;font-size:11px}.overview-strip strong{font-size:12px}.day-cell{min-height:47px;border-right:0;border-bottom:0;padding:1px;display:flex;align-items:center;flex-direction:column}.day-number{width:38px;height:37px;font-size:12px;margin-bottom:0;line-height:37px}.day-cell.selected{border-radius:7px;box-shadow:none;background:#f0eafa}.day-cell.selected .day-number{background:transparent;color:var(--accent)}.day-cell.today:not(.selected) .day-number{box-shadow:none}.day-events{display:flex;flex-direction:row;justify-content:center;gap:3px;min-height:6px}.event-chip{min-height:5px;height:5px;width:5px;padding:0;border:0;border-radius:50%;background:#9da6c1;font-size:0;pointer-events:none}.event-chip[data-status=confirmed]{background:#6b9f8c}.event-chip[data-status=review]{background:#a080c9}.event-chip>*{display:none}.agenda-list{display:block;border-top:1px solid var(--line);margin-top:7px}.event-card{padding:13px 14px;gap:10px}.event-date{font-size:18px;width:30px}.event-title{font-size:13px}.event-card .status-pill{font-size:11px}.selected-bar{display:none}.workspace-columns{gap:16px}.detail-panel{padding:18px;border-radius:15px}.detail-panel>h2{font-size:21px}.ai-intro{font-size:12px}.review-note{font-size:12px}.file-info strong{font-size:12px}.ai-actions .button{max-width:none;min-height:44px}.ai-actions>.button.ghost{display:flex;min-height:32px;margin-top:7px}.step-heading .button{min-height:30px}.workflow-step{gap:10px}.year-grid{grid-template-columns:repeat(2,minmax(0,1fr));padding:12px;gap:10px}.month-card{padding:12px;min-height:108px}.mobile-nav{position:fixed;bottom:0;left:0;right:0;display:flex;align-items:center;justify-content:space-around;height:68px;padding-bottom:env(safe-area-inset-bottom);background:#fffffff5;border-top:1px solid var(--line);backdrop-filter:blur(12px);z-index:30}.mobile-nav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;background:transparent;border:0;color:var(--muted);width:30%;height:52px;font-size:11px}.mobile-nav button[aria-current=page]{color:var(--accent);font-weight:600}.mobile-nav button[aria-current=page] svg{background:var(--accent-soft);box-shadow:0 0 0 5px var(--accent-soft);border-radius:4px}.mobile-nav svg{width:20px;height:20px}.toast{left:50%;bottom:84px;font-size:12px;width:max-content;max-width:calc(100vw - 24px)}.library-toolbar{flex-direction:column;align-items:flex-start;gap:12px}.library-list{padding:0 14px}.library-list .file-info strong{font-size:12px}.library-list .file-info small{font-size:11px}.report-toolbar{flex-wrap:wrap;gap:8px}.report-toolbar>.muted{width:100%;margin-left:0}.report-columns{gap:16px}.report-paper{padding:18px}.report-aside{padding:16px}.report-check-row{padding:9px 0;font-size:12px}.report-check-note{font-size:11px}.paper-top h2{font-size:17px}#report-draft{font-size:16px;min-height:260px;padding:12px}.report-actions{flex-direction:column}.report-actions>.button{width:100%;min-height:44px}.sources-section{margin-top:20px;padding-top:16px}.modal-header{padding:16px 18px}.modal-header h2{font-size:18px}#modal-content{padding:18px}dialog{max-width:calc(100vw - 24px);max-height:calc(100dvh - 32px);border-radius:14px}.form-row{grid-template-columns:1fr;gap:0}.form-field input:not([type=checkbox]),.form-field select,.form-field textarea{font-size:16px}.form-actions .button{min-height:44px}.checkbox-field{font-size:12px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* Server-backed identity and member workflows */
.auth-screen{min-height:100dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:42px 20px;background:radial-gradient(ellipse at 18% 10%,#eaf0ff 0,transparent 42%),radial-gradient(ellipse at 85% 80%,#f0eafa 0,transparent 45%),var(--canvas)}.auth-brand{display:flex;align-items:center;gap:10px;font-size:18px;font-weight:600;margin-bottom:26px}.auth-brand .brand-mark{width:38px;height:38px;display:grid;place-items:center;border-radius:12px;background:#eee8fc;color:var(--accent)}.auth-brand svg{width:24px;height:24px}.auth-card{width:420px;max-width:100%;padding:32px;border:1px solid #e5def1;border-radius:20px;background:#ffffffed;box-shadow:0 16px 60px #6b519b09}.auth-kicker{font-size:11px;color:var(--accent);letter-spacing:1.5px}.auth-card h1{font-size:24px;margin-top:7px}.auth-card #auth-description{font-size:13px;color:var(--muted);line-height:1.8;margin-top:9px;margin-bottom:24px}.auth-submit{width:100%;margin-top:18px;min-height:44px}.auth-cancel{width:100%;margin-top:8px}.auth-retry{width:100%;margin-top:14px;font-size:12px}.auth-footer{font-size:12px;color:var(--muted);margin-top:22px}.setup-hint{margin:-6px 0 16px}.account-button{display:grid;place-items:center;background:transparent;border:0;padding:0;border-radius:50%;cursor:pointer}.completion-date{margin-top:16px}.permission-note{font-size:12px;color:var(--muted);line-height:1.8;text-align:center;padding:9px;background:#f7f4fb;border-radius:8px}.members-heading{display:flex;gap:15px;align-items:center;justify-content:space-between;margin-bottom:18px}.members-heading .button{flex-shrink:0}.member-list{display:flex;flex-direction:column}.member-row{display:flex;align-items:center;gap:10px;padding:13px 0;border-bottom:1px solid var(--line)}.member-row:last-child{border-bottom:0}.member-avatar{width:32px;height:32px;border-radius:50%;background:var(--accent-soft);color:var(--accent);display:grid;place-items:center;font-size:12px;flex-shrink:0}.member-info{flex:1;min-width:0}.member-info strong{display:block;font-size:13px;font-weight:500;overflow-wrap:anywhere}.member-info small{display:block;font-size:11px;color:var(--muted);overflow-wrap:anywhere}.member-row .button{font-size:12px;min-height:32px}.empty-state>.button+.button{margin-left:8px}.topbar-actions{gap:12px}
@media(max-width:700px){.auth-screen{padding:30px 18px}.auth-brand{font-size:17px;margin-bottom:22px}.auth-card{padding:25px 22px;border-radius:17px}.auth-card h1{font-size:22px}.auth-card input{font-size:16px!important}.auth-card #auth-description{font-size:12px}.topbar{padding-inline:14px}.topbar-actions{gap:6px}.topbar-actions .icon-button{width:30px;height:36px}.topbar-actions .profile-avatar{width:28px;height:28px}.mobile-brand{font-size:13px;gap:6px}.members-heading{flex-direction:column;align-items:stretch;gap:12px}.member-row{gap:8px}.member-avatar{display:none}.member-row .status-pill{font-size:10px}}
/* DeepSeek: configuration, explicit data selection, and reviewable proposals. */
.ai-feature-entry{padding:12px 0 17px;border-top:1px solid var(--line)}.ai-feature-entry>.button{width:100%;border-color:#d9ccef;background:#f8f5fd;color:var(--accent);min-height:39px}.ai-feature-entry>p{font-size:11px;color:var(--muted);line-height:1.8;margin-top:7px}.ai-feature-icon{display:grid;place-items:center;width:36px;height:36px;border:1px solid #e0d6f2;border-radius:11px;color:var(--accent);background:#f4effc;flex-shrink:0}.ai-feature-icon svg{width:19px;height:19px}.ai-empty{text-align:center;padding:10px 8px}.ai-empty .ai-feature-icon{margin:0 auto 13px}.ai-empty h3{font-size:16px;margin-bottom:10px}.ai-empty p{font-size:13px;color:var(--muted);line-height:1.9;margin-top:10px}.ai-settings-status{display:flex;align-items:center;gap:11px;padding-bottom:18px;margin-bottom:19px;border-bottom:1px solid var(--line)}.ai-settings-status>div{flex:1}.ai-settings-status strong{font-size:14px;font-weight:600;display:block}.ai-settings-status>div>span{display:block;font-size:12px;color:var(--muted);margin-top:2px}.ai-option strong,.ai-option small{display:block}.ai-option strong{font-size:13px;font-weight:500}.ai-option small{font-size:12px;color:var(--muted);margin-top:3px}.ai-connection{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px 12px;background:#f8f6fc;border:1px solid #e8e0f2;border-radius:10px;padding:14px;margin-top:20px;align-items:center}.ai-connection strong{font-size:13px;font-weight:500;display:block}.ai-connection #ai-connection-status{font-size:12px;color:var(--muted);display:block;line-height:1.8;overflow-wrap:anywhere;margin-top:4px}.ai-connection>p{grid-column:1/-1;font-size:11px;color:var(--muted);line-height:1.8}.ai-connection .button{font-size:12px;min-height:34px}.ai-quota{margin-top:12px;font-size:11px}.ai-settings-footer{display:flex;align-items:center;justify-content:space-between;gap:10px}.ai-settings-footer>.form-actions{margin-top:0}.button.danger{color:var(--danger)}.ai-disclosure{font-size:13px;line-height:1.9;color:var(--muted);margin:12px 0 16px}.ai-files{padding:0;margin:14px 0 0;border:0;min-width:0}.ai-files legend{font-size:13px;font-weight:500;margin-bottom:8px}.ai-file-choice{display:flex;align-items:flex-start;gap:9px;padding:12px 0;border-bottom:1px solid var(--line)}.ai-file-choice input{accent-color:var(--accent);width:16px;height:16px;margin:3px 0 0;flex-shrink:0}.ai-file-choice>span{min-width:0}.ai-file-choice strong{font-size:12px;font-weight:500;display:block;overflow-wrap:anywhere}.ai-file-choice small{font-size:11px;color:var(--muted);display:block;margin-top:3px}.ai-file-choice:has(input:disabled){color:var(--muted)}.ai-cost-note{margin-top:13px;font-size:11px}.ai-progress{font-size:12px;color:var(--accent);background:#f4effc;border:1px solid #e4d9f4;border-radius:8px;padding:10px 12px;margin-top:14px;line-height:1.8}.ai-review-label{font-size:11px;font-weight:500;color:var(--accent);display:inline-block;padding:4px 8px;border-radius:5px;background:var(--accent-soft)}.ai-result-meta{font-size:11px;line-height:1.8;color:var(--muted);margin:9px 0 14px;overflow-wrap:anywhere}.ai-preview-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.95;font-size:14px;background:#faf9fd;border:1px solid #e6e1ef;border-radius:10px;padding:15px;margin:12px 0 18px}.ai-result-section{margin:18px 0}.ai-result-section h3,.ai-sources h3,.ai-extraction-notes h3{font-size:13px;margin-bottom:9px}.ai-result-section ul{padding-left:20px;margin:0}.ai-result-section li{font-size:13px;line-height:1.9;margin-bottom:8px;overflow-wrap:anywhere}.ai-ref{font-size:11px;color:var(--accent);white-space:nowrap}.ai-sources{border-top:1px solid var(--line);padding-top:16px;margin-top:18px;margin-bottom:18px}.ai-source-item{display:flex;align-items:center;gap:8px;padding:10px 0;border-bottom:1px solid var(--line);min-width:0}.ai-source-item>span:nth-child(2){min-width:0;flex:1}.ai-source-item strong{display:block;font-size:12px;font-weight:500;overflow-wrap:anywhere}.ai-source-item small{display:block;font-size:11px;color:var(--muted);margin-top:3px;overflow-wrap:anywhere}.ai-source-item .source-number{width:17px;font-size:11px}.ai-extraction-notes{padding:12px;border:1px solid #eee0c6;border-radius:8px;background:var(--review-bg);color:var(--review);font-size:12px;line-height:1.85;margin-bottom:16px}.ai-extraction-notes p+p{margin-top:6px}.report-actions{justify-content:flex-start}.report-actions #save-report{margin-left:auto}.report-preview{font-size:13px;line-height:1.95}#ai-draft-meta{margin:0 0 12px}
@media(max-width:700px){.topbar-actions{gap:3px}.topbar-actions .icon-button{width:29px}.ai-settings-status{gap:9px}.ai-settings-footer{align-items:stretch;flex-wrap:wrap}.ai-settings-footer>.form-actions{margin-left:auto;gap:7px}.ai-settings-footer .button{padding-inline:10px}.ai-settings-status .status-pill{font-size:11px}.ai-connection{padding:12px;gap:9px}.ai-connection>div{grid-column:1/-1}.ai-connection>.button{justify-self:start;min-height:40px}.ai-connection>p{font-size:12px}.ai-file-choice{padding:13px 0}.ai-file-choice strong{font-size:13px}.ai-file-choice input{width:18px;height:18px}.ai-preview-text{padding:13px;font-size:14px}.ai-result-section li{font-size:13px}.ai-source-item .icon-button{min-height:38px;min-width:32px}.report-actions #save-report{margin-left:0}.report-preview{font-size:14px}.ai-feature-entry>.button{min-height:43px}.ai-quota{font-size:12px}}

.ai-header-action{margin-left:auto;font-size:11px;min-height:31px;padding:5px 8px;gap:5px}.ai-header-action svg{width:14px;height:14px}
