:root {
  --ink: #18292c;
  --ink-soft: #536360;
  --muted: #75807d;
  --paper: #f3f0e7;
  --paper-deep: #e8e4d8;
  --card: #fffdf8;
  --green: #173a40;
  --green-2: #2f7467;
  --mint: #dce9df;
  --amber: #d9a64b;
  --amber-dark: #9d6720;
  --red: #9b3b31;
  --line: #d8d3c6;
  --sidebar: 226px;
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", Georgia, serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}

* {
  box-sizing: border-box;
}
html {
  min-width: 320px;
  background: var(--paper);
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
}
button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  border: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 8px;
  left: 8px;
  padding: 10px 16px;
  color: white;
  background: var(--green);
  transform: translateY(-150%);
}
.skip-link:focus {
  transform: translateY(0);
}
.boot-screen {
  display: grid;
  min-height: 100vh;
  place-content: center;
  gap: 20px;
  color: var(--green);
  text-align: center;
}
.brand-seal {
  display: grid;
  width: 82px;
  height: 82px;
  margin: auto;
  border: 1px solid var(--green);
  place-content: center;
  font: 50px var(--serif);
}
.boot-screen p {
  color: var(--muted);
  letter-spacing: 0.12em;
}

.login-screen {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(480px, 1.18fr) minmax(420px, 0.82fr);
}
.login-story {
  position: relative;
  display: flex;
  overflow: hidden;
  padding: clamp(50px, 7vw, 110px);
  color: var(--paper);
  background: var(--green);
  flex-direction: column;
  justify-content: center;
}
.login-grid {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.4) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.4) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: linear-gradient(to bottom right, black, transparent 75%);
}
.section-code {
  margin: 0;
  color: var(--amber-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
}
.login-story .section-code {
  position: relative;
  color: #e7bd71;
}
.login-story h1 {
  position: relative;
  margin: 22px 0 14px;
  font: 112px / 1 var(--serif);
  letter-spacing: 0.12em;
}
.login-story :where(h1) span {
  display: inline-grid;
  width: 130px;
  height: 130px;
  margin-right: 24px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  place-content: center;
}
.login-lead {
  position: relative;
  max-width: 560px;
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font: 27px / 1.6 var(--serif);
}
.login-track {
  position: relative;
  display: grid;
  max-width: 680px;
  margin-top: 74px;
  grid-template-columns: repeat(6, 1fr);
}
.login-track::before {
  position: absolute;
  top: 8px;
  right: 6%;
  left: 6%;
  height: 1px;
  background: rgba(255, 255, 255, 0.28);
  content: "";
}
.login-track span {
  position: relative;
  padding-top: 27px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  text-align: center;
  animation: track-reveal 0.45s both;
  animation-delay: calc(var(--i) * 80ms);
}
.login-track span::before {
  position: absolute;
  top: 4px;
  left: calc(50% - 4px);
  width: 8px;
  height: 8px;
  border: 2px solid var(--green);
  background: var(--amber);
  content: "";
  transform: rotate(45deg);
}
.login-footnote {
  position: absolute;
  right: clamp(50px, 7vw, 110px);
  bottom: 45px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 12px;
  letter-spacing: 0.08em;
}
.login-form-wrap {
  display: grid;
  padding: 60px;
  background: var(--card);
  place-content: center;
}
.login-form {
  width: min(390px, 100%);
}
.form-index {
  color: var(--amber-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.15em;
}
.login-form h2 {
  margin: 18px 0 8px;
  font: 44px var(--serif);
}
.login-form > p {
  margin: 0 0 38px;
  color: var(--muted);
  font-size: 14px;
}
.login-form label,
.compact-modal label,
.wide-modal label {
  display: block;
  margin-top: 22px;
}
.login-form label span,
.compact-modal label span,
.wide-modal label span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.login-form input {
  width: 100%;
  height: 54px;
  border: 0;
  border-bottom: 1px solid #aaa697;
  outline: 0;
  background: transparent;
  font-size: 18px;
}
.login-form input:focus {
  border-color: var(--green);
  box-shadow: inset 0 -2px var(--green);
}
.login-form .login-remember-group {
  display: grid;
  gap: 8px;
  margin-top: 22px;
}
.login-form .login-remember {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 0;
  cursor: pointer;
}
.login-form .login-remember input {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin: 0;
}
.login-form .login-remember span {
  margin: 0;
  line-height: 1.4;
}
.login-form .login-remember-note {
  margin-top: 0;
  font-size: 12px;
  line-height: 1.6;
}
.login-form .form-error {
  min-height: 21px;
  margin: 12px 0 0;
  color: var(--red);
  font-size: 13px;
}
.login-button {
  width: 100%;
  margin-top: 15px;
  justify-content: space-between;
}
.login-form small {
  display: block;
  margin-top: 22px;
  color: var(--muted);
  line-height: 1.6;
}

.button {
  display: inline-flex;
  min-height: 44px;
  padding: 0 20px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition:
    background 0.18s,
    color 0.18s,
    transform 0.18s;
}
.button:hover {
  transform: translateY(-1px);
}
.button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  transform: none;
}
.button-primary {
  color: white;
  background: var(--green);
}
.button-primary:hover {
  background: #0e2b30;
}
.button-secondary {
  border-color: var(--green);
  color: var(--green);
  background: transparent;
}
.button-quiet {
  border-color: var(--line);
  color: var(--muted);
  background: transparent;
}
.button-danger {
  color: white;
  background: var(--red);
}

.app-shell {
  min-height: 100vh;
  padding-left: var(--sidebar);
}
.sidebar {
  position: fixed;
  z-index: 50;
  inset: 0 auto 0 0;
  display: flex;
  width: var(--sidebar);
  color: white;
  background: var(--green);
  flex-direction: column;
}
.brand {
  display: grid;
  height: 106px;
  padding: 24px 24px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  grid-template: 1fr 1fr / 48px 1fr;
  column-gap: 12px;
}
.brand > span {
  display: grid;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  grid-row: span 2;
  place-content: center;
  font: 29px var(--serif);
}
.brand strong {
  align-self: end;
  font: 25px var(--serif);
  letter-spacing: 0.12em;
}
.brand small {
  color: rgba(255, 255, 255, 0.43);
  font-size: 9px;
  letter-spacing: 0.2em;
}
.main-nav {
  padding: 24px 0;
}
.main-nav a {
  position: relative;
  display: grid;
  height: 58px;
  padding: 0 19px 0 26px;
  color: rgba(255, 255, 255, 0.54);
  align-items: center;
  grid-template-columns: 28px 1fr auto;
  font-size: 14px;
  transition:
    color 0.2s,
    background 0.2s;
}
.main-nav a::before {
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 0;
  width: 3px;
  background: var(--amber);
  content: "";
  opacity: 0;
}
.main-nav a:hover,
.main-nav a.active {
  color: white;
  background: rgba(255, 255, 255, 0.07);
}
.main-nav a.active::before {
  opacity: 1;
}
.main-nav small {
  color: rgba(255, 255, 255, 0.25);
  font-size: 9px;
}
.sidebar-note {
  display: flex;
  margin: auto 22px 20px;
  padding: 17px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  gap: 13px;
}
.sidebar-note > span {
  display: grid;
  width: 34px;
  height: 34px;
  color: var(--green);
  background: var(--amber);
  place-content: center;
  font-size: 11px;
  font-weight: 900;
}
.sidebar-note p {
  margin: 0;
  color: rgba(255, 255, 255, 0.52);
  font-size: 10px;
  line-height: 1.65;
}
.user-card {
  display: grid;
  width: 100%;
  min-height: 78px;
  padding: 16px 18px;
  color: white;
  background: rgba(0, 0, 0, 0.12);
  text-align: left;
  align-items: center;
  grid-template-columns: 36px 1fr auto;
  gap: 10px;
}
.user-card > span:first-child {
  display: grid;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  place-content: center;
  font: 13px var(--serif);
}
.user-card > span:nth-child(2) {
  display: flex;
  min-width: 0;
  flex-direction: column;
}
.user-card strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-card small {
  overflow: hidden;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-card-logout {
  padding: 7px 8px;
  color: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: transparent;
  cursor: pointer;
  font-size: 10px;
  font-weight: 400;
  white-space: nowrap;
}
.user-card-logout:hover,
.user-card-logout:focus-visible {
  color: white;
  border-color: rgba(255, 255, 255, 0.62);
  background: rgba(157, 53, 44, 0.42);
  outline: 2px solid rgba(255, 255, 255, 0.32);
  outline-offset: 2px;
}
.app-main {
  min-width: 0;
}
.topbar {
  display: flex;
  height: 52px;
  padding: 0 clamp(24px, 4vw, 64px);
  border-bottom: 1px solid var(--line);
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 253, 248, 0.66);
}
.topbar > div {
  display: flex;
  color: var(--muted);
  align-items: center;
  gap: 8px;
  font-size: 10px;
  letter-spacing: 0.08em;
}
.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-2);
  box-shadow: 0 0 0 4px rgba(47, 116, 103, 0.13);
}
.topbar p {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  font: 12px var(--serif);
}
.topbar p button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--green);
  cursor: pointer;
  font: 11px var(--sans);
}
.account-security-panel {
  width: min(620px, 100%);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--line);
  background: var(--card);
}
.account-security-panel header h1 {
  margin: 8px 0;
  font: 34px var(--serif);
}
.account-security-panel header > p:last-child,
.account-security-panel form > small {
  color: var(--muted);
  line-height: 1.7;
}
.account-security-panel .form-error {
  min-height: 20px;
  color: var(--red);
}
.admin-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.admin-row-actions .button {
  min-height: 34px;
  padding: 0 12px;
}
.mobile-menu {
  display: none;
}
.workspace {
  min-height: calc(100vh - 52px);
  padding: 40px clamp(24px, 4vw, 64px) 72px;
  outline: 0;
  background-image: linear-gradient(
    rgba(24, 41, 44, 0.026) 1px,
    transparent 1px
  );
  background-size: 100% 64px;
}

