/* === Calendar screen (scoped) === */
#screen-calendar,
#screen-profile {
    --bg-color: transparent;
    --card-bg: var(--surface-card);
    --text-main: var(--app-text);
    --text-muted: var(--app-muted);
    --shift-day-solid: #72a882;
    --shift-night-solid: #6a8fc4;
    --shift-tech-solid: #9a7fc4;
    --shift-day-bg: rgba(72, 155, 102, 0.42);
    --shift-day-border: rgba(130, 210, 160, 0.28);
    --shift-night-bg: rgba(68, 110, 175, 0.44);
    --shift-night-border: rgba(130, 170, 230, 0.28);
    --shift-tech-bg: rgba(130, 105, 175, 0.4);
    --shift-tech-border: rgba(180, 150, 220, 0.28);
    --day-shift: var(--shift-day-solid);
    --night-shift: var(--shift-night-solid);
    --tech-shift: var(--shift-tech-solid);
    --accent: #c8d4ef;
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    user-select: none;
    min-height: 0;
    box-sizing: border-box;
    font-size: var(--font-base);
    line-height: 1.45;
}

#screen-calendar .info-row,
#screen-profile .info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: var(--font-base);
    line-height: 1.4;
}

#screen-calendar .info-label,
#screen-profile .info-label {
    color: var(--app-caption);
    flex-shrink: 0;
    font-size: var(--font-base);
    font-weight: 400;
}

#screen-calendar .info-value,
#screen-profile .info-value {
    font-weight: 500;
    font-size: var(--font-base);
    text-align: right;
    color: var(--text-main);
}

#screen-calendar .info-row--money,
#screen-profile .info-row--money {
    align-items: flex-end;
    margin-top: 6px;
    padding-top: 10px;
    border-top: 1px dashed rgba(255, 255, 255, 0.12);
}

#screen-calendar .info-row--divider,
#screen-profile .info-row--divider {
    margin-top: 6px;
    padding-top: 10px;
    border-top: 1px dashed rgba(255, 255, 255, 0.12);
}

#screen-calendar .info-row--money .info-label,
#screen-profile .info-row--money .info-label {
    align-self: flex-end;
    padding-bottom: 2px;
}

#screen-calendar .info-row--money .info-value,
#screen-profile .info-row--money .info-value {
    flex-shrink: 0;
}

#screen-calendar .info-row:last-child,
#screen-profile .info-row:last-child {
    margin-bottom: 0;
}

#screen-calendar .money-amount,
#screen-profile .money-amount {
    color: var(--day-shift);
    font-size: var(--font-lg);
    font-weight: 600;
}

#screen-calendar .money-caption,
#screen-profile .money-caption {
    font-size: var(--font-xs);
    color: var(--app-caption);
}

#screen-calendar .calendar-app-wrap,
#screen-profile .profile-app-wrap {
    width: 100%;
    max-width: 640px;
    display: flex;
    flex-direction: column;
    gap: var(--app-gap);
}

#screen-calendar .calendar-app-wrap {
    padding-bottom: var(--bottom-tabbar-clearance);
    box-sizing: border-box;
}

#screen-calendar .app-community-footer {
    margin-bottom: 0;
}

#screen-calendar .phone-screen,
#screen-profile .phone-screen {
    width: 100%;
    max-width: 640px;
    padding: 24px;
}

#screen-calendar .screen-card--calendar,
#screen-profile .screen-card--profile,
#screen-schedule .screen-card--schedule {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 0;
}

#screen-calendar .calendar-top-block {
    width: 100%;
    margin-bottom: 8px;
    border: var(--card-border);
    border-radius: var(--card-radius);
    background: var(--surface-card-inner);
    overflow: visible;
    box-sizing: border-box;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

#screen-calendar .calendar-header {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 36px;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 12px 10px 10px;
    width: 100%;
    box-sizing: border-box;
}

#screen-calendar .calendar-export-row {
    padding: 8px 10px 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    box-sizing: border-box;
}

#screen-calendar .calendar-export-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 38px;
    margin: 0;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--app-radius);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(220, 228, 240, 0.92);
    font-family: inherit;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, opacity 0.2s ease, transform 0.12s ease;
}

#screen-calendar .calendar-export-btn-icon {
    flex-shrink: 0;
    opacity: 0.82;
}

#screen-calendar .calendar-export-btn:hover:not(:disabled) {
    background: rgba(68, 110, 175, 0.16);
    border-color: rgba(130, 170, 230, 0.22);
    color: #eef4ff;
}

#screen-calendar .calendar-export-btn:active:not(:disabled) {
    transform: scale(0.995);
}

#screen-calendar .calendar-export-btn:disabled,
#screen-calendar .calendar-export-btn.is-loading {
    opacity: 0.65;
    cursor: wait;
}

#screen-calendar .calendar-nav-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    margin: 1px 0 0;
    border: none;
    border-radius: var(--app-radius);
    background: var(--surface-card-inner);
    color: var(--text-main);
    font-size: var(--font-base);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.12s ease;
}

#screen-calendar .calendar-nav-btn:hover {
    background: rgba(26, 111, 82, 0.18);
}

#screen-calendar .calendar-month-title,
#screen-calendar #monthTitle {
    font-size: var(--font-lg);
    font-weight: 600;
    margin: 0;
    letter-spacing: -0.02em;
    text-align: center;
    width: 100%;
    color: var(--app-text-bright);
    line-height: 1.2;
}

#screen-calendar .calendar-legend {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin: 0;
    padding: 8px 12px 12px;
    font-size: 10px;
    color: var(--app-caption);
    flex-shrink: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

#screen-calendar .calendar-legend span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

#screen-calendar .legend-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

#screen-calendar .legend-dot--day { background: var(--shift-day-solid); }
#screen-calendar .legend-dot--night { background: var(--shift-night-solid); }
#screen-calendar .legend-dot--tech { background: var(--shift-tech-solid); }

#screen-calendar .calendar-sync-btn-label {
    text-align: center;
}

#screen-calendar .calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    grid-auto-rows: auto;
    align-items: stretch;
    gap: 4px;
    width: 100%;
    background: transparent;
    padding: 8px 12px 4px;
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 0;
    box-sizing: border-box;
    position: relative;
    z-index: 0;
    flex: 0 0 auto;
}

/* Жёстко: шапка месяца не sticky и не перекрывает экспорт/сетку (в т.ч. старый кэш responsive.css) */
#screen-calendar .calendar-top-block .calendar-header {
    position: relative !important;
    top: auto !important;
    bottom: auto !important;
    z-index: auto !important;
    min-height: 0 !important;
    height: auto !important;
    background: transparent !important;
    flex: 0 0 auto !important;
}

#screen-calendar .calendar-top-block .calendar-export-row,
#screen-calendar .calendar-top-block .calendar-grid,
#screen-calendar .calendar-top-block .calendar-legend {
    position: relative !important;
    z-index: auto !important;
    flex: 0 0 auto !important;
}

#screen-calendar .weekday {
    text-align: center;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.42);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding-bottom: 4px;
}

/* === Ячейка дня === */
#screen-calendar .day {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 6px 5px;
    border-radius: var(--app-radius);
    box-sizing: border-box;
    cursor: pointer;
    overflow: visible;
    background: rgba(255, 255, 255, 0.03);
    border: none;
    transition: transform 0.15s var(--app-ease), border-color 0.15s ease;
}

#screen-calendar .day:not(.day--has-shift) {
    aspect-ratio: 1;
}

#screen-calendar .day--has-shift {
    aspect-ratio: auto;
    min-height: 52px;
}

#screen-calendar .day--multi {
    min-height: 72px;
}

#screen-calendar .day:active {
    transform: scale(0.97);
}

#screen-calendar .day-number {
    flex: 0 0 auto;
    align-self: flex-start;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.72);
    padding: 0 2px 4px;
    position: relative;
    z-index: 3;
    font-variant-numeric: tabular-nums;
}

