/* 版本更新小卡：深藍卡片、金色「更新」，桌機在下方中間，手機在上方（不擋對話輸入列）。 */
.ver-card {
    position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%);
    z-index: 2000; width: min(460px, calc(100% - 32px));
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 12px;
    padding: 12px 10px 12px 14px; border-radius: 12px; color: #fff; background: #14263e;
    border: 1px solid rgba(219, 184, 117, 0.35);
    box-shadow: 0 14px 34px #1a120a40, 0 2px 6px #1a120a1f;
    font-family: "Segoe UI", "Noto Sans TC", "Microsoft JhengHei", -apple-system, sans-serif;
    animation: ver-rise 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
/* 文字對話開著時移到上方，不擋輸入列 */
#officeChatModal[style*="flex"] ~ .ver-card { bottom: auto; top: calc(12px + env(safe-area-inset-top, 0px)); }
.ver-icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; display: block; }
.ver-mark { color: #f1d9a6; }
.ver-text { min-width: 0; display: grid; gap: 2px; }
.ver-title { font-size: 14.5px; font-weight: 700; }
.ver-sub { font-size: 13px; color: #e4ddd1; line-height: 1.5; overflow-wrap: anywhere; }
.ver-go {
    min-height: 40px; padding: 0 18px; border: 0; border-radius: 10px; cursor: pointer;
    font: inherit; font-size: 14.5px; font-weight: 700; background: #dbb875; color: #192638; white-space: nowrap;
}
.ver-go:hover { background: #d2ad70; }
.ver-go:disabled { opacity: 0.55; cursor: not-allowed; }
.ver-close {
    width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 8px;
    background: none; color: #c8c1b3; cursor: pointer;
}
.ver-close:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.ver-card button:focus-visible { outline: 2px solid #f1d9a6; outline-offset: 2px; box-shadow: none; }
@keyframes ver-rise { from { opacity: 0; transform: translate(-50%, 16px); } to { opacity: 1; transform: translate(-50%, 0); } }
@media (max-width: 700px) {
    .ver-card { bottom: auto; top: calc(12px + env(safe-area-inset-top, 0px)); }
    @keyframes ver-rise { from { opacity: 0; transform: translate(-50%, -16px); } to { opacity: 1; transform: translate(-50%, 0); } }
}
@media (prefers-reduced-motion: reduce) { .ver-card { animation: none; } }
