  :root { --ink:var(--brand-charcoal); --paper:var(--brand-paper); --card:#fff; --leaf:var(--brand-bamboo-dark); --warn:#9a5b00; --bad:#a32020; --line:var(--brand-line); }
  * { box-sizing:border-box; }
  body { margin:0; font:16px/1.45 system-ui,sans-serif; background:var(--paper); color:var(--ink); }
  header, main { max-width:760px; margin:0 auto; padding:10px 14px; }
  #reminders { max-width:760px; margin:0 auto; padding:0 14px; overflow-wrap:anywhere; }
  .card.remind { border:2px solid var(--warn); }
  main { overflow-wrap:anywhere; }
  h1 { font-size:20px; margin:0; line-height:1.2; }
  .brand { display:flex; align-items:center; gap:10px; margin:2px 0 10px; padding-bottom:8px; border-bottom:3px solid var(--brand-bamboo); }
  .brand img { height:64px; width:auto; }
  .brand p { margin:2px 0 0; font-size:13px; color:var(--brand-charcoal-soft); }
  h2 { font-size:17px; margin:18px 0 8px; }
  nav { display:grid; grid-template-columns:repeat(auto-fit,minmax(104px,1fr)); gap:6px; }
  button { font:inherit; padding:10px; border:1px solid var(--line); border-radius:8px; background:var(--card); color:var(--ink); cursor:pointer; }
  button.primary, nav button[aria-selected="true"] { background:var(--leaf); color:#fff; border-color:var(--leaf); }
  button:disabled { opacity:.45; cursor:not-allowed; }
  nav button { padding:10px 2px; font-size:14px; }
  .card { background:var(--card); border:1px solid var(--line); border-radius:10px; padding:12px; margin:10px 0; overflow-wrap:anywhere; }
  .card.special { border-left:6px solid #2f6fb5; }
  .card.custom { border-left:6px solid var(--ink); }
  .tag { display:inline-block; font-size:12px; font-weight:600; border-radius:99px; padding:2px 8px; background:var(--brand-bamboo-tint); }
  .special .tag.kind { background:#cfe3fa; color:#12365f; }
  .custom .tag.kind { background:#fff; color:var(--ink); border:1px solid var(--ink); }
  label { display:block; margin:8px 0; font-size:14px; }
  input:not([type=checkbox]):not([type=radio]), select, textarea { display:block; width:100%; font:inherit; padding:8px; border:1px solid var(--line); border-radius:7px; background:#fff; }
  input[type=checkbox], input[type=radio] { width:20px; height:20px; vertical-align:middle; margin-right:8px; }
  .two { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
  .msg { text-align:left; width:100%; margin:5px 0; background:var(--brand-bamboo-tint); }
  .err { color:var(--bad); font-weight:600; }
  .warn { color:var(--warn); font-weight:600; }
  [hidden] { display:none !important; }
  .actions { display:flex; gap:8px; flex-wrap:wrap; }
  .tiles { display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:10px; margin:10px 0; }
  .tile { display:flex; flex-direction:column; align-items:flex-start; gap:3px; text-align:left; min-height:130px; border-width:3px; border-color:var(--leaf); font-size:14px; }
  .tile { border-color:#d9b800; background:#fffbe0; }
  .tile.special { border-color:#2f6fb5; background:#eaf2fc; }
  .tile.custom { border-color:var(--ink); background:#fff; }
  .tile .num { font-size:30px; font-weight:700; }
  .tile[aria-pressed="true"] { background:var(--brand-bamboo-tint); box-shadow:0 0 0 3px var(--ink); }
  .sticker { min-height:64px; font-weight:700; }
  .sticker.regular { background:#fff3a8; color:var(--ink); border-color:#d9b800; }
  .sticker.special { background:#bfdcff; color:var(--ink); border-color:#2f6fb5; }
  .sticker.custom { background:#fff; color:var(--ink); border-color:var(--ink); }
  .big { width:100%; min-height:56px; margin:8px 0; font-weight:600; }
  .tag.changed { background:#ffd5d5; color:#7a0f0f; }
  .muted { color:var(--brand-charcoal-soft); font-size:13px; }
  .eta { font-weight:700; color:var(--leaf); }
  .undo { display:flex; justify-content:space-between; align-items:center; gap:8px; }
  .ok { color:var(--leaf); font-weight:600; }
  .label { border:3px solid var(--ink); border-radius:6px; padding:8px; background:#fff; max-width:360px; overflow-wrap:anywhere; font-size:14px; line-height:1.3; }
  .label.special { border-style:double; border-width:6px; }
  .label.custom { border-style:dashed; border-width:5px; }
  .label-band { font-weight:700; letter-spacing:.08em; border-bottom:2px solid var(--ink); margin-bottom:4px; }
  .label-id { font-size:34px; font-weight:800; line-height:1.1; }
  .label svg.barcode { display:block; width:100%; height:56px; margin:6px 0 2px; }
  .label-eat { font-weight:700; margin-top:2px; }
  .label-code { font-family:ui-monospace,monospace; text-align:center; font-size:13px; }
  #labelSheet { display:none; }
  @media print {
    @page { size:100mm 60mm; margin:3mm; }
    body > *:not(#labelSheet) { display:none !important; }
    #labelSheet { display:block; }
    .label { max-width:none; border-color:#000; font-size:11px; padding:3px; }
    .label-id { font-size:26px; }
    .label svg.barcode { height:34px; }
  }
  dialog { width:min(360px,calc(100vw - 32px)); border:1px solid var(--line); border-radius:12px; padding:16px; }
  #notice { max-width:760px; margin:0 auto; padding:0 14px; }
  #notice:empty { display:none; }
  .row { display:flex; justify-content:space-between; align-items:center; gap:8px; flex-wrap:wrap; }

#notice:not(:empty) {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #fff;
  border: 2px solid currentcolor;
  border-radius: 8px;
  padding: 10px 12px;
}
