*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  color: #172033;
  background: #f3f6fa;
  font-family: "Noto Sans TC", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

body {
  min-width: 320px;
  background: #f3f6fa;
}

.cms-gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #0f172a;
  color: #e2e8f0;
}

.cms-gate__panel {
  width: min(460px, 100%);
  padding: 32px;
  border: 1px solid #334155;
  border-radius: 8px;
  background: #111c31;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.cms-gate__panel p {
  margin: 0 0 8px;
  color: #60a5fa;
  font-weight: 800;
}

.cms-gate__panel h1 {
  margin: 0 0 22px;
  font-size: 32px;
  line-height: 1.25;
}

.cms-gate__panel label {
  display: grid;
  gap: 8px;
  color: #cbd5e1;
  font-weight: 700;
}

.cms-gate__panel input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #475569;
  border-radius: 6px;
  background: #0f172a;
  color: #f8fafc;
  font: inherit;
}

.cms-gate__panel strong {
  display: block;
  margin-top: 12px;
  color: #fca5a5;
}

.cms-gate__panel button {
  width: 100%;
  margin-top: 18px;
  padding: 12px 16px;
  border: 0;
  border-radius: 6px;
  background: #2563eb;
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.cms-gate__panel small {
  display: block;
  margin-top: 16px;
  color: #94a3b8;
  line-height: 1.7;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  letter-spacing: 0;
}

.ops-page {
  min-height: 100vh;
  background: #f3f6fa;
  color: #172033;
}

.ops-topbar {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 70px;
  background: linear-gradient(100deg, #5c67f2 0%, #6b72de 46%, #7b4db4 100%);
  color: #fff;
  box-shadow: 0 1px 0 rgba(23, 32, 51, 0.12);
}

.ops-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 25px;
  font-weight: 900;
  letter-spacing: 0;
  white-space: nowrap;
}

.ops-brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: #5c67f2;
  background: #fff;
  font-size: 12px;
  font-weight: 900;
}

