/* 編輯器（內部使用） */
.editor-body { background: #eef6f7; font-size: 16px; }
.ed-top {
  position: sticky; top: 0; z-index: 50; background: var(--navy); color: #fff;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 10px 16px;
  border-bottom: 3px solid var(--gold);
}
.ed-brand { font-size: 18px; }
.ed-brand b { color: var(--gold-2); }
.ed-internal { margin-left: 10px; font-size: 12px; background: #b3261e; padding: 2px 8px; border-radius: 999px; vertical-align: middle; }
.ed-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.btn {
  appearance: none; border: 1px solid #cfe3e6; background: #fff; color: var(--navy); font: inherit; font-size: 15px; font-weight: 700;
  padding: 7px 12px; border-radius: 10px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 4px;
}
.btn:hover { filter: brightness(.96); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-sm { font-size: 13px; padding: 4px 8px; border-radius: 8px; }
.btn-danger { color: var(--danger); }


.ed-layout { display: grid; grid-template-columns: 1fr; gap: 16px; padding: 16px; max-width: 1600px; margin: 0 auto; }
@media (min-width: 1100px) {
  .ed-layout { grid-template-columns: minmax(520px, 1fr) minmax(430px, 1fr); align-items: start; }
  .ed-preview { position: sticky; top: 70px; height: calc(100vh - 86px); }
  .pv-scroll { height: calc(100% - 44px); }
}
.ed-card { background: #fff; border-radius: 14px; padding: 16px; margin-bottom: 14px; border: 1px solid var(--line); }
.ed-card h2 { margin: 0 0 10px; font-size: 17px; color: var(--navy); }
.ed-card h2 small { font-weight: 400; color: var(--muted); font-size: 13px; }
.ed-card h3 { margin: 16px 0 8px; font-size: 15px; color: var(--navy); border-left: 4px solid var(--gold); padding-left: 8px; }
.grid { display: grid; gap: 10px 12px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
label { display: flex; flex-direction: column; gap: 3px; font-size: 13.5px; color: var(--muted); font-weight: 600; }
label.check { flex-direction: row; align-items: center; gap: 8px; color: var(--ink); font-size: 15px; }
input[type=text], input[type=tel], input[type=number], input[type=date], input[type=time], select, textarea {
  font: inherit; font-size: 16px; color: var(--ink); padding: 8px 10px; border: 1px solid #cfe3e6; border-radius: 9px; background: #fff; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
input::placeholder { color: #8b97a5; }
.hint { font-size: 12px; color: var(--muted); font-weight: 400; }
.hint.auto { color: #2a6b3f; }
.sample-check { margin-top: 12px; background: #fdecea; padding: 8px 10px; border-radius: 9px; }

.plan-tabs { display: flex; gap: 6px; margin-bottom: 8px; position: sticky; top: 58px; z-index: 5; background: #eef6f7; padding: 6px 0; }
.plan-tabs button { flex: 1; font: inherit; font-weight: 800; padding: 9px; border-radius: 10px; border: 1px solid #cfe3e6; background: #fff; color: var(--navy); cursor: pointer; }
.plan-tabs button.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.plan-form[hidden] { display: none; }
.sumbar { display: flex; flex-wrap: wrap; gap: 6px 16px; background: var(--gold-soft); border: 1px solid #cfe3e6; border-radius: 10px; padding: 8px 12px; font-size: 14px; color: #2e5566; margin-top: 10px; }
.sumbar b { color: var(--navy); }
.sub-box { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-top: 10px; }
.sub-box.off { opacity: .55; }
.preset-row { display: flex; gap: 8px; align-items: end; flex-wrap: wrap; margin-bottom: 8px; }
.preset-row label { flex: 1 1 260px; }

.list-ed { display: flex; flex-direction: column; gap: 6px; }
.list-row { display: grid; grid-template-columns: 1fr 1.3fr auto; gap: 6px; align-items: center; }
.list-row .row-btns { display: flex; gap: 3px; }
.list-row input { font-size: 15px; padding: 6px 8px; }
@media (max-width: 560px) {
  .list-row { grid-template-columns: 1fr; padding-bottom: 8px; border-bottom: 1px dashed var(--line); }
}

.checks h2 { margin-bottom: 6px; }
.checks ul { margin: 0; padding-left: 1.2em; font-size: 14px; }
.checks li.warn { color: #9a5b00; }
.checks li.err { color: var(--danger); font-weight: 700; }
.checks li.ok { color: #2a6b3f; }

.ed-preview { background: #d6e7ea; border-radius: 14px; overflow: hidden; border: 1px solid #c3dadf; }
.pv-bar { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; background: #fff; font-weight: 700; color: var(--navy); height: 44px; }
.pv-toggle button { font: inherit; font-size: 13px; padding: 4px 10px; border: 1px solid #cfe3e6; background: #fff; border-radius: 8px; cursor: pointer; }
.pv-toggle button.on { background: var(--navy); color: #fff; }
.pv-scroll { overflow: auto; padding: 12px; }
.pv-frame { margin: 0 auto; background: var(--bg); border-radius: 18px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,.18); width: 390px; max-width: 100%; }
.pv-frame.full { width: 100%; }
/* 預覽框內：固定使用手機排版（不依視窗寬度切換） */
.pv-frame:not(.full) .plans { grid-template-columns: 1fr !important; padding: 16px 14px 8px; }
.pv-frame:not(.full) .plan-nav { display: flex !important; }
.pv-frame:not(.full) .hero-title { font-size: 40px; }
.pv-frame .sample-banner, .pv-frame .plan-nav { position: static; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 10px 18px; border-radius: 999px; z-index: 100; font-weight: 700; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.pv-frame.full .plans { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important; }

/* 產險進階摺疊 */
.prop-advanced { border: 1px dashed #cfe3e6; border-radius: 10px; padding: 8px 10px; background: #f7fbfc; }
.prop-advanced summary { cursor: pointer; font-weight: 700; color: var(--navy); font-size: 14px; }

.schengen-toggle {
  display: flex; align-items: flex-start; gap: 12px; margin-top: 12px; padding: 12px 14px;
  border: 2px solid #c9a24a; border-radius: 12px; background: #f3f9fa; cursor: pointer;
}
.schengen-toggle input { width: 22px; height: 22px; margin-top: 2px; accent-color: #0b4f7a; flex: 0 0 auto; }
.schengen-toggle .st-title { font-size: 17px; font-weight: 800; color: #0b4f7a; }
.schengen-toggle .st-desc { font-size: 13px; color: #6b8592; margin-top: 2px; line-height: 1.45; }
.simple-amt { font-size: 18px !important; font-weight: 700; padding: 12px 14px !important; }
.plan-simple-hint { margin: 0 0 10px; color: #2a6b3f; font-size: 14px; font-weight: 600; }

.schengen-toggle #schengenAutoHint {
  display: block;
  margin-top: 6px;
  color: #0b6e4f;
  font-weight: 600;
}
.schengen-toggle #schengenAutoHint[hidden] { display: none; }

.build-ver {
  margin: 12px 4px 4px;
  font-size: 12px;
  color: #8a97a5;
  text-align: center;
  letter-spacing: 0.02em;
}

/* 國內地點警告（台灣／金門／馬祖／澎湖…不適用海外旅平險） */
.dest-warn { display: block; margin-top: 6px; padding: 8px 10px; border-radius: 8px; background: #fdecec; border: 1px solid #e0a3a3; color: #c62828; font-size: 13px; font-weight: 700; line-height: 1.5; }
.dest-warn[hidden] { display: none; }
input.is-domestic { border-color: #c62828 !important; box-shadow: 0 0 0 2px rgba(198, 40, 40, .18); background: #fff7f7; }
.btn.is-blocked { opacity: .45; cursor: not-allowed; filter: grayscale(.6); }

/* 年齡提示／超限選項 */
.dest-warn.soft { background: #fff4e5; border-color: #f0c27a; color: #9a5b00; }
.age-note { display: block; margin-top: 6px; padding: 6px 10px; border-radius: 8px; background: #e3eef6; color: #0a6d8f; font-size: 12.5px; }

/* 天數：依日期自動（唯讀文字，無輸入框） */
.date-row { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; align-items: end; } /* fr12：與修正前桌機外觀相同（兩欄）；手機見下方 */
.date-row .days-auto { grid-column: 1 / -1; min-height: 0; padding: 8px 12px; background: #eef7fb; border: 1px solid #bfe0ec; border-radius: 10px; }
.days-auto-sub { display: block; font-size: 12.5px; color: #33607a; margin-top: 2px; }
.days-auto-sub:empty { display: none; }
.period-hint { grid-column: 1 / -1; margin: 0; font-size: 12.5px; line-height: 1.55; color: #5a6b7d; }
.period-hint b { color: #0a4d6d; }
.date-row .dest-warn { grid-column: 1 / -1; margin-top: 0; }
.days-auto { display: flex; flex-direction: column; justify-content: flex-end; min-height: 42px; padding-bottom: 6px; }
.days-auto-lbl { font-size: 12px; color: var(--muted); }
.days-auto-val { display: block; font-weight: 800; color: var(--navy); font-size: 18px; }
.days-auto-val:empty::before { content: '—'; color: #9aa7b6; font-weight: 400; }
/* fr12：手機（≤560px）不強制兩欄：每欄至少 150px，放不下自動改單欄；預覽比較表不撐寬 */
@media (max-width: 560px) {
  .date-row { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  .days-auto { grid-column: 1 / -1; min-height: 0; }
  .ed-layout { padding: 10px; gap: 12px; }
  .pv-scroll { padding: 8px; }
  .pv-frame:not(.full) table.cmp { min-width: 0; }
}

/* 頁首兩行：標語＋系統名稱 */
.ed-brand { display: flex; flex-direction: row; align-items: center; gap: 10px; line-height: 1.3; }
.ed-logo { display: block; width: 34px; height: 48px; flex: none; }
.ed-brand-text { display: flex; flex-direction: column; }
.ed-slogan { display: block; font-size: 13px; font-weight: 700; letter-spacing: .08em; color: #fff; opacity: .92; }
.ed-title { display: block; }
.ed-internal { white-space: nowrap; display: inline-block; }
.ed-brand-text { min-width: 0; }
@media (max-width: 560px) {
  .ed-brand { font-size: 16px; }
  .ed-title b { display: block; }
  .ed-title .ed-internal { margin: 3px 0 0; }
}

/* ===== 版面 ===== */
.ed-logo { width: 42px; height: 42px; border-radius: 50%; }
.plan-kind { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 10px; }
.kind-chk {
  flex: 1 1 200px; display: flex; flex-direction: row; align-items: center; gap: 10px; cursor: pointer;
  padding: 10px 12px; border-radius: 10px; border: 1.5px solid #cfe3e6; background: #f3f9fa; color: #0b4f7a;
}
.kind-chk.on { border-color: #c9a24a; background: #eefaf8; }
.kind-chk input { width: 20px; height: 20px; margin: 0; flex: none; }
.kind-txt { display: flex; flex-direction: column; line-height: 1.3; }
.kind-txt b { font-size: 16px; }
.kind-txt small { font-weight: 400; color: #6b8592; font-size: 12.5px; }
.prop-box.off { opacity: .55; }
.quick-prem { margin-top: 8px; }

/* ===== 115/10/06 美編：編輯器同 DM 色系 ===== */
.ed-top { background: linear-gradient(135deg, var(--teal-d) 0%, var(--navy-2) 55%, var(--navy) 100%); border-bottom: 4px solid var(--gold); }
.ed-logo { border: 2px solid var(--gold); box-sizing: border-box; }
.ed-brand b { color: #fff; }
.ed-slogan { color: var(--gold-2); opacity: 1; }
.btn { border-radius: 30px; padding: 7px 14px; }
.btn-gold { background: var(--teal); border-color: var(--teal); color: #fff; }
.btn-gold:hover { background: var(--teal-d); }
.btn-sm { border-radius: 20px; }
.ed-card { border-radius: 18px; border: 0; box-shadow: 0 6px 18px rgba(11,79,122,.08); }
.ed-card h2 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ed-card h2::before { content: ""; width: 5px; height: 18px; border-radius: 3px; background: var(--teal); }
.ed-card h3 { border-left-color: var(--teal); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--teal); border-color: var(--teal); }
.plan-tabs button { border-radius: 30px; }
.plan-tabs button.on { background: var(--navy); border-color: var(--navy); }
.plan-tabs button:nth-child(2).on { background: var(--navy-2); border-color: var(--navy-2); }
.plan-tabs button:nth-child(3).on { background: linear-gradient(135deg, var(--teal), var(--teal-d)); border-color: var(--teal-d); }
.sumbar { background: var(--tint-teal); border-color: var(--dash); }
.kind-chk.on { border-color: var(--teal); background: var(--tint-teal); }
.kind-chk input, .schengen-toggle input { accent-color: var(--teal-d); }
.schengen-toggle { border-color: var(--gold); background: var(--gold-soft); }
.ed-preview { border-radius: 18px; }
.pv-bar { color: var(--navy); }
.pv-toggle button { border-radius: 20px; }
.pv-toggle button.on { background: var(--navy); border-color: var(--navy); }
.pv-frame { background: var(--bg); border-radius: 22px; }
.toast { background: var(--navy); border: 2px solid var(--gold); }
.reco-badge[style] { margin-left: 6px; }
/* 預覽框內：固定使用手機排版（不依視窗寬度切換） */
.pv-frame:not(.full) .hero { padding: 22px 20px 26px; border-radius: 0; }
.pv-frame:not(.full) .hero-title { font-size: 34px; }
.pv-frame:not(.full) .hero-sub { font-size: 16px; }
.pv-frame:not(.full) .hero-trip { font-size: 15px; }
.pv-frame:not(.full) .plans { margin-top: 0; padding: 16px 14px 8px; }
.pv-frame:not(.full) .cmp-card, .pv-frame:not(.full) .notes-wrap { margin-left: 14px; margin-right: 14px; padding: 18px 14px 14px; }
.pv-frame:not(.full) .cmp th { font-size: 14px; padding: 9px 4px; }
.pv-frame:not(.full) .cmp th.k { width: 28%; }
.pv-frame:not(.full) .cmp td { font-size: 15px; padding: 9px 4px; }
.pv-frame:not(.full) .cmp td.k { font-size: 14px; padding-left: 10px; }
.pv-frame:not(.full) .cmp td small, .pv-frame:not(.full) .cmp th small { font-size: 11px; }
.pv-frame:not(.full) .cmp td.txt, .pv-frame:not(.full) .cmp td.miss { font-size: 12.5px; }
.pv-frame:not(.full) .site-footer { border-radius: 0; padding: 20px 18px 18px; }
.pv-frame:not(.full) .sig-wrap { flex-wrap: wrap; gap: 12px 16px; }
.pv-frame:not(.full) .sig-logo { width: 76px; height: 76px; }
.pv-frame:not(.full) .sig-name { font-size: 24px; }
.pv-frame:not(.full) .sig-phone { flex: 1 1 100%; margin-left: 0; font-size: 22px; }
.pv-frame.full .plans { margin-top: -76px; }

/* ===== 三方案總表圖（離屏渲染；同 DM 1080 版面，780px × scale 2） ===== */
#summaryExportHost { position: fixed; left: -10000px; top: 0; width: 780px; pointer-events: none; z-index: -1; }
.sum-root {
  width: 780px; background: #eef6f7; color: #1d3340; box-sizing: border-box; padding-bottom: 0;
  font-family: "Noto Sans CJK TC", "Noto Sans TC", "PingFang TC", "Heiti TC", "Microsoft JhengHei", sans-serif;
}
.sum-sample {
  background: repeating-linear-gradient(45deg, #b3261e, #b3261e 10px, #c4362d 10px, #c4362d 20px);
  color: #fff; text-align: center; font-weight: 800; padding: 8px; font-size: 14px; letter-spacing: .06em;
}
.sum-hero {
  background: linear-gradient(135deg, #00837f 0%, #0a6d8f 60%, #0b4f7a 100%);
  color: #fff; padding: 26px 40px 78px; position: relative; overflow: hidden;
}
.sum-hero::after { content: ""; position: absolute; right: -90px; top: -90px; width: 300px; height: 300px; border-radius: 50%; background: rgba(255,255,255,.07); }
.sum-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; position: relative; z-index: 1; }
.sum-tag-pill { display: inline-block; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.35); border-radius: 30px; padding: 4px 16px; font-size: 17px; letter-spacing: 2px; }
.sum-hbadge { display: inline-block; background: #fff; color: #0b4f7a; border-radius: 30px; padding: 4px 14px; font-size: 15px; font-weight: 700; }
.sum-hbadge.gold { background: #c9a24a; color: #fff; }
.sum-title { font-size: 48px; font-weight: 700; letter-spacing: 3px; margin: 10px 0 2px; line-height: 1.2; position: relative; z-index: 1; }
.sum-sub { font-size: 22px; opacity: .95; position: relative; z-index: 1; }
.sum-trip { display: flex; gap: 10px; margin-top: 16px; font-size: 18px; flex-wrap: wrap; position: relative; z-index: 1; }
.sum-trip span { background: rgba(255,255,255,.14); border-radius: 9px; padding: 7px 13px; }
.sum-trip b { font-weight: 700; }
.sum-plans { margin: -58px 28px 0; position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.sum-card {
  background: #fff; border-radius: 17px; box-shadow: 0 7px 21px rgba(11,79,122,.14); padding: 0 0 14px; overflow: hidden;
  display: flex; flex-direction: column; border: 2px solid transparent; --pc: #0b4f7a;
}
.sum-card.pc2 { --pc: #0a6d8f; } .sum-card.pc3 { --pc: #00837f; }
.sum-card.reco { border-color: #c9a24a; }
.sum-card-h { padding: 11px 13px 10px; color: #fff; background: var(--pc); }
.sum-card.pc3 .sum-card-h { background: linear-gradient(135deg, #00a29a, #00837f); }
.sum-card-h .no { font-size: 15px; opacity: .9; letter-spacing: 2px; display: flex; align-items: center; gap: 6px; }
.sum-card-h .nm { font-size: 22px; font-weight: 700; line-height: 1.25; }
.sum-badge { margin-left: auto; background: #c9a24a; color: #fff; font-size: 12px; font-weight: 700; border-radius: 20px; padding: 1px 9px; letter-spacing: 1px; }
.sum-tag { display: inline-block; margin: 11px 13px 0; font-size: 13.5px; font-weight: 700; border-radius: 20px; padding: 3px 11px; align-self: flex-start; background: #e3eef6; color: #0b4f7a; }
.sum-card.pc2 .sum-tag { background: #fff1d6; color: #a86a00; }
.sum-card.pc3 .sum-tag { background: #dff4f1; color: #00837f; }
.sum-card.reco .sum-tag { background: #c9a24a; color: #fff; }
.sum-price-box { margin: 6px 13px 0; }
.sum-price { color: var(--pc); font-weight: 700; display: flex; align-items: baseline; gap: 4px; }
.sum-price .c { font-size: 15px; } .sum-price .n { font-size: 42px; line-height: 1.1; letter-spacing: -.5px; }
.sum-price.miss { font-size: 17px; color: #a86a00; padding: 6px 0; }
.sum-price-sub { font-size: 12.5px; color: #6b8592; min-height: 18px; }
.sum-kp { margin: 9px 13px 0; border-top: 1px dashed #cfe3e6; padding-top: 7px; }
.sum-kp div { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; font-size: 13.5px; padding: 2px 0; color: #4b6573; }
.sum-kp b { color: #1d3340; font-size: 15px; white-space: nowrap; }
.sum-kp .tr b { color: #0b4f7a; }
.sum-kp .yes b { color: #00837f; }
.sum-kp .no-t, .sum-kp .no-t b { color: #9aaab2; font-weight: 400; }
.sum-region { margin: 8px 13px 0; padding: 5px 8px; border-radius: 8px; background: #fff1d6; color: #8a5600; font-size: 11.5px; font-weight: 700; line-height: 1.4; }
.sum-note { margin: 12px 28px 0; background: #fff; border-radius: 13px; padding: 9px 15px; font-size: 14.5px; color: #2e5566; display: flex; gap: 9px; align-items: flex-start; box-shadow: 0 4px 12px rgba(11,79,122,.08); }
.sum-note i { font-style: normal; background: #00a29a; color: #fff; border-radius: 50%; width: 21px; height: 21px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; flex: none; margin-top: 2px; }
.sum-note b { color: #0b4f7a; }
.sum-cmp { margin: 14px 28px 0; background: #fff; border-radius: 19px; box-shadow: 0 7px 21px rgba(11,79,122,.12); padding: 18px 19px 15px; }
.sum-sec-title { font-size: 23px; font-weight: 700; color: #0b4f7a; display: flex; align-items: center; gap: 10px; }
.sum-sec-title::before { content: ""; width: 7px; height: 23px; border-radius: 4px; background: #00a29a; }
.sum-sec-title small { font-size: 14px; color: #6b8592; font-weight: 400; margin-left: auto; }
.sum-cmp table.cmp { margin-top: 11px; min-width: 0; }
.sum-cmp .cmp th { font-size: 15px; padding: 9px 4px; }
.sum-cmp .cmp th.k { width: 23%; }
.sum-cmp .cmp th small { font-size: 12px; }
.sum-cmp .cmp td { font-size: 16px; padding: 8px 4px; }
.sum-cmp .cmp td.k { font-size: 14.5px; padding-left: 10px; }
.sum-cmp .cmp td small { font-size: 11px; }
.sum-cmp .cmp td.txt, .sum-cmp .cmp td.miss { font-size: 12.5px; }
.sum-cmp .cmp tr.prem td:not(.k) { font-size: 18px; }
.sum-foot { margin-top: 16px; background: linear-gradient(135deg, #0b4f7a, #0a3d5e); color: #fff; padding: 16px 30px 14px; border-top: 4px solid #c9a24a; }
.sum-foot-row { display: flex; align-items: center; gap: 15px; }
.sum-foot-logo { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; border: 2px solid #c9a24a; box-shadow: 0 0 0 3px rgba(201,162,74,.25); flex: none; box-sizing: border-box; }
.sum-foot .who { min-width: 0; }
.sum-foot .u { font-size: 14px; color: #e6c97a; letter-spacing: 2px; }
.sum-foot .n { font-size: 26px; font-weight: 700; letter-spacing: 1.5px; line-height: 1.3; }
.sum-foot .o { font-size: 12.5px; color: #c9dbe6; letter-spacing: 1px; }
.sum-foot .ph { margin-left: auto; font-size: 27px; font-weight: 700; background: #00a29a; border-radius: 30px; padding: 4px 20px; letter-spacing: .5px; white-space: nowrap; }
.sum-foot .note { font-size: 12px; opacity: .75; margin-top: 8px; }
.sum-cmp .cmp tr.prem td.miss { font-size: 13px; }
.pv-frame:not(.full) .cmp tr.prem td.miss { font-size: 12.5px; }
.sum-sample { background: #b3261e; }

/* fr3：方案類型下拉＋快速套用 */
.kind-sel { display: block; margin: 4px 0 10px; font-weight: 700; color: var(--navy); }
.kind-sel select { display: block; width: 100%; margin-top: 4px; font-size: 16px; font-weight: 700; padding: 10px 12px; border: 2px solid var(--teal); border-radius: 10px; background: var(--tint-teal); color: var(--navy); }
.quick-card { border: 2px solid var(--gold, #c9a24a); }
.quick-row { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; }
.quick-row label { flex: 1 1 220px; }
.quick-row .btn { flex: 0 0 auto; min-height: 42px; }
.name-state { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; }

/* ===== 業務員資料（fr5：旅平險／意外險共用） ===== */
.agent-card { border: 2px solid var(--gold); background: linear-gradient(180deg, #fffaf0 0%, #fff 60%); }
.agent-card.is-missing { border-color: #d9534f; box-shadow: 0 0 0 3px rgba(217, 83, 79, .12); }
.agent-card.flash { animation: agentFlash .8s ease 2; }
@keyframes agentFlash { 50% { box-shadow: 0 0 0 6px rgba(217, 83, 79, .35); } }
.agent-grid { grid-template-columns: 1fr 1fr 1.3fr; }
@media (max-width: 560px) { .agent-grid { grid-template-columns: 1fr 1fr; } .agent-grid label:last-child { grid-column: 1 / -1; } }
.agent-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
.agent-unit { font-size: 13px; color: var(--muted); }
.agent-status { margin: 8px 0 0; padding: 7px 10px; border-radius: 8px; font-size: 14px; font-weight: 700; }
.agent-status.err { background: #fdecea; color: var(--danger, #c0392b); }
.agent-status.warn { background: #fff4e0; color: #9a5b00; }
.agent-status.ok { background: #eaf6ee; color: #2a6b3f; }

/* fr6：保險期間（日期＋時間、每滿 24 小時一天） */
.days-auto-sub.warn { color: #9a5b00; font-weight: 700; }
#form input[type="time"] { min-width: 0; }

/* fr7：輸入方式（填天數／填回程日期），結束時間唯讀 */
.date-row .mode-sel { grid-column: 1 / -1; max-width: 260px; }
.date-row.mode-days .m-range, .date-row.mode-range .m-days { display: none; }
#endTimeRO { background: #f3f6f8; color: #33607a; }
