/* Compact spacing; reading size and mobile hit areas stay independent of density. */
.portal-refined .page{padding-top:16px;padding-bottom:calc(var(--bottom-nav) + 24px + var(--safe-b))}
.portal-refined .hello{padding:0 0 16px;gap:12px}
.portal-refined h1{font-size:28px;line-height:1.2}
.portal-refined .hello .lead{margin-top:6px;font-size:14px}
.portal-refined .hello .eyebrow{margin-bottom:4px}
.portal-refined .panel{padding:16px;border-radius:14px}
.portal-refined .section{margin-top:20px}.portal-refined .section-head{margin-bottom:12px}
.portal-refined .stack> *+*{margin-top:12px}.portal-refined .stack-lg> *+*{margin-top:16px}
.portal-refined .context-bar{margin-bottom:12px;min-height:36px;gap:10px}
.portal-refined .section-tabs{margin-bottom:14px;gap:20px}
.portal-refined .manage-grid{gap:12px}.portal-refined .manage-card{padding:18px;display:grid;grid-template-columns:36px 1fr;column-gap:12px;border-radius:14px}
.portal-refined .manage-icon{width:36px;height:36px;grid-row:1/4;margin:0}.portal-refined .manage-card h2{font-size:18px;margin-bottom:6px}.portal-refined .manage-card p{grid-column:2;font-size:13px}.portal-refined .manage-next{grid-column:2;margin-top:12px}
.portal-refined .settings-layout{gap:16px}.portal-refined .settings-layout .stack{gap:16px}.portal-refined .settings-layout .tenant-styles .check{padding:8px 10px;margin:6px 0;min-height:44px}
.portal-refined .form-footer{padding-top:12px;gap:10px}.portal-refined .page-foot{margin-top:28px;padding-top:12px;font-size:11px}
.portal-refined .notice{padding:12px 16px}.portal-refined .empty{padding:22px 16px}.portal-refined .all-clear{padding:18px}
.portal-refined .field{gap:4px}.portal-refined .field>span:first-child{font-size:13px}
.portal-refined .field input,.portal-refined .field select{min-height:40px;padding:8px 10px}
.portal-refined .field textarea{padding:10px;min-height:90px}
.portal-refined .hint{font-size:12px;line-height:1.5}
.portal-refined .acc>summary{min-height:48px;padding:12px}
.portal-refined .task{gap:12px;padding:12px;grid-template-columns:80px minmax(0,1fr)}
.portal-refined .task h3{font-size:16px}.portal-refined .order-row{padding:12px}
.portal-refined .overview-grid,.portal-refined .order-layout,.portal-refined .costs-grid,.portal-refined .review{gap:20px}
/* Selection step: thumbnail rows replace full portrait posters. */
.portal-refined .briefing-wizard{max-width:1100px}
.portal-refined .briefing-wizard .step[data-step="1"],.portal-refined .briefing-wizard .step[data-step="3"]{max-width:960px}
.portal-refined .wizard-progress{margin:0 0 16px;gap:12px}.portal-refined .wizard-progress span{font-size:12px}
.portal-refined .step .lead{font-size:14px;margin-top:8px}.portal-refined .step-body{margin-top:16px;gap:16px}
.portal-refined .choice-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.portal-refined .choice-grid .choice-card{grid-template-columns:32px minmax(0,1fr) 20px;grid-template-rows:auto;gap:10px;padding:12px;align-items:center;border-radius:12px}
.portal-refined .choice-grid .choice-card .c-icon{width:32px;height:32px;border-radius:8px;grid-column:1;margin:0}
.portal-refined .choice-grid .choice-card .c-icon svg{width:20px;height:20px}
.portal-refined .choice-grid .choice-card>div{grid-column:2;grid-row:1}
.portal-refined .choice-card strong{font-size:16px}.portal-refined .choice-grid .choice-card span{font-size:12px;line-height:1.45}.portal-refined .choice-card em{font-size:12px;margin-top:4px}
.portal-refined .choice-grid .choice-card .radio{grid-column:3;grid-row:1;width:20px;height:20px;margin:0}
.portal-refined .pills{gap:6px}.portal-refined .pill-choice span{min-width:56px;min-height:40px;font-size:14px;padding:6px 10px;border-radius:9px}
.portal-refined .step-body legend{font-size:14px;margin-bottom:8px}
.portal-refined .stil-choice.compact{padding:12px;margin-bottom:12px}
.portal-refined .stil-grid{grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:8px}
body.portal-refined .stil-choice .stil-grid>.choice{grid-column:auto}
body.portal-refined .stil-choice .stil-grid>.choice .stil-card.choice-card{display:grid;grid-template-columns:60px minmax(0,1fr) 20px;grid-template-rows:auto;align-items:center;align-content:center;gap:10px;padding:8px;min-height:94px}
body.portal-refined .stil-choice .stil-grid>.choice .stil-media{grid-column:1;grid-row:1;margin:0}
body.portal-refined .stil-choice .stil-grid>.choice .stil-text{grid-column:2;grid-row:1;margin:0}
body.portal-refined .stil-choice .stil-grid>.choice .stil-card img{height:76px;width:60px;aspect-ratio:auto;border-radius:7px;object-position:50% 10%}
body.portal-refined .stil-choice .stil-grid>.choice .stil-card .radio{position:static;grid-column:3;grid-row:1;width:20px;height:20px;margin:0}
.portal-refined .stil-card .stil-text strong{font-size:14px}.portal-refined .stil-card .stil-text span{font-size:12px}.portal-refined .stil-card .stil-text .stil-ki{font-size:11px;margin-top:3px}
.portal-refined .stil-example{font-size:10px;letter-spacing:0;left:2px;bottom:2px;padding:2px 4px;border-radius:4px}
.stil-footer{display:flex;gap:12px;align-items:center;margin-top:8px}.stil-footer .linkbutton{white-space:normal;font-size:12px;flex:none;min-height:40px}.portal-refined .stil-footer .hint{margin:0;max-width:650px}
.style-full-preview{display:block;width:auto;max-width:100%;height:auto;max-height:calc(var(--visible-height,90dvh) - 220px);object-fit:contain;margin:12px auto}
.portal-refined .wizard-bar{margin-top:16px}.portal-refined .wizard-bar .button{white-space:normal;line-height:1.35}
.portal-refined .guide-part>summary{padding:12px 16px;min-height:60px;gap:12px}.portal-refined .guide-part-body{padding:12px 16px}.portal-refined .briefing-workspace{gap:16px}
.portal-refined .guide-extras>summary{min-height:44px}.portal-refined .assistant{padding:16px}.portal-refined .work-head{margin-bottom:16px}
.portal-refined .learn-intro{padding:16px}.portal-refined .learn-section{margin-top:20px}
.portal-refined .rail-dots{gap:2px}.portal-refined .rail-dots button{display:grid;place-items:center;min-width:44px;width:44px;height:44px;background:transparent;border-radius:8px}
.portal-refined .rail-dots button:after{content:"";display:block;width:8px;height:8px;background:var(--line-strong);border-radius:50%}
.portal-refined .rail-dots button[aria-current=true]:after{width:22px;border-radius:5px;background:var(--brand)}
.portal-refined .sheet-inner{padding:16px 18px;max-height:min(90dvh,calc(var(--visible-height,100dvh) - 16px));overscroll-behavior:contain}
.portal-refined .sheet-close{position:sticky;top:0;float:right;z-index:3;background:var(--surface);margin-left:8px}
.portal-refined .concept-rail{scroll-padding-inline:16px;overscroll-behavior-x:contain;touch-action:pan-x pan-y pinch-zoom}
@media(min-width:980px){.portal-refined .page{padding-top:18px}.portal-refined .button{min-height:38px;padding:8px 12px;font-size:13px}.portal-refined .hello h1{font-size:28px}.portal-refined .overview-grid .side{top:calc(var(--header) + 12px)}}
@media(max-width:979px){
 .portal-refined .page{padding:12px 12px calc(var(--bottom-nav) + 24px + var(--safe-b))}.portal-refined.has-actionbar .page{padding-bottom:calc(126px + var(--safe-b))}
 .portal-refined .hello{padding-bottom:14px}.portal-refined h1{font-size:24px}.portal-refined .lead{font-size:14px}.portal-refined .panel{padding:12px}
 .portal-refined .button,.portal-refined .button.sm,.portal-refined .linkbutton,.portal-refined summary,.portal-refined .icon-button{min-height:44px}
 .portal-refined .field input,.portal-refined .field select,.portal-refined .field textarea,.portal-refined .tenant-switch select,.portal-refined .guided-assistant textarea[data-assist-answer],.portal-refined input,.portal-refined select,.portal-refined textarea{font-size:16px;min-height:44px}
 .portal-refined .tenant-switch{width:auto;max-width:100%}.portal-refined .hello>.tenant-switch{width:100%}.portal-refined .context-bar{margin-bottom:10px}
 .portal-refined .choice-grid .choice-card{grid-template-columns:minmax(0,1fr) 20px;gap:6px;padding:10px;align-items:start}.portal-refined .choice-grid .choice-card .c-icon{display:none}.portal-refined .choice-grid .choice-card>div{grid-column:1}.portal-refined .choice-grid .choice-card .radio{grid-column:2}
 .portal-refined .choice-card strong{font-size:15px}.portal-refined .choice-grid .choice-card span{font-size:12px}.portal-refined .choice-card em{font-size:11px;line-height:1.35}
 .portal-refined .pills{display:grid;grid-template-columns:repeat(auto-fit,minmax(76px,1fr));gap:6px}.portal-refined .pill-choice span{width:100%;min-width:0;min-height:48px;font-size:14px;padding:6px 4px;flex-direction:column;gap:1px;line-height:1.2;white-space:nowrap}.portal-refined .pill-choice small{font-size:11px;margin-left:0}
 .portal-refined .stil-grid{grid-template-columns:1fr}.portal-refined .stil-footer{display:block}.portal-refined .stil-footer .linkbutton{min-height:44px;font-size:13px}.portal-refined .stil-footer .hint{font-size:11px}
 .portal-refined .actionbar{padding:8px 12px calc(8px + var(--safe-b));gap:8px}.portal-refined .wizard-bar .button{min-height:44px;white-space:normal;flex:1;font-size:13px;padding:8px;min-width:0}
 .portal-refined .bottom-nav{padding:4px 4px calc(4px + var(--safe-b))}.portal-refined .bottom-nav a{font-size:11px;min-height:48px;gap:2px}.portal-refined .bottom-nav a svg{height:20px;width:20px}
 .portal-refined .ref-x,.portal-refined .ref-dl,.portal-refined .fb-remove,.portal-refined .time-chip button{min-width:44px;width:44px;min-height:44px;height:44px}
 .portal-refined .fb-type button,.portal-refined .version-switch button,.portal-refined [data-action="version"],.portal-refined .quality-card>summary{min-height:44px}
 .portal-refined .fb-type{flex-wrap:wrap}.portal-refined .feedback-tools{flex-wrap:wrap}
 .portal-refined .sheet-inner{padding:12px 14px calc(16px + var(--safe-b))}.portal-refined .sheet .dialog-actions{gap:8px}.portal-refined .sheet button{white-space:normal}
 .portal-refined .step h1{font-size:24px}.portal-refined .wizard-progress{margin-bottom:12px}.portal-refined .wizard-progress span{font-size:11px}
 .portal-refined.keyboard-open .bottom-nav{display:none}.portal-refined.keyboard-open .actionbar{position:static!important;box-shadow:none;background:var(--surface);margin-top:12px}.portal-refined.keyboard-open .live-briefing{position:static}
}
@media(max-width:380px){.portal-refined .choice-grid .choice-card{padding:8px}.portal-refined .choice-grid .choice-card .radio{width:18px;height:18px}.portal-refined .choice-grid .choice-card span{font-size:11px}.portal-refined .wizard-bar .button{font-size:12px}.portal-refined .context-bar{gap:6px}}
.portal-refined .choice-grid .choice-card{height:100%}
.stil-help{flex:1;min-width:0}.stil-help>summary{display:flex;align-items:center;min-height:40px;font-size:12px;font-weight:650;color:var(--muted);cursor:pointer}.stil-help[open]>summary{margin-bottom:4px}
.stil-help>summary:before{content:"+";margin-right:7px}.stil-help[open]>summary:before{content:"−"}
@media(max-width:979px){.portal-refined .stil-footer{display:flex;align-items:flex-start;gap:12px}.portal-refined .stil-footer .linkbutton,.portal-refined .stil-help>summary{font-size:12px;min-height:44px}.portal-refined .stil-footer .linkbutton{max-width:55%}.portal-refined .choice-grid .choice-card{position:relative;display:block;padding:10px}.portal-refined .choice-grid .choice-card strong{padding-right:24px}.portal-refined .choice-grid .choice-card .radio{position:absolute;top:10px;right:10px}}

/* Keep overview cards short; the detail dialog retains the full example. */
.portal-refined .concept-media{aspect-ratio:auto;height:200px}
.portal-refined .concept-media img{object-fit:contain}
.portal-refined .concept-body{padding:12px;gap:8px}
.portal-refined .concept-body p.idea{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.portal-refined .summary{padding:16px}.portal-refined .brief-review-heading h2{font-size:20px}.portal-refined .order-brief-summary{margin:12px 0}
@media(max-width:979px){.portal-refined .time-set{min-height:44px}.portal-refined .fb-top{flex-wrap:wrap}.portal-refined .concept-media{height:170px}.portal-refined .concept-body{font-size:14px}.portal-refined .concept-rail{margin-inline:-12px;padding-inline:12px}.portal-refined .summary{padding:12px}}
