/* =========================================================
   منصة الفوز العظيم — نسخة العرض التجريبية (demo)
   فيروزي #0A4F56 / #116D76 / #1A939E / #4FB8C0 — ذهبي #BAA213 / #D7C14D
========================================================= */
:root {
  --bg: #F4F2EE; --surface: #FFFFFF; --soft: #F7F5F1; --line: #E8E3DA; --line-2: #EFEBE4;
  --ink: #1E2A2E; --muted: #7A8487; --head: #17324D;
  --teal: #116D76; --teal-d: #0A4F56; --teal-l: #1A939E; --teal-xl: #4FB8C0; --teal-soft: #E8F4F5;
  --gold: #BAA213; --gold-l: #D7C14D; --gold-soft: #FBF6DF;
  --ok: #12805C; --ok-soft: #E6F4EE; --warn: #B7791F; --warn-soft: #FBF1E0; --bad: #C0392B; --bad-soft: #FBEAE8;
  --blue: #2F6E9A; --blue-soft: #E8F0F7; --purple: #6B4FA0; --purple-soft: #F0ECF7;
  --shadow: 0 10px 30px rgba(23, 50, 77, .06); --r: 18px;
  color-scheme: light;
}
html[data-theme="dark"] {
  --bg: #0B181C; --surface: #10252A; --soft: #132D33; --line: #22414A; --line-2: #1C3940;
  --ink: #E6F0F1; --muted: #9FB3B6; --head: #E6F0F1;
  --teal-soft: #15393F; --gold-soft: #2B2A16; --ok-soft: #133528; --warn-soft: #33281A; --bad-soft: #3A1D1B;
  --blue-soft: #162C3D; --purple-soft: #261F37; --shadow: 0 12px 30px rgba(0, 0, 0, .3);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: 'Tajawal', system-ui, sans-serif; color: var(--ink); line-height: 1.6;
  background: radial-gradient(1100px 520px at 15% 0%, rgba(26, 147, 158, .07), transparent 60%), var(--bg);
  min-height: 100vh; overflow-x: hidden;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--teal); }
