/* =========================================================
   PUBLITECA PORTAL
   Main Stylesheet
   Blazor Server / Interactive Server
   ========================================================= */


/* =========================================================
   1. DESIGN VARIABLES
   ========================================================= */

:root {
    --ink: #182336;
    --muted: #657287;
    --line: #dce3eb;
    --paper: #f5f7fa;
    --panel: #ffffff;
    --nav: #101c2d;
    --nav-soft: #1b2a40;
    --brand: #176b87;
    --brand-dark: #0f5067;
    --brand-pale: #eaf5f8;
    --danger: #a93737;
    --warning: #a36b18;
    --success: #287a55;
    --shadow: 0 12px 32px rgba(19, 35, 55, 0.08);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
}


/* =========================================================
   2. GLOBAL RESET / BASE
   ========================================================= */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    background: var(--paper);
    color: var(--ink);
}

body {
    min-width: 320px;
}

a {
    color: inherit;
}

button,
input,
select {
    font: inherit;
}

button,
.btn,
a {
    -webkit-tap-highlight-color: transparent;
}


/* =========================================================
   3. AUTHENTICATION / LOGIN
   ========================================================= */

.auth-page {
    min-height: 100vh;
}

.login-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(360px, 47%) 1fr;
    background: var(--panel);
}

.login-brand {
    position: relative;
    overflow: hidden;
    padding: 64px clamp(32px, 6vw, 92px);
    background: linear-gradient( 155deg, #0d1a2b 0%, #153552 60%, #176b87 135% );
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

    .login-brand::after {
        content: "";
        position: absolute;
        right: -240px;
        bottom: -160px;
        width: 440px;
        height: 440px;
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 50%;
        box-shadow: 0 0 0 65px rgba(255, 255, 255, 0.035), 0 0 0 135px rgba(255, 255, 255, 0.025);
    }


/* Brand lockup */

.brand-lockup,
.sidebar-brand,
.mobile-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-mark {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: white;
    color: var(--brand-dark);
    font-weight: 900;
    letter-spacing: -0.05em;
    box-shadow: var(--shadow);
}

    .brand-mark.small {
        width: 42px;
        height: 42px;
        border-radius: 11px;
        font-size: 13px;
    }

.brand-kicker {
    letter-spacing: 0.18em;
    font-size: 11px;
    font-weight: 800;
    opacity: 0.8;
}

.login-brand h1 {
    margin: 3px 0 0;
    font-size: 34px;
}

.login-brand p {
    margin: 3px 0 0;
    color: rgba(255, 255, 255, 0.72);
}


/* Login marketing message */

.brand-message {
    position: relative;
    z-index: 1;
    max-width: 560px;
}

    .brand-message h2 {
        margin: 12px 0 18px;
        font-size: clamp(34px, 4vw, 64px);
        line-height: 1.02;
        letter-spacing: -0.045em;
    }

    .brand-message p {
        max-width: 520px;
        font-size: 17px;
        line-height: 1.65;
    }


/* Small labels */

.eyebrow {
    color: var(--brand);
    letter-spacing: 0.14em;
    font-size: 10px;
    font-weight: 900;
}

.login-brand .eyebrow {
    color: #9fdceb;
}


/* Login form area */

.login-card-wrap {
    display: grid;
    place-items: center;
    padding: 32px;
    background: radial-gradient( circle at 90% 10%, #eaf4f7 0, transparent 26% ), #ffffff;
}

.login-card {
    width: min(100%, 440px);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

    .login-card h2 {
        margin: 5px 0 0;
        font-size: 36px;
        letter-spacing: -0.035em;
    }

    .login-card .muted {
        margin: 0 0 17px;
    }

    .login-card label,
    .profile-grid label,
    .filters-grid label {
        display: flex;
        flex-direction: column;
        gap: 7px;
        color: #435066;
        font-size: 12px;
        font-weight: 800;
    }


/* =========================================================
   4. FORM CONTROLS
   ========================================================= */

input,
select {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #cfd8e3;
    border-radius: 10px;
    background: white;
    color: var(--ink);
    outline: none;
}

    input:focus,
    select:focus {
        border-color: var(--brand);
        box-shadow: 0 0 0 3px rgba(23, 107, 135, 0.12);
    }

    input:disabled {
        background: #f1f4f7;
        color: #7b8595;
    }


/* Login feedback */

.login-error {
    padding: 11px 13px;
    border: 1px solid #f1caca;
    border-radius: 9px;
    background: #fff0f0;
    color: #8d2c2c;
    font-size: 13px;
}

.demo-note {
    margin-top: 18px;
    padding: 13px;
    border-radius: 10px;
    background: #f4f7f9;
    color: var(--muted);
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 11px;
}

    .demo-note strong {
        color: var(--ink);
    }

.mobile-brand {
    display: none;
}


/* =========================================================
   5. BUTTONS
   ========================================================= */

.btn {
    min-height: 42px;
    padding: 10px 15px;
    border: 0;
    border-radius: 9px;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.primary {
    background: var(--brand);
    color: white;
}

    .primary:hover {
        background: var(--brand-dark);
    }

.secondary {
    background: var(--brand-pale);
    color: var(--brand-dark);
}

.ghost {
    background: transparent;
    border: 1px solid var(--line);
    color: inherit;
}

.full {
    width: 100%;
}

.text-link {
    color: var(--brand);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}


/* =========================================================
   6. MAIN APPLICATION LAYOUT
   ========================================================= */

.app-shell {
    min-height: 100vh;
}


/* =========================================================
   7. SIDEBAR
   ========================================================= */

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 248px;
    padding: 24px 17px;
    background: var(--nav);
    color: white;
    display: flex;
    flex-direction: column;
    z-index: 40;
}

.sidebar-brand {
    padding: 0 7px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

    .sidebar-brand strong,
    .mobile-brand strong {
        display: block;
        font-size: 11px;
        letter-spacing: 0.1em;
    }

    .sidebar-brand span,
    .mobile-brand span {
        display: block;
        margin-top: 3px;
        font-size: 17px;
        font-weight: 800;
    }


/* Sidebar navigation */

.nav-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding-top: 25px;
}

.nav-item {
    min-height: 46px;
    padding: 0 13px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

    .nav-item span {
        width: 22px;
        text-align: center;
        font-size: 17px;
    }

    .nav-item:hover,
    .nav-item.active {
        background: var(--nav-soft);
        color: white;
    }


/* Sidebar footer */

.sidebar-footer {
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.client-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 13px;
}

    .client-chip .avatar {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        display: grid;
        place-items: center;
        background: rgba(255, 255, 255, 0.14);
        font-size: 11px;
        font-weight: 900;
    }

    .client-chip strong,
    .client-chip span {
        display: block;
        max-width: 145px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .client-chip strong {
        font-size: 12px;
    }

    .client-chip span {
        margin-top: 2px;
        color: rgba(255, 255, 255, 0.55);
        font-size: 10px;
    }

.sidebar .ghost {
    border-color: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.78);
}


/* =========================================================
   8. TOP NAVIGATION BAR
   ========================================================= */

.topbar {
    position: sticky;
    top: 0;
    height: 68px;
    margin-left: 248px;
    padding: 0 clamp(20px, 4vw, 46px);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 30;
}

.topbar-title strong,
.topbar-title span {
    display: block;
}

.topbar-title strong {
    font-size: 13px;
}

.topbar-title span {
    margin-top: 2px;
    color: var(--muted);
    font-size: 10px;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.env-pill {
    padding: 6px 9px;
    border-radius: 999px;
    background: #eef3f6;
    color: #607080;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.notification-btn {
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: white;
    display: grid;
    place-items: center;
    text-decoration: none;
}

.mobile-menu {
    display: none;
    border: 0;
    background: transparent;
    font-size: 24px;
    cursor: pointer;
}


/* =========================================================
   9. MAIN CONTENT
   ========================================================= */

.main-content {
    margin-left: 248px;
    max-width: 1640px;
    padding: 36px clamp(20px, 4vw, 46px) 64px;
}

.mobile-backdrop {
    display: none;
}


/* =========================================================
   10. PAGE HEADERS
   ========================================================= */

.page-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 25px;
}

    .page-head h1 {
        margin: 5px 0;
        font-size: clamp(28px, 3vw, 42px);
        letter-spacing: -0.04em;
    }

    .page-head p {
        margin: 0;
        color: var(--muted);
    }

.date-chip {
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: white;
    color: var(--muted);
    font-size: 11px;
}


/* =========================================================
   11. PANELS / CARDS
   ========================================================= */

.panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(30, 50, 70, 0.035);
}

    .panel h2 {
        margin: 5px 0;
        font-size: 20px;
        letter-spacing: -0.02em;
    }

.panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}


/* =========================================================
   12. DASHBOARD STATISTICS
   ========================================================= */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.stat-card {
    min-height: 112px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: white;
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(30, 50, 70, 0.025);
}

    .stat-card:hover {
        transform: translateY(-1px);
        box-shadow: var(--shadow);
    }

    .stat-card .media-icon {
        width: 43px;
        height: 43px;
        border-radius: 11px;
        display: grid;
        place-items: center;
        background: var(--brand-pale);
        color: var(--brand-dark);
        font-size: 21px;
    }

    .stat-card span,
    .stat-card strong,
    .stat-card small {
        display: block;
    }

    .stat-card div > span {
        color: var(--muted);
        font-size: 11px;
        font-weight: 800;
        text-transform: uppercase;
    }

    .stat-card strong {
        margin: 2px 0;
        font-size: 29px;
    }

    .stat-card small {
        color: #8a94a2;
    }


/* =========================================================
   13. DASHBOARD GRID
   ========================================================= */

.dashboard-grid {
    display: grid;
    grid-template-columns: 1.16fr 0.84fr;
    gap: 18px;
    margin-bottom: 18px;
}

.alert-panel,
.quick-search-panel,
.recent-panel,
.search-panel,
.profile-panel,
.detail-card {
    padding: 22px;
}


/* =========================================================
   14. ALERT LIST
   ========================================================= */

.alert-list {
    margin-top: 13px;
}

.alert-row {
    display: grid;
    grid-template-columns: 10px 1fr auto;
    gap: 11px;
    align-items: center;
    padding: 13px 0;
    border-top: 1px solid #edf1f4;
    text-decoration: none;
}

    .alert-row:first-child {
        border-top: 0;
    }

    .alert-row strong,
    .alert-row span {
        display: block;
    }

    .alert-row strong {
        font-size: 12px;
    }

    .alert-row div span {
        margin-top: 3px;
        color: var(--muted);
        font-size: 10px;
    }

.alert-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #7c92a4;
}

    .alert-dot.critical,
    .alert-rail.critical {
        background: #b84141;
    }

    .alert-dot.high,
    .alert-rail.high {
        background: #d07d2a;
    }

    .alert-dot.medium,
    .alert-rail.medium {
        background: #d2ad3b;
    }

    .alert-dot.info,
    .alert-rail.info {
        background: #4d879d;
    }

.new-pill {
    padding: 4px 7px;
    border-radius: 999px;
    background: #fff0f0;
    color: var(--danger);
    font-size: 9px;
}


/* =========================================================
   15. QUICK SEARCH
   ========================================================= */

.quick-search-panel p {
    margin-bottom: 20px;
    color: var(--muted);
}

.hero-search,
.search-main {
    display: flex;
    gap: 8px;
}

.keyword-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 13px;
}

    .keyword-pills button {
        padding: 7px 9px;
        border: 1px solid var(--line);
        border-radius: 999px;
        background: white;
        color: var(--brand-dark);
        font-size: 10px;
        cursor: pointer;
    }


/* =========================================================
   16. RECENT MENTIONS
   ========================================================= */

.mention-list {
    margin-top: 10px;
}

.mention-row {
    min-height: 70px;
    display: grid;
    grid-template-columns: 68px 1fr 78px;
    gap: 15px;
    align-items: center;
    border-top: 1px solid #edf1f4;
    text-decoration: none;
}

    .mention-row:first-child {
        border-top: 0;
    }

    .mention-copy strong,
    .mention-copy span,
    .mention-row time,
    .mention-row time small {
        display: block;
    }

.mention-copy strong {
    font-size: 12px;
    line-height: 1.45;
}

.mention-copy span,
.mention-row time {
    margin-top: 3px;
    color: var(--muted);
    font-size: 10px;
}

.mention-row time {
    text-align: right;
}


/* Media badges */

.media-badge {
    min-width: 58px;
    width: fit-content;
    padding: 6px 8px;
    border-radius: 7px;
    text-align: center;
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
}

    .media-badge.tv {
        background: #e9f2fb;
        color: #2b6394;
    }

    .media-badge.radio {
        background: #f1eefd;
        color: #6b53a0;
    }

    .media-badge.prensa {
        background: #f4f0e7;
        color: #806b3e;
    }

    .media-badge.digital {
        background: #eaf6ef;
        color: #39755a;
    }


/* =========================================================
   17. SEARCH PAGE
   ========================================================= */

.search-panel {
    margin-bottom: 18px;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 15px;
}

.filter-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 15px;
}

