/* Shared dat.place palette, matching the owner's existing projects. */
:root {
  color-scheme: dark;
  --background: #10090e;
  --surface: #1b1019;
  --raised: #291923;
  --text: #fff5e8;
  --muted: #c4adb9;
  --gold: #ffbc00;
  --pink: #ff0058;
  --border: #583b4b;
  font: 16px system-ui, sans-serif;
  color: var(--text);
  background: var(--background);
  line-height: 1.6;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(ellipse at 0% 0%, #ffbc0017, transparent 48%),
    radial-gradient(ellipse at 100% 0%, #ff00581f, transparent 48%),
    radial-gradient(ellipse at 50% 100%, #70123924, transparent 65%);
  background-attachment: fixed;
}
::selection { background: #ff005866; color: var(--text); }
header { max-width: 1040px; margin: auto; padding: 24px; display: flex; justify-content: space-between; align-items: center; }
.brand { font-size: 23px; font-weight: 750; color: var(--gold); }
.brand small { display: block; font-size: 10px; letter-spacing: 2px; color: var(--muted); }
main { max-width: 1000px; margin: auto; padding: 8px 24px; }
section {
  border: 1px solid transparent;
  border-radius: 20px;
  padding: 28px;
  margin: 16px 0;
  background: linear-gradient(135deg, #251620, #160e15) padding-box,
    linear-gradient(115deg, #ffbc0066, #ff005866) border-box;
  box-shadow: 0 14px 42px #0004, 0 0 25px #ff005808;
}
.hero {
  background: radial-gradient(ellipse at 100% 0%, #ff00581a, transparent 65%) padding-box,
    linear-gradient(135deg, #291923, #1b1019) padding-box,
    linear-gradient(115deg, var(--gold), var(--pink)) border-box;
  color: var(--text);
}
.hero a { color: #ffcf66; }
.eyebrow { font-size: 12px; letter-spacing: 2px; font-weight: 700; color: var(--gold); }
h1 { font-size: clamp(38px, 8vw, 72px); line-height: 1.1; margin: 20px 0; font-variant-numeric: tabular-nums; text-shadow: 0 0 24px #ff005833; }
h2 { font-size: 22px; margin: 0 0 16px; }
h3 { font-size: 18px; }
p { margin: 12px 0; }
.sectiontop { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.punches, .totals, .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 20px; }
.grid { grid-template-columns: repeat(2, 1fr); }
.metric { background: #10090e99; border: 1px solid #583b4b; border-radius: 12px; padding: 16px; }
.metric strong { display: block; font-size: 24px; font-variant-numeric: tabular-nums; color: var(--gold); }
.metric small { color: var(--muted); }
button, .button {
  font: inherit; cursor: pointer; border: 1px solid #745367; border-radius: 10px;
  padding: 11px 16px; background: #2c1b27; color: var(--text); text-decoration: none; display: inline-block;
  transition: border-color .15s, filter .15s;
}
button:hover:not(:disabled), .button:hover { border-color: #ffbc00aa; filter: brightness(1.12); }
button.primary {
  background: linear-gradient(110deg, var(--gold), var(--pink)); border-color: transparent;
  color: #160b11; font-weight: 750; box-shadow: 0 3px 18px #ff00581f;
}
button:disabled { color: #b49ba9; border-color: #48313f; background: #20151d; cursor: default; box-shadow: none; }
label { display: block; font-size: 14px; font-weight: 600; margin: 12px 0; }
input, select {
  display: block; width: 100%; font: inherit; border: 1px solid #745367; border-radius: 8px;
  padding: 12px; margin-top: 6px; background: #10090e; color: var(--text); accent-color: var(--gold);
}
input::placeholder { color: #b49ba9; }
#login { max-width: 620px; margin: 40px auto; }
#selectedDate { max-width: 240px; }
summary { cursor: pointer; padding: 14px 0; font-weight: 650; }
summary::marker { color: var(--gold); }
details { border-top: 1px solid var(--border); margin-top: 16px; }
.row { padding: 14px 0; border-bottom: 1px solid #48313f; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
#notice:not(:empty) { position: sticky; top: 10px; background: #38221b; color: var(--text); border: 1px solid #a96d23; border-radius: 10px; padding: 14px; z-index: 2; box-shadow: 0 8px 24px #0005; }
.muted, footer, #weekDate { color: var(--muted); font-size: 13px; }
footer { text-align: center; padding: 30px; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; }
a { color: #ffcf66; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
hr { border: 0; border-top: 1px solid var(--border); }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { button, .button { transition: none; } }
@media (max-width: 650px) {
  main { padding: 4px 12px; }
  header { padding: 20px 16px; }
  section { padding: 20px; border-radius: 16px; }
  .punches, .totals { grid-template-columns: repeat(2, 1fr); }
  .grid { grid-template-columns: 1fr; }
  .metric strong { font-size: 21px; }
  .brand { font-size: 20px; }
}
