/* Low-risk home styles moved out of templates/index.html for CSP readiness. */

.home-usage-counter {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    cursor: pointer;
}

.home-upgrade-card__title {
    margin: 0;
    font-size: 1rem;
}

.home-upgrade-card__copy {
    margin: 0.25rem 0 0 0;
    font-size: 0.8rem;
    opacity: 0.95;
}

.home-header-ad {
    max-width: 1280px;
    margin: 0 auto 2rem;
    padding: 0 1.5rem;
    display: block;
}

.home-adsbygoogle {
    display: block;
}

.home-admin-card {
    max-width: 600px;
    margin: 0 auto 2rem;
}

.home-admin-field {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
}

.home-admin-field--select {
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.home-admin-fieldset {
    margin-bottom: 1rem;
}

.home-admin-plan-button {
    width: 100%;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.home-admin-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.home-admin-result {
    margin-top: 1rem;
    padding: 1rem;
    background: #f3f4f6;
    border-radius: 0.5rem;
    display: none;
}

.tab-badge--legacy {
    margin-left: 0.35rem;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
    background: #fef3c7;
    color: #92400e;
    font-size: 0.7rem;
    font-weight: 700;
}

.tool-log-output {
    display: none;
}

.home-quota-bar {
    display: none;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    font-size: 0.8rem;
    color: #0369a1;
}

.home-quota-bar__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.home-quota-bar__track {
    flex: 1;
    max-width: 120px;
    height: 6px;
    background: #e0f2fe;
    border-radius: 3px;
    overflow: hidden;
}

.home-quota-bar__fill {
    width: 0;
    height: 100%;
    background: #2563eb;
    border-radius: 3px;
    transition: width 0.3s;
}

.home-consent-toggle--locked {
    opacity: 0.6;
    cursor: not-allowed;
}

.home-hidden {
    display: none;
}

.home-panel-pad {
    padding: 1rem;
}

.home-panel-relative {
    position: relative;
}

.home-control-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.home-control-row {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.home-control-row--wide {
    gap: 1rem;
    align-items: center;
}

.home-inline-choice {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #475569;
    cursor: pointer;
}

.home-control-label {
    display: block;
    font-size: 0.85rem;
    color: #475569;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.home-control-label--muted {
    color: var(--text-secondary, #475569);
}

.home-control-input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    font-size: 0.9rem;
}

.home-control-input--theme {
    border-color: var(--border-primary, #e2e8f0);
}

.home-multi-select {
    min-height: 100px;
}

.home-form-help {
    display: block;
    margin-top: 0.25rem;
    color: var(--text-muted, #64748b);
    font-size: 0.75rem;
}

.home-primary-button-pad {
    padding: 0.75rem 1.5rem;
}

.home-secondary-button-pad {
    padding: 0.5rem 1rem;
}

.home-empty-state {
    text-align: center;
    color: #64748b;
    padding: 2rem;
}

.home-empty-state--theme {
    color: var(--text-muted, #64748b);
}

.home-empty-state__text {
    margin: 0;
    font-size: 0.9rem;
    font-style: italic;
}

.home-data-panel {
    padding: 1rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
}

.home-data-panel--stats,
.home-data-panel--comparison {
    min-height: 400px;
}

.home-data-panel--history {
    min-height: 200px;
    max-height: 500px;
    overflow-y: auto;
}

.home-data-panel--theme {
    background: var(--bg-surface, #ffffff);
    border-color: var(--border-primary, #e2e8f0);
}

.home-section-gap-top {
    margin-top: 1rem;
}

.home-legend-trigger {
    margin-bottom: 0.75rem;
    padding: 0.5rem 1rem;
    background: var(--bg-surface, #f8fafc);
    border: 1px solid var(--border-primary, #e2e8f0);
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-secondary, #475569);
    display: none;
}

.home-legend-panel {
    display: none;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: 0.75rem;
    border: 2px solid #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.home-legend-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.home-legend-title {
    margin: 0;
    font-size: 1.1rem;
    color: #0f172a;
}

.home-icon-button-plain {
    background: none;
    border: none;
    cursor: pointer;
    color: #64748b;
    line-height: 1;
}

.home-icon-button-plain--large {
    font-size: 1.5rem;
}

.home-legend-content,
.home-legend-zones {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.home-legend-copy {
    margin: 0;
    color: #64748b;
    font-size: 0.9rem;
}

.home-legend-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.home-legend-apply {
    flex: 1;
}

.home-premium-badge {
    padding: 0.75rem;
    background: #fef3c7;
    border-radius: 0.5rem;
    border-left: 4px solid #f59e0b;
    display: none;
}

.home-premium-badge__text {
    margin: 0;
    font-size: 0.85rem;
    color: #92400e;
}

.home-footer {
    background: rgba(15, 23, 42, 0.95);
    margin-top: 0;
    padding: 3rem 1.5rem 2rem;
    border-top: 3px solid rgba(37, 99, 235, 0.3);
}

.home-footer__container {
    max-width: 1280px;
    margin: 0 auto;
}

.home-footer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.home-footer__title {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.home-footer__copy {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    font-size: 0.9rem;
}

.home-footer__links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.home-footer__link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.home-footer__link:hover,
.home-footer__link:focus-visible {
    color: white;
    padding-left: 0.5rem;
}

.home-footer__newsletter-copy {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0 0 0.75rem 0;
}

.home-footer__newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.home-footer__newsletter-input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 0.85rem;
    outline: none;
    min-width: 0;
}

.home-footer__newsletter-input:focus {
    border-color: #6366f1;
}

.home-footer__newsletter-button {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border: none;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    font-size: 0.85rem;
    cursor: pointer;
    white-space: nowrap;
}

.home-footer__newsletter-message {
    font-size: 0.8rem;
    margin: 0.5rem 0 0 0;
    display: none;
}

.home-footer__newsletter-message--visible {
    display: block;
}

.home-footer__newsletter-message--success {
    color: #34d399;
}

.home-footer__newsletter-message--error {
    color: #f87171;
}

.home-footer__small {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
    margin: 0.5rem 0 0 0;
}

.home-footer__email {
    margin: 1rem 0 0 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.home-footer__socials {
    display: flex;
    gap: 1rem;
    margin-top: 1.25rem;
}

.home-footer__social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.2s;
}

.home-footer__social-link--linkedin:hover,
.home-footer__social-link--linkedin:focus-visible {
    background: #0077b5;
}

.home-footer__social-link--twitter:hover,
.home-footer__social-link--twitter:focus-visible {
    background: #1da1f2;
}

.home-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
}

.home-footer__copyright {
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}
