/**
 * AdSense Insights & Content Planner — Google PageSpeed Insights (web.dev) Design System
 * Clean, high-performance, responsive styling
 */
:root {
    --psi-blue: #1a73e8;
    --psi-blue-hover: #1557b0;
    --psi-blue-bg: #e8f0fe;
    --psi-green: #0cce6b;
    --psi-green-bg: #e6f4ea;
    --psi-orange: #ffa400;
    --psi-orange-bg: #fef7e0;
    --psi-red: #ff4e42;
    --psi-red-bg: #fce8e6;
    --psi-dark: #202124;
    --psi-text: #3c4043;
    --psi-subtle: #5f6368;
    --psi-border: #dadce0;
    --psi-card-bg: #ffffff;
    --psi-page-bg: #f8f9fa;
    --psi-font: 'Google Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --psi-mono: 'Roboto Mono', 'SFMono-Regular', Menlo, Monaco, Consolas, monospace;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body.psi-body {
    margin: 0;
    padding: 0;
    background-color: var(--psi-page-bg);
    color: var(--psi-text);
    font-family: var(--psi-font);
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
}

/* ==========================================================================
   Header Bar (PageSpeed Insights standard)
   ========================================================================== */
.psi-nav {
    background: #ffffff;
    border-bottom: 1px solid var(--psi-border);
    position: sticky;
    top: 0;
    z-index: 50;
}
.psi-nav__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.psi-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: var(--psi-dark);
}
.psi-brand__logo {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #4285f4 0%, #34a853 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 800;
    font-size: 1.1rem;
}
.psi-brand__text {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--psi-dark);
}
.psi-brand__sub {
    font-size: 0.75rem;
    color: var(--psi-subtle);
    font-weight: 500;
    display: block;
}

/* ==========================================================================
   Hero & Big URL Input Box (pagespeed.web.dev style)
   ========================================================================== */
.psi-hero {
    background: #ffffff;
    border-bottom: 1px solid var(--psi-border);
    padding: 3rem 1.25rem 2.5rem;
    text-align: center;
}
.psi-hero__inner {
    max-width: 780px;
    margin: 0 auto;
}
.psi-hero__title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--psi-dark);
    margin: 0 0 0.75rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}
.psi-hero__desc {
    font-size: 1.05rem;
    color: var(--psi-subtle);
    margin: 0 auto 2rem;
    max-width: 600px;
    line-height: 1.5;
}

.psi-searchbox {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 2px solid #dadce0;
    border-radius: 20px;
    padding: 0.85rem 1rem;
    gap: 0.75rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
    transition: border-color 0.2s, box-shadow 0.2s;
    max-width: 720px;
    margin: 0 auto;
}
@media (min-width: 640px) {
    .psi-searchbox {
        flex-direction: row;
        align-items: center;
        border-radius: 9999px;
        padding: 0.45rem 0.65rem 0.45rem 1.5rem;
        gap: 0.75rem;
    }
}
.psi-searchbox:focus-within {
    border-color: var(--psi-blue);
    box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.18), 0 6px 28px rgba(0, 0, 0, 0.1);
}
.psi-searchbox__field {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
    min-height: 48px;
}
.psi-searchbox__icon {
    color: var(--psi-blue);
    margin-right: 0.85rem;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.psi-searchbox__input {
    width: 100%;
    border: none;
    outline: none;
    font-size: 1.05rem;
    font-family: inherit;
    color: var(--psi-dark);
    font-weight: 500;
    background: transparent;
    padding: 0.75rem 0;
    line-height: 1.5;
}
.psi-searchbox__input::placeholder {
    color: #9aa0a6;
    font-size: 0.95rem;
}
.psi-searchbox__btn {
    background: var(--psi-blue);
    color: #ffffff;
    border: none;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    padding: 0.85rem 1.75rem;
    border-radius: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background 0.15s, transform 0.1s;
    white-space: nowrap;
    min-height: 48px;
}
@media (min-width: 640px) {
    .psi-searchbox__btn {
        border-radius: 9999px;
    }
}
.psi-searchbox__btn:hover {
    background: var(--psi-blue-hover);
}
.psi-searchbox__btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ==========================================================================
   Report Top Toolbar & Form Factor Toggle
   ========================================================================== */
.psi-report-header {
    background: #ffffff;
    border-bottom: 1px solid var(--psi-border);
    padding: 1.25rem 1.5rem;
}
.psi-report-header__inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.psi-inspected-url {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}
.psi-url-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #f1f3f4;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--psi-dark);
}
.psi-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--psi-green);
    box-shadow: 0 0 0 3px rgba(12, 206, 107, 0.25);
}
.psi-report-meta {
    font-size: 0.75rem;
    color: var(--psi-subtle);
    margin-top: 0.35rem;
}

.psi-toggle-group {
    display: inline-flex;
    background: #e8eaed;
    border-radius: 9999px;
    padding: 3px;
}
.psi-toggle-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.95rem;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--psi-subtle);
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.15s ease;
}
.psi-toggle-item--active {
    background: #ffffff;
    color: var(--psi-blue);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   Navigation Tabs (Audit, Content Plan, Article Studio)
   ========================================================================== */
.psi-tabs-strip {
    background: #ffffff;
    border-bottom: 1px solid var(--psi-border);
}
.psi-tabs-strip--inset {
    background: transparent;
    border: none;
    margin-top: 0.25rem;
}
.psi-tabs-strip__inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    gap: 2rem;
    overflow-x: auto;
}
.psi-tabs-strip__inner--flush {
    max-width: none;
    padding: 0;
    border-bottom: 1px solid var(--psi-border);
}
.psi-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.95rem 0.25rem;
    border: none;
    background: transparent;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--psi-subtle);
    border-bottom: 3px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.15s, border-color 0.15s;
}
.psi-tab:hover {
    color: var(--psi-blue);
}
.psi-tab--active {
    color: var(--psi-blue);
    border-bottom-color: var(--psi-blue);
}
.psi-tab__badge {
    background: var(--psi-blue-bg);
    color: var(--psi-blue);
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.1rem 0.45rem;
    border-radius: 9999px;
}

/* ==========================================================================
   Main Container
   ========================================================================== */
.psi-report-shell {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.25rem 1.25rem 2.5rem;
}
.psi-main {
    max-width: 1100px;
    margin: 1.5rem auto 3rem;
    padding: 0 1.25rem;
}
.psi-main--nested {
    max-width: none;
    margin: 1rem 0 0;
    padding: 0;
}
.psi-card-panel {
    background: #ffffff;
    border: 1px solid var(--psi-border);
    border-radius: 16px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   Lighthouse Circular Score Gauges (PageSpeed Insights Hallmark)
   ========================================================================== */
.psi-gauges-wrap {
    padding: 2rem 1.5rem;
    background: #ffffff;
    border-bottom: 1px solid var(--psi-border);
}
.psi-gauges-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
@media (min-width: 768px) {
    .psi-gauges-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
.psi-gauge {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.psi-gauge__meter {
    position: relative;
    width: 110px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.psi-gauge__svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}
.psi-gauge__track {
    fill: none;
    stroke: #e8eaed;
    stroke-width: 10;
}
.psi-gauge__fill {
    fill: none;
    stroke-width: 10;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.psi-gauge__val {
    position: absolute;
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--psi-dark);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.03em;
}
.psi-gauge__title {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--psi-dark);
    margin: 0.75rem 0 0.15rem;
}
.psi-gauge__status {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0;
}
.psi-status--green { color: var(--psi-green); }
.psi-status--orange { color: var(--psi-orange); }
.psi-status--red { color: var(--psi-red); }

.psi-scale-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
    font-size: 0.8125rem;
    color: var(--psi-subtle);
    font-weight: 600;
}
.psi-scale-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.psi-scale-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.psi-scale-dot--red { background: var(--psi-red); }
.psi-scale-dot--orange { background: var(--psi-orange); }
.psi-scale-dot--green { background: var(--psi-green); }

/* ==========================================================================
   Core Web Vitals & Real Experience
   ========================================================================== */
.psi-cwv-box {
    padding: 1.5rem;
    background: #ffffff;
    border-bottom: 1px solid var(--psi-border);
}
.psi-box-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--psi-dark);
    margin: 0 0 0.25rem;
}
.psi-box-sub {
    font-size: 0.8125rem;
    color: var(--psi-subtle);
    margin: 0 0 1.25rem;
}
.psi-cwv-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.85rem;
}
.psi-cwv-tile {
    background: #f8f9fa;
    border: 1px solid var(--psi-border);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.psi-cwv-tile__head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}
.psi-cwv-tile__name {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--psi-subtle);
}
.psi-cwv-tile__val {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--psi-dark);
}
.psi-cwv-tile__bar {
    height: 4px;
    background: #e8eaed;
    border-radius: 9999px;
    overflow: hidden;
}
.psi-cwv-tile__bar-fill {
    display: block;
    height: 100%;
    background: var(--psi-green);
    border-radius: 9999px;
}
.psi-cwv-tile__hint {
    font-size: 0.7rem;
    color: var(--psi-subtle);
}

/* ==========================================================================
   Diagnostics & Technical Code Fix Accordions
   ========================================================================== */
