/* ============================================================
   项目监控站 - 样式
   ------------------------------------------------------------
   设计目标：
   - 深色科技感（运维风），不刺眼
   - PC 一排 4 列，平板 3 列，手机 2 列
   - 右上角彩灯闪烁动画
   ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
    width: 100%;
    max-width: 100vw;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
    font-size: 14px;
    color: #e2e8f0;
    background:
        radial-gradient(circle at 20% 0%, rgba(59, 130, 246, 0.18), transparent 40%),
        radial-gradient(circle at 80% 100%, rgba(168, 85, 247, 0.16), transparent 40%),
        linear-gradient(160deg, #0f172a 0%, #0b1224 60%, #0a0f1f 100%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    touch-action: manipulation;
    -webkit-overflow-scrolling: touch;
}

input, button {
    font-family: inherit;
    outline: none;
    border: none;
    background: none;
    color: inherit;
}

button { cursor: pointer; }

code {
    font-family: ui-monospace, "SF Mono", Menlo, Monaco, Consolas, monospace;
    background: rgba(148, 163, 184, 0.18);
    color: #f1f5f9;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.92em;
}

[hidden] { display: none !important; }


/* ========== 登录页 ========== */
.login-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.login-card {
    width: 100%;
    max-width: 380px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 18px;
    padding: 36px 28px;
    text-align: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.login-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.login-logo-img {
    width: 84px;
    height: 84px;
    object-fit: contain;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    padding: 6px;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.18);
    user-select: none;
    -webkit-user-drag: none;
}

.login-title {
    font-size: 20px;
    font-weight: 600;
    color: #f8fafc;
    letter-spacing: 0.6px;
}

.login-sub {
    margin-top: 8px;
    color: #94a3b8;
    font-size: 13px;
}

.login-form {
    margin-top: 26px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.login-input {
    width: 100%;
    height: 46px;
    padding: 0 16px;
    background: rgba(30, 41, 59, 0.7);
    border: 1.5px solid rgba(148, 163, 184, 0.2);
    border-radius: 10px;
    color: #f1f5f9;
    font-size: 15px;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.login-input::placeholder { color: #64748b; }

.login-input:focus {
    border-color: #3b82f6;
    background: rgba(30, 41, 59, 0.95);
}

.login-input.is-error {
    border-color: #ef4444;
    background: rgba(127, 29, 29, 0.18);
}

.login-btn {
    width: 100%;
    height: 46px;
    background: linear-gradient(90deg, #3b82f6 0%, #6366f1 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
    box-shadow: 0 6px 18px rgba(59, 130, 246, 0.35);
}

.login-btn:active { transform: scale(0.98); }

.login-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* ===== 登录提示弹窗（密码为空 / 密码错误） ===== */
.login-alert-box {
    position: relative;
    width: 100%;
    max-width: 340px;
    background: linear-gradient(160deg, #111c33 0%, #0c1428 100%);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 16px;
    padding: 26px 24px 22px;
    text-align: center;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.55);
    animation: modalBoxIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.login-alert-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    margin-bottom: 14px;
    background: rgba(239, 68, 68, 0.14);
    color: #ef4444;
    animation: alertIconPulse 1.2s ease-in-out infinite;
}

.login-alert-icon.is-hint {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
    animation: none;
}

.login-alert-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #f8fafc;
    letter-spacing: 0.4px;
}

.login-alert-msg {
    margin-top: 8px;
    font-size: 13.5px;
    color: #cbd5e1;
    line-height: 1.6;
}

.login-alert-btn {
    margin-top: 22px;
    width: 100%;
    height: 42px;
    background: linear-gradient(90deg, #3b82f6 0%, #6366f1 100%);
    color: #fff;
    font-size: 14.5px;
    font-weight: 600;
    border-radius: 10px;
    transition: transform 0.12s ease, box-shadow 0.15s ease, opacity 0.15s ease;
    box-shadow: 0 6px 18px rgba(59, 130, 246, 0.32);
}

.login-alert-btn:hover { opacity: 0.95; }
.login-alert-btn:active { transform: scale(0.98); }

@keyframes alertIconPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.45); }
    70%      { box-shadow: 0 0 0 12px rgba(239, 68, 68, 0); }
}

@media (max-width: 480px) {
    .login-alert-box { max-width: 86vw; padding: 22px 20px 18px; }
    .login-alert-icon { width: 48px; height: 48px; margin-bottom: 12px; }
    .login-alert-title { font-size: 16px; }
    .login-alert-msg { font-size: 13px; }
}

.login-tip {
    margin-top: 18px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.6;
}

.login-footer {
    margin-top: 30px;
    color: #ffffff;
    font-size: 12px;
    text-align: center;
    opacity: 0.9;
    letter-spacing: 0.3px;
}


/* ========== 监控面板 ========== */
.dash-page {
    min-height: 100vh;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.dash-header {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
    background: rgba(11, 17, 35, 0.75);
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* 顶部：LOGO + 标题（放大版） */
.dash-brand {
    display: inline-flex;
    align-items: center;
    gap: 26px;
}

.dash-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.04);
    padding: 10px;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.28);
    user-select: none;
    -webkit-user-drag: none;
}

