/* Personal account */
.account-body {
    background: hsl(var(--white));
}

.account-body .progress-wrap {
    right: 28px;
    bottom: 92px;
}

.account-page {
    min-height: 640px;
    padding: 76px 0 120px;
    background:
        radial-gradient(circle at 8% 4%, hsl(var(--base) / 0.06), transparent 24rem),
        linear-gradient(180deg, hsl(var(--white)) 0, hsl(var(--base) / 0.025) 100%);
}

.account-page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 48px;
}

.account-page-header--actions {
    align-items: center;
}

.account-page-header > div:first-child {
    max-width: 760px;
}

.account-page-header h1 {
    margin: 0 0 14px;
    color: hsl(var(--black));
    font-size: clamp(38px, 5vw, 64px);
    line-height: 1.04;
}

.account-page-header p {
    max-width: 680px;
    margin: 0;
    color: hsl(var(--black) / 0.67);
    font-size: 18px;
    line-height: 1.55;
}

.account-section,
.account-panel,
.account-support-card {
    margin-top: 32px;
    padding: 34px;
    border: 1px solid hsl(var(--black) / 0.1);
    border-radius: 10px;
    background: hsl(var(--white));
    box-shadow: 0 18px 48px hsl(var(--black) / 0.055);
}

.account-section--flush {
    margin-top: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.account-section__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 26px;
}

.account-section__heading--with-actions {
    align-items: flex-end;
}

.account-section__heading h2,
.account-calendar-summary h2 {
    margin: 0;
    color: hsl(var(--black));
    font-size: clamp(25px, 3vw, 34px);
    line-height: normal;
}

.account-section__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.account-button,
.account-text-button,
.account-icon-button {
    border: 0;
    font-family: inherit;
    cursor: pointer;
}

.account-button {
    --account-button-hover: hsl(var(--base));
    position: relative;
    isolation: isolate;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 20px;
    border: 1px solid hsl(var(--base));
    border-radius: 6px;
    background: hsl(var(--base));
    color: hsl(var(--white));
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    overflow: hidden;
    outline: 2px solid transparent;
    outline-offset: 2px;
    transform: none;
    transition: color 0.25s ease, border-color 0.25s ease, outline-color 0.2s ease;
}

.account-button::before {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: -1;
    width: 0;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--account-button-hover);
    content: "";
    transform: translate(-50%, -50%);
    transition: width 0.38s ease;
}

.account-button:hover {
    border-color: hsl(var(--secondary));
    color: hsl(var(--white));
    transform: none;
}

.account-button:hover::before {
    width: 260%;
}

.account-button:focus-visible {
    outline-color: hsl(var(--secondary) / 0.5);
    transform: none;
}

.account-button .material-icons {
    font-size: 20px;
}

.account-button--outline {
    background: transparent;
    color: hsl(var(--base));
}

.account-button--outline:hover,
.account-button--outline:focus-visible {
    color: hsl(var(--white));
}

.account-button--ghost {
    --account-button-hover: hsl(var(--black) / 0.055);
    border-color: hsl(var(--black) / 0.15);
    background: transparent;
    color: hsl(var(--black));
}

.account-button--ghost:hover,
.account-button--ghost:focus-visible {
    border-color: hsl(var(--black) / 0.28);
    color: hsl(var(--black));
}

.account-button--danger {
    --account-button-hover: #9f2424;
    border-color: #c43232;
    background: #c43232;
    color: #fff;
}

.account-button--danger:hover,
.account-button--danger:focus-visible {
    border-color: #9f2424;
}

.account-button:disabled {
    opacity: 0.45;
    pointer-events: none;
    transform: none;
}

.account-text-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 0;
    background: transparent;
    color: hsl(var(--base));
    font-size: 15px;
    font-weight: 700;
}

.account-text-button:hover,
.account-text-button:focus-visible {
    color: hsl(var(--secondary));
}

.account-text-button .material-icons {
    font-size: 19px;
}

.account-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid hsl(var(--base) / 0.18);
    border-radius: 6px;
    background: hsl(var(--base) / 0.08);
    color: hsl(var(--base));
    text-decoration: none;
    transition: color 0.22s ease, background-color 0.22s ease, border-color 0.22s ease;
}

.account-icon-button:hover,
.account-icon-button:focus-visible {
    border-color: hsl(var(--base));
    background: hsl(var(--base));
    color: hsl(var(--white));
}

.account-icon-button .material-icons {
    font-size: 21px;
}

.account-icon-button--danger {
    border-color: rgba(196, 50, 50, 0.2);
    background: rgba(196, 50, 50, 0.08);
    color: #b62b2b;
}

.account-icon-button--danger:hover,
.account-icon-button--danger:focus-visible {
    border-color: #b62b2b;
    background: #b62b2b;
    color: #fff;
}

.account-icon-button--restore {
    border-color: rgba(31, 132, 79, 0.2);
    background: rgba(31, 132, 79, 0.09);
    color: #1f844f;
}

.account-icon-button--restore:hover,
.account-icon-button--restore:focus-visible {
    border-color: #1f844f;
    background: #1f844f;
    color: #fff;
}

.account-actions-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.account-actions-toggle {
    display: none;
}
.account-actions-toggle:focus {
    border: 1px solid hsl(var(--black) / 0.1);
}

.account-action-card {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) 24px;
    align-items: center;
    gap: 15px;
    min-height: 102px;
    padding: 18px;
    border: 1px solid hsl(var(--black) / 0.1);
    border-radius: 8px;
    background: hsl(var(--white));
    color: hsl(var(--black));
    font-family: inherit;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.account-action-card:hover,
.account-action-card:focus-visible {
    border-color: hsl(var(--base) / 0.4);
    color: hsl(var(--black));
    box-shadow: 0 14px 32px hsl(var(--base) / 0.1);
    transform: translateY(-2px);
}

.account-action-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 7px;
    background: hsl(var(--base) / 0.09);
    color: hsl(var(--base));
}

.account-action-card__icon .material-icons {
    font-size: 25px;
}

.account-action-card__content {
    display: grid;
    gap: 4px;
}

.account-action-card__content strong {
    font-size: 16px;
    line-height: 1.25;
}

.account-action-card__content small {
    color: hsl(var(--black) / 0.58);
    font-size: 13px;
    line-height: 1.35;
}

.account-action-card__arrow {
    color: hsl(var(--base));
    font-size: 21px;
}

.account-action-card--danger {
    border-color: rgba(196, 50, 50, 0.3);
    background: rgba(196, 50, 50, 0.025);
}

.account-action-card--danger .account-action-card__icon {
    background: rgba(196, 50, 50, 0.1);
    color: #b62b2b;
}

.account-action-card--danger .account-action-card__arrow {
    color: #b62b2b;
}

.account-action-card--danger:hover,
.account-action-card--danger:focus-visible {
    border-color: #b62b2b;
    box-shadow: 0 14px 32px rgba(182, 43, 43, 0.1);
}

.account-profile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 48px;
    margin: 0;
}

.account-profile-item {
    min-width: 0;
    padding: 0;
    background: transparent;
}

.account-profile-item:nth-child(odd) {
    border-right: 0;
}

.account-profile-item:nth-child(n + 3) {
    border-top: 0;
}

.account-profile-item dt {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: hsl(var(--black) / 0.58);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
}

.account-profile-item dt .material-icons {
    color: hsl(var(--base));
    font-size: 19px;
}

.account-profile-item dd {
    margin: 0;
    overflow-wrap: anywhere;
    color: hsl(var(--black));
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
}

.account-support-button {
    position: fixed;
    right: 28px;
    bottom: 24px;
    z-index: 100;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 54px;
    padding: 12px 18px;
    border-radius: 100px;
    background: hsl(var(--secondary));
    color: hsl(var(--white));
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 14px 34px hsl(var(--secondary) / 0.28);
    transition: color 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
}

.account-support-button:hover,
.account-support-button:focus-visible {
    background: hsl(var(--base));
    color: hsl(var(--white));
    transform: translateY(-2px);
}

.account-support-button .material-icons {
    font-size: 22px;
}

/* Fields and modals */
.account-field {
    min-width: 0;
}

.account-field label {
    display: block;
    margin-bottom: 8px;
    color: hsl(var(--black));
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
}

.account-field .form-control,
.account-support-card .form-control,
.tour-editor .form-control {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    border: 1px solid hsl(var(--black) / 0.15);
    border-radius: 6px;
    background: hsl(var(--white));
    color: hsl(var(--black));
    box-shadow: none;
    font-size: 15px;
}

.account-field textarea.form-control,
.account-support-card textarea.form-control,
.tour-editor textarea.form-control {
    min-height: 130px;
    resize: vertical;
}

.account-field .form-control:focus,
.account-support-card .form-control:focus,
.tour-editor .form-control:focus {
    border-color: hsl(var(--base));
    box-shadow: 0 0 0 3px hsl(var(--base) / 0.1);
}

.account-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.account-field--full {
    grid-column: 1 / -1;
}

.account-body .nice-select {
    width: 100%;
    height: 50px;
    padding: 0 42px 0 14px;
    border-color: hsl(var(--black) / 0.15);
    border-radius: 6px;
    background: hsl(var(--white));
    line-height: 48px;
}

.account-body .nice-select:focus,
.account-body .nice-select.open {
    border-color: hsl(var(--base));
}

.account-body .nice-select .list {
    width: 100%;
    max-height: 260px;
    overflow-y: auto;
}

.account-body .nice-select .option {
    min-height: 42px;
    line-height: 42px;
}

.account-danger-message {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin-bottom: 22px;
    padding: 16px;
    border: 1px solid rgba(196, 50, 50, 0.2);
    border-radius: 7px;
    background: rgba(196, 50, 50, 0.06);
    color: #8f2424;
}

.account-danger-message .material-icons {
    flex: 0 0 auto;
    font-size: 24px;
}

