:root {
    --navy: #031f3f;
    --navy-2: #062b55;
    --blue: #1769ff;
    --blue-soft: #eef4ff;
    --teal: #12b8b5;
    --ink: #10213a;
    --muted: #718096;
    --line: #e4eaf2;
    --surface: #fff;
    --bg: #f5f8fc;
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        'Segoe UI',
        sans-serif;
    font-size: 14px;
}
.app-content,
.page-content,
.topbar-heading,
.card,
.panel,
.row > * {
    min-width: 0;
}
.app-shell {
    min-height: 100vh;
    display: flex;
}
.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 224px;
    background: linear-gradient(180deg, var(--navy), #02182f);
    color: #fff;
    padding: 22px 16px;
    display: flex;
    flex-direction: column;
    z-index: 1030;
}
.brand {
    display: flex;
    background: #fff;
    border-radius: 12px;
    padding: 8px 12px;
    height: 52px;
    align-items: center;
    margin: 0 4px 28px;
}
.brand img {
    display: block;
    width: 132px;
    height: auto;
}
.nav-caption {
    font-size: 10px;
    letter-spacing: 0.12em;
    color: #6f8aa7;
    margin: 0 12px 9px;
}
.side-nav {
    display: grid;
    gap: 6px;
}
.side-nav a,
.side-refresh {
    border: 0;
    background: transparent;
    color: #b9c8d8;
    text-decoration: none;
    padding: 11px 13px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 11px;
    font: inherit;
    text-align: left;
    width: 100%;
    transition: 0.18s;
}
.side-nav a span,
.side-refresh span {
    font-size: 18px;
    width: 18px;
    text-align: center;
}
.side-nav a:hover,
.side-refresh:hover,
.side-nav a.active {
    background: #0e4b93;
    color: #fff;
}
.sidebar-footer {
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    padding-top: 16px;
}
.sidebar-footer a {
    color: #9eb2c7;
    text-decoration: none;
    padding: 8px 12px;
    display: block;
}
.app-content {
    margin-left: 224px;
    width: calc(100% - 224px);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.topbar-shell {
    height: 78px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 0 30px;
    display: flex;
    align-items: center;
    gap: 14px;
    position: sticky;
    top: 0;
    z-index: 1020;
}
.topbar {
    display: contents;
}
.topbar h1 {
    font-size: 19px;
    margin: 0;
    font-weight: 750;
    overflow-wrap: anywhere;
}
.topbar p {
    font-size: 12px;
    color: var(--muted);
    margin: 3px 0 0;
}
.topbar-heading {
    flex: 1 1 auto;
    order: 1;
}
.topbar-sync,
.top-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}
.topbar-sync {
    order: 2;
}
.top-actions {
    order: 3;
}
.topbar-sync:empty {
    display: none;
}
.btn-refresh {
    background: var(--blue);
    border: 0;
    color: #fff;
    border-radius: 8px;
    padding: 9px 15px;
    font-weight: 650;
    box-shadow: 0 5px 14px rgba(23, 105, 255, 0.22);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.btn-refresh:hover {
    background: #0758e6;
}
.avatar {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #e4edff;
    color: #2058b2;
    font-weight: 700;
    text-decoration: none;
}
.header-profile-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #18314f;
    font-size: 0.82rem;
    text-decoration: none;
    cursor: pointer;
    list-style: none;
    list-style-type: none;
    line-height: 1;
}
.header-profile-link::marker {
    content: "";
}
.header-profile-link::-webkit-details-marker {
    display: none;
}
.header-profile-link img,
.header-profile-link > span {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    border-radius: 50%;
    background: #e4edff;
    color: #2058b2;
    object-fit: cover;
    font-weight: 750;
}
.header-profile-link:hover {
    color: #1769ff;
}
.header-profile-chevron {
    display: block;
    width: 10px;
    height: 7px;
    flex: 0 0 10px;
    color: #71839d;
    overflow: visible;
}
.header-profile-chevron path {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.header-profile-menu[open] .header-profile-chevron {
    transform: rotate(180deg);
}
.header-profile-menu {
    position: relative;
}
.header-profile-dropdown {
    position: absolute;
    z-index: 1100;
    top: calc(100% + 10px);
    right: 0;
    width: 190px;
    padding: 7px;
    border: 1px solid #dce4ef;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 14px 35px rgba(16, 36, 65, 0.16);
}
.header-profile-dropdown a,
.header-profile-dropdown button {
    display: block;
    width: 100%;
    padding: 9px 10px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #243a57;
    font: inherit;
    text-align: left;
    text-decoration: none;
}
.header-profile-dropdown a:hover,
.header-profile-dropdown button:hover {
    background: #edf4ff;
    color: #1769ff;
}
.header-profile-dropdown form {
    margin: 0;
}
.profile-photo-box {
    display: grid;
    width: 148px;
    height: 148px;
    place-items: center;
    overflow: hidden;
    border-radius: 24px;
    background: linear-gradient(145deg, #e7efff, #e3faf7);
    color: #1769ff;
    font-size: 3rem;
    font-weight: 800;
}
.profile-photo-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
@media (max-width: 800px) {
    .header-profile-link strong {
        display: none;
    }
}
.menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    font-size: 22px;
}
.page-content {
    padding: 26px 30px;
    flex: 1;
    max-width: 1700px;
    width: 100%;
    margin: auto;
}
.app-footer {
    border-top: 1px solid var(--line);
    color: #91a0b2;
    font-size: 11px;
    text-align: center;
    padding: 16px;
    background: #fff;
}
.card,
.panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 2px 7px rgba(22, 43, 73, 0.035);
}
.card-header {
    border-bottom: 1px solid var(--line) !important;
    padding: 16px 18px;
}
.card-body {
    padding: 18px;
}
.metric {
    background: linear-gradient(145deg, #fff, var(--blue-soft));
    border: 1px solid #e5ebf5;
    border-radius: 9px;
    padding: 17px;
    height: 100%;
}
.metric span {
    display: block;
    color: var(--muted);
    font-size: 12px;
}
.metric strong {
    display: block;
    font-size: 25px;
    margin-top: 7px;
}
.chart-wrap {
    position: relative;
    min-height: 320px;
}
.table {
    --bs-table-bg: transparent;
    color: var(--ink);
}
.table > :not(caption) > * > * {
    padding: 13px 14px;
    border-bottom-color: #edf1f6;
}
.table thead th {
    color: #607086;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    background: #fbfcfe;
    white-space: nowrap;
    cursor: pointer;
}
.table td {
    vertical-align: middle;
}
.table-responsive {
    max-width: 100%;
}
.quote-title {
    min-width: 220px;
    max-width: 420px;
    color: var(--muted);
}
.filters .form-select,
.filters .form-control {
    min-width: 150px;
    border-color: var(--line);
    font-size: 12px;
}
.sort-icon {
    color: #98a2b3;
    font-size: 0.8rem;
}
.table-sort-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-transform: inherit;
    letter-spacing: inherit;
    white-space: nowrap;
}
.table-sort-button span {
    color: #98a2b3;
    font-size: 0.85rem;
}
.table-sort-button:hover,
.table-sort-button:focus-visible {
    color: var(--bs-primary);
}
.table-sort-button:focus-visible {
    outline: 2px solid rgba(13, 110, 253, 0.35);
    outline-offset: 4px;
    border-radius: 2px;
}
.priority-icon {
    display: inline-block;
    min-width: 1.25rem;
    text-align: center;
}
.assignee-disabled {
    opacity: 0.58;
    background: #eef0f2;
}
.assignee-disabled:hover {
    opacity: 0.75;
}
.page-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}
.search-box {
    height: 42px;
    max-width: 440px;
    flex: 1;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: flex;
    align-items: center;
    padding: 0 13px;
    color: #9aa8b8;
}
.search-box input {
    border: 0;
    outline: 0;
    width: 100%;
    padding-left: 9px;
    color: var(--ink);
}
.result-count {
    margin-left: auto;
    color: var(--muted);
    font-size: 12px;
}
.project-table .project-name {
    display: flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
    color: var(--ink);
    min-width: 210px;
}
.project-name small {
    display: block;
    color: #8b99aa;
    font-size: 11px;
    margin-top: 3px;
}
.project-symbol {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #eaf2ff;
    color: var(--blue);
    font-size: 18px;
}
.project-description {
    max-width: 430px;
    color: #5d6d80;
}
.count-pill {
    display: inline-grid;
    place-items: center;
    min-width: 28px;
    height: 25px;
    padding: 0 8px;
    border-radius: 13px;
    background: #fff0ed;
    color: #e14c39;
    font-weight: 700;
}
.row-action {
    display: grid;
    place-items: center;
    width: 31px;
    height: 31px;
    border: 1px solid var(--line);
    border-radius: 7px;
    text-decoration: none;
    color: var(--blue);
}
.empty-state {
    text-align: center;
    color: var(--muted);
    padding: 50px;
}
.list-group-item {
    border-color: var(--line);
}
@media (max-width: 900px) {
    .sidebar {
        transform: translateX(-100%);
        transition: 0.2s;
    }
    .sidebar.open {
        transform: none;
    }
    .app-content {
        margin-left: 0;
        width: 100%;
    }
    .menu-toggle {
        display: block;
    }
    .page-content {
        padding: 20px 15px;
    }
    .topbar-shell {
        padding: 0 15px;
    }
    .topbar p {
        display: none;
    }
    .btn-refresh {
        padding: 8px 10px;
    }
    .brand {
        margin-bottom: 18px;
    }
}
.footer-ewill {
    width: 58px;
    height: auto;
    display: block;
}
.app-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}
.kpi-strip {
    display: grid;
    grid-template-columns: repeat(5, minmax(145px, 1fr));
    gap: 16px;
}
.project-kpis {
    grid-template-columns: repeat(4, minmax(170px, 1fr));
}
.kpi-card {
    min-height: 100px;
    background: #fff;
    border: 1px solid #e3e9f2;
    border-radius: 10px;
    padding: 17px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    box-shadow: 0 3px 12px rgba(29, 55, 92, 0.045);
}
.kpi-card-link {
    color: inherit;
    text-decoration: none;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}
