:root {
  --white: #fcfcf9;
  --paper: #f6f6f2;
  --ink: #111613;
  --muted: #65706a;
  --line: #d9ddd9;
  --coral: #f05a3f;
  --coral-soft: #ffe7df;
  --green: #126654;
  --green-soft: #dff3eb;
  --acid: #dfff69;
  --blue: #3157ff;
  --shadow: 0 20px 60px rgba(17, 22, 19, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--white);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--white);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "PingFang SC", sans-serif;
  line-height: 1.5;
  letter-spacing: 0;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
  font: inherit;
}

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

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.topbar {
  position: sticky;
  z-index: 30;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 9px max(28px, calc((100vw - 1440px) / 2));
  border-bottom: 1px solid var(--ink);
  background: rgba(252, 252, 249, 0.96);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand-copy {
  display: flex;
  align-items: baseline;
  gap: 8px;
  line-height: 1;
}

.brand-copy span {
  color: var(--coral);
  font-size: 14px;
  font-weight: 900;
}

.brand-copy strong {
  font-size: 15px;
  font-weight: 900;
}

.topbar-actions,
.toolbar-group {
  display: flex;
  align-items: center;
  gap: 18px;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #9a9f9c;
  font-size: 10px;
  font-weight: 800;
}

.language-switch strong {
  color: var(--ink);
}

.language-switch a {
  color: var(--coral);
}

.language-switch a:hover {
  color: var(--ink);
}

.demo-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.demo-status i,
.run-state i,
.ready-label i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #20aa78;
  box-shadow: 0 0 0 4px rgba(32, 170, 120, 0.13);
}

.text-link {
  font-size: 11px;
  font-weight: 850;
}

.text-link:hover {
  color: var(--coral);
}

.icon-link,
.back-button {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: var(--white);
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
}

.icon-link:hover,
.back-button:hover {
  background: var(--ink);
  color: var(--white);
}

.view {
  width: 100%;
  max-width: 1440px;
  min-height: calc(100vh - 72px);
  margin: 0 auto;
  padding: 0 28px 54px;
  animation: view-in 320ms ease both;
}

.view[hidden] {
  display: none;
}

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

.project-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, 0.55fr);
  gap: 54px;
  align-items: end;
  padding: 54px 0 38px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 17px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.eyebrow span {
  color: var(--coral);
}

.eyebrow time::before {
  margin-right: 11px;
  color: #a7ada9;
  content: "/";
}

.project-intro h1 {
  max-width: 980px;
  margin: 0;
  font-family: "Arial Black", Inter, ui-sans-serif, sans-serif;
  font-size: 78px;
  font-weight: 950;
  line-height: 0.92;
  letter-spacing: 0;
  text-transform: uppercase;
}

.project-intro h1 span {
  display: block;
  color: var(--coral);
}

.intro-side {
  padding-left: 24px;
  border-left: 1px solid var(--ink);
}

.intro-side > p {
  margin: 0 0 24px;
  font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
  font-size: 16px;
  line-height: 1.75;
}

.intro-side dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.intro-side dl div {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 7px;
}

.intro-side dt,
.intro-side dd {
  margin: 0;
  font-size: 10px;
}

.intro-side dt {
  color: var(--coral);
  font-weight: 850;
  text-transform: uppercase;
}

.intro-side dd {
  color: var(--muted);
}

.signal-strip {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  overflow: hidden;
  padding: 7px 16px;
  background: var(--ink);
  color: var(--white);
  font-size: 9px;
  font-weight: 850;
  white-space: nowrap;
}

.signal-strip i {
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--acid);
}

.daily-task,
.gallery-task {
  display: grid;
  min-width: 0;
  border: 1px solid var(--ink);
  border-top: 0;
  background: var(--white);
}

.daily-task {
  grid-template-columns: 92px minmax(0, 1fr);
}

.task-rail {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  padding: 23px 18px;
  background: var(--ink);
  color: var(--white);
}

.task-rail > span:last-child {
  color: #b8c0bc;
  font-size: 9px;
  font-weight: 850;
  line-height: 1.25;
}

