/* LawAI AI Report consolidated CSS: retain original style -> report override cascade. */

    
    :root {
      --primary: #274B7A;
      --primary-light: #4A7AB3;
      --primary-dark: #1A3454;
      --secondary: #E3F0FF;
      --accent: #F5F2EA;
      --accent-bg: #F9F5EE;
      --text-color: #243447;
      --text-muted: #6B7280;
      --highlight: #BBD3F5;
      --success: #10B981;
      --warning: #F59E0B;
      --error: #EF4444;
      --neon-blue: #BFD8FF;
      --neon-purple: #D7C9FF;
      --gold: #F3D08A;
      --card-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
      --shadow-hover: 0 24px 60px rgba(15, 23, 42, 0.10);
    }
    * { box-sizing: border-box; }
    body {
      margin: 0;
      padding: 0;
      font-family: "Noto Sans TC", "Segoe UI", sans-serif;
      background: linear-gradient(135deg, var(--accent-bg), #F3F6FB);
      color: var(--text-color);
    }
    .wrapper {
      max-width: 960px;
      margin: 32px auto;
      padding: 24px;
    }
    .card {
      background: #FFFFFF;
      border-radius: 28px;
      padding: 36px;
      box-shadow: var(--card-shadow);
      border: 1px solid rgba(36, 52, 86, 0.08);
    }
    h1 {
      text-align: center;
      color: var(--primary);
      font-size: 32px;
      margin-bottom: 16px;
      font-weight: 900;
    }
    .subtitle {
      text-align: center;
      color: var(--text-muted);
      font-size: 18px;
      margin-bottom: 20px;
    }
    label {
      font-size: 18px;
      font-weight: bold;
      display: block;
      margin-bottom: 8px;
      color: var(--primary);
    }
    textarea {
      width: 100%;
      min-height: 240px;
      padding: 18px;
      font-size: 18px;
      border: 1.5px solid rgba(148, 163, 184, 0.8);
      border-radius: 18px;
      margin-bottom: 24px;
      resize: vertical;
      background: #FDFBF5;
      transition: all 0.25s ease;
    }
    textarea:focus {
      border-color: var(--primary-light);
      background: #FFFFFF;
      box-shadow: 0 0 0 3px rgba(74, 122, 179, 0.22);
      outline: none;
    }
    .buttons {
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
      gap: 16px;
    }
    button {
      padding: 14px 20px;
      border: none;
      border-radius: 28px;
      background: linear-gradient(to right, var(--primary), var(--primary-dark));
      color: white;
      font-size: 18px;
      font-weight: bold;
      cursor: pointer;
      transition: all 0.3s ease;
      box-shadow: var(--card-shadow);
    }
    button:hover {
      transform: translateY(-2px);
      box-shadow: var(--shadow-hover);
      background: linear-gradient(to right, var(--primary-light), var(--primary));
    }
    .progress-container {
      margin: 28px 0;
    }
    .progress-bar {
      height: 10px;
      background: #ffffff;
      border-radius: 5px;
      overflow: hidden;
    }
    .progress-fill {
      height: 100%;
      background: linear-gradient(90deg, var(--primary), var(--neon-blue));
      width: 0%;
      transition: width 0.3s ease;
    }
    .encouragement {
      font-size: 18px;
      font-weight: bold;
      color: var(--text-muted);
      margin-top: 12px;
      text-align: center;
    }

    .trust-note {
      margin-top: 8px;
      margin-bottom: 4px;
      font-size: 13px;
      line-height: 1.7;
      color: var(--text-muted);
      text-align: center;
    }

    .loading {
      text-align: center;
      font-size: 20px;
      color: var(--primary);
      padding: 40px 20px;
    }
    .loading-title {
      font-size: 20px;
      font-weight: 800;
      margin-bottom: 12px;
    }
    .loading-subtitle {
      font-size: 15px;
      color: var(--text-muted);
      margin-bottom: 16px;
      line-height: 1.7;
    }
    .loading-steps {
      list-style: none;
      padding: 0;
      margin: 0 0 16px;
      font-size: 14px;
      color: var(--text-muted);
      line-height: 1.7;
      text-align: left;
      display: inline-block;
    }
    .loading-steps li + li {
      margin-top: 4px;
    }
    .loading-countdown {
      font-size: 16px;
      font-weight: 700;
      color: var(--primary-dark);
      margin-top: 6px;
    }

    
    .opinion-section {
      margin-bottom: 24px;
      background: #ffffff;
      padding: 24px;
      border-radius: 16px;
      border-left: 4px solid var(--primary);
      box-shadow: 0 4px 12px rgba(0,0,0,0.05);
      font-size: 110%;
    }

    .opinion-section h3 {
      color: var(--primary);
      margin-top: 0;
      border-bottom: 1px solid var(--secondary);
      padding-bottom: 8px;
      font-weight: 700;
    }
    .material-icons {
      color: var(--primary);
    }
    
    /* Floating tech elements */
    .tech-bg {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      z-index: -1;
      opacity: 0.08;
      background: 
          radial-gradient(circle at 20% 30%, var(--neon-blue), transparent 45%),
          radial-gradient(circle at 80% 70%, var(--neon-purple), transparent 50%);
      animation: float 24s infinite alternate ease-in-out;
    }

    @keyframes float {
        0% { transform: translate(0, 0); }
        50% { transform: translate(-5%, 5%); }
        100% { transform: translate(5%, -5%); }
    }
    
    /* Back button styling */
    .back-container {
      position: fixed;
      top: 20px;
      left: 0;
      width: 100%;
      padding: 0 20px;
      display: flex;
      justify-content: space-between;
      z-index: 999;
      align-items: center;
    }

@media (max-width: 600px) {
  .back-container {
    top: 16px;
    padding: 0 10px;
  }
}

    .back-btn {
      display: flex;
      align-items: center;
      gap: 4px;
      cursor: pointer;
      color: var(--primary);
      font-weight: bold;
      text-decoration: none;
      transition: all 0.3s ease;
    }
    .back-btn:hover {
      color: var(--primary-dark);
    }
    .help-btn {
      display: flex;
      align-items: center;
      gap: 4px;
      cursor: pointer;
      color: var(--primary);
      font-weight: bold;
      text-decoration: none;
      transition: all 0.3s ease;
    }
    .help-btn:hover {
      color: var(--primary-dark);
    }
  
/* === Mobile opinion display tuning === */
.opinion-section, .opinion-section div {
  word-break: break-word;
  overflow-wrap: anywhere;
}
/* Constrain long lines a bit on larger screens for readability */
@media (min-width: 601px) {
  .opinion-section div {
    max-width: 70ch;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Phone-first adjustments */
@media (max-width: 600px) {
  .wrapper {
    margin: 6px auto;
    padding: 10px;
  }
  .card {
    padding: 18px;
    border-radius: 14px;
  }
  h1 {
    font-size: 22px;
    margin-bottom: 8px;
  }
  .subtitle {
    font-size: 14px;
    margin-bottom: 16px;
  }
  /* Textareas (initial question & steps) */
  textarea, #step-container textarea {
    width: 100%;
    max-width: 100%;
    min-height: 160px;
    font-size: 16px;
    padding: 14px;
    border-radius: 12px;
  }
  /* Opinion sections */
  .opinion-section {
    padding: 16px;
    border-radius: 12px;
    font-size: 100%;
    margin-bottom: 16px;
  }
  .opinion-section h3 {
    font-size: 18px;
    margin-bottom: 8px;
  }
  .opinion-section div {
    max-width: 100%;
    margin: 0;
    line-height: 1.7;
  }
  .buttons {
    gap: 10px;
  }
  .progress-container {
    margin: 16px 0;
  }
}
/* === End mobile tuning === */

/* === CTA breathing animation (only for the main "發送給律師諮詢" button) === */
.cta-breath {
  position: relative;
  isolation: isolate;
  animation: cta-breathe 2.6s ease-in-out infinite;
  box-shadow: 0 6px 16px rgba(0, 119, 163, 0.22);
}
.cta-breath::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 999px;
  z-index: -1;
  filter: blur(10px);
  pointer-events: none;
  animation: cta-glow 2.6s ease-in-out infinite;
  background: radial-gradient(60% 60% at 50% 50%, rgba(0,180,216,.35), rgba(0,119,163,.0) 70%);
}
@keyframes cta-breathe {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.05); }
  100% { transform: scale(1); }
}
@keyframes cta-glow {
  0%   { opacity: .45; }
  50%  { opacity: .85; }
  100% { opacity: .45; }
}
@media (prefers-reduced-motion: reduce) {
  .cta-breath, .cta-breath::after {
    animation: none;
  }
}