.account-danger-message p {
    margin: 0;
    line-height: 1.5;
}

.account-price-note {
    display: flex;
    min-height: 74px;
    flex-direction: column;
    justify-content: center;
    padding: 12px 16px;
    border: 1px solid hsl(var(--base) / 0.16);
    border-radius: 7px;
    background: hsl(var(--base) / 0.055);
}

.account-price-note span,
.account-price-note small {
    color: hsl(var(--black) / 0.58);
    font-size: 12px;
    line-height: 1.35;
}

.account-price-note strong {
    margin: 2px 0;
    color: hsl(var(--base));
    font-size: 18px;
}

.account-toast {
    position: fixed;
    right: 28px;
    bottom: 92px;
    z-index: 1100;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: min(390px, calc(100% - 32px));
    padding: 14px 18px;
    border-radius: 7px;
    background: hsl(var(--black));
    color: hsl(var(--white));
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 18px 50px hsl(var(--black) / 0.24);
    animation: accountToastIn 0.25s ease both;
}

.account-toast .material-icons {
    color: hsl(var(--base));
    font-size: 22px;
}

@keyframes accountToastIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Calendar */
.account-calendar-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    align-items: stretch;
    gap: 24px;
}

.account-calendar,
.account-calendar-summary {
    border: 1px solid hsl(var(--black) / 0.1);
    border-radius: 10px;
    background: hsl(var(--white));
    box-shadow: 0 18px 48px hsl(var(--black) / 0.055);
}

.account-calendar {
    padding: 26px;
}

.account-calendar__toolbar {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.account-calendar__toolbar h2 {
    margin: 0;
    color: hsl(var(--black));
    font-size: 28px;
    text-align: center;
}

.account-calendar__weekdays,
.account-calendar__grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.account-calendar__weekdays {
    border: 1px solid hsl(var(--black) / 0.09);
    border-bottom: 0;
    border-radius: 7px 7px 0 0;
    overflow: hidden;
    background: hsl(var(--base) / 0.055);
}

.account-calendar__weekdays span {
    padding: 12px 6px;
    color: hsl(var(--black) / 0.62);
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
}

.account-calendar__grid {
    border-top: 1px solid hsl(var(--black) / 0.09);
    border-left: 1px solid hsl(var(--black) / 0.09);
}

.account-calendar-day {
    position: relative;
    min-height: 94px;
    padding: 11px;
    border: 0;
    border-right: 1px solid hsl(var(--black) / 0.09);
    border-bottom: 1px solid hsl(var(--black) / 0.09);
    background: hsl(var(--white));
    color: hsl(var(--black));
    font-family: inherit;
    text-align: left;
}

.account-calendar-day.is-outside {
    background: hsl(var(--black) / 0.025);
    color: hsl(var(--black) / 0.35);
}

.account-calendar-day__number {
    font-size: 14px;
    font-weight: 700;
}

.account-calendar-day__event {
    display: block;
    max-width: 100%;
    margin-top: 10px;
    overflow: hidden;
    color: hsl(var(--secondary));
    font-size: 11px;
    font-weight: 700;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-calendar-day.has-event::after {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: hsl(var(--secondary));
    content: "";
}

.account-calendar-summary {
    padding: 26px;
}

.account-calendar-summary h2 {
    flex: 0 0 auto;
    margin-bottom: 18px;
}

.account-calendar-summary__list {
    display: grid;
    gap: 14px;
}

.account-calendar-summary__list article {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    align-items: center;
    gap: 13px;
    padding-bottom: 14px;
    border-bottom: 1px solid hsl(var(--black) / 0.09);
}

.account-calendar-summary__list time {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 58px;
    flex-direction: column;
    border-radius: 7px;
    background: hsl(var(--base) / 0.09);
    color: hsl(var(--base));
}

.account-calendar-summary__list time strong {
    font-size: 21px;
    line-height: 1;
}

.account-calendar-summary__list time span {
    margin-top: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.account-calendar-summary__list h3 {
    margin: 0 0 4px;
    color: hsl(var(--black));
    font-size: 14px;
    line-height: 1.35;
}

.account-calendar-summary__list p {
    margin: 0;
    color: hsl(var(--black) / 0.58);
    font-size: 12px;
    line-height: 1.4;
}

/* Statistics */
.account-panel {
    margin-top: 0;
}

.account-statistics-filter {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    align-items: end;
    gap: 18px;
}

.account-table-wrap {
    overflow-x: auto;
    border: 1px solid hsl(var(--black) / 0.1);
    border-radius: 8px;
}

.account-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
}

.account-table th,
.account-table td {
    padding: 19px 22px;
    border-bottom: 1px solid hsl(var(--black) / 0.09);
    color: hsl(var(--black));
    font-size: 14px;
    line-height: 1.45;
    text-align: left;
}

.account-table thead th {
    background: hsl(var(--base) / 0.055);
    color: hsl(var(--black) / 0.65);
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.account-table th:nth-child(2),
.account-table td:nth-child(2),
.account-table th:nth-child(3),
.account-table td:nth-child(3) {
    text-align: right;
}

/* .account-table tbody tr:hover td {
    background: hsl(var(--base) / 0.025);
} */

.account-table tfoot th,
.account-table tfoot td {
    border-bottom: 0;
    background: hsl(var(--black) / 0.025);
}

/* Support */
.account-support-page {
    min-height: 760px;
}

.account-support-page .account-page-header {
    max-width: 760px;
    margin-right: auto;
    margin-left: auto;
}

.account-support-card {
    max-width: 760px;
    margin: 0 auto;
}

.account-support-card form {
    display: grid;
    justify-items: start;
    gap: 20px;
    width: 100%;
}

.account-support-card textarea.form-control {
    min-height: 250px;
}

/* Empty state */
.account-empty-state {
    padding: 70px 24px;
    border: 1px dashed hsl(var(--black) / 0.2);
    border-radius: 10px;
    background: hsl(var(--white));
    text-align: center;
}

.account-empty-state .material-icons {
    margin-bottom: 12px;
    color: hsl(var(--base));
    font-size: 46px;
}

.account-empty-state h2 {
    margin: 0 0 8px;
    font-size: 26px;
}

.account-empty-state p {
    margin: 0;
    color: hsl(var(--black) / 0.62);
}

/* Tour editor */
.tour-editor {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    align-items: start;
    gap: 24px;
}

.tour-editor__steps,
.tour-editor__content {
    border: 1px solid hsl(var(--black) / 0.1);
    border-radius: 10px;
    background: hsl(var(--white));
    box-shadow: 0 18px 48px hsl(var(--black) / 0.055);
}

.tour-editor__steps {
    position: sticky;
    top: 24px;
    padding: 18px;
}

.tour-editor__step {
    position: relative;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 70px;
    padding: 12px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: hsl(var(--black) / 0.57);
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition: color 0.22s ease, background-color 0.22s ease;
}

.tour-editor__step:hover,
.tour-editor__step:focus-visible {
    background: hsl(var(--base) / 0.05);
    color: hsl(var(--black));
}

.tour-editor__step.is-active {
    background: hsl(var(--base) / 0.09);
    color: hsl(var(--base));
}

.tour-editor__step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid hsl(var(--black) / 0.14);
    border-radius: 50%;
    background: hsl(var(--white));
    font-size: 14px;
    font-weight: 800;
}

.tour-editor__step.is-active .tour-editor__step-number {
    border-color: hsl(var(--base));
    background: hsl(var(--base));
    color: hsl(var(--white));
}

.tour-editor__step-text {
    display: grid;
    gap: 3px;
}

.tour-editor__step-text strong {
    font-size: 14px;
}

.tour-editor__step-text small {
    color: hsl(var(--black) / 0.48);
    font-size: 11px;
    line-height: 1.35;
}

.tour-editor__content {
    min-width: 0;
    overflow: hidden;
}

.tour-editor__progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 28px;
    border-bottom: 1px solid hsl(var(--black) / 0.09);
    color: hsl(var(--black) / 0.58);
    font-size: 13px;
    font-weight: 700;
}

.tour-editor__progress-track {
    position: relative;
    width: 180px;
    height: 5px;
    overflow: hidden;
    border-radius: 100px;
    background: hsl(var(--black) / 0.08);
}

.tour-editor__progress-bar {
    display: block;
    width: 25%;
    height: 100%;
    border-radius: inherit;
    background: hsl(var(--base));
    transition: width 0.3s ease;
}

.tour-editor__panel {
    padding: 32px;
}

.tour-editor__panel[hidden] {
    display: none;
}

.tour-editor__panel-header {
    margin-bottom: 28px;
}

.tour-editor__panel-header h2 {
    margin: 0 0 9px;
    color: hsl(var(--black));
    font-size: clamp(26px, 3vw, 34px);
}

.tour-editor__panel-header p {
    margin: 0;
    color: hsl(var(--black) / 0.62);
    line-height: 1.55;
}

.tour-editor__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.tour-editor__field--full {
    grid-column: 1 / -1;
}

.tour-editor__field label,
.tour-editor__fieldset > legend {
    display: block;
    margin-bottom: 8px;
    color: hsl(var(--black));
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
}

.tour-editor__field-help {
    display: block;
    margin-top: 7px;
    color: hsl(var(--black) / 0.5);
    font-size: 12px;
    line-height: 1.45;
}

.tour-editor__duration {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 150px;
    gap: 10px;
}

.tour-editor__range {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
}

.tour-editor__range > span {
    color: hsl(var(--black) / 0.45);
    text-align: center;
}

.tour-editor__fieldset {
    margin: 0;
    padding: 0;
    border: 0;
}

.tour-editor__photo-dropzone {
    position: relative;
    display: flex;
    min-height: 150px;
    align-items: center;
    justify-content: center;
    padding: 24px;
    border: 1px dashed hsl(var(--base) / 0.42);
    border-radius: 8px;
    background: hsl(var(--base) / 0.035);
    text-align: center;
    cursor: pointer;
    transition: border-color 0.22s ease, background-color 0.22s ease;
}

.tour-editor__photo-dropzone:hover,
.tour-editor__photo-dropzone:focus-within {
    border-color: hsl(var(--base));
    background: hsl(var(--base) / 0.065);
}

.tour-editor__photo-dropzone input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.tour-editor__photo-dropzone-content {
    display: grid;
    justify-items: center;
    gap: 7px;
}

.tour-editor__photo-dropzone-content .material-icons {
    color: hsl(var(--base));
    font-size: 34px;
}

.tour-editor__photo-dropzone-content strong {
    color: hsl(var(--black));
    font-size: 15px;
}

.tour-editor__photo-dropzone-content span {
    color: hsl(var(--black) / 0.52);
    font-size: 12px;
}

.tour-editor__photo-preview {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.tour-photo {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 7px;
    background: hsl(var(--black) / 0.06);
}

.tour-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tour-photo > [data-photo-remove] {
    position: absolute;
    top: 7px;
    right: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(15, 20, 35, 0.76);
    color: #fff;
    cursor: pointer;
}

.tour-photo > [data-photo-remove] .material-icons {
    font-size: 17px;
}

.tour-photo__order {
    position: absolute;
    bottom: 7px;
    left: 50%;
    display: flex;
    gap: 5px;
    transform: translateX(-50%);
}

.tour-photo__order button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(15, 20, 35, 0.76);
    color: hsl(var(--white));
    cursor: pointer;
}

.tour-photo__order button:disabled {
    opacity: 0.38;
    cursor: default;
}

.tour-photo__order .material-icons {
    font-size: 17px;
}

.tour-money-field {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px;
    min-width: 0;
}

.tour-money-field .form-control {
    min-width: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.tour-money-field__suffix {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    border: 1px solid hsl(var(--black) / 0.14);
    border-left: 0;
    border-radius: 0 6px 6px 0;
    background: hsl(var(--black) / 0.025);
    color: hsl(var(--black) / 0.62);
    font-size: 15px;
    font-weight: 700;
    pointer-events: none;
}

.tour-repeater {
    display: grid;
    gap: 12px;
}

.tour-repeater__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px;
    align-items: start;
    gap: 10px;
}

.tour-repeater__row--faq {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr) 42px;
}

