/* ============================================================
   TSSHCo Chronos — design system
   ============================================================ */
@font-face {
  font-family: 'Outfit';
  src: url('../assets/fonts/Outfit.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../assets/fonts/Vazirmatn.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #06080f;
  --bg-2: #0a101e;
  --panel: rgba(18, 24, 39, .74);
  --panel-solid: #111827;
  --panel-soft: rgba(255, 255, 255, .042);
  --text: #f0f4fc;
  --text-soft: #c7d0e1;
  --muted: #8b97ad;
  --faint: #5e6a80;
  --line: rgba(255, 255, 255, .085);
  --line-strong: rgba(255, 255, 255, .15);
  --accent: #a8c6f0;
  --accent-2: #f4b183;
  --accent-3: #8ee0c7;
  --accent-soft: rgba(168, 198, 240, .16);
  --accent-2-soft: rgba(244, 177, 131, .15);
  --danger: #ff7c88;
  --ok: #7de2b8;
  --warn: #f6c177;
  --r-xl: 30px;
  --r-lg: 24px;
  --r-md: 16px;
  --r-sm: 11px;
  --font: 'Outfit', 'Vazirmatn', 'Segoe UI', sans-serif;
  --font-fa: 'Vazirmatn', 'Outfit', 'Tahoma', sans-serif;
  --shadow: 0 26px 70px rgba(0, 0, 0, .36);
  --shadow-soft: 0 14px 34px rgba(0, 0, 0, .22);
  --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, .08);
  --spring-a: #9bc8b0;
  --spring-b: #f3b5a8;
  --glow-a: rgba(126, 201, 174, .22);
  --glow-b: rgba(244, 177, 131, .16);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { overflow-x: clip; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body[lang="fa"], body[lang="ar"], [dir="rtl"] { font-family: var(--font-fa); }
body.no-scroll { overflow: hidden; }
img, svg { display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5, p { margin: 0; }
::selection { background: color-mix(in srgb, var(--accent) 34%, transparent); color: #fff; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .14); border-radius: 20px; }
::-webkit-scrollbar-track { background: transparent; }

.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- seasonal worlds ---------- */
body[data-season="spring"] {
  --accent: #a9d9bd;
  --accent-2: #f3b1a4;
  --accent-3: #f6d38e;
  --glow-a: rgba(129, 209, 173, .22);
  --glow-b: rgba(243, 177, 164, .17);
  --season-grad: linear-gradient(135deg, #a9d9bd, #f3b1a4 52%, #f6d38e);
}
body[data-season="summer"] {
  --accent: #76d8ea;
  --accent-2: #ffd07c;
  --accent-3: #ff9a8c;
  --glow-a: rgba(71, 196, 223, .22);
  --glow-b: rgba(255, 190, 94, .18);
  --season-grad: linear-gradient(135deg, #76d8ea, #ffd07c 55%, #ff9a8c);
}
body[data-season="autumn"] {
  --accent: #ffbd7f;
  --accent-2: #ef8a6d;
  --accent-3: #f0d596;
  --glow-a: rgba(239, 138, 109, .22);
  --glow-b: rgba(255, 189, 127, .18);
  --season-grad: linear-gradient(135deg, #ffbd7f, #ef8a6d 55%, #f0d596);
}
body[data-season="winter"] {
  --accent: #adc8ff;
  --accent-2: #d9efff;
  --accent-3: #9ea9ff;
  --glow-a: rgba(128, 160, 255, .24);
  --glow-b: rgba(184, 224, 255, .16);
  --season-grad: linear-gradient(135deg, #adc8ff, #d9efff 55%, #9ea9ff);
}

/* ---------- ambient background ---------- */
.ambient { position: fixed; inset: 0; z-index: -2; overflow: hidden; background:
  radial-gradient(ellipse 80% 52% at 18% -12%, var(--glow-a), transparent 62%),
  radial-gradient(ellipse 66% 46% at 100% 4%, var(--glow-b), transparent 66%),
  radial-gradient(ellipse 70% 66% at 52% 116%, rgba(112, 140, 199, .13), transparent 70%),
  linear-gradient(160deg, #070a12 0%, #080d17 44%, #05070d 100%);
}
.ambient::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(rgba(5, 7, 13, .2), rgba(5, 7, 13, .68)); }
.ambient-orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; animation: orbFloat 20s var(--ease) infinite alternate; }
.orb-a { width: 540px; height: 540px; background: var(--glow-a); top: -180px; left: 8%; }
.orb-b { width: 480px; height: 480px; background: var(--glow-b); top: 26%; right: -140px; animation-delay: -7s; }
.orb-c { width: 420px; height: 420px; background: rgba(116, 139, 199, .12); bottom: -200px; left: 38%; animation-delay: -12s; }
.ambient-grid { position: absolute; inset: 0; background-image:
  linear-gradient(rgba(255, 255, 255, .028) 1px, transparent 1px),
  linear-gradient(90deg, rgba(255, 255, 255, .028) 1px, transparent 1px);
  background-size: 76px 76px; mask-image: radial-gradient(ellipse at 50% 10%, #000 0%, transparent 68%); opacity: .75; }
#seasonCanvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .8; }
.grain { position: absolute; inset: 0; opacity: .07; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E"); mix-blend-mode: overlay; }
@keyframes orbFloat { to { transform: translate3d(40px, 42px, 0) scale(1.12); } }

/* ---------- primitives ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 10.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 16px; height: 1px; background: var(--accent); opacity: .65; }
[dir="rtl"] .eyebrow { letter-spacing: .04em; }
[dir="rtl"] .eyebrow::before { order: 2; }
.serif { font-family: Georgia, 'Times New Roman', serif; font-style: italic; font-weight: 500; letter-spacing: -.02em; }
[dir="rtl"] .serif { font-family: var(--font-fa); font-style: normal; font-weight: 800; }
.card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: linear-gradient(152deg, rgba(30, 38, 57, .77), rgba(11, 15, 25, .76));
  box-shadow: var(--shadow-soft), var(--glass-highlight);
  backdrop-filter: blur(22px) saturate(1.05);
  -webkit-backdrop-filter: blur(22px) saturate(1.05);
  overflow: hidden;
}
.card::before { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; background: radial-gradient(ellipse at 12% 0%, rgba(255, 255, 255, .06), transparent 44%); }
.card-head { position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 24px 26px 0; }
.card-head h3 { font-size: 19px; font-weight: 600; letter-spacing: -.02em; margin-top: 3px; }
.card-head .eyebrow { font-size: 9.5px; }
.head-icon { color: var(--accent); width: 22px; height: 22px; opacity: .8; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 42px; padding: 0 18px; border-radius: 13px; border: 1px solid transparent;
  font-size: 13.5px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap;
  transition: transform .2s var(--ease), background .2s, border-color .2s, box-shadow .2s;
}
.btn svg { width: 17px; height: 17px; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary { background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 62%, var(--accent-2))); color: #0b1220; box-shadow: 0 12px 28px color-mix(in srgb, var(--accent) 20%, transparent); }
.btn-primary:hover { box-shadow: 0 16px 34px color-mix(in srgb, var(--accent) 30%, transparent); }
.btn-glow { position: relative; overflow: hidden; }
.btn-glow::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, .5) 48%, transparent 75%); transform: translateX(-130%); transition: transform .7s; }
.btn-glow:hover::after { transform: translateX(130%); }
[dir="rtl"] .btn-glow::after { transform: translateX(130%); }
[dir="rtl"] .btn-glow:hover::after { transform: translateX(-130%); }
.btn-ghost { background: rgba(255, 255, 255, .035); border-color: var(--line); color: var(--text-soft); }
.btn-ghost:hover { background: rgba(255, 255, 255, .07); border-color: var(--line-strong); }
.btn-glass { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .14); color: var(--text); backdrop-filter: blur(10px); }
.btn-danger { background: rgba(255, 124, 136, .1); border-color: rgba(255, 124, 136, .25); color: #ffb4bb; }
.btn-sm { min-height: 36px; padding: 0 13px; border-radius: 11px; font-size: 12.5px; }
.btn-lg { min-height: 52px; padding: 0 26px; border-radius: 15px; font-size: 14.5px; }
.w-full { width: 100%; }
.icon-btn {
  width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .035);
  color: var(--text-soft); transition: background .2s, border-color .2s, color .2s, transform .2s;
}
.icon-btn:hover { background: rgba(255, 255, 255, .08); border-color: var(--line-strong); color: var(--text); transform: translateY(-1px); }
.icon-btn.sm { width: 33px; height: 33px; border-radius: 10px; }
.icon-btn.sm svg { width: 16px; height: 16px; }
.icon-btn.ghost { background: transparent; border-color: transparent; }
.text-link { display: inline-flex; align-items: center; gap: 5px; color: var(--accent); font-size: 12px; font-weight: 600; }
.text-link svg { width: 14px; height: 14px; transition: transform .2s; }
.text-link:hover svg { transform: translate(2px, -2px); }
[dir="rtl"] .text-link:hover svg { transform: translate(-2px, -2px); }
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 30px; border: 1px solid rgba(125, 226, 184, .2); background: rgba(125, 226, 184, .08); color: var(--ok); font-size: 10.5px; font-weight: 600; white-space: nowrap; }
.status-pill i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; animation: pulse 2.4s infinite; }
.status-pill.muted { border-color: var(--line); background: rgba(255, 255, 255, .03); color: var(--muted); }
.status-pill.muted i { box-shadow: none; animation: none; }
.badge-soft { padding: 5px 9px; border-radius: 7px; background: var(--accent-soft); color: var(--accent); font-size: 9.5px; font-weight: 700; letter-spacing: .12em; }
.count-pill { min-width: 28px; height: 28px; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center; border-radius: 30px; background: var(--accent-soft); color: var(--accent); font-size: 11px; font-weight: 700; }
@keyframes pulse { 50% { opacity: .35; } }

/* ---------- splash ---------- */
.splash { position: fixed; inset: 0; z-index: 300; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; background: radial-gradient(circle at 50% 42%, #121b2c, #05070d 66%); transition: opacity .7s var(--ease), visibility .7s; }
.splash.done { opacity: 0; visibility: hidden; }
.splash-mark { width: 94px; height: 94px; border-radius: 50%; padding: 10px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 0 80px var(--glow-a); animation: splashFloat 3s ease-in-out infinite; }
.splash-mark img { width: 100%; height: 100%; object-fit: contain; }
.splash-word { font-size: 13px; letter-spacing: .38em; color: var(--text-soft); font-weight: 500; }
.splash-word span { color: var(--accent); }
.splash-line { width: 120px; height: 1px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.splash-line i { display: block; width: 45%; height: 100%; background: var(--accent); animation: loadLine 1.15s var(--ease) infinite; }
@keyframes loadLine { from { transform: translateX(-110%); } to { transform: translateX(320%); } }
@keyframes splashFloat { 50% { transform: translateY(-6px); } }

/* ---------- brand ---------- */
.brand-lockup { display: flex; align-items: center; gap: 11px; }
.brand-lockup img { width: 38px; height: 38px; object-fit: contain; }
.brand-lockup span { display: flex; flex-direction: column; line-height: 1; gap: 4px; }
.brand-lockup b { font-size: 16px; letter-spacing: -.02em; font-weight: 700; }
.brand-lockup em { font-style: normal; font-size: 8px; letter-spacing: .32em; color: var(--accent); font-weight: 600; }

/* ---------- onboarding ---------- */
.onboarding { position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column; padding: 26px clamp(24px, 5vw, 74px) 20px; background:
  radial-gradient(ellipse 64% 52% at 20% 0%, var(--glow-a), transparent 60%),
  radial-gradient(ellipse 55% 44% at 94% 22%, var(--glow-b), transparent 62%),
  linear-gradient(150deg, rgba(7, 10, 18, .94), rgba(5, 7, 13, .97)); overflow-y: auto; }
.onb-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; max-width: 1280px; width: 100%; margin: 0 auto; }
.onb-step-label { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.onb-shell { width: 100%; max-width: 1120px; margin: auto; padding: 28px 0 40px; position: relative; }
.onb-progress { height: 2px; border-radius: 4px; background: rgba(255, 255, 255, .07); margin-bottom: clamp(26px, 5vh, 58px); overflow: hidden; }
.onb-progress i { display: block; height: 100%; width: 33.33%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .6s var(--ease); }
.onb-pane { display: none; }
.onb-pane.active { display: block; animation: paneIn .55s var(--ease) both; }
@keyframes paneIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.onb-intro { max-width: 680px; margin-bottom: clamp(24px, 4vh, 40px); }
.onb-intro h1 { font-size: clamp(34px, 4.8vw, 58px); line-height: 1.04; letter-spacing: -.045em; font-weight: 500; margin: 11px 0 12px; }
.onb-intro p { color: var(--muted); font-size: 15px; max-width: 540px; line-height: 1.65; }
.lang-search { display: flex; align-items: center; gap: 10px; width: min(340px, 100%); min-height: 42px; border: 1px solid var(--line); border-radius: 12px; padding: 0 13px; background: rgba(255, 255, 255, .035); margin-bottom: 16px; }
.lang-search svg { width: 16px; height: 16px; color: var(--muted); }
.lang-search input { flex: 1; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 13px; }
.lang-search input::placeholder { color: var(--faint); }
.lang-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.lang-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; min-height: 122px; padding: 17px 16px; border: 1px solid var(--line); border-radius: 17px; background: linear-gradient(145deg, rgba(255, 255, 255, .048), rgba(255, 255, 255, .018)); text-align: start; transition: border-color .22s, background .22s, transform .22s var(--ease); overflow: hidden; }
.lang-card:hover { transform: translateY(-3px); border-color: var(--line-strong); background: linear-gradient(145deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .025)); }
.lang-card .flag { width: 31px; height: 22px; border-radius: 5px; object-fit: cover; border: 1px solid rgba(255, 255, 255, .18); box-shadow: 0 4px 12px rgba(0, 0, 0, .25); }
.ready-chips .flag { width: 18px; height: 13px; border-radius: 3px; object-fit: cover; border: 1px solid rgba(255, 255, 255, .2); }
.lang-card b { display: block; font-size: 14.5px; font-weight: 600; letter-spacing: -.01em; }
.lang-card em { display: block; font-style: normal; font-size: 10.5px; color: var(--faint); margin-top: 2px; }
.lang-card .check { position: absolute; top: 13px; inset-inline-end: 13px; width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--line-strong); display: flex; align-items: center; justify-content: center; opacity: 0; transform: scale(.6); transition: .2s; color: #08111a; }
.lang-card .check svg { width: 12px; height: 12px; stroke-width: 2.4; }
.lang-card.selected { border-color: color-mix(in srgb, var(--accent) 70%, transparent); background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 16%, transparent), rgba(255, 255, 255, .025)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 22%, transparent), 0 16px 36px rgba(0, 0, 0, .18); }
.lang-card.selected .check { opacity: 1; transform: none; background: var(--accent); border-color: var(--accent); }
.lang-card.detected::after { content: "AUTO"; position: absolute; bottom: 12px; inset-inline-end: 13px; font-size: 8px; letter-spacing: .14em; color: var(--accent); opacity: .8; }
.lang-card.hidden { display: none; }
.onb-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 27px; }
.onb-note { display: flex; align-items: center; gap: 7px; color: var(--faint); font-size: 11px; }
.onb-note svg { width: 14px; height: 14px; color: var(--accent); opacity: .75; }
.season-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 24px; }
.season-card { position: relative; border: 1px solid var(--line); border-radius: 20px; padding: 0; background: var(--panel-soft); overflow: hidden; text-align: start; transition: transform .25s var(--ease), border-color .25s; }
.season-card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.season-card.selected { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 18px 40px rgba(0, 0, 0, .2); }
.season-art { position: relative; height: 104px; overflow: hidden; }
.season-art::before, .season-art::after { content: ""; position: absolute; border-radius: 50%; filter: blur(2px); }
.season-card[data-season="spring"] .season-art { background: linear-gradient(140deg, #263d35, #6a8b72 48%, #d2a199); }
.season-card[data-season="spring"] .season-art::before { width: 90px; height: 90px; background: radial-gradient(circle, #ffd8cf, transparent 68%); top: -16px; inset-inline-end: -8px; }
.season-card[data-season="spring"] .season-art::after { width: 70px; height: 70px; border: 1px solid rgba(255,255,255,.2); bottom: 10px; inset-inline-start: 18px; }
.season-card[data-season="summer"] .season-art { background: linear-gradient(150deg, #0e4459, #1c91a8 52%, #f7c66d); }
.season-card[data-season="summer"] .season-art::before { width: 72px; height: 72px; background: radial-gradient(circle, #fff1b2, rgba(255, 211, 112, .2) 60%, transparent 70%); top: 14px; inset-inline-end: 18px; box-shadow: 0 0 40px rgba(255, 218, 113, .5); }
.season-card[data-season="summer"] .season-art::after { width: 130px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .12); bottom: 0; inset-inline-start: -20px; }
.season-card[data-season="autumn"] .season-art { background: linear-gradient(150deg, #3c251c, #94523b 54%, #e4b66e); }
.season-card[data-season="autumn"] .season-art::before { width: 84px; height: 84px; background: radial-gradient(circle, rgba(255, 196, 117, .75), transparent 68%); bottom: -18px; inset-inline-end: 14px; }
.season-card[data-season="autumn"] .season-art::after { width: 60px; height: 60px; border: 1px solid rgba(255,255,255,.16); border-radius: 8px; transform: rotate(25deg); top: 16px; inset-inline-start: 20px; }
.season-card[data-season="winter"] .season-art { background: linear-gradient(150deg, #131b31, #324875 54%, #9eb9da); }
.season-card[data-season="winter"] .season-art::before { width: 72px; height: 72px; background: radial-gradient(circle, rgba(224, 244, 255, .8), transparent 68%); top: 10px; inset-inline-end: 22px; box-shadow: 0 0 38px rgba(178, 220, 255, .4); }
.season-card[data-season="winter"] .season-art::after { width: 2px; height: 2px; background: #fff; box-shadow: 22px 20px 0 #fff, 50px -8px 0 #fff, 90px 30px 0 rgba(255,255,255,.7), 120px 8px 0 #fff, 145px 44px 0 rgba(255,255,255,.65); top: 22px; inset-inline-start: 18px; }
.season-card-copy { padding: 14px 15px 16px; }
.season-card-copy b { display: block; font-size: 14px; font-weight: 600; }
.season-card-copy em { display: block; font-style: normal; color: var(--muted); font-size: 10.5px; line-height: 1.45; margin-top: 3px; }
.onb-form { display: grid; grid-template-columns: 1fr 1.35fr; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field > span { font-size: 10.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 12px;
  background: rgba(255, 255, 255, .035); padding: 0 13px; color: var(--text); outline: none;
  transition: border-color .2s, background .2s, box-shadow .2s; font-size: 13.5px;
}
.field textarea { min-height: 90px; padding-top: 11px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: color-mix(in srgb, var(--accent) 58%, transparent); background: rgba(255, 255, 255, .055); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 10%, transparent); }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 19px, calc(100% - 13px) 19px; background-size: 5px 5px; background-repeat: no-repeat; }
[dir="rtl"] .field select { background-position: 18px 19px, 23px 19px; }
.input-with-icon { display: flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .035); padding: 0 8px 0 13px; min-height: 44px; transition: border-color .2s; }
[dir="rtl"] .input-with-icon { padding: 0 13px 0 8px; }
.input-with-icon:focus-within { border-color: color-mix(in srgb, var(--accent) 58%, transparent); }
.input-with-icon > svg { width: 15px; height: 15px; color: var(--muted); flex: 0 0 auto; }
.input-with-icon input { border: 0; background: transparent; min-height: 42px; padding: 0; flex: 1; outline: none; }
.mini-btn { width: 28px; height: 28px; border: 0; border-radius: 8px; background: rgba(255, 255, 255, .06); color: var(--muted); display: inline-flex; align-items: center; justify-content: center; }
.mini-btn svg { width: 14px; height: 14px; }
.mini-btn:hover { color: var(--text); background: rgba(255, 255, 255, .1); }
.onb-ready { text-align: center; max-width: 680px; margin: 0 auto; padding: 34px 0 20px; }
.ready-orb { width: 108px; height: 108px; margin: 0 auto 24px; border-radius: 50%; padding: 15px; background: radial-gradient(circle at 35% 25%, rgba(255, 255, 255, .18), rgba(255, 255, 255, .02) 60%); border: 1px solid var(--line-strong); box-shadow: 0 0 70px var(--glow-a); animation: splashFloat 4s ease-in-out infinite; }
.ready-orb img { width: 100%; height: 100%; object-fit: contain; }
.onb-ready h1 { font-size: clamp(36px, 4.8vw, 56px); letter-spacing: -.04em; font-weight: 500; line-height: 1.08; margin: 12px 0; }
.onb-ready p { color: var(--muted); font-size: 15px; }
.ready-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin: 26px 0 28px; }
.ready-chips span { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--panel-soft); border-radius: 30px; padding: 7px 12px; color: var(--text-soft); font-size: 11.5px; }
.ready-chips b { color: var(--accent); font-weight: 600; }
.ready-actions { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.onb-bottom { display: flex; justify-content: space-between; gap: 20px; max-width: 1280px; width: 100%; margin: auto auto 0; padding-top: 16px; color: var(--faint); font-size: 10.5px; }
.onb-bottom-links { display: flex; gap: 18px; }
.onb-bottom a:hover { color: var(--text-soft); }

/* ---------- app shell ---------- */
.app { display: flex; min-height: 100vh; animation: appIn .8s var(--ease) both; }
@keyframes appIn { from { opacity: 0; } to { opacity: 1; } }
.sidebar { width: 242px; flex: 0 0 242px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 26px 16px 18px; border-inline-end: 1px solid var(--line); background: linear-gradient(180deg, rgba(9, 13, 22, .78), rgba(6, 9, 16, .86)); backdrop-filter: blur(26px); z-index: 20; }
.sidebar-brand { padding: 0 9px 32px; }
.side-nav { display: flex; flex-direction: column; gap: 4px; }
.side-link { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 45px; padding: 0 13px; border: 1px solid transparent; border-radius: 13px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 500; text-align: start; transition: color .2s, background .2s, border-color .2s; }
.side-link svg { width: 18px; height: 18px; flex: 0 0 auto; opacity: .82; }
.side-link span { flex: 1; }
.side-link:hover { color: var(--text-soft); background: rgba(255, 255, 255, .035); }
.side-link.active { color: var(--text); background: linear-gradient(100deg, color-mix(in srgb, var(--accent) 16%, transparent), rgba(255, 255, 255, .025)); border-color: color-mix(in srgb, var(--accent) 18%, transparent); }
.side-link.active::before { content: ""; position: absolute; inset-inline-start: -17px; top: 50%; transform: translateY(-50%); width: 3px; height: 21px; border-radius: 4px; background: var(--accent); box-shadow: 0 0 16px var(--accent); }
.side-link.active svg { color: var(--accent); opacity: 1; }
.nav-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.nav-badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 20px; background: var(--accent-2); color: #15100c; display: inline-flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 800; font-style: normal; }
.sidebar-bottom { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.side-tour { display: flex; align-items: center; gap: 10px; padding: 11px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(135deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015)); transition: border-color .2s, background .2s; }
.side-tour:hover { border-color: var(--line-strong); background: rgba(255, 255, 255, .055); }
.tour-orb { width: 29px; height: 29px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent); flex: 0 0 auto; }
.tour-orb svg { width: 12px; height: 12px; fill: currentColor; stroke-width: 0; margin-inline-start: 2px; }
.side-tour b { display: block; font-size: 10.5px; font-weight: 600; }
.side-tour em { display: block; font-style: normal; color: var(--faint); font-size: 9px; margin-top: 2px; }
.profile-chip { display: flex; align-items: center; gap: 9px; padding: 8px; border: 0; border-radius: 12px; background: transparent; color: var(--text); text-align: start; }
.profile-chip:hover { background: rgba(255, 255, 255, .035); }
.profile-avatar, .avatar-btn { width: 34px; height: 34px; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; border-radius: 11px; background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 45%, var(--accent-2))); color: #08111a; font-weight: 800; font-size: 13px; letter-spacing: .02em; box-shadow: 0 5px 18px color-mix(in srgb, var(--accent) 24%, transparent); }
.profile-avatar.big { width: 58px; height: 58px; border-radius: 18px; font-size: 20px; }
.profile-meta { flex: 1; min-width: 0; }
.profile-meta b { display: block; font-size: 11.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-meta em { display: block; font-style: normal; color: var(--faint); font-size: 9.5px; margin-top: 2px; }
.profile-chip > svg { width: 13px; height: 13px; color: var(--faint); }
.main { flex: 1; min-width: 0; }
.topbar { height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 clamp(20px, 3vw, 38px); border-bottom: 1px solid var(--line); background: rgba(6, 9, 16, .42); backdrop-filter: blur(18px); position: sticky; top: 0; z-index: 15; }
.topbar-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.topbar-title { min-width: 0; }
.topbar-title .eyebrow { font-size: 8.5px; letter-spacing: .16em; }
.topbar-title h2 { font-size: 16px; font-weight: 500; letter-spacing: -.02em; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.mobile-menu { display: none; }
.search-pill { display: flex; align-items: center; gap: 9px; width: clamp(190px, 22vw, 300px); height: 38px; padding: 0 11px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255, 255, 255, .03); color: var(--faint); font-size: 11px; text-align: start; transition: border-color .2s, background .2s; }
.search-pill:hover { border-color: var(--line-strong); background: rgba(255, 255, 255, .05); }
.search-pill svg { width: 14px; height: 14px; flex: 0 0 auto; }
.search-pill span { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-pill kbd { font-family: var(--font); font-size: 8.5px; color: var(--faint); border: 1px solid var(--line); border-radius: 5px; padding: 2px 4px; }
.theme-switcher { position: relative; }
.theme-pop { position: absolute; top: calc(100% + 10px); inset-inline-end: 0; width: 308px; display: none; border: 1px solid var(--line-strong); border-radius: 18px; background: rgba(13, 18, 30, .96); box-shadow: var(--shadow); backdrop-filter: blur(26px); padding: 16px; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .22s var(--ease); z-index: 40; }
.theme-pop.open { display: block; opacity: 1; visibility: visible; transform: none; }
[dir="rtl"] .theme-pop { inset-inline-end: auto; inset-inline-start: 0; }
.theme-pop-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.theme-pop-head span { font-size: 12px; font-weight: 600; }
.theme-pop-head em { font-style: normal; font-size: 8.5px; letter-spacing: .12em; color: var(--faint); }
.theme-pop-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.theme-option { display: flex; align-items: center; gap: 9px; padding: 8px; border: 1px solid var(--line); border-radius: 11px; background: transparent; color: var(--text-soft); font-size: 11px; text-align: start; }
.theme-option:hover { background: rgba(255, 255, 255, .04); }
.theme-option.active { border-color: var(--accent); color: var(--text); }
.theme-swatch { width: 20px; height: 20px; border-radius: 7px; flex: 0 0 auto; }
.theme-option[data-season="spring"] .theme-swatch { background: linear-gradient(135deg, #a9d9bd, #f3b1a4); }
.theme-option[data-season="summer"] .theme-swatch { background: linear-gradient(135deg, #76d8ea, #ffd07c); }
.theme-option[data-season="autumn"] .theme-swatch { background: linear-gradient(135deg, #ffbd7f, #ef8a6d); }
.theme-option[data-season="winter"] .theme-swatch { background: linear-gradient(135deg, #adc8ff, #d9efff); }
.notify-dot { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--accent-2); top: 9px; inset-inline-end: 9px; box-shadow: 0 0 0 2px #0b101b; }
.avatar-btn { border: 0; width: 38px; height: 38px; border-radius: 12px; }
.install-top { display: none; }
.views { width: 100%; max-width: 1600px; margin: 0 auto; padding: 30px clamp(20px, 3vw, 38px) 70px; }
.view { display: none; animation: viewIn .45s var(--ease) both; }
.view.active { display: block; }
@keyframes viewIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin: 4px 0 27px; }
.page-head h1 { font-size: clamp(30px, 3.2vw, 43px); line-height: 1.06; letter-spacing: -.045em; font-weight: 500; margin: 8px 0 8px; }
.page-head p { color: var(--muted); font-size: 13px; max-width: 540px; line-height: 1.6; }
.head-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.segmented { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .03); gap: 2px; }
.segmented button { min-height: 34px; padding: 0 13px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-size: 11.5px; font-weight: 500; transition: .2s; white-space: nowrap; }
.segmented button:hover { color: var(--text-soft); }
.segmented button.active { background: rgba(255, 255, 255, .1); color: var(--text); box-shadow: 0 2px 8px rgba(0, 0, 0, .18); }
.segmented.small button { min-height: 28px; padding: 0 10px; font-size: 10.5px; border-radius: 7px; }

/* ---------- dashboard ---------- */
.dash-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.span-12 { grid-column: span 12; }
.span-8 { grid-column: span 8; }
.span-5 { grid-column: span 5; }
.span-4 { grid-column: span 4; }
.span-3 { grid-column: span 3; }
.calendar-hero { grid-column: span 8; }
.clock-card { grid-column: span 4; }
.weather-card { grid-column: span 5; display: flex; flex-direction: column; }
.weather-card .weather-mini-body { flex: 1; }
.agenda-card { grid-column: span 4; }
.moon-card { grid-column: span 3; }
.calendar-hero .card-head, .clock-card .card-head { padding-bottom: 8px; }
.cal-nav { display: flex; gap: 5px; }
.calendar-hero h3 { font-size: 21px; }
.hero-calendar-body { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(190px, .78fr); gap: 16px; padding: 12px 20px 20px; }
.mini-cal { padding: 0 4px; }
.weekday-row { display: grid; grid-template-columns: repeat(7, 1fr); margin-bottom: 3px; }
.weekday-row span { text-align: center; color: var(--faint); font-size: 9.5px; font-weight: 600; letter-spacing: .04em; padding: 7px 0; text-transform: uppercase; }
.mini-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.mini-day { position: relative; border: 0; border-radius: 9px; min-height: 47px; padding: 5px 3px 4px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; background: transparent; color: var(--text-soft); transition: background .16s, color .16s; }
.mini-day:hover { background: rgba(255, 255, 255, .06); }
.mini-day .num { font-size: 13.5px; font-weight: 550; line-height: 1; font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; letter-spacing: -.01em; }
.mini-day .sub { font-size: 8px; color: var(--faint); line-height: 1; }
.mini-day.out { color: rgba(255, 255, 255, .22); }
.mini-day.out .sub { color: rgba(255, 255, 255, .13); }
.mini-day.today .num { width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--accent); color: #07101a; font-weight: 700; }
.mini-day.selected { background: color-mix(in srgb, var(--accent) 12%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 55%, transparent); }
.mini-day.selected .num { color: var(--accent); }
.mini-day.today.selected .num { color: #07101a; }
.mini-day.holiday:not(.today) .num { color: #ff9a9a; }
.mini-day .ev-dots { display: flex; gap: 2px; height: 3px; align-items: center; }
.mini-day .ev-dots i { width: 3px; height: 3px; border-radius: 50%; background: var(--dot, var(--accent)); }
.mini-day.selected .ev-dots i { box-shadow: 0 0 4px var(--dot, var(--accent)); }
.day-peek { position: relative; border: 1px solid var(--line); border-radius: 18px; padding: 16px; background: linear-gradient(160deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .01)); display: flex; flex-direction: column; gap: 11px; }
.peek-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.peek-top h4 { font-size: 17px; font-weight: 600; margin: 4px 0 2px; }
.peek-top p { color: var(--muted); font-size: 10.5px; }
.peek-day { font-size: 42px; line-height: .9; font-weight: 300; letter-spacing: -.05em; color: var(--accent); font-variant-numeric: tabular-nums; }
.triple-dates { display: flex; flex-wrap: wrap; gap: 5px; }
.triple-dates span { display: inline-flex; gap: 4px; align-items: center; padding: 4px 7px; border-radius: 6px; background: rgba(255, 255, 255, .045); color: var(--muted); font-size: 8.5px; white-space: nowrap; }
.triple-dates b { color: var(--text-soft); font-weight: 500; }
.triple-dates.vertical { flex-direction: column; align-items: stretch; gap: 6px; }
.triple-dates.vertical span { justify-content: space-between; padding: 8px 10px; font-size: 10px; }
.peek-holiday { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 7px; background: rgba(255, 124, 136, .09); border: 1px solid rgba(255, 124, 136, .14); color: #ffaeb4; font-size: 9px; }
.peek-holiday::before { content: "✦"; font-size: 9px; }
.peek-events { display: flex; flex-direction: column; gap: 6px; min-height: 0; max-height: 122px; overflow-y: auto; }
.peek-event { display: flex; align-items: center; gap: 7px; border: 0; background: transparent; text-align: start; padding: 3px 0; color: var(--text-soft); }
.peek-event:hover { color: var(--text); }
.peek-event i { width: 3px; height: 22px; border-radius: 3px; background: var(--ev); flex: 0 0 auto; }
.peek-event b { display: block; font-size: 10.5px; font-weight: 500; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 135px; }
.peek-event em { display: block; font-style: normal; color: var(--faint); font-size: 8.5px; }
.peek-empty { display: flex; align-items: center; justify-content: center; min-height: 54px; text-align: center; color: var(--faint); font-size: 9.5px; border: 1px dashed var(--line); border-radius: 9px; padding: 8px; }
.peek-add { display: flex; align-items: center; justify-content: center; gap: 5px; margin-top: auto; border: 1px dashed var(--line-strong); border-radius: 8px; background: transparent; min-height: 30px; color: var(--muted); font-size: 9.5px; }
.peek-add:hover { color: var(--accent); border-color: var(--accent); }
.peek-add svg { width: 11px; height: 11px; }

/* ---------- clock ---------- */
.clock-card { display: flex; flex-direction: column; }
.clock-card .card-head { align-items: flex-start; }
.analog-stage { position: relative; display: flex; align-items: center; justify-content: center; flex: 1; min-height: 210px; margin-top: -4px; }
.analog-svg { width: min(236px, 74%); height: auto; overflow: visible; filter: drop-shadow(0 16px 34px rgba(0, 0, 0, .35)); z-index: 2; }
.clock-halo { position: absolute; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 16%, transparent), transparent 66%); filter: blur(18px); }
.digital-time { text-align: center; font-size: clamp(32px, 3.1vw, 44px); font-weight: 300; letter-spacing: -.04em; font-variant-numeric: tabular-nums; line-height: 1; color: var(--text); direction: ltr; }
[dir="rtl"] .digital-time { direction: ltr; }
.digital-date { text-align: center; color: var(--muted); font-size: 10.5px; margin-top: 7px; }
.clock-zone { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 14px 26px 22px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--faint); font-size: 9px; }
.clock-zone svg { width: 12px; height: 12px; }
.clock-zone b { color: var(--muted); font-weight: 500; margin-inline-start: auto; }
.dial-ring { fill: none; stroke: rgba(255, 255, 255, .1); }
.dial-ring.inner { stroke: rgba(255, 255, 255, .05); }
.dial-face { fill: rgba(8, 12, 20, .64); stroke: rgba(255, 255, 255, .08); }
.tick { stroke: rgba(255, 255, 255, .3); stroke-width: 1.2; stroke-linecap: round; }
.tick.major { stroke: var(--accent); stroke-width: 2; opacity: .8; }
.hand { stroke: var(--text); stroke-linecap: round; }
.hand.hour { stroke-width: 5; }
.hand.minute { stroke-width: 3.3; }
.hand-second { stroke: var(--accent-2); stroke-width: 1.4; stroke-linecap: round; filter: drop-shadow(0 0 3px color-mix(in srgb, var(--accent-2) 70%, transparent)); }
.hand-second-tail { stroke: var(--accent-2); stroke-width: 2.2; }
.center-cap { fill: var(--accent-2); stroke: #0a0f18; stroke-width: 2; }
.center-core { fill: #0a0f18; }
.clock-brand-text { fill: var(--accent); font-family: var(--font); font-size: 5.5px; letter-spacing: .22em; font-weight: 600; text-anchor: middle; }
.clock-sub-text { fill: rgba(255, 255, 255, .42); font-family: var(--font); font-size: 4px; letter-spacing: .16em; text-anchor: middle; }
.clock-number { fill: rgba(255, 255, 255, .52); font-family: var(--font); font-size: 9px; font-weight: 500; text-anchor: middle; dominant-baseline: middle; }
.clock-number.major { fill: var(--text-soft); font-size: 10px; }
.clock-mini-hand { stroke: var(--text-soft); stroke-width: 4; stroke-linecap: round; }
.clock-mini-second { stroke: var(--accent-2); stroke-width: 1; }

/* ---------- weather mini ---------- */
.weather-mini-body { display: flex; align-items: center; gap: 18px; padding: 17px 25px 25px; }
.weather-art { width: 108px; height: 108px; flex: 0 0 auto; position: relative; display: flex; align-items: center; justify-content: center; }
.weather-temp { font-size: 58px; line-height: .9; font-weight: 300; letter-spacing: -.06em; white-space: nowrap; }
.weather-temp sup { font-size: 26px; vertical-align: top; position: relative; top: 7px; margin-inline-start: 1px; color: var(--accent); }
.weather-temp em { display: block; font-style: normal; font-size: 10px; color: var(--muted); letter-spacing: 0; font-weight: 400; margin-top: 7px; }
.weather-stats { display: flex; flex-direction: column; gap: 7px; margin-inline-start: auto; }
.weather-stats span { display: flex; align-items: center; gap: 6px; color: var(--faint); font-size: 9px; white-space: nowrap; }
.weather-stats svg { width: 12px; height: 12px; color: var(--accent); opacity: .8; }
.weather-stats b { color: var(--text-soft); font-weight: 500; }
.weather-art .sun-orb { position: absolute; width: 50px; height: 50px; border-radius: 50%; background: radial-gradient(circle at 38% 32%, #fff5ce, #ffd06e 58%, #f1a14f); box-shadow: 0 0 34px rgba(255, 199, 100, .5), 0 0 80px rgba(255, 180, 90, .2); }
.weather-art .cloud { position: absolute; width: 58px; height: 20px; border-radius: 20px; background: rgba(238, 246, 255, .94); box-shadow: 0 8px 18px rgba(0, 0, 0, .12); }
.weather-art .cloud::before, .weather-art .cloud::after { content: ""; position: absolute; border-radius: 50%; background: inherit; }
.weather-art .cloud::before { width: 26px; height: 26px; left: 9px; top: -13px; }
.weather-art .cloud::after { width: 20px; height: 20px; left: 29px; top: -9px; }
.weather-art .cloud.b { width: 42px; height: 15px; right: 0; top: 22px; opacity: .55; transform: scale(.9); }
.weather-art .rain-drops { position: absolute; inset: 48% 10% 10%; background-image: linear-gradient(180deg, rgba(168, 198, 240, .85) 40%, transparent 40%); background-size: 6px 13px; opacity: .6; transform: skewX(-13deg); }
.weather-art .snow-flakes { position: absolute; inset: 48% 10% 10%; background-image: radial-gradient(circle, #fff 1.5px, transparent 2px); background-size: 12px 14px; opacity: .65; }
.weather-art .moon-orb { position: absolute; width: 44px; height: 44px; border-radius: 50%; background: #e7efff; box-shadow: inset -12px -4px 0 #a8b6d8, 0 0 32px rgba(200, 220, 255, .4); }
.weather-art .scene-glow { position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, var(--glow-a), transparent 65%); filter: blur(8px); }

/* ---------- agenda / moon ---------- */
.agenda-list { display: flex; flex-direction: column; gap: 4px; padding: 14px 22px 8px; }
.agenda-item { display: flex; align-items: center; gap: 11px; padding: 9px 4px; border-radius: 9px; border: 0; background: transparent; color: var(--text); text-align: start; }
.agenda-item:hover { background: rgba(255, 255, 255, .035); }
.agenda-date { width: 35px; flex: 0 0 auto; text-align: center; }
.agenda-date b { display: block; font-size: 18px; font-weight: 500; line-height: 1; }
.agenda-date em { display: block; font-style: normal; color: var(--faint); font-size: 7.5px; text-transform: uppercase; letter-spacing: .06em; margin-top: 3px; }
.agenda-divider { width: 1px; align-self: stretch; background: var(--line); flex: 0 0 auto; }
.agenda-info { min-width: 0; flex: 1; }
.agenda-info b { display: block; font-size: 11.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agenda-info em { display: block; color: var(--faint); font-style: normal; font-size: 9px; margin-top: 2px; }
.agenda-time { font-size: 9px; color: var(--accent); background: var(--accent-soft); padding: 3px 6px; border-radius: 5px; white-space: nowrap; }
.agenda-empty { padding: 20px 8px 12px; text-align: center; color: var(--faint); font-size: 10px; }
.agenda-empty b { display: block; color: var(--text-soft); font-weight: 500; margin-bottom: 4px; }
.card-foot-link { display: flex; align-items: center; justify-content: center; gap: 5px; border-top: 1px solid var(--line); padding: 11px; color: var(--muted); font-size: 9.5px; }
.card-foot-link:hover { color: var(--accent); }
.card-foot-link svg { width: 11px; height: 11px; }
.moon-card { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 22px 18px 18px; }
.moon-art { width: 80px; height: 80px; margin: 2px auto 10px; border-radius: 50%; position: relative; background: #e9f0ff; box-shadow: inset -18px -6px 0 #a8b7d9, 0 0 55px rgba(198, 220, 255, .25); overflow: hidden; transform: rotate(-18deg); }
.moon-art::before { content: ""; position: absolute; width: 15px; height: 15px; border-radius: 50%; background: rgba(140, 157, 190, .5); top: 23px; left: 22px; box-shadow: 24px 15px 0 -4px rgba(140, 157, 190, .4), 8px 34px 0 -5px rgba(140, 157, 190, .35); }
.moon-card h3 { font-size: 14px; font-weight: 600; margin: 3px 0 2px; }
.moon-card p { color: var(--faint); font-size: 9px; }
.moon-progress { width: 50%; height: 2px; border-radius: 4px; background: rgba(255, 255, 255, .08); margin: 13px 0 16px; overflow: hidden; }
.moon-progress i { display: block; height: 100%; width: 50%; border-radius: inherit; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.moon-card blockquote { font-family: Georgia, serif; font-style: italic; font-size: 11.5px; line-height: 1.55; color: var(--text-soft); margin: 0 0 10px; }
[dir="rtl"] .moon-card blockquote { font-family: var(--font-fa); font-style: normal; }
.quote-label { font-size: 7.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }

/* ---------- full calendar ---------- */
.calendar-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 20px; margin-bottom: 16px; border-radius: 18px; }
.cal-title-block { display: flex; align-items: center; gap: 14px; }
.cal-title-block h3 { font-size: 20px; font-weight: 500; letter-spacing: -.03em; line-height: 1.2; }
.cal-title-block p { color: var(--faint); font-size: 9.5px; margin-top: 2px; }
.toolbar-right { display: flex; align-items: center; gap: 20px; }
.switch-line { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 10.5px; cursor: pointer; user-select: none; }
.switch-line input { position: absolute; opacity: 0; pointer-events: none; }
.switch { width: 32px; height: 18px; border-radius: 20px; background: rgba(255, 255, 255, .12); position: relative; transition: background .2s; flex: 0 0 auto; }
.switch::after { content: ""; position: absolute; width: 14px; height: 14px; border-radius: 50%; background: #dfe7f5; top: 2px; inset-inline-start: 2px; transition: transform .2s var(--ease); }
.switch-line input:checked + .switch { background: color-mix(in srgb, var(--accent) 68%, #1a2436); }
.switch-line input:checked + .switch::after { transform: translateX(14px); background: #07101a; }
[dir="rtl"] .switch-line input:checked + .switch::after { transform: translateX(-14px); }
.calendar-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.full-calendar-card { padding: 13px 15px 12px; }
.full-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); }
.full-weekdays span { padding: 9px 6px; text-align: center; color: var(--faint); font-size: 9.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; }
.full-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.full-day { position: relative; min-height: 92px; border: 1px solid transparent; border-radius: 12px; padding: 7px 8px; background: rgba(255, 255, 255, .018); color: var(--text); text-align: start; transition: background .16s, border-color .16s; overflow: hidden; }
.full-day:hover { background: rgba(255, 255, 255, .045); border-color: var(--line); }
.full-day.out { background: transparent; color: rgba(255, 255, 255, .22); }
.full-day.today { border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: color-mix(in srgb, var(--accent) 7%, transparent); }
.full-day.selected { border-color: var(--accent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 55%, transparent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.full-day .fd-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 4px; }
.full-day .fd-num { font-size: 15px; font-weight: 500; line-height: 1.1; font-variant-numeric: tabular-nums; }
.full-day.today .fd-num { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; margin: -2px 0 0 -2px; border-radius: 50%; background: var(--accent); color: #07101a; font-weight: 700; }
[dir="rtl"] .full-day.today .fd-num { margin-right: -2px; margin-left: 0; }
.full-day .fd-alt { color: var(--faint); font-size: 7.5px; line-height: 1.3; text-align: end; }
.full-day.holiday .fd-num { color: #ff9ca3; }
.full-day .fd-holiday { margin-top: 4px; font-size: 7px; line-height: 1.2; color: #ff9ca3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.full-day .fd-events { display: flex; flex-direction: column; gap: 2px; margin-top: 5px; }
.fd-event { display: flex; align-items: center; gap: 3px; font-size: 7.5px; line-height: 1.3; color: var(--text-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fd-event i { width: 3px; height: 3px; border-radius: 50%; background: var(--ev); flex: 0 0 auto; }
.fd-more { color: var(--faint); font-size: 7px; }
.calendar-legend { display: flex; align-items: center; gap: 18px; padding: 12px 6px 2px; border-top: 1px solid var(--line); margin-top: 7px; }
.calendar-legend span { display: flex; align-items: center; gap: 5px; color: var(--faint); font-size: 8.5px; }
.dot { width: 5px; height: 5px; border-radius: 50%; display: inline-block; }
.dot.today { background: var(--accent); box-shadow: 0 0 7px var(--accent); }
.dot.holiday { background: #ff9ca3; }
.dot.event { background: var(--accent-2); }
.day-panel { padding: 22px; position: sticky; top: 100px; }
.day-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.day-panel-head h3 { font-size: 18px; font-weight: 600; margin: 5px 0 1px; }
.day-panel-head p { color: var(--muted); font-size: 10.5px; }
.panel-day { font-size: 44px; font-weight: 300; letter-spacing: -.06em; line-height: .9; color: var(--accent); }
.panel-events { display: flex; flex-direction: column; gap: 7px; margin: 15px 0; min-height: 74px; }
.panel-event { display: flex; align-items: flex-start; gap: 9px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, .022); text-align: start; position: relative; }
.panel-event:hover { border-color: var(--line-strong); background: rgba(255, 255, 255, .045); }
.panel-event::before { content: ""; width: 3px; align-self: stretch; border-radius: 3px; background: var(--ev); flex: 0 0 auto; }
.panel-event .pe-body { min-width: 0; flex: 1; }
.panel-event b { display: block; font-size: 10.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.panel-event em { display: block; color: var(--faint); font-style: normal; font-size: 8.5px; margin-top: 2px; }
.panel-event .pe-time { color: var(--accent); font-size: 8.5px; white-space: nowrap; }
.panel-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 70px; text-align: center; border: 1px dashed var(--line); border-radius: 10px; color: var(--faint); font-size: 9px; padding: 10px; }
.panel-empty b { color: var(--text-soft); font-size: 10.5px; font-weight: 500; }
.panel-layers { border-top: 1px solid var(--line); padding-top: 15px; margin-top: 16px; }
.layer-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; color: var(--muted); font-size: 10px; }
.swatch { width: 8px; height: 8px; border-radius: 3px; display: inline-block; }
.swatch.jalaali { background: var(--accent); }
.swatch.gregorian { background: var(--accent-2); }
.swatch.hijri { background: var(--accent-3); }
.layer-dot { margin-inline-start: auto; font-size: 8.5px; color: var(--faint); }
.calendar-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.upcoming-panel, .agenda-panel { padding-bottom: 8px; }
.upcoming-list { padding: 9px 22px 8px; display: flex; flex-direction: column; gap: 2px; }
.upcoming-list .agenda-item { padding: 8px 4px; }
.agenda-full { padding: 10px 22px 14px; display: flex; flex-direction: column; gap: 12px; max-height: 250px; overflow-y: auto; }
.agenda-group-label { display: flex; align-items: center; gap: 8px; color: var(--faint); font-size: 8px; letter-spacing: .1em; text-transform: uppercase; margin: 3px 0 1px; }
.agenda-group-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- widgets ---------- */
.widgets-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.clock-preview-card { grid-column: span 2; }
.widget-preview-card { padding-bottom: 20px; }
.widget-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 22px 24px 0; }
.widget-card-top h3 { font-size: 16px; font-weight: 500; margin-top: 4px; }
.clock-variants { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 16px 24px 5px; }
.clock-variant { border: 1px solid var(--line); border-radius: 18px; padding: 14px 10px 11px; text-align: center; background: linear-gradient(160deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .008)); transition: border-color .2s, transform .2s; }
.clock-variant:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.clock-variant.active { border-color: var(--accent); }
.clock-variant .cv-face { display: flex; justify-content: center; }
.clock-variant svg { width: 118px; height: 118px; }
.clock-variant b { display: block; font-size: 10.5px; font-weight: 500; margin-top: 7px; }
.clock-variant em { display: block; font-style: normal; color: var(--faint); font-size: 8px; margin-top: 1px; }
.widget-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; padding: 14px 24px 0; margin-top: 12px; border-top: 1px solid var(--line); }
.control-row { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 10.5px; }
.chip-row { display: flex; gap: 4px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); border-radius: 7px; background: rgba(255, 255, 255, .03); color: var(--muted); min-height: 28px; padding: 0 9px; font-size: 9.5px; }
.chip.active { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.calendar-widget-demo { padding: 16px 24px 6px; }
.mini-widget { max-width: 330px; border: 1px solid var(--line); border-radius: 18px; padding: 13px; background: linear-gradient(160deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015)); }
.mini-widget-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.mini-widget-head b { font-size: 11px; font-weight: 500; }
.mini-widget-head span { color: var(--accent); font-size: 8px; }
.mini-widget .weekday-row span { padding: 4px 0; font-size: 7px; }
.mini-widget .mini-day { min-height: 31px; border-radius: 7px; }
.mini-widget .mini-day .num { font-size: 10px; }
.mini-widget .mini-day .sub { display: none; }
.mini-widget .mini-day.today .num { width: 18px; height: 18px; }
.mini-widget .mini-day.selected { background: var(--accent); color: #07101a; }
.mini-widget .mini-day.selected .num { color: #07101a; }
.weather-widget-preview { padding-bottom: 20px; }
.weather-widget-switch { display: flex; justify-content: flex-end; padding: 14px 24px 0; }
.weather-widget-stage { padding: 12px 24px 4px; min-height: 220px; display: flex; align-items: stretch; }
.weather-widget-stage .classic-weather-widget { flex: 1; border: 1px solid var(--line); border-radius: 18px; padding: 17px; background: linear-gradient(155deg, color-mix(in srgb, var(--accent) 16%, transparent), rgba(255, 255, 255, .025)); display: flex; flex-direction: column; justify-content: space-between; }
.classic-weather-widget .cw-top { display: flex; justify-content: space-between; align-items: flex-start; }
.classic-weather-widget h4 { font-size: 14px; font-weight: 500; }
.classic-weather-widget p { color: var(--muted); font-size: 9px; }
.classic-weather-widget .cw-temp { font-size: 52px; font-weight: 300; letter-spacing: -.06em; line-height: 1; }
.classic-weather-widget .cw-stats { display: flex; gap: 16px; color: var(--muted); font-size: 9px; }
.weather-widget-stage .scene-stage { flex: 1; min-height: 210px; border-radius: 18px; }
.install-card { grid-column: span 2; display: flex; flex-direction: column; padding-bottom: 22px; }
.install-head { padding: 24px 24px 14px; max-width: 520px; }
.install-head h3 { font-size: 24px; font-weight: 500; letter-spacing: -.03em; margin: 5px 0 6px; }
.install-head p { color: var(--muted); font-size: 11.5px; }
.platform-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; padding: 0 24px 16px; }
.platform { display: flex; flex-direction: column; gap: 3px; padding: 13px 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .022); transition: border-color .2s, background .2s; }
.platform:hover { border-color: var(--line-strong); background: rgba(255, 255, 255, .045); }
.platform svg { width: 20px; height: 20px; color: var(--accent); margin-bottom: 4px; }
.platform b { font-size: 10.5px; font-weight: 500; }
.platform span { color: var(--faint); font-size: 8px; }
.platform.accent { border-color: color-mix(in srgb, var(--accent) 32%, transparent); background: var(--accent-soft); }
.install-card > .btn { margin: 0 24px; width: calc(100% - 48px); }

/* ---------- weather page ---------- */
.weather-page-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.weather-hero { grid-column: span 8; min-height: 390px; padding: 26px 28px 20px; display: flex; flex-direction: column; background: linear-gradient(150deg, color-mix(in srgb, var(--accent) 15%, transparent), rgba(10, 15, 25, .76) 46%, rgba(10, 15, 25, .82)); }
.weather-hero-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; position: relative; z-index: 3; }
.weather-hero-top h2 { font-size: 23px; font-weight: 500; letter-spacing: -.03em; margin: 5px 0 3px; }
.weather-hero-top p { color: var(--muted); font-size: 11.5px; }
.weather-hero-main { position: relative; flex: 1; display: flex; align-items: center; gap: 10px; z-index: 3; }
.weather-hero-art { width: 285px; height: 235px; flex: 0 0 285px; margin-inline-start: -15px; position: relative; }
.weather-hero-temp { display: flex; align-items: flex-start; font-size: clamp(74px, 8vw, 112px); line-height: .85; font-weight: 250; letter-spacing: -.08em; }
.weather-hero-temp sup { font-size: 36px; margin-top: 8px; color: var(--accent); font-weight: 300; }
.weather-hero-temp em { font-style: normal; font-size: 17px; align-self: flex-end; margin: 0 0 12px 8px; color: var(--muted); letter-spacing: 0; }
.weather-hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 22px; margin-inline-start: auto; align-self: flex-end; padding-bottom: 9px; }
.weather-hero-stats span { display: flex; flex-direction: column; gap: 1px; min-width: 62px; }
.weather-hero-stats svg { width: 15px; height: 15px; color: var(--accent); margin-bottom: 3px; opacity: .85; }
.weather-hero-stats b { font-size: 13px; font-weight: 500; }
.weather-hero-stats em { font-style: normal; color: var(--faint); font-size: 8px; }
.sun-track { display: flex; align-items: center; gap: 10px; color: var(--faint); font-size: 8.5px; position: relative; z-index: 3; margin-top: 10px; }
.sun-line { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .18), transparent); position: relative; }
.sun-line i { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 12px var(--accent-2); top: -2.5px; left: 50%; transform: translateX(-50%); }
.weather-source { display: flex; align-items: center; gap: 6px; color: var(--faint); font-size: 8px; margin-top: 14px; z-index: 3; }
.weather-source svg { width: 11px; height: 11px; }
.hourly-card { grid-column: span 4; }
.hourly-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 14px 18px 22px; }
.hour-cell { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px; border-radius: 11px; }
.hour-cell.now { background: var(--accent-soft); }
.hour-cell span { color: var(--faint); font-size: 8px; white-space: nowrap; }
.hour-cell.now span { color: var(--accent); }
.hour-cell b { font-size: 13px; font-weight: 500; }
.hour-icon { width: 26px; height: 26px; color: var(--accent); display: flex; align-items: center; justify-content: center; }
.hour-icon svg { width: 20px; height: 20px; }
.forecast-card { grid-column: span 7; }
.forecast-list { padding: 12px 22px 18px; display: flex; flex-direction: column; gap: 2px; }
.forecast-row { display: flex; align-items: center; gap: 12px; padding: 8px 4px; border-bottom: 1px solid rgba(255, 255, 255, .04); }
.forecast-row:last-child { border-bottom: 0; }
.forecast-row .fr-day { width: 82px; color: var(--text-soft); font-size: 10.5px; }
.forecast-row .fr-icon { width: 24px; color: var(--accent); }
.forecast-row .fr-icon svg { width: 18px; height: 18px; }
.forecast-row .fr-desc { flex: 1; color: var(--faint); font-size: 9px; }
.forecast-row .fr-range { display: flex; align-items: center; gap: 7px; font-size: 9.5px; color: var(--muted); }
.forecast-row .fr-range b { color: var(--text-soft); font-weight: 500; }
.forecast-row .fr-bar { width: 66px; height: 3px; border-radius: 4px; background: rgba(255, 255, 255, .08); position: relative; overflow: hidden; }
.forecast-row .fr-bar i { position: absolute; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.weather-details-card { grid-column: span 5; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px 22px 22px; }
.detail-cell { padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .02); }
.detail-cell svg { width: 15px; height: 15px; color: var(--accent); margin-bottom: 5px; }
.detail-cell b { display: block; font-size: 14px; font-weight: 500; }
.detail-cell span { color: var(--faint); font-size: 8.5px; }

/* ---------- connections ---------- */
.connections-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.provider-card { padding: 22px 22px 18px; display: flex; flex-direction: column; min-height: 210px; }
.provider-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.provider-icon { width: 38px; height: 38px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 17px; letter-spacing: -.04em; }
.provider-icon.google { background: #fff; color: #4285f4; font-family: Arial, sans-serif; box-shadow: 0 5px 16px rgba(0,0,0,.25); }
.provider-icon.outlook { background: #0f6cbd; color: #fff; font-family: Arial, sans-serif; }
.provider-icon.apple { background: #eceff5; color: #0b0d12; font-size: 20px; position: relative; }
.provider-icon.apple::before { content: ""; width: 15px; height: 18px; border-radius: 50% 50% 46% 46%; background: #0b0d12; }
.provider-icon.apple::after { content: ""; position: absolute; width: 5px; height: 7px; background: #0b0d12; border-radius: 60% 60% 0 0; top: 11px; right: 9px; transform: rotate(28deg); }
.provider-card h3 { font-size: 16px; font-weight: 500; letter-spacing: -.02em; }
.provider-card p { color: var(--muted); font-size: 10.5px; line-height: 1.6; margin: 6px 0 14px; min-height: 34px; }
.provider-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.provider-foot { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--faint); font-size: 8.5px; display: flex; justify-content: space-between; gap: 8px; }
.connections-lower { display: grid; grid-template-columns: 1.35fr .65fr; gap: 16px; margin-top: 16px; }
.ics-card { display: flex; align-items: stretch; gap: 0; padding: 0; min-height: 210px; }
.ics-illustration { width: 190px; flex: 0 0 190px; position: relative; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 66%), linear-gradient(140deg, rgba(255, 255, 255, .03), transparent); border-inline-end: 1px solid var(--line); color: var(--accent); }
.ics-illustration svg { width: 66px; height: 66px; stroke-width: 1.1; opacity: .7; }
.ics-illustration span { position: absolute; bottom: 30px; font-size: 10px; letter-spacing: .18em; color: var(--text-soft); background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent); padding: 4px 10px; border-radius: 6px; }
.ics-copy { padding: 24px 26px; display: flex; flex-direction: column; justify-content: center; }
.ics-copy h3 { font-size: 19px; font-weight: 500; margin: 5px 0 7px; }
.ics-copy p { color: var(--muted); font-size: 10.5px; line-height: 1.65; max-width: 530px; }
.ics-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.connection-note { padding: 24px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.connection-note > svg { width: 26px; height: 26px; color: var(--accent); margin-bottom: 11px; }
.connection-note h3 { font-size: 16px; font-weight: 500; }
.connection-note p { color: var(--muted); font-size: 10px; line-height: 1.65; margin-top: 6px; }
.note-badges { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 14px; }
.note-badges span { display: inline-flex; align-items: center; gap: 3px; font-size: 8px; color: var(--faint); border: 1px solid var(--line); border-radius: 20px; padding: 3px 7px; }
.note-badges svg { width: 8px; height: 8px; color: var(--ok); }

/* ---------- reminders ---------- */
.reminders-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.reminder-form-card { padding-bottom: 20px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; padding: 16px 24px 0; }
.form-grid .full { grid-column: 1 / -1; }
.form-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px; margin-top: 3px; }
.notification-permission-card { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 28px 26px 22px; }
.permission-orb { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 13px; box-shadow: 0 0 40px color-mix(in srgb, var(--accent) 12%, transparent); }
.permission-orb svg { width: 26px; height: 26px; }
.notification-permission-card h3 { font-size: 18px; font-weight: 500; }
.notification-permission-card p { color: var(--muted); font-size: 10.5px; line-height: 1.6; max-width: 280px; margin: 6px 0 14px; }
.permission-status { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 20px; background: rgba(255, 255, 255, .04); color: var(--faint); font-size: 9px; margin-bottom: 14px; }
.permission-status i { width: 5px; height: 5px; border-radius: 50%; background: var(--faint); }
.permission-status.on { color: var(--ok); background: rgba(125, 226, 184, .08); }
.permission-status.on i { background: var(--ok); box-shadow: 0 0 6px var(--ok); }
.permission-note { display: inline-flex; align-items: center; gap: 5px; color: var(--faint); font-size: 8px; margin-top: 12px; }
.permission-note svg { width: 10px; height: 10px; }
.reminders-list-card { grid-column: 1 / -1; }
.reminders-list { display: flex; flex-direction: column; padding: 10px 22px 18px; gap: 4px; }
.reminder-row { display: flex; align-items: center; gap: 13px; padding: 11px 8px; border-bottom: 1px solid rgba(255, 255, 255, .04); }
.reminder-row:last-child { border-bottom: 0; }
.reminder-toggle { width: 38px; height: 22px; border-radius: 20px; background: rgba(255, 255, 255, .12); border: 0; position: relative; flex: 0 0 auto; }
.reminder-toggle::after { content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%; background: #dfe7f5; top: 3px; inset-inline-start: 3px; transition: .2s; }
.reminder-row.on .reminder-toggle { background: var(--accent); }
.reminder-row.on .reminder-toggle::after { transform: translateX(16px); background: #07101a; }
[dir="rtl"] .reminder-row.on .reminder-toggle::after { transform: translateX(-16px); }
.reminder-icon { width: 35px; height: 35px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.reminder-icon svg { width: 16px; height: 16px; }
.reminder-info { flex: 1; min-width: 0; }
.reminder-info b { display: block; font-size: 11.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reminder-info em { display: block; color: var(--faint); font-style: normal; font-size: 9px; margin-top: 2px; }
.reminder-when { text-align: end; }
.reminder-when b { display: block; color: var(--text-soft); font-size: 10px; font-weight: 500; }
.reminder-when em { display: block; color: var(--faint); font-style: normal; font-size: 8px; margin-top: 2px; }
.reminder-delete { border: 0; background: transparent; color: var(--faint); padding: 5px; border-radius: 7px; }
.reminder-delete:hover { color: var(--danger); background: rgba(255, 124, 136, .08); }
.reminder-delete svg { width: 14px; height: 14px; }
.reminders-empty { padding: 30px; text-align: center; color: var(--faint); font-size: 11px; }
.reminders-empty b { display: block; color: var(--text-soft); font-size: 13px; font-weight: 500; margin-bottom: 4px; }

/* ---------- settings ---------- */
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.settings-profile, .settings-season, .settings-region, .settings-data { padding-bottom: 20px; }
.settings-profile-head { display: flex; align-items: center; gap: 13px; padding: 24px 24px 17px; }
.settings-profile-head h3 { font-size: 19px; font-weight: 500; margin-top: 3px; }
.settings-profile-head p { color: var(--faint); font-size: 9.5px; margin-top: 1px; }
.settings-profile .form-grid, .settings-region .form-grid { padding-top: 0; }
.settings-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 24px 0; margin-top: 11px; }
.settings-row > span { display: flex; flex-direction: column; gap: 2px; }
.settings-row b { font-size: 11px; font-weight: 500; }
.settings-row em { font-style: normal; color: var(--faint); font-size: 8.5px; }
.settings-value { color: var(--muted); font-size: 10px; }
.settings-profile > .btn { margin: 13px 24px 0; }
.season-grid.compact { padding: 0 24px; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 13px; }
.season-grid.compact .season-art { height: 59px; }
.season-grid.compact .season-card-copy { padding: 8px 9px 9px; }
.season-grid.compact .season-card-copy b { font-size: 10.5px; }
.season-grid.compact .season-card-copy em { display: none; }
.setting-toggles { display: flex; flex-direction: column; gap: 0; padding: 0 24px; border-top: 1px solid var(--line); margin-top: 4px; }
.setting-toggles .switch-line { justify-content: space-between; width: 100%; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, .04); font-size: 10.5px; }
.setting-toggles .switch-line:last-child { border-bottom: 0; }
.setting-toggles .switch-line > span:first-child { flex: 1; }
.setting-toggles .switch { order: 2; }
.settings-note { color: var(--muted); font-size: 10px; line-height: 1.6; padding: 12px 24px 0; }
.data-actions { display: flex; flex-wrap: wrap; gap: 7px; padding: 14px 24px 0; }
.about-box { display: flex; align-items: center; gap: 10px; margin: 16px 24px 0; padding-top: 14px; border-top: 1px solid var(--line); }
.about-box img { width: 32px; height: 32px; opacity: .9; }
.about-box b { font-size: 10.5px; font-weight: 500; }
.about-box b span { color: var(--faint); font-weight: 400; margin-inline-start: 4px; }
.about-box p { color: var(--faint); font-size: 8px; margin-top: 2px; }

/* ---------- modal / toast / forms ---------- */
.modal-root { position: fixed; inset: 0; z-index: 120; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(3, 5, 10, .7); backdrop-filter: blur(10px); overflow-y: auto; }
.modal-sheet { width: min(560px, 100%); max-height: min(90vh, 820px); overflow-y: auto; border: 1px solid var(--line-strong); border-radius: 26px; background: linear-gradient(160deg, #131a2a, #090d16); box-shadow: 0 40px 100px rgba(0, 0, 0, .55); animation: sheetIn .35s var(--ease) both; }
.modal-sheet.wide { width: min(720px, 100%); }
@keyframes sheetIn { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; padding: 23px 25px 0; }
.modal-head h3 { font-size: 22px; font-weight: 500; letter-spacing: -.03em; margin-top: 5px; }
.modal-head p { color: var(--muted); font-size: 10.5px; margin-top: 4px; }
.modal-body { padding: 18px 25px 24px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 0 25px 23px; }
.modal-form .form-grid { padding: 0; }
.modal-form .field.full { grid-column: 1 / -1; }
.date-selects { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
.date-selects select { min-height: 42px; }
.color-row { display: flex; gap: 7px; flex-wrap: wrap; }
.color-dot { width: 27px; height: 27px; border-radius: 50%; border: 2px solid transparent; background: var(--c); padding: 0; }
.color-dot.active { border-color: #fff; box-shadow: 0 0 0 2px rgba(0, 0, 0, .35); }
.cal-tabs { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, .025); width: fit-content; margin-bottom: 10px; }
.cal-tabs button { border: 0; border-radius: 7px; background: transparent; color: var(--muted); font-size: 10px; padding: 5px 9px; }
.cal-tabs button.active { background: rgba(255, 255, 255, .1); color: var(--text); }
.modal-event-preview { display: flex; align-items: center; gap: 11px; padding: 12px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255, 255, 255, .025); margin-bottom: 13px; }
.modal-event-preview .mep-icon { width: 38px; height: 38px; border-radius: 11px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.modal-event-preview b { display: block; font-size: 12px; font-weight: 500; }
.modal-event-preview em { display: block; color: var(--muted); font-style: normal; font-size: 9.5px; margin-top: 2px; }
.toast-stack { position: fixed; z-index: 150; bottom: 22px; inset-inline-end: 22px; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 9px; padding: 11px 14px; border-radius: 13px; border: 1px solid var(--line-strong); background: rgba(16, 22, 35, .95); box-shadow: var(--shadow); color: var(--text-soft); font-size: 11.5px; backdrop-filter: blur(18px); animation: toastIn .35s var(--ease) both; pointer-events: auto; max-width: 330px; }
.toast svg { width: 15px; height: 15px; color: var(--ok); flex: 0 0 auto; }
.toast.error svg { color: var(--danger); }
.toast.leaving { animation: toastOut .3s var(--ease) both; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(8px); } }
.alarm-overlay { position: fixed; inset: 0; z-index: 160; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(3, 5, 10, .78); backdrop-filter: blur(14px); }
.alarm-card { width: min(420px, 100%); border: 1px solid color-mix(in srgb, var(--accent) 34%, transparent); border-radius: 26px; background: linear-gradient(160deg, #182237, #090d16); box-shadow: 0 40px 100px rgba(0, 0, 0, .6), 0 0 100px var(--glow-a); padding: 32px; text-align: center; animation: sheetIn .35s var(--ease) both; }
.alarm-bell { width: 70px; height: 70px; margin: 0 auto 16px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; animation: alarmShake 1s infinite; }
.alarm-bell svg { width: 30px; height: 30px; }
@keyframes alarmShake { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(9deg); } 40% { transform: rotate(-8deg); } 60% { transform: rotate(5deg); } 80% { transform: rotate(-4deg); } }
.alarm-card h3 { font-size: 23px; font-weight: 500; letter-spacing: -.03em; }
.alarm-card p { color: var(--muted); font-size: 12px; margin: 6px 0 20px; }
.alarm-actions { display: flex; gap: 7px; justify-content: center; }
.search-results { display: flex; flex-direction: column; gap: 4px; min-height: 70px; }
.search-result { display: flex; align-items: center; gap: 11px; padding: 10px 11px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255, 255, 255, .022); text-align: start; }
.search-result:hover { background: rgba(255, 255, 255, .05); border-color: var(--line-strong); }
.search-result .sr-date { width: 38px; text-align: center; color: var(--accent); font-size: 16px; font-weight: 500; line-height: 1; flex: 0 0 auto; }
.search-result .sr-date em { display: block; color: var(--faint); font-style: normal; font-size: 7px; text-transform: uppercase; margin-top: 3px; }
.search-result .sr-body { min-width: 0; flex: 1; }
.search-result b { display: block; font-size: 11.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-result em { display: block; color: var(--faint); font-style: normal; font-size: 9px; margin-top: 2px; }
.search-empty { text-align: center; padding: 24px; color: var(--faint); font-size: 11px; }

/* ---------- 3D weather scene ---------- */
.scene-stage { position: relative; overflow: hidden; perspective: 900px; border-radius: inherit; min-height: 220px; background: linear-gradient(180deg, #1c3a5e, #6d9ac3 46%, #e5c9ae 100%); }
.scene-stage[data-weather="night"] { background: linear-gradient(180deg, #060d20, #14264b 52%, #5b5478 100%); }
.scene-stage[data-weather="rain"], .scene-stage[data-weather="storm"] { background: linear-gradient(180deg, #273646, #5a6d80 55%, #91a0ae 100%); }
.scene-stage[data-weather="snow"] { background: linear-gradient(180deg, #6c87a6, #b9cad9 55%, #eef3f7 100%); }
.scene-stage[data-weather="cloud"] { background: linear-gradient(180deg, #3d5268, #7d8fa2 55%, #b9b6ad 100%); }
.scene-sky { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .35s ease-out; }
.scene-sun { position: absolute; width: 70px; height: 70px; border-radius: 50%; background: radial-gradient(circle at 38% 32%, #fff8d6, #ffd476 55%, #ffad55); box-shadow: 0 0 50px rgba(255, 210, 120, .55), 0 0 120px rgba(255, 190, 100, .3); top: 17%; left: 18%; transform: translateZ(20px); z-index: 2; }
.scene-sun::after { content: ""; position: absolute; inset: -28px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 220, 150, .2), transparent 65%); }
.scene-moon { position: absolute; width: 56px; height: 56px; border-radius: 50%; background: #eaf2ff; box-shadow: inset -15px -4px 0 #a4b7db, 0 0 42px rgba(200, 225, 255, .5); top: 14%; left: 19%; transform: translateZ(20px); z-index: 2; }
.scene-cloud { position: absolute; width: 110px; height: 34px; border-radius: 40px; background: linear-gradient(180deg, #fff, #dce7f3); box-shadow: 0 14px 30px rgba(0, 0, 0, .1); opacity: .95; z-index: 3; }
.scene-cloud::before, .scene-cloud::after { content: ""; position: absolute; border-radius: 50%; background: inherit; }
.scene-cloud::before { width: 48px; height: 48px; left: 16px; top: -25px; }
.scene-cloud::after { width: 36px; height: 36px; left: 55px; top: -17px; }
.scene-cloud.c1 { top: 24%; left: 42%; transform: translateZ(60px); animation: cloudDrift 15s ease-in-out infinite alternate; }
.scene-cloud.c2 { width: 82px; height: 27px; top: 42%; left: 12%; opacity: .7; transform: translateZ(35px) scale(.85); animation: cloudDrift 19s ease-in-out infinite alternate-reverse; }
.scene-cloud.c3 { width: 64px; height: 22px; top: 12%; right: 13%; opacity: .5; transform: translateZ(10px) scale(.7); animation: cloudDrift 23s ease-in-out infinite alternate; }
@keyframes cloudDrift { to { margin-left: 34px; } }
.scene-mountain { position: absolute; bottom: 0; width: 78%; height: 54%; left: -9%; background: linear-gradient(155deg, #3d5d70, #203746 65%); clip-path: polygon(0 100%, 34% 18%, 52% 55%, 66% 33%, 100% 100%); transform: translateZ(-30px); opacity: .9; }
.scene-mountain.m2 { width: 70%; height: 42%; left: auto; right: -12%; background: linear-gradient(150deg, #557487, #2a4353 68%); transform: translateZ(-60px); opacity: .75; }
.scene-ground { position: absolute; bottom: -16%; left: -10%; right: -10%; height: 36%; background: linear-gradient(180deg, rgba(26, 43, 55, .1), #13212c); border-radius: 50% 50% 0 0; transform: translateZ(0); }
.scene-rain { position: absolute; inset: 0; z-index: 4; background-image: linear-gradient(180deg, rgba(190, 220, 255, .55) 35%, transparent 35%); background-size: 3px 16px; opacity: .55; transform: skewX(-8deg); animation: rainMove .35s linear infinite; }
@keyframes rainMove { to { background-position: 6px 26px; } }
.scene-snow { position: absolute; inset: 0; z-index: 4; background-image: radial-gradient(circle, #fff 1.3px, transparent 1.8px); background-size: 18px 20px; opacity: .8; animation: snowMove 4s linear infinite; }
@keyframes snowMove { to { background-position: 14px 40px; } }
.scene-stars { position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(255,255,255,.8) 1px, transparent 1.5px); background-size: 46px 46px; opacity: .5; }
.scene-label { position: absolute; left: 16px; bottom: 14px; z-index: 6; color: #fff; text-shadow: 0 2px 9px rgba(0,0,0,.45); }
.scene-label b { display: block; font-size: 26px; font-weight: 300; letter-spacing: -.04em; line-height: 1; }
.scene-label span { font-size: 9px; opacity: .8; }
.scene-wrap { perspective: 900px; height: 100%; }

/* ---------- bottom nav / responsive ---------- */
.bottom-nav { display: none; }
.hide-sm { display: inline-flex; }
@media (max-width: 1280px) {
  .calendar-hero { grid-column: span 7; }
  .clock-card { grid-column: span 5; }
  .weather-card { grid-column: span 6; }
  .agenda-card { grid-column: span 6; }
  .moon-card { grid-column: span 12; flex-direction: row; text-align: start; gap: 18px; flex-wrap: wrap; }
  .moon-card .moon-art { margin: 0; }
  .moon-card blockquote { max-width: 400px; }
}
@media (max-width: 1120px) {
  .lang-grid { grid-template-columns: repeat(3, 1fr); }
  .clock-variants { grid-template-columns: repeat(2, 1fr); }
  .connections-grid { grid-template-columns: 1fr 1fr; }
  .provider-card:last-child { grid-column: span 2; }
  .weather-hero { grid-column: span 12; }
  .hourly-card, .forecast-card, .weather-details-card { grid-column: span 12; }
  .connections-lower { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
  .sidebar { width: 76px; flex-basis: 76px; padding: 24px 10px 16px; }
  .sidebar-brand { padding: 0 0 28px; justify-content: center; }
  .sidebar-brand span, .side-link span, .side-tour span, .profile-meta, .profile-chip > svg, .nav-dot { display: none; }
  .sidebar-brand img { width: 38px; }
  .side-link { justify-content: center; padding: 0; }
  .side-link.active::before { inset-inline-start: -10px; }
  .nav-badge { position: absolute; top: 5px; inset-inline-end: 5px; min-width: 14px; height: 14px; font-size: 7px; }
  .side-tour { justify-content: center; padding: 9px; }
  .profile-chip { justify-content: center; padding: 7px; }
  .calendar-layout { grid-template-columns: 1fr; }
  .day-panel { position: static; }
  .page-head h1 { font-size: 34px; }
  .calendar-hero { grid-column: span 12; }
  .clock-card { grid-column: span 5; }
  .weather-card { grid-column: span 7; }
  .agenda-card { grid-column: span 7; }
  .moon-card { grid-column: span 5; flex-direction: column; text-align: center; }
  .moon-card .moon-art { margin: 0 auto 10px; }
  .install-card, .clock-preview-card { grid-column: span 2; }
  .settings-grid { grid-template-columns: 1fr; }
  .topbar { height: 74px; }
  .search-pill { width: 42px; padding: 0; justify-content: center; }
  .search-pill span, .search-pill kbd { display: none; }
}
@media (max-width: 760px) {
  body { font-size: 14px; }
  .sidebar { display: none; }
  .topbar { height: 66px; padding: 0 16px; }
  .mobile-menu { display: inline-flex; }
  .topbar-title .eyebrow { display: none; }
  .topbar-title h2 { font-size: 14px; }
  .topbar-actions { gap: 5px; }
  .topbar-actions .icon-btn { width: 35px; height: 35px; border-radius: 10px; }
  .topbar-actions .icon-btn svg { width: 17px; height: 17px; }
  .search-pill { display: none; }
  .avatar-btn { width: 34px; height: 34px; }
  .install-top { display: inline-flex; }
  .views { padding: 20px 14px 100px; }
  .page-head { align-items: flex-start; flex-direction: column; gap: 14px; margin-bottom: 20px; }
  .page-head h1 { font-size: 30px; }
  .page-head p { font-size: 12px; }
  .head-actions { width: 100%; justify-content: flex-start; }
  .head-actions .segmented { order: 2; }
  .head-actions .btn { min-height: 38px; }
  .dash-grid { gap: 12px; }
  .calendar-hero, .clock-card, .weather-card, .agenda-card, .moon-card { grid-column: span 12; }
  .hero-calendar-body { grid-template-columns: 1fr; padding: 8px 15px 15px; }
  .day-peek { min-height: 0; }
  .mini-day { min-height: 42px; }
  .analog-stage { min-height: 170px; }
  .analog-svg { width: 190px; }
  .weather-mini-body { padding: 13px 18px 20px; }
  .weather-art { width: 82px; height: 82px; }
  .weather-temp { font-size: 46px; }
  .moon-card { flex-direction: row; flex-wrap: wrap; justify-content: center; text-align: start; }
  .moon-card blockquote { width: 100%; max-width: none; text-align: center; font-size: 11px; }
  .calendar-toolbar { flex-direction: column; align-items: flex-start; padding: 13px; gap: 12px; }
  .toolbar-right { width: 100%; justify-content: space-between; }
  .calendar-layout { gap: 12px; }
  .full-calendar-card { padding: 8px 7px; border-radius: 20px; }
  .full-weekdays span { font-size: 7.5px; padding: 6px 2px; }
  .full-grid { gap: 2px; }
  .full-day { min-height: 63px; padding: 5px 5px; border-radius: 8px; }
  .full-day .fd-num { font-size: 12px; }
  .full-day .fd-alt { font-size: 6px; }
  .full-day .fd-holiday { display: none; }
  .full-day .fd-events { gap: 1px; margin-top: 3px; }
  .fd-event { font-size: 0; gap: 0; }
  .fd-event i { width: 4px; height: 4px; }
  .fd-more { display: none; }
  .full-day.today .fd-num { width: 19px; height: 19px; font-size: 10px; margin: 0; }
  .calendar-bottom { grid-template-columns: 1fr; gap: 12px; }
  .day-panel { padding: 17px; }
  .panel-day { font-size: 36px; }
  .widgets-layout { grid-template-columns: 1fr; }
  .clock-preview-card, .install-card { grid-column: span 1; }
  .clock-variants { grid-template-columns: 1fr 1fr; padding: 12px 16px 4px; gap: 7px; }
  .clock-variant svg { width: 92px; height: 92px; }
  .widget-card-top { padding: 18px 16px 0; }
  .widget-controls { padding: 12px 16px 0; gap: 10px 16px; }
  .calendar-widget-demo, .weather-widget-stage { padding: 12px 16px 4px; }
  .platform-grid { grid-template-columns: 1fr 1fr; padding: 0 16px 14px; }
  .install-head { padding: 18px 16px 12px; }
  .install-card > .btn { margin: 0 16px; width: calc(100% - 32px); }
  .weather-page-grid { gap: 12px; }
  .weather-hero { padding: 18px 16px 15px; min-height: 0; }
  .weather-hero-top { flex-direction: column; }
  .weather-hero-main { flex-wrap: wrap; padding: 8px 0; }
  .weather-hero-art { width: 140px; height: 130px; flex-basis: 140px; margin-inline-start: -12px; }
  .weather-hero-temp { font-size: 74px; }
  .weather-hero-stats { width: 100%; grid-template-columns: repeat(4, 1fr); margin: 0; align-self: auto; }
  .weather-hero-stats span { min-width: 0; }
  .hourly-card, .forecast-card, .weather-details-card { grid-column: span 12; }
  .hourly-strip { padding: 10px 12px 16px; grid-template-columns: repeat(6, minmax(52px, 1fr)); overflow-x: auto; }
  .forecast-list { padding: 8px 14px 14px; }
  .forecast-row .fr-day { width: 64px; }
  .forecast-row .fr-desc { display: none; }
  .detail-grid { padding: 10px 14px 16px; }
  .connections-grid { grid-template-columns: 1fr; }
  .provider-card:last-child { grid-column: span 1; }
  .ics-card { flex-direction: column; }
  .ics-illustration { width: 100%; flex-basis: 105px; border-inline-end: 0; border-bottom: 1px solid var(--line); }
  .ics-copy { padding: 18px 16px; }
  .connections-lower { gap: 12px; margin-top: 12px; }
  .reminders-grid { grid-template-columns: 1fr; }
  .reminders-list-card { grid-column: span 1; }
  .form-grid { padding: 14px 16px 0; }
  .settings-grid { gap: 12px; }
  .season-grid { grid-template-columns: 1fr 1fr; }
  .lang-grid { grid-template-columns: 1fr 1fr; }
  .lang-card { min-height: 110px; }
  .onboarding { padding: 20px 16px 16px; }
  .onb-shell { padding: 22px 0 25px; }
  .onb-intro h1 { font-size: 34px; }
  .onb-intro p { font-size: 13px; }
  .onb-footer { flex-direction: column-reverse; align-items: stretch; }
  .onb-footer .btn { width: 100%; }
  .onb-form { grid-template-columns: 1fr; }
  .onb-bottom { flex-direction: column; gap: 5px; }
  .onb-step-label { display: none; }
  .ready-orb { width: 84px; height: 84px; }
  .onb-ready h1 { font-size: 34px; }
  .modal-root { padding: 0; align-items: flex-end; }
  .modal-sheet { max-height: 92vh; border-radius: 24px 24px 0 0; width: 100%; }
  .modal-head { padding: 20px 18px 0; }
  .modal-body { padding: 15px 18px 20px; }
  .modal-foot { padding: 0 18px 20px; }
  .form-grid { gap: 9px; }
  .bottom-nav { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 80; display: flex; align-items: center; justify-content: space-around; height: 62px; border: 1px solid var(--line-strong); border-radius: 20px; background: rgba(12, 17, 28, .94); box-shadow: 0 18px 50px rgba(0, 0, 0, .45); backdrop-filter: blur(22px); padding: 0 6px; }
  .bottom-nav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; width: 56px; height: 50px; border: 0; border-radius: 13px; background: transparent; color: var(--faint); font-size: 8px; }
  .bottom-nav button svg { width: 19px; height: 19px; }
  .bottom-nav button.active { color: var(--accent); background: var(--accent-soft); }
  .bottom-fab { width: 48px !important; height: 48px !important; border-radius: 50% !important; background: linear-gradient(135deg, var(--accent), var(--accent-2)) !important; color: #07101a !important; margin-top: -27px; box-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 30%, transparent); }
  .bottom-fab svg { width: 21px !important; height: 21px !important; stroke-width: 2.2; }
  .toast-stack { inset-inline-end: 12px; inset-inline-start: 12px; bottom: 86px; align-items: stretch; }
  .toast { max-width: none; }
}
@media (max-width: 400px) {
  .lang-grid { grid-template-columns: 1fr; }
  .lang-card { min-height: 74px; flex-direction: row; align-items: center; gap: 12px; }
  .lang-card span { flex: 1; }
  .lang-card .check { top: 50%; transform: translateY(-50%) scale(.6); }
  .lang-card.selected .check { transform: translateY(-50%); }
  .season-grid { grid-template-columns: 1fr; }
  .clock-variants { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* RTL fine-tuning */
[dir="rtl"] .side-link.active::before { inset-inline-start: auto; inset-inline-end: -17px; }
[dir="rtl"] .theme-pop { inset-inline-end: auto; inset-inline-start: 0; }
[dir="rtl"] .text-link svg, [dir="rtl"] .card-foot-link svg { transform: scaleX(-1); }
[dir="rtl"] .digital-time { direction: ltr; }
[dir="rtl"] .topbar-title h2 { letter-spacing: 0; }
[dir="rtl"] .page-head h1, [dir="rtl"] .onb-intro h1, [dir="rtl"] .onb-ready h1 { letter-spacing: -.02em; }
[dir="rtl"] .search-pill kbd { direction: ltr; }
[dir="rtl"] .full-day .fd-alt { text-align: start; }
[dir="rtl"] .fd-event { direction: rtl; }
[dir="rtl"] .weather-hero-temp, [dir="rtl"] .weather-temp, [dir="rtl"] .peek-day, [dir="rtl"] .panel-day { direction: ltr; }
[dir="rtl"] .lang-card .flag { order: 0; }

/* Mobile calendar readability pass */
@media (max-width: 700px) {
  .weekday-row span { font-size: 10px; padding: 8px 0; letter-spacing: .02em; }
  .mini-day { min-height: 52px; padding: 6px 2px 5px; gap: 3px; }
  .mini-day .num { font-size: 14.5px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
  .mini-day .sub { font-size: 8.5px; }
  .mini-day.today .num { width: 27px; height: 27px; }
}
