:root {
  --paper: #f4f1e9;
  --paper-deep: #eae6da;
  --ink: #17201d;
  --ink-soft: #5e6963;
  --line: #dcd8cc;
  --panel: #fbfaf6;
  --gold: #e6a83f;
  --gold-soft: #f7e6bf;
  --teal: #5c9e91;
  --coral: #e8876f;
  --violet: #9b8bb8;
  --shadow: 0 18px 50px rgba(37, 43, 36, 0.07);
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: radial-gradient(circle at 78% -10%, #fffdf7 0, transparent 34%), var(--paper); }
button, input, select { font: inherit; }
button { cursor: pointer; }
.app-shell { display: flex; min-height: 100vh; }
.sidebar { width: 252px; flex: 0 0 252px; background: var(--ink); color: #e7e8df; padding: 28px 18px 20px; display: flex; flex-direction: column; }
.brand { color: #f7f4eb; display: flex; align-items: center; gap: 11px; text-decoration: none; padding: 0 10px 42px; }
.brand strong, .brand small, .user-chip strong, .user-chip small, .guild-switcher strong, .guild-switcher small { display: block; }
.brand strong { font-size: 18px; letter-spacing: .2px; }
.brand small { color: #87928b; font: 11px Arial, sans-serif; margin-top: 3px; }
.brand-mark { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 10px 10px 10px 3px; background: var(--gold); color: var(--ink); font: bold 12px Arial, sans-serif; letter-spacing: -1px; }
.nav { display: grid; gap: 7px; }
.nav-link { color: #9aa49e; text-decoration: none; border-radius: 8px; padding: 12px 14px; display: flex; align-items: center; gap: 12px; font-size: 14px; transition: background .2s, color .2s; }
.nav-link:hover, .nav-link.active { color: #fffdf5; background: #29352f; }
.nav-link.active { box-shadow: inset 3px 0 var(--gold); }
.nav-icon { width: 18px; text-align: center; color: var(--gold); font-family: Arial, sans-serif; font-size: 17px; }
.sidebar-footer { margin-top: auto; border-top: 1px solid #344039; padding-top: 18px; }
.guild-switcher { display: flex; align-items: center; gap: 9px; padding: 10px 8px; }
.guild-switcher strong { font-size: 12px; color: #e9ece3; }
.guild-switcher small { font: 10px Arial, sans-serif; color: #849089; margin-top: 3px; }
.guild-avatar, .user-avatar { display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; font: bold 10px Arial, sans-serif; }
.guild-avatar { width: 30px; height: 30px; background: #d7e3cc; color: #49624d; }
.chevron { margin-left: auto; color: #78857d; font-family: Arial, sans-serif; }
.settings-button { width: 100%; color: #88928c; background: transparent; border: 0; text-align: left; padding: 14px 10px 2px; font: 12px Arial, sans-serif; }
.settings-button span { margin-right: 9px; }
.main-content { width: calc(100% - 252px); padding: 0 5.3vw 28px; overflow: hidden; }
.topbar { min-height: 76px; display: flex; justify-content: flex-end; align-items: center; border-bottom: 1px solid var(--line); }
.mobile-brand { display: none; }
.topbar-actions, .user-chip { display: flex; align-items: center; }
.topbar-actions { gap: 24px; }
.icon-button { position: relative; background: transparent; border: 0; color: var(--ink-soft); font-family: Arial, sans-serif; font-size: 23px; }
.notification-dot { position: absolute; top: 3px; right: 0; width: 6px; height: 6px; background: var(--coral); border: 2px solid var(--paper); border-radius: 50%; }
.user-chip { gap: 9px; }
.user-chip strong { font-size: 12px; }
.user-chip small { font: 10px Arial, sans-serif; color: var(--ink-soft); margin-top: 3px; }
.user-avatar { width: 32px; height: 32px; background: #d8e2d2; color: #49624d; }
.page-heading { display: flex; justify-content: space-between; align-items: end; padding: 54px 0 30px; }
.eyebrow { margin: 0 0 8px; color: #9a7141; text-transform: uppercase; letter-spacing: 1.7px; font: 10px Arial, sans-serif; font-weight: bold; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 10px; font-size: clamp(29px, 3vw, 42px); line-height: 1.03; letter-spacing: -.6px; font-weight: normal; }
h2 { margin-bottom: 0; font-size: 20px; font-weight: normal; letter-spacing: -.2px; }
.heading-copy { color: var(--ink-soft); font: 13px Arial, sans-serif; margin: 0; }
.primary-button { display: inline-flex; gap: 9px; align-items: center; border: 0; border-radius: 6px; background: var(--ink); color: #fffdf5; padding: 13px 17px; font: bold 12px Arial, sans-serif; box-shadow: 0 7px 16px rgba(23, 32, 29, .15); transition: transform .2s, background .2s; }
.primary-button:hover { background: #293b33; transform: translateY(-2px); }
.primary-button span { color: var(--gold); font-size: 19px; line-height: 10px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; }
.stat-card { min-height: 154px; border: 1px solid var(--line); border-radius: 7px; padding: 20px; background: rgba(251, 250, 246, .8); box-shadow: 0 7px 25px rgba(37, 43, 36, .025); }
.stat-card-dark { background: var(--ink); border-color: var(--ink); color: #f7f4eb; }
.stat-label { display: flex; align-items: center; gap: 9px; color: var(--ink-soft); font: 11px Arial, sans-serif; }
.stat-card-dark .stat-label { color: #a5afa8; }
.stat-icon { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; font-family: Arial, sans-serif; font-size: 13px; }
.gold-icon { background: var(--gold-soft); color: #b16d12; }.teal-icon { background: #dcece6; color: #3e8274; }.coral-icon { background: #f7ded5; color: #c66d5d; }.lilac-icon { background: #e9e2f0; color: #806d9e; }
.stat-value { display: block; margin: 20px 0 13px; font-size: 28px; font-weight: normal; letter-spacing: -.6px; }.stat-value span { color: #ad9361; font: 11px Arial, sans-serif; letter-spacing: 0; }.stat-card-dark .stat-value span { color: var(--gold); }
.stat-foot { display: flex; gap: 7px; color: #9ba29b; font: 10px Arial, sans-serif; }.trend-up { color: #4e9279; font-weight: bold; }.stat-card-dark .trend-up { color: #8dc8a7; }.trend-neutral { color: #6d7e76; font-weight: bold; }
.content-grid, .bottom-grid { display: grid; gap: 13px; margin-top: 34px; }.content-grid { grid-template-columns: 1.2fr .8fr; }.bottom-grid { grid-template-columns: 1.2fr .8fr; margin-top: 13px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 7px; box-shadow: var(--shadow); }.panel-heading { display: flex; align-items: start; justify-content: space-between; padding: 23px 23px 16px; }.panel-heading .eyebrow { margin-bottom: 6px; }
.text-button, .filter-button { border: 0; background: transparent; color: #9a7141; font: bold 11px Arial, sans-serif; padding: 2px 0; }.text-button span, .activity-footer span { margin-left: 5px; font-size: 15px; }.filter-button { color: var(--ink-soft); border: 1px solid var(--line); border-radius: 4px; padding: 7px 9px; font-weight: normal; }
.leaderboard-list { padding: 0 23px 11px; }.leader-row { display: grid; grid-template-columns: minmax(150px, 1fr) 100px 58px; align-items: center; gap: 13px; padding: 13px 0; border-top: 1px solid #ece9e0; font: 12px Arial, sans-serif; }.leader-header { border-top: 0; color: #a0a69f; font-size: 9px; text-transform: uppercase; letter-spacing: 1px; padding: 0 0 8px; }.member-cell { display: flex; align-items: center; gap: 10px; }.member-cell small, .activity-row small, .session-item small { display: block; color: #9a9f98; font-size: 10px; margin-top: 3px; }.member-avatar { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #fff; font-size: 9px; font-weight: bold; }.avatar-amber { background: #c8a063; }.avatar-blue { background: #7f9cae; }.avatar-coral { background: #c48777; }.avatar-violet { background: #9586aa; }.leader-row strong { font-weight: bold; }.leader-row em { color: #ae9560; font: 9px Arial, sans-serif; font-style: normal; }.level-badge { justify-self: end; color: #a17438; background: #f6ebd5; border-radius: 3px; padding: 5px 4px; font: bold 8px Arial, sans-serif; }
.activity-list { padding: 0 23px; }.activity-row { display: grid; grid-template-columns: 28px 1fr auto; gap: 11px; align-items: center; padding: 12px 0; border-top: 1px solid #ece9e0; font: 11px Arial, sans-serif; }.activity-mark { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; font-size: 14px; }.mark-green { color: #397d62; background: #deeee5; }.mark-coral { color: #c56757; background: #f9e3dc; }.mark-amber { color: #a46d20; background: #f6e7c5; }.amount-positive { color: #40876a; font: bold 11px Arial, sans-serif; }.amount-negative { color: #c56757; font: bold 11px Arial, sans-serif; }.activity-footer { width: 100%; border: 0; border-top: 1px solid #ece9e0; background: transparent; color: #9a7141; text-align: left; padding: 16px 23px; font: bold 11px Arial, sans-serif; }
.chart-panel { min-height: 280px; }.chart-total { color: #398368; font: bold 13px Arial, sans-serif; }.chart-total small { display: block; color: #9ca49d; font-size: 9px; font-weight: normal; margin-top: 4px; text-align: right; }.chart { height: 170px; display: flex; padding: 0 23px 18px; }.chart-y-labels { color: #acb0a8; display: flex; flex-direction: column; justify-content: space-between; font: 9px Arial, sans-serif; padding: 1px 10px 20px 0; }.chart-area { position: relative; flex: 1; }.grid-line { position: absolute; left: 0; right: 0; border-top: 1px dashed #dddcd2; }.line-top { top: 0; }.line-mid { top: 50%; }.line-bottom { bottom: 21px; }.chart svg { position: absolute; inset: 0 0 20px; width: 100%; height: calc(100% - 20px); overflow: visible; }.area-fill { fill: rgba(92, 158, 145, .12); }.line-path { fill: none; stroke: var(--teal); stroke-width: 3; vector-effect: non-scaling-stroke; }.chart-point { fill: var(--panel); stroke: var(--teal); stroke-width: 3; }.chart-x-labels { position: absolute; bottom: 0; left: 0; right: 0; display: flex; justify-content: space-between; color: #acb0a8; font: 9px Arial, sans-serif; }
.session-panel { padding-bottom: 18px; }.session-item { display: flex; align-items: center; gap: 10px; margin: 0 23px; padding: 12px 0; border-top: 1px solid #ece9e0; font: 11px Arial, sans-serif; }.session-symbol { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 5px; background: #fae5c1; color: #b47725; font-size: 14px; }.teal-session { background: #dfede6; color: #428371; }.live-pill { margin-left: auto; color: #43876e; background: #e1efe8; padding: 4px 6px; border-radius: 3px; font: bold 8px Arial, sans-serif; }.live-pill i, .sync-dot { display: inline-block; width: 5px; height: 5px; background: #52a17e; border-radius: 50%; margin-right: 3px; }.new-session-button { width: calc(100% - 46px); margin: 15px 23px 0; background: transparent; border: 1px dashed #c9c6bb; border-radius: 4px; color: #8f7149; padding: 10px; font: bold 10px Arial, sans-serif; }.new-session-button span { font-size: 15px; vertical-align: -1px; margin-right: 4px; }
.footer { display: flex; justify-content: space-between; color: #a3a79f; font: 10px Arial, sans-serif; padding: 24px 2px 0; }.sync-dot { margin: 0 0 1px 4px; }
.logout-button { border: 0; border-left: 1px solid var(--line); background: transparent; color: var(--ink-soft); margin-left: 10px; padding-left: 12px; font: 10px Arial, sans-serif; }.logout-button:hover { color: var(--coral); }
.modal-backdrop { position: fixed; inset: 0; display: grid; place-items: center; background: rgba(23, 32, 29, .5); z-index: 5; padding: 20px; }.modal-backdrop[hidden] { display: none; }.modal-open { overflow: hidden; }.modal { position: relative; width: min(100%, 450px); padding: 31px; background: var(--panel); border-radius: 8px; box-shadow: 0 25px 80px rgba(0, 0, 0, .25); }.modal h2 { font-size: 28px; margin-bottom: 8px; }.modal-copy { color: var(--ink-soft); font: 12px Arial, sans-serif; line-height: 1.5; margin-bottom: 22px; }.modal label { display: block; color: var(--ink-soft); font: bold 10px Arial, sans-serif; margin-top: 14px; }.modal input, .modal select { width: 100%; margin-top: 6px; padding: 11px; border: 1px solid var(--line); border-radius: 4px; background: #fffef9; color: var(--ink); outline-color: var(--teal); }.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }.modal-close { position: absolute; top: 13px; right: 15px; border: 0; background: transparent; font-size: 25px; color: var(--ink-soft); }.modal-submit { margin-top: 22px; width: 100%; justify-content: center; }
.auth-page { min-height: 100vh; background: var(--ink); }.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(360px, .9fr) 1.1fr; }.auth-intro { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 42px 6vw 48px; color: #f7f4eb; overflow: hidden; background: radial-gradient(circle at 20% 80%, rgba(230, 168, 63, .16), transparent 34%), var(--ink); }.auth-intro::after { content: ''; position: absolute; width: 300px; height: 300px; right: -120px; bottom: -150px; border: 1px solid rgba(230, 168, 63, .35); border-radius: 50%; box-shadow: 0 0 0 28px rgba(230, 168, 63, .05), 0 0 0 58px rgba(230, 168, 63, .04); }.auth-brand { padding: 0; position: relative; z-index: 1; }.auth-pitch { max-width: 420px; position: relative; z-index: 1; }.auth-pitch h1 { font-size: clamp(38px, 4.8vw, 66px); line-height: .98; margin-bottom: 24px; }.auth-pitch > p:last-child { max-width: 330px; color: #a5afa8; font: 14px Arial, sans-serif; line-height: 1.65; }.auth-note { display: flex; gap: 13px; align-items: center; color: #a5afa8; font: 11px Arial, sans-serif; line-height: 1.5; position: relative; z-index: 1; }.auth-note > span:first-child { color: var(--gold); font-size: 24px; }.auth-note strong { color: #f7f4eb; font-weight: normal; }.auth-panel { display: grid; place-items: center; padding: 32px; background: var(--paper); }.auth-card { width: min(100%, 400px); }.auth-card h2 { font-size: 34px; margin-bottom: 10px; }.auth-copy { color: var(--ink-soft); font: 13px Arial, sans-serif; margin-bottom: 30px; }.auth-card label { display: block; color: var(--ink-soft); font: bold 10px Arial, sans-serif; letter-spacing: .3px; margin-top: 16px; text-transform: uppercase; }.auth-card input { width: 100%; margin-top: 7px; border: 1px solid var(--line); border-radius: 4px; background: #fffef9; color: var(--ink); outline-color: var(--teal); padding: 13px; }.auth-submit { margin-top: 24px; width: 100%; justify-content: space-between; }.auth-submit:disabled { cursor: wait; opacity: .65; }.auth-switch { border: 0; background: transparent; color: #9a7141; display: block; margin: 22px auto 0; font: bold 11px Arial, sans-serif; }.auth-error { color: #b65345; background: #f9e3dc; border-radius: 4px; padding: 10px; font: 11px Arial, sans-serif; margin: 16px 0 0; }
.auth-divider { display: flex; align-items: center; gap: 10px; margin: 22px 0; color: #9a9f98; font: 10px Arial, sans-serif; text-transform: uppercase; letter-spacing: .5px; }.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
#discord-login { text-decoration: none; justify-content: center; margin-top: 0; }
@media (max-width: 1050px) { .sidebar { width: 210px; flex-basis: 210px; }.main-content { width: calc(100% - 210px); padding: 0 3.5vw 28px; }.stats-grid { grid-template-columns: repeat(2, 1fr); }.content-grid, .bottom-grid { grid-template-columns: 1fr; } }
@media (max-width: 680px) { .sidebar { display: none; }.main-content { width: 100%; padding: 0 18px 24px; }.topbar { justify-content: space-between; min-height: 65px; }.mobile-brand { display: flex; align-items: center; gap: 8px; font-size: 15px; }.mobile-brand .brand-mark { width: 28px; height: 28px; font-size: 9px; }.user-chip strong, .user-chip small, .user-chip .chevron { display: none; }.logout-button { border-left: 0; margin-left: 0; padding-left: 0; }.topbar-actions { gap: 12px; }.page-heading { align-items: start; flex-direction: column; gap: 22px; padding: 35px 0 25px; }.page-heading .primary-button { align-self: stretch; justify-content: center; }.stats-grid { grid-template-columns: 1fr 1fr; gap: 9px; }.stat-card { min-height: 135px; padding: 15px; }.stat-value { font-size: 23px; margin: 15px 0 10px; }.stat-foot { flex-wrap: wrap; }.panel-heading { padding: 19px 16px 14px; }.leaderboard-list, .activity-list { padding-left: 16px; padding-right: 16px; }.leader-row { grid-template-columns: minmax(120px, 1fr) 75px; gap: 7px; }.leader-row > :last-child { display: none; }.activity-row { grid-template-columns: 28px 1fr; }.activity-row > :last-child { grid-column: 2; }.chart { padding-left: 16px; padding-right: 16px; }.footer { gap: 10px; flex-wrap: wrap; }.modal { padding: 25px 20px; }.auth-shell { display: block; }.auth-intro { min-height: 310px; padding: 28px 24px 34px; }.auth-pitch { margin-top: 48px; }.auth-pitch h1 { font-size: 40px; }.auth-note { display: none; }.auth-panel { min-height: calc(100vh - 310px); padding: 38px 22px; }.auth-card h2 { font-size: 29px; } }