.tour-repeater__row--service {
    grid-template-columns: minmax(0, 1fr) 180px 42px;
}

.tour-repeater__remove {
    margin-top: 4px;
}

.tour-repeater__add {
    justify-self: start;
    margin-top: 3px;
}

.route-map {
    position: relative;
    min-height: 430px;
    overflow: hidden;
    border: 1px solid hsl(var(--black) / 0.13);
    border-radius: 9px;
    background-color: #e8eee8;
    background-image:
        linear-gradient(24deg, transparent 46%, rgba(255,255,255,0.85) 47%, rgba(255,255,255,0.85) 49%, transparent 50%),
        linear-gradient(105deg, transparent 57%, rgba(160,193,216,0.78) 58%, rgba(160,193,216,0.78) 62%, transparent 63%),
        repeating-linear-gradient(0deg, rgba(40,70,55,0.055) 0, rgba(40,70,55,0.055) 1px, transparent 1px, transparent 34px),
        repeating-linear-gradient(90deg, rgba(40,70,55,0.055) 0, rgba(40,70,55,0.055) 1px, transparent 1px, transparent 34px);
}

.route-map__hint {
    position: absolute;
    top: 14px;
    left: 14px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    max-width: calc(100% - 28px);
    padding: 9px 12px;
    border-radius: 6px;
    background: hsl(var(--white) / 0.94);
    color: hsl(var(--black) / 0.68);
    font-size: 12px;
    font-weight: 600;
    pointer-events: none;
    box-shadow: 0 7px 20px rgba(20, 40, 30, 0.11);
}

.route-map__hint .material-icons {
    color: hsl(var(--base));
    font-size: 18px;
}

.route-builder {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 250px;
    align-items: start;
    gap: 18px;
}

.route-points {
    padding: 18px;
    border: 1px solid hsl(var(--black) / 0.1);
    border-radius: 8px;
    background: hsl(var(--black) / 0.018);
}

.route-points h3 {
    margin: 0 0 14px;
    font-size: 17px;
}

.route-points ol {
    display: grid;
    gap: 9px;
    max-height: 270px;
    margin: 0 0 16px;
    padding: 0;
    overflow-y: auto;
    list-style: none;
}

.route-points li {
    display: flex;
    align-items: center;
    gap: 9px;
    color: hsl(var(--black) / 0.68);
    font-size: 13px;
}

.route-points__name {
    width: 100%;
    min-width: 0;
    height: 36px;
    padding: 7px 10px;
    border: 1px solid hsl(var(--black) / 0.14);
    border-radius: 6px;
    background: hsl(var(--white));
    color: hsl(var(--black));
    font: inherit;
}

.route-points__name:focus {
    border-color: hsl(var(--base));
    outline: 0;
    box-shadow: 0 0 0 3px hsl(var(--base) / 0.1);
}

.route-points li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: hsl(var(--base));
    color: hsl(var(--white));
    font-size: 11px;
    font-weight: 800;
}

.route-points__empty {
    color: hsl(var(--black) / 0.48);
    font-size: 13px;
    line-height: 1.5;
}

.route-points__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.route-points__actions .account-button {
    min-height: 42px;
    padding: 9px 11px;
    font-size: 12px;
}

.tour-editor__footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    margin: 30px -32px -32px;
    padding: 22px 32px;
    border-top: 1px solid hsl(var(--black) / 0.09);
    background: hsl(var(--black) / 0.018);
}

.tour-editor__footer-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Responsive */
@media (max-width: 1199px) {
    .account-actions-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .account-tour-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .account-calendar-layout {
        grid-template-columns: minmax(0, 1fr) 290px;
    }

    .tour-editor {
        grid-template-columns: 230px minmax(0, 1fr);
    }

    .route-builder {
        grid-template-columns: 1fr;
    }

    .route-points ol {
        max-height: none;
    }
}

@media (max-width: 991px) {
    .account-page {
        padding-top: 56px;
    }

    .account-calendar-layout {
        grid-template-columns: 1fr;
    }

    .account-calendar-summary {
        order: -1;
    }

    .account-calendar-summary__list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .account-calendar-summary__list article {
        grid-template-columns: 48px minmax(0, 1fr);
        border-bottom: 0;
        padding-bottom: 0;
    }

    .tour-editor {
        grid-template-columns: 1fr;
    }

    .tour-editor__steps {
        position: static;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
    }

    .tour-editor__step {
        grid-template-columns: 38px minmax(0, 1fr);
        padding: 9px;
    }

    .tour-editor__step-number {
        width: 38px;
        height: 38px;
    }

    .tour-editor__step-text small {
        display: none;
    }
}

