/* ==========================================================================
   MateraiSign — Main Stylesheet
   Theme: Buku Tulis Sinar Dunia (SiDu) Authentic Notebook Paper & Dark Workspace
   ========================================================================== */

:root {
  --bg-workspace: #0b0f19;
  --paper-bg: #fdfdfc;
  --paper-text: #0f172a;
  --paper-muted: #64748b;
  --paper-border: #cbd5e1;
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --primary-glow: rgba(59, 130, 246, 0.4);
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --pill-bg: #eff6ff;
  --pill-border: #3b82f6;
  --pill-text: #1d4ed8;
  --radius: 14px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

.hidden {
  display: none !important;
}

.btn-toggle-nav {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #f8fafc;
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-toggle-nav:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #f472b6;
  color: #fdf2f8;
  transform: translateY(-1px);
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-workspace);
  color: #f8fafc;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* ==========================================================================
   Top Workspace Header
   ========================================================================== */
header {
  background: rgba(11, 15, 25, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 14px 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #f8fafc;
}

.brand-logo {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--primary), #1e40af);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  color: white;
  box-shadow: 0 4px 12px var(--primary-glow);
}

.brand-text h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.brand-text span {
  font-size: 11px;
  color: #94a3b8;
  display: block;
  margin-top: -2px;
}

.health-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--success);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.health-dot {
  width: 7px;
  height: 7px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--success);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
}

/* Workspace Container */
main {
  flex: 1;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 32px 20px 140px;
}

/* ==========================================================================
   Buku Tulis Sinar Dunia (SiDu) Authentic Notebook Paper Canvas
   ========================================================================== */
.paper-canvas {
  background-color: var(--paper-bg);
  color: var(--paper-text);
  border-radius: 12px;
  box-shadow: 
    0 25px 60px -12px rgba(0, 0, 0, 0.65),
    0 0 1px 1px rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
  /* Horizontal blue ruled notebook lines (spaced 34px apart) + Vertical red margin line (at 68px from left) */
  background-image: 
    linear-gradient(90deg, transparent 66px, #ef4444 66px, #ef4444 68.5px, transparent 68.5px),
    linear-gradient(rgba(59, 130, 246, 0.22) 1px, transparent 1px);
  background-size: 100% 100%, 100% 34px;
  background-position: 0 0, 0 18px;
  padding: 38px 56px 64px 88px; /* Extra left padding (88px) so text sits cleanly to the right of the red margin line */
  transition: all 0.3s ease;
}

@media (max-width: 640px) {
  main { padding: 16px 10px 130px; }
  header { padding: 12px 16px; }
  .brand-text span { display: none; }
  .paper-canvas {
    /* On mobile, red line at 40px, padding-left 56px */
    background-image: 
      linear-gradient(90deg, transparent 38px, #ef4444 38px, #ef4444 40.5px, transparent 40.5px),
      linear-gradient(rgba(59, 130, 246, 0.22) 1px, transparent 1px);
    background-size: 100% 100%, 100% 34px;
    padding: 28px 16px 48px 56px;
    border-radius: 10px;
  }
}

/* Notebook Binder Punch Holes (Optional authentic detail on far left) */
.sidu-holes {
  position: absolute;
  left: 24px;
  top: 50px;
  bottom: 50px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  pointer-events: none;
}

.sidu-holes .hole {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-workspace);
  border: 1px inset rgba(0, 0, 0, 0.25);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.4);
}

@media (max-width: 640px) {
  .sidu-holes { left: 12px; }
  .sidu-holes .hole { width: 11px; height: 11px; }
}

/* Sinar Dunia (SiDu) Top Header Section */
.sidu-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

@media (max-width: 600px) {
  .sidu-header-bar {
    flex-direction: column;
    gap: 12px;
  }
}

