:root {
  --bg: #f0f3f1;
  --surface: #ffffff;
  --surface-subtle: #f7faf8;
  --surface-accent: #e5f1ee;
  --ink: #182432;
  --ink-secondary: #374754;
  --ink-muted: #5c6b77;
  --border: #dde4e7;
  --border-strong: #c5d1d5;
  --primary: #12655e;
  --primary-hover: #0d4e49;
  --primary-light: #d9ede7;
  --sidebar-bg: #17252c;
  --sidebar-line: #ffffff1f;
  --sidebar-text: #aec3c0;
  --sidebar-active-bg: #d9ede7;
  --sidebar-active-ink: #113d3a;
  --blue: #23527c;
  --blue-bg: #eaf1f6;
  --amber: #8f5d16;
  --amber-bg: #f8efe0;
  --purple: #5b3b8c;
  --purple-bg: #f1ecf8;
  --green: #12655e;
  --green-bg: #e5f1ee;
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --shadow-sm: 0 2px 10px rgba(24, 36, 50, 0.04);
  --shadow-md: 0 12px 32px rgba(24, 36, 50, 0.07);
  --font-sans: Inter, -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.76;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

button, a, input, select, textarea, [role="button"], .cert-img-wrap {
  scroll-margin-top: 128px;
}

button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ===== True Full-Bleed H01 App Shell: Flush 100dvh Dark-Green Left Sidebar + Right Stage ===== */
.app-shell {
  display: grid;
  grid-template-columns: 262px minmax(0, 1fr);
  min-height: 100dvh;
  width: 100%;
  transition: grid-template-columns 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.left-sidebar {
  position: sticky;
  top: 0;
  height: 100dvh;
  background: var(--sidebar-bg);
  color: #edf6f3;
  border-right: 1px solid #0e181d;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
  padding: 22px 14px 18px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 80;
}

.sidebar-brand-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 2px 6px 18px;
  border-bottom: 1px solid var(--sidebar-line);
  flex-shrink: 0;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: #edf6f3;
  min-width: 0;
}

.brand-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 18%;
  border: 1.5px solid #9dc2bc;
  background: #22353e;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-title {
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: #edf6f3;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-subtitle {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-top: 4px;
  font-size: 11px;
  color: #9cb6b2;
  line-height: 1.38;
}

.brand-subline {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rail-icon-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: #9cb6b2;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease, color 0.15s ease;
}

.rail-icon-btn:hover {
  background: #ffffff14;
  color: #ffffff;
}

.sidebar-panel {
  display: flex;
  flex-direction: column;
  padding: 14px 0 10px;
  flex: 1;
}

.sidebar-group-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #799692;
  padding: 0 12px 8px;
  text-transform: uppercase;
}

.side-nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.side-nav-btn {
  appearance: none;
  width: 100%;
  min-height: 41px;
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--sidebar-text);
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 9px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background 0.14s ease, color 0.14s ease;
}

.side-nav-btn:hover {
  background: #ffffff12;
  color: #ffffff;
}

.side-nav-btn.active {
  background: var(--sidebar-active-bg);
  color: var(--sidebar-active-ink);
  font-weight: 700;
}

.nav-idx {
  width: 22px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  text-align: center;
  opacity: 0.78;
  flex-shrink: 0;
}

.side-nav-btn.active .nav-idx {
  opacity: 1;
  color: var(--sidebar-active-ink);
  font-weight: 700;
}

.nav-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.sidebar-foot {
  margin-top: auto;
  padding: 14px 6px 0;
  border-top: 1px solid var(--sidebar-line);
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}

.sidebar-foot-meta {
  padding: 0 6px;
  color: #93aca8;
  font-size: 11px;
  line-height: 1.6;
}

.sidebar-foot-meta strong {
  display: block;
  color: #dcebe8;
  font-size: 11.5px;
  margin-bottom: 2px;
}

.sidebar-collapse-bar {
  appearance: none;
  width: 100%;
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  background: #ffffff0d;
  color: #b8cecb;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 500;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  transition: background 0.14s ease, color 0.14s ease;
}

.sidebar-collapse-bar:hover {
  background: #ffffff1a;
  color: #ffffff;
}

.sidebar-collapse-bar .collapse-chevron {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}

/* Desktop Collapsed Slim Rail (64px flush dark-green column, zero popup feel) */
@media (min-width: 861px) {
  .app-shell.sidebar-collapsed {
    grid-template-columns: 64px minmax(0, 1fr);
  }
  .app-shell.sidebar-collapsed .left-sidebar {
    padding: 20px 10px 16px;
  }
  .app-shell.sidebar-collapsed .sidebar-brand-head {
    justify-content: center;
    padding: 2px 0 16px;
  }
  .app-shell.sidebar-collapsed .brand-text,
  .app-shell.sidebar-collapsed #sidebar-collapse-top,
  .app-shell.sidebar-collapsed .sidebar-group-label,
  .app-shell.sidebar-collapsed .nav-label,
  .app-shell.sidebar-collapsed .sidebar-foot-meta,
  .app-shell.sidebar-collapsed .collapse-text {
    display: none;
  }
  .app-shell.sidebar-collapsed .brand-avatar {
    width: 36px;
    height: 36px;
  }
  .app-shell.sidebar-collapsed .side-nav-btn {
    justify-content: center;
    padding: 8px 0;
    gap: 0;
  }
  .app-shell.sidebar-collapsed .nav-idx {
    width: auto;
    font-size: 12px;
  }
  .app-shell.sidebar-collapsed .sidebar-foot {
    padding: 12px 0 0;
  }
  .app-shell.sidebar-collapsed .sidebar-collapse-bar {
    justify-content: center;
    padding: 0;
  }
}

/* ===== Right Main Stage & Sticky Slim Topbar ===== */
.main-stage {
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

.stage-topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(240, 243, 241, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.stage-topbar-inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 10px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.mobile-brand-bar {
  display: none;
}

.primary-nav {
  display: inline-flex;
  align-items: center;
  background: #e2eae7;
  padding: 4px;
  border-radius: 10px;
  gap: 4px;
}

.primary-tab {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--ink-secondary);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  padding: 7px 20px;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.16s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.primary-tab:hover {
  color: var(--ink);
}

.primary-tab.active {
  background: var(--surface);
  color: var(--primary);
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(24, 36, 50, 0.08);
}

.primary-tab .tab-en {
  font-family: var(--font-mono);
  font-size: 11.5px;
  opacity: 0.8;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  appearance: none;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink-secondary);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 15px;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--surface-accent);
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(18, 101, 94, 0.18);
}

.btn-primary:hover {
  background: var(--primary-hover);
  color: #ffffff;
  border-color: var(--primary-hover);
}

.mobile-drawer-btn,
.sidebar-close-mobile,
.sidebar-backdrop {
  display: none;
}

/* ===== Main Content Container ===== */
.main-container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  min-width: 0;
  padding: 26px 36px 76px;
}

/* ===== Work 01 Interactive 16-Domain Panorama ===== */
.panorama-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-subtle);
  padding: 16px 18px;
  margin-bottom: 22px;
}

.panorama-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  background: #ffffff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  padding: 9px 14px;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--ink-secondary);
}

.panorama-svg-wrap {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  overflow-x: auto;
}

.pano-node .node-box {
  transition: all 0.16s ease;
}

.pano-node:hover .node-box {
  filter: drop-shadow(0 3px 8px rgba(18, 101, 94, 0.2));
}

.pano-node.pano-node-active .node-box {
  stroke: var(--primary) !important;
  stroke-width: 3px !important;
  filter: drop-shadow(0 0 0 2px rgba(18, 101, 94, 0.22));
}

.pano-node.pano-dim {
  opacity: 0.28;
}

.pano-edge {
  transition: opacity 0.15s ease, stroke-width 0.15s ease;
}

.pano-edge.pano-edge-dim {
  opacity: 0.15;
}

.pano-edge.pano-edge-hi {
  stroke: var(--primary) !important;
  stroke-width: 2.6px !important;
  opacity: 1 !important;
}

.stage-flow-row {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  margin-top: 8px;
}

.stage-pill {
  flex: 1 1 150px;
  background: var(--surface-accent);
  border: 1px solid #c5ddd7;
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.stage-pill strong {
  color: var(--primary);
  font-size: 13px;
}

.stage-pill span {
  font-size: 12px;
  color: var(--ink-secondary);
}

.stage-pill-amber {
  background: var(--amber-bg);
  border-color: #e6d2b2;
}

.stage-pill-amber strong {
  color: var(--amber);
}

.kw-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.kw-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
}

