@import url("fonts.css");
.today-work { margin-bottom: 24px; }
.today-counts { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 12px 20px; border-top: 1px solid var(--border, #edf0f5); color: var(--muted, #717b8b); font-size: 12px; }
.today-counts strong { color: var(--ink, #202735); }
.today-truncated { margin: 0; padding: 0 20px 10px; color: var(--muted, #717b8b); font-size: 12px; }
.today-items { display: grid; }
.today-item { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 16px; padding: 15px 20px; border-top: 1px solid var(--border, #edf0f5); }
.today-item-main { display: grid; gap: 4px; min-width: 0; }
.today-kind { color: var(--orange-dark, #c6451d); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.today-title { color: var(--ink, #202735); font-weight: 650; text-decoration: none; }
.today-title:hover, .today-customer:hover { color: var(--orange-dark, #c6451d); text-decoration: underline; }
.today-context, .today-date { color: var(--muted, #717b8b); font-size: 12px; }
.today-customer { color: inherit; }
.today-customer { padding: 0; border: 0; background: transparent; font: inherit; cursor: pointer; }
.today-date { white-space: nowrap; }
.today-date.overdue { color: #b23b2a; font-weight: 700; }
.today-actions { display: flex; gap: 6px; }
.scope-toggle { display: flex; align-items: center; gap: 8px; color: var(--muted, #717b8b); font-size: 12px; }
.scope-toggle select { min-height: 36px; padding: 0 28px 0 10px; border: 1px solid var(--border, #dfe3ea); border-radius: 8px; color: var(--ink, #202735); background: white; }
.today-empty { padding: 26px 20px; color: var(--muted, #717b8b); }
.today-empty strong { color: var(--ink, #202735); }
.today-empty p { margin: 6px 0 12px; }
@media (max-width: 700px) {
    .today-item { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 14px 16px; }
    .today-item-main { grid-column: 1 / -1; }
    .today-counts { gap: 8px 12px; padding: 12px 16px; }
    .today-truncated { padding: 0 16px 10px; }
    .today-actions { grid-column: 1 / -1; }
    .today-actions .button { flex: 1; }
    .today-work > .panel-head { align-items: flex-start; gap: 12px; }
    .scope-toggle { align-items: flex-start; flex-direction: column; }
}
:root {
    --orange: #ed693c;
    --orange-dark: #c6451d;
    --orange-soft: #fff1e9;
    --ink: #182132;
    --muted: #7a8293;
    --border: #e8ebf0;
    --canvas: #f7f8fa;
    --green: #239572;
    --sidebar: 240px;
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
    color: var(--ink);
    background: var(--canvas);
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
}
button,
input,
select,
textarea {
    font: inherit;
}
a {
    color: inherit;
    text-decoration: none;
}
button,
a,
input,
select,
textarea {
    outline-offset: 4px;
}
button {
    cursor: pointer;
}
button:disabled {
    opacity: 0.55;
    cursor: wait;
}
button svg,
span[data-icon] svg {
    width: 20px;
    height: 20px;
    display: block;
    flex-shrink: 0;
}
svg {
    vertical-align: middle;
}
.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--sidebar);
    background: #fff;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 28px 17px 14px;
    z-index: 30;
}
.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    width: fit-content;
    padding: 0 11px;
    font-family: "Manrope", sans-serif;
    font-weight: 800;
    font-size: 26px;
    letter-spacing: -1px;
    line-height: 1.1;
}
.brand > svg {
    width: 39px;
    height: 34px;
    color: var(--orange);
}
.brand small {
    display: block;
    font-size: 10px;
    letter-spacing: 2px;
    font-family: "DM Sans", sans-serif;
    font-weight: 600;
    color: var(--muted);
    margin-top: 5px;
}
.workspace-label {
    font-size: 11px;
    color: var(--muted);
    margin: 35px 11px 9px;
}
.workspace {
    display: flex;
    gap: 11px;
    align-items: center;
    border: 1px solid var(--border);
    background: #fcfcfd;
    padding: 12px;
    border-radius: 7px;
    font-size: 12px;
}
.workspace span {
    color: #7b8595;
}
.workspace strong {
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
nav {
    margin-top: 24px;
}
.nav-item {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 13px 12px;
    border-radius: 7px;
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 500;
    color: #657083;
    transition: background 0.15s;
}
.nav-item:hover {
    background: #f8f9fb;
}
.nav-item.active {
    color: var(--orange-dark);
    background: var(--orange-soft);
    position: relative;
}
.nav-item.active:before {
    content: "";
    position: absolute;
    left: -17px;
    top: 9px;
    bottom: 9px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--orange);
}
.sidebar-bottom {
    margin-top: auto;
}
.sidebar-note {
    padding: 17px 10px;
    font-size: 10px;
    color: #8c95a3;
    line-height: 1.8;
    margin-bottom: 12px;
}
.sidebar-note small {
    display: block;
    font-size: 9px;
    padding-left: 12px;
}
.status-dot {
    display: inline-block;
    width: 5px;
    height: 5px;
    background: var(--green);
    border-radius: 50%;
    margin-right: 4px;
}
.profile {
    border-top: 1px solid var(--border);
    padding: 17px 4px 0;
    display: flex;
    gap: 10px;
    align-items: center;
}
.profile strong {
    font-size: 11px;
    display: block;
    font-weight: 600;
}
.profile small {
    display: block;
    font-size: 9px;
    color: var(--muted);
    margin-top: 4px;
}
.profile > span:last-child {
    margin-left: auto;
    color: #99a2af;
}
.profile svg {
    width: 15px !important;
}
.avatar {
    display: inline-flex;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    background: #eff1f6;
    color: #647185;
}
.avatar-orange {
    background: #fce6da;
    color: #af552e;
}
.app {
    margin-left: var(--sidebar);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.topbar {
    height: 73px;
    display: flex;
    gap: 22px;
    align-items: center;
    border-bottom: 1px solid var(--border);
    padding: 0 33px;
    background: rgba(255, 255, 255, 0.56);
}
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 11px;
    color: var(--muted);
    white-space: nowrap;
}
.breadcrumb strong {
    font-weight: 500;
    color: #596477;
}
.breadcrumb > span {
    color: #bfc5cf;
}
.global-search {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 310px;
    border: 1px solid var(--border);
    border-radius: 7px;
    padding: 9px 11px;
    background: #fff;
    color: #8992a2;
}
.global-search svg {
    width: 16px !important;
    height: 16px !important;
}
.global-search input {
    border: 0;
    outline: 0;
    width: 100%;
    min-width: 0;
    font-size: 11px;
    color: var(--ink);
    background: transparent;
}
.global-search input::placeholder {
    color: #8c94a2;
}
.global-search kbd {
    white-space: nowrap;
    font: 10px inherit;
    border: 1px solid var(--border);
    border-radius: 3px;
    padding: 2px 4px;
    color: #929bab;
}
.top-avatar {
    width: 31px;
    height: 31px;
    font-size: 11px;
}
.mobile-menu {
    display: none !important;
}
main#main {
    padding: 32px 33px 22px;
    flex: 1;
    max-width: 1800px;
    width: 100%;
    margin: 0 auto;
}
.page-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    gap: 20px;
}
.page-heading h1 {
    font-family: "Manrope", sans-serif;
    font-size: 30px;
    line-height: 1.35;
    letter-spacing: -1.1px;
    font-weight: 800;
    margin: 0 0 7px;
}
.page-heading p {
    color: #828a99;
    font-size: 13px;
    margin: 0;
    line-height: 1.7;
}
.button {
    border: 1px solid transparent;
    border-radius: 7px;
    padding: 10px 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    line-height: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    transition:
        background 0.15s,
        box-shadow 0.15s;
}
.button svg {
    width: 16px;
    height: 16px;
}
.button.primary {
    background: var(--orange);
    color: white;
    box-shadow: 0 3px 6px #ee6b3d12;
}
.button.primary:hover {
    background: #dd582c;
}
.button.secondary {
    border-color: var(--border);
    background: #fff;
    color: #596477;
}
.button.secondary:hover {
    background: #f5f6f9;
}
.button.danger {
    background: #fff0ee;
    color: #c04d43;
    border-color: #f6d6d1;
}
.button.small {
    font-size: 11px;
    padding: 6px 10px;
    line-height: 16px;
}
.icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: #8992a2;
    width: 32px;
    height: 32px;
    border-radius: 6px;
}
.icon-button:hover {
    background: #f2f3f6;
    color: #374151;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 21px;
}
.stat-card {
    border: 1px solid var(--border);
    background: white;
    border-radius: 9px;
    padding: 23px 19px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-height: 135px;
}
.stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--orange-soft);
    color: var(--orange);
    width: 42px;
    height: 42px;
    border-radius: 10px;
    flex-shrink: 0;
}
.stat-icon svg {
    width: 22px;
    height: 22px;
}
.stat-label {
    font-size: 11px;
    color: #717b8c;
    margin: 0 0 8px;
}
.stat-value {
    font-family: "Manrope", sans-serif;
    letter-spacing: -0.8px;
    font-size: 27px;
    line-height: 1.2;
    font-weight: 800;
    white-space: nowrap;
}
.stat-note {
    font-size: 10px;
    color: #929aaa;
    margin-top: 10px;
}
.stat-note span {
    color: var(--green);
    font-weight: 600;
}
.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
    gap: 20px;
}
.panel {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 9px;
    min-width: 0;
}
.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 20px 21px 0;
}
.panel-head h2,
.section-title {
    font-family: "Manrope", sans-serif;
    font-size: 15px;
    font-weight: 750;
    letter-spacing: -0.25px;
    margin: 0;
}
.panel-head .subtle {
    color: #939ba8;
    font-size: 10px;
}
.panel-body {
    padding: 20px 21px;
}
.text-link {
    border: 0;
    background: transparent;
    color: var(--orange-dark);
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 10px;
    white-space: nowrap;
}
.text-link svg {
    width: 14px;
    height: 14px;
}
.text-link:hover {
    text-decoration: underline;
}
.chart-summary {
    padding: 18px 21px 0;
    display: flex;
    justify-content: space-between;
    align-items: end;
}
.chart-total {
    font-family: "Manrope", sans-serif;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.8px;
}
.chart-caption {
    font-size: 10px;
    color: var(--muted);
    margin-top: 5px;
}
.chart-key {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #8d96a4;
    font-size: 9px;
}
.chart-key:before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--orange);
}
.sales-chart {
    padding: 14px 18px 15px;
}
.sales-chart svg {
    width: 100%;
    height: 163px;
    overflow: visible;
}
.chart-labels {
    display: flex;
    justify-content: space-between;
    margin: 2px 10px 0 43px;
    color: #8e97a7;
    font-size: 9px;
}
.task-list {
    padding: 5px 20px 9px;
}
.task-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 18px 0;
    border-top: 1px solid #edf0f4;
}
.task-row:first-child {
    border-top: 0;
}
.task-checkbox {
    appearance: none;
    width: 17px;
    height: 17px;
    border: 1.5px solid #b9c1ce;
    border-radius: 4px;
    margin: 1px 0 0;
    cursor: pointer;
    flex-shrink: 0;
    display: grid;
    place-content: center;
}
.task-checkbox:checked {
    background: var(--orange);
    border-color: var(--orange);
}
.task-checkbox:checked:after {
    content: "✓";
    font-size: 12px;
    color: #fff;
}
.task-content {
    min-width: 0;
    flex: 1;
}
.task-title {
    font-size: 11px;
    font-weight: 600;
    line-height: 1.5;
    display: block;
}
.task-title.completed {
    text-decoration: line-through;
    color: #939bab;
}
.task-subtitle {
    font-size: 10px;
    color: #8a94a4;
    margin: 5px 0 0;
    line-height: 1.5;
}
.task-time {
    font-size: 10px;
    color: #939bab;
    white-space: nowrap;
    margin-top: 2px;
}
.table-wrap {
    overflow: auto;
    padding: 17px 20px 12px;
}
.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    white-space: nowrap;
    font-size: 11px;
}
.data-table thead {
    background: #f7f8fa;
    color: #9299a7;
}
.data-table th {
    font-size: 10px;
    font-weight: 500;
    padding: 12px 13px;
}
.data-table th:first-child {
    border-radius: 6px 0 0 6px;
}
.data-table th:last-child {
    border-radius: 0 6px 6px 0;
}
.data-table td {
    padding: 15px 13px;
    border-bottom: 1px solid #edf0f4;
    color: #707d90;
}
.data-table tr:last-child td {
    border-bottom: 0;
}
.data-table td:first-child {
    color: #283345;
    font-weight: 550;
}
.data-table td.amount {
    color: #39465a;
    font-weight: 600;
}
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 9px;
    border-radius: 20px;
    font-size: 9px;
    font-weight: 500;
    white-space: nowrap;
}
.badge.orange {
    background: #fff0e4;
    color: #d97840;
}
.badge.blue {
    background: #eaf3fe;
    color: #598ec7;
}
.badge.green {
    background: #e8f7ef;
    color: #399778;
}
.badge.gray {
    background: #eef0f5;
    color: #8791a2;
}
.badge.red {
    background: #ffefed;
    color: #c96960;
}
.badge.purple {
    background: #f3edfc;
    color: #9470ba;
}
.activity-list {
    padding: 15px 21px 16px;
}
.activity-row {
    display: flex;
    gap: 12px;
    min-height: 50px;
    position: relative;
}
.activity-row:not(:last-child):before {
    content: "";
    position: absolute;
    left: 7px;
    top: 15px;
    bottom: 0;
    width: 1px;
    background: #edf0f4;
}
.activity-dot {
    margin-top: 5px;
    height: 14px;
    width: 14px;
    border: 3px solid #fff;
    box-shadow: 0 0 0 1px #e8ebf0;
    background: #c2c9d3;
    position: relative;
    border-radius: 50%;
    flex-shrink: 0;
}
.activity-row:first-child .activity-dot {
    background: var(--orange);
    box-shadow: 0 0 0 1px #fbd8c9;
}
.activity-content {
    flex: 1;
    min-width: 0;
    padding-bottom: 12px;
}
.activity-content strong {
    font-size: 10px;
    font-weight: 600;
    display: block;
    line-height: 1.5;
}
.activity-content p {
    font-size: 9px;
    line-height: 1.5;
    color: #959dac;
    margin: 3px 0 0;
}
.activity-date {
    font-size: 9px;
    white-space: nowrap;
    color: #a0a8b5;
    padding-top: 5px;
}
.app-footer {
    display: flex;
    justify-content: space-between;
    color: #a4aab5;
    padding: 2px 33px 21px;
    font-size: 9px;
}
.app-footer b {
    font-weight: 400;
    color: #b9bec8;
    margin-left: 3px;
}
.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
}
.toolbar-group {
    display: flex;
    gap: 10px;
    align-items: center;
}
.search-box {
    display: flex;
    align-items: center;
    gap: 9px;
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 7px;
    padding: 10px 12px;
    color: #9da5b2;
    max-width: 330px;
    width: 100%;
}
.search-box input {
    border: 0;
    outline: 0;
    min-width: 0;
    width: 100%;
    font-size: 12px;
}
.search-box svg {
    width: 16px;
    height: 16px;
}
.filter-select,
.field input,
.field select,
.field textarea {
    border: 1px solid #e3e7ee;
    background: #fff;
    border-radius: 6px;
    padding: 10px 12px;
    color: #4f5e73;
    font-size: 12px;
}
.filter-select {
    max-width: 190px;
}
.result-count {
    font-size: 11px;
    color: #9099a8;
    padding: 15px 22px;
    border-top: 1px solid var(--border);
}
.customer-cell {
    display: flex;
    gap: 11px;
    align-items: center;
}
.customer-cell .avatar {
    border-radius: 9px;
    font-size: 10px;
}
.customer-cell strong {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
}
.customer-cell small {
    font-weight: 400;
    color: #8e97a6;
    font-size: 10px;
}
.row-actions {
    display: flex;
    gap: 3px;
    justify-content: flex-end;
}
.row-actions svg {
    width: 15px;
    height: 15px;
}
.empty-state {
    padding: 55px 20px;
    text-align: center;
    color: var(--muted);
}
.empty-state .empty-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--orange-soft);
    color: var(--orange);
    margin: 0 auto 16px;
    display: grid;
    place-items: center;
}
.empty-state h3 {
    font-size: 15px;
    color: #4a5668;
    margin: 0 0 8px;
}
.empty-state p {
    font-size: 12px;
    line-height: 1.6;
    margin: 0 auto 18px;
    max-width: 340px;
}
.kanban {
    display: grid;
    grid-template-columns: repeat(6, minmax(210px, 1fr));
    gap: 14px;
    overflow: auto;
    padding-bottom: 16px;
}
.kanban-column {
    background: #f0f2f6;
    border: 1px solid #e8ebf0;
    border-radius: 9px;
    padding: 12px;
    min-height: 410px;
}
.kanban-heading {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 2px 10px;
}
.kanban-heading .stage-dot {
    height: 7px;
    width: 7px;
    border-radius: 50%;
}
.kanban-count {
    color: #939cab;
    background: #e5e8ed;
    font-size: 9px;
    border-radius: 4px;
    padding: 2px 5px;
    margin-left: auto;
}
.kanban-total {
    color: #939baa;
    font-size: 10px;
    padding: 0 2px 14px;
}
.deal-card {
    background: #fff;
    border: 1px solid #e5e8ee;
    border-radius: 7px;
    padding: 15px 12px;
    margin-bottom: 11px;
    box-shadow: 0 2px 3px #253a5503;
}
.deal-card h3 {
    font-size: 12px;
    line-height: 1.55;
    margin: 10px 0 9px;
    font-weight: 600;
}
.deal-card .deal-company {
    font-size: 9px;
    color: #8d96a5;
}
.deal-card .deal-value {
    font-family: "Manrope", sans-serif;
    font-weight: 800;
    font-size: 18px;
    margin-bottom: 15px;
    letter-spacing: -0.4px;
}
.deal-card footer {
    display: flex;
    gap: 8px;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f0f1f4;
    padding-top: 12px;
}
.deal-card footer small {
    font-size: 9px;
    color: #939baa;
}
.stage-select {
    border: 1px solid var(--border);
    border-radius: 5px;
    font-size: 9px;
    padding: 5px;
    background: #fff;
    max-width: 110px;
    color: #737f91;
}
.kanban-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 18px;
}
.kanban-empty {
    font-size: 10px;
    text-align: center;
    color: #a3abba;
    padding-top: 42px;
}
.tabs {
    display: flex;
    gap: 5px;
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 7px;
    padding: 4px;
}
.tab {
    border: 0;
    background: transparent;
    border-radius: 5px;
    padding: 7px 12px;
    font-size: 11px;
    color: #8b95a5;
}
.tab.active {
    background: var(--orange-soft);
    color: var(--orange-dark);
}
.tasks-full {
    padding: 0 21px;
}
.tasks-full .task-row {
    padding: 20px 0;
    align-items: center;
}
.tasks-full .task-title {
    font-size: 13px;
}
.tasks-full .task-subtitle {
    font-size: 11px;
}
.tasks-full .task-time {
    font-size: 11px;
}
.tasks-full .task-checkbox {
    width: 19px;
    height: 19px;
    margin-right: 5px;
}
.report-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 20px;
}
.report-grid .sales-chart svg {
    height: 245px;
}
.funnel-item {
    margin: 20px 0;
}
.funnel-meta {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #7c8798;
    margin-bottom: 9px;
}
.funnel-meta strong {
    color: #556176;
    font-weight: 500;
}
.progress-track {
    height: 8px;
    background: #f0f2f6;
    border-radius: 4px;
    overflow: hidden;
}
.progress-track span {
    height: 100%;
    display: block;
    border-radius: 4px;
    background: var(--orange);
}
.settings-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(250px, 1fr);
    gap: 20px;
    max-width: 1000px;
}
.settings-profile {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 26px;
}
.settings-profile .avatar {
    width: 58px;
    height: 58px;
    font-size: 24px;
}
.settings-profile h3 {
    margin: 0 0 5px;
    font-size: 15px;
}
.settings-profile p {
    color: var(--muted);
    font-size: 11px;
    margin: 0;
}
.settings-note {
    font-size: 12px;
    color: #939baa;
    line-height: 1.8;
}
.settings-note strong {
    color: #576478;
}
.settings-form .button {
    margin-top: 20px;
}
.stage-settings {
    max-width: 1000px;
    margin-top: 20px;
}
.stage-settings .panel-head {
    justify-content: flex-start;
}
.stage-settings .panel-head h2,
.stage-preview-title {
    margin: 0;
    color: #182132;
    font-family: Manrope, sans-serif;
    font-size: 16px;
}
.stage-settings .panel-head .subtle {
    margin: 5px 0 0;
}
.stage-rows {
    margin: 0;
    padding: 0;
    list-style: none;
}
.stage-row {
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid #e8ebf0;
}
.stage-marker {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #9aa5b5;
}
.stage-marker.blue { background: #80a9da; }
.stage-marker.orange { background: #ed9a6c; }
.stage-marker.purple { background: #aa91c6; }
.stage-marker.green { background: #79b59c; }
.stage-marker.red { background: #d59b96; }
.stage-name {
    display: grid;
    gap: 5px;
    max-width: 440px;
    color: #626f82;
    font-size: 11px;
}
.stage-name input {
    width: 100%;
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid #e8ebf0;
    border-radius: 7px;
    color: #182132;
    font: inherit;
    font-size: 13px;
}
.stage-name strong { color: #182132; font-size: 13px; }
.stage-name small,
.stage-locked { color: #939baa; font-size: 11px; }
.stage-order { display: flex; gap: 6px; }
.stage-order .button { min-width: 36px; }
.stage-preview-title { margin: 24px 0 12px; font-size: 13px; }
.stage-preview {
    display: flex;
    overflow-x: auto;
    margin-bottom: 14px;
    border: 1px solid #e8ebf0;
    border-radius: 8px;
    background: #f7f8fa;
}
.stage-preview span {
    position: relative;
    flex: 1 0 105px;
    padding: 13px 15px;
    color: #182132;
    font-size: 12px;
    text-align: center;
}
.stage-preview span + span { border-left: 1px solid #e8ebf0; }
.stage-preview span:nth-last-child(-n+2) { color: #239572; }
.stage-settings-form > .button { margin-top: 12px; }
.field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    font-size: 11px;
    color: #626f82;
    font-weight: 500;
}
.field input,
.field select,
.field textarea {
    width: 100%;
    min-width: 0;
    outline-color: var(--orange);
    font-weight: 400;
}
.field textarea {
    min-height: 85px;
    resize: vertical;
}
.field.full {
    grid-column: 1/-1;
}
.field small {
    font-size: 10px;
    color: #9aa2ae;
    font-weight: 400;
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 17px;
}
.form-error {
    margin-top: 15px;
    padding: 12px 14px;
    background: #fff0ee;
    color: #b2493e;
    font-size: 12px;
    border-radius: 6px;
    line-height: 1.6;
}
.form-error[hidden] {
    display: none;
}
.loading-state {
    padding: 130px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #929baa;
    font-size: 13px;
}
.spinner {
    width: 19px;
    height: 19px;
    border: 2px solid #eadbd4;
    border-top-color: var(--orange);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
dialog {
    border: 1px solid var(--border);
    border-radius: 13px;
    padding: 25px;
    width: 540px;
    max-width: calc(100vw - 32px);
    max-height: 90vh;
    overflow: auto;
    box-shadow: 0 30px 100px #16233530;
    color: var(--ink);
}
dialog::backdrop {
    background: #1b273d52;
    backdrop-filter: blur(3px);
}
.dialog-head {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 25px;
}
.dialog-head h2 {
    font-family: "Manrope", sans-serif;
    font-size: 22px;
    letter-spacing: -0.5px;
    margin: 7px 0 0;
}
.eyebrow {
    font-size: 9px;
    letter-spacing: 1.6px;
    color: var(--orange);
    font-weight: 700;
}
.dialog-footer {
    border-top: 1px solid var(--border);
    padding-top: 20px;
    margin-top: 24px;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}
#toast {
    position: fixed;
    bottom: 25px;
    left: calc(50% + 100px);
    transform: translate(-50%, 15px);
    z-index: 100;
    background: #203d35;
    color: white;
    font-size: 12px;
    padding: 13px 20px;
    box-shadow: 0 6px 25px #1f332926;
    border-radius: 8px;
    opacity: 0;
    pointer-events: none;
    transition: 0.2s;
    max-width: 90vw;
}
#toast.visible {
    opacity: 1;
    transform: translate(-50%, 0);
}
#toast.error {
    background: #9e493a;
}
.drawer-scrim {
    display: none;
}
.login-page {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    background: #fff;
}
.login-story {
    background: #fff4ed;
    padding: 47px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}
.login-story:after {
    content: "";
    position: absolute;
    width: 440px;
    height: 440px;
    border: 75px solid #f9dfd055;
    border-radius: 50%;
    right: -220px;
    bottom: -200px;
    pointer-events: none;
}
.login-story .brand {
    padding: 0;
}
.story-content {
    margin: auto 0;
    position: relative;
    z-index: 1;
}
.story-content h1 {
    font-family: "Manrope", sans-serif;
    font-size: clamp(37px, 4.5vw, 70px);
    letter-spacing: -3px;
    line-height: 1.17;
    font-weight: 800;
    margin: 23px 0;
    color: #302e2d;
}
.story-content > p {
    font-size: 15px;
    color: #9c877c;
    line-height: 1.8;
}
.story-card {
    margin-top: 45px;
    background: #ffffffc9;
    border: 1px solid #f6e6db;
    padding: 21px;
    border-radius: 12px;
    max-width: 480px;
    display: flex;
    gap: 17px;
    align-items: center;
    box-shadow: 0 12px 35px #b46e3710;
}
.story-avatars {
    display: flex;
    padding-right: 8px;
}
.story-avatars i {
    display: grid;
    place-items: center;
    font-style: normal;
    font-size: 11px;
    width: 31px;
    height: 31px;
    border-radius: 50%;
    background: #e8d7cb;
    border: 2px solid white;
    color: #927565;
    margin-right: -9px;
}
.story-avatars i:nth-child(2) {
    background: #d9e7e2;
    color: #648378;
}
.story-avatars i:nth-child(3) {
    background: #dddcea;
    color: #84809d;
}
.story-card strong {
    font-size: 12px;
}
.story-card p {
    font-size: 10px;
    color: #a2948b;
    margin: 5px 0 0;
    line-height: 1.6;
}
.story-check {
    margin-left: auto;
    display: grid;
    place-items: center;
    background: #eaf3ed;
    color: #6c9b7b;
    border-radius: 50%;
    width: 26px;
    height: 26px;
}
.story-footer {
    color: #af9788;
    font-size: 10px;
    display: flex;
    justify-content: space-between;
}
.login-main {
    display: grid;
    place-items: center;
    padding: 45px;
}
.login-box {
    width: 100%;
    max-width: 360px;
}
.login-box h2 {
    font-family: "Manrope", sans-serif;
    font-size: 28px;
    letter-spacing: -1px;
    line-height: 1.3;
    margin: 14px 0;
}
.login-box > p {
    font-size: 12px;
    color: #929ba9;
    line-height: 1.8;
    margin-bottom: 32px;
}
.login-box .field {
    margin-bottom: 19px;
    font-size: 11px;
}
.login-box .field input {
    height: 44px;
}
.remember {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #8390a1;
    font-size: 11px;
    margin-bottom: 23px;
}
.remember input {
    accent-color: var(--orange);
}
.login-submit {
    width: 100%;
    height: 44px;
    justify-content: space-between;
}
.demo-helper {
    background: #f8f9fb;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px 16px;
    margin-top: 24px;
    font-size: 11px;
    color: #9aa2af;
}
.demo-helper strong {
    font-size: 11px;
    color: #697689;
    font-weight: 500;
}
.demo-helper p {
    font-size: 10px;
    line-height: 1.8;
    margin: 8px 0 0;
}
.demo-helper code {
    font-family: inherit;
    color: #788497;
}
.login-bottom {
    margin-top: 35px;
    font-size: 10px;
    color: #abb2bd;
    text-align: center;
}
@media (min-width: 1550px) {
    main#main {
        padding-top: 40px;
    }
    .stat-card {
        min-height: 150px;
        padding: 27px;
    }
    .sales-chart svg {
        height: 210px;
    }
    .task-row {
        padding: 23px 0;
    }
    .activity-row {
        min-height: 58px;
    }
    .data-table td {
        padding-top: 19px;
        padding-bottom: 19px;
    }
}
@media (max-width: 1200px) {
    :root {
        --sidebar: 210px;
    }
    .sidebar {
        padding-left: 13px;
        padding-right: 13px;
    }
    .nav-item.active:before {
        left: -13px;
    }
    .brand {
        font-size: 24px;
        padding-left: 5px;
    }
    .topbar {
        padding: 0 24px;
    }
    main#main {
        padding: 27px 24px;
    }
    .stat-card {
        padding: 20px 14px;
        gap: 10px;
    }
    .stat-icon {
        width: 35px;
        height: 35px;
    }
    .stat-value {
        font-size: 23px;
    }
    .stat-label {
        font-size: 10px;
    }
    .dashboard-grid {
        grid-template-columns: 1.4fr 1fr;
        gap: 16px;
    }
    .panel-head {
        padding: 18px 16px 0;
    }
    .panel-head h2 {
        font-size: 14px;
    }
    .task-list {
        padding-left: 16px;
        padding-right: 16px;
    }
    .table-wrap {
        padding: 15px 14px;
    }
    .data-table td,
    .data-table th {
        padding-left: 9px;
        padding-right: 9px;
    }
    .global-search {
        width: 270px;
    }
    .task-time {
        font-size: 9px;
    }
    .activity-date {
        font-size: 8px;
    }
}
@media (max-width: 1000px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .stat-card {
        min-height: 115px;
    }
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .dashboard-grid > .panel:nth-child(2) {
        grid-row: 3;
    }
    .sales-chart svg {
        height: 190px;
    }
    .page-heading h1 {
        font-size: 26px;
    }
    .task-row {
        padding: 17px 0;
    }
    .report-grid,
    .settings-grid {
        grid-template-columns: 1fr;
    }
    .breadcrumb {
        font-size: 10px;
    }
    .global-search {
        width: 230px;
    }
    .global-search kbd {
        display: none;
    }
    .login-story {
        padding: 35px;
    }
    .story-card {
        gap: 12px;
        padding: 16px;
    }
    .story-footer span {
        display: none;
    }
}
@media (max-width: 760px) {
    :root {
        --sidebar: 240px;
    }
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.2s;
    }
    .drawer-open .sidebar {
        transform: translateX(0);
    }
    .drawer-open .drawer-scrim {
        display: block;
        position: fixed;
        inset: 0;
        background: #17233b55;
        z-index: 25;
    }
    .app {
        margin-left: 0;
    }
    .topbar {
        height: 63px;
        padding: 0 17px;
        gap: 12px;
    }
    .mobile-menu {
        display: inline-flex !important;
    }
    .breadcrumb {
        font-size: 10px;
        gap: 8px;
    }
    .breadcrumb > span,
    .breadcrumb > strong {
        display: none;
    }
    .global-search {
        width: auto;
        flex: 1;
        padding: 8px;
        max-width: 250px;
    }
    .global-search input {
        font-size: 10px;
    }
    .top-avatar {
        width: 27px;
        height: 27px;
        font-size: 10px;
    }
    main#main {
        padding: 24px 17px;
    }
    .page-heading {
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 20px;
    }
    .page-heading h1 {
        font-size: 23px;
        letter-spacing: -0.8px;
    }
    .page-heading p {
        font-size: 11px;
        line-height: 1.6;
        max-width: 240px;
    }
    .page-heading .button {
        padding: 8px 10px;
        font-size: 10px;
        gap: 4px;
        line-height: 18px;
    }
    .page-heading .button svg {
        width: 13px;
        height: 13px;
    }
    .stats-grid {
        gap: 10px;
        margin-bottom: 16px;
    }
    .stat-card {
        padding: 15px 12px;
        gap: 10px;
        min-height: 117px;
    }
    .stat-icon {
        width: 29px;
        height: 29px;
        border-radius: 7px;
    }
    .stat-icon svg {
        width: 17px;
        height: 17px;
    }
    .stat-value {
        font-size: 22px;
    }
    .stat-label {
        font-size: 9px;
    }
    .stat-note {
        font-size: 8px;
        line-height: 1.5;
        margin-top: 8px;
    }
    .dashboard-grid {
        gap: 15px;
    }
    .panel-head {
        padding: 17px 16px 0;
    }
    .panel-head h2 {
        font-size: 14px;
    }
    .panel-head .subtle {
        font-size: 9px;
    }
    .chart-summary {
        padding: 16px 16px 0;
    }
    .chart-total {
        font-size: 26px;
    }
    .chart-key {
        font-size: 8px;
    }
    .chart-caption {
        font-size: 9px;
    }
    .sales-chart {
        padding: 12px;
    }
    .sales-chart svg {
        height: 160px;
    }
    .chart-labels {
        font-size: 8px;
    }
    .app-footer {
        padding: 0 17px 18px;
        font-size: 8px;
    }
    .toolbar {
        padding: 14px;
        flex-wrap: wrap;
    }
    .toolbar-group {
        width: 100%;
    }
    .search-box {
        max-width: none;
        padding: 9px 10px;
    }
    .filter-select {
        font-size: 10px;
        padding: 9px;
        max-width: 150px;
    }
    .data-table {
        font-size: 10px;
    }
    .data-table td {
        padding: 14px 10px;
    }
    .kanban-toolbar {
        flex-wrap: wrap;
    }
    .kanban-toolbar .search-box {
        max-width: none;
    }
    .tasks-full {
        padding: 0 16px;
    }
    .tasks-full .task-title {
        font-size: 11px;
    }
    .tasks-full .task-subtitle {
        font-size: 9px;
    }
    .tasks-full .task-time {
        font-size: 9px;
    }
    .tasks-full .task-row {
        gap: 10px;
        flex-wrap: wrap;
    }
    .tasks-full .task-content {
        min-width: 130px;
    }
    .tasks-full .row-actions {
        margin-left: auto;
    }
    .tasks-full .badge {
        font-size: 8px;
    }
    .tabs {
        width: 100%;
        justify-content: space-between;
    }
    .tab {
        padding: 6px 9px;
        font-size: 10px;
    }
    .report-grid .sales-chart svg {
        height: 185px;
    }
    .form-grid {
        gap: 14px;
    }
    dialog {
        padding: 20px;
    }
    .dialog-head h2 {
        font-size: 21px;
    }
    .dialog-head {
        margin-bottom: 20px;
    }
    #toast {
        left: 50%;
        font-size: 11px;
        bottom: 16px;
    }
    .login-page {
        grid-template-columns: 1fr;
    }
    .login-story {
        padding: 26px 25px;
    }
    .login-story .brand {
        font-size: 23px;
    }
    .story-content {
        margin: 35px 0 10px;
    }
    .story-content h1 {
        font-size: 38px;
        letter-spacing: -1.7px;
        margin: 13px 0;
    }
    .story-content > p {
        font-size: 12px;
    }
    .story-card,
    .story-footer {
        display: none;
    }
    .login-main {
        padding: 35px 25px 40px;
    }
    .login-box {
        max-width: 420px;
    }
    .login-box h2 {
        font-size: 25px;
    }
    .login-bottom {
        margin-top: 25px;
    }
}
@media (prefers-reduced-motion: reduce) {
    * {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        transition: none !important;
    }
}

.skip-link {
    position: fixed;
    left: 16px;
    top: -80px;
    z-index: 1000;
    padding: 12px 20px;
    border-radius: 8px;
    background: #fff;
    color: #17212f;
    box-shadow: 0 2px 10px #0002;
}
.skip-link:focus {
    top: 12px;
}

/* Shared readable type scale across desktop and touch layouts. */
:root {
    --orange: #ef693b;
    --canvas: #f6f7f9;
    --muted: #687386;
}
.nav-item {
    font-size: 14px;
}
.breadcrumb,
.workspace-label,
.workspace,
.profile strong {
    font-size: 12px;
}
.profile small {
    font-size: 11px;
}
.global-search input,
.button,
.filter-select,
.tab {
    font-size: 13px;
}
.stat-label,
.stat-note,
.chart-caption,
.chart-key,
.data-table th,
.task-subtitle,
.task-time,
.activity-date,
.field,
.field small {
    font-size: 12px;
}
.data-table,
.task-title {
    font-size: 13px;
}
.data-table th,
.data-table td,
.task-subtitle,
.task-time,
.page-heading p {
    color: #687386;
}
.field input,
.field select,
.field textarea {
    font-size: 14px;
}
.login-box .field,
.remember,
.demo-helper,
.demo-helper strong,
.demo-helper p,
.login-bottom {
    font-size: 13px;
}
.login-box > p {
    font-size: 14px;
}
@media (max-width: 760px) {
    .page-heading {
        flex-wrap: wrap;
    }
    .page-heading h1 {
        font-size: 26px;
    }
    .page-heading p {
        font-size: 13px;
        max-width: none;
    }
    .page-heading .button {
        font-size: 13px;
        padding: 10px 14px;
    }
    .breadcrumb {
        display: none;
    }
    .global-search input {
        font-size: 12px;
    }
    .stat-card {
        gap: 8px;
    }
    .stat-label,
    .stat-note {
        font-size: 11px;
    }
    .stat-value {
        font-size: 23px;
    }
    .task-title,
    .tasks-full .task-title {
        font-size: 13px;
    }
    .task-subtitle,
    .task-time,
    .tasks-full .task-subtitle,
    .tasks-full .task-time,
    .panel-head .subtle {
        font-size: 12px;
    }
    .data-table {
        font-size: 13px;
    }
    .data-table th,
    .filter-select,
    .tab {
        font-size: 12px;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    .field input,
    .field select,
    .field textarea {
        font-size: 16px;
    }
    .icon-button,
    .task-checkbox {
        min-width: 36px;
        min-height: 36px;
    }
    .app-footer {
        font-size: 10px;
    }
}
.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;
}

html,
body {
    overflow-x: clip;
}
.app,
main#main,
.panel {
    min-width: 0;
}
.chart-labels {
    font-size: 12px;
}
.activity-title {
    font-size: 12px;
}
.activity-description {
    font-size: 11px;
}
@media (max-width: 760px) {
    .sales-chart svg text {
        font-size: 17px;
    }
    .chart-labels {
        margin-left: 26px;
        font-size: 11px;
    }
    .sales-chart svg {
        overflow: hidden;
    }
}
@media (max-width: 760px) {
    .sales-chart svg text {
        display: none;
    }
}

.panel-head h2 {
    font-size: 18px;
}
.panel-head .subtle {
    font-size: 12px;
}
.activity-content strong {
    font-size: 13px;
}
.activity-content p {
    font-size: 12px;
    color: #687386;
}
.badge {
    font-size: 11px;
}
@media (min-width: 1001px) {
    .topbar {
        height: 56px;
    }
    .page-heading h1 {
        font-size: 38px;
        line-height: 1.2;
    }
    .page-heading p {
        font-size: 16px;
    }
    .stat-value {
        font-size: 30px;
    }
    .stat-label {
        font-size: 13px;
    }
    .data-table td {
        padding-top: 12px;
        padding-bottom: 12px;
    }
    .sales-chart svg {
        height: 155px;
    }
}
/* Relationship detail, quotations and shared workspace tools. */
[hidden]{display:none!important}.sidebar nav{overflow-y:auto;margin-top:17px}.sidebar .nav-item{padding-top:10px;padding-bottom:10px;margin-bottom:3px}.sidebar .workspace-label{margin-top:26px}.auth-links{display:flex;gap:20px;justify-content:space-between;margin-top:28px;font-size:12px;color:var(--orange-dark)}.customer-detail-link{border:0;background:none;text-align:left;padding:0;color:var(--ink);font-weight:600;font-size:inherit;cursor:pointer;display:block;margin-bottom:5px}.customer-detail-link:hover{text-decoration:underline;color:var(--orange-dark)}.reminder-button{display:flex;align-items:center;gap:5px;border:0;background:#fff4ed;border-radius:7px;color:var(--orange-dark);padding:7px 9px;font-size:12px}.reminder-button svg{width:17px;height:17px}.detail-dialog{width:620px}.detail-dialog.wide{width:900px}.detail-dialog .dialog-head h2{font-family:'Manrope',sans-serif;font-size:22px;letter-spacing:-.5px;margin:0}.detail-profile{display:flex;gap:16px;align-items:center;margin-bottom:18px}.detail-profile .avatar{width:58px;height:58px;font-size:18px;border-radius:12px}.detail-profile h3{margin:0 0 6px;font-size:19px}.detail-profile p{margin:0;color:var(--muted);font-size:12px}.detail-contact{display:flex;gap:8px;flex-wrap:wrap}.detail-description{font-size:13px;color:#748092;line-height:1.8;padding:16px;background:#f8f9fb;border-radius:8px;white-space:pre-wrap}.detail-columns{display:grid;grid-template-columns:1fr 1fr;gap:30px;margin-top:8px}.detail-section-title{font-size:14px;margin:27px 0 15px;font-weight:650}.detail-section-title>span{font-size:11px;color:#9ca5b3;margin-left:5px}.detail-record{padding:13px 0;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;gap:15px}.detail-record strong{font-size:12px;font-weight:550;line-height:1.6}.detail-record small{display:block;font-size:11px;color:var(--muted);margin-top:6px}.muted{color:#8792a3;font-size:12px;line-height:1.7;font-weight:400}.note-card{padding:14px;border:1px solid var(--border);background:#fafbfc;border-radius:8px;margin-top:12px}.note-card p{font-size:12px;line-height:1.8;margin:0 0 9px;white-space:pre-wrap;overflow-wrap:anywhere}.note-card footer{display:flex;gap:10px;align-items:center;justify-content:space-between;font-size:10px;color:#99a3b1}.button.text{border:0;background:transparent;color:#ae6e57;padding:3px;font-size:10px}.attachment-row{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:12px 0;border-bottom:1px solid var(--border)}.attachment-row>a{display:flex;align-items:center;gap:10px;font-size:12px;min-width:0;overflow-wrap:anywhere}.attachment-row small{display:block;color:var(--muted);font-size:10px;margin-top:3px}.upload-form{padding:15px;border:1px dashed #dce1e8;border-radius:8px;margin-bottom:8px}.upload-form input[type=file]{font-size:11px;padding:8px;max-width:100%}.permissions-note{margin-top:22px;padding:20px;color:#8792a3;font-size:12px;line-height:1.8}.permissions-note strong{color:#68778b;font-size:13px}.permissions-note p{margin:5px 0 0}.quote-item{display:grid;grid-template-columns:minmax(150px,1fr) 90px 130px 32px;gap:10px;align-items:end;padding:12px 0;border-bottom:1px solid var(--border)}.quote-item .field span{font-size:11px}.quote-item .icon-button{margin-bottom:4px}.quote-item:last-child{margin-bottom:16px}.quote-totals{margin:24px 0 0 auto;width:100%;max-width:340px;padding:18px;background:#fafbfc;border-radius:8px;border:1px solid var(--border)}.quote-totals>div{display:flex;justify-content:space-between;gap:10px;padding:8px 0;font-size:12px;color:#8792a3}.quote-totals strong{color:#4b5b70;font-weight:600}.quote-totals .quote-grand-total{border-top:1px solid var(--border);margin-top:8px;padding-top:15px;font-size:16px;color:var(--ink)}.quote-totals .quote-grand-total strong{color:var(--orange-dark);font-size:20px}.quote-totals small{display:block;font-size:10px;color:#9ca5b3;line-height:1.5;margin-top:10px}.import-result{text-align:center;padding:35px 10px}.import-result strong{font-family:'Manrope',sans-serif;font-size:48px;color:var(--orange)}.import-result p{font-size:15px;margin:6px 0}.import-result small{color:var(--muted);font-size:12px}.calendar-controls{display:flex;gap:7px}.calendar-controls .button{font-size:11px;padding:7px 12px}.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));padding:0 13px 15px}.calendar-weekday{text-align:center;padding:17px 0;font-size:11px;color:#8d97a5}.calendar-day{display:flex;flex-direction:column;text-align:left;align-items:flex-start;gap:6px;min-height:112px;border:1px solid #edf0f4;background:white;margin:0 -1px -1px 0;padding:10px;overflow:hidden}.calendar-day:hover{background:#fff8f3;position:relative;z-index:1}.day-number{font-size:12px;color:#69788c;display:grid;place-items:center;width:25px;height:25px;border-radius:50%}.calendar-day.today .day-number{background:var(--orange);color:white}.calendar-day.other-month{background:#fafbfc}.calendar-day.other-month .day-number{color:#bcc3cf}.calendar-event{display:block;font-size:10px;background:#fff0e6;color:#b9744c;padding:4px 6px;border-radius:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.calendar-event.done{background:#edf6f0;color:#719583;text-decoration:line-through}.calendar-day>small{font-size:9px;color:#99a3b1}.backup-link{margin-top:20px;padding-top:20px;border-top:1px solid var(--border)}
@media(max-width:1000px){.sidebar .nav-item{font-size:12px}.detail-dialog.wide{width:780px}.toolbar-group{flex-wrap:wrap}.calendar-day{min-height:100px}}
@media(max-width:760px){.detail-columns{grid-template-columns:1fr;gap:0}.detail-dialog{padding:19px}.detail-dialog .dialog-head h2{font-size:20px}.detail-profile h3{font-size:17px}.detail-contact .button{white-space:normal;overflow-wrap:anywhere;max-width:100%;font-size:11px}.quote-item{grid-template-columns:1fr 1fr 32px;gap:9px}.quote-item .field:first-child{grid-column:1/-1}.quote-item .field input{font-size:13px}.reminder-button{padding:7px}.reminder-button svg{width:15px}.topbar{gap:8px}.topbar .global-search{max-width:150px}.calendar-grid{padding:0 6px 7px}.calendar-day{padding:5px;min-height:87px;gap:3px}.calendar-event{font-size:8px;padding:3px 4px}.calendar-weekday{font-size:10px}.calendar-day>small{font-size:8px}.day-number{width:22px;height:22px;font-size:11px}.calendar-controls{gap:4px}.calendar-controls .button{font-size:10px;padding:5px 9px}.calendar-controls .button:first-child,.calendar-controls .button:last-child{max-width:85px}.detail-record{gap:10px}.detail-record .button{font-size:10px}.auth-links{font-size:11px;gap:14px}.sidebar nav{margin-bottom:12px}.detail-dialog .form-grid{grid-template-columns:1fr}.quote-totals{max-width:none}.settings-grid .form-grid{grid-template-columns:1fr}}
.form-success{background:#edf7f0;color:#347658;padding:14px;border:1px solid #d5ecdd;border-radius:7px;font-size:12px;line-height:1.7;margin-bottom:18px}
.sidebar{overflow-y:auto}.sidebar>.brand,.sidebar>.workspace,.sidebar>.workspace-label,.sidebar>.sidebar-bottom{flex-shrink:0}.sidebar>nav{flex-shrink:0;overflow:visible}.sidebar-bottom{padding-top:15px}.pagination{display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap}.pagination>div{display:flex;align-items:center;gap:12px}.pagination button:disabled{cursor:default;background:#f7f8fa}.pagination>div>span{color:#8090a3;font-size:11px}
@media(max-width:760px){.pagination{font-size:11px}.pagination>div{width:100%;justify-content:space-between}.sidebar>nav{padding-bottom:5px}.sidebar{padding-bottom:20px}.page-heading>[data-action="export-report"]{font-size:10px}}

.onboarding-card { margin-bottom: 20px; }
.onboarding-card .panel-head { gap: 12px; }
.onboarding-card .panel-head h2 { min-width: 0; }
.onboarding-steps { list-style: none; margin: 0; padding: 4px 22px 18px; display: grid; gap: 8px; font-size: 14px; }
.onboarding-steps li { min-width: 0; overflow-wrap: anywhere; line-height: 1.5; }
.onboarding-steps a, .onboarding-steps span { display: block; padding: 4px 0; }
.onboarding-steps a:hover { color: var(--orange-dark); text-decoration: underline; }
.onboarding-steps li.done a { color: #067647; text-decoration: line-through; }
.onboarding-steps li.done span { color: #067647; text-decoration: line-through; }
.onboarding-steps li span { color: var(--muted); }
@media (max-width: 700px) {
    .onboarding-steps { padding: 4px 16px 16px; }
}

/* Daily workflows: clear filters, readable amounts and safe editing. */
.help-button { width:100%; border:0; background:transparent; text-align:left; font:inherit; cursor:pointer; }
.help-button > span { width:20px; height:20px; border:1.5px solid currentColor; border-radius:50%; display:grid; place-items:center; font-size:13px; font-weight:700; }
.help-dialog { width:680px; }
.help-dialog h2,.unsaved-dialog h2 { font-size:22px; line-height:1.4; margin:0; letter-spacing:-.4px; }
.guide-steps { list-style:none; counter-reset:steps; padding:0; margin:22px 0; display:grid; gap:12px; }
.guide-steps li { counter-increment:steps; }
.guide-steps a { display:grid; grid-template-columns:32px minmax(0,1fr); gap:3px 14px; padding:14px; border:1px solid var(--border); border-radius:9px; }
.guide-steps a::before { content:counter(steps); grid-row:1/3; width:30px; height:30px; display:grid; place-items:center; border-radius:50%; background:var(--orange-soft); color:var(--orange-dark); font-weight:700; }
.guide-steps a:hover { border-color:var(--orange); background:#fffcf9; }
.guide-steps strong { font-size:14px; }
.guide-steps span,.guide-details p { font-size:13px; line-height:1.7; color:#586579; }
.guide-details { border-top:1px solid var(--border); padding:14px 0; }
.guide-details summary { cursor:pointer; font-size:13px; font-weight:600; }
.guide-shortcuts { display:flex; flex-wrap:wrap; align-items:center; gap:8px; font-size:11px; color:#586579; }
.guide-shortcuts kbd { padding:4px 6px; background:#f4f6f8; border:1px solid var(--border); border-radius:4px; font:inherit; }
.unsaved-dialog { width:470px; }
.unsaved-dialog p { font-size:14px; line-height:1.7; color:#586579; }
.unsaved-dialog .dialog-footer { flex-wrap:wrap; }
.field-error-text { color:#a62d24!important; font-size:12px!important; line-height:1.5; }
[aria-invalid=true] { border-color:#bb3c30!important; box-shadow:0 0 0 1px #bb3c30; }
.deal-filters { display:flex; flex-wrap:wrap; gap:10px; align-items:center; }
.deal-filters .search-box { flex:1 1 240px; }
.deal-filters .filter-select { flex:0 1 auto; max-width:100%; }
.deal-view-tabs { flex-shrink:0; margin:0; }
.deal-result-bar { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; padding:16px 0; color:#586579; font-size:12px; }
.deal-list-row { display:grid; grid-template-columns:minmax(160px,1.8fr) minmax(110px,.8fr) minmax(100px,.8fr) minmax(105px,1fr) auto; gap:16px; align-items:center; padding:18px 20px; border-bottom:1px solid var(--border); }
.deal-list-row:last-child { border-bottom:0; }
.deal-list-main { min-width:0; }
.deal-list-main h3 { margin:0 0 6px; font-size:14px; font-weight:650; overflow-wrap:anywhere; }
.deal-list-main p { margin:0; font-size:12px; color:#586579; overflow-wrap:anywhere; }
.deal-list-stage .stage-select { max-width:100%; width:100%; min-height:36px; font-size:12px; }
.deal-list-value { font-size:15px; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.deal-list-meta { display:grid; gap:6px; color:#586579; font-size:12px; }
.deal-list-meta small { font-size:11px; }
.kanban-filtered { grid-template-columns:minmax(240px,350px); }
.kanban-loaded { color:#647185; font-size:11px; line-height:1.4; padding:0 2px 12px; }
.kanban-total span { display:block; font-size:10px; color:#647185; margin-top:2px; }
.task-tabs { flex-wrap:wrap; }
.task-result-count { padding:12px 0; }
.stat-card > div:last-child { min-width:0; }
.stat-value { overflow-wrap:anywhere; font-variant-numeric:tabular-nums; }
.settings-note,.muted,.field small { color:#647185; }
button:disabled { cursor:default; }
:focus-visible { outline:2px solid var(--orange-dark); outline-offset:3px; }
@media(min-width:761px) and (max-width:1200px) { .stats-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:1050px) { .deal-list-row { grid-template-columns:minmax(150px,1fr) 115px 115px; gap:12px; }.deal-list-meta { grid-column:1/3; display:flex; gap:12px; }.deal-list-row .row-actions { justify-content:flex-end; } }
@media(max-width:760px) {
    .deal-filters .search-box { flex-basis:100%; max-width:none; }
    .deal-filters .filter-select { flex:1 1 130px; min-width:0; }
    .deal-view-tabs { width:100%; }
    .deal-view-tabs .tab { flex:1; }
    .deal-list-row { grid-template-columns:minmax(0,1fr) auto; padding:18px 15px; }
    .deal-list-main { grid-column:1/-1; }
    .deal-list-stage { grid-column:1; }
    .deal-list-value { text-align:right; }
    .deal-list-meta { grid-column:1; display:grid; }
    .deal-list-row .row-actions { grid-column:2; }
    .deal-result-bar { font-size:12px; }
    .task-tabs { gap:4px; width:100%; }
    .task-tabs .tab { flex:1 1 auto; min-height:44px; }
    .icon-button,.button,.tab,.stage-select,.filter-select,.reminder-button { min-height:44px; }
    .icon-button { min-width:44px; }
    .topbar .global-search { min-width:0; flex:1; }
    .topbar .global-search input { min-width:0; }
    .help-dialog,.unsaved-dialog { padding:20px; }
    .help-dialog h2,.unsaved-dialog h2 { font-size:20px; }
    .guide-steps a { padding:12px; gap:4px 10px; }
    .unsaved-dialog .dialog-footer .button { width:100%; justify-content:center; }
}
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto!important; animation-duration:.01ms!important; transition-duration:.01ms!important; } }
#help-close { font-size:24px; line-height:1; }
.drawer-close { display:none; }
@media(max-width:760px) { .drawer-close { display:grid; place-items:center; position:absolute; top:10px; right:8px; font-size:24px; z-index:1; } }

.quote-tracking { margin-top: 24px; padding-top: 20px; border-top: 1px solid #e3e7ec; }
.quote-tracking .toolbar-group, .calendar-toolbar, .calendar-toolbar .toolbar-group { flex-wrap: wrap; gap: 10px; }
.agenda-list { padding: 0 20px 20px; }
.agenda-list .detail-record { gap: 16px; }
.agenda-list strong, .detail-record small { overflow-wrap: anywhere; }
.calendar-toolbar label { display: flex; align-items: center; gap: 8px; }
.calendar-toolbar select { padding: 10px; border: 1px solid #dce1e7; border-radius: 7px; background: white; }
.detail-record .toolbar-group { flex-wrap: wrap; gap: 8px; }
@media (max-width: 760px) {
    .agenda-list { padding: 0 14px 14px; }
    .agenda-list .detail-record { align-items: flex-start; }
    .agenda-list strong { font-size: 14px; line-height: 1.5; }
    .agenda-list small { font-size: 12px; line-height: 1.6; }
    .calendar-toolbar { align-items: flex-start; }
    .calendar-toolbar h2 { width: 100%; }
    .detail-dialog .detail-record { flex-wrap: wrap; }
    .detail-dialog .detail-record > div:first-child { min-width: 0; flex: 1 1 180px; }
    .quote-tracking .button, .agenda-list .button { min-height: 44px; }
    .pagination { flex-wrap: wrap; gap: 12px; }
}

/* Quote composition follows the customer's document, with totals kept in reach. */
.quote-editor .quote-intro { color: var(--muted); font-size: 13px; line-height: 1.7; margin: 0 0 18px; }
.quote-section { border-top: 1px solid var(--border); padding: 20px 0; }
.quote-section h3 { font-size: 15px; margin: 0 0 16px; }
.quote-options { margin: 14px 0 0; padding: 12px 14px; background: #f8f9fb; border: 1px solid var(--border); border-radius: 8px; }
.quote-options.full { grid-column: 1 / -1; margin: 0; }
.quote-options summary { cursor: pointer; font-size: 13px; color: var(--ink); }
.quote-options[open] summary { margin-bottom: 14px; }
.quote-options .field + .field { margin-top: 12px; }
.quote-options .form-grid .field + .field { margin-top: 0; }
.quote-validity { align-self: end; }
.quote-validity > span, .quote-line-total > span, .quote-save-bar > div > span { display: block; color: var(--muted); font-size: 12px; margin-bottom: 8px; }
.quote-editor .quote-item { grid-template-columns: minmax(70px,.7fr) minmax(80px,.7fr) minmax(125px,1.4fr) minmax(110px,1fr) 36px; gap: 12px; align-items: end; padding: 16px; border: 1px solid var(--border); border-radius: 8px; margin: 12px 0; background: #fff; }
.quote-editor .quote-description { grid-column: 1 / -1; }
.quote-line-total { padding-bottom: 10px; min-width: 0; }
.quote-line-total output { display: block; font-weight: 650; font-size: 14px; overflow-wrap: anywhere; }
.quote-customer-notice { color: #80532d; font-size: 12px; line-height: 1.7; }
.quote-editor .quote-totals { margin-bottom: 20px; }
.quote-save-bar { position: sticky; bottom: -26px; z-index: 2; background: #fff; padding: 16px 0; margin-top: 20px; border-top: 1px solid var(--border); box-shadow: 0 -8px 16px #fff; flex-wrap: wrap; }
.quote-save-bar > div { margin-right: auto; }
.quote-save-bar > div > strong { display: block; color: var(--orange-dark); font-size: 21px; }
.quote-save-bar > div > span { margin-bottom: 4px; }
.quote-saved { padding: 12px 0; }
.quote-saved > strong { font-size: 28px; color: var(--orange-dark); }
.quote-saved p { color: var(--muted); font-size: 13px; line-height: 1.8; }
.quote-saved .toolbar-group { flex-wrap: wrap; margin-top: 22px; }
@media (max-width: 760px) {
    .quote-editor .quote-item { grid-template-columns: minmax(0,1fr) minmax(0,1fr); padding: 12px; }
    .quote-editor .quote-item .icon-button { grid-column: 2; justify-self: end; min-width: 44px; min-height: 44px; }
    .quote-editor .quote-item input { font-size: 16px; }
    .quote-save-bar { bottom: -19px; gap: 10px; }
    .quote-save-bar > div { flex: 1 1 100%; }
    .quote-save-bar > .button { flex: 1; justify-content: center; }
    .quote-validity .toolbar-group { flex-wrap: wrap; }
}
.relation-picker { position: relative; min-width: 0; }
.relation-picker > label { display: block; margin-bottom: 7px; }
.relation-entry { position: relative; display: flex; align-items: stretch; min-width: 0; }
.relation-entry > input { width: 100%; min-width: 0; padding-right: 68px; }
.relation-clear { position: absolute; right: 5px; top: 3px; bottom: 3px; padding: 0 8px; border: 0; border-radius: 4px; background: transparent; color: var(--muted); cursor: pointer; font-size: 11px; }
.relation-clear:hover { background: #fff1e9; color: var(--orange-dark); }
.relation-popup { position: absolute; left: 0; right: 0; top: 100%; z-index: 10; padding: 8px; border: 1px solid #cbd3df; border-radius: 8px; background: #fff; box-shadow: 0 8px 24px #23304726; max-height: 300px; overflow-y: auto; }
.relation-status { margin: 4px 6px 10px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.relation-popup [role="option"] { padding: 10px; border-radius: 5px; cursor: pointer; color: var(--ink); }
.relation-popup [role="option"]:hover, .relation-popup [role="option"][aria-selected="true"] { background: #fff1e9; }
.relation-popup [role="option"] strong, .relation-popup [role="option"] small { display: block; white-space: normal; overflow-wrap: anywhere; }
.relation-popup [role="option"] strong { font-weight: 550; font-size: 13px; }
.relation-popup [role="option"] small { margin-top: 5px; font-size: 11px; color: var(--muted); }
.relation-popup > .button { width: 100%; justify-content: center; margin-top: 8px; }
@media (max-width: 760px) {
    .relation-entry > input { font-size: 16px; }
    .relation-popup { max-height: 240px; }
    .relation-popup [role="option"] { min-height: 44px; }
}

.password-entry {display:flex;position:relative;align-items:center;width:100%;min-width:0}
.password-entry input {width:100%;padding-right:72px}
.password-toggle {position:absolute;right:8px;border:0;background:transparent;color:var(--muted);font:inherit;font-size:12px;cursor:pointer;padding:8px}
.password-toggle:focus-visible {outline:2px solid var(--orange);outline-offset:1px}
#edit-form .dialog-footer {position:sticky;bottom:0;background:var(--surface,#fff);z-index:2;padding-top:16px;padding-bottom:16px}
.label-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}.label-chip{display:inline-flex;align-items:center;border:1px solid #f1c9b9;border-radius:999px;background:#fff5f0;color:#8d3f24;padding:2px 9px;font-size:11px;font-weight:650;line-height:1.5}.label-settings{display:grid;gap:8px;margin-top:16px}.label-settings form{display:flex;gap:8px;align-items:center}.label-settings input{min-width:0;flex:1}.label-option{display:flex;align-items:center;gap:10px;padding:8px 4px;cursor:pointer}.label-option input{width:18px;height:18px}

.interaction-timeline{margin-top:24px;padding:18px;background:#fbfcfd;border:1px solid var(--border);border-radius:10px}.interaction-form{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding-bottom:16px;border-bottom:1px solid var(--border)}.interaction-form .field:nth-child(2){grid-column:1/-1}.interaction-form textarea{min-height:72px}.interaction-item{padding:14px 0;border-bottom:1px solid var(--border);overflow-wrap:anywhere}.interaction-item p{margin:6px 0;color:var(--muted);font-size:12px;white-space:pre-wrap}
@media(max-width:760px){.interaction-form{grid-template-columns:1fr}.interaction-form .field:nth-child(2){grid-column:auto}.interaction-timeline{padding:13px}}

.install-steps { margin: 28px 0 0; padding-left: 20px; display: grid; gap: 10px; color: var(--muted, #64748b); }
.install-steps li.current { color: inherit; font-weight: 650; }
.requirements-table { width: 100%; border-collapse: collapse; margin: 18px 0 22px; font-size: 13px; }
.requirements-table th, .requirements-table td { text-align: left; padding: 7px 4px; border-bottom: 1px solid #e5e7eb; }
.requirements-table tr.missing td { color: #b42318; font-weight: 600; }
.requirements-table tr.ok td { color: #067647; }
.license-banner { margin: 0 0 18px; padding: 11px 14px; border-radius: 10px; font-size: 13px; border: 1px solid; line-height: 1.5; }
.license-banner.info { background: #eff8ff; border-color: #b2ddff; color: #175cd3; }
.license-banner.warning { background: #fffaeb; border-color: #fedf89; color: #b54708; }
.license-banner a { color: inherit; font-weight: 650; text-decoration: underline; text-underline-offset: 2px; }
.license-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 16px; margin: 0 0 14px; font-size: 13px; }
.license-facts dt { color: var(--muted); }
.license-facts dd { margin: 0; overflow-wrap: anywhere; }
.license-modules { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 4px; font-size: 13px; }
.license-modules .off { color: var(--muted); }
@media (max-width: 480px) {
    .license-facts { grid-template-columns: minmax(0, 1fr); gap: 2px; }
    .license-facts dd { margin-bottom: 8px; }
    .upload-form input[type="file"] { max-width: 100%; }
}
.recovery-codes { background: #f8fafc; border: 1px solid #e5e7eb; border-radius: 10px; padding: 12px 14px; font-size: 14px; line-height: 1.8; user-select: all; }
.enrollment-qr { overflow-x: auto; margin: 12px 0; }
.enrollment-qr svg { max-width: 100%; height: auto; }

.demo-banner { margin: 20px 33px 0; padding: 11px 14px; border-radius: 10px; border: 1px solid #f7c6b2; background: #fff4ef; color: #9a3a17; font-size: 13px; line-height: 1.5; }
.demo-banner strong { font-weight: 700; }
.login-box .demo-banner { margin: 0 0 16px; }
@media (max-width: 1200px) { .demo-banner { margin: 16px 24px 0; } }
@media (max-width: 760px) { .demo-banner { margin: 12px 17px 0; } }
