:root {
  --icv-navy: #102d46;
  --icv-navy-deep: #0b2033;
  --icv-teal: #0f766e;
  --icv-teal-soft: #e6f4f1;
  --icv-amber: #d97706;
  --icv-bg: #f3f6fa;
  --icv-surface: #ffffff;
  --icv-ink: #0f172a;
  --icv-muted: #475569;
  --icv-subtle: #64748b;
  --icv-border: #d9e2ec;
  --icv-border-strong: #94a3b8;
  --icv-danger: #b91c1c;
  --icv-radius: 14px;
  --icv-shadow: 0 10px 28px rgba(16, 45, 70, 0.06);
  --icv-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", sans-serif;
}

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

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body.icv-body {
  margin: 0;
  font-family: var(--icv-font);
  color: var(--icv-ink);
  background: var(--icv-bg);
  line-height: 1.5;
  overflow-x: clip;
}

.icv-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--icv-navy);
  color: #fff;
  padding: 10px 14px;
  z-index: 999;
}

.icv-skip:focus {
  left: 12px;
  top: 12px;
  border-radius: 8px;
}

.icv-container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Top bar */
.icv-topbar {
  background: var(--icv-surface);
  border-bottom: 1px solid var(--icv-border);
}

.icv-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.icv-brand-row {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.icv-brand img {
  display: block;
  height: 40px;
  width: auto;
}

.icv-brand-divider {
  width: 1px;
  height: 30px;
  background: var(--icv-border);
}

.icv-brand-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.icv-kicker {
  font-size: 12px;
  color: var(--icv-teal);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.icv-topbar-title {
  font-size: 15px;
  color: var(--icv-navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.icv-top-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}

.icv-top-links a {
  color: var(--icv-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.icv-top-links a:hover {
  color: var(--icv-navy);
}

/* Hero strip */
.icv-hero {
  background: linear-gradient(135deg, var(--icv-navy) 0%, #154061 60%, #12565c 100%);
  color: #fff;
  padding: 26px 0 28px;
}

.icv-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.9fr);
  gap: 24px;
  align-items: center;
}

.icv-pill {
  display: inline-flex;
  align-items: center;
  margin: 0 0 10px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.icv-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.icv-lead {
  margin: 0;
  max-width: 680px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
}

.icv-hero-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--icv-radius);
  padding: 16px 18px;
  backdrop-filter: blur(6px);
}

.icv-progress-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  font-size: 14px;
  margin-bottom: 8px;
}

.icv-progress-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  overflow: hidden;
  margin-bottom: 10px;
}

.icv-progress-track span {
  display: block;
  height: 100%;
  width: 0%;
  background: #34d399;
  border-radius: 999px;
  transition: width 0.25s ease;
}

.icv-draft-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.86);
  margin-bottom: 12px;
}

.icv-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  flex-shrink: 0;
}

.icv-hero-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.icv-hero .icv-btn-ghost {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.24);
}

.icv-hero .icv-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.24);
}

/* Sticky Toolbar */
.icv-toolbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--icv-border);
}

.icv-toolbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  padding-bottom: 10px;
  flex-wrap: wrap;
}

.icv-mode-tabs {
  display: inline-flex;
  background: #eaf0f6;
  padding: 4px;
  border-radius: 10px;
  gap: 4px;
}

.icv-mode-btn {
  border: 0;
  background: transparent;
  color: var(--icv-muted);
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.icv-mode-btn.is-active {
  background: var(--icv-surface);
  color: var(--icv-navy);
  box-shadow: 0 2px 6px rgba(16, 45, 70, 0.1);
}

.icv-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Buttons */
.icv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 15px;
  border-radius: 10px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.icv-btn:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.35);
  outline-offset: 2px;
}

.icv-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.icv-btn-sm {
  min-height: 34px;
  padding: 0 12px;
  font-size: 13px;
}

.icv-btn-primary {
  background: var(--icv-teal);
  color: #fff;
}

.icv-btn-primary:hover {
  background: #0d5f59;
}

