.coming-soon { display:flex; flex-direction:column; align-items:center; justify-content:center; height:100%; }
.cs-num { font-family: "IBM Plex Mono", monospace; font-size: 72px; font-weight: 700; color: var(--nav-border); line-height:1; }
.cs-label { font-size: 14px; color: var(--text-dim); margin-top: 8px; }

.tag-wrap { max-width: 560px; margin: 40px auto; padding: 0 20px 40px; text-align: center; }
.tag-wrap h1 { font-size: 20px; font-weight: 600; color: var(--gold); margin-bottom: 8px; }
.tag-wrap .sub { color: var(--text-dim); font-size: 13px; margin-bottom: 28px; }
.tag-wrap label { display:block; text-align:left; font-size:10px; text-transform:uppercase; letter-spacing:.08em; color: var(--text-dim); margin: 0 0 6px; }
.tag-wrap input { width:100%; padding:12px 14px; font-size:16px; border-radius:8px; border:1px solid var(--panel-border); background:var(--panel-bg); color:var(--text); margin-bottom:16px; }
.tag-wrap input:focus { outline:none; border-color: var(--gold); }
.tag-status { font-size: 22px; font-weight: 700; color: var(--success); margin: 24px 0 8px; }
.tag-wait { font-size: 16px; color: var(--text-dim); margin: 24px 0; }
.tag-chosen { font-size: 18px; font-weight: 600; color: var(--text); }
.sim-read { margin-top: 20px; font-size: 11px; color: var(--text-muted); }
.assoc-table { width:100%; max-width: 760px; margin: 32px auto; border-collapse: collapse; font-size: 13px; }
.assoc-table th { font-size:10px; text-transform:uppercase; color:var(--text-dim); text-align:left; padding:8px; border-bottom:1px solid var(--panel-border); }
.assoc-table td { padding:8px; border-bottom:1px solid var(--panel-border); font-family:"IBM Plex Mono",monospace; }
.assoc-table button { font-size:11px; }

.ops-wrap { padding: 18px 20px 28px; min-height: 0; height: auto !important; overflow: visible !important; box-sizing: border-box; }
#module-06.scrollable {
  overflow-y: scroll !important;
  max-height: 100vh;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
