.company-page { --background-wash: #fafbf8ee; }
.company-page .company-topbar { height: 70px; padding: 0 max(25px, calc((100vw - 1240px) / 2)); background: var(--surface); border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.back-link { font-size: 14px; text-decoration: none; color: var(--muted); }
.back-link:hover { color: var(--ink); }
.product-wordmark { font-weight: 700; font-size: 16px; letter-spacing: 1.5px; }
.company-main { max-width: 1240px; margin: 0 auto; padding: 40px 25px 0; }
.company-page-heading { display: flex; justify-content: space-between; align-items: center; gap: 25px; margin-bottom: 32px; }
.company-page-heading h1 { font-size: 36px; margin: 10px 0 12px; }
.company-page-heading > div > p:last-child { font-size: 16px; color: var(--muted); line-height: 1.7; }
.company-scope { font-size: 12px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 20px; color: var(--muted); white-space: nowrap; }
.company-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, 1fr); gap: 30px; align-items: start; }
.company-fields { min-width: 0; }
.setup-section { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 25px; margin-bottom: 22px; }
.setup-section-title { display: flex; gap: 13px; margin-bottom: 25px; }
.setup-section-title > span { color: var(--muted); background: var(--sidebar); padding: 8px; border-radius: 8px; height: fit-content; font-size: 12px; }
.setup-section-title h2 { font-size: 18px; font-weight: 600; margin-bottom: 7px; }
.setup-section-title p { color: var(--muted); font-size: 13px; line-height: 1.7; }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 550; margin-bottom: 19px; min-width: 0; }
.field input, .field textarea, .field select { width: 100%; border: 1px solid var(--border); border-radius: 8px; padding: 11px 12px; color: var(--ink); background: var(--bg); font-size: 14px; line-height: 1.6; }
.field textarea { resize: vertical; min-height: 68px; }
.field small, .field-help { color: var(--muted); font-size: 12px; font-weight: 400; line-height: 1.8; }
.field-grid { display: grid; grid-template-columns: minmax(0, 1fr) 140px; gap: 16px; }
.colour-field > span { display: flex; align-items: center; gap: 9px; }
.colour-field input { width: 42px; height: 42px; padding: 4px; cursor: pointer; }
.colour-field output { color: var(--muted); font-size: 13px; font-family: Consolas, monospace; }
.upload-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.upload-card { min-width: 0; }
.active-toggle { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 500; white-space: nowrap; cursor: pointer; }
.active-toggle > input { width: 14px; height: 14px; margin: 0; accent-color: #52764c; cursor: pointer; }
.configurable-element, .upload-card, .tile-config-item { position: relative; }
.configurable-element > .active-toggle, .upload-card > .active-toggle { position: absolute; right: 0; top: 0; }
.configurable-element > .field { padding-top: 0; }
.upload-card > label:not(.active-toggle) { padding-right: 65px; }
.setup-section-title > .active-toggle { margin-left: auto; align-self: flex-start; margin-top: 3px; }
.tile-config-item > .active-toggle { position: absolute; top: 15px; right: 35px; }
.tile-config-item > .tile-editor > summary { padding-right: 105px; }
.tile-editor.inactive > summary { color: var(--muted); background: var(--sidebar); border-radius: 10px; }
.upload-card > label { display: block; font-size: 14px; font-weight: 550; margin-bottom: 10px; }
.upload-card > label.active-toggle { display: inline-flex; font-size: 12px; margin-bottom: 0; }
.upload-preview { border: 1px dashed var(--border); border-radius: 9px; height: 115px; display: flex; align-items: center; justify-content: center; background: var(--bg); margin-bottom: 10px; overflow: hidden; padding: 15px; }
.upload-preview > span { color: var(--muted); font-size: 12px; text-align: center; }
.upload-preview img { max-width: 100%; max-height: 100%; object-fit: contain; }
.logo-preview { background-image: linear-gradient(45deg, #81908008 25%, transparent 25%), linear-gradient(-45deg, #81908008 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #81908008 75%), linear-gradient(-45deg, transparent 75%, #81908008 75%); background-size: 14px 14px; background-position: 0 0, 0 7px, 7px -7px, -7px 0; }
.upload-card > input { font-size: 12px; padding: 5px 0; width: 100%; border: none; background: transparent; }
.upload-card > input::file-selector-button { background: var(--hover); color: var(--ink); padding: 8px 10px; border: none; border-radius: 6px; margin-right: 8px; font: inherit; cursor: pointer; }
.upload-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin: 7px 0 12px; }
.upload-actions small { font-size: 12px; color: var(--muted); line-height: 1.6; }
.text-button { font-size: 12px; color: var(--muted); padding: 4px 0; text-decoration: underline; text-underline-offset: 3px; }
.background-preview { height: 130px; padding: 0; }
.background-preview img { width: 100%; height: 100%; object-fit: cover; }
.count-badge { display: inline-block; font-size: 12px; font-weight: 400; background: var(--hover); border-radius: 20px; padding: 3px 7px; vertical-align: middle; margin-left: 5px; }
.tile-editor { border: 1px solid var(--border); border-radius: 10px; margin-bottom: 12px; }
.tile-editor > summary { display: flex; align-items: center; gap: 9px; padding: 14px; font-size: 14px; cursor: pointer; list-style: none; }
.tile-editor > summary::-webkit-details-marker { display: none; }
.tile-editor > summary::after { content: "+"; margin-left: auto; color: var(--muted); }
.tile-editor[open] > summary::after { content: "−"; }
.tile-editor > summary > .icon { width: 17px; height: 17px; color: var(--muted); }
.tile-editor-fields { padding: 0 14px 14px; border-top: 1px solid var(--border); padding-top: 18px; }
.tile-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.tile-actions > span { display: flex; gap: 6px; }
.tile-actions button { padding: 6px 9px; border: 1px solid var(--border); border-radius: 6px; font-size: 12px; }
.tile-actions button:disabled { opacity: .35; }
.tile-actions .remove-tile { color: #b05e4b; }
.add-tile { width: 100%; border: 1px dashed #aab9a2; border-radius: 9px; padding: 14px; display: flex; justify-content: center; align-items: center; gap: 8px; font-size: 14px; color: var(--ink); }
.add-tile:hover { background: var(--soft); }
.add-tile > span { font-size: 20px; }
.add-tile + .field-help { margin-top: 13px; }
.company-preview { position: sticky; top: 25px; min-width: 0; }
.preview-label { display: flex; gap: 7px; align-items: center; color: var(--muted); font-size: 12px; letter-spacing: 1px; margin: 3px 0 15px; }
.preview-label > span:last-child { margin-left: auto; letter-spacing: 0; }
.mini-workspace { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; position: relative; }
.mini-background { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .16; }
.mini-content { position: relative; padding: 25px 23px; text-align: center; }
.mini-content > .eyebrow { font-size: 12px; letter-spacing: 1px; overflow-wrap: anywhere; }
.mini-hero { height: 90px; margin: 18px auto 15px; display: flex; align-items: center; justify-content: center; }
.mini-hero img { max-width: 160px; max-height: 90px; object-fit: contain; }
.mini-hero > span { font-size: 45px; color: #9faf8c; }
.mini-content h2 { font-size: 28px; font-weight: 500; letter-spacing: -.8px; line-height: 1.2; white-space: pre-line; overflow-wrap: anywhere; }
.mini-content > p:not(.eyebrow) { font-size: 12px; color: var(--muted); line-height: 1.8; white-space: pre-line; margin: 16px 0 24px; overflow-wrap: anywhere; }
.mini-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; text-align: left; margin-top: 20px; }
.mini-tile { min-width: 0; border: 1px solid var(--border); border-radius: 9px; background: var(--bg); padding: 12px; overflow-wrap: anywhere; }
.mini-tile > .icon { display: block; color: var(--muted); width: 15px; height: 15px; margin-bottom: 9px; }
.mini-tile strong { font-size: 12px; display: block; margin-bottom: 6px; }
.mini-tile p { font-size: 12px; color: var(--muted); line-height: 1.6; }
.mini-composer { border: 1px solid var(--border); border-radius: 10px; background: var(--bg); padding: 16px 13px; display: flex; align-items: center; gap: 10px; justify-content: space-between; text-align: left; margin-top: 25px; color: var(--muted); font-size: 12px; }
.mini-composer > svg { width: 24px; height: 24px; flex-shrink: 0; }
.preview-help { color: var(--muted); font-size: 12px; line-height: 1.8; padding: 15px 4px; }
.company-savebar { position: sticky; bottom: 0; z-index: 5; background: var(--surface); border: 1px solid var(--border); border-bottom: 0; border-radius: 12px 12px 0 0; padding: 18px 22px; display: flex; align-items: center; justify-content: space-between; gap: 20px; box-shadow: 0 -8px 35px #19352508; }
.company-savebar strong { display: block; font-size: 14px; font-weight: 550; }
.company-savebar > div > span { display: block; color: var(--muted); font-size: 12px; margin-top: 5px; }
.company-savebar [role="alert"] { color: #b05e4b; font-size: 13px; line-height: 1.7; margin-top: 5px; max-width: 600px; }
.save-actions { display: flex; flex-shrink: 0; gap: 9px; }
.setup-notice { background: var(--soft); border-radius: 10px; padding: 20px; line-height: 1.8; font-size: 16px; }
@media (max-width: 900px) { .company-layout { grid-template-columns: minmax(0, 1fr); } .company-preview { position: static; max-width: 500px; width: 100%; margin: 0 auto 25px; } .company-scope { display: none; } }
@media (max-width: 540px) { .company-main { padding: 27px 15px 0; } .company-page-heading h1 { font-size: 29px; } .setup-section { padding: 19px; } .upload-grid { grid-template-columns: 1fr; } .field-grid { grid-template-columns: 1fr; gap: 0; } .company-savebar { padding: 14px; flex-direction: column; align-items: stretch; gap: 12px; } .save-actions { justify-content: flex-end; } .company-savebar > div > span { font-size: 12px; } }
