:root {
  --ink: #1a2332;
  --muted: #5c6b7a;
  --line: #d7e0ea;
  --surface: #ffffff;
  --bg: #f4f7fb;
  --accent: #1565c0;
  --accent-2: #e67e22;
  --tech-blue: #1565c0;
  --harmony-orange: #e67e22;
  --warn: #e67e22;
  --danger: #b42318;
  --ok: #027a48;
  --shadow: 0 10px 30px rgba(16, 38, 58, 0.08);
  --radius: 14px;
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 1000;
  background: var(--accent);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
}
.skip-link:focus, .skip-link:focus-visible {
  left: 12px;
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: #f7f9fc;
  min-height: 100vh;
}

a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,0.85);
  border-bottom: 1px solid var(--line);
}
.site-header .inner {
  max-width: 1100px; margin: 0 auto;
  padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand {
  font-weight: 800; letter-spacing: 0.02em;
  color: var(--ink); font-size: 1.05rem;
}
.brand span { color: var(--accent); }
.brand > [data-i18n="brand"] { color: inherit; font-weight: inherit; }
.nav-links { display: flex; gap: 14px; flex-wrap: wrap; font-size: 0.92rem; align-items: center; }

.portal-lang-slot { margin-inline-start: auto; }
.lang-switch {
  display: inline-flex;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px;
  background: #fff;
}
.lang-select {
  appearance: auto;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 600;
  min-height: 32px;
  min-width: 8.5em;
  max-width: min(46vw, 12rem);
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
}
.lang-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  min-height: 32px;
  min-width: 44px;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
}
.lang-btn.is-active {
  background: var(--accent);
  color: #fff;
}
html[lang="ja"] body {
  font-family: "Segoe UI", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
}
html[lang="ko"] body {
  font-family: "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}
html[lang="zh-TW"] body {
  font-family: "Segoe UI", "PingFang TC", "Microsoft JhengHei", sans-serif;
}
html[dir="rtl"] body {
  font-family: "Segoe UI", "Tahoma", "Arial", "Noto Naskh Arabic", sans-serif;
}
html[dir="rtl"] .nav-links {
  flex-direction: row;
}
.form-hint-sm { margin: 4px 0 0; font-size: 0.82rem; line-height: 1.4; }

/* Compact order-path CTA under site header (secondary Portal pages) */
.portal-nav-cta {
  background: #fff;
  border-bottom: 1px solid rgba(21, 101, 192, 0.12);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}
.portal-nav-cta-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 8px 16px;
}
.portal-nav-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 6px 14px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none !important;
  border: 1px solid rgba(21, 101, 192, 0.28);
  background: linear-gradient(180deg, #1b74d4, var(--tech-blue));
  color: #fff;
  box-shadow: 0 4px 12px rgba(21, 101, 192, 0.15);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.portal-nav-cta-btn:hover { color: #fff; transform: translateY(-1px); }
.portal-nav-cta-btn.standard {
  background: linear-gradient(180deg, #f09a45, var(--harmony-orange));
  border-color: rgba(230, 126, 34, 0.35);
  box-shadow: 0 4px 12px rgba(230, 126, 34, 0.15);
}
.portal-nav-cta-btn.demand {
  background: linear-gradient(180deg, #1aa38f, #0f766e);
  border-color: rgba(15, 118, 110, 0.35);
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.15);
}
.portal-nav-cta-btn.is-active {
  outline: 2px solid rgba(21, 101, 192, 0.45);
  outline-offset: 2px;
}
.portal-nav-cta-btn.standard.is-active { outline-color: rgba(230, 126, 34, 0.55); }
.portal-nav-cta-btn.demand.is-active { outline-color: rgba(15, 118, 110, 0.55); }

/* Homepage products band */
body.pcb-home .home-products-band {
  margin: 0 0 28px;
  padding: 20px 0 4px;
  border-top: 1px solid rgba(21, 101, 192, 0.1);
}
body.pcb-home .home-products-inner { max-width: 100%; }
body.pcb-home .home-products-band h2 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ink);
}
body.pcb-home .home-products-lead { margin: 0 0 16px; font-size: 0.92rem; }
body.pcb-home .home-products-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
body.pcb-home .home-products-card {
  display: block;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(21, 101, 192, 0.14);
  background: #fff;
  text-decoration: none !important;
  color: inherit;
  box-shadow: 0 6px 16px rgba(21, 101, 192, 0.06);
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
body.pcb-home .home-products-card:hover {
  border-color: rgba(21, 101, 192, 0.35);
  box-shadow: 0 8px 20px rgba(21, 101, 192, 0.1);
}
body.pcb-home .home-products-card h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 800;
  color: var(--tech-blue);
}
body.pcb-home .home-products-card p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.45;
}
@media (max-width: 860px) {
  body.pcb-home .home-products-cards { grid-template-columns: 1fr; }
  .portal-nav-cta-inner { padding: 8px 12px; }
  .portal-nav-cta-btn { flex: 1 1 auto; min-width: calc(50% - 8px); }
}