.page-heading {
  display: flex;
  min-height: 114px;
  margin-bottom: 35px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  animation: rise 0.35s both;
}
.page-heading > div > p {
  display: flex;
  margin: 0 0 10px;
  color: var(--amber-dark);
  align-items: center;
  gap: 10px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
}
.page-heading > div > p span {
  display: grid;
  width: 27px;
  height: 27px;
  color: white;
  background: var(--green);
  place-content: center;
  font-size: 9px;
  letter-spacing: 0;
}
.page-heading h1 {
  margin: 0;
  font: clamp(38px, 4vw, 56px) / 1 var(--serif);
  letter-spacing: 0.02em;
}
.heading-rule {
  display: inline-block;
  width: 70px;
  height: 3px;
  margin: 17px 13px 3px 0;
  background: var(--amber);
}
.page-heading small {
  color: var(--muted);
  font-size: 12px;
}
.heading-action {
  margin-bottom: 5px;
}
.heading-actions {
  display: flex;
  margin-bottom: 5px;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.heading-actions .heading-action {
  margin-bottom: 0;
}
.page-loading {
  display: grid;
  min-height: 65vh;
  color: var(--muted);
  place-content: center;
  text-align: center;
}
.page-loading span,
.drawer-loading span {
  width: 30px;
  height: 30px;
  margin: 0 auto 14px;
  border: 2px solid var(--line);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.page-error {
  display: grid;
  min-height: 65vh;
  max-width: 460px;
  margin: auto;
  place-content: center;
  text-align: center;
}
.page-error > span {
  display: grid;
  width: 64px;
  height: 64px;
  margin: auto;
  color: white;
  background: var(--red);
  place-content: center;
  font: 38px var(--serif);
}
.page-error h1 {
  margin: 24px 0 8px;
  font: 34px var(--serif);
}
.page-error p {
  margin: 0 0 26px;
  color: var(--muted);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}
.metric-card {
  position: relative;
  min-height: 154px;
  padding: 25px;
  overflow: hidden;
  background: var(--card);
  animation: rise 0.42s both;
}
.metric-card:nth-child(2) {
  animation-delay: 60ms;
}
.metric-card:nth-child(3) {
  animation-delay: 120ms;
}
.metric-card:nth-child(4) {
  animation-delay: 180ms;
}
.metric-card > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}
.metric-card strong {
  display: block;
  margin-top: 15px;
  font: 46px var(--serif);
}
.metric-card small {
  color: var(--muted);
  font-size: 10px;
}
.metric-card i {
  position: absolute;
  right: 20px;
  bottom: 19px;
  color: var(--green);
  font-size: 20px;
  font-style: normal;
}
.metric-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: transparent;
  content: "";
}
.metric-card.accent::before {
  background: var(--green-2);
}
.metric-card.warning::before {
  background: var(--amber);
}
.overview-grid {
  display: grid;
  margin-top: 28px;
  grid-template-columns: minmax(580px, 1.35fr) minmax(300px, 0.65fr);
  gap: 28px;
}
.ledger-panel {
  border: 1px solid var(--line);
  background: var(--card);
}
.ledger-panel > header,
.results-panel > header,
.import-history > header {
  display: flex;
  min-height: 75px;
  padding: 19px 23px;
  border-bottom: 1px solid var(--line);
  align-items: center;
  justify-content: space-between;
}
.ledger-panel header p {
  margin: 0 0 4px;
  color: var(--amber-dark);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
}
.ledger-panel h2,
.import-history h2 {
  margin: 0;
  font: 23px var(--serif);
}
.ledger-panel header a,
.ledger-panel header > span {
  color: var(--muted);
  font-size: 11px;
}
.urgent-row {
  display: grid;
  width: 100%;
  min-height: 77px;
  padding: 12px 20px;
  border-bottom: 1px solid #ebe7dc;
  background: transparent;
  cursor: pointer;
  text-align: left;
  align-items: center;
  grid-template-columns: 44px 68px minmax(0, 1fr) auto;
  gap: 14px;
}
.urgent-row:hover {
  background: #f8f5ed;
}
.urgent-identity {
  display: flex;
  min-width: 0;
  flex-direction: column;
}
.urgent-row b {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.urgent-row small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 400;
}
.urgent-row > strong {
  font: 19px var(--serif);
}
.urgent-row > strong small {
  display: inline;
}
.date-block strong {
  display: block;
  font: 18px var(--serif);
}
.date-block small {
  color: var(--red);
}
.customer-stamp {
  display: inline-grid;
  width: fit-content;
  min-width: 38px;
  min-height: 25px;
  padding: 0 7px;
  color: white;
  background: var(--amber-dark);
  place-content: center;
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.customer-bars {
  padding: 10px 22px 21px;
}
.customer-bars > div {
  display: grid;
  min-height: 51px;
  align-items: center;
  grid-template-columns: 24px minmax(70px, 0.7fr) 1fr 22px;
  gap: 10px;
}
.customer-bars > div > span {
  color: var(--muted);
  font: 10px var(--serif);
}
.customer-bars b {
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.customer-bars i {
  height: 5px;
  background: var(--paper-deep);
}
.customer-bars i span {
  display: block;
  height: 100%;
  background: var(--green-2);
}
.customer-bars strong {
  font: 14px var(--serif);
  text-align: right;
}

.filter-bar {
  display: grid;
  padding: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.75);
  grid-template-columns: repeat(5, minmax(120px, 1fr)) auto;
  align-items: end;
  gap: 12px;
}
.filter-bar label,
.upload-panel > label,
.document-filter label {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 7px;
}
.filter-bar label span,
.upload-panel > label > span,
.document-filter label span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.05em;
}
.filter-bar input,
.filter-bar select,
.upload-panel select,
.document-filter input,
.document-filter select,
.compact-modal input,
.compact-modal textarea,
.wide-modal input,
.wide-modal select {
  width: 100%;
  height: 39px;
  padding: 0 10px;
  border: 1px solid #c9c4b6;
  border-radius: 0;
  outline: 0;
  background: var(--card);
  font-size: 11px;
}
.filter-bar input:focus,
.filter-bar select:focus,
.upload-panel select:focus,
.document-filter input:focus,
.document-filter select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 1px var(--green);
}
.filter-actions {
  display: flex;
  gap: 7px;
}
.filter-actions .button {
  min-height: 39px;
  padding: 0 13px;
  font-size: 11px;
}
.results-panel {
  margin-top: 22px;
  border: 1px solid var(--line);
  background: var(--card);
  transition: opacity 0.2s;
}
.results-panel.loading-results {
  opacity: 0.45;
  pointer-events: none;
}
.results-panel > header p {
  margin: 0;
  font-size: 11px;
}
.results-panel > header p b {
  margin-right: 3px;
  font: 27px var(--serif);
}
.results-panel > header small {
  color: var(--muted);
  font-size: 9px;
}
.data-table {
  width: 100%;
  overflow: hidden;
}
.table-head,
.table-row {
  display: grid;
  grid-template-columns: 58px 1.25fr 1.55fr 0.5fr 0.55fr 0.8fr 0.55fr 28px;
  align-items: center;
  column-gap: 14px;
}
.table-head {
  min-height: 37px;
  padding: 0 17px;
  color: var(--muted);
  background: #eeebe2;
  font-size: 9px;
  font-weight: 800;
}
.table-row {
  width: 100%;
  min-height: 72px;
  padding: 11px 17px;
  border-bottom: 1px solid #ebe7dc;
  background: transparent;
  cursor: pointer;
  text-align: left;
}
.table-row:hover {
  background: #f8f5ed;
}
.table-row > span {
  min-width: 0;
  font-size: 11px;
}
.po-table .table-row > span:nth-child(2) {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 7px;
}
.po-table .table-row > span:nth-child(2) small {
  grid-column: 2;
}
.table-row b {
  font-size: 11px;
}
.table-row small {
  display: block;
  overflow: hidden;
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.status {
  display: inline-flex;
  min-height: 23px;
  padding: 0 8px;
  align-items: center;
  justify-content: center;
  background: #ece9df;
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}
.state-active,
.import-accepted {
  color: #205c50;
  background: var(--mint);
}
.state-review,
.import-review {
  color: #805118;
  background: #f3dfb8;
}
.state-cancelled,
.import-rejected {
  color: var(--red);
  background: #f2dcd8;
}
.state-completed {
  color: white;
  background: var(--green-2);
}
.import-processing,
.import-queued {
  color: #496067;
  background: #dde7e9;
}
.table-row > .row-arrow,
.progress-row > .row-arrow {
  color: var(--green);
  font-size: 18px;
  text-align: right;
}
.overdue {
  color: var(--red);
  font-weight: 800;
}
.empty-state {
  display: flex;
  min-height: 150px;
  padding: 30px;
  color: var(--muted);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}
.empty-state b {
  color: var(--ink);
  font: 20px var(--serif);
}
.empty-state span {
  margin-top: 8px;
  font-size: 10px;
}

.track-legend {
  display: flex;
  gap: 13px;
}
.track-legend span {
  display: flex;
  color: var(--muted);
  align-items: center;
  gap: 5px;
  font-size: 9px;
}
.track-legend span::before {
  width: 8px;
  height: 8px;
  background: var(--line);
  content: "";
  transform: rotate(45deg);
}
.track-legend .ready::before {
  background: var(--amber);
}
.track-legend .complete::before {
  background: var(--green-2);
}
.track-legend .locked::before {
  background: #c6c4bc;
}
.track-legend .skipped::before {
  border: 1px solid #aaa;
  background: transparent;
}
.progress-row {
  display: grid;
  width: 100%;
  min-height: 94px;
  padding: 14px 20px;
  border-bottom: 1px solid #ebe7dc;
  background: transparent;
  cursor: pointer;
  text-align: left;
  align-items: center;
  grid-template-columns: minmax(220px, 1.25fr) minmax(210px, 1.2fr) minmax(
      110px,
      0.65fr
    ) minmax(100px, 0.55fr) 60px 22px;
  gap: 17px;
}
.progress-row:hover {
  background: #f8f5ed;
}
.progress-identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
}
.progress-identity > span:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
}
.progress-identity b {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.progress-identity small {
  overflow: hidden;
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.stage-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: center;
}
.stage-track::before {
  position: absolute;
  right: 5%;
  left: 5%;
  height: 1px;
  background: var(--line);
  content: "";
}
.stage-track i {
  position: relative;
  z-index: 1;
  display: grid;
  width: 17px;
  height: 17px;
  margin: auto;
  color: var(--muted);
  border: 3px solid var(--card);
  background: #c6c4bc;
  place-content: center;
  font-size: 6px;
  font-style: normal;
  transform: rotate(45deg);
}
.stage-track i span {
  transform: rotate(-45deg);
}
.stage-track .node-ready,
.stage-track .node-partial {
  color: #513311;
  background: var(--amber);
}
.stage-track .node-complete,
.stage-track .node-closed {
  color: white;
  background: var(--green-2);
}
.stage-track .node-skipped {
  border: 1px solid #aaa;
  background: var(--card);
}
.stage-track .node-locked {
  background: #c6c4bc;
}
.current-stage {
  display: flex;
  min-width: 0;
  flex-direction: column;
}
.current-stage small,
.ship-cell small {
  color: var(--muted);
  font-size: 8px;
}
.current-stage b,
.ship-cell b {
  overflow: hidden;
  margin-top: 3px;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.current-stage span {
  overflow: hidden;
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.progress-qty strong {
  font: 19px var(--serif);
}
.progress-qty > span {
  color: var(--muted);
  font-size: 9px;
}
.progress-qty > i {
  display: block;
  height: 3px;
  margin-top: 7px;
  background: var(--paper-deep);
}
.progress-qty > i span {
  display: block;
  height: 100%;
  background: var(--amber);
}
.ship-cell {
  display: flex;
  flex-direction: column;
}

.overlay {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
}
.overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 27, 30, 0.62);
  cursor: default;
  animation: fade-in 0.18s both;
}
.drawer {
  position: relative;
  z-index: 1;
  width: min(600px, 94vw);
  overflow: auto;
  background: var(--card);
  box-shadow: -20px 0 70px rgba(3, 19, 22, 0.22);
  animation: slide-in 0.28s both;
}
.progress-drawer {
  width: min(860px, 96vw);
}
.drawer-loading {
  display: grid;
  min-height: 100vh;
  color: var(--muted);
  place-content: center;
  text-align: center;
}
.drawer-head {
  position: sticky;
  z-index: 5;
  top: 0;
  display: flex;
  min-height: 155px;
  padding: 33px 38px;
  color: white;
  background: var(--green);
  align-items: flex-start;
  justify-content: space-between;
}
.drawer-head p {
  margin: 0 0 9px;
  color: #e7bd71;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
}
.drawer-head h2 {
  margin: 0;
  font: 36px var(--serif);
}
.drawer-head span {
  display: block;
  margin-top: 9px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 10px;
}
.drawer-head button {
  color: white;
  background: transparent;
  cursor: pointer;
  font: 33px / 1 var(--serif);
}
.po-hero {
  padding: 34px 38px;
  border-bottom: 1px solid var(--line);
}
.po-hero > span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
}
.po-hero h3 {
  margin: 10px 0 8px;
  font: 29px / 1.35 var(--serif);
}
.po-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}
.detail-grid {
  display: grid;
  margin: 0;
  padding: 20px 38px;
  grid-template-columns: 1fr 1fr;
}
.detail-grid > div {
  padding: 16px 0;
  border-bottom: 1px solid #ebe7dc;
}
.detail-grid dt {
  color: var(--muted);
  font-size: 9px;
}
.detail-grid dd {
  margin: 7px 0 0;
  font: 15px var(--serif);
}
.alert-box {
  margin: 18px 38px;
  padding: 17px;
  border-left: 3px solid var(--red);
  background: #f4e2df;
}
.alert-box b {
  font-size: 11px;
}
.alert-box p {
  margin: 7px 0 0;
  color: var(--red);
  font-size: 10px;
}
.drawer-actions {
  display: flex;
  padding: 25px 38px;
  gap: 8px;
  flex-wrap: wrap;
}
.drawer-foot {
  padding: 15px 38px 34px;
  color: var(--muted);
  font-size: 9px;
}
.compact-modal,
.wide-modal {
  position: relative;
  z-index: 1;
  width: min(480px, 92vw);
  max-height: 92vh;
  margin: auto;
  padding: 42px;
  overflow: auto;
  background: var(--card);
  animation: rise 0.25s both;
}
.wide-modal {
  width: min(720px, 94vw);
}
.modal-close {
  position: absolute;
  top: 18px;
  right: 20px;
  cursor: pointer;
  background: transparent;
  font: 27px var(--serif);
}
.compact-modal h2,
.wide-modal h2 {
  margin: 12px 0 8px;
  font: 33px var(--serif);
}
.compact-modal > p:not(.section-code),
.wide-modal > p:not(.section-code) {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}
.compact-modal textarea {
  min-height: 110px;
  padding: 10px;
  resize: vertical;
}
.compact-modal > .button,
.wide-modal > .button {
  width: 100%;
  margin-top: 28px;
}
.danger-modal {
  border-top: 5px solid var(--red);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 15px;
}
.form-grid .span-2 {
  grid-column: span 2;
}
.progress-summary {
  display: grid;
  border-bottom: 1px solid var(--line);
  grid-template-columns: repeat(3, 1fr);
}
.progress-summary > div {
  padding: 22px 32px;
  border-right: 1px solid var(--line);
}
.progress-summary small {
  display: block;
  color: var(--muted);
  font-size: 9px;
}
.progress-summary strong {
  display: block;
  margin-top: 7px;
  font: 27px var(--serif);
}
.stage-sections {
  padding: 23px 30px 55px;
  background: var(--paper);
}
.stage-section {
  margin-top: 18px;
  border: 1px solid var(--line);
  background: var(--card);
}
.stage-section > header {
  display: grid;
  min-height: 69px;
  padding: 13px 17px;
  border-bottom: 1px solid var(--line);
  align-items: center;
  grid-template-columns: 39px 1fr auto;
  gap: 12px;
}
.stage-section > header > span {
  display: grid;
  width: 36px;
  height: 36px;
  color: white;
  background: var(--green);
  place-content: center;
  font: 12px var(--serif);
}
.stage-section h3 {
  margin: 0;
  font: 17px var(--serif);
}
.stage-section header p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 9px;
}
.stage-section header > strong {
  font: 15px var(--serif);
}
.field-ledger {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.field-ledger > div {
  display: grid;
  min-height: 65px;
  padding: 12px 15px;
  border-right: 1px solid #ebe7dc;
  border-bottom: 1px solid #ebe7dc;
  align-items: center;
  grid-template-columns: 31px 1fr auto;
  gap: 7px;
}
.field-ledger > div > span {
  color: var(--amber-dark);
  font: 9px var(--serif);
}
.field-ledger b {
  font-size: 10px;
}
.field-ledger strong {
  max-width: 170px;
  overflow: hidden;
  font: 11px var(--serif);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.field-ledger small {
  grid-column: 2 / -1;
  color: var(--muted);
  font-size: 8px;
}
.field-ledger .field-inactive {
  opacity: 0.52;
  background: #efede6;
}

.import-workspace {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 25px;
}
.upload-panel {
  display: grid;
  padding: 30px;
  border: 1px solid var(--line);
  background: var(--card);
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.upload-panel > div {
  grid-column: span 2;
}
.upload-panel h2,
.document-filter h2,
.document-types h2 {
  margin: 8px 0 6px;
  font: 27px var(--serif);
}
.upload-panel p:not(.section-code) {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}
.upload-panel > :where(.drop-zone) {
  position: relative;
  display: grid;
  min-height: 135px;
  border: 1px dashed #a9a598;
  cursor: pointer;
  grid-column: span 2;
  place-content: center;
  text-align: center;
}
.drop-zone:hover,
.drop-zone.is-dragging {
  background: #f6f3eb;
}
.drop-zone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.drop-zone .drop-icon {
  display: grid;
  width: 35px;
  height: 35px;
  margin: auto auto 10px;
  color: white;
  background: var(--green);
  place-content: center;
  font-size: 18px;
}
.drop-zone b {
  font-size: 12px;
}
.drop-zone small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
}
.upload-panel > button {
  grid-column: 2;
}
.import-rules {
  padding: 30px;
  color: white;
  background: var(--green);
}
.import-rules .section-code {
  color: #e7bd71;
}
.import-rules h3 {
  margin: 10px 0 23px;
  font: 24px var(--serif);
}
.import-rules ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
.import-rules li {
  display: grid;
  min-height: 50px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  color: rgba(255, 255, 255, 0.62);
  align-items: center;
  grid-template-columns: 37px 1fr;
  font-size: 10px;
}
.import-rules li span {
  color: #e7bd71;
  font: 10px var(--serif);
}
.import-history {
  margin-top: 26px;
  border: 1px solid var(--line);
  background: var(--card);
}
.import-history .filter-bar {
  border: 0;
  border-bottom: 1px solid var(--line);
  grid-template-columns: 1fr 1fr auto;
}
.import-list article {
  display: grid;
  min-height: 66px;
  padding: 12px 20px;
  border-bottom: 1px solid #ebe7dc;
  align-items: center;
  grid-template-columns: 49px 1fr 80px 100px 70px 65px;
  gap: 12px;
}
.import-review-link {
  min-height: 31px;
  color: white;
  background: var(--green);
  cursor: pointer;
  font-size: 9px;
  font-weight: 800;
}
.import-review-modal {
  position: relative;
  z-index: 1;
  width: min(1060px, 96vw);
  max-height: 96vh;
  margin: auto;
  overflow: auto;
  background: #f3f0e7;
  animation: rise 0.25s both;
}
.import-review-modal > header {
  position: sticky;
  z-index: 4;
  top: 0;
  padding: 28px 36px;
  color: white;
  background: var(--green);
}
.import-review-modal > header p,
.import-review-modal > header h2,
.import-review-modal > header span {
  margin: 0;
}
.import-review-modal > header p {
  color: #e7bd71;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
}
.import-review-modal > header h2 {
  max-width: 90%;
  margin-top: 8px;
  overflow: hidden;
  font: 25px var(--serif);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.import-review-modal > header span {
  display: block;
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 9px;
}
.import-review-modal > header .modal-close {
  color: white;
}
.review-bulk {
  display: grid;
  padding: 15px 36px;
  border-bottom: 1px solid var(--line);
  background: #e9e4d8;
  grid-template-columns: auto 160px auto 110px auto;
  align-items: end;
  gap: 10px;
}
.review-bulk label,
.import-review-modal > footer label {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.review-bulk span,
.import-review-modal > footer label span,
.review-grid label span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
}
.review-bulk input,
.review-bulk button,
.import-review-modal > footer input,
.review-grid input {
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid #c9c4b6;
  background: var(--card);
}
.review-bulk button {
  cursor: pointer;
  font-size: 9px;
  font-weight: 800;
}
.review-drafts {
  padding: 22px 36px;
}
.review-draft {
  margin-bottom: 12px;
  border: 1px solid var(--line);
  background: var(--card);
}
.review-draft summary {
  display: grid;
  min-height: 61px;
  padding: 10px 16px;
  cursor: pointer;
  align-items: center;
  grid-template-columns: 35px 1fr auto;
  gap: 10px;
}
.review-draft summary > span {
  color: var(--amber);
  font: 18px var(--serif);
}
.review-draft summary div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.review-draft summary small,
.review-draft summary i {
  color: var(--muted);
  font-size: 8px;
  font-style: normal;
}
.review-issues {
  padding: 10px 16px;
  border-top: 1px solid #ead9b7;
  background: #fbf3e3;
}
.review-issues p {
  margin: 3px 0;
  color: #72521e;
  font-size: 9px;
}
.review-issues b {
  margin-right: 7px;
}
.review-grid {
  display: grid;
  padding: 18px 16px 22px;
  border-top: 1px solid var(--line);
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.review-grid label {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
}
.review-grid .span-2 {
  grid-column: span 2;
}
.review-grid .important-field input {
  border-color: var(--amber);
  background: #fffaf0;
}
.import-review-modal > footer {
  position: sticky;
  z-index: 4;
  bottom: 0;
  display: grid;
  padding: 18px 36px;
  border-top: 1px solid var(--line);
  background: var(--card);
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 18px;
}
.import-review-modal > footer > div {
  display: flex;
  align-items: center;
  gap: 13px;
}
.import-review-modal > footer small {
  max-width: 220px;
  color: var(--muted);
  font-size: 8px;
}
.file-type {
  display: grid;
  width: 42px;
  height: 31px;
  color: var(--red);
  border: 1px solid var(--red);
  place-content: center;
  font-size: 8px;
  font-weight: 900;
}
.import-list article > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
}
.import-list b {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.import-list small,
.import-list article > span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
}

.import-batch-modal {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(1320px, 97vw);
  max-height: 96vh;
  overflow: hidden;
  background: #f3f0e7;
  animation: rise 0.25s both;
  flex-direction: column;
}
.import-batch-modal [hidden] {
  display: none;
}
.import-batch-modal > :not(.import-batch-files) {
  flex-shrink: 0;
}
.import-batch-modal > header {
  position: relative;
  display: flex;
  min-height: 104px;
  padding: 24px 34px;
  color: white;
  background: var(--green);
  align-items: center;
}
.import-batch-modal > header p,
.import-batch-modal > header h2,
.import-batch-modal > header span {
  margin: 0;
}
.import-batch-modal > header p {
  color: #e7bd71;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
}
.import-batch-modal > header h2 {
  margin-top: 7px;
  font: 28px var(--serif);
}
.import-batch-modal > header span {
  display: block;
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 9px;
}
.import-batch-modal > header .modal-close {
  color: white;
}
.import-batch-files {
  min-height: 100px;
  flex: 1 1 auto;
  overflow: auto;
  padding: 22px 28px;
}

.import-batch-result {
  margin: 20px 28px 0;
  padding: 18px 22px;
  color: #185444;
  background: #eaf5ef;
  border: 1px solid #98c6ae;
  font-weight: 700;
}

.import-batch-result.has-warning {
  color: #7a4b0b;
  background: #fff5e4;
  border-color: #d6b980;
}

.import-saved-orders {
  margin: 0;
  padding: 12px 24px;
  list-style: none;
}

.import-saved-orders li {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding: 6px 0;
}
.import-batch-file {
  margin-bottom: 17px;
  border: 1px solid var(--line);
  background: var(--card);
}
.import-batch-file > header {
  display: grid;
  min-height: 66px;
  padding: 12px 17px;
  border-bottom: 1px solid var(--line);
  align-items: center;
  grid-template-columns: 50px minmax(180px, 1fr) auto auto;
  gap: 12px;
}
.import-batch-file > header > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
}
.import-batch-file > header b,
.import-batch-file > header small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.import-batch-file > header b {
  font-size: 11px;
}
.import-batch-file > header small {
  color: var(--muted);
  font-size: 8px;
}
.import-batch-file > header > i {
  display: flex;
  min-width: 70px;
  color: var(--muted);
  align-items: center;
  gap: 6px;
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
}
.import-batch-file > header .button {
  min-height: 34px;
  padding: 0 15px;
  font-size: 9px;
}
.mini-spinner,
.import-batch-waiting > span {
  display: inline-block;
  width: 13px;
  height: 13px;
  border: 2px solid #c7d0cd;
  border-top-color: var(--green-2);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.import-batch-waiting {
  display: flex;
  min-height: 82px;
  color: var(--muted);
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 9px;
}
.import-batch-error,
.import-batch-warning {
  margin: 0;
  padding: 10px 17px;
  font-size: 9px;
  line-height: 1.6;
}
.import-batch-error {
  color: #8d3227;
  background: #f6e2de;
}
.import-batch-warning {
  color: #72521e;
  background: #fbf3e3;
}
.import-batch-issues {
  display: flex;
  padding: 8px 17px;
  border-top: 1px solid #eee8db;
  background: #faf7ef;
  flex-wrap: wrap;
  gap: 6px;
}
.import-batch-issues span {
  padding: 5px 7px;
  color: #72521e;
  background: #f2e5ca;
  font-size: 8px;
}
.import-batch-issues .issue-warning,
.import-batch-issues .issue-review {
  color: #5e605d;
  background: #e8e5dc;
}
.import-preview-table {
  overflow-x: auto;
}
.import-preview-table table {
  width: 100%;
  min-width: 2350px;
  border-collapse: collapse;
  text-align: left;
}
.import-preview-table th {
  padding: 9px 12px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  background: #f1eee5;
  font-size: 8px;
  font-weight: 800;
  white-space: nowrap;
}
.import-preview-table td {
  max-width: 260px;
  padding: 12px;
  border-bottom: 1px solid #eee9dd;
  font-size: 9px;
  vertical-align: middle;
}
.import-preview-table td b,
.import-preview-table td small {
  display: block;
}
.import-preview-table td b {
  font-size: 10px;
}
.import-preview-table td small {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.4;
}
.import-batch-accepted > header {
  border-left: 3px solid var(--green-2);
}
.import-batch-rejected > header,
.import-batch-file.has-error > header {
  border-left: 3px solid var(--red);
}
.import-batch-modal > footer {
  display: flex;
  min-height: 70px;
  padding: 14px 28px;
  border-top: 1px solid var(--line);
  background: var(--card);
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.import-batch-modal > footer small {
  max-width: 620px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.6;
}

.document-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.8fr) minmax(480px, 1.2fr);
  gap: 25px;
  align-items: start;
}
.document-filter,
.document-types {
  padding: 30px;
  border: 1px solid var(--line);
  background: var(--card);
}
.generation-history {
  margin-top: 25px;
  border: 1px solid var(--line);
  background: var(--card);
}
.generation-history > header {
  display: flex;
  padding: 22px 25px;
  border-bottom: 1px solid var(--line);
  align-items: center;
  justify-content: space-between;
}
.generation-history h2 {
  margin: 6px 0 0;
  font: 24px var(--serif);
}
.comments-import {
  display: grid;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  background: #f3f0e7;
  grid-template-columns: 1fr 130px 130px;
  align-items: center;
  gap: 12px;
}
.comments-import > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.comments-import span {
  color: var(--muted);
  font-size: 9px;
}
.comments-import label {
  position: relative;
  display: grid;
  min-height: 35px;
  border: 1px dashed #aaa496;
  cursor: pointer;
  place-content: center;
}
.comments-import label input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.generation-list article {
  display: grid;
  min-height: 65px;
  padding: 12px 20px;
  border-bottom: 1px solid #ebe7dc;
  grid-template-columns: 1fr 80px minmax(80px, 0.5fr) 110px;
  align-items: center;
  gap: 12px;
}
.generation-list article > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
}
.generation-list small,
.generation-list article > span {
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.generation-list button {
  min-height: 33px;
  color: white;
  background: var(--green);
  cursor: pointer;
  font-size: 9px;
  font-weight: 800;
}
.generation-list button:disabled {
  color: var(--muted);
  background: #e7e3d9;
  cursor: default;
}
.generation-completed {
  color: #205c50;
  background: var(--mint);
}
.generation-failed {
  color: var(--red);
  background: #f2dcd8;
}
.generation-queued,
.generation-processing,
.generation-validating {
  color: #496067;
  background: #dde7e9;
}
.document-filter .form-grid {
  margin-top: 25px;
}
.document-filter > .button {
  margin-top: 24px;
}
.selection-summary {
  display: flex;
  margin-top: 22px;
  padding: 17px;
  border-left: 3px solid var(--amber);
  background: #f3eee2;
  flex-direction: column;
}
.selection-summary b {
  font: 15px var(--serif);
}
.selection-summary span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.6;
}
.document-selection-empty {
  margin-top: 14px;
  padding: 18px;
  color: var(--muted);
  border: 1px dashed var(--line);
  font-size: 10px;
  line-height: 1.6;
  text-align: center;
}
.document-selection-head {
  display: flex;
  margin-top: 14px;
  padding: 10px 2px;
  align-items: center;
  justify-content: space-between;
}
.document-selection-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.document-selection-actions .button,
.document-selection-pagination .button {
  min-height: 32px;
  padding: 0 10px;
  font-size: 9px;
}
.document-selection-pagination {
  display: flex;
  margin-top: 9px;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.document-selection-pagination span {
  min-width: 86px;
  color: var(--muted);
  font-size: 9px;
  text-align: center;
}
.document-selection-head label,
.document-selection-list label {
  flex-direction: row;
  align-items: center;
}
.document-selection-head label {
  cursor: pointer;
  gap: 8px;
}
.document-selection-head small {
  color: var(--muted);
  font-size: 9px;
}
.document-filter input[type="checkbox"] {
  width: 15px;
  height: 15px;
  padding: 0;
  accent-color: var(--green-2);
}
.document-selection-list {
  max-height: 260px;
  overflow: auto;
  border: 1px solid var(--line);
  background: #faf8f1;
}
.document-selection-list label {
  display: grid;
  min-height: 55px;
  padding: 8px 10px;
  border-bottom: 1px solid #e8e3d7;
  cursor: pointer;
  grid-template-columns: 15px 42px 48px minmax(0, 1fr) auto;
  gap: 9px;
}
.document-selection-list label:hover {
  background: white;
}
.document-selection-list i {
  padding: 5px 4px;
  color: white;
  background: var(--green);
  font-size: 7px;
  font-style: normal;
  text-align: center;
}
.document-selection-list label > span {
  display: flex;
  overflow: hidden;
  color: var(--ink);
  flex-direction: column;
  gap: 3px;
}
.document-selection-list b,
.document-selection-list small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.document-selection-list b {
  font-size: 10px;
}
.document-selection-list small,
.document-selection-list time {
  color: var(--muted);
  font-size: 8px;
}
.document-selection-list time {
  white-space: nowrap;
}
.document-types > button {
  display: grid;
  width: 100%;
  min-height: 69px;
  padding: 12px 15px;
  border-top: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  text-align: left;
  align-items: center;
  grid-template-columns: 35px 1fr auto;
  gap: 12px;
}
.document-types > button:hover:not(:disabled) {
  background: #f5f2e9;
}
.document-types > button:disabled {
  cursor: not-allowed;
}
.document-types > button > span {
  color: var(--amber-dark);
  font: 11px var(--serif);
}
.document-types > button > div {
  display: flex;
  flex-direction: column;
}
.document-types b {
  font: 14px var(--serif);
}
.document-types small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
}
.document-types i {
  color: var(--muted);
  font-size: 9px;
  font-style: normal;
}
.document-types i.available {
  padding: 6px 8px;
  color: #205c50;
  background: var(--mint);
  font-weight: 800;
}

.business-modal {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(1040px, 96vw);
  max-height: 94vh;
  overflow: auto;
  background: var(--card);
  box-shadow: 0 30px 90px rgba(3, 19, 22, 0.3);
  animation: rise 0.25s both;
  grid-template-columns: minmax(330px, 0.8fr) minmax(440px, 1.2fr);
}
.business-modal > header {
  position: sticky;
  z-index: 3;
  top: 0;
  display: flex;
  min-height: 104px;
  padding: 24px 34px;
  color: white;
  background: var(--green);
  grid-column: 1 / -1;
  align-items: center;
}
.business-modal > header h2 {
  margin: 7px 0 4px;
  font: 30px var(--serif);
}
.business-modal > header span {
  color: #c3d3cd;
  font-size: 10px;
}
.business-modal > header .section-code {
  color: #e2b966;
}
.business-modal > header .modal-close {
  color: white;
}
.business-status {
  display: flex;
  padding: 14px 34px;
  grid-column: 1 / -1;
  align-items: center;
  gap: 13px;
}
.business-status.has-issues {
  color: #6d4012;
  border-bottom: 1px solid #e5d2aa;
  background: #f6ecd7;
}
.business-status.ready {
  color: #205c50;
  border-bottom: 1px solid #bfd4c9;
  background: var(--mint);
}
.business-status b {
  font: 15px var(--serif);
  white-space: nowrap;
}
.business-status span {
  overflow: hidden;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.business-common,
.business-po {
  min-width: 0;
  padding: 27px 30px;
}
.business-common {
  border-right: 1px solid var(--line);
  background: #f4f1e8;
}
.business-common h3,
.business-po h3 {
  margin: 7px 0 18px;
  font: 21px var(--serif);
}
.business-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}
.business-form-grid .span-2 {
  grid-column: span 2;
}
.business-form-grid label,
.business-po-head label {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 6px;
}
.business-form-grid label > span,
.business-po-head label > span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
}
.business-form-grid label > span small {
  display: block;
  margin-top: 3px;
  font-weight: 500;
}
.business-form-grid input,
.business-form-grid select,
.business-form-grid textarea,
.business-po-head select {
  width: 100%;
  min-height: 39px;
  padding: 9px 10px;
  border: 1px solid #c9c4b6;
  border-radius: 0;
  outline: 0;
  background: white;
  font-size: 10px;
}
.business-form-grid textarea {
  min-height: 92px;
  resize: vertical;
  line-height: 1.6;
}
.business-form-grid input:focus,
.business-form-grid select:focus,
.business-form-grid textarea:focus,
.business-po-head select:focus {
  border-color: var(--green-2);
  box-shadow: 0 0 0 1px var(--green-2);
}
.business-common #business-common-form > .button,
.business-po > .button {
  width: 100%;
  margin-top: 17px;
}
.profile-creators {
  margin-top: 18px;
  border-top: 1px solid var(--line);
}
.profile-creators details {
  border-bottom: 1px solid var(--line);
}
.profile-creators summary {
  padding: 13px 2px;
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
}
.profile-creators form {
  padding: 0 0 16px;
}
.profile-creators form > .button {
  width: 100%;
  margin-top: 12px;
}
.business-po-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}
.business-po-head label {
  width: min(290px, 55%);
}
.business-po-meta {
  display: flex;
  margin: 0 0 18px;
  padding: 10px 12px;
  color: var(--ink-soft);
  border-left: 3px solid var(--amber);
  background: #f5f1e7;
  font-size: 9px;
  gap: 14px;
}
.business-modal > footer {
  position: sticky;
  z-index: 2;
  bottom: 0;
  display: flex;
  padding: 16px 30px;
  border-top: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.96);
  grid-column: 1 / -1;
  justify-content: flex-end;
  gap: 9px;
}
.preflight-issues {
  display: grid;
  margin-top: 20px;
  gap: 8px;
}
.preflight-issues article {
  display: flex;
  padding: 13px;
  border-left: 3px solid var(--red);
  background: #f7e8e3;
  flex-direction: column;
  gap: 5px;
}
.preflight-issues article span {
  color: var(--muted);
  font-size: 9px;
}

