:root {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: #0f172a;
    color: #0f172a;
    --topbar-height: 64px;
    --sidebar-width: 290px;
}

body {
    margin: 0;
    padding: 0;
    background: radial-gradient(circle at 20% 20%, rgba(59,130,246,0.08), transparent 35%),
        radial-gradient(circle at 80% 0%, rgba(16,185,129,0.08), transparent 32%),
        #f8fafc;
}

.app-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

header.topbar {
    background: #111827;
    color: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    position: sticky;
    top: 0;
    z-index: 40;
    min-height: var(--topbar-height);
    border-bottom: 1px solid #1f2937;
}

.brand {
    font-weight: 800;
    letter-spacing: .5px;
}

.brand-logo {
    display: flex;
    align-items: center;
    min-height: 30px;
}

.brand-fallback {
    display: none;
}

.cobalt-logo,
.cobalt-icon {
    display: inline-flex;
    align-items: center;
}

.cobalt-logo svg {
    height: 30px;
    width: auto;
    max-width: 210px;
}

.cobalt-icon svg {
    height: 34px;
    width: 34px;
    display: block;
    overflow: visible;
}

.logo-white svg {
    filter: brightness(0) invert(1);
}

.cobalt-logo:empty + .brand-fallback,
.cobalt-icon:empty {
    display: inline-flex;
}

.brand-fallback {
    font-weight: 800;
    letter-spacing: .08em;
    color: #e5e7eb;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-wrap {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-subtitle {
    font-size: 12px;
    color: #9ca3af;
}

.session-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.layout {
    display: flex;
    min-height: calc(100vh - var(--topbar-height));
    position: relative;
}

.sidebar {
    width: var(--sidebar-width);
    box-sizing: border-box;
    background: #111827;
    color: #e5e7eb;
    padding: 26px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: fixed;
    top: var(--topbar-height);
    left: 0;
    height: calc(100vh - var(--topbar-height));
    overflow-y: auto;
    z-index: 30;
    border-right: 1px solid #1f2937;
    transform: translateX(-100%);
    transition: transform 220ms ease;
}

body.sidebar-open .sidebar {
    transform: translateX(0);
}

.sidebar-header h1 {
    margin: 4px 0;
    font-size: 20px;
}

.sidebar-brand {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cobalt-icon {
    line-height: 0;
    margin-bottom: 4px;
}

.sidebar .eyebrow {
    margin-top: 2px;
}

.sidebar .muted { color: #cbd5e1; }

.nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-footer {
    margin-top: auto;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 10px;
}

.main-content {
    padding: 24px;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto 32px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    transition: margin-left 220ms ease;
}

body.sidebar-open .main-content {
    margin-left: var(--sidebar-width);
}

.page { display: none; gap: 16px; }
.page.active { display: flex; flex-direction: column; }

.page-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.page-actions { display: flex; gap: 8px; align-items: center; }
.hidden { display: none !important; }

.mode-switch {
    position: relative;
    display: inline-flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0;
    width: 240px;
    height: 46px;
    padding: 0;
    border: 1px solid #1f2937;
    border-radius: 999px;
    background: #111827;
    overflow: hidden;
    cursor: pointer;
}

.switch-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    border-radius: 999px;
    background: #2563eb;
    transition: transform 0.25s ease;
    z-index: 1;
}

.mode-switch[data-active="invoices"] .switch-slider {
    transform: translateX(100%);
}

.mode-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 50%;
    min-width: 0;
    white-space: nowrap;
    border-radius: 999px;
    padding: 0.45rem 0.75rem;
    border: 0;
    font-weight: 700;
    background: transparent !important;
    color: #aeb8c8;
    position: relative;
    z-index: 2;
    transition: color 0.25s ease;
    height: 100%;
}

#password-match-indicator.ok {
    color: #047857;
    font-weight: 600;
}

#password-match-indicator.bad {
    color: #b91c1c;
    font-weight: 600;
}

#account-settings-btn {
    min-width: 42px;
    padding: 8px 10px;
}

.drop-area-hint {
    margin-top: 10px;
    padding: 12px;
    border-radius: 10px;
    border: 1px dashed #2563eb;
    background: rgba(37, 99, 235, 0.08);
    color: #1e3a8a;
    text-align: center;
    font-weight: 600;
}

.upload-activity {
    margin-top: 10px;
    padding: 12px;
    border: 1px solid #dbeafe;
    background: #f8fbff;
    border-radius: 10px;
}