.view-panel {
  display: none;
}

.view-panel.active {
  display: block;
}

/* ===== Resume Section Styling (Archival Editorial High Readability) ===== */
.resume-sheet {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.resume-section-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 34px;
  box-shadow: var(--shadow-sm);
  scroll-margin-top: 84px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 13px;
  margin-bottom: 20px;
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}

.section-num {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--primary);
  background: var(--surface-accent);
  border: 1px solid #c5ddd7;
  padding: 2px 9px;
  border-radius: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}

.section-title {
  font-size: 21px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  letter-spacing: 0.3px;
  white-space: nowrap;
  flex-shrink: 0;
}

.section-subtitle {
  font-size: 13px;
  color: var(--ink-muted);
  min-width: 0;
}

/* 01 Basic Info Grid */
.basic-info-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 165px;
  grid-template-areas:
    "head photo"
    "meta photo";
  gap: 14px 32px;
  align-items: center;
}

.basic-info-head {
  grid-area: head;
  min-width: 0;
}

.basic-meta-grid {
  grid-area: meta;
}

.id-photo-box {
  grid-area: photo;
}

.candidate-name-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.candidate-name {
  font-size: 32px;
  font-weight: 800;
  color: var(--ink);
  margin: 0;
  letter-spacing: 1px;
}

.candidate-en {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink-muted);
}

.candidate-role-banner {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 18px;
}

.basic-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 20px;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.meta-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-muted);
}

.meta-value {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 6px;
}

.nb {
  white-space: nowrap;
  display: inline-block;
}

.edu-value {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 8px;
}

.edu-main {
  font-weight: 700;
  color: var(--ink);
}

.edu-sub {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--primary);
  background: var(--surface-accent);
  border: 1px solid #c5ddd7;
  border-radius: 6px;
  padding: 1px 8px;
  white-space: nowrap;
}

.cert-pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
  width: 100%;
}

.block-subnote {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-muted);
  margin-top: 2px;
  line-height: 1.5;
}

.cell-sub {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-muted);
  margin-top: 2px;
  line-height: 1.45;
}

.domain-doc-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--ink-muted);
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 8px;
  margin: 2px 0 8px 0;
  max-width: 100%;
}

.kpi-role-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  background: var(--surface-accent);
  border-radius: 4px;
  padding: 1px 6px;
  margin-bottom: 4px;
  white-space: nowrap;
}

.sop-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.sop-item-tag {
  display: inline-flex;
  align-items: center;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-secondary);
  background: #ffffff;
  border: 1px solid #dce4e8;
  border-radius: 6px;
  padding: 3px 9px;
  line-height: 1.45;
}

.code-line {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--primary);
  background: var(--surface-accent);
  border: 1px solid #c5ddd7;
  border-radius: 5px;
  padding: 2px 8px;
  max-width: 100%;
}

.copy-chip {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--primary);
  background: var(--surface-accent);
  border: 1px solid #c5ddd7;
  border-radius: 5px;
  padding: 2px 8px;
  cursor: pointer;
}

.id-photo-box {
  width: 155px;
  height: 210px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid var(--border-strong);
  box-shadow: var(--shadow-sm);
  background: #ffffff;
  justify-self: end;
}

.id-photo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* 02 Profile Summary & 4 Core Problems */
.lead-paragraph {
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink-secondary);
  background: #f8fafc;
  border-left: 4px solid var(--primary);
  padding: 16px 20px;
  border-radius: 0 10px 10px 0;
  margin: 0 0 22px 0;
}

.lead-paragraph strong {
  color: var(--ink);
}

.four-problems-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.problem-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  background: var(--surface);
  transition: border-color 0.15s ease;
}

.problem-card:hover {
  border-color: var(--primary);
}

.problem-tag {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--primary);
  background: var(--surface-accent);
  padding: 2px 10px;
  border-radius: 6px;
  margin-bottom: 8px;
}

.problem-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 8px 0;
  line-height: 1.45;
}

.problem-desc {
  font-size: 14.5px;
  color: var(--ink-secondary);
  margin: 0 0 10px 0;
}

.problem-evidence {
  font-size: 13.5px;
  color: var(--ink-muted);
  background: var(--surface-subtle);
  padding: 8px 12px;
  border-radius: 6px;
  margin: 0;
}

.problem-evidence strong {
  color: var(--ink-secondary);
}

/* 03 Core Capabilities */
.capability-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.cap-card {
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 22px;
}

.cap-card h3 {
  margin: 0 0 10px 0;
  font-size: 16.5px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}

.cap-card p {
  margin: 0;
  font-size: 14.8px;
  color: var(--ink-secondary);
  line-height: 1.75;
}

.cap-card strong {
  color: var(--primary);
}

.tech-stack-box {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  background: #ffffff;
}

.tech-stack-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
}

.tech-stack-row:last-child {
  border-bottom: none;
}

.tech-cat {
  min-width: 140px;
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tech-pill {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-secondary);
  background: #f1f5f9;
  padding: 2px 10px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  max-width: 100%;
  word-break: break-word;
}

/* 04 Work Experience Timeline */
.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.exp-item {
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 22px 26px;
  background: var(--surface);
}

.exp-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f1f5f9;
}

.exp-company {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}

.exp-role {
  color: var(--primary);
  font-weight: 700;
}

.exp-meta-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.exp-period {
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-secondary);
  background: #f1f5f9;
  padding: 3px 10px;
  border-radius: 6px;
}

.exp-scope-badge {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--blue);
  background: var(--blue-bg);
  padding: 3px 10px;
  border-radius: 6px;
}

.exp-bullets {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.exp-bullets li {
  color: var(--ink-secondary);
  font-size: 15px;
  line-height: 1.75;
}

.exp-bullets li strong {
  color: var(--ink);
}

/* 05 Project Experience Cards */
.project-exp-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.proj-exp-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 26px;
  background: var(--surface-subtle);
}

.proj-exp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.proj-exp-title {
  font-size: 17.5px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}

.proj-exp-grid {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 8px 16px;
  font-size: 14.8px;
}

.proj-exp-label {
  font-weight: 700;
  color: var(--ink-muted);
}

.proj-exp-val {
  color: var(--ink-secondary);
}

.proj-exp-val strong {
  color: var(--ink);
}

/* 06 Professional Certificates */
.cert-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 22px;
}

.cert-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cert-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.cert-img-wrap {
  height: 220px;
  background: #f8fafc;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
  cursor: zoom-in;
  position: relative;
}

.cert-img-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
}

.cert-zoom-hint {
  position: absolute;
  right: 10px;
  bottom: 10px;
  background: rgba(15, 23, 42, 0.72);
  color: #ffffff;
  font-size: 11.5px;
  padding: 2px 8px;
  border-radius: 4px;
}

.cert-body {
  padding: 16px 18px;
}

.cert-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 6px 0;
}

.cert-meta {
  font-size: 13px;
  color: var(--ink-muted);
  margin: 0;
  line-height: 1.6;
}

/* ===== Portfolio Section Styling ===== */
.portfolio-intro-banner {
  background: linear-gradient(135deg, #17252c 0%, #1d3c3b 100%);
  color: #edf6f3;
  border-radius: var(--radius-lg);
  padding: 24px 32px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.portfolio-intro-banner h2 {
  margin: 0 0 6px 0;
  font-size: 22px;
  font-weight: 800;
  color: #edf6f3;
}

.portfolio-intro-banner p {
  margin: 0;
  color: #b7cecb;
  font-size: 14.2px;
  max-width: 780px;
}

.portfolio-work-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 34px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  scroll-margin-top: 84px;
}

.work-block-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

.work-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.work-index-badge {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  background: #17252c;
  color: #edf6f3;
  padding: 2px 10px;
  border-radius: 6px;
}

.work-type-badge {
  font-size: 12.5px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 6px;
  background: var(--surface-accent);
  color: var(--primary);
  border: 1px solid #c5ddd7;
}

.work-status-pending {
  background: var(--amber-bg);
  color: var(--amber);
  border: 1px solid #e6d2b2;
}

.work-block-title {
  font-size: 23px;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 6px 0;
}

.work-block-desc {
  font-size: 14.8px;
  color: var(--ink-secondary);
  margin: 0;
  max-width: 820px;
}

/* Interactive Controls & Tables inside Portfolio */
.kpi-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.kpi-box {
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
}

.kpi-num {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}

.kpi-label {
  font-size: 12.5px;
  color: var(--ink-muted);
  margin-top: 4px;
}

.filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  background: var(--surface-subtle);
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.chip-btn {
  appearance: none;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink-secondary);
  font-size: 13px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.chip-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.chip-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.search-input, .select-input {
  border: 1px solid var(--border-strong);
  background: #ffffff;
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 13.5px;
  font-family: var(--font-sans);
  color: var(--ink);
}

.search-input {
  min-width: 220px;
}

/* 16 Domains Grid & Inspector */
.domain-explorer-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 20px;
  align-items: start;
}

