@font-face{font-family:Inter;src:url("/fonts/Inter_400Regular.ttf") format("truetype");font-weight:400;font-display:swap}
@font-face{font-family:Inter;src:url("/fonts/Inter_500Medium.ttf") format("truetype");font-weight:500;font-display:swap}
@font-face{font-family:Inter;src:url("/fonts/Inter_600SemiBold.ttf") format("truetype");font-weight:600;font-display:swap}
@font-face{font-family:Inter;src:url("/fonts/Inter_700Bold.ttf") format("truetype");font-weight:700;font-display:swap}
@font-face{font-family:"Styrene B";src:url("/brand/fonts/StyreneB-Medium.otf?v=1") format("opentype");font-weight:500;font-display:swap}
:root{--ink:#564929;--ink-strong:#332a18;--muted:#817965;--muted-2:#a49d90;--cream:#f9f8f7;--paper:#fffdfa;--wash:#f3f0eb;--stone:#e4dfd7;--line:rgba(86,73,41,.14);--bronze:#84734c;--bronze-soft:#eee8db;--success:#526b57;--danger:#8d5147;--shadow:0 18px 48px rgba(61,48,25,.08);font-family:Inter,sans-serif;color:var(--ink);background:var(--cream)}
*{box-sizing:border-box}
.source-message{white-space:pre-wrap;margin:9px 0;color:var(--ink)}
.source-disclaimer{display:block;margin-top:8px}
html{min-height:100%;scroll-behavior:smooth}
body{margin:0;min-height:100vh;background:var(--cream);color:var(--ink);font:400 15px/1.55 Inter,sans-serif;letter-spacing:-.01em;-webkit-font-smoothing:antialiased}
button,input,select{font:inherit}
button{color:inherit}
a{color:inherit;text-decoration:none}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid rgba(132,115,76,.42);outline-offset:3px}
.eyebrow{font:500 10px/1.3 "Styrene B",Inter,sans-serif;letter-spacing:.08em;text-transform:uppercase;color:var(--bronze)}
.brandbar{height:76px;padding:0 clamp(20px,5vw,72px);display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);background:rgba(249,248,247,.92)}
.brand-wordmark{display:block;width:174px;height:25px;background:var(--ink);-webkit-mask:url("/brand/wordmark.png") left center/contain no-repeat;mask:url("/brand/wordmark.png") left center/contain no-repeat}
.brand-link{display:inline-flex;align-items:center;gap:10px}
.brand-monogram{display:block;width:28px;height:28px;background:var(--bronze);-webkit-mask:url("/brand/monogram.png") center/contain no-repeat;mask:url("/brand/monogram.png") center/contain no-repeat}
.workspace-tag{font-size:12px;color:var(--muted);letter-spacing:.015em}
.login-page{min-height:100vh;display:flex;flex-direction:column;background:radial-gradient(ellipse at 81% 19%,rgba(219,209,190,.27),transparent 35%),var(--cream)}
.login-layout{width:min(1120px,100%);padding:clamp(34px,8vh,90px) 28px 54px;margin:auto;display:grid;grid-template-columns:minmax(0,1fr) minmax(340px,420px);gap:clamp(44px,10vw,138px);align-items:center}
.login-intro{max-width:490px}
.login-intro .eyebrow{margin:0 0 22px}
.login-intro h1{font-size:clamp(38px,5.1vw,64px);line-height:1.03;letter-spacing:-.055em;font-weight:500;color:var(--ink-strong);margin:0 0 22px;max-width:10ch}
.login-intro p{max-width:47ch;color:var(--muted);font-size:16px;line-height:1.72;margin:0}
.login-rule{height:1px;background:var(--line);margin:34px 0 20px;max-width:340px}
.login-note{display:flex;align-items:flex-start;gap:12px;max-width:390px;color:var(--muted);font-size:12px;line-height:1.6}
.note-mark{width:18px;height:18px;flex:0 0 18px;border:1px solid #c6b99f;border-radius:50%;position:relative;margin-top:1px}
.note-mark:after{content:"";position:absolute;width:4px;height:4px;background:var(--bronze);border-radius:50%;left:6px;top:6px}
.login-card{padding:38px 36px 34px;background:var(--paper);border:1px solid rgba(86,73,41,.12);box-shadow:var(--shadow);border-radius:4px}
.login-card h2{font-size:23px;line-height:1.2;letter-spacing:-.03em;font-weight:500;color:var(--ink-strong);margin:0 0 6px}
.login-card>p{font-size:13px;color:var(--muted);margin:0 0 27px}
.field{display:flex;flex-direction:column;gap:7px;margin:0 0 18px}
.field label{font-size:12px;font-weight:500;color:var(--ink)}
.field input,.field select{width:100%;min-height:46px;padding:11px 13px;border:1px solid #d8d2c8;border-radius:3px;background:#fffdfa;color:var(--ink-strong);font-size:14px;transition:border-color .15s ease,box-shadow .15s ease}
.field input::placeholder{color:#aaa396}
.field input:focus,.field select:focus{border-color:var(--bronze);box-shadow:0 0 0 3px rgba(132,115,76,.1);outline:none}
.password-wrap{position:relative}
.password-wrap input{padding-right:70px}
.reveal-password{position:absolute;right:9px;top:50%;transform:translateY(-50%);border:0;background:transparent;color:var(--muted);font-size:11px;padding:7px;cursor:pointer}
.reveal-password:hover{color:var(--ink)}
.primary-btn,.quiet-btn,.text-btn,.danger-btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:42px;padding:10px 16px;border:1px solid transparent;border-radius:3px;cursor:pointer;font-size:13px;font-weight:500;transition:background .16s ease,border-color .16s ease,color .16s ease,opacity .16s ease}
.primary-btn{background:var(--ink);color:var(--cream)}
.primary-btn:hover{background:#3f351f}
.primary-btn:disabled,.quiet-btn:disabled,.text-btn:disabled,.danger-btn:disabled{opacity:.5;cursor:wait}
.wide{width:100%;min-height:48px;margin-top:4px}
.quiet-btn{background:var(--paper);border-color:var(--line);color:var(--ink)}
.quiet-btn:hover{background:var(--wash);border-color:#c9c0b1}
.text-btn{background:transparent;color:var(--muted);border-color:transparent;padding:8px 10px}
.text-btn:hover{background:var(--wash);color:var(--ink)}
.danger-btn{background:#8a4e42;color:#fffaf6}
.danger-btn:hover{background:#704035}
.form-error{min-height:20px;color:var(--danger);font-size:12px;margin:0 0 8px}
.privacy-copy{margin:19px 0 0;color:var(--muted-2);font-size:11px;line-height:1.6}
.login-bottom{display:flex;justify-content:center;padding:0 20px 20px;color:var(--muted-2);font-size:11px}
.portal-shell{min-height:100vh}
.portal-header{height:70px;display:flex;align-items:center;justify-content:space-between;padding:0 clamp(18px,4vw,58px);border-bottom:1px solid var(--line);background:var(--paper)}
.portal-header .brand-wordmark{width:158px;height:22px}
.header-right{display:flex;align-items:center;gap:20px}
.signed-in{font-size:12px;color:var(--muted)}
.signed-in strong{font-weight:500;color:var(--ink)}
.logout-btn{background:transparent;border:0;border-bottom:1px solid var(--line);padding:5px 0;color:var(--muted);font-size:12px;cursor:pointer}
.logout-btn:hover{color:var(--ink);border-color:var(--bronze)}
.planning-banner{position:sticky;z-index:10;top:0;padding:10px clamp(18px,4vw,58px);background:#ece5d8;border-bottom:1px solid #dcd2bf;color:#51462e;display:flex;align-items:center;gap:11px;font-size:12px;line-height:1.45}
.banner-symbol{width:18px;height:18px;border:1px solid #9c8961;border-radius:50%;display:grid;place-items:center;flex:0 0 auto;font-size:11px;font-weight:600}
.planning-banner strong{font-weight:600}
.page-wrap{width:min(1440px,100%);padding:42px clamp(18px,4vw,58px) 80px;margin:auto}
.page-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:30px}
.page-heading .eyebrow{margin:0 0 9px}
.page-heading h1{font-size:clamp(27px,3.2vw,38px);font-weight:500;letter-spacing:-.045em;line-height:1.08;color:var(--ink-strong);margin:0}
.heading-copy{font-size:13px;color:var(--muted);margin:10px 0 0}
.freshness{display:flex;align-items:center;gap:8px;font-size:11px;color:var(--muted);white-space:nowrap;padding-bottom:3px}
.freshness-dot{width:6px;height:6px;background:#82927a;border-radius:50%}
.layout-grid{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:22px;align-items:start}
.main-column{min-width:0}
.panel{background:var(--paper);border:1px solid var(--line);border-radius:4px}
.panel-head{padding:21px 22px 16px;display:flex;align-items:flex-start;justify-content:space-between;gap:14px;border-bottom:1px solid var(--line)}
.panel-head h2{font-size:17px;line-height:1.25;letter-spacing:-.025em;color:var(--ink-strong);font-weight:500;margin:0}
.panel-head p{font-size:12px;color:var(--muted);margin:5px 0 0}
.panel-body{padding:20px 22px}
.records-head{display:flex;gap:12px;align-items:center}
.search-input{width:min(220px,30vw);height:37px;border:1px solid var(--line);background:#fffdfa;padding:8px 11px;border-radius:3px;font-size:12px;color:var(--ink)}
.record-area{min-height:245px}
.record-list{display:flex;flex-direction:column}
.record-row{display:grid;grid-template-columns:minmax(145px,1.2fr) minmax(130px,1fr) minmax(115px,.8fr) auto;gap:16px;align-items:center;padding:15px 22px;border-bottom:1px solid rgba(86,73,41,.09);transition:background .14s ease}
.record-row:last-child{border-bottom:0}
.record-row:hover{background:#fbf9f5}
.record-name{font-size:13px;font-weight:500;color:var(--ink-strong);overflow-wrap:anywhere}
.record-meta{font-size:11px;color:var(--muted);overflow-wrap:anywhere;margin-top:3px}
.record-status{display:inline-flex;align-items:center;gap:6px;color:var(--muted);font-size:11px}
.record-status:before{content:"";width:6px;height:6px;border-radius:50%;background:#a99b7b}
.record-status.status-booked:before{background:#71856d}
.record-status.status-closed:before{background:#a27b70}
.record-status.status-paused:before{background:#b78a50}
.record-open{border:0;background:transparent;color:var(--bronze);padding:7px 0;font-size:11px;cursor:pointer;white-space:nowrap}
.record-open:hover{text-decoration:underline}
.empty-state{padding:46px 26px;text-align:center;max-width:470px;margin:auto}
.empty-mark{width:40px;height:40px;border:1px solid #ded6c9;border-radius:50%;display:grid;place-items:center;margin:0 auto 14px;color:var(--bronze);font-size:17px}
.empty-state h3{font-size:16px;font-weight:500;color:var(--ink-strong);margin:0 0 7px}
.empty-state p{font-size:12px;color:var(--muted);margin:0 auto 19px;max-width:40ch}
.skeletons{padding:18px 22px}
.skeleton-row{height:51px;border-bottom:1px solid var(--line);position:relative;overflow:hidden}
.skeleton-row:before{content:"";display:block;width:42%;height:9px;margin-top:14px;background:#eeeae3;border-radius:2px;box-shadow:190px 0 0 -1px #f1eee8}
.skeleton-row:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,transparent,rgba(255,255,255,.7),transparent);transform:translateX(-100%);animation:shimmer 1.5s infinite}
@keyframes shimmer{to{transform:translateX(100%)}}
.error-state{padding:30px;text-align:center;color:var(--danger);font-size:13px}
.error-state p{margin:0 0 12px}
.sidebar{display:flex;flex-direction:column;gap:18px}
.sender-state{display:flex;align-items:flex-start;gap:11px;padding:16px;background:#f7f4ed;border:1px solid #e7dfd1;border-radius:3px}
.sender-icon{width:22px;height:22px;border:1px solid #b8a984;border-radius:50%;display:grid;place-items:center;flex:0 0 auto;color:var(--bronze);font-size:11px}
.sender-state strong{display:block;font-size:12px;font-weight:500;color:var(--ink)}
.sender-state span{display:block;font-size:10px;color:var(--muted);margin-top:3px}
.side-heading{padding:18px 18px 12px}
.side-heading h2{font-size:15px;font-weight:500;letter-spacing:-.02em;margin:0;color:var(--ink-strong)}
.side-heading p{font-size:11px;color:var(--muted);margin:4px 0 0}
.stage-list{max-height:440px;overflow:auto;border-top:1px solid var(--line)}
.stage-item{width:100%;text-align:left;display:grid;grid-template-columns:25px 1fr auto;gap:9px;align-items:center;padding:12px 15px;background:transparent;border:0;border-bottom:1px solid rgba(86,73,41,.08);cursor:pointer}
.stage-item:hover,.stage-item[aria-pressed="true"]{background:#f7f4ed}
.stage-number{font-size:10px;color:var(--bronze);font-weight:500}
.stage-title{font-size:11px;color:var(--ink);line-height:1.35}
.stage-channel{font-size:9px;color:var(--muted-2);text-transform:uppercase;letter-spacing:.04em}
.audit-list{list-style:none;margin:0;padding:0 17px 4px;max-height:300px;overflow:auto}
.audit-entry{padding:11px 0;border-bottom:1px solid rgba(86,73,41,.08)}
.audit-entry:last-child{border-bottom:0}
.audit-entry strong{display:block;font-size:11px;font-weight:500;color:var(--ink)}
.audit-entry span{display:block;color:var(--muted);font-size:10px;margin-top:3px}
.audit-empty{font-size:11px;color:var(--muted);padding:0 17px 18px}
.note-copy{padding:15px 17px;border-top:1px solid var(--line);color:var(--muted);font-size:10px;line-height:1.6}
.note-copy strong{color:var(--ink);font-weight:500}
.drawer-backdrop{position:fixed;inset:0;background:rgba(35,29,16,.28);z-index:30;opacity:0;pointer-events:none;transition:opacity .2s ease}
.drawer-backdrop.open{opacity:1;pointer-events:auto}
.record-drawer{position:fixed;z-index:31;top:0;right:0;height:100dvh;width:min(520px,100%);background:var(--cream);box-shadow:-16px 0 44px rgba(38,30,14,.15);transform:translateX(102%);transition:transform .24s ease;display:flex;flex-direction:column}
.record-drawer.open{transform:translateX(0)}
.drawer-header{padding:22px 25px 18px;border-bottom:1px solid var(--line);background:var(--paper);display:flex;align-items:flex-start;justify-content:space-between;gap:18px}
.drawer-header .eyebrow{margin:0 0 7px}
.drawer-header h2{font-size:22px;line-height:1.15;letter-spacing:-.035em;color:var(--ink-strong);font-weight:500;margin:0;overflow-wrap:anywhere}
.drawer-close{width:34px;height:34px;border:1px solid var(--line);background:transparent;border-radius:50%;font-size:20px;line-height:1;cursor:pointer;color:var(--muted)}
.drawer-close:hover{background:var(--wash);color:var(--ink)}
.drawer-content{padding:20px 25px 28px;overflow:auto}
.drawer-summary{display:grid;grid-template-columns:1fr 1fr;gap:14px;padding:0 0 18px;border-bottom:1px solid var(--line);margin-bottom:18px}
.summary-cell label{display:block;font-size:9px;color:var(--muted-2);text-transform:uppercase;letter-spacing:.08em;margin-bottom:3px}
.summary-cell span{display:block;font-size:12px;color:var(--ink);overflow-wrap:anywhere}
.status-line{display:inline-flex!important;align-items:center;gap:6px}
.action-section{margin:19px 0;padding-bottom:19px;border-bottom:1px solid var(--line)}
.action-section:last-child{border-bottom:0}
.action-section h3{font-size:12px;font-weight:500;color:var(--ink);margin:0 0 10px}
.action-row{display:flex;flex-wrap:wrap;gap:8px}
.action-form{display:grid;grid-template-columns:1fr auto;align-items:end;gap:9px}
.action-form .field{margin:0;min-width:0}
.action-form .field label{font-size:10px}
.action-note{font-size:10px;color:var(--muted);line-height:1.5;margin:8px 0 0}
.closed-banner{padding:11px 13px;background:#f1e9e5;color:#704b40;font-size:11px;line-height:1.5;border-left:2px solid #a97769}
.dialog-scrim{position:fixed;z-index:40;inset:0;background:rgba(35,29,16,.35);display:none;align-items:center;justify-content:center;padding:20px}
.dialog-scrim.open{display:flex}
.confirm-dialog{width:min(420px,100%);padding:26px;background:var(--paper);box-shadow:var(--shadow);border:1px solid var(--line);border-radius:4px}
.confirm-dialog h2{font-size:20px;font-weight:500;letter-spacing:-.03em;margin:0 0 8px;color:var(--ink-strong)}
.confirm-dialog p{font-size:13px;color:var(--muted);margin:0 0 21px}
.dialog-actions{display:flex;justify-content:flex-end;gap:9px}
.toast{position:fixed;z-index:50;bottom:24px;left:50%;transform:translate(-50%,12px);opacity:0;pointer-events:none;transition:opacity .18s ease,transform .18s ease;padding:11px 16px;background:var(--ink-strong);color:var(--cream);font-size:12px;border-radius:3px;box-shadow:var(--shadow);max-width:calc(100vw - 30px)}
.toast.show{opacity:1;transform:translate(-50%,0)}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:960px){.layout-grid{grid-template-columns:minmax(0,1fr) 280px;gap:16px}.record-row{grid-template-columns:minmax(130px,1.1fr) minmax(110px,1fr) auto;gap:12px}.record-row .record-stage{display:none}}
@media(max-width:760px){.login-layout{grid-template-columns:1fr;max-width:520px;gap:34px;padding-top:50px}.login-intro h1{font-size:44px;max-width:12ch}.login-intro p{font-size:14px}.login-rule{margin:20px 0 14px}.layout-grid{grid-template-columns:1fr}.sidebar{display:grid;grid-template-columns:1fr 1fr}.sidebar>.panel:last-child{grid-column:1/-1}.page-wrap{padding-top:30px}.record-row{grid-template-columns:minmax(0,1fr) auto;gap:4px 12px}.record-row .record-status{grid-column:1;grid-row:2}.record-row .record-stage{display:none}.record-open{grid-column:2;grid-row:1/3}}
@media(max-width:520px){.brandbar{height:64px;padding:0 18px}.brand-wordmark{width:150px;height:21px}.workspace-tag{font-size:10px}.portal-header{height:62px;padding:0 17px}.portal-header .brand-wordmark{width:132px}.header-right{gap:11px}.signed-in{max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px}.logout-btn{font-size:11px}.planning-banner{align-items:flex-start;padding:10px 16px;font-size:11px}.page-wrap{padding:26px 14px 55px}.page-heading{align-items:flex-start;flex-direction:column;gap:10px;margin-bottom:21px}.page-heading h1{font-size:29px}.freshness{font-size:10px}.panel-head{padding:16px}.panel-body{padding:16px}.records-head{display:block}.records-head .search-input{width:100%;margin-top:12px}.record-row{padding:14px 16px}.sidebar{display:flex}.stage-list{max-height:360px}.drawer-header{padding:19px 18px 15px}.drawer-content{padding:17px 18px 26px}.drawer-summary{gap:10px}.action-form{grid-template-columns:1fr}.action-form .primary-btn{width:100%}.login-layout{padding:35px 20px 40px}.login-card{padding:28px 24px}.login-intro h1{font-size:40px}.login-intro .eyebrow{margin-bottom:15px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
.live-banner{display:none;align-items:flex-start;gap:12px;padding:13px clamp(18px,4vw,58px);background:#eee7d9;border-bottom:1px solid #d9cfbd;color:#473c26;font-size:12px;line-height:1.55}
.live-banner.is-visible{display:flex}.live-banner.is-error{background:#f2e9e5;color:#704b40;border-color:#dfc9bf}
#plan-error:not([hidden]){display:flex}
.live-banner.is-error .quiet-btn{flex:0 0 auto;min-height:34px;padding:6px 11px;margin-left:auto;background:#fffdfa}
.live-mark{width:19px;height:19px;flex:0 0 19px;border:1px solid currentColor;border-radius:50%;display:grid;place-items:center;font-size:10px;margin-top:1px}
.live-banner strong{font-weight:600}.live-recipient{display:block;margin-top:4px;font-size:11px}
.record-row.is-live-test{background:#f6f2e9}.record-row.is-live-test .record-name:after{content:"BOUND TEST";display:inline-block;margin-left:8px;padding:2px 5px;border:1px solid #c8b995;color:#776745;font:500 8px/1.2 "Styrene B",Inter,sans-serif;letter-spacing:.08em;vertical-align:2px}
.live-record-flag{padding:13px 14px;margin:0 0 17px;background:#eee7d9;border-left:2px solid var(--bronze);font-size:11px;line-height:1.55;color:#51462e}
.live-record-flag strong{display:block;font-size:12px;margin-bottom:3px}
.live-fields{display:grid;grid-template-columns:1fr 1fr;gap:0 12px}.live-fields .field.full{grid-column:1/-1}
.field textarea{width:100%;min-height:74px;resize:vertical;padding:11px 13px;border:1px solid #d8d2c8;border-radius:3px;background:#fffdfa;color:var(--ink-strong);font:400 13px/1.5 Inter,sans-serif}
.field textarea:focus{border-color:var(--bronze);box-shadow:0 0 0 3px rgba(132,115,76,.1);outline:none}
.live-section{margin:19px 0;padding:16px;background:#f7f4ed;border:1px solid #e7dfd1;border-radius:3px}
.live-section h3{font-size:12px;font-weight:500;margin:0 0 5px;color:var(--ink-strong)}
.live-section>p{font-size:10px;color:var(--muted);line-height:1.55;margin:0 0 12px}
.live-controls{display:flex;flex-wrap:wrap;gap:8px}
.live-section .field{margin-bottom:12px}
.live-stage-list{display:flex;flex-direction:column;gap:9px;margin-top:12px}
.live-stage{padding:12px;background:var(--paper);border:1px solid var(--line);border-radius:3px}
.live-fields input[type=checkbox]{width:auto;min-height:0;margin:0 7px 0 0;vertical-align:-2px}
.live-stage-head{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}
.live-stage-head strong{font-size:11px;color:var(--ink-strong)}
.readiness{font-size:10px;line-height:1.45;color:var(--muted);margin:6px 0 9px}
.readiness.is-ready{color:#526b57}.readiness.is-blocked{color:#8d5147}
.delivery-list{list-style:none;margin:0;padding:0}
.delivery-entry{padding:10px 0;border-bottom:1px solid rgba(86,73,41,.1);font-size:10px;line-height:1.5}
.delivery-entry:last-child{border-bottom:0}
.delivery-entry strong{display:block;color:var(--ink);font-size:11px}
.delivery-entry span{display:block;color:var(--muted);overflow-wrap:anywhere}
.delivery-status{font-weight:600;color:var(--bronze)!important}
.live-error{font-size:11px;color:var(--danger);min-height:0;margin:8px 0 0}.live-error:not(:empty){padding:9px 10px;background:#f2e9e5}
.live-confirm-copy{white-space:pre-line}
.confirm-check{display:flex;align-items:flex-start;gap:9px;margin:-7px 0 18px;padding:11px 12px;background:#f7f4ed;border:1px solid var(--line);font-size:12px;line-height:1.5;color:var(--ink)}
.confirm-check input{flex:0 0 auto;margin:3px 0 0;accent-color:var(--bronze)}
[hidden]{display:none!important}
@media(max-width:520px){.live-banner{padding:11px 16px}.live-fields{grid-template-columns:1fr}.live-fields .field.full{grid-column:auto}.live-section{padding:13px}}
