/* Bundled base stylesheet for Oscar Admin. Self-contained: no external fonts, scripts, or CDNs. */ :root { --bg: #161821; --bg-soft: #1d2030; --panel: #20243a; --panel-2: #262b44; --text: #e8eaf3; --muted: #98a0b8; --accent: #5aa9ff; --accent-2: #8f7dff; --ok: #6fd69b; --warn: #f2c66d; --danger: #f06f6f; --line: #353b57; --shadow: 0 10px 30px rgba(0, 0, 0, .25); --radius: 12px; --radius-sm: 8px; --max: 1040px; --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color-scheme: dark; } html[data-theme="light"] { --bg: #f4f6fb; --bg-soft: #ffffff; --panel: #ffffff; --panel-2: #eef2fb; --text: #1b1f33; --muted: #5d6680; --accent: #1f6fd1; --accent-2: #6a54e8; --ok: #1e8f58; --warn: #9a6a00; --danger: #c23b3b; --line: #d6dbea; --shadow: 0 10px 30px rgba(20, 30, 60, .08); color-scheme: light; } * { box-sizing: border-box; } [hidden] { display: none !important; } html { background: var(--bg); } body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: radial-gradient(1200px 500px at 85% -10%, rgba(90, 169, 255, .10), transparent 60%), radial-gradient(900px 400px at -10% 10%, rgba(143, 125, 255, .09), transparent 60%), var(--bg); background-attachment: fixed; color: var(--text); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; } a { color: var(--accent); text-decoration: none; } a:hover { text-decoration: underline; } :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; } code, pre { font-family: var(--mono); background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; } code { padding: 1px 6px; font-size: .9em; overflow-wrap: anywhere; } .skip-link { position: absolute; left: 12px; top: -60px; padding: 8px 12px; background: var(--accent); color: #fff; border-radius: var(--radius-sm); z-index: 200; } .skip-link:focus { top: 12px; } /* ---------- Header and navigation ---------- */ .site-header { position: sticky; top: 0; z-index: 100; display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px max(16px, calc((100% - var(--max)) / 2)); background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); } .brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.05rem; color: var(--text); white-space: nowrap; } .brand:hover { text-decoration: none; } .brand-logo { display: block; width: 32px; height: 32px; flex: none; border-radius: 9px; } .site-nav { display: flex; flex: 1; flex-wrap: wrap; gap: 2px; justify-content: flex-end; } .site-nav a { position: relative; padding: 7px 11px; border-radius: var(--radius-sm); color: var(--muted); font-size: .92rem; transition: color .2s ease, background .2s ease; } .site-nav a:hover { color: var(--text); background: var(--panel); text-decoration: none; } .site-nav a[aria-current="page"] { color: var(--text); background: var(--panel-2); } .site-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--accent); } .nav-toggle { display: none; } .logout-form { margin: 0; } .logout-form .button { min-height: 34px; padding: 6px 10px; font-size: .92rem; } /* ---------- Layout ---------- */ main { flex: 1; width: min(100% - 32px, var(--max)); margin: 0 auto; padding: 28px 0 48px; animation: rise .4s ease-out both; outline: none; } h1 { font-size: clamp(1.6rem, 2.5vw, 2.1rem); line-height: 1.2; margin: .2em 0 .45em; } h2 { font-size: 1.2rem; margin: 0 0 .5em; } p { margin: 0 0 .8em; } ul, ol { margin: 0 0 .8em; padding-left: 1.3em; } .lead { font-size: 1.1rem; color: var(--muted); max-width: 60ch; } .muted { color: var(--muted); } .small { font-size: .84rem; } .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; } .card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin: 0 0 18px; box-shadow: var(--shadow); transition: border-color .2s ease, transform .2s ease; } .card:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); } .card > :last-child { margin-bottom: 0; } .grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; } .account-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; } .account-grid > .card { margin: 0; } .account-grid .form { max-width: none; } .account-grid .actions + .form { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); } .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; } .actions form { margin: 0; } .hero { padding: 26px 0 10px; animation: rise .5s ease-out both; } .eyebrow { margin: 0 0 6px; color: var(--accent); font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; } .hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: .35em; } /* ---------- Buttons ---------- */ .button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 9px 16px; border: 1px solid var(--accent); border-radius: var(--radius-sm); background: transparent; color: var(--accent); font: inherit; font-size: .92rem; font-weight: 600; text-decoration: none; cursor: pointer; transition: background .2s ease, color .2s ease, transform .15s ease, box-shadow .2s ease; } .button:hover { text-decoration: none; background: color-mix(in srgb, var(--accent) 14%, transparent); } .button:active { transform: translateY(1px); } .button-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); border-color: transparent; color: #fff; box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 35%, transparent); } .button-primary:hover { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; filter: brightness(1.08); } .button-ghost { border-color: var(--line); color: var(--text); } .button-small { min-height: 28px; padding: 4px 10px; font-size: .78rem; } .button[aria-expanded="true"] { border-color: var(--accent); } /* ---------- Stats ---------- */ .stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 18px 0; } .stat-tile { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); animation: rise .5s ease-out both; } .stat-tile:nth-child(2) { animation-delay: .04s; } .stat-tile:nth-child(3) { animation-delay: .08s; } .stat-tile:nth-child(4) { animation-delay: .12s; } .stat-tile:nth-child(5) { animation-delay: .16s; } .stat-label { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; } .stat-value { font-size: 1.6rem; font-weight: 700; font-variant-numeric: tabular-nums; } .stat-note { font-size: .8rem; } /* ---------- Home ---------- */ .home-lower { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(250px, 1fr); gap: 18px; align-items: start; } .home-lower > .card { margin: 0; } .card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; } .card-head h2 { margin: 0; } .card-head > a { font-size: .88rem; white-space: nowrap; } .howto-list { list-style: none; padding: 0; margin: 0; display: grid; counter-reset: howto; } .howto-list li { counter-increment: howto; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--line); } .howto-list li:first-child { padding-top: 0; } .howto-list li:last-child { padding-bottom: 0; border-bottom: 0; } .howto-num { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--panel-2); border: 1px solid var(--line); color: var(--accent); font-size: .78rem; font-weight: 700; } .howto-num::before { content: counter(howto); } .howto-list strong { display: block; font-size: .95rem; margin: 1px 0 2px; } .howto-list p { margin: 0; font-size: .9rem; color: var(--muted); } .copy-inline { display: inline-flex; align-items: center; justify-content: center; min-width: 58px; min-height: 22px; margin-left: 6px; padding: 0 8px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); font: inherit; font-size: .72rem; font-weight: 600; line-height: 1; vertical-align: baseline; cursor: pointer; transition: color .15s ease, border-color .15s ease; } .copy-inline:hover { color: var(--text); border-color: var(--accent); } /* ---------- Pills and status ---------- */ .pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: .8rem; color: var(--muted); white-space: nowrap; } .pill.is-ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 60%, transparent); } .pill.is-down { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 60%, transparent); } .pill.is-warn { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 60%, transparent); } .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; } .pill.is-ok .dot { animation: pulse 2.4s ease-out infinite; } /* ---------- Lists, key-value and steps ---------- */ .kv { display: grid; grid-template-columns: max-content 1fr; gap: 10px 18px; align-items: center; margin: 0 0 12px; } .kv dt { color: var(--muted); font-size: .9rem; } .kv dd { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; } .link-list { list-style: none; padding: 0; margin: 0; } .link-list li { padding: 6px 0; border-bottom: 1px dashed var(--line); } .link-list li:last-child { border-bottom: 0; } .steps { list-style: none; padding: 0; counter-reset: step; } .steps li { counter-increment: step; position: relative; padding: 12px 12px 12px 52px; border-bottom: 1px solid var(--line); } .steps li:last-child { border-bottom: 0; } .steps li::before { content: counter(step); position: absolute; left: 12px; top: 12px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--panel-2); border: 1px solid var(--line); font-weight: 700; font-size: .85rem; } .steps li > * { display: block; } details { border-top: 1px solid var(--line); padding: 10px 0; } details:first-of-type { border-top: 0; } summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; } summary::-webkit-details-marker { display: none; } summary::after { content: "+"; color: var(--muted); font-size: 1.1rem; transition: transform .2s ease; } details[open] > summary::after { content: "−"; } details > :not(summary) { margin-top: 8px; } /* ---------- Tables ---------- */ .table-wrap { overflow-x: auto; padding: 0; } .table-wrap table { margin: 0; } table { width: 100%; border-collapse: collapse; } th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; } th { color: var(--muted); font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; background: var(--bg-soft); } tbody tr { transition: background .15s ease; } tbody tr:hover { background: var(--panel-2); } tbody tr:last-child td { border-bottom: 0; } .pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 16px 0; } /* ---------- Filters ---------- */ .filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)) auto; gap: 12px; align-items: end; } .filter-actions { display: flex; gap: 8px; } /* ---------- Forms ---------- */ .form { display: grid; gap: 16px; max-width: 520px; } label { display: grid; gap: 6px; font-weight: 500; font-size: .95rem; } input[type="text"], input[type="email"], input[type="password"], select { width: 100%; min-height: 42px; padding: 9px 12px; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius-sm); font: inherit; transition: border-color .2s ease, box-shadow .2s ease; } input:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); } input[aria-invalid="true"] { border-color: var(--danger); } .input-with-button { display: flex; gap: 8px; } .input-with-button input { flex: 1; } .hint { color: var(--muted); font-size: .82rem; font-weight: 400; } .field-error { color: var(--danger); font-size: .85rem; font-weight: 500; } .field-error[hidden] { display: none; } .strength { font-size: .82rem; color: var(--muted); min-height: 1.2em; } .strength.is-weak { color: var(--danger); } .strength.is-fair { color: var(--warn); } .strength.is-strong { color: var(--ok); } /* ---------- Account pages ---------- */ .auth-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr); gap: 20px; align-items: start; } .auth-main, .auth-side { margin: 0; } .auth-main > h1 { margin-top: 0; } .auth-form { max-width: none; } .form-section { display: grid; gap: 14px; } .form-section + .form-section { padding-top: 18px; border-top: 1px solid var(--line); } .form-section-title { margin: 0; font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); } .auth-submit { width: 100%; min-height: 46px; } .auth-consent { margin: 0; text-align: center; } .auth-side h2 { font-size: .95rem; } .auth-side h2:not(:first-child) { margin-top: 18px; } .auth-side .check-list { margin-bottom: 14px; } .check-list { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 9px; } .check-list li { position: relative; padding-left: 22px; font-size: .9rem; line-height: 1.45; } .check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 700; } /* ---------- Notices, empty states ---------- */ .notice { padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--panel); margin: 0 0 16px; animation: rise .3s ease-out both; } .notice.is-ok { border-color: color-mix(in srgb, var(--ok) 60%, transparent); color: var(--ok); } .notice.is-error { border-color: color-mix(in srgb, var(--danger) 60%, transparent); color: var(--danger); } .empty { text-align: center; color: var(--muted); padding: 28px 18px; } /* ---------- Long-form pages (privacy, terms) ---------- */ .prose { max-width: 78ch; } .prose h2 { margin: 22px 0 8px; font-size: 1.15rem; } .prose h2:first-child { margin-top: 0; } .prose p { margin: 0 0 12px; line-height: 1.65; } .prose ul { margin: 0 0 14px; padding-left: 22px; } .prose li { margin: 5px 0; line-height: 1.6; } .prose p:last-child, .prose ul:last-child { margin-bottom: 0; } .prose h2[id] { scroll-margin-top: 84px; } /* ---------- Room and client grids ---------- */ .room-grid, .client-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; } .room-card, .client-card { display: flex; flex-direction: column; gap: 4px; } .room-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; } .room-head h2 { margin: 0; font-size: 1.05rem; word-break: break-word; } /* ---------- Other servers ---------- */ .server-list { display: grid; gap: 14px; } .server-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "head action" "desc action"; align-items: center; gap: 4px 24px; margin: 0; padding: 20px 22px; } .server-row-head { grid-area: head; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; } .server-row-head h2 { margin: 0; font-size: 1.15rem; } .server-row-desc { grid-area: desc; margin: 0; color: var(--muted); max-width: 74ch; } .server-row > .button { grid-area: action; white-space: nowrap; } /* ---------- Footer ---------- */ .site-footer { width: min(100% - 32px, var(--max)); margin: 0 auto; padding: 22px 0 30px; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; display: grid; gap: 6px; } .footer-links { display: flex; gap: 14px; flex-wrap: wrap; } /* ---------- Motion ---------- */ @keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } } @keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 60%, transparent); } 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } } /* ---------- Responsive ---------- */ @media (max-width: 820px) { .grid-2 { grid-template-columns: 1fr; } .account-grid { grid-template-columns: 1fr; } .auth-grid { grid-template-columns: 1fr; } .home-lower { grid-template-columns: 1fr; } .filters { grid-template-columns: 1fr 1fr; } .filter-actions { grid-column: 1 / -1; } } @media (max-width: 720px) { .site-header { flex-wrap: wrap; } .nav-toggle { display: inline-flex; margin-left: auto; } .site-nav { display: none; width: 100%; flex-direction: column; gap: 4px; padding: 8px 0 4px; } .site-nav.is-open { display: flex; } .site-nav a { padding: 10px 12px; } .theme-toggle { order: 3; } .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } } @media (max-width: 640px) { .server-row { grid-template-columns: 1fr; grid-template-areas: "head" "desc" "action"; gap: 10px; justify-items: start; } } @media (max-width: 520px) { .filters { grid-template-columns: 1fr; } .kv { grid-template-columns: 1fr; gap: 4px; } .kv dd { margin-bottom: 10px; } } @media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }