:root {
  --teal: #0e6e6e;
  --teal-dark: #0a5252;
  --ink: #1d2a2a;
  --dim: #5d6f6f;
  --bg: #f6f9f8;
  --surface: #ffffff;
  --surface2: #eef4f3;
  --border: #d7e2e0;
  --accent: #ffb703;
  --danger: #b3261e;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--ink); }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .6rem 1rem; background: var(--surface); border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); }
.brand-logo { height: 42px; width: auto; }
.brand-name { font-size: 1.05rem; }
.site-nav a { margin-left: 1rem; color: var(--teal-dark); font-weight: 600; text-decoration: none; }
.site-nav a:hover { text-decoration: underline; }
.wrap { max-width: 1024px; margin: 0 auto; padding: 1.2rem 1rem 3rem; }
.site-footer { text-align: center; color: var(--dim); padding: 1.5rem 1rem 2.5rem; font-size: .9rem; }
h1 { font-size: 1.6rem; margin: .4rem 0 .6rem; }
h2 { font-size: 1.25rem; margin: 1.4rem 0 .5rem; }
h3 { font-size: 1.05rem; margin: 1.1rem 0 .4rem; }
.dim { color: var(--dim); }
.big { font-size: 1.3rem; font-weight: 700; }
.alert { background: #fdecea; border: 1px solid #f5c6c2; color: var(--danger); padding: .6rem .8rem; border-radius: 10px; }
.ok { background: #e6f4ea; border: 1px solid #b7dfc2; padding: .6rem .8rem; border-radius: 10px; }
.placeholder { background: var(--surface2); border: 1px dashed var(--border); border-radius: 12px; padding: .8rem 1rem; }
.hero { text-align: center; padding: 2.2rem 1rem; }
.code-form { display: flex; flex-direction: column; gap: .6rem; max-width: 380px; margin: 1.2rem auto; text-align: left; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 1.1rem 1.2rem; margin: 1rem 0; }
.card.narrow { max-width: 440px; margin: 2rem auto; }
.banner { background: linear-gradient(135deg, var(--teal), var(--teal-dark)); color: #fff; }
.banner h2 { margin-top: 0; }
input, select, textarea { font: inherit; padding: .55rem .7rem; border: 1px solid var(--border); border-radius: 10px; background: #fff; width: 100%; }
button, .btn { font: inherit; font-weight: 700; background: var(--teal); color: #fff; border: 0; border-radius: 10px; padding: .6rem 1.1rem; cursor: pointer; text-decoration: none; display: inline-block; }
button:hover, .btn:hover { background: var(--teal-dark); }
button.danger { background: var(--danger); }
.stack { display: flex; flex-direction: column; gap: .45rem; }
.stack label { font-weight: 600; font-size: .92rem; display: flex; flex-direction: column; gap: .25rem; }
.stack.wide { max-width: 640px; }
fieldset { border: 1px solid var(--border); border-radius: 12px; padding: .8rem; display: flex; flex-direction: column; gap: .45rem; }
legend { font-weight: 700; padding: 0 .4rem; }
.office-head { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.office-logo { max-height: 72px; max-width: 220px; object-fit: contain; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: .4rem; }
.last-visit { display: grid; grid-template-columns: 90px 1fr; row-gap: .3rem; }
.last-visit dt { font-weight: 700; color: var(--dim); font-size: .85rem; text-transform: uppercase; letter-spacing: .02em; }
.last-visit dd { margin: 0; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .8rem; }
.gallery.small { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.toy { margin: 0; background: var(--surface2); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.toy img { width: 100%; height: 120px; object-fit: contain; background: #fff; display: block; }
.toy figcaption { padding: .45rem .6rem; display: flex; flex-direction: column; gap: .2rem; font-size: .9rem; }
.req-link { color: var(--teal-dark); font-weight: 700; font-size: .82rem; }
.ask-form { display: flex; flex-direction: column; gap: .45rem; max-width: 560px; }
.ask-form label { font-weight: 600; font-size: .92rem; }
.tbl { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.tbl th, .tbl td { text-align: left; padding: .55rem .7rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.tbl th { background: var(--surface2); font-size: .85rem; text-transform: uppercase; letter-spacing: .02em; }
.row-actions a { margin-right: .6rem; white-space: nowrap; }
code { background: var(--surface2); padding: .1rem .4rem; border-radius: 6px; font-weight: 700; }
.req-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .6rem; }
.req-list li { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: .7rem .9rem; }
.badge { display: inline-block; padding: .05rem .5rem; border-radius: 999px; font-size: .75rem; font-weight: 800; text-transform: uppercase; }
.badge-new { background: var(--accent); color: #4d3800; }
.badge-read { background: #dbeafe; color: #1e40af; }
.badge-handled { background: #dcfce7; color: #166534; }
.inline-form { display: inline-flex; gap: .4rem; margin-top: .5rem; }
.inline-form select { width: auto; }
.actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.preview { max-width: 200px; border-radius: 10px; border: 1px solid var(--border); }
.handout { background: #fff; border: 2px solid var(--teal); border-radius: 18px; max-width: 560px; margin: 1rem auto; padding: 2rem; text-align: center; }
.handout-logo { max-height: 90px; }
.handout .qr { width: 240px; height: 240px; }
.handout-url { font-size: 1.15rem; word-break: break-all; }
.handout-code { font-size: 1.6rem; letter-spacing: .08em; }
@media print {
  .site-header, .site-footer, .no-print { display: none; }
  .wrap { padding: 0; }
  .handout { border: none; margin: 0; }
}
