@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=Manrope:wght@500;600;700&display=swap");
:root {
  --ink: #111311;
  --muted: #676a64;
  --line: #dddeda;
  --paper: #f3f2ed;
  --white: #fff;
  --signal: #d8ff45;
  --dark: #151714;
  --danger: #9d2b24;
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
h1,
h2,
p {
  margin-top: 0;
}
h1,
h2 {
  font-family: "Manrope", system-ui, sans-serif;
  letter-spacing: -0.045em;
  line-height: 1.08;
}
h1 {
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 600;
  margin-bottom: 12px;
}
h2 {
  font-size: 1.5rem;
}
.app-frame {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px 1fr;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  padding: 32px 24px;
  background: var(--dark);
  color: #fff;
  display: flex;
  flex-direction: column;
}
.brand {
  width: 174px;
  margin: 4px 8px 38px;
  line-height: 0;
  filter: invert(1);
}
.brand img,
.auth-brand img {
  width: 100%;
  height: auto;
}
.company-chip {
  padding: 16px;
  border: 1px solid #3b3e38;
  border-radius: 14px;
  margin-bottom: 28px;
  display: grid;
  gap: 4px;
}
.company-chip small,
.company-chip span {
  font-size: 0.69rem;
  letter-spacing: 0.1em;
  color: #aeb2aa;
}
.company-chip strong {
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar nav {
  display: grid;
  gap: 5px;
}
.sidebar nav a,
.nav-disabled {
  padding: 11px 12px;
  border-radius: 9px;
  font-size: 0.92rem;
}
.sidebar nav a:hover,
.sidebar nav a[aria-current="page"] {
  background: #292c27;
}
.nav-with-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.nav-badge {
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--signal);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 700;
}
.sidebar nav .nav-primary-action {
  border: 1px solid #55601f;
  background: #252a1c;
}
.sidebar nav .nav-primary-action:before {
  content: "+";
  margin-right: 8px;
  color: var(--signal);
}
.nav-disabled {
  color: #747970;
  display: flex;
  justify-content: space-between;
}
.nav-disabled small {
  font-size: 0.58rem;
  border: 1px solid #464a43;
  border-radius: 99px;
  padding: 3px 6px;
}
.nav-label {
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  color: #858a82;
  margin: 22px 12px 6px;
}
.logout {
  margin-top: auto;
}
.logout button {
  border: 0;
  background: transparent;
  color: #aeb2aa;
  padding: 12px;
}
.main {
  min-width: 0;
}
.content {
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
  padding: 60px 0 90px;
}
.mobile-head {
  display: none;
}
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}
.page-head p {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 0;
}
.page-head.compact {
  margin-bottom: 20px;
}
.onboarding-panel {
  margin-bottom: 28px;
  border-color: #a3b62f;
}
.selected-plan {
  outline: 2px solid #a3b62f;
}
.price-summary strong {
  font-family: "Manrope", system-ui;
  font-size: 2rem;
}
.inline-form {
  display: inline;
  margin-left: 8px;
}
.inline-form button {
  padding: 4px 8px;
}
.payment-list {
  display: grid;
  gap: 12px;
}
.payment-list article {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: #666a62;
}
.eyebrow:before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 1px #a3b62f;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 36px;
}
.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 25px;
  min-height: 152px;
  display: flex;
  flex-direction: column;
}
.stat > span {
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  color: var(--muted);
}
.stat strong {
  font-family: "Manrope", system-ui;
  font-size: 1.4rem;
  margin: auto 0 4px;
}
.stat small {
  color: var(--muted);
}
.stat-link {
  transition:
    border-color 160ms ease,
    transform 160ms ease;
}
.stat-link:hover,
.stat-link:focus-visible {
  border-color: #8d956e;
  transform: translateY(-2px);
}
.public-passport-management {
  display: grid;
  gap: 22px;
}
.public-passport-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.public-passport-summary > div {
  display: grid;
  gap: 5px;
}
.public-passport-summary span {
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
}
.public-passport-actions,
.indexing-form {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.indexing-form label {
  margin-right: auto;
}
.status-published {
  background: var(--signal);
}
.future-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.future {
  min-height: 330px;
  padding: 32px;
  border-radius: 19px;
  background: #e8e5dc;
  position: relative;
  overflow: hidden;
}
.future:after {
  content: "";
  position: absolute;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  border: 48px solid rgba(17, 19, 17, 0.05);
  right: -60px;
  bottom: -80px;
}
.future.dark {
  background: var(--dark);
  color: #fff;
}
.future.dark p {
  color: #aeb2aa;
}
.future > span:first-child {
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  color: #71746e;
}
.future h2 {
  margin-top: 82px;
  font-size: 2rem;
}
.future p {
  color: var(--muted);
  max-width: 440px;
}
.coming {
  display: inline-flex;
  border: 1px solid currentColor;
  border-radius: 99px;
  padding: 5px 9px;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 30px;
  margin-bottom: 18px;
}
.form-panel {
  max-width: 820px;
}
.form-panel form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-panel .form-errors,
.form-panel .button {
  grid-column: 1/-1;
}
.field {
  display: grid;
  gap: 7px;
}
.field label,
.read-only > span {
  font-size: 0.8rem;
  font-weight: 600;
}
.field input,
.field select {
  width: 100%;
  height: 48px;
  border: 1px solid #c9cbc5;
  border-radius: 9px;
  padding: 0 13px;
  background: #fff;
}
.field input:focus,
.field select:focus {
  outline: 3px solid rgba(216, 255, 69, 0.45);
  border-color: #78851f;
}
.field small,
.read-only small {
  font-size: 0.72rem;
  color: var(--muted);
}
.field-error input {
  border-color: var(--danger);
}
.error,
.form-errors p {
  color: var(--danger);
  font-size: 0.78rem;
  margin: 0;
}
.button {
  border: 1px solid var(--ink);
  border-radius: 99px;
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
}
.button:after {
  content: "↗";
  margin-left: 9px;
}
.button.secondary {
  background: transparent;
  color: var(--ink);
}
.read-only {
  display: grid;
  gap: 4px;
  background: #f3f2ed;
  border-radius: 11px;
  padding: 18px;
  margin-bottom: 24px;
}
.compact-panel {
  max-width: 820px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.compact-panel p {
  color: var(--muted);
  margin: 0;
}
.table-panel {
  padding: 0;
  overflow: hidden;
}
.table-wrap {
  overflow-x: auto;
}
.table-wrap .sr-only {
  left: 0;
  top: 0;
}
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 850px;
}
th,
td {
  text-align: left;
  padding: 17px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 0.87rem;
}
th {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  background: #f8f8f5;
}
td small {
  display: block;
  color: var(--muted);
}
.role {
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 4px 8px;
  font-size: 0.72rem;
}
.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6ba339;
  margin-right: 7px;
}
.status-dot.off {
  background: #999;
}
.actions-cell {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
}
.actions-cell form {
  display: flex;
  gap: 6px;
}
.actions-cell select,
.actions-cell button {
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  padding: 0 8px;
}
.actions-cell .danger {
  color: var(--danger);
}
.messages {
  margin-bottom: 20px;
}
.message {
  padding: 13px 16px;
  border-radius: 9px;
  background: #e4eccd;
}
.message.error {
  background: #f3dcd9;
  color: #7a211c;
}
.company-list {
  display: grid;
  gap: 10px;
  max-width: 760px;
}
.company-list form button {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 13px;
  padding: 20px;
  display: flex;
  justify-content: space-between;
}
.company-list span {
  color: var(--muted);
}
.auth-body {
  min-height: 100vh;
  background: linear-gradient(130deg, #e8e5dc 0, #f3f2ed 52%, #dfe1dc 100%);
}
.auth-shell {
  width: min(540px, calc(100% - 36px));
  margin: 0 auto;
  padding: 50px 0;
}
.auth-brand {
  display: block;
  width: 190px;
  margin: 0 auto 46px;
}
.auth-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(28px, 6vw, 48px);
  box-shadow: 0 30px 80px rgba(20, 24, 17, 0.1);
}
.auth-card h1 {
  font-size: clamp(2.2rem, 6vw, 3.5rem);
}
.auth-card > p {
  color: var(--muted);
}
.auth-role-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin: -18px -18px 30px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #f3f2ed;
}
.auth-role-tabs a {
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-role-tabs a.is-active {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 2px 8px rgba(20, 24, 17, 0.08);
}
.auth-card form {
  display: grid;
  gap: 17px;
  margin-top: 28px;
}
.auth-card .button {
  width: 100%;
  margin-top: 5px;
}
.auth-card .muted {
  font-size: 0.83rem;
  margin: 20px 0 0;
}
.auth-card .muted a {
  text-decoration: underline;
}
.marketing-link {
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 22px;
}
.error-page {
  padding: 100px 0;
}
.error-page > span {
  font-family: "Manrope";
  font-size: 5rem;
  color: #babdb5;
}
.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: 900px) {
  .app-frame {
    display: block;
  }
  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    padding: 18px 20px;
    display: grid;
    grid-template-columns: 1fr auto;
  }
  .sidebar .brand {
    width: 145px;
    margin: 5px 0;
    filter: invert(1);
  }
  .company-chip,
  .sidebar nav {
    grid-column: 1/-1;
  }
  .company-chip {
    margin: 18px 0;
  }
  .sidebar nav {
    display: flex;
    overflow-x: auto;
  }
  .sidebar nav a,
  .nav-disabled {
    white-space: nowrap;
  }
  .nav-label,
  .logout {
    display: none;
  }
  .content {
    width: min(100% - 34px, 760px);
    padding: 42px 0 70px;
  }
  .stat-grid {
    grid-template-columns: 1fr;
  }
  .future-grid {
    grid-template-columns: 1fr;
  }
  .page-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .form-panel form {
    grid-template-columns: 1fr;
  }
  .form-panel .form-errors,
  .form-panel .button {
    grid-column: auto;
  }
}
@media (max-width: 560px) {
  .sidebar nav .nav-disabled {
    display: none;
  }
  .compact-panel {
    align-items: flex-start;
    flex-direction: column;
  }
  .auth-shell {
    padding-top: 30px;
  }
  .auth-brand {
    margin-bottom: 28px;
  }
  .auth-role-tabs {
    margin: -12px -12px 26px;
  }
}

