:root {
  --orange: #F97316;
  --orange-dark: #EA580C;
  --orange-soft: #FFF1E7;
  --ink: #1F2937;
  --muted: #6B7280;
  --muted-2: #9CA3AF;
  --page: #F8FAFC;
  --surface: #FFFFFF;
  --surface-2: #F3F4F6;
  --border: #E7EAF0;
  --green: #16A34A;
  --green-soft: #DCFCE7;
  --yellow: #D97706;
  --yellow-soft: #FEF3C7;
  --red: #DC2626;
  --red-soft: #FEE2E2;
  --shadow: 0 12px 34px rgba(31, 41, 55, .055);
  --radius: 22px;
  color-scheme: light;
}
[data-theme="dark"] {
  --ink: #F3F4F6;
  --muted: #A8B0BD;
  --muted-2: #7C8798;
  --page: #111827;
  --surface: #1F2937;
  --surface-2: #273449;
  --border: #344154;
  --orange-soft: rgba(249, 115, 22, .15);
  --green-soft: rgba(22, 163, 74, .16);
  --yellow-soft: rgba(217, 119, 6, .16);
  --red-soft: rgba(220, 38, 38, .16);
  --shadow: 0 12px 34px rgba(0, 0, 0, .18);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(249, 115, 22, .25); outline-offset: 2px; }
