@import url("/fonts.css");
.checkboxline {
  display: flex;
  align-items: center;
  gap: 10px;
}
.checkboxline input {
  width: auto;
}
input[type="checkbox"] {
  accent-color: var(--blue);
  min-width: 18px;
  min-height: 18px;
}
button:focus-visible {
  outline: 3px solid var(--silver);
}
.metric:hover {
  border-color: var(--silver);
}
.intakebar .badge {
  white-space: normal;
}
dialog {
  max-height: 90vh;
  overflow-y: auto;
}
:root {
  font-family: Inter, "Segoe UI", sans-serif;
  font-size: 16px;
  --red: #003594;
  --blue: #003594;
  --navy: #041e42;
  --silver: #869397;
  --line: #d7dde2;
  --muted: #667580;
  --nav: #041e42;
  --page: #f4f6f8;
  --surface: #ffffff;
  --surface-soft: #f7f9fb;
  --field: #ffffff;
  --text: #10253f;
  --subtle-text: #5e6e78;
  --hover: #edf2f7;
  color: var(--text);
  background: var(--page);
}
body.theme-dark {
  --blue: #4aa3ff;
  --navy: #8fc5ff;
  --silver: #a5acaf;
  --line: #32465e;
  --muted: #a5acaf;
  --nav: #03152f;
  --page: #07182f;
  --surface: #102744;
  --surface-soft: #162f4f;
  --field: #07182f;
  --text: #f4f7fb;
  --subtle-text: #c7d0d5;
  --hover: #19395d;
}
[hidden] {
  display: none !important;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 3px;
}
button {
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  padding: 11px 16px;
  color: inherit;
  font-weight: 600;
}
button:hover {
  background: var(--hover);
}
button.primary {
  background: var(--red);
  border-color: var(--red);
  color: white;
}
button.primary:hover {
  background: var(--navy);
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
a {
  color: inherit;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--field);
  padding: 12px;
  border-radius: 6px;
  color: var(--text);
}
textarea {
  min-height: 115px;
  resize: vertical;
}
label {
  display: grid;
  gap: 7px;
  font-size: 0.875rem;
  font-weight: 600;
}
h1 {
  font-size: 1.9rem;
  letter-spacing: -0.7px;
  margin: 0 0 8px;
}
h2 {
  font-size: 1.1rem;
  margin: 0 0 20px;
}
h3 {
  font-size: 1rem;
}
p {
  line-height: 1.55;
}
small,
.muted {
  color: var(--muted);
  font-size: 0.875rem;
}
.brand {
  display: block;
  color: white;
}
.brand-logo {
  display: block;
  width: min(100%, 260px);
  height: auto;
  border-radius: 22px;
  filter:
    drop-shadow(0 22px 30px rgba(0, 37, 84, 0.34))
    drop-shadow(0 0 18px rgba(0, 175, 255, 0.34));
  transform: translateZ(0);
  transition:
    filter 0.2s ease,
    transform 0.2s ease;
}
.brand:hover .brand-logo {
  transform: translateY(-2px) scale(1.01);
  filter:
    drop-shadow(0 28px 42px rgba(0, 37, 84, 0.42))
    drop-shadow(0 0 26px rgba(0, 198, 255, 0.46));
}
.brand-mark {
  width: 44px;  height: 44px;
  padding: 6px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.18), transparent),
    rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.22);
}
.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
}
.brand-copy {
  display: grid;
  gap: 5px;
}
.brand strong {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -1.1px;
}
.brand span {
  display: inline-grid;
}
.brand-copy span {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 650;
  color: #cfd7dd;
}
.brand-hero {
  max-width: 420px;
}
.brand-hero .brand-logo {
  width: min(100%, 390px);
  border-radius: 24px;
  filter:
    drop-shadow(0 30px 48px rgba(0, 10, 28, 0.38))
    drop-shadow(0 0 30px rgba(0, 198, 255, 0.38));
}
.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.login-story {
  background: var(--nav);
  color: white;
  padding: 10vh 12%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.login-story h1 {
  font-size: 3rem;
  max-width: 430px;
  line-height: 1.15;
  margin: 36px 0 20px;
}
.login-story p {
  color: #d7dde2;
  max-width: 390px;
}
.login-box {
  max-width: 460px;
  width: 100%;
  margin: auto;
  padding: 36px;
}
.login-box form {
  display: grid;
  gap: 20px;
  margin-top: 30px;
}
.signup-card {
  margin-top: 28px;
  padding: 20px;
  border: 1px solid rgba(134, 157, 179, 0.28);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(229, 236, 243, 0.56)),
    radial-gradient(circle at top right, rgba(12, 52, 89, 0.14), transparent 42%);
  box-shadow: 0 18px 42px rgba(13, 36, 61, 0.12);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
}
.signup-card h2 {
  margin: 10px 0 6px;
  font-size: 1.18rem;
}
.signup-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}
.signup-card button,
.backlink {
  border: 1px solid rgba(134, 157, 179, 0.35);
  background: rgba(255, 255, 255, 0.72);
}
.signup-card button {
  white-space: nowrap;
  border-radius: 999px;
  padding: 12px 18px;
}
.backlink {
  width: fit-content;
  margin: 0 0 24px;
  border-radius: 999px;
}
.signup-form .formgrid {
  grid-template-columns: 1fr 1fr;
}
body.theme-dark .signup-card {
  border-color: rgba(151, 169, 189, 0.2);
  background:
    linear-gradient(135deg, rgba(18, 38, 61, 0.92), rgba(9, 22, 40, 0.82)),
    radial-gradient(circle at top right, rgba(137, 151, 170, 0.22), transparent 42%);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}
