/* ============ التنبيهات — التصميم ============ */
:root {
  --bg: #0f0b24;
  --bg-2: #1a1140;
  --card: rgba(255, 255, 255, 0.06);
  --card-strong: rgba(255, 255, 255, 0.1);
  --line: rgba(255, 255, 255, 0.12);
  --text: #f5f3ff;
  --muted: #a9a3c9;
  --violet: #8b5cf6;
  --pink: #ec4899;
  --amber: #fbbf24;
  --green: #34d399;
  --red: #fb7185;
  --grad: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
  --radius: 22px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --font: 'Tajawal', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { color-scheme: dark; }
html, body { margin: 0; min-height: 100%; background: var(--bg); }
body {
  font-family: var(--font);
  color: var(--text);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
[hidden] { display: none !important; }
svg { display: block; }

/* خلفية متحركة */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden;
  background: radial-gradient(120% 80% at 50% 0%, var(--bg-2) 0%, var(--bg) 60%); }
.bg i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; animation: float 18s ease-in-out infinite; }
.bg i:nth-child(1) { width: 320px; height: 320px; background: #7c3aed; top: -90px; right: -80px; }
.bg i:nth-child(2) { width: 280px; height: 280px; background: #db2777; bottom: 8%; left: -110px; animation-delay: -6s; opacity: .4; }
.bg i:nth-child(3) { width: 220px; height: 220px; background: #f59e0b; bottom: -80px; right: 10%; animation-delay: -12s; opacity: .22; }
@keyframes float { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(24px,-30px) scale(1.08); } }

#app { max-width: 520px; margin: 0 auto; min-height: 100dvh; display: flex; flex-direction: column; }

/* ============ الشاشات ============ */
.screen { flex: 1; display: flex; flex-direction: column; padding: calc(var(--safe-top) + 18px) 20px calc(var(--safe-bottom) + 24px); animation: rise .45s cubic-bezier(.2,.8,.2,1) both; }
.screen.has-tabs { padding-bottom: calc(var(--safe-bottom) + 104px); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ============ الترحيب ============ */
.hero { text-align: center; padding: 34px 0 22px; }
.logo { width: 108px; height: 108px; margin: 0 auto 18px; border-radius: 32px; background: var(--grad);
  display: grid; place-items: center; position: relative;
  box-shadow: 0 18px 50px -10px rgba(236,72,153,.55), inset 0 1px 0 rgba(255,255,255,.35); }
.logo::after { content: ''; position: absolute; inset: -10px; border-radius: 40px; border: 1.5px solid rgba(255,255,255,.14); animation: pulse 2.8s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(.94); opacity: .9; } 100% { transform: scale(1.22); opacity: 0; } }
.logo svg { width: 58px; height: 58px; fill: #fff; transform-origin: 50% 12%; animation: ring 4.5s ease-in-out infinite; filter: drop-shadow(0 6px 10px rgba(60,10,90,.35)); }
@keyframes ring { 0%,60%,100% { transform: rotate(0); } 66% { transform: rotate(14deg); } 72% { transform: rotate(-12deg); } 78% { transform: rotate(8deg); } 84% { transform: rotate(-5deg); } 90% { transform: rotate(2deg); } }
.hero h1 { margin: 0; font-size: 38px; font-weight: 800; letter-spacing: -.5px;
  background: linear-gradient(180deg, #fff 30%, #d8cffd); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { margin: 8px 0 0; color: var(--muted); font-size: 16.5px; }

.panel { background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 20px;
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); box-shadow: 0 20px 60px -30px rgba(0,0,0,.6); }

.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; background: rgba(0,0,0,.28); border-radius: 16px; margin-bottom: 16px; }
.seg button { padding: 10px 8px; border-radius: 12px; font-weight: 700; font-size: 15px; color: var(--muted); transition: .2s; }
.seg button.on { background: var(--card-strong); color: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.25), inset 0 0 0 1px var(--line); }

.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; margin: 20px 4px; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* ============ الحقول ============ */
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 14px; font-weight: 700; color: #d9d3f5; margin-bottom: 7px; }
.input { position: relative; }
.input svg { position: absolute; top: 50%; right: 15px; width: 20px; height: 20px; transform: translateY(-50%); stroke: var(--muted); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.input input, .input select, .input textarea, .plain {
  width: 100%; background: rgba(0,0,0,.28); border: 1.5px solid var(--line); border-radius: 16px;
  padding: 14px 46px 14px 14px; font-size: 16px; outline: none; transition: border-color .2s, box-shadow .2s, background .2s; appearance: none; -webkit-appearance: none; }
.plain { padding: 14px; }
.input textarea { resize: none; min-height: 92px; line-height: 1.6; }
.input select { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23a9a3c9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: 14px center; padding-left: 40px; }
.input select option { background: #1a1140; color: #fff; }
.input input::placeholder, .input textarea::placeholder, .plain::placeholder { color: #7f78a6; }
.input input:focus, .input select:focus, .input textarea:focus, .plain:focus { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(139,92,246,.22); background: rgba(0,0,0,.4); }
input[type=date], input[type=time] { text-align: right; min-height: 52px; }
input[type=date]::-webkit-calendar-picker-indicator, input[type=time]::-webkit-calendar-picker-indicator { filter: invert(.8); }
.hint { font-size: 13px; color: var(--muted); margin: -6px 2px 14px; }
.err { background: rgba(251,113,133,.12); border: 1px solid rgba(251,113,133,.35); color: #ffc2cb; border-radius: 14px; padding: 10px 14px; font-size: 14.5px; margin-bottom: 14px; }
.counter { text-align: left; font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ============ الأزرار ============ */
.btn { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 15px 18px; border-radius: 18px;
  font-weight: 800; font-size: 17px; transition: transform .15s, box-shadow .2s, opacity .2s, background .2s; }
.btn svg { width: 21px; height: 21px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .55; pointer-events: none; }
.btn.primary { background: var(--grad); color: #fff; box-shadow: 0 14px 34px -12px rgba(236,72,153,.7), inset 0 1px 0 rgba(255,255,255,.3); }
.btn.glass { background: var(--card-strong); border: 1px solid var(--line); color: #fff; }
.btn.danger { background: rgba(251,113,133,.14); border: 1px solid rgba(251,113,133,.4); color: #ffb3bf; }
.btn.small { width: auto; padding: 9px 14px; font-size: 14px; border-radius: 13px; }
.btn.small svg { width: 17px; height: 17px; }
.spin { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff; animation: rot .7s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }

.icon-btn { width: 44px; height: 44px; border-radius: 15px; background: var(--card); border: 1px solid var(--line); display: grid; place-items: center; transition: .15s; flex: none; }
.icon-btn:active { transform: scale(.92); }
.icon-btn svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* ============ الترويسة ============ */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.top h2 { margin: 0; font-size: 27px; font-weight: 800; line-height: 1.2; }
.top small { display: block; color: var(--muted); font-size: 14px; font-weight: 500; margin-top: 2px; }
.top .actions { display: flex; gap: 8px; }

/* ============ البطاقات ============ */
.list { display: flex; flex-direction: column; gap: 12px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); position: relative; overflow: hidden; animation: rise .4s cubic-bezier(.2,.8,.2,1) both; }
.card.tap { text-align: right; width: 100%; display: block; transition: transform .15s, background .2s; }
.card.tap:active { transform: scale(.985); background: var(--card-strong); }

.alert { display: flex; gap: 13px; padding-inline-start: 18px; }
.alert::before { content: ''; position: absolute; inset-block: 14px; inset-inline-start: 0; width: 4px; border-radius: 0 4px 4px 0; background: var(--grad); }
[dir=rtl] .alert::before { border-radius: 4px 0 0 4px; }
.avatar { width: 46px; height: 46px; border-radius: 15px; background: var(--grad); display: grid; place-items: center; flex: none; box-shadow: 0 8px 20px -8px rgba(236,72,153,.7); }
.avatar svg { width: 23px; height: 23px; fill: #fff; }
.avatar.soft { background: rgba(139,92,246,.18); box-shadow: none; border: 1px solid rgba(139,92,246,.35); }
.avatar.soft svg { fill: #c4b5fd; }
.alert .main { min-width: 0; flex: 1; }
.alert h3 { margin: 0; font-size: 17.5px; font-weight: 800; line-height: 1.35; word-break: break-word; }
.alert p { margin: 5px 0 0; color: #d8d3f2; font-size: 15.5px; white-space: pre-wrap; word-break: break-word; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 11px; border-radius: 99px; background: rgba(139,92,246,.18); color: #d4c8ff; font-weight: 700; font-size: 12.5px; border: 1px solid rgba(139,92,246,.3); }
.chip.green { background: rgba(52,211,153,.14); color: #86efc3; border-color: rgba(52,211,153,.32); }
.chip.amber { background: rgba(251,191,36,.14); color: #fde08a; border-color: rgba(251,191,36,.32); }
.chip.gray { background: rgba(255,255,255,.07); color: var(--muted); border-color: var(--line); }
.chip svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.row { display: flex; align-items: center; gap: 13px; }
.row .grow { flex: 1; min-width: 0; }
.row h3 { margin: 0; font-size: 18px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row small { color: var(--muted); font-size: 14px; }
.chev { width: 20px; height: 20px; stroke: var(--muted); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
[dir=rtl] .chev { transform: scaleX(-1); }

.sched-actions { display: flex; gap: 8px; margin-top: 13px; }
.sched.off { opacity: .62; }

svg.mini { display: inline-block; width: 15px; height: 15px; vertical-align: -3px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ============ حالة فارغة ============ */
.empty { text-align: center; padding: 46px 22px; color: var(--muted); }
.empty .ico { width: 84px; height: 84px; margin: 0 auto 16px; border-radius: 28px; background: var(--card); border: 1px solid var(--line); display: grid; place-items: center; }
.empty .ico svg { width: 38px; height: 38px; stroke: #c4b5fd; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.empty h3 { color: var(--text); margin: 0 0 6px; font-size: 19px; }
.empty p { margin: 0; font-size: 15px; }

.banner { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 18px; margin-bottom: 16px; background: linear-gradient(135deg, rgba(139,92,246,.25), rgba(236,72,153,.2)); border: 1px solid rgba(167,139,250,.4); }
.banner.warn { background: rgba(251,191,36,.1); border-color: rgba(251,191,36,.35); }
.banner .txt { flex: 1; font-size: 14.5px; line-height: 1.5; }
.banner .txt b { display: block; font-size: 15.5px; margin-bottom: 1px; }

.section-title { font-size: 14px; font-weight: 800; color: var(--muted); margin: 22px 4px 10px; letter-spacing: .2px; }

/* ============ المفتاح (Switch) ============ */
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 2px 16px; }
.switch-row b { font-size: 15.5px; }
.switch-row small { display: block; color: var(--muted); font-size: 13px; }
.switch { position: relative; width: 54px; height: 32px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 2; }
.switch i { position: absolute; inset: 0; border-radius: 99px; background: rgba(255,255,255,.14); transition: .25s; }
.switch i::after { content: ''; position: absolute; top: 3px; right: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; transition: .25s; box-shadow: 0 2px 8px rgba(0,0,0,.35); }
.switch input:checked + i { background: var(--grad); }
.switch input:checked + i::after { transform: translateX(-22px); }

/* ============ الشريط السفلي ============ */
.tabbar { position: fixed; z-index: 20; inset-inline: 0; bottom: 0; display: flex; justify-content: center; padding: 0 16px calc(var(--safe-bottom) + 12px); pointer-events: none; }
.tabbar nav { pointer-events: auto; width: 100%; max-width: 480px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 7px; border-radius: 26px;
  background: rgba(26, 17, 64, .78); border: 1px solid var(--line); backdrop-filter: blur(26px) saturate(1.4); -webkit-backdrop-filter: blur(26px) saturate(1.4); box-shadow: 0 18px 50px -12px rgba(0,0,0,.7); }
.tab { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 4px 8px; border-radius: 19px; color: var(--muted); font-size: 12.5px; font-weight: 700; transition: .25s; }
.tab svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s; }
.tab.on { color: #fff; background: var(--grad); box-shadow: 0 10px 24px -10px rgba(236,72,153,.8); }
.tab.on svg { transform: translateY(-1px) scale(1.08); }
.tab .dot { position: absolute; top: 6px; inset-inline-end: 24%; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--amber); color: #3a2600; font-size: 11px; font-weight: 800; display: grid; place-items: center; }

/* ============ النوافذ السفلية ============ */
.overlay { position: fixed; inset: 0; z-index: 50; background: rgba(6, 3, 20, .66); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: flex; align-items: flex-end; justify-content: center; animation: fade .25s both; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.sheet { width: 100%; max-width: 520px; max-height: 90dvh; overflow-y: auto; background: #1b1243; border: 1px solid var(--line); border-bottom: 0; border-radius: 30px 30px 0 0; padding: 10px 20px calc(var(--safe-bottom) + 24px); animation: slide .35s cubic-bezier(.2,.9,.25,1) both; box-shadow: 0 -20px 70px rgba(0,0,0,.5); }
@keyframes slide { from { transform: translateY(100%); } to { transform: none; } }
.grab { width: 44px; height: 5px; border-radius: 9px; background: rgba(255,255,255,.22); margin: 4px auto 16px; }
.sheet h3 { margin: 0 0 4px; font-size: 22px; font-weight: 800; }
.sheet .sub { color: var(--muted); margin: 0 0 16px; font-size: 14.5px; }
.sheet .btns { display: grid; gap: 10px; margin-top: 16px; }
.sheet .btns.two { grid-template-columns: 1fr 1fr; }

.member { display: flex; align-items: center; gap: 12px; padding: 11px 4px; border-bottom: 1px solid var(--line); }
.member:last-child { border-bottom: 0; }
.member .nm { flex: 1; min-width: 0; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member small { color: var(--muted); display: block; font-weight: 400; font-size: 12.5px; }
.mini-avatar { width: 38px; height: 38px; border-radius: 13px; background: rgba(139,92,246,.2); border: 1px solid rgba(139,92,246,.35); display: grid; place-items: center; font-weight: 800; color: #d4c8ff; flex: none; }
.x-btn { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: rgba(251,113,133,.1); }
.x-btn svg { width: 18px; height: 18px; stroke: var(--red); fill: none; stroke-width: 2; stroke-linecap: round; }

/* ============ الإشعارات المنبثقة ============ */
#toasts { position: fixed; z-index: 100; inset-inline: 0; top: calc(var(--safe-top) + 14px); display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
.toast { pointer-events: auto; max-width: 440px; width: 100%; display: flex; align-items: center; gap: 11px; padding: 13px 16px; border-radius: 18px; background: rgba(30, 20, 72, .94); border: 1px solid var(--line);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: 0 16px 40px -10px rgba(0,0,0,.6); font-weight: 700; font-size: 15px; animation: drop .4s cubic-bezier(.2,.9,.25,1) both; }
.toast.out { animation: out .3s both; }
.toast svg { width: 22px; height: 22px; flex: none; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.toast.ok svg { stroke: var(--green); }
.toast.bad svg { stroke: var(--red); }
@keyframes drop { from { opacity: 0; transform: translateY(-16px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes out { to { opacity: 0; transform: translateY(-12px); } }

/* ============ زر المعلومات (علامة استفهام) ============ */
.fab { position: fixed; z-index: 30; inset-inline-start: 16px; bottom: calc(var(--safe-bottom) + 16px); width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  background: rgba(30, 20, 72, .82); border: 1px solid var(--line);
  backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: 0 10px 26px -8px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.16); transition: transform .15s, background .2s; }
.fab:active { transform: scale(.9); }
.fab svg { width: 21px; height: 21px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
body.has-tabs .fab { bottom: calc(var(--safe-bottom) + 100px); }

/* ============ صفحة "عن التطبيق" ============ */
.about-head { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); }
.about-logo { width: 54px; height: 54px; border-radius: 18px; background: var(--grad); display: grid; place-items: center; flex: none; box-shadow: 0 10px 24px -10px rgba(236,72,153,.75); }
.about-logo svg { width: 28px; height: 28px; fill: #fff; }
.about-meta { flex: 1; min-width: 0; }
.about-meta b { display: block; font-size: 18px; font-weight: 800; }
.about-meta small { color: var(--muted); font-size: 13.5px; }
.about-p { margin: 0; color: #ddd7f6; font-size: 15px; line-height: 1.75; }
.bullets { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.bullets li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; color: #ddd7f6; line-height: 1.6; }
.bullets svg { width: 19px; height: 19px; flex: none; margin-top: 3px; stroke: var(--violet); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.about-dev { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; background: linear-gradient(135deg, rgba(139,92,246,.2), rgba(236,72,153,.16)); border: 1px solid var(--line); font-size: 16.5px; }

.skeleton { height: 92px; border-radius: var(--radius); background: linear-gradient(100deg, rgba(255,255,255,.04) 30%, rgba(255,255,255,.1) 50%, rgba(255,255,255,.04) 70%); background-size: 220% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -220% 0; } }

@media (min-width: 560px) {
  .overlay { align-items: center; }
  .sheet { border-radius: 30px; border-bottom: 1px solid var(--line); max-height: 86dvh; }
}

/* ============ الحاسوب: تخطيط موقع عادي (ليس شكل جوال) ============ */
@media (min-width: 780px) {
  #app { max-width: 700px; }
  .sheet { max-width: 560px; }
  .list.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .fab { width: 44px; height: 44px; inset-inline-start: 20px; bottom: calc(var(--safe-bottom) + 20px); }
}

@media (min-width: 1024px) {
  body { font-size: 17px; }
  #app { max-width: 1220px; display: grid; grid-template-columns: 272px minmax(0, 1fr); gap: 34px; align-items: start; padding: 32px 30px 64px; }
  body.has-tabs #app { grid-template-columns: 272px minmax(0, 1fr); }
  body:not(.has-tabs) #app { grid-template-columns: minmax(0, 1fr); }
  body:not(.has-tabs) .screen { max-width: 840px; width: 100%; margin-inline: auto; }
  .screen { padding: 0; }
  .screen.has-tabs { padding-bottom: 0; }

  /* الشريط السفلي يتحول لقائمة جانبية */
  .tabbar { order: -1; position: sticky; inset: auto; top: 32px; display: block; padding: 0; pointer-events: auto; }
  .tabbar nav { max-width: none; display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 28px; box-shadow: 0 24px 60px -24px rgba(0,0,0,.8); }
  .tab { flex-direction: row; justify-content: flex-start; gap: 13px; padding: 14px 18px; border-radius: 19px; font-size: 15.5px; }
  .tab svg { width: 22px; height: 22px; }
  .tab.on svg { transform: none; }
  .tab .dot { position: static; margin-inline-start: auto; min-width: 20px; height: 20px; }

  .top h2 { font-size: 32px; }
  .top small { font-size: 15px; }
  .hero { padding: 46px 0 28px; }
  .hero h1 { font-size: 46px; }
  .hero p { font-size: 18.5px; }
  .hero .logo { width: 124px; height: 124px; }
  .panel { padding: 26px; }
  .card { padding: 18px; }
  .list.grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .banner { padding: 16px 18px; }
  .fab { inset-inline-start: 30px; bottom: 30px; width: 46px; height: 46px; }
  body.has-tabs .fab { bottom: 30px; }
  .toast { font-size: 16px; }
}

@media (min-width: 1400px) {
  #app { max-width: 1320px; gap: 40px; }
  body.has-tabs .list.grid2 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

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