:root {
    --bg: #0A0A0A;
    --sidebar: #0D0D0E;
    --surface: #121214;
    --surface-hover: #18181B;
    --border: #252529;

    --green: #00E5A0;
    --green-soft: rgba(0, 229, 160, 0.10);

    --white: #F7F7F8;
    --text: #E5E5E7;
    --muted: #85858D;

    --radius: 14px;
}


/* =========================================================
   RESET
   ========================================================= */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background: var(--bg);
    color: var(--text);
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}


/* =========================================================
   APP
   ========================================================= */

.kfold-app {
    min-height: 100vh;
    display: flex;
}


/* =========================================================
   SIDEBAR
   ========================================================= */

.sidebar {
    width: 260px;
    min-width: 260px;
    height: 100vh;

    position: fixed;
    left: 0;
    top: 0;

    display: flex;
    flex-direction: column;

    padding: 24px 16px;

    background: var(--sidebar);
    border-right: 1px solid var(--border);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 0 8px 28px;
}

.brand-mark {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: var(--green);
    color: #04100C;

    font-weight: 800;
    font-size: 18px;
}

.brand-name {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.brand-subtitle {
    margin-top: 2px;

    font-size: 11px;
    color: var(--muted);

    text-transform: uppercase;
    letter-spacing: 1.2px;
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
}

.nav-section {
    margin: 25px 10px 8px;

    color: #55555E;

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.3px;
}

.nav-item {
    height: 42px;

    display: flex;
    align-items: center;

    gap: 11px;

    margin-bottom: 3px;
    padding: 0 11px;

    border-radius: 9px;

    color: #96969E;

    font-size: 13px;
    font-weight: 500;

    transition: 0.15s ease;
}

.nav-item:hover {
    color: var(--white);
    background: var(--surface-hover);
}

.nav-item.active {
    color: var(--green);
    background: var(--green-soft);
}

.nav-icon {
    width: 20px;

    text-align: center;
    font-size: 16px;
}

.ai-badge {
    margin-left: auto;

    padding: 3px 6px;

    background: var(--green-soft);
    border: 1px solid rgba(0, 229, 160, 0.18);

    border-radius: 5px;

    color: var(--green);

    font-size: 8px;
    font-weight: 800;
}


/* =========================================================
   USER
   ========================================================= */

.sidebar-user {
    display: flex;
    align-items: center;

    gap: 10px;

    padding: 16px 8px 0;

    border-top: 1px solid var(--border);
}

.user-avatar {
    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    background: var(--surface-hover);

    border: 1px solid var(--border);
    border-radius: 50%;

    color: var(--green);

    font-size: 12px;
    font-weight: 700;
}

.user-info {
    min-width: 0;
    flex: 1;
}

.user-info strong,
.user-info span {
    display: block;
}

.user-info strong {
    font-size: 12px;
    color: var(--white);
}

.user-info span {
    margin-top: 3px;

    overflow: hidden;

    color: var(--muted);

    font-size: 10px;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.logout-button {
    border: 0;
    background: transparent;

    color: #686870;

    cursor: pointer;

    font-size: 18px;
}

.logout-button:hover {
    color: var(--white);
}


/* =========================================================
   CONTENT
   ========================================================= */

.main-content {
    width: calc(100% - 260px);
    min-height: 100vh;

    margin-left: 260px;
    padding: 46px 48px 70px;
}


/* =========================================================
   HEADER
   ========================================================= */

.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 30px;

    margin-bottom: 34px;
}

.page-eyebrow {
    margin: 0 0 8px;

    color: var(--green);

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 1.4px;
}

.page-header h1 {
    margin: 0;

    color: var(--white);

    font-size: 29px;
    line-height: 1.15;

    letter-spacing: -0.8px;
}

.page-header p:not(.page-eyebrow) {
    margin: 9px 0 0;

    color: var(--muted);

    font-size: 13px;
}

.header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.primary-button,
.secondary-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    min-height: 40px;

    border-radius: 9px;

    font-size: 12px;
    font-weight: 700;
}

