/* ============================================================
   cel-shading.css · 公共用户页赛璐璐动画主题
   ------------------------------------------------------------
   作用域仅限 body.public-cel；不参与 frontend/admin 后台渲染。
   输入：index.html 既有 class / id / data-* 结构。
   输出：粗墨线、纯色块、零模糊硬阴影和短促关键帧交互。
   ============================================================ */

body.public-cel {
  --cel-ink: #1a1a2e;
  --cel-paper: #fafaf5;
  --cel-white: #ffffff;
  --cel-red: #e63946;
  --cel-red-dark: #b82635;
  --cel-blue: #4ea8de;
  --cel-blue-dark: #287bad;
  --cel-green: #2ecc71;
  --cel-green-dark: #168a48;
  --cel-yellow: #f1c40f;
  --cel-yellow-dark: #b99500;
  --cel-shadow-sm: 2px 2px 0 var(--cel-ink);
  --cel-shadow-md: 4px 4px 0 var(--cel-ink);
  --cel-shadow-lg: 7px 7px 0 var(--cel-ink);
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--cel-ink);
  background: var(--cel-paper);
  font-family: "Arial Rounded MT Bold", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
}

body.public-cel *,
body.public-cel *::before,
body.public-cel *::after {
  box-sizing: border-box;
  border-radius: 0;
}

body.public-cel::before {
  background: none;
}

body.public-cel [hidden],
body.public-cel .hidden {
  display: none !important;
}

body.public-cel ::selection {
  color: var(--cel-white);
  background: var(--cel-red);
}

body.public-cel :focus-visible {
  outline: 3px solid var(--cel-blue);
  outline-offset: 3px;
  box-shadow: var(--cel-shadow-md);
}

body.public-cel button,
body.public-cel input,
body.public-cel textarea,
body.public-cel select {
  border-radius: 0;
  color: inherit;
  font: inherit;
  font-weight: 800;
}

body.public-cel button,
body.public-cel a {
  -webkit-tap-highlight-color: transparent;
}

body.public-cel button {
  text-transform: uppercase;
  transition: transform 150ms linear;
}

body.public-cel button:active:not(:disabled) {
  transform: translate(3px, 3px);
  box-shadow: none !important;
}

body.public-cel button:disabled {
  cursor: not-allowed;
  filter: grayscale(1);
}

body.public-cel h1,
body.public-cel h2,
body.public-cel h3,
body.public-cel h4,
body.public-cel strong,
body.public-cel b {
  color: var(--cel-ink);
  font-family: Impact, Haettenschweiler, "Arial Black", "Microsoft YaHei UI", sans-serif;
  font-weight: 900;
  letter-spacing: 0.02em;
}

body.public-cel .page-shell {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 44px 24px 72px;
  display: grid;
  gap: 26px;
}

/* Hero：一张双栏漫画开场页，右侧流程面板承担唯一视觉记忆点。 */
body.public-cel .hero {
  position: relative;
  order: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  gap: 30px;
  align-items: center;
  min-height: 470px;
  padding: 44px;
  overflow: hidden;
  border: 3px solid var(--cel-ink);
  border-radius: 0;
  background: var(--cel-paper);
  box-shadow: var(--cel-shadow-lg);
  backdrop-filter: none;
  text-align: left;
}

body.public-cel .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg stroke='%231a1a2e' stroke-width='.5'%3E%3Cpath d='M50 45L0 5M50 45L15 0M50 45L38 0M50 45L66 0M50 45L92 0M50 45L100 20M50 45L100 45M50 45L100 72M50 45L82 100M50 45L55 100M50 45L22 100M50 45L0 82M50 45L0 48M50 45L0 25'/%3E%3C/g%3E%3C/svg%3E");
  background-size: cover;
}

body.public-cel .hero::after {
  content: "LINK!";
  position: absolute;
  top: 20px;
  right: 24px;
  bottom: auto;
  left: auto;
  z-index: 4;
  width: auto;
  height: auto;
  padding: 8px 12px;
  border: 3px solid var(--cel-ink);
  background: var(--cel-yellow);
  box-shadow: var(--cel-shadow-sm);
  filter: none;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 18px;
  letter-spacing: 0.08em;
  transform: rotate(3deg);
}

body.public-cel .hero-copy,
body.public-cel .route-visual {
  position: relative;
  z-index: 2;
}

body.public-cel .brand-line {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  gap: 10px;
  padding: 6px 12px 6px 6px;
  border: 3px solid var(--cel-ink);
  border-radius: 0;
  background: var(--cel-yellow);
  color: var(--cel-ink);
  box-shadow: var(--cel-shadow-sm);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transform: rotate(-1deg);
}

body.public-cel .brand-line > span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.public-cel .brand-line.is-notice {
  color: var(--cel-ink);
  background: var(--cel-yellow);
}

body.public-cel .brand-chip {
  display: inline-flex;
  min-width: 52px;
  min-height: 27px;
  align-items: center;
  justify-content: center;
  padding: 0 9px;
  border: 3px solid var(--cel-ink);
  border-radius: 0;
  background: var(--cel-red);
  color: var(--cel-white);
  box-shadow: var(--cel-shadow-sm);
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 13px;
  letter-spacing: 0.08em;
}

body.public-cel .hero h1 {
  max-width: 760px;
  margin: 24px 0 0;
  color: var(--cel-ink);
  font-family: Impact, Haettenschweiler, "Arial Black", "Microsoft YaHei UI", sans-serif;
  font-size: clamp(46px, 6.8vw, 86px);
  font-weight: 900;
  line-height: 0.97;
  letter-spacing: -0.025em;
  text-shadow: 4px 4px 0 var(--cel-red);
  text-transform: uppercase;
  text-wrap: balance;
}

body.public-cel .hero h1 span {
  display: block;
  margin-top: 10px;
  color: var(--cel-blue);
  text-shadow: 4px 4px 0 var(--cel-ink);
}

body.public-cel .hero-copy > p {
  width: min(100%, 68ch);
  margin: 22px 0 0;
  color: var(--cel-ink);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.75;
}

body.public-cel .helper-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

body.public-cel .helper-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  gap: 8px;
  padding: 8px 13px;
  border: 3px solid var(--cel-ink);
  border-radius: 0;
  background: var(--cel-white);
  color: var(--cel-ink);
  box-shadow: var(--cel-shadow-sm);
  font-size: 11px;
  font-weight: 900;
}

body.public-cel .helper-actions button:hover:not(:disabled) {
  background: var(--cel-yellow);
  box-shadow: 1px 1px 0 var(--cel-ink);
  transform: translate(1px, 1px);
}

