/* Portal hierarchy: current decision, recent work, supporting tools.
   Scales are local to client surfaces; business rules and Admin stay unchanged. */
.living-system.ls-portal {
 --portal-space-1:8px;--portal-space-2:16px;--portal-space-3:24px;--portal-space-4:32px;--portal-space-5:48px;
 --portal-caption:14px;--portal-body:16px;--portal-title:clamp(24px,3vw,36px);
}
.living-system.ls-portal .dashboard{padding-top:var(--portal-space-4)}
.living-system.ls-portal .dashboard-head{margin-bottom:var(--portal-space-2);align-items:start}
.living-system.ls-portal .dashboard-head h1{font-size:28px;letter-spacing:-.03em;line-height:1.2}
.living-system.ls-portal .dashboard-head #dashboard-intro{margin:8px 0 0;font-size:var(--portal-body)}
.living-system.ls-portal .portal-session{position:relative;margin-top:8px;font-size:var(--portal-caption)}
.living-system.ls-portal .portal-session summary{cursor:pointer;width:fit-content;display:flex;align-items:center;gap:8px;color:var(--ls-muted)}
.living-system.ls-portal .portal-session summary::after{content:'+';font-size:18px}
.living-system.ls-portal .portal-session[open] summary::after{content:'−'}
.living-system.ls-portal .portal-session .portal-identity{margin:0;padding:8px 0}
.living-system.ls-portal .client-navigation{margin-bottom:var(--portal-space-4);gap:8px}
.living-system.ls-portal .client-navigation [data-contextual-new]{order:2;margin-left:auto;border-color:var(--ls-ink);color:var(--ls-ink)}
.living-system.ls-portal .portal-home{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--portal-space-5)}
.living-system.ls-portal .context-stage{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:24px 32px;min-height:0;padding:24px 0 32px;margin:0;border:0;border-bottom:1px solid var(--ls-line);border-radius:0;align-content:start;align-items:center}
.living-system.ls-portal .context-stage>div:first-child{max-width:65ch}
.living-system.ls-portal .context-stage h2{font-size:var(--portal-title);line-height:1.15;letter-spacing:-.03em;margin:8px 0 12px;max-width:30ch}
.living-system.ls-portal .context-stage p{margin:0;max-width:60ch}
.living-system.ls-portal .context-stage .eyebrow{font-size:12px;letter-spacing:.06em;color:var(--ls-muted)}
.living-system.ls-portal .context-stage[data-quiet=true] .eyebrow{display:none}
.living-system.ls-portal .context-action{align-items:start;margin:0;gap:8px;text-align:left}
.living-system.ls-portal .context-action>:first-child{background:var(--ls-ink);border-color:var(--ls-ink);color:var(--deru-paper);padding:12px 20px;font-size:16px}
.living-system.ls-portal .context-stage[data-quiet=true] .context-action>:first-child{background:transparent;color:var(--ls-ink);border:1px solid var(--ls-line)}
.living-system.ls-portal .context-stage .ls-context-preview{display:none}
.living-system.ls-portal .recent-work{margin:0}
.living-system.ls-portal .portal-section-head{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:16px;margin:0 0 24px}
.living-system.ls-portal .portal-section-head h2{font-size:24px;line-height:1.2;letter-spacing:-.025em}
.living-system.ls-portal .recent-work-strip{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:32px}
.living-system.ls-portal .recent-work-item:nth-child(n){margin:0;display:grid;grid-template-columns:minmax(0,1fr);align-content:start;gap:16px;border:0;border-radius:0;padding:0;background:transparent;color:var(--ls-ink)}
.living-system.ls-portal .recent-work-item .work-preview{aspect-ratio:16/10;max-height:300px;background:var(--deru-ink-paper-5);margin:0}
.living-system.ls-portal .recent-work-item .work-preview img{object-fit:contain}
.living-system.ls-portal .recent-work-item .work-copy{padding:0;gap:8px}
.living-system.ls-portal .recent-work-item .work-copy strong{font-size:24px;line-height:1.2;letter-spacing:-.02em;max-width:32ch}
.living-system.ls-portal .recent-work-item .work-copy small{font-size:12px;color:var(--ls-muted);letter-spacing:.04em}
.living-system.ls-portal .recent-work-item .work-copy em{font-size:14px;color:var(--ls-ink);margin-top:8px}
.living-system.ls-portal .recent-work-item.without-cover{padding:24px 0;border-block:1px solid var(--ls-line)}
.living-system.ls-portal .recent-work-strip[data-count="1"]{grid-template-columns:minmax(0,1fr)}
.living-system.ls-portal .recent-work-strip[data-count="1"] .has-cover{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;gap:32px}
.living-system.ls-portal .need-field{margin:0;padding:0;border:0;max-width:640px;width:100%}
.living-system.ls-portal .need-field>label{font-size:14px;font-weight:500;letter-spacing:0;margin-bottom:8px;color:var(--ls-muted)}
.living-system.ls-portal .need-field>div{border:1px solid var(--deru-ink-paper-40);border-radius:8px;padding:4px 8px 4px 16px}
.living-system.ls-portal .need-field input{font-size:16px;padding:8px 0;border:0}
.living-system.ls-portal .need-field input::placeholder{color:var(--ls-muted)}
.living-system.ls-portal .need-field button{background:transparent;color:var(--ls-ink);border:0}
.living-system.ls-portal :is(.home-empty,.portal-empty,.workspace-empty,#empty-state){padding:32px 0;max-width:60ch;text-align:left;background:transparent;border:0}
.living-system.ls-portal :is(.portal-empty,.workspace-empty) h3{font-size:24px;line-height:1.2}
.living-system.ls-portal :is(.home-empty,.portal-empty,.workspace-empty) p{line-height:1.5;color:var(--ls-muted)}
.living-system.ls-portal #project-workspace{display:block}
.living-system.ls-portal #project-workspace[hidden]{display:none}
.living-system.ls-portal .project-list-panel{display:flex;align-items:start;justify-content:space-between;gap:24px;margin-bottom:24px;position:static;width:auto}
.living-system.ls-portal .portal-work-switcher{max-width:360px;flex:0 1 360px}
.living-system.ls-portal .portal-work-switcher summary{cursor:pointer;text-align:right;padding:12px 0;font-size:14px}
.living-system.ls-portal .project-list-panel .panel-title{margin-top:8px}
.living-system.ls-portal .project-detail{padding:0;border:0;background:transparent;box-shadow:none}
.living-system.ls-portal .work-editorial-hero{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:32px;margin:0 0 32px;align-items:center}
.living-system.ls-portal .work-editorial-art{position:static;min-height:0;padding:16px;aspect-ratio:4/3}
.living-system.ls-portal .work-editorial-art img{max-height:380px;height:100%;object-fit:contain}
.living-system.ls-portal .work-editorial-context .project-title{font-size:clamp(28px,3.5vw,44px);line-height:1.1;letter-spacing:-.03em}
.living-system.ls-portal .work-editorial-context .project-topline{gap:8px;margin-bottom:24px}
.living-system.ls-portal .work-editorial-context .project-topline .eyebrow{display:none}
.living-system.ls-portal .work-editorial-next{margin-bottom:24px;padding:16px 0}
.living-system.ls-portal .work-editorial-next>strong{font-size:20px;line-height:1.35}
.living-system.ls-portal .work-editorial-context .info-strip{gap:24px;padding-bottom:16px}
.living-system.ls-portal progress{display:block;width:100%;height:4px;margin-top:8px;border:0;border-radius:0;appearance:none;background:var(--deru-ink-paper-15);color:var(--ls-ink)}
.living-system.ls-portal progress::-webkit-progress-bar{background:var(--deru-ink-paper-15)}
.living-system.ls-portal progress::-webkit-progress-value{background:var(--ls-ink)}
.living-system.ls-portal progress::-moz-progress-bar{background:var(--ls-ink)}
.living-system.ls-portal .project-workspace-nav{display:flex;flex-wrap:wrap;gap:8px 24px;overflow:visible;margin-bottom:24px}
.living-system.ls-portal .project-workspace-nav>button{padding:12px 0;white-space:normal}
.living-system.ls-portal #portal-work-hub [data-work-cards]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:32px}
.living-system.ls-portal .portal-work-card{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;align-content:start;padding:0 0 24px;border:0;border-bottom:1px solid var(--ls-line);border-radius:0;background:transparent}
.living-system.ls-portal .portal-work-card .work-card-cover{width:100%;aspect-ratio:16/9;background:var(--deru-ink-paper-5)}
.living-system.ls-portal .portal-work-card h3{font-size:24px;line-height:1.2;letter-spacing:-.02em;margin:0 0 8px}
.living-system.ls-portal .portal-work-card p{margin:0 0 16px}
.living-system.ls-portal .work-progress{display:block;font-size:14px;color:var(--ls-muted);margin-bottom:16px;max-width:240px}
.living-system.ls-portal .work-progress>span{float:right;font-variant-numeric:tabular-nums}
.living-system.ls-portal .portal-work-card .proposal-open{justify-self:start;background:transparent;color:var(--ls-ink);border:0;border-radius:0;padding:12px 0;text-decoration:underline;text-underline-offset:4px}
.living-system.ls-portal [data-work-needs]{margin-top:48px}
.living-system.ls-portal #portal-account{border:0;padding:0;background:transparent;box-shadow:none}
.living-system.ls-portal #portal-account>h2{font-size:32px;margin:24px 0}
.living-system.ls-portal .account-overview{padding:0;border:0;margin:0 0 32px}
.living-system.ls-portal .account-balance{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:8px 24px;padding:24px 0;border-block:1px solid var(--ls-line)}
.living-system.ls-portal .account-balance>span{font-size:18px}
.living-system.ls-portal .account-balance>h3{font-size:32px;letter-spacing:-.025em;font-variant-numeric:tabular-nums;margin:0}
.living-system.ls-portal .account-note{max-width:65ch;color:var(--ls-muted);font-size:14px;line-height:1.5;margin:24px 0}
.living-system.ls-portal .account-history summary{cursor:pointer;display:flex;align-items:center;padding:12px 0;border-bottom:1px solid var(--ls-line)}
.living-system.ls-portal .account-history summary::after{content:'+';margin-left:auto}
.living-system.ls-portal .account-history[open] summary::after{content:'−'}
.living-system.ls-portal .account-history .compact-item{gap:24px;padding:16px 0}
.living-system.ls-portal .account-history .compact-item b{font-variant-numeric:tabular-nums;white-space:nowrap}
.living-system.ls-portal .library-portal .library-card{padding:0;margin:0}
.living-system.ls-portal .library-portal .library-card h3{font-size:24px;line-height:1.2;letter-spacing:-.02em}
.living-system.ls-portal .library-portal .library-card-copy{padding-top:16px}
.living-system.ls-portal .library-portal .library-editorial-detail{gap:32px}
.living-system.ls-portal .library-portal .library-resource-info>h2{font-size:var(--portal-title);line-height:1.12;letter-spacing:-.03em}
@media(max-width:760px){
 .living-system.ls-portal .dashboard{padding-top:24px}
 .living-system.ls-portal .context-stage{grid-template-columns:minmax(0,1fr);gap:16px;padding:0 0 24px}
 .living-system.ls-portal .portal-home{gap:32px}
 .living-system.ls-portal .recent-work-strip,.living-system.ls-portal #portal-work-hub [data-work-cards]{grid-template-columns:minmax(0,1fr);gap:24px}
 .living-system.ls-portal .recent-work-strip[data-count="1"] .has-cover{grid-template-columns:minmax(0,1fr);gap:16px}
 .living-system.ls-portal .recent-work-item .work-preview{max-height:280px}
 .living-system.ls-portal .portal-section-head{align-items:start;flex-wrap:wrap;gap:8px;margin-bottom:16px}
 .living-system.ls-portal .portal-section-head h2{font-size:24px}
 .living-system.ls-portal .work-editorial-hero{grid-template-columns:minmax(0,1fr);gap:24px}
 .living-system.ls-portal .work-editorial-art{aspect-ratio:16/10;padding:8px}
 .living-system.ls-portal .work-editorial-art img{max-height:280px}
 .living-system.ls-portal .project-list-panel{gap:16px;margin-bottom:16px}
 .living-system.ls-portal .portal-work-switcher{flex:0 1 60%}
 .living-system.ls-portal .project-workspace-nav{gap:4px 16px}
 .living-system.ls-portal .account-history .compact-item{align-items:start;flex-direction:column;gap:8px}
 .living-system.ls-portal .library-portal .library-resource-media .library-thumb{min-height:180px;padding:16px}
}
@media(max-width:390px){
 .living-system.ls-portal .dashboard-head h1{font-size:24px}
 .living-system.ls-portal .client-navigation{gap:0 4px}
 .living-system.ls-portal .client-navigation [data-contextual-new]{margin-left:0}
 .living-system.ls-portal .context-action>:first-child{max-width:100%;white-space:normal}
}

.living-system.ls-portal .context-action{grid-column:auto;grid-row:auto}
.living-system.ls-portal .portal-work-switcher>summary{display:block}
.living-system.ls-portal .project-detail{min-height:0}
.living-system.ls-portal #project-content[data-surface=summary] .workspace-summary-panel>div{min-height:0;padding:0;background:transparent}
.living-system.ls-portal .work-editorial-hero.without-art{display:block;max-width:760px}
.living-system.ls-portal .work-editorial-hero.without-art .work-editorial-art{display:none}
.living-system.ls-portal .organization-switcher{background:transparent;border:0;border-radius:0;padding:0;margin:0 0 16px;gap:16px}
.living-system.ls-portal .organization-switcher label{color:var(--ls-muted);font-size:12px}
.living-system.ls-portal .library-portal [data-results]{gap:32px}
.living-system.ls-portal .recent-work-item .work-copy{min-height:0}
.living-system.ls-portal .project-list-panel{min-height:0}
.living-system.ls-portal .project-workspace-panel{min-height:0}
.living-system.ls-portal .work-editorial-context .status-pill{color:var(--ls-muted)}

@media(prefers-reduced-motion:no-preference){.living-system.ls-portal .work-editorial-hero{animation-name:portal-work-settle}@keyframes portal-work-settle{from{transform:translateY(3px)}to{transform:none}}}

.living-system.ls-portal .library-portal .library-card .library-thumb.without-preview{aspect-ratio:auto;min-height:104px;max-height:104px;justify-items:start;align-content:end;padding:16px 0;font-size:24px;font-weight:500;background:transparent;border-bottom:1px solid var(--ls-line)}

/* Keep client text at full contrast during the shared work-entry transition. */
.living-system.ls-portal .project-detail{opacity:1!important}

/* PASS 2 — a shared studio: current decision, work, then the visual archive.
   Scoped to Portal; source order and all existing actions remain accessible. */
.living-system.ls-portal{--portal-title:clamp(28px,3.7vw,48px);--portal-ease:cubic-bezier(.22,1,.36,1)}
.living-system.ls-portal .dashboard{padding-inline:clamp(20px,5vw,72px)}
.living-system.ls-portal .dashboard-head{padding-bottom:16px;align-items:center}
.living-system.ls-portal .dashboard-head h1{font-size:clamp(22px,2.2vw,30px);font-weight:500}
.living-system.ls-portal #dashboard-intro{color:var(--ls-ink);font-size:16px}
.living-system.ls-portal .organization-switcher{margin-block:8px 24px;max-width:680px;background:none;border:0;padding:0}
.living-system.ls-portal .organization-switcher label{color:var(--ls-muted)}
.living-system.ls-portal .organization-switcher select{background:transparent;border:0;border-bottom:1px solid var(--ls-line);border-radius:0}
.living-system.ls-portal .client-navigation{gap:4px 24px;padding-block:8px;margin-bottom:40px;border-block:1px solid var(--ls-line)}
.living-system.ls-portal .client-navigation button{border-radius:0;border:0;background:transparent;color:var(--ls-muted);padding:12px 0;font-weight:500}
.living-system.ls-portal .client-navigation button[aria-current=page]{background:transparent;color:var(--ls-ink);box-shadow:inset 0 -3px var(--deru-blue)}
.living-system.ls-portal .client-navigation [data-contextual-new]{padding:12px 18px;background:var(--deru-ink);color:var(--deru-paper);border-radius:3px}
.living-system.ls-portal .portal-home{grid-template-columns:minmax(0,1fr) minmax(260px,.43fr);gap:48px 40px;align-items:start}
.living-system.ls-portal .context-stage{grid-column:1/-1;grid-template-columns:minmax(0,1fr) minmax(190px,.36fr);padding:clamp(24px,4vw,48px);background:var(--deru-ink);color:var(--deru-paper);border:0;gap:32px}
.living-system.ls-portal .context-stage h2{color:inherit;max-width:26ch;font-size:clamp(28px,3.2vw,44px);font-weight:500;line-height:1.12}
.living-system.ls-portal .context-stage p{color:inherit}
.living-system.ls-portal .context-stage .eyebrow{color:var(--deru-yellow);font-size:12px;letter-spacing:.08em}
.living-system.ls-portal .context-action{justify-self:end;align-items:stretch;max-width:280px}
.living-system.ls-portal .context-action>:first-child{background:var(--deru-yellow);color:var(--deru-ink);border:0;border-radius:3px;line-height:1.4;text-align:left}
.living-system.ls-portal .context-action .other-actions{color:var(--deru-paper);background:transparent;border:0;padding:10px 0;text-align:left}
.living-system.ls-portal .context-stage[data-quiet=true]{background:transparent;color:var(--ls-ink);padding:0 0 32px;border-bottom:1px solid var(--ls-line)}
.living-system.ls-portal .context-stage[data-quiet=true] h2{max-width:20ch;font-size:clamp(30px,4vw,52px)}
.living-system.ls-portal .context-stage[data-quiet=true] .context-action>:first-child{background:transparent;color:var(--ls-ink);border:1px solid var(--ls-ink)}
.living-system.ls-portal .context-stage :focus-visible{outline-color:var(--deru-yellow)}
.living-system.ls-portal .context-stage[data-quiet=true] :focus-visible{outline-color:var(--deru-blue)}
.living-system.ls-portal .recent-work{grid-column:1;grid-row:2/span 3}
.living-system.ls-portal .portal-section-head h2{font-size:22px;font-weight:500}
.living-system.ls-portal .recent-work-strip{grid-template-columns:minmax(0,1fr);gap:28px}
.living-system.ls-portal .recent-work-item:nth-child(n){display:grid;grid-template-columns:minmax(0,1fr);gap:0;position:relative;text-align:left}
.living-system.ls-portal .recent-work-item .work-preview{aspect-ratio:3/2;max-height:430px;width:100%;background:var(--deru-ink-paper-5)}
.living-system.ls-portal .recent-work-item .work-copy{display:flex;flex-direction:column;gap:12px;padding:24px 0}
.living-system.ls-portal .recent-work-item:first-child .work-copy strong{font-size:clamp(28px,3vw,42px);font-weight:500;line-height:1.13;max-width:28ch}
.living-system.ls-portal .recent-work-item .work-copy small{font-size:11px;letter-spacing:.12em;color:var(--ls-muted)}
.living-system.ls-portal .recent-work-item .recent-work-progress{font-size:14px;color:var(--ls-muted)}
.living-system.ls-portal .recent-work-item .work-copy em{margin:8px 0 0;font-style:normal;font-size:15px}
.living-system.ls-portal .recent-work-item.without-cover{border:0;border-left:3px solid var(--deru-blue);padding:0 0 0 24px;background:none}
.living-system.ls-portal .recent-work-item.without-cover .work-copy{padding:8px 0}
.living-system.ls-portal .recent-work-item:not(:first-child){grid-template-columns:minmax(100px,.4fr) 1fr;gap:24px;padding-top:24px;border-top:1px solid var(--ls-line)}
.living-system.ls-portal .recent-work-item:not(:first-child).without-cover{grid-template-columns:1fr}
.living-system.ls-portal .recent-work-item:not(:first-child) .work-preview{aspect-ratio:1}
.living-system.ls-portal .recent-work-item:not(:first-child) .work-copy{padding:0}
.living-system.ls-portal .recent-work-item:not(:first-child) .work-copy strong{font-size:22px}
.living-system.ls-portal .need-field{grid-column:2;grid-row:2;margin-top:0;padding-top:0}
.living-system.ls-portal .need-field>div{border:0;border-bottom:1px solid var(--ls-ink);border-radius:0;padding:4px 0}
.living-system.ls-portal .need-field>label{color:var(--ls-ink);font-size:18px;line-height:1.3}
.living-system.ls-portal .need-field input{background:transparent;font-size:15px}
.living-system.ls-portal .need-result{grid-column:1/-1;grid-row:auto}
.living-system.ls-portal .quick-files{grid-column:2;padding:0}
.living-system.ls-portal .quick-files .portal-section-head{display:block;margin-bottom:16px}
.living-system.ls-portal .quick-files .portal-section-head h2{font-size:18px;margin-bottom:8px}
.living-system.ls-portal .quick-files-list{display:block}
.living-system.ls-portal .quick-files-list article{grid-template-columns:minmax(0,1fr) auto;gap:16px;border:0;border-top:1px solid var(--ls-line);border-radius:0;background:transparent;padding:16px 0}
.living-system.ls-portal .quick-files-list article>span{display:none}
.living-system.ls-portal .quick-files-list article strong{white-space:normal;overflow-wrap:anywhere;font-size:16px;line-height:1.35}
.living-system.ls-portal .quick-files-list article small{margin-top:6px;letter-spacing:0;text-transform:none;color:var(--ls-muted)}
.living-system.ls-portal .quick-files-list article>a{grid-column:auto;padding:12px 0;white-space:nowrap}
/* Work is one spread. No fake art when a cover is absent. */
.living-system.ls-portal .work-editorial-hero{grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:clamp(24px,5vw,64px);align-items:start}
.living-system.ls-portal .work-editorial-art{aspect-ratio:1;max-height:640px;padding:24px;background:var(--deru-ink-paper-5);overflow:hidden}
.living-system.ls-portal .work-editorial-art img{height:100%;max-height:580px;width:100%;object-fit:contain}
.living-system.ls-portal .work-editorial-context .project-title{font-size:clamp(30px,3.8vw,52px);font-weight:500;line-height:1.06}
.living-system.ls-portal .work-editorial-hero.without-art{max-width:none;grid-template-columns:minmax(0,1fr)}
.living-system.ls-portal .work-editorial-hero.without-art .work-editorial-context{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr);gap:24px 64px}
.living-system.ls-portal .work-editorial-hero.without-art .project-topline{grid-row:span 2}
.living-system.ls-portal .work-editorial-next{border:0;border-left:3px solid var(--deru-blue);padding:0 0 0 20px}
.living-system.ls-portal .work-editorial-next>strong{font-size:22px;font-weight:500}
.living-system.ls-portal .work-editorial-context .info-strip>div:last-child{display:none}
.living-system.ls-portal .project-workspace-nav{border-bottom:1px solid var(--ls-line);gap:8px 24px}
.living-system.ls-portal #portal-work-hub [data-work-cards]{grid-template-columns:repeat(2,minmax(0,1fr));gap:48px}
.living-system.ls-portal .portal-work-card{gap:20px}
.living-system.ls-portal .portal-work-card .work-card-cover{aspect-ratio:3/2}
.living-system.ls-portal .portal-work-card.without-cover{border-top:3px solid var(--deru-blue);padding-top:24px}
.living-system.ls-portal .portal-work-card h3{font-size:clamp(26px,3vw,38px);font-weight:500}
/* The private archive: large first piece, quieter supporting pieces. */
.living-system.ls-portal .library-portal>h2{font-size:clamp(36px,5vw,64px);font-weight:500;letter-spacing:-.045em;margin-block:12px 32px}
.living-system.ls-portal .library-portal [data-search]{padding:0 0 24px;margin-bottom:32px;border:0;border-bottom:1px solid var(--ls-line);background:transparent;align-items:end}
.living-system.ls-portal .library-portal [data-results]{grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:48px 56px}
.living-system.ls-portal .library-portal .library-card:nth-child(even){margin-top:64px}
.living-system.ls-portal .library-portal .library-card .library-thumb{min-height:0;max-height:none;border-radius:0}
.living-system.ls-portal .library-portal .library-card[data-has-preview=false] .library-thumb{aspect-ratio:3/1;background:transparent;border-block:1px solid var(--ls-line);font-size:clamp(24px,4vw,48px);font-weight:400;color:var(--deru-blue)}
.living-system.ls-portal .library-portal .library-card-copy{padding-top:20px}
.living-system.ls-portal .library-portal .library-card h3{font-size:clamp(24px,3vw,36px);font-weight:500}
.living-system.ls-portal .library-portal .library-resource-info>h2{font-size:clamp(30px,4vw,56px);font-weight:500}
.living-system.ls-portal .library-portal .library-resource-media .library-thumb{min-height:0}
.living-system.ls-portal .library-portal .library-resource-media .library-thumb img{width:100%;object-fit:contain;max-height:none}
.living-system.ls-portal .library-portal .library-editorial-detail{grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:48px}
/* Agreement and account use one dominant financial reading, not equal cards. */
.living-system.ls-portal .proposal-summary{border-top:3px solid var(--deru-blue);padding:32px 0;margin-bottom:32px}
.living-system.ls-portal .proposal-summary h2{font-size:clamp(32px,4vw,56px);font-weight:500;max-width:26ch}
.living-system.ls-portal .proposal-card{border:0;border-bottom:1px solid var(--ls-line);border-radius:0;background:transparent;padding:24px 0}
.living-system.ls-portal .product-block{border:0;border-top:1px solid var(--ls-line);padding:32px 0}
.living-system.ls-portal .product-choice{border:1px solid var(--ls-line);border-radius:3px;background:transparent}
.living-system.ls-portal .product-choice.is-selected,.living-system.ls-portal .product-choice:has(input:checked){border-color:var(--deru-blue);box-shadow:inset 4px 0 var(--deru-blue);background:var(--deru-blue-alpha-4)}
.living-system.ls-portal .product-total{border-top:3px solid var(--deru-ink);padding:24px 0}
.living-system.ls-portal .account-overview{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:24px 48px;align-items:start}
.living-system.ls-portal .account-balance{display:block;border:0;background:var(--deru-ink);color:var(--deru-paper);padding:32px;grid-row:span 2}
.living-system.ls-portal .account-balance>span{font-size:16px;color:inherit}
.living-system.ls-portal .account-balance>h3{font-size:clamp(30px,4vw,52px);font-weight:500;margin-top:24px;color:var(--deru-yellow);overflow-wrap:anywhere}
.living-system.ls-portal .account-note{margin:0;max-width:48ch}
.living-system.ls-portal .account-history{grid-column:1/-1}
/* The two existing chapters become a small studio brief, no extra steps. */
.living-system.ls-portal .request-client-compose{max-width:980px;margin-inline:auto}
.living-system.ls-portal .request-client-compose h2{font-size:clamp(32px,4.5vw,60px);font-weight:500;line-height:1.08;max-width:20ch}
.living-system.ls-portal .request-journey{border-top:2px solid var(--deru-ink);padding-top:24px}
.living-system.ls-portal .request-chapters{display:flex;gap:24px;border:0;margin-bottom:32px}
.living-system.ls-portal .request-chapters button{flex:1;text-align:left;border-radius:0;border:0;border-bottom:2px solid var(--ls-line);background:transparent;color:var(--ls-muted);padding:16px 0}
.living-system.ls-portal .request-chapters button[aria-current=step]{color:var(--deru-blue);border-color:var(--deru-blue)}
.living-system.ls-portal .request-main-field textarea{font-size:clamp(20px,2.2vw,28px);line-height:1.5;min-height:200px;background:transparent;border:0;border-bottom:1px solid var(--ls-line);border-radius:0;padding:16px 0}
.living-system.ls-portal .request-idea{border-left:3px solid var(--deru-blue);padding:16px 24px;background:var(--deru-blue-alpha-4);font-size:20px}
@media(hover:hover) and (pointer:fine){
 .living-system.ls-portal .recent-work-item:hover .work-copy em,.living-system.ls-portal .library-card-open:hover .library-card-action{text-decoration:underline;text-underline-offset:5px}
}
@media(prefers-reduced-motion:no-preference){
 .living-system.ls-portal :is(.recent-work-item,.library-card-open) img{transition:transform 420ms var(--portal-ease)}
 .living-system.ls-portal :is(.recent-work-item,.library-card-open):hover img{transform:scale(1.025)}
 .living-system.ls-portal .request-chapters button{transition:border-color 180ms ease,color 180ms ease}
 .living-system.ls-portal .product-choice{transition:box-shadow 180ms ease,background-color 180ms ease}
}
@media(max-width:1000px){
 .living-system.ls-portal .portal-home{grid-template-columns:minmax(0,1fr)}
 .living-system.ls-portal :is(.recent-work,.need-field,.quick-files){grid-column:1;grid-row:auto}
 .living-system.ls-portal .need-field{max-width:none}
 .living-system.ls-portal .work-editorial-hero{gap:32px}
}
@media(max-width:760px){
 .living-system.ls-portal .dashboard{padding-inline:20px}
 .living-system.ls-portal .client-navigation{gap:4px 20px;margin-bottom:28px}
 .living-system.ls-portal .client-navigation [data-contextual-new]{margin-left:0}
 .living-system.ls-portal .context-stage{grid-template-columns:1fr;padding:24px;gap:24px}
 .living-system.ls-portal .context-stage h2{font-size:30px}
 .living-system.ls-portal .context-action{justify-self:start;max-width:100%}
 .living-system.ls-portal .portal-home{gap:32px}
 .living-system.ls-portal .recent-work-item .work-preview{aspect-ratio:4/3}
 .living-system.ls-portal .recent-work-item:first-child .work-copy strong{font-size:28px}
 .living-system.ls-portal .recent-work-item:not(:first-child){grid-template-columns:minmax(80px,.4fr) 1fr;gap:16px}
 .living-system.ls-portal .work-editorial-hero,.living-system.ls-portal .work-editorial-hero.without-art .work-editorial-context{grid-template-columns:1fr;gap:24px}
 .living-system.ls-portal .work-editorial-art{aspect-ratio:4/3;padding:16px}
 .living-system.ls-portal .work-editorial-hero.without-art .project-topline{grid-row:auto}
 .living-system.ls-portal #portal-work-hub [data-work-cards]{grid-template-columns:1fr;gap:32px}
 .living-system.ls-portal .library-portal [data-results],.living-system.ls-portal .library-portal .library-editorial-detail{grid-template-columns:1fr;gap:32px}
 .living-system.ls-portal .library-portal .library-card:nth-child(even){margin-top:0}
 .living-system.ls-portal .library-portal .library-resource-media .library-thumb{}
 .living-system.ls-portal .account-overview{grid-template-columns:1fr;gap:24px}
 .living-system.ls-portal .account-balance{grid-row:auto;padding:24px}
 .living-system.ls-portal .request-chapters{gap:16px}
}
@media(prefers-reduced-motion:reduce){
 .living-system.ls-portal *, .living-system.ls-portal *::before,.living-system.ls-portal *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
}
.living-system.ls-portal .library-portal .library-card[data-has-preview=false] .library-thumb{max-height:140px}
.living-system.ls-portal #portal-account>button:first-child{border:0;background:transparent;padding:12px 0;color:var(--ls-ink);font:inherit}
.living-system.ls-portal #portal-account [data-account-payments]>h4,.living-system.ls-portal #portal-account [data-account-payments]>h4+p{display:none}
/* One persistent chapter marker moves with the brief, never delays navigation. */
.living-system.ls-portal .request-chapters{position:relative}
.living-system.ls-portal .request-chapters::after{content:'';position:absolute;left:0;bottom:0;width:calc(50% - 12px);height:3px;background:var(--deru-blue);pointer-events:none;transform:translateX(0)}
.living-system.ls-portal .request-journey[data-chapter="2"] .request-chapters::after{transform:translateX(calc(100% + 24px))}
@media(prefers-reduced-motion:no-preference){.living-system.ls-portal .request-chapters::after{transition:transform 280ms var(--portal-ease)}}
@media(max-width:760px){.living-system.ls-portal .request-chapters::after{width:calc(50% - 8px)}.living-system.ls-portal .request-journey[data-chapter="2"] .request-chapters::after{transform:translateX(calc(100% + 16px))}}
.living-system.ls-portal .recent-work-strip[data-count="1"] .recent-work-item.has-cover{grid-template-columns:minmax(0,1fr);gap:0}
/* Accounts tell commercial stories; the ledger stays in Admin. */
.living-system.ls-portal .account-commercial-stories{min-width:0}
.living-system.ls-portal .account-commercial-story{padding:24px 0;border-bottom:1px solid var(--ls-line)}
.living-system.ls-portal .account-commercial-story:first-child{padding-top:0}
.living-system.ls-portal .account-commercial-story header{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:8px 24px}
.living-system.ls-portal .account-commercial-story h3{font-size:clamp(22px,3vw,30px);line-height:1.2;margin:0;overflow-wrap:anywhere}
.living-system.ls-portal .account-commercial-story .payment-summary{background:none;border:0;padding:20px 0;margin:0}
.living-system.ls-portal .account-story-actions{display:flex;flex-wrap:wrap;gap:12px}
.living-system.ls-portal .account-story-actions button{min-height:44px;padding:10px 0;border:0;border-bottom:1px solid currentColor;border-radius:0;background:none;color:var(--deru-ink)}
.living-system.ls-portal .account-overview>[data-account-payments]{grid-column:2}
.living-system.ls-portal .account-overview>[data-account-payments]:empty{display:none}
@media(max-width:760px){.living-system.ls-portal .account-overview>[data-account-payments]{grid-column:1}}

