:root {
  --bg: #faf7f2;
  --ink: #1d1d1f;
  --muted: #6b6b70;
  --accent: #d2691e;
  --line: #e4ddd0;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, sans-serif; color: var(--ink); background: var(--bg); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.topbar { display: flex; align-items: center; gap: 1.5rem; padding: 0.75rem 1.5rem; border-bottom: 1px solid var(--line); background: white; }
.topbar .brand { font-weight: 700; font-size: 1.1rem; }
.topbar .tenant-nav { display: flex; gap: 1rem; flex: 1; }
.topbar .user { margin-left: auto; display: flex; gap: 0.75rem; align-items: center; color: var(--muted); }
main { max-width: 1100px; margin: 2rem auto; padding: 0 1.5rem; }
h1 { font-size: 1.6rem; margin-bottom: 1rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.card { background: white; border: 1px solid var(--line); border-radius: 8px; padding: 1rem; }
.card h3 { margin: 0 0 0.5rem; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0.5rem; margin-top: 1.5rem; }
.photo-grid img { width: 100%; height: 160px; object-fit: cover; border-radius: 4px; }
table { width: 100%; border-collapse: collapse; background: white; }
th, td { padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--line); text-align: left; }
.auth-form { display: flex; flex-direction: column; gap: 0.75rem; max-width: 320px; }
.auth-form label { display: flex; flex-direction: column; gap: 0.25rem; }
.auth-form input { padding: 0.5rem; border: 1px solid var(--line); border-radius: 4px; }
.auth-form button { padding: 0.5rem 1rem; background: var(--accent); color: white; border: 0; border-radius: 4px; cursor: pointer; }
.messages { list-style: none; padding: 0 1.5rem; }
.messages li { padding: 0.5rem 1rem; border-radius: 4px; margin: 0.25rem 0; background: #fef3c7; }
.messages li.error { background: #fee2e2; }
.hero { text-align: center; padding: 4rem 1rem; }
.hero h1 { font-size: 3rem; margin: 0 0 1rem; }
.dep { display: inline-block; padding: 0.1rem 0.4rem; border-radius: 3px; background: #f4ebd9; font-size: 0.85em; }
.dep-done { background: #d8efdd; text-decoration: line-through; opacity: 0.7; }
.dep-blocked { background: #fde2e2; }
.dep-open { background: #fef3c7; }
.dep-received { background: #c7e0fd; }
.dep-accepted { background: #d8efdd; }
.dep-declined { background: #fde2e2; }
.dep-expired { background: #ebe4d3; }
.dep-cancelled { background: #ebe4d3; opacity: 0.7; }
h2 small { color: var(--muted); font-weight: normal; }
.new-task { margin: 1rem 0 1.5rem; background: white; border: 1px solid var(--line); border-radius: 6px; padding: 0.5rem 1rem; }
.new-task summary { cursor: pointer; font-weight: 600; padding: 0.25rem 0; }
.task-form { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.75rem; }
.task-form .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0.5rem; }
.task-form input, .task-form select, .task-form textarea { padding: 0.4rem; border: 1px solid var(--line); border-radius: 4px; width: 100%; font-family: inherit; font-size: 0.9rem; }
.task-form label { display: flex; flex-direction: column; gap: 0.2rem; font-size: 0.85rem; color: var(--muted); }
.task-form button { padding: 0.5rem 1rem; background: var(--accent); color: white; border: 0; border-radius: 4px; cursor: pointer; width: max-content; }
.task-form small { color: var(--muted); font-size: 0.75rem; }
.messages li.success { background: #d8efdd; }
