/* ============================================================
   眸耕知识库智能客服 · 前台个人中心
   与首页共用 chat.css 的色板与顶栏，本文件只补个人中心版式。
   作者：阳润科技
   ============================================================ */

.account-body {
    background: #f5f5f0;
}

.account-body .site-head { margin-bottom: 0; }

.account-body .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    min-width: 0;
}

.account-body .brand-copy { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.account-body .brand-copy strong { font-size: 14px; color: var(--green-deep); letter-spacing: .04em; }
.account-body .brand-copy small { color: var(--muted); font-size: 10px; white-space: nowrap; }

.account-main {
    padding: 24px 0 40px;
}

.account-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding: 30px 32px 28px;
    border-radius: 26px;
    background:
        radial-gradient(420px 260px at 88% 8%, rgba(216, 163, 60, .2) 0%, rgba(216, 163, 60, 0) 70%),
        linear-gradient(145deg, #17482f 0%, #0f3524 58%, #0c2b1d 100%);
    color: #f6f2e5;
    box-shadow: 0 22px 44px rgba(15, 53, 36, .18);
    overflow: hidden;
}

.account-hero::after {
    content: "";
    position: absolute;
    right: -70px;
    bottom: -96px;
    width: 230px;
    height: 230px;
    border: 1px solid rgba(244, 233, 205, .16);
    border-radius: 50%;
    pointer-events: none;
}

.account-hero-copy { position: relative; z-index: 1; min-width: 0; }
.account-kicker {
    margin: 0 0 8px;
    color: #d8a33c;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .18em;
}
.account-hero h1 {
    margin: 0;
    color: #fffdf5;
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.15;
    letter-spacing: -.03em;
}
.account-hero #account-subtitle {
    margin: 10px 0 0;
    max-width: 540px;
    color: rgba(246, 242, 229, .78);
    font-size: 13px;
    line-height: 1.75;
}

.account-hero-side {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 0 0 auto;
    position: relative;
    z-index: 1;
    padding-bottom: 4px;
}
.account-hero-seal {
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    border: 1px solid rgba(244, 233, 205, .38);
    border-radius: 50%;
    color: #f4e9cd;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .08em;
    transform: rotate(-8deg);
}
.account-hero-line { width: 34px; height: 1px; background: rgba(244, 233, 205, .35); }
.account-hero-note { color: rgba(246, 242, 229, .62); font-size: 10px; line-height: 1.7; letter-spacing: .02em; }

