/* Shared extension of the approved local escrow workspace. */
:root{--portal-section-space:20px;--portal-surface-inset:20px}
.portal-page{height:auto;min-height:100dvh;display:block;background:var(--bg);color:var(--ink);font-size:15px;line-height:1.6}
.portal-header,.portal-wrap,.portal-footer{width:calc(100% - 80px);max-width:1280px;margin-inline:auto}
.portal-header{height:60px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:24px}
.portal-header .brand{flex:none}
.portal-header nav{display:flex;align-items:center;gap:20px;font-size:13px}.portal-header nav>a{display:flex;align-items:center;gap:8px;min-height:44px;color:var(--muted);white-space:nowrap}.portal-header nav>a:hover,.portal-header nav>a[aria-current=page]{color:var(--iuu-brand-text,var(--brand))}.portal-header nav>a[aria-current=page]{font-weight:600}.account-mark{display:grid;place-items:center;width:28px;height:28px;background:#2a241e;color:var(--iuu-brand-text,var(--brand));border-radius:50%;font-size:12px}
.page-heading{display:flex;justify-content:space-between;align-items:center;gap:24px;margin:var(--portal-section-space) 0}.page-title{font-size:28px;line-height:1.35;letter-spacing:-.025em;font-weight:600}.page-description{font-size:13px;line-height:1.8;color:var(--muted);margin-top:8px;max-width:70ch}.heading-actions{display:flex;align-items:center;gap:16px}.subtle,.local-note{color:var(--muted);font-size:12px;line-height:1.8}.local-note{margin-top:12px}.portal-footer{display:flex;justify-content:space-between;gap:16px;font-size:11px;color:var(--muted);padding-block:16px}.portal-footer a{text-decoration:underline;text-underline-offset:3px}
.portal-layout{display:grid;grid-template-columns:196px minmax(0,1fr);gap:36px;align-items:start}.side-nav{position:sticky;top:20px;display:grid;gap:4px;padding-right:20px;border-right:1px solid var(--line)}.side-nav a{display:flex;align-items:center;min-height:44px;padding:9px 12px;font-size:13px;border-radius:8px;color:var(--muted)}.side-nav a:hover{background:#2a241e;color:var(--iuu-brand-text,var(--brand))}.side-nav a[aria-current=page]{background:#2a241e;color:var(--iuu-brand-text,var(--brand));font-weight:600}.side-nav .nav-group{font-size:11px;color:var(--muted);padding:20px 12px 6px}.side-nav .nav-group:first-child{padding-top:0}
.surface{background:#1b1713;border:1px solid var(--line);border-radius:12px;padding:var(--portal-surface-inset);min-width:0}.surface+.surface{margin-top:16px}.section-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px}.section-head h2{font-size:18px;line-height:1.5;font-weight:600;letter-spacing:-.015em}.section-head h3{font-size:16px;font-weight:600}.section-head p{color:var(--muted);font-size:12px;margin-top:4px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 16px;background:#1b1713;border:1px solid #4d4238;border-radius:8px;color:var(--ink);font-size:13px;line-height:1.5;text-align:center;text-decoration:none}.btn:hover{border-color:#5d5146;background:#221d18}.btn-primary{background:var(--brand);border-color:var(--brand);color:#1a120b}.btn-primary:hover{background:#a86a36;color:#1a120b}.btn:disabled{background:#221d18;color:#aba095;border-color:var(--line);opacity:1;cursor:not-allowed}.text-action{font-size:13px;color:var(--iuu-brand-text,var(--brand));text-decoration:underline;text-underline-offset:4px;min-height:40px}.button-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.status{display:inline-flex;align-items:center;gap:6px;font-size:11px;line-height:1.5;color:var(--muted);white-space:nowrap}.status--pending{color:#d8cec3}.status--complete{color:var(--iuu-brand-text,var(--brand))}.status--muted{color:var(--muted)}
.field{min-width:0;display:grid;align-content:start;gap:8px}.field>label,.field>span{font-size:13px;color:#d8cec3}.field input,.field textarea,.field select,.portal-input{width:100%;min-width:0;min-height:44px;padding:10px 12px;border:1px solid #4d4238;border-radius:8px;background:#1b1713;color:var(--ink);font-size:15px;line-height:1.6}.field textarea{resize:vertical;min-height:104px}.field small{font-size:12px;color:var(--muted);line-height:1.7}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.form-grid .full{grid-column:1/-1}.form-actions{display:flex;align-items:center;gap:16px;margin-top:16px}.form-error{color:#e59a86;font-size:13px;margin-top:8px}.inline-feedback{color:var(--iuu-brand-text,var(--brand));font-size:13px;margin-top:12px}.field [aria-invalid=true]{border-color:#7a4336}.portal-page input:focus-visible,.portal-page textarea:focus-visible,.portal-page select:focus-visible,.portal-page button:focus-visible,.portal-page a:focus-visible{outline:2px solid #a86a36;outline-offset:3px}
.table-wrap{overflow:auto;min-width:0}.data-table{width:100%;border-collapse:collapse;font-size:13px;text-align:left}.data-table th{color:var(--muted);font-size:12px;font-weight:400;padding:12px 16px;border-bottom:1px solid var(--line);white-space:nowrap}.data-table td{padding:16px;border-bottom:1px solid var(--line);vertical-align:top;line-height:1.7}.data-table tr:last-child td{border-bottom:0}.data-table td:first-child,.data-table th:first-child{padding-left:0}.data-table td:last-child,.data-table th:last-child{padding-right:0}.data-table td small{display:block;font-size:11px;color:var(--muted);margin-top:4px}.number{font-variant-numeric:tabular-nums}.empty-state{padding:24px 16px;text-align:center;color:var(--muted);font-size:13px}.empty-state h2,.empty-state h3{font-size:18px;color:var(--ink);margin-bottom:8px}.empty-state .btn{margin-top:16px}.segmented{display:flex;gap:4px;flex-wrap:wrap}.segmented button{font-size:12px;min-height:36px;padding:7px 12px;border-radius:8px;color:var(--muted)}.segmented button[aria-pressed=true]{background:#2a241e;color:var(--iuu-brand-text,var(--brand));font-weight:600}.portal-toast{position:fixed;bottom:24px;left:50%;transform:translate(-50%,12px);max-width:calc(100% - 32px);padding:12px 18px;border-radius:8px;background:#a86a36;color:#1a120b;font-size:13px;opacity:0;pointer-events:none;z-index:30;transition:opacity 160ms,transform 160ms}.portal-toast.is-visible{opacity:1;transform:translate(-50%,0)}
@media(max-width:1100px){.portal-layout{grid-template-columns:168px minmax(0,1fr);gap:24px}.portal-header>.portal-primary-nav{gap:12px}}
@media(max-width:800px){.portal-header,.portal-wrap,.portal-footer{width:calc(100% - 40px)}.portal-header{gap:16px}.portal-header nav{gap:16px}.portal-header>nav>.nav-create{display:none}.portal-layout{grid-template-columns:minmax(0,1fr);gap:20px}.side-nav{position:static;display:flex;flex-wrap:wrap;gap:4px;border-right:0;border-bottom:1px solid var(--line);padding:0 0 12px}.side-nav .nav-group{display:none}.side-nav a{min-height:40px;padding:8px 12px}.page-heading{margin-block:var(--portal-section-space)}.page-title{font-size:25px}.surface{padding:var(--portal-surface-inset)}}
@media(max-width:600px){:root{--portal-section-space:16px;--portal-surface-inset:16px}.portal-header,.portal-wrap,.portal-footer{width:calc(100% - 32px)}.portal-header{height:56px}.portal-header .brand{font-size:17px;gap:6px}.portal-header .brand svg{width:22px;height:22px}.portal-header nav{gap:14px;font-size:12px}.portal-header nav>a{font-size:12px}.portal-header>.portal-primary-nav>a[href="account.html#orders"]{display:none}.portal-header .nav-account>span:last-child{display:none}.page-heading{align-items:flex-start;gap:12px;margin-block:var(--portal-section-space)}.page-title{font-size:24px}.page-description{font-size:12px;margin-top:6px}.heading-actions{gap:8px}.heading-actions .btn{padding-inline:12px}.surface{padding:var(--portal-surface-inset)}.surface+.surface{margin-top:16px}.section-head{margin-bottom:12px}.section-head h2{font-size:17px}.form-grid{grid-template-columns:minmax(0,1fr);gap:16px}.field input,.field textarea,.field select,.portal-input{font-size:16px}.data-table td{padding-block:14px}.form-actions{margin-top:16px;flex-wrap:wrap}.portal-footer{padding-block:16px;flex-wrap:wrap;gap:4px}.side-nav{flex-wrap:nowrap;overflow:auto;scrollbar-width:thin;gap:4px}.side-nav a{white-space:nowrap;flex:none}.button-row{gap:8px}}
@media(prefers-reduced-motion:reduce){.portal-page *{transition:none!important;scroll-behavior:auto!important}}

.portal-page .sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.onboard-consent{display:flex;align-items:flex-start;gap:10px;margin-top:20px;font-size:13px;line-height:1.8}.onboard-consent input{width:18px;height:18px;margin-top:3px;flex:none;accent-color:var(--iuu-brand-text,var(--brand))}

.portal-mobile-menu{display:none;position:relative}.portal-mobile-menu summary{list-style:none;min-width:44px;min-height:44px;align-items:center;justify-content:center;gap:5px;cursor:pointer;font-size:13px;color:var(--iuu-brand-text,var(--brand))}.portal-mobile-menu summary::-webkit-details-marker{display:none}.portal-mobile-menu summary svg{width:16px;height:16px;stroke:currentColor;stroke-width:1.5;fill:none}.portal-mobile-menu[open]>summary svg{transform:rotate(180deg)}.portal-header .portal-mobile-menu>nav{position:absolute;right:0;top:calc(100% + 8px);z-index:40;width:320px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 144px);overflow-y:auto;overscroll-behavior:contain;padding:8px;background:#1b1713;border:1px solid var(--line);border-radius:8px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0}.portal-header .portal-mobile-menu nav>a{padding:10px;min-height:44px;white-space:normal;font-size:13px;border-radius:8px}.portal-mobile-menu nav>a:hover,.portal-mobile-menu nav>a[aria-current=page]{background:var(--soft);color:var(--iuu-brand-text,var(--brand))}.portal-mobile-menu summary:focus-visible{outline:2px solid var(--brand);outline-offset:3px}
.order-preview #portal-header{flex:none}.order-preview .context-return{flex:none;align-self:flex-start}.order-help{font-size:12px;color:var(--iuu-brand-text,var(--brand));white-space:nowrap;min-height:40px;display:inline-flex;align-items:center}.order-preview .document-meta{margin-left:auto}.create-preview .create-main>.context-return{margin-left:0;margin-top:8px}.create-preview .create-main>.context-return+.create-heading{padding-top:8px}
@media(max-width:1000px){.portal-header>.portal-primary-nav{display:none}.portal-mobile-menu{display:block;margin-left:auto}.portal-mobile-menu summary{display:flex}.order-preview .document-head{gap:12px}.order-preview .order-help{font-size:12px}}
@media(max-width:600px){.portal-header{gap:14px}.portal-header>nav>a[href="account.html#orders"]{font-size:12px}.portal-mobile-menu summary{font-size:12px}.order-preview .document-head{flex-wrap:wrap}.order-preview .document-meta{margin-left:auto}.order-preview .order-help{min-height:28px}.create-preview .create-main>.context-return{margin-left:0}}
.context-return{display:inline-flex;align-items:center;gap:7px;min-height:40px;font-size:12px;color:var(--iuu-brand-text,var(--brand));margin-top:12px}.context-return svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:1.5}.context-return+.page-heading{margin-top:8px}.create-heading-row{display:flex;align-items:center;gap:24px}.create-heading-row>a{font-size:12px;color:var(--iuu-brand-text,var(--brand));white-space:nowrap;min-height:40px;display:inline-flex;align-items:center}

.order-preview .document-meta .order-help{min-height:24px;line-height:1.4}
@media(max-width:900px){.order-preview .context-return{margin-left:20px;margin-top:4px}.order-preview .document-meta{gap:2px}.order-preview .document-head{gap:12px}}
@media(max-width:360px){.order-preview .document-meta{flex-wrap:wrap;gap:4px 12px;align-items:center}.order-preview .document-meta .order-help{margin-left:auto}}

/* Keep the approved homepage footer rhythm below its formal advertising section. */
.home-page .portal-footer{padding-block:24px}
@media(max-width:600px){.home-page .portal-footer{padding-block:20px}}

/* Formal content navigation and account actions have separate visual groups. */
.portal-header>.portal-primary-nav{margin-left:auto;gap:20px}.portal-header>.portal-account-nav{gap:16px}.portal-account-nav>.nav-create{color:var(--iuu-brand-text,var(--brand));font-weight:600}.portal-account-menu{position:relative}.portal-account-menu>summary{list-style:none;display:flex;align-items:center;gap:7px;min-height:44px;color:var(--muted);cursor:pointer;white-space:nowrap}.portal-account-menu>summary::-webkit-details-marker{display:none}.portal-account-menu>summary[aria-current=page]{color:var(--iuu-brand-text,var(--brand));font-weight:600}.portal-account-menu .account-symbol{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6}.account-chevron{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.5}.portal-account-menu[open] .account-chevron{transform:rotate(180deg)}.portal-header .portal-account-menu>nav{display:grid;position:absolute;right:0;top:calc(100% + 5px);z-index:45;min-width:168px;padding:6px;background:#1b1713;border:1px solid var(--line);border-radius:12px;gap:0}.portal-account-menu nav>a{padding:8px 12px;min-height:44px}.portal-account-menu nav>a:hover{background:var(--soft)}.portal-account-menu summary:focus-visible{outline:2px solid var(--brand);outline-offset:3px}
.create-preview .create-terms-confirmation{display:flex;align-items:flex-start;gap:10px;min-height:44px;line-height:1.65}.create-preview .create-terms-confirmation input[type=checkbox]{width:20px;height:20px;min-height:20px;padding:0;margin:3px 0 0;flex:0 0 20px}
@media(max-width:1119px){.portal-header>.portal-primary-nav,.portal-header>.portal-account-nav{display:none}.portal-mobile-menu{display:block;margin-left:auto}.portal-mobile-menu summary{display:flex}}

/* Keep account actions inside the compact header at intermediate widths. */
.portal-mobile-account-menu{grid-column:1/-1;border-block:1px solid var(--line)}.portal-mobile-menu .portal-mobile-account-menu>summary{display:flex;justify-content:space-between;padding:10px;min-height:44px;font-size:13px;color:var(--muted)}.portal-mobile-account-menu>summary[aria-current=page]{color:var(--iuu-brand-text,var(--brand));font-weight:600}.portal-mobile-account-menu[open]>summary .account-chevron{transform:rotate(180deg)}.portal-header .portal-mobile-account-menu>nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;padding:0 0 6px}.portal-mobile-account-menu>nav>a[aria-current=page]{background:var(--soft);font-weight:600}
