/* PROTOTYPE (throwaway, Ticket 02): canvas drawing UI variants. */

.proto-stage { position: relative; font: 14px/1.4 system-ui, sans-serif; }

/* ---- shared canvas ---- */
.proto-canvas-wrap {
  background:
    repeating-conic-gradient(#2a2a2a 0% 25%, #222 0% 50%) 0 0 / 16px 16px;
  border: 1px solid #444;
}
.proto-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.12) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.12) 1px, transparent 1px);
  background-repeat: repeat;
}
.proto-tool { width: 40px; height: 40px; font-size: 18px; cursor: pointer; border: 1px solid #555; background: #2a2a2a; color: #eee; border-radius: 8px; }
.proto-tool.active { background: #4a9eff; border-color: #7abaff; color: #fff; }
.proto-palette { display: grid; grid-template-columns: repeat(4, 32px); gap: 6px; }
.proto-palette button { width: 32px; height: 32px; border: 2px solid #555; border-radius: 6px; cursor: pointer; padding: 0; }
.proto-palette button.active { border-color: #fff; }
.proto-btn { cursor: pointer; padding: 6px 12px; border: 1px solid #555; background: #2a2a2a; color: #eee; border-radius: 8px; font: inherit; }
.proto-status { color: #bbb; font: 12px/1.4 monospace; }
.proto-zoom { display: flex; align-items: center; gap: 6px; }
.proto-zoom-label { color: #ddd; font: 12px monospace; min-width: 34px; text-align: center; }

/* ---- variant A: desktop toolbelt ---- */
.proto-a {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  grid-template-areas: "bar bar" "rail center" "rail palette" "status status";
  gap: 14px; padding: 16px; min-height: 100vh; background: #1a1a1a; color: #eee;
}
.proto-a .proto-topbar { grid-area: bar; display: flex; align-items: center; gap: 14px; }
.proto-a .proto-title { font-weight: 700; font-size: 16px; margin-right: auto; }
.proto-a-rail { grid-area: rail; display: flex; flex-direction: column; gap: 8px; }
.proto-a .proto-center { grid-area: center; display: flex; justify-content: center; align-items: flex-start; padding: 8px; }
.proto-a .proto-palette { grid-area: palette; align-self: start; justify-self: center; }
.proto-a .proto-status { grid-area: status; text-align: center; }

/* ---- variant B: minimal floating (dark) ---- */
.proto-b {
  min-height: 100vh; background: #0d0d0d; color: #eee;
  display: flex; align-items: center; justify-content: center; position: relative;
}
.proto-b-center { display: flex; }
.proto-b-pill {
  position: fixed; bottom: 64px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  background: rgba(20,20,20,.9); border: 1px solid #333; border-radius: 16px; padding: 10px 14px;
  box-shadow: 0 8px 30px rgba(0,0,0,.6);
}
.proto-b-pill .proto-tool { background: rgba(60,60,60,.6); border-color: #444; width: 36px; height: 36px; }
.proto-b-pill .proto-tool.active { background: #4a9eff; }
.proto-b-pill .proto-tool:not(:last-child) { margin-right: 6px; }
.proto-b-palette { grid-template-columns: repeat(8, 22px); gap: 4px; }
.proto-b-palette button { width: 22px; height: 22px; }
.proto-b-hint { position: fixed; bottom: 12px; left: 50%; transform: translateX(-50%); color: #555; font: 11px monospace; }
.proto-b-status { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); color: #888; }

/* ---- variant C: inspector panel ---- */
.proto-c {
  display: flex; min-height: 100vh; background: #1a1a1a; color: #eee;
}
.proto-c-center { flex: 1; display: flex; justify-content: center; align-items: flex-start; padding: 24px; }
.proto-c-panel {
  width: 280px; flex: none; border-left: 1px solid #333; background: #202020;
  padding: 16px; display: flex; flex-direction: column; gap: 14px; overflow-y: auto;
}
.proto-c-panel h3 { margin: 0; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: #999; }
.proto-c-segmented { display: flex; gap: 4px; }
.proto-c-segmented .proto-tool { width: auto; height: 32px; flex: 1; font-size: 14px; }
.proto-c-range { width: 100%; accent-color: #4a9eff; }