.ops-nav {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.ops-nav button,
.ops-nav a,
.ops-topbar button {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-radius: 7px;
  padding: 9px 14px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.catalog-grid,
.product-admin-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  gap: 18px;
  margin-bottom: 22px;
}

.catalog-products {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.catalog-filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(260px, 1fr);
  gap: 12px 18px;
  align-items: center;
}

.catalog-filter-panel strong,
.catalog-filter-panel span {
  display: block;
}

.catalog-filter-panel strong {
  color: #172033;
  font-size: 16px;
  margin-bottom: 4px;
}

.catalog-filter-panel span {
  color: #66758f;
  font-size: 12px;
  font-weight: 800;
}

.catalog-filter-panel input {
  width: 100%;
  min-width: 0;
  border: 1px solid #d2dbe8;
  border-radius: 7px;
  background: #f8fafc;
  color: #172033;
  padding: 10px 12px;
}

.catalog-filter-row {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.catalog-filter-chip {
  min-height: 28px;
  border: 1px solid #c7d5ea;
  border-radius: 999px;
  background: #fff;
  color: #2856c8;
  padding: 4px 10px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  text-align: left;
}

.catalog-filter-chip.active {
  background: #e8efff;
  border-color: #8fb4ff;
}

.catalog-grid .ops-table {
  min-width: 620px;
}

.catalog-product {
  text-align: left;
  border: 1px solid #dbe3ef;
  background: #f8fafc;
  border-radius: 8px;
  padding: 14px;
  cursor: pointer;
  transform: scale(1);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.catalog-product:hover {
  border-color: rgba(37, 99, 235, 0.48);
  background: #fff;
  box-shadow: 0 18px 44px rgba(37, 99, 235, 0.1);
  transform: scale(1.018);
}

.catalog-product.active {
  border-color: #5d70e6;
  background: #e8efff;
}

.catalog-product strong,
.stacked-form h2 {
  display: block;
  color: #172033;
  font-size: 17px;
  margin-bottom: 6px;
}

.catalog-product span,
.catalog-product p {
  display: block;
  color: #66758f;
  font-size: 13px;
  line-height: 1.45;
}

.catalog-request-form,
.stacked-form,
.bom-add-row {
  display: grid;
  gap: 10px;
}

.catalog-request-form {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.catalog-request-form textarea {
  grid-column: 1 / -1;
  min-height: 92px;
}

.catalog-request-form input,
.catalog-request-form select,
.catalog-request-form textarea,
.stacked-form input,
.stacked-form select,
.stacked-form textarea,
.bom-add-row input,
.bom-add-row select,
.ops-section-heading select,
.ops-table select {
  min-width: 0;
  border: 1px solid #d2dbe8;
  border-radius: 7px;
  background: #f8fafc;
  color: #172033;
  padding: 9px 11px;
}

.catalog-success {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 7px;
  background: #d8f8e5;
  color: #137447;
  font-weight: 800;
}

.inline-heading {
  padding: 0 0 14px;
  margin-bottom: 14px;
}

.stacked-form label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #324156;
  font-size: 13px;
  font-weight: 800;
}

.two-col,
.bom-add-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bom-add-row {
  padding: 18px;
  border-bottom: 1px solid #e5ebf3;
  grid-template-columns: minmax(180px, 1.4fr) 100px 100px minmax(180px, 1fr) auto;
}

.ops-context-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid #e5ebf3;
  background: #f8fafc;
}

.ops-context-grid div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.ops-context-grid span {
  color: #66758f;
  font-size: 12px;
  font-weight: 900;
}

.ops-context-grid strong {
  color: #172033;
  font-size: 13px;
  line-height: 1.35;
}

.ops-main {
  width: min(1240px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 34px 0 56px;
}

.ops-title-row {
  padding: 6px 0 22px;
}

.ops-title-row h1 {
  color: #5c67f2;
  font-size: 34px;
  line-height: 1.15;
  margin-bottom: 8px;
  font-weight: var(--public-heading-weight, 650);
}

.ops-title-row p {
  color: #66758f;
  font-size: 14px;
}

.ops-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.ops-metric {
  min-height: 94px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  background: #fff;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(23, 32, 51, 0.05);
}

.ops-metric-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
}

.ops-metric.purple .ops-metric-icon { background: #6f56d9; }
.ops-metric.amber .ops-metric-icon { background: #f5a70a; }
.ops-metric.blue .ops-metric-icon { background: #169bb7; }
.ops-metric.green .ops-metric-icon { background: #17a978; }

.ops-metric strong {
  display: block;
  font-size: 24px;
  line-height: 1;
  color: #101828;
  margin-bottom: 7px;
}

.ops-metric span {
  color: #66758f;
  font-size: 13px;
  font-weight: 700;
}

.ops-panel,
.ops-table-panel {
  background: #fff;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  box-shadow: 0 2px 9px rgba(23, 32, 51, 0.05);
}

.ops-panel {
  padding: 18px;
  margin-bottom: 22px;
}

.ops-create-row,
.ops-filter-row {
  display: grid;
  gap: 10px;
  align-items: center;
}

.ops-create-row {
  grid-template-columns: minmax(180px, 1fr) minmax(220px, 1.3fr) minmax(190px, 0.9fr) auto;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid #e5ebf3;
}

.ops-filter-row {
  grid-template-columns: minmax(280px, 1fr) 150px 170px auto;
}

.ops-panel input,
.ops-panel select,
.ops-search input {
  height: 38px;
  min-width: 0;
  border: 1px solid #d2dbe8;
  background: #f8fafc;
  color: #172033;
  border-radius: 7px;
  padding: 0 12px;
}

.ops-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
}

.ops-search input {
  border-radius: 7px 0 0 7px;
}

.ops-search button,
.ops-primary {
  height: 38px;
  border: 0;
  border-radius: 7px;
  background: #2f63e6;
  color: #fff;
  padding: 0 16px;
  cursor: pointer;
  font-weight: 800;
}

.ops-search button {
  border-radius: 0 7px 7px 0;
  padding: 0;
}

.ops-secondary {
  height: 38px;
  border: 0;
  border-radius: 7px;
  background: #5b6b82;
  color: #fff;
  padding: 0 14px;
  cursor: pointer;
  font-weight: 800;
}

.ops-danger {
  min-height: 30px;
  border: 0;
  border-radius: 6px;
  background: #b42318;
  color: #fff;
  padding: 0 12px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.admin-inline-form {
  display: grid;
  grid-template-columns: minmax(180px, 2fr) repeat(3, minmax(120px, 1fr)) auto;
  gap: 10px;
  align-items: center;
}

.admin-inline-form.users {
  grid-template-columns: minmax(140px, 1fr) minmax(200px, 1.4fr) minmax(140px, 1fr) minmax(150px, 1fr) auto;
}

.ops-table-panel {
  overflow: hidden;
}

.ops-section-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 20px 18px;
  border-bottom: 1px solid #e5ebf3;
}

.ops-section-heading h2 {
  font-size: 19px;
  color: #172033;
}

.ops-section-heading span {
  color: #66758f;
  font-size: 13px;
  font-weight: 800;
}

.ops-table-wrap {
  overflow-x: auto;
}

.ops-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 840px;
}

.ops-table th,
.ops-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #ecf0f5;
  text-align: left;
  vertical-align: middle;
  font-size: 13px;
}

.ops-table th {
  background: #f8fafc;
  color: #172033;
  font-weight: 900;
}

.ops-table td {
  color: #324156;
  font-weight: 700;
}

.ops-link-button {
  display: block;
  border: 0;
  background: transparent;
  color: #172033;
  cursor: pointer;
  font-weight: 900;
  text-align: left;
  padding: 0;
}

.ops-muted {
  color: #7b889b;
  font-size: 12px;
  font-weight: 600;
  margin-top: 5px;
  max-width: 420px;
}

.preserve-lines {
  white-space: pre-line;
}

.ops-status {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.ops-status.success { background: #d8f8e5; color: #137447; }
.ops-status.warning { background: #fff1c7; color: #a44b00; }
.ops-status.info { background: #e2edff; color: #2856c8; }
.ops-status.muted { background: #edf1f6; color: #5b6b82; }

.ops-row-action {
  border: 0;
  background: #5d70e6;
  color: #fff;
  border-radius: 6px;
  min-height: 30px;
  padding: 0 12px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.ops-empty {
  padding: 32px 18px;
  color: #66758f;
  text-align: center;
  font-weight: 700;
}

.catalog-order-entry,
.catalog-selected-summary a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 8px;
  background: #2563eb;
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  transform: scale(1);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.catalog-order-entry:hover,
.catalog-selected-summary a:hover {
  background: #1d4ed8;
  box-shadow: 0 18px 44px rgba(37, 99, 235, 0.18);
  transform: scale(1.018);
}

.catalog-selected-summary {
  display: grid;
  gap: 14px;
  margin: 18px 0;
  padding: 16px;
  border: 1px solid #d8e2ee;
  border-radius: 8px;
  background: #f8fbff;
}

.catalog-selected-summary img,
.catalog-selected-summary video {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 8px;
}

.catalog-selected-summary p {
  margin: 0;
  color: #5b6b82;
  line-height: 1.7;
}

.catalog-public-boundary {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid #d8e2ee;
  border-radius: 8px;
  background: #f8fbff;
}

.catalog-public-boundary strong {
  color: #0f172a;
  font-size: 16px;
  font-weight: 850;
}

.catalog-public-boundary p {
  margin: 0;
  color: #5b6b82;
  font-size: 15px;
  line-height: 1.7;
}

.public-catalog-page {
  color: #0f172a;
}

.public-catalog-page .ops-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  height: auto;
  min-height: 74px;
  padding: 0 clamp(22px, 6vw, 92px);
  background: rgba(255, 255, 255, 0.88);
  color: #0f172a;
  border-bottom: 1px solid #dde3ec;
  box-shadow: none;
  backdrop-filter: blur(18px);
}

.public-catalog-page .ops-brand {
  color: #0f172a;
  font-size: 20px;
  font-weight: var(--public-heading-weight, 650);
}

.public-catalog-page .ops-brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: #75fafd;
  color: #0f172a;
  font-size: 15px;
}

.public-catalog-page .ops-nav a {
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #5c6175;
  font-size: 15px;
  font-weight: 520;
}

.public-catalog-page .ops-nav a:hover {
  color: #0f172a;
}

.public-catalog-page .ops-main {
  width: min(1180px, calc(100vw - 48px));
  padding-top: clamp(56px, 7vw, 92px);
}

.public-catalog-page .ops-title-row {
  display: grid;
  justify-items: start;
  gap: 22px;
  padding-bottom: 36px;
}

.public-catalog-page .ops-title-row h1 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(44px, 6vw, 76px);
  line-height: 1.04;
  letter-spacing: 0;
}

.public-catalog-page .ops-title-row p {
  max-width: 760px;
  color: #697386;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.65;
}

.public-catalog-page .catalog-order-entry {
  min-height: 56px;
  padding: 0 30px;
  font-size: 17px;
  font-weight: 620;
  border-radius: 8px;
}

.public-catalog-page .catalog-filter-panel strong,
.public-catalog-page .ops-section-heading h2 {
  color: #0f172a;
  font-size: 22px;
  font-weight: var(--public-heading-weight, 650);
}

.public-catalog-page .catalog-filter-panel span,
.public-catalog-page .ops-section-heading span,
.public-catalog-page .ops-muted {
  color: #747b8d;
  font-size: 15px;
  line-height: 1.6;
  font-weight: 360;
}

.public-catalog-page .catalog-product strong,
.public-catalog-page .ops-context-grid strong {
  color: #0f172a;
  font-size: 20px;
  line-height: 1.3;
}

.public-catalog-page .catalog-product span,
.public-catalog-page .catalog-product p,
.public-catalog-page .catalog-selected-summary p,
.public-catalog-page .catalog-public-boundary p,
.public-catalog-page .ops-context-grid span,
.public-catalog-page .ops-table td {
  color: #697386;
  font-size: 16px;
  line-height: 1.65;
}

.public-catalog-page .catalog-request-form input,
.public-catalog-page .catalog-request-form select,
.public-catalog-page .catalog-request-form textarea,
.public-catalog-page .catalog-filter-panel input {
  font-size: 16px;
}

.order-page {
  min-height: 100vh;
  background: #f5f8fc;
  color: #0f172a;
}

.ops-file-field {
  display: grid;
  gap: 8px;
  color: #cbd5e1;
  font-weight: 800;
}

.ops-file-field input[type="file"] {
  width: 100%;
  min-height: 44px;
  padding: 8px;
  border: 1px solid #334155;
  border-radius: 8px;
  background: #0f172a;
  color: #e2e8f0;
}

.order-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px clamp(18px, 4vw, 48px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid #d9e3ef;
  backdrop-filter: blur(16px);
}

.order-brand,
.order-topbar nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.order-brand {
  color: #172033;
  text-decoration: none;
  font-size: 22px;
}

.order-brand span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #2563eb;
  color: #fff;
  font-weight: 950;
}

.order-topbar nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border: 1px solid #c9d6e5;
  border-radius: 8px;
  color: #1e3659;
  font-weight: 850;
  text-decoration: none;
  transform: scale(1);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.order-topbar nav a:hover {
  border-color: rgba(37, 99, 235, 0.42);
  background: #f8fbff;
  transform: scale(1.018);
}

.order-main {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 72px;
}

.order-hero {
  padding: clamp(30px, 5vw, 64px) 0 34px;
}

.order-hero p {
  margin: 0 0 14px;
  color: #2563eb;
  font-size: 18px;
  font-weight: 950;
  text-transform: uppercase;
}

.order-hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.05;
  font-weight: var(--public-heading-weight, 650);
  letter-spacing: 0;
  white-space: pre-line;
}

.order-hero span {
  display: block;
  max-width: 720px;
  margin-top: 18px;
  color: #536278;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.6;
  font-weight: 760;
  white-space: pre-line;
}

.order-success {
  display: grid;
  gap: 8px;
  margin-bottom: 24px;
  padding: 22px 24px;
  border: 1px solid #a6e7bf;
  border-radius: 8px;
  background: #e9fff2;
  color: #105a35;
  font-size: 20px;
  white-space: pre-line;
}

.order-success strong {
  font-size: 30px;
}

.order-flow,
.order-step {
  display: grid;
  gap: 24px;
}

.order-step {
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid #d8e2ee;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.06);
}

.order-step__heading {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.order-step__heading > span {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 8px;
  background: #10264a;
  color: #bfdbfe;
  font-size: 24px;
  font-weight: 950;
}

.order-step h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: var(--public-heading-weight, 650);
  white-space: pre-line;
}

.order-step p {
  margin: 8px 0 0;
  color: #5b6b82;
  font-size: 20px;
  line-height: 1.65;
  white-space: pre-line;
}

.order-type-grid,
.order-products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.order-type-card,
.order-product {
  min-height: 118px;
  padding: 20px;
  border: 2px solid #d8e2ee;
  border-radius: 8px;
  background: #f8fbff;
  color: #172033;
  text-align: left;
  cursor: pointer;
  transform: scale(1);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.order-type-card:hover,
.order-product:hover {
  border-color: rgba(37, 99, 235, 0.48);
  background: #fff;
  box-shadow: 0 18px 44px rgba(37, 99, 235, 0.1);
  transform: scale(1.018);
}

.order-type-card.active,
.order-product.active {
  border-color: #2563eb;
  background: #eef5ff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.order-type-card strong,
.order-product strong {
  display: block;
  font-size: 24px;
  line-height: 1.25;
}

.order-type-card span,
.order-product span,
.order-product p,
.order-quantity span {
  color: #5b6b82;
  font-size: 17px;
  line-height: 1.55;
  font-weight: 760;
  white-space: pre-line;
}

.order-product {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 16px;
}

.order-product__image {
  display: grid;
  place-items: center;
  min-height: 104px;
  border-radius: 8px;
  background: #e8f0fa;
  overflow: hidden;
}

.order-product__image img,
.order-product__image video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.order-product__placeholder {
  width: 58%;
  aspect-ratio: 1;
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0)),
    radial-gradient(circle at 34% 32%, rgba(37, 99, 235, 0.22), transparent 36%),
    #dbe7f5;
}

.order-empty {
  grid-column: 1 / -1;
  padding: 28px;
  border: 1px dashed #b8c7d9;
  border-radius: 8px;
  color: #5b6b82;
  font-size: 20px;
  font-weight: 800;
  text-align: center;
}

.order-quantity {
  display: grid;
  grid-template-columns: 1fr 64px 86px 64px;
  align-items: center;
  gap: 12px;
  padding: 18px;
  border: 1px solid #d8e2ee;
  border-radius: 8px;
  background: #f8fbff;
}

.order-quantity strong {
  display: block;
  font-size: 24px;
}

.order-quantity button,
.order-submit {
  min-height: 58px;
  border: 0;
  border-radius: 8px;
  background: #2563eb;
  color: #fff;
  font-size: 26px;
  font-weight: 950;
  cursor: pointer;
  transform: scale(1);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.order-quantity button:hover,
.order-submit:hover:not(:disabled) {
  background: #1d4ed8;
  box-shadow: 0 18px 44px rgba(37, 99, 235, 0.16);
  transform: scale(1.018);
}

.order-quantity output {
  text-align: center;
  font-size: 34px;
  font-weight: 950;
}

.order-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.order-form-grid label {
  display: grid;
  gap: 8px;
  color: #20334f;
  font-size: 18px;
  font-weight: 900;
}

.order-form-grid input,
.order-form-grid select,
.order-form-grid textarea {
  min-height: 58px;
  padding: 0 16px;
  border: 2px solid #d8e2ee;
  border-radius: 8px;
  background: #fff;
  color: #0f172a;
  font: inherit;
  font-size: 21px;
}

.order-form-grid textarea {
  min-height: 130px;
  padding-top: 14px;
  resize: vertical;
}

.order-form-grid__full {
  grid-column: 1 / -1;
}

.order-submit {
  width: 100%;
  min-height: 70px;
}

.order-submit:disabled {
  background: #94a3b8;
  cursor: not-allowed;
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background: #f3f6fa;
}

.login-panel {
  width: min(420px, 100%);
  display: grid;
  gap: 13px;
  background: #fff;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 12px 32px rgba(23, 32, 51, 0.08);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.login-brand .ops-brand-mark {
  color: #fff;
  background: #5c67f2;
}

.login-brand strong,
.login-brand span {
  display: block;
}

.login-brand strong {
  color: #172033;
  font-size: 20px;
  font-weight: 900;
}

.login-brand span {
  color: #66758f;
  font-size: 13px;
  margin-top: 2px;
  font-weight: 800;
}

.login-panel h1 {
  color: #5c67f2;
  font-size: 28px;
}

.login-panel label {
  color: #66758f;
  font-size: 12px;
  font-weight: 900;
}

.login-panel input {
  height: 40px;
  border: 1px solid #d2dbe8;
  border-radius: 7px;
  background: #f8fafc;
  color: #172033;
  padding: 0 12px;
}

.login-panel .ops-primary {
  width: 100%;
  margin-top: 8px;
}

.login-error {
  padding: 10px 12px;
  border-radius: 7px;
  background: #ffe4e6;
  color: #b42318;
  font-size: 13px;
  font-weight: 800;
}

@media (max-width: 900px) {
  .ops-topbar {
    height: auto;
    min-height: 76px;
    padding: 18px 22px;
    align-items: flex-start;
    flex-direction: column;
  }

  .ops-brand {
    font-size: 20px;
    white-space: normal;
  }

  .ops-main {
    width: min(100% - 24px, 1240px);
    padding-top: 22px;
  }

  .ops-metrics,
  .ops-create-row,
  .ops-filter-row,
  .admin-inline-form,
  .admin-inline-form.users,
  .catalog-grid,
  .product-admin-grid,
  .catalog-filter-panel,
  .catalog-request-form,
  .two-col,
  .bom-add-row,
  .ops-context-grid {
    grid-template-columns: 1fr;
  }

  .ops-search {
    grid-template-columns: minmax(0, 1fr) 56px;
  }

  .order-topbar,
  .order-step__heading {
    align-items: stretch;
    flex-direction: column;
  }

  .order-topbar nav,
  .order-topbar nav a,
  .order-brand {
    width: 100%;
  }

  .order-topbar nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .order-topbar nav a {
    justify-content: center;
  }

  .order-type-grid,
  .order-products,
  .order-form-grid {
    grid-template-columns: 1fr;
  }

  .order-product {
    grid-template-columns: 94px 1fr;
  }

  .order-quantity {
    grid-template-columns: 1fr 56px 72px 56px;
  }
}

/* Nable-inspired system polish */
:root {
  --rc-ink: #0f172a;
  --rc-muted: #6b7280;
  --rc-cyan: #0099b8;
  --rc-aqua: #75fafd;
  --rc-line: #dde3ec;
  --rc-soft: #f4f8fb;
}

body {
  background:
    radial-gradient(circle at 17% 18%, rgba(0, 153, 184, 0.055), transparent 36%),
    radial-gradient(circle at 82% 4%, rgba(122, 111, 240, 0.055), transparent 38%),
    #ffffff;
  color: var(--rc-ink);
}

.ops-page,
.order-page {
  background:
    radial-gradient(circle at 12% 16%, rgba(0, 153, 184, 0.055), transparent 34%),
    #ffffff;
}

.ops-topbar,
.order-topbar {
  background: rgba(255, 255, 255, 0.9);
  color: var(--rc-ink);
  border-bottom: 1px solid var(--rc-line);
  box-shadow: none;
  backdrop-filter: blur(16px);
}

.ops-brand,
.order-brand {
  color: var(--rc-ink);
}

.ops-brand-mark,
.order-brand span {
  border-radius: 999px;
  background: var(--rc-aqua);
  color: #000;
}

.ops-nav button,
.ops-nav a,
.ops-topbar button,
.order-topbar nav a {
  border-color: rgba(0, 153, 184, 0.28);
  background: rgba(255, 255, 255, 0.62);
  color: #007f9c;
  border-radius: 8px;
}

.ops-title-row h1,
.order-hero h1 {
  color: var(--rc-ink);
  letter-spacing: 0;
}

.ops-title-row p,
.order-hero span {
  color: var(--rc-muted);
  font-weight: 320;
}

.ops-panel,
.ops-table-panel,
.ops-metric,
.order-step,
.login-panel,
.catalog-product,
.catalog-selected-summary {
  border-color: var(--rc-line);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.055);
}

.ops-primary,
.ops-search button,
.catalog-order-entry,
.catalog-selected-summary a,
.order-quantity button,
.order-submit {
  background: #008ca7;
}

.ops-row-action {
  background: #008ca7;
}

.catalog-product.active,
.order-type-card.active,
.order-product.active {
  border-color: rgba(0, 153, 184, 0.68);
  background: #eefcff;
  box-shadow: 0 0 0 4px rgba(0, 153, 184, 0.10);
}

.catalog-filter-chip.active,
.ops-status.info {
  background: #e6fbff;
  color: #007f9c;
}

.login-page--nable {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 58%, rgba(122, 111, 240, 0.07), transparent 62%),
    radial-gradient(ellipse at 16% 20%, rgba(0, 153, 184, 0.08), transparent 54%),
    #ffffff;
}

.login-bubbles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.login-bubbles span {
  position: absolute;
  width: clamp(18px, 4vw, 58px);
  aspect-ratio: 1;
  border-radius: 999px;
  border: 1px solid rgba(80, 120, 160, 0.36);
  background:
    radial-gradient(circle at 34% 28%, rgba(255,255,255,0.95), rgba(117,250,253,0.12) 46%, rgba(122,111,240,0.16));
  box-shadow:
    inset -8px -10px 18px rgba(15, 23, 42, 0.12),
    inset 8px 8px 16px rgba(255, 255, 255, 0.72);
  opacity: 0.82;
}

.login-bubbles span:nth-child(1) { left: 12%; top: 18%; }
.login-bubbles span:nth-child(2) { right: 16%; top: 12%; width: 28px; }
.login-bubbles span:nth-child(3) { left: 22%; bottom: 18%; width: 42px; }
.login-bubbles span:nth-child(4) { right: 24%; bottom: 22%; width: 64px; }
.login-bubbles span:nth-child(5) { left: 50%; top: 10%; width: 22px; }

.login-panel--nable {
  position: relative;
  z-index: 1;
  width: min(430px, 100%);
  gap: 14px;
  padding: 34px;
  border-color: rgba(221, 227, 236, 0.9);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(20px);
}

.login-panel--nable h1 {
  color: var(--rc-ink);
  font-size: 48px;
  line-height: 0.96;
  letter-spacing: 0;
}

.login-subtitle {
  margin: -2px 0 12px;
  color: var(--rc-muted);
  line-height: 1.65;
  font-weight: 300;
}

.login-panel--nable label {
  color: #5c6175;
  font-size: 13px;
  letter-spacing: 0.08em;
}

.login-panel--nable input {
  height: 46px;
  border-radius: 8px;
  border-color: var(--rc-line);
  background: rgba(255, 255, 255, 0.92);
}

.login-panel--nable .ops-primary {
  height: 48px;
  margin-top: 8px;
  border-radius: 8px;
}