/* Products page */
.products-page .products-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}
.products-page .products-card h2 { margin-top: 0; font-size: 1.15rem; }
.products-page .products-note { font-size: 0.88rem; margin-bottom: 0; }
.products-page .products-downloads h2 { margin-top: 0; font-size: 1.15rem; }
.products-page .products-download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.products-page .products-dl-btn { width: auto; min-height: 44px; }
.products-page .products-dl-btn.is-pending,
.products-page .products-dl-btn[aria-disabled="true"] {
  opacity: 0.65;
  pointer-events: none;
  cursor: not-allowed;
}
.products-page .products-foot { margin-top: 16px; font-size: 0.88rem; }
@media (max-width: 760px) {
  .products-page .products-grid { grid-template-columns: 1fr; }
}

body.pcb-home .home-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
body.pcb-home .portal-lang-slot { margin-inline-start: 0; }

.container { max-width: 1100px; margin: 0 auto; padding: 24px 20px 60px; }

.hero-card, .panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 28px 24px;
  margin-bottom: 20px;
  background:
    linear-gradient(135deg, rgba(21,101,192,0.08), rgba(230,126,34,0.06)),
    var(--surface);
}
.hero-card h1 {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.25;
}
.hero-card p { margin: 0; color: var(--muted); max-width: 60ch; }

.panel { padding: 20px; margin-bottom: 18px; }
.panel h2, .panel h3 { margin-top: 0; }

.apk-dl-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
}
.apk-qr-wrap {
  text-align: center;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.apk-qr-wrap canvas,
.apk-qr-wrap img {
  display: block;
  margin: 0 auto 8px;
  width: 220px;
  height: 220px;
  background: #fff;
}
@media (max-width: 640px) {
  .apk-dl-grid { grid-template-columns: 1fr; }
  .apk-qr-wrap { justify-self: center; }
}

.pay-qr-block { margin: 16px 0 8px; }
.pay-qr-steps { margin: 0 0 8px; }
.pay-qr-block ol { margin: 8px 0 12px; padding-left: 1.25em; }
.pay-qr-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 8px 0 4px;
}
.pay-qr-grid figure {
  margin: 0;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
}
.pay-qr-grid img {
  width: min(100%, 240px);
  height: auto;
  background: #fff;
}
.pay-qr-grid figcaption { margin-top: 8px; font-size: 0.9rem; }
@media (max-width: 640px) {
  .pay-qr-grid { grid-template-columns: 1fr; }
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

label { display: block; font-size: 0.88rem; color: var(--muted); margin-bottom: 6px; }
.form-group { margin-bottom: 14px; }
/* Text fields only — checkboxes/radios must not inherit width:100% (looks like a long strip). */
input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="range"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="image"]):not([type="color"]),
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  background: #fff;
}
textarea { min-height: 90px; resize: vertical; }
input:not([type="checkbox"]):not([type="radio"]):focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(21,101,192,0.25);
  border-color: var(--accent);
}

