/* ==========================================================================
   CManager — design system
   A self contained stylesheet: no build step, no CDN, works offline.
   Theming is driven by the data-theme attribute on <html>.
   ========================================================================== */

:root {
  color-scheme: light dark;

  /* Brand */
  --brand-50:  #eef2ff;
  --brand-100: #e0e7ff;
  --brand-200: #c7d2fe;
  --brand-300: #a5b4fc;
  --brand-400: #818cf8;
  --brand-500: #6366f1;
  --brand-600: #4f46e5;
  --brand-700: #4338ca;
  --brand-800: #3730a3;
  --brand-900: #312e81;

  --accent-400: #22d3ee;
  --accent-500: #06b6d4;

  --facebook:  #1877f2;
  --instagram: #e1306c;
  --success:   #10b981;
  --warning:   #f59e0b;
  --danger:    #ef4444;
  --info:      #3b82f6;

  /* Surfaces (light) */
  --bg:            #f5f6fb;
  --bg-elevated:   #ffffff;
  --surface:       #ffffff;
  --surface-2:     #f8f9fc;
  --surface-3:     #eef0f7;
  --sidebar-bg:    #101426;
  --sidebar-fg:    #a9b1c9;
  --sidebar-active:#ffffff;
  --sidebar-active-bg: rgba(99, 102, 241, .16);

  --text:          #101426;
  --text-muted:    #626a83;
  --text-faint:    #8d94ab;
  --text-invert:   #ffffff;

  --border:        #e3e7f0;
  --border-strong: #ccd3e3;
  --ring:          rgba(99, 102, 241, .35);

  /* Elevation */
  --shadow-xs: 0 1px 2px rgba(16, 20, 38, .05);
  --shadow-sm: 0 1px 3px rgba(16, 20, 38, .08), 0 1px 2px rgba(16, 20, 38, .04);
  --shadow-md: 0 4px 14px rgba(16, 20, 38, .08), 0 1px 3px rgba(16, 20, 38, .04);
  --shadow-lg: 0 12px 34px rgba(16, 20, 38, .12), 0 4px 10px rgba(16, 20, 38, .05);
  --shadow-xl: 0 24px 60px rgba(16, 20, 38, .18);

  /* Geometry */
  --radius-xs: 6px;
  --radius-sm: 9px;
  --radius:    13px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 999px;

  --sidebar-w: 248px;
  --topbar-h:  64px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --ease: cubic-bezier(.4, 0, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --dur: .2s;
}

/* ---------------------------------------------------------------- dark theme */

[data-theme="dark"] {
  --bg:            #0a0d1a;
  --bg-elevated:   #111527;
  --surface:       #141a2e;
  --surface-2:     #1a2138;
  --surface-3:     #222a45;
  --sidebar-bg:    #080b16;
  --sidebar-fg:    #8d95b0;
  --sidebar-active:#ffffff;
  --sidebar-active-bg: rgba(99, 102, 241, .22);

  --text:          #eef1fa;
  --text-muted:    #9ba3bd;
  --text-faint:    #6f7896;
  --text-invert:   #0a0d1a;

  --border:        #232b45;
  --border-strong: #323c5c;
  --ring:          rgba(129, 140, 248, .4);

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .45);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, .5);
  --shadow-lg: 0 14px 38px rgba(0, 0, 0, .55);
  --shadow-xl: 0 28px 64px rgba(0, 0, 0, .6);
}

/* ------------------------------------------------------------- midnight theme */

[data-theme="midnight"] {
  --bg:            #05070f;
  --bg-elevated:   #0b1020;
  --surface:       #0e1424;
  --surface-2:     #131b2f;
  --surface-3:     #1b2440;
  --sidebar-bg:    #04060d;
  --sidebar-fg:    #7b85a6;
  --sidebar-active:#e8ecf8;
  --sidebar-active-bg: rgba(34, 211, 238, .14);

  --text:          #e6ebf7;
  --text-muted:    #8b95b3;
  --text-faint:    #626b88;
  --text-invert:   #05070f;

  --border:        #1b2338;
  --border-strong: #2a3553;
  --ring:          rgba(34, 211, 238, .38);
  --brand-500:     #22d3ee;
  --brand-600:     #06b6d4;
}

/* ------------------------------------------------------------- sunrise theme */

[data-theme="sunrise"] {
  --bg:            #fdf8f3;
  --bg-elevated:   #ffffff;
  --surface:       #ffffff;
  --surface-2:     #fdf6ef;
  --surface-3:     #f7ece0;
  --sidebar-bg:    #2a1d18;
  --sidebar-fg:    #bda99e;
  --sidebar-active:#fff6ee;
  --sidebar-active-bg: rgba(249, 115, 22, .2);

  --text:          #2a1d18;
  --text-muted:    #7a675d;
  --text-faint:    #9c8a7f;

  --border:        #f0e2d6;
  --border-strong: #e0cbb9;
  --ring:          rgba(249, 115, 22, .32);
  --brand-500:     #f97316;
  --brand-600:     #ea580c;
  --brand-700:     #c2410c;
}

