/* Chivo is the Salts Gone site font, self-hosted so the floor app does not call Google. */
@font-face {
  font-family: "Chivo";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/chivo-400.woff2") format("woff2");
}
@font-face {
  font-family: "Chivo";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/chivo-600.woff2") format("woff2");
}
@font-face {
  font-family: "Chivo";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/chivo-700.woff2") format("woff2");
}

:root {
  --ink: #111111;
  --paper: #ffffff;
  --panel: #fafafa;
  --panel-2: #f2f2f2;
  --line: #d9d9d9;
  --blue: #61a0ff;
  --blue-press: #c7ddff;
  --header: #223b3d;
  --success: #0f7662;
  --highlight: #def4a9;
  --warn: #5c3b00;
  --bad: #7f1d1d;
  --muted: #333333;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 18px/1.4 "Chivo", sans-serif;
}
header, main { padding: 12px 16px; }
header { background: var(--header); color: #fff; }
header a { color: #fff; }
.wrap { max-width: 720px; margin: 0 auto; }
h1 { font-size: 1.4rem; margin: 0 0 8px; font-weight: 700; }
h2, h3 { font-weight: 700; }
.brand-row { display: flex; align-items: center; gap: 12px; }
.logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 16px;
  padding: 4px 8px;
  line-height: 0;
  flex: 0 0 auto;
}
.logo-badge img {
  width: 156px;
  height: 42px;
  object-fit: cover;
  object-position: center 45%;
  display: block;
}
.brand-name { font-weight: 700; font-size: 1.15rem; color: #fff; }
.role { color: #fff; font-weight: 600; font-size: 1rem; }
nav { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
nav.jump { margin: 12px 0 4px; }
.office { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0 0; }
.office a {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  color: #fff;
  background: transparent;
  border: 2px solid #fff;
  border-radius: 35px;
  padding: 8px 12px;
  font-weight: 600;
}
nav a, button, .tap {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  background: #fff;
  color: #000;
  border: 2px solid var(--line);
  border-radius: 35px;
  font: 600 1rem/1.2 "Chivo", sans-serif;
  padding: 8px 16px;
}
button.primary, .primary {
  background: var(--blue);
  color: #000;
  border-color: var(--blue);
}
button.primary:active, a.primary:active {
  background: var(--blue-press);
  color: #000;
  border-color: var(--blue-press);
}
button:active, nav a:active, .tap:active { background: var(--panel-2); }
.office a:active { background: #fff; color: #000; border-color: #fff; }
:focus-visible {
  outline: 3px solid #000;
  outline-offset: 2px;
}
header :focus-visible { outline-color: #fff; }
input, select {
  font: 400 18px/1.4 "Chivo", sans-serif;
  color: var(--ink);
  width: 100%;
  min-height: 52px;
  padding: 8px 14px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
label { display: block; font-weight: 600; margin: 12px 0 4px; }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  margin: 12px 0;
}
.warn { background: #fff4d6; color: var(--warn); padding: 8px 12px; border-radius: 12px; }
.bad { background: #fde8e8; color: var(--bad); padding: 8px 12px; border-radius: 12px; }
.ok {
  background: var(--highlight);
  color: var(--ink);
  border: 2px solid var(--success);
  padding: 8px 12px;
  border-radius: 12px;
}
.row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.row.total { font-size: 1.15rem; border-bottom: 0; }
.progress { height: 14px; background: var(--panel-2); border-radius: 7px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--success); }
.count-row { scroll-margin-top: 16px; }
.count-row button { width: 100%; }
.count-row:not(.is-counted) .count-status,
.count-row .count-change { display: none; }
.count-row .count-error:empty { display: none; }
.js .count-row.is-counted .count-edit,
.js .count-row.is-counted .count-need,
.js .count-row.is-counted .shot { display: none; }
.js .count-row.is-counted .count-change { display: block; }
#finish-count { scroll-margin-top: 16px; }
.muted { color: var(--muted); font-size: 0.95rem; }
header .muted { color: #fff; }
.shot { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.shot img, .ph {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--panel-2);
  display: block;
}
.ph.hero, img.hero { width: 160px; height: 160px; flex-basis: 160px; }
.hit { display: flex; align-items: center; gap: 8px; }
.hit .tap { flex: 1; }
.shot a { font-size: 0.95rem; }
.table-wrap { overflow-x: auto; }
table.sheet { width: 100%; border-collapse: collapse; }
table.sheet th, table.sheet td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
form.inline { display: flex; gap: 8px; align-items: center; }
form.inline input { width: 7rem; }
@media (min-width: 800px) {
  .wrap { max-width: 960px; }
  nav { grid-template-columns: repeat(3, 1fr); }
}