.psi-diag-box {
    padding: 1.5rem;
}
.psi-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}
.psi-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 700;
    border: 1px solid var(--psi-border);
    background: #ffffff;
    color: var(--psi-text);
    cursor: pointer;
    transition: all 0.15s;
}
.psi-chip:hover {
    background: #f1f3f4;
}
.psi-chip--active {
    background: var(--psi-dark);
    color: #ffffff;
    border-color: var(--psi-dark);
}
.psi-chip__count {
    font-size: 0.75rem;
    padding: 0.1rem 0.45rem;
    border-radius: 9999px;
    background: rgba(0, 0, 0, 0.08);
}
.psi-chip--active .psi-chip__count {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

.psi-accordion-item {
    border: 1px solid var(--psi-border);
    border-radius: 12px;
    margin-bottom: 0.75rem;
    overflow: hidden;
    background: #ffffff;
    transition: box-shadow 0.15s;
}
.psi-accordion-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.psi-accordion-item--fail { border-left: 4px solid var(--psi-red); }
.psi-accordion-item--warning { border-left: 4px solid var(--psi-orange); }
.psi-accordion-item--pass { border-left: 4px solid var(--psi-green); }

.psi-acc-head {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    gap: 0.75rem;
}
.psi-acc-head:hover {
    background: #f8f9fa;
}
.psi-acc-head__left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}
.psi-acc-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.psi-acc-icon--fail { background: var(--psi-red-bg); color: var(--psi-red); }
.psi-acc-icon--warning { background: var(--psi-orange-bg); color: #b06000; }
.psi-acc-icon--pass { background: var(--psi-green-bg); color: #137333; }

.psi-acc-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--psi-dark);
    margin: 0;
}
.psi-acc-sub {
    font-size: 0.75rem;
    color: var(--psi-subtle);
    margin: 0.15rem 0 0;
}
.psi-acc-tag {
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    flex-shrink: 0;
}
.psi-acc-tag--fail { background: var(--psi-red-bg); color: var(--psi-red); }
.psi-acc-tag--warning { background: var(--psi-orange-bg); color: #b06000; }
.psi-acc-tag--pass { background: var(--psi-green-bg); color: #137333; }

.psi-acc-body {
    padding: 1.25rem;
    border-top: 1px solid #f1f3f4;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.psi-why-box {
    background: #f8f9fa;
    border: 1px solid var(--psi-border);
    border-radius: 10px;
    padding: 1rem;
}
.psi-why-title {
    font-size: 0.8125rem;
    font-weight: 800;
    color: var(--psi-dark);
    margin: 0 0 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.psi-why-text {
    font-size: 0.84rem;
    color: var(--psi-text);
    margin: 0;
    line-height: 1.55;
}
.psi-impact-banner {
    margin-top: 0.65rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #c5221f;
    background: #fce8e6;
    padding: 0.45rem 0.75rem;
    border-radius: 6px;
}

.psi-code-card {
    border: 1px solid #3c4043;
    border-radius: 10px;
    overflow: hidden;
    background: #202124;
}
.psi-code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.65rem 1rem;
    background: #2d2e30;
    border-bottom: 1px solid #3c4043;
}
.psi-code-title {
    font-size: 0.75rem;
    font-weight: 800;
    color: #e8eaed;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.psi-copy-btn {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: background 0.15s;
}
.psi-copy-btn:hover {
    background: rgba(255, 255, 255, 0.22);
}
.psi-code-pre {
    margin: 0;
    padding: 1rem;
    font-family: var(--psi-mono);
    font-size: 0.8125rem;
    color: #8ab4f8;
    line-height: 1.55;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 280px;
    overflow-y: auto;
}

.psi-steps-card {
    background: #f8f9fa;
    border: 1px solid var(--psi-border);
    border-radius: 10px;
    padding: 1rem;
}
.psi-steps-title {
    font-size: 0.8125rem;
    font-weight: 800;
    color: var(--psi-dark);
    margin: 0 0 0.5rem;
}
.psi-step-row {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.8125rem;
    color: var(--psi-text);
    margin-bottom: 0.45rem;
    line-height: 1.45;
}
.psi-step-badge {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--psi-blue);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ==========================================================================
   Niche Content Blueprint & Article Studio (Maksad: Authentic Content Plan)
   ========================================================================== */
.psi-niche-banner {
    padding: 1.5rem;
    background: linear-gradient(135deg, #e8f0fe 0%, #d2e3fc 100%);
    border-bottom: 1px solid #aecbfa;
}
.psi-niche-kicker {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--psi-blue);
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.psi-niche-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #174ea6;
    margin: 0.35rem 0 0.45rem;
}
.psi-niche-desc {
    font-size: 0.875rem;
    color: var(--psi-text);
    margin: 0;
    max-width: 650px;
    line-height: 1.5;
}

.psi-plan-grid {
    padding: 1.5rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 100%;
}
.psi-plan-card {
    background: #ffffff;
    border: 1.5px solid var(--psi-border);
    border-radius: 14px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
    width: 100%;
}
.psi-plan-card--pinned {
    border-color: #aecbfa;
    box-shadow: 0 2px 8px rgba(26, 115, 232, 0.08);
}
.psi-plan-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}
.psi-plan-card__head-main {
    flex: 1;
    min-width: 0;
}
.psi-plan-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.psi-plan-card__menu-wrap {
    position: relative;
    flex-shrink: 0;
}
.psi-plan-card__menu-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #dadce0;
    border-radius: 10px;
    background: #f8f9fa;
    color: #5f6368;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.psi-plan-card__menu-btn:hover,
.psi-plan-card__menu-btn[aria-expanded="true"] {
    background: #e8f0fe;
    border-color: #aecbfa;
    color: #1a73e8;
}
.psi-plan-card__menu-panel {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 40;
    min-width: 188px;
    background: #ffffff;
    border: 1px solid #dadce0;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(60, 64, 67, 0.18);
    padding: 0.35rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.psi-plan-card__menu-item {
    border: none;
    background: transparent;
    text-align: left;
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #3c4043;
    padding: 0.55rem 0.65rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.12s;
}
.psi-plan-card__menu-item:hover:not(:disabled) {
    background: #f1f3f4;
}
.psi-plan-card__menu-item:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}
.psi-plan-card__menu-item--danger {
    color: #d93025;
}
.psi-plan-card__menu-item--danger:hover:not(:disabled) {
    background: #fce8e6;
}
.psi-plan-pin-badge {
    font-size: 0.7rem;
    font-weight: 700;
    color: #1a73e8;
    background: #e8f0fe;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
}
.psi-plan-card:hover {
    transform: translateY(-2px);
    border-color: #aecbfa;
    box-shadow: 0 4px 14px rgba(26, 115, 232, 0.1);
}
.psi-plan-card__top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
}
.psi-day-tag {
    font-size: 0.75rem;
    font-weight: 800;
    background: var(--psi-blue-bg);
    color: var(--psi-blue);
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
}
.psi-demand-tag {
    font-size: 0.7rem;
    font-weight: 800;
    background: #fef7e0;
    color: #b06000;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.psi-plan-card__title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--psi-dark);
    margin: 0.5rem 0 0.35rem;
    line-height: 1.35;
}
.psi-plan-card__kw {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--psi-subtle);
    background: #f1f3f4;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    width: fit-content;
}
.psi-plan-card__ref {
    font-size: 0.75rem;
    color: #137333;
    background: var(--psi-green-bg);
    padding: 0.45rem 0.65rem;
    border-radius: 6px;
    line-height: 1.4;
    border: 1px solid #ceead6;
}
.psi-plan-card__btn {
    width: 100%;
    padding: 0.65rem 1rem;
    background: var(--psi-blue);
    color: #ffffff;
    border: none;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    transition: background 0.15s;
}
.psi-plan-card__btn:hover {
    background: var(--psi-blue-hover);
}
.psi-plan-card__btn--done {
    background: #188038;
}

.psi-plan-card-actions {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}
.psi-plan-card-actions .psi-plan-card__btn {
    flex: 1;
    max-width: 420px;
}
.psi-plan-card__btn-regen {
    background: #f1f3f4;
    color: #3c4043;
    border: 1px solid #dadce0;
    border-radius: 10px;
    padding: 0.65rem 0.85rem;
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
    transition: background 0.15s, border-color 0.15s;
}
.psi-plan-card__btn-regen:hover:not(:disabled) {
    background: #e8eaed;
    border-color: #bdc1c6;
}
.psi-plan-card__btn-regen:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Next Post Idea Bar (Step-by-step Generator) */
.psi-next-post-bar {
    margin-top: 1.5rem;
    padding: 1.25rem 1.5rem;
    background: #f8f9fa;
    border: 1.5px dashed #dadce0;
    border-radius: 14px;
}
.psi-next-post-bar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.psi-next-post-bar__title {
    font-size: 1rem;
    font-weight: 800;
    color: #202124;
}
.psi-next-post-bar__desc {
    font-size: 0.8125rem;
    color: #5f6368;
    margin-top: 0.2rem;
}
.psi-btn-next-post {
    background: #1a73e8;
    color: #ffffff;
    border: none;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 800;
    padding: 0.75rem 1.35rem;
    border-radius: 9999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 6px rgba(26,115,232,0.25);
    transition: background 0.15s, transform 0.1s;
}
.psi-btn-next-post:hover:not(:disabled) {
    background: #1557b0;
    transform: translateY(-1px);
}
.psi-btn-next-post:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.psi-plan-quota-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}
.psi-plan-quota-wrap--bar {
    align-items: flex-end;
    max-width: min(100%, 360px);
}
.psi-plan-quota-notice {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.4;
    color: #b06000;
    text-align: center;
    max-width: 340px;
}
.psi-plan-quota-wrap--bar .psi-plan-quota-notice {
    text-align: right;
}

/* ==========================================================================
   Article Studio (1,400+ words SEO Article View)
   ========================================================================== */
.psi-editor-wrap {
    padding: 1.5rem;
}
.psi-editor-card {
    background: #ffffff;
    border: 1px solid var(--psi-border);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}
.psi-editor-meta-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--psi-border);
    margin-bottom: 1.5rem;
}
.psi-article-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--psi-text);
}
.psi-article-content h1 {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--psi-dark);
    margin: 0 0 1rem;
    line-height: 1.3;
}
.psi-article-content h2 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--psi-dark);
    margin: 2rem 0 0.85rem;
    line-height: 1.35;
}
.psi-article-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--psi-dark);
    margin: 1.5rem 0 0.65rem;
}
.psi-article-content p {
    margin: 0 0 1.25rem;
}
.psi-article-content ul, .psi-article-content ol {
    margin: 0 0 1.25rem;
    padding-left: 1.5rem;
}
.psi-article-content li {
    margin-bottom: 0.5rem;
}
.psi-social-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--psi-border);
}
.psi-social-card {
    background: #f8f9fa;
    border: 1px solid var(--psi-border);
    border-radius: 12px;
    padding: 1rem;
}
.psi-social-card__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}
.psi-social-title {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--psi-subtle);
    text-transform: uppercase;
}
.psi-social-body {
    font-size: 0.8125rem;
    color: var(--psi-text);
    line-height: 1.5;
    white-space: pre-wrap;
    background: #ffffff;
    border: 1px solid var(--psi-border);
    border-radius: 8px;
    padding: 0.75rem;
    max-height: 140px;
    overflow-y: auto;
}

/* ==========================================================================
   Native Mobile App View (Screens <= 768px)
   ========================================================================== */