/* === Scenario option UI === */
.opt-grid{
  display:flex;
  flex-direction:column;
  gap:12px;
  margin: 4px 0 0;
}
.opt-btn{
  width:100%;
  text-align:left;
  padding:14px 16px;
  border-radius:16px;
  border:1px solid rgba(0,75,107,.18);
  background:#fff;
  color:var(--text-color);
  font-weight:700;
  cursor:pointer;
  box-shadow:0 2px 10px rgba(0,0,0,.04);
  transition: all .25s ease;
}
.opt-btn:hover{
  transform: translateY(-1px);
  box-shadow:0 8px 20px rgba(0,75,107,.14);
}
.opt-btn.selected{
  border-color: rgba(0,119,163,.75);
  box-shadow:0 10px 26px rgba(0,119,163,.20);
  background: linear-gradient(90deg, rgba(0,119,163,.12), rgba(0,75,107,.06));
}
.opt-custom{
  margin-top: 12px;
}
.hint-mini{
  font-size: 13px;
  color: var(--text-muted);
  margin-top: -16px;
  margin-bottom: 10px;
}


/* === Premium option styles (lawyer-thinking layers) === */
.opt-btn{
  position:relative;
  padding-left: 18px;
}
.opt-btn::before{
  content:"";
  position:absolute;
  left:0;
  top:10px;
  bottom:10px;
  width:6px;
  border-radius:999px;
  background: rgba(0,75,107,.18);
}
.opt-btn.layer-fact::before{
  background: linear-gradient(180deg, rgba(0,119,163,.9), rgba(0,75,107,.55));
}
.opt-btn.layer-resp::before{
  background: linear-gradient(180deg, rgba(88,80,236,.85), rgba(0,75,107,.45));
}
.opt-btn.layer-dmg::before{
  background: linear-gradient(180deg, rgba(212,175,55,.85), rgba(0,75,107,.35));
}

.opt-inner{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.opt-badges{
  display:flex;
  align-items:center;
  gap:8px;
}
.opt-badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:900;
  letter-spacing:.6px;
  border:1px solid rgba(0,75,107,.14);
  background:#fff;
  color:var(--primary);
}
.opt-badge.fact{background:rgba(0,119,163,.08); border-color:rgba(0,119,163,.22); color:rgba(0,75,107,.95);}
.opt-badge.resp{background:rgba(88,80,236,.08); border-color:rgba(88,80,236,.22); color:rgba(0,75,107,.95);}
.opt-badge.dmg{background:rgba(212,175,55,.10); border-color:rgba(212,175,55,.28); color:rgba(0,75,107,.95);}

.opt-picked-tag{
  margin-left:auto;
  display:none;
  align-items:center;
  gap:6px;
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:900;
  background:rgba(16,185,129,.10);
  border:1px solid rgba(16,185,129,.30);
  color:rgba(0,75,107,.95);
}
.opt-btn.selected .opt-picked-tag{ display:inline-flex; }

.opt-text{
  font-size:16px;
  line-height:1.75;
  font-weight:800;
  color:var(--text-color);
}

.stage-chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border-radius:999px;
  font-weight:900;
  font-size:13px;
  letter-spacing:.3px;
  border:1px solid rgba(0,75,107,.14);
  background:#fff;
  color:var(--primary);
}
.stage-chip.fact{background:rgba(0,119,163,.06); border-color:rgba(0,119,163,.18);}
.stage-chip.resp{background:rgba(88,80,236,.06); border-color:rgba(88,80,236,.18);}
.stage-chip.dmg{background:rgba(212,175,55,.08); border-color:rgba(212,175,55,.22);}



/* ---- next style block ---- */


/* === Route 1: 淡底 + 深藍字（降低壓迫感、維持專業） === */
.opt-btn{
  background: #ffffff !important;
  border: 1px solid rgba(0,75,107,.18) !important;
  box-shadow: 0 2px 10px rgba(0,0,0,.04) !important;
  color: var(--text-color) !important;
}
.opt-btn:hover{
  box-shadow: 0 8px 20px rgba(0,75,107,.14) !important;
}
.opt-btn.selected{
  background: linear-gradient(90deg, rgba(0,119,163,.08), rgba(0,75,107,.04)) !important;
  border-color: rgba(0,119,163,.45) !important;
  box-shadow: 0 8px 20px rgba(0,75,107,.14) !important;
}
.opt-btn::before{
  background: rgba(0,75,107,.18) !important;
}


/* ---- next style block ---- */