@media (max-width: 767px) {
    .account-page {
        padding: 42px 0 92px;
    }

    .account-page-header,
    .account-page-header--actions {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 34px;
    }

    .account-page-header h1 {
        font-size: 40px;
    }

    .account-page-header p {
        font-size: 16px;
    }

    .account-section,
    .account-panel,
    .account-support-card {
        padding: 24px;
    }

    .account-section__heading,
    .account-section__heading--with-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .account-section__actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .account-actions-grid,
    .account-profile-grid,
    .account-tour-grid,
    .account-calendar-summary__list,
    .account-form-grid,
    .account-statistics-filter,
    .tour-editor__grid {
        grid-template-columns: 1fr;
    }

    .account-actions-block {
        border: 1px solid hsl(var(--black) / 0.1);
        border-radius: 8px;
        background: hsl(var(--white));
        box-shadow: 0 8px 24px hsl(var(--secondary) / 0.05);
        overflow: hidden;
    }

    .account-actions-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        min-height: 46px;
        padding: 10px 14px;
        border: 0;
        border-radius: 0;
        background: hsl(var(--white));
        color: hsl(var(--secondary));
        font-size: 15px;
        font-weight: 700;
        cursor: pointer;
    }

    .account-actions-toggle:focus,
    .account-actions-toggle:focus-visible {
        border: 0;
        outline: 2px solid hsl(var(--base) / 0.35);
        outline-offset: -2px;
    }

    .account-actions-toggle span {
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

    .account-actions-toggle .material-icons {
        color: hsl(var(--base));
        font-size: 20px;
    }

    .account-actions-toggle__icon {
        transition: transform 0.2s ease;
    }

    .account-actions-block.is-open .account-actions-toggle {
        border-bottom: 1px solid hsl(var(--black) / 0.09);
    }

    .account-actions-block.is-open .account-actions-toggle__icon {
        transform: rotate(180deg);
    }

    .account-actions-block:not(.is-open) .account-actions-grid {
        display: none;
    }

    .account-actions-block.is-open .account-actions-grid {
        margin-top: 0;
    }

    .account-actions-block .account-actions-grid {
        gap: 0;
    }

    .account-actions-block .account-action-card {
        flex: 1 1 100%;
        max-width: 100%;
        min-width: 0;
    }

    .account-actions-block .account-action-card {
        grid-template-columns: 38px minmax(0, 1fr) 20px;
        gap: 10px;
        min-height: 58px;
        padding: 9px 12px;
        border: 0;
        border-bottom: 1px solid hsl(var(--black) / 0.08);
        border-radius: 0;
        box-shadow: none;
        transform: none;
    }

    .account-actions-block .account-action-card:last-child {
        border-bottom: 0;
    }

    .account-actions-block .account-action-card:hover,
    .account-actions-block .account-action-card:focus-visible {
        background: hsl(var(--base) / 0.035);
        box-shadow: none;
        transform: none;
    }

    .account-actions-block .account-action-card__icon {
        width: 38px;
        height: 38px;
    }

    .account-actions-block .account-action-card__icon .material-icons {
        font-size: 20px;
    }

    .account-actions-block .account-action-card__content strong {
        font-size: 14px;
    }

    .account-profile-grid {
        gap: 18px;
    }

    .account-profile-item:nth-child(odd),
    .account-profile-item:nth-child(n + 2) {
        border: 0;
    }

    .account-table-wrap {
        overflow-x: hidden;
    }

    .account-table {
        min-width: 0;
    }

    .account-table thead {
        display: none;
    }

    .account-table,
    .account-table tbody,
    .account-table tfoot,
    .account-table tr,
    .account-table th,
    .account-table td {
        display: block;
        width: 100%;
    }

    .account-table tbody {
        display: grid;
        gap: 10px;
        padding: 10px;
        background: hsl(var(--black) / 0.018);
    }

    .account-table tbody tr {
        padding: 11px 16px;
        border: 1px solid hsl(var(--black) / 0.1);
        border-radius: 7px;
        background: hsl(var(--white));
    }

    .account-table tbody td,
    .account-table tfoot td {
        display: grid;
        grid-template-columns: minmax(96px, 0.7fr) minmax(0, 1.3fr);
        gap: 14px;
        padding: 7px 0;
        border: 0;
        text-align: right;
    }

    .account-table tbody td + td,
    .account-table tfoot th + td,
    .account-table tfoot td + td {
        margin-top: 4px;
        padding-top: 11px;
        border-top: 1px solid hsl(var(--black) / 0.09);
    }

    .account-table td::before {
        color: hsl(var(--black) / 0.58);
        font-size: 12px;
        font-weight: 700;
        text-align: left;
        text-transform: uppercase;
        content: attr(data-label);
    }

    .account-table tfoot tr {
        padding: 12px 16px;
        background: hsl(var(--black) / 0.025);
    }

    .account-table tfoot th {
        padding: 0 0 7px;
        border: 0;
        background: transparent;
        text-align: left;
    }

    .account-table tfoot td {
        background: transparent;
    }

    .account-statistics-filter .account-button {
        justify-self: start;
    }

    .account-calendar {
        padding: 18px;
    }

    .account-calendar-day {
        min-height: 72px;
        padding: 8px;
    }

    .account-calendar-day__event {
        display: none;
    }

    .account-calendar-day.has-event::after {
        top: auto;
        right: 8px;
        bottom: 8px;
    }

    .account-field--full,
    .tour-editor__field--full {
        grid-column: auto;
    }

    .tour-editor__steps {
        grid-template-columns: 1fr;
    }

    .tour-editor__step {
        min-height: 58px;
    }

    .tour-editor__panel {
        padding: 24px;
    }

    .tour-editor__photo-preview {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tour-repeater__row,
    .tour-repeater__row--faq,
    .tour-repeater__row--service {
        grid-template-columns: minmax(0, 1fr) 42px;
    }

    .tour-repeater__row--faq .tour-repeater__remove,
    .tour-repeater__row--service .tour-repeater__remove {
        grid-column: 2;
        grid-row: 1;
    }

    .tour-repeater__row--faq > :nth-child(2),
    .tour-repeater__row--service > :nth-child(2) {
        grid-column: 1 / -1;
    }

    .tour-editor__footer {
        align-items: stretch;
        flex-direction: column-reverse;
        margin: 26px -24px -24px;
        padding: 20px 24px;
    }

    .tour-editor__footer-group {
        justify-content: flex-end;
    }
}

.account-order-modal__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    margin: -4px -7px 0 auto;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: hsl(var(--black) / 0.7);
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.account-order-modal__close:hover,
.account-order-modal__close:focus-visible {
    background: hsl(var(--base) / 0.08);
    color: hsl(var(--base));
    outline: 0;
}

.account-order-modal__close .material-icons {
    font-size: 27px;
}

@media (max-width: 575px) {
    .account-body .account-calendar {
        padding: 16px 10px;
    }

    .account-body .account-calendar-day {
        min-height: 86px;
        padding: 11px 0;
    }

    .account-body .account-calendar-day__number {
        margin-left: 6px;
        font-size: 11px;
    }

    .account-body .account-calendar-day__event {
        top: calc(44px + var(--calendar-event-row, 0) * 20px);
        height: 17px;
        padding: 0 5px;
        font-size: 8px;
    }
}

.account-calendar-day__event.is-week-start {
    z-index: 3;
    overflow: visible;
}

.account-calendar-day__event.is-week-start span {
    display: block;
    flex: 0 0 calc(var(--calendar-event-label-width, 100%) - 8px);
    width: calc(var(--calendar-event-label-width, 100%) - 8px);
    max-width: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    pointer-events: none;
}

/* Calendar ranges, tour details and order details. */
.account-calendar-layout {
    grid-template-columns: minmax(0, 1fr) 370px;
}

.account-calendar-day {
    min-width: 0;
    min-height: 104px;
    padding: 11px 0;
    border-right: 1px solid hsl(var(--black) / 0.09);
    border-bottom: 1px solid hsl(var(--black) / 0.09);
    overflow: visible;
}

.account-calendar-day__number {
    position: relative;
    z-index: 1;
    display: inline-block;
    margin-left: 11px;
    pointer-events: none;
}

.account-calendar-day__event {
    position: absolute;
    top: calc(38px + var(--calendar-event-row, 0) * 28px);
    right: -1px;
    left: -1px;
    z-index: 2;
    display: flex;
    align-items: center;
    max-width: none;
    height: 24px;
    margin: 0;
    padding: 0 8px;
    border: 0;
    border-radius: 0;
    background: hsl(var(--base));
    color: hsl(var(--white));
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    text-align: left;
    cursor: pointer;
    overflow: hidden;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.account-calendar-day__event.is-start {
    left: 5px;
    border-radius: 5px 0 0 5px;
}

.account-calendar-day__event.is-end {
    right: 5px;
    border-radius: 0 5px 5px 0;
}

.account-calendar-day__event.is-start.is-end {
    border-radius: 5px;
}

.account-calendar-day__event.is-active,
.account-calendar-day__event.is-range-hovered,
.account-calendar-day__event:hover,
.account-calendar-day__event:focus-visible {
    background: hsl(var(--secondary));
    color: hsl(var(--white));
    box-shadow: 0 4px 12px hsl(var(--secondary) / 0.24);
    outline: 0;
}

.account-calendar-day__event span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-calendar-day.has-event::after {
    display: none;
}

.account-calendar-summary {
    position: static;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.account-calendar-summary__list {
    flex: 1 1 auto;
    min-height: 140px;
    max-height: none;
    overflow: hidden auto;
    border: 1px solid hsl(var(--black) / 0.09);
    border-radius: 7px;
    scrollbar-width: thin;
    scrollbar-color: hsl(var(--black) / 0.2) transparent;
}

.account-calendar-summary__list::-webkit-scrollbar {
    width: 6px;
}

.account-calendar-summary__list::-webkit-scrollbar-track {
    background: transparent;
}

.account-calendar-summary__list::-webkit-scrollbar-thumb {
    border-radius: 3px;
    background: hsl(var(--black) / 0.15);
}

.account-calendar-summary__list::-webkit-scrollbar-thumb:hover {
    background: hsl(var(--black) / 0.28);
}

.account-calendar-summary__list button {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    align-items: center;
    gap: 13px;
    width: 100%;
    padding: 11px;
    border: 0;
    border-bottom: 1px solid hsl(var(--black) / 0.09);
    background: hsl(var(--white));
    color: hsl(var(--black));
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.account-calendar-summary__list button:last-child {
    border-bottom: 0;
}

.account-calendar-summary__list button:hover,
.account-calendar-summary__list button:focus-visible,
.account-calendar-summary__list button.is-active {
    background: hsl(var(--base) / 0.065);
    color: hsl(var(--black));
    outline: 0;
}

.account-calendar-summary__copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.account-calendar-summary__copy strong {
    color: hsl(var(--black));
    font-size: 14px;
    line-height: 1.35;
}

.account-calendar-summary__copy small {
    color: hsl(var(--black) / 0.58);
    font-size: 12px;
    line-height: 1.4;
}

.account-calendar-tour-detail {
    scroll-margin-top: 96px;
    margin-top: 0;
    padding-top: 24px;
    border-top: 1px solid hsl(var(--black) / 0.1);
}

.account-calendar-tour-detail__header > span,
.account-order-modal__label {
    display: block;
    margin-bottom: 5px;
    color: hsl(var(--base));
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.account-calendar-tour-detail__header h3 {
    margin: 0 0 7px;
    color: hsl(var(--black));
    font-size: 18px;
    line-height: 1.35;
}

.account-calendar-tour-detail__header p {
    margin: 0;
    color: hsl(var(--black) / 0.62);
    font-size: 13px;
}

.account-calendar-tour-detail__facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px 16px;
    margin: 20px 0 0;
}

.account-calendar-tour-detail__facts div {
    min-width: 0;
}

.account-calendar-tour-detail__facts dt,
.account-order-summary span,
.account-order-customer dt {
    margin-bottom: 3px;
    color: hsl(var(--black) / 0.55);
    font-size: 11px;
    font-weight: 600;
}

.account-calendar-tour-detail__facts dd,
.account-order-customer dd {
    margin: 0;
    color: hsl(var(--black));
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.account-calendar-orders {
    margin-top: 24px;
}

.account-calendar-orders__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 11px;
}

.account-calendar-orders__heading h3 {
    margin: 0;
    font-size: 17px;
}

.account-calendar-orders__heading span {
    color: hsl(var(--black) / 0.52);
    font-size: 12px;
}

.account-calendar-orders__list {
    display: grid;
    gap: 8px;
}

.account-calendar-order {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto 20px;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 48px;
    padding: 9px 10px;
    border: 1px solid hsl(var(--black) / 0.1);
    border-radius: 6px;
    background: hsl(var(--white));
    color: hsl(var(--black));
    font-family: inherit;
    font-size: 12px;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.account-calendar-order:hover,
.account-calendar-order:focus-visible {
    border-color: hsl(var(--base) / 0.45);
    background: hsl(var(--base) / 0.04);
    color: hsl(var(--black));
    outline: 0;
}

.account-calendar-order__number {
    color: hsl(var(--base));
    font-weight: 800;
}

.account-calendar-order > strong {
    min-width: 0;
    overflow: hidden;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-calendar-order .material-icons {
    color: hsl(var(--base));
    font-size: 18px;
}

.account-calendar-orders__empty {
    margin: 0;
    padding: 13px;
    border-radius: 6px;
    background: hsl(var(--black) / 0.028);
    color: hsl(var(--black) / 0.55);
    font-size: 12px;
}

.account-calendar-tour-detail__income {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 18px;
    padding: 13px 15px;
    border-radius: 7px;
    background: hsl(var(--secondary));
    color: hsl(var(--white));
}

.account-calendar-tour-detail__income span {
    font-size: 12px;
}

.account-calendar-tour-detail__income strong {
    font-size: 17px;
}

.account-order-modal .modal-dialog {
    max-width: 760px;
}

.account-order-modal .modal-content {
    overflow: hidden;
    border: 0;
    border-radius: 10px;
    box-shadow: 0 24px 80px hsl(var(--black) / 0.24);
}

.account-order-modal .modal-header {
    align-items: flex-start;
    padding: 26px 30px 22px;
    border-bottom: 1px solid hsl(var(--black) / 0.09);
}

.account-order-modal .modal-title {
    margin: 0;
    color: hsl(var(--black));
    font-size: 27px;
}

.account-order-modal .btn-close {
    margin: 1px 0 0 18px;
}

.account-order-modal .modal-body {
    padding: 28px 30px 32px;
}

.account-order-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    padding: 20px;
    border-radius: 8px;
    background: hsl(var(--base) / 0.055);
}

.account-order-summary div {
    display: grid;
    min-width: 0;
}

.account-order-summary strong {
    color: hsl(var(--black));
    font-size: 14px;
    line-height: 1.4;
}

.account-order-status {
    color: #1f844f !important;
}

.account-order-customer,
.account-order-tourists {
    margin-top: 26px;
}

.account-order-customer h3,
.account-order-tourists h3 {
    margin: 0 0 14px;
    color: hsl(var(--black));
    font-size: 18px;
}

.account-order-customer dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px 24px;
    margin: 0;
}

.account-order-customer a {
    color: hsl(var(--secondary));
}

.account-order-tourists ol {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.account-order-tourists li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 13px;
    border: 1px solid hsl(var(--black) / 0.09);
    border-radius: 6px;
}

.account-order-tourists li > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: hsl(var(--base));
    color: hsl(var(--white));
    font-size: 12px;
    font-weight: 800;
}

.account-order-tourists li div {
    display: grid;
    gap: 2px;
}

.account-order-tourists li strong {
    color: hsl(var(--black));
    font-size: 13px;
}

.account-order-tourists li small {
    color: hsl(var(--black) / 0.56);
    font-size: 12px;
}

@media (max-width: 1199px) {
    .account-calendar-layout {
        grid-template-columns: minmax(0, 1fr) 320px;
    }
}

@media (max-width: 991px) {
    .account-calendar-layout {
        grid-template-columns: 1fr;
    }

    .account-calendar-summary {
        position: static;
        grid-column: auto;
        grid-row: auto;
        inset: auto;
        order: -1;
        display: block;
        overflow: visible;
        margin-bottom: 24px;
    }

    .account-calendar-summary > [aria-live="polite"] {
        margin-top: 22px;
        overflow: visible;
    }

    .account-calendar-summary__list {
        grid-template-columns: 1fr;
        max-height: min(420px, 45vh);
        overflow: hidden auto;
        scrollbar-width: thin;
        scrollbar-color: hsl(var(--black) / 0.2) transparent;
    }

    .account-calendar-summary__list::-webkit-scrollbar {
        width: 6px;
    }

    .account-calendar-summary__list::-webkit-scrollbar-track {
        background: transparent;
    }

    .account-calendar-summary__list::-webkit-scrollbar-thumb {
        border-radius: 3px;
        background: hsl(var(--black) / 0.15);
    }

    .account-calendar-summary__list::-webkit-scrollbar-thumb:hover {
        background: hsl(var(--black) / 0.28);
    }

    .account-calendar-summary__list button,
    .account-calendar-summary__list button:last-child {
        border-right: 0;
        border-bottom: 1px solid hsl(var(--black) / 0.09);
    }

    .account-calendar-summary__list button:last-child {
        border-bottom: 0;
    }

    .account-calendar-orders__list {
        max-height: none;
        overflow-y: visible;
    }
}

@media (max-width: 767px) {
    .account-calendar-summary__list {
        max-height: min(400px, 50vh);
        overflow: hidden auto;
    }

    .account-calendar-summary__list button,
    .account-calendar-summary__list button:last-child {
        border-right: 0;
        border-bottom: 1px solid hsl(var(--black) / 0.09);
    }

    .account-calendar-summary__list button:last-child {
        border-bottom: 0;
    }

    .account-calendar-day {
        min-height: 88px;
    }

    .account-calendar-day__event {
        top: calc(34px + var(--calendar-event-row, 0) * 24px);
        height: 20px;
        padding: 0 4px;
        font-size: 9px;
    }
}

@media (max-width: 575px) {
    .account-calendar {
        padding: 16px 10px;
    }

    .account-calendar__toolbar {
        margin-bottom: 16px;
    }

    .account-calendar__toolbar h2 {
        font-size: 21px;
    }

    .account-calendar__weekdays span {
        padding: 9px 2px;
        font-size: 10px;
    }

    .account-calendar-day {
        min-height: 86px;
    }

    .account-calendar-day__number {
        margin-left: 6px;
        font-size: 11px;
    }

    .account-calendar-day__event {
        top: calc(44px + var(--calendar-event-row, 0) * 20px);
        height: 17px;
        padding: 0 5px;
        font-size: 8px;
    }

    .account-calendar-tour-detail__facts,
    .account-order-summary,
    .account-order-customer dl {
        grid-template-columns: 1fr;
    }

    .account-calendar-order {
        grid-template-columns: auto minmax(0, 1fr) 18px;
    }

    .account-calendar-order > span:not(.account-calendar-order__number) {
        display: none;
    }

    .account-order-modal .modal-dialog {
        margin: 12px;
    }

    .account-order-modal .modal-header {
        padding: 21px 20px 18px;
    }

    .account-order-modal .modal-title {
        font-size: 23px;
    }

    .account-order-modal .modal-body {
        padding: 20px;
    }
}

@media (max-width: 575px) {
    .account-body .progress-wrap {
        right: 18px;
        bottom: 78px;
        width: 48px;
        height: 48px;
    }

    .account-body .progress-wrap::before,
    .account-body .progress-wrap::after {
        line-height: 48px;
    }

    .account-page-header h1 {
        font-size: 34px;
    }

    .account-section,
    .account-panel,
    .account-support-card {
        padding: 20px;
        padding-top: 24px;
        border-radius: 8px;
    }

    .account-section__actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .account-section__actions .account-button {
        width: 100%;
    }

    .account-action-card {
        grid-template-columns: 46px minmax(0, 1fr) 20px;
        min-height: 90px;
        padding: 14px;
    }

    .account-action-card__icon {
        width: 46px;
        height: 46px;
    }

    .account-tour-grid {
        gap: 18px;
    }

    .account-calendar__toolbar {
        grid-template-columns: 38px minmax(0, 1fr) 38px;
    }

    .account-calendar__toolbar h2 {
        font-size: 20px;
    }

    .account-calendar__weekdays span {
        padding: 9px 2px;
        font-size: 10px;
    }

    .account-calendar-day {
        min-height: 52px;
        padding: 7px;
    }

    .account-calendar-day__number {
        font-size: 12px;
    }

    .account-support-button {
        right: 18px;
        bottom: 18px;
        width: 48px;
        height: 48px;
        min-height: 48px;
        padding: 0;
        justify-content: center;
    }

    .account-support-button span {
        display: none;
    }

    .account-auth-actions .account-auth-cancel {
        order: 2;
    }

    .account-toast {
        right: 16px;
        bottom: 82px;
    }

    .tour-editor__progress-track {
        width: 110px;
    }

    .tour-editor__duration {
        grid-template-columns: minmax(0, 1fr) 125px;
    }

    .tour-editor__range {
        grid-template-columns: 1fr;
    }

    .tour-editor__range > span {
        display: none;
    }

    .route-points__actions {
        grid-template-columns: 1fr;
    }

    .tour-editor__footer-group {
        display: grid;
        grid-template-columns: 1fr;
    }

    .tour-editor__footer .account-button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .account-action-card,
    .account-button,
    .account-support-button,
    .tour-editor__progress-bar {
        transition: none;
    }

    .account-toast {
        animation: none;
    }
}

/* Account visual corrections */

.account-icon-button {
    box-sizing: border-box;
    outline: 2px solid transparent;
    outline-offset: 2px;
}

.account-icon-button:focus-visible {
    outline-color: hsl(var(--base) / 0.35);
}

.account-body input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.account-body input[type="number"]::-webkit-inner-spin-button,
.account-body input[type="number"]::-webkit-outer-spin-button {
    margin: 0;
    -webkit-appearance: none;
    appearance: none;
}

.account-datepicker.input-group {
    position: relative;
    display: flex;
    flex-wrap: nowrap;
}

.account-datepicker .form-control {
    padding-right: 48px;
}

.account-datepicker .input-group-addon {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 50px;
    color: hsl(var(--secondary));
    cursor: pointer;
}

.account-datepicker .input-group-addon .material-icons {
    font-size: 20px;
}

.account-date-time {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 118px;
    gap: 10px;
}

.account-toast {
    bottom: 112px;
}

.route-map__yandex {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: none;
    width: 100%;
    height: 100%;
}

.route-map.is-yandex-ready .route-map__yandex {
    display: block;
}

.route-map__hint {
    z-index: 3;
}

.route-builder {
    grid-template-columns: minmax(0, 1fr) 280px;
}

.route-points__actions .account-button {
    line-height: 1.2;
    white-space: nowrap;
}

.tour-editor__footer {
    margin: 30px 0 0;
    padding: 22px 0 0;
    background: transparent;
}

@media (max-width: 1199px) {
    .route-builder {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .tour-editor__footer {
        margin: 26px 0 0;
        padding: 20px 0 0;
    }
}

@media (max-width: 575px) {
    .account-date-time {
        grid-template-columns: minmax(0, 1fr) 102px;
    }

    .account-toast {
        right: 18px;
        bottom: 94px;
    }

    .route-map__yandex {
        min-height: 330px;
        height: 330px;
    }
}

/* The template resets focused button borders globally; keep account controls stable. */
.account-body button.account-button:focus,
.account-body a.account-button:focus {
    border: 1px solid hsl(var(--base));
    box-shadow: none !important;
}

.account-body button.account-button--ghost:focus,
.account-body a.account-button--ghost:focus {
    border-color: hsl(var(--black) / 0.28);
}

.account-body button.account-button--danger:focus,
.account-body a.account-button--danger:focus {
    border-color: #9f2424;
}

.account-body button.account-icon-button:focus,
.account-body a.account-icon-button:focus {
    border: 1px solid hsl(var(--base) / 0.18);
    box-shadow: none !important;
}

.account-body button.account-icon-button--danger:focus {
    border-color: #b62b2b;
}

.account-body button.account-action-card:focus {
    border: 1px solid hsl(var(--base) / 0.4);
    box-shadow: 0 14px 32px hsl(var(--base) / 0.1) !important;
}

.account-body button.account-action-card--danger:focus {
    border-color: #b62b2b;
    box-shadow: 0 14px 32px rgba(182, 43, 43, 0.1) !important;
}

/* Design polish */
.account-body .account-toast {
    bottom: 158px;
}

.account-body .tour-repeater__add {
    margin-top: 12px;
}

.account-body .tour-editor__footer {
    padding-right: 24px;
    padding-bottom: 22px;
    padding-left: 24px;
}

/* Keep the template's cursor-origin expanding hover on all primary actions. */
.account-body .account-button,
.account-body .header-search button {
    --account-hover-x: 50%;
    --account-hover-y: 50%;
    --account-hover-fill: hsl(var(--white));
    position: relative;
    isolation: isolate;
    z-index: 1;
    overflow: hidden;
    box-shadow: none;
    transform: none;
    transition: color 0.3s, border-color 0.3s;
}

.account-body .account-button::before,
.account-body .header-search button::before {
    position: absolute;
    top: var(--account-hover-y);
    left: var(--account-hover-x);
    z-index: -1;
    display: block;
    width: 0;
    height: 0;
    border-radius: 10px;
    background: var(--account-hover-fill);
    content: "";
    transform: translate(-50%, -50%);
    transition: width 0.4s ease-in-out, height 0.4s ease-in-out;
}

.account-body .account-button:hover::before,
.account-body .account-button:focus-visible::before,
.account-body .header-search button:hover::before,
.account-body .header-search button:focus-visible::before {
    width: 225%;
    height: 225%;
}

.account-body .account-button:hover,
.account-body .account-button:focus-visible {
    border-color: hsl(var(--base));
    background: hsl(var(--base));
    color: hsl(var(--base));
    transform: none;
}

.account-body .account-button--outline {
    --account-hover-fill: hsl(var(--base)) !important;
}

.account-body .account-button--outline:hover,
.account-body .account-button--outline:focus-visible {
    border-color: hsl(var(--base));
    background: transparent;
    color: hsl(var(--white)) !important;
}

.account-body .account-button--ghost {
    --account-hover-fill: hsl(var(--black));
}

.account-body .account-button--ghost:hover,
.account-body .account-button--ghost:focus-visible {
    border-color: hsl(var(--black));
    background: transparent;
    color: hsl(var(--white));
}

.account-body .account-button--danger {
    --account-hover-fill: hsl(var(--white));
}

.account-body .account-button--danger:hover,
.account-body .account-button--danger:focus-visible {
    border-color: #c43232;
    background: #c43232;
    color: #c43232;
}

.account-body .header-search button {
    border: 1px solid hsl(var(--base));
}

.account-body .header-search button:hover,
.account-body .header-search button:focus-visible {
    border-color: hsl(var(--base));
    background: hsl(var(--base));
    color: hsl(var(--base));
}

/* The login button keeps the original span-based animation from main.css. */
.account-body .navbar-one .right-nav .log-btn {
    background: transparent;
    box-shadow: none;
    transform: none;
}

.account-body .navbar-one .right-nav .log-btn span {
    display: block;
}

.account-body .navbar-one .right-nav .log-btn:hover,
.account-body .navbar-one .right-nav .log-btn:focus-visible {
    border-color: hsl(var(--base));
    background: transparent;
    color: hsl(var(--white));
}

/* Statistics filter alignment and intact rounded input edges. */
.account-body .account-statistics-filter .account-field,
.account-body .account-statistics-filter .account-datepicker {
    min-height: 0;
}

.account-body .account-statistics-filter .account-datepicker {
    height: 50px;
    border-radius: 6px;
}

.account-body .account-statistics-filter .account-datepicker .form-control {
    height: 50px;
    border-top-right-radius: 6px !important;
    border-bottom-right-radius: 6px !important;
}

.account-body .account-statistics-filter .account-datepicker .input-group-addon {
    top: 1px;
    right: 1px;
    width: 46px;
    height: 48px;
    line-height: 1;
}

.account-body .account-statistics-filter .account-datepicker .material-icons {
    display: block;
    line-height: 1;
}

.account-body .account-statistics-filter .account-button {
    align-self: end;
    height: 50px;
    min-height: 50px;
    margin: 0;
}

.account-body .account-danger-message {
    border-color: rgba(143, 36, 36, 0.32);
    background: rgba(196, 50, 50, 0.09);
    color: #7f1f1f;
}

.account-body .account-danger-message p,
.account-body .account-danger-message .material-icons {
    color: #7f1f1f;
}

.account-body .account-danger-message p {
    font-weight: 600;
}

@media (max-width: 767px) {
    .account-body .tour-editor__footer {
        padding-right: 16px;
        padding-bottom: 20px;
        padding-left: 16px;
    }
}

@media (max-width: 575px) {
    .account-body .account-toast {
        bottom: 150px;
    }
}

/* Form geometry corrections: datepicker.css adds four pixels of padding to .datepicker. */
.account-body .account-field input.form-control,
.account-body .account-datepicker.input-group,
.account-body .nice-select {
    box-sizing: border-box;
    height: 50px;
    min-height: 50px;
}

.account-body .account-datepicker.input-group {
    padding: 0;
    border-radius: 6px;
}

.account-body .account-datepicker .form-control {
    height: 50px;
    min-height: 50px;
    border-top-right-radius: 6px !important;
    border-bottom-right-radius: 6px !important;
}

.account-body .account-statistics-filter .account-datepicker .input-group-addon,
.account-body .account-datepicker .input-group-addon {
    top: 50%;
    right: 1px;
    width: 46px;
    height: 48px;
    line-height: 1;
    transform: translateY(-50%);
}

.account-body .account-datepicker .input-group-addon .material-icons {
    display: block;
    line-height: 1;
}

.account-body .account-action-card:focus,
.account-body .account-action-card:focus-visible {
    border: 1px solid hsl(var(--base) / 0.4);
    box-shadow: 0 14px 32px hsl(var(--base) / 0.1) !important;
}

.account-body .account-action-card--danger:focus,
.account-body .account-action-card--danger:focus-visible {
    border-color: #b62b2b;
    box-shadow: 0 14px 32px rgba(182, 43, 43, 0.1) !important;
}

/* The plugin's outlined caret looks detached from the borderless calendar card. */
.account-body .datepicker-dropdown::before,
.account-body .datepicker-dropdown::after {
    display: none;
}

/* Account redesign: align the cabinet with the public template. */
.account-body .account-page {
    padding: 100px 0 120px;
    background: hsl(var(--white));
}

.account-body .account-page-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 30px;
}

.account-body .account-section,
.account-body .account-panel {
    box-shadow: 0 10px 35px hsl(var(--secondary) / 0.055);
}

.account-body .account-section--compact {
    padding: 26px;
}

.account-body .account-section--compact .account-section__heading {
    margin-bottom: 18px;
}

.account-body .account-section--compact .account-section__heading h2 {
    font-size: clamp(24px, 2.5vw, 30px);
}

.account-body .account-section--compact .account-actions-grid {
    gap: 12px;
}

.account-body .account-section--compact .account-action-card {
    grid-template-columns: 42px minmax(0, 1fr) 20px;
    gap: 12px;
    min-height: 72px;
    padding: 12px 14px;
}

.account-body .account-section--compact .account-action-card__icon {
    width: 42px;
    height: 42px;
}

.account-body .account-section--compact .account-action-card__icon .material-icons {
    font-size: 22px;
}

.account-body .account-section--compact .account-action-card__content strong {
    font-size: 15px;
}

.account-body .account-section--compact .account-action-card__content small {
    display: none;
}

/* Keep only the account-specific controls around the approved tour card. */
.account-body .account-tour-grid {
    display: flex;
    grid-template-columns: none;
    gap: 0;
}

.account-body .tour-card .price small {
    color: hsl(var(--secondary) / 0.5);
    font-weight: 500;
}

.account-body .tour-card .card-info span:last-child .material-icons {
    color: hsl(var(--warning));
}

.account-body .account-tour-card__actions {
    display: flex;
    width: 100%;
    gap: 10px;
    padding: 0 20px 20px;
}

.account-body .account-tour-action {
    flex: 1 1 0;
    min-width: 0;
    min-height: 44px;
    height: 44px;
    padding: 9px 12px;
    font-size: 13px;
    white-space: nowrap;
}

@media (max-width: 1199px) {
    .account-body .account-tour-card__actions {
        padding-right: 10px;
        padding-left: 10px;
    }
}

.account-body .account-statistics-results {
    padding: 24px 34px;
}

.account-body .account-auth-page {
    background: hsl(var(--secondary) / 0.02);
}

.account-body .account-auth-form textarea.form-control {
    min-height: 190px;
    padding-top: 1.625rem;
    resize: vertical;
}

.account-body .account-auth-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.account-body .sing-info-box .account-auth-cancel {
    border-color: hsl(var(--secondary));
    background: hsl(var(--white));
    color: hsl(var(--secondary));
}

.account-body .sing-info-box .account-auth-cancel span {
    background: hsl(var(--secondary));
}

.account-body .sing-info-box .account-auth-cancel:hover,
.account-body .sing-info-box .account-auth-cancel:focus-visible {
    color: hsl(var(--white));
}

.account-body .tour-age-range {
    padding: 18px 20px;
    border: 1px solid hsl(var(--secondary) / 0.16);
    border-radius: 8px;
    background: hsl(var(--secondary) / 0.025);
}

.account-body .tour-age-range__values {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: hsl(var(--secondary));
    font-size: 14px;
    font-weight: 600;
}

.account-body .tour-age-range__values output {
    color: hsl(var(--base));
    font-weight: 700;
}

.account-body .tour-age-range__control {
    position: relative;
    height: 32px;
    margin-top: 10px;
}

.account-body .tour-age-range__track,
.account-body .tour-age-range__selection {
    position: absolute;
    top: 50%;
    height: 4px;
    border-radius: 999px;
    transform: translateY(-50%);
    pointer-events: none;
}

.account-body .tour-age-range__track {
    right: 0;
    left: 0;
    background: hsl(var(--secondary) / 0.14);
}

.account-body .tour-age-range__selection {
    right: calc(100% - var(--age-to));
    left: var(--age-from);
    background: hsl(var(--base));
}

.account-body .tour-age-range__control input[type="range"] {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 32px;
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    appearance: none;
    pointer-events: none;
}

.account-body .tour-age-range__control input[type="range"]:last-of-type {
    z-index: 3;
}

.account-body .tour-age-range__control input[type="range"]::-webkit-slider-runnable-track {
    height: 4px;
    background: transparent;
}

.account-body .tour-age-range__control input[type="range"]::-webkit-slider-thumb {
    width: 20px;
    height: 20px;
    margin-top: -8px;
    border: 3px solid hsl(var(--white));
    border-radius: 50%;
    background: hsl(var(--base));
    box-shadow: 0 2px 8px hsl(var(--secondary) / 0.24);
    appearance: none;
    cursor: grab;
    pointer-events: auto;
}

.account-body .tour-age-range__control input[type="range"]::-moz-range-track {
    height: 4px;
    border: 0;
    background: transparent;
}

.account-body .tour-age-range__control input[type="range"]::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border: 3px solid hsl(var(--white));
    border-radius: 50%;
    background: hsl(var(--base));
    box-shadow: 0 2px 8px hsl(var(--secondary) / 0.24);
    cursor: grab;
    pointer-events: auto;
}

.account-body .tour-age-range__control input[type="range"]:focus-visible::-webkit-slider-thumb {
    box-shadow: 0 0 0 3px hsl(var(--base) / 0.2), 0 2px 8px hsl(var(--secondary) / 0.24);
}

.account-body .tour-age-range__control input[type="range"]:focus-visible::-moz-range-thumb {
    box-shadow: 0 0 0 3px hsl(var(--base) / 0.2), 0 2px 8px hsl(var(--secondary) / 0.24);
}

@media (max-width: 991px) {
    .account-body .account-section--compact .account-actions-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575px) {
    .account-body .account-page {
        padding: 60px 0 90px;
    }

    .account-body .account-page-toolbar {
        margin-bottom: 20px;
    }

    .account-body .account-section--compact {
        padding: 20px 16px;
    }

    .account-body .account-section--compact .account-actions-grid {
        grid-template-columns: 1fr;
    }

    .account-body .account-auth-actions {
        grid-template-columns: 1fr;
    }

    .account-body .tour-age-range {
        padding: 16px;
    }
}

/* Small account-only additions around the shared auth and tour components. */
.account-body .auth-form .nice-select.is-invalid {
    border-color: #d92d20;
    box-shadow: none;
}

.account-body .auth-form .nice-select.is-invalid:focus,
.account-body .auth-form .nice-select.is-invalid.open {
    border-color: #d92d20;
    box-shadow: 0 0 0 3px rgb(217 45 32 / 10%);
}

.account-body .account-action-card--danger {
    border-color: hsl(var(--base) / 0.34);
    background: hsl(var(--base) / 0.035);
}

.account-body .account-action-card--danger .account-action-card__icon {
    background: hsl(var(--base) / 0.1);
    color: hsl(var(--base));
}

.account-body .account-action-card--danger .account-action-card__arrow {
    color: hsl(var(--base));
}

.account-body .account-action-card--danger:hover,
.account-body .account-action-card--danger:focus,
.account-body .account-action-card--danger:focus-visible {
    border-color: hsl(var(--base));
    box-shadow: 0 14px 32px hsl(var(--base) / 0.1) !important;
}

.account-body .account-danger-message {
    border-color: hsl(var(--base) / 0.26);
    background: hsl(var(--base) / 0.07);
    color: hsl(var(--secondary));
}

.account-body .account-danger-message p {
    color: hsl(var(--secondary));
}

.account-body .account-danger-message .material-icons {
    color: hsl(var(--base));
}

@media (max-width: 575px) {
    .account-body .account-statistics-results {
        padding: 20px;
    }

    .account-body .account-tour-card__actions {
        gap: 6px;
    }

    .account-body .account-tour-action {
        padding-right: 8px;
        padding-left: 8px;
        font-size: 12px;
    }
}

/* Compact account header: public pages keep the original image banner. */
.account-body .breadcrumb--compact {
    padding-top: 93px;
    border-bottom: 1px solid hsl(var(--black) / 0.08);
    background: hsl(var(--white));
}

.account-body .breadcrumb--compact::before,
.account-body .breadcrumb--compact .breadcrumb-banner-img {
    display: none;
}

.account-body .breadcrumb--compact .container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 12px;
}

.account-body .breadcrumb--compact .breadcrumb__wrapper {
    padding: 28px 0 24px;
    text-align: center;
}

.account-body .breadcrumb--compact .breadcrumb__title {
    margin: 0 0 12px;
    color: hsl(var(--secondary));
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.1;
}

.account-body .breadcrumb--compact .breadcrumb__list {
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
}

.account-body .breadcrumb--compact .breadcrumb__item,
.account-body .breadcrumb--compact .breadcrumb__link,
.account-body .breadcrumb--compact .breadcrumb__item-text {
    color: hsl(var(--secondary));
    font-size: 14px;
    text-transform: none;
}

.account-body .breadcrumb--compact .breadcrumb__link:hover,
.account-body .breadcrumb--compact .breadcrumb__link:focus-visible {
    color: hsl(var(--base));
}

.account-body .breadcrumb--compact .breadcrumb__item i {
    color: hsl(var(--base));
    font-size: 18px;
}

.account-body .account-page {
    padding-top: 56px;
}

.account-body .account-actions-block {
    margin-bottom: 32px;
}

.account-body .account-section__footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 24px;
}