#live-root {
  height: auto !important;
  overflow: visible !important;
}
.ops-kpi-row { display:flex; gap:10px; flex-wrap:wrap; margin-bottom:12px; }
.ops-kpi { flex:1 1 120px; background:var(--panel-bg); border:1px solid var(--panel-border); border-radius:12px; padding:12px 14px; border-top:3px solid #4a7db5; }
.ops-kpi.g { border-top-color:#3d9e6a; } .ops-kpi.a { border-top-color:#c88830; } .ops-kpi.r { border-top-color:#c05050; } .ops-kpi.p { border-top-color:#9b59b6; }
.ops-kpi .n { font-family:"IBM Plex Mono",monospace; font-size:26px; font-weight:700; }
.ops-kpi .l { font-size:10px; text-transform:uppercase; letter-spacing:.05em; color:var(--text-dim); margin-top:4px; }
.courier { background:var(--panel-bg); border:1px solid var(--panel-border); border-radius:12px; padding:14px 16px; margin-bottom:12px; }
.courier-path { display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin-top:10px; }
.courier-node { background:var(--chip-bg); border-radius:10px; padding:8px 10px; min-width:92px; }
.courier-node .cn { font-family:"IBM Plex Mono",monospace; font-size:12px; font-weight:600; }
.courier-node .cl { font-size:10px; text-transform:uppercase; color:var(--text-dim); }
.ops-pj-link { margin: 12px 0 0; }
.ops-pj-link a { color: var(--gold); font-size: 12px; }
.ops-card { background:var(--panel-bg); border:1px solid var(--panel-border); border-radius:12px; padding:14px 16px; }
.ops-card-title { font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:.08em; }
.ops-card.clickable { cursor:pointer; }
.ops-card.clickable:hover { border-color: var(--gold); }
.wip-row { display:flex; align-items:center; gap:10px; margin:8px 0; }
.wip-name { width:124px; font-size:12px; flex:none; }
.wip-track { flex:1; height:18px; background:#0e1318; border-radius:4px; position:relative; overflow:hidden; }
.wip-fill { height:100%; border-radius:4px; display:flex; align-items:center; justify-content:flex-end; padding-right:8px; color:#fff; font-size:11px; font-weight:600; text-shadow:0 1px 2px #000; }
.inv-row { display:flex; justify-content:space-between; font-size:12px; padding:6px 0; border-bottom:1px solid var(--panel-border); }
.feed { font-family:"IBM Plex Mono",monospace; font-size:11px; }
.feed-row { display:flex; gap:12px; padding:6px 0; border-bottom:1px solid var(--panel-border); }
.depth-grid { display:grid; grid-template-columns:1fr 1fr 1fr; gap:12px; }
@media(max-width:900px){ .depth-grid { grid-template-columns:1fr; } }
.depth-card a { color: var(--gold); font-size:12px; }

#module-07.scrollable {
  overflow-y: scroll !important;
  max-height: 100vh;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
#util-root {
  height: auto !important;
  overflow: visible !important;
}
.util-wrap { padding:18px 20px 40px; height: auto !important; overflow: visible !important; box-sizing: border-box; }
.util-wrap .kiosk-nav-pills { padding: 0 0 14px; }
.util-head { display:flex; justify-content:space-between; align-items:flex-end; gap:16px; flex-wrap:wrap; margin-bottom:16px; }
.util-head h1 { font-size:20px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; margin:0; }
.thr-box label { font-size:10px; text-transform:uppercase; color:var(--text-dim); display:block; margin-bottom:4px; }
.thr-box input { width:72px; padding:8px 10px; border-radius:8px; border:1px solid var(--panel-border); background:var(--panel-bg); color:var(--text); }
.line-pair { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-bottom:14px; }
.line-card { background:var(--panel-bg); border:1px solid var(--panel-border); border-radius:12px; padding:16px; }
.line-card .big { font-family:"IBM Plex Mono",monospace; font-size:28px; font-weight:700; }
.sim-row { margin-top:16px; display:flex; flex-wrap:wrap; gap:10px; align-items:center; }

.kiosk-panel { background: var(--content-bg); overflow-y: auto; -webkit-overflow-scrolling: touch; }
#kiosk-prep-root,
#kiosk-polish-root,
#kiosk-inspect-root,
#kiosk-decal-root,
#kiosk-rework-root,
#kiosk-tag-root {
  height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.kiosk-inner { max-width: 640px; margin: 0 auto; padding: 28px 24px 80px; text-align:center; }
.kiosk-inner h1 { font-size: 28px; margin-bottom: 8px; }
.kiosk-epc-box { max-width: 520px; margin: 20px auto 16px; text-align: left; }
.kiosk-epc-box label {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-dim);
  margin: 0 0 6px;
}
.kiosk-epc-box select,
.kiosk-epc-box input {
  width: 100%;
  padding: 12px 14px;
  font-size: 16px;
  border-radius: 8px;
  border: 1px solid var(--panel-border);
  background: var(--panel-bg);
  color: var(--text);
  margin-bottom: 12px;
}
.kiosk-epc-box select {
  cursor: pointer;
  font-family: "IBM Plex Sans", sans-serif;
  color-scheme: dark;
}
.kiosk-epc-box input { font-family: "IBM Plex Mono", monospace; }
.kiosk-epc-box select:focus,
.kiosk-epc-box input:focus { outline: none; border-color: var(--gold); }
[data-theme="light"] .kiosk-epc-box select { color-scheme: light; }
.kiosk-nav-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 18px 20px 0;
}
.kiosk-back,
a.kiosk-back,
button.kiosk-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: static;
  padding: 10px 22px;
  border-radius: 999px;
  border: none;
  background: var(--gold);
  color: #0d1014;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  font-family: "IBM Plex Sans", sans-serif;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
}
.kiosk-back:hover,
a.kiosk-back:hover,
button.kiosk-back:hover { background: #d9a020; color: #0d1014; }
#pageBack { display: none !important; }
.back-inline {
  position: static;
  display: inline-flex;
  margin: 0 0 14px;
}
.kiosk-btns { display:flex; gap:16px; justify-content:center; margin: 28px 0; align-items:flex-start; }
.kiosk-btns button { font-size: 22px; font-weight:700; padding: 22px 36px; border-radius:12px; border:none; cursor:pointer; min-width:160px; }
.btn-ok { background: var(--success); color:#0d1014; }
.btn-nok { background: var(--danger); color:#fff; }
.kiosk-inner.ki-locked { max-width: 720px; text-align: left; }
.kiosk-inner.ki-locked h1, .kiosk-inner.ki-locked .tag-chosen, .kiosk-inner.ki-locked .sub { text-align: center; }
.ki-ok-col { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.ki-stamp { margin: 8px 0 4px; text-align: left; }
.ki-stamp label {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-dim);
  margin: 10px 0 6px;
}
.ki-stamp input,
.ki-stamp textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 16px;
  border-radius: 8px;
  border: 1px solid var(--panel-border);
  background: var(--panel-bg);
  color: var(--text);
  font-family: "IBM Plex Sans", sans-serif;
  box-sizing: border-box;
}
.ki-stamp textarea { resize: vertical; min-height: 72px; }
.ki-journey { margin: 18px 0; padding: 14px 16px; background: var(--panel-bg); border: 1px solid var(--panel-border); border-radius: 10px; }
.ki-journey .ops-card-title { margin-bottom: 12px; }
.ki-path { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 16px; font-size: 12px; }
.ki-path-step { color: var(--text-dim); }
.ki-path-step.on { color: var(--gold); font-weight: 600; }
.ki-path-sep { color: var(--text-dim); opacity: 0.5; }
.ki-assign { text-align: left; margin: 12px 0 16px; }
.ki-assign label {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-dim);
  margin-bottom: 6px;
}
.ki-assign select {
  width: 100%;
  max-width: 360px;
  padding: 12px 14px;
  font-size: 16px;
  border-radius: 8px;
  border: 1px solid var(--panel-border);
  background: var(--panel-bg);
  color: var(--text);
}
.def-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin: 20px 0; text-align:left; }
.def-grid label { background:var(--panel-bg); border:1px solid var(--panel-border); border-radius:10px; padding:12px; font-size:15px; display:flex; gap:10px; align-items:center; }
.kp-sub { position: sticky; bottom: 12px; z-index: 2; }

