:root{

  --bg:#f6f2ea;

  --surface:#fffdf9;

  --surface-2:#fdf8ef;

  --text:#151515;

  --muted:#746b5e;

  --line:#eadfce;

  --line-strong:#dccab1;

  --black:#111111;

  --gold:#c58a2b;

  --gold-2:#e0aa47;

  --gold-soft:#fff2d8;

  --danger:#c74235;

  --success:#2b8a57;

  --warning:#b97814;

  --info:#3466a3;

  --shadow:0 18px 50px rgba(21,21,21,.08);

  --shadow-soft:0 12px 30px rgba(21,21,21,.07);

  --radius:22px;

  --radius-sm:14px;

  --max:1180px;

  --side:272px;

  --right:320px;

  --top:78px;

  --bottom:86px;

  font-family:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

}



*{box-sizing:border-box}

html{scroll-behavior:smooth}

body{

  margin:0;

  background:

    radial-gradient(circle at top left, rgba(197,138,43,.18), transparent 32rem),

    linear-gradient(180deg, #fffaf2 0%, var(--bg) 54%, #f7f2ea 100%);

  color:var(--text);

  font-size:16px;

  line-height:1.45;

}

a{color:inherit;text-decoration:none}

button,input,select,textarea{font:inherit}

img{max-width:100%;display:block}

svg{width:20px;height:20px;stroke-width:2}



.app-shell{

  min-height:100vh;

  display:grid;

  grid-template-columns: var(--side) minmax(0,1fr);

}



.page-public{

  min-height:100vh;

}



.site-topbar,

.app-topbar{

  position:sticky;

  top:0;

  z-index:50;

  height:var(--top);

  display:flex;

  align-items:center;

  border-bottom:1px solid rgba(234,223,206,.72);

  background:rgba(255,253,249,.86);

  backdrop-filter: blur(14px);

}

.site-topbar-inner,

.app-topbar-inner{

  width:100%;

  max-width:var(--max);

  margin:0 auto;

  padding:0 24px;

  display:flex;

  align-items:center;

  justify-content:space-between;

  gap:16px;

}

.app-topbar-inner{max-width:none}



.brand{

  display:flex;

  align-items:center;

  gap:12px;

  min-width:0;

}

.brand-mark{

  width:44px;

  height:44px;

  border-radius:14px;

  background:var(--black);

  display:grid;

  place-items:center;

  color:var(--gold);

  box-shadow:0 14px 24px rgba(17,17,17,.14);

  flex:0 0 auto;

}

.brand-text{

  display:flex;

  flex-direction:column;

  min-width:0;

}

.brand-name{

  font-weight:850;

  letter-spacing:-.04em;

  font-size:1.12rem;

  white-space:nowrap;

}

.brand-name span{color:var(--gold)}

.brand-subtitle{

  color:var(--muted);

  font-size:.78rem;

  line-height:1.1;

  white-space:nowrap;

  overflow:hidden;

  text-overflow:ellipsis;

}



.site-nav{

  display:flex;

  gap:6px;

  align-items:center;

}

.site-nav a{

  color:#3d372f;

  padding:10px 13px;

  border-radius:999px;

  font-weight:700;

  font-size:.92rem;

}

.site-nav a:hover,

.site-nav a.active{

  background:var(--gold-soft);

  color:#6b4510;

}



.top-actions{

  display:flex;

  align-items:center;

  gap:10px;

}

.icon-btn{

  width:44px;

  height:44px;

  border-radius:15px;

  border:1px solid var(--line);

  background:rgba(255,255,255,.78);

  display:grid;

  place-items:center;

  color:#342d24;

  cursor:pointer;

}

.icon-btn:hover{border-color:var(--line-strong); background:#fff}

.primary-btn,

.secondary-btn,

.ghost-btn{

  display:inline-flex;

  align-items:center;

  justify-content:center;

  gap:9px;

  min-height:44px;

  border-radius:999px;

  padding:0 18px;

  border:1px solid transparent;

  font-weight:800;

  cursor:pointer;

  white-space:nowrap;

}

.primary-btn{

  color:#111;

  background:linear-gradient(135deg,var(--gold-2),var(--gold));

  box-shadow:0 14px 26px rgba(197,138,43,.24);

}

.secondary-btn{

  color:#18140f;

  background:#fff;

  border-color:var(--line);

}

.ghost-btn{

  color:#4b4236;

  background:transparent;

  border-color:transparent;

}

.primary-btn:hover,.secondary-btn:hover,.ghost-btn:hover{transform:translateY(-1px)}



.public-main{

  max-width:var(--max);

  margin:0 auto;

  padding:38px 24px 90px;

}

.hero{

  display:grid;

  grid-template-columns:minmax(0,1.15fr) minmax(320px,.85fr);

  gap:28px;

  align-items:stretch;

  margin:26px 0 30px;

}

.hero-card{

  background:linear-gradient(145deg,#fffdf9 0%,#fff7e8 100%);

  border:1px solid var(--line);

  box-shadow:var(--shadow);

  border-radius:34px;

  padding:34px;

  position:relative;

  overflow:hidden;

}

.hero-card:after{

  content:"";

  position:absolute;

  width:280px;

  height:280px;

  border-radius:50%;

  background:rgba(197,138,43,.12);

  right:-100px;

  top:-110px;

}

.kicker{

  display:inline-flex;

  align-items:center;

  gap:8px;

  padding:7px 12px;

  border:1px solid rgba(197,138,43,.28);

  background:var(--gold-soft);

  border-radius:999px;

  color:#7b4b0d;

  font-weight:850;

  font-size:.78rem;

  text-transform:uppercase;

  letter-spacing:.04em;

}

h1,h2,h3,p{margin-top:0}

h1{

  position:relative;

  z-index:1;

  font-size:clamp(2.2rem,6vw,5.2rem);

  line-height:.94;

  letter-spacing:-.075em;

  margin:18px 0 18px;

}

.lead{

  color:var(--muted);

  font-size:1.08rem;

  max-width:670px;

  margin-bottom:24px;

}

.hero-actions{

  display:flex;

  gap:12px;

  flex-wrap:wrap;

}

.hero-panel{

  display:grid;

  gap:14px;

}

.metric-stack{

  background:#171411;

  color:#fff;

  border-radius:32px;

  padding:26px;

  box-shadow:var(--shadow);

  min-height:190px;

  position:relative;

  overflow:hidden;

}

.metric-stack:after{

  content:"";

  position:absolute;

  width:220px;

  height:220px;

  border-radius:50%;

  background:rgba(197,138,43,.25);

  right:-90px;

  bottom:-100px;

}

.metric-stack h2{

  letter-spacing:-.04em;

  font-size:2.1rem;

  margin:0 0 8px;

}

.metric-stack p{color:#d7cbb9; margin-bottom:20px}

.metric-row{

  display:grid;

  grid-template-columns:repeat(3,1fr);

  gap:8px;

}

.metric-mini{

  background:rgba(255,255,255,.08);

  border:1px solid rgba(255,255,255,.09);

  border-radius:18px;

  padding:12px;

}

.metric-mini strong{display:block;font-size:1.2rem;color:#fff}

.metric-mini span{font-size:.75rem;color:#d7cbb9}

.public-grid,

.cards-grid{

  display:grid;

  grid-template-columns:repeat(3,minmax(0,1fr));

  gap:16px;

}

.content-card,

.resource-card,

.panel-card,

.os-card,

.client-card,

.item-card{

  background:rgba(255,253,249,.88);

  border:1px solid var(--line);

  border-radius:var(--radius);

  box-shadow:var(--shadow-soft);

  overflow:hidden;

}

.content-card{

  min-height:260px;

  display:flex;

  flex-direction:column;

}

.content-thumb{

  height:122px;

  background:

    linear-gradient(135deg,rgba(17,17,17,.82),rgba(17,17,17,.55)),

    radial-gradient(circle at 78% 20%,rgba(224,170,71,.7),transparent 9rem);

  display:flex;

  align-items:flex-end;

  padding:18px;

  color:#fff;

}

.content-body{padding:18px;display:flex;flex-direction:column;gap:10px;flex:1}

.content-body h3{margin:0;font-size:1.12rem;letter-spacing:-.035em}

.content-body p{color:var(--muted);margin:0;font-size:.94rem}

.card-link{margin-top:auto;color:#7b4b0d;font-weight:850}



.section-head{

  display:flex;

  justify-content:space-between;

  align-items:flex-end;

  gap:16px;

  margin:28px 0 14px;

}

.section-head h2{

  margin:0;

  font-size:1.65rem;

  letter-spacing:-.05em;

}

.section-head p{margin:4px 0 0;color:var(--muted)}



.side-left{

  position:sticky;

  top:0;

  height:100vh;

  background:#111;

  color:#fff;

  padding:20px 16px;

  display:flex;

  flex-direction:column;

  gap:18px;

  z-index:60;

}

.side-left .brand-subtitle{color:#b7aa98}

.side-left .brand-name{color:#fff}

.side-left .brand-mark{

  background:#fff;

  color:var(--gold);

  box-shadow:none;

}

.side-section-label{

  color:#7d766d;

  font-size:.72rem;

  text-transform:uppercase;

  letter-spacing:.1em;

  font-weight:900;

  padding:0 10px;

  margin-top:4px;

}

.side-nav{

  display:flex;

  flex-direction:column;

  gap:4px;

  min-height:0;

  overflow:auto;

  padding-right:2px;

}

.side-nav a{

  display:flex;

  align-items:center;

  gap:11px;

  min-height:44px;

  padding:0 12px;

  border-radius:15px;

  color:#d8d0c4;

  font-weight:750;

}

.side-nav a svg{color:#9f9588}

.side-nav a:hover{

  background:rgba(255,255,255,.06);

  color:#fff;

}

.side-nav a.active{

  background:linear-gradient(135deg,var(--gold-2),var(--gold));

  color:#111;

}

.side-nav a.active svg{color:#111}

.side-footer{

  margin-top:auto;

  color:#8d8377;

  font-size:.78rem;

  border-top:1px solid rgba(255,255,255,.08);

  padding:14px 10px 0;

}



.app-main{

  min-width:0;

  padding-bottom:40px;

}

.app-topbar{

  background:rgba(255,250,242,.82);

}

.app-topbar-inner{

  padding:0 22px;

}

.app-content{

  padding:28px 24px 70px;

  max-width:1240px;

  margin:0 auto;

}

.page-title-row{

  display:flex;

  justify-content:space-between;

  align-items:flex-start;

  gap:18px;

  margin-bottom:18px;

}

.page-title-row h1{

  font-size:clamp(2rem,4vw,3.8rem);

  line-height:.98;

  margin:10px 0 8px;

}

.page-title-row p{

  color:var(--muted);

  max-width:620px;

  margin:0;

}

.quick-stats{

  display:grid;

  grid-template-columns:repeat(4,minmax(0,1fr));

  gap:14px;

  margin:18px 0 18px;

}

.stat-card{

  background:rgba(255,253,249,.9);

  border:1px solid var(--line);

  border-radius:22px;

  padding:18px;

  box-shadow:var(--shadow-soft);

}

.stat-card span{

  color:var(--muted);

  font-weight:800;

  font-size:.78rem;

  text-transform:uppercase;

}

.stat-card strong{

  display:block;

  font-size:1.75rem;

  letter-spacing:-.04em;

  margin:4px 0 0;

}

.stat-card small{color:var(--muted)}



.toolbar{

  display:grid;

  grid-template-columns:minmax(0,1fr) 190px 190px auto;

  gap:12px;

  margin:18px 0;

}

.form-control,

select,

textarea{

  width:100%;

  min-height:46px;

  border:1px solid var(--line-strong);

  background:#fff;

  color:#29231d;

  border-radius:16px;

  padding:0 14px;

  outline:none;

}

textarea{padding:13px 14px;min-height:120px;resize:vertical}

.form-control:focus, select:focus, textarea:focus{

  border-color:rgba(197,138,43,.75);

  box-shadow:0 0 0 4px rgba(197,138,43,.12);

}

.form-grid{

  display:grid;

  grid-template-columns:repeat(2,minmax(0,1fr));

  gap:14px;

}

.form-grid-3{

  display:grid;

  grid-template-columns:repeat(3,minmax(0,1fr));

  gap:14px;

}

.form-field label{

  display:block;

  color:#7b7166;

  font-size:.78rem;

  font-weight:900;

  text-transform:uppercase;

  margin:0 0 7px;

}

.form-panel{

  background:rgba(255,253,249,.92);

  border:1px solid var(--line);

  border-radius:26px;

  padding:20px;

  box-shadow:var(--shadow-soft);

  margin-bottom:16px;

}

.form-panel h2{

  margin:0 0 14px;

  letter-spacing:-.04em;

}



.os-list,

.client-list,

.item-list{

  display:grid;

  grid-template-columns:repeat(2,minmax(0,1fr));

  gap:14px;

}

.os-card,

.client-card,

.item-card{

  padding:18px;

  position:relative;

}

.os-top,

.card-top{

  display:flex;

  justify-content:space-between;

  align-items:flex-start;

  gap:12px;

  margin-bottom:10px;

}

.os-code{

  color:#817568;

  font-size:.78rem;

  font-weight:900;

}

.os-card h3,

.client-card h3,

.item-card h3{

  margin:2px 0 4px;

  letter-spacing:-.035em;

  font-size:1.08rem;

}

.meta-line{

  color:var(--muted);

  font-size:.9rem;

  display:flex;

  gap:8px;

  flex-wrap:wrap;

}

.badge{

  display:inline-flex;

  align-items:center;

  gap:6px;

  min-height:28px;

  border-radius:999px;

  padding:0 10px;

  font-size:.76rem;

  font-weight:900;

  border:1px solid transparent;

  white-space:nowrap;

}

.badge.success{background:#e5f6ed;color:#1d7547;border-color:#bbe5cf}

.badge.warning{background:#fff0d6;color:#8a5311;border-color:#f4d49a}

.badge.info{background:#eaf2ff;color:#28538c;border-color:#c9dcf7}

.badge.danger{background:#ffe8e4;color:#9f3128;border-color:#f3c4bd}

.badge.dark{background:#171411;color:#fff}

.badge.soft{background:var(--gold-soft);color:#7b4b0d;border-color:#eed3a4}

.os-details{

  display:grid;

  grid-template-columns:repeat(2,minmax(0,1fr));

  gap:9px;

  margin:14px 0;

}

.detail-pill{

  background:var(--surface-2);

  border:1px solid var(--line);

  border-radius:15px;

  padding:10px;

}

.detail-pill span{

  display:block;

  color:var(--muted);

  font-size:.74rem;

  font-weight:850;

  text-transform:uppercase;

}

.detail-pill strong{

  display:block;

  margin-top:2px;

}

.card-actions{

  display:flex;

  gap:8px;

  align-items:center;

  flex-wrap:wrap;

  margin-top:12px;

}

.small-btn{

  min-height:36px;

  cursor:pointer;

  text-decoration:none;

  font-family:inherit;

  display:inline-flex;

  align-items:center;

  justify-content:center;

  gap:7px;

  border-radius:999px;

  padding:0 12px;

  border:1px solid var(--line);

  background:#fff;

  font-size:.86rem;

  font-weight:850;

  color:#342d24;

}

.small-btn.primary{

  background:#171411;

  color:#fff;

  border-color:#171411;

}

.small-btn.gold{

  background:var(--gold);

  color:#111;

  border-color:var(--gold);

}



.detail-layout{

  display:grid;

  grid-template-columns:minmax(0,1fr) 330px;

  gap:16px;

}

.timeline{

  display:grid;

  gap:10px;

}

.timeline-item{

  display:flex;

  gap:12px;

  padding:14px;

  background:#fff;

  border:1px solid var(--line);

  border-radius:18px;

}

.timeline-dot{

  width:11px;

  height:11px;

  border-radius:50%;

  background:var(--gold);

  margin-top:6px;

  flex:0 0 auto;

}

.timeline-item strong{display:block}

.timeline-item span{color:var(--muted);font-size:.88rem}



.empty-state{

  padding:26px;

  background:rgba(255,253,249,.9);

  border:1px dashed var(--line-strong);

  border-radius:24px;

  text-align:center;

  color:var(--muted);

}

.empty-state svg{

  width:34px;

  height:34px;

  color:var(--gold);

  margin:0 auto 8px;

}



.mobile-bottom-nav{

  display:none;

}

.mobile-drawer-backdrop{

  display:none;

  position:fixed;

  inset:0;

  background:rgba(0,0,0,.42);

  z-index:80;

}

.mobile-drawer{

  position:fixed;

  inset:0 auto 0 0;

  width:min(86vw,340px);

  background:#111;

  color:#fff;

  z-index:90;

  transform:translateX(-103%);

  transition:.22s ease;

  padding:18px 16px;

  display:flex;

  flex-direction:column;

  gap:16px;

}

body.drawer-open .mobile-drawer{transform:translateX(0)}

body.drawer-open .mobile-drawer-backdrop{display:block}



.login-wrap{

  min-height:calc(100vh - var(--top));

  display:grid;

  place-items:center;

  padding:40px 24px;

}

.login-card{

  width:min(100%,440px);

  background:rgba(255,253,249,.94);

  border:1px solid var(--line);

  border-radius:32px;

  padding:28px;

  box-shadow:var(--shadow);

}



.table-like{

  display:grid;

  gap:10px;

}

.table-row{

  display:grid;

  grid-template-columns:1fr 130px 130px 120px;

  gap:12px;

  align-items:center;

  background:#fff;

  border:1px solid var(--line);

  border-radius:18px;

  padding:12px 14px;

}

.table-row.header{

  background:transparent;

  box-shadow:none;

  border:none;

  color:var(--muted);

  font-size:.78rem;

  font-weight:900;

  text-transform:uppercase;

}



@media (max-width:1100px){

  .quick-stats{grid-template-columns:repeat(2,minmax(0,1fr))}

  .public-grid,.cards-grid{grid-template-columns:repeat(2,minmax(0,1fr))}

  .hero{grid-template-columns:1fr}

  .detail-layout{grid-template-columns:1fr}

}



@media (max-width:860px){

  :root{--top:72px}

  body{background:linear-gradient(180deg,#fffaf2 0%,#f6f2ea 100%)}

  .site-nav{display:none}

  .site-topbar-inner,.app-topbar-inner{padding:0 14px}

  .app-shell{display:block}

  .side-left{display:none}

  .app-content{

    padding:24px 14px calc(var(--bottom) + 24px);

  }

  .public-main{padding:20px 14px calc(var(--bottom) + 24px)}

  .hero{margin-top:10px}

  .hero-card{padding:25px 18px;border-radius:28px}

  h1{font-size:clamp(2.35rem,13vw,4rem)}

  .lead{font-size:1rem}

  .quick-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}

  .stat-card{padding:14px;border-radius:19px}

  .stat-card strong{font-size:1.45rem}

  .public-grid,.cards-grid,.os-list,.client-list,.item-list{

    grid-template-columns:1fr;

  }

  .toolbar{

    grid-template-columns:1fr;

  }

  .page-title-row{

    flex-direction:column;

    align-items:stretch;

    margin-bottom:14px;

  }

  .page-title-row h1{

    font-size:2.05rem;

  }

  .form-grid,.form-grid-3{

    grid-template-columns:1fr;

  }

  .os-details{grid-template-columns:1fr}

  .top-actions .secondary-btn,

  .top-actions .primary-btn{

    display:none;

  }

  .mobile-bottom-nav{

    display:flex;

    position:fixed;

    left:14px;

    right:14px;

    bottom:calc(10px + env(safe-area-inset-bottom));

    height:68px;

    background:rgba(255,253,249,.94);

    border:1px solid var(--line);

    box-shadow:0 16px 45px rgba(17,17,17,.18);

    border-radius:24px;

    z-index:70;

    align-items:center;

    justify-content:space-around;

    padding:8px 7px;

    backdrop-filter:blur(14px);

  }

  .mobile-bottom-nav a{

    min-width:52px;

    height:52px;

    display:flex;

    flex-direction:column;

    align-items:center;

    justify-content:center;

    gap:3px;

    color:#6e655a;

    border-radius:18px;

    font-size:.67rem;

    font-weight:900;

  }

  .mobile-bottom-nav a svg{

    width:21px;

    height:21px;

  }

  .mobile-bottom-nav a.active{

    color:#111;

    background:#f2eadf;

  }

  .mobile-bottom-nav a.nav-fab{

    width:58px;

    height:58px;

    margin-top:-22px;

    border-radius:21px;

    background:linear-gradient(135deg,var(--gold-2),var(--gold));

    color:#111;

    box-shadow:0 14px 24px rgba(197,138,43,.34);

  }

  .mobile-bottom-nav a.nav-fab.active{

    background:linear-gradient(135deg,var(--gold-2),var(--gold));

  }

  .mobile-bottom-nav a.nav-fab span{

    font-size:.64rem;

  }

  .table-row,

  .table-row.header{

    grid-template-columns:1fr;

  }

  .table-row.header{display:none}

}



@media (max-width:430px){

  .brand-mark{width:40px;height:40px;border-radius:13px}

  .brand-name{font-size:1rem}

  .brand-subtitle{font-size:.7rem;max-width:190px}

  .icon-btn{width:40px;height:40px;border-radius:14px}

  .hero-actions{display:grid;grid-template-columns:1fr}

  .primary-btn,.secondary-btn,.ghost-btn{width:100%}

  .metric-row{grid-template-columns:1fr}

}



/* Bloco user dinâmico */

.toast-stack{position:fixed;right:18px;top:18px;z-index:9999;display:grid;gap:10px;width:min(92vw,420px)}

.toast-item{background:#fff;border:1px solid var(--line);border-left:5px solid var(--gold);box-shadow:var(--shadow-soft);border-radius:18px;padding:14px 16px;display:flex;gap:10px;align-items:flex-start;line-height:1.35;transition:.22s ease}

.toast-item strong{display:block;margin-bottom:2px;color:var(--text)}

.toast-item p{margin:0;color:var(--muted);font-size:.92rem}.toast-item.is-hidden{opacity:0;transform:translateY(-8px)}

.toast-item.success{border-left-color:#29a35a}.toast-item.danger{border-left-color:#d84d3f}.toast-item.warning{border-left-color:#e0aa47}.toast-item.info{border-left-color:#4c8bd8}

.toast-close{margin-left:auto;border:0;background:transparent;font-size:18px;cursor:pointer;color:#83786b}.field-help{color:var(--muted);font-size:.82rem;margin-top:6px}.form-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}.muted{color:var(--muted)}.mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace}.table-like{display:grid;gap:8px}.table-row{display:grid;grid-template-columns:1.2fr 1fr 1fr auto;gap:10px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:18px;padding:12px}.danger-zone{border-color:#f0c9c5;background:#fff8f7}.nowrap{white-space:nowrap}.empty-actions{margin-top:14px;display:flex;justify-content:center;gap:10px;flex-wrap:wrap}.filter-form{display:contents}.link-muted{color:var(--muted);font-weight:800}.full-row{grid-column:1/-1}.money{font-weight:900;color:#171411}.mini-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.kbd{font-size:.75rem;border:1px solid var(--line);background:var(--surface-2);border-radius:8px;padding:2px 6px;color:var(--muted);font-weight:800}

@media (max-width:860px){.toast-stack{right:10px;left:10px;width:auto}.table-row{grid-template-columns:1fr}.mini-grid{grid-template-columns:1fr}.form-actions .primary-btn,.form-actions .secondary-btn{width:100%}}





/* Ajustes pontuais - menu e formulário de cliente */

@media (min-width:861px){

  .app-shell{transition:grid-template-columns .22s ease}

  .side-left{transition:opacity .18s ease, padding .22s ease; overflow:hidden}

  body.sidebar-collapsed .app-shell{grid-template-columns:0 minmax(0,1fr)}

  body.sidebar-collapsed .side-left{opacity:0;padding-left:0;padding-right:0;pointer-events:none}

}

.form-actions.form-actions-between{

  justify-content:space-between;

  align-items:center;

}

.form-actions-left,

.form-actions-right{

  display:flex;

  gap:10px;

  align-items:center;

  flex-wrap:wrap;

}

.form-control[aria-busy="true"],

select[aria-busy="true"],

textarea[aria-busy="true"]{

  background-image:linear-gradient(90deg, transparent, rgba(224,170,71,.16), transparent);

  background-size:220% 100%;

  animation:armeiros-loading-field 1.05s linear infinite;

}

@keyframes armeiros-loading-field{to{background-position:-220% 0}}

@media (max-width:860px){

  .form-actions.form-actions-between{display:grid;grid-template-columns:1fr;gap:10px}

  .form-actions-left,.form-actions-right{display:grid;grid-template-columns:1fr;width:100%}

}



/* Ajustes pontuais - busca de proprietário na arma */

.lookup-line{

  display:grid;

  grid-template-columns:minmax(0,1fr) auto;

  gap:10px;

  align-items:center;

}

.lookup-btn{

  white-space:nowrap;

  height:48px;

}

.cliente-lookup-result{

  margin-top:10px;

  border:1px solid var(--line);

  border-radius:16px;

  padding:10px 12px;

  display:flex;

  align-items:center;

  gap:8px;

  flex-wrap:wrap;

  background:rgba(255,255,255,.72);

  color:var(--muted);

}

.cliente-lookup-result strong{

  color:var(--text);

}

.cliente-lookup-result.success{border-color:rgba(41,163,90,.28);background:rgba(41,163,90,.06)}

.cliente-lookup-result.warning{border-color:rgba(224,170,71,.35);background:rgba(224,170,71,.08)}

.cliente-lookup-result.danger{border-color:rgba(216,77,63,.30);background:rgba(216,77,63,.06)}

.cliente-lookup-result.info{border-color:rgba(76,139,216,.25);background:rgba(76,139,216,.06)}

.lookup-link,

.lookup-clear{

  border:0;

  background:transparent;

  color:var(--gold-dark);

  font-weight:900;

  text-decoration:none;

  cursor:pointer;

  padding:0;

}

.lookup-clear:hover,

.lookup-link:hover{text-decoration:underline}

@media (max-width:700px){

  .lookup-line{grid-template-columns:1fr}

  .lookup-btn{width:100%}

}



/* Ajustes pontuais - edição/detalhe da O.S. */

.section-head-row{

  display:flex;

  justify-content:space-between;

  align-items:flex-start;

  gap:18px;

  margin-bottom:14px;

}

.section-head-row h2{margin-bottom:4px}

.os-item-add-grid{

  display:grid;

  grid-template-columns:minmax(260px,1fr) 160px 130px auto;

  gap:12px;

  align-items:end;

  margin-bottom:18px;

}

.form-field-button{display:flex;align-items:end}.form-field-button .primary-btn{height:48px;white-space:nowrap}

.os-autocomplete-wrap{position:relative}.os-suggestions{display:none;position:absolute;z-index:80;left:0;right:0;top:calc(100% + 6px);background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow-soft);overflow:hidden;max-height:280px;overflow-y:auto}.os-suggestions.is-open{display:block}.os-suggestion-item{width:100%;border:0;background:#fff;padding:12px 14px;text-align:left;cursor:pointer;display:grid;gap:3px;border-bottom:1px solid rgba(219,203,181,.55)}.os-suggestion-item:last-child{border-bottom:0}.os-suggestion-item:hover{background:rgba(224,170,71,.10)}.os-suggestion-item strong{font-weight:900;color:var(--text)}.os-suggestion-item span,.os-suggestion-empty{font-size:.86rem;color:var(--muted)}.os-suggestion-empty{padding:12px 14px}.os-items-list{display:grid;gap:8px}.os-item-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:12px;align-items:center;border:1px solid var(--line);background:rgba(255,255,255,.70);border-radius:18px;padding:12px}.os-item-row strong{font-weight:900}.os-item-row span{display:block;color:var(--muted);font-size:.88rem;margin-top:2px}.icon-mini{width:34px;height:34px;border-radius:12px;border:1px solid var(--line);background:#fff;font-size:20px;font-weight:900;cursor:pointer;line-height:1}.icon-mini.danger{color:#b93127;border-color:rgba(216,77,63,.28);background:rgba(216,77,63,.06)}.icon-mini:hover{transform:translateY(-1px)}.total-lines{display:grid;gap:10px}.total-lines>div{display:flex;justify-content:space-between;gap:14px;border-bottom:1px solid rgba(219,203,181,.55);padding-bottom:8px}.total-lines>div:last-child{border-bottom:0}.total-lines span{color:var(--muted)}.total-lines strong{font-weight:900}.total-lines .grand{font-size:1.12rem;color:var(--text);border-top:1px solid var(--line);padding-top:10px}.soft-separator{border:0;border-top:1px solid var(--line);margin:16px 0}.mini-title{font-size:.95rem;margin-bottom:10px;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}

@media (max-width:1100px){.os-item-add-grid{grid-template-columns:1fr 1fr}.form-field-button .primary-btn{width:100%}}

@media (max-width:650px){.section-head-row{display:grid}.os-item-add-grid{grid-template-columns:1fr}.os-item-row{grid-template-columns:1fr}.icon-mini{width:100%}.form-field-button .primary-btn{width:100%}}



/* O.S. actions, protected files and signature */

.os-card-actions{gap:7px}.os-card-actions .small-btn{font-size:.82rem;min-height:34px;padding:0 10px}.page-actions-inline{margin-top:14px}.file-list{display:grid;gap:10px}.file-row{display:flex;justify-content:space-between;align-items:center;gap:14px;border:1px solid var(--line);background:rgba(255,255,255,.75);border-radius:18px;padding:13px}.file-row strong{display:block;font-weight:900}.file-row span{display:block;color:var(--muted);font-size:.86rem;margin-top:2px}.signature-box{margin-top:16px}.signature-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}.signature-box canvas{width:100%;height:220px;border:1px dashed var(--line-strong);background:#fff;border-radius:18px;touch-action:none}.inline-alert{border:1px solid var(--line);border-radius:18px;padding:13px 14px;margin-bottom:14px;background:#fff;display:grid;gap:3px}.inline-alert.warning{border-color:rgba(224,170,71,.45);background:rgba(224,170,71,.12)}.inline-alert strong{font-weight:900}.inline-alert span{color:var(--muted)}

@media (max-width:650px){.file-row{display:grid}.file-row .card-actions{width:100%}.file-row .small-btn{flex:1}.signature-box canvas{height:190px}.os-card-actions .small-btn{flex:1}}



/* Patch: contrato antes da assinatura e exclusão de arquivos protegidos */

.small-btn.danger{

  color:#9f3128;

  border-color:rgba(216,77,63,.30);

  background:rgba(216,77,63,.07);

}

.compact-actions{

  margin-top:0;

}

.compact-actions form{

  margin:0;

  display:inline-flex;

}

.contract-preview{

  margin-top:18px;

  border:1px solid var(--line);

  background:rgba(255,255,255,.78);

  border-radius:22px;

  overflow:hidden;

}

.contract-preview[hidden]{

  display:none !important;

}

.contract-preview-head{

  display:flex;

  align-items:flex-start;

  justify-content:space-between;

  gap:14px;

  padding:14px 16px;

  border-bottom:1px solid rgba(219,203,181,.65);

  background:rgba(224,170,71,.08);

}

.contract-preview-head strong{

  font-weight:900;

}

.contract-preview-head span{

  color:var(--muted);

  font-size:.84rem;

  text-align:right;

}

.contract-preview-body{

  max-height:280px;

  overflow:auto;

  padding:16px;

  color:#2c251d;

  line-height:1.55;

  font-size:.95rem;

}

.contract-preview-body p{

  margin:0 0 10px;

}

.contract-preview-body p:last-child{

  margin-bottom:0;

}

@media (max-width:650px){

  .compact-actions{width:100%;}

  .compact-actions .small-btn,.compact-actions form{flex:1;}

  .compact-actions form .small-btn{width:100%;}

  .contract-preview-head{display:grid;}

  .contract-preview-head span{text-align:left;}

}



/* Patch: ações clicáveis e espaçamento dos contratos gerados */

button.small-btn,

input.small-btn,

.compact-actions button,

.compact-actions a{

  cursor:pointer;

}

.generated-contract-list{

  display:grid;

  gap:10px;

}

.generated-contract-list .timeline-item{

  margin:0;

}

.form-panel .timeline-item + .timeline-item{

  margin-top:10px;

}



/* Patch: links externos de assinatura */

.external-link-list{display:grid;gap:12px}.external-link-card{border:1px solid var(--line);background:rgba(255,255,255,.76);border-radius:20px;padding:14px;display:grid;gap:12px}.external-link-card.highlight{border-color:rgba(224,170,71,.75);box-shadow:0 0 0 4px rgba(224,170,71,.12)}.external-link-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.external-link-head strong{display:block;font-weight:900}.external-link-head span{display:block;color:var(--muted);font-size:.86rem;margin-top:3px}.copy-line{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px}.public-sign-page{background:var(--bg);min-height:100vh}.public-sign-wrap{width:min(980px,calc(100% - 28px));margin:0 auto;padding:32px 0 56px;display:grid;gap:18px}.public-sign-card{border:1px solid var(--line);background:rgba(255,255,255,.78);border-radius:26px;padding:22px;box-shadow:var(--shadow-soft)}.public-sign-head-card{display:flex;justify-content:space-between;gap:18px;align-items:center}.public-sign-head-card h1{font-size:clamp(2rem,5vw,4rem);line-height:.94;margin:6px 0 8px}.public-sign-brand{font-weight:1000;font-size:1.2rem}.public-sign-brand span{color:var(--gold-dark)}.public-os-details{margin-top:14px}.public-item-line{display:flex;justify-content:space-between;gap:14px;border-bottom:1px solid rgba(219,203,181,.55);padding:10px 0}.public-item-line:last-child{border-bottom:0}.public-contract-preview{margin-top:8px}.public-sign-card .signature-box canvas{height:260px}@media (max-width:700px){.external-link-head,.public-sign-head-card{display:grid}.copy-line{grid-template-columns:1fr}.copy-line .secondary-btn{width:100%}.public-sign-card{padding:16px}.public-item-line{display:grid}.public-sign-card .signature-box canvas{height:210px}}



/* Patch: link externo e formulário de produto */

.readonly-field{

  background:rgba(245,238,228,.65);

  color:var(--muted);

  cursor:not-allowed;

}

.help-tip{

  display:inline-flex;

  align-items:center;

  justify-content:center;

  width:18px;

  height:18px;

  margin-left:6px;

  border-radius:999px;

  border:1px solid rgba(199,146,48,.45);

  background:rgba(224,170,71,.12);

  color:#9b6d16;

  font-size:.72rem;

  font-weight:900;

  line-height:1;

  cursor:help;

  position:relative;

  vertical-align:middle;

}

.help-tip::after{

  content:attr(data-tooltip);

  position:absolute;

  left:50%;

  bottom:calc(100% + 10px);

  transform:translateX(-50%);

  width:min(320px, 78vw);

  padding:10px 12px;

  border-radius:14px;

  background:#171411;

  color:#fff;

  font-size:.78rem;

  font-weight:700;

  line-height:1.35;

  text-transform:none;

  letter-spacing:0;

  box-shadow:0 18px 45px rgba(0,0,0,.20);

  opacity:0;

  visibility:hidden;

  pointer-events:none;

  z-index:300;

}

.help-tip:hover::after,

.help-tip:focus::after{

  opacity:1;

  visibility:visible;

}





/* Patch: listas com limite de resultado e resumo */

.toolbar.toolbar-with-limit{

  grid-template-columns:minmax(0,1fr) 180px 180px 160px auto;

}

.list-meta{

  margin-top:10px!important;

  color:var(--muted);

  font-weight:700;

  font-size:.95rem;

}

.status-stats .stat-card strong{

  font-size:1.45rem;

}

@media (max-width:980px){

  .toolbar.toolbar-with-limit{grid-template-columns:1fr 1fr;}

  .toolbar.toolbar-with-limit .form-control{grid-column:1/-1;}

}

@media (max-width:650px){

  .toolbar.toolbar-with-limit{grid-template-columns:1fr;}

  .toolbar.toolbar-with-limit .secondary-btn{width:100%;}

}



/* Patch: financeiro por período e entradas/saídas */

.toolbar.toolbar-financeiro{

  grid-template-columns:minmax(0,1.3fr) 160px 160px 180px 170px 150px auto;

}

.finance-stats .stat-card{

  position:relative;

  overflow:hidden;

}

.finance-stats .stat-card::before{

  content:"";

  position:absolute;

  left:0;

  top:0;

  bottom:0;

  width:5px;

  background:rgba(197,138,43,.45);

}

.stat-receita::before,.finance-receita::before{background:#2eb872!important;}

.stat-despesa::before,.finance-despesa::before{background:#e45d4f!important;}

.stat-saldo-pos::before{background:#2eb872!important;}

.stat-saldo-neg::before{background:#e45d4f!important;}

.stat-pendencias::before{background:#d69a2d!important;}

.finance-card{

  position:relative;

  overflow:hidden;

}

.finance-card::before{

  content:"";

  position:absolute;

  left:0;

  top:0;

  bottom:0;

  width:5px;

  background:rgba(197,138,43,.45);

}

.finance-card .os-details{

  grid-template-columns:repeat(4,minmax(0,1fr));

}

@media (max-width:1180px){

  .toolbar.toolbar-financeiro{grid-template-columns:1fr 1fr 1fr;}

  .toolbar.toolbar-financeiro .form-control:first-child{grid-column:1/-1;}

}

@media (max-width:760px){

  .toolbar.toolbar-financeiro{grid-template-columns:1fr;}

  .finance-card .os-details{grid-template-columns:1fr 1fr;}

}

@media (max-width:520px){

  .finance-card .os-details{grid-template-columns:1fr;}

}



/* Patch: configurações, logo e equipe técnica */

.logo-config-row{

  display:grid;

  grid-template-columns:140px minmax(0,1fr);

  gap:20px;

  align-items:center;

}

.logo-preview-box{

  width:120px;

  height:120px;

  border-radius:28px;

  border:1px solid var(--line);

  background:#fff;

  display:grid;

  place-items:center;

  overflow:hidden;

  color:var(--muted);

  font-weight:800;

  text-align:center;

}

.logo-preview-box img{

  width:100%;

  height:100%;

  object-fit:cover;

  display:block;

}

.logo-upload-copy{min-width:0}

.form-help{

  margin:8px 0 0;

  color:var(--muted);

  font-size:.92rem;

  line-height:1.45;

}

.form-help code{

  padding:2px 6px;

  border-radius:8px;

  background:#fff;

  border:1px solid var(--line);

}

.section-title-inline{

  display:flex;

  justify-content:space-between;

  gap:16px;

  align-items:flex-start;

  margin-bottom:16px;

}

.section-title-inline h2{margin-bottom:6px}

.section-title-inline p{

  margin:0;

  color:var(--muted);

  max-width:720px;

}

.equipe-form-grid{align-items:end}

.mini-list{

  display:grid;

  gap:10px;

  margin-top:18px;

}

.mini-list-row{

  display:flex;

  align-items:center;

  justify-content:space-between;

  gap:12px;

  padding:14px 16px;

  border:1px solid var(--line);

  background:rgba(255,255,255,.58);

  border-radius:18px;

}

.mini-list-row strong{display:block;margin-bottom:3px}

.mini-list-row span{color:var(--muted);font-size:.94rem}

.empty-inline{

  padding:14px 16px;

  border:1px dashed var(--line-strong);

  color:var(--muted);

  border-radius:18px;

}

.danger-soft-btn{

  display:inline-flex;

  align-items:center;

  justify-content:center;

  min-height:38px;

  border-radius:999px;

  padding:0 14px;

  border:1px solid rgba(220,70,70,.28);

  color:#b42929;

  background:rgba(255,245,245,.92);

  font-weight:850;

  cursor:pointer;

  white-space:nowrap;

}

.danger-soft-btn:hover{transform:translateY(-1px);background:#fff0f0}

.form-actions-split{

  display:flex;

  justify-content:space-between;

  align-items:center;

  gap:12px;

}

@media (max-width:720px){

  .logo-config-row{grid-template-columns:1fr}

  .form-actions-split{flex-direction:column-reverse;align-items:stretch}

  .form-actions-split .primary-btn,.form-actions-split .secondary-btn{width:100%}

  .mini-list-row{align-items:flex-start;flex-direction:column}

}



/* Patch: botões de exclusão nas listagens */

.inline-delete-form{

  margin:0;

  display:inline-flex;

}

.inline-delete-form .small-btn{

  cursor:pointer;

}

.card-actions form.inline-delete-form{

  margin:0;

}

.small-btn.danger:hover{

  transform:translateY(-1px);

  background:#fff0f0;

}





/* Patch: suporte, notificações, perfil e assinatura */

.top-actions{gap:10px;flex-wrap:wrap}

.notify-btn{position:relative}

.notify-count{

  position:absolute;

  top:-6px;

  right:-6px;

  min-width:18px;

  height:18px;

  padding:0 5px;

  border-radius:999px;

  background:#d83b2d;

  color:#fff;

  font-size:.72rem;

  font-weight:900;

  display:grid;

  place-items:center;

  line-height:1;

}

@keyframes bellShake{

  0%,100%{transform:rotate(0deg)}

  15%{transform:rotate(12deg)}

  30%{transform:rotate(-10deg)}

  45%{transform:rotate(8deg)}

  60%{transform:rotate(-6deg)}

  75%{transform:rotate(4deg)}

}

.bell-shake svg{animation:bellShake 1.6s ease-in-out infinite;transform-origin:50% 10%}

.ticket-thread{display:grid;gap:14px}

.ticket-message{

  padding:16px 18px;

  border-radius:18px;

  border:1px solid var(--line);

  background:rgba(255,255,255,.72);

}

.ticket-message.admin{background:#fff7e7;border-color:#eacb91}

.ticket-message-head{display:flex;justify-content:space-between;gap:12px;color:var(--muted);font-size:.92rem;margin-bottom:8px}

.ticket-message-head strong{color:var(--text)}

.ticket-message p{margin:0;line-height:1.55}

.notifications-list .mini-list-row.is-unread{border-color:#d69a2d;background:#fff9ec}

.package-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}

.package-card{

  border:1px solid var(--line);

  border-radius:22px;

  padding:18px;

  background:rgba(255,255,255,.72);

  display:flex;

  flex-direction:column;

  gap:12px;

}

.package-card h3{margin:0;font-size:1.2rem}

.package-card p{margin:0;color:var(--muted)}

.package-card strong{font-size:1.6rem;color:var(--text)}

.subscription-stats{margin-bottom:18px}

.system-alert-card{

  display:flex;

  align-items:center;

  justify-content:space-between;

  gap:18px;

  border:1px solid var(--line);

  border-left:6px solid #d69a2d;

  border-radius:22px;

  background:#fff9ec;

  padding:16px 18px;

  margin:0 0 20px;

}

.system-alert-card.danger{border-left-color:#d83b2d;background:#fff5f2}

.system-alert-card strong{font-size:1.05rem;color:var(--text)}

.system-alert-card p{margin:4px 0 0;color:var(--muted)}

@media (max-width:1100px){.package-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

@media (max-width:720px){.package-grid{grid-template-columns:1fr}.system-alert-card{flex-direction:column;align-items:flex-start}.system-alert-card .secondary-btn{width:100%}}



/* Checkout assinatura Efí */

.checkout-panel { max-width: 1180px; }

.checkout-summary {

  display: grid;

  grid-template-columns: repeat(4, minmax(0, 1fr));

  gap: 12px;

  margin-bottom: 22px;

}

.checkout-summary > div {

  border: 1px solid var(--line, #eadbc4);

  border-radius: 16px;

  padding: 14px 16px;

  background: rgba(255,255,255,.62);

}

.checkout-summary span { display:block; font-size:12px; text-transform:uppercase; font-weight:800; color: var(--muted, #786b5e); margin-bottom:6px; }

.checkout-summary strong { font-size:18px; color: var(--text, #111); }

.pix-layout { display:grid; grid-template-columns: 280px 1fr; gap: 26px; align-items:start; }

.pix-qr {

  width: 280px;

  min-height: 280px;

  border: 1px dashed var(--line, #eadbc4);

  border-radius: 22px;

  display:flex;

  align-items:center;

  justify-content:center;

  background:#fff;

  overflow:hidden;

}

.pix-qr img { width: 250px; height: 250px; object-fit: contain; }

.pix-copy textarea {

  width:100%; min-height:150px; resize:vertical;

  border:1px solid var(--line, #eadbc4);

  border-radius:16px;

  padding:14px;

  font: 14px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  background:#fff;

  margin: 10px 0 14px;

}

.pix-timer {

  display:inline-flex;

  align-items:center;

  justify-content:center;

  min-width:86px;

  border-radius:999px;

  padding:8px 12px;

  background:#fff4db;

  color:#8b5a00;

  font-weight:900;

  border:1px solid #f1d49a;

}

.installment-total-box {

  display:flex;

  align-items:center;

  justify-content:space-between;

  gap:12px;

  margin:18px 0;

  border:1px solid var(--line, #eadbc4);

  border-radius:16px;

  padding:14px 16px;

  background:#fffaf2;

}

.installment-total-box span { color: var(--muted, #786b5e); font-weight:700; }

.installment-total-box strong { font-size:22px; }

.danger-box { border-left:4px solid #e45454; }

.danger-text { color:#b42318; }

.mini-actions { display:flex; align-items:center; gap:10px; flex-wrap:wrap; justify-content:flex-end; }

@media (max-width: 780px) {

  .checkout-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .pix-layout { grid-template-columns: 1fr; }

  .pix-qr { width:100%; }

}



/* Patch visual: topo limpo, ícones, cartão e rodapé lateral */

.topbar-spacer{

  flex:1 1 auto;

  min-width:0;

}

.app-topbar-inner{

  justify-content:flex-start;

}

.app-topbar-inner > .top-actions{

  margin-left:auto;

}

.top-actions{

  flex-wrap:nowrap !important;

}

.side-footer strong{

  display:block;

  color:#e8dfd2;

  font-size:.86rem;

  line-height:1.25;

  margin-bottom:4px;

  overflow:hidden;

  text-overflow:ellipsis;

}

.side-footer span{

  color:#a69684;

}

.card-checkout-form .form-field input,

.card-checkout-form .form-field select,

.form-field input[type="text"],

.form-field input[type="email"],

.form-field input[type="password"],

.form-field input[type="tel"],

.form-field input[type="number"],

.form-field input[type="date"],

.form-field input[type="file"]{

  width:100%;

  min-height:46px;

  border:1px solid var(--line-strong);

  background:#fff;

  color:#29231d;

  border-radius:16px;

  padding:0 14px;

  outline:none;

}

.card-checkout-form .form-field input:focus,

.card-checkout-form .form-field select:focus,

.form-field input[type="text"]:focus,

.form-field input[type="email"]:focus,

.form-field input[type="password"]:focus,

.form-field input[type="tel"]:focus,

.form-field input[type="number"]:focus,

.form-field input[type="date"]:focus,

.form-field input[type="file"]:focus{

  border-color:rgba(197,138,43,.75);

  box-shadow:0 0 0 4px rgba(197,138,43,.12);

}

.card-checkout-form .form-field-full{

  grid-column:auto;

}

.card-checkout-form .installment-total-box{

  margin-top:16px;

}

@media (max-width:720px){

  .app-topbar-inner{

    padding:0 10px;

    gap:8px;

  }

  .icon-btn{

    width:38px;

    height:38px;

    border-radius:13px;

  }

  .top-actions{

    gap:6px !important;

  }

  .notify-count{

    top:-5px;

    right:-5px;

    min-width:16px;

    height:16px;

    font-size:.66rem;

  }

}

@media (max-width:390px){

  .app-topbar-inner{

    padding:0 8px;

  }

  .icon-btn{

    width:36px;

    height:36px;

  }

  .top-actions{

    gap:5px !important;

  }

}



.brand-mark {

  width: 44px;

  height: 44px;

  border-radius: 14px;

  background: var(--black);

  display: grid;

  place-items: center;

  color: var(--gold);

  box-shadow: 0 14px 24px rgba(17,17,17,.14);

  flex: 0 0 auto;

}



.brand-mark svg {

  width: 25px;

  height: 25px;

  display: block;

}



.side-left .brand-mark,

.mobile-drawer .brand-mark {

  background: #fff;

  color: var(--gold);

  box-shadow: none;

}



.side-left .brand-mark svg,

.mobile-drawer .brand-mark svg {

  width: 24px;

  height: 24px;

}



@media (max-width: 430px) {

  .brand-mark {

    width: 40px;

    height: 40px;

    border-radius: 13px;

  }



  .brand-mark svg {

    width: 22px;

    height: 22px;

  }



  .brand-name {

    font-size: 1rem;

  }



  .brand-subtitle {

    font-size: .7rem;

    max-width: 190px;

  }



  .icon-btn {

    width: 40px;

    height: 40px;

    border-radius: 14px;

  }

}

/* Patch: card de estatísticas da divulgação pública */

.public-listing-heading{

  align-items:flex-start;

  margin-bottom:10px;

}



.public-listing-heading > div:first-child{

  min-width:0;

  padding-top:2px;

}



.public-stats-card{

  flex:0 0 255px;

  align-self:flex-start;

  margin-top:-4px;

  border:1px solid rgba(234,223,206,.88);

  border-radius:20px;

  padding:10px 11px;

  background:

    radial-gradient(circle at top right, rgba(224,170,71,.14), transparent 8rem),

    rgba(255,255,255,.60);

  box-shadow:0 10px 24px rgba(21,21,21,.05);

}



.public-stats-head{

  display:flex;

  align-items:center;

  justify-content:space-between;

  gap:10px;

  margin-bottom:8px;

  padding:0 1px;

}



.public-stats-head span{

  color:var(--muted);

  font-size:.68rem;

  font-weight:950;

  text-transform:uppercase;

  letter-spacing:.05em;

}



.public-stats-head strong{

  color:#171411;

  font-size:1.08rem;

  font-weight:950;

  letter-spacing:-.04em;

}



.public-stats-items{

  display:grid;

  grid-template-columns:repeat(2,minmax(0,1fr));

  gap:7px;

}



.public-stat-item{

  min-width:0;

  display:grid;

  grid-template-columns:26px minmax(0,1fr);

  grid-template-areas:

    "icon label"

    "icon value";

  column-gap:7px;

  align-items:center;

  padding:8px 9px;

  border:1px solid rgba(234,223,206,.82);

  border-radius:15px;

  background:rgba(255,253,249,.78);

}



.public-stat-icon{

  grid-area:icon;

  width:26px;

  height:26px;

  border-radius:10px;

  display:grid;

  place-items:center;

  color:#171411;

  background:rgba(23,20,17,.05);

  opacity:.62;

}



.public-stat-icon svg{

  width:15px;

  height:15px;

  display:block;

}



.public-stat-whatsapp .public-stat-icon{

  color:#247a4c;

  background:rgba(43,138,87,.09);

}



.public-stat-site .public-stat-icon{

  color:#3466a3;

  background:rgba(52,102,163,.09);

}



.public-stat-label{

  grid-area:label;

  min-width:0;

  color:var(--muted);

  font-size:.64rem;

  line-height:1.05;

  font-weight:900;

  text-transform:uppercase;

  letter-spacing:.03em;

  overflow:hidden;

  text-overflow:ellipsis;

  white-space:nowrap;

}



.public-stat-item strong{

  grid-area:value;

  display:block;

  color:#171411;

  font-size:.98rem;

  line-height:1.05;

  font-weight:950;

  letter-spacing:-.03em;

}



@media (max-width:860px){

  .public-listing-heading{

    display:grid;

    gap:12px;

  }



  .public-stats-card{

    width:100%;

    flex-basis:auto;

    margin-top:0;

  }

}



@media (max-width:420px){

  .public-stats-items{

    grid-template-columns:1fr;

  }

}

/* Patch v15: logo ArmeiroAirsoft.com com engrenagens */
.brand-logo-link{
  display:inline-flex;
  align-items:center;
  gap:0;
  min-width:0;
  text-decoration:none;
}
.brand-logo-img{
  display:block;
  width:auto;
  height:54px;
  max-width:260px;
  object-fit:contain;
}
.site-topbar .brand-logo-img{
  height:54px;
  max-width:250px;
}
.side-left .brand-logo-link,
.mobile-drawer .brand-logo-link{
  width:100%;
  background:#fff;
  border:1px solid rgba(234,223,206,.78);
  border-radius:18px;
  padding:7px 9px;
  box-shadow:0 12px 24px rgba(0,0,0,.12);
  margin-bottom:22px;
}
.side-left .brand-logo-img,
.mobile-drawer .brand-logo-img{
  width:100%;
  height:auto;
  max-width:224px;
}
.mobile-drawer .brand-logo-link{
  width:min(224px,calc(100% - 56px));
  margin-bottom:0;
}
@media (max-width: 900px){
  .site-topbar .brand-logo-img{
    height:48px;
    max-width:220px;
  }
}
@media (max-width: 520px){
  .site-topbar .brand-logo-img{
    height:42px;
    max-width:192px;
  }
  .side-left .brand-logo-img,
  .mobile-drawer .brand-logo-img{
    max-width:205px;
  }
}
@media (max-width: 390px){
  .site-topbar .brand-logo-img{
    height:38px;
    max-width:176px;
  }
}


/* Patch v16: marcas compactas do ArmeiroAirsoft.com no público e no painel */
.app-brand-card,
.public-brand-card{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
  text-decoration:none;
  color:inherit;
}
.app-brand-mark,
.public-brand-mark{
  width:42px;
  height:42px;
  border-radius:14px;
  display:grid;
  place-items:center;
  flex:0 0 42px;
  overflow:hidden;
}
.app-brand-mark{
  background:#fff;
  box-shadow:0 12px 28px rgba(0,0,0,.16);
}
.public-brand-mark{
  background:#fff;
  border:1px solid rgba(234,223,206,.85);
  box-shadow:0 12px 24px rgba(17,17,17,.10);
}
.app-brand-mark img,
.public-brand-mark img{
  width:25px;
  height:25px;
  display:block;
  object-fit:contain;
}
.app-brand-copy,
.public-brand-copy{
  display:block;
  min-width:0;
  line-height:1.1;
}
.app-brand-copy strong,
.public-brand-copy strong{
  display:block;
  font-weight:1000;
  letter-spacing:-.045em;
  white-space:nowrap;
}
.app-brand-copy strong{
  color:#fff;
  font-size:15px;
}
.public-brand-copy strong{
  color:#111;
  font-size:1.08rem;
}
.app-brand-copy strong span,
.public-brand-copy strong span{
  color:var(--gold);
}
.app-brand-copy small,
.public-brand-copy small{
  display:block;
  margin-top:4px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.app-brand-copy small{
  color:#cfc0aa;
  font-size:12px;
}
.public-brand-copy small{
  color:var(--muted);
  font-size:.76rem;
}
.side-left .app-brand-card{
  width:100%;
  margin-bottom:2px;
  padding:10px 12px;
  border-radius:18px;
}
.mobile-drawer .mobile-app-brand-card{
  width:min(270px,calc(100% - 56px));
  margin:0;
  padding:0;
}
.site-topbar .public-brand-card{
  max-width:min(340px,52vw);
}
@media (max-width: 900px){
  .site-topbar .public-brand-card{
    max-width:min(300px,62vw);
  }
  .public-brand-copy small{
    display:none;
  }
}
@media (max-width: 520px){
  .app-brand-copy strong{
    font-size:14px;
  }
  .app-brand-copy small{
    font-size:11px;
    max-width:165px;
  }
  .public-brand-copy strong{
    font-size:.98rem;
  }
  .app-brand-mark,
  .public-brand-mark{
    width:40px;
    height:40px;
    flex-basis:40px;
    border-radius:13px;
  }
  .app-brand-mark img,
  .public-brand-mark img{
    width:23px;
    height:23px;
  }
}
@media (max-width: 390px){
  .public-brand-copy strong{
    font-size:.92rem;
  }
  .app-brand-copy small{
    max-width:145px;
  }
}
