:root {
  --bg: #141716;
  --panel: #1b1f1e;
  --panel2: #222725;
  --line: #343c37;
  --text: #e9ece4;
  --muted: #9ba79d;
  --accent: #d7f283;
  --orange: #ff916c;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    13px/1.5 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel2);
  padding: 9px 12px;
  cursor: pointer;
  transition: background 0.15s;
}
button:hover {
  background: #353e36;
}
button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #1d2710;
  font-weight: 650;
}
button.primary:hover {
  background: #e7ffa0;
}
button.active {
  color: var(--accent);
  border-color: #586843;
  background: #2a3323;
}
input,
textarea,
select {
  background: #151a17;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 9px;
  outline: none;
}
input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);
}
header {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 0 24px;
  gap: 30px;
}
.brand {
  text-decoration: none;
  color: var(--text);
  font: 13px var(--mono);
  letter-spacing: 1.5px;
  white-space: nowrap;
}
.brand b {
  font-weight: 500;
  color: var(--muted);
}
.brand-mark {
  display: inline-flex;
  width: 32px;
  height: 32px;
  background: var(--accent);
  color: #1e2718;
  font-size: 26px;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  margin-right: 12px;
  vertical-align: middle;
}
nav {
  display: flex;
  gap: 6px;
}
nav button {
  border-color: transparent;
  background: none;
}
nav span {
  background: #35402e;
  padding: 1px 6px;
  margin-left: 6px;
  border-radius: 4px;
  font: 11px var(--mono);
}
.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.live {
  font: 10px var(--mono);
  letter-spacing: 1px;
  color: var(--muted);
  white-space: nowrap;
}
.live i {
  display: inline-block;
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
  margin-right: 6px;
}
.workspace {
  display: grid;
  grid-template-columns: 245px minmax(430px, 1fr) 285px;
  min-height: calc(100vh - 74px);
}
aside {
  background: var(--panel);
}
.left-panel {
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 74px);
}
.panel-heading {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font: 10px var(--mono);
  letter-spacing: 1.5px;
  padding: 20px 20px 12px;
}
.document-title {
  padding: 0 20px 16px;
}
.document-title h2 {
  font-size: 16px;
  font-weight: 550;
  margin: 6px 0;
  overflow-wrap: anywhere;
}
.document-title p {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
}
.panel-tabs {
  display: flex;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
}
.panel-tabs button {
  padding: 10px 8px;
  border: 0;
  background: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  font-size: 12px;
}
.panel-tabs button.active {
  border-color: var(--accent);
}
.search {
  margin: 14px 12px;
  width: calc(100% - 24px);
  font-size: 11px;
}
.object-list {
  overflow: auto;
  flex: 1;
  min-height: 100px;
  padding: 0 7px;
}
.object-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 8px;
  cursor: pointer;
  border-radius: 4px;
  border: 1px solid transparent;
  font-size: 12px;
}
.object-row:hover {
  background: #2a302a;
}
.object-row.selected {
  background: #35442b;
  border-color: #647843;
}
.object-row .label {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  flex: 1;
}
.object-row small {
  font: 9px var(--mono);
  color: var(--muted);
}
.swatch {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex: none;
  border: 1px solid #65725d;
}
.left-bottom {
  border-top: 1px solid var(--line);
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
}
.left-bottom button {
  padding: 3px 7px;
}
.right-panel {
  border-left: 1px solid var(--line);
  max-height: calc(100vh - 74px);
  overflow: auto;
}
.inspector {
  padding: 0 20px 12px;
}
.inspector h3 {
  font-size: 15px;
  font-weight: 550;
  margin: 6px 0;
}
.inspector p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 10px 0;
}
.two-col label {
  color: var(--muted);
  font: 9px var(--mono);
  letter-spacing: 1px;
}
.two-col input {
  width: 100%;
  margin-top: 7px;
  font: 13px var(--mono);
}
.two-col button {
  padding: 8px 5px;
  font-size: 11px;
}
.wide {
  width: 100%;
}
.color-control {
  display: flex;
  align-items: center;
  gap: 7px;
  font: 10px var(--mono);
  margin-top: 16px;
}
.color-control input {
  padding: 0;
  width: 30px;
  height: 30px;
  flex: none;
}
.color-control select,
.color-control button {
  padding: 6px;
  font-size: 11px;
}
.section-rule {
  height: 1px;
  background: var(--line);
  margin: 22px 0 16px;
}
.eyebrow {
  font: 10px var(--mono);
  letter-spacing: 1.7px;
  color: var(--accent);
}
.muted {
  color: var(--muted);
}
.receipt {
  border-top: 1px solid var(--line);
}
#receipt-body {
  padding: 0 20px 20px;
  color: var(--muted);
  font-size: 11px;
}
#receipt-body .stat {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid #2e362f;
}
#receipt-body strong {
  color: var(--text);
}
#receipt-body details {
  margin-top: 12px;
}
#receipt-body pre {
  white-space: pre-wrap;
  max-height: 180px;
  overflow: auto;
  font-size: 10px;
}
.export-area {
  padding: 16px 20px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
}
.canvas-toolbar {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}
.crumb {
  font: 9px var(--mono);
  color: var(--muted);
  letter-spacing: 1px;
  margin-right: 10px;
}
.view-tabs {
  display: flex;
  gap: 2px;
}
.view-tabs button {
  border: 0;
  background: none;
  padding: 5px 8px;
  font-size: 10px;
}
.view-tabs button.active {
  background: #303b2c;
  color: var(--accent);
}
#fit {
  padding: 4px 8px;
  font-size: 10px;
}
.stage {
  height: calc(100vh - 327px);
  min-height: 340px;
  display: flex;
  flex-direction: column;
  background-color: #171c19;
  background-image: radial-gradient(#344035 1px, transparent 1px);
  background-size: 18px 18px;
  padding: 16px 24px 8px;
}
.stage-meta,
.stage-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font: 9px var(--mono);
  color: #8d9d90;
  letter-spacing: 1px;
}
.stage-bottom {
  min-height: 39px;
  font-size: 9px;
  letter-spacing: 0;
}
.stage-bottom button {
  padding: 3px 7px;
  font-size: 10px;
  background: #202820;
}
.stage-meta {
  margin-bottom: 14px;
}
#paper {
  position: relative;
  flex: 1;
  min-height: 0;
  max-width: 900px;
  width: 100%;
  margin: auto;
  background: #f7f6f0;
  box-shadow: 0 12px 50px #0004;
  border-radius: 2px;
  overflow: hidden;
}
#artwork {
  position: absolute;
  inset: 30px;
}
.svg-document {
  border: 0;
  width: 100%;
  height: 100%;
  display: block;
}
#selection-overlay {
  position: absolute;
  inset: 30px;
  pointer-events: none;
}
.selection-box {
  position: absolute;
  border: 1px solid #497d1c;
  background: #a6d96a13;
  box-shadow: 0 0 0 1px #ffffff88;
}
.selection-box::after {
  content: "";
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 5px;
  height: 5px;
  background: #497d1c;
  border: 1px solid white;
}
#empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  color: #263523;
}
#empty h1 {
  font-family: Georgia, serif;
  font-size: clamp(26px, 3vw, 44px);
  line-height: 1.12;
  font-weight: 400;
  letter-spacing: -1px;
  margin: 5px 0 16px;
}
#empty p {
  font-size: 13px;
  color: #6b7867;
  line-height: 1.8;
}
.empty-symbol {
  font-size: 70px;
  color: #6f975a;
}
#empty button {
  margin-top: 15px;
}
#difference-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #101511;
}
.command-area {
  padding: 16px 24px;
  background: #1b221c;
  border-top: 1px solid #394333;
  min-height: 196px;
}
.command-label {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font: 9px var(--mono);
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 10px;
}
.mode-label {
  color: var(--muted);
  letter-spacing: 0;
  font:
    10px -apple-system,
    sans-serif;
}
#command-form {
  display: flex;
  gap: 12px;
}
#instruction {
  flex: 1;
  resize: vertical;
  min-height: 58px;
  border-color: #45513d;
  background: #111811;
  padding: 12px;
  font-size: 13px;
}
#run {
  min-width: 112px;
}
.instruction-help {
  margin-top: 10px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}