#screen-calendar .day--has-shift .day-number {
    color: rgba(255, 255, 255, 0.92);
}

#screen-calendar .day-shifts {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: stretch;
    gap: 4px;
    flex: 0 0 auto;
    width: 100%;
    padding: 0 1px;
}

#screen-calendar .day-shift-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    flex: 0 0 auto;
    position: relative;
    padding: 4px 6px;
    border-radius: 8px;
    box-sizing: border-box;
    border: 1px solid transparent;
    text-align: center;
    cursor: pointer;
    transition: outline-color 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

#screen-calendar .day-shift-chip.is-chip-selected {
    border-color: rgba(255, 255, 255, 0.72);
    box-shadow: 0 0 0 2px rgba(0, 184, 148, 0.88);
}

#screen-calendar .day--multi .day-shift-chip {
    padding: 3px 5px;
    gap: 1px;
    border-radius: 7px;
}

#screen-calendar .day-shift-label {
    display: block;
    width: 100%;
    max-width: 100%;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0.02em;
    white-space: normal;
    overflow: visible;
    word-break: break-word;
    font-variant-numeric: tabular-nums lining-nums;
}

#screen-calendar .day--multi .day-shift-label {
    font-size: 11px;
    line-height: 1.2;
}

#screen-calendar .day-shift-time {
    display: block;
    width: 100%;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.2;
    opacity: 0.82;
    white-space: normal;
    overflow: visible;
    font-variant-numeric: tabular-nums;
}

#screen-calendar .day--multi .day-shift-time {
    font-size: 9px;
    line-height: 1.2;
}

#screen-calendar .day-shift-chip.has-shift-note::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 10px 10px 0;
    border-color: transparent #f97316 transparent transparent;
    border-top-right-radius: 6px;
    pointer-events: none;
    filter: drop-shadow(-1px 1px 1px rgba(0, 0, 0, 0.22));
}

#screen-calendar .day--multi .day-shift-chip.has-shift-note::after {
    border-width: 0 8px 8px 0;
    border-top-right-radius: 5px;
}

#screen-calendar .day-shift-chip.has-day-shift {
    background: var(--shift-day-bg);
    color: #f2fff6;
    border-color: var(--shift-day-border);
}

#screen-calendar .day-shift-chip.has-night-shift {
    background: var(--shift-night-bg);
    color: #f0f6ff;
    border-color: var(--shift-night-border);
}

#screen-calendar .day-shift-chip.has-study-shift {
    background: rgba(50, 155, 170, 0.4);
    color: #edfcff;
    border-color: rgba(120, 210, 225, 0.28);
}

#screen-calendar .day-shift-chip.has-vacation-shift {
    background: rgba(195, 140, 55, 0.38);
    color: #fff8ec;
    border-color: rgba(230, 190, 110, 0.28);
}

#screen-calendar .day-shift-chip.has-average-pay-shift {
    background: rgba(217, 119, 6, 0.42);
    color: #fffbeb;
    border-color: rgba(251, 191, 36, 0.35);
}

#screen-calendar .day-shift-chip.has-tech-shift {
    background: var(--shift-tech-bg);
    color: #f7f2ff;
    border-color: var(--shift-tech-border);
}

#screen-calendar .day-shift-chip.has-rest-shift {
    background: rgba(180, 50, 50, 0.48);
    color: #ffe8e8;
    border-color: rgba(220, 80, 80, 0.38);
    padding: 5px 10px;
}

#screen-calendar .day-shift-chip.has-rest-shift .day-shift-label {
    font-size: 13px;
    letter-spacing: 0.06em;
}

#screen-calendar .day--has-rest.day--has-shift:not(.day--multi) .day-shifts {
    justify-content: center;
}

#screen-calendar .day-shift-chip.has-rest-shift.is-chip-selected {
    border-color: rgba(255, 210, 210, 0.85);
    box-shadow: 0 0 0 2px rgba(220, 80, 80, 0.82);
}

#screen-calendar .day-shift-chip.has-route99-day {
    background: rgba(130, 138, 150, 0.38);
    color: #f4f6f8;
    border-color: rgba(180, 188, 200, 0.24);
}

#screen-calendar .day-shift-chip.has-route99-night {
    background: rgba(95, 115, 145, 0.42);
    color: #eef3fa;
    border-color: rgba(150, 170, 200, 0.26);
}

#screen-calendar .day-shift-chip.has-route99-morning {
    background: rgba(115, 125, 135, 0.4);
    color: #f2f5f7;
    border-color: rgba(165, 175, 185, 0.24);
}

#screen-calendar .day.today:not(.day--has-shift) {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
}

#screen-calendar .day.today::before,
#screen-calendar .day.selected::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 5.5px;
    pointer-events: none;
    z-index: 4;
    box-sizing: border-box;
}

#screen-calendar .day.today:not(.selected)::before {
    border: 1.5px solid rgba(255, 255, 255, 0.26);
}

#screen-calendar .day.today.day--has-shift:not(.selected)::before {
    border-color: rgba(255, 255, 255, 0.38);
}

#screen-calendar .day.selected::before {
    border: 2px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}

#screen-calendar .day.other-month {
    background: transparent;
    border-color: transparent;
}

#screen-calendar .day.other-month .day-number {
    color: rgba(255, 255, 255, 0.22);
}

#screen-calendar .day.selected {
    transform: none;
    z-index: 2;
}

#screen-calendar .shift-constructor {
    background: var(--surface-card-inner);
    border: var(--card-border);
    border-radius: var(--card-radius);
    padding: 16px 16px 20px;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 4px;
}

#screen-calendar .shift-constructor:not(.shift-constructor--has-summary) .shift-constructor-title {
    font-size: var(--font-lg);
    font-weight: 600;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    text-align: left;
}

#screen-calendar .constructor-animate {
    animation: constructorIn 0.28s var(--app-ease) forwards;
}

#screen-calendar .shift-constructor-input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 10px;
    margin-bottom: 8px;
    font-size: var(--font-base);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--app-radius);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-main);
    text-align: left;
    backdrop-filter: blur(10px);
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

#screen-calendar .shift-constructor-input:focus {
    outline: none;
    border-color: #178038;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(23, 128, 56, 0.15);
}

#screen-calendar .shift-constructor-input::placeholder {
    color: #4a5668;
    font-size: var(--font-sm);
}

#screen-calendar .shift-constructor-btn {
    width: 100%;
    padding: 12px 22px;
    border: none;
    border-radius: var(--app-radius);
    background-color: #178038;
    color: #fff;
    font-size: var(--font-md);
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

#screen-calendar .shift-constructor-btn:hover {
    background-color: #1f8440;
}

#screen-calendar .shift-constructor-btn--danger {
    background: rgba(255, 69, 58, 0.12);
    border: 1px solid rgba(255, 69, 58, 0.28);
    color: #ff7b7b;
    box-shadow: none;
}

#screen-calendar .shift-constructor-btn--danger:hover {
    background: rgba(255, 69, 58, 0.2);
    border-color: rgba(255, 69, 58, 0.42);
    color: #ff9494;
}

#screen-calendar .shift-constructor-btn--danger:active {
    background: rgba(255, 69, 58, 0.32);
    border-color: rgba(255, 69, 58, 0.55);
    color: #ffb4b4;
}

#screen-calendar .shift-constructor-btn--danger:not(.shift-constructor-btn--compact) {
    margin-top: var(--app-gap);
}

#screen-calendar .shift-constructor--has-summary .shift-constructor-btn--danger:not(.shift-constructor-btn--compact) {
    width: 100%;
}

#screen-calendar .shift-constructor-error {
    min-height: 16px;
    margin-bottom: 6px;
    text-align: center;
    font-size: var(--font-sm);
    color: #ff6b6b;
}

