.task-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:18px; }
.task-card { min-width:0; }
.task-card-heading { display:flex;justify-content:space-between;gap:12px;align-items:center; }
.task-card details,.duplicate-card details { border-top:1px solid var(--color-border);margin-top:20px;padding-top:16px; }
.task-card summary,.duplicate-card summary,.assignment-panel summary { cursor:pointer;font-weight:600;color:var(--color-accent); }
.task-card details form,.duplicate-card details form,.assignment-panel form { margin-top:16px; }
.task-card .actions form { flex:1; }
.task-card .actions button { width:100%;min-height:46px; }
.task-card input[type=file],.duplicate-card input[type=file] { max-width:100%;font-size:12px; }
.assignment-panel,.duplicate-card { margin-bottom:20px; }
@media(max-width:640px){.task-grid{grid-template-columns:minmax(0,1fr)}.task-card{padding:18px}.task-card .actions{align-items:stretch}.task-card .actions form{min-width:130px}}
:root {
  --color-bg: #faf9f6;
  --color-surface: #f2f0eb;
  --color-surface-strong: #e9e7e1;
  --color-text: #111111;
  --color-muted: #555555;
  --color-subtle: #77736b;
  --color-border: #dcdad4;
  --color-border-strong: #111111;
  --color-accent: #1a3a2a;
  --color-accent-hover: #28563e;
  --color-danger: #a51d2d;
  --color-warning: #9a5d00;
  --color-success: #1a684c;
  --font-sans:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --container-max: 1180px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --radius: 2px;
  --shadow: 0 16px 40px rgba(17, 17, 17, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font: 16px/1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
body:has(dialog[open]) {
  overflow: hidden;
}
a {
  color: var(--color-accent);
  text-decoration: none;
}
a:hover {
  color: var(--color-accent-hover);
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea,
summary {
  outline-offset: 3px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--color-accent);
}

.shell {
  width: min(100% - 48px, var(--container-max));
  margin: 0 auto;
  padding: 28px 0 72px;
}
.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-6);
  padding: 0 0 24px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 32px;
}
.brand {
  color: var(--color-muted);
  font: 12px/1.2 var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.topbar h1 {
  margin: 12px 0 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 600;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}
.nav a {
  color: var(--color-text);
  padding: 8px 10px;
  font-size: 13px;
  border-bottom: 1px solid transparent;
}
.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.demo-banner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 32px;
  padding: 5px 16px;
  background: var(--color-accent);
  color: #fff;
  font: 11px/1.2 var(--font-mono);
}
.demo-banner .button {
  min-height: 24px;
  padding: 3px 8px;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}
.inline {
  display: inline;
}

.section-title,
.eyebrow,
label,
th {
  color: var(--color-muted);
  font: 11px/1.3 var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.section-title {
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
  margin: 40px 0 16px;
}
.compact-title {
  padding: 0;
  border: 0;
  margin: 0 0 8px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--space-4);
}
.span-3 {
  grid-column: span 3;
}
.span-4 {
  grid-column: span 4;
}
.span-6 {
  grid-column: span 6;
}
.span-8 {
  grid-column: span 8;
}
.span-12 {
  grid-column: span 12;
}
.kpi,
.panel,
.card,
.detail-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}
.kpi,
.panel,
.card {
  padding: var(--space-5);
}
.kpi strong {
  display: block;
  margin-top: 12px;
  font-size: 34px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.04em;
}
.kpi small {
  color: var(--color-muted);
  font-size: 13px;
  letter-spacing: 0;
}
.muted {
  color: var(--color-muted);
}
.red,
.danger {
  color: var(--color-danger);
}
.orange {
  color: var(--color-warning);
}
.green {
  color: var(--color-success);
}
.blue {
  color: var(--color-accent);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid var(--color-accent);
  border-radius: var(--radius);
  background: transparent;
  color: var(--color-accent);
  cursor: pointer;
  font-size: 13px;
  line-height: 1.2;
  text-decoration: none;
  transition:
    background 0.15s,
    color 0.15s,
    border-color 0.15s;
}
.button:hover {
  background: var(--color-accent);
  color: #fff;
}
.button.primary,
.button.success {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}
.button.primary:hover,
.button.success:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
}
.button.danger {
  border-color: var(--color-danger);
  color: var(--color-danger);
}
.button.danger:hover {
  background: var(--color-danger);
  color: #fff;
}
.button.small {
  min-height: 32px;
  padding: 6px 9px;
  font-size: 12px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
}
table {
  width: 100%;
  border-collapse: collapse;
}
th,
td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--color-border);
}
th {
  background: var(--color-surface);
  font-weight: 500;
  white-space: nowrap;
}
td {
  font-size: 14px;
  overflow-wrap: anywhere;
}
tr:last-child td {
  border-bottom: 0;
}
.clickable-row {
  cursor: pointer;
}
.clickable-row:hover {
  background: var(--color-surface);
}