.app-root { min-height: 100vh; }
/* Brand */
.brand { display: inline-flex; align-items: center; gap: 11px; min-width: 0; }
.brand-mark { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 14px; box-shadow: 0 6px 14px rgba(249,115,22,.2); }
.brand-name { font-size: 19px; font-weight: 800; letter-spacing: -.7px; color: var(--ink); }
.brand-sub { display: block; margin-top: 1px; color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: .055em; text-transform: uppercase; }
/* Onboarding */
.onboarding { min-height: 100vh; display: grid; place-items: center; padding: 30px 22px; background: radial-gradient(circle at 16% 14%, rgba(249,115,22,.10), transparent 25%), radial-gradient(circle at 88% 88%, rgba(249,115,22,.08), transparent 24%), var(--page); }
.onboard-wrap { width: min(1100px, 100%); }
.onboard-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.onboard-card { min-height: 570px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 20px; padding: clamp(26px, 5vw, 64px); border: 1px solid var(--border); border-radius: 34px; background: var(--surface); box-shadow: var(--shadow); overflow: hidden; animation: cardIn .55s cubic-bezier(.2,.8,.2,1) both; }
.onboard-copy { max-width: 460px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; color: var(--orange-dark); background: var(--orange-soft); font-size: 12px; font-weight: 800; letter-spacing: .025em; }
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(249,115,22,.12); }
.onboard-title { margin: 22px 0 14px; font-size: clamp(34px, 4.4vw, 54px); line-height: 1.08; letter-spacing: -2px; }
.onboard-title span { color: var(--orange); }
.onboard-desc { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.8; max-width: 420px; }
.onboard-art { display: grid; place-items: center; min-width: 0; }
.onboard-art img { display: block; width: min(100%, 470px); max-height: 390px; object-fit: contain; filter: drop-shadow(0 20px 18px rgba(31,41,55,.06)); }
.onboard-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 6px 0; }
.dots { display: flex; align-items: center; gap: 7px; }
.dot { width: 7px; height: 7px; border: 0; border-radius: 99px; background: var(--muted-2); opacity: .38; padding: 0; transition: width .25s ease, opacity .25s ease, background .25s ease; }
.dot.active { width: 26px; opacity: 1; background: var(--orange); }
.onboard-actions { display: flex; gap: 10px; align-items: center; }
/* Shared controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 0 17px; border: 1px solid transparent; border-radius: 13px; font-weight: 750; font-size: 13px; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { color: #fff; background: var(--orange); box-shadow: 0 7px 15px rgba(249,115,22,.18); }
.btn-primary:hover { background: var(--orange-dark); box-shadow: 0 9px 20px rgba(249,115,22,.24); }
.btn-secondary { color: var(--ink); border-color: var(--border); background: var(--surface); }
.btn-ghost { color: var(--muted); background: transparent; }
.btn-danger { color: var(--red); background: var(--red-soft); }
.btn-small { min-height: 36px; padding: 0 12px; border-radius: 10px; font-size: 12px; }
.icon-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; border: 1px solid var(--border); border-radius: 13px; background: var(--surface); color: var(--muted); transition: .2s ease; }
.icon-btn:hover { color: var(--orange); border-color: rgba(249,115,22,.38); background: var(--orange-soft); }
/* App layout */
.app-layout { min-height: 100vh; display: grid; grid-template-columns: 258px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 26px 18px 20px; border-right: 1px solid var(--border); background: var(--surface); z-index: 10; }
.sidebar-brand { padding: 0 12px 30px; }
.nav-label { padding: 0 13px; margin: 10px 0 9px; color: var(--muted-2); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.nav-list { display: grid; gap: 5px; }
.nav-item { width: 100%; display: flex; align-items: center; gap: 13px; padding: 12px 13px; border: 0; border-radius: 13px; color: var(--muted); background: transparent; text-align: left; font-size: 13px; font-weight: 700; transition: .2s ease; }
.nav-item:hover { color: var(--ink); background: var(--surface-2); }
.nav-item.active { color: var(--orange-dark); background: var(--orange-soft); }
.nav-item svg { width: 19px; height: 19px; flex: 0 0 19px; }
.sidebar-bottom { margin-top: auto; }
.sidebar-note { margin: 18px 6px 0; padding: 15px; border: 1px solid var(--border); border-radius: 16px; background: linear-gradient(145deg, var(--orange-soft), var(--surface)); }
.sidebar-note strong { display: block; font-size: 12px; margin-bottom: 5px; }
.sidebar-note span { display: block; color: var(--muted); font-size: 11px; line-height: 1.55; }
.main-area { min-width: 0; }
.topbar { height: 76px; position: sticky; top: 0; z-index: 8; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(20px, 4vw, 48px); border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--page) 90%, transparent); backdrop-filter: blur(16px); }
.topbar-title { font-size: 14px; font-weight: 800; letter-spacing: -.2px; }
.topbar-actions { display: flex; align-items: center; gap: 9px; }
.lang-select { height: 40px; padding: 0 12px; border: 1px solid var(--border); border-radius: 12px; color: var(--ink); background: var(--surface); font-size: 12px; font-weight: 750; }
.content { width: min(1370px, 100%); margin: 0 auto; padding: 34px clamp(20px, 4vw, 48px) 70px; animation: pageIn .32s ease both; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 25px; }
.page-heading h1 { margin: 0; font-size: clamp(24px, 3vw, 32px); letter-spacing: -1.2px; }
.page-heading p { margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
/* Dashboard */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 20px; align-items: center; min-height: 238px; padding: 28px 34px; margin-bottom: 22px; border: 1px solid var(--border); border-radius: 25px; background: linear-gradient(110deg, var(--surface), var(--orange-soft)); overflow: hidden; }
.hero-copy { max-width: 590px; }
.hero h1 { margin: 12px 0 10px; font-size: clamp(27px, 3vw, 39px); line-height: 1.12; letter-spacing: -1.5px; }
.hero p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; max-width: 500px; }
.hero-art { display: flex; align-items: center; justify-content: center; min-width: 0; height: 190px; }
.hero-art img { max-width: 100%; width: 300px; height: 210px; object-fit: contain; }
.stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; margin-bottom: 22px; }
.stat-card { display: flex; align-items: center; gap: 15px; padding: 18px; border: 1px solid var(--border); border-radius: 19px; background: var(--surface); box-shadow: 0 4px 15px rgba(31,41,55,.025); }
.progress-ring { --value: 0; width: 66px; height: 66px; flex: 0 0 66px; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--ring-color, var(--orange)) calc(var(--value) * 1%), var(--surface-2) 0); position: relative; }
.progress-ring::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--surface); }
.progress-ring span { position: relative; z-index: 1; font-size: 13px; font-weight: 850; }
.stat-info { min-width: 0; }
.stat-info strong { display: block; font-size: 13px; margin-bottom: 5px; }
.stat-info small { display: block; color: var(--muted); font-size: 11px; line-height: 1.45; }
.dashboard-grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: 18px; }
.panel { border: 1px solid var(--border); border-radius: 20px; background: var(--surface); box-shadow: 0 4px 15px rgba(31,41,55,.02); overflow: hidden; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 13px; }
.panel-head h2 { margin: 0; font-size: 14px; letter-spacing: -.2px; }
.panel-body { padding: 0 20px 20px; }
.text-link { border: 0; color: var(--orange-dark); background: transparent; font-size: 11px; font-weight: 800; }
.empty-state { display: grid; place-items: center; text-align: center; padding: 24px 16px 18px; }
.empty-state img { width: min(190px, 70%); height: 118px; object-fit: contain; margin-bottom: 7px; }
.empty-state strong { font-size: 13px; }
.empty-state p { max-width: 280px; margin: 6px 0 13px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.list-row:last-child { border-bottom: 0; }
.row-icon { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 12px; color: var(--orange-dark); background: var(--orange-soft); flex: 0 0 37px; }
.row-main { flex: 1; min-width: 0; }
.row-main strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.row-main small { display: block; color: var(--muted); font-size: 10px; margin-top: 4px; }
.row-trail { color: var(--muted); font-size: 11px; font-weight: 700; white-space: nowrap; }
/* Cards and forms */
.cards-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.subject-card, .task-card, .payment-card { padding: 18px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); transition: transform .2s ease, box-shadow .2s ease; }
.subject-card:hover, .task-card:hover, .payment-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.card-top h3 { margin: 0; font-size: 14px; line-height: 1.35; }
.card-sub { margin: 7px 0 15px; color: var(--muted); font-size: 11px; }
.card-metrics { display: flex; flex-wrap: wrap; gap: 7px; }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 6px 9px; border-radius: 999px; color: var(--muted); background: var(--surface-2); font-size: 10px; font-weight: 750; }
.pill.orange { color: var(--orange-dark); background: var(--orange-soft); }
.pill.green { color: var(--green); background: var(--green-soft); }
.pill.yellow { color: var(--yellow); background: var(--yellow-soft); }
.card-actions { display: flex; justify-content: flex-end; gap: 7px; margin-top: 15px; padding-top: 12px; border-top: 1px solid var(--border); }
.icon-mini { width: 31px; height: 31px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 10px; color: var(--muted); background: var(--surface); }
.icon-mini:hover { color: var(--orange); border-color: var(--orange); }
.icon-mini.danger:hover { color: var(--red); border-color: var(--red); }
/* Schedule */
.week-strip { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); gap: 8px; margin-bottom: 17px; }
.day-chip { padding: 12px 6px; border: 1px solid var(--border); border-radius: 13px; color: var(--muted); background: var(--surface); text-align: center; }
.day-chip strong { display: block; font-size: 11px; }
.day-chip small { display: block; margin-top: 4px; font-size: 9px; }
.day-chip.active { color: #fff; border-color: var(--orange); background: var(--orange); box-shadow: 0 6px 14px rgba(249,115,22,.2); }
.schedule-row { display: grid; grid-template-columns: 76px 4px minmax(0,1fr) auto; gap: 14px; align-items: center; padding: 15px 18px; border-bottom: 1px solid var(--border); }
.schedule-row:last-child { border-bottom: 0; }
.schedule-time { color: var(--muted); font-size: 11px; font-weight: 800; }
.schedule-line { width: 4px; height: 38px; border-radius: 9px; background: var(--orange); }
.schedule-main strong { font-size: 12px; }
.schedule-main small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
/* Task */
.task-row { display: flex; align-items: center; gap: 12px; padding: 14px 17px; border-bottom: 1px solid var(--border); }
.task-row:last-child { border-bottom: 0; }
.task-check { appearance: none; width: 19px; height: 19px; flex: 0 0 19px; border: 1.7px solid var(--muted-2); border-radius: 6px; background: transparent; cursor: pointer; position: relative; }
.task-check:checked { border-color: var(--green); background: var(--green); }
.task-check:checked::after { content: "✓"; position: absolute; inset: -1px 0 0; color: #fff; text-align: center; font-size: 13px; font-weight: 900; }
.task-row.done .task-title { color: var(--muted); text-decoration: line-through; }
.task-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 5px; }
/* Finance */
.finance-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 18px; }
.finance-box { padding: 20px; border: 1px solid var(--border); border-radius: 19px; background: var(--surface); }
.finance-box.highlight { color: #fff; border-color: transparent; background: linear-gradient(135deg, #F97316, #EA580C); }
.finance-box small { display: block; opacity: .76; font-size: 11px; font-weight: 700; }
.finance-box strong { display: block; margin: 9px 0 6px; font-size: clamp(21px,3vw,29px); letter-spacing: -.8px; }
.finance-box span { font-size: 11px; opacity: .78; }
.finance-progress { height: 7px; margin-top: 16px; border-radius: 99px; overflow: hidden; background: rgba(255,255,255,.25); }
.finance-progress span { display: block; width: 0; height: 100%; border-radius: inherit; background: #fff; }
/* Settings */
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.settings-card { padding: 20px; border: 1px solid var(--border); border-radius: 19px; background: var(--surface); }
.settings-card h2 { display: flex; align-items: center; gap: 9px; margin: 0 0 7px; font-size: 14px; }
.settings-card p { margin: 0 0 17px; color: var(--muted); font-size: 11px; line-height: 1.65; }
.setting-line { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-top: 1px solid var(--border); }
.setting-line strong { display: block; font-size: 12px; }
.setting-line small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.field { display: grid; gap: 7px; margin-bottom: 14px; }
.field label { font-size: 11px; font-weight: 800; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 43px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 11px; color: var(--ink); background: var(--surface); outline: 0; font-size: 12px; }
.field textarea { min-height: 80px; resize: vertical; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
/* Profile onboarding */
.profile-card { width: min(580px,100%); margin: 8vh auto; padding: clamp(24px,5vw,42px); border: 1px solid var(--border); border-radius: 28px; background: var(--surface); box-shadow: var(--shadow); animation: cardIn .4s ease both; }
.profile-card h1 { margin: 18px 0 8px; font-size: 29px; letter-spacing: -1px; }
.profile-card > p { color: var(--muted); font-size: 13px; line-height: 1.65; margin: 0 0 23px; }
.profile-card .profile-art { display: block; width: 160px; height: 112px; object-fit: contain; margin: 0 auto 5px; }
/* Modal */
.modal-backdrop { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 18px; background: rgba(17,24,39,.52); backdrop-filter: blur(5px); animation: fadeIn .18s ease both; }
.modal-card { width: min(520px,100%); max-height: min(88vh,780px); overflow: auto; border: 1px solid var(--border); border-radius: 22px; background: var(--surface); box-shadow: 0 24px 70px rgba(0,0,0,.22); animation: modalIn .24s cubic-bezier(.2,.8,.2,1) both; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px 14px; border-bottom: 1px solid var(--border); }
.modal-head h2 { margin: 0; font-size: 17px; letter-spacing: -.4px; }
.modal-body { padding: 19px 22px 22px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 20px; }
/* Toast */
.toast { position: fixed; z-index: 100; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; max-width: calc(100vw - 30px); padding: 12px 17px; border-radius: 13px; color: #fff; background: var(--ink); box-shadow: var(--shadow); font-size: 12px; font-weight: 700; transition: .25s ease; }
.toast.show { opacity: 1; transform: translate(-50%,0); }
/* Mobile navigation */
.mobile-nav { display: none; }
.muted { color: var(--muted); }
.divider { height: 1px; background: var(--border); margin: 16px 0; }
.inline-note { display: flex; align-items: flex-start; gap: 10px; padding: 13px; border-radius: 13px; color: var(--muted); background: var(--surface-2); font-size: 11px; line-height: 1.55; }
.inline-note svg { color: var(--orange); flex: 0 0 17px; }
.hidden { display: none !important; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes cardIn { from { opacity: 0; transform: translateY(12px) scale(.99); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes pageIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@keyframes modalIn { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@media (max-width: 1080px) {
  .app-layout { grid-template-columns: 225px minmax(0,1fr); }
  .cards-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .hero { grid-template-columns: 1fr .75fr; }
}
@media (max-width: 780px) {
  .app-layout { display: block; }
  .sidebar { display: none; }
  .topbar { height: 65px; padding: 0 16px; }
  .content { padding: 23px 16px 100px; }
  .mobile-nav { position: fixed; display: grid; grid-template-columns: repeat(5,1fr); gap: 2px; left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); z-index: 20; padding: 8px 6px; border: 1px solid var(--border); border-radius: 18px; background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(18px); box-shadow: 0 10px 35px rgba(31,41,55,.14); }
  .mobile-nav .nav-item { display: grid; justify-items: center; gap: 4px; padding: 7px 2px; border-radius: 11px; font-size: 9px; }
  .mobile-nav .nav-item svg { width: 19px; height: 19px; }
  .mobile-nav .nav-item.active { background: var(--orange-soft); }
  .hero { grid-template-columns: 1fr .58fr; min-height: 190px; padding: 23px; }
  .hero-art { height: 150px; }
  .hero-art img { height: 160px; }
  .onboard-card { min-height: unset; grid-template-columns: 1fr; padding: 28px; gap: 5px; }
  .onboard-copy { max-width: none; }
  .onboard-title { font-size: 37px; }
  .onboard-art img { max-height: 240px; width: min(84%,340px); }
  .onboard-card { text-align: center; }
  .onboard-copy { margin: 0 auto; }
  .onboard-desc { margin: 0 auto; }
  .onboard-art { order: -1; }
  .onboard-foot { padding-top: 16px; }
}
@media (max-width: 580px) {
  .topbar-title { font-size: 12px; }
  .topbar-actions { gap: 6px; }
  .topbar-actions .icon-btn { width: 36px; height: 36px; }
  .lang-select { height: 36px; padding: 0 8px; max-width: 69px; }
  .brand-mark { width: 36px; height: 36px; flex-basis: 36px; border-radius: 12px; }
  .brand-name { font-size: 17px; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .page-heading .btn { width: 100%; }
  .hero { grid-template-columns: 1fr; padding: 22px; }
  .hero h1 { font-size: 29px; }
  .hero-art { display: none; }
  .stats-grid { grid-template-columns: 1fr; gap: 9px; }
  .stat-card { padding: 12px 14px; }
  .progress-ring { width: 54px; height: 54px; flex-basis: 54px; }
  .progress-ring::before { inset: 5px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: 1fr; }
  .finance-hero, .settings-grid { grid-template-columns: 1fr; }
  .week-strip { gap: 4px; }
  .day-chip { padding: 10px 2px; }
  .day-chip strong { font-size: 9px; }
  .schedule-row { grid-template-columns: 58px 4px minmax(0,1fr) auto; gap: 9px; padding: 13px 12px; }
  .schedule-time { font-size: 10px; }
  .schedule-main strong { font-size: 11px; }
  .schedule-main small { font-size: 9px; }
  .onboarding { padding: 16px 12px; }
  .onboard-top { margin-bottom: 15px; }
  .onboard-card { padding: 20px 18px; border-radius: 24px; }
  .onboard-art img { max-height: 205px; }
  .onboard-title { font-size: 32px; letter-spacing: -1.3px; }
  .onboard-desc { font-size: 13px; }
  .onboard-foot { flex-wrap: wrap; justify-content: center; }
  .dots { order: 2; width: 100%; justify-content: center; }
  .onboard-actions { order: 1; width: 100%; }
  .onboard-actions .btn { flex: 1; }
  .field-grid { grid-template-columns: 1fr; gap: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}


/* TalabaX refinements: install CTA, clear calendar states, and gentle motion. */
.install-nudge {
  display: flex; align-items: center; gap: 13px; margin: 16px 0 0; padding: 13px 16px;
  border: 1px solid rgba(249,115,22,.2); border-radius: 17px; background: var(--surface);
  box-shadow: 0 8px 24px rgba(31,41,55,.035); animation: pageIn .45s ease both;
}
.install-nudge-icon, .settings-install-icon {
  width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center;
  border-radius: 12px; color: var(--orange-dark); background: var(--orange-soft);
}
.install-nudge-copy { flex: 1; min-width: 0; }
.install-nudge-copy strong { display: block; font-size: 12px; }
.install-nudge-copy small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.settings-install {
  display: flex; align-items: center; gap: 11px; width: max-content; max-width: 100%; margin: 16px 0 0 auto;
  padding: 9px 12px; border: 1px solid var(--border); border-radius: 14px; color: var(--muted);
  background: transparent; text-align: left; transition: border-color .2s ease, color .2s ease, transform .2s ease;
}
.settings-install:hover { color: var(--orange-dark); border-color: rgba(249,115,22,.35); transform: translateY(-1px); }
.settings-install-icon { width: 31px; height: 31px; flex-basis: 31px; border-radius: 10px; }
.settings-install > span:nth-child(2) { min-width: 0; }
.settings-install strong { display: block; font-size: 11px; }
.settings-install small { display: block; margin-top: 2px; color: var(--muted-2); font-size: 9px; line-height: 1.4; }
.settings-install > svg:last-child { flex: 0 0 auto; }
.today-date { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: 16px; width: fit-content; padding: 8px 11px; border: 1px solid var(--border); border-radius: 12px; color: var(--ink); background: var(--surface); font-size: 11px; font-weight: 750; animation: pageIn .5s ease both; }
.today-date > svg { color: var(--orange); }
.today-date small { padding-left: 7px; border-left: 1px solid var(--border); color: var(--muted); font-size: 9px; font-weight: 650; }
.schedule-selected-date { display: flex; align-items: center; gap: 6px; margin-top: 8px; color: var(--muted); font-size: 11px; }
.schedule-selected-date svg { color: var(--orange); }
.schedule-selected-date strong { color: var(--orange-dark); }
.day-chip { position: relative; transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease; }
.day-chip:hover { transform: translateY(-2px); }
.day-chip.is-today:not(.active) { border-color: rgba(249,115,22,.48); }
.day-chip.is-today:not(.active)::after { content: ''; position: absolute; width: 4px; height: 4px; left: calc(50% - 2px); bottom: 4px; border-radius: 50%; background: var(--orange); }
.schedule-row { animation: pageIn .28s ease both; }
.schedule-actions { display: flex; gap: 5px; }
.schedule-kind { display: inline-flex; margin-top: 6px; color: var(--green); font-size: 9px; font-weight: 800; }
.schedule-kind.one-time { color: var(--orange-dark); }
.field-hint { margin: -4px 0 13px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.install-guide-step { display: flex; align-items: flex-start; gap: 11px; padding: 14px; border-radius: 14px; background: var(--surface-2); color: var(--ink); font-size: 12px; line-height: 1.6; }
.install-guide-step svg { flex: 0 0 18px; color: var(--orange); margin-top: 1px; }
.install-guide .modal-head h2 { display: flex; align-items: center; gap: 8px; }
.install-guide .modal-head h2 svg { color: var(--orange); }
.onboard-art img { animation: artFloat 6s ease-in-out infinite; }
.hero-art img { animation: artFloat 7s ease-in-out infinite; }
.progress-ring { transition: --value .5s ease; }
@keyframes artFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@media (max-width: 580px) {
  .install-nudge { flex-wrap: wrap; padding: 12px; gap: 10px; }
  .install-nudge-copy { flex-basis: calc(100% - 52px); }
  .install-nudge .btn { width: 100%; }
  .today-date { font-size: 10px; }
  .today-date small { font-size: 8px; }
  .schedule-actions { flex-direction: column; }
  .settings-install { margin-left: 0; width: 100%; }
}

.week-nav { display: flex; align-items: center; justify-content: center; gap: 18px; margin: -3px 0 14px; color: var(--muted); }
.week-nav strong { min-width: 180px; text-align: center; color: var(--ink); font-size: 11px; }
.week-nav .icon-btn { width: 33px; height: 33px; border-radius: 11px; font-size: 20px; line-height: 1; }


/* TalabaX: connected dashboard cards, richer task planner, and receipts. */
.stat-card-action {
  width: 100%; min-width: 0; color: var(--ink); font: inherit; text-align: left; cursor: pointer;
  position: relative; padding-right: 38px; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.stat-card-action > svg:last-child { position: absolute; right: 15px; top: 15px; color: var(--muted-2); opacity: .5; transition: transform .2s ease, opacity .2s ease, color .2s ease; }
.stat-card-action:hover { transform: translateY(-3px); border-color: rgba(249,115,22,.38); box-shadow: 0 12px 26px rgba(31,41,55,.08); }
.stat-card-action:hover > svg:last-child { opacity: 1; color: var(--orange); transform: translateX(3px); }
.stat-card-action:active { transform: scale(.985); }
.stat-info em { display: block; margin-top: 5px; color: var(--orange-dark); font-size: 9px; font-style: normal; font-weight: 750; opacity: .85; }
.task-filter-row { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-bottom: 15px; }
.task-count { margin-left: auto; color: var(--muted-2); font-size: 10px; font-weight: 750; }
.task-description { margin: 5px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.task-actions { display: flex; align-items: center; gap: 5px; }
.finance-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.finance-mini-stat { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.finance-mini-stat strong { font-size: clamp(17px,2vw,24px); }
.finance-percent { display: inline-block; margin-top: 5px; color: var(--muted); }
.receipt-field input[type="file"] { min-height: auto; padding: 10px; background: var(--surface-2); }
.receipt-field small { display: block; color: var(--muted); font-size: 10px; line-height: 1.5; }
.receipt-file-name { color: var(--orange-dark) !important; overflow-wrap: anywhere; }
.payment-row { min-width: 0; }
.contract-modal-hint { padding: 10px 12px; border-radius: 12px; background: var(--orange-soft); }
@media (max-width: 580px) {
  .stat-card-action { padding-right: 31px; }
  .stat-card-action > svg:last-child { right: 10px; }
  .task-row { align-items: flex-start; }
  .task-actions { flex-direction: column; }
  .finance-actions { width: 100%; }
  .finance-actions .btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

.task-search { width: min(220px, 100%); min-width: 150px; height: 36px; margin-left: auto; padding: 0 11px; border: 1px solid var(--border); border-radius: 10px; color: var(--ink); background: var(--surface); outline: 0; font-size: 11px; }
.task-search:focus { border-color: rgba(249,115,22,.55); box-shadow: 0 0 0 3px rgba(249,115,22,.1); }
@media (max-width: 580px) { .task-search { order: 2; width: 100%; margin-left: 0; } .task-count { order: 3; } }
#netlify-badge {
  display: none !important;
}
