:root {
  --ink: #0b1727;
  --ink-soft: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --surface: #ffffff;
  --surface-soft: #f7f9fc;
  --navy: #0b1b2e;
  --navy-2: #122b45;
  --teal: #0f766e;
  --teal-bright: #14b8a6;
  --blue: #2563eb;
  --amber: #d97706;
  --red: #dc2626;
  --green: #15803d;
  --violet: #7c3aed;
  --shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  --shadow-soft: 0 8px 24px rgba(15, 23, 42, 0.06);
  --radius: 24px;
  --radius-sm: 16px;
  --font-sans: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: #f4f7fb;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 0%, rgba(20, 184, 166, 0.09), transparent 28rem),
    radial-gradient(circle at 92% 12%, rgba(37, 99, 235, 0.07), transparent 30rem),
    #f4f7fb;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: rgba(244, 247, 251, 0.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.14), transparent 55%),
    var(--navy);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: 0 8px 20px rgba(11, 27, 46, 0.2);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-copy strong {
  font-size: 16px;
  letter-spacing: 0.04em;
}

.brand-copy small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 650;
}

.nav-link:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.8);
}

.nav-link-muted {
  color: var(--muted);
}

.page-main {
  flex: 1;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 18px 0 64px;
}

.site-footer {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 22px 0 30px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 12px;
}

.eyebrow,
.section-kicker {
  display: block;
  color: var(--teal);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  padding: 44px;
  border-radius: 32px;
  color: #fff;
  background:
    radial-gradient(circle at 86% 16%, rgba(20, 184, 166, 0.27), transparent 18rem),
    radial-gradient(circle at 15% 110%, rgba(37, 99, 235, 0.28), transparent 20rem),
    linear-gradient(135deg, #0a192b 0%, #102a43 62%, #0d3b3a 100%);
  box-shadow: 0 24px 60px rgba(9, 24, 41, 0.22);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 36px;
  align-items: end;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

.hero::before {
  width: 320px;
  height: 320px;
  right: -100px;
  top: -140px;
}

.hero::after {
  width: 180px;
  height: 180px;
  right: 40px;
  bottom: -110px;
}

.hero-copy,
.hero-meter {
  position: relative;
  z-index: 1;
}

.hero .eyebrow {
  color: rgba(153, 246, 228, 0.86);
}

.hero h1 {
  margin: 14px 0 12px;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.12;
  letter-spacing: -0.04em;
  font-weight: 720;
}

.hero p {
  max-width: 660px;
  margin: 0;
  color: rgba(226, 232, 240, 0.82);
  font-size: 15px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.hero-meta span {
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  color: rgba(241, 245, 249, 0.86);
  background: rgba(255, 255, 255, 0.06);
  font-size: 11px;
}

.hero-meter {
  min-width: 160px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(8px);
}

.hero-meter-value {
  font-size: 44px;
  font-weight: 740;
  line-height: 1;
  letter-spacing: -0.06em;
}

.hero-meter-value small {
  font-size: 18px;
  margin-left: 2px;
}

.hero-meter > span {
  display: block;
  margin-top: 6px;
  color: rgba(226, 232, 240, 0.7);
  font-size: 11px;
}

.hero-meter-note {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(204, 251, 241, 0.82);
  font-size: 11px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 40px;
}

.stat-card {
  padding: 20px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
}

.stat-card-accent {
  border-color: rgba(37, 99, 235, 0.16);
  background: linear-gradient(145deg, #fff, #eff6ff);
}

.stat-card-warm {
  border-color: rgba(217, 119, 6, 0.16);
  background: linear-gradient(145deg, #fff, #fffbeb);
}

.stat-label {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.stat-card strong {
  display: inline-block;
  margin: 8px 0 2px;
  font-size: 32px;
  line-height: 1;
  letter-spacing: -0.05em;
}

.stat-card strong small {
  font-size: 14px;
  margin-left: 1px;
}

.stat-card > small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.section-block {
  margin-top: 42px;
}

.section-last {
  margin-bottom: 10px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.section-head h2,
.panel-head h2 {
  margin: 5px 0 0;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.section-count {
  color: var(--muted);
  font-size: 12px;
}

.section-actions {
  display: flex;
  gap: 8px;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.work-card {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.work-card:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
  box-shadow: var(--shadow);
}

.work-card-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.work-card h3,
.issue-card h3 {
  margin: 14px 0 10px;
  font-size: 19px;
  line-height: 1.4;
  letter-spacing: -0.02em;
}

.project-tag {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.pill-neutral {
  color: #475569;
  background: #f1f5f9;
}

.pill-active {
  color: #1d4ed8;
  background: #dbeafe;
}

.pill-success {
  color: #166534;
  background: #dcfce7;
}

.pill-warning {
  color: #92400e;
  background: #fef3c7;
}

.pill-danger {
  color: #991b1b;
  background: #fee2e2;
}

.pill-review {
  color: #5b21b6;
  background: #ede9fe;
}

.pill-muted {
  color: #64748b;
  background: #eef2f6;
}

.mini-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 7px;
  border-radius: 7px;
  font-size: 10px;
  font-weight: 700;
}

.mini-danger {
  color: #991b1b;
  background: #fef2f2;
}

.mini-warning {
  color: #92400e;
  background: #fffbeb;
}

.mini-neutral {
  color: #475569;
  background: #f8fafc;
}

.work-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
}

.due-text.is-overdue {
  color: var(--red);
  font-weight: 700;
}

.progress-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 15px;
}

.progress-track {
  flex: 1;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #eef2f6;
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb, #14b8a6);
}

.progress-row small {
  width: 32px;
  color: var(--muted);
  font-size: 10px;
  text-align: right;
}

.work-excerpt {
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
}

.work-card-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: auto;
  padding-top: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #fff;
  background: var(--navy);
  box-shadow: 0 8px 18px rgba(11, 27, 46, 0.16);
}

.btn-primary:hover {
  background: #102b47;
}

.btn-outline {
  color: var(--ink-soft);
  border-color: var(--line);
  background: #fff;
}

.btn-outline:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.btn-ghost {
  color: var(--muted);
  background: transparent;
}

.btn-block {
  width: 100%;
}

.btn-small {
  min-height: 34px;
  padding: 6px 11px;
  font-size: 11px;
}

.btn-submit {
  min-height: 50px;
  padding: 8px 22px;
  flex-direction: column;
  gap: 0;
  border-radius: 15px;
  background: linear-gradient(135deg, #0f766e, #0b1b2e);
}

.btn-submit small {
  color: rgba(255, 255, 255, 0.66);
  font-size: 9px;
  font-weight: 500;
}

.issue-list {
  display: grid;
  gap: 10px;
}

.issue-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 22px;
  border: 1px solid rgba(217, 119, 6, 0.18);
  border-radius: 20px;
  background: linear-gradient(120deg, #ffffff, #fffdf7);
  box-shadow: var(--shadow-soft);
}

.issue-main {
  min-width: 0;
}

.issue-card h3 {
  margin-bottom: 6px;
}

.meta-separator {
  color: #cbd5e1;
}

.empty-state {
  padding: 34px 24px;
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius);
  text-align: center;
  background: rgba(255, 255, 255, 0.58);
}

.empty-state strong {
  display: block;
  font-size: 15px;
}

.empty-state p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.empty-large {
  padding: 70px 24px;
}

.empty-large .btn {
  margin-top: 18px;
}

.review-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.review-row {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) 72px;
  gap: 16px;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  transition: background 140ms ease;
}

.review-row:last-child {
  border-bottom: 0;
}

.review-row:hover {
  background: #f8fafc;
}

.review-date {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.review-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.review-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.review-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 11px;
}

.review-score {
  text-align: right;
}

.review-score strong {
  display: block;
  font-size: 22px;
  line-height: 1;
}

.review-score span {
  color: var(--muted);
  font-size: 9px;
}

.review-score.is-pass strong {
  color: var(--green);
}

.review-score.is-fail strong {
  color: var(--red);
}

.text-link {
  color: var(--teal);
  font-size: 12px;
  font-weight: 700;
}

.text-link:hover {
  text-decoration: underline;
}

.page-back-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 6px 0 18px;
}

.back-link {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 650;
}

.back-link:hover {
  color: var(--teal);
}

.step-indicator {
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.14em;
}

.log-context {
  display: flex;
  gap: 20px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 100% 0%, rgba(20, 184, 166, 0.08), transparent 16rem),
    #fff;
  box-shadow: var(--shadow-soft);
}

.context-badge {
  flex: 0 0 50px;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  background: var(--navy);
  font-size: 12px;
  font-weight: 750;
}

.context-copy {
  min-width: 0;
}

.context-copy h1 {
  margin: 7px 0 10px;
  font-size: clamp(23px, 3vw, 32px);
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.context-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
}

.context-details {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 12px;
}

.context-details summary {
  width: fit-content;
  color: var(--teal);
  cursor: pointer;
  font-weight: 650;
}

.context-details p {
  white-space: pre-line;
  margin: 10px 0 0;
  padding: 14px;
  border-radius: 12px;
  background: #f8fafc;
}

.log-form {
  max-width: 920px;
  margin: 22px auto 0;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow);
}

.form-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 26px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.form-intro h2 {
  margin: 5px 0 0;
  font-size: 25px;
  letter-spacing: -0.03em;
}

.form-intro p {
  max-width: 330px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.form-grid {
  display: grid;
  gap: 18px;
}

.form-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.field > span,
.field-heading {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
}

.field > span em {
  color: var(--red);
  font-size: 9px;
  font-style: normal;
  font-weight: 600;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid #d8e1ec;
  border-radius: 13px;
  color: var(--ink);
  background: #fbfcfe;
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.field input,
.field select {
  min-height: 46px;
  padding: 10px 13px;
}

.field textarea {
  padding: 13px;
  resize: vertical;
  line-height: 1.7;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: #5eead4;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.1);
}

.field small {
  color: var(--muted);
  font-size: 10px;
}

.field-heading {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.field-heading output {
  color: var(--teal);
  font-weight: 750;
}

input[type="range"] {
  width: 100%;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #0f766e, #14b8a6);
  accent-color: var(--teal);
}

.completion-check {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin: 4px 0 20px;
  padding: 17px;
  border: 1px solid #dbe5ef;
  border-radius: 16px;
  background: #f8fafc;
  cursor: pointer;
}

.completion-check input {
  width: 19px;
  height: 19px;
  margin: 2px 0 0;
  accent-color: var(--teal);
}

.completion-check span {
  display: flex;
  flex-direction: column;
}

.completion-check strong {
  font-size: 13px;
}

.completion-check small {
  color: var(--muted);
  font-size: 10px;
}

.ai-rubric {
  margin: 8px 0 24px;
  padding: 19px;
  border: 1px solid rgba(15, 118, 110, 0.15);
  border-radius: 18px;
  background: linear-gradient(135deg, #f0fdfa, #f8fafc);
}

.ai-rubric-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ai-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  background: var(--teal);
  font-size: 11px;
  font-weight: 800;
}

.ai-rubric-head div {
  display: flex;
  flex-direction: column;
}

.ai-rubric-head strong {
  font-size: 13px;
}

.ai-rubric-head small {
  color: var(--muted);
  font-size: 10px;
}

.rubric-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.rubric-grid span {
  padding: 5px 8px;
  border-radius: 7px;
  color: #115e59;
  background: rgba(255, 255, 255, 0.8);
  font-size: 9px;
  font-weight: 650;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.alert {
  margin-bottom: 20px;
  padding: 13px 15px;
  border-radius: 12px;
  font-size: 12px;
}

.alert-error {
  color: #991b1b;
  border: 1px solid #fecaca;
  background: #fef2f2;
}

.result-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 30px;
  align-items: center;
  padding: 34px;
  border-radius: 30px;
  color: #fff;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.16);
}

.result-pass {
  background:
    radial-gradient(circle at 92% 0%, rgba(74, 222, 128, 0.24), transparent 18rem),
    linear-gradient(135deg, #0b2b22, #124238 58%, #0b1b2e);
}

.result-fail {
  background:
    radial-gradient(circle at 92% 0%, rgba(251, 191, 36, 0.2), transparent 18rem),
    linear-gradient(135deg, #351716, #4a1d1b 58%, #1e2432);
}

.score-ring {
  width: 148px;
  height: 148px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(
    var(--teal-bright) calc(var(--score) * 1%),
    rgba(255, 255, 255, 0.1) 0
  );
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.result-fail .score-ring {
  background: conic-gradient(
    #f59e0b calc(var(--score) * 1%),
    rgba(255, 255, 255, 0.1) 0
  );
}

.score-ring-inner {
  width: 112px;
  height: 112px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  border-radius: 50%;
  background: rgba(5, 15, 25, 0.86);
}

.score-ring-inner strong {
  font-size: 48px;
  line-height: 112px;
  letter-spacing: -0.06em;
}

.score-ring-inner span {
  margin-left: 2px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
}

.result-copy .eyebrow {
  color: rgba(153, 246, 228, 0.78);
}

.result-fail .result-copy .eyebrow {
  color: rgba(253, 230, 138, 0.78);
}

.result-copy h1 {
  margin: 8px 0;
  font-size: clamp(29px, 4vw, 42px);
  letter-spacing: -0.04em;
}

.result-copy p {
  max-width: 650px;
  margin: 0;
  color: rgba(241, 245, 249, 0.82);
  font-size: 14px;
}

.result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 15px;
}

.result-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  color: rgba(241, 245, 249, 0.74);
  background: rgba(255, 255, 255, 0.08);
  font-size: 9px;
}

.result-verdict {
  min-width: 128px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 18px;
  text-align: center;
  background: rgba(255, 255, 255, 0.07);
}

.result-verdict span {
  display: block;
  font-size: 21px;
  font-weight: 750;
}

.result-verdict small {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 9px;
}

.status-transition {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 8px 20px;
  align-items: center;
  margin-top: 16px;
  padding: 20px 24px;
  border: 1px solid #bbf7d0;
  border-radius: 20px;
  background: #f0fdf4;
}

.status-transition p {
  grid-column: 2;
  margin: 0;
  color: #166534;
  font-size: 11px;
}

.transition-label {
  color: #166534;
  font-size: 11px;
  font-weight: 750;
}

.transition-flow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}

.transition-arrow {
  color: #16a34a;
  font-weight: 800;
}

.transition-copy {
  color: #166534;
  font-size: 11px;
  font-weight: 650;
}

.status-hold {
  border-color: #bfdbfe;
  background: #eff6ff;
}

.status-hold .transition-label,
.status-hold p,
.status-hold .transition-copy {
  color: #1d4ed8;
}

.status-blocked {
  border-color: #fde68a;
  background: #fffbeb;
}

.status-blocked .transition-label,
.status-blocked p {
  color: #92400e;
}

.result-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 16px;
  margin-top: 16px;
}

.result-grid-lower {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.panel {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.panel-head {
  margin-bottom: 18px;
}

.dimension-list {
  display: grid;
  gap: 18px;
}

.dimension-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 6px;
}

.dimension-top strong {
  font-size: 12px;
}

.dimension-top span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.dimension-track {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #eef2f6;
}

.dimension-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0f766e, #14b8a6);
}

.dimension-row p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.panel-actions {
  background: linear-gradient(150deg, #fff, #f8fafc);
}

.callout {
  margin-bottom: 16px;
  padding: 15px;
  border-radius: 14px;
}

.callout strong {
  display: block;
  font-size: 12px;
}

.callout p {
  margin: 3px 0 0;
  font-size: 10px;
}

.callout-success {
  color: #166534;
  background: #f0fdf4;
}

.callout-warning {
  color: #92400e;
  background: #fffbeb;
}

.panel-actions .btn {
  margin-top: 8px;
}

.feedback-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.feedback-list li {
  position: relative;
  padding: 11px 13px 11px 34px;
  border-radius: 12px;
  background: #f8fafc;
  color: var(--ink-soft);
  font-size: 11px;
}

.feedback-list li::before {
  position: absolute;
  left: 12px;
  top: 10px;
  width: 14px;
  height: 14px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-size: 8px;
  font-weight: 800;
}

.feedback-good li::before {
  content: "✓";
  background: var(--green);
}

.feedback-action {
  counter-reset: action;
}

.feedback-action li {
  counter-increment: action;
  padding-left: 38px;
}

.feedback-action li::before {
  content: counter(action);
  background: var(--amber);
}

.muted-text {
  color: var(--muted);
  font-size: 11px;
}

.log-detail {
  margin-top: 16px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.76);
}

.log-detail summary {
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.log-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.log-detail-grid > div {
  padding: 15px;
  border-radius: 12px;
  background: #f8fafc;
}

.log-detail-grid span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.log-detail-grid p {
  margin: 6px 0 0;
  white-space: pre-line;
  font-size: 11px;
}

.page-heading {
  padding: 28px 0 22px;
}

.page-heading h1 {
  margin: 6px 0 4px;
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -0.04em;
}

.page-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.table-shell {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th {
  padding: 13px 17px;
  color: var(--muted);
  background: #f8fafc;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-align: left;
  text-transform: uppercase;
}

.data-table td {
  padding: 15px 17px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 11px;
  vertical-align: middle;
}

.data-table td strong {
  display: block;
  color: var(--ink);
  font-size: 12px;
}

.data-table td small {
  display: block;
  max-width: 420px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 9px;
}

.table-action {
  text-align: right;
}

.table-action a {
  color: var(--teal);
  font-weight: 700;
}

.score-inline {
  font-size: 17px;
  font-weight: 750;
}

.score-inline.is-pass {
  color: var(--green);
}

.score-inline.is-fail {
  color: var(--red);
}

.transition-inline {
  color: var(--teal);
  font-weight: 650;
}

.login-body {
  background:
    radial-gradient(circle at 10% 10%, rgba(20, 184, 166, 0.12), transparent 30rem),
    #f4f7fb;
}

.login-shell {
  min-height: calc(100vh - 160px);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: 18px;
  align-items: stretch;
  padding: 28px 0;
}

.login-brand-panel {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(34px, 6vw, 76px);
  border-radius: 34px;
  color: #fff;
  background:
    radial-gradient(circle at 92% 9%, rgba(20, 184, 166, 0.3), transparent 16rem),
    radial-gradient(circle at 10% 100%, rgba(37, 99, 235, 0.32), transparent 20rem),
    linear-gradient(135deg, #081728, #102a43 58%, #0e3a37);
  box-shadow: 0 26px 60px rgba(9, 24, 41, 0.22);
}

.login-brand-panel::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -200px;
  bottom: -220px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 50%;
}

.login-brand-panel .eyebrow {
  color: rgba(153, 246, 228, 0.8);
}

.login-brand-panel h1 {
  margin: 18px 0;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.08;
  letter-spacing: -0.06em;
}

.login-brand-panel > p {
  max-width: 500px;
  margin: 0;
  color: rgba(226, 232, 240, 0.78);
}

.login-points {
  display: grid;
  gap: 10px;
  margin-top: 34px;
}

.login-points span {
  display: flex;
  align-items: center;
  gap: 13px;
  color: rgba(241, 245, 249, 0.86);
  font-size: 12px;
}

.login-points b {
  color: rgba(94, 234, 212, 0.72);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.login-quote {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
  color: rgba(148, 163, 184, 0.8);
  font-size: 10px;
}

.login-card,
.center-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(30px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: 34px;
  background: #fff;
  box-shadow: var(--shadow);
}

.login-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  background: var(--navy);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.login-card h2,
.center-card h1 {
  margin: 22px 0 8px;
  font-size: 29px;
  letter-spacing: -0.04em;
}

.login-card > p,
.center-card > p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.login-help {
  margin: 28px 0 18px;
  padding: 16px;
  border-radius: 14px;
  background: #f8fafc;
}

.login-help strong {
  font-size: 12px;
}

.login-help p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.center-card-wrap {
  min-height: calc(100vh - 220px);
  display: grid;
  place-items: center;
  padding: 30px 0;
}

.center-card {
  width: min(470px, 100%);
  border-radius: 28px;
}

.center-link {
  display: inline-block;
  margin-top: 18px;
  text-align: center;
}

.stack-form {
  margin-top: 24px;
}

.error-card {
  text-align: center;
}

.error-code {
  width: 54px;
  height: 54px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #991b1b;
  background: #fee2e2;
  font-size: 25px;
  font-weight: 800;
}

.error-card .btn {
  margin-top: 22px;
}

.admin-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0 8px;
}

.admin-hero h1 {
  margin: 7px 0 4px;
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -0.04em;
}

.admin-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.admin-date {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.admin-stats {
  margin-top: 24px;
}

.entry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.entry-card {
  display: grid;
  grid-template-columns: minmax(140px, 0.8fr) minmax(0, 1.5fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.entry-person {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.avatar {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #0f766e;
  background: #ccfbf1;
  font-size: 12px;
  font-weight: 750;
}

.entry-person div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.entry-person strong {
  font-size: 12px;
}

.entry-person small {
  color: var(--muted);
  font-size: 9px;
}

.entry-url {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
}

.admin-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.site-footer {
  flex-wrap: wrap;
}

.busy-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(7, 17, 29, 0.66);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.busy-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

.busy-card {
  width: min(420px, 100%);
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 26px;
  color: #fff;
  background: linear-gradient(145deg, #0b1b2e, #103a38);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.busy-orbit {
  width: 58px;
  height: 58px;
  margin: 0 auto 18px;
  border: 1px solid rgba(94, 234, 212, 0.3);
  border-radius: 50%;
  animation: orbit 1.6s linear infinite;
}

.busy-orbit span {
  display: block;
  width: 11px;
  height: 11px;
  margin: -5px auto 0;
  border-radius: 50%;
  background: #5eead4;
  box-shadow: 0 0 18px rgba(94, 234, 212, 0.8);
}

.busy-card strong {
  font-size: 21px;
}

.busy-card p {
  margin: 8px 0 0;
  color: rgba(226, 232, 240, 0.72);
  font-size: 11px;
}

.busy-steps {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 20px;
}

.busy-steps span {
  padding: 5px 8px;
  border-radius: 999px;
  color: rgba(204, 251, 241, 0.8);
  background: rgba(255, 255, 255, 0.07);
  font-size: 9px;
}

@keyframes orbit {
  to { transform: rotate(360deg); }
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 120;
  transform: translate(-50%, 14px);
  padding: 10px 16px;
  border-radius: 999px;
  color: #fff;
  background: rgba(11, 27, 46, 0.94);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.24);
  font-size: 11px;
  opacity: 0;
  transition: opacity 160ms ease, transform 160ms ease;
  pointer-events: none;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 980px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .result-hero {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .result-verdict {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
  }

  .result-verdict small {
    margin: 0;
  }

  .result-grid {
    grid-template-columns: 1fr;
  }

  .entry-grid {
    grid-template-columns: 1fr;
  }

  .login-shell {
    grid-template-columns: 1fr;
  }

  .login-brand-panel {
    min-height: 440px;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 14px;
  }

  .site-header,
  .page-main,
  .site-footer {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    padding: 12px 0;
  }

  .brand-copy small {
    display: none;
  }

  .nav-link {
    padding: 7px 8px;
    font-size: 11px;
  }

  .page-main {
    padding-top: 10px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 28px 22px;
    border-radius: 24px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero-meter {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4px 14px;
    align-items: center;
  }

  .hero-meter-value {
    grid-row: 1 / 3;
    font-size: 38px;
  }

  .hero-meter-note {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-bottom: 32px;
  }

  .stat-card {
    padding: 16px;
    border-radius: 16px;
  }

  .stat-card strong {
    font-size: 28px;
  }

  .work-grid {
    grid-template-columns: 1fr;
  }

  .work-card {
    padding: 18px;
    border-radius: 20px;
  }

  .issue-card {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
    padding: 18px;
  }

  .issue-card .btn {
    width: 100%;
  }

  .review-row {
    grid-template-columns: 1fr 58px;
    gap: 8px;
  }

  .review-date {
    display: none;
  }

  .review-copy {
    grid-column: 1;
  }

  .review-score {
    grid-column: 2;
    grid-row: 1;
  }

  .section-head {
    align-items: flex-start;
  }

  .section-head h2 {
    font-size: 21px;
  }

  .log-context {
    padding: 20px;
  }

  .context-badge {
    flex-basis: 42px;
    width: 42px;
    height: 42px;
    border-radius: 13px;
  }

  .log-form {
    padding: 22px 18px;
    border-radius: 22px;
  }

  .form-intro {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .form-intro h2 {
    font-size: 22px;
  }

  .form-grid-2 {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .form-actions {
    flex-direction: column-reverse;
  }

  .form-actions .btn {
    width: 100%;
  }

  .result-hero {
    grid-template-columns: 1fr;
    padding: 26px 22px;
    border-radius: 24px;
    text-align: center;
  }

  .score-ring {
    margin: 0 auto;
  }

  .result-meta {
    justify-content: center;
  }

  .result-verdict {
    flex-direction: column;
    text-align: center;
  }

  .status-transition {
    grid-template-columns: 1fr;
  }

  .status-transition p {
    grid-column: 1;
  }

  .result-grid-lower {
    grid-template-columns: 1fr;
  }

  .panel {
    padding: 20px;
    border-radius: 20px;
  }

  .log-detail-grid {
    grid-template-columns: 1fr;
  }

  .data-table thead {
    display: none;
  }

  .data-table,
  .data-table tbody,
  .data-table tr,
  .data-table td {
    display: block;
    width: 100%;
  }

  .data-table tr {
    padding: 13px 16px;
    border-top: 1px solid var(--line);
  }

  .data-table tr:first-child {
    border-top: 0;
  }

  .data-table td {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 10px;
    padding: 6px 0;
    border: 0;
  }

  .data-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 9px;
    font-weight: 700;
  }

  .data-table td.table-action {
    display: block;
    padding-top: 10px;
    text-align: left;
  }

  .data-table td.table-action::before {
    content: "";
  }

  .data-table td small {
    white-space: normal;
  }

  .login-shell {
    min-height: 0;
    padding: 10px 0;
  }

  .login-brand-panel {
    min-height: 380px;
    padding: 32px 24px;
    border-radius: 24px;
  }

  .login-brand-panel h1 {
    font-size: 40px;
  }

  .login-card,
  .center-card {
    padding: 28px 22px;
    border-radius: 24px;
  }

  .admin-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .entry-card {
    grid-template-columns: 1fr auto;
  }

  .entry-url {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .section-actions {
    flex-direction: column;
  }

  .site-footer {
    flex-direction: column;
    gap: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.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;
}

.alert-info {
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
}

.alert-warning {
  color: #92400e;
  border: 1px solid #fde68a;
  background: #fffbeb;
}

.work-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.filter-chip {
  padding: 7px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--muted);
  background: transparent;
  font-size: 11px;
  font-weight: 700;
}

.filter-chip:hover {
  color: var(--ink);
  background: #f1f5f9;
}

.filter-chip.is-active {
  color: #fff;
  background: var(--navy);
  box-shadow: 0 6px 14px rgba(11, 27, 46, 0.14);
}

.toolbar-controls {
  display: flex;
  gap: 8px;
  min-width: 0;
}

.search-box input,
.select-box select {
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink-soft);
  background: #fff;
  font-size: 11px;
  outline: none;
}

.search-box input {
  width: 190px;
  padding: 0 12px;
}

.select-box select {
  padding: 0 28px 0 10px;
}

.search-box input:focus,
.select-box select:focus {
  border-color: #5eead4;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

.work-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.work-row {
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.work-row:last-child {
  border-bottom: 0;
}

.work-row[open] {
  background: #fbfdff;
}

.work-row-summary {
  display: grid;
  grid-template-columns: 52px minmax(0, 1.5fr) minmax(250px, 0.9fr) 22px;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
  transition: background 140ms ease;
}

.work-row-summary::-webkit-details-marker {
  display: none;
}

.work-row-summary:hover {
  background: #f8fafc;
}

.type-mark {
  width: 42px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.type-task {
  color: #1d4ed8;
  background: #dbeafe;
}

.type-issue {
  color: #92400e;
  background: #fef3c7;
}

.work-row-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.work-row-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.work-row-sub {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 10px;
}

.work-row-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 7px;
}

.row-expand {
  color: #94a3b8;
  font-size: 16px;
  transition: transform 160ms ease;
}

.work-row[open] .row-expand {
  transform: rotate(180deg);
}

.work-row-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  padding: 0 18px 18px 86px;
  animation: detail-in 160ms ease;
}

@keyframes detail-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.detail-copy {
  min-width: 0;
}

.detail-copy p {
  margin: 7px 0 0;
  color: var(--ink-soft);
  font-size: 11px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--muted);
  font-size: 10px;
}

.detail-meta b {
  color: var(--ink);
}

.detail-progress {
  grid-column: 1;
  margin-top: 0;
}

.work-row-detail > .btn {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
}

.work-filter-empty {
  margin-top: 12px;
}

.attachment-field {
  margin: 4px 0 22px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fbfdff;
}

.attachment-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 12px;
}

.attachment-head > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.attachment-title {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 750;
}

.attachment-title em {
  color: var(--red);
  font-size: 9px;
  font-style: normal;
}

.attachment-head small {
  color: var(--muted);
  font-size: 10px;
}

.attachment-badge {
  padding: 4px 8px;
  border-radius: 999px;
  color: #92400e;
  background: #fef3c7;
  font-size: 9px;
  font-weight: 750;
}

.upload-zone {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  border: 1px dashed #b8c5d6;
  border-radius: 15px;
  background: #fff;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease;
}

.upload-zone:hover,
.upload-zone.is-dragover {
  border-color: #2dd4bf;
  background: #f0fdfa;
}

.upload-zone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.upload-icon {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--teal);
  background: #ccfbf1;
  font-size: 22px;
  font-weight: 400;
}

.upload-copy {
  display: flex;
  flex-direction: column;
}

.upload-copy strong {
  font-size: 12px;
}

.upload-copy small {
  color: var(--muted);
  font-size: 10px;
}

.file-list {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.file-list-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 11px;
  border-radius: 9px;
  background: #f1f5f9;
  font-size: 10px;
}

.file-list-item strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-list-item span {
  flex: 0 0 auto;
  color: var(--muted);
}

.field-error {
  margin-top: 8px;
  color: var(--red);
  font-size: 10px;
}

.base-sync-chip {
  color: rgba(255, 255, 255, 0.82) !important;
}

.base-sync-chip.is-synced {
  color: #bbf7d0 !important;
  background: rgba(22, 101, 52, 0.38) !important;
}

.attachments-panel {
  margin-top: 16px;
}

.attachment-result-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.attachment-result {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfdff;
  transition: border-color 150ms ease, background 150ms ease;
}

.attachment-result:hover {
  border-color: #99f6e4;
  background: #f0fdfa;
}

.attachment-file-icon {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #115e59;
  background: #ccfbf1;
  font-size: 8px;
  font-weight: 800;
}

.attachment-result > span:nth-child(2) {
  min-width: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.attachment-result strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
}

.attachment-result small {
  color: var(--muted);
  font-size: 9px;
}

.download-mark {
  color: var(--teal);
  font-size: 9px;
  font-weight: 700;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.admin-panel-wide {
  grid-column: 1 / -1;
}

.sync-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 13px;
  border-radius: 13px;
  background: #f8fafc;
}

.sync-status > div {
  display: flex;
  flex-direction: column;
}

.sync-status span {
  color: var(--muted);
  font-size: 10px;
}

.sync-status strong {
  font-size: 12px;
}

.sync-error {
  margin-top: 10px;
  margin-bottom: 0;
}

.inline-setting-form {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.inline-setting-form .compact-field {
  flex: 1;
  margin-bottom: 0;
}

.password-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 10px;
  align-items: end;
}

.password-form .field {
  margin-bottom: 0;
}

.admin-entry-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.admin-entry-head,
.admin-entry-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.8fr) minmax(220px, 1.8fr) 70px 150px;
  gap: 14px;
  align-items: center;
  padding: 11px 16px;
}

.admin-entry-head {
  color: var(--muted);
  background: #f8fafc;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-entry-row {
  border-top: 1px solid var(--line);
}

.entry-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.entry-actions form {
  margin: 0;
}

.admin-message {
  margin-top: 16px;
  margin-bottom: 0;
}

.busy-overlay .busy-card p {
  min-height: 36px;
}

@media (max-width: 980px) {
  .work-row-summary {
    grid-template-columns: 46px minmax(0, 1fr) 20px;
  }

  .work-row-meta {
    grid-column: 2;
    justify-content: flex-start;
  }

  .row-expand {
    grid-column: 3;
    grid-row: 1;
  }

  .work-row-detail {
    grid-template-columns: 1fr;
    padding-left: 76px;
  }

  .work-row-detail > .btn {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
  }

  .admin-grid {
    grid-template-columns: 1fr;
  }

  .password-form {
    grid-template-columns: 1fr 1fr;
  }

  .admin-entry-head,
  .admin-entry-row {
    grid-template-columns: minmax(130px, 0.8fr) minmax(180px, 1.7fr) 60px 130px;
  }
}

@media (max-width: 760px) {
  .work-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .toolbar-controls {
    display: grid;
    grid-template-columns: 1fr auto;
  }

  .search-box input {
    width: 100%;
  }

  .work-row-summary {
    grid-template-columns: 40px minmax(0, 1fr) 18px;
    gap: 10px;
    padding: 14px;
  }

  .type-mark {
    width: 36px;
  }

  .work-row-title {
    white-space: normal;
    font-size: 13px;
  }

  .work-row-meta {
    gap: 5px;
  }

  .work-row-detail {
    padding: 0 14px 15px;
  }

  .attachment-result-list {
    grid-template-columns: 1fr;
  }

  .password-form {
    grid-template-columns: 1fr;
  }

  .admin-entry-head {
    display: none;
  }

  .admin-entry-row {
    grid-template-columns: 1fr auto;
    gap: 9px;
    padding: 14px;
  }

  .admin-entry-row .entry-url {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .admin-entry-row > .pill {
    grid-column: 2;
    grid-row: 1;
  }

  .entry-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }

  .inline-setting-form {
    align-items: stretch;
    flex-direction: column;
  }

  .upload-zone {
    align-items: flex-start;
    padding: 15px;
  }

  .upload-copy small {
    line-height: 1.5;
  }
}
