:root {
  color-scheme: light; font-family: Inter, -apple-system, system-ui, sans-serif;
  --ink: #172e2b; --paper: #f0f5f2; --line: #d8e4de; --dim: #516862; --green: #1b6654; --white: #fff;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); }
a { color: inherit; }
button, input { font: inherit; }
:focus-visible { outline: 3px solid #267c69; outline-offset: 3px; }
.container { width: min(1120px,100%); margin: 0 auto; padding: 38px 24px; }
.heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
h1 { margin: 0; font-size: clamp(29px, 5vw, 46px); font-weight: 750; letter-spacing: -.05em; }
h2 { margin: 0; font-size: 17px; }
.surface { background: #fff; border: 1px solid var(--line); border-radius: 15px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 7px 13px; border-radius: 8px;
  border: 1px solid #becfc7; background: var(--white); color: var(--ink); cursor: pointer; font-weight: 680; text-decoration: none; }
.button:hover { background: #e8f4ee; }
.button.primary { background: var(--green); color: white; border-color: var(--green); }
button:disabled { opacity: .6; cursor: wait; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.card { display: flex; flex-direction: column; min-height: 174px; padding: 14px 15px; }
.card-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.card-value { font-size: 40px; font-variant-numeric: tabular-nums; font-weight: 730; letter-spacing: -.045em; margin: 10px 0 2px; }
.subtle { color: var(--dim); margin: 0; font-size: 14px; line-height: 1.4; }
.card-end { margin-top: auto; padding-top: 13px; }
.card-end a { display: inline-flex; align-items: center; min-height: 34px; color: var(--green); font-size: 14px; font-weight: 680; }
.grip { touch-action: none; cursor: grab; min-height: 44px; min-width: 44px; border: 0; border-radius: 7px; color: var(--green); background: #edf5f0; font-size: 20px; font-weight: 700; }
.grip:active { cursor: grabbing; }
.card.dragging { opacity: .55; }
.card.target { outline: 2px dashed #267c69; outline-offset: 2px; }
.empty { padding: 20px; margin: 0; }
dialog { width: min(440px, calc(100vw - 24px)); border: 1px solid var(--line); border-radius: 13px; color: var(--ink); padding: 19px; }
dialog::backdrop { background: #112e29a0; }
.dialog-heading, .actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.options { display: grid; gap: 5px; margin: 14px 0; }
.options label { display: flex; gap: 10px; align-items: center; min-height: 44px; padding: 6px 9px; background: #f1f7f3; border-radius: 7px; cursor: pointer; }
.options input { width: 19px; height: 19px; accent-color: var(--green); }
.feedback { color: #af1616; min-height: 20px; font-size: .9rem; }
.feedback:empty { display: none; }
.login { padding: 24px; width: min(440px, calc(100vw - 24px)); margin: min(12vh,80px) auto; }
.login h1 { font-size: 33px; margin: 0 0 15px; }
.login label { display: block; font-size: 14px; font-weight: 700; margin: 13px 0 5px; }
.login input { min-height: 45px; width: 100%; padding: 8px; border: 1px solid #aebfb7; border-radius: 7px; }
.login .button { margin-top: 17px; }
@media(max-width: 840px) { .grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media(max-width: 540px) { .grid { grid-template-columns: minmax(0,1fr); } .container { padding: 22px 12px; } }
