:root {
  --ink: #1c2430;
  --muted: #5c6675;
  --line: #d9d3c7;
  --paper: #f6f3ec;
  --card: #fffdf8;
  --green: #1f6b45;
  --green-soft: #e5f2ea;
  --red: #8d2f2f;
  --red-soft: #f8e8e4;
  --amber: #8a5a12;
  --amber-soft: #f8efd8;
  --focus: #1f4f8a;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "BIZ UDPGothic", "BIZ UDGothic", "BIZ UDPゴシック", "BIZ UDゴシック", "Yu Gothic", "Hiragino Sans", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  font-size: 16px;
}

button, input, select, textarea { font: inherit; color: inherit; }

button { cursor: pointer; }

#app { min-height: 100vh; }

.wrap { width: min(1080px, calc(100% - 32px)); margin: 0 auto; padding: 20px 0 48px; }
.wrap.admin { width: min(1280px, calc(100% - 32px)); }

.top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-end;
  margin-bottom: 16px;
}

h1, h2, h3 { font-family: inherit; font-weight: 700; margin: 0; letter-spacing: 0.01em; }

h1 { font-size: 28px; line-height: 1.4; }
h2 { font-size: 20px; line-height: 1.45; }
h3 { font-size: 16px; line-height: 1.5; }

.sub { color: var(--muted); margin: 4px 0 0; font-size: 14px; }

.banner {
  background: var(--amber-soft);
  border: 1px solid #e4d3a4;
  color: #5c4310;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 16px;
}

.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.grid { display: grid; gap: 12px; }

.cards { display: grid; gap: 12px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
}

.person { display: grid; gap: 10px; }

.who { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }

.meta { color: var(--muted); font-size: 13px; }

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
  background: #eeeae2;
}

.pill.ok { background: var(--green-soft); color: var(--green); }
.pill.warn { background: var(--amber-soft); color: var(--amber); }
.pill.bad { background: var(--red-soft); color: var(--red); }