@media (max-width: 768px) {
    /* Native App Body Spacing for Bottom Dock */
    body.psi-body {
        padding-bottom: 74px !important;
        -webkit-tap-highlight-color: transparent !important;
    }

    /* Hide desktop horizontal tabs on mobile */
    .psi-tabs-strip {
        display: none !important;
    }

    /* Mobile Header App Bar (Native App Style with Frosted Glass) */
    .psi-nav {
        padding: 0.35rem 0 !important;
        position: sticky !important;
        top: 0 !important;
        z-index: 1000 !important;
        backdrop-filter: blur(16px) !important;
        -webkit-backdrop-filter: blur(16px) !important;
        background: rgba(255, 255, 255, 0.94) !important;
        border-bottom: 1px solid rgba(218, 220, 224, 0.8) !important;
    }
    .psi-nav__inner {
        padding: 0 1rem !important;
        height: 54px !important;
    }
    .psi-nav form {
        display: none !important; /* Access via New Site dock button on mobile */
    }
    .psi-brand__logo {
        width: 32px !important;
        height: 32px !important;
        font-size: 1rem !important;
        border-radius: 9px !important;
    }
    .psi-brand__text {
        font-size: 1.05rem !important;
        font-weight: 800 !important;
        white-space: nowrap !important;
    }
    .brand-long {
        display: none !important;
    }
    .brand-short {
        display: inline !important;
        font-weight: 800 !important;
        font-size: 1.05rem !important;
    }
    .psi-brand__sub {
        display: none !important; /* Clean app bar without secondary text */
    }

    /* Mobile Header Navigation Isolation */
    .psi-nav-desktop {
        display: none !important;
    }
    .psi-nav-mobile-action {
        display: flex !important;
        align-items: center !important;
        gap: 0.5rem !important;
    }
    .psi-app-avatar {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 36px !important;
        height: 36px !important;
        border-radius: 50% !important;
        background: #1a73e8 !important;
        color: #ffffff !important;
        font-weight: 800 !important;
        font-size: 0.95rem !important;
        text-decoration: none !important;
        box-shadow: 0 2px 6px rgba(26, 115, 232, 0.35) !important;
        border: 2px solid #ffffff !important;
        transition: transform 0.15s ease !important;
    }
    .psi-app-avatar:active {
        transform: scale(0.92) !important;
    }
    .psi-app-signin-btn {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 0.8125rem !important;
        font-weight: 700 !important;
        color: #1a73e8 !important;
        background: #e8f0fe !important;
        padding: 0.4rem 0.85rem !important;
        border-radius: 9999px !important;
        text-decoration: none !important;
    }

    /* Mobile Hero / Search Card (App View) */
    .psi-hero {
        padding: 1.5rem 1rem 1rem !important;
    }
    .psi-hero__title {
        font-size: 1.55rem !important;
        line-height: 1.25 !important;
        margin: 0 0 0.5rem !important;
    }
    .psi-hero__desc {
        font-size: 0.875rem !important;
        line-height: 1.5 !important;
        margin: 0 0 1.25rem !important;
    }
    .psi-searchbox {
        flex-direction: column !important;
        padding: 0.5rem !important;
        border-radius: 16px !important;
        box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08) !important;
        gap: 0.5rem !important;
    }
    .psi-searchbox__field {
        width: 100% !important;
    }
    .psi-searchbox__input {
        font-size: 16px !important; /* Prevents auto-zoom in iOS Safari */
        height: 48px !important;
        padding: 0 0.75rem 0 2.5rem !important;
    }
    .psi-searchbox__btn {
        width: 100% !important;
        height: 48px !important;
        border-radius: 12px !important;
        justify-content: center !important;
        font-size: 0.95rem !important;
        font-weight: 700 !important;
    }

    /* Horizontal Touch Scroll for Recent Audits on Mobile */
    .psi-recent-scroll {
        display: flex !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        gap: 0.5rem !important;
        padding: 0.35rem 0.15rem !important;
        justify-content: flex-start !important;
    }
    .psi-recent-scroll::-webkit-scrollbar {
        display: none !important;
    }

    /* Mobile Report Header */
    .psi-report-header {
        padding: 0.85rem 1rem !important;
    }
    .psi-report-header__inner {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.65rem !important;
    }
    .psi-inspected-url {
        justify-content: space-between !important;
        width: 100% !important;
    }
    .psi-url-pill {
        font-size: 0.875rem !important;
        padding: 0.35rem 0.75rem !important;
        max-width: 82% !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }
    .psi-report-meta {
        font-size: 0.7rem !important;
        line-height: 1.4 !important;
    }
    .psi-toggle-group {
        align-self: flex-start !important;
    }

    /* Main Container Mobile App Spacing */
    .psi-main {
        margin: 0.85rem auto 1.5rem !important;
        padding: 0 0.85rem !important;
    }
    .psi-card-panel {
        border-radius: 18px !important;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05) !important;
        margin-bottom: 1rem !important;
        padding: 1.25rem 1rem !important;
    }

    /* Mobile Guide Panels & Educational Section */
    .psi-guide-container {
        padding: 0 0.85rem !important;
        margin: 1.25rem auto 1.5rem !important;
    }
    .psi-guide-panel {
        padding: 1.35rem 1rem !important;
        border-radius: 16px !important;
        margin-bottom: 1rem !important;
    }
    .psi-guide-h2 {
        font-size: 1.35rem !important;
        line-height: 1.3 !important;
        margin-bottom: 0.75rem !important;
    }
    .psi-guide-h3 {
        font-size: 1.1rem !important;
        margin: 1.25rem 0 0.5rem !important;
    }
    .psi-guide-p {
        font-size: 0.925rem !important;
        line-height: 1.65 !important;
    }
    .psi-guide-grid-3 {
        grid-template-columns: 1fr !important;
        gap: 0.85rem !important;
    }
    .psi-pillar-card {
        padding: 1.15rem 1rem !important;
        border-radius: 12px !important;
    }
    .psi-rejection-card {
        padding: 1.15rem 1rem !important;
        border-radius: 0 12px 12px 0 !important;
    }
    .psi-compare-wrapper {
        margin: 1rem 0 !important;
        border-radius: 12px !important;
        -webkit-overflow-scrolling: touch !important;
    }
    .psi-roadmap-step {
        gap: 0.85rem !important;
        margin-bottom: 1rem !important;
    }
    .psi-roadmap-num {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.85rem !important;
    }
    .psi-roadmap-body {
        padding: 1rem !important;
        border-radius: 10px !important;
    }
    .psi-faq-summary {
        padding: 1rem 1.15rem !important;
        font-size: 0.95rem !important;
    }
    .psi-faq-content {
        padding: 0 1.15rem 1.15rem !important;
        font-size: 0.875rem !important;
        line-height: 1.65 !important;
    }

    /* Mobile 2x2 Score Gauges Grid */
    .psi-gauges-wrap {
        padding: 1.25rem 0.85rem !important;
    }
    .psi-gauges-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
    }
    .psi-gauge {
        background: #f8f9fa !important;
        border: 1px solid #e8eaed !important;
        border-radius: 14px !important;
        padding: 0.85rem 0.5rem !important;
    }
    .psi-gauge__meter {
        width: 86px !important;
        height: 86px !important;
    }
    .psi-gauge__val {
        font-size: 1.45rem !important;
    }
    .psi-gauge__title {
        font-size: 0.8125rem !important;
        margin: 0.5rem 0 0.15rem !important;
    }
    .psi-gauge__status {
        font-size: 0.6875rem !important;
    }
    .psi-scale-legend {
        gap: 0.85rem !important;
        font-size: 0.75rem !important;
        margin-top: 1rem !important;
    }

    /* Core Web Vitals on Mobile */
    .psi-cwv-box {
        padding: 1.15rem 0.85rem !important;
    }
    .psi-cwv-row {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.65rem !important;
    }
    .psi-cwv-tile {
        padding: 0.75rem !important;
    }
    .psi-cwv-tile__val {
        font-size: 1.1rem !important;
    }

    /* Diagnostics & Accordions on Mobile */
    .psi-diag-box {
        padding: 1.15rem 0.85rem !important;
    }
    .psi-filter-row {
        gap: 0.35rem !important;
        overflow-x: auto !important;
        padding-bottom: 0.35rem !important;
        flex-wrap: nowrap !important;
    }
    .psi-chip {
        padding: 0.35rem 0.65rem !important;
        font-size: 0.75rem !important;
        white-space: nowrap !important;
    }
    .psi-acc-head {
        padding: 0.85rem !important;
    }
    .psi-acc-title {
        font-size: 0.875rem !important;
        line-height: 1.3 !important;
    }
    .psi-acc-sub {
        font-size: 0.7rem !important;
    }
    .psi-acc-body {
        padding: 1rem 0.85rem !important;
    }
    .psi-code-pre {
        font-size: 0.75rem !important;
        max-height: 220px !important;
    }

    /* Niche Content Plan on Mobile */
    .psi-niche-banner {
        padding: 1.15rem 0.85rem !important;
    }
    .psi-niche-title {
        font-size: 1.2rem !important;
    }
    .psi-plan-grid {
        padding: 0.85rem !important;
        grid-template-columns: 1fr !important;
        gap: 0.85rem !important;
    }
    .psi-plan-card {
        padding: 1rem !important;
        border-radius: 16px !important;
    }
    .psi-plan-card__btn {
        height: 48px !important;
        font-size: 0.875rem !important;
    }
    .psi-plan-card-actions .psi-plan-card__btn {
        max-width: none !important;
        width: 100% !important;
    }
    .psi-next-post-bar {
        padding: 1rem 0.85rem !important;
        margin-top: 1rem !important;
    }
    .psi-next-post-bar__inner {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.75rem !important;
    }
    .psi-btn-next-post {
        width: 100% !important;
        justify-content: center !important;
        height: 48px !important;
        font-size: 0.875rem !important;
    }

    /* Article Studio on Mobile */
    .psi-editor-wrap {
        padding: 0.85rem !important;
    }
    .psi-editor-card {
        padding: 1.25rem 0.85rem !important;
        border-radius: 16px !important;
    }
    .psi-article-content h1 {
        font-size: 1.45rem !important;
    }
    .psi-article-content h2 {
        font-size: 1.2rem !important;
    }
    .psi-article-content {
        font-size: 0.95rem !important;
        line-height: 1.7 !important;
    }

    /* Mobile Bottom App Navigation Dock */
    .psi-mobile-dock {
        display: flex !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: 62px !important;
        background: #ffffff !important;
        border-top: 1px solid #dadce0 !important;
        box-shadow: 0 -2px 14px rgba(0, 0, 0, 0.08) !important;
        z-index: 9999 !important;
        align-items: center !important;
        justify-content: space-around !important;
        padding: 0 0.5rem !important;
        padding-bottom: env(safe-area-inset-bottom, 0) !important;
    }
    .psi-dock-btn {
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.15rem !important;
        border: none !important;
        background: transparent !important;
        color: #5f6368 !important;
        font-family: inherit !important;
        font-size: 0.6875rem !important;
        font-weight: 700 !important;
        padding: 0.35rem 0 !important;
        cursor: pointer !important;
        text-decoration: none !important;
        transition: color 0.15s, transform 0.1s !important;
        -webkit-tap-highlight-color: transparent !important;
    }
    .psi-dock-btn:active {
        transform: scale(0.94) !important;
    }
    .psi-dock-btn--active {
        color: #1a73e8 !important;
    }
    .psi-dock-btn__icon-wrap {
        width: 32px !important;
        height: 32px !important;
        border-radius: 9999px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        transition: background-color 0.15s !important;
    }
    .psi-dock-btn--active .psi-dock-btn__icon-wrap {
        background-color: #e8f0fe !important;
    }
}

/* Hide Mobile App Dock and Mobile Actions on Desktop */
@media (min-width: 769px) {
    .psi-mobile-dock {
        display: none !important;
    }
    .psi-nav-mobile-action {
        display: none !important;
    }
    .brand-short {
        display: none !important;
    }
}

/* ==========================================================================
   AI Visual Media Studio (Clean, Flat, Professional Google-Grade Standard)
   ========================================================================== */
