:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #242b25;
  background: #f6f7f4;
  font-synthesis: none;
  font-size: 14px;
  line-height: 1.5;
  --bg: #f6f7f4;
  --surface: #fff;
  --ink: #242b25;
  --muted: #778075;
  --subtle: #a0a79c;
  --line: #e4e8e0;
  --green: #496b50;
  --green-hover: #38573e;
  --green-soft: #e9f0e7;
  --orange-soft: #f8f1df;
  --red: #a14842;
  --radius: 10px;
  --sidebar: 210px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.5;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  color: inherit;
}
img {
  display: block;
  max-width: 100%;
}
svg {
  flex: none;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
h1 {
  font-size: 26px;
  line-height: 1.25;
  font-weight: 620;
  letter-spacing: -0.7px;
}
h2 {
  font-size: 20px;
  font-weight: 620;
  letter-spacing: -0.4px;
}
h3 {
  font-size: 15px;
  font-weight: 610;
}
small {
  font-size: 12px;
}
::selection {
  background: #d5e5d2;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #9cbaa2;
  outline-offset: 3px;
}
.hidden,
[hidden] {
  display: none !important;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 12px;
}
.nowrap {
  white-space: nowrap;
}
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mono {
  font-variant-numeric: tabular-nums;
}
.spacer {
  flex: 1;
}
.skip-link {
  position: fixed;
  left: 12px;
  top: -100px;
  z-index: 200;
  background: #fff;
  padding: 12px;
  border-radius: 8px;
}
.skip-link:focus {
  top: 12px;
}
.icon {
  vertical-align: middle;
}
.initial-loading {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
  color: var(--muted);
}
.brand-mark {
  width: 34px;
  height: 34px;
  background: var(--green);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 600;
  border-radius: 10px;
  line-height: 1;
  font-family: Georgia, serif;
}
.brand-mark.large {
  width: 44px;
  height: 44px;
  font-size: 32px;
}
.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
  min-height: 100dvh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 27px 16px 18px;
  background: #f0f2ed;
  border-right: 1px solid var(--line);
  z-index: 20;
}
.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0 10px 31px;
}
.brand-name {
  font-size: 15px;
  font-weight: 660;
  line-height: 1.15;
  letter-spacing: -0.35px;
}
.brand-subtitle {
  display: block;
  font-size: 10px;
  letter-spacing: 1.3px;
  font-weight: 450;
  margin-top: 5px;
  color: #7a8276;
  text-transform: uppercase;
}
.nav-section-label {
  padding: 0 12px;
  margin-bottom: 10px;
  color: #92998c;
  font-size: 10px;
  letter-spacing: 1.4px;
  font-weight: 650;
  text-transform: uppercase;
}
.project-switcher {
  margin-bottom: 25px;
}
.project-switcher-button {
  border: 1px solid #dce2d6;
  background: #f9faf7;
  border-radius: 9px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  text-align: left;
  font-weight: 570;
}
.project-switcher-button .icon:last-child {
  margin-left: auto;
  color: var(--muted);
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  border-radius: 8px;
  margin: 3px 0;
  color: #747e70;
  font-weight: 500;
  transition:
    background 0.12s,
    color 0.12s;
  position: relative;
  min-width: 0;
}
.nav-link:hover {
  background: #e8ece3;
  color: var(--ink);
}
.nav-link.active {
  background: #e1e8dc;
  color: #35553a;
  font-weight: 610;
}
.nav-link .nav-count {
  margin-left: auto;
  font-size: 11px;
  font-weight: 500;
  color: #88977e;
}
.nav-divider {
  height: 1px;
  background: #e0e5da;
  margin: 22px 12px;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 24px;
}
.sidebar-bottom .nav-link {
  font-size: 13px;
}
.account-menu {
  border-top: 1px solid #dfe4d9;
  padding: 18px 10px 0;
  margin-top: 18px;
  display: flex;
  gap: 9px;
  align-items: center;
  min-width: 0;
}
.avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #e2e7da;
  display: grid;
  place-items: center;
  color: #617356;
  font-size: 11px;
  font-weight: 650;
  flex: none;
}
.account-name {
  font-size: 12px;
  font-weight: 570;
}
.account-role {
  font-size: 10px;
  color: var(--muted);
}
.workspace {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.topbar {
  height: 76px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 36px;
  border-bottom: 1px solid var(--line);
  background: rgba(246, 247, 244, 0.93);
  position: sticky;
  top: 0;
  z-index: 12;
  backdrop-filter: blur(12px);
}
.breadcrumb {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
  min-width: 0;
}
.breadcrumb .icon {
  color: #b2b9ac;
}
.breadcrumb a {
  color: var(--muted);
}
.breadcrumb a:hover {
  color: var(--green);
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-left: auto;
}
.divider-vertical {
  height: 20px;
  border-left: 1px solid var(--line);
  margin: 0 3px;
}
.project-indicator {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}
.online-dot {
  width: 6px;
  height: 6px;
  background: #83a17b;
  border-radius: 50%;
}
.mobile-menu {
  display: none;
}
.main {
  padding: 36px;
  flex: 1;
  min-width: 0;
}
.page-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 25px;
}
.page-heading p {
  color: var(--muted);
  font-size: 13px;
  margin-top: 9px;
  max-width: 620px;
}
.page-heading .eyebrow {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #9aa38f;
  margin-bottom: 8px;
}
.page-actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.page-count {
  color: #abb3a3;
  font-size: 18px;
  font-weight: 450;
  margin-left: 8px;
  letter-spacing: -0.4px;
}
.button {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 37px;
  padding: 8px 13px;
  font-size: 12px;
  font-weight: 560;
  line-height: 1.25;
  white-space: nowrap;
  transition:
    background 0.12s,
    border-color 0.12s,
    box-shadow 0.12s;
}
.button:hover {
  background: #f2f5ee;
  border-color: #ced8c8;
}
.button.primary {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
  box-shadow: 0 2px 3px #3f5f4310;
}
.button.primary:hover {
  background: var(--green-hover);
  border-color: var(--green-hover);
}
.button.secondary {
  background: var(--green-soft);
  color: var(--green);
  border-color: #dce6d7;
}
.button.ghost {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}
.button.ghost:hover {
  background: #edf0e8;
  color: var(--ink);
}
.button.danger {
  background: #fbefed;
  border-color: #efd8d4;
  color: var(--red);
}
.button.small {
  min-height: 30px;
  padding: 6px 9px;
  font-size: 11px;
}
.button.full {
  width: 100%;
}
.icon-button {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  padding: 0;
  flex: none;
}
.icon-button:hover {
  background: #eaf0e4;
  color: var(--ink);
}
.icon-button.bordered {
  border-color: var(--line);
  background: #fff;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}
.search {
  position: relative;
  min-width: 180px;
  flex: 1;
  max-width: 310px;
}
.search > .icon {
  position: absolute;
  left: 12px;
  top: 11px;
  color: #99a18e;
  pointer-events: none;
}
.search input {
  padding-left: 37px !important;
  height: 38px;
  background: #fff;
}
.filter-select {
  height: 38px;
  width: auto !important;
  min-width: 135px;
  font-size: 12px !important;
  color: #66715f;
}
.toolbar-count {
  margin-left: auto;
  color: var(--muted);
  font-size: 11px;
}
.segmented {
  display: inline-flex;
  gap: 3px;
  background: #ebeee6;
  border-radius: 8px;
  padding: 3px;
}
.segmented button {
  background: none;
  border: 0;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 11px;
  color: var(--muted);
}
.segmented button.active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 3px #1a2c1720;
}
.entity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.entity-grid.body-grid {
  grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
}
.entity-card {
  background: #fff;
  border: 1px solid #e3e7dd;
  border-radius: 12px;
  min-width: 0;
  overflow: hidden;
  position: relative;
  transition:
    border-color 0.14s,
    box-shadow 0.14s;
}
.entity-card:hover {
  border-color: #bdcbb4;
  box-shadow: 0 5px 18px #33442b08;
}
.card-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  color: inherit;
}
.card-image {
  aspect-ratio: 4/4.4;
  background: #edf0e8;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-image.landscape {
  aspect-ratio: 4/3;
}
.card-image.square {
  aspect-ratio: 1;
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s;
  display: block;
}
.card-image.contain img {
  object-fit: contain;
}
.card-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #aab49f;
}
.card-placeholder .icon {
  width: 42px;
  height: 42px;
  stroke-width: 1;
}
.card-placeholder span {
  font-size: 11px;
  color: #9ca58e;
}
.card-content {
  padding: 16px 16px 14px;
}
.card-title-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 4px;
}
.card-title {
  font-size: 14px;
  font-weight: 610;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.card-subtitle {
  font-size: 11px;
  color: #929a88;
  min-height: 17px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.card-footer {
  border-top: 1px solid #eff1eb;
  margin-top: 13px;
  padding-top: 11px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  min-width: 0;
}
.card-footer > .icon-button {
  height: 24px;
  width: 24px;
  margin-left: auto;
}
.card-checkbox {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  accent-color: var(--green);
  width: 17px;
  height: 17px;
  margin: 0;
  opacity: 0;
  transition: opacity 0.1s;
  box-shadow: 0 0 0 4px #ffffffbd;
  border-radius: 3px;
}
.entity-card:hover .card-checkbox,
.card-checkbox:checked,
.card-checkbox:focus-visible,
.entity-grid.has-selection .card-checkbox {
  opacity: 1;
}
.card-top-label {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #fffffff0;
  border: 1px solid #ffffffaa;
  border-radius: 5px;
  padding: 3px 7px;
  font-size: 10px;
  color: #75866b;
}
.card-selected {
  border-color: #6d8f61;
  box-shadow: 0 0 0 2px #e1eada;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  line-height: 1.35;
  font-weight: 520;
  white-space: nowrap;
  color: #88927e;
}
.status-dot {
  width: 5px;
  height: 5px;
  flex: none;
  border-radius: 50%;
  background: currentColor;
}
.status-success {
  color: #729369;
}
.status-working {
  color: #6b8ca8;
}
.status-attention {
  color: #a69057;
}
.status-error {
  color: #b36d64;
}
.status-neutral {
  color: #97a18b;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  border: 1px solid #e8ece2;
  background: #f8f9f5;
  border-radius: 5px;
  padding: 3px 6px;
  font-size: 10px;
  color: #879277;
  white-space: nowrap;
}
.chip button {
  border: 0;
  background: transparent;
  padding: 0;
  display: flex;
  color: inherit;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.hint-row {
  margin: 25px 0 0;
  padding: 12px 14px;
  border: 1px solid #e8e8da;
  border-radius: 8px;
  background: #f4f3e9;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #979170;
  font-size: 11px;
}
.hint-row > .icon {
  color: #b0a881;
}
.hint-row .button {
  margin-left: auto;
}
.empty-state {
  min-height: 260px;
  border: 1px dashed #d8dfd0;
  border-radius: 12px;
  padding: 48px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  background: #f9faf7;
}
.empty-symbol {
  height: 60px;
  width: 60px;
  background: #edf1e7;
  color: #94a486;
  border-radius: 18px;
  display: grid;
  place-items: center;
  margin-bottom: 19px;
}
.empty-state h3 {
  font-size: 16px;
  margin-bottom: 7px;
  color: #4c5d42;
}
.empty-state p {
  font-size: 12px;
  color: #949d88;
  max-width: 400px;
  line-height: 1.7;
}
.empty-actions {
  margin-top: 23px;
  display: flex;
  gap: 9px;
  justify-content: center;
  flex-wrap: wrap;
}
.panel {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 22px;
}
.panel-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.panel-header .button,
.panel-header .icon-button {
  margin-left: auto;
}
.section-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 28px 0 15px;
}
.section-title:first-child {
  margin-top: 0;
}
.section-title h2 {
  font-size: 15px;
  letter-spacing: -0.2px;
}
.section-title .section-count {
  color: var(--subtle);
  font-size: 11px;
}
.section-title .button {
  margin-left: auto;
}
.detail-header {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 24px;
}
.detail-avatar {
  width: 62px;
  height: 62px;
  object-fit: cover;
  background: #e8ede2;
  border-radius: 13px;
  flex: none;
  display: grid;
  place-items: center;
  color: #9aab8c;
  overflow: hidden;
}
.detail-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.detail-title {
  flex: 1;
  min-width: 0;
}
.detail-title h1 {
  font-size: 24px;
}
.detail-title p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 7px;
  max-width: 700px;
}
.detail-actions {
  display: flex;
  gap: 7px;
  align-items: center;
}
.stage-tabs {
  display: flex;
  gap: 22px;
  border-bottom: 1px solid var(--line);
  margin: 0 0 28px;
  overflow-x: auto;
}
.stage-tab {
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  padding: 0 3px 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: #929c86;
  white-space: nowrap;
  font-weight: 530;
}
.stage-tab.active {
  color: var(--green);
  border-bottom-color: var(--green);
}
.stage-tab .step-number {
  height: 19px;
  width: 19px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e9eee1;
  color: #9ca991;
  font-size: 9px;
}
.stage-tab.active .step-number {
  background: #dce8d5;
  color: var(--green);
}
.detail-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 275px;
  gap: 24px;
}
.detail-aside {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-self: start;
}
.detail-aside .panel {
  padding: 17px;
}
.description {
  font-size: 12px;
  white-space: pre-wrap;
  line-height: 1.8;
  color: #7e8973;
}
.key-value {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 12px;
  border-bottom: 1px solid #eff2e9;
  padding: 9px 0;
}
.key-value:last-child {
  border-bottom: 0;
}
.key-value dt {
  color: var(--muted);
}
.key-value dd {
  margin: 0;
  text-align: right;
}
.variant-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 14px;
}
.variant {
  min-width: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.variant.selected {
  border-color: #83a078;
  box-shadow: 0 0 0 2px #e5eddf;
}
.variant-media {
  position: relative;
  aspect-ratio: 3/4;
  background: #eef1e8;
}
.variant-media.landscape {
  aspect-ratio: 4/3;
}
.variant-media img {
  height: 100%;
  width: 100%;
  object-fit: contain;
  cursor: zoom-in;
}
.variant-body {
  padding: 10px 11px;
}
.variant-topline {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 9px;
  font-size: 10px;
  color: var(--muted);
}
.variant-actions {
  display: flex;
  gap: 5px;
}
.variant-actions .button {
  flex: 1;
  font-size: 10px;
  min-height: 29px;
  padding: 5px 7px;
}
.variant-actions .icon-button {
  height: 29px;
  width: 28px;
}
.version-tag {
  font-size: 9px;
  background: #f0f3ea;
  color: #8a977d;
  padding: 2px 5px;
  border-radius: 4px;
}
.selected-mark {
  position: absolute;
  top: 9px;
  right: 9px;
  height: 23px;
  width: 23px;
  background: #607f52;
  color: white;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.slot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.slot-header h3 {
  font-size: 13px;
}
.slot-header p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
}
.slot-empty {
  min-height: 180px;
}
.slot-empty.empty-state {
  padding: 22px;
}
.slot-empty .empty-symbol {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  margin-bottom: 12px;
}
.slot-empty h3 {
  font-size: 13px;
}
.slot-empty p {
  font-size: 11px;
}
.slot-empty .empty-actions {
  margin-top: 15px;
}
.reference-strip {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding-bottom: 3px;
}
.reference-thumb {
  width: 64px;
  flex: none;
  position: relative;
}
.reference-thumb img {
  height: 64px;
  width: 64px;
  object-fit: cover;
  border-radius: 7px;
  border: 1px solid var(--line);
  cursor: zoom-in;
}
.reference-thumb .icon-button {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #fff;
  border: 1px solid var(--line);
  width: 19px;
  height: 19px;
  border-radius: 50%;
}
.reference-thumb .icon-button .icon {
  width: 11px;
  height: 11px;
}
.reference-add {
  height: 64px;
  width: 64px;
  display: grid;
  place-items: center;
  border: 1px dashed #d8e0cd;
  border-radius: 7px;
  background: #f8faf4;
  color: #97a389;
  flex: none;
}
.reference-add:hover {
  background: #eef3e6;
}
.material-card {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
}
.material-info {
  padding: 12px;
}
.material-info .filename {
  font-size: 11px;
  margin-bottom: 9px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.material-info .chips {
  min-height: 24px;
}
.material-actions {
  display: flex;
  gap: 5px;
  justify-content: space-between;
  margin-top: 10px;
}
.material-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}
.material-image {
  width: 100%;
  height: 170px;
  object-fit: contain;
  background: #edf0e8;
  cursor: zoom-in;
}
.file-preview {
  height: 170px;
  background: #edf0e8;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 9px;
  color: #9eac91;
}
.file-preview .icon {
  width: 38px;
  height: 38px;
  stroke-width: 1.1;
}
.file-preview span {
  font-size: 11px;
}
.upload-zone {
  border: 1px dashed #c9d6be;
  background: #f4f8ef;
  border-radius: 10px;
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 22px;
}
.upload-zone.dragging {
  border-color: #5b8350;
  background: #e8f1e1;
}
.upload-zone > .icon {
  color: #9aaf8c;
}
.upload-zone h3 {
  font-size: 13px;
  margin-bottom: 4px;
}
.upload-zone p {
  font-size: 11px;
  color: #8e9b81;
}
.upload-zone .button {
  margin-left: auto;
}
.bulk-bar {
  position: sticky;
  bottom: 20px;
  margin: 20px auto 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 11px 16px;
  border: 1px solid #cbd8c1;
  border-radius: 11px;
  background: #eff5e9;
  box-shadow: 0 8px 25px #263d2010;
  max-width: 600px;
  font-size: 12px;
}
.bulk-bar .button {
  margin-left: auto;
}
.jobs-button {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 0;
  background: none;
  font-size: 11px;
  color: #7c8e72;
  padding: 7px 4px;
}
.job-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.job-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.job-row:last-child {
  border-bottom: 0;
}
.job-symbol {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  background: #edf2e6;
  border-radius: 8px;
  color: #99a88b;
}
.job-title {
  font-size: 12px;
  font-weight: 570;
}
.job-description {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.6;
}
.job-detail {
  margin-top: 7px;
  font-size: 11px;
  color: #a3776a;
}
.read-error {
  border: 1px solid #ead9d2;
  border-radius: 10px;
  background: #fcf5f1;
  padding: 18px;
  display: flex;
  gap: 12px;
  align-items: center;
  color: #a26f61;
  font-size: 12px;
  margin-bottom: 20px;
}
.read-error .button {
  margin-left: auto;
}
.connection-bar {
  background: #f4ecda;
  border-bottom: 1px solid #eadfc6;
  color: #988259;
  padding: 8px 20px;
  text-align: center;
  font-size: 11px;
}
.skeleton {
  background: linear-gradient(90deg, #e9ede3 25%, #f0f3eb 50%, #e9ede3 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: 8px;
}
.skeleton-card {
  height: 320px;
}
.spinner {
  height: 14px;
  width: 14px;
  border: 1.5px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  display: inline-block;
  animation: spin 0.8s linear infinite;
  flex: none;
}
.busy-dot {
  height: 6px;
  width: 6px;
  border-radius: 50%;
  background: #8eac83;
  box-shadow: 0 0 0 4px #edf2e7;
}
.popover {
  position: fixed;
  z-index: 90;
  min-width: 190px;
  max-width: min(320px, calc(100vw - 24px));
  background: #fff;
  border: 1px solid #dce4d4;
  border-radius: 10px;
  padding: 5px;
  box-shadow: 0 10px 35px #20301818;
}
.menu-item {
  display: flex;
  width: 100%;
  gap: 9px;
  align-items: center;
  border: 0;
  background: none;
  text-align: left;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 12px;
}
.menu-item:hover {
  background: #f0f5e9;
}
.menu-item.danger {
  color: var(--red);
}
.menu-divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 4px 6px;
}
.menu-label {
  padding: 7px 12px 4px;
  font-size: 10px;
  color: var(--muted);
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: #18251952;
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 100;
  animation: fade-in 0.12s;
}
.modal {
  width: 480px;
  max-width: 100%;
  max-height: calc(100dvh - 48px);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 24px 90px #13220e33;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  outline: none;
}
.modal-wide {
  width: 820px;
}
.modal-header {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
  flex: none;
}
.modal-header h2 {
  font-size: 16px;
  flex: 1;
  letter-spacing: -0.2px;
}
.modal-header .icon-button {
  margin: -5px -5px -5px 0;
}
.modal-body {
  padding: 22px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.modal-footer {
  padding: 15px 22px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  background: #fcfdfb;
  flex: none;
}
.form-stack {
  display: flex;
  flex-direction: column;
  gap: 17px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}
.field-label {
  font-size: 12px;
  font-weight: 560;
  color: #65745c;
}
.field-help {
  font-size: 10px;
  color: #9aa28f;
  line-height: 1.6;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
input:not([type="checkbox"]):not([type="range"]):not([type="file"]):not(
    [type="color"]
  ),
textarea,
select {
  border: 1px solid #dfe6d7;
  border-radius: 7px;
  background: #fbfcf9;
  width: 100%;
  min-height: 38px;
  padding: 9px 11px;
  font-size: 12px;
  color: var(--ink);
  transition:
    border-color 0.1s,
    box-shadow 0.1s;
}
input::placeholder,
textarea::placeholder {
  color: #a6af9b;
}
textarea {
  resize: vertical;
  min-height: 90px;
  line-height: 1.65;
}
input:focus,
textarea:focus,
select:focus {
  border-color: #9bb38c;
  box-shadow: 0 0 0 3px #eff4e9;
  outline: none;
}
input[type="checkbox"] {
  accent-color: var(--green);
}
input[type="range"] {
  accent-color: var(--green);
  width: 100%;
}
input[type="color"] {
  height: 36px;
  width: 48px;
  border: 1px solid var(--line);
  padding: 3px;
  border-radius: 6px;
  background: #fff;
}
input[type="file"] {
  font-size: 11px;
  max-width: 100%;
}
input[type="file"]::file-selector-button {
  font: inherit;
  border: 1px solid var(--line);
  padding: 8px 10px;
  border-radius: 7px;
  background: #f5f8f1;
  color: #758969;
  margin-right: 10px;
}
.form-error {
  border: 1px solid #efd9d2;
  background: #fff6f1;
  padding: 11px 12px;
  border-radius: 7px;
  color: #a06959;
  font-size: 12px;
  line-height: 1.6;
}
.form-note {
  padding: 11px 13px;
  border: 1px solid #e5e8d9;
  background: #f8f9f1;
  border-radius: 7px;
  font-size: 11px;
  line-height: 1.7;
  color: #8d977b;
}
.confirmation-copy {
  font-size: 13px;
  color: #7b8770;
  line-height: 1.8;
}
.inline-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #79896c;
}
.inline-check input {
  margin: 0;
}
.expandable {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.expandable summary {
  font-size: 11px;
  color: var(--muted);
  cursor: pointer;
  margin-bottom: 14px;
}
.generation-preview {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 20px;
}
.generation-source {
  background: #edf1e5;
  border-radius: 9px;
  overflow: hidden;
  align-self: start;
}
.generation-source img {
  width: 100%;
  max-height: 250px;
  object-fit: contain;
  cursor: zoom-in;
}
.generation-source p {
  font-size: 10px;
  color: #8f9d80;
  padding: 9px;
  text-align: center;
}
.engine-options {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 10px;
}
.engine-options select {
  width: auto;
  min-width: 140px;
}
.engine-reason {
  font-size: 11px;
  color: #a28a68;
}
.reference-select-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 8px;
  max-height: 220px;
  overflow: auto;
}
.reference-option {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
  cursor: pointer;
  background: #eef1e8;
}
.reference-option img {
  width: 100%;
  height: 86px;
  object-fit: cover;
}
.reference-option input {
  position: absolute;
  top: 6px;
  left: 6px;
  width: 15px;
  height: 15px;
}
.reference-option:has(input:checked) {
  border-color: #658650;
  box-shadow: 0 0 0 2px #e1ebd9;
}
.reference-option span {
  display: block;
  font-size: 9px;
  padding: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.notifications {
  position: fixed;
  bottom: 24px;
  left: calc(50% + var(--sidebar) / 2);
  transform: translateX(-50%);
  z-index: 150;
  display: flex;
  flex-direction: column;
  gap: 9px;
  max-width: min(520px, calc(100vw - 28px));
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid #d7e3cd;
  border-radius: 10px;
  padding: 12px 13px;
  box-shadow: 0 5px 30px #243a1818;
  font-size: 12px;
  color: #668155;
  pointer-events: auto;
  animation: fade-in 0.15s;
}
.toast > span {
  flex: 1;
}
.toast .icon-button {
  width: 23px;
  height: 23px;
  margin-left: 9px;
}
.toast-error {
  color: #a56e60;
  border-color: #ead6cd;
}
.auth-screen {
  display: grid;
  place-items: center;
  min-height: 100dvh;
  padding: 30px;
  background: #f4f6ef;
}
.auth-card {
  width: 390px;
  max-width: 100%;
  padding: 32px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 12px 40px #263b1808;
}
.auth-card .brand {
  margin: 0 0 28px;
}
.auth-card h1 {
  font-size: 22px;
  margin-bottom: 8px;
}
.auth-card > p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 25px;
  line-height: 1.7;
}
.auth-footer {
  text-align: center;
  font-size: 10px;
  color: #a5ae99;
  margin-top: 22px;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 19px;
}
.project-card {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  transition: border-color 0.12s;
  min-height: 180px;
}
.project-card:hover {
  border-color: #adbd9f;
}
.project-card .project-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #edf2e5;
  color: #93a480;
}
.project-card h2 {
  font-size: 17px;
}
.project-card p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.65;
}
.project-card-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  font-size: 10px;
  color: #a3ad96;
}
.project-card-footer .icon {
  margin-left: auto;
}
.look-card {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 11px;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  gap: 17px;
  padding: 14px;
  align-items: center;
  margin-bottom: 12px;
}
.look-card-image {
  width: 120px;
  height: 110px;
  background: #eef2e7;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a7b59a;
  overflow: hidden;
}
.look-card-image img {
  height: 100%;
  width: 100%;
  object-fit: contain;
}
.look-card h3 {
  margin-bottom: 5px;
}
.look-card p {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 9px;
}
.look-card .icon-button {
  margin-right: 4px;
}
.usage-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 15px;
}
.usage-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 11px;
}
.usage-row > div {
  flex: 1;
}
.usage-row strong {
  font-weight: 550;
}
.usage-row p {
  font-size: 10px;
  color: var(--muted);
  margin-top: 3px;
}
.usage-row select {
  width: 130px;
  min-height: 31px;
  font-size: 10px;
  padding: 5px 6px;
}
.usage-row .icon-button {
  height: 27px;
  width: 27px;
}
.provider-card {
  display: flex;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 15px 0;
  align-items: flex-start;
}
.provider-card:last-child {
  border-bottom: 0;
}
.provider-logo {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 650;
  color: #778d67;
}
.provider-card h3 {
  font-size: 12px;
}
.provider-card p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.65;
}
.provider-card > div:nth-child(2) {
  flex: 1;
}
.bundle-row {
  display: flex;
  align-items: center;
  gap: 15px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 17px;
  border-radius: 10px;
  margin-bottom: 12px;
}
.bundle-row > .icon {
  color: #9bac8c;
}
.bundle-row h3 {
  font-size: 13px;
}
.bundle-row p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}
.bundle-row > .button {
  margin-left: auto;
}
.viewer-backdrop {
  position: fixed;
  inset: 0;
  background: #111711ed;
  z-index: 120;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(8px);
}
.viewer-header {
  height: 65px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #d8dfd1;
  flex: none;
}
.viewer-title {
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.viewer-header .icon-button {
  color: #c4cebb;
  background: #ffffff09;
}
.viewer-header .icon-button:hover {
  background: #ffffff18;
}
.viewer-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: none;
}
.viewer-image {
  max-width: none;
  max-height: none;
  object-fit: contain;
  transform-origin: center;
  user-select: none;
  -webkit-user-drag: none;
  will-change: transform;
  cursor: grab;
  box-shadow: 0 8px 50px #0003;
}
.viewer-image:active {
  cursor: grabbing;
}
.viewer-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  padding: 7px 11px;
  background: #202a20e6;
  border: 1px solid #ffffff16;
  border-radius: 11px;
  z-index: 2;
  color: #c9d4c1;
}
.viewer-controls .icon-button {
  color: #c9d4c1;
}
.viewer-controls .icon-button:hover {
  background: #ffffff16;
}
.viewer-scale {
  font-size: 10px;
  min-width: 43px;
  text-align: center;
}
.viewer-error {
  color: #d1b3a4;
  text-align: center;
  padding: 25px;
}
.viewer-loading {
  color: #a3b299;
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}
.viewer-caption {
  position: absolute;
  left: 24px;
  bottom: 31px;
  font-size: 10px;
  color: #8a9980;
  pointer-events: none;
}
.editor-backdrop {
  padding: 16px;
  background: #22321c63;
}
.sheet-modal {
  width: min(1500px, 100%);
  height: calc(100dvh - 32px);
  max-height: none;
  border-radius: 12px;
}
.sheet-modal .modal-body {
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex: 1;
  min-height: 0;
}
.sheet-toolbar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  flex: none;
  flex-wrap: wrap;
}
.sheet-toolbar .save-state {
  font-size: 10px;
  color: #94a184;
  margin-left: auto;
}
.editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  flex: 1;
  min-height: 0;
}
.sheet-stage {
  background: #e9ede2;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 30px;
  touch-action: none;
  min-width: 0;
}
.sheet-canvas {
  position: relative;
  flex: none;
  background: #e5e5e5;
  box-shadow: 0 3px 25px #25371c17;
  overflow: hidden;
  transform-origin: top left;
}
.sheet-layer {
  position: absolute;
  overflow: hidden;
  touch-action: none;
  cursor: move;
}
.sheet-layer img {
  position: absolute;
  max-width: none;
  max-height: none;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}
