.term {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    color: #fff;
    font-family: Arial, "Liberation Sans", Helvetica, sans-serif;
    background: #0e1e54;
}

.t-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    background: #18338c;
    border-bottom: 3px solid rgba(200, 214, 255, .85);
    font-size: clamp(18px, 3.2vw, 28px);
}

.t-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-clock { font-variant-numeric: tabular-nums; }

.t-main {
    flex: 1;
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
    padding: 20px 16px 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.t-meeting {
    font-size: clamp(16px, 2.4vw, 20px);
    color: #c9d6ff;
    text-align: center;
}

.t-banner {
    margin-top: 10vh;
    padding: 28px 16px;
    text-align: center;
    font-size: clamp(20px, 4vw, 34px);
    box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .5);
}

.t-banner.bad { background: #f0342a; }

.t-card {
    background: rgba(8, 20, 70, .35);
    border: 2px solid rgba(200, 214, 255, .45);
    padding: 22px 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.t-card.center { align-items: center; text-align: center; }

.t-kind { color: #b9c8f4; font-size: 15px; text-transform: uppercase; letter-spacing: .06em; }
.t-title { margin: 0; font-size: clamp(22px, 4vw, 34px); font-weight: bold; line-height: 1.2; }
.t-desc { margin: 0; color: #dfe7ff; font-size: 17px; line-height: 1.45; }

.t-countdown {
    font-size: clamp(34px, 7vw, 56px);
    font-variant-numeric: tabular-nums;
    text-align: center;
}

.t-countdown.small { font-size: 18px; color: #c9d6ff; }

.t-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

@media (max-width: 560px) {
    .t-buttons { grid-template-columns: 1fr; }
}

.t-btn {
    min-height: 92px;
    border: 0;
    font: inherit;
    font-weight: bold;
    font-size: clamp(20px, 3.4vw, 28px);
    color: #fff;
    cursor: pointer;
    box-shadow: none;
    transition: transform .06s, filter .15s, box-shadow .15s;
}

.t-btn:active:not(:disabled) { transform: translateY(2px); }
.t-btn:disabled { opacity: .55; cursor: not-allowed; }
.t-btn:focus-visible { outline: 4px solid #fff; outline-offset: 3px; }

.t-btn.yes      { background: #1d8d28; }
.t-btn.no       { background: #f0342a; }
.t-btn.abstain  { background: #e0b100; color: #2b2300; }
.t-btn.register { width: min(100%, 520px); min-height: 120px; background: #1d8d28; font-size: clamp(24px, 4.6vw, 36px); }

.t-btn.chosen {
    box-shadow: inset 0 0 0 6px #fff, 0 0 0 4px rgba(255, 255, 255, .35), 0 4px 0 rgba(0, 0, 0, .25);
    filter: saturate(1.15) brightness(1.05);
}

.t-state { text-align: center; color: #dfe7ff; font-size: 17px; }
.t-ok { font-size: clamp(24px, 4.6vw, 36px); color: #8ff096; padding: 20px 0; }
.t-wait { font-size: clamp(18px, 3vw, 24px); padding: 18px 0; }

.t-last { width: 100%; padding: 14px; display: flex; flex-direction: column; gap: 6px; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .45); }
.t-last.ok  { background: #1d8d28; }
.t-last.bad { background: #f0342a; }
.t-last-title { font-weight: bold; }
.t-last-mine { opacity: .85; }

.t-toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    padding: 12px 20px;
    font-size: 17px;
    max-width: calc(100% - 32px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, .35);
}

.t-toast.ok  { background: #0f5e19; }
.t-toast.bad { background: #8e130d; }

.t-foot { padding: 10px 16px; text-align: right; }

.t-foot button {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .5);
    color: #fff;
    padding: 6px 14px;
    cursor: pointer;
}

/* вход в терминала */
.t-form { display: grid; gap: 14px; }
.t-form .t-btn.register { width: 100%; }
.t-form label { color: #dfe7ff; font-size: 15px; }
.t-form input { min-height: 52px; font-size: 20px; background: #fff; color: #0e1e54; border: 0; }
.t-form .validation-errors { color: #ffd2cf; }
.t-fine { text-align: center; color: #b9c8f4; font-size: 13px; }
.t-fine a { color: #fff; }