.task-number {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
}

.daily-workbench {
  min-width: 0;
  padding: 25px 28px 24px;
}

.task-header,
.task-action-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.task-kicker,
.radar-label {
  color: var(--coral);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.task-header h2 {
  margin: 3px 0 0;
  font-family: "Arial Black", Inter, sans-serif;
  font-size: 49px;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

.ready-label {
  display: inline-flex;
  min-height: 29px;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  color: var(--green);
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
}

.radar-grid {
  display: grid;
  grid-template-columns: minmax(180px, 0.82fr) minmax(230px, 1fr) minmax(280px, 1.18fr);
  min-width: 0;
  margin: 20px 0 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.radar-grid > div {
  min-width: 0;
  min-height: 146px;
  padding: 17px 20px;
}

.radar-grid > div + div {
  border-left: 1px solid var(--line);
}

.world-signal {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto 58px auto;
  gap: 4px 12px;
}

.world-signal > span {
  grid-column: 1 / 3;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.signal-bars {
  display: flex;
  height: 58px;
  align-items: end;
  gap: 4px;
}

.signal-bars i {
  width: 6px;
  height: var(--h);
  min-height: 5px;
  background: var(--coral);
}

.signal-bars i:nth-child(3n) {
  background: var(--blue);
}

.world-signal > strong {
  align-self: end;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
}

.world-signal small {
  grid-column: 1 / 3;
  color: var(--muted);
  font-size: 8px;
}

.conference-scan {
  display: grid;
  gap: 0;
}

.conference-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
}

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

.conference-name {
  font-family: "Arial Black", Inter, sans-serif;
  font-size: 17px;
}

.conference-name b {
  color: var(--coral);
  font-size: 9px;
  vertical-align: super;
}

.conference-row > span:last-child {
  color: var(--muted);
  font-size: 9px;
}

.keyword-field > div {
  display: flex;
  align-content: flex-start;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 13px;
}

.keyword-field strong {
  border: 1px solid var(--ink);
  border-radius: 3px;
  padding: 4px 7px;
  font-size: 9px;
  font-weight: 750;
}

.keyword-field strong:nth-child(2),
.keyword-field strong:nth-child(5) {
  border-color: var(--blue);
  color: var(--blue);
}

.task-action-row {
  align-items: center;
}

.task-action-row p {
  display: grid;
  grid-template-columns: auto auto;
  align-items: end;
  gap: 0 8px;
  margin: 0;
}

.task-action-row p strong {
  grid-row: 1 / 3;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 44px;
  line-height: 0.85;
}

.task-action-row p span {
  font-size: 11px;
  font-weight: 800;
}

.task-action-row p small {
  color: var(--muted);
  font-size: 9px;
}

.primary-action,
.rerun-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 28px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--white);
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease;
}

.primary-action span {
  font-size: 19px;
  transition: transform 160ms ease;
}

.primary-action:hover,
.rerun-button:hover {
  transform: translateY(-2px);
}

.primary-action:hover {
  background: var(--coral);
  border-color: var(--coral);
}

.primary-action:hover span {
  transform: translateX(3px);
}

.gallery-task {
  grid-template-columns: 92px minmax(270px, 0.72fr) minmax(380px, 1.25fr) minmax(190px, 0.5fr);
  min-height: 268px;
  border-top: 0;
}

.gallery-rail {
  background: var(--coral);
}

.gallery-rail > span:last-child {
  color: #ffe5dd;
}

.gallery-task-body {
  min-width: 0;
  padding: 25px 24px;
}

.gallery-task-body h2 {
  margin: 8px 0 13px;
  font-family: "Arial Black", Inter, sans-serif;
  font-size: 31px;
  line-height: 0.98;
  letter-spacing: 0;
  text-transform: uppercase;
}

.domain-path {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 9px;
}

.domain-path i {
  color: #aeb4b0;
  font-style: normal;
}

.domain-path strong {
  color: var(--green);
}

.gallery-meta {
  display: flex;
  gap: 13px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 8px;
  text-transform: uppercase;
}

.gallery-meta b {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
}

.gallery-preview {
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr 0.75fr;
  min-width: 0;
  overflow: hidden;
  border-left: 1px solid var(--ink);
  border-right: 1px solid var(--ink);
  background: var(--paper);
}

.gallery-preview figure {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: var(--paper);
}

.gallery-preview figure + figure {
  border-left: 3px solid var(--white);
}

.gallery-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.03);
  transition: filter 380ms ease, transform 380ms ease;
}

