/* Customer branding is independent of room colours and availability states. */
:root {
  --brand-primary: #6554e8;
  --brand-text: #6554e8;
  --brand-strong: #5140c9;
  --brand-soft: #f0edfd;
  --brand-border: #d8d2f8;
  --brand-on: #fff;
  --brand-accent: #ff9869;
  --brand-accent-soft: #fff2ea;
  --brand-shadow: #6554e826;
  --coral: var(--brand-text);
  --coral-soft: var(--brand-soft);
  --ink: #24233b;
  --muted: #707084;
  --line: #e9e8f0;
  --canvas: #f8f9fd;
  --shadow: 0 14px 36px #39335c0c;
}
body { -webkit-font-smoothing: antialiased; }
.sidebar { background: #fff; color: var(--ink); border-right: 1px solid var(--line); padding-top: 34px; }
.brand { color: var(--ink); gap: 10px; font-size: 27px; }
.brand-mark { background: var(--brand-primary); border-radius: 11px 11px 11px 4px; transform: rotate(-5deg); }
.brand-mark span { background: var(--brand-on); }
.brand-logo { width: 34px; height: 34px; object-fit: contain; flex-shrink: 0; }
[data-brand-name] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-item { color: #747389; font-size: 14px; padding-top: 14px; padding-bottom: 14px; }
.nav-item:hover { color: var(--brand-text); background: var(--brand-soft); }
.nav-item.active { color: var(--brand-text); background: var(--brand-soft); box-shadow: none; }
.nav-item.active svg { stroke-width: 2.2; }
.mini-profile { border-color: var(--line); }
.avatar { color: var(--brand-text); background: var(--brand-soft); }
.mini-profile small { color: var(--muted); }
.main-content { padding-top: 36px; }
.topbar { margin-bottom: 26px; }
h1 { letter-spacing: -.8px; font-weight: 780; }
.eyebrow { color: var(--brand-text); font-size: 11px; letter-spacing: 1.3px; }
.section-intro { position: relative; overflow: hidden; border: 1px solid var(--brand-border); border-radius: 20px; background: linear-gradient(110deg,var(--brand-soft),#fff 75%); padding: 28px; }
.section-intro::after { content: ''; position: absolute; width: 120px; height: 120px; right: -35px; top: -50px; border: 24px solid var(--brand-accent-soft); border-radius: 50%; pointer-events: none; }
.section-intro > * { position: relative; z-index: 1; }
.section-intro h2 { font-size: 27px; line-height: 1.45; letter-spacing: -.7px; }
.section-intro p { font-size: 14px; }
.rooms-eyebrow, .text-action, .more-events { color: var(--brand-text); }
.step-label { color: var(--brand-text); }
.result-heading .step-label { display: block; margin-bottom: 6px; }
.result-heading > strong { display: block; }
.primary-button { color: var(--brand-on); background: var(--brand-primary); box-shadow: 0 5px 12px var(--brand-shadow); }
.primary-button:hover { color: var(--brand-on); background: var(--brand-strong); }
.secondary-button:hover { color: var(--brand-text); border-color: var(--brand-border); background: var(--brand-soft); }
button:focus-visible, a:focus-visible { outline: 3px solid var(--brand-text); outline-offset: 3px; }
input, select, textarea { accent-color: var(--brand-primary); }
.room-search-panel { border-radius: 18px; padding: 21px; box-shadow: 0 5px 20px #39335c06; }
.search-field > span, .search-field > label { color: #646279; font-size: 13px; }
.search-field > select, .field-box { background-color: #fafafe; border-color: #e5e3ee; font-size: 14px; border-radius: 10px; }
.search-field > select:focus, .field-box:focus-within { border-color: var(--brand-text); box-shadow: 0 0 0 3px var(--brand-soft); }
.field-box small, .field-box input[type=time] { color: var(--brand-text); }
.chip.active { color: var(--brand-text); border-color: var(--brand-border); background: var(--brand-soft); }
.room-search-panel .advanced-filters { border-radius: 12px; background: var(--canvas); }
.search-prompt { border: 1px dashed var(--brand-border); border-radius: 14px; background: #fff; padding: 25px 20px; }
.search-prompt strong { color: var(--muted); font-size: 14px; }
.room-card { border-radius: 18px; box-shadow: 0 3px 12px #39335c04; }
.room-card:hover { border-color: var(--brand-border); box-shadow: var(--shadow); }
.room-card-actions button:last-child { color: var(--brand-text); background: var(--brand-soft); padding: 9px 12px; border-radius: 9px; }
.calendar-card, .calendar-toolbar, .metric-card, .dashboard-card { border-color: var(--line); box-shadow: 0 4px 18px #39335c05; }
.calendar-toolbar { border-radius: 16px; }
.selected-room-card { border-color: var(--brand-border); background: var(--brand-soft); }
.selected-room-card > div small, .selected-room-card summary, .selected-room-card > button, .agenda-meeting-copy small { color: var(--brand-text); }
.selected-room-card > button { border-color: var(--brand-border); }
.agenda-meeting:hover, .room-picker-option:hover, .room-picker-option.selected { border-color: var(--brand-border); background: var(--brand-soft); }
.resource-free { background: white; color: var(--brand-text); }
.resource-free:hover, .resource-free:focus-visible { background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand-border); }
.month-cell:hover, .month-cell.today { background: var(--brand-soft); }
.month-cell.today .month-date { background: var(--brand-primary); color: var(--brand-on); }
/* Room identity stays stable when a customer changes their brand. */
.event.room531, .resource-event.room531, .month-event.room531 { background: #f0edfd; border-color: #7960d4; color: #51418b; }
.room-color.coral { background: #7960d4; }
.calendar-surface-toggle button.active, .back-to-detail, .booking-suggestions button { color: var(--brand-text); }
.more-filter-button.active, .booking-suggestions button { border-color: var(--brand-border); }
.booking-suggestions button:hover, .month-date:hover { background: var(--brand-soft); }
.month-date:focus-visible { outline-color: var(--brand-text); }
.room-choice-field select { border-color: var(--brand-border) !important; background-color: var(--brand-soft) !important; }
.room-choice-field select:focus { border-color: var(--brand-text) !important; }
.bar-chart span { background: linear-gradient(to top,var(--brand-primary),var(--brand-border)); }
.panel-logo { display: inline-flex; align-items: center; gap: 9px; max-width: 70%; }
.phone-preview #confirm-arrival { background: var(--brand-primary); color: var(--brand-on); }
.phone-preview #confirm-arrival:disabled { background: var(--green); color: white; }
.brand-settings-trigger { display: flex; gap: 10px; align-items: center; width: 100%; padding: 12px 10px; margin: 18px 0; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); text-align: left; font-size: 12px; }
.brand-settings-trigger > span:first-child { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 9px; background: var(--brand-soft); color: var(--brand-text); font-size: 22px; }
.brand-settings-trigger small { display: block; font-size: 9px; color: var(--muted); letter-spacing: 1px; margin-top: 3px; }
.brand-settings-trigger:hover { border-color: var(--brand-border); }
.brand-dialog { width: min(1080px,calc(100% - 32px)); max-height: calc(100dvh - 40px); padding: 30px; border: 1px solid var(--line); border-radius: 24px; color: var(--ink); background: #fff; box-shadow: 0 30px 100px #24233b30; }
.brand-dialog::backdrop { background: #24233b55; backdrop-filter: blur(4px); }
.brand-dialog-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.brand-dialog h2 { font-size: 25px; margin: 5px 0 0; letter-spacing: -.7px; }
.brand-description { font-size: 13px; color: var(--muted); line-height: 1.8; }
.brand-presets { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin: 22px 0; }
.brand-presets button { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); padding: 12px 8px; border-radius: 12px; background: white; text-align: left; color: var(--ink); }
.brand-presets button[aria-pressed=true] { border-color: var(--brand-text); background: var(--brand-soft); }
.brand-presets i { width: 22px; height: 30px; border-radius: 9px; background: var(--swatch); flex-shrink: 0; }
.brand-presets span { font-size: 12px; font-weight: 700; }
.brand-presets small { display: block; color: var(--muted); margin-top: 5px; font-size: 9px; font-weight: 400; }
.brand-field { display: grid; gap: 9px; margin: 17px 0; font-size: 13px; font-weight: 650; }
.brand-field input:not([type=color]) { width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 10px; padding: 11px; background: #fafafe; color: var(--ink); }
.brand-field input:focus-visible { outline: 2px solid var(--brand-text); outline-offset: 2px; }
.brand-field input[type=color] { width: 100%; height: 42px; padding: 4px; background: #fff; border: 1px solid var(--line); border-radius: 9px; cursor: pointer; }
.brand-field small, .brand-local-note { font-size: 11px; color: var(--muted); line-height: 1.7; font-weight: 400; }
.brand-field .text-action { justify-self: start; padding: 0; font-size: 12px; }
.brand-colors { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.brand-colors .brand-field { margin: 0; }
.brand-message { color: #a34038; font-size: 12px; }
.brand-message:empty { display: none; }
.brand-local-note { background: var(--canvas); padding: 10px 12px; border-radius: 10px; }
.brand-dialog-footer { display: flex; justify-content: flex-end; gap: 9px; margin-top: 22px; }
.brand-dialog-footer .text-action { margin-right: auto; }
@media(max-width:980px) and (min-width:681px) { .brand-settings-trigger { justify-content: center; padding: 8px; }.brand-settings-trigger > span:last-child { display: none; }.brand { padding-left: 0; }.brand > .brand-logo { display: block; } }
@media(max-width:680px) {
  .sidebar { padding: 8px; border-top: 1px solid var(--line); box-shadow: 0 -4px 20px #39335c08; }
  .main-content { padding-top: 24px; }
  .nav-item { font-size: 9px; padding: 7px 3px; }
  .nav-item.active { box-shadow: none; }
  .section-intro { padding: 21px; border-radius: 16px; }
  .section-intro h2 { font-size: 23px; }
  .room-search-panel { padding: 16px; }
  .brand-settings-trigger { position: fixed; top: 19px; right: 15px; width: 38px; padding: 4px; margin: 0; z-index: 31; }
  .sidebar-bottom { display: block; }
  .sidebar-bottom .mini-profile, .brand-settings-trigger > span:last-child { display: none; }
  .topbar { padding-right: 48px; }
  .brand-dialog { padding: 22px 18px; }
  .brand-dialog h2 { font-size: 22px; }
  .brand-presets button { flex-direction: column; align-items: flex-start; }
}
/* Sidebar modes are derived from the brand, including readable foregrounds. */
.sidebar { background: var(--sidebar-bg,#fff); color: var(--sidebar-fg,var(--ink)); border-color: var(--sidebar-line,var(--line)); }
.sidebar .brand, .sidebar .mini-profile strong { color: var(--sidebar-fg,var(--ink)); }
.sidebar .nav-item, .sidebar .mini-profile small, .sidebar .icon-only { color: var(--sidebar-muted,#747389); }
.sidebar .nav-item:hover, .sidebar .nav-item.active { background: var(--sidebar-active-bg,var(--brand-soft)); color: var(--sidebar-active-fg,var(--brand-text)); }
.sidebar .nav-item.active { box-shadow: none; }
.sidebar .mini-profile { border-color: var(--sidebar-line,var(--line)); }
.sidebar .avatar, .sidebar .brand-settings-trigger > span:first-child { background: var(--sidebar-active-bg,var(--brand-soft)); color: var(--sidebar-active-fg,var(--brand-text)); }
.sidebar .brand-settings-trigger { background: var(--sidebar-bg,#fff); color: var(--sidebar-fg,var(--ink)); border-color: var(--sidebar-line,var(--line)); }
.sidebar .brand-settings-trigger small { color: var(--sidebar-muted,var(--muted)); }
.sidebar .brand-settings-trigger:hover { border-color: var(--sidebar-indicator,var(--brand-text)); }
.sidebar :focus-visible { outline-color: var(--sidebar-active-fg,var(--brand-text)); }
:root:not([data-sidebar-style=light]) .sidebar .brand-logo { background: white; border-radius: 8px; padding: 3px; }
.sidebar-style-field { border: 0; padding: 0; margin: 24px 0; min-width: 0; }
.sidebar-style-field legend { font-size: 13px; font-weight: 650; }
.sidebar-style-field > p { font-size: 11px; color: var(--muted); margin: 6px 0 12px; }
.sidebar-style-options { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.sidebar-style-options label { position: relative; display: grid; gap: 6px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.sidebar-style-options label:has(input:checked) { border-color: var(--brand-text); background: var(--brand-soft); box-shadow: 0 0 0 1px var(--brand-text); }
.sidebar-style-options input { position: absolute; top: 11px; right: 10px; margin: 0; width: 15px; height: 15px; }
.sidebar-style-options label:has(input:focus-visible) { outline: 3px solid var(--brand-text); outline-offset: 3px; }
.sidebar-style-options strong { font-size: 12px; }
.sidebar-style-options small { font-size: 10px; color: var(--muted); }
.sidebar-style-preview { display: grid; align-content: center; gap: 5px; height: 66px; width: 48px; padding: 10px 6px; border: 1px solid #24233b14; border-radius: 7px; }
.sidebar-style-preview i { height: 5px; width: 30px; border-radius: 3px; background: #dedce8; }
.sidebar-style-preview i:first-child { background: #a195f1; }
.preview-light { background: #fff; }
.preview-dark { background: #252339; }
.preview-dark i { background: #666277; }
.preview-dark i:first-child { background: #b5a5ff; }
.preview-brand { background: var(--brand-strong); }
.preview-brand i { background: var(--brand-on); opacity: .6; }
.preview-brand i:first-child { opacity: 1; }
.room-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.room-location { color: var(--muted); font-size: 12px; margin: 7px 0 13px; }
.room-card-footer { align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.room-card-footer > small { line-height: 1.6; }
.room-card-actions { margin-left: auto; flex-wrap: wrap; align-items: center; }
.room-card-actions button:disabled { color: var(--muted); background: #f1f2f5; cursor: not-allowed; }
.available-badge.neutral { color: var(--ink); }
.available-badge.closed { color: #895d22; }
.availability-filter { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin: 0 0 18px; font-size: 13px; font-weight: 650; cursor: pointer; }
.availability-filter input { width: 17px; height: 17px; margin: 0; }
.availability-filter small { color: var(--muted); font-size: 11px; font-weight: 400; }
.map-room.room531, .map-room.room532, .map-room.room541, .map-room.room542 { width: 25%; height: 24%; background: #28785f; }
.map-room.room531 { left: 9%; top: 12%; }
.map-room.room532 { left: 9%; top: 48%; }
.map-room.room541 { left: auto; right: 9%; top: 12%; }
.map-room.room542 { right: 9%; top: 48%; }
.map-room.is-neutral { background: var(--brand-text); }
.map-room.is-closed { background: #82633a; }
.map-room.filtered-out { filter: none; opacity: .55; pointer-events: auto; border-style: dashed; }
.map-room b { font-size: 21px; }
.map-room small { font-size: 11px; }
.map-legend .closed { background: #82633a; }
.map-label.reception { right: 9%; bottom: 8%; width: 25%; height: 14%; }
.map-label.pantry { left: 9%; bottom: 8%; width: 25%; height: 14%; }
.zone-a { left: 40%; top: 13%; width: 20%; }
.zone-b { left: 40%; top: 49%; width: 20%; }
.corridor { left: 9%; top: 40%; width: 82%; transform: none; font-size: 11px; }
.room-color.amber { background: #bc7627; }
.event.room542, .resource-event.room542, .month-event.room542 { background: #fff2df; border-left: 3px solid #bc7627; color: #825119; }
@media(max-width:680px) { .room-grid { grid-template-columns: 1fr; }.map-topbar { align-items: flex-start; gap: 12px; }.map-legend { flex-wrap: wrap; gap: 9px; }.availability-filter small { flex-basis: 100%; margin-left: 26px; } }
@media(prefers-reduced-motion:reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
/* Brand editor: settings beside a scaled copy of the actual login screen. */
.brand-editor-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.1fr); gap: 30px; align-items: start; margin-top: 25px; }
.brand-editor-fields { min-width: 0; }
.brand-section-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 16px; font-size: 14px; }
.brand-section-title > span { font-size: 10px; font-weight: 400; color: var(--muted); }
.login-brand-settings { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.login-mode-field { padding: 0; margin: 0; border: 0; min-width: 0; }
.login-mode-field legend { margin-bottom: 10px; font-size: 13px; font-weight: 650; }
.login-mode-options { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; }
.login-mode-options label { position: relative; display: grid; gap: 9px; padding: 9px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.login-mode-options input { position: absolute; bottom: 10px; right: 8px; accent-color: var(--brand-text); }
.login-mode-options label:has(input:checked) { border-color: var(--brand-text); background: var(--brand-soft); }
.login-mode-options label:has(input:focus-visible) { outline: 2px solid var(--brand-text); outline-offset: 3px; }
.login-mode-options strong { font-size: 11px; padding-right: 15px; }
.login-mode-swatch { height: 48px; border-radius: 5px; background: var(--brand-soft); border: 1px solid #24233b0a; }
.mode-brand { background: linear-gradient(125deg,var(--brand-soft),var(--brand-accent-soft)); }
.mode-illustration { background: #fafafe url('assets/login-corner-scene-v1.png') center / contain no-repeat; }
.mode-photo { background: #e5e8e5 url('assets/login-architectural-v2.png') center / cover; }
.brand-field input[type=range] { padding: 0; height: 24px; border: 0; accent-color: var(--brand-text); cursor: pointer; }
.brand-field output { color: var(--muted); font-size: 11px; font-weight: 400; }
.login-position-controls { margin-top: 20px; }
.brand-preview-panel { position: sticky; top: 0; min-width: 0; padding: 20px; background: #f7f7fb; border: 1px solid var(--line); border-radius: 16px; }
.brand-preview-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; margin-bottom: 17px; }
.brand-preview-heading .eyebrow { font-size: 9px; color: var(--brand-text); letter-spacing: 1.6px; margin: 0 0 6px; }
.brand-preview-heading h3 { font-size: 15px; margin: 0; }
.brand-preview-devices { display: flex; padding: 3px; gap: 3px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.brand-preview-devices button { padding: 7px 10px; border: 0; border-radius: 5px; background: transparent; color: var(--muted); font-size: 11px; }
.brand-preview-devices button[aria-pressed=true] { background: var(--brand-soft); color: var(--brand-text); }
.brand-preview-frame { position: relative; width: 100%; aspect-ratio: 5/4; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--brand-soft); touch-action: pan-y; }
.brand-preview-frame[data-device=mobile] { width: min(64%,230px); aspect-ratio: 390/1040; margin-inline: auto; border-radius: 19px; border: 5px solid #353341; }
.brand-preview-frame[data-draggable=true] { cursor: grab; touch-action: none; }
.brand-preview-frame[data-draggable=true]:active { cursor: grabbing; }
.brand-preview-surface { position: absolute; top: 0; left: 0; width: 1200px; height: 960px; transform-origin: top left; pointer-events: none; }
.brand-preview-surface .login-page { min-height: 100%; height: 100%; padding: 48px 24px 28px; }
.brand-preview-surface .login-main { padding: 30px 32px; }
.brand-preview-surface .login-content h1 { font-size: 23px; }
.brand-preview-surface .login-field input { font-size: 14px; }
.brand-preview-surface .login-background-photo { display: none !important; }
.brand-preview-surface [data-login-mode=photo] .login-background-photo { display: block !important; }
.brand-preview-surface [data-login-mode=photo] .login-backdrop::before { display: block; }
.brand-preview-surface [data-login-mode=illustration] .login-background-art { display: block; }
.brand-preview-frame[data-device=mobile] .login-page { padding: 28px 18px 22px; gap: 20px; }
.brand-preview-frame[data-device=mobile] .login-main { padding: 26px 24px; border-radius: 18px; }
.brand-preview-frame[data-device=mobile] .login-content h1 { font-size: 21px; }
.brand-preview-frame[data-device=mobile] .login-background-art { position: static; inset: auto; width: 140px; height: 110px; max-height: none; flex-shrink: 0; }
.brand-preview-frame[data-device=mobile] .login-background-photo, .brand-preview-frame[data-device=mobile] [data-login-mode=photo] .login-backdrop::before { display: none !important; }
.brand-preview-frame[data-device=mobile] .login-footer { color: #68667b; background: transparent; padding: 0; border: 0; }
.brand-preview-hint { font-size: 11px; line-height: 1.8; color: var(--muted); margin: 12px 0 0; }
.brand-preview-note { padding-top: 18px; margin-top: 18px; border-top: 1px solid var(--line); }
.brand-preview-note strong { font-size: 12px; }
.brand-preview-note p { font-size: 11px; line-height: 1.8; color: var(--muted); margin: 7px 0 0; }
.brand-dialog-footer { position: sticky; bottom: -30px; padding: 18px 0; margin-bottom: -18px; background: #fff; border-top: 1px solid var(--line); z-index: 2; }
.art-position-field, .art-base-field { border: 0; padding: 0; margin: 20px 0; min-width: 0; }
.art-position-field legend, .art-base-field legend { font-size: 13px; font-weight: 650; margin-bottom: 10px; }
.art-position-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.art-position-options label { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 9px; padding: 12px; font-size: 12px; cursor: pointer; }
.art-position-options input { accent-color: var(--brand-text); }
.art-position-options span { color: var(--brand-text); font-size: 17px; }
.art-position-options label:has(input:checked) { background: var(--brand-soft); border-color: var(--brand-text); }
.art-position-options label:has(input:focus-visible) { outline: 2px solid var(--brand-text); outline-offset: 3px; }
.art-base-options, .brand-asset-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.art-base-options label { display: flex; align-items: center; gap: 6px; font-size: 12px; cursor: pointer; }
.art-base-options input { accent-color: var(--brand-text); }
.brand-asset-actions .text-action, .brand-sample-download { font-size: 12px; padding: 0; }
.brand-sample-download { display: inline-block; margin-left: 12px; }
.brand-upload-hint { font-size: 11px; line-height: 1.8; color: var(--muted); }
@media(max-width:760px) {
  .brand-editor-layout { grid-template-columns: 1fr; gap: 24px; }
  .brand-preview-panel { position: static; }
  .brand-dialog-footer { bottom: -22px; }
}

/* Website identity stays readable at the actual browser-tab icon size. */
.brand-site-settings { margin: 24px 0; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.brand-icon-options { display: grid; gap: 12px; margin: 0; padding: 0; border: 0; font-size: 12px; }
.brand-icon-options legend { margin-bottom: 12px; font-size: 13px; font-weight: 650; }
.brand-icon-options label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.brand-icon-options input { accent-color: var(--brand-text); }
.brand-browser-preview { margin-top: 18px; padding: 12px 12px 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #eeedf4; }
.brand-browser-tab { display: flex; align-items: center; gap: 9px; max-width: 280px; padding: 11px 12px; border-radius: 9px 9px 0 0; background: white; font-size: 11px; }
.brand-browser-tab img { flex: 0 0 16px; object-fit: contain; }
.brand-browser-tab #brand-tab-title { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; flex: 1; }
.brand-browser-tab > span:last-child { color: var(--muted); }
.brand-browser-bar { display: flex; gap: 12px; margin: 0 -12px; padding: 10px 12px; background: white; font-size: 10px; color: var(--muted); }

/* Brand editing lives directly in its settings page. */
#view-settings { min-width:0;container-name:brand-settings;container-type:inline-size; }
#view-settings .brand-page-editor { position:static;display:block;width:100%;max-width:none;max-height:none;margin:0;padding:24px;border:1px solid var(--line);border-radius:16px;background:#fff;box-shadow:none; }
#view-settings .brand-page-editor[hidden] { display:none; }
#view-settings .brand-dialog-head h2 { font-size:20px;margin:0; }
#view-settings .brand-dialog-head .eyebrow { display:none; }
#view-settings .brand-description { font-size:13px;line-height:1.8; }
#view-settings .brand-editor-layout { grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px; }
#view-settings .brand-preview-panel { top:18px; }
#view-settings .brand-dialog-footer { bottom:0;margin-bottom:-24px;padding:16px 0; }
#view-settings .brand-dialog-footer :is(.primary-button,.secondary-button) { font-size:13px; }
.brand-leave-dialog { width:min(440px,calc(100% - 32px));padding:24px;border:1px solid var(--line);border-radius:16px;color:var(--ink);background:white;box-shadow:0 20px 80px #24233b30; }
.brand-leave-dialog::backdrop { background:#24233b55;backdrop-filter:blur(3px); }
.brand-leave-dialog h2 { margin:0 0 12px;font-size:20px; }.brand-leave-dialog p { color:var(--muted);font-size:13px;line-height:1.8; }
@container brand-settings (max-width:850px){#view-settings .brand-editor-layout { grid-template-columns:minmax(0,1fr); }#view-settings .brand-preview-panel { position:static; }}
@media(max-width:600px){#view-settings .brand-page-editor { padding:16px; }#view-settings .brand-dialog-footer { margin-bottom:-16px; }#view-settings .brand-preview-panel { padding:14px; }}