.dash-title {
    margin: 0;
    font-size: 42px;
    font-weight: 700;
    color: #f8fafc;
    letter-spacing: 3.5px;
    line-height: 1.2;
    text-shadow: 0 3px 20px rgba(59, 130, 246, 0.32);
}

/* 通用按钮（弹窗里仍在用）*/
.dash-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 12px;
    border-radius: 8px;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.15);
    color: #93c5fd;
    font-size: 13px;
    transition: all 0.15s ease;
}

.dash-btn:hover {
    background: rgba(51, 65, 85, 0.95);
    border-color: rgba(148, 163, 184, 0.3);
}

.dash-btn:active { transform: scale(0.97); }

/* 手机端刷新信息（PC 端隐藏） */
.dash-refresh-mobile {
    display: none;
}

.dash-main {
    flex: 1;
    padding: 24px;
}

/* ========== 九宫格（PC 4 列 / 平板 3 列 / 手机 2 列）========== */
.dash-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    max-width: 1320px;
    margin: 0 auto;
}

@media (max-width: 1024px) {
    .dash-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
    .dash-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .dash-main { padding: 16px; }
    .dash-header { padding: 22px 16px; }
    .dash-title { font-size: 18px; letter-spacing: 1.2px; }
    .dash-brand { gap: 18px; }
    .dash-logo { width: 68px; height: 68px; border-radius: 16px; padding: 7px; }
    .dash-btn { padding: 0 10px; font-size: 12px; height: 30px; }

    .dash-refresh-mobile {
        display: block;
        margin-top: 8px;
        font-size: 11.5px;
        color: #94a3b8;
        text-align: center;
    }

    .dash-refresh-mobile .dot { margin: 0 6px; opacity: 0.5; }

    .dash-footer-sub { display: none; }
}

@media (max-width: 380px) {
    .dash-header { padding: 18px 12px; }
    .dash-title { font-size: 14px; letter-spacing: 1px; }
    .dash-brand { gap: 14px; }
    .dash-logo { width: 56px; height: 56px; border-radius: 14px; padding: 6px; }
}


/* ========== 监控卡片（图标 + 文字，居中布局，边缘流光） ==========
   层级：
     - .card           外壳 + 旋转流光 + 阴影
     - .card::before   旋转 conic-gradient（流光层），通过过 overflow:hidden 只露出 1.5px 的边
     - .card::after    中心蒙版，盖住流光中间部分，只剩边框是"流光"
     - .card-inner     真实内容（图标/名称/状态/描述），通过 z-index 浮在最上层
*/
.card {
    position: relative;
    background: transparent;
    border: 0;
    border-radius: 14px;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.25s ease;

    /* 固定最小高度，状态变化时不抖 */
    min-height: 168px;

    /* 让边框颜色变化平滑过渡用，通过 CSS 变量传给流光层 */
    --edge-color: rgba(148, 163, 184, 0.35);
    --edge-spin: 4s;
    --edge-arc: 18%;     /* 流光弧长所占圆周比例 */
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
}

/* ===== 流光层：满覆盖卡片，旋转的 conic-gradient ===== */
.card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 220%;
    height: 220%;
    /* 起点透明→单色亮弧→透明 */
    background: conic-gradient(
        from 0deg,
        transparent 0%,
        transparent calc(50% - var(--edge-arc)),
        var(--edge-color) 50%,
        transparent calc(50% + var(--edge-arc)),
        transparent 100%
    );
    transform: translate(-50%, -50%) rotate(0deg);
    animation: cardEdgeSpin var(--edge-spin) linear infinite;
    transition: background 0.35s ease;
    z-index: 0;
    pointer-events: none;
}

