:root {
  --ink:#23352f;
  --muted:#84918a;
  --green:#234f41;
  --green-dark:#193b34;
  --line:#e5e8e2;
  --paper:#f6f7f3;
  --accent:#d9e9c8;
  --radius:15px;
  --shadow:0 4px 16px #2c3e2d05;
  font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;
  color:var(--ink);
  font-size:14px
}
* {
  box-sizing:border-box
}
body {
  margin:0;
  background:var(--paper)
}
button,input,select,textarea {
  font:inherit
}
button,a,input,select,textarea {
  outline-offset:4px
}
button {
  cursor:pointer
}
a {
  color:inherit;
  text-decoration:none
}
button:disabled {
  cursor:wait;
  opacity:.55
}
[hidden] {
  display:none!important
}
h1,h2,h3,p {
  margin:0
}
button {
  border:0
}
svg {
  width:100%;
  height:100%
}
.sidebar {
  width:226px;
  position:fixed;
  inset:0 auto 0 0;
  background:var(--green-dark);
  color:#e9f0e7;
  padding:31px 19px 18px;
  display:flex;
  flex-direction:column;
  z-index:5
}
.brand {
  display:flex;
  gap:12px;
  align-items:center;
  padding:0 12px 43px;
  font-size:25px;
  font-weight:650;
  letter-spacing:3px
}
.brand small {
  display:block;
  font-size:8px;
  letter-spacing:2px;
  color:#adbcaf;
  margin-top:5px
}
.brand-mark {
  width:38px;
  height:40px;
  color:#d8eac6
}
.sidebar-label {
  font-size:11px;
  color:#92a798;
  letter-spacing:1px;
  padding:0 16px 15px
}
.nav-item {
  display:flex;
  align-items:center;
  gap:12px;
  width:100%;
  border-radius:9px;
  padding:13px 15px;
  background:transparent;
  color:#adc0b3;
  text-align:left;
  margin-bottom:7px
}
.nav-item.active {
  background:#315447;
  color:#eff4e9
}
.nav-item>span:first-child {
  font-size:20px;
  width:20px
}
.nav-item kbd {
  margin-left:auto;
  font-family:inherit;
  font-size:10px;
  background:#ffffff12;
  border:1px solid #ffffff15;
  border-radius:4px;
  padding:1px 5px;
  color:#a7bcad
}
.nav-count {
  margin-left:auto;
  font-size:11px;
  color:#a7bcad
}
.sidebar-note {
  margin-top:auto;
  padding:20px 15px 28px;
  border-bottom:1px solid #ffffff15
}
.mini-label {
  font-size:8px;
  letter-spacing:1.8px;
  color:#8ea897
}
.sidebar-note h3 {
  font-size:14px;
  font-weight:500;
  margin:12px 0 9px
}
.sidebar-note p {
  font-size:11px;
  line-height:1.9;
  color:#97afa0
}
.sidebar-bottom {
  display:flex;
  gap:10px;
  align-items:center;
  padding:22px 11px 1px;
  font-size:12px
}
.sidebar-bottom small {
  display:block;
  color:#8fa99a;
  font-size:10px;
  margin-top:4px
}
.avatar {
  width:31px;
  height:31px;
  background:#c3d7b5;
  color:#315145;
  border-radius:50%;
  display:grid;
  place-items:center;
  font-size:12px
}
.live-dot {
  width:6px;
  height:6px;
  background:#a7ce92;
  border-radius:50%;
  margin-left:auto
}
main {
  margin-left:226px
}
.topbar {
  height:75px;
  border-bottom:1px solid var(--line);
  padding:0 45px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  background:#fcfdfb;
  font-size:12px;
  color:#8d9891
}
.topbar strong {
  font-weight:500;
  color:#53665a
}
.slash {
  margin:0 13px;
  color:#c5cec5
}
.topbar-right {
  display:flex;
  align-items:center;
  gap:18px
}
.local-pill {
  display:flex;
  align-items:center;
  gap:7px;
  font-size:11px;
  color:#677b68
}
.local-pill i {
  width:6px;
  height:6px;
  background:#78a77c;
  border-radius:50%
}
.icon-button {
  width:30px;
  height:30px;
  border-radius:7px;
  background:transparent;
  color:#698071;
  font-size:23px
}
.icon-button:hover {
  background:#e9eee5
}
.page {
  max-width:1510px;
  margin:auto;
  padding:38px 44px 30px
}
.page-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:28px
}
.eyebrow {
  font-size:9px;
  letter-spacing:2.4px;
  color:#92a38e;
  margin-bottom:12px
}
h1 {
  font-size:29px;
  letter-spacing:.4px;
  font-weight:600
}
.page-heading p {
  font-size:12px;
  color:#879387;
  margin-top:11px;
  line-height:1.8
}
.button {
  display:inline-flex;
  gap:13px;
  align-items:center;
  justify-content:center;
  border-radius:8px;
  font-weight:500;
  font-size:12px;
  min-height:37px;
  padding:10px 15px;
  white-space:nowrap;
  transition:background .18s,transform .18s
}
.button:active {
  transform:translateY(1px)
}
.button.primary {
  background:var(--green);
  color:#f4f7ef;
  border:1px solid var(--green)
}
.button.primary:hover {
  background:#173f32
}
.button.secondary {
  background:#fff;
  border:1px solid #dce3d8;
  color:#5d6f5e
}
.button.secondary:hover {
  background:#f2f6ec
}
.full-width {
  width:100%
}
.workflow-steps {
  display:flex;
  align-items:center;
  padding:17px 25px;
  background:#ecf0e6;
  border:1px solid #e4e9dd;
  border-radius:10px;
  margin-bottom:27px;
  font-size:11px;
  color:#9ca797;
  gap:13px
}
.workflow-steps span {
  display:flex;
  gap:9px;
  align-items:center;
  white-space:nowrap
}
.workflow-steps b {
  display:grid;
  place-items:center;
  width:21px;
  height:21px;
  font-size:10px;
  font-weight:500;
  border-radius:50%;
  background:#e3e8db;
  color:#92a085
}
.workflow-steps .current {
  color:#45683e
}
.workflow-steps .current b {
  color:#f2f6e9;
  background:#647f4c
}
.workflow-steps .done {
  color:#647b57
}
.workflow-steps i {
  height:1px;
  background:#dce3d3;
  flex:1;
  margin:0 6px
}
.workspace-grid {
  display:grid;
  grid-template-columns:minmax(0,1fr) 310px;
  gap:24px;
  align-items:start
}
.workspace-main {
  display:flex;
  flex-direction:column;
  gap:22px;
  min-width:0
}
.settings-column {
  display:flex;
  flex-direction:column;
  gap:19px
}
.panel {
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:23px
}
.panel-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-bottom:20px
}
.panel h2 {
  font-size:15px;
  font-weight:600;
  letter-spacing:.2px
}
.subtle {
  font-size:11px;
  color:#96a091;
  font-weight:400
}
.mode-tabs {
  display:flex;
  background:#f3f5f0;
  border-radius:8px;
  padding:4px;
  margin-bottom:21px
}
.mode-tabs button {
  flex:1;
  background:none;
  color:#92a08c;
  font-size:12px;
  border-radius:6px;
  padding:10px 7px
}
.mode-tabs button.selected {
  background:#fff;
  color:#426333;
  box-shadow:0 2px 5px #263b2210
}
.design-mode-tabs {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
}
@media(max-width:1040px) {
  .design-mode-tabs {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
.upload-zone {
  position:relative;
  display:block;
  min-height:219px;
  border:1.5px dashed #ced8c5;
  border-radius:10px;
  background:#fbfcf8;
  text-align:center;
  cursor:pointer;
  transition:background .2s,border-color .2s;
  margin-bottom:22px;
  overflow:hidden
}
.upload-zone:hover,.upload-zone.dragover {
  border-color:#729456;
  background:#f4f8ec
}
.upload-symbol {
  display:grid;
  place-items:center;
  width:40px;
  height:40px;
  border-radius:11px;
  background:#eaf0e1;
  color:#708e50;
  font-size:25px;
  margin:29px auto 14px
}
#upload-placeholder strong {
  font-size:13px;
  font-weight:500;
  color:#617151
}
#upload-placeholder p {
  font-size:10px;
  color:#96a189;
  margin-top:9px
}
#upload-placeholder small {
  display:block;
  font-size:10px;
  color:#a9b09f;
  margin:14px 18px 25px
}
.checker {
  background-color:#fbfcf8;
  background-image:linear-gradient(45deg,#edf0e8 25%,transparent 25%),linear-gradient(-45deg,#edf0e8 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#edf0e8 75%),linear-gradient(-45deg,transparent 75%,#edf0e8 75%);
  background-size:18px 18px;
  background-position:0 0,0 9px,9px -9px,-9px 0
}
#source-preview {
  background:#f5f6f0
}
#source-image {
  display:block;
  width:100%;
  height:275px;
  object-fit:contain;
  padding:12px
}
.source-caption {
  background:#fff;
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:12px 15px;
  font-size:10px;
  color:#7e8f75
}
.source-caption span:first-child {
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap
}
.field {
  margin-bottom:17px
}
.field>label,.field-label label,.dialog-revision>label {
  display:block;
  font-size:11px;
  color:#596d55;
  font-weight:500;
  margin-bottom:8px
}
.field-label {
  display:flex;
  justify-content:space-between;
  align-items:center
}
.field-label>span {
  font-size:9px;
  color:#b1b8aa;
  margin-bottom:8px
}
input:not([type=checkbox]):not([type=color]):not([type=file]),textarea,select {
  width:100%;
  border:1px solid #dfe5d9;
  background:#fff;
  border-radius:7px;
  color:#40543b;
  padding:10px 11px;
  font-size:12px;
  transition:border-color .2s
}
input::placeholder,textarea::placeholder {
  color:#abb4a3;
  font-size:11px;
  line-height:1.8
}
input:focus,textarea:focus,select:focus {
  outline:2px solid #dce9cb;
  border-color:#a2bb88
}
textarea {
  resize:vertical;
  min-height:75px;
  line-height:1.85
}
input[type=checkbox] {
  accent-color:#446e3a;
  width:14px;
  height:14px;
  margin:0 9px 0 0
}
.title-field {
  margin-bottom:20px
}
.input-footer {
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding-top:17px;
  border-top:1px solid #edf0e8;
  gap:13px
}
.input-footer>span {
  font-size:10px;
  color:#a0ac96
}
.tiny-spark {
  color:#8ca475;
  font-size:16px;
  margin-right:3px
}
.settings-panel {
  padding:20px
}
.settings-panel .panel-heading {
  margin-bottom:11px
}
.settings-panel h2 {
  font-size:13px
}
.tag {
  font-size:9px;
  background:#edf3e4;
  color:#7f9567;
  border:1px solid #e6edda;
  border-radius:4px;
  padding:4px 6px;
  white-space:nowrap
}
.muted-tag {
  background:#f5f6f0;
  color:#9aa28e;
  border-color:#e9eddf
}
.section-caption {
  font-size:10px;
  color:#9aa58f;
  line-height:1.8;
  margin:0 0 17px
}
.params-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:0 12px
}
.params-grid .field {
  margin-bottom:13px
}
.params-grid label {
  font-size:10px;
  white-space:nowrap
}
.params-grid em {
  font-size:9px;
  font-style:normal;
  color:#adb69f;
  margin-left:4px
}
.params-grid input,.params-grid select {
  font-size:12px;
  padding:9px!important
}
.fill-field {
  padding-top:5px
}
.fill-field>div {
  display:flex;
  align-items:center;
  gap:10px
}
.fill-field span {
  font-size:10px;
  color:#96a18b
}
.fill-field input {
  width:32px;
  height:27px;
  border:1px solid #d9e1d0;
  border-radius:5px;
  background:white;
  padding:2px;
  cursor:pointer
}
.spec-note {
  display:flex;
  gap:8px;
  padding:11px;
  background:#f5f7f0;
  border-radius:6px;
  color:#98a488;
  margin-bottom:14px
}
.spec-note>span {
  font-size:14px
}
.spec-note p {
  font-size:10px;
  line-height:1.7
}
.free-label {
  font-size:9px;
  background:#edf3e5;
  color:#7c9762;
  border-radius:4px;
  padding:3px 5px
}
#presentation-panel .field:last-child {
  margin-bottom:0
}
.field-hint {
  margin-top:5px;
  color:#78886c;
  font-size:10px;
  line-height:1.5
}
.output-summary {
  list-style:none;
  padding:0;
  margin:0
}
.output-summary li,.output-options label {
  display:flex;
  align-items:center;
  gap:8px;
  font-size:11px;
  color:#6b7a61;
  padding:8px 0
}
.output-summary li>span:last-child,.output-options label>span {
  margin-left:auto;
  flex-shrink:0;
  font-size:10px;
  color:#a1ad93
}
#generation-caption {
  margin:12px 0
}
.cost-card {
  padding:16px;
  background:#f1f5e9;
  border:1px solid #e6ecdc;
  border-radius:9px;
  margin:15px 0 12px
}
.cost-card>span {
  font-size:10px;
  color:#8a9a76
}
.cost-card strong {
  display:block;
  font-size:28px;
  color:#466034;
  font-weight:500;
  letter-spacing:-1px;
  margin:8px 0
}
.cost-card small {
  display:block;
  font-size:9px;
  color:#a3ae93;
  line-height:1.8
}
.notice {
  background:#eff5e8;
  border:1px solid #e0e9d4;
  color:#71875c;
  border-radius:8px;
  padding:12px 14px;
  font-size:11px;
  line-height:1.9;
  margin-bottom:18px;
  white-space:pre-line
}
.notice.warning {
  background:#fff6e7;
  border-color:#f0dfbd;
  color:#99713e
}
.heading-actions {
  display:flex;
  gap:10px;
  align-items:center
}
.heading-actions select {
  padding:5px 9px;
  max-width:120px;
  font-size:10px
}
.draft-image-area {
  border:1px solid #e7ece0;
  border-radius:9px;
  min-height:260px;
  display:grid;
  place-items:center;
  overflow:hidden
}
.draft-image-area>img {
  max-height:430px;
  width:100%;
  object-fit:contain;
  background:white
}
.empty-state {
  padding:65px 15px;
  display:flex;
  flex-direction:column;
  gap:12px;
  align-items:center;
  text-align:center;
  color:#8d9b82;
  font-size:11px
}
.draft-tools {
  padding-top:19px
}
.revision-row {
  display:flex;
  gap:8px;
  align-items:stretch
}
.revision-row input {
  min-width:0;
  flex:1
}
.draft-confirm {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:13px;
  border-top:1px solid #edf0e6;
  padding-top:18px
}
.draft-confirm p {
  font-size:10px;
  color:#8a9b7d;
  line-height:1.8
}
.job-progress {
  display:flex;
  gap:10px;
  align-items:center;
  font-size:11px;
  color:#6e8556;
  background:#f3f6ec;
  border-radius:6px;
  padding:12px;
  margin-bottom:14px
}
.job-progress .subtle {
  margin-left:auto;
  font-size:9px
}
.spinner {
  display:inline-block;
  flex-shrink:0;
  width:17px;
  height:17px;
  border:2px solid #dce5cf;
  border-top-color:#6b8f4f;
  border-radius:50%;
  animation:spin 1s linear infinite
}
@keyframes spin {
  to {
    transform:rotate(360deg)
  }

}
.results-panel .panel-heading {
  align-items:flex-start
}
.results-panel .section-caption {
  margin:7px 0 0
}
.results-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px
}
.result-tile {
  border:1px solid #e3e8dc;
  border-radius:9px;
  overflow:hidden;
  background:#fff
}
.result-missing {
  min-height:100px;
  display:grid;
  place-items:center;
  background:#f5f7f0;
  color:#78886c;
  border:1px dashed #e3e8dc;
  border-radius:9px;
  font-size:11px;
  text-align:center;
  padding:12px
}
.result-open {
  display:block;
  width:100%;
  padding:0;
  background:#fff;
  position:relative
}
.result-open img {
  width:100%;
  aspect-ratio:1/1;
  object-fit:contain;
  display:block
}
.result-open:hover img {
  filter:brightness(.97)
}
.result-caption {
  display:flex;
  gap:4px;
  align-items:center;
  justify-content:space-between;
  padding:10px 10px 11px;
  font-size:10px;
  color:#708364
}
.result-caption span {
  font-size:9px;
  color:#a3ae99
}
.stale-tag {
  position:absolute;
  top:7px;
  left:7px;
  background:#fff0d8;
  color:#997442;
  border-radius:4px;
  font-size:9px;
  padding:4px 6px
}
.demo-start {
  margin-bottom:17px
}
.starter-examples {
  display:flex;
  gap:12px;
  flex-wrap:wrap
}
.example-card {
  display:flex;
  align-items:center;
  gap:15px;
  border:1px solid #e2e8dc;
  border-radius:9px;
  background:#fcfdfb;
  padding:11px 14px;
  width:100%;
  text-align:left
}
.example-card img {
  width:67px;
  height:74px;
  object-fit:contain;
  border-radius:5px;
  background:#fff
}
.example-card strong {
  font-size:12px;
  font-weight:500;
  color:#5d7251
}
.example-card p {
  font-size:10px;
  color:#9ba68f;
  margin-top:7px;
  line-height:1.8
}
.example-card .arrow {
  margin-left:auto;
  color:#88a06e;
  font-size:19px
}
.footer {
  max-width:1510px;
  margin:auto;
  padding:13px 44px 28px;
  display:flex;
  justify-content:space-between;
  color:#a8b19f;
  font-size:10px
}
.footer>span {
  font-size:9px
}
.history-stats {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px;
  margin-bottom:24px
}
.stat-card {
  border:1px solid var(--line);
  border-radius:12px;
  background:#fff;
  padding:22px
}
.stat-card span {
  font-size:11px;
  color:#91a081
}
.stat-card strong {
  display:block;
  font-size:29px;
  margin-top:10px;
  font-weight:500
}
.history-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:20px
}
.history-heading-actions {
  justify-content:flex-end;
  flex-shrink:0;
}
.history-entry {
  display:flex;
  flex-direction:column;
  min-width:0;
  gap:5px;
}
.history-entry .history-card {
  flex:1;
}
.history-download-choice {
  display:flex;
  align-items:center;
  min-height:34px;
  padding:6px 11px;
  border:1px solid var(--line);
  border-radius:8px;
  background:#fff;
  color:var(--green);
  cursor:pointer;
  font-size:12px;
}
.history-download-choice:has(input:checked) {
  border-color:#9db58d;
  background:#edf4e5;
}
.history-download-panel {
  margin-bottom:18px;
}
.history-download-panel .history-layout {
  display:flex;
  align-items:center;
  gap:6px;
  font-size:12px;
  white-space:nowrap;
}
.history-layout select {
  width:auto;
}
.history-archive-action, #history-download-links:not(:empty) {
  margin-top:12px;
}
.history-card {
  padding:0;
  background:white;
  border:1px solid var(--line);
  border-radius:13px;
  overflow:hidden;
  text-align:left
}
.history-card img {
  display:block;
  width:100%;
  aspect-ratio:1.15;
  object-fit:contain;
  background:#fcfcfa
}
.history-card>div {
  padding:17px
}
.history-card h3 {
  font-size:13px;
  font-weight:500;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap
}
.history-card p {
  margin-top:9px;
  font-size:10px;
  color:#91a080
}
.history-card footer {
  display:flex;
  justify-content:space-between;
  gap:9px;
  margin-top:14px;
  align-items:center
}
.status-badge {
  font-size:9px;
  padding:4px 7px;
  border-radius:4px;
  background:#edf4e5;
  color:#77905e
}
.status-badge.error {
  background:#fff0e2;
  color:#a67544
}
.history-card footer strong {
  font-size:12px;
  font-weight:500;
  color:#6c8259
}
dialog {
  border:1px solid #dce3d5;
  border-radius:16px;
  box-shadow:0 24px 90px #17351d30;
  width:min(880px,94vw);
  padding:23px;
  color:var(--ink);
  max-height:94vh;
  overflow:auto
}
dialog::backdrop {
  background:#18352585;
  backdrop-filter:blur(4px)
}
.dialog-header {
  display:flex;
  justify-content:space-between;
  align-items:start;
  gap:12px;
  padding-bottom:17px
}
.dialog-header h3 {
  font-size:17px;
  font-weight:500
}
.dialog-header p {
  font-size:10px;
  color:#9aa68e;
  margin-top:7px
}
.dialog-image {
  border:1px solid #e7ece0;
  border-radius:9px;
  height:min(58vh,640px);
  display:grid;
  place-items:center;
  overflow:hidden
}
.dialog-image img {
  width:100%;
  height:100%;
  object-fit:contain
}
.dialog-actions {
  display:flex;
  justify-content:space-between;
  gap:15px;
  margin:15px 0
}
.dialog-actions select {
  max-width:180px;
  font-size:11px
}
.dialog-revision {
  padding-top:16px;
  border-top:1px solid #edf0e8
}
.dialog-revision p {
  font-size:10px;
  color:#97a38c;
  margin:9px 0 13px
}
.toast {
  position:fixed;
  bottom:26px;
  left:calc(50% + 113px);
  transform:translateX(-50%);
  background:#274c3d;
  color:#f0f5e8;
  border:1px solid #4d6a4d;
  padding:13px 22px;
  box-shadow:0 6px 30px #234d3830;
  border-radius:9px;
  font-size:12px;
  z-index:100;
  max-width:85vw;
  line-height:1.7
}
.toast.error {
  background:#865334;
  border-color:#9f7458
}
.entry {
  min-height:100vh;
  min-height:100svh;
  display:grid;
  place-items:center;
  padding:30px 20px;
  background:radial-gradient(ellipse at 50% 0%,#e0ead8 0%,var(--paper) 62%);
}
.entry-card {
  width:min(100%,420px);
  padding:32px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:18px;
  box-shadow:0 25px 65px #1e392413;
}
.entry-brand {
  display:flex;
  align-items:center;
  gap:9px;
  color:var(--green);
  letter-spacing:.13em;
  font-size:17px;
  margin-bottom:18px;
}
.entry-brand .brand-mark {
  color:var(--green);
  width:34px;
  height:34px;
  padding:3px;
  background:#edf4e8;
  border-radius:8px;
}
.entry h1 {
  font-size:24px;
}
.entry-status {
  color:#66786b;
  line-height:1.7;
  margin:11px 0 22px;
}
.entry .field>label {
  font-size:12px;
}
.entry input {
  min-height:42px;
}
#auth-password-hint {
  color:#66786b;
  margin:8px 0 0;
}
.entry .notice {
  color:#785723;
}
.quota-pill {
  display:inline-flex;
  align-items:center;
  min-height:25px;
  padding:4px 9px;
  border:1px solid #dce8d7;
  border-radius:7px;
  background:#edf5ea;
  color:#336147;
  font-size:11px;
  white-space:nowrap;
}
.quota-pill.exhausted {
  color:#83541d;
  background:#fff4e3;
  border-color:#ecd9b5;
}
.logout-button {
  min-height:31px;
  padding:5px 9px;
}
.sidebar-bottom>div {
  min-width:0;
}
#workspace-account {
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.admin-layout {
  display:grid;
  grid-template-columns:minmax(220px,1fr) minmax(0,1.7fr);
  gap:18px;
  align-items:start;
}
.admin-accounts {
  grid-column:2;
  grid-row:1 / 3;
}
.admin-list {
  display:grid;
  gap:0;
}
.admin-row {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:13px 0;
  border-top:1px solid var(--line);
}
.admin-row:first-child {
  border-top:0;
  padding-top:0;
}
.admin-row:last-child {
  padding-bottom:0;
}
.admin-row-description {
  min-width:0;
  overflow-wrap:anywhere;
}
.admin-row-description p {
  margin-top:6px;
  line-height:1.6;
}
.admin-row-controls {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:7px;
}
.admin-row-controls .admin-quota {
  width:68px;
}
.admin-row .button {
  min-height:31px;
  padding:6px 9px;
}
.admin-customer-row {
  display:grid;
  align-items:stretch;
  gap:10px;
}
.admin-customer-heading,.admin-upload-summary {
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:8px;
}
.admin-set-stats {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
}
.admin-set-stat {
  min-width:55px;
  display:grid;
  gap:3px;
}
.admin-set-stat strong,.admin-upload-summary strong {
  font-size:12px;
  font-weight:600;
}
.admin-set-stats>button {
  margin-left:auto;
}
.admin-upload-summary {
  padding-top:9px;
  border-top:1px solid var(--line);
}
#admin-uploads-dialog {
  width:min(490px,94vw);
}
#admin-upload-temporary-fields,#admin-uploads-form>div:last-child {
  margin-top:9px;
}
.invite-result {
  margin-top:18px;
  padding:14px;
  border:1px solid #e2ecdb;
  background:#f6faf2;
  border-radius:8px;
}
.invite-result .section-caption {
  margin:0;
}
.batch-overview {
  display:grid;
  grid-template-columns:minmax(0, 1.35fr) minmax(220px, .9fr);
  align-items:start;
  gap:20px;
}
.batch-form-fields {
  padding:0;
  margin:0;
  border:0;
  min-width:0;
}
.batch-upload-zone {
  min-height:110px;
  padding:16px 10px;
}
.batch-upload-zone[aria-disabled="true"] {
  cursor:default;
  opacity:.65;
}
.batch-folder-controls {
  margin:10px 0;
}
.batch-folder-status {
  overflow-wrap:anywhere;
}
.batch-files {
  padding:0;
  list-style:none;
}
.batch-folder-file-list {
  max-height:220px;
  overflow:auto;
}
.batch-upload-meter {
  flex-basis:100%;
  width:100%;
  height:8px;
  accent-color:#4b806a;
}
.batch-detail-meters {
  display:flex;
  flex-wrap:wrap;
  gap:8px 16px;
  margin:0 0 12px;
}
.batch-detail-meters label {
  flex:1 1 180px;
  display:flex;
  align-items:center;
  gap:8px;
  font-size:12px;
  color:var(--green);
}
.batch-detail-meters progress {
  flex:1;
  min-width:40px;
  height:8px;
  accent-color:#4b806a;
}
.batch-files li {
  display:flex;
  gap:8px;
  align-items:center;
  padding:4px 0;
  border-bottom:1px solid var(--line);
}
.batch-filename {
  flex:1;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.batch-files .batch-error {
  max-width:50%;
}
.batch-shared {
  margin-bottom:16px;
}
.batch-shared summary {
  cursor:pointer;
  font-size:12px;
  color:var(--green);
  margin-bottom:12px;
}
.batch-actions {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
}
.batch-record {
  width:100%;
  text-align:left;
  color:var(--ink);
  background:#fff;
  padding:12px 0;
  border-top:1px solid var(--line);
  overflow-wrap:anywhere;
}
.batch-record:hover {
  color:var(--green);
  background:var(--paper);
}
.batch-record span {
  display:block;
  margin-top:5px;
}
.batch-detail-heading {
  flex-wrap:wrap;
}
.batch-detail-heading h2 {
  overflow-wrap:anywhere;
}
.batch-selection {
  margin:12px 0 16px;
}
.batch-items {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
.batch-item {
  display:flex;
  flex-direction:column;
  border:1px solid var(--line);
  border-radius:10px;
  overflow:hidden;
  min-width:0;
}
.batch-visual {
  width:100%;
  min-height:115px;
  height:clamp(115px, 16vw, 200px);
  display:grid;
  place-items:center;
}
.batch-visual img {
  max-width:100%;
  max-height:100%;
  height:100%;
  object-fit:contain;
}
.batch-item-body {
  display:flex;
  flex-direction:column;
  gap:8px;
  padding:12px;
}
.batch-item-title {
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:8px;
}
.batch-item-title h3 {
  font-size:13px;
  overflow-wrap:anywhere;
}
.batch-item-title .status-badge {
  flex:none;
}
.batch-item-path {
  overflow-wrap:anywhere;
}
.batch-error {
  color:#9b4f45;
  font-size:11px;
  line-height:1.55;
  overflow-wrap:anywhere;
}
.batch-choice {
  display:inline-flex;
  align-items:center;
  min-height:31px;
  font-size:12px;
  color:var(--green);
  margin-right:4px;
}
.batch-choice input {
  margin-right:5px;
}
.batch-item .button {
  min-height:31px;
  padding:6px 10px;
}
.batch-download {
  margin-top:16px;
}
.batch-download-options {
  color:var(--green);
  font-size:12px;
}
.batch-download-options select {
  width:auto;
  max-width:100%;
  padding:8px 10px;
}
.production-toolbar {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:12px 20px;
  margin-bottom:16px;
}
.production-toolbar .history-layout,.production-chart-panel .history-layout {
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
  font-size:12px;
}
.production-toolbar .history-layout span,.production-chart-panel .history-layout span {
  white-space:nowrap;
}
.production-toolbar select {
  min-width:0;
  max-width:100%;
}
.production-loading {
  padding:8px 0;
}
.production-metrics {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,168px),1fr));
  gap:12px;
  margin-bottom:16px;
}
.production-metric {
  min-width:0;
}
.production-metric:first-child {
  background:#edf4e7;
  border-color:#dce8d7;
}
.production-metric h2 {
  font-weight:600;
  font-size:12px;
  color:var(--green);
}
.production-metric strong {
  display:block;
  margin:8px 0 4px;
  font-size:26px;
  line-height:1.2;
  font-variant-numeric:tabular-nums;
  overflow-wrap:anywhere;
}
.production-metric p,.production-chart-panel .panel-heading p,.production-detail-panel .panel-heading p {
  font-size:12px;
  line-height:1.45;
}
.production-chart-panel {
  margin-bottom:16px;
}
.production-chart-panel .panel-heading {
  flex-wrap:wrap;
  gap:10px;
}
.production-chart-wrap,.production-table-wrap {
  max-width:100%;
  overflow-x:auto;
}
.production-chart-wrap>svg {
  display:block;
  width:auto;
  min-width:100%;
  height:280px;
}
.production-gridline {
  stroke:#dee5dd;
}
.production-tick {
  fill:#52655b;
  font-size:11px;
}
.production-total {
  fill:#234f41;
  font-size:11px;
  font-weight:650;
}
.production-legend {
  display:flex;
  flex-wrap:wrap;
  gap:6px 16px;
  list-style:none;
  margin:8px 0 0;
  padding:0;
}
.production-legend li {
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:12px;
}
.production-legend svg {
  flex:none;
  width:12px;
  height:12px;
}
.production-table {
  min-width:100%;
  width:max-content;
  border-collapse:collapse;
  text-align:left;
  white-space:nowrap;
  font-size:12px;
  font-variant-numeric:tabular-nums;
}
.production-table th,.production-table td {
  border-bottom:1px solid var(--line);
  padding:11px 10px;
}
.production-table thead th {
  background:#f2f5ef;
  color:var(--green);
}
.production-table small {
  display:block;
  margin-top:2px;
}
.production-table .production-current-batch {
  max-width:210px;
  white-space:normal;
  overflow-wrap:anywhere;
}
.production-customer-link {
  background:none;
  padding:0;
  color:var(--green);
  text-align:left;
  text-decoration:underline;
  text-underline-offset:3px;
}
.production-tag {
  margin-left:6px;
  padding:2px 5px;
  border-radius:4px;
  background:#f5ead4;
  color:#755317;
  font-size:10px;
}
#batch-settings-form {
  padding:15px 20px 20px;
  max-height:75vh;
  overflow:auto;
}
@media(max-width:710px) {
  .batch-overview {
    grid-template-columns:minmax(0,1fr);
  }
}
@media(max-width:540px) {
  .batch-items {
    grid-template-columns:minmax(0,1fr);
  }
}
@media(min-width:1600px) {
  .workspace-grid {
    grid-template-columns:minmax(0,1fr) 338px
  }
  .panel {
    padding:27px
  }
  .settings-panel {
    padding:23px
  }

}
@media(max-width:1190px) {
  .sidebar {
    width:195px;
    padding-left:13px;
    padding-right:13px
  }
  .brand {
    font-size:23px;
    padding-left:10px
  }
  .brand small {
    font-size:7px
  }
  main {
    margin-left:195px
  }
  .page {
    padding:29px 25px
  }
  .topbar {
    padding:0 27px
  }
  .workspace-grid {
    grid-template-columns:minmax(0,1fr) 275px;
    gap:18px
  }
  .panel {
    padding:19px
  }
  .settings-panel {
    padding:17px
  }
  .params-grid {
    gap:0 8px
  }
  .page-heading h1 {
    font-size:26px
  }
  .workflow-steps {
    gap:8px;
    padding:15px
  }
  .workflow-steps span {
    gap:6px
  }
  .workflow-steps i {
    margin:0 2px
  }
  .toast {
    left:calc(50% + 97px)
  }
  .history-grid {
    grid-template-columns:repeat(2,minmax(0,1fr))
  }

}
@media(max-width:920px) {
  .sidebar {
    width:76px;
    padding:23px 10px
  }
  .brand {
    padding:0 7px 33px
  }
  .brand>span:nth-child(2),.sidebar-label,.sidebar-note,.sidebar-bottom>div,.sidebar-bottom>.live-dot,.nav-count,.nav-item kbd {
    display:none
  }
  .nav-item {
    font-size:0;
    justify-content:center;
    padding:12px 10px
  }
  .nav-item>span:first-child {
    font-size:23px
  }
  .sidebar-bottom {
    padding:20px 10px 0;
    margin-top:auto
  }
  .avatar {
    width:30px;
    height:30px
  }
  main {
    margin-left:76px
  }
  .workspace-grid {
    grid-template-columns:minmax(0,1fr) 265px;
    gap:15px
  }
  .page {
    padding:25px 20px
  }
  .topbar {
    padding:0 22px;
    height:65px
  }
  .page-heading p {
    max-width:370px
  }
  .input-footer {
    flex-wrap:wrap
  }
  .input-footer>span {
    font-size:9px
  }
  .input-footer>.button {
    margin-left:auto
  }
  .workflow-steps {
    font-size:10px
  }
  .workflow-steps b {
    width:18px;
    height:18px
  }
  .results-grid {
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
  .draft-confirm {
    flex-wrap:wrap
  }
  .draft-confirm>.button {
    margin-left:auto
  }
  .job-progress .subtle {
    display:none
  }
  .toast {
    left:calc(50% + 38px)
  }
  .footer {
    padding:10px 20px 22px
  }

}
@media(max-width:710px) {
  .admin-layout {
    grid-template-columns:minmax(0,1fr);
  }
  .admin-accounts {
    grid-column:auto;
    grid-row:auto;
  }
  .admin-row {
    flex-wrap:wrap;
  }
  .workspace-grid {
    grid-template-columns:1fr
  }
  .settings-column {
    display:grid;
    grid-template-columns:minmax(0,1fr);
    gap:14px;
    order:1
  }
  .workspace-main {
    order:0
  }
  .params-grid {
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:0 12px
  }
  .fill-field {
    display:none
  }
  .spec-note {
    margin-bottom:0
  }
  .workflow-steps {
    font-size:9px;
    gap:5px;
    padding:12px 9px
  }
  .workflow-steps span {
    gap:5px
  }
  .workflow-steps i {
    margin:0;
    min-width:5px
  }
  .page-heading {
    align-items:flex-start;
    gap:10px
  }
  .page-heading>.button {
    padding:8px;
    font-size:10px
  }
  .page-heading h1 {
    font-size:25px
  }
  .page-heading p {
    font-size:10px
  }
  .page-heading .eyebrow {
    font-size:7px
  }
  .footer>span {
    display:none
  }
  .history-stats {
    gap:9px
  }
  .stat-card {
    padding:14px
  }
  .stat-card span {
    font-size:9px
  }
  .stat-card strong {
    font-size:22px
  }
  .history-grid {
    gap:12px
  }
  .revision-row {
    flex-wrap:wrap
  }
  .revision-row>input {
    width:100%;
    flex-basis:100%
  }
  .revision-row>.button {
    margin-left:auto
  }

}
@media(max-width:480px) {
  .entry-card {
    padding:26px;
  }
  .quota-pill {
    padding:4px 5px;
    font-size:10px;
  }
  .sidebar {
    width:58px;
    padding:21px 6px
  }
  .brand {
    padding:0 3px 28px
  }
  .brand-mark {
    width:32px;
    height:32px
  }
  .nav-item {
    padding:10px 5px
  }
  .sidebar-bottom {
    padding:16px 8px 0
  }
  .avatar {
    width:27px;
    height:27px
  }
  main {
    margin-left:58px
  }
  .page {
    padding:22px 13px
  }
  .topbar {
    padding:0 15px;
    font-size:10px
  }
  .topbar-right {
    gap:6px
  }
  .local-pill {
    font-size:9px
  }
  .workflow-steps {
    font-size:8px
  }
  .workflow-steps b {
    width:15px;
    height:15px;
    font-size:8px
  }
  .settings-column {
    grid-template-columns:1fr
  }
  .settings-column>.panel:last-child {
    grid-column:auto
  }
  .params-grid {
    grid-template-columns:1fr 1fr
  }
  .history-grid {
    grid-template-columns:1fr
  }
  .toast {
    left:calc(50% + 29px)
  }
  .button {
    font-size:11px
  }
  .panel {
    padding:16px
  }
  .footer {
    padding-left:13px
  }
  .draft-tools .field>label {
    font-size:10px
  }

}
