:root {
  color-scheme: light;
  --ink: #17231d;
  --muted: #68736d;
  --line: #dce3de;
  --paper: #f5f7f3;
  --surface: #ffffff;
  --green: #1f6f4a;
  --green-deep: #12432d;
  --green-soft: #dff1e6;
  --lime: #d7f06b;
  --amber: #b86b16;
  --amber-soft: #fff0d7;
  --gray-soft: #ecefeb;
  --shadow: 0 18px 60px rgba(26, 45, 35, 0.08);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 85% -10%, rgba(215, 240, 107, 0.2), transparent 30rem),
    var(--paper);
  color: var(--ink);
  min-height: 100vh;
}

a {
  color: inherit;
}

.topbar,
.footer,
.page-shell {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.topbar {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(23, 35, 29, 0.12);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: white;
  background: var(--green-deep);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.brand strong,
.brand small {
  display: block;
}

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

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.mode-badge,
.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.mode-badge {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  padding: 8px 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.mode-dot,
.status > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.mode-dot {
  background: var(--green);
  box-shadow: 0 0 0 4px var(--green-soft);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
  gap: 70px;
  align-items: end;
  padding-block: 72px 58px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.hero h1,
.project-header h1,
.error-page h1 {
  margin-bottom: 20px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

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

.hero-copy {
  max-width: 650px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.55;
}

.stage-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: 28px;
  color: white;
  background: var(--green-deep);
  box-shadow: var(--shadow);
}

.stage-card::after {
  content: "";
  position: absolute;
  right: -34px;
  top: -42px;
  width: 140px;
  height: 140px;
  border: 30px solid rgba(215, 240, 107, 0.1);
  border-radius: 50%;
}

.stage-card p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  line-height: 1.55;
}

.stage-card .stage-label {
  color: var(--lime);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stage-card strong {
  display: block;
  margin-bottom: 9px;
  font-size: 20px;
}

.stage-progress {
  height: 4px;
  margin: 22px 0 8px;
  overflow: hidden;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.14);
}

.stage-progress span {
  display: block;
  width: 34%;
  height: 100%;
  background: var(--lime);
}

.stage-card small {
  color: rgba(255, 255, 255, 0.58);
}

.project-section,
.content-section {
  padding-bottom: 64px;
}

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

.section-heading h2 {
  margin-bottom: 0;
  font-size: 30px;
  letter-spacing: -0.035em;
}

.section-heading > p,
.sync-note {
  color: var(--muted);
  font-size: 13px;
}

.notice {
  margin-bottom: 20px;
  border: 1px solid #e6cda8;
  border-radius: 14px;
  padding: 14px 16px;
  background: var(--amber-soft);
  color: #74440f;
  font-size: 13px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

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

.project-card:hover {
  transform: translateY(-3px);
  border-color: #b9c8be;
  box-shadow: var(--shadow);
}

.project-card--paused {
  background: #f0f2ef;
}

.card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.status {
  font-size: 11px;
  font-weight: 800;
}

.status--active > span {
  background: #2d9b67;
  box-shadow: 0 0 0 4px var(--green-soft);
}

.status--launching > span {
  background: var(--amber);
  box-shadow: 0 0 0 4px var(--amber-soft);
}

.status--paused > span {
  background: #8b938e;
  box-shadow: 0 0 0 4px var(--gray-soft);
}

.project-code {
  overflow: hidden;
  color: #89928d;
  font-family: Consolas, monospace;
  font-size: 10px;
  text-overflow: ellipsis;
}

.project-card-copy {
  flex: 1;
  padding-block: 34px 24px;
}

.project-card h3 {
  margin-bottom: 10px;
  font-size: 24px;
  letter-spacing: -0.035em;
}

.project-card-copy p,
.action-row p,
.history-placeholder p,
.empty-state p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.mini-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0 0 22px;
}

.mini-stats div {
  border-top: 1px solid var(--line);
  padding-top: 11px;
}

.mini-stats dt,
.mini-stats dd {
  margin: 0;
}

.mini-stats dt {
  margin-bottom: 4px;
  color: #8a938e;
  font-size: 10px;
  text-transform: uppercase;
}

.mini-stats dd {
  color: var(--muted);
  font-size: 12px;
}

.card-link,
.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 12px;
  padding: 12px 14px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}

.card-link {
  color: var(--green-deep);
  background: var(--green-soft);
}

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

.card-link:hover span {
  transform: translateX(3px);
}

.footer {
  min-height: 88px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(23, 35, 29, 0.12);
  color: var(--muted);
  font-size: 11px;
}

.project-page {
  padding-block: 28px 60px;
}

.breadcrumb {
  display: flex;
  gap: 9px;
  align-items: center;
  margin-bottom: 55px;
  color: var(--muted);
  font-size: 12px;
}

.breadcrumb a {
  color: var(--green);
  text-decoration: none;
}

.project-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 70px;
  align-items: end;
  padding-bottom: 64px;
}

.project-header h1 {
  margin: 28px 0 14px;
  font-size: clamp(40px, 5vw, 66px);
}

.project-header > div > p {
  max-width: 650px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.card-topline--header {
  justify-content: flex-start;
}

.read-only-seal {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  border-left: 1px solid var(--line);
  padding-left: 28px;
}

.read-only-seal > span {
  color: var(--green);
  font-size: 30px;
  font-weight: 300;
}

.read-only-seal p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.read-only-seal strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 13px;
}

.state-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.state-card {
  min-height: 190px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  background: var(--surface);
}

.state-index {
  display: block;
  margin-bottom: 38px;
  color: #abb3ae;
  font-family: Consolas, monospace;
  font-size: 10px;
}

.state-card p {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 12px;
}

.state-card strong,
.state-card small {
  display: block;
}

.state-card strong {
  margin-bottom: 8px;
  font-size: 17px;
}

.state-card small {
  color: #939b96;
  font-size: 10px;
  line-height: 1.4;
}

.split-section {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
}

.section-panel {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  background: var(--surface);
}

.section-heading--compact {
  margin-bottom: 28px;
}

.section-heading--compact h2 {
  font-size: 24px;
}

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

.action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-radius: 14px;
  padding: 17px;
  background: var(--paper);
}

.action-row span {
  color: var(--green);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.action-row h3 {
  margin: 4px 0 5px;
  font-size: 16px;
}

.action-row button {
  flex: 0 0 auto;
  border: 0;
  border-radius: 10px;
  padding: 10px 12px;
  color: #8c948f;
  background: #e5e9e5;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: not-allowed;
}

.action-button {
  flex: 0 0 auto;
  border-radius: 10px;
  padding: 11px 16px;
  color: white;
  background: var(--green-deep);
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
}

.history-placeholder,
.empty-state {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  border: 1px dashed #cbd3cd;
  border-radius: 16px;
  padding: 24px;
}

.history-placeholder > span {
  width: 32px;
  height: 32px;
  margin-bottom: 20px;
  border: 8px solid var(--green-soft);
  border-radius: 50%;
  background: var(--green);
}

.history-placeholder strong,
.empty-state strong {
  margin-bottom: 7px;
  font-size: 14px;
}

.empty-state--compact {
  min-height: 150px;
}

.error-page {
  min-height: calc(100vh - 172px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-block: 70px;
}

.error-code {
  margin-bottom: 10px;
  color: var(--green);
  font-family: Consolas, monospace;
  font-size: 12px;
}

.error-page h1 {
  font-size: clamp(40px, 6vw, 70px);
}

.error-page > p:not(.eyebrow, .error-code) {
  max-width: 540px;
  color: var(--muted);
  line-height: 1.6;
}

.primary-link {
  margin-top: 20px;
  color: white;
  background: var(--green-deep);
}

.upload-page,
.job-page {
  padding-block: 28px 70px;
}

.upload-header,
.job-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 44px;
}

.upload-header h1,
.job-header h1 {
  margin-bottom: 14px;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.upload-header > div > p:last-child,
.job-id {
  max-width: 660px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.local-safety {
  max-width: 290px;
  border-left: 3px solid var(--lime);
  padding: 5px 0 5px 18px;
}

.local-safety strong,
.local-safety p {
  display: block;
  margin: 0;
}

.local-safety strong {
  margin-bottom: 5px;
  font-size: 13px;
}

.local-safety p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.form-error,
.failure-callout {
  border: 1px solid #ebc0b6;
  border-radius: 14px;
  background: #fff0ec;
  color: #833321;
}

.form-error {
  margin-bottom: 18px;
  padding: 14px 16px;
  font-size: 13px;
}

.upload-form {
  display: grid;
  gap: 14px;
}

.form-panel {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  background: var(--surface);
}

.form-number {
  color: #a5aea8;
  font-family: Consolas, monospace;
  font-size: 13px;
}

.form-content h2,
.confirm-panel h2,
.success-callout h2 {
  margin-bottom: 18px;
  font-size: 25px;
  letter-spacing: -0.035em;
}

.form-content > small {
  display: block;
  margin-top: 12px;
  color: var(--muted);
}

.date-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 220px));
  gap: 12px;
}