#screen-calendar .shift-constructor-hint {
    text-align: center;
    color: var(--app-caption);
    font-size: var(--font-sm);
    line-height: 1.5;
}

#screen-calendar .shift-constructor-hint--normative {
    color: var(--app-caption);
    font-size: 11px;
    margin-bottom: 8px;
}

#screen-calendar .shift-constructor--has-summary .shift-constructor-title {
    display: none;
}

#screen-calendar .shift-constructor--has-summary {
    background: transparent;
    border: none;
    padding: 0;
}

#screen-calendar .shift-constructor--has-summary {
    overflow: visible;
}

/* ===== Сводка смены (макет) ===== */
.shift-day-panel--design {
    --shift-card-bg: #1c1c1e;
    --shift-card-label: #888888;
    --shift-card-border: rgba(255, 255, 255, 0.12);
    --shift-card-teal: #006b5f;
    --shift-card-emerald: #00b894;
    background: var(--shift-card-bg);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 22px;
    overflow: visible;
}

.shift-day-panel--design .shift-day-panel__head {
    padding: 18px 18px 0;
    border: none;
    background: transparent;
    text-align: center;
}

.shift-day-panel--design .shift-day-panel__date {
    margin: 0 0 12px;
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
}

.shift-day-panel--design .shift-day-panel__tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.shift-day-panel--design .shift-day-panel__tab-pill {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 36px;
    padding: 6px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: transparent;
    color: #777;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.shift-day-panel--design .shift-day-panel__tab-pill-route {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    color: inherit;
}

.shift-day-panel--design .shift-day-panel__tab-pill-sep {
    font-size: 12px;
    font-weight: 400;
    color: inherit;
    opacity: 0.45;
}

.shift-day-panel--design .shift-day-panel__tab-pill-date {
    font-size: 11px;
    font-weight: 500;
    line-height: 1.2;
    color: inherit;
    opacity: 0.75;
}

.shift-day-panel--design .shift-day-panel__tab-pill.is-active {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.62);
    color: #fff;
}

.shift-day-panel--design .shift-day-panel__tab-pill.is-active .shift-day-panel__tab-pill-route {
    color: #fff;
    font-weight: 700;
}

.shift-day-panel--design .shift-day-panel__tab-pill:not(.is-active) .shift-day-panel__tab-pill-route {
    color: #888;
}

.shift-day-panel--design .shift-day-panel__tab-pill.is-active .shift-day-panel__tab-pill-date {
    color: #aaa;
    opacity: 1;
}

.shift-day-panel--design .shift-day-panel__head-divider {
    height: 1px;
    margin: 0;
    background: rgba(255, 255, 255, 0.08);
}

.shift-day-panel--design .shift-day-panel__body {
    padding: 14px 18px 12px;
    background: transparent;
    overflow: visible;
}

.shift-day-panel--design .shift-day-panel__footer {
    padding: 0 18px 14px;
    border: none;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.shift-day-panel--design .shift-summary__panel {
    padding: 0;
    gap: 14px;
}

.shift-day-panel--design .shift-card__panel {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.shift-day-panel--design .shift-card__row {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
}

.shift-day-panel--design .shift-card__row--route {
    align-items: start;
}

.shift-day-panel--design .shift-card__row--route .shift-card__label {
    padding-top: 11px;
}

.shift-day-panel--design .shift-card__route-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    min-width: 0;
}

.shift-day-panel--design .shift-card__route-line {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-width: 0;
}

.shift-day-panel--design .shift-card__route-line > .shift-card__route-area {
    flex: 1;
    min-width: 0;
}

.shift-day-panel--design .shift-card__route-add-btn {
    position: relative;
    flex-shrink: 0;
    align-self: center;
    width: 36px;
    height: 40px;
    margin: 0;
    padding: 0;
    border-radius: 12px;
    border: 1px solid rgba(100, 116, 139, 0.45);
    background: rgba(100, 116, 139, 0.12);
    color: rgba(148, 163, 184, 0.95);
    font-size: 0;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, transform 0.12s ease;
}

.shift-day-panel--design .shift-card__route-add-btn::before,
.shift-day-panel--design .shift-card__route-add-btn::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    background: currentColor;
    border-radius: 1px;
    transform: translate(-50%, -50%);
}

.shift-day-panel--design .shift-card__route-add-btn::before {
    width: 14px;
    height: 2px;
}

.shift-day-panel--design .shift-card__route-add-btn::after {
    width: 2px;
    height: 14px;
}

.shift-day-panel--design .shift-card__route-add-btn:hover {
    border-color: rgba(148, 163, 184, 0.65);
    background: rgba(100, 116, 139, 0.22);
    color: #e2e8f0;
}

.shift-day-panel--design .shift-card__route-add-btn.is-active {
    border-color: rgba(148, 163, 184, 0.75);
    background: rgba(100, 116, 139, 0.28);
    color: #f1f5f9;
}

.shift-day-panel--design .shift-card__route-add-row[hidden] {
    display: none !important;
}

.shift-day-panel--design .shift-card__quick-routes--add-night {
    margin-top: 0;
}

.shift-day-panel--design .shift-card__row--trains {
    align-items: center;
}

.shift-day-panel--design .shift-card__row--trains .shift-card__label {
    padding-top: 0;
}

.shift-day-panel--design .shift-card__label {
    font-size: 12px;
    font-weight: 500;
    color: var(--shift-card-label);
    line-height: 1.3;
}

.shift-day-panel--design .shift-card__field {
    min-width: 0;
}

.shift-day-panel--design .shift-card__route-area {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
    width: 100%;
}

.shift-day-panel--design .shift-card__route-area--solo {
    gap: 0;
}

.shift-day-panel--design .shift-card__route-picker {
    position: relative;
    min-width: 0;
}

.shift-day-panel--design .shift-card__route-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 40px;
    min-width: 96px;
    width: fit-content;
    max-width: 100%;
    padding: 0 12px 0 14px;
    border-radius: 12px;
    border: 1px solid var(--shift-card-border);
    background: rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
    box-sizing: border-box;
}

.shift-day-panel--design .shift-card__route-pill .shift-summary__route,
.shift-day-panel--design .shift-card__route-pill .route-combobox {
    flex: 1;
    min-width: 52px;
    margin-bottom: 0;
}

.shift-day-panel--design .shift-card__route-pill .route-combobox-field {
    width: 100%;
}

.shift-day-panel--design .shift-card__route-picker > .route-combobox-list,
.shift-day-panel--design .shift-card__route-picker > .shift-summary__route-list {
    position: absolute;
    z-index: 40;
    left: 0;
    top: calc(100% + 6px);
    min-width: 100%;
    width: max(100%, 260px);
    max-width: min(320px, calc(100vw - 48px));
    max-height: 240px;
    overflow-y: auto;
    margin: 0;
    padding: 6px;
    list-style: none;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    background: rgba(14, 20, 30, 0.98);
    backdrop-filter: blur(12px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
}

.shift-day-panel--design .shift-card__route-picker .route-combobox-option {
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
    color: #e8e8e8;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.shift-day-panel--design .shift-card__route-picker .route-combobox-option:hover,
.shift-day-panel--design .shift-card__route-picker .route-combobox-option.is-selected {
    background: rgba(0, 107, 95, 0.28);
    color: #fff;
}

.shift-day-panel--design .shift-card__route-picker .route-combobox-empty {
    padding: 12px;
    text-align: center;
    font-size: 13px;
    color: #888;
}

.shift-day-panel--design .shift-card__route-pill .shift-summary__route-input,
.shift-day-panel--design .shift-card__route-pill .shift-card__route-input,
.shift-day-panel--design .shift-card__route-pill #constructorRouteInput,
#screen-calendar .shift-day-panel--design .shift-card__route-pill .shift-summary__route-input,
#screen-calendar .shift-day-panel--design .shift-card__route-pill .shift-card__route-input,
#screen-calendar .shift-day-panel--design .shift-card__route-pill .shift-constructor-input,
#screen-calendar .shift-day-panel--design .shift-card__route-pill #constructorRouteInput {
    width: 100%;
    min-width: 4.5ch;
    flex: 1 1 auto;
    min-height: 36px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    box-sizing: border-box;
}

.shift-day-panel--design .shift-card__route-pill .shift-summary__route-input:focus,
.shift-day-panel--design .shift-card__route-pill #constructorRouteInput:focus,
#screen-calendar .shift-day-panel--design .shift-card__route-pill .shift-summary__route-input:focus,
#screen-calendar .shift-day-panel--design .shift-card__route-pill .shift-constructor-input:focus,
#screen-calendar .shift-day-panel--design .shift-card__route-pill #constructorRouteInput:focus {
    outline: none;
    border: none;
    background: transparent;
    box-shadow: none;
}