.psi-media-flat {
    background: #ffffff;
    border: 1px solid #dadce0;
    border-radius: 14px;
    padding: 1.25rem;
    margin: 1.5rem 0 2rem;
    box-shadow: 0 1px 3px rgba(60, 64, 67, 0.06);
    box-sizing: border-box;
    width: 100%;
}
.psi-media-flat__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid #f1f3f4;
}
.psi-media-flat__title-group {
    flex: 1;
    min-width: 200px;
}
.psi-media-flat__title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #202124;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.psi-media-flat__desc {
    font-size: 0.775rem;
    color: #5f6368;
    margin: 0.2rem 0 0;
}
.psi-media-tab-pills {
    display: inline-flex;
    background: #f1f3f4;
    border-radius: 9999px;
    padding: 0.2rem;
    gap: 0.2rem;
    flex-shrink: 0;
}
.psi-media-pill-btn {
    border: none;
    background: transparent;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.775rem;
    font-weight: 700;
    color: #5f6368;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    font-family: inherit;
    white-space: nowrap;
}
.psi-media-pill-btn--active {
    background: #ffffff;
    color: #1a73e8;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.psi-prompt-shell {
    background: #f8f9fa;
    border: 1px solid #e8eaed;
    border-radius: 10px;
    padding: 0.85rem 1rem;
    box-sizing: border-box;
}
.psi-prompt-shell__bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.65rem;
}
.psi-prompt-tag {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    letter-spacing: 0.02em;
}
.psi-prompt-tag--169 {
    background: #e8f0fe;
    color: #1a73e8;
}
.psi-prompt-tag--916 {
    background: #fce8e6;
    color: #c5221f;
}
.psi-prompt-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #1a73e8;
    color: #ffffff;
    border: none;
    border-radius: 9999px;
    padding: 0.35rem 0.85rem;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    white-space: nowrap;
}
.psi-prompt-copy-btn:hover {
    background: #1557b0;
}
.psi-prompt-copy-btn:active {
    transform: scale(0.97);
}
.psi-prompt-text {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.8125rem;
    line-height: 1.6;
    color: #202124;
    word-break: break-word;
    user-select: all;
    max-height: 160px;
    overflow-y: auto;
}
.psi-meta-clean-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: 0.75rem;
}
.psi-meta-clean-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.65rem;
    background: #ffffff;
    border: 1px solid #e8eaed;
    border-radius: 8px;
    font-size: 0.8125rem;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    box-sizing: border-box;
}
.psi-meta-clean-item:hover {
    background: #f8fafd;
    border-color: #c2e7ff;
}
.psi-meta-clean-label {
    font-weight: 700;
    color: #3c4043;
    flex-shrink: 0;
}
.psi-meta-clean-val {
    font-family: 'Roboto Mono', monospace;
    color: #1a73e8;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}
.psi-meta-clean-action {
    font-size: 0.7rem;
    font-weight: 700;
    color: #1a73e8;
    background: #e8f0fe;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    flex-shrink: 0;
}
@media (max-width: 640px) {
    .psi-media-flat {
        padding: 0.95rem 0.85rem;
        margin: 1rem 0 1.5rem;
    }
    .psi-media-flat__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.65rem;
    }
    .psi-media-tab-pills {
        width: 100%;
        display: flex;
    }
    .psi-media-pill-btn {
        flex: 1;
        text-align: center;
        padding: 0.45rem 0;
    }
    .psi-prompt-shell {
        padding: 0.75rem 0.75rem;
    }
    .psi-prompt-shell__bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    .psi-prompt-copy-btn {
        width: 100%;
        justify-content: center;
        padding: 0.5rem 0;
    }
}

/* ==========================================================================
   AdSense Approval Hub & Educational Guide (High E-E-A-T & Authority)
   ========================================================================== */
.psi-guide-container {
    max-width: 1140px;
    margin: 2.5rem auto 3rem;
    padding: 0 1.25rem;
}

.psi-guide-panel {
    background: #ffffff;
    border: 1px solid var(--psi-border);
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(60,64,67,0.08);
}

.psi-guide-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #e8f0fe;
    color: #1a73e8;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.3rem 0.75rem;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 1rem;
}

.psi-guide-h2 {
    font-size: 1.85rem;
    font-weight: 800;
    color: #202124;
    line-height: 1.3;
    margin: 0 0 1rem;
}

.psi-guide-h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #202124;
    line-height: 1.4;
    margin: 1.75rem 0 0.75rem;
}

.psi-guide-p {
    font-size: 1rem;
    line-height: 1.75;
    color: #3c4043;
    margin: 0 0 1.25rem;
}

.psi-guide-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 1.25rem;
    margin: 1.5rem 0;
}

.psi-pillar-card {
    background: #f8f9fa;
    border: 1px solid #dadce0;
    border-radius: 12px;
    padding: 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.psi-pillar-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.psi-pillar-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #e8f0fe;
    color: #1a73e8;
    font-weight: 800;
    font-size: 0.875rem;
    margin-bottom: 0.85rem;
}

.psi-rejection-card {
    background: #ffffff;
    border: 1px solid #dadce0;
    border-left: 4px solid #ea4335;
    border-radius: 0 12px 12px 0;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
}

.psi-rejection-card--warning {
    border-left-color: #fbbc04;
}

.psi-compare-wrapper {
    overflow-x: auto;
    margin: 1.5rem 0;
    border: 1px solid #dadce0;
    border-radius: 12px;
}

.psi-compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
    text-align: left;
    background: #ffffff;
}

.psi-compare-table th {
    background: #f8f9fa;
    padding: 1rem 1.25rem;
    font-weight: 700;
    color: #202124;
    border-bottom: 2px solid #dadce0;
}

.psi-compare-table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e8eaed;
    color: #3c4043;
    vertical-align: top;
    line-height: 1.6;
}

.psi-compare-table tr:last-child td {
    border-bottom: none;
}

.psi-roadmap-step {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.psi-roadmap-num {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #1a73e8;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.psi-roadmap-body {
    flex: 1;
    background: #f8f9fa;
    border: 1px solid #dadce0;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
}

/* Accordion FAQ */
.psi-faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.psi-faq-item {
    border: 1px solid #dadce0;
    border-radius: 12px;
    background: #ffffff;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.psi-faq-item[open] {
    border-color: #1a73e8;
}

.psi-faq-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    font-weight: 700;
    font-size: 1.05rem;
    color: #202124;
    cursor: pointer;
    user-select: none;
    list-style: none;
}

.psi-faq-summary::-webkit-details-marker {
    display: none;
}

.psi-faq-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    color: #5f6368;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.psi-faq-item[open] .psi-faq-icon {
    transform: rotate(180deg);
    color: #1a73e8;
}

.psi-faq-content {
    padding: 0 1.5rem 1.5rem;
    font-size: 0.95rem;
    color: #3c4043;
    line-height: 1.7;
    border-top: 1px solid #f1f3f4;
    padding-top: 1rem;
}

/* Rich Footer */
.psi-footer-rich {
    background: #ffffff;
    border-top: 1px solid #dadce0;
    padding: 3.5rem 1.25rem 2rem;
    color: #5f6368;
    font-size: 0.875rem;
}

.psi-footer-grid {
    max-width: 1140px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.psi-footer-col h4 {
    color: #202124;
    font-size: 0.9375rem;
    font-weight: 700;
    margin: 0 0 1rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.psi-footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.psi-footer-col a {
    color: #5f6368;
    text-decoration: none;
    transition: color 0.15s ease;
}

.psi-footer-col a:hover {
    color: #1a73e8;
    text-decoration: underline;
}

.psi-footer-bottom {
    max-width: 1140px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid #e8eaed;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.psi-footer-disclaimer {
    font-size: 0.8125rem;
    color: #70757a;
    line-height: 1.6;
    background: #f8f9fa;
    border: 1px solid #dadce0;
    border-radius: 8px;
    padding: 1rem;
}

@media (max-width: 860px) {
    .psi-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    .psi-guide-panel {
        padding: 1.75rem 1.25rem;
    }
}

@media (max-width: 540px) {
    .psi-footer-grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }
}

/* ==========================================================================
   Desktop nav — Sign in / account chip
   ========================================================================== */
.psi-nav-auth-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #1a73e8;
    background: #e8f0fe;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    text-decoration: none;
    white-space: nowrap;
    border: none;
    cursor: pointer;
    font-family: inherit;
    line-height: 1.2;
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
}
.psi-nav-auth-chip:hover {
    background: #d2e3fc;
}
.psi-nav-auth-chip--signed-in {
    max-width: 180px;
}
.psi-nav-auth-chip--signed-in span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
}
.psi-hero-trust {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem 0.5rem;
    margin-bottom: 0.85rem;
}
.psi-hero-trust__pill {
    font-size: 0.75rem;
    font-weight: 700;
    color: #1a73e8;
    background: #e8f0fe;
    padding: 0.3rem 0.75rem;
    border-radius: 9999px;
    letter-spacing: 0.02em;
}
.psi-hero-trust__pill--free {
    color: #137333;
    background: #e6f4ea;
}
.psi-hero-trust__dot {
    color: #9aa0a6;
    font-weight: 700;
    user-select: none;
}
.psi-dashboard-audit-panel {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafe 100%);
    border: 1px solid #dadce0;
    border-radius: 16px;
    padding: 1.5rem 1.75rem 1.75rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 1px 3px rgba(60, 64, 67, 0.06);
}
.psi-dashboard-audit-panel__title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #202124;
    margin: 0 0 0.35rem;
}
.psi-dashboard-audit-panel__lead {
    font-size: 0.875rem;
    color: #5f6368;
    margin: 0 0 1.15rem;
    line-height: 1.5;
    max-width: 52rem;
}
.psi-dashboard-audit-panel__error {
    color: #d93025;
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0.75rem 0 0;
}
.psi-searchbox--dashboard {
    max-width: 100%;
}
.psi-dashboard-audit-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: #1a73e8;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(26, 115, 232, 0.3);
    font-family: inherit;
    white-space: nowrap;
}
.psi-dashboard-audit-cta:hover {
    background: #1765cc;
}
.psi-dashboard-audit-cta--lg {
    font-size: 0.95rem;
    padding: 0.75rem 1.75rem;
}

.psi-drawer-link--dashboard {
    background: #e8f0fe !important;
    color: #1a73e8 !important;
    justify-content: center !important;
    font-weight: 700 !important;
    margin-bottom: 0.25rem;
}

.psi-nav-auth-chip__avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #1a73e8;
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ==========================================================================
   Header 3-Dot Kebab Menu Button
   ========================================================================== */
.psi-3dot-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: #5f6368;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
    -webkit-tap-highlight-color: transparent;
}
.psi-3dot-btn:hover {
    background-color: #f1f3f4;
    color: #202124;
}
.psi-3dot-btn:active {
    transform: scale(0.92);
    background-color: #e8eaed;
}

/* ==========================================================================
   Mobile Offset Slide-Over Drawer
   ========================================================================== */
.psi-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(32, 33, 36, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 10000;
    cursor: pointer;
}
.psi-drawer-fade-enter {
    transition: opacity 0.25s ease-out;
}
.psi-drawer-fade-start {
    opacity: 0;
}
.psi-drawer-fade-end {
    opacity: 1;
}
.psi-drawer-fade-leave {
    transition: opacity 0.2s ease-in;
}

.psi-drawer-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(340px, 86vw);
    background: #ffffff;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.22);
    z-index: 10001;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-family: inherit;
}
.psi-drawer-slide-enter {
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
.psi-drawer-slide-start {
    transform: translateX(100%);
}
.psi-drawer-slide-end {
    transform: translateX(0);
}
.psi-drawer-slide-leave {
    transition: transform 0.22s cubic-bezier(0.4, 0, 1, 1);
}

.psi-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e8eaed;
    background: #ffffff;
}
.psi-drawer-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f1f3f4;
    border: none;
    color: #5f6368;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.15s, color 0.15s, transform 0.1s;
    -webkit-tap-highlight-color: transparent;
    z-index: 2;
}
.psi-drawer-close:hover {
    background-color: #e8eaed;
    color: #202124;
}
.psi-drawer-close:active {
    transform: scale(0.92);
    background-color: #dadce0;
}

.psi-drawer-user {
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #eef3fc 100%);
    border-bottom: 1px solid #e8eaed;
}
.psi-drawer-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #1a73e8;
    color: #ffffff;
    font-weight: 800;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(26, 115, 232, 0.35);
    border: 2px solid #ffffff;
    flex-shrink: 0;
}
.psi-drawer-badge {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    color: #137333;
    background: #e6f4ea;
    padding: 0.15rem 0.55rem;
    border-radius: 9999px;
    margin-top: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.psi-drawer-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 1rem;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 700;
    text-decoration: none;
    transition: filter 0.15s ease;
}
.psi-drawer-btn--primary {
    background: #1a73e8;
    color: #ffffff;
}
.psi-drawer-btn--outline {
    border: 1px solid #dadce0;
    color: #3c4043;
    background: #ffffff;
}