.domain-selector-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-height: 680px;
  overflow-y: auto;
  padding-right: 4px;
}

.domain-tile {
  border: 1px solid var(--border);
  background: var(--surface-subtle);
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
}

.domain-tile:hover {
  border-color: var(--primary);
  background: #ffffff;
}

.domain-tile.active {
  border: 2px solid var(--primary);
  background: var(--surface-accent);
}

.domain-tile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11.5px;
  margin-bottom: 3px;
}

.prio-badge {
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 11px;
}

.prio-P0 { background: #fee2e2; color: #b91c1c; }
.prio-P1 { background: #fef3c7; color: #b45309; }
.prio-P2 { background: #dbeafe; color: #1d4ed8; }
.prio-P3 { background: #f1f5f9; color: #475569; }

.domain-tile-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.domain-tile-meta {
  font-size: 11.5px;
  color: var(--ink-muted);
  margin-top: 2px;
}

.domain-detail-pane {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #ffffff;
  padding: 22px 24px;
}

.data-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-top: 10px;
  max-width: 100%;
}

.data-table {
  width: 100%;
  min-width: 580px;
  border-collapse: collapse;
  font-size: 13.5px;
  overflow-wrap: break-word;
  word-break: normal;
}

.data-table.data-table-wide {
  min-width: 860px;
}

.data-table.data-table-compact {
  min-width: 0;
  font-size: 12.8px;
}

.data-table.data-table-compact th,
.data-table.data-table-compact td {
  padding: 8px 9px;
}

.data-table.data-table-compact th {
  white-space: normal;
  line-height: 1.35;
}

.data-table th {
  background: #f8fafc;
  color: var(--ink);
  font-weight: 700;
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: keep-all;
}

.data-table td {
  padding: 9px 12px;
  border-bottom: 1px solid #f1f5f9;
  color: var(--ink-secondary);
  vertical-align: top;
  overflow-wrap: break-word;
  word-break: normal;
}

.data-table td .status-pill,
.data-table td .code-tag,
.data-table td code {
  white-space: nowrap;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tr:hover td {
  background: #f8fafc;
}

.code-tag {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--primary);
  background: var(--surface-accent);
  padding: 2px 6px;
  border-radius: 4px;
}

.status-pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.status-ok { background: var(--green-bg); color: var(--green); }
.status-warn { background: var(--amber-bg); color: var(--amber); }
.status-info { background: var(--blue-bg); color: var(--blue); }
.status-muted { background: #f1f5f9; color: #64748b; }

.portfolio-work-block,
.portfolio-work-block > div,
.portfolio-work-block div[style*="grid"] > div,
.domain-detail-pane,
.domain-detail-pane > div,
.domain-detail-pane div[style*="grid"] > div,
.panorama-card {
  min-width: 0;
  max-width: 100%;
}

.domain-detail-pane h4,
.domain-detail-pane p,
.portfolio-work-block h3,
.portfolio-work-block p {
  overflow-wrap: break-word;
  word-break: break-word;
  max-width: 100%;
}

pre.code-block {
  background: #17252c;
  color: #e3efec;
  font-family: var(--font-mono);
  font-size: 12.6px;
  line-height: 1.65;
  padding: 16px 18px;
  border-radius: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  white-space: pre;
  overflow-wrap: normal;
  word-break: normal;
  max-width: 100%;
  margin: 10px 0;
}

pre.code-block.code-prose {
  white-space: pre-wrap;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Inner Tabs for Portfolio Artifacts */
.inner-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.inner-tab-btn {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--surface-subtle);
  color: var(--ink-secondary);
  font-size: 13.5px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 8px;
  cursor: pointer;
}

.inner-tab-btn.active {
  background: #17252c;
  color: #edf6f3;
  border-color: #17252c;
}

/* Lightbox Modal for Certificates */
.lightbox-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 25, 30, 0.84);
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.lightbox-backdrop.open {
  display: flex;
}

.lightbox-box {
  background: #ffffff;
  border-radius: 12px;
  max-width: min(980px, calc(100vw - 32px));
  max-height: 90dvh;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.lightbox-box img {
  max-width: 100%;
  max-height: 76dvh;
  object-fit: contain;
}

.lightbox-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 700;
}
#lightbox-caption {
  min-width: 0;
  flex: 1;
  font-size: 14px;
  line-height: 1.4;
}
.lightbox-top .btn {
  flex-shrink: 0;
  white-space: nowrap !important;
  padding: 0 12px;
}

/* Responsive adjustments */
@media (max-width: 1080px) {
  .app-shell {
    grid-template-columns: 224px minmax(0, 1fr);
  }
  .stage-topbar-inner {
    padding: 10px 22px;
  }
  .main-container {
    padding: 22px 22px 64px;
  }
}

/* Structured Resume & Portfolio Enhancements (Desktop + Mobile Shared Base) */
.proj-exp-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.exp-company-tag {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--primary);
  background: var(--surface-accent);
  border: 1px solid #c5ddd7;
  padding: 3px 10px;
  border-radius: 6px;
}
.proj-duty-list {
  margin: 0;
  padding-left: 19px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.proj-duty-list li {
  color: var(--ink-secondary);
  line-height: 1.72;
}
.proj-jump-footer {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
  display: flex;
  justify-content: flex-end;
}
.proj-jump-btn {
  background: var(--surface);
  border: 1px solid #b8d8d0;
  color: var(--primary);
  font-weight: 700;
  font-size: 13px;
  padding: 7px 14px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.proj-jump-btn:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}
.work-action-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.dqc-table-scroll {
  max-height: 520px;
  overflow-y: auto;
}
.single-view-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* v2 iteration: readable sidebar, independent views, and a single-scroll work area */
:root { --sidebar-width-v2: 300px; }
.app-shell:not(.sidebar-collapsed) { grid-template-columns: var(--sidebar-width-v2) minmax(0, 1fr); }
.app-shell.sidebar-collapsed { grid-template-columns: 64px minmax(0, 1fr); }
.left-sidebar { min-width: 0; overflow-x: hidden; }
.sidebar-brand-head { min-width: 0; }
.brand-group { min-width: 0; align-items: flex-start; }
.brand-text { min-width: 0; flex: 1; }
.left-sidebar .brand-title, .left-sidebar .brand-subline { white-space: normal; overflow: visible; text-overflow: clip; }
.left-sidebar .brand-title { line-height: 1.25; }
.left-sidebar .brand-subline { line-height: 1.45; }
.sidebar-resizer { position: absolute; z-index: 30; top: 0; right: -5px; bottom: 0; width: 10px; cursor: col-resize; background: transparent; }
.sidebar-resizer::after { content: ''; position: absolute; top: 42%; left: 3px; width: 3px; height: 74px; border-radius: 3px; background: rgba(115, 151, 155, .45); opacity: 0; transition: opacity .15s ease; }
.sidebar-resizer:hover::after, .sidebar-resizer:focus-visible::after { opacity: 1; }
.v2-single-view .resume-section-card { margin-bottom: 0; }
#panel-resume.v2-single-view, #panel-portfolio.v2-single-view { padding-top: 8px; }
.single-view-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--surface-accent);
  border: 1px solid #c5ddd7;
  border-radius: 10px;
  padding: 8px 14px;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
}
.single-view-bar.visible {
  display: flex;
}
#work-01 .kpi-strip { display: none !important; }
#work-01 .domain-explorer-layout { grid-template-columns: minmax(220px, 260px) minmax(0, 1fr); gap: 18px; }
#work-01 .domain-selector-list { grid-template-columns: 1fr; max-height: none; overflow: visible; padding-right: 0; }
#work-01 .domain-detail-pane { max-height: none !important; height: auto !important; overflow: visible !important; }
#work-01 .domain-detail-pane > div, #work-01 .domain-detail-pane div[style*="max-height"] { max-height: none !important; }
#work-01 .data-table-wrap { overflow-x: auto !important; overflow-y: visible; -webkit-overflow-scrolling: touch; }
.v2-pdf-modal { position: fixed; inset: 0; z-index: 1200; display: none; flex-direction: column; background: #dfe8ea; }
.v2-pdf-modal.open { display: flex; }
.v2-pdf-modal-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 10px 16px; background: #17252c; color: #f5fbfa; font-weight: 700; font-size: 14px; }
.v2-pdf-modal-head .pdf-modal-actions { display: flex; align-items: center; gap: 8px; }
.v2-pdf-modal-head button { border: 1px solid rgba(255,255,255,.35); border-radius: 8px; background: transparent; color: inherit; padding: 7px 12px; cursor: pointer; font-weight: 600; white-space: nowrap; }
.v2-pdf-modal-head button.pdf-dl-direct { background: #d9ede7; color: #113d3a; border-color: #bce0d7; }
.v2-pdf-modal iframe { flex: 1; width: 100%; min-height: 0; border: 0; background: #fff; }
.v2-pdf-fallback { padding: 8px 16px; background: #fff; font-size: 13px; }

@media (min-width: 861px) and (max-width: 1080px) {
  /* Keep identity, compact metadata and the photo in one balanced two-column block. */
  .basic-info-layout {
    grid-template-columns: minmax(0, 1fr) 110px;
    grid-template-areas:
      "head photo"
      "meta photo";
    gap: 10px 16px;
    align-items: start;
  }
  .id-photo-box {
    width: 110px;
    height: 150px;
  }
  .basic-meta-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px 12px;
    padding: 12px 14px;
  }
  .basic-meta-grid > .meta-item:nth-child(6),
  .basic-meta-grid > .meta-item:nth-child(7) {
    grid-column: 1 / -1;
  }
  .basic-meta-grid > .meta-item:nth-child(5) {
    grid-column: span 2;
  }
  .basic-meta-grid .meta-value {
    font-size: 13.4px;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .basic-meta-grid .meta-item:nth-child(5) .meta-value {
    font-size: 12.6px;
  }
  .basic-meta-grid .copy-chip {
    padding: 2px 6px;
  }
  .candidate-role-banner {
    font-size: 15px;
    line-height: 1.5;
  }
}

@media (min-width: 861px) {
  .m-only,
  .m-label,
  .mobile-scroll-cue,
  .mobile-panorama-map,
  .mobile-vector-toggle-bar,
  .mobile-demand-bars,
  .mobile-arch-flow,
  .dqc-mobile-more-bar {
    display: none !important;
  }
}

/* ===== Complete Mobile-Native Redesign (<=860px, calibrated for 375x667 iPhone SE & 360px+) ===== */
@media (max-width: 860px) {
  html, body {
    margin: 0;
    padding: 0;
  }
  .d-only,
  .d-label,
  .desktop-only-arch,
  .mobile-brand-bar,
  .sidebar-resizer,
  #sidebar-collapse-top,
  .sidebar-collapse-bar {
    display: none !important;
  }
  .app-shell,
  .main-stage,
  .app-shell:not(.sidebar-collapsed),
  .app-shell.sidebar-collapsed {
    display: block;
    grid-template-columns: 1fr;
    min-height: 100dvh;
    margin: 0;
    padding: 0;
    max-width: 100%;
  }

  /* 1. Sleek 60px Single-Row Frosted-White Sticky Topbar (saves ~58px vertical height on 667px screen) */
  .stage-topbar {
    position: sticky;
    top: 0;
    margin: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid #d7e2e4;
    box-shadow: 0 2px 10px rgba(24, 36, 50, 0.05);
  }
  .stage-topbar-inner {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    padding: 6px 8px;
    gap: 5px;
  }
  .mobile-drawer-btn {
    order: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 9px;
    flex: 0 0 auto;
    background: #f2f7f6;
    border: 1px solid #cddcd9;
    color: #182432;
    font-size: 12.5px;
    font-weight: 700;
    border-radius: 9px;
    white-space: nowrap;
  }
  .mobile-drawer-btn:hover {
    background: #e5f1ee;
    border-color: var(--primary);
    color: var(--primary);
  }
  .primary-nav {
    order: 1;
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    background: #eaf0ee;
    padding: 2px;
    border-radius: 10px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px;
  }
  .primary-tab {
    height: 44px;
    padding: 0 4px;
    color: #465865;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    white-space: nowrap;
  }
  .primary-tab .tab-en {
    display: none !important;
  }
  .primary-tab.active {
    background: #ffffff;
    color: var(--primary);
    font-weight: 700;
    box-shadow: 0 1px 4px rgba(24, 36, 50, 0.1);
  }
  .header-actions {
    order: 2;
    flex: 0 0 auto;
    margin: 0;
  }
  .header-actions #header-pdf-btn {
    height: 44px;
    padding: 0 9px;
    font-size: 11.5px;
    font-weight: 700;
    border-radius: 9px;
    background: var(--primary);
    color: #ffffff;
    border: 1px solid var(--primary);
    box-shadow: 0 2px 6px rgba(18, 101, 94, 0.16);
    white-space: nowrap;
  }
  .header-actions #header-pdf-btn .pdf-ico {
    display: none !important;
  }

  /* Mobile Left Drawer */
  .left-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 282px;
    max-width: 85vw;
    height: 100dvh;
    z-index: 220;
    border-radius: 0;
    transform: translateX(-104%);
    transition: transform 0.22s ease;
    box-shadow: 12px 0 36px rgba(15, 25, 30, 0.36);
    overflow-x: hidden !important;
  }
  .left-sidebar.open {
    transform: translateX(0);
  }
  .sidebar-close-mobile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ffffff2b;
    background: #ffffff14;
    color: #edf6f3;
    border-radius: 8px;
    padding: 0;
    width: 44px;
    height: 44px;
    font-size: 16px;
    line-height: 1;
    flex-shrink: 0;
  }
  .sidebar-backdrop.open {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(15, 25, 30, 0.48);
    z-index: 210;
  }

  /* 2. Global Anti-Overflow & Calibrated Scroll Offsets */
  button, a, input, select, textarea, [role="button"], .cert-img-wrap,
  .resume-section-card, .portfolio-work-block, #domain-explorer-anchor, #domain-detail-pane {
    scroll-margin-top: 72px !important;
  }
  code {
    display: inline-block;
    white-space: nowrap;
    max-width: 100%;
    overflow-x: auto;
    vertical-align: bottom;
  }
  pre code {
    display: inline;
    white-space: inherit;
    overflow-x: visible;
  }
  .code-line {
    display: block;
    width: fit-content;
    max-width: 100%;
    white-space: normal;
    word-break: break-word;
    margin: 4px 0;
    padding: 4px 8px;
    line-height: 1.45;
  }
  .code-tag,
  .exp-period,
  .exp-company-tag,
  .exp-scope-badge,
  .work-type-badge,
  .status-pill,
  .tech-pill {
    display: inline-block;
    white-space: nowrap !important;
    max-width: 100%;
  }
  .prio-badge {
    white-space: nowrap !important;
    flex-shrink: 0;
  }
  .status-pill {
    overflow: hidden;
    text-overflow: ellipsis;
    border-radius: 8px;
    line-height: 1.4;
    padding: 3px 9px;
  }
  .sop-chip-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
  }
  .sop-item-tag {
    width: 100%;
    font-size: 12.2px;
    padding: 4px 9px;
  }
  .proj-exp-val code,
  .exp-bullets code,
  .cap-card code,
  .problem-evidence code,
  .work-block-desc code {
    font-family: var(--font-mono);
    font-size: 12px;
    background: #f1f5f9;
    color: #1e293b;
    padding: 1px 5px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
  }

  /* Main Canvas & Section Cards */
  .main-container {
    padding: 12px 10px 48px;
  }
  .resume-sheet {
    gap: 12px;
  }
  .resume-section-card,
  .portfolio-work-block {
    padding: 16px 14px;
    border-radius: 14px;
  }
  .portfolio-work-block {
    margin-bottom: 14px;
  }
  .single-view-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 10px 12px;
    margin-bottom: 12px;
  }
  .single-view-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 7px;
    width: 100%;
  }
  .single-view-actions .btn {
    width: 100%;
    font-size: 12px;
    padding: 0 8px !important;
    white-space: nowrap !important;
  }

  /* Section Headers */
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 4px;
    padding-bottom: 10px;
    margin-bottom: 14px;
  }
  .section-title-wrap {
    width: 100%;
    gap: 8px;
  }
  .section-title {
    font-size: 18.5px;
    white-space: nowrap;
  }
  .section-subtitle {
    font-size: 12px;
    line-height: 1.4;
  }

  /* 01 Basic Info */
  .basic-info-layout {
    grid-template-columns: minmax(0, 1fr) 82px;
    grid-template-areas:
      "head photo"
      "meta meta";
    gap: 12px 10px;
    align-items: start;
  }
  .candidate-name {
    font-size: 25px;
  }
  .candidate-en {
    font-size: 14.5px;
  }
  .candidate-role-banner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    font-size: 13px;
    line-height: 1.42;
    margin-bottom: 0;
  }
  .candidate-role-banner .role-intent-label {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--ink-muted);
    margin-bottom: 1px;
  }
  .candidate-role-banner .role-intent-item {
    display: block;
    color: var(--primary);
    font-weight: 700;
  }
  .id-photo-box {
    width: 82px;
    height: 110px;
    border-radius: 8px;
    justify-self: end;
  }
  .basic-meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
    padding: 12px 13px;
  }
  .basic-meta-grid > .meta-item:nth-child(n+4) {
    grid-column: 1 / -1;
  }
  .basic-meta-grid > .meta-item:nth-child(3) {
    grid-column: 1 / -1;
  }
  .meta-value {
    font-size: 13.8px;
    flex-wrap: nowrap;
    justify-content: space-between;
  }
  .meta-value.edu-value {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 5px;
  }
  .edu-main {
    font-size: 13.8px;
    line-height: 1.38;
  }
  .edu-sub {
    font-size: 12px;
    padding: 2px 9px;
  }
  .cert-pill-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }
  .cert-pill-grid .status-pill {
    width: 100%;
    text-align: center;
    font-size: 11.6px;
    padding: 4px 6px;
  }

  /* 02 Summary & 03 Capabilities */
  .lead-paragraph {
    font-size: 14.5px;
    line-height: 1.74;
    padding: 12px 13px;
    margin-bottom: 14px;
  }
  .four-problems-grid,
  .capability-grid,
  .cert-gallery-grid,
  .domain-explorer-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 11px;
  }
  .problem-card,
  .cap-card {
    padding: 14px;
  }
  .cap-card p {
    font-size: 14.2px;
    line-height: 1.7;
  }
  .tech-stack-box {
    padding: 11px 13px;
  }
  .tech-stack-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 9px 0;
  }
  .tech-cat {
    min-width: 0;
    font-size: 13px;
    color: var(--primary);
  }
  .tech-pill {
    font-size: 12.2px;
    padding: 3px 9px;
  }

  /* 04 Work Experience: Clean Multi-Tier Mobile Header (Zero Chopped Green Role Wraps) */
  .timeline-list {
    gap: 14px;
  }
  .exp-item {
    padding: 15px 13px;
  }
  .exp-top {
    flex-direction: column;
    align-items: stretch;
    gap: 7px;
    margin-bottom: 11px;
    padding-bottom: 10px;
  }
  .exp-company {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 16.5px;
    line-height: 1.35;
  }
  .exp-head-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4px 8px;
    width: 100%;
  }
  .exp-org {
    font-size: 16px;
    font-weight: 800;
    color: var(--ink);
    line-height: 1.3;
    white-space: nowrap;
  }
  .exp-head-row .exp-period {
    font-size: 11px;
    padding: 2px 7px;
    white-space: nowrap !important;
    flex-shrink: 0;
  }
  .exp-sep,
  .exp-role-dot {
    display: none !important;
  }
  .exp-role {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
    background: #f2f9f7;
    border: 1px solid #cfe5df;
    border-radius: 8px;
    padding: 6px 10px;
  }
  .exp-role-main {
    display: block;
    font-size: 14.2px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.35;
  }
  .exp-role-focus {
    display: block;
    font-size: 12.6px;
    font-weight: 600;
    color: #365652;
    line-height: 1.4;
  }
  .exp-meta-right {
    gap: 6px;
    width: 100%;
  }
  .exp-period {
    font-size: 12px;
    padding: 2px 8px;
  }
  .exp-scope-badge {
    font-size: 11.8px;
    line-height: 1.42;
  }
  .exp-bullets {
    padding-left: 17px;
    gap: 8px;
  }
  .exp-bullets li {
    font-size: 14px;
    line-height: 1.68;
  }

  /* 05 Project Experience: High-Readability Structured Cards + Full-Width Bottom Jump Bar */
  .project-exp-list {
    gap: 14px;
  }
  .proj-exp-card {
    padding: 15px 13px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-left: 3.5px solid var(--primary);
    box-shadow: 0 1px 5px rgba(24, 36, 50, 0.03);
  }
  .proj-exp-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
  }
  .proj-exp-title {
    font-size: 16px;
    line-height: 1.42;
  }
  .proj-exp-meta {
    gap: 6px;
    width: 100%;
  }
  .exp-company-tag {
    font-size: 12px;
    padding: 2px 8px;
  }
  .proj-exp-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
  }
  .proj-exp-label {
    display: inline-flex;
    align-items: center;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--primary);
    background: var(--surface-accent);
    border: 1px solid #cde2dc;
    padding: 2px 8px;
    border-radius: 5px;
    width: fit-content;
    margin-top: 6px;
  }
  .proj-exp-label:first-child {
    margin-top: 0;
  }
  .proj-exp-val {
    font-size: 14px;
    line-height: 1.68;
    min-width: 0;
    max-width: 100%;
  }
  .proj-duty-list {
    padding-left: 17px;
    gap: 7px;
  }
  .proj-duty-list li {
    font-size: 14px;
    line-height: 1.66;
  }
  .proj-jump-footer {
    margin-top: 12px;
    padding-top: 11px;
  }
  .proj-jump-btn {
    width: 100%;
    justify-content: space-between;
    background: #f2f9f7;
    border: 1px solid #bce0d7;
    color: #0f5c55;
    font-size: 13px;
    font-weight: 700;
    padding: 0 13px;
    border-radius: 9px;
  }

  /* 06 Certificates */
  .cert-img-wrap {
    height: 176px;
  }

  /* 3. Zero-Horizontal-Scroll Stacked Mobile Card Tables (All 12 Tables) */
  .dqc-table-scroll {
    max-height: none !important;
    overflow: visible !important;
  }
  .data-table-wrap,
  #work-01 .data-table-wrap {
    overflow-x: visible !important;
    overflow-y: visible !important;
    border: none !important;
    background: transparent !important;
    border-radius: 0 !important;
    margin-top: 8px;
  }
  .data-table-wrap::before {
    display: none !important;
    content: none !important;
  }
  .data-table,
  .data-table.data-table-wide {
    display: block;
    width: 100% !important;
    min-width: 0 !important;
  }
  .data-table thead {
    display: none !important;
  }
  .data-table tbody {
    display: flex;
    flex-direction: column;
    gap: 9px;
    width: 100%;
  }
  .data-table tbody tr {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 11px 12px;
    box-shadow: 0 1px 4px rgba(24, 36, 50, 0.03);
  }
  .data-table tbody tr:hover td {
    background: transparent;
  }
  .data-table tbody td {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 6px 0 0 0;
    border-bottom: none;
    border-top: 1px dashed #edf2f5;
    font-size: 13.2px;
    line-height: 1.55;
    min-width: 0;
    width: 100%;
  }
  .data-table tbody td:first-child {
    padding-top: 0;
    border-top: none;
  }
  .data-table tbody td.cell-head {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
  }
  .data-table tbody td[data-label]::before {
    content: attr(data-label);
    font-size: 11px;
    font-weight: 700;
    color: var(--ink-muted);
    line-height: 1.3;
  }
  .data-table tbody td.cell-head[data-label]::before {
    color: var(--primary);
  }
  .dqc-mobile-more-bar {
    margin-top: 10px;
  }
  .dqc-mobile-more-bar .btn {
    width: 100%;
    background: #f2f7f6;
    border-color: #c5ddd7;
    color: var(--primary);
    font-weight: 700;
  }

  /* 4. Portfolio Headers, Symmetric Button Grids, Segmented Tabs & Chips */
  .portfolio-intro-banner {
    padding: 16px 14px;
    margin-bottom: 14px;
    gap: 10px;
  }
  .portfolio-intro-banner h2 {
    font-size: 17.5px;
    line-height: 1.36;
  }
  .portfolio-intro-banner p {
    font-size: 13.4px;
    line-height: 1.62;
  }
  .work-block-header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding-bottom: 13px;
    margin-bottom: 14px;
  }
  .work-block-title {
    font-size: 17.5px;
    line-height: 1.38;
  }
  .work-block-desc {
    font-size: 13.8px;
    line-height: 1.66;
  }
  .work-action-group {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }
  .work-action-group > .btn {
    width: 100%;
    padding: 0 10px;
    font-size: 12.5px;
    text-align: center;
  }
  .work-action-group > .btn-primary,
  .work-action-group > :only-child,
  .work-action-group.stack-mobile > * {
    grid-column: 1 / -1;
  }
  .kpi-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 14px;
  }
  .kpi-strip > .kpi-box:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
  .kpi-box {
    padding: 10px 11px;
  }
  .kpi-num {
    font-size: 16px;
  }
  .kpi-label {
    font-size: 11.5px;
    line-height: 1.38;
  }

  /* Compact Segmented Inner Tabs (Locked 3-col / 2-col single row, never 2+1 orphan wrap) */
  .inner-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3px;
    background: #eaf0ee;
    padding: 3px;
    border-radius: 10px;
    border-bottom: none;
    margin-bottom: 14px;
  }
  .inner-tabs.tabs-2,
  .inner-tabs.tabs-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .inner-tab-btn {
    width: 100%;
    min-height: 44px;
    padding: 4px 3px;
    border: none;
    background: transparent;
    color: #465865;
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1.22;
    text-align: center;
    justify-content: center;
    border-radius: 8px;
    white-space: nowrap;
  }
  .inner-tab-btn.active {
    background: #17252c;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(23, 37, 44, 0.18);
  }

  /* Filter Bars & Chips */
  .filter-bar {
    padding: 10px 11px;
    gap: 7px;
  }
  .domain-prio-bar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }
  .domain-prio-bar > .filter-bar-title,
  .domain-prio-bar > #domain-prio-all-btn {
    grid-column: 1 / -1;
  }
  .domain-prio-bar .chip-btn {
    width: 100%;
    justify-content: center;
    border-radius: 9px;
    font-size: 12.2px;
    padding: 0 8px;
  }

  /* 5. Mobile-Native 16-Domain Interactive Architecture Map & Demand Progress Bars */
  .panorama-card {
    padding: 11px;
    margin-bottom: 16px;
  }
  .panorama-status-bar {
    display: none !important;
  }
  .mobile-panorama-map {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .mobile-pano-lineage-box {
    background: #ffffff;
    border: 1px solid #c5ddd7;
    border-left: 4px solid var(--primary);
    border-radius: 10px;
    padding: 11px 12px;
    display: flex;
    flex-direction: column;
    gap: 7px;
  }
  .mobile-pano-lineage-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
  }
  .mobile-pano-lineage-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--ink);
  }
  .mobile-pano-flow-row {
    font-size: 12.2px;
    line-height: 1.5;
    color: var(--ink-secondary);
  }
  .mobile-pano-jump-btn {
    width: 100%;
    background: var(--surface-accent);
    border: 1px solid #bce0d7;
    color: var(--primary);
    font-size: 12.5px;
    font-weight: 700;
    border-radius: 8px;
    padding: 0 10px;
  }
  .mobile-swimlane {
    border-radius: 10px;
    padding: 10px;
    border: 1px solid var(--border);
  }
  .mobile-swimlane.lane-front {
    background: #f4fbf9;
    border-color: #c5e2dc;
  }
  .mobile-swimlane.lane-mid {
    background: #fffcf5;
    border-color: #f3dca6;
  }
  .mobile-swimlane.lane-back {
    background: #f8fafc;
    border-color: #d5dee8;
  }
  .mobile-swimlane-head {
    font-size: 12.2px;
    font-weight: 800;
    margin-bottom: 8px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
  .lane-front .mobile-swimlane-head { color: #0f6b63; }
  .lane-mid .mobile-swimlane-head { color: #9a5b13; }
  .lane-back .mobile-swimlane-head { color: #334155; }
  .mobile-domain-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }
  .mobile-domain-node {
    appearance: none;
    background: #ffffff;
    border: 1px solid #d8e2e7;
    border-radius: 8px;
    padding: 8px 9px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 3px;
    cursor: pointer;
  }
  .mobile-domain-node:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
  .mobile-domain-node.is-active {
    border: 2px solid var(--primary);
    background: #eaf6f3;
    box-shadow: 0 2px 8px rgba(18, 101, 94, 0.14);
  }
  .mobile-domain-node.is-upstream {
    border-color: #2563eb;
    background: #f0f6ff;
  }
  .mobile-domain-node.is-downstream {
    border-color: #0d9488;
    background: #f0fdfa;
  }
  .m-node-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    width: 100%;
  }
  .m-node-name {
    font-size: 13px;
    font-weight: 800;
    color: var(--ink);
  }
  .m-node-sub {
    font-size: 11px;
    color: var(--ink-muted);
    line-height: 1.35;
  }
  .m-node-meta {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
  }
  .mobile-source-dock {
    background: #132229;
    color: #edf6f3;
    border-radius: 10px;
    padding: 10px 11px;
  }
  .mobile-source-dock-title {
    font-size: 11.5px;
    font-weight: 700;
    color: #7ce2d4;
    margin-bottom: 7px;
  }
  .mobile-source-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
  }
  .mobile-source-pills span {
    font-size: 11px;
    font-weight: 600;
    background: #1f343d;
    border: 1px solid #33505c;
    color: #e2f1ee;
    padding: 2px 8px;
    border-radius: 5px;
  }
  .mobile-vector-toggle-bar {
    margin-top: 8px;
  }
  .mobile-vector-toggle-bar .btn {
    width: 100%;
    font-size: 12.2px;
    background: #ffffff;
  }
  #work01-vector-svg-wrap {
    display: none;
    margin-top: 8px;
    padding: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  #work01-vector-svg-wrap.mobile-expanded {
    display: block;
  }
  #work01-vector-svg-wrap svg {
    min-width: 660px !important;
    width: 660px !important;
    max-width: none !important;
    height: auto !important;
  }
  #work01-demand-svg-wrap {
    display: none !important;
  }
  .mobile-demand-bars {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 14px;
    display: flex;
    flex-direction: column;
    gap: 9px;
  }
  .mobile-demand-head {
    font-size: 13px;
    font-weight: 800;
    color: var(--ink);
    padding-bottom: 6px;
    border-bottom: 1px solid #edf2f5;
  }
  .mobile-demand-row {
    display: flex;
    flex-direction: column;
    gap: 3px;
  }
  .mobile-demand-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    font-size: 12.5px;
  }
  .mobile-demand-cnt {
    font-family: var(--font-mono);
    font-size: 11.5px;
    font-weight: 700;
    color: var(--primary);
  }
  .mobile-demand-track {
    height: 7px;
    background: #eef2f6;
    border-radius: 999px;
    overflow: hidden;
  }
  .mobile-demand-fill {
    height: 100%;
    border-radius: 999px;
  }
  .mobile-demand-fill.tone-p0 { background: #0f766e; }
  .mobile-demand-fill.tone-p1 { background: #2563eb; }
  .mobile-demand-fill.tone-p3 { background: #64748b; }
  .mobile-demand-meta {
    font-size: 11px;
    color: var(--ink-muted);
  }

  /* 6. Mobile Vertical Step-Flow Architecture Cards (Work 03 / 06 / 07) */
  .mobile-arch-flow {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 8px 0 12px;
  }
  .arch-step-card {
    background: #ffffff;
    border: 1px solid #d5e0e5;
    border-left: 3.5px solid var(--primary);
    border-radius: 9px;
    padding: 10px 12px;
  }
  .arch-step-card strong {
    display: block;
    font-size: 13px;
    color: var(--ink);
    margin-bottom: 3px;
  }
  .arch-step-card span {
    display: block;
    font-size: 12.2px;
    color: var(--ink-secondary);
    line-height: 1.52;
  }
  .arch-step-arrow {
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
  }

  /* Domain Explorer & Code Blocks on Mobile */
  #work-01 .domain-explorer-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  #work-01 .domain-selector-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }
  .stage-flow-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  .stage-pill {
    flex: none;
  }
  .portfolio-work-block div[style*="grid-template-columns"],
  .domain-detail-pane div[style*="grid-template-columns"] {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .search-input,
  .select-input {
    min-width: 0;
    width: 100%;
  }
  .domain-detail-pane {
    padding: 13px 12px;
  }
  pre.code-block {
    font-size: 11.5px;
    padding: 11px 12px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
    overflow-x: hidden;
  }

  /* H01 Mobile Accessibility Contract: >=44x44px touch targets & >=16px form font */
  button,
  a[href],
  .btn,
  .chip-btn,
  .inner-tab-btn,
  .copy-chip,
  input:not([type="hidden"]),
  select,
  textarea,
  [role="button"] {
    min-height: 44px !important;
    min-width: 44px !important;
  }
  .search-input,
  .select-input,
  input:not([type="checkbox"]):not([type="radio"]),
  select,
  textarea {
    font-size: 16px !important;
  }
  .copy-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    flex-shrink: 0;
  }
}

@media (max-width: 380px) {
  .stage-topbar-inner {
    padding: 6px 6px;
    gap: 4px;
  }
  .mobile-drawer-btn {
    padding: 0 7px;
    font-size: 12px;
  }
  .header-actions #header-pdf-btn {
    padding: 0 7px;
    font-size: 11px;
  }
  .primary-tab {
    font-size: 12.5px;
  }
  .kpi-num {
    font-size: 14.8px;
  }
}

/* ===== 5-Work Portfolio Refactor Components (Work 01–05) ===== */
.tradeoff-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.tradeoff-card {
  padding: 14px 15px;
  background: #fbfdfc;
  border: 1px solid var(--border);
  border-left: 3.5px solid var(--primary);
  border-radius: 10px;
}
.tradeoff-card h4 {
  margin: 4px 0 6px;
  font-size: 14.5px;
  color: var(--ink);
  line-height: 1.4;
}
.tradeoff-card p {
  margin: 0;
  font-size: 13px;
  color: var(--ink-secondary);
  line-height: 1.62;
}

/* Work 01 Plan A: Boundary Note, Standard Anatomy, 7-Layer Strip & Role Delivery Flow */
.arch-note-bar {
  margin-top: 12px;
  padding: 10px 14px;
  background: #f4faf8;
  border: 1px solid #cce3dc;
  border-left: 3.5px solid var(--primary);
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-secondary);
}
.arch-note-bar strong {
  color: var(--primary);
}
.anatomy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.anatomy-card {
  padding: 13px 14px;
  background: #fbfdfc;
  border: 1px solid var(--border);
  border-top: 3px solid var(--primary);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
#work01-tab-standards .data-table td code,
#work01-tab-delivery .data-table td code {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  background: #f0f7f5;
  color: var(--primary);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 12.2px;
}
.abbr-hint-bar {
  font-size: 12.5px;
  color: var(--ink-secondary);
  background: #f4faf8;
  border: 1px dashed #b9dcd3;
  border-radius: 7px;
  padding: 7px 11px;
  margin-bottom: 10px;
  line-height: 1.5;
}
.abbr-hint-bar strong {
  color: var(--primary);
}
.abbr-sep {
  color: #94a3b8;
  margin: 0 2px;
  font-size: 12px;
  user-select: none;
}
.abbr-tip {
  cursor: help;
  border-bottom: 1.5px dashed rgba(15, 118, 110, 0.6);
  border-radius: 4px;
  transition: background-color 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}