.sort-check {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 11px;
}

    .sort-check input {
        width: auto;
        min-height: auto;
    }


/* =========================================================
   18. SEARCH RESULTS
   ========================================================= */

.results-toolbar {
    display: flex;
    justify-content: space-between;
    margin: 18px 2px 10px;
}

    .results-toolbar strong,
    .results-toolbar span {
        display: block;
    }

    .results-toolbar strong {
        font-size: 13px;
    }

    .results-toolbar span {
        margin-top: 2px;
        color: var(--muted);
        font-size: 10px;
    }

.results-list {
    display: grid;
    gap: 12px;
}

.result-card {
    position: relative;
    padding: 19px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: white;
}

    .result-card h2 {
        margin: 11px 0 7px;
        font-size: 17px;
    }

    .result-card p {
        max-width: 980px;
        margin: 0 0 14px;
        color: #5c6879;
        font-size: 12px;
        line-height: 1.6;
    }


/* Result heading/meta */

.result-topline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    color: var(--muted);
    font-size: 10px;
}

    .result-topline time {
        margin-left: auto;
    }

.result-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin: 10px 0 13px;
}


/* Result chips */

.keyword-chip,
.sentiment,
.alert-chip {
    padding: 5px 8px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 800;
}

.keyword-chip {
    background: #f0f3f6;
    color: #596779;
}