.psi-drawer-body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.85rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.psi-drawer-group {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.psi-drawer-group-title {
    font-size: 0.6875rem;
    font-weight: 800;
    color: #70757a;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.35rem 0.65rem;
}
.psi-drawer-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    color: #202124;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    transition: background-color 0.15s ease, color 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}
.psi-drawer-link:active,
.psi-drawer-link:hover {
    background-color: #f1f3f4;
    color: #1a73e8;
}
.psi-drawer-link-icon {
    font-size: 1.15rem;
    width: 24px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.psi-drawer-link-text {
    flex: 1;
}
.psi-drawer-link-arrow {
    color: #9aa0a6;
    font-size: 1.1rem;
    font-weight: 400;
}

.psi-drawer-footer {
    padding: 0.85rem 1.25rem 1.25rem;
    border-top: 1px solid #e8eaed;
    background: #ffffff;
}
.psi-drawer-logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.65rem;
    border-radius: 10px;
    background: #fce8e6;
    color: #d93025;
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid #fad2cf;
    transition: background-color 0.15s ease;
    box-sizing: border-box;
}
.psi-drawer-logout-btn:active {
    background-color: #fad2cf;
}



/* ==========================================================================
   GOOGLE ADSENSE OFFICIAL SITE REVIEW & ELIGIBILITY CONSOLE DESIGN SYSTEM
   Mirrors adsenseapprovalchecker.net and Google Search Console / AdSense UI
   ========================================================================== */

.g-adsense-verdict-card {
    background: #ffffff;
    border: 1px solid #dadce0;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(60, 64, 67, 0.08);
}

.g-verdict-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #f1f3f4;
}

.g-verdict-site {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.g-site-icon {
    font-size: 1.75rem;
    width: 44px;
    height: 44px;
    background: #e8f0fe;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.g-site-url-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.g-site-url {
    font-size: 1.25rem;
    font-weight: 800;
    color: #202124;
    word-break: break-all;
}

.g-site-ext-link {
    color: #5f6368;
    display: inline-flex;
    padding: 2px;
    border-radius: 4px;
    transition: color 0.15s;
}
.g-site-ext-link:hover {
    color: #1a73e8;
}

.g-site-meta {
    font-size: 0.8125rem;
    color: #5f6368;
    margin-top: 0.2rem;
}

.g-verdict-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.g-btn-outline {
    background: #ffffff;
    border: 1px solid #dadce0;
    color: #3c4043;
    font-size: 0.8125rem;
    font-weight: 700;
    padding: 0.5rem 0.9rem;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.15s ease;
}
.g-btn-outline:hover {
    background: #f8f9fa;
    border-color: #bdc1c6;
}

.g-btn-primary {
    background: #1a73e8;
    border: 1px solid #1a73e8;
    color: #ffffff;
    font-size: 0.8125rem;
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: background 0.15s ease;
}
.g-btn-primary:hover {
    background: #1557b0;
}

/* Big Status Banner */
.g-verdict-banner {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 1.25rem;
    border: 1px solid transparent;
}

.g-verdict-banner--ready {
    background: #f6fbf7;
    border-color: #ceead6;
}
.g-verdict-banner--action {
    background: #fefaf0;
    border-color: #feefc3;
}
.g-verdict-banner--danger {
    background: #fdf3f2;
    border-color: #fad2cf;
}

.g-verdict-score-box {
    text-align: center;
    flex-shrink: 0;
}

.g-score-circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-weight: 800;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.g-score-number {
    font-size: 2rem;
    line-height: 1;
}

.g-score-pct {
    font-size: 0.95rem;
    margin-top: -6px;
    opacity: 0.75;
}

.g-score-sublabel {
    font-size: 0.75rem;
    font-weight: 800;
    color: #5f6368;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 0.5rem;
}

.g-verdict-info {
    flex: 1;
}

.g-status-badge-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.g-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.badge--ready {
    background: #e6f4ea;
    color: #137333;
    border: 1px solid #ceead6;
}
.badge--action {
    background: #fef7e0;
    color: #b06000;
    border: 1px solid #feefc3;
}
.badge--danger {
    background: #fce8e6;
    color: #c5221f;
    border: 1px solid #fad2cf;
}

.g-status-prob {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #3c4043;
}

.g-verdict-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #202124;
    margin: 0 0 0.4rem;
    line-height: 1.3;
}

.g-verdict-desc {
    font-size: 0.925rem;
    color: #4a4d51;
    line-height: 1.6;
    margin: 0 0 0.85rem;
}

.g-verdict-checklist-summary {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.g-check-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.6rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
}
.g-check-pill--pass { background: #e6f4ea; color: #137333; }
.g-check-pill--fail { background: #fce8e6; color: #c5221f; }
.g-check-pill--warn { background: #fef7e0; color: #b06000; }

/* 4 Pillars Grid */
.g-pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.75rem;
}

.g-pillar-card {
    background: #ffffff;
    border: 1px solid #dadce0;
    border-radius: 14px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.15s, box-shadow 0.15s;
}
.g-pillar-card:hover {
    box-shadow: 0 4px 12px rgba(60,64,67,0.08);
}

.g-pillar-head {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}
.g-pillar-icon {
    font-size: 1.5rem;
}
.g-pillar-num {
    font-size: 0.65rem;
    font-weight: 800;
    color: #70757a;
    letter-spacing: 0.05em;
    display: block;
}
.g-pillar-title {
    font-size: 0.975rem;
    font-weight: 800;
    color: #202124;
    margin: 0.1rem 0 0;
    line-height: 1.25;
}
.g-pillar-badge {
    margin-left: auto;
    font-size: 0.6875rem;
    font-weight: 800;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    white-space: nowrap;
}

.g-pillar-body {
    flex: 1;
    font-size: 0.8125rem;
    color: #5f6368;
    line-height: 1.5;
}

.g-metric-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.35rem 0;
    border-bottom: 1px dashed #f1f3f4;
}
.g-metric-row strong {
    color: #202124;
}

.g-pillar-note {
    margin: 0.65rem 0 0;
    font-size: 0.75rem;
    color: #70757a;
    line-height: 1.45;
}

.g-policy-checklist {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-top: 0.25rem;
}
.g-policy-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #3c4043;
}

