/* Today page - slice C UI redesign. Spec: docs/today-page-spec.md §3, §5.2.
   Mockup: .superpowers/brainstorm/4820-1777992084/content/today-final.html */

:root {
    --today-tg: #0088cc;
    --today-email: #6c5ce7;
    --today-todo: #d4a017;
    --today-overdue: #c44;
    --today-legacy: #888;
    --today-spam-bg: #fff8f8;
    --today-spam-border: #f88;
    --today-card-bg: #fff;
    --today-card-border: #ddd;
    --today-radius: 10px;
    --today-page-bg: #f7f7f8;
}

#page-today {
    color: #1a1a1a;
    background: var(--today-page-bg);
}
#page-today .page-header h1 { font-weight: 800; }

/* Filter chips */
.today-chips {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.today-chip {
    background: #fff;
    border: 1px solid var(--today-card-border);
    color: #555;
    padding: 5px 12px;
    border-radius: 7px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: background .12s ease, color .12s ease, border-color .12s ease;
}
.today-chip:hover { border-color: #999; }
.today-chip[aria-pressed="true"] {
    background: #1a1a1a;
    border-color: #1a1a1a;
    color: #fff;
    font-weight: 700;
}
.today-chip[data-filter="hidden"] { color: #888; }
.today-chip[data-filter="hidden"][aria-pressed="true"] { color: #fff; }
.today-funnel-switches {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.today-funnel-switch {
    background: #fff;
    border: 1px solid #d8dde5;
    color: #454b54;
    padding: 5px 10px;
    border-radius: 7px;
    font-weight: 700;
    font-size: 12px;
    line-height: 1.2;
    cursor: pointer;
    transition: background .12s ease, color .12s ease, border-color .12s ease;
}
.today-funnel-switch:hover {
    border-color: #9aa5b1;
}
.today-funnel-switch[aria-pressed="true"] {
    background: #2f80ed;
    border-color: #2f80ed;
    color: #fff;
}
.today-funnel-switch--overdue {
    border-color: #f1a9a9;
    color: #b91c1c;
}
.today-funnel-switch--overdue[aria-pressed="true"] {
    background: #c44;
    border-color: #c44;
    color: #fff;
}
.today-search {
    margin-left: auto;
    color: #888;
    font-size: 13px;
    user-select: none;
    padding: 5px 8px;
}

/* Sections */
.today-section { margin-bottom: 14px; }
.today-section__head {
    font-weight: 800;
    font-size: 14px;
    margin-bottom: 8px;
    padding: 0 2px;
}
.today-section__head .today-section__count {
    color: #888;
    font-weight: 500;
}
.today-section__list {
    display: grid;
    gap: 6px;
}
.today-load-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 0 2px;
    color: #667085;
    font-size: 11px;
    font-weight: 700;
}
.today-empty {
    color: #888;
    font-size: 12px;
    padding: 12px;
    background: #fcfcfd;
    border: 1px dashed #e3e6ea;
    border-radius: var(--today-radius);
    text-align: center;
}

/* Card base */
.today-card {
    background: var(--today-card-bg);
    border: 1px solid var(--today-card-border);
    border-left: 3px solid var(--today-card-border);
    border-radius: var(--today-radius);
    padding: 10px;
    position: relative;
}
.today-card--row { padding: 10px 12px; }
.today-card--tg { border-left-color: var(--today-tg); }
.today-card--email { border-left-color: var(--today-email); }
.today-card--todo { border-left-color: var(--today-todo); }
.today-card--overdue { border-left-color: var(--today-overdue); }
.today-card--legacy { border-left-color: var(--today-legacy); }
.today-card--spam {
    background: var(--today-spam-bg);
    border-color: var(--today-spam-border);
    border-left-color: var(--today-spam-border);
    color: #888;
}

/* Section 1 cards (TG/email rich, with chat preview) */
.today-card__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 6px;
}
.today-card__title {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 13px;
    line-height: 1.45;
    color: #1a1a1a;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.today-card__title strong { font-weight: 700; }
.today-card__title-meta {
    color: #888;
    font-size: 10px;
    margin-left: 6px;
    font-weight: 500;
}
.today-card__order-badge {
    display: inline-block;
    background: #e8f4ea;
    color: #2a7a3a;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    margin-left: 6px;
    white-space: nowrap;
    vertical-align: middle;
}
.today-card__new-badge {
    display: inline-block;
    background: #fff7e6;
    color: #b54708;
    padding: 1px 5px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 700;
    margin-left: 6px;
    white-space: nowrap;
    vertical-align: middle;
}

.today-card__wait-badge {
    display: inline-block;
    padding: 1px 5px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    margin-left: 6px;
    white-space: nowrap;
    vertical-align: middle;
}
.today-card__wait-badge--fresh { background: #f2f4f7; color: #555; }
.today-card__wait-badge--warm { background: #fff7e6; color: #b54708; }
.today-card__wait-badge--old { background: #fff0e0; color: #c2410c; }
.today-card__wait-badge--critical { background: #fee2e2; color: #b91c1c; font-weight: 800; }

.today-card__primary {
    background: var(--today-tg);
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 11px;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1.5;
    display: inline-block;
}
.today-card__primary:hover { filter: brightness(1.05); color: #fff; }
.today-card--email .today-card__primary { background: var(--today-email); }
.today-card--todo .today-card__primary,
.today-card--overdue .today-card__primary { background: var(--today-tg); }

.today-card__content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
    gap: 12px;
    align-items: stretch;
    margin-bottom: 8px;
}

.today-card__conversation {
    min-width: 0;
}

.today-card__messages {
    background: #fafafa;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 11px;
    line-height: 1.5;
    margin-bottom: 8px;
    color: #1a1a1a;
}
.today-card__msg { margin: 1px 0; overflow-wrap: anywhere; word-break: break-word; }
.today-card__msg--client { color: #1a1a1a; }
.today-card__msg--us {
    text-align: right;
    color: #666;
}
.today-card__one-liner {
    font-size: 11px;
    color: #555;
    margin-top: 3px;
    line-height: 1.45;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.today-card__glob-note {
    margin-top: 6px;
    padding: 4px 8px;
    background: #fff7e6;
    color: #92400e;
    border-radius: 5px;
    font-size: 11px;
    line-height: 1.4;
    font-weight: 500;
}
.today-card__draft-reply {
    margin-top: 6px;
    padding: 6px 10px;
    background: #e8f0ff;
    color: #1e40af;
    border-radius: 5px;
    font-size: 11px;
    line-height: 1.45;
    border-left: 2px solid #3b82f6;
}
.today-card__draft-reply strong {
    font-weight: 700;
}

.today-tags {
    display: grid;
    gap: 5px;
    margin-top: 8px;
}
.today-tags--compact {
    display: inline-flex;
    align-items: center;
    margin: 0 0 0 6px;
    vertical-align: middle;
}
.today-tags__controls,
.today-tags__chips {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}
.today-tags--compact .today-tags__controls {
    display: inline-flex;
    gap: 4px;
    flex-wrap: nowrap;
    vertical-align: middle;
}
.today-tags__select {
    min-width: 128px;
    max-width: 220px;
    height: 28px;
    border: 1px solid #d7dce2;
    border-radius: 6px;
    background: #fff;
    color: #333;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
}
.today-tags--compact .today-tags__select {
    min-width: 0;
    width: 108px;
    max-width: 108px;
    height: 22px;
    padding: 1px 18px 1px 6px;
    border-radius: 5px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
}
.today-tags--compact .today-tags__select[aria-label="Бюджет"] {
    width: 82px;
    max-width: 82px;
}
.today-tags--compact .today-tags__select[aria-label="Квалификация"] {
    width: 122px;
    max-width: 122px;
}
.today-tags__chip {
    border: 1px solid #d7e4d8;
    background: #f0f8f1;
    color: #25602f;
    border-radius: 5px;
    padding: 2px 7px;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
    line-height: 1.5;
}
.today-tags__chip:hover {
    border-color: #8fc79b;
    background: #e6f4e8;
}
.today-tag-filter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid #d7e4d8;
    border-left: 3px solid #3d8b4a;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 8px;
    font-size: 13px;
}
.today-tag-filter span {
    color: #777;
    font-weight: 500;
}

.today-comment {
    display: grid;
    gap: 5px;
    margin-top: 8px;
}
.today-comment__toggle {
    width: fit-content;
    display: inline-flex;
    gap: 5px;
    align-items: center;
    border: 1px solid #d7dce2;
    border-radius: 6px;
    background: #fff;
    color: #555;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
    padding: 4px 8px;
    cursor: pointer;
}
.today-comment__toggle:hover {
    border-color: #aeb8c4;
    background: #f8fafc;
}
.today-comment__toggle--has-note {
    border-color: #d7e4d8;
    background: #f0f8f1;
    color: #25602f;
}
.today-comment__chevron {
    color: #777;
    font-size: 10px;
}
.today-comment__input {
    width: 100%;
    min-height: 38px;
    max-height: 140px;
    resize: vertical;
    border: 1px solid #d7dce2;
    border-radius: 6px;
    background: #fff;
    color: #222;
    font-size: 11px;
    line-height: 1.45;
    padding: 5px 7px;
    box-sizing: border-box;
}
.today-comment__input:focus {
    outline: none;
    border-color: #8fb6d9;
    box-shadow: 0 0 0 2px rgba(0, 136, 204, 0.12);
}
.today-comment__bar {
    display: flex;
    justify-content: flex-end;
}

.today-funnel-control {
    display: grid;
    gap: 4px;
    margin-top: 8px;
    padding: 7px 8px;
    border: 1px solid #e1e5ea;
    border-radius: 7px;
    background: #fbfcfd;
}
.today-funnel-control--overdue {
    border-color: #f04438;
    background: #fff5f5;
}
.today-funnel-control__top {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}
.today-funnel-control__top span {
    color: #777;
    font-size: 10px;
    font-weight: 700;
}
.today-funnel__select {
    min-width: 150px;
    max-width: 240px;
    height: 28px;
    border: 1px solid #d7dce2;
    border-radius: 6px;
    background: #fff;
    color: #222;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
}
.today-funnel-control__hint {
    color: #555;
    font-size: 10px;
    line-height: 1.35;
}
.today-funnel-board {
    display: grid;
    grid-template-columns: repeat(7, minmax(150px, 1fr));
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
}
.today-funnel-stage {
    min-width: 150px;
    display: grid;
    align-content: start;
    gap: 7px;
    border: 1px solid #e1e5ea;
    border-radius: 8px;
    background: #fff;
    padding: 9px;
}
.today-funnel-stage--overdue {
    border-color: #f04438;
    box-shadow: inset 3px 0 0 #f04438;
}
.today-funnel-stage__head {
    display: flex;
    justify-content: space-between;
    gap: 6px;
    align-items: center;
    font-size: 12px;
}
.today-funnel-stage__head span {
    min-width: 22px;
    height: 22px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: #f2f4f7;
    color: #555;
    font-size: 11px;
    font-weight: 800;
}
.today-funnel-stage__hint {
    color: #777;
    font-size: 10px;
    line-height: 1.35;
}
.today-funnel-stage__rows {
    display: grid;
    gap: 5px;
}
.today-funnel-row {
    width: 100%;
    display: grid;
    gap: 2px;
    text-align: left;
    border: 1px solid #e7eaee;
    border-radius: 6px;
    background: #fbfcfd;
    color: #222;
    padding: 6px 7px;
    cursor: pointer;
}
.today-funnel-row:hover {
    border-color: #b7c3cf;
    background: #f7fafc;
}
.today-funnel-row--overdue {
    border-color: #f04438;
    background: #fff5f5;
}
.today-funnel-row__title {
    font-size: 11px;
    font-weight: 800;
    overflow-wrap: anywhere;
}
.today-funnel-row__meta {
    font-size: 10px;
    color: #777;
    font-weight: 700;
}
.today-funnel-empty {
    color: #999;
    font-size: 10px;
    padding: 6px 2px;
}

.today-card__order-panel {
    display: grid;
    gap: 8px;
    align-content: start;
    min-width: 0;
    padding: 9px;
    border: 1px solid #e3e6ea;
    border-radius: 8px;
    background: #fff;
}

.today-card__order-panel--empty {
    background: #f8fafc;
}

.today-card__order-panel--linked {
    background: #f4fff7;
    border-color: #c7ead1;
}

.today-card__order-panel-title {
    font-size: 11px;
    font-weight: 800;
    color: #1a1a1a;
}

.today-card__order-panel-hint {
    color: #667085;
    font-size: 11px;
    line-height: 1.4;
}

.today-card__order-panel-list {
    display: grid;
    gap: 4px;
}

.today-order-progress {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    background: #eaf7ee;
    color: #246833;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
    padding: 6px 8px;
}

.today-order-progress__bar {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(42, 122, 58, 0.25), transparent);
    animation: today-order-progress 1s linear infinite;
    transform: translateX(-100%);
}

.today-order-progress__text {
    position: relative;
    z-index: 1;
}

.today-card__order-panel-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.today-card__actions {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    align-items: center;
}
.today-card__btn {
    background: #fff;
    border: 1px solid #777;
    color: #333;
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: background .1s ease;
    white-space: nowrap;
    line-height: 1.5;
}
.today-card__btn:hover { background: #f5f5f5; }
.today-card__btn--accent {
    border-color: var(--today-tg);
    color: var(--today-tg);
}
.today-card__btn--success {
    border-color: #2a7a3a;
    color: #2a7a3a;
}
.today-card__btn--reply {
    background: #2a7a3a;
    border-color: #2a7a3a;
    color: #fff;
    font-weight: 700;
}
.today-card__btn--reply:hover,
.today-card__btn--reply.today-card__btn--active {
    background: #236732;
    border-color: #236732;
    color: #fff;
}
.today-card__btn--muted {
    border-color: #ccc;
    color: #888;
}
.today-card__btn--danger {
    border-color: var(--today-overdue);
    color: var(--today-overdue);
}
.today-card__btn--active {
    background: var(--today-tg);
    color: #fff;
    border-color: var(--today-tg);
    font-weight: 700;
}

/* Section 2 row layout (todo cards) */
.today-card__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}
.today-card__row-left {
    flex: 1 1 auto;
    min-width: 0;
}
.today-card__row-actions {
    display: flex;
    gap: 5px;
    flex-shrink: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* Spam compact card */
.today-card--spam .today-card__head { margin: 0; }
.today-card--spam .today-card__title { color: #888; font-size: 11px; }
.today-card--spam .today-card__title strong { color: #c66; }
.today-section--internal .today-section__head {
    color: #5d4a11;
}
.today-section__head--toggle {
    width: 100%;
    border: 0;
    background: transparent;
    padding: 0;
    text-align: left;
    cursor: pointer;
}
.today-card--internal {
    border-color: #ead48a;
    background: #fffaf0;
}
.today-card--internal .today-card__title strong {
    color: #4f3f10;
}
.today-card__content--internal {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
}

.today-order-dropdown__order-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 28px;
    gap: 4px;
    align-items: stretch;
}

.today-order-dropdown__detach {
    border: 0;
    border-radius: 6px;
    background: #f3f3f3;
    color: #777;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
}

.today-order-dropdown__detach:hover {
    background: #ffe8e8;
    color: #b42318;
}

.today-order-dropdown__detach:disabled {
    cursor: wait;
    opacity: 0.75;
}

.today-order-dropdown__detach--busy,
.today-order-dropdown__detach--busy:hover {
    background: #eaf7ee;
    color: #2a7a3a;
}

.today-order-dropdown__spinner {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid rgba(42, 122, 58, 0.22);
    border-top-color: #2a7a3a;
    border-radius: 50%;
    animation: today-order-spin .65s linear infinite;
    vertical-align: middle;
}

@keyframes today-order-progress {
    to { transform: translateX(100%); }
}

@keyframes today-order-spin {
    to { transform: rotate(360deg); }
}

/* Reminder inline dropdown */
.today-reminder-dropdown {
    position: absolute;
    z-index: 20;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 8px;
    width: 240px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    color: #1a1a1a;
    margin-top: 4px;
}
.today-reminder-dropdown__title {
    font-weight: 700;
    font-size: 11px;
    color: #555;
    margin-bottom: 6px;
}
.today-reminder-dropdown__presets {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    margin-bottom: 6px;
}
.today-reminder-dropdown__preset {
    background: #f5f5f5;
    border: 1px solid #e3e6ea;
    padding: 5px 6px;
    border-radius: 5px;
    font-size: 11px;
    text-align: center;
    cursor: pointer;
    font-weight: 500;
}
.today-reminder-dropdown__preset:hover { background: #ebebeb; border-color: #999; }
.today-reminder-dropdown__divider {
    border-top: 1px solid #eee;
    margin: 6px 0;
}
.today-reminder-dropdown__row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #888;
    margin: 4px 0;
}
.today-reminder-dropdown__row input[type="date"],
.today-reminder-dropdown__row input[type="text"] {
    flex: 1 1 auto;
    border: 1px solid #e3e6ea;
    border-radius: 5px;
    padding: 4px 6px;
    font-size: 11px;
}
.today-reminder-dropdown__link {
    background: none;
    border: 0;
    color: #555;
    font-size: 11px;
    cursor: pointer;
    padding: 4px 0;
    text-align: left;
    width: 100%;
}
.today-reminder-dropdown__link:hover { color: var(--today-tg); }

/* Order inline dropdown */
.today-order-dropdown {
    position: absolute;
    z-index: 21;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 8px;
    width: min(320px, calc(100% - 24px));
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    color: #1a1a1a;
    margin-top: 4px;
}

.today-order-dropdown__action,
.today-order-dropdown__order {
    width: 100%;
    border: 0;
    background: transparent;
    color: #1a1a1a;
    border-radius: 6px;
    padding: 7px 8px;
    text-align: left;
    cursor: pointer;
    font-size: 12px;
}

.today-order-dropdown__action {
    font-weight: 800;
}

.today-order-dropdown__action:hover,
.today-order-dropdown__order:hover {
    background: #f5f5f5;
}

.today-order-dropdown__divider {
    border-top: 1px solid #eee;
    margin: 6px 0;
}

.today-order-dropdown__title {
    color: #888;
    font-size: 11px;
    font-weight: 700;
    margin: 0 0 4px;
}

.today-order-dropdown__orders {
    display: grid;
    gap: 3px;
}

.today-order-dropdown__order-title,
.today-order-dropdown__order-status {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.today-order-dropdown__order-title {
    font-weight: 700;
}

.today-order-dropdown__order-status {
    margin-top: 2px;
    color: #777;
    font-size: 11px;
}

.today-order-dropdown__empty {
    padding: 7px 8px;
    color: #888;
    font-size: 11px;
}

/* Leads inbox redesign */
.today-header-main {
    align-items: center;
    margin-bottom: 6px;
}
.today-header-main__actions {
    align-items: center;
    gap: 6px;
}
.today-segment-bar,
.today-funnel-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.today-segment-bar {
    margin-bottom: 5px;
}
.today-funnel-bar {
    padding: 4px 0 6px;
    margin-bottom: 6px;
    border-bottom: 1px solid #e4e7ec;
}
.today-chip {
    min-height: 26px;
    padding: 4px 10px;
    border-radius: 7px;
    font-size: 12px;
}
.today-funnel-switches {
    width: 100%;
}
.today-funnel-switch {
    border-radius: 999px;
    padding: 3px 8px;
    font-size: 11px;
    color: #3f4752;
}
.today-funnel-switch span:not(.today-funnel-switch__dot) {
    color: #667085;
    font-weight: 800;
}
.today-funnel-switch__dot {
    margin-right: 5px;
    font-size: 9px;
}
.today-funnel-switch--empty {
    color: #98a2b3;
    background: #fafafa;
}
.today-funnel-switch--empty span:not(.today-funnel-switch__dot) {
    color: #b0b7c3;
}
.today-funnel-switch[aria-pressed="true"] span {
    color: inherit;
}
.today-search {
    margin-left: 0;
}
.today-toolbar {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    padding: 5px 0 6px;
    margin-bottom: 6px;
    border-bottom: 1px solid #e4e7ec;
    color: #667085;
    font-size: 11px;
}
.today-toolbar__count {
    margin-right: auto;
    color: #1f2933;
    font-weight: 800;
}
.today-toolbar__control {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
}
.today-channel-filter {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 2px;
    border: 1px solid #d0d5dd;
    border-radius: 7px;
    background: #fff;
}
.today-channel-filter__btn {
    height: 20px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: #667085;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    padding: 2px 7px;
    cursor: pointer;
}
.today-channel-filter__btn[aria-pressed="true"] {
    background: #1a1a1a;
    color: #fff;
}
.today-toolbar__select {
    width: auto !important;
    height: 24px !important;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    background: #fff;
    color: #344054;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
}
.today-toolbar__dir,
.today-toolbar__reset,
.today-toolbar__chip,
.today-toolbar__mine {
    height: 24px;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    background: #fff;
    color: #344054;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 7px;
    cursor: pointer;
}
.today-toolbar__mine.is-active {
    border-color: #111827;
    background: #111827;
    color: #fff;
}
.today-toolbar__chips {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    width: 100%;
}
.today-toolbar__chip {
    height: 22px;
    background: #f2f4f7;
    border-color: #e4e7ec;
}
.today-toolbar__reset {
    height: 22px;
    color: #667085;
}
.today-lead-card {
    display: grid;
    gap: 0;
    padding: 0;
    overflow: hidden;
    border-left-width: 4px;
    border-radius: 9px;
}
.today-lead-card.today-card {
    padding: 0;
}
.today-lead-card__main {
    padding: 7px 10px 0;
}
.today-lead-card__identity {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
}
.today-lead-card__person {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    min-width: 0;
}
.today-lead-card__person strong {
    font-size: 13px;
    line-height: 1.25;
    color: #171717;
}
.today-lead-card__person span {
    color: #7b8492;
    font-size: 10px;
    font-weight: 700;
}
.today-lead-card__message {
    color: #15181d;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.35;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
}
.today-lead-card__message::before {
    content: "входящее";
    display: block;
    color: #98a2b3;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 1px;
}
.today-lead-card__message--empty {
    color: #98a2b3;
    font-weight: 600;
}
.today-context-strip {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    margin: 0 0 7px;
}
.today-context-chip {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    border: 1px solid #e4e7ec;
    border-radius: 999px;
    background: #f8fafc;
    color: #5f6b7a;
    font-size: 10px;
    font-weight: 750;
    line-height: 1.2;
    padding: 2px 7px;
}
button.today-context-chip {
    cursor: pointer;
}
.today-context-chip--warn {
    background: #fff7ed;
    border-color: #fed7aa;
    color: #9a3412;
}
.today-context-chip--value {
    background: #eef8f0;
    border-color: #cfe9d5;
    color: #25602f;
}
.today-context-chip--return {
    background: #eef4ff;
    border-color: #c7d7fe;
    color: #2f4d9c;
}
.today-context-chip--note {
    max-width: 100%;
    border-radius: 8px;
}
.today-inactive-note {
    margin: -2px 0 8px;
    color: #667085;
    font-size: 11px;
    font-weight: 700;
}
.today-lead-card__actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}
.today-history {
    border-top: 1px solid #eef0f3;
    background: #fbfcfd;
    margin: 0 -10px;
    padding: 7px 10px 8px;
}
.today-history__head {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 6px;
}
.today-history__head strong {
    font-size: 11px;
    color: #344054;
}
.today-history__head span,
.today-history__footer {
    font-size: 10px;
    color: #98a2b3;
    font-weight: 700;
}
.today-history__list {
    display: grid;
    gap: 4px;
    max-height: 360px;
    overflow: auto;
    padding-right: 2px;
}
.today-history__msg {
    border: 1px solid #edf0f4;
    background: #fff;
    border-radius: 7px;
    padding: 5px 7px;
}
.today-history__msg--out {
    background: #f6fbf7;
    border-color: #dcefe0;
}
.today-history__meta {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 2px;
    font-size: 10px;
    color: #98a2b3;
    font-weight: 700;
}
.today-history__meta strong {
    color: #667085;
}
.today-history__meta a {
    color: var(--today-tg);
    text-decoration: none;
}
.today-history__text {
    font-size: 11px;
    line-height: 1.35;
    color: #1d2939;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.today-history__attachments {
    margin-top: 4px;
    font-size: 10px;
    line-height: 1.3;
    color: #667085;
    overflow-wrap: anywhere;
}
.today-history__empty,
.today-history__error {
    border: 1px dashed #e4e7ec;
    border-radius: 7px;
    color: #98a2b3;
    font-size: 11px;
    font-weight: 700;
    padding: 8px;
}
.today-history__error {
    border-color: #fecdca;
    background: #fffbfa;
    color: #b42318;
    margin-bottom: 6px;
}
.today-history__footer {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}
.today-lead-card .today-card__primary {
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
}
.today-lead-card .today-card__btn {
    min-height: 28px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 750;
}
.today-lead-card .today-card__btn--reply {
    background: #f0f8f1;
    color: #25602f;
    border-color: #a9d5b0;
}
.today-lead-card .today-card__btn--reply:hover,
.today-lead-card .today-card__btn--reply.today-card__btn--active {
    background: #dff0e3;
    color: #1f5a2b;
    border-color: #8bc695;
}
.today-card__btn--ghost {
    border-color: transparent;
    background: transparent;
    color: #667085;
}
.today-card__btn--ghost:hover {
    background: #f2f4f7;
}
.today-card__btn--danger-text {
    border-color: transparent;
    background: transparent;
    color: #b42318;
}
.today-card__btn--danger-text:hover {
    background: #fef3f2;
    color: #912018;
}
.today-card__btn--compact {
    min-height: 24px;
    padding: 2px 7px;
    font-size: 11px;
}
.today-deal-zone {
    display: grid;
    gap: 3px;
    padding: 6px 10px 7px;
    background: #f8fafc;
    border-top: 1px solid #e4e7ec;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
}
.today-deal-zone--overdue {
    background: #fff5f5;
}
.today-deal-zone__label {
    color: #7b8492;
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .04em;
    grid-column: 1 / -1;
}
.today-deal-zone__row {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    min-width: 0;
}
.today-deal-zone__row--stage,
.today-deal-zone__hint,
.today-deal-zone__row--business,
.today-deal-zone__row--tags,
.today-deal-zone__row--order,
.today-deal-zone__row--comment {
    grid-column: 1 / -1;
}
.today-deal-zone__row--stage,
.today-deal-zone__row--business,
.today-deal-zone__row--tags,
.today-deal-zone__row--order {
    min-height: 26px;
}
.today-deal-zone__field-label {
    color: #667085;
    font-size: 10px;
    font-weight: 800;
}
.today-deal-zone__age,
.today-deal-zone__order-text {
    color: #667085;
    font-size: 10px;
    font-weight: 700;
}
.today-deal-zone__age {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    border-radius: 7px;
    padding: 3px 11px;
    border: 1px solid transparent;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}
.today-deal-zone__age--warning {
    background: #fef3c7;
    border-color: #f59e0b;
    color: #92400e;
}
.today-deal-zone__age--danger {
    background: #dc2626;
    border-color: #b91c1c;
    color: #fff;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, .12);
}
.today-deal-zone__age--muted {
    background: #eef2f6;
    border-color: #d0d5dd;
    color: #475467;
}
.today-deal-zone__hint {
    color: #7b8492;
    font-size: 10px;
    line-height: 1.25;
    margin-top: -2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.today-deal-zone__select {
    width: auto !important;
    height: 24px !important;
    max-width: 240px;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    background: #fff;
    color: #1f2933;
    font-size: 11px;
    font-weight: 750;
    padding: 2px 7px;
}
.today-deal-zone__select--stage {
    min-width: 140px;
}
.today-deal-zone__row--business {
    flex-wrap: nowrap;
}
.today-deal-zone__row--business .today-deal-zone__select {
    max-width: 170px;
}
.today-deal-zone__amount {
    max-width: 125px !important;
}
.today-deal-zone__row--tags {
    flex-wrap: nowrap;
}
.today-deal-zone__row--tags .today-deal-zone__select {
    max-width: 150px;
}
.today-deal-zone__row--tags .today-deal-zone__select[aria-label="Бюджет"] {
    max-width: 120px;
}
.today-deal-zone__row--order {
    flex-wrap: nowrap;
}
.today-deal-zone__orders {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    overflow: hidden;
}
.today-deal-zone__order-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}
.today-deal-zone__order-link {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--today-tg);
    cursor: pointer;
    font-size: 10px;
    font-weight: 850;
    line-height: 1.3;
    padding: 2px 0;
    max-width: 360px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.today-deal-zone__order-link:hover {
    color: #006aa0;
}
.today-deal-zone__order-separator {
    color: #98a2b3;
    font-size: 10px;
    font-weight: 700;
}
.today-deal-zone__row--comment {
    align-items: flex-start;
    flex-wrap: nowrap;
}
.today-deal-zone__row--comment .today-deal-zone__field-label {
    padding-top: 5px;
}
.today-deal-zone .today-comment {
    flex: 1 1 auto;
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 5px;
    margin: 0;
}
.today-deal-zone__select--required {
    border-color: #f04438;
    box-shadow: 0 0 0 2px rgba(240, 68, 56, .14);
}
.today-deal-zone__company {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}
.today-deal-zone__tag-open {
    appearance: none;
    border: 1px solid #b6d7e8;
    border-radius: 6px;
    background: #eef8fd;
    color: var(--today-tg);
    cursor: pointer;
    font-size: 10px;
    font-weight: 900;
    min-height: 24px;
    padding: 2px 7px;
}
.today-deal-zone__tag-open:hover:not(:disabled) {
    background: #dff3fb;
    border-color: var(--today-tg);
}
.today-deal-zone__tag-open:disabled {
    cursor: default;
    opacity: .42;
}
.today-deal-title {
    display: grid;
    gap: 4px;
    margin-bottom: 6px;
}
.today-deal-title span {
    color: #667085;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.today-deal-title__input {
    width: 100%;
    min-height: 42px;
    border: 1px solid #cfd8e3;
    border-radius: 8px;
    background: #fff;
    color: #111827;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.2;
    padding: 8px 12px;
}
.today-deal-title__input:focus {
    border-color: var(--today-tg);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, .15);
    outline: none;
}
.today-deal-zone .today-comment__input {
    width: 100%;
    min-height: 32px !important;
    height: 32px;
    max-height: 56px;
    font-size: 11px;
    padding: 5px 7px;
    resize: none;
}
.today-deal-zone .today-comment__bar {
    justify-content: flex-start;
}
.today-card__btn:disabled,
.today-card__btn[disabled] {
    cursor: default;
    opacity: .48;
}

/* Legacy collapsed wrapper */
.today-legacy-wrap {
    background: #fff;
    border: 1px solid var(--today-card-border);
    border-radius: var(--today-radius);
    padding: 12px;
}
.today-legacy-wrap__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    gap: 12px;
}
.today-legacy-wrap__title {
    font-weight: 800;
    font-size: 14px;
}
.today-legacy-wrap__hint {
    font-size: 11px;
    color: #888;
    margin-top: 3px;
}
.today-legacy-wrap__list {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}
.today-legacy-wrap__more {
    margin-top: 10px;
    text-align: center;
}

/* Today work center */
.today-header-main {
    align-items: flex-start;
    gap: 16px;
}
.today-header-main__subtitle {
    color: #667085;
    font-size: 13px;
    font-weight: 600;
    margin-top: 2px;
}
.today-segment-bar {
    display: block;
    margin: 10px 0 8px;
}
.today-chip--stage {
    border: 1px solid #d8dde5;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 1px 1px rgba(16, 24, 40, .03);
    padding: 7px 11px;
    font-size: 13px;
    line-height: 1.15;
}
.today-chip--stage[aria-pressed="true"] {
    background: #111827;
    border-color: #111827;
    color: #fff;
}
.today-chip--muted:not([aria-pressed="true"]) {
    color: #8a93a3;
    background: #f9fafb;
}
.today-funnel-bar {
    border-top: 1px solid #e6e9ef;
    border-bottom: 1px solid #e6e9ef;
    padding: 8px 0 10px;
    margin-bottom: 10px;
    background: #fbfcfe;
}
.today-control-block {
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    background: #fff;
    padding: 10px 12px;
}
.today-control-block + .today-control-block,
.today-control-block + .today-filter-panel {
    margin-top: 8px;
}
.today-control-block__head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: #667085;
}
.today-control-block__head strong {
    display: block;
    color: #1f2937;
    font-size: 13px;
    line-height: 1.15;
}
.today-control-block__head em {
    display: block;
    margin-top: 2px;
    color: #8a93a3;
    font-size: 11px;
    font-style: normal;
    font-weight: 700;
}
.today-control-block__step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    border-radius: 999px;
    background: #eef4ff;
    color: #175cd3;
    font-size: 12px;
    font-weight: 900;
}
.today-control-block__chips {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.today-control-block__chips--compact {
    gap: 5px;
}
.today-work-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.today-filter-panel {
    border: 1px solid #dfe5ee;
    border-radius: 12px;
    background: #fff;
    padding: 10px 12px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}
.today-filter-panel .today-toolbar__select,
.today-filter-panel .today-toolbar__dir,
.today-filter-panel .today-toolbar__reset,
.today-filter-panel .today-toolbar__chip,
.today-filter-panel .today-toolbar__mine {
    height: 32px !important;
    border-radius: 8px;
    font-size: 12px;
    padding: 4px 10px;
}
.today-filter-panel .today-toolbar__select {
    min-width: 128px;
}
.today-filter-panel .today-toolbar__control--sort {
    margin-left: auto;
}
.today-filter-panel__head {
    display: grid;
    grid-template-columns: minmax(220px, auto) minmax(360px, 1fr);
    gap: 12px;
    align-items: center;
    margin-bottom: 8px;
}
.today-issue-filter {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    padding: 7px 0;
    margin: 2px 0 8px;
    border-top: 1px solid #eef2f7;
    border-bottom: 1px solid #eef2f7;
}
.today-issue-filter > span {
    color: #8a93a3;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .02em;
    margin-right: 3px;
}
.today-attention-row {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    margin-bottom: 7px;
}
.today-attention-row > span {
    color: #8a93a3;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .02em;
    margin-right: 2px;
}
.today-attention-chip {
    min-height: 24px;
    border: 1px solid #d8dde5;
    border-radius: 8px;
    background: #fff;
    color: #596273;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 850;
    cursor: pointer;
}
.today-attention-chip:hover {
    border-color: #a7b1c1;
}
.today-attention-chip[aria-pressed="true"] {
    background: #eef4ff;
    border-color: #84adff;
    color: #175cd3;
}
.today-attention-chip--muted:not([aria-pressed="true"]) {
    color: #a1a9b5;
    background: #fafbfc;
}
.today-work-toolbar__summary {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #667085;
    font-size: 12px;
    font-weight: 700;
    margin-right: 0;
    flex-wrap: wrap;
}
.today-work-toolbar__summary strong {
    color: #1f2937;
    font-size: 13px;
}
.today-work-search {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    width: 100%;
    background: #fff;
    border: 1px solid #d8dde5;
    border-radius: 10px;
    padding: 0 9px;
    color: #98a2b3;
}
.today-work-search input {
    border: 0;
    outline: 0;
    min-width: 0;
    width: 100%;
    height: 36px;
    font-size: 13px;
    background: transparent;
}
.today-work-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
    gap: 12px;
    align-items: start;
}
.today-list-col {
    min-width: 0;
}
.today-lead-card__open {
    cursor: pointer;
}
.today-lead-card--selected {
    border-color: #2f80ed;
    box-shadow: 0 0 0 2px rgba(47, 128, 237, .25);
}
.today-work-list {
    display: grid;
    gap: 8px;
}
.today-work-card {
    background: #fff;
    border: 1px solid #dde2ea;
    border-left: 4px solid #d0d5dd;
    border-radius: 10px;
    padding: 11px 13px;
    cursor: pointer;
    transition: border-color .14s ease, box-shadow .14s ease, transform .14s ease;
}
.today-work-card:hover,
.today-work-card:focus {
    border-color: #b9c4d3;
    box-shadow: 0 8px 22px rgba(16, 24, 40, .08);
    outline: 0;
}
.today-work-card--selected {
    border-color: #2f80ed;
    box-shadow: 0 0 0 2px rgba(47, 128, 237, .12);
}
.today-work-card--critical { border-left-color: #d92d20; }
.today-work-card--high { border-left-color: #f79009; }
.today-work-card--medium { border-left-color: #2f80ed; }
.today-work-card--low { border-left-color: #98a2b3; }
.today-work-card__top,
.today-work-card__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: space-between;
}
.today-work-card__badges {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}
.today-work-card__time {
    color: #8a93a3;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}
.today-work-badge {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    padding: 2px 7px;
    border-radius: 999px;
    border: 1px solid #d8dde5;
    background: #f9fafb;
    color: #596273;
    font-size: 11px;
    font-weight: 800;
}
.today-work-badge--priority-critical,
.today-work-badge--danger {
    background: #fef3f2;
    border-color: #fecdca;
    color: #b42318;
}
.today-work-badge--priority-high {
    background: #fff7e6;
    border-color: #fedf89;
    color: #b54708;
}
.today-work-badge--priority-medium {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #175cd3;
}
.today-work-badge--priority-low {
    background: #f2f4f7;
    color: #667085;
}
.today-work-badge--source {
    background: #f5f7fb;
}
.today-work-badge--email {
    background: #eefdf5;
    border-color: #abefc6;
    color: #067647;
}
.today-work-badge--company {
    background: #f0f9ff;
    border-color: #bae6fd;
    color: #0369a1;
}
.today-work-badge--leadtype {
    background: #f7f5ff;
    border-color: #ddd6fe;
    color: #5b21b6;
}
.today-work-badge--file {
    background: #fef7ee;
    border-color: #fed7aa;
    color: #9a3412;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.today-work-card__title {
    margin-top: 7px;
    color: #111827;
    font-size: 15px;
    line-height: 1.28;
    font-weight: 800;
}
.today-work-card__subtitle {
    color: #475467;
    font-size: 13px;
    line-height: 1.35;
    margin-top: 3px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.today-work-card__hint {
    margin-top: 4px;
    color: #067647;
    font-size: 12px;
    line-height: 1.35;
    font-weight: 800;
}
.today-work-card__factors {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 5px;
}
.today-work-card__factors span {
    border: 1px solid #edf1f6;
    background: #fbfcfe;
    color: #667085;
    border-radius: 999px;
    padding: 3px 7px;
    font-size: 11px;
    font-weight: 850;
}
.today-work-card__reason {
    margin-top: 8px;
    color: #344054;
    font-size: 13px;
    line-height: 1.35;
}
.today-work-card__reason span,
.today-work-card__next-label {
    display: block;
    color: #98a2b3;
    font-size: 10px;
    line-height: 1.2;
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: .02em;
    margin-bottom: 2px;
}
.today-work-card__next {
    background: #f8fafc;
    border: 1px solid #edf1f6;
    border-radius: 8px;
    margin-top: 8px;
    padding: 8px 10px;
    color: #344054;
    font-size: 12px;
}
.today-work-card__next strong {
    display: block;
    color: #1d2939;
    font-size: 13px;
}
.today-work-card__next em {
    display: block;
    color: #667085;
    font-style: normal;
    margin-top: 2px;
}
.today-card-flow {
    display: grid;
    gap: 7px;
    margin-top: 10px;
}
.today-card-flow__step {
    border: 1px solid #e4e7ec;
    border-radius: 9px;
    background: #fff;
    padding: 8px 9px;
}
.today-card-flow__step--action {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto;
    align-items: center;
    gap: 8px;
    border-color: #bfdbfe;
    background: #f8fbff;
}
.today-card-flow__step--deal {
    background: #f8fafc;
}
.today-card-flow__step--next {
    border-color: #dbeafe;
    background: #f4f8ff;
}
.today-card-flow__head {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    margin-bottom: 6px;
}
.today-card-flow__step--action .today-card-flow__head {
    margin-bottom: 0;
}
.today-card-flow__head span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    border-radius: 999px;
    background: #eef4ff;
    color: #175cd3;
    font-size: 11px;
    font-weight: 900;
}
.today-card-flow__head strong {
    color: #1d2939;
    font-size: 12.5px;
    line-height: 1.2;
    white-space: nowrap;
}
.today-card-flow__head em {
    color: #8a93a3;
    font-size: 11px;
    font-style: normal;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.today-next-mini {
    display: grid;
    grid-template-columns: 190px minmax(260px, 1fr);
    gap: 6px;
    align-items: center;
    margin-top: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    cursor: default;
}
.today-next-mini--missing {
    background: transparent;
}
.today-next-mini__status {
    min-height: 26px;
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    background: #fff;
    color: #175cd3;
    font-size: 11px;
    font-weight: 900;
    padding: 3px 9px;
    white-space: nowrap;
}
.today-next-mini--missing .today-next-mini__status {
    border-color: #fedf89;
    background: #fffbeb;
    color: #b54708;
}
.today-next-mini__controls {
    display: grid;
    grid-template-columns: minmax(140px, 1fr) 120px auto;
    gap: 4px;
    align-items: center;
}
.today-next-mini select,
.today-next-mini input {
    width: 100%;
    height: 28px;
    border: 1px solid #b8d3ff;
    border-radius: 6px;
    background: #fff;
    color: #1f2933;
    font-size: 12px;
    font-weight: 800;
    padding: 2px 7px;
}
.today-work-deal {
    display: grid;
    gap: 4px;
    margin-top: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    cursor: default;
}
.today-work-deal--overdue {
    background: transparent;
}
.today-work-deal__line,
.today-work-deal__top {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}
.today-work-deal__label {
    color: #667085;
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .02em;
}
.today-work-deal__spacer {
    flex: 1 1 auto;
    min-width: 8px;
}
.today-work-deal__select {
    height: 28px;
    min-width: 112px;
    max-width: 190px;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    background: #fff;
    color: #1f2933;
    font-size: 12px;
    font-weight: 800;
    padding: 2px 6px;
}
.today-work-deal__company {
    height: 28px;
    width: 150px;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    background: #fff;
    color: #1f2933;
    font-size: 12px;
    font-weight: 800;
    padding: 2px 7px;
}
.today-work-deal__select--stage {
    min-width: 150px;
    border-color: #98a2b3;
}
.today-work-deal .today-deal-zone__age {
    min-height: 28px;
    font-size: 11px;
    padding: 4px 7px;
}
.today-work-deal__comment {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) auto;
    gap: 4px;
    align-items: center;
}
.today-work-deal__comment input {
    width: 100%;
    height: 28px;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    background: #fff;
    color: #1d2939;
    font-size: 12px;
    font-weight: 650;
    padding: 3px 7px;
}
.today-work-secondary--mini {
    min-height: 28px;
    padding: 3px 8px;
    font-size: 12px;
}
.today-work-deal__hint {
    color: #8a93a3;
    font-size: 11px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.today-work-card__actions {
    justify-content: flex-start;
    margin-top: 10px;
    flex-wrap: wrap;
}
.today-card-order {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 8px;
}
.today-card-order__label {
    color: #667085;
    font-size: 11px;
    font-weight: 800;
}
.today-card-order--empty .today-card-order__label {
    color: #b54708;
}
.today-card-order__link {
    border: 1px solid #c7ead1;
    background: #f4fff7;
    color: #246833;
    border-radius: 7px;
    padding: 3px 9px;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}
.today-card-order__link:hover {
    background: #e9f9ef;
    border-color: #8fc79b;
}
.today-work-primary,
.today-work-secondary,
.today-work-link {
    border-radius: 7px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}
.today-work-primary {
    border: 1px solid #2f80ed;
    background: #2f80ed;
    color: #fff;
    padding: 6px 11px;
}
.today-work-primary--danger {
    border-color: #b42318;
    background: #b42318;
}
.today-work-secondary {
    border: 1px solid #d0d5dd;
    background: #fff;
    color: #344054;
    padding: 6px 10px;
}
.today-work-link {
    border: 0;
    background: transparent;
    color: #667085;
    padding: 4px 5px;
}
.today-work-link--danger {
    color: #b42318;
}
.today-work-secondary--danger {
    border-color: #fecaca;
    color: #b42318;
}
.today-work-secondary--danger:hover {
    border-color: #fca5a5;
    background: #fff1f2;
}
.today-work-more {
    position: relative;
}
.today-work-more summary {
    list-style: none;
    border: 1px solid #d0d5dd;
    background: #fff;
    color: #344054;
    border-radius: 7px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}
.today-work-more summary::-webkit-details-marker {
    display: none;
}
.today-work-more[open] summary {
    border-color: #98a2b3;
    background: #f8fafc;
}
.today-work-more__menu {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    z-index: 20;
    min-width: 190px;
    display: grid;
    gap: 2px;
    border: 1px solid #d8dde5;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .16);
    padding: 6px;
}
.today-work-more__menu .today-work-link {
    text-align: left;
    padding: 7px 8px;
}
.today-work-more__menu .today-work-link:hover {
    background: #f8fafc;
}
.today-detail-panel {
    position: sticky;
    top: 10px;
    background: #fff;
    border: 1px solid #dde2ea;
    border-radius: 10px;
    padding: 14px;
    max-height: calc(100vh - 120px);
    overflow: auto;
}
.today-detail-panel__kicker {
    color: #667085;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}
.today-detail-panel h2 {
    margin: 4px 0 2px;
    color: #111827;
    font-size: 18px;
    line-height: 1.25;
}
.today-detail-panel p {
    color: #667085;
    font-size: 13px;
    margin: 0 0 10px;
}
.today-detail-reason,
.today-detail-next,
.today-detail-note {
    background: #f8fafc;
    border: 1px solid #edf1f6;
    border-radius: 8px;
    padding: 9px;
    color: #344054;
    font-size: 13px;
    line-height: 1.35;
    margin-bottom: 8px;
}
.today-detail-next span,
.today-detail-section h3 {
    display: block;
    color: #98a2b3;
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 900;
    margin: 0 0 4px;
}
.today-detail-next strong,
.today-detail-next em {
    display: block;
}
.today-detail-next em {
    color: #667085;
    font-style: normal;
    margin-top: 3px;
}
.today-detail-actions {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    margin: 9px 0 12px;
}
.today-detail-section {
    border-top: 1px solid #edf1f6;
    padding-top: 10px;
    margin-top: 10px;
}
.today-detail-meta {
    color: #98a2b3;
    font-size: 11px;
    font-weight: 800;
    margin: 2px 0 4px;
}
.today-detail-event {
    display: grid;
    gap: 2px;
    padding: 7px 0 7px 10px;
    border-left: 3px solid #d0d5dd;
    border-bottom: 1px solid #f1f3f7;
    font-size: 12px;
}
.today-detail-event--in {
    border-left-color: #2f80ed;
}
.today-detail-event--out {
    border-left-color: #12b76a;
    background: #fbfffd;
}
.today-detail-event strong {
    color: #667085;
    font-size: 11px;
}
.today-detail-event__sender {
    display: inline-flex;
    width: fit-content;
    margin: 2px 0;
    border: 1px solid #d8dde5;
    border-radius: 999px;
    background: #f8fafc;
    color: #475467;
    padding: 2px 7px;
    font-size: 11px;
    font-weight: 900;
}
.today-detail-event--in .today-detail-event__sender {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #175cd3;
}
.today-detail-event--out .today-detail-event__sender {
    border-color: #abefc6;
    background: #ecfdf3;
    color: #067647;
}
.today-detail-event__text {
    display: block;
    color: #1f2937;
    font-size: 13px;
    line-height: 1.38;
}
.today-detail-event em {
    display: block;
    color: #98a2b3;
    font-size: 10px;
    font-style: normal;
    font-weight: 800;
}
.today-detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border: 1px solid #edf1f6;
    border-radius: 8px;
    padding: 7px 8px;
    margin-bottom: 6px;
    background: #fff;
}
.today-detail-row strong,
.today-detail-channel strong {
    display: block;
    color: #344054;
    font-size: 12px;
}
.today-detail-row span,
.today-detail-channel span {
    display: block;
    color: #8a93a3;
    font-size: 11px;
    margin-top: 2px;
}
.today-detail-row--soft {
    background: #fbfcfe;
}
.today-client-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 8px;
}
.today-client-stats div {
    border: 1px solid #edf1f6;
    border-radius: 8px;
    padding: 8px 9px;
    background: #fbfcfe;
}
.today-client-stats span {
    display: block;
    color: #667085;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .02em;
}
.today-client-stats strong {
    display: block;
    color: #1d2939;
    font-size: 14px;
    margin-top: 2px;
}
.today-priority-explain {
    display: grid;
    gap: 8px;
}
.today-priority-score {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #edf1f6;
    border-radius: 8px;
    padding: 8px 9px;
    background: #fbfcfe;
}
.today-priority-score span {
    color: #667085;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .02em;
}
.today-priority-score strong {
    color: #1d2939;
    font-size: 15px;
}
.today-detail-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.today-detail-pills span {
    border: 1px solid #e4e7ec;
    background: #f8fafc;
    color: #475467;
    border-radius: 999px;
    padding: 5px 8px;
    font-size: 11px;
    font-weight: 800;
    max-width: 100%;
    overflow-wrap: anywhere;
}
.today-detail-channel {
    border: 1px solid #edf1f6;
    border-radius: 8px;
    padding: 8px;
    background: #fff;
    margin-bottom: 6px;
}
.today-dialog-summary,
.today-repeat-forecast {
    background: #fbfcfe;
    border: 1px solid #edf1f6;
    border-radius: 10px;
    padding: 10px;
}
.today-dialog-summary__main,
.today-dialog-summary__next {
    display: grid;
    gap: 3px;
    margin-bottom: 8px;
}
.today-dialog-summary__main span,
.today-dialog-summary__next span {
    color: #98a2b3;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .02em;
}
.today-dialog-summary__main strong,
.today-dialog-summary__next strong {
    color: #1d2939;
    font-size: 12px;
    line-height: 1.35;
}
.today-ai-analysis {
    display: grid;
    gap: 7px;
    margin-top: 9px;
    padding-top: 9px;
    border-top: 1px solid #edf1f6;
}
.today-ai-analysis > span {
    color: #8a93a3;
    font-size: 11px;
    line-height: 1.35;
}
.today-ai-analysis__error {
    color: #b42318;
    background: #fef3f2;
    border: 1px solid #fecdca;
    border-radius: 8px;
    padding: 7px 8px;
    font-size: 12px;
    font-weight: 700;
}
.today-ai-analysis__result {
    display: grid;
    gap: 8px;
}
.today-ai-analysis__summary {
    color: #1d2939;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 750;
}
.today-ai-analysis__warning {
    color: #b54708;
    background: #fffaeb;
    border: 1px solid #fedf89;
    border-radius: 8px;
    padding: 7px 8px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.35;
}
.today-ai-analysis__highlights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}
.today-ai-analysis__highlights div {
    border: 1px solid #bbd7c5;
    border-radius: 8px;
    background: #f1fbf4;
    padding: 7px 8px;
}
.today-ai-analysis__highlights span {
    display: block;
    color: #3f7b4f;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .02em;
}
.today-ai-analysis__highlights strong {
    display: block;
    color: #14532d;
    font-size: 12px;
    line-height: 1.3;
    margin-top: 2px;
}
.today-ai-analysis__briefs {
    display: grid;
    gap: 6px;
}
.today-ai-analysis__briefs div {
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    background: #fff;
    padding: 8px 9px;
}
.today-ai-analysis__briefs span {
    display: block;
    color: #667085;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .02em;
}
.today-ai-analysis__briefs strong {
    display: block;
    color: #1d2939;
    font-size: 12px;
    line-height: 1.38;
    margin-top: 3px;
}
.today-ai-analysis__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}
.today-ai-analysis__grid div {
    border: 1px solid #edf1f6;
    border-radius: 8px;
    background: #fff;
    padding: 7px 8px;
}
.today-ai-analysis__grid span {
    display: block;
    color: #98a2b3;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .02em;
}
.today-ai-analysis__grid strong {
    display: block;
    color: #344054;
    font-size: 12px;
    line-height: 1.3;
    margin-top: 2px;
}
.today-repeat-forecast__lead {
    color: #1d2939;
    font-size: 12px;
    font-weight: 850;
    line-height: 1.35;
    margin-bottom: 8px;
}
.today-deal-fields {
    border: 1px solid #e4e7ec;
    border-radius: 10px;
    padding: 10px;
    background: #fbfcfe;
}
.today-deal-fields--overdue {
    border-color: #fecaca;
    background: #fff5f5;
}
.today-deal-fields__row {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}
.today-deal-fields__label,
.today-deal-fields label span {
    color: #667085;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .02em;
}
.today-deal-fields__select,
.today-deal-fields__input {
    height: 28px;
    min-width: 0;
    width: 100%;
    border: 1px solid #d0d5dd;
    border-radius: 7px;
    background: #fff;
    color: #1f2933;
    font-size: 12px;
    font-weight: 800;
    padding: 3px 8px;
}
.today-deal-fields__select--stage {
    min-width: 170px;
}
.today-deal-fields__hint {
    color: #7b8492;
    font-size: 11px;
    line-height: 1.3;
    margin: 6px 0 8px;
}
.today-deal-fields__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 8px;
}
.today-deal-fields__grid label {
    display: grid;
    gap: 4px;
}
.today-deal-fields__comment {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 7px;
}
.today-deal-fields__comment label {
    display: grid;
    gap: 4px;
}
.today-deal-fields__comment textarea {
    width: 100%;
    min-height: 44px;
    max-height: 72px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    padding: 7px 9px;
    font-size: 12px;
    line-height: 1.35;
    color: #1d2939;
    resize: vertical;
}
.today-memory-editor {
    display: grid;
    gap: 7px;
}
.today-memory-editor__explain {
    margin-bottom: 7px;
}
.today-memory-editor textarea {
    width: 100%;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 12px;
    line-height: 1.35;
    color: #1d2939;
    resize: vertical;
}
.today-memory-editor__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.today-memory-editor__footer span {
    color: #98a2b3;
    font-size: 11px;
    font-weight: 800;
}
.today-detail-muted,
.today-detail-empty {
    color: #8a93a3;
    font-size: 13px;
    line-height: 1.4;
}
.today-empty--large {
    display: grid;
    gap: 4px;
    padding: 28px;
}
.today-empty--large strong {
    color: #1f2937;
    font-size: 16px;
}
.today-empty--large span {
    color: #667085;
}
.today-empty--error {
    border-color: #fecdca;
    color: #b42318;
    background: #fffafa;
}
/* Loading skeleton shown by Today.load() immediately on page entry, before
   Orders.load() resolves (see static/js/today.js load()). .skeleton-card
   (shared shimmer block, shape/animation defined once in style.css) does
   the actual visual work; this is just the page-scoped layout wrapper,
   matching the today-work-layout list column so it doesn't jump when
   real cards replace it. */
.today-skeleton {
    display: grid;
    gap: 8px;
    padding: 2px;
}
.today-skeleton .skeleton-card {
    height: 96px;
    border-radius: var(--today-radius);
    border-color: var(--today-card-border);
}
.today-action-modal {
    position: fixed;
    inset: 0;
    z-index: 5000;
    background: rgba(15, 23, 42, .28);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}
.today-action-modal__card {
    width: min(560px, 100%);
    background: #fff;
    border: 1px solid #d8dde5;
    border-radius: 12px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .22);
    padding: 16px;
    display: grid;
    gap: 10px;
}
.today-action-modal__card--wide {
    width: min(680px, 100%);
}
.today-action-modal__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}
.today-action-modal__head strong {
    display: block;
    color: #111827;
    font-size: 17px;
}
.today-action-modal__head span {
    display: block;
    color: #667085;
    font-size: 12px;
    margin-top: 2px;
}
.today-action-modal__close {
    border: 0;
    background: #f2f4f7;
    color: #475467;
    border-radius: 999px;
    width: 28px;
    height: 28px;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}
.today-action-modal label {
    display: grid;
    gap: 4px;
    color: #667085;
    font-size: 12px;
    font-weight: 800;
}
.today-action-modal input,
.today-action-modal select,
.today-action-modal textarea {
    width: 100%;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 13px;
    color: #1d2939;
    background: #fff;
}
.today-action-modal textarea {
    resize: vertical;
}
.today-action-modal__grid {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 10px;
}
.today-action-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 2px;
}
.today-snooze-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.today-snooze-preset {
    border: 1px solid #d0d5dd;
    background: #fff;
    color: #344054;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}
.today-snooze-preset--active {
    background: #eff6ff;
    border-color: #2f80ed;
    color: #175cd3;
}
.today-modal-note {
    color: #667085;
    background: #f8fafc;
    border: 1px solid #edf1f6;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 12px;
    line-height: 1.35;
}
.today-modal-note--danger {
    background: #fffafa;
    border-color: #fecdca;
    color: #b42318;
}
.today-repeat-check {
    border: 1px solid #d8dde5;
    border-radius: 10px;
    background: #f8fafc;
    padding: 10px;
}
.today-repeat-check strong {
    display: block;
    margin-bottom: 8px;
    color: #344054;
    font-size: 13px;
}
.today-repeat-check__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}
.today-repeat-check__grid span,
.today-repeat-warning {
    border: 1px solid #e4e7ec;
    background: #fff;
    border-radius: 8px;
    padding: 7px 8px;
    color: #475467;
    font-size: 12px;
    font-weight: 800;
}
.today-repeat-warnings {
    display: grid;
    gap: 6px;
}
.today-repeat-warning {
    border-color: #fedf89;
    background: #fffbeb;
    color: #92400e;
    font-weight: 700;
}
.today-repeat-mini {
    display: grid;
    gap: 8px;
}
.today-repeat-mini__title {
    border: 1px solid #dbeafe;
    background: #eff6ff;
    color: #1d4ed8;
    border-radius: 8px;
    padding: 8px 9px;
    font-size: 12px;
    font-weight: 850;
}
.today-repeat-mini__warnings {
    display: grid;
    gap: 5px;
}
.today-repeat-mini__warnings span {
    border: 1px solid #fed7aa;
    background: #fff7ed;
    color: #9a3412;
    border-radius: 8px;
    padding: 7px 8px;
    font-size: 12px;
    font-weight: 800;
}
.today-ops-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}
.today-ops-grid div {
    border: 1px solid #edf1f6;
    background: #fbfcfe;
    border-radius: 8px;
    padding: 8px 9px;
}
.today-ops-grid span {
    display: block;
    color: #667085;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .02em;
}
.today-ops-grid strong {
    display: block;
    color: #1d2939;
    font-size: 12px;
    line-height: 1.3;
    margin-top: 2px;
}
.today-insights {
    display: grid;
    gap: 6px;
}
.today-insights span {
    border: 1px solid #dcfae6;
    background: #f6fef9;
    color: #067647;
    border-radius: 8px;
    padding: 7px 8px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.3;
}

/* Mobile */
@media (max-width: 720px) {
    .today-header-main {
        align-items: flex-start;
    }
    .today-header-main__actions {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    .today-toolbar__count {
        width: 100%;
        margin-right: 0;
    }
    .today-card__head { flex-direction: column; }
    .today-card__primary { align-self: flex-start; }
    .today-card__content { grid-template-columns: 1fr; }
    .today-card__row { flex-direction: column; align-items: stretch; }
    .today-card__row-actions { justify-content: flex-start; }
    .today-work-deal__comment {
        grid-template-columns: 1fr;
    }
    .today-next-mini,
    .today-next-mini__controls,
    .today-card-flow__step--action {
        grid-template-columns: 1fr;
    }
    .today-card-flow__head {
        align-items: flex-start;
        flex-wrap: wrap;
    }
    .today-work-deal__select {
        flex: 1 1 130px;
        max-width: none;
    }
    .today-lead-card__identity {
        flex-direction: column;
        gap: 3px;
    }
    .today-deal-zone .today-comment {
        grid-template-columns: minmax(120px, 1fr) auto;
    }
    .today-deal-zone__row--business,
    .today-deal-zone__row--tags,
    .today-deal-zone__row--order,
    .today-deal-zone__row--comment {
        flex-wrap: wrap;
    }
    .today-deal-fields__grid,
    .today-deal-fields__comment,
    .today-ai-analysis__grid {
        grid-template-columns: 1fr;
    }
    .today-ai-analysis__highlights {
        grid-template-columns: 1fr;
    }
    .today-reminder-dropdown {
        width: calc(100% - 24px);
        left: 12px !important;
        right: 12px !important;
    }
    .today-work-layout {
        grid-template-columns: 1fr;
    }
    .today-filter-panel__head {
        grid-template-columns: 1fr;
    }
    .today-filter-panel .today-toolbar__select,
    .today-filter-panel .today-toolbar__control,
    .today-filter-panel .today-toolbar__mine {
        width: 100% !important;
    }
    .today-filter-panel .today-toolbar__control--sort {
        margin-left: 0;
    }
    .today-detail-panel {
        position: static;
        max-height: none;
    }
    .today-work-search,
    .today-work-search input {
        min-width: 0;
        width: 100%;
    }
    .today-work-toolbar__summary {
        width: 100%;
    }
    .today-action-modal {
        align-items: flex-end;
        padding: 10px;
    }
    .today-action-modal__grid {
        grid-template-columns: 1fr;
    }
}
