@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;550;600;650;700&family=Manrope:wght@400;500;600;650;700;750;800&display=swap");
:root {
  --bg: #f8f9f6;
  --surface: #fff;
  --ink: #26382e;
  --muted: #7b837c;
  --line: #e5e9e1;
  --green: #416c48;
  --light: #eaf1e5;
  --accent: #c7dca6;
  --radius: 12px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
a {
  color: var(--green);
}
button {
  color: inherit;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #93b876;
  outline-offset: 3px;
}
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #a9bd98;
  outline-offset: 1px;
}
button {
  border: 0;
  background: none;
}
input,
select,
textarea {
  color: var(--ink);
  border: 1px solid #dfe5da;
  border-radius: 7px;
  background: white;
  padding: 11px 12px;
  width: 100%;
  min-width: 0;
}
textarea {
  resize: vertical;
  line-height: 1.65;
  font-size: 13px;
}
label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  font-weight: 550;
  margin: 18px 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: "Manrope", sans-serif;
}
h1 {
  font-size: 36px;
  letter-spacing: -1.6px;
  line-height: 1.3;
  font-weight: 650;
}
h2 {
  font-size: 16px;
  letter-spacing: -0.4px;
  font-weight: 750;
}
p {
  line-height: 1.65;
}
small {
  font-size: 10px;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 232px;
  padding: 34px 22px 20px;
  background: #eef1e9;
  border-right: 1px solid #dfe4d8;
  display: flex;
  flex-direction: column;
  z-index: 5;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #2d4432;
  font-family: Manrope, sans-serif;
  font-size: 23px;
  letter-spacing: -1px;
  font-weight: 800;
}
.brand-light {
  font-weight: 450;
}
.brand small {
  display: block;
  letter-spacing: 1.9px;
  font-size: 7px;
  margin-top: 5px;
  font-family: "DM Sans", sans-serif;
  font-weight: 600;
}
.brand-mark {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  background: #35533c;
  border-radius: 8px;
  color: #e0edcc;
  font-size: 31px;
  font-weight: 400;
}
.new-project {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid #dce2d4;
  border-radius: 7px;
  width: 100%;
  padding: 12px 10px;
  margin: 38px 0 30px;
  font-weight: 550;
  text-align: left;
  font-size: 13px;
  box-shadow: 0 2px 2px #253b2710;
}
.new-project kbd {
  margin-left: auto;
  color: #9da697;
  font-size: 10px;
  border: 1px solid #e2e6db;
  padding: 2px 4px;
  border-radius: 3px;
}
.nav-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.8px;
  color: #8b9487;
  margin-bottom: 13px;
  padding: 0 10px;
}
nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
nav button {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  border-radius: 7px;
  padding: 13px 12px;
  font-size: 12px;
  color: #717d6d;
}
nav button span {
  font-size: 10px;
  font-family: monospace;
  color: #8e9a85;
}
nav button i {
  margin-left: auto;
  font-style: normal;
  opacity: 0;
}
nav button.active {
  background: #dce8d0;
  color: #344f30;
  font-weight: 650;
}
nav button.active i {
  opacity: 1;
}
.sidebar-projects {
  margin-top: 36px;
}
.sidebar-projects .nav-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
#project-list button {
  display: block;
  text-align: left;
  font-size: 12px;
  width: 100%;
  padding: 10px;
  border-radius: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#project-list button:hover {
  background: #e0e7d8;
}
.project-icon {
  color: #839978;
  margin-right: 9px;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 28px;
}
.tip-icon {
  color: #577b48;
  font-size: 28px;
  margin: 0 10px 9px;
}
.sidebar-bottom strong {
  font-size: 11px;
  margin: 0 10px;
  display: block;
}
.sidebar-bottom p {
  color: #8a9383;
  font-size: 11px;
  margin: 7px 10px 23px;
  line-height: 1.8;
}
.sidebar-bottom > button {
  border-top: 1px solid #dce2d5;
  padding: 19px 0 0;
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  font-size: 11px;
  color: #6f7d68;
}
.sidebar-bottom > button > span:last-child {
  margin-left: auto;
}
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #77985c;
  border-radius: 50%;
  flex-shrink: 0;
}
.app-shell {
  margin-left: 232px;
}
header {
  height: 77px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 38px;
  background: #ffffff80;
  gap: 20px;
}
.breadcrumbs {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 11px;
  color: #8e9489;
  min-width: 0;
}
.breadcrumbs > span:first-child {
  color: #c3c9bc;
}
.breadcrumbs input {
  border: 0;
  background: none;
  width: 170px;
  padding: 7px 0;
  font-size: 12px;
  font-weight: 600;
}
.project-tag {
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 1px;
  border: 1px solid var(--line);
  padding: 4px 6px;
  border-radius: 4px;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  white-space: nowrap;
}
.header-actions > span {
  font-size: 10px;
  color: #92998d;
}
.button {
  padding: 10px 14px;
  border: 1px solid #dce2d5;
  border-radius: 7px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 600;
  min-height: 37px;
  transition:
    background 0.15s,
    transform 0.15s;
}
.button:hover {
  background: #edf2e7;
}
.button:active {
  transform: translateY(1px);
}
.button.primary {
  background: #466d42;
  border-color: #466d42;
  color: #fff;
}
.button.primary:hover {
  background: #345a32;
}
.button.dark {
  background: #293e32;
  border-color: #293e32;
  color: white;
}
.button.subtle {
  background: #f8faf5;
}
.wide {
  width: 100%;
}
.button.wide {
  margin: 7px 0;
}
.button.wide span {
  margin-left: auto;
}
.text-button {
  color: #6c7965;
  font-size: 11px;
  padding: 7px 4px;
}
.text-button:hover {
  color: #29452e;
}
.text-button.wide {
  margin-top: 8px;
}
.muted {
  color: var(--muted);
  font-size: 12px;
  margin-top: 8px;
}
.micro {
  color: #899081;
  font-size: 10px;
  line-height: 1.7;
  margin-top: 9px;
}
main {
  max-width: 1670px;
  margin: auto;
  padding: 37px 38px 0;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 31px;
  gap: 20px;
}
.eyebrow {
  font-size: 8px;
  letter-spacing: 2.1px;
  color: #7d8c70;
  font-weight: 700;
  margin-bottom: 11px;
}
.page-heading p {
  color: #87907f;
  margin-top: 11px;
  font-size: 12px;
}
.workflow {
  display: flex;
  gap: 8px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 9px;
  padding: 11px 14px;
  margin-bottom: 29px;
}
.workflow button {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 1;
  color: #98a08e;
  font-size: 10px;
  white-space: nowrap;
  text-align: left;
}
.workflow button span {
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: #f3f5ef;
  font-size: 9px;
}
.workflow button b {
  margin-left: auto;
  color: #c6cebd;
  font-size: 20px;
  font-weight: 400;
}
.workflow button.active {
  color: #3e6237;
  font-weight: 600;
}
.workflow button.active span {
  background: #e6efd9;
  color: #3e6237;
}
.concept-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 285px;
  gap: 28px;
}
.concept-main {
  min-width: 0;
}
.section-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 21px;
  gap: 10px;
}
.tabs {
  display: flex;
  gap: 21px;
}
.tabs button {
  font-size: 11px;
  padding: 0 0 12px;
  color: #959d8c;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.tabs button.active {
  color: #3c5535;
  border-color: #627c4c;
  font-weight: 650;
}
.tabs span {
  background: #e9ede3;
  padding: 2px 5px;
  font-size: 8px;
  border-radius: 3px;
  margin-left: 4px;
  color: #78866a;
}
.section-actions {
  display: flex;
  gap: 14px;
  margin-top: -9px;
}
.concept-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.concept-card {
  border: 1px solid #e1e5dc;
  border-radius: 10px;
  overflow: hidden;
  background: white;
  position: relative;
  transition:
    border 0.2s,
    box-shadow 0.2s;
}
.concept-card.selected {
  border-color: #7d965d;
  box-shadow: 0 0 0 2px #aec58e40;
}
.concept-art {
  width: 100%;
  aspect-ratio: 1.28;
  display: block;
  padding: 0;
  position: relative;
  background: #f0eee4;
  overflow: hidden;
}
.concept-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
  transition: transform 0.3s;
}
.concept-art:hover img {
  transform: scale(1.06);
}
.concept-card:nth-child(2) .concept-art {
  background: #e9edf0;
}
.concept-card:nth-child(3) .concept-art {
  background: #efe9e1;
}
.concept-card:nth-child(4) .concept-art {
  background: #e8ece3;
}
.art-label {
  position: absolute;
  top: 13px;
  left: 13px;
  background: #ffffffbb;
  border: 1px solid #ffffff99;
  padding: 5px 7px;
  font-size: 7px;
  letter-spacing: 1px;
  border-radius: 4px;
  color: #67735d;
}
.favorite {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #ffffffc9;
  display: grid;
  place-items: center;
  font-size: 17px;
  color: #839375;
  z-index: 2;
}
.favorite.active {
  background: #f4f7ed;
  color: #53783e;
}
.concept-card-info {
  padding: 14px 14px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
}
.concept-card h3 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
}
.concept-card-info p {
  font-size: 9px;
  color: #929b87;
  margin-top: 4px;
}
.selected-check {
  border: 1px solid #d6decf;
  border-radius: 50%;
  width: 17px;
  height: 17px;
  font-size: 10px;
  display: grid;
  place-items: center;
  color: transparent;
  flex-shrink: 0;
}
.selected .selected-check {
  background: #688953;
  color: white;
  border-color: #688953;
}
.gallery-foot {
  display: flex;
  justify-content: space-between;
  margin-top: 18px;
  font-size: 8px;
  color: #929b87;
  gap: 10px;
}
.gallery-foot > span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.inspiration-strip {
  background: #edf1e6;
  border: 1px solid #e2e8d8;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  border-radius: 9px;
  margin-top: 25px;
}
.inspiration-strip > span {
  font-size: 23px;
  color: #849a64;
}
.inspiration-strip strong {
  font-size: 10px;
}
.inspiration-strip p {
  font-size: 9px;
  color: #8a947f;
  margin-top: 4px;
}
.inspiration-strip button {
  margin-left: auto;
  white-space: nowrap;
  font-size: 9px;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 23px;
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.generation-panel {
  align-self: start;
  padding: 23px 20px;
}
.spark {
  font-size: 24px;
  color: #91a47b;
}
.generation-panel .muted {
  font-size: 10px;
}
.generation-panel label {
  font-size: 10px;
  margin-top: 20px;
}
.generation-panel select {
  font-size: 10px;
  padding: 10px;
}
.generation-panel textarea {
  font-size: 11px;
  padding: 12px;
  line-height: 1.9;
  background: #fcfdfb;
}
.generation-panel .form-grid {
  gap: 12px;
}
.generation-panel .form-grid label {
  margin-top: 12px;
}
.refine {
  font-size: 9px;
  margin-top: -10px;
}
.divider {
  height: 1px;
  background: var(--line);
  margin: 21px 0;
}
.tiny-label {
  font-size: 8px;
  letter-spacing: 1.5px;
  font-weight: 650;
  color: #909b83;
}
.chosen-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 14px 0;
}
.chosen-row img {
  width: 48px;
  height: 48px;
  background: #f0f1e9;
  border-radius: 6px;
  image-rendering: pixelated;
  object-fit: contain;
}
.chosen-row strong {
  font-size: 10px;
}
.chosen-row p {
  font-size: 9px;
  color: #929a88;
  margin-top: 4px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 19px;
}
.form-grid label {
  margin: 13px 0;
}
.full {
  grid-column: 1/-1;
}
.two-col {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 25px;
}
.button-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 23px;
}
.interview-panel {
  background: #edf1e6;
  padding: 35px;
}
.interview-panel h2 {
  font-size: 26px;
  line-height: 1.5;
  margin: 19px 0 28px;
  font-weight: 600;
}
.interview-panel p {
  margin-bottom: 18px;
  font-size: 13px;
  color: #6b7a5e;
}
.interview-panel .note {
  font-size: 11px;
  line-height: 1.9;
  margin-top: 45px;
  border-top: 1px solid #d7dfcc;
  padding-top: 20px;
  color: #85917b;
}
.pill {
  font-size: 8px;
  letter-spacing: 1px;
  color: #7e8d71;
  background: #f0f4eb;
  padding: 5px 8px;
  border-radius: 4px;
}
.checker {
  background-color: #f5f5ef;
  background-image:
    linear-gradient(45deg, #e8ece2 25%, transparent 25%),
    linear-gradient(-45deg, #e8ece2 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #e8ece2 75%),
    linear-gradient(-45deg, transparent 75%, #e8ece2 75%);
  background-size: 20px 20px;
  background-position:
    0 0,
    0 10px,
    10px -10px,
    -10px 0;
}
.motion-reference {
  height: 350px;
  margin-top: 20px;
  border-radius: 8px;
  display: grid;
  place-items: center;
}
.motion-reference img {
  height: 90%;
  max-width: 95%;
  object-fit: contain;
  image-rendering: pixelated;
}
video {
  display: block;
  width: 100%;
  max-height: 420px;
  background: #17231a;
  border-radius: 8px;
  margin-top: 20px;
}
.sheet-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 25px;
}
.sheet-main > .panel {
  margin-bottom: 20px;
}
.preview-area {
  margin-top: 20px;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  position: relative;
  height: 280px;
}
.preview-area canvas {
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  image-rendering: pixelated;
}
.preview-badge {
  position: absolute;
  left: 13px;
  top: 13px;
  font-size: 8px;
  letter-spacing: 1px;
  color: #7b8e6e;
  background: #ffffffbe;
  border-radius: 4px;
  padding: 6px;
}
.playback {
  display: flex;
  align-items: center;
  gap: 17px;
  margin-top: 15px;
}
.playback label {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin: 0;
  font-size: 10px;
  white-space: nowrap;
  gap: 8px;
}
.playback input[type="range"] {
  width: 75px;
  padding: 0;
  accent-color: #5c7a47;
}
.inline {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}
.inline input {
  width: auto;
  accent-color: #5e8149;
}
#playback-counter {
  font-size: 10px;
  margin-left: auto;
  color: #89977d;
}
.frame-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}
.frame-item {
  position: relative;
}
.frame-item > button {
  width: 100%;
  padding: 4px;
  background: #f2f4ed;
  border: 1px solid #e3e8da;
  border-radius: 6px;
  position: relative;
}
.frame-item.selected > button {
  border: 2px solid #839e64;
  padding: 3px;
  background: #edf2e5;
}
.frame-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  image-rendering: pixelated;
  display: block;
}
.frame-item small {
  position: absolute;
  left: 5px;
  top: 4px;
  font-size: 8px;
  color: #788a68;
}
.frame-item .frame-move {
  display: flex;
  justify-content: center;
  gap: 10px;
}
.frame-move button {
  font-size: 10px;
  color: #788a68;
}
.export-panel {
  align-self: start;
}
.export-panel label {
  font-size: 10px;
}
.export-panel input,
.export-panel select {
  font-size: 11px;
}
.sheet-output {
  margin-top: 18px;
  overflow: auto;
  max-height: 350px;
  border-radius: 7px;
  padding: 10px;
}
.sheet-output canvas {
  max-width: 100%;
  image-rendering: pixelated;
  display: block;
  margin: auto;
}
.empty-state {
  padding: 50px 20px;
  grid-column: 1/-1;
  text-align: center;
  color: #8a947e;
  border: 1px dashed #d4ddc9;
  border-radius: 8px;
}
footer {
  padding: 35px 0 22px;
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  color: #a1aa96;
  letter-spacing: 0.3px;
}
footer > span:last-child {
  letter-spacing: 1.4px;
  font-size: 7px;
}
.footer-dot {
  padding: 0 7px;
}
dialog {
  border: 1px solid #dce3d4;
  border-radius: 14px;
  width: min(740px, 92vw);
  max-height: 85vh;
  padding: 26px;
  color: var(--ink);
  box-shadow: 0 25px 100px #14241b30;
}
dialog::backdrop {
  background: #172c2455;
  backdrop-filter: blur(4px);
}
.modal-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.modal-heading h2 {
  font-size: 22px;
}
#modal-body p {
  font-size: 13px;
  line-height: 1.8;
  margin: 13px 0;
}
#modal-body ol {
  padding-left: 20px;
  line-height: 1.9;
  font-size: 13px;
}
#modal-body code {
  font-size: 11px;
  background: #edf1e7;
  padding: 3px 6px;
  border-radius: 4px;
}
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.compare-grid img {
  width: 100%;
  image-rendering: pixelated;
  background: #edf0e5;
}
.compare-grid button {
  margin-top: 8px;
}
.connection-status {
  background: #edf2e6;
  border-radius: 7px;
  padding: 15px;
}
#toast {
  position: fixed;
  bottom: 26px;
  left: calc(50% + 116px);
  transform: translateX(-50%) translateY(90px);
  opacity: 0;
  z-index: 100;
  background: #2b4333;
  color: white;
  border-radius: 8px;
  padding: 14px 22px;
  font-size: 12px;
  max-width: 80vw;
  box-shadow: 0 8px 30px #233a2733;
  transition: 0.25s;
  pointer-events: none;
}
#toast.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
[hidden] {
  display: none !important;
}
@media (min-width: 1500px) {
  .concept-art {
    aspect-ratio: 1.4;
  }
  .concept-grid {
    gap: 24px;
  }
  h1 {
    font-size: 40px;
  }
  .generation-panel {
    padding: 26px;
  }
  .concept-layout {
    grid-template-columns: minmax(0, 1fr) 310px;
  }
}
@media (max-width: 1200px) {
  .sidebar {
    width: 190px;
    padding: 30px 15px;
  }
  .brand {
    font-size: 20px;
    gap: 7px;
  }
  .brand-mark {
    width: 31px;
    height: 31px;
  }
  .app-shell {
    margin-left: 190px;
  }
  main {
    padding: 28px 25px 0;
  }
  header {
    padding: 0 25px;
  }
  .concept-layout {
    gap: 20px;
    grid-template-columns: minmax(0, 1fr) 255px;
  }
  .concept-grid {
    gap: 15px;
  }
  .section-actions {
    gap: 7px;
  }
  .section-actions button {
    font-size: 9px;
  }
  .tabs {
    gap: 14px;
  }
  .tabs button {
    font-size: 10px;
  }
  .inspiration-strip {
    padding: 15px;
    gap: 9px;
  }
  .inspiration-strip button {
    display: none;
  }
  .project-tag {
    display: none;
  }
  .header-actions > span {
    display: none;
  }
  .sheet-layout {
    grid-template-columns: minmax(0, 1fr) 250px;
  }
  .frame-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  #toast {
    left: calc(50% + 95px);
  }
}
@media (max-width: 950px) {
  .concept-layout,
  .sheet-layout {
    grid-template-columns: 1fr;
  }
  .generation-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
  }
  .generation-panel > .panel-heading,
  .generation-panel > .muted {
    grid-column: 1/-1;
  }
  .generation-panel > .divider {
    display: none;
  }
  .generation-panel > .selection-summary {
    grid-column: 2;
    grid-row: 3/6;
    align-self: center;
  }
  .generation-panel > label:has(textarea) {
    grid-row: 4/7;
  }
  .generation-panel > .form-grid {
    grid-column: 2;
    grid-row: 6;
  }
  .generation-panel > .refine {
    grid-column: 1;
  }
  .generation-panel > .button,
  .generation-panel > .micro {
    grid-column: 1/-1;
  }
  .two-col {
    grid-template-columns: 1fr;
  }
  .workflow {
    padding: 10px;
    gap: 4px;
  }
  .workflow button {
    font-size: 9px;
    gap: 5px;
  }
  .workflow button b {
    display: none;
  }
  .page-heading > .button span {
    display: none;
  }
  .frame-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  .export-panel .form-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .sheet-layout .export-panel {
    grid-row: 1;
  }
  .sheet-layout .export-panel label {
    margin: 10px 0;
  }
  .export-panel > .divider {
    margin: 15px 0;
  }
}
@media (max-width: 650px) {
  .sidebar {
    position: static;
    width: 100%;
    padding: 17px 19px;
    display: block;
    border-right: 0;
    border-bottom: 1px solid #dfe4d8;
  }
  .sidebar .new-project,
  .sidebar .nav-label,
  .sidebar-projects,
  .sidebar-bottom {
    display: none;
  }
  .sidebar nav {
    flex-direction: row;
    margin-top: 17px;
    gap: 3px;
  }
  .sidebar nav button {
    padding: 9px 7px;
    gap: 6px;
    flex: 1;
    font-size: 10px;
    justify-content: center;
  }
  .sidebar nav button span {
    font-size: 8px;
  }
  .sidebar nav button i {
    display: none;
  }
  .brand {
    font-size: 22px;
  }
  .app-shell {
    margin: 0;
  }
  header {
    height: 56px;
    padding: 0 18px;
  }
  .breadcrumbs {
    gap: 7px;
    font-size: 10px;
  }
  .breadcrumbs input {
    width: 140px;
    font-size: 11px;
  }
  .header-actions .button {
    font-size: 0;
    padding: 7px;
  }
  .header-actions .button:first-letter {
    font-size: 14px;
  }
  main {
    padding: 27px 18px 0;
  }
  .eyebrow {
    font-size: 7px;
    letter-spacing: 1.4px;
  }
  h1 {
    font-size: 30px;
  }
  .page-heading {
    margin-bottom: 24px;
    gap: 8px;
  }
  .page-heading p {
    font-size: 11px;
    max-width: 260px;
  }
  .page-heading > .button {
    padding: 8px;
  }
  .workflow {
    display: none;
  }
  .concept-grid {
    gap: 12px;
  }
  .concept-art {
    aspect-ratio: 1;
  }
  .concept-card-info {
    padding: 11px 9px;
  }
  .concept-card h3 {
    font-size: 10px;
  }
  .concept-card-info p {
    font-size: 8px;
  }
  .art-label {
    font-size: 6px;
    left: 8px;
    top: 9px;
  }
  .favorite {
    right: 8px;
    top: 8px;
    width: 23px;
    height: 23px;
    font-size: 14px;
  }
  .gallery-foot {
    font-size: 7px;
  }
  .gallery-foot > span:last-child {
    display: none;
  }
  .section-actions {
    gap: 5px;
  }
  .section-bar {
    gap: 8px;
  }
  .section-actions button {
    font-size: 9px;
  }
  .tabs {
    gap: 12px;
  }
  .tabs button {
    font-size: 10px;
  }
  .tabs span {
    margin-left: 2px;
    padding: 1px 3px;
  }
  .generation-panel {
    display: block;
  }
  .panel {
    padding: 19px;
  }
  .form-grid {
    gap: 0 12px;
  }
  .interview-panel h2 {
    font-size: 24px;
  }
  .frame-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .frame-panel .panel-heading {
    align-items: flex-start;
  }
  .frame-panel .panel-heading button {
    font-size: 9px;
  }
  .playback {
    gap: 10px;
    flex-wrap: wrap;
  }
  .playback label {
    font-size: 9px;
  }
  .playback .button {
    padding: 8px;
  }
  .export-panel .form-grid {
    grid-template-columns: 1fr 1fr;
  }
  .motion-reference {
    height: 260px;
  }
  .preview-area {
    height: 230px;
  }
  .compare-grid {
    gap: 10px;
  }
  .compare-grid h3 {
    font-size: 12px;
  }
  .compare-grid .button {
    font-size: 10px;
  }
  footer {
    gap: 15px;
    font-size: 7px;
  }
  footer > span:last-child {
    font-size: 6px;
    white-space: nowrap;
  }
  #toast {
    left: 50%;
    max-width: 90vw;
    width: max-content;
  }
}

