:root{font-family:Montserrat,Arial,sans-serif;color:#1a0f0b;background:#fafafa;font-synthesis:none;--orange:#ff5722;--muted:#756a64;--line:#eae5e1;--cream:#fbf4ee;--green:#397657}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer;border:0;background:none;color:inherit}button:disabled{opacity:.55;cursor:wait}button:focus-visible,a:focus-visible{outline:3px solid #ff5722;outline-offset:4px}a{color:inherit}svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}button svg{vertical-align:middle}.shell{display:grid;grid-template-columns:240px 1fr;min-height:100vh}.sidebar{background:#fff;border-right:1px solid var(--line);padding:38px 24px;position:sticky;top:0;height:100vh;display:flex;flex-direction:column}.logo{display:block;width:172px;height:auto}.brand-note{font-size:9px;letter-spacing:.2em;text-transform:uppercase;margin:16px 0 45px;color:var(--muted)}.nav-label,.eyebrow{font-size:10px;font-weight:700;letter-spacing:.14em;text-transform:uppercase}.nav-label{color:#8d837d;margin:0 12px 16px}.nav{display:flex;flex-direction:column;gap:7px}.nav button{display:flex;gap:12px;align-items:center;text-align:left;padding:14px 13px;border-radius:10px;font-size:12px;font-weight:600;color:#716660}.nav button:hover{background:#faf6f3}.nav button.active{background:#fff0e8;color:#bc3c14}.side-project{margin-top:35px;padding:19px 14px;border-top:1px solid var(--line)}.side-project strong{font-size:12px;display:block;margin:10px 0}.side-project p{font-size:11px;line-height:1.8;color:var(--muted);margin:0}.sidebar-bottom{margin-top:auto;padding-top:24px}.sidebar-bottom p{font-size:10px;color:var(--muted);line-height:1.8}.access-tag{display:flex;align-items:center;gap:8px;font-size:11px;font-weight:600}.main{min-width:0}.topbar{height:84px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);padding:0 42px;background:#fff;gap:15px}.breadcrumb{font-size:11px;color:var(--muted)}.breadcrumb strong{color:#342722;font-weight:600}.slash{padding:0 13px;color:#c8bfb8}.top-actions{display:flex;align-items:center;gap:16px}.pill{display:inline-flex;align-items:center;gap:7px;border-radius:9999px;padding:8px 11px;font-size:10px;font-weight:600;white-space:nowrap;background:#f4f2ef;color:#71645c}.pill.green{color:#346d50;background:#edf5ee}.pill.orange{color:#ad3713;background:#fff0e7}.pill.red{color:#a52e2b;background:#fceceb}.pill svg{width:13px;height:13px}.text-button{font-size:11px;font-weight:600;color:var(--muted);padding:8px 0}.avatar{width:33px;height:33px;border-radius:50%;display:grid;place-items:center;background:#f3e8df;font-size:10px;font-weight:700}.content{max-width:1380px;margin:auto;padding:39px 42px 24px}.intro{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:27px}.eyebrow{color:var(--muted);margin:0 0 12px}.intro h1{font-size:33px;letter-spacing:-1.5px;line-height:1.2;margin:0 0 11px;font-weight:700}.intro p{font-size:12px;color:var(--muted);line-height:1.8;margin:0}.button{border-radius:9999px;padding:12px 19px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-size:11px;font-weight:600;background:#ff5722;color:white;min-height:40px;transition:background .2s}.button:hover{background:#e64a19}.button.secondary{background:#fff;border:1px solid #e5ddd7;color:#43342b}.button.secondary:hover{background:#f6f1ec}.button.dark{background:#241710}.button svg{width:15px;height:15px}.hero{border-radius:20px;background:var(--cream);padding:28px 31px;display:grid;grid-template-columns:1fr 280px;gap:30px;align-items:center;position:relative;overflow:hidden}.hero h2{font-size:27px;letter-spacing:-1px;margin:13px 0 9px}.hero p{font-size:12px;line-height:1.8;color:#756355;max-width:530px;margin:0}.hero .eyebrow{color:#a74a27}.progress-side{border-left:1px solid #e6d8cc;padding-left:30px}.progress-value{font-size:45px;font-weight:700;letter-spacing:-2px}.progress-value span{font-size:21px}.progress-label{font-size:11px;color:var(--muted);margin:4px 0 16px}.progress-track{height:6px;background:#eadfd5;border-radius:9999px;overflow:hidden}.progress-track div{height:100%;background:var(--orange);border-radius:9999px;transition:width .3s}.progress-foot{font-size:9px;color:#7d6959;line-height:1.7;margin-top:11px}.stats{display:grid;grid-template-columns:repeat(4,1fr);margin:23px 0 32px;border:1px solid var(--line);border-radius:15px;background:#fff}.stat{padding:21px 22px;position:relative}.stat+.stat{border-left:1px solid var(--line)}.stat-label{font-size:10px;color:var(--muted);display:flex;justify-content:space-between;gap:8px;align-items:center}.stat-label svg{color:#ae9e93;width:17px}.stat-value{font-size:27px;letter-spacing:-1px;font-weight:700;margin:12px 0 6px}.stat-note{font-size:9px;line-height:1.7;color:var(--muted)}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 282px;gap:26px}.section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.section-head h2{font-size:17px;letter-spacing:-.5px;margin:0}.section-head p{font-size:10px;color:var(--muted);margin:7px 0 0}.filter{background:#fff;border:1px solid var(--line);border-radius:9999px;padding:8px 10px;font-size:10px;max-width:120px}.task-list{border:1px solid var(--line);border-radius:16px;background:#fff;overflow:hidden}.task{width:100%;display:grid;grid-template-columns:33px 1fr auto;align-items:center;gap:14px;padding:20px 21px;text-align:left;position:relative;min-height:87px}.task+.task{border-top:1px solid #f0ece8}.task:hover{background:#fcf9f6}.task.current{background:#fffbf7}.task.current:before{content:'';position:absolute;left:0;top:0;bottom:0;width:3px;background:var(--orange)}.task-number{font-size:11px;border:1px solid #e6ddd6;color:#85776b;border-radius:50%;height:31px;width:31px;display:grid;place-items:center}.task.done .task-number{background:#edf5ee;color:var(--green);border-color:#e0ebe1}.task.current .task-number{color:#be461e;border-color:#f7c6af;background:#fff0e7}.task-number svg{width:15px}.task-title{font-size:12px;font-weight:600;line-height:1.6;margin-bottom:5px}.task-meta{font-size:9px;color:var(--muted);line-height:1.8;display:flex;gap:12px;flex-wrap:wrap}.task-end{display:flex;align-items:center;gap:10px}.task-end>svg{color:#aaa097;width:13px}.task-end .pill{font-size:9px;padding:6px 9px}.next-card{border:1px solid #eaded4;border-radius:16px;padding:23px;background:#fbf4ee;margin-bottom:20px}.next-icon{color:#c14c22;margin:14px 0 18px}.next-icon svg{width:27px;height:27px}.next-card h3{font-size:17px;line-height:1.5;letter-spacing:-.5px;margin:0 0 12px}.next-card p{color:#7b685c;font-size:11px;line-height:1.85;margin:0 0 22px}.next-card .button{width:100%}.activity-card{padding:5px 3px}.activity-card h3{font-size:13px;margin:0 0 20px}.activity{position:relative;border-left:1px solid #e6ded7;margin-left:5px;padding:0 0 23px 19px}.activity:before{content:'';position:absolute;left:-4px;top:4px;background:#c4b0a1;width:7px;height:7px;border-radius:50%}.activity:first-of-type:before{background:var(--orange)}.activity small{font-size:9px;color:var(--muted)}.activity p{font-size:11px;font-weight:600;line-height:1.7;margin:7px 0}.activity .detail{font-size:10px;font-weight:400;color:var(--muted)}.footer{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);margin-top:33px;padding-top:18px;font-size:9px;color:#8d8077;gap:20px;line-height:1.8}.footer .wordmark{font-weight:600;letter-spacing:.06em}.notice{padding:12px 17px;border:1px solid #efd9c8;background:#fff8ef;color:#826245;border-radius:10px;margin-bottom:20px;font-size:10px;line-height:1.7}.empty{padding:38px;text-align:center;color:var(--muted);font-size:12px;line-height:1.8}.results-card{padding:30px;border:1px solid var(--line);border-radius:18px;background:white}.results-card h3{margin:0 0 12px;font-size:18px}.results-card p{font-size:12px;line-height:1.9;color:var(--muted)}.results-card .progress-track{margin:24px 0}.sales-big{font-size:48px;letter-spacing:-2px;font-weight:700;margin:25px 0 8px}.sales-big small{font-size:14px;letter-spacing:0;font-weight:500;color:var(--muted)}.history-full{background:#fff;border:1px solid var(--line);border-radius:16px;padding:30px}.history-full .activity{padding-bottom:25px}.history-full .activity:last-child{padding-bottom:0}.notes{white-space:pre-wrap;overflow-wrap:anywhere}.login-wrap{min-height:100vh;display:grid;place-items:center;padding:24px;background:var(--cream)}.login-card{width:440px;max-width:100%;background:white;border-radius:24px;padding:38px}.login-card .logo{margin-bottom:40px}.login-card h1{font-size:29px;letter-spacing:-1px}.login-card p{font-size:12px;color:var(--muted);line-height:1.8}.login-card .button{width:100%;margin-top:20px}.boot{padding:80px;font-size:15px;text-align:center}dialog{border:0;border-radius:22px;padding:0;width:530px;max-width:calc(100% - 30px);max-height:90dvh;color:#1a0f0b;box-shadow:0 25px 70px #1a0f0b33}dialog::backdrop{background:#1a0f0b66}dialog .modal-body{padding:30px}.modal-header{display:flex;justify-content:space-between;gap:14px;align-items:start}.modal-header h2{font-size:21px;letter-spacing:-.7px;margin:12px 0}.close{padding:8px}.modal-desc{font-size:12px;color:var(--muted);line-height:1.8;margin:0 0 22px}label{display:block;font-size:11px;font-weight:600;margin:18px 0 8px}input,textarea,select{width:100%;border:1px solid #ddd4ce;border-radius:8px;background:white;color:#1a0f0b;padding:11px;font-size:12px;line-height:1.6}input:focus,textarea:focus,select:focus{outline:2px solid #f8af91;outline-offset:1px}textarea{resize:vertical;min-height:104px}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:16px}.modal-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:25px}.error{font-size:11px;line-height:1.7;color:#b12f26;margin-top:14px}.read-detail{font-size:12px;line-height:1.8;padding:10px 0}.read-detail strong{display:block;margin:5px 0;color:var(--muted);font-size:10px}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);border-radius:9999px;padding:14px 23px;background:#251912;color:white;font-size:12px;z-index:20;display:none;max-width:90vw}#toast.visible{display:block}
@media(min-width:1550px){.content{padding-top:50px}.task{padding-top:23px;padding-bottom:23px}}
@media(max-width:1180px){.shell{grid-template-columns:205px 1fr}.sidebar{padding:32px 18px}.logo{width:160px}.content{padding:30px 26px}.topbar{padding:0 26px}.workspace{grid-template-columns:minmax(0,1fr) 245px;gap:20px}.task{padding:17px 15px;gap:10px}.task-end .pill{font-size:8px}.stat{padding:18px 15px}.hero{grid-template-columns:1fr 220px}.intro h1{font-size:29px}}
@media(max-width:980px){.shell{grid-template-columns:1fr}.sidebar{position:relative;height:auto;border-right:0;border-bottom:1px solid var(--line);padding:20px 26px;display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:20px}.sidebar .logo{width:142px}.brand-note,.nav-label,.side-project,.sidebar-bottom{display:none}.nav{flex-direction:row}.nav button{padding:11px}.nav button svg{width:16px}.topbar{height:65px}.content{padding-top:28px}.intro h1{font-size:30px}}

@media(prefers-reduced-motion:reduce){*{transition:none!important}}
@media print{.sidebar,.topbar,.intro .button,.filter,.next-card .button,.text-button,.notice,dialog,#toast{display:none!important}.shell{display:block}.content{max-width:none;padding:0}.workspace{grid-template-columns:1fr 240px}.hero,.stats,.task-list{break-inside:avoid}.task{padding:15px}.footer{margin-top:20px}body{background:white;font-size:10px}.hero{-webkit-print-color-adjust:exact;print-color-adjust:exact}}
.dependency-note{font-size:10px;color:#806248;background:#fbf4ee;padding:12px;border-radius:8px;line-height:1.8}.calendar-card{background:white;border:1px solid var(--line);border-radius:18px;padding:24px}.calendar-card input[type=month]{width:185px;font-size:11px}.calendar-legend{display:flex;gap:18px;flex-wrap:wrap;margin:22px 0;font-size:9px;color:var(--muted)}.calendar-legend span{display:flex;align-items:center;gap:7px}.calendar-legend i{width:9px;height:9px;border-radius:3px}.complete{background:#d3e8d7;color:#397657}.planned{background:#ffb796;color:#99401c}.waiting{background:#e4ddd6;color:#7f7268}.calendar-scroll{overflow:auto;max-width:100%;border:1px solid var(--line);border-radius:10px}.calendar-grid{display:grid;grid-template-columns:260px repeat(var(--days),38px);width:max-content}.calendar-sticky{position:sticky;left:0;background:white;z-index:3;border-right:1px solid var(--line)}.calendar-title{font-size:10px;font-weight:600;padding:19px 14px;background:#faf8f5;text-transform:capitalize}.calendar-day{text-align:center;padding:9px 0;font-size:11px;border-left:1px solid #f4eeea;background:#faf8f5}.calendar-day span{display:block;font-size:8px;color:#8e8278;margin-bottom:7px}.calendar-label{padding:17px 14px;min-height:97px;text-align:left;border-top:1px solid var(--line)}.calendar-label:hover{background:#fff8f1}.calendar-label strong{display:block;font-size:10px;line-height:1.7}.calendar-label small{display:block;font-size:8px;line-height:1.7;color:var(--muted);margin-top:3px}.calendar-lane{position:relative;display:grid;grid-template-columns:repeat(var(--days),38px);border-top:1px solid var(--line)}.calendar-cell{border-left:1px solid #f1ece8;min-height:97px}.weekend{background:#f9f7f4}.today{background:#fff1e7}.calendar-bar{position:absolute;top:34px;height:27px;border-radius:6px;z-index:1;overflow:hidden;display:flex;align-items:center;justify-content:center}.calendar-bar svg{width:13px;height:13px}.unscheduled{position:absolute;left:16px;top:39px;font-size:9px;color:#978b81;pointer-events:none}.calendar-foot{font-size:10px;line-height:1.9;color:var(--muted);margin:20px 0 0}
.documents{margin-top:24px;padding-top:4px;border-top:1px solid var(--line)}.documents>p{font-size:9px;color:var(--muted);line-height:1.8}.documents label span{color:var(--muted)}.document-link{display:flex;align-items:center;gap:12px;text-decoration:none;background:#faf7f3;border-radius:8px;padding:12px;margin:8px 0}.document-link:hover{background:#fff0e7}.document-link strong{display:block;font-size:10px;overflow-wrap:anywhere;line-height:1.7}.document-link small{font-size:9px;color:var(--muted)}.no-documents{font-size:10px;color:var(--muted);padding:10px 0}.documents input[type=file]{font-size:10px}.documents input::file-selector-button{border:0;background:#fbf4ee;padding:8px;border-radius:9999px;color:#744e36;font:inherit;margin-right:10px}

/* Phone layout: touch navigation, readable forms and a daily agenda. */
.mobile-project,.mobile-agenda{display:none}
button,a,input,select,textarea{touch-action:manipulation}
.task>div,.section-head>div,.intro>div,.modal-header>div,.document-link>span{min-width:0}
.task-title,.activity p,.next-card h3,.modal-header h2{overflow-wrap:anywhere}
.editing{overflow:hidden}
#dialog-title:focus{outline:none}
@media screen and (max-width:980px){
  .workspace{grid-template-columns:minmax(0,1fr)}
  .workspace>aside{display:grid;grid-template-columns:1fr 1fr;gap:24px}
}
@media screen and (max-width:720px){
  html{-webkit-text-size-adjust:100%;scroll-padding-bottom:110px}
  body{font-size:14px}
  .shell{min-height:100dvh;display:block}
  .sidebar{padding:18px max(16px,env(safe-area-inset-right)) 18px max(16px,env(safe-area-inset-left));display:block}
  .sidebar>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:16px}
  .sidebar .logo{width:150px;max-width:55%;height:auto}
  .mobile-project{display:inline;font-size:12px;font-weight:600;color:var(--muted);white-space:nowrap}
  .nav{position:fixed;z-index:10;inset:auto 0 0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;width:100%;margin:0;padding:8px max(8px,env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));background:#fff;border-top:1px solid var(--line)}
  .nav button{display:flex;flex-direction:column;gap:6px;justify-content:center;min-height:56px;min-width:0;padding:7px 3px;border-radius:12px;font-size:11px;line-height:1.3;text-align:center}
  .nav button svg{width:21px;height:21px}
  .topbar{min-height:60px;height:auto;padding:6px 16px;justify-content:flex-end}
  .breadcrumb{display:none}
  .top-actions{width:100%;justify-content:flex-end;gap:14px;flex-wrap:wrap}
  .top-actions #preview{margin-right:auto}
  .top-actions .pill{font-size:11px;padding:8px 10px}
  .top-actions .avatar{display:none}
  .text-button{min-height:44px;font-size:12px;padding:10px 2px}
  .content{width:100%;padding:24px max(16px,env(safe-area-inset-right)) calc(108px + env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left))}
  .notice{font-size:12px;padding:12px 14px;line-height:1.7;margin-bottom:24px}
  .eyebrow{font-size:11px;line-height:1.6;letter-spacing:.1em}
  .intro{display:block;margin-bottom:24px}
  .intro h1{font-size:30px;letter-spacing:-1.2px;line-height:1.18;text-wrap:balance}
  .intro p{font-size:14px;line-height:1.7;max-width:none}
  .intro .button{margin-top:17px;font-size:12px;padding:11px 17px;min-height:44px}
  .intro .button svg{width:17px;height:17px}
  .button{min-height:48px;font-size:14px;padding:12px 18px;line-height:1.5}
  .button svg{width:18px;height:18px}
  .hero{grid-template-columns:minmax(0,1fr);padding:23px 20px;gap:22px;border-radius:18px}
  .hero h2{font-size:26px;line-height:1.25}
  .hero p{font-size:14px;line-height:1.75}
  .progress-side{padding:18px 0 0;border-left:0;border-top:1px solid #e6d8cc;display:grid;grid-template-columns:1fr 1fr;gap:7px 16px;align-items:center}
  .progress-value{grid-column:1;grid-row:1;font-size:42px;line-height:1.2}
  .progress-label{grid-column:1;grid-row:2;font-size:12px;margin:0;line-height:1.6}
  .progress-track{grid-column:2;grid-row:1;height:8px}
  .progress-foot{grid-column:2;grid-row:2;font-size:11px;line-height:1.7;margin:0}
  .progress-foot br{display:none}
  .stats{grid-template-columns:repeat(2,minmax(0,1fr));margin:20px 0 28px}
  .stat{padding:18px 14px;min-width:0}
  .stat:nth-child(3){border-left:0}
  .stat:nth-child(n+3){border-top:1px solid var(--line)}
  .stat-label{font-size:12px;align-items:start;line-height:1.6}
  .stat-label svg{width:17px;height:17px;margin-top:2px}
  .stat-value{font-size:28px;line-height:1.25}
  .stat-note{font-size:11px;line-height:1.7}
  .workspace{grid-template-columns:minmax(0,1fr);gap:26px}
  .workspace>aside{display:block}
  .section-head{align-items:start;flex-wrap:wrap;gap:15px}
  .section-head h2{font-size:19px;line-height:1.35}
  .section-head p{font-size:12px;line-height:1.7}
  .filter{min-height:48px;max-width:none;width:100%;font-size:16px;padding:10px 14px}
  .task{grid-template-columns:32px minmax(0,1fr);align-items:start;gap:10px 12px;padding:20px 16px}
  .task-number{height:32px;width:32px;font-size:12px;margin-top:2px}
  .task-title{font-size:14px;line-height:1.6;margin-bottom:7px}
  .task-meta{font-size:12px;display:flex;flex-direction:column;gap:3px;line-height:1.7}
  .task-end{grid-column:2;gap:0}
  .task-end>svg{display:none}
  .task-end .pill{font-size:11px;white-space:normal;text-align:left;line-height:1.6;padding:7px 11px;max-width:100%}
  .next-card{padding:23px 20px;margin-bottom:24px}
  .next-icon{display:none}
  .next-card h3{font-size:21px;line-height:1.45;margin-top:13px}
  .next-card p{font-size:14px;line-height:1.75}
  .activity-card h3{font-size:17px}
  .activity small{font-size:11px;line-height:1.7}
  .activity p{font-size:14px}
  .activity .detail{font-size:12px;line-height:1.8}
  .history-full{padding:23px 20px}
  .footer{font-size:11px;align-items:start;gap:18px;flex-direction:column;margin-top:28px}
  .footer .wordmark{font-size:10px}
  .results-card{padding:23px 20px}
  .results-card .section-head{display:block}
  .results-card .section-head .button{margin-top:14px;width:100%}
  .results-card h3{font-size:22px;line-height:1.3}
  .results-card p{font-size:14px}
  .results-card .empty{padding:24px 0}
  .sales-big{font-size:42px}
  .sales-big small{display:block;font-size:14px;line-height:1.7;margin-top:8px}
  .empty{font-size:14px;padding:25px 18px}
  .login-wrap{min-height:100dvh;padding:24px 16px}
  .login-card{padding:30px 22px}
  .login-card .logo{margin-bottom:30px;max-width:100%}
  .login-card p{font-size:14px}
  label{font-size:13px;line-height:1.6;margin-top:21px}
  input,select,textarea{font-size:16px;min-height:48px;min-width:0;max-width:100%;padding:12px;line-height:1.5}
  input[type=date],input[type=month]{appearance:none;-webkit-appearance:none;display:block;min-inline-size:0}
  textarea{min-height:120px}
  .form-row{grid-template-columns:minmax(0,1fr);gap:0}
  .form-row>div{min-width:0}
  dialog{position:fixed;inset:0;margin:0;width:100%;max-width:100%;height:var(--modal-height,100dvh);max-height:100dvh;border-radius:0;overflow-y:auto;overscroll-behavior:contain;scroll-padding-top:110px;scroll-padding-bottom:110px}
  dialog .modal-body{padding:0 max(20px,env(safe-area-inset-right)) 0 max(20px,env(safe-area-inset-left));min-height:100%;display:flex;flex-direction:column}
  .modal-header{position:sticky;top:0;z-index:2;background:#fff;margin:0 -20px 16px;padding:calc(16px + env(safe-area-inset-top)) 20px 12px;border-bottom:1px solid var(--line);gap:10px}
  .modal-header h2{font-size:20px;line-height:1.4;margin:7px 0;letter-spacing:-.5px}
  .modal-header .eyebrow{font-size:10px;margin-bottom:3px}
  .close{flex-shrink:0;display:grid;place-items:center;min-width:48px;min-height:48px;padding:12px;border-radius:50%;background:#faf6f1}
  .modal-desc{font-size:14px;line-height:1.75;margin-bottom:8px}
  .modal-actions{position:sticky;bottom:0;background:#fff;z-index:2;display:grid;grid-template-columns:1fr 1.6fr;gap:10px;margin:24px -20px 0;padding:14px 20px calc(14px + env(safe-area-inset-bottom));border-top:1px solid var(--line)}
  .modal-actions .button{font-size:13px;padding:11px 12px;min-height:48px}
  .modal-actions .button:only-child{grid-column:1/-1}
  .dependency-note{font-size:12px;line-height:1.8;padding:14px}
  .read-detail{font-size:15px;line-height:1.8}
  .read-detail strong{font-size:12px;margin:16px 0 6px}
  .documents>p{font-size:12px;line-height:1.8}
  .document-link{padding:15px 12px;min-height:60px}
  .document-link strong{font-size:13px}
  .document-link small{font-size:11px;line-height:1.7}
  .no-documents{font-size:13px}
  .documents input[type=file]{font-size:16px;width:100%;padding:8px;overflow:hidden}
  .documents input::file-selector-button{min-height:44px;font-size:13px;padding:10px 12px;max-width:100%}
  .error{font-size:13px;line-height:1.75;scroll-margin-block:130px}
  #toast{bottom:calc(92px + env(safe-area-inset-bottom));font-size:13px;line-height:1.7;border-radius:14px;width:max-content;max-width:calc(100% - 32px);padding:14px 18px}
  .boot{padding:60px 24px;font-size:14px}
  .calendar-card{padding:20px 16px;min-width:0}
  .calendar-card .section-head{display:block}
  .calendar-card input[type=month]{width:100%;font-size:16px;margin-top:18px;min-height:48px}
  .calendar-legend,.calendar-scroll,.calendar-foot{display:none}
  .mobile-agenda{display:block;min-width:0}
  .agenda-hint{font-size:12px;color:var(--muted);line-height:1.8;margin:17px 0 12px}
  .agenda-days{display:flex;gap:7px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;padding:5px 3px 12px;scroll-padding-inline:3px}
  .agenda-day{flex:0 0 48px;min-width:48px;min-height:76px;border:1px solid var(--line);border-radius:12px;padding:9px 5px;display:flex;flex-direction:column;align-items:center;gap:6px;scroll-snap-align:start}
  .agenda-day>span{font-size:11px;color:var(--muted)}
  .agenda-day strong{font-size:18px;font-weight:600}
  .agenda-day i{width:5px;height:5px;border-radius:50%;background:transparent}
  .agenda-day i.has-entries{background:var(--orange)}
  .agenda-day.is-today{border-color:#e58c69}
  .agenda-day[aria-pressed=true]{background:#ffede2;border-color:#e78660;color:#97310f}
  .agenda-selected h3{font-size:20px;margin:20px 0 6px;letter-spacing:-.4px}
  .agenda-selected p{font-size:12px;color:var(--muted);margin:0 0 18px}
  .agenda-task{display:block;text-align:left;width:100%;padding:18px 14px;border:1px solid var(--line);border-radius:12px;margin:10px 0;background:#fff;overflow-wrap:anywhere}
  .agenda-task-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px;flex-wrap:wrap}
  .agenda-task .eyebrow{font-size:10px;margin:0}
  .agenda-task .pill{font-size:10px;white-space:normal;line-height:1.5}
  .agenda-task>strong{display:block;font-size:14px;line-height:1.6;margin-bottom:10px}
  .agenda-owner,.agenda-dates,.agenda-dependency{display:block;font-size:12px;color:var(--muted);line-height:1.8;margin-top:5px}
  .agenda-dependency{padding-top:9px;margin-top:10px;border-top:1px solid #f0eae5}
  .agenda-empty{font-size:13px;line-height:1.8;background:#faf7f3;border-radius:10px;padding:18px 14px;color:var(--muted)}
  .agenda-unscheduled{margin-top:28px;border-top:1px solid var(--line);padding-top:8px}
  .agenda-unscheduled summary{cursor:pointer;min-height:48px;padding:14px 0;font-size:14px;font-weight:600}
  .agenda-unscheduled summary span{margin-left:8px;font-weight:500;color:var(--muted)}
  .agenda-unscheduled>p{font-size:12px;color:var(--muted);line-height:1.8;margin:0 0 12px}
}
@media screen and (max-width:359px){
  .nav button{font-size:10px}
  .content{padding-left:12px;padding-right:12px}
  .stat{padding:16px 11px}
  .stat-label svg{display:none}
  .task{padding:18px 12px;gap:10px}
  .intro h1{font-size:28px}
  .calendar-card{padding:18px 12px}
  .top-actions{gap:8px}
  .top-actions .text-button{font-size:11px}
}
@media print{.mobile-agenda,.mobile-project{display:none!important}}
/* The original square logo includes transparent space around the wordmark. */
.logo-window{display:block;position:relative;width:172px;aspect-ratio:4.2;overflow:hidden;flex-shrink:0}
.logo-window .logo{position:absolute;width:112%;max-width:none;height:auto;left:50%;top:50%;transform:translate(-50%,-52%);margin:0}
.login-card .logo-window{margin-bottom:40px}
@media screen and (max-width:720px){
  .sidebar .logo-window{width:150px;max-width:55%}
  .sidebar .logo-window .logo{width:112%;max-width:none}
  .login-card .logo-window{margin-bottom:30px}
}

/* Status follows the supplied workbook: completed green, in progress yellow. */
.pill.yellow{background:#fff0a6;color:#735400}
.task.status-done,.agenda-task.status-done,.project-field-card.status-done{background:#edf7ef}
.task.status-active,.agenda-task.status-active,.project-field-card.status-active{background:#fff9d9}
.task.status-blocked,.agenda-task.status-blocked,.project-field-card.status-blocked{background:#fff0ee}
.task.status-active:hover,.agenda-task.status-active:hover{background:#fff1b6}
.task.status-done:hover,.agenda-task.status-done:hover{background:#e0f1e4}
.task.status-active .task-number{background:#ffef9b;color:#725500;border-color:#e7ca59}
.task.status-done .task-number{background:#cce7d2;color:#286440}
.task.current.status-active:before{background:#dbb63b}
.in-progress{background:#ffe66d;color:#675000}
.complete{background:#abd6b4;color:#235e37}
.blocked{background:#eab3ac;color:#842f25}
.delay-text{display:block;color:#98572b;font-size:11px;line-height:1.7}
.planning-toolbar{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:20px 0}
.planning-toolbar a{text-decoration:none}
.planning-switch{display:flex;background:#f4efea;padding:4px;border-radius:9999px;gap:3px;margin-right:auto}
.planning-switch button{border-radius:9999px;padding:12px 16px;font-size:12px;min-height:44px;font-weight:600}
.planning-switch button[aria-pressed=true]{background:#fff;color:#aa401c}
.planning-table-view,.project-mobile-fields{display:none}
.planning-table .planning-table-view{display:block}
.planning-table .calendar-legend,.planning-table .calendar-scroll,.planning-table .calendar-foot,.planning-table .mobile-agenda{display:none}
.project-table-scroll{overflow:auto;max-height:70vh;max-width:100%;border:1px solid var(--line);border-radius:12px}
.project-table{border-collapse:separate;border-spacing:0;min-width:1600px;width:100%;font-size:12px;line-height:1.65}
.project-table th,.project-table td{border-bottom:1px solid #e3ded5;padding:13px 12px;text-align:left;vertical-align:top}
.project-table thead th{position:sticky;top:0;z-index:2;background:#f5efe6;font-weight:600;color:#5e4c3f;white-space:nowrap}
.project-table thead th:first-child{left:0;z-index:3}
.project-table td:first-child{position:sticky;left:0;background:#f5efe6;min-width:45px;z-index:1}
.project-table tbody th{min-width:230px;max-width:280px}
.project-table tbody th button{font-size:12px;text-align:left;line-height:1.6;padding:0;min-height:44px;width:100%;font-weight:600}
.project-table tbody th button span{display:block;color:#8e4d2b;font-size:10px;font-weight:500;margin-top:6px}
.project-table td:nth-child(2),.project-table td:nth-child(5),.project-table td:nth-child(6),.project-table td:nth-child(10){white-space:nowrap}
.project-table td:nth-child(7){min-width:200px;max-width:260px}
.project-table td:nth-child(11){min-width:220px;max-width:320px}
.project-table td:nth-child(12){min-width:160px;max-width:250px}
.project-table tr.status-done>*{background:#e1f0e4}
.project-table tr.status-active>*{background:#fff5c0}
.project-table tr.status-blocked>*{background:#fce7e3}
.project-table tr.status-pending>*{background:#fff}
.project-table td small{display:block;white-space:normal}
.project-table td a{display:block;overflow-wrap:anywhere;padding:8px 0;min-height:40px}
.dependencies{margin:24px 0 12px;padding:16px;border:1px solid var(--line);border-radius:12px;min-width:0}
.dependencies legend{font-size:13px;font-weight:600;padding:0 7px}
.dependencies>p{font-size:11px;color:var(--muted);line-height:1.8;margin:0 0 12px}
.dependency-choice{display:flex;align-items:start;gap:11px;min-height:48px;padding:11px 0;margin:0;border-bottom:1px solid #f1ece6;cursor:pointer}
.dependency-choice input{width:20px;height:20px;min-height:20px;flex:0 0 20px;margin:2px 0;accent-color:#ff5722;padding:0}
.dependency-choice span{font-size:12px;line-height:1.7}
.dependency-choice small{display:block;font-weight:400;color:var(--muted);font-size:10px}
.schedule-impact{background:#f7f3eb;border:1px solid #e7dac8;border-radius:12px;padding:17px;margin-top:23px}
.schedule-impact>strong{font-size:13px}
.schedule-impact p{font-size:12px;line-height:1.8;margin:10px 0}
.schedule-impact ul{list-style:none;padding:0;margin:0}
.schedule-impact li{padding:12px 0;border-top:1px solid #e4d8c9;font-size:11px;line-height:1.8}
.schedule-impact li strong,.schedule-impact li span,.schedule-impact li b{display:block}
.schedule-impact li span{color:var(--muted);text-decoration:line-through}
.document-row{display:flex;gap:6px;align-items:center}
.document-row .document-link{flex:1;min-width:0}
.remove-document{display:grid;place-items:center;min-width:44px;min-height:44px;color:#9b372a;border-radius:50%;background:#fff1ec}
#title{min-height:85px}
#automatic-start{color:#a34422;text-align:left;line-height:1.6}
@media screen and (max-width:720px){
 .planning-toolbar{gap:12px;align-items:stretch}
 .planning-switch{width:100%;margin:0}
 .planning-switch button{flex:1;min-height:48px;padding:10px 12px;font-size:13px}
 .planning-toolbar>.button{flex:1;font-size:12px}
 .planning-table .mobile-agenda{display:none}
 .project-table-scroll{display:none}
 .project-mobile-fields{display:block}
 .project-field-card{padding:19px 15px;border:1px solid var(--line);border-radius:14px;margin:16px 0}
 .project-field-card>.section-head{display:block}
 .project-field-card>.section-head>strong{display:block;font-size:15px;line-height:1.65;overflow-wrap:anywhere;margin-bottom:12px}
 .project-field-card dl{margin:18px 0}
 .project-field-card dl>div{padding:9px 0;border-top:1px solid #e4dfd4}
 .project-field-card dt{font-size:11px;color:var(--muted);line-height:1.8}
 .project-field-card dd{font-size:14px;margin:2px 0 0;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere}
 .project-field-card .button{width:100%;margin-top:17px}
 .field-docs>strong{font-size:12px}
 .dependencies{padding:13px}
 .dependencies>p{font-size:12px}
 .dependency-choice span{font-size:13px}
 .dependency-choice small{font-size:11px}
 .dependency-choice input{width:22px;height:22px;flex-basis:22px;min-height:22px}
 .schedule-impact>strong{font-size:14px}
 .schedule-impact li{font-size:12px}
 .delay-text{font-size:12px}
 .task-list .task-end .pill.yellow{color:#735400}
 .mobile-project{font-size:11px}
}
@media print{.planning-toolbar{display:none}.project-table-scroll{max-height:none;overflow:visible}.project-table{min-width:0;font-size:8px}.project-table td,.project-table th{min-width:0!important;max-width:none!important;padding:6px}.project-table tbody th button{font-size:9px}.project-table thead th{white-space:normal;position:static}.project-mobile-fields{display:none}}
.calendar-bar.complete{background:#92d050;color:#244714}
.calendar-bar.in-progress{background:#ffff00;color:#4f4d00}
.history-changes{font-size:11px;line-height:1.8;margin-top:10px}
.history-changes summary{cursor:pointer;min-height:44px;padding:10px 0;color:#7b543a}
.history-changes p{font-size:11px!important;font-weight:400}
.calendar-label.status-done{background:#e1f0e4}
.calendar-label.status-active{background:#fff5c0}

/* The project opens as a focused to-do list. */
.todo-content{max-width:1050px}
.todo-content .intro{align-items:center;margin-bottom:26px}
.todo-content .intro h1{font-size:31px;margin-bottom:6px}
.todo-content .intro .eyebrow{margin-bottom:8px}
.todo-content .intro p{font-size:13px}
.todo-add{min-height:46px;padding:12px 21px;white-space:nowrap}
.todo-board{width:100%;min-width:0}
.todo-progress{display:grid;grid-template-columns:1fr auto;gap:10px;color:var(--muted);font-size:12px;line-height:1.7;padding-bottom:24px;border-bottom:1px solid var(--line)}
.todo-progress strong{font-weight:600;color:#342722}
.todo-progress .progress-track{grid-column:1/-1;grid-row:auto;height:5px}
.todo-toolbar{display:flex;justify-content:space-between;gap:18px;align-items:center;padding:23px 0 9px}
.todo-filters{display:flex;gap:5px;flex-shrink:0}
.todo-filters button{font-size:12px;font-weight:600;min-height:44px;padding:10px 14px;border-radius:9999px;color:var(--muted)}
.todo-filters button[aria-pressed=true]{background:#fff0e7;color:#ac3915}
.todo-search{width:260px;max-width:100%;font-size:12px;min-height:44px;background:#fff;border-color:var(--line);border-radius:9999px;padding:11px 16px}
.todo-group{margin-top:22px}
.todo-group h2,.todo-group>summary{display:flex;gap:10px;align-items:center;font-size:14px;line-height:1.6;font-weight:600;margin:0 0 12px;padding:5px 0;color:#594d43}
.todo-group h2 span,.todo-group>summary span{font-size:11px;display:grid;place-items:center;width:23px;height:23px;background:#eee9e2;color:#74685e;border-radius:50%;font-weight:500}
.todo-rows{border:1px solid var(--line);border-radius:14px;overflow:hidden;background:#fff}
.todo-row{display:grid;grid-template-columns:52px minmax(0,1fr);align-items:start;gap:0;padding:9px 13px 9px 6px}
.todo-row+.todo-row{border-top:1px solid #e8e3d8}
.todo-row.status-active{background:#fffbe3}
.todo-row.status-done{background:#eff7ee}
.todo-row.status-blocked{background:#fff0ec}
.todo-check{position:relative;width:44px;height:44px;display:grid;place-items:center;margin:3px 4px 0;color:#8d8278;border-radius:9px}
.todo-check:before{content:'';position:absolute;width:22px;height:22px;border:1.5px solid #b8aa9d;border-radius:6px}
.todo-check svg{width:15px;height:15px;z-index:1}
.todo-check:disabled{opacity:1;cursor:default}
.todo-row.status-active .todo-check:before{border-color:#cbb551;background:#fff4b5}
.todo-row.status-done .todo-check{color:#fff}
.todo-row.status-done .todo-check:before{background:#53966a;border-color:#53966a}
.todo-check:not(:disabled):hover:before{border-color:#d75725}
.todo-open{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;column-gap:20px;row-gap:6px;width:100%;min-height:64px;padding:11px 5px 11px 0;text-align:left}
.todo-title{font-size:14px;font-weight:600;line-height:1.55;overflow-wrap:anywhere;grid-column:1;grid-row:1}
.todo-row.status-done .todo-title{text-decoration:line-through;color:#647161}
.todo-meta{display:flex;flex-wrap:wrap;gap:6px 15px;color:var(--muted);font-size:11px;line-height:1.8;grid-column:1;grid-row:2}
.todo-meta>span{display:inline-flex;align-items:center;gap:5px}
.todo-meta svg{width:12px;height:12px}
.todo-waiting{color:#8d7560}
.todo-deadline{grid-column:2;grid-row:1/3;align-self:center;display:flex;align-items:center;gap:7px;font-size:11px;color:#7e6f60;white-space:nowrap}
.todo-deadline svg{width:14px;height:14px}
.todo-deadline.late{color:#a43e24}
.todo-completed>summary{min-height:44px;cursor:pointer;list-style:none;margin-bottom:0}
.todo-completed>summary:before{content:' ';width:7px;height:7px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(-45deg);margin:0 5px 0 2px}
.todo-completed[open]>summary{margin-bottom:12px}
.todo-completed[open]>summary:before{transform:rotate(45deg)}
.todo-completed>summary::-webkit-details-marker{display:none}
.task-planning-details{border:1px solid var(--line);border-radius:12px;padding:0 15px;margin:22px 0}
.task-planning-details>summary{font-size:13px;font-weight:600;cursor:pointer;min-height:48px;padding:15px 0;line-height:1.6}
.task-planning-details[open]{padding-bottom:15px}
.task-planning-details .dependencies{margin-top:8px;border:0;padding:0}
.task-planning-details .dependency-note{margin-bottom:0}
@media screen and (max-width:1050px){.todo-open{grid-template-columns:minmax(0,1fr)}.todo-deadline{grid-column:1;grid-row:3;line-height:1.6;white-space:normal}.todo-toolbar{align-items:stretch;flex-wrap:wrap}.todo-search{width:100%}}
@media screen and (max-width:720px){
 .todo-content{padding-top:20px}
 .todo-content .intro{margin-bottom:19px}
 .todo-content .intro h1{font-size:28px;letter-spacing:-1px}
 .todo-content .intro p{font-size:13px}
 .todo-content .intro .todo-add{width:100%;min-height:46px;margin-top:15px;font-size:14px}
 .todo-progress{font-size:12px;padding-bottom:17px;gap:9px}
 .todo-progress .progress-track{grid-row:auto;grid-column:1/-1;height:5px}
 .todo-toolbar{gap:12px;padding-top:16px;padding-bottom:0;display:flex;flex-direction:column}
 .todo-filters{width:100%;gap:4px}
 .todo-filters button{flex:1;font-size:12px;min-height:44px;padding:10px 7px}
 .todo-search{font-size:16px;min-height:46px;width:100%}
 .todo-group{margin-top:21px}
 .todo-group h2,.todo-group>summary{font-size:14px}
 .todo-row{grid-template-columns:43px minmax(0,1fr);padding:8px 12px 8px 3px}
 .todo-check{margin:3px 0 0;width:44px;height:44px}
 .todo-open{padding:11px 0 12px 4px;row-gap:7px;grid-template-columns:minmax(0,1fr)}
 .todo-title{font-size:14px;line-height:1.6}
 .todo-meta{font-size:12px;gap:4px 12px}
 .todo-deadline{font-size:12px;grid-column:1;grid-row:3;line-height:1.7;white-space:normal}
 .todo-content .footer{font-size:10px;margin-top:28px}
 .task-planning-details{padding-left:13px;padding-right:13px}
 .task-planning-details>summary{min-height:52px;font-size:14px}
}
@media print{.todo-toolbar,.todo-add{display:none}.todo-completed:not([open])>.todo-rows{display:block}.todo-row{break-inside:avoid}.todo-group{break-inside:auto}}

/* Named access and a compact deadline panel, with touch-sized actions. */
.status-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0 0 22px}
.status-summary button{display:flex;flex-direction:column;text-align:left;gap:7px;border:1px solid var(--line);border-radius:12px;padding:17px 15px;background:#fff;min-height:88px}
.status-summary strong{font-size:27px;line-height:1;font-weight:600}
.status-summary span{font-size:11px;line-height:1.5;color:#695d53}
.status-summary button[aria-pressed=true]{outline:2px solid #d85829;outline-offset:2px}
.status-summary .summary-done strong{color:#39774b}
.status-summary .summary-late strong{color:#a43e24}
.status-summary .summary-soon strong{color:#926800}
.todo-row{grid-template-columns:48px minmax(0,1fr) 74px;align-items:center}
.todo-row.is-late{background:#fff1ec;border-left:3px solid #b84c31}
.todo-open{column-gap:14px}
.todo-edit{min-height:44px;display:flex;align-items:center;justify-content:center;gap:5px;font-size:12px;color:#9b3c1c;border-radius:8px}
.todo-edit svg{width:15px;height:15px}
.todo-edit:hover{background:#ffe8db}
.todo-deadline{white-space:normal;max-width:195px;line-height:1.65;align-items:flex-start}
.todo-deadline svg{flex-shrink:0;margin-top:3px}
.todo-deadline small{display:block;font-size:10px;font-weight:400}
.todo-deadline.soon{color:#8d6400}
.task-audit{font-size:12px;line-height:1.7;color:#756656}
.task-audit p{margin:6px 0}
.calendar-bar.overdue,.calendar-legend i.overdue{background:#b94b31;color:#fff}
@media screen and (max-width:1050px){.todo-deadline{max-width:none}}
@media screen and (max-width:720px){
 .status-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-bottom:20px}
 .status-summary button{padding:15px;min-height:82px}
 .status-summary span{font-size:12px}
 .todo-row{grid-template-columns:43px minmax(0,1fr);align-items:start}
 .todo-edit{grid-column:2;justify-self:start;padding:0 9px;margin:0 0 4px;font-size:13px}
 .todo-open{padding-bottom:4px}
 .todo-deadline small{font-size:11px}
 .top-actions{flex-wrap:wrap}
 .task-audit{font-size:12px}
}
@media print{.todo-edit{display:none}.todo-row{grid-template-columns:44px minmax(0,1fr)}.status-summary button{outline:none!important}}
/* The source spreadsheet's partially painted cells do not limit app status colors. */
:root{--task-done:#e1f0e4;--task-active:#fff5c0;--task-late:#fce7e3}
.todo-row.status-done,.agenda-task.status-done,.project-field-card.status-done,.calendar-label.status-done{background:var(--task-done)}
.todo-row.status-active,.agenda-task.status-active,.project-field-card.status-active,.calendar-label.status-active{background:var(--task-active)}
.todo-row.is-late,.agenda-task.is-late,.agenda-task.is-late:hover,.project-field-card.is-late,.calendar-label.is-late{background:var(--task-late)}
.project-table tr.is-late>*{background:var(--task-late)}
.calendar-legend i.complete{background:#92d050}
.calendar-legend i.in-progress{background:#ffff00}
.agenda-deadline{font-size:12px;line-height:1.7}
.agenda-deadline small{display:block;font-size:11px;color:var(--muted)}
.agenda-task.is-late .agenda-deadline{color:#a43e24}