.shift-day-panel--design .shift-card__route-chevron {
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #888;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.shift-day-panel--design .shift-card__route-chevron:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.shift-day-panel--design .shift-card__quick-routes {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    width: 100%;
    min-width: 0;
}

.shift-day-panel--design .shift-card__route-readonly {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.shift-day-panel--design .shift-card__quick-label {
    font-size: 10px;
    font-weight: 500;
    color: #666;
    line-height: 1;
}

.shift-day-panel--design .shift-card__quick-groups {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
}

.shift-day-panel--design .shift-card__quick-btns {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 5px;
    width: 100%;
    margin: 0;
    padding: 0;
}

.shift-day-panel--design .shift-card__quick-btns--work,
.shift-day-panel--design .shift-card__quick-btns--status {
    margin-left: 0;
    padding-left: 0;
}

.shift-day-panel--design .shift-card__quick-btns--work,
.shift-day-panel--design .shift-card__quick-btns--status {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.shift-day-panel--design .shift-card__row--status-quick {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.shift-day-panel--design .shift-card__row--status-quick .shift-card__label {
    flex: 0 0 72px;
    align-self: flex-start;
    margin-top: 4px;
    padding-top: 0;
}

.shift-day-panel--design .shift-card__row--status-quick .shift-card__field {
    flex: 1;
    min-width: 0;
}

.shift-day-panel--design .shift-card__route-area--average-pay .shift-card__quick-routes {
    padding: 0;
    margin: 0;
}

.shift-day-panel--design .shift-card__quick-btn {
    min-height: 26px;
    padding: 3px 8px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: transparent;
    color: #999;
    font-size: 10px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.shift-day-panel--design .shift-card__quick-btn.is-active {
    border-color: rgba(6, 202, 134, 0.55);
    color: #fff;
    background: linear-gradient(135deg, rgba(2, 76, 78, 0.65) 0%, rgba(6, 202, 134, 0.32) 100%);
}

.shift-day-panel--design .shift-card__quick-btn--rest {
    border-color: rgba(220, 80, 80, 0.35);
    color: #f0b0b0;
}

.shift-day-panel--design .shift-card__quick-btn--rest:hover {
    border-color: rgba(220, 80, 80, 0.55);
    color: #ffe0e0;
    background: rgba(180, 50, 50, 0.18);
}

.shift-day-panel--design .shift-card__quick-btn--rest.is-active {
    border-color: rgba(240, 120, 120, 0.65);
    color: #fff;
    background: linear-gradient(135deg, rgba(140, 35, 35, 0.72) 0%, rgba(200, 60, 60, 0.42) 100%);
}

.shift-day-panel--design .shift-card__quick-btn--average {
    border-color: rgba(245, 158, 11, 0.45);
    color: #fcd34d;
}

.shift-day-panel--design .shift-card__quick-btn--average.is-active {
    border-color: rgba(251, 191, 36, 0.75);
    color: #fff;
    background: linear-gradient(135deg, rgba(180, 83, 9, 0.75) 0%, rgba(245, 158, 11, 0.45) 100%);
}

.shift-day-panel--design .shift-card__summary--average-pay {
    margin-top: 4px;
    padding: 0;
    background: transparent;
    border: none;
    border-top: none;
    box-shadow: none;
}

.average-pay-card {
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    box-shadow: none;
}

.average-pay-card__amount {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.35;
    color: #34d399;
}

.average-pay-card__meta {
    margin-top: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.35;
    color: #94a3b8;
}

.shift-day-panel--design .shift-card__quick-routes--replace {
    margin-top: 12px;
}

.shift-day-panel--design .shift-card__quick-routes--replace .shift-card__quick-label {
    color: #888;
}

.shift-day-panel--rest-day .shift-day-panel__body {
    padding-top: 4px;
}

.shift-rest-panel__route {
    margin-top: 12px;
}

.shift-rest-panel__route .shift-card__route-area {
    gap: 8px;
}

.shift-rest-panel__route .shift-card__quick-routes--replace {
    margin-top: 0;
}

.shift-rest-panel__route .shift-card__quick-btns {
    gap: 6px;
}

.shift-rest-panel {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
}

.shift-rest-hero {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 14px 12px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(180, 50, 50, 0.34) 0%, rgba(110, 28, 28, 0.22) 100%);
    border: 1px solid rgba(220, 80, 80, 0.32);
}

.shift-rest-hero__badge {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
    color: #ffe8e8;
    letter-spacing: 0.04em;
}

.shift-rest-hero__copy {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.shift-rest-hero__title {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.shift-rest-hero__hint {
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 220, 220, 0.78);
    line-height: 1.3;
}

.shift-rest-double-badge {
    display: inline-flex;
    align-items: center;
    margin-left: 6px;
    padding: 1px 6px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.4;
    vertical-align: middle;
    background: rgba(200, 60, 60, 0.28);
    color: #ffb8b8;
    border: 1px solid rgba(220, 80, 80, 0.35);
}

#screen-calendar .calendar-local-routes-rest {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

#screen-calendar .calendar-local-routes-rest .calendar-local-route-btn {
    width: 100%;
    flex: 1 1 100%;
    border-color: rgba(220, 80, 80, 0.35);
    color: #f0b0b0;
}

#screen-calendar .calendar-local-routes-rest .calendar-local-route-btn.is-active,
#screen-calendar .calendar-local-route-btn--rest.is-active {
    border-color: rgba(240, 120, 120, 0.65);
    background: linear-gradient(160deg, rgba(200, 60, 60, 0.34), rgba(140, 35, 35, 0.2));
    color: #fff;
}

#screen-calendar .calendar-local-route-btn--rest {
    border-color: rgba(220, 80, 80, 0.35);
    color: #f0b0b0;
}

.shift-day-panel--design .shift-card__time-row {
    display: flex;
    align-items: center;
    width: 100%;
}

.shift-day-panel--design .shift-card__time-line {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-width: 0;
}

.shift-day-panel--design .shift-card__time-line > .shift-card__time-range,
.shift-day-panel--design .shift-card__time-line > .shift-card__time-range--readonly,
.shift-day-panel--design .shift-card__time-line--lunch > .shift-card__time-range,
.shift-day-panel--design .shift-card__time-line--lunch > .shift-card__time-range--readonly {
    flex: 1;
    min-width: 0;
    width: auto;
}

.shift-day-panel--design .shift-card__time-add-btn {
    position: relative;
    flex-shrink: 0;
    align-self: center;
    width: 32px;
    height: 36px;
    margin: 0;
    padding: 0;
    border-radius: 10px;
    border: 1px solid rgba(100, 116, 139, 0.45);
    background: rgba(100, 116, 139, 0.12);
    color: rgba(148, 163, 184, 0.95);
    font-size: 0;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, transform 0.12s ease;
}

.shift-day-panel--design .shift-card__time-add-btn[hidden] {
    display: none !important;
}

.shift-day-panel--design .shift-card__time-add-btn::before,
.shift-day-panel--design .shift-card__time-add-btn::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    background: currentColor;
    border-radius: 1px;
    transform: translate(-50%, -50%);
}

