/* 屋檢Plus 點數中心：品牌 Light semantic tokens；無外部資源。 */
:root {
    --bg:#FAFAFA;
    --card:#FFFFFF;
    --sunken:#F4F4F5;
    --ink:#18181B;
    --ink2:#52525B;
    --ink3:#71717A;
    --line:#E4E4E7;
    --strong:#D4D4D8;
    --accent:#0E7490;
    --accent-pressed:#155E75;
    --accent-soft:#E8F4F7;
    --on-accent:#FFFFFF;
    --fail:#B91C1C;
    --failbg:#FEF2F2;
    --warn:#B45309;
    --warnbg:#FFFBEB;
    --ok:#15803D;
    --okbg:#F0FDF4;
    --info:#2563EB;
    --infobg:#EFF6FF;
    --na:#52525B;
    --nabg:#F4F4F5;
    --sidebar:248px;
}
* {
    box-sizing:border-box;
    min-width:0;
}
html {
    -webkit-text-size-adjust:100%;
}
body {
    margin:0;
    background:var(--bg);
    color:var(--ink);
    font:14px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI","PingFang TC","Microsoft JhengHei",sans-serif;
    font-variant-numeric:tabular-nums;
    overflow-wrap:anywhere;
}
[hidden] {
    display:none!important;
}
h1,h2,h3,p {
    margin:0;
}
h1 {
    font-size:24px;
    line-height:30px;
}
h2,legend {
    font-size:20px;
    line-height:26px;
    font-weight:600;
}
h3 {
    font-size:16px;
}
p+p {
    margin-top:8px;
}
a {
    color:var(--accent);
}
small,.muted,.hint {
    color:var(--ink2);
}
small {
    font-size:12px;
}
.hint {
    font-size:14px;
    margin:8px 0;
}
.pre {
    white-space:pre-wrap;
}
button,input,select,textarea {
    font:inherit;
    max-width:100%;
}
button,.button {
    min-height:44px;
    min-width:44px;
    padding:10px 16px;
    border:1px solid var(--line);
    border-radius:12px;
    background:var(--card);
    color:var(--ink);
    font-weight:600;
    cursor:pointer;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    text-decoration:none;
    gap:8px;
    transition:background 150ms;
}
button:hover,.button:hover {
    background:var(--sunken);
}
button.primary,.button.primary {
    background:var(--accent);
    color:var(--on-accent);
    border-color:var(--accent);
}
button.primary:hover,.button.primary:hover {
    background:var(--accent-pressed);
}
button:disabled {
    cursor:default;
    background:var(--sunken);
    color:var(--ink2);
    border-color:var(--line);
}
.danger {
    color:var(--fail);
}
.full {
    width:100%;
}
.compact {
    padding:8px 12px;
}
.link-button {
    border:0;
    background:transparent;
    color:var(--accent);
    text-decoration:underline;
    padding-left:0;
}
.back-link {
    justify-self:start;
}
.visually-hidden,.skip-link:not(:focus) {
    position:absolute;
    width:1px;
    height:1px;
    padding:0;
    margin:-1px;
    overflow:hidden;
    clip-path:inset(50%);
    white-space:nowrap;
    border:0;
}
.skip-link:focus {
    position:fixed;
    top:8px;
    left:16px;
    z-index:100;
    background:var(--card);
    padding:12px;
}
:focus-visible {
    outline:2px solid var(--accent);
    outline-offset:2px;
}
.wrap {
    max-width:1440px;
    margin:auto;
    padding:32px;
}
#content {
    display:grid;
    gap:24px;
}
#content:focus {
    outline:0;
}
.authenticated #content {
    margin-left:var(--sidebar);
    max-width:1440px;
}
.brand {
    display:flex;
    align-items:center;
    gap:12px;
    font-size:16px;
    font-weight:700;
}
.brand svg {
    width:32px;
    height:32px;
    color:var(--accent);
}
svg {
    width:20px;
    height:20px;
    flex-shrink:0;
}
.sidebar {
    position:fixed;
    inset:0 auto 0 0;
    width:var(--sidebar);
    padding:0 16px;
    background:var(--card);
    border-right:1px solid var(--line);
    display:flex;
    flex-direction:column;
    z-index:20;
}
.sidebar .brand {
    min-height:72px;
    padding:0 12px;
}
.nav-label {
    font-size:12px;
    color:var(--ink2);
    padding:24px 12px 8px;
}
.tabs {
    display:grid;
    gap:8px;
}
.tabs a {
    display:flex;
    align-items:center;
    gap:12px;
    min-height:48px;
    padding:12px;
    text-decoration:none;
    color:var(--ink2);
    border-radius:10px;
}
.tabs a:hover {
    background:var(--sunken);
}
.tabs a[aria-current] {
    background:var(--accent-soft);
    color:var(--accent);
    font-weight:600;
}
.sidebar footer {
    margin-top:auto;
    padding:24px 12px;
    border-top:1px solid var(--sunken);
}
.sidebar footer p {
    margin-top:4px;
}
.topbar {
    margin-left:var(--sidebar);
    min-height:72px;
    background:var(--card);
    border-bottom:1px solid var(--line);
    display:flex;
    align-items:center;
    gap:24px;
    padding:12px 32px;
}
.topbar>.brand {
    display:none;
}
.company {
    flex:1;
}
.company-switch {
    border:0;
    background:transparent;
    padding:0;
    text-align:left;
    justify-content:flex-start;
    gap:16px;
}
.switch-label {
    color:var(--accent);
    font-size:12px;
}
.desktop-account {
    display:flex;
    align-items:center;
    gap:16px;
}
.mobile-account {
    display:none;
}
.page-head p {
    margin-top:8px;
}
.card {
    background:var(--card);
    border:1px solid var(--line);
    border-radius:16px;
    padding:24px;
    min-width:0;
}
.card>h2 {
    margin-bottom:16px;
}
.stack {
    display:grid;
    gap:24px;
    align-content:start;
}
.row {
    display:flex;
    align-items:center;
    gap:12px;
    flex-wrap:wrap;
}
.overview-grid,.detail-grid {
    display:grid;
    grid-template-columns:minmax(0,1.65fr) minmax(280px,1fr);
    gap:24px;
    align-items:start;
}
.balance-card {
    padding:32px;
}
.balance-card h2 {
    font-size:14px;
    color:var(--ink2);
    font-weight:400;
    margin:0;
}
.balance {
    font-size:32px;
    line-height:38px;
    font-weight:700;
    margin:12px 0 24px;
}
.balance small {
    font-size:14px;
    margin-left:8px;
    font-weight:400;
}
.balance-card>.button {
    margin-top:16px;
    width:auto;
}
.count-chips {
    display:flex;
    gap:8px;
    flex-wrap:wrap;
    border-top:1px solid var(--line);
    padding-top:16px;
}
.tag,.badge {
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:4px 8px;
    border-radius:6px;
    font-size:12px;
    font-weight:500;
    background:var(--nabg);
    color:var(--na);
}
.status-pending {
    background:var(--warnbg);
    color:var(--warn);
}
.status-reported {
    background:var(--infobg);
    color:var(--info);
}
.status-paid {
    background:var(--okbg);
    color:var(--ok);
}
.status-cancelled,.status-refunded {
    background:var(--nabg);
    color:var(--na);
}
.tag[class*=status-]:before {
    content:"";
    width:8px;
    height:8px;
    background:currentColor;
    border-radius:50%;
    flex-shrink:0;
}
.warnbox,.infobox,.error {
    padding:16px;
    border-radius:10px;
    margin:16px 0;
}
.warnbox {
    background:var(--warnbg);
    color:var(--warn);
}
.infobox {
    background:var(--infobg);
    color:var(--info);
}
.error {
    background:var(--failbg);
    color:var(--fail);
}
.error button {
    margin-top:12px;
}
.plus {
    color:var(--ok);
}
.minus {
    color:var(--ink);
}
.expiry-text {
    color:var(--warn);
}
.table-wrap {
    width:100%;
}
table {
    border-collapse:collapse;
    width:100%;
    table-layout:fixed;
    text-align:left;
}
th {
    font-size:12px;
    font-weight:500;
    color:var(--ink2);
    padding:12px 8px;
    border-bottom:1px solid var(--line);
}
td {
    padding:12px 8px;
    border-bottom:1px solid var(--line);
    vertical-align:middle;
}
th:first-child,td:first-child {
    padding-left:0;
}
th:last-child,td:last-child {
    padding-right:0;
}
tbody tr:last-child td {
    border-bottom:0;
}
td small {
    display:block;
    font-weight:400;
}
td.num,.num {
    text-align:right;
    white-space:normal;
}
table th:nth-last-child(2),.ledger-table th:last-child {
    text-align:right;
}
.ledger-table th:first-child {
    width:35%;
}
.ledger-table th:nth-child(2) {
    width:25%;
}
.mobile-case {
    display:none;
}
.order-table th:first-child {
    width:34%;
}
.order-table th:nth-child(2) {
    width:20%;
}
.order-table th:nth-child(3) {
    width:18%;
}
.order-table th:last-child {
    width:44px;
}
.order-id {
    font-weight:600;
    text-decoration:none;
}
.chevron {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:44px;
    min-height:44px;
    border-radius:10px;
}
.chevron:hover {
    background:var(--sunken);
}
.detail-cell {
    text-align:right;
}
.empty {
    text-align:center;
    padding:40px 16px;
    display:grid;
    justify-items:center;
    gap:16px;
}
.empty>svg {
    width:80px;
    height:80px;
    color:var(--accent);
    padding:16px;
    background:var(--accent-soft);
    border-radius:20px;
}
.empty h2 {
    font-size:20px;
}
.empty p {
    max-width:480px;
}
.member-card {
    padding:64px 24px;
}
.card>.full:last-child {
    margin-top:16px;
}
fieldset {
    border:0;
    padding:0;
    margin:0;
}
legend {
    padding:0;
    margin-bottom:24px;
}
label {
    display:block;
    font-weight:600;
    margin:16px 0 8px;
}
input:not([type=radio]):not([type=checkbox]),select,textarea {
    width:100%;
    min-height:48px;
    border:2px solid var(--strong);
    border-radius:10px;
    background:var(--card);
    color:var(--ink);
    padding:10px 12px;
    font-size:16px;
}
input::placeholder,textarea::placeholder {
    color:var(--ink3);
}
textarea {
    resize:vertical;
    min-height:120px;
}
textarea.short {
    min-height:96px;
}
input[aria-invalid=true] {
    border-color:var(--fail);
}
.field-error {
    font-size:14px;
    color:var(--fail);
    margin:8px 0;
}
.choices {
    display:grid;
    gap:12px;
}
.plans {
    grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
}
.plans>.choice:last-child {
    grid-column:1/-1;
}
.choice {
    display:flex;
    align-items:flex-start;
    gap:12px;
    margin:0;
    padding:16px;
    border:1px solid var(--line);
    border-radius:12px;
    cursor:pointer;
    font-weight:400;
}
.choice:has(input:checked) {
    border-color:var(--accent);
    outline:1px solid var(--accent);
    background:var(--accent-soft);
}
.choice:has(input:focus-visible) {
    outline:2px solid var(--accent);
    outline-offset:2px;
}
.choice:has(input:disabled) {
    cursor:default;
}
.choice input[type=radio] {
    width:20px;
    height:20px;
    min-height:20px;
    margin:4px 0 0;
    flex:0 0 auto;
    accent-color:var(--accent);
}
.choice .body {
    flex:1;
}
.choice .body>* {
    display:block;
}
.choice .title,.choice .body>.title,.choice .body>.price {
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:8px;
}
.choice .title {
    font-size:16px;
    font-weight:600;
}
.choice .price {
    font-size:20px;
    font-weight:700;
    margin:8px 0;
}
.choice .list-price {
    font-size:12px;
    font-weight:400;
    color:var(--ink2);
}
.choice .off {
    font-size:12px;
    color:var(--accent);
}
.badge.promo {
    background:var(--accent-soft);
    color:var(--accent);
}
.promo-note {
    background:var(--accent-soft);
    color:var(--accent);
    padding:12px 16px;
    border-radius:10px;
    margin-bottom:16px;
}
.amount-live {
    font-size:16px;
    font-weight:600;
    margin:12px 0;
}
.purchase-grid {
    display:grid;
    grid-template-columns:minmax(0,1.65fr) minmax(280px,1fr);
    align-items:start;
    gap:24px;
}
.summary {
    position:sticky;
    top:24px;
}
.summary-total {
    border-top:1px solid var(--line);
    padding-top:24px;
    margin-top:24px;
    color:var(--ink2);
}
.total {
    font-size:24px;
    line-height:30px;
    font-weight:700;
    margin:8px 0 16px;
}
.summary .hint {
    margin-top:16px;
}
.kv {
    display:grid;
    grid-template-columns:minmax(80px,auto) minmax(0,1fr);
    gap:12px 24px;
    margin:16px 0;
}
.kv dt {
    color:var(--ink2);
    font-weight:400;
}
.kv dd {
    margin:0;
    font-weight:500;
}
.summary .kv {
    grid-template-columns:72px minmax(0,1fr);
}
.summary .kv dd {
    text-align:right;
}
.copy-row {
    display:flex;
    gap:12px;
    align-items:center;
    justify-content:space-between;
    flex-wrap:wrap;
}
.copy-row button {
    flex-shrink:0;
}
.mono {
    font-variant-numeric:tabular-nums;
}
.progress {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    list-style:none;
    padding:20px 24px;
    margin:0;
    background:var(--card);
    border:1px solid var(--line);
    border-radius:12px;
    gap:16px;
}
.progress li {
    display:flex;
    align-items:center;
    gap:12px;
    color:var(--ink2);
}
.progress small {
    display:block;
    font-size:12px;
}
.step-number {
    width:32px;
    height:32px;
    flex-shrink:0;
    display:grid;
    place-items:center;
    background:var(--sunken);
    border-radius:50%;
    font-weight:600;
}
.progress .current {
    color:var(--accent);
    font-weight:600;
}
.current .step-number {
    background:var(--accent);
    color:var(--on-accent);
}
.done .step-number {
    background:var(--accent-soft);
    color:var(--accent);
}
details {
    margin:16px 0;
}
summary {
    min-height:44px;
    padding:10px 0;
    color:var(--accent);
    cursor:pointer;
}
form>.primary {
    margin-top:24px;
}
.company-list {
    display:grid;
    gap:12px;
    margin-top:24px;
}
.company-list button {
    justify-content:space-between;
    text-align:left;
}
.company-list button[aria-current] {
    border-color:var(--accent);
    outline:1px solid var(--accent);
}
.offline {
    position:sticky;
    top:0;
    z-index:25;
    background:var(--warnbg);
    color:var(--warn);
    padding:12px 24px;
}
.authenticated .offline {
    margin-left:var(--sidebar);
}
#notice {
    position:fixed;
    z-index:60;
    bottom:24px;
    left:50%;
    transform:translateX(-50%);
    width:max-content;
    max-width:calc(100% - 32px);
    padding:16px 24px;
    border:1px solid var(--line);
    border-radius:12px;
    background:var(--ink);
    color:var(--card);
    font-size:14px;
}
.loading {
    color:var(--ink2);
}
.skeleton {
    min-height:160px;
}
.skeleton:after {
    content:"";
    display:block;
    background:var(--sunken);
    height:24px;
    margin-top:24px;
    border-radius:6px;
    width:65%;
}
dialog {
    background:var(--card);
    color:var(--ink);
    border:1px solid var(--line);
    border-radius:20px;
    padding:24px;
    width:calc(100% - 32px);
    max-width:560px;
    max-height:90dvh;
    overflow:auto;
    overscroll-behavior:contain;
}
dialog::backdrop {
    background:rgb(9 9 11 / 40%);
}
.modal-open {
    overflow:hidden;
}
.panel-head {
    display:flex;
    align-items:start;
    gap:16px;
    justify-content:space-between;
    margin-bottom:24px;
}
.panel-head h2 {
    flex:1;
}
.panel-head button {
    margin-top:-8px;
}
.login-page #content {
    max-width:1040px;
    min-height:100dvh;
    grid-template-columns:minmax(0,1fr) minmax(0,420px);
    align-items:center;
    gap:80px;
    padding:48px 32px;
}
.login-copy .brand {
    margin-bottom:40px;
}
.login-copy h1 {
    max-width:400px;
    font-size:32px;
    line-height:1.5;
    margin-bottom:24px;
}
.login-copy p {
    font-size:16px;
}
.login-card>h1 {
    font-size:20px;
    line-height:26px;
    margin-bottom:8px;
}
.login-card form {
    margin-top:24px;
}
.login-card>p:last-child {
    font-size:12px;
    margin-top:24px;
}
.login-card>.full {
    margin-top:12px;
}
@media(min-width:1688px) {
    .authenticated #content {
        margin-right:auto;
        margin-left:calc(var(--sidebar) + (100vw - var(--sidebar) - 1440px)/2);
    }
}
@media(max-width:1279px) {
    .purchase-grid,.detail-grid,.overview-grid {
        grid-template-columns:minmax(0,1.4fr) minmax(260px,1fr);
    }
}
@media(max-width:1023px) {
    .sidebar {
        position:static;
        width:auto;
        padding:0;
        border:0;
    }
    .sidebar>.brand,.sidebar>.nav-label,.sidebar>footer {
        display:none;
    }
    .tabs {
        position:fixed;
        bottom:0;
        left:0;
        right:0;
        z-index:30;
        grid-template-columns:repeat(3,minmax(0,1fr));
        gap:0;
        padding:8px 4px calc(8px + env(safe-area-inset-bottom));
        background:var(--card);
        border-top:1px solid var(--line);
    }
    .tabs a {
        flex-direction:column;
        gap:4px;
        padding:4px;
        font-size:12px;
        min-height:48px;
    }
    .authenticated #content {
        margin:0;
        padding:24px;
        max-width:none;
    }
    .topbar {
        margin:0;
        padding:12px 24px;
        gap:16px;
        min-height:64px;
    }
    .topbar>.brand {
        display:flex;
        flex-shrink:0;
    }
    .company {
        text-align:right;
    }
    .company-switch {
        min-width:0;
        display:inline-flex;
        justify-content:flex-end;
    }
    .desktop-account {
        display:none;
    }
    .company strong,.company-switch {
        font-size:12px;
    }
    .company {
        min-width:0;
    }
    .company-switch {
        gap:6px;
        max-width:100%;
    }
    .company-switch>span:first-child {
        min-width:0;
        overflow:hidden;
        text-overflow:ellipsis;
        white-space:nowrap;
    }
    .switch-label {
        flex-shrink:0;
        padding:2px 8px;
        border-radius:999px;
        background:var(--accent-soft);
        font-size:11px;
    }
    .mobile-account {
        display:flex;
        align-items:center;
        justify-content:space-between;
        gap:16px;
        margin:0 24px;
        padding:16px 0 24px;
        border-top:1px solid var(--line);
    }
    #chrome {
        display:contents;
    }
    .authenticated {
        display:flex;
        flex-direction:column;
    }
    .topbar {
        order:-2;
    }
    .sidebar {
        order:2;
    }
    .mobile-account {
        order:3;
    }
    .authenticated #content {
        order:0;
        width:100%;
    }
    .authenticated .mobile-account {
        margin-bottom:0;
    }
    .authenticated.financial .mobile-account {
        padding-bottom:calc(96px + env(safe-area-inset-bottom));
    }
    .authenticated .offline {
        margin:0;
        order:-3;
    }
    #notice {
        bottom:96px;
    }
    .overview-grid,.detail-grid,.purchase-grid {
        grid-template-columns:1fr;
    }
    .summary {
        position:static;
    }
    .login-page #content {
        gap:40px;
        grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    }
}
@media(max-width:639px) {
    .wrap,.authenticated #content {
        padding:24px 16px;
    }
    .topbar {
        padding:12px 16px;
    }
    .topbar .brand {
        gap:8px;
    }
    .topbar .brand svg {
        width:24px;
        height:24px;
    }
    .card {
        padding:20px;
    }
    .balance-card {
        padding:24px;
    }
    .plans {
        grid-template-columns:1fr;
    }
    .progress {
        padding:16px 12px;
        gap:8px;
    }
    .progress li {
        align-items:flex-start;
        gap:8px;
        font-size:12px;
    }
    .step-number {
        width:24px;
        height:24px;
    }
    .progress small {
        font-size:12px;
    }
    .kv {
        grid-template-columns:88px minmax(0,1fr);
        gap:12px;
    }
    .copy-row {
        align-items:flex-start;
    }
    .table-wrap th,.table-wrap td {
        padding:12px 4px;
        font-size:12px;
    }
    .table-wrap th:first-child,.table-wrap td:first-child {
        padding-left:0;
    }
    .order-table th:first-child {
        width:36%;
    }
    .order-table th:nth-child(2) {
        width:26%;
    }
    .order-table th:nth-child(3),.order-points {
        display:none;
    }
    .order-table th:last-child {
        width:36px;
    }
    .chevron {
        width:36px;
        min-width:36px;
        min-height:44px;
    }
    .order-table .tag {
        padding:4px;
        font-size:12px;
        gap:4px;
    }
    .order-table .tag:before {
        width:6px;
        height:6px;
    }
    .ledger-table th:first-child {
        width:48%;
    }
    .ledger-table th:nth-child(2),.case-cell {
        display:none;
    }
    .mobile-case {
        display:block;
        color:var(--ink2);
        font-size:12px;
    }
    .ledger-table th:nth-child(3) {
        width:26%;
    }
    .mobile-account {
        margin:0 16px;
    }
    .login-page #content {
        grid-template-columns:1fr;
        min-height:auto;
        gap:32px;
        padding:32px 16px;
        max-width:480px;
    }
    .login-copy .brand {
        margin-bottom:24px;
    }
    .login-copy h1 {
        font-size:24px;
        line-height:1.5;
        margin-bottom:16px;
    }
    .login-copy p {
        font-size:14px;
    }
    dialog {
        padding:20px;
        max-height:90dvh;
    }
    .panel-head {
        gap:8px;
    }
}
@media(prefers-reduced-motion:reduce) {
    * {
        transition:none!important;
        animation:none!important;
    }
}
.authenticated:not(.financial) .tabs,.authenticated:not(.financial) .nav-label {
    display:none;
}