.icv-btn-outline {
  background: var(--icv-surface);
  color: var(--icv-navy);
  border-color: var(--icv-border-strong);
}

.icv-btn-outline:hover {
  border-color: var(--icv-navy);
  background: #f8fafc;
}

.icv-btn-ghost {
  background: transparent;
  color: var(--icv-muted);
  border-color: var(--icv-border);
}

.icv-btn-ghost:hover {
  background: #f1f5f9;
  color: var(--icv-ink);
}

.icv-link-btn {
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--icv-teal);
  cursor: pointer;
}

.icv-link-btn:hover {
  text-decoration: underline;
}

/* Feedback & Receipt */
.icv-feedback {
  margin-top: 16px;
  padding: 13px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #991b1b;
  scroll-margin-top: 84px;
}

.icv-feedback.is-info {
  border-color: #99f6e4;
  background: #f0fdfa;
  color: #115e59;
}

.icv-receipt {
  margin-top: 16px;
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: var(--icv-radius);
  padding: 18px 20px;
  scroll-margin-top: 84px;
}

.icv-receipt-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.icv-receipt-kicker {
  margin: 0 0 2px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: #166534;
}

.icv-receipt h2 {
  margin: 0 0 4px;
  font-size: 19px;
  color: #14532d;
}

.icv-receipt-meta {
  margin: 0;
  font-size: 14px;
  color: #166534;
}

.icv-receipt-code-box {
  background: #fff;
  border: 1px solid #86efac;
  border-radius: 10px;
  padding: 10px 16px;
  text-align: center;
}

.icv-receipt-code-box span {
  display: block;
  font-size: 11.5px;
  color: var(--icv-muted);
}

.icv-receipt-code-box strong {
  font-size: 18px;
  color: var(--icv-navy);
  letter-spacing: 0.03em;
}

.icv-receipt-actions {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Workspace layout */
.icv-workspace {
  display: grid;
  grid-template-columns: 224px minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 20px;
  padding-top: 22px;
  padding-bottom: 44px;
  align-items: start;
}

body[data-mode="form"] .icv-workspace {
  grid-template-columns: 224px minmax(0, 1fr);
}

body[data-mode="form"] .icv-preview-pane {
  display: none;
}

body[data-mode="preview"] .icv-workspace {
  grid-template-columns: minmax(0, 1fr);
}

body[data-mode="preview"] .icv-rail,
body[data-mode="preview"] .icv-form-pane {
  display: none;
}

body[data-mode="preview"] .icv-preview-pane {
  max-width: 920px;
  width: 100%;
  margin: 0 auto;
}

/* Left section rail */
.icv-rail-sticky {
  position: sticky;
  top: 76px;
  background: var(--icv-surface);
  border: 1px solid var(--icv-border);
  border-radius: var(--icv-radius);
  padding: 14px;
  box-shadow: var(--icv-shadow);
}

.icv-rail-title {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--icv-subtle);
}

.icv-step-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.icv-step-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--icv-ink);
  transition: background 0.15s ease;
}

.icv-step-list a:hover {
  background: #f1f5f9;
}

.icv-step-num {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: #e2e8f0;
  color: var(--icv-navy);
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icv-step-list a.is-done .icv-step-num {
  background: var(--icv-teal);
  color: #fff;
}

.icv-step-txt {
  display: flex;
  flex-direction: column;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
}

.icv-step-txt small {
  font-size: 11px;
  font-weight: 400;
  color: var(--icv-subtle);
}

/* Form cards */
.icv-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.icv-card {
  background: var(--icv-surface);
  border: 1px solid var(--icv-border);
  border-radius: var(--icv-radius);
  padding: 20px;
  margin-bottom: 18px;
  box-shadow: var(--icv-shadow);
  scroll-margin-top: 84px;
}

.icv-card-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid #edf2f7;
}

.icv-sec-badge {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--icv-navy);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icv-card-head h2 {
  margin: 0 0 3px;
  font-size: 17px;
  color: var(--icv-navy);
  line-height: 1.3;
}