.layer-pill-item strong.abbr-tip {
  display: inline-block;
  align-self: flex-start;
  padding: 0 3px;
}
.abbr-tip:hover,
.abbr-tip:focus-visible,
.abbr-tip.abbr-tip-active {
  background: #0f766e !important;
  color: #ffffff !important;
  border-bottom-color: transparent;
  outline: none;
}
.abbr-floating-tip {
  position: fixed;
  top: -9999px;
  left: -9999px;
  z-index: 1200;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.14s ease, transform 0.14s ease;
  background: #0f172a;
  color: #f8fafc;
  border: 1px solid rgba(94, 234, 212, 0.35);
  border-top: 2.5px solid #2dd4bf;
  border-radius: 9px;
  padding: 9px 12px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.32);
  max-width: min(310px, calc(100vw - 24px));
  font-size: 12.5px;
  line-height: 1.5;
}
.abbr-floating-tip.open {
  opacity: 1;
  transform: translateY(0);
}
.abbr-tip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.abbr-tip-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
  font-weight: 700;
  color: #ffffff;
  background: rgba(45, 212, 191, 0.18);
  padding: 1px 6px;
  border-radius: 4px;
  word-break: break-all;
}
.abbr-tip-cat {
  font-size: 10.5px;
  font-weight: 600;
  color: #94a3b8;
  white-space: nowrap;
}
.abbr-tip-en {
  font-size: 11.5px;
  color: #5eead4;
  font-weight: 600;
  margin-bottom: 2px;
  word-break: break-word;
}
.abbr-tip-zh {
  font-size: 12.5px;
  color: #f1f5f9;
}
.anatomy-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 12.5px;
  font-weight: 700;
  color: #0f172a;
  background: #f1f5f9;
  border: 1px solid #dbe4ee;
  border-radius: 6px;
  padding: 7px 10px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.anatomy-tokens {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.anatomy-token {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f8fafc;
  border: 1px solid #d5e1ea;
  border-radius: 6px;
  padding: 3px 7px;
  font-size: 11.5px;
  line-height: 1.35;
  max-width: 100%;
}
.anatomy-token code {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--primary);
  background: transparent;
  padding: 0;
  border: 0;
}
.anatomy-token em {
  font-style: normal;
  color: var(--ink-secondary);
}
.layer-strip-card {
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 13px;
  margin-bottom: 14px;
}
.layer-strip-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}
.layer-pill-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 7px;
}
.layer-pill-item {
  background: #ffffff;
  border: 1px solid #d7e3ea;
  border-radius: 7px;
  padding: 7px 8px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.layer-pill-item strong {
  font-size: 12px;
  color: var(--primary);
  letter-spacing: 0.3px;
}
.layer-pill-item span {
  font-size: 11.5px;
  color: var(--ink-secondary);
  line-height: 1.42;
}
.delivery-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}
.delivery-step-pill {
  background: var(--surface-accent);
  border: 1px solid #c5ddd7;
  border-radius: 8px;
  padding: 9px 11px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.delivery-step-role {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.2px;
}
.delivery-step-pill strong {
  color: var(--ink);
  font-size: 13.5px;
}
.delivery-step-pill span {
  font-size: 12px;
  color: var(--ink-secondary);
  line-height: 1.5;
}

.compliance-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #f0f9f7;
  border: 1px solid #b5dcd3;
  border-left: 4px solid var(--primary);
  border-radius: 10px;
  padding: 11px 14px;
  margin-bottom: 16px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ink-secondary);
}
.compliance-banner strong {
  color: var(--primary);
}
.compliance-ico {
  font-size: 16px;
  line-height: 1.4;
  flex-shrink: 0;
}

