@font-face {
  font-family: SMManrope;
  src: url("../fonts/manrope-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: SMPlexMono;
  src: url("../fonts/ibm-plex-mono-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
body.sm2-route {
  margin: 0;
  background: #f3f1eb;
}
:root {
  --sm2-canvas: #f3f1eb;
  --sm2-surface: #fff;
  --sm2-surface-soft: #f8f7f3;
  --sm2-ink: #102432;
  --sm2-muted: #66737c;
  --sm2-line: #dce2e1;
  --sm2-line-strong: #bcc9c8;
  --sm2-brand: #087f73;
  --sm2-brand-dark: #075f59;
  --sm2-brand-soft: #e6f4f1;
  --sm2-blue: #1c62d4;
  --sm2-blue-soft: #eaf1fd;
  --sm2-amber: #a46108;
  --sm2-amber-soft: #fff4dd;
  --sm2-danger: #bd2b45;
  --sm2-danger-soft: #fdebf0;
  --sm2-success: #26734d;
  --sm2-radius: 14px;
  --sm2-shadow: 0 18px 48px rgba(16, 36, 50, 0.08);
  --sm2-shadow-sm: 0 8px 22px rgba(16, 36, 50, 0.06);
  --sm2-focus: rgba(28, 98, 212, 0.28);
  --sm2-font: var(--sm-font-sans);
  --sm2-mono: var(--sm-font-mono);
}
.sm2,
.sm2 * {
  box-sizing: border-box;
}
.sm2 {
  position: relative;
  width: min(1320px, calc(100% - 32px));
  margin: 32px auto 72px;
  color: var(--sm2-ink);
  font: 500 15px/1.55 var(--sm2-font);
  isolation: isolate;
}
.sm2:before {
  position: fixed;
  z-index: -1;
  inset: 0;
  content: "";
  background:
    radial-gradient(
      circle at 10% 0,
      rgba(8, 127, 115, 0.09),
      transparent 30rem
    ),
    radial-gradient(
      circle at 100% 30%,
      rgba(28, 98, 212, 0.06),
      transparent 34rem
    ),
    var(--sm2-canvas);
}
.sm2 h1,
.sm2 h2,
.sm2 h3,
.sm2 h4,
.sm2 p {
  margin-top: 0;
}
.sm2 h1,
.sm2 h2,
.sm2 h3,
.sm2 h4 {
  color: var(--sm2-ink);
  font-weight: 760;
  letter-spacing: -0.025em;
}
.sm2 h1 {
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.04;
}
.sm2 h2 {
  font-size: 25px;
  line-height: 1.15;
}
.sm2 h3 {
  font-size: 18px;
  line-height: 1.3;
}
.sm2 a {
  color: var(--sm2-blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.sm2 a:hover {
  color: #124897;
}
.sm2 button,
.sm2 input,
.sm2 select,
.sm2 textarea {
  font: inherit;
}
.sm2 button,
.sm2 .sm2-button {
  min-height: 42px;
  border: 0;
  border-radius: 9px;
  padding: 10px 16px;
  background: var(--sm2-brand);
  color: #fff;
  font-weight: 730;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition:
    transform 0.16s ease,
    background 0.16s ease,
    box-shadow 0.16s ease;
}
.sm2 button:hover,
.sm2 .sm2-button:hover {
  background: var(--sm2-brand-dark);
  color: #fff;
  transform: translateY(-1px);
}
.sm2 button:disabled {
  opacity: 0.55;
  cursor: wait;
  transform: none;
}
.sm2 .sm2-button--secondary,
.sm2 button.sm2-button--secondary {
  border: 1px solid var(--sm2-line);
  background: var(--sm2-surface);
  color: var(--sm2-ink);
}
.sm2 .sm2-button--ghost,
.sm2 button.sm2-button--ghost {
  background: transparent;
  color: var(--sm2-blue);
  padding-inline: 4px;
}
.sm2 .sm2-button--danger {
  background: var(--sm2-danger);
}
.sm2 :focus-visible {
  outline: 3px solid rgba(28, 98, 212, 0.3);
  outline-offset: 2px;
}
.sm2-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--sm2-brand-dark);
  font-size: 11px;
  font-weight: 780;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.sm2-kicker:before {
  width: 18px;
  height: 2px;
  background: currentColor;
  content: "";
}
.sm2-mono {
  font-family: var(--sm2-mono);
  letter-spacing: -0.02em;
}
.sm2-muted {
  color: var(--sm2-muted);
}
.sm2-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.sm2-message {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 0 0 16px;
  padding: 13px 15px;
  border: 1px solid #b9dfd8;
  border-radius: 11px;
  background: var(--sm2-brand-soft);
  color: #155e56;
}
.sm2-message--error {
  border-color: #efbac5;
  background: var(--sm2-danger-soft);
  color: #8d2034;
}
.sm2-message--warning {
  border-color: #efd398;
  background: var(--sm2-amber-soft);
  color: #7b4d0a;
}
.sm2-message svg {
  flex: 0 0 20px;
  margin-top: 1px;
}
.sm2-gateway {
  container-type: inline-size;
  overflow: hidden;
  border: 1px solid rgba(16, 36, 50, 0.09);
  border-radius: 22px;
  background: var(--sm2-surface);
  box-shadow: var(--sm2-shadow);
}
.sm2-gateway--active .sm2-gateway__body {
  padding: clamp(24px, 4vw, 40px);
}
.sm2-gateway__header {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  min-height: 270px;
}
.sm2-gateway__intro {
  position: relative;
  padding: clamp(34px, 6vw, 72px);
  background: #102f39;
  color: #fff;
  overflow: hidden;
}
.sm2-gateway__intro:after {
  position: absolute;
  right: -90px;
  bottom: -130px;
  width: 340px;
  height: 340px;
  border: 70px solid rgba(55, 205, 184, 0.13);
  border-radius: 50%;
  content: "";
}
.sm2-gateway__intro h1 {
  max-width: 680px;
  color: #fff;
}
.sm2-gateway__intro p {
  max-width: 620px;
  color: #c8dbdd;
  font-size: 17px;
}
.sm2-gateway__aside {
  padding: clamp(28px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #eff5f2;
}
.sm2-gateway__aside strong {
  display: block;
  font-size: 17px;
}
.sm2-gateway__body {
  padding: clamp(24px, 4vw, 48px);
}
.sm2-auth-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(250px, 0.8fr);
  gap: 28px;
  align-items: start;
}
.sm2-auth-card {
  padding: 26px;
  border: 1px solid var(--sm2-line);
  border-radius: var(--sm2-radius);
  background: var(--sm2-surface-soft);
}
.sm2-auth-card--quiet {
  background: transparent;
}
.sm2-device-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.sm2-device-card {
  position: relative;
  min-height: 210px;
  padding: 22px;
  border: 1px solid var(--sm2-line);
  border-radius: var(--sm2-radius);
  background: var(--sm2-surface);
  display: flex;
  flex-direction: column;
}
.sm2-device-card__icon {
  width: 42px;
  height: 42px;
  margin-bottom: 24px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--sm2-brand-soft);
  color: var(--sm2-brand);
}
.sm2-device-card h3 {
  margin-bottom: 5px;
}
.sm2-device-card dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: auto 0 18px;
  padding-top: 20px;
}
.sm2-device-card dt {
  color: var(--sm2-muted);
  font-size: 11px;
}
.sm2-device-card dd {
  margin: 2px 0 0;
  font-weight: 700;
}
.sm2-device-card__link {
  font-weight: 740;
  text-decoration: none;
}
.sm2-gateway-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}
.sm2-gateway-toolbar h2 {
  margin-bottom: 2px;
}
.sm2-form {
  display: grid;
  gap: 15px;
}
.sm2-field {
  display: grid;
  gap: 6px;
}
.sm2-field > span,
.sm2-field > label {
  font-size: 13px;
  font-weight: 720;
}
.sm2-field small {
  color: var(--sm2-muted);
}
.sm2-field input,
.sm2-field select,
.sm2-field textarea,
.sm2-filter input,
.sm2-filter select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #cdd5d5;
  border-radius: 9px;
  padding: 10px 12px;
  background: #fff;
  color: var(--sm2-ink);
  box-shadow: 0 1px 0 rgba(16, 36, 50, 0.02);
}
.sm2-field textarea {
  min-height: 126px;
  resize: vertical;
}
.sm2-field input:focus,
.sm2-field select:focus,
.sm2-field textarea:focus,
.sm2-filter input:focus,
.sm2-filter select:focus {
  border-color: var(--sm2-blue);
  outline: 3px solid rgba(28, 98, 212, 0.13);
}
.sm2-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.sm2-form__actions {
  position: sticky;
  bottom: 0;
  z-index: 2;
  margin: 8px -26px -26px;
  padding: 14px 26px;
  border-top: 1px solid var(--sm2-line);
  background: rgba(255, 255, 255, 0.96);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.sm2-help {
  padding: 14px;
  border-left: 3px solid var(--sm2-blue);
  background: var(--sm2-blue-soft);
  color: #274f88;
  font-size: 13px;
}
.sm2-app {
  display: grid;
  grid-template-columns: 218px minmax(0, 1fr);
  grid-template-areas: "head head" "nav main";
  gap: 18px;
  align-items: start;
}
.sm2-device-head {
  grid-area: head;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: end;
  padding: 24px 26px;
  border: 1px solid rgba(16, 36, 50, 0.12);
  border-radius: 18px;
  background: #12333d;
  color: #fff;
  box-shadow: var(--sm2-shadow);
}
.sm2-device-head h1 {
  margin: 0 0 6px;
  color: #fff;
  font-size: clamp(28px, 4vw, 38px);
}
.sm2-device-head p {
  margin: 0;
  color: #c7dcdd;
}
.sm2-device-head .sm2-kicker {
  color: #69dfce;
}
.sm2-device-head__facts {
  display: flex;
  gap: 10px;
}
.sm2-head-fact {
  min-width: 128px;
  padding: 11px 13px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
}
.sm2-head-fact span {
  display: block;
  color: #abd0d0;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.sm2-head-fact strong {
  display: block;
  margin-top: 3px;
  color: #fff;
  font-size: 14px;
}
.sm2-nav {
  grid-area: nav;
  position: sticky;
  top: 30px;
  padding: 9px;
  border: 1px solid var(--sm2-line);
  border-radius: var(--sm2-radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 30px rgba(16, 36, 50, 0.05);
}
.sm2-nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  margin: 2px 0;
  padding: 9px 11px;
  border-radius: 9px;
  color: #40515c;
  text-decoration: none;
  font-weight: 670;
}
.sm2-nav a:hover {
  background: var(--sm2-surface-soft);
  color: var(--sm2-ink);
}
.sm2-nav a.is-active {
  background: var(--sm2-brand-soft);
  color: var(--sm2-brand-dark);
}
.sm2-nav svg {
  width: 19px;
  height: 19px;
}
.sm2-nav__divider {
  height: 1px;
  margin: 8px;
  background: var(--sm2-line);
}
.sm2-nav__label {
  display: block;
  padding: 8px 11px 3px;
  color: var(--sm2-muted);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.sm2-main {
  grid-area: main;
  min-width: 0;
}
.sm2-context {
  grid-area: side;
  position: sticky;
  top: 30px;
  display: grid;
  gap: 12px;
}
.sm2-mobile-nav {
  display: none;
}
.sm2-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}
.sm2-toolbar h2 {
  margin: 0;
}
.sm2-toolbar__actions {
  display: flex;
  gap: 8px;
}
.sm2-panel {
  border: 1px solid var(--sm2-line);
  border-radius: var(--sm2-radius);
  background: var(--sm2-surface);
}
.sm2-panel + .sm2-panel {
  margin-top: 14px;
}
.sm2-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 19px 20px 13px;
}
.sm2-panel__head h2,
.sm2-panel__head h3 {
  margin: 0;
}
.sm2-panel__body {
  padding: 0 20px 20px;
}
.sm2-context-card {
  padding: 17px;
  border: 1px solid var(--sm2-line);
  border-radius: var(--sm2-radius);
  background: var(--sm2-surface);
}
.sm2-context-card h3 {
  margin-bottom: 10px;
  font-size: 15px;
}
.sm2-context-card p:last-child {
  margin-bottom: 0;
}
.sm2-context-card--attention {
  border-color: #efd398;
  background: var(--sm2-amber-soft);
}
.sm2-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--sm2-line);
  border-radius: var(--sm2-radius);
  background: var(--sm2-surface);
  overflow: hidden;
  margin-bottom: 14px;
}
.sm2-kpi {
  min-width: 0;
  padding: 18px 20px;
  border-right: 1px solid var(--sm2-line);
}
.sm2-kpi:last-child {
  border-right: 0;
}
.sm2-kpi span {
  display: block;
  color: var(--sm2-muted);
  font-size: 12px;
}
.sm2-kpi strong {
  display: block;
  margin-top: 4px;
  font-size: 25px;
  letter-spacing: -0.04em;
}
.sm2-kpi strong small {
  font-size: 12px;
  letter-spacing: 0;
  color: var(--sm2-muted);
}
.sm2-attention {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 17px 18px;
  border: 1px solid #efc9d2;
  border-radius: var(--sm2-radius);
  background: var(--sm2-danger-soft);
  margin-bottom: 14px;
}
.sm2-attention svg {
  flex: 0 0 22px;
  color: var(--sm2-danger);
}
.sm2-attention strong {
  display: block;
}
.sm2-attention p {
  margin: 2px 0 0;
  color: #7b3b49;
}
.sm2-list {
  display: grid;
}
.sm2-row {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 13px;
  align-items: start;
  padding: 16px 0;
  border-top: 1px solid var(--sm2-line);
}
.sm2-row.is-clickable {
  margin-inline: -10px;
  padding-inline: 10px;
  border-radius: 10px;
  transition: background 0.18s ease, transform 0.18s ease;
}
.sm2-row.is-clickable:hover {
  background: var(--sm2-surface-soft);
  transform: translateX(2px);
}
.sm2-row__link,
.sm2-ticket__open,
.sm2-service-card__open {
  color: var(--sm2-ink);
  text-decoration: none;
}
.sm2-row__link:after {
  position: absolute;
  inset: 0;
  content: "";
}
.sm2-row__link:hover,
.sm2-ticket__open:hover,
.sm2-service-card__open:hover {
  color: var(--sm2-brand-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.sm2-row:first-child {
  border-top: 0;
}
.sm2-row__icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--sm2-surface-soft);
  color: var(--sm2-brand);
}
.sm2-row h3 {
  margin: 0 0 3px;
  font-size: 15px;
}
.sm2-row p {
  margin: 0;
  color: var(--sm2-muted);
  font-size: 13px;
}
.sm2-row time {
  color: var(--sm2-muted);
  font-family: var(--sm2-mono);
  font-size: 10px;
  white-space: nowrap;
}
.sm2-empty {
  padding: 38px 20px;
  text-align: center;
  color: var(--sm2-muted);
}
.sm2-empty__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--sm2-surface-soft);
  color: var(--sm2-brand);
}
.sm2-empty strong {
  display: block;
  color: var(--sm2-ink);
  font-size: 17px;
}
.sm2-empty p {
  margin: 5px auto 0;
  max-width: 430px;
}
.sm2-filter {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 180px auto;
  gap: 8px;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid var(--sm2-line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.82);
}
.sm2-filter button {
  min-height: 44px;
}
.sm2-detail-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
  padding: 11px 14px;
  border: 1px solid var(--sm2-line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.88);
}
.sm2-detail-nav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 760;
  text-decoration: none;
}
.sm2-detail-nav a svg {
  width: 16px;
  height: 16px;
}
.sm2-detail-nav span {
  color: var(--sm2-muted);
  font-family: var(--sm2-mono);
  font-size: 11px;
}
.sm2-ticket-list {
  display: grid;
  gap: 11px;
}
.sm2-ticket {
  border: 1px solid var(--sm2-line);
  border-radius: var(--sm2-radius);
  background: var(--sm2-surface);
  overflow: hidden;
}
.sm2-ticket.is-overdue {
  border-left: 4px solid var(--sm2-danger);
}
.sm2-ticket.is-detail,
.sm2-service-card.is-detail {
  border-color: #8ebbb1;
  box-shadow: 0 18px 48px rgba(12, 53, 48, 0.09);
}
.sm2-ticket__head {
  padding: 18px 19px 14px;
}
.sm2-ticket__top {
  display: flex;
  justify-content: space-between;
  gap: 15px;
}
.sm2-ticket__head h3 {
  margin: 0 0 8px;
}
.sm2-ticket__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.sm2-pill {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #edf1f2;
  color: #45545e;
  font-size: 10px;
  font-weight: 730;
}
.sm2-pill--brand {
  background: var(--sm2-brand-soft);
  color: var(--sm2-brand-dark);
}
.sm2-pill--danger {
  background: var(--sm2-danger-soft);
  color: var(--sm2-danger);
}
.sm2-pill--warning {
  background: var(--sm2-amber-soft);
  color: var(--sm2-amber);
}
.sm2-ticket__summary {
  margin: 13px 0 0;
  color: #43535d;
}
.sm2-open-record {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 11px;
  color: var(--sm2-brand-dark);
  font-size: 12px;
  font-weight: 780;
  text-decoration: none;
}
.sm2-open-record:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.sm2-conversation {
  border-top: 1px solid var(--sm2-line);
  background: #f8faf9;
}
.sm2-conversation summary {
  padding: 12px 19px;
  color: var(--sm2-blue);
  font-size: 13px;
  font-weight: 730;
  cursor: pointer;
  list-style: none;
}
.sm2-conversation summary::-webkit-details-marker {
  display: none;
}
.sm2-conversation summary:before {
  display: inline-block;
  margin-right: 7px;
  content: "+";
}
.sm2-conversation[open] summary:before {
  content: "−";
}
.sm2-thread {
  display: grid;
  gap: 9px;
  padding: 2px 19px 16px;
}
.sm2-message-bubble {
  max-width: 82%;
  padding: 11px 13px;
  border: 1px solid var(--sm2-line);
  border-radius: 4px 12px 12px;
  background: #fff;
}
.sm2 input[type="file"] {
  padding: 5px;
  color: var(--sm2-muted);
}
.sm2 input[type="file"]::file-selector-button {
  min-height: 32px;
  margin-right: 10px;
  padding: 6px 11px;
  border: 0;
  border-radius: 7px;
  background: var(--sm2-brand-soft);
  color: var(--sm2-brand-dark);
  font: inherit;
  font-weight: 740;
  cursor: pointer;
}
.sm2 input[type="file"]::file-selector-button:hover {
  background: #d4eee9;
}
.sm2-message-bubble--customer {
  margin-left: auto;
  border-color: #c9ded9;
  background: var(--sm2-brand-soft);
}
.sm2-message-bubble strong {
  display: block;
  font-size: 11px;
}
.sm2-message-bubble p {
  margin: 3px 0;
  font-size: 13px;
}
.sm2-message-bubble time {
  color: var(--sm2-muted);
  font-family: var(--sm2-mono);
  font-size: 9px;
}
.sm2-message-files {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0;
}
.sm2-message-files a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 7px;
  border-radius: 7px;
  background: var(--sm2-blue-soft);
  font-size: 10px;
  font-weight: 720;
  text-decoration: none;
}
.sm2-message-files svg {
  width: 14px;
  height: 14px;
}
.sm2-reply {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 4px;
}
.sm2-reply textarea {
  min-height: 44px;
  max-height: 130px;
  border: 1px solid #cdd5d5;
  border-radius: 9px;
  padding: 10px 12px;
  resize: vertical;
}
.sm2-reply > div {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.sm2-file-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 11px;
  border: 1px solid var(--sm2-line-strong);
  border-radius: 9px;
  color: var(--sm2-blue);
  background: var(--sm2-surface);
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
}
.sm2-file-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
}
.sm2-file-button:focus-within {
  outline: 3px solid var(--sm2-focus);
  outline-offset: 2px;
}
.sm2-reply__waiting {
  margin-top: 8px;
}
.sm2-ticket__footer {
  display: flex;
  gap: 15px;
  padding: 11px 19px;
  border-top: 1px solid var(--sm2-line);
  font-size: 12px;
  font-weight: 700;
}
.sm2-service-list,
.sm2-document-list,
.sm2-workflow-list {
  display: grid;
  gap: 10px;
}
.sm2-document-upload {
  margin-bottom: 12px;
  border: 1px solid var(--sm2-line);
  border-radius: var(--sm2-radius);
  background: color-mix(in srgb, var(--sm2-surface) 94%, var(--sm2-brand-soft));
  box-shadow: var(--sm2-shadow-sm);
}
.sm2-document-upload > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 16px;
  color: var(--sm2-blue);
  font-size: 12px;
  font-weight: 780;
  cursor: pointer;
  list-style: none;
}
.sm2-document-upload > summary::-webkit-details-marker {
  display: none;
}
.sm2-document-upload > summary svg {
  width: 16px;
  height: 16px;
}
.sm2-document-upload[open] > summary {
  border-bottom: 1px solid var(--sm2-line);
}
.sm2-document-upload .sm2-form {
  padding: 16px;
}
.sm2-document-upload__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.sm2-document-upload__actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}
.sm2-service-card,
.sm2-document,
.sm2-workflow {
  padding: 18px 19px;
  border: 1px solid var(--sm2-line);
  border-radius: var(--sm2-radius);
  background: var(--sm2-surface);
}
.sm2-service-card__head,
.sm2-document,
.sm2-workflow__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.sm2-service-card h3,
.sm2-document h3,
.sm2-workflow h3 {
  margin: 0 0 4px;
}
.sm2-decision-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
  padding-top: 14px;
  border-top: 1px solid var(--sm2-line);
}
.sm2-service-card__note {
  margin: 14px 0;
  padding: 13px 14px;
  border-left: 3px solid var(--sm2-brand);
  background: var(--sm2-surface-soft);
  white-space: pre-line;
}
.sm2-service-card__review {
  margin: 14px 0 0;
}
.sm2-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.sm2-document__icon {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--sm2-blue-soft);
  color: var(--sm2-blue);
}
.sm2-document__body {
  min-width: 0;
  flex: 1;
}
.sm2-document__action {
  align-self: center;
}
.sm2-timeline {
  position: relative;
  margin-left: 8px;
}
.sm2-timeline:before {
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 8px;
  width: 1px;
  background: var(--sm2-line);
  content: "";
}
.sm2-timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 17px minmax(0, 1fr);
  gap: 15px;
  padding: 0 0 21px;
}
.sm2-timeline-item.is-clickable {
  margin: 0 -10px;
  padding-inline: 10px;
  border-radius: 10px;
  transition: background 0.18s ease;
}
.sm2-timeline-item.is-clickable:hover {
  background: var(--sm2-surface-soft);
}
.sm2-timeline-item__link {
  color: var(--sm2-ink);
  text-decoration: none;
}
.sm2-timeline-item__link:after {
  position: absolute;
  inset: 0 0 12px;
  content: "";
}
.sm2-timeline-item__link:hover {
  color: var(--sm2-brand-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.sm2-timeline-item:last-child {
  padding-bottom: 0;
}
.sm2-timeline-item__dot {
  z-index: 1;
  width: 17px;
  height: 17px;
  margin-top: 2px;
  border: 4px solid var(--sm2-surface);
  border-radius: 50%;
  background: var(--sm2-brand);
  box-shadow: 0 0 0 1px var(--sm2-line);
}
.sm2-timeline-item h3 {
  margin: 0 0 3px;
  font-size: 15px;
}
.sm2-timeline-item p {
  margin: 0;
  color: var(--sm2-muted);
  font-size: 12px;
}
.sm2-timeline-item .sm2-timeline-item__context {
  margin-bottom: 3px;
  color: var(--sm2-ink);
  font-weight: 700;
}
.sm2-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 16px;
}
.sm2-pager a,
.sm2-pager span {
  min-width: 38px;
  height: 38px;
  border: 1px solid var(--sm2-line);
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #fff;
  text-decoration: none;
  font-size: 12px;
}
.sm2-pager .is-current {
  border-color: var(--sm2-brand);
  background: var(--sm2-brand);
  color: #fff;
}
.sm2-rating {
  margin-top: 15px;
  border-top: 1px solid var(--sm2-line);
  padding-top: 12px;
}
.sm2-rating summary {
  color: var(--sm2-blue);
  font-weight: 720;
  cursor: pointer;
}
.sm2-rating form {
  margin-top: 13px;
}
.sm2-stars {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 4px;
  border: 0;
  padding: 0;
  margin: 0;
}
.sm2-stars legend {
  margin-bottom: 5px;
  font-size: 12px;
}
.sm2-stars input {
  position: absolute;
  opacity: 0;
}
.sm2-stars label {
  color: #c7cecf;
  font-size: 29px;
  line-height: 1;
  cursor: pointer;
}
.sm2-stars input:checked ~ label,
.sm2-stars label:hover,
.sm2-stars label:hover ~ label {
  color: #d78a13;
}
.sm2-stars input:focus-visible + label {
  outline: 3px solid rgba(28, 98, 212, 0.3);
  outline-offset: 2px;
}
.sm2-device-data {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--sm2-line);
  border: 1px solid var(--sm2-line);
  border-radius: var(--sm2-radius);
  overflow: hidden;
}
.sm2-device-data > div {
  padding: 17px;
  background: #fff;
}
.sm2-device-data dt {
  color: var(--sm2-muted);
  font-size: 11px;
}
.sm2-device-data dd {
  margin: 4px 0 0;
  font-weight: 720;
}
.sm2-device-data > .sm2-device-data__wide {
  grid-column: 1 / -1;
}
.sm2-login-wall {
  padding: 32px;
  border: 1px dashed #b7c2c3;
  border-radius: var(--sm2-radius);
  background: var(--sm2-surface-soft);
  text-align: center;
}
.sm2-login-wall svg {
  width: 38px;
  color: var(--sm2-brand);
}
.sm2-sheet[hidden] {
  display: none;
}
.sm2-sheet {
  position: fixed;
  z-index: 99999;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 640px);
  background: rgba(9, 26, 36, 0.5);
  backdrop-filter: blur(3px);
}
.sm2-sheet__panel {
  grid-column: 2;
  min-height: 100%;
  max-height: 100vh;
  overflow: auto;
  background: #fff;
  box-shadow: -20px 0 70px rgba(9, 26, 36, 0.18);
  animation: sm2-slide 0.22s ease-out;
}
.sm2-sheet__head {
  position: sticky;
  z-index: 4;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 19px 24px;
  border-bottom: 1px solid var(--sm2-line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
}
.sm2-sheet__head h2 {
  margin: 0;
  font-size: 21px;
}
.sm2-sheet__close {
  width: 42px;
  padding: 0 !important;
  border: 1px solid var(--sm2-line) !important;
  background: #fff !important;
  color: var(--sm2-ink) !important;
}
.sm2-sheet__body {
  padding: 24px 26px 80px;
}
.sm2-step {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  padding: 18px 0;
  border-top: 1px solid var(--sm2-line);
}
.sm2-step:first-child {
  padding-top: 0;
  border-top: 0;
}
.sm2-step__number {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--sm2-ink);
  color: #fff;
  font-size: 12px;
  font-weight: 760;
}
.sm2-step__body h3 {
  margin: 3px 0 14px;
}
.sm2-step__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.sm2-check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  min-height: 44px;
  padding: 10px;
  border: 1px solid var(--sm2-line);
  border-radius: 9px;
  background: #fff;
}
.sm2-check input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--sm2-brand);
}
.sm2-upload-preview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 9px;
}
.sm2-upload-preview img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 7px;
}
.sm2-dialog-lock {
  overflow: hidden;
}
@keyframes sm2-slide {
  from {
    transform: translateX(36px);
    opacity: 0.7;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
.sm2-attachments {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 9px;
  margin-top: 14px;
}
.sm2-attachment {
  overflow: hidden;
  min-height: 72px;
  border: 1px solid var(--sm2-line);
  border-radius: 10px;
  background: var(--sm2-surface-soft);
  color: var(--sm2-ink);
  text-decoration: none;
}
.sm2-attachment--image {
  display: block;
  aspect-ratio: 4/3;
}
.sm2-attachment--image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}
.sm2-attachment--image:hover img {
  transform: scale(1.035);
}
.sm2-attachment--file {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 12px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
}
.sm2-attachment--file svg {
  width: 20px;
}
@container (max-width: 760px) {
  .sm2-gateway__header {
    grid-template-columns: 1fr;
  }
  .sm2-gateway__intro {
    min-height: 240px;
    padding: clamp(28px, 7cqw, 44px);
  }
  .sm2-gateway__intro h1 {
    font-size: clamp(32px, 7cqw, 44px);
  }
  .sm2-gateway__aside {
    padding: 24px clamp(28px, 7cqw, 44px);
  }
  .sm2-auth-grid {
    grid-template-columns: 1fr;
  }
  .sm2-device-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@container (max-width: 520px) {
  .sm2-device-grid {
    grid-template-columns: 1fr;
  }
  .sm2-gateway__body {
    padding: 20px;
  }
}
@media (max-width: 1100px) {
  .sm2-app {
    grid-template-columns: 190px minmax(0, 1fr);
    grid-template-areas: "head head" "nav main";
  }
  .sm2-context {
    display: none;
  }
  .sm2-device-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sm2-device-head__facts .sm2-head-fact:nth-child(n + 3) {
    display: none;
  }
}
@media (max-width: 760px) {
  .sm2 {
    width: min(100% - 20px, 680px);
    margin: 12px auto 86px;
    font-size: 14px;
  }
  .sm2:before {
    background: var(--sm2-canvas);
  }
  .sm2-gateway {
    border-radius: 16px;
  }
  .sm2-gateway__header {
    grid-template-columns: 1fr;
  }
  .sm2-gateway__intro {
    min-height: 240px;
    padding: 32px 24px;
  }
  .sm2-gateway__aside {
    padding: 23px 24px;
  }
  .sm2-gateway__body {
    padding: 20px;
  }
  .sm2-auth-grid,
  .sm2-device-grid {
    grid-template-columns: 1fr;
  }
  .sm2-gateway-toolbar {
    align-items: flex-start;
  }
  .sm2-app {
    display: block;
  }
  .sm2-device-head {
    grid-template-columns: 1fr;
    padding: 20px;
    border-radius: 14px;
  }
  .sm2-device-head h1 {
    font-size: 28px;
  }
  .sm2-device-head__facts {
    overflow: auto;
    margin: 4px -20px -20px;
    padding: 0 20px 16px;
    scrollbar-width: none;
  }
  .sm2-head-fact {
    min-width: 124px;
  }
  .sm2-nav {
    display: none;
  }
  .sm2-main {
    margin-top: 12px;
  }
  .sm2-mobile-nav {
    position: fixed;
    z-index: 9990;
    right: 8px;
    bottom: 8px;
    left: 8px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 6px;
    border: 1px solid rgba(16, 36, 50, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 12px 36px rgba(16, 36, 50, 0.18);
    backdrop-filter: blur(14px);
  }
  .sm2-mobile-nav.has-more {
    grid-template-columns: repeat(5, 1fr);
  }
  .sm2-mobile-nav.is-compact {
    grid-template-columns: repeat(2, 1fr);
  }
  .sm2-mobile-nav a {
    min-width: 0;
    padding: 7px 4px;
    border-radius: 9px;
    color: #56656e;
    text-align: center;
    text-decoration: none;
    font-size: 9px;
    font-weight: 720;
  }
  .sm2-mobile-nav a.is-active {
    background: var(--sm2-brand-soft);
    color: var(--sm2-brand-dark);
  }
  .sm2-mobile-nav svg {
    display: block;
    width: 19px;
    height: 19px;
    margin: 0 auto 2px;
  }
  .sm2-mobile-more {
    position: relative;
    min-width: 0;
  }
  .sm2-mobile-more > summary {
    min-height: 45px;
    padding: 7px 4px;
    border-radius: 9px;
    color: #56656e;
    text-align: center;
    font-size: 9px;
    font-weight: 720;
    cursor: pointer;
    list-style: none;
  }
  .sm2-mobile-more > summary::-webkit-details-marker {
    display: none;
  }
  .sm2-mobile-more.is-active > summary,
  .sm2-mobile-more[open] > summary {
    background: var(--sm2-brand-soft);
    color: var(--sm2-brand-dark);
  }
  .sm2-mobile-more > div {
    position: absolute;
    right: -2px;
    bottom: calc(100% + 13px);
    width: min(260px, calc(100vw - 16px));
    padding: 8px;
    border: 1px solid var(--sm2-line);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 45px rgba(16, 36, 50, 0.2);
  }
  .sm2-mobile-more > div a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 43px;
    padding: 9px 10px;
    text-align: left;
    font-size: 12px;
  }
  .sm2-mobile-more > div a svg {
    flex: 0 0 18px;
    margin: 0;
  }
  .sm2-toolbar {
    align-items: flex-start;
  }
  .sm2-toolbar h2 {
    font-size: 21px;
  }
  .sm2-toolbar__actions .sm2-button--secondary {
    display: none;
  }
  .sm2-kpis {
    grid-template-columns: 1fr 1fr;
  }
  .sm2-kpi {
    padding: 14px;
  }
  .sm2-kpi:nth-child(2) {
    border-right: 0;
  }
  .sm2-kpi:nth-child(3) {
    grid-column: 1/-1;
    border-top: 1px solid var(--sm2-line);
    border-right: 0;
  }
  .sm2-panel__head {
    padding: 16px 16px 10px;
  }
  .sm2-panel__body {
    padding: 0 16px 16px;
  }
  .sm2-filter {
    grid-template-columns: 1fr 130px;
  }
  .sm2-filter button {
    grid-column: 1/-1;
  }
  .sm2-ticket__head {
    padding: 15px;
  }
  .sm2-ticket__top {
    display: block;
  }
  .sm2-ticket__top time {
    display: block;
    margin-bottom: 7px;
  }
  .sm2-thread {
    padding-inline: 15px;
  }
  .sm2-message-bubble {
    max-width: 92%;
  }
  .sm2-reply {
    grid-template-columns: 1fr;
  }
  .sm2-reply button {
    justify-self: end;
  }
  .sm2-reply > div {
    flex-wrap: wrap;
  }
  .sm2-document-upload__grid {
    grid-template-columns: 1fr;
  }
  .sm2-service-card__head,
  .sm2-workflow__head {
    display: block;
  }
  .sm2-document {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
  }
  .sm2-document__action {
    grid-column: 2;
  }
  .sm2-device-data {
    grid-template-columns: 1fr;
  }
  .sm2-sheet {
    grid-template-columns: 1fr;
    padding-top: 52px;
    background: rgba(9, 26, 36, 0.58);
  }
  .sm2-sheet__panel {
    grid-column: 1;
    border-radius: 18px 18px 0 0;
  }
  .sm2-sheet__head {
    padding: 14px 16px;
  }
  .sm2-sheet__body {
    padding: 20px 18px 92px;
  }
  .sm2-form__row {
    grid-template-columns: 1fr;
  }
  .sm2-form__actions {
    margin: 8px -18px -92px;
    padding: 13px 18px 18px;
  }
  .sm2-upload-preview {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Versioned estimates. */
.sm2-estimate-list{display:grid;gap:18px}
.sm2-estimate-card{overflow:hidden;border:1px solid var(--sm2-line);border-radius:18px;background:#fff}
.sm2-estimate-card__head{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:24px;padding:20px;border-bottom:1px solid var(--sm2-line);background:linear-gradient(135deg,#f4f8f6,#fff)}
.sm2-estimate-card__head h3{margin:3px 0 7px;font-size:1.2rem}.sm2-estimate-card__head p{max-width:720px;margin:0;color:var(--sm2-muted)}
.sm2-estimate-card__value{display:grid;justify-items:end;align-content:start;gap:7px;text-align:right}.sm2-estimate-card__value strong{font-size:1.35rem}.sm2-estimate-card__value small{color:var(--sm2-muted)}
.sm2-estimate-lines{display:grid;padding:4px 20px}
.sm2-estimate-line{display:grid;grid-template-columns:28px minmax(0,1fr) auto minmax(100px,auto);gap:12px;align-items:center;padding:13px 0;border-bottom:1px solid var(--sm2-line)}
.sm2-estimate-line:last-child{border-bottom:0}.sm2-estimate-line>span{display:grid;width:25px;height:25px;place-items:center;border-radius:8px;background:var(--sm2-surface-soft);color:var(--sm2-muted);font-size:.68rem;font-weight:800}.sm2-estimate-line>div{display:grid}.sm2-estimate-line small{color:var(--sm2-muted)}.sm2-estimate-line b{font-size:.76rem}.sm2-estimate-line em{font-style:normal;font-weight:800;text-align:right}
.sm2-estimate-card__foot{display:grid;grid-template-columns:1fr auto;gap:14px;align-items:center;padding:14px 20px;border-top:1px solid var(--sm2-line);background:var(--sm2-surface-soft)}
.sm2-estimate-card__links{display:flex;flex-wrap:wrap;gap:9px;align-items:center}.sm2-estimate-versions,.sm2-estimate-terms{position:relative}.sm2-estimate-versions summary,.sm2-estimate-terms summary{cursor:pointer;color:var(--sm2-brand);font-weight:750}.sm2-estimate-versions>div{position:absolute;z-index:8;top:calc(100% + 8px);left:0;display:grid;width:280px;padding:10px;border:1px solid var(--sm2-line);border-radius:12px;background:#fff;box-shadow:0 15px 40px rgba(11,54,51,.12)}.sm2-estimate-versions span{padding:7px;border-bottom:1px solid var(--sm2-line);font-size:.75rem}.sm2-estimate-terms p{max-width:520px;margin:8px 0 0;color:var(--sm2-muted)}
.sm2-decision-actions{display:grid;grid-template-columns:1fr auto auto;gap:9px;padding:16px 20px;border-top:1px solid var(--sm2-line);background:#fffbea}.sm2-decision-actions label{grid-column:1/4;display:grid;gap:5px}.sm2-decision-actions textarea{width:100%;padding:10px;border:1px solid var(--sm2-line);border-radius:10px;background:#fff}.sm2-estimate-next{display:grid;grid-template-columns:auto 1fr;gap:7px 14px;padding:15px 20px;border-top:1px solid #cbe5d8;background:#eff9f3;color:#1b654b}.sm2-estimate-next.is-done{background:#edf4ff;color:#285a9e}.sm2-estimate-next span{color:inherit}
@media(max-width:760px){.sm2-estimate-card__head,.sm2-estimate-card__foot{grid-template-columns:1fr}.sm2-estimate-card__value{justify-items:start;text-align:left}.sm2-estimate-line{grid-template-columns:25px 1fr auto}.sm2-estimate-line b{grid-column:2}.sm2-estimate-line em{grid-column:3;grid-row:1/3}.sm2-decision-actions{grid-template-columns:1fr}.sm2-decision-actions label{grid-column:auto}.sm2-estimate-versions>div{position:static;width:100%;margin-top:8px}.sm2-estimate-next{grid-template-columns:1fr}}
@media (prefers-reduced-motion: reduce) {
  .sm2 * {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
.sm2-ticket-admin {
  border-top: 1px solid var(--sm2-line);
  background: #f7faf9;
}
.sm2-ticket-admin > summary {
  padding: 12px 17px;
  color: var(--sm2-brand-dark);
  font-size: 12px;
  font-weight: 760;
  cursor: pointer;
}
.sm2-ticket-admin__forms {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 17px 16px;
}
.sm2-ticket-admin__forms form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 9px;
  padding: 12px;
  border: 1px solid var(--sm2-line);
  border-radius: 10px;
  background: #fff;
}
.sm2-ticket-admin__forms label {
  display: grid;
  gap: 5px;
}
.sm2-ticket-admin__forms label > span {
  font-size: 11px;
  font-weight: 760;
  color: var(--sm2-muted);
}
.sm2-ticket-admin__forms select,
.sm2-ticket-admin__forms input {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--sm2-line-strong);
  border-radius: 8px;
  padding: 7px 9px;
  background: #fff;
  color: var(--sm2-ink);
  font: inherit;
}
.sm2-ticket-admin__forms button {
  min-height: 40px;
  white-space: nowrap;
}
.sm2-service-card,
.sm2-ticket,
.sm2-document,
.sm2-workflow {
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}
.sm2-service-card:hover,
.sm2-ticket:hover,
.sm2-document:hover,
.sm2-workflow:hover {
  border-color: #a9c6c0;
  box-shadow: 0 10px 28px rgba(16, 36, 50, 0.055);
}
@media (max-width: 760px) {
  .sm2-ticket-admin__forms {
    grid-template-columns: 1fr;
    padding-inline: 15px;
  }
  .sm2-ticket-admin__forms form {
    grid-template-columns: 1fr;
  }
  .sm2-ticket-admin__forms button {
    justify-self: start;
  }
  .sm2-sheet__panel {
    max-height: calc(100vh - 44px);
  }
  .sm2-step {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 9px;
  }
  .sm2-step__number {
    width: 26px;
    height: 26px;
  }
}

/* Customer account command center. */
.sm2-client-home{max-width:1240px;border:0;border-radius:0;background:transparent;box-shadow:none}.sm2-client-home .sm2-gateway__body{padding:0}.sm2-client-head{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:14px;padding:26px 28px;border-radius:22px;background:linear-gradient(125deg,#0b3936 0%,#0b7169 58%,#11889b 100%);color:#fff;box-shadow:0 22px 55px rgba(9,64,60,.19)}.sm2-client-head h1{margin:4px 0 6px;color:#fff;font-size:clamp(1.7rem,4vw,2.55rem);letter-spacing:-.045em}.sm2-client-head p{margin:0;color:rgba(255,255,255,.76)}.sm2-client-head .sm2-kicker{color:#8fe8d7}.sm2-client-head__actions{display:flex;align-items:center;gap:8px}.sm2-client-head__actions form{margin:0}.sm2-client-head__actions .sm2-button--secondary,.sm2-client-head__actions form button{border-color:rgba(255,255,255,.25);background:rgba(255,255,255,.1);color:#fff}.sm2-icon-action{display:grid;width:44px;height:44px;place-items:center;padding:0;border:1px solid rgba(255,255,255,.25);border-radius:12px;background:rgba(255,255,255,.1);color:#fff}.sm2-icon-action svg{width:20px;height:20px}
.sm2-client-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:14px}.sm2-client-kpis>div{display:grid;min-height:112px;align-content:space-between;padding:16px 18px;border:1px solid var(--sm2-line);border-radius:17px;background:#fff;box-shadow:0 8px 26px rgba(22,48,45,.045)}.sm2-client-kpis>div.is-active{border-color:#a9d7ca;background:#f1faf6}.sm2-client-kpis>div.is-danger{border-color:#efc0c8;background:#fff6f7}.sm2-client-kpis span{color:var(--sm2-muted);font-size:.67rem;font-weight:800;text-transform:uppercase;letter-spacing:.05em}.sm2-client-kpis strong{font-size:2rem;line-height:1}.sm2-client-kpis small{color:var(--sm2-muted);font-size:.68rem}
.sm2-action-center{margin-bottom:14px;padding:18px;border:1px solid #efd7a5;border-radius:18px;background:linear-gradient(140deg,#fffaf0,#fff);box-shadow:0 8px 26px rgba(22,48,45,.04)}.sm2-action-center>header{display:flex;align-items:center;justify-content:space-between;margin-bottom:11px}.sm2-action-center h2{margin:2px 0 0;font-size:1.08rem}.sm2-action-center>header>span{display:grid;min-width:30px;height:30px;place-items:center;border-radius:999px;background:#f2b843;color:#513300;font-weight:850}.sm2-action-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.sm2-action-list>a{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;padding:11px 12px;border:1px solid rgba(21,49,46,.08);border-radius:12px;background:#fff;color:var(--sm2-ink)}.sm2-action-list>a>i{width:8px;height:8px;border-radius:999px;background:var(--sm2-brand)}.sm2-action-list>a.is-danger>i{background:#c92d4f;box-shadow:0 0 0 5px #fde6eb}.sm2-action-list>a.is-warning>i{background:#df9209;box-shadow:0 0 0 5px #fff1d4}.sm2-action-list>a.is-active>i{background:#177bc5;box-shadow:0 0 0 5px #e4f2fc}.sm2-action-list>a>span{display:grid;gap:2px}.sm2-action-list strong{font-size:.75rem}.sm2-action-list small{color:var(--sm2-muted);font-size:.65rem}.sm2-action-list em{display:flex;align-items:center;gap:4px;color:var(--sm2-brand);font-size:.62rem;font-style:normal;font-weight:800}.sm2-action-list em svg{width:15px;height:15px}
.sm2-client-layout{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(300px,.45fr);gap:14px;align-items:start}.sm2-client-main,.sm2-client-side{display:grid;gap:14px}.sm2-client-side{position:sticky;top:16px}.sm2-client-section,.sm2-client-side-card{padding:20px;border:1px solid var(--sm2-line);border-radius:18px;background:#fff;box-shadow:0 8px 26px rgba(22,48,45,.045)}.sm2-client-section>header,.sm2-client-side-card>header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:14px}.sm2-client-section h2,.sm2-client-side-card h2{margin:2px 0 0;font-size:1.08rem}.sm2-client-section>header p{margin:4px 0 0;color:var(--sm2-muted);font-size:.72rem}.sm2-count{display:grid;min-width:32px;height:32px;place-items:center;border-radius:10px;background:var(--sm2-brand-soft);color:var(--sm2-brand);font-size:.72rem;font-weight:850}
.sm2-client-home .sm2-gateway-search{margin:0 0 12px;padding:8px}.sm2-client-home .sm2-gateway-search button{display:flex;align-items:center;gap:5px}.sm2-client-home .sm2-gateway-search button svg{width:17px;height:17px}.sm2-client-device-list{display:grid;gap:7px}.sm2-client-device-list>article{display:grid;grid-template-columns:auto minmax(0,1fr) minmax(210px,.6fr) auto;align-items:center;gap:14px;padding:13px;border:1px solid var(--sm2-line);border-left:4px solid #83bcae;border-radius:14px;background:#fcfdfc}.sm2-client-device-list>article.is-danger{border-left-color:#d62f52;background:#fffafb}.sm2-client-device-list>article.is-warning{border-left-color:#dd950f;background:#fffdf8}.sm2-client-device-list>article.is-active{border-left-color:#237fc0;background:#fafdff}.sm2-client-device__icon{display:grid;width:42px;height:42px;place-items:center;border-radius:12px;background:#e8f3ef;color:var(--sm2-brand)}.sm2-client-device__icon svg{width:21px;height:21px}.sm2-client-device__main{min-width:0}.sm2-client-device__main h3{margin:4px 0 2px;font-size:.88rem}.sm2-client-device__main p{overflow:hidden;margin:0;color:var(--sm2-muted);font-size:.65rem;text-overflow:ellipsis;white-space:nowrap}.sm2-health{display:flex;align-items:center;gap:5px;color:var(--sm2-muted);font-size:.56rem;font-weight:800;text-transform:uppercase}.sm2-health i{width:6px;height:6px;border-radius:50%;background:#2b9c72}.is-danger .sm2-health i{background:#d62f52}.is-warning .sm2-health i{background:#dd950f}.is-active .sm2-health i{background:#237fc0}.sm2-client-device-list dl{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0}.sm2-client-device-list dl div{display:grid;gap:2px}.sm2-client-device-list dt{color:var(--sm2-muted);font-size:.55rem;text-transform:uppercase}.sm2-client-device-list dd{margin:0;font-size:.68rem;font-weight:800}.sm2-client-device-list article>a{display:flex;align-items:center;gap:5px;padding:9px 10px;border-radius:10px;background:var(--sm2-brand-soft);color:var(--sm2-brand);font-size:.63rem;font-weight:800}.sm2-client-device-list article>a svg{width:15px;height:15px}
.sm2-site-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.sm2-site-grid article{padding:13px;border-radius:13px;background:#f4f8f6}.sm2-site-grid article>div{display:grid;width:31px;height:31px;place-items:center;border-radius:9px;background:#fff;color:var(--sm2-brand)}.sm2-site-grid svg{width:16px;height:16px}.sm2-site-grid h3{margin:10px 0 3px;font-size:.75rem}.sm2-site-grid p{margin:0;color:var(--sm2-muted);font-size:.61rem}.sm2-site-grid span{display:inline-block;margin-top:8px;padding:4px 7px;border-radius:999px;background:#fff1d7;color:#83540b;font-size:.54rem;font-weight:800}.sm2-site-grid span.is-ok{background:#e5f4ec;color:#236c50}
.sm2-client-activity{display:grid}.sm2-client-activity>a{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid var(--sm2-line);color:var(--sm2-ink)}.sm2-client-activity>a:last-child{border-bottom:0}.sm2-client-activity>a>span{display:grid;width:34px;height:34px;place-items:center;border-radius:10px;background:#eef5f2;color:var(--sm2-brand)}.sm2-client-activity>a>span.is-request{background:#edf5fc;color:#2c70a6}.sm2-client-activity>a>span.is-order{background:#fff3df;color:#946214}.sm2-client-activity svg{width:17px;height:17px}.sm2-client-activity div{display:grid;gap:2px;min-width:0}.sm2-client-activity strong{overflow:hidden;font-size:.7rem;text-overflow:ellipsis;white-space:nowrap}.sm2-client-activity small{overflow:hidden;color:var(--sm2-muted);font-size:.61rem;text-overflow:ellipsis;white-space:nowrap}.sm2-client-activity time{color:var(--sm2-muted);font:400 .57rem var(--sm-font-mono)}
.sm2-client-side-card{padding:17px}.sm2-client-side-card>header strong{font-size:1.2rem}.sm2-next-service{overflow:hidden;background:linear-gradient(145deg,#0d4641,#087f73);color:#fff}.sm2-next-service .sm2-kicker{color:#9ce9d9}.sm2-next-service>strong{display:block;margin:13px 0 0;font:650 3.2rem/1 var(--sm-font-display)}.sm2-next-service h2{color:#fff;font-size:1.15rem}.sm2-next-service p{margin:10px 0 0;color:rgba(255,255,255,.7);font-size:.67rem}.sm2-mini-list,.sm2-mini-docs{display:grid}.sm2-mini-list>a,.sm2-mini-docs>a{display:flex;align-items:center;gap:8px;padding:9px 0;border-bottom:1px solid var(--sm2-line);color:var(--sm2-ink)}.sm2-mini-list>a:last-child,.sm2-mini-docs>a:last-child{border-bottom:0}.sm2-mini-list>a>span{display:grid;min-width:0;flex:1;gap:2px}.sm2-mini-list strong,.sm2-mini-docs strong{overflow:hidden;font-size:.66rem;text-overflow:ellipsis;white-space:nowrap}.sm2-mini-list small,.sm2-mini-docs small{color:var(--sm2-muted);font-size:.57rem}.sm2-mini-list time{font:400 .56rem var(--sm-font-mono)}.sm2-mini-docs>a>span{display:grid;width:29px;height:29px;place-items:center;border-radius:8px;background:#f1f5f3;color:var(--sm2-brand)}.sm2-mini-docs>a>span svg{width:15px;height:15px}.sm2-mini-docs>a>div{display:grid;min-width:0;flex:1;gap:2px}.sm2-mini-docs>a>svg{width:15px;height:15px;color:var(--sm2-muted)}
.sm2-preference-panel{max-width:620px}.sm2-preference-list{display:grid;gap:7px;margin:18px 0}.sm2-preference-list label{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:start;gap:11px;padding:12px;border:1px solid var(--sm2-line);border-radius:12px;background:#fff;cursor:pointer}.sm2-preference-list input{width:18px;height:18px;margin-top:2px;accent-color:var(--sm2-brand)}.sm2-preference-list span{display:grid;gap:3px}.sm2-preference-list strong{font-size:.72rem}.sm2-preference-list small{color:var(--sm2-muted);font-size:.61rem}.sm2-trust-row{display:flex;flex-wrap:wrap;gap:8px;margin-top:20px}.sm2-trust-row span{display:flex;align-items:center;gap:6px;padding:7px 9px;border:1px solid rgba(255,255,255,.2);border-radius:999px;color:rgba(255,255,255,.82);font-size:.63rem;font-weight:750}.sm2-trust-row svg{width:15px;height:15px}
@media(max-width:980px){.sm2-client-layout{grid-template-columns:1fr}.sm2-client-side{position:static;grid-template-columns:repeat(3,1fr)}.sm2-client-device-list>article{grid-template-columns:auto minmax(0,1fr) auto}.sm2-client-device-list dl{grid-column:2}.sm2-client-device-list article>a{grid-column:3;grid-row:1/3}.sm2-action-list{grid-template-columns:1fr}}
@media(max-width:720px){.sm2-client-home{width:min(100% - 16px,680px);margin-top:8px}.sm2-client-head{align-items:flex-start;flex-direction:column;padding:22px 20px;border-radius:17px}.sm2-client-head__actions{width:100%}.sm2-client-head__actions .sm2-button--secondary,.sm2-client-head__actions form{flex:1}.sm2-client-head__actions form button{width:100%}.sm2-client-kpis{grid-template-columns:repeat(2,1fr)}.sm2-client-kpis>div{min-height:100px}.sm2-action-center{padding:15px}.sm2-action-list>a{grid-template-columns:auto minmax(0,1fr)}.sm2-action-list em{grid-column:2}.sm2-client-section{padding:16px}.sm2-client-side{grid-template-columns:1fr}.sm2-client-device-list>article{grid-template-columns:auto minmax(0,1fr)}.sm2-client-device-list dl{grid-column:1/-1}.sm2-client-device-list article>a{grid-column:1/-1;grid-row:auto;justify-content:center}.sm2-site-grid{grid-template-columns:1fr 1fr}}@media(max-width:440px){.sm2-client-kpis{grid-template-columns:1fr 1fr}.sm2-client-kpis>div{padding:13px}.sm2-client-kpis strong{font-size:1.65rem}.sm2-site-grid{grid-template-columns:1fr}.sm2-client-activity time{display:none}}
.sm2-gateway-toolbar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sm2-gateway-toolbar__actions form {
  margin: 0;
}
.sm2-gateway-search {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 8px;
  margin: -4px 0 22px;
  padding: 12px;
  border: 1px solid var(--sm2-line);
  border-radius: 12px;
  background: var(--sm2-surface-soft);
}
.sm2-gateway-search .sm2-field {
  gap: 0;
}
.sm2-gateway-search input {
  height: 44px;
}
@media (max-width: 760px) {
  .sm2-gateway-toolbar {
    display: grid;
  }
  .sm2-gateway-toolbar__actions {
    justify-content: flex-start;
  }
  .sm2-gateway-search {
    grid-template-columns: 1fr 1fr;
  }
  .sm2-gateway-search .sm2-field {
    grid-column: 1/-1;
  }
}

/* Expiring local draft for field-service visits. */
.sm2-draft-restore{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:8px;margin-bottom:14px;padding:12px;border:1px solid #b9d9cf;border-radius:13px;background:#edf8f3}.sm2-draft-restore>div{display:grid}.sm2-draft-restore strong{font-size:.78rem}.sm2-draft-restore small{color:var(--sm2-muted);font-size:.68rem}.sm2-draft-restore button{min-height:36px;padding:7px 11px;border:1px solid var(--sm2-line);border-radius:9px;background:#fff;color:var(--sm2-brand);font-size:.68rem;font-weight:800;cursor:pointer}@media(max-width:520px){.sm2-draft-restore{grid-template-columns:1fr 1fr}.sm2-draft-restore>div{grid-column:1/-1}.sm2-draft-restore button{width:100%}}

/* Device QR identity card. */
.sm2-qr-card__body{display:grid;grid-template-columns:190px minmax(0,1fr);align-items:center;gap:24px}.sm2-qr-card__image{display:grid;aspect-ratio:1;place-items:center;padding:12px;border:1px solid var(--sm2-line);border-radius:18px;background:#fff;box-shadow:0 10px 30px rgba(17,48,45,.07)}.sm2-qr-card__image img{display:block;width:100%;height:auto}.sm2-qr-card__content h3{margin:0 0 7px;font-size:1rem}.sm2-qr-card__content p{max-width:620px;margin:0;color:var(--sm2-muted);font-size:.76rem;line-height:1.6}.sm2-qr-card__actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:17px}.sm2-qr-card__actions .sm2-button{display:inline-flex;align-items:center;gap:7px}.sm2-qr-card__actions svg{width:17px;height:17px}
@media(max-width:620px){.sm2-qr-card__body{grid-template-columns:1fr}.sm2-qr-card__image{width:min(240px,100%);justify-self:center}.sm2-qr-card__actions{display:grid}.sm2-qr-card__actions .sm2-button{width:100%;justify-content:center}}

/* 4.4 explicit access context for staff and public QR sessions. */
.sm2-app.has-access-context{grid-template-areas:"context context" "head head" "nav main"}
.sm2-context-bar{grid-area:context;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:11px;padding:11px 14px;border:1px solid #b8d7cd;border-radius:14px;background:#edf8f3;color:#174a43}
.sm2-context-bar.is-public{border-color:#e6d4a8;background:#fff8e8;color:#745018}
.sm2-context-bar>span{display:grid;width:36px;height:36px;place-items:center;border-radius:11px;background:#fff;color:var(--sm2-brand)}
.sm2-context-bar.is-public>span{color:#9b6712}
.sm2-context-bar svg{width:18px;height:18px}
.sm2-context-bar strong,.sm2-context-bar small{display:block}
.sm2-context-bar strong{font-size:.72rem}.sm2-context-bar small{margin-top:1px;color:var(--sm2-muted);font-size:.64rem}
.sm2-context-bar>a{display:inline-flex;min-height:44px;align-items:center;gap:6px;padding:8px 11px;border-radius:10px;background:#fff;color:var(--sm2-brand-dark);font-size:.68rem;font-weight:800}
.sm2-context-bar>a svg{width:16px;height:16px}
@media(max-width:620px){.sm2-context-bar{grid-template-columns:auto minmax(0,1fr)}.sm2-context-bar>a{grid-column:1/-1;justify-content:center}}

/* 4.4 accessibility baseline for customer and public QR actions. */
.sm2 button,
.sm2 .sm2-button,
.sm2 input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.sm2 select,
.sm2 textarea,
.sm2-file-button,
.sm2 input[type="file"]::file-selector-button {
	min-height: 44px;
}
