:root {
    --portal-blue: #2684ff;
    --portal-cyan: #16b7db;
    --portal-violet: #6c5ce7;
    --portal-coral: #ff6f61;
    --portal-green: #27b887;
    --portal-amber: #f4b443;
    --portal-red: #ef5361;
    --portal-navy: #172d54;
    --portal-panel-shadow: 0 16px 42px rgba(22, 52, 93, .08);
    --portal-card-shadow: 0 12px 28px rgba(26, 64, 115, .12);
}

.portal-dashboard {
    max-width: 1660px;
    margin: 0 auto;
    color: rgb(var(--color-font-default-light));
}

.dark .portal-dashboard {
    color: rgb(var(--color-font-default-dark));
}

.portal-demo-banner {
    display: flex;
    align-items: center;
    gap: .85rem;
    margin-bottom: 1rem;
    padding: .85rem 1rem;
    border: 1px solid rgba(244, 180, 67, .45);
    border-radius: 14px;
    background: linear-gradient(100deg, rgba(255, 246, 218, .95), rgba(255, 252, 242, .88));
    color: #7d5611;
}

.dark .portal-demo-banner {
    border-color: rgba(244, 180, 67, .35);
    background: rgba(244, 180, 67, .09);
    color: #f7cb78;
}

.portal-demo-banner strong,
.portal-demo-banner span:not(.material-symbols-outlined) { display: block; }
.portal-demo-banner span:not(.material-symbols-outlined) { margin-top: .1rem; font-size: .8rem; opacity: .82; }

.portal-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 1.1rem;
    min-height: 210px;
    border-radius: 22px;
    color: #fff;
    background:
        radial-gradient(circle at 84% -20%, rgba(136, 104, 255, .82) 0 24%, transparent 48%),
        radial-gradient(circle at 4% 120%, rgba(0, 47, 95, .74) 0 28%, transparent 52%),
        linear-gradient(120deg, #0bb6e8 0%, #178bf0 47%, #5f57df 100%);
    box-shadow: 0 24px 55px rgba(36, 111, 204, .22);
}

.portal-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: linear-gradient(90deg, rgba(0,0,0,.5), transparent 74%);
    pointer-events: none;
}

.portal-hero-orb { position: absolute; border-radius: 999px; filter: blur(1px); pointer-events: none; }
.portal-hero-orb-one { width: 210px; height: 210px; right: 23%; top: -130px; background: rgba(255,255,255,.11); }
.portal-hero-orb-two { width: 150px; height: 150px; right: 4%; bottom: -100px; border: 28px solid rgba(255,255,255,.08); }

.portal-hero-content {
    position: relative;
    z-index: 2;
    min-height: 210px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 2.25rem 2.4rem;
}