/* M17.4 application design system convergence */
:root {
  --radius-xs: 7px;
  --radius-sm: 11px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --success-bg: #e8f2bf;
  --warning-bg: #fff0c8;
  --info-bg: #dfeaf8;
}

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: clip;
}

body {
  max-width: 100%;
  overflow-x: clip;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #9dbb1f;
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 18px;
  z-index: 1000;
  padding: 11px 16px;
  border-radius: var(--radius-xs);
  background: var(--white);
  color: var(--ink);
  font-weight: 700;
}

.skip-link:focus {
  top: 18px;
}

.app-frame {
  grid-template-columns: 244px minmax(0, 1fr);
}

.sidebar {
  padding: 22px 18px;
}

.sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sidebar .brand {
  width: 148px;
  margin: 5px 8px 25px;
}

.company-chip {
  margin-bottom: 18px;
  padding: 13px 14px;
  border-radius: var(--radius-sm);
}

.app-nav {
  display: grid;
  gap: 3px;
}

.sidebar .app-nav > a,
.nav-group summary,
.nav-group div a {
  min-height: 42px;
  padding: 10px 12px;
  border-radius: var(--radius-xs);
  font-size: 0.86rem;
}

.nav-group {
  border-top: 1px solid #30332e;
  margin-top: 10px;
  padding-top: 8px;
}

.nav-group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #aeb2aa;
  cursor: pointer;
  list-style: none;
}

.nav-group summary::-webkit-details-marker {
  display: none;
}

.nav-group summary::after {
  content: "+";
  margin-left: auto;
}

.nav-group[open] summary::after {
  content: "−";
}

.nav-group summary .nav-badge {
  margin-left: auto;
}

.nav-group div {
  display: grid;
  gap: 2px;
  padding: 2px 0 4px 10px;
}

.nav-group div a {
  color: #d4d7d1;
}

.mobile-nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid #434740;
  border-radius: 50%;
  background: transparent;
  place-content: center;
  gap: 4px;
}

.mobile-nav-toggle > span:not(.sr-only) {
  display: block;
  width: 17px;
  height: 1px;
  background: #fff;
}

.logout button {
  width: 100%;
  color: #aeb2aa;
  text-align: left;
  font-size: 0.76rem;
}

.app-context-bar {
  min-height: 54px;
  padding: 0 max(28px, calc((100vw - 244px - 1280px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(243, 242, 237, 0.9);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 0.76rem;
}

.app-context-bar a {
  font-weight: 700;
}

.content {
  width: min(1280px, calc(100% - 56px));
  padding: 48px 0 84px;
}

.page-head {
  margin-bottom: 30px;
}

.page-head > div:first-child {
  max-width: 780px;
}

.page-head h1 {
  font-size: clamp(2.15rem, 4vw, 3.7rem);
}

.panel,
.stat,
.after-sales-stat {
  border-radius: var(--radius-md);
  box-shadow: 0 1px 0 rgba(17, 19, 17, 0.02);
}

.dashboard-command {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
}

.dashboard-command a {
  min-width: 0;
  min-height: 156px;
  padding: 24px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

.dashboard-command a:last-child {
  border-right: 0;
}

.dashboard-command span,
.dashboard-system-strip span,
.machine-health-grid span {
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.dashboard-command strong {
  margin: auto 0 2px;
  font:
    600 2.3rem "Manrope",
    system-ui;
}

.dashboard-command small,
.dashboard-system-strip span,
.machine-health-grid small {
  color: var(--muted);
}

.dashboard-command a:hover,
.owner-machine-row:hover {
  background: #f8f9f1;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.75fr);
  gap: 18px;
}

.dashboard-grid > .panel {
  margin: 0 0 18px;
}

.dashboard-actions > a {
  display: grid;
  gap: 3px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}

.dashboard-actions > a span {
  color: var(--muted);
  font-size: 0.78rem;
}

.dashboard-system-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  align-items: center;
  gap: 18px;
  padding: 20px 24px;
}

.dashboard-system-strip > div {
  display: grid;
  gap: 4px;
}

.machine-page-head {
  align-items: flex-start;
}

.machine-page-head code {
  font-size: 0.9em;
}

.machine-jump-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  gap: 6px;
  margin: -12px 0 18px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(243, 242, 237, 0.94);
  backdrop-filter: blur(12px);
  overflow-x: auto;
}

.machine-jump-nav a {
  flex: 0 0 auto;
  padding: 8px 13px;
  border-radius: 999px;
  background: var(--white);
  font-size: 0.76rem;
  font-weight: 700;
}

.machine-identity-overview {
  grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
  padding: 24px;
}

.machine-health-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 28px;
}

.machine-health-grid article {
  min-height: 118px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  display: flex;
  flex-direction: column;
}

.machine-health-grid strong {
  margin: auto 0 3px;
}

.machine-workspace [id^="machine-"] {
  scroll-margin-top: 70px;
}

.storage-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 14px;
}

.storage-presets button {
  min-height: 38px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8f8f5;
  color: var(--ink);
  font-weight: 700;
}

/* Owner Account uses the same tokens and machine-row language as the manufacturer app. */
.owner-app-body {
  padding: 24px;
  background: var(--paper);
}

.owner-app-shell {
  width: min(100%, 1040px);
  min-height: calc(100vh - 48px);
  margin: auto;
  padding: clamp(24px, 5vw, 52px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 24px 70px rgba(17, 19, 17, 0.08);
}

.owner-app-shell .top {
  margin-bottom: 46px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.owner-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.owner-page-head > div {
  max-width: 650px;
}

.owner-page-head h1 {
  margin-bottom: 10px;
}

.owner-machine-list {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
}

.owner-machine-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto 24px;
  align-items: center;
  gap: 16px;
  min-height: 94px;
  padding: 17px 20px;
  border-bottom: 1px solid var(--line);
}

.owner-machine-row:last-child {
  border-bottom: 0;
}

.owner-machine-mark {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--dark);
  color: var(--signal);
  font-weight: 800;
}

.owner-machine-row > span:nth-child(2) {
  display: grid;
  gap: 3px;
}

.owner-machine-row small {
  color: var(--muted);
}

.owner-machine-state {
  max-width: 190px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--success-bg);
  color: #303719;
  font-size: 0.74rem;
  font-weight: 700;
  text-align: center;
}

.owner-requests {
  margin-top: 34px;
}

.owner-requests .request {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 18px;
  padding: 16px 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
}

.owner-requests .request > p,
.owner-requests .request > small {
  grid-column: 1 / -1;
}

@media (max-width: 1100px) {
  .dashboard-command,
  .machine-health-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-command a:nth-child(2) {
    border-right: 0;
  }

  .dashboard-command a:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .dashboard-system-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .app-frame {
    display: block;
  }

  .sidebar {
    position: relative;
    height: auto;
    width: 100%;
    padding: 13px 17px;
    display: block;
  }

  .sidebar .brand {
    margin: 4px 0;
  }

  .mobile-nav-toggle {
    display: grid;
  }

  .company-chip {
    margin: 12px 0 8px;
  }

  .sidebar .app-nav {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #343832;
  }

  .sidebar .app-nav[data-collapsed="true"] {
    display: none;
  }

  .logout {
    margin-top: 10px;
  }

  .app-context-bar {
    display: none;
  }

  .content {
    width: min(100% - 34px, 800px);
    padding: 34px 0 64px;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .machine-jump-nav {
    top: 8px;
  }

  .machine-identity-overview {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .page-head h1 {
    font-size: clamp(2rem, 11vw, 3rem);
  }

  .panel {
    padding: 22px;
  }

  .table-panel,
  .maintenance-preview-list,
  .service-preview-list,
  .support-preview-list {
    padding: 0;
  }

  .page-head .head-actions,
  .page-head .head-actions .button,
  .commercial-action .button {
    width: 100%;
  }

  .dashboard-command,
  .machine-health-grid,
  .dashboard-system-strip {
    grid-template-columns: 1fr;
  }

  .dashboard-command a {
    min-height: 118px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .dashboard-command a:last-child {
    border-bottom: 0;
  }

  .machine-jump-nav {
    margin-inline: -4px;
    border-radius: var(--radius-sm);
  }

  .owner-app-body {
    padding: 0;
  }

  .owner-app-shell {
    min-height: 100vh;
    padding: 22px 17px 38px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .owner-page-head {
    align-items: stretch;
    flex-direction: column;
  }

  .owner-page-head .button {
    width: 100%;
  }

  .owner-machine-row {
    grid-template-columns: 44px minmax(0, 1fr) 18px;
    gap: 12px;
    padding: 15px;
  }

  .owner-machine-mark {
    width: 44px;
    height: 44px;
  }

  .owner-machine-state {
    grid-column: 2;
    width: max-content;
    max-width: 100%;
  }

  .owner-machine-row > b {
    grid-column: 3;
    grid-row: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.auth-next {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.auth-next .button {
  width: auto;
  margin: 0;
}
.auth-legal {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
}
.selected-plan-note {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  border: 1px solid #a3b62f;
  border-radius: 10px;
  background: #f7fbdc;
  font-size: 0.82rem;
}
.optional {
  color: var(--muted);
  font-weight: 400;
}
.subscription-overview,
.billing-profile-summary,
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.commercial-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin: 0 0 24px;
  padding: clamp(24px, 4vw, 38px);
  border-radius: 20px;
  background: #151714;
  color: #fff;
  box-shadow: 0 20px 52px #11131124;
}
.commercial-action .eyebrow {
  color: #d8ff45;
}
.commercial-action h2 {
  margin: 4px 0 8px;
}
.commercial-action p {
  max-width: 720px;
  margin: 0;
  color: #d4d8d0;
}
.commercial-action .button {
  flex: 0 0 auto;
}
.subscription-overview p,
.billing-profile-summary p {
  margin-bottom: 0;
  color: var(--muted);
}
.plan-section {
  margin: 54px 0 28px;
}
.plan-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}
.plan-section-head > div:first-child {
  max-width: 650px;
}
.plan-toggle {
  display: inline-flex;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #e9e8e2;
}
.plan-toggle button {
  border: 0;
  border-radius: 999px;
  background: transparent;
  padding: 10px 16px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}
.plan-toggle button.active {
  background: var(--dark);
  color: #fff;
}
.plan-toggle button:focus-visible,
.text-link:focus-visible,
details summary:focus-visible {
  outline: 3px solid rgba(216, 255, 69, 0.7);
  outline-offset: 3px;
}
.commitment-banner {
  margin: 18px 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}
.saas-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.saas-plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}
.saas-plan-card.featured {
  border-color: #89952d;
  box-shadow: 0 18px 50px rgba(27, 31, 18, 0.1);
}
.popular-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  border-radius: 999px;
  background: var(--signal);
  padding: 5px 9px;
  font-size: 0.64rem;
  font-weight: 700;
}
.plan-name {
  margin-bottom: 28px;
  font:
    600 1.15rem "Manrope",
    system-ui;
}
.plan-price {
  display: grid;
  gap: 3px;
}
.plan-price strong {
  font:
    600 clamp(2rem, 3vw, 2.65rem) "Manrope",
    system-ui;
  letter-spacing: -0.05em;
}
.plan-price span,
.plan-commitment,
.plan-action small,
.disabled-action {
  color: var(--muted);
  font-size: 0.78rem;
}
.plan-commitment {
  min-height: 42px;
  margin: 12px 0 20px;
  font-weight: 600;
}
.plan-capabilities {
  padding: 20px 0 4px;
  margin: 0;
  border-top: 1px solid var(--line);
  list-style: none;
  display: grid;
  gap: 12px;
  font-size: 0.86rem;
}
.plan-capabilities li:before {
  content: "✓";
  margin-right: 8px;
  color: #66721b;
  font-weight: 700;
}
.plan-action {
  margin-top: auto;
  padding-top: 26px;
  display: grid;
  gap: 10px;
}
.plan-action .button {
  width: 100%;
  text-align: center;
}
.request-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 22px;
  font-size: 0.78rem;
}
.request-legal-links a {
  color: var(--muted);
  text-decoration: underline;
}
.disabled-button {
  opacity: 0.48;
  cursor: not-allowed;
}
.record-list {
  display: grid;
  gap: 0;
}
.record-row {
  padding: 18px 0;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.record-row:first-child {
  border-top: 0;
}
.record-row p,
.record-row small {
  margin: 4px 0 0;
  color: var(--muted);
}
.status-pill {
  display: inline-flex;
  border: 1px solid #b9c563;
  border-radius: 999px;
  background: #f5f8dd;
  padding: 5px 9px;
  font-size: 0.7rem;
  white-space: nowrap;
}
.status-off {
  border-color: var(--line);
  background: #efefeb;
  color: var(--muted);
}
.billing-profile-form {
  max-width: 980px;
}
.form-section {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.5fr);
  gap: 46px;
}
.form-section-copy {
  display: flex;
  gap: 16px;
}
.form-section-copy > span {
  color: #89952d;
  font:
    600 0.75rem "Manrope",
    system-ui;
}
.form-section-copy p {
  color: var(--muted);
  font-size: 0.82rem;
}
.form-section-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.field-span {
  grid-column: 1 / -1;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 8px;
}
.operations-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.operations-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.operation-card {
  display: flex;
  flex-direction: column;
}
.operation-card > p:not(.eyebrow),
.operation-context {
  color: var(--muted);
  font-size: 0.84rem;
}
.operation-card form {
  margin-top: auto;
  display: grid;
  gap: 14px;
}
.operation-card .button {
  width: 100%;
}
.operations-search label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.8rem;
  font-weight: 600;
}
.operations-search form > div {
  display: flex;
  gap: 10px;
}
.operations-search input,
.record-row details input {
  width: 100%;
  height: 46px;
  border: 1px solid #c9cbc5;
  border-radius: 9px;
  padding: 0 13px;
}
.operations-search input {
  flex: 1;
}
.text-link,
.back-link,
details summary {
  color: #47500d;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.back-link {
  display: inline-block;
  margin-bottom: 24px;
}
.record-row details form {
  width: min(320px, 70vw);
  padding-top: 12px;
  display: grid;
  gap: 8px;
}
.record-row details label {
  display: grid;
  gap: 5px;
  font-size: 0.76rem;
}
.record-row details button {
  border: 1px solid var(--danger);
  border-radius: 8px;
  background: #fff;
  color: var(--danger);
  padding: 9px 12px;
}
.audit-list > div {
  display: grid;
  grid-template-columns: 190px 1fr 220px;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
}
.audit-list time,
.audit-list span {
  color: var(--muted);
}
.notice-warning {
  background: #fff3cf;
  color: #654f0f;
}
.dashboard-attention {
  margin-bottom: 28px;
}
.attention-summary-list {
  display: grid;
  gap: 0;
}
.attention-summary-list a {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.attention-summary-list strong,
.attention-summary-list small {
  display: block;
}
.attention-summary-list small,
.attention-ok,
.attention-note {
  color: var(--muted);
}
.attention-ok {
  margin: 0;
}
.attention-list {
  display: grid;
  gap: 14px;
  margin-bottom: 24px;
}
.attention-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  padding: 24px;
  border: 1px solid var(--line);
  border-left-width: 5px;
  border-radius: 16px;
  background: var(--white);
}
.attention-critical {
  border-left-color: var(--danger);
}
.attention-warning {
  border-left-color: #b18416;
}
.attention-info {
  border-left-color: #61718a;
}
.attention-card h2 {
  margin: 8px 0;
}
.attention-card p {
  margin: 0;
  color: var(--muted);
}
.attention-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.severity-label {
  display: inline-block;
  width: max-content;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 3px 7px;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.attention-empty {
  display: flex;
  align-items: center;
  gap: 18px;
}
.attention-empty > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #e4eccd;
  font-weight: 700;
}
.attention-empty h2,
.attention-empty p {
  margin: 0;
}
.attention-empty p {
  color: var(--muted);
  margin-top: 5px;
}
.request-count {
  min-width: 155px;
  padding: 18px 22px;
  border-radius: 14px;
  background: var(--dark);
  color: var(--white);
}
.request-count span,
.request-count strong {
  display: block;
}
.request-count span {
  color: #bfc3ba;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
}
.request-count strong {
  margin-top: 5px;
  color: var(--signal);
  font-family: "Manrope", system-ui;
  font-size: 2rem;
}
.request-filter-panel {
  margin-top: 28px;
}
.request-filters {
  display: grid;
  grid-template-columns: minmax(220px, 2fr) repeat(3, minmax(145px, 1fr)) auto;
  align-items: end;
  gap: 12px;
}
.request-filters label,
.status-action-card form {
  display: grid;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
}
.request-filters input,
.request-filters select,
.status-action-card select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 9px 11px;
}
.request-filter-actions {
  display: flex;
  gap: 8px;
}
.request-filter-actions .button {
  white-space: nowrap;
}
.request-status-new {
  border-color: #879629;
  background: #f4f8d8;
  font-weight: 700;
}
.sales-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  align-items: start;
  gap: 18px;
}
.sales-request-details dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
  margin: 0;
}
.sales-request-details dl div {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.sales-request-details dt {
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.sales-request-details dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
}
.sales-request-details a,
.sales-message {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.sales-message {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  text-decoration: none;
}
.sales-message p {
  overflow-wrap: anywhere;
}
.status-action-card {
  position: sticky;
  top: 24px;
}
.status-action-card > p:not(.eyebrow) {
  color: var(--muted);
}
.status-action-card form .button {
  margin-top: 8px;
}
@media (max-width: 1100px) {
  .saas-plan-grid,
  .operations-grid {
    grid-template-columns: 1fr;
  }
  .operations-summary {
    grid-template-columns: 1fr 1fr;
  }
  .request-filters {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 760px) {
  .commercial-action,
  .subscription-overview,
  .billing-profile-summary,
  .plan-section-head,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .attention-card {
    align-items: flex-start;
    flex-direction: column;
  }
  .attention-card .button {
    width: 100%;
    text-align: center;
  }
  .operations-head {
    align-items: stretch;
  }
  .request-count {
    min-width: 0;
  }
  .request-filters,
  .sales-detail-grid,
  .sales-request-details dl {
    grid-template-columns: 1fr;
  }
  .request-filter-actions .button {
    flex: 1;
    text-align: center;
  }
  .status-action-card {
    position: static;
  }
  .plan-toggle {
    width: 100%;
  }
  .plan-toggle button {
    flex: 1;
  }
  .form-section {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .operations-summary,
  .form-section-fields {
    grid-template-columns: 1fr;
  }
  .field-span {
    grid-column: auto;
  }
  .operations-search form > div,
  .form-actions,
  .record-row {
    align-items: stretch;
    flex-direction: column;
  }
  .operations-search .button,
  .form-actions .button {
    width: 100%;
  }
  .audit-list > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

/* M18 private DPP forms reuse application panels, controls and responsive records. */
.dpp-field-card {
  margin-bottom: 1rem;
}

.dpp-field-card .section-heading,
.dpp-field-current,
.dpp-evidence {
  overflow-wrap: anywhere;
}

.dpp-field-card details,
.dpp-evidence {
  margin-top: 1rem;
}

.dpp-field-card details form {
  margin-top: 0.75rem;
  max-width: 42rem;
}

.dpp-field-current {
  display: grid;
  gap: 0.35rem;
  padding: 0.75rem 0;
}

.dpp-field-current strong {
  white-space: pre-wrap;
}

.dpp-evidence .record-row {
  gap: 1rem;
  flex-wrap: wrap;
}

.dpp-field-card input,
.dpp-field-card select,
.dpp-field-card textarea,
.dpp-evidence select {
  max-width: 100%;
}

textarea {
  width: 100%;
  border: 1px solid #c9cbc5;
  border-radius: 9px;
  padding: 13px;
  background: #fff;
  resize: vertical;
}
.field textarea:focus {
  outline: 3px solid rgba(216, 255, 69, 0.45);
  border-color: #78851f;
}
.dashboard-stats {
  grid-template-columns: repeat(4, 1fr);
}
.dashboard-stats-wide {
  grid-template-columns: repeat(3, 1fr);
}
.entitlement-strip {
  display: flex;
  padding: 22px 26px;
}
.entitlement-strip div {
  display: grid;
  gap: 5px;
}
.entitlement-strip span,
.passport-facts span {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.entitlement-strip small,
.passport-qr small {
  color: var(--muted);
}
.passport-filters {
  grid-template-columns:
    minmax(220px, 1fr) minmax(150px, 220px) minmax(190px, 260px)
    auto;
}
.passport-detail-grid {
  display: grid;
  grid-template-columns: minmax(220px, 300px) 1fr;
  gap: 42px;
}
.passport-qr {
  display: grid;
  gap: 12px;
}
.passport-qr p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}
.passport-qr img {
  width: min(100%, 264px);
  height: auto;
  border: 1px solid var(--line);
}
.machine-identity-label {
  display: grid;
  gap: 16px;
  width: min(100%, 360px);
  margin: 0;
  padding: 20px;
  border: 2px solid var(--ink);
  background: #fff;
  color: var(--ink);
}
.machine-identity-label header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 11px;
  border-bottom: 3px solid var(--ink);
}
.machine-identity-label header strong {
  font:
    700 1.15rem "Manrope",
    system-ui,
    sans-serif;
}
.machine-identity-label header span,
.machine-identity-label dt {
  font:
    600 0.6rem ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  letter-spacing: 0.1em;
}
.passport-qr .machine-identity-label img {
  width: min(100%, 320px);
  margin-inline: auto;
  border: 0;
  image-rendering: crisp-edges;
}
.machine-identity-label dl {
  display: grid;
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--ink);
}
.machine-identity-label dl div {
  display: grid;
  gap: 4px;
  padding: 10px 0;
  border-bottom: 1px solid var(--ink);
}
.machine-identity-label dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 700;
  line-height: 1.3;
}
.machine-identity-label > a {
  overflow-wrap: anywhere;
  color: var(--ink);
  font:
    600 0.72rem ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  text-decoration: none;
}
@media print {
  .machine-identity-label {
    width: 120mm;
    max-width: 100%;
    break-inside: avoid;
    border: 0.6mm solid #000;
    background: #fff !important;
    color: #000 !important;
    box-shadow: none;
    print-color-adjust: exact;
  }
  .passport-qr .machine-identity-label img {
    image-rendering: auto;
  }
}
.passport-facts {
  display: grid;
  gap: 20px;
}
.passport-facts > div {
  display: grid;
  gap: 5px;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--line);
}
.passport-facts a {
  overflow-wrap: anywhere;
  text-decoration: underline;
}
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin-top: 24px;
}
.status-available,
.status-delivered {
  background: #eaf2d5;
  border-color: #b9cb86;
}
.status-voided {
  background: #f3dcd9;
  border-color: #d8aaa6;
  color: var(--danger);
}
.status-in_production,
.status-shipped {
  background: #f2efe2;
}
.activation-shell {
  width: min(100%, 760px);
  margin: 0 auto;
}
.activation-start-shell {
  width: min(100%, 940px);
}
.activation-head h1 code {
  font: inherit;
}
.activation-card form {
  display: grid;
  gap: 18px;
}
.direct-id-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(300px, 1.2fr);
  gap: 42px;
  align-items: end;
}
.direct-id-card h2 {
  margin-bottom: 8px;
}
.direct-id-card p {
  margin: 0;
  color: var(--muted);
}
.activation-search {
  grid-template-columns: 1fr auto;
}
.selection-count {
  color: var(--muted);
  font-size: 0.84rem;
}
.compact-button {
  min-height: 38px;
  padding: 8px 15px;
  font-size: 0.8rem;
}
.identity-selector-cards .button,
.passport-record-list .button {
  width: 100%;
}
.activation-primary {
  min-height: 52px;
}
.review-card {
  display: grid;
  gap: 22px;
}
.review-list {
  margin: 0;
  display: grid;
  min-width: 0;
}
.review-list > div {
  display: grid;
  grid-template-columns: minmax(150px, 0.7fr) 1.3fr;
  gap: 20px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}
