2339 lines
43 KiB
CSS
2339 lines
43 KiB
CSS
:root {
|
|
color-scheme: dark;
|
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
|
|
|
|
--color-bg-base: #0f1419;
|
|
--color-bg-surface: #121820;
|
|
--color-bg-elevated: #1c2735;
|
|
--color-bg-active: #1a3050;
|
|
--color-bg-code: #0f1419;
|
|
--color-bg-warning: #2a2318;
|
|
--color-bg-error: #3a1f24;
|
|
--color-bg-info: #152033;
|
|
|
|
--color-text-primary: #e7ecf3;
|
|
--color-text-secondary: #c9d7ea;
|
|
--color-text-muted: #8fa3bf;
|
|
--color-text-faint: #6b829e;
|
|
--color-text-meta: #5f738d;
|
|
--color-text-link: #6ab0ff;
|
|
--color-text-error: #ffb4b0;
|
|
--color-text-info: #9ec5ff;
|
|
|
|
--color-border: #243041;
|
|
--color-border-input: #2a3a50;
|
|
--color-border-warning: #5c4a2a;
|
|
--color-border-input-focus: #3d8bfd;
|
|
|
|
--color-accent: #3d8bfd;
|
|
--color-accent-user: #2458a6;
|
|
--color-danger: #c4453d;
|
|
|
|
--radius-sm: 8px;
|
|
--radius-xs: 4px;
|
|
--radius-md: 10px;
|
|
--radius-lg: 12px;
|
|
--radius-xl: 16px;
|
|
--radius-pill: 999px;
|
|
|
|
--space-xs: 4px;
|
|
--space-sm: 8px;
|
|
--space-md: 12px;
|
|
--space-lg: 16px;
|
|
|
|
background: var(--color-bg-base);
|
|
color: var(--color-text-primary);
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
html,
|
|
body,
|
|
#root {
|
|
height: 100%;
|
|
margin: 0;
|
|
}
|
|
|
|
.app-loading {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
height: 100%;
|
|
color: var(--color-text-muted);
|
|
font-size: 14px;
|
|
}
|
|
|
|
/* ── Shared buttons ──────────────────────────────────── */
|
|
|
|
.ghost-btn,
|
|
.send-btn,
|
|
.danger-btn {
|
|
border: none;
|
|
border-radius: var(--radius-md);
|
|
padding: 10px 14px;
|
|
font-size: 14px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.ghost-btn {
|
|
background: var(--color-bg-elevated);
|
|
color: var(--color-text-secondary);
|
|
}
|
|
|
|
.ghost-btn:disabled {
|
|
opacity: 0.45;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.send-btn {
|
|
background: var(--color-accent);
|
|
color: white;
|
|
min-width: 72px;
|
|
}
|
|
|
|
.send-btn:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.danger-btn {
|
|
background: var(--color-danger);
|
|
color: white;
|
|
}
|
|
|
|
/* ── Banners ─────────────────────────────────────────── */
|
|
|
|
.banner {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: var(--space-md);
|
|
padding: 10px var(--space-lg);
|
|
font-size: 13px;
|
|
border-radius: var(--radius-sm);
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.banner-error {
|
|
background: var(--color-bg-error);
|
|
color: var(--color-text-error);
|
|
}
|
|
|
|
.banner-info {
|
|
background: var(--color-bg-info);
|
|
color: var(--color-text-info);
|
|
}
|
|
|
|
.banner-warning {
|
|
background: var(--color-bg-warning);
|
|
color: var(--color-text-muted);
|
|
border-bottom: 1px solid var(--color-border-warning);
|
|
}
|
|
|
|
.text-error {
|
|
color: var(--color-text-error);
|
|
}
|
|
|
|
.muted {
|
|
color: var(--color-text-muted);
|
|
font-size: 12px;
|
|
}
|
|
|
|
/* ── Admin login ─────────────────────────────────────── */
|
|
|
|
.admin-login-page {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-height: 100vh;
|
|
background: var(--color-bg-base);
|
|
}
|
|
|
|
.admin-login-card {
|
|
width: 340px;
|
|
background: var(--color-bg-surface);
|
|
border: 1px solid var(--color-border);
|
|
border-radius: var(--radius-xl);
|
|
padding: 32px 28px;
|
|
}
|
|
|
|
.admin-login-title {
|
|
margin: 0 0 24px;
|
|
font-size: 20px;
|
|
font-weight: 600;
|
|
text-align: center;
|
|
}
|
|
|
|
.admin-login-form {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
}
|
|
|
|
.admin-login-input {
|
|
padding: 10px 12px;
|
|
border-radius: var(--radius-md);
|
|
border: 1px solid var(--color-border-input);
|
|
background: var(--color-bg-base);
|
|
color: var(--color-text-primary);
|
|
font-size: 14px;
|
|
}
|
|
|
|
.admin-login-input:focus {
|
|
outline: none;
|
|
border-color: var(--color-border-input-focus);
|
|
}
|
|
|
|
/* ── Admin shell ─────────────────────────────────────── */
|
|
|
|
.admin-shell {
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-height: 100vh;
|
|
background: var(--color-bg-base);
|
|
}
|
|
|
|
.admin-topbar {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
padding: 12px 20px;
|
|
border-bottom: 1px solid var(--color-border);
|
|
background: var(--color-bg-surface);
|
|
}
|
|
|
|
.admin-topbar-left {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
min-width: 0;
|
|
}
|
|
|
|
.admin-topbar-title {
|
|
margin: 0;
|
|
font-size: 18px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.admin-topbar-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
}
|
|
|
|
.admin-topbar-user {
|
|
color: var(--color-text-muted);
|
|
font-size: 13px;
|
|
}
|
|
|
|
.admin-back-link {
|
|
text-decoration: none;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.admin-body {
|
|
display: flex;
|
|
flex: 1;
|
|
min-height: 0;
|
|
}
|
|
|
|
.admin-sidebar {
|
|
flex: 0 0 200px;
|
|
padding: 16px 12px;
|
|
border-right: 1px solid var(--color-border);
|
|
background: var(--color-bg-surface);
|
|
}
|
|
|
|
.admin-sidebar-nav {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
}
|
|
|
|
.admin-nav-section {
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.admin-nav-section-label {
|
|
padding: 0 12px 8px;
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
letter-spacing: 0.04em;
|
|
text-transform: uppercase;
|
|
color: var(--color-text-muted);
|
|
}
|
|
|
|
.admin-nav-link {
|
|
display: block;
|
|
padding: 8px 12px;
|
|
border-radius: var(--radius-sm);
|
|
font-size: 14px;
|
|
color: var(--color-text-secondary);
|
|
text-decoration: none;
|
|
transition: background 0.15s;
|
|
}
|
|
|
|
.admin-nav-link:hover {
|
|
background: var(--color-bg-elevated);
|
|
}
|
|
|
|
.admin-nav-link.active {
|
|
background: var(--color-bg-active);
|
|
color: var(--color-text-primary);
|
|
font-weight: 500;
|
|
}
|
|
|
|
.admin-main {
|
|
flex: 1;
|
|
overflow: auto;
|
|
padding: 20px 24px;
|
|
min-width: 0;
|
|
}
|
|
|
|
/* ── Admin page ──────────────────────────────────────── */
|
|
|
|
.admin-page {
|
|
min-height: 100%;
|
|
padding: 0;
|
|
overflow: auto;
|
|
}
|
|
|
|
.admin-page-head {
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.admin-page-head h2 {
|
|
margin: 0 0 4px;
|
|
}
|
|
|
|
.admin-back-inline {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
color: var(--color-text-muted);
|
|
text-decoration: none;
|
|
font-size: 13px;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
/* ── Admin stat cards ────────────────────────────────── */
|
|
|
|
.admin-stat-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
|
|
gap: 12px;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.admin-stat-card {
|
|
background: var(--color-bg-surface);
|
|
border: 1px solid var(--color-border);
|
|
border-radius: var(--radius-lg);
|
|
padding: 16px;
|
|
}
|
|
|
|
.admin-stat-label {
|
|
font-size: 12px;
|
|
color: var(--color-text-muted);
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
.admin-stat-value {
|
|
font-size: 22px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.admin-link-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
|
|
gap: 12px;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.admin-link-card {
|
|
background: var(--color-bg-surface);
|
|
border: 1px solid var(--color-border);
|
|
border-radius: var(--radius-lg);
|
|
padding: 16px;
|
|
text-decoration: none;
|
|
color: inherit;
|
|
transition: border-color 0.15s;
|
|
}
|
|
|
|
.admin-link-card:hover {
|
|
border-color: var(--color-accent);
|
|
}
|
|
|
|
.admin-link-card-title {
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.admin-service-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
|
|
gap: 12px;
|
|
}
|
|
|
|
.admin-service-card {
|
|
display: grid;
|
|
gap: 10px;
|
|
padding: 14px;
|
|
border: 1px solid var(--color-border);
|
|
border-radius: var(--radius-lg);
|
|
background: var(--color-bg-elevated);
|
|
}
|
|
|
|
.admin-service-card h3 {
|
|
margin: 0;
|
|
font-size: 15px;
|
|
}
|
|
|
|
.admin-inline-link {
|
|
color: var(--color-text-link);
|
|
text-decoration: none;
|
|
font-size: 13px;
|
|
}
|
|
|
|
/* ── Admin tabs ──────────────────────────────────────── */
|
|
|
|
.admin-tabs {
|
|
display: flex;
|
|
gap: 4px;
|
|
margin-bottom: 16px;
|
|
border-bottom: 1px solid var(--color-border);
|
|
padding-bottom: 0;
|
|
}
|
|
|
|
.admin-tab {
|
|
padding: 8px 16px;
|
|
font-size: 14px;
|
|
border-radius: var(--radius-sm) var(--radius-sm) 0 0;
|
|
color: var(--color-text-muted);
|
|
text-decoration: none;
|
|
border: 1px solid transparent;
|
|
border-bottom: none;
|
|
}
|
|
|
|
.admin-tab:hover {
|
|
color: var(--color-text-primary);
|
|
background: var(--color-bg-elevated);
|
|
}
|
|
|
|
.admin-tab.active {
|
|
color: var(--color-text-primary);
|
|
background: var(--color-bg-surface);
|
|
border-color: var(--color-border);
|
|
font-weight: 500;
|
|
}
|
|
|
|
/* ── Admin cards / forms / tables ────────────────────── */
|
|
|
|
.admin-header h1 {
|
|
margin: 0;
|
|
font-size: 22px;
|
|
}
|
|
|
|
.admin-card {
|
|
background: var(--color-bg-surface);
|
|
border: 1px solid var(--color-border);
|
|
border-radius: var(--radius-lg);
|
|
padding: 16px;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.providers-page {
|
|
display: grid;
|
|
gap: 14px;
|
|
}
|
|
|
|
.providers-hero {
|
|
display: flex;
|
|
align-items: end;
|
|
justify-content: space-between;
|
|
gap: 16px;
|
|
padding: 16px 18px;
|
|
border: 1px solid var(--color-border);
|
|
border-radius: var(--radius-lg);
|
|
background: linear-gradient(180deg, rgba(24, 34, 47, 0.98), rgba(18, 24, 32, 0.98));
|
|
}
|
|
|
|
.providers-hero h2 {
|
|
margin: 0 0 4px;
|
|
font-size: 20px;
|
|
}
|
|
|
|
.providers-hero-meta {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.providers-hero-stat {
|
|
display: grid;
|
|
gap: 2px;
|
|
padding: 10px 12px;
|
|
min-width: 140px;
|
|
border: 1px solid var(--color-border);
|
|
border-radius: var(--radius-md);
|
|
background: rgba(15, 20, 25, 0.6);
|
|
}
|
|
|
|
.providers-hero-label {
|
|
color: var(--color-text-muted);
|
|
font-size: 11px;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.04em;
|
|
}
|
|
|
|
.providers-hero strong {
|
|
font-size: 15px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.providers-layout {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
|
|
gap: 14px;
|
|
align-items: start;
|
|
}
|
|
|
|
.providers-panel {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.providers-panel-primary,
|
|
.providers-panel-secondary {
|
|
min-height: 100%;
|
|
}
|
|
|
|
.providers-panel-head {
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.providers-panel-head h3 {
|
|
margin: 0 0 3px;
|
|
font-size: 15px;
|
|
}
|
|
|
|
.providers-panel-head .muted {
|
|
max-width: 44ch;
|
|
}
|
|
|
|
.admin-card h2 {
|
|
margin: 0 0 12px;
|
|
font-size: 16px;
|
|
}
|
|
|
|
.admin-card-head {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.admin-form {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
|
|
gap: 10px;
|
|
}
|
|
|
|
.admin-form input,
|
|
.admin-form select,
|
|
.admin-form textarea {
|
|
padding: 10px 12px;
|
|
border-radius: var(--radius-md);
|
|
border: 1px solid var(--color-border-input);
|
|
background: var(--color-bg-base);
|
|
color: var(--color-text-primary);
|
|
}
|
|
|
|
.admin-form label {
|
|
display: grid;
|
|
gap: 6px;
|
|
min-width: 0;
|
|
color: var(--color-text-muted);
|
|
font-size: 12px;
|
|
}
|
|
|
|
.admin-form label > span {
|
|
line-height: 1.3;
|
|
}
|
|
|
|
.admin-form textarea {
|
|
grid-column: 1 / -1;
|
|
min-height: 88px;
|
|
resize: vertical;
|
|
font-family: inherit;
|
|
}
|
|
|
|
.admin-form button[type="submit"] {
|
|
align-self: end;
|
|
justify-self: stretch;
|
|
}
|
|
|
|
.form-span-all {
|
|
grid-column: 1 / -1;
|
|
}
|
|
|
|
.modal-backdrop {
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: 40;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 24px;
|
|
background: rgba(4, 8, 13, 0.72);
|
|
}
|
|
|
|
.modal-panel {
|
|
width: min(720px, 100%);
|
|
max-height: min(760px, calc(100vh - 48px));
|
|
overflow: auto;
|
|
border: 1px solid var(--color-border);
|
|
border-radius: var(--radius-lg);
|
|
background: var(--color-bg-surface);
|
|
box-shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
|
|
}
|
|
|
|
.modal-head {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
justify-content: space-between;
|
|
gap: 16px;
|
|
padding: 18px 20px;
|
|
border-bottom: 1px solid var(--color-border);
|
|
}
|
|
|
|
.modal-head h3 {
|
|
margin: 0 0 4px;
|
|
font-size: 16px;
|
|
}
|
|
|
|
.provider-dialog-form {
|
|
padding: 20px;
|
|
}
|
|
|
|
.provider-preset-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.modal-actions {
|
|
grid-column: 1 / -1;
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
gap: 10px;
|
|
padding-top: 4px;
|
|
}
|
|
|
|
.global-model-card {
|
|
margin-bottom: 16px;
|
|
padding: 14px;
|
|
border: 1px solid var(--color-border-input);
|
|
border-radius: var(--radius-md);
|
|
background: var(--color-bg-subtle, rgba(0, 0, 0, 0.02));
|
|
}
|
|
|
|
.global-model-form {
|
|
margin-top: 10px;
|
|
}
|
|
|
|
.admin-table-wrap {
|
|
overflow: auto;
|
|
}
|
|
|
|
.admin-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.providers-table-wrap {
|
|
border: 1px solid var(--color-border);
|
|
border-radius: var(--radius-md);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.providers-table {
|
|
min-width: 760px;
|
|
}
|
|
|
|
.admin-table th,
|
|
.admin-table td {
|
|
border-bottom: 1px solid var(--color-border);
|
|
padding: 11px 10px;
|
|
text-align: left;
|
|
vertical-align: top;
|
|
}
|
|
|
|
.admin-table thead th {
|
|
color: var(--color-text-muted);
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.04em;
|
|
background: rgba(15, 20, 25, 0.65);
|
|
}
|
|
|
|
.admin-table tbody tr:hover {
|
|
background: rgba(26, 48, 80, 0.28);
|
|
}
|
|
|
|
.admin-table .mono {
|
|
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.mono {
|
|
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.admin-actions {
|
|
display: flex;
|
|
gap: 8px;
|
|
flex-wrap: wrap;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.providers-actions {
|
|
white-space: normal;
|
|
}
|
|
|
|
.providers-name {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.providers-provider {
|
|
color: var(--color-text-secondary);
|
|
}
|
|
|
|
.providers-list {
|
|
display: grid;
|
|
gap: 10px;
|
|
}
|
|
|
|
.provider-list-item {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
padding: 12px 14px;
|
|
border: 1px solid var(--color-border);
|
|
border-radius: var(--radius-md);
|
|
background: rgba(15, 20, 25, 0.45);
|
|
}
|
|
|
|
.provider-list-main {
|
|
min-width: 0;
|
|
display: grid;
|
|
gap: 8px;
|
|
flex: 1;
|
|
}
|
|
|
|
.provider-list-top {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 10px;
|
|
}
|
|
|
|
.provider-list-meta {
|
|
display: flex;
|
|
gap: 12px;
|
|
flex-wrap: wrap;
|
|
color: var(--color-text-muted);
|
|
font-size: 12px;
|
|
}
|
|
|
|
.provider-state {
|
|
flex: 0 0 auto;
|
|
padding: 4px 8px;
|
|
border-radius: var(--radius-pill);
|
|
font-size: 11px;
|
|
line-height: 1;
|
|
}
|
|
|
|
.provider-state.is-active {
|
|
background: rgba(46, 170, 101, 0.14);
|
|
color: #8dd6aa;
|
|
}
|
|
|
|
.provider-state.is-disabled {
|
|
background: rgba(197, 77, 62, 0.14);
|
|
color: #ffb4b0;
|
|
}
|
|
|
|
.provider-list-actions {
|
|
flex: 0 0 auto;
|
|
align-self: center;
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
.executor-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
|
|
gap: 12px;
|
|
}
|
|
|
|
.executor-card {
|
|
display: grid;
|
|
gap: 10px;
|
|
padding: 12px;
|
|
border: 1px solid var(--color-border);
|
|
border-radius: var(--radius-md);
|
|
background: rgba(15, 20, 25, 0.52);
|
|
}
|
|
|
|
.executor-card h3 {
|
|
margin: 0 0 4px;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.inline-check {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
color: var(--color-text-muted);
|
|
font-size: 13px;
|
|
}
|
|
|
|
.executor-form-grid {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1fr);
|
|
gap: 8px;
|
|
}
|
|
|
|
.executor-card input,
|
|
.executor-card select {
|
|
background: var(--color-bg-base);
|
|
}
|
|
|
|
.executor-card input,
|
|
.executor-card select,
|
|
.provider-form input,
|
|
.provider-form select,
|
|
.provider-form textarea {
|
|
min-width: 0;
|
|
}
|
|
|
|
.executor-meta {
|
|
display: grid;
|
|
gap: 4px;
|
|
padding-top: 10px;
|
|
border-top: 1px solid var(--color-border);
|
|
color: var(--color-text-muted);
|
|
font-size: 12px;
|
|
}
|
|
|
|
.executor-footer {
|
|
display: grid;
|
|
gap: 8px;
|
|
}
|
|
|
|
.executor-note {
|
|
margin: 0;
|
|
color: var(--color-text-muted);
|
|
font-size: 12px;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.executor-instruction {
|
|
width: 100%;
|
|
min-width: 0;
|
|
padding: 9px 10px;
|
|
border-radius: var(--radius-md);
|
|
border: 1px solid var(--color-border-input);
|
|
background: var(--color-bg-base);
|
|
color: var(--color-text-primary);
|
|
}
|
|
|
|
.executor-actions {
|
|
white-space: normal;
|
|
}
|
|
|
|
.executor-log {
|
|
display: block;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
@media (max-width: 1080px) {
|
|
.providers-layout {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.providers-table {
|
|
min-width: 720px;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 720px) {
|
|
.providers-hero {
|
|
align-items: flex-start;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.providers-hero-meta {
|
|
width: 100%;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.providers-hero-stat {
|
|
flex: 1;
|
|
}
|
|
}
|
|
|
|
.wechat-toolbar {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.wechat-toolbar input,
|
|
.wechat-toolbar select {
|
|
width: 220px;
|
|
max-width: 100%;
|
|
padding: 10px 12px;
|
|
border-radius: var(--radius-md);
|
|
border: 1px solid var(--color-border-input);
|
|
background: var(--color-bg-base);
|
|
color: var(--color-text-primary);
|
|
}
|
|
|
|
.wechat-ok {
|
|
color: #78d39b;
|
|
}
|
|
|
|
/* ── Admin detail / dl ───────────────────────────────── */
|
|
|
|
.admin-dl {
|
|
display: grid;
|
|
grid-template-columns: max-content 1fr;
|
|
gap: 4px 16px;
|
|
font-size: 13px;
|
|
margin: 0;
|
|
}
|
|
|
|
.admin-dl div {
|
|
display: contents;
|
|
}
|
|
|
|
.admin-dl dt {
|
|
color: var(--color-text-muted);
|
|
padding: 4px 0;
|
|
}
|
|
|
|
.admin-dl dd {
|
|
margin: 0;
|
|
padding: 4px 0;
|
|
}
|
|
|
|
/* ── Skill tag ───────────────────────────────────────── */
|
|
|
|
.skill-name-tag {
|
|
margin-left: var(--space-sm);
|
|
padding: 1px 6px;
|
|
border-radius: var(--radius-xs);
|
|
background: var(--color-bg-code);
|
|
font-size: 0.85em;
|
|
}
|
|
|
|
.publish-banner a {
|
|
color: var(--color-text-link);
|
|
word-break: break-all;
|
|
}
|
|
|
|
/* ── Asset gateway / model center ────────────────────── */
|
|
|
|
.asset-gateway-hero {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 20px;
|
|
padding: 20px;
|
|
margin-bottom: 16px;
|
|
border: 1px solid color-mix(in srgb, var(--color-border) 72%, #7c5cff);
|
|
border-radius: var(--radius-lg);
|
|
background: linear-gradient(120deg, rgba(75, 55, 146, .28), rgba(21, 27, 38, .78));
|
|
}
|
|
|
|
.asset-kicker {
|
|
color: #aaa1ff;
|
|
font-size: 11px;
|
|
font-weight: 700;
|
|
letter-spacing: .12em;
|
|
}
|
|
|
|
.asset-gateway-hero h3 {
|
|
margin: 5px 0 6px;
|
|
font-size: 18px;
|
|
}
|
|
|
|
.asset-gateway-hero p {
|
|
max-width: 620px;
|
|
margin: 0;
|
|
color: var(--color-text-muted);
|
|
font-size: 13px;
|
|
}
|
|
|
|
.asset-toggle,
|
|
.asset-mini-toggle {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 7px;
|
|
white-space: nowrap;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.asset-toggle {
|
|
padding: 9px 12px;
|
|
border-radius: 999px;
|
|
background: rgba(255, 255, 255, .07);
|
|
}
|
|
|
|
.asset-plugin-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
|
|
gap: 14px;
|
|
margin-bottom: 18px;
|
|
}
|
|
|
|
.image-generation-settings {
|
|
display: grid;
|
|
gap: 16px;
|
|
margin-bottom: 22px;
|
|
padding: 20px;
|
|
border: 1px solid color-mix(in srgb, #9374ff 62%, var(--color-border));
|
|
border-radius: var(--radius-lg);
|
|
background: linear-gradient(145deg, rgba(106, 76, 196, .16), var(--color-bg-surface) 48%);
|
|
box-shadow: 0 12px 34px rgba(0, 0, 0, .14);
|
|
}
|
|
|
|
.image-generation-settings-head,
|
|
.image-generation-settings-footer {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 18px;
|
|
}
|
|
|
|
.image-generation-settings-head h3 {
|
|
margin: 5px 0 6px;
|
|
font-size: 18px;
|
|
}
|
|
|
|
.image-generation-settings-head p,
|
|
.image-generation-settings-footer span {
|
|
margin: 0;
|
|
color: var(--color-text-muted);
|
|
font-size: 12px;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.image-generation-provider {
|
|
display: grid;
|
|
max-width: 360px;
|
|
gap: 6px;
|
|
color: var(--color-text-muted);
|
|
font-size: 11px;
|
|
}
|
|
|
|
.image-generation-scope-fieldset {
|
|
min-width: 0;
|
|
margin: 0;
|
|
padding: 14px;
|
|
border: 1px solid var(--color-border);
|
|
border-radius: var(--radius-md);
|
|
}
|
|
|
|
.image-generation-scope-fieldset legend {
|
|
padding: 0 6px;
|
|
color: var(--color-text-muted);
|
|
font-size: 11px;
|
|
}
|
|
|
|
.image-generation-scope-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
gap: 10px;
|
|
}
|
|
|
|
.image-generation-scope-item {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 10px;
|
|
padding: 12px;
|
|
border: 1px solid color-mix(in srgb, var(--color-border) 82%, transparent);
|
|
border-radius: var(--radius-sm);
|
|
background: rgba(255, 255, 255, .025);
|
|
}
|
|
|
|
.image-generation-scope-item input {
|
|
margin-top: 3px;
|
|
}
|
|
|
|
.image-generation-scope-item span {
|
|
display: grid;
|
|
gap: 4px;
|
|
}
|
|
|
|
.image-generation-scope-item strong {
|
|
color: var(--color-text);
|
|
font-size: 13px;
|
|
}
|
|
|
|
.image-generation-scope-item small {
|
|
color: var(--color-text-muted);
|
|
font-size: 11px;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.asset-plugin-card {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 16px;
|
|
min-height: 0;
|
|
padding: 16px;
|
|
border: 1px solid var(--color-border);
|
|
border-radius: var(--radius-lg);
|
|
background: var(--color-bg-surface);
|
|
box-shadow: 0 10px 28px rgba(0, 0, 0, .12);
|
|
}
|
|
|
|
.asset-plugin-grid--balanced .asset-plugin-card {
|
|
min-height: 326px;
|
|
}
|
|
|
|
.asset-plugin-card--violet { border-top: 3px solid #9374ff; }
|
|
.asset-plugin-card--blue { border-top: 3px solid #54a8ff; }
|
|
.asset-plugin-card--amber { border-top: 3px solid #e8af55; }
|
|
.asset-plugin-card--green { border-top: 3px solid #55c79b; }
|
|
|
|
.asset-plugin-card.is-disabled {
|
|
opacity: 0.68;
|
|
}
|
|
|
|
.asset-plugin-card.is-disabled .asset-plugin-fields,
|
|
.asset-plugin-card.is-disabled .asset-plugin-footer button {
|
|
pointer-events: none;
|
|
}
|
|
|
|
.asset-plugin-card.is-disabled .asset-plugin-card-head .asset-mini-toggle {
|
|
pointer-events: auto;
|
|
}
|
|
|
|
.asset-plugin-icon--blue { background: rgba(84, 168, 255, .17); color: #9fd0ff; }
|
|
.asset-plugin-icon--amber { background: rgba(232, 175, 85, .17); color: #f0cc84; }
|
|
.asset-plugin-icon--green { background: rgba(85, 199, 155, .17); color: #8fe0bc; }
|
|
|
|
.image-make-runtime-note {
|
|
padding: 9px 10px;
|
|
border-radius: var(--radius-sm);
|
|
background: rgba(84, 168, 255, .1);
|
|
color: var(--color-text-muted);
|
|
font-size: 11px;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.asset-plugin-card-head {
|
|
display: flex;
|
|
gap: 10px;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.asset-plugin-icon {
|
|
display: grid;
|
|
flex: 0 0 38px;
|
|
width: 38px;
|
|
height: 38px;
|
|
place-items: center;
|
|
border-radius: 12px;
|
|
background: rgba(132, 110, 255, .17);
|
|
color: #c4b8ff;
|
|
font-size: 22px;
|
|
}
|
|
|
|
.asset-plugin-card-head h3 {
|
|
margin: 0 0 4px;
|
|
font-size: 15px;
|
|
}
|
|
|
|
.asset-plugin-card-head p {
|
|
margin: 0;
|
|
color: var(--color-text-muted);
|
|
font-size: 12px;
|
|
line-height: 1.45;
|
|
word-break: break-word;
|
|
}
|
|
|
|
.asset-mini-toggle {
|
|
margin-left: auto;
|
|
color: var(--color-text-muted);
|
|
font-size: 12px;
|
|
}
|
|
|
|
.asset-plugin-fields {
|
|
display: grid;
|
|
gap: 9px;
|
|
}
|
|
|
|
.asset-plugin-fields label {
|
|
display: grid;
|
|
gap: 5px;
|
|
color: var(--color-text-muted);
|
|
font-size: 11px;
|
|
}
|
|
|
|
.asset-plugin-fields select {
|
|
width: 100%;
|
|
min-width: 0;
|
|
}
|
|
|
|
.asset-image-make-note,
|
|
.asset-no-llm {
|
|
padding: 9px 10px;
|
|
border-radius: var(--radius-sm);
|
|
background: rgba(132, 110, 255, .1);
|
|
color: var(--color-text-muted);
|
|
font-size: 11px;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.asset-purpose-fieldset {
|
|
min-width: 0;
|
|
margin: 2px 0 0;
|
|
padding: 10px;
|
|
border: 1px solid var(--color-border);
|
|
border-radius: var(--radius-sm);
|
|
}
|
|
|
|
.asset-purpose-fieldset legend {
|
|
padding: 0 5px;
|
|
color: var(--color-text-muted);
|
|
font-size: 11px;
|
|
}
|
|
|
|
.asset-purpose-fieldset > p {
|
|
margin: 8px 0 0;
|
|
color: var(--color-text-muted);
|
|
font-size: 10px;
|
|
line-height: 1.45;
|
|
}
|
|
|
|
.asset-purpose-grid small {
|
|
color: var(--color-text-muted);
|
|
line-height: 1.35;
|
|
}
|
|
|
|
.asset-purpose-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
gap: 7px;
|
|
}
|
|
|
|
.asset-purpose-grid label {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 7px;
|
|
padding: 7px;
|
|
border-radius: var(--radius-xs);
|
|
background: rgba(255, 255, 255, .035);
|
|
}
|
|
|
|
.asset-purpose-grid small {
|
|
display: block;
|
|
margin-top: 2px;
|
|
color: var(--color-text-muted);
|
|
font-size: 9px;
|
|
word-break: break-all;
|
|
}
|
|
|
|
.asset-plugin-footer {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 10px;
|
|
margin-top: auto;
|
|
padding-top: 12px;
|
|
border-top: 1px solid var(--color-border);
|
|
}
|
|
|
|
.asset-status {
|
|
color: var(--color-text-muted);
|
|
font-size: 11px;
|
|
}
|
|
|
|
.asset-status.is-on {
|
|
color: #68d8a7;
|
|
}
|
|
|
|
.model-center-hero-actions,
|
|
.model-center-card-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.model-center-section-head {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
margin: 4px 0 12px;
|
|
}
|
|
|
|
.model-center-section-title {
|
|
margin: 0 0 12px;
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.model-center-section-head .model-center-section-title {
|
|
margin: 0;
|
|
}
|
|
|
|
.model-center-card {
|
|
min-height: 0;
|
|
}
|
|
|
|
.model-center-provider-card {
|
|
min-height: 0;
|
|
}
|
|
|
|
.model-center-card-body {
|
|
display: grid;
|
|
gap: 8px;
|
|
}
|
|
|
|
.model-center-card-note {
|
|
margin: 0;
|
|
color: var(--color-text-muted);
|
|
font-size: 12px;
|
|
}
|
|
|
|
.model-center-provider-badges {
|
|
display: flex;
|
|
gap: 6px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.model-center-provider-meta {
|
|
gap: 8px;
|
|
}
|
|
|
|
.model-center-meta-row {
|
|
display: flex;
|
|
align-items: baseline;
|
|
justify-content: space-between;
|
|
gap: 10px;
|
|
padding: 8px 10px;
|
|
border-radius: 8px;
|
|
background: rgba(255, 255, 255, .04);
|
|
color: var(--color-text-muted);
|
|
font-size: 12px;
|
|
}
|
|
|
|
.model-center-meta-row .mono {
|
|
color: var(--color-text-primary);
|
|
text-align: right;
|
|
word-break: break-all;
|
|
}
|
|
|
|
.model-center-vision-grid {
|
|
grid-template-columns: minmax(0, 1fr);
|
|
}
|
|
|
|
.model-center-card .executor-instruction,
|
|
.model-center-card .executor-meta,
|
|
.model-center-card .executor-note,
|
|
.model-center-card .executor-log {
|
|
margin: 0;
|
|
}
|
|
|
|
.model-center-card .executor-actions {
|
|
white-space: normal;
|
|
}
|
|
|
|
.memory-v2-page {
|
|
display: block;
|
|
}
|
|
|
|
.memory-v2-page > .asset-gateway-hero,
|
|
.memory-v2-page > .asset-plugin-grid,
|
|
.memory-v2-page > .model-center-section-title,
|
|
.memory-v2-page > .model-center-card-note,
|
|
.memory-v2-page > .banner {
|
|
width: 100%;
|
|
max-width: 100%;
|
|
}
|
|
|
|
.memory-v2-page .memory-v2-fields input,
|
|
.memory-v2-page .memory-v2-fields select,
|
|
.memory-v2-page .asset-plugin-fields select {
|
|
padding: 10px 12px;
|
|
border-radius: var(--radius-md);
|
|
border: 1px solid var(--color-border-input);
|
|
background: var(--color-bg-base);
|
|
color: var(--color-text-primary);
|
|
}
|
|
|
|
.memory-v2-top-grid {
|
|
grid-template-columns: minmax(0, 1fr);
|
|
}
|
|
|
|
.memory-v2-backend-grid {
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
}
|
|
|
|
.memory-v2-capability-grid {
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
}
|
|
|
|
.memory-v2-page .asset-plugin-grid {
|
|
gap: 12px;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.memory-v2-page .asset-plugin-card {
|
|
gap: 10px;
|
|
padding: 12px 14px;
|
|
box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
|
|
}
|
|
|
|
.memory-v2-card {
|
|
min-height: 0;
|
|
}
|
|
|
|
.memory-v2-backend-intro {
|
|
margin: -4px 0 10px;
|
|
}
|
|
|
|
.memory-v2-backend-details {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.memory-v2-backend-summary {
|
|
display: flex;
|
|
gap: 10px;
|
|
align-items: center;
|
|
list-style: none;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.memory-v2-backend-summary::-webkit-details-marker {
|
|
display: none;
|
|
}
|
|
|
|
.memory-v2-backend-summary-main {
|
|
display: grid;
|
|
gap: 2px;
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.memory-v2-backend-summary-main h3 {
|
|
margin: 0;
|
|
font-size: 15px;
|
|
}
|
|
|
|
.memory-v2-backend-body {
|
|
display: grid;
|
|
gap: 10px;
|
|
padding-top: 10px;
|
|
border-top: 1px solid var(--color-border);
|
|
}
|
|
|
|
.memory-v2-advanced-details {
|
|
border: 1px solid var(--color-border);
|
|
border-radius: var(--radius-md);
|
|
background: rgba(255, 255, 255, .02);
|
|
}
|
|
|
|
.memory-v2-advanced-details > summary {
|
|
padding: 8px 10px;
|
|
color: var(--color-text-muted);
|
|
font-size: 12px;
|
|
cursor: pointer;
|
|
list-style: none;
|
|
}
|
|
|
|
.memory-v2-advanced-details > summary::-webkit-details-marker {
|
|
display: none;
|
|
}
|
|
|
|
.memory-v2-advanced-details .memory-v2-fields {
|
|
padding: 0 10px 10px;
|
|
}
|
|
|
|
.memory-v2-toggle-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
|
|
gap: 8px 12px;
|
|
}
|
|
|
|
.memory-v2-fields {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
|
|
gap: 10px 12px;
|
|
}
|
|
|
|
.memory-v2-fields label {
|
|
display: grid;
|
|
gap: 5px;
|
|
}
|
|
|
|
.memory-v2-fields label > span {
|
|
color: var(--color-text-muted);
|
|
font-size: 11px;
|
|
}
|
|
|
|
.memory-v2-card .inline-check {
|
|
align-items: center;
|
|
color: var(--color-text-muted);
|
|
font-size: 12px;
|
|
}
|
|
|
|
.memory-v2-runtime-health {
|
|
display: grid;
|
|
gap: 3px;
|
|
flex: 1 1 100%;
|
|
color: var(--color-text-muted);
|
|
font-size: 11px;
|
|
}
|
|
|
|
.memory-v2-runtime-health strong {
|
|
color: var(--color-text-primary);
|
|
font-size: 12px;
|
|
}
|
|
|
|
.memory-v2-candidate-review {
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.memory-v2-candidate-list {
|
|
display: grid;
|
|
gap: 10px;
|
|
}
|
|
|
|
.memory-v2-candidate-item {
|
|
display: grid;
|
|
gap: 8px;
|
|
padding: 12px;
|
|
border: 1px solid var(--color-border);
|
|
border-radius: var(--radius-md);
|
|
background: rgba(255, 255, 255, .02);
|
|
}
|
|
|
|
.memory-v2-candidate-item p {
|
|
margin: 0;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.memory-v2-candidate-item small {
|
|
color: var(--color-text-muted);
|
|
}
|
|
|
|
.memory-v2-candidate-meta {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 6px 12px;
|
|
align-items: center;
|
|
color: var(--color-text-muted);
|
|
font-size: 11px;
|
|
}
|
|
|
|
.memory-v2-page .model-center-card-note {
|
|
margin: 0;
|
|
}
|
|
|
|
@media (min-width: 1280px) {
|
|
.memory-v2-backend-grid,
|
|
.memory-v2-capability-grid {
|
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
}
|
|
}
|
|
|
|
@media (max-width: 900px) {
|
|
.memory-v2-backend-grid,
|
|
.memory-v2-capability-grid {
|
|
grid-template-columns: minmax(0, 1fr);
|
|
}
|
|
}
|
|
|
|
@media (max-width: 620px) {
|
|
.asset-gateway-hero,
|
|
.model-center-section-head {
|
|
align-items: flex-start;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.asset-plugin-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.image-generation-settings-head,
|
|
.image-generation-settings-footer {
|
|
align-items: flex-start;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.image-generation-scope-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.asset-plugin-footer {
|
|
align-items: flex-start;
|
|
flex-direction: column;
|
|
}
|
|
}
|
|
|
|
/* ── Capability settings ─────────────────────────────── */
|
|
|
|
.capability-intro {
|
|
margin: 0 0 1rem;
|
|
}
|
|
|
|
.capability-section-title {
|
|
margin: 1.25rem 0 0.75rem;
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.capability-filter-bar {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.capability-filter-btn {
|
|
padding: 0.3rem 0.85rem;
|
|
font-size: 0.8rem;
|
|
border-radius: 999px;
|
|
border: 1px solid var(--color-border-input);
|
|
background: transparent;
|
|
color: var(--color-text-muted);
|
|
cursor: pointer;
|
|
transition: background 0.15s, color 0.15s, border-color 0.15s;
|
|
}
|
|
|
|
.capability-filter-btn:hover {
|
|
background: var(--color-bg-elevated);
|
|
color: var(--color-text-primary);
|
|
}
|
|
|
|
.capability-filter-btn.active {
|
|
background: var(--color-bg-elevated);
|
|
color: var(--color-text-primary);
|
|
border-color: var(--color-text-muted);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.capability-grid {
|
|
display: grid;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
.capability-group {
|
|
border: 1px solid var(--color-border-input);
|
|
border-radius: var(--radius-md, 8px);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.capability-group-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 0.6rem 1rem;
|
|
background: var(--color-bg-elevated);
|
|
border-bottom: 1px solid var(--color-border-input);
|
|
}
|
|
|
|
.capability-group-header h3 {
|
|
margin: 0;
|
|
font-size: 0.8rem;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.06em;
|
|
color: var(--color-text-muted);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.capability-group-count {
|
|
font-size: 0.75rem;
|
|
color: var(--color-text-muted);
|
|
}
|
|
|
|
.capability-group ul {
|
|
list-style: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
.capability-item {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 1rem;
|
|
padding: 0.75rem 1rem;
|
|
}
|
|
|
|
.capability-item + .capability-item {
|
|
border-top: 1px solid var(--color-border-input);
|
|
}
|
|
|
|
.capability-item-info {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.2rem;
|
|
min-width: 0;
|
|
}
|
|
|
|
.capability-label {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
font-weight: 500;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.capability-desc {
|
|
font-size: 0.8rem;
|
|
}
|
|
|
|
.capability-toggle {
|
|
flex-shrink: 0;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.capability-toggle input {
|
|
position: absolute;
|
|
opacity: 0;
|
|
width: 0;
|
|
height: 0;
|
|
}
|
|
|
|
.toggle-track {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
width: 36px;
|
|
height: 20px;
|
|
border-radius: 999px;
|
|
background: var(--color-border-input);
|
|
position: relative;
|
|
transition: background 0.2s;
|
|
}
|
|
|
|
.capability-toggle input:checked + .toggle-track {
|
|
background: #22c55e;
|
|
}
|
|
|
|
.capability-toggle input:disabled + .toggle-track {
|
|
opacity: 0.4;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.toggle-thumb {
|
|
position: absolute;
|
|
left: 3px;
|
|
width: 14px;
|
|
height: 14px;
|
|
border-radius: 50%;
|
|
background: #fff;
|
|
transition: left 0.2s;
|
|
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
.capability-toggle input:checked + .toggle-track .toggle-thumb {
|
|
left: 19px;
|
|
}
|
|
|
|
.risk-pill {
|
|
font-size: 0.7rem;
|
|
font-weight: 600;
|
|
padding: 0.1rem 0.4rem;
|
|
border-radius: 999px;
|
|
}
|
|
|
|
.risk-low {
|
|
background: rgba(34, 197, 94, 0.15);
|
|
color: #16a34a;
|
|
}
|
|
|
|
.risk-medium {
|
|
background: rgba(234, 179, 8, 0.15);
|
|
color: #ca8a04;
|
|
}
|
|
|
|
.risk-high {
|
|
background: rgba(239, 68, 68, 0.15);
|
|
color: #dc2626;
|
|
}
|
|
|
|
.capability-actions {
|
|
display: flex;
|
|
gap: 0.75rem;
|
|
margin-top: 1rem;
|
|
}
|
|
|
|
.capability-user-picker {
|
|
margin-bottom: 0.75rem;
|
|
}
|
|
|
|
/* ── Pagination ──────────────────────────────────────── */
|
|
|
|
.pagination {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
padding: 12px 0 4px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.pagination-info {
|
|
font-size: 12px;
|
|
color: var(--color-text-muted);
|
|
}
|
|
|
|
.pagination-controls {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
}
|
|
|
|
.pagination-btn {
|
|
min-width: 32px;
|
|
height: 32px;
|
|
padding: 0 6px;
|
|
border: 1px solid var(--color-border-input);
|
|
border-radius: var(--radius-sm);
|
|
background: var(--color-bg-base);
|
|
color: var(--color-text-secondary);
|
|
font-size: 13px;
|
|
cursor: pointer;
|
|
transition: background 0.15s, border-color 0.15s;
|
|
}
|
|
|
|
.pagination-btn:hover:not(:disabled) {
|
|
background: var(--color-bg-elevated);
|
|
border-color: var(--color-accent);
|
|
}
|
|
|
|
.pagination-btn.active {
|
|
background: var(--color-accent);
|
|
border-color: var(--color-accent);
|
|
color: white;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.pagination-btn:disabled {
|
|
opacity: 0.35;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.pagination-ellipsis {
|
|
padding: 0 4px;
|
|
color: var(--color-text-muted);
|
|
font-size: 13px;
|
|
}
|
|
|
|
/* ── Users page ──────────────────────────────────────── */
|
|
|
|
.users-toolbar {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.users-search-input {
|
|
padding: 6px 10px;
|
|
border-radius: var(--radius-md);
|
|
border: 1px solid var(--color-border-input);
|
|
background: var(--color-bg-base);
|
|
color: var(--color-text-primary);
|
|
font-size: 13px;
|
|
width: 180px;
|
|
}
|
|
|
|
.users-search-input:focus {
|
|
outline: none;
|
|
border-color: var(--color-border-input-focus);
|
|
}
|
|
|
|
.users-total-badge {
|
|
margin-left: 8px;
|
|
font-size: 12px;
|
|
font-weight: 400;
|
|
color: var(--color-text-muted);
|
|
}
|
|
|
|
.admin-table-path {
|
|
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
font-size: 11px;
|
|
color: var(--color-text-muted);
|
|
max-width: 200px;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.table-row-dimmed {
|
|
opacity: 0.5;
|
|
}
|
|
|
|
.role-tag {
|
|
display: inline-block;
|
|
padding: 2px 8px;
|
|
border-radius: var(--radius-pill);
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.role-user {
|
|
background: var(--color-bg-elevated);
|
|
color: var(--color-text-muted);
|
|
}
|
|
|
|
.role-admin {
|
|
background: rgba(61, 139, 253, 0.15);
|
|
color: #6ab0ff;
|
|
}
|
|
|
|
.status-tag {
|
|
display: inline-block;
|
|
padding: 2px 8px;
|
|
border-radius: var(--radius-pill);
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.status-active {
|
|
background: rgba(34, 197, 94, 0.12);
|
|
color: #16a34a;
|
|
}
|
|
|
|
.status-disabled {
|
|
background: rgba(239, 68, 68, 0.1);
|
|
color: #dc2626;
|
|
}
|
|
|
|
.status-suspended {
|
|
background: rgba(234, 179, 8, 0.12);
|
|
color: #ca8a04;
|
|
}
|
|
|
|
/* ── Billing page ────────────────────────────────────── */
|
|
|
|
.billing-toolbar {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.billing-filter-select {
|
|
padding: 6px 10px;
|
|
border-radius: var(--radius-md);
|
|
border: 1px solid var(--color-border-input);
|
|
background: var(--color-bg-base);
|
|
color: var(--color-text-primary);
|
|
font-size: 13px;
|
|
}
|
|
|
|
.billing-tab-content {
|
|
padding-top: 4px;
|
|
}
|
|
|
|
.billing-query-btn {
|
|
padding: 6px 14px;
|
|
min-width: unset;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.billing-time {
|
|
color: var(--color-text-muted);
|
|
font-size: 12px;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.billing-num {
|
|
font-variant-numeric: tabular-nums;
|
|
text-align: right;
|
|
}
|
|
|
|
.billing-note {
|
|
color: var(--color-text-muted);
|
|
font-size: 12px;
|
|
}
|
|
|
|
.billing-empty {
|
|
padding: 24px 0;
|
|
text-align: center;
|
|
}
|
|
|
|
.text-income {
|
|
color: #22c55e;
|
|
}
|
|
|
|
.ledger-type-tag {
|
|
display: inline-block;
|
|
padding: 2px 8px;
|
|
border-radius: var(--radius-pill);
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.ledger-type-recharge {
|
|
background: rgba(34, 197, 94, 0.15);
|
|
color: #16a34a;
|
|
}
|
|
|
|
.ledger-type-deduct {
|
|
background: rgba(239, 68, 68, 0.1);
|
|
color: #dc2626;
|
|
}
|
|
|
|
.ledger-type-refund {
|
|
background: rgba(99, 102, 241, 0.15);
|
|
color: #818cf8;
|
|
}
|
|
|
|
.ledger-type-adjust {
|
|
background: rgba(234, 179, 8, 0.15);
|
|
color: #ca8a04;
|
|
}
|
|
|
|
/* UserCombobox */
|
|
.user-combobox {
|
|
position: relative;
|
|
}
|
|
|
|
/* Full-width row when inside a vertical form */
|
|
.admin-form .user-combobox {
|
|
grid-column: 1 / -1;
|
|
}
|
|
|
|
/* Compact width when inside a horizontal toolbar */
|
|
.billing-toolbar .user-combobox {
|
|
min-width: 0;
|
|
width: 200px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.billing-toolbar .user-combobox .user-combobox-input-wrap {
|
|
min-height: 32px;
|
|
padding: 0 6px;
|
|
}
|
|
|
|
.billing-toolbar .user-combobox .user-combobox-input {
|
|
font-size: 13px;
|
|
padding: 4px 0;
|
|
}
|
|
|
|
.billing-toolbar .user-combobox .user-combobox-selected {
|
|
font-size: 13px;
|
|
padding: 4px 0;
|
|
}
|
|
|
|
.user-combobox-input-wrap {
|
|
display: flex;
|
|
align-items: center;
|
|
border: 1px solid var(--color-border-input);
|
|
border-radius: var(--radius-md);
|
|
background: var(--color-bg-base);
|
|
padding: 0 8px;
|
|
cursor: text;
|
|
min-height: 40px;
|
|
gap: 6px;
|
|
}
|
|
|
|
.user-combobox-input-wrap:focus-within {
|
|
border-color: var(--color-border-input-focus);
|
|
}
|
|
|
|
.user-combobox-input {
|
|
flex: 1;
|
|
border: none;
|
|
background: transparent;
|
|
color: var(--color-text-primary);
|
|
font-size: 13px;
|
|
outline: none;
|
|
padding: 6px 0;
|
|
min-width: 0;
|
|
}
|
|
|
|
.user-combobox-input::placeholder {
|
|
color: var(--color-text-faint);
|
|
}
|
|
|
|
.user-combobox-selected {
|
|
flex: 1;
|
|
font-size: 13px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 6px 0;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.user-combobox-balance {
|
|
margin-left: auto;
|
|
color: var(--color-text-muted);
|
|
font-size: 12px;
|
|
}
|
|
|
|
.user-combobox-clear {
|
|
background: none;
|
|
border: none;
|
|
color: var(--color-text-faint);
|
|
cursor: pointer;
|
|
font-size: 16px;
|
|
line-height: 1;
|
|
padding: 0 2px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.user-combobox-clear:hover {
|
|
color: var(--color-text-primary);
|
|
}
|
|
|
|
.user-combobox-dropdown {
|
|
position: absolute;
|
|
top: calc(100% + 4px);
|
|
left: 0;
|
|
right: 0;
|
|
background: var(--color-bg-elevated);
|
|
border: 1px solid var(--color-border);
|
|
border-radius: var(--radius-md);
|
|
max-height: 240px;
|
|
overflow-y: auto;
|
|
z-index: 200;
|
|
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
|
|
}
|
|
|
|
.user-combobox-option {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 8px 12px;
|
|
cursor: pointer;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.user-combobox-option:hover {
|
|
background: var(--color-bg-active);
|
|
}
|
|
|
|
.user-combobox-name {
|
|
font-weight: 500;
|
|
}
|
|
|
|
.user-combobox-meta {
|
|
font-size: 12px;
|
|
}
|
|
|
|
.user-combobox-bal {
|
|
margin-left: auto;
|
|
color: var(--color-text-muted);
|
|
font-size: 12px;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.user-combobox-empty {
|
|
padding: 10px 12px;
|
|
color: var(--color-text-faint);
|
|
font-size: 13px;
|
|
}
|
|
|
|
/* Subscription tab */
|
|
.admin-select {
|
|
height: 40px;
|
|
padding: 0 10px;
|
|
border: 1px solid var(--color-border-input);
|
|
border-radius: var(--radius-md);
|
|
background: var(--color-bg-base);
|
|
color: var(--color-text-base);
|
|
font-size: 14px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.billing-status-select {
|
|
width: 110px;
|
|
flex-shrink: 0;
|
|
height: 32px;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.billing-toolbar .admin-select {
|
|
height: 32px;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.admin-btn-danger {
|
|
padding: 4px 10px;
|
|
border: 1px solid var(--color-danger, #ef4444);
|
|
border-radius: var(--radius-sm, 6px);
|
|
background: transparent;
|
|
color: var(--color-danger, #ef4444);
|
|
font-size: 12px;
|
|
cursor: pointer;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.admin-btn-danger:hover:not(:disabled) {
|
|
background: rgba(239, 68, 68, 0.08);
|
|
}
|
|
|
|
.admin-btn-danger:disabled {
|
|
opacity: 0.5;
|
|
cursor: default;
|
|
}
|
|
|
|
.ledger-type-active {
|
|
background: rgba(34, 197, 94, 0.15);
|
|
color: #16a34a;
|
|
}
|
|
|
|
.ledger-type-expired {
|
|
background: rgba(156, 163, 175, 0.2);
|
|
color: #6b7280;
|
|
}
|
|
|
|
.ledger-type-cancelled {
|
|
background: rgba(239, 68, 68, 0.12);
|
|
color: #dc2626;
|
|
}
|
|
|
|
/* ── Secondary button ───────────────────────────────────────────── */
|
|
.admin-btn-secondary {
|
|
padding: 5px 12px;
|
|
border: 1px solid var(--color-border);
|
|
border-radius: var(--radius-sm);
|
|
background: transparent;
|
|
color: var(--color-text);
|
|
font-size: 13px;
|
|
cursor: pointer;
|
|
transition: background 0.15s;
|
|
}
|
|
.admin-btn-secondary:hover:not(:disabled) {
|
|
background: var(--color-bg-hover);
|
|
}
|
|
|
|
/* ── Plan form modal ────────────────────────────────────────────── */
|
|
.modal-box {
|
|
width: min(540px, 100%);
|
|
max-height: calc(100vh - 48px);
|
|
overflow-y: auto;
|
|
border: 1px solid var(--color-border);
|
|
border-radius: var(--radius-lg);
|
|
background: var(--color-bg-surface);
|
|
box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
|
|
}
|
|
|
|
.modal-close {
|
|
background: none;
|
|
border: none;
|
|
font-size: 20px;
|
|
line-height: 1;
|
|
cursor: pointer;
|
|
color: var(--color-text-muted);
|
|
padding: 0 4px;
|
|
}
|
|
.modal-close:hover { color: var(--color-text); }
|
|
|
|
.plan-form {
|
|
padding: 16px 20px 20px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
}
|
|
|
|
.plan-form-row {
|
|
display: grid;
|
|
grid-template-columns: 140px 1fr;
|
|
align-items: center;
|
|
gap: 8px;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.plan-form-row input,
|
|
.plan-form-row select {
|
|
width: 100%;
|
|
padding: 6px 10px;
|
|
border: 1px solid var(--color-border);
|
|
border-radius: var(--radius-sm);
|
|
background: var(--color-bg-input, var(--color-bg-surface));
|
|
color: var(--color-text);
|
|
font-size: 13px;
|
|
}
|
|
|
|
.plan-form-hint {
|
|
grid-column: 2;
|
|
font-size: 11px;
|
|
color: var(--color-text-muted);
|
|
margin-top: -4px;
|
|
}
|
|
|
|
.plan-form-check {
|
|
grid-template-columns: auto 1fr;
|
|
gap: 8px;
|
|
align-items: center;
|
|
}
|
|
|
|
.plan-form-actions {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
gap: 8px;
|
|
margin-top: 4px;
|
|
}
|
|
|
|
.system-test-account-panel {
|
|
display: grid;
|
|
gap: 10px;
|
|
padding: 14px;
|
|
border: 1px solid var(--color-border-input);
|
|
border-radius: var(--radius-md);
|
|
background: var(--color-bg-subtle, rgba(0, 0, 0, 0.02));
|
|
}
|
|
|
|
.system-test-account-select {
|
|
display: grid;
|
|
gap: 8px;
|
|
}
|
|
|
|
.system-test-account-actions {
|
|
display: flex;
|
|
gap: 10px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.system-test-account-summary {
|
|
font-size: 13px;
|
|
}
|
|
|
|
/* ── Plan catalog table extras ──────────────────────────────────── */
|
|
.plan-desc {
|
|
font-size: 11px;
|
|
margin-top: 2px;
|
|
}
|
|
|
|
.plan-actions {
|
|
white-space: nowrap;
|
|
display: flex;
|
|
gap: 6px;
|
|
}
|