.btn, .btn-ghost, .btn-danger, a.btn {
  border-radius: 8px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn, a.btn { background: var(--green); color: #fff; border-color: var(--green); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-danger { color: var(--red); background: var(--red-soft); border-color: #e4c4be; }

label.field { display: grid; gap: 4px; font-size: 14px; }
.consent { display: flex; align-items: flex-start; gap: 10px; font-size: 16px; line-height: 1.6; }
.consent input { width: 1.15em; height: 1.15em; margin: 0.28em 0 0; flex: none; }
.name-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
label.field span { color: var(--muted); }
div.field { display: grid; gap: 4px; font-size: 14px; }
div.field > span:first-child { color: var(--muted); }
.date-parts { display: flex; align-items: center; gap: 6px; }
.date-parts span { color: var(--ink, inherit); font-size: 15px; }
.date-parts input.date-part { min-width: 0; text-align: center; }
.date-parts input.date-y { flex: 0 0 auto; width: 5.5em; }
.date-parts input.date-m, .date-parts input.date-d { flex: 0 0 auto; width: 3.6em; }
.date-error:empty { display: none; }

input[type="text"], input[type="date"], input[type="number"], input[type="email"], select, textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 8px 10px;
  font-size: 16px;
}

textarea { min-height: 120px; }

.welcome-choices { display: grid; gap: 10px; margin-top: 18px; }
.welcome-choice {
  display: grid;
  gap: 2px;
  min-height: 76px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  color: inherit;
  text-decoration: none;
}
.welcome-choice:hover { border-color: var(--green); background: var(--green-soft); }
.welcome-choice:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.welcome-title { font-weight: 700; font-size: 18px; line-height: 1.4; }
.choice { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.choice button { min-height: 48px; line-height: 1.4; }
.choice button[aria-pressed="true"] { background: var(--green); color: #fff; border-color: var(--green); }

.q { display: grid; gap: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.q > p:first-child { font-weight: 700; font-size: 17px; line-height: 1.65; }
.q:last-child { border-bottom: 0; }

.note {
  background: var(--red-soft);
  color: var(--red);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 14px;
}

.oknote {
  background: var(--green-soft);
  color: var(--green);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 14px;
}

.totals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.total { background: #f3f0e8; border-radius: 8px; padding: 8px; }
.total b { display: block; font-size: 18px; }

.narrow { width: min(440px, 100%); margin: 0 auto; }

.link {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  word-break: break-all;
  background: #f3f0e8;
  padding: 8px;
  border-radius: 8px;
}

.cert {
  border-top: 1px solid var(--line);
  padding-top: 10px;
  display: grid;
  gap: 6px;
}

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.error { color: var(--red); font-size: 14px; min-height: 1.2em; }

.employee-shell { min-height: 100vh; }
.employee { padding-bottom: 210px; }

.form-stage { display: flex; flex-direction: column; min-height: 100vh; }
.stepper {
  display: flex;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
  overflow-x: auto;
  background: #fffdf8;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
  scrollbar-width: none;
}
.stepper::-webkit-scrollbar { display: none; }
.step {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
  color: #8b938c;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
}
.step::after {
  content: "";
  width: 16px;
  height: 1px;
  background: var(--line);
  margin: 0 8px;
}
.step:last-child::after { content: none; }
.step-index {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  background: #fff;
}
.step.done { color: var(--green); }
.step.done .step-index { background: var(--green-soft); border-color: var(--green); color: var(--green); }
.step.current { color: var(--green); }
.step.current .step-name { border-bottom: 3px solid var(--green); padding-bottom: 2px; }
.step.current .step-index { background: var(--green); border-color: var(--green); color: #fff; }
.step-label, .step-jump { display: inline-flex; align-items: center; gap: 6px; }
.step-jump { border: 0; background: transparent; color: inherit; font: inherit; font-weight: 700; padding: 0; cursor: pointer; }
.form-actions { padding: 8px 0 4px; }
.form-actions.pin { position: sticky; top: calc(48px + env(safe-area-inset-top)); z-index: 25; background: #fffdf8; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.chip { min-height: 36px; padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.chip.on { background: var(--green); border-color: var(--green); color: #fff; }
th .sort { border: 0; background: transparent; color: inherit; font: inherit; font-weight: 700; padding: 0; cursor: pointer; }
th .sort.on { color: var(--green); }

.progress { height: 6px; background: #e6e0d4; border-radius: 999px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--green); }

.guide {
  position: fixed;
  z-index: 30;
  left: max(8px, calc(50% - 330px));
  width: min(560px, calc(100% - 16px));
  bottom: 8px;
  display: flex;
  align-items: flex-end;
  gap: 0;
  pointer-events: none;
}

.guide-faces {
  position: relative;
  width: 124px;
  height: 180px;
  flex: none;
  margin-bottom: -4px;
  animation: guide-bob 3.4s ease-in-out infinite;
}

.guide-faces img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  transform: scaleX(-1);
}

.guide-faces .blink { animation: guide-blink 4.8s steps(1, end) infinite; }

@keyframes guide-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes guide-blink {
  0%, 90%, 100% { opacity: 0; }
  93%, 96% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .guide-faces, .guide-faces .blink { animation: none; }
}

.bubble {
  position: relative;
  pointer-events: auto;
  flex: 1;
  min-width: 0;
  background: #fff;
  border: 1px solid #e4dccb;
  border-radius: 18px;
  padding: 10px 14px;
  margin: 0 0 36px -8px;
  box-shadow: 0 10px 28px rgba(28, 36, 48, 0.1);
}

.bubble::before {
  content: "";
  position: absolute;
  left: -7px;
  bottom: 18px;
  border-width: 8px 8px 8px 0;
  border-style: solid;
  border-color: transparent #fff transparent transparent;
}

.bubble p { margin: 0; white-space: pre-line; }
.ask {
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--green);
  font: inherit;
  font-weight: 700;
  min-height: 32px;
  cursor: pointer;
}
.ask-thread { display: grid; gap: 12px; margin-top: 10px; }
.ask-thread:empty { display: none; }
.ask-turn { display: grid; gap: 4px; }
.ask-label { color: var(--muted); font-size: 12px; font-weight: 700; }
.ask-q, .ask-a { border-radius: 8px; padding: 8px 10px; white-space: pre-line; overflow-wrap: anywhere; }
.ask-q { color: var(--ink); background: var(--paper); }
.ask-a { color: var(--focus); background: #e7f0fa; }
.ask-form { display: none; margin-top: 8px; gap: 8px; flex-direction: column; }
.bubble.asking .ask-form { display: flex; }
.ask-input {
  width: 100%;
  box-sizing: border-box;
  display: block;
  font: inherit;
  font-size: 16px;
  line-height: 1.6;
  min-height: 12.8em;
  max-height: 16em;
  resize: vertical;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
}
.bubble-step { color: var(--green); font-size: 12px; font-weight: 700; letter-spacing: 0.04em; margin-bottom: 2px; }
.bubble.warn { background: var(--red-soft); border-color: #e4c4be; }
.bubble.warn::before { border-right-color: var(--red-soft); }

@media (max-width: 720px) {
  .split, .choice, .name-pair { grid-template-columns: 1fr; }
  .totals { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .top { flex-direction: column; align-items: flex-start; }
  .wrap { width: calc(100% - 28px); padding-top: 16px; }
  h1 { font-size: 22px; }
  .choice button { min-height: 52px; font-size: 17px; }
  .employee-shell { min-height: 100dvh; }
  .employee-shell .employee {
    width: calc(100% - 28px);
    padding-bottom: 8px;
  }
  .employee .row > button { flex: 1; }
  .employee-shell .guide {
    position: sticky;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 8px 12px calc(12px + env(safe-area-inset-bottom));
    background: var(--paper);
    border-top: 1px solid var(--line);
  }
  .guide-faces { width: 68px; height: 92px; margin-bottom: 0; }
  .bubble {
    margin: 0;
    padding: 8px 12px;
    max-width: calc(100vw - 104px);
    font-size: 15px;
    line-height: 1.45;
  }
  .bubble p { overflow-wrap: anywhere; }
  .bubble::before { bottom: 14px; }
  .card { padding: 12px; }
  .link { overflow-wrap: anywhere; }
}

.preview-screen {
  width: min(390px, 100%);
  margin: 20px auto 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
  overflow: hidden;
  min-height: 620px;
  display: flex;
  flex-direction: column;
}

.preview-screen .employee { padding-bottom: 12px; }
.preview-screen .guide {
  position: static;
  left: auto;
  width: 100%;
  max-width: none;
  margin-top: auto;
}

@media (max-width: 720px) {
  .preview { width: calc(100% - 16px); }
  .preview-screen { width: 100%; margin: 0; border: 0; border-radius: 0; min-height: auto; }
  .preview-screen .guide { position: static; }
}

@media (min-width: 721px) {
  .cards { grid-template-columns: 1fr 1fr; align-items: start; }
  .card { padding: 18px 20px; }
  .wrap { padding-top: 28px; }
  .top { margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
  .q > p:first-child { font-size: 20px; }

  .stepper { justify-content: center; padding: 16px 24px 14px; }
  .step { font-size: 14px; }

  .form-stage { width: 100%; }
  .form-stage-body {
    display: grid;
    grid-template-columns: minmax(300px, 0.92fr) minmax(0, 1.08fr);
    justify-content: center;
    align-items: start;
    column-gap: 40px;
    width: min(1240px, calc(100% - 64px));
    margin: 0 auto;
    padding: 40px 0 64px;
  }

  .preview-screen.form-stage {
    width: 100%;
    margin: 0;
    border: 0;
    border-radius: 0;
    min-height: 100vh;
    overflow: visible;
    background: transparent;
    display: flex;
  }

  .form-stage .narrow { width: 100%; max-width: none; }
  .form-stage .wrap { width: 100%; padding: 4px 0 0; }
  .form-stage .employee { padding-bottom: 0; }
  .form-stage .card { padding: 28px 32px; }
  .form-stage h1 { font-size: 32px; }
  .form-stage .choice { gap: 12px; }
  .form-stage .choice button { min-height: 64px; font-size: 16px; }
  .form-stage .bubble-step { font-size: 13px; margin-bottom: 6px; }

  .form-stage .guide {
    position: sticky;
    top: 76px;
    align-self: start;
    left: auto;
    bottom: auto;
    order: -1;
    width: 100%;
    max-width: none;
    max-height: calc(100dvh - 92px);
    margin: 0;
    padding: 8px 8px 16px 20px;
    box-sizing: border-box;
    overflow-y: auto;
    overscroll-behavior: contain;
    z-index: 1;
    align-items: center;
  }

  .form-stage .guide-faces { width: 168px; height: 240px; }
  .form-stage .bubble {
    margin: 0 0 12px -14px;
    padding: 18px 20px;
    font-size: 17px;
    line-height: 1.75;
  }
  .form-stage .bubble-step { font-size: 14px; }

  .admin-desk { grid-template-columns: 1fr 1fr; align-items: start; }
}

@media (min-width: 1100px) {
  .form-stage-body {
    grid-template-columns: minmax(480px, 1fr) minmax(520px, 1.05fr);
    column-gap: 56px;
    width: min(1280px, calc(100% - 96px));
    padding: 48px 0 72px;
  }
  .form-stage .guide-faces { width: 230px; height: 330px; }
  .form-stage .bubble {
    margin: 0 0 12px -20px;
    padding: 22px 26px;
    font-size: 20px;
    line-height: 1.75;
  }
  .form-stage .bubble-step { font-size: 16px; }
}

.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); gap: 8px; margin: 0 0 14px; }
.admin-stat { display: grid; align-content: center; gap: 2px; min-height: 72px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; text-align: left; }
button.admin-stat { width: 100%; cursor: pointer; }
.admin-stat.on { border-color: var(--green); background: var(--green-soft); }
.admin-stat b { font-size: 22px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.admin-stat span { color: var(--muted); font-size: 13px; line-height: 1.4; }
.admin-stat.warn b { color: var(--amber); }
.admin-stat.ok b { color: var(--green); }
.admin-toolbar { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: end; margin-bottom: 12px; }
.admin-toolbar > .field { flex: 1 1 240px; margin: 0; }
.admin-toolbar .add-client { flex: 2 1 480px; margin: 0; }
.meter { display: block; height: 6px; margin-top: 4px; background: #e6e0d4; border-radius: 999px; overflow: hidden; }
.meter > span { display: block; height: 100%; background: var(--green); }
.admin-desk { display: grid; gap: 12px; }
.import summary { cursor: pointer; font-weight: 700; font-size: 18px; }
.import[open] summary { margin-bottom: 12px; }
.sheet td.quiet { color: var(--muted); }

.menu { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 16px; }
.crumb { display: inline-flex; gap: 8px; align-items: center; }
.crumb-mark { color: var(--muted); }
.menu a, .menu .current { color: var(--ink); text-decoration: none; font-weight: 700; }
.menu a.current, .menu .current { color: var(--green); }
.add-client { align-items: end; margin-bottom: 12px; }
.add-client .field { min-width: min(280px, 100%); }
.sheet-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.sheet-wrap.fit { overflow-x: hidden; }
.sheet.people { table-layout: fixed; }
.sheet.people th, .sheet.people td { padding: 6px 8px; overflow: hidden; text-overflow: ellipsis; }
.sheet.people th:nth-child(1) { width: 11%; }
.sheet.people th:nth-child(2) { width: 16%; }
.sheet.people th:nth-child(3) { width: 12%; }
.sheet.people th:nth-child(4) { width: 9%; }
.sheet.people th:nth-child(5) { width: 7%; }
.sheet.people th:nth-child(6) { width: 12%; }
.sheet.people th:nth-child(7) { width: 12%; }
.sheet.people th:nth-child(8) { width: 14%; }
.sheet.people th:nth-child(9) { width: 7%; }
.sheet { width: 100%; border-collapse: collapse; background: #fff; font-size: 14px; }
.sheet th, .sheet td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: middle; white-space: nowrap; }
.sheet th { background: #efeae0; font-weight: 700; }
.sheet tbody tr { cursor: pointer; }
.sheet.detail tbody tr { cursor: default; }
.sheet.detail th { width: 9em; white-space: nowrap; }
.sheet.detail td { white-space: normal; }
.sheet tbody tr:hover td { background: #f3faf6; }
.sheet.detail tbody tr:hover td, .sheet.detail tbody tr:hover th { background: transparent; }
.sheet .num { font-variant-numeric: tabular-nums; }
.sheet .count { font-weight: 700; font-size: 18px; background: transparent; border-radius: 0; }
.reorder, .ops { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.reorder { flex-wrap: nowrap; }
.reorder .btn-ghost, .reorder .drag, .ops .btn-ghost, .ops .btn-danger { min-height: 36px; padding: 4px 8px; flex: 0 0 auto; white-space: nowrap; }
.tools { align-items: end; margin: 8px 0 12px; }
.tools .field, .add-client .field { min-width: min(220px, 100%); }
input.order-input { width: 4.2em; min-width: 4.2em; flex: 0 0 auto; min-height: 36px; padding: 4px 8px; }
.drag { display: inline-flex; align-items: center; min-height: 36px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: grab; user-select: none; }
.drag[aria-grabbed="true"] { background: #e7f0fa; }
.pager { justify-content: space-between; margin: 8px 0; }
.admin select { width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 8px 10px; font-size: 16px; }
.attach { display: grid; gap: 8px; }
.attach-label { color: var(--muted); font-size: 14px; }
.attach-card { display: grid; gap: 6px; justify-items: start; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.thumb { width: 180px; max-width: 100%; height: 130px; object-fit: cover; border-radius: 6px; background: var(--paper); }
input[type="file"] { width: 100%; font-size: 14px; }

@media (max-width: 720px) {
  .wrap.admin { width: calc(100% - 28px); }
  .add-client, .tools { display: grid; }
  .admin-stats { grid-template-columns: 1fr 1fr; }
  .admin-toolbar .add-client { flex-basis: 100%; }
  .sheet { font-size: 13px; }
  .sheet .count { font-size: 16px; }
  .sheet.people th:nth-child(1) { width: 16%; }
  .sheet.people th:nth-child(2) { width: 28%; }
  .sheet.people th:nth-child(3) { width: 16%; }
  .sheet.people th:nth-child(4) { width: 14%; }
  .sheet.people th:nth-child(5) { width: 12%; }
  .sheet.people th:nth-child(9) { width: 14%; }
  .sheet.people th:nth-child(6),
  .sheet.people td:nth-child(6),
  .sheet.people th:nth-child(7),
  .sheet.people td:nth-child(7),
  .sheet.people th:nth-child(8),
  .sheet.people td:nth-child(8) { display: none; width: 0; padding: 0; border: 0; }
  .sheet.people th, .sheet.people td { white-space: normal; }
}

@media print {
  .no-print, .menu, .guide, .stepper { display: none !important; }
  body { background: #fff; }
  .sheet-wrap { border: 0; overflow: visible; }
  .sheet tbody tr { cursor: default; }
  .sheet th, .sheet td { white-space: normal; }
}

/* スマホでは、上から案内役（質問する）へ飛べるボタンを出す */
.ask-jump { display: none; }
@media (max-width: 720px) {
  .ask-jump { display: block; width: 100%; margin: 4px 0 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--green); background: var(--green-soft); font-size: 14px; text-align: left; }
}
textarea.announce { width: 100%; min-height: 280px; font-size: 14px; line-height: 1.6; }

/* 差し戻しの項目選び */
.checks { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.check { display: inline-flex; align-items: center; gap: 6px; }
.check input { width: 18px; height: 18px; }
.gap-list { display: grid; gap: 8px; }
.gap-list .btn-ghost { text-align: left; }
button[disabled] { opacity: .55; cursor: not-allowed; }

/* 案内文のQRコード */
.announce-qr { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin: 12px 0; }
.announce-qr img { width: 200px; height: 200px; image-rendering: pixelated; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.announce-qr a.btn-ghost { color: inherit; text-decoration: none; justify-self: start; }

/* display を持つ部品でも hidden を効かせる */
[hidden] { display: none !important; }

.update-bar {
  position: fixed;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 10px 12px 10px 16px;
  background: #fff8e1;
  border: 1px solid #e0c36a;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
  font-size: 15px;
  font-weight: 700;
}
.update-bar .btn { flex: none; min-height: 40px; }
@media print { .update-bar { display: none !important; } }

.banner p { margin: 0; }
.banner .banner-actions { margin-top: 6px; font-size: 13px; }
.linkish { border: 0; background: none; padding: 0; color: var(--green); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