/* 購買進度沿用原型的輕量分隔線，不將未付款步驟標為完成。 */
.progress:not(.order-progress) { padding:0; border:0; background:transparent; }
.progress:not(.order-progress) li { border-bottom:1px solid var(--strong); padding-bottom:16px; }
.progress:not(.order-progress) .current { border-color:var(--accent); }
@media (max-width:639px) {
    .order-table th:last-child { width:44px; }
    .chevron { width:44px; min-width:44px; }
}
.plans .hint {
    font-size:13px;
}

/* 月付方案（2026-11-17） */
.monthly-plans {
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(240px, 1fr));
    gap:16px;
}
.monthly-plan h2 {
    display:flex;
    align-items:center;
    gap:8px;
}
.monthly-plan .total {
    margin:8px 0 0;
}
.card-form {
    display:grid;
    gap:6px;
    margin:16px 0;
}
.ecpay-slot {
    min-height:220px;
    margin:4px 0;
}
.ecpay-slot iframe {
    max-width:100%;
}
.tp-row {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px;
}
.tp-label {
    display:block;
    font-size:14px;
    font-weight:600;
    color:var(--ink2);
    margin:6px 0 4px;
}
.tp-field {
    height:44px;
    padding:10px 12px;
    border:1px solid var(--strong);
    border-radius:10px;
    background:var(--card);
}
.tp-field.tappay-field-focus {
    border-color:var(--accent);
    outline:2px solid var(--accent-soft);
}
.agree {
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:4px;
    margin:12px 0;
    font-size:14px;
}
.agree input {
    width:18px;
    height:18px;
    margin-right:4px;
}
.actions {
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin-top:16px;
}
.bill-row {
    display:flex;
    justify-content:space-between;
    gap:12px;
    padding:12px 0;
    border-top:1px solid var(--line);
}
.bill-row p {
    margin:2px 0 0;
}
.bill-amount {
    display:grid;
    justify-items:end;
    gap:4px;
    white-space:nowrap;
}
.login-copy .brand {
    font-size:18px;
}
.login-copy .brand svg {
    width:44px;
    height:44px;
}

