.cdp-layout { max-width: 1440px; margin: 8px auto 24px; padding: 0 16px; box-sizing: border-box; }
.cdp-main { min-width: 0; }
.cdp-sidebar .ad-slot--sidebar-vertical-fixed { margin: 0 auto; contain: none; overflow: visible; }
@media (min-width: 1100px) {
    .cdp-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
}

.cdp-main .fr-tool {
    background: var(--content-bg, #fff);
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
    border-radius: 12px;
    border: 1px solid var(--border-color, #e5e7eb);
    padding: 16px;
    margin-bottom: 20px;
}
.fr-tool .form-group select,
.fr-tool .form-group input[type="text"],
.fr-tool .form-group input[type="time"] {
    width: 100%;
    box-sizing: border-box;
}
.fr-tool .form-group select {
    padding: 12px 15px;
    border: 1px solid #d2d2d7;
    border-radius: 8px;
    font-size: 1rem;
    background: #fff;
    color: inherit;
}
body.dark-mode .fr-tool .form-group select { background: #2d3748; color: #e8e8e8; border-color: #4a5568; }

.fr-result { margin-top: 0; margin-bottom: 20px; }
.fr-result[hidden] { display: none !important; }
.fr-result:not([hidden]) { display: block !important; }
.fr-result .screen-result-layout { display: block !important; width: 100% !important; max-width: none !important; margin: 0 0 18px !important; padding: 0 !important; border: 0 !important; background: transparent !important; }

.fr-result .result-summary-block.fr-faixa {
    min-height: 186px;
    border-radius: 18px;
    border: 1px solid rgba(18, 89, 170, 0.24);
    background: linear-gradient(138deg, #e7f1ff 0%, #f1f7ff 52%, #fbfdff 100%);
    box-shadow: 0 16px 34px rgba(18, 57, 108, 0.12);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 24px 20px;
    text-align: center;
    height: auto;
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box;
}
.fr-faixa .result-hero-prelude { font-size: 1rem; font-weight: 600; color: #355c88; }
.fr-faixa .result-hero-main-value { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.fr-faixa .highlight-value-refactored {
    font-family: "Noto Sans", "Segoe UI", Roboto, sans-serif;
    font-size: clamp(2rem, 4.8vw, 3.25rem) !important;
    font-weight: 800;
    color: #0d47a1;
    line-height: 1.05;
    letter-spacing: -0.02em;
    overflow-wrap: anywhere;
}
.fr-faixa .result-hero-unit { font-size: 1.04rem; font-weight: 700; color: #275083; }

.fr-result .result-summary-block.fr-faixa--linha { min-height: 0; padding: 20px 24px; gap: 8px; }
.fr-linha { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 22px; }
.fr-conta {
    font-family: "Noto Sans", "Segoe UI", Roboto, sans-serif;
    font-size: clamp(1.9rem, 4.4vw, 2.9rem);
    font-weight: 500;
    color: #355c88;
    line-height: 1.1;
    letter-spacing: -0.01em;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.fr-conta strong { font-weight: 800; color: #0d47a1; }
.fr-linha-sep { width: 1px; align-self: stretch; background: rgba(18, 89, 170, 0.24); }
.fr-adicionadas { font-size: 1.1rem; color: #275083; text-align: left; line-height: 1.4; max-width: 36ch; }
.fr-adicionadas strong { color: #0d47a1; }

.fr-mais {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
    font-size: .92rem;
    font-weight: 600;
    color: #1259aa;
    text-decoration: none;
}
.fr-mais:hover, .fr-mais:focus-visible { text-decoration: underline; }
.fr-mais svg { width: 16px; height: 16px; flex: none; }

.fr-result .cdp-ad-disclosure { margin: 0 0 18px; overflow: hidden; }

.fr-detalhes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; scroll-margin-top: 90px; }
.fr-detalhes--um { grid-template-columns: minmax(0, 1fr); }
.fr-sub { font-size: 1rem; font-weight: 700; margin: 0 0 10px; color: var(--text-color, #1d1d1f); }
.fr-lista { margin: 0; padding: 0; }
.fr-lista div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--border-color, #e5e7eb); }
.fr-lista dt { color: #495057; font-weight: 400; }
.fr-lista dd { margin: 0; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.fr-nota { font-size: .92rem; color: #495057; margin: 12px 0 0; line-height: 1.55; }
body.dark-mode .fr-lista dt, body.dark-mode .fr-nota { color: #cbd5e0; }

.fr-semanas { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.fr-semanas span { display: flex; align-items: center; justify-content: center; height: 34px; border-radius: 6px; font-size: .9rem; font-weight: 600; background: #f1f3f5; color: #6c757d; }
.fr-semanas span.is-on { background: #dff3e4; color: #1e7b34; }
.fr-semanas span.is-fim { background: #1e7b34; color: #fff; }

.fr-relogio { position: relative; }
.fr-relogio-escala, .fr-relogio-marcas { display: flex; justify-content: space-between; font-size: .8rem; color: #6c757d; }
.fr-relogio-barra { position: relative; height: 36px; background: #e9ecef; border-radius: 6px; margin: 6px 0; overflow: hidden; }
.fr-relogio-barra span { position: absolute; top: 0; bottom: 0; background: #0d6efd; }
.fr-relogio-marcas { position: relative; height: 18px; }
.fr-relogio-marcas span { position: absolute; transform: translateX(-50%); white-space: nowrap; }

.fr-ano { margin: 0 0 20px; }
.fr-ano-meses { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); font-size: .8rem; color: #6c757d; margin-bottom: 6px; }
.fr-ano-barra { position: relative; display: flex; height: 38px; border-radius: 6px; overflow: hidden; background: #d9dee5; }
.fr-ano-barra .fr-passado { background: #0d6efd; color: #fff; }
.fr-ano-barra .fr-falta { color: #1d1d1f; flex: 1; }
.fr-ano-barra span { display: flex; align-items: center; justify-content: center; font-size: .88rem; font-weight: 700; white-space: nowrap; overflow: hidden; }
.fr-ano-hoje { position: relative; height: 24px; font-size: .82rem; color: #495057; }
.fr-ano-hoje span { position: absolute; top: 4px; }
.fr-ano-hoje .fr-ano-marca { transform: translateX(-50%); font-weight: 700; color: #1d1d1f; }
.fr-ano-hoje .fr-ano-fim { right: 0; }
.fr-ano-hoje .fr-ano-ini { left: 0; }

.fr-cta { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; margin: 4px 0 0; }

@media (max-width: 700px) {
    .fr-detalhes { grid-template-columns: minmax(0, 1fr); }
    .fr-linha { flex-direction: column; gap: 8px; }
    .fr-linha-sep { display: none; }
    .fr-adicionadas { text-align: center; }
    .fr-result .result-summary-block.fr-faixa { min-height: 150px; padding: 20px 14px; }
    .fr-result .result-summary-block.fr-faixa--linha { min-height: 0; }
    .fr-ano-meses span:nth-child(even) { visibility: hidden; }
}

body.dark-mode .fr-result .result-summary-block.fr-faixa {
    border-color: rgba(99, 158, 233, 0.34);
    background: linear-gradient(140deg, rgba(19, 33, 51, 0.95) 0%, rgba(22, 37, 58, 0.95) 100%);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.36);
}
body.dark-mode .fr-faixa .result-hero-prelude,
body.dark-mode .fr-faixa .result-hero-unit,
body.dark-mode .fr-conta,
body.dark-mode .fr-adicionadas,
body.dark-mode .fr-mais { color: #a9ccfa; }
body.dark-mode .fr-faixa .highlight-value-refactored,
body.dark-mode .fr-conta strong,
body.dark-mode .fr-adicionadas strong { color: #eaf3ff; }

@media print {
    .fr-mais, .fr-result .cdp-ad-disclosure { display: none !important; }
}

.fr-tool .hub-menu-container { display: block; margin: 0; }
.fr-tool .hub-menu-list.cdp-portas { padding: 0; background: transparent; border: 0; box-shadow: none; max-width: none; border-radius: 0; width: auto; }
.fr-tool .cdp-portas .hub-menu-link:not(.active) { background: #f8f9fa; border-color: #dee2e6; color: #495057; }
.fr-tool .cdp-portas .hub-menu-link { white-space: normal; font-weight: 500; }
body.dark-mode .fr-tool .cdp-portas .hub-menu-link:not(.active) { background: #2c2c2e; border-color: #3a3a3c; color: #e0e0e0; }

.segment-selector.fr-seg {
    display: flex; align-items: stretch; gap: 8px; margin-top: 8px;
    background: #f8f9fa; padding: 4px; border-radius: 10px; border: 1px solid #dee2e6;
    width: 100%; min-height: 46px; box-sizing: border-box; overflow: visible;
}
.fr-seg .segment-btn {
    flex: 1 1 0; min-width: 0; min-height: 38px; padding: 0 10px; border-radius: 8px;
    border: 1px solid transparent; background: transparent; color: #495057;
    font-size: 0.9rem; font-weight: 700; line-height: 1.1; margin: 0; box-shadow: none;
}
.fr-seg .segment-btn:first-child { border-right: 1px solid transparent; }
.fr-seg .segment-btn.active { background-color: #0d6efd; color: #fff; border-color: #0b57d0; box-shadow: 0 2px 6px rgba(13, 110, 253, 0.35); }
.fr-seg .segment-btn:not(.active):hover { color: #2f3a45; border-color: #c9d4e3; background: #eef3fa; }
body.dark-mode .segment-selector.fr-seg { background: rgba(255, 255, 255, 0.05); border-color: var(--border-color); }
body.dark-mode .fr-seg .segment-btn { color: #c3cbd5; }
body.dark-mode .fr-seg .segment-btn.active { background-color: #1a6ae8; color: #fff; border-color: #1355c4; }
.fr-result .result-summary-block[hidden], .fr-detalhes [hidden], .fr-detalhes[hidden] { display: none !important; }
.fr-tool [hidden] { display: none !important; }
.cdp-main .fr-result { margin-left: 0 !important; margin-right: 0 !important; width: 100% !important; }
.fr-lista--ul { list-style: none; }
.fr-lista--ul li { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--border-color, #e5e7eb); }
.fr-lista--ul span { color: #495057; }
.fr-lista--ul strong { text-align: right; white-space: nowrap; }
body.dark-mode .fr-lista--ul span { color: #cbd5e0; }

.hu-result-card .fr-conta { white-space: normal; text-align: center; overflow-wrap: anywhere; font-size: clamp(1.45rem, 3.2vw, 2.5rem); }
.hu-result-card .fr-linha { flex-direction: column; gap: 8px; }
.hu-result-card .fr-linha-sep { display: none; }
.hu-result-card .fr-adicionadas { text-align: center; max-width: 62ch; }
@media (max-width: 768px) { .fr-result .cdp-ad-disclosure { width: auto; max-width: none; margin-left: 0; margin-right: 0; } }