.shift-day-panel--design .shift-card__time-add-btn::before {
    width: 12px;
    height: 2px;
}

.shift-day-panel--design .shift-card__time-add-btn::after {
    width: 2px;
    height: 12px;
}

.shift-day-panel--design .shift-card__time-add-btn:hover {
    border-color: rgba(148, 163, 184, 0.65);
    background: rgba(100, 116, 139, 0.22);
    color: #e2e8f0;
}

.shift-day-panel--design .shift-card__time-remove-btn {
    position: relative;
    flex-shrink: 0;
    align-self: center;
    width: 32px;
    height: 36px;
    margin: 0;
    padding: 0;
    border-radius: 10px;
    border: 1px solid rgba(239, 68, 68, 0.42);
    background: rgba(239, 68, 68, 0.1);
    color: rgba(252, 129, 129, 0.95);
    font-size: 0;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, transform 0.12s ease;
}

.shift-day-panel--design .shift-card__time-remove-btn::before,
.shift-day-panel--design .shift-card__time-remove-btn::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 12px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
}

.shift-day-panel--design .shift-card__time-remove-btn::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.shift-day-panel--design .shift-card__time-remove-btn::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.shift-day-panel--design .shift-card__time-remove-btn:hover {
    border-color: rgba(248, 113, 113, 0.72);
    background: rgba(239, 68, 68, 0.18);
    color: #fecaca;
}

.shift-day-panel--design .shift-card__time-line--lunch {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-width: 0;
}

.shift-day-panel--design .shift-card__time-slot--lunch {
    min-height: 34px;
    padding: 0 8px;
    border-radius: 9px;
}

.shift-day-panel--design .shift-card__time-slot--lunch .shift-card__time-display {
    font-size: 13px;
    padding: 0 4px;
}

.shift-day-panel--design .shift-card__time-slot--lunch .shift-card__time-divider {
    height: 16px;
    margin: 0 6px;
}

.shift-day-panel--design .shift-card__time-slot--lunch .shift-card__time-icon {
    width: 16px;
    height: 16px;
}

.shift-day-panel--design .shift-card__time-slot--lunch .shift-card__time-icon::before {
    height: 5px;
    margin-top: -4px;
}

.shift-day-panel--design .shift-card__time-slot--lunch .shift-card__time-icon::after {
    width: 4px;
}

.shift-day-panel--design .shift-card__time-range {
    width: 100%;
    min-width: 0;
}

.shift-day-panel--design .shift-card__time-slot {
    display: flex;
    align-items: center;
    gap: 0;
    width: 100%;
    min-height: 36px;
    padding: 0 10px;
    margin: 0;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(32, 36, 44, 0.92);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    box-sizing: border-box;
    transition: border-color 0.15s ease, background 0.15s ease;
}

button.shift-card__time-slot {
    cursor: pointer;
    font: inherit;
    color: inherit;
    text-align: left;
}

.shift-day-panel--design .shift-card__time-slot:hover,
.shift-day-panel--design .shift-card__time-slot:focus-visible {
    border-color: rgba(0, 184, 148, 0.45);
    background: rgba(36, 42, 52, 0.98);
    outline: none;
}

.shift-day-panel--design .shift-card__time-display {
    flex: 1;
    min-width: 0;
    padding: 0 6px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.shift-day-panel--design .shift-card__time-display.is-placeholder {
    color: rgba(255, 255, 255, 0.42);
}

.shift-day-panel--design .shift-card__time-divider {
    flex-shrink: 0;
    width: 0;
    height: 18px;
    margin: 0 8px;
    border-left: 1px dashed rgba(255, 255, 255, 0.28);
}

.shift-day-panel--design .shift-card__time-icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border: 1.5px solid rgba(122, 142, 168, 0.85);
    border-radius: 50%;
    position: relative;
    box-sizing: border-box;
}

.shift-day-panel--design .shift-card__time-icon::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 1.5px;
    height: 6px;
    margin-left: -0.75px;
    margin-top: -5px;
    background: rgba(122, 142, 168, 0.95);
    transform-origin: bottom center;
}

.shift-day-panel--design .shift-card__time-icon::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 5px;
    height: 1.5px;
    margin-left: -0.75px;
    margin-top: -0.75px;
    background: rgba(122, 142, 168, 0.95);
    transform-origin: left center;
}

.shift-day-panel--design .shift-card__time-slot .shift-summary__time-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.shift-day-panel--design .shift-card__time-trigger {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    padding: 0;
    border: 1.5px solid rgba(122, 142, 168, 0.85);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    position: relative;
    box-sizing: border-box;
}

.shift-day-panel--design .shift-card__time-trigger::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 1.5px;
    height: 5px;
    margin-left: -0.75px;
    margin-top: -4px;
    background: rgba(122, 142, 168, 0.95);
    transform-origin: bottom center;
}

.shift-day-panel--design .shift-card__time-trigger::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 4px;
    height: 1.5px;
    margin-left: -0.75px;
    margin-top: -0.75px;
    background: rgba(122, 142, 168, 0.95);
    transform-origin: left center;
}

.shift-day-panel--design .shift-card__time-trigger:hover {
    border-color: rgba(0, 184, 148, 0.75);
}

.shift-day-panel--design .shift-summary__time-input--24h {
    caret-color: #00b894;
}

.shift-day-panel--design .shift-summary__lunch-editor .shift-summary__time-input {
    min-height: 36px;
    padding: 6px 8px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(32, 36, 44, 0.92);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    font-variant-numeric: tabular-nums;
    box-sizing: border-box;
}

.shift-day-panel--design .shift-summary__lunch-editor .shift-summary__time-input:focus {
    outline: none;
    border-color: rgba(0, 184, 148, 0.45);
}

.shift-time-picker {
    position: fixed;
    z-index: 12050;
    pointer-events: auto;
}

.shift-time-picker[hidden] {
    display: none !important;
}

.shift-time-picker__panel {
    width: 240px;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(14, 20, 30, 0.98);
    backdrop-filter: blur(12px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.55);
    box-sizing: border-box;
}

.shift-time-picker__tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-bottom: 10px;
}

.shift-time-picker__tab {
    min-height: 32px;
    padding: 0 8px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.12s ease, background 0.12s ease, color 0.12s ease;
}

.shift-time-picker__tab:hover {
    border-color: rgba(255, 255, 255, 0.22);
    color: #fff;
}

.shift-time-picker__tab.is-active {
    border-color: rgba(0, 184, 148, 0.45);
    background: linear-gradient(135deg, rgba(2, 76, 78, 0.55) 0%, rgba(6, 202, 134, 0.24) 100%);
    color: #fff;
}

.shift-time-picker__tab[hidden] {
    display: none !important;
}

.shift-time-picker__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
    padding: 0 2px;
}

.shift-time-picker__title {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
}

.shift-time-picker__hint {
    font-size: 11px;
    color: #888;
}

.shift-time-picker__cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.shift-time-picker__col-label {
    display: block;
    margin-bottom: 4px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #777;
    text-align: center;
}

.shift-time-picker__list {
    max-height: 180px;
    overflow-y: auto;
    margin: 0;
    padding: 4px;
    list-style: none;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    scrollbar-width: thin;
}

.shift-time-picker__option {
    padding: 8px 6px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: #ddd;
    text-align: center;
    cursor: pointer;
    transition: background 0.12s ease, color 0.12s ease;
}

.shift-time-picker__option:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.shift-time-picker__option.is-selected {
    background: linear-gradient(135deg, rgba(2, 76, 78, 0.75) 0%, rgba(6, 202, 134, 0.42) 100%);
    color: #fff;
}