.sheet-layer.active {
  outline: 2px solid #607f51;
  outline-offset: -2px;
  z-index: 4;
}
.sheet-layer-role {
  position: absolute;
  left: 0;
  top: 0;
  background: #607f51;
  color: white;
  font-size: 9px;
  line-height: 1.5;
  padding: 2px 6px;
  pointer-events: none;
  z-index: 2;
}
.sheet-resize-handle {
  position: absolute;
  width: 10px;
  height: 10px;
  background: white;
  border: 2px solid #607f51;
  right: 0;
  bottom: 0;
  cursor: nwse-resize;
  z-index: 5;
}
.sheet-inspector {
  background: #fff;
  border-left: 1px solid var(--line);
  padding: 17px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.sheet-inspector h3 {
  font-size: 12px;
  margin-bottom: 13px;
}
.sheet-inspector .field-label {
  font-size: 10px;
}
.sheet-inspector .field-row {
  gap: 7px;
}
.sheet-inspector .field-row input {
  font-size: 10px;
  min-height: 31px;
  padding: 5px 7px;
}
.sheet-inspector .field {
  gap: 4px;
}
.layer-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 20px;
}
.layer-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px;
  border: 1px solid transparent;
  background: #f7f9f3;
  border-radius: 6px;
  text-align: left;
  font-size: 10px;
}
.layer-row.active {
  border-color: #c6d6b8;
  background: #edf4e6;
}
.layer-row img {
  height: 30px;
  width: 25px;
  object-fit: contain;
  background: #e4e7df;
  border-radius: 3px;
}
.layer-row span {
  flex: 1;
}
.editor-draft-note {
  background: #f8f3df;
  border-bottom: 1px solid #eae0bb;
  color: #a08e56;
  padding: 9px 16px;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.editor-draft-note .button {
  margin-left: auto;
}
.sheet-controls {
  padding-top: 15px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.board-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 9px;
  margin-bottom: 18px;
}
.board-toolbar .button {
  min-height: 29px;
}
.board-toolbar .spacer {
  min-width: 0;
}
.board-scale {
  font-size: 10px;
  color: var(--muted);
  min-width: 40px;
  text-align: center;
}
.board-scroll {
  overflow: auto;
  max-height: calc(100dvh - 280px);
  min-height: 350px;
  padding-bottom: 12px;
  overscroll-behavior: contain;
  background: #f1f3ed;
  border: 1px solid var(--line);
  border-radius: 12px;
  scrollbar-gutter: stable;
}
.board-world {
  transform-origin: top left;
  padding: 22px;
  min-width: 800px;
}
.episode-lane {
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr);
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid #e1e7d9;
}
.episode-lane:first-child {
  padding-top: 0;
}
.episode-lane:last-child {
  border: 0;
  padding-bottom: 0;
}
.episode-label {
  padding: 10px 4px;
  position: sticky;
  left: 0;
}
.episode-label h2 {
  font-size: 15px;
}
.episode-label p {
  font-size: 10px;
  color: var(--muted);
  margin-top: 6px;
}
.episode-label .chips {
  margin-top: 11px;
}
.episode-content {
  display: flex;
  gap: 22px;
  align-items: flex-start;
}
.board-group {
  min-width: 175px;
  max-width: 620px;
}
.board-group-label {
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #9ba68f;
  margin-bottom: 10px;
}
.board-group-items {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.board-card {
  width: 145px;
  background: #fff;
  border: 1px solid #dfe6d6;
  border-radius: 8px;
  overflow: hidden;
  flex: none;
}
.board-card button {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: none;
  text-align: left;
}
.board-card img {
  height: 115px;
  width: 100%;
  object-fit: contain;
  background: #e7ecdf;
}
.board-card .board-placeholder {
  height: 90px;
  background: #eef1e7;
  display: grid;
  place-items: center;
  color: #b0bba3;
}
.board-card-body {
  padding: 9px;
}
.board-card-title {
  font-size: 10px;
  font-weight: 550;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 5px;
}
.board-card .chips {
  margin-top: 6px;
}
.board-card .chip {
  font-size: 8px;
  padding: 1px 4px;
}
.board-card .status {
  font-size: 8px;
}
.board-card-actions {
  padding: 0 8px 8px;
  display: flex;
  gap: 5px;
}
.board-card-actions .button {
  font-size: 8px;
  min-height: 24px;
  padding: 4px 5px;
  flex: 1;
}
.board-empty {
  font-size: 11px;
  color: #a4ae98;
  padding: 15px 0;
}
.board-summary {
  display: flex;
  gap: 14px;
  margin-bottom: 16px;
  font-size: 11px;
  color: var(--muted);
}
.board-summary strong {
  font-weight: 600;
  color: #6c825e;
  margin-right: 4px;
}
.library-meta {
  padding: 13px;
}
.library-meta h3 {
  font-size: 13px;
  margin-bottom: 7px;
}
.library-body-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  height: 230px;
  background: #e9ede1;
  overflow: hidden;
}
.library-body-pair img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: zoom-in;
}
.library-meta .button {
  margin-top: 12px;
  width: 100%;
}
.inline-form {
  display: flex;
  align-items: end;
  gap: 10px;
}
.inline-form > .field {
  flex: 1;
}
.scene-list {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.scene-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #f7f9f3;
  border-radius: 7px;
  font-size: 11px;
}
.scene-row .icon-button {
  margin-left: auto;
  height: 25px;
  width: 25px;
}
.progress-line {
  height: 3px;
  background: #e9eee2;
  border-radius: 3px;
  margin-top: 10px;
  overflow: hidden;
}
.progress-line > span {
  display: block;
  height: 100%;
  background: #8aa576;
}
.muted-link {
  font-size: 11px;
  color: #8b9b7b;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 5px;
}
.intro-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.tag-input {
  width: 100%;
}
.keyboard-hint {
  font-size: 9px;
  color: #a4b099;
  padding: 5px 0;
}
.upload-progress {
  height: 6px;
  width: 100%;
  accent-color: var(--green);
}
.paired-slots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.paired-slots .variant-grid {
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}
@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (min-width: 1600px) {
  .main {
    padding: 40px 46px;
  }
  .topbar {
    padding: 0 46px;
  }
  .entity-grid {
    grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
  }
  .detail-columns {
    grid-template-columns: minmax(0, 1fr) 310px;
  }
}
@media (max-width: 1200px) {
  :root {
    --sidebar: 185px;
  }
  .sidebar {
    padding-left: 10px;
    padding-right: 10px;
  }
  .brand {
    gap: 8px;
    margin-left: 9px;
  }
  .brand-name {
    font-size: 13px;
  }
  .brand-subtitle {
    font-size: 8px;
  }
  .topbar {
    padding: 0 25px;
  }
  .main {
    padding: 28px 25px;
  }
  .entity-grid {
    gap: 15px;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
  .detail-columns {
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 18px;
  }
  .detail-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .variant-grid {
    grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
  }
}
@media (max-width: 1024px) {
  :root {
    --sidebar: 68px;
  }
  .sidebar {
    padding: 24px 10px 15px;
    align-items: center;
  }
  .brand {
    margin: 0 0 30px;
  }
  .brand > div:last-child,
  .nav-section-label,
  .project-switcher,
  .nav-link > span,
  .account-menu > div:not(.avatar),
  .sidebar .nav-count {
    display: none;
  }
  .nav-link {
    width: 42px;
    justify-content: center;
    padding: 12px;
  }
  .sidebar nav,
  .sidebar-bottom {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .nav-divider {
    width: 25px;
    margin: 20px 0;
  }
  .account-menu {
    padding: 15px 0 0;
    margin-top: 15px;
    gap: 0;
  }
  .account-menu > .icon-button {
    display: none;
  }
  .topbar {
    height: 64px;
  }
  .main {
    padding: 26px;
  }
  .page-header {
    margin-bottom: 22px;
  }
  .page-actions {
    max-width: 300px;
  }
  .detail-columns {
    display: flex;
    flex-direction: column;
  }
  .detail-aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }
  .detail-aside .panel {
    min-width: 0;
  }
  .entity-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
  .project-indicator {
    display: none;
  }
  .paired-slots .variant-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
  .editor-layout {
    grid-template-columns: minmax(0, 1fr) 205px;
  }
  .sheet-inspector {
    padding: 12px;
  }
  .generation-preview {
    grid-template-columns: 145px minmax(0, 1fr);
  }
}
@media (max-width: 720px) {
  :root {
    --sidebar: 0px;
  }
  .app-shell {
    display: block;
  }
  .sidebar {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 230px;
    align-items: stretch;
    padding: 24px 17px;
    z-index: 50;
    box-shadow: 5px 0 35px #25311b35;
  }
  .app-shell.nav-open .sidebar {
    display: flex;
  }
  .app-shell.nav-open::before {
    content: "";
    position: fixed;
    inset: 0;
    background: #17231070;
    z-index: 40;
  }
  .sidebar .brand {
    margin: 0 10px 25px;
  }
  .sidebar .brand > div:last-child,
  .sidebar .nav-section-label,
  .sidebar .project-switcher,
  .sidebar .nav-link > span,
  .sidebar .account-menu > div:not(.avatar) {
    display: block;
  }
  .sidebar nav,
  .sidebar .sidebar-bottom {
    display: block;
    width: auto;
  }
  .sidebar .nav-link {
    width: 100%;
    justify-content: flex-start;
    padding: 11px 12px;
  }
  .sidebar .nav-divider {
    width: auto;
    margin: 20px 10px;
  }
  .sidebar .account-menu {
    padding: 15px 8px 0;
    gap: 9px;
  }
  .sidebar .account-menu > .icon-button {
    display: inline-flex;
  }
  .mobile-menu {
    display: inline-flex;
  }
  .topbar {
    height: 61px;
    padding: 0 16px;
    gap: 8px;
  }
  .topbar-actions {
    gap: 7px;
  }
  .topbar-actions > .button span {
    display: none;
  }
  .topbar-actions > .button {
    padding: 7px;
    min-height: 32px;
  }
  .breadcrumb {
    font-size: 11px;
    gap: 7px;
  }
  .breadcrumb > a:first-child,
  .breadcrumb > .icon:first-of-type {
    display: none;
  }
  .main {
    padding: 25px 18px;
  }
  .page-header {
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 22px;
  }
  .page-heading {
    flex: 1;
    min-width: 180px;
  }
  h1 {
    font-size: 24px;
  }
  .page-heading p {
    font-size: 12px;
    margin-top: 7px;
  }
  .page-actions {
    margin-left: 0;
    max-width: none;
    width: 100%;
    justify-content: flex-start;
    gap: 7px;
  }
  .page-actions .button {
    min-height: 35px;
  }
  .toolbar {
    gap: 8px;
    margin-bottom: 20px;
  }
  .search {
    max-width: none;
    flex-basis: 100%;
  }
  .filter-select {
    min-width: 0;
    flex: 1;
  }
  .toolbar-count {
    font-size: 10px;
  }
  .entity-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .card-image {
    aspect-ratio: 3/4;
  }
  .card-content {
    padding: 12px 10px 10px;
  }
  .card-title {
    font-size: 12px;
  }
  .card-subtitle {
    font-size: 10px;
  }
  .card-footer {
    margin-top: 9px;
    padding-top: 9px;
    flex-wrap: wrap;
  }
  .status {
    font-size: 9px;
  }
  .chip {
    font-size: 9px;
    padding: 2px 5px;
  }
  .card-checkbox {
    opacity: 1;
    width: 14px;
    height: 14px;
    top: 9px;
    left: 9px;
  }
  .card-top-label {
    font-size: 8px;
    top: 9px;
    right: 9px;
    padding: 2px 4px;
  }
  .card-placeholder .icon {
    width: 31px;
    height: 31px;
  }
  .card-placeholder span {
    font-size: 9px;
  }
  .hint-row {
    font-size: 10px;
    align-items: flex-start;
    padding: 10px;
    margin-top: 19px;
    flex-wrap: wrap;
    gap: 7px;
  }
  .hint-row .button {
    margin-left: 22px;
  }
  .empty-state {
    padding: 35px 18px;
  }
  .detail-header {
    gap: 11px;
    flex-wrap: wrap;
  }
  .detail-avatar {
    height: 48px;
    width: 48px;
    border-radius: 10px;
  }
  .detail-title {
    min-width: 200px;
  }
  .detail-title h1 {
    font-size: 22px;
  }
  .detail-title p {
    font-size: 11px;
  }
  .detail-actions {
    margin-left: 59px;
    margin-top: -6px;
    justify-content: flex-start;
  }
  .stage-tabs {
    gap: 19px;
    margin-bottom: 22px;
  }
  .stage-tab {
    font-size: 11px;
    padding-bottom: 11px;
    gap: 6px;
  }
  .stage-tab .step-number {
    height: 16px;
    width: 16px;
    font-size: 8px;
  }
  .detail-aside {
    grid-template-columns: 1fr;
  }
  .variant-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
  }
  .paired-slots {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .paired-slots .variant-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .slot-header {
    gap: 9px;
  }
  .slot-header > .button {
    font-size: 10px;
    padding: 6px 8px;
    min-height: 31px;
  }
  .slot-header h3 {
    font-size: 12px;
  }
  .slot-header p {
    font-size: 10px;
  }
  .variant-topline {
    font-size: 9px;
  }
  .variant-body {
    padding: 9px;
  }
  .variant-actions .button {
    font-size: 9px;
    padding: 5px;
  }
  .variant-actions .icon-button {
    width: 25px;
  }
  .modal-backdrop {
    padding: 12px;
    align-items: center;
  }
  .modal {
    max-height: calc(100dvh - 24px);
    border-radius: 12px;
  }
  .modal-header {
    padding: 17px;
  }
  .modal-header h2 {
    font-size: 15px;
  }
  .modal-body {
    padding: 17px;
  }
  .modal-footer {
    padding: 13px 17px;
  }
  .generation-preview {
    grid-template-columns: 1fr;
  }
  .generation-source {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px;
  }
  .generation-source img {
    height: 75px;
    width: 75px;
    border-radius: 5px;
  }
  .generation-source p {
    padding: 0;
    text-align: left;
  }
  .reference-select-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .reference-option img {
    height: 65px;
  }
  .notifications {
    left: 50%;
    bottom: 15px;
  }
  .upload-zone {
    align-items: flex-start;
    gap: 11px;
    padding: 16px;
    flex-wrap: wrap;
  }
  .upload-zone > .icon {
    height: 22px;
    width: 22px;
  }
  .upload-zone > div {
    flex: 1;
    min-width: 180px;
  }
  .upload-zone .button {
    margin-left: 33px;
  }
  .upload-zone h3 {
    font-size: 12px;
  }
  .upload-zone p {
    font-size: 10px;
  }
  .material-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .material-image,
  .file-preview {
    height: 140px;
  }
  .material-info {
    padding: 10px;
  }
  .material-actions .button {
    font-size: 9px;
    padding: 5px 7px;
  }
  .material-info .filename {
    font-size: 10px;
  }
  .look-card {
    grid-template-columns: 70px minmax(0, 1fr) auto;
    padding: 10px;
    gap: 12px;
  }
  .look-card-image {
    width: 70px;
    height: 95px;
  }
  .look-card h3 {
    font-size: 12px;
  }
  .look-card p {
    font-size: 10px;
  }
  .project-grid {
    grid-template-columns: 1fr;
  }
  .panel {
    padding: 18px;
  }
  .section-title h2 {
    font-size: 14px;
  }
  .bulk-bar {
    font-size: 11px;
    padding: 10px;
    gap: 9px;
    bottom: 12px;
  }
  .bulk-bar .button {
    font-size: 10px;
    padding: 7px;
  }
  .viewer-header {
    height: 57px;
    padding: 0 14px;
    gap: 8px;
  }
  .viewer-title {
    font-size: 10px;
  }
  .viewer-caption {
    display: none;
  }
  .viewer-controls {
    bottom: 17px;
    padding: 6px 8px;
    gap: 7px;
  }
  .viewer-controls .icon-button {
    width: 31px;
    height: 31px;
  }
  .editor-backdrop {
    padding: 0;
  }
  .sheet-modal {
    width: 100%;
    height: 100dvh;
    border-radius: 0;
  }
  .sheet-modal .modal-header {
    padding: 12px;
  }
  .sheet-toolbar {
    padding: 8px;
    gap: 4px;
  }
  .sheet-toolbar > .button {
    font-size: 10px;
    padding: 6px 7px;
    min-height: 30px;
  }
  .sheet-toolbar .save-state {
    width: 100%;
    margin: 2px 4px 0;
    font-size: 9px;
  }
  .editor-layout {
    display: flex;
    flex-direction: column;
  }
  .sheet-stage {
    min-height: 230px;
    flex: 1;
    padding: 18px;
  }
  .sheet-inspector {
    border-left: 0;
    border-top: 1px solid var(--line);
    max-height: 210px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 13px;
    overflow: auto;
  }
  .sheet-inspector h3 {
    font-size: 11px;
  }
  .layer-list {
    margin-bottom: 0;
  }
  .layer-row {
    padding: 5px;
    font-size: 9px;
  }
  .layer-row img {
    height: 24px;
    width: 20px;
  }
  .sheet-controls {
    padding-top: 0;
    border-top: 0;
    gap: 8px;
  }
  .sheet-inspector .field-label {
    font-size: 9px;
  }
  .sheet-inspector .field-row input {
    min-height: 28px;
  }
  .sheet-inspector .keyboard-hint {
    display: none;
  }
  .editor-draft-note {
    font-size: 10px;
    padding: 8px;
  }
  .board-toolbar {
    gap: 5px;
    padding: 9px;
    flex-wrap: wrap;
  }
  .board-toolbar .button {
    font-size: 10px;
    padding: 5px 8px;
  }
  .board-toolbar .icon-button,
  .board-toolbar .board-scale,
  .board-toolbar .board-zoom-label {
    display: none;
  }
  .board-summary {
    font-size: 10px;
    gap: 10px;
    flex-wrap: wrap;
  }
  .board-scroll {
    max-height: none;
    min-height: 0;
    overflow: visible;
    background: none;
    border: none;
    padding: 0;
  }
  .board-world {
    min-width: 0;
    padding: 0;
    transform: none !important;
    width: auto !important;
  }
  .episode-lane {
    display: block;
    padding: 22px 0;
  }
  .episode-label {
    position: static;
    padding: 0 0 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
  }
  .episode-label h2 {
    font-size: 15px;
  }
  .episode-label p {
    margin: 0;
    font-size: 10px;
  }
  .episode-label .chips {
    margin: 0;
  }
  .episode-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  .board-group {
    max-width: none;
    width: 100%;
    min-width: 0;
  }
  .board-group-items {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
  }
  .board-card {
    width: 100%;
    min-width: 0;
  }
  .board-card img {
    height: 125px;
  }
  .board-card .board-placeholder {
    height: 100px;
  }
  .board-card-title {
    font-size: 11px;
  }
  .board-card .status {
    font-size: 9px;
  }
  .board-card .chip {
    font-size: 9px;
  }
  .board-card-actions .button {
    font-size: 9px;
    min-height: 28px;
  }
  .board-group-label {
    font-size: 9px;
    margin-bottom: 8px;
  }
  .entity-grid.body-grid {
    grid-template-columns: 1fr;
  }
  .library-body-pair {
    height: 260px;
  }
  .usage-row {
    gap: 7px;
    padding: 9px;
    flex-wrap: wrap;
  }
  .usage-row select {
    width: 113px;
  }
  .bundle-row {
    gap: 10px;
    padding: 13px;
    flex-wrap: wrap;
  }
  .bundle-row h3 {
    font-size: 12px;
  }
  .bundle-row p {
    font-size: 10px;
  }
  .bundle-row > .button {
    margin-left: 34px;
    font-size: 10px;
  }
  .inline-form {
    flex-wrap: wrap;
  }
  .inline-form > .field {
    flex-basis: 100%;
  }
  .job-row {
    grid-template-columns: 27px minmax(0, 1fr);
    gap: 9px;
  }
  .job-row > .status {
    grid-column: 2;
    justify-self: start;
  }
  .job-title {
    font-size: 11px;
  }
  .job-description {
    font-size: 10px;
  }
  .read-error {
    flex-wrap: wrap;
    font-size: 11px;
  }
  .read-error .button {
    margin-left: 30px;
  }
  .topbar .divider-vertical {
    display: none;
  }
}
@media (max-width: 380px) {
  .main {
    padding: 22px 14px;
  }
  .topbar {
    padding: 0 12px;
  }
  .entity-grid {
    gap: 9px;
  }
  .page-heading p {
    font-size: 11px;
  }
  .card-title {
    font-size: 11px;
  }
  .card-footer .status {
    font-size: 8px;
  }
  .field-row {
    grid-template-columns: 1fr;
  }
  .stage-tabs {
    gap: 13px;
  }
  .stage-tab {
    font-size: 10px;
  }
  .detail-title {
    min-width: 190px;
  }
  .button {
    font-size: 11px;
  }
  .toolbar .filter-select {
    font-size: 10px !important;
  }
  .material-actions {
    flex-direction: column;
  }
  .modal-backdrop {
    padding: 8px;
  }
  .modal {
    max-height: calc(100dvh - 16px);
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
  .skeleton {
    background: #e9ede3;
  }
}
.bundle-description {
  min-width: 0;
  flex: 1;
}
.bundle-contents {
  font-size: 11px;
  margin-top: 8px;
  color: var(--muted);
}
.bundle-contents summary {
  cursor: pointer;
  color: var(--green);
  display: inline-block;
}
.bundle-contents ul {
  margin: 8px 0;
  padding-left: 17px;
  line-height: 1.6;
  max-height: 240px;
  overflow: auto;
}
.bundle-contents li {
  overflow-wrap: anywhere;
}
.geometry-check {
  align-items: flex-start;
  margin-top: 15px;
}
.geometry-check input {
  flex: none;
  margin-top: 2px;
}
.geometry-check span {
  line-height: 1.4;
}
.context-help {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 23px;
  height: 23px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  vertical-align: middle;
}
.context-help:hover {
  background: #edf2e8;
  color: var(--green);
}
.context-help:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}
.info-popover {
  position: fixed;
  z-index: 220;
  width: 320px;
  max-width: calc(100vw - 24px);
  max-height: calc(100dvh - 24px);
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 40px #20301525;
  padding: 15px;
  outline: none;
}
.info-popover header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.info-popover h3 {
  font-size: 12px;
  line-height: 1.5;
  flex: 1;
}
.info-popover header .icon-button {
  width: 25px;
  height: 25px;
  margin: -4px;
}
.info-popover p {
  font-size: 11px;
  line-height: 1.65;
  color: var(--muted);
  margin: 8px 0 0;
}
.plan-summary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.precise-controls {
  width: 100%;
  font-size: 11px;
  color: var(--muted);
}
.precise-controls summary {
  cursor: pointer;
  padding: 5px 0;
}
.precise-controls > .form-stack {
  padding-top: 12px;
  gap: 12px;
}
