/* ── Variables ── */
html { touch-action: manipulation }

:root {
  --a:  #3d7a5f;
  --ah: #2d5e47;
  --al: #eaf4ef;
  --ab: #c0ddd0;
  --bg: #f0f0ee;
  --w:  #ffffff;
  --b:  #e6e6e2;
  --bs: #f5f5f2;
  --ink: #0f0f0e;
  --i2:  #3a3a36;
  --i3:  #6b6b64;
  --i4:  #b0b0a8;
  --fd: 'Georgia', serif;
  --card-hbg: #fceef2;
  --anon: #7c5cbf;
  --anonbg: #f0ebfa;
  --qtag: #c0446a;
  --qtagbg: #fce8ef;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0 }
html { font-size: 15px; scroll-behavior: smooth }
body { font-family: system-ui, sans-serif; background: var(--bg); color: var(--ink); line-height: 1.5; min-height: 100vh }
a { text-decoration: none; color: inherit }
button, input, textarea, select { font-family: inherit; cursor: pointer }
img { display: block; max-width: 100% }

/* ── App shell ── */
.app { display: flex; min-height: calc(100vh - 48px) }
.main { flex: 1; min-width: 0; background: var(--w); border-right: 1px solid var(--b) }
.rsb { width: 220px; padding: 12px; flex-shrink: 0; background: var(--bg) }
.rc { background: var(--w); border: 1px solid var(--b); border-radius: 10px; padding: 8px; margin-bottom: 10px }
.rt { font-size: .58rem; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--i3); margin-bottom: 6px }
.rurow { display: flex; align-items: center; gap: 6px; padding: 4px 0; border-bottom: 1px solid var(--b) }
.rurow:last-of-type { border-bottom: none }
.ruava { width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-family: var(--fd); font-size: .62rem; color: #fff; font-style: italic }
.ruinfo { flex: 1; min-width: 0 }
.run { font-size: .7rem; font-weight: 600; color: var(--ink); line-height: 1.2 }
.ruh { font-size: .6rem; color: var(--i4) }
.rfbtn { padding: 2px 8px; border-radius: 99px; font-size: .6rem; font-weight: 600; cursor: pointer; background: var(--ink); color: #fff; border: none; flex-shrink: 0 }
.ftop { padding: 12px 16px; border-bottom: 1px solid var(--b); font-size: .95rem; font-weight: 600; color: var(--ink); background: var(--w); display: flex; align-items: center; justify-content: space-between; position: sticky; top: 48px; z-index: 50 }

/* ── Tabs ── */
.tabbar { display: flex; border-bottom: 1px solid var(--b); background: var(--w); position: sticky; top: 48px; z-index: 40 }
.tab { flex: 1; padding: 13px 0; text-align: center; font-size: .8rem; font-weight: 500; color: var(--i4); border: none; border-radius: 0; background: none; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .12s, border-color .12s }
.tab.on { color: var(--ink); border-bottom-color: var(--ink); font-weight: 600 }
.tab:hover { color: var(--i2); background: var(--bs) }

/* ── Responsive ── */
@media (max-width: 680px) {
  .sidebar, .rsb { display: none !important }
  .bn { display: flex !important }
  .main { border-right: none }
  .app { min-height: calc(100vh - 48px - 52px) }
  body { padding-bottom: 52px }
}
@media (min-width: 681px) {
  .bn { display: none !important }
}