.shift-day-panel--design .shift-card__trains-nav {
    display: flex;
    align-items: center;
    gap: 0;
    width: 100%;
    min-height: 40px;
    height: 40px;
    padding: 5px 46px 5px 10px;
    border-radius: 10px;
    border: 1px solid rgba(6, 202, 134, 0.28);
    background: rgba(2, 76, 78, 0.22);
    cursor: pointer;
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
    transition: background 0.15s ease, border-color 0.15s ease;
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
}

.shift-day-panel--design .shift-card__trains-nav:hover {
    background: rgba(3, 139, 111, 0.24);
    border-color: rgba(6, 202, 134, 0.42);
}

.shift-day-panel--design .shift-summary__trains-peek {
    display: block;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
}

.shift-day-panel--design .shift-summary__trains-peek.is-peek-open .shift-card__trains-nav {
    border-color: rgba(6, 202, 134, 0.55);
    box-shadow: 0 4px 14px rgba(6, 202, 134, 0.2);
}

.shift-day-panel--design .shift-card__trains-nav .shift-summary__trains-chips,
.shift-day-panel--design .shift-summary__trains-chips--overlap {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 5px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    padding-right: 4px;
}

.shift-day-panel--design .shift-card__trains-nav .shift-summary__train-chip,
.shift-day-panel--design .shift-summary__trains-chips--overlap .shift-summary__train-chip {
    flex: 0 0 auto;
    position: relative;
    min-height: 26px;
    margin-left: 0;
    padding: 3px 9px;
    border-radius: 8px;
    border: 1px solid rgba(180, 245, 220, 0.42);
    background: linear-gradient(180deg, rgba(3, 139, 111, 0.96) 0%, rgba(2, 76, 78, 0.98) 100%);
    color: #eefdf6;
    font-size: 12px;
    font-weight: 700;
    font-family: inherit;
    line-height: 1.2;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.28);
    pointer-events: none;
}

.shift-day-panel--design .shift-summary__trains-chips--overlap .shift-summary__train-chip:first-child {
    margin-left: 0;
}

.shift-day-panel--design .shift-summary__trains-popover {
    right: 0;
    left: auto;
    max-width: min(92vw, 320px);
    border-color: rgba(6, 202, 134, 0.4);
}

.shift-day-panel--design .shift-card__trains-go {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #038B6F 0%, #06CA86 100%);
    box-shadow: 0 2px 8px rgba(6, 202, 134, 0.28);
}

.shift-day-panel--design .shift-card__trains-play {
    display: block;
    width: 0;
    height: 0;
    margin-left: 3px;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 9px solid #fff;
}

.shift-day-panel--design .shift-card__summary {
    margin-top: 2px;
    padding: 14px 16px;
    border-radius: 12px;
    background: linear-gradient(90deg, #024C4E 0%, #038B6F 50%, #06CA86 100%);
    border-top: 1px solid rgba(6, 202, 134, 0.22);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.shift-day-panel--design .shift-card__summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.shift-day-panel--design .shift-card__summary-label {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.88);
}

.shift-day-panel--design .shift-card__summary-value {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

.shift-day-panel--design .shift-card__notes-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin-top: 6px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-sizing: border-box;
}

.shift-day-panel--design .shift-card__notes-title {
    margin: 0;
    padding: 0 2px;
    color: rgba(148, 163, 184, 0.78);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.2;
}

.shift-day-panel--design .shift-card__notes-list {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
}

.shift-day-panel--design .shift-card__notes-list:empty {
    display: none;
}

.shift-day-panel--design .shift-card__note-item {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    width: 100%;
    min-width: 0;
    padding: 8px 2px;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: transparent;
    border-radius: 0;
    box-sizing: border-box;
}

.shift-day-panel--design .shift-card__note-item:last-child {
    border-bottom-color: rgba(255, 255, 255, 0.04);
}

.shift-day-panel--design .shift-card__note-text {
    flex: 1;
    min-width: 0;
    margin: 0;
    color: rgba(168, 178, 194, 0.88);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
    transition: color 0.15s ease;
}

.shift-day-panel--design .shift-card__note-text.is-clamped {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}

.shift-day-panel--design .shift-card__note-text.is-expandable {
    cursor: pointer;
}

.shift-day-panel--design .shift-card__note-text.is-expandable:hover {
    color: rgba(210, 218, 230, 0.96);
}

.shift-day-panel--design .shift-card__note-text.is-expanded {
    display: block;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    overflow: visible;
}

.shift-day-panel--design .shift-card__note-actions {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-top: -2px;
    opacity: 0.72;
    transition: opacity 0.15s ease;
}

.shift-day-panel--design .shift-card__note-item:hover .shift-card__note-actions,
.shift-day-panel--design .shift-card__note-item:focus-within .shift-card__note-actions {
    opacity: 1;
}

.shift-day-panel--design .shift-card__note-copy,
.shift-day-panel--design .shift-card__note-delete {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: rgba(148, 163, 184, 0.78);
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease, transform 0.12s ease;
}

.shift-day-panel--design .shift-card__note-copy:hover {
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.06);
}

.shift-day-panel--design .shift-card__note-delete:hover {
    color: #fda4af;
    background: rgba(244, 63, 94, 0.1);
}

.shift-day-panel--design .shift-card__note-copy:active,
.shift-day-panel--design .shift-card__note-delete:active {
    transform: scale(0.94);
}

.shift-day-panel--design .shift-card__note-copy.is-copied {
    color: #06CA86;
}

.shift-day-panel--design .shift-card__note-composer {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    min-width: 0;
    min-height: 40px;
    height: 40px;
    margin-top: 2px;
    padding: 0 46px 0 0;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(18, 22, 30, 0.55);
    box-sizing: border-box;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.shift-day-panel--design .shift-card__note-composer:focus-within {
    border-color: rgba(6, 202, 134, 0.45);
    background: rgba(18, 22, 30, 0.78);
    box-shadow: 0 0 0 3px rgba(6, 202, 134, 0.12);
}

.shift-day-panel--design .shift-card__note-input {
    display: block;
    flex: 1;
    width: 100%;
    min-width: 0;
    height: auto;
    min-height: 40px;
    max-height: 40px;
    margin: 0;
    padding: 0 12px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: rgba(240, 244, 250, 0.96);
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 40px;
    white-space: nowrap;
    overflow: hidden;
    resize: none;
    box-sizing: border-box;
}

.shift-day-panel--design .shift-card__note-input::placeholder {
    color: rgba(168, 178, 194, 0.58);
    font-weight: 500;
}

.shift-day-panel--design .shift-card__note-input:focus {
    outline: none;
}

.shift-day-panel--design .shift-card__note-send {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #038B6F 0%, #06CA86 100%);
    box-shadow: 0 2px 8px rgba(6, 202, 134, 0.28);
    cursor: pointer;
    transition: transform 0.12s ease, filter 0.15s ease;
}

.shift-day-panel--design .shift-card__note-send:hover {
    filter: brightness(1.06);
}

.shift-day-panel--design .shift-card__note-send:active {
    transform: translateY(-50%) scale(0.94);
}

.shift-day-panel--design .shift-card__note-send-icon {
    display: block;
    width: 0;
    height: 0;
    margin-left: 3px;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 9px solid #fff;
}

.shift-day-panel--design #constructorRouteCombobox .route-combobox-field {
    min-width: 0;
}

#screen-calendar .shift-day-panel__meta-line {
    margin: 0;
    font-size: 10px;
    line-height: 1.45;
    color: #666;
    text-align: center;
}

#screen-calendar .shift-day-panel__meta-line--empty {
    color: rgba(255, 160, 120, 0.88);
}

#screen-calendar .shift-day-panel__footer-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

#screen-calendar .shift-day-panel__reset-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 8px 16px;
    border: 1px solid rgba(130, 170, 230, 0.28);
    border-radius: 10px;
    background: rgba(68, 110, 175, 0.1);
    color: #b8cce8;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