.account-guest {
    margin-top: 20px;
    padding: 46px 28px 42px;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: #fff;
    text-align: center;
    box-shadow: var(--shadow);
}
.guest-badge {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin: 0 auto 16px;
    border-radius: 17px;
    background: var(--green-soft);
    color: var(--green-deep);
}
.account-guest h1 { margin: 0 0 8px; color: var(--green-deep); font-size: 22px; letter-spacing: -.02em; }
.account-guest p { max-width: 540px; margin: 0 auto; color: var(--muted); font-size: 13px; line-height: 1.8; }
.guest-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 24px 0 0; }
.guest-note { margin-top: 18px !important; color: #8a998d !important; font-size: 11px !important; }

.account-workspace {
    display: grid;
    grid-template-columns: 286px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
    margin-top: 0;
}

.account-side,
.account-content {
    border: 1px solid #dfe6dd;
    border-radius: 2px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(20, 51, 35, .04);
}

.account-side {
    min-height: 560px;
    padding: 24px 20px 16px;
}

.account-identity {
    display: grid;
    justify-items: start;
    gap: 4px;
    padding-bottom: 20px;
}

.account-avatar {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin-bottom: 10px;
    background: var(--green-deep);
    color: #fffdf5;
    font-size: 28px;
    font-weight: 600;
    line-height: 1;
}

.account-side h1 {
    margin: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    color: var(--ink);
    font-family: Georgia, "Songti SC", "SimSun", serif;
    font-size: 23px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -.02em;
}

.account-uid {
    margin: 0;
    color: #7d8a80;
    font-size: 11px;
    line-height: 1.6;
}

.account-uid b {
    color: var(--ink-soft);
    font-weight: 600;
}

.account-side-note {
    margin: 8px 0 0;
    color: #7d8a80;
    font-size: 11px;
    line-height: 1.7;
}

.account-tabs {
    display: grid;
    gap: 2px;
    padding-top: 12px;
    border-top: 1px dashed #dfe6dd;
}

.account-tab {
    position: relative;
    width: 100%;
    padding: 12px 4px 12px 14px;
    border: 0;
    border-left: 2px solid transparent;
    background: transparent;
    color: #526458;
    font: inherit;
    font-size: 12px;
    line-height: 1.5;
    text-align: left;
    cursor: pointer;
    transition: background .16s ease, color .16s ease, border-color .16s ease;
}

.account-tab:hover {
    background: #f7faf4;
    color: var(--green-deep);
}

.account-tab.is-active {
    border-left-color: var(--green);
    color: var(--green-deep);
    font-weight: 600;
}

.account-tab:focus-visible {
    outline: 2px solid #b8d3b7;
    outline-offset: 2px;
}

.account-content {
    min-height: 560px;
    padding: 30px 34px 32px;
}

.account-tab-panel {
    display: grid;
    gap: 22px;
}

.account-tab-panel[hidden] {
    display: none;
}

.panel-head {
    padding-bottom: 16px;
    border-bottom: 1px solid #e7ece6;
}

.panel-head h2 {
    margin: 0;
    color: var(--ink);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -.02em;
}

.panel-head p {
    margin: 6px 0 0;
    color: #7b8a7f;
    font-size: 11px;
    line-height: 1.7;
}

.account-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
.stat-card {
    padding: 20px 22px 18px;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(20, 51, 35, .05);
}
.stat-card.stat-points {
    border-color: #ecd9ae;
    background: linear-gradient(165deg, #fffdf6 0%, #fbf1d9 100%);
}
.stat-label { display: block; color: var(--muted); font-size: 11px; letter-spacing: .04em; }
.stat-card strong {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin: 8px 0 6px;
    color: var(--green-deep);
    font-size: 34px;
    line-height: 1;
    letter-spacing: -.04em;
    font-variant-numeric: tabular-nums;
}
.stat-card small { font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.stat-card em { display: block; color: #819086; font-size: 10px; font-style: normal; }

.account-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.42fr) minmax(0, .92fr);
    gap: 18px;
    align-items: start;
}

.checkin-card,
.profile-card,
.knowledge-card,
.tickets-card,
.logs-card {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.tickets-card { margin-top: 0; }

.ticket-list {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.ticket-item {
    padding: 14px 16px 12px;
    border: 1px solid #e7ede7;
    border-radius: 14px;
    background: #fbfdf9;
}

.ticket-item.is-replied { border-color: #c9dfcb; background: #f5fbf4; }
.ticket-item.is-waiting { border-color: #ecd9ae; background: #fffdf6; }
.ticket-item.is-closed { background: #f7f8f6; }

.ticket-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.ticket-head strong {
    color: var(--green-deep);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
}

.ticket-status {
    flex: 0 0 auto;
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--sand-soft);
    color: #91671a;
    font-size: 10px;
    font-weight: 600;
}

.ticket-item.is-replied .ticket-status { background: var(--green-soft); color: var(--green-deep); }
.ticket-item.is-closed .ticket-status { background: #edf0ec; color: #75837a; }

.ticket-content {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.75;
    word-break: break-word;
}

.ticket-reply {
    margin-top: 10px;
    padding: 10px 12px;
    border-left: 3px solid var(--green);
    border-radius: 0 10px 10px 0;
    background: #fff;
}

.ticket-reply span {
    display: block;
    color: var(--green);
    font-size: 10px;
    font-weight: 600;
}

.ticket-reply p {
    margin: 5px 0 0;
    color: var(--ink);
    font-size: 12px;
    line-height: 1.75;
    word-break: break-word;
}

.ticket-reply em {
    display: block;
    margin-top: 5px;
    color: #8b998f;
    font-size: 10px;
    font-style: normal;
    text-align: right;
}

.ticket-wait {
    margin: 8px 0 0;
    color: #91671a;
    font-size: 11px;
}

.ticket-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 9px;
    color: #8b998f;
    font-size: 10px;
}

.tickets-empty {
    margin: 0;
    padding: 16px 0;
    color: #8b998f;
    font-size: 12px;
    line-height: 1.8;
}

.card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}
.card-head h2 { margin: 0; color: var(--green-deep); font-size: 17px; letter-spacing: -.01em; }
.card-head p { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.checkin-badge {
    flex: 0 0 auto;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--sand-soft);
    color: #91671a;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.week-strip {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 7px;
    margin: 22px 0 20px;
}
.week-day {
    display: grid;
    justify-items: center;
    gap: 5px;
    padding: 10px 2px 9px;
    border: 1px solid #e4ebe4;
    border-radius: 12px;
    background: #fafcf8;
    color: var(--muted);
}
.week-day span { font-size: 10px; line-height: 1; }
.week-day b {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #eef3ec;
    color: #6f8074;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
}
.week-day.is-checked { border-color: #c8ddca; background: #eef6ec; color: var(--green); }
.week-day.is-checked b { background: var(--green); color: #fff; }
.week-day.is-today { border-color: #d8a33c; background: #fffaf0; color: #8a6217; }
.week-day.is-today span { font-weight: 700; }

.checkin-action { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.checkin-btn {
    min-width: 150px;
    min-height: 44px;
    padding: 0 20px;
    border: 0;
    border-radius: 13px;
    background: var(--green);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .02em;
    transition: background .18s ease, transform .18s ease;
}
.checkin-btn:hover { background: var(--green-deep); transform: translateY(-1px); }
.checkin-btn:disabled { background: #a9b8ad; cursor: default; transform: none; }
.checkin-status { color: var(--green); font-size: 11px; }
.checkin-status.is-error { color: var(--danger); }
.checkin-tip { margin: 14px 0 0; color: #86958a; font-size: 10px; line-height: 1.7; }

.profile-list { display: grid; gap: 0; margin: 18px 0 18px; }
.profile-list > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid #edf1ec;
}
.profile-list > div:last-child { border-bottom: 0; }
.profile-list dt { color: var(--muted); font-size: 11px; flex: 0 0 auto; }
.profile-list dd { margin: 0; color: var(--ink); font-size: 12px; font-weight: 500; text-align: right; word-break: break-all; }
.profile-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.profile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
    border-top: 1px solid #e7ece6;
    border-left: 1px solid #e7ece6;
}

.profile-cell {
    min-height: 88px;
    padding: 15px 16px;
    border-right: 1px solid #e7ece6;
    border-bottom: 1px solid #e7ece6;
    box-sizing: border-box;
}

.profile-cell--wide {
    grid-column: 1 / -1;
}

.profile-cell dt {
    color: #7b8a7f;
    font-size: 11px;
    line-height: 1.5;
}

.profile-cell dd {
    margin: 8px 0 0;
    color: var(--ink);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.55;
    word-break: break-all;
}

.profile-tip {
    margin: 0;
    color: #7b8a7f;
    font-size: 11px;
    line-height: 1.75;
}

.account-security {
    margin: 24px 0 16px;
    padding-top: 20px;
    border-top: 1px solid #edf1ec;
}

.security-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.security-head h2 {
    margin: 0;
    color: var(--green-deep);
    font-family: Georgia, "Songti SC", "SimSun", serif;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -.01em;
}

.security-head p {
    margin: 6px 0 0;
    color: #7b8a7f;
    font-size: 11px;
    line-height: 1.75;
}

.security-list {
    display: grid;
    gap: 10px;
}

.security-item {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 18px;
    border: 1px solid #e3e9e1;
    background: #fbfcf9;
}

.security-item--danger {
    border-color: #efd9d4;
    background: #fffaf8;
}

.security-main {
    min-width: 0;
}

.security-label {
    display: inline-block;
    margin-bottom: 7px;
    padding: 2px 7px;
    border: 1px solid #dbe4d8;
    background: #f2f6ee;
    color: var(--green);
    font-size: 10px;
    line-height: 1.5;
}

.security-item--danger .security-label {
    border-color: #efd9d4;
    background: #fff1ed;
    color: #a0442f;
}

.security-main strong {
    display: block;
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
}

.security-main p {
    margin: 5px 0 0;
    color: #7b8a7f;
    font-size: 11px;
    line-height: 1.7;
}

.security-main p b {
    color: var(--green-deep);
    font-weight: 600;
}

.security-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 0 0 auto;
}

.security-item .account-btn {
    flex: 0 0 auto;
}

.security-form {
    display: grid;
    flex: 0 0 100%;
    gap: 8px;
    width: 100%;
    margin-top: 4px;
    padding-top: 14px;
    border-top: 1px dashed #dfe6dd;
}

.security-form label,
.security-field span {
    color: #6f7f72;
    font-size: 11px;
}

.security-form input,
.security-field input,
.cancel-notice-file {
    min-height: 38px;
    padding: 9px 11px;
    border: 1px solid var(--line-strong);
    background: #fff;
    color: var(--ink);
    font-family: inherit;
    font-size: 12px;
    outline: none;
}

.security-form input:focus,
.security-field input:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 2px rgba(23, 72, 47, .1);
}

.security-form-actions,
.account-modal-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.security-status {
    color: var(--green);
    font-size: 11px;
    line-height: 1.6;
}

.security-status.is-error {
    color: var(--danger);
}

.account-btn-danger {
    border: 1px solid #d9a59a;
    background: #fff;
    color: #a03a27;
}

.account-btn-danger:hover {
    border-color: #c97664;
    background: #fff2ee;
}

.account-btn-danger:disabled {
    border-color: #e7cfc9;
    color: #b78f86;
    background: #faf5f3;
    cursor: not-allowed;
}

.account-modal-open {
    overflow: hidden;
}

.account-modal[hidden],
.security-form[hidden],
.security-actions [hidden] {
    display: none !important;
}

.voice-pref-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.voice-pref-field {
    color: #6f7f72;
    font-size: 11px;
}

.voice-pref-select {
    min-height: 38px;
    min-width: 210px;
    padding: 8px 10px;
    border: 1px solid var(--line-strong);
    border-radius: 9px;
    background: #fff;
    color: var(--ink);
    font-family: inherit;
    font-size: 12px;
}

.voice-pref-select:disabled,
.voice-pref-actions .account-btn:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.voice-pref-note {
    flex: 0 0 100%;
    margin: 0;
    color: #7b8a7f;
    font-size: 11px;
    line-height: 1.7;
}

@media (max-width: 640px) {
    .voice-pref-actions,
    .voice-pref-select {
        width: 100%;
    }

    .voice-pref-actions .account-btn {
        justify-content: center;
    }
}

.account-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
    padding: 20px;
}

.account-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(9, 24, 17, .58);
}

.account-modal-card {
    position: relative;
    z-index: 1;
    width: min(580px, 94vw);
    max-height: min(86vh, 720px);
    overflow: auto;
    padding: 22px 24px 20px;
    border: 1px solid #d8e1d5;
    background: #fff;
    box-shadow: 0 24px 70px rgba(9, 24, 17, .28);
}

.account-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.account-modal-head h2 {
    margin: 0;
    color: var(--green-deep);
    font-family: Georgia, "Songti SC", "SimSun", serif;
    font-size: 21px;
    font-weight: 600;
}

.account-modal-head p {
    margin: 5px 0 0;
    color: #7b8a7f;
    font-size: 11px;
    line-height: 1.7;
}

.account-modal-close {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 1px solid #dfe6dd;
    background: #fff;
    color: #6f7f72;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.account-modal-close:hover {
    border-color: var(--green);
    color: var(--green-deep);
}

.cancel-notice {
    padding: 14px 16px;
    border: 1px solid #efd9d4;
    background: #fff8f5;
    color: #724b42;
    font-size: 11px;
    line-height: 1.8;
}

.cancel-notice p {
    max-height: 190px;
    margin: 0;
    overflow: auto;
    padding-right: 4px;
    white-space: pre-line;
}

.cancel-notice-file {
    display: inline-flex;
    align-items: center;
    min-height: 0;
    margin-top: 9px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #a0442f;
    font-size: 11px;
    text-decoration: underline;
}

.security-field {
    display: grid;
    gap: 7px;
    margin-top: 13px;
}

.cancel-agree {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 13px;
    color: #6f7f72;
    font-size: 11px;
    line-height: 1.7;
}

.cancel-agree input {
    flex: 0 0 auto;
    margin-top: 3px;
}

.cancel-hint {
    margin: 12px 0 0;
    color: #7b8a7f;
    font-size: 11px;
    line-height: 1.7;
}

.cancel-hint.is-warn {
    color: #a0442f;
}

.account-modal-actions {
    justify-content: flex-end;
    margin-top: 18px;
}

.account-modal-actions .account-btn {
    min-width: 108px;
    justify-content: center;
}
.account-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.account-btn-main { background: var(--green-deep); color: #fff; }
.account-btn-main:hover { background: #0b2c1c; }
.account-btn-ghost { border: 1px solid var(--line-strong); background: #fff; color: var(--green-deep); }
.account-btn-ghost:hover { border-color: #a9c1ac; background: var(--green-soft); }

.knowledge-card { margin-top: 0; }
.knowledge-count {
    flex: 0 0 auto;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--green-soft);
    color: var(--green-deep);
    font-size: 11px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
.knowledge-lock {
    margin-top: 16px;
    padding: 16px 18px;
    border: 1px dashed #cfdccf;
    border-radius: 15px;
    background: #f8fbf6;
}
.knowledge-lock strong { display: block; color: var(--green-deep); font-size: 13px; }
.knowledge-lock p { margin: 6px 0 0; color: var(--muted); font-size: 11px; line-height: 1.75; }
.knowledge-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
}
.knowledge-note { color: #8b998f; font-size: 10px; }
.knowledge-quota {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 302px;
    gap: 12px 22px;
    margin-top: 16px;
    padding: 14px 16px 12px;
    border: 1px solid #dbe8d8;
    border-radius: 15px;
    background: linear-gradient(180deg, #f5faf2 0%, #fbfdf9 100%);
}
.knowledge-quota-main { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.knowledge-quota-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.knowledge-quota-head strong { color: var(--green-deep); font-size: 12px; letter-spacing: .01em; }
.knowledge-code-balance {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 0 8px;
    border: 1px solid #cfe2d1;
    border-radius: 999px;
    background: #fff;
    color: var(--green-deep);
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.knowledge-ask-note {
    color: #4d6b53;
    font-size: 10.5px;
    font-weight: 500;
    line-height: 1.7;
}
.knowledge-code-shop {
    align-self: flex-start;
    color: #2f6b3d;
    font-size: 10px;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid #b9d4bb;
    padding-bottom: 1px;
}
.knowledge-code-shop:hover { color: var(--green-deep); border-bottom-color: var(--green-deep); }
.knowledge-code-form {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}
.knowledge-code-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.knowledge-code-label {
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 10px;
    white-space: nowrap;
}
.knowledge-code-row input {
    flex: 1 1 auto;
    min-width: 0;
    box-sizing: border-box;
    padding: 8px 11px;
    border: 1px solid #d8e3d8;
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 12px;
    letter-spacing: .05em;
    text-transform: uppercase;
}
.knowledge-code-row input:focus {
    border-color: #9dc7a2;
    outline: none;
    box-shadow: 0 0 0 3px rgba(47, 107, 61, .1);
}
.knowledge-code-row .account-btn {
    flex: 0 0 auto;
    min-width: 72px;
    min-height: 36px;
    padding: 0 14px;
}
.knowledge-code-captcha {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    min-width: 0;
}
.knowledge-code-captcha[hidden] { display: none; }
.knowledge-code-captcha img {
    flex: 0 0 auto;
    width: 96px;
    height: 32px;
    border: 1px solid #d8e3d8;
    border-radius: 7px;
    background: #f6f3e9;
    object-fit: cover;
}
.knowledge-code-captcha input {
    flex: 1 1 72px;
    min-width: 0;
    box-sizing: border-box;
    padding: 7px 10px;
    border: 1px solid #d8e3d8;
    border-radius: 9px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.knowledge-code-captcha input:focus {
    border-color: #9dc7a2;
    outline: none;
    box-shadow: 0 0 0 3px rgba(47, 107, 61, .1);
}
.knowledge-code-refresh {
    flex: 0 0 auto;
    padding: 0;
    border: 0;
    background: none;
    color: #2f6b3d;
    font: inherit;
    font-size: 10px;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}
.knowledge-code-status {
    min-height: 17px;
    color: #2f6b3d;
    font-size: 10.5px;
    line-height: 1.55;
}
.knowledge-code-status.is-error {
    color: #a0442f;
}
.knowledge-code-tip {
    grid-column: 1 / -1;
    margin: 0;
    padding-top: 8px;
    border-top: 1px dashed #dfe9de;
    color: #85988a;
    font-size: 10px;
    line-height: 1.7;
}
@media (max-width: 720px) {
    .knowledge-quota { grid-template-columns: 1fr; gap: 10px; padding: 13px 14px 11px; }
    .knowledge-code-tip { grid-column: auto; }
    .knowledge-code-row { flex-wrap: wrap; }
    .knowledge-code-label { flex: 1 0 100%; }
    .knowledge-code-row input { flex: 1 1 100%; }
    .knowledge-code-row .account-btn { flex: 1 1 100%; }
}
.knowledge-editor {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
    margin: 16px 0 18px;
    padding: 16px;
    border: 1px solid #e4ece3;
    border-radius: 16px;
    background: #fbfdf9;
}
.knowledge-field { display: grid; gap: 6px; min-width: 0; }
.knowledge-field--wide { grid-column: 1 / -1; }
.knowledge-field label { color: var(--muted); font-size: 11px; }
.knowledge-field-help { color: #7a8f7d; font-size: 10px; line-height: 1.6; }
.knowledge-field input,
.knowledge-field textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid #d8e3d8;
    border-radius: 11px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 12px;
    line-height: 1.7;
    resize: vertical;
}
.knowledge-field input:focus,
.knowledge-field textarea:focus { outline: 2px solid #b8d3b7; outline-offset: 1px; border-color: #9dbb9d; }
.knowledge-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.knowledge-status { color: #597a5d; font-size: 11px; }
.knowledge-list { display: grid; gap: 10px; margin-top: 16px; }
.knowledge-pager { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; }
.knowledge-pager[hidden] { display: none; }
.knowledge-page-btn {
    flex: 0 0 auto;
    min-width: 68px;
    padding: 8px 10px;
    border: 1px solid #c7d8c5;
    border-radius: 10px;
    background: #fff;
    color: #2f5a38;
    font: inherit;
    font-size: 12px;
    cursor: pointer;
}
.knowledge-page-btn:hover { border-color: #9dbb9d; background: #f4f9f2; }
.knowledge-page-btn:disabled { cursor: default; opacity: .45; }
.knowledge-page-info { flex: 1 1 auto; min-width: 0; text-align: center; color: #597a5d; font-size: 11px; white-space: nowrap; }
@media (max-width: 720px) {
    .knowledge-pager { flex-wrap: wrap; }
    .knowledge-page-info { order: -1; flex: 1 0 100%; white-space: normal; }
    .knowledge-page-btn { flex: 1 1 0; min-width: 0; }
}
.knowledge-empty { margin: 0; padding: 18px 0; color: #8b998f; font-size: 12px; line-height: 1.8; }
.knowledge-item {
    padding: 14px 16px 12px;
    border: 1px solid #e7ede7;
    border-radius: 14px;
    background: #fff;
}
.knowledge-item-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}
.knowledge-item-head strong { color: var(--green-deep); font-size: 13px; line-height: 1.5; }
.knowledge-item-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.knowledge-tag {
    padding: 3px 8px;
    border-radius: 999px;
    background: #f1f6ee;
    color: #56745b;
    font-size: 10px;
}
.knowledge-tag--public { background: #e4f4e3; color: #2f6b39; }
.knowledge-tag--private { background: #f3f1ea; color: #7d7462; }
.knowledge-item p {
    margin: 8px 0 0;
    color: #5d7161;
    font-size: 11px;
    line-height: 1.75;
    white-space: pre-line;
}
.knowledge-item-actions { display: flex; flex: 0 0 auto; gap: 6px; }
.knowledge-mini {
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid #dbe6da;
    border-radius: 9px;
    background: #fff;
    color: #46624d;
    font: inherit;
    font-size: 10px;
    cursor: pointer;
}
.knowledge-mini:hover { background: var(--green-soft); }
.knowledge-mini--danger { border-color: #ebd6d0; color: #9a5546; }
.knowledge-mini--danger:hover { background: #fbf2ef; }

.knowledge-category-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 16px;
    padding: 10px 12px;
    border: 1px solid #e6ede4;
    border-radius: 13px;
    background: #fbfdf9;
}
.knowledge-category-chips { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.knowledge-chip {
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid #dce7da;
    border-radius: 999px;
    background: #fff;
    color: #55725b;
    font: inherit;
    font-size: 11px;
    cursor: pointer;
}
.knowledge-chip:hover { border-color: #b8d0b7; }
.knowledge-chip.is-active { border-color: var(--green); background: var(--green-deep); color: #fff; }
.knowledge-chip b { margin-left: 4px; font-size: 10px; font-weight: 500; opacity: .8; }

.knowledge-subtabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.knowledge-subtab {
    min-height: 32px; padding: 0 14px; border: 1px solid #dce7da; border-radius: 999px;
    background: #fff; color: #55725b; font: inherit; font-size: 12px; cursor: pointer;
}
.knowledge-subtab.is-active { border-color: var(--green); background: var(--green-deep); color: #fff; }
.official-pack-panel { margin-top: 16px; }
.official-pack-list { display: grid; gap: 12px; }
.official-pack-card {
    padding: 16px; border: 1px solid #e3ecdf; border-radius: 16px; background: #fbfdf9;
}
.official-pack-head { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.official-pack-head strong { display: block; color: var(--green-deep); font-size: 14px; line-height: 1.5; }
.official-pack-head p { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.official-pack-meta { margin-top: 6px; color: #6b8070; font-size: 10px; }
.official-pack-badge {
    flex: 0 0 auto; padding: 4px 10px; border-radius: 999px; background: var(--green-soft);
    color: var(--green-deep); font-size: 10px; font-weight: 600; white-space: nowrap;
}
.official-pack-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.official-pack-detail { margin-top: 12px; }
.official-item-list { display: grid; gap: 10px; }
.official-item {
    display: flex; gap: 10px; padding: 12px; border: 1px solid #e7ede7; border-radius: 13px; background: #fff;
}
.official-item input { margin-top: 3px; accent-color: var(--green); }
.official-item span { min-width: 0; }
.official-item strong { display: block; color: var(--green-deep); font-size: 12px; }
.official-item em { display: block; margin-top: 3px; color: #6b8070; font-size: 10px; font-style: normal; }
.official-item p { margin: 6px 0 0; color: #43544a; font-size: 11px; line-height: 1.7; white-space: pre-line; }
.official-item small { display: inline-block; margin-top: 6px; color: #8b998f; font-size: 10px; }
@media (max-width: 560px) {
    .official-pack-head { flex-direction: column; gap: 8px; }
    .official-pack-badge { align-self: flex-start; }
}

.category-manager {
    margin-top: 12px;
    padding: 14px 16px;
    border: 1px solid #e3ecdf;
    border-radius: 14px;
    background: #f8fbf5;
}
.category-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.category-form label { color: var(--muted); font-size: 11px; }
.category-form input {
    flex: 1 1 200px;
    min-height: 36px;
    box-sizing: border-box;
    padding: 8px 10px;
    border: 1px solid #d6e2d5;
    border-radius: 9px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 12px;
}
.category-form input:focus { outline: 2px solid #b8d3b7; outline-offset: 1px; border-color: #9dbb9d; }
.category-form .account-btn { min-height: 36px; padding: 0 14px; border-radius: 9px; }
.category-status { color: #597a5d; font-size: 11px; }
.category-tip { margin: 8px 0 0; color: #8b998f; font-size: 10px; line-height: 1.7; }
.category-list { display: grid; gap: 6px; margin-top: 10px; }
.category-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid #e7ede7;
    border-radius: 10px;
    background: #fff;
}
.category-row span { min-width: 0; color: var(--ink); font-size: 12px; }
.category-row span b { margin-left: 6px; color: #8b998f; font-size: 10px; font-weight: 400; }
.category-row-actions { display: flex; flex: 0 0 auto; gap: 6px; }
.category-empty { margin: 0; padding: 6px 0; color: #8b998f; font-size: 11px; }

.knowledge-field select {
    width: 100%;
    box-sizing: border-box;
    min-height: 39px;
    padding: 8px 12px;
    border: 1px solid #d8e3d8;
    border-radius: 11px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 12px;
}
.knowledge-field select:focus { outline: 2px solid #b8d3b7; outline-offset: 1px; border-color: #9dbb9d; }

.knowledge-main-publish {
    gap: 8px;
    padding: 12px 14px;
    border: 1px dashed #d5e3d3;
    border-radius: 13px;
    background: #f8fbf6;
}
.knowledge-check { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-size: 12px; cursor: pointer; }
.knowledge-check input { width: 16px; height: 16px; margin: 0; accent-color: #5f8f63; }
.knowledge-main-category-box { display: grid; gap: 7px; }
.knowledge-main-category-label { color: #597a5d; font-size: 11px; }
.knowledge-main-category-list { display: flex; flex-wrap: wrap; gap: 7px; }
.knowledge-main-category-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border: 1px solid #d9e5d7;
    border-radius: 999px;
    background: #fff;
    color: #45624a;
    font: inherit;
    font-size: 11px;
    line-height: 1.4;
    cursor: pointer;
}
.knowledge-main-category-chip[aria-pressed="true"] { border-color: #7da581; background: #eef6ec; color: #335a39; }
.knowledge-main-category-chip.is-rejected { border-color: #ecd2c8; color: #a45d42; }
.knowledge-main-status { color: #597a5d; font-size: 11px; line-height: 1.7; }
.knowledge-main-status.is-error { color: #b34b3f; }
.knowledge-tag--main { background: #eef6ec; color: #3d6b44; }
.knowledge-main-note { margin: 0 0 8px; padding: 8px 10px; border-left: 3px solid #d7e6d4; border-radius: 8px; background: #f8fbf6; color: #5d7461; font-size: 11px; line-height: 1.7; }

.space-card { margin-top: 0; }
.space-state {
    flex: 0 0 auto;
    padding: 6px 10px;
    border-radius: 999px;
    background: #fdf3ed;
    color: #a45d42;
    font-size: 11px;
    font-weight: 600;
}
.space-state.is-public { background: var(--green-soft); color: var(--green-deep); }
.space-lock {
    margin-top: 16px;
    padding: 16px 18px;
    border: 1px dashed #cfdccf;
    border-radius: 15px;
    background: #f8fbf6;
}
.space-lock strong { display: block; color: var(--green-deep); font-size: 13px; }
.space-lock p { margin: 6px 0 0; color: var(--muted); font-size: 11px; line-height: 1.75; }
.space-body { display: grid; gap: 16px; margin-top: 16px; }
.space-setting {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 15px 17px;
    border: 1px solid #e4ece3;
    border-radius: 14px;
    background: #fbfdf9;
}
.space-setting strong { display: block; color: var(--green-deep); font-size: 13px; }
.space-setting p { margin: 4px 0 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.space-switch { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 8px; cursor: pointer; }
.space-switch input { position: absolute; opacity: 0; pointer-events: none; }
.space-switch span {
    position: relative;
    width: 42px;
    height: 24px;
    border-radius: 999px;
    background: #dbe4da;
    transition: background .16s ease;
}
.space-switch span::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(20, 40, 28, .2);
    transition: transform .16s ease;
}
.space-switch input:checked + span { background: var(--green); }
.space-switch input:checked + span::after { transform: translateX(18px); }
.space-switch input:focus-visible + span { outline: 2px solid #b8d3b7; outline-offset: 2px; }
.space-switch em { color: #6c7f70; font-size: 11px; font-style: normal; }
.space-layout {
    margin: 0;
    padding: 0;
    border: 0;
    display: grid;
    gap: 8px;
}
.space-layout legend { margin-bottom: 8px; color: var(--muted); font-size: 11px; }
.space-layout label {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 10px 12px;
    border: 1px solid #e4ece3;
    border-radius: 11px;
    background: #fff;
    cursor: pointer;
}
.space-layout label:has(input:checked) { border-color: #a9c4aa; background: #f6faf2; }
.space-layout input { margin: 3px 0 0; accent-color: var(--green-deep); }
.space-layout span { display: grid; gap: 2px; }
.space-layout strong { color: var(--green-deep); font-size: 12px; font-weight: 600; }
.space-layout em { color: #718071; font-size: 10px; font-style: normal; line-height: 1.6; }
.space-welcome-row { display: grid; gap: 6px; }
.space-welcome-row label { color: #5c7561; font-size: 11px; }
.space-welcome-row textarea {
    width: 100%;
    min-height: 72px;
    padding: 9px 10px;
    border: 1px solid #e4ece3;
    border-radius: 11px;
    background: #fff;
    color: #2f3d33;
    font-size: 12px;
    line-height: 1.7;
    resize: vertical;
    box-sizing: border-box;
}
.space-welcome-row textarea::placeholder { color: #a3afa5; }
.space-welcome-row textarea:focus-visible { outline: 2px solid #b8d3b7; border-color: #a9c4aa; }
.space-welcome-note { margin: 0; color: #8b998f; font-size: 10px; line-height: 1.7; }
.space-industry-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.space-industry-row select {
    min-height: 32px;
    padding: 0 9px;
    border: 1px solid #dce8da;
    border-radius: 8px;
    background: #fff;
    color: #35543b;
    font: inherit;
    font-size: 11px;
}
.space-industry-row .account-btn { min-height: 32px; }
.space-links { display: grid; gap: 8px; }
.space-link-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 11px;
    border: 1px solid #e6ede4;
    border-radius: 11px;
    background: #fff;
}
.space-link-row span { flex: 0 0 auto; color: #5c7561; font-size: 11px; }
.space-link-row a {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    color: var(--green-deep);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.space-link-row button {
    flex: 0 0 auto;
    min-height: 28px;
    padding: 0 9px;
    border: 1px solid #dbe6da;
    border-radius: 8px;
    background: #fff;
    color: #46624d;
    font: inherit;
    font-size: 10px;
    cursor: pointer;
}
.space-link-row button:hover { background: var(--green-soft); }
.space-links-note { margin: 0; color: #8b998f; font-size: 10px; line-height: 1.7; }

.space-service {
    display: grid;
    gap: 12px;
    padding: 14px 15px 15px;
    border: 1px solid #dfe9dc;
    border-radius: 14px;
    background: linear-gradient(180deg, #f8fbf4 0%, #ffffff 55%);
}
.space-service-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}
.space-service-head strong { display: block; color: var(--green-deep); font-size: 13px; }
.space-service-head p { margin: 4px 0 0; color: #718071; font-size: 11px; line-height: 1.7; }
.service-state {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    background: #edf3ea;
    color: #527055;
    font-size: 10px;
    font-weight: 600;
}
.service-state.is-open { background: #e4f4e6; color: #2f7a43; }
.service-state.is-open::before {
    content: "";
    width: 6px;
    height: 6px;
    margin-right: 5px;
    border-radius: 50%;
    background: #42a45c;
}
.service-state.is-off { background: #f3f0e8; color: #8b7a4e; }
.service-modes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
}
.service-modes label {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    padding: 9px 10px;
    border: 1px solid #e2ebe0;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
}
.service-modes label:has(input:checked) { border-color: #a9c4aa; background: #f4faf1; }
.service-modes input { margin: 2px 0 0; accent-color: var(--green-deep); }
.service-modes span { display: grid; gap: 1px; min-width: 0; }
.service-modes strong { color: var(--green-deep); font-size: 11px; }
.service-modes em { color: #7c8c7f; font-size: 9px; font-style: normal; line-height: 1.45; }
.service-editor {
    display: grid;
    gap: 10px;
    padding-top: 2px;
}
.service-timezone-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: #63756a;
    font-size: 11px;
}
.service-timezone-row label { color: #5c7561; font-size: 11px; }
.service-timezone-row select {
    min-height: 32px;
    padding: 0 9px;
    border: 1px solid #dce8da;
    border-radius: 8px;
    background: #fff;
    color: #35543b;
    font: inherit;
    font-size: 11px;
}
.service-timezone-row span { flex: 1 1 180px; color: #8b998f; font-size: 10px; line-height: 1.6; }
.service-rows { display: grid; gap: 7px; }
.service-day {
    display: grid;
    gap: 6px;
    padding: 9px 10px;
    border: 1px solid #e6ede4;
    border-radius: 10px;
    background: #fff;
}
.service-day-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.service-day-head strong { color: #3f5d46; font-size: 11px; }
.service-add,
.service-remove {
    min-height: 24px;
    padding: 0 7px;
    border: 1px solid #dbe6da;
    border-radius: 7px;
    background: #fff;
    color: #527055;
    font: inherit;
    font-size: 9px;
    cursor: pointer;
}
.service-add:hover { background: #f2f8ef; }
.service-remove { color: #8a5a4d; border-color: #ecdcd3; }
.service-remove:hover { background: #fbf3ef; }
.service-day-body { display: grid; gap: 6px; }
.service-range {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}
.service-range input[type="time"] {
    min-height: 30px;
    padding: 0 7px;
    border: 1px solid #dce8da;
    border-radius: 7px;
    background: #fbfdf9;
    color: #35543b;
    font: inherit;
    font-size: 11px;
}
.service-range span { color: #8b998f; font-size: 10px; }
.service-empty { color: #9aa79b; font-size: 10px; line-height: 1.8; }
.service-tip-row {
    display: grid;
    gap: 5px;
}
.service-tip-row span { color: #5c7561; font-size: 11px; }
.service-tip-row input {
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid #dce8da;
    border-radius: 9px;
    background: #fff;
    color: #35543b;
    font: inherit;
    font-size: 11px;
}
.service-tip-row input::placeholder { color: #a3afa5; }
.service-hint { margin: 0; color: #8b998f; font-size: 10px; line-height: 1.7; }
.space-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.space-status { color: #597a5d; font-size: 11px; }
.knowledge-status.is-error,
.category-status.is-error,
.space-status.is-error { color: var(--danger); }
.space-empty {
    padding: 14px 16px;
    border: 1px dashed #cfdccf;
    border-radius: 12px;
    background: #f8fbf6;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.7;
}

.logs-card { margin-top: 0; }
.point-logs { display: grid; gap: 0; margin: 16px 0 0; padding: 0; list-style: none; }
.point-log {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid #edf1ec;
}
.point-log:last-child { border-bottom: 0; }
.log-main { min-width: 0; }
.log-main strong { display: block; color: var(--ink); font-size: 12px; font-weight: 500; }
.log-main span { display: block; margin-top: 2px; color: #8b998f; font-size: 10px; }
.log-change { flex: 0 0 auto; font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.log-change.is-plus { color: var(--green); }
.log-change.is-minus { color: var(--danger); }
.log-balance { display: block; margin-top: 2px; color: #8b998f; font-size: 10px; font-weight: 400; text-align: right; }
.logs-empty { padding: 18px 0; color: #8b998f; font-size: 12px; list-style: none; }

.account-body .site-foot { margin-top: 26px; }
.account-body .foot-main { padding-top: 26px; }
.account-body .foot-bottom { border-top: 1px solid #e4ebe4; padding: 14px 8px 22px; }

/* 套餐升级 */
.plan-card { margin-top: 0; }
.plan-current {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 14px;
    margin-top: 16px;
    padding: 18px;
    border: 1px solid #dbe7dc;
    border-radius: 14px;
    background: #f8fbf6;
}
.plan-current strong { color: var(--green-deep); font-size: 18px; }
.plan-current .plan-price { color: var(--green-deep); font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.plan-current .plan-price-free { font-size: 15px; }
.plan-current p { flex: 1 0 100%; margin: 2px 0 0; color: #7b8a7f; font-size: 11px; line-height: 1.7; }
.plan-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 16px;
}
.plan-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 18px;
    border: 1px solid #dfe8df;
    border-radius: 14px;
    background: #fff;
}
.plan-item.is-current { border-color: #a8c9ac; background: #fbfdf9; }
.plan-item-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.plan-item-head strong { color: var(--ink); font-size: 15px; }
.plan-badge { padding: 3px 8px; border-radius: 999px; background: var(--green-soft); color: var(--green-deep); font-size: 10px; font-weight: 600; }
.plan-item-price { color: var(--green-deep); font-size: 24px; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
.plan-item-price small { margin-left: 2px; color: var(--muted); font-size: 11px; font-weight: 500; }
.plan-item-price em { color: #8b998f; font-size: 14px; font-style: normal; }
.plan-item-quota { min-height: 34px; margin: 0; color: #7b8a7f; font-size: 11px; line-height: 1.7; }
.plan-buy { width: 100%; min-height: 38px; margin-top: auto; }
.plan-months-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid #edf2ed; }
.plan-months-row label { color: var(--muted); font-size: 11px; }
.plan-months-row select { min-height: 34px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 9px; background: #fff; color: var(--ink); font-size: 12px; }
.plan-grid-status { color: #7b8a7f; font-size: 10px; line-height: 1.6; }
.plan-grid-status.is-error { color: var(--danger); }
.plan-order-line { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: #f7faf6; color: #6f7f73; font-size: 11px; }
.plan-order-line b { color: var(--green-deep); font-size: 13px; }
.plan-methods { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.plan-method {
    min-height: 34px;
    padding: 0 14px;
    border: 1px solid var(--line-strong);
    border-radius: 9px;
    background: #fff;
    color: var(--green-deep);
    font-size: 12px;
    font-weight: 600;
}
.plan-method.is-active { border-color: var(--green-deep); background: var(--green-deep); color: #fff; }
.plan-qr-line { display: grid; grid-template-columns: 164px minmax(0, 1fr); gap: 18px; align-items: center; margin-top: 16px; }
.plan-qr-line img { width: 164px; height: 164px; border: 1px solid #e1eae1; border-radius: 12px; object-fit: contain; background: #fff; }
.plan-qr-line strong { display: block; color: var(--ink); font-size: 14px; }
.plan-qr-line p { margin: 6px 0 0; color: #7b8a7f; font-size: 11px; line-height: 1.7; }
.plan-note, .plan-contact { margin: 14px 0 0; color: #6f7f73; font-size: 11px; line-height: 1.75; }
.plan-contact:empty, .plan-note:empty { display: none; }
.plan-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.plan-status { color: #7b8a7f; font-size: 11px; }
.plan-status.is-error { color: var(--danger); }
.plan-orders { display: grid; gap: 10px; margin-top: 14px; }
.plan-order-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 10px 16px;
    align-items: center;
    padding: 14px 16px;
    border: 1px solid #e3ebe3;
    border-left: 3px solid #cfdccf;
    border-radius: 10px;
    background: #fff;
}
.plan-order-item.is-pending { border-left-color: #d9a441; }
.plan-order-item.is-paid { border-left-color: var(--green); }
.plan-order-item.is-canceled { opacity: .72; }
.plan-order-main strong { display: block; color: var(--ink); font-size: 13px; }
.plan-order-main span { display: block; margin-top: 3px; color: #8b998f; font-size: 10px; }
.plan-order-side { text-align: right; }
.plan-order-side strong { display: block; color: var(--green-deep); font-size: 15px; font-variant-numeric: tabular-nums; }
.plan-order-side span { display: block; margin-top: 3px; color: #7b8a7f; font-size: 10px; }
.plan-order-actions { display: flex; gap: 6px; }
.plan-order-remark { grid-column: 1 / -1; margin: 0; color: #8b998f; font-size: 10px; line-height: 1.6; }
.plan-empty { padding: 16px 0; color: #8b998f; font-size: 12px; }
.account-btn:disabled { opacity: .55; cursor: not-allowed; }

.alerts-card { margin-top: 0; }
.alerts-subnav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0 0 16px;
    padding: 4px;
    overflow-x: auto;
    border: 1px solid #dbe7da;
    border-radius: 999px;
    background: #f2f7f1;
    scrollbar-width: thin;
}
.alerts-subtab {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    padding: 8px 16px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #5d7163;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    white-space: nowrap;
}
.alerts-subtab:hover { color: var(--green-deep); background: #e6efe4; }
.alerts-subtab:focus-visible { outline: 2px solid #b8d3b7; outline-offset: 2px; }
.alerts-subtab.is-active { color: #fff; background: var(--green); box-shadow: 0 6px 14px rgba(31, 91, 63, .16); }
.alerts-subtab.is-active:hover { color: #fff; background: var(--green); }
.alerts-subcount {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: #dce9da;
    color: var(--green-deep);
    font-size: 10px;
    font-weight: 700;
}
.alerts-subtab.is-active .alerts-subcount { background: #fff; color: var(--green); }
.alerts-subcount[hidden] { display: none; }
.alerts-section[hidden] { display: none !important; }
.alerts-page-status { margin: -8px 0 12px; padding: 8px 11px; border-radius: 9px; background: #f4f7f2; }
.alerts-page-status.is-error { background: #fff5f1; }
.alerts-page-status[hidden] { display: none; }
.alerts-switch { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 8px; cursor: pointer; }
.alerts-switch input { position: absolute; opacity: 0; pointer-events: none; }
.alerts-switch span {
    position: relative;
    width: 42px;
    height: 24px;
    border-radius: 999px;
    background: #dbe4da;
    transition: background .16s ease;
}
.alerts-switch span::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(20, 40, 28, .2);
    transition: transform .16s ease;
}
.alerts-switch input:checked + span { background: var(--green); }
.alerts-switch input:checked + span::after { transform: translateX(18px); }
.alerts-switch input:focus-visible + span { outline: 2px solid #b8d3b7; outline-offset: 2px; }
.alerts-switch em { color: #6c7f70; font-size: 11px; font-style: normal; }

.alerts-settings {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 18px;
    margin-top: 16px;
    padding: 16px 17px;
    border: 1px solid #e4ece3;
    border-radius: 14px;
    background: #fbfdf9;
}
.alerts-field { display: grid; gap: 6px; min-width: 0; }
.alerts-field label, .alerts-label { color: #5d7163; font-size: 11px; font-weight: 600; }
.alerts-field input[type="text"], .alerts-field select,
.alerts-tools select, .alerts-feedback input {
    width: 100%;
    min-height: 36px;
    padding: 8px 11px;
    border: 1px solid #dce7db;
    border-radius: 9px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 12px;
}
.alerts-field--wide { grid-column: 1 / -1; }
.alerts-types { display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 7px 0; }
.alerts-types label { display: inline-flex; align-items: center; gap: 5px; color: #526458; font-size: 12px; font-weight: 400; cursor: pointer; }
.alerts-quiet { display: flex; align-items: center; gap: 8px; }
.alerts-quiet select { width: auto; min-width: 92px; }
.alerts-quiet span { color: #7b8a7f; font-size: 11px; }
.alerts-actions { grid-column: 1 / -1; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding-top: 2px; }
.alerts-status { color: #708175; font-size: 11px; line-height: 1.6; }
.alerts-status.is-error { color: #a34f40; }
.alerts-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.alerts-tools select { width: auto; min-width: 104px; min-height: 32px; padding: 5px 9px; }
.alerts-list { display: grid; gap: 10px; margin-top: 16px; }
.alerts-item, .alerts-followup, .alerts-history {
    padding: 14px 16px 12px;
    border: 1px solid #e7ede7;
    border-left: 3px solid #cfdccf;
    border-radius: 12px;
    background: #fbfdf9;
}
.alerts-item.is-unread { border-left-color: #d9a441; background: #fffdf6; }
.alerts-item.is-read { border-left-color: var(--green); }
.alerts-item.is-expired { opacity: .72; }
.alerts-history.is-better { border-left-color: var(--green); }
.alerts-history.is-same { border-left-color: #b9caba; }
.alerts-history.is-worse { border-left-color: #c5745e; background: #fffaf8; }
.alerts-item-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.alerts-item-head strong { min-width: 0; color: var(--green-deep); font-size: 13px; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
.alerts-type, .alerts-tag {
    flex: 0 0 auto;
    padding: 2px 8px;
    border-radius: 999px;
    background: #eef5ec;
    color: #55705a;
    font-size: 10px;
    line-height: 1.7;
}
.alerts-tag { background: #f4f6f3; color: #748176; }
.alerts-content { margin: 7px 0 0; color: #55665a; font-size: 12px; line-height: 1.75; overflow-wrap: anywhere; }
.alerts-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; margin-top: 9px; color: #8b998f; font-size: 10px; }
.alerts-meta button { margin-left: auto; }
.alerts-feedback { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.alerts-feedback input { flex: 1 1 180px; min-width: 0; }
.alerts-tip { margin: 9px 0 0; color: #8b998f; font-size: 10px; line-height: 1.6; }

.sdk-card { margin-top: 0; }
.sdk-state {
    flex: 0 0 auto;
    padding: 6px 10px;
    border-radius: 999px;
    background: #fdf3ed;
    color: #a45d42;
    font-size: 11px;
    font-weight: 600;
}
.sdk-state.is-public { background: var(--green-soft); color: var(--green-deep); }
.sdk-body { display: grid; gap: 14px; margin-top: 16px; }
.sdk-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.sdk-field { display: grid; gap: 6px; }
.sdk-field label { color: var(--muted); font-size: 11px; }
.sdk-field input,
.sdk-field textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #d8e3d8;
    border-radius: 11px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 12px;
    line-height: 1.6;
}
.sdk-field input { min-height: 39px; padding: 8px 12px; }
.sdk-field textarea {
    min-height: 86px;
    padding: 10px 12px;
    resize: vertical;
    font-family: ui-monospace, SFMono-Regular, Consolas, 'Liberation Mono', monospace;
    font-size: 11px;
}
.sdk-field input:focus,
.sdk-field textarea:focus { outline: 2px solid #b8d3b7; outline-offset: 1px; border-color: #9dbb9d; }
.sdk-copy-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: -6px; }
.sdk-copy-row .account-btn { min-height: 34px; padding: 0 12px; border-radius: 9px; }
.sdk-status { color: #597a5d; font-size: 11px; }
.sdk-status.is-error { color: #b45343; }
.sdk-preview { color: var(--green-deep); font-size: 11px; text-decoration: underline; text-underline-offset: 3px; }
.sdk-note,
.sdk-tip { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.75; }

@media (max-width: 940px) {
    .account-workspace { grid-template-columns: minmax(0, 1fr); }
    .account-side { min-height: 0; padding: 20px; }
    .account-identity {
        grid-template-columns: 54px minmax(0, 1fr);
        grid-template-rows: auto auto auto;
        column-gap: 14px;
        row-gap: 2px;
        align-items: center;
        padding-bottom: 16px;
    }
    .account-avatar { grid-row: 1 / 4; width: 54px; height: 54px; margin: 0; font-size: 25px; }
    .account-side h1 { font-size: 20px; }
    .account-side-note { margin: 0; grid-column: 2; }
    .account-tabs {
        grid-template-columns: repeat(9, minmax(0, 1fr));
        gap: 0;
        padding-top: 0;
        border-top: 1px solid #e7ece6;
    }
    .account-tab {
        padding: 11px 4px;
        border-left: 0;
        border-bottom: 2px solid transparent;
        text-align: center;
        font-size: 11px;
    }
    .account-tab.is-active { border-left: 0; border-bottom-color: var(--green); }
    .account-content { min-height: 0; padding: 26px 24px; }
    .account-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .stat-card { padding: 17px 16px 15px; }
    .stat-card strong { font-size: 28px; }
}

@media (max-width: 720px) {
    .account-body .site-shell { width: min(1180px, calc(100% - 28px)); }
    .account-body .site-head { gap: 10px; padding: 10px 12px; }
    .account-body .brand-copy small { display: none; }
    .account-body .site-nav { display: none; }
    .account-body .site-actions { margin-left: auto; }
    .account-body .site-actions .ghost-btn { display: inline-flex; }
    .account-body .online-pill { display: none; }
    .account-main { padding-top: 16px; }
    .account-guest { padding: 36px 20px 32px; }
    .account-side { padding: 16px; }
    .account-content { padding: 20px 16px; }
    .account-tab-panel { gap: 18px; }
    .account-tabs { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .account-tab { padding: 10px 4px; font-size: 10px; }
    .panel-head h2 { font-size: 18px; }
    .account-stats { gap: 9px; }
    .stat-card { border-radius: 2px; padding: 15px 12px 13px; }
    .stat-label { font-size: 10px; }
    .stat-card strong { font-size: 24px; margin: 7px 0 5px; }
    .stat-card em { font-size: 9px; line-height: 1.5; }
    .knowledge-editor { grid-template-columns: minmax(0, 1fr); padding: 13px; }
    .knowledge-field--wide { grid-column: auto; }
    .knowledge-category-bar { align-items: flex-start; }
    .category-form { align-items: stretch; }
    .category-form input { flex-basis: 100%; }
    .space-setting { flex-direction: column; align-items: flex-start; }
    .space-link-row { flex-wrap: wrap; }
    .space-link-row a { order: 3; flex-basis: 100%; }
    .space-service { padding: 13px 12px 14px; }
    .space-service-head { flex-direction: column; gap: 8px; }
    .service-modes { grid-template-columns: minmax(0, 1fr); }
    .service-timezone-row { align-items: flex-start; flex-direction: column; }
    .service-timezone-row span { flex-basis: auto; }
    .service-range input[type="time"] { flex: 1 1 90px; }
    .knowledge-item-head { flex-direction: column; }
    .knowledge-item-actions { align-self: flex-end; }
    .week-strip { gap: 5px; }
    .week-day { border-radius: 10px; padding: 9px 1px 8px; }
    .week-day span { font-size: 9px; }
    .week-day b { width: 20px; height: 20px; font-size: 10px; }
    .checkin-action { width: 100%; }
    .checkin-btn { width: 100%; }
    .plan-grid { grid-template-columns: minmax(0, 1fr); }
    .plan-qr-line { grid-template-columns: minmax(0, 1fr); }
    .plan-qr-line img { width: 100%; max-width: 220px; height: auto; aspect-ratio: 1 / 1; }
    .plan-order-item { grid-template-columns: minmax(0, 1fr); }
    .plan-order-side { text-align: left; }
    .plan-order-actions { flex-wrap: wrap; }
    .alerts-settings { grid-template-columns: minmax(0, 1fr); padding: 13px; }
    .alerts-field--wide { grid-column: auto; }
    .alerts-quiet { flex-wrap: wrap; }
    .alerts-feedback input { flex-basis: 100%; }
    .alerts-meta button { margin-left: 0; }
    .alerts-subnav { gap: 2px; padding: 4px; border-radius: 14px; }
    .alerts-subtab { min-height: 34px; padding: 7px 11px; font-size: 12px; }
    .alerts-subcount { min-width: 17px; height: 17px; font-size: 9px; }
    .security-item { flex-direction: column; gap: 12px; }
    .security-item .account-btn,
    .security-actions { width: 100%; }
    .security-actions { flex-direction: column; }
    .security-item .account-btn { justify-content: center; }
    .account-modal { padding: 12px; align-items: end; }
    .account-modal-card { width: 100%; max-height: 92vh; padding: 18px 16px 16px; }
    .account-modal-actions { flex-direction: column-reverse; }
    .account-modal-actions .account-btn { width: 100%; }
}

@media (max-width: 460px) {
    .account-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .account-stats { grid-template-columns: minmax(0, 1fr); }
    .stat-card { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0 10px; }
    .stat-card strong { margin: 0; font-size: 28px; grid-row: span 2; }
    .stat-card em { grid-column: 1; }
    .profile-grid { grid-template-columns: minmax(0, 1fr); }
    .profile-cell--wide { grid-column: auto; }
    .point-log { align-items: flex-start; }
}

.binding-badge {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 9px;
    border: 1px solid #e7d9b6;
    border-radius: 99px;
    background: #fbf6e8;
    color: #8b6a23;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.binding-soon {
    display: grid;
    justify-items: center;
    gap: 10px;
    margin-top: 18px;
    padding: 46px 24px;
    border: 1px dashed #d9e4d6;
    border-radius: 16px;
    background: #fbfdf9;
    text-align: center;
}

.binding-soon-icon {
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #e8f1e6;
    color: #2e6b46;
}

.binding-soon h3 { margin: 0; color: var(--ink); font-size: 17px; }
.binding-soon p { max-width: 440px; margin: 0; color: #7b8b7f; font-size: 12px; line-height: 1.8; }
.binding-soon .account-btn { margin-top: 4px; }

.ai-alert {
    margin-bottom: 14px;
    padding: 12px 14px;
    border: 1px solid #f0d7a8;
    border-radius: 12px;
    background: #fffaf0;
    color: #8a5a12;
    font-size: 13px;
    line-height: 1.7;
}

.ai-visitor-note {
    border-color: #cfe2c8;
    background: #f3f9f0;
    color: #355c3d;
}

.ai-visitor-config {
    margin: -2px 0 16px;
    padding: 14px 16px 15px;
    border: 1px solid #dce8d7;
    border-radius: 12px;
    background: #fff;
}

.ai-visitor-config-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 12px;
    margin-bottom: 11px;
}

.ai-visitor-config-head strong {
    color: #24412c;
    font-size: 14px;
}

.ai-visitor-config-head span {
    color: #79877b;
    font-size: 12px;
    line-height: 1.6;
}

.ai-visitor-config-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.ai-visitor-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.ai-visitor-field > span {
    color: #526156;
    font-size: 12px;
}

.ai-visitor-field input {
    width: 100%;
    height: 38px;
    padding: 0 10px;
    border: 1px solid #d6e1d3;
    border-radius: 9px;
    background: #fbfdfa;
    color: #24352a;
    font-size: 13px;
    outline: none;
    box-sizing: border-box;
}

.ai-visitor-field input:focus {
    border-color: #6f9c74;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(90, 139, 99, .12);
}

.ai-visitor-config-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    margin-top: 12px;
}

.ai-visitor-status {
    color: #5b6b5e;
    font-size: 12px;
    line-height: 1.5;
}

.ai-visitor-status.is-error {
    color: #b54a42;
}

@media (max-width: 720px) {
    .ai-visitor-config-grid {
        grid-template-columns: 1fr;
    }
}

.ai-subtabs {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 5px;
    border: 1px solid #e1e9dd;
    border-radius: 14px;
    background: #f6f9f3;
    overflow-x: auto;
    scrollbar-width: none;
}

.ai-subtabs::-webkit-scrollbar {
    display: none;
}

.ai-subtab {
    flex: 1 1 88px;
    min-width: 0;
    padding: 9px 8px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #5d7063;
    font: inherit;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
    cursor: pointer;
    transition: background .16s ease, color .16s ease, box-shadow .16s ease;
}

.ai-subtab:hover {
    background: #eaf2e6;
    color: #235337;
}

.ai-subtab.is-active {
    background: #2e6b46;
    color: #fff;
    box-shadow: 0 4px 12px rgba(38, 88, 57, .18);
}

.ai-subtab:focus-visible {
    outline: 2px solid #a9c9ad;
    outline-offset: 2px;
}

.ai-subpanel {
    display: grid;
    gap: 22px;
}

.ai-subpanel[hidden] {
    display: none;
}

.ai-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.ai-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    border: 1px solid #e6ede3;
    border-radius: 12px;
    background: #fbfdf9;
}

.ai-stat span { color: #7b8b7f; font-size: 11px; }
.ai-stat strong { color: #235337; font-size: 16px; overflow-wrap: anywhere; }

.ai-inline-note {
    margin: 8px 0 0;
    color: #7b8b7f;
    font-size: 12px;
    line-height: 1.7;
}

.ai-switch-list { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }

.ai-switch-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 14px;
    border: 1px solid #e6ede3;
    border-radius: 12px;
    background: #fff;
}

.ai-switch-row strong { display: block; color: var(--ink); font-size: 14px; }
.ai-switch-row p { margin: 4px 0 0; color: #7b8b7f; font-size: 12px; line-height: 1.6; }

.ai-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: none;
    padding: 6px 10px;
    border: 1px solid #d8e3d4;
    border-radius: 999px;
    background: #f7fbf4;
    color: #3c6a4d;
    font-size: 12px;
    cursor: pointer;
}

.ai-toggle input { accent-color: #2e6b46; }
.ai-toggle:has(input:disabled) { opacity: .55; cursor: not-allowed; }

.ai-vector-box,
.ai-fallback-box {
    padding: 12px 14px;
    border: 1px dashed #dbe6d7;
    border-radius: 12px;
    background: #fbfdf9;
}

.ai-vector-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ai-vector-line span { color: #63756a; font-size: 12px; line-height: 1.7; }

.ai-progress { margin-top: 10px; }
.ai-progress-bar { height: 6px; overflow: hidden; border-radius: 999px; background: #e6ede3; }
.ai-progress-bar i { display: block; width: 0; height: 100%; background: #3f8a5b; transition: width .25s ease; }
.ai-progress span { display: block; margin-top: 5px; color: #7b8b7f; font-size: 11px; }

.ai-fallback-box { margin-top: 2px; }
.ai-mode-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.ai-mode-tabs label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    border: 1px solid #dbe6d7;
    border-radius: 999px;
    background: #fff;
    color: #446553;
    font-size: 12px;
    cursor: pointer;
}
.ai-mode-tabs label[hidden] { display: none !important; }
.ai-mode-tabs input { accent-color: #2e6b46; }

.ai-field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 10px; }
.ai-field label { color: #55695c; font-size: 12px; }
.ai-field input,
.ai-field select {
    width: 100%;
    box-sizing: border-box;
    padding: 9px 11px;
    border: 1px solid #d8e3d4;
    border-radius: 9px;
    background: #fff;
    color: var(--ink);
    font-size: 13px;
    outline: none;
}
.ai-field input:focus,
.ai-field select:focus { border-color: #7fae8d; box-shadow: 0 0 0 3px rgba(63, 138, 91, .12); }
.ai-field input:disabled { background: #f3f6f1; color: #8a978f; }

.ai-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; }

.ai-package-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.ai-package {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px;
    border: 1px solid #dfe9db;
    border-radius: 14px;
    background: linear-gradient(180deg, #fff 0%, #fbfdf9 100%);
}
.ai-package-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.ai-package-head strong { color: #235337; font-size: 14px; }
.ai-package-head span { color: #b4692b; font-size: 14px; font-weight: 700; }
.ai-package-tokens { color: #2e6b46; font-size: 24px; font-weight: 800; line-height: 1; }
.ai-package-tokens small { font-size: 11px; font-weight: 500; color: #7b8b7f; }
.ai-package p { margin: 0; color: #7b8b7f; font-size: 12px; line-height: 1.6; flex: 1; }
.ai-package .account-btn { margin-top: 2px; }

.ai-order-list { display: flex; flex-direction: column; gap: 9px; margin-top: 12px; }
.ai-order-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 11px 12px;
    border: 1px solid #e6ede3;
    border-radius: 11px;
    background: #fff;
}
.ai-order-main { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 170px; }
.ai-order-main strong { color: var(--ink); font-size: 13px; }
.ai-order-main span { color: #8a978f; font-size: 11px; }
.ai-order-money { display: flex; flex-direction: column; gap: 2px; text-align: right; }
.ai-order-money b { color: #235337; font-size: 13px; }
.ai-order-money span { color: #b4692b; font-size: 11px; }
.ai-order-badge {
    flex: none;
    padding: 4px 8px;
    border-radius: 999px;
    background: #fff4e6;
    color: #a2631f;
    font-size: 11px;
}
.ai-order-badge.is-paid { background: #eaf5ec; color: #276c43; }
.ai-order-badge.is-cancel { background: #f1f3f2; color: #78857d; }
.ai-order-actions { display: flex; gap: 6px; }

.ai-missed { margin-top: 14px; }
.ai-missed-title { margin: 0 0 8px; color: #55695c; font-size: 12px; font-weight: 600; }
.ai-missed ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.ai-missed li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 11px;
    border: 1px solid #ecefe9;
    border-radius: 9px;
    background: #fbfdf9;
}
.ai-missed li span { color: #3c4c42; font-size: 12px; overflow-wrap: anywhere; }
.ai-missed li b { flex: none; color: #9a6a2a; font-size: 11px; font-weight: 600; }

.ai-log-list { margin: 12px 0 0; padding: 0 4px 0 0; list-style: none; display: flex; flex-direction: column; gap: 7px; max-height: 520px; overflow-y: auto; overscroll-behavior: contain; }
.ai-log-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 11px;
    border-bottom: 1px solid #eff3ed;
}
.ai-log-row > div:first-child { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ai-log-row strong { color: var(--ink); font-size: 12px; }
.ai-log-row span { color: #8a978f; font-size: 11px; overflow-wrap: anywhere; }
.ai-log-meta { flex: none; text-align: right; display: flex; flex-direction: column; gap: 2px; }
.ai-log-meta em { font-style: normal; font-size: 12px; font-weight: 700; }
.ai-log-meta em.is-plus { color: #276c43; }
.ai-log-meta em.is-minus { color: #b4692b; }

@media (max-width: 720px) {
    .binding-soon { padding: 34px 16px; gap: 8px; }
    .binding-soon p { max-width: none; }
    .ai-subtabs { border-radius: 12px; }
    .ai-subtab { flex-basis: 74px; min-width: 0; padding: 8px 6px; font-size: 10px; }
    .ai-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ai-vector-line { align-items: flex-start; flex-direction: column; }
    .ai-switch-row { align-items: flex-start; }
    .ai-order-row { align-items: flex-start; }
    .ai-order-money { text-align: left; }
    .ai-log-row { align-items: flex-start; flex-direction: column; }
    .ai-log-meta { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
    .checkin-btn, .account-btn { transition: none; }
}

/* 设备绑定：个人中心 panel-device */
.device-slot-summary {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 18px;
    padding: 14px 18px;
    border: 1px solid #d9e8de;
    border-radius: 16px;
    background: linear-gradient(135deg, #f3faf6, #ffffff);
}

.device-slot-summary > div {
    display: flex;
    align-items: baseline;
    gap: 8px;
    white-space: nowrap;
}

.device-slot-summary span {
    font-size: 13px;
    color: #6c7b71;
}

.device-slot-summary strong {
    font-size: 22px;
    color: #20593c;
}

.device-slot-summary p {
    flex: 1;
    min-width: 180px;
    margin: 0;
    font-size: 12px;
    line-height: 1.7;
    color: #7c8880;
}

.device-slot-summary p.is-error {
    color: #b3261e;
}

.device-slot-summary a {
    flex: none;
    font-size: 13px;
    color: #2d6b45;
    text-decoration: none;
}

.device-slot-summary a:hover {
    text-decoration: underline;
}

.device-bind-box {
    margin-top: 18px;
    padding: 16px 18px;
    border: 1px solid var(--line, #e4e9e4);
    border-radius: 16px;
    background: var(--card, #ffffff);
}

.device-bind-field > label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink, #1f2a24);
}

.device-bind-row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.device-code-input {
    width: 190px;
    padding: 10px 12px;
    border: 1px solid #d6ddd6;
    border-radius: 12px;
    background: #fff;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 6px;
    text-align: center;
    color: var(--ink, #1f2a24);
}

.device-code-input:focus {
    outline: none;
    border-color: #3c8f68;
    box-shadow: 0 0 0 3px rgba(60, 143, 104, 0.12);
}

.device-bind-note {
    margin: 12px 0 0;
    font-size: 12px;
    line-height: 1.7;
    color: #7c8880;
}

.device-bind-note.is-error {
    color: #b3261e;
}

.device-help-link {
    margin: 8px 0 0;
    font-size: 13px;
}

.device-help-link a {
    color: #2d6b45;
    text-decoration: none;
}

.device-help-link a:hover {
    text-decoration: underline;
}

.device-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.device-card {
    padding: 14px 16px;
    border: 1px solid var(--line, #e4e9e4);
    border-radius: 14px;
    background: var(--card, #ffffff);
}

.device-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.device-card-head strong {
    font-size: 15px;
    color: var(--ink, #1f2a24);
    overflow-wrap: anywhere;
}

.device-state {
    flex: none;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1.7;
}

.device-state.is-online {
    color: #1d6b41;
    background: #e7f5ec;
}

.device-state.is-offline {
    color: #8a6a35;
    background: #fbf3e2;
}

.device-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin-top: 8px;
    font-size: 12px;
    color: #7c8880;
}

.device-card-actions {
    display: flex;
    gap: 16px;
    margin-top: 10px;
}

.device-link {
    padding: 0;
    border: 0;
    background: none;
    font-size: 13px;
    color: #2f7d5b;
    cursor: pointer;
}

.device-link:hover {
    text-decoration: underline;
}

.device-link-danger {
    color: #b3261e;
}

.device-rename {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.device-rename-input {
    flex: 1 1 180px;
    min-width: 0;
    padding: 8px 10px;
    border: 1px solid #d6ddd6;
    border-radius: 10px;
    font-size: 13px;
    color: var(--ink, #1f2a24);
}

.device-wake-state {
    color: #57645b;
}

.device-wake-editor {
    margin-top: 10px;
    padding: 10px 12px;
    border: 1px solid #dfe7df;
    border-radius: 12px;
    background: #f8fbf8;
}

.device-wake-hint {
    margin: 0 0 8px;
    font-size: 12px;
    line-height: 1.7;
    color: #627067;
}

.device-wake-hint.is-error {
    margin: 8px 0 0;
    color: #b3261e;
}

.device-wake-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.device-wake-select {
    flex: 1 1 180px;
    min-width: 0;
    padding: 8px 10px;
    border: 1px solid #d6ddd6;
    border-radius: 10px;
    background: #ffffff;
    font-size: 13px;
    color: var(--ink, #1f2a24);
}

.device-wake-empty {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border: 1px dashed #d6e2d6;
    border-radius: 14px;
    background: #fafcf9;
}

.device-wake-empty strong {
    font-size: 14px;
    color: var(--ink, #1f2a24);
}

.device-wake-empty p {
    margin: 4px 0 0;
    font-size: 12px;
    line-height: 1.7;
    color: #7c8880;
}

.device-wake-empty .account-btn {
    flex: none;
}

@media (max-width: 720px) {
    .device-bind-box { padding: 14px; }
    .device-bind-row { flex-direction: column; align-items: stretch; }
    .device-code-input { width: 100%; }
    .device-bind-row .account-btn { width: 100%; }
    .device-wake-empty .account-btn { width: 100%; }
}

/* 个人中心通知中心 */
.account-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    margin-left: 4px;
    padding: 0 5px;
    border-radius: 9px;
    background: #d94a3a;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    vertical-align: middle;
}
.notice-center-card {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
}
.notice-center-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
    background: #f7faf6;
    color: var(--ink-soft);
    font-size: 13px;
}
.notice-center-tip { color: #7b8f81; font-size: 12px; }
.notice-center-list { display: grid; gap: 10px; padding: 14px 16px; }
.notice-center-empty { padding: 34px 16px 38px; color: var(--ink-soft); text-align: center; }
.notice-center-empty strong { display: block; color: var(--green-deep); font-size: 15px; }
.notice-center-empty p { margin: 6px 0 0; font-size: 13px; }
.notice-item {
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-left: 4px solid #cbd8cc;
    border-radius: 10px;
    background: #fff;
}
.notice-item.is-unread { border-left-color: #d94a3a; background: #fffdf9; }
.notice-item--warning.is-unread { border-left-color: #c2362a; }
.notice-item--notice { border-left-color: #2f7d4f; }
.notice-item-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.notice-item-head strong { color: #173d2a; font-size: 14px; }
.notice-item-level {
    padding: 2px 7px;
    border-radius: 6px;
    background: #edf5ee;
    color: #2f7d4f;
    font-size: 11px;
}
.notice-item--warning .notice-item-level { background: #fdecea; color: #b53a2e; }
.notice-item-state { margin-left: auto; color: #8a9a8f; font-size: 11px; }
.notice-item p { margin: 7px 0 0; color: #43554a; font-size: 13px; line-height: 1.65; white-space: pre-wrap; word-break: break-word; }
.notice-item-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 9px; color: #8a9a8f; font-size: 12px; }
.notice-item-actions { display: flex; align-items: center; gap: 10px; }
.notice-item-link { color: var(--green-deep); font-size: 12px; text-decoration: underline; text-underline-offset: 2px; }
.notice-item-read {
    border: 0;
    background: none;
    color: #7b8f81;
    font-size: 12px;
    cursor: pointer;
    padding: 0;
}
.notice-item-read:hover { color: var(--green-deep); }
.notice-item-read:disabled { opacity: .5; cursor: default; }
@media (max-width: 640px) {
    .notice-center-bar { align-items: flex-start; flex-direction: column; gap: 4px; }
    .notice-center-tip { display: none; }
    .notice-center-list { padding: 12px; }
    .notice-item-foot { align-items: flex-start; flex-direction: column; }
    .panel-head .account-btn { width: 100%; }
}