.icv-card-head p {
  margin: 0;
  font-size: 13.5px;
  color: var(--icv-muted);
}

.icv-jp {
  font-weight: 400;
  font-size: 12px;
  color: var(--icv-subtle);
}

.icv-req {
  color: var(--icv-danger);
}

/* Grids & fields */
.icv-personal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 172px;
  gap: 18px;
  align-items: start;
}

.icv-personal-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.icv-grid {
  display: grid;
  gap: 12px;
}

.icv-grid-1 { grid-template-columns: minmax(0, 1fr); }
.icv-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.icv-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.icv-grid-dob { grid-template-columns: minmax(156px, 1.3fr) minmax(86px, 0.72fr) minmax(136px, 1.05fr); }
.icv-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.icv-mt-12 { margin-top: 12px; }
.icv-choice-grid { margin-top: 14px; }

.icv-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.icv-field label,
.icv-label-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--icv-ink);
}

.icv-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.icv-field input[type="text"],
.icv-field input[type="tel"],
.icv-field input[type="email"],
.icv-field input[type="date"],
.icv-field input[type="number"],
.icv-field select,
.icv-field textarea {
  width: 100%;
  min-height: 40px;
  padding: 8px 11px;
  border: 1px solid var(--icv-border-strong);
  border-radius: 10px;
  background: #fff;
  color: var(--icv-ink);
  font: inherit;
  font-size: 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.icv-field textarea {
  resize: vertical;
  min-height: 82px;
}

.icv-field input[readonly] {
  background: #f8fafc;
  color: var(--icv-muted);
}

.icv-field input:focus,
.icv-field select:focus,
.icv-field textarea:focus {
  outline: none;
  border-color: var(--icv-teal);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.14);
}

.icv-field input.is-invalid {
  border-color: var(--icv-danger);
  box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.12);
}

/* Radio pills */
.icv-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.icv-pill-opt {
  position: relative;
  display: inline-flex;
  cursor: pointer;
}

.icv-pill-opt input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.icv-pill-opt span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 5px 10px;
  border: 1px solid var(--icv-border-strong);
  border-radius: 9px;
  background: #fff;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--icv-muted);
  transition: all 0.15s ease;
}

.icv-pill-opt input:checked + span {
  background: var(--icv-teal-soft);
  border-color: var(--icv-teal);
  color: #0b4f4a;
  font-weight: 600;
}

.icv-pill-opt input:focus-visible + span {
  outline: 3px solid rgba(15, 118, 110, 0.35);
  outline-offset: 1px;
}

/* Photo uploader */
.icv-photo-card {
  background: #f8fafc;
  border: 1px solid var(--icv-border);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
}

.icv-photo-preview {
  width: 120px;
  height: 160px;
  margin: 0 auto 10px;
  border-radius: 8px;
  border: 1.5px dashed var(--icv-border-strong);
  background: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icv-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.icv-photo-placeholder {
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: var(--icv-subtle);
  font-size: 12px;
}

.icv-photo-placeholder strong {
  color: var(--icv-navy);
  font-size: 13.5px;
}

.icv-photo-actions {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.icv-hint {
  margin: 8px 0 0;
  font-size: 11.5px;
  color: var(--icv-subtle);
  line-height: 1.35;
}

/* Subblocks & repeating rows */
.icv-subblock + .icv-subblock {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #edf2f7;
}

.icv-subblock h3 {
  margin: 0 0 12px;
  font-size: 14.5px;
  color: var(--icv-navy);
}

.icv-subpanel {
  margin-top: 12px;
  padding: 14px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid var(--icv-border);
}

.icv-inline-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.icv-repeat-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
}

.icv-repeat-row {
  background: #f8fafc;
  border: 1px solid var(--icv-border);
  border-radius: 12px;
  padding: 12px;
}

.icv-repeat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--icv-navy);
}

.icv-remove-row {
  border: 0;
  background: transparent;
  color: var(--icv-danger);
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 6px;
}