.primary-button {
    padding: 0 16px;

    background: var(--green);
    color: #001C14;
}

.primary-button:hover {
    opacity: 0.9;
}

.secondary-button {
    padding: 0 14px;

    color: var(--green);

    background: var(--green-soft);

    border: 1px solid rgba(0, 229, 160, 0.15);
}

.secondary-button:hover {
    background: rgba(0, 229, 160, 0.14);
}

.ghost-button {
    padding: 0 14px;

    color: var(--muted);

    background: transparent;
    border: 1px solid var(--border);
}

.ghost-button:hover {
    color: var(--white);
    border-color: #34343A;
}


/* =========================================================
   DASHBOARD STATS
   ========================================================= */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 14px;

    margin-bottom: 14px;
}

.stat-card {
    min-height: 150px;

    padding: 20px;

    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.stat-top {
    display: flex;
    align-items: center;
    justify-content: space-between;

    color: #96969E;

    font-size: 12px;
}

.stat-icon {
    width: 28px;
    height: 28px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--green-soft);

    border-radius: 7px;

    color: var(--green);
}

.stat-number {
    margin-top: 20px;

    color: var(--white);

    font-size: 30px;
    font-weight: 700;

    letter-spacing: -1px;
}

.stat-description {
    margin-top: 4px;

    color: #66666E;

    font-size: 10px;
}


/* =========================================================
   DASHBOARD
   ========================================================= */

.dashboard-grid {
    display: grid;
    grid-template-columns: 1.65fr 1fr;

    gap: 14px;
}

.panel {
    min-height: 230px;

    padding: 22px;

    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.panel-large {
    grid-row: span 2;
    min-height: 474px;
}

.panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 20px;

    padding-bottom: 18px;

    border-bottom: 1px solid var(--border);
}

.panel-label {
    color: var(--green);

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 1.1px;
}

.panel-header h2 {
    margin: 6px 0 0;

    color: var(--white);

    font-size: 15px;
    font-weight: 650;
}

.panel-header > a {
    color: var(--muted);

    font-size: 11px;
}

.panel-header > a:hover {
    color: var(--green);
}


/* =========================================================
   EMPTY STATES
   ========================================================= */

.empty-state {
    min-height: 360px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 30px;

    text-align: center;
}

.empty-icon {
    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 15px;

    background: var(--green-soft);

    border: 1px solid rgba(0, 229, 160, 0.16);
    border-radius: 12px;

    color: var(--green);

    font-size: 18px;
}

.empty-state h3 {
    margin: 0;

    color: var(--white);

    font-size: 14px;
}

.empty-state p {
    max-width: 350px;

    margin: 9px 0 18px;

    color: var(--muted);

    font-size: 11px;
    line-height: 1.6;
}

.mini-empty {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 135px;

    color: #62626A;

    font-size: 11px;
}


/* =========================================================
   FLASH MESSAGES
   ========================================================= */

.flash-success {
    margin: -16px 0 24px;
    padding: 12px 14px;

    border: 1px solid rgba(0, 229, 160, 0.20);
    border-radius: 10px;

    background: rgba(0, 229, 160, 0.08);

    color: var(--green);

    font-size: 12px;
}


/* =========================================================
   FORMS
   ========================================================= */

.input {
    width: 100%;
    min-height: 42px;

    padding: 0 12px;

    color: var(--text);

    background: #0F0F11;

    border: 1px solid var(--border);
    border-radius: 9px;

    outline: none;
}

.input:hover {
    border-color: #34343A;
}

.input:focus {
    border-color: rgba(0, 229, 160, 0.55);

    box-shadow: 0 0 0 3px rgba(0, 229, 160, 0.06);
}

.input::placeholder {
    color: #65656D;
}

select.input {
    cursor: pointer;
}

.textarea {
    min-height: 100px;

    padding-top: 11px;
    padding-bottom: 11px;

    resize: vertical;
}

