:root {
  --ink: #0f172a;
  --ink-soft: #475569;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --line: #dbe4ee;
  --primary: #1d4ed8;
  --primary-dark: #173da8;
  --accent: #f97316;
  --success: #087a4b;
  --danger: #c83232;
  --shadow: 0 14px 40px rgba(15, 23, 42, .12);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { overflow-y: scroll; scrollbar-gutter: stable; }
html, body { margin: 0; min-height: 100%; }

body {
  font-family: Inter, Pretendard, "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #edf2f7;
  -webkit-font-smoothing: antialiased;
}

button, input, textarea, select { font: inherit; }
button, a, select, label[for] { touch-action: manipulation; }
button { cursor: pointer; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cms-shell {
  width: min(100%, 520px);
  min-height: 100vh;
  margin: 0 auto;
  background: var(--surface-soft);
  box-shadow: 0 0 0 1px rgba(15, 23, 42, .05), var(--shadow);
}

.apartment-onboarding {
  width: min(100%, 520px);
  min-height: 100dvh;
  margin: 0 auto;
  padding: 22px;
  background: linear-gradient(180deg, #eef4ff 0%, #f8fafc 36%, #fff 100%);
  box-shadow: 0 0 0 1px rgba(15, 23, 42, .05), var(--shadow);
}
.apartment-onboarding__card { width: 100%; min-height: calc(100dvh - 44px); }
.apartment-onboarding__header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 56px; }
.apartment-onboarding__brand { display: flex; align-items: center; gap: 10px; color: #172554; font-size: 14px; font-weight: 900; }
.apartment-onboarding__brand .brand-mark { width: 38px; height: 38px; color: #fff; background: linear-gradient(145deg,#1e3a8a,#2563eb); }
.apartment-onboarding__step { padding: 7px 10px; color: #1d4ed8; border: 1px solid #bfdbfe; border-radius: 999px; background: #eff6ff; font-size: 10px; font-weight: 850; }
.apartment-search-view .eyebrow { color: #2563eb; }
.apartment-search-view h1 { max-width: 390px; margin: 7px 0 10px; color: #0f172a; font-size: clamp(28px,7vw,38px); line-height: 1.2; letter-spacing: -.045em; }
.apartment-onboarding__copy { max-width: 410px; margin: 0; color: #64748b; font-size: 14px; line-height: 1.65; }
.apartment-search { display: grid; gap: 9px; margin-top: 38px; }
.apartment-search > label { color: #1e293b; font-size: 13px; font-weight: 850; }
.apartment-search__controls { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; }
.apartment-search__controls input { min-width: 0; height: 56px; padding: 0 15px; color: #0f172a; border: 1px solid #cbd5e1; border-radius: 15px; background: #fff; font-size: 14px; }
.apartment-search__controls input:focus { outline: 3px solid rgba(37,99,235,.17); border-color: #2563eb; }
.apartment-search__controls button { min-width: 106px; min-height: 56px; padding: 0 16px; color: #fff; border: 0; border-radius: 15px; background: #2563eb; font-weight: 850; }
.apartment-search__controls button:disabled { cursor: wait; opacity: .68; }
.apartment-search__status { min-height: 20px; margin: 0 2px; color: #64748b; font-size: 11px; line-height: 1.5; }
.apartment-search__status.is-error { color: #b42318; font-weight: 750; }
.apartment-result { padding-bottom: 96px; }
.apartment-result__match { display: grid; grid-template-columns: 44px minmax(0,1fr); gap: 12px; padding: 17px; border: 1px solid #bfdbfe; border-radius: 19px; background: #fff; box-shadow: 0 10px 28px rgba(30,64,175,.08); }
.apartment-result__check { display: grid; place-items: center; width: 42px; height: 42px; color: #fff; border-radius: 50%; background: #16a34a; font-size: 20px; font-weight: 900; }
.apartment-result__match p { margin: 0 0 3px; color: #2563eb; font-size: 10px; font-weight: 850; }
.apartment-result__match h2 { margin: 0; font-size: 18px; line-height: 1.3; }
.apartment-result__match address { margin-top: 6px; color: #64748b; font-size: 11px; font-style: normal; line-height: 1.5; }
.apartment-result__match strong { display: inline-block; margin-top: 8px; color: #166534; font-size: 11px; }
.apartment-install-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 28px 2px 12px; }
.apartment-install-heading h3 { margin: 0; font-size: 16px; }
.apartment-install-heading p { margin: 4px 0 0; color: #64748b; font-size: 11px; }
.apartment-bulk-actions { display: flex; gap: 6px; }
.apartment-bulk-actions button { min-height: 40px; padding: 0 10px; color: #1d4ed8; border: 1px solid #bfdbfe; border-radius: 10px; background: #eff6ff; font-size: 10px; font-weight: 850; }
.apartment-elevator-tree { display: grid; gap: 9px; }
.apartment-elevator-group { overflow: hidden; border: 1px solid #dbe4ee; border-radius: 15px; background: #fff; }
.apartment-elevator-group summary { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 14px; cursor: pointer; list-style: none; }
.apartment-elevator-group summary::-webkit-details-marker { display: none; }
.apartment-elevator-group summary > span { display: flex; align-items: baseline; gap: 7px; }
.apartment-elevator-group summary strong { font-size: 14px; }
.apartment-elevator-group summary small { color: #64748b; font-size: 10px; }
.apartment-elevator-group summary .icon { width: 18px; transition: transform .2s ease; }
.apartment-elevator-group[open] summary .icon { transform: rotate(180deg); }
.apartment-elevator-list { border-top: 1px solid #eef2f7; }
.apartment-elevator-option { display: grid; grid-template-columns: 24px minmax(0,1fr) auto; align-items: center; gap: 10px; min-height: 62px; padding: 8px 14px; border-bottom: 1px solid #f1f5f9; cursor: pointer; }
.apartment-elevator-option:last-child { border-bottom: 0; }
.apartment-elevator-option input { width: 22px; height: 22px; accent-color: #2563eb; }
.apartment-elevator-option > span { display: grid; gap: 2px; min-width: 0; }
.apartment-elevator-option strong { font-size: 13px; }
.apartment-elevator-option small { overflow: hidden; color: #94a3b8; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.apartment-elevator-option em { padding: 5px 7px; color: #166534; border-radius: 999px; background: #ecfdf3; font-size: 9px; font-style: normal; font-weight: 800; }
.apartment-onboarding__actions { position: fixed; z-index: 5; left: 50%; bottom: 0; display: grid; grid-template-columns: .78fr 1.4fr; gap: 8px; width: min(100%,520px); padding: 12px 22px max(14px,env(safe-area-inset-bottom)); transform: translateX(-50%); border-top: 1px solid #e2e8f0; background: rgba(255,255,255,.96); backdrop-filter: blur(14px); }
.apartment-onboarding__actions button { min-height: 54px; border-radius: 15px; font-weight: 850; }
.apartment-back { color: #475569; border: 1px solid #cbd5e1; background: #fff; }
.apartment-finish { display: flex; align-items: center; justify-content: center; gap: 8px; color: #fff; border: 0; background: #2563eb; }
.apartment-finish span { font-size: 10px; opacity: .84; }
.apartment-finish:disabled { color: #94a3b8; background: #e2e8f0; }
.apartment-settings-card { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 12px; margin: 16px 0 11px; padding: 14px; border: 1px solid #bfdbfe; border-radius: 15px; background: #eff6ff; }
.apartment-settings-card > div { display: grid; gap: 3px; min-width: 0; }
.apartment-settings-card span { color: #2563eb; font-size: 9px; font-weight: 850; }
.apartment-settings-card strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.apartment-settings-card small { overflow: hidden; color: #64748b; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.apartment-settings-card button { min-height: 42px; padding: 0 11px; color: #1d4ed8; border: 1px solid #bfdbfe; border-radius: 10px; background: #fff; font-size: 10px; font-weight: 850; }
.apartment-settings-actions { display: grid; grid-template-columns: repeat(2,auto); gap: 6px; }
.apartment-settings-card .apartment-settings-delete { color: #b42318; border-color: #fecaca; background: #fff7f7; }
.apartment-settings-card button:focus-visible { outline: 3px solid rgba(37,99,235,.2); outline-offset: 2px; }
.apartment-settings-card .apartment-settings-delete:focus-visible { outline-color: rgba(180,35,24,.2); }
.target-elevators label span { display: inline-flex; align-items: center; gap: 5px; }
.target-elevators label small { padding: 2px 5px; color: #166534; border-radius: 999px; background: #dcfce7; font-size: 8px; font-weight: 850; }

.cms-header {
  padding: max(20px, env(safe-area-inset-top)) 20px 18px;
  color: white;
  background: linear-gradient(145deg, #0f172a 0%, #1e3a8a 68%, #1d4ed8 100%);
}

.brand-row,
.header-actions,
.status-row,
.tabs,
.form-row,
.queue-meta,
.queue-item,
.display-toolbar,
.display-status {
  display: flex;
  align-items: center;
}

.brand-row { justify-content: space-between; gap: 16px; }
.header-tools { display: flex; align-items: center; gap: 8px; }
.brand-lockup { display: flex; align-items: center; gap: 11px; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.25);
}
.brand-title { margin: 0; font-size: 18px; font-weight: 750; letter-spacing: -.02em; }
.brand-subtitle { margin: 3px 0 0; font-size: 12px; color: #cbd5e1; }
.header-link {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: white;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 14px;
  background: rgba(255,255,255,.1);
  transition: background .2s ease, border-color .2s ease;
}
.header-link:hover { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.42); }
.header-link:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(59,130,246,.4);
  outline-offset: 2px;
}

.live-card {
  margin-top: 18px;
  padding: 13px 14px;
  border-radius: 14px;
  background: rgba(2,6,23,.35);
  border: 1px solid rgba(255,255,255,.13);
}
.status-row { justify-content: space-between; gap: 12px; }
.live-status-copy { display: grid; min-width: 0; gap: 5px; }
.status-copy { font-size: 13px; color: #dbeafe; }
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
}
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 5px rgba(74,222,128,.12);
}
.settings-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 74px;
  min-height: 42px;
  padding: 0 12px;
  color: #fff;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 12px;
  background: rgba(255,255,255,.1);
  font-size: 12px;
  font-weight: 800;
}
.settings-button .icon { width: 17px; height: 17px; }
.settings-button:hover { background: rgba(255,255,255,.18); }
.situation-alert-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 12px;
  color: #fff;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 12px;
  background: rgba(255,255,255,.1);
  font-size: 12px;
  font-weight: 850;
}
.situation-alert-button:hover,.situation-alert-button.has-unread,.situation-alert-button.is-active { background: rgba(255,255,255,.2); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
.situation-alert-button .icon { width: 18px; height: 18px; }
.situation-alert-dot { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 4px rgba(74,222,128,.13); }
.situation-alert-dot.is-checking { background: #60a5fa; animation: situation-pulse 1.2s ease-in-out infinite; }
.situation-alert-dot.is-error { background: #fbbf24; box-shadow: 0 0 0 4px rgba(251,191,36,.14); }
.situation-alert-badge { position: absolute; top: -7px; right: -6px; display: grid; min-width: 20px; height: 20px; place-items: center; padding: 0 5px; color: #fff; border: 2px solid #1e3a8a; border-radius: 999px; background: #ef4444; font-size: 9px; line-height: 1; font-variant-numeric: tabular-nums; }
.situation-alert-badge[hidden] { display: none; }
@keyframes situation-pulse { 50% { transform: scale(.72); opacity: .55; } }

.display-preview-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 64px;
  margin-top: 15px;
  padding: 11px 13px;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  border-radius: 13px;
  background: #eff6ff;
  text-decoration: none;
}
.display-preview-link > span { display: grid; gap: 3px; min-width: 0; }
.display-preview-link strong { color: #1e3a8a; font-size: 13px; }
.display-preview-link small { color: #64748b; font-size: 10px; line-height: 1.45; }
.display-preview-link .icon { width: 20px; height: 20px; }
.display-preview-link:focus-visible { outline: 3px solid rgba(37,99,235,.22); outline-offset: 2px; }

.cms-main { width: 100%; min-height: 720px; padding: 18px 16px 110px; }
#schedule-view { width: 100%; min-height: 650px; }
.panel-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 8px 26px rgba(15,23,42,.06);
}
.section-title { margin: 0; font-size: 20px; letter-spacing: -.03em; }
.section-copy { margin: 7px 0 0; color: var(--ink-soft); font-size: 14px; line-height: 1.55; }

.tabs {
  gap: 6px;
  margin: 18px 0;
  padding: 5px;
  border-radius: 14px;
  background: #eaf0f7;
}
.tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  flex: 1;
  border: 0;
  border-radius: 10px;
  color: #526176;
  background: transparent;
  font-weight: 700;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}
.tab.is-active { color: var(--primary); background: white; box-shadow: 0 4px 14px rgba(15,23,42,.09); }

.ticker-preview {
  display: flex;
  align-items: center;
  min-height: 54px;
  overflow: hidden;
  padding: 0 16px;
  color: white;
  border-radius: 12px;
  background: #111315;
  font-weight: 800;
  white-space: nowrap;
}
.ticker-preview span { animation: cms-ticker-preview 8s linear infinite; }
@keyframes cms-ticker-preview { from { transform: translateX(105%); } to { transform: translateX(-115%); } }
.ticker-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 9px; }
.ticker-textbox { position: relative; }
.ticker-textbox textarea { min-height: 154px; padding-bottom: 58px; }
.ticker-ai-actions { position: absolute; right: 10px; bottom: 10px; display: flex; align-items: center; gap: 6px; }
.ticker-ai-button, .ticker-ai-undo {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 850;
}
.ticker-ai-button { color: #fff; border: 0; background: linear-gradient(135deg,#7c3aed,#2563eb); box-shadow: 0 7px 16px rgba(99,102,241,.24); }
.ticker-ai-undo { color: #5b21b6; border: 1px solid #ddd6fe; background: rgba(255,255,255,.94); }
.ticker-ai-undo:disabled { color: #94a3b8; border-color: #e2e8f0; background: #f8fafc; cursor: default; }
.ticker-ai-help { min-height: 18px; margin: 7px 2px 0; color: #64748b; font-size: 10px; line-height: 1.45; overflow-wrap: anywhere; }
.emoji-picks { display: flex; flex-wrap: wrap; gap: 5px; }
.emoji-picks button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid #d7e0ea;
  border-radius: 9px;
  background: #f8fafc;
}
.emoji-picks button:hover { border-color: #93c5fd; background: #eff6ff; }
.character-count { flex: 0 0 auto; color: #64748b; font-size: 12px; font-variant-numeric: tabular-nums; }

.field { margin-top: 16px; }
.field:first-child { margin-top: 0; }
.field label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 750; }
.field input[type="text"], .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 13px;
  color: var(--ink);
  background: white;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 112px; resize: vertical; line-height: 1.55; }
.field input:focus, .field textarea:focus { border-color: #60a5fa; box-shadow: 0 0 0 4px rgba(59,130,246,.12); outline: none; }
.field-hint { margin: 7px 0 0; font-size: 12px; color: #64748b; line-height: 1.45; }

.upload-box {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 190px;
  overflow: hidden;
  text-align: center;
  border: 1.5px dashed #94a3b8;
  border-radius: 16px;
  background: #f8fafc;
  transition: border-color .2s ease, background .2s ease;
}
.upload-box:hover { border-color: #3b82f6; background: #eff6ff; }
.upload-box input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.upload-empty { padding: 22px; }
.upload-empty .icon { width: 34px; height: 34px; color: #2563eb; }
.upload-title { margin: 11px 0 3px; font-weight: 750; }
.upload-copy { margin: 0; font-size: 12px; color: #64748b; }
.upload-preview { display: none; width: 100%; height: 250px; object-fit: contain; background: #111827; }
.upload-box.has-image .upload-preview { display: block; }
.upload-box.has-image .upload-empty { display: none; }

.form-row { gap: 12px; }
.form-row .field { flex: 1; }
.color-input {
  width: 100%;
  height: 48px;
  padding: 5px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: white;
}
.check-row {
  display: flex;
  align-items: center;
  min-height: 48px;
  gap: 10px;
  padding-top: 23px;
  font-size: 13px;
  font-weight: 700;
}
.check-row input { width: 20px; height: 20px; accent-color: var(--danger); }

.publish-bar {
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: 0;
  width: min(100%, 520px);
  transform: translateX(-50%);
  padding: 12px 16px max(12px, env(safe-area-inset-bottom));
  background: rgba(248,250,252,.94);
  border-top: 1px solid rgba(203,213,225,.9);
  backdrop-filter: blur(18px);
}
.publish-requirement {
  margin: 0 0 8px;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}
.publish-requirement.is-ready { color: var(--success); }
.publish-bar.is-ai-action .publish-requirement.is-ready { color: #6d28d9; }
.publish-bar.is-ai-action .primary-button { background: linear-gradient(135deg,#7c3aed,#2563eb); box-shadow: 0 12px 25px rgba(79,70,229,.26); }
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 54px;
  padding: 0 18px;
  color: white;
  border: 0;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--primary), #2563eb);
  box-shadow: 0 10px 24px rgba(29,78,216,.25);
  font-weight: 800;
  transition: filter .2s ease, box-shadow .2s ease;
}
.primary-button:hover { filter: brightness(1.06); box-shadow: 0 12px 28px rgba(29,78,216,.31); }
.primary-button:disabled { cursor: not-allowed; opacity: .55; box-shadow: none; }

.has-dialog { overflow: hidden; }
.schedule-dialog[hidden] { display: none; }
.schedule-dialog { position: fixed; z-index: 90; inset: 0; display: grid; place-items: center; padding: 20px; }
.schedule-dialog__backdrop { position: absolute; inset: 0; background: rgba(2,6,23,.72); backdrop-filter: blur(7px); }
.schedule-dialog__card { position: relative; width: min(100%, 560px); max-height: calc(100dvh - 40px); overflow: hidden; border: 1px solid rgba(255,255,255,.68); border-radius: 22px; outline: none; background: #fff; box-shadow: 0 28px 72px rgba(2,6,23,.34); }
.schedule-dialog__header { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px 16px 13px; border-bottom: 1px solid #e2e8f0; }
.schedule-dialog__header > div { min-width: 0; }
.schedule-dialog__header .eyebrow { margin: 0 0 3px; }
.schedule-dialog__header h2 { margin: 0; overflow: hidden; color: #0f172a; font-size: 18px; letter-spacing: -.035em; text-overflow: ellipsis; white-space: nowrap; }
.schedule-dialog__close { display: grid; width: 44px; height: 44px; flex: none; place-items: center; padding: 0; color: #475569; border: 0; border-radius: 12px; background: #f1f5f9; }
.schedule-dialog__close .icon { width: 19px; height: 19px; }
.schedule-dialog__close:focus-visible { outline: 3px solid rgba(37,99,235,.2); outline-offset: 2px; }
.schedule-preview-media { display: grid; min-height: 260px; max-height: calc(100dvh - 145px); place-items: center; overflow: auto; padding: 16px; background: #e2e8f0; overscroll-behavior: contain; }
.schedule-preview-media > img,.schedule-preview-media > video { display: block; width: auto; max-width: 100%; height: auto; max-height: calc(100dvh - 180px); background: #fff; box-shadow: 0 12px 32px rgba(15,23,42,.2); }
.schedule-preview-campaign { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); width: 100%; gap: 4px; }
.schedule-preview-campaign > img,.schedule-preview-campaign > video { width: 100%; min-width: 0; aspect-ratio: 7 / 10; object-fit: contain; background: #0f172a; }
.schedule-preview-ticker { width: 100%; padding: 18px 24px; overflow: hidden; color: #fff; border-radius: 12px; background: #111315; font-size: 18px; font-weight: 850; line-height: 1.5; }
.schedule-preview-notice { width: min(100%,390px); min-height: 420px; padding: 34px 28px; color: #0f172a; border-top: 8px solid var(--notice-accent,#2563eb); background: #fff; box-shadow: 0 12px 30px rgba(15,23,42,.15); }
.schedule-preview-notice h3 { margin: 0; color: var(--notice-accent,#2563eb); font-size: 25px; line-height: 1.35; }
.schedule-preview-notice p { margin: 22px 0 0; white-space: pre-wrap; font-size: 16px; line-height: 1.75; }
.schedule-dialog__loading { padding: 40px 20px; color: #475569; text-align: center; font-size: 13px; font-weight: 750; }
.schedule-dialog__loading.is-error { color: #b42318; }
.schedule-detail-dialog__card { width: min(100%,480px); overflow-y: auto; }
.schedule-detail-list { display: grid; gap: 0; margin: 0; padding: 5px 18px 18px; }
.schedule-detail-list > div { display: grid; grid-template-columns: 92px minmax(0,1fr); gap: 14px; padding: 14px 0; border-bottom: 1px solid #eef2f7; }
.schedule-detail-list > div:last-child { border-bottom: 0; }
.schedule-detail-list dt { color: #64748b; font-size: 11px; font-weight: 850; }
.schedule-detail-list dd { min-width: 0; margin: 0; color: #1e293b; font-size: 12px; font-weight: 700; line-height: 1.55; overflow-wrap: anywhere; }
.delete-dialog[hidden] { display: none; }
.delete-dialog { position: fixed; z-index: 80; inset: 0; display: grid; place-items: center; padding: 20px; }
.delete-dialog__backdrop { position: absolute; inset: 0; background: rgba(2,6,23,.62); backdrop-filter: blur(5px); }
.delete-dialog__card {
  position: relative;
  width: min(100%, 390px);
  padding: 24px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(2,6,23,.32);
  text-align: center;
}
.delete-dialog__icon { display: grid; place-items: center; width: 48px; height: 48px; margin: 0 auto 13px; color: #b42318; border-radius: 15px; background: #fff1f0; }
.delete-dialog__icon .icon { width: 25px; height: 25px; }
.delete-dialog__card h2 { margin: 0; font-size: 20px; letter-spacing: -.03em; }
.delete-dialog__card p { margin: 8px 0 0; color: #64748b; font-size: 13px; line-height: 1.5; }
.delete-dialog__item { display: -webkit-box; margin: 15px 0 0; padding: 11px 12px; overflow: hidden; color: #334155; border-radius: 11px; background: #f8fafc; font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.delete-dialog__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 18px; }
.dialog-secondary, .dialog-danger { min-height: 48px; border-radius: 13px; font-weight: 800; }
.dialog-secondary { color: #334155; border: 1px solid #cbd5e1; background: #fff; }
.dialog-danger { color: #fff; border: 0; background: #b42318; }
.dialog-danger:disabled { cursor: wait; opacity: .65; }

.queue-card { max-width: 100%; margin-top: 16px; overflow: hidden; }
.queue-meta { justify-content: space-between; gap: 12px; min-width: 0; margin-bottom: 12px; }
.queue-meta > div { min-width: 0; }
.queue-count { padding: 5px 9px; border-radius: 999px; color: #1e40af; background: #dbeafe; font-size: 12px; font-weight: 800; }
.ticker-count-badge { color: #475569; background: #e2e8f0; }
.queue-list { display: grid; width: 100%; min-width: 0; gap: 10px; }
.queue-item { width: 100%; min-width: 0; gap: 12px; padding: 10px; overflow: hidden; border: 1px solid #e2e8f0; border-radius: 14px; background: #fff; }
.queue-item.is-ticker { align-items: flex-start; }
.queue-thumb { width: 48px; height: 68px; flex: 0 0 auto; overflow: hidden; border-radius: 7px; background: #e2e8f0; }
.queue-thumb img { width: 100%; height: 100%; object-fit: cover; }
.queue-notice { display: grid; place-items: center; width: 100%; height: 100%; color: white; font-size: 10px; font-weight: 800; text-align: center; padding: 4px; }
.queue-ticker { display: grid; place-items: center; width: 100%; height: 100%; color: white; background: #111315; font-size: 10px; font-weight: 850; }
.queue-copy { width: 0; min-width: 0; flex: 1 1 0; overflow: hidden; }
.queue-title { display: -webkit-box; max-width: 100%; overflow: hidden; margin: 0; font-size: 14px; font-weight: 750; line-height: 1.42; overflow-wrap: anywhere; word-break: break-word; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.queue-time { margin: 4px 0 0; color: #64748b; font-size: 11px; }
.queue-empty { margin: 0; padding: 22px 12px; color: #64748b; border: 1px dashed #cbd5e1; border-radius: 12px; background: #f8fafc; font-size: 13px; text-align: center; }
.delete-button { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 auto; color: #b42318; border: 0; border-radius: 12px; background: #fff1f0; }
.delete-button:hover { background: #fee4e2; }

/* Schedule-first mobile CMS */
.schedule-tabs {
  position: sticky;
  z-index: 15;
  top: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 9px 12px;
  background: rgba(248,250,252,.94);
  border-bottom: 1px solid #dbe4ee;
  backdrop-filter: blur(18px);
}
.schedule-tab {
  display: grid;
  place-items: center;
  gap: 4px;
  min-width: 0;
  min-height: 58px;
  padding: 6px 4px;
  color: #64748b;
  border: 0;
  border-radius: 12px;
  background: transparent;
  font-size: 11px;
  font-weight: 800;
}
.schedule-tab .icon { width: 20px; height: 20px; }
.schedule-tab span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.schedule-tab.is-active { color: #1d4ed8; background: #e8efff; box-shadow: inset 0 0 0 1px rgba(37,99,235,.12); }
.schedule-panel, .editor-view {
  width: 100%;
  min-width: 0;
  min-height: 590px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 8px 26px rgba(15,23,42,.06);
}
.schedule-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.schedule-heading > div { min-width: 0; }
.eyebrow { margin: 0 0 5px; color: #2563eb; font-size: 11px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.add-button {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  color: #fff;
  border: 0;
  border-radius: 15px;
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  box-shadow: 0 9px 20px rgba(37,99,235,.24);
}
.campaign-add { background: linear-gradient(135deg, #7c3aed, #a855f7); box-shadow: 0 9px 20px rgba(124,58,237,.23); }
.setting-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
  padding: 13px 14px;
  border: 1px solid #dbe4ee;
  border-radius: 14px;
  background: #f8fafc;
}
.setting-card > div { display: grid; min-width: 0; gap: 3px; }
.setting-card strong { font-size: 13px; }
.setting-card span { color: #64748b; font-size: 11px; }
.setting-card select {
  min-width: 84px;
  height: 42px;
  padding: 0 30px 0 12px;
  color: #1e3a8a;
  border: 1px solid #bfdbfe;
  border-radius: 11px;
  background: #eff6ff;
  font-weight: 800;
}
.campaign-setting select { color: #6d28d9; border-color: #ddd6fe; background: #f5f3ff; }
.setting-toggle { cursor: pointer; }
.switch-input {
  position: relative;
  flex: 0 0 auto;
  width: 50px;
  height: 28px;
  margin: 0;
  appearance: none;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #e2e8f0;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease;
}
.switch-input::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(15,23,42,.25);
  transition: transform .18s ease;
}
.switch-input:checked { border-color: #2563eb; background: #2563eb; }
.switch-input.is-campaign:checked { border-color: #7c3aed; background: #7c3aed; }
.switch-input:checked::before { transform: translateX(22px); }
.switch-input:focus-visible { outline: 3px solid rgba(37,99,235,.24); outline-offset: 2px; }
.editor-setting { margin-top: 14px; }
.campaign-rule {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 10px;
  padding: 11px 12px;
  color: #5b21b6;
  border-radius: 12px;
  background: #f5f3ff;
  font-size: 11px;
  line-height: 1.5;
}
.campaign-rule .icon { width: 18px; height: 18px; flex: 0 0 auto; }
.schedule-summary { display: flex; align-items: center; justify-content: space-between; margin: 20px 0 10px; color: #64748b; font-size: 12px; font-weight: 750; }
.schedule-summary strong { color: #1e40af; padding: 4px 8px; border-radius: 999px; background: #dbeafe; }
.schedule-list { display: grid; min-width: 0; gap: 9px; }
.schedule-item {
  display: grid;
  grid-template-columns: 48px 56px minmax(0, 1fr);
  grid-template-rows: minmax(0, auto) auto;
  align-items: center;
  column-gap: 10px;
  row-gap: 6px;
  min-width: 0;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #fff;
}
.schedule-order-slot {
  display: grid;
  place-items: center;
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 48px;
  min-width: 48px;
  height: 48px;
}
.schedule-order {
  width: 48px;
  min-width: 48px;
  height: 48px;
  padding: 0 17px 0 8px;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  border-radius: 13px;
  background-color: #eff6ff;
  background-image:
    linear-gradient(45deg, transparent 50%, #1d4ed8 50%),
    linear-gradient(135deg, #1d4ed8 50%, transparent 50%);
  background-position: calc(100% - 10px) 21px, calc(100% - 6px) 21px;
  background-repeat: no-repeat;
  background-size: 4px 4px, 4px 4px;
  font-size: 12px;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
  text-align: center;
  appearance: none;
  cursor: pointer;
}
.schedule-order:hover, .schedule-order:focus-visible { border-color: #60a5fa; background-color: #dbeafe; outline: none; box-shadow: 0 0 0 3px rgba(59,130,246,.13); }
.schedule-order:disabled { color: #94a3b8; border-color: #e2e8f0; background: #f8fafc; cursor: default; box-shadow: none; }
.schedule-thumb { position: relative; display: grid; place-items: center; grid-column: 2; grid-row: 1 / span 2; width: 56px; height: 76px; padding: 0; overflow: hidden; border: 0; border-radius: 10px; background: #e2e8f0; cursor: zoom-in; }
.schedule-thumb::after { position: absolute; inset: 0; content: ''; border: 1px solid rgba(15,23,42,.08); border-radius: inherit; pointer-events: none; }
.schedule-thumb:focus-visible { outline: 3px solid rgba(37,99,235,.28); outline-offset: 2px; }
.schedule-thumb > img, .schedule-thumb > video { width: 100%; height: 100%; object-fit: cover; }
.schedule-type-icon { position: absolute; z-index: 3; right: 4px; bottom: 4px; display: grid; width: 22px; height: 22px; place-items: center; color: #fff !important; border: 1px solid rgba(255,255,255,.28); border-radius: 7px; background: rgba(15,23,42,.78); box-shadow: 0 3px 8px rgba(15,23,42,.22); backdrop-filter: blur(5px); }
.schedule-type-icon svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.9; }
.ticker-thumb { color: #fff; background: #111315; font-size: 9px; font-weight: 850; }
.notice-thumb { padding: 4px; color: #fff; font-size: 8px; font-weight: 800; text-align: center; }
.campaign-thumb { grid-template-columns: repeat(3, 1fr); background: #111827; }
.campaign-thumb > img, .campaign-thumb > video { min-width: 0; }
.campaign-thumb-placeholder { display: grid; place-items: center; min-width: 0; color: #64748b; background: #e8edf5; font-size: 12px; font-weight: 900; }
.schedule-copy { display: grid; grid-column: 3; grid-row: 1; min-width: 0; gap: 5px; align-self: center; }
.schedule-copy strong { display: block; max-width: 100%; overflow: hidden; font-size: 14px; line-height: 1.38; text-overflow: ellipsis; white-space: nowrap; }
.schedule-copy span { overflow: hidden; color: #64748b; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.schedule-facts { display: grid; min-width: 0; gap: 2px; }
.schedule-facts p { display: grid; grid-template-columns: 30px minmax(0,1fr); align-items: baseline; min-width: 0; margin: 0; line-height: 1.4; }
.schedule-facts b { color: #64748b; font-size: 9px; font-weight: 800; }
.schedule-facts span { display: block; min-width: 0; color: #475569; font-size: 10px; }
.schedule-facts .schedule-state-line b, .schedule-facts .schedule-state-line span { color: #334155; font-weight: 850; }
.schedule-controls { position: relative; display: flex; grid-column: 3; grid-row: 2; align-self: start; justify-self: end; gap: 8px; }
.schedule-delete, .pin-button, .schedule-edit, .schedule-detail, .schedule-pause {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 58px;
  height: 48px;
  padding: 0 9px;
  border: 0;
  border-radius: 13px;
}
.schedule-edit { color: #1d4ed8; background: #eff6ff; }
.schedule-delete { color: #b42318; background: #fff1f0; }
.schedule-delete .icon, .pin-button .icon, .schedule-edit .icon, .schedule-detail .icon, .schedule-pause .icon { width: 19px; height: 19px; }
.schedule-delete span, .pin-button span, .schedule-edit span, .schedule-detail span, .schedule-pause span { font-size: 11px; font-weight: 850; }
.schedule-edit { min-width: 72px; }
.schedule-more { position: relative; z-index: 4; }
.schedule-more summary {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: #475569;
  border: 1px solid #dbe4ee;
  border-radius: 13px;
  background: #f8fafc;
  cursor: pointer;
  list-style: none;
}
.schedule-more summary::-webkit-details-marker { display: none; }
.schedule-more summary > span[aria-hidden] { letter-spacing: 2px; transform: translateY(-2px); font-size: 14px; font-weight: 900; }
.schedule-more summary:focus-visible { outline: 3px solid rgba(37,99,235,.2); outline-offset: 2px; }
.schedule-more[open] summary { color: #1d4ed8; border-color: #93c5fd; background: #eff6ff; }
.schedule-more-menu {
  position: absolute;
  z-index: 12;
  top: calc(100% + 7px);
  right: 0;
  display: grid;
  min-width: 164px;
  gap: 7px;
  padding: 8px;
  border: 1px solid #dbe4ee;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(15,23,42,.18);
}
.schedule-more-menu .pin-button,
.schedule-more-menu .schedule-detail,
.schedule-more-menu .schedule-pause,
.schedule-more-menu .schedule-delete { width: 100%; min-width: 0; justify-content: flex-start; padding: 0 12px; }
.schedule-more-menu .schedule-detail { color: #1e40af; background: #eff6ff; }
.schedule-more-menu .schedule-pause { color: #334155; background: #f8fafc; }
.schedule-more-menu .schedule-pause.is-active { color: #111827; background: #e2e8f0; }
.schedule-more-menu .pin-button { color: #334155; background: #f8fafc; }
.schedule-more-menu .pin-button.is-active { color: #92400e; background: #fffbeb; }
.schedule-more-menu .schedule-delete { margin-top: 1px; border-top: 1px solid #fee2e2; }
.schedule-empty { padding: 30px 14px; color: #64748b; border: 1px dashed #cbd5e1; border-radius: 14px; background: #f8fafc; font-size: 13px; text-align: center; }
.situation-heading { align-items: center; }
.situation-refresh {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 48px;
  min-height: 48px;
  padding: 0;
  color: #9a3412;
  border: 1px solid #fed7aa;
  border-radius: 14px;
  background: #fff7ed;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}
.situation-refresh .icon { width: 18px; height: 18px; }
.situation-refresh span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.situation-refresh:disabled { cursor: wait; opacity: .62; }
.situation-overview {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 10px 16px;
  margin-top: 18px;
  padding: 15px;
  color: #0f172a;
  border: 1px solid #dbe4ee;
  border-radius: 16px;
  background: linear-gradient(140deg,#f8fafc,#fff);
}
.situation-location { display: grid; min-width: 0; gap: 3px; }
.situation-location span, .situation-health time { color: #64748b; font-size: 10px; }
.situation-location strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.situation-health { display: grid; justify-items: end; align-content: start; gap: 6px; }
.situation-severity { padding: 5px 9px; color: #475569; border-radius: 999px; background: #e2e8f0; font-size: 10px; font-weight: 850; }
.situation-severity[data-level="normal"] { color: #166534; background: #dcfce7; }
.situation-severity[data-level="attention"] { color: #92400e; background: #fef3c7; }
.situation-severity[data-level="urgent"] { color: #991b1b; background: #fee2e2; }
.situation-overview > p { grid-column: 1 / -1; margin: 0; color: #475569; font-size: 12px; line-height: 1.6; }
.situation-monitoring-status { grid-column: 1 / -1; display: flex; align-items: center; gap: 7px; padding-top: 11px; border-top: 1px solid #e2e8f0; }
.situation-monitoring-status strong { color: #166534; font-size: 11px; }
.situation-monitoring-status > span:last-child { margin-left: auto; color: #64748b; font-size: 10px; }
.situation-monitoring-indicator { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.12); }
.situation-monitoring-status[data-state="checking"] .situation-monitoring-indicator { background: #3b82f6; box-shadow: 0 0 0 4px rgba(59,130,246,.12); animation: situation-pulse 1.2s ease-in-out infinite; }
.situation-monitoring-status[data-state="error"] strong { color: #92400e; }
.situation-monitoring-status[data-state="error"] .situation-monitoring-indicator { background: #f59e0b; box-shadow: 0 0 0 4px rgba(245,158,11,.13); }
.situation-loading {
  align-items: center;
  gap: 13px;
  margin-top: 12px;
  padding: 17px;
  border: 1px solid #bfdbfe;
  border-radius: 15px;
  background: #eff6ff;
}
.situation-loading:not([hidden]) { display: flex; }
.situation-loading div { min-width: 0; }
.situation-loading strong { display: block; font-size: 13px; }
.situation-loading p { margin: 4px 0 0; color: #64748b; font-size: 11px; line-height: 1.5; }
.situation-spinner { width: 28px; height: 28px; flex: 0 0 auto; border: 3px solid #bfdbfe; border-top-color: #2563eb; border-radius: 50%; animation: situation-spin .8s linear infinite; }
@keyframes situation-spin { to { transform: rotate(360deg); } }
.situation-list { display: grid; gap: 11px; margin-top: 14px; }
.situation-empty { padding: 34px 18px; color: #64748b; border: 1px dashed #cbd5e1; border-radius: 15px; background: #f8fafc; text-align: center; }
.situation-empty strong { display: block; margin-bottom: 6px; color: #334155; font-size: 14px; }
.situation-empty p { margin: 0; font-size: 12px; line-height: 1.55; }
.situation-item { padding: 15px; border: 1px solid #e2e8f0; border-left: 5px solid #60a5fa; border-radius: 15px; background: #fff; box-shadow: 0 5px 18px rgba(15,23,42,.04); }
.situation-item.is-unread { box-shadow: 0 0 0 2px rgba(37,99,235,.11),0 7px 20px rgba(15,23,42,.06); }
.situation-item.is-unread .situation-item__category::after { content: 'NEW'; margin-left: 7px; padding: 2px 5px; color: #fff; border-radius: 999px; background: #2563eb; font-size: 8px; letter-spacing: .04em; }
.situation-item[data-level="attention"] { border-left-color: #f59e0b; }
.situation-item[data-level="urgent"] { border-left-color: #ef4444; }
.situation-item__meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.situation-item__category { color: #475569; font-size: 10px; font-weight: 850; letter-spacing: .04em; }
.situation-item__level { padding: 4px 8px; color: #1d4ed8; border-radius: 999px; background: #dbeafe; font-size: 10px; font-weight: 850; }
.situation-item[data-level="attention"] .situation-item__level { color: #92400e; background: #fef3c7; }
.situation-item[data-level="urgent"] .situation-item__level { color: #991b1b; background: #fee2e2; }
.situation-item h3 { margin: 10px 0 6px; font-size: 16px; line-height: 1.42; }
.situation-item__summary { margin: 0; color: #475569; font-size: 12px; line-height: 1.6; }
.situation-item__detail { display: grid; gap: 8px; margin-top: 11px; }
.situation-item__detail p { display: grid; grid-template-columns: 58px minmax(0,1fr); gap: 8px; margin: 0; font-size: 11px; line-height: 1.55; }
.situation-item__detail strong { color: #334155; }
.situation-item__detail span { color: #64748b; }
.situation-item__footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 13px; padding-top: 12px; border-top: 1px solid #eef2f7; }
.situation-source { min-width: 0; color: #2563eb; font-size: 10px; font-weight: 750; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.situation-source:hover { text-decoration: underline; }
.situation-draft-button { min-height: 44px; flex: 0 0 auto; padding: 0 12px; color: #fff; border: 0; border-radius: 11px; background: #1d4ed8; font-size: 11px; font-weight: 850; }
.situation-draft-button:disabled { cursor: wait; opacity: .65; }
.situation-draft-schedule { display: flex; align-items: center; min-height: 44px; margin: -2px 0 16px; padding: 10px 13px; color: #075985; border: 1px solid #bae6fd; border-radius: 12px; background: #f0f9ff; font-size: 12px; font-weight: 800; line-height: 1.45; }
.situation-draft .field { display: grid; gap: 7px; margin-bottom: 14px; }
.situation-draft .field > span { color: #334155; font-size: 12px; font-weight: 850; }
.situation-draft input, .situation-draft textarea { width: 100%; min-width: 0; padding: 12px 13px; color: #0f172a; border: 1px solid #cbd5e1; border-radius: 13px; background: #fff; font: inherit; font-size: 13px; line-height: 1.6; resize: vertical; }
.situation-draft input { min-height: 48px; }
.situation-draft input:focus, .situation-draft textarea:focus { outline: 3px solid rgba(37,99,235,.16); border-color: #2563eb; }
.situation-draft-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; margin-top: 18px; }
.situation-draft-actions button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 12px; border-radius: 14px; font-size: 12px; font-weight: 850; }
.situation-draft-actions .icon { width: 19px; height: 19px; }
.situation-main-action { color: #fff; border: 0; background: linear-gradient(135deg,#6d28d9,#4f46e5); }
.situation-ticker-action { color: #1d4ed8; border: 1px solid #bfdbfe; background: #eff6ff; }
.back-button { display: inline-flex; align-items: center; min-height: 48px; gap: 7px; margin: -7px 0 14px -8px; padding: 0 10px; color: #475569; border: 0; border-radius: 12px; background: transparent; font-size: 13px; font-weight: 800; }
.back-button .icon { width: 18px; height: 18px; }
.editor-heading { margin-bottom: 18px; }
.editor-panel { min-width: 0; }
.content-title-field { margin-bottom: 12px; }
.editor-metadata { margin-top: 18px; }
.ai-schedule-suggestion {
  display: grid;
  grid-template-columns: 42px minmax(0,1fr);
  gap: 11px;
  margin-top: 18px;
  padding: 13px;
  color: #312e81;
  border: 1px solid #c7d2fe;
  border-radius: 15px;
  background: linear-gradient(145deg,#f5f3ff,#eff6ff);
  box-shadow: 0 8px 24px rgba(79,70,229,.08);
}
.ai-schedule-suggestion[hidden] { display: none; }
.ai-schedule-suggestion.is-confirmation { border-color: #fbbf24; background: linear-gradient(145deg,#fffbeb,#fff7ed); }
.ai-schedule-suggestion__mark { display: grid; place-items: center; width: 42px; height: 42px; color: #fff; border-radius: 13px; background: linear-gradient(135deg,#7c3aed,#2563eb); font-size: 11px; font-weight: 900; box-shadow: 0 7px 16px rgba(79,70,229,.22); }
.ai-schedule-suggestion.is-confirmation .ai-schedule-suggestion__mark { background: linear-gradient(135deg,#d97706,#f59e0b); box-shadow: 0 7px 16px rgba(217,119,6,.2); }
.ai-schedule-suggestion__copy { min-width: 0; padding-top: 1px; }
.ai-schedule-suggestion__copy strong { display: block; color: #1e1b4b; font-size: 13px; }
.ai-schedule-suggestion__lines { display: grid; gap: 2px; margin-top: 5px; }
.ai-schedule-suggestion__copy p { display: grid; grid-template-columns: 30px minmax(0,1fr); gap: 5px; margin: 0; color: #475569; font-size: 11px; line-height: 1.45; }
.ai-schedule-suggestion__copy p b { color: #64748b; font-size: 9px; }
.ai-schedule-suggestion__copy p span { overflow: hidden; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.ai-schedule-suggestion__copy small { display: block; margin-top: 3px; overflow: hidden; color: #64748b; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.ai-schedule-suggestion__actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1.25fr .9fr .9fr; gap: 7px; }
.ai-schedule-suggestion__actions button { min-height: 44px; padding: 0 8px; color: #475569; border: 1px solid #dbe4ee; border-radius: 11px; background: #fff; font-size: 10px; font-weight: 850; }
.ai-schedule-suggestion__actions .ai-schedule-primary { color: #fff; border-color: #4f46e5; background: #4f46e5; }
.content-source-tabs {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 5px;
  margin-bottom: 14px;
  padding: 5px;
  border: 1px solid #dbe4ee;
  border-radius: 14px;
  background: #f1f5f9;
}
.content-source-tab {
  min-width: 0;
  min-height: 48px;
  padding: 0 10px;
  color: #64748b;
  border: 0;
  border-radius: 10px;
  background: transparent;
  font-size: 12px;
  font-weight: 850;
}
.content-source-tab.is-active { color: #1d4ed8; background: #fff; box-shadow: 0 4px 14px rgba(15,23,42,.08); }
.content-source-tab.is-ai.is-active { color: #6d28d9; }
.content-source-tab span { margin-right: 4px; }
.content-source-pane[hidden] { display: none; }
.multi-upload {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 190px;
  padding: 24px;
  color: #1e40af;
  border: 1.5px dashed #93c5fd;
  border-radius: 16px;
  background: #eff6ff;
  text-align: center;
  cursor: pointer;
}
.multi-upload input, .campaign-slot input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.multi-upload .icon { width: 34px; height: 34px; }
.multi-upload strong { margin-top: 10px; color: #172554; font-size: 15px; }
.multi-upload span { margin-top: 4px; color: #64748b; font-size: 11px; }
.upload-selection { display: grid; gap: 8px; margin-top: 12px; }
.selected-file { display: grid; grid-template-columns: 50px minmax(0,1fr) 48px; align-items: center; gap: 10px; min-width: 0; padding: 8px; border: 1px solid #e2e8f0; border-radius: 12px; }
.selected-file img, .selected-file video { width: 50px; height: 64px; object-fit: cover; border-radius: 7px; background: #111827; }
.selected-file > div { display: grid; min-width: 0; gap: 3px; }
.selected-file span { color: #2563eb; font-size: 10px; font-weight: 800; }
.selected-file strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.selected-file button { display: grid; place-items: center; width: 48px; height: 48px; padding: 0; color: #b42318; border: 0; border-radius: 12px; background: #fff1f0; }
.selected-file button .icon { width: 16px; height: 16px; }
.content-ai-card {
  position: relative;
  display: grid;
  gap: 15px;
  overflow: hidden;
  padding: 18px;
  border: 1px solid #ddd6fe;
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0, rgba(167,139,250,.18), transparent 35%),
    linear-gradient(145deg,#fafaff,#f5f3ff 58%,#eff6ff);
}
.content-ai-heading { display: flex; align-items: flex-start; gap: 11px; }
.content-ai-heading > div { min-width: 0; }
.content-ai-heading strong { color: #312e81; font-size: 16px; }
.content-ai-heading p { margin: 4px 0 0; color: #64748b; font-size: 11px; line-height: 1.55; }
.content-ai-mark { display: grid; flex: none; place-items: center; width: 38px; height: 38px; color: #fff; border-radius: 12px; background: linear-gradient(135deg,#7c3aed,#2563eb); box-shadow: 0 9px 20px rgba(99,102,241,.24); font-size: 19px; }
.content-ai-title-field label span { margin-left: 4px; color: #94a3b8; font-size: 9px; font-weight: 700; }
.content-ai-request-field textarea { min-height: 142px; resize: vertical; }
.content-ai-request-meta { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; color: #64748b; font-size: 9px; line-height: 1.5; }
.content-ai-request-meta strong { flex: none; color: #7c3aed; font-size: 9px; }
.content-ai-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.content-ai-options label { display: grid; min-width: 0; gap: 6px; color: #334155; font-size: 10px; font-weight: 800; }
.content-ai-options select { min-width: 0; min-height: 46px; padding: 0 34px 0 11px; color: #1e293b; border: 1px solid #d8d6ef; border-radius: 11px; background-color: rgba(255,255,255,.9); font: inherit; font-size: 11px; }
.content-ai-generate { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; gap: 8px; color: #fff; border: 0; border-radius: 14px; background: linear-gradient(135deg,#7c3aed,#2563eb); box-shadow: 0 12px 25px rgba(79,70,229,.24); font-size: 13px; font-weight: 900; }
.content-ai-generate[hidden] { display: none; }
.content-ai-generate:disabled { cursor: wait; opacity: .65; }
.content-ai-generate > span:first-child { font-size: 18px; }
.content-ai-status { min-height: 17px; margin: -4px 2px 0; color: #64748b; font-size: 10px; line-height: 1.55; text-align: center; }
.content-ai-status.is-success { color: #047857; font-weight: 750; }
.content-ai-status.is-error { color: #b42318; font-weight: 750; }
.content-ai-progress { display: grid; grid-template-columns: 104px minmax(0,1fr); align-items: center; gap: 16px; padding: 15px; overflow: hidden; border: 1px solid rgba(124,58,237,.2); border-radius: 17px; background: linear-gradient(135deg,rgba(245,243,255,.98),rgba(239,246,255,.98)); box-shadow: inset 0 1px 0 rgba(255,255,255,.9); }
.content-ai-progress[hidden] { display: none; }
.content-ai-progress-visual { display: grid; place-items: center; min-height: 138px; }
.content-ai-progress-poster { position: relative; width: 84px; aspect-ratio: 1584/2208; overflow: hidden; border: 1px solid rgba(255,255,255,.8); border-radius: 11px; background: linear-gradient(155deg,#312e81 0%,#6d28d9 42%,#2563eb 100%); box-shadow: 0 14px 30px rgba(79,70,229,.28); transform: perspective(380px) rotateY(-7deg); }
.content-ai-progress-poster::after { position: absolute; inset: 0; content: ""; background: linear-gradient(105deg,transparent 20%,rgba(255,255,255,.32) 43%,transparent 66%); transform: translateX(-150%); animation: content-ai-shimmer 2.15s ease-in-out infinite; }
.content-ai-progress-glow { position: absolute; width: 90px; height: 90px; right: -35px; top: -28px; border-radius: 50%; background: rgba(147,197,253,.58); filter: blur(4px); animation: content-ai-breathe 2.6s ease-in-out infinite; }
.content-ai-progress-title-line,.content-ai-progress-copy-line { position: absolute; left: 12px; z-index: 1; height: 5px; border-radius: 99px; background: rgba(255,255,255,.92); }
.content-ai-progress-title-line { top: 23px; width: 57px; height: 7px; }
.content-ai-progress-copy-line.line-one { top: 36px; width: 48px; opacity: .72; }
.content-ai-progress-copy-line.line-two { top: 45px; width: 36px; opacity: .55; }
.content-ai-progress-illustration { position: absolute; z-index: 1; right: 9px; bottom: 12px; width: 45px; height: 45px; border-radius: 16px 16px 9px 16px; background: linear-gradient(145deg,rgba(255,255,255,.92),rgba(191,219,254,.76)); box-shadow: -17px -5px 0 -10px rgba(253,224,71,.94); animation: content-ai-float 2.4s ease-in-out infinite; }
.content-ai-progress-spark { position: absolute; z-index: 2; color: #fde68a; font-style: normal; filter: drop-shadow(0 2px 4px rgba(49,46,129,.35)); animation: content-ai-twinkle 1.8s ease-in-out infinite; }
.content-ai-progress-spark.spark-one { right: 11px; top: 39px; font-size: 13px; }
.content-ai-progress-spark.spark-two { left: 14px; bottom: 18px; font-size: 9px; animation-delay: -.9s; }
.content-ai-progress-copy { display: grid; min-width: 0; gap: 7px; }
.content-ai-progress-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.content-ai-progress-heading strong { color: #312e81; font-size: 12px; line-height: 1.45; }
.content-ai-progress-heading span { flex: none; color: #6d28d9; font-size: 11px; font-variant-numeric: tabular-nums; font-weight: 900; }
.content-ai-progress-copy p { margin: 0; color: #475569; font-size: 10px; line-height: 1.55; }
.content-ai-progress-copy small { color: #64748b; font-size: 8.5px; line-height: 1.5; }
.content-ai-progress-track { height: 6px; overflow: hidden; border-radius: 99px; background: rgba(99,102,241,.12); }
.content-ai-progress-track i { display: block; width: 42%; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#7c3aed,#2563eb,#60a5fa); animation: content-ai-track 1.65s ease-in-out infinite; }
.content-ai-progress.is-complete { border-color: rgba(5,150,105,.3); background: linear-gradient(135deg,#ecfdf5,#eff6ff); }
.content-ai-progress.is-complete .content-ai-progress-heading strong { color: #047857; }
.content-ai-progress.is-complete .content-ai-progress-track i { width: 100%; animation: none; background: #10b981; }
.content-ai-progress.is-error { border-color: rgba(220,38,38,.25); background: #fff7f7; }
.content-ai-progress.is-error .content-ai-progress-heading strong { color: #b42318; }
.content-ai-progress.is-error .content-ai-progress-poster::after,.content-ai-progress.is-error .content-ai-progress-track i { animation-play-state: paused; }
body.has-modal { overflow: hidden; }
.ai-creation-dialog[hidden] { display: none; }
.ai-creation-dialog { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 20px; }
.ai-creation-dialog__backdrop { position: absolute; inset: 0; background: rgba(2,6,23,.76); backdrop-filter: blur(9px); }
.ai-creation-dialog__card { position: relative; width: min(100%, 520px); max-height: calc(100dvh - 40px); overflow: hidden; border: 1px solid rgba(255,255,255,.72); border-radius: 22px; outline: none; background: #fff; box-shadow: 0 28px 72px rgba(2,6,23,.36); }
.ai-creation-dialog__progress { padding: 18px; }
.ai-creation-dialog__progress .content-ai-progress { grid-template-columns: 112px minmax(0,1fr); gap: 20px; min-height: 190px; padding: 22px; border: 0; background: linear-gradient(145deg,#faf5ff,#eef2ff 55%,#eff6ff); }
.ai-creation-dialog__progress .content-ai-progress-visual { min-height: 150px; }
.ai-creation-dialog__progress .content-ai-progress-poster { width: 96px; border-radius: 15px; }
.ai-creation-dialog__progress .content-ai-progress-title-line { top: 37px; left: 19px; width: 88px; height: 11px; }
.ai-creation-dialog__progress .content-ai-progress-copy-line { left: 19px; height: 7px; }
.ai-creation-dialog__progress .content-ai-progress-copy-line.line-one { top: 57px; width: 76px; }
.ai-creation-dialog__progress .content-ai-progress-copy-line.line-two { top: 72px; width: 58px; }
.ai-creation-dialog__progress .content-ai-progress-illustration { right: 14px; bottom: 19px; width: 70px; height: 70px; border-radius: 22px 22px 12px 22px; }
.ai-creation-dialog__progress .content-ai-progress-spark.spark-one { right: 17px; top: 60px; font-size: 19px; }
.ai-creation-dialog__progress .content-ai-progress-spark.spark-two { left: 22px; bottom: 28px; font-size: 13px; }
.ai-creation-dialog__progress .content-ai-progress-copy { gap: 13px; }
.ai-creation-dialog__progress .content-ai-progress-heading strong { font-size: 18px; letter-spacing: -.035em; }
.ai-creation-dialog__progress .content-ai-progress-heading span { font-size: 12px; }
.ai-creation-dialog__progress .content-ai-progress-copy > p { font-size: 12px; }
.ai-creation-dialog__progress .content-ai-progress-copy small { font-size: 10px; }
.ai-creation-dialog__progress .content-ai-progress-track { height: 8px; }
.ai-creation-dialog__eyebrow { margin: 0; color: #6d28d9 !important; font-size: 10px !important; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.ai-review { display: grid; grid-template-rows: auto minmax(0,1fr) auto auto; max-height: calc(100dvh - 40px); }
.ai-review[hidden],.ai-review__revision[hidden] { display: none; }
.ai-review__header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px 12px; border-bottom: 1px solid #e2e8f0; }
.ai-review__header h2 { margin: 0; color: #111827; font-size: 18px; letter-spacing: -.04em; }
.ai-review__header p:not(.ai-creation-dialog__eyebrow) { margin: 5px 0 0; color: #64748b; font-size: 11px; line-height: 1.5; }
.ai-review__close { display: grid; flex: none; place-items: center; width: 40px; height: 40px; padding: 0; color: #475569; border: 0; border-radius: 12px; background: #f1f5f9; }
.ai-review__close .icon { width: 18px; height: 18px; }
.ai-review__viewer { position: relative; min-height: 0; overflow: auto; padding: 14px; background: radial-gradient(circle at 50% 20%,#334155,#0f172a 68%); overscroll-behavior: contain; }
.ai-review__image-button { display: grid; width: 100%; min-height: 260px; place-items: center; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.ai-review__image-button img { display: block; width: auto; max-width: 100%; height: auto; max-height: min(58dvh,680px); border-radius: 3px; background: #fff; box-shadow: 0 16px 45px rgba(0,0,0,.4); }
.ai-review__viewer.is-zoomed .ai-review__image-button { width: max-content; min-width: 100%; place-items: start center; cursor: zoom-out; }
.ai-review__viewer.is-zoomed .ai-review__image-button img { width: 1000px; max-width: none; max-height: none; }
.ai-review__zoom { position: sticky; z-index: 2; left: 100%; bottom: 0; display: grid; width: 42px; height: 42px; place-items: center; margin-top: -48px; padding: 0; color: #fff; border: 1px solid rgba(255,255,255,.24); border-radius: 12px; background: rgba(15,23,42,.82); backdrop-filter: blur(8px); }
.ai-review__zoom .icon { width: 18px; height: 18px; }
.ai-review__revision { display: grid; gap: 9px; padding: 13px 16px; border-top: 1px solid #e2e8f0; background: #f8fafc; }
.ai-review__revision-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ai-review__revision-heading button { display: grid; width: 34px; height: 34px; place-items: center; padding: 0; color: #64748b; border: 0; border-radius: 10px; background: #e2e8f0; }
.ai-review__revision-heading .icon { width: 16px; height: 16px; }
.ai-review__revision label { color: #1e293b; font-size: 12px; font-weight: 900; }
.ai-review__revision textarea { min-height: 76px; padding: 11px; resize: vertical; color: #0f172a; border: 1px solid #cbd5e1; border-radius: 11px; background: #fff; font: inherit; font-size: 12px; line-height: 1.5; }
.ai-review__revision textarea:focus { border-color: #7c3aed; outline: 3px solid rgba(124,58,237,.14); }
.ai-review__revision-actions { display: grid; grid-template-columns: 1fr 1.25fr; gap: 9px; }
.ai-review__apply,.ai-review__use { min-height: 48px; color: #fff; border: 0; border-radius: 12px; background: linear-gradient(135deg,#7c3aed,#2563eb); box-shadow: 0 10px 24px rgba(79,70,229,.22); font-size: 12px; font-weight: 900; }
.ai-review__actions { display: grid; grid-template-columns: .75fr 1.65fr; gap: 9px; padding: 11px 14px max(11px,env(safe-area-inset-bottom)); border-top: 1px solid #e2e8f0; background: #fff; }
.ai-review.is-revising .ai-review__actions { display: none; }
.ai-review__actions button { min-height: 48px; border-radius: 12px; font-size: 12px; font-weight: 900; }
.ai-review__regenerate,.ai-review__revise { display: inline-flex; align-items: center; justify-content: center; gap: 7px; color: #4338ca; border: 1px solid #c7d2fe; background: #eef2ff; }
.ai-review__regenerate .icon,.ai-review__revise .icon { width: 17px; height: 17px; }
.ai-review__use { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.ai-review--error { place-items: center; padding: 38px 28px; text-align: center; }
.ai-review__error-icon { display: grid; width: 58px; height: 58px; place-items: center; color: #b42318; border-radius: 18px; background: #fff1f0; font-size: 28px; font-weight: 900; }
.ai-review--error h2 { margin: 17px 0 0; color: #111827; font-size: 20px; }
.ai-review--error p { max-width: 520px; margin: 9px 0 0; color: #64748b; font-size: 12px; line-height: 1.6; }
.ai-review__error-actions { display: grid; grid-template-columns: 1fr 1.4fr; width: min(100%,380px); gap: 9px; margin-top: 22px; }
@keyframes content-ai-shimmer { 0%,18% { transform: translateX(-150%); } 72%,100% { transform: translateX(150%); } }
@keyframes content-ai-track { 0% { transform: translateX(-105%); } 50% { transform: translateX(75%); } 100% { transform: translateX(245%); } }
@keyframes content-ai-breathe { 50% { transform: scale(1.12); opacity: .72; } }
@keyframes content-ai-float { 50% { transform: translateY(-5px) rotate(2deg); } }
@keyframes content-ai-twinkle { 50% { transform: scale(.65) rotate(20deg); opacity: .45; } }
@media (prefers-reduced-motion: reduce) {
  .content-ai-progress-poster::after,.content-ai-progress-glow,.content-ai-progress-illustration,.content-ai-progress-spark,.content-ai-progress-track i { animation-duration: .001ms; animation-iteration-count: 1; }
}
.campaign-editor-meta { display: grid; gap: 3px; margin: 20px 0 10px; }
.campaign-editor-meta strong { font-size: 14px; }
.campaign-editor-meta span { color: #64748b; font-size: 11px; }
.campaign-slots { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
.campaign-slot {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  aspect-ratio: .7;
  overflow: hidden;
  color: #6d28d9;
  border: 1.5px dashed #c4b5fd;
  border-radius: 13px;
  background: #f5f3ff;
  text-align: center;
  cursor: pointer;
}
.campaign-slot > img, .campaign-slot > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.campaign-slot .slot-number { position: relative; z-index: 2; padding: 3px 6px; border-radius: 999px; background: rgba(255,255,255,.9); font-size: 9px; font-weight: 850; }
.campaign-slot .slot-plus { font-size: 30px; font-weight: 300; line-height: 1; }
.campaign-slot > strong { position: relative; z-index: 2; max-width: 92%; margin-top: 6px; overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.campaign-slot.has-file > strong { position: absolute; right: 4px; bottom: 4px; left: 4px; max-width: none; padding: 5px; color: #fff; border-radius: 6px; background: rgba(2,6,23,.72); }
.campaign-slot.has-file .slot-number { position: absolute; top: 4px; left: 4px; }

.metadata-card { margin-top: 12px; overflow: hidden; border: 1px solid #dbe4ee; border-radius: 14px; background: #fff; }
.metadata-card summary { display: grid; grid-template-columns: 40px minmax(0,1fr) 24px; align-items: center; min-height: 64px; gap: 10px; padding: 11px 13px; cursor: pointer; list-style: none; }
.metadata-card summary::-webkit-details-marker { display: none; }
.metadata-card summary > span:nth-child(2) { display: grid; min-width: 0; gap: 2px; }
.metadata-card summary strong { font-size: 13px; }
.metadata-card summary small { overflow: hidden; color: #64748b; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.metadata-card summary > .icon { width: 18px; color: #64748b; transition: transform .2s ease; }
.metadata-card[open] summary > .icon { transform: rotate(180deg); }
.metadata-icon { display: grid; place-items: center; width: 34px; height: 34px; color: #1d4ed8; border-radius: 10px; background: #eff6ff; font-size: 17px; font-weight: 900; }
.metadata-icon.target { color: #0f766e; background: #ecfdf5; }
.metadata-body { display: grid; gap: 14px; padding: 0 13px 14px; border-top: 1px solid #eef2f7; }
.inline-check { display: flex; align-items: center; gap: 9px; padding-top: 13px; font-size: 12px; font-weight: 750; }
.inline-check input, .weekday-field input, .target-tree input { width: 18px; height: 18px; accent-color: #2563eb; }
.date-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.date-grid label { display: grid; gap: 5px; color: #475569; font-size: 10px; font-weight: 750; }
.date-grid input, .time-range input { min-width: 0; height: 40px; padding: 0 9px; border: 1px solid #cbd5e1; border-radius: 9px; background: #fff; }
.weekday-field { margin: 0; padding: 0; border: 0; }
.weekday-field legend { margin-bottom: 7px; color: #475569; font-size: 10px; font-weight: 750; }
#weekday-options { display: grid; grid-template-columns: repeat(7,1fr); gap: 4px; }
#weekday-options label { display: grid; place-items: center; gap: 4px; padding: 6px 1px; color: #475569; border: 1px solid #e2e8f0; border-radius: 8px; font-size: 9px; }
.time-range-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #475569; font-size: 10px; }
.time-range-heading button { padding: 6px 8px; color: #1d4ed8; border: 0; border-radius: 8px; background: #eff6ff; font-size: 10px; font-weight: 800; }
.time-ranges { display: grid; gap: 7px; }
.time-range { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr) 32px; align-items: center; gap: 6px; color: #94a3b8; }
.time-range button { width: 44px; height: 44px; padding: 0; color: #b42318; border: 0; border-radius: 11px; background: #fff1f0; }
.target-tree { display: grid; gap: 6px; max-height: 340px; overflow-y: auto; }
.target-building { border: 1px solid #e2e8f0; border-radius: 10px; background: #f8fafc; }
.target-building summary { display: flex; align-items: center; gap: 8px; padding: 9px 10px; font-size: 11px; font-weight: 800; }
.target-elevators { display: grid; grid-template-columns: repeat(2,1fr); gap: 7px; padding: 0 10px 10px 36px; }
.target-elevators label { display: flex; align-items: center; gap: 6px; color: #475569; font-size: 10px; }

.pin-button { color: #a16207; background: #fffbeb; }
.pin-button.is-active { color: #fff; background: #d97706; }
.schedule-item.is-paused, .schedule-item.is-expired {
  background-color: #f8fafc;
  background-image: repeating-linear-gradient(135deg, rgba(100,116,139,.055) 0, rgba(100,116,139,.055) 6px, transparent 6px, transparent 13px);
}
.schedule-item.is-paused .schedule-thumb, .schedule-item.is-expired .schedule-thumb { filter: grayscale(.85); opacity: .62; }
.schedule-item.is-paused .schedule-copy > strong, .schedule-item.is-expired .schedule-copy > strong { color: #64748b; }
.pin-dialog__icon { display: grid; place-items: center; width: 50px; height: 50px; margin: 0 auto 12px; color: #a16207; border-radius: 16px; background: #fef3c7; }
.pin-dialog__icon .icon { width: 24px; height: 24px; }
.pin-panel-options { display: grid; grid-template-columns: repeat(5,1fr); gap: 7px; margin: 16px 0; }
.pin-panel-options button { height: 48px; color: #92400e; border: 1px solid #fde68a; border-radius: 10px; background: #fffbeb; font-size: 11px; font-weight: 850; }
.pin-panel-options button.is-current { color: #fff; border-color: #d97706; background: #d97706; }
.pin-release { color: #92400e; background: #fef3c7; }

.ai-landing { display: grid; place-items: center; min-height: 420px; padding: 36px 18px; text-align: center; }
.ai-orb { display: grid; place-items: center; width: 78px; height: 78px; margin-bottom: 20px; color: #fff; border-radius: 26px; background: linear-gradient(135deg,#7c3aed,#2563eb); box-shadow: 0 18px 38px rgba(99,102,241,.3); font-size: 34px; }
.ai-landing .section-copy { max-width: 390px; margin-top: 10px; line-height: 1.7; }
.ai-start-button, .ai-generate-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px; color: #fff; border: 0; border-radius: 13px; background: linear-gradient(135deg,#7c3aed,#2563eb); font-weight: 850; box-shadow: 0 12px 24px rgba(99,102,241,.24); }
.ai-start-button { margin-top: 24px; }
.ai-start-button .icon { width: 18px; }
.ai-request-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.voice-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 48px; color: #5b21b6; border: 1px solid #ddd6fe; border-radius: 13px; background: #f5f3ff; font-weight: 800; }
.voice-button.is-listening { color: #fff; background: #dc2626; border-color: #dc2626; animation: voice-pulse 1.2s infinite; }
@keyframes voice-pulse { 50% { box-shadow: 0 0 0 7px rgba(220,38,38,.12); } }
.voice-status { min-height: 18px; margin: 8px 0 0; color: #64748b; font-size: 11px; }
.ai-result { display: grid; gap: 12px; margin-top: 20px; padding: 15px; border: 1px solid #ddd6fe; border-radius: 16px; background: #faf7ff; }
.ai-result-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ai-result-heading span { color: #6d28d9; font-size: 13px; font-weight: 900; }
.ai-result-heading small { color: #64748b; font-size: 9px; }
.ai-result .field { margin-top: 0; }
.ai-result textarea { min-height: 90px; }
.ai-publish-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ai-publish-actions button { min-height: 46px; color: #fff; border: 0; border-radius: 11px; background: #2563eb; font-weight: 850; }
.ai-publish-actions button:last-child { background: #111315; }

.settings-dialog__card { width: min(100%, 440px); max-height: min(90vh, 760px); overflow-y: auto; text-align: left; }
.settings-dialog__heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.settings-dialog__heading h2 { margin-top: 0; }
.settings-close { display: grid; place-items: center; width: 48px; height: 48px; padding: 0; color: #475569; border: 0; border-radius: 13px; background: #f1f5f9; }
.settings-close .icon { width: 22px; height: 22px; }
.settings-dialog .setting-card { margin-top: 11px; }
.settings-dialog__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 18px; }
.settings-save { min-height: 48px; color: #fff; border: 0; border-radius: 13px; background: #2563eb; font-weight: 850; }
.settings-save:disabled { cursor: wait; opacity: .65; }
.housing-banner-card { display: grid; gap: 10px; margin-top: 16px; padding: 15px; border: 1px solid #d7deea; border-radius: 15px; background: #f8fafc; }
.housing-banner-card__heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; }
.housing-banner-card__heading > div { display: grid; gap: 3px; min-width: 0; }
.housing-banner-card__heading strong { color: #0f172a; font-size: 13px; }
.housing-banner-card__heading span { color: #64748b; font-size: 10px; line-height: 1.45; }
.housing-banner-preview { position: relative; display: grid; place-items: center; aspect-ratio: 5.5 / 1; overflow: hidden; border: 1px dashed #94a3b8; border-radius: 10px; background: #e5e7eb; }
.housing-banner-preview img { position: absolute; inset: 0; display: none; width: 100%; height: 100%; object-fit: contain; background: #d1d5db; }
.housing-banner-preview.has-image img { display: block; }
.housing-banner-preview.has-image span { display: none; }
.housing-banner-preview span { color: #64748b; font-size: 10px; font-weight: 800; }
.housing-banner-name { min-height: 15px; margin: 0; overflow: hidden; color: #475569; font-size: 10px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.housing-banner-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.housing-banner-upload, .housing-banner-remove { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; border-radius: 11px; font-size: 11px; font-weight: 850; }
.housing-banner-upload { color: #1d4ed8; border: 1px solid #bfdbfe; background: #eff6ff; cursor: pointer; }
.housing-banner-upload input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.housing-banner-remove { color: #9f2525; border: 1px solid #fecaca; background: #fff1f2; }
.housing-banner-remove:disabled { color: #94a3b8; border-color: #e2e8f0; background: #f1f5f9; }
.housing-banner-help { margin: 0; color: #64748b; font-size: 9px; line-height: 1.55; }
.ai-key-card { display: grid; gap: 11px; margin-top: 16px; padding: 15px; border: 1px solid #dbeafe; border-radius: 15px; background: #f8fbff; }
.ai-key-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ai-key-heading > div { display: grid; gap: 2px; }
.ai-key-heading strong { color: #0f172a; font-size: 13px; }
.ai-key-heading span:not(.ai-key-status) { color: #64748b; font-size: 10px; }
.ai-key-status { flex: none; padding: 5px 8px; color: #9a3412; border: 1px solid #fed7aa; border-radius: 999px; background: #fff7ed; font-size: 10px; font-weight: 850; }
.ai-key-status.is-connected { color: #166534; border-color: #bbf7d0; background: #f0fdf4; }
.ai-key-field { display: grid; gap: 6px; }
.ai-key-field > span { color: #334155; font-size: 11px; font-weight: 800; }
.ai-key-field input { min-width: 0; min-height: 44px; padding: 0 12px; color: #0f172a; border: 1px solid #cbd5e1; border-radius: 11px; background: #fff; font: inherit; font-size: 12px; }
.ai-key-field input:focus { outline: 3px solid rgba(37,99,235,.18); border-color: #2563eb; }
.ai-key-field input:disabled { color: #94a3b8; background: #f1f5f9; }
.ai-key-help { min-height: 16px; margin: 0; color: #64748b; font-size: 10px; line-height: 1.55; }
.ai-key-save { min-height: 44px; color: #1d4ed8; border: 1px solid #bfdbfe; border-radius: 11px; background: #eff6ff; font-weight: 850; }
.ai-key-save:disabled { cursor: not-allowed; opacity: .58; }

@media (max-width: 560px) {
  .schedule-dialog { place-items: end center; padding: 0; }
  .schedule-dialog__card { width: 100%; max-height: calc(100dvh - 12px); border-radius: 24px 24px 0 0; }
  .schedule-dialog__header { padding: 13px 14px 11px; }
  .schedule-preview-media { min-height: 240px; max-height: calc(100dvh - 83px); padding: 12px; }
  .schedule-preview-media > img,.schedule-preview-media > video { max-height: calc(100dvh - 110px); }
  .schedule-preview-campaign { grid-template-columns: repeat(auto-fit,minmax(62px,1fr)); }
  .schedule-preview-notice { min-height: 390px; padding: 28px 22px; }
  .schedule-detail-dialog__card { padding-bottom: max(8px,env(safe-area-inset-bottom)); }
  .schedule-detail-list { padding-inline: 16px; }
  .schedule-detail-list > div { grid-template-columns: 78px minmax(0,1fr); gap: 10px; }
  .apartment-onboarding { padding: max(14px,env(safe-area-inset-top)) 14px 14px; }
  .apartment-onboarding__card { min-height: calc(100dvh - 28px); }
  .apartment-onboarding__header { margin-bottom: 44px; }
  .apartment-search__controls { grid-template-columns: minmax(0,1fr); }
  .apartment-search__controls button { width: 100%; }
  .apartment-install-heading { align-items: flex-start; flex-direction: column; }
  .apartment-bulk-actions { width: 100%; }
  .apartment-bulk-actions button { flex: 1; min-height: 44px; }
  .apartment-settings-card { grid-template-columns: minmax(0,1fr); }
  .apartment-settings-actions { grid-template-columns: 1fr 1fr; }
  .apartment-settings-card button { min-height: 48px; }
  .apartment-onboarding__actions { padding-inline: 14px; }
  .cms-header { padding: max(12px, env(safe-area-inset-top)) 14px 12px; }
  .brand-mark { width: 38px; height: 38px; border-radius: 12px; }
  .brand-mark .icon { width: 20px; height: 20px; }
  .brand-title { font-size: 16px; }
  .brand-subtitle { max-width: 225px; overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
  .live-card { margin-top: 12px; padding: 10px 11px; }
  .status-copy { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .live-badge { font-size: 10px; }
  .settings-button,.situation-alert-button { min-width: 48px; min-height: 48px; padding: 0; }
  .settings-button > span,.situation-alert-button > span:not(.situation-alert-dot) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  .settings-button .icon { width: 20px; height: 20px; }
  .situation-alert-button .icon { width: 21px; height: 21px; }
  .situation-alert-dot { position: absolute; right: 8px; bottom: 8px; width: 6px; height: 6px; }
  .situation-alert-badge { position: absolute !important; top: -5px; right: -5px; width: auto !important; min-width: 20px; height: 20px !important; overflow: visible !important; clip: auto !important; }
  .schedule-tabs { gap: 4px; padding: 6px 10px; }
  .schedule-tab { min-height: 50px; padding-inline: 2px; border-radius: 11px; }
  .schedule-tab .icon { width: 18px; height: 18px; }
  .schedule-tab span { font-size: 10px; }
  .cms-main { min-height: 0; padding: 10px 10px 112px; }
  #schedule-view { min-height: 0; }
  .schedule-panel, .editor-view { min-height: calc(100dvh - 132px); padding: 14px; border-radius: 19px; }
  .section-title { font-size: 19px; }
  .section-copy { font-size: 12px; }
  .schedule-heading { align-items: center; gap: 12px; }
  .schedule-heading .eyebrow,
  .schedule-heading .section-copy { display: none; }
  .situation-refresh { width: 48px; padding: 0; }
  .situation-refresh span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  .situation-overview { grid-template-columns: minmax(0,1fr) auto; margin-top: 12px; padding: 13px; }
  .situation-monitoring-status { align-items: flex-start; flex-wrap: wrap; }
  .situation-monitoring-status > span:last-child { width: 100%; margin-left: 15px; }
  .situation-location strong { font-size: 12px; }
  .situation-item { padding: 13px; }
  .situation-item__footer { align-items: stretch; flex-direction: column; }
  .situation-source { min-height: 30px; display: flex; align-items: center; }
  .situation-draft-button { width: 100%; min-height: 48px; }
  .situation-draft-actions { grid-template-columns: 1fr; }
  .setting-card { margin-top: 12px; padding: 9px 11px; }
  .setting-card select { height: 44px; }
  .schedule-summary { margin: 13px 0 8px; font-size: 11px; }
  .schedule-list { gap: 10px; }
  .schedule-item { grid-template-columns: 48px 54px minmax(0, 1fr); column-gap: 9px; padding: 9px; }
  .schedule-thumb { width: 54px; height: 74px; }
  .schedule-controls { gap: 8px; }
  .schedule-more-menu { min-width: 156px; }
  .content-source-tab { min-height: 50px; font-size: 11px; }
  .content-ai-card { padding: 15px; }
  .content-ai-options { grid-template-columns: 1fr; }
  .content-ai-progress { grid-template-columns: 86px minmax(0,1fr); gap: 12px; padding: 12px; }
  .content-ai-progress-visual { min-height: 120px; }
  .content-ai-progress-poster { width: 72px; }
  .content-ai-progress-heading { display: grid; grid-template-columns: minmax(0,1fr) auto; }
  .ai-creation-dialog { padding: max(12px,env(safe-area-inset-top)) 12px max(12px,env(safe-area-inset-bottom)); }
  .ai-creation-dialog__card { width: 100%; height: auto; max-height: calc(100dvh - 24px); border-radius: 20px; }
  .ai-creation-dialog__progress { padding: 12px; background: linear-gradient(155deg,#faf5ff,#eef2ff); }
  .ai-creation-dialog__progress .content-ai-progress { grid-template-columns: 58px minmax(0,1fr); gap: 11px; width: 100%; min-height: 0; padding: 15px; text-align: left; }
  .ai-creation-dialog__progress .content-ai-progress-visual { min-height: 84px; }
  .ai-creation-dialog__progress .content-ai-progress-poster { width: 50px; border-radius: 10px; }
  .ai-creation-dialog__progress .content-ai-progress-copy { gap: 8px; }
  .ai-creation-dialog__progress .content-ai-progress-heading { grid-template-columns: minmax(0,1fr) auto; justify-items: initial; gap: 7px; }
  .ai-creation-dialog__progress .content-ai-progress-heading strong { overflow: hidden; font-size: clamp(14px,4.1vw,17px); text-overflow: ellipsis; white-space: nowrap; }
  .ai-creation-dialog__progress .content-ai-progress-copy > p { overflow: hidden; font-size: 10.5px; text-overflow: ellipsis; white-space: nowrap; }
  .ai-review { height: auto; max-height: calc(100dvh - 24px); }
  .ai-review__header { padding: 11px 12px 9px 14px; }
  .ai-review__header h2 { font-size: 16px; }
  .ai-review__header p:not(.ai-creation-dialog__eyebrow) { margin-top: 3px; font-size: 9.5px; }
  .ai-review__close { width: 38px; height: 38px; border-radius: 11px; }
  .ai-review__viewer { padding: 10px; }
  .ai-review__image-button { min-height: 0; }
  .ai-review__image-button img { max-height: calc(100dvh - 174px); }
  .ai-review__viewer.is-zoomed .ai-review__image-button img { width: 850px; }
  .ai-review__revision { padding: 11px 12px; }
  .ai-review__revision textarea { min-height: 70px; }
  .ai-review__actions { grid-template-columns: .72fr 1.55fr; padding: 9px 10px max(9px,env(safe-area-inset-bottom)); }
  .ai-review__actions button { min-height: 46px; }
  .ai-review--error { min-height: 0; align-content: center; padding: 30px 20px; }
  .multi-upload { min-height: 160px; padding: 20px 14px; }
  .ai-schedule-suggestion { grid-template-columns: 38px minmax(0,1fr); gap: 9px; margin-top: 14px; padding: 11px; }
  .ai-schedule-suggestion__mark { width: 38px; height: 38px; border-radius: 11px; }
  .ai-schedule-suggestion__actions { grid-template-columns: 1.15fr 1fr 1fr; }
  .ai-schedule-suggestion__actions button { min-height: 48px; font-size: 10px; }
  .campaign-slots { gap: 6px; }
  .delete-dialog { place-items: end center; padding: 0; }
  .delete-dialog__card { width: 100%; max-height: calc(100dvh - 16px); overflow-y: auto; padding: 24px 18px max(20px, env(safe-area-inset-bottom)); border-radius: 24px 24px 0 0; }
  .settings-dialog__card { width: 100%; max-height: calc(100dvh - 16px); }
  .settings-dialog .setting-card { min-height: 70px; }
  .settings-dialog__actions { position: sticky; bottom: 0; margin: 18px -4px -8px; padding: 10px 4px 0; background: linear-gradient(to top, #fff 82%, rgba(255,255,255,0)); }
  .toast { top: max(12px, env(safe-area-inset-top)); }
}

@media (max-width: 390px) {
  .ai-creation-dialog__progress .content-ai-progress { grid-template-columns: minmax(0,1fr); }
  .ai-creation-dialog__progress .content-ai-progress-visual { display: none; }
}

@media (max-width: 360px) {
  .schedule-item { grid-template-columns: 48px 48px minmax(0, 1fr); column-gap: 7px; }
  .schedule-thumb { width: 48px; height: 68px; }
  .schedule-copy strong { font-size: 13px; }
  .schedule-controls { gap: 6px; }
  .schedule-delete, .schedule-edit, .pin-button { min-width: 52px; height: 46px; padding: 0 7px; }
  .campaign-slots { gap: 5px; }
}

@media (max-height: 500px) and (orientation: landscape) {
  .cms-header { padding: max(8px, env(safe-area-inset-top)) 16px 8px; }
  .live-card { margin-top: 7px; }
  .schedule-tabs { position: relative; }
  .schedule-panel, .editor-view { min-height: 0; }
  .delete-dialog__card { max-height: calc(100dvh - 8px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

.toast {
  position: fixed;
  z-index: 50;
  left: 50%;
  top: 18px;
  width: min(calc(100% - 32px), 470px);
  padding: 13px 16px;
  color: white;
  border-radius: 13px;
  background: #0f172a;
  box-shadow: var(--shadow);
  transform: translate(-50%, -130%);
  opacity: 0;
  transition: transform .28s ease, opacity .28s ease;
}
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }
.toast.is-error { background: #9f2525; }

.display-page { min-height: 100vh; color: white; background: #06090f; overflow: hidden; }
.display-shell { position: relative; display: grid; place-items: center; width: 100vw; height: 100vh; }
.scene-stage {
  position: relative;
  width: min(100vw, calc(100vh * 1.333333));
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #161616;
}
.scene-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; pointer-events: none; }

.screen-panel {
  position: absolute;
  z-index: 4;
  overflow: hidden;
  background: #030303;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.9);
  --ticker-height: 14%;
  --circuit-width: 1.05%;
}
.screen-1 {
  left: 53.6257%;
  top: 38.0755%;
  width: 7.3895%;
  height: 16.8508%;
  clip-path: polygon(0 2.7322%, 100% 0, 100% 100%, 0 99.4536%);
}
.screen-2 {
  left: 61.2914%;
  top: 37.5230%;
  width: 7.9420%;
  height: 17.4494%;
  clip-path: polygon(0 2.9024%, 100% 0, 100% 100%, 0 99.4723%);
}
.screen-3 {
  left: 69.5787%;
  top: 36.9705%;
  width: 8.5290%;
  height: 18.0939%;
  clip-path: polygon(0 3.3079%, 100% 0, 100% 100%, 0 99.4911%);
}
.added-device-shell {
  position: absolute;
  z-index: 3;
  display: none;
  isolation: isolate;
  background: transparent;
  filter: drop-shadow(3px 5px 5px rgba(20,18,15,.32));
  transform-origin: 0 0;
}
.added-device-shell::before,
.added-device-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 4px 4px 5px 5px;
  clip-path: var(--shell-clip);
}
.added-device-shell::after {
  z-index: -1;
  background:
    linear-gradient(100deg, #b9b0a2 0%, #d8d0c2 42%, #a89f91 100%);
  box-shadow: 2px 3px 5px rgba(25,22,18,.33);
  transform: translate(var(--shell-depth-x), var(--shell-depth-y));
}
.added-device-shell::before {
  z-index: 0;
  border: 1px solid rgba(172,164,151,.78);
  background:
    radial-gradient(ellipse at 38% 0%, rgba(255,255,255,.96) 0%, rgba(255,255,255,0) 44%),
    linear-gradient(96deg, rgba(151,141,126,.18) 0%, rgba(255,255,255,.12) 8%, rgba(255,255,255,0) 55%, rgba(125,116,102,.19) 100%),
    linear-gradient(to bottom, #f8f4eb 0%, #f2ecdf 79.7%, #eee6d8 79.7%, #e8dfcf 100%);
  box-shadow:
    inset 1px 0 1px rgba(255,255,255,.94),
    inset -2px 0 2px rgba(119,111,98,.17),
    inset 0 2px 2px rgba(255,255,255,.9),
    inset 0 -2px 3px rgba(125,115,100,.18);
}
.device-shell-4 {
  --shell-clip: polygon(0 2.7%,100% 0,100% 100%,0 99.2%);
  --shell-depth-x: 2.2%;
  --shell-depth-y: 1.25%;
  left: 46.23%;
  top: 38.03%;
  width: 7.43%;
  height: 21.05%;
}
.device-shell-5 {
  --shell-clip: polygon(0 3.2%,100% 0,100% 100%,0 99.1%);
  --shell-depth-x: 1.8%;
  --shell-depth-y: 1.15%;
  left: 78.08%;
  top: 35.78%;
  width: 9.86%;
  height: 23.35%;
}
.screen-4, .screen-5 { display: none; border: 1px solid rgba(28,30,31,.9); border-radius: 1px; box-shadow: 0 2px 5px rgba(0,0,0,.34); }
.screen-4 { left: 69.5787%; top: 36.9705%; width: 8.5290%; height: 18.0939%; clip-path: polygon(0 3.3079%,100% 0,100% 100%,0 99.4911%); }
.screen-5 { left: 78.43%; top: 36.40%; width: 9.13%; height: 18.73%; clip-path: polygon(0 3.45%,100% 0,100% 100%,0 99.5%); }
body.panel-count-5 .screen-4, body.panel-count-5 .screen-5 { display: block; }
body.panel-count-5 .screen-1 {
  left: 46.51%;
  top: 38.62%;
  width: 6.85%;
  height: 16.25%;
  clip-path: polygon(0 2.55%,100% 0,100% 100%,0 99.43%);
}
body.panel-count-5 .screen-2 {
  left: 53.6257%;
  top: 38.0755%;
  width: 7.3895%;
  height: 16.8508%;
  clip-path: polygon(0 2.7322%,100% 0,100% 100%,0 99.4536%);
}
body.panel-count-5 .screen-3 {
  left: 61.2914%;
  top: 37.5230%;
  width: 7.9420%;
  height: 17.4494%;
  clip-path: polygon(0 2.9024%,100% 0,100% 100%,0 99.4723%);
}
.panel-plane {
  position: absolute;
  z-index: 1;
  inset: 0;
  transform-origin: 0 0;
  backface-visibility: hidden;
  will-change: transform;
}
.content-viewport {
  position: absolute;
  z-index: 2;
  inset: 0 var(--circuit-width) var(--ticker-height) 0;
  overflow: hidden;
  background: #050505;
}
.screen-panel.is-fullscreen .content-viewport { z-index: 8; bottom: 0; }
.screen-panel.is-fullscreen .ticker-strip { visibility: hidden; }
.screen-layer { position: absolute; inset: 0; overflow: hidden; will-change: transform; }
.screen-layer img, .screen-layer > video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  background: #050505;
}
.campaign-layer {
  background: #050505;
}
.campaign-layer.is-preparing { opacity: 0; pointer-events: none; }
.campaign-layer video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  background: #050505;
}
.screen-layer.incoming { transform: translateX(99.6%); }
.screen-panel.is-sliding .screen-layer.current { animation: screen-out .95s cubic-bezier(.65,0,.35,1) forwards; }
.screen-panel.is-sliding .screen-layer.incoming { animation: screen-in .95s cubic-bezier(.65,0,.35,1) forwards; }
@keyframes screen-out { to { transform: translateX(-100.4%); } }
@keyframes screen-in { to { transform: translateX(-.4%); } }

.ticker-strip {
  position: absolute;
  z-index: 7;
  left: 0;
  right: var(--circuit-width);
  bottom: 0;
  display: flex;
  align-items: center;
  height: var(--ticker-height);
  overflow: hidden;
  padding: 0;
  color: #fff;
  background: #111315;
  border-top: 1px solid rgba(255,255,255,.08);
  font-family: Inter, Pretendard, "Noto Sans KR", "Segoe UI Emoji", "Apple Color Emoji", sans-serif;
  font-size: clamp(7px, .48vw, 13px);
  font-weight: 800;
  letter-spacing: -.035em;
  white-space: nowrap;
}
.ticker-track { display: inline-flex; align-items: center; width: max-content; height: 100%; will-change: transform; }
.ticker-sequence { display: inline-flex; align-items: center; flex: 0 0 auto; height: 100%; }
.ticker-message { display: inline-block; flex: 0 0 auto; padding-right: 5.5em; white-space: nowrap; }
.circuit-strip {
  position: absolute;
  z-index: 10;
  top: 0;
  right: 0;
  bottom: 0;
  width: var(--circuit-width);
  background: linear-gradient(90deg, #34383d 0%, #202429 42%, #181c20 72%, #292e33 100%);
  border-left: 1px solid rgba(255,255,255,.13);
  box-shadow: -1px 0 1px rgba(0,0,0,.32), 1px 0 1px rgba(255,255,255,.06);
  pointer-events: none;
}

.notice-slide {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 13% 9% 9%;
  color: #0f172a;
  background: linear-gradient(165deg, #fff 0%, #f8fafc 64%, #e8edf5 100%);
  isolation: isolate;
}
.notice-slide::before { content: ''; position: absolute; z-index: -1; inset: 0 0 auto; height: 2.4%; background: var(--notice-accent); }
.notice-slide::after { content: ''; position: absolute; z-index: -1; width: 76%; aspect-ratio: 1; right: -39%; top: -15%; border-radius: 50%; background: color-mix(in srgb, var(--notice-accent) 13%, transparent); }
.notice-kicker { margin: 0 0 11%; color: var(--notice-accent); font-size: clamp(7px, .55vw, 15px); font-weight: 850; letter-spacing: .08em; }
.notice-heading { margin: 0; font-size: clamp(15px, 1.25vw, 33px); line-height: 1.12; letter-spacing: -.055em; word-break: keep-all; }
.notice-body { margin: 9% 0 0; color: #334155; font-size: clamp(8px, .55vw, 15px); line-height: 1.5; white-space: pre-line; word-break: keep-all; }
.notice-footer { margin-top: auto; padding-top: 8%; border-top: 1px solid #cbd5e1; color: #64748b; font-size: clamp(6px, .42vw, 11px); font-weight: 700; }
.notice-slide.is-urgent { color: #fff; background: linear-gradient(160deg, #7f1d1d, #dc2626); }
.notice-slide.is-urgent::before { background: #fbbf24; }
.notice-slide.is-urgent::after { background: rgba(255,255,255,.1); }
.notice-slide.is-urgent .notice-kicker { color: #fde68a; }
.notice-slide.is-urgent .notice-body, .notice-slide.is-urgent .notice-footer { color: #fff; border-color: rgba(255,255,255,.3); }

.display-toolbar {
  position: fixed;
  z-index: 20;
  top: 16px;
  left: 50%;
  gap: 8px;
  width: min(calc(100% - 32px), 760px);
  transform: translateX(-50%);
  justify-content: space-between;
  pointer-events: auto;
}
.display-toolbar .header-actions { position: relative; z-index: 2; pointer-events: auto; }
.display-status, .toolbar-button {
  min-height: 42px;
  color: #e2e8f0;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 13px;
  background: rgba(2,6,23,.72);
  box-shadow: 0 8px 30px rgba(0,0,0,.24);
  backdrop-filter: blur(15px);
  pointer-events: auto;
}
.display-status { gap: 9px; padding: 0 14px; font-size: 13px; }
.toolbar-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 13px; font-weight: 750; text-decoration: none; cursor: pointer; touch-action: manipulation; }
.toolbar-button:hover { background: rgba(15,23,42,.9); }
.countdown { min-width: 28px; color: #93c5fd; font-variant-numeric: tabular-nums; font-weight: 800; }

.display-shell.is-zoomed .scene-stage { transform: scale(1.45) translate(-11%, 7%); transform-origin: center; transition: transform .4s ease; }
.display-shell:not(.is-zoomed) .scene-stage { transform: none; transition: transform .4s ease; }

@media (max-width: 680px) {
  .display-toolbar { align-items: stretch; }
  .display-status { flex: 1; }
  .toolbar-button span { display: none; }
  .display-shell.is-zoomed .scene-stage { transform: scale(2.25) translate(-16%, 8%); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
