:root {
  --ink: #172b3e;
  --muted: #687d90;
  --navy: #102c3f;
  --teal: #087f85;
  --teal-dark: #07696e;
  --teal-soft: #e6f5f3;
  --line: #e1e8ee;
  --bg: #f4f7fa;
  --white: #fff;
  --red: #bd3e48;
  --red-soft: #fff0f0;
  --amber: #a36b0e;
  --amber-soft: #fff6de;
  --blue: #496a9d;
  --blue-soft: #edf2fc;
  --radius: 14px;
  font-family: Inter, "Segoe UI", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.55;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
}
[hidden] {
  display: none !important;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
a {
  color: var(--teal);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 29px;
  letter-spacing: -0.7px;
  line-height: 1.3;
}
h2 {
  font-size: 17px;
  line-height: 1.4;
}
h3 {
  font-size: 15px;
}
.muted {
  color: var(--muted);
  margin-top: 8px;
}
.subtle {
  font-size: 12px;
  color: var(--muted);
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 10px;
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 41px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 9px 16px;
  font-weight: 600;
  line-height: 1.3;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.button.primary {
  background: var(--teal);
  color: var(--white);
}
.button.primary:hover {
  background: var(--teal-dark);
}
.button.secondary {
  background: var(--white);
  border-color: var(--line);
  color: var(--ink);
}
.button.secondary:hover {
  border-color: #aabfc9;
  background: #f8fbfc;
}
.button.small {
  min-height: 34px;
  padding: 6px 11px;
  font-size: 12px;
}
.button.danger {
  color: var(--red);
}
.wide {
  width: 100%;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid #ccd8e1;
  border-radius: 8px;
  padding: 9px 11px;
  background: #fff;
  color: var(--ink);
  outline: none;
  font-size: 14px;
  font-weight: 400;
}
.field textarea {
  resize: vertical;
  min-height: 70px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px #087f8517;
}
input::placeholder,
textarea::placeholder {
  color: #95a3af;
}
.field.compact {
  min-width: 195px;
}
.field input[type="checkbox"] {
  width: auto;
}
.error-text {
  font-size: 13px;
  color: var(--red);
  margin-top: 10px;
  min-height: 20px;
}
.check-label {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  font-weight: 400;
}
.check-label input {
  width: 16px;
  height: 16px;
  accent-color: var(--teal);
}
.brand {
  display: flex;
  gap: 11px;
  align-items: center;
  font-weight: 750;
  font-size: 19px;
  letter-spacing: 1px;
  line-height: 1.1;
}
.brand:hover {
  text-decoration: none;
}
.brand-light {
  color: #fff;
}
.brand-mark {
  display: grid;
  place-items: center;
  background: #21a7aa;
  color: white;
  border-radius: 11px;
  width: 38px;
  height: 38px;
  font-size: 24px;
}
.brand-caption {
  display: block;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 1px;
  opacity: 0.65;
  margin-top: 7px;
}
.login-screen {
  display: grid;
  grid-template-columns: minmax(380px, 46%) 1fr;
  min-height: 100vh;
}
.login-story {
  background: var(--navy);
  color: white;
  padding: 50px 11%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 65px;
  position: relative;
  overflow: hidden;
}
.login-story:after {
  content: "";
  position: absolute;
  right: -140px;
  top: 20%;
  width: 420px;
  height: 420px;
  border: 1px solid #ffffff09;
  border-radius: 50%;
  box-shadow:
    0 0 0 75px #ffffff03,
    0 0 0 150px #ffffff02;
  pointer-events: none;
}
.login-story .eyebrow {
  color: #6ed3cc;
}
.login-story h1 {
  font-size: 37px;
  line-height: 1.55;
  font-weight: 650;
  letter-spacing: 0;
  position: relative;
  z-index: 1;
}
.login-story p {
  color: #adc1d1;
  margin-top: 22px;
  font-size: 15px;
  line-height: 1.9;
}
.story-foot {
  color: #8faaba;
  font-size: 12px;
}
.story-line {
  display: flex;
  align-items: center;
  margin-top: 36px;
  width: 200px;
}
.story-line span {
  width: 11px;
  height: 11px;
  border: 2px solid #57c6c3;
  border-radius: 50%;
}
.story-line span:last-child {
  background: #57c6c3;
  box-shadow: 0 0 0 7px #57c6c315;
}
.story-line i {
  height: 1px;
  flex: 1;
  background: #57c6c350;
}
.login-main {
  display: grid;
  place-items: center;
  padding: 40px;
}
.login-card {
  width: 100%;
  max-width: 350px;
}
.login-card h2 {
  font-size: 30px;
}
.login-card > .field {
  margin-top: 33px;
}
.login-card > .button {
  margin-top: 15px;
}
.login-note {
  color: var(--muted);
  font-size: 12px;
  text-align: center;
  margin-top: 22px;
}
.workspace {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 226px;
  flex-shrink: 0;
  background: var(--navy);
  padding: 29px 20px;
  position: fixed;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  z-index: 5;
}
.sidebar .brand {
  margin: 0 8px;
}
.sidebar nav {
  margin-top: 50px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.nav-item {
  border: 0;
  background: transparent;
  color: #9fb7c6;
  border-radius: 9px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  font-weight: 600;
}
.nav-item span {
  font-size: 22px;
  line-height: 1;
}
.nav-item:hover {
  color: #fff;
  background: #ffffff08;
}
.nav-item.active {
  color: #fff;
  background: #1e4658;
  box-shadow: inset 3px 0 #57c6c3;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 25px 10px 0;
}
.sidebar-label {
  font-size: 9px;
  letter-spacing: 1.4px;
  color: #738fa2;
}
.sidebar-bottom p {
  margin-top: 10px;
  color: #9fb7c6;
  font-size: 11px;
  line-height: 1.9;
}
.logout-button {
  padding: 17px 0 0;
  border: 0;
  background: transparent;
  color: #b6c9d5;
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-size: 12px;
}
.main-content {
  margin-left: 226px;
  width: calc(100% - 226px);
  max-width: 1840px;
  padding: 34px 38px 20px;
}
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  margin-bottom: 30px;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sync-status {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  margin-right: 8px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.sync-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #28a59d;
  flex-shrink: 0;
}
.sync-status.error {
  color: var(--red);
}
.sync-status.error .sync-dot {
  background: var(--red);
}
.filter-bar {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-bottom: 20px;
}
.filter-bar .field {
  min-width: 280px;
}
.filter-note {
  font-size: 11px;
  color: var(--muted);
  border-left: 1px solid var(--line);
  padding-left: 20px;
  line-height: 1.8;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 17px;
  margin-bottom: 22px;
}
.metric-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.metric-card strong {
  font-size: 34px;
  line-height: 1.3;
  font-weight: 650;
  letter-spacing: -1px;
}
.metric-card > span:last-child {
  font-size: 11px;
  color: var(--muted);
}
.metric-label {
  font-weight: 600;
  color: #455d71;
  font-size: 12px;
}
.metric-card.accent {
  border-top: 3px solid #e7b66d;
  padding-top: 20px;
}
.metric-card.accent strong {
  color: var(--amber);
}
.breakdown-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 20px;
  margin-bottom: 22px;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}
.panel-heading h2 {
  font-size: 15px;
}
.panel-heading p {
  margin-top: 4px;
}
.summary-content {
  padding: 10px 22px;
  max-height: 300px;
  overflow: auto;
  min-height: 132px;
}
.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #eef2f6;
}
.summary-row:last-child {
  border-bottom: 0;
}
.summary-name {
  font-size: 12px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.summary-host {
  font-size: 10px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.summary-number {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}
.summary-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: flex-end;
  max-width: 55%;
}
.empty-inline {
  padding: 23px 0;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 7px;
  border-radius: 5px;
  font-size: 10px;
  line-height: 1.4;
  font-weight: 600;
  white-space: nowrap;
  color: #586d80;
  background: #edf1f5;
}
.badge.passed,
.badge.manual_pass {
  background: var(--teal-soft);
  color: var(--teal-dark);
}
.badge.failed,
.badge.timeout,
.badge.manual_fail {
  background: var(--red-soft);
  color: var(--red);
}
.badge.slow {
  background: var(--amber-soft);
  color: var(--amber);
}
.badge.indeterminate {
  background: var(--blue-soft);
  color: var(--blue);
}
.badge.completed {
  background: var(--teal-soft);
  color: var(--teal);
}
.badge.running {
  background: var(--blue-soft);
  color: var(--blue);
}
.badge.partial {
  background: var(--amber-soft);
  color: var(--amber);
}
.record-filters {
  display: flex;
  align-items: end;
  gap: 12px;
  padding: 17px 22px;
}
.record-filters .status-filter {
  min-width: 170px;
  max-width: 210px;
}
.search-field {
  flex: 1;
}
.table-scroll {
  width: 100%;
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
th {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  background: #f8fafc;
  padding: 12px 15px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
td {
  padding: 16px 15px;
  border-bottom: 1px solid #edf2f6;
  font-size: 12px;
  vertical-align: middle;
}
th:first-child,
td:first-child {
  padding-left: 22px;
}
th:last-child,
td:last-child {
  padding-right: 22px;
}
.records-table {
  min-width: 790px;
}
.records-table tbody tr {
  cursor: pointer;
}
.records-table tbody tr:hover {
  background: #f7fbfc;
}
.cell-main {
  font-weight: 600;
}
.cell-secondary {
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
  max-width: 245px;
  overflow-wrap: anywhere;
}
.cell-counts {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  max-width: 235px;
}
.table-link {
  border: 0;
  color: var(--teal);
  background: transparent;
  padding: 4px;
  font-size: 12px;
}
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 22px;
}
.pagination > div {
  display: flex;
  gap: 8px;
}
.empty-state {
  padding: 50px 25px;
  text-align: center;
  color: var(--muted);
}
.empty-state h3 {
  color: var(--ink);
  margin: 10px 0 7px;
}
.empty-state p {
  font-size: 12px;
}
.empty-state .button {
  margin-top: 20px;
}
.empty-symbol {
  font-size: 33px;
  color: #80a9ac;
}
.main-footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-top: 28px;
  color: #92a1ad;
  font-size: 10px;
}
.notice-bar {
  border: 1px solid #d2e8e6;
  background: #edf8f6;
  color: #497775;
  font-size: 12px;
  padding: 13px 17px;
  border-radius: 9px;
  margin-bottom: 20px;
}
.task-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.task-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.task-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.task-card h3 {
  font-size: 16px;
}
.task-card p {
  color: var(--muted);
  font-size: 12px;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.task-meta {
  display: flex;
  gap: 14px;
  color: var(--muted);
  font-size: 11px;
  flex-wrap: wrap;
}
.share-link {
  display: flex;
  gap: 7px;
  background: #f5f8fa;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
}
.share-link input {
  background: transparent;
  border: 0;
  color: #526c80;
  font-size: 11px;
  min-width: 0;
  flex: 1;
  outline: 0;
  width: 100%;
}
.task-card-footer {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
}
.task-card-footer .rotate-button {
  margin-left: auto;
  font-size: 11px;
}
.alert {
  padding: 12px 17px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 17px;
}
.error-alert {
  color: var(--red);
  background: var(--red-soft);
  border: 1px solid #f0ccd0;
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: #f2f5f7;
  border: 0;
  border-radius: 50%;
  color: #6b8092;
  font-size: 25px;
  line-height: 1;
}
.icon-button:hover {
  background: #e5ecef;
  color: var(--ink);
}
dialog {
  border: 0;
  border-radius: 16px;
  padding: 0;
  box-shadow: 0 24px 100px #102c3f35;
  color: var(--ink);
  width: calc(100% - 36px);
  max-height: calc(100dvh - 50px);
}
dialog::backdrop {
  background: #10253585;
  backdrop-filter: blur(3px);
}
.editor-dialog {
  max-width: 950px;
}
.detail-dialog {
  max-width: 1080px;
}
.dialog-layout {
  display: flex;
  flex-direction: column;
  max-height: calc(100dvh - 50px);
  min-height: 150px;
}
.dialog-header {
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.dialog-header .eyebrow {
  margin-bottom: 5px;
  font-size: 9px;
}
.dialog-header h2 {
  font-size: 21px;
}
.dialog-body {
  padding: 23px 26px;
  overflow: auto;
}
.dialog-footer {
  border-top: 1px solid var(--line);
  padding: 17px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  background: #f8fafb;
  flex-shrink: 0;
}
.dialog-footer > div {
  display: flex;
  gap: 10px;
}
.editor-intro {
  display: grid;
  gap: 17px;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin: 28px 0 14px;
}
.section-title p {
  margin-top: 4px;
}
.item-editor {
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 13px;
  background: #fbfcfd;
  padding: 16px;
}
.item-editor-head {
  display: flex;
  align-items: center;
  gap: 9px;
  justify-content: space-between;
  margin-bottom: 12px;
}
.item-number {
  font-size: 10px;
  color: var(--teal);
  font-weight: 700;
  letter-spacing: 0.5px;
}
.item-editor-actions {
  display: flex;
  gap: 5px;
  align-items: center;
}
.item-editor-actions button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 5px;
  font-size: 11px;
  padding: 4px 7px;
  color: var(--muted);
}
.item-editor-actions button.remove-item {
  color: var(--red);
}
.item-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 12px;
}
.item-grid .full {
  grid-column: 1/-1;
}
.item-settings {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 12px;
}
.item-flags {
  display: flex;
  gap: 20px;
  margin-top: 13px;
  flex-wrap: wrap;
}
.item-hint {
  font-size: 11px;
  color: var(--muted);
  margin-top: 10px;
}
.inline-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.detail-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f9fbfc;
  padding: 17px;
}
.meta-label {
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 3px;
}
.meta-value {
  font-size: 12px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.meta-full {
  grid-column: 1/-1;
}
.detail-note {
  font-size: 11px;
  color: var(--muted);
  margin: 15px 0 20px;
}
.detail-section {
  margin-top: 24px;
}
.detail-section h3 {
  margin-bottom: 12px;
}
.detail-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 12px;
  overflow: hidden;
}
.detail-item-head {
  padding: 13px 15px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.detail-item-head > div {
  min-width: 0;
}
.detail-item-head h3 {
  font-size: 13px;
}
.detail-url {
  font-size: 10px;
  color: var(--muted);
  overflow-wrap: anywhere;
  margin-top: 4px;
}
.attempt-row {
  display: grid;
  grid-template-columns: 60px 1fr 100px;
  gap: 10px;
  align-items: start;
  padding: 12px 15px;
  border-top: 1px solid var(--line);
  font-size: 11px;
}
.attempt-name {
  color: var(--muted);
}
.attempt-note {
  color: var(--muted);
  margin-top: 6px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.attempt-timing {
  color: var(--ink);
  text-align: right;
}
.attempt-timing small {
  color: var(--muted);
  display: block;
  margin-top: 3px;
}
.pending-result {
  font-size: 12px;
  color: var(--muted);
  padding: 15px;
}
.screenshots {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}
.screenshot-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 200px;
  padding: 9px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: var(--muted);
  font-size: 10px;
}
.screenshot-card img {
  width: 100%;
  height: 170px;
  object-fit: contain;
  background: #f1f4f7;
  border-radius: 5px;
}
.screenshot-error {
  font-size: 11px;
  color: var(--red);
}
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 22px;
  background: #17394b;
  color: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 28px #102c3f35;
  z-index: 100;
  font-size: 13px;
  max-width: calc(100% - 30px);
  text-align: center;
}
.toast.error {
  background: #993b45;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
:focus-visible {
  outline: 3px solid #44b7b0;
  outline-offset: 3px;
}
@media (min-width: 1700px) {
  .main-content {
    padding-left: 54px;
    padding-right: 54px;
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 190px;
    padding-left: 13px;
    padding-right: 13px;
  }
  .sidebar .brand {
    font-size: 17px;
  }
  .main-content {
    margin-left: 190px;
    width: calc(100% - 190px);
    padding: 28px 24px;
  }
  .sync-status {
    display: none;
  }
  .header-actions {
    gap: 7px;
  }
  .breakdown-grid {
    gap: 15px;
  }
  .panel-heading {
    padding: 17px;
  }
  .panel-heading > .subtle {
    max-width: 100px;
    text-align: right;
  }
  .summary-content {
    padding: 10px 17px;
  }
  .task-grid {
    grid-template-columns: 1fr;
  }
  .metric-card {
    padding: 19px;
  }
  .metric-card.accent {
    padding-top: 17px;
  }
}
@media (max-width: 850px) {
  .sidebar {
    width: 100%;
    height: auto;
    position: sticky;
    top: 0;
    inset: 0 0 auto;
    padding: 13px 20px;
    flex-direction: row;
    align-items: center;
    gap: 20px;
  }
  .workspace {
    display: block;
  }
  .sidebar .brand {
    margin: 0;
    font-size: 15px;
  }
  .brand-mark {
    width: 32px;
    height: 32px;
    font-size: 21px;
  }
  .brand-caption {
    font-size: 8px;
    margin-top: 5px;
  }
  .sidebar nav {
    margin: 0 0 0 auto;
    flex-direction: row;
    gap: 4px;
  }
  .nav-item {
    padding: 9px 13px;
    font-size: 12px;
  }
  .nav-item span {
    display: none;
  }
  .nav-item.active {
    box-shadow: none;
  }
  .sidebar-bottom {
    display: none;
  }
  .main-content {
    margin-left: 0;
    width: 100%;
    padding: 25px 20px;
  }
  .page-header {
    align-items: start;
    margin-bottom: 22px;
  }
  .header-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .header-actions .button {
    font-size: 12px;
    min-height: 36px;
    padding: 8px 12px;
  }
  .breakdown-grid {
    grid-template-columns: 1fr 1fr;
  }
  .metric-card strong {
    font-size: 29px;
  }
  .metric-grid {
    gap: 10px;
  }
  .login-story {
    padding: 40px 8%;
  }
  .login-story h1 {
    font-size: 30px;
  }
  .login-screen {
    grid-template-columns: minmax(310px, 43%) 1fr;
  }
  .login-main {
    padding: 30px;
  }
  .main-footer {
    flex-direction: column;
    gap: 4px;
  }
  .detail-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .login-screen {
    display: block;
  }
  .login-story {
    padding: 25px;
    min-height: 200px;
    gap: 30px;
  }
  .login-story h1 {
    font-size: 23px;
    line-height: 1.5;
  }
  .login-story .eyebrow,
  .login-story p,
  .story-line,
  .story-foot {
    display: none;
  }
  .login-main {
    padding: 37px 27px;
  }
  .login-card h2 {
    font-size: 26px;
  }
  .sidebar {
    padding: 12px 15px;
    gap: 8px;
  }
  .sidebar .brand-caption {
    display: none;
  }
  .sidebar .brand {
    gap: 8px;
    font-size: 14px;
  }
  .nav-item {
    padding: 8px 9px;
    font-size: 11px;
  }
  .main-content {
    padding: 23px 14px 18px;
  }
  .page-header {
    gap: 10px;
    align-items: flex-start;
  }
  .page-header .eyebrow {
    font-size: 8px;
    letter-spacing: 1.2px;
  }
  .page-header h1 {
    font-size: 24px;
  }
  .page-header p {
    font-size: 11px;
    max-width: 195px;
  }
  .header-actions {
    max-width: 105px;
  }
  .header-actions > .button {
    min-height: 32px;
    font-size: 11px;
    padding: 7px 10px;
  }
  .header-actions #refresh {
    padding: 5px 10px;
    background: transparent;
    border: 0;
    order: 2;
  }
  .filter-bar {
    align-items: flex-start;
    gap: 12px;
  }
  .filter-bar .field {
    min-width: 0;
    flex: 1;
  }
  .filter-note {
    font-size: 9px;
    padding-left: 11px;
    max-width: 135px;
    margin-top: 25px;
  }
  .metric-grid {
    gap: 7px;
    margin-bottom: 15px;
  }
  .metric-card {
    padding: 14px 11px;
    gap: 7px;
    border-radius: 10px;
  }
  .metric-card.accent {
    padding-top: 12px;
  }
  .metric-card strong {
    font-size: 28px;
  }
  .metric-label {
    font-size: 10px;
  }
  .metric-card > span:last-child {
    font-size: 9px;
    line-height: 1.5;
  }
  .breakdown-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 16px;
  }
  .panel-heading {
    padding: 15px;
  }
  .panel-heading > .subtle {
    max-width: none;
    font-size: 10px;
  }
  .summary-content {
    max-height: 230px;
    padding: 6px 15px;
  }
  .record-filters {
    padding: 13px;
    gap: 9px;
    flex-wrap: wrap;
  }
  .record-filters .status-filter {
    min-width: 130px;
    max-width: 140px;
  }
  .record-filters .search-field {
    min-width: 130px;
  }
  .record-filters .button {
    width: 100%;
    min-height: 32px;
  }
  .field.compact input,
  .field.compact select {
    min-height: 38px;
    font-size: 12px;
  }
  .records-table {
    min-width: 730px;
  }
  .panel-heading h2 {
    font-size: 14px;
  }
  .panel-heading p {
    font-size: 10px;
  }
  .pagination {
    padding: 12px 14px;
    font-size: 10px;
  }
  .task-card {
    padding: 17px;
    gap: 13px;
  }
  .task-card h3 {
    font-size: 15px;
  }
  .share-link {
    padding: 6px;
  }
  .share-link .button {
    font-size: 10px;
  }
  .task-card-footer .button {
    font-size: 11px;
  }
  .task-card-footer .rotate-button {
    margin-left: 0;
  }
  .notice-bar {
    font-size: 11px;
    padding: 11px 13px;
  }
  .main-footer {
    font-size: 9px;
  }
  dialog {
    width: calc(100% - 14px);
    max-height: calc(100dvh - 14px);
    border-radius: 11px;
  }
  .dialog-layout {
    max-height: calc(100dvh - 14px);
  }
  .dialog-header {
    padding: 17px 15px;
  }
  .dialog-header h2 {
    font-size: 17px;
  }
  .dialog-body {
    padding: 17px 14px;
  }
  .dialog-footer {
    padding: 13px 14px;
    gap: 8px;
    align-items: flex-start;
  }
  .dialog-footer > .subtle {
    font-size: 10px;
    max-width: 120px;
  }
  .dialog-footer .button {
    font-size: 12px;
    min-height: 36px;
    padding: 8px 12px;
  }
  .item-editor {
    padding: 12px;
  }
  .item-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .item-grid > .field:first-child {
    grid-column: 1/-1;
  }
  .item-settings {
    gap: 7px;
  }
  .item-settings .field {
    font-size: 10px;
  }
  .item-settings input,
  .item-settings select {
    padding: 8px 6px;
    font-size: 12px;
  }
  .item-flags {
    gap: 13px;
  }
  .check-label {
    font-size: 11px;
  }
  .section-title {
    align-items: start;
  }
  .section-title p {
    font-size: 10px;
    max-width: 210px;
  }
  .section-title .button {
    font-size: 10px;
    white-space: nowrap;
  }
  .detail-meta {
    padding: 13px;
    gap: 13px;
  }
  .meta-value {
    font-size: 11px;
  }
  .detail-note {
    font-size: 10px;
  }
  .attempt-row {
    grid-template-columns: 48px 1fr 72px;
    padding: 10px;
    gap: 6px;
  }
  .attempt-timing,
  .attempt-name {
    font-size: 10px;
  }
  .detail-item-head {
    padding: 12px;
  }
  .inline-actions {
    gap: 6px;
  }
  .inline-actions .button {
    font-size: 10px;
    padding: 5px 7px;
  }
  .screenshot-card {
    width: calc(50% - 8px);
  }
  .screenshot-card img {
    height: 140px;
  }
  .toast {
    bottom: 17px;
    font-size: 12px;
  }
}
.mobile-logout {
  display: none;
}
@media (max-width: 850px) {
  .mobile-logout {
    display: block;
    background: transparent;
    border: 0;
    color: #a8c4d3;
    font-size: 11px;
    padding: 7px 3px;
  }
  .sidebar nav {
    margin-left: auto;
  }
}
.table-scroll {
  position: relative;
}
.main-content,
.panel,
.breakdown-grid > * {
  min-width: 0;
}
body:has(dialog[open]) {
  overflow: hidden;
}
