/* ========================================================================== ai-image-console · Design Contract tokens + components style: tech-dark / studio console ========================================================================== */ :root { --primary: #E0A340; --primary-hover: #F0B65C; --bg: #0E1116; --surface: #151A21; --surface-2: #1B222B; --border: #262E39; --text: #E6EAF0; --text-sub: #8A95A4; --success: #4FB286; --warning: #E0A340; --danger: #D9645F; --accent-2: #56A8B5; --font-display: "Bahnschrift", "Segoe UI Variable Display", "Microsoft YaHei UI", sans-serif; --font-body: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif; --font-mono: "Cascadia Code", Consolas, "SFMono-Regular", monospace; --r-sm: 4px; --r-md: 8px; --r-lg: 12px; --sh-sm: 0 1px 2px rgba(0, 0, 0, .4); --sh-md: 0 8px 24px rgba(0, 0, 0, .45); --sh-lg: 0 18px 48px rgba(0, 0, 0, .55); --sidebar-w: 232px; --u: 4px; } * { box-sizing: border-box; } html, body { height: 100%; } body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 13px; line-height: 1.55; -webkit-font-smoothing: antialiased; background-image: radial-gradient(1100px 420px at 78% -8%, rgba(224, 163, 64, .10), transparent 60%), radial-gradient(760px 340px at 8% 104%, rgba(86, 168, 181, .07), transparent 62%), linear-gradient(to right, rgba(255, 255, 255, .022) 1px, transparent 1px), linear-gradient(to bottom, rgba(255, 255, 255, .022) 1px, transparent 1px); background-size: auto, auto, 48px 48px, 48px 48px; } h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; margin: 0; letter-spacing: .01em; } a { color: var(--accent-2); text-decoration: none; } a:hover { color: var(--primary-hover); } .mono { font-family: var(--font-mono); font-size: 12px; } .dim { color: var(--text-sub); } .nowrap { white-space: nowrap; } .hidden { display: none !important; } /* ---------------------------------------------------------------- App Shell */ .app-nav { position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w); background: linear-gradient(180deg, #141922, #10141a); border-right: 1px solid var(--border); display: flex; flex-direction: column; padding: 20px 12px 14px; z-index: 30; } .app-brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 18px; } .brand-mark { width: 26px; height: 26px; border-radius: 7px; flex: none; background: conic-gradient(from 210deg, var(--primary), #8a5f1d 55%, var(--accent-2)); box-shadow: 0 0 0 1px rgba(224, 163, 64, .35), 0 4px 14px rgba(224, 163, 64, .22); } .brand-text { display: flex; flex-direction: column; line-height: 1.25; } .brand-text b { font-family: var(--font-display); font-size: 15px; letter-spacing: .04em; } .brand-text small { font-size: 11px; color: var(--text-sub); } .nav-list { display: flex; flex-direction: column; gap: 2px; flex: 1; overflow-y: auto; } .nav-group { margin: 14px 0 4px; padding: 0 10px; font-size: 11px; letter-spacing: .09em; text-transform: uppercase; color: #5d6875; } .nav-item { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border-radius: var(--r-md); color: #b6c0cc; font-size: 13px; position: relative; transition: background .13s ease, color .13s ease; } .nav-item:hover { background: var(--surface-2); color: var(--text); } .nav-ico { display: inline-flex; color: #6f7b89; } .nav-item:hover .nav-ico { color: var(--primary); } /* 激活规则:唯一机制 —— body[data-page] 匹配 */ body[data-page="create"] .app-nav a[data-nav="create"], body[data-page="gallery"] .app-nav a[data-nav="gallery"], body[data-page="records"] .app-nav a[data-nav="records"], body[data-page="providers"] .app-nav a[data-nav="providers"], body[data-page="models"] .app-nav a[data-nav="models"], body[data-page="skills"] .app-nav a[data-nav="skills"] { background: var(--surface-2); color: var(--primary); } body[data-page="create"] .app-nav a[data-nav="create"]::before, body[data-page="gallery"] .app-nav a[data-nav="gallery"]::before, body[data-page="records"] .app-nav a[data-nav="records"]::before, body[data-page="providers"] .app-nav a[data-nav="providers"]::before, body[data-page="models"] .app-nav a[data-nav="models"]::before, body[data-page="skills"] .app-nav a[data-nav="skills"]::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background: var(--primary); } body[data-page="create"] .app-nav a[data-nav="create"] .nav-ico, body[data-page="gallery"] .app-nav a[data-nav="gallery"] .nav-ico, body[data-page="records"] .app-nav a[data-nav="records"] .nav-ico, body[data-page="providers"] .app-nav a[data-nav="providers"] .nav-ico, body[data-page="models"] .app-nav a[data-nav="models"] .nav-ico, body[data-page="skills"] .app-nav a[data-nav="skills"] .nav-ico { color: var(--primary); } .nav-foot { border-top: 1px solid var(--border); padding: 12px 10px 0; font-size: 11px; color: var(--text-sub); display: flex; align-items: center; gap: 7px; } .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px rgba(79, 178, 134, .16); } .dot-warn { background: var(--warning); box-shadow: 0 0 0 3px rgba(224, 163, 64, .16); } .dot-off { background: #55606d; box-shadow: none; } .app-content { margin-left: var(--sidebar-w); min-height: 100%; display: flex; flex-direction: column; } .top-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 24px; border-bottom: 1px solid var(--border); background: rgba(14, 17, 22, .72); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 20; } .crumb { display: flex; align-items: baseline; gap: 10px; } .crumb-sec { font-size: 11px; letter-spacing: .09em; text-transform: uppercase; color: #5d6875; } .crumb-sep { color: #3d454f; } .crumb h1 { font-size: 18px; } .top-actions { display: flex; align-items: center; gap: 8px; } .page-body { padding: 24px; width: 100%; } /* --------------------------------------------------------------- Animations */ @keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } } .stagger > * { animation: rise .34s cubic-bezier(.2, .7, .3, 1) both; } .stagger > *:nth-child(1) { animation-delay: .02s; } .stagger > *:nth-child(2) { animation-delay: .06s; } .stagger > *:nth-child(3) { animation-delay: .10s; } .stagger > *:nth-child(4) { animation-delay: .14s; } .stagger > *:nth-child(5) { animation-delay: .18s; } .stagger > *:nth-child(6) { animation-delay: .22s; } .stagger > *:nth-child(7) { animation-delay: .26s; } .stagger > *:nth-child(8) { animation-delay: .30s; } .stagger > *:nth-child(n+9) { animation-delay: .34s; } /* ------------------------------------------------------------------ Buttons */ .btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 34px; padding: 0 14px; border-radius: var(--r-md); border: 1px solid transparent; background: var(--primary); color: #12161B; font-family: var(--font-body); font-size: 13px; font-weight: 600; cursor: pointer; transition: transform .12s ease, background .13s ease, border-color .13s ease, opacity .13s ease; white-space: nowrap; } .btn:hover { background: var(--primary-hover); transform: translateY(-1px); } .btn:active { transform: translateY(0); } .btn:disabled { opacity: .45; cursor: not-allowed; transform: none; } .btn-secondary { background: transparent; border-color: var(--border); color: var(--text); } .btn-secondary:hover { background: var(--surface-2); border-color: #35404e; } .btn-ghost { background: transparent; color: var(--text-sub); padding: 0 8px; } .btn-ghost:hover { background: var(--surface-2); color: var(--text); } .btn-danger { background: transparent; border-color: rgba(217, 100, 95, .5); color: #ea8f8b; } .btn-danger:hover { background: rgba(217, 100, 95, .14); border-color: var(--danger); } .btn-sm { height: 28px; padding: 0 10px; font-size: 12px; } .btn-lg { height: 40px; padding: 0 18px; font-size: 14px; } .btn .ico { display: inline-flex; } .btn.is-loading { pointer-events: none; position: relative; color: transparent; } .btn.is-loading::after { content: ""; position: absolute; width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(18, 22, 27, .35); border-top-color: #12161B; animation: spin .7s linear infinite; } .btn-secondary.is-loading::after { border-color: rgba(230, 234, 240, .28); border-top-color: var(--text); } @keyframes spin { to { transform: rotate(360deg); } } /* ------------------------------------------------------------------- Cards */ .card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--sh-sm); } .card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--border); } .card-head h3 { font-size: 15px; } .card-head .sub { font-size: 12px; color: var(--text-sub); } .card-body { padding: 16px; } .card-body.tight { padding: 0; } .grid { display: grid; gap: 16px; } .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .split { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 16px; align-items: start; } /* ------------------------------------------------------------------ Fields */ .field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; } .field label { font-size: 12px; color: var(--text-sub); } .field .req { color: var(--primary); } .field .hint { font-size: 11px; color: #616c7a; } input[type=text], input[type=password], input[type=search], input[type=number], select, textarea { width: 100%; height: 34px; padding: 0 10px; background: var(--surface-2); color: var(--text); border: 1px solid var(--border); border-radius: var(--r-md); font-family: var(--font-body); font-size: 13px; outline: none; transition: border-color .13s ease, box-shadow .13s ease; } textarea { height: auto; padding: 8px 10px; resize: vertical; line-height: 1.6; } input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(224, 163, 64, .14); } input::placeholder, textarea::placeholder { color: #5d6875; } input[type=checkbox] { accent-color: var(--primary); width: 14px; height: 14px; } select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-sub) 50%), linear-gradient(135deg, var(--text-sub) 50%, transparent 50%); background-position: calc(100% - 15px) 15px, calc(100% - 10px) 15px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 28px; } .field.has-error input, .field.has-error select { border-color: var(--danger); } .err-msg { font-size: 11px; color: #ea8f8b; display: none; } .field.has-error .err-msg { display: block; } .input-group { display: flex; gap: 8px; } .input-group input { flex: 1; } /* -------------------------------------------------------------------- Tags */ .tag { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: var(--r-sm); border: 1px solid var(--border); background: var(--surface-2); font-size: 11px; color: var(--text-sub); white-space: nowrap; } .tag-success { border-color: rgba(79, 178, 134, .38); color: #7fd3ae; background: rgba(79, 178, 134, .10); } .tag-warn { border-color: rgba(224, 163, 64, .4); color: var(--primary-hover); background: rgba(224, 163, 64, .10); } .tag-danger { border-color: rgba(217, 100, 95, .4); color: #ea8f8b; background: rgba(217, 100, 95, .10); } .tag-info { border-color: rgba(86, 168, 181, .4); color: #86c6d1; background: rgba(86, 168, 181, .10); } /* ------------------------------------------------------------------- Table */ .table-wrap { overflow-x: auto; } table.tbl { width: 100%; border-collapse: collapse; } table.tbl th { text-align: left; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #5d6875; padding: 10px 14px; border-bottom: 1px solid var(--border); white-space: nowrap; } table.tbl td { padding: 11px 14px; border-bottom: 1px solid rgba(38, 46, 57, .6); vertical-align: middle; } table.tbl tbody tr { transition: background .12s ease; } table.tbl tbody tr:hover { background: var(--surface-2); } table.tbl tbody tr:last-child td { border-bottom: none; } .row-click { cursor: pointer; } /* ------------------------------------------------------------------- Toast */ #toast-host { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 90; } .toast { display: flex; align-items: center; gap: 9px; min-width: 240px; padding: 10px 14px; background: var(--surface-2); border: 1px solid var(--border); border-left: 3px solid var(--success); border-radius: var(--r-md); box-shadow: var(--sh-md); font-size: 13px; animation: rise .22s ease both; } .toast.err { border-left-color: var(--danger); } .toast.info { border-left-color: var(--accent-2); } .toast .ico { display: inline-flex; color: var(--success); } .toast.err .ico { color: var(--danger); } .toast.info .ico { color: var(--accent-2); } /* ------------------------------------------------------------------- Modal */ .modal-mask { position: fixed; inset: 0; background: rgba(0, 0, 0, .62); backdrop-filter: blur(3px); display: none; align-items: center; justify-content: center; z-index: 60; padding: 24px; } .modal-mask.open { display: flex; } .modal { width: 100%; max-width: 520px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--sh-lg); animation: rise .22s ease both; max-height: 88vh; display: flex; flex-direction: column; } .modal.wide { max-width: 760px; } .modal-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--border); } .modal-head h3 { font-size: 15px; } .modal-body { padding: 16px; overflow-y: auto; } .modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--border); } .icon-btn { width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: var(--r-md); background: transparent; color: var(--text-sub); cursor: pointer; transition: background .12s ease, color .12s ease; } .icon-btn:hover { background: var(--surface-2); color: var(--text); } /* -------------------------------------------------------------- Empty state */ .empty { border: 1px dashed var(--border); border-radius: var(--r-lg); padding: 40px 24px; text-align: center; color: var(--text-sub); } .empty .ico { color: #4a5461; margin-bottom: 10px; display: inline-flex; } .empty h4 { font-size: 14px; color: var(--text); margin-bottom: 4px; } .empty p { margin: 0 0 14px; font-size: 12px; } .empty code, .empty p code { font-family: var(--font-mono); font-size: 11px; padding: 1px 5px; border: 1px solid var(--border); border-radius: 4px; background: var(--surface-2); color: #cbd3dd; } /* ----------------------------------------------------------------- Toolbar */ .toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; } .toolbar .spacer { flex: 1; } .chip-group { display: inline-flex; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 2px; gap: 2px; } .chip { height: 26px; padding: 0 11px; border-radius: 6px; border: none; background: transparent; color: var(--text-sub); font-size: 12px; font-family: var(--font-body); cursor: pointer; transition: background .12s ease, color .12s ease; } .chip:hover { color: var(--text); } .chip.active { background: var(--surface-2); color: var(--primary); box-shadow: var(--sh-sm); } /* ------------------------------------------------------------- Folder grid */ /* output/ 下的每个子目录 = 一个画廊卡片 */ .folder-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 14px; } .folder-card { border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; cursor: pointer; background: var(--surface); display: flex; flex-direction: column; transition: transform .16s cubic-bezier(.2, .7, .3, 1), border-color .16s ease, box-shadow .16s ease; } .folder-card:hover { transform: translateY(-3px); border-color: #3a4553; box-shadow: var(--sh-md); } .folder-cover { position: relative; aspect-ratio: 4 / 3; background: var(--surface-2); overflow: hidden; } .folder-cover img { width: 100%; height: 100%; object-fit: cover; display: block; } .folder-count { position: absolute; right: 8px; bottom: 8px; padding: 2px 8px; border-radius: 999px; background: rgba(6, 8, 11, .78); color: #e6ebf1; font-size: 11px; font-family: var(--font-mono); } .folder-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 5px; } .folder-name { font-family: var(--font-mono); font-size: 13px; color: #fff; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .folder-meta { font-size: 11px; color: var(--text-sub); } .folder-models { display: flex; gap: 5px; flex-wrap: wrap; } .folder-models .tag { font-size: 10px; padding: 1px 6px; } /* ------------------------------------------------------------------ Gallery */ .gal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; } .gal-item { position: relative; border-radius: var(--r-lg); overflow: hidden; cursor: pointer; border: 1px solid var(--border); background: var(--surface); aspect-ratio: 1 / 1; transition: transform .16s cubic-bezier(.2, .7, .3, 1), border-color .16s ease, box-shadow .16s ease; } .gal-item:hover { transform: translateY(-3px); border-color: #3a4553; box-shadow: var(--sh-md); } .gal-item img { width: 100%; height: 100%; object-fit: cover; display: block; } .gal-meta { position: absolute; inset: auto 0 0 0; padding: 22px 10px 8px; background: linear-gradient(to top, rgba(6, 8, 11, .92), rgba(6, 8, 11, 0)); font-size: 11px; color: #cdd5df; display: flex; flex-direction: column; gap: 2px; } .gal-meta b { font-weight: 600; color: #fff; font-size: 12px; } .gal-tag { position: absolute; top: 8px; left: 8px; } /* ---------------------------------------------------------------- Lightbox */ .lightbox { position: fixed; inset: 0; background: rgba(6, 8, 11, .9); backdrop-filter: blur(6px); display: none; align-items: center; justify-content: center; z-index: 70; padding: 32px; } .lightbox.open { display: flex; } .lb-inner { max-width: 1100px; width: 100%; max-height: calc(100vh - 64px); overflow-y: auto; display: flex; flex-direction: column; gap: 12px; animation: rise .22s ease both; } .lb-stage { display: flex; align-items: center; justify-content: center; gap: 16px; } .lb-stage img { max-height: 74vh; max-width: 100%; border-radius: var(--r-md); box-shadow: var(--sh-lg); } .lb-nav { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border); background: rgba(21, 26, 33, .85); color: var(--text); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none; } .lb-nav:hover { background: var(--surface-2); border-color: #3a4553; } .lb-info { display: flex; gap: 18px; flex-wrap: wrap; font-size: 12px; color: var(--text-sub); } .lb-info b { color: var(--text); font-weight: 600; } .lb-prompt { padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); font-size: 12px; line-height: 1.7; } .lb-prompt b { display: block; margin-bottom: 6px; color: var(--text); } #lbPromptText { max-height: 160px; overflow-y: auto; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text-sub); } /* ------------------------------------------------------------------ Statbox */ .stat { padding: 14px 16px; } .stat .k { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #5d6875; } .stat .v { font-family: var(--font-display); font-size: 24px; margin-top: 4px; } .stat .sub { font-size: 11px; color: var(--text-sub); margin-top: 2px; } /* --------------------------------------------------------------- Model list */ .model-list { display: flex; flex-direction: column; } .model-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid rgba(38, 46, 57, .6); } .model-row:last-child { border-bottom: none; } .model-row:hover { background: var(--surface-2); } .model-row .name { font-family: var(--font-mono); font-size: 12px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; } .model-row .name small { display: block; color: var(--text-sub); font-family: var(--font-body); font-size: 11px; } /* ------------------------------------------------------------------ Switch */ .switch { position: relative; display: inline-block; width: 34px; height: 18px; flex: none; } .switch input { opacity: 0; width: 0; height: 0; } .switch .track { position: absolute; inset: 0; background: #333c48; border-radius: 999px; cursor: pointer; transition: background .15s ease; } .switch .track::before { content: ""; position: absolute; width: 14px; height: 14px; left: 2px; top: 2px; background: #8f9aa8; border-radius: 50%; transition: transform .15s ease, background .15s ease; } .switch input:checked + .track { background: rgba(224, 163, 64, .32); } .switch input:checked + .track::before { transform: translateX(16px); background: var(--primary); } /* ----------------------------------------------------------------- Markdown */ .md { font-size: 13px; line-height: 1.7; color: #cbd3dd; } .md h1, .md h2, .md h3 { color: var(--text); margin: 18px 0 8px; } .md h1 { font-size: 20px; } .md h2 { font-size: 16px; } .md h3 { font-size: 14px; } .md p { margin: 0 0 10px; } .md ul { margin: 0 0 12px; padding-left: 20px; } .md li { margin-bottom: 3px; } .md code { font-family: var(--font-mono); font-size: 12px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 1px 5px; color: #e0c48a; } .md pre { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-md); padding: 12px 14px; overflow-x: auto; margin: 0 0 12px; } .md pre code { background: none; border: none; padding: 0; color: #cbd3dd; } .md table { width: 100%; border-collapse: collapse; margin: 0 0 12px; font-size: 12px; } .md th, .md td { border: 1px solid var(--border); padding: 6px 10px; text-align: left; } .md th { background: var(--surface-2); color: var(--text); } .md blockquote { margin: 0 0 12px; padding: 2px 12px; border-left: 2px solid var(--primary); color: var(--text-sub); } .code-box { font-family: var(--font-mono); font-size: 12px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-md); padding: 10px 12px; color: #9fd4dd; overflow-x: auto; white-space: pre; } .code-box code { font-family: inherit; background: none; border: none; padding: 0; color: #9fd4dd; } /* --------------------------------------------------------------- Agent 流程 */ ol.flow { list-style: none; counter-reset: step; margin: 0 0 12px; padding: 0; } ol.flow > li { counter-increment: step; position: relative; padding: 0 0 12px 30px; margin: 0; border-left: 1px dashed var(--border); margin-left: 11px; } ol.flow > li:last-child { border-left-color: transparent; padding-bottom: 0; } ol.flow > li::before { content: counter(step); position: absolute; left: -11px; top: 0; width: 21px; height: 21px; border-radius: 50%; font-size: 11px; font-family: var(--font-mono); display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-sub); } ol.flow > li.must::before { background: rgba(224, 163, 64, .16); border-color: var(--primary); color: var(--primary); } ol.flow > li b { display: block; font-size: 12.5px; color: var(--text); margin-bottom: 5px; } ol.flow > li .code-box { padding: 7px 10px; font-size: 11px; white-space: normal; word-break: break-word; } ol.flow > li .hint { margin-top: 4px; } .hint { font-size: 11px; color: #616c7a; } .hint code { font-family: var(--font-mono); color: #9fd4dd; } .alert { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: var(--r-md); font-size: 12px; line-height: 1.6; border: 1px solid var(--border); background: var(--surface-2); color: var(--text-sub); } .alert b { color: var(--text); } .alert .ico { flex: none; margin-top: 2px; } .alert-danger { border-color: rgba(217, 100, 95, .42); background: rgba(217, 100, 95, .1); color: #e6a6a1; } .alert-danger b { color: #f0b3ae; } /* -------------------------------------------------------------- Pagination */ .pager { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-sub); } .pager-btns { display: flex; gap: 6px; } /* ------------------------------------------------------------------ Skeleton */ .skel { background: linear-gradient(90deg, var(--surface-2) 25%, #222a35 37%, var(--surface-2) 63%); background-size: 400% 100%; animation: shimmer 1.3s ease infinite; border-radius: var(--r-md); } @keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } } /* --------------------------------------------------------------- Responsive */ @media (max-width: 1100px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .split { grid-template-columns: minmax(0, 1fr); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } } @media (max-width: 860px) { .top-bar, .card-head { flex-wrap: wrap; } .top-actions { flex-wrap: wrap; } .split > * { min-width: 0; } .md { overflow-wrap: anywhere; } .md table { display: block; overflow-x: auto; } .app-nav { position: static; width: auto; flex-direction: row; align-items: center; gap: 8px; overflow-x: auto; padding: 10px 12px; } .app-brand { padding: 0 8px 0 0; } .nav-list { flex-direction: row; gap: 4px; overflow-x: auto; } .nav-group { display: none; } .nav-item { height: 32px; } .nav-foot { display: none; } .app-content { margin-left: 0; } .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); } .page-body { padding: 16px; } }