:root {
  color-scheme: light;
  --ink: #251f1c;
  --muted: #655d56;
  --canvas: #f5f2ee;
  --surface: #fffefa;
  --line: #eae3d9;
  --soft: #f7f3ee;
  --accent: #963b21;
  --accent-hover: #6e2c19;
  --accent-soft: #ffe9d8;
  --signal: #f4814e;
  --apricot-panel: linear-gradient(145deg, #ffd9a6 3%, #ffb482 56%, #ff956d 100%);
  --warning: #87521e;
  --danger: #a83230;
  --success: #20664f;
  --radius: 19px;
  --control-height: 40px;
  --touch-control-height: 44px;
  --panel-shadow: 0 1px 3px rgb(75 53 33 / 5%);
  --font-ui: "Golos Text", ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  --font-display: "Manrope", ui-sans-serif, system-ui, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; overflow-wrap: anywhere; }
html:has(.app-shell) { scrollbar-gutter: stable; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 14px/1.55 var(--font-ui); }
body:has(.app-shell) {
  --ink: #232421;
  --muted: #5d605c;
  --canvas: #f4f5f2;
  --surface: #fefefd;
  --line: #e2e5df;
  --soft: #f5f6f3;
  --panel-shadow: 0 1px 2px rgb(30 40 35 / 3%);
  --radius: 17px;
}
button, input, select, textarea { font: inherit; }
button, select, summary { cursor: pointer; }
button:disabled { cursor: not-allowed; }
a { color: #354d73; text-underline-offset: .2em; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid #a94725; outline-offset: 3px; }
strong { font-weight: 650; }
h1, h2, h3, p, dl { margin: 0; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; text-wrap: pretty; }
h1 { font-size: clamp(29px, 4vw, 45px); letter-spacing: -.057em; font-weight: 800; }
h2 { font-size: 18px; letter-spacing: -.027em; font-weight: 760; }
h3 { font-size: 16px; letter-spacing: -.023em; font-weight: 760; }
small { font-size: 12px; }
::selection { color: var(--ink); background: #ffdfcc; }

.skip-link {
  position: fixed;
  z-index: 40;
  inset: 8px auto auto 8px;
  padding: 9px 14px;
  background: white;
  border-radius: 7px;
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }
.app-shell { min-height: 100vh; }
.app-nav {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(12px, 1.5vw, 24px);
  min-height: 67px;
  padding: 8px max(24px, calc((100vw - 1400px) / 2));
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 9px;
  padding: 0 7px;
  color: var(--ink);
  text-decoration: none;
  font: 810 20px/1.15 var(--font-display);
  white-space: nowrap;
  letter-spacing: -.055em;
}
.brand:hover { color: var(--ink); }
.brand-mark {
  position: relative;
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(150deg, #ffab79, #ef7445);
  color: #572815;
  border-radius: 11px;
  flex: none;
}
.side-nav {
  display: flex;
  justify-self: center;
  width: max-content;
  max-width: 100%;
  min-width: 0;
  gap: 5px;
  overflow-x: auto;
  scrollbar-width: none;
}
.side-nav a, .side-nav-disabled {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  color: var(--muted);
  border-radius: 99px;
  padding: 8px 13px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
}
.side-nav .side-nav-disabled { color: #888c86; cursor: default; }
.side-nav a:hover { color: var(--ink); background: var(--soft); }
.side-nav a:focus-visible { outline-offset: -3px; }
.side-nav a[aria-current="page"] {
  color: #343e39;
  background: #edf0eb;
}
.workspace { min-width: 0; }
.topbar {
  min-height: 59px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 1488px;
  margin: 0 auto;
  padding: 10px clamp(20px, 3.1vw, 44px) 5px;
}
.workspace-location, .app-nav-actions { display: flex; align-items: center; gap: 10px; min-width: 0; }
.app-nav-actions { grid-column: 3; grid-row: 1; justify-self: end; gap: clamp(9px, 1vw, 15px); }
.notification-bell {
  position: relative;
  display: grid;
  place-items: center;
  inline-size: var(--control-height);
  block-size: var(--control-height);
  flex: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  background: var(--surface);
  text-decoration: none;
}
.notification-bell:hover, .notification-bell[aria-current="page"] { color: var(--ink); background: #edf0eb; }
.notification-badge {
  position: absolute;
  inset-block-start: -6px;
  inset-inline-end: -6px;
  border: 2px solid var(--surface);
}
.notification-badge, .nav-issue-badge, .nav-task-badge {
  display: grid;
  place-items: center;
  min-inline-size: 24px;
  min-block-size: 24px;
  padding-inline: 4px;
  border-radius: 99px;
  background: var(--danger);
  color: white;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.nav-issue-badge, .nav-task-badge { flex: none; }
.nav-task-badge { background: #355343; }
.site-glyph {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex: none;
  color: #734930;
  background: #fff9f1;
}
.workspace-site { display: grid; min-width: 0; }
.workspace-location small { color: var(--muted); font-size: 11px; line-height: 1.15; }
.workspace-location strong { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-date {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  white-space: nowrap;
  color: var(--muted);
  font-size: 12px;
}
.topbar-menu { position: relative; min-width: 0; }
.topbar-menu > summary { display: flex; gap: 8px; align-items: center; list-style: none; padding: 3px 0; color: var(--ink); }
.topbar-menu > summary::-webkit-details-marker, .site-menu-company::-webkit-details-marker { display: none; }
.creation-menu summary {
  justify-content: center;
  width: var(--control-height);
  height: var(--control-height);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
}
.creation-menu summary:hover, .creation-menu[open] summary { background: #edf0eb; }
.creation-menu .icon-plus { transform: scale(1.15); }
.account-menu > summary { min-block-size: var(--control-height); padding-inline: 4px; border-radius: 11px; }
.account-menu > summary:hover, .account-menu[open] > summary { background: #edf0eb; }
.chevron { border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); width: 6px; height: 6px; margin: -3px 4px 0; flex: none; opacity: .65; }
:is(.topbar-menu, .site-menu-group)[open] > summary .chevron { transform: rotate(225deg); margin-top: 3px; }
.avatar { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #ffecdf; color: #8d3d20; font: 750 15px/1 var(--font-display); flex: none; }
.avatar-photo { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.profile-photo-preview { width: 72px; height: 72px; margin-block-end: 16px; font-size: 24px; }
.profile-photo-remove { margin-block-start: 12px; }
.account-name { font-size: 13px; font-weight: 620; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 19ch; }
.menu-list {
  position: absolute;
  z-index: 15;
  top: calc(100% + 9px);
  left: 0;
  min-width: 185px;
  max-width: min(290px, 80vw);
  padding: 5px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 11px;
  box-shadow: 0 12px 28px rgb(23 34 56 / 10%);
}
.account-menu .menu-list, .creation-menu .menu-list { inset-inline: auto 0; }
.creation-menu .menu-list { width: max-content; }
.topbar .site-menu .menu-list { width: max-content; max-width: min(520px, calc(100vw - 66px)); }
.site-menu .menu-list button, .site-menu .menu-list a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-list button, .menu-list a, .menu-identity { display: block; width: 100%; padding: 8px 11px; text-align: left; border: 0; color: var(--ink); text-decoration: none; background: transparent; font-size: 13px; border-radius: 7px; }
.menu-list button:hover, .menu-list a:hover { background: var(--soft); }
.menu-list [data-pwa-install][hidden] { display: none; }
.pwa-install-help { padding: 3px 11px 8px; color: var(--muted); font-size: 13px; }
.menu-list button[aria-current] { color: var(--accent); font-weight: 700; }
.site-menu .menu-list { max-height: min(390px, 55dvh); overflow-y: auto; }
.site-menu .menu-all-sites { border-bottom: 1px solid var(--line); font-weight: 650; }
.site-menu .menu-all-sites[aria-current] { color: var(--accent); }
.menu-identity { color: var(--muted); border-bottom: 1px solid var(--line); }
.site-menu-company {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-block-size: var(--control-height);
  padding: 6px 11px;
  border-radius: 7px;
  list-style: none;
  color: var(--ink);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .035em;
  text-transform: uppercase;
}
.site-menu-company:hover { background: var(--soft); }
.site-menu-company:focus-visible { outline-offset: -3px; }
.site-menu-company-name {
  min-inline-size: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.site-menu-group > form > button { padding-inline-start: 23px; }
.main-content { max-width: 1488px; margin: 0 auto; padding: clamp(16px, 2.3vw, 29px) clamp(20px, 3.1vw, 44px) 54px; min-width: 0; }
.page-header { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.page-header p { color: var(--muted); margin-top: 7px; max-width: 68ch; }
.page-title-stack { min-width: 0; }
.page-header:has(> .page-heading-row) { display: block; }
.page-heading-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.page-heading-row > .page-title-line { flex: 1 1 auto; }
.page-title-line { display: flex; align-items: center; gap: clamp(8px, 1.15vw, 16px); min-inline-size: 0; }
.page-title-line > h1 { min-inline-size: 0; overflow-wrap: anywhere; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; margin-block-start: 7px; color: var(--muted); font-size: 13px; }
.breadcrumbs a { text-decoration: none; }
.actions, .button-row, .inline-actions, .filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.actions form, .inline-actions form { margin: 0; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: var(--control-height); padding: 7px 13px; border: 1px solid var(--line); border-radius: 9px; background: white; color: var(--ink); text-decoration: none; font-weight: 610; font-size: 13px; line-height: 1.3; text-align: center; }
.button:hover { color: var(--ink); background: var(--soft); border-color: #cad2df; }
.button-primary, .btn-primary { border-color: #8d3a20; background: linear-gradient(150deg, #a94f28, #903820); color: #fffdf9; }
.button-primary:hover, .btn-primary:hover { border-color: #72301e; background: #842f1c; color: #fffdf9; }
.button-secondary { background: #fff; }
.page-back-link { flex: none; white-space: nowrap; }
.page-back-link .icon-arrow { rotate: 180deg; }
.page-back-link:dir(rtl) .icon-arrow { rotate: 0deg; }
.button-quiet { border-color: transparent; background: transparent; }
.button-sm { min-height: 32px; padding: 5px 9px; font-size: 13px; }
.button-danger { color: var(--danger); }
.button:disabled { opacity: .5; }
.work-inbox-count {
  min-inline-size: 22px;
  padding: 2px 6px;
  border-radius: 99px;
  background: #edf2ec;
  color: #3c5848;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.text-link { color: var(--accent); font-size: 13px; font-weight: 675; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.muted, .text-muted { color: var(--muted); }
.tabular { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }

.panel { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--panel-shadow); }
.panel + .panel { margin-top: 16px; }
.panel-body, .panel-pad { padding: 18px; }
.panel-header, .section-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 17px 19px; }
.panel-header { border-bottom: 1px solid var(--line); }
.panel-header p, .section-heading p { margin-top: 4px; color: var(--muted); font-size: 13px; }
.section-heading { padding-inline: 0; }
.panel-footer { padding: 12px 18px; border-top: 1px solid var(--line); }
.stack { display: grid; gap: 16px; min-width: 0; }
.stack > .panel + .panel { margin-top: 0; }
.two-columns, .field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px 18px; }
.two-columns > .panel { margin-top: 0; }
.full-width { grid-column: 1 / -1; }
.empty-state { padding: 28px 19px; color: var(--muted); }
.empty-state strong { display: block; color: var(--ink); font-size: 15px; }
.empty-state p, .empty-state .actions { margin-top: 7px; }
.status, .badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 610; color: #465c78; background: #edf2f8; line-height: 1.4; max-width: 100%; vertical-align: middle; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.status-success, .status-active, .status-done, .status-closed, .status-resolved { color: var(--success); background: #e8f3eb; }
.status-warn, .status-warning, .status-upcoming, .status-service, .status-review, .status-unknown, .status-in_progress { color: var(--warning); background: #fff2de; }
.status-danger, .status-overdue, .status-high, .status-critical, .status-open { color: var(--danger); background: #fcece9; }
.status-muted, .status-cancelled, .status-retired, .status-archived { color: #516165; background: #edf0ef; }

.table-wrap { position: relative; max-width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: 12px 14px; border-bottom: 1px solid #edf0f4; vertical-align: middle; }
th { color: #4e5e73; background: #f8f9fb; font-size: 12px; font-weight: 650; white-space: nowrap; }
td { font-size: 13.5px; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #fbfcfe; }
table a { color: #314c73; text-decoration: none; font-weight: 690; }
table a:hover { text-decoration: underline; }
td small, .cell-subtitle { display: block; color: var(--muted); font-size: 12px; }
td.checkbox-col, th.checkbox-col { width: 42px; padding-inline: 14px 5px; }

.field { min-width: 0; display: grid; gap: 5px; align-content: start; }
.field label, .field-title, form > p > label { color: #40516a; font-weight: 655; font-size: 13px; }
.field .helptext, .helptext { display: block; color: var(--muted); font-size: 12px; }
input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]), select, textarea { min-width: 0; min-height: var(--control-height); border: 1px solid #cbd4e1; border-radius: 8px; background: #fff; padding: 7px 10px; color: var(--ink); max-width: 100%; }
.app-shell .field select:not([multiple]), .app-shell .field input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]) {
  box-sizing: border-box;
  block-size: var(--control-height);
  line-height: 1.35;
}
.app-shell select:not([multiple]) {
  appearance: none;
  block-size: var(--control-height);
  padding-inline-end: 32px;
  overflow: hidden;
  overflow-wrap: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
  background-image: linear-gradient(45deg, transparent 47%, var(--muted) 50%, var(--muted) 69%, transparent 72%), linear-gradient(135deg, transparent 30%, var(--muted) 33%, var(--muted) 50%, transparent 53%);
  background-position: right 15px center, right 10px center;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
.app-shell .field input[type="date"] { appearance: none; }
.field input:not([type="checkbox"]):not([type="radio"]), .field select, .field textarea { width: 100%; }
.avatar-file-input {
  font-size: 12px;
  text-overflow: ellipsis;
  cursor: pointer;
}
.avatar-file-input::file-selector-button {
  appearance: none;
  min-block-size: 28px;
  margin-inline-end: 8px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--soft);
  color: var(--ink);
  font: 610 12px/1.3 var(--font-ui);
  cursor: pointer;
}
.avatar-file-input:is(:hover, :focus-visible)::file-selector-button {
  border-color: #cad2df;
  background: #edf0eb;
}
input[type="checkbox"], input[type="radio"] { width: 15px; height: 15px; margin: 0; accent-color: #b0441a; vertical-align: middle; }
textarea { resize: vertical; min-height: 90px; }
form > p + p { margin-top: 10px; }
form > p input, form > p select, form > p textarea { display: block; margin-top: 4px; }
.field-error, .errorlist { color: #961f23; font-size: 13px; }
.errorlist { margin: 2px 0 0; padding-left: 17px; }
.form-actions { margin-top: 18px; }
.messages { display: grid; gap: 7px; margin-bottom: 16px; }
.notice { padding: 10px 13px; border: 1px solid #d4e4e4; background: #eff7f7; border-radius: 5px; color: #2e535b; }
.notice-success { background: #eaf5ec; border-color: #c5ddcc; color: var(--success); }
.notice-error, .notice-danger { background: #fdf0ee; border-color: #edc9c5; color: var(--danger); }
.notice-warning { background: #fff6e6; border-color: #ecd5a6; color: var(--warning); }

.main-content > .messages {
  position: fixed;
  z-index: 35;
  inset: max(12px, calc(env(safe-area-inset-top, 0px) + 7px)) 0 auto;
  width: min(430px, calc(100% - 24px));
  margin: 0 auto;
  justify-items: center;
  pointer-events: none;
}
.main-content > .messages > .notice {
  position: relative;
  max-width: 100%;
  padding: 10px 16px;
  border-radius: 10px;
  background: rgb(247 251 251 / 91%);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 28px rgb(24 31 27 / 12%);
  text-align: center;
  font-weight: 610;
  animation: workspace-flash-in .18s ease-out both;
}
.main-content > .messages > .notice:has(.flash-dismiss:not([hidden])) { padding-inline-end: 40px; }
.flash-dismiss {
  position: absolute;
  inset: 50% 6px auto auto;
  transform: translateY(-50%);
  width: 27px;
  height: 27px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: currentColor;
  font-size: 19px;
  line-height: 1;
  pointer-events: auto;
}
.flash-dismiss:hover { background: rgb(0 0 0 / 5%); }
.main-content > .messages > .notice-success { background: rgb(234 247 237 / 91%); }
.main-content > .messages > :is(.notice-error, .notice-danger) { background: rgb(255 239 236 / 93%); }
.main-content > .messages > .notice-warning { background: rgb(255 246 230 / 93%); }

@keyframes workspace-flash-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 520px) {
  .main-content > .messages { width: min(430px, calc(100% - 20px)); }
  .main-content > .messages > .notice { padding: 9px 13px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .main-content > .messages > .notice { animation: none; }
}

.icon { position: relative; width: 18px; height: 18px; display: inline-block; vertical-align: -.23em; color: inherit; flex: 0 0 18px; }
.icon::before, .icon::after { position: absolute; content: ""; }
.icon-dashboard::before { inset: 2px; border: 1.5px solid currentColor; border-radius: 2px; }
.icon-dashboard::after { inset: 7px 2px 2px 8px; border-top: 1.5px solid currentColor; border-left: 1.5px solid currentColor; }
.icon-plan::before { inset: 2px; border: 1.5px solid currentColor; border-radius: 2px; }
.icon-plan::after { inset: 7px 2px 2px 8px; border-top: 1.5px solid currentColor; border-left: 1.5px solid currentColor; }
.icon-assets::before { inset: 6px 5px 1px; border: 1.5px solid currentColor; border-radius: 4px 4px 2px 2px; }
.icon-assets::after { inset: 2px 3px auto 7px; height: 4px; border-top: 1.5px solid currentColor; border-left: 1.5px solid currentColor; }
.icon-works::before, .icon-calendar::before { inset: 3px 1px 2px; border: 1.5px solid currentColor; border-radius: 2px; }
.icon-works::after, .icon-calendar::after { inset: 7px 2px auto; border-top: 1.5px solid currentColor; }
.icon-bell { width: 20px; height: 20px; }
.icon-issues::before { inset: 2px; border: 1.5px solid currentColor; border-radius: 50%; }
.icon-issues::after {
  inset: 5px 7px auto;
  height: 8px;
  background:
    linear-gradient(currentColor, currentColor) center top / 1.5px 4px no-repeat,
    radial-gradient(circle, currentColor 63%, transparent 71%) center bottom / 2px 2px no-repeat;
}
.icon-docs::before { inset: 1px 3px; border: 1.5px solid currentColor; border-radius: 2px; }
.icon-docs::after { inset: 7px 6px auto; height: 3px; border-block: 1.5px solid currentColor; }
.icon-settings::before { inset: 3px; border: 1.5px solid currentColor; border-radius: 3px; transform: rotate(45deg); }
.icon-settings::after { inset: 7px; border: 1px solid currentColor; border-radius: 50%; }
.icon-building::before { inset: 2px 4px; border: 1.5px solid currentColor; border-radius: 1px; }
.icon-building::after { inset: 5px 7px auto; height: 3px; border-block: 1px solid currentColor; box-shadow: 0 5px 0 -1px currentColor; }
.icon-search::before { inset: 2px 5px 5px 2px; border: 1.5px solid currentColor; border-radius: 50%; }
.icon-search::after { inset: 11px auto auto 11px; width: 6px; border-top: 1.5px solid currentColor; transform: rotate(44deg); transform-origin: left; }
.icon-plus::before { inset: 8px 4px auto; border-top: 1.5px solid currentColor; }
.icon-plus::after { inset: 4px auto 4px 8px; border-left: 1.5px solid currentColor; }
.icon-arrow::before { inset: 8px 3px auto; border-top: 1.5px solid currentColor; }
.icon-arrow::after { width: 6px; height: 6px; inset: 5px 3px auto auto; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); }
.icon-qr::before { inset: 1px; border: 1.5px dashed currentColor; border-radius: 1px; }
.icon-qr::after { inset: 6px; background: currentColor; box-shadow: 4px 4px currentColor; }
.icon-upload, .icon-photo { background-color: currentColor; mask: var(--icon-source) center / contain no-repeat; }
.icon-upload { --icon-source: url("icon-upload.svg"); }
.icon-photo { --icon-source: url("icon-photo.svg"); }

.icon-arrow-diagonal::before {
  inset: 8px 4px auto;
  border-top: 1.5px solid currentColor;
  transform: rotate(-45deg);
}
.icon-arrow-diagonal::after { inset: 4px 4px auto auto; width: 6px; height: 6px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; }

.dashboard-header .button { border-radius: 9px; font-weight: 560; }
.dashboard-header .button-primary { background: #303c36; border-color: #303c36; color: #fff; }
.dashboard-header .button-primary:hover { background: #3c5146; border-color: #3c5146; }
.metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
}
.metrics-with-regulation { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 980px) {
  .metrics-with-regulation { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .metrics-with-regulation .metric:nth-child(n + 4) { border-top: 1px solid var(--line); }
  .metrics-with-regulation .metric:nth-child(4)::before { display: none; }
}
.metric {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  align-content: center;
  gap: 4px 9px;
  padding: 13px 22px 13px 15px;
  min-height: 62px;
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  min-width: 0;
  overflow-wrap: normal;
}
.metric + .metric::before { position: absolute; inset: 11px auto 11px 0; width: 1px; background: var(--line); content: ""; }
.metric:hover { background: var(--soft); color: var(--ink); }
.metric:focus-visible { z-index: 1; }
.metric-arrow { position: absolute; top: 8px; right: 6px; color: #71766d; transform: scale(.75); }
.metric-value { color: var(--ink); font: 670 clamp(24px, 2.7vw, 33px)/1.05 var(--font-display); letter-spacing: -.055em; font-variant-numeric: tabular-nums; }
.metric-label { color: var(--muted); font-size: 12px; font-weight: 500; line-height: 1.32; }
.metric-urgent .metric-value, .metric-urgent .metric-label { color: #924b35; }

.dashboard-workspace {
  display: grid;
  grid-template-columns: minmax(0, 2.5fr) minmax(258px, 1fr);
  gap: 14px;
  align-items: start;
}
.dashboard-feature { margin-bottom: 14px; align-items: stretch; }
.dashboard-feature > .panel { margin-top: 0; }
.dashboard-view .stack { gap: 14px; }
.dashboard-view .panel-header h2, .dashboard-view .round-panel-header h2 { font-weight: 680; }
.dashboard-view .work-table thead { background: #f8f9f6; }
.dashboard-view .work-asset-icon { background: #edf0ec; color: #566961; }
.work-table td:first-child, .work-table th:first-child { padding-left: 18px; }
.work-table td:last-child, .work-table th:last-child { padding-right: 18px; }
.work-table .work-due { color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.work-table .work-due.is-overdue { color: var(--danger); font-weight: 680; }
.work-asset { display: flex; align-items: center; gap: 8px; }
.work-asset-icon {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  flex: none;
  border-radius: 8px;
  background: #eff2f7;
  color: #526c91;
}
.work-table .work-name { color: var(--ink); font-weight: 560; }
.link-with-icon { display: inline-flex; gap: 4px; align-items: center; }
.link-with-icon .icon { width: 15px; height: 15px; flex-basis: 15px; }
.link-list { list-style: none; padding: 0; margin: 0; }
.link-list > li { padding: 12px 18px; border-bottom: 1px solid var(--line); }
.link-list > li:last-child { border-bottom: 0; }
.link-list p, .issue-meta { margin-top: 3px; color: var(--muted); font-size: 12px; }
.link-list strong a { color: var(--ink); text-decoration: none; }
.link-list strong a:hover { color: #314c73; text-decoration: underline; }
.list-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.activity-time { color: var(--muted); font-size: 12px; white-space: nowrap; }
.dashboard-issue-list > li { padding: 0; }
.issue-link {
  display: grid;
  grid-template-columns: 6px minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px;
  padding: 12px 16px;
  color: var(--ink);
  text-decoration: none;
}
.issue-link:hover { color: var(--ink); background: #fbfcfe; }
.issue-link:hover strong { text-decoration: underline; }
.issue-meta { display: block; }
.issue-link .status { max-width: 105px; }
.issue-severity { width: 6px; height: 6px; margin-top: 7px; border-radius: 50%; background: #99a8bc; }
.issue-severity-critical { background: #d15a50; }
.issue-severity-attention { background: #d48a4d; }

.round-panel { display: flex; flex-direction: column; padding: 17px 18px 15px; }
.round-panel-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.round-focus { display: grid; grid-template-columns: 53px minmax(0, 1fr); gap: 12px; align-items: center; padding: 9px 0 12px; border-bottom: 1px solid var(--line); }
.round-date {
  display: grid;
  place-content: center;
  gap: 2px;
  padding: 6px 5px;
  min-height: 58px;
  border-radius: 9px;
  background: #eff2ee;
  color: #43564d;
  font: 720 11.5px/1.15 var(--font-display);
  text-align: center;
}
.round-date strong { font-size: 25px; line-height: .98; font-weight: 820; font-variant-numeric: tabular-nums; }
.round-date span { text-transform: lowercase; }
.round-focus-content { min-width: 0; }
.round-focus-content h3 { margin-top: 5px; }
.round-focus-content h3 a { color: var(--ink); text-decoration: none; }
.round-focus-content h3 a:hover { text-decoration: underline; }
.round-focus-content p { margin-top: 4px; color: var(--muted); font-size: 12px; }
.round-cta { justify-content: space-between; margin-top: 12px; }
.round-list { list-style: none; margin: 10px 0 0; padding: 0; }
.round-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 8px 1px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 12.5px;
  text-decoration: none;
}
.round-list li:last-child a { border-bottom: 0; }
.round-list a:hover { color: var(--accent); }
.round-list time { flex: none; color: var(--muted); font-variant-numeric: tabular-nums; }
.round-panel > .empty-state { padding: 12px 0; }

.registry-toolbar { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px; }
.registry-search { position: relative; flex: 1 1 220px; }
.registry-search .icon { position: absolute; color: var(--muted); left: 9px; top: 11px; pointer-events: none; }
.registry-search input { width: 100%; padding-left: 33px !important; }
.registry-toolbar > select { flex: 0 1 180px; }
.selection-toolbar { justify-content: space-between; padding: 8px 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.registry-table { min-width: 620px; }
.registry-table .asset-number a { color: #314c73; font-variant-numeric: tabular-nums; }
.registry-table .asset-name { font-weight: 675; color: var(--ink); }
.registry-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 7px; color: var(--muted); }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(230px, 1fr); align-items: start; gap: 18px; }
.detail-properties { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.detail-properties dt { margin-bottom: 3px; color: var(--muted); font-size: 12px; }
.detail-properties dd { margin: 0; }
.detail-actions { margin-top: 14px; }
.disclosures { display: grid; min-width: 0; }
.disclosure { border-bottom: 1px solid var(--line); }
.disclosure:last-child { border-bottom: 0; }
.disclosure > summary { padding: 12px 15px; font-size: 13px; font-weight: 660; }
.disclosure > summary:hover { background: #f9fbfa; }
.disclosure > form { display: grid; gap: 8px; padding: 0 15px 14px; }
.form-panel { width: min(100%, 740px); }
.asset-edit-panel { width: 100%; }
.asset-edit-panel .field-grid { row-gap: 12px; }
.asset-edit-panel textarea { min-height: 70px; }
@media (min-width: 1050px) {
  .asset-edit-panel .field-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .asset-edit-panel .field-grid > .full-width { grid-column: auto; }
}
@media (max-width: 600px) {
  .asset-edit-panel .field-grid { grid-template-columns: minmax(0, 1fr); }
}
.settings-layout { align-items: start; }
.settings-layout .field-grid { grid-template-columns: 1fr; }
.public-content { display: grid; place-content: center; min-height: 100dvh; padding: 24px; background: var(--canvas); }
.public-content .messages { width: min(430px, 100%); }
.signin-card { width: min(430px, calc(100vw - 48px)); background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--panel-shadow); overflow: hidden; }
.signin-brand { padding: 17px 23px; border-bottom: 1px solid var(--line); }
.signin-brand .brand { padding: 0; }
.signin-card .panel-body { padding: 23px; }
.signin-card .field { margin-top: 12px; }
.signin-card .button { width: 100%; margin-top: 15px; }

.visually-hidden, .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 1150px) {
  .metric { padding-left: 12px; }
  .dashboard-workspace { grid-template-columns: minmax(0, 2fr) minmax(245px, 1fr); }
}
@media (max-width: 780px) {
  .dashboard-workspace { grid-template-columns: minmax(0, 1fr); }
  .dashboard-secondary { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}
@media (min-width: 1101px) and (max-width: 1280px), (min-width: 741px) and (max-width: 820px) {
  .side-nav :is(a, .side-nav-disabled) { padding-inline: 10px; }
  .side-nav .icon { display: none; }
}
@media (max-width: 1100px) {
  .app-nav { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; }
  .app-nav-actions { grid-column: 2; }
  .side-nav { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 740px), (pointer: coarse) {
  .app-shell { --control-height: var(--touch-control-height); }
}
@media (max-width: 740px) {
  .app-nav { padding: 9px 13px 0; }
  .brand { padding: 0 3px; }
  .side-nav { width: 100%; overflow-x: auto; gap: 3px; padding: 3px 2px 6px; }
  .side-nav :is(a, .side-nav-disabled) { flex: none; padding: 7px 8px; min-height: 39px; }
  .side-nav .icon { display: none; }
  .topbar { min-height: 52px; padding: 7px 14px; }
  .site-glyph { width: 30px; height: 30px; border-radius: 8px; }
  .workspace-location { gap: 7px; }
  .topbar-date { display: none; }
  .account-name { max-width: min(19ch, 20vw); }
  .main-content { padding: 18px 14px 38px; }
  .page-header { margin-bottom: 15px; align-items: flex-start; }
  .page-back-link { min-block-size: var(--touch-control-height); }
  .metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 13px; }
  .metric { grid-template-columns: 1fr; padding: 8px 13px; }
  .metric:nth-child(4) { border-top: 1px solid var(--line); }
  .metric:nth-child(4)::before { display: none; }
  .metric:nth-child(5) { border-top: 1px solid var(--line); }
  .dashboard-workspace { gap: 13px; }
  .dashboard-feature { margin-bottom: 13px; }
  .detail-grid, .settings-layout { grid-template-columns: 1fr; }
}
@media (max-width: 570px) {
  .side-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: var(--touch-control-height);
    gap: 2px;
    overflow: visible;
  }
  .side-nav :is(a, .side-nav-disabled) { justify-content: center; font-size: clamp(11px, 3.1vw, 12px); padding-inline: 3px; }
  :is(.nav-issue-badge, .nav-task-badge) { margin-inline-start: -3px; }
}
@media (max-width: 455px) {
  .dashboard-secondary, .field-grid { grid-template-columns: 1fr; }
  .page-title-line { flex-wrap: wrap; }
  .account-name { display: none; }
  .topbar-menu .menu-list { max-width: 76vw; }
  .workspace-location strong { max-width: min(205px, 57vw); }
  .panel-header, .panel-body, .panel-pad { padding-inline: 13px; }
  .metric-arrow, .work-asset-icon { display: none; }
  .work-table th, .work-table td { padding-inline: 8px; }
  .work-table td:first-child, .work-table th:first-child { padding-left: 13px; }
  .work-table td:last-child, .work-table th:last-child { padding-right: 13px; }
  .work-table .work-due { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

.signin-card .field-grid { grid-template-columns: 1fr; gap: 0; }
.signin-card .errorlist { margin-top: 8px; }

.detail-title-separator { color: #7f9397; font-weight: 420; }
.detail-grid .is-overdue { color: var(--danger); font-weight: 690; }
.timeline > li { position: relative; padding-left: 32px; }
.timeline > li::before { position: absolute; left: 17px; top: 21px; width: 6px; height: 6px; content: ""; border-radius: 50%; background: #73999c; }
.invite-result { margin-bottom: 12px; }
.status-attention, .status-unconfirmed { color: var(--warning); background: #fff2de; }
.status-credited, .status-observed { color: var(--success); background: #e8f3eb; }
.status-revoked, .status-returned { color: var(--danger); background: #fcece9; }

.invite-actions { margin-top: 8px; }
.invite-actions [role="status"] { color: var(--muted); font-size: 12px; }

.signin-meta, .signin-footer { margin-top: 10px; }
.signin-meta { color: var(--muted); }
.is-overdue { color: var(--danger); font-weight: 690; }
.label-sheet { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(235px, 100%), 1fr)); gap: 10px; }
.equipment-label { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 8px; border: 1px dashed #a6b9b9; border-radius: 4px; background: #fff; }
.equipment-label img { display: block; flex: none; }
.equipment-label span, .equipment-label small { display: block; }
.equipment-label small { color: var(--muted); }
@media print {
  .app-shell { display: block; }
  .app-nav, .topbar, .labels-heading, .messages, .skip-link { display: none !important; }
  .main-content { max-width: none; padding: 0; }
  .label-sheet { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3mm; }
  .equipment-label { break-inside: avoid; border-radius: 0; }
  .equipment-label img { width: 22mm; height: 22mm; }
  .qr-download { display: none; }
}

.brand-mark { width: 38px; height: 38px; flex: none; object-fit: contain; background: transparent; border-radius: 0; }
.brand-name { font-family: 'Manrope', sans-serif; letter-spacing: -.065em; white-space: nowrap; }