/* -------------------------------------------------------------------- reset */

*, *::before, *::after { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overscroll-behavior-y: none;
}

h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 650; letter-spacing: -.015em; line-height: 1.25; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 .8em; }
a { color: var(--brand-600); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg, video { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { margin: 0; padding-left: 1.2em; }
hr { border: 0; border-top: 1px solid var(--border); margin: 1.2rem 0; }
code, pre { font-family: var(--font-mono); font-size: .86em; }
pre { margin: 0; overflow: auto; }

:focus-visible {
  outline: 2px solid var(--brand-500);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}

::selection { background: var(--brand-200); color: var(--brand-900); }

/* Scrollbars */
* { scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 99px;
  border: 3px solid transparent;
  background-clip: content-box;
}
*::-webkit-scrollbar-thumb:hover { background-color: var(--text-faint); background-clip: content-box; }

/* ------------------------------------------------------------- app skeleton */

/*
 * Desktop shell.
 *
 * The sidebar is position:fixed and the main column is offset by the same
 * width. This is deliberate: a sticky/static sidebar inside a CSS grid
 * collapses its column when its content is tall, which lets page content slide
 * underneath it. A fixed rail plus an explicit margin on the content column is
 * immune to that, and it keeps the sidebar full height while the page scrolls.
 */
.app {
  display: block;
  min-height: 100vh;
  min-height: 100dvh;
}

.sidebar {
  background: var(--sidebar-bg);
  color: var(--sidebar-fg);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  z-index: 60;
  border-right: 1px solid rgba(255, 255, 255, .04);
}

.sidebar__brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: 1.05rem 1.1rem;
  min-height: var(--topbar-h);
  color: #fff;
  font-weight: 700;
  font-size: 1.06rem;
  letter-spacing: -.02em;
}

.brand-mark {
  width: 34px; height: 34px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand-500), var(--accent-500));
  color: #fff;
  font-weight: 800;
  font-size: .95rem;
  box-shadow: 0 6px 18px rgba(99, 102, 241, .4);
  flex: 0 0 auto;
}

.brand-mark svg { width: 19px; height: 19px; }

.sidebar__nav {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: .4rem .65rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-section {
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .11em;
  color: rgba(255, 255, 255, .3);
  padding: 1rem .55rem .35rem;
  font-weight: 700;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .55rem .65rem;
  border-radius: var(--radius-sm);
  color: var(--sidebar-fg);
  font-weight: 550;
  font-size: .895rem;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
  position: relative;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  background: none;
  width: 100%;
  text-align: left;
}

.nav-item:hover { background: rgba(255, 255, 255, .06); color: var(--sidebar-active); text-decoration: none; }
.nav-item.is-active { background: var(--sidebar-active-bg); color: var(--sidebar-active); font-weight: 620; }
.nav-item.is-active::before {
  content: "";
  position: absolute; left: -.65rem; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 58%;
  border-radius: 0 3px 3px 0;
  background: var(--brand-400);
}

.nav-item svg { width: 18px; height: 18px; flex: 0 0 auto; opacity: .85; }
.nav-item.is-active svg { opacity: 1; }
.nav-item__badge {
  margin-left: auto;
  font-size: .68rem;
  font-weight: 700;
  padding: .1rem .38rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, .12);
  color: inherit;
  line-height: 1.5;
}
.nav-item.is-active .nav-item__badge { background: var(--brand-500); color: #fff; }

.sidebar__footer { padding: .75rem; border-top: 1px solid rgba(255, 255, 255, .06); }

.sidebar-user {
  display: flex; align-items: center; gap: .65rem;
  padding: .5rem; border-radius: var(--radius-sm);
  color: var(--sidebar-fg);
  text-decoration: none;
  transition: background var(--dur) var(--ease);
}
.sidebar-user:hover { background: rgba(255, 255, 255, .06); text-decoration: none; }
.sidebar-user__meta { min-width: 0; }
.sidebar-user__name { color: #fff; font-weight: 600; font-size: .86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user__role { font-size: .72rem; opacity: .7; text-transform: capitalize; }

/* -------------------------------------------------------------------- main */

.main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100vh;
  min-height: 100dvh;
  /* Clear the fixed sidebar rail. */
  margin-left: var(--sidebar-w);
}

.topbar {
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: 0 clamp(1rem, 2.4vw, 1.75rem);
  background: color-mix(in srgb, var(--bg-elevated) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar__title { font-size: 1.06rem; font-weight: 660; letter-spacing: -.01em; }
.topbar__sub { font-size: .78rem; color: var(--text-muted); }
.topbar__spacer { flex: 1 1 auto; }
.topbar__actions { display: flex; align-items: center; gap: .5rem; }

.page {
  flex: 1 1 auto;
  padding: clamp(1rem, 2.4vw, 1.8rem);
  max-width: 1560px;
  width: 100%;
  margin: 0 auto;
}
.page--wide { max-width: none; }
.page--flush { padding: 0; }

.page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.3rem;
}
.page-header__text h1 { margin-bottom: .2rem; }
.page-header__text p { color: var(--text-muted); margin: 0; font-size: .9rem; }
.page-header__actions { display: flex; gap: .5rem; flex-wrap: wrap; }

/* ------------------------------------------------------------------- grid */

.grid { display: grid; gap: 1rem; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }
.grid--sidebar { grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); }
.grid--split { grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); }