.sidu-badge-area {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.doc-stamp {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: #f1f5f9;
  color: #475569;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

.doc-status-tag {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
}

.tag-draft { background: #dbeafe; color: #1d4ed8; }
.tag-waiting { background: #fef3c7; color: #b45309; }
.tag-completed { background: #d1fae5; color: #047857; }

/* The iconic top right No. / Date lines in Indonesian notebooks */
.sidu-date-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  color: #c2410c; /* Classic brownish red ink */
  font-weight: 600;
  min-width: 170px;
}

.sidu-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidu-row span {
  width: 48px;
}

.sidu-line {
  flex: 1;
  border-bottom: 1px solid #f97316;
  color: #1e293b;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12.5px;
  padding-left: 6px;
  font-weight: 600;
}

/* Double horizontal rule below the header */
.sidu-double-rule {
  border-bottom: 3px double #3b82f6;
  margin-bottom: 24px;
  opacity: 0.85;
}

/* ==========================================================================
   Legal Document Typography & Clauses
   ========================================================================== */
.doc-title {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 800;
  text-align: center;
  color: #0f172a;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  line-height: 1.35;
}

.doc-subtitle {
  font-size: 13px;
  text-align: center;
  color: var(--paper-muted);
  margin-bottom: 32px;
}

.clause-section {
  margin-bottom: 28px;
}

.clause-header {
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(239, 246, 255, 0.85);
  padding: 8px 12px;
  border-left: 4px solid var(--primary);
  border-radius: 0 8px 8px 0;
}

.clause-body {
  font-size: 15px;
  line-height: 1.85;
  color: #334155;
  padding-left: 4px;
}

.clause-body p {
  margin-bottom: 12px;
}

.clause-body ul {
  margin: 8px 0 12px 24px;
}

.clause-body li {
  margin-bottom: 8px;
}

/* ==========================================================================
   Inline Smart Pills (WYSIWYS System)
   ========================================================================== */
.smart-pill {
  display: inline-flex;
  align-items: center;
  background: var(--pill-bg);
  border: 1.5px dashed var(--pill-border);
  border-radius: 8px;
  padding: 4px 10px;
  color: var(--pill-text);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14.5px;
  font-weight: 600;
  outline: none;
  transition: all 0.2s ease;
  margin: 2px 3px;
  vertical-align: middle;
  max-width: 100%;
}

.smart-pill:focus {
  background: #ffffff;
  border-style: solid;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
  color: #0f172a;
}

.smart-pill::placeholder {
  color: #93c5fd;
  font-weight: 500;
}

.pill-static {
  display: inline;
  background: rgba(59, 130, 246, 0.1);
  color: #1e40af;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  border-bottom: 2px solid #3b82f6;
}

.pill-static.highlight-plate {
  background: #fef3c7;
  color: #b45309;
  border-bottom-color: #f59e0b;
  letter-spacing: 0.5px;
}

.pill-static.highlight-money {
  background: #d1fae5;
  color: #047857;
  border-bottom-color: #10b981;
}

/* ==========================================================================
   Signatures Layout on Paper
   ========================================================================== */
.sig-paper-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--paper-border);
  text-align: center;
}

@media (max-width: 500px) {
  .sig-paper-grid { grid-template-columns: 1fr; gap: 32px; }
}

.sig-party-box {
  border: 1px solid var(--paper-border);
  border-radius: 12px;
  padding: 16px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 170px;
}

.sig-party-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--paper-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.sig-stamp {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  margin: 12px 0;
}

.stamp-approved { background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; }
.stamp-waiting { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.stamp-signed { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }

.sig-img {
  max-height: 75px;
  margin: 8px 0;
}

/* Embedded Signee Action Area inside Paper (for Pihak 2) */
.signee-action-card {
  margin-top: 32px;
  background: #f8fafc;
  border: 2px dashed #3b82f6;
  border-radius: 14px;
  padding: 24px;
  text-align: center;
  display: none;
}

.ktp-box {
  margin-bottom: 20px;
  background: #ffffff;
  border: 1px solid var(--paper-border);
  padding: 16px;
  border-radius: 10px;
  text-align: left;
}

.ktp-preview {
  display: none;
  margin-top: 12px;
  background: #d1fae5;
  color: #065f46;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  align-items: center;
  gap: 8px;
}

.canvas-box {
  background: #ffffff;
  border: 2px solid #cbd5e1;
  border-radius: 10px;
  padding: 8px;
  margin-top: 12px;
}

canvas {
  background: #ffffff;
  border-radius: 6px;
  cursor: crosshair;
  touch-action: none;
  width: 100%;
  height: 200px;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.06);
}

/* ==========================================================================
   Floating Sticky Bottom Toolbar
   ========================================================================== */
.floating-toolbar {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  width: 92%;
  max-width: 720px;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 14px 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: all 0.3s ease;
}

@media (max-width: 600px) {
  .floating-toolbar {
    flex-direction: column;
    padding: 14px;
    gap: 12px;
    border-radius: 16px;
  }
}

.toolbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.toggle-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 600;
  color: #93c5fd;
  user-select: none;
}

.toggle-pill input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--primary);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: white;
  border: none;
  border-radius: 12px;
  padding: 12px 22px;
  font-weight: 700;
  font-size: 14.5px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px var(--primary-glow);
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--primary-glow);
}