.compass-mobile-bar {
  display: none;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
  padding: 10px 12px;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.compass-sim-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.compass-tree-pane {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-subtle);
  overflow: hidden;
}
.compass-tree-head {
  padding: 12px;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.compass-tree-head strong {
  font-size: 13.5px;
  color: var(--ink);
}
.compass-tree-head .search-input {
  min-width: 0;
  width: 100%;
  font-size: 12.5px;
  padding: 6px 10px;
}
.compass-tree-list {
  max-height: 520px;
  overflow-y: auto;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.compass-tree-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  text-align: left;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 8px;
  padding: 7px 9px;
  cursor: pointer;
  color: var(--ink-secondary);
  font-size: 13px;
  line-height: 1.35;
  transition: all 0.14s ease;
}
.compass-tree-item:hover {
  background: #ffffff;
  border-color: var(--border);
  color: var(--ink);
}
.compass-tree-item.active {
  background: var(--surface-accent);
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 700;
}
.compass-tree-item.depth-1 {
  font-weight: 700;
  color: var(--ink);
}
.compass-tree-item.depth-2 {
  padding-left: 16px;
  font-weight: 600;
}
.compass-tree-item.depth-3 {
  padding-left: 28px;
  font-size: 12.5px;
}
.compass-tree-idx {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
  min-width: 32px;
  flex-shrink: 0;
}
.compass-tree-item.active .compass-tree-idx {
  color: var(--primary);
  font-weight: 700;
}
.compass-tree-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compass-stage-pane {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #ffffff;
  padding: 18px 20px;
  min-width: 0;
}
.compass-stage-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 10px;
}
.compass-stage-crumb {
  font-size: 12px;
  color: var(--ink-muted);
  margin-bottom: 3px;
}
.compass-stage-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
}
.compass-stage-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.compass-stage-role {
  font-size: 13px;
  color: var(--ink-muted);
  margin-bottom: 6px;
}
.compass-stage-role strong {
  color: var(--ink);
}
.compass-stage-summary {
  margin: 0 0 12px;
  font-size: 13.8px;
  color: var(--ink-secondary);
  line-height: 1.65;
}
.compass-formula-box {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 12.8px;
  color: var(--ink-secondary);
  line-height: 1.6;
  margin-bottom: 14px;
}
.compass-formula-box strong {
  color: var(--primary);
}
.compass-sim-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.compass-sim-kpi {
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 11px 12px;
}
.compass-sim-kpi-lbl {
  font-size: 11.8px;
  color: var(--ink-muted);
  font-weight: 600;
}
.compass-sim-kpi-val {
  font-family: var(--font-mono);
  font-size: 19px;
  font-weight: 800;
  color: var(--ink);
  margin: 3px 0 5px;
  line-height: 1.2;
}
.compass-bars-box {
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 12px 14px;
  background: #fafcfb;
  margin-bottom: 12px;
}
.compass-bars-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
  font-size: 13.5px;
}
.compass-bar-row {
  margin-bottom: 9px;
}
.compass-bar-row:last-child {
  margin-bottom: 0;
}
.compass-bar-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12.8px;
  margin-bottom: 4px;
  color: var(--ink-secondary);
}
.compass-bar-top strong {
  color: var(--ink);
}
.compass-bar-track {
  height: 8px;
  border-radius: 999px;
  background: #e5ecea;
  overflow: hidden;
}
.compass-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.25s ease;
}
.compass-action-box {
  background: #f0f9f7;
  border-left: 3.5px solid var(--primary);
  border-radius: 0 8px 8px 0;
  padding: 9px 12px;
  font-size: 13.2px;
  color: var(--ink-secondary);
  line-height: 1.6;
}
.compass-action-box strong {
  color: var(--primary);
}