#screen-calendar .shift-day-panel__reset-btn[hidden] {
    display: none !important;
}

#screen-calendar .shift-day-panel__reset-btn:hover {
    background: rgba(68, 110, 175, 0.18);
    border-color: rgba(150, 185, 235, 0.42);
    color: #dbe8ff;
}

#screen-calendar .shift-day-panel__delete-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 8px 18px;
    border: 1px solid rgba(255, 100, 100, 0.42);
    border-radius: 10px;
    background: rgba(255, 80, 80, 0.1);
    color: #ff8a8a;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    opacity: 1;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

#screen-calendar .shift-day-panel__delete-btn:hover {
    background: rgba(255, 80, 80, 0.18);
    border-color: rgba(255, 120, 120, 0.55);
    color: #ffb0b0;
}

#screen-calendar .shift-day-panel__tab-panel[hidden] {
    display: none !important;
}

#screen-calendar .shift-summary__trains-empty {
    color: #666;
    font-size: 13px;
}

#screen-calendar .route-combobox-option {
    white-space: normal;
    line-height: 1.35;
}

#screen-calendar .calendar-local-routes-label {
    margin: 0 0 6px;
    text-align: left;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--app-caption);
}

#screen-calendar .calendar-local-routes {
    margin-bottom: 2px;
    padding: 10px;
    border-radius: var(--app-radius);
    border: var(--card-border);
    background: rgba(255, 255, 255, 0.04);
}

#screen-calendar .calendar-local-routes-divider {
    margin: 10px 0 8px;
    text-align: center;
    font-size: 10px;
    color: var(--app-caption);
}

#screen-calendar .calendar-local-routes-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

#screen-calendar .calendar-local-route-btn {
    flex: 1 1 calc(20% - 5px);
    min-width: 44px;
    min-height: 32px;
    padding: 6px 8px;
    border: var(--card-border);
    border-radius: var(--app-radius);
    background: rgba(255, 255, 255, 0.045);
    color: var(--app-text);
    font-family: inherit;
    font-size: var(--font-sm);
    font-weight: 700;
    line-height: 1;
    text-align: center;
    cursor: pointer;
    transition: transform 0.18s var(--app-ease), border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

#screen-calendar .calendar-local-route-btn:hover {
    background: rgba(255, 255, 255, 0.085);
    border-color: var(--glass-border);
}

#screen-calendar .calendar-local-route-btn:active {
    transform: scale(0.96);
}

#screen-calendar .calendar-local-route-btn.is-active {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 2px 8px rgba(0, 0, 0, 0.18);
}

#screen-calendar .calendar-local-route-btn--day.is-active {
    border-color: rgba(168, 173, 184, 0.5);
    background: linear-gradient(160deg, rgba(168, 173, 184, 0.28), rgba(120, 127, 140, 0.16));
    color: #fff;
}

#screen-calendar .calendar-local-route-btn--night.is-active {
    border-color: rgba(143, 155, 176, 0.55);
    background: linear-gradient(160deg, rgba(143, 155, 176, 0.3), rgba(95, 109, 130, 0.18));
    color: #fff;
}

#screen-calendar .calendar-local-route-btn--morning.is-active {
    border-color: rgba(154, 163, 168, 0.52);
    background: linear-gradient(160deg, rgba(154, 163, 168, 0.26), rgba(109, 119, 125, 0.16));
    color: #fff;
}

#screen-calendar .calendar-local-route-btn--tech.is-active {
    border-color: rgba(155, 89, 182, 0.55);
    background: linear-gradient(160deg, rgba(155, 89, 182, 0.28), rgba(142, 68, 173, 0.14));
    color: #fff;
}

#screen-calendar .calendar-local-hours {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--glass-border-soft);
}

#screen-calendar .calendar-local-hours label {
    display: block;
    margin-bottom: 6px;
    font-size: var(--font-sm);
    color: var(--app-caption);
}

#screen-calendar .calendar-local-hours-input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    margin-bottom: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--app-radius);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-main);
    font-size: var(--font-base);
}

#screen-calendar .shift-summary-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 14px 14px;
    padding: 10px 12px;
    border-left: 3px solid var(--app-green);
    border-radius: 0 var(--app-radius) var(--app-radius) 0;
    background: rgba(23, 128, 56, 0.1);
    color: #e8fff0;
    font-size: var(--font-sm);
    line-height: 1.45;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

#screen-calendar .shift-summary--stacked .shift-summary-note {
    margin-left: var(--shift-summary-inset, 14px);
    margin-right: var(--shift-summary-inset, 14px);
}

#screen-calendar .shift-summary-note:hover {
    background: rgba(23, 128, 56, 0.16);
    border-left-color: #1f9a47;
}

#screen-calendar .shift-summary-note-icon {
    flex-shrink: 0;
    font-size: 14px;
    line-height: 1.35;
}

#screen-calendar .shift-summary-note-text {
    flex: 1;
    min-width: 0;
    word-break: break-word;
    text-align: left;
}

#screen-calendar .shift-summary-note-delete {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-left: auto;
    padding: 0;
    border: none;
    border-radius: 4px;
    background: transparent;
    color: rgba(232, 255, 240, 0.72);
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

#screen-calendar .shift-summary-note-delete:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

#screen-calendar .shift-summary-note-delete:active {
    transform: scale(0.94);
}

#screen-calendar .shift-summary-note-add {
    display: block;
    width: calc(100% - 28px);
    margin: 0 14px 14px;
    padding: 12px 14px;
    border: 1px solid rgba(23, 128, 56, 0.32);
    border-radius: var(--app-radius);
    background: transparent;
    color: rgba(168, 230, 190, 0.92);
    font-family: inherit;
    font-size: var(--font-md);
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.12s ease;
    box-shadow: none;
}

#screen-calendar .shift-summary--stacked .shift-summary-note-add {
    width: calc(100% - var(--shift-summary-inset, 14px) * 2);
    margin-left: var(--shift-summary-inset, 14px);
    margin-right: var(--shift-summary-inset, 14px);
}

#screen-calendar .shift-summary-note-add:hover {
    background: rgba(23, 128, 56, 0.1);
    border-color: rgba(23, 128, 56, 0.48);
    color: #d4f5e0;
}

#screen-calendar .shift-summary-note-add:active {
    transform: scale(0.98);
    background: rgba(23, 128, 56, 0.16);
    border-color: rgba(23, 128, 56, 0.58);
}

.shift-note-sheet-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 11000;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    background: rgba(6, 10, 18, 0.58);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.shift-note-sheet-overlay.is-open {
    display: flex;
}

.shift-note-sheet {
    width: 100%;
    max-width: 640px;
    background: #141b27;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: none;
    border-radius: 9px 9px 0 0;
    padding: 18px 18px calc(18px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.42);
    transform: translateY(100%);
    transition: transform 0.32s var(--app-ease);
}

.shift-note-sheet-overlay.is-open .shift-note-sheet {
    transform: translateY(0);
}

.shift-note-sheet-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.shift-note-sheet-title {
    margin: 0;
    color: #f4f7ff;
    font-size: clamp(16px, 4vw, 18px);
    font-weight: 700;
    line-height: 1.35;
    flex: 1;
    min-width: 0;
}

.shift-note-sheet-close {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.06);
    color: #9db0cf;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.shift-note-sheet-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #f4f7ff;
}

.shift-note-input {
    width: 100%;
    min-height: 112px;
    box-sizing: border-box;
    margin-bottom: 14px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    background: rgba(8, 12, 20, 0.72);
    color: #f4f7ff;
    font: inherit;
    font-size: 15px;
    line-height: 1.45;
    resize: vertical;
}

.shift-note-input::placeholder {
    color: #6f7d92;
}

.shift-note-input:focus {
    outline: none;
    border-color: rgba(23, 128, 56, 0.72);
    box-shadow: 0 0 0 2px rgba(23, 128, 56, 0.18);
}