form {
  display: grid;
  gap: var(--space-4);
}
.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}
.form-row.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
  color: var(--color-text);
}
textarea {
  min-height: 92px;
  resize: vertical;
}
input::placeholder,
textarea::placeholder {
  color: var(--color-subtle);
}
select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--color-accent) 50%),
    linear-gradient(135deg, var(--color-accent) 50%, transparent 50%);
  background-position:
    calc(100% - 16px) 18px,
    calc(100% - 11px) 18px;
  background-size:
    5px 5px,
    5px 5px;
  background-repeat: no-repeat;
  padding-right: 32px;
}
label {
  display: block;
}
.check {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text);
  font: 14px/1.4 var(--font-sans);
  letter-spacing: 0;
  text-transform: none;
}
.check input {
  width: 18px;
  min-height: 18px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font: 11px/1.2 var(--font-mono);
  white-space: nowrap;
}
.badge-critical {
  color: var(--color-danger);
}
.badge-high {
  color: var(--color-warning);
}
.badge-low,
.badge-run {
  color: var(--color-success);
}
.badge-stop {
  color: var(--color-danger);
}
.badge-maint {
  color: var(--color-warning);
}
.alert,
.error {
  padding: 14px 16px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}
.alert {
  border-left: 3px solid var(--color-success);
}
.error {
  border-left: 3px solid var(--color-danger);
  color: var(--color-danger);
}
.empty {
  min-height: 120px;
  display: grid;
  place-items: center;
  padding: 32px;
  text-align: center;
  color: var(--color-muted);
}
.searchbar,
.list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.filter-form {
  display: grid;
  grid-template-columns: minmax(200px, 1.5fr) repeat(3, minmax(130px, 1fr));
  align-items: center;
  gap: 8px;
  flex: 1;
}
.compact {
  white-space: nowrap;
  margin: 0;
}

.detail-card {
  margin-top: 24px;
  padding: 24px;
}
.detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.detail-header h2 {
  margin: 0 0 8px;
  font-size: 28px;
  letter-spacing: -0.03em;
}
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0 -24px 20px;
  padding: 0 24px;
  border-bottom: 1px solid var(--color-border);
}
.tab {
  padding: 12px 14px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--color-muted);
  cursor: pointer;
  font: 12px var(--font-mono);
  text-transform: uppercase;
}
.tab.active,
.tab:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
}
.tab-panel {
  display: none;
}
.tab-panel.active {
  display: block;
}
.definition-list {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 10px;
  margin: 0;
}
.definition-list dt {
  color: var(--color-muted);
  font: 11px var(--font-mono);
  text-transform: uppercase;
}
.definition-list dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.inline-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.inline-form > * {
  flex: 1;
  min-width: 120px;
}
.row-more {
  margin-top: 10px;
}
.row-more summary {
  padding: 6px 0;
  cursor: pointer;
  color: var(--color-muted);
  font: 11px var(--font-mono);
  text-transform: uppercase;
}

