/* The company studio follows the existing portal; custom colour belongs to paper only. */
.company-tabs{display:flex;gap:27px;border-bottom:1px solid #dfe5da;margin:-7px 0 30px}
.company-tabs [role=tab]{position:relative;min-height:53px;padding:9px 0 18px;font-size:13px;color:var(--muted);font-weight:600;text-align:left}
.company-tabs [aria-selected=true]{color:var(--green)}
.company-tabs [aria-selected=true]::after{content:'';position:absolute;bottom:-1px;inset-inline:0;height:3px;background:var(--green);border-radius:3px}
.brand-studio{display:grid;grid-template-columns:minmax(320px,.9fr) minmax(0,1.1fr);gap:32px;align-items:start}
.brand-controls{background:#fff;border:1px solid var(--line);border-radius:22px;padding:30px;min-width:0}
.brand-section-intro{padding-bottom:27px}
.brand-section-intro h2{font-size:25px;max-width:285px}
.brand-section-intro p,.brand-preview-toolbar p{font-size:12px;color:var(--muted);margin-top:12px;line-height:1.75}
.brand-mobile-preview{display:none}
.brand-fieldset{border:0;border-top:1px solid var(--line);padding:23px 0 25px;margin:0;min-width:0}
.brand-fieldset legend{float:left;width:100%;margin:0 0 17px;padding:0;font-size:13px;font-weight:700;letter-spacing:-.02em}
.brand-fieldset legend+*{clear:both}
.brand-helper{font-size:11px;line-height:1.75;color:var(--muted);margin-top:12px}
.brand-logo-upload{display:flex;gap:20px;align-items:center;min-width:0}
.brand-logo-preview{width:110px;height:90px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:9px;border:1px dashed #ccd6c5;border-radius:12px;background:#fafbf8;flex-shrink:0;padding:13px;color:#7e8c73}
.brand-logo-preview img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain}
.brand-logo-preview>span{font-size:10px}
.brand-logo-preview svg{width:24px;height:24px}
.brand-logo-actions{display:flex;flex-direction:column;align-items:flex-start;min-width:0}
.brand-studio .brand-upload-label{position:relative;cursor:pointer;overflow:hidden;padding:10px 14px;min-height:42px;font-size:11px;white-space:normal}
.brand-upload-label:focus-within{outline:3px solid #6c936d;outline-offset:3px}
.brand-upload-label input{position:absolute;width:100%;height:100%;opacity:0;inset:0;cursor:pointer}
.brand-logo-actions .text-link{font-size:10px;min-height:35px;margin-top:4px}
.brand-layout-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.brand-layout-choice{position:relative;display:flex;flex-direction:column;align-items:stretch;border:1px solid #e0e5db;border-radius:11px;padding:12px 10px;cursor:pointer;background:#fff;min-width:0}
.brand-layout-choice[data-selected=true]{border-color:#7e9c6e;background:#f4f8ee;box-shadow:0 0 0 1px #7e9c6e}
.brand-layout-choice input{position:absolute;right:8px;top:8px;margin:0;width:13px;height:13px;accent-color:var(--green)}
.brand-layout-choice:has(input:focus-visible){outline:3px solid #6c936d;outline-offset:3px}
.brand-layout-choice strong{font-size:11px;margin-top:12px}
.brand-layout-choice small{font-size:9px;line-height:1.55;color:var(--muted);margin-top:4px;min-height:28px}
.brand-mini-paper{display:block;height:85px;width:61px;max-width:100%;align-self:center;background:white;border:1px solid #dfe5da;box-shadow:0 3px 8px #2033190a;padding:12px 7px 7px;margin-top:10px;border-radius:2px}
.brand-mini-paper i{display:block;height:7px;width:16px;background:#58744a;margin-bottom:11px;border-radius:1px}
.brand-mini-paper b{display:block;height:3px;width:65%;background:#85917c;margin-bottom:6px}
.brand-mini-paper em{display:block;height:2px;width:100%;background:#e1e6dc;margin:4px 0}
.brand-mini-paper u{display:block;height:5px;width:40%;background:#a5b49a;margin:6px 0 0 auto}
.brand-mini-paper[data-mini-layout=accent]{border-top:5px solid #58744a;padding-top:8px}
.brand-mini-paper[data-mini-layout=accent] b{height:8px;width:100%;background:#58744a}
.brand-mini-paper[data-mini-layout=compact] i{float:right;width:12px;height:5px;margin-bottom:17px}
.brand-mini-paper[data-mini-layout=compact] b{clear:both;height:3px}
.brand-mini-paper[data-mini-layout=compact] em{margin-block:3px}
.brand-color-row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.brand-color-swatch{display:grid;place-items:center;width:43px;height:43px;border:1px solid #dce3d5;border-radius:10px;overflow:hidden}
.brand-color-swatch input{appearance:none;-webkit-appearance:none;width:39px;height:39px;padding:4px;border:0;background:white;cursor:pointer}
.brand-color-swatch input::-webkit-color-swatch-wrapper{padding:0}
.brand-color-swatch input::-webkit-color-swatch{border:0;border-radius:5px}
.brand-color-swatch input::-moz-color-swatch{border:0;border-radius:5px}
.brand-color-code{display:flex;flex-direction:column;gap:1px}
.brand-color-code>span{font-size:9px;color:var(--muted)}
.brand-color-code input{width:93px;padding:1px 0;border:0;background:transparent;letter-spacing:.035em;font-size:13px;line-height:1.8;color:var(--ink)}
.brand-palette{display:flex;gap:3px;margin-left:auto}
.brand-color-preset{padding:6px;width:31px;height:36px;display:grid;place-items:center}
.brand-color-preset span{background:var(--swatch);width:18px;height:18px;border-radius:50%;border:1px solid #0001}
.brand-field-pair{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:21px}
.brand-studio .field{font-size:11px;min-width:0}
.brand-studio .field select,.brand-studio .field textarea{font:inherit;color:var(--ink);font-size:12px;font-weight:400;background:white;width:100%;min-width:0;border:1px solid #dce3d5;border-radius:9px;padding:12px;line-height:1.65}
.brand-studio .field textarea{resize:vertical;min-height:82px}
.brand-fieldset>.field+.field{margin-top:19px}
.brand-field-pair select{min-height:45px}
.brand-checks{display:grid;gap:10px;margin-top:15px}
.brand-checks label{display:flex;align-items:center;gap:11px;font-size:12px;min-height:27px;cursor:pointer}
.brand-checks input,.brand-price-choices input{width:16px;height:16px;margin:0;accent-color:var(--green);flex-shrink:0}
.brand-later{font-size:9px;color:#64725a;font-weight:500;background:#eef2e8;display:inline-block;padding:3px 7px;vertical-align:middle;border-radius:5px;margin-left:5px}
.brand-price-choices{display:grid;gap:10px;margin-top:18px}
.brand-price-choices label{display:flex;gap:12px;align-items:center;border:1px solid #e0e5db;border-radius:11px;padding:14px;cursor:pointer}
.brand-price-choices label:has(input:checked){border-color:#9fb591;background:#f7f9f3}
.brand-price-choices strong{display:block;font-size:11px}
.brand-price-choices small{display:block;font-size:10px;color:var(--muted);line-height:1.65;margin-top:3px}
.brand-save-area{border-top:1px solid var(--line);padding-top:22px}
.brand-save-state{display:block;color:var(--muted);font-size:10px;margin-bottom:13px}
.brand-save-buttons{display:flex;align-items:center;flex-wrap:wrap;gap:12px}
.brand-save-buttons .button{font-size:12px}
.brand-reset{font-size:10px;color:var(--muted);min-height:40px;padding:5px 0}
.brand-studio .form-feedback:empty{display:none}
.brand-studio button:disabled{cursor:default}
.brand-studio fieldset:disabled{opacity:.55}
.brand-preview-column{position:sticky;top:103px;min-width:0;scroll-margin-top:100px}
.brand-preview-toolbar h2{font-size:21px}
.brand-preview-toolbar p{margin-top:7px}
.brand-document-switch{display:inline-flex;background:#e9ede4;padding:4px;border-radius:10px;gap:3px;margin-top:22px;max-width:100%}
.brand-document-switch button{font-size:11px;min-height:35px;padding:8px 13px;border-radius:7px;line-height:1.5}
.brand-document-switch [aria-pressed=true]{background:white;box-shadow:0 2px 6px #28371c0a;font-weight:650;color:var(--green)}
.brand-preview-stage{padding:30px 20px;background:#e9ede4;border:1px solid #e2e7dc;border-radius:17px;margin-top:20px;container-type:inline-size}
.brand-document{--document-accent:#245337;--document-on-accent:white;background:white;min-height:660px;box-shadow:0 8px 25px #243a2312;border:1px solid #dfe5da;border-radius:2px;font-size:10px;line-height:1.65;color:#30362e;overflow:hidden;overflow-wrap:anywhere}
.brand-document-body{padding:30px 25px 23px}
.brand-document-stripe{height:5px;background:transparent}
.brand-document-header{display:flex;align-items:flex-start;gap:20px;justify-content:space-between;min-height:77px}
.brand-document-identity{min-width:0;flex:1;max-width:58%}
.brand-document-logo{display:block;width:auto;max-width:100%;height:auto;max-height:55px;object-fit:contain;object-position:left center}
.brand-document-wordmark{display:flex;flex-direction:column;gap:7px;align-items:flex-start}
.brand-document-wordmark span{width:33px;height:33px;border-radius:7px;display:grid;place-items:center;background:var(--document-accent);color:var(--document-on-accent);font-size:12px;font-weight:700}
.brand-document-wordmark strong{font-size:12px;font-weight:750;letter-spacing:-.025em}
.brand-document-contact{text-align:right;max-width:46%;font-size:8px;line-height:1.8}
.brand-document-contact strong{font-size:9px}
.brand-document-contact p{color:#626a5d;margin-top:5px}
.brand-document-title{display:flex;align-items:center;gap:10px;margin-top:31px;padding-bottom:18px;border-bottom:2px solid var(--document-accent)}
.brand-document-title h3{font-size:25px;letter-spacing:-.04em;color:#20271f}
.brand-document-title>span{font-size:8px;margin-left:auto;color:#6a7264;background:#f2f4ef;padding:3px 6px;border-radius:4px}
.brand-document-meta{display:flex;justify-content:space-between;gap:20px;margin-top:23px;font-size:9px}
.brand-document-meta>div{max-width:50%}
.brand-document-meta small{display:block;font-size:8px;color:#626a5d;margin-bottom:6px}
.brand-document-meta p{margin-top:5px;color:#626a5d}
.brand-document-meta dl{margin:0;max-width:50%}
.brand-document-meta dl>div{margin-bottom:9px}
.brand-document-meta dt{font-size:8px;color:#626a5d}
.brand-document-meta dd{margin:2px 0 0;font-weight:600}
.brand-document-intro{margin-top:26px;font-size:9px;line-height:1.9;white-space:pre-wrap}
.brand-document-table{border-collapse:collapse;width:100%;font-size:9px;margin-top:23px;table-layout:fixed}
.brand-document-table th{text-align:left;padding:10px 0;border-bottom:1px solid #dce3d5;font-size:8px;font-weight:650}
.brand-document-table th:first-child{width:55%}
.brand-document-table th:nth-child(2){width:20%}
.brand-document-table td{padding:14px 7px 14px 0;border-bottom:1px solid #e9ede4;vertical-align:top}
.brand-document-table td:last-child,.brand-document-table th:last-child{text-align:right;padding-right:0;white-space:nowrap}
.brand-document-table small{display:block;font-size:8px;color:#687365;margin-top:3px;line-height:1.6}
.brand-document-totals{width:70%;margin:21px 0 0 auto;font-size:9px}
.brand-document-totals>div{display:flex;justify-content:space-between;gap:15px;padding:4px 0}
.brand-document-totals>div>span:last-child,.brand-document-totals>div>strong:last-child{white-space:nowrap}
.brand-document-totals .brand-document-total{margin-top:10px;padding-top:13px;border-top:1px solid #dce3d5;font-size:10px}
.brand-document-footer{border-top:1px solid #e9ede4;margin-top:43px;padding-top:15px;text-align:center;color:#626a5d;font-size:8px}
.brand-document-footer p{white-space:pre-wrap}
.brand-document-footer small{display:block;font-size:7px;margin-top:11px}
.brand-preview-caption{font-size:10px;line-height:1.8;color:var(--muted);max-width:360px;text-align:center;margin:15px auto 0;padding-inline:8px}
.brand-document[data-layout=accent] .brand-document-stripe{background:var(--document-accent);height:8px}
.brand-document[data-layout=accent] .brand-document-title{padding:13px 14px;background:var(--document-accent);color:var(--document-on-accent);border:0;border-radius:3px}
.brand-document[data-layout=accent] .brand-document-title h3{color:inherit;font-size:23px}
.brand-document[data-layout=accent] .brand-document-title>span{background:transparent;color:inherit}
.brand-document[data-layout=accent] .brand-document-total{padding:12px;background:var(--document-accent);color:var(--document-on-accent);border-radius:3px;border:0}
.brand-document[data-layout=compact] .brand-document-header{min-height:55px}
.brand-document[data-layout=compact] .brand-document-title{margin-top:20px;padding-bottom:12px}
.brand-document[data-layout=compact] .brand-document-title h3{font-size:21px}
.brand-document[data-layout=compact] .brand-document-intro{margin-top:18px}
.brand-document[data-layout=compact] .brand-document-table td{padding-block:10px}
.brand-document[data-layout=compact] .brand-document-meta{margin-top:17px}
.brand-document[data-layout=compact] .brand-document-footer{margin-top:30px}
.brand-document[data-logo-align=right] .brand-document-header{flex-direction:row-reverse}
.brand-document[data-logo-align=right] .brand-document-contact{text-align:left}
.brand-document[data-logo-align=right] .brand-document-logo{margin-left:auto;object-position:right center}
.brand-document[data-logo-align=right] .brand-document-wordmark{align-items:flex-end;text-align:right}
.brand-document[data-logo-size=small] .brand-document-logo{max-width:70%;max-height:36px}
.brand-document[data-logo-size=large] .brand-document-logo{max-height:78px}
@media(min-width:1500px){.brand-studio{gap:40px}.brand-controls{padding:34px}.brand-preview-stage{padding:33px}.brand-document-body{padding:33px 30px 26px}}
@media(max-width:1250px) and (min-width:981px){.brand-studio{grid-template-columns:minmax(280px,1fr) minmax(0,1fr);gap:22px}.brand-controls{padding:23px}.brand-preview-stage{padding:19px 13px}.brand-document-body{padding:24px 17px}.brand-palette{margin-left:0}.brand-layout-choice{padding:10px 7px}.brand-layout-choice small{font-size:8px}.brand-logo-upload{gap:13px}.brand-logo-preview{width:85px}}
@media(max-width:980px){.brand-studio{grid-template-columns:minmax(0,1fr)}.brand-preview-column{position:static;max-width:600px;width:100%;margin-inline:auto}.brand-mobile-preview{display:inline-flex;gap:8px;align-items:center;padding:5px 0;margin-top:14px;min-height:36px;font-size:11px;font-weight:650;color:var(--green)}.brand-mobile-preview svg{width:17px;height:17px}.brand-section-intro h2{max-width:none}.brand-controls{padding:28px}.brand-mini-paper{width:68px;height:94px}.brand-layout-choice{padding:16px}.brand-layout-choice small{min-height:0}.brand-preview-stage{padding:30px}.brand-document{min-height:680px}.brand-document-body{padding:30px}.brand-preview-toolbar h2{font-size:24px}}
@media(max-width:700px){.company-tabs{gap:24px;margin-bottom:24px}.company-tabs [role=tab]{font-size:11px;min-height:50px;padding-bottom:15px}.brand-controls{padding:25px 21px;border-radius:19px}.brand-section-intro h2{font-size:24px;max-width:270px}.brand-section-intro p{font-size:12px}.brand-layout-choice{padding:11px 8px}.brand-layout-choice small{font-size:9px;min-height:28px}.brand-mini-paper{width:56px;height:82px}.brand-logo-upload{gap:14px}.brand-logo-preview{width:94px;height:87px}.brand-field-pair{gap:11px}.brand-save-buttons{flex-direction:column;align-items:stretch;gap:4px}.brand-save-buttons .button{width:100%}.brand-preview-stage{padding:19px 12px;border-radius:13px}.brand-document-body{padding:23px 18px}.brand-document{min-height:620px}.brand-document-header{gap:11px}.brand-document-wordmark strong{font-size:11px}.brand-document-title{margin-top:22px}.brand-preview-toolbar h2{font-size:23px}}
@container(max-width:310px){.brand-document{min-height:560px}.brand-document-body{padding:17px 12px}.brand-document-title h3{font-size:21px}.brand-document[data-layout=accent] .brand-document-title h3{font-size:18px}.brand-document-meta{gap:12px}.brand-document-table th:first-child{width:49%}.brand-document-table th:nth-child(2){width:20%}.brand-document-table{font-size:8px}.brand-document-table small{font-size:7px}.brand-document-totals{width:85%}.brand-document-totals .brand-document-total{font-size:9px}.brand-document-contact{font-size:7px}.brand-document-contact strong{font-size:8px}.brand-document-wordmark strong{font-size:10px}}
@media(max-width:360px){.company-tabs{gap:18px}.company-tabs [role=tab]{font-size:10px}.brand-controls{padding:23px 17px}.brand-layout-choices{gap:7px}.brand-layout-choice{padding:10px 6px}.brand-layout-choice small{font-size:8px}.brand-logo-preview{width:80px;height:78px}.brand-studio .brand-upload-label{padding:10px;font-size:10px}.brand-palette{margin-left:0}.brand-fieldset legend{font-size:12px}.brand-document-switch button{font-size:10px;padding-inline:11px}}

.portal-mobile-exit{display:none}
@media(max-width:700px){.portal-mobile-exit{display:block;padding:5px 0 12px;font-size:11px;color:var(--muted);min-height:40px}}
