/* =====================================================================
   B — mode designs (loaded after app.css).
   Seven approved palette groups:
     1 نخلة  (الرئيسية)  cream + palm green + soft gold
     2 حديد  (الجيم)     graphite + steel + ember orange
     3 بحر   (التركيز)   ice white + deep teal + sea glass
     4 ورد   (الروقان)   cream + rose + cocoa brown
     5 حرم   (الجمعة)    ivory + deep green + gold
     6 فحم   (الإدارة)   slate + ink blue + mist
     7 ليل   (الوضع الليلي لكل المودات)
   ===================================================================== */
:root { --font-display: "Readex Pro", var(--font); --font-ornate: "El Messiri", var(--font); --gold: #C2A26A; }

[data-mode=home]   { --bg: #F6F3EA; --surface: #FFFFFF; --surface-2: #EEEADD; --ink: #17251C; --muted: #5E6B63; --accent: var(--accent-override, #1F4D38); --accent-2: #A8B98F; --accent-ink: #F6F3EA; --accent-soft: rgba(31, 77, 56, .08); --line: rgba(31, 77, 56, .11); --hero: #1F4D38; }
[data-mode=gym]    { --bg: #ECEFF1; --surface: #FFFFFF; --surface-2: #E1E6E9; --ink: #0E1419; --muted: #56656F; --accent: var(--accent-override, #FF6B2C); --accent-2: #2E3B45; --accent-ink: #FFFFFF; --accent-soft: rgba(255, 107, 44, .10); --line: rgba(14, 20, 25, .10); --hero: #0E1419; --r-lg: 18px; }
[data-mode=focus]  { --bg: #F4F7F7; --surface: #FFFFFF; --surface-2: #EAF0F0; --ink: #0E2A33; --muted: #5A6E74; --accent: var(--accent-override, #10333D); --accent-2: #8FC1C3; --accent-ink: #F4F7F7; --accent-soft: rgba(16, 51, 61, .06); --line: rgba(16, 51, 61, .09); --shadow: none; }
[data-mode=calm]   { --bg: #F7EFE7; --surface: #FFF9F4; --surface-2: #F1E3D8; --ink: #4A2E22; --muted: #8A6F62; --accent: var(--accent-override, #B5706A); --accent-2: #E8C4BF; --accent-ink: #FFF9F4; --accent-soft: rgba(181, 112, 106, .10); --line: rgba(74, 46, 34, .09); --shadow: 0 1px 2px rgba(74,46,34,.04), 0 14px 34px -18px rgba(74,46,34,.22); --r-lg: 28px; }
[data-mode=friday] { --bg: #F7F3E8; --surface: #FFFDF7; --surface-2: #EDE6D3; --ink: #12291F; --muted: #5C6A5F; --accent: var(--accent-override, #0F4A36); --accent-2: #C2A26A; --accent-ink: #FFFDF7; --accent-soft: rgba(15, 74, 54, .08); --line: rgba(15, 74, 54, .12); --hero: #0F4A36; }
[data-mode=admin]  { --bg: #EEF0F2; --surface: #FFFFFF; --surface-2: #E3E7EA; --ink: #13232B; --muted: #55666F; --accent: #1C3A47; --accent-2: #93A7B0; --accent-ink: #F4F6F7; --accent-soft: rgba(28, 58, 71, .08); --line: rgba(28, 58, 71, .11); }
[data-theme=dark] { --bg: #0F1416; --surface: #171E21; --surface-2: #1F282C; --ink: #E8EDEE; --muted: #95A3A8; --line: rgba(232, 237, 238, .09); --accent-ink: #0F1416; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px -14px rgba(0,0,0,.6); }
[data-theme=dark][data-mode=home]   { --accent: #A8C79A; --accent-soft: rgba(168, 199, 154, .12); --hero: #183A2B; }
[data-theme=dark][data-mode=gym]    { --bg: #0B1014; --surface: #121A20; --surface-2: #1B252D; --accent: #FF7A3D; --accent-soft: rgba(255, 122, 61, .13); }
[data-theme=dark][data-mode=focus]  { --accent: #9FD0D2; --accent-soft: rgba(159, 208, 210, .10); }
[data-theme=dark][data-mode=calm]   { --bg: #1B1412; --surface: #241B18; --surface-2: #2E2420; --ink: #F3E6DC; --muted: #B79F92; --accent: #E8B3AD; --accent-soft: rgba(232, 179, 173, .12); }
[data-theme=dark][data-mode=friday] { --accent: #D8BC86; --accent-soft: rgba(216, 188, 134, .12); --hero: #0C3326; }

body { transition: background-color .35s var(--ease); }
.wel-greet, .gh-greet, .fnow .wel-greet { font-family: var(--font-display); letter-spacing: 0; }
.wel-kicker { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0; font-size: .86rem; color: var(--muted); font-weight: 500; }
.row-actions.wrap { flex-wrap: wrap; }

/* ===================== «بريكي» ===================== */
.bk { display: grid; gap: 14px; }
.bk-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.bk-state { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bk-state b { font-size: 1.05rem; }
.bk-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 18%, transparent); }
.bk.is-on .bk-dot { background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: beat 1.6s infinite; }
.bk-clock { font-family: var(--font-display); font-size: clamp(2.2rem, 6vw, 3rem); font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; direction: ltr; color: var(--accent); letter-spacing: .01em; }
.bk-clock.sm { font-size: 1.6rem; }
.bk-btn { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 64px; padding: 0 22px; border-radius: 18px; border: 0;
  font: inherit; font-size: 1.15rem; font-weight: 700; cursor: pointer; transition: transform .15s var(--ease), box-shadow .2s, filter .2s; }
.bk-btn .ic { width: 1.4em; height: 1.4em; }
.bk-btn.go { background: var(--accent); color: var(--accent-ink); box-shadow: 0 14px 28px -16px var(--accent); }
.bk-btn.back { background: var(--ink); color: var(--surface); box-shadow: 0 14px 28px -16px var(--ink); }
.bk-btn:hover:not(:disabled) { filter: brightness(1.06); }
.bk-btn:active:not(:disabled) { transform: scale(.985); }
.bk-btn[aria-busy=true] { color: transparent; position: relative; }
.bk-btn[aria-busy=true]::after { content: ""; position: absolute; width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid var(--accent-ink); border-color: var(--accent-ink) transparent; animation: spin .8s linear infinite; }
.bk-btn.back[aria-busy=true]::after { border-color: var(--surface) transparent; }
.bk-forgot { justify-self: center; font-size: .92rem; }
.bk-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.bk-tile { display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); min-width: 0; }
.bk-tile span { font-size: .8rem; color: var(--muted); font-weight: 600; }
.bk-tile b { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk-tile.over b, .bk-tile.neg b { color: var(--bad); } .bk-tile.pos b { color: var(--ok); }
.bk-note { margin: 0; font-size: .86rem; } .bk-note.neg { color: var(--bad); font-weight: 600; }
.bk-warn { display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--warn-bg); color: var(--warn); font-weight: 600; font-size: .9rem; }
.bk.is-on { --tint: color-mix(in srgb, var(--accent) 7%, transparent); }
.sec-breaks:has(.bk.is-on), .sec-nextBreak:has(.bk.is-on) { background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 7%, var(--surface)), var(--surface) 60%); }
.bk-log summary { cursor: pointer; font-weight: 600; font-size: .92rem; color: var(--muted); }
.bk-log ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; }
.bk-log li { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.bk-log li span { flex: 1; font-variant-numeric: tabular-nums; }
.mr-start { display: grid; justify-items: center; padding: 12px; border-radius: 14px; background: var(--surface-2); }
.mr-start b { font-family: var(--font-display); font-size: 1.8rem; direction: ltr; }
.mr-preview { margin: 0; min-height: 1.6em; color: var(--accent); }
@media (max-width: 420px) { .bk-stats { gap: 6px; } .bk-tile { padding: 10px; } .bk-tile b { font-size: 1.05rem; } }

/* compact «بريكك الحالي» */
.bk-mini { grid-template-columns: auto 1fr; align-items: center; column-gap: 14px; }
.bk-mini .bk-btn, .bk-mini .bk-forgot { grid-column: 1 / -1; }
.bk-mini .bk-btn { min-height: 54px; font-size: 1.05rem; }
.bk-ring { --p: 0; width: 64px; height: 64px; border-radius: 50%; background: conic-gradient(var(--accent) calc(var(--p) * 360deg), var(--surface-2) 0); display: grid; place-items: center; }
.bk-ring i { width: 48px; height: 48px; border-radius: 50%; background: var(--surface); }
.bk-mini-state { margin: 0; font-weight: 700; }
.bk-mini-text p { margin: 0; }

/* quick */
.qbtn small { color: var(--muted); font-weight: 500; font-size: .78rem; font-variant-numeric: tabular-nums; direction: ltr; }
.qbtn.hot { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.qbtn.hot small { color: inherit; opacity: .85; }

/* extra time dialog & lists */
.radio-card { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line); cursor: pointer; margin-bottom: 8px; transition: border-color .2s, background .2s; }
.radio-card input { margin-top: 5px; accent-color: var(--accent); }
.radio-card span { display: grid; gap: 2px; }
.radio-card:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
fieldset.field { border: 0; padding: 0; margin: 0; display: grid; gap: 6px; }
fieldset.field legend { font-weight: 600; font-size: .92rem; padding: 0; margin-bottom: 6px; }
.extra-list summary, .tb-done summary { cursor: pointer; font-weight: 600; font-size: .92rem; margin-top: 8px; }
.extra-list ul { list-style: none; margin: 8px 0 0; padding: 0; }
.extra-list li { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); }
.extra-list li > span { display: grid; }
.shift-period { margin: 0 0 6px; font-weight: 700; color: var(--accent); font-size: .92rem; }
.week-list .sv { display: grid; } .week-list .sv small { color: var(--muted); font-size: .76rem; }

/* «خذ لفة على المودات» */
.mode-tour { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.mt-card { display: grid; gap: 6px; justify-items: start; text-align: start; padding: 16px; border-radius: 18px; border: 2px solid transparent; font: inherit; cursor: pointer; min-height: 150px; position: relative; transition: transform .2s var(--ease); }
.mt-card:hover { transform: translateY(-2px); } .mt-card.on { border-color: currentColor; }
.mt-card b { font-size: 1.1rem; } .mt-card .small { opacity: .85; line-height: 1.5; }
.mt-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: rgba(255,255,255,.16); }
.mt-home   { background: #1F4D38; color: #F6F3EA; }
.mt-gym    { background: linear-gradient(140deg, #0E1419, #2E3B45); color: #fff; } .mt-gym .mt-ic { color: #FF6B2C; }
.mt-focus  { background: #F4F7F7; color: #0E2A33; border-color: rgba(16, 51, 61, .12); } .mt-focus .mt-ic { background: rgba(16,51,61,.07); }
.mt-calm   { background: linear-gradient(160deg, #F7EFE7, #E8C4BF); color: #4A2E22; } .mt-calm .mt-ic { background: rgba(255,249,244,.6); }
.mt-friday { background: #0F4A36; color: #F7F3E8; } .mt-friday .mt-ic { color: #C2A26A; }
.mt-card .chip { position: absolute; top: 10px; inset-inline-end: 10px; }

/* ===================== الرئيسية — نخلة ===================== */
[data-mode=home] .welcome-home { background: radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--accent-2) 30%, var(--surface)) 0%, var(--surface) 55%); overflow: hidden; position: relative; }
[data-mode=home] .welcome-home::after { content: ""; position: absolute; inset-inline-start: -60px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%; border: 36px solid color-mix(in srgb, var(--accent) 6%, transparent); pointer-events: none; }
.wel-home { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px 24px; flex-wrap: wrap; position: relative; z-index: 1; }
.wel-home-main { display: grid; gap: 8px; min-width: 0; flex: 1 1 340px; }
.wel-home .wel-greet { font-size: clamp(1.5rem, 3.6vw, 2.3rem); font-weight: 700; line-height: 1.35; }
.wel-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.wel-fill.fill-text { margin: 2px 0 4px; font-size: clamp(1rem, 2.2vw, 1.2rem); max-width: none; transition: none; }
[data-mode=home] .sec-head h2 { font-family: var(--font-display); font-weight: 600; }
@media (min-width: 900px) {
  [data-mode=home] .layout-wide .welcome-home { position: sticky; top: 74px; z-index: 0; }
  [data-mode=home] .layout-wide .grid > .card:not(.welcome) { position: relative; z-index: 1; }
}

/* ===================== الجيم — حديد ===================== */
[data-mode=gym] .gym-hero { background: radial-gradient(120% 120% at 0% 0%, #2E3B45 0%, #0E1419 55%) !important; color: #EEF2F4; position: relative; overflow: hidden; }
[data-mode=gym] .gym-hero::before { content: ""; position: absolute; inset-inline-end: -40px; top: -60px; width: 280px; height: 280px; background: repeating-linear-gradient(-45deg, rgba(255,107,44,.16) 0 10px, transparent 10px 22px); transform: rotate(8deg); border-radius: 40px; pointer-events: none; }
[data-mode=gym] .gym-hero > * { position: relative; }
[data-mode=gym] .gh-greet { font-size: clamp(1.4rem, 3.4vw, 2.1rem); font-weight: 700; }
[data-mode=gym] .gh-today { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.10); }
[data-mode=gym] .gh-today.done { border-color: #FF6B2C; }
[data-mode=gym] .stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
[data-mode=gym] .stat { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.08); padding: 16px; }
[data-mode=gym] .stat b { font-family: var(--font-display); font-size: 2.3rem; }
[data-mode=gym] .stat.hot { background: linear-gradient(150deg, #FF6B2C, #E8501A); border: 0; }
[data-mode=gym] .stat.hot span, [data-mode=gym] .stat.hot small { color: rgba(255,255,255,.88); }
[data-mode=gym] .gh-adh { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; margin-top: 14px; color: #B9C4CB; }
[data-mode=gym] .gh-adh b { color: #fff; }
[data-mode=gym] .gh-bar { grid-column: 1 / -1; height: 6px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; }
[data-mode=gym] .gh-bar i { display: block; height: 100%; background: linear-gradient(90deg, #FF6B2C, #FFB37E); border-radius: inherit; }
[data-mode=gym] .mw.done i { background: #FF6B2C; border-color: #FF6B2C; }
[data-mode=gym] .mw.today { outline-color: #FF6B2C; }
[data-mode=gym] .gym-hero .btn.primary { background: #FF6B2C; border-color: #FF6B2C; color: #fff; }
[data-mode=gym] .grid-compact > .card:not(.gym-hero) { border-top: 3px solid var(--accent); }
[data-mode=gym] .sec-head h2 { font-family: var(--font-display); font-weight: 700; }
[data-mode=gym] .sec-icon { background: var(--ink); color: var(--accent); border-radius: 10px; }
[data-theme=dark][data-mode=gym] .sec-icon { background: var(--surface-2); }
[data-mode=gym] .bk-btn.go { background: linear-gradient(150deg, #FF6B2C, #E8501A); }
[data-mode=gym] .bk-tile { background: var(--surface-2); border-inline-start: 3px solid var(--accent); }
@media (max-width: 760px) { [data-mode=gym] .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } [data-mode=gym] .stat b { font-size: 1.9rem; } }

/* ===================== التركيز — بحر ===================== */
[data-mode=focus] .card { box-shadow: none; border-color: var(--line); }
[data-mode=focus] .side-nav { background: transparent; border: 0; padding: 0; gap: 2px; }
[data-mode=focus] .side-link { border-radius: 10px; font-weight: 500; }
[data-mode=focus] .side-link.on { background: var(--surface); color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); font-weight: 700; }
[dir=rtl] [data-mode=focus] .side-link.on, [data-mode=focus] [dir=rtl] .side-link.on { box-shadow: inset -3px 0 0 var(--accent); }
[data-mode=focus] .welcome-focus { border-inline-start: 0; background: var(--surface); }
.fnow { display: grid; gap: 22px; max-width: 640px; }
.fnow .wel-greet { font-size: clamp(1.4rem, 3.4vw, 2rem); font-weight: 500; margin: 4px 0 0; min-height: 1.4em; }
.fnow-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.fnow-cell { display: grid; gap: 4px; padding: 18px; background: var(--surface); }
.fnow-cell b { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.fnow-cell.is-on { background: var(--accent-soft); }
.fnow .bk-btn { min-height: 58px; }
[data-mode=focus] .sec-head h2 { font-weight: 600; letter-spacing: 0; }
[data-mode=focus] .sec-icon { background: transparent; border: 1px solid var(--line); }
[data-mode=focus] .bk-tile { background: transparent; border: 1px solid var(--line); }
[data-mode=focus] .welcome .sec-head { display: none; }
@media (max-width: 520px) { .fnow-grid { grid-template-columns: 1fr; } }

/* ===================== الروقان — ورد ===================== */
[data-mode=calm] .wel-greet, [data-mode=calm] .sec-head h2 { font-family: var(--font-ornate); }
[data-mode=calm] .welcome-calm { text-align: center; }
[data-mode=calm] .welcome-calm .wel { justify-items: center; }
[data-mode=calm] .welcome-calm .wel-greet { font-size: clamp(1.8rem, 5vw, 2.8rem); font-weight: 600; color: var(--ink); }
[data-mode=calm] .welcome-calm .wel-status { font-weight: 500; color: var(--muted); }
[data-mode=calm] .stack { gap: 34px; }
[data-mode=calm] .stack .card { border: 0; }
[data-mode=calm] .sec-icon { border-radius: 50%; background: color-mix(in srgb, var(--accent-2) 45%, var(--surface)); color: var(--ink); }
[data-mode=calm] .toc a { background: color-mix(in srgb, var(--surface) 80%, transparent); border-color: transparent; backdrop-filter: blur(6px); }
[data-mode=calm] .bk-btn { border-radius: 999px; }
[data-mode=calm] .bk-btn.go { background: linear-gradient(135deg, #C98B86, #B5706A); }
[data-mode=calm] .bk-btn.back { background: #6B4536; color: #FFF9F4; }
[data-mode=calm] .bk-tile { border-radius: 20px; background: color-mix(in srgb, var(--accent-2) 22%, var(--surface)); }
[data-mode=calm] .bg-layers span:nth-child(1) { color: #E8C4BF; }
[data-mode=calm] .bg-layers span:nth-child(2) { color: #EAD8C6; }
[data-mode=calm] .bg-layers span:nth-child(3) { color: #F3D9CF; }

/* ===================== الجمعة — حرم ===================== */
[data-mode=friday] .bg-layers { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%230F4A36' stroke-opacity='.07' stroke-width='1'%3E%3Cpath d='M32 6l7.6 18.4L58 32l-18.4 7.6L32 58l-7.6-18.4L6 32l18.4-7.6z'/%3E%3Crect x='17' y='17' width='30' height='30' transform='rotate(45 32 32)'/%3E%3C/g%3E%3C/svg%3E"); background-size: 64px 64px; }
[data-theme=dark][data-mode=friday] .bg-layers { opacity: .5; filter: invert(1); }
[data-mode=friday] .welcome-friday { background: linear-gradient(160deg, #0F4A36, #0B3828) !important; color: #F7F3E8; border: 1px solid rgba(194,162,106,.35) !important; box-shadow: 0 24px 50px -30px rgba(15,74,54,.8); }
[data-mode=friday] .wel-friday { text-align: center; justify-items: center; padding: 18px 0 8px; position: relative; }
[data-mode=friday] .wel-friday .wel-greet { font-family: var(--font-ornate); font-size: clamp(1.8rem, 5vw, 2.6rem); font-weight: 600; color: #FFFDF7; }
[data-mode=friday] .wel-friday .wel-kicker { color: #D8BC86; justify-content: center; letter-spacing: .02em; }
[data-mode=friday] .wel-friday .wel-status { color: #DCE6DF; }
[data-mode=friday] .wel-friday .wel-links { justify-content: center; }
[data-mode=friday] .wel-friday .btn.soft { background: rgba(255,253,247,.10); color: #FFFDF7; border: 1px solid rgba(194,162,106,.35); }
.fr-arch { position: absolute; inset: -18px 50% auto auto; transform: translateX(50%); width: min(420px, 90%); height: 120px; border: 1.5px solid rgba(194,162,106,.45); border-bottom: 0; border-radius: 210px 210px 0 0; pointer-events: none; }
[dir=rtl] .fr-arch { inset: -18px auto auto 50%; transform: translateX(-50%); }
[data-mode=friday] .ornament { opacity: .2; background: conic-gradient(from 22.5deg, #C2A26A 0 12.5%, transparent 0 25%, #C2A26A 0 37.5%, transparent 0 50%, #C2A26A 0 62.5%, transparent 0 75%, #C2A26A 0 87.5%, transparent 0); }
[data-mode=friday] .sec-head h2 { font-family: var(--font-ornate); font-weight: 600; font-size: 1.25rem; }
[data-mode=friday] .sec-head { position: relative; padding-bottom: 12px; }
[data-mode=friday] .sec-head::after { content: ""; position: absolute; bottom: 0; inset-inline: 0; height: 9px; background:
  radial-gradient(circle, var(--gold) 2.5px, transparent 3px) center / 9px 9px no-repeat,
  linear-gradient(90deg, transparent, color-mix(in srgb, var(--gold) 70%, transparent) 30%, transparent 48%, transparent 52%, color-mix(in srgb, var(--gold) 70%, transparent) 70%, transparent) center / 100% 1px no-repeat; }
[data-mode=friday] .welcome-friday .sec-head { display: none; }
[data-mode=friday] .sec-icon { background: transparent; color: var(--gold); border: 1px solid color-mix(in srgb, var(--gold) 50%, transparent); transform: rotate(45deg); border-radius: 8px; }
[data-mode=friday] .sec-icon .ic { transform: rotate(-45deg); }
[data-mode=friday] .stack .card { border-color: color-mix(in srgb, var(--gold) 25%, var(--line)); }
[data-mode=friday] .dhikr { background: var(--surface); border: 1px solid color-mix(in srgb, var(--gold) 30%, transparent); border-inline-start: 4px solid var(--gold); }
[data-mode=friday] .sec-kahf { background: var(--surface); }
[data-mode=friday] .bk-btn.go { background: linear-gradient(160deg, #0F4A36, #0B3828); color: #FFFDF7; box-shadow: inset 0 0 0 1px rgba(194,162,106,.4), 0 14px 28px -16px #0F4A36; }
[data-theme=dark][data-mode=friday] .bk-btn.go { color: #FFFDF7; }

/* ===================== Admin additions ===================== */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.page-head h2 { font-family: var(--font-display); }
.allow-card { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.allow-card b { font-family: var(--font-display); font-size: 1.2rem; }
.seg.tabs { margin-bottom: 14px; }
.filters { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 12px; }
.field.inline { min-width: 200px; }
.log-day { margin-bottom: 12px; } .log-day .sec-head h3 { flex: 1; font-size: 1rem; }
.rows li .r-act { display: inline-flex; gap: 2px; margin-inline-start: auto; }
.rows li.is-removed { opacity: .55; }
.kpi.hot b { color: var(--accent); }
.periods { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-bottom: 18px; }
.period header { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.period h3 { font-size: 1.05rem; }
.p-code { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 1.1rem; flex: none; }
.p-time { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font-family: var(--font-display); font-size: 1.15rem; }
.period.is-off { opacity: .6; } .period.is-off .p-code { background: var(--surface-2); color: var(--muted); }
.how ul.plain { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.how ul.plain li { display: flex; gap: 10px; align-items: flex-start; }
.how ul.plain li .ic { margin-top: 3px; color: var(--accent); }
.on-break li { flex-wrap: wrap; }
.grid-compact .bk-tile b, .layout-sidebar .bk-tile b { font-size: clamp(.95rem, 1.5vw, 1.15rem); }
.bk-tile b { text-overflow: clip; }
.adm-body, .adm-main { min-width: 0; }
@media (max-width: 960px) {
  .adm-tabbar { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 2px; padding-inline: 4px; }
  .adm-tabbar a { font-size: .68rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .page-head { align-items: stretch; } .allow-card { justify-content: space-between; }
}
