@import url("/operator/operator.css?v=partner-c3-notificaciones") layer(operator);
@import url("/operator/operator-ui.css") layer(operator);

:root {
  color-scheme: light;
  --page:#f4f6fa; --surface:#fff; --soft:#f7f9fc; --text:#1d2433; --muted:#506078;
  --line:#dce3ed; --accent:#086e61; --primary:#08786a; --tint:#e3f6f2; --focus:#0d7669;
  --ok:#0b6846; --ok-bg:#ddf5ea; --warn:#8c4a07; --warn-bg:#fff0dc;
  --blue:#2148a1; --blue-bg:#e2ecff; --error:#9b2930; --error-bg:#fce7e8;
  font: 16px 'IBM Plex Sans',system-ui,sans-serif;
}
:root[data-theme=dark] {
  color-scheme:dark;
  --page:#111922; --surface:#192532; --soft:#21303f; --text:#edf4fc; --muted:#b3c4d8;
  --line:#35465a; --accent:#7be2cc; --primary:#08786a; --tint:#213d3b; --focus:#7be2cc;
  --ok:#a2ebc4; --ok-bg:#233e36; --warn:#ffd294; --warn-bg:#453325;
  --blue:#b6caff; --blue-bg:#293e61; --error:#ffb8bc; --error-bg:#4a282e;
}
*, *::before, *::after { box-sizing:border-box }
[hidden] { display:none !important }
body { margin:0; background:var(--page); color:var(--text); min-width:300px }
a { color:var(--accent); text-underline-offset:.18em }
button, input, textarea, select { font:inherit }
button { cursor:pointer }
button:disabled { cursor:wait; opacity:.65 }
:focus-visible { outline:3px solid var(--focus); outline-offset:3px }
.skip-link { position:fixed; top:8px; left:8px; z-index:5; background:var(--surface); padding:10px; transform:translateY(-150%) }
.skip-link:focus { transform:none }
.brand { display:inline-flex; align-items:center; gap:10px; color:var(--text); font:700 1.12rem 'Space Grotesk',system-ui,sans-serif; text-decoration:none; white-space:nowrap }
.brand-mark,.avatar { width:34px; height:34px; display:grid; place-items:center; font-weight:700; flex:none }
.brand-mark { background:#ff8a3d; color:#272127; border-radius:9px }
.avatar { background:var(--primary); color:#fff; border-radius:50% }
.partner-seal { font:700 .68rem 'IBM Plex Sans',sans-serif; letter-spacing:.09em; background:var(--primary); color:#fff; border-radius:999px; padding:5px 9px }
.topbar { display:flex; align-items:center; gap:20px; min-height:63px; padding:10px 20px; border-bottom:1px solid var(--line); background:var(--surface) }
#partner-org-label { display:flex; align-items:center; gap:8px; color:var(--muted); font-size:.875rem }
#partner-org { width:auto; max-width:32vw; min-height:36px; color:var(--accent); font-weight:600; padding:4px 9px }
.account { margin-left:auto; display:flex; align-items:center; gap:8px }
#identity { display:grid; text-align:right; font-size:.79rem; color:var(--muted); overflow-wrap:anywhere }
#identity strong { color:var(--text); font-size:.88rem }
.layout { display:grid; grid-template-columns:220px minmax(0,1fr); min-height:calc(100vh - 63px) }
.sidebar { padding:14px 12px; border-right:1px solid var(--line); background:var(--surface) }
.nav-group { margin:16px 10px 6px; color:var(--muted); font-size:.7rem; font-weight:700; letter-spacing:.1em }
.nav-item { display:flex; justify-content:space-between; align-items:center; gap:6px; padding:9px 12px; margin:2px 0; border-radius:9px; color:var(--text); text-decoration:none; font-size:.9rem }
.nav-item:hover { background:var(--soft) }
.nav-item[aria-current=page] { background:var(--tint); color:var(--accent); font-weight:700; box-shadow:inset 3px 0 var(--focus) }
.nav-count { border-radius:999px; background:var(--soft); color:var(--muted); font-size:.75rem; padding:1px 7px }
.isolation { padding:10px 12px; border:1px dashed var(--focus); border-radius:10px; background:var(--tint); color:var(--accent); font-size:.84rem; line-height:1.35 }
.sidebar .isolation { margin:18px 4px }
.content { min-width:0; padding:22px clamp(16px,2vw,28px) 32px }
.section { display:none }
.section.active { display:block }
.heading { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px; margin-bottom:14px }
.heading > div { min-width:0 }
h1,h2,h3,p { overflow-wrap:anywhere }
h1 { margin:0; font:700 clamp(1.45rem,2.3vw,1.78rem)/1.2 'Space Grotesk',system-ui,sans-serif }
h2 { margin:0 0 10px; font-size:1rem }
.eyebrow { font-size:.72rem; letter-spacing:.11em; color:var(--accent); font-weight:700; margin:0 0 5px }
.lede,.meta,.empty { color:var(--muted); font-size:.89rem; line-height:1.45 }
.lede { margin:5px 0 0 }
.meta { font-size:.79rem }
.empty { margin:6px 0 }
.metric-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:12px; margin-bottom:16px }
.metric-grid.client-metrics { grid-template-columns:repeat(4,minmax(0,1fr)) }
.metric,.panel,.auth-card { padding:14px 16px; background:var(--surface); border:1px solid var(--line); border-radius:12px; min-width:0 }
.metric strong { display:block; font-size:1.66rem; line-height:1.15; font-variant-numeric:tabular-nums }
.metric span,.metric small { display:block; color:var(--muted); margin-top:4px; font-size:.83rem }
.metric small { color:var(--accent); font-weight:600 }
.metric small.warn { color:var(--warn) }
.two-column { display:grid; grid-template-columns:minmax(0,1.6fr) minmax(0,1fr); gap:14px; align-items:start }
.table-wrap { overflow-x:auto }
table { border-collapse:collapse; width:100%; font-size:.865rem }
th { text-align:left; color:var(--muted); font-size:.72rem; font-weight:700; letter-spacing:.055em }
td, th { padding:9px 7px; border-bottom:1px solid var(--line); vertical-align:middle }
tbody th { text-transform:none; letter-spacing:normal; font-size:inherit; color:var(--text) }
tbody tr:last-child > * { border-bottom:0 }
td small { display:block }
.state-chip { display:inline-block; border-radius:999px; padding:3px 8px; background:var(--soft); color:var(--muted); font-size:.75rem; font-weight:700; line-height:1.2 }
.state-chip.success { background:var(--ok-bg); color:var(--ok) }
.state-chip.accent { background:var(--blue-bg); color:var(--blue) }
.state-chip.warning { background:var(--warn-bg); color:var(--warn) }
.bar { display:inline-block; vertical-align:middle; border-radius:5px; background:var(--soft); overflow:hidden; width:clamp(24px,4vw,80px); height:6px; margin-right:5px }
.bar i { display:block; height:100%; background:#df7533 }
.attention-list { list-style:none; padding:0; margin:0 }
.attention-list li { padding:8px 0; border-bottom:1px solid var(--line); display:flex; align-items:baseline; gap:8px; font-size:.88rem }
.attention-list li::before { content:''; display:inline-block; flex:none; width:8px; height:8px; border-radius:50%; background:var(--focus) }
.attention-list li[data-tone=warning]::before { background:#d98212 }
.attention-list li[data-tone=accent]::before { background:#4774e4 }
.tabs { display:flex; flex-wrap:wrap; gap:2px 18px; border-bottom:1px solid var(--line); margin:0 0 14px }
.tabs a { padding:9px 0; border-bottom:3px solid transparent; color:var(--muted); text-decoration:none; font-size:.91rem }
.tabs a[aria-current=page] { color:var(--accent); border-color:var(--focus); font-weight:700 }
.breadcrumb { margin:0 0 8px; font-size:.83rem; color:var(--muted) }
.button { display:inline-flex; justify-content:center; align-items:center; min-height:40px; padding:7px 12px; border:1px solid transparent; border-radius:9px; text-decoration:none; font-size:.86rem; font-weight:600; line-height:1.25 }
.button.primary { background:var(--primary); color:#fff }
.button.secondary { background:var(--surface); border-color:var(--line); color:var(--text) }
.button.quiet { background:transparent; color:var(--accent) }
.button:hover { box-shadow:inset 0 0 0 1px currentColor }
.form-actions { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-top:10px }
form label,.mobile-nav label { display:grid; gap:4px; font-weight:600; font-size:.88rem }
input, select, textarea { width:100%; background:var(--soft); color:var(--text); min-height:40px; border:1px solid var(--line); border-radius:8px; padding:7px 9px }
textarea { resize:vertical }
.form-grid,.date-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px }
.form-grid { margin-bottom:12px }
.wide { grid-column:1/-1 }
.stack-form { display:grid; gap:12px }
.auth-shell { min-height:100vh; display:grid; place-items:center; padding:20px }
.auth-card { width:min(100%,420px); padding:28px }
.auth-card .eyebrow { margin:15px 0 4px }
.auth-card form { margin:14px 0 }
.message { color:var(--error); font-size:.9rem; margin:6px 0 }
.message:empty { margin:0 }
.message.success { color:var(--ok) }
.mobile-nav { display:none }
dialog { max-width:min(100% - 24px,530px); width:100%; max-height:calc(100dvh - 24px); overflow:auto; border-radius:14px; border:1px solid var(--line); background:var(--surface); color:var(--text); padding:20px }
dialog::backdrop { background:#07141ab3 }
@media (max-width:1150px) { .metric-grid { grid-template-columns:repeat(3,minmax(0,1fr)) } .two-column { grid-template-columns:1fr } }
@media (max-width:780px) {
 .layout { grid-template-columns:1fr; min-height:0 }
 .topbar { flex-wrap:wrap; gap:8px; padding:10px 14px }
 #partner-org-label { order:3; width:100% }
 #partner-org { max-width:none; width:min(100%,340px) }
 #identity { display:none }
 .sidebar { display:none }
 .mobile-nav { display:block; margin:0 0 14px }
 .metric-grid.client-metrics { grid-template-columns:repeat(2,minmax(0,1fr)) }
}
@media (max-width:490px) {
 .metric-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px }
 .metric,.panel { padding:12px }
 .metric strong { font-size:1.4rem }
 .content { padding:14px 12px 24px }
 .avatar,.account #identity { display:none }
 .account { gap:0 }
 .account .button { padding:6px }
 .brand { gap:6px; font-size:1rem }
 .brand-mark { width:29px; height:29px }
 .partner-seal { padding:4px 6px }
 .form-grid,.date-fields { grid-template-columns:1fr }
 .table-wrap table { min-width:0 }
 .table-wrap:has(th:nth-child(5)) table { display:block }
 .table-wrap:has(th:nth-child(5)) thead { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap }
 .table-wrap:has(th:nth-child(5)) tbody { display:grid; gap:0 }
 .table-wrap:has(th:nth-child(5)) tbody tr { display:grid; grid-template-columns:1fr 1fr; gap:7px 12px; padding:12px 3px; border-bottom:1px solid var(--line) }
 .table-wrap:has(th:nth-child(5)) tbody tr:last-child { border-bottom:0 }
 .table-wrap:has(th:nth-child(5)) tbody th,.table-wrap:has(th:nth-child(5)) tbody td { padding:0; border:0 }
 .table-wrap:has(th:nth-child(5)) tbody th { grid-column:1/-1 }
 .table-wrap:has(th:nth-child(5)) td:empty { display:none }
 .table-wrap:has(th:nth-child(5)) td:not(:empty)::before { content:attr(data-label); display:block; color:var(--muted); font-size:.65rem; font-weight:700; letter-spacing:.05em; margin-bottom:3px }
 .table-wrap .button { justify-content:flex-start; padding-inline:0; min-height:30px }
}

/* Product identity and the Partner workspace */
:root {
  --page:#f3faf9; --surface:#fff; --soft:#f6f8fa; --text:#0f1b26; --muted:#526171;
  --line:#dce5ea; --accent:#086b5f; --primary:#08786c; --tint:#e3f6f2; --focus:#077567;
  --blue:#2459a8; --blue-bg:#e8f0ff; --warn:#805009; --warn-bg:#fff4e0;
  --side:#fbfcfd; --edge:#e9eef2; --teal:#22c3a6; --cyan:#0e8f8f; --blue-mark:#408cff;
  --glow1:#22c3a659; --glow2:#408cff47;
  --shadow:0 1px 2px #182a3c0a,0 4px 15px #182a3c09;
}
:root[data-theme=dark] {
  --page:#131a22; --surface:#1b232d; --soft:#202a36; --text:#eef2f6; --muted:#abb8c8;
  --line:#2a3441; --accent:#73dfc9; --primary:#66d9c0; --tint:#243b3b; --focus:#73dfc9;
  --blue:#b0c8ff; --blue-bg:#283b57; --warn:#ffd183; --warn-bg:#3c3226;
  --side:#161e27; --edge:#2a3441; --glow1:#22c3a624; --glow2:#408cff25;
  --shadow:0 1px 2px #0a101544,0 6px 18px #0a101538;
}
.visual-icon,.product-emblem svg {
  width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.75;
  stroke-linecap:round;stroke-linejoin:round;flex:none
}
.product-lockup {display:inline-flex;align-items:center;gap:11px;text-decoration:none;color:var(--text);flex:none}
.product-emblem {
  display:grid;place-items:center;width:37px;height:37px;border-radius:10px;
  background:linear-gradient(145deg,#149582,#08695f);color:white;
  box-shadow:0 4px 10px #08695f30,inset 0 1px 0 #ffffff35
}
.product-emblem svg {width:22px;height:22px}
.product-wordmark {display:grid;gap:4px;line-height:1}
.product-wordmark strong {font:700 1.21rem/1 'Space Grotesk',system-ui,sans-serif;letter-spacing:-.025em}
.product-signature {display:flex;align-items:center;gap:5px;color:var(--muted);font-size:.69rem;font-weight:600}

.topbar {position:sticky;top:0;z-index:3;min-height:65px;padding:9px 22px;gap:16px}
.topbar .product-lockup {border-right:1px solid var(--line);padding-right:16px}
#partner-org-label {width:auto;min-width:0;padding:6px 10px 6px 8px;background:var(--soft);border:1px solid var(--line);border-radius:10px;gap:8px}
#portfolio-initials,.client-initials {
  display:grid;place-items:center;flex:none;width:26px;height:26px;border-radius:7px;
  color:var(--blue);background:var(--blue-bg);font-size:.72rem;font-weight:750
}
.portfolio-picker {display:grid;min-width:0}
.portfolio-picker>span {font-size:.62rem;line-height:1.15;text-transform:uppercase;letter-spacing:.07em;font-weight:750}
#partner-org {border:0;min-height:0;padding:0 4px 0 0;border-radius:4px;color:var(--text);font-size:.86rem;max-width:32vw}
#partner-org:disabled {opacity:1;appearance:none}
.header-read-only {margin:0 0 0 auto;padding:6px 10px;display:flex;align-items:center;gap:6px;color:var(--warn);background:var(--warn-bg);border:1px solid currentColor;border-radius:999px;font-size:.75rem;font-weight:700;line-height:1.2}
.header-read-only+.account {margin-left:0}
.header-read-only[hidden]+.account {margin-left:auto}
.account {gap:10px}
#identity {border-left:1px solid var(--line);padding-left:12px}
.avatar {background:linear-gradient(145deg,#427ee1,#305ba5);font-size:.76rem;box-shadow:0 0 0 2px var(--surface),0 0 0 3px var(--line)}
#theme {width:36px;min-height:36px;padding:0;background:var(--soft);border:1px solid var(--line);color:var(--muted)}
#theme .visual-icon {width:18px;height:18px}
.layout {grid-template-columns:232px minmax(0,1fr);min-height:calc(100dvh - 65px)}
.sidebar {background:color-mix(in srgb,var(--side) 76%,transparent);display:flex;flex-direction:column;padding:16px 12px}
body {
  background:radial-gradient(ellipse clamp(520px,58vw,940px) 500px at 10% 0%,var(--glow1),transparent 75%),
    radial-gradient(ellipse clamp(490px,58vw,900px) 470px at 100% 100%,var(--glow2),transparent 74%),var(--page);
  background-repeat:no-repeat;
}
body::before { content:none }
body:has(#auth-view:not([hidden])) {padding:0}
#app-view > .layout { background:color-mix(in srgb,var(--surface) 56%,transparent);border:1px solid var(--line);border-radius:18px; }
html[data-theme=dark] #app-view > .layout {background:color-mix(in srgb,var(--surface) 38%,transparent)}
#app-view .topbar {background:var(--surface);border:1px solid var(--line);min-height:72px;padding-inline:16px}
#app-view .sidebar {border-radius:17px 0 0 17px;backdrop-filter:none;align-self:stretch;height:auto;max-height:none}
#app-view .sidebar .isolation {margin:14px 0 0;background:var(--tint)}
#app-view > .topbar .avatar {background:var(--primary);width:44px;height:44px;box-shadow:none}
html[data-theme=dark] #app-view > .topbar .avatar {color:var(--page)}
@media (min-width:1100px) {
  #app-view > .layout {grid-template-columns:211px minmax(0,1fr)}
  #app-view .content {padding:28px 39px 38px}
  #app-view .topbar .account {flex:1;margin-left:0}
  #partner-search {width:min(38vw,486px);margin-right:auto}
}
@media (max-width:780px) {.partner-home-link{display:none}}
.nav-item {position:relative;justify-content:flex-start;gap:10px;margin:2px 0;min-height:36px;padding:7px 10px;color:var(--muted)}
.nav-item[aria-current=page] {box-shadow:none;color:var(--text)}
.nav-item[aria-current=page]::before {content:'';position:absolute;left:-12px;top:8px;bottom:8px;width:3px;background:var(--teal);border-radius:0 3px 3px 0}
.nav-item .visual-icon {color:var(--muted)}
.nav-item[aria-current=page] .visual-icon {color:var(--accent)}
.nav-count {margin-left:auto;background:transparent;padding:0 3px}
.sidebar .isolation {margin:auto 0 0;border:1px solid var(--line);background:var(--surface);color:var(--muted);box-shadow:var(--shadow)}
#partner-navigation {margin-bottom:22px}
.isolation strong {display:flex;gap:8px;align-items:center;color:var(--text);font-size:.81rem;margin-bottom:4px}
.isolation strong svg {color:var(--accent)}
.isolation span {display:block;font-size:.77rem}
.content {padding:24px 28px 32px}
.breadcrumb {display:flex;flex-wrap:wrap;align-items:center;gap:7px;margin:0 0 8px;font-size:.78rem}
.breadcrumb a {display:inline-flex;align-items:center}
.heading {align-items:flex-end;padding-bottom:16px;border-bottom:1px solid var(--line);margin-bottom:18px}
.heading h1 {letter-spacing:-.025em}
.heading h1+.state-chip {margin-top:6px}
.button {gap:7px}
.button.primary {box-shadow:0 4px 10px #0e8f8f26}
:root[data-theme=dark] .button.primary {color:#0e2422}
.metric,.panel,.auth-card {border-radius:14px;box-shadow:var(--shadow)}
.metric {position:relative;overflow:hidden;padding:13px 14px 15px}
.metric::before {content:'';position:absolute;inset:0 0 auto;height:2px;background:var(--teal);opacity:.72}
.metric:nth-child(even)::before {background:var(--blue-mark)}
.metric-label {display:flex;align-items:center;gap:7px;color:var(--muted);font-size:.78rem;font-weight:650;min-height:28px}
.metric .metric-icon,.attention-icon {display:grid;place-items:center;width:26px;height:26px;border-radius:8px;background:var(--tint);color:var(--accent);flex:none;margin:0}
.metric:nth-child(even) .metric-icon,.attention-icon {background:var(--blue-bg);color:var(--blue)}
.metric strong {margin:9px 0 5px;font-size:1.72rem}
.metric .metric-pill {display:inline-block;margin:2px 0 0;padding:3px 7px;border-radius:999px;background:var(--tint);color:var(--accent);line-height:1.25;font-size:.73rem}
.metric .metric-pill.warn {background:var(--warn-bg);color:var(--warn)}
.two-column.overview-grid {grid-template-columns:minmax(0,2.15fr) minmax(0,1fr)}
.overview-card {padding:0;overflow:hidden}
.card-heading {display:flex;align-items:center;gap:9px;min-height:48px;padding:10px 15px;border-bottom:1px solid var(--edge)}
.card-heading h2 {margin:0}
.card-heading a {margin-left:auto;font-size:.81rem;font-weight:650}
.overview-card .empty {padding:12px 15px}
.overview-card .form-actions {padding:0 14px 12px}
table thead {background:var(--soft)}
th,td {border-color:var(--edge)}
.overview-card table td,.overview-card table th {padding:10px 12px}
.client-identity {display:flex;align-items:center;gap:9px}
.client-identity a {color:var(--text);font-weight:700;text-decoration-color:var(--accent)}
.client-identity small {display:block;font-weight:400;margin-top:2px}
.client-initials {width:30px;height:30px;background:var(--tint);color:var(--accent)}
tr:nth-child(3n+2) .client-initials {background:var(--blue-bg);color:var(--blue)}
tr:nth-child(3n) .client-initials {background:var(--warn-bg);color:var(--warn)}
.state-chip {display:inline-flex;align-items:center;gap:5px}
.table-wrap :is(thead th,td,.state-chip,td a,td .button) {white-space:nowrap}
.table-wrap tbody th {white-space:normal}
.table-wrap td[data-label="CLIENTE"] {white-space:normal}
.table-wrap td[data-label="EVIDENCIA"] {white-space:normal;min-width:8rem;overflow-wrap:anywhere}
.table-wrap td:has(.bar) {min-width:6rem}
.state-chip::before {content:'';width:5px;height:5px;border-radius:50%;background:currentColor;flex:none}
.attention-list li {align-items:center;gap:10px;padding:10px 14px;border-color:var(--edge)}
.attention-list li::before {display:none}
.attention-list li .attention-icon {width:29px;height:29px}
.attention-list li[data-tone=warning] .attention-icon {background:var(--warn-bg);color:var(--warn)}
.auth-shell {min-height:100dvh}
.auth-card {width:min(100%,430px);padding:34px;text-align:center}
.auth-card .product-lockup {margin-bottom:22px;text-align:left}
.auth-card form {margin:24px 0 0;text-align:left}
.auth-card form .button {width:100%}
.auth-card .product-emblem {width:48px;height:48px;border-radius:13px}
.auth-card .product-emblem svg {width:27px;height:27px}
.auth-card .product-wordmark strong {font-size:1.62rem}
.cross-login {border-top:1px solid var(--edge);margin:16px 0 0;padding-top:13px;color:var(--muted);font-size:.83rem}
.cross-login a {font-weight:700}
@media(max-width:1100px) { .two-column.overview-grid {grid-template-columns:1fr} }
@media(max-width:780px) {
  .layout {grid-template-columns:1fr;min-height:0}
  .sidebar {display:none}
  .topbar {gap:8px;padding:8px 12px}
  .topbar .product-lockup {border:0;padding:0}
  .account,.header-read-only+.account {margin-left:auto}
  #partner-org-label {order:3;width:100%}
  .portfolio-picker {flex:1}
  #partner-org {width:100%;max-width:none}
  .header-read-only {order:4;width:100%;justify-content:center;margin:0;border-radius:8px}
  .content {padding:14px 12px 24px}
  .heading {align-items:flex-start}
}
@media(max-width:490px) {
  .table-wrap tbody th,.table-wrap td,.table-wrap td[data-label] {min-width:0;width:auto}
  .table-wrap:has(th:nth-child(5)) tbody tr {grid-template-columns:repeat(2,minmax(0,1fr))}
  .table-wrap td[data-label="EVIDENCIA"] {min-width:0}
  .table-wrap td:has(.bar) .bar {display:none}
  .overview-card table td,.overview-card table th {padding:0}
  .auth-card {padding:26px 22px}
  .overview-card .table-wrap {padding:0 12px}
  .card-heading {flex-wrap:wrap}
  .metric .metric-pill {font-size:.68rem}
}

@media (min-width: 651px) {
  .table-wrap th:first-child { width: 1%; min-width: clamp(8rem, 15vw, 15rem); text-align: left; }
  .table-wrap th:not(:first-child), .table-wrap td { text-align: center; }
}
.client-metrics .metric strong { overflow-wrap: anywhere; }
.operator-metrics { --orange: var(--primary); --paper: var(--surface); --canvas: var(--page);
  --green: var(--ok); --yellow: var(--warn); --red: var(--error); }
.profile-logo { width: 64px; height: 64px; object-fit: contain; }
[data-consent-output] { overflow-wrap: anywhere; }
.table-wrap tbody tr:hover { background: var(--soft); }
.table-wrap a, .attention-list a { color: var(--text); text-decoration: none; font-weight: 650; }
.table-wrap a:hover, .attention-list a:hover { color: var(--accent); }
.sidebar { backdrop-filter: blur(14px); }

.topbar .product-lockup {border:0;padding:0}
#portfolio-mark {display:grid;place-items:center;width:100%;height:100%;overflow:hidden;border-radius:inherit}
#portfolio-mark img {width:100%;height:100%;object-fit:contain;background:white}
#partner-search {position:relative;width:clamp(180px,23vw,320px)}
.sr-only {position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.instant-results {position:absolute;top:calc(100% + 8px);right:0;width:100%;min-width:220px;max-height:70vh;overflow:auto;background:var(--surface);border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow);padding:12px}
.instant-results section + section {margin-top:12px}
.instant-results a {display:block;padding:6px 2px}
.instant-results small {display:block;color:var(--muted)}
#partner-bell {position:relative}
#notification-count {position:absolute;top:-6px;right:-4px;border-radius:9px;background:var(--primary);color:white;padding:1px 5px;font-size:.65rem}
#partner-notifications {padding:12px;min-width:230px}
.sidebar .isolation a {display:block;margin:4px 0;text-decoration:none}
.home-metrics {grid-template-columns:repeat(3,minmax(0,1fr))}
.home-card {color:var(--text);text-decoration:none}
.home-card .metric {height:100%}
.home-card .metric {display:grid;grid-template-columns:auto 1fr;align-content:center;column-gap:16px;min-height:86px;padding:16px 20px}
.home-card .metric::before {background:var(--primary)}
.home-card .metric strong {grid-row:1/3;grid-column:1;margin:0;align-self:center;font-size:2rem}
.home-card .metric-label {grid-column:2;min-height:0;color:var(--text);font-size:.94rem}
.home-card .metric-icon {display:none}
.home-card .metric .metric-pill {grid-column:2;background:none;color:var(--muted);padding:0}
.partner-home-heading {border:0;padding-bottom:0;align-items:center;margin-bottom:22px}
.home-tools {grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.home-tools a {display:grid;gap:4px;padding:18px 20px;background:var(--surface);border:1px solid var(--line);border-top-width:3px;border-radius:12px;color:var(--text);text-decoration:none}
.home-tools a span {color:var(--muted);font-size:.85rem}
.home-card:hover .metric,.home-tools a:hover {border-color:var(--focus)}
.home-section {margin:26px 0 0}
.home-section h2 {font-size:1.2rem}
.home-feed {padding:0;overflow:hidden}
.home-feed .empty {padding:16px;margin:0}
.home-feed li {min-height:52px}
.attention-list li small {display:block;margin-top:2px}
.home-feed li time {margin-left:auto;color:var(--muted);font-size:.75rem;text-align:right}
.home-feed .attention-timing {margin-left:auto;flex:none}
.home-feed-more {margin:0;padding:10px 14px}
#main-content:focus {outline:none}
#client-list .org-pending-toggle {display:flex;align-items:center;gap:6px}
#client-list .org-pending-toggle input {width:16px;min-height:16px;accent-color:var(--primary)}
.auth-card .password-toggle {cursor:pointer}
.usage-simulator {--product:#f5932a}
.usage-guard {--product:#2fbf98}
.usage-verify {--product:#4f9bff}
.usage-academy {--product:#b088f9}
.portfolio-product-tabs a::before {content:'';display:inline-block;width:8px;height:8px;margin-right:6px;border-radius:50%;background:var(--product)}
.portfolio-product-tabs a[aria-current=page] {border-color:var(--product)}
.portfolio-usage-metrics {grid-template-columns:repeat(auto-fit,minmax(min(100%,10rem),1fr));gap:0;border:1px solid var(--line);border-top:3px solid var(--product);background:var(--surface);border-radius:14px;overflow:hidden}
.portfolio-usage-metrics .metric {border:0;border-radius:0;box-shadow:none;padding:16px 20px}
.portfolio-usage-metrics .metric::before {content:none}
.portfolio-usage-filters {display:grid;grid-template-columns:2fr repeat(3,minmax(0,1fr));gap:12px;align-items:end;margin-bottom:16px}
.portfolio-usage-filters label {display:grid;gap:4px;min-width:0}
.portfolio-usage-filters label.usage-check {display:flex;align-items:center;gap:8px;grid-column:1/-1}
.portfolio-usage-heading {border:0;padding-bottom:0}
#portfolio-usage-summary progress {accent-color:var(--focus);width:4.5rem}
@media(max-width:700px) {.portfolio-usage-filters {grid-template-columns:repeat(2,minmax(0,1fr))}}
.usage-check {display:flex;align-items:center}
.usage-check input {width:16px;min-height:16px;accent-color:var(--primary)}
@media (min-width:781px) {
  .table-wrap :is(th,td):not(:first-child) {text-align:center}
  .table-wrap th:first-child {min-width:12rem}
  #client-list .org-table-name {overflow-wrap:normal}
}
html[data-theme] #section-client .partner-organization-detail {
  --bg:transparent;
  --panel:var(--surface);
  --ink:var(--text);
  --mut:var(--muted);
  --accent:var(--focus);
  --accent-ink:var(--surface);
  padding:0;
  margin:0;
  max-width:none;
}
.partner-organization-detail .dhead .ic {background:var(--tint);color:var(--accent);font-size:1rem;font-weight:700}
.partner-organization-detail .sumcell {padding:16px 18px}
.partner-organization-detail .sumcell .v {font-size:1.55rem}
.partner-organization-detail .details-grid {gap:16px}
.partner-organization-detail .details-grid :is(dt,dd) {margin-inline-start:0;text-align:left}
.partner-organization-detail .details-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
.partner-organization-detail .details-grid dd {overflow-wrap:anywhere}
.partner-organization-detail .heading-actions > span {display:grid;gap:5px;justify-items:start}
.partner-organization-detail .heading-actions button:disabled {background:var(--soft);border-color:var(--line);color:var(--muted);box-shadow:none;cursor:default;opacity:1}
.partner-organization-detail .sumcell .meta {margin-top:5px}
.client-campaign-heading {display:flex;align-items:center;justify-content:space-between;gap:12px}
.client-campaign-heading a {font-size:.84rem}
#section-client .partner-organization-detail .section-grid .panel h2 {font-size:.75rem;letter-spacing:.07em;text-transform:uppercase;color:var(--muted)}
.password-form .password-field {position:relative}
.password-form .password-field input {padding-right:50px}
.password-form .password-toggle {position:absolute;right:3px;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:40px;height:40px;padding:0;border:0;border-radius:6px;background:transparent;color:var(--muted)}
.password-form .password-toggle:hover {color:var(--accent)}
@media (max-width:780px) {
  .topbar .account {display:contents}
  #partner-search {order:1;flex-basis:100%;width:100%}
  .topbar .product-lockup {flex:1;min-width:0}
  .topbar #identity {display:none}
}
@media (max-width:480px) {
  .home-metrics {grid-template-columns:1fr}
  .topbar .product-wordmark strong {font-size:1rem}
}
.header-disclosure { position: relative; }
#account-button { display: grid; place-items:center; border: 0; padding:0; line-height:1; }
#account-button::after {content:none}
#account-button > #avatar {grid-area:1 / 1;align-self:center;justify-self:center;line-height:1;margin:0;padding:0}
#account-button:hover { box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--accent); }
.account-menu { position: absolute; z-index: 20; inset: calc(100% + 12px) 0 auto auto; width: min(17rem, calc(100vw - 24px)); padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.account-identity { display:grid; gap:.2rem; padding:8px 10px 12px; margin-bottom:4px; font-size:.83rem; color:var(--muted); overflow-wrap:anywhere; border-bottom:1px solid var(--line); }
.account-identity strong { color:var(--text); }
.account-role {width:fit-content;background:var(--tint);border-radius:999px;padding:2px 8px;color:var(--accent);font-weight:650}
#account-panel a[aria-current=page] {background:var(--tint);color:var(--accent)}
.account-menu-item { display: flex; justify-content: space-between; align-items: center; width: 100%; gap: 8px; padding: 8px 10px; min-height: 40px; border: 0; background: transparent; border-radius: 8px; color: var(--text); text-decoration: none; text-align: left; }
.account-menu-item:hover { background: var(--tint); color: var(--accent); }
.account-menu-item[hidden] { display:none; }
.account-menu-theme { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:44px; padding:4px 10px; }
.account-menu-theme #theme { flex:none; display:grid; place-items:center; border-radius:8px; cursor:pointer; }
.account-menu-footer { border-top:1px solid var(--line); padding-top:6px; margin-top:6px; }
.profile-heading {border:0;padding-bottom:0}
.profile-card {padding:clamp(14px,2vw,24px)}
.profile-card .form-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
.profile-logo-block {display:flex;align-items:center;gap:18px;padding-bottom:20px;border-bottom:1px solid var(--line);margin-bottom:18px}
.profile-logo-block p {margin:3px 0}
.profile-logo-tile {display:grid;place-items:center;flex:none;width:96px;aspect-ratio:1;border-radius:14px;background:var(--tint);color:var(--accent);font-size:1.65rem;font-weight:700;overflow:hidden}
.profile-logo-tile .profile-logo {width:100%;height:100%;object-fit:contain}
.profile-logo-actions {display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.profile-card > form > .form-actions {justify-content:flex-end;margin-top:16px}
.profile-readonly dt {color:var(--muted);font-size:.8rem}
.profile-readonly dd {margin:4px 0 0;overflow-wrap:anywhere}
@media(max-width:560px) {.profile-card .form-grid{grid-template-columns:1fr}.profile-logo-tile{width:64px}}
#auth-view .auth-card {width:min(100%,430px);max-width:none;text-align:left;box-shadow:0 26px 52px -30px #13253066}
.auth-card h1,.auth-card > .lede {text-align:left}
.auth-card h1 {font-size:1.43rem}
.auth-card .cross-login {text-align:center}
.auth-card .cross-login:has(a[href="/partner/recupero"]) {border-top:0;padding-top:0}
.auth-card #auth-message:empty {display:none}
#section-campaigns, #section-results { min-width:0; }
[data-portfolio-campaigns] {
  --paper:var(--surface);
  --canvas:var(--page);
  --orange:var(--accent);
  --campaign-surface:var(--surface);
  --campaign-header:var(--soft);
}
[data-portfolio-campaigns] .campaign-table-wrap { overflow:auto; }
[data-portfolio-campaigns] .campaign-name { color:var(--accent); }
[data-portfolio-campaigns] .campaign-row:hover { background:var(--soft); }
.detail-back a, .product-client-heading a, #section-metrics .metrics-full-name a { text-decoration: none; font-weight: 650; }
.recovery-card { width: min(100%, 360px); padding: 36px 34px; border-radius: 18px; }
.recovery-card h1 { font-size: 1.5rem; }
.recovery-card .message:empty { display: none; }
.recovery-card .message.success { padding: 14px; background: var(--tint); border: 1px solid var(--line); border-radius: 11px; text-align: left; }
.product-usage-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.product-usage-card { min-width: 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: 13px; background: var(--soft); }
.product-usage-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 12px; }
.product-usage-head h3 { margin: 0; }
.product-usage-values { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 12px 0 0; }
.product-usage-values div { display: flex; flex-direction: column-reverse; }
.product-usage-values dt { color: var(--muted); font-size: .79rem; }
.product-usage-values dd { margin: 0; font-weight: 750; font-size: 1.1rem; }
.product-usage-card progress { display: block; appearance: none; width: 100%; height: 8px; border: 0; border-radius: 6px; overflow: hidden; background: var(--page); }
.product-usage-card progress::-webkit-progress-bar { background: var(--page); }
.product-usage-card progress::-webkit-progress-value { background: linear-gradient(90deg, var(--teal), var(--accent)); }
.product-usage-card progress::-moz-progress-bar { background: var(--accent); }
.product-config-form { margin-top: 14px; }
.product-config-form label:has(input[type="checkbox"]) { display: flex; align-items: center; align-self: end; min-height: 42px; }
.product-config-form input[type="checkbox"] { width: 1rem; min-height: 0; height: 1rem; accent-color: var(--primary); }
.section > .panel + .panel { margin-top: 14px; }
.metrics-fixed { display: flex; align-items: center; gap: 6px; color: var(--warn); background: var(--warn-bg); }
#section-metrics .metrics-filters { padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
#section-metrics .metrics-main-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; width: 100%; }
#section-metrics .metrics-main-filters label { flex: 1 1 150px; }
@media (max-width: 650px) {
  .product-usage-grid { grid-template-columns: 1fr; }
}

#client-list {--paper:var(--surface);--canvas:var(--soft);--orange:var(--accent);--navy:var(--text);--border:var(--line);--ink:var(--text)}
