@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/inter-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/inter-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/inter-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/inter-latin-700-normal.woff2") format("woff2");
}
:root {
  color-scheme: dark;
  --bg: #101216;
  --panel: #191d24;
  --panel2: #15181e;
  --border: #2b313b;
  --text: #edf0f4;
  --muted: #a6afbd;
  --gold: #c6a355;
  --gold-soft: rgba(198, 163, 85, 0.12);
  --green: #8cc5a9;
  --red: #e7a09a;
  --radius: 12px;
  --font:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 var(--font);
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
a {
  color: var(--gold);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 30px;
  letter-spacing: -1px;
  line-height: 1.2;
  font-weight: 620;
}
h2 {
  font-size: 20px;
  letter-spacing: -0.4px;
  font-weight: 600;
}
h3 {
  font-size: 16px;
  font-weight: 600;
}
small,
.small {
  font-size: 12px;
}
.muted {
  color: var(--muted);
}
.gold {
  color: var(--gold);
}
.mono {
  font-variant-numeric: tabular-nums;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}
.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  stroke-width: 1.6;
  vertical-align: middle;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.boot {
  min-height: 100vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
  color: var(--muted);
}
.rail {
  width: 76px;
  position: fixed;
  inset: 0 auto 0 0;
  border-right: 1px solid var(--border);
  background: #12151a;
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 22px 10px;
  z-index: 30;
  gap: 20px;
}
.brand-mark {
  width: 40px;
  height: 40px;
  display: block;
}
.rail-nav {
  display: flex;
  flex-direction: column;
  gap: 9px;
  width: 100%;
  margin-top: 24px;
}
.rail button {
  width: 48px;
  height: 48px;
  background: none;
  border: 1px solid transparent;
  border-radius: 11px;
  color: var(--muted);
  display: grid;
  place-items: center;
  position: relative;
}
.rail button:hover {
  background: var(--panel);
  color: var(--text);
}
.rail button.active {
  color: var(--gold);
  background: var(--gold-soft);
  border-color: rgba(198, 163, 85, 0.2);
}
.rail button.active:before {
  content: "";
  position: absolute;
  left: -15px;
  width: 3px;
  height: 20px;
  background: var(--gold);
  border-radius: 0 3px 3px 0;
}
.rail .rail-bottom {
  margin-top: auto;
  display: grid;
  gap: 8px;
}
.rail-label {
  position: absolute;
  left: 60px;
  padding: 6px 10px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  white-space: nowrap;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
}
.rail button:hover .rail-label,
.rail button:focus-visible .rail-label {
  opacity: 1;
}
.workspace {
  margin-left: 76px;
}
.topbar {
  height: 80px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 0 36px;
  background: #111419;
}
.wordmark {
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.wordmark .small {
  font-weight: 400;
  letter-spacing: 0;
  border-left: 1px solid var(--border);
  padding-left: 14px;
  color: var(--muted);
}
.top-right {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 13px;
}
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--gold);
  display: grid;
  place-items: center;
  font-size: 12px;
  border: 1px solid rgba(198, 163, 85, 0.3);
  font-weight: 650;
}
.profile {
  display: flex;
  gap: 11px;
  align-items: center;
}
.profile span {
  display: block;
}
.connection {
  display: flex;
  gap: 7px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}
.connection:before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}
.connection.offline:before {
  background: var(--gold);
}
.content {
  max-width: 1560px;
  margin: auto;
  padding: 36px 36px 56px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}
