*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Fira Code', Menlo, Consolas, 'Liberation Mono', monospace;
    line-height: 1.5;
    color: #c0c0c0;
    background: #0c0c0c;
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
    display: flex;
    justify-content: center;
    padding: 4rem 1rem 3rem;
}

.hidden {
    display: none !important;
}

.tui {
    width: 100%;
    max-width: 560px;
    border: 1px solid #333;
    background: #0c0c0c;
}

.tui-chrome {
    background: #1a1a1a;
    border-bottom: 1px solid #333;
    padding: 4px 12px;
    text-align: center;
}

.tui-body {
    padding: 1.5rem;
}

.tui-title-panel {
    border: 1px solid #2c2c2c;
    margin-bottom: 0.8rem;
    background: #0d0d0d;
}

.tui-title-panel-bar {
    height: 0.3rem;
    background: #5aa0e6;
    border-bottom: 1px solid #2c2c2c;
}

.tui-title-panel-body {
    padding: 0.75rem 0.85rem 0.7rem;
}

.tui-title-panel-heading {
    color: #e0e0e0;
    font-size: 0.98rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.tui-menu {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 0.9rem;
}

.tui-option {
    display: block;
    color: #c0c0c0;
    text-decoration: none;
    padding: 0.4rem 0.5rem;
    font-size: 0.9rem;
    border: 1px solid transparent;
    transition: all 0.1s;
}

.tui-option:hover {
    background: #e0e0e0;
    color: #0c0c0c;
    border-color: #e0e0e0;
}

.tui-option.active {
    border-color: #2c2c2c;
    background: rgba(90, 160, 230, 0.05);
    color: #e0e0e0;
    box-shadow: inset 3px 0 0 #5aa0e6;
}

.tui-option:hover .tui-key {
    color: #0c0c0c;
}

.tui-option:hover .tui-dim {
    color: #444;
}

.tui-option.active .tui-key {
    color: #5aa0e6;
}

.tui-option.active .tui-dim {
    color: #8a8a8a;
}

.tui-key {
    color: #5fafff;
    font-weight: bold;
}

.tui-dim,
.tui-meta,
.tui-copy,
.no-slots,
.email-notice,
.tui-status {
    color: #777;
}

.tui-prompt {
    margin-top: 0.75rem;
    font-size: 0.9rem;
}

.tui-flow-shell.is-expanded .tui-prompt {
    display: none;
}

.tui-caret {
    color: #e0e0e0;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

.tui-flow {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.tui-panel {
    padding: 0;
}

.tui-panel + .tui-panel {
    border-top: 1px solid #222;
    padding-top: 0.95rem;
}

.tui-label {
    display: block;
    color: #5fafff;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 0.35rem;
}

.tui-selection h2,
.tui-stage-header h3,
.confirmation h1 {
    color: #e0e0e0;
}

.tui-selection h2 {
    font-size: 0.95rem;
    margin-bottom: 0.18rem;
}

.tui-selection .tui-label {
    margin-bottom: 0.22rem;
}

.tui-meta {
    font-size: 0.82rem;
}

.tui-copy {
    margin-top: 0.5rem;
    font-size: 0.85rem;
}

.tui-stage-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
    margin-bottom: 0.85rem;
}

.tui-stage-header h3 {
    font-size: 0.9rem;
}

.tui-stage-header h3::before,
.tui-label::before {
    content: "> ";
    color: #5fafff;
}

.tui-status {
    margin-bottom: 1rem;
    font-size: 0.82rem;
}

.tui-status.error {
    color: #ff8a8a;
}

.btn {
    display: inline-block;
    background: transparent;
    color: #e0e0e0;
    padding: 0.45rem 1rem;
    border: 1px solid #555;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.1s;
}

.btn:hover,
.date-btn:hover {
    background: #e0e0e0;
    color: #0c0c0c;
    border-color: #e0e0e0;
}

.btn-primary {
    width: 100%;
    padding: 0.6rem;
    font-size: 0.9rem;
}

.date-list,
.slots-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.date-btn,
.slot-btn {
    padding: 0.5rem 0.8rem;
    border: 1px solid #333;
    background: #0f0f0f;
    color: #888;
    cursor: pointer;
    font-size: 0.8rem;
    font-family: inherit;
    transition: all 0.1s;
}

.slot-btn:hover {
    border-color: #5fafff;
    color: #5fafff;
}

.date-btn.active,
.slot-btn.active {
    background: #5aa0e6;
    color: #0b1118;
    border-color: #5aa0e6;
}

.tz-picker {
    min-width: 11.5rem;
    font-size: 0.74rem;
    color: #6f6f6f;
}

.tz-picker label,
.field label {
    display: block;
    margin-bottom: 0.3rem;
}

.tz-picker label {
    margin-bottom: 0.22rem;
}

.tz-picker select {
    width: 100%;
    padding: 0.48rem 0.65rem;
    border: 1px solid #2a2a2a;
    font-size: 0.8rem;
    font-family: inherit;
    background: #0d0d0d;
    color: #b8b8b8;
}

.field input,
.field textarea {
    width: 100%;
    padding: 0.6rem 0.7rem;
    border: 1px solid #333;
    font-size: 0.85rem;
    font-family: inherit;
    background: #0f0f0f;
    color: #e0e0e0;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: none;
    border-color: #5fafff;
    box-shadow: 0 0 0 1px #5fafff;
}

.field {
    margin-bottom: 1rem;
}

.field label {
    font-size: 0.8rem;
    color: #888;
}

.tz-picker select:focus,
.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: #5fafff;
}

.confirmation {
    text-align: center;
}

.check-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    color: #5faf5f;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid #333;
}

.confirmation h1 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.details {
    background: transparent;
    border-top: 1px solid #222;
    border-bottom: 1px solid #222;
    padding: 0.85rem 0;
    margin-bottom: 1.25rem;
    text-align: left;
}

.details p {
    margin-bottom: 0.25rem;
    font-size: 0.85rem;
    color: #c0c0c0;
}

.details a {
    color: #5fafff;
}

.email-notice {
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 480px) {
    body {
        padding: 1rem 0 2rem;
    }

    .tui {
        border-left: none;
        border-right: none;
    }

    .tui-body {
        padding: 1.25rem 1rem;
    }

    .tui-stage-header {
        flex-direction: column;
        align-items: stretch;
    }
}