/* === Legal path decision cards (soft, low-pressure) === */
.legal-path-card{
  width: 100% !important;
  text-align: left !important;
  padding: 20px 22px !important;
  border-radius: 22px !important;
  border: 1px solid rgba(0,75,107,.18) !important;
  background: linear-gradient(180deg, #ffffff 0%, rgba(224,242,255,.55) 100%) !important;
  color: var(--text-color) !important;

  /* override global button gradient */
  background-image: none !important;

  box-shadow: 0 6px 16px rgba(0,0,0,0.06) !important;
  cursor: pointer !important;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease !important;

  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  min-height: 132px !important;
}
.legal-path-card:hover{
  transform: translateY(-2px) !important;
  border-color: rgba(0,119,163,.38) !important;
  box-shadow: 0 10px 26px rgba(0,75,107,.16) !important;
  background: linear-gradient(180deg, #ffffff 0%, rgba(224,242,255,.70) 100%) !important;
}
.legal-path-card:active{
  transform: translateY(-1px) !important;
  box-shadow: 0 8px 20px rgba(0,75,107,.14) !important;
}
.legal-path-card:focus-visible{
  outline: 3px solid rgba(0,180,216,.32) !important;
  outline-offset: 2px !important;
}

.legal-path-icon{
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,119,163,.10);
  color: var(--primary);
  font-size: 22px !important;
}
.legal-path-title{
  font-size: 19px;
  font-weight: 900;
  letter-spacing: .3px;
  color: var(--primary-dark);
}
.legal-path-desc{
  font-size: 15.5px;
  line-height: 1.75;
  font-weight: 700;
  color: rgba(51,65,85,.92);
}

/* Responsive: keep cards readable on small screens */
@media (max-width: 600px){
  .legal-path-card{
    padding: 16px 16px !important;
    border-radius: 18px !important;
    min-height: 120px !important;
  }
  .legal-path-title{ font-size: 18px; }
  .legal-path-desc{ font-size: 15px; }
}


/* ---- next style block ---- */



/* === Non-legal modal (brand-styled) === */
#nonLegalOverlay{display:none;position:fixed;inset:0;background:rgba(0,0,0,.45);backdrop-filter:saturate(120%) blur(2px);z-index:10000;}
#nonLegalModal{position:relative;width:min(92%,480px);margin:8% auto;background:#fff;border-radius:18px;box-shadow:0 18px 48px rgba(0,75,107,.28);overflow:hidden;border:1px solid rgba(0,75,107,.12);}
#nonLegalModalHeader{display:flex;align-items:center;gap:10px;padding:16px 18px;background:linear-gradient(90deg,var(--primary),var(--primary-dark));color:#fff;}
#nonLegalModalHeader .brand{display:flex;align-items:center;gap:8px;font-weight:900;letter-spacing:.5px;}
#nonLegalModalHeader .brand .material-icons{color:#fff;}
#nonLegalModalBody{padding:20px 22px 8px;color:var(--text-color);}
#nonLegalModalBody p{margin:0 0 10px;line-height:1.75}
#nonLegalModalBody .tip{font-size:14px;color:var(--text-muted)}
#nonLegalModalActions{display:flex;justify-content:flex-end;gap:10px;padding:14px 18px 20px;}
.nl-btn{padding:12px 16px;border:none;border-radius:12px;font-weight:700;cursor:pointer;box-shadow:var(--card-shadow);}
.nl-btn.secondary{background:#eef6fb;color:var(--primary);}
.nl-btn.primary{background:linear-gradient(90deg,var(--primary),var(--primary-dark));color:#fff;}
#nonLegalClose{position:absolute;top:10px;right:10px;background:transparent;border:none;color:#fff;cursor:pointer;padding:6px;border-radius:8px;}
#nonLegalClose .material-icons{font-size:22px;color:#fff;}
@media (max-width:600px){
  #nonLegalModal{margin:18% auto;}
}



#nonLegalModalBody{padding:24px 28px 12px;color:var(--text-color);font-family:'Noto Sans TC',sans-serif;font-size:17px;line-height:1.85;letter-spacing:0.3px;}
#nonLegalModalBody p{margin:0 0 14px;}
#nonLegalModalBody .tip{font-size:15px;color:var(--text-muted);font-style:italic;}
#nonLegalModalHeader .brand{font-weight:900;letter-spacing:1px;font-size:18px;}


/* ---- next style block ---- */


/* Keep the dialog within viewport and make inner content scrollable */
.ai-modal, .modal, .dialog, [role='dialog'] { overscroll-behavior: contain; }
.ai-modal .content, .modal .content, .dialog .content, [role='dialog'] .content, .modal-card, .ai-dialog-card {
  max-height: 80vh; overflow-y: auto;
}


/* ---- next style block ---- */


/* smaller hint text for parenthetical notes */
.hint-30 { font-size: 70%; }


/* ---- next style block ---- */


@media (max-width: 600px) {
  .back-btn span:last-child,
  .help-btn span:last-child {
    display: none;
  }
  .back-btn .material-icons,
  .help-btn .material-icons {
    font-size: 28px;
  }
}


/* ---- next style block ---- */


/* === Safe top spacing to avoid overlap with fixed header on small screens === */
/* Phones: add 1cm extra top margin beyond the existing 16px */
@media (max-width: 600px) {
  .wrapper { margin: calc(16px + 1cm) auto 16px; }
}

/* Small windows/tablets up to 960px: add 1cm beyond the existing 40px */
@media (min-width: 601px) and (max-width: 960px) {
  .wrapper { margin: calc(40px + 1cm) auto; }
}

/* === 強制覆蓋 h1 字級放大 30% === */
@media (max-width: 600px) {
  h1 {
    font-size: 29px !important; /* 原本 22px → 放大 30% */
  }
}
@media (min-width: 601px) and (max-width: 960px) {
  h1 {
    font-size: 42px !important; /* 原本 32px → 放大 30% */
  }
}



/* ---- next style block ---- */



/* === 強制覆蓋 h1 字級放大 30%（手機與小尺寸視窗） === */
@media (max-width: 600px) {
  h1 { font-size: 29px !important; } /* 原 22px × 1.3 */
}
@media (min-width: 601px) and (max-width: 960px) {
  h1 { font-size: 42px !important; } /* 原 32px × 1.3 */
}



/* ---- next style block ---- */


@media (max-width: 720px){
  #legalPathCards{ grid-template-columns: 1fr; }
}

/* === Soft premium hero highlights === */
.hero-highlights{
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:20px;
}
.hero-pill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 12px;
  border-radius:999px;
  font-size:13px;
  background:rgba(39,75,122,0.04);
  color:var(--text-muted);
  border:1px solid rgba(39,75,122,0.08);
}
.hero-pill .material-icons{
  font-size:18px;
  color:var(--success);
}

/* === Soft inputs (text fields) === */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"]{
  width:100%;
  padding:10px 14px;
  border-radius:14px;
  border:1.5px solid rgba(148,163,184,0.85);
  background:#FDFBF5;
  font-size:15px;
  transition:all .22s ease;
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus{
  border-color:var(--primary-light);
  background:#FFFFFF;
  box-shadow:0 0 0 2px rgba(74,122,179,0.18);
  outline:none;
}

/* === CTA primary button === */
button{
  padding:14px 22px;
  border:none;
  border-radius:999px;
  background:linear-gradient(to right, var(--primary), var(--primary-dark));
  color:#FFFFFF;
  font-size:18px;
  font-weight:bold;
  cursor:pointer;
  transition:all .26s ease;
  box-shadow:0 10px 26px rgba(39,75,122,0.22);
}
button:hover{
  transform:translateY(-1px);
  box-shadow:var(--shadow-hover);
  background:linear-gradient(to right, var(--primary-light), var(--primary));
}

.primary-cta{
  padding-inline:26px;
}
.primary-cta .material-icons.cta-arrow{
  font-size:20px;
  color:var(--success);
  margin-right:6px;
}

/* === Scenario option UI softening === */
.opt-grid{
  display:flex;
  flex-direction:column;
  gap:12px;
  margin: 14px 0 0;
}
.opt-btn{
  width:100%;
  text-align:left;
  padding:14px 16px;
  border-radius:18px;
  border:1px solid rgba(39,75,122,0.14);
  background:#FFFFFF;
  color:var(--text-color);
  font-weight:700;
  cursor:pointer;
  box-shadow:0 4px 14px rgba(15,23,42,0.05);
  transition:all .22s ease;
}
.opt-btn:hover{
  transform:translateY(-1px);
  box-shadow:0 10px 24px rgba(15,23,42,0.10);
}
.opt-btn.selected{
  border-color:rgba(74,122,179,0.8);
  box-shadow:0 14px 30px rgba(74,122,179,0.25);
  background:linear-gradient(90deg, rgba(74,122,179,0.10), rgba(250,250,255,0.90));
}
.opt-custom textarea{
  min-height:140px;
}

/* === RWD cleanup & mobile / tablet refinements (2026-01-05) === */
@media (max-width: 600px) {
  /* Slightly larger base text, and leave more space for fixed header */
  body {
    font-size: 15px;
  }
  .wrapper {
    margin: calc(56px + 20px) auto 20px;
    padding: 14px 12px;
  }
  .card {
    padding: 18px 14px;
    border-radius: 16px;
  }
  h1 {
    font-size: 26px !important;
    line-height: 1.4;
  }
  .hero-highlights {
    margin-top: 6px;
  }
  /* Keep back / help buttons usable on narrow screens */
  .back-container {
    top: 10px;
    padding: 0 12px;
  }
  .back-btn span,
  .help-btn span {
    font-size: 13px;
  }
  /* FAQ block: reduce side padding on small screens */
  #contextFaqBlock {
    margin: 12px 8px 24px;
    padding: 16px 14px;
    border-radius: 14px;
  }
  #contextFaqBlock h2 {
    font-size: 18px;
  }
  #contextFaqBlock h3 {
    font-size: 15px;
  }
  #contextFaqBlock p {
    font-size: 13.5px;
  }
  /* Bottom toast: center on mobile and avoid overflowing */
  #submitStatus {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    max-width: 92%;
    box-sizing: border-box;
  }
  /* Modal panels: make them slightly wider and higher on very small screens */
  #lawyerModal > div,
  #aiDisclaimerModal > div,
  #nonLegalModal > div,
  #suggestLawyerPrompt > div {
    width: 92% !important;
    max-width: 420px;
    margin: 12% auto 0 !important;
    padding: 18px 16px !important;
    border-radius: 18px !important;
  }
}