.upload-activity-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
}

.upload-activity-header h4 {
    margin: 0;
    font-size: 14px;
}

.upload-activity-header .muted {
    margin: 0;
    font-size: 12px;
}

.upload-activity-list {
    margin-top: 10px;
    display: grid;
    gap: 8px;
}

.upload-task {
    border: 1px solid #dbeafe;
    background: #ffffff;
    border-radius: 10px;
    padding: 8px 10px;
}

.upload-task-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.upload-task-name {
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
    word-break: break-word;
}

.upload-task-progress {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: #e5e7eb;
    overflow: hidden;
}

.upload-task-progress > span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    width: 0;
    transition: width 140ms ease;
}

.upload-task-meta {
    margin-top: 6px;
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 12px;
    color: #64748b;
}

.upload-task.done {
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.upload-task.error {
    border-color: #fecaca;
    background: #fef2f2;
}

.download-activity-floating {
    position: fixed;
    right: 24px;
    bottom: 94px;
    width: min(420px, calc(100vw - 32px));
    padding: 10px;
    border: 1px solid #dbeafe;
    background: #f8fbff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
    z-index: 1999;
}

.download-activity-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
}

.download-activity-header h4 {
    margin: 0;
    font-size: 14px;
}

.download-activity-list {
    margin-top: 8px;
    display: grid;
    gap: 8px;
}

.download-task {
    border: 1px solid #dbeafe;
    background: #ffffff;
    border-radius: 10px;
    padding: 8px 10px;
}

.download-task.done {
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.download-task.error {
    border-color: #fecaca;
    background: #fef2f2;
}

.mode-btn.active {
    color: #fff;
}

.eyebrow { text-transform: uppercase; letter-spacing: 1px; font-size: 12px; color: #64748b; margin: 0; }

.card {
    background: white;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
    transition: transform 200ms ease, box-shadow 200ms ease;
}

.card:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 44px rgba(15, 23, 42, 0.1);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.grid.inline {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    align-items: end;
}

label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
}

input, select, textarea {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #dcdcdc;
    font-size: 14px;
}

textarea {
    resize: vertical;
}

button {
    padding: 10px 14px;
    border-radius: 8px;
    border: none;
    background: #0d6efd;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease, background-color 160ms ease;
}

button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

button:active {
    transform: translateY(0);
    box-shadow: 0 3px 8px rgba(15, 23, 42, 0.15);
}

button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

button.secondary {
    background: #eef2ff;
    color: #1c1c1e;
    border: 1px solid #dcdcdc;
}

button.icon-button {
    background: transparent;
    color: #e5e7eb;
    border: 1px solid #374151;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-size: 18px;
}

button.nav-link {
    background: transparent;
    color: #e5e7eb;
    border: 1px solid rgba(255,255,255,0.08);
    padding: 12px 14px;
    border-radius: 12px;
    text-align: left;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

button.nav-link:hover { background: rgba(255,255,255,0.06); transform: translateX(2px); }
button.nav-link.active { background: linear-gradient(135deg, #2563eb, #22c55e); border-color: transparent; color: white; }
button.nav-link.hidden { display: none; }

button.nav-link i {
    width: 18px;
}

.sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 160ms ease;
    z-index: 10;
}

button.ghost {
    background: transparent;
    color: #1c1c1e;
    border: 1px dashed #cdd1d6;
}

.pill-switch {
    display: inline-flex;
    background: #eef2ff;
    border-radius: 12px;
    padding: 4px;
    gap: 6px;
}

.pill {
    background: transparent;
    color: #1c1c1e;
    border: none;
    padding: 8px 12px;
}

.pill.active {
    background: white;
    border: 1px solid #dcdcdc;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.actions {
    display: flex;
    gap: 8px;
}

.actions.full-row {
    grid-column: 1 / -1;
}

#stats-form .actions {
    grid-column: 1 / -1;
    flex-wrap: wrap;
    align-items: center;
}

#stats-form .actions button {
    white-space: normal;
}

.page[data-section="stats"] .section-header {
    flex-wrap: wrap;
}

.page[data-section="stats"] .section-header .actions {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.account-autofill-settings {
    grid-column: 1 / -1;
    padding: 12px;
    border: 1px solid #dbeafe;
    border-radius: 12px;
    background: #f8fbff;
}

.account-autofill-settings .checkbox-field {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.account-autofill-settings .checkbox-field input {
    width: auto;
}

.account-autofill-settings p {
    margin: 6px 0 0;
}


.account-processing-panel {
    margin-top: 18px;
    padding: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #ffffff;
}

.account-processing-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 10px;
}

.account-processing-header h4 {
    margin: 0 0 4px;
}

.account-processing-list {
    display: grid;
    gap: 10px;
}

.account-processing-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 12px;
    border: 1px solid #dbeafe;
    border-radius: 12px;
    background: #f8fbff;
}

.account-processing-item p {
    margin: 4px 0 0;
}

.account-processing-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    white-space: nowrap;
    font-size: 13px;
}