.field label {
    display: block;

    margin-bottom: 7px;

    color: #8F8F98;

    font-size: 11px;
    font-weight: 600;
}

.field-error {
    display: block;

    margin-top: 6px;

    color: #FF7D7D;

    font-size: 10px;
}

.form-panel {
    max-width: 1050px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 18px;
}

.field-full {
    grid-column: 1 / -1;
}

.form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 10px;

    margin-top: 24px;
    padding-top: 20px;

    border-top: 1px solid var(--border);
}


/* =========================================================
   FILTERS
   ========================================================= */

.filters {
    display: grid;
    grid-template-columns: minmax(260px, 1.6fr) 190px 190px auto;

    gap: 12px;
    align-items: center;

    margin: 26px 0 18px;
}

.filters .input {
    height: 44px;
    min-height: 44px;

    padding: 0 14px;

    background: #121214;

    border: 1px solid #27272C;
    border-radius: 10px;

    color: #F3F3F4;

    font-size: 12px;

    transition:
        border-color 0.15s ease,
        background 0.15s ease,
        box-shadow 0.15s ease;
}

.filters .input:hover {
    border-color: #34343A;
}

.filters .input:focus {
    border-color: rgba(0, 229, 160, 0.55);

    background: #151518;

    box-shadow: 0 0 0 3px rgba(0, 229, 160, 0.06);
}

.filters .secondary-button {
    height: 44px;

    padding: 0 18px;

    background: rgba(0, 229, 160, 0.10);

    border: 1px solid rgba(0, 229, 160, 0.25);
    border-radius: 10px;

    color: var(--green);

    font-size: 11px;
    font-weight: 700;

    cursor: pointer;
}

.filters .secondary-button:hover {
    background: rgba(0, 229, 160, 0.15);

    border-color: rgba(0, 229, 160, 0.40);
}


/* =========================================================
   TABLES
   ========================================================= */

.table-panel {
    padding: 0;

    overflow: hidden;

    background: #121214;

    border: 1px solid #26262B;
    border-radius: 14px;
}

.table-wrap {
    width: 100%;

    overflow-x: auto;
}

.kfold-table {
    width: 100%;

    border-collapse: separate;
    border-spacing: 0;

    font-size: 12px;
}

.kfold-table thead {
    background: #151517;
}

.kfold-table th {
    padding: 15px 18px;

    border-bottom: 1px solid #29292E;

    color: #696971;

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 1.1px;
    text-transform: uppercase;

    text-align: left;
}

.kfold-table td {
    padding: 17px 18px;

    border-bottom: 1px solid #222226;

    color: #A3A3AA;

    vertical-align: middle;
}

.kfold-table tbody tr {
    transition: background 0.15s ease;
}

.kfold-table tbody tr:hover {
    background: #161619;
}

.kfold-table tbody tr:last-child td {
    border-bottom: 0;
}

.kfold-table td strong {
    display: block;

    margin-bottom: 4px;

    color: #F5F5F6;

    font-size: 12px;
    font-weight: 650;
}

.kfold-table td small {
    display: block;

    color: #64646D;

    font-size: 10px;
}

.table-action {
    text-align: right !important;
}

.table-action a {
    display: inline-flex;
    align-items: center;

    gap: 5px;

    color: #8E8E96;

    font-size: 10px;
    font-weight: 600;

    transition: color 0.15s ease;
}

.table-action a:hover {
    color: var(--green);
}

.table-empty {
    padding: 70px 30px !important;

    color: #62626A !important;

    font-size: 11px !important;

    text-align: center !important;
}


/* =========================================================
   COMPANY EMPTY STATE
   ========================================================= */

.companies-empty {
    min-height: 260px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 10px;
}

.companies-empty-icon {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 4px;

    background: rgba(0, 229, 160, 0.08);

    border: 1px solid rgba(0, 229, 160, 0.15);
    border-radius: 11px;

    color: var(--green);

    font-size: 17px;
}