.account-body .account-section__footer .account-text-button {
    color: hsl(var(--secondary) / 0.72);
    font-size: 14px;
}

.account-body .account-section__footer .account-text-button:hover,
.account-body .account-section__footer .account-text-button:focus-visible {
    color: hsl(var(--base));
}

.account-body .account-statistics-results {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.account-body .account-statistics-results .account-table-wrap {
    border: 1px solid hsl(var(--black) / 0.1);
    border-radius: 10px;
}

@media (max-width: 991px) {
    .account-body .breadcrumb--compact {
        padding-top: 70px;
    }
}

@media (max-width: 575px) {
    .account-body .breadcrumb--compact .container {
        padding-right: 20px;
        padding-left: 20px;
    }

    .account-body .breadcrumb--compact .breadcrumb__wrapper {
        padding: 18px 0 16px;
    }

    .account-body .breadcrumb--compact .breadcrumb__title {
        margin-bottom: 8px;
        font-size: 28px;
    }

    .account-body .account-page {
        padding-top: 32px;
    }

    .account-body .account-section__footer {
        justify-content: flex-start;
        margin-top: 20px;
    }
}

@media (max-width: 767px) {

    .account-actions-block .account-action-card {
        flex: 1 1 100%;
        max-width: 100%;
        min-width: 0;
    }
    
    .account-body .account-actions-toggle:focus,
    .account-body .account-actions-toggle:focus-visible,
    .account-body .account-actions-toggle:active {
        border: 0;
        outline: 0;
        box-shadow: none;
        color: hsl(var(--secondary));
        transform: none;
    }

    .account-body .account-actions-block.is-open .account-actions-toggle:focus,
    .account-body .account-actions-block.is-open .account-actions-toggle:focus-visible,
    .account-body .account-actions-block.is-open .account-actions-toggle:active {
        border-bottom: 1px solid hsl(var(--black) / 0.09);
    }

    .account-body .account-actions-block .account-action-card:focus,
    .account-body .account-actions-block .account-action-card:focus-visible,
    .account-body .account-actions-block .account-action-card:active {
        border: 0;
        border-bottom: 1px solid hsl(var(--black) / 0.08);
        outline: 0;
        background: inherit;
        box-shadow: none !important;
        color: hsl(var(--black));
        transform: none;
    }

    .account-body .account-actions-block .account-action-card:last-child:focus,
    .account-body .account-actions-block .account-action-card:last-child:focus-visible,
    .account-body .account-actions-block .account-action-card:last-child:active {
        border-bottom: 0;
    }
}

.account-page .account-tour-action {
    flex: 1 1 0 !important;
    min-width: 10rem !important;
    min-height: 44px !important;
    height: 44px !important;
    padding: 9px 12px !important;
    font-size: 13px !important;
    white-space: nowrap !important;
    max-width: 50%
}

.account-page .account-tour-card__actions {
    display: flex !important;
    width: 100% !important;
    gap: 10px !important;
    padding: 0 20px 20px !important;
}

.account-body .breadcrumb--compact .breadcrumb__title {
    margin: 0 0 12px;
    color: hsl(var(--secondary));
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.1;
}

.account-body .breadcrumb--compact .breadcrumb__wrapper {
    padding: 28px 0 24px;
    text-align: center;
}

.account-confirmation .auth-confirmation__card {
    max-width: 980px;
    margin: 0 auto 0;
    padding: 40px;
    border: 1px solid hsl(var(--secondary) / 0.14);
    border-radius: 6px;
    background: hsl(var(--white));
    box-shadow: 0 10px 35px hsl(var(--secondary) / 0.06);
}

.account-body .sing-info-box .btn-magnetic {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    transition: color 0.3s, border-color 0.3s;
}

.account-body .sing-info-box .btn-magnetic span {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: -1;
    display: block;
    width: 0;
    height: 0;
    border-radius: 10px;
    background: var(--account-hover-fill, hsl(var(--base)));
    content: "";
    transform: translate(-50%, -50%);
    transition: width 0.4s ease-in-out, height 0.4s ease-in-out;
}

.account-body .sing-info-box .btn-magnetic:hover span,
.account-body .sing-info-box .btn-magnetic:focus-visible span {
    width: 225%;
    height: 225%;
}

.account-body .sing-info-box .btn-magnetic {
    --account-hover-fill: hsl(var(--base)) !important;
}

.account-body .sing-info-box .account-auth-cancel {
    --account-hover-fill: hsl(var(--secondary)) !important;
}

.account-action-card {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) 24px;
    align-items: center;
    gap: 15px;
    min-height: 102px;
    padding: 18px;
    border: 1px solid hsl(var(--black) / 0.1);
    border-radius: 8px;
    background: hsl(var(--white));
    color: hsl(var(--black));
    font-family: inherit;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.account-action-card--full {
    grid-column: 1 / -1;
}

@media (max-width: 767px) {
    .account-actions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .account-action-card {
        min-height: 80px;
        padding: 14px;
        grid-template-columns: 42px minmax(0, 1fr) 20px;
        gap: 10px;
    }
    .account-action-card--full {
        grid-column: 1 / -1;
    }
    .account-action-card__icon {
        width: 42px;
        height: 42px;
    }
    .account-action-card__icon .material-icons {
        font-size: 20px;
    }
    .account-action-card__content strong {
        font-size: 14px;
    }
}

@media (max-width: 575px) {
    .account-actions-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .account-action-card--full {
        grid-column: auto;
    }
}

.account-actions-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.tour-photo {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 8px;
    background: #f0f0f0;
    border: 1px solid #e9ecef;
}
.tour-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tour-photo__order {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
    pointer-events: none;
}
.tour-photo__order button {
    pointer-events: auto;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}
.tour-photo__order button:hover:not(:disabled) {
    background: rgba(0, 0, 0, 0.85);
    transform: scale(1.1);
}
.tour-photo__order button:disabled {
    opacity: 0.3;
    cursor: default;
    transform: none;
}
.tour-photo__order .material-icons {
    font-size: 18px;
}

.tour-photo > [data-photo-remove] {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 2;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}
.tour-photo > [data-photo-remove]:hover {
    background: rgba(0, 0, 0, 0.9);
}

.route-map canvas {
    display: block;
    width: 100%;
    height: 430px;
    cursor: crosshair;
}

.route-map,
.route-map canvas {
    min-height: 330px;
    height: 330px;
}

.route-points .tour-repeater__remove {height: 35px; margin-top: 0px; }

.tour-editor__content {
    min-width: 0;
    width: 100%;
}

.tour-editor__panel {
    width: 100%;
}
.tour-editor{
    display:flex;
}

/* Calendar: week row height follows the number of tour lanes at every breakpoint. */
.account-calendar__grid {
    --calendar-day-min: 104px;
    --calendar-event-top: 38px;
    --calendar-event-pitch: 28px;
    --calendar-event-height: 24px;
}

.account-calendar__grid .account-calendar-day {
    min-height: max(var(--calendar-day-min), calc(var(--calendar-event-top) + var(--calendar-lanes, 1) * var(--calendar-event-pitch) + 8px));
}

.account-calendar__grid .account-calendar-day__event {
    top: calc(var(--calendar-event-top) + var(--calendar-event-row, 0) * var(--calendar-event-pitch));
    height: var(--calendar-event-height);
}

@media (max-width: 767px) {
    .account-calendar__grid {
        --calendar-day-min: 88px;
        --calendar-event-top: 34px;
        --calendar-event-pitch: 24px;
        --calendar-event-height: 20px;
    }
}

@media (max-width: 575px) {
    .account-calendar__grid {
        --calendar-day-min: 86px;
        --calendar-event-top: 44px;
        --calendar-event-pitch: 20px;
        --calendar-event-height: 17px;
    }
}

.account-calendar-summary > [aria-live="polite"] {
    flex: 0 1 auto;
    min-height: 0;
    max-height: 65%;
    margin-top: 22px;
    overflow: hidden auto;
}

/* Summary column: bounded by calendar height, only lists scroll. */
.account-calendar-layout {
    position: relative;
    align-items: start;
}

.account-calendar-summary {
    position: absolute;
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    inset: 0;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.account-calendar-summary h2 {
    flex: 0 0 auto;
    margin-bottom: 18px;
}

.account-calendar-summary__list {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow: hidden auto;
    scrollbar-width: thin;
    scrollbar-color: hsl(var(--black) / 0.2) transparent;
}

.account-calendar-summary__list::-webkit-scrollbar {
    width: 6px;
}

.account-calendar-summary__list::-webkit-scrollbar-track {
    background: transparent;
}

.account-calendar-summary__list::-webkit-scrollbar-thumb {
    border-radius: 3px;
    background: hsl(var(--black) / 0.15);
}

.account-calendar-summary__list::-webkit-scrollbar-thumb:hover {
    background: hsl(var(--black) / 0.28);
}

.account-calendar-summary > [aria-live="polite"] {
    flex: 0 0 auto;
    margin-top: 22px;
    overflow: visible;
}

.account-calendar-tour-detail {
    display: block;
    margin-top: 0;
    padding-top: 24px;
    border-top: 1px solid hsl(var(--black) / 0.1);
    scroll-margin-top: 96px;
    overflow: visible;
}

.account-calendar-tour-detail[hidden] {
    display: none;
}

.account-calendar-orders {
    display: block;
    margin-top: 24px;
    overflow: visible;
}

.account-calendar-orders__list {
    display: grid;
    gap: 8px;
    max-height: min(320px, 32vh);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: hsl(var(--black) / 0.2) transparent;
}

.account-calendar-orders__list::-webkit-scrollbar {
    width: 6px;
}

.account-calendar-orders__list::-webkit-scrollbar-track {
    background: transparent;
}

.account-calendar-orders__list::-webkit-scrollbar-thumb {
    border-radius: 3px;
    background: hsl(var(--black) / 0.15);
}

.account-calendar-orders__list::-webkit-scrollbar-thumb:hover {
    background: hsl(var(--black) / 0.28);
}

@media (max-width: 991px) {

    .account-actions-block .account-action-card {
        flex: 1 1 calc(50% - 7px);
        max-width: calc(50% - 7px);
        min-width: 0;
    }
    .account-calendar-summary {
        position: static;
        grid-column: auto;
        grid-row: auto;
        inset: auto;
        display: block;
        overflow: visible;
    }

    .account-calendar-summary > [aria-live="polite"] {
        margin-top: 22px;
        overflow: visible;
    }

    .account-calendar-summary__list {
        grid-template-columns: 1fr;
        max-height: min(420px, 45vh);
        overflow: hidden auto;
        scrollbar-width: thin;
        scrollbar-color: hsl(var(--black) / 0.2) transparent;
    }

    .account-calendar-summary__list::-webkit-scrollbar {
        width: 6px;
    }

    .account-calendar-summary__list::-webkit-scrollbar-track {
        background: transparent;
    }

    .account-calendar-summary__list::-webkit-scrollbar-thumb {
        border-radius: 3px;
        background: hsl(var(--black) / 0.15);
    }

    .account-calendar-summary__list::-webkit-scrollbar-thumb:hover {
        background: hsl(var(--black) / 0.28);
    }

    .account-calendar-summary__list button,
    .account-calendar-summary__list button:last-child {
        border-right: 0;
        border-bottom: 1px solid hsl(var(--black) / 0.09);
    }

    .account-calendar-summary__list button:last-child {
        border-bottom: 0;
    }

    .account-calendar-orders__list {
        max-height: min(320px, 40vh);
        overflow-y: auto;
    }
}

@media (max-width: 767px) {
    .account-calendar-summary__list {
        max-height: min(400px, 50vh);
        overflow: hidden auto;
    }

    .account-calendar-orders__list {
        max-height: min(320px, 40vh);
        overflow-y: auto;
    }
}