.processing-status {
    padding: 4px 8px;
    border-radius: 999px;
    background: #e0f2fe;
    color: #075985;
    font-weight: 700;
}

.processing-status.completado {
    background: #dcfce7;
    color: #166534;
}

.processing-status.error,
.processing-status.timeout {
    background: #fee2e2;
    color: #991b1b;
}

.processing-status.en-cola {
    background: #fef3c7;
    color: #92400e;
}

.account-processing-error {
    color: #991b1b;
    font-weight: 600;
}

.badge {
    background: rgba(17, 24, 39, 0.24);
    color: #e5e7eb;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 14px;
    border: 1px solid #374151;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.table {
    width: 100%;
    overflow-x: auto;
}

.table table {
    width: 100%;
    border-collapse: collapse;
}

.table th, .table td {
    border-bottom: 1px solid #f1f1f1;
    padding: 8px;
    font-size: 14px;
}

.table th {
    text-align: left;
    color: #6b7280;
    font-weight: 600;
}

.stats-table table {
    min-width: 720px;
}

.stats-table th {
    background: #f8fafc;
    position: sticky;
    top: 0;
    z-index: 1;
}

.stats-table tr:nth-child(even) {
    background: #fafafa;
}

.stats-table tr:hover {
    background: #f1f5f9;
}

.stats-table td {
    vertical-align: top;
}

.stats-table .status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.status-pill {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    background: #eef2ff;
    color: #1e3a8a;
}