.companies-empty strong {
    color: #F5F5F6;

    font-size: 13px;
}

.companies-empty span {
    max-width: 340px;

    color: #686870;

    font-size: 10px;
    line-height: 1.6;

    text-align: center;
}

.companies-empty .secondary-button {
    margin-top: 8px;
}


/* =========================================================
   STATUS / SCORE
   ========================================================= */

.status-badge,
.score-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 999px;

    white-space: nowrap;
}

.status-badge {
    min-height: 25px;

    padding: 0 9px;

    color: #B3B3BB;

    background: #19191D;

    border: 1px solid #2A2A30;

    font-size: 9px;
    font-weight: 650;
}

.score-pill {
    min-width: 60px;
    min-height: 28px;

    padding: 0 10px;

    color: var(--green);

    background: rgba(0, 229, 160, 0.08);

    border: 1px solid rgba(0, 229, 160, 0.18);

    font-size: 10px;
    font-weight: 750;
}

.score-pill.large {
    min-width: 70px;

    padding: 8px 11px;

    font-size: 12px;
}


/* =========================================================
   LIST ROWS
   ========================================================= */

.list-row {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    padding: 15px 0;

    border-bottom: 1px solid var(--border);
}

.list-row:last-child {
    border-bottom: 0;
}

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

.list-row strong {
    color: var(--white);

    font-size: 12px;
}

.list-row div > span {
    margin-top: 4px;

    color: #73737C;

    font-size: 10px;
}

.list-row.compact {
    padding: 13px 0;
}


/* =========================================================
   DETAIL PAGES
   ========================================================= */

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.8fr);

    gap: 14px;
}

.top-gap {
    margin-top: 14px;
}

.detail-list {
    margin: 0;
}

.detail-list > div {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 13px 0;

    border-bottom: 1px solid var(--border);
}

.detail-list > div:last-child {
    border-bottom: 0;
}

.detail-list dt {
    color: #6F6F78;

    font-size: 11px;
}

.detail-list dd {
    margin: 0;

    color: var(--white);

    font-size: 11px;

    text-align: right;
}


/* =========================================================
   INTERACTIONS
   ========================================================= */

.interaction-form {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);

    gap: 10px;

    padding: 16px 0;

    border-bottom: 1px solid var(--border);
}

.interaction-form .textarea {
    grid-column: 1 / -1;
}

.interaction-form button {
    justify-self: start;
}

.timeline-item {
    position: relative;

    padding: 16px 0 16px 18px;

    border-bottom: 1px solid var(--border);
}

.timeline-item::before {
    content: "";

    position: absolute;
    left: 0;
    top: 22px;

    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: var(--green);
}

.timeline-item span {
    display: block;

    color: #61616A;

    font-size: 9px;
}

.timeline-item strong {
    display: block;

    margin-top: 4px;

    color: var(--white);

    font-size: 11px;
}

.timeline-item p {
    margin: 6px 0 0;

    color: #92929A;

    font-size: 11px;
    line-height: 1.6;
}

.notes-box {
    padding-top: 18px;

    white-space: pre-line;

    color: #9B9BA3;

    font-size: 11px;
    line-height: 1.7;
}


/* =========================================================
   PAGINATION
   ========================================================= */

.pagination-wrap {
    padding: 14px 18px;

    border-top: 1px solid #242428;

    background: #101012;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media screen and (max-width: 1100px) {

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

}


@media screen and (max-width: 1000px) {

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

    .filters .secondary-button {
        width: 100%;
    }

}


@media screen and (max-width: 950px) {

    .detail-grid {
        grid-template-columns: minmax(0, 1fr);
    }

}