body.public-cel .helper-mark {
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 2px solid var(--cel-ink);
  border-radius: 0;
  background: var(--cel-blue);
  color: var(--cel-ink);
}

body.public-cel .helper-mark svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
}

body.public-cel .route-visual {
  min-width: 0;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  overflow: hidden;
  border: 3px solid var(--cel-ink);
  border-radius: 0;
  background: var(--cel-white);
  box-shadow: var(--cel-shadow-md);
}

body.public-cel .route-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg stroke='%234ea8de' stroke-width='1'%3E%3Cpath d='M50 50L0 5M50 50L22 0M50 50L64 0M50 50L100 14M50 50L100 57M50 50L88 100M50 50L40 100M50 50L0 90M50 50L0 43'/%3E%3C/g%3E%3C/svg%3E");
  background-size: cover;
}

body.public-cel .route-visual-head,
body.public-cel .route-visual-foot,
body.public-cel .route-flow {
  position: relative;
  z-index: 1;
}

body.public-cel .route-visual-head,
body.public-cel .route-visual-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

body.public-cel .route-visual-head > span,
body.public-cel .route-visual-foot strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 9px;
  border: 3px solid var(--cel-ink);
  background: var(--cel-red);
  color: var(--cel-white);
  box-shadow: var(--cel-shadow-sm);
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 12px;
  letter-spacing: 0.08em;
}

body.public-cel .route-visual-foot strong {
  background: var(--cel-green);
  color: var(--cel-ink);
}

body.public-cel .route-visual-head em,
body.public-cel .route-visual-foot span {
  color: var(--cel-ink);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

body.public-cel .route-visual-head i,
body.public-cel .route-visual-foot i,
body.public-cel .live-beacon,
body.public-cel .online-dot,
body.public-cel .workspace-edition i,
body.public-cel .geo-kicker i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border: 2px solid var(--cel-ink);
  border-radius: 0;
  background: var(--cel-green);
  box-shadow: none;
}

body.public-cel .route-flow {
  display: grid;
  grid-template-columns: 1fr 34px 1fr 34px 1fr;
  align-items: center;
  gap: 5px;
  margin: 40px 0;
}

body.public-cel .route-node {
  position: relative;
  min-width: 0;
  min-height: 112px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  padding: 14px 8px;
  border: 3px solid var(--cel-ink);
  background: var(--cel-yellow);
  box-shadow: var(--cel-shadow-sm);
  text-align: center;
}

body.public-cel .route-node:nth-child(3) { background: var(--cel-red); color: var(--cel-white); }
body.public-cel .route-node:nth-child(5) { background: var(--cel-blue); }

body.public-cel .route-node small {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 3px solid var(--cel-ink);
  background: var(--cel-white);
  color: var(--cel-ink);
  font-family: Impact, "Arial Black", sans-serif;
}

body.public-cel .route-node b {
  color: inherit;
  font-size: 12px;
  letter-spacing: 0.04em;
}

body.public-cel .route-node > i {
  display: none;
}

body.public-cel .route-line {
  position: relative;
  height: 6px;
  border: 2px solid var(--cel-ink);
  background: var(--cel-ink);
}

body.public-cel .route-line::after {
  content: "";
  position: absolute;
  top: -7px;
  right: -2px;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 11px solid var(--cel-ink);
}

body.public-cel .route-line i {
  display: none;
}

/* 状态分镜 */
body.public-cel .status-board,
body.public-cel .geo-board,
body.public-cel .tool-card {
  border: 3px solid var(--cel-ink);
  border-radius: 0;
  background: var(--cel-white);
  box-shadow: var(--cel-shadow-md);
  backdrop-filter: none;
}

body.public-cel .status-board {
  order: 2;
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  padding: 0;
  overflow: hidden;
}

body.public-cel .live-connection {
  position: static;
  inset: auto;
  display: grid;
  grid-template-columns: auto 1fr;
  align-content: center;
  align-items: center;
  gap: 2px 10px;
  min-height: 108px;
  padding: 20px;
  border-right: 3px solid var(--cel-ink);
  background: var(--cel-yellow);
  color: var(--cel-ink);
}

body.public-cel .live-connection strong {
  color: var(--cel-ink);
  font-size: 18px;
  text-transform: uppercase;
}

body.public-cel .live-connection small {
  grid-column: 2;
  color: var(--cel-ink);
  font-weight: 900;
}

body.public-cel .live-connection[data-state="offline"] { background: var(--cel-red); color: var(--cel-white); }
body.public-cel .live-connection[data-state="offline"] strong { color: var(--cel-white); }

body.public-cel .status-legend {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-width: 0;
}

body.public-cel .status-item {
  min-width: 0;
  min-height: 108px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-content: center;
  align-items: center;
  gap: 0 10px;
  padding: 16px;
  border-right: 3px solid var(--cel-ink);
  background: var(--cel-white);
}

body.public-cel .status-item:last-child {
  border-right: 0;
}

body.public-cel .status-pict {
  grid-row: 1 / span 2;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 3px solid var(--cel-ink);
  border-radius: 0;
  color: var(--cel-ink);
  box-shadow: var(--cel-shadow-sm);
}

body.public-cel .status-pict svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
}

body.public-cel .status-success { background: var(--cel-green); }
body.public-cel .status-wait { background: var(--cel-yellow); }
body.public-cel .status-run { background: var(--cel-blue); }
body.public-cel .status-failed { background: var(--cel-red); color: var(--cel-white); }

body.public-cel .status-item strong {
  min-width: 0;
  font-size: 23px;
  line-height: 1;
}

body.public-cel .status-item em {
  color: var(--cel-ink);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

body.public-cel .heat-caption {
  grid-column: 1 / -1;
  margin: 0;
  padding: 10px 16px;
  border-top: 3px solid var(--cel-ink);
  background: var(--cel-blue);
  color: var(--cel-ink);
  font-size: 11px;
  font-weight: 900;
}

body.public-cel .heat-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(50, minmax(0, 1fr));
  gap: 2px;
  padding: 12px 16px 15px;
  border-top: 3px solid var(--cel-ink);
  background: var(--cel-white);
}

body.public-cel .heat-row span {
  aspect-ratio: 1;
  min-height: 4px;
  border: 1px solid var(--cel-ink);
  border-radius: 0;
  background: var(--cel-paper);
}

body.public-cel .heat-row span.active.success,
body.public-cel .heat-row span.is-finished { background: var(--cel-green); }
body.public-cel .heat-row span.active.queued,
body.public-cel .heat-row span.is-queued { background: var(--cel-yellow); }
body.public-cel .heat-row span.active.run,
body.public-cel .heat-row span.is-running { background: var(--cel-blue); }
body.public-cel .heat-row span.active.failed,
body.public-cel .heat-row span.is-failed { background: var(--cel-red); }