/* Square confirm/check controls (Portal / Console / H5 / login / submit / admin). */
input[type="checkbox"],
input[type="radio"] {
  -webkit-appearance: none;
  appearance: none;
  display: inline-block;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  max-width: 18px;
  max-height: 18px;
  margin: 2px 8px 0 0;
  padding: 0;
  vertical-align: top;
  border: 2px solid var(--ink);
  background-color: #fff;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 12px 12px;
  box-shadow: none;
  cursor: pointer;
  color: var(--ink);
  accent-color: var(--accent);
}
input[type="checkbox"] { border-radius: 3px; }
input[type="radio"] { border-radius: 3px; }
input[type="checkbox"]:checked {
  background-color: var(--accent);
  border-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M3.2 8.4l3.1 3.2 6.5-7'/%3E%3C/svg%3E");
}
input[type="checkbox"]:indeterminate {
  background-color: var(--accent);
  border-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' d='M3 8h10'/%3E%3C/svg%3E");
}
input[type="radio"]:checked {
  background-color: var(--accent);
  border-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect x='4' y='4' width='8' height='8' rx='1' fill='%23fff'/%3E%3C/svg%3E");
}
input[type="checkbox"]:disabled,
input[type="radio"]:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
input[type="checkbox"]:focus-visible,
input[type="radio"]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
label:has(> input[type="checkbox"]),
label:has(> input[type="radio"]),
label:has(> input[type="checkbox"] + span),
label:has(> input[type="radio"] + span) {
  display: flex;
  align-items: flex-start;
  gap: 0;
  color: var(--ink);
  cursor: pointer;
  line-height: 1.45;
  font-size: 0.92rem;
}
.choice-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 4px 0 8px;
}
.choice-list .choice,
label.choice {
  display: flex;
  align-items: flex-start;
  margin: 0;
  color: var(--ink);
  font-size: 0.92rem;
  cursor: pointer;
  width: auto;
}
#sizeCustom { margin-top: 8px; }
#sizeError { margin-top: 8px; }
@media (forced-colors: active) {
  input[type="checkbox"],
  input[type="radio"] {
    -webkit-appearance: auto;
    appearance: auto;
    background: Canvas;
    border: 2px solid ButtonText;
    background-image: none;
  }
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; border-radius: 10px;
  padding: 10px 16px;
  font: inherit; font-weight: 600;
  cursor: pointer;
  background: var(--accent); color: #fff;
}
.btn:hover { filter: brightness(1.05); }
.btn.secondary { background: var(--harmony-orange); }
.btn.ghost { background: transparent; color: var(--accent-2); border: 1px solid var(--line); }
.btn.danger { background: var(--danger); }
.btn.warn { background: var(--warn); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

.inline { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }

.alert {
  padding: 12px 14px; border-radius: 10px; margin-bottom: 14px;
  border: 1px solid transparent;
}
.alert.error { background: #fef3f2; border-color: #fecdca; color: var(--danger); }
.alert.ok { background: #ecfdf3; border-color: #abefc6; color: var(--ok); }
.alert.info { background: #eff8ff; border-color: #b2ddff; color: #175cd3; }
.student-promo-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 12px 16px;
  margin: 0 0 16px;
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(21, 101, 192, 0.09) 0%, rgba(255, 255, 255, 0.96) 14%);
  border: 1px solid rgba(21, 101, 192, 0.22);
  border-inline-start: 4px solid var(--tech-blue, #1565c0);
}
.student-promo-badge {
  flex-shrink: 0;
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  background: #d1e9ff;
  color: #175cd3;
  letter-spacing: 0.02em;
}
.student-promo-body {
  flex: 1;
  min-width: min(100%, 220px);
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
}
.student-promo-body strong {
  display: block;
  font-weight: 650;
  color: var(--ink);
}
.student-promo-sub {
  display: block;
  margin-top: 4px;
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 400;
}
.student-promo-link {
  flex-shrink: 0;
  font-size: 0.88rem;
  font-weight: 650;
  white-space: nowrap;
}
body.pcb-home .student-promo-bar {
  margin-top: 18px;
  max-width: 520px;
}
.sms-offline-banner {
  position: sticky;
  top: 0;
  z-index: 20;
  font-weight: 700;
  text-align: center;
}
body.pcb-home .sms-offline-banner {
  position: relative;
  top: auto;
  z-index: 1;
  margin: 0 0 14px;
  padding: 8px 14px;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: start;
  border-radius: 8px;
}

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th, td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--muted); font-weight: 600; white-space: nowrap; }
tr:hover td { background: rgba(21,101,192,0.03); }

.badge {
  display: inline-block; padding: 3px 8px; border-radius: 999px;
  font-size: 0.78rem; font-weight: 600;
  background: #eef2f6; color: var(--ink);
}
.badge.green { background: #dcfae6; color: var(--ok); }
.badge.blue { background: #d1e9ff; color: #175cd3; }
.badge.orange { background: #fef0c7; color: var(--warn); }
.badge.red { background: #fee4e2; color: var(--danger); }

.steps {
  display: flex; gap: 6px; flex-wrap: wrap; margin: 14px 0;
}
.step {
  flex: 1; min-width: 90px;
  padding: 8px; border-radius: 10px;
  background: #f2f5f8; color: var(--muted);
  font-size: 0.78rem; text-align: center;
}
.step.active { background: rgba(21,101,192,0.12); color: var(--tech-blue); font-weight: 700; }
.step.done { background: rgba(230,126,34,0.12); color: var(--harmony-orange); }

.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.stat-card, .stat {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px;
}
.stat-card .v, .stat .n { font-size: 1.4rem; font-weight: 800; }
.stat-card .k, .stat .l { color: var(--muted); font-size: 0.85rem; }

.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.tab {
  padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; cursor: pointer; font-size: 0.9rem;
}
.tab.active { background: var(--accent); color: #fff; border-color: var(--accent); }

.agreement-box {
  max-height: 220px; overflow: auto;
  border: 1px solid var(--line); border-radius: 10px;
  padding: 12px; background: #fafcfd; font-size: 0.86rem; color: var(--muted);
  white-space: pre-wrap;
}

.captcha-box { max-width: 300px; }
.captcha-box svg { display: block; }
.captcha-puzzle { width: 100%; user-select: none; -webkit-user-select: none; }
.captcha-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 300 / 152;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #d7e4f2;
  touch-action: none;
}
.captcha-bg, .captcha-bg svg { width: 100%; height: 100%; display: block; }
.captcha-piece {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.35));
}
.captcha-piece svg { width: 100%; height: 100%; display: block; }
.captcha-track {
  position: relative;
  margin-top: 10px;
  height: 40px;
  border-radius: 20px;
  background: #f0f3f7;
  border: 1px solid var(--line);
}
.captcha-hint {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  color: var(--muted);
  pointer-events: none;
}
.captcha-knob {
  position: absolute;
  top: -1px;
  left: 0;
  width: 40px;
  min-width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  cursor: grab;
  box-shadow: 0 1px 3px rgba(0,0,0,.12);
  z-index: 1;
  appearance: none;
  -webkit-appearance: none;
}
.captcha-knob::before {
  content: '';
  display: block;
  width: 10px;
  height: 10px;
  margin: 14px auto 0;
  border-right: 2px solid var(--accent, #1565c0);
  border-top: 2px solid var(--accent, #1565c0);
  transform: rotate(45deg);
}
.captcha-knob.dragging, .captcha-knob:active { cursor: grabbing; }
.captcha-puzzle.ok .captcha-track { background: #e8f6ee; border-color: #2e7d32; }
.captcha-puzzle.ok .captcha-hint { color: #2e7d32; }
.captcha-puzzle.ok .captcha-knob { border-color: #2e7d32; }
.captcha-puzzle.fail .captcha-track { background: #fdecea; }
.captcha-refresh { margin-top: 8px; padding: 4px 10px; font-size: 0.82rem; width: auto !important; max-width: none; }
.muted { color: var(--muted); font-size: 0.88rem; }
.login-wrap { max-width: 420px; margin: 60px auto; }
.portal-account-slot { font-size: 0.88rem; white-space: nowrap; }
.portal-account-slot a { margin: 0 2px; }
.entry-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 14px 0 12px;
}
.entry-opt {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 10px 8px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  color: var(--ink);
}
.entry-opt.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* Mobile / H5 utilities (shared with desktop; responsive-first) */
.touch-target,
.btn,
body.pcb-home .home-cta {
  min-height: 44px;
}
@media (max-width: 860px) {
  .grid-2, .grid-3, .stat-cards { grid-template-columns: 1fr; }
  .site-header .inner { flex-direction: column; align-items: start; }
  input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="range"]):not([type="button"]):not([type="submit"]):not([type="reset"]),
  select,
  textarea { min-height: 44px; font-size: 16px; }
  input[type="checkbox"],
  input[type="radio"] {
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    max-width: 20px;
    max-height: 20px;
    background-size: 13px 13px;
  }
  .btn { width: 100%; max-width: 100%; }
  .inline .btn { width: auto; }
  .container {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
    padding-bottom: max(48px, env(safe-area-inset-bottom));
  }
  .nav-links { gap: 10px 14px; }
  .table-wrap { -webkit-overflow-scrolling: touch; }
}

/* Homepage: clean upper area + simple circuit at the bottom */
body.pcb-home {
  min-height: 100vh;
  color: var(--ink);
  background: #f7f9fc;
}
body.pcb-home .pcb-trace {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: 220px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.7;
  background:
    radial-gradient(circle at 12% 70%, var(--tech-blue) 3px, transparent 3.5px),
    radial-gradient(circle at 28% 42%, var(--harmony-orange) 3px, transparent 3.5px),
    radial-gradient(circle at 46% 78%, var(--tech-blue) 3px, transparent 3.5px),
    radial-gradient(circle at 62% 38%, var(--tech-blue) 3px, transparent 3.5px),
    radial-gradient(circle at 78% 72%, var(--harmony-orange) 3px, transparent 3.5px),
    radial-gradient(circle at 92% 48%, var(--tech-blue) 3px, transparent 3.5px),
    linear-gradient(90deg, transparent 11.6%, var(--tech-blue) 11.6%, var(--tech-blue) 12.4%, transparent 12.4%) 0 70% / 100% 2px no-repeat,
    linear-gradient(90deg, transparent 27.6%, var(--harmony-orange) 27.6%, var(--harmony-orange) 28.4%, transparent 28.4%) 0 42% / 100% 2px no-repeat,
    linear-gradient(90deg, transparent 45.6%, var(--tech-blue) 45.6%, var(--tech-blue) 46.4%, transparent 46.4%) 0 78% / 100% 2px no-repeat,
    linear-gradient(90deg, transparent 61.6%, var(--tech-blue) 61.6%, var(--tech-blue) 62.4%, transparent 62.4%) 0 38% / 100% 2px no-repeat,
    linear-gradient(90deg, transparent 77.6%, var(--harmony-orange) 77.6%, var(--harmony-orange) 78.4%, transparent 78.4%) 0 72% / 100% 2px no-repeat,
    linear-gradient(180deg, transparent 36%, var(--tech-blue) 36%, var(--tech-blue) 38%, transparent 38%) 12% 0 / 2px 100% no-repeat,
    linear-gradient(180deg, transparent 40%, var(--harmony-orange) 40%, var(--harmony-orange) 42%, transparent 42%) 28% 0 / 2px 100% no-repeat,
    linear-gradient(180deg, transparent 36%, var(--tech-blue) 36%, var(--tech-blue) 38%, transparent 38%) 62% 0 / 2px 100% no-repeat,
    linear-gradient(180deg, transparent 46%, var(--harmony-orange) 46%, var(--harmony-orange) 48%, transparent 48%) 78% 0 / 2px 100% no-repeat,
    linear-gradient(180deg, rgba(247,249,252,0), rgba(21,101,192,0.06) 55%, rgba(230,126,34,0.05));
}
body.pcb-home .home-shell { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; }
body.pcb-home .home-head { padding: 22px 28px; }
body.pcb-home .brand { color: var(--ink); }
body.pcb-home .brand span { color: var(--tech-blue); }
body.pcb-home .home-main {
  flex: 1;
  display: block;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 8px 0 48px;
  text-align: start;
}
body.pcb-home .home-hero {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 28px;
  align-items: center;
  margin: 8px 0 28px;
}
body.pcb-home .home-hero h1 {
  font-size: clamp(2rem, 4.2vw, 2.75rem);
  line-height: 1.15;
  margin: 0 0 14px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
body.pcb-home .home-hero-lead {
  color: var(--muted);
  margin: 0 0 18px;
  max-width: 48ch;
  font-size: 1.02rem;
  line-height: 1.5;
}
body.pcb-home .home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  margin-top: 8px;
}
body.pcb-home .home-hero-visual {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #0f1a28;
  min-height: 240px;
}
body.pcb-home .home-hero-visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 260px;
  max-height: 380px;
  object-fit: cover;
}
body.pcb-home .home-cta {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 168px;
  min-height: 48px;
  padding: 10px 18px;
  border-radius: 12px; text-decoration: none !important;
  font-size: 1.05rem; font-weight: 800; letter-spacing: 0.02em;
  border: 1px solid rgba(21,101,192,0.28);
  background: linear-gradient(180deg, #1b74d4, var(--tech-blue));
  color: #fff;
  box-shadow: 0 10px 22px rgba(21,101,192,0.22);
  transition: transform .15s ease, box-shadow .15s ease;
}
body.pcb-home .home-cta:hover {
  transform: translateY(-2px);
  color: #fff;
  box-shadow: 0 14px 28px rgba(21,101,192,0.3);
}
body.pcb-home .home-cta.standard {
  background: linear-gradient(180deg, #f09a45, var(--harmony-orange));
  border-color: rgba(230,126,34,0.35);
  box-shadow: 0 10px 22px rgba(230,126,34,0.22);
}
body.pcb-home .home-cta.standard:hover {
  box-shadow: 0 14px 28px rgba(230,126,34,0.3);
}
body.pcb-home .home-cta.demand {
  background: linear-gradient(180deg, #1aa38f, #0f766e);
  border-color: rgba(15, 118, 110, 0.35);
  box-shadow: 0 10px 22px rgba(15, 118, 110, 0.22);
}
body.pcb-home .home-cta.demand:hover {
  box-shadow: 0 14px 28px rgba(15, 118, 110, 0.3);
}
body.pcb-home .home-sub {
  font-size: 0.95rem;
  font-weight: 650;
  color: var(--tech-blue);
  text-decoration: none !important;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
body.pcb-home .home-sub:hover { color: var(--harmony-orange); text-decoration: underline !important; }
body.pcb-home .home-cta-band {
  margin: 12px 0 32px;
  padding: 24px 22px;
  background: rgba(255,255,255,0.94);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
body.pcb-home .home-cta-band-actions {
  justify-content: center;
  margin-top: 0;
}
body.pcb-home .home-trust { margin-bottom: 22px; }
@media (max-width: 860px) {
  body.pcb-home .home-hero { grid-template-columns: 1fr; }
  body.pcb-home .home-hero-visual img { min-height: 200px; max-height: 260px; }
  body.pcb-home .home-cta { width: 100%; }
}

/* Portal about / tech intro */
body.about-page { background: #f4f7fb; }
.about-kicker {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.about-hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
  margin-bottom: 22px;
  padding: 8px 0 4px;
}
.about-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.65rem, 3.4vw, 2.35rem);
  line-height: 1.2;
}
.about-hero-copy > p { margin: 0 0 14px; color: var(--muted); max-width: 54ch; }
.about-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.about-hero-actions .btn { width: auto; min-width: 140px; }
.about-hero-visual {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #0f1a28;
  min-height: 240px;
}
.about-hero-visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 240px;
  max-height: 360px;
  object-fit: cover;
}
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 18px;
}
.about-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 20px;
}
.about-card h2 { margin: 0 0 10px; font-size: 1.15rem; }
.about-card p { margin: 0 0 10px; color: var(--muted); }
.about-card p:last-child { margin-bottom: 0; }
.about-scope {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.about-scope h3 { margin: 0 0 8px; font-size: 1.02rem; }
.about-scope p { margin: 0; color: var(--muted); }
.about-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.about-gallery figure {
  margin: 0;
  background: #0f1a28;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.about-gallery img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.about-gallery figcaption {
  padding: 8px 10px 10px;
  font-size: 0.82rem;
  color: #d7e0ea;
  background: #152232;
}
.about-cta h2 { margin-bottom: 8px; }
.about-note { margin-top: 16px; }
.tech-blocks { display: flex; flex-direction: column; gap: 16px; margin-bottom: 18px; }
.tech-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  align-items: stretch;
}
.tech-block:nth-child(even) .tech-block-copy { order: 2; }
.tech-block-copy { padding: 24px 22px; }
.tech-block-copy h2 { margin: 0 0 10px; font-size: 1.2rem; }
.tech-block-copy p { margin: 0; color: var(--muted); }
.tech-block figure { margin: 0; background: #0f1a28; min-height: 200px; }
.tech-block img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
}
.tech-pills, .tech-family {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tech-pills li, .tech-family li {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 0.9rem;
}
.tech-family {
  flex-direction: column;
  align-items: stretch;
}
.tech-family li {
  border-radius: 10px;
  background: #fafcfd;
}
html[dir="rtl"] .tech-block:nth-child(even) .tech-block-copy { order: 0; }
body.pcb-home .home-head .nav-links {
  gap: 12px 16px;
  font-size: 0.9rem;
}
body.pcb-home .home-head .nav-links a { color: var(--tech-blue); text-decoration: none; }
body.pcb-home .home-head .nav-links a:hover { color: var(--harmony-orange); text-decoration: underline; }
@media (max-width: 860px) {
  .about-hero, .about-split, .about-scope, .about-gallery, .tech-block {
    grid-template-columns: 1fr;
  }
  .tech-block:nth-child(even) .tech-block-copy { order: 0; }
  .about-hero-visual img, .tech-block img { min-height: 200px; max-height: 260px; }
  .about-hero-actions .btn { width: 100%; }
}

/* SEO: breadcrumbs, FAQ, footer */
.crumbs { margin: 12px 0 8px; font-size: 0.85rem; color: var(--muted); }
.crumbs ol {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center;
}
.crumbs li:not(:last-child)::after { content: "/"; margin-inline-start: 10px; color: var(--line); }
.crumbs a { color: var(--accent); }
.faq-block h2 { margin: 0 0 12px; font-size: 1.2rem; }
.faq-block dl { margin: 0; }
.faq-block dt { font-weight: 700; margin-top: 12px; }
.faq-block dt:first-child { margin-top: 0; }
.faq-block dd { margin: 6px 0 0; color: var(--muted); }
.tech-how { margin: 0 0 16px; padding-inline-start: 1.2rem; color: var(--muted); }
.tech-how li { margin: 6px 0; }
.site-footer {
  margin-top: 28px;
  padding: 18px 20px calc(24px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: #fff;
  text-align: center;
  font-size: 0.88rem;
  color: var(--muted);
  position: relative;
  z-index: 1;
}
.site-footer-org { margin: 0 0 8px; }
.site-footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 16px; }
.site-footer-nav a { color: var(--accent); }
.site-footer-icp { margin: 10px 0 0; font-size: 0.8rem; }
.site-footer-icp a { color: var(--muted); text-decoration: none; }
.site-footer-icp a:hover { text-decoration: underline; }
.site-footer-staff { margin: 8px 0 0; font-size: 0.72rem; letter-spacing: 0.04em; }
.site-footer-staff a { color: #9aa5b1; text-decoration: none; }
.site-footer-staff a:hover { color: var(--muted); text-decoration: underline; }
.mkt-features { margin: 0 0 28px; }
body.pcb-home .mkt-features { margin: 32px 0 28px; }
.mkt-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.mkt-card {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.mkt-card img {
  display: block;
  width: 100%;
  height: 148px;
  object-fit: cover;
  background: #0f1a28;
}
.mkt-card h3 { margin: 12px 14px 6px; font-size: 1.02rem; }
.mkt-card p { margin: 0 14px 14px; color: var(--muted); font-size: 0.92rem; }
@media (max-width: 1100px) and (min-width: 861px) {
  .mkt-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .mkt-grid { grid-template-columns: 1fr; }
  .mkt-card img { height: 180px; }
}
body.pcb-home .home-faq {
  position: relative;
  z-index: 1;
  margin: 0 auto 28px;
  max-width: 1120px;
  width: min(1120px, calc(100% - 32px));
  padding: 20px 22px;
  background: rgba(255,255,255,0.94);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: start;
}
body.pcb-home .site-footer { background: rgba(255,255,255,0.94); }

.std-catalog {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
  margin: 0 0 22px;
}
.std-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: start;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: #fff;
  cursor: pointer;
  color: inherit;
  min-height: 44px;
}
.std-card:hover:not(:disabled) { border-color: var(--accent); }
.std-card.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.16);
}
.std-card.oos, .std-card:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.std-card img, .std-card-ph {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  background: linear-gradient(135deg, #e8eef5, #f7fafc);
}
.std-card-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
  letter-spacing: 0.04em;
}
.std-specs-empty { margin: 0; font-size: 0.85rem; }
.std-card .price {
  font-weight: 800;
  color: var(--harmony-orange);
}
.std-card p { margin: 0; font-size: 0.85rem; }
.std-qty {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.std-qty-label { font-size: 0.85rem; color: var(--muted); }
.std-qty-btn {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
.std-qty-btn:hover { border-color: var(--accent); }
.std-qty-input {
  width: 56px !important;
  min-height: 36px;
  max-width: 72px;
  text-align: center;
  padding: 4px 6px !important;
}
.std-order-lines { margin: 8px 0 0; padding-left: 1.2em; font-size: 0.92rem; }
.sms-offline-field {
  font-size: 0.88rem;
  font-weight: 500;
  padding: 8px 10px;
  margin: 6px 0;
}
.std-specs {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  font-size: 0.8rem;
}
.std-specs th, .std-specs td {
  padding: 2px 0;
  vertical-align: top;
  text-align: start;
  border: 0;
}
.std-specs th {
  font-weight: 600;
  color: var(--muted, #5b6775);
  width: 42%;
  padding-inline-end: 8px;
}
.std-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.std-thumbs img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
}
.std-gal-admin {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.std-gal-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}
.std-gal-item img {
  width: 96px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
}

.dfm-preview { display: grid; gap: 12px; }
.dfm-stage {
  position: relative;
  min-height: 180px;
  background: #0f1720;
  border-radius: 10px;
  overflow: hidden;
}
.dfm-stage img { display: block; width: 100%; height: auto; max-height: 420px; object-fit: contain; }
.dfm-stage svg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none;
}
.dfm-empty { color: #9aa8b5; padding: 48px 16px; text-align: center; }
.dfm-list { margin: 0; padding-inline-start: 1.1rem; }
.dfm-list li { margin: 6px 0; }
.dfm-block { color: var(--danger); }
.dfm-warn { color: var(--warn); }
.dfm-info { color: var(--accent); }

.order-stepper {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}
.order-stepper li {
  flex: 1 1 6rem;
  min-width: 5.5rem;
  text-align: center;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 0.85rem;
}
.order-stepper li.active {
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 700;
  background: #e8f1fb;
}
.order-stepper li.done { border-color: var(--ok); color: var(--ok); }
.order-stepper li.blocked { opacity: 0.45; }

.cost-card {
  background: #f7fafc;
  border: 2px solid var(--accent);
}
.cost-card.is-blocked { border-color: var(--danger); }
.cost-card.is-warn { border-color: var(--warn); }
.cost-card .cost-payable {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--muted);
  margin: 6px 0 8px;
}
.cost-card.has-total .cost-payable {
  font-size: 2.15rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.cost-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.fee-modal[hidden] { display: none !important; }
.fee-modal:not([hidden]) {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.fee-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 24, 40, 0.55);
}
.fee-modal-card {
  position: relative;
  z-index: 1;
  max-width: 640px;
  width: 100%;
  max-height: 92vh;
  overflow: auto;
  background: #fff;
  border-radius: 16px;
  padding: 20px 20px 16px;
  box-shadow: 0 16px 48px rgba(16, 24, 40, 0.28);
}
.fee-modal-card .cost-payable {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  margin: 4px 0 12px;
}
body.fee-modal-open { overflow: hidden; }
.cost-card .cost-breakdown { display: grid; gap: 6px; margin: 8px 0 12px; }
.cost-card .cost-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.95rem;
}
.cost-card .cost-row.total {
  font-weight: 700;
  border-top: 1px dashed var(--line);
  padding-top: 8px;
}
.cost-submit-echo { font-weight: 700; margin: 8px 0 12px; }

.mail-to-card { margin-top: 10px; background: #f7fafc; }
.mail-to-dl { margin: 0; }
.mail-to-dl > div {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 8px;
  margin: 6px 0;
}
.mail-to-dl dt { color: var(--muted); }
.mail-to-dl dd { margin: 0; font-weight: 650; }

.points-opt.is-disabled { opacity: 0.55; }
.points-opt.is-disabled label { cursor: not-allowed; color: var(--muted); }
.points-opt-label { display: flex; align-items: flex-start; gap: 8px; }

.dfm-feedback .dfm-verdict { margin: 0 0 8px; }
.dfm-verdict-pass .dfm-verdict { color: var(--ok); }
.dfm-verdict-fail .dfm-verdict { color: var(--danger); }
.dfm-verdict-fix .dfm-verdict { color: var(--warn); }

.draw-editor { display: grid; gap: 10px; }
.draw-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.draw-stage {
  background: #0f1720;
  border-radius: 10px;
  overflow: auto;
  max-height: 480px;
}
.draw-stage canvas { display: block; max-width: 100%; cursor: crosshair; }

body.pcb-home .home-flow {
  margin: 8px 0 28px;
  padding: 22px 22px 26px;
  background: rgba(255,255,255,0.94);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
body.pcb-home .home-flow h2 {
  margin: 0 0 6px;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}
body.pcb-home .home-flow-lead {
  margin: 0 0 20px;
  font-size: 0.92rem;
  max-width: 42ch;
}
body.pcb-home .home-flow-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  align-items: start;
}
body.pcb-home .home-flow-steps li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 0 8px;
  background: transparent;
  border: 0;
  min-width: 0;
}
body.pcb-home .home-flow-num {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 50%;
  background: linear-gradient(180deg, #1b74d4, var(--tech-blue));
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px rgba(21,101,192,0.22);
  z-index: 1;
}
body.pcb-home .home-flow-label {
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1.35;
  color: var(--ink);
  max-width: 9.5em;
}
body.pcb-home .home-flow-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  text-decoration: none !important;
  color: inherit;
}
body.pcb-home .home-flow-link:hover .home-flow-label {
  color: var(--tech-blue);
  text-decoration: underline;
}
body.pcb-home .home-flow-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 17px;
  left: calc(50% + 22px);
  right: calc(-50% + 22px);
  height: 2px;
  background: linear-gradient(90deg, rgba(21,101,192,0.28), rgba(230,126,34,0.28));
  pointer-events: none;
}
html[dir="rtl"] body.pcb-home .home-flow-steps li:not(:last-child)::after {
  left: calc(-50% + 22px);
  right: calc(50% + 22px);
  background: linear-gradient(270deg, rgba(21,101,192,0.28), rgba(230,126,34,0.28));
}
@media (max-width: 860px) {
  body.pcb-home .home-flow-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 22px;
  }
  body.pcb-home .home-flow-steps li:nth-child(3)::after,
  body.pcb-home .home-flow-steps li:last-child::after {
    display: none;
  }
}
@media (max-width: 480px) {
  body.pcb-home .home-flow {
    padding: 18px 16px 20px;
  }
  body.pcb-home .home-flow-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 18px;
    column-gap: 10px;
  }
  body.pcb-home .home-flow-steps li::after {
    display: none;
  }
  body.pcb-home .home-flow-label { max-width: 11em; }
}

.perm-matrix { overflow-x: auto; }

.perm-matrix { overflow-x: auto; }
.perm-matrix table { border-collapse: collapse; min-width: 640px; font-size: 0.86rem; }
.perm-matrix th, .perm-matrix td { border: 1px solid var(--line); padding: 6px 8px; text-align: center; vertical-align: middle; }
.perm-matrix th.perm-name, .perm-matrix td.perm-name { text-align: left; white-space: nowrap; }
.perm-matrix .group-row td { background: #eef3f8; font-weight: 700; text-align: left; }
.perm-matrix input[type="checkbox"]:disabled { opacity: 0.45; }
.perm-locked { color: var(--muted); font-size: 0.78rem; }