@media screen and (max-width: 800px) {

    .sidebar {
        width: 72px;
        min-width: 72px;

        padding: 22px 10px;
    }

    .brand-name,
    .brand-subtitle,
    .nav-item span:not(.nav-icon),
    .nav-section,
    .user-info,
    .logout-button {
        display: none;
    }

    .sidebar-brand {
        justify-content: center;

        padding-left: 0;
        padding-right: 0;
    }

    .nav-item {
        justify-content: center;

        padding: 0;
    }

    .sidebar-user {
        justify-content: center;

        padding-left: 0;
        padding-right: 0;
    }

    .main-content {
        width: calc(100% - 72px);

        margin-left: 72px;
        padding: 30px 22px 50px;
    }

}


@media screen and (max-width: 650px) {

    .stats-grid,
    .dashboard-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .panel-large {
        grid-row: auto;
    }

    .page-header {
        flex-direction: column;
    }

    .header-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .filters {
        display: block;
    }

    .filters .input,
    .filters .secondary-button {
        width: 100%;

        margin-bottom: 10px;
    }

    .form-grid {
        display: block;
    }

    .field {
        margin-bottom: 16px;
    }

    .field-full {
        grid-column: auto;
    }

    .interaction-form {
        display: block;
    }

    .interaction-form .input,
    .interaction-form .textarea,
    .interaction-form button {
        width: 100%;

        margin-bottom: 10px;
    }

    .kfold-table th,
    .kfold-table td {
        padding: 14px 12px;
    }

}
.kfold-topbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.kfold-notification-link {
    gap: 8px;
}

.kfold-notification-link svg {
    width: 18px;
    height: 18px;
}