dialog.drawer {
  width: min(560px, calc(100% - 24px));
  max-height: calc(100vh - 24px);
  margin: 12px 0 12px auto;
  padding: 24px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
  color: var(--color-text);
  box-shadow: var(--shadow);
  overflow: auto;
}
dialog.drawer::backdrop {
  background: rgba(17, 17, 17, 0.32);
}
dialog.drawer form {
  min-height: calc(100vh - 72px);
  align-content: start;
}
dialog.drawer .actions:last-child {
  position: sticky;
  bottom: -24px;
  margin: auto -24px -24px;
  padding: 16px 24px;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg);
}
.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
}
.login-card {
  width: min(100% - 32px, 480px);
  padding: 40px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  box-shadow: var(--shadow);
}
.login-card h1 {
  margin: 24px 0 16px;
  font-size: 54px;
  line-height: 0.95;
  letter-spacing: -0.05em;
}
.qr {
  max-width: 320px;
  margin: 24px 0;
  padding: 16px;
  background: #fff;
}
.qr img {
  display: block;
  width: 100%;
}
.print-only {
  display: none;
}
.stepper {
  display: flex;
  gap: 6px;
  margin: 8px 0 18px;
}
.stepper span {
  flex: 1;
  padding: 8px;
  border-bottom: 2px solid var(--color-border);
  color: var(--color-muted);
  font: 11px var(--font-mono);
  text-align: center;
}
.stepper span.active {
  border-color: var(--color-accent);
  color: var(--color-accent);
}
.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  max-width: 360px;
  padding: 12px 16px;
  border: 1px solid var(--color-accent);
  background: var(--color-accent);
  color: #fff;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: 0.2s ease;
}
.toast.visible {
  opacity: 1;
  transform: translateY(0);
}
.operator-shell {
  max-width: 720px;
}
.operator-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--color-border);
}
.operator-intro {
  padding: 48px 0 28px;
}
.operator-intro h1,
.success-screen h1 {
  margin: 8px 0;
  font-size: clamp(36px, 8vw, 64px);
  line-height: 1;
  letter-spacing: -0.05em;
}
.operator-form {
  gap: 24px;
}
.operator-form fieldset {
  display: grid;
  gap: 14px;
  padding: 0;
  border: 0;
}
.operator-form legend {
  margin-bottom: 2px;
  font-size: 19px;
  font-weight: 600;
}
.choice-grid,
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.choice-grid input,
.category-grid input {
  position: absolute;
  opacity: 0;
}
.choice-grid label,
.category-grid label {
  min-height: 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 14px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  cursor: pointer;
  font: 14px var(--font-sans);
  letter-spacing: 0;
  text-transform: none;
}
.choice-grid label small {
  color: var(--color-muted);
  font-size: 12px;
}
.choice-grid input:checked + label,
.category-grid label:has(input:checked) {
  border-color: var(--color-accent);
  box-shadow: inset 0 0 0 1px var(--color-accent);
}
.upload-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px dashed var(--color-accent);
  color: var(--color-accent);
  cursor: pointer;
  font: 13px var(--font-sans);
  letter-spacing: 0;
  text-transform: none;
}
.upload-button input {
  display: none;
}
.submit-report {
  width: 100%;
  min-height: 52px;
  font-size: 15px;
}
.success-screen {
  display: grid;
  gap: 16px;
  padding: 64px 0;
}
.calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--color-border);
  background: var(--color-border);
}
.calendar-day {
  min-height: 100px;
  padding: 8px;
  background: var(--color-bg);
}
.calendar-day.today {
  box-shadow: inset 0 0 0 2px var(--color-accent);
}
.calendar-day small {
  font: 11px var(--font-mono);
  color: var(--color-muted);
}
.calendar-task {
  display: block;
  margin-top: 6px;
  padding: 4px;
  background: var(--color-surface);
  font-size: 11px;
  overflow-wrap: anywhere;
}
@media (max-width: 900px) {
  .topbar {
    display: block;
  }
  .nav {
    justify-content: flex-start;
    margin-top: 20px;
  }
  .filter-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .filter-form input {
    grid-column: 1 / -1;
  }
  .span-3,
  .span-4,
  .span-6,
  .span-8 {
    grid-column: span 12;
  }
}
@media (max-width: 640px) {
  .shell {
    width: min(100% - 32px, var(--container-max));
    padding-top: 20px;
  }
  .topbar h1 {
    font-size: 36px;
  }
  .demo-banner {
    justify-content: flex-start;
  }
  .list-toolbar,
  .searchbar {
    display: block;
  }
  .list-toolbar > .button,
  .list-toolbar > .actions {
    margin-top: 12px;
  }
  .filter-form {
    grid-template-columns: 1fr;
    margin-bottom: 12px;
  }
  .filter-form input {
    grid-column: auto;
  }
  .form-row,
  .form-row.three {
    grid-template-columns: 1fr;
  }
  .table-wrap {
    border: 0;
    overflow: visible;
  }
  table,
  thead,
  tbody,
  tr,
  td {
    display: block;
  }
  thead {
    display: none;
  }
  tr {
    margin-bottom: 12px;
    padding: 4px;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
  }
  td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--color-border);
  }
  td:last-child {
    border-bottom: 0;
  }
  td::before {
    display: block;
    margin-bottom: 4px;
    color: var(--color-muted);
    content: attr(data-label);
    font: 10px var(--font-mono);
    text-transform: uppercase;
  }
  .detail-card {
    padding: 16px;
  }
  .tabs {
    margin-left: -16px;
    margin-right: -16px;
    padding-left: 16px;
    padding-right: 16px;
    overflow-x: auto;
    flex-wrap: nowrap;
  }
  .definition-list {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .definition-list dd {
    margin-bottom: 10px;
  }
  dialog.drawer {
    width: calc(100% - 12px);
    margin: 6px 0 6px auto;
    padding: 18px;
  }
  dialog.drawer .actions:last-child {
    margin: auto -18px -18px;
    padding: 14px 18px;
  }
}
@media print {
  body {
    background: #fff;
    color: #000;
  }
  .no-print,
  .demo-banner,
  .nav {
    display: none !important;
  }
  .print-only {
    display: block;
  }
}