/* 地理面板 */
body.public-cel .geo-board {
  order: 3;
  grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.2fr);
  overflow: hidden;
}

body.public-cel .geo-board:not([hidden]) {
  display: grid;
}

body.public-cel .geo-map-panel {
  min-height: 250px;
  border-right: 3px solid var(--cel-ink);
  background: var(--cel-blue);
}

body.public-cel .geo-map-grid,
body.public-cel .geo-scanline {
  display: none;
}

body.public-cel .geo-land path {
  fill: var(--cel-yellow);
  stroke: var(--cel-ink);
  stroke-width: 3;
}

body.public-cel .geo-pulse-ring {
  fill: var(--cel-red);
  stroke: var(--cel-ink);
  stroke-width: 2;
}

body.public-cel .geo-pulse-core {
  fill: var(--cel-green);
  stroke: var(--cel-ink);
  stroke-width: 2;
}

body.public-cel .geo-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  padding: 24px;
  background: var(--cel-white);
}

body.public-cel .geo-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 4px 8px;
  border: 3px solid var(--cel-ink);
  background: var(--cel-yellow);
  box-shadow: var(--cel-shadow-sm);
  color: var(--cel-ink);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

body.public-cel .geo-heading h2 {
  margin: 13px 0 4px;
  font-size: clamp(27px, 4vw, 42px);
  line-height: 1;
  text-transform: uppercase;
}

body.public-cel .geo-heading p,
body.public-cel .geo-total span {
  color: var(--cel-ink);
  font-weight: 800;
}

body.public-cel .geo-total {
  align-self: start;
  padding: 10px 12px;
  border: 3px solid var(--cel-ink);
  background: var(--cel-red);
  box-shadow: var(--cel-shadow-sm);
  color: var(--cel-white);
  text-align: right;
}

body.public-cel .geo-total strong {
  display: block;
  color: var(--cel-white);
  font-size: 28px;
}

body.public-cel .geo-total span {
  display: block;
  color: var(--cel-white);
  font-size: 10px;
}

body.public-cel .geo-country-list {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

body.public-cel .geo-country,
body.public-cel .geo-country-item,
body.public-cel .geo-empty,
body.public-cel .geo-country-empty {
  padding: 9px 10px;
  border: 3px solid var(--cel-ink);
  background: var(--cel-paper);
  color: var(--cel-ink);
}

/* 工作区 */
body.public-cel .tool-card {
  order: 4;
  overflow: hidden;
}

body.public-cel .card-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  gap: 16px;
  padding: 9px 14px;
  border-bottom: 3px solid var(--cel-ink);
  background: var(--cel-yellow);
  backdrop-filter: none;
}

body.public-cel .tabs {
  display: flex;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
}

body.public-cel .tabs button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  gap: 8px;
  padding: 8px 14px;
  border: 3px solid var(--cel-ink);
  border-radius: 0;
  background: var(--cel-white);
  color: var(--cel-ink);
  box-shadow: var(--cel-shadow-sm);
  font-size: 11px;
  font-weight: 900;
}

body.public-cel .tabs button:hover,
body.public-cel .tabs button.active {
  background: var(--cel-red);
  color: var(--cel-white);
}

body.public-cel .tabs button.active {
  transform: translate(2px, 2px);
  box-shadow: none;
}

body.public-cel .tab-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
}

body.public-cel .task-count {
  display: inline-grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 0;
  background: var(--cel-blue);
  color: var(--cel-ink);
}

body.public-cel .workspace-edition {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cel-ink);
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 12px;
  letter-spacing: 0.08em;
}

body.public-cel .view {
  display: none;
}

body.public-cel .view.active {
  display: block;
}

body.public-cel .workflow-strip {
  display: grid;
  grid-template-columns: 1fr 52px 1fr 52px 1fr;
  align-items: center;
  gap: 10px;
  padding: 24px;
  border-bottom: 3px solid var(--cel-ink);
  background: var(--cel-blue);
}

body.public-cel .workflow-strip > span {
  min-width: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0 10px;
  min-height: 70px;
  padding: 10px;
  border: 3px solid var(--cel-ink);
  background: var(--cel-white);
  box-shadow: var(--cel-shadow-sm);
}

body.public-cel .workflow-strip > span i {
  grid-row: 1 / span 2;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 3px solid var(--cel-ink);
  border-radius: 0;
  background: var(--cel-yellow);
  color: var(--cel-ink);
  box-shadow: none;
  font-family: Impact, "Arial Black", sans-serif;
  font-style: normal;
}

body.public-cel .workflow-strip > span b {
  color: var(--cel-ink);
  font-size: 13px;
}

body.public-cel .workflow-strip > span small {
  color: var(--cel-ink);
  font-size: 10px;
  font-weight: 800;
}

body.public-cel .workflow-strip > em {
  position: relative;
  height: 6px;
  border: 2px solid var(--cel-ink);
  background: var(--cel-ink);
}

body.public-cel .workflow-strip > em::after {
  content: "";
  position: absolute;
  top: -7px;
  right: -2px;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 11px solid var(--cel-ink);
}

body.public-cel .workflow-strip > em i {
  display: none;
}

body.public-cel .extract-form {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  grid-auto-rows: max-content;
  align-content: start;
  padding: 0;
  background: var(--cel-paper);
}

body.public-cel .method-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  padding: 24px;
  border-bottom: 3px solid var(--cel-ink);
  background: var(--cel-white);
}

body.public-cel .method-row label {
  min-width: 0;
}

body.public-cel .method-row input {
  position: absolute;
  pointer-events: none;
  clip: rect(0 0 0 0);
}

body.public-cel .method-option {
  position: relative;
  min-width: 0;
  min-height: 112px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-content: center;
  align-items: center;
  gap: 2px 10px;
  padding: 12px;
  border: 3px solid var(--cel-ink);
  border-radius: 0;
  background: var(--cel-paper);
  box-shadow: var(--cel-shadow-sm);
  color: var(--cel-ink);
  cursor: pointer;
  transition: transform 150ms linear, box-shadow 150ms linear, background-color 150ms linear;
}

body.public-cel .method-option:hover {
  background: var(--cel-yellow);
  box-shadow: 1px 1px 0 var(--cel-ink);
  transform: translate(1px, 1px);
}

body.public-cel .method-row input:checked + .method-option,
body.public-cel .method-option.is-active {
  background: var(--cel-red);
  color: var(--cel-white);
  box-shadow: none;
  transform: translate(3px, 3px);
}