.gallery-task:hover .gallery-preview img {
  filter: saturate(1) contrast(1);
  transform: scale(1.02);
}

.preview-stamp {
  position: absolute;
  right: 12px;
  bottom: 12px;
  border: 1px solid var(--white);
  border-radius: 2px;
  padding: 5px 7px;
  background: var(--ink);
  color: var(--white);
  font-size: 8px;
  font-weight: 850;
}

.gallery-action {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 20px;
}

.gallery-action p {
  margin: 0;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  line-height: 1.6;
}

.gallery-button {
  width: 100%;
  justify-content: space-between;
  padding: 10px 13px;
}

.gallery-button b {
  font-size: 18px;
}

.result-view {
  padding-top: 25px;
  background: var(--white);
}

.result-toolbar {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 14px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--ink);
}

.result-toolbar > div:nth-child(2) {
  display: grid;
  gap: 2px;
}

.result-toolbar > div:nth-child(2) span {
  color: var(--coral);
  font-size: 8px;
  font-weight: 900;
}

.result-toolbar > div:nth-child(2) strong {
  font-size: 13px;
}

.rerun-button {
  min-height: 38px;
  gap: 10px;
  background: var(--white);
  color: var(--ink);
  font-size: 10px;
}

.rerun-button:hover {
  background: var(--ink);
  color: var(--white);
}

.daily-result-head {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  align-items: end;
  gap: 64px;
  padding: 52px 0 45px;
}

.daily-result-head h1 {
  margin: 0;
  font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
  font-size: 47px;
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: 0;
}

.daily-result-head blockquote {
  margin: 0;
  padding: 0 0 3px 22px;
  border-left: 4px solid var(--coral);
  color: #4d5752;
  font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
  font-size: 16px;
  line-height: 1.75;
}

.daily-result-head blockquote strong {
  color: var(--ink);
}

.daily-controls {
  position: sticky;
  z-index: 15;
  top: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: rgba(252, 252, 249, 0.96);
  backdrop-filter: blur(12px);
}

.segmented-control {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: var(--white);
}

.segmented-control button {
  min-height: 32px;
  border: 0;
  border-radius: 2px;
  padding: 5px 11px;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.segmented-control button span {
  margin-left: 4px;
  color: #9ba29e;
  font-size: 8px;
}

.segmented-control button.is-selected {
  background: var(--ink);
  color: var(--white);
}

.segmented-control button.is-selected span {
  color: #c4ccc8;
}

.filter-summary {
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
  text-transform: uppercase;
}

.paper-feed {
  display: grid;
  gap: 10px;
  padding: 22px 0 58px;
}

.paper-card {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) 190px;
  gap: 24px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 24px;
  background: var(--white);
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.paper-card:hover {
  border-color: var(--ink);
  box-shadow: 0 14px 36px rgba(17, 22, 19, 0.08);
  transform: translateY(-2px);
}

.paper-index {
  display: grid;
  gap: 12px;
}

.paper-rank {
  color: #b5bbb7;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  line-height: 1;
}

.conference-badge,
.priority-badge {
  display: inline-flex;
  width: fit-content;
  min-height: 24px;
  align-items: center;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
}

.conference-badge {
  border: 1px solid var(--line);
  color: var(--green);
}

.paper-main h2 {
  margin: 0 0 10px;
  font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
  font-size: 21px;
  line-height: 1.28;
  letter-spacing: 0;
}

.paper-main p {
  margin: 0;
  color: #4d5752;
  font-size: 12px;
  line-height: 1.72;
}

.paper-main .authors {
  margin-top: 12px;
  color: #8b938f;
  font-size: 9px;
  line-height: 1.45;
}

.paper-match {
  display: grid;
  gap: 12px;
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.priority-badge.must {
  background: var(--coral-soft);
  color: #a6402d;
}

.priority-badge.worth {
  background: var(--green-soft);
  color: var(--green);
}

.paper-match p {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.6;
}

.paper-match p strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
  font-size: 9px;
  text-transform: uppercase;
}

.paper-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  font-size: 10px;
  font-weight: 850;
}

