/* SGST 业务壳补丁：不改 L0 令牌、不改 zhongshu-console.css。 */
.btn {
    min-height: 40px;
    padding: 10px 15px;
    border: 1px solid transparent;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 750;
    cursor: pointer;
    width: auto;
    text-decoration: none;
    color: #fff;
    background: var(--brand);
}
.btn.secondary {
    border-color: var(--line);
    color: var(--ink);
    background: #fff;
}
.btn.danger {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
}
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
form.inline { display: inline-block; margin: 2px; }
.badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid var(--line);
    background: var(--brand-soft);
    color: var(--brand-dark);
}
.badge.ok { background: var(--green-soft); color: var(--green); border-color: transparent; }
.badge.warn { background: var(--orange-soft); color: var(--orange); border-color: transparent; }
.content input:not([type=hidden]):not([type=checkbox]):not([type=radio]):not([type=file]):not(.input),
.content select:not(.select),
.content textarea:not(.textarea) {
    width: 100%;
    min-height: 36px;
    border: 1px solid var(--input);
    border-radius: 6px;
    padding: 8px 12px;
    color: var(--foreground);
    background: var(--background);
    font-size: 14px;
}
.content textarea:not(.textarea) { min-height: 112px; }
.content label { display: block; font-weight: 500; margin: 12px 0 5px; color: var(--foreground); }
pre { white-space: pre-wrap; background: var(--soft); padding: 12px; border-radius: var(--radius-sm); max-height: 280px; overflow: auto; }
.source { border-left: 3px solid var(--line); padding-left: 12px; color: var(--muted); }
.flow { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0 0 16px; padding: 0; }
.flow li { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.flow b { width: 22px; height: 22px; border-radius: 999px; display: grid; place-items: center; background: var(--brand); color: #fff; font-size: 11px; }
.flow a { color: var(--ink); font-weight: 650; }
.drawer {
    position: fixed; z-index: 20; right: 0; top: 0; bottom: 0;
    width: min(560px, 95vw); background: var(--panel);
    border-left: 1px solid var(--line); box-shadow: var(--shadow-md);
    padding: 24px; overflow: auto;
}
.drawer__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; position: sticky; top: -24px; background: var(--panel); padding: 12px 0; z-index: 1; }
.drawer__head h2 { margin: 0; }
.pager nav { margin-top: 16px; }
.notify-menu { position: relative; }
.notify-panel {
    position: absolute; right: 0; top: 44px; width: min(320px, 80vw);
    background: var(--panel); border: 1px solid var(--line);
    border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 8px; z-index: 30;
}
.notify-item { display: block; padding: 8px; border-radius: var(--radius-sm); color: var(--ink); }
.notify-item:hover { background: var(--soft); }
.notify-panel__foot { display: block; text-align: center; padding: 8px; }
.header-badge[hidden] { display: none; }
.central-banner { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 11px 14px; background: var(--brand-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 14px; }
.central-modal-backdrop { position: fixed; z-index: 50; inset: 0; background: #10182880; display: grid; place-items: center; padding: 20px; }
.central-modal { width: min(520px, 95vw); background: var(--panel); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-lg); }
.status-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 14px 0; }
.status-grid div { background: var(--soft); border-radius: var(--radius-sm); padding: 10px 12px; }
.status-grid strong { display: block; margin-top: 4px; color: var(--ink); }
.status-notes { margin: 8px 0 16px; padding-left: 18px; color: var(--muted); }
.status-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.status-tabs a { padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: var(--panel); }
.status-tabs a.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.issue-table td { white-space: nowrap; vertical-align: middle; }
.issue-title { display: inline-block; max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.complete-circle { display: inline-grid; place-items: center; width: 22px; height: 22px; color: var(--muted); font-size: 16px; }
.complete-circle.is-done { color: var(--green); }
.issue-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 12px 0; }
.issue-meta div { background: var(--soft); border-radius: var(--radius-sm); padding: 8px 10px; }
.issue-meta dt { color: var(--muted); font-size: 12px; }
.issue-meta dd { margin: 2px 0 0; font-weight: 650; color: var(--ink); }
.comment { display: flex; gap: 10px; margin: 10px 0; }
.content-page-head--dashboard .ui-tabs { margin: 0; }
.header-icon-button img { width: 16px; height: 16px; object-fit: contain; display: block; }
.dashboard-panel { min-height: 280px; display: flex; flex-direction: column; }
.dashboard-panel .empty { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.list-table-toolbar,
.list-page-toolbar-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
}
.list-table-toolbar-main {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.list-table-toolbar .select,
.list-page-toolbar-form .select {
    width: auto;
    min-width: 148px;
    max-width: 220px;
}
.login-page .login-preview { background: #e7f3fe; }
.login-page .login-preview-media { object-position: center 46%; }
.login-page .login-story { padding: 44px 64px 36px; font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif; }
.login-page .login-story h2 { margin: 38px 0 0 -4.5px; max-width: none; color: #050725; font-size: 54px; font-weight: 900; line-height: 1.05; letter-spacing: 0.02em; -webkit-text-stroke: 0.9px currentColor; }
.login-page .login-story h2 em { font-style: normal; font-weight: 900; color: #044efa; }
.login-page .login-story p { margin: 18px 0 0 -1px; color: #6e7a93; font-size: 20px; font-weight: 500; line-height: 1.2; letter-spacing: 0.04em; }
.login-page .login-story-rule { width: 40px; margin-top: 22px; background: #0464fc; }
.login-page .login-story-foot span { font-weight: 500; letter-spacing: 0.06em; }
.login-page .login-story-foot small { color: #9aabbe; font-size: 12px; letter-spacing: 0.01em; text-transform: none; }
.login-page .login-panel { padding: 72px 40px 40px; overflow: hidden; background: #f4f8fe; }
.login-page .login-panel-ornament { position: absolute; pointer-events: none; user-select: none; opacity: 0.8; background-repeat: no-repeat; background-size: 100% 100%; }
.login-page .login-panel-ornament-tr { top: 0; right: 0; width: 173px; height: 223px; background-image: url("/brand/login-ornament-tr.png"); }
.login-page .login-panel-ornament-bl { left: 0; bottom: 0; width: 257px; height: 191px; background-image: url("/brand/login-ornament-bl.png"); }
.login-page .login-corner { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.login-page .login-corner-mark { width: 2px; height: 16px; margin-bottom: 6px; border-radius: 99px; background: #2f6bff; }
.login-page .login-heading h1 { font-weight: 900; -webkit-text-stroke: 0.4px currentColor; }
.login-page .login-glyph { display: block; width: 18px; height: 18px; }
.login-page .login-input-action { pointer-events: auto; border: 0; background: transparent; cursor: pointer; }
.login-page .login-submit { display: inline-flex; align-items: center; justify-content: center; gap: 8px; letter-spacing: .04em; }
@media (max-width: 820px) {
    .login-page .login-story h2 { font-size: 30px; }
}
.shell .team-switcher-static,
.shell .team-switcher-static .team-switcher-trigger-static {
    height: auto;
    min-height: 48px;
    max-height: 56px;
}
.shell .team-switcher-static .team-switcher-trigger-static {
    display: flex;
    align-items: center;
    overflow: hidden;
}
.shell .team-switcher-logo.team-switcher-logo--brand {
    flex: 1 1 auto;
    align-self: center;
    width: 100%;
    height: 36px;
    max-width: 100%;
    max-height: 36px;
    min-width: 0;
    min-height: 0;
    padding: 0;
    overflow: hidden;
    background: transparent;
}
.shell .team-switcher-logo.team-switcher-logo--brand img.brand-wordmark {
    display: block;
    width: 100%;
    height: 36px;
    max-width: none;
    max-height: 36px;
    object-fit: contain;
    object-position: left center;
    background: transparent;
}
.shell .team-switcher-logo.team-switcher-logo--brand img.brand-mark { display: none; }
.shell.is-sidebar-collapsed .team-switcher-logo.team-switcher-logo--brand {
    width: 32px;
    height: 32px;
    max-width: 32px;
    flex: 0 0 32px;
}
.shell.is-sidebar-collapsed .team-switcher-logo.team-switcher-logo--brand img.brand-wordmark { display: none; }
.shell.is-sidebar-collapsed .team-switcher-logo.team-switcher-logo--brand img.brand-mark {
    display: block;
    width: 28px;
    height: 28px;
    max-width: 28px;
    max-height: 28px;
    border-radius: 8px;
}
.login-page .login-story-brand img {
    height: 56px;
    max-width: 320px;
    background: transparent;
}
.login-page .login-logo {
    margin-bottom: 32px;
}
.login-page .login-logo img {
    height: 56px;
    max-width: 280px;
    background: transparent;
}
.task-board { padding: 0 0 8px; }
.task-board .card-head { padding: 22px 24px 8px; }
.task-board .card-head h2 { margin: 0; font-size: 16px; }
.task-board .card-head p { max-width: 52em; margin: 8px 0 0; line-height: 1.65; }
.task-board .table-wrap { padding: 8px 8px 16px; }
.task-board .empty { padding: 48px 24px 56px; }
.task-board .pager { padding: 0 24px 20px; }
.task-error-cell { max-width: 280px; white-space: normal; line-height: 1.45; }
.task-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 20px;
    align-items: start;
}
.task-workspace .task-board { min-width: 0; min-height: 0; }
.task-report-summary { margin: 12px 0 16px; font-size: 14px; line-height: 1.65; color: #0f172a; }
.task-report-error { margin: 0 0 16px; font-size: 13px; line-height: 1.55; color: #9a3412; }
.task-board .list-table tbody tr.is-selected td { background: color-mix(in srgb, #1d4ed8 6%, transparent); }
.list-table a.table-link,
.content a.table-link {
    color: #1d4ed8;
    font-weight: 650;
    text-decoration: none;
}
.list-table a.table-link:hover,
.content a.table-link:hover {
    color: #1e40af;
    text-decoration: underline;
}
.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    gap: 20px;
    align-items: start;
}
.sg-panel {
    padding: 24px;
    border: 1px solid var(--border, var(--line));
    border-radius: 16px;
    background: var(--card, #fff);
    box-shadow: none;
}
.sg-panel > h2 {
    margin: 0 0 18px;
    font-size: 16px;
    font-weight: 700;
}
.sg-panel > h3,
.req-block h3 {
    margin: 20px 0 10px;
    font-size: 14px;
    font-weight: 650;
}
.form-card-inner {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 20px;
}
.form-card-inner .field-full,
.form-card-inner .form-actions { grid-column: 1 / -1; }
.form-card-inner .field label { margin: 0 0 6px; }
.meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    color: var(--muted);
    font-size: 13px;
}
.status-block {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--border, var(--line));
}
.status-block h3 { margin: 0 0 8px; font-size: 14px; }
.source-panel { min-height: 100%; }
.source-file {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0 0 16px;
}
.source-pre {
    margin: 0;
    max-height: 280px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid var(--border, var(--line));
    font-size: 12px;
    line-height: 1.55;
}
.source-pre-sm { max-height: 140px; white-space: pre-wrap; }
.source-empty {
    padding: 18px 16px;
    border-radius: 12px;
    background: #f8fafc;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}
.panel-lead { margin: -8px 0 16px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.project-hero { display: grid; gap: 16px; }
.project-hero-actions { align-items: center; }
.req-block {
    padding: 20px 0;
    border-top: 1px solid var(--border, var(--line));
}
.req-block:first-of-type { border-top: 0; padding-top: 0; }
.section-block {
    display: grid;
    gap: 12px;
    padding: 18px 0;
    border-top: 1px solid var(--border, var(--line));
}
.section-block:first-of-type { border-top: 0; padding-top: 0; }
.select-inline { width: auto; min-width: 120px; }
.replace-form { display: grid; gap: 8px; margin-top: 10px; }
.section-gap { margin-top: 20px; }
.sg-panel .form-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.dashboard-panel { min-width: 0; overflow: hidden; }
.dashboard-panel .card-head { padding: 20px 24px 8px; }
.dashboard-panel .card-head h2 { margin: 0; font-size: 16px; font-weight: 700; color: #0f172a; }
.dashboard-panel .card-head p { margin: 6px 0 0; font-size: 13px; color: #64748b; }
.dash-feed {
    list-style: none;
    margin: 0;
    padding: 4px 8px 12px;
}
.dash-feed li {
    display: grid;
    gap: 8px;
    min-width: 0;
    padding: 14px 16px;
    border-top: 1px solid var(--border, var(--line));
}
.dash-feed a.table-link {
    min-width: 0;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.45;
    overflow-wrap: anywhere;
}
.dash-feed strong {
    font-size: 14px;
    font-weight: 650;
    color: #0f172a;
}
.dash-feed-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    font-size: 12px;
    color: #64748b;
}
.dash-feed-error {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: #64748b;
    overflow-wrap: anywhere;
}
.content .list-table {
    width: 100%;
    font-size: 13px;
    color: #334155;
}
.content .data-card .list-table,
.content .task-board .list-table {
    font-size: 13px;
    font-weight: 400;
}
.content .list-table thead th,
.content .data-card .list-table thead th,
.content .task-board .list-table thead th {
    height: 40px;
    padding: 0 16px;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    letter-spacing: 0;
    white-space: nowrap;
    vertical-align: middle;
}
.content .list-table tbody td,
.content .data-card .list-table tbody td,
.content .task-board .list-table tbody td {
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 400;
    color: #334155;
    vertical-align: middle;
    white-space: nowrap;
}
.content .list-table td.primary-cell,
.content .data-card .list-table td.primary-cell {
    max-width: none;
    font-size: 13px;
    font-weight: 400;
    color: #334155;
}
.content .list-table .primary-cell > a.table-link,
.content .list-table a.table-link {
    color: #1d4ed8;
    font-size: 13px;
    font-weight: 650;
}
.content .list-table .primary-cell > span.cell-code {
    display: inline;
    margin-left: 8px;
    color: #64748b;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}
.content .list-table td.text-right {
    text-align: right;
}
.content .sg-badge,
.sg-badge {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 8px;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 999px;
    background: #f8fafc;
    color: #334155;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}
.sg-badge.ok { background: #ecfdf3; border-color: #bbf7d0; color: #166534; }
.sg-badge.warn { background: #fff7ed; border-color: #fed7aa; color: #9a3412; }
.debug-issue-sheet { display: grid; gap: 12px; min-width: 0; }
.debug-prose { font-size: 13px; line-height: 1.6; color: #334155; overflow-wrap: anywhere; }
.debug-inline-shot, .debug-prose img { display: block; max-width: 100%; margin: 8px 0; border-radius: 8px; border: 1px solid var(--border, #e2e8f0); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.debug-paste-hint .link { background: none; border: 0; padding: 0; color: #1d4ed8; cursor: pointer; font: inherit; }
@media (max-width: 900px) {
    .two, .row, .status-grid, .issue-meta, .grid-4, .detail-grid, .form-card-inner { grid-template-columns: 1fr; }
}