body.public-cel .method-icon {
  grid-row: 1 / span 2;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 3px solid var(--cel-ink);
  border-radius: 0;
  background: var(--cel-blue);
  color: var(--cel-ink);
  box-shadow: var(--cel-shadow-sm);
}

body.public-cel .method-row input:checked + .method-option .method-icon {
  background: var(--cel-yellow);
}

body.public-cel .method-icon svg {
  width: 24px;
  height: 24px;
}

body.public-cel .method-option > strong {
  min-width: 0;
  color: inherit;
  font-size: 13px;
  line-height: 1.2;
}

body.public-cel .method-option > small {
  min-width: 0;
  color: inherit;
  font-size: 10px;
  font-weight: 800;
}

body.public-cel .method-row label.is-disabled {
  filter: grayscale(1);
}

body.public-cel .cdk-field,
body.public-cel .session-panel > .session-input {
  position: static;
  top: auto;
  margin: 0;
  padding: 24px;
  background: var(--cel-paper);
}

body.public-cel .cdk-field {
  border-right: 3px solid var(--cel-ink);
}

body.public-cel .session-panel {
  display: contents;
}

body.public-cel .session-panel > .session-input {
  grid-column: 2;
}

body.public-cel .cdk-label,
body.public-cel .session-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 38px;
  margin-bottom: 14px;
  color: var(--cel-ink);
  font-size: 13px;
  font-weight: 900;
}

body.public-cel .cdk-label::before,
body.public-cel .session-title::before {
  content: "!";
  display: grid;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 3px solid var(--cel-ink);
  background: var(--cel-red);
  color: var(--cel-white);
  box-shadow: var(--cel-shadow-sm);
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 18px;
}

body.public-cel .cdk-label > :not(:last-child),
body.public-cel .session-title strong {
  margin-right: auto;
}

body.public-cel .cdk-label em,
body.public-cel .session-title small,
body.public-cel .session-title i {
  color: var(--cel-ink);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

body.public-cel .cdk-input-wrap,
body.public-cel .session-textarea-wrap {
  display: grid;
  border: 3px solid var(--cel-ink);
  border-radius: 0;
  background: var(--cel-white);
  box-shadow: var(--cel-shadow-md);
}

body.public-cel .cdk-input-wrap {
  grid-template-columns: 58px minmax(0, 1fr);
}

body.public-cel .cdk-input-wrap em {
  display: grid;
  place-items: center;
  border-right: 3px solid var(--cel-ink);
  background: var(--cel-red);
  color: var(--cel-white);
  font-family: Impact, "Arial Black", sans-serif;
  font-style: normal;
  text-transform: uppercase;
}

body.public-cel input,
body.public-cel textarea,
body.public-cel select,
body.public-cel .record-link-input {
  width: 100%;
  border: 3px solid var(--cel-ink);
  border-radius: 0;
  background: var(--cel-white);
  color: var(--cel-ink);
  caret-color: var(--cel-red);
  outline: none;
}

body.public-cel .cdk-input-wrap input,
body.public-cel .session-textarea-wrap textarea {
  border: 0;
  box-shadow: none;
}

body.public-cel input {
  min-height: 50px;
  padding: 10px 13px;
}

body.public-cel textarea {
  min-height: 156px;
  padding: 13px;
  resize: vertical;
}

body.public-cel input::placeholder,
body.public-cel textarea::placeholder {
  color: #555568;
}

body.public-cel input:focus,
body.public-cel textarea:focus,
body.public-cel select:focus,
body.public-cel .record-link-input:focus {
  background: #fff8c7;
  outline: none;
}

body.public-cel .cdk-input-wrap:focus-within,
body.public-cel .session-textarea-wrap:focus-within {
  box-shadow: 6px 6px 0 var(--cel-red);
}

body.public-cel .cdk-help,
body.public-cel .session-email,
body.public-cel .form-message,
body.public-cel .progress-step,
body.public-cel .form-hint {
  color: var(--cel-ink);
  font-size: 11px;
  font-weight: 800;
}

body.public-cel .cdk-help,
body.public-cel .session-email {
  margin-top: 14px;
}

body.public-cel .cdk-verify-row,
body.public-cel .session-email-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

body.public-cel .coupon-result {
  min-height: 34px;
  display: flex;
  align-items: center;
  padding: 5px 9px;
  border: 3px solid var(--cel-ink);
  background: var(--cel-yellow);
  color: var(--cel-ink);
}

body.public-cel .primary-action,
body.public-cel .open-link,
body.public-cel .modal-confirm,
body.public-cel .secondary-action,
body.public-cel .coupon-check-btn,
body.public-cel .session-copy,
body.public-cel #verifyCdkButton,
body.public-cel .record-link-copy,
body.public-cel .record-link-open,
body.public-cel .record-cancel,
body.public-cel .record-page-btn,
body.public-cel .stop-task {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 43px;
  gap: 8px;
  padding: 8px 14px;
  border: 3px solid var(--cel-ink);
  border-radius: 0;
  background: var(--cel-white);
  color: var(--cel-ink);
  box-shadow: var(--cel-shadow-sm);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  text-decoration: none;
}

body.public-cel .primary-action,
body.public-cel .open-link,
body.public-cel .modal-confirm {
  background: var(--cel-green);
}

body.public-cel .stop-task,
body.public-cel .record-cancel {
  background: var(--cel-red);
  color: var(--cel-white);
}

body.public-cel .primary-action:hover:not(:disabled),
body.public-cel .open-link:hover,
body.public-cel .modal-confirm:hover:not(:disabled),
body.public-cel .secondary-action:hover:not(:disabled),
body.public-cel .coupon-check-btn:hover:not(:disabled),
body.public-cel .session-copy:hover:not(:disabled),
body.public-cel #verifyCdkButton:hover:not(:disabled),
body.public-cel .record-link-copy:hover:not(:disabled),
body.public-cel .record-link-open:hover:not(:disabled),
body.public-cel .record-page-btn:hover:not(:disabled) {
  background: var(--cel-yellow);
  color: var(--cel-ink);
  box-shadow: 1px 1px 0 var(--cel-ink);
  transform: translate(1px, 1px);
}

body.public-cel .result-area {
  grid-column: 1 / -1;
  padding: 24px;
  border-top: 3px solid var(--cel-ink);
  background: var(--cel-blue);
}

body.public-cel .empty-result,
body.public-cel .result-card {
  border: 3px solid var(--cel-ink);
  border-radius: 0;
  background: var(--cel-white);
  box-shadow: var(--cel-shadow-md);
}

body.public-cel .empty-result {
  min-height: 142px;
  display: grid;
  place-content: center;
  gap: 6px;
  padding: 24px;
  text-align: center;
}

body.public-cel .empty-result::before {
  content: "READY!";
  width: fit-content;
  margin: 0 auto 8px;
  padding: 4px 9px;
  border: 3px solid var(--cel-ink);
  background: var(--cel-yellow);
  box-shadow: var(--cel-shadow-sm);
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 15px;
  transform: rotate(-2deg);
}

body.public-cel .empty-result strong,
body.public-cel .result-meta strong,
body.public-cel .progress-percent,
body.public-cel .result-payment strong {
  color: var(--cel-ink);
}

body.public-cel .empty-result span {
  color: var(--cel-ink);
  font-weight: 800;
}

body.public-cel .result-head,
body.public-cel .result-amount,
body.public-cel .payment-qr-panel,
body.public-cel .result-payment,
body.public-cel .progress-zero-status,
body.public-cel .progress-panel {
  border: 3px solid var(--cel-ink);
  border-radius: 0;
  background: var(--cel-paper);
}

body.public-cel #jobStatus,
body.public-cel .record-status,
body.public-cel .record-payment-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 3px 8px;
  border: 3px solid var(--cel-ink);
  background: var(--cel-yellow);
  color: var(--cel-ink);
  font-size: 10px;
  font-weight: 900;
}