@media (max-width: 1080px) {
  .grid--sidebar, .grid--split { grid-template-columns: minmax(0, 1fr); }
}

.stack { display: flex; flex-direction: column; gap: 1rem; }
.row { display: flex; align-items: center; gap: .6rem; }
.row--wrap { flex-wrap: wrap; }
.row--between { justify-content: space-between; }
.row--end { justify-content: flex-end; }
.spacer { flex: 1 1 auto; }

/* ------------------------------------------------------------------- card */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.card--hover:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card--flat { box-shadow: none; }
.card--pad { padding: 1.15rem 1.25rem; }
.card--tight { padding: .85rem 1rem; }

.card__header {
  display: flex; align-items: center; justify-content: space-between; gap: .8rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}
.card__header h2, .card__header h3 { font-size: .98rem; font-weight: 640; }
.card__header p { margin: .1rem 0 0; font-size: .8rem; color: var(--text-muted); }
.card__body { padding: 1.15rem 1.25rem; }
.card__body--flush { padding: 0; }
.card__footer { padding: .85rem 1.25rem; border-top: 1px solid var(--border); background: var(--surface-2); }
.card__title { font-size: .98rem; font-weight: 640; margin: 0; }
.card__toolbar { display: flex; align-items: center; gap: .4rem; }

.card--accent { border-top: 3px solid var(--brand-500); }

/* ------------------------------------------------------------------ button */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .5rem .9rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: var(--surface-3);
  color: var(--text);
  font-weight: 600;
  font-size: .875rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease),
              color var(--dur) var(--ease), transform .1s var(--ease), box-shadow var(--dur) var(--ease);
  text-decoration: none;
  line-height: 1.4;
  user-select: none;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(.975); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }
.btn svg { width: 16px; height: 16px; flex: 0 0 auto; }

.btn--primary {
  background: linear-gradient(135deg, var(--brand-500), var(--brand-600));
  color: #fff;
  box-shadow: 0 2px 10px rgba(99, 102, 241, .3);
}
.btn--primary:hover { filter: brightness(1.07); box-shadow: 0 4px 16px rgba(99, 102, 241, .42); }

.btn--secondary { background: var(--surface); border-color: var(--border-strong); }
.btn--secondary:hover { background: var(--surface-2); border-color: var(--text-faint); }

.btn--ghost { background: transparent; color: var(--text-muted); }
.btn--ghost:hover { background: var(--surface-3); color: var(--text); }

.btn--danger { background: var(--danger); color: #fff; }
.btn--danger:hover { filter: brightness(1.08); }

.btn--danger-ghost { background: transparent; color: var(--danger); border-color: transparent; }
.btn--danger-ghost:hover { background: color-mix(in srgb, var(--danger) 12%, transparent); }

.btn--success { background: var(--success); color: #fff; }

.btn--sm { padding: .32rem .62rem; font-size: .8rem; border-radius: var(--radius-xs); }
.btn--sm svg { width: 14px; height: 14px; }
.btn--lg { padding: .68rem 1.25rem; font-size: .95rem; border-radius: var(--radius); }
.btn--icon { padding: .48rem; width: 36px; height: 36px; }
.btn--icon.btn--sm { width: 30px; height: 30px; padding: .3rem; }
.btn--block { width: 100%; }
.btn--pill { border-radius: var(--radius-full); }

.btn.is-loading { color: transparent !important; pointer-events: none; }
.btn.is-loading::after {
  content: "";
  position: absolute; inset: 0; margin: auto;
  width: 15px; height: 15px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  color: #fff;
  animation: spin .6s linear infinite;
}
.btn--secondary.is-loading::after, .btn--ghost.is-loading::after { color: var(--text); }

@keyframes spin { to { transform: rotate(360deg); } }

.btn-group { display: inline-flex; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border-strong); }
.btn-group .btn { border-radius: 0; border: 0; border-right: 1px solid var(--border); background: var(--surface); }
.btn-group .btn:last-child { border-right: 0; }
.btn-group .btn.is-active { background: var(--brand-500); color: #fff; }

/* ------------------------------------------------------------------ input */

.field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: .9rem; }
.field:last-child { margin-bottom: 0; }
.field__label { font-size: .82rem; font-weight: 620; color: var(--text); display: flex; align-items: center; gap: .4rem; }
.field__hint { font-size: .76rem; color: var(--text-faint); }
.field__error { font-size: .78rem; color: var(--danger); font-weight: 550; }
.field--row { flex-direction: row; align-items: center; justify-content: space-between; gap: 1rem; }

.input, .select, .textarea {
  width: 100%;
  padding: .55rem .7rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-size: .89rem;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
  line-height: 1.5;
}
.input::placeholder, .textarea::placeholder { color: var(--text-faint); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px var(--ring);
}
.input:disabled, .select:disabled, .textarea:disabled { background: var(--surface-3); cursor: not-allowed; opacity: .7; }
.input--error, .select--error, .textarea--error { border-color: var(--danger); }
.input--error:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 25%, transparent); }

