전 저장소 리팩터링과 SSOT 정비
This commit is contained in:
parent
14ecbd4e7d
commit
3dfddcac6f
173 changed files with 19679 additions and 6952 deletions
766
apps/web/src/pages/admin/admin-ai.css
Normal file
766
apps/web/src/pages/admin/admin-ai.css
Normal file
|
|
@ -0,0 +1,766 @@
|
|||
.aic {
|
||||
width: 100%;
|
||||
display: grid;
|
||||
gap: 16px;
|
||||
color: var(--text-body);
|
||||
}
|
||||
|
||||
.aic-head {
|
||||
display: flex;
|
||||
align-items: flex-end;
|
||||
justify-content: space-between;
|
||||
gap: 20px;
|
||||
padding: 2px;
|
||||
}
|
||||
|
||||
.aic-head h1 {
|
||||
margin: 7px 0 0;
|
||||
color: var(--text-strong);
|
||||
font-size: clamp(1.65rem, 2.4vw, 2.2rem);
|
||||
line-height: 1.12;
|
||||
letter-spacing: -0.035em;
|
||||
}
|
||||
|
||||
.aic-head p {
|
||||
max-width: 720px;
|
||||
margin: 8px 0 0;
|
||||
color: var(--text-body);
|
||||
font-size: var(--fs-sm);
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
.aic-head__actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.aic-head__stamp {
|
||||
color: var(--text-muted);
|
||||
font-size: 12px;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.aic-head__stamp b {
|
||||
display: block;
|
||||
margin-top: 2px;
|
||||
color: var(--text-body);
|
||||
font-family: var(--font-num);
|
||||
font-weight: 650;
|
||||
}
|
||||
|
||||
.aic-alert {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
padding: 12px 14px;
|
||||
border: 1px solid color-mix(in srgb, var(--crit-solid) 34%, var(--border-subtle));
|
||||
border-radius: var(--radius);
|
||||
background: var(--crit-tint);
|
||||
color: var(--crit-text);
|
||||
font-size: var(--fs-sm);
|
||||
}
|
||||
|
||||
.aic-source {
|
||||
display: grid;
|
||||
grid-template-columns: 11px minmax(0, 1fr) auto;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
padding: 13px 14px;
|
||||
border: 1px solid var(--border-subtle);
|
||||
border-radius: var(--radius);
|
||||
background: var(--glass-surface-inset);
|
||||
box-shadow: var(--glass-inset-shadow);
|
||||
backdrop-filter: var(--glass-blur);
|
||||
}
|
||||
|
||||
.aic-source__dot {
|
||||
width: 9px;
|
||||
height: 9px;
|
||||
border-radius: 50%;
|
||||
background: var(--warn-solid);
|
||||
box-shadow: 0 0 0 4px color-mix(in srgb, var(--warn-solid) 14%, transparent);
|
||||
}
|
||||
|
||||
.aic-source__dot.is-live {
|
||||
background: var(--pos-solid);
|
||||
box-shadow: 0 0 0 4px color-mix(in srgb, var(--pos-solid) 14%, transparent);
|
||||
}
|
||||
|
||||
.aic-source b,
|
||||
.aic-source span {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.aic-source b {
|
||||
color: var(--text-strong);
|
||||
font-size: var(--fs-sm);
|
||||
}
|
||||
|
||||
.aic-source div > span {
|
||||
margin-top: 2px;
|
||||
color: var(--text-muted);
|
||||
font-size: 12px;
|
||||
line-height: 1.45;
|
||||
}
|
||||
|
||||
.aic-window,
|
||||
.aic-mode {
|
||||
display: flex;
|
||||
gap: 3px;
|
||||
padding: 3px;
|
||||
border: 1px solid var(--border-subtle);
|
||||
border-radius: var(--radius-sm);
|
||||
background: var(--bg-surface-2);
|
||||
}
|
||||
|
||||
.aic-window button,
|
||||
.aic-mode button {
|
||||
min-height: 34px;
|
||||
padding: 0 11px;
|
||||
border: 0;
|
||||
border-radius: 4px;
|
||||
background: transparent;
|
||||
color: var(--text-muted);
|
||||
font: 650 12px/1 var(--font-sans);
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.aic-window button:hover,
|
||||
.aic-mode button:hover {
|
||||
color: var(--text-strong);
|
||||
background: var(--neutral-100);
|
||||
}
|
||||
|
||||
.aic-window button.is-active,
|
||||
.aic-mode button.is-active {
|
||||
color: var(--text-on-accent);
|
||||
background: var(--accent);
|
||||
}
|
||||
|
||||
.aic-window button:focus-visible,
|
||||
.aic-mode button:focus-visible {
|
||||
outline: 2px solid var(--focus-ring);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
|
||||
.aic-ledger {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(5, minmax(0, 1fr));
|
||||
overflow: hidden;
|
||||
border: 1px solid var(--border-subtle);
|
||||
border-radius: var(--radius);
|
||||
background: var(--bg-surface);
|
||||
box-shadow: var(--shadow-sm);
|
||||
}
|
||||
|
||||
.aic-ledger article {
|
||||
min-width: 0;
|
||||
padding: 14px;
|
||||
}
|
||||
|
||||
.aic-ledger article + article {
|
||||
border-left: 1px solid var(--border-subtle);
|
||||
}
|
||||
|
||||
.aic-ledger span,
|
||||
.aic-ledger small {
|
||||
display: block;
|
||||
color: var(--text-muted);
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
.aic-ledger span {
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.aic-ledger b {
|
||||
display: block;
|
||||
margin: 8px 0 5px;
|
||||
overflow: hidden;
|
||||
color: var(--text-strong);
|
||||
font-family: var(--font-num);
|
||||
font-size: clamp(1.2rem, 2vw, 1.65rem);
|
||||
line-height: 1;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.aic-grid {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1.65fr) minmax(320px, 0.85fr);
|
||||
align-items: start;
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
.aic-column {
|
||||
min-width: 0;
|
||||
display: grid;
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
.aic-panel {
|
||||
min-width: 0;
|
||||
padding: 17px;
|
||||
border: 1px solid var(--border-subtle);
|
||||
border-radius: var(--radius);
|
||||
background: var(--glass-surface-strong);
|
||||
box-shadow: var(--glass-inset-shadow);
|
||||
backdrop-filter: var(--glass-blur);
|
||||
}
|
||||
|
||||
.aic-panel__head {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
justify-content: space-between;
|
||||
gap: 14px;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
.aic-eyebrow {
|
||||
display: block;
|
||||
color: var(--accent-deep);
|
||||
font: 750 10px/1.2 var(--font-num);
|
||||
letter-spacing: 0.12em;
|
||||
}
|
||||
|
||||
.aic-panel h2 {
|
||||
margin: 5px 0 0;
|
||||
color: var(--text-strong);
|
||||
font-size: 1rem;
|
||||
line-height: 1.3;
|
||||
}
|
||||
|
||||
.aic-panel__meta {
|
||||
color: var(--text-muted);
|
||||
font: 600 11px/1.4 var(--font-num);
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.aic-status,
|
||||
.aic-runtime {
|
||||
flex: 0 0 auto;
|
||||
padding: 5px 8px;
|
||||
border-radius: 999px;
|
||||
background: var(--neutral-100);
|
||||
color: var(--text-muted);
|
||||
font-size: 11px;
|
||||
font-weight: 750;
|
||||
}
|
||||
|
||||
.aic-status--ok,
|
||||
.aic-runtime--ok {
|
||||
background: var(--pos-tint);
|
||||
color: var(--pos-text);
|
||||
}
|
||||
|
||||
.aic-status--warn,
|
||||
.aic-status--disabled,
|
||||
.aic-runtime--degraded {
|
||||
background: var(--warn-tint);
|
||||
color: var(--warn-text);
|
||||
}
|
||||
|
||||
.aic-status--exceeded,
|
||||
.aic-runtime--down {
|
||||
background: var(--crit-tint);
|
||||
color: var(--crit-text);
|
||||
}
|
||||
|
||||
.aic-budget__split {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
gap: 28px;
|
||||
}
|
||||
|
||||
.aic-metricline {
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
justify-content: space-between;
|
||||
gap: 12px;
|
||||
color: var(--text-muted);
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.aic-metricline b {
|
||||
color: var(--text-strong);
|
||||
font-family: var(--font-num);
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.aic-track {
|
||||
height: 7px;
|
||||
margin: 10px 0 8px;
|
||||
overflow: hidden;
|
||||
border-radius: 999px;
|
||||
background: var(--neutral-100);
|
||||
}
|
||||
|
||||
.aic-track > span {
|
||||
display: block;
|
||||
height: 100%;
|
||||
border-radius: inherit;
|
||||
background: var(--warn-solid);
|
||||
}
|
||||
|
||||
.aic-track--coverage > span {
|
||||
background: var(--accent-bright);
|
||||
}
|
||||
|
||||
.aic-budget p,
|
||||
.aic-note {
|
||||
margin: 0;
|
||||
color: var(--text-muted);
|
||||
font-size: 11px;
|
||||
line-height: 1.55;
|
||||
}
|
||||
|
||||
.aic-chart {
|
||||
display: grid;
|
||||
grid-auto-columns: minmax(44px, 1fr);
|
||||
grid-auto-flow: column;
|
||||
align-items: end;
|
||||
gap: 8px;
|
||||
min-height: 205px;
|
||||
overflow-x: auto;
|
||||
padding: 4px 2px 8px;
|
||||
}
|
||||
|
||||
.aic-chart__day {
|
||||
min-width: 44px;
|
||||
display: grid;
|
||||
grid-template-rows: 18px 126px auto auto;
|
||||
gap: 5px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.aic-chart__value,
|
||||
.aic-chart__date,
|
||||
.aic-chart__day small {
|
||||
overflow: hidden;
|
||||
color: var(--text-muted);
|
||||
font: 600 9px/1.2 var(--font-num);
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.aic-chart__rail {
|
||||
display: flex;
|
||||
align-items: flex-end;
|
||||
justify-content: center;
|
||||
border-bottom: 1px solid var(--border-strong);
|
||||
background-image: linear-gradient(to top, color-mix(in srgb, var(--border-subtle) 60%, transparent) 1px, transparent 1px);
|
||||
background-size: 100% 25%;
|
||||
}
|
||||
|
||||
.aic-chart__bar {
|
||||
width: min(24px, 68%);
|
||||
min-height: 3px;
|
||||
border-radius: 3px 3px 0 0;
|
||||
background: var(--accent-bright);
|
||||
transition: height var(--dur-base) var(--ease-out);
|
||||
}
|
||||
|
||||
.aic-chart__date {
|
||||
color: var(--text-body);
|
||||
}
|
||||
|
||||
.aic-empty {
|
||||
display: grid;
|
||||
min-height: 112px;
|
||||
place-items: center;
|
||||
padding: 18px;
|
||||
border: 1px dashed var(--border-strong);
|
||||
border-radius: var(--radius-sm);
|
||||
color: var(--text-muted);
|
||||
font-size: var(--fs-sm);
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.aic-table-wrap {
|
||||
max-width: 100%;
|
||||
overflow-x: auto;
|
||||
}
|
||||
|
||||
.aic-table {
|
||||
width: 100%;
|
||||
min-width: 720px;
|
||||
border-collapse: collapse;
|
||||
font: 600 11px/1.4 var(--font-num);
|
||||
}
|
||||
|
||||
.aic-table th,
|
||||
.aic-table td {
|
||||
padding: 10px 9px;
|
||||
border-bottom: 1px solid var(--border-subtle);
|
||||
text-align: right;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.aic-table th {
|
||||
color: var(--text-muted);
|
||||
font-size: 10px;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.aic-table th:first-child,
|
||||
.aic-table td:first-child {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.aic-table tbody tr:last-child td {
|
||||
border-bottom: 0;
|
||||
}
|
||||
|
||||
.aic-table td {
|
||||
color: var(--text-body);
|
||||
}
|
||||
|
||||
.aic-table td:first-child b,
|
||||
.aic-table td:first-child span {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.aic-table td:first-child b {
|
||||
max-width: 220px;
|
||||
overflow: hidden;
|
||||
color: var(--text-strong);
|
||||
font-family: var(--font-sans);
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.aic-table td:first-child span {
|
||||
margin-top: 2px;
|
||||
color: var(--text-muted);
|
||||
font-size: 10px;
|
||||
}
|
||||
|
||||
.aic-share {
|
||||
display: inline-block;
|
||||
width: 36px;
|
||||
height: 4px;
|
||||
margin-right: 6px;
|
||||
overflow: hidden;
|
||||
vertical-align: middle;
|
||||
border-radius: 999px;
|
||||
background: var(--neutral-100);
|
||||
}
|
||||
|
||||
.aic-share > span {
|
||||
display: block;
|
||||
height: 100%;
|
||||
background: var(--clay);
|
||||
}
|
||||
|
||||
.aic-engine {
|
||||
border-color: color-mix(in srgb, var(--accent) 34%, var(--border-subtle));
|
||||
}
|
||||
|
||||
.aic-mode {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
margin-bottom: 14px;
|
||||
}
|
||||
|
||||
.aic-mode button {
|
||||
min-width: 0;
|
||||
white-space: normal;
|
||||
line-height: 1.25;
|
||||
}
|
||||
|
||||
.aic-engine .vg-field + .vg-field {
|
||||
margin-top: 13px;
|
||||
}
|
||||
|
||||
.aic-engine .vg-field__label {
|
||||
color: var(--text-strong);
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.aic-engine .vg-field__hint {
|
||||
color: var(--text-muted);
|
||||
font-size: 10px;
|
||||
}
|
||||
|
||||
.aic-engine .vg-input {
|
||||
width: 100%;
|
||||
font-family: var(--font-num);
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.aic-config-meta {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
gap: 0;
|
||||
margin: 16px 0 0;
|
||||
border: 1px solid var(--border-subtle);
|
||||
border-radius: var(--radius-sm);
|
||||
}
|
||||
|
||||
.aic-config-meta div {
|
||||
min-width: 0;
|
||||
padding: 9px;
|
||||
}
|
||||
|
||||
.aic-config-meta div:nth-child(even) {
|
||||
border-left: 1px solid var(--border-subtle);
|
||||
}
|
||||
|
||||
.aic-config-meta div:nth-child(n + 3) {
|
||||
border-top: 1px solid var(--border-subtle);
|
||||
}
|
||||
|
||||
.aic-config-meta dt,
|
||||
.aic-config-meta dd {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.aic-config-meta dt {
|
||||
color: var(--text-muted);
|
||||
font-size: 10px;
|
||||
}
|
||||
|
||||
.aic-config-meta dd {
|
||||
margin-top: 3px;
|
||||
overflow: hidden;
|
||||
color: var(--text-body);
|
||||
font: 600 10px/1.4 var(--font-num);
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.aic-engine__foot {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 10px;
|
||||
margin-top: 14px;
|
||||
}
|
||||
|
||||
.aic-engine__foot > span {
|
||||
min-width: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 5px;
|
||||
overflow: hidden;
|
||||
color: var(--text-muted);
|
||||
font-size: 10px;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.aic-cache-score {
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
gap: 8px;
|
||||
margin-bottom: 14px;
|
||||
}
|
||||
|
||||
.aic-cache-score b {
|
||||
color: var(--text-strong);
|
||||
font: 750 2rem/1 var(--font-num);
|
||||
}
|
||||
|
||||
.aic-cache-score span {
|
||||
color: var(--text-muted);
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
.aic-mini-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
gap: 1px;
|
||||
margin: 0 0 13px;
|
||||
overflow: hidden;
|
||||
border: 1px solid var(--border-subtle);
|
||||
border-radius: var(--radius-sm);
|
||||
background: var(--border-subtle);
|
||||
}
|
||||
|
||||
.aic-mini-grid div {
|
||||
padding: 9px;
|
||||
background: var(--bg-surface);
|
||||
}
|
||||
|
||||
.aic-mini-grid dt,
|
||||
.aic-mini-grid dd {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.aic-mini-grid dt {
|
||||
color: var(--text-muted);
|
||||
font-size: 9px;
|
||||
}
|
||||
|
||||
.aic-mini-grid dd {
|
||||
margin-top: 4px;
|
||||
color: var(--text-strong);
|
||||
font: 700 13px/1 var(--font-num);
|
||||
}
|
||||
|
||||
.aic-integrity {
|
||||
display: grid;
|
||||
gap: 9px;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.aic-integrity div {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(70px, 0.55fr) minmax(0, 1fr);
|
||||
gap: 2px 10px;
|
||||
padding-bottom: 9px;
|
||||
border-bottom: 1px solid var(--border-subtle);
|
||||
}
|
||||
|
||||
.aic-integrity div:last-child {
|
||||
padding-bottom: 0;
|
||||
border-bottom: 0;
|
||||
}
|
||||
|
||||
.aic-integrity dt,
|
||||
.aic-integrity dd {
|
||||
margin: 0;
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
.aic-integrity dt {
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
.aic-integrity dd {
|
||||
overflow: hidden;
|
||||
color: var(--text-strong);
|
||||
font-weight: 700;
|
||||
text-align: right;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.aic-integrity span {
|
||||
grid-column: 2;
|
||||
color: var(--text-muted);
|
||||
font: 600 9px/1.3 var(--font-num);
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
@media (max-width: 1180px) {
|
||||
.aic-grid {
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
}
|
||||
|
||||
.aic-column--side {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
.aic-engine {
|
||||
grid-row: span 2;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 900px) {
|
||||
.aic-head {
|
||||
align-items: flex-start;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.aic-head__actions {
|
||||
width: 100%;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.aic-source {
|
||||
grid-template-columns: 11px minmax(0, 1fr);
|
||||
}
|
||||
|
||||
.aic-window {
|
||||
grid-column: 1 / -1;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
}
|
||||
|
||||
.aic-ledger {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
.aic-ledger article + article {
|
||||
border-left: 0;
|
||||
}
|
||||
|
||||
.aic-ledger article:nth-child(even) {
|
||||
border-left: 1px solid var(--border-subtle);
|
||||
}
|
||||
|
||||
.aic-ledger article:nth-child(n + 3) {
|
||||
border-top: 1px solid var(--border-subtle);
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 680px) {
|
||||
.aic-head__stamp {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.aic-budget__split,
|
||||
.aic-column--side {
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
}
|
||||
|
||||
.aic-budget__split {
|
||||
gap: 18px;
|
||||
}
|
||||
|
||||
.aic-engine {
|
||||
grid-row: auto;
|
||||
}
|
||||
|
||||
.aic-ledger {
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
}
|
||||
|
||||
.aic-ledger article:nth-child(even) {
|
||||
border-left: 0;
|
||||
}
|
||||
|
||||
.aic-ledger article:nth-child(n + 2) {
|
||||
border-top: 1px solid var(--border-subtle);
|
||||
}
|
||||
|
||||
.aic-ledger article {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(100px, 0.75fr) minmax(0, 1fr);
|
||||
align-items: baseline;
|
||||
gap: 4px 10px;
|
||||
}
|
||||
|
||||
.aic-ledger b {
|
||||
margin: 0;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.aic-ledger small {
|
||||
grid-column: 2;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.aic-panel {
|
||||
padding: 14px;
|
||||
}
|
||||
|
||||
.aic-panel__head {
|
||||
margin-bottom: 14px;
|
||||
}
|
||||
|
||||
.aic-engine__foot {
|
||||
align-items: stretch;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.aic-engine__foot .vg-btn {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.aic-chart__bar {
|
||||
transition: none;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue