/* Property Hub — shared styles */
:root {
  --ink: #22302b;
  --muted: #6b7a74;
  --accent: #2f6f4f;
  --accent-dark: #245a3f;
  --bg: #f4f6f4;
  --card: #ffffff;
  --line: #e2e8e4;
  --urgent: #b3441e;
  --urgent-bg: #fdf1ec;
  --ok: #2f6f4f;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.55;
}
.wrap { max-width: 880px; margin: 0 auto; padding: 20px 16px 80px; }
a { color: var(--accent); }

/* Top bar */
.topbar {
  background: var(--accent);
  color: #fff;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.topbar .brand { font-weight: 700; font-size: 18px; color: #fff; text-decoration: none; }
.topbar nav { display: flex; gap: 14px; flex-wrap: wrap; }
.topbar nav a { color: #eaf4ee; text-decoration: none; font-size: 15px; }
.topbar nav a:hover { text-decoration: underline; }

h1 { font-size: 28px; margin: 18px 0 6px; }
h2 { font-size: 21px; margin: 34px 0 10px; }
.sub { color: var(--muted); margin: 0 0 18px; }

/* Cards */
.cards { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 18px; }
@media (min-width: 640px) { .cards { grid-template-columns: 1fr 1fr; } }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  text-decoration: none;
  color: var(--ink);
  display: block;
  transition: box-shadow .15s ease, transform .15s ease;
}
.card:hover { box-shadow: 0 6px 18px rgba(34,48,43,.10); transform: translateY(-1px); }
.card .emoji { font-size: 30px; }
.card h3 { margin: 8px 0 6px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card .meta { margin-top: 10px; font-size: 14px; color: var(--accent); font-weight: 600; }

/* Panels / sections */
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  margin: 16px 0;
}
.panel.urgent { border: 2px solid var(--urgent); background: var(--urgent-bg); }
.panel.urgent h2 { color: var(--urgent); margin-top: 0; }
.rule { background: #eef4f0; border-radius: 10px; padding: 12px 16px; margin: 10px 0; font-size: 15px; }

/* Check items */
.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 6px;
  border-bottom: 1px solid var(--line);
}
.check:last-child { border-bottom: none; }
.check input[type=checkbox] {
  width: 26px; height: 26px; flex: none; margin-top: 2px;
  accent-color: var(--accent); cursor: pointer;
}
.check label { cursor: pointer; }
.check .t { font-weight: 700; }
.check .d { color: var(--muted); font-size: 15px; margin-top: 2px; }
.check.done .t, .check.done .d { color: #9aa8a1; text-decoration: line-through; }

/* Progress */
.progress { margin: 14px 0 4px; }
.progress .bar { height: 10px; background: #e2e8e4; border-radius: 6px; overflow: hidden; }
.progress .fill { height: 100%; background: var(--accent); width: 0; transition: width .2s ease; }
.progress .label { font-size: 14px; color: var(--muted); margin-top: 6px; }

/* Login */
.login-shell { min-height: 92vh; display: flex; align-items: center; justify-content: center; padding: 16px; }
.login-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 34px 28px; width: 100%; max-width: 420px; text-align: center;
  box-shadow: 0 10px 30px rgba(34,48,43,.08);
}
.login-card .logo { font-size: 42px; }
.login-card h1 { margin: 10px 0 4px; }
.login-card p { color: var(--muted); margin: 0 0 22px; }
.field { text-align: left; margin-bottom: 14px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 5px; color: var(--muted); }
.field input {
  width: 100%; padding: 13px 14px; font-size: 17px;
  border: 1.5px solid var(--line); border-radius: 10px; background: #fbfcfb;
}
.field input:focus { outline: none; border-color: var(--accent); }
.btn {
  display: inline-block; width: 100%; padding: 14px; font-size: 17px; font-weight: 700;
  color: #fff; background: var(--accent); border: none; border-radius: 10px; cursor: pointer;
}
.btn:hover { background: var(--accent-dark); }
.btn.small { width: auto; padding: 10px 18px; font-size: 15px; }
.err { color: var(--urgent); font-size: 15px; margin-top: 12px; display: none; }

/* Goods checklist items */
.gitem {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 16px; margin-bottom: 12px;
}
.gitem.filled { border-left: 5px solid var(--ok); }
.gitem .head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.gitem .name { font-weight: 700; font-size: 17px; }
.gitem .chip {
  font-size: 12px; font-weight: 700; letter-spacing: .4px; color: #fff;
  background: #7d8f87; border-radius: 20px; padding: 3px 10px; white-space: nowrap;
}
.gitem .chip.special { background: var(--urgent); }
.gitem .detail { color: var(--muted); font-size: 14px; margin: 6px 0 10px; }
.gitem .note { font-size: 14px; background: #f2f5f3; border-radius: 8px; padding: 8px 12px; margin-bottom: 10px; }
.gitem .fields { display: grid; grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 560px) { .gitem .fields { grid-template-columns: 1.2fr 1fr 1.4fr; } }
.gitem select, .gitem input[type=date], .gitem input[type=text] {
  width: 100%; padding: 10px; font-size: 15px;
  border: 1.5px solid var(--line); border-radius: 8px; background: #fbfcfb;
}
.gitem select:focus, .gitem input:focus { outline: none; border-color: var(--accent); }
.gitem .fullrow { grid-column: 1 / -1; }

.toolrow { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 16px 0; }

/* Ideas page */
.idea { display: flex; gap: 14px; padding: 16px 4px; border-bottom: 1px solid var(--line); }
.idea:last-child { border-bottom: none; }
.idea .n {
  flex: none; width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.idea h3 { margin: 4px 0 4px; font-size: 18px; }
.idea p { margin: 0 0 4px; color: var(--muted); font-size: 15px; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; border-radius: 20px; padding: 2px 10px; margin-top: 6px; }
.tag.live { background: #e2f0e8; color: var(--accent-dark); }
.tag.soon { background: #fdf3e2; color: #9a6b12; }

table.five { width: 100%; border-collapse: collapse; font-size: 15px; }
table.five th, table.five td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.five th { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .5px; }

.footer-note { color: var(--muted); font-size: 14px; text-align: center; margin-top: 40px; }
