
    /* ============================================================
       COMPLETE EMBEDDED STYLES (Zero-Cache-Issue Architecture)
       ============================================================ */
    :root {
      --primary: #4f46e5;
      --primary-hover: #4338ca;
      --gold: #f59e0b;
      --gold-hover: #d97706;
      --bg-main: #0b0f19;
      --bg-card: #131b2e;
      --bg-input: #0a0e17;
      --border-card: #1e293b;
      --border-input: #334155;
      --text-main: #f8fafc;
      --text-muted: #94a3b8;
      --text-sub: #64748b;
      --danger: #ef4444;
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    body {
      font-family: 'Prompt', -apple-system, BlinkMacSystemFont, sans-serif;
      background-color: var(--bg-main);
      color: var(--text-main);
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      line-height: 1.5;
      -webkit-font-smoothing: antialiased;
    }

    /* Header */
    .app-header {
      background: #0f172a;
      border-bottom: 1px solid #1e293b;
      padding: 0.75rem 1.5rem;
      display: flex;
      justify-content: space-between;
      align-items: center;
      position: sticky;
      top: 0;
      z-index: 50;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    }

    .header-brand {
      display: flex;
      align-items: center;
      gap: 0.85rem;
    }

    .header-logo {
      height: 42px;
      width: auto;
      object-fit: contain;
    }

    .header-tag {
      font-size: 0.65rem;
      font-weight: 700;
      color: var(--gold);
      letter-spacing: 0.08em;
      background: rgba(245, 158, 11, 0.12);
      border: 1px solid rgba(245, 158, 11, 0.3);
      padding: 0.1rem 0.45rem;
      border-radius: 4px;
      display: inline-block;
      margin-bottom: 0.15rem;
    }

    .header-title h1 {
      font-size: 1.1rem;
      font-weight: 700;
      color: #ffffff;
      line-height: 1.2;
    }

    .header-title p {
      font-size: 0.75rem;
      color: var(--text-muted);
    }

    .header-actions {
      display: flex;
      gap: 0.5rem;
    }

    /* Buttons */
    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 0.4rem;
      padding: 0.55rem 1rem;
      border-radius: 8px;
      font-family: 'Prompt', sans-serif;
      font-size: 0.85rem;
      font-weight: 600;
      cursor: pointer;
      border: 1px solid transparent;
      transition: all 0.2s ease;
      user-select: none;
      text-decoration: none;
    }

    .btn-gold {
      background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
      color: #0b0f19 !important;
      font-weight: 700;
      box-shadow: 0 2px 10px rgba(245, 158, 11, 0.3);
    }

    .btn-gold:hover {
      background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
      transform: translateY(-1px);
    }

    .btn-glass {
      background: #1e293b;
      color: #ffffff;
      border-color: #334155;
    }

    .btn-glass:hover {
      background: #334155;
      transform: translateY(-1px);
    }

    .btn-primary {
      background: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%);
      color: #ffffff;
      box-shadow: 0 2px 10px rgba(79, 70, 229, 0.35);
    }

    .btn-primary:hover {
      background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
      transform: translateY(-1px);
    }

    .btn-lg {
      padding: 0.75rem 1.25rem;
      font-size: 0.95rem;
    }

    /* Mobile Segmented Navigation Tabs */
    .mobile-nav-tabs {
      display: none;
      background: #0f172a;
      border-bottom: 1px solid #1e293b;
      padding: 0.5rem 0.75rem;
      position: sticky;
      top: 0;
      z-index: 45;
    }

    .mobile-tab-slider {
      display: flex;
      background: #090d16;
      border: 1px solid #1e293b;
      border-radius: 8px;
      padding: 3px;
      width: 100%;
      gap: 4px;
    }

    .mobile-tab-btn {
      flex: 1;
      padding: 0.65rem 0.5rem;
      border-radius: 6px;
      background: transparent;
      color: var(--text-muted);
      font-family: 'Prompt', sans-serif;
      font-size: 0.9rem;
      font-weight: 600;
      border: none;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 0.4rem;
      transition: all 0.2s;
    }

    .mobile-tab-btn.active {
      background: var(--primary);
      color: #ffffff;
      box-shadow: 0 2px 8px rgba(79, 70, 229, 0.4);
    }

    /* Main Container */
    .app-container {
      display: flex;
      flex: 1;
      padding: 1.25rem 1.5rem;
      gap: 1.5rem;
      max-width: 1680px;
      margin: 0 auto;
      width: 100%;
    }

    .form-panel {
      flex: 0 0 480px;
      display: flex;
      flex-direction: column;
      gap: 1rem;
    }

    .preview-panel {
      flex: 1;
      background: #060911;
      border-radius: 16px;
      border: 1px solid #1e293b;
      padding: 1.25rem;
      display: flex;
      flex-direction: column;
      align-items: center;
      overflow-y: auto;
      box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.6);
    }

    /* Cards */
    .card {
      background: var(--bg-card);
      border-radius: 12px;
      border: 1px solid var(--border-card);
      padding: 1.15rem;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    }

    .card-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 0.85rem;
      padding-bottom: 0.65rem;
      border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .card-header-left {
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .card-title {
      font-size: 0.95rem;
      font-weight: 600;
      color: #ffffff;
    }

    .card-subtitle {
      font-size: 0.74rem;
      color: var(--text-muted);
      margin-top: 0.1rem;
    }

    .pill-badge {
      font-size: 0.72rem;
      font-weight: 600;
      padding: 0.15rem 0.55rem;
      border-radius: 999px;
      background: #1e293b;
      color: var(--text-muted);
    }

    .pill-badge.gold {
      background: rgba(245, 158, 11, 0.15);
      color: var(--gold);
      border: 1px solid rgba(245, 158, 11, 0.3);
    }

    .pill-badge.blue {
      background: rgba(14, 165, 233, 0.15);
      color: #38bdf8;
      border: 1px solid rgba(14, 165, 233, 0.3);
    }

    .pill-badge.purple {
      background: rgba(99, 102, 241, 0.15);
      color: #a5b4fc;
      border: 1px solid rgba(99, 102, 241, 0.3);
    }

    .preset-loaded-banner {
      display: flex;
      align-items: center;
      gap: 0.6rem;
      padding: 0.65rem 1rem;
      margin-bottom: 0.85rem;
      border-radius: 0.5rem;
      background: rgba(34, 197, 94, 0.1);
      border: 1px solid rgba(34, 197, 94, 0.25);
      color: #4ade80;
      font-size: 0.85rem;
    }

    .preset-loaded-banner .preset-icon {
      font-size: 1.15rem;
      flex-shrink: 0;
    }

    .preset-loaded-banner .preset-guild-name {
      margin-right: 0.4rem;
    }

    .preset-loaded-banner .preset-rank-text {
      color: var(--text-muted);
      font-size: 0.78rem;
    }

    .form-group {
      margin-bottom: 0.85rem;
    }

    .form-group:last-child {
      margin-bottom: 0;
    }

    .form-label {
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 0.84rem;
      font-weight: 500;
      color: #cbd5e1;
      margin-bottom: 0.35rem;
    }

    .label-req {
      color: var(--gold);
    }

    .label-hint {
      font-size: 0.72rem;
      color: var(--text-sub);
    }

    .form-control, .form-select {
      width: 100%;
      padding: 0.65rem 0.85rem;
      background-color: var(--bg-input);
      border: 1px solid var(--border-input);
      border-radius: 8px;
      color: #ffffff;
      font-family: 'Prompt', sans-serif;
      font-size: 0.9rem;
      transition: all 0.2s ease;
    }

    .form-control:focus, .form-select:focus {
      outline: none;
      border-color: var(--primary);
      box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.3);
    }

    .form-select option {
      background-color: #0f172a;
      color: #ffffff;
    }

    /* Guild Selection Pills */
    .guild-pill-group {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 0.4rem;
    }

    .guild-pill {
      position: relative;
    }

    .guild-pill input {
      position: absolute;
      opacity: 0;
      cursor: pointer;
    }

    .guild-pill label {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.25rem;
      padding: 0.65rem 0.25rem;
      background-color: var(--bg-input);
      border: 1px solid var(--border-input);
      border-radius: 8px;
      font-size: 0.84rem;
      font-weight: 600;
      color: #cbd5e1;
      cursor: pointer;
      transition: all 0.2s ease;
      text-align: center;
      white-space: nowrap;
    }

    .guild-pill input:checked + label {
      background: rgba(79, 70, 229, 0.3);
      border-color: var(--primary);
      color: #ffffff;
      box-shadow: 0 0 10px rgba(79, 70, 229, 0.35);
    }

    .date-row {
      display: grid;
      grid-template-columns: 1fr 1.3fr 1fr;
      gap: 0.5rem;
    }

    /* Player List Rows */
    .player-list {
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
      max-height: 380px;
      overflow-y: auto;
      padding-right: 0.25rem;
    }

    .player-list::-webkit-scrollbar {
      width: 5px;
    }

    .player-list::-webkit-scrollbar-thumb {
      background-color: #334155;
      border-radius: 999px;
    }

    .player-row {
      background: #0f172a;
      border: 1px solid var(--border-input);
      border-radius: 8px;
      padding: 0.55rem 0.65rem;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .player-index {
      flex: 0 0 26px;
      height: 26px;
      background: rgba(79, 70, 229, 0.2);
      color: #a5b4fc;
      border: 1px solid rgba(79, 70, 229, 0.35);
      border-radius: 4px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.78rem;
      font-weight: 700;
    }

    .player-inputs {
      flex: 1;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 0.4rem;
    }

    .player-inputs input {
      padding: 0.45rem 0.6rem;
      font-size: 0.84rem;
    }

    .btn-remove-row {
      flex: 0 0 28px;
      height: 28px;
      background: rgba(239, 68, 68, 0.12);
      border: 1px solid rgba(239, 68, 68, 0.25);
      color: #f87171;
      border-radius: 4px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      font-size: 0.85rem;
    }

    .btn-remove-row:hover:not(:disabled) {
      background: var(--danger);
      color: #ffffff;
    }

    .btn-remove-row:disabled {
      opacity: 0.2;
      cursor: not-allowed;
    }

    .btn-add-player {
      margin-top: 0.65rem;
      background: rgba(79, 70, 229, 0.1);
      border: 1px dashed rgba(79, 70, 229, 0.4);
      color: #a5b4fc;
      width: 100%;
      padding: 0.65rem;
      font-size: 0.84rem;
      font-weight: 600;
    }

    .btn-add-player:hover:not(:disabled) {
      background: rgba(79, 70, 229, 0.2);
      border-color: var(--primary);
      color: #ffffff;
    }

    .btn-add-player:disabled {
      opacity: 0.35;
      cursor: not-allowed;
    }

    .action-grid {
      display: grid;
      grid-template-columns: 1.2fr 1fr;
      gap: 0.5rem;
    }

    /* A4 Document Preview Toolbar */
    .preview-toolbar {
      width: 100%;
      max-width: 210mm;
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 0.85rem;
      color: var(--text-muted);
      font-size: 0.82rem;
      flex-wrap: wrap;
      gap: 0.4rem;
    }

    .preview-toolbar .status-indicator {
      display: flex;
      align-items: center;
      gap: 0.45rem;
    }

    .status-dot {
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background-color: #34d399;
      box-shadow: 0 0 8px #34d399;
    }

    .status-text {
      font-weight: 500;
      color: #cbd5e1;
    }

    .preview-zoom-controls {
      display: flex;
      align-items: center;
      gap: 0.3rem;
      background: #0f172a;
      padding: 0.2rem 0.45rem;
      border-radius: 6px;
      border: 1px solid #1e293b;
    }

    .preview-zoom-controls span {
      font-size: 0.75rem;
      min-width: 36px;
      text-align: center;
      font-weight: 600;
      color: #cbd5e1;
    }

    .btn-zoom {
      background: #1e293b;
      border: 1px solid #334155;
      color: #ffffff;
      width: 24px;
      height: 24px;
      border-radius: 4px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      font-size: 0.9rem;
      font-weight: 700;
    }

    .btn-zoom-fit {
      background: rgba(14, 165, 233, 0.15);
      border: 1px solid rgba(14, 165, 233, 0.3);
      color: #38bdf8;
      padding: 0.15rem 0.45rem;
      border-radius: 4px;
      font-size: 0.72rem;
      font-weight: 600;
      cursor: pointer;
      font-family: 'Prompt', sans-serif;
    }

    .a4-wrapper {
      display: flex;
      justify-content: center;
      width: 100%;
      overflow-x: auto;
      padding: 0.35rem 0;
      transition: height 0.2s ease;
    }

    /* Exact Official Google Doc A4 Styling */
    .a4-page {
      width: 210mm;
      min-height: 297mm;
      background-color: #ffffff;
      color: #000000;
      font-family: "Sarabun", "TH Sarabun New", "Leelawadee UI", sans-serif;
      font-size: 11pt;
      line-height: 1.45;
      padding: 30pt 45pt 30pt 45pt;
      box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
      box-sizing: border-box;
      position: relative;
      word-break: normal;
      overflow-wrap: break-word;
      display: flex;
      flex-direction: column;
      transform-origin: top center;
      transition: transform 0.2s ease;
    }

    .doc-logo-container {
      text-align: center;
      margin-bottom: 6pt;
    }

    .doc-logo {
      width: 105px;
      height: auto;
      max-height: 60px;
      display: inline-block;
    }

    .doc-title {
      text-align: center;
      font-size: 14pt;
      font-weight: 700;
      margin-bottom: 2pt;
      color: #000000;
      line-height: 1.25;
    }

    .doc-subtitle {
      text-align: center;
      font-size: 10.5pt;
      font-weight: 400;
      margin-bottom: 8pt;
      color: #000000;
      line-height: 1.25;
    }

    .doc-date {
      text-align: left;
      font-size: 10.5pt;
      font-weight: 400;
      margin-bottom: 6pt;
      color: #000000;
      line-height: 1.3;
    }

    .doc-meta {
      text-align: left;
      font-size: 10.5pt;
      margin-bottom: 4pt;
      color: #000000;
      line-height: 1.3;
    }

    .doc-meta-label {
      font-weight: 700;
      display: inline-block;
      min-width: 38pt;
    }

    .doc-meta-value {
      font-weight: 400;
    }

    .doc-intro {
      text-align: left;
      font-size: 10.5pt;
      font-weight: 400;
      margin-top: 4pt;
      margin-bottom: 6pt;
      color: #000000;
      line-height: 1.5;
      word-break: normal;
      overflow-wrap: break-word;
    }

    .doc-table {
      width: 100%;
      border-collapse: collapse;
      margin: 6pt auto 8pt auto;
      font-family: "Sarabun", "TH Sarabun New", "Leelawadee UI", sans-serif;
      font-size: 10.5pt;
    }

    .doc-table th, .doc-table td {
      border: 1pt solid #000000;
      padding: 2.5pt 5pt;
      vertical-align: middle;
      line-height: 1.3;
    }

    .doc-table th {
      font-weight: 700;
      text-align: center;
      background-color: #ffffff;
    }

    .doc-table td.col-idx {
      width: 14%;
      text-align: center;
      font-weight: 400;
    }

    .doc-table td.col-old-name {
      width: 43%;
      text-align: center;
      font-weight: 400;
      word-break: break-word;
    }

    .doc-table td.col-new-name {
      width: 43%;
      text-align: center;
      font-weight: 400;
      word-break: break-word;
    }

    .doc-paragraph {
      text-align: left;
      font-size: 10.5pt;
      font-weight: 400;
      margin-bottom: 6pt;
      color: #000000;
      line-height: 1.5;
      word-break: normal;
      overflow-wrap: break-word;
    }

    .doc-paragraph:last-of-type {
      margin-bottom: 12pt;
    }

    .doc-signature {
      text-align: center;
      margin-top: 14pt;
      font-size: 10.5pt;
      font-weight: 400;
      line-height: 1.55;
      color: #000000;
    }

    .doc-signature .sign-line {
      margin-bottom: 2pt;
    }

    .doc-signature .sign-name {
      margin-bottom: 2pt;
    }

    .doc-signature .sign-guild {
      margin-bottom: 0;
    }

    .highlight-val {
      color: #1e1b4b;
      font-weight: 600;
      border-bottom: 1px dashed var(--primary);
    }

    /* Mobile Floating Bottom Bar */
    .mobile-bottom-bar {
      display: none;
      position: fixed;
      bottom: 0;
      left: 0;
      width: 100%;
      background: #090d16;
      border-top: 1px solid #1e293b;
      padding: 0.65rem 0.85rem;
      z-index: 60;
      box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.6);
      gap: 0.4rem;
      align-items: center;
      justify-content: space-between;
    }

    .mobile-bottom-bar .mobile-btn-lg {
      flex: 2;
      padding: 0.65rem 0.75rem;
      font-size: 0.9rem;
    }

    .mobile-bottom-bar .mobile-btn-sm {
      flex: 1;
      padding: 0.65rem 0.4rem;
      font-size: 0.8rem;
    }

    /* Loading Overlay */
    .loading-overlay {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
      background: rgba(0, 0, 0, 0.8);
      backdrop-filter: blur(8px);
      z-index: 9999;
      justify-content: center;
      align-items: center;
      flex-direction: column;
      gap: 1rem;
    }

    .loading-overlay.active {
      display: flex;
    }

    .spinner-ring {
      width: 48px;
      height: 48px;
      border: 4px solid var(--gold);
      border-top-color: transparent;
      border-radius: 50%;
      animation: spin 0.8s linear infinite;
    }

    @keyframes spin {
      to { transform: rotate(360deg); }
    }

    .loading-status-text {
      color: #ffffff;
      font-weight: 600;
      font-size: 0.95rem;
    }

    .toast-container {
      position: fixed;
      bottom: 2rem;
      right: 2rem;
      z-index: 10000;
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
    }

    .toast {
      background: #1e293b;
      color: #ffffff;
      padding: 0.75rem 1.15rem;
      border-radius: 8px;
      border: 1px solid #334155;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
      font-size: 0.85rem;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    /* ============================================================
       RESPONSIVE RULES (Mobile & Tablet <= 1024px)
       ============================================================ */
    @media screen and (max-width: 1024px) {
      .app-header {
        padding: 0.65rem 1rem;
      }

      .header-actions {
        display: none !important; /* Hide desktop top buttons on mobile */
      }

      .mobile-nav-tabs {
        display: flex !important;
      }

      .mobile-bottom-bar {
        display: flex !important;
      }

      .app-container {
        flex-direction: column;
        padding: 0.85rem;
        padding-bottom: 85px;
      }

      .card-actions-desktop {
        display: none;
      }

      .app-container.view-form .form-panel {
        display: flex !important;
        width: 100%;
        flex: none;
      }

      .app-container.view-form .preview-panel {
        display: none !important;
      }

      .app-container.view-preview .form-panel {
        display: none !important;
      }

      .app-container.view-preview .preview-panel {
        display: flex !important;
        width: 100%;
        padding: 0.85rem;
      }

      .toast-container {
        bottom: 5.5rem;
        right: 1rem;
        left: 1rem;
      }
    }

    /* Small Screens & Phones (<= 640px) */
    @media screen and (max-width: 640px) {
      .app-header {
        padding: 0.6rem 0.75rem;
      }

      .header-brand {
        width: 100%;
      }

      .header-logo {
        height: 32px;
      }

      .header-title h1 {
        font-size: 0.95rem;
      }

      .header-title p {
        font-size: 0.7rem;
      }

      .card {
        padding: 0.85rem;
      }

      .guild-pill label {
        font-size: 0.76rem;
        padding: 0.55rem 0.15rem;
      }

      .date-row {
        grid-template-columns: 1fr 1.2fr 1fr;
        gap: 0.35rem;
      }

      .form-control, .form-select {
        font-size: 16px !important; /* Prevents auto zoom on iOS Safari */
        padding: 0.55rem 0.65rem;
      }

      .player-row {
        flex-direction: column;
        align-items: stretch;
        position: relative;
        padding: 0.65rem;
        padding-top: 2rem;
        gap: 0.35rem;
      }

      .player-index {
        position: absolute;
        top: 0.45rem;
        left: 0.45rem;
      }

      .btn-remove-row {
        position: absolute;
        top: 0.45rem;
        right: 0.45rem;
        width: 24px;
        height: 24px;
      }

      .player-inputs {
        grid-template-columns: 1fr;
        gap: 0.35rem;
      }

      .player-inputs input {
        font-size: 16px !important;
      }
    }

    /* Print Styles */
    @media print {
      body {
        background-color: #ffffff !important;
        color: #000000 !important;
        margin: 0 !important;
        padding: 0 !important;
      }

      .app-header,
      .mobile-nav-tabs,
      .mobile-bottom-bar,
      .form-panel,
      .preview-toolbar,
      .loading-overlay,
      .toast-container {
        display: none !important;
      }

      .app-container,
      .preview-panel,
      .a4-wrapper {
        padding: 0 !important;
        margin: 0 !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        width: 100% !important;
        display: block !important;
      }

      .a4-page {
        width: 100% !important;
        max-width: 100% !important;
        min-height: auto !important;
        padding: 30pt 45pt 30pt 45pt !important;
        box-shadow: none !important;
        border: none !important;
        margin: 0 !important;
        transform: none !important;
        page-break-after: avoid;
        page-break-inside: avoid;
      }

      .highlight-val {
        color: #000000 !important;
        border-bottom: none !important;
        font-weight: normal !important;
      }

      @page {
        size: A4 portrait;
        margin: 10mm;
      }
    }
  

/* Consent form: A4 layout based on the supplied Google Doc. */
.form-panel { flex-basis: 440px; min-width: 0; }
.preview-panel { min-width: 0; align-self: flex-start; position: sticky; top: 100px; width: 100%; }
.two-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.field-hint { color: var(--text-muted); font-size: .73rem; margin: .35rem 0 .75rem; }
.form-control { min-width: 0; }
textarea { resize: vertical; }
summary { cursor: pointer; margin-bottom: 1rem; }
.reset-button { margin-top: .65rem; width: 100%; }
.wallet-input { font-family: monospace; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.a4-wrapper { display: block; padding: 8px 0; overflow: auto; }
#paperStage { margin: 0 auto; position: relative; flex-shrink: 0; }
.a4-page { width: 210mm; min-height: 297mm; padding: 15mm 18mm; display: block; font-size: 10pt; line-height: 1.35; transform-origin: top left; transition: none; }
.consent-title { text-align: center; font-size: 15pt; margin-bottom: 14pt; line-height: 1.4; }
.place-block { width: 215px; margin-left: auto; margin-bottom: 13pt; font-size: 9.5pt; }
.preserve-lines { white-space: pre-line; }
.document-date { margin-top: 6pt; }
.consent-paragraph { text-indent: 28pt; margin: 6pt 0; overflow-wrap: anywhere; }
.member-roster { padding-left: 95pt; margin: 5pt 0 10pt; }
.member-roster li { padding-left: 3pt; min-height: 15pt; overflow-wrap: anywhere; }
.wallet-value { overflow-wrap: anywhere; }
.consent-signatures { margin-top: 14pt; }
.signature-block { width: 320px; max-width: 100%; font-size: 9.5pt; line-height: 1.5; break-inside: avoid; overflow-wrap: anywhere; }
.consent-signatures .signature-block { margin-bottom: 10pt; }
.signature-line { display: inline-block; width: 150px; border-bottom: 1px dotted #000; margin: 0 4px; vertical-align: bottom; }
.signature-block p { text-align: center; width: 215px; }
.witness-signatures { display: flex; justify-content: space-between; gap: 20px; margin-top: 10pt; }
.witness-signatures .signature-block { width: 260px; }
.document-note { margin-top: 20pt; font-size: 9pt; }
.document-note strong { text-decoration: underline; }
.highlight-val { font-weight: 400; }
.export-page .highlight-val { color: #000; border: none; }
.overflow-notice { color: #fbbf24; font-size: .8rem; margin-bottom: 1rem; }
.toast.error { border-color: #ef4444; }
@media screen and (max-width: 1200px) and (min-width: 1025px) { .form-panel { flex-basis: 360px; } }
@media screen and (max-width: 1024px) {
  .preview-panel { position: static; }
  .form-panel { flex: none; width: 100%; }
  .mobile-nav-tabs { position: static; }
  .app-header { position: static; }
}
@media screen and (max-width: 480px) { .two-columns { grid-template-columns: 1fr; } }
@media print {
  @page { size: A4 portrait; margin: 0; }
  html, body { width: 210mm; min-height: 0; display: block; }
  .overflow-notice { display: none !important; }
  .app-container, .preview-panel, .a4-wrapper, #paperStage { display: block !important; position: static !important; width: 210mm !important; height: auto !important; overflow: visible !important; margin: 0 !important; padding: 0 !important; }
  .a4-page { width: 210mm !important; min-height: 297mm !important; padding: 15mm 18mm !important; transform: none !important; }
}