/* Services are an ongoing relationship, separate from an active work queue. */
#home-services {margin-block:var(--space-6,32px)}
.service-story {display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) auto;gap:24px;padding-block:24px;border-bottom:1px solid var(--deru-ink-paper-15);align-items:center}
.service-story h3 {margin:0 0 8px;font-size:1.25rem;overflow-wrap:anywhere}
.service-story p {margin:4px 0}.service-story button,.service-story a {display:inline-flex;align-items:center;padding:8px 0;text-underline-offset:4px;color:var(--deru-blue);min-height:44px;max-width:100%;text-align:left}
@media(max-width:600px){.service-story{grid-template-columns:1fr;gap:8px;padding-block:20px}.service-story>div:last-child{display:flex;flex-wrap:wrap;gap:8px}}

/* Service status and the next real action stay adjacent, using the shared link/focus system. */
.service-story .service-action{max-width:30ch;min-width:0}.service-story .service-action p{font-size:.9rem;line-height:1.5}.service-story a:focus-visible{outline:3px solid var(--deru-blue);outline-offset:4px}

/* Published deliveries: file context and one secondary download action. */
.living-system.ls-portal .delivery-card{background:transparent;border-radius:0;border-top:1px solid var(--deru-ink-paper-15);padding:18px 0;box-shadow:none}
.living-system.ls-portal .delivery-card>p{max-width:65ch;margin:8px 0;color:var(--deru-ink-paper-65)}
.living-system.ls-portal .delivery-card .download-actions .text-action{min-height:44px;padding:10px 0;font:inherit;font-weight:600;text-align:left;text-decoration:underline;text-underline-offset:4px}
.living-system.ls-portal .delivery-card .text-action:focus-visible{outline:2px solid var(--deru-blue);outline-offset:4px}

