/* Titano Server admin — DESIGN.md light tokens (the web admin is light-only), mockups Admin.html and AdminUsers.html. */ :root { --bg: #f3f3f3; --chrome: #ffffff; --surface: #ffffff; --card: #ffffff; --card-hover: #f5f5f5; --stroke: #e5e5e5; --stroke-strong: #d1d1d1; --text: #1a1a1a; --text-muted: #616161; --text-faint: #9e9e9e; --accent: #0067c0; --accent-hover: #1975c5; --on-accent: #ffffff; --accent-selected: #e8f1fa; --sun: #e08a1e; --sun-soft: #fff4e5; --success: #0f7b4f; --warning: #9a6700; --error: #c42b1c; --radius: 6px; --radius-card: 8px; --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Noto Sans", sans-serif; --mono: Consolas, "Cascadia Mono", ui-monospace, monospace; } * { box-sizing: border-box; } html, body { height: 100%; } body { margin: 0; font: 13px/1.45 var(--font); color: var(--text); background: var(--bg); } button, input, select { font: inherit; color: inherit; } a { color: var(--accent); } a:hover { color: #004c8c; } h1, h2 { margin: 0; } h2 { font-size: 14px; font-weight: 600; } .num { font-variant-numeric: tabular-nums; } .mono { font-family: var(--mono); } .muted { color: var(--text-muted); } .right { text-align: right; justify-self: end; } .nowrap { white-space: nowrap; } .ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; } .spacer { flex: 1; } [hidden] { display: none !important; } /* Shell */ .shell { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; } .sidebar { background: var(--chrome); border-right: 1px solid var(--stroke); display: flex; flex-direction: column; padding: 16px 12px; position: sticky; top: 0; height: 100vh; } .brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; } .brand img { width: 22px; height: 22px; } .brand strong { display: block; font-size: 14px; } .brand span { display: block; font-size: 11px; color: var(--text-muted); } .brand.large img { width: 40px; height: 40px; } .brand.large strong { font-size: 18px; } .nav { display: grid; gap: 2px; } .nav a { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border-radius: var(--radius); color: var(--text); text-decoration: none; } .nav a:hover { background: var(--card-hover); } .nav a[aria-current="page"] { background: var(--accent-selected); color: var(--accent); font-weight: 600; } .nav svg { flex: none; } .badge { margin-left: auto; min-width: 18px; padding: 0 6px; border-radius: 8px; background: var(--accent); color: var(--on-accent); font-size: 11px; font-weight: 600; text-align: center; } .badge.quiet { background: none; color: var(--text-muted); font-weight: 400; } .sidebar .user { margin-top: auto; border-top: 1px solid var(--stroke); padding: 8px 10px 0; display: flex; align-items: center; gap: 10px; } .user .who { flex: 1; min-width: 0; } .user .who strong { display: block; } .user .who span { color: var(--text-muted); font-size: 11px; } .main { display: flex; flex-direction: column; min-width: 0; } .header { min-height: 60px; display: flex; align-items: center; gap: 14px; padding: 0 24px; border-bottom: 1px solid var(--stroke); background: var(--chrome); flex-wrap: wrap; } .header h1 { font-size: 18px; font-weight: 600; } .header .meta { color: var(--text-muted); } .header .actions { display: flex; align-items: center; gap: 8px; } .header .language { width: auto; } .content { padding: 24px; display: grid; gap: 20px; align-content: start; } /* Controls */ .btn { height: 32px; min-width: 44px; padding: 0 12px; border: 1px solid var(--stroke); border-radius: var(--radius); background: var(--card); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; color: var(--text); white-space: nowrap; } .btn:hover { background: var(--card-hover); border-color: var(--stroke-strong); } .btn:focus-visible, .input:focus-visible, .chip:focus-visible, .link:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; } .btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600; } .btn.primary:hover { background: var(--accent-hover); } .btn.destructive { border-color: var(--error); color: var(--error); background: transparent; } .btn.subtle { border-color: transparent; background: transparent; } .btn.icon { width: 32px; min-width: 32px; padding: 0; } .btn.small { height: 28px; padding: 0 10px; font-size: 12px; } .btn:disabled { opacity: .4; cursor: default; } .btn[aria-pressed="true"] { color: var(--accent); border-color: var(--accent); } .link { border: 0; background: none; padding: 0; color: var(--text); cursor: pointer; text-align: left; } .link:hover { color: var(--accent); } .input { height: 32px; width: 100%; padding: 0 10px; border: 1px solid var(--stroke); border-radius: var(--radius); background: var(--card); } .input:hover { border-color: var(--stroke-strong); } .input:focus { border-color: var(--accent); outline: none; } .input[aria-invalid="true"] { border-color: var(--error); } .input:disabled, .input[readonly] { background: var(--bg); color: var(--text-muted); } .input.small { height: 28px; width: auto; font-size: 12px; } .input.narrow { width: 120px; } .input.search { width: 220px; } input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); margin: 0; } .chips, .button-row { display: flex; gap: 8px; flex-wrap: wrap; } .chip { height: 24px; padding: 0 10px; border: 1px solid var(--stroke); border-radius: 12px; background: var(--card); font-size: 11px; cursor: pointer; } .chip[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); } .chip.warn { border-color: var(--warning); color: var(--warning); cursor: default; display: inline-flex; align-items: center; } .segmented { display: inline-flex; } .segmented .btn { border-radius: 0; margin-left: -1px; } .segmented .btn:first-child { border-radius: var(--radius) 0 0 var(--radius); } .segmented .btn:last-child { border-radius: 0 var(--radius) var(--radius) 0; } /* Panels and tiles */ .panel { background: var(--surface); border: 1px solid var(--stroke); border-radius: var(--radius-card); padding: 16px 18px; display: grid; gap: 10px; align-content: start; min-width: 0; } .panel.flush { padding: 0; gap: 0; overflow-x: auto; } .panel-head { display: flex; align-items: center; gap: 12px; } .panel-head h2 { flex: 1; } .panel-head.padded { padding: 12px 18px; border-bottom: 1px solid var(--stroke); } .empty { padding: 24px 18px; color: var(--text-muted); } .tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; } .tile { gap: 8px; } .tile .label, .tile .sub { font-size: 12px; color: var(--text-muted); } .tile .value { font-size: 26px; font-weight: 600; display: flex; align-items: baseline; gap: 6px; } .tile .value small { font-size: 13px; font-weight: 400; color: var(--text-muted); } .grid { display: grid; gap: 20px; } .grid.two { grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); } .grid.wide-right { grid-template-columns: minmax(300px, 1fr) minmax(400px, 1.4fr); } /* Bars and charts (SVG attributes only: the panel runs under a strict CSP) */ svg.bar { width: 100%; height: 6px; display: block; } svg.bar .track { fill: var(--stroke); } svg.bar .fill { fill: var(--accent); } svg.bar.muted .fill { fill: var(--text-faint); } svg.chart { width: 100%; height: auto; max-height: 220px; } svg.chart .axis { stroke: var(--stroke); } svg.chart .column { fill: var(--accent); } svg.chart.sun .column { fill: var(--sun); } svg.chart text { font: 10px var(--font); text-anchor: middle; } svg.chart .value { fill: var(--text); } svg.chart .label { fill: var(--text-muted); } .progress-cell { display: flex; align-items: center; gap: 8px; min-width: 0; } .progress-cell svg.bar { flex: 1; min-width: 40px; } /* Tables (grid rows, 52 px in the admin) */ .table { display: grid; min-width: 0; } .table .thead, .table .row { display: grid; gap: 12px; align-items: center; padding: 0 18px; } .table .thead { font-size: 11px; color: var(--text-muted); padding-top: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--stroke); } .table .row { min-height: 52px; border-bottom: 1px solid var(--stroke); } .table .row:hover { background: var(--card-hover); } .table .row.dim { color: var(--text-muted); } .table.compact .row { min-height: 32px; padding: 0; grid-template-columns: 1fr auto auto auto; border-bottom: 0; } .table.compact .row:hover { background: none; } .table.users .thead, .table.users .row { grid-template-columns: minmax(110px, 1.4fr) 90px minmax(100px, 1.2fr) minmax(80px, 1fr) 70px 70px 230px; } .table.jobs .thead, .table.jobs .row { grid-template-columns: 110px minmax(140px, 1.5fr) 100px minmax(110px, 1fr) 100px 80px 280px; } .table.jobs-mini .thead, .table.jobs-mini .row { grid-template-columns: 96px minmax(120px, 1.5fr) 92px minmax(100px, 1fr) 90px 80px; padding: 0; min-height: 40px; } .table.jobs-mini .row { border-bottom: 0; } .table.nodes .thead, .table.nodes .row { grid-template-columns: minmax(140px, 1fr) 120px minmax(140px, 1fr) 170px 100px 100px; } .table.audit .thead, .table.audit .row { grid-template-columns: 170px 120px 170px minmax(160px, 1fr) 130px; min-height: 40px; } .table-foot { display: flex; align-items: center; gap: 16px; padding: 10px 18px; font-size: 12px; } .row-actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; } .person { display: flex; align-items: center; gap: 10px; min-width: 0; } .stack { display: flex; flex-direction: column; min-width: 0; } .stack small { font-size: 11px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .avatar { width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--accent-selected); color: var(--accent); display: grid; place-items: center; font-weight: 600; } .avatar.uploader { background: var(--sun-soft); color: var(--warning); } .row.dim .avatar { background: #eeeeee; color: var(--text-muted); } .state { white-space: nowrap; } .state.running { color: var(--accent); } .state.done { color: var(--success); } .state.failed { color: var(--error); } .state.paused { color: var(--warning); } .state.queued, .state.cancelled { color: var(--text-muted); } .activity { display: grid; grid-template-columns: 64px 1fr; column-gap: 12px; row-gap: 9px; font-size: 12px; } pre.log { margin: 0; padding: 12px 18px; background: var(--bg); border-top: 1px solid var(--stroke); font: 12px/1.5 var(--mono); white-space: pre-wrap; overflow: auto; max-height: 260px; } pre.log.tall { max-height: 60vh; border-top: 0; } /* Forms */ .split { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: start; } .side { width: 340px; } .form { display: grid; gap: 12px; } .form label { display: grid; gap: 6px; color: var(--text-muted); } .form label.check, label.check { display: flex; align-items: center; gap: 8px; color: var(--text); } .form fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; } .form legend { color: var(--text-muted); margin-bottom: 8px; } .form h2 { font-size: 16px; } .inline { display: flex; align-items: center; gap: 8px; } .buttons { display: flex; gap: 8px; justify-content: flex-end; } .error { color: var(--error); min-height: 18px; } .settings { display: grid; gap: 20px; } .field { display: grid; grid-template-columns: 180px minmax(0, 420px); align-items: center; gap: 12px; color: var(--text-muted); } .settings-form .field { grid-template-columns: 140px minmax(0, 1fr); } .fingerprint { font: 12px var(--mono); color: var(--text); overflow-wrap: anywhere; } /* Dialogs and toasts */ dialog.dialog { border: 1px solid var(--stroke); border-radius: 12px; padding: 20px 22px; width: 420px; max-width: calc(100vw - 32px); box-shadow: 0 8px 24px rgba(0, 0, 0, .18); } dialog.dialog::backdrop { background: rgba(0, 0, 0, .25); } dialog.dialog form { display: grid; gap: 14px; } dialog.dialog h2 { font-size: 16px; } dialog.dialog p { margin: 0; color: var(--text-muted); } #toasts { position: fixed; right: 24px; bottom: 24px; display: grid; gap: 8px; z-index: 10; } .toast { width: 420px; max-width: calc(100vw - 48px); padding: 12px 14px; background: var(--card); border: 1px solid var(--stroke); border-left: 3px solid var(--accent); border-radius: var(--radius-card); box-shadow: 0 4px 16px rgba(0, 0, 0, .12); } .toast.error { border-left-color: var(--error); } /* About */ .about dl { display: grid; grid-template-columns: 180px 1fr; gap: 8px 16px; margin: 0; } .about dt { color: var(--text-muted); } .about dd { margin: 0; overflow-wrap: anywhere; } /* Login */ .login { min-height: 100vh; display: grid; place-items: center; padding: 16px; } .login form { width: 360px; max-width: 100%; display: grid; gap: 14px; } .login .brand { padding: 0 0 8px; } .login h1 { font-size: 16px; font-weight: 600; } .login label { display: grid; gap: 6px; color: var(--text-muted); } .login .row { display: flex; gap: 8px; } @media (max-width: 900px) { .shell { grid-template-columns: 1fr; } .sidebar { flex-direction: row; overflow-x: auto; padding: 8px; position: static; height: auto; } .sidebar .brand, .sidebar .user { display: none; } .nav { display: flex; gap: 4px; } .nav a span:not(.badge) { display: none; } .split, .grid.wide-right { grid-template-columns: 1fr; } .side { width: auto; } .field { grid-template-columns: 1fr; } }