.review-list dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.review-list dd {
  margin: 0;
  font-weight: 600;
  min-width: 0;
  overflow-wrap: anywhere;
}
.permanence-note {
  margin: 0;
  padding: 16px;
  border-radius: 11px;
  background: #f3f2ed;
  color: var(--muted);
}
.activation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.activation-success {
  padding: clamp(28px, 6vw, 52px);
}
.activation-success h1 {
  font-size: clamp(2.2rem, 7vw, 4.2rem);
}
.success-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 28px;
  border-radius: 50%;
  background: var(--signal);
  font-size: 1.55rem;
  font-weight: 700;
}
.mobile-record-list {
  display: none;
}
.instance-filters {
  grid-template-columns: minmax(240px, 1fr) minmax(210px, 340px) auto;
}
@media (max-width: 900px) {
  .dashboard-stats-wide,
  .passport-detail-grid,
  .passport-filters,
  .instance-filters,
  .direct-id-card {
    grid-template-columns: 1fr;
  }
  .activation-shell .panel {
    padding: 24px;
  }
  .review-list > div {
    grid-template-columns: 1fr;
    gap: 5px;
  }
  .activation-actions .button {
    width: 100%;
    min-height: 52px;
  }
  .desktop-instance-table,
  .passport-desktop-table {
    display: none;
  }
  .mobile-record-list {
    display: grid;
  }
  .mobile-record-list article {
    display: grid;
    gap: 7px;
    padding: 22px;
    border-bottom: 1px solid var(--line);
  }
  .mobile-record-list article > span {
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
  }
  .mobile-record-list article p {
    margin: 0;
    color: var(--muted);
  }
  .identity-selector-cards article strong {
    font-size: 1.4rem;
  }
  .identity-selector-cards .button {
    margin-top: 8px;
    min-height: 48px;
  }
  .passport-record-list .row-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.head-actions,
.row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.head-actions form,
.row-actions form {
  display: flex;
}
.danger-button {
  background: transparent;
  color: var(--danger);
  border-color: #d8aaa6;
}
.filter-bar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(180px, 260px) auto;
  align-items: end;
  gap: 14px;
  margin-bottom: 18px;
}
.filter-bar .button {
  height: 48px;
}
.storage-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 19px 24px;
}
.storage-strip div {
  display: flex;
  align-items: center;
  gap: 16px;
}
.storage-strip span,
.overview-grid span,
.storage-note {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.storage-strip small {
  color: var(--muted);
}
.status-badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid #c9cbc5;
  border-radius: 99px;
  padding: 4px 9px;
  font-size: 0.72rem;
}
.status-active {
  background: #eaf2d5;
  border-color: #b9cb86;
}
.status-draft {
  background: #f2efe2;
}
.confirm-panel,
.one-time-secret {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  max-width: 820px;
}
.warning-box {
  padding: 18px;
  border: 1px solid #d8c78d;
  border-radius: 12px;
  background: #faf6e7;
}
.warning-box p {
  margin: 7px 0 0;
  color: var(--muted);
}
.one-time-secret label,
.secret-hint {
  letter-spacing: 0.08em;
}
.secret-display {
  width: 100%;
  min-height: 68px;
  padding: 15px 18px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(1rem, 3vw, 1.75rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
}
.status-archived {
  color: #72766f;
  background: #ececea;
}
.align-right {
  text-align: right;
}
.text-link,
.link-button {
  font-weight: 600;
  font-size: 0.82rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.link-button {
  border: 0;
  background: transparent;
  padding: 0;
}
.link-button.danger {
  color: var(--danger);
}
.empty-state {
  text-align: center;
  padding: 70px 24px;
}
.empty-state h2 {
  margin-bottom: 8px;
}
.empty-state p {
  color: var(--muted);
}
.empty-state .button {
  margin: 22px auto 0;
}
.compact-empty {
  padding: 28px;
}
.compact-empty p {
  margin: 0;
}
.overview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.overview-grid > div {
  display: grid;
  gap: 7px;
}
.overview-grid strong {
  font-family: "Manrope", system-ui;
}
.overview-description {
  grid-column: 1/-1;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.overview-description p {
  margin: 0;
  color: var(--muted);
  max-width: 850px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin: 42px 0 16px;
}
.section-head .eyebrow {
  margin-bottom: 8px;
}
.section-head h2 {
  font-size: 2rem;
  margin: 0;
}
.document-table table {
  min-width: 1040px;
}
.archived-row {
  color: #858982;
  background: #f6f6f3;
}
.upload-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(420px, 1.3fr);
  gap: 44px;
  margin-top: 18px;
}
.upload-panel > div p {
  color: var(--muted);
}
.upload-panel form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.upload-panel form .field:last-of-type,
.upload-panel form .form-errors,
.upload-panel form .button {
  grid-column: 1/-1;
}
.activity-list {
  display: grid;
  padding-top: 0;
  padding-bottom: 0;
}
.activity-list > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}
.activity-list > div:last-child {
  border-bottom: 0;
}
.activity-list span,
.activity-list p {
  color: var(--muted);
  font-size: 0.82rem;
}
.activity-list p {
  padding-top: 26px;
}
.field input[type="file"] {
  padding: 10px 13px;
  height: auto;
  min-height: 48px;
}
@media (max-width: 1100px) {
  .dashboard-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .upload-panel {
    grid-template-columns: 1fr;
  }
  .upload-panel form {
    max-width: 760px;
  }
}
@media (max-width: 700px) {
  .dashboard-stats,
  .overview-grid,
  .public-passport-summary {
    grid-template-columns: 1fr;
  }
  .filter-bar {
    grid-template-columns: 1fr;
  }
  .storage-strip,
  .activity-list > div {
    align-items: flex-start;
    flex-direction: column;
  }
  .head-actions {
    justify-content: flex-start;
  }
  .upload-panel form {
    grid-template-columns: 1fr;
  }
  .upload-panel form .field:last-of-type,
  .upload-panel form .form-errors,
  .upload-panel form .button {
    grid-column: auto;
  }
}

.maintenance-preview-list {
  display: grid;
  gap: 0;
  padding: 0;
  overflow: hidden;
}
.maintenance-preview-card {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(210px, 1fr);
  align-items: center;
  gap: 18px;
  padding: 20px 26px;
  border-bottom: 1px solid var(--line);
}
.maintenance-preview-card:last-child {
  border-bottom: 0;
}
.maintenance-preview-card > div,
.maintenance-next {
  display: grid;
  gap: 4px;
}
.maintenance-preview-card small,
.maintenance-next span {
  color: var(--muted);
  font-size: 0.75rem;
}
.maintenance-plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.maintenance-plan-card {
  display: grid;
  gap: 20px;
  margin: 0;
}
.maintenance-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}
.maintenance-card-head h2 {
  margin: 4px 0 0;
}
.facts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.facts-grid > div {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.facts-grid span {
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 750;
  letter-spacing: 0.09em;
}
.facts-grid small {
  color: var(--muted);
}
.maintenance-warning {
  border-left: 3px solid #bb7d1f;
  background: #fff7e9;
  padding: 12px 14px;
  color: #6b4310;
}
.maintenance-actions {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.apply-plan-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(300px, 1fr);
  gap: 32px;
  align-items: end;
  margin-bottom: 24px;
}
.apply-plan-panel form {
  display: grid;
  gap: 14px;
}
.maintenance-filter-bar {
  grid-template-columns: minmax(210px, 1fr) repeat(4, minmax(135px, auto)) auto;
  margin-bottom: 28px;
}
.maintenance-status-overdue {
  background: #f5d6d1;
  color: #7e241b;
}
.maintenance-status-due {
  background: #f6dfbd;
  color: #70430d;
}
.maintenance-status-due_soon {
  background: #fff0c8;
  color: #66500b;
}
.maintenance-status-ok {
  background: #e8f2bf;
  color: #303719;
}
.maintenance-status-not_configured {
  background: #e8e8e4;
  color: #565a54;
}
.maintenance-form-panel {
  display: grid;
  gap: 24px;
}

@media (max-width: 1100px) {
  .maintenance-filter-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .maintenance-preview-card,
  .maintenance-plan-grid,
  .facts-grid,
  .apply-plan-panel,
  .maintenance-filter-bar {
    grid-template-columns: 1fr;
  }
  .maintenance-card-head {
    flex-direction: column;
  }
}

.service-preview-list {
  display: grid;
  gap: 0;
  padding: 0;
  overflow: hidden;
}
.service-preview-card {
  display: grid;
  grid-template-columns: 110px minmax(150px, 220px) 1fr;
  gap: 8px 20px;
  padding: 22px 26px;
  border-bottom: 1px solid var(--line);
}
.service-preview-card:last-child {
  border-bottom: 0;
}
.service-preview-card time,
.service-timeline-date time {
  font-weight: 700;
}
.service-preview-card > span,
.service-timeline-date span {
  color: var(--muted);
  font-size: 0.78rem;
}
.service-preview-card strong,
.service-preview-card p {
  grid-column: 3;
}
.service-preview-card p {
  margin: 0;
  color: var(--muted);
}
.service-filter-bar {
  grid-template-columns: minmax(220px, 1fr) repeat(4, minmax(135px, auto)) auto;
  margin-bottom: 28px;
}
.service-timeline {
  display: grid;
  gap: 14px;
}
.service-timeline-card {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  align-items: center;
  gap: 24px;
}
.service-timeline-date {
  display: grid;
  gap: 5px;
}
.service-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.service-card-head h2,
.service-timeline-body p {
  margin: 0;
}
.service-timeline-body {
  display: grid;
  gap: 8px;
}
.service-timeline-body small {
  color: var(--muted);
}
.service-form-panel {
  display: grid;
  gap: 26px;
}
.compact-service-form {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(320px, 1.3fr);
  gap: 36px;
}
.compact-service-form form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.compact-service-form .form-errors,
.compact-service-form .button,
.compact-service-form .field:last-of-type {
  grid-column: 1 / -1;
}

@media (max-width: 1100px) {
  .service-filter-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .service-preview-card,
  .service-timeline-card,
  .compact-service-form,
  .compact-service-form form,
  .service-filter-bar {
    grid-template-columns: 1fr;
  }
  .service-preview-card strong,
  .service-preview-card p,
  .compact-service-form .form-errors,
  .compact-service-form .button,
  .compact-service-form .field:last-of-type {
    grid-column: auto;
  }
  .service-card-head {
    flex-direction: column;
  }
}

.support-filter {
  grid-template-columns:
    minmax(140px, auto) minmax(175px, auto) minmax(140px, auto) minmax(
      240px,
      1fr
    )
    auto;
  margin-bottom: 28px;
}
.support-status-new {
  background: #fff0c8;
  color: #66500b;
}
.support-status-contacted {
  background: #dfeaf8;
  color: #244a72;
}
.support-status-closed {
  background: #e8f2bf;
  color: #303719;
}
.support-request-cards {
  display: none;
}
.support-request-card {
  padding: 20px;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 16px;
}
.support-request-card:last-child {
  border-bottom: 0;
}
.support-request-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.support-request-card time,
.support-request-card small {
  color: var(--muted);
  font-size: 0.8rem;
}
.support-request-card > div:not(.support-request-card-head) {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.support-request-card small {
  overflow-wrap: anywhere;
}
.support-detail-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
}
.support-detail-head > div:first-child {
  display: grid;
  gap: 8px;
}
.support-status-form {
  width: min(100%, 520px);
  display: grid;
  gap: 8px;
}
.support-status-form label {
  font-size: 0.8rem;
  font-weight: 600;
}
.support-status-form textarea {
  width: 100%;
  min-height: 84px;
  resize: vertical;
  border: 1px solid #c9cbc5;
  border-radius: 9px;
  padding: 11px 13px;
}
.support-status-form > small {
  color: var(--muted);
}
.support-status-timeline {
  display: grid;
  margin: 22px 0;
}
.support-status-timeline article {
  position: relative;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 13px;
  padding-bottom: 22px;
}
.support-status-timeline article:not(:last-child):before {
  content: "";
  position: absolute;
  left: 5px;
  top: 12px;
  bottom: 0;
  width: 1px;
  background: #cfd1cb;
}
.support-timeline-dot {
  position: relative;
  z-index: 1;
  width: 11px;
  height: 11px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 1px #8e9d28;
}
.support-status-timeline article > div {
  display: grid;
  gap: 3px;
}
.support-status-timeline time {
  color: var(--muted);
  font-size: 0.78rem;
}
.support-status-timeline p {
  margin: 7px 0 0;
  overflow-wrap: anywhere;
}
.support-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.support-detail-grid .panel {
  margin-bottom: 0;
}
.support-message p {
  overflow-wrap: anywhere;
}
.support-preview-list {
  display: grid;
  gap: 0;
  padding: 0;
  overflow: hidden;
}
.support-preview-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 18px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
}
.support-preview-card:last-child {
  border-bottom: 0;
}
.support-preview-card div {
  display: grid;
  gap: 5px;
}
.support-preview-card small {
  color: var(--muted);
}