.instruction-help p {
  margin: 5px 0;
}
.instruction-help code {
  color: #dce7d1;
  font: 11px/1.6 var(--mono);
}
.command-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin: 6px 0;
}
.command-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-top: 9px;
  font-size: 10px;
  color: var(--muted);
}
#message.error {
  color: var(--orange);
}
#program-toggle {
  border: 0;
  background: none;
  padding: 0;
  white-space: nowrap;
  font: 10px var(--mono);
  color: var(--accent);
}
#program-panel {
  margin-top: 15px;
}
#program {
  width: 100%;
  font: 11px/1.5 var(--mono);
}
#program-panel p {
  font-size: 10px;
  color: var(--muted);
}
dialog {
  padding: 0;
  border: 1px solid #526246;
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
  max-width: 1180px;
  width: calc(100vw - 100px);
  max-height: 88vh;
  box-shadow: 0 25px 100px #0009;
}
dialog::backdrop {
  background: #080e0bbd;
  backdrop-filter: blur(5px);
}
.dialog-header {
  padding: 28px 30px 18px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.dialog-header h1 {
  font:
    36px/1.2 Georgia,
    serif;
  font-weight: 400;
  margin: 9px 0;
}
.dialog-header p {
  color: var(--muted);
  font-size: 12px;
  margin: 0;
}
.close {
  align-self: flex-start;
  border: 0;
  background: none;
  font-size: 25px;
  padding: 0 6px;
}
.library-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 20px 14px;
  border-bottom: 1px solid var(--line);
}
.library-controls .search {
  width: 260px;
  margin: 0;
}
#family-filters {
  display: flex;
  gap: 5px;
}
#family-filters button {
  font-size: 11px;
}
#queue-library {
  margin-left: auto;
  font-size: 11px;
}
#library-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  padding: 22px 26px;
  max-height: 58vh;
  overflow: auto;
}
.asset-card {
  background: #222a23;
  border: 1px solid #354031;
  border-radius: 7px;
  overflow: hidden;
  cursor: pointer;
  transition:
    transform 0.15s,
    border-color 0.15s;
}
.asset-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}
.asset-card .thumb {
  height: 118px;
  background: #f7f6f0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 21px;
}
.asset-card img {
  height: 100%;
  width: 100%;
  object-fit: contain;
}
.asset-card .info {
  padding: 10px;
  font-size: 11px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.asset-card small {
  display: block;
  color: var(--muted);
  font: 9px var(--mono);
  margin-top: 4px;
}
.dialog-footer {
  padding: 13px 26px;
  border-top: 1px solid var(--line);
  font: 10px var(--mono);
  color: var(--muted);
}
.batch-command {
  display: flex;
  gap: 12px;
  padding: 0 30px 20px;
}
.batch-command textarea {
  flex: 1;
}
.batch-command button {
  font-size: 11px;
}
#batch-summary {
  padding: 12px 30px;
  background: #263024;
  color: var(--accent);
}
#batch-list {
  max-height: 48vh;
  overflow: auto;
  padding: 10px 30px;
}
.batch-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 10px;
  font-size: 11px;
}
.batch-row .failed {
  color: var(--orange);
}
#results-body {
  padding: 0 30px 30px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 15px 0;
}
.metric {
  padding: 18px;
  background: #252e23;
  border: 1px solid #3c4a33;
  border-radius: 7px;
}
.metric strong {
  display: block;
  font:
    30px Georgia,
    serif;
  color: var(--accent);
}
.metric span {
  font-size: 11px;
  color: var(--muted);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
th,
td {
  padding: 9px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.relation-card {
  padding: 11px 9px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  cursor: pointer;
}
.relation-card:hover {
  background: #2b3526;
}
.relation-card small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 3px;
}
[hidden] {
  display: none !important;
}
@media (max-width: 1250px) {
  .workspace {
    grid-template-columns: 205px minmax(380px, 1fr) 255px;
  }
  header {
    gap: 10px;
    padding: 0 15px;
  }
  .live {
    display: none;
  }
  nav button {
    font-size: 11px;
    padding: 8px;
  }
  .brand {
    font-size: 11px;
  }
  .brand b {
    display: none;
  }
  .inspector {
    padding: 0 14px;
  }
  .canvas-toolbar {
    padding: 0 12px;
  }
  #canvas-title {
    display: none;
  }
  #library-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}
@media (max-width: 900px) {
  .workspace {
    grid-template-columns: 175px minmax(350px, 1fr);
  }
  .right-panel {
    grid-column: 1/-1;
    max-height: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .right-panel > .panel-heading {
    display: none;
  }
  .right-panel .inspector {
    padding: 20px;
  }
  .stage {
    height: 520px;
  }
  .left-panel {
    max-height: 800px;
  }
  #library-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .library-controls {
    flex-wrap: wrap;
  }
  .header-right {
    gap: 5px;
  }
  nav #results-open {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

#edit-mode {
  padding: 2px 5px;
  font-size: 10px;
  max-width: 240px;
}
.two-col select {
  width: 100%;
  margin-top: 7px;
  font-size: 11px;
}
#results-body a {
  color: var(--accent);
}

