/* Free tools (/tools). Every rule is scoped to .ft so no other page is affected.
   Works inside the classic and the new public layout. */
.ft { --ink:#0f2236; --body:#33475b; --muted:#5a6b7d; --faint:#8a99a8; --line:#e2e8ef; --line2:#eef2f6; --cloud:#f4f7fa;
  --blue:#1273c4; --blue-d:#0e5fa3; --tint:#e8f3fc; --ok:#149c6b; --ok-t:#e6f5ee; --warn:#c98a0b; --warn-t:#fbf3e3; --bad:#d0422f;
  font-family: 'Manrope', 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif; color: var(--ink); -webkit-font-smoothing: antialiased;
  font-size: 15px; line-height: 1.5; text-align: left; }
.ft *, .ft *::before, .ft *::after { box-sizing: border-box; }
.ft h1, .ft h2, .ft h3, .ft p { margin: 0; }
.ft a { color: inherit; text-decoration: none; }
.ft button { font-family: inherit; }
.ft svg { flex: none; }
.ft :focus-visible { outline: 3px solid rgba(18,115,196,.35); outline-offset: 2px; }
.ft-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 10px;
  font-weight: 700; font-size: 14.5px; border: 1px solid transparent; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, transform .1s; text-decoration: none !important; }
.ft-btn:active { transform: scale(.98); }
.ft-btn-p { background: var(--blue); color: #fff !important; }
.ft-btn-p:hover { background: var(--blue-d); }
.ft-btn-o { background: #fff; color: var(--ink) !important; border-color: #d5dee8; }
.ft-btn-o:hover { border-color: #b9c8d8; background: #fbfcfd; }
.ft-btn-q { background: var(--cloud); color: var(--ink) !important; }
.ft-btn-q:hover { background: #e9eef3; }
.ft-btn-g { background: var(--ok); color: #fff !important; }
.ft-btn-sm { height: 38px; padding: 0 14px; font-size: 14px; }
.ft-btn[disabled], .ft-btn.is-busy { opacity: .65; pointer-events: none; }
.ft-preview-note { background: #fff8e8; border-bottom: 1px solid #f2d79c; color: #6b4d06; font-size: 13.5px; font-weight: 600; text-align: center; padding: 9px 16px; }

/* ── Hub ─────────────────────────────────────────────────────────────── */
.ft-hero { background: #fff; border-bottom: 1px solid var(--line); }
.ft-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.ft-hero .ft-wrap { display: flex; align-items: center; gap: 40px; padding-top: 44px; padding-bottom: 40px; }
.ft-hero-tx { flex: 1; min-width: 0; }
.ft-crumb { font-size: 13.5px; font-weight: 600; color: var(--faint); margin-bottom: 16px; }
.ft-crumb a:hover { color: var(--blue); }
.ft-crumb b { color: var(--blue); }
.ft-hero h1 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.06; letter-spacing: -.035em; font-weight: 800; max-width: 620px; }
.ft-lead { font-size: 18px; line-height: 1.6; color: var(--muted); margin-top: 16px !important; max-width: 540px; }
.ft-search { margin-top: 28px; display: flex; align-items: center; gap: 12px; height: 56px; max-width: 540px; padding: 0 8px 0 16px; border: 1px solid #d5dee8;
  border-radius: 14px; background: #fff; box-shadow: 0 8px 24px -12px rgba(15,34,54,.18); color: var(--faint); }
.ft-search input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 15.5px; color: var(--ink); background: transparent; height: 100%; }
.ft-ticks { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 18px; font-size: 14px; font-weight: 600; color: var(--body); }
.ft-ticks span { display: inline-flex; gap: 7px; align-items: center; }
.ft-hero-art { flex: none; }
.ft-main { max-width: 1200px; margin: 0 auto; padding: 32px 24px 64px; }
.ft-chips { display: flex; gap: 10px; align-items: center; margin-bottom: 24px; flex-wrap: wrap; }
.ft-chip { height: 40px; padding: 0 16px; border-radius: 20px; border: 1px solid #d5dee8; background: #fff; font-size: 14px; font-weight: 700;
  display: inline-flex; align-items: center; gap: 8px; color: var(--body); cursor: pointer; }
.ft-chip i { font-style: normal; font-size: 12px; color: var(--faint); }
.ft-chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.ft-chip[aria-pressed="true"] i { color: #b7c6d6; }
.ft-chips .ft-sp { flex: 1; }
.ft-chips .ft-cnt { font-size: 14px; color: var(--muted); font-weight: 600; }
.ft-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.ft-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; transition: border-color .15s, box-shadow .15s; }
a.ft-card:hover { border-color: #b9d3ea; box-shadow: 0 14px 30px -18px rgba(15,34,54,.35); }
.ft-card-art { height: 140px; overflow: hidden; display: flex; justify-content: center; }
.ft-card-b { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.ft-card-m { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.ft-cat { font-size: 12.5px; font-weight: 700; }
.ft-badge { font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 20px; white-space: nowrap; }
.ft-badge.live { color: #0f7a52; background: var(--ok-t); }
.ft-badge.soon { color: var(--muted); background: #f1f4f7; }
.ft-card-n { font-size: 16.5px; font-weight: 800; letter-spacing: -.01em; }
.ft-card-d { font-size: 13.5px; line-height: 1.55; color: var(--muted); margin-top: 5px; flex: 1; }
.ft-card-u { margin-top: 14px; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 800; color: var(--blue); }
.ft-card.soon .ft-card-art { opacity: .78; }
.ft-card.soon .ft-card-u { color: var(--faint); }
.ft-card.sug { border: 1.5px dashed #b9cde0; background: #f8fbfe; padding: 24px 22px; justify-content: center; align-items: flex-start; }
.ft-sug-ic { width: 52px; height: 52px; border-radius: 14px; background: var(--tint); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.ft-empty { display: none; text-align: center; color: var(--muted); padding: 40px 0; font-weight: 600; }
.ft-how { margin-top: 44px; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px 32px; display: flex; gap: 28px; align-items: center; }
.ft-how h2 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; width: 250px; line-height: 1.25; flex: none; }
.ft-steps { flex: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.ft-step { display: flex; gap: 14px; }
.ft-sn { width: 36px; height: 36px; border-radius: 10px; background: var(--tint); color: var(--blue); font-weight: 800; display: flex; align-items: center; justify-content: center; flex: none; }
.ft-step b { display: block; font-size: 15px; }
.ft-step span { display: block; font-size: 13.5px; color: var(--muted); line-height: 1.5; margin-top: 3px; }
.ft-band { margin-top: 22px; background: var(--ink); border-radius: 20px; padding: 28px 32px; display: flex; align-items: center; gap: 20px; color: #fff; flex-wrap: wrap; }
.ft-band b { display: block; font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.ft-band span { display: block; color: #b7c6d6; font-size: 15px; margin-top: 6px; }
.ft-band .ft-sp { flex: 1; }
.ft-band .ft-btn-o { background: transparent; color: #fff !important; border-color: #3a536d; }
.ft-faq { margin-top: 44px; }
.ft-faq h2 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 14px; }
.ft-faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0 18px; margin-bottom: 10px; }
.ft-faq summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.ft-faq summary::-webkit-details-marker { display: none; }
.ft-faq summary::after { content: '+'; color: var(--blue); font-weight: 800; font-size: 18px; line-height: 1; }
.ft-faq details[open] summary::after { content: '−'; }
.ft-faq details p { color: var(--muted); padding: 0 0 16px; font-size: 14.5px; line-height: 1.6; }

/* ── Editor ──────────────────────────────────────────────────────────── */
.ft-tbar { background: #fff; border-bottom: 1px solid var(--line); min-height: 64px; display: flex; align-items: center; padding: 10px 24px; gap: 16px; flex-wrap: wrap; }
.ft-back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 700; font-size: 14px; }
.ft-back:hover { color: var(--blue); }
.ft-vr { width: 1px; height: 26px; background: var(--line); }
.ft-ttl { font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.ft-seg { display: flex; background: #f1f4f7; border-radius: 11px; padding: 4px; gap: 2px; }
.ft-seg button { height: 34px; padding: 0 16px; border: 0; border-radius: 8px; background: transparent; font-size: 14px; font-weight: 700; color: var(--muted); cursor: pointer; }
.ft-seg button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(15,34,54,.12); }
.ft-tbar .ft-sp { flex: 1; }
.ft-saved { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--muted); }
.ft-saved i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); display: block; }
.ft-ed { display: grid; grid-template-columns: minmax(420px, 640px) minmax(0, 1fr); align-items: start; background: var(--cloud); }
.ft-form { padding: 22px 24px 40px; min-width: 0; }
.ft-savebar { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: #fff8e8; border: 1px solid #f2d79c; margin-bottom: 14px; font-size: 13.5px; color: #6b4d06; }
.ft-savebar b { color: #4d3703; }
.ft-savebar .ft-sp { flex: 1; }
.ft-savebar a { font-weight: 800; color: var(--blue); white-space: nowrap; }
.ft-savebar > svg { flex: none; }
.ft-savebar > div { flex: 1 1 auto; min-width: 0; line-height: 1.45; }
/* Phones: the link moves under the message (lined up with its text) instead of squeezing it into a narrow column. */
@media (max-width: 560px) { .ft-savebar { flex-wrap: wrap; align-items: flex-start; row-gap: 6px; } .ft-savebar > svg { margin-top: 1px; } .ft-savebar > div { flex-basis: calc(100% - 32px); } .ft-savebar .ft-sp { display: none; } .ft-savebar a { margin-left: 32px; } }
.ft-stp { background: #fff; border: 1px solid var(--line); border-radius: 16px; margin-bottom: 14px; }
.ft-sh { display: flex; align-items: center; gap: 14px; padding: 15px 18px; width: 100%; border: 0; background: none; text-align: left; cursor: pointer; border-radius: 16px; color: inherit; font: inherit; }
.ft-sn2 { width: 30px; height: 30px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 800; font-size: 14px; display: flex; align-items: center; justify-content: center; flex: none; }
.ft-stp.is-done .ft-sn2 { background: var(--ok); }
.ft-stp:not(.is-open):not(.is-done) .ft-sn2 { background: #fff; color: var(--muted); border: 1.5px solid #d5dee8; }
.ft-sht { flex: 1; min-width: 0; }
.ft-sht b { display: block; font-size: 15.5px; font-weight: 800; }
.ft-sht span { display: block; font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ft-sh .ft-lnk { font-size: 13.5px; font-weight: 700; color: var(--blue); }
.ft-stp.is-open .ft-lnk { display: none; }
.ft-chev { transition: transform .2s; color: var(--faint); }
.ft-stp.is-open .ft-chev { transform: rotate(180deg); }
.ft-sbody { padding: 2px 18px 18px; display: none; }
.ft-stp.is-open .ft-sbody { display: block; }
.ft-row { display: flex; gap: 12px; margin-bottom: 12px; }
.ft-row > * { flex: 1; min-width: 0; }
.ft-fld label, .ft-lbl { display: block; font-size: 12.5px; font-weight: 700; color: var(--body); margin-bottom: 6px; }
.ft-fld label em, .ft-lbl em { font-style: normal; color: var(--faint); font-weight: 600; }
.ft-in, .ft-sel, .ft-ta { width: 100%; height: 44px; border: 1px solid #d5dee8; border-radius: 10px; padding: 0 13px; font: inherit; font-size: 15px; color: var(--ink); background: #fff; transition: border-color .15s, box-shadow .15s; }
.ft-ta { height: auto; min-height: 84px; padding: 10px 13px; resize: vertical; line-height: 1.5; }
.ft-sel { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%238a99a8' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; padding-right: 32px; }
.ft-in:focus, .ft-sel:focus, .ft-ta:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(18,115,196,.14); }
.ft-in::placeholder, .ft-ta::placeholder { color: #a0adba; }
.ft-help { font-size: 12.5px; color: var(--faint); margin-top: 6px; }
.ft-logo { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.ft-logo-box { width: 84px; height: 84px; border: 1.5px dashed #b9cde0; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  font-size: 11.5px; font-weight: 700; color: var(--blue); background: #f8fbfe; flex: none; cursor: pointer; overflow: hidden; padding: 6px; }
.ft-logo-box img { max-width: 100%; max-height: 100%; object-fit: contain; }
.ft-logo-tx { font-size: 13px; color: var(--muted); line-height: 1.5; }
.ft-logo-tx button { border: 0; background: none; color: var(--bad); font-weight: 700; padding: 0; cursor: pointer; font-size: 13px; }
.ft-items { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.ft-ih, .ft-ir { display: grid; grid-template-columns: minmax(0, 1fr) 52px 96px 104px 58px; gap: 8px; align-items: center; padding: 0 10px; }
.ft-ih { height: 36px; background: #f7f9fb; font-size: 11.5px; font-weight: 700; color: var(--faint); border-bottom: 1px solid var(--line); }
.ft-ir { padding-top: 9px; padding-bottom: 9px; border-bottom: 1px solid var(--line2); }
.ft-ir .ft-in { height: 40px; font-size: 14px; padding: 0 10px; }
.ft-ir .ft-num { text-align: right; }
.ft-r { text-align: right; }
.ft-amt { text-align: right; font-weight: 800; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ft-iact { display: flex; justify-content: flex-end; gap: 2px; }
.ft-ib { width: 30px; height: 30px; border: 0; background: none; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; color: #8a99a8; cursor: pointer; }
.ft-ib:hover { background: #f1f4f7; color: var(--ink); }
.ft-ib.del:hover { color: var(--bad); background: #fbebe8; }
.ft-add { display: flex; align-items: center; gap: 8px; width: 100%; height: 46px; padding: 0 14px; color: var(--blue); font-weight: 800; font-size: 14px; border: 0; background: none; cursor: pointer; }
.ft-add:hover { background: #f8fbfe; }
.ft-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.ft-opt { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.ft-opt-h { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 700; }
.ft-opt-h span { flex: 1; }
.ft-opt-b { display: none; margin-top: 8px; gap: 6px; }
.ft-opt.on .ft-opt-b { display: flex; }
.ft-opt-b .ft-in, .ft-opt-b .ft-sel { height: 36px; font-size: 14px; padding: 0 8px; }
.ft-opt-b .ft-sel { width: 70px; flex: none; padding-right: 24px; background-position: right 6px center; }
.ft-sw { position: relative; display: inline-block; width: 38px; height: 22px; flex: none; }
.ft-sw input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; width: 100%; height: 100%; }
.ft-sw i { position: absolute; inset: 0; border-radius: 11px; background: #d5dee8; transition: background .15s; }
.ft-sw i::after { content: ''; position: absolute; left: 2px; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .15s; }
.ft-sw input:checked + i { background: var(--blue); }
.ft-sw input:checked + i::after { transform: translateX(16px); }
.ft-sw input:focus-visible + i { box-shadow: 0 0 0 3px rgba(18,115,196,.3); }
.ft-total { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; padding: 14px 16px; border-radius: 12px; background: var(--ink); color: #fff; gap: 12px; }
.ft-total span { font-size: 13.5px; color: #b7c6d6; font-weight: 600; }
.ft-total b { font-size: 20px; font-weight: 800; }
.ft-sig { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.ft-sig canvas { display: block; width: 100%; height: 120px; background: #fff; touch-action: none; cursor: crosshair; }
.ft-sig-bar { display: flex; gap: 8px; align-items: center; padding: 8px 10px; border-top: 1px solid var(--line2); background: #fafbfc; font-size: 12.5px; color: var(--faint); }
.ft-sig-bar .ft-sp { flex: 1; }
.ft-sig-bar button { border: 0; background: none; font-weight: 700; font-size: 13px; color: var(--blue); cursor: pointer; padding: 4px 6px; }
.ft-prev { position: sticky; top: 0; display: flex; flex-direction: column; background: #e9eef3; min-height: calc(100vh - 64px); max-height: 100vh; min-width: 0; }
.ft-ptool { min-height: 58px; display: flex; align-items: center; gap: 12px; padding: 10px 22px; background: #fff; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.ft-ptool .ft-lb { font-size: 12.5px; font-weight: 700; color: var(--faint); }
.ft-tpls { display: flex; gap: 6px; flex-wrap: wrap; }
.ft-tpls button { height: 32px; padding: 0 11px; border-radius: 8px; border: 1px solid var(--line); background: #fff; font-size: 13px; font-weight: 700; color: var(--body); cursor: pointer; }
.ft-tpls button[aria-pressed="true"] { border-color: var(--blue); color: var(--blue); background: var(--tint); }
.ft-clrs { display: flex; gap: 8px; align-items: center; }
.ft-clrs button { width: 22px; height: 22px; border-radius: 50%; border: 0; cursor: pointer; padding: 0; }
.ft-clrs button[aria-pressed="true"] { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--blue); }
.ft-clrs label { position: relative; width: 22px; height: 22px; border-radius: 50%; border: 1.5px dashed #b9c8d8; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; overflow: hidden; }
.ft-clrs label input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; border: 0; padding: 0; }
.ft-ptool .ft-sp { flex: 1; }
.ft-cur { height: 34px; width: auto; font-size: 13.5px; font-weight: 700; padding: 0 30px 0 10px; }
.ft-stage { flex: 1; overflow: auto; padding: 26px 20px; display: flex; justify-content: center; }
.ft-paper-w { flex: none; }
.ft-abar { min-height: 76px; background: #fff; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 10px; padding: 12px 22px; flex-wrap: wrap; }
.ft-abar .ft-sp { flex: 1; }
.ft-free { font-size: 11px; font-weight: 700; color: #0f7a52; background: var(--ok-t); padding: 2px 7px; border-radius: 20px; }

/* The preview document (A4 at 595px, scaled to fit by JS). */
.ft-doc { position: relative; width: 595px; min-height: 842px; background: #fff; border-radius: 4px; box-shadow: 0 1px 2px rgba(15,34,54,.06), 0 18px 40px -12px rgba(15,34,54,.2);
  font-size: 10.5px; color: #33475b; overflow: hidden; transform-origin: top left; line-height: 1.5; font-family: 'Manrope', system-ui, sans-serif; }
.ft-doc .d-band { height: 6px; }
.ft-doc .d-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 34px 40px 24px; }
.ft-doc .d-biz { display: flex; gap: 14px; min-width: 0; }
.ft-doc .d-logo { flex: none; }
.ft-doc .d-logo img { max-width: 120px; max-height: 56px; display: block; }
.ft-doc .d-ini { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; }
.ft-doc .d-bn { font-weight: 800; font-size: 14.5px; color: #0f2236; margin-bottom: 3px; word-break: break-word; }
.ft-doc .d-sub { font-size: 9.5px; line-height: 1.6; color: #5a6b7d; white-space: pre-line; word-break: break-word; }
.ft-doc .d-ttl { text-align: right; flex: none; }
.ft-doc .d-t { font-size: 23px; font-weight: 800; letter-spacing: .08em; }
.ft-doc .d-no { font-size: 10.5px; font-weight: 700; color: #5a6b7d; margin-top: 3px; }
.ft-doc .d-meta { display: flex; justify-content: space-between; gap: 20px; margin: 0 40px; padding: 18px 0; border-top: 1px solid #e8edf2; border-bottom: 1px solid #e8edf2; }
.ft-doc .d-k { font-size: 8.5px; font-weight: 700; color: #8a99a8; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 4px; }
.ft-doc .d-cn { font-size: 12.5px; font-weight: 800; color: #0f2236; margin-bottom: 2px; }
.ft-doc .d-mm { display: grid; grid-template-columns: auto auto; gap: 4px 18px; align-content: start; }
.ft-doc .d-mm .d-k { margin: 0; align-self: center; }
.ft-doc .d-mm b { font-size: 10.5px; color: #0f2236; text-align: right; }
.ft-doc table { width: calc(100% - 80px); margin: 22px 40px 0; border-collapse: collapse; }
.ft-doc th { text-align: left; font-size: 8.5px; letter-spacing: .06em; text-transform: uppercase; padding: 8px 10px; font-weight: 700; }
.ft-doc td { padding: 10px; border-bottom: 1px solid #eef2f6; font-size: 10.5px; color: #0f2236; vertical-align: top; word-break: break-word; white-space: pre-line; }
.ft-doc .r { text-align: right; white-space: nowrap; }
.ft-doc .b { font-weight: 700; }
.ft-doc .d-tot { display: flex; justify-content: space-between; gap: 28px; padding: 18px 40px 0; }
.ft-doc .d-words { flex: 1; min-width: 0; }
.ft-doc .d-w { font-size: 10px; font-weight: 700; color: #0f2236; font-style: italic; line-height: 1.5; }
.ft-doc .d-tt { width: 230px; flex: none; }
.ft-doc .d-tt > div { display: flex; justify-content: space-between; padding: 4px 10px; font-size: 10.5px; color: #5a6b7d; }
.ft-doc .d-tt > div b { color: #0f2236; }
.ft-doc .d-tt .d-gt { margin-top: 6px; padding: 9px 10px; font-weight: 800; font-size: 12px; }
.ft-doc .d-tt .d-gt b { color: inherit; }
.ft-doc .d-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding: 30px 40px 0; }
.ft-doc .d-sign { width: 170px; text-align: center; flex: none; }
.ft-doc .d-sign img { max-width: 150px; max-height: 50px; display: block; margin: 0 auto; }
.ft-doc .d-sign div { border-top: 1px solid #d5dee8; padding-top: 4px; font-size: 9.5px; color: #5a6b7d; }
.ft-doc .d-stamp { position: absolute; left: 250px; top: 205px; transform: rotate(-14deg); border: 3px solid #149c6b; color: #149c6b; font-weight: 800; font-size: 26px; letter-spacing: .14em; padding: 4px 16px; border-radius: 8px; opacity: .85; }
.ft-doc .d-made { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; font-size: 8px; color: #a8b4c0; }
.ft-doc .d-ph { color: #b3bfcb; }
.ft-doc.t-compact .d-head { padding: 26px 32px 18px; }
.ft-doc.t-compact .d-meta { margin: 0 32px; }
.ft-doc.t-compact table { width: calc(100% - 64px); margin: 14px 32px 0; }
.ft-doc.t-compact td { padding: 7px 10px; }
.ft-doc.t-compact .d-tot, .ft-doc.t-compact .d-foot { padding-left: 32px; padding-right: 32px; }
.ft-doc.t-classic .d-t { font-family: Georgia, 'Times New Roman', serif; letter-spacing: .04em; }
.ft-doc.t-bold .d-head { color: #fff; }
.ft-doc.t-bold .d-bn { color: #fff; }
.ft-doc.t-bold .d-head .d-sub, .ft-doc.t-bold .d-no { color: #e8eef5; }

/* Mobile tabs and bars (hidden on desktop) */
.ft-mtabs, .ft-mbar { display: none; }

/* Pop-ups (replaces alert/confirm on these pages) */
.ft-modal { position: fixed; inset: 0; z-index: 10000; display: none; align-items: center; justify-content: center; padding: 16px; }
.ft-modal.is-open { display: flex; }
.ft-modal-bd { position: absolute; inset: 0; background: rgba(15,34,54,.5); animation: ftFade .18s ease; }
.ft-modal-c { position: relative; background: #fff; border-radius: 20px; box-shadow: 0 30px 80px -20px rgba(15,34,54,.45); width: 100%; max-width: 520px; max-height: calc(100vh - 32px); overflow: auto; animation: ftUp .2s ease; }
.ft-modal-x { position: absolute; right: 16px; top: 16px; width: 36px; height: 36px; border-radius: 10px; background: #f1f4f7; border: 0; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--ink); }
.ft-modal-in { padding: 28px 30px 24px; }
.ft-modal h2 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; line-height: 1.25; padding-right: 36px; }
.ft-modal p { font-size: 14.5px; color: var(--muted); line-height: 1.55; margin-top: 8px; }
.ft-modal .ft-done { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; color: #0f7a52; background: var(--ok-t); padding: 6px 12px; border-radius: 20px; margin-bottom: 14px; }
.ft-gain { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 18px 0 20px; }
.ft-gain div { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: 12px; font-size: 13.5px; font-weight: 600; line-height: 1.4; }
.ft-gain i { width: 32px; height: 32px; border-radius: 9px; display: flex; align-items: center; justify-content: center; flex: none; }
.ft-mbtns { display: flex; gap: 10px; margin-top: 18px; }
.ft-mbtns .ft-btn { flex: 1; height: 48px; }
.ft-fine { font-size: 12.5px; color: var(--faint); text-align: center; margin-top: 12px; }
.ft-sheet-o { display: flex; align-items: center; gap: 14px; padding: 12px 4px; border-bottom: 1px solid var(--line2); width: 100%; background: none; border-left: 0; border-right: 0; border-top: 0; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.ft-sheet-o:last-child { border-bottom: 0; }
.ft-sheet-o .ic { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex: none; }
.ft-sheet-o b { display: block; font-size: 15px; font-weight: 800; }
.ft-sheet-o span { display: block; font-size: 12.5px; color: var(--muted); }
.ft-sheet-o .tx { flex: 1; min-width: 0; }
.ft-toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 14px; font-weight: 600;
  z-index: 10001; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: calc(100vw - 32px); box-shadow: 0 12px 30px -10px rgba(15,34,54,.5); }
.ft-toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }
.ft-toast.bad { background: var(--bad); }
@keyframes ftFade { from { opacity: 0; } }
@keyframes ftUp { from { opacity: 0; transform: translateY(12px) scale(.98); } }

/* Landing page section */
.ft-lp { background: #f4f7fa; padding: 72px 0; }
.ft-lp-h { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 32px; flex-wrap: wrap; }
.ft-lp-h h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.ft-lp-h p { font-size: 17px; color: var(--muted); margin-top: 10px !important; max-width: 560px; line-height: 1.55; }
.ft-lp-g { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ft-lp-g .ft-card-art { height: 160px; align-items: center; }
.ft-lp-more { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; align-items: center; font-size: 14px; color: var(--muted); font-weight: 600; }
.ft-lp-more span.c { height: 36px; padding: 0 14px; border-radius: 18px; background: #fff; border: 1px solid var(--line); display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; color: var(--body); }
.ft-lp-more i { width: 8px; height: 8px; border-radius: 50%; display: block; }

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .ft-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ft-hero-art { display: none; }
  .ft-ed { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .ft-grid, .ft-lp-g { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ft-how { flex-direction: column; align-items: flex-start; }
  .ft-how h2 { width: auto; }
  .ft-steps { grid-template-columns: 1fr; }
  /* Editor: Edit / Preview tabs */
  .ft-ed { display: block; }
  .ft-mtabs { display: flex; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
  .ft-mtabs button { flex: 1; height: 48px; display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 14.5px; font-weight: 700; color: var(--muted); border: 0; background: none; border-bottom: 2.5px solid transparent; cursor: pointer; }
  .ft-mtabs button[aria-selected="true"] { color: var(--blue); border-bottom-color: var(--blue); }
  .ft[data-tab="edit"] .ft-prev { display: none; }
  .ft[data-tab="preview"] .ft-form { display: none; }
  .ft-form { padding: 14px 14px 110px; }
  .ft-prev { position: static; min-height: 0; max-height: none; }
  .ft-stage { padding: 16px 12px 110px; overflow: hidden; }
  .ft-abar { display: none; }
  .ft-mbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: #fff; border-top: 1px solid var(--line); padding: 10px 14px calc(12px + env(safe-area-inset-bottom)); align-items: center; gap: 10px; box-shadow: 0 -8px 24px -12px rgba(15,34,54,.2); }
  .ft-mbar .ft-mt { flex: 1; min-width: 0; }
  .ft-mbar .ft-mt span { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
  .ft-mbar .ft-mt b { font-size: 18px; font-weight: 800; }
  .ft-mbar-e, .ft-mbar-p { display: contents; }
  .ft[data-tab="edit"] .ft-mbar-p { display: none; }
  .ft[data-tab="preview"] .ft-mbar-e { display: none; }
  .ft-saved { display: none; }
}
@media (max-width: 640px) {
  .ft { font-size: 15px; }
  .ft-wrap, .ft-main { padding-left: 16px; padding-right: 16px; }
  .ft-hero .ft-wrap { padding-top: 24px; padding-bottom: 24px; }
  .ft-lead { font-size: 15.5px; }
  .ft-search { height: 50px; }
  .ft-search .ft-btn { display: none; }
  .ft-chips { flex-wrap: nowrap; overflow-x: auto; margin-left: -16px; margin-right: -16px; padding: 0 16px 4px; scrollbar-width: none; }
  .ft-chips::-webkit-scrollbar { display: none; }
  .ft-chips .ft-sp, .ft-chips .ft-cnt { display: none; }
  .ft-chip { flex: none; }
  .ft-grid, .ft-lp-g { grid-template-columns: 1fr; gap: 12px; }
  .ft-grid .ft-card:not(.sug) { flex-direction: row; }
  .ft-grid .ft-card-art { width: 128px; height: auto; flex: none; align-items: center; }
  .ft-grid .ft-card-art svg { margin-left: -66px; }
  .ft-grid .ft-card-b { padding: 14px; }
  .ft-grid .ft-card-m { display: none; }
  .ft-grid .ft-card-d { font-size: 13px; }
  .ft-grid .ft-card-u { margin-top: 8px; }
  .ft-band, .ft-how { padding: 22px 20px; }
  .ft-tbar { padding: 10px 14px; gap: 10px; }
  .ft-tbar .ft-vr, .ft-tbar .ft-back span { display: none; }
  .ft-ttl { font-size: 17px; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.3; }
  /* The title takes the free space alone (the spacer split it in half and the title broke onto two lines). */
  .ft-tbar .ft-sp { display: none; }
  .ft-tbar .ft-back, .ft-tbar .ft-btn { flex: none; white-space: nowrap; }
  .ft-seg { order: 5; width: 100%; }
  .ft-seg button { flex: 1; padding: 0 6px; }
  .ft-row { flex-direction: column; gap: 12px; }
  .ft-opts { grid-template-columns: 1fr; }
  .ft-ih { display: none; }
  .ft-ir { grid-template-columns: 1fr 1fr 1fr; grid-template-areas: "d d d" "q p a" "x x x"; padding: 12px; gap: 8px; }
  .ft-ir > :nth-child(1) { grid-area: d; }
  .ft-ir > :nth-child(2) { grid-area: q; }
  .ft-ir > :nth-child(3) { grid-area: p; }
  .ft-ir > :nth-child(4) { grid-area: a; align-self: center; }
  .ft-ir > :nth-child(5) { grid-area: x; justify-content: flex-start; }
  .ft-gain { grid-template-columns: 1fr; }
  .ft-modal { align-items: flex-end; padding: 0; }
  .ft-modal-c { border-radius: 22px 22px 0 0; max-height: 92vh; max-width: none; }
  .ft-modal-in { padding: 24px 18px calc(22px + env(safe-area-inset-bottom)); }
  .ft-ptool { padding: 10px 14px; }
  .ft-lp { padding: 48px 0; }
}

/* Print: only the document */
@media print {
  body * { visibility: hidden !important; }
  .ft-doc, .ft-doc * { visibility: visible !important; }
  .ft-doc { position: fixed !important; left: 0; top: 0; transform: none !important; box-shadow: none !important; border-radius: 0; width: 100% !important; }
  @page { size: A4; margin: 0; }
}

/* Guards against the site-wide styles of both designs (inputs, headings, hidden). */
.ft [hidden] { display: none !important; }
.ft.ft-page h1, .ft.ft-page h2, .ft.ft-page h3, .ft.ft-lp h2, .ft.ft-lp h3 { font-weight: 800 !important; font-family: inherit !important; color: var(--ink); }
.ft.ft-page .ft-ttl { font-weight: 800 !important; }
.ft .ft-in, .ft .ft-sel, .ft .ft-ta { background-color: #fff !important; border: 1px solid #d5dee8 !important; box-shadow: none !important; margin: 0 !important; max-width: none !important; }
.ft .ft-in:focus, .ft .ft-sel:focus, .ft .ft-ta:focus { border-color: var(--blue) !important; box-shadow: 0 0 0 3px rgba(18,115,196,.14) !important; }
.ft .ft-search input, .ft .ft-search input:focus { background: transparent !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; height: 100% !important; margin: 0 !important; }
.ft .ft-sw input, .ft .ft-clrs label input { width: 100% !important; height: 100% !important; margin: 0 !important; }
.ft .d-stampw { margin-top: 14px; }
.ft-doc .d-stamp { position: static; display: inline-block; transform: rotate(-8deg); }
@media (min-width: 861px) { .ft-prev { top: 72px; max-height: calc(100vh - 72px); min-height: calc(100vh - 72px); } }
.ft-doc th, .ft-doc td { border-left: 0 !important; border-right: 0 !important; border-top: 0 !important; }

/* Hub grouped by category (Business, Marketing, Developer, Documents, Everyday) */
.ft-brandline { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 800; color: var(--blue); background: var(--tint); padding: 5px 12px; border-radius: 20px; margin-bottom: 14px; }
.ft-chip-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.ft-chip[aria-pressed="true"] .ft-chip-dot { box-shadow: 0 0 0 2px #fff; }
.ft-group { margin-bottom: 40px; scroll-margin-top: 90px; }
.ft-group-h { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.ft-group-ic { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex: none; }
.ft.ft-page .ft-group-h h2 { font-size: 22px; letter-spacing: -.02em; line-height: 1.2; }
.ft-group-h p { font-size: 14.5px; color: var(--muted); margin-top: 2px !important; }
.ft-group-n { font-size: 13.5px; font-weight: 700; color: var(--muted); background: #fff; border: 1px solid var(--line); padding: 5px 12px; border-radius: 20px; }
.ft-sugrow .ft-card.sug { flex-direction: row; align-items: center; gap: 16px; padding: 20px 22px; }
.ft-sugrow .ft-sug-ic { margin: 0; }
@media (max-width: 640px) {
  .ft-group { margin-bottom: 28px; }
  .ft-group-n { display: none; }
  .ft-sugrow .ft-card.sug { flex-direction: column; align-items: flex-start; }
}
.ft-group-h .ft-sp { flex: 1; }

/* ── Browser tools (tools/kit.php) ───────────────────────────────────── */
.ft-khero { background: #fff; border-bottom: 1px solid var(--line); }
.ft-khero .ft-wrap { display: flex; align-items: center; gap: 32px; padding-top: 30px; padding-bottom: 28px; }
.ft-khero-tx { flex: 1; min-width: 0; }
.ft.ft-page .ft-khero h1 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; letter-spacing: -.03em; }
.ft-khero .ft-lead { font-size: 16.5px; margin-top: 10px !important; max-width: 640px; }
.ft-khero-art { flex: none; width: 260px; height: 140px; border-radius: 18px; overflow: hidden; }
.ft-kmain { padding-top: 26px; }
.ft-kit { margin-bottom: 40px; }
.ft-kcard { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.ft-kcard + .ft-kcard { margin-top: 16px; }
.ft-kgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.ft-kgrid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ft-kgrid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ft-kh { font-size: 16px !important; font-weight: 800 !important; margin-bottom: 12px !important; display: flex; align-items: center; gap: 8px; }
.ft-kbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.ft-kbar .ft-sp { flex: 1; }
.ft-kfield { margin-bottom: 12px; }
.ft-kfield label, .ft-klabel { display: block; font-size: 12.5px; font-weight: 700; color: var(--body); margin-bottom: 6px; }
.ft-kfield label em { font-style: normal; color: var(--faint); font-weight: 600; }
.ft .ft-mono, .ft .ft-mono.ft-ta, .ft .ft-mono.ft-in { font-family: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important; font-size: 13.5px; }
.ft .ft-ta.ft-big { min-height: 300px; line-height: 1.55; }
.ft-kout { background: #f7f9fb; border: 1px solid var(--line); border-radius: 12px; padding: 14px; min-height: 60px; word-break: break-all; }
.ft-kmsg { border-radius: 12px; padding: 12px 14px; font-size: 14px; font-weight: 600; margin-top: 12px; }
.ft-kmsg.ok { background: var(--ok-t); color: #0f5c3f; border: 1px solid #bfe6d3; }
.ft-kmsg.bad { background: #fbebe8; color: #8f2a1c; border: 1px solid #f3c9c1; }
.ft-kmsg.info { background: var(--tint); color: #0e5fa3; border: 1px solid #cfe5f8; }
.ft-kmsg code { font-family: 'Geist Mono', monospace; font-size: 12.5px; background: rgba(255,255,255,.6); padding: 1px 5px; border-radius: 5px; }
.ft-kstat { background: #f7f9fb; border: 1px solid var(--line2); border-radius: 14px; padding: 14px 16px; min-width: 0; }
.ft-kstat span { display: block; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.ft-kstat b { display: block; font-size: 22px; font-weight: 800; letter-spacing: -.02em; margin-top: 3px; overflow-wrap: anywhere; }
.ft-kstat small { display: block; font-size: 12px; color: var(--faint); margin-top: 2px; }
.ft-kstat.hl { background: var(--kc, var(--blue)); border-color: transparent; }
.ft-kstat.hl span, .ft-kstat.hl small { color: rgba(255,255,255,.82); }
.ft-kstat.hl b { color: #fff; }
.ft-krow { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line2); }
.ft-krow:last-child { border-bottom: 0; }
.ft-krow .k { width: 90px; flex: none; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.ft-krow .v { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.ft-kchk { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--body); cursor: pointer; margin: 0 14px 8px 0; }
.ft .ft-kchk input { width: 17px !important; height: 17px !important; margin: 0 !important; accent-color: var(--kc, var(--blue)); }
.ft .ft-range { width: 100%; accent-color: var(--kc, var(--blue)); }
.ft-kdrop { border: 2px dashed #b9cde0; border-radius: 16px; background: #f8fbfe; padding: 30px 20px; text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.ft-kdrop.over { border-color: var(--kc, var(--blue)); background: var(--tint); }
.ft-kdrop b { display: block; font-size: 16px; margin: 10px 0 4px; }
.ft-kdrop span { color: var(--muted); font-size: 14px; }
.ft-kfiles { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.ft-kfile { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.ft-kfile img, .ft-kfile .ph { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; flex: none; background: #f1f4f7; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 800; color: #d0422f; }
.ft-kfile .tx { flex: 1; min-width: 0; }
.ft-kfile .tx b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ft-kfile .tx span { font-size: 12.5px; color: var(--muted); }
.ft-kfile .save { color: #0f7a52; font-weight: 700; }
.ft-kpills { display: flex; flex-wrap: wrap; gap: 6px; }
.ft-kpills button { height: 32px; padding: 0 12px; border-radius: 16px; border: 1px solid var(--line); background: #fff; font: inherit; font-size: 13px; font-weight: 700; color: var(--body); cursor: pointer; }
.ft-kpills button:hover { border-color: var(--kc, var(--blue)); color: var(--kc, var(--blue)); }
.ft-kpills button[aria-pressed="true"] { background: var(--kc, var(--blue)); border-color: var(--kc, var(--blue)); color: #fff; }
.ft-kmark { background: #fde68a; border-radius: 3px; padding: 0 1px; }
.ft-kmark:nth-of-type(2n) { background: #bfdbfe; }
.ft-khl { white-space: pre-wrap; word-break: break-word; font-family: 'Geist Mono', monospace; font-size: 13.5px; line-height: 1.6; background: #f7f9fb; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; min-height: 120px; max-height: 360px; overflow: auto; }
.ft-qr { display: flex; align-items: center; justify-content: center; background: #f7f9fb; border: 1px solid var(--line); border-radius: 16px; padding: 18px; min-height: 260px; }
.ft-qr canvas, .ft-qr img { max-width: 100%; height: auto; image-rendering: pixelated; }
.ft-ksig { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; overflow-x: auto; }
.ft-krel { margin-bottom: 8px; }
.ft.ft-page .ft-krel h2 { font-size: 22px; letter-spacing: -.02em; margin-bottom: 14px; }
.ft-kmeter { height: 8px; border-radius: 4px; background: #eef2f6; overflow: hidden; margin-top: 8px; }
.ft-kmeter i { display: block; height: 100%; width: 0; border-radius: 4px; transition: width .2s, background .2s; }
@media (max-width: 860px) {
  .ft-kgrid, .ft-kgrid3 { grid-template-columns: 1fr; }
  .ft-kgrid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ft-khero-art { display: none; }
}
@media (max-width: 640px) { .ft-kcard { padding: 16px; } .ft .ft-ta.ft-big { min-height: 200px; } }
.ft-kgrid > .ft-kcard + .ft-kcard, .ft-kgrid3 > .ft-kcard + .ft-kcard { margin-top: 0; }
.ft-kgrid3 .ft-kstat b { font-size: 17px; white-space: nowrap; overflow-wrap: normal; overflow: hidden; text-overflow: ellipsis; }

/* ── Digital business card (.bc) ─────────────────────────────────────── */
.bc { --bc1: #1273c4; --bc2: #0e5fa3; --bct: #e8f3fc; background: #fff; font-family: 'Manrope', system-ui, sans-serif; color: #0f2236; padding-bottom: 20px; text-align: center; }
.bc *, .bc *::before, .bc *::after { box-sizing: border-box; }
.bc a { text-decoration: none; color: inherit; }
.bc-cover { height: 124px; position: relative; background: linear-gradient(135deg, var(--bc1), var(--bc2)); }
.bc-clean .bc-cover { background: linear-gradient(135deg, #f4f7fa, #e9eef3); border-bottom: 1px solid #e2e8ef; }
.bc-logo { position: absolute; right: 14px; top: 14px; max-height: 34px; max-width: 120px; object-fit: contain; background: rgba(255,255,255,.92); border-radius: 8px; padding: 4px 8px; }
.bc-co-chip { position: absolute; right: 14px; top: 14px; background: rgba(255,255,255,.2); color: #fff; font-weight: 800; font-size: 12px; padding: 5px 10px; border-radius: 20px; max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bc-clean .bc-co-chip { background: #fff; color: #0f2236; border: 1px solid #e2e8ef; }
.bc-av { width: 116px; height: 116px; border-radius: 50%; background: #fff; padding: 4px; margin: -58px auto 0; position: relative; box-shadow: 0 8px 22px -8px rgba(15,34,54,.35); }
.bc-av img, .bc-av span { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: flex; align-items: center; justify-content: center; background: var(--bct); color: var(--bc1); font-weight: 800; font-size: 36px; }
.bc-id { padding: 10px 22px 0; }
.bc .bc-id h1 { font-size: 24px; font-weight: 800; letter-spacing: -.02em; margin: 0; line-height: 1.2; color: #0f2236; }
.bc-id p { margin: 4px 0 0; }
.bc-t { font-size: 15px; color: #5a6b7d; }
.bc-co { font-size: 14px; font-weight: 800; color: var(--bc1); }
.bc-bio { font-size: 14px; line-height: 1.55; margin-top: 10px !important; color: #33475b; }
.bc-save { margin: 16px 20px 0; height: 52px; border-radius: 14px; background: var(--bc1); color: #fff !important; font-weight: 800; font-size: 16px; display: flex; align-items: center; justify-content: center; gap: 10px; box-shadow: 0 10px 22px -10px rgba(15,34,54,.45); }
.bc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px 20px 0; text-align: left; }
.bc-btn { display: flex; align-items: center; gap: 10px; padding: 11px; border: 1px solid #e2e8ef; border-radius: 14px; min-width: 0; transition: border-color .15s, transform .1s; }
.bc-btn:hover { border-color: var(--bc1); }
.bc-btn:active { transform: scale(.98); }
.bc-bi { width: 40px; height: 40px; border-radius: 11px; display: flex; align-items: center; justify-content: center; flex: none; background: var(--bct); }
.bc-bt { min-width: 0; }
.bc-bt b { display: block; font-size: 14px; }
.bc-bt small { display: block; font-size: 11.5px; color: #8a99a8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bc-acts { display: flex; justify-content: center; gap: 10px; padding: 14px 20px 0; }
.bc-act { flex: 1; height: 42px; border: 1px solid #e2e8ef; background: #fff; border-radius: 12px; font: inherit; font-weight: 700; font-size: 14px; color: #33475b; display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; }
.bc-lead { margin: 14px 20px 0; padding: 14px; border-radius: 14px; background: #f7f9fb; }
.bc-lead b { display: block; font-size: 14.5px; }
.bc-lead span { font-size: 13px; color: #5a6b7d; }
.bc-lb { margin-top: 10px; width: 100%; height: 42px; border: 1.5px solid var(--bc1); color: var(--bc1); background: #fff; border-radius: 11px; display: flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 800; font-size: 14px; cursor: pointer; }
.bc-foot { font-size: 12px; color: #8a99a8; margin-top: 16px; min-height: 14px; }
.bc-foot a { color: var(--bc1) !important; font-weight: 700; text-decoration: underline !important; }

/* Builder (tools/card_builder.php) */
.ft-cbld { display: grid; grid-template-columns: minmax(420px, 640px) minmax(0, 1fr); align-items: start; background: var(--cloud); }
.ft-cprev { position: sticky; top: 72px; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 24px 16px 30px; background: #e9eef3; min-height: calc(100vh - 72px); }
.ft-phone { width: 320px; height: 650px; border-radius: 42px; background: #0f2236; padding: 11px; box-shadow: 0 30px 60px -20px rgba(15,34,54,.45); flex: none; }
.ft-phone-in { width: 100%; height: 100%; border-radius: 32px; overflow: hidden auto; background: #fff; scrollbar-width: none; }
.ft-phone-in::-webkit-scrollbar { display: none; }
.ft-phone-in .bc { width: 298px; }
.ft-crow { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 8px; align-items: center; margin-bottom: 8px; }
.ft-crow .ft-iact { display: flex; gap: 2px; }
.ft-themes { display: flex; gap: 10px; flex-wrap: wrap; }
.ft-thm { width: 92px; border: 2px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; cursor: pointer; padding: 0; font: inherit; }
.ft-thm[aria-pressed="true"] { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(18,115,196,.15); }
.ft-thm i { display: block; height: 30px; }
.ft-thm span { display: block; font-size: 12px; font-weight: 700; padding: 6px 0; color: var(--ink); }
.ft-handle { display: flex; align-items: center; border: 1px solid #d5dee8; border-radius: 10px; overflow: hidden; height: 46px; background: #fff; }
.ft-handle span { padding: 0 12px; background: #f4f7fa; height: 100%; display: flex; align-items: center; color: var(--muted); font-size: 14px; border-right: 1px solid var(--line); white-space: nowrap; }
.ft .ft-handle input { border: 0 !important; box-shadow: none !important; height: 100% !important; flex: 1; min-width: 0; padding: 0 12px !important; font: inherit; font-size: 15px !important; font-weight: 700; outline: 0; background: #fff !important; margin: 0 !important; }
.ft-hstate { font-size: 13px; font-weight: 700; margin-top: 7px; min-height: 18px; }
.ft-hstate.ok { color: #0f7a52; } .ft-hstate.bad { color: var(--bad); }
.ft-hsug { display: inline-flex; gap: 6px; flex-wrap: wrap; margin-left: 6px; }
.ft-hsug button { border: 1px solid var(--line); background: #fff; border-radius: 12px; font: inherit; font-size: 12.5px; font-weight: 700; padding: 2px 9px; cursor: pointer; color: var(--blue); }
.ft-photo { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.ft-photo-box { width: 84px; height: 84px; border-radius: 50%; border: 1.5px dashed #b9cde0; background: #f8fbfe; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 700; color: var(--blue); cursor: pointer; overflow: hidden; flex: none; }
.ft-photo-box img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) {
  .ft-cbld { display: block; }
  .ft[data-tab="edit"] .ft-cprev { display: none; }
  .ft[data-tab="preview"] .ft-cform { display: none; }
  .ft-cprev { position: static; min-height: 0; padding-bottom: 110px; }
  .ft-crow { grid-template-columns: 1fr; }
}

/* Public card page (tools/card_page.php) */
.bcp { min-height: 100vh; background: linear-gradient(160deg, var(--bct, #e8f3fc), #f4f7fa 60%); display: flex; align-items: flex-start; justify-content: center; gap: 48px; padding: 40px 16px; }
.bcp-card { width: 420px; max-width: 100%; border-radius: 26px; overflow: hidden; box-shadow: 0 30px 70px -24px rgba(15,34,54,.35); background: #fff; }
.bcp-side { width: 320px; position: sticky; top: 40px; }
.bcp-box { background: #fff; border-radius: 22px; padding: 22px; box-shadow: 0 20px 50px -24px rgba(15,34,54,.3); text-align: center; }
.bcp-box + .bcp-box { margin-top: 16px; text-align: left; }
.bcp-qr { display: flex; justify-content: center; padding: 6px 0; }
.bcp-qr canvas { width: 200px !important; height: 200px !important; image-rendering: pixelated; }
.bcp-report { display: block; text-align: center; margin: 14px auto 0; font-size: 12px; color: #a0adba; background: none; border: 0; cursor: pointer; font-family: inherit; }
@media (max-width: 860px) {
  .bcp { padding: 0; background: #fff; display: block; }
  .bcp-card { width: 100%; border-radius: 0; box-shadow: none; }
  .bcp-side { display: none; }
}

/* Narrow cards: small phones, the My card preview frame and the builder phone */
@media (max-width: 360px) { .bc-grid { gap: 8px; padding: 12px 14px 0; } .bc-btn { padding: 9px; gap: 8px; } .bc-bi { width: 34px; height: 34px; } .bc-bt b { font-size: 13px; } .bc-save, .bc-lead { margin-left: 14px; margin-right: 14px; } .bc-acts { padding-left: 14px; padding-right: 14px; } }
.ft-phone-in .bc-grid { gap: 8px; padding: 12px 14px 0; }
.ft-phone-in .bc-btn { padding: 9px; gap: 8px; }
.ft-phone-in .bc-bi { width: 34px; height: 34px; }
.ft-phone-in .bc-bt b { font-size: 13px; }
.ft-phone-in .bc-save, .ft-phone-in .bc-lead { margin-left: 14px; margin-right: 14px; }
.ft-phone-in .bc-acts { padding-left: 14px; padding-right: 14px; }
.ft .ft-leadopt { display: flex !important; flex-direction: row; align-items: center; justify-content: flex-start; gap: 12px; margin: 8px 0 0; text-align: left; font-weight: 600; font-size: 14px; color: var(--body); cursor: pointer; }

/* ── CV builder, cover letter and job letters (tools/cv_builder.php) ── */
.ft-cvb .ft-cvname { margin-bottom: 14px; }
.ft-cvb [data-panel-body][hidden], .ft-cvb [data-only][hidden] { display: none !important; }
.ft-hint { font-size: 12.5px; color: var(--faint); margin-top: 8px; line-height: 1.5; }
.ft-sub { font-size: 13px; font-weight: 800; color: var(--ink); margin: 18px 0 8px; }
.ft-more { margin-top: 4px; border-top: 1px solid var(--line2); padding-top: 12px; }
.ft-more summary { cursor: pointer; font-size: 13.5px; font-weight: 700; color: var(--blue); list-style: none; }
.ft-more summary::-webkit-details-marker { display: none; }
.ft-more summary em { font-style: normal; color: var(--faint); font-weight: 600; }
.ft-more p { font-size: 12.5px; color: var(--faint); margin: 8px 0 12px; }
.ft-list { display: flex; flex-direction: column; gap: 8px; }
.ft-list:empty { display: none; }
.ft-litem { border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.ft-litem.is-open { border-color: #cfe0f0; box-shadow: 0 6px 18px -12px rgba(15,34,54,.25); }
.ft-lihd { display: flex; align-items: center; gap: 6px; padding: 6px 6px 6px 0; }
.ft-lit { flex: 1; min-width: 0; text-align: left; border: 0; background: none; padding: 6px 12px; cursor: pointer; font: inherit; color: inherit; }
.ft-lit b { display: block; font-size: 14px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ft-lit span { display: block; font-size: 12.5px; color: var(--faint); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ft-lit span:empty { display: none; }
.ft-ib[disabled] { opacity: .35; pointer-events: none; }
.ft-libody { padding: 2px 12px 12px; }
.ft-ligrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ft-ligrid .ft-wide { grid-column: 1 / -1; }
.ft-ligrid .ft-ta { min-height: 92px; padding-top: 10px; padding-bottom: 10px; line-height: 1.5; }
.ft-addrow { display: flex; align-items: center; justify-content: center; gap: 7px; width: 100%; height: 44px; margin-top: 8px; border: 1.5px dashed #c7d4e1; border-radius: 12px; background: #fbfcfe; color: var(--blue); font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; }
.ft-addrow:hover { border-color: var(--blue); background: var(--tint); }
.ft-addrow[hidden] { display: none; }
.ft-chipin { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 44px; padding: 6px 8px; border: 1px solid #d5dee8; border-radius: 10px; background: #fff; cursor: text; }
.ft-chipin:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(18,115,196,.14); }
.ft-chipin input { flex: 1; min-width: 140px; border: 0 !important; outline: 0; font: inherit; font-size: 14.5px; color: var(--ink); background: transparent !important; height: 30px; padding: 0 4px; box-shadow: none !important; }
.ft-chipv { display: inline-flex; align-items: center; gap: 2px; height: 28px; padding: 0 4px 0 10px; border-radius: 14px; background: var(--tint); color: var(--blue-d); font-size: 13px; font-weight: 700; }
.ft-chipv button { width: 22px; height: 22px; border: 0; border-radius: 50%; background: none; color: inherit; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.ft-chipv button:hover { background: rgba(18,115,196,.14); }
.ft-chipv svg { width: 13px; height: 13px; }
.ft-cvcard .ft-cvhd { padding: 15px 18px 10px; }
.ft-cvcard .ft-cvhd b { display: block; font-size: 15px; font-weight: 800; color: var(--ink); }
.ft-cvcard .ft-cvhd span { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.ft .ft-ta.ft-letter { min-height: 360px; height: auto; padding: 14px; line-height: 1.65; font-size: 14.5px; resize: vertical; }
.ft-lbar { display: flex; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.ft-lbar .ft-sp { flex: 1; }
.ft-lpills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.ft-lpills button { height: 38px; padding: 0 15px; border-radius: 19px; border: 1px solid #d5dee8; background: #fff; font: inherit; font-size: 13.5px; font-weight: 700; color: var(--body); cursor: pointer; }
.ft-lpills button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.ft-cvtool { gap: 14px; }
/* Import / translate (assets/tools/cv-extras.js). */
.ft-cvx { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.ft-cvx-b { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 13px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.ft-cvx-b:hover { border-color: var(--blue); color: var(--blue); }
.ft-cvx-b em { font-style: normal; font-size: 11px; padding: 1px 7px; border-radius: 8px; background: #fdf1d2; color: #7a5306; }
.cvx-dlg { position: fixed; inset: 0; z-index: 2147482500; display: grid; place-items: center; padding: 16px; background: rgba(15, 34, 54, .55); }
.cvx-dlg[hidden] { display: none; }
.cvx-box { position: relative; width: min(520px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; box-sizing: border-box; padding: 24px 22px 20px; border-radius: 18px; background: #fff; color: #33475b; box-shadow: 0 30px 70px -30px rgba(15, 34, 54, .7); text-align: left; }
.cvx-box h2 { margin: 0 34px 8px 0; font-size: 19px; line-height: 1.3; color: #0f2236; }
.cvx-box p { margin: 0 0 12px; font-size: 14.5px; line-height: 1.55; }
.cvx-x { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: #f1f4f7; font-size: 20px; line-height: 1; cursor: pointer; color: #52667a; }
.cvx-l { display: block; margin: 10px 0 5px; font-size: 13px; font-weight: 700; color: #0f2236; }
.cvx-box textarea, .cvx-box select, .cvx-box input[type=file] { width: 100%; box-sizing: border-box; font: inherit; font-size: 15px; border: 1px solid #c3d3e3; border-radius: 10px; padding: 9px 11px; background: #fff; }
.cvx-box textarea { resize: vertical; min-height: 120px; }
.cvx-msg { min-height: 1.2em; margin: 10px 0 0 !important; color: #b42318; font-weight: 600; font-size: 13.5px !important; }
.cvx-btns { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.cvx-b { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 11px; border: 1px solid #dbe3ea; background: #fff; color: #0f2236; font: inherit; font-size: 14.5px; font-weight: 700; cursor: pointer; text-decoration: none; }
.cvx-p { background: #1273c4; border-color: #1273c4; color: #fff; }
.cvx-b[disabled] { opacity: .7; cursor: progress; }
body.cvx-open { overflow: hidden; }
/* CV score panel (assets/tools/cv-score.js) and the country choice. */
.ft-score { margin: 0 0 14px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.ft-score-top { display: flex; align-items: center; gap: 14px; }
.ft-score-ring { --v: 0; --c: #b42318; flex: none; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; font-size: 19px; font-weight: 800; color: #0f2236; background: radial-gradient(closest-side, #fff 76%, transparent 78%), conic-gradient(var(--c) calc(var(--v) * 1%), #e9eef3 0); font-variant-numeric: tabular-nums; }
.ft-score.is-ok .ft-score-ring { --c: #c98a0b; } .ft-score.is-good .ft-score-ring { --c: #149c6b; }
.ft-score h2 { margin: 0; font-size: 16px; line-height: 1.3; color: var(--ink); }
.ft-score h2 b { margin-left: 6px; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 10px; background: #fdeeee; color: #b42318; vertical-align: 2px; }
.ft-score.is-ok h2 b { background: #fdf1d2; color: #7a5306; } .ft-score.is-good h2 b { background: #e7f6ef; color: #0b5c3d; }
.ft-score-top p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.ft-score-tips { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; line-height: 1.45; color: var(--ink); }
.ft-score-tips .is-done { list-style: none; margin-left: -20px; color: #0b5c3d; font-weight: 600; }
.ft-score-ad { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.ft-score-ad summary { cursor: pointer; font-size: 14px; font-weight: 700; color: var(--blue); }
.ft-score-ad label { display: block; margin: 10px 0 5px; font-size: 13px; font-weight: 600; }
.ft-score-ad textarea { width: 100%; box-sizing: border-box; min-height: 90px; resize: vertical; }
.ft-score-miss p { margin: 10px 0 6px; font-size: 13px; color: var(--muted); } .ft-score-miss p.is-done { color: #0b5c3d; font-weight: 600; }
.ft-score-miss div { display: flex; flex-wrap: wrap; gap: 6px; }
.ft-score-miss span { padding: 3px 10px; border-radius: 12px; background: #eef5fc; color: #0e5fa3; font-size: 12.5px; font-weight: 600; }
.ft-country { margin-bottom: 12px; } .ft-country select { width: 100%; }
.ft-country-note { margin: 6px 0 0; font-size: 12.5px; line-height: 1.45; color: #0b5c3d; }
.ft-cvtpls { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: thin; padding: 2px; }
.ft-cvtpls button { flex: none; display: flex; flex-direction: column; align-items: center; gap: 5px; border: 0; background: none; padding: 0; cursor: pointer; font: inherit; }
.ft-cvtpls button span { font-size: 11.5px; font-weight: 700; color: var(--muted); }
.ft-cvtpls button[aria-pressed="true"] span { color: var(--blue); }
.ft-th { position: relative; display: block; width: 46px; height: 58px; border-radius: 5px; background: #fff; border: 1px solid var(--line); overflow: hidden; box-shadow: 0 1px 2px rgba(15,34,54,.08); }
.ft-cvtpls button[aria-pressed="true"] .ft-th { border-color: var(--blue); box-shadow: 0 0 0 2px var(--blue); }
.ft-cvtpls button:focus-visible .ft-th { box-shadow: 0 0 0 3px rgba(18,115,196,.4); }
.ft-th s { position: absolute; left: 0; right: 0; top: 0; height: 15px; background: var(--hd); text-decoration: none; }
.ft-th s::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--ac); }
.ft-th u { position: absolute; left: 6px; right: 8px; height: 3px; border-radius: 2px; background: #e3e8ee; text-decoration: none; }
.ft-th u:nth-of-type(1) { top: 24px; } .ft-th u:nth-of-type(2) { top: 32px; right: 14px; } .ft-th u:nth-of-type(3) { top: 40px; right: 11px; }
.ft-th-side s { right: auto; width: 15px; height: auto; bottom: 0; }
.ft-th-side s::after { display: none; }
.ft-th-side u { left: 19px; }
/* Sidebar on the right; and the small price / "Paid plan" label under a design. */
.ft-th-sider s { left: auto; right: 0; width: 15px; height: auto; bottom: 0; }
.ft-th-sider s::after { display: none; }
.ft-th-sider u { right: 19px; }
.ft-th-sider u:nth-of-type(2) { right: 24px; } .ft-th-sider u:nth-of-type(3) { right: 21px; }
.ft-cvtpls button em { font-style: normal; font-size: 10px; font-weight: 700; line-height: 1.3; padding: 1px 6px; border-radius: 8px; background: #fdf1d2; color: #7a5306; white-space: nowrap; }
.ft-th-thin s { height: 0; } .ft-th-thin s::after { bottom: auto; top: 15px; left: 8px; right: 8px; height: 1px; background: #cfcfcf; }
.ft-th-rule s { background: #fff; height: 13px; } .ft-th-rule s::after { height: 2px; background: var(--hd); }
.ft-th-slim s { height: 10px; } .ft-th-slim s::after { display: none; } .ft-th-slim u:nth-of-type(1) { top: 16px; } .ft-th-slim u:nth-of-type(2) { top: 22px; } .ft-th-slim u:nth-of-type(3) { top: 28px; }
.ft-cvstage { align-items: flex-start; }
.ft-cvpaper { position: relative; flex: none; width: 794px; height: 1123px; background: #fff; box-shadow: 0 10px 34px -14px rgba(15,34,54,.35); border-radius: 3px; overflow: hidden; }
.ft-cvpaper iframe { position: absolute; left: 0; top: 0; width: 794px; height: 1123px; border: 0; background: #fff; transform-origin: 0 0; pointer-events: none; }
.ft-cvload { position: absolute; right: 10px; top: 10px; background: rgba(15,34,54,.82); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 14px; }
.ft-cvload[hidden] { display: none; }
.ft-saved.is-pending i { background: var(--warn); }
@media (max-width: 860px) {
  .ft-cvb .ft-cvtool { padding: 10px 12px; }
  .ft-cvb .ft-cvtool .ft-lb { display: none; }
  .ft-cvb .ft-cvtpls { width: 100%; }
}
@media (max-width: 640px) {
  .ft-ligrid { grid-template-columns: 1fr; }
  .ft .ft-ta.ft-letter { min-height: 300px; }
  .ft-lpills { flex-wrap: nowrap; overflow-x: auto; margin-left: -14px; margin-right: -14px; padding: 0 14px 4px; scrollbar-width: none; }
  .ft-lpills button { flex: none; }
}
.ft-cvb .ft-sbody > .ft-fld { margin-bottom: 12px; }
.ft-sub em { font-style: normal; color: var(--faint); font-weight: 600; }
/* CV builder: Apply by email pop-up */
.ft-modal-c.is-wide { max-width: 640px; }
.ft-apform { margin-top: 16px; }
.ft-apform .ft-fld { margin-bottom: 12px; }
.ft-apform .ft-ta { min-height: 170px; padding: 12px; line-height: 1.55; }
.ft-apatts { display: flex; gap: 8px; flex-wrap: wrap; margin: 2px 0 8px; }
.ft-apatts span, .ft-apatts label { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; font-weight: 700; color: var(--ink); }
.ft-apatts label { cursor: pointer; }
.ft-apatts b { font-size: 9.5px; font-weight: 800; color: #d0422f; background: #fbebe8; padding: 3px 5px; border-radius: 4px; }
.ft-aperr { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: #fbebe8; color: #b4321f; font-size: 13.5px; font-weight: 600; }
.ft-aperr[hidden] { display: none; }
.ft-apatts span, .ft-apatts label { display: inline-flex !important; flex-direction: row !important; margin: 0 !important; }
.ft-apatts label input { width: auto !important; height: auto !important; margin: 0 !important; }

/* ── Education and Property & building tools (kits-calc.js) ── */
.ft-kit .ft-more { margin-top: 2px; }
.ft-kgrid5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.ft-cgpa-head, .ft-cgpa-row { display: grid; grid-template-columns: minmax(0, 1.6fr) 90px minmax(0, 1.4fr) 34px; gap: 8px; align-items: center; }
.ft-cgpa-head { font-size: 12.5px; font-weight: 700; color: var(--body); margin-bottom: 6px; }
.ft-cgpa-head em { font-style: normal; color: var(--faint); font-weight: 600; }
.ft-cgpa-row { margin-bottom: 8px; }
.ft-study-row { display: grid; grid-template-columns: minmax(0, 1fr) 140px 34px; gap: 8px; align-items: center; margin-bottom: 8px; }
.ft-cite i { font-style: italic; }
.ft-kout.ft-cite { font-size: 15px; line-height: 1.65; padding-left: 30px; text-indent: -16px; }
.ft-citelist { margin: 0; padding: 0 0 0 20px; }
.ft-citelist li { font-size: 14px; line-height: 1.6; padding: 6px 0; border-bottom: 1px solid var(--line2); }
.ft-citelist li span { display: inline; }
.ft-citelist li .ft-ib { float: right; width: 26px; height: 26px; margin-left: 6px; }
.ft-cdlist { display: flex; flex-direction: column; gap: 10px; }
.ft-cd { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.ft-cd.next { border-color: var(--kc, var(--blue)); box-shadow: 0 0 0 1px var(--kc, var(--blue)) inset; }
.ft-cd.past { opacity: .6; }
.ft-cd-tx { flex: 1; min-width: 0; }
.ft-cd-tx b { display: block; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ft-cd-tx span { font-size: 12.5px; color: var(--muted); }
.ft-cd-n { text-align: center; min-width: 46px; }
.ft-cd-n b { display: block; font-size: 22px; font-weight: 800; color: var(--kc, var(--blue)); line-height: 1.1; }
.ft-cd-n span { font-size: 11px; color: var(--faint); font-weight: 700; }
.ft-cd-a { display: flex; gap: 2px; }
.ft-tt { display: flex; flex-direction: column; gap: 10px; }
.ft-tt-day b { display: block; font-size: 13.5px; font-weight: 800; margin-bottom: 6px; }
.ft-tt-slots { display: flex; flex-wrap: wrap; gap: 6px; }
.ft-tt-s { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 10px; font-size: 13px; font-weight: 700; color: var(--ink); background: #eef2f6; }
.ft-tt-s em { font-style: normal; font-weight: 600; color: var(--muted); font-size: 12px; }
.ft-tt-s.c0 { background: #e8f3fc; } .ft-tt-s.c1 { background: #e6f5ee; } .ft-tt-s.c2 { background: #fbf3e3; } .ft-tt-s.c3 { background: #efedfb; } .ft-tt-s.c4 { background: #fcecf1; } .ft-tt-s.c5 { background: #e3f4f4; }
@media (max-width: 640px) {
  .ft-kgrid5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ft-cgpa-head { display: none; }
  .ft-cgpa-row { grid-template-columns: minmax(0, 1fr) 70px; }
  .ft-cgpa-row select { grid-column: 1 / 2; }
  .ft-cd { flex-wrap: wrap; }
  .ft-cd-tx { flex-basis: 100%; }
}
@media print {
  body.ft-printing * { visibility: hidden !important; }
  body.ft-printing #k-out, body.ft-printing #k-out * { visibility: visible !important; }
  body.ft-printing #k-out { position: absolute; left: 0; top: 0; width: 100%; }
}
/* CV builder: AI help */
.ft-aibar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.ft-btn-ai { background: #efedfb; color: #4a3db5 !important; border-color: transparent; }
.ft-btn-ai:hover { background: #e2defa; }
.ft-btn-ai svg { stroke: #6b5bd2; }
.ft-lbar .ft-btn-ai { margin-left: 2px; }
.ft-toast-undo { pointer-events: auto; margin-left: 10px; background: none; border: 0; color: #9fd0ff; font: inherit; font-weight: 800; cursor: pointer; text-decoration: underline; padding: 0; }
.ft-cvb .ft-abar { gap: 8px; padding-left: 18px; padding-right: 18px; }
.ft-cvb .ft-abar .ft-btn { height: 40px; padding: 0 12px; font-size: 13.5px; gap: 6px; }
.ft-cvb .ft-abar .ft-btn .ft-free { display: none; }
.ft-cvb .ft-abar .ft-sp { min-width: 0; }

/* "Install on this device": shown by partials/pwa_install.php only where the browser can install the site. */
.ft-install { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 9px 14px; min-height: 40px; border: 1px solid #cfe2f5; border-radius: 10px; background: #eef5fc; color: #0e5fa3; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.ft-install:hover { background: #e2eefa; }
.ft-install:focus-visible { outline: 3px solid rgba(18, 115, 196, .45); outline-offset: 2px; }
.ft-install[hidden] { display: none; }

/* Priced tools (Admin → Free tools → Price): the note beside the download button, and the panel shown instead of a locked browser tool. */
.ft-pricenote { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; padding: 12px 14px; border-radius: 12px; background: #fff8e8; border: 1px solid #f2d79c; color: #6b4d06; font-size: 13.5px; line-height: 1.45; text-align: left; }
.ft-pricenote > svg { flex: none; width: 20px; height: 20px; }
.ft-pricenote > div { flex: 1 1 auto; min-width: 0; }
.ft-badge.paid { color: #7a5306; background: #fdf1d2; }
@media (max-width: 560px) { .ft-pricenote { align-items: flex-start; } .ft-pricenote > svg { margin-top: 1px; } }
.ft-pricenote b { color: #4d3703; }
.ft-lock { max-width: 560px; margin: 8px auto 28px; padding: 32px 24px; border-radius: 18px; background: #fff; border: 1px solid var(--line, #e3e9ef); text-align: center; }
.ft-lock-ic { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 16px; display: grid; place-items: center; background: #e8f3fc; }
.ft-lock h2 { margin: 0 0 8px; font-size: 22px; line-height: 1.25; letter-spacing: -.02em; font-weight: 800; color: var(--ink, #0f2236); }
.ft-lock p { margin: 0 auto 20px; max-width: 44ch; color: var(--muted, #5a6b7d); font-size: 15px; line-height: 1.6; }
.ft-lock-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 520px) { .ft-lock { padding: 24px 16px; } .ft-lock-btns .ft-btn { flex: 1 1 100%; justify-content: center; } }

/* ATS-friendly designs (one column): small green tag in the design picker. */
.ft-ats { display: inline-block; font-size: 10px; font-weight: 800; line-height: 1.3; padding: 1px 6px; border-radius: 8px; background: #e7f6ef; color: #0b5c3d; letter-spacing: .03em; }
.ft-ats-note { flex-basis: 100%; margin: -4px 0 0; font-size: 12px; line-height: 1.45; color: var(--muted); }
.ft-ats-note .ft-ats { margin-right: 4px; }
