:root {
  --ink: #19232a;
  --muted: #53636c;
  --line: #dbe3e7;
  --accent: #087f74;
  --paper: #fff;
  --surface: #f4f7f8;
  --warn: #986400;
  --radius: 6px;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  letter-spacing: 0;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  line-height: 1.55;
}
a {
  color: #126e7d;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
select,
textarea,
summary {
  outline-offset: 4px;
}
button {
  cursor: pointer;
}
img {
  display: block;
  max-width: 100%;
  object-fit: cover;
}
h1 {
  font-size: 32px;
  line-height: 1.2;
  margin: 0 0 12px;
  overflow-wrap: anywhere;
}
h2 {
  font-size: 22px;
  margin: 0 0 16px;
  line-height: 1.3;
}
h3 {
  font-size: 18px;
  margin: 0 0 10px;
}
p {
  margin: 8px 0 16px;
}
small,
.muted {
  color: var(--muted);
}
.platform-header {
  height: 76px;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 32px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 750;
  color: var(--ink);
  white-space: nowrap;
}
.brand-mark {
  display: grid;
  place-items: center;
  background: var(--ink);
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 4px;
  font-size: 14px;
}
.public-links {
  display: flex;
  gap: 20px;
  align-items: center;
  font-size: 14px;
  white-space: nowrap;
  flex: 1;
}
.public-links a {
  color: var(--ink);
}
.header-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-left: auto;
  white-space: nowrap;
  font-size: 14px;
}
.button,
button[type="submit"] {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: white;
  border-radius: var(--radius);
  padding: 10px 16px;
  min-height: 44px;
  font-weight: 600;
  text-align: center;
  white-space: normal;
  max-width: 100%;
  line-height: 1.35;
  text-decoration: none;
}
.button:hover,
button[type="submit"]:hover {
  background: #096b63;
  text-decoration: none;
}
.button.secondary {
  background: #fff;
  color: var(--ink);
  border-color: #bccbd2;
}
.button.small {
  min-height: 38px;
  padding: 8px 12px;
}
.button.danger {
  background: #a52d37;
  border-color: #a52d37;
}
.menu-toggle {
  display: none;
  border: 0;
  background: none;
  font-size: 24px;
  padding: 5px;
}

