/* Miniature Studio: product shell. Rendering dimensions are owned by app.js. */
.guide-entry {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 15px;
  padding: 9px 13px;
  border: 1px solid #4b5b38;
  border-radius: 6px;
  background: #d5ed9b0d;
  color: #d5ed9b;
  text-decoration: none;
  font-size: 12px;
}
.guide-entry:hover {
  background: #d5ed9b1c;
}
.guide-entry:focus-visible {
  outline: 2px solid #d5ed9b;
  outline-offset: 3px;
}
:root {
  --bg: #101211;
  --surface: #191c1a;
  --surface-2: #232723;
  --line: #30352f;
  --text: #e9ece4;
  --muted: #9aa296;
  --accent: #d5ed9b;
  --accent-ink: #27331c;
  --panel-w: 342px;
  --radius: 8px;
}
body {
  font-family:
    Inter, "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 13px;
}
button,
a,
input,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}
button {
  transition:
    background 0.18s,
    border-color 0.18s,
    transform 0.18s;
}
.app {
  height: auto;
  min-height: 100dvh;
  grid-template-rows: 76px auto minmax(650px, 1fr) 53px;
  max-width: 1920px;
  margin: auto;
}
.topbar {
  padding: 0 36px;
  background: #141714;
  gap: 40px;
  border-color: #292e28;
}
.brand {
  text-decoration: none;
  color: var(--text);
  gap: 10px;
}
.brand-mark {
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #263224;
  border-radius: 9px;
  width: 36px;
  height: 36px;
  font-size: 31px;
  line-height: 1;
}
.brand-text {
  flex-direction: row;
  align-items: baseline;
  gap: 11px;
}
.brand-text strong {
  font-family: Arial, sans-serif;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -1.3px;
}
.brand-dot {
  color: var(--accent);
}
.brand-text small {
  font-size: 9px;
  letter-spacing: 2px;
  color: #a3ac9d;
}
.top-nav {
  display: flex;
  align-items: center;
  gap: 25px;
  height: 100%;
  font-size: 12px;
}
.nav-active {
  height: 100%;
  display: grid;
  place-items: center;
  border-bottom: 2px solid var(--accent);
  color: var(--accent);
  padding: 0 7px;
}
.top-nav button,
.top-nav > a {
  background: none;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  padding: 10px 0;
  text-decoration: none;
}
.top-nav button:hover,
.top-nav > a:hover {
  color: var(--text);
}
.top-nav button span,
.top-nav > a span {
  margin-left: 8px;
}
.local-badge {
  margin-left: auto;
  font-size: 11px;
  color: #a8afa1;
  white-space: nowrap;
}
.local-badge i,
.preview-status i,
.workspace-label i {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 7px;
}
.topbar-actions {
  margin-left: 0;
  gap: 8px;
}
.topbar-actions .btn {
  height: 35px;
  padding: 0 13px;
  font-size: 11px;
}
.topbar-actions #btnCamera {
  display: none;
}
.topbar-actions #btnDemo {
  display: none;
}
.btn.primary {
  font-weight: 600;
}
.btn.primary:hover {
  background: #e4f7b9;
}
.btn:hover {
  background: #30382d;
  border-color: #59664d;
}
.btn.primary span[aria-hidden] {
  font-size: 18px;
}
.studio-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 38px 29px;
}
.eyebrow {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--accent);
  margin: 0 0 11px;
}
.studio-heading h1 {
  font-size: 27px;
  letter-spacing: -1.2px;
  font-weight: 500;
  margin: 0;
}
.studio-heading h1 span {
  color: var(--accent);
}
.studio-heading p:last-child {
  color: var(--muted);
  font-size: 12px;
  margin: 11px 0 0;
}
.workspace-label {
  font-size: 9px;
  letter-spacing: 1.7px;
  color: #9aa48f;
  display: flex;
  align-items: center;
}
.workspace-label span {
  border: 1px solid var(--line);
  padding: 6px;
  margin-left: 13px;
  font-size: 10px;
}
.workspace {
  margin: 0 36px;
  gap: 20px;
  min-height: 650px;
  grid-template-columns: minmax(0, 1fr) var(--panel-w);
  align-items: stretch;
}
.stage {
  padding: 0;
  gap: 0;
  background: #191c19;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  align-self: start;
  width: 100%;
  min-height: 650px;
}
.canvas-toolbar {
  height: 51px;
  flex: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}