.muted { color: #6b7280; margin-top: 8px; }
.menu-title {
    font-size: .74rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #9ca3af;
    margin: 0;
}

.edge-hover {
    position: fixed;
    left: 0;
    top: var(--topbar-height);
    width: 12px;
    height: calc(100vh - var(--topbar-height));
    z-index: 35;
}

.alert { color: #b91c1c; font-weight: 600; }

#admin-panel { display: none; }

body.centered {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 15% 20%, rgba(37, 99, 235, 0.15), transparent 40%),
        radial-gradient(circle at 85% 0%, rgba(16, 185, 129, 0.12), transparent 36%),
        linear-gradient(180deg, #f6f8ff 0%, #e2e8f0 100%);
}

.auth-shell {
    width: min(520px, 92vw);
}

.auth-card {
    border: 1px solid #e2e8f0;
    padding: 26px 24px;
}

.auth-brand {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 34px;
    margin-bottom: 6px;
}

.auth-brand .cobalt-logo svg {
    height: 34px;
    width: auto;
}

.auth-brand .brand-fallback {
    color: #0f172a;
    letter-spacing: 0.07em;
}

.auth-copy {
    margin: 2px 0 14px;
}

.auth-shell h1 {
    margin: 4px 0 0;
    font-size: 1.65rem;
}

.auth-shell #auth-form {
    margin-top: 8px;
}

.auth-shell .actions.full-row {
    margin-top: 4px;
}

.overlay { 
    position: fixed;
    inset: 0;
    background: rgba(12, 12, 20, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.overlay.hidden { display: none; }

.calendar-header {
    flex-wrap: wrap;
}

.calendar-board .calendar-layout {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.calendar-sidebar {
    flex: 1 1 340px;
    max-width: 420px;
    border-right: 1px solid #f1f1f1;
    padding-right: 16px;
}

.calendar-main {
    flex: 2 1 420px;
    position: relative;
    min-height: 500px;
}

@media (max-width: 1080px) {
    body.sidebar-open .main-content { margin-left: 0; }
    body.sidebar-open .sidebar-backdrop { opacity: 1; pointer-events: auto; }
    .sidebar { box-shadow: 10px 0 30px rgba(0,0,0,0.28); }
}

@media (max-width: 760px) {
    .brand-subtitle,
    #auth-status {
        display: none;
    }
}

@media (max-width: 900px) {
    .calendar-sidebar {
        border-right: none;
        border-bottom: 1px solid #f1f1f1;
        padding-right: 0;
        padding-bottom: 16px;
    }
}

.draggable-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
    max-height: 720px;
    min-height: 360px;
    padding: 16px;
    border: 1px dashed #d1d5db;
    border-radius: 12px;
    background: #f9fafb;
    overflow-y: auto;
}

.draggable-list.drop-ready {
    outline: 2px dashed #0d6efd;
    outline-offset: -6px;
    background: rgba(13, 110, 253, 0.08);
    border-radius: 12px;
}

.draggable-list.is-empty {
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #6b7280;
}

.preview-panel {
    margin-top: 16px;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.preview-panel .preview-frame {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #f9fafb;
    padding: 8px;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.preview-panel .preview-frame.zoomable {
    cursor: zoom-in;
    max-height: 520px;
}

.preview-panel .preview-frame.zoomable.zoomed {
    cursor: zoom-out;
    overflow: auto;
    align-items: flex-start;
    justify-content: flex-start;
}

.preview-panel .preview-frame.zoomable .zoom-target,
.preview-viewport.zoomable .zoom-target {
    transform: scale(var(--zoom-scale, 1));
    transform-origin: top left;
    transition: transform 80ms ease-out;
}

.preview-panel .preview-frame img,
.preview-panel .preview-frame object {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
    object-fit: contain;
}

.preview-panel .preview-frame.text-frame {
    align-items: flex-start;
    overflow: auto;
    background: #0b172a;
    color: #e5e7eb;
}

.preview-panel .preview-frame.zoomable img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 480px;
    transition: none;
}

.preview-panel .preview-frame.zoomable.zoomed img {
    max-width: none;
    max-height: none;
    width: auto;
    height: auto;
}

.preview-panel pre {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: "Fira Code", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

.draggable-file.active {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
    background: rgba(13, 110, 253, 0.06);
}

.draggable-file.selected {
    border-color: #0d6efd;
    background: #eef2ff;
    box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.18);
}

.drag-hint {
    margin-top: 4px;
}

.compact {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.mode-switch.compact {
    flex-direction: row;
    gap: 0;
}

.draggable-file {
    border: 1px dashed #d1d5db;
    border-radius: 10px;
    padding: 12px;
    background: #fdfdfd;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    cursor: grab;
    transition: border-color 120ms ease, background 120ms ease;
}

.draggable-file > div:first-child {
    min-width: 0;
    flex: 1 1 auto;
}

.draggable-file .file-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex: 0 0 auto;
}

.draggable-file .delete-unassigned {
    opacity: 1;
    pointer-events: auto;
}

.button-small {
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 6px;
}

.draggable-file:hover {
    border-color: #0d6efd;
}

.draggable-file.dragging {
    opacity: 0.7;
    cursor: grabbing;
}

.file-name {
    margin: 0;
    font-weight: 600;
    word-break: break-word;
}

.file-meta {
    margin: 2px 0 0;
    font-size: 13px;
    color: #6b7280;
}

.file-id {
    font-weight: 700;
    color: #0d6efd;
}

.stacked-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#expense-list-panel .list-meta,
#invoice-list-panel .list-meta {
    margin-top: 4px;
}

.list-pagination {
    display: flex;
    justify-content: center;
    margin-top: 12px;
}

.expense-card,
.invoice-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px 14px;
    background: #f8fafc;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.expense-card.clickable,
.invoice-card.clickable {
    cursor: pointer;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.expense-card.clickable:hover,
.invoice-card.clickable:hover {
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
    transform: translateY(-1px);
}

.expense-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.expense-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}

.expense-meta {
    margin: 4px 0 0;
    color: #6b7280;
    font-size: 14px;
}

.expense-status {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.expense-body {
    margin-top: 10px;
}

.expense-details {
    margin: 0 0 6px;
    color: #475569;
    font-size: 14px;
}

.day-file {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.day-file.grouped {
    border-style: dashed;
    background: white;
}

.day-file.drop-ready {
    border-color: #0d6efd;
    background: #eef2ff;
}

.invoice-drop-zone {
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8fafc;
    transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.invoice-drop-zone .drop-icon {
    font-size: 28px;
}

.invoice-drop-zone.drop-ready {
    border-color: #0d6efd;
    background: #eef2ff;
    box-shadow: 0 10px 30px rgba(13, 110, 253, 0.12);
}

.invoice-drop-zone .drop-copy strong {
    display: block;
}

.day-file-actions {
    display: flex;
    gap: 8px;
}

.calendar-nav {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.calendar-current {
    font-weight: 700;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(90px, 1fr));
    gap: 6px;
    margin-top: 12px;
}

.calendar-cell {
    background: #ffffff;
    border-radius: 10px;
    padding: 10px;
    min-height: 80px;
    box-shadow: inset 0 0 0 1px #e5e7eb;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 120ms ease, box-shadow 120ms ease;
}

.calendar-cell:not(.header) {
    cursor: pointer;
}

.calendar-cell.header {
    background: transparent;
    box-shadow: none;
    font-weight: 700;
    text-align: center;
    color: #6b7280;
}

.calendar-cell.current:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.calendar-cell .day-number {
    font-weight: 700;
    color: #111827;
}

.calendar-cell.today .day-number {
    color: #d11a2a;
}

.calendar-cell .day-count {
    align-self: flex-end;
    background: #0d6efd;
    color: white;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
}

.calendar-cell .day-total {
    align-self: flex-start;
    font-weight: 700;
    color: #0f172a;
    font-size: 12px;
}

.day-breakdown {
    display: flex;
    gap: 0.35rem;
    margin-top: 0.25rem;
    flex-wrap: wrap;
}

.day-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: #f1f3f5;
    color: #334155;
    border-radius: 12px;
    padding: 0.1rem 0.6rem;
    font-size: 0.8rem;
    border: 1px solid #e5e7eb;
}

.day-badge.success {
    background: #ecfdf3;
    color: #166534;
    border-color: #bbf7d0;
}

.calendar-cell.outside-month {
    color: #6b7280;
    background: #e5e7eb;
    box-shadow: inset 0 0 0 1px #cbd5e1;
}

.calendar-cell.outside-month .day-number {
    color: #4b5563;
}

.calendar-cell.outside-month .day-count {
    background: #cbd5e1;
    color: #374151;
}

.calendar-cell.outside-month .day-total {
    color: #4b5563;
}

.calendar-cell.today {
    box-shadow: inset 0 0 0 2px #0d6efd;
}

.calendar-cell.drop-ready {
    box-shadow: inset 0 0 0 2px #0d6efd;
    background: #eef2ff;
}

.calendar-cell.selected-day {
    box-shadow: inset 0 0 0 2px #111827;
}

.calendar-cell.has-expense {
    background: #e0f2fe;
    box-shadow: inset 0 0 0 2px #7dd3fc;
}

.calendar-cell.has-expense .day-count {
    background: #0284c7;
}

.calendar-cell.has-expense .day-total {
    color: #0f172a;
}

.calendar-cell.no-expense .day-count {
    background: #e5e7eb;
    color: #475569;
}

.calendar-cell.no-expense .day-total {
    color: #6b7280;
}

.calendar-cell.current {
    background: #ffffff;
}

.day-group {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 14px;
    background: #f9fafb;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.day-group.drop-ready,
.new-group-drop.drop-ready {
    border-color: #0d6efd;
    background: #eef2ff;
}

.day-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.group-subheader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.group-subheader .group-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.group-title {
    margin: 0;
    font-weight: 700;
}

.group-subtitle {
    margin: 2px 0 0;
    font-size: 13px;
    color: #6b7280;
}

.day-group-files {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.invoice-file-group {
    border: 1px dashed #e5e7eb;
    border-radius: 12px;
    padding: 10px;
    background: #ffffff;
}

.invoice-file-group + .invoice-file-group {
    margin-top: 8px;
}

.invoice-file-summary {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 10px;
}

.collapsed-file {
    display: none;
}

.file-collapse-toggle {
    align-self: flex-start;
}

.new-group-drop {
    border-style: dashed;
    border-color: #c4c9d4;
    background: #f8fafc;
}

.day-overlay {
    position: absolute;
    inset: 0;
    background: rgba(248, 249, 255, 0.92);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 20px 20px;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 220ms ease, visibility 220ms ease;
}

.day-overlay.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.day-overlay-card {
    width: min(1100px, 100%);
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 18px 50px rgba(0,0,0,0.12);
    transform: translateY(16px) scale(0.985);
    opacity: 0;
    transition: transform 220ms ease, opacity 220ms ease;
}

.day-overlay.visible .day-overlay-card {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.overlay-actions {
    align-items: center;
}

.overlay-content {
    background: white;
    padding: 24px;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
    max-width: 420px;
    text-align: center;
}

body.locked main {
    filter: blur(2px);
    pointer-events: none;
}

body.modal-open {
    overflow: hidden;
}

.day-overlay-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: stretch;
    margin-top: 8px;
    max-height: calc(80vh - 90px);
    overflow-y: auto;
}

@media (max-width: 960px) {
    .day-overlay-body {
        height: auto;
    }
}

.day-pane {
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100%;
}

.overlay-hint {
    margin: 0;
    text-align: center;
}

.gallery-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 10px;
}

.gallery-viewer {
    display: grid;
    grid-template-columns: 60px 1fr 60px;
    gap: 12px;
    align-items: center;
    height: 70vh;
    min-height: 380px;
}

.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 220ms ease, visibility 220ms ease;
}

.modal.hidden {
    display: none;
}

.modal.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal-card {
    background: #fff;
    border-radius: 16px;
    padding: 18px;
    width: min(1200px, 100%);
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 18px 60px rgba(0,0,0,0.25);
    transform: translateY(14px) scale(0.985);
    opacity: 0;
    transition: transform 220ms ease, opacity 220ms ease;
}

.modal.visible .modal-card {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.modal-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-body {
    display: flex;
    gap: 14px;
    height: 100%;
    min-height: 520px;
    flex: 1;
    overflow: hidden;
}

.modal-gallery {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px;
    background: #fafafb;
    min-height: 260px;
    overflow: hidden;
    flex: 3;
    display: flex;
    flex-direction: column;
}

.modal-form {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px;
    background: white;
    overflow-y: auto;
    max-height: 100%;
    flex: 2;
}

@media (max-width: 960px) {
    .modal-body {
        flex-direction: column;
    }

    .modal-gallery,
    .modal-form {
        max-height: 320px;
    }
}

.gallery-frame {
    position: relative;
    overflow: hidden;
    min-height: 320px;
    height: 100%;
}

.gallery-slide {
    display: none;
    flex-direction: column;
    gap: 10px;
    height: 100%;
    overflow: hidden;
}

.gallery-slide.active {
    display: flex;
}

.gallery-nav {
    height: 40px;
    width: 40px;
    border-radius: 50%;
    border: 1px solid #d1d5db;
    background: white;
    cursor: pointer;
    display: grid;
    place-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    color: #0d2235;
    position: sticky;
    top: 50%;
    transform: translateY(-50%);
}

.gallery-nav:hover {
    background: #f3f4f6;
    color: #0b5ed7;
}

.gallery-counter {
    text-align: right;
    font-size: 0.9rem;
    color: #6b7280;
    margin-top: 6px;
}

.gallery-ai-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 6px;
}

.gallery-ai-actions .llm-status {
    margin: 0;
    color: #6b7280;
    font-size: 0.9rem;
}

.gallery-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.preview-viewport {
    background: #f7f9fc;
    min-height: 200px;
    height: 100%;
    max-height: 100%;
    display: grid;
    place-items: center;
    overflow: hidden;
    flex: 1;
}

.preview-viewport.zoomable { cursor: zoom-in; }

.preview-viewport.zoomable.zoomed {
    cursor: zoom-out;
    overflow: auto;
    align-items: start;
    justify-items: start;
}

.preview-viewport img,
.preview-viewport object {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border: none;
}

.preview-viewport.text-mode {
    display: block;
    padding: 12px;
    background: #0b172a;
    color: #e5e7eb;
    overflow: auto;
    max-height: 100%;
}

.preview-viewport.text-mode pre {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: "Fira Code", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    max-width: 100%;
}

.file-fallback {
    padding: 16px;
    text-align: center;
}

.preview-meta {
    padding: 10px 12px 12px;
}

.gallery-empty {
    border: 1px dashed #d1d5db;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    background: #fbfbfd;
}

.danger {
    background: #ef4444;
    border-color: #ef4444;
    color: white;
}

.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.group-detail h4 {
    margin-top: 0;
}

.group-detail form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.group-detail .actions {
    justify-content: flex-start;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

.gallery-card {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 10px;
    background: #fff;
}

.gallery-card h5 {
    margin: 0 0 6px 0;
    font-size: 14px;
}

.gallery-meta {
    font-size: 12px;
    color: #6b7280;
    margin: 0;
}

.group-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.day-group.selectable {
    cursor: pointer;
    border: 1px solid transparent;
    transition: border-color 120ms ease, box-shadow 120ms ease;
}

.day-group.selectable:hover {
    border-color: #0d6efd;
    box-shadow: 0 2px 10px rgba(13, 110, 253, 0.12);
}

.day-group.active {
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.stats-tabs-card {
    padding: 12px 16px;
}

.stats-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.stats-tabs .secondary.active {
    background: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
}

.stat-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    background: #fff;
    box-shadow: inset 0 1px 0 #f5f5f5;
}

.stat-card h3 {
    margin: 8px 0 6px;
    font-size: 26px;
}

.stats-kpi-grid {
    display: grid;
    gap: 8px;
    margin-bottom: 8px;
}

.stats-kpi-grid p {
    margin: 0;
    padding: 8px 10px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
}

.stat-card-wide {
    grid-column: 1 / -1;
}

.stats-card-list {
    width: 100%;
}

.stats-providers-card {
    grid-column: 1 / -1;
}

.stats-breakdown-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.stats-breakdown-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 8px;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #f8fafc;
}

.stats-breakdown-toolbar .muted {
    margin-top: 0;
}

.stats-expand-button {
    flex: 0 0 auto;
    white-space: nowrap;
}

.stats-project-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.stats-breakdown-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
    padding: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
}

.stats-breakdown-header {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.stats-breakdown-title {
    overflow: hidden;
    color: #111827;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stats-breakdown-caption {
    color: #6b7280;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.stats-breakdown-total {
    color: #0f172a;
    font-size: clamp(20px, 3vw, 28px);
    line-height: 1.1;
    overflow-wrap: anywhere;
}

.stats-breakdown-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
    gap: 8px;
    margin: 0;
}

.stats-breakdown-metrics div {
    min-width: 0;
    padding: 9px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #ffffff;
}

.stats-breakdown-metrics dt {
    margin-bottom: 4px;
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
}

.stats-breakdown-metrics dd {
    margin: 0;
    color: #111827;
    font-size: 14px;
    font-weight: 700;
    overflow-wrap: anywhere;
}


@media (max-width: 560px) {
    .stats-breakdown-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .stats-expand-button {
        justify-content: center;
        width: 100%;
    }
}

.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 2000;
}

.toast {
    background: #0d6efd;
    color: white;
    padding: 12px 14px;
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
    min-width: 260px;
    max-width: 360px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 150ms ease, transform 150ms ease;
}

.toast.visible {
    opacity: 1;
    transform: translateY(0);
}

.toast.success {
    background: #16a34a;
}

.selection-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 2000;
}

.selection-modal {
    background: #ffffff;
    border-radius: 14px;
    padding: 18px;
    max-width: 520px;
    width: min(520px, 95vw);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.selection-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.selection-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 50vh;
    overflow: auto;
    padding-right: 4px;
}

.selection-option {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 10px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    background: #f8fafc;
}

.selection-option:hover {
    border-color: #0d6efd;
    background: #eef2ff;
}

.selection-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.toast.error {
    background: #dc2626;
}

.bar-chart {
    display: grid;
    gap: 10px;
}

.bar-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    align-items: center;
    gap: 10px;
}