@media (min-width: 601px) and (max-width: 960px) {
  body {
    font-size: 16px;
  }
  .wrapper {
    margin: calc(64px + 24px) auto 32px;
    padding: 20px;
  }
  h1 {
    font-size: 36px !important;
    line-height: 1.4;
  }
}



@media (max-width: 600px) {
  .wrapper {
    margin-top: 26px !important;
  }
}

/* === Suggest Lawyer Prompt buttons: make both same size === */
#suggestLawyerPrompt .suggest-btn {
  padding: 8px 16px;
  font-size: 14px;
  border-radius: 999px;
  font-weight: 600;
  border: none;
  box-shadow: none;
}

#suggestLawyerPrompt .suggest-secondary {
  background: #e5e7eb;
  color: #374151;
  margin-right: 8px;
}

#suggestLawyerPrompt .suggest-primary {
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  color: #ffffff;
}


/* ---- Report-specific styling (former aireport_report.css) ---- */
/* 最終法律意見書 V2.0：僅作用於 body.report-mode，原諮詢畫面保持不變。 */
.followup-question {font-size:19px; line-height:1.85; font-weight:400 !important; color:var(--primary-dark); margin:0 0 12px; white-space:pre-line;}
#step-container .followup-question strong, #step-container .followup-question b {font-weight:400 !important;}
#step-container .opt-grid .opt-text {font-weight:400;}
#step-container .opt-grid .opt-btn {font-weight:400;}
body.report-mode {background:linear-gradient(145deg,#f5f8fc 0%,#fffdfa 48%,#f6f8fc 100%);}
body.report-mode .wrapper {max-width:1120px; margin:58px auto 36px; padding:14px;}
body.report-mode .card {padding:0; border:0; border-radius:24px; background:transparent; box-shadow:none;}
body.report-mode .card > h1, body.report-mode .card > .subtitle, body.report-mode .card > .hero-highlights,
body.report-mode .card > .trust-note, body.report-mode .card > .progress-container {display:none !important;}
body.report-mode .law-report,body.report-mode .law-report * {box-sizing:border-box;}
.law-report {font-family:'Noto Sans TC','Microsoft JhengHei',sans-serif; color:#1d2b3e; line-height:1.8; font-size:16px; background:#fff; padding:0 2px 18px;}
.law-report p {margin:0 0 9px; color:#243244; font-size:15.5px; line-height:1.85; font-weight:400; overflow-wrap:anywhere;}
.law-report p:last-child {margin-bottom:0;}
.law-report .report-cover {position:relative; overflow:hidden; text-align:center; padding:35px 26px 25px; margin-bottom:22px; min-height:220px; background:radial-gradient(circle at 6% 18%,rgba(171,196,227,.32),transparent 34%),radial-gradient(circle at 95% 65%,rgba(209,182,123,.18),transparent 32%),linear-gradient(165deg,#fff,#fcfdff 68%,#faf7f1);border-radius:20px;}
.report-cover:before {content:""; position:absolute; top:-100px;left:-130px;width:380px;height:230px;border-radius:45%;transform:rotate(-19deg);border:20px solid rgba(171,194,223,.19);pointer-events:none;}
.report-decoration {position:absolute;top:20px;left:18%;font-size:24px;color:#17365b;}
.report-cover-kicker {font-size:12px;letter-spacing:2px;color:#6d7e94;margin-bottom:7px;font-weight:600;}
.report-cover-title-wrap {display:flex;align-items:center;justify-content:center;gap:22px;}
.law-report .report-cover h2 {font-family:'Noto Serif TC','Noto Sans TC',serif;color:#0b2b50;font-size:clamp(26px,3.8vw,42px);letter-spacing:3px;font-weight:700;line-height:1.4;margin:0;}
.report-cover-balance {font-size:62px !important;color:#b08b40 !important;text-shadow:0 3px 8px rgba(184,148,75,.14);}
.report-gold-rule {height:2px;width:min(300px,65%);margin:7px auto 11px;background:linear-gradient(90deg,transparent,#c4a266,transparent);}
.law-report .report-cover-subtitle {text-align:center;color:#303844;font-size:17px;line-height:1.7;margin:0 auto 18px;}
.report-promises {display:flex;justify-content:center;gap:10px;flex-wrap:wrap;}
.report-promises>span {display:inline-flex;align-items:center;gap:8px;background:linear-gradient(180deg,#fff,#eef6f4);border:1px solid #d5e2e4;border-radius:30px;padding:5px 14px;color:#20344a;font-size:13px;font-weight:500;box-shadow:0 2px 5px rgba(15,35,60,.05);}
.report-promises .material-icons {font-size:20px;color:#39a65b;}
body.report-mode .opinion-section.report-section {padding:0;margin:0 14px 24px;border:0;background:transparent;box-shadow:none;border-radius:17px; font-size:16px;overflow:hidden;}
.law-report .report-section-title {margin:0;padding:8px 28px;border:0;border-radius:16px 16px 0 0;background:linear-gradient(95deg,#dceafb 0%,#eff6fd 68%,#f7fafc 100%);font-family:'Noto Serif TC',serif;font-size:26px;line-height:1.55;font-weight:700;color:#09284c;letter-spacing:1px;}
.law-report .report-section-body {background:linear-gradient(155deg,#fff,#fbfdff);border:1px solid #e4eaf2;border-top:0;border-radius:0 0 16px 16px;padding:12px 20px 16px;max-width:none !important;margin:0 !important;}
.law-report .report-details {display:flex; flex-direction:column;}
.law-report .report-detail-row {display:grid;grid-template-columns:160px minmax(0,1fr);border-bottom:1px solid #e4e8ee;gap:16px;align-items:stretch;}
.law-report .report-detail-row:last-child {border-bottom:0;}
.law-report .report-row-label {align-self:center;display:flex;align-items:center;justify-content:center;text-align:center;background:linear-gradient(130deg,#eef3fa,#f7f7f8);color:#11345f;padding:9px 12px;font-weight:700;border-radius:10px;max-width:none !important; margin:3px 0 !important;}
.law-report .report-row-content {display:flex;flex-direction:column;justify-content:center;padding:8px 0;max-width:none !important;margin:0 !important;}
.law-report .report-row-content p {font-size:15.5px;}
.law-report .report-legal-intro {padding:3px 8px 5px;max-width:none !important;}
.law-report .report-bullets {margin:4px 0 8px;padding-left:21px;color:#273447;font-size:15px;line-height:1.8;}
.law-report .report-bullets li {padding-left:2px;margin-bottom:3px;}
.report-law-index {margin-top:12px;border-top:1px solid #e1e9f2;padding:12px 8px 2px;font-size:13px;color:#5a6a7e;}
.report-law-index>span {display:block;margin-bottom:9px;font-weight:600;}
.report-law-index>div {display:flex;gap:7px;flex-wrap:wrap;margin-bottom:8px;}
.report-law-tag {background:#edf3fc;border:1px solid #d9e5f5;color:#1c4672;border-radius:7px;padding:3px 10px;}
.report-law-index a {color:#245d91;font-size:12px;text-underline-offset:3px;}
.report-source-hint {color:#69788c;font-size:12px;padding:10px 8px 0;border-top:1px solid #e9edf3;}
.law-report .report-risk-panel {display:grid;grid-template-columns:210px minmax(0,1.7fr) minmax(180px,1fr);gap:0;background:linear-gradient(90deg,#fffcf7,#fdfbf7);border:1px solid #efe7dc;border-radius:16px;padding:18px 16px;max-width:none !important;margin:0 !important;}
.report-risk-level,.report-risk-main,.report-risk-impact {min-width:0;padding:0 18px;}
.report-risk-level {display:flex;flex-direction:column;text-align:center;align-items:center;justify-content:center;border-right:1px solid #e8dfd0;}
.report-risk-label {font-size:17px;font-weight:700;color:#173252;}
.report-risk-level strong {font-size:31px;color:#9b742d;font-weight:800;line-height:1.5;}
.report-risk-level small {font-size:12px;color:#6a6870;}
.report-risk-main {border-right:1px solid #e8dfd0;}
.law-report .report-risk-panel h4 {font-size:17px;color:#173252;font-weight:700;margin:0 0 8px;line-height:1.5;}
.report-risk-main p,.report-risk-impact p {font-size:14.5px;}
.law-report .report-actions {display:flex;flex-direction:column;max-width:none !important;margin:0 !important;padding:0 6px;}
.law-report .report-action {display:grid;grid-template-columns:36px 150px minmax(0,1fr);align-items:start;column-gap:12px;padding:10px 7px;border-bottom:1px solid #dfe5ed;max-width:none !important;margin:0 !important;}
.law-report .report-action:last-child {border-bottom:0;}
.report-action-num {width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:100%;background:linear-gradient(135deg,#5e95c1,#204e7d);color:#fff;font-weight:700;font-size:16px;box-shadow:0 2px 6px #b7cadc;}
.report-action strong {font-size:16px;color:#10345c;line-height:1.65;}
.report-action p {font-size:14.8px;padding-top:2px;}
.law-report .report-evidence-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 20px;padding:12px 12px 8px;max-width:none !important;margin:0 !important;}
.law-report .report-evidence-item {display:flex;align-items:flex-start;gap:9px;min-width:0;font-size:15px;line-height:1.7;max-width:none !important; margin:0 !important;overflow-wrap:anywhere;}
.report-evidence-item .material-icons {color:#2f6ca9;font-size:22px;flex:0 0 22px;}
.law-report .report-evidence-note {font-size:12px;color:#738095;padding:0 12px;margin-top:10px;}
.law-report .report-disclaimer {display:flex;gap:9px;align-items:start;border-top:1px solid #cad8e7;padding:15px 28px 0;color:#788395;max-width:none !important;}
.report-disclaimer .material-icons {color:#6c90b3;font-size:19px;}
.law-report .report-disclaimer p {font-size:12px;color:#677585;line-height:1.7;}
.law-report .report-empty {color:#7d8897;font-size:14px;}
.report-action-buttons {display:flex;align-items:stretch;justify-content:center;gap:14px;flex-wrap:wrap;margin:18px 0 24px;}
.report-action-buttons button {display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:999px;padding:13px 22px;min-height:52px;font-size:15px;letter-spacing:.4px;font-weight:700;box-shadow:0 4px 16px rgba(20,43,75,.12);}
.report-action-buttons button .material-icons {color:inherit;font-size:20px;}
.report-action-buttons .report-download {background:linear-gradient(125deg,#3f78b6,#132e55);color:white;border:1px solid #25466a;}
.report-action-buttons .report-contact {background:#fff;color:#19395d;border:1px solid #c99d4a;}
.report-action-buttons .report-restart {background:linear-gradient(115deg,#ffedc7,#e6c681);color:#16365e;border:1px solid #cca15c;}
.report-action-buttons button:hover {filter:brightness(1.04);}
@media(max-width:900px){
 .law-report .report-risk-panel {grid-template-columns:180px minmax(0,1fr);}
 .report-risk-impact {grid-column:1/-1;border-top:1px solid #e8dfd0;padding-top:12px;margin-top:12px;}
 .report-risk-main {border-right:0;}
}
@media(max-width:620px){
 body.report-mode .wrapper{margin:58px auto 18px !important;padding:7px !important;}
 body.report-mode .card{padding:0 !important;}
 .law-report {font-size:14px;}
 .law-report .report-cover {padding:23px 14px 18px;margin-bottom:14px;border-radius:14px;}
 .report-cover-balance {font-size:34px !important;}
 .report-cover-title-wrap{gap:6px;}
 .law-report .report-cover h2 {font-size:clamp(23px,5.6vw,29px);letter-spacing:.3px;}
 .law-report .report-cover-subtitle{font-size:14px;}
 .report-desktop-only{display:none;}
 .report-decoration {left:5%;top:7px;}
 .report-promises{gap:5px;}
 .report-promises>span{font-size:11px;padding:5px 8px;gap:3px;}
 .report-promises .material-icons{font-size:15px;}
 body.report-mode .opinion-section.report-section{margin:0 4px 16px;padding:0 !important;}
 .law-report .report-section-title {font-size:20px;padding:8px 12px;letter-spacing:.5px;}
 .law-report .report-section-body {padding:10px 10px 13px;}
 .law-report .report-detail-row {grid-template-columns:100px minmax(0,1fr);gap:8px;}
 .law-report .report-row-label {font-size:13px;padding:7px 5px;}
 .law-report .report-row-content p,.law-report p {font-size:13.5px;line-height:1.8;}
 .law-report .report-risk-panel {grid-template-columns:1fr;padding:12px;}
 .report-risk-level{border-right:0;border-bottom:1px solid #e8dfd0;padding-bottom:10px;}
 .report-risk-level strong{font-size:25px;}
 .report-risk-main,.report-risk-impact{padding:10px 2px;}
 .report-risk-impact{grid-column:auto;margin-top:2px;}
 .law-report .report-action {grid-template-columns:30px minmax(0,1fr);gap:5px 8px;padding:9px 3px;}
 .report-action p{grid-column:2;}
 .report-action-num{width:28px;height:28px;font-size:14px;}
 .law-report .report-evidence-grid{grid-template-columns:1fr;gap:8px;padding:5px 4px;}
 .law-report .report-disclaimer{padding:12px;}
 .report-action-buttons{gap:9px;padding:0 6px;}
 .report-action-buttons button{font-size:13px;min-height:46px;padding:11px 15px;}
}
@media print{
 body.report-mode {background:#fff !important;}
 body.report-mode .wrapper{max-width:none;margin:0 !important;padding:0 !important;}
 body.report-mode .back-container,body.report-mode .tech-bg,body.report-mode .report-action-buttons,body.report-mode #suggestLawyerPrompt,body.report-mode #lawyerModal{display:none !important;}
 .law-report{padding:0;}
 body.report-mode .opinion-section.report-section{break-inside:avoid-page;}
 .law-report .report-cover{break-after:avoid-page;}
 .law-report .report-section-title{print-color-adjust:exact;-webkit-print-color-adjust:exact;}
 .law-report .report-action,.law-report .report-detail-row{break-inside:avoid;}
}

/* 防止原版通用 .opinion-section div 選擇器使新版表格收窄至 70ch */
.law-report .report-section-body div {max-width:none; margin-left:0; margin-right:0;}
.report-icon-svg {width:100%;height:100%;display:block;flex:0 0 auto;}
.report-cover-balance {width:62px;height:62px;color:#b08b40;display:inline-flex;flex:0 0 62px;}
.report-promise-check {width:20px;height:20px;color:#36a05b;display:inline-flex;}
.report-check-icon {width:23px;height:23px;flex:0 0 23px;color:#296cae;display:inline-flex;}
.report-shield-icon {width:19px;height:19px;color:#6c90b3;display:inline-flex;flex:0 0 19px;}
.report-button-icon {width:20px;height:20px;display:inline-flex;}
@media(max-width:620px){.report-cover-balance {width:34px;height:34px;flex-basis:34px;}.report-promise-check {width:15px;height:15px;}}

/* V2.3 — 依原始參考圖回歸清爽的法律書表，無外圍實線大框。 */
body, #step-container, #step-container textarea,
#step-container .opt-text, #step-container .opt-btn, #step-container .opt-custom,
.law-report, .law-report p, .law-report .report-detail-row,
.law-report .report-evidence-item {
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
}
#step-container .followup-question {
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  font-size:16.15px; /* 19px × 85% */
  line-height:1.86;
  font-weight:400 !important;
  letter-spacing:.015em;
}
#step-container .followup-question strong,
#step-container .followup-question b{font-weight:400!important;}
/* 用戶所提「指令」屬輔助引導文字，約縮小 30%；主要法律內容維持易讀。 */
#step-container .opt-custom > div:first-child,
#step-container .encouragement,
#step-container .hint-mini,
#step-container #inputLiveHint,
#step-container .voice-input-status {
  font-size:13px !important;
  line-height:1.65;
  font-weight:400 !important;
}
#step-container .opt-custom > div:first-child {color:#5e6e81!important;}
body.report-mode .law-report {
  border:0!important;border-radius:0!important;box-shadow:none!important;
  background:transparent!important;overflow:visible!important;padding:0 0 18px!important;
  font-size:17px;line-height:1.86;
}
body.report-mode .law-report .report-cover {
  border:0!important;border-radius:20px!important;box-shadow:none!important;
  margin-bottom:22px;
}
body.report-mode .opinion-section.report-section {
  margin:0 0 22px!important;padding:0!important;
  border:0!important;border-radius:17px!important;
  box-shadow:none!important;background:transparent!important;overflow:visible!important;
}
body.report-mode .law-report .report-section-title {
  font-family:"Noto Serif TC","Songti TC","PMingLiU",serif;
  font-size:27px;letter-spacing:.02em;line-height:1.55;
  color:#0f315c;background:linear-gradient(100deg,#dfecfa 0%,#edf4fc 70%,#f8fbfe 100%);
  border:0!important;border-radius:17px 17px 0 0!important;
  padding:8px 25px;
}
body.report-mode .law-report .report-section-body {
  border:1px solid #e0e7f0!important;border-top:0!important;
  border-radius:0 0 17px 17px!important;box-shadow:0 3px 14px rgba(23,48,81,.04);
  background:#fff!important;padding:8px 11px 14px!important;margin:0!important;
}
/* 報告內容沒有整塊縮排，表格佔滿章節寬度；只保留必要的欄位內距。 */
body.report-mode .law-report .report-legal-intro,
body.report-mode .law-report .report-actions,
body.report-mode .law-report .report-evidence-grid,
body.report-mode .law-report .report-details,
body.report-mode .law-report .report-legal-table {
  padding-left:0!important;padding-right:0!important;margin-left:0!important;margin-right:0!important;
  width:100%;max-width:none!important;
}
body.report-mode .law-report .report-legal-intro {padding-top:5px;padding-bottom:6px;}
body.report-mode .law-report .report-detail-row {
  grid-template-columns:166px minmax(0,1fr);
  gap:13px;align-items:stretch;border-color:#dce5f0;
}
body.report-mode .law-report .report-row-label {
  padding:10px 9px;margin:5px 0!important;
  font-size:19px;font-weight:700;line-height:1.6;
  color:#0f3056;background:#eff4fa;border:0;border-radius:8px;
}
body.report-mode .law-report .report-row-content {
  padding:8px 0!important;line-height:1.85;
}
body.report-mode .law-report p,
body.report-mode .law-report .report-row-content p,
body.report-mode .law-report .report-legal-intro p,
body.report-mode .law-report .report-action p {
  font-size:17.5px;line-height:1.85;color:#27364a;
  margin-left:0!important;text-indent:0!important;
}
body.report-mode .law-report .report-bullets {
  font-size:17px;line-height:1.8;margin:4px 0 8px;padding-left:20px;
}
body.report-mode .law-report .report-action {
  grid-template-columns:37px 157px minmax(0,1fr);
  padding:12px 1px;column-gap:10px;
}
body.report-mode .law-report .report-action strong {font-size:19px;line-height:1.65;}
body.report-mode .law-report .report-evidence-grid {gap:12px 18px;padding-top:8px;padding-bottom:6px;}
body.report-mode .law-report .report-evidence-item {font-size:19px;line-height:1.8;}
body.report-mode .law-report .report-evidence-note {font-size:13px;}
body.report-mode .law-report .report-disclaimer {padding-left:15px;padding-right:15px;}
body.report-mode .law-report .report-law-index,
body.report-mode .law-report .report-source-hint {padding-left:0;padding-right:0;}
/* 台灣法律書表閱讀字型：正文與追問採明體系，表格欄名和按鍵保留清楚無襯線。 */
body.report-mode .law-report,
body.report-mode .law-report p,
body.report-mode .law-report .report-row-content,
body.report-mode .law-report .report-legal-intro,
body.report-mode .law-report .report-action p,
body.report-mode .law-report .report-evidence-item,
#step-container .followup-question,
#step-container .opt-text,
#step-container .opt-custom,
#step-container .initial-input-with-mic textarea,
.card > .subtitle, .trust-note, #caseSummaryText {
  font-family:"Noto Serif TC","Songti TC","PMingLiU","Noto Sans TC",serif;
  font-weight:400;
}
/* 初始輸入區：麥克風確實位於輸入框右下，不遮擋輸入文字。 */
.initial-input-with-mic{position:relative;width:100%;}
#step-container .initial-input-with-mic textarea {
  display:block;width:100%;padding-right:54px!important;padding-bottom:57px!important;
  margin-bottom:0!important;font-family:"Noto Sans TC","PingFang TC","Microsoft JhengHei",sans-serif;
}
#step-container .initial-mic-button {
  position:absolute!important;right:13px;bottom:13px;z-index:2;
  width:40px;height:40px;min-width:40px;min-height:40px;
  padding:9px!important;border:1px solid #dae5f0!important;border-radius:50%!important;
  display:flex;align-items:center;justify-content:center;
  color:#1e4b76!important;background:#f6f9fd!important;
  box-shadow:0 2px 7px rgba(18,52,91,.08)!important;
  cursor:pointer;transition:background .2s,border-color .2s;
}
#step-container .initial-mic-button:hover {transform:none;background:#e6f0fa!important;box-shadow:0 2px 7px rgba(18,52,91,.12)!important;}
#step-container .initial-mic-button:focus-visible {outline:3px solid #83b8e8;outline-offset:2px;}
#step-container .initial-mic-button svg {width:21px;height:21px;display:block;flex:none;}
#step-container .initial-mic-button.recording {
  background:#fff0ee!important;color:#b12f35!important;border-color:#dba09f!important;
  box-shadow:0 0 0 4px rgba(202,53,58,.08)!important;
}
#step-container .voice-input-status {min-height:18px;margin-top:6px;color:#58728b;}
@media(max-width:900px){
  body.report-mode .law-report .report-action {grid-template-columns:35px 135px minmax(0,1fr);}
}
@media(max-width:620px){
  body.report-mode .law-report .report-cover {border-radius:14px!important;}
  body.report-mode .opinion-section.report-section {margin:0 0 17px!important;}
  body.report-mode .law-report .report-section-title {font-size:22px;letter-spacing:0;padding:9px 13px;}
  body.report-mode .law-report .report-section-body {padding:9px 10px 13px!important;}
  body.report-mode .law-report .report-detail-row {display:block;border-bottom:1px solid #e4eaf2;}
  body.report-mode .law-report .report-row-label {display:inline-flex;font-size:17px;min-width:106px;padding:5px 11px;margin:9px 0 3px!important;}
  body.report-mode .law-report .report-row-content {padding:3px 0 10px!important;}
  body.report-mode .law-report p,
  body.report-mode .law-report .report-row-content p,
  body.report-mode .law-report .report-legal-intro p,
  body.report-mode .law-report .report-action p,
  body.report-mode .law-report .report-bullets {font-size:16px;line-height:1.84;}
  body.report-mode .law-report .report-action {display:grid;grid-template-columns:30px minmax(0,1fr);gap:3px 8px;padding:11px 0;}
  body.report-mode .law-report .report-action strong {font-size:17px;}
  body.report-mode .law-report .report-evidence-grid {grid-template-columns:1fr;gap:10px;}
  body.report-mode .law-report .report-evidence-item {font-size:17px;}
  #step-container .followup-question {font-size:17.6px;}
}
@media print{
  body.report-mode .law-report {border:0!important;}
  body.report-mode .opinion-section.report-section {border:0!important;}
  body.report-mode .law-report .report-section-body {border:1px solid #e0e7f0!important;}
}


/* === V2.4｜最終意見書：沿用第一題頁面的「單張白色紙頁」視覺 ===
   外層採原始 .card 白底、28px 圓角與柔和陰影的設計語言；
   取消 V2.3 最終報告的透明無框外觀，但不新增粗實線外框。 
   以下只在報告完成後的 report-mode 套用，不影響一開始的問答頁。 */
body.report-mode {
  background: linear-gradient(135deg, var(--accent-bg, #f9f5ee), #f3f6fb) !important;
}
body.report-mode .wrapper {
  max-width: 1160px !important;
  margin: 54px auto 42px !important;
  padding: 22px !important;
}
/* 讓報告本體成為唯一紙頁；上層 .card 不重複產生第二道框。 */
body.report-mode .card {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}
body.report-mode #opinionDocument {
  width: 100%;
  max-width: 100%;
}
body.report-mode .law-report {
  background: #fff !important;
  border: 1px solid rgba(36,52,86,.08) !important;
  border-radius: 28px !important;
  padding: 38px 38px 27px !important;
  box-shadow: 0 18px 45px rgba(15,23,42,.06) !important;
  overflow: hidden !important;
  width: 100%;
  min-width: 0;
}
/* 封面與第一題頁面一致，主標題直接位於白紙，不再套入另一層霧感卡片。 */
body.report-mode .law-report .report-cover {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 22px 13px 28px !important;
  margin: 0 0 15px !important;
  min-height: 0 !important;
  overflow: visible !important;
}
body.report-mode .law-report .report-cover::before {display: none !important;}
body.report-mode .law-report .report-decoration {top: 9px; left: 13%;}
/* 四章標題、文字、麥克風與 12/18 秒倒數維持 V2.3。 */
@media (max-width: 620px) {
  body.report-mode .wrapper {
    margin: 68px auto 20px !important;
    padding: 9px !important;
  }
  body.report-mode .law-report {
    border-radius: 19px !important;
    padding: 17px 11px 19px !important;
    box-shadow: 0 9px 30px rgba(15,23,42,.065) !important;
  }
  body.report-mode .law-report .report-cover {
    padding: 12px 5px 21px !important;
    margin-bottom: 6px !important;
  }
  body.report-mode .law-report .report-decoration {top: 2px; left: 2%;}
}
@media print {
  body.report-mode { background: white !important; }
  body.report-mode .wrapper { margin: 0 !important; padding: 0 !important; max-width: none !important; }
  body.report-mode .law-report {
    border: 0 !important; border-radius: 0 !important;
    box-shadow: none !important; padding: 8px 0 !important;
    overflow: visible !important;
  }
}

/* === V2.5：追問 5% 字級增幅、全流程連續語音聽寫與摘要置中 === */
@media (min-width: 621px) {
  #step-container .followup-question {font-size:18.66px!important;} /* V2.4 16.15 × 1.05 */
}
/* 共用語音按鈕靠輸入框內右下角，錄音中改為明確紅色「停止」方塊。 */
#step-container .voice-input-with-mic {position:relative;width:100%;}
#step-container .voice-input-with-mic textarea {
  display:block;box-sizing:border-box;width:100%;margin:0!important;
  padding-right:63px!important;padding-bottom:61px!important;
}
#step-container .voice-dictation-button {
  position:absolute!important;right:13px;bottom:13px;z-index:5;
  width:44px;height:44px;min-height:44px;min-width:44px;
  display:flex;align-items:center;justify-content:center;
  padding:10px!important;margin:0!important;
  border-radius:50%!important;border:1px solid #c9d9e7!important;
  color:#1b4d7a!important;background:#f5f9fc!important;
  box-shadow:0 2px 8px rgba(17,51,84,.10)!important;
  cursor:pointer;transform:none!important;
}
#step-container .voice-dictation-button svg {display:block;width:22px;height:22px;flex:none;}
#step-container .voice-dictation-button:hover {background:#e7f1fa!important;}
#step-container .voice-dictation-button:focus-visible {outline:3px solid #8eb8d9;outline-offset:2px;}
#step-container .voice-dictation-button.recording {
  color:#b32d33!important;background:#fff1ef!important;border-color:#d59194!important;
  box-shadow:0 0 0 4px rgba(188,44,52,.1)!important;
}
#step-container .voice-dictation-button.recording:hover {background:#ffe5e2!important;}
#step-container .voice-input-status {font-size:13px;min-height:22px;margin-top:6px;color:#63798a;line-height:1.55;}
#step-container .voice-input-status.listening {color:#9d343a;}
/* 不產生第 2 層邊框或表格式分類欄位；第一章完整敘述居中。 */
body.report-mode .law-report .report-summary-prose {
  width:100%;margin:0!important;padding:17px 26px 20px!important;
  text-align:center;display:block;max-width:none!important;
}
body.report-mode .law-report .report-summary-prose p,
body.report-mode .law-report .report-summary-prose li {
  text-align:center;font-size:18px;line-height:1.92;font-weight:400;
  color:#27374c;margin:0 auto 12px;max-width:840px;
  overflow-wrap:anywhere;white-space:normal;text-indent:0;
}
body.report-mode .law-report .report-summary-prose p:last-child {margin-bottom:0;}
body.report-mode .law-report .report-summary-prose .report-bullets {padding:0;list-style-position:inside;}
@media(max-width:620px){
  body.report-mode .law-report .report-summary-prose {padding:13px 7px 18px!important;}
  body.report-mode .law-report .report-summary-prose p,
  body.report-mode .law-report .report-summary-prose li {font-size:16px;line-height:1.86;}
  #step-container .voice-dictation-button {right:11px;bottom:11px;width:42px;height:42px;min-width:42px;min-height:42px;}
}
@media print{
  body.report-mode .law-report .report-summary-prose {padding:8px 12px!important;}
}

/* 既有 .opt-custom .hint-mini 帶有負上邊距；新增錄音狀態列後必須消除重疊。 */
#step-container .opt-custom #followupVoiceStatus + .hint-mini {
  margin-top:8px!important;
  margin-bottom:10px!important;
}
#step-container #followupVoiceStatus {height:auto!important;min-height:24px;white-space:normal;}


/* === V2.7｜案件摘要／法律分析統一編號式橫列，不置中、不縮排 === */
body.report-mode .law-report .report-summary-list,
body.report-mode .law-report .report-legal-points {
  display:flex; flex-direction:column; width:100%; max-width:none!important;
  margin:0!important; padding:0!important; text-align:left;
}
body.report-mode .law-report .report-summary-list .report-action,
body.report-mode .law-report .report-legal-points .report-action {
  display:grid;grid-template-columns:37px 157px minmax(0,1fr);
  align-items:start;gap:12px 10px;padding:12px 1px;
  width:100%;max-width:none!important;margin:0!important;
  border-bottom:1px solid #dce5ef;
}
body.report-mode .law-report .report-summary-list .report-action:last-child,
body.report-mode .law-report .report-legal-points .report-action:last-child {border-bottom:0;}
body.report-mode .law-report .report-action-description {
  width:100%;max-width:none!important;margin:0!important;padding:0!important;
  text-align:left;min-width:0;
}
body.report-mode .law-report .report-action-description p,
body.report-mode .law-report .report-action-description li {
  font-family:"Noto Serif TC","Songti TC","PMingLiU",serif;
  font-size:17.5px;line-height:1.85;text-align:left!important;
  margin:0 0 7px!important;max-width:none!important;text-indent:0!important;
  font-weight:400;color:#27364a;overflow-wrap:anywhere;
}
body.report-mode .law-report .report-action-description p:last-child {margin-bottom:0!important;}
body.report-mode .law-report .report-action-description .report-bullets {margin:0 0 4px!important;padding-left:20px;}
@media(max-width:900px) and (min-width:621px){
 body.report-mode .law-report .report-summary-list .report-action,
 body.report-mode .law-report .report-legal-points .report-action {grid-template-columns:35px 135px minmax(0,1fr);}
}
@media(max-width:620px){
 body.report-mode .law-report .report-summary-list .report-action,
 body.report-mode .law-report .report-legal-points .report-action {
   grid-template-columns:30px minmax(0,1fr);gap:3px 8px;padding:11px 0;
 }
 body.report-mode .law-report .report-summary-list .report-action strong,
 body.report-mode .law-report .report-legal-points .report-action strong {grid-column:2;font-size:17px;}
 body.report-mode .law-report .report-summary-list .report-action-description,
 body.report-mode .law-report .report-legal-points .report-action-description {grid-column:2;}
 body.report-mode .law-report .report-action-description p,
 body.report-mode .law-report .report-action-description li {font-size:16px;line-height:1.84;}
}
@media print {
 body.report-mode .law-report .report-summary-list .report-action,
 body.report-mode .law-report .report-legal-points .report-action {break-inside:avoid-page;}
}


/* === V2.8｜桌面案件摘要：小標題到內文約三個中文字寬；法律分析仍維持原對齊 === */
@media (min-width: 901px) {
  body.report-mode .law-report .report-summary-list .report-action {
    grid-template-columns: 37px 122px minmax(0,1fr) !important;
  }
}
@media (min-width: 621px) and (max-width: 900px) {
  body.report-mode .law-report .report-summary-list .report-action {
    grid-template-columns: 35px 115px minmax(0,1fr) !important;
  }
}

/* 原 PDF 套件未到位時使用瀏覽器原生「另存為 PDF」；確保只印報告。 */
@page {size: A4; margin: 13mm 12mm 15mm;}
@media print {
  html, body {background:#fff!important;overflow:visible!important;}
  body.report-mode .tech-bg,
  body.report-mode .back-container,
  body.report-mode .report-action-buttons,
  body.report-mode #contextFaqBlock,
  body.report-mode #suggestLawyerPrompt,
  body.report-mode #lawyerModal,
  body.report-mode .progress-container,
  body.report-mode .trust-note {display:none!important;}
  body.report-mode .wrapper {width:100%!important;max-width:none!important;margin:0!important;padding:0!important;}
  body.report-mode .card {border:0!important;box-shadow:none!important;padding:0!important;}
  body.report-mode .law-report {background:#fff!important;border:0!important;box-shadow:none!important;padding:0!important;overflow:visible!important;}
  body.report-mode .law-report .report-cover {margin:0 0 11mm!important;padding:7mm 2mm 5mm!important;}
  body.report-mode .opinion-section.report-section {break-inside:auto!important;margin-bottom:6mm!important;}
  body.report-mode .law-report .report-section-title {break-after:avoid-page!important;}
  body.report-mode .law-report .report-section-body {box-shadow:none!important;}
  body.report-mode .law-report .report-action {break-inside:avoid-page!important;}
  body.report-mode .law-report .report-disclaimer {break-inside:avoid-page;}
  body.report-mode .law-report .report-summary-list .report-action {grid-template-columns:37px 122px minmax(0,1fr)!important;}
  body.report-mode .law-report * {-webkit-print-color-adjust:exact;print-color-adjust:exact;}
}


/* V2.9：全部報告編號橫列改為緊湊排列，取消虛寬標題欄。
   目標：標題結束到內文大致保留 2~3 個中文字，三種列型同一基線。 */
@media (min-width: 901px) {
  body.report-mode .law-report .report-summary-list .report-action,
  body.report-mode .law-report .report-legal-points .report-action,
  body.report-mode .law-report .report-actions:not(.report-summary-list):not(.report-legal-points) .report-action {
    display:grid!important;
    grid-template-columns:44px 130px minmax(0,1fr)!important;
    column-gap:9px!important;
    row-gap:0!important;
    align-items:start!important;
    padding:13px 0!important;
  }
}
@media (min-width:621px) and (max-width:900px) {
  body.report-mode .law-report .report-summary-list .report-action,
  body.report-mode .law-report .report-legal-points .report-action,
  body.report-mode .law-report .report-actions:not(.report-summary-list):not(.report-legal-points) .report-action {
    display:grid!important;
    grid-template-columns:40px 116px minmax(0,1fr)!important;
    column-gap:8px!important;
    align-items:start!important;
  }
}
body.report-mode .law-report .report-summary-list .report-action strong,
body.report-mode .law-report .report-legal-points .report-action strong,
body.report-mode .law-report .report-actions .report-action strong {
  white-space:normal!important;
  margin:0!important;
  padding:0!important;
  align-self:start;
}
body.report-mode .law-report .report-action-description,
body.report-mode .law-report .report-actions .report-action > p {
  width:auto!important;
  margin-left:0!important;
  margin-right:0!important;
  padding-left:0!important;
  text-indent:0!important;
  min-width:0!important;
}
/* 下載匯出為自動產生 PDF；不要讓瀏覽器執行列印對話框。 */

/* V3.2｜採用中等緊湊版：桌面與手機三題追問縮小上下行距，字體與編號水平距離保持不變。 */
#step-container .followup-question {
  font-family:"Noto Sans TC","PingFang TC","Microsoft JhengHei",system-ui,sans-serif;
  letter-spacing:0;
  display:flex;
  flex-direction:column;
  gap:8px;
  margin:14px 0 18px;
  font-weight:700!important;
  line-height:1.65;
  overflow-wrap:anywhere;
}
#step-container .followup-question-row {
  display:grid;
  grid-template-columns:max-content minmax(0, 1fr);
  column-gap:4px;
  align-items:start;
}
#step-container .followup-question-num {
  color:var(--primary);
  font-weight:700!important;
  white-space:nowrap;
}
#step-container .followup-question-text,
#step-container .followup-question strong,
#step-container .followup-question b {
  color:var(--primary-dark);
  font-weight:700!important;
  min-width:0;
}
@media (max-width:620px) {
  #step-container .followup-question {gap:8px;line-height:1.65;margin-top:15px;}
  #step-container .followup-question-row {grid-template-columns:max-content minmax(0,1fr);}
}
