/*
 * Payrexx Release Testing — styled after Payrexx Start ("Sky", after
 * payrexx.com): sky-blue gradient band, Hanken Grotesk headlines, pill
 * shapes, white cards on light grey and brand lime as the highlight.
 * Colours from the Payrexx palette.
 */
:root {
  --bg: #F7F7F7;
  --surface: #FFFFFF;
  --border: #E2E3E3;
  --text: #2C2E2F;
  --muted: #65696B;
  --ink: #2C2E2F;               /* dark buttons / active states */
  --ink-dark: #161718;
  --primary: #00AFF0;           /* cyan-400 */
  --primary-dark: #04729B;      /* cyan-700 */
  --primary-soft: #E5F7FD;      /* cyan-50 */
  --primary-soft-hover: #C5EEF9; /* cyan-100 */
  --lime: #A5F94D;              /* green-400, brand lime */

  --pass: #477900;     --pass-soft: #E7FFD6;  --pass-text: #315600; /* green-700 / 100 / 800 */
  --fail: #BA3437;     --fail-soft: #FBE4E3;  --fail-text: #A32A2E; /* red-600 / 100 / 700 */
  --blocked: #C2670A;  --blocked-soft: #FDF0DC; --blocked-text: #8A4A06;
  --skipped: #A3A7A9;  --skipped-soft: #F0F1F1;
  --pending: #E2E3E3;

  --radius: 20px;
  --shadow: 0 1px 2px rgba(44, 46, 47, 0.06), 0 2px 8px rgba(44, 46, 47, 0.04);
  --shadow-lg: 0 14px 34px rgba(4, 114, 155, 0.18);
  --ring: 0 0 0 3px rgba(0, 175, 240, 0.25);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

/* Sky gradient band behind the floating header and the page head */
body::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0; left: 0; right: 0;
  height: 330px;
  background:
    radial-gradient(55% 70% at 18% 20%, rgba(78, 195, 240, 0.9) 0%, rgba(78, 195, 240, 0) 70%),
    linear-gradient(180deg, #00AFF0 0%, #4EC3F0 58%, rgba(247, 247, 247, 0) 100%);
}

/* Topbar: floating pill, like payrexx.com */
.topbar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 20px;
  width: calc(100% - 32px);
  max-width: 1080px;
  margin: 14px auto 0;
  padding: 10px 12px 10px 22px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(4, 114, 155, 0.16);
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand-logo { height: 24px; width: auto; display: block; }
.brand-sep { width: 1px; height: 20px; background: var(--border); }
.brand-word { font-weight: 800; font-size: 16px; letter-spacing: -0.3px; color: var(--text); white-space: nowrap; }

.nav { display: flex; gap: 4px; margin-left: 4px; flex: 1; }
.nav a {
  text-decoration: none; color: var(--muted); font-weight: 600; font-size: 14px;
  padding: 7px 14px; border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav a:hover { background: var(--primary-soft); color: var(--primary-dark); }
.nav a.active { color: var(--primary-dark); background: var(--primary-soft); }

.user { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.user img { width: 28px; height: 28px; border-radius: 50%; }
.user-name { color: var(--text); font-weight: 600; white-space: nowrap; }
.link {
  background: none; border: none; color: var(--muted);
  cursor: pointer; font: inherit; font-size: 14px; padding: 0; text-decoration: underline;
}
.link:hover { color: var(--text); }
.topbar .link {
  background: var(--primary); color: #fff; text-decoration: none;
  padding: 8px 16px; border-radius: 999px; font-weight: 600; white-space: nowrap;
}
.topbar .link:hover { background: var(--primary-dark); color: #fff; }

.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 36px 24px 64px; flex: 1; }
.footer { text-align: center; color: var(--muted); font-size: 12px; padding: 24px; }
.muted { color: var(--muted); }

/* Back link sits on the sky band */
.back {
  display: inline-block; color: rgba(255, 255, 255, 0.9); text-decoration: none;
  font-size: 14px; font-weight: 600; margin-bottom: 14px;
}
.back:hover { color: #fff; }

/* Page head on the sky band */
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.page-head h1 {
  font-size: 40px; font-weight: 800; letter-spacing: -1.2px; line-height: 1.05;
  margin: 0 0 10px; color: #fff;
}
.page-head p, .page-head p.muted { margin: 0; font-size: 16px; max-width: 640px; color: rgba(255, 255, 255, 0.9); }
.page-head .actions { display: flex; gap: 8px; flex: 0 0 auto; }
.page-head .btn:not(.btn-navy) { background: #fff; border-color: #fff; color: var(--primary-dark); }
.page-head .btn:not(.btn-navy):hover { background: var(--primary-soft); border-color: var(--primary-soft); }

.schedule-hint {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  background: var(--surface); border-radius: 999px; box-shadow: var(--shadow-lg);
  padding: 12px 20px; font-size: 14px; color: var(--muted); margin-bottom: 28px;
}
.schedule-hint strong { color: var(--text); }
.schedule-hint .sep { color: var(--border); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px; border: 1px solid var(--primary);
  background: var(--primary); color: #fff; font: inherit; font-size: 15px; font-weight: 600;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--lime); }
.btn-navy { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-navy:hover { background: var(--ink-dark); border-color: var(--ink-dark); }
.btn-light { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-light:hover { background: var(--primary-soft); border-color: var(--primary-soft-hover); color: var(--primary-dark); }
.btn-google {
  width: 100%; padding: 13px 18px;
  background: #fff; color: #3c4043; border-color: #dadce0;
}
.btn-google:hover { background: #f8f9fa; border-color: #dadce0; color: #3c4043; }

/* Badges + pills */
.badge { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; padding: 3px 9px; border-radius: 999px; }
.type-patch { background: var(--primary-soft); color: var(--primary-dark); }
.type-full { background: var(--lime); color: var(--pass-text); }
.status-draft { background: var(--skipped-soft); color: var(--muted); }
.status-active { background: var(--primary-soft); color: var(--primary-dark); }
.status-done { background: var(--pass-soft); color: var(--pass-text); }
.status-cancelled { background: var(--fail-soft); color: var(--fail-text); }
.status-pass { background: var(--pass-soft); color: var(--pass-text); }
.status-fail { background: var(--fail-soft); color: var(--fail-text); }
.status-blocked { background: var(--blocked-soft); color: var(--blocked-text); }
.pill { display: inline-block; font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-dark); }

/* Progress bar */
.bar { display: flex; height: 8px; border-radius: 999px; overflow: hidden; background: var(--pending); }
.seg { height: 100%; }
.seg.pass { background: #6CC417; }
.seg.fail { background: var(--fail); }
.seg.blocked { background: var(--blocked); }
.seg.skipped { background: var(--skipped); }

/* Release grid (dashboard) */
.rel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.rel-card {
  display: block; text-decoration: none; color: var(--text);
  background: var(--surface); border-radius: 16px;
  padding: 18px; box-shadow: var(--shadow); transition: box-shadow 0.15s ease;
}
.rel-card:hover { box-shadow: 0 0 0 1px rgba(0, 175, 240, 0.45), 0 6px 18px rgba(4, 114, 155, 0.12); }
.rel-card:focus-visible { outline: 2px solid var(--primary-dark); outline-offset: 2px; }
.rel-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.rel-version { font-weight: 800; font-size: 18px; letter-spacing: -0.3px; color: var(--text); margin-right: auto; }
.rel-meta { font-size: 13px; margin-bottom: 12px; }
.rel-stats { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 13px; }
.rel-stats .pct { font-weight: 800; font-size: 18px; color: var(--text); }
.blockers { color: var(--fail-text); font-weight: 700; margin-left: auto; }
.ok { color: var(--pass-text); font-weight: 700; margin-left: auto; }

.empty { color: var(--muted); font-size: 15px; padding: 40px; text-align: center; background: var(--surface); border: 1px dashed var(--border); border-radius: 16px; }

/* Cards + forms */
.card { background: var(--surface); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); }
.form { display: flex; flex-direction: column; gap: 14px; max-width: 640px; }
.form h1, .form h3 { margin: 0; color: var(--text); font-weight: 800; letter-spacing: -0.5px; }
.form h1 { font-size: 26px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.form label > span { color: var(--text); }
.form input[type=text], .form input[type=email], .form input[type=date], .form textarea, .form select {
  font: inherit; padding: 10px 14px; border: 1px solid var(--border); border-radius: 12px;
  background: var(--surface); color: var(--text); width: 100%;
  transition: border-color 0.15s ease;
}
.form input:hover, .form textarea:hover, .form select:hover { border-color: var(--primary-soft-hover); }
.form textarea { resize: vertical; }
.form input:focus, .form textarea:focus, .form select:focus {
  outline: none; border-color: var(--primary); box-shadow: var(--ring);
}
.form-actions { display: flex; gap: 10px; justify-content: flex-end; align-items: center; }
.add-subject, .add-case, .add-user { margin-top: 26px; }

.type-toggle { display: inline-flex; gap: 4px; padding: 4px; background: var(--surface); border-radius: 999px; box-shadow: var(--shadow); margin-bottom: 18px; }
.type-toggle a { padding: 8px 16px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 14px; border-radius: 999px; }
.type-toggle a:hover { color: var(--primary-dark); }
.type-toggle a.active { background: var(--primary); color: #fff; }
.epic-row { display: flex; gap: 8px; }
.epic-row input { flex: 1; }

/* Release detail */
.rel-detail-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.rel-detail-title { display: flex; align-items: center; gap: 12px; }
.rel-detail-title h1 { margin: 0; font-size: 40px; font-weight: 800; letter-spacing: -1.2px; line-height: 1.05; color: #fff; }
.rel-detail-title .badge { background: rgba(255, 255, 255, 0.92); }
.inline { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.inline select, .inline input[type=text] {
  font: inherit; padding: 7px 12px; border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface); color: var(--text);
}
.inline select:focus, .inline input[type=text]:focus { outline: none; border-color: var(--primary); box-shadow: var(--ring); }

.summary { margin-bottom: 20px; box-shadow: var(--shadow-lg); }
.summary-bar { display: flex; align-items: center; gap: 20px; }
.summary-pct { font-size: 34px; font-weight: 800; letter-spacing: -1px; color: var(--text); line-height: 1; text-align: center; white-space: nowrap; }
.summary-pct small { display: block; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; margin-top: 4px; }
.summary-bar-main { flex: 1; }
.summary-bar-main .bar { height: 12px; }
.counts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip { font-size: 12px; padding: 3px 10px; border-radius: 999px; background: var(--bg); color: var(--muted); }
.chip b { color: var(--text); }
.chip.pass b { color: var(--pass-text); } .chip.fail b { color: var(--fail-text); }
.chip.blocked b { color: var(--blocked-text); } .chip.skipped b { color: var(--muted); }
.summary-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); }
.summary-meta .sep { color: var(--border); }
.epic-inline input { width: 120px; }
.epic-inline a { color: var(--primary-dark); font-weight: 600; text-decoration: none; }
.epic-inline a:hover { text-decoration: underline; }
.rel-notes { margin: 12px 0 0; }

/* Blockers spotlight */
.blockers-box { background: var(--surface); border-radius: 16px; box-shadow: var(--shadow), inset 4px 0 0 var(--fail); padding: 14px 20px; margin-bottom: 20px; }
.blockers-box.is-empty { box-shadow: var(--shadow); }
.blockers-box h2 { margin: 0 0 8px; font-size: 16px; font-weight: 800; color: var(--fail-text); display: flex; align-items: center; gap: 8px; }
.blockers-box.is-empty h2 { color: var(--muted); }
.blockers-box h2 .count { background: var(--fail); color: #fff; border-radius: 999px; padding: 1px 9px; font-size: 12px; }
.blockers-box.is-empty .count { background: var(--skipped); }
.blocker-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.blocker-list li { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.blocker-list a { color: var(--text); text-decoration: none; }
.blocker-list a:hover { color: var(--primary-dark); text-decoration: underline; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip-btn {
  font: inherit; font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); color: var(--muted); cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.chip-btn:hover { border-color: var(--primary); color: var(--primary-dark); }
.chip-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.chip-btn.ghost { margin-left: auto; }

/* Subject groups + runs */
.subject-group { margin-bottom: 26px; }
.subject-group[hidden] { display: none; }
.subject-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.subject-head h3 { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: -0.3px; color: var(--text); }
.subject-prog { font-size: 13px; }
.subject-bar { flex: 1; max-width: 220px; }
.subject-bar .bar { height: 6px; }
.subject-assign { margin-left: auto; }

.run { background: var(--surface); border-radius: 14px; box-shadow: var(--shadow); margin-bottom: 8px; overflow: hidden; }
.run[hidden] { display: none; }
.run[data-status="fail"] { box-shadow: var(--shadow), inset 4px 0 0 var(--fail); }
.run[data-status="blocked"] { box-shadow: var(--shadow), inset 4px 0 0 var(--blocked); }
.run[data-status="pass"] { box-shadow: var(--shadow), inset 4px 0 0 #6CC417; }
.run-main { display: flex; align-items: center; gap: 10px; padding: 10px 14px; }
.run-toggle { background: none; border: none; cursor: pointer; color: var(--muted); font-size: 13px; width: 18px; flex: 0 0 auto; padding: 0; }
.run-toggle:hover { color: var(--primary-dark); }
.run-title { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; }
.case-title { font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bug-link { font-size: 12px; font-weight: 700; color: var(--fail-text); text-decoration: none; background: var(--fail-soft); padding: 2px 9px; border-radius: 999px; white-space: nowrap; }

.status-group { display: inline-flex; flex: 0 0 auto; gap: 2px; padding: 3px; background: var(--bg); border-radius: 999px; }
.st {
  font: inherit; font-size: 12px; font-weight: 600; padding: 5px 10px; border: none; border-radius: 999px;
  background: transparent; color: var(--muted); cursor: pointer;
}
.st:hover { background: var(--surface); color: var(--text); }
.st.active.st-pass { background: var(--lime); color: var(--pass-text); }
.st.active.st-fail { background: var(--fail); color: #fff; }
.st.active.st-blocked { background: var(--blocked); color: #fff; }
.st.active.st-skipped { background: var(--skipped); color: #fff; }
.st.active.st-pending { background: var(--ink); color: #fff; }

.assignee {
  font: inherit; font-size: 13px; padding: 6px 10px; border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface); color: var(--text); max-width: 160px; flex: 0 0 auto;
}
.assignee:focus { outline: none; border-color: var(--primary); box-shadow: var(--ring); }
.save-error { box-shadow: 0 0 0 2px var(--fail) !important; }

.run-detail { padding: 4px 16px 16px 42px; border-top: 1px solid var(--border); background: #FBFBFB; }
.detail-block { margin: 10px 0; }
.detail-block p { margin: 2px 0 0; font-size: 13px; color: var(--text); white-space: pre-wrap; }
.dl { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); }
.notes-label { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.notes { font: inherit; font-size: 13px; padding: 9px 12px; border: 1px solid var(--border); border-radius: 12px; resize: vertical; width: 100%; }
.notes:focus { outline: none; border-color: var(--primary); box-shadow: var(--ring); }
/* Screenshots on a run */
.shot-count { font-size: 12px; font-weight: 700; color: var(--primary-dark); background: var(--primary-soft); padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.shot-count[hidden] { display: none; }
.shot-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.shot { position: relative; margin: 0; width: 120px; height: 84px; }
.shot a { display: block; width: 100%; height: 100%; border-radius: 12px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.shot a:hover { box-shadow: 0 0 0 2px var(--primary), var(--shadow); }
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shot-remove {
  position: absolute; top: -7px; right: -7px;
  width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--surface);
  background: var(--ink); color: #fff; font: inherit; font-size: 14px; line-height: 1;
  display: grid; place-items: center; cursor: pointer; padding: 0;
  opacity: 0; transition: opacity 0.15s ease;
}
.shot:hover .shot-remove, .shot-remove:focus-visible { opacity: 1; }
.shot-remove:hover { background: var(--fail); }
.shot-drop {
  width: 120px; height: 84px; border-radius: 12px;
  border: 1.5px dashed var(--primary-soft-hover); background: var(--primary-soft);
  display: grid; place-items: center; text-align: center; cursor: pointer;
  font-size: 12px; line-height: 1.3; color: var(--primary-dark);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.shot-drop small { color: var(--muted); font-size: 11px; }
.shot-drop:hover, .shot-drop.is-over { border-color: var(--primary); background: var(--primary-soft-hover); }
.shot-drop:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--lime); }
.shot-drop.is-busy { opacity: 0.6; cursor: progress; }
@media (hover: none) { .shot-remove { opacity: 1; } }

.detail-actions { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.saved-flag { font-size: 12px; color: var(--pass-text); font-weight: 700; }
.bug-action { margin-left: auto; }

/* Subjects + cases + team lists */
.subj-list, .team-list { display: flex; flex-direction: column; gap: 8px; }
.subj-row { display: flex; align-items: center; gap: 16px; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); padding: 14px 18px; }
.subj-row.archived, .team-row.inactive { opacity: .55; }
.subj-info { flex: 1; min-width: 0; }
.subj-name { font-weight: 800; color: var(--text); text-decoration: none; font-size: 16px; letter-spacing: -0.2px; }
.subj-name:hover { color: var(--primary-dark); }
.subj-info p { margin: 2px 0 0; font-size: 13px; }
.subj-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 13px; flex: 0 0 auto; }
.subj-act { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }

.case-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.case { background: var(--surface); border-radius: 14px; box-shadow: var(--shadow); padding: 4px 16px; }
.case.archived { opacity: .6; }
.case > summary { cursor: pointer; padding: 10px 0; display: flex; align-items: center; gap: 10px; font-weight: 700; }
.case > summary:hover { color: var(--primary-dark); }
.case-sum-title { flex: 1; }
.case-form { max-width: none; padding: 8px 0 14px; }
.case-archive { padding-bottom: 12px; }

.team-row { display: flex; align-items: center; gap: 12px; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); padding: 12px 18px; }
.team-row img, .avatar-fallback { width: 34px; height: 34px; border-radius: 50%; flex: 0 0 auto; }
.avatar-fallback { background: var(--primary-dark); color: #fff; display: grid; place-items: center; font-weight: 700; }
.team-info { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.team-name { font-weight: 700; }

/* Login: full-bleed sky, big rounded card */
body:has(.auth-wrap) {
  background: linear-gradient(165deg, #00AFF0 0%, #4EC3F0 45%, #F7F7F7 100%) fixed;
}
body:has(.auth-wrap)::before { display: none; }
.auth-wrap {
  min-height: calc(100vh - 140px);
  display: grid;
  place-items: center;
  padding: 24px 0;
}
.login-card {
  background: var(--surface);
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(4, 114, 155, 0.25);
  padding: 44px 40px;
  max-width: 420px;
  width: 100%;
  text-align: center;
}
.login-logo { height: 34px; width: auto; margin-bottom: 22px; }
.login-card h1 { font-size: 30px; font-weight: 800; letter-spacing: -0.8px; margin: 0 0 10px; color: var(--text); }
.login-card .muted { font-size: 14px; margin: 0 0 24px; }

.alert {
  background: var(--fail-soft); color: var(--fail-text);
  border-radius: 14px; padding: 10px 12px; font-size: 14px; margin: 0 0 18px;
}

@media (max-width: 720px) {
  .topbar { flex-wrap: wrap; gap: 10px; border-radius: 24px; width: calc(100% - 24px); }
  .nav { order: 3; width: 100%; flex: 1 0 100%; margin-left: 0; }
  .user-name { display: none; }
  .page-head { flex-direction: column; }
  .page-head h1, .rel-detail-title h1 { font-size: 32px; letter-spacing: -1px; }
  .rel-detail-head { flex-wrap: wrap; }
  .run-main { flex-wrap: wrap; }
  .status-group { order: 3; }
  .summary-bar { flex-direction: column; align-items: stretch; gap: 12px; }
  .schedule-hint { border-radius: 16px; }
  .container { padding: 24px 16px 48px; }
  .login-card { padding: 32px 24px; }
}
