/* Huscan Garden - private garden planner */
:root { --navy: #0f2747; --leaf: #2f7d4f; --leaf-2: #5b8f2a; --amber: #f2a43a; --ink: #14233a; --muted: #5c6878; --line: #dfe4ea; --bg: #eef3ec; }
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.5 "Segoe UI", system-ui, sans-serif; color: var(--ink); background: var(--bg); }
a { color: #1f6fb2; }
h1 { font-size: 26px; margin: 0; color: var(--navy); }
h2 { font-size: 18px; margin: 0 0 10px; color: var(--navy); }
.muted { color: var(--muted); } .small { font-size: 13px; }
.top { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 10px 20px; background: #fff; border-bottom: 3px solid var(--leaf); }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.brand img { height: 40px; }
.brand b { display: block; color: var(--navy); font-size: 18px; letter-spacing: 1px; }
.brand small { display: block; color: var(--leaf); font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.top nav { display: flex; gap: 4px; flex-wrap: wrap; }
.top nav a { padding: 7px 12px; border-radius: 8px; text-decoration: none; color: var(--navy); font-weight: 600; }
.top nav a.active { background: var(--leaf); color: #fff; }
.who { margin-left: auto; font-size: 14px; color: var(--muted); }
.page { max-width: 1250px; margin: 0 auto; padding: 18px 16px 40px; }
.head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.head-r { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.wk { font-weight: 700; color: var(--navy); }
.card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 14px; }
.btn { display: inline-block; font: inherit; font-weight: 600; padding: 8px 14px; border-radius: 8px; border: 1px solid #c3cbd5; background: #fff; color: var(--navy); cursor: pointer; text-decoration: none; }
.btn-primary { background: var(--leaf); border-color: var(--leaf); color: #fff; }
.btn.danger { color: #9b1c15; border-color: #e7b4b0; }
.btn:disabled { opacity: .6; }
.link { background: none; border: 0; color: #1f6fb2; text-decoration: underline; cursor: pointer; font: inherit; }
.input { font: inherit; padding: 8px 10px; border: 1px solid #c3cbd5; border-radius: 7px; background: #fff; width: 100%; }
label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; font-weight: 600; color: var(--navy); }
label.check { flex-direction: row; align-items: center; gap: 8px; }
.alert { padding: 10px 14px; border-radius: 8px; margin-bottom: 12px; }
.alert.ok { background: #e2f3e9; color: #155c36; } .alert.err { background: #fde2e1; color: #9b1c15; } .alert.warn, .alert.frost { background: #fff4e3; color: #7a4300; }
.wx { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.wx span { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px; font-size: 14px; }
.wx span.cold { background: #e3f1fa; border-color: #8fd0ea; }
.top-check { margin-bottom: 10px; }
.tasks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.task { border-top: 5px solid var(--c, var(--leaf)); margin: 0; }
.task.t-indoor { --c: #8a5a2b; } .task.t-outdoor { --c: var(--leaf); } .task.t-transplant { --c: #1f6fb2; } .task.t-ripe { --c: var(--amber); }
.count { background: #eef1f5; border-radius: 999px; padding: 0 10px; font-size: 14px; margin-left: 6px; }
.crop { border-bottom: 1px solid #eef1f5; padding: 5px 0; }
.crop summary { cursor: pointer; }
.crop ul { margin: 4px 0 4px; padding-left: 20px; }
.tag { font-size: 11px; font-weight: 700; border-radius: 999px; padding: 1px 7px; margin-left: 4px; }
.tag.old { background: #fff1d6; color: #8a5300; } .tag.none { background: #eef1f5; color: var(--muted); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.chip { font: inherit; font-weight: 600; padding: 6px 12px; border-radius: 999px; border: 1px solid #c3cbd5; background: #fff; cursor: pointer; }
.chip.on { background: var(--leaf); border-color: var(--leaf); color: #fff; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filters .input { width: auto; } .filters .grow { flex: 1 1 260px; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); border-bottom: 2px solid var(--line); padding: 6px; }
.table td { border-bottom: 1px solid #eef1f5; padding: 7px 6px; vertical-align: top; }
.table .num { text-align: right; }
.sortable { cursor: pointer; } .sortable:hover { color: var(--navy); }
tr.click { cursor: pointer; } tr.click:hover td { background: #f3f8f1; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.grid .wide { grid-column: 1 / -1; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.login-box { max-width: 380px; margin: 60px auto; display: flex; flex-direction: column; gap: 12px; }
.login-box form { display: flex; flex-direction: column; gap: 12px; }
.plots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.plot-draw { position: relative; margin: 12px 0; background: repeating-linear-gradient(90deg, #7a5a3a 0 10px, #6b4e32 10px 20px); border: 3px solid var(--leaf); border-radius: 6px; max-height: 320px; }
.plot-draw span { position: absolute; top: -22px; left: 50%; transform: translateX(-50%); font-size: 12px; color: var(--muted); }
.plot-edit { display: flex; gap: 10px; } .plot-edit .input { width: 110px; }
#blazor-error-ui { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: #fff3cd; padding: 10px 16px; z-index: 1000; }
#blazor-error-ui .dismiss { cursor: pointer; float: right; }
@media (max-width: 800px) { .tasks, .plots { grid-template-columns: 1fr; } .who { margin-left: 0; } .table th:nth-child(3), .table td:nth-child(3), .table th:nth-child(8), .table td:nth-child(8) { display: none; } }
.coming { margin-top: 14px; } .coming ul { margin: 0; padding-left: 18px; } .coming li { margin: 4px 0; }
.crop li .muted { margin-left: 6px; }
