﻿:root {
        color-scheme: light;
        --bg: #f6fbfb;
        --panel: rgba(255, 255, 255, 0.9);
        --panel-solid: #ffffff;
        --muted-panel: #eef7f5;
        --text: #0f172a;
        --muted: #65758b;
        --border: #dcebe8;
        --accent: #047857;
        --accent-strong: #065f46;
        --accent-rgb: 5, 150, 105;
        --teal: #0f766e;
        --amber: #d97706;
        --rose: #be123c;
        --sky: #0369a1;
        --lilac: #7c3aed;
        --radius: 22px;
        --radius-lg: 30px;
        --radius-pill: 999px;
        --shadow: 0 20px 55px rgba(15, 23, 42, 0.1);
        --soft-shadow: 0 12px 26px rgba(15, 23, 42, 0.07);
      }

      body.dark {
        color-scheme: dark;
        --bg: #111827;
        --panel: rgba(24, 33, 47, 0.9);
        --panel-solid: #1c1917;
        --muted-panel: #253143;
        --text: #fafaf9;
        --muted: #b8c0cc;
        --border: #344154;
        --accent: #10b981;
        --accent-strong: #059669;
        --accent-rgb: 16, 185, 129;
        --teal: #2dd4bf;
      }

      body[data-theme="sky"] {
        --bg: #f4faff;
        --muted-panel: #eef8ff;
        --border: #d8eaf7;
        --accent: #0369a1;
        --accent-strong: #0284c7;
        --accent-rgb: 14, 165, 233;
        --teal: #0ea5e9;
      }

      body[data-theme="violet"] {
        --bg: #faf8ff;
        --muted-panel: #f2efff;
        --border: #e4dcfb;
        --accent: #7c3aed;
        --accent-strong: #6d28d9;
        --accent-rgb: 124, 58, 237;
        --teal: #8b5cf6;
      }

      body[data-theme="rose"] {
        --bg: #fff7f8;
        --muted-panel: #fff1f3;
        --border: #f7d7dd;
        --accent: #be123c;
        --accent-strong: #e11d48;
        --accent-rgb: 225, 29, 72;
        --teal: #fb7185;
      }

      body.dark[data-theme="sky"] {
        --bg: #0d1724;
        --muted-panel: #172538;
        --border: #29445e;
        --accent: #38bdf8;
        --accent-strong: #0284c7;
        --accent-rgb: 56, 189, 248;
        --teal: #7dd3fc;
      }

      body.dark[data-theme="violet"] {
        --bg: #151322;
        --muted-panel: #251f39;
        --border: #40365f;
        --accent: #a78bfa;
        --accent-strong: #7c3aed;
        --accent-rgb: 167, 139, 250;
        --teal: #c4b5fd;
      }

      body.dark[data-theme="rose"] {
        --bg: #1f1218;
        --muted-panel: #301b24;
        --border: #56303e;
        --accent: #fb7185;
        --accent-strong: #e11d48;
        --accent-rgb: 251, 113, 133;
        --teal: #fda4af;
      }

      * {
        box-sizing: border-box;
      }

      html,
      body {
        margin: 0;
        min-width: 320px;
        min-height: 100%;
      }

      body {
        background: var(--bg);
        color: var(--text);
        font-family:
          Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
          sans-serif;
        letter-spacing: 0;
        transition: background 220ms ease, color 220ms ease;
      }

      button,
      input {
        font: inherit;
      }

      button {
        cursor: pointer;
      }

      button:disabled {
        cursor: not-allowed;
      }

      .icon {
        display: block;
        flex: 0 0 auto;
      }

      .app-pattern {
        background-image:
          radial-gradient(circle at 74% 4%, rgba(var(--accent-rgb), 0.08), transparent 30%),
          radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.72), transparent 28%),
          linear-gradient(rgba(var(--accent-rgb), 0.018) 1px, transparent 1px),
          linear-gradient(90deg, rgba(var(--accent-rgb), 0.018) 1px, transparent 1px);
        background-size: auto, auto, 42px 42px, 42px 42px;
      }

      .panel {
        background: var(--panel);
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow);
        backdrop-filter: blur(18px);
      }

      .muted-panel {
        background: var(--muted-panel);
        border: 1px solid var(--border);
        border-radius: var(--radius);
      }

      .login-screen {
        position: relative;
        display: grid;
        min-height: 100vh;
        place-items: center;
        padding: 40px 20px;
        overflow: hidden;
      }

      .theme-button {
        position: absolute;
        top: 20px;
        right: 20px;
        display: grid;
        width: 44px;
        height: 44px;
        place-items: center;
        color: var(--text);
        background: var(--panel);
        border: 1px solid var(--border);
        border-radius: 18px;
        box-shadow: var(--soft-shadow);
      }

      .login-card {
        position: relative;
        z-index: 1;
        width: min(100%, 430px);
        animation: soft-in 280ms ease-out both;
      }

      .brand-lockup {
        margin-bottom: 28px;
        text-align: center;
      }

      .brand-mark {
        display: grid;
        width: 64px;
        height: 64px;
        margin: 0 auto 18px;
        place-items: center;
        color: #fff;
        background: linear-gradient(135deg, var(--accent), var(--teal));
        border-radius: 22px;
        box-shadow: var(--shadow);
      }

      h1,
      h2,
      h3,
      p {
        margin: 0;
      }

      .brand-title {
        font-size: 40px;
        line-height: 1;
        font-weight: 900;
      }

      .brand-prayer {
        margin-top: 10px;
        color: var(--muted);
        font-size: 14px;
        font-weight: 650;
      }

      .form-card {
        padding: 24px;
      }

      .field {
        display: block;
        margin-bottom: 18px;
      }

      .field-label {
        display: block;
        margin-bottom: 8px;
        color: var(--muted);
        font-size: 12px;
        font-weight: 800;
        text-transform: uppercase;
      }

      .input-wrap {
        position: relative;
      }

      .input-wrap .icon {
        position: absolute;
        top: 50%;
        left: 12px;
        color: var(--muted);
        transform: translateY(-50%);
      }

      input[type="text"],
      input[type="password"],
      input[type="email"],
      .input-wrap select {
        width: 100%;
        padding: 13px 14px 13px 42px;
        color: var(--text);
        background: var(--muted-panel);
        border: 1px solid var(--border);
        border-radius: 18px;
        outline: none;
        transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
      }

      .input-wrap select {
        appearance: none;
      }

      input:focus {
        border-color: var(--accent);
        box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.14);
      }

      .primary-button,
      .danger-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        min-height: 48px;
        padding: 12px 16px;
        font-weight: 850;
        border: 0;
        border-radius: 20px;
        transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
      }

      .primary-button {
        color: #fff;
        background: var(--accent-strong);
      }

      .primary-button:hover {
        background: var(--accent);
        transform: translateY(-1px);
      }

      .primary-button:disabled {
        background: #94a3b8;
      }

      .danger-button {
        color: var(--rose);
        background: rgba(244, 63, 94, 0.08);
        border: 1px solid rgba(244, 63, 94, 0.22);
      }

      .auth-tabs {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin-bottom: 18px;
        padding: 5px;
        background: var(--muted-panel);
        border: 1px solid var(--border);
        border-radius: 18px;
      }

      .auth-tab {
        min-height: 40px;
        color: var(--muted);
        background: transparent;
        border: 0;
        border-radius: 14px;
        font-weight: 900;
      }

      .auth-tab.active {
        color: #fff;
        background: var(--accent-strong);
        box-shadow: 0 10px 22px rgba(var(--accent-rgb), 0.2);
      }

      .auth-error {
        margin: -4px 0 14px;
        padding: 10px 12px;
        color: var(--rose);
        background: rgba(244, 63, 94, 0.08);
        border: 1px solid rgba(244, 63, 94, 0.18);
        border-radius: 14px;
        font-size: 13px;
        font-weight: 800;
        line-height: 1.4;
      }

      .soft-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        min-height: 42px;
        padding: 10px 14px;
        color: var(--accent-strong);
        background: rgba(var(--accent-rgb), 0.12);
        border: 1px solid rgba(var(--accent-rgb), 0.18);
        border-radius: 18px;
        font-size: 13px;
        font-weight: 900;
        transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
      }

      .soft-button:hover {
        background: rgba(var(--accent-rgb), 0.18);
        border-color: rgba(var(--accent-rgb), 0.34);
        transform: translateY(-1px);
      }

      .soft-button:disabled {
        cursor: not-allowed;
        opacity: 0.65;
        transform: none;
      }

      .tiny-button {
        display: inline-grid;
        width: 36px;
        height: 36px;
        place-items: center;
        color: var(--muted);
        background: var(--muted-panel);
        border: 1px solid var(--border);
        border-radius: 14px;
        transition: transform 150ms ease, color 150ms ease, border-color 150ms ease;
      }

      .tiny-button:hover {
        color: var(--accent);
        border-color: rgba(var(--accent-rgb), 0.32);
        transform: translateY(-1px);
      }

      .tiny-button.danger:hover {
        color: var(--rose);
        border-color: rgba(244, 63, 94, 0.3);
      }

      .shell {
        position: relative;
        min-height: 100vh;
        padding-bottom: calc(96px + env(safe-area-inset-bottom));
        overflow-x: hidden;
      }

      .fixed-pattern {
        position: fixed;
        inset: 0;
        opacity: 1;
        background-image:
          radial-gradient(ellipse 760px 430px at 80% -8%, rgba(var(--accent-rgb), 0.13), transparent 64%),
          radial-gradient(ellipse 620px 360px at 10% 0%, rgba(255, 255, 255, 0.72), transparent 68%),
          linear-gradient(180deg, rgba(235, 250, 248, 0.74) 0%, rgba(246, 251, 251, 0.58) 300px, rgba(246, 251, 251, 0.18) 620px, transparent 100%),
          linear-gradient(rgba(var(--accent-rgb), 0.012) 1px, transparent 1px),
          linear-gradient(90deg, rgba(var(--accent-rgb), 0.012) 1px, transparent 1px);
        background-size: auto, auto, auto, 54px 54px, 54px 54px;
        background-position: center top, center top, center top, 0 0, 0 0;
        pointer-events: none;
      }

      .content {
        position: relative;
        z-index: 1;
        width: min(100%, 520px);
        min-height: 100vh;
        margin: 0 auto;
      }

      .header {
        position: relative;
        overflow: hidden;
        padding: 28px 20px 20px;
      }

      .home-header {
        overflow: visible;
        margin-bottom: 10px;
        background: transparent;
      }

      .home-header::before {
        display: none;
        content: none;
      }

      .home-header::after {
        display: none;
        content: none;
      }

      body.dark .home-header {
        background: transparent;
      }

      body.dark .fixed-pattern {
        background-image:
          radial-gradient(ellipse 760px 430px at 80% -8%, rgba(var(--accent-rgb), 0.16), transparent 64%),
          radial-gradient(ellipse 620px 360px at 10% 0%, rgba(255, 255, 255, 0.035), transparent 68%),
          linear-gradient(180deg, rgba(15, 23, 42, 0.82) 0%, rgba(17, 24, 39, 0.58) 320px, rgba(17, 24, 39, 0.22) 640px, transparent 100%),
          linear-gradient(rgba(var(--accent-rgb), 0.018) 1px, transparent 1px),
          linear-gradient(90deg, rgba(var(--accent-rgb), 0.018) 1px, transparent 1px);
      }

      body.dark .home-header::after {
        display: none;
      }

      .header-top {
        position: relative;
        z-index: 1;
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 16px;
        margin-bottom: 18px;
      }

      .greeting {
        font-size: 24px;
        line-height: 1.18;
        font-weight: 900;
      }

      .greeting span {
        color: var(--accent);
      }

      .today {
        margin-top: 6px;
        color: var(--muted);
        font-size: 14px;
        font-weight: 650;
        text-transform: capitalize;
      }

      .header-actions {
        display: flex;
        gap: 8px;
        flex: 0 0 auto;
      }

      .score-pill,
      .icon-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: var(--text);
        background: var(--panel);
        border: 1px solid var(--border);
        border-radius: 18px;
      }

      .score-pill {
        gap: 7px;
        min-height: 40px;
        padding: 8px 12px;
        font-size: 14px;
        font-weight: 850;
      }

      .score-pill .icon {
        color: var(--amber);
      }

      .icon-button {
        width: 40px;
        height: 40px;
      }

      .daily-header-grid {
        position: relative;
        z-index: 1;
        display: grid;
        gap: 14px;
      }

      .next-prayer-card {
        position: relative;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        min-height: 88px;
        padding: 16px;
        color: #fff;
        background:
          radial-gradient(circle at 86% 18%, rgba(255, 255, 255, 0.16), transparent 28%),
          radial-gradient(circle at 16% 88%, rgba(255, 255, 255, 0.12), transparent 34%),
          linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 58%, var(--teal) 135%);
        border: 1px solid var(--accent-strong);
        border-radius: 28px;
        box-shadow: var(--shadow);
      }

      .next-prayer-card::before {
        display: none;
        content: none;
      }

      .next-prayer-card::after {
        display: none;
        content: none;
      }

      .next-prayer-main {
        position: relative;
        z-index: 1;
        display: flex;
        align-items: center;
        gap: 12px;
        min-width: 0;
      }

      .next-label,
      .next-meta {
        color: rgba(255, 255, 255, 0.78);
        font-size: 12px;
        font-weight: 750;
      }

      .countdown {
        margin-top: 2px;
        font-size: 25px;
        font-weight: 900;
        font-variant-numeric: tabular-nums;
      }

      .next-side {
        position: relative;
        z-index: 1;
        text-align: right;
        white-space: nowrap;
      }

      .next-name {
        margin-top: 2px;
        font-weight: 850;
      }

      .progress-card {
        position: relative;
        overflow: hidden;
        display: flex;
        align-items: center;
        gap: 16px;
        min-height: 106px;
        padding: 18px;
      }

      .progress-card::after {
        position: absolute;
        right: -28px;
        bottom: -40px;
        width: 150px;
        height: 150px;
        background: radial-gradient(circle, rgba(var(--accent-rgb), 0.12), transparent 64%);
        content: "";
      }

      .progress-ring {
        position: relative;
        display: grid;
        width: 80px;
        height: 80px;
        flex: 0 0 auto;
        place-items: center;
      }

      .progress-ring svg {
        position: absolute;
        inset: 0;
        transform: rotate(-90deg);
      }

      .progress-ring strong {
        font-size: 18px;
        font-weight: 900;
      }

      .section-copy h2 {
        font-size: 18px;
        font-weight: 900;
      }

      .section-copy p {
        margin-top: 6px;
        color: var(--muted);
        font-size: 14px;
        line-height: 1.5;
      }

      .progress-status {
        display: inline-flex;
        margin-top: 10px;
        padding: 5px 10px;
        color: var(--accent);
        background: rgba(var(--accent-rgb), 0.1);
        border: 1px solid rgba(var(--accent-rgb), 0.18);
        border-radius: var(--radius-pill);
        font-size: 12px;
        font-weight: 950;
      }

      .progress-status.complete {
        color: #fff;
        background: var(--accent-strong);
        border-color: var(--accent-strong);
      }

      main {
        padding: 0 20px 32px;
      }

      .inspiration {
        position: relative;
        overflow: hidden;
        display: flex;
        align-items: center;
        gap: 14px;
        margin-bottom: 24px;
        min-height: 112px;
        padding: 22px;
        color: var(--text);
        background:
          radial-gradient(circle at 88% 18%, rgba(var(--accent-rgb), 0.1), transparent 30%),
          linear-gradient(90deg, rgba(var(--accent-rgb), 0.1), rgba(255, 255, 255, 0.78)),
          var(--panel);
        border: 1px solid rgba(var(--accent-rgb), 0.16);
        border-radius: 26px;
        box-shadow: var(--soft-shadow);
      }

      .quote-mark {
        display: grid;
        flex: 0 0 auto;
        width: 44px;
        height: 44px;
        place-items: center;
        color: rgba(var(--accent-rgb), 0.62);
        background: rgba(var(--accent-rgb), 0.08);
        border-radius: 16px;
      }

      .quote-copy {
        position: relative;
        z-index: 1;
        min-width: 0;
      }

      .quote-art {
        display: none;
      }

      .quote-art::before {
        display: none;
        content: none;
      }

      .quote-art::after {
        display: none;
        content: none;
      }

      body.dark .inspiration {
        background:
          linear-gradient(90deg, rgba(var(--accent-rgb), 0.14), rgba(15, 23, 42, 0.58)),
          var(--panel);
      }

      body.dark .daily-dua-card {
        background:
          radial-gradient(circle at 96% 8%, rgba(217, 119, 6, 0.1), transparent 34%),
          linear-gradient(135deg, rgba(var(--accent-rgb), 0.12), rgba(15, 23, 42, 0.38)),
          var(--panel);
      }

      .tasbih-wrap .inspiration {
        margin-top: 18px;
      }

      @media (max-width: 560px) {
        .home-header::before {
          display: none;
        }

        .inspiration {
          min-height: 108px;
          padding: 18px 16px;
        }

        .quote-mark {
          width: 38px;
          height: 38px;
        }

        .quote-art {
          display: none;
        }

        .location-card {
          padding: 16px 18px;
        }

        .location-art {
          display: none;
        }
      }

      .daily-dua-card {
        display: flex;
        align-items: flex-start;
        gap: 14px;
        margin-bottom: 16px;
        padding: 18px;
        background:
          radial-gradient(circle at 96% 8%, rgba(217, 119, 6, 0.12), transparent 34%),
          linear-gradient(135deg, rgba(var(--accent-rgb), 0.07), rgba(255, 255, 255, 0.76)),
          var(--panel);
      }

      .dua-icon,
      .suggestion-icon {
        display: grid;
        width: 44px;
        height: 44px;
        flex: 0 0 auto;
        place-items: center;
        color: var(--accent);
        background: rgba(var(--accent-rgb), 0.1);
        border: 1px solid rgba(var(--accent-rgb), 0.16);
        border-radius: 17px;
      }

      .daily-dua-card > div:last-child,
      .next-suggestion-card > div:not(.suggestion-icon) {
        min-width: 0;
      }

      .daily-dua-card span,
      .mini-card-head span,
      .next-suggestion-card span {
        display: block;
        color: var(--accent);
        font-size: 11px;
        font-weight: 950;
        text-transform: uppercase;
      }

      .daily-dua-card h2,
      .mini-card-head h2,
      .next-suggestion-card h2 {
        margin-top: 3px;
        font-size: 17px;
        font-weight: 950;
        line-height: 1.18;
      }

      .dua-text {
        margin-top: 9px;
        font-size: 14px;
        font-weight: 750;
        line-height: 1.55;
        overflow-wrap: anywhere;
      }

      .dua-note,
      .weekly-mini-card p,
      .next-suggestion-card p {
        margin-top: 7px;
        color: var(--muted);
        font-size: 12px;
        font-weight: 700;
        line-height: 1.45;
      }

      .home-insight-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
        margin-bottom: 16px;
      }

      .mood-card,
      .weekly-mini-card {
        display: grid;
        gap: 13px;
        padding: 16px;
      }

      .mini-card-head {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 12px;
      }

      .mini-card-head .icon {
        color: var(--accent);
      }

      .mood-options {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
      }

      .mood-button {
        display: grid;
        min-height: 66px;
        place-items: center;
        gap: 6px;
        padding: 9px 7px;
        color: var(--muted);
        background: var(--muted-panel);
        border: 1px solid var(--border);
        border-radius: 18px;
        font-size: 11px;
        font-weight: 900;
        line-height: 1.15;
        text-align: center;
        transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
      }

      .mood-button:hover {
        transform: translateY(-1px);
      }

      .mood-button.active {
        color: var(--accent-strong);
        background: rgba(var(--accent-rgb), 0.12);
        border-color: rgba(var(--accent-rgb), 0.34);
      }

      .mini-week-days {
        display: grid;
        grid-template-columns: repeat(7, minmax(0, 1fr));
        gap: 6px;
      }

      .mini-week-day {
        display: grid;
        aspect-ratio: 1;
        place-items: center;
        color: var(--muted);
        background: var(--muted-panel);
        border: 1px solid var(--border);
        border-radius: 14px;
        font-size: 11px;
        font-weight: 950;
      }

      .mini-week-day.active {
        color: var(--sky);
        background: rgba(14, 165, 233, 0.1);
        border-color: rgba(14, 165, 233, 0.28);
      }

      .mini-week-day.full {
        color: #fff;
        background: var(--accent-strong);
        border-color: var(--accent-strong);
      }

      .next-suggestion-card {
        display: flex;
        align-items: center;
        gap: 14px;
        margin-bottom: 16px;
        padding: 16px;
        background:
          radial-gradient(circle at 100% 20%, rgba(var(--accent-rgb), 0.12), transparent 34%),
          var(--panel);
      }

      .next-suggestion-card.complete .suggestion-icon {
        color: #fff;
        background: var(--accent-strong);
        border-color: var(--accent-strong);
      }

      .suggestion-copy {
        min-width: 0;
        flex: 1 1 auto;
      }

      .suggestion-action {
        flex: 0 0 auto;
      }

      .target-toolbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        margin-bottom: 20px;
        padding: 16px;
      }

      .age-mode-card {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        margin-bottom: 18px;
        padding: 14px 16px;
        background:
          radial-gradient(circle at 100% 0%, rgba(var(--accent-rgb), 0.12), transparent 34%),
          rgba(var(--accent-rgb), 0.06);
        border: 1px solid rgba(var(--accent-rgb), 0.16);
        border-radius: 24px;
      }

      .age-mode-card span {
        display: block;
        color: var(--accent);
        font-size: 11px;
        font-weight: 950;
        text-transform: uppercase;
      }

      .age-mode-card strong {
        display: block;
        margin-top: 3px;
        font-size: 15px;
        font-weight: 950;
      }

      .age-mode-card p {
        max-width: 360px;
        color: var(--muted);
        font-size: 12px;
        font-weight: 750;
        line-height: 1.45;
        text-align: right;
      }

      .focus-target-card {
        display: grid;
        gap: 14px;
        margin-bottom: 26px;
        padding: 18px;
      }

      .focus-head {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 14px;
      }

      .focus-head h2 {
        font-size: 18px;
        font-weight: 950;
      }

      .focus-head p {
        margin-top: 4px;
        color: var(--muted);
        font-size: 13px;
        line-height: 1.35;
      }

      .focus-task-list {
        display: grid;
        gap: 12px;
      }

      .link-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        width: fit-content;
        margin: 0 auto;
        padding: 9px 12px;
        color: var(--accent-strong);
        background: transparent;
        border: 0;
        border-radius: 14px;
        font-size: 13px;
        font-weight: 950;
      }

      .link-button:hover {
        background: rgba(var(--accent-rgb), 0.08);
      }

      .target-collapse {
        display: flex;
        margin: -8px auto 24px;
      }

      .target-toolbar h2 {
        font-size: 17px;
        font-weight: 950;
      }

      .target-toolbar p {
        margin-top: 4px;
        color: var(--muted);
        font-size: 13px;
        line-height: 1.35;
      }

      .target-actions {
        display: flex;
        flex: 0 0 auto;
        gap: 8px;
      }

      .gratitude-card {
        display: grid;
        gap: 14px;
        margin-bottom: 20px;
        padding: 18px;
      }

      .gratitude-head,
      .card-head {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 14px;
      }

      .gratitude-head h2,
      .card-head h2 {
        font-size: 18px;
        font-weight: 950;
      }

      .gratitude-head p,
      .card-head p {
        margin-top: 4px;
        color: var(--muted);
        font-size: 13px;
        line-height: 1.4;
      }

      .gratitude-head .icon,
      .card-head .icon {
        color: var(--accent);
      }

      .gratitude-card form {
        display: grid;
        gap: 12px;
      }

      textarea {
        width: 100%;
        resize: vertical;
        padding: 14px;
        color: var(--text);
        background: var(--muted-panel);
        border: 1px solid var(--border);
        border-radius: 18px;
        outline: none;
        line-height: 1.5;
      }

      textarea:focus {
        border-color: var(--accent);
        box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.14);
      }

      .inspiration .icon {
        color: var(--accent);
      }

      .quote {
        font-size: 14px;
        font-style: italic;
        line-height: 1.55;
      }

      .quote-source {
        margin-top: 8px;
        color: var(--accent);
        font-size: 12px;
        font-weight: 850;
      }

      .task-group {
        margin-bottom: 26px;
        animation: soft-in 260ms ease-out both;
      }

      .group-title {
        margin: 0 0 10px 2px;
        color: var(--muted);
        font-size: 12px;
        font-weight: 900;
        text-transform: uppercase;
      }

      .task-list {
        display: grid;
        gap: 12px;
      }

      .task-card {
        display: flex;
        align-items: center;
        width: 100%;
        gap: 14px;
        padding: 10px;
        color: var(--text);
        text-align: left;
        background: var(--panel);
        border: 1px solid var(--border);
        border-radius: 26px;
        box-shadow: var(--soft-shadow);
        transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
      }

      .task-card:hover {
        border-color: rgba(var(--accent-rgb), 0.55);
        transform: translateY(-1px);
      }

      .task-card.completed {
        background: rgba(var(--accent-rgb), 0.1);
        border-color: rgba(var(--accent-rgb), 0.34);
        animation: task-pop 260ms ease-out;
      }

      .task-main {
        display: flex;
        align-items: center;
        flex: 1 1 auto;
        gap: 14px;
        min-width: 0;
        padding: 4px;
        color: inherit;
        background: transparent;
        border: 0;
        text-align: left;
      }

      .task-icon {
        display: grid;
        width: 42px;
        height: 42px;
        flex: 0 0 auto;
        place-items: center;
        color: var(--muted);
        background: var(--muted-panel);
        border: 1px solid var(--border);
        border-radius: 17px;
      }

      .task-card.completed .task-icon {
        color: #fff;
        background: var(--accent-strong);
        border-color: var(--accent-strong);
      }

      .task-body {
        min-width: 0;
        flex: 1 1 auto;
      }

      .task-title {
        display: block;
        overflow-wrap: anywhere;
        font-weight: 800;
        line-height: 1.35;
      }

      .task-card.completed .task-title {
        color: var(--accent);
        text-decoration: line-through;
      }

      .points {
        display: inline-flex;
        margin-top: 6px;
        padding: 4px 9px;
        color: var(--muted);
        background: var(--muted-panel);
        border-radius: var(--radius-pill);
        font-size: 11px;
        font-weight: 850;
      }

      .task-actions {
        display: flex;
        flex: 0 0 auto;
        gap: 7px;
        padding-right: 2px;
      }

      @media (max-width: 460px) {
        .target-toolbar {
          align-items: stretch;
          flex-direction: column;
        }

        .focus-head,
        .age-mode-card {
          align-items: stretch;
          flex-direction: column;
        }

        .home-insight-grid {
          grid-template-columns: 1fr;
        }

        .next-suggestion-card {
          align-items: stretch;
          flex-direction: column;
        }

        .suggestion-action {
          width: 100%;
        }

        .quick-target-footer {
          flex-direction: column;
        }

        .quick-target-footer .soft-button,
        .quick-target-footer .primary-button {
          width: 100%;
        }

        .age-mode-card p {
          max-width: none;
          text-align: left;
        }

        .target-actions {
          display: grid;
          grid-template-columns: repeat(2, minmax(0, 1fr));
        }

        .target-actions .soft-button {
          width: 100%;
        }

        .task-card {
          align-items: stretch;
          flex-direction: column;
        }

        .task-actions {
          justify-content: flex-end;
          padding: 0 4px 4px;
        }

        .form-grid.two {
          grid-template-columns: 1fr;
        }

        .level-hero {
          align-items: stretch;
          flex-direction: column;
        }

        .level-score {
          place-items: start;
        }

        .stat-cards.compact,
        .badge-grid,
        .export-actions {
          grid-template-columns: 1fr;
        }

        .history-detail,
        .weekly-row {
          align-items: stretch;
          flex-direction: column;
        }

        .history-detail span {
          text-align: left;
        }
      }

      .tracker {
        padding: 18px;
      }

      .tracker h3 {
        margin-bottom: 14px;
        text-align: center;
        font-size: 16px;
        font-weight: 900;
      }

      .tracker-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
      }

      .tracker-button {
        display: flex;
        min-height: 78px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 7px;
        padding: 10px;
        color: var(--muted);
        background: var(--muted-panel);
        border: 1px solid var(--border);
        border-radius: 20px;
        font-size: 12px;
        font-weight: 850;
        transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
      }

      .tracker-button:hover {
        transform: translateY(-1px);
      }

      .tracker-button.low.active {
        color: var(--rose);
        background: rgba(244, 63, 94, 0.1);
        border-color: rgba(244, 63, 94, 0.3);
      }

      .tracker-button.stable.active {
        color: var(--sky);
        background: rgba(14, 165, 233, 0.1);
        border-color: rgba(14, 165, 233, 0.3);
      }

      .tracker-button.high.active {
        color: var(--accent);
        background: rgba(var(--accent-rgb), 0.1);
        border-color: rgba(var(--accent-rgb), 0.3);
      }

      .tab-wrap {
        animation: soft-in 260ms ease-out both;
      }

      .sholat-grid {
        display: grid;
        gap: 18px;
      }

      .center-panel {
        padding: 20px;
        text-align: center;
      }

      .center-panel > .icon {
        margin: 0 auto 14px;
        color: var(--accent);
      }

      .panel-title {
        font-size: 20px;
        font-weight: 900;
      }

      .panel-subtitle {
        margin: 8px 0 20px;
        color: var(--muted);
        font-size: 14px;
        line-height: 1.45;
      }

      .compass-visual {
        position: relative;
        display: grid;
        width: 210px;
        height: 210px;
        margin: 0 auto;
        place-items: center;
        background: var(--muted-panel);
        border: 4px solid var(--border);
        border-radius: 50%;
      }

      .compass-visual span {
        position: absolute;
        color: var(--muted);
        font-size: 12px;
        font-weight: 900;
      }

      .compass-visual .north {
        top: 12px;
        color: var(--rose);
      }

      .compass-visual .south {
        bottom: 12px;
      }

      .compass-visual .west {
        left: 12px;
      }

      .compass-visual .east {
        right: 12px;
      }

      .axis-v,
      .needle {
        position: absolute;
        width: 4px;
        height: 144px;
        border-radius: 99px;
      }

      .axis-v {
        background: var(--border);
      }

      .axis-h {
        position: absolute;
        width: 144px;
        height: 4px;
        background: var(--border);
        border-radius: 99px;
      }

      .needle {
        background: linear-gradient(to top, transparent, var(--accent-strong) 42%, var(--accent-strong));
        transform: rotate(-65deg);
        transform-origin: 50% 50%;
        transition: transform 700ms cubic-bezier(0.2, 0.9, 0.2, 1);
      }

      .needle::before {
        position: absolute;
        top: -9px;
        left: -5px;
        width: 0;
        height: 0;
        border-right: 7px solid transparent;
        border-bottom: 12px solid var(--accent-strong);
        border-left: 7px solid transparent;
        content: "";
      }

      .compass-dot {
        position: relative;
        z-index: 1;
        width: 18px;
        height: 18px;
        background: var(--accent-strong);
        border: 2px solid var(--panel-solid);
        border-radius: 50%;
      }

      .schedule-card {
        padding: 20px;
      }

      .schedule-card + .gratitude-card {
        margin-top: 24px;
      }

      .location-card {
        position: relative;
        overflow: hidden;
        display: grid;
        gap: 12px;
        margin-bottom: 16px;
        min-height: 136px;
        padding: 18px;
        background:
          radial-gradient(circle at 92% 0%, rgba(14, 165, 233, 0.14), transparent 34%),
          linear-gradient(135deg, rgba(239, 249, 255, 0.92), rgba(224, 246, 255, 0.58)),
          rgba(14, 165, 233, 0.08);
        border: 1px solid rgba(14, 165, 233, 0.18);
        border-radius: 26px;
        box-shadow: var(--soft-shadow);
      }

      body.dark .location-card {
        background:
          radial-gradient(circle at 92% 0%, rgba(14, 165, 233, 0.18), transparent 34%),
          linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(14, 116, 144, 0.18)),
          var(--panel);
      }

      .location-top {
        position: relative;
        z-index: 1;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
      }

      .location-title {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 14px;
        font-weight: 900;
      }

      .location-title .icon {
        color: var(--sky);
      }

      .location-pin-custom,
      .location-button-icon {
        position: relative;
        display: inline-grid;
        width: 22px;
        height: 22px;
        flex: 0 0 auto;
        place-items: center;
        color: var(--sky);
      }

      .location-pin-custom::before,
      .location-button-icon::before {
        width: 16px;
        height: 16px;
        background: linear-gradient(145deg, #38bdf8, #0284c7);
        border: 2px solid rgba(255, 255, 255, 0.92);
        border-radius: 50% 50% 50% 12%;
        box-shadow: 0 8px 16px rgba(2, 132, 199, 0.2);
        transform: rotate(-45deg);
        content: "";
      }

      .location-pin-custom::after,
      .location-button-icon::after {
        position: absolute;
        width: 5px;
        height: 5px;
        background: #fff;
        border-radius: 50%;
        content: "";
      }

      .location-note {
        position: relative;
        z-index: 1;
        color: var(--muted);
        font-size: 12px;
        line-height: 1.45;
      }

      .location-art {
        display: none;
      }

      .location-art::before {
        display: none;
        content: none;
      }

      .location-art::after {
        display: none;
        content: none;
      }

      .schedule-title {
        display: flex;
        align-items: center;
        gap: 9px;
        margin-bottom: 14px;
        font-size: 18px;
        font-weight: 900;
      }

      .schedule-title .icon {
        color: var(--accent);
      }

      .schedule-list {
        display: grid;
        gap: 10px;
      }

      .schedule-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        min-height: 54px;
        padding: 13px 14px;
        background: var(--muted-panel);
        border: 1px solid var(--border);
        border-radius: 18px;
        font-weight: 850;
        transition: transform 150ms ease, background 150ms ease;
      }

      .schedule-row.active {
        color: #fff;
        background: linear-gradient(135deg, var(--accent), var(--accent-strong));
        border-color: var(--accent-strong);
        transform: scale(1.015);
      }

      .schedule-time {
        display: inline-flex;
        align-items: center;
        gap: 12px;
      }

      .schedule-row time {
        font-weight: 900;
        font-variant-numeric: tabular-nums;
      }

      .schedule-time .icon {
        color: var(--accent);
      }

      .schedule-row.active .schedule-time .icon {
        color: rgba(255, 255, 255, 0.92);
      }

      .tasbih-wrap {
        display: grid;
        min-height: 62vh;
        place-items: center;
      }

      .tasbih-panel {
        position: relative;
        overflow: hidden;
        width: min(100%, 470px);
        padding: 30px;
        text-align: center;
      }

      .tasbih-reset {
        position: absolute;
        top: 16px;
        right: 16px;
      }

      .tasbih-top {
        display: grid;
        gap: 6px;
        margin-bottom: 22px;
      }

      .tasbih-label {
        color: var(--muted);
        font-size: 13px;
        font-weight: 900;
        text-transform: uppercase;
      }

      .tasbih-top h2 {
        font-size: 30px;
        line-height: 1.1;
        font-weight: 900;
      }

      .tasbih-top span {
        color: var(--muted);
        font-size: 13px;
        font-weight: 800;
      }

      .tasbih-count {
        font-size: 66px;
        line-height: 0.95;
        font-weight: 950;
        font-variant-numeric: tabular-nums;
      }

      .tasbih-button {
        display: grid;
        width: 222px;
        height: 222px;
        margin: 0 auto;
        padding: 14px;
        place-items: center;
        color: var(--text);
        background:
          conic-gradient(var(--accent-strong) var(--tasbih-progress), rgba(var(--accent-rgb), 0.14) 0),
          var(--muted-panel);
        border: 0;
        border-radius: 50%;
        box-shadow: 0 24px 54px rgba(var(--accent-rgb), 0.24);
        transition: transform 150ms ease, box-shadow 150ms ease, filter 150ms ease;
      }

      .tasbih-button:hover {
        filter: saturate(1.05);
        transform: translateY(-2px);
      }

      .tasbih-button:active {
        transform: scale(0.96);
      }

      .tasbih-ring {
        display: grid;
        width: 100%;
        height: 100%;
        place-items: center;
        background:
          linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.68)),
          var(--panel-solid);
        border: 1px solid rgba(var(--accent-rgb), 0.18);
        border-radius: 50%;
        box-shadow: inset 0 0 0 12px rgba(var(--accent-rgb), 0.08);
      }

      body.dark .tasbih-ring {
        background: linear-gradient(180deg, rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.88));
      }

      .tasbih-ring small {
        margin-top: -26px;
        color: var(--accent);
        font-size: 13px;
        font-weight: 950;
      }

      .tasbih-presets {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin-top: 24px;
      }

      .tasbih-preset {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        min-height: 52px;
        padding: 10px 12px;
        color: var(--text);
        background: var(--muted-panel);
        border: 1px solid var(--border);
        border-radius: 18px;
        text-align: left;
        transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
      }

      .tasbih-preset:hover {
        transform: translateY(-1px);
      }

      .tasbih-preset strong {
        min-width: 0;
        overflow-wrap: anywhere;
        font-size: 13px;
        font-weight: 900;
      }

      .tasbih-preset span {
        flex: 0 0 auto;
        color: var(--muted);
        font-size: 12px;
        font-weight: 900;
      }

      .tasbih-preset.active {
        color: #fff;
        background: var(--accent-strong);
        border-color: var(--accent-strong);
      }

      .tasbih-preset.active span {
        color: rgba(255, 255, 255, 0.82);
      }

      .stats-grid {
        display: grid;
        gap: 18px;
      }

      .progress-wrap {
        display: grid;
        gap: 18px;
        width: 100%;
      }

      .level-hero {
        display: flex;
        align-items: center;
        gap: 18px;
        padding: 22px;
      }

      .level-icon {
        display: grid;
        width: 72px;
        height: 72px;
        flex: 0 0 auto;
        place-items: center;
        color: #fff;
        background: linear-gradient(135deg, var(--accent), var(--teal));
        border-radius: 24px;
        box-shadow: var(--soft-shadow);
      }

      .level-copy {
        min-width: 0;
        flex: 1 1 auto;
      }

      .eyebrow {
        color: var(--accent);
        font-size: 12px;
        font-weight: 950;
        text-transform: uppercase;
      }

      .level-copy h2 {
        margin-top: 3px;
        font-size: 24px;
        font-weight: 950;
      }

      .level-copy p:not(.eyebrow) {
        margin-top: 5px;
        color: var(--muted);
        font-size: 13px;
        line-height: 1.45;
      }

      .level-score {
        display: grid;
        min-width: 90px;
        place-items: center;
        padding: 13px;
        background: var(--muted-panel);
        border-radius: 20px;
      }

      .level-score strong {
        font-size: 22px;
        font-weight: 950;
      }

      .level-score span {
        color: var(--muted);
        font-size: 11px;
        font-weight: 900;
        text-transform: uppercase;
      }

      .progress-grid {
        display: grid;
        gap: 18px;
      }

      .stats-hero {
        padding: 24px;
        text-align: center;
      }

      .sprout-box {
        display: grid;
        width: 112px;
        height: 112px;
        margin: 0 auto 16px;
        place-items: center;
        color: var(--accent);
        background: rgba(var(--accent-rgb), 0.1);
        border: 1px solid rgba(var(--accent-rgb), 0.18);
        border-radius: 24px;
      }

      .stat-cards {
        display: grid;
        gap: 14px;
      }

      .stat-cards.compact {
        grid-template-columns: repeat(3, minmax(0, 1fr));
      }

      .stat-card {
        padding: 20px;
        text-align: center;
      }

      .stat-card .icon {
        margin: 0 auto 8px;
        color: var(--accent);
      }

      .stat-card .award {
        color: var(--amber);
      }

      .stat-number {
        margin-bottom: 4px;
        font-size: 30px;
        font-weight: 900;
      }

      .stat-label {
        color: var(--muted);
        font-size: 12px;
        font-weight: 900;
        text-transform: uppercase;
      }

      .calendar-card,
      .weekly-card,
      .badge-card,
      .reminder-card,
      .export-card {
        padding: 18px;
      }

      .calendar-weekdays,
      .calendar-grid {
        display: grid;
        grid-template-columns: repeat(7, minmax(0, 1fr));
        gap: 8px;
      }

      .calendar-weekdays {
        margin-top: 16px;
        color: var(--muted);
        font-size: 11px;
        font-weight: 950;
        text-align: center;
      }

      .calendar-grid {
        margin-top: 8px;
      }

      .calendar-day {
        display: grid;
        min-height: 42px;
        place-items: center;
        color: var(--muted);
        background: var(--muted-panel);
        border: 1px solid var(--border);
        border-radius: 14px;
        font-weight: 900;
      }

      .calendar-day.empty {
        visibility: hidden;
      }

      .calendar-day.future {
        opacity: 0.42;
        cursor: not-allowed;
      }

      .calendar-day.partial {
        color: #0369a1;
        background: rgba(14, 165, 233, 0.12);
        border-color: rgba(14, 165, 233, 0.22);
      }

      .calendar-day.full {
        color: #fff;
        background: var(--accent-strong);
        border-color: var(--accent-strong);
      }

      .calendar-day.today {
        color: #fff;
        background: #0284c7;
        border-color: #0284c7;
        box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.18);
      }

      .history-detail {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin-top: 14px;
        padding: 12px;
        background: var(--muted-panel);
        border-radius: 16px;
      }

      .history-detail span {
        color: var(--muted);
        font-size: 13px;
        text-align: right;
      }

      .weekly-list,
      .settings-mini {
        display: grid;
        gap: 12px;
        margin-top: 16px;
      }

      .weekly-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 12px;
        background: var(--muted-panel);
        border: 1px solid var(--border);
        border-radius: 18px;
      }

      .weekly-info {
        min-width: 0;
        flex: 1 1 auto;
      }

      .weekly-info strong,
      .weekly-info span {
        display: block;
      }

      .weekly-info span {
        margin-top: 4px;
        color: var(--muted);
        font-size: 12px;
        font-weight: 800;
      }

      .mini-progress {
        height: 9px;
        margin-top: 9px;
        overflow: hidden;
        background: rgba(15, 23, 42, 0.08);
        border-radius: 999px;
      }

      .mini-progress i {
        display: block;
        height: 100%;
        background: linear-gradient(90deg, var(--accent), var(--teal));
        border-radius: inherit;
      }

      .stepper {
        display: flex;
        flex: 0 0 auto;
        gap: 7px;
      }

      .badge-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        margin-top: 16px;
      }

      .badge-item {
        display: grid;
        gap: 7px;
        min-height: 122px;
        padding: 14px;
        color: var(--muted);
        background: var(--muted-panel);
        border: 1px solid var(--border);
        border-radius: 18px;
      }

      .badge-item span {
        display: grid;
        width: 38px;
        height: 38px;
        place-items: center;
        background: rgba(100, 116, 139, 0.1);
        border-radius: 14px;
      }

      .badge-item strong {
        color: var(--text);
        font-size: 14px;
      }

      .badge-item small {
        line-height: 1.4;
      }

      .badge-item.active {
        color: var(--accent);
        background: rgba(var(--accent-rgb), 0.12);
        border-color: rgba(var(--accent-rgb), 0.28);
      }

      .check-row {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 12px;
        background: var(--muted-panel);
        border: 1px solid var(--border);
        border-radius: 16px;
        font-weight: 850;
      }

      .check-row input {
        width: 18px;
        height: 18px;
        accent-color: var(--accent-strong);
      }

      .compact-field {
        margin-top: 0;
      }

      .reminder-status {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-top: 14px;
        padding: 14px;
        color: var(--muted);
        background: var(--muted-panel);
        border: 1px solid var(--border);
        border-radius: 20px;
      }

      .reminder-status.active {
        color: var(--accent);
        background: rgba(var(--accent-rgb), 0.1);
        border-color: rgba(var(--accent-rgb), 0.26);
      }

      .reminder-status > span {
        display: grid;
        width: 42px;
        height: 42px;
        flex: 0 0 auto;
        place-items: center;
        color: #fff;
        background: var(--accent-strong);
        border-radius: 17px;
      }

      .reminder-status strong,
      .reminder-status small {
        display: block;
      }

      .reminder-status strong {
        color: var(--text);
        font-size: 14px;
        font-weight: 950;
      }

      .reminder-status small {
        margin-top: 3px;
        font-size: 12px;
        font-weight: 800;
      }

      .reminder-options {
        display: grid;
        gap: 10px;
        margin-top: 14px;
      }

      .switch-row {
        justify-content: space-between;
        gap: 14px;
      }

      .switch-row span {
        display: grid;
        min-width: 0;
        gap: 3px;
      }

      .switch-row strong {
        color: var(--text);
        font-size: 13px;
        font-weight: 950;
      }

      .switch-row small {
        color: var(--muted);
        font-size: 12px;
        font-weight: 750;
        line-height: 1.35;
      }

      .switch-row input[type="checkbox"] {
        flex: 0 0 auto;
      }

      .reminder-time-field {
        padding: 12px;
        background: var(--muted-panel);
        border: 1px solid var(--border);
        border-radius: 16px;
      }

      .reminder-permission {
        width: 100%;
        margin-top: 14px;
      }

      .export-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin-top: 18px;
      }

      .profile-wrap {
        display: grid;
        gap: 18px;
      }

      .profile-card {
        display: flex;
        align-items: center;
        gap: 16px;
        padding: 20px;
      }

      .avatar {
        display: grid;
        width: 76px;
        height: 76px;
        flex: 0 0 auto;
        place-items: center;
        color: #fff;
        background: linear-gradient(135deg, var(--accent), var(--teal));
        border-radius: 24px;
        font-size: 28px;
        font-weight: 900;
      }

      .profile-body {
        min-width: 0;
      }

      .profile-name {
        overflow: hidden;
        font-size: 20px;
        font-weight: 900;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .profile-email {
        overflow: hidden;
        margin-top: 4px;
        color: var(--muted);
        font-size: 14px;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .level-pill {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        margin-top: 10px;
        padding: 6px 10px;
        color: #92400e;
        background: #fef3c7;
        border-radius: var(--radius-pill);
        font-size: 12px;
        font-weight: 850;
      }

      body.dark .level-pill {
        color: #fcd34d;
        background: rgba(146, 64, 14, 0.38);
      }

      .admin-link-button {
        width: fit-content;
        margin-top: 10px;
        text-decoration: none;
      }

      .settings-card {
        overflow: hidden;
      }

      .profile-settings-card {
        padding: 16px;
      }

      .profile-settings-card .settings-row {
        padding: 0 0 14px;
      }

      .settings-form-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px;
        align-items: end;
      }

      .settings-form-row .soft-button {
        min-height: 46px;
        white-space: nowrap;
      }

      .theme-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
      }

      .theme-chip {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 10px;
        min-height: 48px;
        padding: 10px 12px;
        color: var(--text);
        background: var(--muted-panel);
        border: 1px solid var(--border);
        border-radius: 18px;
        font-weight: 900;
        transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
      }

      .theme-chip:hover {
        transform: translateY(-1px);
      }

      .theme-chip.active {
        color: #fff;
        background: var(--accent-strong);
        border-color: var(--accent-strong);
      }

      .theme-dot {
        width: 18px;
        height: 18px;
        flex: 0 0 auto;
        border: 2px solid rgba(255, 255, 255, 0.72);
        border-radius: 50%;
        box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08);
      }

      .theme-dot.mint {
        background: #059669;
      }

      .theme-dot.sky {
        background: #0284c7;
      }

      .theme-dot.violet {
        background: #7c3aed;
      }

      .theme-dot.rose {
        background: #e11d48;
      }

      .settings-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        width: 100%;
        padding: 16px;
        color: var(--text);
        background: transparent;
        border: 0;
        border-bottom: 1px solid var(--border);
        text-align: left;
      }

      .settings-row:last-child {
        border-bottom: 0;
      }

      .settings-left {
        display: flex;
        align-items: center;
        min-width: 0;
        gap: 12px;
      }

      .settings-icon {
        display: grid;
        width: 40px;
        height: 40px;
        flex: 0 0 auto;
        place-items: center;
        color: var(--muted);
        background: var(--muted-panel);
        border-radius: 16px;
      }

      .settings-icon.rose {
        color: var(--rose);
        background: rgba(244, 63, 94, 0.1);
      }

      .settings-title {
        font-weight: 900;
      }

      .settings-note {
        margin-top: 4px;
        color: var(--muted);
        font-size: 12px;
      }

      .switch {
        position: relative;
        display: inline-block;
        width: 44px;
        height: 24px;
        flex: 0 0 auto;
      }

      .switch input {
        position: absolute;
        opacity: 0;
      }

      .switch-track {
        position: absolute;
        inset: 0;
        background: #cbd5e1;
        border-radius: 999px;
      }

      .switch-track::before {
        position: absolute;
        top: 2px;
        left: 2px;
        width: 20px;
        height: 20px;
        background: #fff;
        border-radius: 50%;
        transition: transform 160ms ease;
        content: "";
      }

      .switch input:checked + .switch-track {
        background: var(--accent-strong);
      }

      .switch input:checked + .switch-track::before {
        transform: translateX(20px);
      }

      .bottom-nav {
        position: fixed;
        z-index: 30;
        right: 0;
        bottom: 0;
        left: 0;
        padding-bottom: env(safe-area-inset-bottom);
        background: var(--panel);
        border-top: 1px solid var(--border);
        backdrop-filter: blur(14px);
        border-radius: 26px 26px 0 0;
        box-shadow: 0 -18px 40px rgba(15, 23, 42, 0.08);
      }

      .bottom-nav-inner {
        display: flex;
        height: 80px;
        align-items: center;
        justify-content: space-around;
        padding: 0 8px;
      }

      .nav-button {
        position: relative;
        display: flex;
        width: 64px;
        height: 100%;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        color: var(--muted);
        background: transparent;
        border: 0;
      }

      .nav-button::before {
        position: absolute;
        top: 0;
        width: 40px;
        height: 4px;
        background: var(--accent-strong);
        border-radius: 0 0 6px 6px;
        opacity: 0;
        content: "";
      }

      .nav-button.active::before {
        opacity: 1;
      }

      .nav-icon {
        display: grid;
        width: 42px;
        height: 42px;
        place-items: center;
        border-radius: var(--radius);
      }

      .nav-button.active {
        color: var(--accent);
      }

      .nav-button.active .nav-icon {
        background: rgba(var(--accent-rgb), 0.12);
      }

      .nav-label {
        font-size: 10px;
        font-weight: 900;
      }

      .mobile-target-fab {
        position: fixed;
        z-index: 42;
        right: 18px;
        bottom: calc(92px + env(safe-area-inset-bottom));
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        min-width: 118px;
        min-height: 50px;
        padding: 12px 16px;
        color: #fff;
        background: linear-gradient(135deg, var(--accent), var(--teal));
        border: 0;
        border-radius: var(--radius-pill);
        box-shadow: 0 18px 36px rgba(5, 150, 105, 0.24);
        font-size: 13px;
        font-weight: 950;
      }

      .sidebar {
        display: none;
      }

      .sidebar-art {
        display: none;
      }

      .modal-backdrop {
        position: fixed;
        z-index: 60;
        inset: 0;
        display: grid;
        padding: 20px;
        place-items: center;
        background: rgba(0, 0, 0, 0.45);
        backdrop-filter: blur(10px);
      }

      .modal {
        width: min(100%, 380px);
        padding: 28px;
        text-align: center;
        animation: pop-in 180ms ease-out both;
      }

      .modal.wide {
        width: min(100%, 520px);
        text-align: left;
      }

      .quick-target-modal {
        max-height: min(82vh, 680px);
        overflow: hidden;
      }

      .modal-icon {
        display: grid;
        width: 78px;
        height: 78px;
        margin: 0 auto 18px;
        place-items: center;
        color: var(--accent);
        background: rgba(var(--accent-rgb), 0.1);
        border-radius: 22px;
      }

      .modal-header {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 16px;
        margin-bottom: 18px;
      }

      .modal-header h2 {
        margin-bottom: 4px;
      }

      .modal-header p {
        margin: 0;
      }

      .modal-close {
        flex: 0 0 auto;
      }

      .quick-target-list {
        display: grid;
        gap: 10px;
        max-height: min(52vh, 440px);
        overflow: auto;
        padding-right: 4px;
      }

      .quick-target-row {
        display: flex;
        align-items: center;
        width: 100%;
        gap: 12px;
        padding: 11px;
        color: var(--text);
        text-align: left;
        background: var(--muted-panel);
        border: 1px solid var(--border);
        border-radius: 20px;
        transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
      }

      .quick-target-row:hover {
        border-color: rgba(var(--accent-rgb), 0.42);
        transform: translateY(-1px);
      }

      .quick-target-row.completed {
        color: var(--accent);
        background: rgba(var(--accent-rgb), 0.1);
        border-color: rgba(var(--accent-rgb), 0.32);
      }

      .quick-target-icon,
      .quick-target-check {
        display: grid;
        width: 38px;
        height: 38px;
        flex: 0 0 auto;
        place-items: center;
        color: var(--muted);
        background: var(--panel);
        border: 1px solid var(--border);
        border-radius: 15px;
      }

      .quick-target-row.completed .quick-target-icon,
      .quick-target-row.completed .quick-target-check {
        color: #fff;
        background: var(--accent-strong);
        border-color: var(--accent-strong);
      }

      .quick-target-copy {
        min-width: 0;
        flex: 1 1 auto;
      }

      .quick-target-copy strong {
        display: block;
        overflow-wrap: anywhere;
        font-size: 14px;
        font-weight: 900;
        line-height: 1.3;
      }

      .quick-target-copy small {
        display: inline-flex;
        margin-top: 5px;
        color: var(--muted);
        font-size: 11px;
        font-weight: 850;
      }

      .quick-target-row.completed .quick-target-copy small {
        color: var(--accent);
      }

      .quick-target-footer {
        display: flex;
        justify-content: flex-end;
        gap: 10px;
        margin-top: 16px;
      }

      .form-grid {
        display: grid;
        gap: 14px;
      }

      .form-grid.two {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .form-field {
        display: grid;
        gap: 7px;
      }

      .form-field span {
        color: var(--muted);
        font-size: 12px;
        font-weight: 900;
        text-transform: uppercase;
      }

      .form-field input,
      .form-field select {
        width: 100%;
        min-height: 46px;
        padding: 11px 13px;
        color: var(--text);
        background: var(--muted-panel);
        border: 1px solid var(--border);
        border-radius: 16px;
        outline: none;
      }

      .form-actions {
        display: flex;
        gap: 10px;
        margin-top: 18px;
      }

      .form-actions .soft-button,
      .form-actions .primary-button {
        flex: 1 1 0;
      }

      .download-link {
        text-decoration: none;
      }

      .export-preview-modal {
        max-height: min(88vh, 760px);
        overflow: auto;
      }

      .export-preview-image {
        display: block;
        width: min(100%, 360px);
        margin: 0 auto 16px;
        background: #fff;
        border: 1px solid var(--border);
        border-radius: 18px;
        box-shadow: var(--soft-shadow);
      }

      @media (max-width: 460px) {
        .form-grid.two {
          grid-template-columns: 1fr;
        }

        .form-actions {
          flex-direction: column;
        }
      }

      .modal h2 {
        margin-bottom: 8px;
        font-size: 24px;
        font-weight: 900;
      }

      .modal p {
        margin-bottom: 22px;
        color: var(--muted);
        font-size: 14px;
        line-height: 1.55;
      }

      .modal .modal-header p {
        margin: 0;
      }

      .spin {
        animation: spin 800ms linear infinite;
      }

      .desktop-only {
        display: none;
      }

      @keyframes soft-in {
        from {
          opacity: 0;
          transform: translateY(8px);
        }
        to {
          opacity: 1;
          transform: translateY(0);
        }
      }

      @keyframes pop-in {
        from {
          opacity: 0;
          transform: translateY(10px) scale(0.98);
        }
        to {
          opacity: 1;
          transform: translateY(0) scale(1);
        }
      }

      @keyframes task-pop {
        0% {
          transform: scale(0.98);
        }
        70% {
          transform: scale(1.012);
        }
        100% {
          transform: scale(1);
        }
      }

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

      .print-report {
        display: none;
      }

      @media print {
        body {
          background: #fff !important;
          color: #0f172a !important;
        }

        body > *:not(.print-report) {
          display: none !important;
        }

        .print-report {
          display: block !important;
          padding: 28px;
          font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
        }

        .print-report header {
          padding-bottom: 20px;
          border-bottom: 3px solid #065f46;
        }

        .print-report h1 {
          color: #065f46;
          font-size: 34px;
          font-weight: 950;
        }

        .print-report header p {
          margin-top: 6px;
          color: #475569;
          font-weight: 700;
        }

        .print-grid {
          display: grid;
          grid-template-columns: repeat(3, 1fr);
          gap: 12px;
          margin: 22px 0;
        }

        .print-grid article,
        .print-card {
          padding: 18px;
          border: 1px solid #dcebe8;
          border-radius: 18px;
        }

        .print-grid span {
          display: block;
          color: #64748b;
          font-size: 11px;
          font-weight: 900;
          text-transform: uppercase;
        }

        .print-grid strong {
          display: block;
          margin-top: 8px;
          color: #065f46;
          font-size: 28px;
          font-weight: 950;
        }

        .print-grid p,
        .print-card p,
        .print-card li {
          color: #334155;
          line-height: 1.5;
        }

        .print-card {
          margin-top: 14px;
        }

        .print-card h2 {
          margin-bottom: 8px;
          font-size: 18px;
          font-weight: 950;
        }
      }

      @media (max-width: 460px) {
        .tasbih-panel {
          padding: 24px 18px;
        }

        .tasbih-button {
          width: 190px;
          height: 190px;
        }

        .tasbih-count {
          font-size: 56px;
        }

        .tasbih-presets,
        .settings-form-row,
        .theme-grid {
          grid-template-columns: 1fr;
        }

        .settings-form-row .soft-button {
          width: 100%;
        }
      }

      @media (min-width: 768px) {
        .shell {
          padding-bottom: 0;
        }

        .content {
          width: auto;
          max-width: none;
          margin-left: 256px;
        }

        .header {
          padding: 32px 32px 22px;
        }

        .greeting {
          font-size: 30px;
        }

        .daily-header-grid {
          grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
        }

        main {
          padding: 0 32px 36px;
        }

        .main-grid {
          display: grid;
          grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
          gap: 28px;
          align-items: start;
        }

        .sidebar-column {
          position: sticky;
          top: 24px;
          display: grid;
          gap: 26px;
        }

        .mobile-only {
          display: none;
        }

        .desktop-only {
          display: block;
        }

        .bottom-nav {
          display: none;
        }

        .sidebar {
          position: fixed;
          z-index: 20;
          top: 0;
          bottom: 0;
          left: 0;
          display: flex;
          width: 256px;
          flex-direction: column;
          padding: 22px;
          background: var(--panel);
          border-right: 1px solid var(--border);
          border-radius: 0 32px 32px 0;
          box-shadow: 18px 0 45px rgba(15, 23, 42, 0.06);
          backdrop-filter: blur(14px);
          overflow: hidden;
        }

        .sidebar-brand {
          display: flex;
          align-items: center;
          gap: 12px;
          margin-bottom: 38px;
        }

        .sidebar-brand-mark {
          display: grid;
          width: 42px;
          height: 42px;
          place-items: center;
          color: #fff;
          background: linear-gradient(135deg, var(--accent), var(--teal));
          border-radius: var(--radius);
        }

        .sidebar-title {
          font-size: 20px;
          font-weight: 900;
        }

        .sidebar-nav {
          display: grid;
          gap: 8px;
        }

        .sidebar-target-button {
          display: flex;
          align-items: center;
          gap: 10px;
          margin: -2px 0 8px 36px;
          padding: 10px 12px;
          color: var(--accent-strong);
          background: rgba(var(--accent-rgb), 0.1);
          border: 1px solid rgba(var(--accent-rgb), 0.18);
          border-radius: 18px;
          font-size: 12px;
          font-weight: 950;
        }

        .sidebar-target-button span {
          display: grid;
          width: 26px;
          height: 26px;
          place-items: center;
          color: #fff;
          background: var(--accent-strong);
          border-radius: 11px;
        }

        .sidebar-target-button:hover {
          background: rgba(var(--accent-rgb), 0.16);
        }

        .sidebar-nav .nav-button {
          width: 100%;
          height: auto;
          min-height: 48px;
          flex-direction: row;
          justify-content: flex-start;
          padding: 12px 14px;
          gap: 12px;
          border-radius: var(--radius);
          font-size: 15px;
          font-weight: 850;
        }

        .sidebar-nav .nav-button::before {
          display: none;
        }

        .sidebar-nav .nav-button.active {
          color: #fff;
          background: var(--accent-strong);
        }

        .sidebar-nav .nav-button.active .nav-icon {
          color: #fff;
          background: transparent;
        }

        .sidebar-nav .nav-icon {
          width: 24px;
          height: 24px;
          background: transparent;
        }

        .sidebar-profile {
          margin-top: auto;
          padding: 14px;
          background:
            radial-gradient(circle at 100% 0%, rgba(var(--accent-rgb), 0.16), transparent 46%),
            linear-gradient(135deg, rgba(var(--accent-rgb), 0.08), var(--muted-panel));
          border: 1px solid var(--border);
          border-radius: var(--radius);
        }

        .sidebar-art {
          display: none;
        }

        .sidebar-art::before {
          display: none;
          content: none;
        }

        .sidebar-art::after {
          display: none;
          content: none;
        }

        body.dark .sidebar-art {
          display: none;
        }

        .sidebar-profile-inner {
          display: flex;
          align-items: center;
          gap: 10px;
        }

        .sidebar-avatar {
          display: grid;
          width: 40px;
          height: 40px;
          flex: 0 0 auto;
          place-items: center;
          color: #fff;
          background: linear-gradient(135deg, var(--accent), var(--teal));
          border-radius: var(--radius);
          font-weight: 900;
        }

        .sidebar-name,
        .sidebar-level {
          overflow: hidden;
          text-overflow: ellipsis;
          white-space: nowrap;
        }

        .sidebar-name {
          font-size: 14px;
          font-weight: 900;
        }

        .sidebar-level {
          color: var(--muted);
          font-size: 12px;
        }

        .sholat-grid {
          width: min(100%, 960px);
          margin: 0 auto;
          grid-template-columns: minmax(300px, 0.9fr) minmax(320px, 1.1fr);
        }

        .stats-grid {
          width: min(100%, 860px);
          margin: 0 auto;
          grid-template-columns: 1.2fr 0.9fr;
        }

        .progress-wrap {
          width: min(100%, 980px);
          margin: 0 auto;
        }

        .progress-grid {
          grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        }

        .profile-wrap {
          width: min(100%, 680px);
          margin: 0 auto;
        }
      }

      @media (min-width: 1024px) {
        .content {
          margin-left: 288px;
        }

        .sidebar {
          width: 288px;
        }
      }
