/* Shared base styles for any R1 creation. Optimized for 240x282px portrait. */

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  width: 240px;
  height: 282px;
  background: #0a0a0a;
  color: #f5f5f5;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 13px;
  line-height: 1.3;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}

#app {
  width: 240px;
  height: 282px;
  display: flex;
  flex-direction: column;
  position: relative;
  border: 4px solid #ff6b00; /* "paint" border — change at runtime */
  background: #0a0a0a;
}

h1, h2, h3 { margin: 0; font-weight: 700; }
h1 { font-size: 16px; }
h2 { font-size: 14px; }
h3 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: #9aa; }

button {
  background: #1a1a1a;
  color: #f5f5f5;
  border: 1px solid #2a2a2a;
  border-radius: 6px;
  padding: 6px 8px;
  font: inherit;
  cursor: pointer;
  min-height: 32px;
}
button:active { background: #2a2a2a; transform: scale(0.98); }
button:disabled { opacity: 0.5; cursor: not-allowed; }

input, textarea {
  background: #1a1a1a;
  color: #f5f5f5;
  border: 1px solid #2a2a2a;
  border-radius: 6px;
  padding: 6px 8px;
  font: inherit;
  width: 100%;
}

.row { display: flex; gap: 4px; }
.col { display: flex; flex-direction: column; gap: 4px; }
.scroll { overflow-y: auto; -webkit-overflow-scrolling: touch; }
.scroll::-webkit-scrollbar { width: 4px; }
.scroll::-webkit-scrollbar-thumb { background: #333; border-radius: 2px; }

.muted { color: #888; }
.tiny { font-size: 11px; }