.textarea { resize: vertical; min-height: 90px; font-family: inherit; }

.select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238d94ab' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .6rem center;
  padding-right: 2rem;
}

.input-group { display: flex; gap: .45rem; }
.input-group .input { flex: 1 1 auto; }

.input-affix { position: relative; display: flex; align-items: center; }
.input-affix svg { position: absolute; left: .6rem; width: 16px; height: 16px; color: var(--text-faint); pointer-events: none; }
.input-affix .input { padding-left: 2.1rem; }

.search {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 200px;
}
.search svg { position: absolute; left: .62rem; width: 15px; height: 15px; color: var(--text-faint); pointer-events: none; }
.search input { padding-left: 2.05rem; }
.search kbd {
  position: absolute; right: .5rem;
  font-size: .68rem; font-family: var(--font-mono);
  color: var(--text-faint);
  border: 1px solid var(--border);
  padding: .05rem .3rem;
  border-radius: 4px;
  background: var(--surface-2);
  pointer-events: none;
}

/* Switch */
.switch { display: inline-flex; align-items: center; gap: .6rem; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch__track {
  width: 40px; height: 23px;
  border-radius: var(--radius-full);
  background: var(--border-strong);
  position: relative;
  transition: background var(--dur) var(--ease);
  flex: 0 0 auto;
}
.switch__track::after {
  content: "";
  position: absolute; top: 2.5px; left: 2.5px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease-out);
}
.switch input:checked + .switch__track { background: var(--brand-500); }
.switch input:checked + .switch__track::after { transform: translateX(17px); }
.switch input:focus-visible + .switch__track { box-shadow: 0 0 0 3px var(--ring); }
.switch__label { font-size: .86rem; }

/* Checkbox / radio */
.check { display: inline-flex; align-items: center; gap: .5rem; cursor: pointer; font-size: .87rem; user-select: none; }
.check input[type="checkbox"], .check input[type="radio"] {
  width: 17px; height: 17px;
  accent-color: var(--brand-500);
  cursor: pointer;
  flex: 0 0 auto;
}

/* --------------------------------------------------------------- segmented */

.segmented {
  display: inline-flex;
  padding: 3px;
  background: var(--surface-3);
  border-radius: var(--radius-sm);
  gap: 2px;
}
.segmented__item {
  border: 0;
  background: transparent;
  padding: .34rem .72rem;
  border-radius: 6px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}
.segmented__item:hover { color: var(--text); text-decoration: none; }
.segmented__item.is-active {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-xs);
}
.segmented__item svg { width: 14px; height: 14px; }

/* ------------------------------------------------------------------ badge */

.badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .16rem .52rem;
  border-radius: var(--radius-full);
  font-size: .72rem;
  font-weight: 660;
  letter-spacing: .01em;
  line-height: 1.6;
  white-space: nowrap;
  border: 1px solid transparent;
}
.badge svg { width: 12px; height: 12px; }
.badge--draft     { background: var(--surface-3); color: var(--text-muted); }
.badge--scheduled { background: color-mix(in srgb, var(--info) 15%, transparent); color: var(--info); }
.badge--publishing{ background: color-mix(in srgb, var(--warning) 18%, transparent); color: var(--warning); }
.badge--published { background: color-mix(in srgb, var(--success) 16%, transparent); color: var(--success); }
.badge--partial   { background: color-mix(in srgb, var(--warning) 16%, transparent); color: var(--warning); }
.badge--failed    { background: color-mix(in srgb, var(--danger) 15%, transparent); color: var(--danger); }
.badge--archived  { background: var(--surface-3); color: var(--text-faint); }
.badge--brand     { background: color-mix(in srgb, var(--brand-500) 15%, transparent); color: var(--brand-600); }
.badge--facebook  { background: color-mix(in srgb, var(--facebook) 13%, transparent); color: var(--facebook); }
.badge--instagram { background: color-mix(in srgb, var(--instagram) 13%, transparent); color: var(--instagram); }
.badge--outline   { border-color: var(--border-strong); color: var(--text-muted); background: transparent; }

