:root {
  --bg: #f6f7f5;
  --ink: #17201b;
  --muted: #68736c;
  --line: #dbe2dc;
  --panel: #fff;
  --primary: #16745a;
  --warn-bg: #fff8df;
  --warn-line: #ead68d;
  --error: #b73535;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, p {
  margin: 0;
}

.topbar {
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  padding: 14px 18px;
}

.brand {
  font-size: 18px;
  font-weight: 700;
}

.page {
  margin: 0 auto;
  max-width: 560px;
  padding: 18px;
}

.section-head {
  margin-bottom: 14px;
}

.section-head h1,
.done-panel h1 {
  font-size: 26px;
}

.house-list {
  display: grid;
  gap: 12px;
}

.house-row,
.upload-card,
.done-panel,
.login-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.house-row {
  display: grid;
  gap: 14px;
}

.house-row h2 {
  font-size: 18px;
}

.muted,
.done-panel p {
  color: var(--muted);
  font-size: 14px;
  margin-top: 6px;
}

.done-panel .button {
  margin-top: 18px;
}

.button {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 650;
  justify-content: center;
  min-height: 46px;
  padding: 0 16px;
  width: 100%;
}

.button.primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.button.big {
  min-height: 54px;
}

.upload-card h1 {
  font-size: 32px;
  margin-top: 10px;
}

.progress {
  background: #e7ece8;
  border-radius: 999px;
  height: 10px;
  margin: 20px 0;
  overflow: hidden;
}

.progress span {
  background: var(--primary);
  display: block;
  height: 100%;
}

.upload-form,
.login-panel form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

input {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  min-height: 46px;
  padding: 9px 12px;
  width: 100%;
}

.photo-preview {
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: none;
  object-fit: cover;
  width: 100%;
}

input[type="file"] {
  height: 1px;
  opacity: 0;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

.photo-picker {
  align-items: center;
  border: 2px dashed var(--line);
  border-radius: 8px;
  cursor: pointer;
  display: grid;
  gap: 6px;
  justify-items: center;
  min-height: 92px;
  padding: 14px 14px;
  text-align: center;
}

.photo-picker-icon {
  align-items: center;
  background: var(--primary);
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  font-size: 28px;
  font-weight: 500;
  height: 44px;
  justify-content: center;
  line-height: 1;
  width: 44px;
}

.photo-picker-text {
  font-size: 17px;
  font-weight: 750;
}

.photo-picker-name {
  color: var(--muted);
  font-size: 14px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.messages {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.message {
  background: var(--warn-bg);
  border: 1px solid var(--warn-line);
  border-radius: 6px;
  padding: 10px 12px;
}

.message.error,
.field-errors,
.errorlist {
  color: var(--error);
}

.empty {
  color: var(--muted);
  padding: 22px;
  text-align: center;
}

.login-body {
  align-items: center;
  display: flex;
  min-height: 100vh;
  padding: 18px;
}

.login-panel {
  margin: 0 auto;
  max-width: 420px;
  width: 100%;
}

.footer {
  color: var(--muted);
  font-size: 13px;
  padding: 18px;
  text-align: center;
}

.login-footer {
  bottom: 0;
  left: 0;
  position: fixed;
  right: 0;
}