.bar-label {
    font-size: 14px;
    color: #4b5563;
}

.bar-track {
    background: #f3f4f6;
    border-radius: 999px;
    height: 12px;
    overflow: hidden;
}

.bar-fill {
    background: linear-gradient(90deg, #0d6efd, #3b82f6);
    height: 100%;
    width: 0;
    transition: width 200ms ease;
}

.reconciliation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.reconciliation-panel {
    background: #fafbff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.reconciliation-panel h4 {
    margin: 0;
}

.reconciliation-panel .section-header {
    align-items: center;
}

.expense-chip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.8rem;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease, transform 150ms ease;
}

.expense-chip:hover {
    transform: translateY(-1px);
    border-color: #0d6efd;
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.12);
}

.invoice-card.drop-ready {
    border-color: #0d6efd;
    background: #eef2ff;
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.2);
}

.expense-chip .meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.pill-success {
    background: #dcfce7;
    color: #166534;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-weight: 600;
}

.pill-secondary {
    background: #e2e8f0;
    color: #334155;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 12px;
}

.pill-alert {
    background: #fee2e2;
    color: #991b1b;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-weight: 600;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 1024px) {
    .page-header {
        flex-direction: column;
        align-items: stretch;
    }

    .page-actions {
        flex-wrap: wrap;
        justify-content: flex-start;
    }
}