.paper-link:hover {
  color: var(--coral);
}

.gallery-result-view {
  max-width: 1500px;
  padding-right: 16px;
  padding-left: 16px;
}

.gallery-toolbar {
  margin: 0 8px;
}

.build-meta {
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
}

.gallery-frame-wrap {
  height: calc(100vh - 151px);
  min-height: 680px;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.gallery-frame-wrap iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--white);
}

.run-dialog {
  width: min(560px, calc(100vw - 28px));
  border: 0;
  border-radius: 4px;
  padding: 0;
  background: transparent;
  color: var(--white);
}

.run-dialog::backdrop {
  background: rgba(10, 14, 12, 0.7);
  backdrop-filter: blur(8px);
}

.run-shell {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  padding: 28px;
  background: var(--ink);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
}

.run-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #96a19c;
  font-size: 8px;
  font-weight: 850;
}

.run-state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #bce1d7;
}

.run-dialog h2 {
  margin: 29px 0 7px;
  font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
  font-size: 28px;
  letter-spacing: 0;
}

.run-dialog > div > p {
  margin: 0;
  color: #8e9b95;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
}

.run-steps {
  display: grid;
  gap: 13px;
  margin: 27px 0 24px;
  padding: 0;
  list-style: none;
}

.run-steps li {
  display: grid;
  grid-template-columns: 20px 1fr auto;
  align-items: center;
  gap: 10px;
  color: #71807a;
  font-size: 11px;
  transition: color 180ms ease;
}

.run-steps li::before {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border: 1px solid #4a5752;
  border-radius: 50%;
  color: transparent;
  content: "✓";
  font-size: 9px;
}

.run-steps li span {
  color: #67736f;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 8px;
}

.run-steps li.is-active {
  color: var(--white);
}

.run-steps li.is-active::before {
  border-color: var(--acid);
  background: var(--acid);
  box-shadow: 0 0 0 4px rgba(223, 255, 105, 0.1);
}

.run-steps li.is-done {
  color: #b3beb9;
}

.run-steps li.is-done::before {
  border-color: #20aa78;
  background: #20aa78;
  color: var(--white);
}

.run-progress {
  height: 3px;
  overflow: hidden;
  background: #37423d;
}

.run-progress i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--coral);
  transition: width 420ms ease;
}

.demo-caption {
  display: block;
  margin-top: 14px;
  color: #67736e;
  font-size: 7px;
  font-weight: 800;
  text-align: center;
}

noscript {
  display: block;
  padding: 20px;
  background: var(--coral-soft);
  color: #7d3525;
  text-align: center;
}