.kpi-card-link:hover {
    border-color: #b9cdf2;
    box-shadow: 0 8px 20px rgba(29, 55, 92, 0.1);
    transform: translateY(-1px);
}
.kpi-icon {
    display: grid;
    place-items: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 11px;
    font-size: 22px;
    font-weight: 800;
}
.kpi-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.kpi-copy strong {
    font-size: 25px;
    line-height: 1.05;
    color: #10213a;
}
.kpi-copy span {
    color: #63748a;
    font-size: 12px;
    margin-top: 7px;
    line-height: 1.25;
}
.kpi-blue .kpi-icon {
    background: #e7f0ff;
    color: #1769ff;
}
.kpi-violet .kpi-icon {
    background: #f0e8ff;
    color: #7c3aed;
}
.kpi-red .kpi-icon {
    background: #ffe8e8;
    color: #e84545;
}
.kpi-orange .kpi-icon {
    background: #fff0df;
    color: #f28a18;
}
.kpi-teal .kpi-icon {
    background: #e1f8f5;
    color: #0ca7a0;
}
@media (max-width: 1100px) {
    .kpi-strip {
        grid-template-columns: repeat(3, 1fr);
    }
    .project-kpis {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .kpi-strip,
    .project-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
    .kpi-card {
        min-height: 112px;
        padding: 13px;
        display: block;
    }
    .kpi-icon {
        width: 36px;
        height: 36px;
        font-size: 18px;
        margin-bottom: 10px;
    }
    .kpi-copy strong {
        font-size: 23px;
    }
    .kpi-copy span {
        font-size: 11px;
    }
    .metric-scope {
        text-align: left;
    }
}
.metric-scope {
    font-size: 11px;
    color: #7f8da0;
    text-align: right;
}
.project-page-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.project-statistic-switch {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #60728d;
    font-size: 0.8rem;
    font-weight: 650;
}
.project-statistic-switch .form-switch {
    display: flex;
    align-items: center;
    min-height: 0;
}
.project-statistic-switch .form-check-input {
    margin-top: 0;
    cursor: pointer;
}
.project-statistic-switch .form-check-label {
    color: #1769ff;
    cursor: pointer;
}
@media (max-width: 600px) {
    .project-page-actions {
        align-items: flex-start;
    }
}
.developer-name {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #10213a;
}
.developer-avatar {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #e7f0ff;
    color: #1769ff;
    font-weight: 750;
}
.activity-periods {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}
.activity-period-card {
    background: #fff;
    border: 1px solid #e3e9f2;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 12px rgba(29, 55, 92, 0.045);
}
.activity-period-card h2 {
    font-size: 17px;
    margin: 0;
}
.activity-period-card > p {
    font-size: 11px;
    color: #7f8da0;
    margin: 5px 0 18px;
}
.activity-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.activity-stats span {
    display: flex;
    flex-direction: column;
    border-left: 3px solid #dce8fb;
    padding-left: 10px;
}
.activity-stats strong {
    font-size: 22px;
}
.activity-stats small {
    font-size: 10px;
    color: #718096;
}
.activity-trend {
    align-self: flex-start;
    margin-top: 8px;
    padding: 3px 7px;
    border-radius: 999px;
    background: #f0f3f8;
    color: #687991;
    font-size: 10px;
    font-style: normal;
    font-weight: 750;
    line-height: 1.2;
    white-space: nowrap;
}
.activity-trend.is-up {
    background: #e9f8ef;
    color: #21864b;
}
.activity-trend.is-down {
    background: #fff2e5;
    color: #b56718;
}
@media (max-width: 800px) {
    .activity-periods {
        grid-template-columns: 1fr;
    }
    .activity-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .activity-stats span,
    .activity-stats small {
        min-width: 0;
        overflow-wrap: anywhere;
    }
}
.sync-status {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    border: 1px solid #dce8df;
    border-radius: 8px;
    background: #f3fbf5;
    color: #477257;
    font-size: 11px;
    white-space: nowrap;
}
.sync-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22a559;
    box-shadow: 0 0 0 3px rgba(34, 165, 89, 0.12);
}
.sync-status-empty {
    border-color: #eadfca;
    background: #fff9ed;
    color: #8b7040;
}
.sync-status-empty .sync-dot {
    background: #e5a52f;
    box-shadow: 0 0 0 3px rgba(229, 165, 47, 0.13);
}
@media (min-width: 701px) and (max-width: 1050px) {
    .sync-label {
        display: none;
    }
    .sync-status {
        padding: 9px;
    }
}
@media (max-width: 700px) {
    .topbar-shell {
        height: auto;
        min-height: 0;
        padding: 0;
        display: block;
        position: static;
        border-bottom: 0;
    }
    .topbar {
        min-height: 58px;
        padding: 9px 15px;
        background: #fff;
        border-bottom: 1px solid var(--line);
        display: flex;
        align-items: center;
        gap: 14px;
        position: sticky;
        top: 0;
        z-index: 1020;
    }
    .topbar-heading {
        flex: 1 1 130px;
        order: initial;
    }
    .topbar h1 {
        font-size: 16px;
        line-height: 1.15;
    }
    .topbar-sync {
        order: initial;
        min-height: 34px;
        padding: 5px 15px;
        background: var(--bg);
        justify-content: center;
    }
    .sync-status {
        max-width: 100%;
        padding: 5px 8px;
        white-space: normal;
    }
    .sync-label {
        display: inline;
        line-height: 1.2;
    }
    .top-actions {
        order: initial;
        gap: 7px;
    }
    .page-toolbar .search-box {
        flex: 1 1 100%;
        max-width: none;
    }
    .page-toolbar .result-count {
        margin-left: 0;
    }
}
@media (max-width: 440px) {
    .topbar {
        column-gap: 8px;
    }
    .menu-toggle {
        padding: 4px;
    }
    .refresh-label,
    .header-profile-chevron {
        display: none;
    }
    .btn-refresh {
        width: 36px;
        height: 36px;
        padding: 0;
    }
    .refresh-icon {
        font-size: 17px;
    }
    .page-content {
        padding-right: 12px;
        padding-left: 12px;
    }
}
.client-detail-avatar { display:grid;place-items:center;width:72px;height:72px;border-radius:18px;background:linear-gradient(145deg,#1769ff,#12b8b5);color:#fff;font-size:2rem;font-weight:800;box-shadow:0 10px 25px rgba(23,105,255,.2); }
.client-contact-list { display:grid;gap:14px; }.client-contact { display:flex;align-items:flex-start;gap:12px;padding-bottom:14px;border-bottom:1px solid var(--line); }.client-contact:last-child { padding-bottom:0;border-bottom:0; }.client-contact-icon { display:grid;place-items:center;flex:0 0 38px;height:38px;border-radius:50%;background:var(--blue-soft);color:var(--blue);font-weight:750; }.client-contact strong,.client-contact a { display:block; }.client-contact a { margin-top:3px;color:#64748b;text-decoration:none;font-size:.83rem; }.client-contact a:hover { color:var(--blue); }
.form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}

.form-actions .action-save {
    margin-left: auto;
}

.contact-primary-toggle {
    display: grid;
    width: 38px;
    height: 38px;
    margin: 0;
    place-items: center;
    border-radius: 9px;
    cursor: pointer;
}

.contact-primary-toggle input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.contact-primary-toggle span[aria-hidden="true"] {
    color: #c8d1df;
    font-size: 1.45rem;
    line-height: 1;
    transition: color 0.15s ease, transform 0.15s ease;
}

.contact-primary-toggle input:checked + span {
    color: #f5b301;
    transform: scale(1.08);
}

.contact-primary-toggle:focus-within {
    outline: 2px solid rgba(23, 105, 255, 0.35);
    outline-offset: 2px;
}

.page-navigation-loader {
    position: fixed;
    z-index: 10000;
    top: 18px;
    right: 18px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 13px;
    border: 1px solid rgba(23, 105, 255, 0.18);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 8px 24px rgba(20, 48, 88, 0.14);
    color: #34506f;
    font-size: 0.82rem;
    font-weight: 700;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.16s ease, transform 0.16s ease;
}

.page-navigation-loader::before {
    position: absolute;
    top: 0;
    left: 4%;
    width: 32%;
    height: 3px;
    border-radius: 0 0 3px 3px;
    background: linear-gradient(90deg, #1769ff, #13bbb7);
    content: '';
    transform: translateX(0);
}

.page-navigation-loader.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.page-navigation-loader.is-visible::before {
    animation: page-navigation-progress 0.9s ease-in-out infinite alternate;
}

.page-navigation-spinner {
    width: 15px;
    height: 15px;
    border: 2px solid #cfe0ff;
    border-top-color: #1769ff;
    border-radius: 50%;
    animation: page-navigation-spin 0.7s linear infinite;
}

@keyframes page-navigation-spin {
    to { transform: rotate(360deg); }
}

@keyframes page-navigation-progress {
    from { transform: translateX(0); }
    to { transform: translateX(195%); }
}

@media (prefers-reduced-motion: reduce) {
    .page-navigation-loader,
    .page-navigation-spinner,
    .page-navigation-loader::before {
        animation: none !important;
        transition: none;
    }
}

.header-notification-menu {
    position: relative;
}

.header-notification-button {
    position: relative;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid #dce5f1;
    border-radius: 50%;
    background: #fff;
    color: #385270;
    cursor: pointer;
    list-style: none;
}

.header-notification-button::-webkit-details-marker {
    display: none;
}

.header-notification-button svg {
    width: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #e63546;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 16px;
    text-align: center;
}

.notification-dropdown {
    position: absolute;
    z-index: 200;
    top: calc(100% + 10px);
    right: 0;
    width: min(390px, calc(100vw - 28px));
    overflow: hidden;
    border: 1px solid #dce5f1;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(20, 48, 88, 0.18);
}

.notification-dropdown > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 17px;
    border-bottom: 1px solid #edf1f6;
}

.notification-dropdown > header a {
    color: #1769ff;
    font-size: 0.8rem;
    text-decoration: none;
}

.notification-list {
    max-height: 390px;
    overflow-y: auto;
}

.notification-item {
    display: grid;
    grid-template-columns: 9px 1fr;
    gap: 11px;
    padding: 14px 17px;
    border-bottom: 1px solid #edf1f6;
    color: #203750;
    text-decoration: none;
}

.notification-item:hover {
    background: #f7faff;
}

.notification-item strong,
.notification-item small,
.notification-item time {
    display: block;
}

.notification-item small {
    margin-top: 3px;
    color: #55708d;
}

.notification-item time {
    margin-top: 5px;
    color: #8b9bae;
    font-size: 0.7rem;
}

.notification-dot {
    width: 8px;
    height: 8px;
    margin-top: 6px;
    border-radius: 50%;
    background: #1769ff;
}

.notification-empty {
    margin: 0;
    padding: 25px 17px;
    color: #77899c;
    text-align: center;
}

.notification-clear {
    width: 100%;
    padding: 12px;
    border: 0;
    background: #fff;
    color: #d33649;
    font-size: 0.82rem;
    font-weight: 700;
}

.notification-clear:hover {
    background: #fff6f7;
}

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

.notification-topic {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 12px;
    padding: 15px;
    border: 1px solid #e1e8f1;
    border-radius: 12px;
    cursor: pointer;
}

.notification-topic:has(input:checked) {
    border-color: #8cb6ff;
    background: #f5f9ff;
}

.notification-topic small {
    display: block;
    margin-top: 4px;
    color: #73869b;
}

.pwa-install-heading {
    display: grid;
    grid-template-columns: 72px 1fr;
    align-items: center;
    gap: 14px;
}

.pwa-install-heading img {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    box-shadow: 0 8px 22px rgba(5, 21, 40, 0.2);
}

.pwa-ios-instructions {
    font-size: 0.82rem;
    line-height: 1.5;
}

.device-details-popover {
    --bs-popover-max-width: 390px;
}

.device-details-popover .popover-body {
    white-space: pre-line;
}

@media (display-mode: standalone) {
    body {
        padding-top: env(safe-area-inset-top);
        padding-right: env(safe-area-inset-right);
        padding-bottom: env(safe-area-inset-bottom);
        padding-left: env(safe-area-inset-left);
    }
}

@media (max-width: 640px) {
    .notification-dropdown {
        position: fixed;
        top: 70px;
        right: 14px;
        left: 14px;
        width: auto;
    }
}