body.public-cel #jobStatus.is-processing,
body.public-cel .record-status.is-processing { background: var(--cel-blue); }
body.public-cel #jobStatus.is-done,
body.public-cel .record-status.is-done { background: var(--cel-green); }
body.public-cel #jobStatus.is-failed,
body.public-cel .record-status.is-failed { background: var(--cel-red); color: var(--cel-white); }

body.public-cel .progress-track,
body.public-cel .record-progress-track {
  height: 16px;
  overflow: hidden;
  border: 3px solid var(--cel-ink);
  border-radius: 0;
  background: var(--cel-white);
}

body.public-cel .progress-track > span,
body.public-cel #progressBar,
body.public-cel .record-progress-track span {
  background: var(--cel-green);
  box-shadow: none;
}

body.public-cel .progress-zero-status[data-state="checking"] { background: var(--cel-blue); }
body.public-cel .progress-zero-status[data-state="zero"] { background: var(--cel-green); }
body.public-cel .progress-zero-status[data-state="nonzero"] { background: var(--cel-yellow); }

body.public-cel .result-error {
  border: 3px solid var(--cel-ink);
  border-radius: 0;
  background: var(--cel-red);
  color: var(--cel-white);
  box-shadow: var(--cel-shadow-sm);
}

body.public-cel .payment-qr-frame,
body.public-cel .record-payment-qr-image {
  border: 3px solid var(--cel-ink);
  border-radius: 0;
  background: var(--cel-white);
}

body.public-cel .form-footer {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  border-top: 3px solid var(--cel-ink);
  background: var(--cel-yellow);
}

body.public-cel .actions {
  display: flex;
  gap: 10px;
}

body.public-cel .form-message.is-error { color: var(--cel-red-dark); }
body.public-cel .form-message.is-success { color: var(--cel-green-dark); }
body.public-cel .form-message.is-working { color: var(--cel-blue-dark); }
body.public-cel .form-hint-mark { color: var(--cel-red-dark); }

/* 任务列表 */
body.public-cel #recordsView {
  padding: 24px;
  background: var(--cel-blue);
}

body.public-cel .records-retention-hint,
body.public-cel .records-empty {
  color: var(--cel-ink);
  font-weight: 800;
}

body.public-cel .records-retention-hint {
  margin-bottom: 14px;
  padding: 10px 12px;
  border: 3px solid var(--cel-ink);
  background: var(--cel-yellow);
  box-shadow: var(--cel-shadow-sm);
}

body.public-cel .record-list {
  display: grid;
  gap: 14px;
}

body.public-cel .record-card,
body.public-cel .record-list > * {
  border: 3px solid var(--cel-ink) !important;
  border-radius: 0 !important;
  background: var(--cel-white) !important;
  box-shadow: var(--cel-shadow-md) !important;
  color: var(--cel-ink);
  transition: transform 150ms linear, box-shadow 150ms linear;
}

body.public-cel .record-card:hover {
  box-shadow: 2px 2px 0 var(--cel-ink) !important;
  transform: translate(2px, 2px);
}

body.public-cel .record-channel,
body.public-cel .record-account-amount strong,
body.public-cel .record-payment-pill strong {
  color: var(--cel-red-dark);
}

body.public-cel .record-time,
body.public-cel .record-payment-note,
body.public-cel .record-page-info,
body.public-cel .record-link-label,
body.public-cel .record-email {
  color: var(--cel-ink);
}

body.public-cel .record-account-icon {
  border: 3px solid var(--cel-ink);
  border-radius: 0;
  background: var(--cel-yellow);
  color: var(--cel-ink);
}

/* 右上角工具条 */
body.public-cel .floating-tools {
  position: fixed;
  top: 14px;
  right: 16px;
  bottom: auto;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px;
  border: 3px solid var(--cel-ink);
  border-radius: 0;
  background: var(--cel-yellow);
  box-shadow: var(--cel-shadow-sm);
  backdrop-filter: none;
}

body.public-cel .online-indicator {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 0 8px;
  color: var(--cel-ink);
  font-size: 10px;
  font-weight: 900;
  box-shadow: none;
}

body.public-cel .online-count {
  color: var(--cel-red-dark);
  font-family: Impact, "Arial Black", sans-serif;
}