.work02-arch-grid,
.work03-sys-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
#work02-tab-arch .work02-arch-grid {
  grid-template-columns: minmax(0, 1fr);
}
.work02-arch-grid > div,
.work03-sys-grid > div {
  min-width: 0;
}
#work-03 .kpi-num {
  font-size: 18.5px;
}

.auto-pipeline-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.auto-step-card {
  border: 1px solid var(--border);
  border-top: 3.5px solid var(--primary);
  border-radius: 10px;
  background: var(--surface-subtle);
  padding: 13px 14px;
}
.auto-step-card.auto-tone-blue { border-top-color: var(--blue); }
.auto-step-card.auto-tone-amber { border-top-color: var(--amber); }
.auto-step-card.auto-tone-purple { border-top-color: var(--purple); }
.auto-step-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}
.auto-step-card.auto-tone-blue .auto-step-tag { color: var(--blue); }
.auto-step-card.auto-tone-amber .auto-step-tag { color: var(--amber); }
.auto-step-card.auto-tone-purple .auto-step-tag { color: var(--purple); }
.auto-step-card h4 {
  margin: 0 0 6px;
  font-size: 14.2px;
  color: var(--ink);
  line-height: 1.38;
}
.auto-step-card p {
  margin: 0;
  font-size: 12.8px;
  color: var(--ink-secondary);
  line-height: 1.58;
}