/* TagLog workspace */
:root {
  --color-bg: #f5f7fa;
  --color-surface: #fff;
  --color-surface-strong: #ecf1f5;
  --color-text: #192c3d;
  --color-muted: #627387;
  --color-border: #e2e8ef;
  --color-accent: #147766;
  --color-accent-hover: #0d5e50;
  --radius: 12px;
  --container-max: 1440px;
  --font-sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: var(--font-sans);
}
body {
  font-size: 14px;
  line-height: 1.6;
}
h1,
h2,
h3 {
  color: #192c3d;
}
h2 {
  font-size: 19px;
  letter-spacing: -0.03em;
  margin: 5px 0 16px;
}
.workspace {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 242px;
  background: #112b36;
  color: #bdced5;
  padding: 34px 18px 20px;
  display: flex;
  flex-direction: column;
  z-index: 10;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 30px;
  font-weight: 750;
  letter-spacing: -1.4px;
  color: white;
  padding: 0 12px;
}
.logo:hover {
  color: #bcf4dd;
}
.logo-dot {
  font-size: 12px;
  align-self: flex-start;
  margin: 7px 0 0 -5px;
}
.logo-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 36px;
  background: #b9efd6;
  color: #102e36;
  border-radius: 9px;
  font-size: 29px;
  font-weight: 800;
  position: relative;
}
.logo-mark span {
  font-size: 17px;
  position: absolute;
  right: 3px;
  top: 0;
}
.workspace-label {
  font-size: 10px;
  letter-spacing: 1.4px;
  padding: 36px 12px 20px;
  color: #85a1ac;
}
.workspace-label > span {
  display: block;
  font-size: 12px;
  letter-spacing: 0;
  color: #c2d0d6;
  margin-top: 4px;
}
.sidebar .nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  justify-content: start;
}
.sidebar .nav a {
  border: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #bacbd2;
  font-size: 13px;
  padding: 12px 14px;
  border-radius: 8px;
  min-height: 46px;
}
.sidebar .nav a > span {
  font-size: 21px;
  width: 23px;
  text-align: center;
  line-height: 1;
}
.sidebar .nav a:hover {
  background: #1c3b47;
  color: #fff;
}
.sidebar .nav a[aria-current] {
  background: #b9efd6;
  color: #123b37;
  font-weight: 650;
}
.nav i {
  width: 5px;
  height: 5px;
  background: currentColor;
  border-radius: 50%;
  margin-left: auto;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 32px 10px 0;
}
.sidebar-note {
  border: 1px solid #31505a;
  border-radius: 10px;
  padding: 14px;
  font-size: 11px;
}
.sidebar-note p {
  color: #8faab4;
  margin: 8px 0 0;
}
.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #32a88b;
  margin-right: 6px;
}
.profile {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  font-size: 12px;
  color: #e4edf0;
}
.profile small {
  display: block;
  color: #8faab4;
  font-size: 10px;
}
.avatar {
  background: #294653;
  border-radius: 50%;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #b9efd6;
  font-size: 11px;
}
.logout {
  border: 0;
  background: transparent;
  color: #91adb9;
  text-align: left;
  font-size: 11px;
  cursor: pointer;
  padding: 12px 0 0;
}
.workspace-main {
  margin-left: 242px;
  width: calc(100% - 242px);
  min-width: 0;
}
.workspace-bar {
  height: 66px;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
  font-size: 12px;
}
.environment-pill {
  background: #f0f8f3;
  color: #34745b;
  border: 1px solid #dceee2;
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 11px;
}
.workspace .shell {
  width: 100%;
  padding: 30px 36px 20px;
  max-width: 1440px;
}
.workspace .topbar {
  align-items: center;
  margin: 0 0 10px;
  padding: 0;
  border: 0;
}
.topbar .brand {
  font-size: 10px;
  letter-spacing: 1.6px;
  color: #7c8b9b;
}
.workspace .topbar h1 {
  font-size: 32px;
  line-height: 1.3;
  margin: 6px 0;
  letter-spacing: -1.2px;
  font-weight: 700;
}
.button {
  font-weight: 600;
  border-radius: 7px;
  min-height: 42px;
  padding: 10px 16px;
  border-color: #cdd8e2;
  color: #314c60;
  background: #fff;
}
.button.primary,
.button.success {
  color: white;
  border-color: var(--color-accent);
  background: var(--color-accent);
  box-shadow: 0 3px 6px #14776616;
}
.button:hover {
  border-color: var(--color-accent);
}
.button.small {
  border-radius: 6px;
}
.text-link {
  font-size: 12px;
  font-weight: 650;
  color: var(--color-accent);
  white-space: nowrap;
}
.text-link:hover {
  text-decoration: underline;
}
.page-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 8px 0 24px;
}
.page-intro p {
  margin: 0;
  font-size: 13px;
}
.demo-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: #758494;
  margin: 8px 0 20px;
}
.demo-notice .badge {
  font-size: 9px;
  min-height: 20px;
  border-color: #d6dfe6;
  color: #6e8091;
}
.text-button {
  border: 0;
  background: none;
  color: var(--color-accent);
  text-decoration: underline;
  font-size: 11px;
  cursor: pointer;
}
.eyebrow,
th,
label,
.section-title {
  font-size: 11px;
  letter-spacing: 0.02em;
}
.eyebrow {
  font-weight: 500;
  text-transform: none;
}
.grid {
  gap: 18px;
}
.kpi,
.panel,
.card {
  box-shadow: 0 2px 4px #18394e03;
}
.kpi {
  padding: 22px;
  position: relative;
  min-width: 0;
}
.kpi strong {
  font-size: 34px;
  margin: 15px 0 9px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.kpi small {
  font-weight: 400;
}
.kpi p {
  font-size: 11px;
  color: #7d8b99;
  margin: 8px 0 0;
}
.metric-icon {
  float: right;
  color: #8ca49e;
  font-size: 17px;
}
.kpi-accent {
  background: #163c3d;
  border-color: #163c3d;
  color: #fff;
}
.kpi-accent .eyebrow,
.kpi-accent p,
.kpi-accent .metric-icon {
  color: #bed9d2;
}
.metrics-period {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 20px;
  font-size: 12px;
  gap: 15px;
}
.metrics-period .inline-form {
  flex-wrap: nowrap;
}
.metrics-period .inline-form > * {
  min-width: 0;
  flex: initial;
}
.metrics-period label {
  white-space: nowrap;
  text-transform: none;
}
.metrics-period select {
  width: 150px;
  min-height: 38px;
  font-size: 12px;
}
.metrics-period button {
  font-size: 12px;
  min-height: 38px;
}
.analytics-grid {
  margin-top: 22px;
}
.chart-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.chart-heading h2 {
  margin-bottom: 0;
}
.chart-heading .eyebrow,
.section-heading .eyebrow {
  font-size: 9px;
  letter-spacing: 1.4px;
  color: #81909e;
}
.chart-legend {
  display: flex;
  gap: 14px;
  font-size: 10px;
  color: #70818f;
}
.chart-legend i {
  display: inline-block;
  background: #1c806d;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  margin-right: 3px;
}
.chart-legend i.closed {
  background: #b9dfd3;
}
.chart-subtitle {
  font-size: 11px;
  margin-top: 10px;
}
.bar-chart {
  height: 195px;
  display: flex;
  align-items: stretch;
  gap: 4px;
  border-bottom: 1px solid #e4eaf0;
  margin-top: 26px;
  background: repeating-linear-gradient(
    to top,
    transparent 0,
    transparent 47px,
    #eff3f7 48px,
    #eff3f7 49px
  );
}
.bar-group {
  flex: 1;
  min-width: 0;
  position: relative;
}
.bar-pair {
  height: 100%;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  justify-content: center;
}
.bar {
  height: var(--bar-height);
  width: 45%;
  max-width: 22px;
  background: #1c806d;
  border-radius: 3px 3px 0 0;
  min-height: 0;
}
.bar.closed {
  background: #b9dfd3;
}
.bar-group > span {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  font-size: 9px;
  color: #81909e;
  white-space: nowrap;
}
.bar-group:last-child > span {
  left: auto;
  right: 0;
}
.chart-data {
  margin-top: 40px;
  font-size: 11px;
  color: #758494;
}
.chart-data summary {
  cursor: pointer;
}
.cost-item {
  margin: 24px 0;
}
.cost-item > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
}
.cost-item strong {
  font-size: 12px;
}
.cost-item small {
  font-size: 10px;
  font-weight: 400;
}
.progress-track {
  height: 6px;
  border-radius: 6px;
  background: #edf3f2;
  margin-top: 12px;
  overflow: hidden;
}
.progress-track span {
  display: block;
  background: #278772;
  height: 100%;
  border-radius: 6px;
}
.cost-item:nth-of-type(3) .progress-track span {
  background: #70b8a7;
}
.cost-item:nth-of-type(4) .progress-track span {
  background: #aed3c8;
}
.empty-note {
  font-size: 11px;
  color: #80909b;
  border-top: 1px solid #edf1f4;
  padding-top: 16px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 30px 0 14px;
  gap: 14px;
}
.section-heading h2 {
  margin-bottom: 0;
}
.section-heading > span {
  font-size: 11px;
}
.table-wrap {
  border-radius: 10px;
  background: #fff;
}
th {
  font-size: 10px;
  padding: 13px 18px;
  background: #f0f4f7;
  text-transform: none;
  color: #6f8191;
}
td {
  font-size: 12px;
  padding: 17px 18px;
}
tbody tr:hover {
  background: #fbfcfd;
}
td strong {
  font-weight: 650;
}
.table-wrap td .muted {
  font-size: 11px;
}
.badge {
  font-size: 10px;
  border: 0;
  background: #edf2f6;
  color: #5c7283;
  padding: 5px 9px;
  min-height: 23px;
}
.badge-critical,
.badge-stop {
  background: #fff0ee;
  color: #bd4f47;
}
.badge-high,
.badge-maint {
  background: #fff6e6;
  color: #ae791d;
}
.badge-low,
.badge-run {
  background: #e9f5ef;
  color: #277e59;
}
.tabs {
  gap: 4px;
}
.tab {
  font-size: 12px;
  text-transform: none;
  font-weight: 500;
  white-space: nowrap;
}
.tab.active {
  font-weight: 650;
}
.tab .badge {
  margin-left: 5px;
  font-size: 9px;
}
.filter-form {
  background: #fff;
  border: 1px solid var(--color-border);
  padding: 12px;
  border-radius: 10px;
  grid-template-columns: minmax(180px, 2fr) 1fr 1fr auto auto;
}
.filter-form input,
.filter-form select {
  font-size: 12px;
  min-height: 40px;
  background: #fbfcfd;
}
.filter-form .text-link {
  padding: 8px;
}
.metrics-footnote {
  font-size: 11px;
  color: #81909e;
  padding: 18px 0;
  max-width: 950px;
  line-height: 1.8;
}
.app-footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  color: #92a0ad;
  font-size: 10px;
  border-top: 1px solid var(--color-border);
  padding: 20px 0 0;
  margin: 40px 0 0;
}
.skip-link {
  position: fixed;
  top: -60px;
  left: 20px;
  z-index: 100;
  background: #fff;
  padding: 10px;
}
.skip-link:focus {
  top: 10px;
}
input,
select,
textarea {
  border-radius: 7px;
  font-size: 14px;
  background: #fff;
}
label {
  text-transform: none;
  font-weight: 500;
}
fieldset {
  border: 0;
  padding: 0;
  min-width: 0;
  display: grid;
  gap: 16px;
}
.drawer {
  border-radius: 14px 0 0 14px !important;
}
.drawer .panel {
  background: #f5f8fa;
}
.drawer .actions {
  z-index: 2;
}
.error {
  border-radius: 8px;
  margin: 16px 0;
}
.calendar-weekday {
  text-align: center;
  padding: 8px;
  background: #edf3f5;
  font-size: 11px;
  font-weight: 600;
}
.calendar {
  border-radius: 10px;
  overflow: hidden;
}
.calendar-day {
  min-width: 0;
}
.qr-label {
  background: #fff;
  padding: 24px;
  margin-top: 24px;
  border-radius: 12px;
}
.qr-label .qr {
  margin: 24px auto;
}
.login-shell {
  background: radial-gradient(ellipse at 20% 20%, #dceee7, transparent 60%);
}
.login-card {
  border-radius: 18px;
  background: #fff;
}
.login-card h1 {
  font-size: 44px;
  color: #163c3d;
}
.login-card > a {
  width: 100%;
  margin-top: 16px;
}
.operator-shell {
  max-width: 720px;
}
.operator-intro h1 {
  font-size: 42px;
}
.choice-grid label,
.category-grid label {
  border-radius: 10px;
}
.choice-grid input:focus-visible + label,
.category-grid label:has(input:focus-visible) {
  outline: 3px solid #147766;
  outline-offset: 2px;
}
.upload-button {
  border-radius: 8px;
}
.upload-button input {
  display: block;
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.upload-button:focus-within {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}
@media (min-width: 901px) and (max-width: 1200px) {
  .sidebar {
    width: 210px;
  }
  .workspace-main {
    margin-left: 210px;
    width: calc(100% - 210px);
  }
  .workspace .shell {
    padding: 26px 24px;
  }
  .workspace-bar {
    padding: 0 24px;
  }
  .span-3 {
    grid-column: span 6;
  }
  .analytics-grid > .span-8,
  .analytics-grid > .span-4 {
    grid-column: span 12;
  }
  .filter-form {
    grid-template-columns: 2fr 1fr 1fr;
  }
  .filter-form input {
    grid-column: auto;
  }
}
@media (max-width: 900px) {
  .workspace {
    display: block;
  }
  .sidebar {
    position: relative;
    width: 100%;
    padding: 16px 20px;
  }
  .logo {
    font-size: 25px;
    padding: 0;
  }
  .logo-mark {
    height: 30px;
    width: 29px;
  }
  .workspace-label,
  .sidebar-bottom {
    display: none;
  }
  .sidebar .nav {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-top: 14px;
    padding-bottom: 3px;
  }
  .sidebar .nav a {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 9px 12px;
    min-height: 40px;
    font-size: 12px;
  }
  .sidebar .nav a > span {
    font-size: 17px;
    width: auto;
  }
  .workspace-main {
    width: 100%;
    margin: 0;
  }
  .workspace-bar {
    height: 48px;
    padding: 0 22px;
    font-size: 11px;
  }
  .workspace .shell {
    padding: 24px 22px;
  }
  .workspace .topbar {
    display: flex;
  }
  .workspace .topbar h1 {
    font-size: 28px;
  }
  .span-3 {
    grid-column: span 6;
  }
  .analytics-grid > .span-8,
  .analytics-grid > .span-4 {
    grid-column: span 12;
  }
  .filter-form {
    grid-template-columns: 1fr 1fr;
  }
  .filter-form input {
    grid-column: 1/-1;
  }
  .metrics-period {
    flex-wrap: wrap;
  }
  .metrics-period .inline-form {
    width: 100%;
    justify-content: flex-start;
  }
  .metrics-period label {
    flex: initial;
  }
  .kpi strong {
    font-size: 30px;
  }
}
@media (max-width: 640px) {
  .workspace-bar > span:first-child .muted {
    display: none;
  }
  .workspace .shell {
    padding: 20px 16px;
  }
  .workspace .topbar {
    align-items: flex-start;
    gap: 12px;
  }
  .workspace .topbar h1 {
    font-size: 26px;
  }
  .topbar .brand {
    font-size: 8px;
    letter-spacing: 1px;
  }
  .workspace .topbar > .button {
    font-size: 11px;
    padding: 9px 10px;
    min-height: 38px;
    white-space: nowrap;
    margin-top: 17px;
  }
  .page-intro {
    display: block;
  }
  .page-intro .text-link,
  .page-intro > .button {
    display: inline-flex;
    margin-top: 10px;
  }
  .grid {
    gap: 12px;
  }
  .kpi {
    padding: 16px 14px;
  }
  .kpi strong {
    font-size: 27px;
    overflow-wrap: anywhere;
  }
  .kpi .eyebrow {
    font-size: 10px;
  }
  .metric-icon {
    display: none;
  }
  .kpi p {
    font-size: 10px;
  }
  .metrics-period .inline-form {
    flex-wrap: wrap;
  }
  .metrics-period select {
    flex: 1;
    min-width: 120px;
  }
  .metrics-period label {
    flex-basis: 100%;
  }
  .panel {
    padding: 18px;
  }
  .chart-heading {
    flex-wrap: wrap;
  }
  .chart-legend {
    margin-top: 4px;
  }
  .bar-chart {
    height: 160px;
    gap: 2px;
  }
  .chart-data {
    margin-top: 38px;
  }
  .metrics-period {
    font-size: 11px;
  }
  .section-heading > span {
    display: none;
  }
  .table-wrap {
    background: transparent;
    border-radius: 0;
  }
  .table-wrap tr {
    background: #fff;
    border-radius: 10px;
    padding: 8px;
  }
  .table-wrap td {
    padding: 9px 8px;
  }
  .table-wrap td:before {
    font-size: 10px;
    text-transform: none;
  }
  .table-wrap td .button {
    min-height: 40px;
  }
  .filter-form {
    padding: 12px;
    grid-template-columns: 1fr 1fr;
  }
  .filter-form input {
    grid-column: 1/-1;
  }
  .filter-form .button {
    width: 100%;
  }
  .filter-form .text-link {
    text-align: center;
  }
  .list-toolbar .tabs {
    width: 100%;
    overflow: auto;
    flex-wrap: nowrap;
  }
  .list-toolbar .tab {
    padding: 10px 8px;
    font-size: 11px;
  }
  .list-toolbar .tab .badge {
    margin-left: 2px;
    font-size: 8px;
  }
  .app-footer {
    font-size: 9px;
  }
  .app-footer > span:last-child {
    white-space: nowrap;
  }
  .demo-notice {
    font-size: 10px;
    flex-wrap: wrap;
  }
  .calendar-day {
    padding: 5px;
    min-height: 75px;
  }
  .calendar-task {
    font-size: 9px;
  }
  .login-card {
    padding: 28px;
  }
  .login-card h1 {
    font-size: 38px;
  }
  .operator-intro h1 {
    font-size: 34px;
  }
  .toast {
    right: 12px;
    left: 12px;
    bottom: 12px;
    max-width: none;
  }
  .cost-item > div:first-child {
    flex-wrap: wrap;
  }
  .choice-grid,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
@media print {
  .sidebar,
  .workspace-bar,
  .topbar > .button,
  .demo-notice,
  .app-footer,
  .skip-link {
    display: none !important;
  }
  .workspace-main {
    margin: 0;
    width: 100%;
  }
  .workspace .shell {
    padding: 0;
  }
  .qr-label {
    padding: 0;
    border: 0;
  }
  .qr-label .qr {
    margin: 16px auto;
  }
  details:not([open]) {
    display: none;
  }
}
@media (max-width: 900px) {
  .list-toolbar {
    flex-wrap: wrap;
  }
  .list-toolbar > p {
    flex-basis: 100%;
    margin: 0;
  }
  .list-toolbar .actions {
    flex-wrap: wrap;
  }
  .list-toolbar .actions .button {
    flex: 1;
    white-space: nowrap;
  }
}
.workspace .shell > .tabs {
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
}
.mobile-logout {
  display: none;
}
.status-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  margin: 0 0 20px;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  background: #edf4f1;
  border-radius: 8px;
  font-size: 11px;
}
.status-strip > span {
  font-weight: 650;
  color: #34745b;
}
.status-strip a {
  color: #52756c;
}
.demo-credentials {
  font-size: 12px;
  color: #627387;
  padding: 12px 0;
}
.demo-credentials summary {
  cursor: pointer;
  color: #147766;
}
.demo-credentials code {
  font-size: 12px;
}
@media (max-width: 900px) {
  .mobile-logout {
    display: block;
    margin-left: 8px;
  }
  .workspace-bar {
    gap: 10px;
  }
  .workspace-bar > span:first-child {
    margin-right: auto;
  }
}
@media (max-width: 400px) {
  .workspace-bar > span:first-child {
    display: none;
  }
  .environment-pill {
    margin-right: auto;
  }
}
.choice-grid input[type="radio"],
.category-grid input[type="radio"] {
  width: 1px;
  height: 1px;
  min-height: 0;
  padding: 0;
  margin: 0;
}
