/* Dena / commercial panel. */
.premium .commercial-adjustments{grid-column:1/-1;margin:8px 0 16px;border-top:1px solid #e0e5ee;padding-top:10px}
.premium .commercial-adjustments summary{cursor:pointer;color:#68778f;font-size:12px;font-weight:500;list-style:none;display:flex;align-items:center;gap:8px}
.premium .commercial-adjustments summary::before{content:'+';font-size:16px;color:#8290a7}
.premium .commercial-adjustments[open] summary::before{content:'−'}
.premium .commercial-adjustments label{margin-top:12px}
.premium{--ink:#17233c;--navy:#08184d;--green:#274ca1;--green-dark:#101f50;--lime:#a6c8ff;--mint:#edf2fc;--line:#e0e5ee;--muted:#737e93;--paper:#f6f7fa;--orange:#d83b43;--radius:14px;--sidebar:224px}
.premium body{background:var(--paper);color:var(--ink);font-family:"Segoe UI",Inter,system-ui,sans-serif;-webkit-font-smoothing:antialiased}
.premium button,.premium a,.premium input,.premium select,.premium textarea{transition:background .16s,border-color .16s,box-shadow .16s,transform .16s}
.premium button:focus-visible,.premium a:focus-visible,.premium summary:focus-visible{outline:3px solid #8bb5ff;outline-offset:3px}
.premium .topbar{position:fixed;inset:0 auto 0 0;width:var(--sidebar);height:100dvh;padding:24px 16px;display:flex;flex-direction:column;align-items:stretch;gap:0;background:var(--brand-sidebar,#091449);border:0;z-index:10;overflow-y:auto;color:white}
.premium .brand{position:relative;flex-shrink:0;width:192px;height:88px;overflow:hidden;border-radius:10px;margin:0 auto 32px;background:#07115d}
.premium .brand .dena-logo{position:absolute;width:260px;height:184px;max-width:none;left:50%;top:50%;transform:translate(-50%,-50%);object-fit:contain;border-radius:0}
.premium .brand>span{display:none}
.premium-nav-label{padding:0 14px;margin-bottom:14px;color:#8290b4;font-size:9px;font-weight:600;letter-spacing:.18em}
.premium .app-tabs{display:flex;flex-direction:column;align-items:stretch;gap:8px;padding:0;margin:0;background:none;border:0}
.premium .app-tabs button,.premium .app-tabs a{position:relative;display:flex;align-items:center;justify-content:flex-start;gap:13px;padding:14px 16px;border:1px solid transparent;border-radius:8px;background:transparent;color:#b8c3df;font-size:13px;font-weight:500;text-decoration:none;white-space:nowrap;cursor:pointer}
.premium .app-tabs svg{width:19px;height:19px;flex-shrink:0;opacity:.8}
.premium .app-tabs .active{color:white!important;background:#ffffff10!important;border-color:#ffffff12;box-shadow:none}
.premium .app-tabs .active:before{content:"";position:absolute;left:-1px;top:14px;bottom:14px;width:3px;background:var(--brand-accent,#e13c46);border-radius:2px}
.premium .app-tabs .active svg{color:#9fc4ff;opacity:1}
.premium .app-tabs button:hover,.premium .app-tabs a:hover{background:#ffffff09;color:white}
.premium .source-state{margin:38px 10px 14px;padding:18px 2px;border-top:1px solid #ffffff16;display:flex;flex-wrap:wrap;gap:9px;font-size:10px;color:#a0aecf;letter-spacing:0}
.premium .source-state strong{width:100%;border:0;padding:0 0 0 16px;color:#6f83b2;font-size:8px;line-height:1.8;letter-spacing:.08em}
.premium .pulse{width:5px;height:5px;background:#95add9;box-shadow:0 0 0 3px #ffffff09}
.premium .ghost{margin:0 10px;padding:10px 12px;font-size:11px;font-weight:500;border:1px solid #ffffff20;color:#afbcdb;background:transparent;border-radius:7px}
.premium .ghost:hover{background:#ffffff0b;border-color:#7799ce}
.premium-sidebar-footer{display:grid;gap:9px;margin-top:auto;padding:46px 12px 4px;color:#8d9abe}
.premium-signature{height:2px;width:24px;background:var(--brand-accent,#d13e48);margin-bottom:8px}
.premium-sidebar-footer strong{font-family:Georgia,serif;font-size:16px;line-height:1.5;font-weight:400;color:#bdc8e2}
.premium-sidebar-footer small{font-size:9px;letter-spacing:.04em}
.premium-context{height:72px;padding:0 40px;margin-left:var(--sidebar);display:flex;justify-content:space-between;align-items:center;gap:20px;border-bottom:1px solid var(--line);background:#fff}
.premium-context>div{display:flex;align-items:center;gap:13px;font-size:11px;color:#9099aa}
.premium-context i{font-style:normal;color:#ccd3df}.premium-context strong{font-weight:500;color:#314568}
.premium-context-label{font-size:9px;letter-spacing:.13em;color:#7d8ba3}
.premium main.app-view{width:auto;max-width:1680px;margin:0 0 0 var(--sidebar);padding:0 40px 56px}
.premium .hero{padding:42px 0 34px;align-items:center;gap:40px;min-height:240px}
.premium .eyebrow{display:block;color:#8792a6!important;font-size:9px;font-weight:650;letter-spacing:.17em}
.premium h1{font-family:Georgia,"Times New Roman",serif;font-size:clamp(34px,3.3vw,48px);line-height:1.13;letter-spacing:-.045em;color:#142343;font-weight:400;margin:14px 0 17px}
.premium .hero em{color:#3c5c98!important;font-weight:400}
.premium .hero p,.premium .sim-heading p{font-size:13px;line-height:1.75;color:#7a869b;max-width:550px}
.premium .inventory{position:relative;display:grid;min-width:205px;padding:20px 24px;border:1px solid #dfe5ef;border-radius:12px;background:#fff;box-shadow:0 6px 22px #162a4f03;overflow:hidden}
.premium .inventory:after{content:"";position:absolute;right:19px;top:21px;width:8px;height:8px;background:#edf2fc;border:1px solid #aec1e1;transform:rotate(45deg)}
.premium .inventory>span{font-size:8px;letter-spacing:.12em;color:#8793a9}
.premium .inventory strong{font-size:46px;color:#233c72;line-height:1.3;margin:3px 0}
.premium .inventory small{font-size:10px;color:#8590a5}
.premium .workspace{grid-template-columns:minmax(0,1.14fr) minmax(330px,.86fr);gap:26px}
.premium .config-card,.premium .result-card{border-radius:var(--radius);box-shadow:0 9px 28px #1b335405}
.premium .config-card{padding:28px 30px;border:1px solid var(--line);background:#fff}
.premium .section-title{align-items:center;gap:12px;margin-bottom:23px}
.premium .section-title>span{width:30px;height:30px;border-radius:8px;font-size:10px;background:#eff3fa;border:1px solid #e4eaf4;color:#6c83ac;font-weight:600}
.premium .section-title h2{font-size:15px;font-weight:600;letter-spacing:-.015em;color:#233756}
.premium .section-title p{font-size:11px;line-height:1.5;color:#97a0b1;margin-top:3px}
.premium .client-title{margin-top:28px;padding-top:27px;border-top-color:#edf0f5}
.premium label,.premium legend{text-transform:none;letter-spacing:0;font-size:11px;font-weight:600;color:#718098;gap:8px}
.premium input,.premium select,.premium textarea{height:45px;border:1px solid #dce3ee;border-radius:7px;background:#fcfdff;color:#253654;font:500 13px "Segoe UI",system-ui;padding:0 12px}
.premium textarea{height:auto;min-height:92px;padding:12px;line-height:1.6;resize:vertical}
.premium input::placeholder,.premium textarea::placeholder{color:#afb7c5;font-weight:400}
.premium input:hover,.premium select:hover{border-color:#bbcbe2}
.premium input:focus,.premium select:focus,.premium textarea:focus{outline:none;border-color:#6589c5;box-shadow:0 0 0 3px #edf3fd;background:white}
.premium input[readonly]{background:#f3f5f9;color:#748199}
.premium .config-card>label+label,.premium .config-card>.field-row+label{margin-top:16px}
.premium .plans{gap:8px}.premium .plans span{padding:13px 11px;min-height:108px;border-radius:8px;border-color:#e1e6ef}
.premium .plans i{font-size:8px;font-weight:700;letter-spacing:.09em;color:#8395b3}.premium .plans b{font-size:12px;color:#344c72;margin:9px 0 6px;font-weight:600}.premium .plans small{font-size:10px;line-height:1.5;color:#99a3b5}
.premium .plans input:checked+span{border-color:#547abd;background:#f2f6ff;box-shadow:inset 0 0 0 .5px #547abd}.premium .plans input:focus-visible+span{outline:3px solid #a1c2fc;outline-offset:2px}
.premium .result-card{padding:30px;background:linear-gradient(135deg,#112457,#091740);border:1px solid #102654;top:28px;overflow:hidden}
.premium .result-head>div>span,.premium .price>span{font-size:8px;letter-spacing:.15em;color:#899dc5}.premium .result-head h2{font-size:25px;line-height:1.3;font-weight:400;color:#e4ebff}
.premium .status{font-size:8px;font-weight:500;border:1px solid #ffffff10;border-radius:5px;background:#ffffff08;padding:7px 9px;color:#c4d2ee;white-space:nowrap}.premium .status i{width:4px;height:4px;background:#88a7d6}
.premium .price{padding:30px 0 26px;border-bottom-color:#ffffff12}.premium .price strong{font-size:clamp(30px,3vw,43px);letter-spacing:-.04em;font-variant-numeric:tabular-nums;font-weight:400;margin:9px 0}.premium .price small{font-size:10px;color:#8f9fbf;line-height:1.6}
.premium .payment-grid{gap:9px;margin:24px 0}.premium .payment-item{padding:16px 13px;border-radius:7px;background:#ffffff04;border:1px solid #ffffff0d}.premium .payment-item span{font-size:8px;letter-spacing:.09em;color:#8c9fbe;margin-bottom:9px}.premium .payment-item strong{font-size:16px;font-weight:500;font-variant-numeric:tabular-nums;color:#dce6ff}.premium .payment-item small{font-size:9px;color:#788eaf;margin-top:5px}
.premium .check{border-top-color:#ffffff12;padding:21px 0}.premium .check span{font-size:10px;color:#9daccc}.premium .check i{color:#8eb3ed}.premium .check strong{font-size:13px;font-weight:600;color:#d6e2fc}
.premium .primary{border-radius:8px;background:var(--brand-primary,#244a95)!important;color:white!important;font-weight:600;height:48px;font-size:12px;padding:0 18px;box-shadow:0 4px 10px #12285708}.premium .primary:hover{transform:translateY(-1px);box-shadow:0 7px 15px #10295615}.premium .primary:disabled{opacity:.45;transform:none;cursor:not-allowed;box-shadow:none}.premium .primary span{font-size:15px}
.premium .result-card .primary{background:var(--brand-accent,#c93b47)!important;color:#fff!important;margin-top:4px}.premium .footnote{font-size:9px;line-height:1.6;color:#7085aa;margin-top:15px}
.premium .evaluation{background:#ecf1fc;color:#36517d;font-size:11px}.premium .evaluation strong{color:#294f96}
.premium .sim-heading{padding:37px 0 28px;margin:0;gap:30px;align-items:center}.premium .sim-heading h1{font-size:38px;margin:12px 0}.premium .sim-heading p{margin:0}.premium .pdf-button{min-width:170px;width:auto;gap:22px;height:46px}
.premium .sim-layout{grid-template-columns:280px minmax(0,1fr);gap:24px;padding:0;margin:0;max-width:none;align-items:start}
.premium .sim-form{padding:24px 22px;position:sticky;top:24px}.premium .sim-form .field-row{grid-template-columns:1fr}.premium .sim-form .section-title h2{font-size:14px}.premium .sim-form .section-title>span{width:25px;height:25px;font-size:9px}.premium .sim-form .section-title{gap:9px}.premium .sim-form .section-title p{font-size:10px}.premium .sim-form .pdf-template-hint{padding:12px;border:1px solid #e5eaf3;background:#f6f8fd;border-radius:6px;color:#8a97ae;font-size:10px;line-height:1.7}
.premium #sheetPreview{background:#fff;padding:24px;border:1px solid var(--line);border-radius:12px;box-shadow:0 7px 22px #20385404;color:#314867;font-family:"Segoe UI",system-ui,sans-serif}
.premium #sheetPreview>header{height:75px;background:white;border-bottom:1px solid #e4eaf3;padding:0 0 19px;grid-template-columns:70px 1fr 60px;gap:14px}.premium #sheetPreview>header h2{color:#344b70;font-size:12px;line-height:1.5;letter-spacing:.08em;font-weight:500}.premium #sheetPreview>header small{color:#9da8ba;font-size:8px;letter-spacing:.18em}.premium .sheet-logo{font-size:17px;letter-spacing:.16em;color:#1c3972;font-weight:500}.premium .green-logo{font-size:15px;color:#7d92b6}
.premium #sheetPreview>h3,.premium #feePreviewSection>h3{margin:25px 0 14px;padding:0 0 0 10px;background:transparent;border-left:2px solid var(--brand-accent,#d14851);color:#8190a8;font-weight:600;font-size:9px;letter-spacing:.09em;line-height:1.5;text-align:left}
.premium #sheetPreview .sheet-summary{gap:0 22px;margin:0;grid-template-columns:1fr 1fr}.premium #sheetPreview .sheet-summary>div{border:0;border-bottom:1px solid #f0f2f7;background:white;display:flex;justify-content:space-between;align-items:center;gap:14px;padding:12px 0;font-size:10px}.premium #sheetPreview .sheet-summary span{background:transparent;color:#96a2b5;padding:0;font-size:8px;white-space:nowrap}.premium #sheetPreview .sheet-summary b{padding:0;background:transparent;font-size:11px;color:#425c82;text-align:right;font-weight:500;overflow-wrap:anywhere}
.premium #sheetPreview .sheet-table-wrap{border:1px solid #e4e9f2;border-radius:8px;margin:14px 0;scrollbar-width:thin;scrollbar-color:#c2ccdd #f4f7fb}
.premium #sheetPreview .sheet-table{border:0;min-width:600px;border-collapse:collapse;font-size:10px}.premium #sheetPreview .sheet-table th{background:#f1f4f9;color:#8b9bb3;font-size:8px;letter-spacing:.06em;font-weight:600;border:0;border-bottom:1px solid #e5ebf4;text-align:left;padding:12px 10px;line-height:1.6;white-space:normal}.premium #sheetPreview .sheet-table td{padding:8px 10px;border:0;border-bottom:1px solid #edf1f7;color:#526886;font-size:10px}.premium #sheetPreview .sheet-table tr:nth-child(even) td{background:#fbfcfe}.premium #sheetPreview .sheet-table tfoot td{background:#edf2fc;font-weight:600;padding:13px 10px;color:#3b5887}
.premium #sheetPreview input,.premium #sheetPreview select{border:1px solid #dce4f0;background:#fff;border-radius:5px;height:32px;padding:4px 6px;color:#36527f;font-size:11px;font-weight:500}.premium #sheetPreview input[type=number]{width:90px;text-align:right;font-variant-numeric:tabular-nums}.premium #sheetPreview input[type=date]{min-width:116px;width:125px;font-size:10px}.premium #sheetPreview .details{min-width:1000px}.premium #sheetPreview .payment-cell input[type=number]{min-width:75px;width:85px}.premium #sheetPreview .details .payment-row-total{background:#eef3fc;font-weight:650;color:#304f85}.premium #sheetPreview .payment-cell summary{font-size:17px;color:#90a1b8}.premium .payment-popover{box-shadow:0 12px 24px #19325320}
.premium #flexEditor{background:#f7f9fd;border:1px solid #e7ecf4;border-radius:8px;padding:12px;margin-top:16px}.premium .inline-plan-tools{gap:10px;align-items:end}.premium .inline-plan-tools label{display:grid;font-size:9px;gap:6px}.premium .inline-plan-tools button{height:32px;font-size:10px;border:1px solid #d6e0ef;border-radius:5px;color:#55719b;background:#fff;padding:0 10px}.premium .inline-plan-tools #flexAnyAdd{background:var(--brand-primary,#284d93);border-color:var(--brand-primary,#284d93);color:#fff}.premium #flexStatus{font-size:10px;line-height:1.7;padding-top:10px;color:#6980a3;font-weight:500}.premium #flexStatus.invalid{color:#c74650}
.premium #feeEditorSection{padding:0}.premium #feeEditorSection .section-title p{font-size:11px;color:#8c9ab0}.premium .fee-toolbar{display:flex;align-items:end;gap:14px}.premium .fee-toolbar label{font-size:10px}.premium #simFeeCount{width:88px}.premium #simFeeDistribute{height:33px;padding:0 13px;border:1px solid #d8e1ef;background:#f7f9fd;border-radius:6px;font-size:10px;color:#58719b;cursor:pointer}.premium #simFeeSummary{background:transparent;border:0;display:flex;gap:24px;margin:16px 0;font-size:10px;color:#92a0b7}.premium #simFeeSummary b{margin-left:5px;color:#54719e;font-weight:600}.premium #simFeeSummary.invalid b{color:#bd3d49}.premium #feeEditorSection .fee-help{font-size:9px;color:#97a4b8;line-height:1.7}.premium .sheet-note{font-size:9px;color:#a2adbd;line-height:1.7}
.premium #purchaseView{max-width:none;margin:0 0 0 var(--sidebar);padding:0 40px 56px}.premium #purchaseView .hero{min-height:200px;padding:36px 0 28px}.premium #purchaseView h1{font-size:38px}.premium #purchaseForm{max-width:1100px}.premium .purchase-grid{gap:20px}.premium #purchaseFields fieldset{padding:24px;border:1px solid #e5eaf2;border-radius:8px;margin:30px 0}.premium #purchaseFields legend{font-size:11px;font-weight:600;letter-spacing:.02em;color:#4a658f;padding:0 10px}.premium #purchaseMessage{font-size:12px;line-height:1.7;color:#8b99ae}.premium #purchaseDownload{max-width:280px}
.premium .site-footer{margin:0 0 0 var(--sidebar);padding:24px 40px;border-top:1px solid var(--line);text-align:left;color:#a5aebd;font-size:9px;letter-spacing:.02em;background:#f6f7fa}
.premium .toast{z-index:30;background:#163569;border:1px solid #335a96;color:#fff;font-size:12px;max-width:calc(100vw - 40px);line-height:1.6}.premium dialog{border:1px solid #e0e7f3}.premium dialog::backdrop{background:#081b42a8}.premium .status-actions button{border-color:#345991;color:#31558d}.premium .status-actions .sold{background:#31558d;color:white}
@media(min-width:1850px){.premium main.app-view{margin-left:calc(var(--sidebar) + (100vw - var(--sidebar) - 1680px)/2);margin-right:auto}.premium .sim-layout{grid-template-columns:310px minmax(0,1fr)}}
@media(max-width:1200px){.premium{--sidebar:192px}.premium .topbar{padding:20px 12px}.premium .brand{width:168px;height:78px}.premium .app-tabs button,.premium .app-tabs a{font-size:12px;padding:13px 12px;gap:10px}.premium main.app-view,.premium #purchaseView{padding-left:25px;padding-right:25px}.premium-context{padding:0 25px}.premium .workspace{gap:18px;grid-template-columns:minmax(0,1fr) minmax(290px,.82fr)}.premium .config-card{padding:24px}.premium .plans{grid-template-columns:1fr}.premium .plans span{min-height:0;display:grid;grid-template-columns:64px 1fr;gap:3px 7px;align-items:center}.premium .plans b{margin:0}.premium .plans small{grid-column:2}.premium .sim-layout{grid-template-columns:250px minmax(0,1fr);gap:16px}.premium #sheetPreview{padding:18px}.premium #sheetPreview .sheet-summary{grid-template-columns:1fr}}
@media(max-width:960px){.premium{--sidebar:0px}.premium .topbar{position:sticky;inset:auto;top:0;height:auto;width:100%;padding:10px 22px 0;display:grid;grid-template-columns:150px 1fr;gap:6px 16px;border-bottom:1px solid var(--line);overflow:visible}.premium .brand{width:140px;height:52px;margin:0}.premium .brand .dena-logo{width:192px;height:136px}.premium-nav-label,.premium .source-state,.premium-sidebar-footer{display:none}.premium .app-tabs{grid-row:2;grid-column:1/-1;flex-direction:row;overflow:auto;gap:6px;padding:7px 0;scrollbar-width:none}.premium .app-tabs button,.premium .app-tabs a{padding:10px 13px;font-size:11px;border-radius:6px}.premium .app-tabs .active:before{top:auto;bottom:-7px;left:12px;right:12px;height:2px;width:auto}.premium .ghost{justify-self:end;align-self:center;margin:0;font-size:10px;padding:8px 10px;display:block}.premium-context{height:52px}.premium .premium-preview-badge{font-size:0}.premium .premium-preview-badge a{font-size:9px}.premium .hero{padding-top:30px;min-height:215px}.premium .sim-form{position:static}.premium .sim-layout{grid-template-columns:1fr}.premium .sim-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px 18px}.premium .sim-form .section-title{grid-column:1/-1;margin:0}.premium .sim-form>.field-row{display:contents}.premium .sim-form>label,.premium .sim-form>.spaced{margin:0}.premium .sim-form .pdf-template-hint{grid-column:1/-1;margin:0;order:20}.premium .sim-form .client-title{padding-top:16px;margin-top:5px}.premium #sheetPreview .sheet-summary{grid-template-columns:1fr 1fr}.premium .result-card{position:static}.premium .site-footer{padding:22px 25px}}
@media(max-width:680px){.premium .topbar{padding:8px 14px 0}.premium .app-tabs svg{width:16px;height:16px}.premium .app-tabs button,.premium .app-tabs a{gap:8px;padding:10px;font-size:10px}.premium-context{padding:0 18px}.premium-context>div{font-size:10px;gap:8px}.premium-context>div>span{display:none}.premium-context>div>i{display:none}.premium main.app-view,.premium #purchaseView{padding:0 16px 34px}.premium .hero{gap:24px;display:block;padding:28px 0}.premium h1{font-size:36px}.premium .hero p{font-size:12px}.premium .inventory{display:flex;min-width:0;align-items:center;gap:12px;padding:14px 17px;margin-top:24px;flex-wrap:wrap}.premium .inventory:after{display:none}.premium .inventory>span{font-size:8px;max-width:70px;line-height:1.6}.premium .inventory strong{font-size:28px;margin:0}.premium .inventory small{font-size:10px}.premium .workspace{display:flex;flex-direction:column;gap:20px}.premium .workspace>*{width:100%}.premium .config-card,.premium .result-card{padding:23px 20px}.premium .field-row{grid-template-columns:1fr}.premium .price strong{font-size:38px}.premium .sim-heading{display:block;padding:28px 0 24px}.premium .sim-heading h1{font-size:32px}.premium .sim-heading p{font-size:12px}.premium .pdf-button{margin-top:20px;width:100%}.premium .sim-form{grid-template-columns:1fr 1fr;padding:22px 18px}.premium .sim-form input,.premium .sim-form select{font-size:12px;padding:0 9px}.premium .sim-form label:has(#simClient){grid-column:1/-1}.premium #sheetPreview{padding:16px 12px}.premium #sheetPreview .sheet-summary{gap:0 16px}.premium #sheetPreview .sheet-summary>div{flex-direction:column;align-items:flex-start;gap:5px;padding:10px 0}.premium #sheetPreview .sheet-summary b{text-align:left;font-size:10px}.premium #sheetPreview .sheet-summary span{font-size:7px}.premium #sheetPreview>header{grid-template-columns:45px 1fr 40px;gap:8px;height:65px}.premium #sheetPreview>header h2{font-size:10px}.premium .sheet-logo{font-size:12px}.premium .green-logo{font-size:11px}.premium #purchaseView h1{font-size:33px}.premium #purchaseView .hero{min-height:0;padding:28px 0}.premium .purchase-grid{grid-template-columns:1fr}.premium #purchaseFields fieldset{padding:18px 14px}.premium #purchaseDownload{max-width:none}.premium .site-footer{font-size:8px;padding:22px 18px}}
@media(prefers-reduced-motion:reduce){.premium *{transition:none!important;scroll-behavior:auto!important}}
@media print{.premium .premium-context,.premium .topbar{display:none!important}.premium main.app-view{margin:0!important;padding:0!important}.premium #sheetPreview{padding:0!important;box-shadow:none!important;border:0!important}.premium .site-footer{display:none!important}}
.premium.premium-admin .admin-header-label{display:none}.premium.premium-admin .admin-back{margin-top:28px;text-decoration:none;text-align:center}.premium .admin-shell{max-width:none;margin:0 0 0 var(--sidebar);padding:45px 40px 65px;min-height:calc(100dvh - 130px)}.premium .admin-login{max-width:480px;margin:35px auto}.premium .admin-login h1{font-size:34px;line-height:1.15}.premium .admin-login>p{font-size:12px;line-height:1.8;color:#8593aa}.premium .admin-login .primary{margin-top:24px}.premium .admin-workspace-heading h1{font-size:38px}.premium .admin-workspace-heading p{color:#7a8ca8;font-size:13px}.premium .admin-shell .ghost{color:#4d6994;border-color:#d7e0ef;background:white}.premium .admin-panel{box-shadow:none;border:1px solid #e0e6f0}.premium .admin-shell input[type=checkbox]{height:17px;width:17px;accent-color:#345a9c}
@media(max-width:960px){.premium.premium-admin .admin-back{grid-row:1;grid-column:2;margin:0}.premium .admin-shell{padding:30px 24px 50px}.premium .admin-login{margin:15px auto}}
@media(max-width:680px){.premium .admin-shell{padding:24px 16px 40px}.premium .admin-login h1{font-size:30px}.premium .admin-workspace-heading h1{font-size:31px}}
/* Keep small labels readable and navigation in a single scrolling row. */
.premium .app-tabs{flex-wrap:nowrap;justify-content:flex-start}
.premium .hero p,.premium .sim-heading p,.premium .section-title p,.premium .plans small{color:#6f7c92}
.premium label,.premium legend{color:#617189}
.premium #sheetPreview>h3,.premium #feePreviewSection>h3{color:#697b97;font-size:10px}
.premium #sheetPreview .sheet-summary span{color:#77869e}
.premium #sheetPreview .sheet-table th{color:#647895;font-size:9px}
.premium #sheetPreview .sheet-table td{font-size:11px}
.premium .sim-form .pdf-template-hint,.premium #feeEditorSection .fee-help{color:#6b7f9f}
@media(max-width:680px){.premium .app-tabs{min-width:0}.premium .app-tabs>*{flex-shrink:0}.premium .sim-form input,.premium .sim-form select,.premium #purchaseForm input,.premium #purchaseForm select,.premium #proposalForm input,.premium #proposalForm select{font-size:16px}.premium #sheetPreview .sheet-summary span{font-size:8px}}
.premium.premium-admin .admin-back{background:transparent!important;color:#b9c8e5!important;border-color:#ffffff25}
.premium .app-tabs button span{white-space:normal;overflow-wrap:anywhere;min-width:0;text-align:left;line-height:1.4}
.premium .admin-section-tabs{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 26px;border-bottom:1px solid #dce4f0;padding-bottom:16px}
.premium .admin-section-tabs button{border:1px solid #dce4f0;border-radius:8px;padding:12px 18px;font:600 14px "Segoe UI",system-ui;color:#526988;background:white;cursor:pointer}
.premium .admin-section-tabs [aria-selected=true]{background:var(--brand-primary,#244a95);color:white;border-color:transparent}
.premium .settings-card{max-width:1100px}
.premium .settings-card>h2,.premium #projectVisibilityPanel>h2{font-size:22px;margin:0 0 10px}
.premium .settings-card>p,.premium #projectVisibilityPanel>p,.premium .settings-names>p,.premium .settings-group>p{font-size:14px;line-height:1.75;color:#63728a}
.premium .settings-card fieldset{border:1px solid #e0e6ef;border-radius:10px;padding:22px;margin:30px 0 22px;min-width:0}
.premium .settings-card legend{font-size:16px;padding:0 10px;color:#284266;font-weight:600}
.premium .settings-names>p{margin:0 0 20px}
.premium .settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.premium .settings-grid label{font-size:14px;line-height:1.5;color:#526682;min-width:0;overflow-wrap:anywhere}
.premium .settings-grid input,.premium .settings-grid textarea{font-size:15px;width:100%;min-width:0}
.premium .settings-group{border:1px solid #e0e6ef;border-radius:10px;padding:18px 22px;margin:14px 0}
.premium .settings-group>summary{cursor:pointer;color:#284266;font-weight:600;font-size:16px;padding:3px 0}
.premium .settings-group[open]>summary{margin-bottom:22px}
.premium .settings-colors{grid-template-columns:repeat(3,minmax(0,1fr))}
.premium .settings-colors label>span{display:flex;align-items:center;gap:12px}
.premium .settings-colors input{width:58px;height:44px;padding:4px;cursor:pointer}
.premium .settings-colors output{font:14px ui-monospace,monospace;color:#4b6283}
.premium .settings-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-top:26px}
.premium .settings-actions .primary{width:auto;min-width:220px;font-size:14px}
.premium .settings-actions .ghost{margin:0;font-size:14px;padding:13px 16px}
.premium #siteSettingsStatus,.premium #projectSettingsStatus{font-size:14px;line-height:1.75;color:#435d84;min-height:25px}
.premium #projectToggles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:24px 0}
.premium #projectToggles label{font-size:14px;text-transform:none;font-weight:500;line-height:1.5}
.premium #projectSettings>.primary{max-width:280px;font-size:14px}
@media(max-width:1100px){.premium .settings-colors,.premium #projectToggles{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){.premium .settings-grid,.premium .settings-colors,.premium #projectToggles{grid-template-columns:1fr}.premium .settings-card fieldset,.premium .settings-group{padding:18px 14px}.premium .settings-grid input,.premium .settings-grid textarea{font-size:16px}.premium .admin-section-tabs{gap:8px}.premium .admin-section-tabs button{font-size:13px;padding:10px 12px}.premium .settings-actions>*{width:100%!important}.premium .settings-actions .ghost{display:block}}
.premium #purchaseForm textarea{width:100%;box-sizing:border-box;border:1px solid #dbe2ee;border-radius:12px;padding:13px;font:inherit;color:inherit;resize:vertical;background:white}
.premium #purchasePlanSummary{padding:16px 0;color:#435d84;line-height:1.6}
.premium #useProposalPlan{margin-top:10px;width:100%}
.premium #purchaseForm .field-row>button{min-width:0;white-space:normal;line-height:1.5}
.premium #saleProposalHint{display:block;line-height:1.5;margin-top:8px}
.premium #purchaseForm [hidden]{display:none!important}
.premium #purchasePdfLink,.premium #purchaseSaleLink{display:flex;align-items:center;justify-content:center;min-height:48px;padding:12px 18px;border:1px solid #b8c9e5;border-radius:10px;background:#f1f6ff;color:#153d77;font-family:inherit;font-size:13px;font-weight:600;line-height:1.5;text-align:center;text-decoration:none;cursor:pointer}
.premium #purchaseForm input[aria-invalid="true"]{border-color:#c12f3c;box-shadow:0 0 0 2px #c12f3c18}
.premium #purchaseMessage[role="alert"]{color:#a02330;font-weight:600}

/* Feedback belongs to the dialog top layer, never behind its backdrop. */
.premium dialog .dialog-feedback{margin:18px 0;padding:13px 15px;border:1px solid #c6d6ee;border-radius:10px;background:#eef4fc;color:#23436e;font-size:13px;line-height:1.65;text-align:left;overflow-wrap:anywhere}
.premium dialog .dialog-feedback[data-tone="error"]{background:#fff1f2;border-color:#efb7bf;color:#9b2636}
.premium dialog .dialog-feedback[hidden]{display:none}
.premium dialog .dialog-feedback:focus{outline:2px solid #739bd1;outline-offset:3px}
.premium .premium-menu-toggle{display:inline-flex;align-items:center;justify-content:center;gap:8px;flex-shrink:0;min-height:38px;padding:8px 11px;margin-right:8px;border:1px solid #dce4ef;border-radius:9px;background:#f7f9fd;color:#294974;font:600 11px "Segoe UI",system-ui;cursor:pointer}
.premium .premium-menu-toggle svg{width:17px;height:17px}
.premium .premium-menu-toggle:hover{background:#edf3fc;border-color:#aec4e4}
.premium.premium-menu-collapsed{--sidebar:0px}
.premium.premium-menu-collapsed .topbar{display:none}
@media(max-width:680px){.premium .premium-menu-toggle{min-height:36px;margin-right:0;padding:7px 9px}.premium .premium-context-label{display:none}}

/* Frame matches the configured sidebar. The original opaque JPEG is preserved. */
.premium .brand,
.premium #sheetPreview .sheet-logo {
  background:var(--brand-sidebar,#091449);
}
/* Requires the one inline definition in brand-tone-svg.html. */
.premium .brand .dena-logo,
.premium #sheetPreview .sheet-logo img {
  filter:url(#dena-navy-background);
}
/* Buyer documents: quiet assistance, explicit review and compact mobile flow. */
.buyer-assistance{padding:18px 20px;margin:10px 0 22px;background:#f5f7fc;border:1px solid #dce3f0;border-radius:14px}
.document-help{font-size:12px;line-height:1.6;color:#647492;margin:8px 0;overflow-wrap:anywhere}
.document-imports{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.document-imports input[type=file]{padding:12px;background:#fff;max-width:100%;font-size:12px}
.document-imports input::file-selector-button{padding:8px 12px;margin-right:8px;border:0;border-radius:7px;color:#fff;background:#101c50;cursor:pointer}
.same-address{display:flex!important;align-items:center;gap:12px;margin-top:16px;font-size:13px}
.same-address input{appearance:none;width:40px!important;height:24px;border:0;border-radius:16px;background:#b7c2d6;position:relative;flex:none;cursor:pointer}
.same-address input:before{content:'';position:absolute;left:3px;top:3px;width:18px;height:18px;border-radius:50%;background:white;transition:transform .15s}
.same-address input:checked{background:#12296b}.same-address input:checked:before{transform:translateX(16px)}
[data-document-review]{border-color:#d0a133!important;background:#fff9e8!important}
.external-broker-row{display:grid;grid-template-columns:1.5fr 1fr auto;gap:12px;align-items:end;margin:14px 0}
#externalBrokerExtras{margin-top:14px}#externalBrokerExtras[hidden]{display:none}
@media(max-width:640px){.document-imports,.external-broker-row{grid-template-columns:1fr}.buyer-assistance{padding:14px}.external-broker-row button{justify-self:start}}

.stock-freshness{display:block;margin:8px 0 0;color:#abbddd;font-size:10px;line-height:1.5;font-weight:400}

/* In the installed app the brand lives in the shell, directly above this menu. */
.premium.desktop-app .topbar{padding-top:22px}
.premium.desktop-app .topbar>.brand{display:none}
.premium.desktop-app .premium-nav-label{margin:2px 0 18px;padding:0 14px}
.premium .site-footer a{color:inherit;text-decoration:none;text-underline-offset:4px}
.premium .site-footer a:hover{color:#45648d;text-decoration:underline}
@media(max-width:960px){.premium.desktop-app .topbar{display:block;padding-top:8px}.premium.desktop-app .app-tabs{padding-top:3px}}

.commercial-workspace{display:flex;align-items:center;gap:12px;margin:0 0 24px;padding:18px 24px;background:#fff;border:1px solid #dce4f2;border-radius:18px}.commercial-workspace>div{margin-right:auto}.commercial-workspace strong,.commercial-workspace small{display:block}.commercial-workspace small{color:#697e9f;margin-top:5px}.commercial-workspace button{background:#f3f6fc;color:#173463;border:1px solid #dbe4f2;padding:12px 16px;border-radius:10px}.draft-entry{display:block;width:100%;text-align:left;margin:12px 0}.unit-timeline li{border-left:2px solid #a6b8d6;padding:12px 22px;list-style:none}.unit-timeline span{display:block;font-size:12px;color:#627798}.sale-review{width:min(620px,90vw);max-height:88vh;overflow:auto;border:1px solid #dce4f2;border-radius:24px;padding:30px;color:#172d51}.review-error{color:#a9233e;background:#fff0f2;padding:12px;border-radius:10px}.commercial-workspace dialog{max-width:760px;width:88vw;border-radius:20px;border:1px solid #dce4f2;padding:28px}@media(max-width:800px){.commercial-workspace{flex-wrap:wrap}.commercial-workspace>div{width:100%}}

.premium .commercial-workspace{margin:18px 40px 0 calc(var(--sidebar) + 40px)}.premium-modules-link{font-size:11px;color:#284e89;text-decoration:none;padding:8px;border-radius:8px;background:#f1f5fc}@media(max-width:680px){.premium .commercial-workspace{margin:12px 16px 0}}@media print{.commercial-workspace{display:none!important}}

/* The registered mark floats directly on the sidebar. */
.premium .brand{background:transparent;border-radius:0}
