:root {
  --navy: #102f43;
  --navy2: #1d465d;
  --green: #126347;
  --mint: #b7efcc;
  --bg: #f3f5f5;
  --paper: #fff;
  --ink: #172e3c;
  --muted: #59707d;
  --line: #dce4e7;
  --red: #a62232;
  --amber: #835009;
  --radius: 18px;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: var(--green);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #348ccb;
  outline-offset: 3px;
}
button,
input,
select {
  min-height: 44px;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #bccbd2;
  border-radius: 10px;
  padding: 11px 12px;
  background: white;
  color: var(--ink);
}
textarea {
  min-height: 100px;
  resize: vertical;
}
input[type="checkbox"] {
  width: 20px;
  min-height: 20px;
  accent-color: var(--green);
}
input[type="file"] {
  padding: 9px;
  font-size: 13px;
}
label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 650;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
h1 {
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.9px;
}
h2 {
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.5px;
}
h3 {
  font-size: 17px;
}
small,
.muted {
  color: var(--muted);
}
small {
  font-size: 12px;
}
.skip {
  position: fixed;
  left: 12px;
  top: -80px;
  z-index: 99;
  background: white;
  padding: 12px;
}
.skip:focus {
  top: 10px;
}
.loading {
  padding: 20vh 20px;
  text-align: center;
}
.loading .brand-icon {
  margin: auto auto 18px;
}
.brand-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 13px;
  background: var(--navy);
  object-fit: contain;
  font-size: 28px;
  font-weight: 850;
  color: var(--navy);
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
}
.brand strong {
  font-size: 18px;
  letter-spacing: -0.3px;
}
.brand small {
  display: block;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  color: var(--ink);
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  min-height: 44px;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover {
  background: #f0f5f4;
  text-decoration: none;
}
.btn.primary {
  background: var(--green);
  border-color: var(--green);
  color: white;
}
.btn.primary:hover {
  background: #0b5238;
}
.btn.danger {
  background: #fff1f2;
  border-color: #edc1c7;
  color: var(--red);
}
.btn.ghost {
  background: transparent;
  border-color: transparent;
}
.btn.small {
  min-height: 36px;
  padding: 7px 11px;
  font-size: 12px;
}
.btn.full {
  width: 100%;
}
.btn svg,
.nav-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 7px;
  background: #eaf0f3;
  color: #455c6d;
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
}
.badge.green {
  background: #e1f2e9;
  color: #136444;
}
.badge.red {
  background: #ffe9ec;
  color: #9e2736;
}
.badge.amber {
  background: #fff1d8;
  color: #79500e;
}
.pill {
  display: inline-flex;
  border: 1px solid #b8d5c7;
  padding: 5px 9px;
  border-radius: 30px;
  color: #175e44;
  font-size: 11px;
  font-weight: 700;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 1.8px;
  font-size: 10px;
  font-weight: 800;
  color: var(--muted);
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.between {
  justify-content: space-between;
}
.stack {
  display: grid;
  gap: 16px;
}
.grid2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.grid3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 23px;
}
.card-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.card-title p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}
.section-space {
  margin-top: 24px;
}
.notice {
  padding: 13px 16px;
  border: 1px solid #b7d8ca;
  background: #eef9f3;
  border-radius: 12px;
  font-size: 13px;
  color: #235c46;
}
.notice.warn {
  border-color: #eddbad;
  background: #fff8e9;
  color: #795616;
}
.notice.error,
.error {
  border-color: #ecc7ce;
  background: #fff0f2;
  color: #9e2638;
}
.error {
  padding: 12px;
  border-radius: 9px;
  font-size: 13px;
}
.empty {
  padding: 42px 20px;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 9px;
  color: var(--muted);
}
.empty h3 {
  color: var(--ink);
}
.empty svg {
  width: 35px;
  height: 35px;
  stroke: #759d8c;
  fill: none;
  stroke-width: 1.2;
}
.table-wrap {
  overflow: auto;
  max-width: 100%;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  text-align: left;
}
th {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: #526876;
  background: #f5f8f8;
}
td,
th {
  padding: 13px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
td strong {
  display: block;
  font-size: 13px;
}
td .sub {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 3px;
}
tbody tr:last-child td {
  border-bottom: 0;
}
.nowrap {
  white-space: nowrap;
}
.filters {
  display: grid;
  grid-template-columns: 1fr 1fr 1.3fr 1.3fr auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 18px;
}
.filters label {
  font-size: 11px;
}
.filters input,
.filters select {
  font-size: 12px;
  padding: 9px;
}
.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}
.login-story {
  background: var(--navy);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 56px 8vw 42px 6vw;
  position: relative;
  overflow: hidden;
}
.login-story:after {
  content: "";
  position: absolute;
  border: 1px solid #365064;
  border-radius: 50%;
  width: 600px;
  height: 600px;
  right: -290px;
  top: 80px;
  pointer-events: none;
}
.login-story .brand small {
  color: #a8c1ce;
}
.login-copy {
  position: relative;
  z-index: 1;
  margin: 70px 0;
}
.login-copy h1 {
  font-size: clamp(35px, 4vw, 58px);
  letter-spacing: -2px;
  max-width: 570px;
}
.login-copy h1 em {
  font-style: normal;
  color: var(--mint);
}
.login-copy p {
  color: #b9cbd5;
  max-width: 450px;
  margin-top: 24px;
  font-size: 15px;
}
.login-features {
  display: flex;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.login-features span {
  font-size: 12px;
  color: #d3e1e7;
  border-left: 2px solid var(--mint);
  padding-left: 12px;
}
.login-form {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px;
}
.login-panel {
  max-width: 370px;
  width: 100%;
  display: grid;
  gap: 23px;
}
.login-panel h2 {
  font-size: 29px;
}
.login-panel p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
}
.login-panel form {
  display: grid;
  gap: 18px;
}
.login-footer {
  font-size: 11px;
  color: #a9c1ce;
}
.shell {
  min-height: 100vh;
  padding-left: 240px;
}
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 240px;
  padding: 25px 17px;
  background: var(--navy);
  color: #ecf4f7;
  display: flex;
  flex-direction: column;
  z-index: 20;
}
.sidebar .brand {
  padding: 0 10px 25px;
}
.sidebar .brand small {
  color: #9bb5c4;
  font-size: 10px;
}
.nav-label {
  font-size: 9px;
  color: #92aebb;
  letter-spacing: 1.6px;
  padding: 14px 13px 8px;
  font-weight: 750;
}
.sidebar nav {
  overflow: auto;
  flex: 1;
}
.nav-btn {
  width: 100%;
  border: 0;
  background: transparent;
  color: #b6cbd6;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  border-radius: 9px;
  padding: 11px 12px;
  min-height: 43px;
  font-size: 12px;
  margin-bottom: 3px;
  font-weight: 550;
}
.nav-btn:hover {
  color: white;
  background: #21465a;
}
.nav-btn.active {
  background: #d5f2df;
  color: #164730;
  font-weight: 750;
}
.nav-count {
  margin-left: auto;
  background: #a83741;
  color: white;
  border-radius: 5px;
  padding: 1px 6px;
  font-size: 10px;
}
.sidebar-footer {
  border-top: 1px solid #315165;
  margin-top: 15px;
  padding: 15px 6px 0;
}
.sidebar-footer .avatar {
  width: 33px;
  height: 33px;
  background: #2d5266;
  color: #cfebe0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
}
.sidebar-footer strong {
  font-size: 12px;
  display: block;
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sidebar-footer small {
  color: #9db9c8;
  font-size: 10px;
}
.sidebar-footer .btn {
  color: #bed1dc;
  padding: 7px;
  min-height: 32px;
}
.topbar {
  height: 78px;
  background: white;
  border-bottom: 1px solid var(--line);
  padding: 0 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.topbar .breadcrumb {
  font-size: 12px;
  color: var(--muted);
}
.topbar .breadcrumb strong {
  color: var(--ink);
  margin-left: 8px;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 13px;
}
.sync {
  font-size: 11px;
  color: var(--green);
}
.sync:before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: currentColor;
  border-radius: 50%;
  margin-right: 6px;
}
.sync.offline {
  color: var(--red);
}
.mobile-menu {
  display: none;
}
.content {
  padding: 32px 38px;
  max-width: 1600px;
  margin: auto;
}
.page-head {
  margin-bottom: 25px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-end;
}
.page-head p {
  color: var(--muted);
  font-size: 13px;
  margin-top: 7px;
  max-width: 660px;
}
.hero {
  padding: 28px;
  background: var(--navy);
  border-radius: 19px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  overflow: hidden;
}
.hero .eyebrow {
  color: #aed0c0;
}
.hero h2 {
  font-size: 27px;
  margin: 8px 0;
}
.hero p {
  font-size: 13px;
  color: #b6ccd8;
  max-width: 580px;
}
.hero .btn {
  background: var(--mint);
  border-color: var(--mint);
  color: #123e2c;
  margin-top: 19px;
}
.hero-art {
  display: grid;
  place-items: center;
  min-width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 1px solid #638475;
  color: #b7efcc;
  box-shadow:
    0 0 0 20px #264b4b60,
    0 0 0 40px #264b4b30;
}
.hero-art svg {
  width: 47px;
  height: 47px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin: 23px 0;
}
.stat {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 19px;
}
.stat .label {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.stat strong {
  display: block;
  font-size: 29px;
  letter-spacing: -1px;
  margin: 7px 0 2px;
}
.stat small {
  font-size: 10px;
}
.stat .nav-icon {
  color: #52846c;
}
.action-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  color: var(--ink);
  width: 100%;
  text-align: left;
}
.action-card:hover {
  border-color: #79ae93;
  background: #f9fffb;
}
.action-card .nav-icon {
  width: 40px;
  height: 40px;
  background: #edf6f0;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #21654d;
  flex-shrink: 0;
}
.action-card strong {
  display: block;
  font-size: 14px;
}
.action-card small {
  display: block;
  font-size: 11px;
  margin-top: 3px;
}
.action-card .arrow {
  margin-left: auto;
  color: #638570;
}
.feed {
  display: grid;
  gap: 0;
}
.feed-item {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.feed-item:last-child {
  border: 0;
}
.feed-item .dot {
  width: 9px;
  height: 9px;
  flex-shrink: 0;
  background: #83b69c;
  border-radius: 50%;
  margin-top: 5px;
  box-shadow: 0 0 0 5px #f0f6f2;
}
.feed-item p {
  font-size: 12px;
}
.feed-item strong {
  font-size: 12px;
}
.feed-item small {
  font-size: 10px;
}
.feed-item .time {
  margin-left: auto;
  white-space: nowrap;
}
.status-box {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 17px;
}
.progress {
  height: 6px;
  background: #e7eeeb;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 13px;
}
.progress span {
  display: block;
  height: 100%;
  background: #34825c;
}
.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 13px;
}
.checklist li {
  display: flex;
  gap: 10px;
  font-size: 12px;
  align-items: flex-start;
}
.checknum {
  min-width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e3f3ea;
  color: #256449;
  font-size: 10px;
}
.photo-thumb {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}
.photo-button {
  padding: 0;
  border: 0;
  background: none;
  line-height: 0;
}
.gallery {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.gallery figure {
  margin: 0;
  max-width: calc(50% - 8px);
}
.gallery img {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  border-radius: 10px;
  background: #f3f5f5;
}
.gallery figcaption {
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
}
.detail-list {
  display: grid;
  grid-template-columns: 130px 1fr;
  font-size: 13px;
  gap: 11px;
  overflow-wrap: anywhere;
}
.detail-list dt {
  color: var(--muted);
}
.detail-list dd {
  margin: 0;
  white-space: pre-wrap;
}
.timeline {
  border-left: 2px solid #b5d9c7;
  padding-left: 18px;
  margin: 16px 0;
  display: grid;
  gap: 15px;
}
.timeline p {
  font-size: 12px;
}
.timeline small {
  font-size: 10px;
}
.qr-print {
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 14px;
}
.qr-print > .checkpoint-qr {
  width: 260px;
  max-width: 100%;
}
.map-frame {
  width: 100%;
  height: 330px;
  border: 0;
  border-radius: 12px;
}
.map-points {
  max-height: 320px;
  overflow: auto;
}
.tabs {
  display: flex;
  gap: 5px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  margin-bottom: 20px;
  overflow-x: auto;
}
.tab-btn {
  background: none;
  border: 0;
  padding: 10px 15px;
  color: var(--muted);
  font-size: 12px;
  border-radius: 9px;
  white-space: nowrap;
}
.tab-btn.active {
  background: #dff0e6;
  color: #18553a;
  font-weight: 700;
}
.matrix td,
.matrix th {
  text-align: center;
  white-space: nowrap;
  min-width: 33px;
  padding: 9px;
}
.matrix td:first-child,
.matrix th:first-child {
  position: sticky;
  left: 0;
  background: white;
  text-align: left;
  min-width: 160px;
  z-index: 1;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.span2 {
  grid-column: 1/-1;
}
.form-hint {
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
}
.checks {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.checks label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 500;
  min-height: 35px;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.capture {
  padding: 16px;
  border: 1px dashed #b5cfc3;
  border-radius: 13px;
  display: grid;
  gap: 12px;
  background: #f8fcfa;
}
.capture-preview {
  width: 110px;
  height: 90px;
  border-radius: 10px;
  object-fit: cover;
}
.gps-value {
  font-size: 11px;
  overflow-wrap: anywhere;
}
.secret {
  padding: 16px;
  background: #f1f7f2;
  border: 1px dashed #729d83;
  border-radius: 9px;
  font-family: monospace;
  font-size: 16px;
  user-select: all;
  overflow-wrap: anywhere;
}
.shift-row {
  padding: 13px;
  background: #f5f8f7;
  border-radius: 12px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr auto;
  gap: 10px;
}
.shift-row .checks {
  grid-column: 1/-1;
}
.filter-empty {
  padding: 18px;
  font-size: 13px;
}
.card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.help-section h3 {
  margin-bottom: 10px;
}
.help-section p,
.help-section li {
  font-size: 13px;
  color: var(--muted);
}
.help-section ul,
.help-section ol {
  padding-left: 20px;
}
.help-section li {
  margin-bottom: 9px;
}
.role-chip {
  font-size: 11px;
  font-weight: 700;
}
.mobile-backdrop {
  display: none;
}
dialog {
  width: min(700px, calc(100vw - 28px));
  max-height: 90dvh;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 0;
  color: var(--ink);
  box-shadow: 0 25px 90px #0a263544;
}
dialog::backdrop {
  background: #09223588;
  backdrop-filter: blur(3px);
}
.modal-head {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  background: white;
}
.modal-head h2 {
  font-size: 20px;
}
.modal-body {
  padding: 24px;
}
.modal-body form {
  display: grid;
  gap: 16px;
}
.modal-body video {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: 10px;
}
.modal-body .error:empty {
  display: none;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translate(-50%, 25px);
  background: var(--navy);
  color: white;
  padding: 13px 20px;
  border-radius: 12px;
  box-shadow: 0 5px 25px #1234;
  max-width: min(500px, 90vw);
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
  z-index: 100;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.busy-bar {
  height: 3px;
  background: #86be9e;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
}
.subtle {
  font-size: 11px;
  color: var(--muted);
}
.print-only {
  display: none;
}
@media (min-width: 1700px) {
  .content {
    padding-top: 42px;
  }
  .hero {
    padding: 35px;
  }
  .stats {
    gap: 20px;
  }
  .stat {
    padding: 24px;
  }
  .grid2 {
    gap: 23px;
  }
}
@media (max-width: 1100px) {
  .shell {
    padding-left: 214px;
  }
  .sidebar {
    width: 214px;
  }
  .content {
    padding: 27px 23px;
  }
  .topbar {
    padding: 0 23px;
  }
  .grid3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .filters .btn {
    align-self: end;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 14px;
  }
  .grid2 {
    gap: 14px;
  }
  .hero-art {
    min-width: 80px;
    height: 80px;
  }
  .topbar .breadcrumb {
    display: none;
  }
}
@media (max-width: 760px) {
  .shell {
    padding-left: 0;
  }
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s;
    width: 260px;
  }
  .shell.menu-open .sidebar {
    transform: translateX(0);
  }
  .shell.menu-open .mobile-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: #001a2d77;
    z-index: 19;
  }
  .mobile-menu {
    display: inline-flex;
  }
  .topbar {
    height: 64px;
    padding: 0 16px;
    position: sticky;
    top: 0;
    z-index: 15;
  }
  .top-actions {
    gap: 7px;
  }
  .top-actions .sync {
    font-size: 10px;
  }
  .top-actions .pill {
    font-size: 9px;
  }
  .content {
    padding: 24px 16px 35px;
  }
  .page-head {
    align-items: flex-start;
    margin-bottom: 20px;
    flex-wrap: wrap;
  }
  .page-head h1 {
    font-size: 26px;
  }
  .page-head p {
    font-size: 12px;
  }
  .hero {
    padding: 22px;
  }
  .hero h2 {
    font-size: 22px;
  }
  .hero p {
    font-size: 12px;
  }
  .hero-art {
    display: none;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 16px 0;
  }
  .stat {
    padding: 15px;
  }
  .stat strong {
    font-size: 26px;
  }
  .grid2,
  .grid3 {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .card {
    padding: 18px;
    border-radius: 15px;
  }
  .hero .btn {
    width: 100%;
  }
  .filters {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }
  .filters .btn {
    width: 100%;
  }
  td,
  th {
    padding: 11px 9px;
  }
  .topbar .date {
    display: none;
  }
  .form-grid {
    gap: 13px;
  }
  .modal-head {
    padding: 16px 18px;
  }
  .modal-head h2 {
    font-size: 18px;
  }
  .modal-body {
    padding: 18px;
  }
  .shift-row {
    grid-template-columns: 1fr 1fr;
  }
  .shift-row label:first-child {
    grid-column: 1/-1;
  }
  .login {
    grid-template-columns: 1fr;
  }
  .login-story {
    padding: 26px 25px 28px;
    min-height: auto;
  }
  .login-copy {
    margin: 30px 0 0;
  }
  .login-copy h1 {
    font-size: 34px;
    letter-spacing: -1px;
  }
  .login-copy p,
  .login-features,
  .login-footer {
    display: none;
  }
  .login-form {
    padding: 32px 25px;
  }
  .login-panel {
    max-width: 440px;
  }
  .login-panel h2 {
    font-size: 25px;
  }
  .detail-list {
    grid-template-columns: 100px 1fr;
  }
  .form-actions .btn {
    flex: 1;
  }
  .gallery figure {
    max-width: 100%;
  }
  .gallery img {
    max-height: 320px;
  }
}
@media (max-width: 390px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  .span2 {
    grid-column: auto;
  }
  .top-actions .sync {
    display: none;
  }
  .filters {
    grid-template-columns: 1fr 1fr;
  }
  .content {
    padding: 20px 12px;
  }
  .topbar {
    padding: 0 12px;
  }
  .stats {
    gap: 8px;
  }
  .stat {
    padding: 13px;
  }
  .stat .label {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
@media print {
  .sidebar,
  .topbar,
  .page-head,
  .filters,
  .btn,
  .mobile-backdrop,
  #toast {
    display: none !important;
  }
  .shell {
    padding: 0;
  }
  .content {
    padding: 0;
  }
  body {
    background: white;
  }
  dialog[open] {
    position: absolute;
    inset: 0;
    margin: 0;
    width: 100%;
    max-height: none;
    border: 0;
    box-shadow: none;
  }
  .modal-head {
    position: static;
  }
  .modal-head button {
    display: none;
  }
  body:has(dialog[open]) #app {
    display: none;
  }
  .card {
    break-inside: avoid;
  }
  .print-only {
    display: block;
  }
  .qr-print > .checkpoint-qr {
    width: 300px;
  }
}

.btn {
  white-space: normal;
}
.card {
  min-width: 0;
}

.qr-print .brand-icon {
  width: 44px;
  height: 44px;
}
@media print {
  .no-print {
    display: none !important;
  }
  .qr-print > .checkpoint-qr {
    width: 80mm;
    height: 80mm;
  }
}

@media print {
  dialog::backdrop {
    background: transparent !important;
    backdrop-filter: none !important;
  }
  dialog[open] {
    border-radius: 0;
    max-width: none;
    background: white;
  }
  body:has(dialog[open]) .modal-head {
    display: none;
  }
  .qr-print {
    padding: 8mm;
  }
}