.sys-layer-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sys-layer-item {
  border: 1px solid var(--border);
  border-left: 3.5px solid var(--primary);
  border-radius: 8px;
  padding: 11px 12px;
  background: var(--surface-subtle);
}
.sys-layer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 5px;
  font-size: 13.5px;
}
.sys-tech-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--primary);
  background: var(--surface-accent);
  border: 1px solid #c5ddd7;
  padding: 2px 8px;
  border-radius: 6px;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: break-word;
  max-width: 100%;
  line-height: 1.45;
}
.sys-layer-item p {
  margin: 0;
  font-size: 13px;
  color: var(--ink-secondary);
  line-height: 1.6;
}
.sample-note-bar {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-left: 3.5px solid var(--blue);
  border-radius: 8px;
  padding: 10px 13px;
  margin-bottom: 12px;
  font-size: 13.2px;
  color: var(--ink-secondary);
  line-height: 1.62;
}

.feige-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 16px;
  margin-bottom: 18px;
  align-items: start;
}
.feige-hero-grid.no-video {
  grid-template-columns: minmax(0, 1fr);
}
.feige-video-card,
.feige-flow-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 15px 16px;
  background: var(--surface-subtle);
}
.feige-video-el {
  width: 100%;
  max-height: 360px;
  border-radius: 8px;
  background: #0f172a;
  display: block;
}
.feige-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.feige-hero-grid:not(.no-video) .feige-steps-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.feige-step-box {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
}
.feige-step-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 3px;
}
.feige-step-box strong {
  display: block;
  font-size: 13.5px;
  color: var(--ink);
  margin-bottom: 4px;
}
.feige-step-box p {
  margin: 0;
  font-size: 12.5px;
  color: var(--ink-secondary);
  line-height: 1.56;
}
.roi-callout-box {
  background: #fffbeb;
  border: 1px solid #f0d7a7;
  border-left: 4px solid var(--amber);
  border-radius: 8px;
  padding: 10px 13px;
  font-size: 13.3px;
  color: var(--ink-secondary);
  line-height: 1.65;
}
.roi-callout-box strong {
  color: #92400e;
}
.sub-block-divider {
  padding: 12px 0 8px;
  border-top: 1px dashed var(--border-strong);
  margin-top: 4px;
  margin-bottom: 8px;
}
.sub-block-divider strong {
  font-size: 15px;
  color: var(--ink);
}
.rag-footer-card {
  margin-top: 16px;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  border-left: 4px solid var(--blue);
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 13.3px;
  color: var(--ink-secondary);
  line-height: 1.65;
}
.rag-footer-card strong {
  color: var(--ink);
}

