/* 견적 스튜디오 웹 UI 전용. 원본 DDOKD Light 토큰/컴포넌트를 사용한다.
   PDF는 별도 iframe·quote-document.css를 사용하며 이 파일을 읽지 않는다. */
* { box-sizing:border-box; }
:root { --studio-field-line:#dce1e8; }
body { margin:0; min-width:320px; background:var(--canvas); color:var(--ink); font-family:var(--font-sans); font-size:16px; line-height:1.625; letter-spacing:-.01em; }
button,input,textarea,select { font:inherit; }
button { cursor:pointer; }
button:disabled { cursor:default; }
button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,a:focus-visible { outline:2px solid var(--focus-ring); outline-offset:2px; }
[hidden],#discount-editor[hidden],#discount-summary[hidden],#add-discount[hidden] { display:none; }
.global-header { min-height:80px; display:flex; align-items:center; justify-content:space-between; gap:var(--space-24); padding:var(--space-16) var(--space-24); border-bottom:1px solid var(--line); background:var(--surface); }
.top-brand { display:flex; align-items:center; gap:var(--space-24); min-width:0; }
.brand-logo { display:block; width:96px; height:auto; }
.top-divider { width:1px; height:32px; background:var(--line); }
.app-name { display:flex; flex-direction:column; gap:var(--space-4); }
.app-name strong { font-size:16px; line-height:1.25; font-weight:700; }
.app-name small { font-size:12px; line-height:1; color:var(--ink-subtle); font-weight:500; letter-spacing:.08em; }
.header-tools { display:flex; align-items:center; gap:var(--space-16); }
.sync-pill { display:flex; align-items:center; gap:var(--space-8); color:var(--ink-muted); font-size:12px; line-height:1.5; }
.status-dot { width:8px; height:8px; border-radius:var(--radius-pill); background:var(--neutral); flex-shrink:0; }
.sync-pill.live .status-dot { background:var(--success); }
.sync-pill.error .status-dot { background:var(--danger); }
.sync-pill.demo .status-dot { background:var(--orange); }
.tiny-link { color:var(--blue); text-decoration:none; font-size:14px; white-space:nowrap; }
.tiny-link:hover { text-decoration:underline; text-underline-offset:3px; }
.btn { display:inline-flex; align-items:center; justify-content:center; gap:var(--space-8); min-height:var(--control-height); height:auto; padding:var(--space-8) var(--space-16); border:1px solid transparent; border-radius:var(--radius-sm); font-size:14px; line-height:1.5; font-weight:600; white-space:nowrap; transition:background-color .15s ease,border-color .15s ease; }
.btn-outline { background:var(--surface); color:var(--ink); border-color:var(--line-strong); }
.btn-outline:hover:not(:disabled),.btn-text:hover:not(:disabled) { background:var(--surface-subtle); }
.btn-text { background:transparent; color:var(--ink-muted); }
.btn-primary { background:var(--yellow); color:var(--on-yellow); border-color:var(--yellow); }
.btn-primary:hover:not(:disabled) { background:var(--yellow-soft); border-color:var(--yellow); }
.btn:disabled { background:var(--surface-subtle); color:var(--ink-disabled); border-color:var(--line); }
.btn-small { padding:var(--space-8) var(--space-12); font-size:14px; }
.btn.btn-row-action { min-height:28px; padding:0 var(--space-8); font-size:12px; }
.btn-row-delete { color:var(--ink-muted); }
.btn-icon { font-size:18px; line-height:1; }
.workspace { display:grid; grid-template-columns:minmax(440px,480px) minmax(0,1fr); height:calc(100dvh - 80px); overflow:hidden; }
.edit-panel { display:flex; flex-direction:column; min-height:0; overflow:hidden; border-right:1px solid var(--line); background:var(--surface); }
.studio-page-intro { padding:var(--space-16) var(--space-24); }
.overline { font-size:12px; line-height:1.5; font-weight:500; letter-spacing:.08em; color:var(--ink-subtle); }
.studio-page-intro p { margin:0; font-size:14px; line-height:1.6; color:var(--ink-muted); }
.panel-scroll { flex:1; min-height:0; overflow-y:auto; overscroll-behavior:contain; padding:0 var(--space-24) var(--space-32); }
.form-group { padding:var(--space-32) 0; border-bottom:1px solid var(--line); }
.section-head { display:flex; align-items:center; gap:var(--space-8); margin-bottom:var(--space-20); }
.section-num { color:var(--ink-subtle); font-size:12px; font-weight:500; font-variant-numeric:tabular-nums; }
.section-head h2 { font-size:18px; line-height:1.5; font-weight:700; letter-spacing:-.025em; margin:0; }
.section-note { margin-left:auto; font-size:12px; color:var(--ink-muted); }
.quote-section { padding:0; }
.quote-section > summary { margin:0; padding-block:18px; cursor:pointer; list-style:none; }
.quote-section > summary::-webkit-details-marker { display:none; }
.quote-section > summary::after { content:""; flex:none; width:7px; height:7px; margin-left:auto; border-right:1.5px solid currentColor; border-bottom:1.5px solid currentColor; transform:rotate(45deg); }
.quote-section > summary:has(.section-note)::after { margin-left:4px; }
.quote-section[open] > summary::after { transform:rotate(225deg); }
.quote-section-title { font-size:18px; line-height:1.5; font-weight:700; letter-spacing:-.025em; }
.quote-section-body { padding-bottom:var(--space-24); }
.quote-section > summary:focus-visible { outline:2px solid var(--focus-ring); outline-offset:2px; }

.field-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:var(--space-16); }
.field-wide { grid-column:1/-1; }
.field { display:block; font-size:14px; font-weight:500; }
.field>span { display:block; margin-bottom:var(--space-8); }
.field em { color:var(--danger); font-style:normal; font-size:12px; margin-left:var(--space-4); }
.field input,.field select,.field textarea,.item-field input,.item-field select,.item-type { display:block; width:100%; min-width:0; min-height:var(--control-height); border:1px solid var(--studio-field-line); border-radius:var(--radius-sm); padding:var(--space-8) var(--space-12); background:var(--surface); color:var(--ink); font-size:14px; line-height:1.5; font-weight:400; }
input::placeholder,textarea::placeholder { color:var(--ink-subtle); }
.field textarea { resize:vertical; }
.section-desc { margin:0 0 var(--space-16); color:var(--ink-muted); font-size:14px; line-height:1.6; }
.items { display:flex; flex-direction:column; gap:var(--space-16); }
.item-card { border:1px solid var(--line); border-radius:var(--radius-md); padding:var(--space-16); background:var(--surface); }
.item-head { display:flex; align-items:center; justify-content:space-between; gap:var(--space-8); margin-bottom:var(--space-12); }
.item-count { color:var(--ink-subtle); font-size:12px; font-weight:500; letter-spacing:.04em; }
.item-type { margin-bottom:var(--space-12); }
.item-row { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:var(--space-12); margin-top:var(--space-12); }
.item-variants { min-width:0; margin:0; padding:var(--space-12); border:1px solid var(--line); border-radius:var(--radius-sm); background:var(--surface-subtle); }
.item-variants legend { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.item-variants-title { display:block; margin:0 0 var(--space-8); font-size:14px; font-weight:650; }
.item-variants .item-row { margin-top:0; }
.item-variants .item-field > span { display:block; margin-bottom:var(--space-4); }

.item-field { min-width:0; font-size:14px; color:var(--ink); font-weight:500; }
.item-field label { display:block; margin-bottom:var(--space-8); }
.item-field input:disabled,.item-field select:disabled { background:var(--surface-subtle); color:var(--ink-muted); opacity:1; }
.item-info { margin-top:var(--space-12); color:var(--ink-muted); font-size:14px; line-height:1.6; overflow-wrap:anywhere; }
.item-total { display:flex; justify-content:space-between; align-items:center; gap:var(--space-12); border-top:1px solid var(--line); padding-top:var(--space-12); margin-top:var(--space-16); color:var(--ink-muted); font-size:14px; }
.item-total strong { color:var(--ink); font-size:18px; font-weight:600; font-variant-numeric:tabular-nums; }
.compact-actions .btn { min-height:34px; padding:4px 10px; border-radius:8px; font-size:13px; }
.compact-actions .btn-text { background:var(--surface-subtle); color:var(--ink); }
.compact-actions .btn-text:hover:not(:disabled) { background:var(--neutral-soft); }
@media (pointer:coarse) { .compact-actions .btn { min-height:44px; } }
.item-actions { display:flex; flex-wrap:wrap; gap:var(--space-8); margin-top:var(--space-16); }
.mini-totals { background:var(--surface-subtle); padding:var(--space-16); border-radius:var(--radius-md); margin-top:var(--space-24); }
.mini-totals>div { display:flex; justify-content:space-between; gap:var(--space-16); align-items:baseline; font-size:14px; padding:var(--space-4) 0; }
.mini-totals b { font-weight:600; font-variant-numeric:tabular-nums; }
.mini-totals .mini-final { margin-top:var(--space-12); border-top:1px solid var(--line-strong); padding-top:var(--space-16); font-weight:700; }
.mini-final b { font-size:24px; line-height:1.3; letter-spacing:-.025em; }
#discount-total { color:var(--danger); }
.panel-footer { padding-top:var(--space-24); }
.footnote { color:var(--ink-muted); font-size:14px; line-height:1.6; }
.preview-panel { background:var(--surface-subtle); display:flex; flex-direction:column; min-width:0; overflow:hidden; container-type:inline-size; }
.preview-toolbar { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:var(--space-8); padding:var(--space-12) var(--space-16); }
.preview-heading { min-width:0; }
.preview-toolbar h2 { font-size:18px; line-height:1.3; font-weight:700; letter-spacing:-.025em; margin:0 0 2px; }
.preview-sub { color:var(--ink-muted); font-size:12px; line-height:1.4; }
.preview-stage { flex:1; min-height:0; overflow:auto; display:flex; justify-content:center; align-items:flex-start; padding:var(--space-8) var(--space-16) var(--space-32); }
.preview-stage { position:relative; }
.preview-loading { position:absolute; inset-block-start:var(--space-24); inset-inline:var(--space-16); text-align:center; color:var(--ink-muted); font-size:14px; }
.preview-pending { visibility:hidden; }
.paper-shell { width:794px; height:1123px; flex:0 0 auto; }
.paper-frame { width:794px; height:1123px; border:0; outline:1px solid var(--line); background:var(--surface); display:block; transform-origin:top left; }
.preview-footer { display:flex; justify-content:space-between; gap:var(--space-16); border-top:1px solid var(--line); padding:var(--space-12) var(--space-24); color:var(--ink-subtle); font-size:12px; }
.alert { margin-top:var(--space-24); padding:var(--space-12) var(--space-16); border:1px solid var(--danger); border-radius:var(--radius-sm); background:var(--danger-soft); color:var(--danger); font-size:14px; line-height:1.6; white-space:pre-wrap; }
.toast { position:fixed; z-index:99; right:var(--space-24); bottom:var(--space-24); max-width:calc(100vw - 48px); padding:var(--space-12) var(--space-16); border-radius:var(--radius-md); background:var(--ink); color:var(--canvas); font-size:14px; box-shadow:var(--shadow-floating); }
select:not([multiple]) { appearance:none; -webkit-appearance:none; padding-right:var(--space-40); background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23161A1C' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 12px center; background-size:16px; }
@media (max-width:1100px) and (min-width:769px) { .workspace { grid-template-columns:440px minmax(0,1fr); } .header-tools { gap:var(--space-12); } .tiny-link { display:none; } }
@media (max-width:768px) {
 .global-header { flex-wrap:wrap; padding:var(--space-16); gap:var(--space-16); }
 .header-tools { width:100%; justify-content:space-between; gap:var(--space-12); }
 .tiny-link,.top-divider,.app-name small { display:none; }
 .brand-logo { width:80px; } .top-brand { gap:var(--space-16); }
 .workspace { display:flex; flex-direction:column; height:auto; overflow:visible; }
 .edit-panel,.preview-panel { overflow:visible; border-right:0; }
 .studio-page-intro { padding-inline:var(--space-16); }
 .panel-scroll { padding:0 var(--space-16) var(--space-24); overflow:visible; }
 .btn,.field input,.field select,.item-field input,.item-field select,.item-type { min-height:var(--control-height-touch); }
 input,select,textarea { font-size:16px !important; }
 .preview-panel { min-height:700px; } .preview-stage { flex:auto; min-height:500px; padding:var(--space-8) var(--space-16) var(--space-32); }
 .preview-footer { padding:var(--space-16); flex-wrap:wrap; }
 .sync-pill { max-width:220px; }
}
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { transition:none !important; scroll-behavior:auto !important; } }
.brand-text { font-size:18px; font-weight:700; letter-spacing:-.025em; white-space:nowrap; }
/* 체험판 안내 띠와 도입 문의 창 */
.demo-banner { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:4px var(--space-16); min-height:40px; padding:var(--space-8) clamp(14px, 2vw, 24px); background:var(--charcoal); color:#fff; font-size:13px; line-height:1.5; }
.demo-banner strong { display:inline-block; margin-right:var(--space-8); padding:1px var(--space-8); border-radius:var(--radius-xs); background:var(--yellow); color:var(--on-yellow); font-size:12px; }
.demo-banner-link { margin-inline-start:auto; color:inherit; white-space:nowrap; text-decoration:underline; text-underline-offset:3px; }
body.demo .workspace { height:calc(100dvh - 120px); }
.inquiry-dialog { width:min(440px,calc(100vw - 32px)); border:0; border-radius:var(--radius-2xl,16px); padding:var(--space-24); box-shadow:var(--shadow-floating); color:var(--ink); }
.inquiry-dialog::backdrop { background:rgba(9,11,14,.45); }
.inquiry-dialog h2 { margin:var(--space-8) 0; font-size:22px; line-height:1.4; letter-spacing:-.03em; }
.inquiry-text { margin:0 0 var(--space-16); color:var(--ink-muted); font-size:14px; line-height:1.6; }
.inquiry-list { margin:0 0 var(--space-24); padding:var(--space-16); list-style:none; background:var(--surface-subtle); border-radius:var(--radius-md); font-size:14px; line-height:1.8; }
.inquiry-list li::before { content:'✓'; margin-right:var(--space-8); font-weight:700; }
.inquiry-actions { display:flex; justify-content:flex-end; gap:var(--space-8); }
.inquiry-actions a { text-decoration:none; }
.inquiry-actions [hidden] { display:none; }
@media (max-width:768px) { body.demo .workspace { height:auto; } .inquiry-actions { flex-direction:column-reverse; } .inquiry-actions .btn { width:100%; } }

/* 견적서 작성 화면의 "내 회사" 카드 */
.brand-card { padding:var(--space-24) 0; border-bottom:1px solid var(--line); }
.brand-card .section-head { margin-bottom:var(--space-12); }
.brand-card-hint { margin:0 0 var(--space-12); font-size:14px; font-weight:600; color:var(--ink); }
.brand-card.attention .brand-card-body { border-color:var(--yellow); box-shadow:0 0 0 3px var(--yellow-soft); }
.brand-card-body { display:flex; align-items:center; gap:var(--space-12); padding:var(--space-12); border:1px solid var(--line); border-radius:var(--radius-md); }
.brand-card-logo { display:grid; place-items:center; flex:0 0 88px; height:48px; padding:0; border:1px solid var(--line); border-radius:var(--radius-sm); color:var(--ink); background:var(--surface-subtle); overflow:hidden; }
.brand-card-logo:hover:not(:disabled) { background:var(--neutral-soft); }
.brand-card-logo img { max-width:76px; max-height:36px; object-fit:contain; }
.brand-card-logo.empty { font-size:12px; color:var(--ink-subtle); }
.brand-card-info { display:flex; flex-direction:column; min-width:0; flex:1; }
.brand-card-info strong { font-size:16px; line-height:1.4; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.brand-card-info small { font-size:12px; color:var(--ink-muted); }
.brand-card-swatch { flex:0 0 34px; height:34px; padding:0; border-radius:var(--radius-pill); border:1px solid var(--line-strong); }
.brand-card-swatch:hover:not(:disabled) { box-shadow:0 0 0 3px var(--surface-subtle); }
.swatches { display:flex; flex-wrap:wrap; gap:var(--space-8); }
.swatch { width:34px; height:34px; border-radius:var(--radius-sm); border:1px solid var(--line-strong); padding:0; }
.swatch[aria-pressed=true] { outline:2px solid var(--ink); outline-offset:2px; }
.brand-color-head { display:flex; align-items:center; justify-content:space-between; gap:var(--space-8); margin-bottom:var(--space-12); }
.brand-color-head h2 { margin:0; }
@media (pointer:coarse) { .brand-card-swatch { flex-basis:44px; height:44px; } }
.brand-card-btn { width:100%; margin-top:var(--space-12); text-decoration:none; }
.brand-card-links { display:flex; flex-wrap:wrap; gap:var(--space-4) var(--space-16); margin-top:var(--space-12); font-size:13px; }
.brand-card-links a { color:var(--blue); text-decoration:none; }
.brand-card-links a:hover { text-decoration:underline; text-underline-offset:3px; }
.preview-toolbar .btn { min-height:36px; padding:var(--space-4) var(--space-8); font-size:13px; gap:var(--space-4); }
.preview-toolbar .btn-icon { font-size:14px; }
#download-pdf:not(:disabled) { background:var(--ink); border-color:var(--ink); color:#fff; }
#download-pdf:hover:not(:disabled) { background:var(--charcoal); border-color:var(--charcoal); }
@media (max-width:768px) {
 .preview-toolbar .btn { min-height:var(--control-height-touch); }
}

/* ---- 체험판 헤더와 왼쪽 메뉴 ---- */
.app-shell {
 --studio-header-height:60px;
 --studio-workspace:#f1f3f6;
 --studio-panel-radius:14px;
 --studio-panel-gap:clamp(12px, 1.6vw, 24px);
 --studio-nav-width:172px;
 --studio-nav-gap:var(--space-16);
 --studio-gutter:var(--space-16);
 --studio-main-start:calc(var(--studio-nav-width) + var(--studio-nav-gap) + var(--studio-gutter));
 display:grid;
 grid-template-columns:var(--studio-nav-width) minmax(0,1fr);
 gap:var(--studio-nav-gap);
 min-height:100dvh;
 padding-inline-start:var(--studio-gutter);
 background:var(--surface);
}
body.demo .app-shell { min-height:calc(100dvh - 40px); }
.app-main { min-width:0; background:var(--studio-workspace); }
.app-shell .top-brand { display:none; }
.app-shell .global-header {
 position:sticky;
 top:0;
 z-index:5;
 justify-content:space-between;
 min-height:var(--studio-header-height);
 gap:var(--space-8);
 padding:5px var(--space-24);
 background:var(--surface);
}
.studio-header-title { margin:0; color:var(--ink); font-size:clamp(18px, 2vw, 24px); font-weight:750; line-height:1.25; letter-spacing:-.035em; }
.global-header .header-tools { width:auto; margin-inline-start:auto; }
.global-header .header-tools a { text-decoration:none; }
.global-header .quote-header-tools { gap:var(--space-8); }
body.demo .quote-header-tools #sync-status { display:none; }
.quote-file-actions { display:flex; align-items:center; gap:var(--space-8); }
@media (max-width:440px) {
 .global-header .quote-header-tools { flex-basis:100%; }
 .quote-header-tools .sync-pill { flex:1; min-width:0; }
}

.studio-page { padding:var(--studio-panel-gap) var(--studio-panel-gap) var(--space-64); }
.studio-page .studio-page-intro { padding:0; margin:0 0 var(--space-16); }
.app-shell .workspace { height:calc(100dvh - var(--studio-header-height)); gap:var(--studio-panel-gap); padding:var(--studio-panel-gap); }
.app-shell .edit-panel,.app-shell .preview-panel { border:1px solid var(--line); border-radius:var(--studio-panel-radius); background:var(--surface); }
.app-shell .preview-stage { background:#e4e8ef; }
body.demo .app-shell .workspace { height:calc(100dvh - 40px - var(--studio-header-height)); }
.side-nav { position:sticky; top:0; min-width:0; align-self:start; max-height:100dvh; padding-block:var(--space-16); overflow-y:auto; }
body.demo .side-nav { max-height:calc(100dvh - 40px); }
.side-brand { display:flex; flex-direction:column; gap:2px; padding:4px var(--space-12) var(--space-16); }
.side-brand-name { font-size:14px; font-weight:750; letter-spacing:-.025em; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.side-brand small { font-size:12px; color:var(--ink-muted); }
.side-menu { display:grid; gap:4px; margin:0; padding:0; list-style:none; }
.side-group { margin:var(--space-8) var(--space-12) 0; font-size:12px; font-weight:500; color:var(--ink-muted); }
.side-link { position:relative; display:flex; align-items:center; gap:10px; min-height:44px; padding:var(--space-8) var(--space-12); border-radius:var(--radius-sm); color:var(--ink-muted); font-size:14px; font-weight:550; text-decoration:none; }
.side-link:hover,.side-link[aria-current=page] { background:var(--surface-subtle); color:var(--ink); }
.side-link[aria-current=page] { font-weight:750; }
.side-link[aria-current=page]::before { content:''; position:absolute; left:0; top:11px; bottom:11px; width:3px; border-radius:2px; background:var(--yellow); }
.side-link svg { flex:none; width:17px; height:17px; }
@media (max-width:900px) and (min-width:769px) {
 .app-shell { --studio-nav-width:48px; --studio-nav-gap:var(--space-12); --studio-gutter:var(--space-12); }
 .side-brand,.side-group,.side-link span { display:none; }
 .side-link { justify-content:center; padding-inline:var(--space-8); }
}
@media (max-width:768px) {
 .app-shell { --studio-main-start:0px; display:block; padding:0; }
 .side-nav,body.demo .side-nav { position:static; max-height:none; padding:var(--space-8) var(--space-16); }
 .side-brand,.side-group,.side-link svg { display:none; }
 .side-menu { grid-template-columns:repeat(3,minmax(0,1fr)); }
 .side-link { justify-content:center; padding-inline:4px; font-size:13px; white-space:nowrap; }
 .app-shell .global-header { padding-inline:var(--space-16); }
 .global-header .header-tools { gap:var(--space-8); }
 .app-shell .workspace,body.demo .app-shell .workspace { height:auto; }
}

/* 도입 문의 폼 팝업 */
.demo-banner-link { font-family:inherit; font-size:inherit; cursor:pointer; border:0; background:transparent; padding:0; }
.inquiry-dialog { width:min(520px,calc(100vw - 32px)); max-height:calc(100dvh - 32px); overflow-y:auto; container-type:inline-size; }
.inq-grid { display:grid; grid-template-columns:1fr 1fr; gap:var(--space-12); margin-bottom:var(--space-16); }
.inq-grid .inq-wide { grid-column:1/-1; }
.inq-grid .field :is(input,textarea) { font-size:16px; min-height:var(--control-height-touch); }
.inq-hp { position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }
.inq-check { display:flex; gap:var(--space-8); align-items:flex-start; margin:var(--space-8) 0; font-size:13px; line-height:1.6; }
.inq-check input { margin-top:4px; accent-color:var(--ink); }
.inq-details { margin:0 0 var(--space-8) var(--space-24); font-size:12px; color:var(--ink-muted); }
.inq-details summary { cursor:pointer; }
.inq-details table { width:100%; border-collapse:collapse; margin:var(--space-8) 0; }
.inq-details th,.inq-details td { text-align:left; vertical-align:top; padding-block:var(--space-4); }
.inq-details th { width:88px; padding-right:var(--space-8); font-weight:600; color:var(--ink); word-break:keep-all; }
.inquiry-entry > #inquiry-status { margin:var(--space-24); }
.inquiry-entry--embedded .inquiry-dialog { width:100%; max-width:none; max-height:100dvh; margin:0; border:0; border-radius:0; box-shadow:none; }
.inquiry-entry--embedded .inquiry-dialog::backdrop { background:transparent; }
.inq-error { margin:var(--space-8) 0 0; padding:var(--space-8) var(--space-12); border-radius:var(--radius-sm); background:var(--danger-soft); color:var(--danger); font-size:13px; white-space:pre-line; }
.inq-form .inquiry-actions { margin-top:var(--space-16); flex-direction:row; }
.inq-form .inquiry-actions .btn { width:auto; min-height:var(--control-height-touch); }
@container (max-width:420px) {
 .inq-grid { grid-template-columns:1fr; }
 .inq-form .inquiry-actions { flex-direction:column-reverse; }
 .inq-form .inquiry-actions .btn { width:100%; }
}

.side-nav:has(.side-utilities) { display:flex; flex-direction:column; min-height:100dvh; }
.side-utilities { margin-top:auto; padding:20px 8px 6px; }
.studio-manage-link { display:block; width:fit-content; margin-top:8px; padding:4px 6px; border-radius:var(--radius-sm); font-size:13px; color:var(--ink-muted); text-decoration:none; }
.studio-manage-link:hover, .studio-manage-link[aria-current="page"] { color:var(--ink); background:var(--surface-subtle); }
.studio-install { margin:0; padding:4px; border-radius:var(--radius-sm); background:#fff6d6; color:#5d4500; }
.studio-install-button { display:flex; align-items:center; gap:8px; width:100%; min-height:42px; padding:8px; border:0; border-radius:var(--radius-sm); background:none; text-align:left; font:inherit; font-size:13px; font-weight:700; color:inherit; cursor:pointer; }
.studio-install-button svg { flex:none; }
.studio-install-button:hover { background:#ffedb3; }
.studio-install p { margin:0; padding:4px 8px 10px; font-size:12px; line-height:1.6; }
.settings-main.subscription-main { max-width:880px; }
.subscription-card h2 { margin:0 0 10px; font-size:20px; }
.subscription-card p { line-height:1.55; }
.subscription-information { display:grid; gap:12px; margin:20px 0; padding:16px 0; border-block:1px solid var(--border-subtle,#e3e5eb); }
.subscription-information div { display:grid; grid-template-columns:minmax(100px,1fr) 2fr; gap:12px; }
.subscription-information dt { color:var(--ink-muted); }
.subscription-information dd { margin:0; font-weight:650; }
.subscription-information[hidden], .subscription-information div[hidden] { display:none; }
@media (max-width:1024px) { .side-utilities { padding-inline:3px; } .studio-manage-link { padding-inline:3px; font-size:11px; } .studio-install-button { justify-content:center; } .studio-install-button span { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); } .studio-install p { min-width:0; overflow-wrap:anywhere; } }
@media (max-width:760px) { .side-nav:has(.side-utilities) { min-height:0; } .side-utilities { padding:4px 0; } .studio-install { display:none; } .subscription-card { padding:18px; } }
