/* Header / Footer studio — token ERP + Quick GO HeaderBuilder */
.cms-tool .primary, .cms-tool .secondary {
  margin: 0; height: 28px; padding: 0 12px; font-size: 12px; width: auto; display: inline-flex; align-items: center; text-decoration: none;
}
.cms-tool .primary { background: var(--brand, var(--btn-on)); color: #fff; border: 1px solid transparent; border-radius: 6px; cursor: pointer; }
.cms-tool .secondary { background: var(--btn, var(--input-bg)); color: var(--text); border: 1px solid var(--border); border-radius: 6px; }
.cms-tool .ok { color: var(--ok, #2e7d32); font-size: 12px; }
.hb {
  background: var(--panel, var(--surface)); color: var(--text);
  border: 1px solid var(--line, var(--border)); border-radius: 8px; overflow: hidden;
}
.hb-bar {
  display: flex; align-items: center; gap: 8px; padding: 6px 8px;
  background: var(--filter-bg, var(--bg)); flex-wrap: wrap; border-bottom: 1px solid var(--line, var(--border));
}
.hb-seg { display: inline-flex; }
.hb-seg button, .hb-actions button, .hb-palette button, .hb-el, .hb-slot-h button {
  background: var(--btn, var(--input-bg)); color: var(--btn-text, var(--text));
  border: 1px solid var(--btn-border, var(--border)); margin: 0; width: auto; padding: 3px 8px; font-size: 11px; height: 24px; cursor: pointer;
}
.hb-seg button:hover, .hb-actions button:hover, .hb-palette button:hover, .hb-el:hover {
  background: var(--btn-hover, var(--bg));
}
.hb-seg button.on, .hb-palette button.on, .hb-el.on {
  background: var(--btn-on, var(--brand)); border-color: var(--btn-on-border, var(--brand)); color: var(--btn-on-text, #fff);
}
.hb-actions { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; }
.hb-live { background: var(--code-bg, var(--bg)); padding: 6px 8px; }
.hb-live.mobile { width: 100%; max-width: 440px; margin: 0 auto; }
.hb-live-frame { background: #fff; box-shadow: 0 4px 16px rgba(0,0,0,.12); overflow: hidden; min-height: 0 !important; }
.hb-live-frame.cms-site, .hb-live .cms-site { min-height: 0 !important; }
.hb-canvas.mobile { width: 100%; max-width: 420px; margin: 0 auto; }
.hb-row { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 6px; padding: 6px; border-bottom: 1px solid var(--line, var(--border)); background: var(--panel, var(--surface)); }
.hb-slot { border: 1px dashed var(--line, var(--border)); min-height: 56px; padding: 4px; background: var(--input, var(--input-bg)); }
.hb-slot.drop { border-color: var(--bronze, var(--brand)); background: var(--th-bg, var(--bg)); box-shadow: inset 0 0 0 1px var(--bronze, var(--brand)); }
.hb-slot-h { display: flex; justify-content: space-between; font-size: 10px; color: var(--muted, var(--text-muted)); }
.hb-els { display: flex; gap: 4px; flex-wrap: wrap; min-height: 28px; }
.hb-chip { display: inline-flex; align-items: stretch; }
.hb-chip.on .hb-el { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.hb-el { cursor: grab; }
.hb-el:active { cursor: grabbing; }
.hb-el-x {
  margin: 0 0 0 -1px; width: auto; height: 24px; padding: 0 7px; font-size: 10px; font-weight: 700;
  background: var(--btn, var(--input-bg)); color: var(--danger, #c0392b); border: 1px solid var(--btn-on-border, var(--border));
  border-top-left-radius: 0; border-bottom-left-radius: 0; cursor: pointer;
}
.hb-el-x:hover { background: var(--btn-hover, var(--bg)); }
.hb-insp-h { display: flex; align-items: center; gap: 8px; }
.hb-insp-h .hb-el-x { margin: 0; border-radius: 4px; height: 22px; }
.hb-palette { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px 8px; background: var(--filter-bg, var(--bg)); align-items: center; border-top: 1px solid var(--line, var(--border)); }
.hb-palette button { cursor: grab; }
.hb-palette .muted { font-size: 11px; margin: 0 0 0 6px; color: var(--muted, var(--text-muted)); }
.hb-insp {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; align-items: start;
  background: var(--panel, var(--surface)); color: var(--text); border-top: 1px solid var(--line, var(--border));
  padding: 12px 14px 14px; min-height: 132px;
}
.hb-insp[hidden] { display: none; }
.hb-insp > strong { grid-column: 1 / -1; font-size: 13px; color: var(--h1, var(--text)); }
.hb-insp .hb-insp-wide, .hb-insp .ghost { grid-column: 1 / -1; }
.hb-insp label { margin: 0; color: var(--muted, var(--text-muted)); font-size: 12px; display: flex; flex-direction: column; gap: 4px; width: auto; }
.hb-insp input, .hb-insp textarea, .hb-insp select {
  width: 100%; margin: 0; background: var(--input, var(--input-bg)); color: var(--text); border: 1px solid var(--line, var(--border));
  font-size: 13px; padding: 6px 8px;
}
.hb-insp textarea { min-height: 96px; resize: vertical; line-height: 1.45; }
.hb-opts {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px;
  padding: 8px; background: var(--panel, var(--surface)); border-top: 1px solid var(--line, var(--border));
}
.hb-opts label { color: var(--muted, var(--text-muted)); margin: 0; }
.hb-opts input[type=text], .hb-opts input:not([type]) {
  background: var(--input, var(--input-bg)); color: var(--text); border: 1px solid var(--line, var(--border)); height: 26px; padding: 2px 6px; font-size: 12px;
}
.hb-opts input[type=checkbox] {
  width: 14px !important; min-width: 14px !important; max-width: 14px !important;
  height: 14px !important; padding: 0 !important;
}
.ft-chk {
  display: inline-flex !important; align-items: center; gap: 5px;
  width: auto !important; margin: 0 !important; font-size: 11px; color: var(--muted, var(--text-muted)); white-space: nowrap;
  flex-shrink: 0; padding: 0 8px 0 0;
}
.ft-mini { margin: 0; color: var(--muted, var(--text-muted)); font-size: 11px; width: auto; }
.ft-mini select, .ft-mini input {
  height: 26px; padding: 2px 6px; font-size: 12px; width: 110px;
  background: var(--input, var(--input-bg)); color: var(--text); border: 1px solid var(--line, var(--border));
}
.ft-color-lab { margin: 0; color: var(--muted, var(--text-muted)); font-size: 11px; width: auto; }
.ft-color { display: flex; align-items: center; gap: 4px; margin-top: 2px; }
.ft-color input[type=color] {
  width: 22px !important; min-width: 22px; height: 22px; padding: 1px; flex: 0 0 22px;
  background: var(--input, var(--input-bg)); border: 1px solid var(--line, var(--border)); cursor: pointer; border-radius: 4px;
  -webkit-appearance: none; appearance: none;
}
.ft-media { margin: 0; }
.ft-media-lab { display: block; font-size: 11px; color: var(--muted, var(--text-muted)); margin: 0 0 2px; }
.ft-media-row { display: flex; align-items: center; gap: 6px; }
.ft-media-row img { width: 32px; height: 22px; object-fit: cover; border-radius: 3px; border: 1px solid var(--line, var(--border)); background: var(--input, var(--input-bg)); }
.ft-media-row input { height: 26px; min-width: 140px; padding: 2px 6px; font-size: 12px; border: 1px solid var(--line, var(--border)); background: var(--input, var(--input-bg)); color: var(--text); }
.ft-media-row button { height: 26px; padding: 0 8px; font-size: 11px; width: auto; margin: 0; }

.hb-live-frame.cms-site, .hb-live .cms-site {
  container-type: inline-size; container-name: cms; width: 100%; max-width: 100%; box-sizing: border-box;
}
.cms-head { border-bottom: 1px solid #eee; background: #fff; color: #1b1e23; position: relative; z-index: 30; }
.cms-head.sticky { position: sticky; top: 0; z-index: 30; }
.cms-top { font-size: 12px; background: var(--cms-top-bg, #1B1E23) !important; color: var(--cms-top-fg, #F4EFE3) !important; }
.cms-main { background: var(--cms-main-bg, #ffffff) !important; color: var(--cms-main-fg, #16181C) !important; }
.cms-bottom { background: var(--cms-bottom-bg, #f7f7f7) !important; color: var(--cms-bottom-fg, #16181C) !important; }
.cms-head a, .cms-head .cms-chip, .cms-head .cms-cart, .cms-head .cms-html-el, .cms-head .cms-nav span { color: inherit; }
.cms-head a:hover, .cms-head .cms-chip:hover { color: var(--cms-primary, #D4A017); }
.cms-top .cms-html-el { color: var(--cms-accent, #E8C547); }
.cms-head-in {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px;
  max-width: var(--cms-width, 1170px); margin: 0 auto; padding: 8px 16px;
}
.cms-slot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
.cms-slot.center { justify-content: center; }
.cms-slot.right { justify-content: flex-end; }
.cms-mbar, .cms-mdrawer { display: none; }
.cms-mbar {
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center; gap: 8px; padding: 8px 12px;
  background: var(--cms-main-bg, #ffffff) !important; color: var(--cms-main-fg, #16181C) !important;
}
.hb .cms-mbar > details { display: contents; }
.cms-mbar-logo { display: flex; justify-content: center; min-width: 0; }
.cms-mbar-logo .cms-logo { justify-content: center; }
.cms-mbar-right { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.cms-burger {
  width: 40px; height: 40px; margin: 0; padding: 0; border: 0; cursor: pointer;
  background: transparent; color: inherit; font-size: 22px; line-height: 1; list-style: none;
}
.cms-mdrawer { flex-direction: column; gap: 12px; padding: 12px 16px 18px; border-top: 1px solid #eee; background: #fff; color: #1b1e23; grid-column: 1 / -1; }
.cms-mdrawer-extra { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding-top: 6px; }
.cms-logo { font-weight: 800; color: var(--cms-primary, #D4A017); font-size: 18px; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.cms-logo img { height: 36px; }
.cms-nav { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.cms-nav a, .cms-nav span { color: inherit; font-weight: 600; font-size: 13px; text-transform: uppercase; text-decoration: none; }
.cms-nav-link { display: inline-flex; align-items: center; gap: 6px; }
.cms-nav-ico { width: 16px; height: 16px; object-fit: contain; }
.cms-nav-glyph { font-style: normal; font-size: 14px; line-height: 1; }
.cms-nav.is-vert { flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: 0; }
.cms-nav-item { position: relative; display: inline-block; }
.cms-nav.is-vert .cms-nav-item { display: block; }
.cms-nav.is-vert > .cms-nav-item > .cms-nav-fly,
.cms-mdrawer .cms-nav .cms-nav-fly {
  position: static; display: flex; flex-direction: column; min-width: 0;
  padding: 0 0 0 12px; box-shadow: none; background: transparent; border: 0;
}
.cms-nav-item.has-kids > .cms-nav-fly {
  display: none; position: absolute; top: 100%; left: 0; z-index: 8;
  min-width: 200px; padding: 8px 0; background: #fff; color: #16181C;
  border: 1px solid #eee; border-radius: 8px; box-shadow: 0 12px 28px rgba(0,0,0,.12);
}
.cms-nav:not(.is-vert) .cms-nav-item.has-kids:hover > .cms-nav-fly,
.cms-nav:not(.is-vert) .cms-nav-item.has-kids:focus-within > .cms-nav-fly { display: flex; flex-direction: column; }
.cms-nav-fly .cms-nav-item.has-kids > .cms-nav-fly { top: 0; left: 100%; }
.cms-nav-fly .cms-nav-item.has-kids:hover > .cms-nav-fly,
.cms-nav-fly .cms-nav-item.has-kids:focus-within > .cms-nav-fly { display: flex; flex-direction: column; }
.cms-nav-fly .cms-nav-link { display: flex; padding: 8px 14px; text-transform: none; font-size: 13px; font-weight: 600; }
.cms-chip, .cms-cart { display: inline-block; padding: 4px 8px; border: 1px solid currentColor; border-radius: 4px; color: inherit; text-decoration: none; font-size: 12px; }
.cms-btn.sm { display: inline-block; background: var(--cms-primary, #D4A017); color: #1a1408; font-weight: 700; padding: 6px 12px; border-radius: 8px; text-decoration: none; font-size: 12px; }
.cms-search { flex: 0 0 auto; position: relative; }
.cms-search-in { height: 32px; width: 180px; min-width: 140px; max-width: 220px; padding: 0 8px; border: 1px solid #ccc; border-radius: 4px; box-sizing: border-box; }
.cms-head input, .cms-head button, .cms-head select, .cms-head textarea {
  width: auto; max-width: none; margin: 0; font: inherit;
}
.cms-head .cms-search-in { width: 180px; }
.cms-site { container-type: inline-size; container-name: cms; }
.cms-html-el, .cms-fw { word-break: break-word; }
.cms-social { display: inline-flex; gap: 6px; }
.cms-share-n { width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid currentColor; border-radius: 50%; font-size: 10px; text-decoration: none; color: inherit; }

@container cms (max-width: 760px) {
  .cms-head-wide { display: none !important; }
  .cms-mbar { display: grid; }
  .cms-mbar details[open] .cms-mdrawer { display: flex; }
}
@media (max-width: 760px) {
  .cms-head-wide { display: none !important; }
  .cms-mbar { display: grid; }
  .cms-mbar details[open] .cms-mdrawer { display: flex; }
}
.hb-live.mobile .cms-head-wide { display: none !important; }
.hb-live.mobile .cms-mbar { display: grid; }
.hb-live.mobile .cms-mbar details[open] .cms-mdrawer { display: flex; }

.ft-work { display: flex; flex-direction: column; gap: 6px; }
.ft-preview { background: var(--code-bg, var(--bg)); padding: 6px 8px 56px; border-radius: 8px; position: relative; overflow: hidden; container-type: inline-size; container-name: cms; }
.hb-live-label { padding: 8px 10px; font-size: 12px; color: var(--muted, var(--text-muted)); }
.ft-preview .cms-site, .cms-footx.compact { min-height: 0 !important; }
.cms-footx.compact .cms-footx-in { padding: 10px 14px 8px; gap: 10px; }
.cms-footx.compact .cms-footx-bar { padding: 6px 14px; }
.ft-edit { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ft-edit input:focus, .ft-edit select:focus, .ft-edit textarea:focus { outline-width: 1px; outline-offset: 0; }
.ft-edit input[type=checkbox] {
  width: 14px !important; min-width: 14px !important; max-width: 14px !important;
  height: 14px !important; padding: 0 !important; margin: 0 !important;
}
.ft-chk {
  display: inline-flex !important; align-items: center; gap: 5px;
  width: auto !important; margin: 0 !important; font-size: 11px; color: var(--muted, var(--text-muted)); white-space: nowrap;
  flex-shrink: 0; padding: 0 8px 0 0;
}
.ft-acc { background: var(--panel, var(--surface)); color: var(--text); border: 1px solid var(--line, var(--border)); border-radius: 6px; overflow: hidden; }
.ft-acc-h {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: var(--filter-bg, var(--bg)); padding: 0 8px 0 0; min-height: 28px;
}
.ft-acc-h > button {
  flex: 1; text-align: left; background: transparent; color: var(--text); border: 0; margin: 0;
  padding: 5px 10px; font-weight: 600; font-size: 12px; height: auto; border-radius: 0; width: auto; cursor: pointer;
}
.ft-acc-b { padding: 6px 8px; }
.ft-off, .ft-hint { margin: 0; font-size: 11px; color: var(--muted, var(--text-muted)); }
.ft-toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; margin-top: 6px; }
.ft-mini { margin: 0; color: var(--muted, var(--text-muted)); font-size: 11px; width: auto; display: flex; flex-direction: column; gap: 2px; }
.ft-mini select, .ft-mini input {
  height: 26px; padding: 2px 6px; font-size: 12px; width: 110px;
  background: var(--input, var(--input-bg)); color: var(--text); border: 1px solid var(--line, var(--border));
}
.ft-grow { margin: 0; color: var(--muted, var(--text-muted)); font-size: 11px; flex: 1; min-width: 140px; display: flex; flex-direction: column; gap: 2px; }
.ft-grow input, .ft-grow textarea {
  height: auto; min-height: 26px; padding: 4px 6px; font-size: 12px;
  background: var(--input, var(--input-bg)); color: var(--text); border: 1px solid var(--line, var(--border));
}
.ft-color-lab { margin: 0; color: var(--muted, var(--text-muted)); font-size: 11px; width: auto; }
.ft-color { display: flex; align-items: center; gap: 4px; margin-top: 2px; }
.ft-color input[type=color] {
  width: 22px !important; min-width: 22px; height: 22px; padding: 1px; flex: 0 0 22px;
  background: var(--input, var(--input-bg)); border: 1px solid var(--line, var(--border)); cursor: pointer; border-radius: 4px;
  -webkit-appearance: none; appearance: none;
}
.ft-color input[type=text] {
  width: 78px !important; flex: 0 0 78px; height: 22px; padding: 1px 4px; font-size: 11px;
  font-family: ui-monospace, Consolas, monospace;
  background: var(--input, var(--input-bg)); color: var(--text); border: 1px solid var(--line, var(--border));
}
.ft-media { margin: 0; }
.ft-media-lab { display: block; font-size: 11px; color: var(--muted, var(--text-muted)); margin: 0 0 2px; }
.ft-media-row { display: flex; align-items: center; gap: 6px; }
.ft-media-row img { width: 32px; height: 22px; object-fit: cover; border-radius: 3px; border: 1px solid var(--line, var(--border)); background: var(--input, var(--input-bg)); }
.ft-media-ph {
  min-width: 32px; height: 22px; border-radius: 3px; border: 1px dashed var(--line, var(--border));
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; color: var(--muted, var(--text-muted)); padding: 0 6px; background: var(--input, var(--input-bg));
}
.ft-media-row .secondary, .ft-media-row .ghost, .ft-fab-row .ghost, .ft-fab-add {
  height: 22px; padding: 0 8px; font-size: 11px; margin: 0; width: auto; cursor: pointer;
  background: var(--btn, var(--input-bg)); color: var(--text); border: 1px solid var(--line, var(--border)); border-radius: 6px;
}
.cms-foot-img { max-width: 100%; height: auto; display: block; border-radius: 4px; }
.ft-row-opts { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; color: var(--muted, var(--text-muted)); font-size: 11px; }
.ft-row-opts .hb-seg { display: flex; flex-wrap: wrap; gap: 2px; }
.ft-row-opts .hb-seg button {
  min-width: 20px; width: 20px; height: 20px; padding: 0; font-size: 11px; line-height: 18px;
}
.ft-cols { display: grid; gap: 6px; padding: 6px; background: var(--code-bg, var(--bg)); }
.ft-col { border: 1px dashed var(--line, var(--border)); border-radius: 6px; padding: 6px; background: var(--panel, var(--surface)); min-height: 64px; }
.ft-col .hb-el { display: flex; justify-content: space-between; width: 100%; margin: 0 0 4px; padding: 2px 6px; font-size: 11px; height: 22px; }
.ft-col select {
  margin: 0; width: 100%; height: 22px; padding: 0 4px; font-size: 11px;
  background: var(--input, var(--input-bg)); color: var(--text); border: 1px solid var(--line, var(--border));
}
.ft-insp {
  background: var(--panel, var(--surface)); color: var(--text); border: 1px solid var(--line, var(--border)); border-radius: 6px;
  padding: 8px; display: flex; flex-direction: column; gap: 6px; margin-top: 8px;
}
.ft-insp strong { font-size: 12px; color: var(--text); }
.ft-insp label { margin: 0; color: var(--muted, var(--text-muted)); }
.cms-footx-in {
  display: grid; gap: 20px; margin: 0 auto; padding: 28px 20px 20px; align-items: start;
  max-width: var(--cms-width, 1170px); width: 100%;
  grid-template-columns: repeat(var(--foot-cols, 4), minmax(0, 1fr));
}
.cms-footx-in[data-cols="1"] { --foot-cols: 1; }
.cms-footx-in[data-cols="2"] { --foot-cols: 2; }
.cms-footx-in[data-cols="3"] { --foot-cols: 3; }
.cms-footx-in[data-cols="4"] { --foot-cols: 4; }
.cms-footx-in[data-cols="5"] { --foot-cols: 5; }
.cms-footx-in[data-cols="6"] { --foot-cols: 6; }
.cms-footx-band[data-row="row1"] { --foot-cols: var(--cms-foot-r1-cols, 4); background-color: var(--cms-foot-r1-bg, #1B1E23) !important; color: var(--cms-foot-r1-fg, #e8eaee) !important; }
.cms-footx-band[data-row="row2"] { --foot-cols: var(--cms-foot-r2-cols, 4); background-color: var(--cms-foot-r2-bg, #1B1E23) !important; color: var(--cms-foot-r2-fg, #e8eaee) !important; }
.cms-footx-bar { background: var(--cms-foot-bar-bg, #121417) !important; }
.cms-site .cms-footx, .cms-footx { color: #e8eaee; min-height: 0; font: 14px/1.5 system-ui, sans-serif; }
.cms-footx.abs { position: relative; }
.cms-foot-col h4, .cms-site .cms-footx h4, .cms-site .cms-footx .cms-w h4 {
  margin: 0 0 10px; color: var(--cms-primary, #D4A017); font-size: 14px; background: none; display: block;
}
.cms-foot-col p, .cms-foot-col li { font-size: 13px; line-height: 1.55; opacity: .9; }
.cms-foot-col ul { list-style: none; padding: 0; margin: 0; }
.cms-foot-col a, .cms-foot-col span { color: inherit; }
.cms-footx-bar { padding: 10px 20px; font-size: 12px; opacity: .85; line-height: 1.4; }
.cms-footx-band { width: 100%; }
.cms-footx-bar-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 auto; width: 100%; max-width: var(--cms-width, 1170px); }
.cms-footx-bar.center .cms-footx-bar-in { justify-content: center; }
.cms-foot-html { padding: 8px 16px; }
.cms-float { position: fixed; z-index: 40; bottom: 18px; display: flex; flex-direction: column; gap: 10px; }
.cms-float.is-left { left: 16px; }
.cms-float.is-right { right: 16px; }
.ft-preview .cms-float, .cms-float.is-preview { position: absolute; bottom: 12px; }
.cms-fab {
  width: 48px; height: 48px; margin: 0; padding: 0; border: 0;
  display: grid; place-items: center; color: #fff; text-decoration: none;
  box-shadow: 0 6px 16px rgba(0,0,0,.22); cursor: pointer;
  position: relative; overflow: visible; isolation: isolate; background: var(--cms-primary, #D4A017);
}
.cms-fab-in { display: grid; place-items: center; width: 100%; height: 100%; border-radius: inherit; transform-origin: center center; }
.cms-fab.round, .ft-shape-pick button.circle { border-radius: 50%; }
.cms-fab.square, .ft-shape-pick button.square { border-radius: 8px; }
.cms-fab.rounded, .ft-shape-pick button.rounded { border-radius: 14px; }
.cms-fab-top { background: var(--cms-primary, #D4A017); color: #1a1408; }
.cms-fab.fx-shake .cms-fab-in { animation: cms-fab-shake .85s ease-in-out infinite; }
.cms-fab.fx-ring .cms-fab-in { animation: cms-fab-ring .9s ease-in-out infinite; }
.cms-fab.fx-pulse .cms-fab-in { animation: cms-fab-pulse 1.2s ease-out infinite; }
.cms-fab.fx-bounce .cms-fab-in { animation: cms-fab-bounce .9s ease-in-out infinite; }
.cms-fab.fx-tada .cms-fab-in { animation: cms-fab-tada 1.1s ease-in-out infinite; }
.cms-fab.fx-wobble .cms-fab-in { animation: cms-fab-wobble .9s ease-in-out infinite; }
.cms-fab.has-sonar::before, .cms-fab.has-sonar::after,
.cms-fab.fx-sonar::before, .cms-fab.fx-sonar::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background: inherit; animation: cms-fab-sonar 1.6s ease-out infinite;
}
.cms-fab.has-sonar::after, .cms-fab.fx-sonar::after { animation-delay: .55s; }
@keyframes cms-fab-shake {
  0% { transform: rotate(0); } 10% { transform: rotate(15deg); } 20% { transform: rotate(-13deg); }
  30% { transform: rotate(11deg); } 40% { transform: rotate(-8deg); } 50% { transform: rotate(5deg); }
  60%, 100% { transform: rotate(0); }
}
@keyframes cms-fab-ring {
  0%, 100% { transform: rotate(0); } 10% { transform: rotate(12deg); } 20% { transform: rotate(-10deg); }
  30% { transform: rotate(8deg); } 40% { transform: rotate(-6deg); }
}
@keyframes cms-fab-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@keyframes cms-fab-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes cms-fab-tada {
  0%, 100% { transform: scale(1) rotate(0); } 10%, 20% { transform: scale(.95) rotate(-3deg); }
  30%, 50%, 70% { transform: scale(1.05) rotate(3deg); } 40%, 60% { transform: scale(1.05) rotate(-3deg); }
}
@keyframes cms-fab-wobble { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
@keyframes cms-fab-sonar { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(1.85); opacity: 0; } }
.ft-float-cfg { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.ft-float-row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px 24px; }
.ft-float-field { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin: 0; }
.ft-float-field > span:first-child { font-size: 11px; color: var(--muted, var(--text-muted)); }
.ft-shape-pick { display: flex; align-items: center; gap: 8px; }
.ft-shape-pick button {
  width: 40px !important; min-width: 40px; height: 40px !important; margin: 0 !important; padding: 0 !important;
  display: grid; place-items: center; background: var(--panel, var(--surface)); color: var(--text);
  border: 1px solid var(--line, var(--border)); cursor: pointer;
}
.ft-shape-pick button.on { border-color: var(--bronze, var(--brand)); box-shadow: 0 0 0 2px color-mix(in srgb, var(--bronze, var(--brand)) 35%, transparent); }
.ft-shape-pick.sm button { width: 28px !important; min-width: 28px; height: 28px !important; }
.ft-float-fx {
  width: 160px !important; height: 32px !important; margin: 0 !important; padding: 4px 8px !important; font-size: 12px;
  background: var(--input, var(--input-bg)); color: var(--text); border: 1px solid var(--line, var(--border));
}
.ft-fab-card { display: flex; flex-direction: column; gap: 6px; }
.ft-fab-style { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ft-fab-style select {
  width: 168px !important; height: 32px !important; margin: 0 !important; font-size: 12px;
  background: var(--input, var(--input-bg)); color: var(--text); border: 1px solid var(--line, var(--border));
}
.ft-fab-tint { display: inline-flex; align-items: center; gap: 6px; margin: 0; width: auto; font-size: 11px; color: var(--muted, var(--text-muted)); }
.ft-fab-tint input[type=color] { width: 28px !important; min-width: 28px; height: 28px !important; padding: 1px !important; margin: 0 !important; cursor: pointer; }
.ft-float-seg button { width: auto !important; min-width: 72px; height: 32px !important; padding: 0 14px !important; font-size: 12px; }
.ft-fabs { display: flex; flex-direction: column; align-items: stretch; gap: 8px; width: 100%; max-width: 640px; }
.ft-fab-row { display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; width: 100%; }
.ft-fab-row select {
  flex: 0 0 180px; width: 180px; height: 32px; padding: 4px 8px; margin: 0; font-size: 13px;
  background: var(--input, var(--input-bg)); color: var(--text); border: 1px solid var(--line, var(--border));
}
.ft-fab-row input {
  flex: 1 1 auto; min-width: 0; height: 32px; padding: 4px 10px; margin: 0; font-size: 13px;
  background: var(--input, var(--input-bg)); color: var(--text); border: 1px solid var(--line, var(--border));
}
.ft-fab-row .ghost, .ft-fab-add { flex: 0 0 auto; min-width: 64px; height: 32px !important; padding: 0 12px !important; }
.ft-edit textarea { width: 100%; min-height: 64px; padding: 6px; font-size: 12px; background: var(--input, var(--input-bg)); color: var(--text); border: 1px solid var(--line, var(--border)); }
@media (max-width: 1000px) {
  .ft-cols { grid-template-columns: 1fr !important; }
  .cms-footx-in { grid-template-columns: repeat(min(2, var(--foot-cols, 4)), minmax(0, 1fr)); }
}
@media (max-width: 900px) { .hb-row { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .cms-head-wide { display: none !important; }
  .cms-mbar { display: grid; }
  .cms-mbar details[open] .cms-mdrawer { display: flex; }
}
@media (max-width: 720px) {
  .cms-footx.hide-m { display: none; }
  .cms-fab.hide-m { display: none !important; }
}
@media (max-width: 640px) { .cms-footx-in { grid-template-columns: minmax(0, 1fr); } }
@container cms (max-width: 1000px) {
  .cms-footx-in { grid-template-columns: repeat(min(2, var(--foot-cols, 4)), minmax(0, 1fr)); }
}
@container cms (max-width: 720px) {
  .cms-footx.hide-m { display: none; }
  .cms-fab.hide-m { display: none !important; }
}
@container cms (max-width: 640px) { .cms-footx-in { grid-template-columns: minmax(0, 1fr); } }