.icv-remove-row:hover {
  background: #fee2e2;
}

.icv-submit-card {
  background: var(--icv-navy);
  color: #fff;
  border-radius: var(--icv-radius);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.icv-submit-card strong {
  display: block;
  font-size: 16px;
  margin-bottom: 2px;
}

.icv-submit-card p {
  margin: 0;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.84);
}

.icv-submit-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.icv-submit-card .icv-btn-outline {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.32);
}

.icv-submit-card .icv-btn-outline:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* Live A4 Preview Pane */
.icv-preview-pane {
  position: sticky;
  top: 76px;
}

.icv-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--icv-surface);
  border: 1px solid var(--icv-border);
  border-bottom: 0;
  border-radius: var(--icv-radius) var(--icv-radius) 0 0;
  padding: 12px 14px;
}

.icv-preview-header strong {
  display: block;
  font-size: 14px;
  color: var(--icv-navy);
}

.icv-preview-header span {
  font-size: 12px;
  color: var(--icv-subtle);
}

.icv-preview-quick {
  display: flex;
  gap: 6px;
}

.icv-a4-wrap {
  background: #dde5ee;
  border: 1px solid var(--icv-border);
  border-radius: 0 0 var(--icv-radius) var(--icv-radius);
  padding: 14px;
  max-height: calc(100vh - 150px);
  overflow-y: auto;
}

body[data-mode="preview"] .icv-a4-wrap {
  max-height: none;
  padding: 20px;
}

/* Official Bilingual A4 Document Styles */
.icv-a4-doc {
  background: #fff;
  color: #111827;
  padding: 18px 20px;
  border: 1px solid #cbd5e1;
  box-shadow: 0 6px 22px rgba(15, 23, 42, 0.08);
  font-size: 11px;
  line-height: 1.38;
}

.icv-a4-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 2px solid var(--icv-navy);
}

.icv-a4-head h2 {
  margin: 0;
  font-size: 17px;
  color: var(--icv-navy);
  letter-spacing: 0.03em;
}

.icv-a4-head h2 span {
  font-weight: 500;
  margin-left: 8px;
  font-size: 14px;
  color: #334155;
}

.icv-a4-head p {
  margin: 2px 0 0;
  font-size: 10px;
  color: #475569;
}

.icv-a4-brand {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--icv-navy);
  border: 1.5px solid var(--icv-navy);
  padding: 3px 8px;
  border-radius: 4px;
}

.icv-sec-title {
  margin: 9px 0 4px;
  padding: 4px 8px;
  background: #e7f0f7;
  border-left: 3px solid var(--icv-navy);
  font-weight: 700;
  font-size: 11px;
  color: var(--icv-navy);
}

.icv-personal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  gap: 8px;
  align-items: stretch;
}

.icv-photo-frame {
  border: 1px solid #64748b;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 10px;
  color: #64748b;
  overflow: hidden;
  min-height: 128px;
}

