/* src/style.css */
:root {
  --bg: #d8e4d2;
  --ink: #2b2b28;
  --muted: #6b6a64;
  --paper: #fffdf8;
  --line: #e4ddd2;
  --accent: #c46a3a;
  --sage: #5d7a4c;
  --shadow: 0 12px 40px rgba(40, 36, 28, 0.12);
  font-family:
    Inter,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  height: 100%;
  background: #cfdcc8;
}
button,
input {
  font: inherit;
}
.topbar {
  min-height: 56px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding: 8px 16px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 2;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 140px;
}
.leaf {
  width: 22px;
  height: 22px;
  border-radius: 50% 0 50% 50%;
  background: var(--sage);
  transform: rotate(-20deg);
}
.file-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.file-actions select,
.file-actions input[type=text] {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 7px 10px;
  background: #fff;
  max-width: 160px;
}
.account {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.account img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}
.account em {
  font-style: normal;
  color: var(--muted);
  font-size: 12px;
}
.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: #cfdcc8;
  display: grid;
  place-items: center;
}
body.authed .auth-gate {
  display: none;
}
.auth-card {
  background: var(--paper);
  border-radius: 20px;
  padding: 36px 32px;
  box-shadow: var(--shadow);
  text-align: center;
  max-width: 360px;
}
.auth-card h1 {
  margin: 12px 0 8px;
  font-size: 28px;
}
.auth-card p {
  color: var(--muted);
  margin: 0 0 20px;
}
.auth-card button {
  border: 0;
  background: var(--ink);
  color: #fff;
  border-radius: 12px;
  padding: 12px 18px;
  cursor: pointer;
  font-weight: 600;
}
.auth-error {
  color: #9a3b2a;
  margin-top: 14px;
}
.file-actions button,
.toggles button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 7px 12px;
  cursor: pointer;
}
.file-actions button:hover,
.toggles button:hover {
  border-color: #d0c4b4;
}
.lot-chip {
  margin-left: auto;
  background: #f4efe6;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
}
.sun {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}
.sun input {
  width: 120px;
}
.sun em {
  font-style: normal;
  font-weight: 600;
  color: var(--ink);
  min-width: 48px;
}
.stage {
  position: relative;
  height: calc(100% - 64px);
}
#view {
  display: block;
  width: 100%;
  height: 100%;
}
.hud {
  position: absolute;
  left: 18px;
  bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.compass {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
}
.measure,
.hint {
  background: rgba(255, 253, 248, 0.94);
  border-radius: 10px;
  padding: 6px 10px;
  margin: 0;
  font-size: 13px;
  box-shadow: var(--shadow);
}
.hint {
  color: var(--muted);
}
.panel {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 300px;
  max-height: calc(100% - 32px);
  overflow: auto;
  background: var(--paper);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 8px 14px 16px;
}
.panel section {
  padding: 10px 0 12px;
  border-bottom: 1px solid var(--line);
}
.panel section:last-child {
  border-bottom: 0;
}
.panel h2 {
  margin: 0 0 10px;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.panel h2.sub {
  margin-top: 14px;
}
.block input[type=text] {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 8px;
  background: #fff;
}
.field-note {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.35;
}
.danger {
  margin-top: 12px;
  width: 100%;
  border: 1px solid #e4c4b8;
  background: #fff4f0;
  color: #a43b24;
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
}
.danger:hover {
  background: #fde4dc;
}
.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.row.three {
  grid-template-columns: 1fr 1fr 1fr;
}
.row label,
.block,
.check {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--muted);
}
.row label {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.row input[type=number] {
  width: 64px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 5px 6px;
  background: #fff;
}
.block input[type=range] {
  width: 100%;
}
.rot-row {
  display: flex;
  align-items: end;
  gap: 10px;
  margin-top: 8px;
}
.rot-slider {
  flex: 1;
}
.rot-num {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
}
.rot-num input {
  width: 64px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 6px;
  background: #fff;
  text-align: right;
}
.check {
  flex-direction: row;
  align-items: center;
  margin-bottom: 8px;
  color: var(--ink);
}
.toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.toggles button.active,
.swatch.active {
  border-color: var(--accent);
  background: #f8ebe3;
  color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.swatches {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.swatch {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--line);
  cursor: pointer;
  padding: 0;
}
.swatch:disabled {
  cursor: default;
  opacity: 0.9;
}
.stucco {
  background: #f3eee6;
}
.brick {
  background: repeating-linear-gradient(#8b4030 0 8px, #6b3a2a 8px 10px);
}
.tiles {
  background: #c45a32;
}
.grass {
  background: #4a7a32;
}
.water {
  background: #2a9bb8;
}
@media (max-width: 820px) {
  .panel {
    width: min(100% - 20px, 300px);
    max-height: 42%;
    top: auto;
    bottom: 12px;
    right: 10px;
  }
}
/*# sourceMappingURL=app.css.map */