.notification-row {
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.notification-row + .notification-row {
    margin-top: 12px;
}

.notification-row-unread {
    border-inline-start: 3px solid var(--green);
}

.notification-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.notification-heading h2 {
    margin: 4px 0;
    font-size: 1rem;
    overflow-wrap: anywhere;
}

.notification-preview {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.notification-sender {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: .875rem;
    overflow-wrap: anywhere;
}

.notification-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.kfold-notification-link [hidden] {
    display: none;
}

.kfold-notification-dialog {
    position: fixed;
    inset: 70px 24px auto auto;
    width: min(560px, calc(100% - 32px));
    max-height: calc(100dvh - 86px);
    margin: 0;
    padding: 20px;
    overflow: auto;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 18px 60px rgb(0 0 0 / 45%);
}

.kfold-notification-dialog::backdrop {
    background: rgb(0 0 0 / 35%);
}

.kfold-notification-dialog h2 {
    margin: 0;
    font-size: 1.15rem;
}

.kfold-notification-dialog .notification-heading h2 {
    margin: 4px 0;
    font-size: 1rem;
}

.notification-dialog-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}

.notification-dialog-tools button:disabled {
    opacity: .55;
    cursor: default;
}

.notification-dialog-status {
    margin: 8px 0;
    color: var(--muted);
}

.notification-dialog-status:empty {
    display: none;
}

@media (max-width: 650px) {
    .kfold-notification-dialog {
        right: 16px;
        padding: 14px;
    }
}

.notification-dialog-eyebrow,
.notification-dialog-counter {
    display: none;
}

@media (min-width: 901px) {
    .kfold-notification-dialog {
        --activity-line: #303437;
        --activity-muted: #a9afb2;
        inset: 70px clamp(24px, 3vw, 48px) auto auto;
        width: min(600px, calc(100% - 48px));
        max-height: min(740px, calc(100dvh - 94px));
        padding: 0;
        border-color: var(--activity-line);
        border-radius: 22px;
        background: #141517;
        box-shadow: 0 24px 72px rgb(0 0 0 / 55%), 0 0 0 5px rgb(255 255 255 / 3%);
        scrollbar-color: #484e50 #141517;
    }

    .kfold-notification-dialog[open] {
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .kfold-notification-dialog::backdrop {
        background: rgb(0 0 0 / 25%);
    }

    .notification-dialog-header {
        display: grid;
        grid-template-columns: 1fr auto auto;
        align-items: end;
        gap: 18px;
        margin: 0;
        padding: 22px 24px 18px;
        border-bottom: 1px solid var(--activity-line);
        background: radial-gradient(ellipse at 12% 0%, #1a3933, transparent 73%), #191d1e;
    }

    .notification-dialog-eyebrow {
        display: flex;
        align-items: center;
        gap: 8px;
        margin: 0 0 5px;
        color: #96d8c6;
        font-size: .68rem;
        font-weight: 700;
        letter-spacing: .16em;
        text-transform: uppercase;
    }

    .notification-dialog-eyebrow span {
        width: 5px;
        height: 5px;
        border-radius: 50%;
        background: var(--green);
    }

    .kfold-notification-dialog .notification-dialog-header h2 {
        margin: 0;
        color: var(--white);
        font-size: 1.65rem;
        letter-spacing: -.045em;
        line-height: 1.15;
    }

    .notification-dialog-counter {
        display: flex;
        align-items: baseline;
        gap: 6px;
        margin: 0;
        color: #b6cdca;
        font-size: .76rem;
        white-space: nowrap;
    }

    .notification-dialog-counter strong {
        color: #a1f3d8;
        font-size: 1.5rem;
        font-variant-numeric: tabular-nums;
        line-height: 1;
    }

    .notification-dialog-close {
        align-self: start;
    }

    .kfold-notification-dialog .notification-dialog-tools {
        align-items: center;
        gap: 4px 10px;
        margin: 0;
        padding: 9px 24px;
        border-bottom: 1px solid var(--activity-line);
    }

    .kfold-notification-dialog .notification-dialog-tools > a {
        margin-inline-start: auto;
        color: #a1f3d8;
    }

    .kfold-notification-dialog :is(.notification-dialog-tools, .notification-actions, .notification-dialog-close) :is(a, button) {
        min-height: 34px;
        padding: 5px 8px;
        border-color: transparent;
        border-radius: 7px;
        background: transparent;
        font-size: .76rem;
    }

    .kfold-notification-dialog :is(.notification-dialog-tools, .notification-actions, .notification-dialog-close) :is(a, button):not(:disabled):hover {
        background: rgb(255 255 255 / 8%);
    }

    .kfold-notification-dialog :focus-visible {
        outline: 2px solid var(--green);
        outline-offset: 2px;
    }

    .kfold-notification-dialog [data-notification-list] {
        min-height: 0;
        overflow: auto;
        padding: 10px 24px 16px;
        overscroll-behavior: contain;
    }

    .kfold-notification-dialog .notification-dialog-status {
        margin: 10px 24px 0;
        color: var(--activity-muted);
    }

    .kfold-notification-dialog .notification-row {
        --notice-color: #83b9ff;
        position: relative;
        margin: 0;
        padding: 14px 0 13px 24px;
        border: 0;
        border-bottom: 1px solid var(--activity-line);
        border-radius: 0;
    }

    .kfold-notification-dialog .notification-row:last-child {
        border-bottom: 0;
    }

    .kfold-notification-dialog .notification-row::before {
        position: absolute;
        inset: 20px auto -20px 4px;
        border-inline-start: 1px solid var(--activity-line);
        content: '';
    }

    .kfold-notification-dialog .notification-row:last-child::before {
        content: none;
    }

    .kfold-notification-dialog .notification-row::after {
        position: absolute;
        inset: 19px auto auto 0;
        width: 9px;
        height: 9px;
        border: 2px solid var(--notice-color);
        border-radius: 50%;
        background: #141517;
        box-shadow: 0 0 0 4px #141517;
        content: '';
    }

    .kfold-notification-dialog .notification-row-unread::after {
        background: var(--notice-color);
    }

    .kfold-notification-dialog [data-notice-kind="email"] { --notice-color: #6be5bd; }
    .kfold-notification-dialog [data-notice-kind="opportunity"] { --notice-color: #d1aaff; }
    .kfold-notification-dialog [data-notice-kind="project"] { --notice-color: #f6a6c8; }
    .kfold-notification-dialog [data-notice-kind="follow_up"] { --notice-color: #ffc785; }
    .kfold-notification-dialog [data-notice-kind="renewal"] { --notice-color: #f4d989; }

    .kfold-notification-dialog .notification-row .panel-label {
        margin: 0 0 4px;
        color: var(--notice-color);
        font-size: .67rem;
    }

    .kfold-notification-dialog .notification-row .status-badge {
        flex: 0 0 auto;
        color: var(--activity-muted);
        font-size: .65rem;
    }

    .kfold-notification-dialog .notification-row-unread .status-badge {
        color: #a1f3d8;
        background: #1b342e;
        border-color: #315248;
    }

    .kfold-notification-dialog .notification-actions {
        gap: 2px 8px;
        margin: 5px 0 0 -8px;
    }

    .kfold-notification-dialog .notification-actions button[value="open"] {
        color: #a1f3d8;
    }

    .kfold-notification-dialog .notification-row details {
        color: var(--activity-muted);
        font-size: .84rem;
    }

    .kfold-notification-dialog .notification-empty {
        padding: 18px;
        border: 1px dashed var(--activity-line);
        border-radius: 12px;
        color: var(--activity-muted);
        text-align: center;
    }
}

@media (min-width: 901px) and (prefers-reduced-motion: no-preference) {
    .kfold-notification-dialog[open] {
        animation: kfold-activity-enter .18s ease-out;
    }

    @keyframes kfold-activity-enter {
        from { opacity: .65; transform: translateY(-6px); }
        to { opacity: 1; transform: translateY(0); }
    }
}

.kfold-today { margin-bottom: 24px; scroll-margin-top: 80px; }
.kfold-today .panel-header p { margin: 4px 0 0; }
.kfold-today-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.kfold-today-group { min-width: 0; }
.kfold-today-group h3 { margin: 0 0 8px; font-size: 1rem; }
.kfold-today-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 12px 0; border-top: 1px solid rgba(128, 128, 128, .25); }
.kfold-today-row > a { min-width: 0; flex: 1 1 150px; color: inherit; overflow-wrap: anywhere; }
.kfold-today-row > a span { display: block; font-size: .82rem; }
.kfold-today-row form { display: flex; gap: 6px; flex-wrap: wrap; }
.kfold-today-row .secondary-button { min-height: 36px; padding: 6px 10px; }
#interactions { scroll-margin-top: 80px; }
@media (max-width: 850px) { .kfold-today-grid { grid-template-columns: 1fr; } }

.editorial-controls { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; margin-bottom: 18px; }
.editorial-controls label, .editorial-form label { display: grid; gap: 5px; min-width: 0; }
.editorial-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.editorial-weekday { text-align: center; padding: 6px 0; font-size: .8rem; }
.editorial-day { min-width: 0; min-height: 82px; padding: 7px; border: 1px solid rgba(128, 128, 128, .28); border-radius: 8px; }
.editorial-day > time { font-size: .8rem; }
.editorial-entry { margin-top: 6px; padding: 6px; border-inline-start: 3px solid #00d6a3; background: rgba(128, 128, 128, .1); border-radius: 4px; overflow-wrap: anywhere; }
.editorial-entry.editorial-esta-daqui { border-inline-start-color: #6daeff; }
.editorial-entry summary { cursor: pointer; }
.editorial-entry summary strong, .editorial-entry summary small { display: block; }
.editorial-entry summary strong { font-size: .85rem; }
.editorial-form { display: grid; gap: 10px; max-width: 540px; margin-top: 12px; }
.editorial-form button { justify-self: start; }
.editorial-entry .editorial-form .input { width: 100%; min-width: 0; }
.editorial-empty { grid-column: 1 / -1; }
@media (max-width: 1050px) {
    .editorial-grid { grid-template-columns: 1fr; }
    .editorial-weekday, .editorial-blank, .editorial-day-empty { display: none; }
    .editorial-day { min-height: 0; }
}

.kfold-sidebar-group { margin-bottom: 8px; }
.kfold-sidebar-group summary { cursor: pointer; padding: 10px 12px; font-weight: 700; }
.kfold-sidebar-group .nav-item { margin-inline-start: 10px; }
.kfold-email-back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-bottom: 10px; color: inherit; }
.kfold-email-back span { font-size: 1.25rem; }
.search-source { padding: 14px 0; }
.search-source + .search-source { border-top: 1px solid var(--border); }
.search-source h3 { margin: 0 0 8px; font-size: 1.05rem; }
.search-metrics { display: grid; grid-template-columns: repeat(auto-fit,minmax(90px,1fr)); gap: 12px; }
.search-metrics dd { margin: 4px 0 0; font-size: 1.35rem; font-weight: 700; }
#bing { scroll-margin-top: 90px; }
@media(max-width: 900px){.kfold-mobile-menu{max-height:60vh;overflow-y:auto}}

.kfold-workspace-bar{align-items:center;justify-content:space-between;gap:12px}
.kfold-workspace-shortcuts,.kfold-workspace-actions{display:flex;align-items:center;gap:8px;min-width:0}
.kfold-workspace-shortcuts{flex-wrap:wrap}
.kfold-workspace-shortcuts a,.kfold-account-menu summary{display:flex;align-items:center;gap:8px;min-height:40px;padding:0 12px;border-radius:9px;color:var(--white);font-size:.875rem}
.kfold-workspace-shortcuts a:hover,.kfold-account-menu summary:hover,.kfold-account-options :is(a,button):hover{background:var(--surface-hover)}
.kfold-workspace-shortcuts a[aria-current=page],.kfold-account-options a[aria-current=page]{background:var(--green-soft);color:var(--green)}
.kfold-account-menu{position:relative}
.kfold-account-menu summary{cursor:pointer;list-style:none;border:1px solid var(--border)}
.kfold-account-menu summary::-webkit-details-marker{display:none}
.kfold-account-menu summary::after{content:"";width:6px;height:6px;border:solid currentColor;border-width:0 1px 1px 0;transform:rotate(45deg);margin:0 2px 3px 4px}
.kfold-account-menu[open] summary::after{transform:rotate(225deg);margin-bottom:-2px}
.kfold-account-initial{display:grid;place-items:center;width:25px;height:25px;border-radius:50%;background:var(--green-soft);color:var(--green);text-transform:uppercase;font-weight:700}
.kfold-account-name{max-width:130px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.kfold-account-options{position:absolute;z-index:12;inset:calc(100% + 8px) 0 auto auto;width:max-content;min-width:160px;padding:6px;border:1px solid var(--border);border-radius:12px;background:var(--sidebar);box-shadow:0 12px 30px #0005}
.kfold-account-options :is(a,button){display:block;width:100%;padding:10px;border:0;border-radius:7px;background:transparent;color:var(--white);font:inherit;text-align:start;cursor:pointer}
.kfold-sidebar-group summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:8px;color:var(--white);font-size:.875rem}
.kfold-sidebar-group summary::-webkit-details-marker{display:none}
.kfold-sidebar-group summary::after{content:"";width:7px;height:7px;border:solid currentColor;border-width:0 1px 1px 0;transform:rotate(45deg);margin-inline-end:3px}
.kfold-sidebar-group[open] summary::after{transform:rotate(225deg)}
.kfold-sidebar-stats{margin:10px 0;border-top:1px solid var(--border)}
@media(max-width: 1050px){.kfold-account-name{display:none}}
@media(max-width: 760px){.kfold-workspace-shortcuts,.kfold-account-menu{display:none}}

.stat-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}
.stat-card-link:hover, .stat-card-link:focus-visible {
    border-color: var(--green);
    color: inherit;
    text-decoration: none;
}
.stat-card-link:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 2px;
}
#dashboard-packs, #client-hour-packs {
    scroll-margin-top: 6rem;
}