.btn-success {
  background: linear-gradient(135deg, var(--success), #059669);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #f8fafc;
  box-shadow: none;
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25D366, #128C7E);
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
}

/* ==========================================================================
   Modal / Result Screen
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-card {
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 32px;
  max-width: 500px;
  width: 100%;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  animation: zoomIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes zoomIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.link-box {
  background: #0a0e17;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 12px;
  border-radius: 8px;
  font-family: monospace;
  font-size: 13px;
  color: #60a5fa;
  word-break: break-all;
  margin: 16px 0;
  user-select: all;
}

/* ==========================================================================
   Multi-Skin Paper Theme Selector & Layouts
   ========================================================================== */
.skin-selector-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: rgba(30, 41, 59, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 10px 16px;
  margin-bottom: 20px;
  backdrop-filter: blur(12px);
}

.skin-selector-label {
  font-family: 'Outfit', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  color: #f8fafc;
  display: flex;
  align-items: center;
  gap: 8px;
}

.skin-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.skin-tab {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  padding: 6px 14px;
  border-radius: 10px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.skin-tab:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.skin-tab.active {
  background: linear-gradient(135deg, var(--primary), #1e40af);
  border-color: #60a5fa;
  color: #ffffff;
  box-shadow: 0 4px 12px var(--primary-glow);
}

@media (max-width: 640px) {
  .skin-selector-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  .skin-tabs {
    width: 100%;
  }
  .skin-tab {
    flex: 1;
    justify-content: center;
    font-size: 11.5px;
    padding: 6px 8px;
  }
}

/* Base header visibility toggles per skin */
.header-skin-sidu { display: block; }
.header-skin-us-pad { display: none; }
.header-skin-pleading { display: none; }
.pleading-line-numbers { display: none; }

/* --------------------------------------------------------------------------
   SKIN 1: Buku Tulis Sinar Dunia (SiDu) — Default
   -------------------------------------------------------------------------- */
.paper-canvas.skin-sidu {
  /* Uses base .paper-canvas rules (blue ruled lines + single red margin) */
  background-color: var(--paper-bg);
  color: var(--paper-text);
}

/* --------------------------------------------------------------------------
   SKIN 2: US Attorney Yellow Legal Pad (.skin-us-legal-pad)
   -------------------------------------------------------------------------- */
.paper-canvas.skin-us-legal-pad {
  background-color: #fef9e7; /* Authentic Canary Legal Pad Yellow */
  color: #1c1917;
  /* Double Red Margin Lines (at 66px and 71.5px) + Faint blue horizontal lines */
  background-image: 
    linear-gradient(90deg, transparent 66px, #dc2626 66px, #dc2626 67.5px, transparent 67.5px, transparent 71.5px, #dc2626 71.5px, #dc2626 73px, transparent 73px),
    linear-gradient(rgba(14, 116, 144, 0.16) 1px, transparent 1px);
  background-size: 100% 100%, 100% 34px;
  background-position: 0 0, 0 18px;
  padding: 42px 56px 64px 92px;
  border: 1px solid #fde047;
  box-shadow: 
    0 25px 60px -12px rgba(0, 0, 0, 0.7),
    0 4px 0 0 #facc15, /* Simulated paper pad thickness at bottom */
    0 0 1px 1px rgba(254, 240, 138, 0.3);
}

@media (max-width: 640px) {
  .paper-canvas.skin-us-legal-pad {
    background-image: 
      linear-gradient(90deg, transparent 38px, #dc2626 38px, #dc2626 39.5px, transparent 39.5px, transparent 43.5px, #dc2626 43.5px, #dc2626 45px, transparent 45px),
      linear-gradient(rgba(14, 116, 144, 0.16) 1px, transparent 1px);
    padding: 32px 16px 48px 60px;
  }
}

.paper-canvas.skin-us-legal-pad .sidu-holes,
.paper-canvas.skin-us-legal-pad .header-skin-sidu,
.paper-canvas.skin-us-legal-pad .header-skin-pleading,
.paper-canvas.skin-us-legal-pad .pleading-line-numbers {
  display: none !important;
}

.paper-canvas.skin-us-legal-pad .header-skin-us-pad {
  display: block;
}

/* Legal pad top torn perforation line */
.us-pad-perforation {
  border-bottom: 2px dashed #ca8a04;
  margin: 12px 0 24px;
  opacity: 0.6;
  position: relative;
}
.us-pad-perforation::before {
  content: "✂ ─── TORN FROM ATTORNEY LEGAL PAD ─── ✂";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: #fef9e7;
  padding: 0 12px;
  font-size: 10px;
  font-weight: 700;
  color: #a16207;
  letter-spacing: 1px;
}

/* Smart pills adapt to Yellow Legal Pad */
.paper-canvas.skin-us-legal-pad .smart-pill {
  background: #fef08a;
  border-color: #d97706;
  color: #92400e;
}
.paper-canvas.skin-us-legal-pad .smart-pill:focus {
  background: #ffffff;
  border-color: #b45309;
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.25);
  color: #451a03;
}
.paper-canvas.skin-us-legal-pad .pill-static {
  background: rgba(217, 119, 6, 0.15);
  color: #78350F;
  border-bottom-color: #d97706;
}
.paper-canvas.skin-us-legal-pad .clause-header {
  background: rgba(254, 240, 138, 0.85);
  border-left-color: #d97706;
  color: #78350f;
}
.paper-canvas.skin-us-legal-pad .sig-party-box {
  background: #fefce8;
  border-color: #fde047;
}

/* --------------------------------------------------------------------------
   SKIN 3: US Court Pleading Bond Paper (.skin-us-pleading)
   -------------------------------------------------------------------------- */
.paper-canvas.skin-us-pleading {
  background-color: #faf9f5; /* Crisp Ivory Law Bond Paper */
  color: #111827;
  /* Double Dark Navy Left Margin Rules + Single Right Margin Rule */
  background-image: 
    linear-gradient(90deg, transparent 66px, #1e3a8a 66px, #1e3a8a 67.5px, transparent 67.5px, transparent 71.5px, #1e3a8a 71.5px, #1e3a8a 73px, transparent 73px),
    linear-gradient(90deg, transparent calc(100% - 30px), #1e3a8a calc(100% - 30px), #1e3a8a calc(100% - 28.5px), transparent calc(100% - 28.5px));
  background-size: 100% 100%, 100% 100%;
  padding: 42px 48px 64px 92px;
  font-family: Georgia, 'Times New Roman', Times, serif;
}

@media (max-width: 640px) {
  .paper-canvas.skin-us-pleading {
    background-image: 
      linear-gradient(90deg, transparent 38px, #1e3a8a 38px, #1e3a8a 39.5px, transparent 39.5px, transparent 43.5px, #1e3a8a 43.5px, #1e3a8a 45px, transparent 45px),
      linear-gradient(90deg, transparent calc(100% - 16px), #1e3a8a calc(100% - 16px), #1e3a8a calc(100% - 15px), transparent calc(100% - 15px));
    padding: 32px 24px 48px 60px;
  }
}

.paper-canvas.skin-us-pleading .doc-title,
.paper-canvas.skin-us-pleading .clause-header {
  font-family: Georgia, 'Times New Roman', Times, serif;
  letter-spacing: 0.3px;
}

.paper-canvas.skin-us-pleading .sidu-holes,
.paper-canvas.skin-us-pleading .header-skin-sidu,
.paper-canvas.skin-us-legal-pad .header-skin-pleading {
  display: none !important;
}

.paper-canvas.skin-us-pleading .header-skin-pleading {
  display: block;
}

/* Vertical Pleading Line Numbers down the left margin */
.paper-canvas.skin-us-pleading .pleading-line-numbers {
  display: flex !important;
  flex-direction: column;
  position: absolute;
  left: 20px;
  top: 130px;
  bottom: 60px;
  width: 36px;
  text-align: right;
  font-family: 'Courier New', Courier, monospace;
  font-size: 11px;
  color: #94a3b8;
  line-height: 28px;
  pointer-events: none;
  user-select: none;
}
@media (max-width: 640px) {
  .paper-canvas.skin-us-pleading .pleading-line-numbers { left: 8px; width: 24px; font-size: 10px; }
}

.us-pleading-double-line {
  border-bottom: 4px double #1e3a8a;
  margin: 16px 0 28px;
}

.stamp-us-pad {
  background: #fef08a;
  color: #92400e;
  border: 1px solid #fde047;
}

.stamp-us-pleading {
  background: #eff6ff;
  color: #1e3a8a;
  border: 1px solid #bfdbfe;
  font-family: Georgia, serif;
}

.us-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

@media (max-width: 600px) {
  .us-header-bar { flex-direction: column; gap: 10px; }
}

.us-meta-box {
  display: flex;
  flex-direction: column;
  text-align: right;
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  letter-spacing: 0.5px;
}
@media (max-width: 600px) {
  .us-meta-box { text-align: left; }
}