.sentiment.positivo {
    background: #e9f6ef;
    color: #287a55;
}

.sentiment.neutral {
    background: #f2f3f4;
    color: #6b7480;
}

.sentiment.negativo {
    background: #fff0f0;
    color: #9f3434;
}

.alert-chip {
    background: #fff5e7;
    color: #986321;
}


/* =========================================================
   19. ALERTS PAGE
   ========================================================= */

.alert-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.alert-filter {
    min-height: 38px;
    padding: 7px 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: white;
    font-size: 11px;
    cursor: pointer;
}

    .alert-filter.active {
        background: var(--nav);
        color: white;
        border-color: var(--nav);
    }

.alerts-page-list {
    display: grid;
    gap: 12px;
}

.alert-card {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 5px 1fr;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: white;
    text-decoration: none;
}

.alert-rail {
    min-height: 100%;
    background: #70889b;
}

.alert-card-copy {
    padding: 18px;
}

.alert-card h2 {
    margin: 10px 0 6px;
    font-size: 16px;
}

.alert-card p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
}


/* =========================================================
   20. LOADING / EMPTY STATES
   ========================================================= */

.loading-card {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: white;
    color: var(--muted);
}

.empty-state {
    padding: 50px 28px;
    text-align: center;
}

    .empty-state p {
        margin-bottom: 20px;
        color: var(--muted);
    }