.date-grid label > span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.date-grid input {
  width: 100%;
  border: 1px solid #cbd4cd;
  border-radius: 11px;
  padding: 12px;
  color: var(--ink);
  background: #fbfcfa;
  font: inherit;
}

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

.bundle-grid div {
  display: grid;
  grid-template-columns: 1fr repeat(3, auto);
  align-items: center;
  gap: 7px;
  border-radius: 12px;
  padding: 12px 14px;
  background: var(--paper);
}

.bundle-grid strong {
  font-size: 12px;
}

.bundle-grid span {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 4px 6px;
  color: var(--green-deep);
  background: white;
  font-size: 9px;
  font-weight: 800;
}

.file-drop {
  min-height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px dashed #aebdb3;
  border-radius: 16px;
  padding: 26px;
  background: #fbfcfa;
  text-align: center;
  cursor: pointer;
}

.file-drop:hover,
.file-drop:focus-within {
  border-color: var(--green);
  background: #f5faf6;
}

.file-drop input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.file-drop-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 50%;
  color: var(--green-deep);
  background: var(--green-soft);
  font-size: 13px;
  font-weight: 900;
}

.file-drop strong,
.file-drop small {
  display: block;
}

.file-drop strong {
  margin-bottom: 5px;
  font-size: 14px;
}

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

.form-panel--submit {
  background: var(--green-deep);
}

.form-panel--submit .form-number,
.form-panel--submit .eyebrow {
  color: var(--lime);
}

.submit-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  color: white;
}

.submit-content h2 {
  margin-bottom: 8px;
}

.submit-content p:last-child {
  max-width: 600px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.67);
  font-size: 12px;
  line-height: 1.5;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 0;
  border-radius: 12px;
  padding: 14px 17px;
  color: var(--green-deep);
  background: var(--lime);
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
}

.primary-button:hover {
  filter: brightness(1.04);
}

.job-header {
  align-items: flex-start;
}

.job-id {
  font-family: Consolas, monospace;
  font-size: 10px;
}

.job-status {
  display: inline-flex;
  border-radius: 999px;
  padding: 9px 13px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.job-status--ready,
.job-status--validated,
.job-status--succeeded {
  color: var(--green-deep);
  background: var(--green-soft);
}

.job-status--queued,
.job-status--running,
.job-status--validating {
  color: #765013;
  background: var(--amber-soft);
}

.job-status--rejected,
.job-status--failed {
  color: #833321;
  background: #fff0ec;
}

.success-callout,
.progress-callout,
.preview-callout,
.failure-callout,
.confirm-panel {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 28px;
  padding: 24px;
}

.success-callout {
  border-radius: 20px;
  color: white;
  background: var(--green-deep);
}

.preview-callout {
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: 18px;
  background: white;
}

.preview-callout strong,
.preview-callout p {
  margin: 0;
}

.preview-callout p {
  margin-top: 6px;
  color: var(--muted);
}

.success-callout > span {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--green-deep);
  background: var(--lime);
  font-size: 22px;
  font-weight: 900;
}

.success-callout .eyebrow {
  color: var(--lime);
}

.success-callout h2 {
  margin-bottom: 5px;
}

.success-callout p:last-child,
.progress-callout p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
}

.progress-callout {
  border-radius: 18px;
  color: white;
  background: var(--green-deep);
}

.progress-spinner {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 4px solid rgba(255, 255, 255, 0.22);
  border-top-color: var(--lime);
  border-radius: 50%;
  animation: spin 900ms linear infinite;
}

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

.failure-callout {
  align-items: flex-start;
  flex-direction: column;
  gap: 10px;
}

.failure-callout a {
  color: inherit;
  font-size: 12px;
  font-weight: 800;
}

.job-section {
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  background: var(--surface);
}

.file-table-wrap {
  overflow-x: auto;
}

.file-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.file-table th,
.file-table td {
  border-bottom: 1px solid var(--line);
  padding: 13px 10px;
  text-align: left;
  vertical-align: top;
}

.file-table th {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.check-good,
.check-bad {
  display: inline-flex;
  border-radius: 8px;
  padding: 5px 7px;
  font-size: 9px;
  font-weight: 900;
}

.check-good {
  color: var(--green-deep);
  background: var(--green-soft);
}

.check-bad {
  color: #833321;
  background: #fff0ec;
}

.job-warnings {
  margin-bottom: 18px;
  border: 1px solid #e6cda8;
  border-radius: 16px;
  padding: 18px 20px;
  background: var(--amber-soft);
  color: #74440f;
  font-size: 12px;
}

.job-warnings ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.confirm-panel {
  justify-content: space-between;
  border-radius: 20px;
  color: white;
  background: var(--green-deep);
}

.confirm-panel > div {
  max-width: 700px;
}

.confirm-panel .eyebrow {
  color: var(--lime);
}

.confirm-panel h2 {
  margin-bottom: 8px;
}

.confirm-panel p:last-child {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  line-height: 1.5;
}

/* Project workspace */

.workspace-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 48px;
  align-items: stretch;
  padding: 20px 0 64px;
}

.workspace-intro {
  padding-top: 8px;
}

.workspace-intro h1 {
  max-width: 760px;
  margin: 28px 0 14px;
  font-size: clamp(44px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.workspace-intro > p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.hero-actions .primary-button,
.secondary-button {
  min-height: 48px;
  text-decoration: none;
}

.hero-actions .primary-button {
  color: white;
  background: var(--green-deep);
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 17px;
  color: var(--green-deep);
  background: white;
  font-size: 12px;
  font-weight: 900;
}

.report-access {
  border-radius: 24px;
  padding: 26px;
  color: white;
  background: var(--green-deep);
  box-shadow: var(--shadow);
}

.report-access-head {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 22px;
}

.report-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--green-deep);
  background: var(--lime);
  font-size: 13px;
  font-weight: 900;
}

.report-access .eyebrow {
  margin-bottom: 3px;
  color: var(--lime);
}

.report-access h2 {
  margin: 0;
  font-size: 24px;
}

.report-access > p {
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  line-height: 1.5;
}

.credential-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.06);
}

.credential-row > span {
  grid-column: 1 / -1;
  color: rgba(255, 255, 255, 0.55);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.credential-row strong {
  overflow-wrap: anywhere;
  font-size: 11px;
  line-height: 1.4;
}

.copy-button {
  align-self: center;
  border: 0;
  padding: 0;
  color: var(--lime);
  background: transparent;
  font: inherit;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.report-access-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 18px;
}

.report-access-actions a,
.report-access-actions span {
  color: white;
  font-size: 10px;
  font-weight: 800;
  text-decoration: none;
}

.report-access-actions span {
  color: rgba(255, 255, 255, 0.55);
}

.attention-section {
  padding-bottom: 54px;
}

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

.attention-card {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  border: 1px solid #e6cda8;
  border-radius: 18px;
  padding: 18px 20px;
  background: var(--amber-soft);
}

.attention-card--ok {
  border-color: #b8dbc7;
  background: var(--green-soft);
}

.attention-card--not_connected {
  border-color: var(--line);
  background: var(--surface);
}

.attention-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #74440f;
  background: white;
  font-weight: 900;
}