.canvas-toolbar > div {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.file-icon {
  color: #abb7a1;
  font-size: 18px;
}
#fileName {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 240px;
}
.sample-badge {
  padding: 3px 7px;
  font-size: 9px;
  border-radius: 4px;
  background: #2c3428;
  color: #b6c7a5;
}
.preview-status {
  font-size: 10px;
  color: #9ba591;
  white-space: nowrap;
}
.canvas-area {
  position: relative;
  display: flex;
  width: 100%;
  height: clamp(350px, 38vw, 565px);
  padding: 35px 28px 25px;
  background-color: #121512;
  background-image: radial-gradient(#42493a55 0.7px, transparent 0.7px);
  background-size: 12px 12px;
}
.canvas-caption {
  position: absolute;
  top: 12px;
  left: 18px;
  font-size: 9px;
  color: #a4af98;
  letter-spacing: 0.5px;
}
.frame-wrap {
  height: 100%;
}
.frame {
  border-radius: 4px;
  box-shadow: 0 8px 35px #0005;
}
.stage-bar {
  width: 100%;
  padding: 12px 20px;
  justify-content: flex-start;
  min-height: 50px;
  border-top: 1px solid var(--line);
}
.stage-meta {
  margin-left: auto;
  font-family: monospace;
  font-size: 10px;
}
.chip {
  font-size: 10px;
  border-radius: 5px;
  padding: 6px 10px;
  background: transparent;
  color: #b8c1b0;
}
.chip:hover {
  background: #2c3428;
}
.chip.active {
  background: #d5ed9b17;
  border-color: #a6ba7b;
  color: var(--accent);
}
.stage-tip {
  padding: 2px 16px 17px;
  font-size: 10px;
  color: #939d89;
  max-width: none;
  width: 100%;
  border-bottom: 1px solid var(--line);
}
kbd {
  font-size: 9px;
  border: 1px solid #49503f;
  border-radius: 3px;
  padding: 2px 5px;
  background: #252b23;
  color: #c9d1c0;
  margin: 0 3px;
}
.import-card {
  width: calc(100% - 32px);
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 17px 16px 12px;
  padding: 18px 15px;
  text-align: left;
  background: #20261e;
  border: 1px dashed #48533d;
  border-radius: 7px;
  cursor: pointer;
  color: var(--text);
}
.import-card:hover {
  background: #293223;
  border-color: var(--accent);
}
.import-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  font-size: 24px;
  color: var(--accent);
  background: #d5ed9b0c;
  border: 1px solid #414c36;
  border-radius: 7px;
}
.import-card strong {
  display: block;
  font-size: 11px;
  font-weight: 500;
  margin-bottom: 6px;
}
.import-card small {
  font-size: 10px;
  color: #9ca88e;
}
.import-formats {
  margin-left: auto;
  font-size: 8px;
  color: #8f9b85;
  white-space: nowrap;
}
.import-formats span {
  font-size: 17px;
  margin-left: 15px;
}
.privacy-note {
  display: flex;
  gap: 15px;
  justify-content: space-between;
  width: 100%;
  padding: 0 19px 16px;
  font-size: 9px;
  color: #86927c;
}
.panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  align-self: start;
  max-height: calc(100dvh - 120px);
  min-height: 650px;
}
.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 23px 22px 20px;
  border-bottom: 1px solid var(--line);
  flex: none;
}
.panel-heading .eyebrow {
  font-size: 8px;
  margin-bottom: 9px;
  letter-spacing: 1.7px;
}
.panel-heading h2 {
  font-size: 17px;
  letter-spacing: -0.7px;
  font-weight: 500;
  margin: 0;
}
.panel-symbol {
  font-size: 30px;
  color: var(--accent);
}
.panel-scroll {
  padding: 20px 21px;
  gap: 23px;
  scrollbar-width: thin;
  scrollbar-color: #46503e transparent;
}
.block {
  gap: 13px;
}
.block-title {
  font-size: 11px;
  letter-spacing: 0;
  text-transform: none;
  color: #d7ddce;
  display: flex;
  align-items: center;
  gap: 9px;
}
.block-title > span,
.step-number {
  color: #83916f;
  font-size: 10px;
  font-family: monospace;
  margin-right: 3px;
}
.block-title small {
  font-size: 8px;
  color: #78856e;
  letter-spacing: 1.5px;
  margin-left: auto;
}
.hero {
  order: 0;
  background: none;
  border: 0;
  padding: 0;
  border-radius: 0;
}
.panel-scroll > .block:has(#presetGrid) {
  order: -1;
}
.hero-head label {
  font-size: 11px;
  font-weight: 500;
}
.hero-val {
  font-family: monospace;
  font-size: 14px;
  font-weight: 400;
  padding: 5px 10px;
  background: #282f23;
  border: 1px solid #404c33;
  color: var(--accent);
  border-radius: 5px;
}
.hero-scale {
  font-size: 9px;
  color: #8f9a83;
}
.preset-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 8px;
}
.preset {
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-items: stretch;
  padding: 0 0 6px;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 6px;
  font-size: 9px;
  line-height: 1.5;
  text-align: center;
  color: #a8b29e;
  overflow: hidden;
  min-width: 0;
}
.preset-swatch {
  width: 100%;
  height: 55px;
  border-radius: 5px;
  background-size: cover;
  background-position: center;
  flex: none;
  position: relative;
}
.preset.active {
  border-color: #bad387;
  color: #d5ed9b;
  background: #d5ed9b08;
}
.preset.active .preset-swatch:after {
  content: "✓";
  position: absolute;
  top: 5px;
  right: 5px;
  background: var(--accent);
  color: #27331c;
  border-radius: 50%;
  width: 14px;
  height: 14px;
  font-size: 10px;
}
.preset:hover {
  border-color: #687855;
  background: #232b1f;
}
.preset[data-preset="toycar"] .preset-swatch {
  filter: saturate(1.65);
  background-position: 30% 80%;
  background-size: 180%;
}
.preset[data-preset="train"] .preset-swatch {
  filter: sepia(0.45) saturate(1.3);
  background-position: 80% 75%;
  background-size: 160%;
}
.preset[data-preset="macro"] .preset-swatch {
  background-size: 220%;
  background-position: 60% 50%;
}
.preset[data-preset="pastel"] .preset-swatch {
  filter: saturate(0.6) brightness(1.3);
}
.preset[data-preset="dream"] .preset-swatch {
  filter: hue-rotate(25deg) saturate(0.8) brightness(0.7);
}
.preset[data-preset="plain"] {
  grid-column: 1/-1;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  border: 1px solid #333d2c;
  padding: 5px;
}
.preset[data-preset="plain"] .preset-swatch {
  width: 18px;
  height: 15px;
  filter: grayscale(1);
}
.preset-hint {
  font-size: 10px;
  line-height: 1.7;
  color: #8f9d82;
  margin: 0;
}
.segmented {
  padding: 3px;
  border: 1px solid #36402f;
  background: #121710;
  border-radius: 6px;
  gap: 3px;
}
.seg {
  font-size: 10px;
  padding: 8px 2px;
  border-radius: 4px;
}
.seg.active {
  background: #35442a;
  color: var(--accent);
  box-shadow: none;
}
.seg:disabled {
  opacity: 0.4;
}
.btn.wide {
  font-size: 10px;
  padding: 9px;
}
.fold {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.fold summary {
  font-size: 11px;
  font-weight: 400;
  color: #bdc7b2;
}
.fold .note,
.note {
  font-size: 10px;
  line-height: 1.8;
  color: #939f87;
}
.tag-beta {
  font-size: 8px;
  background: #2e3826;
  color: #b5c69b;
  border-color: #445235;
}
.field-row {
  font-size: 11px;
}
.slider-head {
  font-size: 11px;
}
.slider-val {
  font-size: 10px;
}
.text-in,
select {
  background: #151a12;
  border-color: #3b4531;
  font-size: 11px;
}
.fold .control-group h3 {
  font-size: 11px;
}
.hero input[type="range"],
input[type="range"] {
  accent-color: var(--accent);
}
input[type="range"]::-webkit-slider-thumb {
  background: var(--accent);
}
input[type="range"]::-moz-range-thumb {
  background: var(--accent);
}
.studio-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 38px;
  color: #727e68;
  font-size: 9px;
}
.studio-footer > span:first-child {
  letter-spacing: 0.5px;
}
.studio-footer span span {
  margin-left: 15px;
  letter-spacing: 0;
  color: #65725b;
}
.video-bar {
  border: 0;
  border-radius: 0;
  background: #232b1d;
  margin: 0;
  padding: 10px 18px;
  max-width: none;
}
.video-bar .btn {
  font-size: 10px;
}
.toast {
  background: #2b3423;
  color: #e9ece4;
}
.help-dialog {
  width: min(560px, calc(100vw - 32px));
  padding: 35px;
  border: 1px solid #4b5940;
  border-radius: 15px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 25px 100px #0008;
}
.help-dialog::backdrop {
  background: #070c08bf;
  backdrop-filter: blur(6px);
}
.help-dialog h2 {
  font-size: 22px;
  letter-spacing: -0.8px;
  margin: 16px 0 25px;
}
.help-dialog ol {
  padding-left: 22px;
}
.help-dialog li {
  padding-left: 6px;
  margin: 20px 0;
  color: #c6d2b8;
}
.help-dialog li::marker {
  color: var(--accent);
  font-size: 13px;
}
.help-dialog strong {
  font-size: 13px;
  font-weight: 500;
}
.help-dialog li p {
  font-size: 12px;
  line-height: 1.8;
  color: #a1ad95;
}
.help-close {
  position: absolute;
  top: 15px;
  right: 17px;
  border: 0;
  background: none;
  font-size: 26px;
  cursor: pointer;
  color: #b9c5ad;
}
.help-shortcuts {
  font-size: 10px;
  line-height: 2.5;
  border-top: 1px solid var(--line);
  padding-top: 17px;
}
.help-dialog .note {
  margin-bottom: 0;
}
@media (min-width: 1600px) {
  .workspace,
  .studio-heading {
    max-width: 1600px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  .workspace {
    padding: 0 36px;
  }
  .canvas-area {
    height: 565px;
  }
}
@media (max-width: 1150px) {
  .local-badge {
    display: none;
  }
  .topbar-actions {
    margin-left: auto;
  }
  .workspace {
    margin: 0 22px;
    gap: 15px;
    --panel-w: 305px;
  }
  .studio-heading {
    padding: 27px 24px;
  }
  .topbar {
    padding: 0 24px;
    gap: 25px;
  }
  .import-formats {
    display: none;
  }
  .privacy-note {
    font-size: 8px;
  }
  .privacy-note span:last-child {
    display: none;
  }
  .panel-scroll {
    padding: 17px;
  }
  .canvas-area {
    padding: 35px 15px 25px;
  }
  .workspace-label {
    display: none;
  }
}
@media (max-width: 900px) {
  .app {
    grid-template-rows: 66px auto auto 52px;
  }
  .workspace {
    grid-template-columns: minmax(0, 1fr) 285px;
    grid-template-rows: auto;
    min-height: 0;
  }
  .panel {
    max-height: 850px;
    min-height: 0;
  }
  .panel-scroll {
    max-height: none;
  }
  .stage {
    min-height: 0;
  }
  .canvas-area {
    height: 390px;
  }
  .studio-heading h1 {
    font-size: 25px;
  }
  .top-nav {
    gap: 15px;
  }
  .brand-text small {
    display: none;
  }
  .stage-tip {
    display: block;
    font-size: 9px;
  }
  .preview-status {
    font-size: 0;
  }
  .preview-status i {
    margin: 0;
  }
  #fileName {
    max-width: 160px;
  }
  .privacy-note {
    line-height: 1.8;
  }
  .import-card {
    padding: 13px 9px;
  }
  .import-card strong {
    font-size: 10px;
  }
  .import-card small {
    font-size: 9px;
  }
  .import-icon {
    flex: none;
    width: 28px;
    height: 28px;
  }
  .stage-bar {
    padding: 12px;
    gap: 5px;
  }
  .stage-meta {
    font-size: 9px;
  }
  .panel-heading {
    padding: 20px 17px;
  }
  .preset-swatch {
    height: 48px;
  }
}
@media (max-width: 680px) {
  .app {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
  }
  .topbar {
    height: 65px;
    flex: none;
    padding: 0 16px;
    gap: 15px;
  }
  .brand-text strong {
    font-size: 22px;
  }
  .brand-mark {
    height: 31px;
    width: 31px;
    font-size: 26px;
  }
  .top-nav {
    margin-left: auto;
  }
  .top-nav .nav-active {
    display: none;
  }
  .top-nav button,
  .top-nav > a {
    font-size: 10px;
  }
  .topbar-actions {
    margin: 0;
  }
  .topbar-actions #btnOpen {
    display: none;
  }
  .topbar-actions .btn {
    font-size: 10px;
    padding: 0 10px;
    height: 32px;
  }
  .studio-heading {
    padding: 26px 18px 24px;
  }
  .studio-heading .eyebrow {
    font-size: 8px;
    letter-spacing: 1.5px;
  }
  .studio-heading h1 {
    font-size: 25px;
  }
  .studio-heading p:last-child {
    font-size: 11px;
  }
  .workspace {
    display: flex;
    flex-direction: column;
    margin: 0 12px;
    gap: 18px;
  }
  .canvas-toolbar {
    height: 44px;
    padding: 0 13px;
  }
  .canvas-area {
    height: clamp(260px, 73vw, 425px);
    padding: 33px 12px 16px;
  }
  .stage-bar {
    padding: 9px 12px;
  }
  .stage-tip {
    font-size: 9px;
    padding: 2px 12px 13px;
  }
  .import-card {
    padding: 13px;
    margin: 12px;
    width: calc(100% - 24px);
    gap: 10px;
  }
  .import-card strong {
    font-size: 11px;
  }
  .import-card small {
    font-size: 9px;
  }
  .privacy-note {
    padding: 0 14px 14px;
    font-size: 9px;
  }
  .panel {
    max-height: none;
    width: 100%;
    min-height: 0;
  }
  .panel-scroll {
    overflow: visible;
    padding: 22px;
    gap: 24px;
  }
  .panel-heading {
    padding: 22px;
  }
  .preset-swatch {
    height: 75px;
  }
  .preset {
    font-size: 10px;
  }
  .preset[data-preset="plain"] {
    padding: 7px;
  }
  .preset-hint {
    font-size: 11px;
  }
  .seg {
    font-size: 11px;
    padding: 10px;
  }
  .block-title,
  .hero-head label,
  .fold summary {
    font-size: 12px;
  }
  .studio-footer {
    padding: 24px 17px;
    font-size: 8px;
    gap: 15px;
  }
  .studio-footer span span {
    display: none;
  }
  .help-dialog {
    padding: 27px;
  }
  .help-dialog h2 {
    font-size: 20px;
  }
}
