@font-face {
    font-family: Outfit;
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("fonts/outfit-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: Outfit;
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("fonts/outfit-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
    color-scheme: light;
    --ink: #0c142a;
    --muted: #6b757e;
    --border: #dce1e4;
    --surface: #ffffff;
    --canvas: #fcfcfc;
    --accent: #203968;
    --accent-soft: #edf2fc;
    --highlight: #739bf4;
    --red: #b53442;
    --red-soft: #fff0f1;
    --orange: #a55c14;
    --orange-soft: #fff5e6;
    --blue: #37769d;
    font-family: Outfit, "Segoe UI", Arial, sans-serif;
    font-size: 13px;
    font-synthesis: none;
    letter-spacing: 0;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--canvas); }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: 0; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .5; }
button svg, .lucide { width: 17px; height: 17px; flex: 0 0 auto; stroke-width: 1.7; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
input, select, textarea { min-width: 0; border: 1px solid #cbd3d8; border-radius: 4px; background: white; }
input, select { min-height: 34px; padding: 6px 9px; }
textarea { padding: 8px 9px; line-height: 1.5; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid #c7d6fb; outline-offset: 0; border-color: var(--highlight); }
button:focus-visible, [tabindex]:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
input::placeholder, textarea::placeholder { color: #8b949b; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); width: 15px; height: 15px; min-height: 0; margin: 0; flex: 0 0 auto; }
[hidden] { display: none !important; }
.sr-only { position: absolute; height: 1px; width: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.app-header { min-height: 64px; background: white; border-bottom: 1px solid var(--border); padding: 12px 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 22px; font-weight: 700; white-space: nowrap; line-height: 1.2; }
.brand:hover { text-decoration: none; }
.brand-now { color: var(--accent); }
.brand-symbol { display: inline-flex; justify-content: center; align-items: center; width: 32px; height: 32px; border: 1px solid #ccd8f0; border-radius: 6px; background: var(--accent-soft); color: var(--accent); }
.brand-symbol .lucide { width: 21px; height: 21px; }
.header-right { display: flex; align-items: center; gap: 18px; }
.header-right form { display: flex; margin: 0; }
.today-label { color: var(--muted); font-size: 12px; }
.account { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; }
.avatar { width: 27px; height: 27px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #edf0f3; color: #556271; font-size: 12px; }
.workspace { padding: 25px 28px 18px; max-width: 2560px; margin: 0 auto; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.heading-copy { display: flex; align-items: baseline; gap: 14px; }
.section-label { color: var(--muted); font-size: 11px; font-weight: 700; }
h1 { margin: 0; font-size: 25px; line-height: 1.2; font-weight: 650; }
.heading-actions { display: flex; align-items: center; gap: 8px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 35px; padding: 7px 12px; border: 1px solid transparent; border-radius: 5px; font-weight: 600; line-height: 1.3; }
.button-primary { color: white; background: var(--accent); border-color: var(--accent); }
.button-primary:hover:not(:disabled) { background: #172c53; }
.button-subtle { background: white; border-color: #d0d8dd; }
.button-subtle:hover:not(:disabled) { background: #f3f6f7; border-color: #b6c3ca; }
.icon-button { width: 32px; height: 32px; padding: 5px; display: inline-flex; align-items: center; justify-content: center; background: transparent; border: 1px solid transparent; border-radius: 4px; flex: 0 0 auto; }
.icon-button:hover:not(:disabled) { background: #eaf0f2; }
.icon-button.is-active { color: var(--accent); background: var(--accent-soft); }
.view-tabs { display: flex; align-items: stretch; gap: 17px; overflow-x: auto; border-bottom: 1px solid var(--border); scrollbar-width: thin; }
.view-tab { display: inline-flex; align-items: center; gap: 7px; border: 0; border-bottom: 2px solid transparent; background: transparent; padding: 10px 0 12px; color: var(--muted); font-weight: 550; white-space: nowrap; }
.view-tab:hover { color: var(--ink); }
.view-tab.is-active { color: var(--accent); border-bottom-color: var(--highlight); }
.view-tab .lucide { width: 16px; height: 16px; }
.tab-count { display: inline-flex; min-width: 21px; height: 19px; align-items: center; justify-content: center; border-radius: 3px; padding: 0 4px; background: #e8ecee; font-size: 10px; }
.is-active .tab-count { background: #e4ecff; color: var(--accent); }
.list-pending-count { background: #fff3d6; color: #8d671c; }
.filters { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 16px 0; }
.search-control { position: relative; flex: 1 1 220px; max-width: 355px; min-width: 200px; }
.search-control .lucide { position: absolute; left: 10px; top: 10px; color: #7b8892; }
.search-control input { width: 100%; padding-left: 34px; min-height: 37px; }
.filter-control { display: flex; align-items: center; border: 1px solid #cfd8dd; border-radius: 4px; min-width: 0; background: white; }
.filter-control > span { font-size: 11px; color: #6b767e; padding-left: 9px; white-space: nowrap; }
.filter-control select { border: none; min-height: 35px; padding: 6px 6px; width: auto; max-width: 160px; font-size: 12px; }
.filter-tag select { max-width: 210px; }
.filters .icon-button { border-color: #d4dce1; background: white; height: 37px; width: 37px; }
.date-filters { display: flex; align-items: center; gap: 12px; flex-basis: 100%; padding: 8px 0 0; }
.date-filters label { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.global-alert { padding: 10px 12px; border: 1px solid #e7c2c7; background: var(--red-soft); border-radius: 4px; color: #9f2f3c; margin-bottom: 12px; line-height: 1.5; }
.global-alert button { margin-left: 12px; background: transparent; border: 0; color: inherit; text-decoration: underline; }
.table-status { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; min-height: 34px; margin-bottom: 7px; }
.table-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 12px; }
.view-title { color: var(--ink); font-weight: 600; }
.separator-dot { width: 3px; height: 3px; background: #9aa3aa; border-radius: 50%; }
.view-dates { color: #74818a; font-size: 11px; padding-left: 3px; }
.date-legend { display: flex; align-items: center; gap: 12px; font-size: 10px; color: var(--muted); margin-left: auto; }
.date-legend span { display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.legend-dot { height: 6px; width: 6px; border-radius: 50%; }
.legend-dot.overdue { background: var(--red); }
.legend-dot.upcoming { background: #d99334; }
.drafts-indicator { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border: 1px solid #e5c98a; background: #fffaea; color: #866114; border-radius: 4px; font-size: 11px; }
.drafts-indicator .lucide { width: 13px; height: 13px; }
.table-scroll { position: relative; overflow: auto; max-height: calc(100vh - 310px); min-height: 240px; background: white; border: 1px solid var(--border); border-radius: 5px; scrollbar-width: thin; scrollbar-color: #bcc7cc #f1f3f4; }
.contacts-table { width: 100%; table-layout: fixed; min-width: 1650px; border-spacing: 0; border-collapse: separate; }
.col-contact { width: 245px; }.col-history { width: 290px; }.col-action { width: 220px; }.col-states { width: 215px; }.col-context { width: 250px; }.col-tags { width: 175px; }.col-type { width: 130px; }.col-save { width: 125px; }
.contacts-table th { position: sticky; top: 0; z-index: 5; background: #f2f5f6; text-align: left; border-bottom: 1px solid #d6dde1; font-size: 11px; font-weight: 650; color: #59666e; padding: 12px 12px; height: 41px; }
.contacts-table td { vertical-align: top; background: white; border-bottom: 1px solid #e4e9ec; padding: 12px; overflow-wrap: anywhere; }
.contacts-table th:first-child { left: 0; z-index: 7; }
.contacts-table td:first-child { position: sticky; left: 0; z-index: 3; border-right: 1px solid #e4e9ec; }
.contacts-table th:last-child { right: 0; z-index: 6; }
.contacts-table td:last-child { position: sticky; right: 0; z-index: 4; border-left: 1px solid #e4e9ec; }
.contacts-table th:last-child, .contacts-table td:last-child { box-shadow: -3px 0 5px -4px #4e5d66; }
.contacts-table th:first-child, .contacts-table td:first-child { box-shadow: 3px 0 5px -4px #4e5d66; }
.contact-row:last-child td { border-bottom: none; }
.contact-row:hover td { background: #fafcfc; }
.contact-row.is-dirty td { background: #fffef7; }
.contact-row.is-dirty td:first-child { box-shadow: inset 3px 0 #d5a53e, 3px 0 5px -4px #4e5d66; }
.contact-row.is-overdue td { background: #fff4f4; }
.contact-row.is-overdue:hover td { background: #ffeded; }
.contact-row.is-upcoming td { background: #fff8e8; }
.contact-row.is-upcoming:hover td { background: #fff3dc; }
.contact-row.is-expanded td { padding-top: 14px; padding-bottom: 14px; }
.contact-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; min-height: 28px; margin-bottom: 4px; }
.contact-heading .editable { flex: 1 1 auto; }
.contact-name { font-size: 14px; font-weight: 650; color: var(--ink); line-height: 1.45; }
.expand-button { width: 24px; height: 24px; padding: 2px; margin-top: -2px; }
.expand-button .lucide { width: 15px; height: 15px; }
.contact-company { font-size: 11px; color: var(--muted); margin-bottom: 6px; }
.data-line { display: flex; align-items: flex-start; gap: 7px; min-height: 25px; font-size: 11px; line-height: 1.5; }
.data-line .lucide { width: 13px; height: 13px; margin-top: 3px; color: #91a0a6; }
.data-line a { display: inline-flex; flex: 0 0 auto; }
.data-line a:hover .lucide { color: var(--accent); }
.data-line .editable { flex: 1 1 auto; }
.editable { min-width: 0; cursor: text; line-height: 1.5; border-radius: 3px; min-height: 21px; padding: 1px 3px; margin: -1px -3px; }
.editable:hover { background: #edf2ff; outline: 1px solid #d8e1f5; }
.editable.is-editing { margin: 0; padding: 0; cursor: auto; outline: 0; background: transparent; }
.editable.is-editing input, .editable.is-editing textarea { width: 100%; }
.empty-value { color: #9ca6ac; }
.field-stack { display: flex; flex-direction: column; gap: 9px; }
.compact-field-label, .field-label { display: block; font-size: 10px; font-weight: 600; color: #76838c; margin-bottom: 3px; }
.field-stack input, .field-stack select, .field-stack textarea { width: 100%; font-size: 12px; }
.field-stack input { min-height: 32px; }
.category-label { font-size: 10px; display: inline-flex; align-items: center; padding: 2px 5px; border: 1px solid #e0e6e8; background: #f6f8f9; border-radius: 3px; color: #6e7a83; margin-top: 8px; }
.category-active { color: #1e7665; background: #edf6f1; border-color: #cde5d9; }
.category-confirmed { color: #3b7294; background: #edf4f8; border-color: #d4e4ed; }
.category-not_interested { color: #827080; background: #f5f0f4; border-color: #e5dde3; }
.cell-heading { display: flex; align-items: center; justify-content: space-between; gap: 7px; margin-bottom: 7px; }
.cell-count { font-size: 10px; color: #849098; }
.cell-heading .icon-button { width: 24px; height: 24px; padding: 3px; }
.history-list { display: flex; flex-direction: column; gap: 7px; }
.history-list.is-expanded { max-height: 310px; min-height: 54px; overflow-y: auto; padding-right: 3px; resize: vertical; }
.communication { border-left: 2px solid #cbd6e9; padding: 5px 8px; background: #f5f7fc; border-radius: 0 3px 3px 0; }
.communication.is-new { border-left-color: #c89e3c; background: #fffaed; }
.communication-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 10px; color: #708078; margin-bottom: 3px; }
.communication-date { font-weight: 600; color: #516782; }
.communication-text { white-space: pre-wrap; line-height: 1.5; font-size: 12px; }
.history-list:not(.is-expanded) .communication-text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.communication-delete { width: 19px; height: 19px; margin-left: 5px; padding: 2px; color: var(--red); }
.communication-delete .lucide { width: 12px; height: 12px; }
.communication-author { display: flex; align-items: center; }
.inline-empty { color: #9ca5ab; font-size: 12px; line-height: 1.5; }
.add-communication { margin-top: 9px; background: transparent; border: 1px dashed #bacdc4; border-radius: 4px; padding: 5px 8px; display: flex; align-items: center; gap: 6px; color: var(--accent); font-size: 11px; width: 100%; justify-content: center; }
.add-communication .lucide { width: 13px; height: 13px; }
.communication-editor { margin-top: 10px; border-top: 1px solid #dce5e1; padding-top: 10px; }
.communication-editor .editor-head { display: grid; grid-template-columns: 1fr 90px; gap: 7px; margin-bottom: 7px; }
.communication-editor input, .communication-editor select, .communication-editor textarea { width: 100%; font-size: 11px; }
.communication-editor textarea { min-height: 72px; }
.editor-actions { margin-top: 7px; display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.editor-actions .button { min-height: 28px; font-size: 11px; padding: 4px 8px; }
.action-date { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 650; color: #697781; border-radius: 3px; margin-bottom: 8px; padding: 4px 6px; background: #f0f3f5; }
.action-date .lucide { width: 12px; height: 12px; }
.action-date.is-overdue { color: var(--red); background: var(--red-soft); }
.action-date.is-upcoming { color: var(--orange); background: var(--orange-soft); }
.action-text { font-size: 12px; white-space: pre-wrap; line-height: 1.5; }
.action-age { display: block; font-size: 10px; padding-top: 5px; font-weight: 600; }
.is-overdue + .action-text + .action-age { color: var(--red); }
.action-editor { margin-top: 8px; }
.clear-action { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; color: var(--muted); margin-top: 8px; background: transparent; border: 0; padding: 3px 0; }
.clear-action .lucide { width: 12px; height: 12px; }
.state-summary { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 5px; min-height: 34px; }
.state-chip { display: inline-block; padding: 3px 5px; border-radius: 3px; border: 1px solid #d9e4e0; color: #45705f; background: #f0f6f3; font-size: 10px; line-height: 1.4; }
.state-chip.state-terminal { border-color: #d8e3eb; color: #527488; background: #eff5f8; }
.state-chip.state-discarded { border-color: #eadce0; color: #88616c; background: #faf1f4; }
.state-options { display: flex; flex-direction: column; gap: 7px; }
.state-option { display: flex; gap: 7px; align-items: flex-start; font-size: 11px; line-height: 1.4; }
.state-option input { margin-top: 1px; }
.cell-edit-button { margin-top: 7px; color: #7d8c94; width: 25px; height: 25px; padding: 3px; }
.cell-edit-button .lucide { width: 13px; height: 13px; }
.context-preview { white-space: pre-wrap; font-size: 12px; max-height: 87px; overflow: hidden; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; }
.context-editor { width: 100%; min-height: 175px; max-height: 460px; resize: vertical; font-size: 12px; }
.tag-list { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 5px; }
.tag { display: inline-flex; align-items: flex-start; gap: 4px; font-size: 10px; background: #f1f2f7; border: 1px solid #e0e2ec; border-radius: 3px; color: #626680; padding: 3px 5px; max-width: 100%; line-height: 1.4; }
.tag-remove { border: 0; padding: 0; background: transparent; color: #85839c; flex: 0 0 auto; width: 13px; height: 13px; display: inline-flex; align-items: center; justify-content: center; margin-top: 1px; }
.tag-remove .lucide { height: 11px; width: 11px; }
.tag-input { display: flex; align-items: center; gap: 4px; margin-top: 9px; }
.tag-input input { font-size: 11px; width: 100%; min-height: 30px; }
.tag-input .icon-button { width: 26px; height: 26px; background: #f1f5f3; color: var(--accent); }
.type-label { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: #6d777f; }
.type-label .lucide { width: 13px; height: 13px; }
.save-cell { min-height: 65px; display: flex; flex-direction: column; align-items: stretch; gap: 5px; }
.save-button { min-height: 31px; font-size: 11px; width: 100%; padding: 6px 8px; }
.save-button .lucide { width: 13px; height: 13px; }
.save-note { color: #88969c; font-size: 10px; text-align: center; line-height: 1.5; }
.save-note.is-pending { color: #9a751f; }
.save-note.is-success { color: var(--accent); }
.row-error { color: var(--red); font-size: 10px; line-height: 1.5; }
.conflict-button { border: 1px solid #e6c0c5; color: var(--red); background: #fff4f5; border-radius: 3px; padding: 4px 7px; font-size: 10px; }
.discard-button { align-self: center; width: 26px; height: 26px; color: #a0916e; padding: 3px; }
.discard-button .lucide { width: 13px; height: 13px; }
.empty-row td { height: 245px; text-align: center; vertical-align: middle; position: static !important; border: 0 !important; color: #7e8a93; font-size: 13px; box-shadow: none !important; }
.empty-content { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 30px; }
.empty-content .lucide { height: 30px; width: 30px; color: #92a9a0; }
.empty-title { color: #4f626b; font-weight: 600; }
.empty-content .button { margin-top: 3px; }
.loading-spinner { display: inline-block; width: 16px; height: 16px; margin-right: 8px; vertical-align: -3px; border: 2px solid #d6e4df; border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.pagination { display: flex; align-items: center; gap: 18px; font-size: 11px; color: var(--muted); padding: 10px 0; }
.page-size { display: flex; align-items: center; gap: 7px; }
.page-size select { min-height: 29px; padding: 3px 6px; font-size: 11px; }
.page-controls { display: flex; align-items: center; gap: 10px; margin-left: auto; }
#page-number { min-width: 46px; text-align: center; }
.app-dialog { padding: 0; width: min(620px, calc(100vw - 28px)); max-height: calc(100dvh - 40px); border: 1px solid #cbd5da; border-radius: 7px; box-shadow: 0 18px 60px #1f3a4133; color: var(--ink); background: white; }
.app-dialog::backdrop { background: #1c2f3d70; }
.dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.dialog-header h2 { margin: 0; font-size: 17px; font-weight: 650; }
.dialog-body { padding: 19px 20px; max-height: calc(100dvh - 210px); overflow-y: auto; }
.dialog-footer { display: flex; align-items: center; justify-content: flex-end; gap: 8px; border-top: 1px solid var(--border); padding: 13px 20px; background: #fafbfc; }
.dialog-footer .button { font-size: 12px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form-field { display: flex; flex-direction: column; gap: 5px; font-size: 12px; }
.form-field > span { font-weight: 600; color: #58666f; }
.form-field input, .form-field textarea, .form-field select { width: 100%; }
.full-width { grid-column: 1 / -1; }
.dialog-error { color: #a32d3c; background: #fff0f2; border: 1px solid #e8c4ca; border-radius: 4px; padding: 10px 12px; font-size: 12px; line-height: 1.5; margin-bottom: 17px; }
.import-preview { margin-top: 18px; border-top: 1px solid var(--border); padding-top: 17px; }
.import-preview h3 { font-size: 13px; margin: 0 0 12px; }
.import-stats { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 14px; }
.import-stat { display: flex; flex-direction: column; gap: 4px; min-width: 100px; }
.import-stat strong { font-size: 21px; color: var(--accent); font-weight: 650; }
.import-stat span { color: var(--muted); font-size: 11px; }
.import-issues { max-height: 180px; overflow-y: auto; font-size: 11px; color: #89682b; line-height: 1.5; background: #fffaed; padding: 10px 14px 10px 28px; border-radius: 4px; }
.import-columns { font-size: 11px; color: var(--muted); line-height: 1.6; overflow-wrap: anywhere; }
.import-sample { margin-top: 17px; }
.import-sample-row { display: flex; flex-direction: column; gap: 4px; border-top: 1px solid var(--border); padding: 9px 0; font-size: 11px; overflow-wrap: anywhere; }
.import-sample-row span { color: var(--muted); }
.conflict-dialog { width: min(740px, calc(100vw - 28px)); }
.conflict-fields { display: flex; flex-direction: column; gap: 14px; }
.conflict-intro { font-size: 12px; color: #7b646b; padding: 10px 12px; border-left: 3px solid #cc818e; background: #faf3f5; line-height: 1.5; margin-bottom: 18px; }
.conflict-field { border-top: 1px solid var(--border); padding-top: 12px; }
.conflict-field h3 { margin: 0 0 8px; font-size: 12px; }
.conflict-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.conflict-choice { border: 1px solid #d5dde1; border-radius: 4px; padding: 10px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.conflict-choice:has(input:checked) { border-color: #83baa9; background: #f1f8f4; }
.conflict-choice > span { display: flex; align-items: center; gap: 7px; font-weight: 600; font-size: 11px; }
.conflict-value { white-space: pre-wrap; font-size: 12px; overflow-wrap: anywhere; max-height: 170px; overflow: auto; }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 30; padding: 11px 18px; color: white; background: var(--accent); box-shadow: 0 4px 16px #20396833; border-radius: 5px; font-size: 12px; max-width: calc(100vw - 30px); }
.login-page { min-height: 100dvh; background: var(--canvas); display: grid; place-items: center; border-top: 4px solid var(--accent); }
.login-main { width: min(360px, calc(100vw - 40px)); margin: 50px auto; }
.login-brand { font-size: 27px; margin-bottom: 38px; }
.login-brand .brand-symbol { width: 37px; height: 37px; }
.login-panel { background: white; border: 1px solid #dbe1ed; border-radius: 6px; padding: 28px; box-shadow: 0 6px 20px #20396818; }
.login-panel h1 { margin-top: 6px; font-size: 24px; margin-bottom: 27px; }
.login-form { display: flex; flex-direction: column; gap: 19px; }
.login-form .button { margin-top: 4px; width: 100%; min-height: 39px; }
.login-footer { display: block; text-align: center; margin-top: 25px; font-size: 11px; color: #8b969b; }
.login-status { color: var(--accent); font-size: 12px; margin-bottom: 17px; }
.lists-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 18px 0; }
.lists-toolbar > .icon-button { margin-left: auto; border-color: var(--border); background: white; }
.lists-drafts-indicator { font-size: 11px; color: #8d671c; background: #fff8e5; border: 1px solid #e8d3a0; border-radius: 3px; padding: 4px 7px; }
.list-type-group { margin-bottom: 25px; }
.list-group-heading { display: flex; align-items: center; gap: 8px; margin: 0 0 9px; font-size: 14px; font-weight: 600; }
.list-group-count { font-size: 11px; color: var(--muted); font-weight: 400; }
.lists-table-scroll { overflow: auto; border: 1px solid var(--border); border-radius: 4px; scrollbar-width: thin; }
.lists-table { width: 100%; min-width: 780px; border-spacing: 0; border-collapse: separate; table-layout: fixed; }
.list-col-tag { width: 29%; }.list-col-count { width: 9%; }.list-col-status { width: 16%; }.list-col-notes { width: 35%; }.list-col-save { width: 11%; }
.lists-table th { padding: 11px 12px; text-align: left; color: #59666e; background: #f5f6f9; border-bottom: 1px solid var(--border); font-size: 11px; font-weight: 600; }
.lists-table td { padding: 12px; vertical-align: top; border-bottom: 1px solid #e4e7ed; overflow-wrap: anywhere; }
.list-row:last-child td { border-bottom: 0; }
.list-row td { background: #f7f8fa; }
.list-row.list-current td { background: #edf3ff; }
.list-row.list-worked td { background: #fff2f3; }
.list-row:hover td { background: #f1f3f7; }
.list-row.list-current:hover td { background: #e5edff; }
.list-row.list-worked:hover td { background: #ffeaed; }
.list-row.is-dirty td:first-child { box-shadow: inset 3px 0 #d5a53e; }
.list-name { font-size: 13px; font-weight: 550; line-height: 1.5; }
.list-contact-count { font-size: 12px; color: #5e6c84; padding-top: 6px; display: inline-block; }
.list-status-select { width: 100%; font-size: 12px; }
.list-notes { width: 100%; min-height: 53px; max-height: 240px; font-size: 12px; background: #ffffffcf; }
.list-save-cell { display: flex; flex-direction: column; align-items: stretch; gap: 5px; }
.list-save-cell .discard-button { margin: 0 auto; }
.list-save-button { width: 100%; min-height: 32px; padding: 6px; font-size: 11px; }
.list-save-button .lucide { width: 13px; height: 13px; }
.lists-empty { display: flex; align-items: center; justify-content: center; color: var(--muted); min-height: 160px; gap: 5px; font-size: 12px; }
@media (min-width: 1900px) { .contacts-table { min-width: 100%; } }
@media (max-width: 1180px) { .view-tabs { gap: 14px; }.date-legend { display: none; }.filters { gap: 8px; }.search-control { max-width: none; }.table-scroll { max-height: calc(100vh - 355px); }.view-tab { font-size: 12px; } }
@media (max-width: 760px) {
    .app-header { padding: 12px 16px; min-height: 60px; }.brand { font-size: 21px; }.header-right { gap: 8px; }.today-label { display: none; }.account > span:last-child { display: none; }
    .workspace { padding: 19px 14px 12px; }.page-heading { margin-bottom: 16px; }.heading-copy { gap: 9px; }h1 { font-size: 21px; }.heading-actions { gap: 5px; }.heading-actions .button { width: 34px; height: 34px; min-height: 34px; padding: 7px; }.heading-actions .button span { display: none; }
    .view-tabs { gap: 19px; }.view-tab { font-size: 11px; padding-bottom: 10px; }.view-tab .lucide { display: none; }.filters { margin: 12px 0; gap: 7px; }.search-control { flex-basis: 100%; max-width: none; }.filter-control { flex: 1 1 calc(50% - 7px); justify-content: space-between; }.filter-control select { max-width: 140px; }.filter-tag select { max-width: 145px; }.date-filters { gap: 8px; flex-wrap: wrap; }.date-filters input { max-width: 143px; }
    .table-status { margin-bottom: 8px; gap: 8px; }.table-summary { font-size: 11px; }.view-dates { width: 100%; padding-left: 0; }.table-scroll { max-height: none; min-height: 240px; }.contacts-table { min-width: 1530px; }.col-contact { width: 210px; }.col-history { width: 265px; }.col-action { width: 205px; }.col-states { width: 210px; }.col-context { width: 230px; }.col-tags { width: 175px; }.col-type { width: 130px; }.col-save { width: 105px; }
    .contacts-table td { padding: 10px; }.contacts-table td:first-child { position: static; }.contacts-table th:first-child { left: auto; }.contacts-table th:first-child, .contacts-table td:first-child { box-shadow: none; }.pagination { gap: 8px; font-size: 10px; }.page-controls { gap: 3px; }.page-size { gap: 5px; }#page-number { min-width: 40px; }
    .dialog-header, .dialog-body, .dialog-footer { padding-left: 15px; padding-right: 15px; }.dialog-footer { flex-wrap: wrap; }.form-grid { grid-template-columns: 1fr; gap: 12px; }.conflict-choices { grid-template-columns: 1fr; }.login-panel { padding: 25px; }
    .lists-toolbar { margin: 14px 0; gap: 8px; }.lists-table { min-width: 740px; }.list-col-tag { width: 170px; }.list-col-count { width: 70px; }.list-col-status { width: 145px; }.list-col-notes { width: 245px; }.list-col-save { width: 110px; }.lists-table th, .lists-table td { padding: 10px; }.lists-table th:last-child { position: sticky; right: 0; z-index: 2; }.lists-table td:last-child { position: sticky; right: 0; z-index: 1; border-left: 1px solid #dde3ed; box-shadow: -3px 0 5px -4px #4e5d66; }
}
@media (prefers-reduced-motion: reduce) { .loading-spinner { animation: none; } }