/* Payment is an actionable balance, not a second hero. */
.living-system.ls-portal .context-stage[data-kind=payment]:not([data-quiet=true]){min-height:0;margin-bottom:32px;padding:24px 0;gap:20px;background:transparent;color:var(--ls-ink);border-block:1px solid var(--ls-line);border-radius:0;box-shadow:none}
.living-system.ls-portal .context-stage[data-kind=payment] .eyebrow{color:var(--deru-yellow-ink-30);margin-bottom:8px}
.living-system.ls-portal .context-stage[data-kind=payment] h2{color:var(--deru-ink-paper-70);font-size:clamp(28px,3vw,38px);margin-bottom:8px;font-variant-numeric:tabular-nums}
.living-system.ls-portal .context-stage[data-kind=payment] .context-operation{color:var(--deru-ink);font-weight:600;margin-bottom:4px}
.living-system.ls-portal .context-stage[data-kind=payment] p{color:var(--deru-ink-paper-70);max-width:54ch}
.living-system.ls-portal .context-stage[data-kind=payment] .context-action{align-self:center}
.living-system.ls-portal .context-stage[data-kind=payment] .context-action>:first-child{background:var(--deru-yellow);color:var(--deru-ink);border-color:var(--deru-ink)}
.living-system.ls-portal .context-stage[data-kind=payment] .other-actions{color:var(--ls-ink)}
.living-system.ls-portal .context-stage[data-kind=payment] :focus-visible{outline-color:var(--deru-blue)}
@media(max-width:600px){.living-system.ls-portal .context-stage[data-kind=payment]{grid-template-columns:minmax(0,1fr);gap:14px}.living-system.ls-portal .context-stage[data-kind=payment] .context-action{justify-self:start}}

/* Pair text with its surface: the payment variant is light, other priorities may be inverse. */
.living-system.ls-portal .context-stage[data-kind=payment] .context-action>:first-child:is(:hover,:active,:focus-visible){background:var(--deru-yellow);color:var(--deru-ink);border-color:var(--deru-ink)}
.living-system.ls-portal .context-stage[data-kind=payment] ::selection{background:var(--deru-blue);color:var(--deru-white)}
