:root { /* base tokens */ --bg: #0b1224; --bg-2: #0e1730; --surface: #0f1c3a; --card: #0f1b33; --text: #e7eef9; --muted: #9fb2ce; --border: rgba(255, 255, 255, 0.1); --accent: #7aa2ff; --accent-600: #4f7dff; --danger: #ef4444; --ok: #16a34a; --radius-lg: 16px; --radius-md: 12px; --radius-sm: 8px; --gap: 1rem; --maxw: 1120px; color-scheme: dark light; font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial; font-size: 16px; } @media (prefers-color-scheme: light) { :root { --bg: #f6f8fc; --bg-2: #eef2fb; --surface: #ffffff; --card: #ffffff; --text: #0f172a; --muted: #6b7280; --border: #e5e9f2; --accent: #2563eb; --accent-600: #1e40af; } } body.theme-dark { color-scheme: dark; --bg: #0b1224; --bg-2: #0e1730; --surface: #0f1c3a; --card: #0f1b33; --text: #e7eef9; --muted: #9fb2ce; --border: rgba(255, 255, 255, 0.1); --accent: #7aa2ff; --accent-600: #4f7dff; } body.theme-light { color-scheme: light; --bg: #f6f8fc; --bg-2: #eef2fb; --surface: #ffffff; --card: #ffffff; --text: #0f172a; --muted: #6b7280; --border: #e5e9f2; --accent: #2563eb; --accent-600: #1e40af; } * { box-sizing: border-box; } html, body { height: 100%; } body { margin: 0; background: radial-gradient(60rem 60rem at -10% -20%, rgba(79, 125, 255, 0.15), transparent 60%), radial-gradient(60rem 60rem at 110% 120%, rgba(122, 162, 255, 0.17), transparent 60%), linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); color: var(--text); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } /* header */ .app-header { position: sticky; top: 0; z-index: 20; backdrop-filter: saturate(140%) blur(8px); background: color-mix(in srgb, var(--bg-2) 75%, transparent); border-bottom: 1px solid var(--border); padding: 1rem clamp(1rem, 3vw, 1.25rem); display: flex; align-items: center; justify-content: space-between; } .brand { display: flex; gap: .9rem; align-items: center; } .logo { width: 40px; height: 40px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 12%, transparent); border-radius: 12px; } .titles h1 { margin: 0; font-size: 1.35rem; letter-spacing: -0.01em; } .subtitle { margin: .15rem 0 0 0; color: var(--muted); font-size: .95rem; } /* content */ .content-grid { max-width: var(--maxw); margin: 1.2rem auto 2rem; padding: 0 clamp(1rem, 3vw, 1.25rem); display: grid; grid-template-columns: 360px 1fr; gap: 1.2rem; } @media (max-width: 980px) { .content-grid { grid-template-columns: 1fr; } } .stack { display: grid; gap: 1rem; } .col-left {} .col-right {} /* cards */ .card { background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .02)), var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: 0 10px 30px rgba(2, 6, 23, 0.28), 0 1px 0 rgba(255, 255, 255, .04) inset; } .card.compact { padding: .55rem .8rem; border-radius: 999px; } .card-header { padding: 1rem 1rem .75rem; border-bottom: 1px dashed var(--border); } .card>.form-stack, .card>.table-wrap, .card>p { padding: 1rem; } /* forms */ .form-stack { display: grid; gap: .9rem; } .row { display: grid; gap: .9rem; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } @media (max-width: 720px) { .row { grid-template-columns: 1fr; } } label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .3rem; color: var(--text); } input[type="text"], input[type="datetime-local"], select, textarea { width: 100%; padding: 0.65rem 0.8rem; border-radius: var(--radius-sm); border: 1px solid color-mix(in srgb, var(--border) 80%, transparent); background: color-mix(in srgb, var(--surface) 92%, transparent); color: var(--text); outline: none; font-size: .98rem; transition: box-shadow .18s ease, border-color .12s ease, transform .06s ease, background .18s ease; } input::placeholder, textarea::placeholder { color: color-mix(in srgb, var(--muted) 80%, transparent); } input:focus, select:focus, textarea:focus, .theme-toggle:focus, button:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 65%, transparent); border-color: var(--accent); } textarea { min-height: 120px; font-family: ui-monospace, Menlo, "Roboto Mono", SFMono-Regular, monospace; } .checkbox label { font-weight: 500; display: inline-flex; gap: .5rem; align-items: center; } /* buttons */ button { padding: 0.6rem 0.9rem; border-radius: 10px; border: 1px solid rgba(2, 6, 23, 0.1); cursor: pointer; background: linear-gradient(180deg, var(--accent) 0%, var(--accent-600) 100%); color: #fff; font-weight: 650; box-shadow: 0 10px 26px rgba(122, 162, 255, .18); transition: transform .08s ease, box-shadow .12s ease, opacity .12s ease, background .18s ease; } button:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(122, 162, 255, .22); } button:active { transform: translateY(0) scale(.997); } button[disabled] { opacity: .6; cursor: not-allowed; box-shadow: none; } button[aria-variant="ghost"] { background: transparent; color: var(--accent); border: 1px dashed color-mix(in srgb, var(--accent) 30%, transparent); box-shadow: none; } /* theme toggle refinements */ .theme-toggle { border-color: color-mix(in srgb, var(--border) 60%, transparent); background: color-mix(in srgb, var(--surface) 85%, transparent); color: var(--text); } /* tables */ .table-wrap { overflow: auto; border-radius: calc(var(--radius-lg) - 2px); border: 1px dashed var(--border); background: color-mix(in srgb, var(--surface) 86%, transparent); } table { width: 100%; border-collapse: collapse; min-width: 760px; font-size: .96rem; } thead th { position: sticky; top: 0; z-index: 1; background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .03)); backface-visibility: hidden; text-align: left; font-weight: 700; font-size: .9rem; color: var(--muted); } th, td { padding: .75rem .9rem; border-bottom: 1px dashed var(--border); vertical-align: middle; } tbody tr:hover { background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 9%, transparent), transparent); } td:first-child { font-weight: 700; } /* helpers */ .actions { display: flex; gap: .5rem; align-items: center; } .actions.wrap { flex-wrap: wrap; } .actions.between { justify-content: space-between; } .muted { color: var(--muted); opacity: .95; } .status { display: inline-block; padding: .25rem .6rem; border-radius: 999px; font-size: .84rem; background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--accent-600); border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent); } /* inline code */ code.inline { padding: .14rem .3rem; border: 1px solid var(--border); border-radius: 8px; background: color-mix(in srgb, var(--surface) 92%, transparent); font-family: ui-monospace, Menlo, monospace; font-size: .9rem; } /* high contrast preference gets stronger focus */ @media (prefers-contrast: more) { input:focus, select:focus, textarea:focus, button:focus, .theme-toggle:focus { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--accent); } }