.dot { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto; background: currentColor; }
.dot--live { background: var(--success); box-shadow: 0 0 0 3px color-mix(in srgb, var(--success) 25%, transparent); }
.dot--sim  { background: var(--warning); box-shadow: 0 0 0 3px color-mix(in srgb, var(--warning) 25%, transparent); }

/* ----------------------------------------------------------------- avatar */

.avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-500), var(--accent-500));
  color: #fff;
  display: grid; place-items: center;
  font-weight: 680;
  font-size: .84rem;
  flex: 0 0 auto;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: .01em;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--sm { width: 28px; height: 28px; font-size: .68rem; }
.avatar--lg { width: 56px; height: 56px; font-size: 1.15rem; }
.avatar--xl { width: 76px; height: 76px; font-size: 1.5rem; border-radius: var(--radius); }
.avatar--square { border-radius: var(--radius-sm); }
.avatar--fb { background: linear-gradient(135deg, #1877f2, #4293ff); }
.avatar--ig { background: linear-gradient(135deg, #f9ce34, #ee2a7b 45%, #6228d7); }

.avatar-stack { display: flex; }
.avatar-stack .avatar { border: 2px solid var(--surface); margin-left: -10px; }
.avatar-stack .avatar:first-child { margin-left: 0; }

/* ------------------------------------------------------------------ stat */

.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.05rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  position: relative;
  overflow: hidden;
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.stat:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.stat__top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.stat__label { font-size: .78rem; color: var(--text-muted); font-weight: 570; }
.stat__icon {
  width: 32px; height: 32px;
  border-radius: 9px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--brand-500) 13%, transparent);
  color: var(--brand-600);
  flex: 0 0 auto;
}
.stat__icon svg { width: 16px; height: 16px; }
.stat__icon--fb { background: color-mix(in srgb, var(--facebook) 13%, transparent); color: var(--facebook); }
.stat__icon--ig { background: color-mix(in srgb, var(--instagram) 13%, transparent); color: var(--instagram); }
.stat__icon--green { background: color-mix(in srgb, var(--success) 13%, transparent); color: var(--success); }
.stat__icon--amber { background: color-mix(in srgb, var(--warning) 15%, transparent); color: var(--warning); }
.stat__value { font-size: 1.65rem; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat__meta { display: flex; align-items: center; gap: .4rem; font-size: .76rem; color: var(--text-faint); }
.stat__spark { height: 30px; margin-top: -.2rem; }

.trend { display: inline-flex; align-items: center; gap: .15rem; font-weight: 680; font-size: .78rem; }
.trend svg { width: 13px; height: 13px; }
.trend--up { color: var(--success); }
.trend--down { color: var(--danger); }
.trend--flat { color: var(--text-faint); }

/* ------------------------------------------------------------------ table */

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: .87rem; }
.table th {
  text-align: left;
  font-weight: 640;
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-faint);
  padding: .65rem .85rem;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  background: var(--surface-2);
  position: sticky; top: 0;
}
.table td { padding: .72rem .85rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tbody tr { transition: background var(--dur) var(--ease); }
.table tbody tr:hover { background: var(--surface-2); }
.table tbody tr:last-child td { border-bottom: 0; }
.table__num { text-align: right; font-variant-numeric: tabular-nums; }
.table__actions { text-align: right; white-space: nowrap; }
.table--compact td, .table--compact th { padding: .5rem .65rem; }
.table__primary { font-weight: 600; color: var(--text); }
.table__sub { font-size: .78rem; color: var(--text-faint); }

/* ------------------------------------------------------------------ empty */

.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--text-muted);
}
.empty__icon {
  width: 60px; height: 60px;
  border-radius: 18px;
  display: grid; place-items: center;
  background: var(--surface-3);
  color: var(--text-faint);
}
.empty__icon svg { width: 26px; height: 26px; }
.empty h3 { font-size: 1rem; color: var(--text); }
.empty p { max-width: 42ch; margin: 0; font-size: .86rem; }

/* ------------------------------------------------------------------ alerts */