.attention-card--not_connected .attention-icon {
  color: var(--muted);
  background: var(--gray-soft);
}

.attention-title-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
}

.attention-title-row h3 {
  margin: 0;
  font-size: 15px;
}

.attention-copy p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.check-state,
.task-state {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 5px 8px;
  color: #74440f;
  background: rgba(255, 255, 255, 0.72);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.check-state--not_connected,
.task-state--not_connected {
  color: var(--muted);
  background: var(--gray-soft);
}

.attention-card > a {
  color: var(--green-deep);
  font-size: 10px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.manual-task-list {
  border-top: 1px solid var(--line);
}

.manual-task {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}

.manual-task-number {
  color: #a0aaa3;
  font-family: Consolas, monospace;
  font-size: 11px;
}

.manual-task-copy h3 {
  margin: 8px 0 5px;
  font-size: 18px;
}

.manual-task-copy p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.task-state--ready {
  color: var(--green-deep);
  background: var(--green-soft);
}

.task-state--external,
.task-state--manual {
  color: #74440f;
  background: var(--amber-soft);
}

.task-button {
  min-width: 155px;
  display: inline-flex;
  justify-content: space-between;
  gap: 12px;
  border: 0;
  border-radius: 11px;
  padding: 12px 14px;
  color: white;
  background: var(--green-deep);
  font: inherit;
  font-size: 10px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.task-button:disabled {
  color: #7f8882;
  background: var(--gray-soft);
}

.workspace-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 16px;
}

.resource-panel,
.instruction-panel {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 26px;
  background: var(--surface);
}

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

.resource-card {
  min-height: 158px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 17px;
  color: var(--ink);
  background: #fbfcfa;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease;
}

.resource-card:hover {
  transform: translateY(-2px);
  border-color: #aebdb3;
}

.resource-card > span {
  color: var(--green);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.resource-card strong {
  margin-top: 10px;
  font-size: 14px;
}

.resource-card p {
  margin: 6px 0 15px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.resource-card small {
  margin-top: auto;
  color: var(--green-deep);
  font-size: 9px;
  font-weight: 900;
}

.instruction-panel {
  color: white;
  background: var(--green-deep);
}

.instruction-panel .eyebrow {
  color: var(--lime);
}

.instruction-panel h2 {
  margin-bottom: 24px;
  font-size: 25px;
}

.instruction-panel ol {
  display: grid;
  gap: 17px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.instruction-panel li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: start;
}

.instruction-panel li > span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--green-deep);
  background: var(--lime);
  font-size: 9px;
  font-weight: 900;
}

.instruction-panel li p {
  margin: 3px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 11px;
  line-height: 1.5;
}

.instruction-note {
  margin: 26px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 18px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 10px;
  line-height: 1.5;
}

.history-strip {
  display: grid;
  grid-template-columns: minmax(220px, 0.35fr) minmax(0, 1fr);
  gap: 30px;
  align-items: center;
}

.history-strip h2 {
  margin: 0;
  font-size: 24px;
}

.history-placeholder--row {
  min-height: 0;
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 14px;
  align-items: center;
  padding: 18px;
}

.history-placeholder--row > span {
  width: 10px;
  height: 10px;
  margin: 0;
}

.history-placeholder--row p {
  font-size: 11px;
  line-height: 1.5;
}

/* AppsFlyer selection and upload feedback */

.selection-feedback {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  background: white;
}

.selection-feedback.is-complete {
  border-color: #9ccdaf;
  background: #f4fbf6;
}

.selection-feedback.has-problem {
  border-color: #e6cda8;
}

.selection-summary {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}

.selection-kicker,
.selection-period span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.selection-summary > div:first-child > strong {
  font-size: 19px;
}

.selection-summary p {
  max-width: 620px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.selection-period {
  min-width: 180px;
  text-align: right;
}

.selection-period strong {
  font-size: 11px;
}

.bundle-check {
  display: grid;
  gap: 6px;
  margin: 18px 0;
}

.bundle-check > div {
  display: grid;
  grid-template-columns: minmax(90px, 1fr) repeat(3, 52px);
  gap: 6px;
  align-items: center;
}

.bundle-check-head strong {
  color: var(--muted);
  font-size: 8px;
  text-align: center;
}

.bundle-check > div:not(.bundle-check-head) > strong {
  font-size: 10px;
}

.bundle-check > div > span:not(:first-child),
.bundle-check > div:not(.bundle-check-head) > span {
  display: grid;
  min-height: 30px;
  place-items: center;
  border-radius: 8px;
  color: #8d9690;
  background: var(--gray-soft);
  font-size: 10px;
  font-weight: 900;
}

.bundle-check span.is-ready {
  color: var(--green-deep) !important;
  background: var(--green-soft) !important;
}

.bundle-check span.has-duplicate {
  color: #833321 !important;
  background: #fff0ec !important;
}

.selected-file-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.selected-file-list li {
  min-width: 0;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 9px;
  background: white;
}

.selected-file-state {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #765013;
  background: var(--amber-soft);
  font-size: 9px;
  font-weight: 900;
}

.selected-file-state.is-known {
  color: var(--green-deep);
  background: var(--green-soft);
}

.selected-file-list strong,
.selected-file-list small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selected-file-list strong {
  font-size: 9px;
}

.selected-file-list small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 8px;
}

.primary-button:disabled {
  color: #8a928d;
  background: #dfe4e0;
  cursor: not-allowed;
  filter: none;
}

.upload-progress {
  border-radius: 18px;
  padding: 20px;
  color: white;
  background: var(--green-deep);
}

.upload-progress-copy {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 12px;
}

.upload-progress-copy span {
  font-size: 12px;
  font-weight: 800;
}

.upload-progress-copy strong {
  color: var(--lime);
  font-size: 14px;
}

.upload-progress-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.upload-progress-track span {
  width: 0;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: var(--lime);
  transition: width 120ms ease;
}

.upload-progress p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 10px;
}

@media (max-width: 900px) {
  .hero,
  .project-header,
  .split-section,
  .workspace-hero,
  .workspace-bottom,
  .history-strip {
    grid-template-columns: 1fr;
  }

  .hero,
  .project-header {
    gap: 35px;
  }

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

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

  .read-only-seal {
    max-width: 340px;
  }

  .upload-header,
  .job-header,
  .submit-content,
  .confirm-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .workspace-hero {
    gap: 24px;
  }
}

@media (max-width: 600px) {
  .topbar,
  .footer,
  .page-shell {
    width: min(100% - 24px, 1180px);
  }

  .topbar {
    min-height: 72px;
  }

  .mode-badge {
    padding: 8px;
    font-size: 0;
  }

  .mode-badge .mode-dot {
    margin: 0 2px;
  }

  .hero {
    padding-block: 48px 42px;
  }

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

  .hero-copy {
    font-size: 16px;
  }

  .project-grid,
  .state-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    min-height: 300px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .project-header {
    padding-bottom: 48px;
  }

  .read-only-seal {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 20px 0 0;
  }

  .action-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .workspace-intro h1 {
    font-size: 46px;
  }

  .hero-actions,
  .selection-summary {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions a {
    width: 100%;
  }

  .attention-card,
  .manual-task {
    grid-template-columns: 1fr;
  }

  .attention-card > a,
  .task-button {
    width: 100%;
  }

  .manual-task-number {
    display: none;
  }

  .resource-grid,
  .selected-file-list {
    grid-template-columns: 1fr;
  }

  .selection-period {
    min-width: 0;
    text-align: left;
  }

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

  .form-number {
    display: none;
  }

  .date-grid,
  .bundle-grid {
    grid-template-columns: 1fr;
  }

  .file-table {
    min-width: 650px;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }

  .progress-spinner {
    animation: none;
  }
}

/* Selected project workspace: light Bento + Action Rails */

.workspace-body {
  --bento-canvas: #eef3f8;
  --bento-surface: #ffffff;
  --bento-paper: rgba(255, 255, 255, 0.76);
  --bento-soft: #f6f8fb;
  --bento-ink: #17243b;
  --bento-muted: #66758c;
  --bento-line: #dfe6ef;
  --bento-shadow: 0 10px 30px rgba(29, 47, 78, 0.055);
  --bento-blue: #2855d9;
  --bento-blue-dark: #173da9;
  --bento-blue-soft: #e9efff;
  --bento-green: #27b875;
  --bento-green-dark: #08794a;
  --bento-green-soft: #e5f8ef;
  --bento-amber: #d88a16;
  --bento-amber-soft: #fff5df;
  color: var(--bento-ink);
  background:
    radial-gradient(circle at 10% 0%, rgba(40, 85, 217, 0.08), transparent 26rem),
    radial-gradient(circle at 100% 58%, rgba(39, 184, 117, 0.07), transparent 27rem),
    var(--bento-canvas);
}

.workspace-body .topbar,
.workspace-body .footer,
.workspace-body .page-shell {
  width: min(1504px, calc(100% - 48px));
}

.workspace-body .topbar {
  min-height: 76px;
  border-bottom-color: rgba(102, 117, 140, 0.16);
}

.workspace-body .brand {
  gap: 13px;
}

.workspace-body .brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  color: white;
  background: var(--bento-blue);
  box-shadow: 0 9px 22px rgba(40, 85, 217, 0.24);
  font-size: 11px;
}

.workspace-body .brand strong {
  color: var(--bento-ink);
  font-size: 17px;
  letter-spacing: -0.02em;
}

.workspace-body .brand small {
  color: var(--bento-muted);
  font-size: 11px;
}

.workspace-body .mode-badge {
  border: 0;
  border-radius: 0;
  padding: 0;
  color: var(--bento-muted);
  background: transparent;
  font-size: 12px;
}

.workspace-body .mode-dot {
  background: var(--bento-green);
  box-shadow: 0 0 0 5px var(--bento-green-soft);
}

.workspace-body .footer {
  border-top-color: var(--bento-line);
  color: var(--bento-muted);
}

.catalog-workspace {
  padding: 18px 0 64px;
}

.catalog-hero {
  min-height: 360px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(360px, 0.6fr);
  gap: 42px;
  align-items: end;
  overflow: hidden;
  border-radius: 30px;
  padding: 48px 50px;
  color: white;
  background:
    radial-gradient(circle at 85% 2%, rgba(121, 229, 174, 0.26), transparent 18rem),
    linear-gradient(120deg, #173fae 0%, #2855d9 60%, #254cc1 100%);
  box-shadow: 0 22px 52px rgba(31, 68, 170, 0.2);
}

.catalog-kicker {
  margin: 0 0 12px;
  color: var(--bento-blue);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.catalog-hero .catalog-kicker {
  color: rgba(255, 255, 255, 0.72);
}

.catalog-hero h1 {
  margin: 0;
  color: white;
  font-size: clamp(48px, 6vw, 82px);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.catalog-hero h1 span {
  color: #a1efc4;
}

.catalog-hero-copy {
  max-width: 720px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 19px;
  line-height: 1.55;
}

.catalog-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0;
}

.catalog-summary div {
  min-height: 118px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  padding: 18px;
  background: rgba(12, 35, 96, 0.18);
  backdrop-filter: blur(8px);
}

.catalog-summary dt,
.catalog-summary dd {
  margin: 0;
}

.catalog-summary dt {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.catalog-summary dd {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 750;
}

.catalog-section {
  padding-top: 40px;
}

.catalog-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 20px;
}

.catalog-section-heading h2 {
  margin: 0;
  color: var(--bento-ink);
  font-size: 32px;
  letter-spacing: -0.04em;
}

.catalog-section-heading > p {
  max-width: 440px;
  margin: 0;
  color: var(--bento-muted);
  font-size: 14px;
  line-height: 1.5;
  text-align: right;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.catalog-card {
  min-height: 390px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--bento-line);
  border-radius: 23px;
  padding: 23px 23px 0;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 28px rgba(29, 47, 78, 0.055);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.catalog-card:hover {
  transform: translateY(-3px);
  border-color: #c5d1df;
  box-shadow: 0 18px 42px rgba(29, 47, 78, 0.11);
}

.catalog-card--paused {
  background: rgba(241, 244, 247, 0.96);
}

.catalog-card--launching {
  border-color: #ead8b6;
  background: linear-gradient(145deg, white, #fff9ed);
}

.catalog-card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.catalog-card-copy {
  flex: 1;
  padding: 34px 0 24px;
}

.catalog-card h3 {
  margin: 0 0 11px;
  color: var(--bento-ink);
  font-size: 28px;
  letter-spacing: -0.04em;
}

.catalog-card-copy p {
  margin: 0;
  color: var(--bento-muted);
  font-size: 15px;
  line-height: 1.55;
}

.catalog-card-meta {
  display: grid;
  grid-template-columns: 0.75fr 0.75fr 1.5fr;
  gap: 12px;
  margin: 0 0 20px;
}

.catalog-card-meta div {
  min-width: 0;
  border-top: 1px solid var(--bento-line);
  padding-top: 11px;
}

.catalog-card-meta dt,
.catalog-card-meta dd {
  margin: 0;
}

.catalog-card-meta dt {
  margin-bottom: 4px;
  color: #8b98aa;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.catalog-card-meta dd {
  overflow: hidden;
  color: var(--bento-ink);
  font-size: 12px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-card-link {
  min-height: 54px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 47px;
  align-items: center;
  margin: 0 -23px;
  border-top: 1px solid #cfdafb;
  border-left: 5px solid var(--bento-blue);
  padding-left: 20px;
  color: var(--bento-blue-dark);
  background: var(--bento-blue-soft);
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
}

.catalog-card-link b {
  align-self: stretch;
  display: grid;
  place-items: center;
  border-left: 1px solid #cfdafb;
  font-size: 18px;
}

.catalog-card-link:hover b {
  background: rgba(40, 85, 217, 0.08);
}

.bento-workspace {
  padding: 18px 0 28px;
}

.bento-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 6px 16px;
  color: var(--bento-muted);
  font-size: 14px;
  font-weight: 700;
}

.bento-breadcrumb a {
  color: var(--bento-blue);
  text-decoration: none;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}

.bento-hero {
  position: relative;
  grid-column: span 12;
  min-height: 300px;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(370px, 0.75fr);
  gap: 28px;
  overflow: hidden;
  border-radius: 30px;
  padding: 34px 36px;
  color: white;
  background:
    radial-gradient(circle at 83% -10%, rgba(39, 184, 117, 0.26), transparent 18rem),
    linear-gradient(115deg, #173fae 0%, #2855d9 58%, #254cc1 100%);
  box-shadow: 0 22px 52px rgba(31, 68, 170, 0.2);
}

.bento-hero::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -170px;
  width: 270px;
  height: 270px;
  border: 54px solid rgba(255, 255, 255, 0.07);
  border-radius: 50%;
  pointer-events: none;
}

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

.bento-hero-copy {
  position: relative;
  z-index: 1;
  align-self: center;
}

.bento-eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
}

.status-dot--active {
  background: #79e5ae;
  box-shadow: 0 0 0 5px rgba(121, 229, 174, 0.15);
}

.status-dot--launching {
  background: #ffd689;
}

.bento-hero h1 {
  max-width: 760px;
  margin: 0;
  color: white;
  font-size: clamp(42px, 5vw, 68px);
  font-weight: 790;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.bento-hero-copy > p {
  max-width: 660px;
  margin: 18px 0 25px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 18px;
  line-height: 1.55;
}

.rail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.action-rail {
  --rail-color: #79e5ae;
  position: relative;
  min-width: 238px;
  min-height: 52px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 43px;
  align-items: center;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 5px;
  padding-left: 17px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.action-rail::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--rail-color);
}

.action-rail-index {
  font-size: 10px;
  letter-spacing: 0.11em;
  opacity: 0.58;
}

.action-rail-go {
  align-self: stretch;
  display: grid;
  place-items: center;
  border-left: 1px solid rgba(40, 85, 217, 0.14);
  font-size: 20px;
  transition: background-color 160ms ease;
}

.action-rail--primary {
  color: var(--bento-blue-dark);
  background: white;
  box-shadow: 0 10px 28px rgba(12, 35, 96, 0.23);
}

.action-rail--primary .action-rail-go {
  background: var(--bento-blue-soft);
}

.action-rail--secondary {
  --rail-color: rgba(255, 255, 255, 0.56);
  border-color: rgba(255, 255, 255, 0.25);
  color: white;
  background: rgba(15, 42, 117, 0.2);
}

.action-rail--secondary .action-rail-go {
  border-left-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
}

.action-rail:hover .action-rail-go {
  background-color: rgba(121, 229, 174, 0.25);
}

.bento-attention {
  position: relative;
  z-index: 1;
  align-self: stretch;
  border-radius: 24px;
  padding: 23px;
  color: var(--bento-ink);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 18px 42px rgba(12, 35, 96, 0.16);
}

.bento-panel-heading,
.workspace-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.bento-panel-heading {
  align-items: center;
  margin-bottom: 13px;
}

.bento-panel-kicker,
.workspace-card-heading > div > p,
.report-card-brand {
  display: block;
  margin: 0 0 5px;
  color: var(--bento-blue);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.bento-panel-heading h2,
.workspace-card-heading h2 {
  margin: 0;
  color: var(--bento-ink);
  font-size: 23px;
  letter-spacing: -0.025em;
}

.bento-counter {
  border-radius: 4px;
  padding: 5px 8px;
  color: var(--bento-amber);
  background: var(--bento-amber-soft);
  font-size: 11px;
  font-weight: 850;
}

.bento-signals {
  display: grid;
}

.bento-signal {
  display: grid;
  grid-template-columns: 35px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 11px;
  border-top: 1px solid var(--bento-line);
  padding: 12px 0;
}

.bento-signal:first-child {
  border-top: 0;
}

.bento-signal-icon {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--bento-amber);
  background: var(--bento-amber-soft);
  font-size: 16px;
  font-weight: 850;
}

.bento-signal--ok .bento-signal-icon {
  color: var(--bento-green-dark);
  background: var(--bento-green-soft);
}

.bento-signal--not_connected .bento-signal-icon {
  color: var(--bento-muted);
  background: var(--bento-soft);
}

.bento-signal strong,
.bento-signal span {
  display: block;
}

.bento-signal strong {
  font-size: 15px;
}

.bento-signal div > span {
  margin-top: 3px;
  color: var(--bento-muted);
  font-size: 13px;
}

.bento-signal > a {
  align-self: stretch;
  display: grid;
  place-items: center;
  border-left: 1px solid var(--bento-line);
  color: var(--bento-blue);
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}

.bento-signal-pending {
  align-self: stretch;
  display: grid;
  place-items: center;
  border-left: 1px solid var(--bento-line);
  color: var(--bento-muted);
  font-size: 15px;
  font-weight: 800;
}

.workspace-card {
  border: 1px solid rgba(216, 225, 237, 0.92);
  border-radius: 23px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 28px rgba(29, 47, 78, 0.055);
}

.main-workflow-card {
  grid-column: span 7;
  padding: 25px 26px 22px;
}

.report-card {
  grid-column: span 5;
  background: linear-gradient(145deg, white, #f5f8ff);
}

.documents-card {
  grid-column: span 5;
}

.rustore-card {
  grid-column: span 7;
  border-color: #ceeede;
  background: #e8f8f0;
}

.workspace-card-heading {
  margin-bottom: 18px;
}

.workspace-card-heading > div > span {
  display: block;
  margin-top: 5px;
  color: var(--bento-muted);
  font-size: 14px;
  line-height: 1.4;
}

.workspace-card-heading--small {
  margin-bottom: 15px;
}

.workspace-card-index {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: var(--bento-blue);
  background: var(--bento-blue-soft);
  font-size: 13px;
  font-weight: 850;
}

.workflow-rails {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.workflow-item {
  position: relative;
  min-width: 0;
  min-height: 222px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  gap: 8px;
  overflow: hidden;
  border: 1px solid #e0e7f0;
  border-radius: 5px;
  padding: 16px 14px 0 16px;
  background: var(--bento-soft);
}

.workflow-item::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--bento-blue);
}

.workflow-item-number {
  color: var(--bento-blue);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.workflow-item-copy {
  min-width: 0;
}

.workflow-state {
  display: inline-flex;
  border-radius: 4px;
  padding: 4px 6px;
  color: #765013;
  background: var(--bento-amber-soft);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.workflow-state--ready {
  color: var(--bento-green-dark);
  background: var(--bento-green-soft);
}

.workflow-state--not_connected {
  color: var(--bento-muted);
  background: #e9edf2;
}

.workflow-item h3 {
  margin: 9px 0 5px;
  color: var(--bento-ink);
  font-size: 17px;
  line-height: 1.25;
}

.workflow-item p {
  margin: 0;
  color: var(--bento-muted);
  font-size: 13px;
  line-height: 1.42;
}

.workflow-go {
  grid-column: 1 / -1;
  min-height: 39px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px;
  align-items: center;
  margin-left: -11px;
  border: 0;
  border-top: 1px solid var(--bento-line);
  padding: 0 0 0 12px;
  color: var(--bento-blue);
  background: white;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}

.workflow-go b {
  align-self: stretch;
  display: grid;
  place-items: center;
  border-left: 1px solid var(--bento-line);
  font-size: 14px;
}

.workflow-go:disabled {
  color: var(--bento-muted);
  background: #edf0f4;
  cursor: not-allowed;
}

.workflow-go:hover:not(:disabled) b {
  background: var(--bento-blue-soft);
}

.report-card-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 12px;
}

.report-bars {
  height: 18px;
  display: flex;
  align-items: flex-end;
  gap: 3px;
}

.report-bars i {
  width: 5px;
  display: block;
  border-radius: 3px 3px 0 0;
  background: var(--bento-blue);
}

.report-bars i:nth-child(1) { height: 9px; opacity: 0.55; }
.report-bars i:nth-child(2) { height: 14px; opacity: 0.75; }
.report-bars i:nth-child(3) { height: 18px; }

.bento-login {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 12px;
  border: 1px solid var(--bento-line);
  border-radius: 15px;
  padding: 14px 15px;
  background: white;
  box-shadow: 0 6px 18px rgba(28, 48, 83, 0.05);
}

.bento-login > span {
  grid-column: 1 / -1;
  color: var(--bento-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bento-login strong {
  overflow-wrap: anywhere;
  font-size: 14px;
}

.bento-login button {
  border: 0;
  padding: 0;
  color: var(--bento-blue);
  background: transparent;
  font: inherit;
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
}

.report-rails {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 11px;
}

.report-rails > :only-child {
  grid-column: 1 / -1;
}

.mini-rail,
.password-note {
  position: relative;
  min-height: 43px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 33px;
  align-items: center;
  overflow: hidden;
  border: 1px solid #cfdafb;
  border-left: 4px solid var(--bento-blue);
  border-radius: 4px;
  padding-left: 12px;
  color: var(--bento-blue);
  background: var(--bento-blue-soft);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.mini-rail b {
  align-self: stretch;
  display: grid;
  place-items: center;
  border-left: 1px solid #cfdafb;
  font-size: 13px;
}

.mini-rail--green {
  border-color: #bfe8d3;
  border-left-color: var(--bento-green);
  color: var(--bento-green-dark);
  background: var(--bento-green-soft);
}

.mini-rail--green b {
  border-left-color: #bfe8d3;
}

.password-note {
  grid-template-columns: 1fr;
  border-left-color: #b8c2d0;
  color: var(--bento-muted);
  background: var(--bento-soft);
}

.document-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}

.document-list a {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 26px;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--bento-line);
  padding: 11px 0;
  color: var(--bento-ink);
  text-decoration: none;
}

.document-list a:nth-child(-n + 2) {
  border-top: 0;
}

.document-list small,
.document-list strong {
  display: block;
}

.document-list small {
  margin-bottom: 3px;
  color: var(--bento-muted);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.document-list strong {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.document-list b {
  color: var(--bento-blue);
  font-size: 13px;
  text-align: center;
}

.document-list a:hover strong {
  color: var(--bento-blue);
}

.rustore-card .workspace-card-heading > div > p,
.rustore-card .workspace-card-index {
  color: var(--bento-green-dark);
}

.rustore-card .workspace-card-index {
  background: rgba(255, 255, 255, 0.72);
}

.rustore-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(210px, 0.75fr);
  gap: 9px;
}

.rustore-actions {
  display: grid;
  gap: 8px;
}

.rustore-action {
  min-height: 78px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 43px;
  align-items: center;
  overflow: hidden;
  border: 1px solid #bfe8d3;
  border-left: 5px solid var(--bento-green);
  border-radius: 5px;
  padding-left: 14px;
  color: var(--bento-ink);
  background: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

.rustore-action .workflow-item-number {
  color: var(--bento-green-dark);
}

.rustore-action strong,
.rustore-action small {
  display: block;
}

.rustore-action strong {
  margin-bottom: 4px;
  font-size: 15px;
}

.rustore-action small {
  color: #527260;
  font-size: 12px;
  line-height: 1.4;
}

.rustore-action > b {
  align-self: stretch;
  display: grid;
  place-items: center;
  border-left: 1px solid #bfe8d3;
  color: var(--bento-green-dark);
  font-size: 14px;
}

.rustore-links {
  display: grid;
  gap: 7px;
}

.rustore-links a {
  min-height: 36px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 31px;
  align-items: center;
  overflow: hidden;
  border: 1px solid #bfe8d3;
  border-left: 4px solid var(--bento-green);
  border-radius: 4px;
  padding-left: 11px;
  color: var(--bento-green-dark);
  background: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.rustore-links b {
  align-self: stretch;
  display: grid;
  place-items: center;
  border-left: 1px solid #bfe8d3;
  font-size: 12px;
}

.workspace-module {
  --module-accent: var(--bento-green);
  --module-accent-dark: var(--bento-green-dark);
  --module-border: #bfe8d3;
  --module-surface: #e8f8f0;
  grid-column: span 7;
  border-color: var(--module-border);
  background: var(--module-surface);
}

.workspace-module--span-5 { grid-column: span 5; }
.workspace-module--span-6 { grid-column: span 6; }
.workspace-module--span-7 { grid-column: span 7; }
.workspace-module--span-12 { grid-column: span 12; }

.workspace-module--blue {
  --module-accent: var(--bento-blue);
  --module-accent-dark: var(--bento-blue-dark);
  --module-border: #cbd8fb;
  --module-surface: #eaf0ff;
}

.workspace-module--amber {
  --module-accent: var(--bento-amber);
  --module-accent-dark: #86530a;
  --module-border: #efd8ab;
  --module-surface: #fff5df;
}

.workspace-module--violet {
  --module-accent: #7658d6;
  --module-accent-dark: #5036a8;
  --module-border: #d8cff6;
  --module-surface: #f2effd;
}

.workspace-module--slate {
  --module-accent: #66758c;
  --module-accent-dark: #3c4a60;
  --module-border: #d8e0e9;
  --module-surface: #eef2f6;
}

.workspace-module .workspace-card-heading > div > p,
.workspace-module .workspace-card-index,
.workspace-module .workflow-item-number {
  color: var(--module-accent-dark);
}

.workspace-module .workspace-card-index {
  background: rgba(255, 255, 255, 0.72);
}

.workspace-module-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(210px, 0.75fr);
  gap: 9px;
}

.workspace-module-layout--single {
  grid-template-columns: 1fr;
}

.workspace-module-actions,
.workspace-module-links {
  display: grid;
  gap: 8px;
}

.workspace-module-action {
  min-height: 78px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 43px;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--module-border);
  border-left: 5px solid var(--module-accent);
  border-radius: 5px;
  padding-left: 14px;
  color: var(--bento-ink);
  background: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

.workspace-module-action strong,
.workspace-module-action small {
  display: block;
}

.workspace-module-action strong {
  margin-bottom: 4px;
  font-size: 15px;
}

.workspace-module-action small {
  color: var(--bento-muted);
  font-size: 12px;
  line-height: 1.4;
}

.workspace-module-action > b {
  align-self: stretch;
  display: grid;
  place-items: center;
  border-left: 1px solid var(--module-border);
  color: var(--module-accent-dark);
  font-size: 14px;
}

.workspace-module-action--disabled {
  opacity: 0.72;
}

.workspace-module-links a {
  min-height: 38px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 31px;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--module-border);
  border-left: 4px solid var(--module-accent);
  border-radius: 4px;
  padding-left: 11px;
  color: var(--module-accent-dark);
  background: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.workspace-module-links b {
  align-self: stretch;
  display: grid;
  place-items: center;
  border-left: 1px solid var(--module-border);
}

.bento-instructions {
  grid-column: span 12;
}

.bento-instructions ol {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bento-instructions li {
  display: grid;
  grid-template-columns: 25px 1fr;
  gap: 10px;
  border-top: 1px solid var(--bento-line);
  padding-top: 12px;
}

.bento-instructions li > span {
  color: var(--bento-blue);
  font-size: 10px;
  font-weight: 850;
}

.bento-instructions li p,
.bento-empty {
  margin: 0;
  color: var(--bento-muted);
  font-size: 12px;
  line-height: 1.5;
}

.bento-status-note {
  grid-column: span 12;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3px 6px 0;
  color: #7c899b;
  font-size: 13px;
}

.bento-status-note span:first-child {
  display: flex;
  align-items: center;
  gap: 7px;
}

.bento-status-note i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--bento-green);
}

.bento-workspace a:focus-visible,
.bento-workspace button:focus-visible {
  outline: 3px solid rgba(121, 229, 174, 0.75);
  outline-offset: 3px;
}

@media (max-width: 1050px) {
  .catalog-hero {
    grid-template-columns: 1fr;
  }

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

  .bento-hero {
    grid-template-columns: 1fr;
  }

  .main-workflow-card,
  .rustore-card,
  .workspace-module {
    grid-column: span 12;
  }

  .report-card,
  .documents-card {
    grid-column: span 6;
  }
}

@media (max-width: 760px) {
  .workspace-body .topbar,
  .workspace-body .footer,
  .workspace-body .page-shell {
    width: min(100% - 24px, 1504px);
  }

  .workspace-body .topbar {
    min-height: 66px;
  }

  .workspace-body .brand small,
  .workspace-body .mode-badge {
    display: none;
  }

  .catalog-workspace {
    padding-top: 10px;
  }

  .catalog-hero {
    min-height: 0;
    gap: 28px;
    border-radius: 23px;
    padding: 30px 22px 22px;
  }

  .catalog-hero h1 {
    font-size: 46px;
  }

  .catalog-hero-copy {
    font-size: 17px;
  }

  .catalog-summary div {
    min-height: 94px;
  }

  .catalog-section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .catalog-section-heading > p {
    text-align: left;
  }

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

  .bento-workspace {
    padding-top: 10px;
  }

  .bento-breadcrumb {
    margin-bottom: 11px;
  }

  .bento-grid {
    gap: 11px;
  }

  .bento-hero {
    min-height: 0;
    gap: 22px;
    border-radius: 23px;
    padding: 27px 20px 20px;
  }

  .bento-hero h1 {
    font-size: 42px;
  }

  .action-rail {
    width: 100%;
    min-width: 0;
  }

  .main-workflow-card,
  .report-card,
  .documents-card,
  .rustore-card,
  .workspace-module,
  .bento-instructions {
    grid-column: span 12;
    padding: 20px;
  }

  .workflow-rails,
  .rustore-layout,
  .workspace-module-layout,
  .report-rails {
    grid-template-columns: 1fr;
  }

  .workflow-item {
    min-height: 194px;
  }

  .bento-status-note {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
}

@media (max-width: 430px) {
  .catalog-summary {
    grid-template-columns: 1fr;
  }

  .catalog-card-meta {
    grid-template-columns: 1fr 1fr;
  }

  .catalog-card-meta div:last-child {
    grid-column: 1 / -1;
  }

  .bento-attention {
    padding: 18px;
  }

  .bento-counter {
    display: none;
  }

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

  .document-list a:nth-child(2) {
    border-top: 1px solid var(--bento-line);
  }
}

/* Compact project workspace: quieter hierarchy, fully clickable controls. */

.compact-project {
  padding-top: 16px;
  padding-bottom: 48px;
}

.compact-project h1,
.compact-project h2,
.compact-project p {
  margin-top: 0;
}

.compact-project-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 380px);
  align-items: end;
  gap: 28px;
  padding: 38px 40px;
  border: 1px solid var(--bento-line);
  border-radius: 28px;
  background: var(--bento-paper);
  box-shadow: var(--bento-shadow);
}

.compact-project-status {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
  color: var(--bento-muted);
  font-size: 15px;
  font-weight: 700;
}

.compact-project-hero h1 {
  margin-bottom: 12px;
  color: var(--bento-ink);
  font-size: clamp(44px, 5vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.compact-project-hero p {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--bento-muted);
  font-size: 19px;
  line-height: 1.5;
}

.compact-section {
  margin-top: 18px;
}

.compact-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
  margin-bottom: 10px;
}

.compact-section-heading h2,
.compact-refresh h2,
.compact-access h2,
.compact-workspace h2 {
  margin-bottom: 0;
  color: var(--bento-ink);
  font-size: 25px;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

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

.compact-check {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "mark copy"
    "mark go";
  gap: 8px 14px;
  min-height: 190px;
  padding: 24px;
  border: 1px solid #cbd6e4;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(24, 36, 57, 0.075);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

a.compact-check:hover {
  transform: translateY(-2px);
  border-color: rgba(40, 85, 217, 0.38);
  box-shadow: 0 18px 42px rgba(24, 36, 57, 0.12);
}

.compact-check-mark {
  grid-area: mark;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(120, 129, 145, 0.12);
  color: var(--bento-muted);
  font-size: 18px;
  font-weight: 800;
}

.compact-check--attention .compact-check-mark {
  background: rgba(255, 194, 92, 0.23);
  color: #8a5b00;
}

.compact-check--critical .compact-check-mark {
  background: rgba(236, 103, 103, 0.16);
  color: #a52929;
}

.compact-check--ok .compact-check-mark {
  background: rgba(121, 229, 174, 0.2);
  color: #177a4e;
}

.compact-check-copy {
  grid-area: copy;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.compact-check-copy strong {
  color: var(--bento-ink);
  font-size: 21px;
  line-height: 1.2;
}

.compact-check-copy > span {
  margin-top: 5px;
  color: var(--bento-muted);
  font-size: 15px;
  font-weight: 700;
}

.compact-check-copy small {
  margin-top: 15px;
  color: var(--bento-muted);
  font-size: 15px;
  line-height: 1.45;
}

.compact-check-go {
  grid-area: go;
  display: flex;
  align-items: center;
  justify-content: space-between;
  align-self: end;
  padding-top: 14px;
  border-top: 1px solid var(--bento-line);
  color: var(--bento-ink);
  font-size: 15px;
  font-weight: 800;
}

.compact-check-go b {
  font-size: 20px;
}

.compact-section-heading--copy {
  align-items: end;
  margin-bottom: 12px;
}

.compact-section-heading--copy > div {
  max-width: 840px;
}

.compact-section-heading--copy span,
.compact-workspace-heading > span {
  display: block;
  margin-bottom: 6px;
  color: var(--bento-blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.compact-section-heading--copy p,
.compact-workspace-heading p {
  margin: 8px 0 0;
  color: var(--bento-muted);
  font-size: 16px;
  line-height: 1.5;
}

.compact-work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

.compact-action-form {
  display: contents;
}

.compact-action-form button {
  width: 100%;
  font: inherit;
  text-align: left;
}

.compact-work-item {
  display: flex;
  flex-direction: column;
  min-height: 210px;
  padding: 23px;
  border: 1px solid #cbd6e4;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 10px 27px rgba(24, 36, 57, 0.065);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

a.compact-work-item:hover {
  transform: translateY(-2px);
  border-color: rgba(40, 85, 217, 0.38);
  box-shadow: 0 16px 38px rgba(24, 36, 57, 0.11);
}

.compact-work-item-state {
  align-self: flex-start;
  margin-bottom: 14px;
  padding: 6px 9px;
  border-radius: 8px;
  background: var(--bento-soft);
  color: var(--bento-muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.compact-work-item--manual .compact-work-item-state,
.compact-work-item--external .compact-work-item-state {
  background: var(--bento-blue-soft);
  color: var(--bento-blue-dark);
}

.compact-work-item > strong {
  color: var(--bento-ink);
  font-size: 20px;
  line-height: 1.2;
}

.compact-work-item > small {
  margin-top: 10px;
  color: var(--bento-muted);
  font-size: 15px;
  line-height: 1.45;
}

.compact-work-item-go {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid var(--bento-line);
  color: var(--bento-ink);
  font-size: 15px;
  font-weight: 800;
}

.compact-work-item-go b {
  flex: 0 0 auto;
  font-size: 20px;
}

.compact-work-item--action {
  border-color: rgba(39, 184, 117, 0.72);
  background: var(--bento-green);
  box-shadow: 0 12px 30px rgba(39, 184, 117, 0.16);
}

.compact-work-item--action .compact-work-item-state {
  background: rgba(255, 255, 255, 0.54);
  color: #165839;
}

.compact-work-item--action > strong,
.compact-work-item--action > small,
.compact-work-item--action .compact-work-item-go {
  color: #123426;
}

.compact-work-item--action .compact-work-item-go {
  border-top-color: rgba(18, 52, 38, 0.2);
}

.compact-work-item--unavailable {
  border-style: dashed;
  background: rgba(246, 248, 251, 0.76);
  box-shadow: none;
}

.compact-work-item--unavailable .compact-work-item-go {
  color: var(--bento-muted);
}

.compact-inline-refresh {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 18px;
  border: 1px solid var(--bento-line);
  border-radius: 22px;
  padding: 22px 24px;
  background: var(--bento-paper);
  box-shadow: var(--bento-shadow);
}

.compact-inline-refresh > div {
  min-width: 0;
}

.compact-inline-refresh small,
.compact-inline-refresh strong,
.compact-inline-refresh p {
  display: block;
  margin: 0;
}

.compact-inline-refresh small {
  margin-bottom: 5px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.compact-inline-refresh strong {
  color: var(--bento-ink);
  font-size: 20px;
}

.compact-inline-refresh p {
  margin-top: 6px;
  color: var(--bento-muted);
  font-size: 15px;
  line-height: 1.45;
}

.compact-inline-refresh > a {
  flex: 0 0 auto;
  margin-left: auto;
  border-radius: 14px;
  padding: 12px 15px;
  background: var(--bento-green);
  color: #123426;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.compact-inline-refresh--queued,
.compact-inline-refresh--running {
  color: white;
  background: #1d2a3e;
}

.compact-inline-refresh--queued strong,
.compact-inline-refresh--running strong {
  color: white;
}

.compact-inline-refresh--queued p,
.compact-inline-refresh--running p {
  color: rgba(255, 255, 255, 0.68);
}

.compact-inline-refresh--succeeded {
  border-color: rgba(39, 184, 117, 0.48);
  background: rgba(229, 250, 239, 0.96);
}

.compact-inline-refresh--failed {
  border-color: #ebc0b6;
  background: #fff0ec;
}

.compact-inline-refresh-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: var(--green-deep);
  background: var(--bento-green);
  font-size: 20px;
  font-weight: 900;
}

.compact-inline-refresh--failed .compact-inline-refresh-mark {
  color: #833321;
  background: #f7c7bc;
}

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

.compact-resource {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 116px;
  padding: 20px 21px;
  border: 1px solid #cbd6e4;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(24, 36, 57, 0.06);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.compact-resource:hover {
  transform: translateY(-2px);
  border-color: rgba(40, 85, 217, 0.38);
  box-shadow: 0 14px 34px rgba(24, 36, 57, 0.1);
}

.compact-resource > span {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.compact-resource small {
  margin-bottom: 4px;
  color: var(--bento-blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.compact-resource strong {
  color: var(--bento-ink);
  font-size: 18px;
  line-height: 1.2;
}

.compact-resource em {
  margin-top: 7px;
  color: var(--bento-muted);
  font-size: 14px;
  font-style: normal;
  line-height: 1.4;
}

.compact-resource > b {
  color: var(--bento-ink);
  font-size: 20px;
}

.compact-workspace {
  padding: 28px;
  border: 1px solid var(--bento-line);
  border-left: 5px solid var(--bento-blue);
  border-radius: 24px;
  background: var(--bento-paper);
  box-shadow: var(--bento-shadow);
}

.compact-workspace--green {
  border-left-color: var(--bento-green);
}

.compact-workspace--amber {
  border-left-color: #e5a439;
}

.compact-workspace--violet {
  border-left-color: #7657d8;
}

.compact-workspace--slate {
  border-left-color: #77869b;
}

.compact-workspace-heading {
  max-width: 850px;
  margin-bottom: 18px;
}

.compact-resource-grid--workspace {
  margin-top: 12px;
}

.compact-refresh,
.compact-access {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 470px);
  align-items: center;
  gap: 30px;
  margin-top: 18px;
  padding: 30px 32px;
  border: 1px solid var(--bento-line);
  border-radius: 24px;
  background: var(--bento-paper);
  box-shadow: var(--bento-shadow);
}

.compact-refresh p,
.compact-access p {
  max-width: 760px;
  margin: 9px 0 0;
  color: var(--bento-muted);
  font-size: 16px;
  line-height: 1.5;
}

.compact-refresh-actions,
.compact-access-actions {
  display: grid;
  gap: 9px;
}

.compact-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  width: 100%;
  min-height: 82px;
  padding: 18px 22px;
  border: 1px solid transparent;
  border-radius: 20px;
  color: inherit;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.compact-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(24, 36, 57, 0.14);
}

.compact-button > span {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.25;
}

.compact-button small {
  color: inherit;
  font-size: 13px;
  font-weight: 700;
  opacity: 0.72;
}

.compact-button > b {
  flex: 0 0 auto;
  font-size: 22px;
}

.compact-button--report {
  min-height: 110px;
  background: #1d2a3e;
  color: #fff;
}

.compact-button--unavailable {
  cursor: default;
  opacity: 0.7;
}

.compact-button--primary {
  background: var(--bento-green);
  color: #123426;
}

.compact-button--quiet {
  min-height: 72px;
  border-color: var(--bento-line);
  background: var(--bento-soft);
  color: var(--bento-ink);
}

.compact-button--quiet > span {
  overflow-wrap: anywhere;
  font-size: 15px;
}

.compact-button--quiet > b {
  font-size: 14px;
}

.compact-button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.compact-project a:focus-visible,
.compact-project button:focus-visible {
  outline: 3px solid rgba(121, 229, 174, 0.75);
  outline-offset: 3px;
}

@media (max-width: 940px) {
  .compact-project-hero,
  .compact-refresh,
  .compact-access {
    grid-template-columns: 1fr;
  }

  .compact-check-grid,
  .compact-resource-grid {
    grid-template-columns: 1fr;
  }

  .compact-project-hero {
    align-items: stretch;
  }
}

@media (max-width: 600px) {
  .compact-project {
    padding-top: 10px;
  }

  .compact-project-hero {
    gap: 22px;
    padding: 28px 20px 20px;
    border-radius: 23px;
  }

  .compact-project-hero h1 {
    font-size: 43px;
  }

  .compact-project-hero p {
    font-size: 17px;
  }

  .compact-check,
  .compact-work-item,
  .compact-resource,
  .compact-workspace,
  .compact-refresh,
  .compact-access {
    padding: 20px;
  }

  .compact-check {
    min-height: 180px;
  }

  .compact-work-item {
    min-height: 195px;
  }

  .compact-button {
    min-height: 76px;
  }

  .compact-inline-refresh {
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 20px;
  }

  .compact-inline-refresh > a {
    width: 100%;
    margin-left: 0;
    text-align: center;
  }
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logout-form {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

.logout-form button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  padding: 8px 13px;
  font: inherit;
  cursor: pointer;
}

.auth-page {
  min-height: 100vh;
}

.auth-page .footer {
  display: none;
}

.auth-shell {
  min-height: calc(100vh - 96px);
  display: grid;
  place-items: center;
  padding: 48px 24px;
}

.auth-card {
  width: min(100%, 520px);
  display: grid;
  gap: 26px;
  padding: clamp(30px, 6vw, 54px);
  border: 1px solid rgba(31, 37, 48, 0.12);
  border-radius: 32px;
  background:
    radial-gradient(circle at 100% 0, rgba(88, 105, 235, 0.12), transparent 42%),
    var(--surface);
  box-shadow: 0 28px 80px rgba(30, 37, 50, 0.12);
}

.auth-mark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--ink);
  color: white;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.auth-copy {
  display: grid;
  gap: 10px;
}

.auth-copy h1 {
  margin: 0;
  font-size: clamp(32px, 6vw, 48px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.auth-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.auth-copy .eyebrow {
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.auth-error {
  border: 1px solid rgba(188, 55, 61, 0.28);
  border-radius: 16px;
  background: rgba(188, 55, 61, 0.08);
  color: #9d272f;
  padding: 13px 15px;
  font-weight: 700;
}

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

.auth-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 700;
}

.auth-form input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(31, 37, 48, 0.18);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  padding: 15px 16px;
  font: inherit;
  font-size: 17px;
}

.auth-form input:focus {
  outline: 3px solid rgba(88, 105, 235, 0.18);
  border-color: var(--accent);
}

.auth-submit {
  border: 0;
  border-radius: 16px;
  background: var(--ink);
  color: white;
  padding: 16px 20px;
  font: inherit;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
}

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

@media (max-width: 680px) {
  .topbar-actions {
    gap: 8px;
  }

  .logout-form span {
    display: none;
  }

  .auth-shell {
    padding: 24px 16px;
  }

  .auth-card {
    border-radius: 24px;
    padding: 28px 22px;
  }
}
