@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700&family=Nunito+Sans:wght@400;600;700&display=swap');

:root {
    --bg: #eef3fb;
    --panel: #ffffff;
    --panel-soft: #f6f9ff;
    --line: #d8e1f3;
    --text: #15213b;
    --muted: #5f6f8e;
    --deep-blue: #031a4a;
    --electric-blue: #1666ff;
    --accent-cyan: #22b8ff;
    --ok: #09975b;
    --warn: #d99500;
    --danger: #cf2b3f;
    --radius: 20px;
    --shadow: 0 18px 48px rgba(3, 26, 74, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Nunito Sans', sans-serif;
    background: radial-gradient(circle at 10% 0%, #f9fbff 0%, #eef3fb 40%, #e9f0fa 100%);
    color: var(--text);
}

h1,
h2,
h3,
h4,
.brand-name {
    font-family: 'Sora', sans-serif;
}

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

.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 290px 1fr;
}

.app-sidebar {
    background: linear-gradient(160deg, #03133a, #031d57 48%, #072969 100%);
    color: #d8e8ff;
    padding: 26px 20px;
    display: flex;
    flex-direction: column;
    gap: 26px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.brand-block {
    display: flex;
    align-items: center;
    gap: 14px;
    overflow: hidden;
}

.brand-logo {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px;
    min-height: 34px;
    max-width: 34px;
    max-height: 34px;
    flex: 0 0 34px;
    display: block;
    object-fit: contain;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    padding: 3px;
}

.brand-block > div {
    min-width: 0;
}

.logo-mark {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 34px;
}

.logo-mark span {
    display: block;
    width: 9px;
    background: linear-gradient(180deg, #4bc2ff, #1b6fff);
    border-radius: 2px;
}

.logo-mark span:nth-child(1) {
    height: 30px;
}

.logo-mark span:nth-child(2) {
    height: 22px;
}

.logo-mark span:nth-child(3) {
    height: 15px;
}

.brand-name {
    margin: 0;
    letter-spacing: 0.06em;
    font-size: 1.2rem;
    color: #f0f6ff;
}

.brand-sub {
    margin: 2px 0 0;
    letter-spacing: 0.14em;
    font-size: 0.73rem;
}

.menu-list {
    display: grid;
    gap: 8px;
}

.menu-item {
    padding: 11px 14px;
    border-radius: 12px;
    color: #cae0ff;
    font-weight: 600;
    font-size: 0.95rem;
    transition: 0.2s ease;
}

.menu-group {
    border-radius: 12px;
}

.menu-toggle-item {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    border: none;
    text-align: left;
}

.menu-caret {
    font-size: 1rem;
    font-weight: 800;
    transition: transform 0.2s ease;
}

.menu-group.is-open .menu-caret {
    transform: rotate(45deg);
}

.submenu-items {
    display: none;
    margin-top: 8px;
    margin-left: 8px;
    border-left: 1px solid rgba(179, 214, 255, 0.35);
    padding-left: 10px;
    gap: 6px;
}

.menu-group.is-open .submenu-items {
    display: grid;
}

.submenu-item {
    padding: 8px 10px;
    border-radius: 10px;
    color: #bdd8ff;
    font-size: 0.87rem;
    font-weight: 600;
}

.submenu-item:hover,
.submenu-item.is-active {
    color: #fff;
    background: rgba(25, 127, 255, 0.58);
}

.menu-item:hover,
.menu-item.is-active {
    color: #fff;
    background: linear-gradient(90deg, rgba(22, 102, 255, 0.95), rgba(34, 184, 255, 0.7));
}

.sidebar-footer {
    margin-top: auto;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    padding: 14px;
    font-size: 0.9rem;
}

.sidebar-footer p {
    margin: 0 0 10px;
}

.outline-link {
    display: inline-flex;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    font-size: 0.85rem;
}

.app-main {
    padding: 22px 26px;
}

.topbar {
    background: var(--panel);
    border-radius: 16px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.menu-toggle {
    display: none;
    background: var(--deep-blue);
    color: #fff;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 1.1rem;
}

.topbar-search {
    flex: 1;
    display: grid;
    gap: 5px;
    position: relative;
}

.topbar-search label {
    font-size: 0.78rem;
    color: var(--muted);
}

.topbar-search input {
    border: 1px solid var(--line);
    background: var(--panel-soft);
    border-radius: 12px;
    padding: 10px 12px;
    font-family: inherit;
}

.search-suggestions {
    position: absolute;
    margin-top: 58px;
    width: min(560px, calc(100vw - 140px));
    background: #fff;
    border: 1px solid #d8e4fb;
    border-radius: 12px;
    box-shadow: 0 18px 30px rgba(4, 20, 57, 0.12);
    z-index: 12;
    padding: 6px;
    display: grid;
    gap: 4px;
}

.search-suggestion-item {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 8px;
    align-items: center;
    border: none;
    border-radius: 10px;
    background: transparent;
    padding: 8px;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
}

.search-suggestion-item:hover,
.search-suggestion-item.is-active {
    background: #eef5ff;
}

.search-kind {
    font-size: 0.72rem;
    font-weight: 800;
    background: #dbe9ff;
    color: #0d429f;
    border-radius: 999px;
    padding: 3px 7px;
    text-transform: uppercase;
}

.search-main {
    font-size: 0.9rem;
    color: #163361;
    font-weight: 700;
}

.search-meta {
    font-size: 0.78rem;
    color: #607399;
    font-weight: 700;
}

.search-score {
    font-size: 0.72rem;
    font-weight: 800;
    color: #0e449f;
    background: #dce9ff;
    border-radius: 999px;
    padding: 3px 7px;
}

.search-debug-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 6px 6px;
    border-bottom: 1px solid #eaf1ff;
    margin-bottom: 2px;
}

.search-debug-bar span {
    font-size: 0.72rem;
    color: #61739a;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.search-debug-toggle {
    border: 1px solid #d3e1ff;
    background: #f2f7ff;
    color: #12479f;
    border-radius: 999px;
    padding: 3px 8px;
    font-size: 0.7rem;
    font-weight: 900;
    cursor: pointer;
}

.search-debug-toggle.active {
    background: #1b72ff;
    color: #fff;
    border-color: transparent;
}

.search-empty {
    margin: 0;
    padding: 10px;
    color: #607399;
    font-size: 0.85rem;
    font-weight: 700;
}

.search-hit {
    background: #ffe58a;
    color: #15315d;
    border-radius: 4px;
    padding: 0 2px;
}

.search-recent-wrap {
    margin-top: 2px;
    border-top: 1px solid #e7efff;
    padding-top: 7px;
}

.search-recent-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 4px 6px;
}

.search-recent-title {
    margin: 0;
    font-size: 0.73rem;
    font-weight: 800;
    color: #6c7d9f;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.search-clear-all {
    border: 1px solid #d6e4ff;
    background: #f3f8ff;
    color: #1a4a98;
    border-radius: 999px;
    padding: 3px 9px;
    font-size: 0.72rem;
    font-weight: 800;
    cursor: pointer;
}

.search-recent-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.search-recent-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #d4e3ff;
    background: #f4f8ff;
    color: #1a3f83;
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
}

.search-recent-item:hover {
    background: #e8f1ff;
}

.search-recent-remove {
    border: none;
    background: rgba(26, 63, 131, 0.14);
    color: #163a77;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 0.8rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

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

.ghost-btn,
.primary-btn {
    border: none;
    border-radius: 10px;
    padding: 10px 12px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
}

.ghost-btn {
    background: #edf3ff;
    color: var(--deep-blue);
}

.primary-btn {
    background: linear-gradient(100deg, #1666ff, #1a84ff);
    color: #fff;
}

.user-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f4f8ff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 8px 10px;
}

.user-badge span {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-content: center;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(145deg, #0c3da1, #1666ff);
}

.user-badge p {
    margin: 0;
    font-weight: 700;
    line-height: 1;
}

.user-badge small {
    color: var(--muted);
    font-size: 0.75rem;
}

.page-content {
    margin-top: 18px;
    display: grid;
    gap: 18px;
    animation: reveal 0.5s ease;
}

@keyframes reveal {
    from {
        transform: translateY(14px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.hero-banner {
    border-radius: 24px;
    color: #f4f8ff;
    overflow: hidden;
    background: linear-gradient(105deg, rgba(2, 14, 42, 0.96) 0%, rgba(4, 36, 100, 0.93) 52%, rgba(12, 71, 188, 0.78) 100%),
        url('../img/hakaris.png') center/cover;
    min-height: 200px;
    padding: 28px;
    position: relative;
    display: flex;
    justify-content: space-between;
    gap: 18px;
}

.hero-banner h1 {
    margin: 0;
    font-size: clamp(1.35rem, 2.3vw, 2rem);
    max-width: 590px;
}

.hero-banner p {
    margin: 10px 0 0;
    max-width: 560px;
    color: #d5e4ff;
}

.hero-pill {
    align-self: flex-end;
    background: #fff;
    color: var(--deep-blue);
    border-radius: 14px;
    padding: 12px 14px;
    min-width: 250px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.hero-pill strong {
    display: block;
    font-size: 0.95rem;
}

.hero-pill span {
    color: #1666ff;
    font-weight: 700;
}

.grid-4 {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(4, minmax(160px, 1fr));
}

.stat-card {
    background: var(--panel);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    border-radius: 16px;
    padding: 15px;
}

.stat-card p {
    margin: 0;
    color: var(--muted);
    font-weight: 700;
}

.stat-card h3 {
    margin: 8px 0 0;
    font-size: 1.7rem;
    color: var(--deep-blue);
}

.panel {
    background: var(--panel);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    border-radius: 18px;
    padding: 18px;
}

.panel h2 {
    margin-top: 0;
    margin-bottom: 14px;
    color: #0f3f9d;
    font-size: 1.2rem;
}

.quick-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-chip {
    border: 1px solid #bdd4ff;
    color: #0b3f9a;
    background: #f3f8ff;
    border-radius: 999px;
    padding: 8px 12px;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    font-family: inherit;
}

.filter-chip.is-active {
    background: linear-gradient(100deg, #0f5ff5, #2f8dff);
    border-color: transparent;
    color: #fff;
}

[data-filter-item].is-hidden {
    display: none;
}

.quick-tags span {
    border: 1px solid #bdd4ff;
    color: #0b3f9a;
    background: #f3f8ff;
    border-radius: 999px;
    padding: 8px 12px;
    font-weight: 700;
    font-size: 0.88rem;
}

.two-col {
    display: grid;
    gap: 16px;
    grid-template-columns: 1.2fr 0.8fr;
}

.table-view {
    width: 100%;
    border-collapse: collapse;
}

.table-view th,
.table-view td {
    padding: 10px;
    border-bottom: 1px solid #e4ecfb;
    text-align: left;
    font-size: 0.95rem;
}

.table-view th {
    color: var(--muted);
    font-size: 0.85rem;
}

.state {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 3px 9px;
    font-size: 0.78rem;
    font-weight: 700;
}

.state.ok {
    background: #e8f8f1;
    color: var(--ok);
}

.state.warn {
    background: #fff3d8;
    color: var(--warn);
}

.state.danger {
    background: #ffe6ea;
    color: var(--danger);
}

.list-card {
    display: grid;
    gap: 10px;
}

.list-item {
    background: #f7faff;
    border: 1px solid #dfebff;
    border-radius: 14px;
    padding: 11px;
}

.list-item strong {
    display: block;
}

.list-item small {
    color: var(--muted);
}

.kanban {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.kanban-col {
    background: #f7faff;
    border: 1px solid #d8e5ff;
    border-radius: 14px;
    padding: 12px;
}

.kanban-col h3 {
    margin: 0 0 10px;
    font-size: 1rem;
}

.task-item {
    background: #fff;
    border: 1px solid #dfebff;
    border-radius: 12px;
    padding: 10px;
    margin-top: 8px;
}

.task-item p {
    margin: 0;
    font-weight: 700;
}

.task-item small {
    color: var(--muted);
}

.login-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
}

.login-hero {
    background: linear-gradient(126deg, rgba(0, 14, 42, 0.98) 0%, rgba(2, 30, 92, 0.95) 55%, rgba(12, 67, 179, 0.88) 100%);
    color: #fff;
    padding: 56px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.login-hero h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3rem);
}

.login-hero p {
    max-width: 460px;
    color: #dde9ff;
    font-size: 1.1rem;
}

.login-hero-logo {
    width: clamp(150px, 20vw, 230px);
    max-width: 100%;
    height: auto;
    object-fit: contain;
    margin-bottom: 10px;
    border-radius: 10px;
    background: #fff;
    padding: 6px 10px;
}

.login-card-wrap {
    display: grid;
    place-content: center;
    padding: 24px;
    background: radial-gradient(circle at 90% 10%, #f0f7ff, #e7effb);
}

.login-card {
    width: min(430px, 92vw);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
    padding: 28px;
}

.login-card h2 {
    margin-top: 0;
    color: var(--deep-blue);
}

.login-card .field {
    display: grid;
    gap: 6px;
    margin-top: 14px;
}

.login-card label {
    color: var(--muted);
    font-weight: 700;
    font-size: 0.88rem;
}

.login-card input,
.login-card select {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 11px 12px;
    font-family: inherit;
    background: var(--panel-soft);
}

.login-card .action {
    width: 100%;
    margin-top: 16px;
    border: none;
    border-radius: 12px;
    padding: 12px;
    background: linear-gradient(95deg, #0f59f0, #1c8cff);
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.02em;
    cursor: pointer;
}

.info-row {
    margin-top: 14px;
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-size: 0.9rem;
}

.mobile-bottom-nav {
    display: none;
}

.mobile-context-actions {
    display: none;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(3, 16, 48, 0.6);
    z-index: 14;
}

.app-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.98);
    width: min(560px, 92vw);
    background: #fff;
    border: 1px solid #d4e2fb;
    border-radius: 18px;
    box-shadow: 0 25px 70px rgba(3, 19, 58, 0.28);
    z-index: 15;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.app-modal.open {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

.app-modal-head {
    padding: 14px 16px;
    border-bottom: 1px solid #e4ecfb;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.app-modal-head h3 {
    margin: 0;
    color: #113f9d;
}

.modal-close {
    border: none;
    background: #edf4ff;
    color: #113f9d;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 1.2rem;
    cursor: pointer;
}

.app-modal-body {
    padding: 16px;
    display: grid;
    gap: 12px;
}

.app-modal-body label {
    display: grid;
    gap: 6px;
    font-weight: 700;
    color: #455a81;
    font-size: 0.9rem;
}

.app-modal-body input,
.app-modal-body select {
    border: 1px solid #d5e3fb;
    border-radius: 10px;
    padding: 10px;
    background: #f7faff;
    font-family: inherit;
}

.app-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 4px;
}

.toast-root {
    position: fixed;
    right: 14px;
    bottom: 16px;
    z-index: 30;
    display: grid;
    gap: 8px;
}

.toast {
    background: #082863;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    padding: 10px 12px;
    min-width: 260px;
    max-width: 360px;
    box-shadow: 0 14px 35px rgba(3, 21, 62, 0.35);
    animation: toast-in 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast.toast-info {
    background: #0f3f9d;
}

.toast.toast-success {
    background: #055c3b;
}

.toast.toast-warning {
    background: #7a5200;
}

.toast.toast-error {
    background: #9c1f31;
}

.toast-domain-compta {
    border-color: rgba(144, 204, 255, 0.45);
}

.toast-domain-fiscal {
    border-color: rgba(143, 255, 199, 0.4);
}

.toast-domain-paie {
    border-color: rgba(255, 236, 154, 0.4);
}

.toast-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.15);
    display: inline-grid;
    place-content: center;
    flex-shrink: 0;
}

.toast-icon svg {
    width: 18px;
    height: 18px;
}

.toast-text {
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.35;
}

.toast-close {
    border: none;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1;
}

.toast.is-out {
    opacity: 0;
    transform: translateY(6px);
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1080px) {
    .app-shell {
        grid-template-columns: 1fr;
    }

    .app-sidebar {
        position: fixed;
        z-index: 9;
        left: -310px;
        top: 0;
        bottom: 0;
        width: 290px;
        transition: 0.25s ease;
    }

    .app-sidebar.open {
        left: 0;
    }

    .menu-toggle {
        display: inline-grid;
        place-content: center;
    }

    .topbar-actions .ghost-btn,
    .topbar-actions .primary-btn {
        display: none;
    }

    .grid-4 {
        grid-template-columns: repeat(2, minmax(150px, 1fr));
    }

    .two-col,
    .kanban {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .login-shell {
        grid-template-columns: 1fr;
    }

    .login-hero {
        min-height: 290px;
        padding: 28px;
    }

    .login-hero h1 {
        font-size: 1.8rem;
    }

    .login-hero-logo {
        width: clamp(120px, 28vw, 180px);
        padding: 5px 8px;
    }
}

@media (max-width: 680px) {
    .app-main {
        padding: 14px 12px 86px;
    }

    .topbar {
        gap: 10px;
        padding: 10px;
    }

    .topbar-search label {
        display: none;
    }

    .search-suggestions {
        width: 100%;
        margin-top: 46px;
    }

    .user-badge div {
        display: none;
    }

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

    .hero-banner {
        padding: 18px;
        min-height: 235px;
        flex-direction: column;
        justify-content: flex-start;
    }

    .mobile-bottom-nav {
        display: grid;
        position: fixed;
        left: 10px;
        right: 10px;
        bottom: 10px;
        grid-template-columns: repeat(5, 1fr);
        background: #021743;
        border-radius: 14px;
        padding: 8px;
        z-index: 8;
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

    .mobile-bottom-nav a {
        text-align: center;
        color: #cfe0ff;
        font-size: 0.8rem;
        padding: 6px;
        border-radius: 10px;
        font-weight: 700;
    }

    .mobile-bottom-nav a.active {
        background: rgba(22, 102, 255, 0.92);
        color: #fff;
    }

    .mobile-context-actions {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        margin-top: 10px;
        margin-bottom: 8px;
    }

    .quick-panel-toggle {
        display: inline-flex;
        width: 100%;
        justify-content: center;
        align-items: center;
        border: none;
        border-radius: 10px;
        padding: 10px;
        background: linear-gradient(95deg, #0f5ff5, #2d8aff);
        color: #fff;
        font-weight: 800;
        margin-bottom: 14px;
    }

    .quick-panel-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(2, 15, 44, 0.6);
        z-index: 19;
    }

    .quick-panel-sheet {
        position: fixed;
        left: 0;
        right: 0;
        bottom: -110%;
        background: #f8fbff;
        border-top-left-radius: 18px;
        border-top-right-radius: 18px;
        border: 1px solid #d6e4fb;
        border-bottom: 0;
        z-index: 20;
        padding: 14px 12px 94px;
        transition: bottom 0.24s ease;
        box-shadow: 0 -10px 30px rgba(3, 19, 58, 0.22);
    }

    .quick-panel-sheet.open {
        bottom: 0;
    }

    .quick-panel-head {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 10px;
    }

    .quick-panel-head h3 {
        margin: 0;
        color: #113f9d;
        font-size: 1rem;
    }

    .quick-panel-close {
        border: none;
        background: #e8f1ff;
        color: #113f9d;
        width: 32px;
        height: 32px;
        border-radius: 9px;
        font-size: 1.1rem;
    }

    .quick-panel-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .quick-panel-grid.compact {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .quick-sheet-btn {
        border: 1px solid #c4d9ff;
        border-radius: 10px;
        background: #fff;
        color: #0d3f9b;
        font-weight: 800;
        font-size: 0.78rem;
        text-align: center;
        padding: 9px;
        font-family: inherit;
        text-decoration: none;
    }

    .quick-sheet-btn.accent {
        background: #1465f6;
        color: #fff;
        border-color: transparent;
    }

    .quick-sheet-title {
        margin: 14px 0 8px;
        font-size: 0.82rem;
        color: #4a608b;
        font-weight: 800;
    }

    .mobile-action-btn,
    .mobile-action-link {
        border: 1px solid #c4d9ff;
        background: #f4f8ff;
        color: #0b3f9a;
        border-radius: 10px;
        padding: 10px;
        font-size: 0.8rem;
        font-weight: 800;
        text-align: center;
        font-family: inherit;
    }

    .mobile-action-btn.accent {
        background: #1d78ff;
        color: #fff;
        border-color: transparent;
    }

    .mobile-action-link {
        display: inline-grid;
        place-content: center;
        text-decoration: none;
    }

    .toast-root {
        left: 10px;
        right: 10px;
        bottom: 86px;
    }

    .toast {
        min-width: unset;
        max-width: unset;
    }

    .app-modal-actions {
        display: grid;
        grid-template-columns: 1fr;
    }
}

@media (min-width: 681px) {
    .quick-panel-toggle,
    .quick-panel-sheet,
    .quick-panel-backdrop {
        display: none;
    }
}