/* =========================================================
   21. PROFILE
   ========================================================= */

.profile-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.profile-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

.success-message {
    margin-bottom: 15px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #eaf7ef;
    color: #2e6f4f;
    font-size: 12px;
}


/* =========================================================
   22. MENTION DETAIL
   ========================================================= */

.detail-page {
    max-width: 1050px;
    margin: 0 auto;
}

.back-link {
    margin-bottom: 12px;
    border: 0;
    background: transparent;
    color: var(--brand);
    font-weight: 800;
    cursor: pointer;
}

.detail-card h1 {
    margin: 18px 0 22px;
    font-size: clamp(26px, 4vw, 42px);
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.detail-meta-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    padding: 15px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

    .detail-meta-grid span,
    .detail-meta-grid strong {
        display: block;
    }

    .detail-meta-grid span {
        color: var(--muted);
        font-size: 9px;
        letter-spacing: 0.06em;
        text-transform: uppercase;
    }

    .detail-meta-grid strong {
        margin-top: 4px;
        font-size: 12px;
    }

.summary-block {
    padding: 25px 0 10px;
}

    .summary-block p {
        color: #3e4b5d;
        font-size: 15px;
        line-height: 1.75;
    }


/* Multimedia placeholder */

.media-placeholder {
    min-height: 120px;
    margin-top: 18px;
    padding: 24px;
    border-radius: 12px;
    background: linear-gradient( 135deg, #13243a, #204c65 );
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}

    .media-placeholder span {
        color: rgba(255, 255, 255, 0.68);
        font-size: 11px;
    }


/* =========================================================
   23. TABLET / SMALL DESKTOP
   <= 1050px
   ========================================================= */

@media (max-width: 1050px) {

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .detail-meta-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


/* =========================================================
   24. TABLET / MOBILE NAVIGATION
   <= 820px
   ========================================================= */

@media (max-width: 820px) {

    .login-shell {
        grid-template-columns: 1fr;
    }

    .login-brand {
        display: none;
    }

    .login-card-wrap {
        min-height: 100vh;
        padding: 30px 22px;
    }

    .mobile-brand {
        display: flex;
        margin-bottom: 28px;
    }


    /* Sidebar becomes slide-out menu */

    .sidebar {
        width: min(82vw, 280px);
        transform: translateX(-102%);
        transition: transform 0.2s ease;
        box-shadow: 20px 0 40px rgba(0, 0, 0, 0.18);
    }

        .sidebar.open {
            transform: translateX(0);
        }

    .mobile-backdrop {
        position: fixed;
        inset: 0;
        display: block;
        border: 0;
        background: rgba(8, 16, 28, 0.35);
        z-index: 35;
    }


    /* Mobile top bar */

    .topbar {
        margin-left: 0;
        padding: 0 17px;
    }

    .mobile-menu {
        display: block;
    }

    .env-pill {
        display: none;
    }


    /* Main content */

    .main-content {
        margin-left: 0;
        padding: 26px 17px 56px;
    }


    /* Forms */

    .filters-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .profile-grid {
        grid-template-columns: 1fr;
    }

    .detail-meta-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* =========================================================
   25. SMARTPHONE
   <= 560px
   ========================================================= */

@media (max-width: 560px) {

    .login-card h2 {
        font-size: 30px;
    }


    /* Page header */

    .page-head {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 18px;
    }

    .date-chip {
        display: none;
    }


    /* Dashboard cards */

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 9px;
    }

    .stat-card {
        min-height: 94px;
        padding: 13px;
        gap: 10px;
    }

        .stat-card .media-icon {
            width: 36px;
            height: 36px;
        }

        .stat-card strong {
            font-size: 24px;
        }


    /* Panels */

    .alert-panel,
    .quick-search-panel,
    .recent-panel,
    .search-panel,
    .profile-panel,
    .detail-card {
        padding: 16px;
    }

    .panel-head {
        align-items: flex-start;
    }


    /* Search */

    .hero-search,
    .search-main {
        flex-direction: column;
    }

    .filters-grid {
        grid-template-columns: 1fr;
    }

    .filter-actions {
        flex-direction: column;
        align-items: flex-start;
    }


    /* Mentions */

    .mention-row {
        grid-template-columns: 58px 1fr;
        padding: 12px 0;
    }

        .mention-row time {
            grid-column: 2;
            margin-top: -8px;
            text-align: left;
        }


    /* Search result cards */

    .result-topline time {
        width: 100%;
        margin-left: 0;
    }

    .result-card {
        padding: 15px;
    }

        .result-card .btn {
            width: 100%;
        }


    /* Detail */

    .detail-meta-grid {
        grid-template-columns: 1fr 1fr;
    }


    /* Top bar */

    .topbar-title span {
        max-width: 170px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}


/* =========================================================
   26. VERY SMALL SMARTPHONES
   <= 390px
   ========================================================= */

@media (max-width: 390px) {

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-card {
        min-height: 78px;
    }
}