.icv-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.icv-tbl {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.icv-tbl th,
.icv-tbl td {
  border: 1px solid #94a3b8;
  padding: 4px 6px;
  vertical-align: middle;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

.icv-tbl th {
  background: #f4f7fb;
  font-weight: 700;
  color: #1e293b;
  text-align: left;
  font-size: 10px;
}

.icv-tbl-personal th {
  width: 26%;
}

.icv-tbl-8 th,
.icv-tbl-8 td {
  text-align: center;
  padding: 4px 3px;
  font-size: 9.8px;
}

.icv-tbl-8 th small {
  font-weight: 400;
  color: #475569;
  font-size: 8.8px;
}

.icv-mt {
  margin-top: 4px;
}

.icv-c {
  text-align: center;
}

.icv-pre {
  white-space: pre-wrap;
}

.icv-prose-box {
  border: 1px solid #94a3b8;
  padding: 6px 8px;
  min-height: 36px;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

.icv-w-8 { width: 8%; }
.icv-w-11 { width: 11%; }
.icv-w-12 { width: 12%; }
.icv-w-14 { width: 14%; }
.icv-w-16 { width: 16%; }
.icv-w-18 { width: 18%; }
.icv-w-20 { width: 20%; }
.icv-w-22 { width: 22%; }
.icv-w-24 { width: 24%; }
.icv-w-26 { width: 26%; }
.icv-w-28 { width: 28%; }
.icv-w-30 { width: 30%; }
.icv-w-32 { width: 32%; }
.icv-w-34 { width: 34%; }
.icv-w-36 { width: 36%; }
.icv-w-56 { width: 56%; }

/* Footer */
.icv-footer {
  border-top: 1px solid var(--icv-border);
  background: var(--icv-surface);
  padding: 18px 0;
  font-size: 13px;
  color: var(--icv-muted);
}

.icv-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.icv-footer-inner p {
  margin: 0;
}

.icv-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.icv-footer-links a {
  color: var(--icv-navy);
  text-decoration: none;
  font-weight: 500;
}

.icv-footer-links a:hover {
  text-decoration: underline;
}

/* Responsive breakpoints */
@media (max-width: 1240px) {
  [data-set-mode="split"] {
    display: none;
  }
  .icv-workspace {
    grid-template-columns: 210px minmax(0, 1fr);
  }
  body[data-mode="split"] .icv-preview-pane {
    grid-column: 1 / -1;
    position: static;
  }
  body[data-mode="split"] .icv-a4-wrap {
    max-height: none;
  }
}

@media (max-width: 960px) {
  .icv-hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }
  .icv-workspace,
  body[data-mode="form"] .icv-workspace {
    grid-template-columns: minmax(0, 1fr);
  }
  .icv-rail-sticky {
    position: static;
  }
  .icv-step-list {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 4px;
    gap: 6px;
  }
  .icv-step-list li {
    flex-shrink: 0;
  }
  .icv-step-txt small {
    display: none;
  }
  .icv-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .icv-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .icv-personal-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .icv-container {
    padding: 0 14px;
  }
  .icv-top-links {
    display: none;
  }
  .icv-brand-divider {
    display: none;
  }
  .icv-brand-copy {
    display: none;
  }
  .icv-toolbar-inner {
    gap: 8px;
  }
  .icv-mode-tabs {
    width: 100%;
    justify-content: space-between;
  }
  .icv-mode-btn {
    flex: 1;
    font-size: 12px;
    padding: 6px 6px;
  }
  .icv-toolbar-actions {
    width: 100%;
  }
  .icv-toolbar-actions .icv-btn {
    flex: 1;
    font-size: 12.5px;
    padding: 0 10px;
  }
  .icv-card {
    padding: 15px;
  }
  .icv-grid-2,
  .icv-grid-3,
  .icv-grid-dob,
  .icv-grid-4 {
    grid-template-columns: minmax(0, 1fr);
  }
  .icv-a4-wrap {
    padding: 8px;
  }
  .icv-a4-doc {
    padding: 10px;
    font-size: 10px;
  }
  .icv-personal-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .icv-photo-frame {
    width: 96px;
    height: 128px;
    margin: 0 auto;
  }
  .icv-tbl-8 {
    font-size: 8.5px;
  }
}

/* Crisp A4 Print Layout */
@page {
  size: A4 portrait;
  margin: 9mm;
}

@media print {
  body.icv-body {
    background: #fff !important;
  }
  .icv-no-print {
    display: none !important;
  }
  .icv-workspace {
    display: block !important;
    padding: 0 !important;
    max-width: none !important;
  }
  .icv-preview-pane {
    display: block !important;
    position: static !important;
    max-width: none !important;
  }
  .icv-a4-wrap {
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
    max-height: none !important;
    overflow: visible !important;
  }
  .icv-a4-doc {
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    font-size: 10.5px;
  }
  .icv-sec-title {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    break-after: avoid;
  }
  .icv-tbl th {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .icv-tbl tr {
    break-inside: avoid;
  }
}
