:root {
  color-scheme: light;
  --navy:#182954; --navy-deep:#101e44; --blue:#284784;
  --canvas:#f3f6fb; --surface:#fff; --text:#17243d;
  --muted:#50617b; --line:#dbe3ef; --light-blue:#eaf0fa;
  font-family:Inter,"Segoe UI",system-ui,sans-serif;
  font-synthesis:none;
}
* { box-sizing:border-box }
[hidden] { display:none!important }
body { margin:0; min-width:300px; background:var(--canvas); color:var(--text); line-height:1.5 }
button,input,select { font:inherit }
a { color:var(--blue) }
h1,h2,p { margin:0 }
h1 { font-size:clamp(1.7rem,3vw,2.25rem); letter-spacing:-.045em; line-height:1.18 }
h2 { font-size:1.08rem; line-height:1.35; margin-bottom:14px }
p,small { color:var(--muted) }
p + p { margin-top:8px }
button,.button {
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  min-height:42px; padding:8px 15px; text-decoration:none; font-weight:650;
  border-radius:9px; border:1px solid transparent; background:var(--navy); color:white; cursor:pointer;
}
button:hover,.button:hover { background:var(--blue) }
.secondary { background:white; color:var(--navy); border-color:var(--line) }
.secondary:hover { background:var(--light-blue) }
button:disabled { opacity:.5; cursor:wait }
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible {
  outline:3px solid #5678bd; outline-offset:2px;
}
#login {
  width:min(100% - 40px,920px); min-height:476px; margin:max(40px,12vh) auto 28px;
  display:grid; grid-template-columns:1.08fr 1fr; overflow:hidden; border-radius:24px;
  background:var(--surface); box-shadow:0 20px 65px #18295420; border:1px solid var(--line);
}
.login-identity {
  background:linear-gradient(145deg,#233b73,var(--navy-deep) 84%); color:#fff;
  padding:clamp(26px,5vw,54px); position:relative; isolation:isolate;
  display:flex; flex-direction:column; align-items:flex-start; justify-content:space-between; gap:54px;
}
.wordmark { width:136px; aspect-ratio:5.35; position:relative; overflow:hidden; display:block; border-radius:2px; background:#fcfcfc }
.wordmark img { position:absolute; top:50%; left:50%; width:237%; max-width:none; transform:translate(-51.6%,-50%) }
.login-product { margin-bottom:12px }
.product-name { font-weight:760; font-size:clamp(2.65rem,5vw,4.25rem); line-height:1; letter-spacing:-.075em }
.login-product p { color:#d8e4ff; margin-top:16px; font-size:.98rem }
.brand-rings {
  position:absolute; z-index:-1; pointer-events:none; width:335px; height:335px;
  border:1px solid #a6bdfc45; border-radius:50%; right:-175px; top:-96px;
  box-shadow:0 0 0 32px #a6bdfc21,0 0 0 64px #a6bdfc16,0 0 0 100px #a6bdfc0f;
}
.login-access { padding:clamp(26px,5vw,58px); align-self:center }
.login-mark { display:block; margin-bottom:24px }
.login-access h1 { font-size:1.55rem }
#login-form { margin-top:22px }
#login-form button { width:100%; margin-top:17px }
#dashboard { display:grid; grid-template-columns:220px minmax(0,1fr); min-height:100vh }
.sidebar {
  background:var(--navy-deep); color:white; padding:24px 15px 18px;
  position:sticky; top:0; align-self:start; min-height:100vh; display:flex; flex-direction:column; gap:28px;
}
.brand { padding:0 8px; display:flex; align-items:center; gap:11px }
.brand img { background:#fff; border-radius:50% }
.brand strong { display:block; font-size:1.18rem; letter-spacing:-.025em }
.brand small { display:block; color:#c3d1ee; line-height:1.25 }
nav { display:grid; gap:7px }
nav button,.logout {
  width:100%; text-align:left; justify-content:flex-start; background:transparent;
  color:#d8e4fe; border-color:transparent; padding-left:13px;
}
nav button:hover,.logout:hover { background:#203564 }
nav button[aria-current=true] { background:#2a437b; color:#fff; border-color:#45639e }
.logout { margin-top:auto; border-top-color:#34466a; border-radius:0; padding-top:13px }
.workspace { width:100%; max-width:1500px; margin:0 auto; padding:32px clamp(18px,4vw,58px) 48px }
.page-header,.heading { display:flex; gap:12px; align-items:center; justify-content:space-between; flex-wrap:wrap }
.page-header { margin-bottom:23px }
.page-header p { font-size:.9rem; margin-top:8px }
.heading h2 { margin:0 }
.summary { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin-bottom:20px }
.summary > div,.panel,dialog { background:var(--surface); border:1px solid var(--line); border-radius:14px; box-shadow:0 2px 6px #18295408 }
.summary > div { padding:17px 19px; border-top:3px solid #5272ad }
.summary strong { display:block; font-size:2.05rem; letter-spacing:-.055em; color:var(--navy); line-height:1.18; margin-top:8px }
.summary small { font-size:.83rem; font-weight:650 }
.panel { margin-bottom:20px; padding:20px }
.panel > p { margin-bottom:10px }
.storage-divider { margin-top:24px; padding-top:20px; border-top:1px solid var(--line) }
.grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:13px 18px; margin:12px 0 }
label { display:grid; gap:6px; font-size:.88rem; font-weight:630; color:var(--text) }
input,select { min-height:41px; width:100%; padding:8px 10px; color:var(--text); background:white; border:1px solid #bdcadf; border-radius:8px }
input::placeholder { color:#60738e }
.actions { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin:8px 0 }
.grid > .actions { grid-column:1/-1 }
.filter { display:flex; align-items:center; gap:8px; font-size:.8rem }
.filter select { width:auto; min-height:35px; padding:5px 8px }
.scroll { overflow-x:auto }
table { width:100%; border-collapse:collapse; margin-top:12px; font-size:.88rem }
th { background:var(--canvas); font-size:.78rem; color:var(--muted); white-space:nowrap }
td,th { text-align:left; padding:11px 10px; border-bottom:1px solid var(--line); vertical-align:top }
td:first-child { font-weight:690 }
tbody tr:last-child td { border-bottom:0 }
tbody tr:hover { background:#f8faff }
td button,td a.button { min-height:32px; padding:4px 8px; margin:0 4px 4px 0; font-size:.8rem; white-space:nowrap }
.status { display:inline-block; border-radius:100px; padding:3px 8px; background:#edf1f7; color:#425271; font-size:.76rem; font-weight:700; white-space:nowrap }
.status.success { background:#ddf3e8; color:#18523f }
.status.pending { background:#e7eefc; color:#244980 }
.status.failure { background:#fce9e7; color:#8a281c }
.empty { padding:21px 12px; text-align:center; background:#f7f9fd; border-radius:9px; border:1px dashed var(--line); margin-top:12px }
code,pre { display:block; max-width:100%; padding:9px; background:var(--canvas); border-radius:7px; overflow:auto; white-space:pre-wrap; overflow-wrap:anywhere }
dialog { width:min(100% - 24px,690px); max-height:90vh; color:var(--text); padding:22px; margin:auto }
dialog::backdrop { background:#111d43aa }
dialog .heading { margin-bottom:14px }
dialog form > label { margin:12px 0 }
#retention-fields { border:1px solid var(--line); border-radius:8px; margin:12px 0; padding:10px }
#catalog-fields { border:1px solid var(--line); border-radius:8px; margin:12px 0; padding:10px }
#catalog-list { max-height:180px; overflow:auto; display:grid; gap:5px }
#catalog-list label,#select-all-label { padding:4px 0; display:flex; align-items:center; gap:8px }
#catalog-fields input[type=checkbox] { width:16px; min-height:16px; accent-color:var(--navy) }
#catalog-status { color:var(--muted); font-size:.83rem }
.progress-note { display:block; white-space:nowrap; margin-top:4px }
#runs table { table-layout:fixed; min-width:900px }
#runs th:nth-child(1) { width:12% }
#runs th:nth-child(2) { width:9% }
#runs th:nth-child(3) { width:8% }
#runs th:nth-child(4) { width:13% }
#runs th:nth-child(5),#runs th:nth-child(6) { width:8% }
#runs th:nth-child(8) { width:17% }
#runs td { overflow-wrap:anywhere }
#runs .progress-note,#runs .status { white-space:normal }
#runs progress { display:block; width:100%; max-width:110px; height:6px; margin-top:4px }
.run-duration { font-variant-numeric:tabular-nums; white-space:nowrap }
#retention-counts { border:0; padding:0; margin:8px 0 0; min-width:0 }
#retention-counts:disabled { opacity:.55 }
#enable-periods { width:auto; min-height:auto }
#notice { position:fixed; bottom:18px; right:18px; z-index:4; width:min(440px,calc(100% - 36px)); padding:12px; border:1px solid var(--line); border-left:4px solid var(--blue); border-radius:9px; color:var(--text); background:#fff; box-shadow:0 5px 20px #18295420 }
#notice:empty { display:none }
#notice.error { border-left-color:#b94134 }
@media (max-width:850px) {
  #dashboard { grid-template-columns:1fr }
  .sidebar { position:static; min-height:auto; padding:14px 18px; gap:12px; display:grid; grid-template-columns:1fr auto }
  nav { grid-column:1/-1; grid-row:2; display:flex; flex-wrap:wrap; gap:5px }
  nav button,.logout { width:auto; padding:7px 10px; font-size:.83rem; min-height:36px }
  .logout { border-top-color:transparent; margin:0 }
}
@media (max-width:570px) {
  #login { grid-template-columns:1fr; width:calc(100% - 24px); margin:18px auto; min-height:0 }
  .login-identity { gap:24px; padding:24px }
  .login-access { padding:26px 22px }
  .login-mark { display:none }
  .workspace { padding:19px 12px 38px }
  .summary { gap:7px }
  .summary > div { padding:10px 7px }
  .summary small { font-size:.72rem; line-height:1.25; display:block }
  .summary strong { font-size:1.55rem }
  .panel { padding:13px }
  .grid { grid-template-columns:1fr }
}