.journey-search { padding: 0 24px 24px; max-width: 760px; }
.journey-search input { width:100%; padding:12px 14px; border-radius:8px; border:1px solid var(--panel-border); background:var(--panel-bg); color:var(--text); font-size:16px; }
.tl { border-left:2px solid var(--panel-border); margin: 20px 0 0 12px; padding-left: 20px; }
.tl-item { position:relative; margin-bottom:16px; }
.tl-item:before { content:""; position:absolute; left:-27px; top:4px; width:10px; height:10px; border-radius:50%; background:var(--gold); }

:root {
  --chip-bg: #1e2630;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}
[data-theme="light"] { --chip-bg: #eef2f6; }

.pt-search-primary { display:flex; gap:8px; align-items:flex-end; flex-wrap:wrap; margin-bottom:4px; }
.pt-field { flex:1; min-width:160px; }
.pt-field label { display:block; font-size:10px; text-transform:uppercase; letter-spacing:.08em; color:var(--text-dim); margin-bottom:6px; }
.pt-chips { display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin:10px 0 16px; }
.pt-chip-label { font-size:10px; text-transform:uppercase; letter-spacing:.07em; color:var(--text-dim); margin-right:4px; }
.pt-chip {
  padding:6px 12px; border-radius:20px; border:1px solid var(--panel-border);
  background:var(--chip-bg); color:var(--text); font-size:12px; cursor:pointer;
  font-family:var(--mono);
}
.pt-chip:hover { border-color:var(--gold); color:var(--gold); }
.pt-chip.demo { border-color:var(--gold); color:var(--gold); }
.pt-split { display:flex; gap:12px; align-items:flex-start; margin-bottom:24px; }
.pt-split #ptTimeline { flex:0 0 58%; min-width:0; }
.pt-loc-panel {
  flex:1; min-width:220px; display:flex; flex-direction:column;
  border:1px solid var(--panel-border); border-radius:10px; overflow:hidden;
  background:var(--panel-bg); min-height:420px;
}
.pt-loc-head { padding:10px 14px 8px; border-bottom:1px solid var(--panel-border); }
.pt-loc-kicker { font-size:10px; text-transform:uppercase; letter-spacing:.08em; color:var(--text-dim); margin-bottom:4px; }
.pt-loc-title { font-size:14px; font-weight:600; color:var(--gold); }
.pt-loc-sub { font-size:10px; color:var(--text-dim); margin-top:2px; }
.pt-line { padding:14px 16px 18px; }
.pt-line-step { display:flex; gap:12px; }
.pt-line-rail { display:flex; flex-direction:column; align-items:center; width:16px; flex:none; }
.pt-line-node { width:14px; height:14px; border-radius:50%; border:2px solid var(--panel-border); background:transparent; }
.pt-line-node.done { background:var(--gold); border-color:var(--gold); }
.pt-line-node.current { box-shadow:0 0 0 4px rgba(61,214,140,.22); }
.pt-line-connector { width:2px; min-height:22px; background:var(--panel-border); flex:1; }
.pt-line-connector.done { background:var(--gold); }
.pt-line-copy { padding-bottom:8px; }
.pt-line-label { font-size:12px; font-weight:600; color:var(--text); }
.pt-rework-step { margin-top:4px; padding-left:8px; border-left:2px dashed #c05050; }
.pt-detail-head .dba-refresh-btn { margin-left:auto; }
@media (max-width:900px) {
  .pt-split { flex-direction:column; }
  .pt-split #ptTimeline { flex:1 1 auto; width:100%; }
}

.dba-wrap { display:flex; height:100%; }
.dba-list { width:180px; border-right:1px solid var(--panel-border); overflow:auto; padding:12px 0; }
.dba-list button { display:block; width:100%; text-align:left; background:none; border:none; color:var(--text-dim); padding:8px 14px; cursor:pointer; font-size:12px; }
.dba-list button.active { color:var(--gold); border-left:3px solid var(--gold); }
.dba-grid { flex:1; overflow:auto; padding:16px; }
.dba-grid table { width:100%; border-collapse:collapse; font-size:12px; }
.dba-grid th { text-transform:uppercase; font-size:10px; color:var(--text-dim); text-align:left; padding:6px; }
.dba-grid td { padding:6px; border-bottom:1px solid var(--panel-border); font-family:"IBM Plex Mono",monospace; }