svg { flex: none; }
.dm-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- تنبيه نسخة العرض ---------- */
.dm-notice {
  display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
  padding: 9px 16px; text-align: center; font-size: 14px; font-weight: 700;
  background: linear-gradient(90deg, #F3E39A, #FBF3D2 50%, #F3E39A); color: #5C4D06;
  border-bottom: 1px solid rgba(186, 162, 19, .45);
}
.dm-notice b { font-weight: 800; }
.dm-notice a { color: #0A4F56; font-weight: 800; white-space: nowrap; }
html[data-theme="dark"] .dm-notice { background: linear-gradient(90deg, #3A3418, #2B2A16 50%, #3A3418); color: #EBDD94; border-color: #4A4520; }
html[data-theme="dark"] .dm-notice a { color: #8FD3D9; }

/* ---------- مبدّل المنصات ---------- */
.dm-roles {
  display: flex; gap: 8px; justify-content: center; flex-wrap: wrap;
  padding: 12px 16px; background: var(--surface); border-bottom: 1px solid var(--line);
}
.dm-roles__lbl { align-self: center; color: var(--muted); font-weight: 700; font-size: 14px; margin-inline-end: 4px; }
.dm-role {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  padding: 10px 20px; border-radius: 14px; border: 1px solid var(--line); background: var(--soft);
  font-weight: 800; font-size: 15.5px; color: var(--teal);
  transition: background .15s, color .15s, transform .15s, box-shadow .15s;
}
.dm-role:hover { transform: translateY(-1px); }
.dm-role.is-on { background: linear-gradient(100deg, var(--teal-d), var(--teal)); color: #fff; border-color: transparent; box-shadow: 0 8px 18px rgba(10, 79, 86, .22); }
html[data-theme="dark"] .dm-role { color: #8FD3D9; }
html[data-theme="dark"] .dm-role.is-on { color: #fff; }

/* ---------- الشريط العلوي ---------- */
.dm-top {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 18px; background: rgba(244, 242, 238, .86); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
html[data-theme="dark"] .dm-top { background: rgba(11, 24, 28, .86); }
.dm-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.dm-mark { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--teal-soft); color: var(--teal); border: 1px solid var(--line); flex: none; }
.dm-brand b { display: block; font-weight: 800; font-size: 16px; color: var(--head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-brand small { color: var(--muted); font-size: 13px; }
.dm-tools { display: flex; align-items: center; gap: 8px; }
.dm-clock { color: var(--muted); font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; margin-inline-end: 4px; }
.dm-ib {
  position: relative; width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink);
}
.dm-ib:hover { border-color: var(--teal-xl); }
.dm-ib .dm-dot { position: absolute; top: -5px; left: -5px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--bad); color: #fff; font-size: 11.5px; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--bg); }
.dm-exit { display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 14px; border-radius: 13px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--ink); font-weight: 700; white-space: nowrap; }
.dm-menu-btn { display: none; }
.dm-pop {
  position: absolute; top: 52px; left: 0; width: min(330px, 86vw); z-index: 40;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 8px;
}
.dm-pop h4 { margin: 6px 10px 8px; font-size: 14px; }
.dm-pop p { margin: 0; padding: 10px; border-radius: 12px; font-size: 13.5px; text-align: start; }
.dm-pop p + p { border-top: 1px solid var(--line-2); }

/* ---------- الشريط الاحتفالي (يعتمد celebration.css) ---------- */
.dm-ribbon-wrap { padding: 10px 18px 0; }
.dm-ribbon-wrap .cel { margin: 0; }

/* ---------- التخطيط ---------- */
.dm-scrim { display: none; }
.dm-app { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 16px; padding: 14px 18px 30px; align-items: start; }
.dm-side {
  position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 14px; box-shadow: var(--shadow);
}
.dm-prof { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; border: 1px solid var(--line); background: var(--soft); margin-bottom: 12px; }
.dm-av { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; font-weight: 800; font-size: 18px; background: var(--teal-soft); color: var(--teal); border: 1px solid var(--line); flex: none; }
.dm-av--sm { width: 36px; height: 36px; border-radius: 12px; font-size: 15px; }
.dm-av--gold { background: var(--gold-soft); color: #8F7B0D; }
.dm-prof b { display: block; font-weight: 800; }
.dm-prof small { color: var(--muted); }
.dm-nav { display: grid; gap: 7px; }
.dm-nav a {
  display: flex; align-items: center; gap: 10px; padding: 11px 13px; border-radius: 14px;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 700;
  transition: border-color .15s, background .15s, transform .15s;
}
.dm-nav a:hover { border-color: var(--teal-xl); transform: translateY(-1px); }
.dm-nav a.is-on { background: var(--teal-soft); border-color: rgba(17, 109, 118, .35); color: var(--teal-d); }
html[data-theme="dark"] .dm-nav a.is-on { color: #CDEFF2; }
.dm-nav a svg { color: var(--teal); }
.dm-nav .dm-sep { height: 1px; background: var(--line); margin: 4px 2px; }
.dm-nav .dm-badge { margin-inline-start: auto; font-size: 12px; font-weight: 800; padding: 1px 9px; border-radius: 999px; background: var(--gold-soft); color: #7A6A0B; }
html[data-theme="dark"] .dm-nav .dm-badge { color: #E5D27A; }

.dm-main { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px; box-shadow: var(--shadow); min-height: 70vh; }
.dm-view { animation: dm-in .25s ease both; }
@keyframes dm-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- عناصر الصفحات ---------- */
.dm-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.dm-head h1 { margin: 0; font-size: clamp(22px, 2.4vw, 28px); font-weight: 800; color: var(--head); }
.dm-head p { margin: 4px 0 0; color: var(--muted); }
.dm-head p b { color: var(--ink); }
.dm-h2 { margin: 22px 0 10px; font-size: 17px; font-weight: 800; color: var(--head); display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.dm-h2 small { color: var(--muted); font-weight: 700; font-size: 13px; }

.dm-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.dm-card--soft { background: var(--soft); }
.dm-grid { display: grid; gap: 14px; }
.dm-g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dm-g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dm-g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dm-g5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.dm-split { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; }

.dm-kpi { position: relative; padding: 16px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); text-align: center; border-top: 4px solid var(--k, var(--teal)); }
.dm-kpi__ic { color: var(--k, var(--teal)); display: grid; place-items: center; margin-bottom: 4px; }
.dm-kpi b { display: block; font-size: 28px; font-weight: 800; color: var(--k, var(--teal)); line-height: 1.2; }
.dm-kpi span { display: block; color: var(--muted); font-weight: 700; font-size: 13.5px; }
.dm-kpi small { display: block; color: var(--muted); font-size: 12px; }

.dm-row { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); }
.dm-row + .dm-row { margin-top: 8px; }
.dm-row__body { flex: 1; min-width: 0; }
.dm-row__body b { display: block; font-weight: 800; }
.dm-row__body small { color: var(--muted); }
.dm-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--teal-soft); color: var(--teal); flex: none; }
.dm-ic--gold { background: var(--gold-soft); color: #8F7B0D; }
.dm-ic--purple { background: var(--purple-soft); color: var(--purple); }
.dm-ic--blue { background: var(--blue-soft); color: var(--blue); }
.dm-ic--ok { background: var(--ok-soft); color: var(--ok); }
.dm-ic--bad { background: var(--bad-soft); color: var(--bad); }

.dm-pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 800; white-space: nowrap; background: var(--teal-soft); color: var(--teal); }
.dm-pill--ok { background: var(--ok-soft); color: var(--ok); }
.dm-pill--warn { background: var(--warn-soft); color: var(--warn); }
.dm-pill--bad { background: var(--bad-soft); color: var(--bad); }
.dm-pill--blue { background: var(--blue-soft); color: var(--blue); }
.dm-pill--gold { background: var(--gold-soft); color: #7A6A0B; }
.dm-pill--muted { background: var(--soft); color: var(--muted); }
html[data-theme="dark"] .dm-pill--gold { color: #E5D27A; }

.dm-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
  padding: 10px 16px; border-radius: 13px; border: 1px solid var(--line); background: var(--surface);
  font-weight: 800; color: var(--ink); text-decoration: none; white-space: nowrap;
  transition: transform .15s, filter .15s, border-color .15s;
}
.dm-btn:hover { transform: translateY(-1px); border-color: var(--teal-xl); }
.dm-btn--pri { background: linear-gradient(100deg, var(--teal), var(--teal-l)); color: #fff; border-color: transparent; }
.dm-btn--ok { background: var(--ok); color: #fff; border-color: transparent; }
.dm-btn--gold { background: linear-gradient(100deg, var(--gold), var(--gold-l)); color: #2B2300; border-color: transparent; }
.dm-btn--purple { background: var(--purple); color: #fff; border-color: transparent; }
.dm-btn--sm { padding: 6px 12px; font-size: 13.5px; border-radius: 11px; }
.dm-btn--block { width: 100%; }
.dm-btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.dm-btn:focus-visible, .dm-nav a:focus-visible, .dm-role:focus-visible, .dm-tab:focus-visible, .dm-ib:focus-visible { outline: 3px solid var(--gold-l); outline-offset: 2px; }

.dm-tabs { display: flex; gap: 6px; flex-wrap: wrap; padding: 5px; border-radius: 16px; background: var(--soft); border: 1px solid var(--line); margin-bottom: 16px; }
.dm-tab { flex: 1 1 auto; padding: 9px 14px; border-radius: 12px; border: 0; background: transparent; cursor: pointer; font-weight: 800; color: var(--muted); text-align: center; white-space: nowrap; }
.dm-tab.is-on { background: var(--surface); color: var(--teal); box-shadow: 0 3px 10px rgba(23, 50, 77, .08); }
html[data-theme="dark"] .dm-tab.is-on { color: #8FD3D9; }

.dm-field { display: grid; gap: 6px; }
.dm-field label { font-weight: 800; font-size: 13.5px; color: var(--muted); }
.dm-input, .dm-select, .dm-textarea { width: 100%; padding: 11px 13px; border-radius: 13px; border: 1px solid var(--line); background: var(--surface); outline: none; }
.dm-input:focus, .dm-select:focus, .dm-textarea:focus { border-color: var(--teal-xl); }
.dm-textarea { min-height: 90px; resize: vertical; }
.dm-filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; margin-bottom: 14px; }
.dm-filters > * { flex: 1 1 180px; }

.dm-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; }
.dm-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.dm-table th, .dm-table td { padding: 11px 13px; text-align: start; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.dm-table th { background: var(--soft); font-size: 13px; color: var(--muted); font-weight: 800; }
.dm-table tr:last-child td { border-bottom: 0; }
.dm-table td b { font-weight: 800; }

.dm-bar { height: 9px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line-2); overflow: hidden; }
.dm-bar > i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--teal), var(--teal-xl)); }
.dm-bar--gold > i { background: linear-gradient(90deg, var(--gold), var(--gold-l)); }

.dm-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.dm-chip { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; font-weight: 700; cursor: pointer; }
.dm-chip.is-on { background: var(--teal-soft); color: var(--teal); border-color: rgba(17, 109, 118, .35); }

.dm-empty { padding: 26px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 16px; }

/* ---------- لوحات خاصة ---------- */
.dm-hero {
  position: relative; overflow: hidden; border-radius: 22px; padding: 22px; color: #fff;
  background: radial-gradient(400px 200px at 90% 0%, rgba(215, 193, 77, .25), transparent 70%), linear-gradient(120deg, var(--teal-d), var(--teal) 60%, var(--teal-l));
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: center;
}
.dm-hero__big { font-size: 64px; font-weight: 800; line-height: 1; }
.dm-hero small { opacity: .85; font-weight: 700; }
.dm-hero .dm-lvl { display: inline-block; margin: 10px 0; padding: 5px 14px; border-radius: 999px; background: rgba(243, 227, 154, .95); color: #4A3D00; font-weight: 800; font-size: 13.5px; }
.dm-hero .dm-bar { background: rgba(255, 255, 255, .15); border-color: transparent; }
.dm-hero .dm-bar > i { background: linear-gradient(90deg, var(--gold-l), #F3E39A); }
.dm-hero__stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.dm-hero__stats div { padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); }
.dm-hero__stats b { display: block; font-size: 24px; font-weight: 800; color: #F3E39A; }
.dm-hero__stats span { font-size: 13px; opacity: .9; }

.dm-src { padding: 12px 14px; border-radius: 14px; background: var(--soft); border-inline-end: 4px solid var(--k); }
.dm-src span { display: block; color: var(--muted); font-weight: 700; font-size: 13px; }
.dm-src b { font-size: 24px; font-weight: 800; color: var(--k); }

.dm-trophy { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
.dm-trophy__cup { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; background: var(--soft); color: var(--muted); flex: none; }
.dm-trophy.is-won .dm-trophy__cup { background: var(--tc); color: #fff; }
.dm-trophy b { display: block; font-weight: 800; }
.dm-trophy small { color: var(--muted); }
.dm-trophy .dm-bar { margin-top: 6px; }

.dm-board .dm-row b { display: inline; }
.dm-rank { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; font-weight: 800; background: var(--soft); color: var(--muted); flex: none; }
.dm-rank--1 { background: #BAA213; color: #fff; } .dm-rank--2 { background: #8F9BA6; color: #fff; } .dm-rank--3 { background: #B07A4A; color: #fff; }
.dm-row.is-me { border-color: rgba(186, 162, 19, .6); background: var(--gold-soft); }

.dm-att { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.dm-att__card { padding: 12px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
.dm-att__who { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-weight: 800; }
.dm-att__opts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.dm-att__opts button { padding: 9px 4px; border-radius: 11px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-weight: 800; font-size: 13.5px; }
.dm-att__opts button.on-present { background: var(--ok); color: #fff; border-color: transparent; }
.dm-att__opts button.on-late { background: var(--warn); color: #fff; border-color: transparent; }
.dm-att__opts button.on-absent { background: var(--bad); color: #fff; border-color: transparent; }
.dm-att__opts button.on-excused { background: var(--blue); color: #fff; border-color: transparent; }

.dm-cal { display: grid; grid-template-columns: repeat(auto-fill, minmax(42px, 1fr)); gap: 6px; }
.dm-cal span { aspect-ratio: 1; border-radius: 11px; display: grid; place-items: center; font-size: 12.5px; font-weight: 800; color: #fff; }

.dm-wave { display: flex; align-items: center; gap: 2px; height: 30px; flex: 1; min-width: 80px; }
.dm-wave i { flex: 1; border-radius: 2px; background: var(--teal-xl); opacity: .55; }
.dm-wave.is-play i { animation: dm-wv 1s ease-in-out infinite; }
@keyframes dm-wv { 50% { transform: scaleY(.4); } }
.dm-stars { display: inline-flex; gap: 2px; color: #D7C14D; }
.dm-stars button { border: 0; background: none; cursor: pointer; color: inherit; padding: 1px; }
.dm-stars .off { color: var(--line); }

.dm-res { display: flex; flex-direction: column; gap: 10px; }
.dm-vid { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.dm-vid__thumb { aspect-ratio: 16 / 9; display: grid; place-items: center; background: linear-gradient(135deg, var(--teal-d), var(--teal-l)); color: #F3E39A; position: relative; }
.dm-vid__thumb span { position: absolute; bottom: 8px; left: 8px; background: rgba(0, 0, 0, .5); color: #fff; font-size: 12px; font-weight: 800; padding: 2px 8px; border-radius: 8px; }
.dm-vid__body { padding: 12px; font-weight: 800; }

.dm-player { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px; border-radius: 18px; background: linear-gradient(120deg, var(--teal-d), var(--teal)); color: #fff; }
.dm-player .dm-ib { background: #F3E39A; color: var(--teal-d); border: 0; }
.dm-player .dm-wave i { background: #F3E39A; }

/* ---------- نافذة وإشعار ---------- */
.dm-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(8, 20, 24, .45); backdrop-filter: blur(3px); }
.dm-modal__card { width: min(560px, 100%); max-height: 90vh; overflow: auto; background: var(--surface); border-radius: 22px; border: 1px solid var(--line); box-shadow: 0 30px 60px rgba(0, 0, 0, .25); }
.dm-modal__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.dm-modal__head h3 { margin: 0; font-size: 18px; }
.dm-modal__body { padding: 16px 18px; display: grid; gap: 12px; }
.dm-modal__foot { display: flex; gap: 10px; justify-content: flex-end; padding: 0 18px 18px; }
.dm-toast {
  position: fixed; z-index: 120; bottom: 18px; inset-inline: 0; margin: 0 auto; width: max-content; max-width: calc(100% - 28px);
  padding: 11px 18px; border-radius: 14px; background: #13262B; color: #fff; font-weight: 700; text-align: center;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .25); opacity: 0; transform: translateY(10px); transition: .25s; pointer-events: none;
}
.dm-toast.on { opacity: 1; transform: none; }
.dm-toast small { display: block; opacity: .75; font-weight: 700; font-size: 12px; }

.dm-foot { text-align: center; color: var(--muted); font-size: 13px; padding: 0 16px 24px; }

/* ---------- الشاشات الأصغر ---------- */
@media (max-width: 1150px) {
  .dm-g4, .dm-g5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dm-g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dm-split { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 920px) {
  .dm-app { grid-template-columns: minmax(0, 1fr); padding: 12px; }
  .dm-menu-btn { display: grid; }
  .dm-side {
    position: fixed; top: 0; bottom: 0; right: 0; z-index: 90; width: min(320px, 86vw); max-height: none; border-radius: 0 0 0 22px;
    transform: translateX(105%); transition: transform .28s ease;
  }
  body.dm-side-open .dm-side { transform: none; }
  .dm-scrim { position: fixed; inset: 0; z-index: 85; background: rgba(8, 20, 24, .4); display: none; }
  body.dm-side-open .dm-scrim { display: block; }
  .dm-hero { grid-template-columns: minmax(0, 1fr); }
  .dm-main { padding: 16px; }
}
@media (max-width: 620px) {
  .dm-g2, .dm-g3 { grid-template-columns: minmax(0, 1fr); }
  .dm-g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dm-kpi { padding: 12px 8px; }
  .dm-kpi b { font-size: 24px; }
  .dm-g5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dm-top { padding: 10px 12px; }
  .dm-brand small, .dm-exit span { display: none; }
  .dm-brand b { font-size: 14px; }
  .dm-mark { width: 38px; height: 38px; }
  .dm-clock { font-size: 13px; }
  .dm-ib { width: 38px; height: 38px; }
  .dm-exit { height: 38px; padding: 0 10px; }
  .dm-role { padding: 9px 12px; font-size: 14px; flex: 1 1 0; justify-content: center; }
  .dm-roles__lbl { display: none; }
  .dm-ribbon-wrap { padding: 8px 12px 0; }
  .dm-att__opts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dm-hero__big { font-size: 52px; }
}
@media (max-width: 420px) { .dm-clock { display: none; } }
@media (prefers-reduced-motion: reduce) { .dm-view, .dm-wave.is-play i { animation: none; } }
@media print { .dm-notice, .dm-roles, .dm-top, .dm-side, .dm-ribbon-wrap { display: none; } .dm-app { display: block; } }