/* Optional model-access dialog. Inputs inherit the shared field styling above. */
#model-body {
  display: grid;
  gap: 14px;
  max-width: 620px;
}
#model-body label {
  display: grid;
  gap: 6px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
#model-body input {
  width: 100%;
  font-family: var(--mono);
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px;
  color: var(--text);
}
#model-state {
  border-left: 2px solid var(--line);
  padding-left: 12px;
}
.model-actions {
  display: flex;
  gap: 10px;
}

/* Dead-page notice. Hidden until 2.5s have passed without app.mjs removing it,
   so a working page never shows it and a file:// page explains itself. */
#needs-server {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 9999;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  align-items: baseline;
  padding: 12px 18px;
  background: var(--orange);
  color: #1a1207;
  font-size: 13px;
  line-height: 1.45;
  opacity: 0;
  visibility: hidden;
  animation: needs-server-reveal 0s linear 2.5s forwards;
}
#needs-server code {
  font-family: var(--mono);
  background: rgba(0, 0, 0, 0.14);
  padding: 1px 5px;
  border-radius: 3px;
}
@keyframes needs-server-reveal {
  to {
    opacity: 1;
    visibility: visible;
  }
}

/* Touch-only multi-select toggle. Shift-click has no equivalent on a phone. */
#multi-select {
  display: none;
}
#multi-select[aria-pressed='true'] {
  color: var(--accent);
  border-color: #586843;
  background: #2a3323;
}
@media (pointer: coarse) {
  #multi-select {
    display: inline-block;
  }
}