/* 2026-11-17 改版：目前公司、選公司頁、點數分列、購買精靈 */
.company {
    display:flex;
    align-items:center;
    gap:16px;
}
.company-name {
    display:grid;
    min-width:0;
}
.company-name strong {
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.company-label {
    font-size:12px;
    color:var(--ink3);
}
.button.company-switch {
    flex-shrink:0;
    border:1px solid var(--accent);
    color:var(--accent);
    background:var(--card);
}
.company-picker {
    display:grid;
    gap:12px;
    max-width:720px;
}
.company-option {
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:16px;
    text-align:left;
    padding:20px 24px;
    min-height:72px;
    background:var(--card);
    border:1px solid var(--line);
    border-radius:14px;
}
.company-option:hover {
    border-color:var(--accent);
    background:var(--accent-soft);
}
.company-option[aria-current] {
    border-color:var(--accent);
}
.company-option-name {
    display:grid;
    gap:4px;
    font-size:16px;
}
.company-option-tags {
    display:flex;
    gap:8px;
    flex-shrink:0;
}
.point-parts {
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    gap:12px 16px;
    margin:0;
    padding-top:16px;
    border-top:1px solid var(--line);
}
.point-parts dt {
    display:grid;
    gap:2px;
}
.point-parts dt small {
    color:var(--ink3);
}
.point-parts dd {
    margin:0;
    font-weight:600;
    text-align:right;
    font-variant-numeric:tabular-nums;
}
.balance-card .actions .button {
    width:auto;
}
.meter-wrap {
    margin:16px 0 8px;
}
.meter {
    height:10px;
    border-radius:999px;
    background:var(--sunken);
    overflow:hidden;
}
.meter span {
    display:block;
    height:100%;
    background:var(--accent);
    border-radius:999px;
}
.meter-wrap .hint {
    margin-top:8px;
}
.rules {
    margin:0;
    padding-left:20px;
    display:grid;
    gap:8px;
    color:var(--ink2);
}
.attention {
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:12px 16px;
}
.attention p {
    margin:0;
    flex:1 1 240px;
}
.card h2 .tag,.card h2 .badge {
    margin-left:8px;
    vertical-align:middle;
}
.wizard-progress {
    grid-template-columns:repeat(5,minmax(0,1fr));
}
.step-card h2:focus {
    outline:0;
}
.step-body {
    display:grid;
    gap:12px;
}
.step-body > .choices + .hint {
    margin-top:4px;
}
.step-nav {
    display:flex;
    justify-content:space-between;
    gap:12px;
    margin-top:24px;
    padding-top:16px;
    border-top:1px solid var(--line);
}
.step-nav .primary {
    margin-left:auto;
}
.kind-choices .choice {
    padding:20px;
}
.kind-choices .title {
    font-size:17px;
}
.confirm-kv {
    margin-top:0;
}
@media(max-width:639px) {
    .wizard-progress li > span:last-child {
        display:none;
    }
    .wizard-progress li.current > span:last-child {
        display:block;
    }
    .company-label {
        display:none;
    }
    .company-option {
        padding:16px;
        flex-wrap:wrap;
    }
    .step-nav {
        flex-direction:column-reverse;
    }
    .step-nav button {
        width:100%;
    }
}

/* 2026-11-17：目前公司、切換公司、登出移到左側下方；電腦版不顯示頂列 */
.topbar {
    display:none;
}
.sidebar footer.account {
    display:grid;
    gap:4px;
}
.account-company {
    overflow-wrap:anywhere;
}
.account-actions {
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin-top:12px;
}
.account-actions .button {
    flex:1 1 auto;
}
@media(max-width:1023px) {
    .sidebar footer.account {
        display:none;
    }
    .topbar {
        display:flex;
        justify-content:space-between;
    }
    .topbar-company {
        min-width:0;
        font-size:14px;
        overflow:hidden;
        text-overflow:ellipsis;
        white-space:nowrap;
    }
    .mobile-account .account-actions {
        margin-top:0;
        flex-wrap:nowrap;
    }
    .mobile-account .account-actions .button {
        flex:0 0 auto;
    }
}