body.theme-dark .signup-card button,
body.theme-dark .backlink {
  background: rgba(15, 31, 52, 0.82);
  color: var(--text);
}
.demo {
  padding: 15px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  border-radius: 7px;
  font-size: 0.875rem;
  color: var(--text);
  margin-top: 24px;
  line-height: 1.7;
}
body.theme-dark .demo {
  border-color: var(--line);
  background: var(--surface-soft);
  color: var(--text);
}
.shell {
  display: grid;
  grid-template-columns: 235px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: var(--nav);
  color: #d7dde2;
  padding: 32px 18px;
  position: fixed;
  top: 0;
  bottom: 0;
  width: 235px;
  display: flex;
  flex-direction: column;
}
.sidebar .brand {
  padding: 0 14px 34px;
}
.navlabel {
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  color: #a5acaf;
  padding: 16px 14px 10px;
}
.nav {
  display: grid;
  gap: 5px;
}
.nav button {
  display: flex;
  gap: 13px;
  align-items: center;
  text-align: left;
  border: 0;
  background: transparent;
  color: #d7dde2;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 13px 14px;
}
.nav button.active {
  background: #0d3569;
  color: white;
  border-left: 3px solid #a5acaf;
  padding-left: 11px;
}
.nav button:hover {
  background: #092a56;
}
.nav svg {
  width: 19px;
  height: 19px;
}
.sidefoot {
  margin-top: auto;
  padding: 20px 12px 0;
  font-size: 0.875rem;
  line-height: 1.8;
}
.workspace {
  grid-column: 2;
  min-width: 0;
}
.topbar {
  height: 80px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.topsearch {
  max-width: 450px;
  border: 0;
  background: var(--page);
  padding-left: 16px;
}
.identity {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  font-size: 0.875rem;
  position: relative;
}
.avatar {
  border-radius: 50%;
  background: var(--surface-soft);
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  font-weight: 700;
  overflow: hidden;
  color: var(--text);
  flex: 0 0 auto;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.avatar.large {
  width: 68px;
  height: 68px;
  font-size: 1.25rem;
}
.account-button {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 8px;
}
.account-button:hover {
  background: var(--hover);
}
.account-button .role {
  color: var(--muted);
}
.bell-button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  position: relative;
  color: var(--muted);
  transition: transform 0.18s ease, color 0.18s ease, background 0.18s ease;
}
.bell-button:hover {
  transform: translateY(-1px);
  color: var(--navy);
  background: var(--hover);
}
.bell-button .bell-icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bell-button strong {
  position: absolute;
  right: -2px;
  top: 1px;
  min-width: 17px;
  height: 17px;
  padding: 0 5px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  color: #fff;
  font-size: 0.65rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.03em;
  border: 2px solid var(--surface);
  box-shadow: 0 5px 10px rgba(0, 53, 148, 0.24);
}
.bell-button.no-alerts strong {
  display: none;
}
.bell-button.no-alerts {
  opacity: 0.86;
}
.bell-button.no-alerts:hover {
  opacity: 1;
}
.task-menu {
  position: absolute;
  right: 210px;
  top: calc(100% + 8px);
  z-index: 22;
  width: min(460px, calc(100vw - 40px));
  max-height: 72vh;
  overflow: auto;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(13, 28, 39, 0.2);
}
.task-menu-head,
.task-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.task-menu-head {
  padding: 4px 4px 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 10px;
}
.task-menu-head small,
.task-card small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
}
.task-list {
  display: grid;
  gap: 10px;
  margin: 10px 0;
}
.task-card {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
}
.task-card p {
  margin: 6px 0;
  color: var(--muted);
  white-space: normal;
}
.task-current {
  border-color: var(--blue);
  box-shadow: inset 4px 0 0 var(--blue);
}
.task-menu details {
  border-top: 1px solid var(--line);
  padding-top: 10px;
  margin-top: 10px;
}
.task-menu summary {
  cursor: pointer;
  font-weight: 700;
}
.task-assignee-list label {
  justify-content: flex-start;
}
.account-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 20;
  display: grid;
  min-width: 210px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 18px 45px rgba(13, 28, 39, 0.18);
}
.account-menu button {
  border: 0;
  text-align: left;
  background: transparent;
  padding: 11px 12px;
}
.account-menu button:hover {
  background: var(--hover);
}
.profile-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
  margin-bottom: 18px;
}
.account-page {
  max-width: 860px;
}
.content {
  max-width: 1600px;
  margin: auto;
  padding: 36px 40px;
}
.pagehead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.pagehead p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.eyebrow {
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 1.4px;
  color: var(--muted);
  font-weight: 650;
  margin-bottom: 12px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 20px 0 28px;
}
.platform-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.platform-stats h2 {
  margin-bottom: 8px;
}
.platform-stats p {
  margin: 0;
  color: var(--muted);
}
.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
}
.support-card {
  display: grid;
  gap: 12px;
  position: relative;
  overflow: hidden;
}
.support-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--blue), var(--silver));
}
.support-active {
  box-shadow: 0 18px 45px rgba(4, 30, 66, 0.1);
}
.support-mini {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.support-mini:last-child {
  border-bottom: 0;
}
.support-mini small {
  display: block;
  color: var(--muted);
  margin-top: 6px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 22px;
}
.metric {
  text-align: left;
  min-height: 120px;
  position: relative;
}
.metric strong {
  display: block;
  font-size: 2rem;
  margin-top: 13px;
  font-weight: 650;
}
.metric span {
  font-size: 0.82rem;
  color: var(--subtle-text);
}
.metric i {
  display: block;
  width: 5px;
  height: 24px;
  background: var(--blue);
  border-radius: 5px;
  position: absolute;
  right: 22px;
  bottom: 23px;
}
.intakebar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 19px 22px;
  margin-bottom: 30px;
  font-size: 0.875rem;
}
.badge {
  display: inline-block;
  border-radius: 5px;
  padding: 5px 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.25px;
  background: var(--surface-soft);
  color: var(--text);
  white-space: nowrap;
}
.badge.demo-badge {
  background: var(--surface-soft);
  color: var(--text);
}
.badge.NEW,
.badge.PARTS_NEEDED {
  background: color-mix(in srgb, var(--blue) 16%, var(--surface));
  color: var(--blue);
}
.badge.COMPLETED,
.badge.FIXED,
.badge.PARTS_RECEIVED {
  background: #e8f7f2;
  color: #136f63;
}
.badge.IN_SERVICE,
.badge.READY_FOR_SERVICE {
  background: var(--surface-soft);
  color: var(--text);
}
.badge.HIGH,
.badge.URGENT {
  background: color-mix(in srgb, var(--blue) 14%, var(--surface));
  color: var(--blue);
}
.tablewrap {
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 9px;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
}
th {
  font-size: 0.74rem;
  letter-spacing: 0.5px;
  color: var(--muted);
  background: var(--surface-soft);
  font-weight: 600;
  text-transform: uppercase;
  padding: 15px 20px;
}
td {
  padding: 18px 20px;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
}
td small {
  display: block;
  margin-top: 6px;
  font-size: 0.8rem;
}
td button.link {
  border: 0;
  padding: 0;
  background: none;
  color: var(--blue);
  font-weight: 700;
}
.tabletitle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.tabletitle h2 {
  margin: 0;
}
.empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}
.error {
  color: var(--blue);
  background: color-mix(in srgb, var(--blue) 12%, var(--surface));
  padding: 12px;
  border-radius: 6px;
}
body.theme-dark .error {
  color: #d7e8ff;
  background: #0a2246;
}
.filters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.settings-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(360px, 1.15fr);
  gap: 20px;
  align-items: start;
}
.stack {
  display: grid;
  gap: 20px;
}
.formgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.option-editor {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}
.option-editor summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  list-style: none;
  padding: 15px 16px;
}
.option-editor summary::-webkit-details-marker {
  display: none;
}
.option-editor summary:after {
  content: "Show";
  color: #667482;
  font-size: 0.82rem;
  font-weight: 700;
}
.option-editor[open] summary {
  border-bottom: 1px solid var(--line);
}
.option-editor[open] summary:after {
  content: "Hide";
}
.option-editor summary span {
  display: grid;
  gap: 4px;
}
.option-editor summary strong {
  font-size: 0.875rem;
}
.option-editor-body {
  display: grid;
  gap: 12px;
  padding: 14px;
}
.option-editor-body > button,
.option-row button {
  padding: 9px 12px;
}
.option-editor-body > button {
  justify-self: start;
}
.option-rows {
  display: grid;
  gap: 8px;
}
.option-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}
.list-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.add-option-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}
.add-option-box button {
  min-width: 112px;
}
.settings-list-panel {
  display: grid;
  gap: 14px;
}
.settings-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 5px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  border-radius: 10px;
}
.settings-tabs button {
  border: 0;
  background: transparent;
}
.settings-tabs button.active {
  background: var(--surface);
  color: var(--red);
  box-shadow: 0 8px 24px rgba(4, 30, 66, 0.12);
}
.settings-list-body {
  display: grid;
  gap: 10px;
}
.settings-list-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.settings-list {
  display: grid;
  gap: 10px;
}
.settings-list-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 9px;
}
.settings-list-row button {
  padding: 11px 13px;
}
.settings-sheet {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.settings-sheet table {
  min-width: 420px;
}
.settings-sheet th {
  padding: 9px 12px;
}
.settings-sheet th:first-child,
.settings-sheet td:first-child {
  width: 48px;
  color: var(--muted);
}
.settings-sheet td {
  padding: 6px 8px;
}
.settings-sheet input {
  padding: 8px 10px;
  border-radius: 5px;
}
.settings-name {
  display: block;
  min-height: 34px;
  padding: 8px 10px;
  line-height: 1.25;
}
.settings-sheet button {
  padding: 8px 10px;
}
.row-actions {
  display: flex;
  gap: 7px;
  justify-content: flex-end;
}
.icon-button {
  width: 34px;
  height: 34px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  line-height: 1;
  font-size: 1rem;
  border-radius: 7px;
}
.wide {
  grid-column: 1/-1;
}
.detailgrid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 24px;
}
.info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.info dt {
  color: var(--muted);
  font-size: 0.8rem;
  margin-bottom: 6px;
}
.info dd {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  white-space: pre-wrap;
}
.timeline {
  border-left: 2px solid var(--line);
  margin-left: 5px;
  padding-left: 20px;
}
.event {
  position: relative;
  padding: 0 0 24px;
  font-size: 0.875rem;
}
.event:before {
  content: "";
  position: absolute;
  left: -26px;
  top: 4px;
  width: 10px;
  height: 10px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: #a5acaf;
}
.event p {
  margin: 6px 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.event small {
  font-size: 0.75rem;
}
.tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.tabs button {
  border: 0;
  background: none;
  color: var(--muted);
}
.tabs button.active {
  background: var(--surface);
  color: var(--red);
  box-shadow: inset 0 -2px var(--red);
}
.photos {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.photos img {
  width: 130px;
  height: 110px;
  object-fit: cover;
  border-radius: 6px;
}
.photo {
  display: grid;
  gap: 6px;
  font-size: 0.75rem;
}
.photo button {
  font-size: 0.8rem;
  padding: 6px;
}
.note {
  border-top: 1px solid var(--line);
  padding: 16px 0;
  white-space: pre-wrap;
}
.note:first-of-type {
  border: 0;
}
.order {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 18px;
  margin-bottom: 14px;
}
.order p {
  font-size: 0.875rem;
}
dialog {
  border: 0;
  border-radius: 12px;
  padding: 28px;
  max-width: 650px;
  width: calc(100% - 30px);
  box-shadow: 0 20px 80px #14253540;
  background: var(--surface);
  color: var(--text);
}
dialog::backdrop {
  background: #13232f70;
}
dialog form {
  display: grid;
  gap: 20px;
}
.dialoghead {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.dialoghead h2 {
  margin: 0;
}
.checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.checks label {
  display: flex;
  align-items: center;
  font-weight: 400;
}
.checks input {
  width: auto;
}
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #041e42;
  color: white;
  padding: 15px 24px;
  border-radius: 8px;
  z-index: 100;
  max-width: 90%;
  box-shadow: 0 5px 30px #0002;
}
.mobile-only {
  display: none;
}
.danger {
  color: var(--blue);
}
.sectionline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 28px 0 10px;
}
.sectionline h2 {
  margin: 0;
}
.hint {
  background: var(--surface-soft);
  padding: 14px;
  border-radius: 6px;
  font-size: 0.875rem;
  line-height: 1.6;
}
.queue-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.queue-cards h3 {
  font-size: 1.15rem;
}
.queue-cards p {
  font-size: 0.9rem;
}
.queue-cards button {
  width: 100%;
  margin-top: 15px;
}
@media (min-width: 1500px) {
  .cards {
    grid-template-columns: repeat(5, 1fr);
  }
}
@media (max-width: 1100px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
  .detailgrid {
    grid-template-columns: 1fr;
  }
  .queue-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .content {
    padding: 28px 24px;
  }
  .topbar {
    padding: 0 24px;
  }
  .identity .role {
    display: none;
  }
}
@media (max-width: 760px) {
  .shell {
    display: block;
  }
  .sidebar {
    position: static;
    width: auto;
    padding: 18px;
  }
  .sidebar .brand {
    padding: 0 4px 18px;
  }
  .brand {
    gap: 9px;
  }
  .brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }
  .brand strong {
    font-size: 1.45rem;
  }
  .brand-copy span {
    font-size: 0.65rem;
  }
  .navlabel,
  .sidefoot {
    display: none;
  }
  .nav {
    display: flex;
    overflow: auto;
  }
  .nav button {
    white-space: nowrap;
    padding: 11px;
  }
  .nav button.active {
    border-left: 0;
    padding-left: 11px;
  }
  .workspace {
    width: 100%;
  }
  .topbar {
    height: auto;
    padding: 12px 18px;
  }
  .identity .name {
    display: none;
  }
  .topsearch {
    min-width: 0;
  }
  .content {
    padding: 25px 18px;
  }
  .pagehead {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }
  .pagehead h1 {
    font-size: 1.65rem;
  }
  .cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .card {
    padding: 18px;
  }
  .metric {
    min-height: 100px;
  }
  .intakebar {
    flex-wrap: wrap;
    line-height: 1.8;
  }
  .filters,
  .grid2,
  .settings-grid,
  .formgrid,
  .info,
  .queue-cards {
    grid-template-columns: 1fr;
  }
  .detailgrid {
    gap: 18px;
  }
  .login {
    grid-template-columns: 1fr;
  }
  .login-story {
    padding: 30px;
  }
  .login-story h1,
  .login-story p,
  .login-story small {
    display: none;
  }
  .brand-hero {
    align-items: flex-start;
  }
  .brand-hero .brand-mark {
    width: 64px;
    height: 64px;
    border-radius: 20px;
  }
  .brand-hero strong {
    font-size: 2rem;
  }
  .login-box {
    padding: 30px;
  }
  .signup-card,
  .signup-form .formgrid {
    grid-template-columns: 1fr;
  }
  .signup-card button {
    width: 100%;
  }
  .checks {
    grid-template-columns: 1fr;
  }
  .actions {
    width: 100%;
  }
  .actions button {
    flex: 1;
  }
  .inspection button {
    min-height: 48px;
  }
  .inspection input,
  .inspection textarea {
    font-size: 1rem;
  }
  .wide {
    grid-column: auto;
  }
  .option-row {
    grid-template-columns: 1fr;
  }
  .list-actions,
  .add-option-box,
  .settings-list-row,
  .row-actions {
    grid-template-columns: 1fr;
  }
  .row-actions {
    justify-content: stretch;
  }
}
@media (max-width: 760px) {
  .inspection-mode .nav,
  .inspection-mode .tabs,
  .inspection-mode .topsearch,
  .inspection-mode .detailgrid > .stack {
    display: none;
  }
  .inspection-mode .sidebar {
    padding: 16px 18px;
  }
  .inspection-mode .sidebar .brand {
    padding: 0;
  }
  .inspection-mode .brand-copy {
    display: none;
  }
  .inspection-mode .topbar {
    justify-content: flex-end;
    padding: 8px 18px;
  }
  .inspection-mode .content {
    padding-top: 18px;
  }
  .inspection-mode .pagehead {
    margin-bottom: 18px;
  }
  .inspection-mode .info {
    gap: 14px;
  }
  .inspection-mode .card {
    padding: 16px;
  }
}
.sheet-upload {
  max-width: 760px;
  margin: 20px auto;
  padding: 38px;
  text-align: center;
}
.sheet-upload h2 {
  font-size: 1.4rem;
  margin: 18px 0 10px;
}
.sheet-upload > .actions {
  justify-content: center;
  margin: 25px 0;
}
.sheet-upload .hint {
  text-align: left;
  margin-top: 25px;
}
.upload-symbol {
  font-size: 3.5rem;
  color: var(--blue);
}
.sheet-review {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(350px, 1.15fr);
  align-items: start;
  gap: 24px;
}
.sheet-original {
  position: sticky;
  top: 20px;
}
.sheet-original img {
  display: block;
  width: 100%;
  max-height: 75vh;
  object-fit: contain;
  background: var(--surface-soft);
  margin-bottom: 14px;
}
.sheet-panel-head {
  display: flex;
  align-items: start;
  gap: 15px;
  justify-content: space-between;
}
.sheet-panel-head a {
  font-size: 0.875rem;
  white-space: nowrap;
}
.sheet-review .hint {
  margin-bottom: 20px;
}
.sheet-review .hint ul {
  margin: 0;
  padding-left: 18px;
}
.sheet-review .hint li + li {
  margin-top: 6px;
}
.sheet-review details summary {
  cursor: pointer;
  padding: 12px 0;
  font-weight: 600;
  font-size: 0.875rem;
}
.sheet-review details .formgrid {
  margin-top: 12px;
}
.review-check {
  padding: 16px;
  background: var(--surface-soft);
  border-radius: 6px;
  line-height: 1.5;
}
.source-document {
  display: flex;
  gap: 22px;
  align-items: start;
}
.source-document img {
  width: 150px;
  max-height: 220px;
  object-fit: contain;
}
.source-document > div {
  min-width: 0;
  flex: 1;
}
.document-intake .error p {
  margin: 0 0 10px;
}
input[readonly] {
  background: var(--surface-soft);
}
.document-intake [data-progress] {
  padding-top: 20px;
  color: var(--muted);
}
@media (max-width: 1000px) {
  .sheet-review {
    grid-template-columns: 1fr;
  }
  .sheet-original {
    position: static;
  }
  .sheet-original img {
    max-height: 420px;
  }
  .sheet-upload {
    padding: 24px;
  }
}
@media (max-width: 500px) {
  .source-document {
    flex-direction: column;
  }
  .sheet-review {
    gap: 16px;
  }
  .sheet-original img {
    max-height: 300px;
  }
  .sheet-panel-head {
    flex-direction: column;
  }
  .sheet-panel-head h2 {
    margin-bottom: 0;
  }
  .sheet-panel-head a {
    margin-bottom: 15px;
  }
}

button.danger-button {
  color: var(--blue);
  border-color: #7f8c95;
  background: var(--surface);
}
button.danger-button:hover:not(:disabled) {
  color: #fff;
  background: var(--blue);
}
button.delete-employee {
  margin-right: auto;
}

.bell-button svg {
  width: 22px;
  height: 22px;
  display: block;
  stroke-width: 2.25;
}

.support-create-grid {
  grid-template-columns: minmax(360px, 0.9fr) minmax(360px, 1.1fr);
}
.your-support-tickets {
  min-height: 100%;
}