body.public-cel .language-switch {
  display: flex;
  gap: 5px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.public-cel .language-switch button {
  min-width: 35px;
  min-height: 30px;
  padding: 0 7px;
  border: 3px solid var(--cel-ink);
  border-radius: 0;
  background: var(--cel-white);
  color: var(--cel-ink);
  box-shadow: var(--cel-shadow-sm);
  font-size: 10px;
}

body.public-cel .language-switch button.active {
  background: var(--cel-red);
  color: var(--cel-white);
  box-shadow: none;
  transform: translate(2px, 2px);
}

/* 弹窗与系统态 */
body.public-cel .modal-backdrop {
  background: #1a1a2ecc;
}

body.public-cel .modal-dialog {
  width: min(92vw, 680px);
  max-height: min(84vh, 780px);
  overflow: auto;
  border: 3px solid var(--cel-ink);
  border-radius: 0;
  background: var(--cel-paper);
  color: var(--cel-ink);
  box-shadow: 10px 10px 0 var(--cel-ink);
}

body.public-cel .modal-head {
  padding-bottom: 14px;
  border-bottom: 3px solid var(--cel-ink);
}

body.public-cel .modal-head h2 {
  color: var(--cel-red-dark);
  font-size: 30px;
  text-transform: uppercase;
}

body.public-cel .modal-lead,
body.public-cel .modal-note,
body.public-cel .guide-kicker,
body.public-cel .guide-lead,
body.public-cel .guide-note {
  color: var(--cel-ink);
  font-weight: 800;
}

body.public-cel .modal-icon,
body.public-cel .modal-close {
  border: 3px solid var(--cel-ink);
  border-radius: 0;
  background: var(--cel-red);
  color: var(--cel-white) !important;
  box-shadow: var(--cel-shadow-sm);
}

body.public-cel .modal-close:hover:not(:disabled) {
  background: var(--cel-yellow);
  color: var(--cel-ink) !important;
}

body.public-cel .guide-steps li,
body.public-cel .modal-list.steps li,
body.public-cel .modal-list.checks li,
body.public-cel .modal-list.plain li,
body.public-cel .faq-item,
body.public-cel .privacy-item,
body.public-cel .boost-item {
  border: 3px solid var(--cel-ink);
  border-radius: 0;
  background: var(--cel-white);
  color: var(--cel-ink);
  box-shadow: var(--cel-shadow-sm);
}

body.public-cel .site-loader,
body.public-cel .maintenance-screen {
  background: var(--cel-paper);
}

body.public-cel .site-loader-card,
body.public-cel .maintenance-card {
  border: 3px solid var(--cel-ink);
  border-radius: 0;
  background: var(--cel-yellow);
  box-shadow: 9px 9px 0 var(--cel-ink);
}

body.public-cel .site-loader-card strong,
body.public-cel .maintenance-title {
  color: var(--cel-ink);
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 28px;
  text-transform: uppercase;
}

body.public-cel .site-loader-card span,
body.public-cel .maintenance-foot,
body.public-cel .maintenance-text {
  color: var(--cel-ink);
  font-weight: 800;
}

body.public-cel .site-loader-card i,
body.public-cel .maintenance-progress span {
  background: var(--cel-red);
  box-shadow: none;
}

body.public-cel .maintenance-badge {
  border: 3px solid var(--cel-ink);
  border-radius: 0;
  background: var(--cel-red);
  color: var(--cel-white);
  box-shadow: var(--cel-shadow-sm);
}

body.public-cel .site-wifi-loader .back {
  stroke: var(--cel-ink);
}

body.public-cel .site-wifi-loader .front {
  stroke: var(--cel-red);
}

/* 菲律宾完整绑卡：顺序检查点只在首次提链成功后解锁卡片输入。 */
body.public-cel .ph-card-flow {
  margin-top: 16px;
  overflow: hidden;
  border: 3px solid var(--cel-ink);
  background: var(--cel-paper);
  box-shadow: var(--cel-shadow-md);
}

body.public-cel .ph-card-flow[hidden],
body.public-cel .ph-card-entry[hidden] {
  display: none;
}

body.public-cel .ph-card-flow-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 18px;
  border-bottom: 3px solid var(--cel-ink);
  background: var(--cel-yellow);
}

body.public-cel .ph-card-flow-kicker,
body.public-cel .ph-card-section-label {
  display: block;
  color: var(--cel-ink);
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.public-cel .ph-card-flow-head h3 {
  margin: 3px 0 0;
  color: var(--cel-ink);
  font-size: 20px;
  line-height: 1.15;
}

body.public-cel .ph-card-countdown {
  min-width: 76px;
  padding: 7px 9px;
  border: 3px solid var(--cel-ink);
  background: var(--cel-white);
  box-shadow: var(--cel-shadow-sm);
  color: var(--cel-red-dark);
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 19px;
  letter-spacing: 0.05em;
  text-align: center;
}

body.public-cel .ph-card-countdown.is-expired {
  background: var(--cel-red);
  color: var(--cel-white);
}

body.public-cel .ph-card-checkpoints {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  border-bottom: 3px solid var(--cel-ink);
  list-style: none;
}

body.public-cel .ph-card-checkpoints li {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 82px;
  padding: 12px;
  border-right: 3px solid var(--cel-ink);
  background: var(--cel-white);
}

body.public-cel .ph-card-checkpoints li:last-child {
  border-right: 0;
}

body.public-cel .ph-card-checkpoints li > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 3px solid var(--cel-ink);
  background: var(--cel-paper);
  box-shadow: var(--cel-shadow-sm);
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 15px;
}

body.public-cel .ph-card-checkpoints li strong,
body.public-cel .ph-card-checkpoints li small {
  display: block;
  color: var(--cel-ink);
}

body.public-cel .ph-card-checkpoints li strong {
  font-size: 12px;
}

body.public-cel .ph-card-checkpoints li small {
  margin-top: 4px;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.35;
}

body.public-cel .ph-card-checkpoints li.is-active {
  background: var(--cel-blue);
}

body.public-cel .ph-card-checkpoints li.is-complete {
  background: var(--cel-green);
}

body.public-cel .ph-card-checkpoints li.is-failed {
  background: var(--cel-red);
}

body.public-cel .ph-card-checkpoints li.is-failed strong,
body.public-cel .ph-card-checkpoints li.is-failed small {
  color: var(--cel-white);
}

body.public-cel .ph-card-stage {
  display: flex;
  align-items: baseline;
  gap: 9px;
  padding: 12px 18px;
  border-bottom: 3px solid var(--cel-ink);
  background: var(--cel-blue);
  color: var(--cel-ink);
}

body.public-cel .ph-card-stage strong {
  flex: 0 0 auto;
  font-size: 12px;
}

body.public-cel .ph-card-stage span {
  min-width: 0;
  font-size: 10px;
  font-weight: 800;
}

body.public-cel .ph-card-entry {
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(300px, 1.15fr);
}

body.public-cel .ph-card-entry.is-retry-decision {
  grid-template-columns: 1fr;
}

body.public-cel .ph-card-entry.is-retry-decision .ph-card-address,
body.public-cel .ph-card-entry.is-retry-decision #phCardElementLabel,
body.public-cel .ph-card-entry.is-retry-decision .ph-card-element {
  display: none;
}

body.public-cel .ph-card-address,
body.public-cel .ph-card-elements-wrap {
  min-width: 0;
  padding: 18px;
}

body.public-cel .ph-card-address {
  border-right: 3px solid var(--cel-ink);
  background: #fff8c7;
}

body.public-cel .ph-card-address strong {
  display: block;
  margin-top: 10px;
  color: var(--cel-ink);
  font-size: 13px;
}

