:root {
  --ink: #17212b;
  --muted: #657281;
  --paper: #f4f6f8;
  --panel: #ffffff;
  --line: #d8e0e5;
  --soft-line: #e8edf0;
  --navy: #1c2a2f;
  --navy-2: #26363a;
  --blue: #176b68;
  --blue-2: #2a827a;
  --teal: #21866d;
  --amber: #b77716;
  --red: #b74747;
  --green: #21866d;
  --focus: #5fa39d;
  --shadow: 0 16px 40px rgba(23, 33, 43, 0.08);
  --radius-sm: 10px;
  --radius-md: 12px;
  --radius-lg: 16px;
  font-family: "Source Sans 3", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
}

button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid rgba(95, 163, 157, 0.45);
  outline-offset: 2px;
}

.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(360px, .82fr) minmax(520px, 1.18fr); background: var(--paper); }
.login-context { position: relative; isolation: isolate; overflow: hidden; display: grid; min-height: 100vh; padding: 42px; background: var(--navy); color: #edf4ff; border-right: 1px solid rgba(255,255,255,.08); }
.login-context::before, .login-context::after { position: absolute; inset: 0; content: ""; pointer-events: none; }
.login-context::before { z-index: -2; background: linear-gradient(135deg, rgba(19, 32, 36, .94) 0%, rgba(28, 70, 71, .8) 44%, rgba(54, 119, 108, .5) 74%, rgba(18, 31, 37, .95) 100%), url("./assets/tukodph-login-abstract.png") center / cover no-repeat; opacity: .94; }
.login-context::after { z-index: -1; background: rgba(6, 15, 29, .42); }
.login-context-inner { position: relative; z-index: 1; width: min(100%, 460px); margin: auto; }
.login-brand { display: flex; align-items: center; gap: 11px; }
.login-brand .brand-mark { flex: 0 0 auto; }
.login-brand strong { display: block; font-size: 19px; font-weight: 650; letter-spacing: .01em; }
.login-brand small { display: block; margin-top: 2px; color: #9ba9bf; font-size: 11px; letter-spacing: .1em; }
.login-context-copy { margin-top: 116px; }
.login-context-copy .eyebrow { color: #9ba9bf; }
.login-context-copy h1 { max-width: 390px; margin: 12px 0 0; font-size: 36px; line-height: 1.1; font-weight: 650; letter-spacing: 0; }
.login-context-copy p { max-width: 390px; margin: 16px 0 0; color: #aebbd0; font-size: 16px; line-height: 1.55; }
.login-context-status { display: flex; align-items: center; gap: 9px; margin-top: 116px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); color: #aebbd0; }
.login-context-status strong, .login-context-status small { display: block; }
.login-context-status strong { color: #edf4ff; font-size: 13px; font-weight: 538; }
.login-context-status small { margin-top: 3px; font-size: 12px; }
.status-dot { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(33,134,109,.16); }
.login-panel { display: grid; place-items: center; padding: 42px; }
.login-card { width: min(430px, 100%); padding: 30px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 48px rgba(23,32,51,.08); }
.login-card-header { margin-bottom: 24px; }
.login-card-kicker { color: var(--blue); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.login-card-header h2 { margin: 9px 0 0; font-size: 27px; line-height: 1.1; font-weight: 650; }
.login-card-header p { margin: 8px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.login-field-group + .login-field-group { margin-top: 16px; }
.login-label { display: block; margin-bottom: 7px; color: #465267; font-size: 13px; font-weight: 538; }
.login-input-wrap { position: relative; }
.login-input { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: #fbfcfd; font-size: 14px; }
.login-input-wrap .login-input { padding-right: 42px; }
.login-input:focus { border-color: #6ca9a1; background: #fff; outline: 3px solid rgba(95,163,157,.16); }
.login-field-action { position: absolute; top: 50%; right: 8px; width: 30px; height: 30px; display: grid; place-items: center; transform: translateY(-50%); border: 0; border-radius: 7px; color: var(--muted); background: transparent; }
.login-field-action:hover { color: var(--blue); background: #edf5f3; }
.login-field-action svg { width: 16px; height: 16px; }
.login-error { display: flex; align-items: flex-start; gap: 8px; margin-top: 16px; padding: 10px 11px; border: 1px solid #e5b0b4; border-radius: 8px; color: #9c323a; background: #fff4f4; font-size: 13px; line-height: 1.4; }
.login-error svg { width: 15px; height: 15px; flex: 0 0 auto; margin-top: 1px; }
.login-submit { width: 100%; min-height: 44px; margin-top: 20px; }
.login-footnote { margin: 17px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; text-align: left; }

.app-shell { min-height: 100vh; display: flex; }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  width: 264px;
  background: var(--navy);
  color: #edf4ff;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255,255,255,.08);
}
.brand-row { height: 78px; display: flex; align-items: center; gap: 11px; padding: 0 24px; border-bottom: 1px solid rgba(255,255,255,.08); }
.brand-mark { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; background: #e5f0ef; color: var(--navy); font-weight: 800; font-size: 14px; letter-spacing: .02em; }
.brand-name { font-weight: 650; letter-spacing: .02em; }
.brand-sub { display: block; margin-top: 2px; color: #9ba9bf; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.tenant-zone { padding: 19px 16px 10px; }
.eyebrow { color: #9ba9bf; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; font-weight: 500; }
.tenant-switcher { position: relative; margin-top: 9px; }
.tenant-button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px; color: #f4f8ff; background: var(--navy-2); border: 1px solid rgba(255,255,255,.1); border-radius: 10px; text-align: left; }
.tenant-button:hover { border-color: rgba(255,255,255,.24); background: #31454a; }
.tenant-button > svg, .switcher-option > svg, .breadcrumb > svg, .button > svg, .table-action > svg, .metric-foot > svg, .status-banner > svg { width: 15px; height: 15px; flex: 0 0 auto; }
.tenant-icon { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: white; background: #3c7d7d; font-size: 12px; font-weight: 800; flex: 0 0 auto; }
.tenant-copy { min-width: 0; flex: 1; }
.tenant-name { display: block; font-size: 13px; font-weight: 538; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tenant-domain { display: block; color: #9ba9bf; font-size: 12px; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.switcher-menu { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 60; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px; box-shadow: 0 18px 38px rgba(12, 22, 39, .25); color: var(--ink); }
.switcher-search { width: 100%; background: #f7f9fb; border: 1px solid var(--line); border-radius: 8px; padding: 8px 9px; font-size: 13px; color: var(--ink); }
.switcher-list { display: grid; gap: 3px; margin-top: 7px; max-height: 210px; overflow: auto; }
.switcher-option { width: 100%; text-align: left; border: 0; background: transparent; padding: 9px; border-radius: 8px; display: flex; gap: 9px; align-items: center; color: var(--ink); }
.switcher-option:hover, .switcher-option.is-selected { background: #eaf3f2; }
.switcher-option .tenant-domain { color: var(--muted); }
.sidebar-nav { display: grid; gap: 3px; padding: 17px 12px; }
.nav-section-label { color: #91aaa8; font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .12em; padding: 8px 12px 6px; }
.nav-item { border: 0; width: 100%; color: #aebbd0; background: transparent; border-radius: 8px; min-height: 42px; padding: 0 12px; display: flex; align-items: center; gap: 11px; text-align: left; font-size: 14px; font-weight: 538; }
.nav-item:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav-item.is-active { color: #fff; background: #2a3e42; font-weight: 600; box-shadow: inset 3px 0 0 #67b5a6; }
.nav-item svg { width: 16px; height: 16px; opacity: .9; flex: 0 0 auto; }
.nav-badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; display: grid; place-items: center; color: #fff; background: #b65a54; font-size: 12px; }
.sidebar-bottom { margin-top: auto; padding: 15px 16px 19px; border-top: 1px solid rgba(255,255,255,.08); }
.secure-note { display: flex; gap: 8px; align-items: flex-start; color: #aebbd0; font-size: 12px; line-height: 1.5; }
.secure-note svg { width: 14px; flex: 0 0 auto; color: var(--green); }
.upload-summary > svg { width: 21px; height: 21px; flex: 0 0 auto; color: var(--teal); }
.user-mini { margin-top: 16px; display: flex; align-items: center; gap: 9px; }
.avatar { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: #17324c; background: #c4dcec; font-size: 11px; font-weight: 800; }
.user-mini-name { font-size: 12px; font-weight: 538; }
.user-mini-role { display: block; color: #8b9bb4; font-size: 12px; margin-top: 2px; text-transform: capitalize; }

.main { width: calc(100% - 264px); margin-left: 264px; min-height: 100vh; }
.topbar { height: 78px; display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 0 38px; background: rgba(244,246,248,.92); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; backdrop-filter: blur(14px); }
.breadcrumb { display: flex; align-items: center; gap: 9px; min-width: 0; }
.breadcrumb-label { color: var(--muted); font-size: 13px; font-weight: 538; }
.breadcrumb-current { color: var(--ink); font-size: 14px; font-weight: 600; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.icon-button { position: relative; width: 34px; height: 34px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); border-radius: 9px; display: grid; place-items: center; }
.icon-button:hover { border-color: #9bb9b3; color: var(--blue); }
.icon-button svg { width: 16px; height: 16px; }
.notification-dot { position: absolute; top: 6px; right: 6px; width: 6px; height: 6px; background: var(--red); border-radius: 50%; border: 1px solid white; }
.role-toggle { display: flex; align-items: center; background: #e9eef4; padding: 3px; border-radius: 9px; }
.role-toggle button { border: 0; padding: 7px 9px; border-radius: 7px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 450; text-transform: capitalize; }
.role-toggle button.is-active { background: #fff; color: var(--ink); font-weight: 500; box-shadow: 0 2px 7px rgba(23,32,51,.12); }
.page { padding: 28px 24px 48px; max-width: 1600px; margin: 0 auto; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.page-title { margin: 0; font-size: clamp(26px, 3vw, 37px); line-height: 1.08; letter-spacing: 0; font-weight: 650; }
.page-description { margin: 8px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; max-width: 670px; }
.heading-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; justify-content: flex-end; }
.button { min-height: 37px; border-radius: 9px; border: 1px solid var(--line); padding: 0 13px; background: #fff; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; font-weight: 500; white-space: nowrap; }
.button:hover { border-color: #9bb9b3; background: #f7faf9; }
.button svg { width: 15px; height: 15px; }
.button-primary { background: var(--blue); color: #fff; border-color: var(--blue); }
.button-primary:hover { background: #125a57; border-color: #125a57; }
.button-teal { background: var(--teal); color: #fff; border-color: var(--teal); }
.button-warning { color: #8a4f10; background: #fff8ec; border-color: #ebc98f; }
.button-danger { color: #9c323a; background: #fff4f4; border-color: #e5a7aa; }
.button-quiet { color: var(--muted); background: transparent; border-color: transparent; }
.button-quiet:hover { color: var(--ink); background: #e9eef4; border-color: #e9eef4; }
.button[disabled] { cursor: not-allowed; opacity: .5; }

.surface { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: 0 3px 10px rgba(23,32,51,.025); }
.surface-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 16px; border-bottom: 1px solid var(--soft-line); }
.surface-title { margin: 0; font-size: 16px; font-weight: 500; }
.surface-kicker { margin: 5px 0 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
.section-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(290px, .8fr); gap: 18px; }
.section-grid > *, .editor-grid > *, .builder-grid > * { min-width: 0; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.metric { padding: 16px 17px; position: relative; overflow: hidden; }
.metric::after { content: ""; position: absolute; width: 80px; height: 80px; right: -34px; bottom: -45px; border-radius: 50%; border: 1px solid var(--soft-line); }
.metric-label { color: var(--muted); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .07em; }
.metric-value { display: block; margin-top: 10px; font-size: 25px; line-height: 1; font-weight: 650; letter-spacing: 0; }
.metric-foot { display: flex; gap: 6px; align-items: center; margin-top: 10px; font-size: 12px; color: var(--muted); }
.metric-foot.positive { color: var(--green); }
.metric-foot.warning { color: var(--amber); }
.metric-icon { position: absolute; top: 15px; right: 15px; width: 27px; height: 27px; border-radius: 8px; display: grid; place-items: center; background: #edf4f3; color: var(--blue); }
.metric-icon svg { width: 14px; height: 14px; }

.tenant-table { width: 100%; border-collapse: collapse; table-layout: auto; }
.table-wrap { overflow-x: visible; }
.tenant-table th, .tenant-table td { padding: 13px 14px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--soft-line); font-size: 14px; }
.tenant-table th:first-child, .tenant-table td:first-child { width: 220px; min-width: 220px; }
.tenant-table th:last-child, .tenant-table td:last-child { width: 145px; text-align: center; white-space: nowrap; }
.tenant-table th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .09em; font-weight: 500; }
.content-inventory-table th:nth-child(2), .content-inventory-table td:nth-child(2) { padding-left: 28px; padding-right: 28px; text-align: center; }
.tenant-table tr:last-child td { border-bottom: 0; }
.tenant-table tbody tr:hover { background: #fbfcfd; }
.tenant-cell { display: flex; align-items: center; gap: 9px; }
.tenant-cell .tenant-icon { width: 27px; height: 27px; font-size: 11px; }
.tenant-cell strong { display: block; font-size: 13px; font-weight: 538; line-height: 1.35; }
.tenant-cell small { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }
.status { display: inline-flex; align-items: center; gap: 5px; border-radius: 99px; padding: 5px 8px; font-size: 12px; font-weight: 538; white-space: nowrap; }
.status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status.live { color: var(--green); background: #edf8f3; }
.status.pending { color: var(--amber); background: #fff6e7; }
.status.draft { color: #64748b; background: #f0f3f6; }
.status.review { color: #aa5a26; background: #fff1e8; }
.status.published { color: var(--blue); background: #ecf4f2; }
.status.needs-changes { color: var(--red); background: #fff2f2; }
.table-action { color: var(--blue); border: 0; background: transparent; font-size: 13px; font-weight: 500; padding: 5px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; }
.table-action:hover { text-decoration: underline; }
.progress-track { width: 100%; height: 6px; border-radius: 99px; background: #edf1f4; overflow: hidden; }
.progress-bar { height: 100%; border-radius: inherit; background: var(--blue); }
.progress-bar.teal { background: var(--teal); }
.progress-bar.amber { background: #d48b32; }

.activity-list { display: grid; gap: 0; }
.activity-row { display: flex; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--soft-line); }
.activity-row:last-child { border-bottom: 0; }
.activity-marker { width: 26px; height: 26px; flex: 0 0 auto; border-radius: 8px; display: grid; place-items: center; background: #edf4f3; color: var(--blue); }
.activity-marker svg { width: 13px; height: 13px; }
.activity-copy { min-width: 0; }
.activity-copy strong { display: block; font-size: 13px; font-weight: 538; line-height: 1.45; }
.activity-copy span { display: block; margin-top: 3px; font-size: 12px; color: var(--muted); }
.insight-box { padding: 14px 16px; border-bottom: 1px solid var(--soft-line); }
.insight-box:last-child { border-bottom: 0; }
.insight-label { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-weight: 500; }
.insight-value { margin-top: 6px; font-size: 19px; font-weight: 538; }
.insight-copy { color: var(--muted); font-size: 13px; line-height: 1.5; margin-top: 4px; }

.content-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 16px; flex-wrap: wrap; }
.filter-row { display: flex; gap: 7px; flex-wrap: wrap; }
.filter-pill { border: 1px solid var(--line); border-radius: 99px; background: #fff; padding: 7px 10px; color: var(--muted); font-size: 13px; font-weight: 500; }
.filter-pill.is-active { color: var(--blue); border-color: #a4c8c2; background: #edf5f3; }
.editor-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .75fr); gap: 16px; align-items: start; }
.form-section { padding: 18px; }
.form-section + .form-section { border-top: 1px solid var(--soft-line); }
.form-label { display: block; margin-bottom: 7px; color: #465267; font-size: 13px; font-weight: 538; }
.form-input, .form-select, .form-textarea { width: 100%; border: 1px solid var(--line); border-radius: 9px; padding: 10px 11px; color: var(--ink); background: #fbfcfd; font-size: 14px; }
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: #6ca9a1; background: #fff; outline: 3px solid rgba(95,163,157,.16); }
.custom-select { position: relative; min-width: 0; z-index: 2; }
.custom-select.is-open { z-index: 25; }
.select-trigger { display: flex; align-items: center; justify-content: space-between; gap: 8px; text-align: left; cursor: pointer; }
.select-trigger svg { width: 15px; height: 15px; flex: 0 0 auto; color: var(--muted); transition: transform .16s ease; }
.custom-select.is-open .select-trigger svg { transform: rotate(180deg); }
.select-popover { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 30; display: grid; gap: 2px; max-height: 220px; overflow: auto; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 9px; box-shadow: 0 16px 34px rgba(12,22,39,.16); }
.select-option { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 10px; border: 0; border-radius: 6px; color: var(--ink); background: transparent; text-align: left; font-size: 14px; font-weight: 450; }
.select-option:hover, .select-option:focus-visible { color: var(--blue); background: #edf5f3; outline: 0; }
.select-option.is-selected { color: var(--blue); background: #f0f7f5; font-weight: 500; }
.select-option svg { width: 15px; height: 15px; flex: 0 0 auto; }
.form-textarea { min-height: 170px; resize: vertical; line-height: 1.65; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-row + .field-row { margin-top: 13px; }
.slug-field { display: flex; gap: 6px; }
.slug-field .form-input { min-width: 0; }
.slug-lock { width: 39px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: #fff; display: grid; place-items: center; }
.slug-lock.is-locked { color: var(--blue); background: #edf5f3; border-color: #afd0c9; }
.slug-lock svg { width: 14px; height: 14px; }
.helper-text { color: var(--muted); font-size: 12px; line-height: 1.5; margin-top: 6px; }
.status-banner { margin: 13px 0 0; display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 8px; background: #fff7e9; color: #925b17; font-size: 13px; font-weight: 538; }
.status-banner svg { width: 14px; height: 14px; }
.publish-control { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.publish-control strong { display: block; font-size: 13px; }
.publish-control span { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }
.switch { width: 36px; height: 20px; border: 0; padding: 2px; border-radius: 99px; background: #cbd5df; }
.switch::after { content: ""; display: block; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .18s ease; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.switch.is-on { background: var(--teal); }
.switch.is-on::after { transform: translateX(16px); }
.switch.is-disabled { opacity: .5; cursor: not-allowed; }
.dropzone { padding: 23px 17px; min-height: 142px; display: grid; place-items: center; text-align: center; border: 1px dashed #a9bacb; border-radius: 10px; background: #fafcfd; transition: border-color .18s, background .18s; }
.dropzone.is-dragging { border-color: var(--blue-2); background: #edf6f4; }
.dropzone.is-error { border-color: #d4868b; background: #fff6f6; }
.dropzone svg { width: 24px; height: 24px; color: var(--blue); margin-bottom: 8px; }
.dropzone strong { display: block; font-size: 13px; }
.dropzone span { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; }
.media-vault { padding: 0; overflow: hidden; }
.media-toolbar { padding: 12px 14px; border-bottom: 1px solid var(--soft-line); display: flex; gap: 7px; }
.media-toolbar .form-input { padding: 8px 9px; }
.asset-list { display: grid; gap: 0; }
.asset-row { display: flex; gap: 10px; align-items: center; padding: 11px 14px; border-bottom: 1px solid var(--soft-line); }
.asset-row:last-child { border-bottom: 0; }
.asset-thumb { width: 48px; height: 42px; border-radius: 8px; flex: 0 0 auto; display: grid; place-items: center; color: #fff; background: #4b708d; overflow: hidden; position: relative; }
.asset-thumb::after { content: ""; position: absolute; width: 50px; height: 18px; background: rgba(255,255,255,.2); transform: rotate(-27deg); bottom: -2px; }
.asset-thumb.aqua { background: #25888d; }
.asset-thumb.sunset { background: #be7448; }
.asset-thumb.slate { background: #48566b; }
.asset-thumb svg { z-index: 1; width: 16px; }
.asset-copy { flex: 1; min-width: 0; }
.asset-copy strong { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.asset-copy span { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }
.asset-action { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--blue); }
.asset-action svg { width: 13px; height: 13px; }
.tag-row { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 5px; }
.tag { padding: 3px 6px; border-radius: 5px; color: #4e6d6a; background: #edf4f3; font-size: 11px; font-weight: 538; }
.asset-copy .tag-row { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; margin-top: 5px; }
.asset-copy .tag { display: inline-flex; width: max-content; flex: 0 0 auto; margin-top: 0; }

.review-shell { position: relative; }
.review-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 15px; background: #fff; border: 1px solid var(--line); border-radius: 10px 10px 0 0; }
.segmented { display: flex; padding: 3px; border-radius: 8px; background: #eef2f5; }
.segmented button { border: 0; border-radius: 6px; padding: 7px 10px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 450; }
.segmented button.is-active { background: #fff; color: var(--ink); font-weight: 500; box-shadow: 0 2px 6px rgba(23,32,51,.1); }
.review-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 560px; border: 1px solid var(--line); border-top: 0; background: #fff; overflow: hidden; }
.review-panel { min-width: 0; padding: 18px; }
.review-panel + .review-panel { border-left: 1px solid var(--line); background: #f8fafc; }
.panel-label { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; font-weight: 500; }
.review-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 9px 0 14px; }
.review-heading h2 { margin: 0; font-size: 17px; }
.readonly-field { padding: 11px 12px; border-radius: 8px; border: 1px solid var(--line); background: #fbfcfd; margin-top: 11px; }
.readonly-field small { color: var(--muted); display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-weight: 500; }
.readonly-field strong { display: block; font-size: 14px; margin-top: 6px; line-height: 1.45; }
.review-copy { color: #4c576b; font-size: 12px; line-height: 1.7; }
.contrast-check { margin-top: 16px; padding: 13px; border: 1px solid #b8d7c6; border-radius: 9px; background: #f1faf4; }
.contrast-check-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.contrast-check strong { font-size: 13px; }
.contrast-score { color: var(--green); font-size: 12px; font-weight: 538; }
.contrast-bar { height: 7px; border-radius: 99px; background: #c8e5d2; overflow: hidden; margin-top: 10px; }
.contrast-bar span { display: block; width: 86%; height: 100%; background: var(--green); border-radius: inherit; }
.contrast-check p { color: #5e7c67; font-size: 12px; margin: 8px 0 0; line-height: 1.45; }
.device-frame { margin: 0 auto; transition: width .2s ease; }
.device-frame.desktop { width: 100%; }
.device-frame.tablet { width: 82%; }
.device-frame.mobile { width: 48%; }
.preview-chrome { background: #fff; border: 1px solid #ccd7e1; border-radius: 11px; box-shadow: 0 15px 32px rgba(39,61,84,.1); overflow: hidden; }
.preview-nav { height: 39px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 12px; border-bottom: 1px solid #e7edf2; }
.preview-brand { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 538; }
.preview-brand i { width: 16px; height: 16px; border-radius: 5px; background: var(--blue); display: block; }
.preview-links { display: flex; gap: 9px; color: #78879a; font-size: 11px; }
.preview-hero { min-height: 165px; padding: 22px 18px; position: relative; overflow: hidden; color: #fff; background: #1b4a6e; }
.preview-hero::after { content: ""; position: absolute; width: 180px; height: 180px; right: -50px; top: -56px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; }
.preview-hero small { position: relative; z-index: 1; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; opacity: .78; }
.preview-hero h3 { position: relative; z-index: 1; max-width: 270px; margin: 9px 0 8px; font-size: 21px; line-height: 1.13; letter-spacing: 0; }
.preview-hero p { position: relative; z-index: 1; max-width: 270px; margin: 0; color: rgba(255,255,255,.75); font-size: 12px; line-height: 1.5; }
.preview-content { padding: 16px; background: #fff; }
.preview-content-heading { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.preview-content-heading strong { font-size: 13px; }
.preview-content-heading span { color: var(--blue); font-size: 11px; font-weight: 538; }
.preview-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 10px; }
.preview-card { padding: 9px; border: 1px solid #e6ecf1; border-radius: 7px; }
.preview-card i { display: block; height: 38px; border-radius: 5px; background: #d6e6ed; }
.preview-card strong { display: block; margin-top: 7px; font-size: 11px; }
.preview-card span { display: block; margin-top: 3px; color: #8592a0; font-size: 11px; }
.audit-drawer { position: absolute; top: 67px; right: 0; width: min(330px, 100%); padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); z-index: 4; }
.audit-drawer[hidden] { display: none; }
.audit-item { display: flex; gap: 9px; padding: 11px 0; border-bottom: 1px solid var(--soft-line); }
.audit-item:last-child { border-bottom: 0; }
.audit-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); margin-top: 4px; flex: 0 0 auto; }
.audit-item strong { display: block; font-size: 13px; line-height: 1.45; }
.audit-item span { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.clearance-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 15px; background: #fff; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 10px 10px; }
.clearance-copy strong { display: block; font-size: 13px; }
.clearance-copy span { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }
.clearance-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.revision-input { display: none; padding: 10px 15px 13px; border: 1px solid var(--line); border-top: 0; background: #fff; }
.revision-input.is-visible { display: block; }
.revision-input textarea { min-height: 64px; }

.builder-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 16px; align-items: start; }
.theme-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 12px; }
.theme-option { text-align: left; padding: 10px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.theme-option.is-active { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); background: #edf5f3; }
.theme-swatch { height: 39px; border-radius: 6px; margin-bottom: 8px; }
.theme-swatch.minimal { background: #eef3f7; border: 1px solid #dae4eb; }
.theme-swatch.immersive { background: #255a77; }
.theme-swatch.dense { background: #435164; }
.theme-option strong { display: block; font-size: 13px; }
.theme-option span { display: block; color: var(--muted); font-size: 11px; margin-top: 4px; line-height: 1.35; }
.builder-list { display: grid; gap: 8px; padding: 15px 18px 18px; }
.block-row { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 9px; padding: 10px; background: #fff; }
.block-drag { width: 22px; display: grid; place-items: center; color: #96a3b2; }
.block-drag svg { width: 14px; height: 14px; }
.block-info { min-width: 0; flex: 1; }
.block-info strong { display: block; font-size: 13px; }
.block-info span { display: block; color: var(--muted); margin-top: 3px; font-size: 12px; }
.block-actions { display: flex; gap: 4px; }
.block-actions button { width: 27px; height: 27px; padding: 0; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--muted); }
.block-actions button:hover { color: var(--blue); border-color: #a4c8c2; }
.block-actions svg { width: 13px; height: 13px; }
.public-preview { min-height: 340px; background: #dfe8ef; padding: 18px; border-radius: 0 0 var(--radius-md) var(--radius-md); }
.public-preview .preview-chrome { min-height: 300px; }
.builder-add { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 0 18px 18px; }

.media-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.media-card { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.media-art { height: 119px; position: relative; display: grid; place-items: center; color: rgba(255,255,255,.86); overflow: hidden; }
.media-art::before { content: ""; position: absolute; width: 170px; height: 170px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; transform: translate(30px, 20px); }
.media-art.beach { background: #28718b; }
.media-art.mountain { background: #677a68; }
.media-art.festival { background: #9c5b57; }
.media-art.seal { background: #3b516f; }
.media-art svg { position: relative; width: 28px; height: 28px; }
.media-card-body { padding: 11px; }
.media-card-body strong { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.media-card-body p { margin: 4px 0 8px; color: var(--muted); font-size: 12px; }
.media-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.verified { display: inline-flex; align-items: center; gap: 4px; color: var(--green); font-size: 11px; font-weight: 538; }
.verified svg { width: 11px; height: 11px; }
.upload-summary { padding: 14px 16px; display: flex; gap: 12px; align-items: center; margin-bottom: 15px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.upload-summary-icon { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: #e9f5f5; color: var(--teal); }
.upload-summary-icon svg { width: 17px; }
.upload-summary strong { font-size: 13px; }
.upload-summary p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }

.modal-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(15,24,39,.56); }
.modal { width: min(620px, 100%); max-height: min(760px, calc(100vh - 40px)); overflow: auto; background: #fff; border-radius: 14px; box-shadow: 0 24px 70px rgba(10,18,32,.32); }
.modal-wide { width: min(860px, 100%); }
.modal-header { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; padding: 19px 20px; border-bottom: 1px solid var(--soft-line); }
.modal-header h2 { margin: 0; font-size: 17px; }
.modal-header p { margin: 6px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.modal-close { width: 31px; height: 31px; display: grid; place-items: center; border: 1px solid var(--line); background: #fff; color: var(--muted); border-radius: 8px; }
.modal-body { padding: 20px; }
.modal-footer { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--soft-line); }
.stepper { display: flex; gap: 7px; margin-bottom: 20px; }
.step { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 538; }
.step + .step::before { content: ""; display: block; width: 20px; height: 1px; background: var(--line); }
.step-index { width: 21px; height: 21px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; font-size: 11px; }
.step.is-active { color: var(--blue); }
.step.is-active .step-index { color: #fff; background: var(--blue); border-color: var(--blue); }
.swatch-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 11px; }
.swatch-card { padding: 7px; border-radius: 9px; background: #fff; border: 1px solid var(--line); text-align: left; }
.swatch-card.is-active { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.swatch-card span { display: block; height: 42px; border-radius: 6px; }
.swatch-card strong { display: block; margin-top: 7px; font-size: 12px; }
.swatch-card small { display: block; color: var(--muted); font-size: 11px; margin-top: 3px; }
.setup-preview { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 11px; border: 1px solid var(--line); border-radius: 9px; background: #f9fbfc; }
.setup-preview-bar { width: 96px; height: 49px; padding: 8px; border-radius: 6px; display: grid; align-content: center; gap: 4px; color: #fff; }
.setup-preview-bar i { display: block; width: 44px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.75); }
.setup-preview-bar b { display: block; width: 26px; height: 3px; border-radius: 4px; background: rgba(255,255,255,.48); }
.setup-preview strong { display: block; font-size: 13px; }
.setup-preview p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.provisioning-loader { display: grid; place-items: center; padding: 28px 10px 12px; text-align: center; }
.radial-loader { width: 74px; height: 74px; border-radius: 50%; border: 5px solid #dce8f0; border-top-color: var(--blue); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.provisioning-loader strong { display: block; margin-top: 17px; font-size: 14px; }
.provisioning-loader p { color: var(--muted); font-size: 13px; }
.toast { position: fixed; right: 26px; bottom: 25px; z-index: 130; display: flex; gap: 10px; align-items: flex-start; width: min(360px, calc(100vw - 32px)); padding: 13px 14px; background: var(--navy); color: #fff; border-left: 3px solid #83c8a7; border-radius: 9px; box-shadow: 0 16px 38px rgba(15,24,39,.22); animation: toast-in .22s ease-out; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.toast svg { width: 16px; color: #83c8a7; flex: 0 0 auto; }
.toast strong { display: block; font-size: 13px; }
.toast span { display: block; margin-top: 4px; color: #bac8da; font-size: 12px; line-height: 1.4; }
.skeleton-overlay { position: fixed; inset: 0; z-index: 90; pointer-events: none; display: grid; place-items: center; background: rgba(244,247,250,.52); backdrop-filter: blur(3px); }
.skeleton-overlay[hidden] { display: none; }
.skeleton-card { width: min(300px, calc(100% - 34px)); padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.skeleton-line { height: 9px; border-radius: 9px; background: linear-gradient(90deg, #e8eef3 25%, #f8fafb 48%, #e8eef3 75%); background-size: 220% 100%; animation: shimmer 1.2s infinite; margin-bottom: 9px; }
.skeleton-line.short { width: 62%; }
@keyframes shimmer { to { background-position: -220% 0; } }
.empty-state { padding: 30px 18px; text-align: center; color: var(--muted); font-size: 12px; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.right { text-align: right; }

@media (max-width: 1360px) {
  .dashboard-top-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1120px) {
  .sidebar { width: 224px; }
  .main { width: calc(100% - 224px); margin-left: 224px; }
  .topbar, .page { padding-left: 20px; padding-right: 20px; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .section-grid, .editor-grid, .builder-grid { grid-template-columns: 1fr; }
  .media-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 760px) {
  .login-shell { display: block; }
  .login-context { min-height: 280px; padding: 28px 20px 48px; }
  .login-context-copy { margin-top: 42px; }
  .login-context-copy h1 { font-size: 30px; }
  .login-context-copy p { font-size: 14px; }
  .login-context-status { margin-top: 35px; }
  .login-panel { position: relative; padding: 0 16px 32px; margin-top: -24px; }
  .login-card { padding: 24px; }
  .sidebar { position: static; width: 100%; min-height: auto; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.1); }
  .app-shell { display: block; }
  .brand-row { height: 66px; }
  .tenant-zone { padding: 13px 14px 6px; }
  .sidebar-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 10px 8px; }
  .nav-section-label { grid-column: 1 / -1; }
  .sidebar-bottom { display: none; }
  .main { width: 100%; margin-left: 0; }
  .topbar { height: 65px; padding: 0 16px; }
  .breadcrumb-label { display: none; }
  .role-toggle button { padding-left: 7px; padding-right: 7px; }
  .page { padding: 24px 16px 42px; }
  .page-heading { display: block; }
  .heading-actions { justify-content: flex-start; margin-top: 17px; }
  .section-grid, .editor-grid, .builder-grid { gap: 12px; }
  .review-toolbar { display: block; }
  .review-toolbar .segmented { margin-top: 11px; width: 100%; }
  .review-toolbar .segmented button { flex: 1; }
  .review-split { grid-template-columns: 1fr; }
  .review-panel + .review-panel { border-left: 0; border-top: 1px solid var(--line); }
  .device-frame.tablet, .device-frame.mobile { width: 100%; }
  .clearance-bar { display: block; }
  .clearance-actions { justify-content: flex-start; margin-top: 12px; }
  .media-grid { grid-template-columns: repeat(2, 1fr); }
  .swatch-grid { grid-template-columns: repeat(2, 1fr); }
  .field-row { grid-template-columns: 1fr; gap: 11px; }
  .field-row + .field-row { margin-top: 11px; }
  .preview-links { display: none; }
  .table-wrap { overflow-x: auto; }
}

@media (max-width: 450px) {
  .metrics { grid-template-columns: 1fr 1fr; gap: 8px; }
  .metric { padding: 13px; }
  .metric-value { font-size: 21px; }
  .metric-icon { display: none; }
  .tenant-table th:nth-child(3), .tenant-table td:nth-child(3) { display: none; }
  .media-grid { gap: 9px; }
  .media-art { height: 92px; }
  .button { padding-left: 10px; padding-right: 10px; }
  .modal-backdrop { padding: 9px; }
  .modal-body, .modal-header { padding-left: 15px; padding-right: 15px; }
  .modal-footer { padding-left: 15px; padding-right: 15px; }
}