.alert {
  display: flex;
  gap: .7rem;
  padding: .8rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-2);
  font-size: .86rem;
  align-items: flex-start;
}
.alert svg { width: 17px; height: 17px; flex: 0 0 auto; margin-top: .1rem; }
.alert__body { flex: 1 1 auto; min-width: 0; }
.alert__title { font-weight: 650; margin-bottom: .1rem; }
.alert--success { background: color-mix(in srgb, var(--success) 10%, transparent); border-color: color-mix(in srgb, var(--success) 30%, transparent); color: color-mix(in srgb, var(--success) 88%, var(--text)); }
.alert--warning { background: color-mix(in srgb, var(--warning) 11%, transparent); border-color: color-mix(in srgb, var(--warning) 32%, transparent); color: color-mix(in srgb, var(--warning) 88%, var(--text)); }
.alert--danger  { background: color-mix(in srgb, var(--danger) 10%, transparent); border-color: color-mix(in srgb, var(--danger) 30%, transparent); color: color-mix(in srgb, var(--danger) 88%, var(--text)); }
.alert--info    { background: color-mix(in srgb, var(--info) 10%, transparent); border-color: color-mix(in srgb, var(--info) 28%, transparent); color: color-mix(in srgb, var(--info) 88%, var(--text)); }
.alert--brand   { background: color-mix(in srgb, var(--brand-500) 10%, transparent); border-color: color-mix(in srgb, var(--brand-500) 28%, transparent); }

/* ------------------------------------------------------------------- modal */

.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(6, 9, 20, .55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn .16s var(--ease);
  overflow-y: auto;
}
.modal {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 560px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  animation: modalIn .22s var(--ease-out);
  border: 1px solid var(--border);
  margin: auto;
}
.modal--lg { max-width: 860px; }
.modal--xl { max-width: 1120px; }
.modal--sm { max-width: 420px; }
.modal__header {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.05rem 1.3rem;
  border-bottom: 1px solid var(--border);
  flex: 0 0 auto;
}
.modal__header h2 { font-size: 1.06rem; }
.modal__body { padding: 1.3rem; overflow-y: auto; flex: 1 1 auto; }
.modal__footer {
  display: flex; align-items: center; justify-content: flex-end; gap: .55rem;
  padding: .95rem 1.3rem;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
  flex: 0 0 auto;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.modal__close {
  border: 0; background: transparent; color: var(--text-faint);
  width: 32px; height: 32px; border-radius: var(--radius-sm);
  display: grid; place-items: center; cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.modal__close:hover { background: var(--surface-3); color: var(--text); }

@keyframes fadeIn { from { opacity: 0; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(.98); } }

/* ---------------------------------------------------------------- dropdown */

.dropdown { position: relative; display: inline-block; }
.dropdown__menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 200px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: .3rem;
  z-index: 120;
  animation: dropIn .14s var(--ease-out);
  max-height: 60vh;
  overflow-y: auto;
}
.dropdown__menu--left { right: auto; left: 0; }
.dropdown__menu--up { top: auto; bottom: calc(100% + 6px); }
/* Menus are promoted to <body> while open so they escape ancestors that clip
   (table scroll wrappers, media tiles, cards with overflow:hidden). Placement
   is computed in JS from the trigger's viewport rect. */
.dropdown__menu--floating {
  position: fixed;
  top: 0;
  left: 0;
  right: auto;
  bottom: auto;
  z-index: 300;
  max-height: min(70vh, 520px);
}
@keyframes dropIn { from { opacity: 0; transform: translateY(-5px); } }

.dropdown__item {
  display: flex; align-items: center; gap: .55rem;
  padding: .45rem .6rem;
  border-radius: var(--radius-xs);
  font-size: .86rem;
  color: var(--text);
  cursor: pointer;
  width: 100%;
  border: 0;
  background: none;
  text-align: left;
  transition: background var(--dur) var(--ease);
  text-decoration: none;
}
.dropdown__item:hover { background: var(--surface-3); text-decoration: none; }
.dropdown__item svg { width: 15px; height: 15px; color: var(--text-faint); flex: 0 0 auto; }
.dropdown__item--danger { color: var(--danger); }
.dropdown__item--danger svg { color: var(--danger); }
.dropdown__divider { height: 1px; background: var(--border); margin: .3rem 0; }
.dropdown__label {
  font-size: .68rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--text-faint); padding: .45rem .6rem .2rem; font-weight: 700;
}

/* ------------------------------------------------------------------ tabs */