body.public-cel .ph-card-address address {
  margin-top: 5px;
  color: var(--cel-ink);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.55;
  white-space: pre-line;
}

body.public-cel .ph-card-address small,
body.public-cel .ph-card-security {
  display: block;
  margin: 10px 0 0;
  color: var(--cel-ink);
  font-size: 9px;
  font-weight: 800;
  line-height: 1.5;
}

body.public-cel .ph-card-elements-wrap {
  background: var(--cel-white);
}

body.public-cel .ph-card-element {
  min-height: 54px;
  margin-top: 10px;
  padding: 15px 13px;
  border: 3px solid var(--cel-ink);
  background: var(--cel-white);
  box-shadow: var(--cel-shadow-sm);
}

body.public-cel .ph-card-element.is-focused {
  background: #fff8c7;
  box-shadow: 6px 6px 0 var(--cel-red);
}

body.public-cel .ph-card-element.is-invalid {
  background: #ffe0e3;
  box-shadow: 4px 4px 0 var(--cel-red);
}

body.public-cel .ph-card-error {
  min-height: 18px;
  margin: 8px 0;
  color: var(--cel-red-dark);
  font-size: 10px;
  font-weight: 900;
}

body.public-cel .ph-card-submit {
  display: inline-flex;
  width: 100%;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border: 3px solid var(--cel-ink);
  background: var(--cel-green);
  box-shadow: var(--cel-shadow-sm);
  color: var(--cel-ink);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

body.public-cel .ph-card-submit:hover:not(:disabled) {
  background: var(--cel-yellow);
  box-shadow: 1px 1px 0 var(--cel-ink);
  transform: translate(1px, 1px);
}

body.public-cel .ph-card-submit:disabled {
  cursor: not-allowed;
  filter: grayscale(1);
  opacity: 0.55;
}

/* 完整流程只在任务卡保留一张紧凑入口票据；支付工作区使用独立弹窗。 */
body.public-cel .ph-card-launch {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin-top: 14px;
  padding: 14px 16px;
  border: 3px solid var(--cel-ink);
  background: var(--cel-yellow);
  box-shadow: var(--cel-shadow-sm);
}

body.public-cel .ph-card-launch[hidden],
body.public-cel .ph-card-first-link[hidden] {
  display: none;
}

body.public-cel .ph-card-launch-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

body.public-cel .ph-card-launch-copy > span {
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.09em;
}

body.public-cel .ph-card-launch-copy > strong {
  font-size: 14px;
  line-height: 1.25;
}

body.public-cel .ph-card-launch-copy > small {
  font-size: 10px;
  font-weight: 800;
  line-height: 1.45;
}

body.public-cel .ph-card-open,
body.public-cel .ph-card-first-link button,
body.public-cel .ph-card-cancel,
body.public-cel .ph-card-minimize {
  min-height: 42px;
  padding: 9px 14px;
  border: 3px solid var(--cel-ink);
  border-radius: 0;
  box-shadow: var(--cel-shadow-sm);
  color: var(--cel-ink);
  font-size: 10px;
  font-weight: 900;
}

body.public-cel .ph-card-open,
body.public-cel .ph-card-minimize {
  background: var(--cel-green);
}

body.public-cel .ph-card-cancel {
  background: var(--cel-red);
  color: var(--cel-white);
}

body.public-cel .ph-card-first-link button {
  background: var(--cel-white);
}

body.public-cel .ph-card-open:hover:not(:disabled),
body.public-cel .ph-card-first-link button:hover:not(:disabled),
body.public-cel .ph-card-cancel:hover:not(:disabled),
body.public-cel .ph-card-minimize:hover:not(:disabled) {
  box-shadow: 1px 1px 0 var(--cel-ink);
  transform: translate(2px, 2px);
}

body.public-cel .ph-card-open:focus-visible,
body.public-cel .ph-card-first-link a:focus-visible,
body.public-cel .ph-card-first-link button:focus-visible,
body.public-cel .ph-card-cancel:focus-visible,
body.public-cel .ph-card-minimize:focus-visible,
body.public-cel .ph-card-close:focus-visible {
  outline: 4px solid var(--cel-blue);
  outline-offset: 3px;
}

body.public-cel .modal-dialog.ph-card-flow {
  display: grid;
  width: min(94vw, 980px);
  max-height: min(92vh, 860px);
  margin: 0;
  padding: 0;
  overflow: hidden;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: var(--cel-paper);
  box-shadow: 12px 12px 0 var(--cel-ink);
  backdrop-filter: none;
}

body.public-cel .modal-dialog.ph-card-flow[hidden] {
  display: none;
}

body.public-cel .ph-card-scroll-region {
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
}

body.public-cel .ph-card-head-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

body.public-cel .ph-card-close {
  position: static;
  flex: 0 0 auto;
}

body.public-cel .ph-card-first-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  border-bottom: 3px solid var(--cel-ink);
  background: var(--cel-green);
}

body.public-cel .ph-card-first-link > div {
  display: grid;
  min-width: 0;
  gap: 4px;
}

body.public-cel .ph-card-first-link span {
  font-size: 10px;
  font-weight: 900;
}

body.public-cel .ph-card-first-link a {
  min-width: 0;
  overflow: hidden;
  color: var(--cel-ink);
  font-size: 11px;
  font-weight: 900;
  text-decoration: underline;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.public-cel .ph-card-modal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px;
  border-top: 3px solid var(--cel-ink);
  background: var(--cel-yellow);
}

body.public-cel .ph-card-modal-foot > span {
  max-width: 48ch;
  font-size: 9px;
  font-weight: 900;
  line-height: 1.45;
}

body.public-cel .ph-card-modal-foot > div {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
}

body.public-cel .ph-card-cancel[hidden] {
  display: none;
}

@media (max-width: 980px) {
  body.public-cel .page-shell {
    padding-inline: 18px;
  }

  body.public-cel .hero {
    grid-template-columns: 1fr;
    padding: 36px;
  }

  body.public-cel .route-visual {
    min-height: 300px;
  }

  body.public-cel .status-board {
    grid-template-columns: 1fr;
  }

  body.public-cel .live-connection {
    min-height: 82px;
    border-right: 0;
    border-bottom: 3px solid var(--cel-ink);
  }

  body.public-cel .method-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.public-cel .workflow-strip {
    grid-template-columns: 1fr;
  }

  body.public-cel .workflow-strip > em {
    width: 6px;
    height: 24px;
    margin-left: 28px;
  }

  body.public-cel .workflow-strip > em::after {
    top: auto;
    right: -7px;
    bottom: -3px;
    border-top: 11px solid var(--cel-ink);
    border-right: 8px solid transparent;
    border-bottom: 0;
    border-left: 8px solid transparent;
  }
}