/* ===== 内层蒙版：留 1.5px 露出流光作为"边框" ===== */
.card::after {
    content: '';
    position: absolute;
    inset: 1.5px;
    border-radius: 12.5px;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 1;
    pointer-events: none;
}

/* ===== 卡片内容容器：浮在最上层 ===== */
.card-inner {
    position: relative;
    z-index: 2;
    padding: 24px 16px 22px;
    height: 100%;
    min-height: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
}

/* ===== 状态决定流光颜色 + 旋转速度 ===== */
.card.is-ok {
    --edge-color: #22c55e;
    --edge-spin: 8s;        /* 正常时缓慢绕圈，沉稳安心 */
    --edge-arc: 16%;
}

.card.is-fail {
    --edge-color: #ef4444;
    --edge-spin: 3.5s;      /* 异常时比正常快，引起注意但不焦躁 */
    --edge-arc: 22%;        /* 弧光更宽，更显眼 */
}

.card.is-loading {
    --edge-color: #3b82f6;
    --edge-spin: 2.8s;      /* 加载中流畅一些 */
    --edge-arc: 14%;
}

@keyframes cardEdgeSpin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to   { transform: translate(-50%, -50%) rotate(360deg); }
}

/* 顶部图标 */
.card-icon {
    width: 44px;
    height: 44px;
    color: #60a5fa;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.35s ease, transform 0.35s ease, filter 0.35s ease;
    margin-bottom: 4px;
}

.card-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
}

.card.is-ok   .card-icon { color: #4ade80; filter: drop-shadow(0 0 8px rgba(34, 197, 94, 0.5)); }
.card.is-fail .card-icon { color: #f87171; filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.55)); }
.card.is-loading .card-icon { color: #60a5fa; }

/* 项目名 */
.card-name {
    font-size: 17px;
    font-weight: 700;
    color: #f8fafc;
    line-height: 1.3;
    letter-spacing: 0.5px;
}

/* 状态行：小圆点 + 文字 */
.card-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #94a3b8;
}

.card-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #475569;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.card.is-ok .card-status-dot {
    background: #22c55e;
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.7);
    animation: blinkDotGreen 1.5s ease-in-out infinite;
}

.card.is-fail .card-status-dot {
    background: #ef4444;
    box-shadow: 0 0 6px rgba(239, 68, 68, 0.7);
    animation: blinkDotRed 0.7s ease-in-out infinite;
}

.card.is-loading .card-status-dot {
    background: #3b82f6;
    box-shadow: 0 0 6px rgba(59, 130, 246, 0.7);
    animation: blinkDotBlue 0.6s linear infinite;
}

.card.is-ok   .card-status-text { color: #86efac; }
.card.is-fail .card-status-text { color: #fca5a5; }
.card.is-loading .card-status-text { color: #93c5fd; }

/* 简短描述（HTTP/耗时 / 异常信息） */
.card-desc {
    margin-top: auto;            /* 推到卡片底部 */
    padding-top: 8px;
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.5;
    word-break: break-all;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(1.5em * 2);
}

@media (max-width: 720px) {
    .card { padding: 20px 12px 18px; min-height: 156px; gap: 6px; }
    .card-icon { width: 38px; height: 38px; }
    .card-name { font-size: 15px; }
    .card-status { font-size: 12px; }
    .card-desc { font-size: 11.5px; }
}


/* ========== 底部 ========== */
.dash-footer {
    margin: 40px auto 8px;
    max-width: 1320px;
    color: #ffffff;
    font-size: 13px;
    text-align: center;
    letter-spacing: 0.5px;
}

.dash-footer-sub {
    margin-top: 8px;
    font-size: 11.5px;
    color: #ffffff;
    letter-spacing: 0;
    opacity: 0.9;
}

.dash-footer .dot { margin: 0 8px; opacity: 0.6; }


/* ========== Toast ========== */
.toast {
    position: fixed;
    left: 50%;
    bottom: 40px;
    transform: translate(-50%, 20px);
    padding: 10px 18px;
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: #f1f5f9;
    font-size: 13px;
    border-radius: 10px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    max-width: 80%;
    text-align: center;
    z-index: 9999;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}


/* ========== 动画 ========== */
@keyframes pulseGreen {
    0%, 100% { box-shadow: 0 0 10px rgba(34, 197, 94, 0.7); }
    50%      { box-shadow: 0 0 18px rgba(34, 197, 94, 1); }
}

@keyframes blinkGreen {
    0%, 100% { opacity: 1;   box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.25), 0 0 8px rgba(34, 197, 94, 0.6); }
    50%      { opacity: 0.55; box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.06), 0 0 2px rgba(34, 197, 94, 0.3); }
}

@keyframes blinkRed {
    0%, 100% { opacity: 1;   box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.3),  0 0 10px rgba(239, 68, 68, 0.75); }
    50%      { opacity: 0.45; box-shadow: 0 0 0 8px rgba(239, 68, 68, 0.05), 0 0 2px  rgba(239, 68, 68, 0.3); }
}

