
:root{
  --ts-green-950:#183824;
  --ts-green-900:#214a31;
  --ts-green-800:#315c3e;
  --ts-green-700:#447451;
  --ts-green-100:#e9f2ea;
  --ts-green-050:#f4f8f4;
  --ts-cream:#f4f2eb;
  --ts-white:#ffffff;
  --ts-text:#203027;
  --ts-muted:#6f7972;
  --ts-border:#dde2dd;
  --ts-danger:#a33a32;
  --ts-shadow:0 18px 60px rgba(28,59,39,.08);
  --ts-shadow-soft:0 10px 28px rgba(28,59,39,.06);
  --ts-radius:24px;
}
body.territorios-studio-v1{background:var(--ts-cream)!important}
body.territorios-studio-v1 .site-main,
body.territorios-studio-v1 main,
body.territorios-studio-v1 .entry-content{max-width:none!important;width:100%!important;margin:0!important;padding:0!important}
.ts-v1-shell{min-height:100vh;display:grid;grid-template-columns:280px minmax(0,1fr);background:var(--ts-cream);color:var(--ts-text)}
.ts-v1-sidebar{position:sticky;top:0;height:100vh;display:flex;flex-direction:column;padding:26px 18px 18px;background:linear-gradient(180deg,var(--ts-green-950),var(--ts-green-900));color:#fff}
.ts-v1-brand{display:flex;align-items:center;gap:12px;padding:4px 12px 28px;color:#fff!important;text-decoration:none!important}
.ts-v1-brand__mark{display:grid;place-items:center;width:46px;height:46px;border-radius:14px;background:rgba(255,255,255,.12);font-size:22px;font-weight:900}
.ts-v1-brand__copy{display:flex;flex-direction:column}
.ts-v1-brand__copy small{font-size:11px;letter-spacing:.13em;text-transform:uppercase;opacity:.65}
.ts-v1-brand__copy strong{font-size:24px;line-height:1.05}
.ts-v1-nav{display:grid;gap:7px}
.ts-v1-nav a{display:flex;align-items:center;gap:12px;padding:13px 14px;border-radius:14px;color:rgba(255,255,255,.78)!important;text-decoration:none!important;font-weight:750;transition:.18s ease}
.ts-v1-nav a:hover,.ts-v1-nav a.is-active{background:rgba(255,255,255,.12);color:#fff!important;transform:translateX(2px)}
.ts-v1-nav .dashicons{font-size:19px;width:22px;height:22px}
.ts-v1-sidebar__footer{margin-top:auto;display:flex;align-items:center;gap:11px;padding:18px 12px 0;border-top:1px solid rgba(255,255,255,.12)}
.ts-v1-avatar{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:rgba(255,255,255,.14);font-weight:900}
.ts-v1-usercopy{display:flex;flex-direction:column;min-width:0}
.ts-v1-usercopy strong{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ts-v1-usercopy a{color:rgba(255,255,255,.7)!important;font-size:12px}
.ts-v1-main{min-width:0}
.ts-v1-topbar{min-height:84px;display:flex;align-items:center;gap:18px;padding:16px 34px;border-bottom:1px solid rgba(221,226,221,.9);background:rgba(255,255,255,.92);backdrop-filter:blur(14px)}
.ts-v1-menu-toggle{display:none;border:0;background:transparent;font-size:22px}
.ts-v1-topbar__title{display:flex;flex-direction:column}
.ts-v1-topbar__actions{margin-left:auto;display:flex;align-items:center;gap:10px}
.ts-v1-icon-button{display:grid;place-items:center;width:44px;height:44px;border-radius:13px;background:var(--ts-green-800);color:#fff!important;text-decoration:none!important;font-size:26px}
.ts-v1-content{max-width:1380px;margin:0 auto;padding:46px 40px 90px}
.ts-v1-eyebrow{display:block;color:var(--ts-green-800);font-size:11px;font-weight:900;letter-spacing:.14em;text-transform:uppercase}
.ts-v1-hero,.ts-v1-page-head{display:flex;justify-content:space-between;align-items:flex-end;gap:30px;margin-bottom:30px}
.ts-v1-hero h1,.ts-v1-page-head h1{margin:7px 0 10px;font-size:clamp(40px,5vw,68px);line-height:.98;letter-spacing:-.055em;color:var(--ts-text)}
.ts-v1-page-head h1{font-size:clamp(36px,4vw,58px)}
.ts-v1-hero p,.ts-v1-page-head p{max-width:720px;margin:0;color:var(--ts-muted);font-size:18px}
.ts-v1-primary,.ts-v1-secondary,.ts-v1-link-button{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 20px;border:1px solid var(--ts-green-800);border-radius:14px;font-weight:850;text-decoration:none!important}
.ts-v1-primary{background:var(--ts-green-800);color:#fff!important}
.ts-v1-primary:hover{background:var(--ts-green-900)}
.ts-v1-secondary,.ts-v1-link-button{background:#fff;color:var(--ts-green-800)!important}
.ts-v1-secondary--full{width:100%;margin-top:18px}
.ts-v1-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:28px}
.ts-v1-stats article{min-height:190px;display:flex;flex-direction:column;justify-content:flex-end;padding:24px;border:1px solid var(--ts-border);border-radius:22px;background:#fff;box-shadow:var(--ts-shadow-soft)}
.ts-v1-stats article>.dashicons{margin-bottom:auto;color:var(--ts-green-800);font-size:25px;width:28px;height:28px}
.ts-v1-stats strong{font-size:52px;line-height:1;color:var(--ts-green-950);letter-spacing:-.05em}
.ts-v1-stats span{margin-top:9px;color:var(--ts-text);font-weight:800}
.ts-v1-stats small{margin-top:4px;color:var(--ts-muted)}
.ts-v1-dashboard-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(300px,.65fr);gap:22px;align-items:start}
.ts-v1-card{border:1px solid var(--ts-border);border-radius:var(--ts-radius);background:#fff;box-shadow:var(--ts-shadow)}
.ts-v1-section-head{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;padding:28px 30px;border-bottom:1px solid var(--ts-border)}
.ts-v1-section-head h2{margin:5px 0 0;color:var(--ts-text);font-size:29px}
.ts-v1-section-head a{color:var(--ts-green-800)!important;font-weight:850;text-decoration:none!important}
.ts-v1-health-card{padding:30px}
.ts-v1-health-card h2{margin:9px 0 18px;font-size:28px;line-height:1.05}
.ts-v1-health-card>strong{display:block;margin-top:12px}
.ts-v1-progress{height:10px;border-radius:999px;background:#e9ede9;overflow:hidden}
.ts-v1-progress span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--ts-green-800),#7eaa83)}
.ts-v1-health-card ul{display:grid;gap:12px;margin:24px 0;padding:0;list-style:none}
.ts-v1-health-card li{position:relative;padding-left:24px;color:var(--ts-muted)}
.ts-v1-health-card li:before{content:"○";position:absolute;left:0;color:#9aa49c}
.ts-v1-health-card li.is-done{color:var(--ts-text)}
.ts-v1-health-card li.is-done:before{content:"✓";color:var(--ts-green-800);font-weight:900}
.ts-v1-product-list{display:grid}
.ts-v1-product-row{display:grid;grid-template-columns:64px minmax(220px,1fr) 120px 130px 90px;align-items:center;gap:18px;padding:18px 24px;border-bottom:1px solid var(--ts-border)}
.ts-v1-product-row:last-child{border-bottom:0}
.ts-v1-product-row__image{width:58px;height:58px;display:grid;place-items:center;overflow:hidden;border-radius:14px;background:var(--ts-green-100);color:var(--ts-green-800)}
.ts-v1-product-row__image img{width:100%;height:100%;object-fit:cover}
.ts-v1-product-row__name{display:flex;flex-direction:column;gap:3px}
.ts-v1-product-row__name strong{color:var(--ts-text)}
.ts-v1-product-row__name span{color:var(--ts-muted);font-size:13px}
.ts-v1-status{display:inline-flex;width:max-content;padding:6px 10px;border-radius:999px;background:var(--ts-green-100);color:var(--ts-green-800);font-size:12px;font-weight:850}
.ts-v1-price{color:var(--ts-green-900)}
.ts-v1-row-action{color:var(--ts-green-800)!important;font-weight:850;text-decoration:none!important}
.ts-v1-empty{display:flex;flex-direction:column;gap:5px;padding:38px;color:var(--ts-muted)}
.ts-v1-order-list{display:grid}
.ts-v1-order-row{display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:18px;padding:20px 24px;border-bottom:1px solid var(--ts-border)}
.ts-v1-order-row:last-child{border-bottom:0}
.ts-v1-order-row>div{display:flex;flex-direction:column;gap:3px}
.ts-v1-order-number{color:var(--ts-green-800);font-size:12px;font-weight:900}
.ts-v1-product-form{display:grid;grid-template-columns:minmax(0,1fr) 360px;align-items:start;gap:22px}
.ts-v1-form-main,.ts-v1-form-side{display:grid;gap:22px}
.ts-v1-form-side{position:sticky;top:22px}
.ts-v1-form-section{padding:30px}
.ts-v1-form-section h2{margin:6px 0 24px;font-size:28px;letter-spacing:-.025em;color:var(--ts-text)}
.ts-v1-step{color:var(--ts-green-800);font-size:12px;font-weight:900;letter-spacing:.12em;text-transform:uppercase}
.ts-v1-form-section label{display:grid;gap:8px;margin-bottom:20px}
.ts-v1-form-section label:last-child{margin-bottom:0}
.ts-v1-form-section label>span{font-size:13px;font-weight:850;color:var(--ts-text)}
.ts-v1-form-section input[type=text],.ts-v1-form-section input[type=number],.ts-v1-form-section input[type=file],.ts-v1-form-section select,.ts-v1-form-section textarea{width:100%;min-height:54px;padding:13px 14px;border:1px solid #d7dcd7;border-radius:13px;background:#fcfcfa;color:var(--ts-text);font:inherit;box-shadow:none}
.ts-v1-form-section textarea{resize:vertical}
.ts-v1-form-section input:focus,.ts-v1-form-section select:focus,.ts-v1-form-section textarea:focus{outline:0;border-color:var(--ts-green-800);box-shadow:0 0 0 4px rgba(49,92,62,.11)}
.ts-v1-form-section small,.ts-v1-muted{color:var(--ts-muted);font-size:13px}
.ts-v1-field-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.ts-v1-image-preview{aspect-ratio:1/1;display:grid;place-items:center;overflow:hidden;margin-bottom:14px;border:1px dashed #c8d2c9;border-radius:18px;background:var(--ts-green-100);color:var(--ts-green-800);text-align:center;padding:20px}
.ts-v1-image-preview img{width:100%;height:100%;object-fit:cover}
.ts-v1-radio{grid-template-columns:22px 1fr!important;align-items:start!important;padding:14px;border:1px solid var(--ts-border);border-radius:13px}
.ts-v1-radio input{margin-top:4px;accent-color:var(--ts-green-800)}
.ts-v1-radio span{display:flex;flex-direction:column;gap:3px}
.ts-v1-radio small{font-weight:400}
.ts-v1-submit{width:100%;border:0;cursor:pointer}
.ts-v1-danger-card{padding:24px}
.ts-v1-danger-card h2{margin:0 0 6px;font-size:19px}
.ts-v1-danger-card p{color:var(--ts-muted)}
.ts-v1-danger{width:100%;min-height:46px;border:1px solid #e2bbb8;border-radius:12px;background:#fff;color:var(--ts-danger);font-weight:800;cursor:pointer}
.ts-v1-message{margin-bottom:20px;padding:14px 16px;border-radius:12px;font-weight:700}
.ts-v1-message--success{background:var(--ts-green-100);color:var(--ts-green-800)}
.ts-v1-message--error{background:#fbe9e7;color:var(--ts-danger)}
.ts-v1-login{max-width:520px;margin:80px auto;padding:36px;border:1px solid var(--ts-border);border-radius:var(--ts-radius);background:#fff;box-shadow:var(--ts-shadow)}
.ts-v1-login h1{font-size:48px;line-height:1;margin:8px 0 12px;color:var(--ts-text)}
.ts-v1-login form{display:grid;gap:12px}
.ts-v1-login input{width:100%;min-height:50px;padding:12px;border:1px solid var(--ts-border);border-radius:12px}
.ts-v1-login input[type=submit]{border:0;background:var(--ts-green-800);color:#fff;font-weight:800}
@media(max-width:1060px){
  .ts-v1-dashboard-grid{grid-template-columns:1fr}
  .ts-v1-product-form{grid-template-columns:1fr}
  .ts-v1-form-side{position:static}
}
@media(max-width:960px){
  .ts-v1-shell{grid-template-columns:1fr}
  .ts-v1-sidebar{position:fixed;z-index:9999;inset:0 auto 0 0;width:280px;transform:translateX(-100%);transition:.2s ease}
  .ts-v1-shell.is-menu-open .ts-v1-sidebar{transform:none}
  .ts-v1-menu-toggle{display:block}
}
@media(max-width:760px){
  .ts-v1-topbar{padding:14px 18px}
  .ts-v1-content{padding:30px 18px 60px}
  .ts-v1-link-button{display:none}
  .ts-v1-hero,.ts-v1-page-head{align-items:flex-start;flex-direction:column}
  .ts-v1-stats{grid-template-columns:1fr 1fr}
  .ts-v1-product-row{grid-template-columns:54px 1fr auto}
  .ts-v1-product-row .ts-v1-status,.ts-v1-product-row .ts-v1-price{display:none}
  .ts-v1-field-grid{grid-template-columns:1fr}
}


/* ===== Territórios Studio 2.0 ===== */

/* Remove o título redundante da página gerado pelo tema/Blocksy. */
body.territorios-studio-v1 .entry-header,
body.territorios-studio-v1 .page-header,
body.territorios-studio-v1 .hero-section[data-type="type-1"],
body.territorios-studio-v1 .ct-container-full > .entry-header,
body.territorios-studio-v1 article > header.entry-header{
  display:none!important;
}

body.territorios-studio-v1 .site-main,
body.territorios-studio-v1 .content-area,
body.territorios-studio-v1 article,
body.territorios-studio-v1 .entry-content{
  margin-top:0!important;
}

/* Navegação agrupada */
.ts-v1-nav{
  gap:18px!important;
}

.ts-v2-nav-group{
  display:grid;
  gap:5px;
}

.ts-v2-nav-label{
  padding:0 14px 5px;
  color:rgba(255,255,255,.42);
  font-size:10px;
  font-weight:900;
  letter-spacing:.15em;
  text-transform:uppercase;
}

.ts-v2-nav-group a{
  min-height:46px;
}

.ts-v2-nav-group a.is-active{
  position:relative;
}

.ts-v2-nav-group a.is-active::before{
  content:"";
  position:absolute;
  left:0;
  width:3px;
  height:22px;
  border-radius:999px;
  background:#fff;
}

/* Catálogo em cards */
.ts-v2-product-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:20px;
}

.ts-v2-product-card{
  overflow:hidden;
  border:1px solid var(--ts-border);
  border-radius:22px;
  background:#fff;
  box-shadow:var(--ts-shadow-soft);
  transition:transform .18s ease,box-shadow .18s ease;
}

.ts-v2-product-card:hover{
  transform:translateY(-3px);
  box-shadow:0 22px 55px rgba(28,59,39,.11);
}

.ts-v2-product-card__media{
  position:relative;
  display:grid;
  place-items:center;
  aspect-ratio:4/3;
  overflow:hidden;
  background:var(--ts-green-100);
  color:var(--ts-green-800)!important;
  text-decoration:none!important;
}

.ts-v2-product-card__media img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .28s ease;
}

.ts-v2-product-card:hover .ts-v2-product-card__media img{
  transform:scale(1.025);
}

.ts-v2-product-card__media>.dashicons{
  width:42px;
  height:42px;
  font-size:42px;
}

.ts-v2-product-card__media .ts-v1-status{
  position:absolute;
  top:14px;
  right:14px;
  background:rgba(255,255,255,.94);
  box-shadow:0 6px 18px rgba(32,48,39,.09);
}

.ts-v2-product-card__body{
  padding:20px;
}

.ts-v2-product-card__category{
  display:block;
  min-height:18px;
  color:var(--ts-green-800);
  font-size:11px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.ts-v2-product-card h2{
  margin:7px 0 20px;
  color:var(--ts-text);
  font-size:22px;
  line-height:1.1;
  letter-spacing:-.025em;
}

.ts-v2-product-card__footer{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  padding-top:16px;
  border-top:1px solid var(--ts-border);
}

.ts-v2-product-card__footer strong{
  color:var(--ts-green-950);
  font-size:18px;
}

.ts-v2-product-card__footer del{
  display:block;
  color:var(--ts-muted);
  font-size:12px;
  font-weight:400;
}

.ts-v2-product-card__footer ins{
  text-decoration:none;
}

.ts-v2-product-card__footer a{
  color:var(--ts-green-800)!important;
  font-size:13px;
  font-weight:900;
  text-decoration:none!important;
}

/* Lista do dashboard mais limpa e com categorias em texto puro. */
.ts-v1-product-row__name span{
  line-height:1.4;
}

/* Pequeno refinamento do topo */
.ts-v1-topbar{
  position:sticky;
  top:0;
  z-index:40;
}

@media(max-width:1120px){
  .ts-v2-product-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media(max-width:620px){
  .ts-v2-product-grid{
    grid-template-columns:1fr;
  }
}


/* ===== Territórios Studio 3.0 ===== */

.ts-v3-topbar{
  gap:24px;
}

.ts-v3-global-search{
  position:relative;
  display:flex;
  align-items:center;
  width:min(520px,48vw);
  min-height:46px;
  padding:0 12px;
  border:1px solid var(--ts-border);
  border-radius:14px;
  background:#f8faf8;
}

.ts-v3-global-search .dashicons{
  color:var(--ts-muted);
}

.ts-v3-global-search input{
  flex:1;
  min-width:0;
  height:44px;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  color:var(--ts-text);
  font:inherit;
}

.ts-v3-global-search input:focus{
  outline:0;
}

.ts-v3-global-search kbd{
  padding:3px 7px;
  border:1px solid var(--ts-border);
  border-radius:7px;
  background:#fff;
  color:var(--ts-muted);
  font-size:11px;
}

.ts-v3-notification{
  position:relative;
  display:grid;
  place-items:center;
  width:44px;
  height:44px;
  border:1px solid var(--ts-border);
  border-radius:13px;
  background:#fff;
  color:var(--ts-green-800)!important;
  text-decoration:none!important;
}

.ts-v3-notification b{
  position:absolute;
  top:-5px;
  right:-5px;
  display:grid;
  place-items:center;
  min-width:20px;
  height:20px;
  padding:0 5px;
  border:2px solid #fff;
  border-radius:999px;
  background:#c94d42;
  color:#fff;
  font-size:10px;
}

/* Focus editor */
body.territorios-studio-v1:has(.ts-v3-product-wizard) .ts-v1-topbar{
  display:none;
}

body.territorios-studio-v1:has(.ts-v3-product-wizard) .ts-v1-content{
  max-width:none;
  padding:0;
}

.ts-v3-focus-header{
  position:sticky;
  top:0;
  z-index:50;
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:24px;
  min-height:78px;
  padding:14px 32px;
  border-bottom:1px solid var(--ts-border);
  background:rgba(255,255,255,.96);
  backdrop-filter:blur(14px);
}

.ts-v3-focus-header>a{
  color:var(--ts-green-800)!important;
  font-weight:850;
  text-decoration:none!important;
}

.ts-v3-focus-header>div{
  display:flex;
  flex-direction:column;
  align-items:center;
}

.ts-v3-autosave{
  justify-self:end;
  color:var(--ts-muted);
  font-size:12px;
}

.ts-v3-wizard-layout{
  display:grid;
  grid-template-columns:230px minmax(0,840px);
  justify-content:center;
  gap:42px;
  min-height:calc(100vh - 78px);
  padding:42px;
}

.ts-v3-wizard-nav{
  position:sticky;
  top:120px;
  align-self:start;
  display:grid;
  gap:8px;
}

.ts-v3-wizard-nav button{
  display:flex;
  align-items:center;
  gap:11px;
  min-height:48px;
  padding:8px 12px;
  border:0;
  border-radius:13px;
  background:transparent;
  color:var(--ts-muted);
  font:inherit;
  font-weight:800;
  text-align:left;
  cursor:pointer;
}

.ts-v3-wizard-nav button b{
  display:grid;
  place-items:center;
  width:27px;
  height:27px;
  border-radius:50%;
  background:#e4e9e4;
  color:#6e786f;
  font-size:12px;
}

.ts-v3-wizard-nav button.is-active{
  background:var(--ts-green-100);
  color:var(--ts-green-800);
}

.ts-v3-wizard-nav button.is-active b{
  background:var(--ts-green-800);
  color:#fff;
}

.ts-v3-product-wizard{
  min-width:0;
}

.ts-v3-wizard-step{
  display:none;
  padding:42px;
  border:1px solid var(--ts-border);
  border-radius:28px;
  background:#fff;
  box-shadow:var(--ts-shadow);
}

.ts-v3-wizard-step.is-active{
  display:block;
  animation:tsV3Step .24s ease;
}

@keyframes tsV3Step{
  from{opacity:0;transform:translateY(8px)}
  to{opacity:1;transform:none}
}

.ts-v3-wizard-step h1{
  margin:8px 0 10px;
  color:var(--ts-text);
  font-size:clamp(34px,5vw,55px);
  line-height:1;
  letter-spacing:-.05em;
}

.ts-v3-wizard-step>p{
  max-width:650px;
  margin:0 0 34px;
  color:var(--ts-muted);
  font-size:17px;
}

.ts-v3-wizard-step label{
  display:grid;
  gap:8px;
  margin-bottom:22px;
}

.ts-v3-wizard-step label>span,
.ts-v3-field-head>span{
  color:var(--ts-text);
  font-size:13px;
  font-weight:850;
}

.ts-v3-wizard-step input[type=text],
.ts-v3-wizard-step input[type=number],
.ts-v3-wizard-step input[type=search],
.ts-v3-wizard-step textarea{
  width:100%;
  min-height:54px;
  padding:13px 15px;
  border:1px solid #d7dcd7;
  border-radius:14px;
  background:#fcfcfa;
  color:var(--ts-text);
  font:inherit;
}

.ts-v3-wizard-step textarea{
  resize:vertical;
}

.ts-v3-wizard-step input:focus,
.ts-v3-wizard-step textarea:focus{
  outline:0;
  border-color:var(--ts-green-800);
  box-shadow:0 0 0 4px rgba(49,92,62,.11);
}

.ts-v3-category-field{
  margin-bottom:24px;
}

.ts-v3-field-head{
  display:grid;
  grid-template-columns:auto minmax(180px,300px);
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:10px;
}

.ts-v3-field-head input{
  min-height:42px!important;
  padding:8px 12px!important;
}

.ts-v3-category-list{
  max-height:310px;
  overflow:auto;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  padding:12px;
  border:1px solid var(--ts-border);
  border-radius:16px;
  background:#fafbf9;
  scrollbar-width:thin;
  scrollbar-color:#aebcaf transparent;
}

.ts-v3-category-list label{
  grid-template-columns:20px 1fr;
  align-items:center;
  min-height:44px;
  margin:0!important;
  padding:10px 12px;
  border-radius:11px;
  background:#fff;
  cursor:pointer;
}

.ts-v3-category-list label:hover{
  background:var(--ts-green-100);
}

.ts-v3-category-list input{
  accent-color:var(--ts-green-800);
}

.ts-v3-upload-zone{
  cursor:pointer;
}

.ts-v3-upload-zone>input{
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  opacity:0;
}

.ts-v3-upload-preview{
  aspect-ratio:16/10;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;
  overflow:hidden;
  padding:28px;
  border:2px dashed #bdcabe;
  border-radius:22px;
  background:var(--ts-green-050);
  color:var(--ts-green-800);
  text-align:center;
}

.ts-v3-upload-preview img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.ts-v3-upload-preview .dashicons{
  width:46px;
  height:46px;
  font-size:46px;
}

.ts-v3-wizard-actions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-top:30px;
  padding-top:24px;
  border-top:1px solid var(--ts-border);
}

.ts-v3-review-card{
  display:grid;
  grid-template-columns:150px 1fr;
  align-items:center;
  gap:22px;
  margin-bottom:24px;
  padding:18px;
  border:1px solid var(--ts-border);
  border-radius:20px;
  background:var(--ts-green-050);
}

.ts-v3-review-image{
  aspect-ratio:1/1;
  display:grid;
  place-items:center;
  overflow:hidden;
  border-radius:16px;
  background:var(--ts-green-100);
  color:var(--ts-green-800);
}

.ts-v3-review-image img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.ts-v3-review-card h2{
  margin:5px 0 8px;
  color:var(--ts-text);
  font-size:28px;
}

.ts-v3-publish-button{
  border:0;
  cursor:pointer;
}

.ts-v3-delete-wrap{
  max-width:840px;
  margin:18px auto 60px;
  padding:0 42px;
}

.ts-v3-delete-wrap .ts-v1-danger{
  max-width:220px;
}

@media(max-width:960px){
  .ts-v3-global-search{
    width:auto;
    flex:1;
  }

  .ts-v3-wizard-layout{
    grid-template-columns:1fr;
    gap:20px;
    padding:24px;
  }

  .ts-v3-wizard-nav{
    position:static;
    display:flex;
    overflow:auto;
  }

  .ts-v3-wizard-nav button{
    flex:0 0 auto;
  }
}

@media(max-width:680px){
  .ts-v3-global-search kbd,
  .ts-v3-notification{
    display:none;
  }

  .ts-v3-focus-header{
    grid-template-columns:1fr auto;
    padding:12px 18px;
  }

  .ts-v3-focus-header>div{
    display:none;
  }

  .ts-v3-wizard-layout{
    padding:16px;
  }

  .ts-v3-wizard-step{
    padding:26px 20px;
  }

  .ts-v3-category-list{
    grid-template-columns:1fr;
  }

  .ts-v3-field-head{
    grid-template-columns:1fr;
  }

  .ts-v3-review-card{
    grid-template-columns:90px 1fr;
  }
}


/* ===== Territórios Studio 4.0.2 — REST/AJAX próprio ===== */

.ts-v3-autosave[data-state="saving"]{color:#826b28}
.ts-v3-autosave[data-state="saved"]{color:var(--ts-green-800)}
.ts-v3-autosave[data-state="error"]{color:#a33a32}

.ts-v4-category-field{
  position:relative;
  margin-bottom:24px;
}

.ts-v4-field-label{
  display:block;
  margin-bottom:9px;
  color:var(--ts-text);
  font-size:13px;
  font-weight:850;
}

.ts-v4-selected-categories{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:10px;
}

.ts-v4-category-chip{
  display:inline-flex;
  align-items:center;
  gap:7px;
  min-height:34px;
  padding:6px 10px;
  border:1px solid #c6d9c8;
  border-radius:999px;
  background:var(--ts-green-100);
  color:var(--ts-green-800);
  font:inherit;
  font-size:13px;
  font-weight:800;
  cursor:pointer;
}

.ts-v4-category-chip b{
  font-size:16px;
  line-height:1;
}

.ts-v4-category-combobox{
  display:flex;
  align-items:center;
  gap:9px;
  min-height:54px;
  padding:0 13px;
  border:1px solid #d7dcd7;
  border-radius:14px;
  background:#fcfcfa;
}

.ts-v4-category-combobox:focus-within{
  border-color:var(--ts-green-800);
  box-shadow:0 0 0 4px rgba(49,92,62,.11);
}

.ts-v4-category-combobox input{
  min-height:50px!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
}

.ts-v4-category-results,
.ts-v4-location-results{
  position:absolute;
  z-index:30;
  left:0;
  right:0;
  top:calc(100% - 18px);
  overflow:auto;
  max-height:280px;
  padding:8px;
  border:1px solid var(--ts-border);
  border-radius:15px;
  background:#fff;
  box-shadow:0 18px 45px rgba(28,59,39,.14);
}

.ts-v4-category-results button,
.ts-v4-location-results button{
  display:flex;
  width:100%;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  min-height:44px;
  padding:9px 11px;
  border:0;
  border-radius:10px;
  background:transparent;
  color:var(--ts-text);
  font:inherit;
  text-align:left;
  cursor:pointer;
}

.ts-v4-category-results button:hover,
.ts-v4-location-results button:hover{
  background:var(--ts-green-100);
  color:var(--ts-green-800);
}

.ts-v4-category-field small{
  display:block;
  margin-top:8px;
  color:var(--ts-muted);
}

.ts-v4-location-field{
  position:relative;
}

.ts-v4-location-results{
  top:calc(100% - 14px);
}

.ts-v4-location-results button{
  align-items:flex-start;
  flex-direction:column;
}

.ts-v4-location-results small{
  color:var(--ts-muted);
  font-size:11px;
}


/* ===== v4.0.3 — busca global AJAX ===== */

.ts-v3-global-search{
  position:relative;
}

.ts-v4-global-results{
  position:absolute;
  z-index:80;
  top:calc(100% + 10px);
  left:0;
  right:0;
  overflow:auto;
  max-height:430px;
  padding:8px;
  border:1px solid var(--ts-border);
  border-radius:16px;
  background:#fff;
  box-shadow:0 24px 60px rgba(28,59,39,.16);
}

.ts-v4-global-result{
  display:grid;
  grid-template-columns:52px 1fr;
  align-items:center;
  gap:12px;
  min-height:66px;
  padding:8px;
  border-radius:12px;
  color:var(--ts-text)!important;
  text-decoration:none!important;
}

.ts-v4-global-result:hover{
  background:var(--ts-green-100);
}

.ts-v4-global-result__image{
  width:52px;
  height:52px;
  display:grid;
  place-items:center;
  overflow:hidden;
  border-radius:11px;
  background:var(--ts-green-100);
  color:var(--ts-green-800);
}

.ts-v4-global-result__image img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.ts-v4-global-result__copy{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:4px;
}

.ts-v4-global-result__copy strong{
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.ts-v4-global-result__copy small{
  color:var(--ts-muted);
}

.ts-v4-global-empty{
  padding:18px;
  color:var(--ts-muted);
  text-align:center;
}


/* ===== v4.1.0 — catálogo AJAX ===== */

.ts-v4-catalog-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin-bottom:22px;
}

.ts-v4-catalog-search{
  display:flex;
  align-items:center;
  gap:9px;
  width:min(420px,100%);
  min-height:48px;
  padding:0 13px;
  border:1px solid var(--ts-border);
  border-radius:14px;
  background:#fff;
}

.ts-v4-catalog-search input{
  flex:1;
  min-width:0;
  height:46px;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  font:inherit;
}

.ts-v4-catalog-search input:focus{
  outline:0;
}

.ts-v4-catalog-tabs{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.ts-v4-catalog-tabs button{
  display:inline-flex;
  align-items:center;
  gap:7px;
  min-height:42px;
  padding:0 13px;
  border:1px solid var(--ts-border);
  border-radius:999px;
  background:#fff;
  color:var(--ts-muted);
  font:inherit;
  font-size:13px;
  font-weight:850;
  cursor:pointer;
}

.ts-v4-catalog-tabs button b{
  display:grid;
  place-items:center;
  min-width:22px;
  height:22px;
  padding:0 6px;
  border-radius:999px;
  background:#edf0ed;
  font-size:11px;
}

.ts-v4-catalog-tabs button.is-active{
  border-color:#bdd0bf;
  background:var(--ts-green-100);
  color:var(--ts-green-800);
}

.ts-v4-catalog-tabs button.is-active b{
  background:var(--ts-green-800);
  color:#fff;
}

.ts-v4-catalog-state{
  margin:18px 0;
  padding:20px;
  border:1px dashed var(--ts-border);
  border-radius:16px;
  color:var(--ts-muted);
  text-align:center;
}

.ts-v4-stock-line{
  display:block;
  margin:-10px 0 16px;
  color:var(--ts-muted);
}

@media(max-width:900px){
  .ts-v4-catalog-toolbar{
    align-items:stretch;
    flex-direction:column;
  }

  .ts-v4-catalog-search{
    width:100%;
  }
}


/* ===== v4.1.2 — status e preços refinados ===== */

.ts-v2-product-card__media .ts-v1-status{
  top:16px;
  right:16px;
  min-height:34px;
  padding:8px 13px;
  border:1px solid rgba(49,92,62,.12);
  border-radius:999px;
  font-size:12px;
  font-weight:900;
  letter-spacing:.01em;
  box-shadow:0 8px 24px rgba(28,59,39,.10);
}

.ts-v1-status--publish{
  background:#f6fbf6!important;
  color:#315c3e!important;
}

.ts-v1-status--draft{
  background:#fff7e8!important;
  color:#8a5a16!important;
  border-color:#efdcb7!important;
}

.ts-v1-status--pending{
  background:#eef4ff!important;
  color:#345b92!important;
  border-color:#cfdcf0!important;
}

.ts-v4-price-block{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:4px;
  min-width:0;
}

.ts-v4-price-old{
  color:var(--ts-muted);
  font-size:13px;
  line-height:1;
  text-decoration:line-through;
}

.ts-v4-price-current{
  color:var(--ts-green-950);
  font-size:21px;
  line-height:1.1;
  white-space:nowrap;
}

.ts-v4-price-empty{
  color:var(--ts-muted);
  font-size:14px;
  font-weight:700;
}

.ts-v2-product-card__footer{
  align-items:center;
}

.ts-v2-product-card__footer>a{
  flex:0 0 auto;
  white-space:nowrap;
}

@media(max-width:520px){
  .ts-v4-price-current{
    font-size:19px;
  }
}


/* ===== v4.1.3 — status em uma única linha ===== */

.ts-v2-product-card__media .ts-v1-status{
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  width:auto;
  min-width:118px;
  height:38px;
  padding:0 15px!important;
  white-space:nowrap;
  line-height:1;
}

.ts-v2-product-card__media .ts-v1-status::before{
  content:"";
  width:7px;
  height:7px;
  margin-right:8px;
  border-radius:50%;
  background:currentColor;
  opacity:.85;
}

.ts-v1-status--publish{
  color:#315c3e!important;
}

.ts-v1-status--draft{
  color:#8a5a16!important;
}

.ts-v1-status--pending{
  color:#345b92!important;
}

.ts-v2-product-card__footer{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:end;
  gap:18px;
}

.ts-v4-price-block{
  min-width:0;
}

.ts-v2-product-card__footer>a{
  align-self:end;
  margin-bottom:2px;
}

@media(max-width:520px){
  .ts-v2-product-card__media .ts-v1-status{
    min-width:108px;
    height:36px;
    padding:0 13px!important;
  }
}


/* ===== v4.1.4 — filtros de status realmente alinhados ===== */

.ts-v4-catalog-toolbar{
  display:grid!important;
  grid-template-columns:minmax(320px,1fr) auto;
  align-items:center!important;
  gap:24px!important;
}

.ts-v4-catalog-search{
  width:100%!important;
  max-width:620px;
}

.ts-v4-catalog-tabs{
  display:flex!important;
  flex-wrap:nowrap!important;
  align-items:center;
  justify-content:flex-end;
  gap:10px!important;
  min-width:0;
  white-space:nowrap;
}

.ts-v4-catalog-tabs button{
  flex:0 0 auto;
  min-width:auto!important;
  height:46px;
  padding:0 16px!important;
  white-space:nowrap;
}

.ts-v4-catalog-tabs button b{
  flex:0 0 auto;
}

@media(max-width:1180px){
  .ts-v4-catalog-toolbar{
    grid-template-columns:1fr!important;
    align-items:stretch!important;
  }

  .ts-v4-catalog-search{
    max-width:none;
  }

  .ts-v4-catalog-tabs{
    justify-content:flex-start;
    overflow-x:auto;
    padding-bottom:4px;
    scrollbar-width:thin;
  }
}


/* ===== Territórios Studio 5.0 — Aplicação SPA ===== */

.ts-v1-content{
  position:relative;
  transition:opacity .18s ease,transform .18s ease;
}

.ts-v1-shell.is-spa-loading .ts-v1-content{
  opacity:.42;
  transform:translateY(4px);
  pointer-events:none;
}

.ts-v1-shell.is-spa-loading .ts-v1-main::after{
  content:"";
  position:fixed;
  z-index:100;
  top:91px;
  left:280px;
  right:0;
  height:3px;
  background:linear-gradient(90deg,transparent,var(--ts-green-700),transparent);
  background-size:220px 100%;
  animation:ts5Loading 1s linear infinite;
}

@keyframes ts5Loading{
  from{background-position:-220px 0}
  to{background-position:calc(100vw + 220px) 0}
}

.ts-v1-nav a,
.ts-v1-brand{
  cursor:pointer;
}

.ts-v1-nav a.is-active{
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.04);
}

@media(max-width:960px){
  .ts-v1-shell.is-spa-loading .ts-v1-main::after{
    left:0;
  }
}


/* Studio 6 */
.ts-v6-toast{position:fixed;right:24px;bottom:24px;background:#315c3e;color:#fff;padding:14px 18px;border-radius:14px;box-shadow:0 10px 30px rgba(0,0,0,.2);opacity:0;transform:translateY(10px);transition:.25s;z-index:9999}
.ts-v6-toast.show{opacity:1;transform:none}
.ts-v2-product-card{transition:.22s ease}
.ts-v2-product-card:hover{transform:translateY(-3px);box-shadow:0 18px 42px rgba(0,0,0,.12)}
.ts-dropzone{border:2px dashed #9db8a5;border-radius:16px;padding:28px;text-align:center;background:#fafcfb;cursor:pointer}
.ts-dropzone.drag{border-color:#315c3e;background:#eef6f0}


/* ===== Territórios Studio 6.1 — editor lateral ===== */
.ts-v61-quick-edit{
  align-self:end;
  padding:0;
  border:0;
  background:transparent;
  color:var(--ts-green-800);
  font:inherit;
  font-size:13px;
  font-weight:900;
  cursor:pointer;
}

.ts-v61-quick-edit:hover{
  color:var(--ts-green-950);
}

.ts-v61-drawer-layer{
  position:fixed;
  z-index:10000;
  inset:0;
}

.ts-v61-drawer-backdrop{
  position:absolute;
  inset:0;
  width:100%;
  border:0;
  background:rgba(20,34,25,.38);
  opacity:0;
  transition:opacity .22s ease;
  cursor:default;
}

.ts-v61-drawer{
  position:absolute;
  top:0;
  right:0;
  width:min(560px,94vw);
  height:100%;
  overflow:auto;
  padding:0 28px 28px;
  background:#f8f8f4;
  box-shadow:-24px 0 70px rgba(24,56,36,.18);
  transform:translateX(102%);
  transition:transform .22s ease;
}

.ts-v61-drawer-layer.is-open .ts-v61-drawer-backdrop{
  opacity:1;
}

.ts-v61-drawer-layer.is-open .ts-v61-drawer{
  transform:none;
}

body.ts-v61-drawer-open{
  overflow:hidden;
}

.ts-v61-drawer__header{
  position:sticky;
  z-index:2;
  top:0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  min-height:92px;
  margin:0 -28px 24px;
  padding:18px 28px;
  border-bottom:1px solid var(--ts-border);
  background:rgba(255,255,255,.96);
  backdrop-filter:blur(12px);
}

.ts-v61-drawer__header h2{
  margin:5px 0 0;
  color:var(--ts-text);
  font-size:27px;
  line-height:1.05;
}

.ts-v61-drawer__close{
  display:grid;
  place-items:center;
  width:42px;
  height:42px;
  border:1px solid var(--ts-border);
  border-radius:12px;
  background:#fff;
  color:var(--ts-text);
  font-size:28px;
  cursor:pointer;
}

.ts-v61-drawer__loading{
  padding:28px;
  border:1px dashed var(--ts-border);
  border-radius:16px;
  color:var(--ts-muted);
  text-align:center;
}

.ts-v61-quick-form{
  display:grid;
  gap:20px;
}

.ts-v61-drawer__media{
  aspect-ratio:16/9;
  display:grid;
  place-items:center;
  overflow:hidden;
  border-radius:18px;
  background:var(--ts-green-100);
  color:var(--ts-green-800);
}

.ts-v61-drawer__media img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.ts-v61-drawer__media>.dashicons{
  width:44px;
  height:44px;
  font-size:44px;
}

.ts-v61-quick-form label{
  display:grid;
  gap:8px;
}

.ts-v61-quick-form label>span{
  color:var(--ts-text);
  font-size:13px;
  font-weight:850;
}

.ts-v61-quick-form input,
.ts-v61-quick-form select,
.ts-v61-quick-form textarea{
  width:100%;
  min-height:52px;
  padding:12px 14px;
  border:1px solid #d7dcd7;
  border-radius:13px;
  background:#fff;
  color:var(--ts-text);
  font:inherit;
}

.ts-v61-quick-form textarea{
  resize:vertical;
}

.ts-v61-quick-form input:focus,
.ts-v61-quick-form select:focus,
.ts-v61-quick-form textarea:focus{
  outline:0;
  border-color:var(--ts-green-800);
  box-shadow:0 0 0 4px rgba(49,92,62,.11);
}

.ts-v61-field-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}

.ts-v61-drawer__footer{
  position:sticky;
  bottom:-28px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin:8px -28px -28px;
  padding:18px 28px;
  border-top:1px solid var(--ts-border);
  background:rgba(255,255,255,.97);
  backdrop-filter:blur(12px);
}

.ts-v61-drawer__footer button{
  border:0;
  cursor:pointer;
}

.ts-v6-toast[data-type="error"]{
  background:#9d3832;
}

@media(max-width:600px){
  .ts-v61-drawer{
    width:100%;
    padding-inline:18px;
  }

  .ts-v61-drawer__header,
  .ts-v61-drawer__footer{
    margin-inline:-18px;
    padding-inline:18px;
  }

  .ts-v61-field-grid{
    grid-template-columns:1fr;
  }
}


/* ===== Territórios Studio 7.0 ===== */
.ts-v7-orders-toolbar{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:22px;
}
.ts-v7-orders-toolbar .ts-v4-catalog-search{margin-right:auto}
.ts-v7-view-toggle{
  min-height:42px;
  padding:0 14px;
  border:1px solid var(--ts-border);
  border-radius:12px;
  background:#fff;
  color:var(--ts-muted);
  font:inherit;
  font-weight:850;
  cursor:pointer;
}
.ts-v7-view-toggle.is-active{background:var(--ts-green-100);color:var(--ts-green-800);border-color:#bdd0bf}
.ts-v7-orders-board{
  display:grid;
  grid-template-columns:repeat(4,minmax(230px,1fr));
  gap:16px;
  overflow-x:auto;
  align-items:start;
}
.ts-v7-order-column{
  min-height:460px;
  padding:12px;
  border:1px solid var(--ts-border);
  border-radius:20px;
  background:#ecefe9;
  transition:.15s ease;
}
.ts-v7-order-column.is-over{background:#deeadf;box-shadow:inset 0 0 0 2px var(--ts-green-800)}
.ts-v7-order-column>header{
  display:flex;align-items:center;justify-content:space-between;padding:4px 4px 12px
}
.ts-v7-order-column>header span{
  display:grid;place-items:center;min-width:26px;height:26px;border-radius:999px;background:#fff;color:var(--ts-muted);font-size:12px;font-weight:850
}
.ts-v7-order-dropzone{display:grid;gap:10px;min-height:380px}
.ts-v7-order-card{
  display:flex;flex-direction:column;gap:5px;padding:15px;border:1px solid var(--ts-border);border-radius:15px;background:#fff;box-shadow:var(--ts-shadow-soft);cursor:grab
}
.ts-v7-order-card.is-dragging{opacity:.45}
.ts-v7-order-card__number{color:var(--ts-green-800);font-size:11px;font-weight:900}
.ts-v7-order-card small{color:var(--ts-muted)}
.ts-v7-order-card b{margin-top:6px;color:var(--ts-green-950)}
.ts-v7-order-table,.ts-v7-finance-list{display:grid;border:1px solid var(--ts-border);border-radius:18px;background:#fff;overflow:hidden}
.ts-v7-order-table article,.ts-v7-finance-list article{
  display:grid;grid-template-columns:90px 1fr 160px 130px;align-items:center;gap:16px;padding:17px 20px;border-bottom:1px solid var(--ts-border)
}
.ts-v7-order-table article:last-child,.ts-v7-finance-list article:last-child{border-bottom:0}
.ts-v7-order-table small,.ts-v7-finance-list small{color:var(--ts-muted)}
.ts-v7-full-search{max-width:620px;margin-bottom:22px}
.ts-v7-customers-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.ts-v7-customer-card{display:grid;grid-template-columns:48px 1fr;gap:14px;padding:20px}
.ts-v7-customer-avatar{display:grid;place-items:center;width:48px;height:48px;border-radius:50%;background:var(--ts-green-100);color:var(--ts-green-800);font-weight:900}
.ts-v7-customer-card>div{display:flex;flex-direction:column;gap:3px;min-width:0}
.ts-v7-customer-card>div small{color:var(--ts-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ts-v7-customer-card dl{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:6px 0 0}
.ts-v7-customer-card dl div{padding:10px;border-radius:11px;background:#f5f7f4}
.ts-v7-customer-card dt{color:var(--ts-muted);font-size:11px}
.ts-v7-customer-card dd{margin:3px 0 0;color:var(--ts-text);font-weight:850}
.ts-v7-finance-card{margin-top:22px}
.ts-v7-finance-card>[data-ts-finance-orders]{padding:0}
.ts-v7-analytics-grid{display:grid;gap:22px}
.ts-v7-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.ts-v7-metric-card{display:flex;flex-direction:column;padding:24px}
.ts-v7-metric-card strong{font-size:46px;line-height:1;color:var(--ts-green-950)}
.ts-v7-metric-card span{margin-top:8px;color:var(--ts-muted)}
.ts-v7-chart-card{padding:28px}
.ts-v7-chart-card h2{margin:7px 0 24px}
.ts-v7-bar-row{display:grid;grid-template-columns:minmax(130px,220px) 1fr 40px;align-items:center;gap:12px;margin:13px 0}
.ts-v7-bar-row>div{height:12px;border-radius:999px;background:#e8ece8;overflow:hidden}
.ts-v7-bar-row i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--ts-green-800),#82aa86)}
.ts-v7-bar-row b{text-align:right}
@media(max-width:1100px){
  .ts-v7-customers-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ts-v7-metrics{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:720px){
  .ts-v7-orders-toolbar{align-items:stretch;flex-wrap:wrap}
  .ts-v7-orders-toolbar .ts-v4-catalog-search{width:100%;max-width:none}
  .ts-v7-customers-grid{grid-template-columns:1fr}
  .ts-v7-order-table article,.ts-v7-finance-list article{grid-template-columns:70px 1fr}
  .ts-v7-order-table article small,.ts-v7-finance-list article small{grid-column:2}
  .ts-v7-metrics{grid-template-columns:1fr 1fr}
  .ts-v7-bar-row{grid-template-columns:1fr 44px}
  .ts-v7-bar-row>span{grid-column:1/-1}
}


/* ===== Territórios Studio 7.1 ===== */

/* Mantém todas as colunas dos produtos recentes dentro do card. */
.ts-v1-dashboard-grid{
  grid-template-columns:minmax(0,1.65fr) minmax(290px,.65fr);
}

.ts-v1-card--products,
.ts-v1-product-list,
.ts-v1-product-row,
.ts-v1-product-row__name{
  min-width:0;
}

.ts-v1-card--products{
  overflow:hidden;
}

.ts-v1-product-row{
  width:100%;
  box-sizing:border-box;
  grid-template-columns:58px minmax(0,1fr) minmax(96px,auto) minmax(105px,125px) 76px;
  gap:12px;
  padding:18px 20px;
}

.ts-v1-product-row__name strong,
.ts-v1-product-row__name span{
  overflow:hidden;
  text-overflow:ellipsis;
}

.ts-v1-product-row__name strong{
  white-space:nowrap;
}

.ts-v1-product-row__name span{
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
}

.ts-v1-product-row .ts-v1-status{
  max-width:100%;
  white-space:nowrap;
}

.ts-v1-product-row .ts-v1-price{
  min-width:0;
  text-align:right;
  line-height:1.25;
}

.ts-v1-product-row .ts-v1-price del,
.ts-v1-product-row .ts-v1-price ins{
  display:block;
  white-space:nowrap;
}

.ts-v1-product-row .ts-v1-price ins{
  text-decoration:none;
}

.ts-v1-row-action{
  justify-self:end;
  white-space:nowrap;
}

.ts-v71-delete-product{
  padding:0;
  border:0;
  background:transparent;
  color:#a13e37;
  font:inherit;
  font-size:13px;
  font-weight:850;
  cursor:pointer;
}

.ts-v71-delete-product:hover{
  color:#7f2924;
  text-decoration:underline;
}

.ts-v71-delete-product:disabled{
  opacity:.55;
  cursor:wait;
}

.ts-v71-drawer-actions{
  display:flex;
  align-items:center;
  gap:12px;
}

@media(max-width:1250px){
  .ts-v1-product-row{
    grid-template-columns:54px minmax(0,1fr) 105px 110px;
  }

  .ts-v1-product-row .ts-v1-row-action{
    grid-column:2/-1;
    justify-self:end;
    margin-top:-4px;
  }
}

@media(max-width:1060px){
  .ts-v1-dashboard-grid{
    grid-template-columns:1fr;
  }

  .ts-v1-product-row{
    grid-template-columns:58px minmax(0,1fr) 110px 120px 76px;
  }

  .ts-v1-product-row .ts-v1-row-action{
    grid-column:auto;
    margin-top:0;
  }
}

@media(max-width:720px){
  .ts-v1-product-row{
    grid-template-columns:52px minmax(0,1fr) auto;
    gap:10px;
    padding:16px;
  }

  .ts-v1-product-row .ts-v1-status{
    grid-column:2;
    justify-self:start;
  }

  .ts-v1-product-row .ts-v1-price{
    grid-column:2;
    text-align:left;
  }

  .ts-v1-product-row .ts-v1-row-action{
    grid-column:3;
    grid-row:2/4;
    align-self:center;
  }

  .ts-v61-drawer__footer{
    align-items:stretch;
    flex-direction:column-reverse;
  }

  .ts-v71-drawer-actions{
    width:100%;
    justify-content:space-between;
  }
}


/* ===== Territórios Studio 7.1.1 ===== */

/* Kanban: quatro colunas completas dentro da área útil. */
.ts-v7-orders-board{
  width:100%;
  max-width:100%;
  box-sizing:border-box;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
  padding-right:2px;
  overflow-x:hidden;
}

.ts-v7-order-column{
  min-width:0;
  width:100%;
  box-sizing:border-box;
}

.ts-v7-order-column>header{
  min-width:0;
}

.ts-v7-order-column>header strong{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

/* Preço promocional: mantém a mesma linha-base dos preços comuns. */
.ts-v1-product-row .ts-v1-price{
  display:flex;
  min-height:54px;
  flex-direction:column;
  align-items:flex-end;
  justify-content:center;
  gap:3px;
  white-space:nowrap;
}

.ts-v1-product-row .ts-v1-price ins{
  order:1;
  display:block;
  margin:0;
  color:var(--ts-green-900);
  font-size:inherit;
  font-weight:inherit;
  line-height:1.15;
  text-decoration:none;
}

.ts-v1-product-row .ts-v1-price del{
  order:2;
  display:block;
  margin:0;
  color:#77847a;
  font-size:.76em;
  font-weight:700;
  line-height:1.1;
  text-decoration-thickness:1.5px;
}

.ts-v1-product-row .ts-v1-price .woocommerce-Price-amount{
  white-space:nowrap;
}

@media(max-width:1280px){
  .ts-v7-orders-board{
    grid-template-columns:repeat(4,minmax(210px,1fr));
    overflow-x:auto;
    padding-bottom:10px;
    scroll-snap-type:x proximity;
  }

  .ts-v7-order-column{
    scroll-snap-align:start;
  }
}

@media(max-width:900px){
  .ts-v7-orders-board{
    grid-template-columns:repeat(4,minmax(260px,82vw));
  }
}

@media(max-width:720px){
  .ts-v1-product-row .ts-v1-price{
    min-height:auto;
    align-items:flex-start;
  }
}


/* ===== Territórios Studio 7.1.2 ===== */

/* Alinha todos os preços pela borda direita da coluna. */
.ts-v1-product-row .ts-v1-price{
  width:100%;
  justify-self:stretch;
  align-items:flex-end;
  text-align:right;
}

.ts-v1-product-row .ts-v1-price > *,
.ts-v1-product-row .ts-v1-price del,
.ts-v1-product-row .ts-v1-price ins,
.ts-v1-product-row .ts-v1-price .woocommerce-Price-amount{
  margin-left:auto;
  text-align:right;
}

@media(max-width:720px){
  .ts-v1-product-row .ts-v1-price{
    align-items:flex-start;
    text-align:left;
  }

  .ts-v1-product-row .ts-v1-price > *,
  .ts-v1-product-row .ts-v1-price del,
  .ts-v1-product-row .ts-v1-price ins,
  .ts-v1-product-row .ts-v1-price .woocommerce-Price-amount{
    margin-left:0;
    text-align:left;
  }
}


/* ===== Territórios Studio 8.0 ===== */

.ts-v8-marketing-stats{
  grid-template-columns:repeat(3,minmax(0,1fr));
  margin-bottom:22px;
}

.ts-v8-coupon-list{
  display:grid;
}

.ts-v8-coupon-row{
  display:grid;
  grid-template-columns:minmax(190px,1fr) 95px 90px 180px 68px;
  align-items:center;
  gap:16px;
  min-width:0;
  padding:18px 22px;
  border-bottom:1px solid var(--ts-border);
}

.ts-v8-coupon-row:last-child{border-bottom:0}
.ts-v8-coupon-row>div{display:flex;min-width:0;flex-direction:column;gap:3px}
.ts-v8-coupon-row>div strong{text-transform:uppercase;letter-spacing:.05em}
.ts-v8-coupon-row small{color:var(--ts-muted)}
.ts-v8-coupon-row button{
  padding:0;border:0;background:transparent;color:#a13e37;font:inherit;font-size:12px;font-weight:850;cursor:pointer
}

.ts-v8-modal-layer{position:fixed;z-index:11000;inset:0}
.ts-v8-modal-backdrop{
  position:absolute;inset:0;width:100%;border:0;background:rgba(20,34,25,.42);opacity:0;transition:.18s ease
}
.ts-v8-modal{
  position:absolute;top:50%;left:50%;width:min(620px,92vw);max-height:90vh;overflow:auto;
  padding:28px;border-radius:22px;background:#f8f8f4;box-shadow:0 30px 90px rgba(20,34,25,.25);
  opacity:0;transform:translate(-50%,-46%) scale(.98);transition:.18s ease
}
.ts-v8-modal-layer.is-open .ts-v8-modal-backdrop{opacity:1}
.ts-v8-modal-layer.is-open .ts-v8-modal{opacity:1;transform:translate(-50%,-50%) scale(1)}
body.ts-v8-modal-open{overflow:hidden}
.ts-v8-modal>header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:22px}
.ts-v8-modal>header h2{margin:5px 0 0;font-size:28px}
.ts-v8-modal>header>button{display:grid;place-items:center;width:42px;height:42px;border:1px solid var(--ts-border);border-radius:12px;background:#fff;font-size:26px;cursor:pointer}
.ts-v8-modal form{display:grid;gap:18px}
.ts-v8-modal label{display:grid;gap:8px}
.ts-v8-modal label>span{font-size:13px;font-weight:850}
.ts-v8-modal input,.ts-v8-modal select{width:100%;min-height:52px;padding:10px 13px;border:1px solid #d7dcd7;border-radius:13px;background:#fff;font:inherit}
.ts-v8-modal footer{display:flex;justify-content:flex-end;gap:12px;margin-top:6px}
.ts-v8-modal footer button{cursor:pointer}

.ts-v8-onboarding-hero{
  display:flex;align-items:center;justify-content:space-between;gap:30px;padding:32px;margin-bottom:22px
}
.ts-v8-onboarding-hero h2{margin:7px 0 5px;font-size:38px}
.ts-v8-onboarding-hero p{margin:0;color:var(--ts-muted)}
.ts-v8-progress-ring{
  --progress:0;
  display:grid;place-items:center;width:128px;height:128px;border-radius:50%;
  background:conic-gradient(var(--ts-green-800) calc(var(--progress) * 1%),#e5eae5 0)
}
.ts-v8-progress-ring:before{
  content:"";grid-area:1/1;width:96px;height:96px;border-radius:50%;background:#fff
}
.ts-v8-progress-ring strong{z-index:1;grid-area:1/1;font-size:24px;color:var(--ts-green-950)}
.ts-v8-onboarding-list{display:grid;gap:12px}
.ts-v8-onboarding-list article{
  display:grid;grid-template-columns:48px minmax(0,1fr) auto;align-items:center;gap:16px;padding:18px 22px
}
.ts-v8-onboarding-list article.is-done{background:#f5faf5}
.ts-v8-step-number{
  display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:var(--ts-green-100);color:var(--ts-green-800);font-weight:900
}
.ts-v8-onboarding-list article.is-done .ts-v8-step-number{background:var(--ts-green-800);color:#fff}
.ts-v8-onboarding-list article>div{display:flex;flex-direction:column;gap:3px}
.ts-v8-onboarding-list article small{color:var(--ts-muted)}
.ts-v8-onboarding-list article>a{color:var(--ts-green-800)!important;font-weight:850;text-decoration:none!important;white-space:nowrap}

@media(max-width:900px){
  .ts-v8-marketing-stats{grid-template-columns:1fr}
  .ts-v8-coupon-row{grid-template-columns:1fr auto}
  .ts-v8-coupon-row>b,.ts-v8-coupon-row>small{grid-column:1}
  .ts-v8-coupon-row>button{grid-column:2;grid-row:1}
}

@media(max-width:620px){
  .ts-v8-onboarding-hero{align-items:flex-start;flex-direction:column}
  .ts-v8-onboarding-list article{grid-template-columns:44px 1fr}
  .ts-v8-onboarding-list article>a{grid-column:2}
  .ts-v61-field-grid{grid-template-columns:1fr}
}


/* ===== Territórios Studio 8.1 — Meu empreendimento ===== */

.ts-v81-enterprise-head{align-items:flex-end}
.ts-v81-head-actions{display:flex;align-items:center;gap:14px}
.ts-v81-save-status{color:var(--ts-muted);font-size:12px;font-weight:750}
.ts-v81-save-status[data-state="saving"]{color:#826b28}
.ts-v81-save-status[data-state="saved"]{color:var(--ts-green-800)}
.ts-v81-save-status[data-state="error"]{color:#a13e37}

.ts-v81-enterprise-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(310px,390px);
  gap:24px;
  align-items:start;
}

.ts-v81-editor{overflow:hidden}
.ts-v81-tabs{
  display:flex;
  gap:4px;
  overflow-x:auto;
  padding:12px;
  border-bottom:1px solid var(--ts-border);
  background:#f7f8f5;
}
.ts-v81-tabs button{
  flex:0 0 auto;
  min-height:42px;
  padding:0 14px;
  border:0;
  border-radius:11px;
  background:transparent;
  color:var(--ts-muted);
  font:inherit;
  font-size:13px;
  font-weight:850;
  cursor:pointer;
}
.ts-v81-tabs button.is-active{background:#fff;color:var(--ts-green-800);box-shadow:0 2px 10px rgba(28,59,39,.08)}

.ts-v81-enterprise-form{display:block}
.ts-v81-panel{display:none;padding:30px}
.ts-v81-panel.is-active{display:grid;gap:20px}
.ts-v81-section-intro{margin-bottom:4px}
.ts-v81-section-intro h2{margin:7px 0 7px;font-size:29px;line-height:1.1}
.ts-v81-section-intro p{margin:0;color:var(--ts-muted)}

.ts-v81-enterprise-form label{display:grid;gap:8px}
.ts-v81-enterprise-form label>span,.ts-v81-field-title{color:var(--ts-text);font-size:13px;font-weight:850}
.ts-v81-enterprise-form input,.ts-v81-enterprise-form textarea{
  width:100%;min-height:52px;padding:12px 14px;border:1px solid #d7dcd7;border-radius:13px;background:#fff;color:var(--ts-text);font:inherit
}
.ts-v81-enterprise-form textarea{resize:vertical;line-height:1.55}
.ts-v81-enterprise-form input:focus,.ts-v81-enterprise-form textarea:focus{
  outline:0;border-color:var(--ts-green-800);box-shadow:0 0 0 4px rgba(49,92,62,.11)
}

.ts-v81-upload-grid{display:grid;grid-template-columns:minmax(190px,.65fr) minmax(0,1.35fr);gap:18px}
.ts-v81-upload-grid>div{display:grid;gap:9px}
.ts-v81-dropzone{
  position:relative;display:grid;place-items:center;align-content:center;gap:7px;min-height:220px;padding:18px;
  overflow:hidden;border:2px dashed #bfd0c1;border-radius:18px;background:#f7faf7;color:var(--ts-green-800);text-align:center;cursor:pointer
}
.ts-v81-dropzone--logo{aspect-ratio:1/1;min-height:0}
.ts-v81-dropzone--cover{aspect-ratio:1920/700;min-height:0}
.ts-v81-dropzone.is-dragging{border-color:var(--ts-green-800);background:#eaf3eb}
.ts-v81-dropzone input{position:absolute;width:1px;height:1px;opacity:0}
.ts-v81-dropzone small{color:var(--ts-muted)}
.ts-v81-dropzone>[data-ts-enterprise-image]{position:absolute;inset:0}
.ts-v81-dropzone>[data-ts-enterprise-image]:empty{display:none}
.ts-v81-dropzone img{width:100%;height:100%;object-fit:cover}
.ts-v81-dropzone--logo img{object-fit:contain;padding:16px;background:#fff}

.ts-v81-form-footer{
  position:sticky;z-index:3;bottom:0;display:flex;align-items:center;justify-content:space-between;gap:18px;
  padding:18px 30px;border-top:1px solid var(--ts-border);background:rgba(255,255,255,.97);backdrop-filter:blur(12px)
}
.ts-v81-form-footer span{color:var(--ts-muted);font-size:12px}
.ts-v81-form-footer button{border:0;cursor:pointer}

.ts-v81-preview-wrap{position:sticky;top:100px;display:grid;gap:15px}
.ts-v81-preview-label{display:flex;justify-content:space-between;align-items:center}
.ts-v81-preview-label>span:last-child{color:var(--ts-muted);font-size:11px}

.ts-v81-preview{overflow:hidden;border:1px solid var(--ts-border);border-radius:24px;background:#fff;box-shadow:var(--ts-shadow)}
.ts-v81-preview-cover{position:relative;display:grid;place-items:center;aspect-ratio:1920/700;background:#dfe9df;color:#66806b;font-size:12px}
.ts-v81-preview-cover img{width:100%;height:100%;object-fit:cover}
.ts-v81-preview-content{position:relative;padding:50px 24px 24px}
.ts-v81-preview-logo{
  position:absolute;top:-38px;left:22px;display:grid;place-items:center;width:76px;height:76px;overflow:hidden;
  border:7px solid #fff;border-radius:20px;background:#edf4ed;color:var(--ts-green-800)
}
.ts-v81-preview-logo img{width:100%;height:100%;object-fit:cover}
.ts-v81-preview-location{display:block;margin-bottom:8px;color:var(--ts-muted);font-size:12px}
.ts-v81-preview h2{margin:0 0 9px;font-size:28px;line-height:1.05}
.ts-v81-preview p{min-height:48px;margin:0 0 18px;color:var(--ts-muted);line-height:1.5}
.ts-v81-preview-actions{display:flex;gap:8px}
.ts-v81-preview-actions span{flex:1;padding:10px 9px;border-radius:10px;background:var(--ts-green-800);color:#fff;font-size:10px;font-weight:850;text-align:center}
.ts-v81-preview-actions span+span{border:1px solid var(--ts-green-800);background:#fff;color:var(--ts-green-800)}

.ts-v81-completion-card{padding:22px}
.ts-v81-completion-card h3{margin:7px 0 13px;font-size:20px}
.ts-v81-completion-card h3 strong{font-size:30px;color:var(--ts-green-800)}
.ts-v81-completion-card>div{height:9px;border-radius:999px;background:#e5eae5;overflow:hidden}
.ts-v81-completion-card i{display:block;width:0;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--ts-green-800),#82aa86);transition:width .25s ease}
.ts-v81-completion-card p{margin:13px 0 0;color:var(--ts-muted);font-size:13px;line-height:1.5}

@media(max-width:1100px){
  .ts-v81-enterprise-layout{grid-template-columns:1fr}
  .ts-v81-preview-wrap{position:static;grid-template-columns:minmax(0,1fr) minmax(260px,.65fr);align-items:start}
}

@media(max-width:720px){
  .ts-v81-enterprise-head{align-items:flex-start}
  .ts-v81-head-actions{align-items:flex-start;flex-direction:column}
  .ts-v81-panel{padding:22px 18px}
  .ts-v81-upload-grid{grid-template-columns:1fr}
  .ts-v81-dropzone--logo{max-width:250px}
  .ts-v81-form-footer{align-items:stretch;flex-direction:column;padding:16px 18px}
  .ts-v81-form-footer button{width:100%}
  .ts-v81-preview-wrap{grid-template-columns:1fr}
}


/* ===== Territórios Studio 8.2 — localização guiada ===== */

.ts-v82-municipality-field>small,
.ts-v82-postcode-row+small{
  color:var(--ts-muted);
  font-size:12px;
}

.ts-v82-autocomplete{position:relative}
.ts-v82-autocomplete>.dashicons{
  position:absolute;z-index:2;top:50%;left:15px;transform:translateY(-50%);color:var(--ts-green-800)
}
.ts-v82-autocomplete>input{padding-left:46px}
.ts-v82-autocomplete-results{
  position:absolute;z-index:30;top:calc(100% + 8px);left:0;right:0;max-height:330px;overflow:auto;
  padding:7px;border:1px solid var(--ts-border);border-radius:15px;background:#fff;box-shadow:0 20px 50px rgba(28,59,39,.16)
}
.ts-v82-autocomplete-results button{
  display:flex;width:100%;align-items:center;justify-content:space-between;gap:16px;padding:11px 12px;
  border:0;border-radius:10px;background:transparent;color:var(--ts-text);font:inherit;text-align:left;cursor:pointer
}
.ts-v82-autocomplete-results button:hover{background:var(--ts-green-100)}
.ts-v82-autocomplete-results button small{color:var(--ts-muted);font-size:11px;text-align:right}
.ts-v82-no-results{padding:16px;color:var(--ts-muted);text-align:center}

.ts-v82-territory-card{
  display:grid;grid-template-columns:44px 1fr;gap:14px;padding:18px;border:1px solid #c8d8ca;border-radius:16px;background:#f0f7f1
}
.ts-v82-territory-card>.dashicons{
  display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:var(--ts-green-800);color:#fff;font-size:22px
}
.ts-v82-territory-card>div{display:flex;flex-direction:column;gap:3px}
.ts-v82-territory-card small{color:var(--ts-muted)}
.ts-v82-territory-card strong{color:var(--ts-green-800);font-size:19px}
.ts-v82-territory-card p{margin:4px 0 0;color:var(--ts-muted);font-size:12px;line-height:1.45}

.ts-v82-postcode-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}
.ts-v82-postcode-row button,.ts-v82-map-head button{
  min-height:52px;padding:0 15px;border:1px solid var(--ts-green-800);border-radius:12px;background:#fff;color:var(--ts-green-800);
  font:inherit;font-size:12px;font-weight:850;cursor:pointer
}
.ts-v82-postcode-row button:hover,.ts-v82-map-head button:hover{background:var(--ts-green-100)}

.ts-v82-map-section{display:grid;gap:10px}
.ts-v82-map-head{display:flex;align-items:center;justify-content:space-between;gap:18px}
.ts-v82-map-head>div{display:flex;flex-direction:column;gap:3px}
.ts-v82-map-head small{color:var(--ts-muted);font-size:12px}
.ts-v82-map{height:360px;overflow:hidden;border:1px solid var(--ts-border);border-radius:18px;background:#eaf0e9}
.ts-v82-map-placeholder{display:grid;height:100%;place-items:center;align-content:center;gap:8px;color:var(--ts-muted);text-align:center}
.ts-v82-map-placeholder>.dashicons{width:36px;height:36px;color:var(--ts-green-800);font-size:36px}
.ts-v82-map .leaflet-control-attribution{font-size:9px}

.ts-v81-enterprise-form label>span em{color:var(--ts-muted);font-size:11px;font-style:normal;font-weight:500}

@media(max-width:720px){
  .ts-v82-map-head{align-items:stretch;flex-direction:column}
  .ts-v82-map-head button{width:100%}
  .ts-v82-map{height:310px}
  .ts-v82-postcode-row{grid-template-columns:1fr}
}


/* ===== Territórios Studio 9.0 — experiência guiada ===== */

.ts-v9-profile-progress{
  display:grid;
  grid-template-columns:auto minmax(220px,1fr) auto;
  align-items:center;
  gap:18px;
  margin-bottom:22px;
  padding:18px 22px;
  border:1px solid #c8d8ca;
  border-radius:18px;
  background:linear-gradient(135deg,#f7faf7,#eef5ef);
}
.ts-v9-profile-progress>div:first-child{display:flex;flex-direction:column;gap:3px}
.ts-v9-profile-progress strong{font-size:20px;color:var(--ts-green-950)}
.ts-v9-profile-progress__bar{height:11px;overflow:hidden;border-radius:999px;background:#dce6dd}
.ts-v9-profile-progress__bar i{display:block;width:0;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--ts-green-800),#8bb28f);transition:width .3s ease}
.ts-v9-profile-progress small{max-width:240px;color:var(--ts-muted);font-size:12px;line-height:1.4;text-align:right}

.ts-v9-category-section{display:grid;gap:18px}
.ts-v9-guided-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px}
.ts-v9-guided-heading h3,.ts-v9-families-section h3{margin:5px 0 5px;font-size:24px;line-height:1.1}
.ts-v9-guided-heading p,.ts-v9-families-section p{margin:0;color:var(--ts-muted);font-size:13px;line-height:1.5}
.ts-v9-category-search{position:relative;flex:0 0 230px}
.ts-v9-category-search .dashicons{position:absolute;top:50%;left:13px;transform:translateY(-50%);color:var(--ts-green-800)}
.ts-v9-category-search input{padding-left:42px}

.ts-v9-category-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}
.ts-v9-category-grid button{
  display:grid;
  grid-template-columns:42px 1fr;
  grid-template-rows:auto auto;
  align-items:center;
  gap:3px 10px;
  min-height:104px;
  padding:14px;
  border:1px solid var(--ts-border);
  border-radius:16px;
  background:#fff;
  color:var(--ts-text);
  font:inherit;
  text-align:left;
  cursor:pointer;
  transition:.18s ease;
}
.ts-v9-category-grid button:hover{transform:translateY(-2px);border-color:#b6cab8;box-shadow:0 10px 24px rgba(28,59,39,.08)}
.ts-v9-category-grid button.is-selected{border-color:var(--ts-green-800);background:#eef6ef;box-shadow:inset 0 0 0 1px var(--ts-green-800)}
.ts-v9-category-grid button>span{grid-row:1/3;display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:#edf3ed;font-size:22px}
.ts-v9-category-grid button strong{font-size:13px;line-height:1.2}
.ts-v9-category-grid button small{color:var(--ts-muted);font-size:10px;line-height:1.35}
.ts-v9-category-grid button.is-selected strong{color:var(--ts-green-800)}

.ts-v9-category-impact{
  display:grid;
  grid-template-columns:36px 1fr;
  align-items:center;
  gap:12px;
  padding:14px 16px;
  border-radius:14px;
  background:#f0f7f1;
  color:var(--ts-green-800);
}
.ts-v9-category-impact>.dashicons{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:var(--ts-green-800);color:#fff}
.ts-v9-category-impact p{margin:0;font-size:12px;line-height:1.45}

.ts-v9-families-section{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  padding:20px;
  border:1px solid var(--ts-border);
  border-radius:16px;
  background:#f8faf7;
}
.ts-v9-family-input{
  position:relative;
  display:flex!important;
  flex:0 0 170px;
  align-items:center;
}
.ts-v9-family-input input{padding-right:72px!important;font-size:22px!important;font-weight:850}
.ts-v9-family-input span{position:absolute;right:14px;color:var(--ts-muted)!important;font-size:12px!important;font-weight:700!important}

.ts-v81-panel[data-ts-enterprise-panel="location"]>.ts-v61-field-grid{
  align-items:start;
}
.ts-v81-panel[data-ts-enterprise-panel="location"] label{
  align-content:start;
}

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

@media(max-width:720px){
  .ts-v9-profile-progress{grid-template-columns:1fr}
  .ts-v9-profile-progress small{text-align:left}
  .ts-v9-guided-heading{align-items:stretch;flex-direction:column}
  .ts-v9-category-search{flex-basis:auto;width:100%}
  .ts-v9-category-grid{grid-template-columns:1fr}
  .ts-v9-families-section{align-items:flex-start;flex-direction:column}
  .ts-v9-family-input{width:100%;flex-basis:auto}
}


/* ===== Territórios Studio 9.1 ===== */

/* Categorias com mais respiro: duas colunas. */
.ts-v9-guided-heading{
  align-items:flex-start;
}

.ts-v9-category-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
}

.ts-v9-category-grid button{
  min-height:128px;
  grid-template-columns:54px minmax(0,1fr);
  gap:5px 14px;
  padding:20px;
}

.ts-v9-category-grid button>span{
  width:54px;
  height:54px;
  border-radius:15px;
  font-size:27px;
}

.ts-v9-category-grid button strong{
  font-size:16px;
}

.ts-v9-category-grid button small{
  font-size:12px;
  line-height:1.45;
}

.ts-v91-selected-categories{
  display:grid;
  gap:11px;
  padding:16px;
  border:1px solid #c8d8ca;
  border-radius:15px;
  background:#f4f9f4;
}

.ts-v91-selected-categories>div:first-child{
  display:flex;
  align-items:center;
  gap:9px;
  color:var(--ts-green-800);
}

.ts-v91-selected-categories>div:first-child>.dashicons{
  display:grid;
  place-items:center;
  width:30px;
  height:30px;
  border-radius:50%;
  background:var(--ts-green-800);
  color:#fff;
}

.ts-v91-selected-categories>[data-ts-selected-category-list]{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.ts-v91-selected-categories button{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:36px;
  padding:0 11px;
  border:1px solid #b8ccb9;
  border-radius:999px;
  background:#fff;
  color:var(--ts-green-800);
  font:inherit;
  font-size:12px;
  font-weight:800;
  cursor:pointer;
}

.ts-v91-selected-categories button span{
  font-size:18px;
  line-height:1;
}

/* Horário de atendimento guiado. */
.ts-v91-hours-section{
  display:grid;
  gap:18px;
}

.ts-v91-hours-section .ts-v81-section-intro h3{
  margin:6px 0;
  font-size:24px;
}

.ts-v91-hours-list{
  display:grid;
  overflow:hidden;
  border:1px solid var(--ts-border);
  border-radius:17px;
  background:#fff;
}

.ts-v91-hours-row{
  display:grid;
  grid-template-columns:minmax(180px,1fr) 145px 145px;
  align-items:center;
  gap:14px;
  padding:15px 17px;
  border-bottom:1px solid var(--ts-border);
  background:#fafbf9;
  transition:.16s ease;
}

.ts-v91-hours-row:last-child{
  border-bottom:0;
}

.ts-v91-hours-row.is-enabled{
  background:#f1f7f2;
}

.ts-v91-day-check{
  display:flex!important;
  align-items:center;
  grid-template-columns:none!important;
  gap:11px!important;
  cursor:pointer;
}

.ts-v91-day-check input{
  width:21px!important;
  min-height:21px!important;
  height:21px;
  margin:0;
  accent-color:var(--ts-green-800);
}

.ts-v91-day-check span{
  font-size:14px!important;
}

.ts-v91-hours-row>label:not(.ts-v91-day-check){
  gap:5px;
}

.ts-v91-hours-row>label:not(.ts-v91-day-check)>span{
  color:var(--ts-muted);
  font-size:10px;
}

.ts-v91-hours-row input[type="time"]{
  min-height:44px;
  padding:8px 10px;
  background:#fff;
}

.ts-v91-hours-row input[type="time"]:disabled{
  opacity:.45;
  background:#f0f2ef;
}

.ts-v91-hours-summary{
  display:grid;
  grid-template-columns:36px 1fr;
  align-items:start;
  gap:11px;
  padding:14px 16px;
  border-radius:14px;
  background:#eef5ef;
  color:var(--ts-green-800);
}

.ts-v91-hours-summary>.dashicons{
  display:grid;
  place-items:center;
  width:36px;
  height:36px;
  border-radius:50%;
  background:var(--ts-green-800);
  color:#fff;
}

.ts-v91-hours-summary p{
  margin:6px 0 0;
  font-size:12px;
  line-height:1.55;
}

@media(max-width:800px){
  .ts-v91-hours-row{
    grid-template-columns:1fr 1fr;
  }

  .ts-v91-day-check{
    grid-column:1/-1;
  }
}

@media(max-width:620px){
  .ts-v9-category-grid{
    grid-template-columns:1fr;
  }

  .ts-v91-hours-row{
    grid-template-columns:1fr;
  }

  .ts-v91-day-check{
    grid-column:auto;
  }
}


/* ===== Territórios Studio 9.1.1 ===== */

/* Ajuste fino: tabela de horários sem corte. */
.ts-v91-hours-list,
.ts-v91-hours-row,
.ts-v91-hours-row>*{
  min-width:0;
  box-sizing:border-box;
}

.ts-v91-hours-row{
  grid-template-columns:minmax(155px,1.15fr) minmax(105px,.8fr) minmax(105px,.8fr);
  width:100%;
  gap:12px;
}

.ts-v91-hours-row input[type="time"]{
  width:100%;
  max-width:100%;
  min-width:0;
  box-sizing:border-box;
}

/* Configurações próprias do Studio. */
.ts-v911-settings-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(270px,340px);
  align-items:start;
  gap:22px;
}

.ts-v911-account-card{
  overflow:hidden;
  padding:0;
}

.ts-v911-account-card>.ts-v81-section-intro{
  padding:28px 30px 0;
}

.ts-v911-account-card>.ts-v81-section-intro h2{
  margin:7px 0;
  font-size:31px;
}

.ts-v911-account-card>.ts-v81-section-intro p{
  margin:0;
  color:var(--ts-muted);
}

.ts-v911-account-form{
  display:grid;
  gap:22px;
  padding:26px 30px 0;
}

.ts-v911-account-form label{
  display:grid;
  gap:8px;
}

.ts-v911-account-form label>span{
  font-size:13px;
  font-weight:850;
}

.ts-v911-account-form label>small{
  color:var(--ts-muted);
  font-size:11px;
  line-height:1.4;
}

.ts-v911-account-form input{
  width:100%;
  min-height:52px;
  padding:12px 14px;
  border:1px solid #d7dcd7;
  border-radius:13px;
  background:#fff;
  color:var(--ts-text);
  font:inherit;
}

.ts-v911-account-form input:focus{
  outline:0;
  border-color:var(--ts-green-800);
  box-shadow:0 0 0 4px rgba(49,92,62,.11);
}

.ts-v911-account-identity{
  display:flex;
  align-items:center;
  gap:14px;
  padding:16px;
  border-radius:15px;
  background:#f2f7f2;
}

.ts-v911-avatar{
  display:grid;
  place-items:center;
  width:54px;
  height:54px;
  flex:0 0 54px;
  border-radius:50%;
  background:var(--ts-green-800);
  color:#fff;
  font-size:22px;
  font-weight:900;
}

.ts-v911-account-identity>div:last-child{
  display:flex;
  flex-direction:column;
  gap:3px;
}

.ts-v911-account-identity small{
  color:var(--ts-muted);
}

.ts-v911-password-block{
  display:grid;
  gap:17px;
  padding:21px;
  border:1px solid var(--ts-border);
  border-radius:17px;
  background:#fafbf9;
}

.ts-v911-password-block h3{
  margin:5px 0;
  font-size:23px;
}

.ts-v911-password-block p{
  margin:0;
  color:var(--ts-muted);
  font-size:12px;
}

.ts-v911-password-help{
  display:grid;
  grid-template-columns:36px 1fr;
  align-items:start;
  gap:11px;
  padding:13px 14px;
  border-radius:13px;
  background:#eef5ef;
}

.ts-v911-password-help>.dashicons{
  display:grid;
  place-items:center;
  width:36px;
  height:36px;
  border-radius:50%;
  background:var(--ts-green-800);
  color:#fff;
}

.ts-v911-password-help p{
  margin:5px 0 0;
  line-height:1.5;
}

.ts-v911-account-footer{
  position:sticky;
  bottom:0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin:0 -30px;
  padding:18px 30px;
  border-top:1px solid var(--ts-border);
  background:rgba(255,255,255,.97);
  backdrop-filter:blur(12px);
}

.ts-v911-account-footer span{
  color:var(--ts-muted);
  font-size:12px;
}

.ts-v911-account-footer button{
  border:0;
  cursor:pointer;
}

.ts-v911-settings-side{
  display:grid;
  gap:16px;
}

.ts-v911-settings-side .ts-v1-card{
  padding:22px;
}

.ts-v911-settings-side h3{
  margin:7px 0 8px;
  font-size:23px;
}

.ts-v911-settings-side p{
  margin:0;
  color:var(--ts-muted);
  font-size:13px;
  line-height:1.55;
}

.ts-v911-logout-card a{
  display:inline-flex;
  justify-content:center;
  width:100%;
  margin-top:18px;
  padding:12px 15px;
  border:1px solid #a13e37;
  border-radius:12px;
  color:#a13e37!important;
  font-weight:850;
  text-decoration:none!important;
}

.ts-v911-logout-card a:hover{
  background:#fff3f1;
}

@media(max-width:1050px){
  .ts-v911-settings-layout{
    grid-template-columns:1fr;
  }

  .ts-v911-settings-side{
    grid-template-columns:1fr 1fr;
  }
}

@media(max-width:800px){
  .ts-v91-hours-row{
    grid-template-columns:minmax(0,1fr) minmax(100px,1fr);
  }

  .ts-v91-day-check{
    grid-column:1/-1;
  }
}

@media(max-width:620px){
  .ts-v91-hours-row{
    grid-template-columns:1fr;
  }

  .ts-v91-day-check{
    grid-column:auto;
  }

  .ts-v911-account-card>.ts-v81-section-intro,
  .ts-v911-account-form{
    padding-left:18px;
    padding-right:18px;
  }

  .ts-v911-account-footer{
    align-items:stretch;
    flex-direction:column;
    margin-left:-18px;
    margin-right:-18px;
    padding-left:18px;
    padding-right:18px;
  }

  .ts-v911-account-footer button{
    width:100%;
  }

  .ts-v911-settings-side{
    grid-template-columns:1fr;
  }
}


/* ===== Territórios Studio 10.0 ===== */

.ts-v10-sidebar-progress{
  display:grid;
  gap:8px;
  margin:16px 14px;
  padding:14px;
  border:1px solid rgba(255,255,255,.15);
  border-radius:15px;
  background:rgba(255,255,255,.07);
  color:#fff!important;
  text-decoration:none!important;
}

.ts-v10-sidebar-progress>span{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:10px;
}

.ts-v10-sidebar-progress small{
  color:rgba(255,255,255,.58);
  font-size:9px;
  font-weight:850;
  letter-spacing:.12em;
  text-transform:uppercase;
}

.ts-v10-sidebar-progress strong{
  color:#fff;
  font-size:12px;
}

.ts-v10-sidebar-progress>div{
  height:7px;
  overflow:hidden;
  border-radius:999px;
  background:rgba(255,255,255,.14);
}

.ts-v10-sidebar-progress i{
  display:block;
  height:100%;
  border-radius:inherit;
  background:#b8d0b9;
}

.ts-v10-sidebar-progress em{
  color:rgba(255,255,255,.72);
  font-size:10px;
  font-style:normal;
}

.ts-v10-new-product{
  width:auto!important;
  min-width:48px;
  gap:7px;
  padding:0 15px!important;
}

.ts-v10-new-product span{
  font-size:24px;
  line-height:1;
}

.ts-v10-new-product b{
  font-size:12px;
  white-space:nowrap;
}

.ts-v1-health-card .ts-v1-progress span{
  transition:width .35s ease;
}

.ts-v911-settings-side .ts-v1-card:first-child{
  background:linear-gradient(145deg,#fff,#f4f8f4);
}

@media(max-width:1120px){
  .ts-v10-new-product b{
    display:none;
  }

  .ts-v10-new-product{
    width:48px!important;
    padding:0!important;
  }
}

@media(max-width:720px){
  .ts-v10-sidebar-progress{
    margin-inline:10px;
  }
}


/* ===== Territórios Studio 10.0.1 — ajuste fino de ações ===== */

/* Botão Novo produto no cabeçalho: altura, alinhamento e texto em uma linha. */
.ts-v10-new-product{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:auto!important;
  min-width:178px!important;
  height:52px!important;
  min-height:52px!important;
  padding:0 20px!important;
  gap:10px!important;
  overflow:hidden!important;
  border-radius:14px!important;
  line-height:1!important;
  white-space:nowrap!important;
}

.ts-v10-new-product span{
  display:block;
  flex:0 0 auto;
  margin:0!important;
  font-size:25px!important;
  line-height:1!important;
}

.ts-v10-new-product b{
  display:block!important;
  margin:0!important;
  font-size:13px!important;
  line-height:1!important;
  white-space:nowrap!important;
}

/* Cabeçalho de Meu empreendimento: evita quebra e deslocamento das ações. */
.ts-v81-enterprise-head{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:24px!important;
}

.ts-v81-head-actions{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  flex-wrap:nowrap!important;
  gap:14px!important;
  min-width:max-content!important;
}

.ts-v81-save-status{
  display:block!important;
  max-width:190px!important;
  margin:0!important;
  line-height:1.35!important;
  white-space:normal!important;
}

.ts-v81-head-actions .ts-v1-secondary,
.ts-v81-head-actions [data-ts-enterprise-public]{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:auto!important;
  min-width:220px!important;
  min-height:52px!important;
  margin:0!important;
  padding:0 20px!important;
  line-height:1.15!important;
  text-align:center!important;
  white-space:nowrap!important;
}

/* Mantém todos os botões superiores na mesma linha e altura. */
.ts-v1-topbar__actions{
  align-items:center!important;
}

.ts-v1-topbar__actions > a,
.ts-v1-topbar__actions > button{
  flex-shrink:0!important;
}

/* Evita que estilos globais de ícone forcem largura quadrada nos botões com texto. */
.ts-v1-icon-button.ts-v10-new-product{
  aspect-ratio:auto!important;
}

@media(max-width:1180px){
  .ts-v10-new-product{
    min-width:52px!important;
    width:52px!important;
    padding:0!important;
  }

  .ts-v10-new-product b{
    display:none!important;
  }

  .ts-v81-enterprise-head{
    align-items:flex-start!important;
    flex-direction:column!important;
  }

  .ts-v81-head-actions{
    width:100%!important;
    justify-content:space-between!important;
    min-width:0!important;
  }
}

@media(max-width:720px){
  .ts-v81-head-actions{
    align-items:stretch!important;
    flex-direction:column!important;
  }

  .ts-v81-save-status{
    max-width:none!important;
  }

  .ts-v81-head-actions .ts-v1-secondary,
  .ts-v81-head-actions [data-ts-enterprise-public]{
    width:100%!important;
    min-width:0!important;
  }
}


/* ===== Territórios Studio 11.0 ===== */

.ts-v10-stat-link{
  display:block;
  min-width:0;
  color:inherit!important;
  text-decoration:none!important;
  border-radius:inherit;
}

.ts-v10-stat-link article{
  height:100%;
  transition:.18s ease;
}

.ts-v10-stat-link:hover article{
  transform:translateY(-3px);
  border-color:#b7cab9;
  box-shadow:0 16px 34px rgba(28,59,39,.10);
}

.ts-v11-smart-section{
  margin-bottom:24px;
}

.ts-v11-smart-note{
  color:var(--ts-muted);
  font-size:11px;
}

.ts-v11-smart-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
}

.ts-v11-smart-card{
  display:grid;
  grid-template-columns:42px minmax(0,1fr);
  gap:12px;
  min-height:176px;
  padding:18px;
  border:1px solid var(--ts-border);
  border-radius:18px;
  background:#fff;
  box-shadow:var(--ts-shadow-soft);
}

.ts-v11-smart-card>.dashicons{
  display:grid;
  place-items:center;
  width:42px;
  height:42px;
  border-radius:13px;
  background:#edf4ed;
  color:var(--ts-green-800);
  font-size:21px;
}

.ts-v11-smart-card>div{
  min-width:0;
}

.ts-v11-smart-card strong{
  display:block;
  margin-bottom:7px;
  color:var(--ts-green-950);
  font-size:15px;
  line-height:1.2;
}

.ts-v11-smart-card p{
  margin:0;
  color:var(--ts-muted);
  font-size:12px;
  line-height:1.5;
}

.ts-v11-smart-card>a{
  grid-column:2;
  align-self:end;
  color:var(--ts-green-800)!important;
  font-size:12px;
  font-weight:850;
  text-decoration:none!important;
}

.ts-v11-smart-card--success{
  background:linear-gradient(145deg,#f5faf5,#fff);
}

.ts-v11-notifications{
  position:relative;
}

.ts-v11-notifications [data-ts-notifications-toggle]{
  position:relative;
}

.ts-v11-notifications [data-ts-notification-count]{
  position:absolute;
  top:-5px;
  right:-5px;
  display:grid;
  place-items:center;
  min-width:20px;
  height:20px;
  padding:0 5px;
  border:2px solid #fff;
  border-radius:999px;
  background:#a96846;
  color:#fff;
  font-size:10px;
  font-style:normal;
  font-weight:900;
}

.ts-v11-notification-panel{
  position:absolute;
  z-index:100;
  top:calc(100% + 12px);
  right:0;
  width:min(390px,86vw);
  overflow:hidden;
  border:1px solid var(--ts-border);
  border-radius:19px;
  background:#fff;
  box-shadow:0 24px 70px rgba(28,59,39,.20);
}

.ts-v11-notification-panel>header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:18px 20px;
  border-bottom:1px solid var(--ts-border);
}

.ts-v11-notification-panel h3{
  margin:4px 0 0;
  font-size:22px;
}

.ts-v11-notification-panel>header>button{
  display:grid;
  place-items:center;
  width:36px;
  height:36px;
  border:1px solid var(--ts-border);
  border-radius:10px;
  background:#fff;
  font-size:22px;
  cursor:pointer;
}

.ts-v11-notification-panel>[data-ts-notification-list]{
  display:grid;
  max-height:420px;
  overflow:auto;
}

.ts-v11-notification-panel>[data-ts-notification-list]>a{
  display:grid;
  grid-template-columns:38px 1fr;
  gap:11px;
  padding:15px 18px;
  border-bottom:1px solid var(--ts-border);
  color:inherit!important;
  text-decoration:none!important;
}

.ts-v11-notification-panel>[data-ts-notification-list]>a:hover{
  background:#f5f8f5;
}

.ts-v11-notification-panel>[data-ts-notification-list]>a>.dashicons{
  display:grid;
  place-items:center;
  width:38px;
  height:38px;
  border-radius:12px;
  background:#edf4ed;
  color:var(--ts-green-800);
}

.ts-v11-notification-panel>[data-ts-notification-list]>a>div{
  display:flex;
  min-width:0;
  flex-direction:column;
  gap:4px;
}

.ts-v11-notification-panel>[data-ts-notification-list] strong{
  font-size:13px;
}

.ts-v11-notification-panel>[data-ts-notification-list] small{
  color:var(--ts-muted);
  font-size:11px;
  line-height:1.4;
}

.ts-v11-notification-panel>[data-ts-notification-list]>p{
  margin:0;
  padding:22px;
  color:var(--ts-muted);
  text-align:center;
}

@media(max-width:1200px){
  .ts-v11-smart-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media(max-width:650px){
  .ts-v11-smart-grid{
    grid-template-columns:1fr;
  }

  .ts-v11-smart-note{
    display:none;
  }
}


/* ===== Territórios Studio 11.1 — aplicação independente ===== */
body.territorios-studio-v1{
  overflow-x:hidden;
  background:var(--ts-bg)!important;
}

body.territorios-studio-v1 .ts-v1-app{
  min-height:100vh;
}

body.territorios-studio-v1 .ts-v1-shell{
  min-height:100vh;
}

body.territorios-studio-v1 #main,
body.territorios-studio-v1 main,
body.territorios-studio-v1 .site-main{
  min-height:100vh;
}


/* ===== Territórios Studio 11.1.1 — acesso próprio ===== */
.ts-v111-auth-shell{
  display:grid;
  grid-template-columns:minmax(0,.9fr) minmax(420px,.72fr);
  min-height:100vh;
  background:#f4f2e9;
}

.ts-v111-auth-brand{
  display:flex;
  min-height:100vh;
  flex-direction:column;
  justify-content:center;
  padding:8vw;
  background:linear-gradient(150deg,#173b28,#2e5138);
  color:#fff;
}

.ts-v111-auth-mark{
  display:grid;
  place-items:center;
  width:64px;
  height:64px;
  margin-bottom:34px;
  border-radius:18px;
  background:rgba(255,255,255,.14);
  font-size:28px;
  font-weight:900;
}

.ts-v111-auth-brand .ts-v1-eyebrow{
  color:#b9d0bb;
}

.ts-v111-auth-brand h1{
  max-width:620px;
  margin:13px 0 20px;
  color:#fff;
  font-size:clamp(48px,5vw,84px);
  line-height:.96;
  letter-spacing:-.055em;
}

.ts-v111-auth-brand>p{
  max-width:580px;
  margin:0;
  color:rgba(255,255,255,.72);
  font-size:18px;
  line-height:1.6;
}

.ts-v111-auth-brand ul{
  display:grid;
  gap:13px;
  margin:38px 0 0;
  padding:0;
  list-style:none;
}

.ts-v111-auth-brand li{
  display:flex;
  align-items:center;
  gap:11px;
  color:rgba(255,255,255,.88);
  font-size:14px;
}

.ts-v111-auth-brand li span{
  display:grid;
  place-items:center;
  width:27px;
  height:27px;
  border-radius:50%;
  background:rgba(255,255,255,.12);
}

.ts-v111-auth-card{
  align-self:center;
  width:min(560px,calc(100% - 56px));
  margin:40px auto;
  padding:32px;
  border:1px solid var(--ts-border);
  border-radius:26px;
  background:#fff;
  box-shadow:0 26px 80px rgba(28,59,39,.13);
}

.ts-v111-auth-tabs{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:6px;
  margin-bottom:30px;
  padding:5px;
  border-radius:14px;
  background:#eef2ed;
}

.ts-v111-auth-tabs a{
  display:flex;
  min-height:46px;
  align-items:center;
  justify-content:center;
  border-radius:10px;
  color:var(--ts-muted)!important;
  font-size:13px;
  font-weight:850;
  text-decoration:none!important;
}

.ts-v111-auth-tabs a.is-active{
  background:#fff;
  color:var(--ts-green-800)!important;
  box-shadow:0 3px 12px rgba(28,59,39,.09);
}

.ts-v111-auth-heading h2{
  margin:7px 0 9px;
  color:var(--ts-green-950);
  font-size:36px;
  line-height:1;
}

.ts-v111-auth-heading p{
  margin:0 0 25px;
  color:var(--ts-muted);
  line-height:1.5;
}

.ts-v111-auth-error{
  margin-bottom:20px;
  padding:13px 15px;
  border-radius:12px;
  background:#fff0ee;
  color:#9a3d35;
  font-size:13px;
  font-weight:750;
}

.ts-v111-auth-form{
  display:grid;
  gap:16px;
}

.ts-v111-auth-form label{
  display:grid;
  gap:8px;
}

.ts-v111-auth-form label>span{
  font-size:13px;
  font-weight:850;
}

.ts-v111-auth-form label>small{
  color:var(--ts-muted);
  font-size:11px;
}

.ts-v111-auth-form input[type="text"],
.ts-v111-auth-form input[type="email"],
.ts-v111-auth-form input[type="password"]{
  width:100%;
  min-height:54px;
  padding:12px 14px;
  border:1px solid #d7dcd7;
  border-radius:13px;
  background:#fff;
  color:var(--ts-text);
  font:inherit;
}

.ts-v111-auth-form input:focus{
  outline:0;
  border-color:var(--ts-green-800);
  box-shadow:0 0 0 4px rgba(49,92,62,.11);
}

.ts-v111-auth-form>button{
  min-height:54px;
  margin-top:5px;
  border:0;
  border-radius:13px;
  background:var(--ts-green-800);
  color:#fff;
  font:inherit;
  font-weight:900;
  cursor:pointer;
}

.ts-v111-remember{
  display:flex!important;
  grid-template-columns:none!important;
  align-items:center;
  gap:9px!important;
}

.ts-v111-remember input{
  width:19px;
  height:19px;
  margin:0;
  accent-color:var(--ts-green-800);
}

.ts-v111-lost-password{
  color:var(--ts-green-800)!important;
  font-size:12px;
  font-weight:800;
  text-align:center;
}

.ts-v111-auth-privacy{
  margin:0;
  color:var(--ts-muted);
  font-size:10px;
  line-height:1.45;
  text-align:center;
}

@media(max-width:900px){
  .ts-v111-auth-shell{
    grid-template-columns:1fr;
  }

  .ts-v111-auth-brand{
    min-height:auto;
    padding:60px 28px;
  }

  .ts-v111-auth-brand h1{
    font-size:52px;
  }

  .ts-v111-auth-brand ul{
    display:none;
  }

  .ts-v111-auth-card{
    width:min(600px,calc(100% - 30px));
    margin:30px auto;
  }
}

@media(max-width:520px){
  .ts-v111-auth-brand{
    padding:45px 20px;
  }

  .ts-v111-auth-brand h1{
    font-size:42px;
  }

  .ts-v111-auth-card{
    padding:22px 18px;
  }
}


/* ===== Territórios Studio 12.0 — assistente de produto ===== */
.ts-v12-assistant{display:grid;gap:18px;margin:0 0 22px;padding:22px;border:1px solid #c7d6c8;border-radius:20px;background:linear-gradient(145deg,#f7faf7,#eef5ef)}
.ts-v12-assistant__head{display:grid;grid-template-columns:48px minmax(0,1fr);gap:14px;align-items:start}
.ts-v12-assistant__head>.dashicons{display:grid;place-items:center;width:48px;height:48px;border-radius:15px;background:var(--ts-green-800);color:#fff;font-size:23px}
.ts-v12-assistant__head h2{margin:5px 0 6px;font-size:24px;line-height:1.05}
.ts-v12-assistant__head p{margin:0;color:var(--ts-muted);font-size:12px;line-height:1.5}
.ts-v12-quality{display:grid;grid-template-columns:auto minmax(0,1fr);gap:18px;align-items:center}
.ts-v12-quality>div:first-child{display:flex;flex-direction:column}
.ts-v12-quality strong{color:var(--ts-green-800);font-size:29px;line-height:1}
.ts-v12-quality span{color:var(--ts-muted);font-size:10px}
.ts-v12-quality__bar{height:10px;overflow:hidden;border-radius:999px;background:#dce6dd}
.ts-v12-quality__bar i{display:block;width:0;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--ts-green-800),#8bb28f);transition:width .25s ease}
.ts-v12-assistant__actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.ts-v12-assistant__actions button{display:grid;grid-template-columns:34px 1fr;grid-template-rows:auto auto;gap:2px 9px;min-height:76px;padding:12px;border:1px solid var(--ts-border);border-radius:14px;background:#fff;color:var(--ts-text);font:inherit;text-align:left;cursor:pointer}
.ts-v12-assistant__actions button:hover{border-color:var(--ts-green-800);box-shadow:0 8px 22px rgba(28,59,39,.08)}
.ts-v12-assistant__actions .dashicons{grid-row:1/3;display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:#edf4ed;color:var(--ts-green-800)}
.ts-v12-assistant__actions strong{font-size:12px}
.ts-v12-assistant__actions small{color:var(--ts-muted);font-size:9px;line-height:1.35}
.ts-v12-assistant__message{padding:12px 14px;border-radius:12px;background:#fff;color:var(--ts-green-800);font-size:12px;font-weight:750}
.ts-v12-field-help{color:var(--ts-muted);font-size:10px;line-height:1.4}
.ts-v12-field-help b{color:var(--ts-green-800)}
.ts-v12-review-checklist{display:grid;gap:16px;margin-bottom:22px;padding:20px;border:1px solid var(--ts-border);border-radius:18px;background:#fafbf9}
.ts-v12-review-checklist__head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px}
.ts-v12-review-checklist__head h2{margin:5px 0 0;font-size:23px}
.ts-v12-review-checklist__head>strong{color:var(--ts-green-800);font-size:13px}
.ts-v12-review-checklist ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0;padding:0;list-style:none}
.ts-v12-review-checklist li{display:grid;grid-template-columns:30px 1fr;gap:10px;padding:12px;border:1px solid var(--ts-border);border-radius:13px;background:#fff}
.ts-v12-review-checklist li>span{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#f0f2ef;color:var(--ts-muted);font-weight:900}
.ts-v12-review-checklist li.is-complete{border-color:#bfd1c1;background:#f2f8f3}
.ts-v12-review-checklist li.is-complete>span{background:var(--ts-green-800);color:#fff}
.ts-v12-review-checklist li strong{display:block;margin-bottom:3px;font-size:12px}
.ts-v12-review-checklist li small{color:var(--ts-muted);font-size:9px;line-height:1.35}
.ts-v12-review-checklist>p{margin:0;color:var(--ts-muted);font-size:11px}
@media(max-width:900px){.ts-v12-assistant__actions{grid-template-columns:1fr}.ts-v12-review-checklist ul{grid-template-columns:1fr}}
@media(max-width:600px){.ts-v12-quality{grid-template-columns:1fr}.ts-v12-review-checklist__head{align-items:flex-start;flex-direction:column}}


/* ===== Territórios Studio 12.0.1 — correção do editor e navegação ===== */

/*
 * O Assistente passou a ocupar uma linha própria na coluna de conteúdo.
 * A navegação permanece fixa à esquerda e o formulário recupera toda a largura.
 */
.ts-v3-wizard-layout{
  grid-template-columns:230px minmax(0,840px)!important;
  grid-template-rows:auto 1fr;
  align-items:start;
}

.ts-v3-wizard-nav{
  grid-column:1!important;
  grid-row:1 / span 2!important;
}

.ts-v12-assistant{
  grid-column:2!important;
  grid-row:1!important;
  width:100%;
  min-width:0;
  box-sizing:border-box;
}

.ts-v3-product-wizard{
  grid-column:2!important;
  grid-row:2!important;
  width:100%;
  min-width:0;
  box-sizing:border-box;
}

.ts-v3-wizard-step{
  width:100%;
  min-width:0;
  box-sizing:border-box;
}

/*
 * Troca de páginas sem a faixa animada superior e sem apagar o conteúdo.
 * A navegação continua bloqueando cliques durante a requisição, mas sem “piscar”.
 */
.ts-v1-shell.is-spa-loading .ts-v1-content{
  opacity:1!important;
  transform:none!important;
  pointer-events:none;
}

.ts-v1-shell.is-spa-loading .ts-v1-main::after{
  display:none!important;
  content:none!important;
  animation:none!important;
}

.ts-v1-shell.is-spa-loading{
  cursor:progress;
}

/* Assistente mais compacto para não empurrar excessivamente o formulário. */
.ts-v12-assistant{
  padding:18px 20px;
}

.ts-v12-assistant__head{
  grid-template-columns:42px minmax(0,1fr);
}

.ts-v12-assistant__head>.dashicons{
  width:42px;
  height:42px;
}

.ts-v12-assistant__head h2{
  font-size:21px;
}

.ts-v12-assistant__actions button{
  min-height:68px;
}

/* Notebook e tablet */
@media(max-width:1120px){
  .ts-v3-wizard-layout{
    grid-template-columns:190px minmax(0,1fr)!important;
    gap:24px!important;
    padding:28px!important;
  }
}

@media(max-width:820px){
  .ts-v3-wizard-layout{
    display:block!important;
    padding:20px!important;
  }

  .ts-v3-wizard-nav{
    position:static!important;
    display:flex!important;
    overflow-x:auto;
    margin-bottom:16px;
    padding-bottom:5px;
  }

  .ts-v3-wizard-nav button{
    flex:0 0 auto;
  }

  .ts-v12-assistant{
    margin-bottom:16px;
  }

  .ts-v3-product-wizard{
    width:100%;
  }
}

@media(max-width:600px){
  .ts-v3-wizard-step{
    padding:24px 18px!important;
  }
}


/* ===== Territórios Studio 13.0 — alcance territorial ===== */
.ts-v13-results{display:grid;gap:22px}
.ts-v13-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px}
.ts-v13-metrics article{display:grid;grid-template-columns:44px 1fr;gap:4px 12px;padding:20px}
.ts-v13-metrics .dashicons{grid-row:1/3;display:grid;place-items:center;width:44px;height:44px;border-radius:13px;background:var(--ts-green-100);color:var(--ts-green-800);font-size:21px}
.ts-v13-metrics strong{font-size:24px;color:var(--ts-green-950)}
.ts-v13-metrics small{color:var(--ts-muted)}
.ts-v13-results-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(280px,.55fr);gap:20px;align-items:start}
.ts-v13-results-grid--bottom{grid-template-columns:1fr 1fr}
.ts-v13-map-card,.ts-v13-territory-card,.ts-v13-city-card,.ts-v13-category-card{padding:24px}
.ts-v13-map{height:420px;overflow:hidden;border:1px solid var(--ts-border);border-radius:18px;background:#eaf0e9}
.ts-v13-map-note{color:var(--ts-muted);font-size:11px}
.ts-v13-territory-card h2{margin:7px 0 18px;font-size:28px}
.ts-v13-territory-card dl{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0}
.ts-v13-territory-card dl div{padding:13px;border-radius:13px;background:#f5f7f4}
.ts-v13-territory-card dt{color:var(--ts-muted);font-size:10px}
.ts-v13-territory-card dd{margin:4px 0 0;font-weight:850}
.ts-v13-territory-card p{margin:18px 0;color:var(--ts-muted);line-height:1.5}
.ts-v13-territory-card>a{color:var(--ts-green-800)!important;font-weight:850;text-decoration:none!important}
.ts-v13-city-row{display:grid;grid-template-columns:32px minmax(0,1fr) 70px 110px;align-items:center;gap:12px;padding:13px 0;border-bottom:1px solid var(--ts-border)}
.ts-v13-city-row:last-child{border-bottom:0}
.ts-v13-city-row>span{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:var(--ts-green-100);color:var(--ts-green-800);font-weight:900}
.ts-v13-city-row>div{display:flex;flex-direction:column}
.ts-v13-city-row small{color:var(--ts-muted);font-size:10px}
.ts-v13-city-row em{font-style:normal;font-weight:850;text-align:right}
.ts-v13-category-row{display:grid;grid-template-columns:minmax(120px,190px) 1fr 35px;align-items:center;gap:12px;margin:14px 0}
.ts-v13-category-row>div{height:11px;overflow:hidden;border-radius:999px;background:#e7ece7}
.ts-v13-category-row i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--ts-green-800),#8bb28f)}
.ts-v13-category-row b{text-align:right}
@media(max-width:1100px){.ts-v13-metrics{grid-template-columns:repeat(2,1fr)}.ts-v13-results-grid,.ts-v13-results-grid--bottom{grid-template-columns:1fr}}
@media(max-width:620px){.ts-v13-metrics{grid-template-columns:1fr}.ts-v13-territory-card dl{grid-template-columns:1fr}.ts-v13-city-row{grid-template-columns:30px 1fr 60px}.ts-v13-city-row em{grid-column:2/4;text-align:left}.ts-v13-category-row{grid-template-columns:1fr 35px}.ts-v13-category-row>span{grid-column:1/-1}.ts-v13-map{height:330px}}


/* ===== Territórios Studio 13.1 ===== */

/* Financeiro: 2 colunas para comportar valores grandes sem quebra. */
.ts-v7-finance-stats{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:18px!important;
}

.ts-v7-finance-stats article{
  min-width:0;
  min-height:190px;
  padding:28px 30px!important;
}

.ts-v7-finance-stats article strong{
  max-width:100%;
  font-size:clamp(42px,5vw,70px)!important;
  line-height:.95!important;
  letter-spacing:-.045em;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.ts-v7-finance-stats article span:last-child{
  margin-top:12px;
  font-size:17px;
  font-weight:850;
}

/* Venda: campos monetários didáticos. */
.ts-v131-price-grid{
  align-items:start;
}

.ts-v131-price-grid label{
  align-content:start;
}

.ts-v131-price-grid label>small{
  min-height:34px;
  color:var(--ts-muted);
  font-size:11px;
  line-height:1.45;
}

.ts-v131-price-grid label>span em{
  color:var(--ts-muted);
  font-size:11px;
  font-style:normal;
  font-weight:650;
}

.ts-v131-money-field{
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  align-items:center;
  overflow:hidden;
  border:1px solid #d7dcd7;
  border-radius:15px;
  background:#fff;
  transition:.16s ease;
}

.ts-v131-money-field:focus-within{
  border-color:var(--ts-green-800);
  box-shadow:0 0 0 4px rgba(49,92,62,.11);
}

.ts-v131-money-field>span{
  display:grid;
  place-items:center;
  align-self:stretch;
  min-width:58px;
  border-right:1px solid #e1e5e0;
  background:#f5f7f4;
  color:var(--ts-green-800);
  font-size:16px;
  font-weight:850;
}

.ts-v131-money-field input{
  width:100%!important;
  min-width:0;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  background:transparent!important;
  font-size:21px!important;
  font-weight:750;
}

.ts-v131-stock-control{
  display:grid;
  gap:15px;
  margin-top:6px;
  padding:20px;
  border:1px solid var(--ts-border);
  border-radius:17px;
  background:#f8faf7;
}

.ts-v131-stock-toggle{
  display:flex!important;
  grid-template-columns:none!important;
  align-items:flex-start;
  gap:13px!important;
  cursor:pointer;
}

.ts-v131-stock-toggle input{
  width:22px!important;
  min-height:22px!important;
  height:22px;
  margin:2px 0 0;
  accent-color:var(--ts-green-800);
}

.ts-v131-stock-toggle>span{
  display:flex!important;
  flex-direction:column;
  gap:4px;
}

.ts-v131-stock-toggle strong{
  font-size:14px;
}

.ts-v131-stock-toggle small{
  color:var(--ts-muted);
  font-size:11px;
  font-weight:500;
  line-height:1.4;
}

.ts-v131-stock-quantity{
  max-width:360px;
  padding-top:15px;
  border-top:1px solid var(--ts-border);
}

.ts-v131-stock-quantity[hidden]{
  display:none!important;
}

@media(max-width:760px){
  .ts-v7-finance-stats{
    grid-template-columns:1fr!important;
  }

  .ts-v7-finance-stats article{
    min-height:155px;
  }

  .ts-v7-finance-stats article strong{
    font-size:clamp(38px,12vw,58px)!important;
  }
}


/* ===== Territórios Studio 15.0 — linguagem e humanização ===== */

.ts-v15-context-help{
  display:grid;
  grid-template-columns:44px minmax(0,1fr);
  gap:13px;
  align-items:start;
  margin:0 0 20px;
  padding:16px 18px;
  border:1px solid #c8d7c9;
  border-radius:16px;
  background:linear-gradient(145deg,#f7faf7,#edf4ee);
}

.ts-v15-context-help>.dashicons{
  display:grid;
  place-items:center;
  width:44px;
  height:44px;
  border-radius:13px;
  background:var(--ts-green-800);
  color:#fff;
  font-size:21px;
}

.ts-v15-context-help strong{
  display:block;
  margin:2px 0 5px;
  color:var(--ts-green-950);
  font-size:14px;
}

.ts-v15-context-help p{
  margin:0;
  color:var(--ts-muted);
  font-size:12px;
  line-height:1.5;
}

/* Long, human labels remain readable in the sidebar. */
.ts-v1-sidebar a span:not(.dashicons){
  line-height:1.25;
}

/* Softer empty/loading states. */
.ts-v4-catalog-state{
  border-radius:15px;
  color:var(--ts-muted);
  font-weight:650;
}

/* Messages use readable spacing and do not resemble technical alerts. */
.ts-v1-message{
  line-height:1.5;
}

@media(max-width:620px){
  .ts-v15-context-help{
    grid-template-columns:38px 1fr;
    padding:14px;
  }

  .ts-v15-context-help>.dashicons{
    width:38px;
    height:38px;
  }
}


/* ===== Territórios Studio 15.0.1 — Polimento Premium ===== */

/* Toasts */
.ts-v15-toast-region{
  position:fixed;
  top:24px;
  right:24px;
  z-index:2147483000;
  display:grid;
  width:min(390px,calc(100vw - 32px));
  gap:10px;
  pointer-events:none;
}

.ts-v15-toast{
  display:grid;
  grid-template-columns:34px minmax(0,1fr) 30px;
  gap:10px;
  align-items:center;
  min-height:58px;
  padding:12px 13px;
  border:1px solid #bfd0c0;
  border-radius:15px;
  background:#fff;
  box-shadow:0 18px 48px rgba(24,59,40,.18);
  opacity:0;
  pointer-events:auto;
  transform:translateY(-10px) scale(.98);
  transition:opacity .18s ease,transform .18s ease;
}

.ts-v15-toast.is-visible{
  opacity:1;
  transform:translateY(0) scale(1);
}

.ts-v15-toast.is-leaving{
  opacity:0;
  transform:translateY(-8px) scale(.98);
}

.ts-v15-toast>.dashicons{
  display:grid;
  place-items:center;
  width:34px;
  height:34px;
  border-radius:50%;
  background:#eaf3eb;
  color:var(--ts-green-800);
}

.ts-v15-toast.is-error{
  border-color:#e3b8b3;
  background:#fff8f7;
}

.ts-v15-toast.is-error>.dashicons{
  background:#fff0ee;
  color:#a4463e;
}

.ts-v15-toast p{
  margin:0;
  color:#233128;
  font-size:12px;
  font-weight:700;
  line-height:1.45;
}

.ts-v15-toast button{
  display:grid;
  place-items:center;
  width:30px;
  height:30px;
  padding:0;
  border:0;
  border-radius:50%;
  background:transparent;
  color:#6d766f;
  font-size:20px;
  cursor:pointer;
}

/* Drag and drop */
.ts-v3-upload-zone{
  position:relative;
  transition:border-color .18s ease,background .18s ease,transform .18s ease,box-shadow .18s ease;
}

.ts-v3-upload-zone.is-dragging{
  border-color:var(--ts-green-800)!important;
  background:#eef6ef!important;
  box-shadow:0 0 0 5px rgba(62,104,71,.12);
  transform:translateY(-2px);
}

.ts-v3-upload-zone.is-dragging::after{
  position:absolute;
  inset:14px;
  display:grid;
  place-items:center;
  border:2px dashed var(--ts-green-800);
  border-radius:16px;
  background:rgba(238,246,239,.92);
  color:var(--ts-green-950);
  content:"Solte a imagem aqui";
  font-size:15px;
  font-weight:900;
  pointer-events:none;
}

/* Autosave */
.ts-v3-autosave{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:28px;
}

.ts-v3-autosave::before{
  width:8px;
  height:8px;
  border-radius:50%;
  background:currentColor;
  content:"";
  opacity:.75;
}

.ts-v3-autosave.has-pulse::before{
  animation:ts15AutosavePulse 1s ease-in-out infinite;
}

@keyframes ts15AutosavePulse{
  0%,100%{transform:scale(.75);opacity:.45}
  50%{transform:scale(1.25);opacity:1}
}

/* Premium transitions */
.ts-v1-card,
.ts-v2-product-card,
.ts-v13-results article,
.ts-v15-context-help{
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
}

.ts-v2-product-card:hover,
.ts-v1-card:hover{
  transform:translateY(-2px);
  box-shadow:0 18px 42px rgba(24,59,40,.09);
}

.ts-v1-primary,
.ts-v1-secondary,
.ts-v1-icon-button,
.ts-v61-quick-edit{
  transition:transform .14s ease,box-shadow .14s ease,background .14s ease,color .14s ease;
}

.ts-v1-primary:hover,
.ts-v1-secondary:hover,
.ts-v1-icon-button:hover,
.ts-v61-quick-edit:hover{
  transform:translateY(-1px);
}

.ts-v1-primary:active,
.ts-v1-secondary:active,
.ts-v1-icon-button:active,
.ts-v61-quick-edit:active{
  transform:translateY(0) scale(.985);
}

/* Accessible focus */
.ts-v1-shell :is(a,button,input,textarea,select,[tabindex]):focus-visible{
  outline:3px solid #5b84a2!important;
  outline-offset:3px!important;
}

/* Soft SPA loading without hiding the page */
.ts-v1-shell.is-spa-loading [data-ts-spa-content]{
  cursor:progress;
}

.ts-v1-shell.is-spa-loading [data-ts-spa-content]::before{
  position:absolute;
  inset:0;
  z-index:20;
  border-radius:22px;
  background:linear-gradient(
    90deg,
    rgba(244,241,232,.15),
    rgba(255,255,255,.55),
    rgba(244,241,232,.15)
  );
  content:"";
  pointer-events:none;
  animation:ts15SoftLoading 1.1s linear infinite;
  transform:translateX(-100%);
}

[data-ts-spa-content]{
  position:relative;
  overflow:clip;
}

@keyframes ts15SoftLoading{
  to{transform:translateX(100%)}
}

@media(max-width:640px){
  .ts-v15-toast-region{
    top:12px;
    right:12px;
    width:calc(100vw - 24px);
  }
}

@media(prefers-reduced-motion:reduce){
  .ts-v15-toast,
  .ts-v3-upload-zone,
  .ts-v1-card,
  .ts-v2-product-card,
  .ts-v1-primary,
  .ts-v1-secondary,
  .ts-v1-icon-button,
  .ts-v61-quick-edit{
    transition:none!important;
  }

  .ts-v1-shell.is-spa-loading [data-ts-spa-content]::before,
  .ts-v3-autosave.has-pulse::before{
    animation:none!important;
  }
}


/* ===== Territórios Studio 16.1 — Assistente Inteligente ===== */

.ts-v161-hero{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:28px;
  margin-bottom:22px;
  padding:34px 38px;
  border-radius:28px;
  background:
    radial-gradient(circle at 85% 15%,rgba(255,255,255,.16),transparent 30%),
    linear-gradient(145deg,#183b28,#315b3d);
  color:#fff;
  box-shadow:0 22px 60px rgba(24,59,40,.17);
}

.ts-v161-hero h1{
  max-width:760px;
  margin:9px 0 10px;
  color:#fff;
  font-size:clamp(38px,4.2vw,62px);
  line-height:.98;
  letter-spacing:-.05em;
}

.ts-v161-hero p{
  max-width:680px;
  margin:0;
  color:rgba(255,255,255,.72);
  font-size:16px;
}

.ts-v161-hero .ts-v1-eyebrow{
  color:#c5d7c8;
}

.ts-v161-hero__actions{
  display:flex;
  align-items:center;
  gap:10px;
  flex-shrink:0;
}

.ts-v161-help-link{
  display:flex;
  min-height:48px;
  align-items:center;
  gap:8px;
  padding:0 16px;
  border:1px solid rgba(255,255,255,.28);
  border-radius:13px;
  background:rgba(255,255,255,.1);
  color:#fff;
  font:inherit;
  font-size:12px;
  font-weight:850;
  cursor:pointer;
}

.ts-v161-today,
.ts-v161-quick-actions,
.ts-v161-recommendations{
  margin-bottom:22px;
  padding:24px;
  border:1px solid var(--ts-border);
  border-radius:22px;
  background:#fff;
  box-shadow:0 10px 32px rgba(24,59,40,.05);
}

.ts-v161-live-note{
  display:flex;
  align-items:center;
  gap:7px;
  color:var(--ts-muted);
  font-size:10px;
  font-weight:750;
}

.ts-v161-live-note i{
  width:8px;
  height:8px;
  border-radius:50%;
  background:#5f9367;
  box-shadow:0 0 0 5px rgba(95,147,103,.12);
}

.ts-v161-today__loading{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:12px;
}

.ts-v161-today__loading span{
  min-height:172px;
  border-radius:17px;
  background:linear-gradient(90deg,#eef1ed,#fafbf9,#eef1ed);
  background-size:220% 100%;
  animation:ts161Skeleton 1.2s linear infinite;
}

@keyframes ts161Skeleton{
  to{background-position:-220% 0}
}

.ts-v161-today__grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
}

.ts-v161-today-card{
  position:relative;
  display:grid;
  grid-template-columns:42px minmax(0,1fr);
  gap:8px 11px;
  min-width:0;
  min-height:178px;
  padding:17px;
  border:1px solid #dfe5df;
  border-radius:17px;
  background:#fafbf9;
}

.ts-v161-today-card>.dashicons{
  grid-row:1/3;
  display:grid;
  place-items:center;
  width:42px;
  height:42px;
  border-radius:13px;
  background:#e8f1e9;
  color:var(--ts-green-800);
  font-size:20px;
}

.ts-v161-today-card__value{
  align-self:center;
  min-width:0;
  color:var(--ts-green-950);
  font-size:22px;
  font-weight:900;
  line-height:1;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.ts-v161-today-card__copy{
  grid-column:1/-1;
}

.ts-v161-today-card__copy strong{
  display:block;
  margin-bottom:5px;
  font-size:13px;
  line-height:1.3;
}

.ts-v161-today-card__copy p{
  margin:0;
  color:var(--ts-muted);
  font-size:10px;
  line-height:1.45;
}

.ts-v161-today-card>a{
  grid-column:1/-1;
  align-self:end;
  color:var(--ts-green-800)!important;
  font-size:10px;
  font-weight:850;
  text-decoration:none!important;
}

.ts-v161-quick-actions__grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
}

.ts-v161-quick-actions__grid>a{
  display:grid;
  grid-template-columns:48px minmax(0,1fr);
  gap:12px;
  align-items:center;
  min-height:94px;
  padding:15px;
  border:1px solid #dfe5df;
  border-radius:16px;
  background:#fafbf9;
  color:var(--ts-text)!important;
  text-decoration:none!important;
  transition:.16s ease;
}

.ts-v161-quick-actions__grid>a:hover{
  border-color:var(--ts-green-800);
  background:#f0f6f1;
  transform:translateY(-2px);
  box-shadow:0 12px 28px rgba(24,59,40,.08);
}

.ts-v161-quick-actions__grid .dashicons{
  display:grid;
  place-items:center;
  width:48px;
  height:48px;
  border-radius:14px;
  background:var(--ts-green-800);
  color:#fff;
  font-size:22px;
}

.ts-v161-quick-actions__grid strong,
.ts-v161-quick-actions__grid small{
  display:block;
}

.ts-v161-quick-actions__grid small{
  margin-top:4px;
  color:var(--ts-muted);
  font-size:9px;
  line-height:1.4;
}

.ts-v161-recommendations__grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}

.ts-v161-recommendation{
  position:relative;
  display:grid;
  grid-template-columns:38px minmax(0,1fr);
  gap:10px;
  min-height:176px;
  padding:17px;
  overflow:hidden;
  border:1px solid #dfe5df;
  border-radius:17px;
  background:#fafbf9;
}

.ts-v161-recommendation__priority{
  position:absolute;
  top:0;
  right:0;
  padding:6px 10px;
  border-radius:0 16px 0 12px;
  background:#eaf1ea;
  color:var(--ts-green-800);
  font-size:8px;
  font-weight:900;
  letter-spacing:.04em;
  text-transform:uppercase;
}

.ts-v161-recommendation>.dashicons{
  display:grid;
  place-items:center;
  width:38px;
  height:38px;
  border-radius:12px;
  background:#eaf1ea;
  color:var(--ts-green-800);
}

.ts-v161-recommendation__copy{
  padding-top:22px;
}

.ts-v161-recommendation__copy strong{
  display:block;
  font-size:13px;
  line-height:1.3;
}

.ts-v161-recommendation__copy p{
  margin:6px 0 0;
  color:var(--ts-muted);
  font-size:10px;
  line-height:1.45;
}

.ts-v161-recommendation>a{
  grid-column:1/-1;
  align-self:end;
  color:var(--ts-green-800)!important;
  font-size:10px;
  font-weight:850;
  text-decoration:none!important;
}

.ts-v161-dashboard-bottom{
  display:grid;
  grid-template-columns:minmax(0,1.35fr) minmax(300px,.65fr);
  gap:20px;
  align-items:start;
}

.ts-v161-profile-card{
  padding:24px;
}

.ts-v161-profile-card h2{
  margin:6px 0 16px;
  font-size:25px;
}

.ts-v161-profile-score{
  display:flex;
  align-items:flex-end;
  gap:8px;
  margin-bottom:9px;
}

.ts-v161-profile-score strong{
  color:var(--ts-green-800);
  font-size:38px;
  line-height:1;
}

.ts-v161-profile-score span{
  color:var(--ts-muted);
  font-size:11px;
}

.ts-v161-profile-card ul{
  display:grid;
  gap:8px;
  margin:18px 0;
  padding:0;
  list-style:none;
}

.ts-v161-profile-card li{
  display:flex;
  gap:8px;
  color:var(--ts-muted);
  font-size:11px;
}

.ts-v161-profile-card li.is-done{
  color:var(--ts-green-800);
}

.ts-v161-profile-card li span{
  width:18px;
  font-weight:900;
}

/* Permanent assistant */
.ts-v161-assistant-fab{
  position:fixed;
  right:28px;
  bottom:25px;
  z-index:99990;
  display:flex;
  min-height:54px;
  align-items:center;
  gap:10px;
  padding:0 18px;
  border:0;
  border-radius:999px;
  background:var(--ts-green-800);
  color:#fff;
  box-shadow:0 16px 42px rgba(24,59,40,.28);
  font:inherit;
  cursor:pointer;
}

.ts-v161-assistant-fab .dashicons{
  display:grid;
  place-items:center;
  width:32px;
  height:32px;
  border-radius:50%;
  background:rgba(255,255,255,.15);
}

.ts-v161-assistant-fab strong{
  font-size:12px;
}

html.ts-v161-assistant-open,
html.ts-v161-assistant-open body{
  overflow:hidden;
}

.ts-v161-assistant{
  position:fixed;
  inset:0;
  z-index:2147482000;
  display:grid;
  grid-template-columns:1fr minmax(390px,460px);
  visibility:hidden;
  pointer-events:none;
}

.ts-v161-assistant.is-open{
  visibility:visible;
  pointer-events:auto;
}

.ts-v161-assistant__backdrop{
  grid-column:1/-1;
  grid-row:1;
  border:0;
  background:rgba(18,31,22,.44);
  opacity:0;
  transition:opacity .2s ease;
}

.ts-v161-assistant.is-open .ts-v161-assistant__backdrop{
  opacity:1;
}

.ts-v161-assistant__panel{
  grid-column:2;
  grid-row:1;
  display:flex;
  min-width:0;
  height:100%;
  flex-direction:column;
  overflow:auto;
  background:#f5f3eb;
  box-shadow:-24px 0 70px rgba(15,38,24,.22);
  outline:0;
  transform:translateX(105%);
  transition:transform .26s cubic-bezier(.2,.8,.2,1);
}

.ts-v161-assistant.is-open .ts-v161-assistant__panel{
  transform:translateX(0);
}

.ts-v161-assistant__panel>header{
  display:grid;
  grid-template-columns:48px minmax(0,1fr) 40px;
  gap:12px;
  align-items:center;
  padding:22px;
  border-bottom:1px solid #dce2dc;
  background:#fff;
}

.ts-v161-assistant__mark{
  display:grid;
  place-items:center;
  width:48px;
  height:48px;
  border-radius:15px;
  background:var(--ts-green-800);
  color:#fff;
}

.ts-v161-assistant__panel h2{
  margin:4px 0 0;
  font-size:24px;
}

.ts-v161-assistant__panel>header>button{
  display:grid;
  place-items:center;
  width:40px;
  height:40px;
  padding:0;
  border:1px solid #d8ded8;
  border-radius:50%;
  background:#fff;
  color:var(--ts-text);
  font-size:23px;
  cursor:pointer;
}

.ts-v161-assistant__welcome{
  margin:18px 18px 0;
  padding:15px;
  border-radius:15px;
  background:linear-gradient(145deg,#183b28,#315b3d);
  color:#fff;
}

.ts-v161-assistant__welcome p{
  margin:0;
  color:rgba(255,255,255,.86);
  font-size:12px;
  line-height:1.55;
}

.ts-v161-assistant__options{
  display:grid;
  gap:8px;
  padding:18px;
}

.ts-v161-assistant__options button{
  display:grid;
  grid-template-columns:42px minmax(0,1fr);
  gap:11px;
  align-items:center;
  min-height:72px;
  padding:11px;
  border:1px solid #dce2dc;
  border-radius:14px;
  background:#fff;
  color:var(--ts-text);
  font:inherit;
  text-align:left;
  cursor:pointer;
}

.ts-v161-assistant__options button:hover{
  border-color:var(--ts-green-800);
  background:#f3f8f4;
}

.ts-v161-assistant__options .dashicons{
  display:grid;
  place-items:center;
  width:42px;
  height:42px;
  border-radius:12px;
  background:#eaf1ea;
  color:var(--ts-green-800);
}

.ts-v161-assistant__options strong,
.ts-v161-assistant__options small{
  display:block;
}

.ts-v161-assistant__options strong{
  font-size:12px;
}

.ts-v161-assistant__options small{
  margin-top:3px;
  color:var(--ts-muted);
  font-size:9px;
  line-height:1.35;
}

.ts-v161-assistant__recommendations{
  margin:0 18px 18px;
  padding:16px;
  border:1px solid #dce2dc;
  border-radius:16px;
  background:#fff;
}

.ts-v161-assistant__recommendations>div{
  display:grid;
  gap:8px;
  margin-top:10px;
}

.ts-v161-assistant__recommendations a{
  display:grid;
  grid-template-columns:34px minmax(0,1fr);
  gap:9px;
  align-items:center;
  padding:10px;
  border-radius:11px;
  background:#f5f7f4;
  color:var(--ts-text)!important;
  text-decoration:none!important;
}

.ts-v161-assistant__recommendations a>.dashicons{
  display:grid;
  place-items:center;
  width:34px;
  height:34px;
  border-radius:10px;
  background:#e7efe8;
  color:var(--ts-green-800);
}

.ts-v161-assistant__recommendations strong,
.ts-v161-assistant__recommendations small{
  display:block;
}

.ts-v161-assistant__recommendations strong{
  font-size:10px;
}

.ts-v161-assistant__recommendations small{
  margin-top:2px;
  color:var(--ts-green-800);
  font-size:8px;
  font-weight:850;
}

@media(max-width:1100px){
  .ts-v161-today__grid,
  .ts-v161-today__loading,
  .ts-v161-quick-actions__grid{
    grid-template-columns:repeat(2,1fr);
  }

  .ts-v161-recommendations__grid{
    grid-template-columns:repeat(2,1fr);
  }
}

@media(max-width:850px){
  .ts-v161-hero{
    align-items:flex-start;
    flex-direction:column;
  }

  .ts-v161-dashboard-bottom{
    grid-template-columns:1fr;
  }
}

@media(max-width:620px){
  .ts-v161-hero{
    padding:28px 22px;
  }

  .ts-v161-hero__actions{
    width:100%;
    align-items:stretch;
    flex-direction:column;
  }

  .ts-v161-help-link,
  .ts-v161-hero__actions .ts-v1-primary{
    width:100%;
    justify-content:center;
  }

  .ts-v161-today,
  .ts-v161-quick-actions,
  .ts-v161-recommendations{
    padding:18px;
  }

  .ts-v161-today__grid,
  .ts-v161-today__loading,
  .ts-v161-quick-actions__grid,
  .ts-v161-recommendations__grid{
    grid-template-columns:1fr;
  }

  .ts-v161-assistant-fab{
    right:14px;
    bottom:14px;
    width:54px;
    padding:0;
    justify-content:center;
  }

  .ts-v161-assistant-fab strong{
    display:none;
  }

  .ts-v161-assistant{
    grid-template-columns:38px minmax(0,1fr);
  }

  .ts-v161-assistant__panel{
    grid-column:2;
  }
}

@media(prefers-reduced-motion:reduce){
  .ts-v161-today__loading span,
  .ts-v161-assistant__backdrop,
  .ts-v161-assistant__panel{
    animation:none!important;
    transition:none!important;
  }
}


/* ===== Territórios Studio 16.2 — Assistente de Escrita ===== */

.ts-v162-assisted-field{
  position:relative;
}

.ts-v162-write-button{
  display:inline-flex;
  min-height:34px;
  align-items:center;
  gap:6px;
  margin:7px 0 9px;
  padding:0 11px;
  border:1px solid #a9c2ad;
  border-radius:999px;
  background:#eef5ef;
  color:var(--ts-green-800);
  font:inherit;
  font-size:9px;
  font-weight:900;
  cursor:pointer;
}

.ts-v162-write-button:hover{
  border-color:var(--ts-green-800);
  background:#e4f0e6;
}

.ts-v162-write-button .dashicons{
  width:16px;
  height:16px;
  font-size:16px;
}

html.ts-v162-writing-open,
html.ts-v162-writing-open body{
  overflow:hidden;
}

.ts-v162-writing-modal{
  position:fixed;
  inset:0;
  z-index:2147483100;
  display:grid;
  place-items:center;
  padding:20px;
  visibility:hidden;
  pointer-events:none;
}

.ts-v162-writing-modal.is-open{
  visibility:visible;
  pointer-events:auto;
}

.ts-v162-writing-modal__backdrop{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border:0;
  background:rgba(17,30,21,.56);
  opacity:0;
  transition:opacity .2s ease;
}

.ts-v162-writing-modal.is-open .ts-v162-writing-modal__backdrop{
  opacity:1;
}

.ts-v162-writing-modal__panel{
  position:relative;
  z-index:1;
  display:flex;
  width:min(720px,100%);
  max-height:min(860px,calc(100vh - 40px));
  flex-direction:column;
  overflow:hidden;
  border:1px solid #d8ded8;
  border-radius:24px;
  background:#f7f5ee;
  box-shadow:0 30px 90px rgba(15,38,24,.30);
  outline:0;
  opacity:0;
  transform:translateY(14px) scale(.98);
  transition:opacity .2s ease,transform .2s ease;
}

.ts-v162-writing-modal.is-open .ts-v162-writing-modal__panel{
  opacity:1;
  transform:translateY(0) scale(1);
}

.ts-v162-writing-modal__panel>header{
  display:grid;
  grid-template-columns:48px minmax(0,1fr) 42px;
  gap:12px;
  align-items:center;
  padding:20px 22px;
  border-bottom:1px solid #dce2dc;
  background:#fff;
}

.ts-v162-writing-modal__mark{
  display:grid;
  place-items:center;
  width:48px;
  height:48px;
  border-radius:15px;
  background:var(--ts-green-800);
  color:#fff;
}

.ts-v162-writing-modal__panel h2{
  margin:4px 0 0;
  font-size:25px;
}

.ts-v162-writing-modal__panel>header>button{
  display:grid;
  place-items:center;
  width:42px;
  height:42px;
  padding:0;
  border:1px solid #d8ded8;
  border-radius:50%;
  background:#fff;
  color:var(--ts-text);
  font-size:24px;
  cursor:pointer;
}

.ts-v162-writing-modal__body{
  overflow:auto;
  padding:22px;
}

.ts-v162-writing-intro{
  margin:0 0 18px;
  padding:14px 16px;
  border-radius:14px;
  background:#eaf2eb;
  color:#45604c;
  font-size:12px;
  line-height:1.55;
}

.ts-v162-writing-modal label>span{
  display:block;
  margin-bottom:7px;
  color:var(--ts-text);
  font-size:12px;
  font-weight:850;
}

.ts-v162-writing-modal textarea{
  width:100%;
  min-height:128px;
  padding:14px;
  border:1px solid #cfd8d0;
  border-radius:14px;
  background:#fff;
  color:var(--ts-text);
  font:inherit;
  line-height:1.55;
  resize:vertical;
}

.ts-v162-writing-hints{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin:12px 0 16px;
}

.ts-v162-writing-hints button{
  min-height:32px;
  padding:0 10px;
  border:1px solid #d5ded6;
  border-radius:999px;
  background:#fff;
  color:#52645a;
  font:inherit;
  font-size:9px;
  font-weight:750;
  cursor:pointer;
}

.ts-v162-writing-generate{
  width:100%;
  justify-content:center;
}

.ts-v162-writing-generate.is-loading .dashicons{
  animation:ts162Rotate .8s linear infinite;
}

@keyframes ts162Rotate{
  to{transform:rotate(360deg)}
}

.ts-v162-writing-result{
  margin-top:20px;
  padding:17px;
  border:1px solid #c6d5c8;
  border-radius:17px;
  background:#fff;
}

.ts-v162-writing-result__head{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
}

.ts-v162-writing-result__head strong{
  font-size:14px;
}

.ts-v162-writing-result__head span,
.ts-v162-writing-result>p{
  color:var(--ts-muted);
  font-size:9px;
}

.ts-v162-writing-result textarea{
  min-height:210px;
  border-color:#a9c2ad;
  background:#fbfdfb;
}

.ts-v162-writing-suggestions{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-top:11px;
}

.ts-v162-writing-suggestions span{
  padding:5px 8px;
  border-radius:999px;
  background:#eef3ee;
  color:#5d6d62;
  font-size:8px;
}

.ts-v162-writing-modal__panel>footer{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  padding:16px 22px;
  border-top:1px solid #dce2dc;
  background:#fff;
}

.ts-v162-writing-modal__panel>footer button:disabled{
  opacity:.45;
  cursor:not-allowed;
}

@media(max-width:620px){
  .ts-v162-writing-modal{
    align-items:end;
    padding:0;
  }

  .ts-v162-writing-modal__panel{
    width:100%;
    max-height:92vh;
    border-radius:22px 22px 0 0;
  }

  .ts-v162-writing-modal__panel>header,
  .ts-v162-writing-modal__body,
  .ts-v162-writing-modal__panel>footer{
    padding-left:17px;
    padding-right:17px;
  }

  .ts-v162-writing-modal__panel>footer{
    align-items:stretch;
    flex-direction:column-reverse;
  }

  .ts-v162-writing-modal__panel>footer button{
    width:100%;
  }
}

@media(prefers-reduced-motion:reduce){
  .ts-v162-writing-modal__backdrop,
  .ts-v162-writing-modal__panel{
    transition:none!important;
  }

  .ts-v162-writing-generate.is-loading .dashicons{
    animation:none!important;
  }
}


/* ===== Territórios Studio 17.1 — Central de Oportunidades ===== */

.ts-v171-page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:22px}
.ts-v171-page-head h1{max-width:820px;margin:7px 0 8px;font-size:clamp(38px,4.5vw,64px);line-height:.98;letter-spacing:-.05em}
.ts-v171-page-head p{max-width:700px;margin:0;color:var(--ts-muted);font-size:15px;line-height:1.55}

.ts-v171-score{display:grid;grid-template-columns:minmax(0,1fr) 220px minmax(300px,.7fr);gap:24px;align-items:center;margin-bottom:20px;padding:24px;border:1px solid var(--ts-border);border-radius:22px;background:#fff;box-shadow:0 12px 34px rgba(24,59,40,.06)}
.ts-v171-score h2{margin:6px 0 7px;font-size:27px}
.ts-v171-score p{margin:0;color:var(--ts-muted);font-size:11px}
.ts-v171-score__meter strong{color:var(--ts-green-800);font-size:48px;line-height:1}
.ts-v171-score__meter>span{margin-left:5px;color:var(--ts-muted);font-size:10px}
.ts-v171-score__meter>div{height:9px;margin-top:12px;overflow:hidden;border-radius:999px;background:#e6ece6}
.ts-v171-score__meter i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--ts-green-800),#83a788);transition:width .35s ease}
.ts-v171-score dl{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:0}
.ts-v171-score dl div{padding:12px;border-radius:13px;background:#f5f7f4}
.ts-v171-score dt{color:var(--ts-muted);font-size:8px}
.ts-v171-score dd{margin:5px 0 0;color:var(--ts-green-950);font-size:22px;font-weight:900}

.ts-v171-best{display:grid;grid-template-columns:60px minmax(0,1fr) auto;gap:18px;align-items:center;margin-bottom:20px;padding:25px;border-radius:22px;background:linear-gradient(145deg,#183b28,#315b3d);color:#fff;box-shadow:0 18px 45px rgba(24,59,40,.16)}
.ts-v171-best .ts-v1-eyebrow{color:#c5d7c8}
.ts-v171-best h2{margin:6px 0 7px;color:#fff;font-size:28px}
.ts-v171-best p{margin:0;color:rgba(255,255,255,.76);font-size:12px}
.ts-v171-best small{display:block;margin-top:8px;color:#d8e4da;font-size:10px}
.ts-v171-best__icon{display:grid;place-items:center;width:60px;height:60px;border-radius:18px;background:rgba(255,255,255,.13)}
.ts-v171-best__icon .dashicons{width:27px;height:27px;font-size:27px}
.ts-v171-opportunity-skeleton{grid-column:1/-1;min-height:100px;border-radius:15px;background:linear-gradient(90deg,rgba(255,255,255,.08),rgba(255,255,255,.2),rgba(255,255,255,.08));background-size:220% 100%;animation:ts171Skeleton 1.2s linear infinite}
@keyframes ts171Skeleton{to{background-position:-220% 0}}

.ts-v171-filters{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:18px}
.ts-v171-filters button{min-height:40px;padding:0 14px;border:1px solid var(--ts-border);border-radius:999px;background:#fff;color:var(--ts-muted);font:inherit;font-size:10px;font-weight:850;cursor:pointer}
.ts-v171-filters button.is-active{border-color:var(--ts-green-800);background:var(--ts-green-800);color:#fff}

.ts-v171-groups{display:grid;gap:24px}
.ts-v171-group>header{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.ts-v171-group h2{margin:6px 0 0;font-size:20px}
.ts-v171-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.ts-v171-card{display:flex;min-height:260px;flex-direction:column;padding:18px;border:1px solid var(--ts-border);border-radius:18px;background:#fff;box-shadow:0 9px 28px rgba(24,59,40,.045);transition:.16s ease}
.ts-v171-card:hover{border-color:#b9cabb;transform:translateY(-2px);box-shadow:0 17px 38px rgba(24,59,40,.08)}
.ts-v171-card__top{display:flex;align-items:center;justify-content:space-between}
.ts-v171-card__top>.dashicons{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:#edf3ee;color:var(--ts-green-800)}
.ts-v171-priority{display:inline-flex;min-height:25px;align-items:center;padding:0 9px;border-radius:999px;font-size:8px;font-weight:900;letter-spacing:.04em;text-transform:uppercase}
.ts-v171-priority.is-high{background:#fff0ee;color:#a4463e}
.ts-v171-priority.is-medium{background:#fff5e7;color:#9b641c}
.ts-v171-priority.is-low{background:#edf3f7;color:#4c7896}
.ts-v171-priority.is-success{background:#eaf4eb;color:#3e6847}
.ts-v171-card h3{margin:18px 0 7px;font-size:18px;line-height:1.18}
.ts-v171-card>p{margin:0;color:var(--ts-muted);font-size:11px;line-height:1.5}
.ts-v171-benefit{margin:16px 0;padding:12px;border-radius:12px;background:#f5f7f4}
.ts-v171-benefit strong,.ts-v171-benefit span{display:block}
.ts-v171-benefit strong{margin-bottom:4px;font-size:9px}
.ts-v171-benefit span{color:var(--ts-muted);font-size:9px;line-height:1.4}
.ts-v171-card>a{margin-top:auto;color:var(--ts-green-800)!important;font-size:10px;font-weight:900;text-decoration:none!important}

.ts-v171-next-step{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:18px;align-items:center;margin-bottom:22px;padding:20px 22px;border:1px solid #bed0c0;border-radius:19px;background:linear-gradient(145deg,#f7faf7,#eaf3eb)}
.ts-v171-next-step h2{margin:5px 0 6px;font-size:22px}
.ts-v171-next-step p{margin:0;color:var(--ts-muted);font-size:11px}
.ts-v171-next-step>a:last-child{color:var(--ts-green-800)!important;font-size:10px;font-weight:850;text-decoration:none!important}
.ts-v171-next-step__loading{grid-column:1/-1;color:var(--ts-muted);font-size:11px}

@media(max-width:1100px){
  .ts-v171-score{grid-template-columns:1fr 180px}
  .ts-v171-score dl{grid-column:1/-1}
  .ts-v171-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:760px){
  .ts-v171-page-head,.ts-v171-next-step{align-items:stretch;flex-direction:column}
  .ts-v171-page-head{display:flex}
  .ts-v171-score{grid-template-columns:1fr}
  .ts-v171-score dl{grid-template-columns:1fr 1fr 1fr}
  .ts-v171-best{grid-template-columns:48px 1fr}
  .ts-v171-best>a{grid-column:1/-1;width:100%;justify-content:center}
  .ts-v171-grid{grid-template-columns:1fr}
  .ts-v171-next-step{display:flex}
}
@media(max-width:520px){
  .ts-v171-score dl{grid-template-columns:1fr}
}


/* ===== Territórios Studio 17.5 — processamento assíncrono ===== */
[data-ts-opportunities-state] strong,
[data-ts-opportunities-state] span{
  display:block;
}

[data-ts-opportunities-state] strong{
  margin-bottom:5px;
  color:var(--ts-text);
}

[data-ts-opportunities-state] button{
  margin-top:12px;
}

.ts-v171-best__icon .dashicons-update{
  animation:ts175Rotate 1s linear infinite;
}

@keyframes ts175Rotate{
  to{transform:rotate(360deg)}
}

@media(prefers-reduced-motion:reduce){
  .ts-v171-best__icon .dashicons-update{
    animation:none!important;
  }
}


/* ===== Territórios Studio 17.6 — refinamento visual da Central ===== */

/* Cabeçalho da página */
.ts-v171-page-head{
  margin-bottom:30px;
}

.ts-v171-page-head h1{
  max-width:940px;
  font-size:clamp(46px,5vw,74px);
  line-height:.96;
}

.ts-v171-page-head p{
  max-width:780px;
  font-size:18px;
  line-height:1.6;
}

/* Bloco de pontuação */
.ts-v171-score{
  gap:34px;
  margin-bottom:28px;
  padding:32px;
  border-radius:28px;
}

.ts-v171-score h2{
  margin:8px 0 10px;
  font-size:34px;
  line-height:1.08;
}

.ts-v171-score p{
  font-size:15px;
  line-height:1.55;
}

.ts-v171-score__meter strong{
  font-size:64px;
}

.ts-v171-score__meter>span{
  font-size:13px;
}

.ts-v171-score dl div{
  padding:16px;
  border-radius:16px;
}

.ts-v171-score dt{
  font-size:11px;
  line-height:1.35;
}

.ts-v171-score dd{
  margin-top:7px;
  font-size:30px;
}

/* Próximo melhor passo */
.ts-v171-best{
  grid-template-columns:76px minmax(0,1fr) auto;
  gap:24px;
  margin-bottom:30px;
  padding:34px 36px;
  border-radius:28px;
}

.ts-v171-best__icon{
  width:76px;
  height:76px;
  border-radius:22px;
}

.ts-v171-best__icon .dashicons{
  width:34px;
  height:34px;
  font-size:34px;
}

.ts-v171-best .ts-v1-eyebrow{
  font-size:12px;
  letter-spacing:.18em;
}

.ts-v171-best h2{
  margin:8px 0 10px;
  font-size:clamp(34px,3.2vw,48px);
  line-height:1.03;
}

.ts-v171-best p{
  max-width:760px;
  font-size:17px;
  line-height:1.55;
}

.ts-v171-best small{
  margin-top:10px;
  font-size:14px;
  line-height:1.5;
}

.ts-v171-best .ts-v1-primary{
  min-height:52px;
  padding-inline:22px;
  font-size:15px;
}

/* Filtros */
.ts-v171-filters{
  gap:10px;
  margin-bottom:30px;
}

.ts-v171-filters button{
  min-height:46px;
  padding:0 18px;
  font-size:13px;
}

/* Agrupamentos */
.ts-v171-groups{
  gap:38px;
}

.ts-v171-group>header{
  margin-bottom:16px;
}

.ts-v171-group h2{
  margin:8px 0 0;
  font-size:30px;
  line-height:1.15;
}

.ts-v171-priority{
  min-height:28px;
  padding:0 11px;
  font-size:10px;
  letter-spacing:.08em;
}

.ts-v171-grid{
  gap:18px;
}

/* Cards */
.ts-v171-card{
  min-height:330px;
  padding:26px;
  border-radius:22px;
}

.ts-v171-card__top>.dashicons{
  width:46px;
  height:46px;
  border-radius:14px;
  font-size:22px;
}

.ts-v171-card h3{
  margin:24px 0 10px;
  font-size:27px;
  line-height:1.12;
}

.ts-v171-card>p{
  font-size:16px;
  line-height:1.6;
}

.ts-v171-benefit{
  margin:22px 0;
  padding:16px;
  border-radius:15px;
}

.ts-v171-benefit strong{
  margin-bottom:7px;
  font-size:13px;
}

.ts-v171-benefit span{
  font-size:14px;
  line-height:1.55;
}

.ts-v171-card>a{
  font-size:15px;
  line-height:1.4;
}

/* Card na Home */
.ts-v171-next-step{
  grid-template-columns:minmax(0,1fr) auto auto;
  gap:24px;
  margin-bottom:28px;
  padding:28px 30px;
  border-radius:24px;
}

.ts-v171-next-step .ts-v1-eyebrow{
  font-size:11px;
  letter-spacing:.16em;
}

.ts-v171-next-step h2{
  margin:8px 0;
  font-size:32px;
  line-height:1.08;
}

.ts-v171-next-step p{
  font-size:15px;
  line-height:1.55;
}

.ts-v171-next-step>a:last-child{
  font-size:14px;
  line-height:1.45;
}

/* Estados vazios e carregamento */
[data-ts-opportunities-state]{
  padding:24px;
  border:1px solid var(--ts-border);
  border-radius:18px;
  background:#fff;
  font-size:15px;
  line-height:1.55;
}

[data-ts-opportunities-state] strong{
  font-size:18px;
}

[data-ts-opportunities-state] span{
  margin-top:5px;
  font-size:14px;
}

/* Melhor respiro em telas largas */
@media(min-width:1400px){
  .ts-v171-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }

  .ts-v171-card{
    min-height:350px;
  }
}

/* Tablet */
@media(max-width:1100px){
  .ts-v171-score{
    grid-template-columns:1fr 190px;
  }

  .ts-v171-best{
    grid-template-columns:68px 1fr;
  }

  .ts-v171-best>a{
    grid-column:1/-1;
    justify-self:start;
  }
}

/* Mobile */
@media(max-width:760px){
  .ts-v171-page-head h1{
    font-size:44px;
  }

  .ts-v171-page-head p{
    font-size:16px;
  }

  .ts-v171-score{
    padding:24px;
  }

  .ts-v171-best{
    grid-template-columns:56px 1fr;
    padding:26px 24px;
  }

  .ts-v171-best__icon{
    width:56px;
    height:56px;
  }

  .ts-v171-best h2{
    font-size:34px;
  }

  .ts-v171-best p{
    font-size:16px;
  }

  .ts-v171-card{
    min-height:auto;
    padding:24px;
  }

  .ts-v171-card h3{
    font-size:25px;
  }

  .ts-v171-card>p{
    font-size:15px;
  }

  .ts-v171-next-step{
    gap:16px;
    padding:24px;
  }
}

/* Telas pequenas */
@media(max-width:520px){
  .ts-v171-page-head h1{
    font-size:38px;
  }

  .ts-v171-score h2{
    font-size:29px;
  }

  .ts-v171-score__meter strong{
    font-size:54px;
  }

  .ts-v171-group h2{
    font-size:26px;
  }

  .ts-v171-filters{
    overflow:auto;
    padding-bottom:4px;
    flex-wrap:nowrap;
  }

  .ts-v171-filters button{
    flex:0 0 auto;
  }
}


/* ===== Territórios Studio 17.6.1 — estado limpo do painel Hoje ===== */

.ts-v161-today__loading[hidden],
.ts-v161-today__grid[hidden]{
  display:none!important;
}

.ts-v161-today__grid:empty{
  display:none!important;
}

/* Evita que esqueletos antigos permaneçam visíveis após a carga. */
.ts-v161-today:not(:has(.ts-v161-today__grid:not(:empty))) .ts-v161-today__loading{
  max-height:172px;
}

/* v17.6.2 visual polish */
.ts-v161-section hr,
.ts-v171-section hr,
.ts-studio-section hr{
 display:none!important;
}
.ts-v161-section__header,
.ts-v171-section__header,
.ts-studio-section__header{
 margin-bottom:26px!important;
 padding-bottom:0!important;
 border-bottom:none!important;
}
.ts-v161-section__cards,
.ts-v171-grid{
 margin-top:0!important;
}


/* ===== Territórios Studio 17.6.3 — remoção exata da linha divisória ===== */
.ts-v1-section-head{
  border-bottom:none!important;
  padding-bottom:0!important;
  margin-bottom:26px!important;
}


/* ===== Territórios Studio 18.0 — Meu Negócio ===== */

.ts-v180-page-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:28px;
  margin-bottom:28px;
}

.ts-v180-page-head h1{
  max-width:900px;
  margin:8px 0 10px;
  font-size:clamp(46px,5vw,72px);
  line-height:.96;
  letter-spacing:-.055em;
}

.ts-v180-page-head p{
  max-width:760px;
  margin:0;
  color:var(--ts-muted);
  font-size:17px;
  line-height:1.6;
}

.ts-v180-business{
  display:grid;
  gap:22px;
}

.ts-v180-health{
  display:grid;
  grid-template-columns:minmax(0,1fr) 220px 240px;
  gap:26px;
  align-items:center;
  padding:32px 34px;
  border-radius:28px;
  background:linear-gradient(145deg,#183b28,#315b3d);
  color:#fff;
  box-shadow:0 20px 54px rgba(24,59,40,.18);
}

.ts-v180-health .ts-v1-eyebrow{color:#c8dbc9}
.ts-v180-health h2{margin:8px 0 9px;color:#fff;font-size:36px;line-height:1.05}
.ts-v180-health p{margin:0;color:rgba(255,255,255,.74);font-size:15px;line-height:1.55}

.ts-v180-health__score strong{
  display:block;
  font-size:58px;
  line-height:1;
}

.ts-v180-health__score span{
  display:block;
  margin-top:5px;
  color:rgba(255,255,255,.68);
  font-size:11px;
}

.ts-v180-health__score>div{
  height:10px;
  margin-top:13px;
  overflow:hidden;
  border-radius:999px;
  background:rgba(255,255,255,.14);
}

.ts-v180-health__score i{
  display:block;
  height:100%;
  border-radius:inherit;
  background:#dcebdd;
  transition:width .35s ease;
}

.ts-v180-health__trend{
  display:grid;
  grid-template-columns:42px minmax(0,1fr);
  gap:10px;
  align-items:center;
  padding:15px;
  border-radius:16px;
  background:rgba(255,255,255,.1);
}

.ts-v180-health__trend .dashicons{
  grid-row:1/3;
  display:grid;
  place-items:center;
  width:42px;
  height:42px;
  border-radius:13px;
  background:rgba(255,255,255,.12);
}

.ts-v180-health__trend strong{font-size:15px}
.ts-v180-health__trend small{color:rgba(255,255,255,.65);font-size:9px}
.ts-v180-health__trend strong.is-negative{color:#ffd5cf}

.ts-v180-metrics{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
}

.ts-v180-metrics article{
  display:grid;
  grid-template-columns:50px minmax(0,1fr);
  gap:13px;
  align-items:center;
  min-height:132px;
  padding:20px;
  border:1px solid var(--ts-border);
  border-radius:20px;
  background:#fff;
  box-shadow:0 10px 30px rgba(24,59,40,.05);
}

.ts-v180-metrics .dashicons{
  display:grid;
  place-items:center;
  width:50px;
  height:50px;
  border-radius:15px;
  background:#e9f1ea;
  color:var(--ts-green-800);
  font-size:23px;
}

.ts-v180-metrics strong{
  display:block;
  color:var(--ts-green-950);
  font-size:28px;
  line-height:1;
}

.ts-v180-metrics h3{
  margin:7px 0 4px;
  font-size:13px;
}

.ts-v180-metrics p{
  margin:0;
  color:var(--ts-muted);
  font-size:10px;
}

.ts-v180-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:22px;
}

.ts-v180-grid--wide{
  grid-template-columns:minmax(0,1.35fr) minmax(310px,.65fr);
}

.ts-v180-business .ts-v1-card{
  padding:26px;
  border-radius:22px;
}

.ts-v180-period{
  color:var(--ts-muted);
  font-size:10px;
  font-weight:750;
}

.ts-v180-chart{
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:14px;
  min-height:290px;
  align-items:end;
  padding-top:18px;
}

.ts-v180-chart__item{
  display:grid;
  gap:7px;
  text-align:center;
}

.ts-v180-chart__bar{
  display:flex;
  height:205px;
  align-items:end;
  overflow:hidden;
  border-radius:14px;
  background:#eef2ed;
}

.ts-v180-chart__bar i{
  width:100%;
  min-height:8px;
  border-radius:14px 14px 0 0;
  background:linear-gradient(180deg,#6c9472,#315b3d);
  transition:height .4s ease;
}

.ts-v180-chart__item strong{font-size:11px}
.ts-v180-chart__item span{color:var(--ts-muted);font-size:8px}

.ts-v180-profile-card h2{margin:7px 0 16px;font-size:28px}
.ts-v180-profile-score{display:flex;align-items:flex-end;gap:8px}
.ts-v180-profile-score strong{color:var(--ts-green-800);font-size:46px;line-height:1}
.ts-v180-profile-score span{color:var(--ts-muted);font-size:10px}
.ts-v180-profile-card .ts-v1-progress{margin:12px 0 18px}

.ts-v180-profile-list{
  display:grid;
  gap:8px;
  margin-bottom:18px;
}

.ts-v180-profile-list>div{
  display:flex;
  gap:9px;
  align-items:center;
  padding:8px 10px;
  border-radius:10px;
  background:#f5f7f4;
  color:var(--ts-muted);
  font-size:10px;
}

.ts-v180-profile-list>div.is-done{
  color:var(--ts-green-800);
}

.ts-v180-profile-list span{
  width:18px;
  font-weight:900;
}

.ts-v180-profile-card>a{
  color:var(--ts-green-800)!important;
  font-size:10px;
  font-weight:850;
  text-decoration:none!important;
}

.ts-v180-products-card>div:last-child,
.ts-v180-attention-card>div:last-child,
.ts-v180-insights-card>div:last-child,
.ts-v180-next-card>div:nth-child(2){
  display:grid;
  gap:10px;
}

.ts-v180-products-card [data-ts-business-top-products]>a,
.ts-v180-attention-card [data-ts-business-attention]>a,
.ts-v180-next-card [data-ts-business-next]>a{
  display:grid;
  grid-template-columns:38px 48px minmax(0,1fr);
  gap:11px;
  align-items:center;
  min-height:66px;
  padding:10px;
  border:1px solid #e0e5df;
  border-radius:14px;
  background:#fafbf9;
  color:var(--ts-text)!important;
  text-decoration:none!important;
}

.ts-v180-products-card [data-ts-business-top-products]>a>b{
  display:grid;
  place-items:center;
  width:38px;
  height:38px;
  border-radius:50%;
  background:#eaf1ea;
  color:var(--ts-green-800);
}

.ts-v180-products-card img{
  width:48px;
  height:48px;
  object-fit:cover;
  border-radius:11px;
}

.ts-v180-products-card strong,
.ts-v180-products-card span,
.ts-v180-attention-card strong,
.ts-v180-attention-card small,
.ts-v180-next-card strong,
.ts-v180-next-card small{
  display:block;
}

.ts-v180-products-card strong,
.ts-v180-attention-card strong,
.ts-v180-next-card strong{font-size:11px}

.ts-v180-products-card span,
.ts-v180-attention-card small,
.ts-v180-next-card small{
  margin-top:4px;
  color:var(--ts-muted);
  font-size:8px;
  line-height:1.4;
}

.ts-v180-attention-card [data-ts-business-attention]>a{
  grid-template-columns:40px minmax(0,1fr);
}

.ts-v180-attention-card .dashicons{
  display:grid;
  place-items:center;
  width:40px;
  height:40px;
  border-radius:12px;
  background:#fff1ef;
  color:#a4463e;
}

.ts-v180-insights-card [data-ts-business-insights]>div{
  display:grid;
  grid-template-columns:38px minmax(0,1fr);
  gap:11px;
  align-items:start;
  padding:13px;
  border-radius:14px;
  background:#f3f7f3;
}

.ts-v180-insights-card .dashicons{
  display:grid;
  place-items:center;
  width:38px;
  height:38px;
  border-radius:12px;
  background:#e2eee3;
  color:var(--ts-green-800);
}

.ts-v180-insights-card p{
  margin:0;
  color:#4f6055;
  font-size:11px;
  line-height:1.55;
}

.ts-v180-next-card [data-ts-business-next]>a{
  grid-template-columns:28px minmax(0,1fr);
}

.ts-v180-next-card [data-ts-business-next]>a>span{
  color:var(--ts-green-800);
  font-size:20px;
}

.ts-v180-next-card .ts-v1-secondary{
  margin-top:16px;
}

.ts-v180-closing{
  display:grid;
  grid-template-columns:64px minmax(0,1fr);
  gap:18px;
  align-items:center;
  padding:28px 30px;
  border-radius:22px;
  background:#eaf2eb;
}

.ts-v180-closing>.dashicons{
  display:grid;
  place-items:center;
  width:64px;
  height:64px;
  border-radius:19px;
  background:var(--ts-green-800);
  color:#fff;
  font-size:28px;
}

.ts-v180-closing h2{
  margin:7px 0 6px;
  font-size:28px;
}

.ts-v180-closing p{
  margin:0;
  color:var(--ts-muted);
  font-size:12px;
}

@media(max-width:1100px){
  .ts-v180-health{grid-template-columns:1fr 180px}
  .ts-v180-health__trend{grid-column:1/-1}
  .ts-v180-metrics{grid-template-columns:repeat(2,1fr)}
  .ts-v180-grid--wide{grid-template-columns:1fr}
}

@media(max-width:760px){
  .ts-v180-page-head{align-items:stretch;flex-direction:column}
  .ts-v180-health{grid-template-columns:1fr;padding:26px 24px}
  .ts-v180-health__trend{grid-column:auto}
  .ts-v180-grid{grid-template-columns:1fr}
}

@media(max-width:520px){
  .ts-v180-page-head h1{font-size:42px}
  .ts-v180-metrics{grid-template-columns:1fr}
  .ts-v180-chart{gap:8px}
  .ts-v180-chart__bar{height:160px}
}


/* ===== Territórios Studio 18.1 — Identidade do Empreendimento ===== */

.ts-v181-identity-facts{
  margin-top:22px;
  padding:22px;
  border:1px solid #dbe4dc;
  border-radius:18px;
  background:linear-gradient(145deg,#f8faf7,#eef5ef);
}

.ts-v181-identity-facts .ts-v81-section-intro{
  margin-bottom:18px;
}

.ts-v181-identity-facts h3{
  margin:6px 0 7px;
  color:var(--ts-green-950);
  font-size:22px;
  line-height:1.15;
}

.ts-v181-identity-facts p{
  max-width:680px;
  margin:0;
  color:var(--ts-muted);
  font-size:11px;
  line-height:1.5;
}

.ts-v181-identity-grid input{
  font-size:16px!important;
  font-weight:750;
}

.ts-v181-identity-grid small{
  display:block;
  margin-top:7px;
  color:var(--ts-muted);
  font-size:9px;
  line-height:1.45;
}

.ts-v181-preview-facts{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin-top:12px;
}

.ts-v181-preview-facts span{
  display:inline-flex;
  min-height:28px;
  align-items:center;
  padding:0 10px;
  border-radius:999px;
  background:#eaf2eb;
  color:var(--ts-green-800);
  font-size:9px;
  font-weight:850;
}

.ts-v181-preview-facts span[hidden]{
  display:none!important;
}

@media(max-width:620px){
  .ts-v181-identity-facts{
    padding:18px;
  }

  .ts-v181-identity-grid{
    grid-template-columns:1fr!important;
  }
}


/* ===== Territórios Studio 18.2 — Qualidade do Empreendimento ===== */

.ts-v182-page-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:28px;
  margin-bottom:28px;
}

.ts-v182-page-head h1{
  max-width:900px;
  margin:8px 0 10px;
  font-size:clamp(46px,5vw,72px);
  line-height:.96;
  letter-spacing:-.055em;
}

.ts-v182-page-head p{
  max-width:760px;
  margin:0;
  color:var(--ts-muted);
  font-size:17px;
  line-height:1.6;
}

.ts-v182-quality{
  display:grid;
  gap:22px;
}

.ts-v182-hero{
  display:grid;
  grid-template-columns:170px minmax(0,1fr) 240px;
  gap:26px;
  align-items:center;
  padding:32px 34px;
  border-radius:28px;
  background:linear-gradient(145deg,#183b28,#315b3d);
  color:#fff;
  box-shadow:0 20px 54px rgba(24,59,40,.18);
}

.ts-v182-hero__score{
  display:flex;
  align-items:flex-end;
  gap:5px;
}

.ts-v182-hero__score strong{
  font-size:76px;
  line-height:.9;
}

.ts-v182-hero__score span{
  padding-bottom:8px;
  color:rgba(255,255,255,.64);
  font-size:18px;
}

.ts-v182-hero .ts-v1-eyebrow{
  color:#c7d9ca;
}

.ts-v182-hero h2{
  margin:7px 0 8px;
  color:#fff;
  font-size:38px;
  line-height:1.02;
}

.ts-v182-hero p{
  max-width:700px;
  margin:0;
  color:rgba(255,255,255,.72);
  font-size:15px;
  line-height:1.55;
}

.ts-v182-hero__delta{
  display:grid;
  grid-template-columns:44px minmax(0,1fr);
  gap:10px;
  align-items:center;
  padding:16px;
  border-radius:17px;
  background:rgba(255,255,255,.1);
}

.ts-v182-hero__delta .dashicons{
  grid-row:1/3;
  display:grid;
  place-items:center;
  width:44px;
  height:44px;
  border-radius:13px;
  background:rgba(255,255,255,.12);
}

.ts-v182-hero__delta strong{font-size:15px}
.ts-v182-hero__delta small{color:rgba(255,255,255,.64);font-size:9px}
.ts-v182-hero__delta strong.is-negative{color:#ffd4cf}

.ts-v182-category-grid{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:12px;
}

.ts-v182-category-grid>button{
  min-height:138px;
  padding:18px;
  border:1px solid var(--ts-border);
  border-radius:19px;
  background:#fff;
  text-align:left;
  cursor:pointer;
  box-shadow:0 10px 28px rgba(24,59,40,.045);
}

.ts-v182-category__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.ts-v182-category__head span{
  color:var(--ts-text);
  font-size:12px;
  font-weight:850;
}

.ts-v182-category__head strong{
  color:var(--ts-green-800);
  font-size:23px;
}

.ts-v182-category__bar{
  height:9px;
  margin:18px 0 10px;
  overflow:hidden;
  border-radius:999px;
  background:#e8ede8;
}

.ts-v182-category__bar i{
  display:block;
  height:100%;
  border-radius:inherit;
  background:linear-gradient(90deg,#315b3d,#86a98b);
}

.ts-v182-category-grid small{
  color:var(--ts-muted);
  font-size:9px;
}

.ts-v182-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:22px;
}

.ts-v182-quality .ts-v1-card{
  padding:26px;
  border-radius:22px;
}

.ts-v182-improvements [data-ts-quality-improvements]{
  display:grid;
  gap:10px;
}

.ts-v182-improvements [data-ts-quality-improvements]>a{
  display:grid;
  grid-template-columns:40px minmax(0,1fr) auto;
  gap:12px;
  align-items:center;
  min-height:72px;
  padding:12px;
  border:1px solid #dfe5df;
  border-radius:14px;
  background:#fafbf9;
  color:var(--ts-text)!important;
  text-decoration:none!important;
}

.ts-v182-improvements b{
  display:grid;
  place-items:center;
  width:40px;
  height:40px;
  border-radius:50%;
  background:#e8f0e9;
  color:var(--ts-green-800);
}

.ts-v182-improvements strong,
.ts-v182-improvements span{
  display:block;
}

.ts-v182-improvements strong{
  font-size:12px;
}

.ts-v182-improvements span{
  margin-top:4px;
  color:var(--ts-muted);
  font-size:9px;
}

.ts-v182-improvements em{
  color:var(--ts-green-800);
  font-size:9px;
  font-style:normal;
  font-weight:850;
}

.ts-v182-checklist__tabs{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin-bottom:15px;
}

.ts-v182-checklist__tabs button{
  min-height:34px;
  padding:0 11px;
  border:1px solid var(--ts-border);
  border-radius:999px;
  background:#fff;
  color:var(--ts-muted);
  font:inherit;
  font-size:9px;
  font-weight:800;
  cursor:pointer;
}

.ts-v182-checklist__tabs button.is-active{
  border-color:var(--ts-green-800);
  background:var(--ts-green-800);
  color:#fff;
}

.ts-v182-checklist__items{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
}

.ts-v182-checklist__items>div{
  display:flex;
  gap:9px;
  align-items:center;
  min-height:42px;
  padding:9px 10px;
  border-radius:11px;
  background:#f6f7f5;
  color:var(--ts-muted);
}

.ts-v182-checklist__items>div.is-done{
  background:#edf5ee;
  color:var(--ts-green-800);
}

.ts-v182-checklist__items span{
  width:18px;
  font-weight:900;
}

.ts-v182-checklist__items strong{
  font-size:9px;
  line-height:1.35;
}

.ts-v182-reading{
  display:grid;
  grid-template-columns:66px minmax(0,1fr) auto;
  gap:20px;
  align-items:center;
  padding:28px 30px;
  border-radius:22px;
  background:#eaf2eb;
}

.ts-v182-reading>.dashicons{
  display:grid;
  place-items:center;
  width:66px;
  height:66px;
  border-radius:19px;
  background:var(--ts-green-800);
  color:#fff;
  font-size:28px;
}

.ts-v182-reading h2{
  margin:7px 0 6px;
  font-size:29px;
}

.ts-v182-reading p{
  margin:0;
  color:var(--ts-muted);
  font-size:12px;
}

@media(max-width:1100px){
  .ts-v182-hero{
    grid-template-columns:150px 1fr;
  }

  .ts-v182-hero__delta{
    grid-column:1/-1;
  }

  .ts-v182-category-grid{
    grid-template-columns:repeat(3,1fr);
  }
}

@media(max-width:760px){
  .ts-v182-page-head{
    align-items:stretch;
    flex-direction:column;
  }

  .ts-v182-hero{
    grid-template-columns:1fr;
    padding:26px 24px;
  }

  .ts-v182-hero__delta{
    grid-column:auto;
  }

  .ts-v182-category-grid{
    grid-template-columns:repeat(2,1fr);
  }

  .ts-v182-grid{
    grid-template-columns:1fr;
  }

  .ts-v182-reading{
    grid-template-columns:56px 1fr;
  }

  .ts-v182-reading>a{
    grid-column:1/-1;
    justify-content:center;
  }
}

@media(max-width:520px){
  .ts-v182-page-head h1{font-size:42px}
  .ts-v182-category-grid{grid-template-columns:1fr}
  .ts-v182-checklist__items{grid-template-columns:1fr}
}