@media (max-width: 820px) {

    #stats-form .actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    #stats-form .actions button {
        width: 100%;
    }

    .page[data-section="stats"] .section-header .actions {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .page[data-section="stats"] .section-header .actions button {
        width: 100%;
    }
    .topbar {
        flex-wrap: wrap;
        row-gap: 10px;
    }

    .session-controls {
        width: 100%;
        justify-content: flex-end;
        flex-wrap: wrap;
    }

    .calendar-board .calendar-layout {
        gap: 16px;
    }

    .calendar-main {
        min-width: 0;
    }

    .calendar-nav {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .day-overlay {
        padding: 12px;
    }

    .day-overlay-card {
        padding: 14px;
    }

    .overlay-actions {
        flex-wrap: wrap;
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .main-content {
        padding: 14px;
        margin-bottom: 18px;
    }

    .card {
        padding: 14px;
    }

    .page-actions {
        width: 100%;
    }

    .page-actions > * {
        flex: 1 1 auto;
        min-width: 0;
    }

    .mode-switch {
        width: 100%;
        min-width: 220px;
    }

    .calendar-main {
        overflow-x: auto;
        padding-bottom: 6px;
    }

    .calendar-grid {
        width: max-content;
        min-width: 100%;
        grid-template-columns: repeat(7, minmax(76px, 1fr));
    }

    .calendar-cell {
        min-height: 72px;
        padding: 8px;
    }

    .calendar-cell .day-count {
        padding: 3px 8px;
        font-size: 11px;
    }

    .overlay-actions button {
        flex: 1 1 140px;
    }

    .day-file {
        flex-direction: column;
        align-items: stretch;
    }

    .day-file-actions {
        justify-content: flex-end;
        flex-wrap: wrap;
    }

    .modal {
        padding: 10px;
        align-items: flex-start;
    }

    .modal-card {
        max-height: calc(100vh - 20px);
        padding: 12px;
        gap: 10px;
        overflow-y: auto;
    }

    .modal-header {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .modal-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .modal-actions button {
        flex: 1 1 120px;
    }

    .modal-body {
        flex-direction: column;
        min-height: 0;
        overflow-y: auto;
        overflow-x: hidden;
        gap: 10px;
    }

    .modal-gallery,
    .modal-form {
        width: 100%;
        max-height: min(44vh, 360px);
        min-height: 0;
        overflow: auto;
    }

    .gallery-viewer {
        display: flex;
        flex-wrap: wrap;
        height: auto;
        min-height: 0;
        gap: 8px;
    }

    .gallery-frame {
        order: 1;
        width: 100%;
        min-height: 220px;
    }

    .gallery-nav {
        position: static;
        transform: none;
        order: 2;
        flex: 1 1 calc(50% - 6px);
        width: 100%;
        border-radius: 10px;
        height: 38px;
    }

    .gallery-nav.next {
        order: 3;
    }

    .preview-viewport {
        min-height: 180px;
        max-height: min(38vh, 300px);
        overflow: auto;
    }

    .preview-panel {
        min-height: 0;
    }

    .preview-panel .preview-frame {
        min-height: 150px;
    }
}

.ai-review-cell {
    align-items: center;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.ai-review-badge {
    background: #fff7ed;
    border: 1px solid #fdba74;
    border-radius: 999px;
    color: #9a3412;
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
    padding: 0.35rem 0.55rem;
    white-space: nowrap;
}

.ai-review-approve {
    padding: 0.25rem 0.45rem;
}

.calendar-cell.has-ai-review {
    box-shadow: inset 0 0 0 2px rgba(249, 115, 22, 0.45);
}

.calendar-ai-review {
    align-items: center;
    background: #fff7ed;
    border: 1px solid #fdba74;
    border-radius: 999px;
    color: #9a3412;
    display: inline-flex;
    font-size: 0.85rem;
    font-weight: 700;
    justify-content: center;
    min-height: 1.4rem;
    min-width: 1.4rem;
    padding: 0.1rem 0.3rem;
}