/* Homepage composition stays separate from account and operational screens. */
.workspace.home-workspace { max-width: none; padding: 0; }
.home-hero { position: relative; isolation: isolate; height: 560px; background: #d7eaf5; }
.home-hero picture { position: absolute; inset: 0; z-index: -1; }
.home-hero picture img { width: 100%; height: 100%; object-fit: cover; object-position: center 48%; }
.hero-inner { max-width: 1220px; margin: 0 auto; padding: 54px 32px; }
.home-hero .hero-eyebrow { font-size: 12px; font-weight: 700; margin: 0 0 18px; color: #17494b; }
.home-hero h1 { font-size: 52px; color: #102c33; margin: 0 0 12px; }
.home-hero h2 { max-width: 460px; font-size: 28px; line-height: 1.25; color: #102c33; }
.home-hero .hero-description { max-width: 450px; color: #143740; font-size: 17px; line-height: 1.6; }
.home-hero .search-form { max-width: 460px; margin: 24px 0 16px; }
.home-hero .search-form input { border-color: #fff; min-height: 50px; }
.home-hero .actions { max-width: 500px; margin: 0; }
.home-hero .button.secondary { background: #fff; border-color: #fff; color: #143740; }
.home-workspace > .section { max-width: 1156px; margin: 0 auto; padding: 36px 0; }
.home-workspace > .home-categories { border-top: 0; }
.home-categories .chip { padding: 9px 14px; margin: 0 6px 8px 0; border-color: #d9e4e5; background: #f8fbfb; color: #254e52; }
.home-workspace .product-card { box-shadow: 0 3px 12px #173c3b08; }
.home-workspace .product-card .card-body { padding: 24px; }
.home-workspace .product-card:nth-child(3n+2) .category-visual { background: #eef1f6; color: #475a74; }
.home-workspace .product-card:nth-child(3n) .category-visual { background: #f5f0e7; color: #73603f; }
@media (max-width: 1220px) {
  .home-workspace > .section { margin: 0 32px; }
}
@media (max-width: 700px) {
  .home-hero { height: 620px; }
  .hero-inner { padding: 28px 20px; }
  .home-hero picture img { object-position: center bottom; }
  .home-hero h1 { font-size: 36px; }
  .home-hero h2 { font-size: 23px; max-width: 340px; margin-bottom: 12px; }
  .home-hero .hero-description { font-size: 15px; max-width: 360px; }
  .home-hero .hero-eyebrow { margin-bottom: 12px; font-size: 11px; }
  .home-hero .search-form { margin-top: 18px; }
  .home-hero .actions { gap: 8px; }
  .home-hero .actions .button { padding: 10px 12px; font-size: 14px; }
  .home-workspace > .section { margin: 0 20px; padding: 28px 0; }
}
.mobile-menu {
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
}
.mobile-menu:not([hidden]) {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.workspace {
  max-width: 1220px;
  padding: 32px;
  margin: 0 auto;
  min-height: 60vh;
}
.page-heading {
  margin-bottom: 24px;
}
.workspace-nav {
  display: flex;
  gap: 6px;
  padding: 12px 32px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  align-items: center;
  overflow: visible;
}
.workspace-nav > a,
.workspace-nav summary {
  padding: 8px 12px;
  color: var(--ink);
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
}
.workspace-nav > a.selected {
  background: #e0f1ed;
  color: #075d55;
  font-weight: bold;
}
.workspace-nav > details {
  margin-left: auto;
  position: relative;
}
.menu {
  position: absolute;
  right: 0;
  min-width: 240px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 12px;
  box-shadow: 0 8px 20px #18232a16;
  z-index: 5;
  display: grid;
  gap: 4px;
}
.menu a {
  padding: 7px;
}
.intro {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 32px;
}
.intro h2 {
  font-size: 38px;
  max-width: 760px;
}
.intro p {
  max-width: 700px;
  color: var(--muted);
}
.search-form {
  display: flex;
  max-width: 820px;
  gap: 8px;
  margin: 16px 0;
}
.search-form input {
  flex: 1;
  min-width: 0;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 16px 0;
}
.section {
  margin: 36px 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.product-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
}
.product-card .card-body {
  padding: 18px;
  flex: 1;
}
.product-card img {
  width: 100%;
  height: 180px;
}
.product-card .category-visual {
  height: 100px;
  background: #e9f1f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #246557;
  font-size: 17px;
  font-weight: bold;
  padding: 16px;
  text-align: center;
}
.product-card .actions {
  margin-bottom: 0;
}
.choice {
  border: 1px solid var(--line);
  padding: 24px;
  border-radius: 6px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 16px 0;
  max-width: 920px;
}
.form-grid label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  min-width: 0;
}
input,
textarea,
select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 11px 12px;
  border: 1px solid #b9c8d0;
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
}
textarea {
  resize: vertical;
}
input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin: 2px 0;
}
input[type="file"] {
  font-size: 14px;
  padding: 9px;
}
.form-grid .check {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400;
  white-space: normal;
}
.full {
  grid-column: 1/-1;
}
.notice {
  padding: 14px 18px;
  border-left: 3px solid var(--accent);
  background: #edf7f5;
  margin: 16px 0;
  overflow-wrap: anywhere;
}
.notice.error {
  border-color: #b43442;
  background: #fff1f2;
}
.status {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  background: #eef1f4;
  font-size: 12px;
  white-space: normal;
}
.table-scroll {
  overflow-x: auto;
  max-width: 100%;
  border-top: 1px solid var(--line);
  margin: 18px 0;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}
th {
  background: var(--surface);
  font-weight: 600;
  font-size: 12px;
  color: var(--muted);
}
td,
th {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
td a {
  font-weight: 600;
}
td small {
  display: block;
}
.empty {
  text-align: center;
  padding: 32px;
  color: var(--muted);
}
.summary-list {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 8px 20px;
  margin: 16px 0;
}
.summary-list dt {
  color: var(--muted);
}
.summary-list dd {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.steps {
  display: flex;
  list-style: none;
  padding: 0;
  gap: 8px;
  flex-wrap: wrap;
}
.steps li {
  padding: 6px 10px;
  background: var(--surface);
  font-size: 13px;
}
.steps .current {
  background: #d9f0e9;
  color: #075d55;
}
.timeline {
  list-style: none;
  padding: 0;
}
.timeline li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  white-space: pre-wrap;
}
.timeline time {
  display: block;
  font-size: 12px;
  color: var(--muted);
}
.tabs {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}
.tabs a.selected {
  font-weight: bold;
  color: var(--accent);
}
.stat-line {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  margin: 24px 0;
}
.stat-line strong {
  font-size: 26px;
  display: block;
}
.stat-line span {
  font-size: 13px;
  color: var(--muted);
}
.platform-footer {
  padding: 32px;
  max-width: 1220px;
  margin: 30px auto 0;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 14px;
}
.platform-footer > div {
  width: 100%;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.platform-footer small {
  display: block;
  width: 100%;
}
.language-choice {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid var(--line);
  padding: 12px 18px;
  box-shadow: 0 4px 24px #19232a20;
  z-index: 20;
  max-width: calc(100% - 24px);
  align-items: center;
  gap: 16px;
  font-size: 14px;
}
.language-choice:not([hidden]) {
  display: flex;
}
.language-choice strong {
  white-space: nowrap;
}
.language-dismiss {
  background: transparent;
  border: 0;
  font-size: 24px;
}
.honeypot {
  position: absolute;
  left: -10000px;
}
.auth-layout {
  max-width: 660px;
}
.auth-layout .form-grid {
  grid-template-columns: 1fr;
}
.legacy main {
  max-width: 1220px !important;
  margin: auto !important;
  padding: 24px !important;
}
.legacy h1 {
  font-size: 30px !important;
}
.legacy .check {
  white-space: normal !important;
}
.legacy .panel,
.legacy .content-panel {
  min-width: 0 !important;
  max-width: 100% !important;
  overflow-wrap: anywhere;
}
.legacy table {
  display: block;
  overflow-x: auto;
}
.legacy .admin-nav {
  display: none;
}
.legacy input,
.legacy textarea,
.legacy select {
  max-width: 100% !important;
}
.legacy .details {
  max-width: 100%;
  overflow-wrap: anywhere;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.document-body {
  max-width: 800px;
  white-space: pre-wrap;
  border: 1px solid var(--line);
  padding: 24px;
}
.filters {
  display: flex;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap;
  margin: 20px 0;
}
.filters > label {
  flex: 1;
  min-width: 160px;
}
.chip {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  margin: 4px;
}
.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 32px;
}
.product-detail > img {
  width: 100%;
  max-height: 420px;
}
.checklist {
  list-style: none;
  padding: 0;
}
.checklist li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.checklist a {
  margin-left: auto;
}
.checklist .done {
  color: var(--accent);
}
[hidden] {
  display: none !important;
}
@media (max-width: 1150px) {
  .public-links {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
  .platform-header {
    gap: 12px;
  }
  .workspace-nav {
    flex-wrap: wrap;
    gap: 0;
  }
  .workspace-nav > details {
    margin-left: 0;
  }
}
@media (max-width: 700px) {
  .platform-header {
    height: 66px;
    padding: 0 16px;
  }
  .brand {
    font-size: 14px;
    gap: 7px;
  }
  .brand-mark {
    width: 30px;
    height: 30px;
  }
  .header-actions {
    gap: 10px;
  }
  .header-actions > .button {
    display: inline-flex;
    font-size: 12px;
    padding: 8px;
  }
  .header-actions > .account-entry {
    display: none;
  }
  .workspace {
    padding: 24px 16px;
  }
  .workspace-nav {
    padding: 8px;
  }
  .workspace-nav > a,
  .workspace-nav summary {
    font-size: 13px;
    padding: 8px;
  }
  .workspace-nav .menu {
    left: 0;
    right: auto;
  }
  .page-heading {
    margin-bottom: 18px;
  }
  h1 {
    font-size: 26px;
  }
  .intro h2 {
    font-size: 28px;
  }
  .grid,
  .grid.two,
  .form-grid,
  .product-detail {
    grid-template-columns: minmax(0, 1fr);
  }
  .summary-list {
    grid-template-columns: minmax(0, 1fr);
  }
  .summary-list dd {
    margin-bottom: 8px;
  }
  .search-form {
    gap: 6px;
  }
  .search-form button {
    padding: 10px;
  }
  .platform-footer {
    padding: 24px 16px;
  }
  .language-choice strong {
    display: none;
  }
  .legacy main {
    padding: 16px !important;
  }
  .legacy .form-grid,
  .legacy .details {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .stat-line {
    gap: 20px;
  }
  .choice {
    padding: 20px;
  }
}
@media print {
  .platform-header,
  .workspace-nav,
  .platform-footer,
  .actions,
  button,
  .language-choice,
  .mobile-menu {
    display: none !important;
  }
  .workspace {
    padding: 0;
    max-width: 100%;
  }
  .document-body {
    border: 0;
    padding: 0;
  }
}
.category-art {
  margin: 28px 0 0;
}
@media (max-width: 380px) {
  .brand-mark {
    display: none;
  }
}
.category-art img {
  display: block;
  height: auto;
  width: 100%;
  aspect-ratio: 2048 / 683;
}
.menu-toggle {
  font-size: 0 !important;
  width: 32px;
  height: 36px;
  background: transparent url("/menu-icon.svg") center/24px no-repeat !important;
}