.tabs {
  display: flex;
  gap: .15rem;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  padding: .6rem .85rem;
  font-size: .87rem;
  font-weight: 600;
  color: var(--text-muted);
  border: 0;
  background: none;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
  transition: color var(--dur) var(--ease);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.tab:hover { color: var(--text); text-decoration: none; }
.tab.is-active { color: var(--brand-600); }
.tab.is-active::after {
  content: "";
  position: absolute; left: .5rem; right: .5rem; bottom: -1px;
  height: 2px; background: var(--brand-500); border-radius: 2px 2px 0 0;
}
.tab__count {
  font-size: .7rem; padding: .05rem .35rem;
  background: var(--surface-3); border-radius: var(--radius-full);
  color: var(--text-muted); font-weight: 650;
}

/* ------------------------------------------------------------------ toast */

.toast-host {
  position: fixed;
  bottom: 1.1rem; right: 1.1rem;
  z-index: 400;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  pointer-events: none;
  max-width: min(380px, calc(100vw - 2rem));
}
.toast {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--brand-500);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: .7rem .9rem;
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  animation: toastIn .26s var(--ease-out);
  pointer-events: auto;
  font-size: .86rem;
}
.toast.is-leaving { animation: toastOut .2s var(--ease) forwards; }
.toast--success { border-left-color: var(--success); }
.toast--danger  { border-left-color: var(--danger); }
.toast--warning { border-left-color: var(--warning); }
.toast svg { width: 17px; height: 17px; flex: 0 0 auto; margin-top: .1rem; }
.toast--success svg { color: var(--success); }
.toast--danger svg { color: var(--danger); }
.toast--warning svg { color: var(--warning); }
.toast--info svg { color: var(--info); }
.toast__body { flex: 1 1 auto; min-width: 0; }
.toast__title { font-weight: 640; }
.toast__msg { color: var(--text-muted); font-size: .82rem; }
.toast__close { border: 0; background: none; color: var(--text-faint); cursor: pointer; padding: 0; line-height: 1; font-size: 1.1rem; }
@keyframes toastIn { from { opacity: 0; transform: translateX(24px); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(24px); } }

/* ----------------------------------------------------------------- skeleton */

