:root {
    color-scheme: dark;
    --bg: #09090b;
    --surface: #18181b;
    --border: #29292d;
    --muted: #96969f;
    --text: #f4f4f5;
    --accent: #ff175a;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    color: var(--text);
    background: var(--bg);
    scrollbar-color: #43434a var(--bg);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); }
a { color: #ff79a0; text-decoration: none; }
a:hover { color: #ffa1bc; }
::selection { background: #5a1d32; color: var(--text); }
button, .button { border: 0; border-radius: 8px; padding: 11px 18px; background: var(--accent); color: #fff; font: inherit; font-weight: 600; cursor: pointer; display: inline-block; }
button:hover, .button:hover { background: #dd104b; color: #fff; }
button:disabled { opacity: .5; cursor: not-allowed; }
:focus-visible { outline: 2px solid #d4d4d8; outline-offset: 3px; }
.sidebar { position: fixed; width: 244px; inset: 0 auto 0 0; padding: 32px 24px; background: var(--surface); border-right: 1px solid var(--border); color: var(--text); display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); font-size: 24px; font-weight: 700; }
.brand:hover { color: var(--text); }
.brand small { display: block; font-size: 11px; font-weight: 400; color: var(--muted); margin-top: 5px; }
.mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--accent); }
.environment { color: #f4a4bd; background: #321522; font-size: 10px; letter-spacing: 1.2px; padding: 9px; margin: 30px 0; border-radius: 5px; text-align: center; }
nav { display: grid; gap: 8px; }
nav a { color: #b8b8bf; padding: 12px; border-radius: 8px; }
nav a:hover, nav .active { background: #27272b; color: var(--text); }
.sidebar-bottom { margin-top: auto; color: var(--muted); font-size: 10px; line-height: 1.7; }
main { margin-left: 244px; padding: 36px 42px; max-width: 1600px; }
header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.eyebrow { font-size: 10px; letter-spacing: 1.8px; color: #f17c9f; font-weight: 700; }
h1 { font-size: 28px; margin: 8px 0; }
h2 { font-size: 18px; margin: 0 0 8px; }
p { line-height: 1.65; }
.muted { color: var(--muted); font-size: 12px; }
.intro { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.intro p { color: var(--muted); }
.provider-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 26px; }
.provider { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 20px; display: grid; gap: 8px; }
.provider-icon { background: #381322; color: #ff8db0; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; font-weight: 700; }
.provider small { font-size: 10px; color: var(--muted); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 26px; margin-bottom: 24px; }
.section-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
label { display: grid; gap: 8px; font-size: 12px; color: #d4d4d8; }
input:not([type=checkbox]):not([type=radio]), select, textarea { width: 100%; border: 1px solid #343438; border-radius: 7px; padding: 11px; background: var(--surface); color: var(--text); font: inherit; }
input::placeholder, textarea::placeholder { color: var(--muted); }
input[type=checkbox], input[type=radio] { accent-color: var(--accent); }
input:focus, select:focus, textarea:focus { outline: 2px solid #ff79a0; outline-offset: 1px; }
input:disabled, select:disabled, textarea:disabled { background: #202023; color: var(--muted); cursor: not-allowed; }
option, optgroup { background: var(--surface); color: var(--text); }
input:-webkit-autofill { -webkit-box-shadow: 0 0 0 1000px var(--surface) inset; -webkit-text-fill-color: var(--text); caret-color: var(--text); }
input::file-selector-button { background: #262629; border: 1px solid #343438; border-radius: 5px; color: var(--text); padding: 6px 10px; margin-right: 10px; }
fieldset { border: 1px solid #343438; border-radius: 8px; padding: 16px; margin: 22px 0; }
legend { font-size: 12px; color: #b8b8bf; padding: 0 6px; }
.checks { display: flex; gap: 24px; flex-wrap: wrap; }
.checks label, .mode label { display: flex; align-items: center; gap: 8px; }
.mode { display: flex; gap: 30px; }
.form-footer { display: flex; justify-content: space-between; gap: 18px; align-items: center; margin-top: 22px; }
table { border-collapse: collapse; width: 100%; font-size: 12px; }
th { text-align: left; color: #d4d4d8; font-size: 10px; text-transform: uppercase; letter-spacing: .6px; padding: 14px 10px; background: #27272b; }
td { border-bottom: 1px solid var(--border); padding: 18px 10px; vertical-align: top; }
.table-scroll { overflow: auto; }
.status { background: #27272b; color: #b8b8bf; border-radius: 20px; padding: 6px 10px; font-size: 10px; white-space: nowrap; }
.completed { background: #122b20; color: #82dfa9; }
.running { background: #18283f; color: #a0c5ff; }
.failed { background: #351923; color: #ff9bb5; }
.quiet, .secondary { background: #262629; color: var(--text); }
.quiet:hover, .secondary:hover { background: #343438; color: var(--text); }
.empty { text-align: center; color: var(--muted); padding: 44px; }
.login { max-width: 470px; }
.login form { display: grid; gap: 22px; margin-top: 24px; }
.error { background: #2c141b; border: 1px solid #6a2638; color: #fda4af; padding: 18px; border-radius: 9px; margin-bottom: 24px; }
.pagination { margin-top: 20px; }
.pagination svg { width: 16px; }
summary { cursor: pointer; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 11px; max-width: 100%; line-height: 1.6; background: #101012; border: 1px solid var(--border); border-radius: 7px; padding: 12px; }
[hidden] { display: none !important; }

@media (max-width: 1050px) {
    main { padding: 28px; margin-left: 210px; }
    .sidebar { width: 210px; padding: 28px 18px; }
    .provider-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
    .sidebar { position: static; width: auto; padding: 18px; border-right: 0; border-bottom: 1px solid var(--border); }
    .brand { font-size: 20px; }
    .environment, .sidebar-bottom, nav { display: none; }
    main { margin: 0; padding: 20px; }
    .form-grid { grid-template-columns: 1fr; }
    .provider-grid { gap: 10px; }
    .card { padding: 20px; }
    h1 { font-size: 23px; }
    .intro { align-items: flex-start; gap: 12px; }
    .checks { gap: 15px; }
    .form-footer { align-items: flex-start; }
    .mode { display: grid; gap: 12px; }
    header { margin-bottom: 18px; }
}
