/* Holland Daze Hub theme: orange, friendly, big buttons, phone-first. */
:root {
  --orange: #F19001;
  --orange-deep: #E8650F;
  --orange-soft: #FFF1DC;
  --ink: #2B1A0E;
  --ink-soft: #6B5646;
  --paper: #FFFBF5;
  --card: #FFFFFF;
  --line: #F0DFC8;
  --ok: #1E7D45;
  --ok-soft: #E4F5EA;
  --warn: #9A5B00;
  --warn-soft: #FFF3D6;
  --bad: #B3261E;
  --bad-soft: #FDE7E5;
  --radius: 18px;
  --tap: 56px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 18px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  padding-bottom: env(safe-area-inset-bottom);
}
a { color: var(--orange-deep); }
h1 { font-size: 1.7rem; margin: .6rem 0 .8rem; }
h2 { font-size: 1.25rem; margin: 1.6rem 0 .6rem; }
h3 { font-size: 1.05rem; margin: 0 0 .3rem; }
p { margin: .4rem 0; }

.top {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
  background: linear-gradient(90deg, var(--orange), var(--orange-deep));
  color: #fff;
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; font-size: 1.3rem; }
.brand img { border-radius: 10px; background: #fff; }
.who { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.who-name { font-weight: 700; }
.signout { margin: 0; }
.top .btn-quiet { color: #fff; border-color: rgba(255,255,255,.7); min-height: 40px; padding: 6px 12px; font-size: .9rem; }

.wrap { max-width: 980px; margin: 0 auto; padding: 16px; }
.back { display: inline-block; margin: 4px 0 8px; font-weight: 600; text-decoration: none; }

.chip { display: inline-block; padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.25); font-size: .85rem; font-weight: 600; }
.chip-store { background: var(--orange-soft); color: var(--orange-deep); }
.chip-fake { background: #EEE; color: #555; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--tap); padding: 12px 22px;
  border-radius: 14px; border: 2px solid var(--orange-deep);
  background: var(--orange-deep); color: #fff;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
}
.btn:focus-visible, input:focus-visible, select:focus-visible, .tile:focus-visible { outline: 4px solid #000; outline-offset: 2px; }
.btn-quiet { background: transparent; color: var(--orange-deep); }
.btn-block { width: 100%; }
.btn-small { min-height: 44px; padding: 8px 14px; font-size: .95rem; }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin: 12px 0 24px; }
.tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px;
  min-height: 150px; padding: 16px 10px;
  background: var(--card); border: 2px solid var(--line); border-radius: var(--radius);
  color: var(--ink); text-decoration: none; font-weight: 700;
  box-shadow: 0 2px 0 var(--line);
}
.tile:hover { border-color: var(--orange); }
.tile .pic { font-size: 3rem; line-height: 1; }
.tile small { font-weight: 500; color: var(--ink-soft); }

.card { background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 0 0 14px; }
.card.urgent { border-color: var(--bad); background: var(--bad-soft); }
.card.warning { border-color: #E9B44C; background: var(--warn-soft); }
.card .meta { color: var(--ink-soft); font-size: .9rem; }
.card-row { display: flex; align-items: flex-start; gap: 14px; }
.card-row .pic { font-size: 2.2rem; line-height: 1; }
.card-link { text-decoration: none; color: inherit; }
.card-row .grow { flex: 1; min-width: 0; }

.paper-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px; border-bottom: 3px double var(--ink); margin-bottom: 12px; }
.paper-head h1 { font-family: Georgia, "Times New Roman", serif; font-size: 2rem; margin: .2rem 0; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }

.big-number { font-size: 1.9rem; font-weight: 800; }
.ok { color: var(--ok); } .bad { color: var(--bad); }

.flash { padding: 12px 16px; border-radius: 12px; font-weight: 600; }
.flash-ok { background: var(--ok-soft); color: var(--ok); }
.flash-error { background: var(--bad-soft); color: var(--bad); }

form.stack { display: grid; gap: 14px; max-width: 520px; }
label { display: grid; gap: 4px; font-weight: 600; }
label small { font-weight: 400; color: var(--ink-soft); }
input, select, textarea {
  font: inherit; min-height: var(--tap); padding: 10px 14px;
  border: 2px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); width: 100%;
}
fieldset { border: 2px solid var(--line); border-radius: var(--radius); padding: 12px 16px; display: grid; gap: 12px; }
legend { font-weight: 800; padding: 0 6px; }
.pin-input { font-size: 2rem; letter-spacing: .5rem; text-align: center; }

.login { max-width: 420px; margin: 8vh auto 0; text-align: center; }
.login img { width: 140px; height: 140px; border-radius: 24px; }
.login form { text-align: left; margin-top: 16px; }

table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.scroll-x { overflow-x: auto; }
pre.diff { white-space: pre-wrap; word-break: break-word; font-size: .8rem; margin: 0; max-width: 360px; }

@media (max-width: 480px) {
  body { font-size: 17px; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .tile { min-height: 130px; }
}