.portal-hero-copy { max-width: 720px; }
.portal-eyebrow { display: block; margin-bottom: .55rem; font-size: .68rem; font-weight: 800; letter-spacing: .16em; opacity: .78; }
.portal-hero h1 { margin: 0; color: #fff; font-size: clamp(1.75rem, 3vw, 2.55rem); line-height: 1.04; font-weight: 790; letter-spacing: -.035em; }
.portal-hero p { max-width: 650px; margin: .7rem 0 1rem; color: rgba(255,255,255,.82); font-size: .97rem; line-height: 1.55; }
.portal-hero-meta { display: flex; flex-wrap: wrap; gap: 1.25rem; color: rgba(255,255,255,.78); font-size: .76rem; }
.portal-hero-meta > span { display: inline-flex; align-items: center; gap: .4rem; }
.portal-hero-meta .material-symbols-outlined { font-size: 1rem; }
.portal-live-dot { width: .48rem; height: .48rem; border-radius: 999px; background: #6ff1bd; box-shadow: 0 0 0 5px rgba(111,241,189,.16); }

.portal-hero-actions { display: flex; align-items: stretch; justify-content: flex-end; flex-wrap: wrap; gap: .65rem; max-width: 460px; }
.portal-hero-button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    padding: .7rem .9rem;
    border: 1px solid rgba(255,255,255,.24);
    border-radius: 12px;
    color: #fff !important;
    font-size: .78rem;
    font-weight: 700;
    text-decoration: none !important;
    cursor: pointer;
    transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.portal-hero-button:hover { transform: translateY(-2px); }
.portal-hero-button .material-symbols-outlined { font-size: 1.12rem; }
.portal-hero-button-soft { background: rgba(255,255,255,.13); backdrop-filter: blur(8px); }
.portal-hero-button-soft:hover { background: rgba(255,255,255,.2); }
.portal-hero-button-primary { border-color: #fff; background: #fff; color: #1f68d9 !important; box-shadow: 0 12px 28px rgba(12,57,125,.22); }
.portal-hero-button-icon { background: rgba(16,44,91,.18); font-family: inherit; }

.portal-metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.1rem;
}

.portal-metric-card {
    position: relative;
    overflow: hidden;
    min-height: 156px;
    display: flex;
    flex-direction: column;
    padding: 1.05rem 1.1rem;
    border: 1px solid rgba(255,255,255,.38);
    border-radius: 18px;
    color: #fff !important;
    text-decoration: none !important;
    box-shadow: var(--portal-card-shadow);
    transition: transform .18s ease, box-shadow .18s ease;
}
.portal-metric-card:hover { transform: translateY(-4px); box-shadow: 0 18px 38px rgba(26,64,115,.2); }
.portal-metric-card::after {
    content: "";
    position: absolute;
    width: 125px;
    height: 125px;
    border: 22px solid rgba(255,255,255,.09);
    border-radius: 999px;
    right: -45px;
    bottom: -62px;
}
.portal-tone-blue { background: linear-gradient(135deg, #4f67e9, #6978ee); }
.portal-tone-coral { background: linear-gradient(135deg, #ff665f, #ff8d65); }
.portal-tone-violet { background: linear-gradient(135deg, #6c5ce7, #8b6dec); }
.portal-tone-green { background: linear-gradient(135deg, #16a87c, #32c799); }
.portal-tone-red { background: linear-gradient(135deg, #e94758, #f16f76); }
.portal-tone-cyan { background: linear-gradient(135deg, #0daecf, #22c2dc); }
.portal-tone-navy { background: linear-gradient(135deg, #16294f, #263e70); }
.portal-tone-amber { background: linear-gradient(135deg, #e7a72c, #f3bf55); }
.portal-metric-top { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; }
.portal-metric-icon { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 12px; background: rgba(255,255,255,.15); font-size: 1.22rem; }
.portal-metric-arrow { font-size: 1rem; opacity: .66; }
.portal-metric-value { position: relative; z-index: 2; margin-top: auto; font-size: 1.72rem; line-height: 1; letter-spacing: -.04em; }
.portal-metric-title { position: relative; z-index: 2; margin-top: .42rem; font-size: .8rem; font-weight: 750; }
.portal-metric-caption { position: relative; z-index: 2; margin-top: .18rem; color: rgba(255,255,255,.72); font-size: .68rem; }

.portal-layout { display: grid; gap: 1.1rem; }
.portal-layout-main { grid-template-columns: minmax(0, 1.85fr) minmax(330px, .75fr); margin-bottom: 1.1rem; }
.portal-layout-content { grid-template-columns: minmax(0, 1.55fr) minmax(320px, .65fr); margin-bottom: 1.1rem; }
.portal-layout-three { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 1.1rem; }
.portal-layout-lower { align-items: stretch; }

.portal-panel {
    min-width: 0;
    padding: 1.15rem;
    border: 1px solid rgb(var(--color-base-200));
    border-radius: 18px;
    background: rgba(255,255,255,.97);
    box-shadow: var(--portal-panel-shadow);
}
.dark .portal-panel { border-color: rgba(255,255,255,.08); background: rgb(var(--color-base-900)); box-shadow: 0 18px 42px rgba(0,0,0,.18); }
.portal-panel-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.portal-panel-header h2 { margin: .15rem 0 0; color: rgb(var(--color-font-important-light)); font-size: 1.02rem; font-weight: 770; letter-spacing: -.015em; }
.dark .portal-panel-header h2 { color: rgb(var(--color-font-important-dark)); }
.portal-panel-header > a { color: var(--portal-blue); font-size: .74rem; font-weight: 700; text-decoration: none; }
.portal-panel-kicker { display: block; color: rgb(var(--color-base-400)); font-size: .6rem; font-weight: 800; letter-spacing: .13em; }
.portal-panel-count { display: grid; place-items: center; min-width: 32px; height: 32px; padding: 0 .55rem; border-radius: 10px; background: rgba(239,83,97,.1); color: var(--portal-red); font-size: .78rem; font-weight: 800; }

.portal-chart-legend { display: flex; align-items: center; flex-wrap: wrap; gap: .8rem; color: rgb(var(--color-base-500)); font-size: .68rem; }
.portal-chart-legend span { display: inline-flex; align-items: center; gap: .35rem; }
.portal-dot { width: 8px; height: 8px; display: inline-block; border-radius: 999px; }
.portal-dot-blue { background: var(--portal-blue); }
.portal-dot-green { background: var(--portal-green); }
.portal-chart-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: .65rem; margin-bottom: .8rem; }
.portal-chart-summary div { padding: .72rem .8rem; border-radius: 12px; background: rgb(var(--color-base-50)); }
.dark .portal-chart-summary div { background: rgb(var(--color-base-800)); }
.portal-chart-summary span, .portal-chart-summary strong { display: block; }
.portal-chart-summary span { color: rgb(var(--color-base-500)); font-size: .65rem; }
.portal-chart-summary strong { margin-top: .2rem; color: rgb(var(--color-font-important-light)); font-size: 1rem; }
.dark .portal-chart-summary strong { color: rgb(var(--color-font-important-dark)); }
.portal-line-chart { width: 100%; min-height: 235px; }
.portal-line-chart svg { width: 100%; height: 195px; overflow: visible; }
.portal-chart-grid line { stroke: rgb(var(--color-base-200)); stroke-width: 1; stroke-dasharray: 4 5; }
.dark .portal-chart-grid line { stroke: rgba(255,255,255,.08); }
.portal-chart-line { fill: none; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.portal-chart-line-blue { stroke: var(--portal-blue); }
.portal-chart-line-green { stroke: var(--portal-green); }
.portal-chart-point { stroke: #fff; stroke-width: 3; vector-effect: non-scaling-stroke; }
.dark .portal-chart-point { stroke: rgb(var(--color-base-900)); }
.portal-chart-point-blue { fill: var(--portal-blue); }
.portal-chart-point-green { fill: var(--portal-green); }
.portal-chart-labels { display: grid; grid-template-columns: repeat(6, 1fr); margin: -.05rem .8rem 0; color: rgb(var(--color-base-500)); text-align: center; font-size: .63rem; }
.portal-chart-labels small { display: block; margin-top: .08rem; font-size: .53rem; opacity: .7; }
.portal-progress-block { margin-top: .85rem; }
.portal-progress-copy { display: flex; align-items: center; justify-content: space-between; margin-bottom: .38rem; color: rgb(var(--color-base-500)); font-size: .67rem; }
.portal-progress-copy strong { color: rgb(var(--color-font-important-light)); }
.dark .portal-progress-copy strong { color: rgb(var(--color-font-important-dark)); }
.portal-progress { --portal-progress: 0%; overflow: hidden; height: 7px; border-radius: 999px; background: rgb(var(--color-base-100)); }
.dark .portal-progress { background: rgba(255,255,255,.08); }
.portal-progress span { display: block; width: var(--portal-progress); height: 100%; border-radius: inherit; transition: width .55s ease; }
.portal-progress-blue span, .portal-progress-primary span { background: linear-gradient(90deg, #2684ff, #6b62e8); }
.portal-progress-green span, .portal-progress-success span { background: var(--portal-green); }
.portal-progress-warning span { background: var(--portal-amber); }
.portal-progress-danger span { background: var(--portal-red); }
.portal-progress-info span { background: var(--portal-cyan); }

.portal-panel-pipeline { display: flex; flex-direction: column; }
.portal-pipeline-total { display: flex; justify-content: space-between; align-items: center; padding: .9rem; border-radius: 14px; background: linear-gradient(135deg, rgba(38,132,255,.11), rgba(108,92,231,.1)); }
.portal-pipeline-total span { color: rgb(var(--color-base-500)); font-size: .72rem; }
.portal-pipeline-total strong { color: var(--portal-blue); font-size: 1.7rem; letter-spacing: -.04em; }
.portal-pipeline-list { margin-top: .95rem; }
.portal-pipeline-item + .portal-pipeline-item { margin-top: .78rem; }
.portal-pipeline-copy { display: flex; justify-content: space-between; align-items: center; margin-bottom: .32rem; font-size: .7rem; }
.portal-pipeline-copy span { color: rgb(var(--color-base-500)); }
.portal-quick-actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: .55rem; margin-top: auto; padding-top: 1rem; }
.portal-quick-actions a { display: flex; align-items: center; gap: .42rem; min-height: 44px; padding: .55rem .6rem; border: 1px solid rgb(var(--color-base-200)); border-radius: 12px; color: inherit; font-size: .68rem; font-weight: 700; text-decoration: none; transition: border-color .15s ease, background .15s ease; }
.portal-quick-actions a:hover { border-color: rgba(38,132,255,.38); background: rgba(38,132,255,.055); color: var(--portal-blue); }
.dark .portal-quick-actions a { border-color: rgba(255,255,255,.09); }
.portal-quick-actions .material-symbols-outlined { color: var(--portal-blue); font-size: 1.05rem; }

.portal-table-wrap { overflow-x: auto; }
.portal-table { width: 100%; border-collapse: collapse; }
.portal-table th { padding: .65rem .72rem; border-bottom: 1px solid rgb(var(--color-base-200)); color: rgb(var(--color-base-400)); text-align: left; font-size: .6rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; }
.portal-table td { padding: .72rem; border-bottom: 1px solid rgb(var(--color-base-100)); color: rgb(var(--color-base-600)); font-size: .72rem; vertical-align: middle; white-space: nowrap; }
.dark .portal-table th, .dark .portal-table td { border-color: rgba(255,255,255,.08); color: rgb(var(--color-base-300)); }
.portal-table tr:last-child td { border-bottom: 0; }
.portal-table td:first-child strong, .portal-table td:first-child span { display: block; }
.portal-table td:first-child strong { color: rgb(var(--color-font-important-light)); font-size: .76rem; }
.dark .portal-table td:first-child strong { color: rgb(var(--color-font-important-dark)); }
.portal-table td:first-child span { margin-top: .12rem; color: rgb(var(--color-base-400)); font-size: .63rem; }
.portal-tag { display: inline-block; padding: .28rem .46rem; border-radius: 8px; background: rgba(38,132,255,.08); color: #2172d8; font-size: .6rem; font-weight: 750; }
.portal-days { display: inline-grid; place-items: center; min-width: 28px; height: 28px; border-radius: 9px; background: rgba(39,184,135,.11); color: #16865e; font-size: .66rem; font-weight: 800; }
.portal-days.is-critical { background: rgba(239,83,97,.11); color: var(--portal-red); }
.portal-row-link { color: rgb(var(--color-base-400)); }
.portal-row-link .material-symbols-outlined { font-size: 1.1rem; }
.portal-empty { padding: 2rem !important; color: rgb(var(--color-base-400)) !important; text-align: center !important; }

.portal-donut-wrap { display: grid; place-items: center; gap: 1.15rem; }
.portal-donut { --portal-donut: #e7eef8; position: relative; width: 165px; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: var(--portal-donut); box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); }
.portal-donut::before { content: ""; position: absolute; inset: 25px; border-radius: inherit; background: #fff; box-shadow: 0 8px 22px rgba(33,62,103,.08); }
.dark .portal-donut::before { background: rgb(var(--color-base-900)); }
.portal-donut div { position: relative; z-index: 2; text-align: center; }
.portal-donut strong, .portal-donut span { display: block; }
.portal-donut strong { color: rgb(var(--color-font-important-light)); font-size: 1.6rem; line-height: 1; }
.dark .portal-donut strong { color: rgb(var(--color-font-important-dark)); }
.portal-donut span { margin-top: .25rem; color: rgb(var(--color-base-400)); font-size: .62rem; }
.portal-distribution-list { width: 100%; list-style: none; padding: 0; margin: 0; }
.portal-distribution-list li { display: grid; grid-template-columns: 8px 1fr auto 38px; align-items: center; gap: .48rem; padding: .43rem 0; border-bottom: 1px solid rgb(var(--color-base-100)); font-size: .67rem; }
.dark .portal-distribution-list li { border-color: rgba(255,255,255,.07); }
.portal-distribution-list i { width: 8px; height: 8px; border-radius: 999px; background: var(--item-color); }
.portal-distribution-list span { color: rgb(var(--color-base-500)); }
.portal-distribution-list small { color: rgb(var(--color-base-400)); text-align: right; }

.portal-activity-list, .portal-quality-list, .portal-mini-list { list-style: none; padding: 0; margin: 0; }
.portal-activity-list li { display: grid; grid-template-columns: 36px minmax(0,1fr) auto; align-items: center; gap: .65rem; padding: .62rem 0; border-bottom: 1px solid rgb(var(--color-base-100)); }
.dark .portal-activity-list li { border-color: rgba(255,255,255,.07); }
.portal-activity-list li:last-child { border-bottom: 0; }
.portal-activity-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; font-size: 1rem; }
.portal-activity-icon-violet { background: rgba(108,92,231,.11); color: var(--portal-violet); }
.portal-activity-icon-blue { background: rgba(38,132,255,.1); color: var(--portal-blue); }
.portal-activity-icon-coral { background: rgba(255,111,97,.11); color: var(--portal-coral); }
.portal-activity-list div a, .portal-activity-list div span { display: block; }
.portal-activity-list div a { overflow: hidden; color: rgb(var(--color-font-important-light)); font-size: .7rem; font-weight: 720; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.dark .portal-activity-list div a { color: rgb(var(--color-font-important-dark)); }
.portal-activity-list div span { overflow: hidden; margin-top: .1rem; color: rgb(var(--color-base-400)); font-size: .59rem; text-overflow: ellipsis; white-space: nowrap; }
.portal-activity-list > li > strong { color: rgb(var(--color-base-500)); font-size: .62rem; white-space: nowrap; }
.portal-danger { color: var(--portal-red) !important; }
.portal-status { padding: .27rem .42rem; border-radius: 8px; font-size: .55rem !important; }
.portal-status-low { background: rgba(22,183,219,.09); color: var(--portal-cyan) !important; }
.portal-status-normal { background: rgba(38,132,255,.09); color: var(--portal-blue) !important; }
.portal-status-high { background: rgba(244,180,67,.13); color: #ba7b08 !important; }
.portal-status-urgent { background: rgba(239,83,97,.11); color: var(--portal-red) !important; }
.portal-empty-list { display: block !important; padding: 1.4rem .5rem !important; color: rgb(var(--color-base-400)); text-align: center; font-size: .7rem; }

.portal-ranking-item { position: relative; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: .6rem; padding: .52rem 0 .78rem; }
.portal-ranking-item + .portal-ranking-item { border-top: 1px solid rgb(var(--color-base-100)); }
.dark .portal-ranking-item + .portal-ranking-item { border-color: rgba(255,255,255,.07); }
.portal-ranking-item > div:first-child { display: grid; grid-template-columns: 25px minmax(0,1fr); column-gap: .45rem; align-items: center; }
.portal-ranking-item > div:first-child > span { grid-row: span 2; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; background: rgba(38,132,255,.09); color: var(--portal-blue); font-size: .6rem; font-weight: 800; }
.portal-ranking-item strong { overflow: hidden; color: rgb(var(--color-font-important-light)); font-size: .68rem; text-overflow: ellipsis; white-space: nowrap; }
.dark .portal-ranking-item strong { color: rgb(var(--color-font-important-dark)); }
.portal-ranking-item small { color: rgb(var(--color-base-400)); font-size: .56rem; }
.portal-ranking-item > b { color: rgb(var(--color-base-600)); font-size: .65rem; white-space: nowrap; }
.portal-ranking-bar { grid-column: 1 / -1; overflow: hidden; height: 4px; border-radius: 99px; background: rgb(var(--color-base-100)); }
.dark .portal-ranking-bar { background: rgba(255,255,255,.08); }
.portal-ranking-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--portal-blue), var(--portal-violet)); }

.portal-quality-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .58rem 0; border-bottom: 1px solid rgb(var(--color-base-100)); color: rgb(var(--color-base-500)); font-size: .68rem; }
.dark .portal-quality-list li { border-color: rgba(255,255,255,.07); }
.portal-quality-list li:last-child { border-bottom: 0; }
.portal-quality-list strong { display: grid; place-items: center; min-width: 25px; height: 25px; border-radius: 8px; background: rgba(239,83,97,.09); color: var(--portal-red); font-size: .6rem; }

.portal-health-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .55rem; }
.portal-health-grid div { min-height: 82px; padding: .65rem; border-radius: 13px; background: rgb(var(--color-base-50)); }
.dark .portal-health-grid div { background: rgb(var(--color-base-800)); }
.portal-health-grid .material-symbols-outlined { color: var(--portal-blue); font-size: 1rem; }
.portal-health-grid strong, .portal-health-grid small { display: block; }
.portal-health-grid strong { margin-top: .2rem; color: rgb(var(--color-font-important-light)); font-size: 1rem; }
.dark .portal-health-grid strong { color: rgb(var(--color-font-important-dark)); }
.portal-health-grid small { margin-top: .05rem; color: rgb(var(--color-base-400)); font-size: .55rem; }
.portal-communications-title { margin-top: 1rem; margin-bottom: .35rem; }
.portal-mini-list li { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .42rem 0; border-bottom: 1px solid rgb(var(--color-base-100)); font-size: .59rem; }
.dark .portal-mini-list li { border-color: rgba(255,255,255,.07); }
.portal-mini-list span { overflow: hidden; color: rgb(var(--color-base-500)); text-overflow: ellipsis; white-space: nowrap; }
.portal-mini-list strong { color: var(--portal-blue); font-size: .54rem; white-space: nowrap; }

.portal-dashboard.is-compact .portal-hero { min-height: 165px; }
.portal-dashboard.is-compact .portal-hero-content { min-height: 165px; padding-top: 1.45rem; padding-bottom: 1.45rem; }
.portal-dashboard.is-compact .portal-hero p, .portal-dashboard.is-compact .portal-hero-meta { display: none; }
.portal-dashboard.is-compact .portal-metric-card { min-height: 122px; }
.portal-dashboard.is-compact .portal-panel { padding: .9rem; }
.portal-dashboard.is-compact .portal-line-chart { min-height: 205px; }
.portal-dashboard.is-compact .portal-line-chart svg { height: 165px; }

@media (max-width: 1320px) {
    .portal-metric-grid { grid-template-columns: repeat(4, 1fr); }
    .portal-layout-main { grid-template-columns: minmax(0, 1.5fr) minmax(300px, .8fr); }
    .portal-layout-three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .portal-layout-three > :last-child { grid-column: 1 / -1; }
}

@media (max-width: 1050px) {
    .portal-hero-content { align-items: flex-start; flex-direction: column; }
    .portal-hero-actions { max-width: none; justify-content: flex-start; }
    .portal-metric-grid { grid-template-columns: repeat(2, 1fr); }
    .portal-layout-main, .portal-layout-content { grid-template-columns: 1fr; }
    .portal-panel-pipeline { min-height: 430px; }
}

@media (max-width: 720px) {
    .portal-hero { border-radius: 17px; }
    .portal-hero-content { padding: 1.45rem; }
    .portal-hero-actions { width: 100%; }
    .portal-hero-button { flex: 1 1 calc(50% - .5rem); }
    .portal-hero-button-icon { flex-basis: 100%; }
    .portal-metric-grid { grid-template-columns: 1fr 1fr; gap: .7rem; }
    .portal-metric-card { min-height: 138px; padding: .9rem; }
    .portal-layout-three { grid-template-columns: 1fr; }
    .portal-layout-three > :last-child { grid-column: auto; }
    .portal-chart-summary { grid-template-columns: 1fr; }
    .portal-chart-labels { margin-left: 0; margin-right: 0; }
    .portal-quick-actions { grid-template-columns: 1fr; }
}

@media (max-width: 460px) {
    .portal-metric-grid { grid-template-columns: 1fr; }
    .portal-metric-card { min-height: 125px; }
    .portal-hero-button { flex-basis: 100%; }
}

/* ========================================================================== */
/* V3 — Sistema visual transversal do backoffice                              */
/* ========================================================================== */

#main {
    background:
        radial-gradient(circle at 82% 0%, rgba(108, 92, 231, .055), transparent 24rem),
        radial-gradient(circle at 12% 8%, rgba(22, 183, 219, .055), transparent 22rem),
        #f8faff;
}

.dark #main {
    background:
        radial-gradient(circle at 82% 0%, rgba(108, 92, 231, .08), transparent 24rem),
        radial-gradient(circle at 12% 8%, rgba(22, 183, 219, .06), transparent 22rem),
        rgb(var(--color-base-900));
}

.change-list #content-main,
.change-form #content-main {
    max-width: 1760px;
    margin-inline: auto;
}

/* Cabeçalhos editoriais das listagens */
.portal-admin-hero {
    --portal-admin-accent: #2684ff;
    --portal-admin-accent-two: #6c5ce7;
    position: relative;
    overflow: hidden;
    margin: 0 0 1rem;
    border: 1px solid rgba(255,255,255,.42);
    border-radius: 20px;
    color: #fff;
    background:
        radial-gradient(circle at 90% -25%, rgba(255,255,255,.24), transparent 42%),
        linear-gradient(125deg, var(--portal-admin-accent), var(--portal-admin-accent-two));
    box-shadow: 0 18px 44px color-mix(in srgb, var(--portal-admin-accent) 22%, transparent);
}

.portal-admin-tone-blue { --portal-admin-accent: #168fea; --portal-admin-accent-two: #555ee7; }
.portal-admin-tone-cyan { --portal-admin-accent: #08a8d1; --portal-admin-accent-two: #287ee9; }
.portal-admin-tone-violet { --portal-admin-accent: #6157df; --portal-admin-accent-two: #8d62df; }
.portal-admin-tone-green { --portal-admin-accent: #16a97d; --portal-admin-accent-two: #35c49a; }
.portal-admin-tone-amber { --portal-admin-accent: #e69b21; --portal-admin-accent-two: #efbd42; }
.portal-admin-tone-navy { --portal-admin-accent: #18335d; --portal-admin-accent-two: #35599c; }
.portal-admin-tone-coral { --portal-admin-accent: #ef5967; --portal-admin-accent-two: #ff8a67; }

.portal-admin-hero::after,
.portal-form-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
    background-size: 30px 30px;
    mask-image: linear-gradient(90deg, rgba(0,0,0,.7), transparent 78%);
}

.portal-admin-hero-orb {
    position: absolute;
    border-radius: 999px;
    background: rgba(255,255,255,.1);
    pointer-events: none;
}
.portal-admin-hero-orb-one { width: 180px; height: 180px; top: -115px; right: 22%; }
.portal-admin-hero-orb-two { width: 120px; height: 120px; right: -36px; bottom: -62px; border: 22px solid rgba(255,255,255,.08); background: transparent; }

.portal-admin-hero-main {
    position: relative;
    z-index: 2;
    min-height: 140px;
    display: grid;
    grid-template-columns: auto minmax(0,1fr) auto;
    align-items: center;
    gap: 1rem;
    padding: 1.45rem 1.65rem;
}

.portal-admin-icon,
.portal-form-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    border: 1px solid rgba(255,255,255,.24);
    border-radius: 16px;
    background: rgba(255,255,255,.13);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
    backdrop-filter: blur(9px);
    font-size: 1.55rem;
}

.portal-admin-copy,
.portal-form-copy { min-width: 0; }
.portal-admin-kicker { display: block; color: inherit; font-size: .62rem; font-weight: 850; letter-spacing: .16em; opacity: .7; }
.portal-admin-copy h1,
.portal-form-copy h1 { margin: .25rem 0 0; color: inherit; font-size: clamp(1.45rem, 2.3vw, 2rem); line-height: 1.1; font-weight: 810; letter-spacing: -.035em; }
.portal-admin-copy p,
.portal-form-copy p { max-width: 760px; margin: .45rem 0 0; color: rgba(255,255,255,.76); font-size: .82rem; line-height: 1.55; }

.portal-admin-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: .55rem;
}
.portal-admin-action {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    padding: .62rem .78rem;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 11px;
    color: #fff !important;
    font-size: .69rem;
    font-weight: 760;
    text-decoration: none !important;
    transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.portal-admin-action:hover { transform: translateY(-2px); }
.portal-admin-action .material-symbols-outlined { font-size: 1.05rem; }
.portal-admin-action-soft { background: rgba(255,255,255,.12); backdrop-filter: blur(8px); }
.portal-admin-action-soft:hover { background: rgba(255,255,255,.2); }
.portal-admin-action-primary { border-color: #fff; background: #fff; color: var(--portal-admin-accent) !important; box-shadow: 0 10px 25px rgba(11,38,87,.18); }

.portal-admin-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: .75rem;
    margin-bottom: 1rem;
}
.portal-admin-stat {
    --stat-color: #2684ff;
    position: relative;
    overflow: hidden;
    min-height: 104px;
    display: grid;
    grid-template-columns: auto minmax(0,1fr) auto;
    align-items: center;
    gap: .72rem;
    padding: .88rem .95rem;
    border: 1px solid rgb(var(--color-base-200));
    border-radius: 15px;
    color: rgb(var(--color-font-default-light)) !important;
    background: rgba(255,255,255,.94);
    box-shadow: 0 10px 26px rgba(32,61,104,.065);
    text-decoration: none !important;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.dark .portal-admin-stat { border-color: rgba(255,255,255,.08); color: rgb(var(--color-font-default-dark)) !important; background: rgba(20,29,45,.92); }
.portal-admin-stat:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--stat-color) 34%, transparent); box-shadow: 0 15px 32px rgba(32,61,104,.11); }
.portal-admin-stat::after { content: ""; position: absolute; right: -30px; bottom: -54px; width: 98px; height: 98px; border: 17px solid color-mix(in srgb, var(--stat-color) 8%, transparent); border-radius: 999px; }
.portal-admin-stat-primary { --stat-color: #2684ff; }
.portal-admin-stat-success { --stat-color: #27b887; }
.portal-admin-stat-warning { --stat-color: #e9a936; }
.portal-admin-stat-danger { --stat-color: #ef5361; }
.portal-admin-stat-violet { --stat-color: #6c5ce7; }
.portal-admin-stat-cyan { --stat-color: #16b7db; }
.portal-admin-stat-coral { --stat-color: #ff6f61; }
.portal-admin-stat-neutral { --stat-color: #718096; }
.portal-admin-stat-icon { position: relative; z-index: 2; display: grid; place-items: center; width: 39px; height: 39px; border-radius: 12px; color: var(--stat-color); background: color-mix(in srgb, var(--stat-color) 10%, transparent); font-size: 1.15rem; }
.portal-admin-stat-copy { position: relative; z-index: 2; min-width: 0; }
.portal-admin-stat-copy small,
.portal-admin-stat-copy strong,
.portal-admin-stat-copy em { display: block; }
.portal-admin-stat-copy small { overflow: hidden; color: rgb(var(--color-base-500)); font-size: .62rem; font-weight: 730; text-overflow: ellipsis; white-space: nowrap; }
.portal-admin-stat-copy strong { margin-top: .15rem; color: rgb(var(--color-font-important-light)); font-size: 1.23rem; line-height: 1.1; letter-spacing: -.03em; }
.dark .portal-admin-stat-copy strong { color: rgb(var(--color-font-important-dark)); }
.portal-admin-stat-copy em { margin-top: .18rem; overflow: hidden; color: rgb(var(--color-base-400)); font-size: .55rem; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.portal-admin-stat-arrow { position: relative; z-index: 2; color: rgb(var(--color-base-300)); font-size: .95rem; }

/* Cabeçalho dos formulários */
.portal-form-hero {
    --portal-form-accent: #2684ff;
    --portal-form-accent-two: #6c5ce7;
    position: relative;
    overflow: hidden;
    margin-bottom: 1rem;
    border-radius: 19px;
    color: #fff;
    background:
        radial-gradient(circle at 88% -22%, rgba(255,255,255,.22), transparent 43%),
        linear-gradient(122deg, var(--portal-form-accent), var(--portal-form-accent-two));
    box-shadow: 0 16px 38px color-mix(in srgb, var(--portal-form-accent) 20%, transparent);
}
.portal-form-tone-blue { --portal-form-accent: #168fea; --portal-form-accent-two: #555ee7; }
.portal-form-tone-cyan { --portal-form-accent: #08a8d1; --portal-form-accent-two: #287ee9; }
.portal-form-tone-violet { --portal-form-accent: #6157df; --portal-form-accent-two: #8d62df; }
.portal-form-tone-green { --portal-form-accent: #16a97d; --portal-form-accent-two: #35c49a; }
.portal-form-tone-amber { --portal-form-accent: #e69b21; --portal-form-accent-two: #efbd42; }
.portal-form-tone-navy { --portal-form-accent: #18335d; --portal-form-accent-two: #35599c; }
.portal-form-tone-coral { --portal-form-accent: #ef5967; --portal-form-accent-two: #ff8a67; }
.portal-form-heading { position: relative; z-index: 2; display: grid; grid-template-columns: auto auto minmax(0,1fr) auto; align-items: center; gap: .85rem; padding: 1.2rem 1.35rem .95rem; }
.portal-form-back { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid rgba(255,255,255,.2); border-radius: 11px; color: #fff !important; background: rgba(255,255,255,.1); text-decoration: none !important; }
.portal-form-back:hover { background: rgba(255,255,255,.2); }
.portal-form-back .material-symbols-outlined { font-size: 1.05rem; }
.portal-form-icon { width: 45px; height: 45px; border-radius: 14px; font-size: 1.3rem; }
.portal-form-title-line { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem; }
.portal-form-title-line h1 { max-width: 820px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.portal-form-status { display: inline-flex; align-items: center; min-height: 25px; padding: .3rem .52rem; border: 1px solid rgba(255,255,255,.22); border-radius: 99px; color: #fff; background: rgba(255,255,255,.13); font-size: .58rem; font-weight: 800; }
.portal-form-status-success { background: rgba(54,220,161,.2); }
.portal-form-status-warning { background: rgba(255,196,78,.22); }
.portal-form-status-danger { background: rgba(255,90,105,.24); }
.portal-form-status-neutral { background: rgba(255,255,255,.12); }
.portal-form-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .45rem; }
.portal-form-links a { display: inline-flex; align-items: center; gap: .35rem; padding: .5rem .65rem; border: 1px solid rgba(255,255,255,.2); border-radius: 10px; color: #fff !important; background: rgba(255,255,255,.1); font-size: .62rem; font-weight: 720; text-decoration: none !important; }
.portal-form-links a:hover { background: rgba(255,255,255,.19); }
.portal-form-links .material-symbols-outlined { font-size: .95rem; }
.portal-form-meta { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); border-top: 1px solid rgba(255,255,255,.13); background: rgba(9,31,72,.09); }
.portal-form-meta > div { min-width: 0; display: grid; grid-template-columns: auto minmax(0,1fr); column-gap: .48rem; padding: .75rem 1rem; border-right: 1px solid rgba(255,255,255,.13); }
.portal-form-meta > div:last-child { border-right: 0; }
.portal-form-meta .material-symbols-outlined { grid-row: 1 / span 2; align-self: center; font-size: 1.05rem; opacity: .72; }
.portal-form-meta small,
.portal-form-meta strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.portal-form-meta small { color: rgba(255,255,255,.62); font-size: .53rem; }
.portal-form-meta strong { margin-top: .05rem; color: #fff; font-size: .65rem; }

/* Listagens: pesquisa, filtros, ações e tabela */
.change-list #changelist .result-list-wrapper > .grow > .flex.flex-col.flex-wrap {
    margin-bottom: 0 !important;
    padding: .72rem !important;
    border: 1px solid rgb(var(--color-base-200)) !important;
    border-radius: 15px 15px 0 0 !important;
    background: rgba(255,255,255,.9);
    box-shadow: 0 8px 22px rgba(32,61,104,.05);
}
.dark .change-list #changelist .result-list-wrapper > .grow > .flex.flex-col.flex-wrap { border-color: rgba(255,255,255,.08) !important; background: rgba(20,29,45,.88); }

.change-list #changelist input[type="text"],
.change-list #changelist input[type="search"],
.change-list #changelist select {
    min-height: 40px;
    border-radius: 11px !important;
    background-color: rgb(var(--color-base-50));
}
.dark .change-list #changelist input[type="text"],
.dark .change-list #changelist input[type="search"],
.dark .change-list #changelist select { background-color: rgba(255,255,255,.045); }

.change-list #changelist-form > div:first-child,
.change-list #changelist-form > .flex {
    border-radius: 0;
}

.change-list #result_list {
    border-collapse: separate;
    border-spacing: 0;
}
.change-list #result_list thead th {
    height: 46px;
    color: rgb(var(--color-base-500));
    background: rgb(var(--color-base-50));
    font-size: .61rem;
    font-weight: 820;
    letter-spacing: .035em;
    text-transform: uppercase;
}
.dark .change-list #result_list thead th { color: rgb(var(--color-base-400)); background: rgba(255,255,255,.035); }
.change-list #result_list tbody {
    transition: background .15s ease, transform .15s ease;
}
.change-list #result_list tbody:hover { background: rgba(38,132,255,.035) !important; }
.dark .change-list #result_list tbody:hover { background: rgba(38,132,255,.065) !important; }
.change-list #result_list td,
.change-list #result_list th { vertical-align: middle; }
.change-list #result_list .data-row td { min-height: 49px; }
.change-list #result_list a { font-weight: 650; }

.change-list [data-simplebar] {
    border-radius: 0 0 15px 15px !important;
    box-shadow: 0 12px 30px rgba(32,61,104,.055) !important;
}

/* Formulários e fieldsets */
.change-form form > .flex.flex-col.gap-6 { gap: 1rem; }
.change-form form > .flex.flex-col.gap-6 > fieldset.module,
.change-form .tab-wrapper > fieldset.module,
.change-form .inline-group,
.change-form fieldset.module.stacked {
    overflow: hidden;
    border: 1px solid rgb(var(--color-base-200));
    border-radius: 16px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 10px 28px rgba(32,61,104,.055);
}
.dark .change-form form > .flex.flex-col.gap-6 > fieldset.module,
.dark .change-form .tab-wrapper > fieldset.module,
.dark .change-form .inline-group,
.dark .change-form fieldset.module.stacked { border-color: rgba(255,255,255,.08); background: rgba(20,29,45,.9); }

.change-form .tab-wrapper > fieldset.module { border-top-left-radius: 0; border-top-right-radius: 0; box-shadow: 0 12px 30px rgba(32,61,104,.055); }
.change-form form > .flex.flex-col.gap-6 > .border-b,
.change-form form > .flex.flex-col.gap-6 > div > .border-b {
    overflow-x: auto;
    border: 1px solid rgb(var(--color-base-200));
    border-bottom: 0;
    border-radius: 15px 15px 0 0;
    background: rgba(255,255,255,.94);
    box-shadow: 0 8px 20px rgba(32,61,104,.04);
}
.dark .change-form form > .flex.flex-col.gap-6 > .border-b,
.dark .change-form form > .flex.flex-col.gap-6 > div > .border-b { border-color: rgba(255,255,255,.08); background: rgba(20,29,45,.9); }
.change-form form > .flex.flex-col.gap-6 nav a { min-height: 42px; display: inline-flex; align-items: center; padding-inline: .9rem; font-size: .68rem; }

.change-form fieldset.module > h2,
.change-form fieldset.module > details > summary h2 { padding: 1rem 1rem .15rem; font-size: .9rem; font-weight: 790; }
.change-form fieldset.module > .leading-relaxed,
.change-form fieldset.module > details > .leading-relaxed { padding-inline: 1rem; color: rgb(var(--color-base-400)); font-size: .65rem; }
.change-form fieldset.module > div[class*="grid"],
.change-form fieldset.module > details > div[class*="grid"] { padding: .35rem 1rem 1rem; }
.change-form .tab-wrapper fieldset.module > div[class*="grid"] { padding-top: .75rem; }

.change-form input[type="text"],
.change-form input[type="email"],
.change-form input[type="url"],
.change-form input[type="number"],
.change-form input[type="password"],
.change-form input[type="date"],
.change-form input[type="datetime-local"],
.change-form input[type="tel"],
.change-form select,
.change-form textarea {
    border-radius: 11px !important;
    background-color: rgb(var(--color-base-50)) !important;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.dark .change-form input[type="text"],
.dark .change-form input[type="email"],
.dark .change-form input[type="url"],
.dark .change-form input[type="number"],
.dark .change-form input[type="password"],
.dark .change-form input[type="date"],
.dark .change-form input[type="datetime-local"],
.dark .change-form input[type="tel"],
.dark .change-form select,
.dark .change-form textarea { background-color: rgba(255,255,255,.035) !important; }
.change-form input:focus,
.change-form select:focus,
.change-form textarea:focus { border-color: rgba(38,132,255,.6) !important; box-shadow: 0 0 0 3px rgba(38,132,255,.09) !important; }
.change-form textarea { min-height: 118px; line-height: 1.55; }
.change-form label { font-weight: 680; }
.change-form .help,
.change-form .helptext { color: rgb(var(--color-base-400)); font-size: .61rem; line-height: 1.45; }

/* Inlines mais claros */
.change-form .inline-group { margin-top: .15rem; }
.change-form .inline-group > h2,
.change-form .inline-group .inline-heading {
    background: linear-gradient(90deg, rgba(38,132,255,.07), transparent);
}
.change-form .inline-related { border-color: rgb(var(--color-base-200)); }
.dark .change-form .inline-related { border-color: rgba(255,255,255,.08); }

/* Barra de gravação */
.change-form #submit-row > div {
    margin-top: 1rem;
    border: 1px solid rgb(var(--color-base-200));
    border-radius: 15px 15px 0 0;
    background: rgba(255,255,255,.88);
    box-shadow: 0 -12px 34px rgba(24,49,88,.08);
}
.dark .change-form #submit-row > div { border-color: rgba(255,255,255,.08); background: rgba(17,25,39,.88); }
.change-form #submit-row button,
.change-form #submit-row a { min-height: 40px; border-radius: 10px !important; font-weight: 730; }

/* Mensagens, paginação e estados vazios */
#content .messagelist > li,
#content [role="alert"] { border-radius: 12px; box-shadow: 0 8px 22px rgba(32,61,104,.055); }
.change-list .paginator,
.change-list footer { backdrop-filter: blur(9px); }

/* Autenticação mantém o mesmo nível visual */
.login #content { max-width: 520px; }
.login form input { border-radius: 11px !important; }

@media (max-width: 1180px) {
    .portal-admin-stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .portal-admin-hero-main { grid-template-columns: auto minmax(0,1fr); }
    .portal-admin-actions { grid-column: 1 / -1; justify-content: flex-start; }
    .portal-form-heading { grid-template-columns: auto auto minmax(0,1fr); }
    .portal-form-links { grid-column: 1 / -1; justify-content: flex-start; }
}

@media (max-width: 760px) {
    .portal-admin-hero { border-radius: 16px; }
    .portal-admin-hero-main { min-height: auto; grid-template-columns: 1fr; padding: 1.2rem; }
    .portal-admin-icon { width: 45px; height: 45px; }
    .portal-admin-actions { grid-column: auto; }
    .portal-admin-action { flex: 1 1 calc(50% - .4rem); }
    .portal-admin-stats { grid-template-columns: 1fr 1fr; gap: .6rem; }
    .portal-admin-stat { min-height: 96px; padding: .75rem; }
    .portal-form-heading { grid-template-columns: auto auto minmax(0,1fr); padding: 1rem; }
    .portal-form-copy p { display: none; }
    .portal-form-links { grid-column: 1 / -1; }
    .portal-form-meta { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .portal-form-meta > div:nth-child(2) { border-right: 0; }
    .portal-form-meta > div:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.13); }
}

@media (max-width: 480px) {
    .portal-admin-stats { grid-template-columns: 1fr; }
    .portal-admin-action { flex-basis: 100%; }
    .portal-form-heading { grid-template-columns: auto minmax(0,1fr); }
    .portal-form-icon { display: none; }
    .portal-form-title-line h1 { max-width: 250px; }
    .portal-form-links a { flex: 1 1 100%; justify-content: center; }
}

/* V4 — centros operacionais, qualidade e relatórios */
.portal-v4-page { display: grid; gap: 1rem; padding-bottom: 2rem; }
.portal-v4-hero { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; min-height: 165px; padding: 1.55rem 1.7rem; border-radius: 20px; color: #fff; box-shadow: 0 22px 55px rgba(29,62,115,.15); }
.portal-v4-hero:after { content:""; position:absolute; width:280px; height:280px; right:-80px; top:-150px; border-radius:50%; background:rgba(255,255,255,.11); }
.portal-v4-hero > * { position:relative; z-index:1; }
.portal-v4-hero-blue { background: linear-gradient(125deg,#1469e6 0%,#1ba7e8 55%,#7157dc 130%); }
.portal-v4-hero-violet { background: linear-gradient(125deg,#654edb,#8b62e6 56%,#24a8df 130%); }
.portal-v4-hero-green { background: linear-gradient(125deg,#178a80,#23ad91 54%,#168ee2 130%); }
.portal-v4-hero h1 { margin:.2rem 0 .35rem; font-size:clamp(1.55rem,2.6vw,2.35rem); font-weight:800; letter-spacing:-.035em; }
.portal-v4-hero p { max-width:760px; margin:0; color:rgba(255,255,255,.82); }
.portal-v4-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:.55rem; }
.portal-v4-actions a, .portal-v4-primary { display:inline-flex; align-items:center; gap:.4rem; padding:.7rem .9rem; border:1px solid rgba(255,255,255,.2); border-radius:11px; background:rgba(255,255,255,.13); color:#fff; font-weight:720; text-decoration:none; backdrop-filter:blur(8px); }
.portal-v4-primary { background:#1677ed; border-color:#1677ed; }
.portal-v4-score { min-width:170px; padding:1rem 1.15rem; border:1px solid rgba(255,255,255,.18); border-radius:16px; background:rgba(255,255,255,.12); text-align:center; }
.portal-v4-score small,.portal-v4-score span { display:block; color:rgba(255,255,255,.78); }
.portal-v4-score strong { display:block; margin:.15rem 0; font-size:2.4rem; }
.portal-v4-kpis { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:.8rem; }
.portal-v4-kpis > div { display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:.7rem; padding:1rem; border:1px solid rgb(var(--color-base-200)); border-radius:15px; background:rgba(255,255,255,.86); box-shadow:0 10px 25px rgba(40,68,108,.055); }
.dark .portal-v4-kpis > div,.dark .portal-v4-panel,.dark .portal-v4-quality-card,.dark .portal-v4-report-card { background:rgba(18,27,42,.86); border-color:rgba(255,255,255,.08); }
.portal-v4-kpis span { color:#2684ff; }
.portal-v4-kpis small { color:rgb(var(--color-base-500)); font-weight:670; }
.portal-v4-kpis strong { font-size:1.6rem; }
.portal-v4-kpis .is-danger span,.portal-v4-kpis .is-danger strong { color:#e5484d; }
.portal-v4-kpis .is-warning span,.portal-v4-kpis .is-warning strong { color:#e59d17; }
.portal-v4-grid { display:grid; gap:1rem; }
.portal-v4-grid-2 { grid-template-columns:repeat(2,minmax(0,1fr)); }
.portal-v4-grid-3 { grid-template-columns:repeat(3,minmax(0,1fr)); }
.portal-v4-panel { overflow:hidden; border:1px solid rgb(var(--color-base-200)); border-radius:17px; background:rgba(255,255,255,.9); box-shadow:0 12px 30px rgba(40,68,108,.055); }
.portal-v4-panel > header { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:1rem 1.1rem; border-bottom:1px solid rgb(var(--color-base-200)); }
.dark .portal-v4-panel > header { border-color:rgba(255,255,255,.08); }
.portal-v4-panel header span { display:block; color:#2684ff; font-size:.61rem; font-weight:820; letter-spacing:.12em; }
.portal-v4-panel header h2 { margin:.18rem 0 0; font-size:1rem; }
.portal-v4-panel header > a { color:#2684ff; font-size:.72rem; font-weight:730; }
.portal-v4-panel-danger { border-color:rgba(229,72,77,.28); }
.portal-v4-list { display:grid; }
.portal-v4-list > a { display:flex; align-items:center; gap:.7rem; padding:.78rem 1.05rem; border-bottom:1px solid rgb(var(--color-base-100)); color:inherit; text-decoration:none; transition:.18s ease; }
.dark .portal-v4-list > a { border-color:rgba(255,255,255,.055); }
.portal-v4-list > a:hover { background:rgba(38,132,255,.055); }
.portal-v4-list > a:last-child { border-bottom:0; }
.portal-v4-list i { width:34px; height:34px; display:grid; place-items:center; border-radius:10px; background:rgba(38,132,255,.09); color:#2684ff; font-style:normal; }
.portal-v4-list div { min-width:0; flex:1; }
.portal-v4-list strong,.portal-v4-list small { display:block; }
.portal-v4-list strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:.78rem; }
.portal-v4-list small { color:rgb(var(--color-base-500)); font-size:.65rem; }
.portal-v4-list b { font-size:.72rem; white-space:nowrap; }
.portal-v4-list.compact > a { padding:.66rem 1rem; }
.portal-v4-empty { margin:0; padding:1.25rem; color:rgb(var(--color-base-500)); text-align:center; font-size:.72rem; }
.portal-v4-quality-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.8rem; }
.portal-v4-quality-card { position:relative; display:grid; grid-template-columns:auto 1fr auto; gap:.8rem; min-height:135px; padding:1rem; border:1px solid rgb(var(--color-base-200)); border-radius:16px; background:rgba(255,255,255,.9); color:inherit; text-decoration:none; box-shadow:0 10px 25px rgba(40,68,108,.05); }
.portal-v4-quality-card > span { width:42px; height:42px; display:grid; place-items:center; border-radius:12px; background:rgba(38,132,255,.09); color:#2684ff; }
.portal-v4-quality-card small { display:block; color:rgb(var(--color-base-500)); font-weight:720; }
.portal-v4-quality-card strong { display:block; margin:.1rem 0; font-size:1.8rem; }
.portal-v4-quality-card p { margin:0; color:rgb(var(--color-base-500)); font-size:.65rem; line-height:1.4; }
.portal-v4-quality-card > i { color:rgb(var(--color-base-400)); font-style:normal; }
.portal-v4-quality-card.is-danger > span,.portal-v4-quality-card.is-danger strong { color:#e5484d; background:rgba(229,72,77,.09); }
.portal-v4-quality-card.is-warning > span,.portal-v4-quality-card.is-warning strong { color:#d58d0c; background:rgba(229,157,23,.09); }
.portal-v4-steps { margin:0; padding:1rem 1.2rem 1rem 2.2rem; color:rgb(var(--color-base-600)); font-size:.73rem; line-height:1.75; }
.dark .portal-v4-steps { color:rgb(var(--color-base-300)); }
.portal-v4-panel .portal-v4-primary { margin:0 1rem 1rem; }
.portal-v4-report-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; }
.portal-v4-report-card { display:grid; grid-template-columns:auto 1fr; gap:1rem; padding:1.2rem; border:1px solid rgb(var(--color-base-200)); border-radius:17px; background:rgba(255,255,255,.9); box-shadow:0 12px 30px rgba(40,68,108,.055); }
.portal-v4-report-card > span { width:48px; height:48px; display:grid; place-items:center; border-radius:14px; background:linear-gradient(135deg,#2684ff,#16b7db); color:#fff; }
.portal-v4-report-card h2 { margin:0 0 .25rem; font-size:1rem; }
.portal-v4-report-card p { margin:0; color:rgb(var(--color-base-500)); font-size:.7rem; }
.portal-v4-report-card footer { grid-column:1/-1; display:flex; gap:.5rem; padding-top:.8rem; border-top:1px solid rgb(var(--color-base-100)); }
.dark .portal-v4-report-card footer { border-color:rgba(255,255,255,.06); }
.portal-v4-report-card footer a { padding:.48rem .7rem; border-radius:9px; background:rgba(38,132,255,.08); color:#2684ff; font-size:.68rem; font-weight:720; text-decoration:none; }
.portal-print-report { padding:1rem; background:#fff; color:#111; }
.portal-print-toolbar { display:flex; justify-content:space-between; margin-bottom:1rem; }
.portal-print-toolbar button,.portal-print-toolbar a { padding:.55rem .8rem; border:0; border-radius:8px; background:#1677ed; color:#fff; text-decoration:none; cursor:pointer; }
.portal-print-report header { margin-bottom:1rem; }
.portal-print-report table { width:100%; border-collapse:collapse; font-size:12px; }
.portal-print-report th,.portal-print-report td { padding:7px 8px; border:1px solid #d8dee8; text-align:left; }
.portal-print-report th { background:#eef4fb; }
@media print { body * { visibility:hidden; } .portal-print-report,.portal-print-report * { visibility:visible; } .portal-print-report { position:absolute; inset:0; } .portal-print-toolbar { display:none; } }
@media(max-width:1100px){ .portal-v4-kpis,.portal-v4-quality-grid{grid-template-columns:repeat(2,minmax(0,1fr));}.portal-v4-grid-3{grid-template-columns:1fr 1fr}.portal-v4-grid-3>section:last-child{grid-column:1/-1} }
@media(max-width:760px){ .portal-v4-hero{align-items:flex-start;flex-direction:column}.portal-v4-actions{justify-content:flex-start}.portal-v4-kpis,.portal-v4-grid-2,.portal-v4-grid-3,.portal-v4-quality-grid,.portal-v4-report-grid{grid-template-columns:1fr}.portal-v4-grid-3>section:last-child{grid-column:auto}.portal-v4-score{width:100%} }

/* V5 — Centro de comunicações */
.portal-v5-warning-stack { display: grid; gap: .65rem; margin: 0 0 1rem; }
.portal-v5-warning-stack > div { display:flex; gap:.7rem; align-items:flex-start; padding:.8rem 1rem; border:1px solid rgba(244,180,67,.4); border-radius:13px; background:rgba(244,180,67,.1); color:#8a5e0d; }
.portal-v5-warning-stack p { margin:0; font-size:.78rem; line-height:1.45; }
.dark .portal-v5-warning-stack > div { color:#f7cb78; }
.portal-v5-action-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.75rem; }
.portal-v5-action-grid form { margin:0; }
.portal-v5-action-grid button { width:100%; min-height:112px; display:flex; flex-direction:column; align-items:flex-start; gap:.22rem; padding:1rem; border:1px solid rgb(var(--color-base-200)); border-radius:14px; background:rgb(var(--color-base-50)); color:rgb(var(--color-font-default-light)); text-align:left; cursor:pointer; transition:.18s ease; }
.portal-v5-action-grid button:hover { transform:translateY(-2px); border-color:rgba(38,132,255,.45); box-shadow:0 10px 24px rgba(22,52,93,.1); }
.portal-v5-action-grid button .material-symbols-outlined { color:var(--portal-blue); font-size:1.45rem; }
.portal-v5-action-grid button strong { color:rgb(var(--color-font-important-light)); font-size:.84rem; }
.portal-v5-action-grid button small { color:rgb(var(--color-base-500)); line-height:1.35; }
.dark .portal-v5-action-grid button { border-color:rgba(255,255,255,.08); background:rgb(var(--color-base-800)); color:rgb(var(--color-font-default-dark)); }
.dark .portal-v5-action-grid button strong { color:rgb(var(--color-font-important-dark)); }
.portal-v5-muted { margin:0 0 .9rem; color:rgb(var(--color-base-500)); font-size:.76rem; line-height:1.55; }
.portal-v5-test-form label { display:block; margin-bottom:.35rem; color:rgb(var(--color-base-500)); font-size:.65rem; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.portal-v5-test-form > div { display:flex; gap:.55rem; }
.portal-v5-test-form input { flex:1; min-width:0; padding:.72rem .8rem; border:1px solid rgb(var(--color-base-200)); border-radius:11px; background:transparent; }
.portal-v5-test-form button { display:inline-flex; align-items:center; gap:.35rem; padding:.7rem .9rem; border:0; border-radius:11px; background:linear-gradient(135deg,var(--portal-blue),var(--portal-violet)); color:#fff; font-weight:750; cursor:pointer; }
.dark .portal-v5-test-form input { border-color:rgba(255,255,255,.1); color:#fff; }
.portal-v5-config-list { display:grid; gap:.45rem; margin:1rem 0 0; }
.portal-v5-config-list > div { display:grid; grid-template-columns:120px 1fr; gap:.7rem; padding:.52rem .65rem; border-radius:9px; background:rgb(var(--color-base-50)); font-size:.68rem; }
.portal-v5-config-list dt { color:rgb(var(--color-base-500)); }
.portal-v5-config-list dd { margin:0; overflow-wrap:anywhere; color:rgb(var(--color-font-important-light)); font-weight:650; }
.dark .portal-v5-config-list > div { background:rgb(var(--color-base-800)); }
.dark .portal-v5-config-list dd { color:rgb(var(--color-font-important-dark)); }
.portal-v5-footnote { margin:.8rem 0 0; color:rgb(var(--color-base-500)); font-size:.68rem; }
.portal-v4-kpis .is-success { border-color:rgba(39,184,135,.35); }
@media (max-width: 800px) { .portal-v5-action-grid { grid-template-columns:1fr; } .portal-v5-test-form > div { flex-direction:column; } .portal-v5-config-list > div { grid-template-columns:1fr; gap:.2rem; } }

/* V6 — Identidade Kreate4Web */
:root {
    --portal-blue: #f0bd00;
    --portal-cyan: #ffd400;
    --portal-violet: #34373f;
    --portal-admin-accent: #e6b800;
    --portal-admin-accent-two: #272a31;
    --portal-form-accent: #e6b800;
    --portal-form-accent-two: #2b2e35;
}
.portal-hero {
    background:
        radial-gradient(circle at 87% -30%, rgba(255,212,0,.48) 0 25%, transparent 51%),
        radial-gradient(circle at 2% 120%, rgba(255,255,255,.08) 0 28%, transparent 52%),
        linear-gradient(120deg,#090a0c 0%,#202228 56%,#3b3e46 100%);
    box-shadow: 0 24px 58px rgba(0,0,0,.22);
}
.portal-hero-button-primary { border-color:#ffd400; background:#ffd400; color:#111 !important; box-shadow:0 12px 28px rgba(255,212,0,.22); }
.portal-progress-blue span,.portal-progress-primary span,.portal-ranking-bar i { background:linear-gradient(90deg,#ffd400,#e7a900); }
.portal-pipeline-total { background:linear-gradient(135deg,rgba(255,212,0,.16),rgba(30,32,38,.08)); }
.portal-v4-hero-blue,.portal-v4-hero-violet,.portal-v4-hero-green { background:linear-gradient(125deg,#0c0d10 0%,#292c33 62%,#d4a900 145%); }
.portal-v4-panel header span,.portal-v4-panel header>a,.portal-v4-kpis span,.portal-v4-report-card footer a { color:#a47d00; }
.portal-v4-list i,.portal-v4-quality-card>span { background:rgba(255,212,0,.16); color:#8a6900; }
.portal-v4-report-card>span { background:linear-gradient(135deg,#111318,#ffd400); }
.portal-v5-test-form button { background:linear-gradient(135deg,#111318,#3b3e46); color:#ffd400; }
.portal-admin-header,.portal-form-header { --portal-admin-accent:#e4b300; --portal-admin-accent-two:#2a2d34; }
.portal-tone-blue,.portal-tone-cyan,.portal-tone-violet,.portal-tone-navy { background:linear-gradient(135deg,#17191e,#3b3e46); }
.portal-tone-amber { background:linear-gradient(135deg,#d9a900,#ffd84a); color:#111; }

/* Legenda semântica de estados */
.k4w-status-hero{background:linear-gradient(120deg,#08090b,#272a31 68%,#cda300 145%)}
.k4w-brand-chip{width:112px;height:112px;border-radius:26px;background:#0c0d10;border:2px solid #ffd400;display:grid;place-items:center;position:relative;box-shadow:0 16px 35px rgba(0,0,0,.25)}
.k4w-brand-chip strong{position:absolute;top:12px;color:#ffd400;font-size:42px;line-height:1}.k4w-brand-chip span{position:absolute;bottom:12px;color:#fff;font-size:35px;font-weight:900}
.k4w-meaning-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:.8rem;margin:1rem 0}
.k4w-meaning{display:flex;gap:.65rem;align-items:flex-start;padding:.8rem;border:1px solid var(--color-base-200);border-radius:12px;background:#fff}.dark .k4w-meaning{background:var(--color-base-900);border-color:var(--color-base-700)}
.k4w-meaning span{width:12px;height:12px;border-radius:999px;flex:none;margin-top:.12rem}.k4w-meaning p{margin:0;font-size:.68rem;line-height:1.45;color:var(--color-base-600)}.dark .k4w-meaning p{color:var(--color-base-300)}
.k4w-meaning.is-success span{background:#16a34a}.k4w-meaning.is-primary span{background:#2563eb}.k4w-meaning.is-warning span{background:#d99000}.k4w-meaning.is-danger span{background:#dc2626}.k4w-meaning.is-info span{background:#64748b}
.k4w-status-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}.k4w-status-panel{padding:1rem}.k4w-status-panel header i{color:#c59d00}.k4w-status-list{display:flex;flex-direction:column;gap:.5rem}.k4w-status-list>div{display:flex;align-items:center;justify-content:space-between;gap:.7rem;padding:.55rem .1rem;border-top:1px solid var(--color-base-100)}.dark .k4w-status-list>div{border-color:var(--color-base-800)}.k4w-status-list code{font-size:.62rem;color:var(--color-base-500)}
.k4w-admin-status{display:inline-flex;padding:.3rem .55rem;border-radius:999px;font-size:.63rem;font-weight:760}.k4w-admin-status.is-success{background:#dcfce7;color:#166534}.k4w-admin-status.is-primary{background:#dbeafe;color:#1d4ed8}.k4w-admin-status.is-warning{background:#fef3c7;color:#92400e}.k4w-admin-status.is-danger{background:#fee2e2;color:#b91c1c}.k4w-admin-status.is-info{background:#e9edf2;color:#475569}
@media(max-width:1100px){.k4w-meaning-grid{grid-template-columns:repeat(2,1fr)}.k4w-status-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:700px){.k4w-meaning-grid,.k4w-status-grid{grid-template-columns:1fr}.k4w-brand-chip{display:none}}

/* V7 — Biblioteca de templates */
.portal-template-hero { background: linear-gradient(135deg,#111827 0%,#263238 55%,#f5c400 140%); }
.portal-template-hero h1,.portal-template-hero p,.portal-template-hero .portal-eyebrow { color:#fff; }
.portal-template-hero .portal-v4-actions a:first-child { background:#ffd400;color:#111; }
.portal-template-kpis a { color:inherit;text-decoration:none; }
.portal-template-categories { margin-top:20px; }
.portal-template-category-grid { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;padding:4px 0; }
.portal-template-category-card { display:flex;align-items:flex-start;gap:12px;border:1px solid rgba(148,163,184,.25);border-radius:16px;padding:16px;background:rgba(255,255,255,.72); }
.dark .portal-template-category-card { background:rgba(17,24,39,.72); }
.portal-template-category-card > span { width:42px;height:42px;border-radius:12px;display:grid;place-items:center;background:#fff3a5;color:#6e5700; }
.portal-template-category-card strong,.portal-template-category-card small { display:block; }
.portal-template-category-card small { margin-top:4px;color:#64748b;line-height:1.35; }
.portal-template-category-card.tone-blue > span { background:#dbeafe;color:#1d4ed8; }
.portal-template-category-card.tone-green > span { background:#dcfce7;color:#15803d; }
.portal-template-category-card.tone-violet > span { background:#ede9fe;color:#6d28d9; }
.portal-template-category-card.tone-orange > span { background:#ffedd5;color:#c2410c; }
.portal-template-category-card.tone-grey > span { background:#e2e8f0;color:#475569; }
.portal-template-columns { margin-top:20px;align-items:start; }
.portal-template-paper { min-height:320px;padding:24px;border:1px solid #e2e8f0;border-radius:14px;background:#fff;box-shadow:0 10px 30px rgba(15,23,42,.05); }
.dark .portal-template-paper { background:#111827;border-color:#334155; }
.portal-template-paper pre { white-space:pre-wrap;font-family:inherit;line-height:1.7;margin:0; }
.portal-template-html { overflow:auto; }
.portal-template-code { display:grid;grid-template-columns:1fr 1fr;gap:16px; }
.portal-template-code pre { background:#111827;color:#dbeafe;border-radius:12px;padding:16px;white-space:pre-wrap;overflow:auto; }
.portal-template-form-shell { max-width:920px;margin:22px auto; }
.portal-template-form-card { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;background:#fff;border:1px solid #e2e8f0;border-radius:22px;padding:28px;box-shadow:0 18px 50px rgba(15,23,42,.08); }
.dark .portal-template-form-card { background:#111827;border-color:#334155; }
.portal-template-field { display:flex;flex-direction:column;gap:7px; }
.portal-template-field.is-wide { grid-column:1/-1; }
.portal-template-field label { font-weight:700;color:#1e293b; }
.dark .portal-template-field label { color:#e2e8f0; }
.portal-template-field label em { color:#dc2626;font-style:normal;margin-left:3px; }
.portal-template-field input,.portal-template-field textarea,.portal-template-field select { width:100%;border:1px solid #cbd5e1;border-radius:11px;padding:11px 12px;background:#f8fafc;color:#475569;box-sizing:border-box; }
.dark .portal-template-field input,.dark .portal-template-field textarea,.dark .portal-template-field select { background:#1e293b;border-color:#475569;color:#cbd5e1; }
.portal-template-field small { color:#64748b; }
.portal-template-options { display:flex;flex-wrap:wrap;gap:10px;padding:11px 12px;border:1px solid #cbd5e1;border-radius:11px;background:#f8fafc; }
.portal-template-form-actions { grid-column:1/-1;display:flex;align-items:center;gap:16px;padding-top:8px; }
.portal-template-form-actions button { border:0;border-radius:11px;background:#ffd400;color:#111;font-weight:800;padding:12px 18px; }
.portal-template-form-actions small { color:#64748b; }
@media (max-width:1000px){.portal-template-category-grid{grid-template-columns:repeat(2,minmax(0,1fr));}.portal-template-columns{grid-template-columns:1fr;}.portal-template-code{grid-template-columns:1fr;}}
@media (max-width:650px){.portal-template-category-grid,.portal-template-form-card{grid-template-columns:1fr;}.portal-template-field.is-wide,.portal-template-form-actions{grid-column:auto;}}

/* V8 — header de conta, notificações, credenciais demo e rodapé */
.k4w-admin-header-actions{display:flex;align-items:center;gap:9px;margin-left:auto}.k4w-env-pill{font-size:11px;font-weight:800;border:1px solid rgba(234,179,8,.35);background:rgba(250,204,21,.12);color:#9a6700;border-radius:99px;padding:6px 10px}.dark .k4w-env-pill{color:#fde68a}.k4w-header-icon{width:42px;height:42px;border:1px solid var(--color-base-200);border-radius:50%;display:grid;place-items:center;background:#fff;color:var(--color-base-700);position:relative;cursor:pointer}.dark .k4w-header-icon{background:var(--color-base-800);border-color:var(--color-base-700);color:var(--color-base-200)}.k4w-header-icon:hover{border-color:#f3d400;color:#8a7000}.k4w-header-icon b{position:absolute;top:-5px;right:-5px;background:#dc2626;color:#fff;border-radius:99px;min-width:20px;height:20px;display:grid;place-items:center;font-size:10px;padding:0 5px}.k4w-header-popover-wrap{position:relative}.k4w-admin-profile-chip{display:flex;align-items:center;gap:9px;min-height:46px;padding:4px 9px 4px 5px;border:1px solid var(--color-base-200);border-radius:26px;background:#fff;cursor:pointer;color:var(--color-base-900)}.dark .k4w-admin-profile-chip{background:var(--color-base-800);border-color:var(--color-base-700);color:var(--color-base-100)}.k4w-admin-profile-chip>span:nth-child(2){display:flex;flex-direction:column;align-items:flex-start;max-width:150px}.k4w-admin-profile-chip strong,.k4w-admin-profile-chip small{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.k4w-admin-profile-chip small{font-size:10px;color:var(--color-base-500)}.k4w-profile-avatar{width:36px;height:36px;border-radius:50%;background:#071d30;color:#f3d400;display:grid;place-items:center;font-weight:900;overflow:hidden;border:2px solid #f3d400}.k4w-profile-avatar img{width:100%;height:100%;object-fit:cover}.k4w-header-popover{position:absolute;right:0;top:calc(100% + 9px);background:#fff;border:1px solid var(--color-base-200);border-radius:18px;box-shadow:0 25px 65px rgba(15,23,42,.22);z-index:100;min-width:285px;padding:9px}.dark .k4w-header-popover{background:var(--color-base-800);border-color:var(--color-base-700)}.k4w-popover-title{display:flex;justify-content:space-between;align-items:center;padding:10px 9px;border-bottom:1px solid var(--color-base-100)}.dark .k4w-popover-title{border-color:var(--color-base-700)}.k4w-popover-title a{font-size:11px}.k4w-header-notifications>a{display:flex;align-items:center;gap:10px;padding:10px;border-radius:11px}.k4w-header-notifications>a:hover{background:var(--color-base-50)}.dark .k4w-header-notifications>a:hover{background:var(--color-base-700)}.k4w-header-notifications>a>div{display:flex;flex-direction:column;flex:1}.k4w-header-notifications small{color:var(--color-base-500)}.k4w-header-notifications>a>b{font-size:10px;border-radius:99px;padding:3px 7px}.tone-danger{background:#fee2e2;color:#991b1b}.tone-warning{background:#fef3c7;color:#92400e}.tone-neutral{background:#eef2f6;color:#64748b}.k4w-profile-menu{padding:0;overflow:hidden}.k4w-profile-menu>p{font-size:10px;letter-spacing:.12em;font-weight:900;color:var(--color-base-500);margin:0;padding:13px 15px 8px}.k4w-profile-menu>a,.k4w-profile-menu form button{display:flex;align-items:center;gap:10px;width:100%;padding:12px 15px;border:0;background:transparent;color:inherit;text-decoration:none;font:inherit;cursor:pointer;text-align:left}.k4w-profile-menu>a:hover,.k4w-profile-menu form button:hover{background:var(--color-base-50)}.dark .k4w-profile-menu>a:hover,.dark .k4w-profile-menu form button:hover{background:var(--color-base-700)}.k4w-profile-menu a em{margin-left:auto;font-style:normal;font-size:9px;padding:3px 6px;border-radius:99px;background:#dcfce7;color:#166534}.k4w-profile-menu form{border-top:1px solid var(--color-base-200)}.dark .k4w-profile-menu form{border-color:var(--color-base-700)}.k4w-profile-menu form button{color:#dc2626}.k4w-admin-footer{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;padding:15px 24px;border-top:1px solid var(--color-base-200);background:var(--color-base-50);font-size:11px;color:var(--color-base-500)}.dark .k4w-admin-footer{background:var(--color-base-950);border-color:var(--color-base-800)}.k4w-admin-footer>div{display:flex;align-items:center;gap:7px}.k4w-admin-footer strong{color:var(--color-base-900)}.dark .k4w-admin-footer strong{color:var(--color-base-100)}.k4w-admin-page-head{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:25px;border-radius:20px;background:linear-gradient(135deg,#061a2d,#0b3554);color:#fff;margin-bottom:18px}.k4w-admin-page-head h1{font-size:27px;margin:4px 0}.k4w-admin-page-head p{color:#bdd4e3}.k4w-admin-primary{display:flex;gap:7px;align-items:center;background:#f3d400;color:#1e1b00;padding:10px 14px;border-radius:11px;font-weight:800;text-decoration:none}.k4w-demo-warning{display:flex;gap:14px;align-items:start;background:#fff7d6;border:1px solid #f5d453;border-radius:15px;padding:15px;margin-bottom:18px;color:#714d00}.k4w-demo-warning p{margin:4px 0 0}.k4w-demo-credentials-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.k4w-demo-credential-card{border:1px solid var(--color-base-200);background:#fff;border-radius:18px;padding:18px;box-shadow:0 8px 25px rgba(15,23,42,.05)}.dark .k4w-demo-credential-card{background:var(--color-base-900);border-color:var(--color-base-700)}.k4w-demo-credential-top{display:flex;align-items:center;gap:10px}.k4w-demo-avatar{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:#061a2d;color:#f3d400;font-weight:900}.k4w-demo-credential-top h2{font-size:15px;margin:0}.k4w-demo-credential-top p{font-size:11px;color:var(--color-base-500);margin:2px 0}.k4w-demo-state{margin-left:auto;border-radius:99px;padding:4px 8px;font-size:10px;font-weight:800}.k4w-demo-state.is-active{background:#dcfce7;color:#166534}.k4w-demo-state.is-missing{background:#fee2e2;color:#991b1b}.k4w-demo-credential-card dl{margin:15px 0}.k4w-demo-credential-card dl>div{display:grid;grid-template-columns:105px 1fr;gap:10px;padding:8px 0;border-bottom:1px solid var(--color-base-100)}.dark .k4w-demo-credential-card dl>div{border-color:var(--color-base-800)}.k4w-demo-credential-card dt{color:var(--color-base-500)}.k4w-demo-credential-card dd{margin:0;display:flex;align-items:center;gap:6px;min-width:0}.k4w-demo-credential-card code{overflow:hidden;text-overflow:ellipsis}.k4w-demo-credential-card dd button{font-family:'Material Symbols Outlined';border:0;background:transparent;cursor:pointer;color:var(--color-base-500)}.k4w-demo-credential-card>a{font-weight:700;text-decoration:none}@media(max-width:1000px){.k4w-admin-profile-chip>span:nth-child(2),.k4w-env-pill{display:none}.k4w-demo-credentials-grid{grid-template-columns:1fr}}@media(max-width:640px){.k4w-admin-header-actions{gap:4px}.k4w-header-icon{width:38px;height:38px}.k4w-header-popover{position:fixed;top:70px;right:12px;max-width:calc(100vw - 24px)}.k4w-admin-footer{align-items:flex-start;flex-direction:column}.k4w-admin-page-head{align-items:flex-start;flex-direction:column}}

/* V8.1 — Database maintenance center */
.k4w-db-page{display:grid;gap:1.25rem;padding-bottom:2rem}.k4w-db-hero,.k4w-db-result-hero{position:relative;overflow:hidden;display:flex;align-items:center;justify-content:space-between;gap:2rem;padding:2rem;border-radius:26px;background:linear-gradient(135deg,#071a2d 0%,#092f4c 62%,#0e4c68 100%);color:#fff;box-shadow:0 20px 60px rgba(3,21,38,.18)}.k4w-db-hero:after{content:"";position:absolute;right:-90px;top:-110px;width:330px;height:330px;border-radius:50%;background:radial-gradient(circle,rgba(255,218,0,.28),rgba(255,218,0,0) 68%)}.k4w-db-hero>*,.k4w-db-result-hero>*{position:relative;z-index:1}.k4w-db-hero h1,.k4w-db-result-hero h1{font-size:clamp(1.75rem,3vw,2.6rem);font-weight:850;line-height:1.05;margin:.4rem 0 .7rem}.k4w-db-hero p,.k4w-db-result-hero p{max-width:760px;color:#c7d7e6;line-height:1.7}.k4w-db-eyebrow{display:inline-flex;font-size:.7rem;font-weight:850;letter-spacing:.18em;color:#ffdf00}.k4w-db-hero-state{min-width:180px;padding:1.2rem 1.35rem;border-radius:20px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.14);backdrop-filter:blur(12px);display:grid;gap:.25rem}.k4w-db-hero-state .material-symbols-outlined{font-size:2rem;color:#ffdf00}.k4w-db-hero-state small,.k4w-db-hero-state em{font-size:.72rem;color:#a9bfd2;font-style:normal}.k4w-db-hero-state strong{font-size:1.15rem}.k4w-db-hero-state.is-disabled .material-symbols-outlined{color:#ff6b6b}.k4w-db-lock-warning,.k4w-db-confirm-warning{display:flex;align-items:flex-start;gap:1rem;padding:1.15rem 1.25rem;border-radius:18px;background:#fff5e5;border:1px solid #ffd38a;color:#7c4b00}.dark .k4w-db-lock-warning,.dark .k4w-db-confirm-warning{background:rgba(245,158,11,.12);border-color:rgba(245,158,11,.35);color:#ffd892}.k4w-db-lock-warning .material-symbols-outlined,.k4w-db-confirm-warning .material-symbols-outlined{font-size:1.8rem}.k4w-db-lock-warning p,.k4w-db-confirm-warning p{margin:.2rem 0 0;line-height:1.5}.k4w-db-safety-grid,.k4w-db-result-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem}.k4w-db-safety-grid article,.k4w-db-result-cards article{display:flex;align-items:flex-start;gap:.85rem;padding:1.1rem;border:1px solid #e6edf5;border-radius:19px;background:#fff;box-shadow:0 8px 28px rgba(20,42,70,.055)}.dark .k4w-db-safety-grid article,.dark .k4w-db-result-cards article{background:#10243a;border-color:#1f3a54}.k4w-db-safety-grid .material-symbols-outlined{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:#edf7ff;color:#0573bd}.k4w-db-safety-grid strong{display:block;font-size:.9rem;color:#12263a}.dark .k4w-db-safety-grid strong{color:#eef6ff}.k4w-db-safety-grid p{font-size:.77rem;color:#64758a;line-height:1.45;margin:.22rem 0 0}.k4w-db-form{display:grid;gap:1.25rem}.k4w-db-panel{border:1px solid #e5edf5;border-radius:22px;background:#fff;box-shadow:0 10px 36px rgba(20,42,70,.055);overflow:hidden}.dark .k4w-db-panel{background:#0f2236;border-color:#1f3b55}.k4w-db-panel>header{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1.1rem 1.3rem;border-bottom:1px solid #edf1f6}.dark .k4w-db-panel>header{border-color:#1f3b55}.k4w-db-panel>header span{display:block;color:#718197;font-size:.65rem;font-weight:850;letter-spacing:.16em}.k4w-db-panel>header h2{font-size:1.05rem;font-weight:800;margin:.15rem 0 0;color:#14283d}.dark .k4w-db-panel>header h2{color:#f2f7fd}.k4w-db-panel>header a{font-size:.78rem;font-weight:750;color:#0777be}.k4w-db-mode-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;padding:1.25rem}.k4w-db-mode-card,.k4w-db-group-card{position:relative;display:flex;align-items:flex-start;gap:1rem;padding:1.05rem;border:1px solid #dfe8f1;border-radius:18px;background:#fbfdff;cursor:pointer;transition:.18s ease}.dark .k4w-db-mode-card,.dark .k4w-db-group-card{background:#13293f;border-color:#25415a}.k4w-db-mode-card:hover,.k4w-db-group-card:hover{transform:translateY(-2px);border-color:#7bbbe3;box-shadow:0 10px 28px rgba(20,91,138,.1)}.k4w-db-mode-card input,.k4w-db-group-card input{position:absolute;right:1rem;top:1rem;width:18px;height:18px;accent-color:#0a75b9}.k4w-db-mode-card>.material-symbols-outlined,.k4w-db-group-card>.material-symbols-outlined{display:grid;place-items:center;flex:0 0 46px;width:46px;height:46px;border-radius:14px;background:#eaf5fd;color:#0878bd}.k4w-db-mode-card.is-danger>.material-symbols-outlined,.k4w-db-group-card.is-danger>.material-symbols-outlined{background:#fff0f0;color:#d73b3e}.k4w-db-group-card.is-warning>.material-symbols-outlined{background:#fff7e7;color:#b56a00}.k4w-db-mode-card strong,.k4w-db-group-card strong{display:block;font-size:.9rem;color:#152a3e;padding-right:1.4rem}.dark .k4w-db-mode-card strong,.dark .k4w-db-group-card strong{color:#f3f8fc}.k4w-db-mode-card p,.k4w-db-group-card p{font-size:.76rem;color:#687a8f;line-height:1.45;margin:.25rem 0 0}.k4w-db-groups-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.85rem;padding:1.15rem}.k4w-db-group-card b{position:absolute;right:1rem;bottom:.85rem;min-width:32px;padding:.2rem .45rem;border-radius:999px;text-align:center;background:#e9f2f8;color:#31536d;font-size:.72rem}.dark .k4w-db-group-card b{background:#1e3c55;color:#c9e2f6}.k4w-db-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem;padding:1.15rem}.k4w-db-options label{display:flex;align-items:flex-start;gap:.8rem;padding:.9rem 1rem;border:1px solid #e2eaf2;border-radius:16px;background:#fafcfe}.dark .k4w-db-options label{background:#13293f;border-color:#25415a}.k4w-db-options input{margin-top:.2rem;width:18px;height:18px;accent-color:#0a75b9}.k4w-db-options strong{display:block;font-size:.84rem}.k4w-db-options small{display:block;margin-top:.2rem;color:#728197;line-height:1.4}.k4w-db-full-options{padding:0 1.15rem 1.15rem}.k4w-db-full-options h3{font-size:.8rem;font-weight:800;color:#6c7b8f;padding:.4rem 0}.k4w-db-full-options .k4w-db-options{padding:0}.k4w-db-action-bar{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem 1.2rem;border-radius:20px;background:#071d31;color:#fff}.k4w-db-action-bar>div{display:flex;align-items:center;gap:.75rem}.k4w-db-action-bar p{color:#b8cada;font-size:.8rem}.k4w-db-action-bar button,.k4w-db-confirm-actions button{display:inline-flex;align-items:center;gap:.45rem;border:0;border-radius:13px;padding:.8rem 1rem;background:#ffdc00;color:#171717;font-weight:850;cursor:pointer}.k4w-db-action-bar button:disabled{opacity:.45;cursor:not-allowed}.k4w-db-history,.k4w-db-impact-list{display:grid}.k4w-db-history>a,.k4w-db-impact-list>div{display:flex;align-items:center;gap:.85rem;padding:.9rem 1.15rem;border-bottom:1px solid #edf1f5}.dark .k4w-db-history>a,.dark .k4w-db-impact-list>div{border-color:#1f3b55}.k4w-db-history>a:last-child,.k4w-db-impact-list>div:last-child{border-bottom:0}.k4w-db-history .material-symbols-outlined,.k4w-db-impact-list .material-symbols-outlined{color:#3478a5}.k4w-db-history div,.k4w-db-impact-list div{flex:1}.k4w-db-history strong,.k4w-db-impact-list strong{display:block;font-size:.83rem}.k4w-db-history small,.k4w-db-impact-list small{display:block;color:#728197;font-size:.72rem;margin-top:.15rem}.k4w-db-history b,.k4w-db-impact-list b{font-size:.73rem;padding:.25rem .55rem;border-radius:999px;background:#edf3f8;color:#52697d}.k4w-db-history b.is-completed{background:#e8f8ef;color:#16824b}.k4w-db-history b.is-failed{background:#ffeded;color:#c53a3d}.k4w-db-empty{padding:1.2rem;color:#7a899a}.k4w-db-form-error,.k4w-db-field-error{padding:.8rem 1rem;border-radius:13px;background:#ffeded;color:#b83235}.k4w-db-confirm-grid{display:grid;grid-template-columns:1.25fr .75fr;gap:1.2rem}.k4w-db-danger-count{min-width:220px;padding:1.2rem;border-radius:20px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.14);display:grid}.k4w-db-danger-count small{color:#c6d4e0}.k4w-db-danger-count strong{font-size:2.2rem;color:#ffdf00}.k4w-db-danger-count span{font-size:.72rem;color:#c6d4e0}.k4w-db-summary-list{list-style:none;padding:1rem 1.2rem;margin:0;display:grid;gap:.75rem}.k4w-db-summary-list li{display:flex;justify-content:space-between;gap:1rem;padding-bottom:.7rem;border-bottom:1px solid #edf1f5}.dark .k4w-db-summary-list li{border-color:#1f3b55}.k4w-db-summary-list span{color:#728197;font-size:.78rem}.k4w-db-summary-list strong{font-size:.78rem;text-align:right}.k4w-db-dependency-note{display:flex;gap:.75rem;align-items:flex-start;margin:0 1.1rem 1.1rem;padding:.9rem;border-radius:14px;background:#eef7ff;color:#276186}.dark .k4w-db-dependency-note{background:#17344e;color:#c5e7ff}.k4w-db-confirm-box{padding:1.25rem;border:2px solid #ef5a5d;border-radius:22px;background:#fff}.dark .k4w-db-confirm-box{background:#10243a}.k4w-db-confirm-box form{display:grid;gap:1rem;margin-top:1.1rem}.k4w-db-confirm-box form>label:not(.k4w-db-ack){display:grid;gap:.4rem}.k4w-db-confirm-box input[type=text],.k4w-db-confirm-box input[type=password]{width:100%;padding:.8rem .9rem;border:1px solid #ccd8e4;border-radius:12px;background:#fff;color:#13283b}.dark .k4w-db-confirm-box input[type=text],.dark .k4w-db-confirm-box input[type=password]{background:#0b1c2d;border-color:#2c475f;color:#fff}.k4w-db-confirm-box code{padding:.12rem .35rem;border-radius:6px;background:#1b2a38;color:#ffdf00}.k4w-db-ack{display:flex;align-items:flex-start;gap:.6rem;font-size:.8rem}.k4w-db-ack input{margin-top:.2rem}.k4w-db-confirm-actions,.k4w-db-result-actions{display:flex;align-items:center;justify-content:flex-end;gap:.8rem}.k4w-db-confirm-actions a,.k4w-db-result-actions a{display:inline-flex;align-items:center;gap:.35rem;padding:.75rem .9rem;border:1px solid #d9e3ec;border-radius:12px;font-weight:750}.k4w-db-confirm-actions button{background:#d93d42;color:#fff}.k4w-db-result-hero{justify-content:flex-start}.k4w-db-result-hero>.material-symbols-outlined{font-size:3.2rem}.k4w-db-result-hero.is-completed>.material-symbols-outlined{color:#4ee29a}.k4w-db-result-hero.is-failed>.material-symbols-outlined{color:#ff6b6b}.k4w-db-result-cards article{display:grid}.k4w-db-result-cards span{font-size:.72rem;color:#75849a}.k4w-db-result-cards strong{font-size:1.2rem}.k4w-db-error-detail{margin:1rem;padding:1rem;border-radius:13px;background:#ffeded;color:#a52e32}.k4w-db-error-detail pre{white-space:pre-wrap;font-size:.72rem;margin:.5rem 0 0}.k4w-db-result-actions{justify-content:flex-start}.k4w-db-result-actions a:first-child{background:#071d31;color:#fff;border-color:#071d31}
@media(max-width:1100px){.k4w-db-groups-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.k4w-db-safety-grid,.k4w-db-result-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:720px){.k4w-db-hero,.k4w-db-result-hero,.k4w-db-action-bar{align-items:flex-start;flex-direction:column}.k4w-db-mode-grid,.k4w-db-groups-grid,.k4w-db-options,.k4w-db-confirm-grid,.k4w-db-safety-grid,.k4w-db-result-cards{grid-template-columns:1fr}.k4w-db-hero-state,.k4w-db-danger-count{width:100%}.k4w-db-action-bar button{width:100%;justify-content:center}.k4w-db-confirm-actions{align-items:stretch;flex-direction:column}.k4w-db-confirm-actions a,.k4w-db-confirm-actions button{justify-content:center;width:100%}}

/* V9.1 — logótipo horizontal e manutenção da base de dados reconstruída */
[data-testid="sidebar"] img[src*="logo-horizontal"],aside img[src*="logo-horizontal"]{width:210px!important;height:58px!important;max-width:100%!important;object-fit:contain!important;object-position:left center!important}.k4w-maint-page{display:grid;gap:1.15rem;max-width:1480px;margin:0 auto;padding:.2rem 0 1.5rem}.k4w-maint-hero{display:grid;grid-template-columns:minmax(0,1fr) 250px;gap:1.2rem;padding:clamp(1.4rem,3vw,2.5rem);border-radius:24px;background:linear-gradient(135deg,#071b2e,#0f3552);color:#fff;overflow:hidden;position:relative}.k4w-maint-hero:after{content:"";position:absolute;width:280px;height:280px;border-radius:50%;right:-100px;top:-130px;background:rgba(255,216,0,.13)}.k4w-maint-hero.is-danger{background:linear-gradient(135deg,#3b1014,#8c2229)}.k4w-maint-kicker{font-size:.68rem;letter-spacing:.15em;font-weight:850;color:#ffdc00}.k4w-maint-hero h1{font-size:clamp(1.9rem,4vw,3.2rem);line-height:1.05;margin:.55rem 0 .8rem}.k4w-maint-hero p{max-width:850px;color:#c7d3dd;line-height:1.65;margin:0}.k4w-maint-tags{display:flex;flex-wrap:wrap;gap:.55rem;margin-top:1.2rem}.k4w-maint-tags span{font-size:.7rem;padding:.35rem .55rem;border-radius:999px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12)}.k4w-maint-state,.k4w-maint-impact{position:relative;z-index:2;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;padding:1.2rem;border-radius:20px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.13)}.k4w-maint-state>.material-symbols-outlined{font-size:34px;color:#ffdc00}.k4w-maint-state small,.k4w-maint-impact small{color:#aebfcb;margin-top:.8rem}.k4w-maint-state strong,.k4w-maint-impact strong{font-size:1.45rem;margin:.15rem 0}.k4w-maint-state em{font-style:normal;color:#d3dde5;font-size:.72rem}.k4w-maint-impact strong{font-size:2.5rem;color:#ffdc00}.k4w-maint-impact span{font-size:.72rem;color:#e4c8ca}.k4w-maint-alert{display:flex;gap:.8rem;padding:1rem 1.15rem;border-radius:17px;align-items:flex-start}.k4w-maint-alert.is-warning{background:#fff5d6;color:#805600;border:1px solid #f4d783}.k4w-maint-alert.is-danger{background:#ffeded;color:#a72d32;border:1px solid #f4c0c2}.dark .k4w-maint-alert.is-warning{background:#413313;color:#ffe08a;border-color:#624d1c}.dark .k4w-maint-alert.is-danger{background:#441b20;color:#ffc1c4;border-color:#713036}.k4w-maint-alert strong{display:block}.k4w-maint-alert p{margin:.25rem 0 0;line-height:1.5}.k4w-maint-safety{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.85rem}.k4w-maint-safety article{display:flex;gap:.75rem;align-items:flex-start;padding:1rem;border-radius:18px;background:#fff;border:1px solid #e0e8ee;box-shadow:0 8px 24px rgba(18,46,66,.06)}.dark .k4w-maint-safety article,.dark .k4w-maint-panel{background:#0d2235;border-color:#203c53}.k4w-maint-safety .material-symbols-outlined{width:42px;height:42px;border-radius:13px;display:grid;place-items:center;background:#edf6ff;color:#2478a9}.dark .k4w-maint-safety .material-symbols-outlined{background:#173750;color:#8cd3ff}.k4w-maint-safety strong{display:block;font-size:.82rem}.k4w-maint-safety p{font-size:.72rem;line-height:1.45;color:#748191;margin:.2rem 0 0}.k4w-maint-form{display:grid;gap:1.15rem}.k4w-maint-panel{background:#fff;border:1px solid #e0e8ee;border-radius:22px;box-shadow:0 12px 34px rgba(19,47,67,.06);overflow:hidden}.k4w-maint-panel>header{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;padding:1.15rem 1.3rem;border-bottom:1px solid #e9eef2}.dark .k4w-maint-panel>header{border-color:#203c53}.k4w-maint-panel header span{font-size:.63rem;letter-spacing:.14em;font-weight:850;color:#2181b8}.k4w-maint-panel h2{margin:.2rem 0;font-size:1.15rem}.k4w-maint-panel header p{margin:0;color:#738091;font-size:.72rem}.k4w-maint-panel header.has-action a{padding:.55rem .7rem;border:1px solid #d7e2e9;border-radius:10px;font-size:.72rem;font-weight:750}.k4w-maint-mode-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.9rem;padding:1.15rem}.k4w-maint-mode,.k4w-maint-group{position:relative;display:grid;grid-template-columns:46px 1fr auto;gap:.85rem;align-items:center;padding:1rem;border:1px solid #dce5eb;border-radius:17px;cursor:pointer;background:#fbfdfe;transition:.2s}.dark .k4w-maint-mode,.dark .k4w-maint-group{background:#10283d;border-color:#28445b}.k4w-maint-mode:hover,.k4w-maint-group:hover{transform:translateY(-1px);border-color:#7eb6d7;box-shadow:0 8px 22px rgba(27,76,106,.09)}.k4w-maint-mode.is-danger{border-color:#efc6c8}.k4w-maint-mode input,.k4w-maint-group input{position:absolute;opacity:0;pointer-events:none}.k4w-maint-mode>.material-symbols-outlined,.k4w-maint-group>.material-symbols-outlined{width:44px;height:44px;border-radius:14px;display:grid;place-items:center;background:#eaf5fd;color:#2277a6}.k4w-maint-mode.is-danger>.material-symbols-outlined,.k4w-maint-group.is-danger>.material-symbols-outlined{background:#ffebec;color:#c63c41}.k4w-maint-mode strong,.k4w-maint-group strong{display:block;font-size:.83rem}.k4w-maint-mode p,.k4w-maint-group p{font-size:.72rem;line-height:1.45;color:#748191;margin:.22rem 0 0}.k4w-maint-mode i,.k4w-maint-group i{width:22px;height:22px;border:2px solid #bac9d5;border-radius:50%;position:relative}.k4w-maint-mode input:checked~i,.k4w-maint-group input:checked~i{border-color:#1982b7;background:#1982b7;box-shadow:inset 0 0 0 4px #fff}.k4w-maint-mode.is-danger input:checked~i{border-color:#d64247;background:#d64247}.k4w-maint-groups{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem;padding:1.15rem}.k4w-maint-group{grid-template-columns:42px 1fr auto 22px;padding:.85rem}.k4w-maint-group b{font-size:.7rem;min-width:32px;text-align:center;padding:.28rem .42rem;border-radius:999px;background:#edf3f7;color:#5f7181}.k4w-maint-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem;padding:1.15rem}.k4w-maint-options label{display:flex;align-items:flex-start;gap:.7rem;padding:.85rem;border:1px solid #e0e8ee;border-radius:15px}.dark .k4w-maint-options label{border-color:#28445b}.k4w-maint-options input{margin-top:.18rem}.k4w-maint-options strong{display:block;font-size:.8rem}.k4w-maint-options small{display:block;color:#748191;line-height:1.45;margin-top:.2rem}.k4w-maint-preserve{border-top:1px solid #e9eef2;padding-top:.2rem}.dark .k4w-maint-preserve{border-color:#203c53}.k4w-maint-preserve h3{padding:.9rem 1.15rem 0;font-size:.75rem;color:#617183}.k4w-maint-actionbar{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem 1.2rem;border-radius:18px;background:#071d31;color:#fff}.k4w-maint-actionbar>div{display:flex;align-items:center;gap:.7rem}.k4w-maint-actionbar p{margin:0;color:#bed0dd;font-size:.75rem}.k4w-maint-actionbar button,.k4w-maint-buttons button{display:inline-flex;align-items:center;gap:.45rem;border:0;border-radius:12px;padding:.78rem .95rem;background:#ffdb00;color:#151515;font-weight:850;cursor:pointer}.k4w-maint-actionbar button:disabled{opacity:.45}.k4w-maint-history>a,.k4w-maint-impact-list>div{display:grid;grid-template-columns:42px 1fr auto;gap:.8rem;align-items:center;padding:.9rem 1.15rem;border-bottom:1px solid #edf1f4}.dark .k4w-maint-history>a,.dark .k4w-maint-impact-list>div{border-color:#203c53}.k4w-maint-history>a:last-child,.k4w-maint-impact-list>div:last-child{border-bottom:0}.k4w-maint-history .material-symbols-outlined,.k4w-maint-impact-list .material-symbols-outlined{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;background:#edf5fa;color:#2779a7}.k4w-maint-history strong,.k4w-maint-impact-list strong{display:block;font-size:.8rem}.k4w-maint-history small,.k4w-maint-impact-list small{display:block;color:#748191;font-size:.69rem;margin-top:.18rem}.k4w-maint-history b,.k4w-maint-impact-list b{font-size:.68rem;padding:.28rem .5rem;border-radius:999px;background:#eef3f7;color:#5f7080}.k4w-maint-history b.is-completed{background:#e5f8ed;color:#168049}.k4w-maint-history b.is-failed{background:#ffeded;color:#c23b3f}.k4w-maint-empty{display:flex;gap:.65rem;align-items:center;padding:1.15rem;color:#7a8794}.k4w-maint-field-error{margin:.2rem 1.15rem 1rem;padding:.7rem .85rem;border-radius:12px;background:#ffeded;color:#ad3035}.k4w-maint-two-columns{display:grid;grid-template-columns:1.15fr .85fr;gap:1.15rem}.k4w-maint-summary{margin:0;padding:1rem 1.2rem}.k4w-maint-summary>div{display:flex;justify-content:space-between;gap:1rem;padding:.72rem 0;border-bottom:1px solid #e9eef2}.dark .k4w-maint-summary>div{border-color:#203c53}.k4w-maint-summary>div:last-child{border-bottom:0}.k4w-maint-summary dt{color:#718091;font-size:.75rem}.k4w-maint-summary dd{margin:0;text-align:right;font-size:.75rem;font-weight:750;max-width:60%;word-break:break-word}.k4w-maint-inline-note{display:flex;gap:.65rem;margin:0 1.15rem 1.15rem;padding:.8rem;border-radius:13px;background:#edf7ff;color:#286185}.k4w-maint-inline-note p{margin:0;font-size:.73rem;line-height:1.45}.k4w-maint-confirm-box{display:grid;grid-template-columns:.7fr 1.3fr;gap:1.2rem;padding:1.3rem;border:2px solid #e04a4f;border-radius:22px;background:#fff}.dark .k4w-maint-confirm-box{background:#0d2235}.k4w-maint-confirm-box>div>.material-symbols-outlined{font-size:40px;color:#d54146}.k4w-maint-confirm-box h2{margin:.3rem 0}.k4w-maint-confirm-box p{color:#738091;line-height:1.5}.k4w-maint-confirm-box code{background:#1d2b38;color:#ffdc00;padding:.15rem .35rem;border-radius:6px}.k4w-maint-confirm-box form{display:grid;gap:.9rem}.k4w-maint-confirm-box form>label:not(.k4w-maint-ack){display:grid;gap:.35rem;font-weight:750;font-size:.78rem}.k4w-maint-confirm-box input[type=text],.k4w-maint-confirm-box input[type=password]{width:100%;padding:.8rem .9rem;border:1px solid #cfdbe4;border-radius:11px;background:#fff;color:#14283a}.dark .k4w-maint-confirm-box input[type=text],.dark .k4w-maint-confirm-box input[type=password]{background:#091a2a;border-color:#315068;color:#fff}.k4w-maint-ack{display:flex;align-items:flex-start;gap:.55rem;font-size:.76rem}.k4w-maint-buttons{display:flex;justify-content:flex-end;gap:.7rem}.k4w-maint-buttons.is-left{justify-content:flex-start}.k4w-maint-buttons a{display:inline-flex;align-items:center;padding:.72rem .85rem;border:1px solid #d7e2e9;border-radius:11px;font-size:.75rem;font-weight:750}.k4w-maint-buttons button{background:#d63d42;color:#fff}.k4w-maint-result-hero{display:flex;align-items:center;gap:1rem;padding:1.5rem;border-radius:22px;background:#0d2d43;color:#fff}.k4w-maint-result-hero>.material-symbols-outlined{font-size:48px;color:#ffdc00}.k4w-maint-result-hero.is-completed>.material-symbols-outlined{color:#4bde91}.k4w-maint-result-hero.is-failed>.material-symbols-outlined{color:#ff6c71}.k4w-maint-result-hero h1{margin:.2rem 0;font-size:2rem}.k4w-maint-result-hero p{margin:0;color:#bdced9}.k4w-maint-result-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.8rem}.k4w-maint-result-cards article{padding:1rem 1.1rem;border-radius:17px;background:#fff;border:1px solid #e0e8ee}.dark .k4w-maint-result-cards article{background:#0d2235;border-color:#203c53}.k4w-maint-result-cards span{display:block;font-size:.7rem;color:#728091}.k4w-maint-result-cards strong{display:block;font-size:1.35rem;margin-top:.2rem}@media(max-width:1100px){.k4w-maint-safety{grid-template-columns:repeat(2,1fr)}.k4w-maint-groups{grid-template-columns:repeat(2,1fr)}}@media(max-width:800px){.k4w-maint-hero,.k4w-maint-two-columns,.k4w-maint-confirm-box{grid-template-columns:1fr}.k4w-maint-mode-grid,.k4w-maint-options{grid-template-columns:1fr}.k4w-maint-result-cards{grid-template-columns:repeat(2,1fr)}}@media(max-width:560px){.k4w-maint-safety,.k4w-maint-groups,.k4w-maint-result-cards{grid-template-columns:1fr}.k4w-maint-actionbar{align-items:flex-start;flex-direction:column}.k4w-maint-actionbar button{width:100%;justify-content:center}}

/* V9.2 — Centro de monitorização */
.portal-monitor-hero {
    background:
        radial-gradient(circle at 92% -25%, rgba(255, 212, 0, .38) 0 22%, transparent 48%),
        radial-gradient(circle at 4% 125%, rgba(8, 36, 68, .82) 0 30%, transparent 55%),
        linear-gradient(122deg, #061b31 0%, #0f5188 46%, #167dab 100%);
}
.portal-monitor-meta { display:flex; flex-wrap:wrap; gap:1rem; margin-top:1rem; color:rgba(255,255,255,.78); font-size:.72rem; }
.portal-monitor-meta span { display:inline-flex; align-items:center; gap:.45rem; }
.portal-monitor-meta i { width:.48rem; height:.48rem; border-radius:999px; background:#5df0ae; box-shadow:0 0 0 5px rgba(93,240,174,.15); }
.portal-v4-actions button { border:1px solid rgba(255,255,255,.22); background:rgba(255,255,255,.12); color:#fff; border-radius:12px; padding:.72rem .92rem; display:inline-flex; align-items:center; gap:.45rem; font-weight:750; font-size:.73rem; cursor:pointer; }
.portal-v4-actions button:hover { background:rgba(255,255,255,.2); transform:translateY(-1px); }
.portal-v4-actions button:disabled { opacity:.55; cursor:wait; }
.portal-monitor-kpis > a { color:inherit !important; text-decoration:none !important; }
.portal-monitor-kpis > a.is-success { border-color:rgba(39,184,135,.3); }
.portal-monitor-kpis > a.is-warning { border-color:rgba(244,180,67,.35); }
.portal-monitor-kpis > a.is-danger { border-color:rgba(239,83,97,.35); }
.portal-monitor-summary { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.8rem; margin:0 0 1rem; }
.portal-monitor-summary article { display:flex; align-items:center; gap:.8rem; padding:1rem 1.1rem; border:1px solid rgb(var(--color-base-200)); border-radius:16px; background:rgb(var(--color-base-50)); box-shadow:var(--portal-panel-shadow); }
.dark .portal-monitor-summary article { background:rgb(var(--color-base-900)); border-color:rgba(255,255,255,.08); }
.portal-monitor-summary .material-symbols-outlined { display:grid; place-items:center; width:38px; height:38px; border-radius:12px; background:rgba(38,132,255,.11); color:var(--portal-blue); }
.portal-monitor-summary small,.portal-monitor-summary strong { display:block; }
.portal-monitor-summary small { color:rgb(var(--color-base-400)); font-size:.58rem; text-transform:uppercase; letter-spacing:.08em; font-weight:800; }
.portal-monitor-summary strong { margin-top:.15rem; color:rgb(var(--color-font-important-light)); font-size:1.05rem; }
.dark .portal-monitor-summary strong { color:rgb(var(--color-font-important-dark)); }
.portal-monitor-table { display:flex; flex-direction:column; }
.portal-monitor-table > article { display:grid; grid-template-columns:10px minmax(210px,1fr) 72px 95px 115px 38px; align-items:center; gap:.75rem; padding:.75rem .2rem; border-bottom:1px solid rgb(var(--color-base-100)); }
.dark .portal-monitor-table > article { border-color:rgba(255,255,255,.07); }
.portal-monitor-table > article:last-child { border-bottom:0; }
.portal-monitor-status-dot { width:8px; height:8px; border-radius:999px; background:#8994a4; box-shadow:0 0 0 5px rgba(137,148,164,.1); }
.portal-monitor-table article.is-up .portal-monitor-status-dot { background:var(--portal-green); box-shadow:0 0 0 5px rgba(39,184,135,.12); }
.portal-monitor-table article.is-degraded .portal-monitor-status-dot { background:var(--portal-amber); box-shadow:0 0 0 5px rgba(244,180,67,.13); }
.portal-monitor-table article.is-down .portal-monitor-status-dot { background:var(--portal-red); box-shadow:0 0 0 5px rgba(239,83,97,.13); }
.portal-monitor-table article.is-maintenance .portal-monitor-status-dot { background:var(--portal-violet); }
.portal-monitor-identity { min-width:0; }
.portal-monitor-identity strong,.portal-monitor-identity small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.portal-monitor-identity strong { color:rgb(var(--color-font-important-light)); font-size:.72rem; }
.dark .portal-monitor-identity strong { color:rgb(var(--color-font-important-dark)); }
.portal-monitor-identity small { margin-top:.18rem; color:rgb(var(--color-base-400)); font-size:.56rem; }
.portal-monitor-table article > div:not(.portal-monitor-identity):not(.portal-monitor-status-dot) small,.portal-monitor-table article > div:not(.portal-monitor-identity):not(.portal-monitor-status-dot) b { display:block; }
.portal-monitor-table article > div small { color:rgb(var(--color-base-400)); font-size:.5rem; text-transform:uppercase; letter-spacing:.06em; }
.portal-monitor-table article > div b { margin-top:.14rem; font-size:.64rem; }
.portal-monitor-label { justify-self:start; padding:.32rem .55rem; border-radius:999px; background:rgba(137,148,164,.1); color:#697587; font-size:.52rem; font-weight:850; white-space:nowrap; }
.is-up .portal-monitor-label { background:rgba(39,184,135,.1); color:#16835f; }
.is-degraded .portal-monitor-label { background:rgba(244,180,67,.13); color:#9d6810; }
.is-down .portal-monitor-label { background:rgba(239,83,97,.12); color:#be2d3b; }
.is-maintenance .portal-monitor-label { background:rgba(108,92,231,.11); color:#5d4ccc; }
.run-one-monitor { display:grid; place-items:center; width:32px; height:32px; border:1px solid rgb(var(--color-base-200)); border-radius:10px; background:transparent; color:var(--portal-blue); cursor:pointer; }
.dark .run-one-monitor { border-color:rgba(255,255,255,.1); }
.run-one-monitor:hover { background:rgba(38,132,255,.08); }
.run-one-monitor .material-symbols-outlined { font-size:1rem; }
.run-one-monitor.is-running .material-symbols-outlined { animation:k4w-monitor-spin .8s linear infinite; }
@keyframes k4w-monitor-spin { to { transform:rotate(360deg); } }
.portal-monitor-history { display:flex; flex-direction:column; }
.portal-monitor-history > a { display:grid; grid-template-columns:28px minmax(230px,1fr) 90px 90px; align-items:center; gap:.75rem; padding:.72rem 0; border-bottom:1px solid rgb(var(--color-base-100)); color:inherit !important; text-decoration:none !important; }
.dark .portal-monitor-history > a { border-color:rgba(255,255,255,.07); }
.portal-monitor-history > a:last-child { border-bottom:0; }
.portal-monitor-history .material-symbols-outlined { font-size:1.05rem; color:#8994a4; }
.portal-monitor-history .is-up .material-symbols-outlined { color:var(--portal-green); }
.portal-monitor-history .is-degraded .material-symbols-outlined { color:var(--portal-amber); }
.portal-monitor-history .is-down .material-symbols-outlined { color:var(--portal-red); }
.portal-monitor-history strong,.portal-monitor-history small { display:block; }
.portal-monitor-history strong { font-size:.68rem; }
.portal-monitor-history small { margin-top:.15rem; color:rgb(var(--color-base-400)); font-size:.54rem; }
.portal-monitor-history b { font-size:.6rem; text-align:right; }
@media (max-width:1000px){ .portal-monitor-summary{grid-template-columns:1fr;} .portal-monitor-table>article{grid-template-columns:10px minmax(180px,1fr) 80px 36px;} .portal-monitor-table>article>div:nth-of-type(3),.portal-monitor-label{display:none;} }
@media (max-width:680px){ .portal-monitor-table>article{grid-template-columns:10px minmax(0,1fr) 34px;} .portal-monitor-table>article>div:not(.portal-monitor-identity),.portal-monitor-label{display:none;} .portal-monitor-history>a{grid-template-columns:24px minmax(0,1fr);}.portal-monitor-history>a>b{display:none;} }

/* V9.3 — robustez visual, ícones locais e pré-visualização de clientes */
.material-symbols-outlined {
    font-family: "Material Symbols Outlined" !important;
    font-weight: normal !important;
    font-style: normal !important;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none !important;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: "liga";
    font-feature-settings: "liga";
    -webkit-font-smoothing: antialiased;
    font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}
.portal-admin-icon,
.portal-admin-stat-icon,
.portal-admin-stat-arrow,
.k4w-maint-page .material-symbols-outlined {
    flex: 0 0 auto;
    overflow: hidden;
    max-width: 2.75rem;
}
.portal-admin-icon { max-width: 4.25rem; }

/* Prevent custom pages from escaping the Unfold content container. */
.k4w-maint-page,
.k4w-preview-page,
.portal-v4-page,
.portal-v5-page,
.k4w-monitor-center {
    width: 100%;
    max-width: 1660px;
    margin: 0 auto;
    box-sizing: border-box;
}
.k4w-maint-page *, .k4w-preview-page * { box-sizing: border-box; }
.k4w-maint-page input, .k4w-maint-page button, .k4w-maint-page select,
.k4w-preview-page input, .k4w-preview-page button { font: inherit; }

.k4w-preview-page { display: grid; gap: 1.1rem; padding-bottom: 2rem; }
.k4w-preview-hero {
    position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto;
    align-items: center; gap: 2rem; padding: 2rem; border-radius: 24px;
    background: radial-gradient(circle at 88% 0, rgba(255,218,0,.24), transparent 30%), linear-gradient(135deg,#061a2d,#0a3b5d);
    color: #fff; box-shadow: 0 22px 55px rgba(3,21,38,.18);
}
.k4w-preview-eyebrow { color:#f3d400; font-size:.68rem; font-weight:900; letter-spacing:.14em; }
.k4w-preview-hero h1 { margin:.45rem 0 .65rem; font-size:clamp(1.7rem,3vw,2.55rem); font-weight:850; letter-spacing:-.035em; }
.k4w-preview-hero p { max-width:760px; margin:0; color:#c7d7e6; line-height:1.65; }
.k4w-preview-tags { display:flex; flex-wrap:wrap; gap:.5rem; margin-top:1rem; }
.k4w-preview-tags span { padding:.38rem .65rem; border:1px solid rgba(255,255,255,.16); border-radius:999px; background:rgba(255,255,255,.07); font-size:.68rem; }
.k4w-preview-hero aside { min-width:120px; display:grid; place-items:center; padding:1rem; border:1px solid rgba(255,255,255,.16); border-radius:18px; background:rgba(255,255,255,.07); }
.k4w-preview-hero aside .material-symbols-outlined { color:#f3d400; font-size:2.3rem; max-width:none; }
.k4w-preview-hero aside small { margin-top:.45rem; color:#c7d7e6; }
.k4w-preview-hero aside strong { font-size:1.05rem; }
.k4w-preview-current { display:flex; align-items:center; gap:.9rem; padding:1rem 1.1rem; border:1px solid #86efac; border-radius:16px; background:#f0fdf4; color:#14532d; }
.dark .k4w-preview-current { background:rgba(34,197,94,.1); border-color:rgba(34,197,94,.35); color:#bbf7d0; }
.k4w-preview-current .material-symbols-outlined { color:#16a34a; }
.k4w-preview-current div { flex:1; }
.k4w-preview-current p { margin:.15rem 0 0; font-size:.72rem; opacity:.78; }
.k4w-preview-current a { padding:.55rem .75rem; border-radius:10px; background:#166534; color:#fff!important; text-decoration:none; font-weight:750; font-size:.72rem; }
.k4w-preview-current a.is-secondary { background:transparent; color:inherit!important; border:1px solid currentColor; }
.k4w-preview-toolbar { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(260px,.8fr); gap:1rem; }
.k4w-preview-toolbar form, .k4w-preview-toolbar>div { display:flex; align-items:center; gap:.65rem; padding:.85rem 1rem; border:1px solid rgb(var(--color-base-200)); border-radius:15px; background:#fff; }
.dark .k4w-preview-toolbar form,.dark .k4w-preview-toolbar>div { background:rgb(var(--color-base-900)); border-color:rgb(var(--color-base-700)); }
.k4w-preview-toolbar input { min-width:0; flex:1; border:0; outline:0; background:transparent; color:inherit; }
.k4w-preview-toolbar button,.k4w-preview-toolbar a { border:0; border-radius:9px; padding:.55rem .72rem; background:#061a2d; color:#fff!important; text-decoration:none; cursor:pointer; font-weight:750; font-size:.7rem; }
.k4w-preview-toolbar>div p { margin:0; color:rgb(var(--color-base-500)); font-size:.72rem; line-height:1.5; }
.k4w-preview-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; }
.k4w-preview-card { min-width:0; padding:1.15rem; border:1px solid rgb(var(--color-base-200)); border-radius:18px; background:#fff; box-shadow:0 10px 30px rgba(15,23,42,.055); }
.dark .k4w-preview-card { background:rgb(var(--color-base-900)); border-color:rgb(var(--color-base-700)); }
.k4w-preview-card.is-disabled { opacity:.62; }
.k4w-preview-card header { display:flex; align-items:center; gap:.75rem; }
.k4w-preview-avatar { width:43px; height:43px; display:grid; place-items:center; border-radius:50%; background:#061a2d; color:#f3d400; font-weight:900; }
.k4w-preview-card header div { min-width:0; flex:1; }
.k4w-preview-card h2 { margin:0; font-size:.9rem; color:rgb(var(--color-font-important-light)); }
.dark .k4w-preview-card h2 { color:rgb(var(--color-font-important-dark)); }
.k4w-preview-card header p { margin:.15rem 0 0; color:rgb(var(--color-base-500)); font-size:.68rem; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.k4w-preview-state { padding:.32rem .55rem; border-radius:999px; font-size:.62rem; font-weight:850; }
.k4w-preview-state.is-active { background:#dcfce7; color:#166534; }
.k4w-preview-state.is-inactive { background:#fee2e2; color:#991b1b; }
.k4w-preview-card dl { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.55rem; margin:1rem 0; }
.k4w-preview-card dl div { min-width:0; padding:.68rem; border-radius:11px; background:rgb(var(--color-base-50)); }
.dark .k4w-preview-card dl div { background:rgb(var(--color-base-800)); }
.k4w-preview-card dt { color:rgb(var(--color-base-500)); font-size:.6rem; }
.k4w-preview-card dd { margin:.18rem 0 0; font-size:.72rem; font-weight:700; overflow:hidden; text-overflow:ellipsis; }
.k4w-preview-card footer { display:flex; gap:.55rem; flex-wrap:wrap; padding-top:.85rem; border-top:1px solid rgb(var(--color-base-100)); }
.dark .k4w-preview-card footer { border-color:rgb(var(--color-base-800)); }
.k4w-preview-card footer form { flex:1; }
.k4w-preview-card footer button { width:100%; display:flex; align-items:center; justify-content:center; gap:.4rem; border:0; border-radius:10px; padding:.65rem .75rem; background:#061a2d; color:#fff; cursor:pointer; font-weight:800; font-size:.7rem; }
.k4w-preview-card footer button.is-warning { background:#f3d400; color:#302800; }
.k4w-preview-card footer button .material-symbols-outlined { font-size:1rem; max-width:none; }
.k4w-preview-card footer>span { color:rgb(var(--color-base-500)); font-size:.7rem; }
.k4w-preview-empty { grid-column:1/-1; text-align:center; padding:3rem; border:1px dashed rgb(var(--color-base-300)); border-radius:18px; }
.k4w-preview-empty .material-symbols-outlined { font-size:2.5rem; max-width:none; color:rgb(var(--color-base-400)); }

/* Maintenance page: force a stable layout even if browser zoom or cache is stale. */
.k4w-maint-hero { min-height:220px; }
.k4w-maint-safety { grid-template-columns:repeat(4,minmax(0,1fr))!important; }
.k4w-maint-mode-grid { grid-template-columns:repeat(2,minmax(0,1fr))!important; }
.k4w-maint-groups { grid-template-columns:repeat(2,minmax(0,1fr))!important; }
.k4w-maint-options { grid-template-columns:repeat(2,minmax(0,1fr))!important; }
.k4w-maint-panel, .k4w-maint-actionbar, .k4w-maint-hero { width:100%; }

@media(max-width:1000px){
  .k4w-preview-grid{grid-template-columns:1fr}.k4w-preview-toolbar{grid-template-columns:1fr}
  .k4w-maint-safety,.k4w-maint-groups{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:700px){
  .k4w-preview-hero{grid-template-columns:1fr}.k4w-preview-hero aside{display:none}.k4w-preview-card dl{grid-template-columns:1fr}
  .k4w-maint-safety,.k4w-maint-mode-grid,.k4w-maint-groups,.k4w-maint-options{grid-template-columns:1fr!important}
}
.k4w-inline-preview{display:inline-flex;align-items:center;padding:.38rem .58rem;border-radius:8px;background:#e0f2fe;color:#075985!important;text-decoration:none;font-size:.65rem;font-weight:800}.dark .k4w-inline-preview{background:rgba(14,165,233,.14);color:#7dd3fc!important}

/* V9.4 — centro de dados fictícios WordPress */
.k4w-demo-wp-page { display: grid; gap: 1.25rem; }
.k4w-metric-grid--five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.k4w-feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; padding: 1.25rem; }
.k4w-feature-grid > div { background: rgba(255,255,255,.78); border: 1px solid rgba(148,163,184,.22); border-radius: 18px; padding: 1.1rem; min-height: 150px; }
.dark .k4w-feature-grid > div { background: rgba(15,23,42,.72); }
.k4w-feature-grid .material-symbols-outlined { width: 42px; height: 42px; display: inline-grid; place-items: center; border-radius: 13px; background: rgba(245,158,11,.13); color: #d97706; margin-bottom: .8rem; }
.k4w-feature-grid strong { display:block; font-size:1rem; margin-bottom:.4rem; }
.k4w-feature-grid p { margin:0; color:var(--color-base-500); line-height:1.55; }
.k4w-demo-actions { display:grid; gap:1rem; padding:1.25rem; }
.k4w-demo-actions label { display:grid; gap:.45rem; max-width:560px; }
.k4w-demo-actions input { width:100%; border:1px solid rgba(148,163,184,.38); border-radius:14px; padding:.85rem 1rem; background:rgba(255,255,255,.9); }
.dark .k4w-demo-actions input { background:rgba(15,23,42,.85); color:white; }
.k4w-action-row { display:flex; flex-wrap:wrap; gap:.75rem; }
.k4w-btn { display:inline-flex !important; align-items:center; gap:.5rem; min-height:42px; padding:.65rem 1rem !important; border-radius:12px !important; font-weight:700 !important; }
.k4w-btn--primary { background:#d99800 !important; color:#111827 !important; }
.k4w-btn--warning { background:#f59e0b !important; color:#111827 !important; }
.k4w-btn--danger { background:#dc2626 !important; color:white !important; }
.k4w-panel--danger-soft { border-color:rgba(220,38,38,.2); }
@media (max-width: 1200px) { .k4w-metric-grid--five { grid-template-columns:repeat(3,minmax(0,1fr)); } .k4w-feature-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width: 720px) { .k4w-metric-grid--five,.k4w-feature-grid { grid-template-columns:1fr; } .k4w-action-row { flex-direction:column; } .k4w-action-row .button { width:100%; justify-content:center; } }