.shift-note-save-btn {
    width: 100%;
    padding: 14px 16px;
    border: none;
    border-radius: 7px;
    background: var(--app-green);
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.12s ease, background 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 8px 24px rgba(23, 128, 56, 0.28);
}

.shift-note-save-btn:hover {
    background: #1a9a47;
}

.shift-note-save-btn:active {
    transform: scale(0.98);
}

@media (min-width: 768px) {
    .shift-note-sheet-overlay {
        align-items: center;
        padding: 24px;
    }

    .shift-note-sheet {
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 9px;
        max-width: 480px;
        transform: translateY(24px);
        opacity: 0;
        transition: transform 0.32s var(--app-ease), opacity 0.32s var(--app-ease);
    }

    .shift-note-sheet-overlay.is-open .shift-note-sheet {
        transform: translateY(0);
        opacity: 1;
    }
}

#screen-profile .profile-app-wrap .app-hint {
    color: var(--app-caption);
    font-size: var(--font-sm);
}

.ics-export-sheet-overlay {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.55);
    box-sizing: border-box;
}

.ics-export-sheet-overlay[hidden] {
    display: none !important;
}

.ics-export-sheet {
    width: min(100%, 420px);
    padding: 18px 16px 16px;
    border-radius: 14px 14px 10px 10px;
    background: var(--surface-card-inner, #252528);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.ics-export-sheet-title {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 600;
    color: var(--app-text-bright, #f5f5f5);
}

.ics-export-sheet-text {
    margin: 0 0 14px;
    font-size: 13px;
    line-height: 1.45;
    color: var(--app-caption, #aaa);
}

.ics-export-sheet-action {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 42px;
    margin-bottom: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    box-sizing: border-box;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
}

.ics-export-sheet-action[hidden] {
    display: none !important;
}

.ics-export-sheet-action--primary {
    border: 1px solid rgba(130, 170, 230, 0.34);
    background: rgba(68, 110, 175, 0.22);
    color: #e8f0ff;
    font: inherit;
}

.ics-export-sheet-action--secondary {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: var(--app-text-bright, #f5f5f5);
}

.ics-export-sheet-hint {
    margin: 0 0 12px;
    font-size: 12px;
    line-height: 1.4;
    color: var(--app-caption, #aaa);
}

.ics-export-sheet-close {
    display: block;
    width: 100%;
    min-height: 38px;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: var(--app-caption, #aaa);
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}

/* --- Profile month picker (экран «Я») --- */

#screen-profile .profile-month-trigger-wrap {
    position: relative;
    width: 100%;
    min-width: 0;
    z-index: 20;
}

#screen-profile .profile-month-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    height: 42px;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 14px !important;
    background: #22262f !important;
    color: #ffffff;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
    box-sizing: border-box;
}

#screen-profile .profile-month-trigger:hover {
    background: #252a34 !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

#screen-profile .profile-month-trigger:active {
    opacity: 0.9;
}

#screen-profile .profile-month-trigger.is-open {
    background: #252a34 !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    box-shadow: none;
}

#screen-profile .profile-month-trigger .profile-month-label {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: -0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#screen-profile .profile-month-chevron {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--app-muted);
    transition: transform 0.2s var(--app-ease), color 0.15s ease;
}

#screen-profile .profile-month-trigger.is-open .profile-month-chevron {
    transform: rotate(180deg);
    color: var(--app-text);
}

#screen-profile .profile-month-picker {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 40;
    width: auto;
    padding: 12px;
    border: 1px solid var(--glass-border);
    border-radius: var(--glass-radius);
    background: var(--glass-bg-strong);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
    box-sizing: border-box;
}

#screen-profile .profile-month-picker[hidden] {
    display: none !important;
}

#screen-profile .profile-month-picker-year {
    display: grid;
    grid-template-columns: 40px 1fr 40px;
    align-items: center;
    gap: 4px;
    margin-bottom: 10px;
}

#screen-profile .profile-month-picker-year-label {
    font-size: var(--font-md);
    font-weight: 700;
    color: var(--app-text-bright);
    text-align: center;
    letter-spacing: -0.02em;
}

#screen-profile .profile-month-picker-year-nav {
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: var(--app-radius);
    background: rgba(255, 255, 255, 0.06);
    color: var(--app-text);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, opacity 0.15s ease;
}

#screen-profile .profile-month-picker-year-nav:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.12);
}

#screen-profile .profile-month-picker-year-nav:disabled {
    opacity: 0.35;
    cursor: default;
}

#screen-profile .profile-month-picker-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

#screen-profile .profile-month-picker-cell {
    position: relative;
    min-height: 44px;
    padding: 10px 6px;
    border: 1px solid transparent;
    border-radius: var(--app-radius);
    background: rgba(255, 255, 255, 0.04);
    color: var(--app-text);
    font-size: var(--font-sm);
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

#screen-profile .profile-month-picker-cell:hover {
    background: rgba(255, 255, 255, 0.1);
}

#screen-profile .profile-month-picker-cell.is-current {
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

#screen-profile .profile-month-picker-cell.is-current::after {
    content: '';
    position: absolute;
    top: 6px;
    right: 6px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--brand-teal);
}

#screen-profile .profile-month-picker-cell.is-selected {
    background: rgba(23, 128, 56, 0.22);
    border-color: rgba(23, 128, 56, 0.55);
    color: #fff;
}

#screen-profile .profile-month-picker-cell.is-selected.is-current::after {
    background: #7dffb0;
}

/* —— Средний заработок (принудительно поверх summary-gradient) —— */
#screen-calendar .shift-day-panel--design .shift-card__average-pay-wrap {
    margin-top: 4px;
    padding: 0;
    background: transparent !important;
    background-image: none !important;
    border: none !important;
    box-shadow: none !important;
}

#screen-calendar .shift-day-panel--design .shift-card__summary.shift-card__summary--average-pay {
    margin-top: 4px;
    padding: 0 !important;
    background: transparent !important;
    background-image: none !important;
    border: none !important;
    border-top: none !important;
    box-shadow: none !important;
}

#screen-calendar .shift-day-panel--design .average-pay-card,
#screen-calendar .shift-day-panel--design .average-pay-card[data-summary-average-pay] {
    background: rgba(16, 185, 129, 0.08) !important;
    border: 1px solid rgba(16, 185, 129, 0.25) !important;
    border-radius: 12px !important;
    box-shadow: none !important;
    padding: 12px 16px !important;
}

#screen-calendar .shift-day-panel--design .average-pay-card__amount,
#screen-calendar .shift-day-panel--design .average-pay-card__meta {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    outline: none !important;
}

#screen-calendar .shift-day-panel--design .average-pay-card__amount {
    color: #34d399 !important;
    font-weight: 600 !important;
    font-size: 1.05rem !important;
    line-height: 1.35;
}

#screen-calendar .shift-day-panel--design .average-pay-card__meta {
    color: #94a3b8 !important;
    font-size: 0.8rem !important;
    margin-top: 4px !important;
    font-weight: 500;
    line-height: 1.35;
}

#screen-calendar .shift-day-panel--design .shift-card__quick-groups {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
    width: 100%;
}

#screen-calendar .shift-day-panel--design .shift-card__quick-btns--work,
#screen-calendar .shift-day-panel--design .shift-card__quick-btns--status {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
    gap: 6px !important;
    margin: 0 !important;
    margin-left: 0 !important;
    padding: 0 !important;
    padding-left: 0 !important;
    width: 100%;
}

#screen-calendar .shift-day-panel--design .shift-card__row--status-quick .shift-card__label,
#screen-calendar .shift-day-panel--design .shift-card__row--status-quick.shift-card__row--route .shift-card__label {
    align-self: flex-start !important;
    margin-top: 4px !important;
    padding-top: 0 !important;
}