.txt-green { color: #137333; font-weight: 800; }
.txt-red { color: #d93025; font-weight: 800; }
.txt-orange { color: #b06000; font-weight: 800; }

.g-pillar-footer {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid #f1f3f4;
}

.g-pillar-cta {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: #f8f9fa;
    border: 1px solid #dadce0;
    color: #1a73e8;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.45rem 0.75rem;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
    transition: background 0.15s, border-color 0.15s;
}
.g-pillar-cta:hover {
    background: #e8f0fe;
    border-color: #1a73e8;
}

.g-pillar-tag-ok {
    font-size: 0.75rem;
    font-weight: 700;
    color: #137333;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

/* Solution Banner */
.g-solution-banner {
    background: linear-gradient(135deg, #1a73e8 0%, #174ea6 100%);
    color: #ffffff;
    border-radius: 16px;
    padding: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    box-shadow: 0 4px 16px rgba(26,115,232,0.25);
}
.g-solution-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    font-size: 0.6875rem;
    font-weight: 800;
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}
.g-solution-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0 0 0.5rem;
    color: #ffffff;
    line-height: 1.3;
}
.g-solution-desc {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.9);
    line-height: 1.6;
    margin: 0;
    max-width: 680px;
}
.g-solution-desc strong {
    color: #ffffff;
}
.g-btn-solution {
    background: #ffffff;
    color: #1a73e8;
    border: none;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 800;
    padding: 0.75rem 1.4rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    white-space: nowrap;
    transition: transform 0.15s, box-shadow 0.15s;
}
.g-btn-solution:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* 15-Point Inspection Checklist Box */
.g-checklist-box {
    background: #ffffff;
    border: 1px solid #dadce0;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.g-checklist-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 1rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #f1f3f4;
}

.g-checklist-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #202124;
    margin: 0 0 0.35rem;
}
.g-checklist-sub {
    font-size: 0.8125rem;
    color: #5f6368;
    margin: 0;
}

.g-filter-tabs {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}
.g-filter-tab {
    background: #f8f9fa;
    border: 1px solid #dadce0;
    color: #5f6368;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.4rem 0.75rem;
    border-radius: 9999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.15s ease;
}
.g-filter-tab.active {
    background: #e8f0fe;
    border-color: #1a73e8;
    color: #1a73e8;
}
.g-filter-tab .count {
    background: rgba(0,0,0,0.06);
    padding: 0.1rem 0.4rem;
    border-radius: 9999px;
    font-size: 0.7rem;
}
.g-filter-tab.active .count {
    background: #1a73e8;
    color: #ffffff;
}

.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot-red { background: #d93025; }
.dot-orange { background: #b06000; }
.dot-green { background: #137333; }

/* Checklist Items - Clean Flex Architecture */
.g-checklist-items {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.g-check-item {
    border: 1px solid #dadce0;
    border-radius: 12px;
    background: #ffffff;
    overflow: hidden;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.g-check-item--fail {
    border-left: 5px solid #d93025;
}
.g-check-item--warning {
    border-left: 5px solid #ffa400;
}
.g-check-item--pass {
    border-left: 5px solid #0cce6b;
}

.g-check-row {
    display: flex;
    align-items: flex-start;
    padding: 0.85rem 1.15rem;
    cursor: pointer;
    gap: 0.75rem;
    user-select: none;
    transition: background 0.15s;
}
.g-check-row:hover {
    background: #f8f9fa;
}

.g-check-status-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.8125rem;
    flex-shrink: 0;
    margin-top: 2px;
}
.icon--pass { background: #e6f4ea; color: #137333; }
.icon--fail { background: #fce8e6; color: #c5221f; }
.icon--warning { background: #fef7e0; color: #b06000; }

.g-check-main-col {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.g-check-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #202124;
    margin: 0;
    line-height: 1.35;
    word-break: break-word;
}

.g-check-meta-line {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.g-check-tag {
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    white-space: nowrap;
    display: inline-block;
}
.tag--pass { background: #e6f4ea; color: #137333; }
.tag--fail { background: #fce8e6; color: #c5221f; }
.tag--warning { background: #fef7e0; color: #b06000; }

.g-check-cat {
    font-size: 0.75rem;
    color: #5f6368;
    font-weight: 500;
}

.g-check-arrow-col {
    flex-shrink: 0;
    width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 4px;
}

.g-check-summary-callout {
    font-size: 0.8125rem;
    color: #3c4043;
    background: #f1f3f4;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    margin-bottom: 0.75rem;
    line-height: 1.45;
}

/* Check Accordion Expanded Details */
.g-check-details {
    padding: 1.25rem;
    background: #fafafa;
    border-top: 1px solid #f1f3f4;
}

.g-detail-card {
    background: #ffffff;
    border: 1px solid #dadce0;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 0.85rem;
}
.g-detail-title {
    font-size: 0.8125rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #5f6368;
    margin: 0 0 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.g-detail-text {
    font-size: 0.875rem;
    color: #3c4043;
    line-height: 1.6;
    margin: 0;
}

.g-code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}
.g-code-title {
    font-size: 0.75rem;
    font-weight: 800;
    color: #202124;
    text-transform: uppercase;
}
.g-copy-btn {
    background: #e8f0fe;
    border: 1px solid #1a73e8;
    color: #1a73e8;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.7rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s;
}
.g-copy-btn:hover {
    background: #1a73e8;
    color: #ffffff;
}

pre.g-code-pre {
    background: #202124;
    color: #8ab4f8;
    padding: 1rem;
    border-radius: 8px;
    font-family: var(--psi-mono);
    font-size: 0.8125rem;
    line-height: 1.5;
    overflow-x: auto;
    margin: 0;
}

/* ==========================================================================
   COMPACT NATIVE MOBILE ADAPTATION (Screens <= 768px)
   Ultra-optimized for 360px–420px mobile viewports
   ========================================================================== */
@media (max-width: 768px) {
    /* Compact outer margins & body */
    .psi-main {
        padding: 0.65rem 0.5rem 5rem !important;
    }

    /* Executive Verdict Card */
    .g-adsense-verdict-card {
        padding: 0.85rem !important;
        border-radius: 12px !important;
        margin-bottom: 0.85rem !important;
    }
    .g-verdict-head {
        flex-direction: column !important;
        align-items: flex-start !important;
        padding-bottom: 0.75rem !important;
        gap: 0.65rem !important;
    }
    .g-site-icon {
        width: 34px !important;
        height: 34px !important;
        font-size: 1.25rem !important;
        border-radius: 8px !important;
    }
    .g-site-url {
        font-size: 1rem !important;
    }
    .g-site-meta {
        font-size: 0.7rem !important;
    }
    .g-verdict-actions {
        width: 100% !important;
        display: flex !important;
        gap: 0.4rem !important;
    }
    .g-btn-outline, .g-btn-primary {
        flex: 1 !important;
        font-size: 0.75rem !important;
        padding: 0.45rem 0.5rem !important;
        justify-content: center !important;
    }

    /* Status Banner */
    .g-verdict-banner {
        flex-direction: column !important;
        text-align: center !important;
        padding: 0.85rem !important;
        gap: 0.75rem !important;
        margin-top: 0.75rem !important;
        border-radius: 10px !important;
    }
    .g-score-circle {
        width: 68px !important;
        height: 68px !important;
        border-width: 3px !important;
    }
    .g-score-number {
        font-size: 1.5rem !important;
    }
    .g-score-pct {
        font-size: 0.75rem !important;
    }
    .g-score-sublabel {
        font-size: 0.65rem !important;
        margin-top: 0.2rem !important;
    }
    .g-status-badge-wrap {
        justify-content: center !important;
        gap: 0.4rem !important;
        margin-bottom: 0.35rem !important;
    }
    .g-status-badge {
        font-size: 0.6875rem !important;
        padding: 0.2rem 0.5rem !important;
    }
    .g-status-prob {
        font-size: 0.75rem !important;
    }
    .g-verdict-title {
        font-size: 0.975rem !important;
        line-height: 1.35 !important;
        margin: 0 0 0.35rem !important;
    }
    .g-verdict-desc {
        font-size: 0.78125rem !important;
        line-height: 1.5 !important;
        margin-bottom: 0.6rem !important;
    }
    .g-verdict-checklist-summary {
        justify-content: center !important;
        gap: 0.35rem !important;
    }
    .g-check-pill {
        font-size: 0.6875rem !important;
        padding: 0.2rem 0.5rem !important;
    }

    /* 4 Pillars Compact */
    .g-pillars-grid {
        grid-template-columns: 1fr !important;
        gap: 0.65rem !important;
        margin-bottom: 1rem !important;
    }
    .g-pillar-card {
        padding: 0.85rem !important;
        border-radius: 10px !important;
    }
    .g-pillar-head {
        margin-bottom: 0.65rem !important;
        gap: 0.5rem !important;
    }
    .g-pillar-icon {
        font-size: 1.25rem !important;
    }
    .g-pillar-num {
        font-size: 0.6rem !important;
    }
    .g-pillar-title {
        font-size: 0.875rem !important;
    }
    .g-pillar-badge {
        font-size: 0.625rem !important;
        padding: 0.15rem 0.4rem !important;
    }
    .g-metric-row {
        padding: 0.25rem 0 !important;
        font-size: 0.75rem !important;
    }
    .g-pillar-note {
        font-size: 0.7rem !important;
        margin-top: 0.4rem !important;
    }
    .g-pillar-footer {
        margin-top: 0.65rem !important;
        padding-top: 0.5rem !important;
    }
    .g-pillar-cta {
        font-size: 0.7rem !important;
        padding: 0.4rem 0.6rem !important;
    }

    /* Solution Banner Compact */
    .g-solution-banner {
        padding: 1rem 0.85rem !important;
        border-radius: 12px !important;
        margin-bottom: 1rem !important;
        gap: 0.75rem !important;
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    .g-solution-badge {
        font-size: 0.625rem !important;
        padding: 0.15rem 0.5rem !important;
        margin-bottom: 0.35rem !important;
    }
    .g-solution-title {
        font-size: 0.975rem !important;
        line-height: 1.3 !important;
        margin-bottom: 0.35rem !important;
    }
    .g-solution-desc {
        font-size: 0.78125rem !important;
        line-height: 1.5 !important;
    }
    .g-solution-banner__right {
        width: 100% !important;
    }
    .g-btn-solution {
        width: 100% !important;
        font-size: 0.8125rem !important;
        padding: 0.6rem 1rem !important;
        justify-content: center !important;
    }

    /* 15-Point Inspection Checklist Box Compact */
    .g-checklist-box {
        padding: 0.85rem 0.65rem !important;
        border-radius: 12px !important;
        margin-bottom: 1.25rem !important;
    }
    .g-checklist-head {
        padding-bottom: 0.75rem !important;
        gap: 0.65rem !important;
    }
    .g-checklist-title {
        font-size: 1rem !important;
    }
    .g-checklist-sub {
        font-size: 0.725rem !important;
    }
    .g-filter-tabs {
        overflow-x: auto !important;
        flex-wrap: nowrap !important;
        width: 100% !important;
        padding-bottom: 0.35rem !important;
        -webkit-overflow-scrolling: touch !important;
        gap: 0.3rem !important;
    }
    .g-filter-tab {
        flex-shrink: 0 !important;
        padding: 0.25rem 0.55rem !important;
        font-size: 0.6875rem !important;
    }

    /* Checklist Items Compact - Zero Word Wrapping Bug */
    .g-checklist-items {
        margin-top: 0.75rem !important;
        gap: 0.5rem !important;
    }
    .g-check-item {
        border-radius: 10px !important;
    }
    .g-check-row {
        padding: 0.65rem 0.65rem !important;
        gap: 0.6rem !important;
    }
    .g-check-status-icon {
        width: 24px !important;
        height: 24px !important;
        font-size: 0.75rem !important;
        margin-top: 1px !important;
    }
    .g-check-title {
        font-size: 0.875rem !important;
        line-height: 1.35 !important;
    }
    .g-check-meta-line {
        gap: 0.35rem !important;
    }
    .g-check-tag {
        font-size: 0.625rem !important;
        padding: 0.1rem 0.4rem !important;
    }
    .g-check-cat {
        font-size: 0.6875rem !important;
    }
    .g-check-arrow-col {
        width: 16px !important;
        margin-top: 2px !important;
    }
    .g-check-arrow-col svg {
        width: 16px !important;
        height: 16px !important;
    }

    /* Expanded details Compact */
    .g-check-details {
        padding: 0.75rem 0.65rem !important;
    }
    .g-detail-card {
        padding: 0.65rem 0.75rem !important;
        margin-bottom: 0.5rem !important;
        border-radius: 6px !important;
    }
    .g-detail-title {
        font-size: 0.75rem !important;
        margin-bottom: 0.25rem !important;
    }
    .g-detail-text {
        font-size: 0.78125rem !important;
        line-height: 1.5 !important;
    }
    pre.g-code-pre {
        font-size: 0.7rem !important;
        padding: 0.65rem !important;
        max-height: 200px !important;
    }
    .g-code-title {
        font-size: 0.6875rem !important;
    }
    .g-copy-btn {
        font-size: 0.6875rem !important;
        padding: 0.25rem 0.55rem !important;
    }
}

@media print {
    header, nav, .psi-nav, .psi-tabs-strip, .psi-mobile-dock, .g-verdict-actions, .g-solution-banner {
        display: none !important;
    }
    body {
        background: #ffffff !important;
    }
    .g-check-details {
        display: block !important;
    }
    .g-adsense-verdict-card, .g-pillar-card, .g-checklist-box {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
}


/* ==========================================================================
   AdSense Approval Checker Dedicated Theme (adsenseapprovalchecker.net Style)
   ========================================================================== */
.aac-domain-card {
    background: #ffffff;
    border: 1px solid #dadce0;
    border-radius: 14px;
    padding: 1.15rem 1.25rem 1.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.aac-domain-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.85rem 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f1f3f4;
    margin-bottom: 1rem;
}
.aac-site-info {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    flex: 1;
    min-width: min(100%, 260px);
}
.aac-site-copy {
    min-width: 0;
    flex: 1;
}
.aac-site-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #e8f0fe;
    color: #1a73e8;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.aac-site-host {
    font-size: 1.125rem;
    font-weight: 800;
    color: #202124;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem 0.4rem;
    line-height: 1.3;
}
.aac-site-ext {
    color: #1a73e8;
    display: inline-flex;
    align-items: center;
}
.aac-site-sub {
    margin: 0.25rem 0 0;
    font-size: 0.75rem;
    color: #5f6368;
    line-height: 1.45;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0.35rem;
}
.aac-site-sub__label {
    font-weight: 600;
    color: #3c4043;
}
.aac-site-sub__dot {
    color: #bdc1c6;
}
.aac-header-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-left: auto;
}
.aac-btn-rescan {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #1a73e8;
    color: #ffffff;
    border: none;
    border-radius: 9999px;
    padding: 0.45rem 1rem;
    font-size: 0.8125rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
}
.aac-btn-rescan:hover {
    background: #1557b0;
}
.aac-btn-print {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #f1f3f4;
    color: #3c4043;
    border: 1px solid #dadce0;
    border-radius: 9999px;
    padding: 0.45rem 0.85rem;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
}

/* Domain 4-Metric Grid */
.aac-metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}
@media (min-width: 720px) {
    .aac-metrics-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0.75rem;
    }
}
.aac-metric-item {
    background: #f8f9fa;
    border: 1px solid #e8eaed;
    border-radius: 10px;
    padding: 0.75rem 1rem;
}
.aac-metric-label {
    font-size: 0.7rem;
    font-weight: 800;
    color: #70757a;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}
.aac-metric-value {
    font-size: 0.95rem;
    font-weight: 800;
    color: #202124;
}

/* The Big Readiness Score Verdict Banner */
.aac-verdict-box {
    background: #ffffff;
    border: 1px solid #dadce0;
    border-radius: 16px;
    padding: 1.25rem 1.35rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.aac-verdict-box--ready {
    border-left: 6px solid #137333;
}
.aac-verdict-box--action {
    border-left: 6px solid #b06000;
}
.aac-verdict-box--danger {
    border-left: 6px solid #d93025;
}

.aac-gauge-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.aac-score-circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    line-height: 1;
}
.aac-score-val {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -0.03em;
}
.aac-score-unit {
    font-size: 0.75rem;
    font-weight: 700;
    opacity: 0.85;
}
.aac-score-lbl {
    font-size: 0.7rem;
    font-weight: 800;
    color: #70757a;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 0.4rem;
}

.aac-verdict-content {
    flex: 1;
    min-width: 0;
}
.aac-badge-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.45rem;
    flex-wrap: wrap;
}
.aac-verdict-badge {
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.25rem 0.7rem;
    border-radius: 9999px;
    letter-spacing: 0.02em;
}
.aac-badge--ready { background: #e6f4ea; color: #137333; }
.aac-badge--action { background: #fef7e0; color: #b06000; }
.aac-badge--danger { background: #fce8e6; color: #d93025; }

.aac-prob-text {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #5f6368;
}
.aac-verdict-headline {
    font-size: 1.25rem;
    font-weight: 800;
    color: #202124;
    margin: 0 0 0.45rem;
    line-height: 1.35;
}
.aac-verdict-desc {
    font-size: 0.875rem;
    color: #5f6368;
    line-height: 1.55;
    margin: 0 0 0.85rem;
}
.aac-chips-summary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.aac-chip-stat {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
}
.aac-chip-stat--pass { background: #e6f4ea; color: #137333; }
.aac-chip-stat--warn { background: #fef7e0; color: #b06000; }
.aac-chip-stat--fail { background: #fce8e6; color: #d93025; }

/* Diagnostic Categories Filter Bar */
.aac-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}
.aac-filter-title {
    font-weight: 800;
    font-size: 1.05rem;
    color: #202124;
}
.aac-filter-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* 4 Structured Diagnostic Category Cards */
.aac-category-card {
    background: #ffffff;
    border: 1px solid #dadce0;
    border-radius: 14px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.aac-category-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e8eaed;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.aac-category-title-wrap {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}
.aac-category-icon {
    font-size: 1.2rem;
}
.aac-category-name {
    font-size: 1rem;
    font-weight: 800;
    color: #202124;
    margin: 0;
}
.aac-category-desc {
    font-size: 0.75rem;
    color: #5f6368;
    margin-top: 0.1rem;
}
.aac-category-badges {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.aac-category-weight {
    font-size: 0.6875rem;
    font-weight: 800;
    color: #1a73e8;
    background: #e8f0fe;
    padding: 0.15rem 0.5rem;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Category Checklist Rows */
.aac-check-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    padding: 0.95rem 1.25rem;
    border-bottom: 1px solid #f1f3f4;
    cursor: pointer;
    transition: background 0.12s ease;
    user-select: none;
}
.aac-check-row:hover {
    background: #f8f9fa;
}
.aac-check-row:last-child {
    border-bottom: none;
}
.aac-check-top-bar {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex: 1;
    min-width: 0;
}
.aac-check-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8125rem;
    font-weight: 800;
    flex-shrink: 0;
}
.aac-icon--pass { background: #e6f4ea; color: #137333; }
.aac-icon--warning { background: #fef7e0; color: #b06000; }
.aac-icon--fail { background: #fce8e6; color: #d93025; }

.aac-check-main {
    flex: 1;
    min-width: 0;
}
.aac-check-title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #202124;
    line-height: 1.35;
    margin: 0;
    word-break: normal;
}
.aac-check-sub {
    font-size: 0.78125rem;
    color: #5f6368;
    margin: 0.2rem 0 0;
    line-height: 1.4;
}

.aac-check-badge-col {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-shrink: 0;
}
.aac-status-pill {
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    white-space: nowrap;
}
.aac-pill--pass { background: #e6f4ea; color: #137333; }
.aac-pill--warning { background: #fef7e0; color: #b06000; }
.aac-pill--fail { background: #fce8e6; color: #d93025; }

.aac-chevron {
    color: #5f6368;
    transition: transform 0.2s;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.aac-chevron--mobile {
    display: none !important;
}
.aac-chevron--desktop {
    display: flex;
}

/* Expanded Fix Details */
.aac-details-panel {
    padding: 1.15rem 1.25rem;
    background: #fafbfc;
    border-bottom: 1px solid #e8eaed;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.aac-policy-why {
    background: #ffffff;
    border: 1px solid #dadce0;
    border-left: 4px solid #1a73e8;
    border-radius: 8px;
    padding: 0.85rem 1rem;
}
.aac-why-title {
    font-size: 0.8125rem;
    font-weight: 800;
    color: #1a73e8;
    margin: 0 0 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.aac-why-text {
    font-size: 0.84rem;
    color: #3c4043;
    line-height: 1.55;
    margin: 0;
}
.aac-code-snippet-box {
    border: 1px solid #3c4043;
    border-radius: 8px;
    overflow: hidden;
    background: #202124;
}
.aac-code-snippet-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.85rem;
    background: #2d2e30;
    border-bottom: 1px solid #3c4043;
}
.aac-code-snippet-title {
    font-size: 0.725rem;
    font-weight: 800;
    color: #e8eaed;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.aac-code-snippet-btn {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    color: #ffffff;
    font-family: inherit;
    font-size: 0.725rem;
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    cursor: pointer;
}
.aac-code-pre {
    margin: 0;
    padding: 0.85rem;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.78125rem;
    color: #8ab4f8;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 240px;
    overflow-y: auto;
}

/* Niche Content Planner Callout Banner */
.aac-engine-cta {
    background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
    color: #ffffff;
    border-radius: 14px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    box-shadow: 0 4px 16px rgba(26,115,232,0.2);
}
.aac-engine-cta__left {
    max-width: 600px;
}
.aac-engine-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
    margin-bottom: 0.5rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.aac-engine-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0 0 0.4rem;
    color: #ffffff;
    line-height: 1.3;
}
.aac-engine-desc {
    font-size: 0.84rem;
    opacity: 0.92;
    line-height: 1.55;
    margin: 0;
}
.aac-engine-btn {
    background: #ffffff;
    color: #1a73e8;
    border: none;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 800;
    padding: 0.75rem 1.25rem;
    border-radius: 9999px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    transition: transform 0.12s;
}
.aac-engine-btn:hover {
    transform: translateY(-1px);
}

/* Mobile Responsive Optimization (< 768px) */
@media (max-width: 768px) {
    .psi-report-shell {
        padding: 0.85rem 0.85rem 2rem;
    }
    .aac-domain-header {
        flex-direction: column;
        align-items: stretch;
    }
    .aac-header-actions {
        width: 100%;
        margin-left: 0;
    }
    .aac-header-actions .aac-btn-print,
    .aac-header-actions .aac-btn-rescan {
        flex: 1;
        justify-content: center;
    }
    .aac-domain-card {
        padding: 1rem 0.85rem !important;
        margin-bottom: 1rem !important;
    }
    .aac-site-icon {
        width: 32px !important;
        height: 32px !important;
        font-size: 1rem !important;
    }
    .aac-site-host {
        font-size: 1.05rem !important;
    }
    .aac-metrics-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.5rem !important;
    }
    .aac-metric-item {
        padding: 0.6rem 0.75rem !important;
    }
    .aac-metric-label {
        font-size: 0.65rem !important;
    }
    .aac-metric-value {
        font-size: 0.84rem !important;
    }

    .aac-verdict-box {
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 1.15rem 0.85rem !important;
        gap: 1rem !important;
    }
    .aac-gauge-wrap {
        flex-direction: row !important;
        gap: 1rem !important;
        align-items: center !important;
    }
    .aac-score-circle {
        width: 72px !important;
        height: 72px !important;
    }
    .aac-score-val {
        font-size: 1.6rem !important;
    }
    .aac-verdict-headline {
        font-size: 1.05rem !important;
        margin-bottom: 0.35rem !important;
    }
    .aac-verdict-desc {
        font-size: 0.8125rem !important;
        margin-bottom: 0.65rem !important;
    }

    /* Filter Bar on Mobile */
    .aac-filter-bar {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.75rem !important;
        margin-bottom: 1rem !important;
    }
    .aac-filter-title {
        font-size: 0.95rem !important;
        font-weight: 800 !important;
        color: #202124 !important;
    }
    .aac-filter-actions {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.5rem !important;
        width: 100% !important;
    }
    .aac-btn-recheck-all {
        width: 100% !important;
        justify-content: center !important;
        padding: 0.5rem 0.85rem !important;
        font-size: 0.8rem !important;
    }

    /* Category Cards on Mobile */
    .aac-category-card {
        border-radius: 12px !important;
        margin-bottom: 1rem !important;
    }
    .aac-category-head {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 0.75rem 0.85rem !important;
        gap: 0.45rem !important;
    }
    .aac-category-title-wrap {
        display: flex !important;
        align-items: flex-start !important;
        gap: 0.55rem !important;
        width: 100% !important;
    }
    .aac-category-icon {
        font-size: 1.15rem !important;
        margin-top: 1px !important;
    }
    .aac-category-name {
        font-size: 0.925rem !important;
        font-weight: 800 !important;
    }
    .aac-category-desc {
        font-size: 0.725rem !important;
        line-height: 1.35 !important;
    }
    .aac-category-badges {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        padding-top: 0.25rem !important;
        border-top: 1px dashed #e8eaed !important;
    }

    /* Checkpoint Rows on Mobile - Full Width Title & Stacked Action Strip */
    .aac-check-row {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 0.85rem 0.85rem !important;
        gap: 0.45rem !important;
    }
    .aac-check-top-bar {
        display: flex !important;
        align-items: flex-start !important;
        gap: 0.65rem !important;
        width: 100% !important;
    }
    .aac-check-icon {
        width: 24px !important;
        height: 24px !important;
        font-size: 0.75rem !important;
        margin-top: 1px !important;
        flex-shrink: 0 !important;
    }
    .aac-check-main {
        flex: 1 1 auto !important;
        min-width: 0 !important;
    }
    .aac-check-title {
        font-size: 0.9rem !important;
        font-weight: 700 !important;
        line-height: 1.35 !important;
        color: #202124 !important;
        margin: 0 !important;
        word-break: normal !important;
    }
    .aac-check-sub {
        font-size: 0.75rem !important;
        color: #5f6368 !important;
        line-height: 1.4 !important;
        margin-top: 0.25rem !important;
    }
    .aac-chevron--mobile {
        display: flex !important;
        margin-top: 2px !important;
        flex-shrink: 0 !important;
        color: #5f6368 !important;
    }
    .aac-chevron--desktop {
        display: none !important;
    }

    .aac-check-badge-col {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        padding-left: calc(24px + 0.65rem) !important;
        padding-top: 0.25rem !important;
        gap: 0.5rem !important;
    }
    .aac-inline-recheck-btn {
        padding: 0.28rem 0.65rem !important;
        font-size: 0.725rem !important;
        font-weight: 700 !important;
        border-radius: 6px !important;
    }
    .aac-status-pill {
        font-size: 0.725rem !important;
        padding: 0.2rem 0.55rem !important;
    }

    /* Expanded Details Panel on Mobile */
    .aac-details-panel {
        padding: 0.85rem 0.75rem !important;
        gap: 0.75rem !important;
    }
    .aac-verify-action-bar {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.65rem !important;
        padding: 0.65rem 0.75rem !important;
    }
    .aac-verify-status-col {
        min-width: 0 !important;
        width: 100% !important;
    }
    .aac-verify-btns {
        width: 100% !important;
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 0.5rem !important;
    }
    .aac-btn-recheck, .aac-btn-mark-done {
        width: 100% !important;
        justify-content: center !important;
        text-align: center !important;
        padding: 0.5rem 0.4rem !important;
        font-size: 0.75rem !important;
    }

    .aac-policy-why {
        padding: 0.75rem 0.85rem !important;
    }
    .aac-why-text {
        font-size: 0.8rem !important;
    }
    .aac-code-snippet-head {
        padding: 0.45rem 0.65rem !important;
    }
    .aac-code-pre {
        font-size: 0.725rem !important;
        padding: 0.65rem !important;
    }

    .aac-engine-cta {
        padding: 1.15rem 0.85rem !important;
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    .aac-engine-btn {
        width: 100% !important;
        justify-content: center !important;
    }
}

/* Extra Compact Screens (< 400px) */
@media (max-width: 400px) {
    .aac-check-badge-col {
        padding-left: 0 !important;
    }
    .aac-category-badges {
        padding-left: 0 !important;
    }
}


/* ==========================================================================
   Live Re-Check & Checkpoint Verification Bar
   ========================================================================== */
.aac-verify-action-bar {
    background: #f8f9fa;
    border: 1px solid #dadce0;
    border-radius: 8px;
    padding: 0.75rem 0.85rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.65rem;
}
.aac-verify-status-col {
    flex: 1;
    min-width: 220px;
}
.aac-verify-btns {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.aac-btn-recheck {
    background: #1a73e8;
    color: #ffffff;
    border: none;
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: background 0.15s, transform 0.1s;
}
.aac-btn-recheck:hover:not(:disabled) {
    background: #1557b0;
    transform: translateY(-1px);
}
.aac-btn-recheck:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}
.aac-btn-mark-done {
    background: #ffffff;
    color: #3c4043;
    border: 1px solid #dadce0;
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.35rem 0.65rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s;
}
.aac-btn-mark-done:hover {
    background: #f1f3f4;
}

.aac-inline-recheck-btn {
    background: #e8f0fe;
    color: #1a73e8;
    border: 1px solid rgba(26,115,232,0.25);
    font-family: inherit;
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: background 0.15s;
}
.aac-inline-recheck-btn:hover:not(:disabled) {
    background: #d2e3fc;
}

.aac-btn-recheck-all {
    background: #ffffff;
    color: #1a73e8;
    border: 1.5px solid #1a73e8;
    font-family: inherit;
    font-size: 0.78125rem;
    font-weight: 700;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.15s;
    white-space: nowrap;
}
.aac-btn-recheck-all:hover:not(:disabled) {
    background: #e8f0fe;
}
.aac-btn-recheck-all:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .aac-verify-action-bar {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.5rem !important;
    }
    .aac-verify-btns {
        width: 100% !important;
        justify-content: flex-end !important;
    }
    .aac-btn-recheck-all {
        font-size: 0.725rem !important;
        padding: 0.25rem 0.65rem !important;
    }
}


/* ==========================================================================
   Zero-MySQL Private Niche Content Studio & JSON Auth / Delete Modals
   ========================================================================== */
.psi-plan-card__btn-del {
    background: #fff5f5;
    color: #d93025;
    border: 1px solid #fad2cf;
    border-radius: 10px;
    padding: 0.65rem 0.85rem;
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
    transition: background 0.15s, border-color 0.15s;
}
.psi-plan-card__btn-del:hover {
    background: #fce8e6;
    border-color: #f5c2be;
}

/* User Session Strip in Planner */
.psi-user-session-bar {
    background: #ffffff;
    border: 1px solid #dadce0;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 3px rgba(60,64,67,0.08);
}
.psi-user-session-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.psi-user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #1a73e8;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    flex-shrink: 0;
}
.psi-user-name {
    font-size: 0.875rem;
    font-weight: 700;
    color: #202124;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.psi-user-badge {
    font-size: 0.6875rem;
    font-weight: 700;
    background: #e8f0fe;
    color: #1a73e8;
    padding: 0.15rem 0.5rem;
    border-radius: 9999px;
}
.psi-user-email {
    font-size: 0.75rem;
    color: #5f6368;
    margin-top: 0.15rem;
}
.psi-user-logout-btn {
    border: 1px solid #dadce0;
    background: #f8f9fa;
    color: #5f6368;
    border-radius: 8px;
    padding: 0.45rem 0.85rem;
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.15s;
}
.psi-user-logout-btn:hover {
    background: #fce8e6;
    color: #d93025;
    border-color: #fad2cf;
}

/* Locked Guest Banner in Planner */
.psi-planner-lock-card {
    background: #ffffff;
    border: 1px solid #dadce0;
    border-radius: 16px;
    padding: 2.75rem 1.75rem;
    text-align: center;
    max-width: 680px;
    margin: 1.5rem auto;
    box-shadow: 0 4px 20px rgba(60,64,67,0.06);
}
.psi-lock-icon-wrap {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #e8f0fe;
    color: #1a73e8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin: 0 auto 1.25rem;
}
.psi-lock-kicker {
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #1a73e8;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}
.psi-lock-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #202124;
    margin: 0 0 0.65rem;
    line-height: 1.35;
}
.psi-lock-desc {
    font-size: 0.875rem;
    color: #5f6368;
    line-height: 1.6;
    max-width: 540px;
    margin: 0 auto 1.75rem;
}
.psi-lock-features-list {
    text-align: left;
    max-width: 480px;
    margin: 0 auto 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.psi-lock-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.8125rem;
    color: #3c4043;
    line-height: 1.45;
}
.psi-lock-check {
    color: #137333;
    font-weight: 800;
    font-size: 0.95rem;
    line-height: 1;
}
.psi-lock-actions {
    display: flex;
    gap: 0.85rem;
    justify-content: center;
    flex-wrap: wrap;
}
.psi-lock-btn-primary {
    background: #1a73e8;
    color: #ffffff;
    border: none;
    border-radius: 9999px;
    padding: 0.75rem 1.6rem;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 6px rgba(26,115,232,0.3);
    transition: background 0.15s, transform 0.1s;
}
.psi-lock-btn-primary:hover {
    background: #1557b0;
    transform: translateY(-1px);
}
.psi-lock-btn-secondary {
    background: #f1f3f4;
    color: #202124;
    border: 1px solid #dadce0;
    border-radius: 9999px;
    padding: 0.75rem 1.35rem;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background 0.15s;
}
.psi-lock-btn-secondary:hover {
    background: #e8eaed;
}

/* Modals System (Dialogs) */
.psi-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(32, 33, 36, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 1rem;
    box-sizing: border-box;
}
.psi-modal-box {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
    width: 100%;
    max-width: 440px;
    position: relative;
    overflow: hidden;
    padding: 1.85rem;
    box-sizing: border-box;
    animation: psiModalPop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes psiModalPop {
    from { opacity: 0; transform: scale(0.94) translateY(8px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.psi-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    border: none;
    background: transparent;
    font-size: 1.6rem;
    color: #5f6368;
    cursor: pointer;
    line-height: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.15s;
}
.psi-modal-close:hover {
    background: #f1f3f4;
    color: #202124;
}

/* Auth Modal Design */
.psi-auth-modal__header {
    text-align: center;
    margin-bottom: 1.25rem;
}
.psi-auth-brand-logo {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #1a73e8, #4285f4);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    font-weight: 800;
    margin: 0 auto 0.75rem;
    box-shadow: 0 4px 12px rgba(26,115,232,0.3);
}
.psi-auth-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #202124;
    margin: 0 0 0.35rem;
}
.psi-auth-sub {
    font-size: 0.8125rem;
    color: #5f6368;
    margin: 0;
    line-height: 1.45;
}
.psi-auth-tabs {
    display: flex;
    background: #f1f3f4;
    padding: 4px;
    border-radius: 10px;
    margin-bottom: 1.25rem;
}
.psi-auth-tab {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #5f6368;
    cursor: pointer;
    transition: all 0.15s;
}
.psi-auth-tab--active {
    background: #ffffff;
    color: #1a73e8;
    box-shadow: 0 1px 3px rgba(60,64,67,0.15);
}
.psi-auth-error {
    background: #fce8e6;
    color: #d93025;
    border: 1px solid #fad2cf;
    border-radius: 8px;
    padding: 0.6rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.4;
}
.psi-auth-success {
    background: #e6f4ea;
    color: #137333;
    border: 1px solid #ceead6;
    border-radius: 8px;
    padding: 0.6rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.4;
}
.psi-auth-form {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.psi-auth-group {
    text-align: left;
}
.psi-auth-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #3c4043;
    margin-bottom: 0.35rem;
}
.psi-auth-input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.65rem 0.85rem;
    border: 1px solid #dadce0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.875rem;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    background: #ffffff;
}
.psi-auth-input:focus {
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26,115,232,0.15);
}
.psi-auth-submit-btn {
    width: 100%;
    background: #1a73e8;
    color: #ffffff;
    border: none;
    border-radius: 9999px;
    padding: 0.75rem 1rem;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background 0.15s;
}
.psi-auth-submit-btn:hover:not(:disabled) {
    background: #1557b0;
}
.psi-auth-submit-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}
.psi-auth-forgot-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.35rem;
}
.psi-auth-forgot-link {
    border: none;
    background: transparent;
    padding: 0;
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 700;
    color: #1a73e8;
    cursor: pointer;
    text-decoration: none;
}
.psi-auth-forgot-link:hover {
    text-decoration: underline;
}
.psi-auth-forgot-hint {
    margin: 0 0 0.85rem;
    font-size: 0.8125rem;
    color: #5f6368;
    line-height: 1.45;
}
.psi-auth-back-link {
    display: block;
    width: 100%;
    margin-top: 0.75rem;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #1a73e8;
    cursor: pointer;
    text-align: center;
}
.psi-auth-footer-note {
    text-align: center;
    font-size: 0.6875rem;
    color: #70757a;
    margin-top: 1rem;
}

/* Delete Confirm Modal */
.psi-delete-modal {
    text-align: center;
    padding: 2rem 1.75rem;
}
.psi-delete-modal__icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #fce8e6;
    color: #d93025;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}
.psi-delete-modal__title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #202124;
    margin: 0 0 0.5rem;
}
.psi-delete-modal__desc {
    font-size: 0.84375rem;
    color: #5f6368;
    margin: 0 0 1rem;
    line-height: 1.5;
}
.psi-delete-modal__target {
    font-size: 0.875rem;
    font-weight: 700;
    color: #202124;
    background: #f8f9fa;
    border: 1px solid #e8eaed;
    border-radius: 8px;
    padding: 0.65rem 0.85rem;
    margin-bottom: 1.5rem;
    word-break: break-word;
    text-align: left;
    max-height: 80px;
    overflow-y: auto;
}
.psi-delete-modal__actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}
.psi-modal-btn-cancel {
    flex: 1;
    background: #f1f3f4;
    border: 1px solid #dadce0;
    color: #3c4043;
    padding: 0.65rem 1rem;
    border-radius: 9999px;
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
}
.psi-modal-btn-cancel:hover:not(:disabled) {
    background: #e8eaed;
}
.psi-modal-btn-delete {
    flex: 1;
    background: #d93025;
    border: none;
    color: #ffffff;
    padding: 0.65rem 1rem;
    border-radius: 9999px;
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    box-shadow: 0 2px 6px rgba(217,48,37,0.25);
    transition: background 0.15s;
}
.psi-modal-btn-delete:hover:not(:disabled) {
    background: #b3261e;
}
.psi-modal-btn-delete:disabled, .psi-modal-btn-cancel:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

@media (max-width: 640px) {
    .psi-user-session-bar {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.75rem !important;
        padding: 0.85rem !important;
    }
    .psi-user-logout-btn {
        width: 100% !important;
        justify-content: center !important;
    }
    .psi-lock-actions {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    .psi-lock-btn-primary, .psi-lock-btn-secondary {
        width: 100% !important;
        justify-content: center !important;
        height: 44px !important;
    }
    .psi-modal-box {
        padding: 1.5rem 1.25rem !important;
    }
    .psi-auth-input {
        font-size: 1rem !important; /* Prevents auto-zoom on iOS */
    }
}