.intent-callout-box {
  background: linear-gradient(135deg, #f0f9f7 0%, #f5f9fc 100%);
  border: 1px solid #b5dcd3;
  border-left: 4px solid var(--primary);
  border-radius: 10px;
  padding: 12px 15px;
  margin-bottom: 16px;
  font-size: 13.8px;
  color: var(--ink-secondary);
  line-height: 1.7;
}
.intent-callout-box strong {
  color: var(--ink);
}
.reuse-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.reuse-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-subtle);
  padding: 13px 14px;
}
.reuse-card h4 {
  margin: 4px 0 6px;
  font-size: 14.2px;
  color: var(--ink);
  line-height: 1.38;
}
.reuse-card p {
  margin: 0;
  font-size: 12.8px;
  color: var(--ink-secondary);
  line-height: 1.58;
}

@media (max-width: 1120px) {
  .auto-pipeline-grid,
  .reuse-grid,
  .feige-steps-grid,
  .delivery-steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tradeoff-grid,
  .anatomy-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
  .layer-pill-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .work02-arch-grid,
  .work03-sys-grid,
  .feige-hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 860px) {
  .compass-mobile-bar {
    display: flex;
  }
  .compass-sim-shell {
    grid-template-columns: minmax(0, 1fr);
  }
  .compass-tree-pane {
    display: none;
  }
  .compass-stage-pane {
    padding: 13px 12px;
  }
  .auto-pipeline-grid,
  .reuse-grid,
  .feige-steps-grid,
  .delivery-steps-grid,
  .feige-hero-grid:not(.no-video) .feige-steps-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .layer-pill-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .compass-sim-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .compass-sim-kpi-val {
    font-size: 16px;
  }
}

@media print {
  .stage-topbar, .left-sidebar, .sidebar-backdrop, .header-actions, .copy-chip, .mobile-drawer-btn {
    display: none !important;
  }
  body {
    background: #ffffff;
    font-size: 11pt;
  }
  .app-shell, .main-stage, .main-container {
    display: block;
    max-width: none;
    padding: 0;
  }
  .resume-section-card {
    box-shadow: none;
    border: 1px solid #cbd5e1;
    page-break-inside: avoid;
    margin-bottom: 14px;
    padding: 18px;
  }
}