@media (max-width: 900px) {
  .support-filter,
  .support-detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px), (max-device-width: 700px) {
  .support-request-table {
    display: none;
  }
  .support-request-cards {
    display: grid;
  }
  .support-request-card .button {
    width: 100%;
  }
  .support-detail-head {
    align-items: stretch;
    flex-direction: column;
  }
  .support-detail-head .head-actions,
  .support-detail-head form,
  .support-detail-head .button {
    width: 100%;
  }
  .support-preview-card {
    grid-template-columns: 1fr;
  }
}

.after-sales-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(170px, 1fr)) auto;
  align-items: end;
  gap: 14px;
}
.after-sales-filters label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}
.after-sales-filters select {
  width: 100%;
  height: 48px;
  border: 1px solid #c9cbc5;
  border-radius: 9px;
  padding: 0 13px;
  background: #fff;
}
.after-sales-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.after-sales-stat {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.after-sales-stat > span,
.status-breakdown span {
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.11em;
}
.after-sales-stat strong {
  margin: auto 0 3px;
  font:
    600 2rem "Manrope",
    system-ui;
}
.after-sales-stat small {
  color: var(--muted);
}
.after-sales-maintenance {
  border-color: #b7c66a;
  background: #f7fadf;
}
.after-sales-backlog {
  color: #fff;
  border-color: var(--dark);
  background: var(--dark);
}
.after-sales-backlog > span,
.after-sales-backlog small {
  color: #c8ccc4;
}
.after-sales-backlog strong {
  color: var(--signal);
}
.after-sales-trend .section-heading {
  margin-bottom: 24px;
}
.after-sales-trend .section-heading strong {
  font:
    600 2rem "Manrope",
    system-ui;
}
.trend-scroll {
  overflow-x: auto;
  padding-bottom: 8px;
}
.trend-bars {
  min-width: calc(var(--trend-points) * 22px);
  height: 210px;
  display: grid;
  grid-template-columns: repeat(var(--trend-points), minmax(16px, 1fr));
  gap: 5px;
  align-items: end;
  border-bottom: 1px solid var(--line);
}
.trend-bar {
  height: 100%;
  display: grid;
  grid-template-rows: 24px 150px 30px;
  align-items: end;
  justify-items: center;
  min-width: 0;
}
.trend-bar > span {
  color: var(--muted);
  font-size: 0.66rem;
}
.trend-bar > i {
  width: min(100%, 22px);
  border-radius: 5px 5px 0 0;
  background: var(--dark);
}
.trend-bar > small {
  width: max-content;
  color: var(--muted);
  font-size: 0.58rem;
  transform: rotate(-45deg) translate(5px, 4px);
  transform-origin: center;
}
.after-sales-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.after-sales-grid > .panel {
  min-width: 0;
}
.after-sales-section-head {
  padding: 26px 28px 18px;
}
.after-sales-section-head h2 {
  margin-bottom: 8px;
}
.after-sales-section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}
.after-sales-table {
  min-width: 620px;
}
.after-sales-status {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
  align-items: center;
  gap: 38px;
}
.after-sales-status p {
  margin-bottom: 0;
  color: var(--muted);
}
.status-breakdown {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.status-breakdown > div {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
}
.status-breakdown strong {
  font:
    600 1.45rem "Manrope",
    system-ui;
}

@media (max-width: 1100px) {
  .after-sales-grid,
  .after-sales-status {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .after-sales-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .after-sales-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .after-sales-filters,
  .after-sales-stat-grid,
  .status-breakdown {
    grid-template-columns: 1fr;
  }
  .after-sales-filters .button {
    width: 100%;
  }
  .after-sales-stat {
    min-height: 126px;
  }
}

/* M17.4.1 DPP workspace */
.dpp-page-head {
  align-items: flex-start;
}

.status-dpp-roadmap {
  border-color: #b8c5d5;
  background: var(--info-bg);
}

.dpp-boundary-notice {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
  gap: 18px 32px;
  margin-bottom: 24px;
  padding: 20px 24px;
  border: 1px solid #b8c5d5;
  border-radius: var(--radius-sm);
  background: #f3f7fb;
}

.dpp-boundary-notice span {
  color: var(--muted);
}

.dpp-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.dpp-overview-grid article {
  min-height: 148px;
  display: flex;
  flex-direction: column;
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
}

.dpp-overview-grid span,
.dpp-machine-identity span,
.dpp-fact-list span {
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.dpp-overview-grid strong {
  margin-top: auto;
  font:
    600 2rem "Manrope",
    system-ui;
}

.dpp-overview-grid small,
.dpp-machine-identity small,
.dpp-fact-list small {
  color: var(--muted);
}

.dpp-workspace-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.dpp-workspace-grid > .panel {
  min-width: 0;
  margin: 0;
}

.dpp-capability-list {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.dpp-capability-list li {
  position: relative;
  padding: 12px 0 12px 28px;
  border-top: 1px solid var(--line);
}

.dpp-capability-list li::before {
  position: absolute;
  left: 2px;
  color: #71801c;
  content: "✓";
}

.dpp-module-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 24px;
}

.dpp-module-list span {
  min-width: 0;
  padding: 12px 13px;
  border: 1px dashed #c9cbc5;
  border-radius: var(--radius-xs);
  background: #f7f6f1;
  color: var(--muted);
  font-size: 0.78rem;
}

.dpp-machine-heading {
  margin-top: 48px;
}

.dpp-filter {
  grid-template-columns: minmax(260px, 1fr) auto;
}

.dpp-machine-list table {
  min-width: 1080px;
}

.dpp-machine-list td small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}

.dpp-machine-workspace .dpp-boundary-notice {
  margin-top: 2px;
}

.dpp-machine-identity,
.dpp-fact-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 0;
  overflow: hidden;
}

.dpp-machine-identity > div,
.dpp-fact-list > div {
  min-width: 0;
  min-height: 130px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 21px;
  border-right: 1px solid var(--line);
}

.dpp-machine-identity > div:last-child,
.dpp-fact-list > div:last-child {
  border-right: 0;
}

.dpp-machine-identity strong,
.dpp-fact-list strong {
  margin-top: auto;
  overflow-wrap: anywhere;
  font-family: "Manrope", system-ui;
}

.dpp-fact-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dpp-fact-list > div:nth-child(3) {
  border-right: 0;
}

.dpp-fact-list > div:nth-child(n + 4) {
  border-top: 1px solid var(--line);
}

.dpp-module-list-wide {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 0;
  padding: 20px;
}

@media (max-width: 1000px) {
  .dpp-workspace-grid,
  .dpp-machine-identity,
  .dpp-module-list-wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dpp-machine-identity > div:nth-child(2),
  .dpp-machine-identity > div:last-child {
    border-right: 0;
  }

  .dpp-machine-identity > div:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 760px) {
  .dpp-filter {
    grid-template-columns: minmax(0, 1fr);
  }

  .dpp-boundary-notice,
  .dpp-overview-grid,
  .dpp-workspace-grid,
  .dpp-machine-identity,
  .dpp-fact-list,
  .dpp-module-list-wide {
    grid-template-columns: 1fr;
  }

  .dpp-overview-grid article {
    min-height: 124px;
  }

  .dpp-workspace-grid .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .dpp-module-list {
    grid-template-columns: 1fr;
  }

  .dpp-machine-identity > div,
  .dpp-fact-list > div,
  .dpp-machine-identity > div:nth-child(2),
  .dpp-machine-identity > div:last-child,
  .dpp-fact-list > div:nth-child(3),
  .dpp-fact-list > div:last-child {
    min-height: 112px;
    border-top: 1px solid var(--line);
    border-right: 0;
  }

  .dpp-machine-identity > div:first-child,
  .dpp-fact-list > div:first-child {
    border-top: 0;
  }
}
