/* Pallet Tracker look (PalletTracker/ui/tokens.css, shell.css, account.css), 12/1/26. */
:root {
  color-scheme: light;
  --bg: #f3f5f4; --surface: #fff; --surface-muted: #edf2f0;
  --ink: #17343b; --quiet: #536b70; --line: #ccd8d5;
  --accent: #12695f; --accent-hover: #0b5149; --accent-soft: #e7f1ed;
  --good: #176b47; --warn: #855b00; --warn-soft: #fff5d9; --bad: #b53636; --focus: #956600;
  --band: #f6f9f8;
  --sans: "Segoe UI", system-ui, -apple-system, sans-serif; --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  --radius-sm: 4px; --radius-lg: 12px; --shadow: 0 2px 6px rgb(23 52 59 / 5%);
}
* { box-sizing: border-box; }
html, body { background: var(--bg); }
body { margin: 0; min-height: 100vh; font: 16px/1.5 var(--sans); color: var(--ink); }
a { color: var(--accent); text-underline-offset: 3px; }
:is(button, a, input, select):focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

header { display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 16px max(24px, calc((100% - 1440px) / 2)); background: var(--surface); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; gap: 12px; align-items: center; min-width: 0; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; background: var(--ink); color: #fff;
  font: 750 15px var(--mono); border-radius: var(--radius-sm); }
.brand-copy { display: grid; line-height: 1.3; gap: 2px; }
header h1 { margin: 0; font-size: 18px; font-weight: 750; letter-spacing: -.025em; }
.brand-sub { color: var(--quiet); font-size: 12px; }

main { width: min(100% - 2rem, 1100px); margin: 0 auto; padding: 2rem 0 4rem; }
.card { max-width: 30rem; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 4vw, 2rem); box-shadow: var(--shadow); }
.card h2 { margin: 0 0 .25rem; font-size: 1.75rem; line-height: 1.2; letter-spacing: -.03em; }
.card > p { margin: 0 0 .5rem; color: var(--quiet); }
label { display: block; margin: 1rem 0 .35rem; font-weight: 700; }
input, select { width: 100%; min-height: 2.75rem; padding: .5rem .7rem; font: inherit; color: inherit; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-sm); }
button { min-height: 2.75rem; margin-top: 1.25rem; padding: .55rem 1rem; font: inherit; font-weight: 800; color: #fff; cursor: pointer;
  background: var(--accent); border: 1px solid var(--accent); border-radius: var(--radius-sm); }
button:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
button:disabled { opacity: .6; cursor: default; }
button.quiet { background: transparent; color: var(--accent); font-weight: 700; }
button.quiet:hover { background: var(--accent-soft); }
header button { margin: 0; }
.card button[type=submit] { width: 100%; }
.msg { min-height: 1.4em; margin-top: .75rem; color: var(--bad); font-weight: 700; }
.msg.info { color: var(--quiet); font-weight: 400; }
.ok { color: var(--good); font-weight: 700; }

#hello { font-size: 1.25rem; font-weight: 700; margin: 0 0 1rem; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.tile { display: block; padding: 20px; color: var(--ink); text-decoration: none; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.tile strong { font-size: 1.1rem; }
.tile:hover { border-color: var(--accent); background: var(--accent-soft); }
.tile small { color: var(--quiet); }

table { border-collapse: collapse; width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
th, td { padding: .6rem .55rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { color: var(--quiet); font-size: .8125rem; font-weight: 700; }
tbody tr:nth-child(even) { background: var(--band); }
td button { margin: .15rem; min-height: 2.25rem; padding: .3rem .55rem; white-space: nowrap; }
td select { width: auto; min-width: 110px; }
td input[type=checkbox] { width: auto; min-height: 0; }
.bar { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; margin-bottom: 16px; }
.bar label { margin: 0 0 4px; }
.bar input, .bar select { width: 200px; }
.bar button { margin-top: 0; }
.notice { background: var(--warn-soft); color: var(--warn); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; margin-bottom: 16px; }
[hidden] { display: none !important; }
h2 { font-size: 1.1rem; margin: 32px 0 4px; }
.hint { color: var(--quiet); margin: 0 0 12px; }
@media (max-width: 620px) { header { padding: 12px 16px; } main { width: min(100% - 1rem, 1100px); padding-top: 1rem; } .card { padding: 1rem; } }
