/* ===========================================================================
   PDFTools theme — Blue / Red / light-gray "utility dashboard" look,
   matching the icon set: blue banners & pills, red accents, soft gray cards.
   =========================================================================== */

:root {
  --bg: #ffffff;
  --canvas: #f5f7fa;       /* page wash                 */
  --card: #eef2f7;         /* soft gray-blue card       */
  --card-hover: #e4ebf4;
  --field: #ffffff;
  --ink: #1f3350;          /* headings / strong text    */
  --body: #2b3950;
  --muted: #5d6878;
  --line: #e2e8f1;
  --line-strong: #d3dceaff;

  --blue: #1f5fb0;         /* banner / pills / buttons  */
  --blue-bright: #2f72c4;  /* icon blue                 */
  --blue-deep: #14457f;
  --blue-hover: #1a539b;
  --blue-soft: #e6eefaff;  /* hover wash                */
  --red: #d8332a;
  --ok: #1a7a45;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(20, 40, 80, .05), 0 6px 16px rgba(20, 40, 80, .05);
  --shadow-lg: 0 14px 38px rgba(20, 40, 80, .14);

  --head: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--body);
  background: var(--canvas);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--head); color: var(--ink); }

/* header */
.nav {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
}
.nav-inner {
  max-width: 1180px; margin: 0 auto; padding: 14px 22px;
  display: flex; align-items: center; gap: 14px;
}
.logo {
  font-family: var(--head); font-weight: 800; font-size: 21px;
  display: flex; align-items: center; gap: 1px; color: var(--blue-deep);
  letter-spacing: .3px;
}
.logo .mark { color: var(--red); }
.nav-spacer { flex: 1; }
.nav a.back { color: var(--muted); font-weight: 600; font-size: 14px; }
.nav a.back:hover { color: var(--blue); }

/* header category menu */
.nav-menu { display: flex; gap: 2px; flex-wrap: wrap; }
.nav-item { position: relative; }
.nav-item > button {
  background: none; border: none; cursor: pointer; font-family: var(--sans);
  font-size: 14px; font-weight: 600; color: var(--body); padding: 8px 12px;
  border-radius: var(--radius-sm); display: flex; align-items: center; gap: 5px;
}
.nav-item > button:hover, .nav-item.open > button { color: var(--blue); background: var(--blue-soft); }
.nav-item .chev { width: 14px; height: 14px; transition: transform .15s; }
.nav-item.open .chev { transform: rotate(180deg); }
.nav-dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 248px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 7px; display: none; z-index: 30;
}
.nav-item.open .nav-dropdown { display: block; }
.nav-dropdown a {
  display: flex; align-items: center; gap: 11px; padding: 8px 10px;
  border-radius: var(--radius-sm); font-size: 14px; color: var(--body); font-weight: 500;
}
.nav-dropdown a:hover { background: var(--blue-soft); color: var(--blue-deep); }
.nav-dropdown a .di {
  width: 30px; height: 30px; border-radius: 7px; background: #fff;
  border: 1px solid var(--line); display: grid; place-items: center; flex: none;
}
.nav-dropdown a .di svg { width: 24px; height: 24px; }
@media (hover: hover) {
  .nav-item:hover > button { color: var(--blue); background: var(--blue-soft); }
  .nav-item:hover .nav-dropdown { display: block; }
  .nav-item:hover .chev { transform: rotate(180deg); }
}
@media (max-width: 760px) { .nav-menu { display: none; } }

/* hero */
.hero { text-align: center; padding: 56px 20px 26px; }
.hero h1 {
  display: inline-block; background: var(--blue); color: #fff;
  font-family: var(--head); font-weight: 800; font-size: 30px; letter-spacing: .5px;
  margin: 0; padding: 16px 34px; border-radius: 12px; line-height: 1.15;
  box-shadow: 0 8px 22px rgba(31, 95, 176, .28);
}
.hero p { color: var(--muted); margin: 20px auto 0; font-size: 17px; max-width: 560px; }

