:root {
    --bg: #F4F6F8;
    --surface: #ffffff;
    --ink: #1C2B33;
    --muted: #65676B;
    --line: #E4E6EB;
    --brand: #0866FF;
    --brand-dark: #0055D4;
    --nav: #0A0A0A;
    --nav-soft: #1C2B33;
    --ok: #0f9f6e;
    --ok-bg: #e8f8f1;
    --warn: #b45309;
    --warn-bg: #fff7e6;
    --error: #b91c1c;
    --error-bg: #fef2f2;
    --radius: 14px;
    --shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
code {
    background: #f1f5f9;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 1px 6px;
    font-size: 12px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
h1, h2, h3 { margin: 0; font-weight: 650; letter-spacing: -0.01em; }
p { margin: 0; }

.app { display: flex; min-height: 100vh; }

/* ------------------------------------------------------------------ sidebar */
.sidebar {
    width: 248px;
    flex: 0 0 248px;
    background: linear-gradient(180deg, var(--nav), #1C2B33);
    color: #cbd5e1;
    display: flex;
    flex-direction: column;
    padding: 22px 16px;
    position: sticky;
    top: 0;
    height: 100vh;
}

.brand { display: flex; gap: 12px; align-items: center; color: #fff; text-decoration: none; padding: 4px 6px 20px; }
.brand:hover { text-decoration: none; }
.brand-mark {
    width: 32px; height: 32px; border-radius: 9px;
    display: inline-flex; align-items: center; justify-content: center;
    background: #0866FF;
    color: #FFFFFF; font-weight: 800; font-size: 16px;
    box-shadow: 0 4px 12px rgba(8, 102, 255, .22);
}
.brand-mark-lg { width: 54px; height: 54px; border-radius: 16px; font-size: 28px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 16px; color: #fff; }
.brand-text small { font-size: 10px; color: #7c8aa5; letter-spacing: 0.04em; text-transform: uppercase; }

.nav { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.nav-item {
    display: flex; gap: 10px; align-items: center;
    color: #a9b6cc; padding: 9px 12px; border-radius: 9px;
    font-size: 14px; text-decoration: none;
    transition: background .15s, color .15s;
}
.nav-item:hover { background: var(--nav-soft); color: #fff; text-decoration: none; }
.nav-item.active { background: rgba(8, 102, 255, 0.22); color: #fff; box-shadow: inset 2px 0 0 #60a5fa; }
.nav-icon { width: 18px; text-align: center; opacity: .9; }

.sidebar-foot { margin-top: auto; padding-top: 18px; border-top: 1px solid rgba(148, 163, 184, 0.16); }
.user { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.avatar {
    width: 34px; height: 34px; border-radius: 50%;
    background: #0055D4; color: #EEF4FF;
    display: inline-flex; align-items: center; justify-content: center; font-weight: 700;
}
.user-meta { display: flex; flex-direction: column; min-width: 0; }
.user-meta strong { font-size: 13px; color: #E4E6EB; }
.user-meta small { font-size: 11px; color: #7c8aa5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* --------------------------------------------------------------------- main */
.main { flex: 1; min-width: 0; padding: 28px 34px 60px; }
.topbar { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; margin-bottom: 22px; }
.topbar h1 { font-size: 24px; }
.sub { color: var(--muted); font-size: 13px; margin-top: 4px; }
.topbar-actions { display: flex; gap: 8px; align-items: center; }

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 22px 24px;
    margin-bottom: 20px;
}
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-head h2 { font-size: 16px; }
.card-head h3 { font-size: 15px; }
.muted { color: var(--muted); font-size: 13px; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; margin: 16px 0; }
.kv-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kv dt { color: var(--muted); font-size: 12px; margin-bottom: 2px; }
.kv dd { margin: 0; font-weight: 550; word-break: break-all; }

.badge {
    display: inline-flex; align-items: center; gap: 6px;
    border-radius: 999px; padding: 3px 10px;
    font-size: 12px; font-weight: 600;
    background: #eef2ff; color: #3730a3;
}
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }

.alert { border-radius: 10px; padding: 12px 14px; margin-bottom: 18px; font-size: 13px; }
.alert-ok { background: var(--ok-bg); color: var(--ok); border: 1px solid #b7ebd4; }
.alert-error { background: var(--error-bg); color: var(--error); border: 1px solid #fecaca; }
.alert ul { margin: 6px 0 0 18px; padding: 0; }

.steps { margin: 8px 0 0; padding-left: 20px; color: var(--muted); }
.steps li { margin-bottom: 12px; }
.steps strong { color: var(--ink); display: block; margin-bottom: 2px; }

/* -------------------------------------------------------------------- forms */
.form { display: flex; flex-direction: column; gap: 2px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field > span { font-size: 13px; font-weight: 600; }
.field input, .field select, .field textarea,
.field-control input, .field-control select, .field-control textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 9px 11px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
    color: var(--ink);
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus,
.field-control input:focus, .field-control select:focus, .field-control textarea:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(8, 102, 255, 0.12);
}
.field-row {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 16px;
    padding: 13px 0;
    border-bottom: 1px dashed var(--line);
    align-items: start;
}
.field-row:last-of-type { border-bottom: 0; }
.field-label { padding-top: 5px; }
.field-label label { font-weight: 600; font-size: 13px; }
.field-label small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.field-control small { display: block; color: var(--muted); font-size: 12px; margin-top: 5px; }
.field-control input[type="checkbox"] { width: auto; }
.secret-state { color: var(--muted); }

.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
.switch input { width: 18px; height: 18px; accent-color: var(--brand); }
.checkline { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }

.form-actions {
    display: flex; align-items: center; gap: 12px;
    margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line);
}
.form-actions .muted { margin-left: auto; }

/* ------------------------------------------------------------------ buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    border: 1px solid transparent; border-radius: 9px;
    padding: 8px 15px; font-size: 13px; font-weight: 600;
    cursor: pointer; font-family: inherit; line-height: 1.4;
    transition: background .15s, border-color .15s, color .15s, opacity .15s;
    text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn:disabled { opacity: .6; cursor: not-allowed; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { border-color: #cbd5e1; background: #F4F6F8; }
.btn-ghost { background: transparent; color: #a9b6cc; border-color: rgba(148, 163, 184, .25); }
.btn-ghost:hover { color: #fff; border-color: rgba(148, 163, 184, .5); }
.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn-block { width: 100%; }

/* --------------------------------------------------------------------- tabs */
.tabs { display: flex; gap: 6px; margin-bottom: 16px; }
.tab {
    padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
    color: var(--muted); background: #fff; border: 1px solid var(--line);
}
.tab:hover { text-decoration: none; color: var(--ink); }
.tab.active { color: #fff; background: var(--ink); border-color: var(--ink); }

/* --------------------------------------------------------------- test result */
.test-result { margin-top: 14px; border-radius: 10px; padding: 10px 13px; font-size: 13px; }
.test-result.ok { background: var(--ok-bg); color: var(--ok); border: 1px solid #b7ebd4; }
.test-result.error { background: var(--error-bg); color: var(--error); border: 1px solid #fecaca; }

.note ul { margin: 8px 0 0 18px; padding: 0; color: var(--muted); }
.note li { margin-bottom: 5px; }

/* -------------------------------------------------------------------- guest */
.guest-body {
    min-height: 100vh;
    background:
        radial-gradient(1000px 500px at 10% 0%, #EEF4FF 0%, transparent 55%),
        radial-gradient(900px 500px at 100% 100%, #cffafe 0%, transparent 50%),
        var(--bg);
    display: flex; align-items: center; justify-content: center; padding: 30px;
}
.guest { display: grid; grid-template-columns: 1.1fr 0.9fr; width: min(980px, 100%); gap: 40px; align-items: center; }
.guest-brand { padding: 20px; }
.guest-brand h1 { font-size: 40px; margin: 18px 0 6px; letter-spacing: -0.03em; }
.guest-brand > p { color: var(--muted); font-size: 15px; }
.guest-points { margin: 26px 0 0; padding: 0; list-style: none; color: #334155; }
.guest-points li { margin-bottom: 10px; padding-left: 22px; position: relative; }
.guest-points li::before {
    content: "✓"; position: absolute; left: 0; top: 0;
    color: var(--ok); font-weight: 800;
}
.guest-card {
    background: rgba(255, 255, 255, .9);
    border: 1px solid rgba(226, 232, 240, .9);
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .12);
    padding: 34px 30px;
    backdrop-filter: blur(10px);
}
.guest-card h2 { font-size: 22px; margin-bottom: 6px; }
.guest-card .muted { margin-bottom: 20px; }
.hint { color: var(--muted); font-size: 12px; margin-top: 18px; line-height: 1.6; }

@media (max-width: 900px) {
    .sidebar { display: none; }
    .main { padding: 20px 16px 40px; }
    .grid-2, .kv, .kv-3 { grid-template-columns: 1fr; }
    .field-row { grid-template-columns: 1fr; gap: 6px; }
    .guest { grid-template-columns: 1fr; gap: 10px; }
    .guest-brand { padding: 0 6px 8px; }
    .guest-brand h1 { font-size: 32px; }
    .guest-points { display: none; }
    .guest-card { padding: 26px 20px; }
}

/* -------------------------------------------------------------------- table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th, .table td { padding: 12px 14px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line); }
.table th { background: #F4F6F8; color: var(--muted); font-size: 12px; font-weight: 600; white-space: nowrap; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fafbff; }
.table .right { text-align: right; }
.table form { display: inline; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 12px; word-break: break-all; }

.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; }
.status .dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.status-on { color: var(--ok); }
.status-on .dot { background: var(--ok); box-shadow: 0 0 0 3px rgba(15, 159, 110, .14); }
.status-idle { color: var(--muted); }
.status-idle .dot { background: #8A929B; }
.status-off { color: var(--error); }

.btn-danger { background: #fff; color: var(--error); border-color: #fecaca; }
.btn-danger:hover { background: var(--error-bg); border-color: #fca5a5; }

.alert-info { background: #eff6ff; color: #1e40af; border: 1px solid #CFE0FF; }
.pairing-box { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.pairing-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 28px; font-weight: 800; letter-spacing: 0.22em;
    color: var(--brand-dark); margin: 6px 0 2px;
}
.empty { padding: 26px 4px 8px; color: var(--muted); }
.empty .steps { max-width: 640px; }

/* ------------------------------------------------------------------ accounts */
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat-card { display: flex; flex-direction: column; gap: 2px; padding: 18px 20px; }
.stat-label { color: var(--muted); font-size: 12px; font-weight: 600; }
.stat-value { font-size: 30px; line-height: 1.2; letter-spacing: -0.02em; }
.account-cell { display: flex; align-items: center; gap: 10px; }
.avatar-img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: #f1f5f9; }
.platform-pill { display: inline-flex; border-radius: 999px; padding: 2px 9px; font-size: 12px; font-weight: 600; }
.platform-xiaohongshu { color: #be123c; background: #fff1f2; }
.platform-douyin { color: #1C2B33; background: #f1f5f9; }
.platform-wechat_channels { color: #047857; background: #ecfdf5; }

@media (max-width: 900px) {
    .grid-3 { grid-template-columns: 1fr; }
}

/* -------------------------------------------------------------------- media */
.uploader { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.uploader input[type=file] {
    flex: 1; min-width: 240px; border: 1px dashed #cbd5e1; border-radius: 10px;
    padding: 10px 12px; background: #F4F6F8; font-size: 13px;
}
.upload-hint { margin-top: 12px; font-size: 12px; }
.progress-wrap { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.progress { flex: 1; height: 8px; background: #E4E6EB; border-radius: 999px; overflow: hidden; }
.progress-bar { height: 100%; width: 0; background: linear-gradient(90deg, #0866FF, #00C2FF); transition: width .2s; }
.message { margin-top: 12px; border-radius: 9px; padding: 10px 12px; font-size: 13px; }
.message.ok { background: var(--ok-bg); color: var(--ok); border: 1px solid #b7ebd4; }
.message.error { background: var(--error-bg); color: var(--error); border: 1px solid #fecaca; }

.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.media-card { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; background: #fff; }
.media-thumb { height: 120px; background: #f1f5f9; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.media-thumb img { width: 100%; height: 100%; object-fit: cover; }
.media-type { font-size: 12px; font-weight: 700; color: var(--muted); }
.media-meta { padding: 10px 11px 4px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.media-meta strong { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.media-meta .muted { font-size: 11px; }
.media-card form { padding: 8px 11px 11px; margin-top: auto; }

/* ------------------------------------------------------------------ contents */
.row-actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.row-actions form { display: inline; }
.section-head { margin-top: 26px; }
.asset-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; max-height: 260px; overflow-y: auto; padding: 4px; }
.asset-item { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; font-size: 12px; cursor: pointer; }
.asset-item:has(input:checked) { border-color: var(--brand); background: #f8fbff; }
.asset-item input { width: 16px; height: 16px; }
.asset-badge { font-size: 11px; font-weight: 700; color: var(--muted); background: #f1f5f9; border-radius: 5px; padding: 1px 5px; }
.asset-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.platform-variants { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.variant-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: #fafbff; }
.variant-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.variant-head input { width: 16px; height: 16px; }
.variant-card .field { margin-bottom: 10px; }
.publish-title { font-size: 18px; margin-bottom: 8px; }
.publish-body { white-space: pre-wrap; max-height: 180px; overflow-y: auto; }
.account-group { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; }
.account-group-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.account-check { display: flex; align-items: center; gap: 8px; padding: 6px 0; cursor: pointer; }
.account-check input { width: 16px; height: 16px; }
.account-check span { display: flex; flex-direction: column; line-height: 1.3; }
.account-check small { color: var(--muted); font-size: 11px; }

/* -------------------------------------------------------------------- tasks */
.status-queued, .status-pending { color: #0055D4; }
.status-running, .status-claimed { color: #b45309; }
.status-success { color: var(--ok); }
.status-failed, .status-canceled { color: var(--error); }
.status-partial { color: #b45309; }
.job-list { display: flex; flex-direction: column; gap: 12px; }
.job-card { border: 1px solid var(--line); border-radius: 11px; padding: 12px 14px; }
.job-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.job-head > div { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.job-meta { font-size: 12px; margin-top: 4px; }
.job-error { margin: 8px 0 0; }
.job-result { margin: 8px 0 0; background: #F4F6F8; border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; font-size: 11px; max-height: 180px; overflow: auto; }
.job-logs { margin-top: 8px; font-size: 12px; }
.job-logs summary { cursor: pointer; color: var(--muted); }
.job-logs ul { margin: 8px 0 0; padding-left: 18px; color: var(--muted); }
.job-logs li { margin-bottom: 4px; }
.job-logs strong { color: var(--ink); margin-right: 4px; }

@media (max-width: 900px) {
    .platform-variants { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------- artifacts */
.job-artifacts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.artifact-thumb { width: 92px; height: 62px; object-fit: cover; border-radius: 7px; border: 1px solid var(--line); }

/* ----------------------------------------------------------------------- ai */
#result {
    width: 100%; border: 1px solid var(--line); border-radius: 9px;
    padding: 11px 12px; font-family: inherit; font-size: 14px; line-height: 1.7;
    background: #F4F6F8; color: var(--ink); resize: vertical;
}

.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ----------------------------------------------------------------- comments */
.comment-list { display: flex; flex-direction: column; gap: 10px; }
.comment-card { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.comment-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.comment-content { margin: 0 0 4px; white-space: pre-wrap; word-break: break-word; }
.comment-reply { margin-top: 8px; padding: 8px 10px; border-radius: 8px; background: #F4F6F8; border: 1px solid var(--line); font-size: 13px; }
.reply-form { display: flex; gap: 8px; margin-top: 8px; }
.reply-form input { flex: 1; border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; font-family: inherit; }

/* ----------------------------------------------------------------- messages */
.conversation-list { display: flex; flex-direction: column; gap: 8px; }
.conversation-card { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.conversation-card summary { display: flex; align-items: center; gap: 8px; cursor: pointer; flex-wrap: wrap; list-style: none; }
.conversation-card summary::-webkit-details-marker { display: none; }
.conversation-preview { color: var(--muted); font-size: 12px; flex: 1; min-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conversation-time { font-size: 11px; }
.message-thread { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.message-row { display: flex; flex-direction: column; gap: 2px; max-width: 78%; }
.message-row.out { align-self: flex-end; align-items: flex-end; }
.message-row.in { align-self: flex-start; }
.message-bubble { background: #f1f5f9; border-radius: 10px; padding: 8px 11px; font-size: 13px; white-space: pre-wrap; word-break: break-word; }
.message-row.out .message-bubble { background: #EEF4FF; }
.message-time { font-size: 11px; }
.job-head-actions { display: flex; align-items: center; gap: 8px; }

/* -------------------------------------------------------------- interactions */
.interaction-list { display: flex; flex-direction: column; gap: 10px; }
.interaction-card { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.interaction-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.interaction-content { margin: 8px 0; white-space: pre-wrap; word-break: break-word; }

/* ------------------------------------------------------------------- status */
.checklist { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 7px; }
.checklist li { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); padding-left: 22px; position: relative; }
.checklist li::before { content: '○'; position: absolute; left: 0; color: #8A929B; }
.checklist li.done { color: var(--ink); }
.checklist li.done::before { content: '✓'; color: var(--ok); font-weight: 800; }
.failure-list { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.failure-item { border: 1px solid var(--line); border-radius: 9px; padding: 9px 11px; display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.error-text { color: var(--error); font-size: 12px; }
.stack { display: flex; flex-direction: column; gap: 2px; }
.stack-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); color: var(--ink); text-decoration: none; }
.stack-row:last-child { border-bottom: 0; }
.stack-row:hover { text-decoration: none; color: var(--brand); }
.stack-row span { display: flex; flex-direction: column; }
.stack-row small { color: var(--muted); font-size: 11px; }

/* --------------------------------------------------------------------- team */
.invite-form { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.invite-form input, .invite-form select { border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; font-family: inherit; }
.invite-form input { flex: 1; min-width: 180px; }
.usage-row { display: flex; align-items: center; gap: 10px; margin: 10px 0; font-size: 12px; }
.usage-row > span { width: 44px; color: var(--muted); }
.plan-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.plan-card { border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.plan-card.active { border-color: var(--brand); background: #f8fbff; }
.plan-card h3 { margin: 0; font-size: 15px; }
.plan-card strong { font-size: 18px; }
.plan-card ul { margin: 4px 0 10px; padding-left: 16px; color: var(--muted); font-size: 12px; }
@media (max-width: 900px) { .plan-grid { grid-template-columns: 1fr 1fr; } }

/* VI logo */
.brand-mark svg { width: 19px; height: auto; display: block; }
.brand-mark-lg svg { width: 32px; height: auto; display: block; }

.sidebar .brand-mark { color: #fff; }
