/* Estilos comuns aos 6 modelos (modal do produto, orçamento, filtros, marca).
   Cada modelo define as variáveis de cor/fonte/raio no seu próprio <style>. */
:root {
  --bg: #FAF8F4; --surface: #FFFFFF; --surface-2: #F4F1EA; --stage: #FFFFFF;
  --text: #1C1917; --muted: #78716C; --line: #E7E2D9;
  --accent: #96701A; --accent-2: #7A5A12; --on-accent: #FFFFFF; --gold: #C9A13A;
  --radius: 16px; --radius-sm: 10px;
  --font-head: 'Cormorant Garamond', Georgia, serif; --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
  --shadow: 0 20px 50px -20px rgba(28, 25, 23, .25);
  --wa: #128C4A;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
a { color: inherit; }

/* ---------- Marca ---------- */
.brand { display: flex; align-items: center; gap: 14px; min-width: 0; text-decoration: none; }
.brand img { max-width: none; }
.brand-fr { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-emblem { height: var(--brand-h, 52px); width: auto; flex-shrink: 0; }
.brand-words { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; overflow: hidden; }
.brand-words b { font-family: 'Poppins', var(--font-body); font-weight: 500; font-size: var(--brand-fs, 19px); letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-words small { font-family: 'Poppins', var(--font-body); font-size: calc(var(--brand-fs, 19px) * .52); letter-spacing: .26em; text-transform: uppercase; color: var(--muted); margin-top: 4px; white-space: nowrap; }
.brand-lumifa { height: calc(var(--brand-h, 52px) * .9); width: auto; flex-shrink: 0; }
.brand-sep { width: 1px; align-self: stretch; background: currentColor; opacity: .25; margin: 4px 2px; flex-shrink: 0; }
.brand-circle { height: calc(var(--brand-h, 52px) * 1.45); width: auto; margin: -8px 0; }
.brand-mode-duo .brand-words small { display: none; }
.brand-mode-duo .brand-words b { font-size: calc(var(--brand-fs, 19px) * .82); }
@media (max-width: 640px) {
  .brand { gap: 9px; }
  .brand-emblem { height: calc(var(--brand-h, 52px) * .8); }
  .brand-words b { font-size: calc(var(--brand-fs, 19px) * .74); }
  .brand-words small { letter-spacing: .14em; }
  .brand-mode-duo .brand-words { display: none; }
  .brand-mode-duo .brand-lumifa { height: calc(var(--brand-h, 52px) * .72); }
  .brand-circle { height: calc(var(--brand-h, 52px) * 1.2); }
}
@media (max-width: 380px) { .brand-fr .brand-words small { display: none; } }

/* ---------- Botões base ---------- */
.btn-primary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; background: var(--accent); color: var(--on-accent); font-weight: 700; padding: 12px 18px; border-radius: var(--radius-sm); transition: background .2s, transform .1s; }
.btn-primary:hover { background: var(--accent-2); }
.btn-primary:active { transform: scale(.97); }
.btn-wa { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; border: 0; background: var(--wa); color: #fff; font-weight: 700; padding: 14px; border-radius: var(--radius-sm); font-size: 15px; }
.btn-wa i { font-size: 20px; }
.btn-wa:hover { filter: brightness(1.08); }

/* ---------- Amostras de cor ---------- */
.sw { display: inline-block; border-radius: 50%; border: 1px solid rgba(0,0,0,.18); flex-shrink: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.sws { display: inline-flex; align-items: center; gap: 3px; }
.sws em { font-style: normal; font-size: 11px; color: var(--muted); margin-left: 2px; }

/* ---------- Stepper (quantidade) ---------- */
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); overflow: hidden; }
.stepper button { width: 38px; height: 44px; border: 0; background: none; font-size: 18px; color: var(--muted); }
.stepper button:hover { color: var(--text); background: var(--surface-2); }
.stepper input { width: 46px; height: 44px; border: 0; text-align: center; font-weight: 700; background: none; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper.sm button { width: 28px; height: 32px; font-size: 15px; }
.stepper.sm input { width: 34px; height: 32px; font-size: 13px; }

/* ---------- Camadas (modal / gaveta / zoom) ---------- */
.m-layer { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(12, 10, 9, .55); backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity .25s; }
.m-layer.is-open { opacity: 1; pointer-events: auto; }
.m-x { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text); display: flex; align-items: center; justify-content: center; z-index: 3; }
.m-x.static { position: static; }
.m-x:hover { background: var(--surface-2); }
.m-panel { position: relative; width: min(1040px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: var(--surface); color: var(--text); border-radius: var(--radius); box-shadow: var(--shadow); transform: translateY(14px) scale(.985); transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.m-layer.is-open .m-panel { transform: none; }
.m-grid { display: grid; grid-template-columns: 1.05fr 1fr; }
.m-media { position: relative; background: var(--stage); display: flex; align-items: center; justify-content: center; padding: 36px; min-height: 420px; border-right: 1px solid var(--line); }
.m-media img { width: 100%; max-height: 560px; object-fit: contain; cursor: zoom-in; mix-blend-mode: multiply; }
.m-zoom { position: absolute; left: 16px; bottom: 16px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 8px 14px; font-size: 13px; font-weight: 600; display: flex; gap: 7px; align-items: center; color: var(--text); }
/* galeria de fotos do produto (foto + ficha técnica + temperaturas) */
.m-media.has-gal, .m-media { flex-direction: column; align-items: stretch; }
.g-stage { position: relative; width: 100%; flex: 1; display: flex; }
.g-track { display: flex; width: 100%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.g-track::-webkit-scrollbar { display: none; }
.g-slide { flex: 0 0 100%; margin: 0; display: flex; align-items: center; justify-content: center; scroll-snap-align: center; scroll-snap-stop: always; min-height: 360px; max-height: 560px; }
.m-media .g-slide img { width: 100%; height: 100%; max-height: 560px; }
.g-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 92%, transparent); color: var(--text); display: flex; align-items: center; justify-content: center; z-index: 2; box-shadow: 0 4px 14px -6px rgba(0,0,0,.25); transition: opacity .2s; }
.g-prev { left: -18px; } .g-next { right: -18px; }
.g-nav:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.g-nav:disabled { opacity: 0; pointer-events: none; }
.g-count { position: absolute; right: 0; bottom: 16px; font-size: 12px; font-weight: 600; color: #57534E; background: rgba(255,255,255,.9); border: 1px solid #E7E2D9; border-radius: 999px; padding: 5px 11px; pointer-events: none; }
.g-thumbs { display: flex; gap: 8px; margin-top: 16px; overflow-x: auto; scrollbar-width: none; justify-content: center; }
.g-thumbs::-webkit-scrollbar { display: none; }
.g-th { flex: 0 0 auto; width: 64px; height: 64px; padding: 3px; border-radius: 10px; border: 1px solid #E7E2D9; background: #fff; opacity: .7; transition: opacity .2s, border-color .2s, box-shadow .2s; }
.g-th:hover { opacity: 1; }
.g-th.is-on { opacity: 1; border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 30%, transparent); }
.m-media .g-th img { width: 100%; height: 100%; max-height: none; object-fit: contain; cursor: pointer; border-radius: 7px; }
.m-zoom-layer .z-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.12); color: #fff; font-size: 18px; display: none; align-items: center; justify-content: center; cursor: pointer; }
.m-zoom-layer .z-prev { left: 18px; } .m-zoom-layer .z-next { right: 18px; }
.m-zoom-layer .z-nav:hover:not(:disabled) { background: rgba(255,255,255,.24); }
.m-zoom-layer .z-nav:disabled { opacity: .25; cursor: default; }
.m-zoom-layer .z-count { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 13px; font-weight: 600; background: rgba(0,0,0,.45); padding: 6px 14px; border-radius: 999px; display: none; white-space: nowrap; }
.m-zoom-layer.has-gal .z-nav { display: flex; }
.m-zoom-layer.has-gal .z-count { display: block; }
.m-zoom-layer.has-gal img { max-height: 84vh; }
.m-info { padding: 36px 34px 30px; display: flex; flex-direction: column; gap: 4px; }
.m-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; padding-right: 40px; }
.m-code { font-size: 12px; font-weight: 800; letter-spacing: .06em; color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); padding: 4px 9px; border-radius: 6px; }
.m-cat { font-size: 12px; font-weight: 600; color: var(--muted); background: var(--surface-2); padding: 4px 9px; border-radius: 6px; }
.m-title { font-family: var(--font-head); font-size: 30px; line-height: 1.15; font-weight: 600; margin: 4px 0 10px; }
.m-price { display: flex; flex-direction: column; margin: 4px 0 14px; }
.m-price small { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 700; }
.m-price strong { font-size: 30px; font-weight: 800; color: var(--accent); letter-spacing: -.01em; }
.m-price em { font-style: normal; font-size: 13px; color: var(--muted); }
.pick { margin-bottom: 14px; }
.pick-t { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 8px; font-weight: 700; }
.pick-t b { color: var(--text); text-transform: none; letter-spacing: 0; }
.pick-o { display: flex; flex-wrap: wrap; gap: 7px; }
.opt { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); font-size: 13px; font-weight: 600; }
.opt:hover { border-color: var(--accent); }
.opt.is-on { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 30%, transparent); color: var(--accent); }
.m-buy { display: flex; gap: 10px; margin: 6px 0 8px; }
.m-add { flex: 1; font-size: 15px; }
.m-wa { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--wa); text-decoration: none; padding: 6px 0 10px; }
.m-wa i { font-size: 17px; }
.m-h { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 14px 0 8px; }
.m-specs { width: 100%; border-collapse: collapse; font-size: 13px; }
.m-specs th, .m-specs td { text-align: left; padding: 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.m-specs th { color: var(--muted); font-weight: 500; width: 42%; padding-right: 12px; }
.m-specs td { font-weight: 600; }
.m-desc { font-size: 14px; line-height: 1.65; color: var(--muted); margin: 0; }
.m-team { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; font-size: 12px; background: #EEF2FF; color: #312E81; border: 1px solid #C7D2FE; border-radius: var(--radius-sm); padding: 12px; margin: 6px 0; }
.m-team > b:first-child { grid-column: 1 / -1; }
@media (max-width: 760px) {
  .m-layer.m-product-layer { padding: 0; align-items: flex-end; }
  .m-panel { max-height: 94vh; border-radius: 20px 20px 0 0; }
  .m-grid { grid-template-columns: 1fr; }
  .m-media { min-height: 0; aspect-ratio: 1 / .85; padding: 20px; border-right: 0; border-bottom: 1px solid var(--line); }
  .m-media.has-gal { aspect-ratio: auto; padding: 14px 14px 12px; }
  .m-media.has-gal .g-slide { min-height: 0; height: min(78vw, 380px); }
  .m-media.has-gal .g-slide img { max-height: 100%; }
  .g-nav { width: 34px; height: 34px; font-size: 13px; }
  .g-prev { left: 0; } .g-next { right: 0; }
  .g-count { bottom: 8px; }
  .m-media.has-gal .m-zoom { bottom: 8px; left: 0; }
  .g-thumbs { margin-top: 10px; justify-content: flex-start; }
  .g-th { width: 54px; height: 54px; }
  .m-zoom-layer .z-nav { width: 40px; height: 40px; }
  .m-zoom-layer .z-prev { left: 8px; } .m-zoom-layer .z-next { right: 8px; }
  .m-info { padding: 22px 18px 28px; }
  .m-title { font-size: 25px; }
  .m-buy { position: sticky; bottom: 0; background: var(--surface); padding: 10px 0; margin: 0; z-index: 2; }
}
.m-zoom-layer { background: rgba(8, 7, 6, .94); cursor: zoom-out; }
.m-zoom-layer img { max-width: 100%; max-height: 92vh; object-fit: contain; border-radius: 12px; }

/* ---------- Gaveta do orçamento ---------- */
.m-cart-layer { justify-content: flex-end; padding: 0; }
.c-panel { width: min(440px, 100%); height: 100%; background: var(--surface); color: var(--text); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.m-cart-layer.is-open .c-panel { transform: none; }
.c-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.c-head h3 { margin: 0; font-family: var(--font-head); font-size: 24px; font-weight: 600; }
.c-head small { color: var(--muted); font-size: 12px; }
.c-head > div:last-child { display: flex; align-items: center; gap: 12px; }
.c-clear { border: 0; background: none; color: var(--muted); font-size: 13px; font-weight: 600; }
.c-clear:hover { color: #B91C1C; }
.c-list { flex: 1; overflow: auto; padding: 14px 20px; display: flex; flex-direction: column; gap: 10px; }
.c-item { display: grid; grid-template-columns: 58px 1fr auto; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.c-item img { width: 58px; height: 58px; object-fit: contain; background: var(--stage); border-radius: 8px; }
.c-info { min-width: 0; display: flex; flex-direction: column; gap: 1px; font-size: 13px; }
.c-info small { color: var(--accent); font-weight: 800; font-size: 11px; }
.c-info b { font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.3; }
.c-info span { color: var(--muted); font-size: 12px; }
.c-info strong { color: var(--text); }
.c-empty { text-align: center; color: var(--muted); padding: 60px 10px; }
.c-empty i { font-size: 42px; opacity: .4; }
.c-empty p { color: var(--text); font-weight: 600; margin: 14px 0 2px; }
.c-foot { border-top: 1px solid var(--line); padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 9px; background: var(--surface-2); }
.c-sum { display: flex; justify-content: space-between; align-items: baseline; }
.c-sum span { color: var(--muted); font-size: 14px; }
.c-sum strong { font-size: 24px; color: var(--accent); }
.c-note, .c-legal { color: var(--muted); font-size: 11px; }
.c-foot input, .c-foot textarea { width: 100%; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-sm); padding: 11px 12px; font-size: 14px; outline: none; }
.c-foot input:focus, .c-foot textarea:focus { border-color: var(--accent); }

/* ---------- Filtros laterais / aplicados ---------- */
.facet { padding: 16px 0; border-bottom: 1px solid var(--line); }
.facet h4 { margin: 0 0 10px; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.facet-opt { display: flex; align-items: center; gap: 9px; padding: 5px 0; font-size: 14px; cursor: pointer; }
.facet-opt input { position: absolute; opacity: 0; pointer-events: none; }
.facet-box { width: 17px; height: 17px; border: 1.5px solid color-mix(in srgb, var(--muted) 60%, transparent); border-radius: 4px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.facet-box.round { border-radius: 50%; }
.facet-opt input:checked + .facet-box { background: var(--accent); border-color: var(--accent); box-shadow: inset 0 0 0 3px var(--surface); }
.facet-opt input:focus-visible + .facet-box { outline: 2px solid var(--accent); outline-offset: 2px; }
.facet-label { flex: 1; }
.facet-n { color: var(--muted); font-size: 12px; }
.chip-applied, .chip-clear { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; }
.chip-applied i { font-size: 11px; color: var(--muted); }
.chip-applied:hover { border-color: var(--accent); }
.chip-clear { border: 0; background: none; color: var(--accent); text-decoration: underline; }

/* ---------- Avisos / equipe / falha ---------- */
#m-toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px); z-index: 95; background: #1C1917; color: #fff; font-size: 14px; font-weight: 600; padding: 12px 18px; border-radius: 12px; display: flex; gap: 9px; align-items: center; opacity: 0; pointer-events: none; transition: all .3s; box-shadow: 0 12px 30px rgba(0,0,0,.3); }
#m-toast i { color: #D4AF37; }
#m-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 640px) { #m-toast { bottom: auto; top: 14px; transform: translate(-50%, -20px); width: max-content; max-width: calc(100vw - 28px); } }
.team-pill { display: none; position: fixed; left: 14px; bottom: 74px; z-index: 70; background: #1E1B4B; color: #fff; font-size: 12px; font-weight: 600; padding: 7px 8px 7px 12px; border-radius: 10px; gap: 8px; align-items: center; }
.team-pill a, .team-pill button { background: rgba(255,255,255,.14); border: 0; color: #fff; padding: 4px 9px; border-radius: 7px; text-decoration: none; font-size: 12px; }
body.is-team .team-pill { display: flex; }
.team-tag { display: inline-flex; gap: 5px; align-items: center; font-size: 11px; font-weight: 700; color: #3730A3; background: #EEF2FF; border: 1px solid #C7D2FE; padding: 2px 7px; border-radius: 6px; }
.m-fail { grid-column: 1 / -1; text-align: center; padding: 70px 20px; display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--muted); }
.m-fail i { font-size: 34px; color: var(--accent); }
.m-fail b { color: var(--text); font-size: 18px; }
.bump { animation: bump .35s ease; }
@keyframes bump { 50% { transform: scale(1.35); } }
@keyframes shimmer { 0% { background-position: -400px 0; } 100% { background-position: 400px 0; } }
.skel { background: linear-gradient(90deg, var(--surface-2) 0, color-mix(in srgb, var(--surface-2) 40%, var(--surface)) 50%, var(--surface-2) 100%); background-size: 800px 100%; animation: shimmer 1.3s infinite linear; border-radius: var(--radius); }

#m-top { position: fixed; right: 22px; bottom: var(--top-bottom, 88px); z-index: 61; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text); box-shadow: 0 10px 24px -8px rgba(0,0,0,.35); display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transform: translateY(10px); transition: all .25s; }
#m-top.is-on { opacity: 1; pointer-events: auto; transform: none; }
#m-top:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 640px) { #m-top { right: 16px; bottom: var(--top-bottom-m, 136px); width: 42px; height: 42px; } }
.brand-lumifa.solo { height: calc(var(--brand-h, 52px) * 1.05); }

/* ---------- Barra de apresentação (só nas prévias) ---------- */
#demo-bar { position: fixed; left: 50%; transform: translateX(-50%); top: auto; bottom: var(--demo-bottom, 14px); z-index: 75; display: flex; align-items: center; gap: 4px; background: rgba(20, 17, 14, .92); color: #F5F0E8; padding: 6px; border-radius: 999px; font: 600 12px/1 'Plus Jakarta Sans', system-ui, sans-serif; box-shadow: 0 10px 30px rgba(0,0,0,.35); backdrop-filter: blur(8px); white-space: nowrap; max-width: calc(100vw - 20px); overflow-x: auto; scrollbar-width: none; }
#demo-bar a, #demo-bar button { color: inherit; text-decoration: none; border: 0; background: none; padding: 8px 10px; border-radius: 999px; font: inherit; }
#demo-bar a:hover, #demo-bar button:hover { background: rgba(255,255,255,.1); }
#demo-bar .demo-name b { color: #D4AF37; margin-right: 3px; }
#demo-bar .demo-sep { width: 1px; height: 18px; background: rgba(255,255,255,.2); margin: 0 4px; }
#demo-bar .demo-l { opacity: .6; padding: 0 4px; }
#demo-bar [data-logo-opt].is-on { background: #D4AF37; color: #1C1917; }
#demo-bar .demo-hide { opacity: .6; }
@media (max-width: 640px) { #demo-bar { font-size: 11px; padding: 4px; } #demo-bar a, #demo-bar button { padding: 7px 8px; } #demo-bar .demo-l { display: none; } }

/* ===== Editor de anúncios / arquivados (só modo equipe) ===== */
.team-acts { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; align-items: center; }
.ta-btn { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; padding: 5px 9px; border-radius: 7px; border: 1px solid #C7D2FE; background: #EEF2FF; color: #3730A3; cursor: pointer; line-height: 1.1; }
.ta-btn:hover { background: #E0E7FF; }
.ta-btn.ta-on { background: #3730A3; border-color: #3730A3; color: #fff; }
.arch-flag { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; color: #92400E; background: #FEF3C7; border: 1px solid #FCD34D; padding: 2px 7px; border-radius: 6px; }
.m-team-acts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.m-team-acts .ta-btn { font-size: 12.5px; padding: 7px 11px; background: #fff; }
.m-team-acts .ta-btn.ta-on { background: #3730A3; }
.team-pill { flex-wrap: wrap; max-width: calc(100vw - 28px); }
.team-pill .tp-arch b { background: #FCD34D; color: #1E1B4B; border-radius: 999px; padding: 0 6px; font-size: 11px; }
.team-pill .tp-l2 { display: none; }
body.is-arch-view .team-pill .tp-arch { background: #FCD34D; color: #1E1B4B; }
body.is-arch-view .team-pill .tp-l1, body.is-arch-view .team-pill .tp-arch b { display: none; }
body.is-arch-view .team-pill .tp-l2 { display: inline; }
body.is-arch-view [data-grid] .card { opacity: .92; }
body.ed-busy { cursor: progress; }
body.ed-busy .ta-btn, body.ed-busy #e-form button[type=submit] { pointer-events: none; opacity: .55; }
.m-edit-layer { z-index: 90; }
.e-panel { position: relative; width: min(640px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: var(--surface); color: var(--text); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.e-head { display: flex; gap: 12px; align-items: center; padding-right: 44px; margin-bottom: 14px; }
.e-head img { width: 64px; height: 64px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.e-head small { display: block; font-size: 11px; font-weight: 700; color: #4F46E5; text-transform: uppercase; letter-spacing: .04em; }
.e-head b { display: block; font-size: 16px; line-height: 1.25; }
.e-head span { font-size: 12px; color: var(--muted); }
#e-form { display: grid; gap: 12px; }
#e-form label { display: grid; gap: 5px; font-size: 12.5px; font-weight: 700; }
#e-form label small { font-weight: 500; color: var(--muted); }
#e-form input:not([type=checkbox]), #e-form textarea { width: 100%; border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: var(--radius-sm); padding: 10px 12px; font: inherit; font-size: 14px; font-weight: 400; outline: none; }
#e-form input:focus, #e-form textarea:focus { border-color: var(--accent); }
#e-form textarea { resize: vertical; }
.e-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; }
#e-form .e-chk { display: flex; gap: 8px; align-items: flex-start; font-weight: 600; background: var(--surface-2); padding: 10px; border-radius: var(--radius-sm); }
#e-form .e-chk small { display: block; }
.e-note { font-size: 12px; color: var(--muted); margin: 0; }
.e-btns { display: flex; justify-content: flex-end; gap: 8px; }
.btn-ghost { border: 1px solid var(--line); background: var(--surface); color: var(--text); font-weight: 600; padding: 12px 16px; border-radius: var(--radius-sm); }
@media (max-width: 640px) { .e-row { grid-template-columns: 1fr; } .e-panel { padding: 18px 16px; max-height: 94vh; } }