@media (max-width: 700px) {
  body.public-cel {
    font-size: 13px;
  }

  body.public-cel .page-shell {
    padding: 76px 12px 52px;
    gap: 18px;
  }

  body.public-cel .hero {
    min-height: 0;
    padding: 24px 18px;
    box-shadow: var(--cel-shadow-md);
  }

  body.public-cel .hero::after {
    top: 10px;
    right: 10px;
    font-size: 13px;
  }

  body.public-cel .brand-line {
    max-width: calc(100% - 56px);
  }

  body.public-cel .hero h1 {
    margin-top: 20px;
    font-size: clamp(39px, 14vw, 64px);
  }

  body.public-cel .hero-copy > p {
    font-size: 13px;
    line-height: 1.65;
  }

  body.public-cel .helper-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.public-cel .helper-actions button {
    justify-content: flex-start;
  }

  body.public-cel .route-visual {
    min-height: 0;
    padding: 16px;
  }

  body.public-cel .route-flow {
    grid-template-columns: 1fr;
    gap: 9px;
    margin: 26px 0;
  }

  body.public-cel .route-node {
    min-height: 76px;
    grid-template-columns: auto 1fr;
    text-align: left;
  }

  body.public-cel .route-line {
    width: 6px;
    height: 18px;
    margin-left: 27px;
  }

  body.public-cel .route-line::after {
    top: auto;
    right: -7px;
    bottom: -3px;
    border-top: 11px solid var(--cel-ink);
    border-right: 8px solid transparent;
    border-bottom: 0;
    border-left: 8px solid transparent;
  }

  body.public-cel .status-legend {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.public-cel .status-item:nth-child(2) {
    border-right: 0;
  }

  body.public-cel .status-item:nth-child(-n + 2) {
    border-bottom: 3px solid var(--cel-ink);
  }

  body.public-cel .heat-row {
    grid-template-columns: repeat(25, minmax(0, 1fr));
  }

  body.public-cel .geo-board {
    grid-template-columns: 1fr;
  }

  body.public-cel .geo-map-panel {
    min-height: 210px;
    border-right: 0;
    border-bottom: 3px solid var(--cel-ink);
  }

  body.public-cel .geo-copy {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  body.public-cel .geo-total {
    text-align: left;
  }

  body.public-cel .geo-country-list {
    grid-template-columns: 1fr;
  }

  body.public-cel .card-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  body.public-cel .workspace-edition {
    padding-left: 3px;
  }

  body.public-cel .workflow-strip,
  body.public-cel .method-row,
  body.public-cel .cdk-field,
  body.public-cel .session-panel > .session-input,
  body.public-cel .result-area,
  body.public-cel #recordsView {
    padding: 16px;
  }

  body.public-cel .method-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.public-cel .method-option {
    min-height: 100px;
  }

  body.public-cel .extract-form {
    grid-template-columns: 1fr;
  }

  body.public-cel .cdk-field {
    border-right: 0;
    border-bottom: 3px solid var(--cel-ink);
  }

  body.public-cel .session-panel > .session-input {
    grid-column: 1;
  }

  body.public-cel .ph-card-checkpoints,
  body.public-cel .ph-card-entry {
    grid-template-columns: 1fr;
  }

  body.public-cel .ph-card-checkpoints li {
    min-height: 0;
    border-right: 0;
    border-bottom: 3px solid var(--cel-ink);
  }

  body.public-cel .ph-card-checkpoints li:last-child {
    border-bottom: 0;
  }

  body.public-cel .ph-card-address {
    border-right: 0;
    border-bottom: 3px solid var(--cel-ink);
  }

  body.public-cel .ph-card-stage,
  body.public-cel .ph-card-flow-head {
    align-items: flex-start;
    flex-direction: column;
  }

  body.public-cel .form-footer {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  body.public-cel .actions {
    display: grid;
    grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  }

  body.public-cel .floating-tools {
    top: 10px;
    right: 10px;
    left: 10px;
    justify-content: space-between;
  }

  body.public-cel .modal-dialog {
    width: calc(100vw - 24px);
    max-height: calc(100vh - 32px);
  }
}

@media (max-width: 420px) {
  body.public-cel .method-row {
    grid-template-columns: 1fr;
  }

  body.public-cel .route-visual-head em,
  body.public-cel .route-visual-foot span,
  body.public-cel .online-label {
    display: none;
  }

  body.public-cel .status-item {
    padding: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  body.public-cel *,
  body.public-cel *::before,
  body.public-cel *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 720px) {
  body.public-cel .modal-layer {
    padding: 9px;
  }

  body.public-cel .ph-card-launch {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  body.public-cel .ph-card-open {
    width: 100%;
  }

  body.public-cel .modal-dialog.ph-card-flow {
    width: calc(100vw - 18px);
    max-height: calc(100dvh - 18px);
    box-shadow: 6px 6px 0 var(--cel-ink);
  }

  body.public-cel .ph-card-flow-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 10px;
    padding: 12px;
  }

  body.public-cel .ph-card-head-actions {
    gap: 8px;
  }

  body.public-cel .ph-card-countdown {
    min-width: 62px;
    font-size: 16px;
  }

  body.public-cel .ph-card-checkpoints {
    grid-template-columns: 1fr;
  }

  body.public-cel .ph-card-checkpoints li {
    min-height: 0;
    border-right: 0;
    border-bottom: 3px solid var(--cel-ink);
  }

  body.public-cel .ph-card-checkpoints li:last-child {
    border-bottom: 0;
  }

  body.public-cel .ph-card-stage,
  body.public-cel .ph-card-first-link,
  body.public-cel .ph-card-modal-foot {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  body.public-cel .ph-card-first-link {
    gap: 10px;
  }

  body.public-cel .ph-card-first-link button {
    width: 100%;
  }

  body.public-cel .ph-card-entry {
    grid-template-columns: 1fr;
  }

  body.public-cel .ph-card-address {
    border-right: 0;
    border-bottom: 3px solid var(--cel-ink);
  }

  body.public-cel .ph-card-modal-foot {
    display: grid;
    gap: 10px;
    padding: 12px;
  }

  body.public-cel .ph-card-modal-foot > div {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 420px) {
  body.public-cel .ph-card-flow-head h3 {
    font-size: 17px;
  }

  body.public-cel .ph-card-flow-kicker {
    font-size: 8px;
  }

  body.public-cel .ph-card-modal-foot > div {
    grid-template-columns: 1fr;
  }
}