.mobile-connect {
  display: none;
}
@media (max-width: 650px) {
  .mobile-connect {
    display: inline-flex !important;
    font-size: 16px !important;
  }
  .header-actions {
    gap: 7px;
  }
  .header-actions .button {
    font-size: 9px;
    padding: 7px;
  }
  .breadcrumbs input {
    width: 120px;
  }
}

.concept-heal {
  margin-left: auto;
  font-size: 10px;
  white-space: nowrap;
}
.concept-card-info .selected-check {
  order: 2;
}
.frame-move {
  flex-wrap: wrap;
}
dialog.repair-modal {
  width: min(1000px, 95vw);
}
.repair-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 22px 0 12px;
}
.repair-canvas-wrap {
  position: relative;
  display: grid;
  place-items: center;
  margin-top: 10px;
  aspect-ratio: 1.3;
  overflow: hidden;
  border-radius: 9px;
}
.repair-canvas-wrap canvas {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
  grid-area: 1/1;
}
.repair-canvas-wrap:has(#repair-paint) {
  aspect-ratio: auto;
}
.repair-canvas-wrap #repair-original {
  height: auto;
  max-height: none;
}
.repair-canvas-wrap #repair-paint {
  position: absolute;
  inset: 0;
  height: 100%;
  opacity: 0.5;
  cursor: crosshair;
  touch-action: none;
  object-fit: fill;
}
.repair-comparison > div:first-child .repair-canvas-wrap {
  display: block;
}
.repair-comparison > div:first-child canvas {
  display: block;
}
#repair-placeholder {
  position: absolute;
  font-size: 12px;
  color: #7e8e73;
  padding: 15px;
  text-align: center;
}
.repair-toolbar {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
}
.repair-toolbar label {
  margin: 0;
}
.repair-toolbar input[type="range"] {
  width: 85px;
  accent-color: #567545;
  padding: 0;
}
.repair-toolbar .micro {
  margin: 0;
}
.repair-reference-picker {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}
.repair-reference-picker select {
  flex: 1;
  font-size: 12px;
}
.repair-references {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 15px;
}
.repair-reference {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid #e0e7d8;
  border-radius: 8px;
  padding: 10px;
  min-width: 0;
}
.repair-reference img {
  width: 100%;
  height: 85px;
  object-fit: contain;
  image-rendering: pixelated;
  background: #f0f3eb;
  border-radius: 5px;
}
.repair-reference span {
  font-size: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.repair-reference select {
  font-size: 10px;
  padding: 7px;
}
.repair-apply-bar {
  border-top: 1px solid #e1e8d9;
  margin-top: 20px;
  padding-top: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.repair-apply-bar .dark {
  margin-left: auto;
}
.repair-apply-bar .micro {
  font-size: 9px;
}
.repair-workshop h3 {
  font-size: 13px;
}
@media (max-width: 650px) {
  .repair-comparison {
    gap: 10px;
  }
  .repair-comparison .tiny-label {
    font-size: 6px;
  }
  .repair-reference-picker {
    flex-wrap: wrap;
  }
  .repair-references {
    gap: 7px;
  }
  .repair-reference {
    padding: 7px;
  }
  .repair-reference select {
    font-size: 9px;
  }
  .repair-reference img {
    height: 65px;
  }
  .repair-apply-bar .button {
    font-size: 10px;
  }
  .concept-heal {
    font-size: 9px;
  }
  .repair-toolbar {
    gap: 10px;
  }
}
