:root { --green: #2f5d3a; --leaf: #5f9e4d; --cream: #f7f4ea; --ink: #1d2a20; --muted: #6b766d; --warn: #a33a2a; }
* { box-sizing: border-box; }
body { margin: 0; font: 17px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--cream); padding-bottom: env(safe-area-inset-bottom); }
.top { position: sticky; top: 0; z-index: 2; background: var(--green); color: #fff; padding: 12px 16px 0; }
.top h1 { margin: 0 0 8px; font-size: 20px; }
.top nav { display: flex; gap: 8px; }
.tab { flex: 1; border: 0; border-radius: 10px 10px 0 0; padding: 12px; font-size: 16px; background: #46794f; color: #fff; }
.tab.on { background: var(--cream); color: var(--green); font-weight: 700; }
.panel { padding: 16px; max-width: 900px; margin: 0 auto; }
input[type=search], input[type=text], input[type=password], input[type=file] { width: 100%; padding: 14px; font-size: 18px; border: 1px solid #c9d1c6; border-radius: 10px; background: #fff; }
label { display: block; margin: 12px 0; font-weight: 600; }
label input { margin-top: 6px; font-weight: 400; }
.muted { color: var(--muted); font-size: 15px; }
.warn { color: var(--warn); font-weight: 600; }
.box { display: flex; flex-direction: column; gap: 10px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; }
button { min-height: 46px; padding: 10px 14px; border-radius: 10px; border: 0; font-size: 16px; font-weight: 600; cursor: pointer; }
button:disabled { opacity: .45; }
.primary { background: var(--leaf); color: #fff; }
.ghost { background: #e4eadf; color: var(--green); }
.danger { background: #f3d9d4; color: var(--warn); }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 12px; }
@media (min-width: 720px) { .grid { grid-template-columns: repeat(4, 1fr); } }
.card { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.08); display: flex; flex-direction: column; }
.card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #e9ece6; display: block; }
.meta { padding: 10px 10px 4px; }
.meta h3 { margin: 0 0 4px; font-size: 16px; line-height: 1.25; }
.tags { margin: 0; color: var(--muted); font-size: 13px; }
.card .row { padding: 8px 10px 12px; margin-top: auto; }
.card .row button { flex: 1 1 auto; font-size: 14px; padding: 10px 8px; min-height: 42px; }
#preview { width: 100%; max-height: 260px; object-fit: contain; border-radius: 10px; background: #e9ece6; }
dialog { border: 0; border-radius: 14px; width: min(92vw, 460px); padding: 18px; }
dialog::backdrop { background: rgba(0,0,0,.4); }
#toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 10px; max-width: 90vw; text-align: center; }
#lock .box { max-width: 360px; margin: 40px auto; }
.help { background: #fff; border-radius: 12px; padding: 12px 16px; margin-top: 8px; }
.help summary { font-weight: 700; color: var(--green); cursor: pointer; min-height: 40px; }
.help li { margin: 8px 0; }
