:root{
  --canvas:#f5f5ef;--paper:#fffefb;--ink:#17231d;--muted:#69756e;--line:#dbe2dc;
  --brand:#1f6a52;--brand-dark:#185640;--brand-soft:#e5f0eb;--warm:#fff3df;
  --warm-ink:#8b5d19;--blue:#3d6f8b;--blue-soft:#eaf2f7;--danger:#a04a43;
  --shadow:0 18px 48px rgba(35,51,42,.08);
}
*{box-sizing:border-box}
[hidden]{display:none!important}
html{background:var(--canvas)}
body{margin:0;min-height:100vh;color:var(--ink);background:var(--canvas);font-family:Inter,"PingFang SC","Microsoft YaHei",sans-serif;-webkit-font-smoothing:antialiased}
button,textarea,input{font:inherit}
button{-webkit-tap-highlight-color:transparent}
button:disabled{cursor:not-allowed;opacity:.48}
.topbar{position:sticky;top:0;z-index:30;height:64px;padding:0 max(20px,calc((100vw - 1040px)/2));display:flex;align-items:center;justify-content:space-between;background:rgba(245,245,239,.93);border-bottom:1px solid rgba(205,214,206,.8);backdrop-filter:blur(14px)}
.topbar-actions{display:flex;align-items:center;gap:8px}
.brand{padding:0;display:flex;align-items:center;gap:10px;color:var(--ink);background:transparent;border:0;cursor:pointer;font-size:15px;font-weight:800}
.brand-mark{width:34px;height:34px;display:grid;place-items:center;color:#fff;background:var(--brand);border-radius:10px;font-family:Georgia,serif;font-size:20px}
.role-pill{padding:7px 11px;color:var(--brand);background:var(--brand-soft);border-radius:999px;font-size:13px;font-weight:750}
.app-main{width:min(100%,760px);min-height:calc(100vh - 64px);margin:0 auto;padding:48px 20px 132px}
body.plan-workspace-mode .app-main{width:min(100%,1040px)}
.auth-main{width:min(100%,760px);min-height:calc(100vh - 64px);margin:0 auto;padding:72px 20px}
.page,.flow-panel,.plan-range,.advisor-view{animation:rise .2s ease-out}
@keyframes rise{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}
.page-heading{margin-bottom:24px}
.page-heading time{margin:0 0 10px;display:block;color:var(--brand);font-size:14px;font-weight:750}
.page-heading h1,.subpage-heading h1{margin:0;font-family:Georgia,"Songti SC",serif;font-size:clamp(40px,7vw,54px);line-height:1.08;letter-spacing:-.03em}
.page-lead{margin:10px 0 0;color:var(--muted);font-size:15px}
.heading-row{display:flex;align-items:flex-end;justify-content:space-between;gap:20px}
.subpage-heading{margin-bottom:24px;display:flex;align-items:center;gap:14px}
.subpage-heading h1{font-size:clamp(34px,6vw,46px)}
.back-button{width:42px;height:42px;display:grid;place-items:center;color:var(--brand);background:var(--paper);border:1px solid var(--line);border-radius:12px;cursor:pointer;font-size:22px}
.entry-card,.upload-card,.material-result,.choice-card,.review-list,.today-list,.current-task,.next-list,.plan-list,.answer-card,.advice-list article,.review-board,.roadmap,.diff-list,.blocked-action,.material-history,.history-list,.change-entry{background:var(--paper);border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow)}
.entry-card,.upload-card{padding:24px}
.entry-card-heading{margin-bottom:14px;display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.entry-card-heading h2{margin:0;font-size:18px}
.entry-card-heading p{margin:0;color:var(--muted);font-size:13px}
textarea,input{width:100%;color:var(--ink);background:#fff;border:1px solid #cbd4cd;border-radius:12px;outline:none;transition:border-color .15s,box-shadow .15s}
textarea{min-height:148px;padding:15px 16px;resize:vertical;font-size:16px;line-height:1.7}
input{height:48px;padding:0 14px;font-size:15px}
textarea:focus,input:focus{border-color:var(--brand);box-shadow:0 0 0 3px rgba(31,106,82,.1)}
textarea::placeholder,input::placeholder{color:#929d97}
.entry-actions,.page-actions,.plan-actions{margin-top:16px;display:flex;align-items:center;justify-content:space-between;gap:10px}
.three-actions{display:grid;grid-template-columns:auto 1fr auto}
.three-actions .text-button{justify-self:start}
.voice-button,.primary-button,.text-button,.quiet-button,.choice-row button,.plan-actions button,.material-history button,.diff-list button{min-height:44px;border-radius:10px;cursor:pointer;font-weight:750}
.voice-button{padding:0 15px;display:inline-flex;align-items:center;justify-content:center;gap:9px;color:var(--brand);background:var(--brand-soft);border:1px solid transparent}
.voice-button.is-recording{color:#fff;background:var(--danger)}
.voice-button.is-busy{color:var(--muted);background:#edf0ed;cursor:wait}
.mic-icon{width:18px;height:18px;display:grid;place-items:center;color:currentColor;border:2px solid currentColor;border-radius:50%;font-size:7px}
.primary-button{padding:0 18px;color:#fff!important;background:var(--brand)!important;border:1px solid var(--brand)!important}
.primary-button:hover{background:var(--brand-dark)!important}
.text-button{padding:0 8px;color:var(--brand);background:transparent;border:0}
.danger-text-button{color:var(--danger)}
.quiet-button{padding:0 15px;color:var(--brand);background:var(--paper);border:1px solid var(--line)}
.full-button{width:100%;margin-top:16px}
.voice-status{min-height:20px;margin:10px 0 0;color:var(--muted);font-size:13px;line-height:1.55}
.voice-status.error{color:var(--danger)}
.operation-progress{margin:12px 0 0;padding:11px 13px;color:var(--brand-dark);background:var(--brand-soft);border-radius:10px;font-size:13px;font-weight:700;line-height:1.55}
.form-boundary{margin:12px 0 0;color:var(--muted);font-size:13px;line-height:1.55}
.toast{position:fixed;left:50%;bottom:104px;z-index:80;transform:translateX(-50%);max-width:min(420px,calc(100vw - 32px));padding:12px 18px;color:#fff;background:#23352c;border-radius:12px;box-shadow:0 14px 36px rgba(0,0,0,.18);font-weight:650;text-align:center}
.quiet-state{min-height:56vh;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center}
.quiet-state h1{margin:18px 0 0;font-family:Georgia,"Songti SC",serif;font-size:36px}
.processing-dot{width:18px;height:18px;background:var(--brand);border-radius:50%;animation:pulse 1s infinite ease-in-out}
@keyframes pulse{50%{opacity:.35;transform:scale(.72)}}
.choice-card{padding:12px;display:grid;gap:8px}
.choice-card button{min-height:54px;padding:0 16px;color:var(--ink);background:#fff;border:1px solid var(--line);border-radius:11px;cursor:pointer;text-align:left;font-weight:650}
.choice-card button:hover{color:var(--brand);border-color:#91b5a6;background:var(--brand-soft)}
.inline-entry{margin-top:14px;display:grid;grid-template-columns:auto 1fr auto;gap:8px;align-items:center}
.inline-entry .primary-button,.inline-entry>button:last-child{height:48px;padding:0 14px;border:0;border-radius:10px}
.compact-voice{height:48px;min-height:48px}
.review-list,.today-list,.plan-list,.diff-list{overflow:hidden}
.review-list article,.diff-list article{padding:18px 20px;display:grid;grid-template-columns:76px 1fr;gap:14px;border-bottom:1px solid var(--line)}
.review-list article:last-child,.today-list article:last-child,.plan-list article:last-child,.diff-list article:last-child{border-bottom:0}
.review-list h2,.today-list h2,.plan-list h2,.current-task h2,.diff-list h2{margin:0;font-size:16px;line-height:1.45}
.review-list p,.today-list p,.plan-list p,.current-task p,.diff-list p{margin:5px 0 0;color:var(--muted);font-size:14px;line-height:1.55}
.status{align-self:start;width:fit-content;padding:5px 9px;border-radius:8px;font-size:13px;font-weight:750;white-space:nowrap}
.status.done{color:var(--brand);background:var(--brand-soft)}
.status.progress{color:var(--blue);background:var(--blue-soft)}
.status.waiting{color:#626d67;background:#edf0ed}
.status.event{color:var(--warm-ink);background:var(--warm)}
.source-detail,.timeline{margin-top:14px;padding:0 17px;color:var(--muted);background:rgba(255,255,255,.64);border:1px solid var(--line);border-radius:12px;font-size:14px}
.source-detail summary,.timeline summary{padding:14px 0;color:var(--brand);cursor:pointer;font-weight:750}
.source-detail p{margin:0 0 15px;line-height:1.7}
.morning-review-grid{width:min(1040px,calc(100vw - 48px));margin-left:50%;display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);gap:16px;align-items:start;transform:translateX(-50%)}
.yesterday-plan-card{padding:20px;background:var(--paper);border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow)}
.yesterday-plan-card>header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}
.yesterday-plan-card>header span:first-child{color:var(--brand);font-size:13px;font-weight:800}
.yesterday-plan-card h2{margin:5px 0 0;font-size:20px}
.yesterday-plan-list{margin:16px 0 0;padding:0;display:grid;list-style:none}
.yesterday-plan-list li{padding:11px 0;display:grid;grid-template-columns:28px 1fr;gap:10px;align-items:center;border-top:1px solid var(--line)}
.yesterday-plan-list li>span{width:24px;height:24px;display:grid;place-items:center;color:var(--muted);border:1px solid #cad2cc;border-radius:7px;font-size:12px}
.yesterday-plan-list strong{font-size:14px}
.confirmed-plan-list{margin:0;padding:4px 20px;display:grid;list-style:none;background:var(--paper);border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow)}
.confirmed-plan-list li{padding:17px 0;display:grid;grid-template-columns:32px minmax(0,1fr);gap:12px;align-items:start;border-bottom:1px solid var(--line)}
.confirmed-plan-list li:last-child{border-bottom:0}
.confirmed-plan-list li>span{width:28px;height:28px;display:grid;place-items:center;color:var(--brand);background:var(--brand-soft);border-radius:8px;font-size:13px;font-weight:800}
.confirmed-plan-list strong{font-size:16px;line-height:1.5}
.confirmed-plan-list p{margin:5px 0 0;color:var(--muted);font-size:13px;line-height:1.55}
.daily-review-card,.today-proposal-card{padding:22px;background:var(--paper);border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow)}
.daily-summary-field{display:grid;gap:8px;color:var(--brand);font-size:13px;font-weight:800}
.daily-review-items{margin-top:18px;display:grid;gap:12px}
.daily-review-items article{padding:17px;background:#f7f9f7;border:1px solid var(--line);border-radius:14px}
.daily-review-item-heading{display:grid;grid-template-columns:82px minmax(0,1fr);gap:10px;align-items:center}
.daily-review-item-heading>span{color:var(--brand);font-size:13px;font-weight:800}
.daily-review-item-heading input{height:42px;background:#fff}
.daily-status-choices{margin-top:11px;display:flex;gap:8px;flex-wrap:wrap}
.daily-status-choices button{min-height:38px;padding:0 13px;color:var(--muted);background:#fff;border:1px solid var(--line);border-radius:9px;cursor:pointer;font-weight:700}
.daily-status-choices button.is-active{color:#fff;background:var(--brand);border-color:var(--brand)}
.daily-review-items blockquote,.query-evidence blockquote{margin:12px 0 0;padding:10px 12px;color:var(--muted);background:#fff;border-left:3px solid #b9d3c7;border-radius:0 9px 9px 0;font-size:13px;line-height:1.6}
.daily-review-items article>p{margin:10px 0 0;color:var(--muted);font-size:13px;line-height:1.55}
.today-proposal-list{margin:0;padding:0;display:grid;list-style:none}
.today-proposal-list li{padding:17px 0;display:grid;grid-template-columns:32px minmax(0,1fr) auto;gap:12px;align-items:start;border-bottom:1px solid var(--line)}
.today-proposal-list li:last-child{border-bottom:0}
.today-proposal-list li>span{width:28px;height:28px;display:grid;place-items:center;color:var(--brand);background:var(--brand-soft);border-radius:8px;font-size:13px;font-weight:800}
.today-proposal-list textarea{min-height:74px;padding:11px 13px;font-size:15px}
.today-proposal-list li>button{min-height:36px;padding:0 8px;color:var(--danger);background:transparent;border:0;cursor:pointer;font-size:13px;font-weight:700}
.day-update-card,.day-update-review,.day-update-history{margin-top:18px;padding:22px;background:var(--paper);border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow)}
.day-update-card textarea{min-height:112px}
.flow-panel[data-flow="proposal"] .day-update-history{display:none}
#proposal-update-slot{margin-bottom:18px}
.field-help{color:var(--muted);font-size:14px;line-height:1.6}
.day-update-review>h2,.day-update-history>h2{margin:0 0 16px;font-size:18px}
.day-update-review-items{margin-top:16px;display:grid;gap:12px}
.day-update-review-items article{padding:16px;display:grid;gap:10px;background:#f7f9f7;border:1px solid var(--line);border-radius:14px}
.day-update-review-item-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.day-update-review-item-heading>span{color:var(--brand);font-size:13px;font-weight:800}
.day-update-review-item-heading>button{min-height:34px;padding:0 4px;color:var(--danger);background:transparent;border:0;cursor:pointer;font-size:13px;font-weight:750}
.day-update-review-items textarea{min-height:72px;padding:11px 13px;font-size:14px}
.day-update-review-items details{padding:0 12px;background:#fff;border:1px solid var(--line);border-radius:10px}
.day-update-review-items summary{padding:11px 0;color:var(--brand);cursor:pointer;font-size:13px;font-weight:750}
.day-update-review-items details p{margin:0 0 10px;color:var(--muted);font-size:13px;line-height:1.6}
.day-update-review-items blockquote{margin:0 0 11px;padding:10px 12px;color:var(--muted);background:#f7f9f7;border-left:3px solid #b9d3c7;border-radius:0 9px 9px 0;font-size:13px;line-height:1.6}
.day-update-review-actions>div{display:flex;align-items:center;gap:8px}
.day-update-history>div{display:grid}
.day-update-history article{padding:15px 0;border-top:1px solid var(--line)}
.day-update-history article>div{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.day-update-history article strong{font-size:15px;line-height:1.5}
.day-update-history article span{padding:4px 8px;flex:none;color:var(--brand);background:var(--brand-soft);border-radius:7px;font-size:12px;font-weight:750}
.day-update-history article p{margin:6px 0 0;color:var(--muted);font-size:14px;line-height:1.55}
.yesterday-version-detail{margin-top:6px;box-shadow:none}
.today-basis-grid{margin-bottom:16px;display:grid;grid-template-columns:1fr 1fr;gap:10px}
.today-basis-grid article{padding:18px;background:var(--paper);border:1px solid var(--line);border-radius:15px;box-shadow:var(--shadow)}
.today-basis-grid span{color:var(--brand);font-size:13px;font-weight:800}
.today-basis-grid strong{margin-top:8px;display:block;font-size:16px;line-height:1.45}
.today-basis-grid p{margin:6px 0 0;color:var(--muted);font-size:13px;line-height:1.55}
.today-context-summary{margin:0 0 14px;padding:12px 14px;color:var(--blue);background:var(--blue-soft);border-radius:11px;font-size:14px;line-height:1.55}
.today-version-history{margin-top:16px;padding:0 17px;background:var(--paper);border:1px solid var(--line);border-radius:14px}
.today-version-history summary{padding:15px 0;color:var(--brand);cursor:pointer;font-weight:750}
.today-version-history ol{margin:0 0 15px;padding:0;display:grid;list-style:none}
.today-version-history li{padding:10px 0;display:grid;grid-template-columns:42px 1fr;gap:10px;border-top:1px solid var(--line)}
.today-version-history li strong{color:var(--brand)}
.today-version-history li span{color:var(--muted);font-size:14px}
.correction-box,.adjustment-box{margin-top:15px;padding:16px;background:var(--blue-soft);border-radius:12px}
.correction-box .inline-entry,.adjustment-box .inline-entry{margin:0}
.correction-box #apply-correction,.adjustment-box #apply-adjustment{color:#fff;background:var(--blue)}
.today-list article,.plan-list article{min-height:94px;padding:18px 19px;display:grid;grid-template-columns:34px 1fr auto;gap:13px;align-items:start;border-bottom:1px solid var(--line)}
.today-list article>span,.plan-list article>span,.task-number{width:30px;height:30px;display:grid;place-items:center;color:#fff;background:var(--brand);border-radius:9px;font-size:13px;font-weight:800}
.today-list article>button,.plan-list article>button{padding:7px;color:var(--brand);background:transparent;border:0;cursor:pointer;font-size:13px;font-weight:750}
.current-task{padding:23px;display:grid;grid-template-columns:36px 1fr;gap:15px;align-items:center}
.next-list{margin-top:16px;padding:21px;box-shadow:none}
.next-list>h2,.change-entry>h2{margin:0 0 10px;font-size:16px}
.next-list article{padding:14px 0;display:grid;grid-template-columns:28px 1fr;gap:10px;border-top:1px solid var(--line)}
.next-list article>span{width:25px;height:25px;display:grid;place-items:center;color:var(--muted);border:1px solid #cad2cc;border-radius:8px;font-size:13px}
.next-list article div{display:flex;justify-content:space-between;gap:10px}
.next-list em{color:var(--muted);font-style:normal;font-size:14px}
.change-entry{margin-top:16px;padding:20px}
.change-entry textarea{min-height:112px}
.material-summary{width:100%;min-height:56px;margin-top:14px;padding:0 17px;display:flex;align-items:center;justify-content:space-between;color:var(--ink);background:var(--paper);border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow);cursor:pointer;text-align:left}
.material-summary span{color:var(--brand);font-weight:750}

.upload-drop{min-height:152px;padding:24px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px;color:var(--brand);background:#f7faf8;border:1px dashed #94b8a8;border-radius:15px;cursor:pointer;text-align:center}
.upload-drop strong{font-size:19px}
.upload-drop span{color:var(--muted);font-size:14px}
.material-list{margin-top:16px;display:grid;gap:9px}
.material-item{padding:13px 14px;display:grid;grid-template-columns:1fr auto;gap:12px;align-items:center;background:#f7f8f6;border:1px solid var(--line);border-radius:11px}
.material-item strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:15px}
.material-item span{color:var(--muted);font-size:13px}
.material-item button{padding:6px 9px;color:var(--danger);background:transparent;border:0;cursor:pointer;font-weight:700}
.material-note{margin-top:14px;display:grid;grid-template-columns:1fr auto;gap:8px}
.material-result{margin-top:16px;padding:20px}
.material-result h2{margin:0;font-size:21px}
.material-review-list{margin-top:10px;display:grid}
.material-review-list article{padding:12px 0;display:grid;grid-template-columns:1fr auto;gap:12px;align-items:center;border-bottom:1px solid var(--line)}
.material-review-list article:last-child{border-bottom:0}
.material-review-list div{min-width:0;display:grid;gap:4px}
.material-review-list strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.material-review-list span{color:var(--muted);font-size:13px}
.material-review-list button,.stored-materials article>button{min-height:40px;padding:0 12px;color:var(--brand);background:#fff;border:1px solid var(--line);border-radius:9px;cursor:pointer;font-weight:750}
.choice-row{margin-top:16px;display:flex;justify-content:flex-end;gap:10px}
.choice-row button{padding:0 16px;color:var(--brand);background:#fff;border:1px solid var(--line)}
.login-form{display:grid;grid-template-columns:1fr 1fr auto;gap:10px}
.auth-guidance{grid-column:1/-1;margin:0 0 4px;color:var(--muted);font-size:14px;line-height:1.6}
.login-form input{min-width:0;height:48px;padding:0 14px;color:var(--ink);background:#fff;border:1px solid var(--line-strong);border-radius:10px;font:inherit}
.login-form button{padding:0 20px}
.auth-card{margin-top:72px}
.auth-segment{grid-template-columns:1fr 1fr}
.registration-form{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.registration-form button{min-height:48px;grid-column:1/-1}
.auth-field{min-width:0;display:grid;gap:6px;color:var(--ink);font-size:14px;font-weight:750}
.auth-field input{min-width:0;height:48px;padding:0 14px;color:var(--ink);background:#fff;border:1px solid var(--line-strong);border-radius:10px;font:inherit;font-weight:400}
.auth-field-help{min-height:44px;color:var(--muted);font-size:13px;font-weight:400;line-height:1.55}
.auth-field input[aria-invalid="true"]{border-color:var(--danger);box-shadow:0 0 0 3px rgba(167,74,57,.1)}
.auth-feedback{grid-column:1/-1;margin:0;padding:10px 12px;color:var(--danger);background:#fff5f2;border:1px solid rgba(167,74,57,.24);border-radius:10px;font-size:14px;line-height:1.5}
.heading-actions{display:flex;align-items:center;gap:12px}.heading-actions strong{font-size:15px}
.empty-state{margin:16px 0;padding:20px;color:var(--muted);text-align:center;background:var(--paper);border:1px solid var(--line);border-radius:14px}
.organization-row{margin-bottom:16px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.organization-row.action-only{justify-content:flex-end}
.organization-picker{margin:-4px 0 16px;display:flex;flex-wrap:wrap;gap:8px}
.organization-picker button{min-height:38px;padding:0 13px;color:var(--brand);background:#fff;border:1px solid var(--line);border-radius:9px;font-weight:750;cursor:pointer}
.organization-picker button.is-active{background:var(--brand-soft);border-color:var(--brand)}
.stored-materials{margin-top:18px;padding:20px;background:var(--paper);border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow)}
.stored-materials>h2{margin:0 0 8px;font-size:18px}
.stored-materials article{padding:12px 0;display:flex;align-items:center;justify-content:space-between;gap:14px;border-bottom:1px solid var(--line)}
.stored-materials article:last-child{border:0}
.stored-materials article div{min-width:0;display:grid;gap:4px}.stored-materials strong{overflow:hidden;text-overflow:ellipsis}.stored-materials span{color:var(--muted);font-size:14px}
.material-preview{width:min(1120px,calc(100% - 28px));max-height:min(88vh,900px);padding:0;color:var(--ink);background:var(--paper);border:1px solid var(--line);border-radius:18px;box-shadow:0 24px 72px rgba(17,31,24,.24)}
.material-preview::backdrop{background:rgba(22,34,28,.42);backdrop-filter:blur(3px)}
.material-preview header{position:sticky;top:0;z-index:2;padding:18px 20px;display:flex;align-items:flex-start;justify-content:space-between;gap:16px;background:var(--paper);border-bottom:1px solid var(--line)}
.material-preview header span{color:var(--brand);font-size:13px;font-weight:750}
.material-preview h2{max-width:min(920px,calc(100vw - 150px));margin:5px 0 0;overflow:hidden;text-overflow:ellipsis;font-size:18px;white-space:nowrap}
.material-preview header button{width:38px;height:38px;flex:none;color:var(--muted);background:#fff;border:1px solid var(--line);border-radius:10px;cursor:pointer;font-size:24px;line-height:1}
.material-preview-body{min-height:220px;padding:10px 20px 20px;overflow:auto}
.material-preview-body>p{margin:18px 0;color:var(--muted)}
.preview-sheet{margin-top:14px}
.preview-sheet h3{position:sticky;top:0;margin:0;padding:11px 0 8px;background:var(--paper);font-size:15px}
.preview-sheet article{padding:9px 0;display:grid;grid-template-columns:minmax(72px,auto) 1fr;gap:14px;border-top:1px solid var(--line);font-size:14px;line-height:1.55}
.preview-sheet article strong{color:var(--brand);font-size:13px}
.preview-tabs{position:sticky;top:0;z-index:4;padding:10px 0;display:flex;gap:7px;overflow-x:auto;background:var(--paper)}
.preview-tabs button{min-height:38px;padding:0 13px;flex:none;color:var(--muted);background:#f0f3f0;border:1px solid transparent;border-radius:9px;cursor:pointer;font-weight:700}
.preview-tabs button.is-active{color:var(--brand);background:var(--brand-soft);border-color:#c9ddd4}
.preview-grid-sheet{padding-top:2px}
.spreadsheet-preview{max-height:62vh;overflow:auto;border:1px solid var(--line);border-radius:12px;background:#fff}
.spreadsheet-preview table{border-collapse:separate;border-spacing:0;font-size:13px;line-height:1.45}
.spreadsheet-preview th,.spreadsheet-preview td{min-width:132px;max-width:260px;padding:8px 10px;vertical-align:top;border-right:1px solid #e5e9e5;border-bottom:1px solid #e5e9e5;white-space:pre-wrap;word-break:break-word}
.spreadsheet-preview td[colspan]{max-width:none}
.spreadsheet-preview thead th{position:sticky;top:0;z-index:2;min-width:54px;color:var(--muted);background:#f1f4f1;text-align:center}
.spreadsheet-preview tbody th{position:sticky;left:0;z-index:1;min-width:54px;width:54px;color:var(--muted);background:#f7f8f6;text-align:center}
.spreadsheet-preview thead th:first-child{left:0;z-index:3;width:54px}
.spreadsheet-preview td:empty{background:#fbfcfa}
.preview-limit{margin:12px 2px 0;color:var(--muted);font-size:13px}
.material-preview footer{padding:14px 20px;display:flex;justify-content:flex-end;border-top:1px solid var(--line)}
.material-preview footer a{min-height:42px;display:inline-flex;align-items:center;text-decoration:none}

.segment{margin-bottom:20px;padding:5px;display:grid;grid-template-columns:repeat(4,1fr);gap:4px;background:#e9ede8;border-radius:13px}
.segment button{min-height:46px;color:var(--muted);background:transparent;border:0;border-radius:9px;cursor:pointer;font-weight:750}
.segment button:hover:not(.is-active){color:var(--brand);background:rgba(255,255,255,.7)}
.segment button.is-active{color:#fff;background:var(--brand);box-shadow:0 5px 16px rgba(31,106,82,.22)}
.three-segment{grid-template-columns:repeat(3,1fr)}
.plan-heading-actions{display:flex;align-items:center;gap:8px}
.plan-current-source{min-height:64px;margin:-6px 0 18px;padding:12px 16px;display:flex;align-items:center;justify-content:space-between;gap:16px;background:var(--paper);border:1px solid var(--line);border-radius:14px}
.plan-current-source>div{min-width:0;flex:1;display:flex;align-items:center;gap:10px}
.plan-current-source strong{min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:15px}
.plan-identity-panel{margin:-2px 0 18px;padding:16px;display:flex;align-items:center;justify-content:space-between;gap:18px;background:var(--brand-soft);border:1px solid #cfe0d8;border-radius:14px}
.plan-identity-panel h2{margin:0;font-size:17px}
.plan-identity-panel p{margin:5px 0 0;color:var(--muted);font-size:13px;line-height:1.5}
.plan-identity-controls{min-width:min(100%,390px);display:grid;grid-template-columns:minmax(160px,1fr) auto;gap:9px}
.plan-identity-controls select{height:44px;padding:0 34px 0 12px;color:var(--ink);background:#fff;border:1px solid #cbd4cd;border-radius:10px;font:inherit}
.plan-identity-controls button{min-height:44px;white-space:nowrap}
.plan-work-panel{margin:-6px 0 20px;padding:20px;background:var(--paper);border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow)}
.plan-work-panel>header{margin-bottom:16px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.plan-work-panel>header h2{margin:0;font-size:21px}
.plan-work-panel>header button{width:38px;height:38px;color:var(--muted);background:#fff;border:1px solid var(--line);border-radius:10px;cursor:pointer;font-size:23px;line-height:1}
.plan-supplement-entry h3{margin:0 0 12px;font-size:17px}
.plan-supplement-entry textarea{min-height:118px}
.section-divider{margin:22px 0 16px;display:flex;align-items:center;gap:12px;color:var(--muted);font-size:13px;font-weight:700}
.section-divider::before,.section-divider::after{content:"";height:1px;flex:1;background:var(--line)}
.plan-supplement-panel>header>div{min-width:0}
.plan-supplement-panel>header p{margin:5px 0 0;color:var(--muted);font-size:13px}
.plan-work-panel>header .plan-supplement-toggle{width:auto;height:auto;min-height:38px;padding:0 8px;color:var(--brand);background:transparent;border:0;border-radius:9px;font-size:14px;white-space:nowrap}
.plan-supplement-list{display:grid}
.plan-supplement-list.is-expanded{max-height:420px;padding-right:8px;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.plan-supplement-list article{padding:13px 0;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 14px;border-bottom:1px solid var(--line)}
.plan-supplement-list article:last-child{border-bottom:0}
.plan-supplement-list article>p{grid-column:1/-1;margin:0;display:-webkit-box;overflow:hidden;white-space:pre-wrap;line-height:1.55;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.plan-supplement-list.is-expanded article>p{-webkit-line-clamp:4}
.plan-supplement-actions{grid-column:2;grid-row:1;justify-self:end;align-self:center;display:flex;align-items:center;gap:5px}
.plan-supplement-meta{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.plan-supplement-meta>span:last-child{color:var(--muted);font-size:13px}
.plan-upload-drop{min-height:126px}
.plan-selected-file{margin-top:14px;padding:13px 14px;display:flex;align-items:center;justify-content:space-between;gap:12px;background:#f7f8f6;border:1px solid var(--line);border-radius:11px}
.plan-selected-file strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.plan-selected-file span{flex:none;color:var(--muted);font-size:13px}
.plan-import-review{margin-top:18px;padding-top:18px;border-top:1px solid var(--line)}
.plan-review-file{display:flex;align-items:center;gap:10px}
.plan-review-file strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.plan-scope-question{margin-top:16px}
.plan-scope-question>strong{display:block;margin-bottom:9px}
.plan-scope-question>div{display:grid;grid-template-columns:repeat(4,1fr);gap:7px}
.plan-scope-question button{min-height:42px;color:var(--brand);background:#fff;border:1px solid var(--line);border-radius:9px;cursor:pointer;font-weight:750}
.plan-scope-question button.is-active{color:#fff;background:var(--brand);border-color:var(--brand)}
.plan-history-list{display:grid}
.plan-history-list article{padding:14px 0;display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:12px;align-items:center;border-bottom:1px solid var(--line)}
.plan-history-list article:last-child{border-bottom:0}
.plan-history-copy{min-width:0;display:grid;gap:4px}
.plan-history-copy strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.plan-history-copy span{color:var(--muted);font-size:13px}
.plan-history-actions{display:flex;align-items:center;gap:4px}
.plan-history-actions button{min-height:40px;padding:0 10px;color:var(--brand);background:#fff;border:1px solid var(--line);border-radius:9px;cursor:pointer;font-weight:750}
.plan-structure-state{min-height:210px;padding:32px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:14px;text-align:center;background:var(--paper);border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow)}
.plan-structure-state h2{margin:0;font-size:24px}
.plan-structure-state p{max-width:620px;margin:0;color:var(--muted);line-height:1.6}
.plan-structure-state .text-button{min-height:42px;padding:0 15px;border:1px solid var(--line);border-radius:10px}
.plan-structure-state.has-document{min-height:0;padding:0;display:block;text-align:left;background:transparent;border:0;border-radius:0;box-shadow:none}
.plan-loading{padding:34px;color:var(--muted)}
.plan-document-header{margin-bottom:16px;padding:20px 22px;display:flex;align-items:flex-start;justify-content:space-between;gap:18px;background:var(--paper);border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow)}
.plan-document-header h2{margin:10px 0 0;font-family:"Microsoft YaHei","PingFang SC",sans-serif;font-size:28px;line-height:1.25}
.plan-document-header p{margin:7px 0 0;color:var(--muted);font-size:14px}
.plan-document-actions{display:flex;gap:7px;flex:none}
.plan-document-actions button,.plan-subrange button,.plan-week-strip button{color:var(--brand);background:#fff;border:1px solid var(--line);border-radius:10px;cursor:pointer;font-weight:750}
.plan-document-actions button{min-height:40px;padding:0 12px}
.plan-phase-grid{margin-bottom:16px;display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.plan-phase-grid button{min-height:142px;padding:18px;display:flex;flex-direction:column;color:var(--ink);background:var(--paper);border:1px solid var(--line);border-radius:15px;cursor:pointer;font:inherit;text-align:left;transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease}
.plan-phase-grid button:hover{border-color:#9fc5b3;box-shadow:0 9px 24px rgba(31,106,82,.12);transform:translateY(-2px)}
.plan-phase-grid button:focus-visible,.gantt-column-filter summary:focus-visible,.gantt-filter-menu button:focus-visible,.gantt-filter-menu input:focus-visible,.bottom-nav button:focus-visible,.segment button:focus-visible{outline:3px solid rgba(31,106,82,.24);outline-offset:2px}
.plan-phase-grid span,.plan-section-heading span{color:var(--brand);font-size:13px;font-weight:800}
.plan-phase-grid strong{margin-top:10px;font-size:16px;line-height:1.45}
.plan-phase-grid p{margin-top:auto!important;color:var(--muted);font-size:13px}
.plan-phase-grid em{margin-top:13px;color:var(--brand);font-size:12px;font-style:normal;font-weight:800}
.plan-phase-grid em b{margin-left:3px;font-size:14px}
.plan-gantt-section,.plan-list-section{padding:20px;background:var(--paper);border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow)}
.plan-gantt-section{width:min(1500px,calc(100vw - 48px));margin-left:50%;transform:translateX(-50%)}
.plan-month-gantt-section{width:100%;margin-left:0;transform:none}
.plan-section-heading{margin-bottom:16px;display:flex;align-items:flex-end;justify-content:space-between;gap:14px}
.plan-section-heading h3{margin:4px 0 0;font-size:22px}
.plan-section-heading p{margin:0!important;color:var(--muted);font-size:13px}
.plan-gantt-status{min-height:28px;margin:-5px 0 7px;display:flex;align-items:center;justify-content:flex-end;gap:9px;color:var(--muted);font-size:12px}
.plan-gantt-status strong{color:var(--brand);font-size:14px}
.plan-gantt-status button{padding:4px 8px;color:var(--brand);background:#fff;border:1px solid var(--line);border-radius:7px;cursor:pointer;font:inherit;font-size:11px;font-weight:750}
.gantt-viewport{height:clamp(420px,calc(100dvh - 300px),720px);overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;border:1px solid var(--line);border-radius:12px;background:#fff}
.gantt-viewport::-webkit-scrollbar{width:15px;height:15px}
.gantt-viewport::-webkit-scrollbar-track{background:#eef1ee}
.gantt-viewport::-webkit-scrollbar-thumb{background:#87918b;border:3px solid #eef1ee;border-radius:999px}
.gantt-table{min-width:1728px;border-collapse:separate;border-spacing:0;font-size:12px;line-height:1.35}
.gantt-table--compact{width:100%;min-width:900px;table-layout:fixed}
.gantt-table th,.gantt-table td{height:48px;padding:7px 8px;border-right:1px solid #e5e9e5;border-bottom:1px solid #e5e9e5;text-align:center;background:#fff}
.gantt-table thead th{position:sticky;top:0;z-index:5;min-width:88px;color:#fff;background:var(--brand);text-align:center}
.gantt-table .gantt-time-column strong,.gantt-table .gantt-time-column>span{display:block}
.gantt-table .gantt-time-column>span{margin-top:2px;font-size:10px;font-weight:500;white-space:nowrap}
.gantt-table .gantt-index-column{position:sticky;left:0;z-index:4;width:48px;min-width:48px;color:var(--muted);background:#f7f9f6;font-weight:750}
.gantt-table thead .gantt-index-column{z-index:9;color:#fff;background:var(--brand)}
.gantt-table .gantt-task-column{position:sticky;left:48px;z-index:3;width:280px;min-width:280px;text-align:left;background:#fff}
.gantt-table thead .gantt-task-column{z-index:8;background:var(--brand);text-align:center}
.gantt-table tbody .gantt-task-column>span{margin-right:7px;color:var(--brand);font-size:11px}
.gantt-table tbody .gantt-task-column>strong{font-size:12px}
.gantt-table .gantt-owner-column{position:sticky;left:328px;z-index:2;width:132px;min-width:132px;word-break:keep-all;background:#fafbf9}
.gantt-table thead .gantt-owner-column{z-index:7;color:#fff;background:var(--brand);text-align:center}
.gantt-table tbody .gantt-owner-column>span,.gantt-table tbody .gantt-owner-column>small{display:block;white-space:nowrap}
.gantt-table tbody .gantt-owner-column>small{margin-top:2px;color:var(--muted);font-size:10px}
.gantt-table .gantt-date-column{position:sticky;left:460px;z-index:2;width:112px;min-width:112px;color:var(--muted);white-space:nowrap;background:#fafbf9}
.gantt-table thead .gantt-date-column{z-index:7;color:#fff;background:var(--brand);text-align:center}
.gantt-column-heading{display:grid;grid-template-columns:24px minmax(0,1fr) 24px;align-items:center;gap:6px}
.gantt-column-heading::before{content:"";width:24px;height:24px}
.gantt-column-heading>span{min-width:0;color:#fff;font-size:12px;font-weight:750;text-align:center;white-space:nowrap}
.gantt-column-filter{position:relative;flex:none;color:var(--ink);font-weight:400;white-space:normal}
.gantt-column-filter summary{position:relative;width:24px;height:24px;display:grid;place-items:center;color:var(--brand);background:#fff;border:1px solid #c7d2cc;border-radius:6px;cursor:pointer;list-style:none}
.gantt-column-filter summary::-webkit-details-marker{display:none}
.gantt-column-filter summary::after{content:"";width:0;height:0;border-right:4px solid transparent;border-left:4px solid transparent;border-top:5px solid currentColor}
.gantt-column-filter summary b{position:absolute;right:-5px;top:-6px;min-width:15px;height:15px;padding:0 3px;display:none;place-items:center;color:#fff;background:var(--brand-dark);border:2px solid #fff;border-radius:999px;font-size:9px;line-height:1}
.gantt-column-filter.is-active summary b{display:grid}
.gantt-column-filter.is-active summary,.gantt-column-filter[open] summary{color:var(--brand-dark);background:#fff;border-color:#fff}
.gantt-filter-menu{position:absolute;top:calc(100% + 6px);left:0;z-index:30;width:280px;padding:10px;color:var(--ink);background:#fff;border:1px solid #c7d2cc;border-radius:10px;box-shadow:0 14px 36px rgba(27,48,38,.18);text-align:left;white-space:normal}
.gantt-task-column .gantt-filter-menu{width:360px}
.gantt-date-column .gantt-filter-menu{right:0;left:auto}
.gantt-filter-menu header{padding:1px 2px 8px;display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid var(--line)}
.gantt-filter-menu header strong{font-size:13px}
.gantt-filter-menu header button{padding:3px 5px;color:var(--brand);background:transparent;border:0;cursor:pointer;font-size:11px;font-weight:750}
.gantt-filter-menu header button:disabled{cursor:default;opacity:.4}
.gantt-filter-all,.gantt-filter-options label{min-height:34px;padding:6px 5px;display:grid;grid-template-columns:18px minmax(0,1fr) auto;gap:7px;align-items:center;cursor:pointer;font-size:12px;line-height:1.35}
.gantt-filter-all{margin-top:4px;background:#f4f7f4;border-radius:6px;font-weight:750}
.gantt-filter-all input,.gantt-filter-options input{width:15px;height:15px;margin:0;accent-color:var(--brand)}
.gantt-filter-all small,.gantt-filter-options small{color:var(--muted);font-size:10px}
.gantt-filter-options{max-height:240px;margin-top:3px;overflow:auto;overscroll-behavior:contain}
.gantt-filter-options label:hover{background:#f4f7f4;border-radius:6px}
.gantt-filter-options span{min-width:0;overflow:hidden;text-overflow:ellipsis}
.gantt-filter-menu footer{padding-top:9px;display:flex;justify-content:flex-end;gap:7px;border-top:1px solid var(--line)}
.gantt-filter-menu footer button{height:30px;padding:0 11px;color:var(--brand);background:#fff;border:1px solid var(--line);border-radius:7px;cursor:pointer;font-size:11px;font-weight:750}
.gantt-filter-menu footer button.primary{color:#fff;background:var(--brand);border-color:var(--brand)}
.gantt-filter-menu footer button:disabled{cursor:default;opacity:.45}
.gantt-table td.gantt-active{color:var(--brand);background:var(--brand-soft);font-size:9px}
.gantt-table td.gantt-empty{height:120px;color:var(--muted);text-align:center;background:#fff}
.plan-subrange{margin-bottom:16px;display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.plan-subrange button{min-height:96px;padding:13px;display:flex;align-items:flex-start;flex-direction:column;text-align:left}
.plan-subrange button span,.plan-subrange button small{color:var(--muted);font-size:12px}
.plan-subrange button strong{margin:7px 0 auto;color:var(--ink);font-size:14px;line-height:1.35}
.plan-subrange button.is-active,.plan-week-strip button.is-active{color:#fff;background:var(--brand);border-color:var(--brand)}
.plan-subrange button.is-active span,.plan-subrange button.is-active strong,.plan-subrange button.is-active small{color:#fff}
.plan-week-strip{margin-bottom:16px;padding:6px;display:flex;gap:7px;overflow-x:auto;background:#e9ede8;border-radius:13px}
.plan-week-strip button{min-width:88px;min-height:58px;padding:8px 10px;display:grid;gap:2px;place-content:center}
.plan-week-strip button small{font-size:11px;font-weight:500}
.plan-task-list{display:grid}
.plan-task-list article{padding:15px 0;display:grid;grid-template-columns:48px minmax(0,1fr) auto auto;gap:12px;align-items:center;border-bottom:1px solid var(--line)}
.plan-task-list article:last-child{border:0}
.plan-task-list article>span{color:var(--brand);font-size:12px;font-weight:800}
.plan-task-list article strong{display:block;font-size:15px;line-height:1.45}
.plan-task-list article p{margin:4px 0 0;color:var(--muted);font-size:13px}
.plan-task-list time{color:var(--muted);font-size:13px;white-space:nowrap}
.plan-task-list em{padding:5px 8px;color:var(--brand);background:var(--brand-soft);border-radius:8px;font-size:12px;font-style:normal;font-weight:750;white-space:nowrap}
.plan-view-empty{padding:36px 12px;text-align:center}
.plan-week-group{margin-top:20px}
.plan-week-group h4{margin:0 0 2px;display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:15px}
.plan-week-group h4 span{padding:4px 8px;color:var(--brand);background:var(--brand-soft);border-radius:8px;font-size:12px}
.plan-week-ongoing{margin-top:22px}
.plan-day-picker{margin-bottom:16px;padding:16px 18px;display:grid;grid-template-columns:auto 190px;gap:14px;align-items:center;background:var(--paper);border:1px solid var(--line);border-radius:15px}
.plan-day-picker label{font-weight:750}
.plan-day-picker input{height:42px}
.plan-day-counts{margin:20px 0 2px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.plan-day-counts>button{padding:10px 12px;display:flex;align-items:center;justify-content:space-between;gap:10px;color:var(--muted);background:#f1f4f1;border:1px solid transparent;border-radius:10px;cursor:pointer;font-size:13px;font-weight:700;text-align:left}
.plan-day-counts>button:hover:not(:disabled){color:var(--brand);border-color:#cddfd6}
.plan-day-counts>button.is-active{color:#fff;background:var(--brand);border-color:var(--brand);box-shadow:0 5px 16px rgba(31,106,82,.2)}
.plan-day-counts>button:disabled{cursor:default;opacity:.64}
.plan-day-counts strong{min-width:25px;padding:3px 7px;text-align:center;color:var(--brand);background:var(--brand-soft);border-radius:999px;font-size:12px}
.plan-day-counts>button.is-active strong{color:var(--brand);background:#fff}
.plan-day-prompt{margin:0;padding:30px 12px 26px;color:var(--muted);text-align:center}
.plan-day-nodes section{margin-top:20px}
.plan-day-nodes h4{margin:0 0 2px;display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:15px}
.plan-day-nodes h4 span{padding:4px 8px;color:var(--brand);background:var(--brand-soft);border-radius:8px;font-size:12px}
.plan-ongoing-details{margin-top:18px;border-top:1px solid var(--line)}
.plan-ongoing-details summary{padding:18px 2px 14px;display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--brand);cursor:pointer;font-weight:750;list-style:none}
.plan-ongoing-details summary::-webkit-details-marker{display:none}
.plan-ongoing-details summary span::before{content:"▸";margin-right:8px}
.plan-ongoing-details[open] summary span::before{content:"▾"}
.plan-ongoing-details summary strong{padding:4px 8px;background:var(--brand-soft);border-radius:8px;font-size:12px}
.plan-ongoing-details>p{margin:0 0 3px;color:var(--muted);font-size:13px;line-height:1.6}
.version-line{margin-bottom:14px;padding:0 4px;display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--muted);font-size:14px}
.version-line strong{color:var(--ink);font-size:16px}
.plan-actions{justify-content:flex-end}
.plan-adjustment{padding:15px;background:var(--blue-soft);border-radius:13px}
.review-board{padding:4px 20px;box-shadow:none}
.review-board article{padding:18px 0;border-bottom:1px solid var(--line)}
.review-board article:last-child{border-bottom:0}
.review-board h2{margin:0;font-size:17px}
.review-board p{margin:7px 0 0;color:var(--muted);font-size:15px;line-height:1.6}
.timeline ol{margin:0 0 15px;padding:0;list-style:none}
.timeline li{padding:10px 0;display:grid;grid-template-columns:82px 1fr;gap:12px;border-top:1px solid var(--line)}
.timeline time{color:var(--brand);font-weight:750}
.roadmap{padding:7px 20px;box-shadow:none}
.roadmap article{padding:19px 0;border-bottom:1px solid var(--line)}
.roadmap article:last-child{border:0}
.roadmap article div{margin-bottom:11px;display:flex;justify-content:space-between}
.roadmap progress{width:100%;height:9px;accent-color:var(--brand)}
.diff-list article{grid-template-columns:66px 1fr}
.blocked-action{margin-top:16px;padding:20px;background:#f2f3f0;box-shadow:none}
.blocked-action strong{font-size:18px}
.blocked-action p{margin:8px 0 15px;color:var(--muted);line-height:1.6}
.blocked-action button{min-height:44px;padding:0 16px;border:1px solid #c6cec8;border-radius:10px}

.permission-strip{margin-bottom:16px;padding:14px 16px;display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--muted);background:var(--brand-soft);border-radius:12px;font-size:14px}
.permission-strip strong{color:var(--brand)}
.advice-list{display:grid;gap:12px}
.advice-list article{padding:20px;box-shadow:none}
.advice-list h2{margin:10px 0 0;font-size:18px;line-height:1.45}
.advice-list p{margin:8px 0 0;color:var(--muted);font-size:15px;line-height:1.6}
.advice-list article>div{margin-top:16px;display:flex;justify-content:flex-end;gap:9px}
.advice-list article>div button{min-height:42px;padding:0 15px;color:var(--brand);background:#fff;border:1px solid var(--line);border-radius:9px;font-weight:750;cursor:pointer}
.owner-advice-list article{box-shadow:var(--shadow)}
.advice-section-title{margin:8px 2px 0;font-size:16px}
.advice-card-meta{font-size:13px!important}
.consultant-context-heading{margin-bottom:14px;display:flex;align-items:center;justify-content:space-between;gap:14px}
.consultant-context-heading h2{margin:0;font-size:20px}
.consultant-context{display:grid;gap:14px}
.consultant-context-section{padding:20px;background:var(--paper);border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow)}
.consultant-context-section>header{margin-bottom:12px;display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.consultant-context-section>header h2{margin:0;font-size:19px}
.consultant-context-section>header span{color:var(--muted);font-size:13px}
.consultant-context-list{display:grid}
.consultant-context-list>article{padding:14px 0;border-top:1px solid var(--line)}
.consultant-context-list>article:first-of-type{border-top:0}
.consultant-context-list h3{margin:0;font-size:16px;line-height:1.5}
.consultant-context-list p{margin:5px 0 0;color:var(--muted);font-size:14px;line-height:1.55}
.consultant-context-list .consultant-context-meta{color:var(--brand);font-size:13px;font-weight:700}
.consultant-context-focus{margin:14px 0 2px;color:var(--ink);font-size:14px;font-weight:750}
.consultant-plan-file{margin:0 0 4px!important;padding-bottom:12px;overflow:hidden;color:var(--ink)!important;border-bottom:1px solid var(--line);font-weight:750;text-overflow:ellipsis;white-space:nowrap}
.consultant-context-empty{margin:0;padding:14px 0;color:var(--muted);text-align:center}
.consultant-plan-all{padding-top:10px;border-top:1px solid var(--line)}
.consultant-plan-all summary{padding:8px 0;color:var(--brand);cursor:pointer;font-weight:750}
.consultant-plan-all .consultant-context-list{margin-top:4px}
.consultant-composer{margin-bottom:20px}
.collaboration-actions{margin-bottom:24px;display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.collaboration-actions>.primary-button{min-height:46px}
.collaboration-actions>.field-help{flex:1 1 320px;margin:0}
.invitation-result{width:100%;min-height:46px;padding:14px;display:flex;align-items:center;justify-content:space-between;gap:16px;background:var(--paper);border:1px solid var(--line);border-radius:12px}
.invitation-result-copy{min-width:0;display:grid;gap:5px}
.invitation-result-copy>span{color:var(--muted);font-size:13px}
.invitation-result strong{overflow:hidden;color:var(--brand);font-size:14px;text-overflow:ellipsis;white-space:nowrap}
.invitation-note{color:var(--muted);font-size:12px;line-height:1.5}.invitation-result code{color:var(--ink)}
.invitation-result button{flex:none}
.management-section{margin-top:22px}.management-section>h2{margin:0 0 10px;font-size:17px}
.management-list{display:grid;gap:10px}
.management-list article{padding:16px 18px;display:flex;align-items:center;justify-content:space-between;gap:14px;background:var(--paper);border:1px solid var(--line);border-radius:14px}
.management-list article div{min-width:0;display:grid;gap:4px}.management-list strong{overflow:hidden;text-overflow:ellipsis}.management-list span{color:var(--muted);font-size:13px}
.management-list button{min-height:40px;padding:0 12px;flex:none;color:var(--danger);background:#fff;border:1px solid var(--line);border-radius:9px;cursor:pointer;font-weight:750}
.material-history{padding:4px 20px;box-shadow:none}
.material-history article{padding:17px 0;display:grid;grid-template-columns:1fr auto;gap:14px;align-items:center;border-bottom:1px solid var(--line)}
.material-history article:last-child{border:0}
.material-history h2{margin:0;font-size:16px}
.material-history p{margin:5px 0 0;color:var(--muted);font-size:14px}
.material-history button{padding:0 13px;color:var(--brand);background:#fff;border:1px solid var(--line)}
.history-list{padding:4px 20px;box-shadow:none}
.history-list article{padding:18px 0;display:grid;grid-template-columns:92px 1fr auto;gap:12px;align-items:center;border-bottom:1px solid var(--line)}
.history-list article:last-child{border:0}
.history-list time{color:var(--muted);font-size:14px}
.history-list h2{margin:0;font-size:16px}

.compact-entry textarea{min-height:116px}
.answer-card{margin-top:16px;padding:22px}
.answer-card>h2{margin:0 0 16px;font-size:22px}
.query-range{margin:-8px 0 12px;color:var(--muted);font-size:13px}
.query-evidence{display:grid}
.query-evidence article{padding:15px 0;border-top:1px solid var(--line)}
.query-evidence article>div{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:12px}
.query-evidence article>div span{padding:4px 7px;color:var(--brand);background:var(--brand-soft);border-radius:7px;font-weight:700}
.query-evidence article>strong{margin-top:8px;display:block;font-size:16px;line-height:1.5}
.query-evidence article>p{margin:6px 0 0;color:var(--muted);font-size:14px;line-height:1.55}
.answer-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.answer-grid article{padding:15px;background:#f7f8f6;border-radius:12px}
.answer-grid p{margin:10px 0 0;font-size:14px;line-height:1.6}

.bottom-nav{position:fixed;left:50%;top:6px;bottom:auto;z-index:40;transform:translateX(-50%);width:440px;height:52px;padding:5px;display:grid;grid-template-columns:repeat(4,1fr);gap:5px;background:rgba(255,254,251,.96);border:1px solid var(--line);border-radius:14px;box-shadow:0 8px 24px rgba(38,52,44,.09);backdrop-filter:blur(14px)}
.bottom-nav button{color:var(--muted);background:transparent;border:0;border-radius:13px;cursor:pointer;font-size:14px;font-weight:700}
.bottom-nav button:hover:not(.is-active){color:var(--brand);background:#f1f5f2}
.bottom-nav button.is-active{color:#fff;background:var(--brand);box-shadow:0 5px 14px rgba(31,106,82,.2);font-weight:800}
.consultant-main{padding-bottom:72px}

@media(min-width:1200px){
  .app-main{padding-bottom:80px}
}

@media(min-width:701px) and (max-width:1199px){
  .app-main{padding-top:104px;padding-bottom:80px}
  .bottom-nav{top:64px;width:100%;height:56px;border-right:0;border-left:0;border-radius:0;box-shadow:0 8px 20px rgba(38,52,44,.08)}
}

@media(prefers-reduced-motion:reduce){.page,.flow-panel,.plan-range,.advisor-view{animation:none}.processing-dot{animation:none}}

@media(max-width:700px){
  .topbar{height:58px;padding:0 15px}.brand-mark{width:31px;height:31px}.app-main{padding:88px 15px 72px}.auth-main{min-height:calc(100vh - 58px);padding:52px 15px}.page-heading{margin-bottom:20px}.page-heading h1{font-size:38px}.subpage-heading h1{font-size:34px}.entry-card,.upload-card,.daily-review-card,.today-proposal-card,.day-update-card,.day-update-review,.day-update-history{padding:17px}.entry-card-heading{align-items:flex-start;flex-direction:column;gap:4px}.morning-review-grid{width:100%;margin-left:0;grid-template-columns:1fr;transform:none}.daily-review-item-heading{grid-template-columns:1fr}.today-proposal-list li{grid-template-columns:31px minmax(0,1fr)}.today-proposal-list li>button{grid-column:2;justify-self:start}.today-basis-grid{grid-template-columns:1fr}.three-actions{grid-template-columns:1fr 1fr}.three-actions .primary-button{grid-column:2;grid-row:1}.three-actions .text-button{grid-column:1/-1;grid-row:2;justify-self:center}.inline-entry{grid-template-columns:96px 1fr}.inline-entry>button:last-child{grid-column:1/-1}.review-list article,.diff-list article{padding:16px 14px;grid-template-columns:72px 1fr}.today-list article,.plan-list article{padding:16px 14px;grid-template-columns:31px 1fr}.today-list article>button,.plan-list article>button{grid-column:2;justify-self:start;padding-left:0}.current-task{padding:18px 16px;grid-template-columns:32px 1fr}.next-list article div{align-items:flex-start;flex-direction:column}.heading-row{align-items:flex-start;flex-direction:column}.heading-row .quiet-button{align-self:flex-start}.plan-heading-actions{width:100%;justify-content:flex-end}.plan-current-source{align-items:flex-start;flex-direction:column}.plan-current-source>div{width:100%;align-items:flex-start;flex-direction:column;gap:6px}.plan-current-source strong{width:100%}.plan-current-source>button{align-self:flex-end}.plan-identity-panel{align-items:stretch;flex-direction:column}.plan-identity-controls{width:100%;min-width:0}.plan-history-list article{grid-template-columns:auto minmax(0,1fr)}.plan-history-actions{grid-column:2;justify-self:start}.plan-document-header{padding:17px;align-items:stretch;flex-direction:column}.plan-document-actions{justify-content:flex-end}.plan-phase-grid{grid-template-columns:1fr}.plan-phase-grid button{min-height:112px}.plan-gantt-section,.plan-list-section{padding:15px}.plan-gantt-section{width:100%;margin-left:0;transform:none}.plan-gantt-tools{align-items:stretch;display:grid;grid-template-columns:1fr 1fr}.plan-gantt-tools label,.plan-gantt-tools select,.plan-gantt-tools input{width:100%;min-width:0}.plan-gantt-tools p{margin:0!important;align-self:center}.plan-gantt-tools button{width:100%}.gantt-viewport{height:min(54dvh,520px)}.plan-subrange{grid-template-columns:1fr}.plan-subrange button{min-height:80px}.plan-task-list article{grid-template-columns:42px 1fr}.plan-task-list time,.plan-task-list em{grid-column:2}.plan-day-picker{grid-template-columns:1fr}.answer-grid{grid-template-columns:1fr}.history-list article{grid-template-columns:1fr auto}.history-list time{grid-column:1/-1}.material-note{grid-template-columns:1fr}.material-note .voice-button{justify-self:start}.bottom-nav{top:58px;width:100%;height:54px;border-right:0;border-left:0;border-radius:0;box-shadow:0 8px 20px rgba(38,52,44,.08)}.permission-strip{align-items:flex-start;flex-direction:column}
}

@media(max-width:700px){
  .plan-day-counts{grid-template-columns:1fr}
  .gantt-filter-menu,.gantt-task-column .gantt-filter-menu{width:270px}
  .gantt-column-filter .gantt-filter-menu{right:0;left:auto}
  .gantt-filter-options{max-height:195px}
}

@media(max-width:390px){
  .app-main{padding-left:12px;padding-right:12px}.entry-actions:not(.three-actions){align-items:stretch;flex-direction:column-reverse}.entry-actions:not(.three-actions)>button{width:100%}.segment button{min-height:43px}.bottom-nav{width:100%}.choice-row{flex-direction:column-reverse}.choice-row button{width:100%}.consultant-context-heading{align-items:stretch;flex-direction:column}.consultant-context-heading .primary-button{width:100%}.consultant-context-section>header{align-items:flex-start;flex-direction:column;gap:4px}
  .login-form,.registration-form{grid-template-columns:1fr}.auth-guidance,.auth-feedback,.registration-form button{grid-column:auto}.auth-field-help{min-height:0}.invitation-result{align-items:stretch;flex-direction:column}.invitation-result button{width:100%}.stored-materials article,.management-list article{align-items:flex-start;flex-direction:column}.material-preview-body{padding-left:15px;padding-right:15px}.preview-sheet article{grid-template-columns:1fr;gap:4px}
}
/* Adopted advice stays compact in the list; scheduling is one focused form. */
.advice-schedule-form { display: grid; gap: 18px; }
.advice-schedule-form label { display: grid; gap: 8px; font-weight: 600; }
.advice-schedule-form input, .advice-schedule-form select { width: 100%; min-width: 0; padding: 12px; font: inherit; border: 1px solid #cbd6d0; border-radius: 12px; background: white; }
.advice-schedule-form .advice-priority { display: flex; align-items: center; }
.advice-priority input { width: 22px; height: 22px; }
.advice-schedule-form [hidden] { display: none; }
.advice-schedule-notice { padding: 14px; background: #e5f1eb; border-radius: 12px; }
#advice-save-error { color: #a4453e; }
