:root{
 --ink:#22212b;--muted:#5f616c;--faint:#737582;--violet:#513987;--deep:#31214f;--purple-100:#f0eaf9;--primary:#4e347e;--line:#dddde4;--surface:#fff;--back:#f6f6f9;--green:#196444;--red:#9d312c;--radius:16px;
 font:16px/1.5 "Inter","Segoe UI",-apple-system,BlinkMacSystemFont,Arial,sans-serif;color:var(--ink);background:var(--back);color-scheme:light
}
*,*::before,*::after{box-sizing:border-box}
[hidden]{display:none!important}
body{margin:0}h1,h2,h3,p,dl,dd{margin:0}h1,h2,h3{line-height:1.17}h1{font-size:clamp(2rem,3.2vw,3rem);font-weight:680;letter-spacing:-.048em}
h2{font-size:1.26rem;letter-spacing:-.027em;font-weight:670}h3{font-size:1.02rem;letter-spacing:-.012em}
button,input,select,textarea{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer}
button{min-height:40px;line-height:1.3;border:1px solid var(--line);border-radius:9px;padding:.55rem .88rem;background:white;color:var(--ink);font-size:.89rem;font-weight:620}
button:hover,a:hover{color:var(--violet)}button:hover{background:#f7f5fa;border-color:#b4a7c9}button:disabled{cursor:default;opacity:.5}
:focus-visible{outline:3px solid #7852b1;outline-offset:3px}
a{color:var(--violet);text-underline-offset:4px}.primary,.solid{background:var(--primary);border-color:var(--primary);color:white}.primary:hover,.solid:hover{background:#3b285f;color:white;border-color:#3b285f}
.secondary,.light-btn{background:white}.smallbtn{font-size:.83rem;min-height:34px}.iconbtn{display:inline-flex;align-items:center;justify-content:center;padding:.45rem;min-width:36px;min-height:36px}.textbtn,.backlink,.softlink{background:transparent;border:0;color:var(--violet);min-height:32px}.textbtn:hover,.backlink:hover,.softlink:hover{background:var(--purple-100)}.textbtn{text-decoration:underline;text-underline-offset:3px}.danger{color:var(--red)}.overline{font-size:.72rem;letter-spacing:.12em;font-weight:740;text-transform:uppercase}
input,select,textarea{display:block;width:100%;min-width:0;border:1px solid #c9cad4;border-radius:8px;padding:.64rem .75rem;background:white;color:var(--ink);line-height:1.45}
input:focus,select:focus,textarea:focus{border-color:#7961a2}
input[type=color]{max-width:6.5rem;min-height:44px;padding:.22rem}.field:has(input[type=color]){align-content:start}
input[type=checkbox]{width:1.12rem;height:1.12rem;accent-color:var(--violet);flex:none}textarea{resize:vertical;min-height:5rem;line-height:1.5}label{font-size:.89rem;font-weight:580}
.hint,.muted,.lede,.intro,.dialog-copy,.panel>p,.list-count{color:var(--muted)}.intro{margin-top:.5rem;max-width:57ch}.hint,.muted{font-size:.88rem}.empty{padding:1.2rem;color:var(--muted);border:1px dashed var(--line);border-radius:10px}.feedback{font-size:.9rem;line-height:1.4;color:var(--green);overflow-wrap:anywhere}.feedback:empty{display:none}.feedback.error{color:var(--red)}
/* Owner access */
.login{min-height:100svh;display:grid;grid-template-columns:minmax(410px,46%) 1fr;background:#fff}
.login-form{min-width:0;display:grid;grid-template-rows:auto 1fr auto;gap:2rem;padding:clamp(1.7rem,5vw,5rem) clamp(1.5rem,6vw,7rem)}
.login-logo{display:block;width:128px;height:63px;object-fit:contain;object-position:left}
.authbox{align-self:center;max-width:365px;width:100%;margin:0 auto}.authbox .overline{color:var(--violet);margin-bottom:.75rem}.authbox h1{font-size:clamp(2.3rem,3.2vw,3.3rem)}
#auth-sub{margin:.75rem 0 1.65rem;color:var(--muted)}#authform label{display:block;margin:.85rem 0 .35rem}#authform input{min-height:46px}#auth-submit{width:100%;margin:1.3rem 0 .7rem;min-height:45px}#auth-mode{padding-left:0}#auth-status{margin-top:1rem}
.return-app{justify-self:start;text-decoration:none;font-size:.86rem}.login-art{position:relative;background:#51485a;overflow:hidden;margin:1.25rem 1.25rem 1.25rem 0;border-radius:24px;min-height:390px}
.login-art img,.overview-hero>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.login-art img{object-position:58% 50%}.login-art:after{content:"";position:absolute;inset:0;background:linear-gradient(transparent 50%,rgba(32,25,48,.78))}.art-caption{position:absolute;z-index:1;bottom:clamp(2rem,5vw,5rem);left:clamp(2rem,4vw,4rem);font-size:clamp(1.7rem,3.5vw,3.5rem);letter-spacing:-.045em;font-weight:620;color:#fff}
/* Workspace frame */
.workspace{display:grid;grid-template-columns:224px minmax(0,1fr);min-height:100svh}.rail{background:#fff;border-right:1px solid var(--line);height:100svh;position:sticky;top:0;display:flex;flex-direction:column;padding:1.6rem .85rem 1rem;overflow:auto;z-index:6}.identity{padding:0 .7rem 1.05rem;border-bottom:1px solid #e8e8ee}.identity img{width:100px;height:45px;object-fit:contain;display:block;object-position:left}.identity span{display:block;color:var(--muted);font-size:.8rem;margin-top:.55rem;font-weight:570}
.rail-search{display:flex;align-items:center;gap:.5rem;font-size:.8rem;color:#585762;margin:1.1rem .15rem .9rem;font-weight:540;background:#faf9fc;text-align:left}.rail-search kbd{font:600 .66rem/1.3 inherit;margin-left:auto;white-space:nowrap;padding:.12rem .25rem;border:1px solid var(--line);border-radius:4px;color:var(--muted)}
#nav{display:grid;gap:.24rem}.nav-item{display:flex;gap:.7rem;align-items:center;text-align:left;min-height:43px;border:1px solid transparent;background:transparent;color:#44434f;padding:.6rem .68rem;font-weight:570}.nav-item svg{color:#666373;flex:none}.nav-item[aria-current=page]{color:#4c3178;background:var(--purple-100);font-weight:680}.nav-item[aria-current=page] svg{color:#573885}.rail-bottom{margin-top:auto;padding-top:2rem;display:grid;gap:.2rem}.rail-bottom a,.rail-bottom button{display:flex;align-items:center;gap:.6rem;border:0;background:transparent;padding:.55rem .72rem;text-decoration:none;color:var(--muted);font-size:.85rem;font-weight:550;min-height:39px}.rail-bottom a span{margin-left:auto}.work{min-width:0}
.bar{position:sticky;top:0;z-index:4;min-height:67px;display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.65rem clamp(1rem,3.6vw,3.8rem);border-bottom:1px solid var(--line);background:rgba(255,255,255,.97)}
.crumbs,.top-actions,.actions,.card-top,.preview-toggles{display:flex;align-items:center;gap:.65rem}.crumbs{font-size:.86rem;color:var(--muted)}.crumbs strong{color:var(--ink)}.slash{color:#aaa9b3}
#menu{display:none}.top-actions button,.light-btn{display:inline-flex;align-items:center;justify-content:center;gap:.4rem}.state{font-size:.77rem;font-weight:590;color:var(--muted);white-space:nowrap;margin-right:.35rem}.state:before{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;background:#2c835b;margin-right:.36rem}.state[data-state=draft]:before{background:#ac7723}.state[data-state=error]:before{background:var(--red)}
.canvas{max-width:1380px;margin:auto;padding:clamp(1.35rem,3.4vw,3rem) clamp(1rem,3.65vw,3.8rem) 4rem}.heading-row{display:flex;align-items:center;justify-content:space-between;gap:.8rem;margin-bottom:1.4rem}.backlink{font-size:.83rem;margin:0 0 .75rem -.4rem;padding:.3rem .4rem}.canvas>.feedback:not(:empty){padding:.65rem .85rem;background:#eff6f2;border-radius:8px;margin:.5rem 0 1rem}.canvas>.feedback.error{background:#fff1ef}
#editor{display:grid;align-content:start;gap:1rem;min-width:0}#editor>*{min-width:0}.panel,.fold,.collection-list,.overview-actions,.summary-strip,.plan-list{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius)}
.panel,.overview-actions{padding:clamp(.95rem,2vw,1.5rem)}.panel{display:grid;gap:1rem;align-content:start}.panel:empty{display:none}.panel>button:not(.entry){justify-self:start}.panel>.fold+.fold{margin-top:-.48rem}
#tabs:empty{display:none}#tabs:not(:empty){margin-bottom:1.2rem}.segments{display:flex;flex-wrap:wrap;gap:3px;padding:3px;border:1px solid var(--line);border-radius:10px;background:#eeedf2;width:fit-content;max-width:100%}.segments button{min-height:32px;border:1px solid transparent;border-radius:7px;background:transparent;color:var(--muted);font-size:.83rem;font-weight:580;padding:.35rem .72rem}.segments button[aria-pressed=true]{background:#fff;color:var(--ink);border-color:#d8d6de;box-shadow:0 1px 2px #30284015}.segments button:hover{color:var(--primary)}
.overview-hero{min-height:195px;position:relative;overflow:hidden;background:var(--deep);color:white;border-radius:20px;display:flex;align-items:center}.overview-hero>img{left:auto;width:54%;object-position:58% 43%}.overview-hero:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#34234f 0%,#34234f 40%,#34234fe6 50%,#34234f25 73%,transparent 100%)}.hero-copy{position:relative;z-index:1;padding:clamp(1.4rem,3.8vw,2.6rem);max-width:65%}.hero-copy .overline{color:#e4d6fa}.hero-copy h2{margin:.5rem 0 1.3rem;letter-spacing:-.043em;font-size:clamp(1.75rem,3.15vw,2.8rem);font-weight:630;line-height:1.1}.light-btn{color:var(--deep);border:0;padding-inline:1rem}
.overview-actions>h2{margin:0 0 1rem}.quick-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem}.quick,.record-row,.screen-card,.summary-item,.search-hit,.entry{text-align:left}.quick{border:1px solid #e2e1e8;display:flex;align-items:center;gap:.8rem;min-height:76px;padding:.72rem .85rem;border-radius:12px}.quick>svg,.record-row>svg{margin-left:auto;flex:none;color:#888391}.words{min-width:0;display:grid;gap:.18rem}.words strong,.screen-card strong,.entry{overflow-wrap:anywhere}.words small,.screen-card p,.row-meta{color:var(--muted);font-size:.82rem;font-weight:450;line-height:1.4}.icon-tile{width:37px;height:37px;display:inline-grid;place-items:center;background:#efe9f8;color:#5b3d88;border-radius:10px;flex:none}.quick:nth-child(2) .icon-tile,.screen-card:nth-child(4n+2) .icon-tile{background:#e7efed;color:#356457}.quick:nth-child(3) .icon-tile,.screen-card:nth-child(4n+3) .icon-tile{background:#eef0fa;color:#4c5683}.quick:nth-child(4) .icon-tile,.screen-card:nth-child(4n) .icon-tile{background:#f8ece4;color:#875536}
.summary-strip{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));padding:.45rem}.summary-item{display:grid;border:0;border-right:1px solid #ebeaef;background:none;border-radius:0;padding:.6rem .9rem}.summary-item:last-child{border:0}.summary-item strong{font-size:1.5rem;font-weight:650;letter-spacing:-.04em}.summary-item span,.list-count{font-size:.76rem;color:var(--muted);font-weight:500}.filterbar{display:flex;align-items:center;justify-content:space-between;gap:.7rem;flex-wrap:wrap}.filterbar input{max-width:360px;flex:1 1 210px}.filterbar select{width:auto;max-width:100%}.screen-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(210px,100%),1fr));gap:.8rem}.screen-card{padding:1.1rem;border-radius:14px;display:grid;align-content:start;gap:.45rem;min-height:150px}.card-top{justify-content:space-between;margin-bottom:.38rem}.audience{font-size:.69rem;font-weight:565;color:var(--muted);letter-spacing:.005em}.screen-card strong{font-size:1rem}.screen-card p{margin:0;line-height:1.5}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.9rem 1rem}.field{display:grid;align-content:start;gap:.32rem;min-width:0}.field.wide{grid-column:1/-1}.field em{color:var(--muted);font-size:.77rem;font-style:normal;font-weight:450}.check{display:inline-flex;align-items:center;gap:.4rem;min-height:34px}.check input{margin:0}.filelabel{display:grid;gap:.5rem;align-items:center;justify-items:start;border:1px dashed #c1b6d2;background:#fcfbfd;padding:.85rem;border-radius:10px;color:var(--violet)}.filelabel input{font-size:.8rem;padding:0;border:0;background:transparent}.filelabel input::file-selector-button{background:#f0ebf6;border:0;padding:.48rem .65rem;border-radius:6px;color:var(--primary);font-weight:600;margin-right:.65rem}
.fold{overflow:clip}.fold>summary,.change summary{cursor:pointer;font-weight:630;list-style:none}.fold>summary{position:relative;padding:.86rem 2.5rem .86rem 1rem;line-height:1.4}.fold>summary:after{position:absolute;right:1rem;content:"+";color:#735e91;font-size:1.1rem}.fold[open]>summary:after{content:"−"}.fold[open]>summary{border-bottom:1px solid #ecebf0}.fold summary::-webkit-details-marker,.change summary::-webkit-details-marker{display:none}.fold-body{display:grid;gap:1rem;padding:1rem}.fold-body>.fold{border-color:#e8e6ec;border-radius:10px}.related,.actions,.subhead,.preview-tools,.preview-toggles{display:flex;flex-wrap:wrap;align-items:center;gap:.55rem}.softlink{font-size:.82rem;background:#eeebf5;border:1px solid #e5dff0;border-radius:20px}.after{margin-top:.55rem}.layout-row,.release-row,.compare-field{display:flex;align-items:center;justify-content:space-between;gap:1rem;border-bottom:1px solid #eeedf1;padding:.55rem 0}.layout-row:last-child,.release-row:last-child{border:0}.layout-row strong{font-size:.9rem}.actions.tight{gap:.38rem}.compare-field>.field{flex:1}
.plan-list{overflow:hidden}.record-row{display:flex;align-items:center;gap:.85rem;width:100%;padding:1rem;border:0;border-radius:0;border-bottom:1px solid #ecebf0}.record-row:last-child{border:0}.record-row .row-meta{margin-left:auto;max-width:30%;text-align:right}.record-row>svg{margin:0}.collection{display:grid;grid-template-columns:minmax(170px,.72fr) minmax(0,1.65fr);gap:.8rem;align-items:start}.collection-list{overflow:hidden}.collection-tools{display:grid;gap:.5rem;padding:.8rem}.collection-tools button{justify-self:start}.list-count{margin:0 .85rem .5rem}.entry-list{display:grid;gap:2px;max-height:60vh;overflow:auto;padding:.35rem}.entry{border:0;background:#fff;border-radius:7px;font-size:.83rem;font-weight:500;line-height:1.45;min-height:39px;padding:.55rem .6rem}.entry[aria-pressed=true]{background:#eeeaf5;color:var(--violet);font-weight:650}.more{font-size:.8rem}.collection-detail{min-width:0}.itembox{display:grid;gap:.7rem;border:1px solid #e5e3eb;border-radius:12px;padding:.9rem}.subhead{justify-content:space-between}.matrix-wrap{max-width:100%;overflow:auto}.matrix{border-collapse:collapse;width:100%;font-size:.83rem}.matrix th,.matrix td{padding:.35rem;text-align:left;vertical-align:top}.matrix textarea{min-width:7.2rem;min-height:3.4rem;font-size:.83rem;padding:.4rem}.matrix th{font-weight:620}
dialog{border:1px solid var(--line);border-radius:17px;width:min(570px,95vw);max-width:calc(100vw - 1rem);max-height:90dvh;padding:0;box-shadow:0 22px 90px #231a3740;color:var(--ink)}dialog::backdrop{background:#29233170}dialog[data-type=preview]{width:min(1120px,96vw)}dialog[data-type=review]{width:min(690px,95vw)}
.modal-head{position:sticky;top:0;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem 1.2rem;border-bottom:1px solid var(--line);background:white}.modal-head h2{font-size:1.2rem}#modal-body{padding:1rem 1.2rem 1.2rem;display:grid;gap:1rem}.search-results{display:grid;max-height:55vh;overflow:auto}.search-hit{display:flex;justify-content:space-between;gap:.7rem;align-items:center;border:0;border-bottom:1px solid #eeedf1;border-radius:0}.search-hit small{color:var(--muted);text-align:right;font-weight:480}.changes{display:grid;gap:.45rem}.change{border:1px solid #e5e3e9;border-radius:9px;padding:.6rem .7rem}.change summary{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;font-size:.85rem}.change summary small{margin-left:auto;font-weight:450;color:var(--muted)}.change-kind{font-size:.71rem;color:var(--primary);background:var(--purple-100);border-radius:6px;padding:.1rem .4rem}.change dl{display:grid;gap:.5rem;padding:.6rem .2rem 0}.change dt{font-size:.75rem;font-weight:650}.change dd{color:var(--muted);font-size:.83rem;white-space:pre-line;overflow-wrap:anywhere}
.preview-tools>.field{flex:1 1 125px;min-width:0}.preview-toggles{margin-left:auto}.preview-state{font-size:.82rem;color:var(--muted)}.preview-stage{background:#ecebf0;border-radius:11px;display:grid;justify-items:center;padding:.75rem;max-width:100%}.preview-stage iframe{display:block;width:100%;height:min(64dvh,750px);border:1px solid #bcb7c8;border-radius:10px;background:white}.preview-stage.phone iframe{max-width:385px;border-radius:18px;box-shadow:0 5px 18px #33234815}.preview-toggles .smallbtn[aria-pressed=true]{background:var(--purple-100);color:var(--primary)}#scrim{position:fixed;inset:0;border:0;border-radius:0;background:#23203380;z-index:5}
@media(min-width:1500px){.workspace{grid-template-columns:245px minmax(0,1fr)}.canvas{max-width:1480px}.overview-hero{min-height:225px}}
@media(max-width:1000px){.workspace{grid-template-columns:192px minmax(0,1fr)}.rail{padding-inline:.55rem}.rail-search{gap:.35rem}.bar{padding-inline:1rem}.canvas{padding-inline:1.1rem}.quick{gap:.5rem;padding:.6rem}.quick>svg{display:none}.brandcrumb,.slash{display:none}.collection{grid-template-columns:minmax(155px,.75fr) minmax(0,1.5fr)}}
@media(max-width:760px){.login{grid-template-columns:minmax(0,1fr)}.login-art{display:none}.login-form{padding:1.5rem max(1.25rem,7vw);min-height:100svh}.login-logo{width:104px}.authbox{max-width:405px}.workspace{display:block}.rail{position:fixed;inset:0 auto 0 0;width:min(275px,86vw);height:100dvh;transform:translateX(-105%);transition:transform .14s ease}.rail.shown{transform:none}.rail:not(.shown){visibility:hidden}.bar{padding:.5rem .8rem;min-height:56px}.crumbs{gap:.35rem}#menu{display:flex}.top-actions{gap:.4rem}.state{margin:0;font-size:.7rem}.canvas{padding:1.25rem .9rem 3rem}.heading-row{align-items:start;margin-bottom:1rem}.intro{font-size:.9rem}.collection{grid-template-columns:minmax(0,1fr)}.entry-list{max-height:165px}.entry-list .entry{min-height:38px}.collection-tools{grid-template-columns:1fr auto;align-items:center}.collection-list{border-radius:13px}.preview-tools{align-items:end}.preview-tools>.field{flex:1 1 110px}.preview-toggles{margin:0}.preview-stage{padding:.35rem}.screen-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hero-copy{max-width:68%}.quick-grid{gap:.45rem}.summary-strip{grid-template-columns:repeat(2,minmax(0,1fr))}.summary-item:nth-child(2){border:0}.segments button{padding:.35rem .5rem}.heading-row #page-actions button{font-size:.8rem;white-space:nowrap}.top-actions #preview svg{display:none}}
@media(max-width:490px){.bar{flex-wrap:wrap;gap:.3rem}.top-actions{margin-left:auto}.bar .crumbs strong{display:none}.top-actions button{min-height:36px;font-size:.78rem;padding:.4rem .53rem}.bar .state{max-width:83px;white-space:normal;line-height:1.2}.hero-copy{max-width:74%;padding:1.15rem}.overview-hero{min-height:180px;border-radius:15px}.hero-copy h2{font-size:1.65rem}.overview-hero:after{background:linear-gradient(90deg,#34234f 0%,#34234f 32%,#34234fea 52%,#34234f33 92%)}.quick-grid,.form-grid{grid-template-columns:1fr}.quick{min-height:63px}.screen-grid{gap:.48rem}.screen-card{padding:.65rem;min-height:148px}.card-top{gap:.2rem}.icon-tile{width:31px;height:31px}.audience{font-size:.63rem}.row-meta{display:none}.record-row{padding:.75rem;gap:.55rem}.record-row>svg{margin-left:auto}.panel,.fold-body{padding:.8rem}.modal-head,#modal-body{padding:.7rem}.layout-row{gap:.35rem}.layout-row strong{font-size:.8rem}.layout-row .iconbtn{min-width:30px;min-height:32px}.layout-row .check{font-size:.76rem}.collection-tools{grid-template-columns:1fr auto}.preview-stage iframe{height:57dvh}.filterbar .segments{width:100%}.summary-item{padding:.48rem .65rem}.change summary small{display:none}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
.directory-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem}
@media(max-width:600px){.directory-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.directory-filters>.field:last-child{grid-column:1/-1}}
.rail-search{white-space:nowrap;gap:.38rem;padding:.48rem .52rem}.rail-search kbd{font-family:inherit;font-size:.64rem;font-weight:600}

.preview-stage{position:relative}.preview-stage.loading iframe{visibility:hidden}.preview-loading{position:absolute;inset:45% 0 auto;text-align:center;font-size:.85rem;color:var(--muted)}