:root {
  color-scheme: dark; font-family: -apple-system,BlinkMacSystemFont,"Helvetica Neue",sans-serif;
  --bg: #101110; --panel: #191b18; --edge: #2a2d27; --text: #f5f7ee;
  --muted: #a1a698; --lime: #d5ff67; --danger: #ffb58d;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--text); }
button,input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
button:focus-visible,input:focus-visible,a:focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; }
a { color: inherit; text-decoration: none; }
p,h1,h2,h3 { margin: 0; }
.wrap { max-width: 720px; margin: auto; padding: max(18px,env(safe-area-inset-top)) max(18px,env(safe-area-inset-right)) max(24px,env(safe-area-inset-bottom)) max(18px,env(safe-area-inset-left)); }
.top,.heading,.section-heading,.week-header,footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.top { min-height: 48px; border-bottom: 1px solid var(--edge); padding-bottom: 12px; }
.brand { display: flex; gap: 8px; align-items: center; font-size: 19px; font-weight: 760; letter-spacing: -.055em; }
.brand img { border: 1px solid var(--edge); border-radius: 11px; }
.accent { color: var(--lime); }
.refresh { display: flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 13px; color: var(--text); border: 1px solid #444b35; background: #232719; border-radius: 12px; font-size: 14px; font-weight: 660; }
.refresh-mark { color: var(--lime); font-size: 20px; line-height: 1; }
.refresh[aria-busy="true"] .refresh-mark { animation: spin 1.1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.heading { margin: 26px 0 17px; align-items: end; }
.eyebrow { font-size: 12px; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; color: var(--lime); }
h1 { font-size: clamp(49px,10vw,74px); line-height: .98; font-weight: 770; letter-spacing: -.085em; margin: 6px 0 0; }
.updated { color: var(--muted); font-size: 13px; text-align: right; padding-bottom: 2px; }
.hero { display: grid; grid-template-columns: 1fr auto; gap: 18px 10px; overflow: hidden; padding: 20px 16px 13px; border: 1px solid #3d4630; border-radius: 22px; background: radial-gradient(ellipse at 105% -40%,#3c482a,transparent 75%),linear-gradient(140deg,#22271c,#171b16); }
.hero-value { font-size: clamp(45px,10.5vw,70px); line-height: 1.05; color: var(--lime); letter-spacing: -.08em; font-weight: 730; font-variant-numeric: tabular-nums; }
.summary .eyebrow { color: #d0d9bf; letter-spacing: .075em; }
.view-label,.upload p:last-child { color: #babfb1; font-size: 13px; }
.upload { min-width: 69px; align-self: center; border-left: 1px solid #45513a; padding-left: 14px; text-align: left; }
.upload-value { font-size: 33px; letter-spacing: -.07em; font-variant-numeric: tabular-nums; font-weight: 760; }
.week { grid-column: 1/-1; border-top: 1px solid #394231; padding-top: 11px; }
.week-header { font-size: 13px; font-weight: 670; }
.week-header span { color: var(--muted); font-weight: 450; }
.bars { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; margin-top: 7px; }
.day { color: #c0c6b8; background: transparent; border: 1px solid transparent; border-radius: 9px; display: grid; grid-template-rows: 44px 17px; align-items: center; justify-items: center; min-width: 0; min-height: 68px; padding: 4px 0 2px; }
.day[aria-pressed="true"] { color: var(--lime); background: #d5ff6710; border-color: #d5ff6736; }
.day span:last-child { font-size: 11px; }
.bar-space { display: flex; align-items: end; justify-content: center; width: 100%; height: 40px; }
.bar { height: var(--bar); width: 56%; max-width: 32px; min-width: 7px; background: #777f66; border-radius: 5px; }
.day[aria-pressed="true"] .bar { background: var(--lime); }
.section-heading { margin: 23px 0 10px; align-items: baseline; }
.section-heading h2 { font-size: 22px; font-weight: 730; letter-spacing: -.05em; }
.section-heading p { font-size: 13px; color: var(--muted); }
.accounts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.account,.posts,.login { border: 1px solid var(--edge); background: var(--panel); border-radius: 16px; }
.account { min-width: 0; padding: 13px 11px; }
.account-header { display: flex; align-items: center; gap: 8px; margin-bottom: 13px; }
.avatar { flex: none; width: 33px; height: 33px; display: grid; place-items: center; font-size: 13px; font-weight: 780; border-radius: 11px; color: #111; background: var(--badge); }
.account h3 { font-size: 16px; font-weight: 710; letter-spacing: -.035em; white-space: nowrap; }
.handle { font-size: 12px; color: var(--muted); display: inline-block; overflow: hidden; text-overflow: ellipsis; max-width: 100%; vertical-align: top; }
.handle:hover,.text-button:hover { color: var(--lime); }
.account-metrics { display: flex; justify-content: space-between; gap: 6px; }
.account-metrics strong { display: block; font-size: clamp(20px,5vw,29px); letter-spacing: -.055em; font-variant-numeric: tabular-nums; font-weight: 680; }
.account-metrics span { color: var(--muted); font-size: 12px; }
.account-error { color: var(--danger); font-size: 13px; }
.posts { overflow: hidden; }
.post { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; padding: 12px 14px; align-items: center; }
.post+.post { border-top: 1px solid var(--edge); }
.post p:first-child { font-size: 14px; font-weight: 650; }
.post p:nth-child(2) { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 3px; }
.post .post-views { font-variant-numeric: tabular-nums; text-align: right; }
.empty { color: var(--muted); padding: 16px 14px; font-size: 14px; }
footer { margin-top: 18px; font-size: 13px; color: var(--muted); align-items: start; }
footer p { line-height: 1.45; }
.text-button { border: 0; background: none; color: var(--text); white-space: nowrap; min-height: 44px; padding: 0 0 0 8px; transform: translateY(-12px); }
.login { width: min(100%,420px); margin: max(28px,10vh) auto 0; padding: 24px 20px; }
.login h1 { font-size: clamp(38px,8vw,49px); margin: 8px 0 12px; }
.muted,.notice { color: var(--muted); }
.notice { margin-top: 26px; }
form { display: grid; margin-top: 25px; gap: 8px; }
form label { font-size: 14px; font-weight: 650; }
form input { border: 1px solid #444a3e; border-radius: 11px; background: #101210; color: var(--text); padding: 13px 12px; min-width: 0; }
form button { border: 0; border-radius: 11px; background: var(--lime); color: #151b0a; padding: 12px; min-height: 46px; font-weight: 760; margin-top: 3px; }
.status { color: var(--danger); font-size: 14px; line-height: 1.4; }
#dashboard-status { margin-bottom: 10px; }
.status:empty { display: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (min-width:560px) {
  .wrap { padding-left: 26px; padding-right: 26px; }
  .hero { padding: 22px 24px 14px; }
  .accounts { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .account { padding: 13px 12px; }
}
@media (prefers-reduced-motion: reduce) { .refresh[aria-busy="true"] .refresh-mark { animation: none; } }
