:root {
  color-scheme: light;
  --background: #edede3;
  --surface: #fafaf4;
  --ink: #143e34;
  --muted: #456458;
  --border: #b8c7b8;
  --accent: #cfee91;
  --accent-hover: #dcf6ab;
}
:root[data-tema="gelap"] {
  color-scheme: dark;
  --background: #11211c;
  --surface: #1c3027;
  --ink: #ecf5e9;
  --muted: #bacfbe;
  --border: #607569;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--background);
  color: var(--ink);
  font-family: system-ui, sans-serif;
}
.shell { width: min(100% - 2rem, 52rem); margin: auto; padding: 2rem 0 4rem; }
header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; }
.status { display: inline-flex; align-items: center; gap: .5rem; color: var(--muted); font-weight: 650; }
.status::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: #519035; }
main { margin-top: clamp(2rem, 8vw, 6rem); }
h1 { margin: 0 0 1.5rem; font-size: clamp(2.2rem, 8vw, 4.75rem); letter-spacing: -.055em; line-height: 1; }
section { padding: clamp(1.25rem, 6vw, 3rem); background: var(--surface); border: 1px solid var(--border); border-radius: 1.5rem; }
h2 { margin: 0; font-size: 1rem; color: var(--muted); }
output { display: block; margin: 1rem 0 1.5rem; font-size: clamp(4rem, 16vw, 8rem); font-weight: 720; line-height: 1; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.actions button { flex: 1 1 6rem; }
button { border: 1px solid var(--border); background: var(--surface); color: var(--ink); border-radius: .75rem; padding: .65rem 1rem; min-height: 44px; font: inherit; font-weight: 650; cursor: pointer; }
button:hover { border-color: var(--ink); }
button:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
#tambah { background: var(--accent); color: #143e34; }
#tambah:hover { background: var(--accent-hover); }
