.profile-card,
.wallet-card,
.form-card,
.actions-card,
.calendar-card,
.submit-card {
    padding: 18px;
}

.hero p {
    max-width: 34ch;
}

.profile-top {
    display: flex;
    align-items: center;
    gap: 14px;
}

.avatar {
    width: 70px;
    height: 70px;
    border-radius: 22px;
    object-fit: cover;
    background: #151b25;
    flex: 0 0 auto;
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.avatar-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 28px;
    font-weight: 700;
}

.profile-copy {
    min-width: 0;
    flex: 1 1 auto;
}

.identity-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    max-width: 100%;
    padding: 10px 15px;
    border-radius: var(--radius-pill);
    background: linear-gradient(180deg, #62b2fb, #4399eb);
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 10px 28px rgba(43, 141, 225, 0.28);
}

.identity-pill span:last-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.identity-icon {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.16);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.identity-icon svg {
    width: 14px;
    height: 14px;
    display: block;
}

.profile-sub {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 14px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 12px rgba(49, 196, 141, 0.45);
    flex: 0 0 auto;
}

.section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.status-badge {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    color: var(--muted);
}

.status-badge.connected {
    color: #ddfff0;
    background: rgba(49, 196, 141, 0.12);
    border-color: rgba(49, 196, 141, 0.24);
}

.status-badge.disconnected {
    color: #ffe6e6;
    background: rgba(255, 107, 107, 0.08);
    border-color: rgba(255, 107, 107, 0.2);
}

.wallet-box,
.calendar-box {
    margin-top: 20px;
    padding: 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.wallet-main,
.calendar-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.wallet-address-short,
.calendar-provider-title {
    margin: 0;
    font-size: 22px;
    line-height: 1.1;
    letter-spacing: -0.03em;
    font-weight: 800;
}

.wallet-address-full,
.calendar-provider-note {
    margin: 10px 0 0;
    color: var(--muted-2);
    font-size: 12px;
    line-height: 1.45;
    word-break: break-all;
    white-space: pre-line;
}

.wallet-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(86, 168, 245, 0.08);
    color: #d7ebff;
    font-size: 13px;
    font-weight: 700;
    flex: 0 0 auto;
}

.btn-ton-host {
    min-height: 56px;
    border-radius: 18px;
    overflow: hidden;
}

.btn-disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
    box-shadow: none;
}

.setup-list {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.setup-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.setup-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.setup-ico {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(86, 168, 245, 0.08);
    color: #d7ebff;
    flex: 0 0 auto;
}

.setup-text {
    min-width: 0;
}

.setup-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}

.setup-sub {
    margin-top: 2px;
    font-size: 12px;
    color: var(--muted-2);
}

.setup-state {
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 800;
    color: var(--muted);
}

.setup-state.ok {
    color: #d7fff0;
}

.telegram-login-slot {
    margin-top: 12px;
    min-height: 44px;
}

.telegram-open-link {
    display: inline-flex;
    align-items: center;
    margin-top: 10px;
    color: var(--muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

.telegram-open-link:visited {
    color: var(--muted);
}

.form-grid {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.form-row-2 {
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr 1fr;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
}

.field input,
.field select,
.field textarea {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.035);
    color: var(--text);
    border-radius: 14px;
    padding: 14px;
    font: inherit;
    outline: none;
}

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

.field input::placeholder,
.field textarea::placeholder {
    color: var(--muted-2);
}

.field select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.02));
    color: var(--text);
}

.field select option {
    background: #141b27;
    color: #f4f7fb;
}

.check-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.check-chip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    padding: 12px 10px;
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    user-select: none;
}

.check-chip input {
    display: none;
}

.check-chip.active {
    background: rgba(86, 168, 245, 0.14);
    border-color: rgba(86, 168, 245, 0.28);
    color: #dff1ff;
}

.register-btn {
    min-height: 58px;
    font-size: 17px;
}

.calendar-connect-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 48px;
    padding: 14px 18px;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    background: rgba(86, 168, 245, 0.14);
    border: 1px solid rgba(86, 168, 245, 0.28);
    color: #dff1ff;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease, opacity .15s ease;
}

.calendar-connect-btn:active {
    transform: translateY(1px);
}

.calendar-connect-btn.is-google-pending {
    background: #0098EA;
    border-color: #0098EA;
    color: #ffffff;
    box-shadow: 0 14px 28px rgba(0, 152, 234, 0.28);
}

.calendar-connect-btn.is-connected {
    background: rgba(49, 196, 141, 0.12);
    border: 1px solid rgba(49, 196, 141, 0.24);
    color: #ddfff0;
    box-shadow: none;
}

.calendar-btn-logo {
    width: 22px;
    height: 22px;
    object-fit: contain;
    display: none;
    flex: 0 0 22px;
}

.calendar-connect-btn.show-google-logo .calendar-btn-logo {
    display: inline-block;
}

.eh-modal-overlay[hidden] {
    display: none;
}

.eh-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(2, 7, 18, 0.72);
    backdrop-filter: blur(4px);
}

.eh-modal {
    width: 100%;
    max-width: 380px;
    padding: 22px 20px 18px;
    border-radius: 24px;
    background: linear-gradient(180deg, #101827 0%, #0b1220 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
    text-align: center;
}

.eh-modal h3 {
    margin: 0 0 10px;
    font-size: 22px;
    font-weight: 800;
    color: #f5f7ff;
}

.eh-modal p {
    margin: 0 0 18px;
    font-size: 16px;
    line-height: 1.45;
    color: #b8c2d8;
}

.eh-modal-ok-btn {
    min-width: 120px;
    min-height: 46px;
    padding: 12px 18px;
    border: none;
    border-radius: 999px;
    background: #0098EA;
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 14px 28px rgba(0, 152, 234, 0.28);
}

.add-calendar-card {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: 100%;
    min-height: 78px;
    padding: 18px 20px;
    border: 1px solid rgba(86, 168, 245, 0.28);
    border-radius: var(--radius-xl);
    background: rgba(86, 168, 245, 0.14);
    color: #dff1ff;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease, opacity .15s ease;
}

.add-calendar-card:active {
    transform: translateY(1px);
}

.add-calendar-plus-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(86, 168, 245, 0.30);
    color: #dff1ff;
    box-shadow: 0 8px 22px rgba(86, 168, 245, 0.16);
}

.add-calendar-plus-svg {
    width: 20px;
    height: 20px;
    display: block;
}

.add-calendar-text {
    color: #dff1ff;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.2;
}

#work-start,
#work-end {
    color-scheme: dark;
}

@media (max-width: 420px) {
    .form-row-2 {
        grid-template-columns: 1fr;
    }

    .check-group {
        grid-template-columns: repeat(2, 1fr);
    }
}