:root { color-scheme: dark; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; background: #13120f; color: #f7f1e6; }
* { box-sizing: border-box; } body { margin: 0; min-width: 320px; } button, input, select { font: inherit; }
.file-picker { border: 1px solid #716a5b; border-radius: 5px; color: #f7f1e6; background: #27241d; cursor: pointer; display: grid; gap: 8px; padding: 10px 12px; font-size: 12px; }.file-picker.primary { background: #e4af5b; color: #1d1b16; border-color: #e4af5b; font-weight: 700; }.file-picker input { max-width: 100%; color: inherit; font-size: 11px; }.file-picker input::file-selector-button { border: 0; border-radius: 3px; padding: 5px 7px; margin-right: 8px; background: #f7f1e6; color: #1d1b16; cursor: pointer; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 315px minmax(0, 1fr); }
.panel { padding: 28px 24px; background: #1d1b16; border-right: 1px solid #3d392f; display: flex; flex-direction: column; gap: 14px; max-height: 100vh; overflow-y: auto; }
.brand { margin-bottom: 10px; }.eyebrow { font-size: 10px; letter-spacing: .18em; color: #d6a966; margin: 0 0 8px; } h1 { font-size: 30px; letter-spacing: -.07em; margin: 0 0 12px; }
.brand p:not(.eyebrow), .hint, .fine-print { font-size: 12px; line-height: 1.55; color: #bcb5a8; margin: 0; }
.button { appearance: none; border: 1px solid #716a5b; border-radius: 5px; color: #f7f1e6; background: transparent; cursor: pointer; display: block; padding: 12px 13px; text-align: left; font-size: 12px; transition: background .16s ease, color .16s ease; }.button:hover { background: #302c23; }.button.primary { background: #e4af5b; color: #1d1b16; border-color: #e4af5b; font-weight: 700; }.button.primary:hover { background: #f2c174; }.button:disabled { opacity: .38; cursor: not-allowed; }.share { text-align: center; background: #e4af5b; color: #1d1b16; border-color: #e4af5b; font-weight: 700; }
.controls { display: grid; gap: 18px; margin-top: 9px; padding-top: 20px; border-top: 1px solid #3d392f; }.controls[aria-disabled="true"] { opacity: .43; }.control-section { display: grid; gap: 13px; }.control-section + .control-section { border-top: 1px solid #3d392f; padding-top: 18px; }.section-title { color: #d6a966; font-size: 10px; letter-spacing: .15em; margin: 0; }.gesture-hint { color: #a8a194; font-size: 10px; line-height: 1.4; margin: -3px 0 0; }.controls label { display: grid; gap: 8px; font-size: 12px; }.controls label > span { display: flex; justify-content: space-between; } output { color: #d6a966; } .controls output { cursor: pointer; touch-action: manipulation; user-select: none; } select { border: 1px solid #716a5b; background: #27241d; padding: 9px; color: inherit; border-radius: 4px; } input[type="range"] { accent-color: #e4af5b; width: 100%; }.button-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }.compact { padding: 9px 8px; font-size: 10px; text-align: center; }.export { text-align: center; background: #f7f1e6; color: #1d1b16; border-color: #f7f1e6; font-weight: 700; }.fine-print { margin-top: auto; padding-top: 20px; font-size: 10px; color: #888276; }
.workspace { min-width: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; background: #11100d; }.canvas-wrap { min-height: 0; position: relative; display: grid; place-items: center; overflow: auto; padding: 28px; background-image: linear-gradient(45deg, #181611 25%, transparent 25%), linear-gradient(-45deg, #181611 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #181611 75%), linear-gradient(-45deg, transparent 75%, #181611 75%); background-size: 24px 24px; background-position: 0 0, 0 12px, 12px -12px, -12px 0; } canvas { max-width: 100%; max-height: calc(100vh - 110px); object-fit: contain; box-shadow: 0 18px 80px #0008; touch-action: none; cursor: grab; }.photo-hud { position: absolute; top: 12px; right: 12px; display: flex; align-items: center; overflow: hidden; border: 1px solid #665e4e; border-radius: 7px; background: #171510e8; box-shadow: 0 4px 18px #0008; }.photo-hud button { border: 0; width: 33px; height: 31px; color: #f7f1e6; background: transparent; font-size: 20px; cursor: pointer; }.photo-hud button:disabled { opacity: .35; }.photo-hud output { min-width: 38px; color: #e4af5b; font-size: 11px; text-align: center; }.compare-hint { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); white-space: nowrap; padding: 7px 10px; border-radius: 999px; color: #f7f1e6; background: #171510d9; font-size: 10px; pointer-events: none; opacity: 0; transition: opacity .15s ease; }.compare-hint.visible { opacity: 1; }.empty-state { display: grid; place-items: center; gap: 8px; text-align: center; color: #bcb5a8; font-size: 13px; }.empty-state strong { color: #f7f1e6; font-size: 15px; }.spark { color: #e4af5b; font-size: 44px; }.progress { position: absolute; inset: auto 24px 24px auto; background: #2b271e; color: #f7f1e6; border: 1px solid #534c3d; padding: 10px 14px; border-radius: 4px; font-size: 12px; box-shadow: 0 6px 30px #0008; }.footer { border-top: 1px solid #3d392f; padding: 12px 18px; color: #a8a194; font-size: 11px; background: #171510; }
@media (max-width: 760px) {
  .app-shell { min-height: 100svh; display: flex; flex-direction: column; }
  .workspace { order: 1; position: sticky; top: 0; z-index: 3; height: 58svh; min-height: 410px; flex: none; box-shadow: 0 12px 22px #0008; }
  .panel { order: 2; max-height: none; overflow: visible; border-right: 0; border-top: 1px solid #3d392f; padding: 17px 16px 28px; }
  .brand { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; margin: 0 0 4px; }
  .brand .eyebrow { grid-column: 1 / -1; margin-bottom: 2px; }
  .brand h1 { font-size: 22px; margin: 0; }
  .brand p:not(.eyebrow) { margin: 0; font-size: 10px; line-height: 1.35; }
  .canvas-wrap { min-height: 0; padding: 12px; }
  canvas { max-height: 50svh; }
  .footer { padding: 9px 12px; font-size: 10px; }
  .photo-hud { top: 8px; right: 8px; }
  .compare-hint { bottom: 10px; }
  .controls { gap: 14px; padding-top: 15px; }
  .control-section { gap: 11px; }
  .control-section + .control-section { padding-top: 14px; }
  .fine-print { margin-top: 6px; padding-top: 8px; }
}
.mobile-toolbar { display: none; }
.favorite-button { justify-self: start; min-width: 104px; }
@media (max-width: 760px) {
  body { padding-bottom: calc(63px + env(safe-area-inset-bottom)); }
  .panel { padding-bottom: calc(90px + env(safe-area-inset-bottom)); }
  .control-section { scroll-margin-top: 14px; }
  .mobile-toolbar { position: fixed; z-index: 10; inset: auto 0 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; padding: 7px 8px calc(7px + env(safe-area-inset-bottom)); background: #171510f5; border-top: 1px solid #534c3d; box-shadow: 0 -8px 24px #0008; }
  .mobile-toolbar > * { min-width: 0; border: 0; border-radius: 5px; padding: 9px 2px; color: #d9d2c5; background: transparent; font-size: 10px; letter-spacing: .02em; }
  .mobile-toolbar label { display: grid; place-items: center; cursor: pointer; }
  .mobile-toolbar button:disabled { opacity: .32; }
  .mobile-toolbar #mobile-save-button { color: #1d1b16; background: #e4af5b; font-weight: 800; }
  .mobile-toolbar #mobile-save-button:disabled { background: #716a5b; color: #d9d2c5; }
}