.skeleton {
  background: linear-gradient(90deg, var(--surface-3) 25%, var(--surface-2) 50%, var(--surface-3) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius-xs);
  color: transparent !important;
  pointer-events: none;
}
.skeleton--text { height: .85em; margin: .25em 0; }
.skeleton--title { height: 1.4em; width: 55%; margin-bottom: .6em; }
.skeleton--card { height: 120px; border-radius: var(--radius); }
.skeleton--avatar { width: 38px; height: 38px; border-radius: 50%; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ------------------------------------------------------------------ progress */

.progress { height: 6px; background: var(--surface-3); border-radius: 99px; overflow: hidden; }
.progress__bar {
  height: 100%;
  background: linear-gradient(90deg, var(--brand-500), var(--accent-500));
  border-radius: 99px;
  transition: width .4s var(--ease-out);
}

/* ------------------------------------------------------------------ charts */

.chart { width: 100%; position: relative; }
.chart svg { display: block; width: 100%; overflow: visible; }
.chart__grid line { stroke: var(--border); stroke-width: 1; }
.chart__axis text { fill: var(--text-faint); font-size: 10.5px; }
.chart__line { fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.chart__area { opacity: .16; }
.chart__point { stroke: var(--surface); stroke-width: 2; cursor: pointer; transition: r .15s var(--ease); }
.chart--donut { max-width: 240px; margin: 0 auto; }
.chart-tooltip {
  position: absolute;
  background: var(--text);
  color: var(--bg);
  font-size: .76rem;
  padding: .35rem .55rem;
  border-radius: 7px;
  pointer-events: none;
  white-space: nowrap;
  z-index: 20;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  transform: translate(-50%, -130%);
  opacity: 0;
  transition: opacity .12s var(--ease);
}
.chart-tooltip.is-visible { opacity: 1; }

.legend { display: flex; flex-wrap: wrap; gap: .75rem; }
.legend__item { display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; color: var(--text-muted); }
.legend__swatch { width: 10px; height: 10px; border-radius: 3px; flex: 0 0 auto; }

/* ---------------------------------------------------------------- heatmap */

.heatmap { display: grid; grid-template-columns: auto repeat(24, minmax(14px, 1fr)); gap: 3px; font-size: .68rem; }
.heatmap__label { color: var(--text-faint); display: flex; align-items: center; font-weight: 600; padding-right: .35rem; }
.heatmap__hour { color: var(--text-faint); text-align: center; font-size: .62rem; }
.heatmap__cell {
  aspect-ratio: 1;
  border-radius: 4px;
  background: var(--surface-3);
  cursor: pointer;
  transition: transform .12s var(--ease), outline-color .12s var(--ease);
  min-height: 15px;
  outline: 2px solid transparent;
  outline-offset: 1px;
}
.heatmap__cell:hover { transform: scale(1.16); outline-color: var(--brand-500); z-index: 2; position: relative; }
.heatmap__cell.is-best { outline-color: var(--brand-500); }

/* --------------------------------------------------------------- metric row */

.metric-list { display: flex; flex-direction: column; }
.metric {
  display: flex; align-items: center; gap: .75rem;
  padding: .68rem 0;
  border-bottom: 1px solid var(--border);
}
.metric:last-child { border-bottom: 0; }
.metric__icon {
  width: 32px; height: 32px; border-radius: 9px;
  display: grid; place-items: center;
  background: var(--surface-3); color: var(--text-muted);
  flex: 0 0 auto;
}
.metric__icon svg { width: 15px; height: 15px; }
.metric__label { font-size: .84rem; color: var(--text-muted); }
.metric__value { margin-left: auto; font-weight: 660; font-variant-numeric: tabular-nums; }
.metric__delta { font-size: .78rem; font-weight: 650; min-width: 58px; text-align: right; }

/* ------------------------------------------------------------------ utility */

.text-muted { color: var(--text-muted); }
.text-faint { color: var(--text-faint); }
.text-brand { color: var(--brand-600); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-xs { font-size: .76rem; }
.text-sm { font-size: .84rem; }
.text-lg { font-size: 1.05rem; }
.font-mono { font-family: var(--font-mono); }
.font-bold { font-weight: 680; }
.font-medium { font-weight: 570; }
.uppercase { text-transform: uppercase; letter-spacing: .06em; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.clamp-5 { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.pre-wrap { white-space: pre-wrap; word-break: break-word; }
.tabular { font-variant-numeric: tabular-nums; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; }
.p-0 { padding: 0; } .p-1 { padding: .5rem; } .p-2 { padding: 1rem; }
.w-full { width: 100%; }
.hidden { display: none !important; }
.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;
}

.flex-1 { flex: 1 1 auto; min-width: 0; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-col { flex-direction: column; }
.gap-1 { gap: .5rem; } .gap-2 { gap: 1rem; } .gap-3 { gap: 1.5rem; }

/* ------------------------------------------------------------------- misc */

.divider { height: 1px; background: var(--border); margin: 1rem 0; }
.kbd {
  font-family: var(--font-mono); font-size: .74rem;
  background: var(--surface-3); border: 1px solid var(--border);
  border-radius: 5px; padding: .05rem .35rem; color: var(--text-muted);
}
.code-block {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: .7rem .85rem;
  font-family: var(--font-mono); font-size: .8rem;
  overflow-x: auto; color: var(--text-muted);
}
.pill-list { display: flex; flex-wrap: wrap; gap: .35rem; }
.pill {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .2rem .55rem; border-radius: var(--radius-full);
  background: var(--surface-3); font-size: .78rem; font-weight: 570;
  color: var(--text-muted);
}
.pill button { border: 0; background: none; cursor: pointer; color: inherit; padding: 0; line-height: 1; opacity: .6; }
.pill button:hover { opacity: 1; color: var(--danger); }

/* --------------------------------------------------------------- mobile */

.mobile-only { display: none; }
.menu-toggle {
  border: 0; background: transparent; color: var(--text);
  width: 38px; height: 38px; border-radius: var(--radius-sm);
  /* No `display` here on purpose: .mobile-only owns visibility. Declaring
     display here would override `.mobile-only { display: none }` on desktop
     and leak the hamburger into the desktop topbar. */
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.menu-toggle:hover { background: var(--surface-3); }

@media (max-width: 900px) {
  .app { display: block; }
  /* On small screens the rail slides in over the content. */
  .main { margin-left: 0; }
  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(84vw, 288px);
    transform: translateX(-102%);
    transition: transform .26s var(--ease-out);
    box-shadow: var(--shadow-xl);
    height: 100dvh;
  }
  .sidebar.is-open { transform: translateX(0); }
  .mobile-only { display: inline-flex; align-items: center; justify-content: center; }
  .sidebar-scrim {
    position: fixed; inset: 0;
    background: rgba(6, 9, 20, .5);
    z-index: 55;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--dur) var(--ease);
  }
  .sidebar-scrim.is-open { opacity: 1; pointer-events: auto; }
  .page { padding: 1rem; }
  .topbar { padding: 0 .85rem; }
  .page-header { flex-direction: column; align-items: stretch; }
  .page-header__actions { justify-content: flex-start; }
  .stat__value { font-size: 1.45rem; }
  .modal { max-width: 100%; border-radius: var(--radius); }
  .modal__footer { flex-direction: column-reverse; }
  .modal__footer .btn { width: 100%; }
  .toast-host { bottom: .6rem; right: .6rem; left: .6rem; max-width: none; }
  .grid { gap: .8rem; }
}

@media (max-width: 560px) {
  h1 { font-size: 1.3rem; }
  .btn span.btn__text { display: none; }
  .btn--keep-text span.btn__text { display: inline; }
  .hide-xs { display: none !important; }
}

/* Safe area for notched devices when installed as an app */
@supports (padding: max(0px)) {
  .topbar { padding-left: max(clamp(1rem, 2.4vw, 1.75rem), env(safe-area-inset-left)); padding-right: max(clamp(1rem, 2.4vw, 1.75rem), env(safe-area-inset-right)); }
  .sidebar__footer { padding-bottom: max(.75rem, env(safe-area-inset-bottom)); }
}

/* -------------------------------------------------------- print + motion */

@media print {
  .sidebar, .topbar, .toast-host, .no-print { display: none !important; }
  .app { display: block; }
  .main { margin-left: 0; }
  body { background: #fff; }
  .card { box-shadow: none; border-color: #ddd; break-inside: avoid; }
}

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