@keyframes blinkBlue {
    0%, 100% { opacity: 1;   transform: scale(1);   }
    50%      { opacity: 0.5; transform: scale(0.85); }
}

/* 卡片状态小圆点的呼吸动画 */
@keyframes blinkDotGreen {
    0%, 100% { opacity: 1; box-shadow: 0 0 6px rgba(34, 197, 94, 0.7); }
    50%      { opacity: 0.55; box-shadow: 0 0 2px rgba(34, 197, 94, 0.3); }
}

@keyframes blinkDotRed {
    0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(239, 68, 68, 0.85); }
    50%      { opacity: 0.4; box-shadow: 0 0 2px rgba(239, 68, 68, 0.3); }
}

@keyframes blinkDotBlue {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.5; transform: scale(0.7); }
}


/* ========== 卡片详情弹窗 ========== */
.modal {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-mask {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.72);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    animation: modalMaskIn 0.18s ease-out;
}

.modal-box {
    position: relative;
    width: 100%;
    max-width: 480px;
    max-height: calc(100vh - 40px);
    overflow: auto;
    background: linear-gradient(160deg, #111c33 0%, #0c1428 100%);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 16px;
    padding: 22px 22px 18px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.55);
    animation: modalBoxIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: #94a3b8;
    font-size: 22px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, color 0.15s ease;
}

.modal-close:hover {
    background: rgba(148, 163, 184, 0.15);
    color: #f1f5f9;
}

.modal-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.modal-led {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #475569;
    box-shadow: 0 0 0 4px rgba(71, 85, 105, 0.18);
    flex-shrink: 0;
}

.modal-led.is-ok {
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.22);
    animation: blinkGreen 1.2s ease-in-out infinite;
}

.modal-led.is-fail {
    background: #ef4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.25);
    animation: blinkRed 0.65s ease-in-out infinite;
}

.modal-led.is-loading {
    background: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.25);
    animation: blinkBlue 0.6s linear infinite;
}

.modal-head-text {
    flex: 1;
    min-width: 0;
}

.modal-group {
    font-size: 11px;
    color: #94a3b8;
    background: rgba(148, 163, 184, 0.12);
    padding: 2px 8px;
    border-radius: 10px;
    letter-spacing: 0.5px;
    display: inline-block;
}

.modal-title {
    margin-top: 6px;
    font-size: 18px;
    font-weight: 600;
    color: #f8fafc;
    line-height: 1.3;
    word-break: break-all;
}

.modal-section {
    margin-top: 16px;
}

.modal-section-label {
    font-size: 12px;
    color: #64748b;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.modal-desc {
    font-size: 14px;
    color: #cbd5e1;
    line-height: 1.65;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 10px;
    padding: 12px 14px;
}

.modal-kv {
    list-style: none;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 10px;
    padding: 6px 14px;
}

.modal-kv li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 0;
    font-size: 13px;
    border-bottom: 1px dashed rgba(148, 163, 184, 0.12);
}

.modal-kv li:last-child { border-bottom: none; }

.modal-kv li > span {
    flex-shrink: 0;
    width: 54px;
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.6;
}

.modal-kv li > code {
    flex: 1;
    min-width: 0;
    background: transparent;
    padding: 0;
    color: #e2e8f0;
    font-size: 12.5px;
    word-break: break-all;
    line-height: 1.6;
}

.modal-actions {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.modal-actions .dash-btn {
    min-width: 110px;
    justify-content: center;
}

@media (max-width: 480px) {
    .modal { padding: 12px; }
    .modal-box { padding: 18px 16px 14px; max-height: calc(100vh - 24px); }
    .modal-title { font-size: 16px; }
    .modal-desc { font-size: 13px; padding: 10px 12px; }
    .modal-kv { padding: 4px 12px; }
    .modal-kv li > span { width: 46px; font-size: 11.5px; }
    .modal-kv li > code { font-size: 12px; }
}

@keyframes modalMaskIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

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