@font-face{font-family:Sora;src:url("../fonts/Sora-Regular.ttf") format("truetype");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:Sora;src:url("../fonts/Sora-Medium.ttf") format("truetype");font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:Sora;src:url("../fonts/Sora-SemiBold.ttf") format("truetype");font-weight:600;font-style:normal;font-display:swap}
@font-face{font-family:Sora;src:url("../fonts/Sora-Bold.ttf") format("truetype");font-weight:700;font-style:normal;font-display:swap}
:root{--font:Sora,"Segoe UI",Arial,sans-serif;--accent:#F47820;--accent-dark:#A94306;--primary-readable:#B74B09;--bg:#f5f6f8;--ink:#182334;--muted:#596879;--line:#e2e8ef}
body,button,input,select,textarea{font-family:var(--font)}
body{background:radial-gradient(ellipse at 80% 0,#f4782008,transparent 48%),var(--bg)}
.surface{background:#ffffffed;box-shadow:0 8px 28px #17223105;border-color:var(--line)}
.button{white-space:nowrap;line-height:1.25;min-height:48px;gap:10px;flex-shrink:0;max-inline-size:100%;font-weight:600;letter-spacing:-.015em}
.button>*:not(svg):not(.spinner){min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.button .spinner,.button svg{flex-shrink:0}
.button-primary{background:var(--primary-readable);color:#fff;border:1px solid var(--accent);box-shadow:0 5px 12px #b74b0915}
.button-primary:hover{background:#A94306;color:#fff}
.button-primary:active{transform:translateY(0)}
.button-primary:focus-visible{outline:3px solid #182334;outline-offset:4px}
.button-ghost{background:#edf1f5;color:#243446}
.button-ghost:hover{background:#e3e9ef}
.button-small{min-height:44px}
.button:disabled{opacity:.6;transform:none}
input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=file]),select{min-height:52px;height:52px;border:2px solid #cbd5df;box-sizing:border-box;border-radius:12px;padding:12px 15px;font-size:13px;line-height:1.5;background:#fff;color:var(--ink);width:100%;min-width:0}
textarea{border:2px solid #cbd5df;box-sizing:border-box;border-radius:12px;padding:13px 15px;font-size:13px;line-height:1.7;max-width:100%;min-width:0;background:#fff;color:var(--ink)}
input:not([type=checkbox]):not([type=radio]):not([type=hidden]):focus,select:focus,textarea:focus{outline:none;border-color:#B74B09;box-shadow:0 0 0 4px #f478201c}
input[aria-invalid=true],select[aria-invalid=true],textarea[aria-invalid=true]{border-color:#b42318}
.field,.form-field{min-width:0}
.field>label,.form-field>label:not(.setting-check):not(.setting-switch){display:grid;align-content:end;font-size:12px;font-weight:600;line-height:1.5;min-height:3em;margin-bottom:3px}
.field-hint,.secret-status{font-size:11px;line-height:1.65;color:var(--muted);margin-top:8px;overflow-wrap:anywhere}
.field-error,[data-error-for]:not([hidden]){display:block;font-size:11px;line-height:1.65;color:#a62b24;margin-top:8px;overflow-wrap:anywhere}
.password-wrap{position:relative}
.password-wrap input:not([type=checkbox]){padding-right:56px}
.password-toggle{top:4px;right:4px;height:44px}
input[type=checkbox]{appearance:none;-webkit-appearance:none;position:relative;display:inline-block;vertical-align:middle;inline-size:44px!important;min-inline-size:44px;block-size:26px!important;min-block-size:26px;padding:0!important;border:1px solid #7b8795;border-radius:999px;background:#b9c3cd;margin:0;flex:0 0 44px;cursor:pointer;transition:background .18s,border-color .18s}
input[type=checkbox]::before{content:"";position:absolute;top:2px;left:2px;width:20px;height:20px;box-sizing:border-box;border-radius:50%;background:#fff;border:1px solid #667585;box-shadow:0 1px 3px #18233422;transition:transform .18s}
input[type=checkbox]:checked{background:var(--accent);border-color:#A94306}
input[type=checkbox]:checked::before{transform:translateX(18px);border-color:#A94306}
input[type=checkbox]:focus-visible{outline:3px solid #182334;outline-offset:4px;box-shadow:none}
input[type=checkbox]:disabled{opacity:.55;cursor:not-allowed}
.setting-switch,.setting-check,.method-option,.content-path,.product-category-choices label{align-items:center;gap:12px}
.product-category-choices label{min-height:48px}
.setting-check,.setting-switch{display:flex}
.method-option,.content-path{min-width:0}
.method-option span,.content-path span{min-width:0;overflow-wrap:anywhere}
.product-form-grid>section:not(.product-seo)>h2{min-height:2.6em;font-size:19px;line-height:1.3}
.dialog-actions,.category-actions,.row-actions{flex-wrap:wrap;align-items:center;gap:10px}
.brand-light .brand-wordmark{width:170px;height:auto;max-width:100%}
@media(max-width:850px){.product-form-grid>section:not(.product-seo)>h2{min-height:0}.product-form-grid .field{min-height:0!important}}
@media(max-width:560px){.button{padding:12px 16px;font-size:12px}.dialog-actions>.button{flex:1 1 auto}.page-heading{flex-wrap:wrap;gap:14px}.tenant-filters>div:first-child{min-width:0;width:100%;flex-basis:100%}.category-actions{max-width:100%}.product-card h2{font-size:19px}.button-small{padding:10px 12px;font-size:11px}}
@media(prefers-reduced-motion:reduce){input[type=checkbox],input[type=checkbox]::before{transition:none}}

.auth-story{background-color:#141c28;background-image:linear-gradient(110deg,rgba(14,21,32,.88) 0%,rgba(14,21,32,.72) 52%,rgba(14,21,32,.50) 100%),url('../img/portal-login-estudio-v1.webp');background-size:cover;background-position:center;background-repeat:no-repeat}
.auth-story:after{display:none}.auth-story .story-art{display:none}.auth-story .story-copy p{color:#e0e5ec}.auth-story .story-footer{color:#d2dae4}
@media(max-width:760px){.auth-story{background-position:66% 45%;background-image:linear-gradient(rgba(14,21,32,.80),rgba(14,21,32,.80)),url('../img/portal-login-estudio-v1.webp')}}

.auth-heading h2,.page-heading h1{font-weight:700}
.auth-page .form-field>label:not(.setting-check):not(.setting-switch){min-height:0}

/* Required and inline field feedback: maintain the 3px label gap. */
.required-marker{color:#B74B09;font-weight:700;white-space:nowrap}
.field-error:not([hidden]){display:block;color:#b42318;font-size:.75rem;line-height:1.5;margin-top:4px}
[aria-invalid="true"]:not([type="hidden"]){border-color:#b42318!important}

/* Account security uses the shared portal inputs and inline feedback. */
.account-nav{margin:12px 0}
.account-content{max-width:1220px}
.account-grid{display:grid;grid-template-columns:minmax(240px,.8fr) minmax(0,1.4fr);gap:24px;align-items:start}
.account-summary,.account-security{padding:30px;min-width:0}
.account-avatar{width:60px;height:60px;font-size:22px;margin-bottom:22px}
.account-summary h2{margin:12px 0 22px;overflow-wrap:anywhere}
.account-summary dl{margin:0 0 24px}
.account-summary dt{font-size:11px;color:var(--muted);margin-top:18px}
.account-summary dd{margin:4px 0 0;font-weight:600;overflow-wrap:anywhere}
.account-security-note{margin:16px 0 22px;padding:14px 16px;border:1px solid #f4782033;background:#f4782008;border-radius:12px;font-size:12px;line-height:1.7}
.account-security .form-field>label{min-height:0}
.account-security .auth-submit{margin-top:18px}
@media(max-width:800px){.account-grid{grid-template-columns:minmax(0,1fr)}.account-summary,.account-security{padding:22px}.account-content .page-heading{align-items:flex-start;flex-direction:column;gap:18px}}

.account-summary h2,.account-security h2{font-weight:700}


/* Fixed sidebar header/footer; only navigation scrolls. */
.admin-page .sidebar{height:100vh;height:100dvh;overflow:hidden}
.admin-page .sidebar>*{flex-shrink:0}
.admin-page .sidebar .sidebar-scroll{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;margin-right:-8px;padding-right:8px;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.12) transparent}
.admin-page .sidebar-scroll::-webkit-scrollbar{width:3px}
.admin-page .sidebar-scroll::-webkit-scrollbar-track{background:transparent}
.admin-page .sidebar-scroll::-webkit-scrollbar-thumb{background:rgba(255,255,255,.12);border-radius:10px}
.admin-page .sidebar-scroll:hover{scrollbar-color:rgba(255,255,255,.22) transparent}
.admin-page .sidebar-scroll:hover::-webkit-scrollbar-thumb{background:rgba(255,255,255,.22)}
.admin-page .sidebar-scroll::-webkit-scrollbar-button{display:none;width:0;height:0}
.admin-page .sidebar .nav-item{min-width:0;white-space:nowrap}
.admin-page .sidebar .nav-item>span:not(.nav-mark){white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.admin-page .sidebar .nav-item svg{flex-shrink:0}
.admin-page .sidebar-user{margin-top:14px;padding-top:14px;border-top:1px solid #ffffff12}
.admin-page.sidebar-collapsed .sidebar-scroll nav{margin-top:12px}
@media(max-height:600px){.admin-page .sidebar{padding-top:16px}.admin-page .workspace-card{margin-top:18px}.admin-page .sidebar .nav-label{margin-top:18px}}


/* Quiet workspace heading and centered sidebar control. */
.admin-page .workspace-card{background:transparent;border-color:transparent;padding:10px 11px;margin-top:24px;gap:0}
.admin-page .workspace-card .workspace-icon,.admin-page .workspace-card small{display:none}
.admin-page .workspace-card strong{font-size:11px;font-weight:500;color:#a4aab7}
.workspace-store-link{display:inline-flex;align-items:center;gap:6px;margin-top:8px;padding:2px 0;font-size:12px;font-weight:600;color:#e7eaf0;text-decoration:none;white-space:nowrap}
.workspace-store-link:hover{color:#ffb17a}
.workspace-store-link:focus-visible{outline:2px solid #f47820;outline-offset:4px;border-radius:3px}
.admin-page .sidebar-collapse{display:inline-flex;align-items:center;justify-content:center;flex:0 0 40px;width:40px;height:40px;padding:0;line-height:1}
.admin-page .sidebar-collapse svg{display:block;width:20px;height:20px;flex-shrink:0}
.admin-page.sidebar-collapsed .sidebar-collapse svg{display:block}

.sidebar-user>.avatar{overflow:hidden}.sidebar-user>.avatar img{display:block;width:100%;height:100%;object-fit:cover;border-radius:inherit}

.admin-page .sidebar .sidebar-scroll{margin-right:-21px;padding-right:21px}
.admin-page.sidebar-collapsed .sidebar .sidebar-scroll{margin-right:-17px;padding-right:17px}
.sidebar .nav-item>i{display:inline-flex;align-items:center;justify-content:center;flex:0 0 20px;width:20px;height:20px;font-size:17px;line-height:1}