.page-heading p {
  color: var(--muted);
  margin-top: 8px;
  font-size: 14px;
}
.heading-actions,
.actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.btn {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 15px;
  background: var(--panel);
  color: var(--text);
  font-size: 13px;
  font-weight: 550;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 41px;
  white-space: nowrap;
  text-decoration: none;
}
.btn:hover {
  background: #222730;
  border-color: #414a58;
  text-decoration: none;
}
.btn.primary {
  background: var(--gold);
  border-color: var(--gold);
  color: #161719;
}
.btn.primary:hover {
  background: #d6b86e;
}
.btn.quiet {
  background: transparent;
}
.btn.danger {
  color: var(--red);
  border-color: #5c3e3b;
}
.btn.compact {
  padding: 6px 10px;
  min-height: 32px;
  font-size: 12px;
}
.btn.icon-only {
  width: 36px;
  padding: 7px;
  min-height: 36px;
}
.btn .icon {
  width: 16px;
  height: 16px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.stat {
  padding: 20px 22px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.stat .label {
  color: var(--muted);
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.stat .label .icon {
  width: 17px;
  height: 17px;
  color: var(--gold);
}
.stat .value {
  font-size: 29px;
  letter-spacing: -1px;
  margin: 9px 0 4px;
  font-weight: 600;
  line-height: 1.25;
}
.stat .foot {
  font-size: 11px;
  color: var(--muted);
}
.stat.accent {
  border-top-color: var(--gold);
}
.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.panel-head {
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--border);
}
.panel-head p {
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}
.panel-body {
  padding: 22px;
}
.day-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 22px;
}
.stack {
  display: grid;
  gap: 20px;
  align-content: start;
}
.day-toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
}
.day-toolbar input {
  padding: 7px 9px;
  width: auto;
  font-size: 13px;
  min-height: 36px;
}
.count {
  font-size: 11px;
  color: var(--gold);
  background: var(--gold-soft);
  border: 1px solid rgba(198, 163, 85, 0.2);
  border-radius: 5px;
  padding: 2px 7px;
}
.job-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 15px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.job-row:last-child {
  border-bottom: 0;
}
.job-row.running {
  background: linear-gradient(90deg, rgba(198, 163, 85, 0.055), transparent);
  border-left: 3px solid var(--gold);
  padding-left: 19px;
}
.job-index {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--muted);
  display: grid;
  place-items: center;
  font-size: 12px;
  position: relative;
}
.job-row.running .job-index {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-soft);
}
.job-title {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.job-title button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  text-align: left;
}
.job-title button:hover {
  color: var(--gold);
}
.job-address {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  gap: 5px;
  align-items: center;
}
.job-address .icon {
  width: 13px;
  height: 13px;
}
.job-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 11px;
  margin-top: 10px;
}
.job-meta .icon {
  width: 13px;
  height: 13px;
  margin-right: 4px;
}
.job-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-top: 2px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  letter-spacing: 0.2px;
  font-weight: 550;
  border-radius: 5px;
  padding: 3px 7px;
  background: #222831;
  color: #bdc6d4;
  white-space: nowrap;
}
.badge.gold {
  background: var(--gold-soft);
  color: #dac38d;
}
.badge.green {
  background: rgba(140, 197, 169, 0.1);
  color: var(--green);
}
.badge.red {
  background: rgba(231, 160, 154, 0.1);
  color: var(--red);
}
.badge.outline {
  background: transparent;
  border: 1px solid var(--border);
}
.info-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.info-note strong {
  color: var(--text);
  font-weight: 550;
}
.next-card {
  padding: 22px;
  background: radial-gradient(
    ellipse at top right,
    rgba(198, 163, 85, 0.1),
    transparent 80%
  );
}
.next-card h3 {
  font-size: 20px;
  margin: 16px 0 6px;
  letter-spacing: -0.4px;
}
.next-card .btn {
  width: 100%;
  margin-top: 20px;
}
.divider {
  height: 1px;
  background: var(--border);
  margin: 18px 0;
}
.mini-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.mini-list li {
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.mini-list li:last-child {
  border: 0;
}
.link-button {
  background: none;
  border: 0;
  padding: 0;
  color: var(--gold);
  font-size: 12px;
  text-align: left;
}
.empty {
  padding: 55px 24px;
  text-align: center;
}
.empty .empty-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border-radius: 15px;
  background: var(--gold-soft);
  color: var(--gold);
  display: grid;
  place-items: center;
}
.empty h3 {
  font-size: 18px;
  margin-bottom: 7px;
}
.empty p {
  font-size: 13px;
  color: var(--muted);
  max-width: 420px;
  margin: 0 auto 20px;
}
.notice {
  padding: 14px 17px;
  border: 1px solid rgba(198, 163, 85, 0.28);
  background: var(--gold-soft);
  color: #ddcba0;
  border-radius: 9px;
  font-size: 13px;
  margin-bottom: 20px;
}
.notice.error {
  border-color: #674843;
  background: rgba(231, 160, 154, 0.07);
  color: var(--red);
}
.notice.success {
  color: var(--green);
  background: rgba(140, 197, 169, 0.07);
  border-color: #355344;
}
.table-wrap {
  overflow-x: auto;
  width: 100%;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}
