@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&display=swap');

:root {
  --primary: #5B6CF0;
  --primary-light: #5BB8F5;
  --pink: #FF5FA0;
  --orange: #FF8A3D;
  --gold: #FFC233;
  --green: #1FB68A;
  --purple: #8E5CE6;
  --coral: #F0705A;
  --bg: #E8ECFA;
  --surface: #FFFFFF;
  --text: #2B2E4A;
  --muted: #8A8FA8;
  --line: #EEF0F8;
  --p-peach: #FDEDE4;
  --p-mint: #DDF5EA;
  --p-blue: #DCE8FB;
  --p-pink: #FBE0E8;
  --p-lav: #EDE4FA;
  --shadow: 0 8px 24px rgba(91, 108, 240, .10);
  --grad: linear-gradient(35deg, #5B6CF0 0%, #5BB8F5 100%);
  --grad-pink: linear-gradient(135deg, #FF7AB2 0%, #FF4F93 100%);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { font-family: 'Nunito', 'Segoe UI', sans-serif; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
.emoji { font-family: 'Segoe UI Emoji', 'Apple Color Emoji', sans-serif; }

/* ---------- shared atoms ---------- */
.card { background: var(--surface); border-radius: 24px; box-shadow: var(--shadow); }
.pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; font-weight: 800; border: 0; }
.btn-pink { background: var(--grad-pink); color: #fff; box-shadow: 0 10px 22px rgba(255, 79, 147, .35); }
.btn-orange { background: var(--orange); color: #fff; box-shadow: 0 8px 18px rgba(255, 138, 61, .35); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 18px rgba(91, 108, 240, .30); }
.btn-ghost { background: #F2F4FD; color: var(--primary); }
.muted { color: var(--muted); }
.chip { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.chip.green { background: var(--p-mint); color: #138a67; }
.chip.orange { background: var(--p-peach); color: #d4661c; }
.chip.blue { background: var(--p-blue); color: #3d52d8; }
.chip.pink { background: var(--p-pink); color: #d93b7c; }
.chip.lav { background: var(--p-lav); color: #7343c9; }
.chip.grey { background: #F0F1F6; color: #6c7190; }
.icon-circle { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; flex-shrink: 0; }
.ic-primary { background: var(--primary); color: #fff; }
.ic-orange { background: var(--orange); color: #fff; }
.ic-sky { background: var(--primary-light); color: #fff; }
.ic-pink { background: var(--pink); color: #fff; }
.ic-purple { background: var(--purple); color: #fff; }
.ic-green { background: var(--green); color: #fff; }
.ic-coral { background: var(--coral); color: #fff; }
.ic-gold { background: var(--gold); color: #fff; }
.esis-tag { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-size: 11px; font-weight: 800; color: #3d52d8; background: #EEF1FF; border: 1px dashed #b9c2fa; padding: 3px 9px; border-radius: 999px; }
.esis-tag::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.avatar { border-radius: 50%; display: grid; place-items: center; font-weight: 900; color: #fff; flex-shrink: 0; }
.bar { height: 8px; border-radius: 99px; background: #EEF0F8; overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 99px; }

/* ---------- mobile shell (390 x 844) ---------- */
.m { width: 390px; height: 844px; overflow: hidden; position: relative; background: #F7F8FE; }
.m .status { height: 44px; display: flex; align-items: center; justify-content: space-between; padding: 0 26px; font-weight: 800; font-size: 15px; position: relative; z-index: 3; }
.m .status.light { color: #fff; }
.m .content { padding: 0 20px; }
.m .h-title { font-size: 20px; font-weight: 900; }
.m .section-title { font-size: 18px; font-weight: 900; margin: 22px 0 12px; display: flex; justify-content: space-between; align-items: center; }
.m .section-title a { font-size: 13px; color: var(--primary); text-decoration: none; font-weight: 800; }
.tabbar { position: absolute; left: 0; right: 0; bottom: 0; height: 84px; background: #fff; border-radius: 28px 28px 0 0; box-shadow: 0 -6px 24px rgba(91, 108, 240, .10); display: flex; justify-content: space-around; align-items: flex-start; padding-top: 12px; z-index: 5; }
.tabbar .tab { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; font-weight: 800; color: #A9ADC4; width: 64px; }
.tabbar .tab .ti { font-size: 22px; filter: grayscale(1); opacity: .55; }
.tabbar .tab.active { color: var(--primary); }
.tabbar .tab.active .ti { filter: none; opacity: 1; }
.tabbar .mic-tab { width: 64px; height: 64px; border-radius: 50%; background: var(--grad-pink); margin-top: -30px; display: grid; place-items: center; box-shadow: 0 10px 22px rgba(255, 79, 147, .45); border: 5px solid #fff; font-size: 24px; }
.home-ind { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); width: 134px; height: 5px; border-radius: 9px; background: #2B2E4A; z-index: 6; }

/* ---------- web shell (1440 x 900) ---------- */
.w { width: 1440px; height: 900px; display: flex; overflow: hidden; background: var(--bg); }
.side { width: 248px; background: #fff; padding: 26px 18px; display: flex; flex-direction: column; gap: 4px; box-shadow: 4px 0 24px rgba(91, 108, 240, .06); z-index: 2; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 18px; margin: 0 8px 26px; }
.logo .mark { width: 40px; height: 40px; border-radius: 12px; background: var(--grad); display: grid; place-items: center; color: #fff; font-size: 20px; }
.logo small { display: block; font-size: 11px; color: var(--muted); font-weight: 700; }
.logo.brand { flex-direction: column; align-items: flex-start; gap: 6px; margin: 0 4px 22px; }
.logo.brand small { font-size: 11.5px; color: #1E3FA8; font-weight: 800; letter-spacing: .02em; padding-left: 4px; }
.brand-img { width: 204px; height: 96px; overflow: hidden; border-radius: 12px; background: #fff; }
.brand-img img { width: 100%; display: block; margin-top: -5px; mix-blend-mode: multiply; }
.nav { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 14px; font-weight: 700; font-size: 14px; color: #5d6283; }
.nav .ni { width: 22px; text-align: center; font-size: 17px; }
.nav.active { background: var(--grad); color: #fff; box-shadow: 0 8px 18px rgba(91, 108, 240, .30); }
.nav .count { margin-left: auto; background: var(--pink); color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 99px; font-weight: 800; }
.nav-label { font-size: 11px; font-weight: 800; color: #B0B4CA; letter-spacing: .08em; margin: 16px 14px 6px; }
.side .bottom { margin-top: auto; }
.main { flex: 1; padding: 26px 32px; overflow: hidden; display: flex; flex-direction: column; gap: 22px; }
.topbar { display: flex; align-items: center; gap: 16px; }
.topbar h1 { font-size: 26px; font-weight: 900; }
.topbar .sub { font-size: 14px; color: var(--muted); font-weight: 600; }
.search { margin-left: auto; width: 320px; height: 44px; background: #fff; border-radius: 999px; display: flex; align-items: center; padding: 0 18px; gap: 10px; color: var(--muted); font-size: 14px; box-shadow: var(--shadow); }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: var(--shadow); position: relative; font-size: 18px; }
.icon-btn .dot { position: absolute; top: 9px; right: 10px; width: 9px; height: 9px; border-radius: 50%; background: var(--pink); border: 2px solid #fff; }
.user { display: flex; align-items: center; gap: 10px; background: #fff; padding: 5px 16px 5px 5px; border-radius: 999px; box-shadow: var(--shadow); }
.user b { font-size: 14px; display: block; }
.user span { font-size: 12px; color: var(--muted); font-weight: 600; }
.grid { display: grid; gap: 22px; }
.stat { padding: 20px; display: flex; gap: 14px; align-items: center; }
.stat .v { font-size: 28px; font-weight: 900; line-height: 1.1; }
.stat .l { font-size: 13px; color: var(--muted); font-weight: 700; }
.card-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.card-h h3 { font-size: 17px; font-weight: 900; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 800; padding: 10px 12px; border-bottom: 1px solid var(--line); }
td { padding: 11px 12px; border-bottom: 1px solid var(--line); font-weight: 600; }
tr:last-child td { border-bottom: 0; }
