:root {
  color-scheme: dark;
  --bg: #070d17;
  --sidebar: #0a1421;
  --surface: #0e1a2a;
  --surface-raised: #122137;
  --surface-soft: #111e2f;
  --text: #edf6ff;
  --muted: #8ca3b7;
  --muted-2: #627a90;
  --line: rgba(129, 179, 218, .17);
  --line-strong: rgba(127, 207, 231, .32);
  --cyan: #66e5eb;
  --violet: #aa96ff;
  --lime: #c7ef8d;
  --coral: #ff9b82;
  --shadow: 0 20px 70px rgba(0, 0, 0, .22);
  --font: 'Segoe UI Variable Display', 'Segoe UI', Arial, sans-serif;
  --mono: 'Cascadia Code', Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.5 var(--font);
  overflow-x: hidden;
}
body::before, body::after { content: ''; position: fixed; inset: 0; pointer-events: none; }
body::before { z-index: -1; background: radial-gradient(ellipse 42% 42% at 78% 12%, rgba(38, 97, 137, .16), transparent 75%), radial-gradient(ellipse 36% 34% at 13% 87%, rgba(79, 51, 130, .11), transparent 80%); }
body::after { z-index: -1; opacity: .32; background-image: linear-gradient(rgba(106, 158, 201, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(106, 158, 201, .045) 1px, transparent 1px); background-size: 36px 36px; mask-image: linear-gradient(to bottom, #000, transparent 90%); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
[hidden] { display: none !important; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 252px minmax(0, 1fr); position: relative; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 28px 18px 22px; background: linear-gradient(155deg, rgba(13, 29, 46, .98), rgba(8, 17, 30, .98) 68%); border-right: 1px solid var(--line); z-index: 5; }
.sidebar::after { content: ''; position: absolute; top: 0; right: -1px; height: 20%; width: 1px; background: linear-gradient(var(--cyan), transparent); opacity: .6; }
.brand { display: flex; align-items: center; gap: 10px; color: #f5fbff; font: 800 20px/1 var(--font); letter-spacing: 1.3px; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(102, 229, 235, .45); border-radius: 11px; background: linear-gradient(135deg, rgba(73, 227, 231, .17), rgba(147, 118, 255, .12)); box-shadow: inset 0 0 15px rgba(102, 229, 235, .12), 0 0 19px rgba(102, 229, 235, .12); color: var(--cyan); }
.brand-mark .icon { width: 25px; height: 25px; stroke-width: 1.35; }
.brand-os { display: inline-block; color: var(--cyan); font: 700 10px var(--mono); letter-spacing: .7px; margin-left: 5px; vertical-align: middle; }
.sidebar-caption { display: flex; gap: 9px; align-items: center; margin: 52px 14px 15px; color: var(--muted-2); font: 700 10px var(--mono); letter-spacing: 1.5px; }
.status-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; flex: none; background: var(--cyan); box-shadow: 0 0 11px rgba(102, 229, 235, .85); animation: pulse 3s ease-in-out infinite; }
.side-nav { display: grid; gap: 5px; }
.nav-item { position: relative; display: flex; align-items: center; gap: 13px; min-height: 48px; width: 100%; padding: 0 14px; text-align: left; color: #8199ad; background: transparent; border: 1px solid transparent; border-radius: 10px; font-weight: 650; transition: color .2s, background .2s, border-color .2s, transform .2s; }
.nav-item:hover { color: var(--text); background: rgba(86, 126, 167, .09); transform: translateX(3px); }
.nav-item.active { color: var(--cyan); background: linear-gradient(90deg, rgba(59, 194, 206, .14), rgba(59, 194, 206, .035)); border-color: rgba(80, 213, 224, .15); }
.nav-item.active::before { content: ''; position: absolute; width: 3px; top: 11px; bottom: 11px; left: -1px; border-radius: 3px; background: var(--cyan); box-shadow: 0 0 14px var(--cyan); }
.nav-icon, .nav-icon .icon { width: 20px; height: 20px; }
.sidebar-bottom { margin-top: auto; }
.sidebar-tip { padding: 18px; border: 1px solid rgba(105, 194, 226, .18); border-radius: 16px; background: radial-gradient(circle at 90% 0%, rgba(107, 96, 221, .2), transparent 64%), linear-gradient(145deg, rgba(24, 54, 73, .6), rgba(16, 33, 54, .85)); box-shadow: inset 0 1px rgba(255,255,255,.03); }
.sidebar-tip > .icon { color: var(--cyan); width: 22px; height: 22px; }
.sidebar-tip p { color: #bbcbda; margin: 12px 0 22px; font-size: 12px; line-height: 1.55; }
.tip-bottom { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid rgba(156, 207, 223, .13); padding-top: 12px; color: #6d9aa7; font: 700 9px var(--mono); letter-spacing: 1px; }
.tip-bottom .status-dot { width: 5px; height: 5px; }
.logout-btn { display: flex; align-items: center; justify-content: space-between; width: 100%; border: 0; background: transparent; color: #839aac; padding: 18px 12px 2px; font-size: 12px; transition: color .2s; }
.logout-btn:hover { color: var(--cyan); }
.logout-btn .icon { width: 15px; height: 15px; }

.main-column { min-width: 0; position: relative; }
.topbar { position: sticky; top: 0; z-index: 4; display: flex; align-items: center; justify-content: space-between; height: 78px; padding: 0 clamp(24px, 4vw, 68px); background: rgba(8, 16, 28, .8); border-bottom: 1px solid var(--line); backdrop-filter: blur(20px); }
.today-label { color: #9eb2c4; font-size: 12px; font-weight: 700; }
.today-label::before { content: '◦'; margin-right: 11px; color: var(--cyan); font-size: 20px; vertical-align: -1px; }
.topbar-actions { display: flex; align-items: center; gap: 18px; }
.mobile-logout { display: none; }
.live-badge { display: flex; align-items: center; gap: 9px; color: #7cafb9; font: 700 10px var(--mono); letter-spacing: .8px; }
.top-add { display: inline-flex; align-items: center; gap: 8px; padding: 10px 15px; color: #dcfaff; border: 1px solid rgba(102, 229, 235, .3); border-radius: 10px; background: linear-gradient(135deg, rgba(67, 169, 190, .18), rgba(73, 119, 187, .11)); font-weight: 750; box-shadow: inset 0 1px rgba(255,255,255,.07); transition: border-color .2s, box-shadow .2s, transform .2s; }
.top-add:hover { transform: translateY(-2px); border-color: var(--cyan); box-shadow: 0 0 22px rgba(102, 229, 235, .13); }
.top-add .icon { width: 16px; height: 16px; color: var(--cyan); }
.mobile-brand, .bottom-nav { display: none; }
.content { max-width: 1450px; margin: 0 auto; padding: 36px clamp(24px, 4vw, 68px) 90px; outline: none; }
.content > * { animation: riseIn .55s cubic-bezier(.19, 1, .22, 1) both; }
.content > *:nth-child(2) { animation-delay: .045s; }
.content > *:nth-child(3) { animation-delay: .085s; }
.content > *:nth-child(4) { animation-delay: .12s; }
.content > *:nth-child(5) { animation-delay: .16s; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: #7dbac1; font: 700 10px/1.4 var(--mono); letter-spacing: 1.35px; margin: 0 0 10px; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 26px; }
.page-heading h1 { font: 750 clamp(32px, 3.7vw, 45px)/1.08 var(--font); letter-spacing: -1.9px; margin: 0; }
.page-heading h1 em, .login-card h1 em { font-style: normal; color: var(--cyan); }
.page-heading p:not(.eyebrow) { margin: 9px 0 0; color: var(--muted); font-size: 13px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid transparent; border-radius: 10px; padding: 11px 16px; font-weight: 750; white-space: nowrap; transition: transform .2s, filter .2s, border-color .2s, background .2s; }
.btn:hover { transform: translateY(-2px); }
.btn .icon { width: 16px; height: 16px; }
.btn-primary { color: #06121e; background: linear-gradient(115deg, #73e9ed, #84bdf5); box-shadow: 0 7px 24px rgba(58, 198, 218, .16); }
.btn-primary:hover { filter: brightness(1.1); box-shadow: 0 10px 30px rgba(70, 222, 236, .23); }
.btn-secondary { background: rgba(93, 132, 167, .14); border-color: var(--line); color: #c7d9e8; }
.btn-secondary:hover { background: rgba(93, 132, 167, .24); }
.btn-subtle { padding: 4px 0; background: transparent; color: var(--cyan); font-size: 12px; }
.btn-subtle:hover { text-decoration: underline; transform: none; }
.btn-danger { background: rgba(255, 138, 118, .12); color: var(--coral); }
.btn-small { padding: 8px 12px; font-size: 12px; }

.hero { position: relative; isolation: isolate; overflow: hidden; min-height: 240px; padding: 29px 34px 24px; margin-bottom: 17px; border: 1px solid rgba(105, 223, 233, .24); border-radius: 20px; background: radial-gradient(circle at 70% 26%, rgba(56, 138, 189, .18), transparent 35%), radial-gradient(circle at 98% 100%, rgba(133, 94, 223, .22), transparent 33%), linear-gradient(115deg, #10273b, #0d1e35 58%, #101b39); box-shadow: inset 0 1px rgba(255,255,255,.08), 0 18px 60px rgba(2, 8, 19, .22); }
.hero::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(105deg, transparent 60%, rgba(140, 229, 250, .07) 64%, transparent 68%); transform: translateX(-130%); animation: scan 11s ease-in-out infinite; pointer-events: none; }
.hero-grid { position: absolute; inset: 0; opacity: .36; background-image: linear-gradient(rgba(103, 171, 212, .09) 1px, transparent 1px), linear-gradient(90deg, rgba(103, 171, 212, .09) 1px, transparent 1px); background-size: 25px 25px; mask-image: linear-gradient(90deg, transparent 25%, #000); }
.hero-copy { position: relative; z-index: 2; max-width: 70%; }
.hero-status { display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(111, 225, 232, .23); border-radius: 100px; background: rgba(54, 128, 160, .15); padding: 6px 10px; color: #a6e7e8; font: 700 9px var(--mono); letter-spacing: .8px; }
.hero-status-index { color: #607f9a; }
.hero h2 { font: 730 clamp(27px, 3vw, 38px)/1.13 var(--font); letter-spacing: -1.5px; margin: 20px 0 11px; }
.hero h2 em { font-style: normal; background: linear-gradient(95deg, #baf3f5, #a9b8ff); color: transparent; background-clip: text; }
.hero-copy > p { max-width: 430px; margin: 0; color: #a7bfd0; font-size: 13px; line-height: 1.5; }
.hero-data { display: flex; gap: 16px; margin-top: 19px; color: #65a6b2; font: 700 9px var(--mono); letter-spacing: .5px; }
.hero-visual { position: absolute; width: 260px; height: 260px; top: -22px; right: 48px; display: grid; place-items: center; filter: drop-shadow(0 0 24px rgba(68, 209, 230, .22)); }
.radar-ring { position: absolute; border-radius: 50%; border: 1px solid rgba(89, 217, 234, .24); }
.ring-outer { width: 236px; height: 236px; border-style: dashed; animation: rotate 40s linear infinite; }
.ring-mid { width: 185px; height: 185px; border-color: rgba(144, 129, 249, .42); border-left-color: var(--violet); border-right-color: transparent; animation: rotate 18s linear infinite reverse; }
.ring-inner { width: 134px; height: 134px; border-color: rgba(93, 223, 231, .18); box-shadow: inset 0 0 32px rgba(67, 221, 229, .05); }
.radar-axis { position: absolute; height: 1px; width: 245px; background: linear-gradient(90deg, transparent, rgba(115, 223, 235, .18), transparent); }
.radar-axis-b { transform: rotate(90deg); }
.radar-core { width: 86px; height: 86px; display: grid; place-items: center; border: 1px solid rgba(97, 223, 231, .43); border-radius: 23px; background: linear-gradient(145deg, rgba(34, 114, 143, .25), rgba(116, 87, 191, .23)); box-shadow: 0 0 27px rgba(97, 223, 231, .2), inset 0 0 22px rgba(97, 223, 231, .12); color: var(--cyan); transform: rotate(45deg); }
.radar-core .icon { width: 47px; height: 47px; stroke-width: 1.1; transform: rotate(-45deg); }
.radar-node { position: absolute; width: 7px; height: 7px; background: var(--cyan); border-radius: 50%; box-shadow: 0 0 14px var(--cyan); }
.node-a { top: 32px; right: 68px; }.node-b { bottom: 49px; left: 44px; width: 5px; height: 5px; background: var(--violet); box-shadow: 0 0 12px var(--violet); }
.radar-label { position: absolute; bottom: 3px; right: 4px; color: rgba(124, 198, 216, .64); font: 700 8px var(--mono); letter-spacing: 1px; }

.quick-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; margin-bottom: 24px; }
.quick-action { display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 75px; padding: 13px; text-align: left; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(145deg, rgba(19, 36, 56, .97), rgba(12, 25, 42, .97)); box-shadow: inset 0 1px rgba(255,255,255,.035); color: var(--text); font-size: 12px; font-weight: 750; transition: transform .22s, border-color .22s, box-shadow .22s, background .22s; }
.quick-action:hover { transform: translateY(-4px); border-color: rgba(97, 221, 231, .46); box-shadow: 0 12px 28px rgba(0,0,0,.18), 0 0 22px rgba(76, 193, 219, .08); }
.quick-action span:nth-child(2) { min-width: 0; flex: 1; white-space: nowrap; }
.quick-action small { display: block; color: var(--muted-2); font-size: 10px; font-weight: 500; margin-top: 2px; white-space: nowrap; }
.quick-icon { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 10px; border: 1px solid rgba(93, 231, 229, .2); background: rgba(82, 211, 219, .1); color: var(--cyan); }
.quick-icon .icon { width: 19px; height: 19px; }
.quick-action:nth-child(2) .quick-icon { color: var(--coral); background: rgba(255, 148, 121, .1); border-color: rgba(255, 148, 121, .2); }
.quick-action:nth-child(3) .quick-icon { color: var(--violet); background: rgba(169, 149, 255, .1); border-color: rgba(169, 149, 255, .2); }
.quick-action:nth-child(4) .quick-icon { color: var(--lime); background: rgba(199, 239, 141, .1); border-color: rgba(199, 239, 141, .2); }
.quick-arrow { width: 13px; height: 13px; color: #6b829a; align-self: start; transition: transform .2s, color .2s; }
.quick-action:hover .quick-arrow { transform: translate(2px, -2px); color: var(--cyan); }
.mail-notice { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; padding: 12px 16px; border: 1px solid rgba(255, 179, 112, .22); border-radius: 11px; background: rgba(122, 80, 49, .12); color: #d4b99f; font-size: 11px; line-height: 1.5; }
.mail-notice .icon { width: 18px; height: 18px; color: #e6aa7f; }

.stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat-card, .panel { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: linear-gradient(145deg, rgba(17, 32, 51, .96), rgba(12, 24, 39, .96)); box-shadow: inset 0 1px rgba(255,255,255,.03), var(--shadow); }
.stat-card { min-height: 140px; padding: 20px 22px; }
.stat-card::before { content: ''; position: absolute; top: 0; left: 21px; width: 48px; height: 2px; background: var(--cyan); box-shadow: 0 0 13px var(--cyan); opacity: .75; }
.stat-card::after { content: '◈'; position: absolute; top: 15px; right: 18px; color: rgba(105, 220, 232, .23); font-size: 22px; }
.stat-card:nth-child(2)::before { background: var(--violet); box-shadow: 0 0 13px var(--violet); }
.stat-card:nth-child(2)::after { color: rgba(170, 150, 255, .25); }
.stat-card:nth-child(3)::before { background: var(--lime); box-shadow: 0 0 13px var(--lime); }
.stat-card:nth-child(3)::after { color: rgba(199, 239, 141, .25); }
.stat-card.accent { background: radial-gradient(circle at 90% 0%, rgba(38, 124, 141, .16), transparent 45%), linear-gradient(145deg, #132b3c, #0f2233); border-color: rgba(102, 229, 235, .25); }
.stat-label { color: #8faabe; font-size: 11px; font-weight: 650; }
.stat-value { margin: 12px 0 2px; color: var(--text); font: 760 clamp(23px, 2.5vw, 32px)/1.2 var(--font); letter-spacing: -.9px; white-space: nowrap; }
.stat-card.accent .stat-value { color: var(--cyan); }
.stat-foot { color: #668096; font-size: 10px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(280px, .9fr); gap: 16px; }
.panel { padding: 23px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.panel h2 { margin: 0; font-size: 17px; font-weight: 750; letter-spacing: -.35px; }
.panel-muted { color: var(--muted-2); font: 700 10px var(--mono); white-space: nowrap; }
.stack { display: grid; gap: 8px; }
.task-row, .record-row { display: flex; align-items: center; gap: 11px; min-width: 0; padding: 12px; border: 1px solid rgba(110, 158, 196, .13); border-radius: 11px; background: rgba(16, 31, 49, .75); transition: border-color .2s, background .2s, transform .2s; }
.task-row:hover, .record-row:hover { border-color: rgba(109, 217, 228, .35); background: rgba(23, 43, 65, .85); transform: translateX(2px); }
.task-check { appearance: none; flex: none; width: 21px; height: 21px; margin: 0; border: 1.5px solid #55748c; border-radius: 6px; background: #101e30; cursor: pointer; transition: border-color .2s, background .2s, box-shadow .2s; }
.task-check:hover { border-color: var(--cyan); }
.task-check:checked { position: relative; border-color: var(--cyan); background: var(--cyan); box-shadow: 0 0 12px rgba(102, 229, 235, .32); }
.task-check:checked::after { content: '✓'; position: absolute; top: -2px; left: 3px; color: #092034; font-size: 14px; font-weight: 900; }
.task-main, .record-main { min-width: 0; flex: 1; }
.task-title, .record-title { color: #dcebf5; font-size: 12px; font-weight: 750; line-height: 1.35; overflow-wrap: anywhere; }
.task-row.done .task-title { color: #668092; text-decoration: line-through; }
.task-meta, .record-meta { margin-top: 4px; color: #718a9e; font-size: 10px; line-height: 1.4; overflow-wrap: anywhere; }
.task-meta.overdue { color: var(--coral); }
.pill { flex: none; padding: 5px 8px; border: 1px solid rgba(100, 226, 230, .16); border-radius: 5px; background: rgba(73, 198, 206, .1); color: #8ce0e5; font: 700 9px var(--mono); white-space: nowrap; }
.pill.study { border-color: rgba(170, 150, 255, .18); background: rgba(170, 150, 255, .11); color: #bbafff; }
.pill.other { border-color: rgba(255, 155, 130, .18); background: rgba(255, 155, 130, .1); color: #ffc1a8; }
.row-actions { display: flex; align-items: center; gap: 2px; flex: none; }
.icon-button { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: #718da3; transition: color .2s, background .2s, border-color .2s; }
.icon-button:hover { color: var(--cyan); background: rgba(79, 207, 220, .1); border-color: rgba(79, 207, 220, .13); }
.icon-button .icon { width: 15px; height: 15px; }
.empty { display: grid; justify-items: center; padding: 34px 15px; text-align: center; border: 1px dashed rgba(132, 184, 207, .17); border-radius: 12px; background: rgba(9, 20, 33, .35); }
.empty-icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 10px; border: 1px solid rgba(96, 219, 227, .18); border-radius: 12px; background: rgba(73, 198, 206, .08); color: var(--cyan); }
.empty strong { font-weight: 750; }
.empty p { max-width: 250px; margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.mini-balance { padding: 21px; border: 1px solid rgba(93, 206, 221, .12); border-radius: 12px; background: radial-gradient(circle at 90% 10%, rgba(76, 195, 214, .11), transparent 60%), rgba(11, 29, 46, .78); }
.mini-balance .stat-value { margin: 7px 0 0; font-size: 26px; color: var(--cyan); }
.money-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 10px; }
.money-pair div { padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: rgba(10, 23, 38, .6); }
.money-pair small { display: block; margin-bottom: 5px; color: var(--muted); font-size: 10px; }
.money-pair strong { font-size: 15px; letter-spacing: -.5px; }
.money-pair div:first-child strong { color: var(--lime); }
.money-pair div:last-child strong { color: var(--coral); }

.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 17px; }
.segmented { display: inline-flex; gap: 3px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: rgba(14, 28, 45, .8); }
.segmented button { padding: 7px 12px; border: 0; border-radius: 7px; background: transparent; color: #7d98ad; font-size: 11px; font-weight: 700; transition: color .2s, background .2s; }
.segmented button:hover { color: var(--text); }
.segmented button.active { background: rgba(97, 220, 228, .15); color: var(--cyan); box-shadow: inset 0 0 0 1px rgba(97, 220, 228, .16); }
.list-panel { padding: 22px; }
.record-icon { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border: 1px solid rgba(102, 229, 235, .17); border-radius: 10px; color: var(--cyan); background: rgba(102, 229, 235, .09); }
.record-icon .icon { width: 19px; height: 19px; }
.record-icon.expense { color: var(--coral); border-color: rgba(255, 155, 130, .18); background: rgba(255, 155, 130, .09); }
.record-icon.income { color: var(--lime); border-color: rgba(199, 239, 141, .18); background: rgba(199, 239, 141, .09); }
.record-amount { color: #dcebf5; font-size: 14px; font-weight: 760; white-space: nowrap; }
.record-amount.expense { color: var(--coral); }.record-amount.income { color: var(--lime); }
.category-list { display: grid; gap: 16px; }
.category-line { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 7px; font-size: 11px; font-weight: 700; }
.category-line span:last-child { color: var(--muted); }
.bar-progress { display: block; width: 100%; height: 6px; overflow: hidden; border: 0; border-radius: 20px; appearance: none; background: #1c3042; }
.bar-progress::-webkit-progress-bar { background: #1c3042; }
.bar-progress::-webkit-progress-value { border-radius: 20px; background: linear-gradient(90deg, var(--cyan), var(--violet)); }
.bar-progress::-moz-progress-bar { border-radius: 20px; background: var(--cyan); }
.note-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.note-card { position: relative; display: flex; flex-direction: column; min-height: 190px; padding: 21px; border: 1px solid var(--line); border-radius: 15px; background: linear-gradient(145deg, #142235, #0e1b2d); transition: transform .2s, border-color .2s, box-shadow .2s; }
.note-card:hover { transform: translateY(-3px); border-color: rgba(102, 229, 235, .36); box-shadow: 0 15px 35px rgba(0,0,0,.17); }
.note-card h3 { margin: 17px 0 7px; font-size: 17px; letter-spacing: -.3px; }
.note-card p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.note-card footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 16px; }
.study-total { position: relative; display: flex; align-items: center; justify-content: space-between; overflow: hidden; margin-bottom: 18px; padding: 24px 28px; border: 1px solid rgba(165, 148, 255, .28); border-radius: 17px; background: radial-gradient(circle at 87% 40%, rgba(142, 116, 255, .19), transparent 29%), linear-gradient(110deg, #182340, #111b32); }
.study-total::after { content: ''; position: absolute; right: 45px; top: -45px; width: 180px; height: 180px; border: 1px dashed rgba(168, 155, 255, .26); border-radius: 50%; animation: rotate 50s linear infinite; }
.study-total strong { display: block; color: #c3b8ff; font-size: 32px; font-weight: 800; line-height: 1.15; letter-spacing: -1px; }
.study-total p:last-child { margin: 5px 0 0; color: #9eaacc; font-size: 12px; }
.study-decoration { z-index: 1; color: var(--violet); font-size: 51px; text-shadow: 0 0 22px rgba(170, 150, 255, .55); }

.entry-dialog { width: min(520px, calc(100vw - 24px)); max-height: min(90vh, 850px); padding: 0; overflow: auto; border: 1px solid rgba(106, 217, 230, .35); border-radius: 18px; color: var(--text); background: radial-gradient(circle at 100% 0%, rgba(45, 109, 142, .2), transparent 42%), #0c1827; box-shadow: 0 35px 100px rgba(0,0,0,.65), 0 0 45px rgba(45, 160, 187, .08); }
.entry-dialog::backdrop { background: rgba(3, 9, 19, .8); backdrop-filter: blur(8px); }
.dialog-head { display: flex; justify-content: space-between; align-items: start; padding: 28px 29px 10px; }
.dialog-head h2 { margin: 0; font-size: 25px; font-weight: 780; letter-spacing: -.9px; }
.dialog-head > .icon-button { border: 1px solid var(--line); background: rgba(88, 128, 165, .1); }
.entry-dialog form { display: grid; gap: 15px; padding: 8px 29px 29px; }
.field { display: grid; gap: 7px; color: #b4c9d9; font-size: 11px; font-weight: 750; }
.field input, .field textarea, .field select, .login-form input { width: 100%; min-height: 45px; padding: 11px 12px; border: 1px solid #274158; border-radius: 9px; outline: 0; background: #0c1b2b; color: var(--text); color-scheme: dark; }
.field input::placeholder, .field textarea::placeholder, .login-form input::placeholder { color: #60788b; }
.field input:focus, .field textarea:focus, .field select:focus, .login-form input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(102, 229, 235, .1), 0 0 18px rgba(102, 229, 235, .07); }
.field textarea { min-height: 88px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 6px; }
.form-error { color: var(--coral); font-size: 12px; margin: 0; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 20; padding: 12px 17px; border: 1px solid rgba(102, 229, 235, .32); border-radius: 10px; background: #143144; color: #e5ffff; box-shadow: 0 14px 40px rgba(0,0,0,.32); opacity: 0; transform: translateY(10px); transition: opacity .2s, transform .2s; pointer-events: none; }
.toast.show { opacity: 1; transform: translateY(0); }

.login-screen { display: grid; place-items: center; min-height: 100vh; padding: 24px; background: radial-gradient(circle at 25% 15%, rgba(65, 142, 185, .15), transparent 35%), radial-gradient(circle at 86% 85%, rgba(119, 92, 203, .13), transparent 31%); }
.login-card { position: relative; overflow: hidden; width: min(100%, 470px); padding: 30px 37px 28px; border: 1px solid rgba(103, 220, 232, .25); border-radius: 20px; background: linear-gradient(145deg, rgba(17, 34, 55, .97), rgba(9, 21, 36, .98)); box-shadow: 0 35px 95px rgba(0,0,0,.36), inset 0 1px rgba(255,255,255,.06); }
.login-card::before { content: ''; position: absolute; top: 0; left: 35px; width: 85px; height: 2px; background: var(--cyan); box-shadow: 0 0 18px var(--cyan); }
.brand-login { margin-bottom: 17px; }
.login-art { position: relative; height: 117px; overflow: hidden; margin-bottom: 21px; border: 1px solid rgba(109, 175, 209, .15); border-radius: 11px; background: radial-gradient(circle at 50% 50%, rgba(63, 176, 207, .15), transparent 35%), linear-gradient(rgba(83, 156, 196, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(83, 156, 196, .06) 1px, transparent 1px); background-size: auto, 20px 20px, 20px 20px; }
.orbit { position: absolute; left: 50%; top: 50%; border: 1px solid rgba(116, 225, 235, .35); border-radius: 50%; transform: translate(-50%, -50%); }
.orbit-one { width: 184px; height: 184px; border-style: dashed; animation: loginRotate 36s linear infinite; }
.orbit-two { width: 130px; height: 130px; border-color: rgba(166, 148, 255, .44); }
.orbit-three { width: 87px; height: 87px; border-color: rgba(116, 225, 235, .18); }
.orbit-core { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); color: var(--cyan); filter: drop-shadow(0 0 15px rgba(102, 229, 235, .56)); }
.orbit-core .icon { width: 49px; height: 49px; stroke-width: 1.15; }
.art-coordinate { position: absolute; color: #648a9e; font: 700 8px var(--mono); letter-spacing: .8px; }
.coordinate-one { left: 12px; top: 11px; }.coordinate-two { right: 12px; bottom: 11px; }
.login-card h1 { margin: 0; font-size: 34px; font-weight: 780; line-height: 1.12; letter-spacing: -1.5px; }
.login-subtitle { margin: 12px 0 22px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.login-form { display: grid; gap: 14px; }
.login-form label { display: grid; gap: 7px; color: #b4c9d9; font-size: 11px; font-weight: 750; }
.login-form .btn { width: 100%; margin-top: 5px; padding: 13px; }
.login-form .btn .icon { margin-left: 3px; }
.login-footnote { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 18px 0 0; color: #658198; font: 700 10px var(--mono); }
.login-footnote::before { content: '◈'; color: var(--cyan); }
.setup-card { width: min(100%, 510px); }
.setup-card .login-subtitle { margin-bottom: 24px; }
.setup-card .login-form { gap: 12px; }
.setup-success { padding: 16px; border: 1px solid rgba(102, 229, 235, .25); border-radius: 10px; background: rgba(102, 229, 235, .08); }
.setup-success p { margin: 0 0 14px; color: var(--text); font-size: 13px; line-height: 1.5; }
.setup-success .btn { display: inline-flex; justify-content: center; text-decoration: none; }

@keyframes riseIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes rotate { to { transform: rotate(360deg); } }
@keyframes loginRotate { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes pulse { 50% { opacity: .48; box-shadow: 0 0 4px var(--cyan); } }
@keyframes scan { 0%, 18% { transform: translateX(-130%); } 36%, 100% { transform: translateX(130%); } }

@media (max-width: 1200px) {
  .app-shell { grid-template-columns: 220px minmax(0, 1fr); }
  .sidebar { padding-left: 14px; padding-right: 14px; }
  .quick-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-visual { right: -60px; opacity: .56; }
  .hero-copy { max-width: 80%; }
  .dashboard-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .app-shell { display: block; }
  .sidebar { display: none; }
  .topbar { height: 66px; padding: 0 21px; }
  .mobile-brand { display: flex; font-size: 17px; }
  .mobile-brand .brand-mark { width: 31px; height: 31px; }
  .mobile-brand .brand-mark .icon { width: 20px; height: 20px; }
  .today-label, .live-badge { display: none; }
  .top-add { padding: 8px 10px; font-size: 11px; }
  .topbar-actions { gap: 8px; }
  .mobile-logout { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 9px; background: rgba(96, 140, 176, .1); color: #8da9bd; }
  .mobile-logout .icon { width: 17px; height: 17px; }
  .mobile-logout:hover { color: var(--cyan); border-color: var(--line-strong); }
  .content { padding: 28px 20px 105px; }
  .bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 6; display: flex; justify-content: space-around; height: calc(69px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid rgba(115, 177, 209, .23); background: rgba(8, 19, 32, .95); backdrop-filter: blur(18px); box-shadow: 0 -10px 35px rgba(0,0,0,.25); }
  .bottom-nav button { position: relative; display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 0; background: transparent; color: #748da3; font-size: 9px; font-weight: 700; }
  .bottom-nav button .icon { width: 20px; height: 20px; }
  .bottom-nav button.active { color: var(--cyan); }
  .bottom-nav button.active::before { content: ''; position: absolute; top: 0; width: 36px; height: 2px; border-radius: 2px; background: var(--cyan); box-shadow: 0 0 11px var(--cyan); }
  .toast { bottom: 82px; left: 18px; right: 18px; text-align: center; }
}
@media (max-width: 650px) {
  .page-heading { align-items: start; }
  .page-heading h1 { font-size: 31px; }
  .page-heading .btn { padding: 9px; font-size: 0; }
  .page-heading .btn .icon { width: 19px; height: 19px; }
  .hero { min-height: 220px; padding: 25px; }
  .hero-copy { max-width: 100%; }
  .hero h2 { font-size: 29px; }
  .hero-visual { right: -118px; opacity: .25; }
  .hero-data { gap: 9px; font-size: 8px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .stat-grid { gap: 8px; }
  .stat-card { padding: 15px; min-height: 125px; }
  .stat-value { font-size: 22px; white-space: normal; overflow-wrap: anywhere; }
  .note-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .content { padding-left: 16px; padding-right: 16px; }
  .top-add { width: 34px; height: 34px; padding: 0; justify-content: center; }
  .top-add span { display: none; }
  .quick-actions { gap: 8px; }
  .quick-action { padding: 9px; min-height: 62px; font-size: 10px; }
  .quick-icon { width: 28px; height: 28px; }
  .quick-icon .icon { width: 16px; height: 16px; }
  .quick-action small { font-size: 9px; }
  .quick-arrow { display: none; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-grid .stat-card:last-child { grid-column: span 2; min-height: 105px; }
  .panel { padding: 17px; }
  .task-row, .record-row { flex-wrap: wrap; }
  .task-row .task-main { flex: 1 1 calc(100% - 38px); }
  .task-row .pill { order: 4; margin-left: 33px; }
  .task-row .row-actions { order: 5; margin-left: auto; }
  .record-row .record-amount { margin-left: auto; }
  .record-row .row-actions { width: 100%; justify-content: flex-end; }
  .field-row { grid-template-columns: 1fr; }
  .login-card { padding: 25px 24px; }
  .login-card h1 { font-size: 31px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
