html {
    color-scheme: dark;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Montserrat", Arial, sans-serif;
    font-weight: 400;
    background: #1d2230;
    color: #f5f7ff;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.site-header {
    border-bottom: 1px solid #2d3446;
    background: #252b3b;
}

.shell {
    width: min(1232px, calc(100% - 32px));
    margin: 0 auto;
}

.header-content {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand,
.nav-link {
    text-decoration: none;
}

.brand {
    color: #f8fbff;
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 48px;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 68px;
    border-bottom: 2px solid transparent;
    color: #26b8f2;
    font-size: 1rem;
    font-weight: 400;
    transition: border-color 160ms ease, color 160ms ease;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.is-active {
    border-bottom-color: #31b9f4;
    color: #f8fbff;
}

.nav-link:focus-visible {
    outline: 3px solid #7dd8ff;
    outline-offset: 3px;
}

.internal-page {
    padding: 54px 0 96px;
}

.week-timeline {
    max-width: 1160px;
}

.week-timeline.has-host-actions {
    max-width: 1180px;
}

.timeline-heading {
    margin-bottom: 16px;
}

.timeline-heading h1 {
    margin: 0;
    color: #f3f6ff;
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.15;
}

.timeline-list {
    margin: 0 0 0 72px;
    padding: 0;
    list-style: none;
}

.timeline-column-captions {
    display: grid;
    grid-template-columns: 28px 150px 72px minmax(120px, 1fr) minmax(84px, max-content) minmax(124px, max-content);
    gap: 18px;
    margin: 0 0 18px 72px;
    color: #7f8ba3;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: uppercase;
}

.timeline-caption-meet {
    grid-column: 5;
}

.timeline-caption-recording {
    grid-column: 6;
}

.timeline-caption-edit {
    grid-column: 7;
}

.week-timeline.has-host-actions .timeline-column-captions {
    grid-template-columns: 28px 150px 72px minmax(120px, 1fr) minmax(84px, max-content) minmax(124px, max-content) minmax(64px, max-content);
}

.timeline-day {
    position: relative;
    display: grid;
    grid-template-columns: 28px 150px minmax(0, 1fr);
    gap: 18px;
    min-height: 86px;
    padding-bottom: 26px;
}

.timeline-day::before {
    content: "";
    position: absolute;
    top: 21px;
    bottom: -1px;
    left: 9px;
    width: 1px;
    background: #33415a;
}

.timeline-day::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 13px;
    left: 46px;
    height: 1px;
    background: #263247;
}

.timeline-day:last-child {
    min-height: 54px;
    padding-bottom: 0;
}

.timeline-day:last-child::before,
.timeline-day:last-child::after {
    display: none;
}

.timeline-marker {
    position: relative;
    z-index: 1;
    width: 19px;
    height: 19px;
    margin-top: 2px;
    border: 2px solid #40506c;
    border-radius: 999px;
    background: #1d2230;
}

.timeline-day.is-today .timeline-marker {
    border-color: rgba(75, 231, 255, 0.7);
    background: linear-gradient(353deg, #18a9ff 17.51%, #4be7ff 183.08%);
    box-shadow: 0 0 0 5px rgba(24, 169, 255, 0.12);
}

.timeline-day.is-today .timeline-marker::before {
    content: "Today";
    position: absolute;
    top: 50%;
    right: calc(100% + 16px);
    transform: translateY(-50%);
    color: #56c2ff;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.timeline-day.is-past::before {
    background: #283247;
}

.timeline-day.is-past::after {
    background: #242d40;
}

.timeline-day.is-past .timeline-marker {
    border-color: #303b52;
    background: #1b202c;
}

.timeline-day.is-past .timeline-weekday {
    color: #778299;
}

.timeline-day.is-today .timeline-weekday {
    color: #f8fbff;
}

.timeline-date {
    display: grid;
    gap: 6px;
    align-content: start;
}

.timeline-weekday {
    color: #dce6fa;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.25;
}

.timeline-month,
.timeline-empty {
    color: #9aa6bc;
    font-size: 0.88rem;
    font-weight: 400;
}

.timeline-day.is-past .timeline-month,
.timeline-day.is-past .timeline-empty {
    color: #66718a;
}

.timeline-events {
    min-width: 0;
}

.timeline-empty {
    margin: 1px 0 0;
}

.timeline-event {
    display: grid;
    grid-template-columns: 72px minmax(120px, 1fr) minmax(84px, max-content) minmax(124px, max-content);
    align-items: start;
    gap: 18px;
}

.week-timeline.has-host-actions .timeline-event {
    grid-template-columns: 72px minmax(120px, 1fr) minmax(84px, max-content) minmax(124px, max-content) minmax(64px, max-content);
}

.timeline-event + .timeline-event {
    margin-top: 18px;
}

.timeline-event time {
    color: #56c2ff;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
}

.timeline-day.is-past .timeline-event time,
.timeline-event.is-past time {
    color: #3d83ad;
}

.timeline-event h2 {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 9px;
    margin: 0;
    min-width: 0;
    color: #f3f6ff;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.25;
}

.timeline-event-title {
    min-width: 0;
}

.timeline-event-cost {
    color: #9aa6bc;
    font-size: 0.82rem;
    font-weight: 400;
    line-height: 1.2;
}

.timeline-event-cost.is-paid {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 3px 8px 3px 16px;
    border: 0;
    border-radius: 2px 4px 4px 2px;
    background: rgba(86, 194, 255, 0.13);
    clip-path: polygon(8px 0, 100% 0, 100% 100%, 8px 100%, 0 50%);
    color: #dce6fa;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1;
}

.timeline-event-cost.is-paid::before {
    content: "";
    position: absolute;
    left: 7px;
    top: 50%;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #1d2331;
    transform: translateY(-50%);
}

.timeline-day.is-past .timeline-event h2,
.timeline-event.is-past h2 {
    color: #8a95aa;
}

.timeline-day.is-past .timeline-event-cost,
.timeline-event.is-past .timeline-event-cost {
    color: #66718a;
}

.timeline-link-cell {
    min-width: 0;
}

.timeline-action {
    color: #56c2ff;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.25;
    text-decoration: none;
}

.timeline-inline-form {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.timeline-inline-form button {
    padding: 0;
    border: 0;
    background: transparent;
    color: #56c2ff;
    cursor: pointer;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.25;
    text-align: left;
}

.timeline-action:hover,
.timeline-action:focus-visible,
.timeline-inline-form button:hover,
.timeline-inline-form button:focus-visible {
    color: #f8fbff;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.timeline-action:focus-visible,
.timeline-inline-form button:focus-visible {
    outline: 3px solid #7dd8ff;
    outline-offset: 3px;
}

.timeline-muted {
    color: #9aa6bc;
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.25;
}

.timeline-recording-price {
    color: #dce6fa;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.25;
}

.timeline-day.is-past .timeline-link-cell:not(.timeline-edit-cell):not(.timeline-recording-cell) .timeline-action,
.timeline-event.is-past .timeline-link-cell:not(.timeline-edit-cell):not(.timeline-recording-cell) .timeline-action {
    color: #3d83ad;
}

.timeline-day.is-past .timeline-muted,
.timeline-event.is-past .timeline-muted {
    color: #66718a;
}

.timeline-day.is-past .timeline-recording-price,
.timeline-event.is-past .timeline-recording-price {
    color: #8a95aa;
}

.login-page,
.settings-page,
.plans-page,
.calls-page,
.recordings-page {
    padding: 40px 0 96px;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #b8c3d8;
    font-size: 1rem;
    font-weight: 400;
}

.breadcrumbs a {
    color: #129ef3;
    text-decoration: none;
}

.breadcrumbs a:hover,
.breadcrumbs a:focus-visible {
    color: #f8fbff;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.page-rule {
    margin: 36px 0 36px;
    border-top: 1px solid #3275a2;
}

.login-intro,
.settings-intro,
.plans-intro,
.calls-intro,
.recordings-intro {
    margin-bottom: 28px;
}

.login-intro h1,
.settings-intro h1,
.plans-intro h1,
.calls-intro h1,
.recordings-intro h1 {
    margin: 0 0 18px;
    color: #f3f6ff;
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1.2;
}

.login-intro p,
.settings-intro p,
.plans-intro p,
.calls-intro p,
.recordings-intro p {
    margin: 0;
    color: #aeb9d3;
    font-size: 1rem;
    font-weight: 400;
}

.recordings-tabs {
    display: flex;
    gap: 30px;
    margin: -4px 0 28px;
    border-bottom: 1px solid #263247;
}

.recordings-tab {
    position: relative;
    display: inline-flex;
    padding: 0 0 12px;
    color: #129ef3;
    font-size: 1rem;
    font-weight: 400;
    text-decoration: none;
}

.recordings-tab:hover,
.recordings-tab:focus-visible {
    color: #f8fbff;
}

.recordings-tab:focus-visible {
    outline: 3px solid #7dd8ff;
    outline-offset: 4px;
}

.recordings-tab.is-active {
    color: #f3f6ff;
}

.recordings-tab.is-active::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 2px;
    background: #35bfff;
}

.favorite-form {
    margin: 0;
}

.favorite-cell {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.favorite-count {
    min-width: 1ch;
    color: #dce6fa;
    font-weight: 500;
}

.favorite-button {
    display: inline-flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: #7f8ba3;
    cursor: pointer;
    font: inherit;
    font-size: 1.3rem;
    font-weight: 400;
    line-height: 1;
}

.favorite-button span {
    display: inline-block;
}

.favorite-button.is-active span {
    transform: translateY(-0.08em);
}

.favorite-button.is-active {
    color: #56c2ff;
}

.favorite-button:hover,
.favorite-button:focus-visible {
    color: #f8fbff;
}

.favorite-button:focus-visible {
    outline: 3px solid #7dd8ff;
    outline-offset: 3px;
}

.recordings-table-wrap {
    overflow-x: auto;
}

.recordings-table {
    width: 100%;
    border-collapse: collapse;
}

.recordings-table th {
    padding: 0 18px 18px 0;
    color: #7f8ba3;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-align: left;
    text-transform: uppercase;
}

.recordings-table td {
    padding: 22px 18px 22px 0;
    border-top: 1px solid #263247;
    color: #dce6fa;
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.3;
    vertical-align: top;
}

.recordings-table th:last-child,
.recordings-table td:last-child {
    padding-right: 0;
}

.recording-date,
.recording-time,
.recording-description {
    display: block;
}

.recording-date {
    color: #f3f6ff;
    font-weight: 600;
}

.recording-description {
    max-width: 620px;
    color: #dce6fa;
    font-weight: 400;
    line-height: 1.45;
}

.recording-time {
    margin-top: 5px;
    color: #9aa6bc;
}

.empty-state {
    margin: 0;
    color: #9aa6bc;
    font-size: 1rem;
    font-weight: 400;
}

.secondary-action:focus-visible {
    outline: 3px solid #7dd8ff;
    outline-offset: 3px;
}

.login-form,
.settings-form {
    padding: 42px 36px 32px;
    border: 1px solid #2b3448;
    border-radius: 8px;
    background: #222838;
}

.form-row {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 36px;
    align-items: start;
}

.form-row + .form-row {
    margin-top: 32px;
}

.field-label {
    display: grid;
    gap: 6px;
    padding-top: 2px;
    color: #f1f5ff;
    font-size: 1.05rem;
    font-weight: 600;
}

.field-label small {
    color: #9aa6bc;
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.field-control input,
.field-control select,
.field-control textarea {
    width: 100%;
    min-height: 42px;
    padding: 8px 12px;
    border: 1px solid #07101f;
    border-radius: 6px;
    background: #030817;
    color: #f7faff;
    font: inherit;
    font-weight: 400;
}

.field-control textarea {
    min-height: 98px;
    line-height: 1.45;
    resize: vertical;
}

.read-only-value {
    display: flex;
    min-height: 42px;
    align-items: center;
    margin: 0;
    color: #f7faff;
    font-size: 1rem;
    font-weight: 400;
}

.field-control select {
    appearance: none;
    padding-right: 46px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23c8d2e8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-position: right 18px center;
    background-repeat: no-repeat;
    background-size: 18px 18px;
    cursor: pointer;
}

.field-control input:focus,
.field-control select:focus,
.field-control textarea:focus {
    border-color: #2f7ff0;
    outline: 2px solid #2f7ff0;
    outline-offset: 0;
}

.field-control input:disabled,
.field-control textarea:disabled {
    border-color: #111b2c;
    background: #101827;
    color: #9aa6bc;
    cursor: not-allowed;
    opacity: 1;
}

.prefixed-control {
    position: relative;
}

.prefixed-control input {
    padding-left: 34px;
}

.suffixed-control {
    position: relative;
}

.suffixed-control input {
    padding-left: 12px;
    padding-right: 116px;
}

.price-control input {
    padding-right: 34px;
}

.field-prefix,
.field-suffix {
    position: absolute;
    top: 0;
    z-index: 1;
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    color: #9aa6bc;
    font-size: 1rem;
    font-weight: 400;
    pointer-events: none;
}

.field-prefix {
    left: 12px;
}

.field-suffix {
    right: 12px;
}

.form-errors {
    margin: 0 0 28px;
    padding: 14px 16px;
    border: 1px solid #8f4c5a;
    border-radius: 6px;
    background: #392333;
    color: #ffdce3;
    font-weight: 400;
}

.form-notice {
    margin: 0 0 28px;
    padding: 14px 16px;
    border: 1px solid #2f6e8f;
    border-radius: 6px;
    background: #1d3245;
    color: #c9efff;
    font-weight: 400;
}

.form-errors p,
.form-notice p,
.field-error {
    margin: 0;
}

.field-error {
    margin-top: 8px;
    color: #ffb3c1;
    font-size: 0.9rem;
    font-weight: 400;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 18px;
    margin-top: 34px;
}

.split-actions {
    justify-content: space-between;
}

.secondary-action {
    color: #56c2ff;
    font-size: 1rem;
    font-weight: 400;
    text-decoration: none;
}

.secondary-action:hover,
.secondary-action:focus-visible {
    color: #f8fbff;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.form-actions button {
    min-height: 42px;
    min-width: 112px;
    padding: 0 22px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 6px;
    background: linear-gradient(353deg, #18a9ff 17.51%, #4be7ff 183.08%);
    box-shadow: 0 1px 3px 0 rgba(255, 255, 255, 0.25) inset;
    color: #07111d;
    cursor: pointer;
    font: inherit;
    font-weight: 400;
}

.form-actions button:hover,
.form-actions button:focus-visible {
    background: linear-gradient(353deg, #2ab5ff 17.51%, #6cf0ff 183.08%);
}

.form-actions button:focus-visible {
    outline: 3px solid #7dd8ff;
    outline-offset: 3px;
}

@media (max-width: 560px) {
    .header-content {
        min-height: 64px;
    }

    .brand {
        font-size: 1.35rem;
    }

    .nav-link {
        min-height: 64px;
    }

    .internal-page {
        padding: 36px 0 64px;
    }

    .timeline-heading {
        margin-bottom: 24px;
    }

    .timeline-heading h1 {
        font-size: 1.8rem;
    }

    .timeline-list,
    .timeline-column-captions {
        margin-left: 0;
    }

    .timeline-day {
        grid-template-columns: 24px minmax(86px, 112px) minmax(0, 1fr);
        gap: 12px;
    }

    .timeline-day::after {
        left: 36px;
    }

    .timeline-column-captions {
        display: none;
    }

    .timeline-day.is-today .timeline-marker::before {
        display: none;
    }

    .timeline-day.is-today .timeline-month::after {
        content: "Today";
        display: inline-flex;
        margin-left: 10px;
        color: #56c2ff;
        font-size: 0.72rem;
        font-weight: 500;
        letter-spacing: 0.06em;
        text-transform: uppercase;
    }

    .timeline-event {
        grid-template-columns: 1fr;
        align-items: start;
        gap: 6px;
    }

    .timeline-link-cell::before {
        content: attr(data-caption);
        display: block;
        margin-bottom: 2px;
        color: #7f8ba3;
        font-size: 0.68rem;
        font-weight: 500;
        letter-spacing: 0.08em;
        line-height: 1.2;
        text-transform: uppercase;
    }

    .login-page,
    .settings-page,
    .plans-page,
    .calls-page,
    .recordings-page {
        padding: 28px 0 64px;
    }

    .page-rule {
        margin: 28px 0;
    }

    .login-form,
    .settings-form {
        padding: 28px 20px 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .form-actions {
        justify-content: stretch;
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .form-actions button {
        width: 100%;
    }

    .secondary-action {
        text-align: center;
    }

    .recordings-table,
    .recordings-table thead,
    .recordings-table tbody,
    .recordings-table tr,
    .recordings-table th,
    .recordings-table td {
        display: block;
    }

    .recordings-table thead {
        display: none;
    }

    .recordings-table tr {
        padding: 18px 0;
        border-top: 1px solid #263247;
    }

    .recordings-table td {
        display: grid;
        grid-template-columns: 96px minmax(0, 1fr);
        gap: 14px;
        padding: 7px 0;
        border-top: 0;
    }

    .recordings-table td::before {
        content: attr(data-caption);
        color: #7f8ba3;
        font-size: 0.68rem;
        font-weight: 500;
        letter-spacing: 0.08em;
        line-height: 1.2;
        text-transform: uppercase;
    }
}
