:root {
  --navy: #0d2d3f;
  --navy-soft: #173f55;
  --blue: #0088d0;
  --blue-deep: #006fa9;
  --cyan: #31b8e8;
  --sky: #73d0ee;
  --steel: #989898;
  --bg: #f4f8fb;
  --panel: #fff;
  --text: #173142;
  --muted: #687f8d;
  --line: #dce8ee;
  --danger: #c62828;
  --warning: #9a6700;
  --success: #137333;
  --radius: 16px;
  --shadow: 0 12px 32px rgba(23, 74, 99, 0.08);
  --shadow-hover: 0 18px 42px rgba(7, 119, 173, 0.15);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.45;
}
a {
  color: var(--blue);
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
.app-shell {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 264px;
  position: fixed;
  inset: 0 auto 0 0;
  background: linear-gradient(180deg, #0d2d3f 0%, #0b2535 100%);
  color: #fff;
  padding: 20px 15px 16px;
  z-index: 20;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  box-shadow: 10px 0 40px rgba(9, 41, 58, 0.08);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  margin: 0 7px 24px;
  min-width: 0;
}
.brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  padding: 4px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(1.3);
}
.brand-copy {
  display: grid;
  min-width: 0;
  line-height: 1.15;
}
.brand-copy strong {
  font-size: 17px;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.brand-copy small {
  color: #8fc9e1;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  margin-top: 5px;
  white-space: nowrap;
}
.sidebar nav {
  display: grid;
  gap: 3px;
}
.nav-label {
  color: #6fa1b8;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 16px 13px 6px;
}
.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  color: #bed0da;
  border-radius: 10px;
  font-weight: 600;
  transition:
    color 0.16s,
    background 0.16s,
    transform 0.16s;
}
.sidebar nav a i {
  width: 21px;
  text-align: center;
  color: #68c7eb;
  font-size: 17px;
}
.sidebar nav a:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  transform: translateX(2px);
}
.sidebar nav a.active {
  background: linear-gradient(90deg, rgba(10, 145, 202, 0.28), rgba(49, 184, 232, 0.1));
  color: #fff;
  box-shadow: inset 3px 0 0 var(--cyan);
}
.sidebar nav a.active i {
  color: #fff;
}
.sidebar-footer {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #79aec4;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: auto;
  padding: 16px 12px 2px;
  font-size: 12px;
}
.sidebar-footer i {
  color: #49c592;
}
.page {
  min-width: 0;
  width: calc(100% - 264px);
  margin-left: 264px;
}
.topbar {
  height: 76px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  position: sticky;
  top: 0;
  z-index: 10;
}
.topbar-title strong {
  font-size: 17px;
  color: var(--navy);
}
.topbar small {
  display: block;
  color: var(--muted);
  margin-top: 2px;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.top-actions form {
  margin: 0;
}
.user-avatar {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 6px 14px rgba(10, 145, 202, 0.24);
}
.content {
  padding: 30px;
  max-width: 1500px;
  width: 100%;
  margin: 0 auto;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 22px;
  gap: 20px;
}
h1,
h2,
h3 {
  margin-top: 0;
  color: var(--navy);
}
h1 {
  margin-bottom: 5px;
  font-size: clamp(25px, 3vw, 34px);
  letter-spacing: -0.035em;
}
h2 {
  letter-spacing: -0.025em;
}
.breadcrumb {
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  margin: 0 0 8px;
}
.breadcrumb i {
  margin-right: 4px;
}
.muted,
.field-help {
  color: var(--muted);
}
.action-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}
.action-grid.operator {
  grid-template-columns: repeat(3, 1fr);
}
.action-card {
  position: relative;
  overflow: hidden;
  min-height: 178px;
  border-radius: var(--radius);
  padding: 22px;
  color: #fff;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition:
    transform 0.18s,
    box-shadow 0.18s;
}
.action-card::after {
  content: "";
  position: absolute;
  right: -24px;
  bottom: -40px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: 26px solid rgba(255, 255, 255, 0.08);
}
.action-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.action-card .action-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 13px;
  margin-bottom: auto;
  font-size: 21px;
}
.action-card .action-arrow {
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
  right: 18px;
  top: 18px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.13);
}
.action-card strong {
  position: relative;
  z-index: 1;
  font-size: 18px;
  margin-top: 20px;
  letter-spacing: -0.015em;
}
.action-card small {
  position: relative;
  z-index: 1;
  opacity: 0.85;
  margin-top: 4px;
}
.action-card.blue {
  background: linear-gradient(135deg, #087db5, #0aa7dc);
}
.action-card.cyan {
  background: linear-gradient(135deg, #0b9dcf, #40c2e9);
}
.action-card.sky {
  background: linear-gradient(135deg, #218fb8, #67c9e8);
}
.action-card.steel {
  background: linear-gradient(135deg, #466a7d, #7898a7);
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(120px, 1fr));
  gap: 12px;
}
.stat-card,
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.stat-card {
  position: relative;
  padding: 17px;
  color: var(--text);
  min-height: 132px;
  transition:
    transform 0.16s,
    border-color 0.16s,
    box-shadow 0.16s;
}
.stat-card:hover {
  transform: translateY(-3px);
  border-color: #a9ddec;
  box-shadow: var(--shadow-hover);
}
.stat-icon {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 10px;
  color: var(--blue);
  background: #e7f6fb;
  font-size: 16px;
  margin-bottom: 12px;
}
.stat-card small {
  color: var(--muted);
  display: block;
  min-height: 23px;
  font-weight: 650;
}
.stat-card strong {
  display: block;
  font-size: 28px;
  color: var(--navy);
  letter-spacing: -0.04em;
}
.stat-chevron {
  position: absolute;
  right: 14px;
  bottom: 17px;
  color: #aec0ca;
  font-size: 12px;
}
.panel {
  padding: 23px;
  margin-bottom: 20px;
}
.panel-narrow {
  max-width: 760px;
}
.button {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 9px 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  transition:
    transform 0.15s,
    box-shadow 0.15s,
    background 0.15s;
}
.button:hover {
  transform: translateY(-1px);
}
.button i {
  font-size: 15px;
}
.button-primary {
  background: linear-gradient(135deg, var(--blue-deep), var(--blue));
  color: #fff;
  box-shadow: 0 7px 16px rgba(10, 145, 202, 0.2);
}
.button-primary:hover {
  background: linear-gradient(135deg, #056b9d, #078ac0);
  box-shadow: 0 9px 20px rgba(10, 145, 202, 0.27);
}
.button-outline {
  border-color: var(--line);
  background: #fff;
  color: var(--navy);
}
.button-outline:hover {
  border-color: #a9ddec;
  background: #f6fbfd;
  color: var(--blue-deep);
}
.button-ghost {
  color: var(--blue);
}
.button-danger {
  background: var(--danger);
  color: #fff;
}
.button-block {
  width: 100%;
}
.icon-button {
  border: 0;
  background: transparent;
  color: var(--navy);
  font-size: 25px;
}
label {
  display: grid;
  position: relative;
  gap: 7px;
  color: var(--navy);
  font-weight: 650;
  margin-bottom: 16px;
}
input,
select,
textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #bfd0d9;
  border-radius: 9px;
  background: #fff;
  color: var(--text);
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
input:focus,
select:focus,
textarea:focus {
  outline: 0;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(10, 145, 202, 0.13);
}
.password-field {
  position: relative;
  display: block;
}
.password-field input {
  padding-right: 45px;
}
.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  transform: translateY(-50%);
}
.password-toggle:hover,
.password-toggle:focus-visible {
  color: var(--blue-deep);
  background: #edf7fb;
  outline: 0;
}
textarea {
  min-height: 90px;
  resize: vertical;
}
.form-grid {
  display: grid;
  gap: 16px;
}
.form-grid.two {
  grid-template-columns: repeat(2, 1fr);
}
.form-grid.three {
  grid-template-columns: repeat(3, 1fr);
}
.postal-result {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.82rem;
}
.postal-result select {
  display: block;
  width: 100%;
  margin-top: 5px;
}
.alert {
  padding: 13px 15px;
  border-radius: 9px;
  margin-bottom: 18px;
  border: 1px solid;
}
.alert-success {
  color: var(--success);
  background: #e6f4ea;
  border-color: #b7dfc1;
}
.alert-error {
  color: var(--danger);
  background: #fce8e6;
  border-color: #efb8b4;
}
.alert-warning {
  color: var(--warning);
  background: #fff7d6;
  border-color: #f4d87d;
}
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}
th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
th {
  color: #607b89;
  background: #f3f8fa;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.055em;
}
tbody tr {
  transition: background 0.14s;
}
tbody tr:hover {
  background: #f8fcfd;
}

.machine-suggestions {
  position: absolute;
  top: 46px;
  z-index: 20;
  left: 0;
  right: 0;
  max-height: 220px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #b8cbd6;
  box-shadow: 0 6px 16px rgba(18, 59, 93, .14);
  border-radius: 8px;
}
.filter-suggest-wrap { position: relative; min-width: 0; }
.filter-suggestions { top: calc(100% + 4px); left: 0; right: 0; }
.billing-company-combobox { display: block; position: relative; }
.billing-company-options { top: calc(100% + 4px); }
.machine-suggestion {
  display: block;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-bottom: 1px solid #e5edf1;
  background: #fff;
  color: #243746;
  text-align: left;
  cursor: pointer;
  font: inherit;
  line-height: 1.3;
}
.machine-suggestion:hover { background: #edf5f8; }
.machine-suggestion-empty { display: block; padding: 9px 11px; color: var(--muted); }
@media (max-width: 760px) {
  .machine-suggestions { top: 45px; max-height: 190px; }
  .machine-suggestion { padding: 10px 11px; font-size: 13px; }
}
.table-group-row td {
  color: var(--navy);
  background: #eaf4f9;
  border-bottom-color: #cfe2eb;
  font-size: 14px;
}
.table-group-row:hover {
  background: #eaf4f9;
}
tr:last-child td {
  border-bottom: 0;
}
.badge {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: #e7eef5;
  color: var(--navy);
}
.badge-success {
  background: #e6f4ea;
  color: var(--success);
}
.badge-warning {
  background: #fff4ce;
  color: var(--warning);
}
.badge-danger {
  background: #fce8e6;
  color: var(--danger);
}
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.toolbar form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.filter-count {
  color: var(--muted);
  font-size: 0.9rem;
  white-space: nowrap;
}
.companies-toolbar .filter-count,
.filter-count-large {
  font-size: 1.9rem;
}
.toolbar input,
.toolbar select {
  width: auto;
  min-width: 150px;
}
.pagination {
  display: flex;
  gap: 5px;
  margin-top: 16px;
}
.pagination a,
.pagination span {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}
.pagination .active {
  background: var(--blue);
  color: #fff;
}
.table-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
dl {
  display: grid;
  grid-template-columns: minmax(110px, 0.7fr) 1.5fr;
  gap: 11px 16px;
  margin: 0;
}
dt {
  color: var(--muted);
}
dd {
  margin: 0;
}
.reading-photo {
  display: block;
  max-width: 100%;
  max-height: 520px;
  object-fit: contain;
  border-radius: 10px;
}
.meter-photo-field { display: grid; justify-items: start; gap: 10px; margin: 16px 0; }
.meter-photo-field label { width: 100%; }
.meter-photo-preview { max-width: min(100%, 520px); max-height: 400px; object-fit: contain; border: 1px solid var(--line); border-radius: 10px; }
.meter-photo-status { margin: 0; color: var(--muted); }
.meter-photo-status[data-state="ok"] { color: var(--success); font-weight: 700; }
.meter-photo-status[data-state="error"] { color: var(--danger); font-weight: 700; }
.meter-photo-status[data-state="mismatch"] { color: var(--danger); font-weight: 700; }
.meter-camera-panel { width: min(100%, 600px); }
.meter-camera-panel video { display: block; width: 100%; max-height: 460px; margin-bottom: 10px; background: #111827; border-radius: 10px; }
.meter-camera-panel button { margin: 0 8px 8px 0; }
.reading-photo-trigger {
  display: inline-grid;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--blue);
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: zoom-in;
}
.reading-photo-trigger span { display: flex; align-items: center; gap: 6px; }
.reading-photo-trigger:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.photo-dialog {
  width: min(96vw, 1200px);
  height: min(94vh, 900px);
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: #111827;
  color: white;
  overflow: hidden;
}
.photo-dialog[open] { display: flex; flex-direction: column; }
.photo-dialog::backdrop { background: rgb(0 0 0 / 82%); }
.photo-toolbar { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 8px 16px; }
.photo-controls { display: flex; align-items: center; gap: 8px; }
.photo-controls button { width: 38px; height: 38px; border: 1px solid #6b7280; border-radius: 7px; background: #374151; color: white; cursor: pointer; }
.photo-controls button:hover, .photo-controls button:focus-visible { background: #4b5563; }
.photo-controls output { min-width: 45px; text-align: center; }
.photo-viewport { display: flex; flex: 1 1 auto; align-items: center; justify-content: center; min-width: 0; min-height: 0; overflow: hidden; touch-action: none; cursor: zoom-in; }
.photo-viewport.zoomed { cursor: grab; }
.photo-viewport.dragging { cursor: grabbing; }
.photo-viewport img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; transform-origin: center; user-select: none; pointer-events: none; }
@media (max-width: 600px) { .photo-toolbar { padding: 8px; font-size: 13px; } .photo-controls { gap: 3px; } .photo-controls button { width: 32px; height: 34px; } }
.value-pair {
  display: grid;
  gap: 3px;
}
.value-pair > span {
  display: flex;
  align-items: baseline;
  gap: 7px;
  white-space: nowrap;
}
.value-pair small {
  color: var(--muted);
  font-weight: 700;
}
.subform {
  margin-top: 20px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.subform summary {
  color: var(--blue);
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 18px;
}
.check {
  display: flex;
  grid-template-columns: auto 1fr;
  align-items: center;
  justify-content: flex-start;
}
.check input {
  width: auto;
}
.last-reading,
.calculation-preview,
.reset-box {
  border-radius: 9px;
  padding: 12px 14px;
  margin-bottom: 16px;
  background: #edf6ff;
  color: var(--navy);
}
.last-reading .value-pair,
.calculation-preview .value-pair {
  margin-top: 6px;
}
.last-reading > small {
  display: block;
  margin-top: 7px;
}
.reset-box {
  background: #fff7d6;
}
.section-gap {
  margin-top: 20px;
}
.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}
.section-heading h2 {
  margin-bottom: 4px;
}
.section-heading p {
  margin: 0;
}
.location-list {
  display: grid;
  gap: 16px;
}
.location-card {
  min-width: 0;
  margin: 0;
  padding: 20px 20px 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, #fbfdfe, #fff);
}
.location-card legend {
  width: 100%;
  padding: 0 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--navy);
  font-weight: 800;
}
.location-card:first-child {
  border-color: #a9ddec;
  box-shadow: inset 3px 0 0 var(--blue);
}
.location-card:first-child .location-number::before {
  content: "\f26b";
  font-family: bootstrap-icons;
  color: var(--blue);
  margin-right: 8px;
  font-weight: normal;
}
.location-remove {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  color: var(--danger);
  background: #fff1f1;
  font-size: 15px;
}
.location-remove:hover {
  background: #fde2e2;
}
.location-remove[hidden] {
  display: none;
}
.machine-picker {
  display: grid;
  gap: 8px;
  margin: 12px 0 20px;
}
.machine-choice {
  display: grid;
  grid-template-columns: auto 1fr 2fr;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px;
  margin: 0;
}
.machine-choice > input {
  width: auto;
}
.member-fields {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}
.member-fields[hidden] {
  display: none;
}
.economic-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: flex-end;
  padding-top: 14px;
}
.economic-summary span {
  color: var(--muted);
}
.economic-summary strong {
  color: var(--navy);
  display: block;
}
.missing-row {
  display: grid;
  grid-template-columns: 1.5fr 0.7fr 1fr;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.totals dd {
  text-align: right;
}
.inline-form {
  display: inline-flex;
}
.proforma-action-list,
.proforma-action-list form {
  display: flex;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
}
.proforma-action-list label {
  margin: 0;
}
.proforma-action-list textarea {
  min-width: min(320px, 80vw);
}
.report-stats {
  grid-template-columns: repeat(6, 1fr);
}
.bar-row {
  display: grid;
  grid-template-columns: 1fr 1.4fr auto;
  gap: 10px;
  align-items: center;
  margin: 12px 0;
}
.bar-row > div {
  height: 9px;
  background: #e7eef5;
  border-radius: 99px;
  overflow: hidden;
}
.bar-row i {
  display: block;
  height: 100%;
  background: var(--blue);
}
.auth-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 18%, rgba(49, 184, 232, 0.22), transparent 24%),
    radial-gradient(circle at 90% 10%, rgba(10, 145, 202, 0.14), transparent 30%),
    linear-gradient(135deg, #edf7fb, #fbfdfe);
}
.auth-main {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.login-card {
  position: relative;
  overflow: hidden;
  width: min(430px, 100%);
  background: rgba(255, 255, 255, 0.96);
  padding: 38px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 22px;
  box-shadow: 0 25px 75px rgba(25, 89, 116, 0.16);
}
.login-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--blue-deep), var(--cyan));
}
.login-brand {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 6px;
  margin-bottom: 22px;
  box-shadow: 0 10px 24px rgba(10, 145, 202, 0.12);
}
.login-brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(1.12);
}
.login-card h1 {
  font-size: 27px;
}
.login-card form {
  margin-top: 26px;
}
.public-reading-card {
  width: min(680px, 100%);
}
.public-machine-summary {
  display: grid;
  gap: 3px;
  margin: 20px 0 16px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fbfd;
}
.public-machine-summary strong {
  font-size: 18px;
}
.public-machine-summary span {
  color: var(--muted);
}
.copy-link-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}
.copy-link-row input {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}
.link-button {
  appearance: none;
  border: 0;
  padding: 0;
  color: var(--danger);
  background: transparent;
  cursor: pointer;
  font-weight: 700;
}
.success-mark {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin-bottom: 18px;
  border-radius: 50%;
  color: #fff;
  background: var(--success);
  font-size: 32px;
}
.empty-state {
  min-height: 60vh;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
}
.empty-code {
  font-size: 72px;
  font-weight: 800;
  color: #d3e0e9;
}
.mobile-only {
  display: none;
}
@media (max-width: 1100px) {
  .stat-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .action-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 760px) {
  .mobile-only {
    display: inline-flex;
  }
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .page {
    margin-left: 0;
    width: 100%;
  }
  .copy-link-row {
    grid-template-columns: 1fr;
  }
  .topbar {
    padding: 0 16px;
  }
  .top-actions .button-ghost,
  .user-avatar {
    display: none;
  }
  .content {
    padding: 18px 14px;
  }
  .action-grid,
  .action-grid.operator,
  .stat-grid,
  .form-grid.two,
  .form-grid.three,
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .action-card {
    min-height: 145px;
  }
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .section-heading {
    flex-direction: column;
  }
  .member-fields,
  .machine-choice,
  .missing-row {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 460px) {
  .top-actions .button span {
    display: none;
  }
  .top-actions .button {
    width: 39px;
    height: 39px;
    padding: 0;
  }
  .topbar-title small {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
