/* Theme colors are shared by the storefront, personal workspace and administration. */
:root,
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b1020;
  --page: #0b1020;
  --page-2: #101729;
  --surface: #131b2e;
  --surface-2: #182238;
  --surface-3: #202d46;
  --panel: #131b2e;
  --text: #f5f6fa;
  --text-soft: #dce2ee;
  --muted: #a7b3ca;
  --accent: #a38bff;
  --accent-strong: #b8a4ff;
  --accent-soft: rgba(163, 139, 255, .12);
  --line: rgba(200, 211, 238, .13);
  --line-strong: rgba(200, 211, 238, .25);
  --green: #87d9ba;
  --amber: #ebc785;
  --blue: #8ab8ff;
  --danger: #ff9baf;
  --red: var(--accent);
  --red-2: var(--accent-strong);
  --shadow: 0 24px 70px #03081755;
  --shadow-soft: 0 8px 28px #03081726;
  --theme-on-accent: #141028;
  --theme-overlay: rgba(3, 7, 18, .76);
}
html[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f6fb;
  --page: #f5f6fb;
  --page-2: #eef0f7;
  --surface: #ffffff;
  --surface-2: #f1f2f8;
  --surface-3: #e6e9f2;
  --panel: #ffffff;
  --text: #172033;
  --text-soft: #34415a;
  --muted: #596780;
  --accent: #7050cf;
  --accent-strong: #5c3dbb;
  --accent-soft: rgba(112, 80, 207, .09);
  --line: rgba(23, 32, 51, .11);
  --line-strong: rgba(23, 32, 51, .22);
  --green: #167456;
  --amber: #946310;
  --blue: #3565ab;
  --danger: #ba3553;
  --red: var(--accent);
  --red-2: var(--accent-strong);
  --shadow: 0 24px 70px #17203316;
  --shadow-soft: 0 8px 28px #1720330d;
  --theme-on-accent: #ffffff;
  --theme-overlay: rgba(16, 24, 40, .48);
}
.theme-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 0 0 auto;
  min-width: 44px;
  min-height: 44px;
  padding: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text-soft);
  cursor: pointer;
}
.theme-ready .theme-toggle { display: inline-flex; }
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.theme-toggle:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.theme-toggle svg { width: 18px; height: 18px; flex-shrink: 0; }
.theme-toggle .theme-moon,
html[data-theme="light"] .theme-toggle .theme-sun { display: none; }
html[data-theme="light"] .theme-toggle .theme-moon { display: block; }
.theme-toggle-label { font-size: 11px; font-weight: 650; }
.header-actions .theme-toggle-label,.admin-topbar .theme-toggle-label { display: none; }
.standalone-theme-toggle { position: fixed; top: 18px; right: 18px; z-index: 5; }
.notification-editor-layout { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(240px,1fr); align-items: start; }
.notification-editor-layout>.panel-form { border: 0; margin: 0; }
.notification-preview { margin: 24px 24px 24px 0; padding: 22px; border: 1px solid var(--line); background: var(--page-2); border-radius: 12px; position: sticky; top: 100px; }
.notification-preview-label { display: block; margin-bottom: 20px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .13em; }
.notification-preview-card { border: 1px solid var(--line-strong); border-left: 3px solid var(--blue); border-radius: 10px; padding: 20px; background: var(--surface); overflow-wrap: anywhere; }
.notification-preview-card[data-type="success"] { border-left-color: var(--green); }
.notification-preview-card[data-type="warning"] { border-left-color: var(--amber); }
.notification-preview-card[data-type="error"] { border-left-color: var(--danger); }
.notification-preview-card h3 { margin: 12px 0 10px; font-size: 16px; }
.notification-preview-card p { margin: 0; font-size: 12px; white-space: pre-wrap; }
.notification-preview>p { font-size: 11px; margin: 16px 0 0; }
.notification-options { display: grid; gap: 16px; border-top: 1px solid var(--line); padding-top: 20px; }
.notification-options .check-row { align-items: flex-start; }
.notification-options .check-row input { margin-top: 3px; }
.notification-options .check-row span { display: grid; gap: 5px; }
.notification-options small { font-weight: 400; line-height: 1.7; }
.notification-empty-cell { text-align: center; padding: 36px!important; }
.notification-row-title { display: block; }
.notification-row-preview { display: block; max-width: 340px; color: var(--muted); font-size: 11px; line-height: 1.7; margin-top: 5px; }
@media(max-width:1000px) {
  .notification-editor-layout { grid-template-columns: 1fr; }
  .notification-preview { margin: 0 22px 22px; position: static; }
}
@media(max-width:600px) {
  .header-actions { gap: 2px; }
  .topbar-main { column-gap: 8px; }
  .header-actions .theme-toggle { padding: 8px; }
  .notification-preview { margin: 0 17px 19px; padding: 18px; }
  .standalone-theme-toggle { top: 10px; right: 10px; }
  .standalone-theme-toggle .theme-toggle-label { display: none; }
}
@media(prefers-reduced-motion:reduce) { .theme-toggle { transition: none; } }