@media (max-width: 1080px) {
  .project-intro {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .project-intro h1 {
    font-size: 65px;
  }

  .intro-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

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

  .keyword-field {
    grid-column: 1 / 3;
    border-top: 1px solid var(--line);
    border-left: 0 !important;
  }

  .gallery-task {
    grid-template-columns: 82px minmax(240px, 0.8fr) minmax(380px, 1.2fr);
  }

  .gallery-action {
    grid-column: 2 / 4;
    display: grid;
    grid-template-columns: 1fr 220px;
    align-items: center;
    border-top: 1px solid var(--ink);
  }

  .daily-result-head {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .paper-card {
    grid-template-columns: 95px minmax(0, 1fr);
  }

  .paper-match {
    grid-column: 2;
    grid-template-columns: auto minmax(160px, 1fr) auto;
    align-items: center;
    padding: 12px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

@media (max-width: 720px) {
  .topbar {
    min-height: 62px;
    padding: 9px 14px;
  }

  .brand-copy {
    display: grid;
    gap: 2px;
  }

  .brand-copy span {
    font-size: 9px;
  }

  .brand-copy strong {
    font-size: 11px;
  }

  .demo-status,
  .text-link {
    display: none;
  }

  .topbar-actions {
    gap: 12px;
  }

  .language-switch strong,
  .language-switch span {
    display: none;
  }

  .view {
    max-width: 100%;
    min-height: calc(100vh - 62px);
    padding: 0 14px 34px;
  }

  .project-intro {
    padding: 35px 0 28px;
  }

  .project-intro h1 {
    max-width: 100%;
    overflow-wrap: anywhere;
    font-size: 43px;
    line-height: 0.94;
  }

  .intro-side {
    display: block;
    padding: 16px 0 0;
    border-top: 1px solid var(--ink);
    border-left: 0;
  }

  .intro-side > p {
    font-size: 14px;
  }

  .intro-side dl {
    display: none;
  }

  .signal-strip span:nth-of-type(even),
  .signal-strip i:nth-of-type(even) {
    display: none;
  }

  .daily-task,
  .gallery-task {
    grid-template-columns: 1fr;
  }

  .task-rail {
    flex-direction: row;
    align-items: center;
    padding: 11px 15px;
  }

  .task-rail > span:last-child br {
    display: none;
  }

  .task-number {
    font-size: 21px;
  }

  .daily-workbench {
    padding: 22px 18px 20px;
  }

  .task-header h2 {
    font-size: 37px;
  }

  .ready-label {
    align-self: flex-start;
    overflow: hidden;
    width: 28px;
    padding: 4px 10px;
    color: transparent;
    white-space: nowrap;
  }

  .ready-label i {
    flex: 0 0 auto;
  }

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

  .radar-grid > div {
    min-height: 130px;
    padding: 16px 0;
  }

  .radar-grid > div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .keyword-field {
    grid-column: auto;
  }

  .task-action-row {
    display: grid;
    gap: 20px;
  }

  .primary-action {
    width: 100%;
  }

  .gallery-task-body {
    padding: 22px 18px;
  }

  .gallery-preview {
    min-height: 210px;
    border: 0;
    border-top: 1px solid var(--ink);
    border-bottom: 1px solid var(--ink);
  }

  .gallery-action {
    grid-column: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 20px 18px;
    border-top: 0;
  }

  .result-view {
    padding-top: 16px;
  }

  .result-toolbar {
    grid-template-columns: 38px minmax(0, 1fr) auto;
    padding-bottom: 17px;
  }

  .result-toolbar .rerun-button {
    width: 38px;
    min-width: 38px;
    padding: 0;
    overflow: hidden;
    color: transparent;
    white-space: nowrap;
  }

  .result-toolbar .rerun-button span {
    color: var(--ink);
    font-size: 16px;
  }

  .daily-result-head {
    padding: 36px 0 30px;
  }

  .daily-result-head h1 {
    font-size: 35px;
  }

  .daily-result-head blockquote {
    font-size: 14px;
  }

  .daily-controls {
    top: 62px;
    overflow-x: auto;
  }

  .segmented-control {
    flex: 0 0 auto;
  }

  .filter-summary {
    display: none;
  }

  .paper-card {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 20px;
  }

  .paper-index {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .paper-rank {
    font-size: 24px;
  }

  .paper-main h2 {
    font-size: 19px;
  }

  .paper-match {
    grid-column: 1;
    grid-template-columns: 1fr;
  }

  .build-meta {
    display: none;
  }

  .gallery-frame-wrap {
    height: calc(100vh - 119px);
    min-height: 620px;
    margin-top: 12px;
  }

  .gallery-result-view {
    padding: 16px 7px 7px;
  }

  .gallery-toolbar {
    margin: 0 7px;
  }

  .run-shell {
    padding: 23px 20px;
  }
}

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

/* Landing page: a restrained brand cover with two explicit workflows. */
.landing-view {
  max-width: 1240px;
  padding-bottom: 38px;
}

.hero-stage {
  display: flex;
  min-height: calc(100vh - 72px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 0 32px;
}

.hero-eyebrow {
  display: flex;
  width: min(100%, 1030px);
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
  animation: landing-rise 420ms ease both;
}

.hero-eyebrow span:first-child {
  color: var(--coral);
}

.hero-logo {
  width: min(100%, 1030px);
  margin: 0;
  animation: logo-arrive 720ms cubic-bezier(0.22, 1, 0.36, 1) 80ms both;
}

.hero-logo img {
  display: block;
  width: 100%;
  max-height: 48vh;
  object-fit: contain;
}

.hero-message {
  width: min(100%, 940px);
  margin-top: 8px;
  text-align: center;
  animation: landing-rise 560ms ease 240ms both;
}

.hero-message h1 {
  margin: 0;
  font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
  font-size: 38px;
  font-weight: 650;
  line-height: 1.18;
  letter-spacing: 0;
}

.hero-message h1 span {
  color: var(--coral);
}

.hero-message p {
  max-width: 760px;
  margin: 15px auto 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.launch-grid {
  display: grid;
  width: min(100%, 1030px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
  animation: landing-rise 560ms ease 390ms both;
}

.launch-action {
  display: grid;
  min-width: 0;
  min-height: 92px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  padding: 18px 20px;
  background: var(--white);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.launch-action:hover {
  background: var(--ink);
  color: var(--white);
  box-shadow: 8px 8px 0 var(--coral);
  transform: translate(-3px, -3px);
}

.launch-gallery:hover {
  box-shadow: 8px 8px 0 var(--green);
}

.launch-index {
  color: var(--coral);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  font-weight: 700;
}

.launch-gallery .launch-index {
  color: var(--green);
}

.launch-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.launch-copy strong {
  font-size: 15px;
  font-weight: 850;
}

.launch-copy small {
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.launch-action:hover .launch-copy small {
  color: #c6cfca;
}

.launch-arrow {
  font-size: 24px;
  transition: transform 180ms ease;
}

.launch-action:hover .launch-arrow {
  transform: translateX(4px);
}

.hero-footnote {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 18px 0 0;
  color: #969e9a;
  font-size: 7px;
  font-weight: 800;
  animation: landing-rise 500ms ease 470ms both;
}

.hero-footnote span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #20aa78;
  box-shadow: 0 0 0 4px rgba(32, 170, 120, 0.12);
}

@keyframes logo-arrive {
  from { opacity: 0; transform: translateY(12px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes landing-rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Full-screen natural-language command sequence. */
.command-dialog {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  border: 0;
  padding: 0;
  background: var(--white);
  color: var(--ink);
}

.command-dialog::backdrop {
  background: var(--ink);
}

.command-stage {
  display: grid;
  min-height: 100dvh;
  grid-template-rows: 64px minmax(0, 1fr);
  overflow-y: auto;
  background: var(--white);
}

.command-dialog[open] .command-stage {
  animation: command-enter 360ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes command-enter {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.command-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid var(--ink);
  font-size: 10px;
  font-weight: 850;
}

.command-topbar b {
  color: var(--coral);
}

.command-topbar button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 4px;
  padding: 0;
  background: var(--white);
  font-size: 23px;
  line-height: 1;
  cursor: pointer;
}

.command-topbar button:hover {
  background: var(--ink);
  color: var(--white);
}

.command-workspace {
  width: min(100%, 1040px);
  margin: auto;
  padding: 54px 28px 46px;
}

.command-heading {
  max-width: 790px;
}

.command-mode {
  color: var(--coral);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.command-heading h2 {
  margin: 11px 0 12px;
  font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
  font-size: 45px;
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: 0;
}

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

.prompt-shell {
  position: relative;
  display: grid;
  min-height: 116px;
  grid-template-columns: 26px minmax(0, 1fr) 3px 54px;
  align-items: center;
  gap: 14px;
  margin-top: 35px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  padding: 18px;
  background: var(--white);
  box-shadow: 12px 12px 0 var(--coral);
  transition: box-shadow 220ms ease, transform 220ms ease;
}

.command-dialog[data-phase="processing"] .prompt-shell {
  box-shadow: 6px 6px 0 var(--green);
  transform: translate(3px, 3px);
}

.prompt-mark {
  align-self: start;
  color: var(--coral);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 35px;
  font-weight: 700;
  line-height: 1;
}

.prompt-shell textarea {
  width: 100%;
  height: 70px;
  border: 0;
  outline: 0;
  padding: 3px 0;
  overflow: hidden;
  resize: none;
  background: transparent;
  color: var(--ink);
  font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: 0;
}

.typing-caret {
  width: 2px;
  height: 29px;
  background: var(--coral);
  opacity: 0;
}

.command-dialog[data-phase="typing"] .typing-caret {
  opacity: 1;
  animation: caret-blink 700ms steps(1) infinite;
}

@keyframes caret-blink {
  0%, 48% { opacity: 1; }
  49%, 100% { opacity: 0; }
}

.command-submit {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 4px;
  background: var(--ink);
  color: var(--white);
  font-size: 24px;
  transition: background-color 180ms ease, transform 180ms ease;
}

.command-dialog[data-phase="processing"] .command-submit {
  background: var(--green);
  transform: scale(0.94);
}

.run-output {
  max-height: 0;
  margin-top: 28px;
  overflow: hidden;
  border: 0 solid var(--ink);
  border-radius: 4px;
  padding: 0 24px;
  background: var(--ink);
  color: var(--white);
  opacity: 0;
  transform: translateY(8px);
  transition: max-height 420ms ease, padding 280ms ease, opacity 220ms ease, transform 280ms ease, border-width 0ms 220ms;
}

.command-dialog[data-phase="processing"] .run-output {
  max-height: 310px;
  border-width: 1px;
  padding: 22px 24px;
  opacity: 1;
  transform: translateY(0);
}

.command-dialog .run-topline {
  color: #9ca6a1;
}

.command-dialog .run-steps {
  margin: 20px 0;
}

.command-dialog .run-progress {
  background: #37423d;
}

.command-dialog .demo-caption {
  margin-top: 28px;
  color: #959d99;
}

@media (max-width: 720px) {
  .landing-view {
    padding-right: 16px;
    padding-left: 16px;
  }

  .hero-stage {
    min-height: calc(100dvh - 62px);
    justify-content: flex-start;
    padding-top: 22px;
  }

  .hero-eyebrow span:last-child {
    display: none;
  }

  .hero-logo img {
    max-height: none;
  }

  .hero-message {
    margin-top: 18px;
    text-align: left;
  }

  .hero-message h1 {
    font-size: 31px;
  }

  .hero-message p {
    font-size: 13px;
  }

  .launch-grid {
    grid-template-columns: 1fr;
    margin-top: 24px;
  }

  .launch-action {
    min-height: 82px;
    gap: 13px;
    padding: 15px;
  }

  .launch-copy strong {
    font-size: 14px;
  }

  .hero-footnote {
    align-self: flex-start;
    margin-top: 16px;
  }

  .command-stage {
    grid-template-rows: 58px minmax(0, 1fr);
  }

  .command-topbar {
    padding: 0 14px;
    font-size: 8px;
  }

  .command-workspace {
    padding: 39px 16px 30px;
  }

  .command-heading h2 {
    font-size: 32px;
  }

  .prompt-shell {
    min-height: 148px;
    grid-template-columns: 20px minmax(0, 1fr) 3px;
    grid-template-rows: 1fr auto;
    gap: 10px;
    padding: 15px;
    box-shadow: 7px 7px 0 var(--coral);
  }

  .prompt-shell textarea {
    height: 93px;
    font-size: 18px;
  }

  .typing-caret {
    height: 25px;
  }

  .command-submit {
    grid-column: 2 / 4;
    justify-self: end;
    width: 46px;
    height: 39px;
    font-size: 20px;
  }

  .command-dialog[data-phase="processing"] .run-output {
    max-height: 360px;
    padding: 19px 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-eyebrow,
  .hero-logo,
  .hero-message,
  .launch-grid,
  .hero-footnote,
  .command-dialog[open] .command-stage {
    animation: none;
  }
}