/* search */
.searchbar { max-width: 480px; margin: 24px auto 0; position: relative; }
.searchbar input {
  width: 100%; padding: 13px 20px; border: 1px solid var(--line-strong);
  border-radius: 999px; font-size: 15px; font-family: var(--sans);
  background: var(--field); color: var(--ink); box-shadow: var(--shadow); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.searchbar input::placeholder { color: #9aa6b6; }
.searchbar input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }

/* layout */
.wrap { max-width: 1180px; margin: 0 auto; padding: 16px 22px 72px; }
.cat-title {
  display: inline-block; background: var(--blue); color: #fff;
  font-size: 12px; text-transform: uppercase; letter-spacing: .1em;
  padding: 6px 16px; border-radius: 8px; margin: 40px 0 16px; font-weight: 700;
  font-family: var(--head);
}

/* grid */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.card {
  background: var(--card); border: 1px solid transparent;
  border-radius: var(--radius); padding: 22px 18px; text-align: center;
  transition: transform .16s ease, box-shadow .16s ease, background .16s, border-color .16s;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.card:hover { transform: translateY(-4px); background: var(--card-hover); border-color: var(--blue-bright); box-shadow: var(--shadow-lg); }
.card .ic { width: 66px; height: 66px; display: grid; place-items: center; margin-bottom: 2px; }
.card .ic svg { width: 60px; height: 60px; }
.card h3 { margin: 0; font-size: 16px; color: var(--ink); font-weight: 700; font-family: var(--head); }
.card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }

/* tool page */
.tool-head { text-align: center; padding: 50px 20px 8px; }
.tool-head .ic { width: 80px; height: 80px; display: inline-grid; place-items: center; margin-bottom: 10px; }
.tool-head .ic svg { width: 74px; height: 74px; }
.tool-head h1 {
  display: inline-block; background: var(--blue); color: #fff; font-family: var(--head);
  font-weight: 800; font-size: 26px; margin: 0 0 4px; padding: 12px 28px; border-radius: 12px;
  box-shadow: 0 8px 22px rgba(31, 95, 176, .26);
}
.tool-head p { color: var(--muted); margin: 16px 0 0; font-size: 16px; }

.panel {
  max-width: 640px; margin: 26px auto; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 30px;
}

.drop {
  border: 2px dashed var(--line-strong); border-radius: var(--radius);
  padding: 42px 20px; text-align: center; cursor: pointer; color: var(--blue);
  transition: border-color .15s, background .15s; background: var(--blue-soft);
}
.drop:hover, .drop.drag { border-color: var(--blue); background: #dceafb; }
.drop svg { width: 40px; height: 40px; color: var(--blue); }
.drop p { margin: 12px 0 0; color: var(--muted); }
.drop b { color: var(--ink); font-weight: 700; }

.filelist { list-style: none; margin: 18px 0 0; padding: 0; }
.filelist li {
  display: flex; align-items: center; gap: 10px; padding: 11px 14px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 8px;
  font-size: 14px; background: #fff;
}
.filelist li .fname { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filelist li .fsize { color: var(--muted); font-size: 12px; }
.filelist li button { border: none; background: none; color: var(--muted); cursor: pointer; font-size: 18px; line-height: 1; }
.filelist li button:hover { color: var(--red); }

.options { margin-top: 22px; display: grid; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink); }
.field input, .field select {
  padding: 11px 13px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  font-size: 14px; font-family: var(--sans); background: var(--field); color: var(--ink); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus { border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }

.hint { font-size: 13px; color: var(--muted); margin: 16px 0 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  width: 100%; margin-top: 24px; padding: 15px 22px; border: none;
  background: var(--blue); color: #fff; font-size: 16px; font-weight: 700;
  font-family: var(--head); letter-spacing: .3px;
  border-radius: 11px; cursor: pointer; transition: background .15s, transform .1s, box-shadow .15s;
  box-shadow: 0 8px 20px rgba(31, 95, 176, .26);
}
.btn:hover { background: var(--blue-hover); box-shadow: 0 12px 26px rgba(31, 95, 176, .32); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: default; box-shadow: none; }

.status { text-align: center; margin-top: 18px; font-size: 14px; min-height: 20px; }
.status.err { color: var(--red); }
.status.ok { color: var(--ok); }

.spinner {
  width: 18px; height: 18px; border: 3px solid rgba(255, 255, 255, .35);
  border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.footer {
  text-align: center; color: var(--muted); font-size: 13px;
  padding: 34px 20px 54px; border-top: 1px solid var(--line); margin-top: 20px;
}

.empty { text-align: center; color: var(--muted); padding: 48px; }

/* ---- trust strip (homepage) ---- */
.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 28px; max-width: 940px; margin: 30px auto 8px; padding: 18px 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.trust .ti { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--ink); font-weight: 500; }
.trust .ti svg { width: 20px; height: 20px; color: var(--blue); flex: none; }
.trust .ti small { display: block; color: var(--muted); font-size: 12px; font-weight: 400; }
.toolnote { max-width: 620px; margin: 14px auto 0; text-align: center; color: var(--muted); font-size: 13px; }
.legal { max-width: 760px; margin: 30px auto; }
.legal h1 { font-size: 30px; color: var(--blue-deep); margin: 8px 0 18px; }
.legal h2 { font-size: 18px; margin: 26px 0 8px; color: var(--ink); }
.legal p, .legal li { color: var(--body); font-size: 15px; line-height: 1.7; }
.legal ul { padding-left: 20px; }
.legal a { color: var(--blue); text-decoration: underline; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-bottom: 12px; }
.foot-links a { color: var(--muted); font-size: 13px; }
.foot-links a:hover { color: var(--blue); }
.cookie-bar { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); width: calc(100% - 32px); max-width: 720px; z-index: 60; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center; text-align: center; background: #fff; border: 1px solid var(--line-strong); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 14px 18px; font-size: 13.5px; color: var(--body); }
.cookie-bar a { color: var(--blue); text-decoration: underline; }
.cookie-bar .cookie-ok { border: none; background: var(--blue); color: #fff; font-weight: 600; padding: 8px 18px; border-radius: 8px; cursor: pointer; font-family: var(--sans); font-size: 13.5px; }
.cookie-bar .cookie-ok:hover { background: var(--blue-hover); }

/* ---- header auth links ---- */
.nav-auth { display: flex; align-items: center; gap: 8px; margin-left: 6px; }
.nav-auth .auth-link { color: var(--body); font-size: 14px; font-weight: 600; padding: 7px 10px; border-radius: var(--radius-sm); }
.nav-auth .auth-link:hover { color: var(--blue); background: var(--blue-soft); }
.nav-auth .auth-btn { background: var(--blue); color: #fff; font-size: 14px; font-weight: 600; padding: 8px 16px; border-radius: var(--radius-sm); }
.nav-auth .auth-btn:hover { background: var(--blue-hover); }

/* ---- auth / account card ---- */
.auth-card { max-width: 420px; margin: 40px auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px; }
.auth-card h1 { font-size: 24px; margin: 0 0 16px; color: var(--blue-deep); font-family: var(--head); }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-form label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 600; color: var(--ink); }
.auth-form input { padding: 11px 13px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); font-size: 14px; font-family: var(--sans); outline: none; }
.auth-form input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.auth-form .btn { margin-top: 6px; }
.auth-alt { font-size: 13px; color: var(--muted); margin-top: 16px; text-align: center; }
.auth-alt a { color: var(--blue); text-decoration: underline; }
.auth-error { background: #fdecea; color: #b3261e; border-radius: var(--radius-sm); padding: 10px 12px; font-size: 13px; margin: 0 0 16px; }

/* ---- blog ---- */
.post-list { display: grid; gap: 16px; max-width: 760px; margin: 0 auto; }
.post-card { display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; transition: transform .15s, box-shadow .15s, border-color .15s; }
.post-card:hover { transform: translateY(-3px); border-color: var(--blue-bright); box-shadow: var(--shadow-lg); }
.post-card h2 { font-size: 19px; margin: 6px 0 8px; color: var(--ink); }
.post-card p { color: var(--muted); font-size: 14px; margin: 0; }
.post-date { font-size: 12px; color: var(--blue); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.post.legal h1 { margin-top: 6px; }

/* ---- homepage filter tabs + popular ---- */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 940px; margin: 26px auto 6px; }
.tabs button { background: #fff; border: 1px solid var(--line-strong); color: var(--body); font-family: var(--sans); font-size: 13.5px; font-weight: 600; padding: 8px 16px; border-radius: 999px; cursor: pointer; transition: all .12s; }
.tabs button:hover { border-color: var(--blue); color: var(--blue); }
.tabs button.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.popular-title { display: inline-block; background: var(--red); color: #fff; font-family: var(--head); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; padding: 6px 16px; border-radius: 8px; margin: 30px 0 16px; font-weight: 700; }

/* ---- per-tool how-to + FAQ ---- */
.tool-extra { max-width: 720px; margin: 18px auto 0; }
.tool-extra section { margin-top: 26px; }
.tool-extra h2 { font-size: 20px; color: var(--blue-deep); font-family: var(--head); margin: 0 0 12px; }
.tool-extra ol { padding-left: 20px; color: var(--body); }
.tool-extra ol li { margin-bottom: 8px; line-height: 1.6; }
.tool-extra .faq-q { font-weight: 600; color: var(--ink); margin: 16px 0 4px; }
.tool-extra .faq-a { color: var(--muted); margin: 0; line-height: 1.6; }

/* ---- visual page editor ---- */
.pe-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 4px 0 18px; }
.pe-count { font-size: 13px; color: var(--ink); font-weight: 600; }
.pe-hint { font-size: 12px; color: var(--muted); }
.pe-spacer { flex: 1; }
.pe-btn { border: 1px solid var(--line-strong); background: #fff; color: var(--ink); border-radius: 8px; padding: 7px 12px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: var(--sans); }
.pe-btn:hover { border-color: var(--blue); color: var(--blue); }
.pe-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }
.pe-thumb { position: relative; border: 2px solid var(--line); border-radius: 10px; padding: 8px; background: #fff; display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; transition: border-color .12s, box-shadow .12s; }
.pe-thumb:hover { border-color: var(--blue-bright); box-shadow: var(--shadow); }
.pe-thumb.sel { border-color: var(--blue); background: var(--blue-soft); }
.pe-thumb[draggable="true"] { cursor: grab; }
.pe-thumb.dragging { opacity: .4; }
.pe-canvas { max-width: 100%; height: auto; border: 1px solid var(--line); box-shadow: 0 1px 3px rgba(0,0,0,.08); background: #fff; }
.pe-num { font-size: 12px; color: var(--muted); font-weight: 600; }
.pe-del, .pe-rot { position: absolute; top: 6px; width: 24px; height: 24px; border: none; border-radius: 50%; color: #fff; font-size: 14px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.pe-del { right: 6px; background: var(--red); }
.pe-rot { left: 6px; background: var(--blue); }

/* ---- visual Sign PDF editor ---- */
.sg-panel, #sg-panel { max-width: 1040px; }
.sg-layout { display: flex; gap: 20px; align-items: flex-start; }
.sg-pages { flex: 1; min-width: 0; max-height: 70vh; overflow: auto; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 6px; background: var(--canvas); border-radius: var(--radius); }
.sg-page { position: relative; box-shadow: var(--shadow); border-radius: 4px; overflow: hidden; flex: none; }
.sg-page canvas { display: block; }
.sg-sig { position: absolute; cursor: grab; touch-action: none; user-select: none; outline: 2px dashed var(--blue); outline-offset: 2px; border-radius: 2px; }
.sg-sig.dragging { cursor: grabbing; opacity: .9; }
.sg-side { width: 300px; flex: none; display: flex; flex-direction: column; gap: 8px; }
.sg-lbl { font-size: 12px; font-weight: 700; color: var(--ink); text-transform: uppercase; letter-spacing: .04em; margin-top: 8px; }
.sg-input { padding: 11px 13px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); font-size: 15px; font-family: var(--sans); outline: none; }
.sg-input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.sg-fonts { display: flex; flex-direction: column; gap: 6px; }
.sg-font { text-align: left; border: 1px solid var(--line-strong); background: #fff; border-radius: 8px; padding: 6px 12px; font-size: 24px; color: var(--ink); cursor: pointer; line-height: 1.4; }
.sg-font:hover { border-color: var(--blue); }
.sg-font.active { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.sg-colors, .sg-sizes { display: flex; gap: 8px; }
.sg-color { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line-strong); cursor: pointer; }
.sg-color.active { box-shadow: 0 0 0 2px var(--blue); }
.sg-size { width: 40px; height: 34px; border: 1px solid var(--line-strong); background: #fff; border-radius: 8px; font-weight: 700; color: var(--ink); cursor: pointer; }
.sg-size.active { border-color: var(--blue); color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.sg-preview { min-height: 40px; margin-top: 6px; display: flex; flex-direction: column; gap: 2px; }
.sg-preview img { max-width: 100%; max-height: 70px; }
.sg-prev-lbl { font-size: 11px; color: var(--muted); }
.sg-tip { font-size: 12px; color: var(--muted); line-height: 1.5; }
@media (max-width: 760px) { .sg-layout { flex-direction: column; } .sg-side { width: 100%; } .sg-pages { width: 100%; max-height: 60vh; } }

/* ---- visual Compare PDF ---- */
#cmp-panel { max-width: 1100px; }
.cmp-slots { display: flex; gap: 18px; }
.cmp-slot { flex: 1; }
.cmp-slbl { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ink); margin-bottom: 8px; }
.cmp-drop.ok { background: #e7f6ec; border-color: var(--ok); color: var(--ok); }
.cmp-drop p { margin: 8px 0 0; }
.cmp-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 14px; }
.cmp-count { font-size: 13px; color: var(--muted); font-weight: 600; }
.cmp-dl { width: auto; margin: 0; padding: 9px 16px; font-size: 14px; }
.cmp-main { display: flex; gap: 14px; align-items: flex-start; }
.cmp-col { flex: 1; min-width: 0; max-height: 72vh; overflow: auto; background: var(--canvas); border-radius: var(--radius); padding: 8px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.cmp-canvas { max-width: 100%; height: auto; box-shadow: var(--shadow); background: #fff; }
.cmp-report { width: 320px; flex: none; max-height: 72vh; overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.cmp-rtitle { font-size: 16px; margin: 0 0 10px; color: var(--blue-deep); font-family: var(--head); }
.cmp-page { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 10px; }
.cmp-page:first-of-type { border-top: none; }
.cmp-pnum { font-size: 12px; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; }
.cmp-chg { font-size: 13px; padding: 7px 9px; border-radius: 6px; margin: 5px 0; line-height: 1.5; word-break: break-word; }
.cmp-chg.del { background: #fdecea; color: #8c2820; }
.cmp-chg.ins { background: #e7f6ec; color: #14572e; }
.cmp-tag { display: inline-block; font-size: 10px; font-weight: 700; text-transform: uppercase; margin-right: 7px; opacity: .65; }
.cmp-none { color: var(--muted); font-size: 14px; padding: 10px 0; }
@media (max-width: 880px) { .cmp-main { flex-direction: column; } .cmp-report { width: 100%; } .cmp-col { width: 100%; } }

/* ---- visual Fill PDF Form ---- */
#fm-panel { max-width: 900px; }
.fm-size { width: 34px; height: 30px; border: 1px solid var(--line-strong); background: #fff; border-radius: 7px; font-weight: 700; font-size: 12px; color: var(--ink); cursor: pointer; }
.fm-size.active { border-color: var(--blue); color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.fm-sizes, .fm-colors { display: inline-flex; gap: 6px; align-items: center; }
.pe-btn.active { border-color: var(--blue); color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.fm-pages { max-height: 74vh; overflow: auto; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 8px; background: var(--canvas); border-radius: var(--radius); }
.fm-pages.adding .fm-page { cursor: crosshair; }
.fm-page { position: relative; box-shadow: var(--shadow); background: #fff; flex: none; }
.fm-page canvas { display: block; }
.fm-field { position: absolute; border: 1px solid var(--blue); background: rgba(31,95,176,.06); font-size: 13px; padding: 0 4px; border-radius: 2px; color: var(--ink); outline: none; }
.fm-field:focus { background: var(--blue-soft); box-shadow: 0 0 0 2px var(--blue); }
.ft-box { position: absolute; display: inline-flex; align-items: center; background: rgba(255,255,255,.6); border: 1px dashed var(--blue); border-radius: 4px; }
.ft-handle { cursor: grab; touch-action: none; padding: 0 4px; color: var(--blue); font-size: 12px; user-select: none; }
.ft-input { border: none; background: transparent; outline: none; min-width: 80px; padding: 2px 2px; line-height: 1.1; font-family: var(--sans); }
.ft-del { border: none; background: none; color: var(--red); cursor: pointer; font-size: 15px; padding: 0 4px; }

/* ---- brand logo image ---- */
.logo-img { height: 38px; width: auto; display: block; }
@media (max-width: 600px) { .logo-img { height: 30px; } }
