:root {
  color-scheme: light;
  --bg: #f7f8fb;
  --surface: #ffffff;
  --surface-2: #edf4f3;
  --ink: #1d2733;
  --muted: #667485;
  --line: #dce3ea;
  --accent: #0f766e;
  --accent-2: #b42318;
  --accent-3: #b7791f;
  --ok: #0a7b41;
  --shadow: 0 18px 42px rgba(26, 39, 54, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.shell {
  width: min(1120px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 32px 0;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 7vw, 3.6rem);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  font-size: 1rem;
  letter-spacing: 0;
}

button {
  min-height: 42px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 0 16px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.status-strip,
.panel,
.quota-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  margin-bottom: 16px;
}

.status-strip > div {
  min-width: 0;
  padding: 16px;
  background: var(--surface);
}

.label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.quota-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.quota-card {
  min-height: 220px;
  padding: 20px;
}

.quota-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.quota-title {
  font-size: 1.1rem;
  font-weight: 800;
}

.pill {
  align-self: start;
  border-radius: 999px;
  padding: 5px 9px;
  background: var(--surface-2);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
}

.meter {
  position: relative;
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5e9ef;
}

.meter > span {
  display: block;
  height: 100%;
  width: var(--value);
  border-radius: inherit;
  background: var(--accent);
}

.quota-number {
  margin-top: 18px;
  font-size: 2.4rem;
  font-weight: 850;
  line-height: 1;
}

.quota-caption {
  margin-top: 8px;
  color: var(--muted);
}

.panel {
  margin-bottom: 16px;
  padding: 18px;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.meta-grid div {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

dd {
  margin: 6px 0 0;
  overflow-wrap: anywhere;
  font-weight: 750;
}

.activity-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
}

.session-list,
.notes {
  margin: 14px 0 0;
  padding-left: 20px;
}

.session-list li,
.notes li {
  margin: 8px 0;
}

.muted {
  color: var(--muted);
}

.empty {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 18px;
  color: var(--muted);
}

@media (max-width: 760px) {
  .shell {
    width: min(100vw - 24px, 1120px);
    padding: 20px 0;
  }

  .topbar,
  .status-strip,
  .quota-grid,
  .meta-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: flex-start;
    display: grid;
  }

  button {
    width: 100%;
  }
}
