:root {
  color-scheme: light dark;
  --bg: #f5f5f7;
  --surface: rgba(255,255,255,.72);
  --surface-solid: #fff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(0,0,0,.08);
  --shadow: 0 18px 55px rgba(26,25,40,.11), 0 2px 8px rgba(20,20,30,.05);
  --accent: #6657d9;
}
*{box-sizing:border-box}
html,body{min-height:100%;margin:0}
body{font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","Segoe UI",sans-serif;background:var(--bg);color:var(--text);-webkit-font-smoothing:antialiased}
body:before{content:"";position:fixed;inset:0;pointer-events:none;background:radial-gradient(circle at 12% 4%,rgba(119,104,255,.15),transparent 28rem),radial-gradient(circle at 90% 90%,rgba(62,180,203,.11),transparent 30rem)}
a{color:inherit;text-decoration:none}
.shell{position:relative;max-width:1160px;margin:0 auto;padding:28px 30px 56px}
.topbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:56px}
.brand{display:flex;align-items:center;gap:12px;font-weight:690;letter-spacing:-.02em}.brand img{width:38px;height:38px;border-radius:11px;box-shadow:0 8px 22px rgba(72,49,181,.2)}
.account{display:flex;align-items:center;gap:12px}.avatar{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(145deg,#7568ee,#503bb5);color:#fff;font-weight:700}.account-copy{line-height:1.25}.account-copy strong,.account-copy span{display:block}.account-copy span{font-size:12px;color:var(--muted);margin-top:2px}
.eyebrow{color:var(--accent);font-weight:650;font-size:13px;letter-spacing:.01em;margin-bottom:10px}.hero h1{font-size:clamp(38px,5vw,64px);line-height:.98;letter-spacing:-.052em;margin:0;max-width:800px}.hero p{font-size:18px;color:var(--muted);line-height:1.5;margin:18px 0 0;max-width:600px}
.section-head{display:flex;justify-content:space-between;align-items:end;margin:55px 0 18px}.section-head h2{font-size:20px;letter-spacing:-.025em;margin:0}.section-head span{font-size:13px;color:var(--muted)}
.grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.card{position:relative;min-height:205px;padding:22px;border:1px solid var(--line);border-radius:24px;background:var(--surface);box-shadow:0 1px 1px rgba(0,0,0,.02);backdrop-filter:blur(24px);transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease}.card:hover{transform:translateY(-4px);box-shadow:var(--shadow);border-color:rgba(99,82,210,.22)}
.icon{width:50px;height:50px;border-radius:15px;display:grid;place-items:center;margin-bottom:32px;color:#fff;box-shadow:inset 0 1px rgba(255,255,255,.35),0 8px 20px rgba(40,35,70,.12)}.icon svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.blue{background:linear-gradient(145deg,#5ea7ff,#3568da)}.violet{background:linear-gradient(145deg,#a77bff,#6641cf)}.cyan{background:linear-gradient(145deg,#55c6e6,#2184a6)}.green{background:linear-gradient(145deg,#67cf8d,#239755)}.orange{background:linear-gradient(145deg,#ffaf56,#e56727)}.pink{background:linear-gradient(145deg,#f179a3,#c74777)}.indigo{background:linear-gradient(145deg,#7a81f8,#4d50bf)}.teal{background:linear-gradient(145deg,#55cfc1,#218c87)}
.card h3{font-size:18px;letter-spacing:-.02em;margin:0 0 7px}.card p{font-size:13px;line-height:1.45;color:var(--muted);margin:0;padding-right:8px}.arrow{position:absolute;right:20px;top:24px;color:var(--muted);font-size:18px;transition:transform .2s}.card:hover .arrow{transform:translate(2px,-2px);color:var(--accent)}
.footer{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);margin-top:50px;padding-top:22px;color:var(--muted);font-size:13px}.footer-actions{display:flex;gap:18px;align-items:center}.link-button,.logout{font:inherit;color:var(--muted);background:none;border:0;padding:0;cursor:pointer}.link-button:hover,.logout:hover{color:var(--text)}
.login-wrap{position:relative;min-height:100vh;display:grid;place-items:center;padding:24px}.login-card{width:min(100%,440px);padding:44px;border:1px solid var(--line);border-radius:32px;background:var(--surface);box-shadow:var(--shadow);backdrop-filter:blur(28px);text-align:center}.login-card img{width:66px;height:66px;border-radius:19px;box-shadow:0 14px 35px rgba(72,49,181,.25)}.login-card h1{font-size:34px;letter-spacing:-.045em;margin:24px 0 10px}.login-card p{color:var(--muted);line-height:1.55;margin:0 0 28px}.primary{width:100%;display:flex;align-items:center;justify-content:center;gap:10px;border:0;border-radius:14px;padding:14px 20px;background:linear-gradient(180deg,#7165df,#5c4ac4);color:#fff;font-size:15px;font-weight:650;box-shadow:0 10px 24px rgba(82,65,190,.22);cursor:pointer}.primary:hover{filter:brightness(1.04)}.fine{font-size:12px!important;margin:19px 0 0!important}.notice{font-size:13px;border-radius:12px;padding:11px 14px;margin:0 0 18px}.error{color:#a22d3f;background:rgba(217,72,95,.11)}.success{color:#26714c;background:rgba(67,170,111,.12)}.spinner{width:15px;height:15px;border:2px solid rgba(255,255,255,.4);border-top-color:#fff;border-radius:50%;animation:spin .7s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}
@media(max-width:900px){.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hero h1{font-size:48px}}
@media(max-width:560px){.shell{padding:20px 18px 36px}.topbar{margin-bottom:42px}.account-copy{display:none}.hero h1{font-size:40px}.hero p{font-size:16px}.section-head{margin-top:42px}.grid{grid-template-columns:1fr}.card{min-height:180px}.icon{margin-bottom:25px}.footer{align-items:flex-start;gap:18px;flex-direction:column}.login-card{padding:34px 25px;border-radius:26px}}
@media(prefers-color-scheme:dark){:root{--bg:#0c0c0e;--surface:rgba(29,29,32,.76);--surface-solid:#1d1d20;--text:#f5f5f7;--muted:#a1a1a8;--line:rgba(255,255,255,.09);--shadow:0 22px 64px rgba(0,0,0,.38);--accent:#a99cff}body:before{background:radial-gradient(circle at 12% 4%,rgba(98,78,221,.18),transparent 29rem),radial-gradient(circle at 90% 90%,rgba(40,148,164,.1),transparent 30rem)}}
