/* Personal palettes share a light workspace and the same semantic pastels. */
html[data-crm-theme] { color-scheme: light; }
html[data-crm-theme="marin"] {
    --page: #f2f6f6;
    --paper: #fff;
    --ink: #233e4b;
    --body: #4a626d;
    --muted: #687e88;
    --line: #dbe5e8;
    --soft: #eaf1f3;
    --green: #356b80;
    --green-hover: #285365;
}
html[data-crm-theme="marin"] .sidebar { background: #28546a; box-shadow: 4px 0 24px #24495712; }
html[data-crm-theme="marin"] .sidebar .brand small,
html[data-crm-theme="marin"] .sidebar-bottom p { color: #d0e0e7; }
html[data-crm-theme="marin"] .sidebar .brand-mark { color: #e9f3f7; }
html[data-crm-theme="marin"] .sidebar .nav-link { color: #edf4f6; }
html[data-crm-theme="marin"] .sidebar .nav-link .icon,
html[data-crm-theme="marin"] .sidebar .nav-label { color: #c2d8e2; }
html[data-crm-theme="marin"] .sidebar .nav-link.active { background: #edf4f6; color: #285066; }
html[data-crm-theme="marin"] .sidebar .nav-link.active .icon { color: #356b80; }
html[data-crm-theme="marin"] .topbar { background: #fcfdfe; }
html[data-crm-theme="marin"] .page-heading { border-color: #d8e2e6; }
html[data-crm-theme="marin"] .page-description,
html[data-crm-theme="marin"] .eyebrow { color: var(--muted); }
html[data-crm-theme="marin"] .avatar { background: #e2edf1; }
html[data-crm-theme="marin"] .secondary { border-color: #cddfe5; }
html[data-crm-theme="marin"] td { color: var(--body); border-color: #e1e9ec; }
html[data-crm-theme="marin"] tbody tr:nth-child(even) { background: #f6f9fa; }
html[data-crm-theme="marin"] tbody tr:hover { background: #edf4f6; }
html[data-crm-theme="marin"] .row-action { background: #e8f1f4; }
html[data-crm-theme="marin"] .row-action:hover { background: #dae9ef; }
html[data-crm-theme="marin"] .currency-label,
html[data-crm-theme="marin"] .date-cell { color: #637d88; }
html[data-crm-theme="marin"] .form-surface .form-actions { background: #f3f7f8; border-color: #dce7eb; }
html[data-crm-theme="marin"] input:not([type="checkbox"]),
html[data-crm-theme="marin"] select,
html[data-crm-theme="marin"] textarea { border-color: #d4e0e5; }

html[data-crm-theme="marin"] :is(a, button, summary, input, select, textarea, [tabindex]):focus-visible { outline-color: #7aa4b4; }
html[data-crm-theme="marin"] .nav-overlay { background: #28546a60; }

.topbar-actions { gap: 18px; }
.appearance-switch { display: flex; align-items: center; gap: 8px; position: relative; }
.appearance-switch label { font-size: 12px; color: var(--muted); }
.appearance-switch select { width: 94px; min-height: 38px; padding: 7px 10px; border-radius: 9px; background: var(--paper); font-size: 13px; }
.appearance-switch select:disabled { cursor: progress; opacity: .65; }
.appearance-switch .appearance-feedback:not(.sr-only) { position: absolute; top: calc(100% + 8px); right: 0; width: 255px; z-index: 20; padding: 12px 14px; background: #fff2ed; color: #803e30; border-radius: 10px; box-shadow: 0 6px 24px #1b293218; font-size: 12px; }
@media (max-width: 1200px) { .appearance-switch label { display: none; } }
@media (max-width: 760px) {
    .topbar { min-height: 100px; height: auto; padding-block: 12px; align-items: flex-start; }
    .mobile-menu { margin-top: 1px; }
    .topbar-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px 12px; }
    .topbar-actions > .workspace-switch, .topbar-actions > .workspace-name { grid-column: 1; grid-row: 1; align-self: center; min-height: 34px; }
    .topbar-actions > .account-menu { grid-column: 2; grid-row: 1; }
    .appearance-switch { grid-column: 1 / -1; grid-row: 2; justify-content: flex-end; }
    .appearance-switch label { display: inline; }
    .appearance-switch select { min-height: 34px; padding-block: 5px; }
    .workspace-switch select { max-width: 145px; }
    .workspace-name { max-width: 200px; }
}
@media print { .appearance-switch { display: none; } }