#toast-root {
  position: fixed;
  z-index: 150;
  top: 20px;
  right: 20px;
}
.toast {
  display: grid;
  min-width: 310px;
  max-width: 430px;
  padding: 16px 18px;
  color: white;
  border-left: 4px solid var(--amber);
  background: var(--green);
  box-shadow: 0 15px 40px rgba(3, 19, 22, 0.22);
  animation: toast-in 0.25s both;
  grid-template-columns: 62px 1fr;
  gap: 10px;
}
.toast.error {
  border-color: #f0a89d;
  background: var(--red);
}
.toast b {
  font-size: 10px;
}
.toast span {
  font-size: 11px;
  line-height: 1.5;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fade-in {
  from {
    opacity: 0;
  }
}
@keyframes slide-in {
  from {
    transform: translateX(100%);
  }
}
@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
}
@keyframes track-reveal {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

/* PO 图片预留、节点总表与可编辑导入表保持现有纸张台账风格。 */
.customer-stamp {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.urgent-identity {
  min-width: 0;
  align-items: flex-start;
  gap: 4px;
}
.urgent-identity .customer-stamp {
  max-width: 100%;
}
.po-image-placeholder {
  display: grid;
  flex: 0 0 auto;
  color: #8a877d;
  border: 1px dashed #b9b4a7;
  background: #f3f0e7;
  place-content: center;
  text-align: center;
}
.po-image-placeholder i {
  color: var(--amber-dark);
  font-size: 7px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.08em;
}
.po-image-placeholder small {
  display: block;
  margin: 3px 0 0;
  color: #8a877d;
  font-size: 6px;
  line-height: 1;
}
.po-image-small {
  width: 38px;
  height: 38px;
}
.po-image-medium {
  width: 62px;
  height: 62px;
}
.po-image-large {
  width: 92px;
  height: 92px;
}
.po-hero-with-image {
  display: flex;
  align-items: center;
  gap: 20px;
}
.po-hero-with-image > div {
  min-width: 0;
}
.node-matrix-scroll {
  width: 100%;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
}
.node-matrix {
  width: 100%;
  min-width: 1960px;
  border-collapse: collapse;
  table-layout: fixed;
}
.node-matrix th,
.node-matrix td {
  height: 64px;
  padding: 7px;
  border-right: 1px solid #e3ded2;
  border-bottom: 1px solid #e8e3d7;
  text-align: center;
  vertical-align: middle;
}
.node-matrix th {
  height: 52px;
  color: var(--muted);
  background: #eeebe2;
  font-size: 8px;
  font-weight: 800;
}
.node-matrix th:first-child {
  width: 58px;
}
.node-matrix th:nth-child(2) {
  width: 220px;
}
.node-matrix th:last-child {
  width: 100px;
}
.node-matrix th span {
  display: block;
  margin-bottom: 4px;
  color: var(--amber-dark);
  font: 12px var(--serif);
}
.node-matrix button {
  width: 100%;
  min-height: 50px;
  background: transparent;
  cursor: pointer;
}
.matrix-identity {
  display: flex;
  min-width: 0;
  text-align: left;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.matrix-identity b,
.matrix-identity small {
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.matrix-identity small,
.matrix-state small,
.matrix-state i {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 7px;
  font-style: normal;
}
.matrix-state b {
  font-size: 8px;
}
.matrix-ready,
.matrix-partial {
  background: #fff5df;
}
.matrix-complete,
.matrix-closed {
  background: #e3f0e9;
}
.matrix-locked {
  background: #f1f0eb;
}
.matrix-skipped {
  background: #f6f4ee;
}
.progress-card-section > summary {
  padding: 13px 20px;
  color: var(--green);
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  font-size: 9px;
  font-weight: 800;
}
.progress-drawer-head {
  gap: 15px;
}
.progress-drawer-head > div {
  min-width: 0;
  flex: 1;
}
.drawer-head .po-image-placeholder,
.po-hero .po-image-placeholder {
  display: grid;
  margin: 0;
  color: #8a877d;
}
.po-extra-data {
  margin: 0 38px 22px;
  border: 1px solid var(--line);
  background: #f6f3eb;
}
.po-extra-data summary {
  padding: 12px 14px;
  color: var(--green);
  cursor: pointer;
  font-size: 9px;
  font-weight: 800;
}
.po-extra-data pre {
  max-height: 220px;
  margin: 0;
  padding: 14px;
  overflow: auto;
  border-top: 1px solid var(--line);
  white-space: pre-wrap;
  font: 9px / 1.6 var(--mono);
}
.po-edit-heading {
  display: flex;
  margin-bottom: 24px;
  align-items: center;
  gap: 16px;
}
.po-edit-heading h2,
.po-edit-heading p {
  margin: 0;
}
.po-edit-heading h2 {
  margin-top: 5px;
}
.po-edit-heading span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
}
.po-edit-modal textarea {
  min-height: 86px;
  padding: 10px;
  border: 1px solid #c9c4b6;
  resize: vertical;
}
.import-preview-table th small {
  color: var(--amber-dark);
  font-size: 7px;
}
.import-preview-table td:first-child,
.import-preview-table th:first-child {
  width: 58px;
}
.import-preview-table .import-wide-cell {
  min-width: 210px;
}
.import-cell-input {
  width: 100%;
  min-width: 108px;
  height: 34px;
  padding: 0 8px;
  border: 1px solid #cbc6b9;
  background: white;
  font-size: 9px;
}
.import-cell-input:focus {
  border-color: var(--green);
  outline: 1px solid var(--green);
}
.import-extra {
  position: relative;
}
.import-extra summary {
  color: var(--green);
  cursor: pointer;
  font-size: 8px;
  font-weight: 800;
}
.import-extra pre {
  position: absolute;
  z-index: 5;
  right: 0;
  width: 300px;
  max-height: 240px;
  margin: 5px 0 0;
  padding: 10px;
  overflow: auto;
  border: 1px solid var(--line);
  background: white;
  box-shadow: 0 12px 30px rgba(3, 19, 22, 0.14);
  white-space: pre-wrap;
  font: 8px / 1.5 var(--mono);
}

.compact-po-identity {
  display: flex;
  margin: 12px 0;
  align-items: center;
  gap: 10px;
}
.compact-po-identity p {
  margin: 0;
}

@media (max-width: 1180px) {
  :root {
    --sidebar: 190px;
  }
  .main-nav a {
    padding-left: 20px;
  }
  .overview-grid {
    grid-template-columns: 1fr;
  }
  .filter-bar {
    grid-template-columns: repeat(3, 1fr);
  }
  .progress-row {
    grid-template-columns: minmax(200px, 1fr) minmax(190px, 1fr) minmax(
        105px,
        0.6fr
      ) 80px 55px 20px;
    gap: 12px;
  }
  .progress-qty > span,
  .current-stage span {
    display: none;
  }
}

@media (max-width: 860px) {
  .login-screen {
    grid-template-columns: 1fr;
  }
  .login-story {
    min-height: 390px;
    padding: 45px 32px;
  }
  .login-story h1 {
    font-size: 70px;
  }
  .login-story h1 span {
    width: 82px;
    height: 82px;
  }
  .login-lead {
    font-size: 20px;
  }
  .login-track {
    margin-top: 38px;
  }
  .login-footnote {
    display: none;
  }
  .login-form-wrap {
    padding: 55px 28px;
  }
  .app-shell {
    padding-left: 0;
  }
  .sidebar {
    width: 240px;
    transform: translateX(-100%);
    transition: transform 0.22s;
  }
  .menu-open .sidebar {
    transform: translateX(0);
    box-shadow: 15px 0 50px rgba(3, 19, 22, 0.25);
  }
  .mobile-menu {
    display: block;
    color: var(--green);
    background: transparent;
    font-size: 11px;
    font-weight: 800;
  }
  .topbar > div {
    display: none;
  }
  .workspace {
    padding-top: 25px;
  }
  .page-heading {
    min-height: 100px;
  }
  .page-heading h1 {
    font-size: 40px;
  }
  .metric-grid {
    grid-template-columns: 1fr 1fr;
  }
  .overview-grid {
    grid-template-columns: 1fr;
  }
  .filter-bar {
    grid-template-columns: 1fr 1fr;
  }
  .filter-actions {
    grid-column: span 2;
  }
  .table-head {
    display: none;
  }
  .table-row {
    grid-template-columns: 1fr 1fr 60px;
    gap: 12px;
  }
  .table-row > span:nth-child(3),
  .table-row > span:nth-child(4) {
    display: none;
  }
  .table-row > span:nth-child(5) {
    grid-column: 2;
  }
  .table-row > span:nth-child(6) {
    grid-column: 3;
    grid-row: 1;
  }
  .table-row > span:nth-child(7) {
    grid-column: 3;
    grid-row: 2;
  }
  .progress-row {
    grid-template-columns: 1fr 70px 20px;
  }
  .stage-track {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .current-stage,
  .progress-qty {
    display: none;
  }
  .ship-cell {
    grid-column: 2;
    grid-row: 1;
  }
  .progress-row > .row-arrow {
    grid-column: 3;
    grid-row: 1;
  }
  .import-workspace,
  .document-layout {
    grid-template-columns: 1fr;
  }
  .business-modal {
    grid-template-columns: 1fr;
  }
  .business-common {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 560px) {
  .topbar {
    padding: 0 18px;
  }
  .workspace {
    padding: 18px 15px 50px;
  }
  .page-heading {
    min-height: 95px;
    margin-bottom: 23px;
    align-items: flex-end;
  }
  .page-heading small,
  .heading-rule {
    display: none;
  }
  .heading-actions {
    gap: 6px;
  }
  .heading-action {
    min-height: 38px;
    padding: 0 12px;
    font-size: 10px;
  }
  .metric-grid {
    grid-template-columns: 1fr 1fr;
  }
  .metric-card {
    min-height: 126px;
    padding: 18px;
  }
  .metric-card strong {
    font-size: 36px;
  }
  .metric-card small {
    display: block;
    max-width: 100px;
  }
  .urgent-row {
    grid-template-columns: 60px 1fr auto;
  }
  .urgent-row .customer-stamp {
    display: none;
  }
  .urgent-row > strong {
    font-size: 15px;
  }
  .filter-bar {
    padding: 13px;
    grid-template-columns: 1fr 1fr;
  }
  .filter-bar .search-field {
    grid-column: span 2;
  }
  .results-panel {
    border-right: 0;
    border-left: 0;
  }
  .table-row {
    min-height: 92px;
    padding: 14px 8px;
    grid-template-columns: 1fr 90px;
  }
  .table-row > span:nth-child(2) {
    grid-column: 1;
  }
  .table-row > span:nth-child(5) {
    grid-column: 2;
    grid-row: 2;
  }
  .table-row > span:nth-child(6) {
    grid-column: 2;
    grid-row: 1;
  }
  .table-row > span:nth-child(7) {
    display: none;
  }
  .track-legend {
    display: none;
  }
  .progress-row {
    padding: 14px 9px;
  }
  .stage-track i {
    width: 14px;
    height: 14px;
    font-size: 5px;
  }
  .drawer-head {
    padding: 27px 22px;
  }
  .drawer-head h2 {
    font-size: 27px;
  }
  .po-hero,
  .drawer-actions {
    padding-right: 22px;
    padding-left: 22px;
  }
  .detail-grid {
    padding-right: 22px;
    padding-left: 22px;
  }
  .compact-modal,
  .wide-modal {
    padding: 35px 23px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid .span-2 {
    grid-column: auto;
  }
  .business-modal > header,
  .business-status,
  .business-common,
  .business-po,
  .business-modal > footer {
    padding-right: 19px;
    padding-left: 19px;
  }
  .business-status {
    align-items: flex-start;
    flex-direction: column;
  }
  .business-status span {
    overflow: visible;
    white-space: normal;
  }
  .business-form-grid {
    grid-template-columns: 1fr;
  }
  .business-form-grid .span-2 {
    grid-column: auto;
  }
  .business-po-head {
    align-items: stretch;
    flex-direction: column;
  }
  .business-po-head label {
    width: 100%;
  }
  .progress-summary > div {
    padding: 17px;
  }
  .stage-sections {
    padding: 14px 12px 45px;
  }
  .field-ledger {
    grid-template-columns: 1fr;
  }
  .field-ledger > div {
    border-right: 0;
  }
  .upload-panel {
    padding: 22px;
    grid-template-columns: 1fr;
  }
  .upload-panel > div,
  .drop-zone,
  .upload-panel > button {
    grid-column: auto;
  }
  .import-list article {
    grid-template-columns: 46px 1fr 65px 60px;
  }
  .import-list article > span:nth-of-type(2),
  .import-list article > span:nth-of-type(3) {
    display: none;
  }
  .import-review-modal > header,
  .review-drafts,
  .import-review-modal > footer {
    padding-right: 18px;
    padding-left: 18px;
  }
  .review-bulk {
    padding: 14px 18px;
    grid-template-columns: 1fr 1fr;
  }
  .review-bulk > b {
    grid-column: span 2;
  }
  .review-grid {
    grid-template-columns: 1fr 1fr;
  }
  .import-batch-modal > header,
  .import-batch-files,
  .import-batch-modal > footer {
    padding-right: 17px;
    padding-left: 17px;
  }
  .import-batch-file > header {
    grid-template-columns: 46px minmax(0, 1fr) auto;
  }
  .import-batch-file > header > i {
    grid-column: 2;
  }
  .import-batch-file > header .button {
    grid-column: 3;
    grid-row: 1 / span 2;
  }
  .import-batch-modal > footer {
    align-items: stretch;
    flex-direction: column;
  }
  .import-review-modal > footer {
    grid-template-columns: 1fr;
  }
  .document-filter,
  .document-types {
    padding: 22px;
  }
  .generation-list article {
    grid-template-columns: 1fr 70px 90px;
  }
  .generation-list article > span {
    display: none;
  }
  .comments-import {
    grid-template-columns: 1fr 1fr;
  }
  .comments-import > div {
    grid-column: span 2;
  }
  .document-types > button {
    grid-template-columns: 26px 1fr;
  }
  .document-types > button i {
    grid-column: 2;
  }
  .toast {
    min-width: 0;
    width: calc(100vw - 30px);
  }
  #toast-root {
    top: 15px;
    right: 15px;
    left: 15px;
  }
}

@media (max-width: 860px) {
  .po-table {
    overflow-x: auto;
  }
  .po-table .table-head {
    display: grid;
  }
  .po-table .table-head,
  .po-table .table-row {
    min-width: 900px;
    grid-template-columns: 58px 1.25fr 1.55fr 0.5fr 0.55fr 0.8fr 0.55fr 28px;
  }
  .po-table .table-row > span {
    display: block;
    grid-column: auto;
    grid-row: auto;
  }
  .po-table .table-row > span:nth-child(2) {
    display: grid;
  }
  .node-matrix-scroll {
    margin-bottom: 0;
  }
}

@media (max-width: 560px) {
  .urgent-row {
    grid-template-columns: 38px 56px minmax(0, 1fr);
    gap: 9px;
  }
  .urgent-row > strong {
    display: none;
  }
  .po-extra-data {
    margin-right: 22px;
    margin-left: 22px;
  }
}

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

.test-po-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 0.35rem;
  padding: 0.08rem 0.42rem;
  border: 1px solid #b66a18;
  border-radius: 999px;
  background: #fff5e6;
  color: #8a4900;
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 700;
  vertical-align: middle;
}

.test-po-option {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  border: 1px solid #d7b27b;
  background: #fffaf1;
}

.test-po-option input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
}

.test-po-option small {
  color: #72532b;
}

.progress-access-notice {
  display: flex;
  margin: -8px 0 14px;
  padding: 10px 14px;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  background: var(--paper);
}
.progress-access-notice b {
  flex: none;
  font-size: 10px;
  letter-spacing: 0.04em;
}
.progress-access-notice span {
  color: var(--muted);
  font-size: 10px;
}
.progress-access-notice.notice-readonly {
  border-left: 4px solid var(--amber);
}
.progress-access-notice.notice-admin {
  border-left: 4px solid var(--ink);
}
.progress-access-notice.notice-global,
.progress-access-notice.notice-mine {
  border-left: 4px solid var(--green-2);
}
.task-access {
  display: inline-flex;
  margin-top: 5px;
  padding: 2px 6px;
  border: 1px solid var(--line);
  font-size: 8px;
  font-style: normal;
  font-weight: 700;
}
.task-access.can-edit {
  border-color: var(--green-2);
  color: var(--green-2);
}
.task-access.read-only {
  color: var(--muted);
}

.public-invitation-screen {
  display: grid;
  min-height: 100vh;
  padding: 32px;
  place-items: center;
  color: #f3f0e7;
  background: #173a40;
}

.public-invitation-screen > section {
  box-sizing: border-box;
  width: min(620px, 100%);
  padding: clamp(28px, 6vw, 56px);
  color: #18292c;
  background: #fffdf8;
  box-shadow: 0 24px 80px rgba(5, 23, 26, 0.32);
}

.public-invitation-screen h1 {
  margin: 12px 0 18px;
  font-size: clamp(36px, 7vw, 64px);
}

.public-invitation-screen p {
  color: #667270;
  line-height: 1.8;
}

.public-invitation-screen label {
  display: grid;
  gap: 8px;
  margin: 28px 0 14px;
}

.public-invitation-screen input {
  box-sizing: border-box;
  width: 100%;
  padding: 13px;
  border: 1px solid #b9b19f;
  background: #f8f5ed;
}

.public-invitation-screen small {
  display: block;
  margin-top: 18px;
  color: #75807d;
}