th {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  font-weight: 550;
  background: var(--panel2);
  padding: 13px 18px;
  white-space: nowrap;
}
td {
  padding: 16px 18px;
  border-top: 1px solid var(--border);
  vertical-align: middle;
}
td strong {
  font-weight: 550;
}
td .muted {
  font-size: 11px;
  margin-top: 4px;
}
tr:hover td {
  background: rgba(255, 255, 255, 0.012);
}
.filters {
  display: flex;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.filters .field {
  margin: 0;
}
.filters .field.grow {
  flex: 1;
  min-width: 200px;
}
.search-input {
  position: relative;
}
.search-input > .icon {
  position: absolute;
  left: 12px;
  top: 12px;
  width: 17px;
  color: var(--muted);
}
.search-input input {
  padding-left: 39px;
}
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 22px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
}
.week-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  overflow: hidden;
}
.week-day {
  min-height: 350px;
  border-right: 1px solid var(--border);
  padding: 10px;
  background: var(--panel2);
}
.week-day:last-child {
  border: 0;
}
.week-day.today {
  background: #1c1e22;
}
.week-label {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  padding: 8px 3px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
}
.week-label b {
  font-size: 19px;
  font-weight: 550;
  color: var(--text);
}
.week-day.today .week-label b {
  color: var(--gold);
}
.calendar-job {
  width: 100%;
  display: block;
  text-align: left;
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--border);
  border-left: 2px solid var(--gold);
  border-radius: 6px;
  padding: 10px;
  margin-bottom: 9px;
  min-height: 86px;
}
.calendar-job strong {
  display: block;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.calendar-job span {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
}
.calendar-job.done {
  border-left-color: var(--green);
  opacity: 0.75;
}
.week-total {
  font-size: 10px;
  color: var(--muted);
  padding: 10px 2px;
}
.blocked {
  border: 1px dashed #785d36;
  background: var(--gold-soft);
  padding: 8px;
  font-size: 10px;
  color: #dac38d;
  border-radius: 5px;
  margin-bottom: 10px;
}
.field {
  margin-bottom: 18px;
  min-width: 0;
}
.field label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: #d2d8e1;
  margin-bottom: 7px;
}
.field input,
.field select,
.field textarea,
input.control,
select.control {
  width: 100%;
  background: #11151b;
  border: 1px solid #353c48;
  color: var(--text);
  border-radius: 7px;
  padding: 10px 12px;
  min-height: 42px;
  font-size: 14px;
}
.field textarea {
  min-height: 90px;
  resize: vertical;
}
.field small {
  color: var(--muted);
  display: block;
  margin-top: 6px;
  font-size: 11px;
}
.field input:disabled {
  opacity: 0.65;
}
.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}
.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 14px;
}
.full {
  grid-column: 1/-1;
}
.checkbox {
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
  margin: 10px 0;
}
.checkbox input {
  accent-color: var(--gold);
  width: 16px;
  height: 16px;
  margin: 0;
  flex-shrink: 0;
}
.checkgroup {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.checkgroup .checkbox {
  margin: 0;
}
.password-toggle {
  margin-top: -7px;
  margin-bottom: 20px;
}
.help {
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 10px 12px;
  margin-bottom: 18px;
}
.help summary {
  cursor: pointer;
  color: var(--text);
}
.help p {
  margin-top: 8px;
}
.permission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 18px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin: 12px 0 20px;
}
.permission-grid .checkbox {
  margin: 0;
}
.settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
}
.settings-grid .panel-head {
  align-items: start;
}
.account-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.account-head .avatar {
  width: 48px;
  height: 48px;
  font-size: 16px;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 18px 0;
}
.detail-label {
  font-size: 10px;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 5px;
}
.detail-value {
  font-size: 14px;
  overflow-wrap: anywhere;
}
.preserve {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.tabs {
  display: flex;
  gap: 7px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
  padding-bottom: 12px;
}
.tabs button {
  padding: 8px 14px;
  color: var(--muted);
  background: none;
  border: 0;
  border-radius: 6px;
  font-size: 13px;
}
.tabs button.active {
  background: var(--gold-soft);
  color: var(--gold);
}
dialog {
  color: var(--text);
  width: min(680px, calc(100% - 28px));
  max-height: calc(100dvh - 40px);
  padding: 0;
  background: var(--panel);
  border: 1px solid #414752;
  border-radius: 14px;
  box-shadow: 0 30px 120px #0009;
  overflow: auto;
}
dialog::backdrop {
  background: rgba(4, 7, 11, 0.78);
  backdrop-filter: blur(3px);
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 24px;
  border-bottom: 1px solid var(--border);
  gap: 15px;
  background: var(--panel);
  position: sticky;
  top: 0;
  z-index: 2;
}
.modal-head h2 {
  font-size: 19px;
}
.modal-body {
  padding: 24px;
}
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--border);
  padding: 18px 24px;
  position: sticky;
  bottom: 0;
  background: var(--panel);
  flex-wrap: wrap;
}
.modal-body .actions {
  margin-top: 16px;
}
.form-error {
  color: var(--red);
  font-size: 13px;
  margin-bottom: 15px;
}
.form-error:empty {
  display: none;
}
.secret {
  font:
    16px ui-monospace,
    monospace;
  letter-spacing: 2px;
  overflow-wrap: anywhere;
  padding: 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin: 14px 0;
}
.recovery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  font:
    14px ui-monospace,
    monospace;
  padding: 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin: 15px 0;
}
#toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: min(440px, calc(100vw - 48px));
  background: #242b32;
  border: 1px solid #46504f;
  box-shadow: 0 10px 40px #0006;
  color: var(--text);
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 13px;
  z-index: 100;
  opacity: 0;
  transform: translateY(15px);
  pointer-events: none;
  transition: 0.2s;
}
#toast.visible {
  opacity: 1;
  transform: translateY(0);
}
.auth-layout {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-story {
  padding: 60px 70px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--border);
  background:
    radial-gradient(
      ellipse at 20% 75%,
      rgba(198, 163, 85, 0.08),
      transparent 65%
    ),
    #111419;
}
.auth-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  font-size: 15px;
}
.auth-story h1 {
  font-size: clamp(38px, 4.5vw, 62px);
  line-height: 1.12;
  letter-spacing: -2px;
  max-width: 500px;
  margin: 18px 0;
}
.auth-story p {
  font-size: 15px;
  color: var(--muted);
  max-width: 390px;
  line-height: 1.8;
}
.auth-art {
  margin-top: 36px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 12px;
  max-width: 380px;
  background: rgba(25, 29, 36, 0.6);
}
.auth-art .mini-list li {
  color: var(--muted);
}
.auth-foot {
  font-size: 11px;
  color: #7d8796;
  letter-spacing: 0.5px;
  margin-top: 45px;
}
.auth-form-wrap {
  display: grid;
  place-items: center;
  padding: 55px 35px;
}
.auth-form {
  width: 100%;
  max-width: 390px;
}
.auth-form h2 {
  font-size: 26px;
  letter-spacing: -0.7px;
  margin-bottom: 8px;
}
.auth-form > p {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 30px;
}
.auth-form .btn.primary {
  width: 100%;
  margin-top: 5px;
  min-height: 45px;
}
.auth-links {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 12px;
  margin-top: 24px;
}
.auth-subtitle {
  font-size: 11px;
  color: var(--muted);
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.section-gap {
  margin-top: 24px;
}
.check-select {
  width: 16px;
  height: 16px;
  accent-color: var(--gold);
}
.loading {
  padding: 70px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
.subtle-rule {
  width: 32px;
  height: 2px;
  background: var(--gold);
  margin-bottom: 20px;
}
.mobile-only {
  display: none;
}
.row-checkbox {
  display: flex;
  align-items: center;
  justify-content: center;
}
.report-table {
  min-width: 850px;
}
.text-right {
  text-align: right;
}
.no-wrap {
  white-space: nowrap;
}
@media (min-width: 1600px) {
  .content {
    padding-top: 44px;
  }
  .job-row {
    padding-top: 24px;
    padding-bottom: 24px;
  }
}
@media (max-width: 1100px) {
  .content {
    padding: 28px 24px;
  }
  .topbar {
    padding: 0 24px;
  }
  .day-layout {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 16px;
  }
  .job-row {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 12px;
    padding: 18px;
  }
  .job-actions {
    grid-column: 2;
  }
  .stat {
    padding: 17px;
  }
  .auth-story {
    padding: 45px;
  }
  .week-grid {
    grid-template-columns: repeat(7, minmax(145px, 1fr));
    overflow: auto;
  }
  .panel:has(.week-grid) {
    overflow: auto;
  }
  .top-right .connection {
    display: none;
  }
}
@media (max-width: 850px) {
  .day-layout {
    grid-template-columns: 1fr;
  }
  .day-layout > .stack {
    grid-template-columns: 1fr 1fr;
  }
  .auth-story {
    display: none;
  }
  .auth-layout {
    grid-template-columns: 1fr;
  }
  .auth-form-wrap {
    padding: 50px 25px;
  }
  .auth-form .mobile-only {
    display: flex;
    margin-bottom: 35px;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .wordmark .small {
    display: none;
  }
  .page-heading {
    align-items: flex-start;
  }
  .heading-actions {
    justify-content: flex-end;
  }
  .stats {
    gap: 12px;
  }
  .stat .value {
    font-size: 25px;
  }
}
@media (max-width: 650px) {
  h1 {
    font-size: 26px;
  }
  .rail {
    inset: auto 0 0;
    width: 100%;
    height: 70px;
    padding: 5px 10px calc(5px + env(safe-area-inset-bottom));
    border: 0;
    border-top: 1px solid var(--border);
    flex-direction: row;
    gap: 0;
    justify-content: center;
    background: #12151af5;
    backdrop-filter: blur(10px);
  }
  .rail > .brand-mark,
  .rail-bottom {
    display: none !important;
  }
  .rail-nav {
    flex-direction: row;
    gap: 2px;
    justify-content: space-around;
    margin: 0;
  }
  .rail button {
    width: 100%;
    height: 52px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-radius: 7px;
  }
  .rail .icon {
    width: 19px;
    height: 19px;
  }
  .rail-label {
    position: static;
    opacity: 1;
    font-size: 9px;
    border: 0;
    background: none;
    padding: 0;
  }
  .rail button.active:before {
    display: none;
  }
  .workspace {
    margin-left: 0;
    padding-bottom: 70px;
  }
  .topbar {
    height: 68px;
    padding: 0 18px;
  }
  .top-right {
    gap: 10px;
  }
  .profile .profile-name {
    display: none;
  }
  .profile .avatar {
    width: 31px;
    height: 31px;
  }
  .wordmark {
    font-size: 17px;
  }
  .content {
    padding: 25px 16px 30px;
  }
  .page-heading {
    flex-direction: column;
    gap: 18px;
    margin-bottom: 22px;
  }
  .heading-actions {
    justify-content: flex-start;
    width: 100%;
  }
  .heading-actions .btn {
    flex: 1;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
    margin-bottom: 22px;
    gap: 10px;
  }
  .stat {
    padding: 16px;
  }
  .stat .label {
    font-size: 11px;
  }
  .stat .value {
    font-size: 27px;
  }
  .day-layout > .stack {
    grid-template-columns: 1fr;
  }
  .panel-head {
    padding: 17px;
    flex-wrap: wrap;
  }
  .panel-head h2 {
    font-size: 17px;
  }
  .panel-body {
    padding: 18px;
  }
  .job-row {
    padding: 18px 16px;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 12px;
  }
  .job-index {
    width: 28px;
    height: 28px;
    font-size: 11px;
  }
  .job-row.running {
    padding-left: 13px;
  }
  .job-title button {
    font-size: 14px;
  }
  .job-title {
    gap: 7px;
  }
  .job-actions {
    margin-top: 3px;
    flex-wrap: wrap;
  }
  .job-address {
    align-items: flex-start;
    font-size: 11px;
  }
  .job-address .icon {
    margin-top: 2px;
  }
  .job-meta {
    gap: 9px;
  }
  .day-toolbar {
    width: 100%;
    justify-content: space-between;
  }
  .day-toolbar input {
    flex: 1;
    max-width: none;
  }
  .grid2,
  .grid3 {
    grid-template-columns: 1fr;
  }
  .permission-grid {
    grid-template-columns: 1fr;
  }
  .detail-grid {
    gap: 15px;
  }
  .filters {
    gap: 10px;
  }
  .filters > .field {
    flex: 1;
    min-width: 130px;
  }
  .filters .btn {
    min-height: 42px;
  }
  .pagination {
    padding: 14px 16px;
  }
  .modal-head {
    padding: 18px;
  }
  .modal-body {
    padding: 20px 18px;
  }
  .modal-footer {
    padding: 15px 18px;
  }
  .auth-form-wrap {
    padding: 35px 24px;
  }
  .auth-form h2 {
    font-size: 25px;
  }
  #toast {
    bottom: 86px;
    right: 16px;
    max-width: calc(100vw - 32px);
  }
  .tabs {
    overflow-x: auto;
    white-space: nowrap;
  }
  .week-grid {
    display: block;
    overflow: visible;
  }
  .week-day {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--border);
    padding: 12px 17px;
  }
  .week-label {
    padding: 4px 0 10px;
    justify-content: flex-start;
    gap: 12px;
  }
  .calendar-job {
    min-height: 0;
    padding: 11px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4px;
  }
  .calendar-job strong {
    font-size: 13px;
  }
  .calendar-job span {
    margin: 0;
  }
  .week-total {
    padding: 3px 0 8px;
  }
  .mobile-only {
    display: block;
  }
  .table-wrap {
    max-width: 100%;
  }
  .topbar .btn {
    padding: 7px;
    min-height: 32px;
  }
  .recovery {
    font-size: 12px;
  }
  .checkgroup {
    gap: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