/* Phones. Below 700px the two-column grid above cannot fit (175px + a 350px
   minimum), which forced a 525px page that the browser zoomed out to show. Here
   everything stacks: canvas and instructions, then the object tree, then the
   controls. Desktop and tablet rules above are unchanged. */
@media (max-width: 700px) {
  header {
    height: auto;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 12px;
  }
  .brand {
    order: 1;
  }
  .header-right {
    order: 2;
  }
  nav {
    order: 3;
    flex: 1 1 100%;
    overflow-x: auto;
    scrollbar-width: none;
    margin: 0 -12px;
    padding: 0 12px;
  }
  nav::-webkit-scrollbar {
    display: none;
  }
  nav button {
    white-space: nowrap;
    flex: none;
  }
  nav #results-open {
    display: inline-block;
  }
  .brand-mark {
    width: 28px;
    height: 28px;
    font-size: 22px;
    margin-right: 8px;
  }
  .workspace {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }
  main {
    order: 1;
    min-width: 0;
  }
  .left-panel {
    order: 2;
    max-height: none;
    border-right: 0;
    border-top: 1px solid var(--line);
  }
  .left-panel .object-list {
    max-height: 280px;
    flex: none;
  }
  .right-panel {
    order: 3;
    grid-template-columns: minmax(0, 1fr);
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .right-panel .inspector {
    padding: 16px;
  }
  .receipt {
    border-top: 1px solid var(--line);
  }
  .canvas-toolbar {
    height: auto;
    min-height: 48px;
    padding: 6px 12px;
  }
  .canvas-toolbar .crumb {
    display: none;
  }
  .stage {
    height: min(72svh, 600px);
    min-height: 400px;
    padding: 10px 10px 4px;
  }
  .stage-meta {
    margin-bottom: 8px;
    gap: 8px;
  }
  .stage-bottom {
    flex-wrap: wrap;
    gap: 4px 8px;
    padding: 6px 0 4px;
  }
  #stage-hint {
    flex: 1 1 100%;
  }
  .stage-bottom > div {
    display: flex;
    gap: 6px;
    margin-left: auto;
  }
  #artwork,
  #selection-overlay {
    inset: 12px;
  }
  #empty {
    padding: 16px;
  }
  #empty h1 {
    font-size: 26px;
  }
  .empty-symbol {
    font-size: 48px;
  }
  .command-area {
    padding: 14px 12px;
    min-height: 0;
  }
  .command-label {
    flex-wrap: wrap;
  }
  #edit-mode {
    max-width: 100%;
  }
  #command-form {
    flex-direction: column;
    gap: 8px;
  }
  #run {
    width: 100%;
  }
  .command-bottom {
    flex-wrap: wrap;
  }

  /* Dialogs fill the screen with a small margin and scroll as a whole. */
  dialog {
    width: calc(100vw - 16px);
    max-width: none;
    max-height: calc(100svh - 16px);
    overflow: auto;
    overscroll-behavior: contain;
  }
  .dialog-header {
    padding: 18px 16px 14px;
    gap: 10px;
  }
  .dialog-header h1 {
    font-size: 26px;
  }
  .close {
    font-size: 30px;
    min-width: 44px;
    min-height: 44px;
  }
  .library-controls {
    flex-wrap: wrap;
    gap: 10px;
    padding: 0 16px 12px;
  }
  .library-controls .search {
    width: 100%;
  }
  #family-filters {
    flex: 1 1 100%;
    overflow-x: auto;
    scrollbar-width: none;
    margin: 0 -16px;
    padding: 0 16px;
  }
  #family-filters::-webkit-scrollbar {
    display: none;
  }
  #family-filters button {
    flex: none;
  }
  #queue-library {
    margin-left: 0;
  }
  #library-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 14px 16px;
    max-height: none;
  }
  .asset-card .thumb {
    height: 104px;
    padding: 16px;
  }
  .dialog-footer {
    padding: 12px 16px;
  }
  .batch-command {
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 16px 16px;
  }
  .batch-command textarea,
  .batch-command select {
    flex: 1 1 100%;
  }
  .batch-command button {
    flex: 1 1 auto;
  }
  #batch-summary {
    padding: 10px 16px;
  }
  #batch-list {
    max-height: none;
    padding: 8px 16px;
  }
  .batch-row {
    flex-wrap: wrap;
    gap: 2px 10px;
    padding: 10px 0;
    overflow-wrap: anywhere;
  }
  #results-body {
    padding: 0 16px 20px;
    overflow-x: auto;
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .metric {
    padding: 12px;
  }
  .metric strong {
    font-size: 24px;
  }
  #model-body {
    padding: 0 16px 20px;
  }
  .model-actions button {
    flex: 1;
  }
}

/* Touch screens at any width: finger-sized targets, and 16px form text so iOS
   does not zoom the page every time a field takes focus. */
@media (pointer: coarse) {
  input,
  textarea,
  select,
  .two-col input,
  .search,
  #instruction,
  #program,
  #edit-mode {
    font-size: 16px;
  }
  .view-tabs button,
  #fit,
  .stage-bottom button,
  .left-bottom button,
  .panel-tabs button,
  .two-col button,
  .color-control select,
  .color-control button,
  #program-toggle {
    min-height: 40px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .view-tabs button,
  #fit {
    font-size: 12px;
  }
  .stage-bottom button {
    font-size: 12px;
  }
  .color-control input {
    width: 40px;
    height: 40px;
  }
  .object-row {
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .stage-meta,
  .stage-bottom {
    font-size: 10px;
  }
}
@media (hover: none) {
  .asset-card:hover {
    transform: none;
  }
}
