:root { --c1: #1d1d1f; --c2: #00a665; --bg: #f2f2f5; --line: #1d1d1f22; --muted: #5c5c60; font-size: 17px; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: #1d1d1f; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; line-height: 1.4; }
button, input, textarea, select { font: inherit; }
:focus-visible { outline: 3px solid var(--c2); outline-offset: 2px; }
.top { position: sticky; top: 0; z-index: 5; display: flex; gap: 10px; align-items: center; padding: 12px 16px; padding-top: calc(12px + env(safe-area-inset-top)); background: var(--c1); color: #fff; }
.top b { flex: 1; } .who { font-size: .8rem; color: #c7c7cc; }
.wrap { max-width: 1000px; margin: 0 auto; padding: 14px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; margin-bottom: 12px; }
.narrow { max-width: 420px; margin: 40px auto; }
h1 { font-size: 1.4rem; margin: .2rem 0 .6rem; } h2 { font-size: 1.15rem; margin: .2rem 0 .6rem; }
.muted { color: var(--muted); } .small { font-size: .85rem; }
label { display: block; font-weight: 600; margin: 10px 0; font-size: .92rem; }
input, textarea, select { display: block; width: 100%; margin-top: 4px; min-height: 46px; padding: 8px 12px; border: 2px solid var(--line); border-radius: 10px; background: #fff; font-weight: 400; }
textarea { min-height: 90px; resize: vertical; }
input[type=checkbox] { display: inline-block; width: 24px; min-height: 24px; height: 24px; vertical-align: middle; margin: 0 8px 0 0; accent-color: var(--c2); }
input[type=color] { padding: 2px; height: 46px; }
label.cb { display: flex; align-items: center; min-height: 44px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; padding: 8px 16px; border-radius: 999px; border: 2px solid var(--c1); background: #fff; color: var(--c1); font-weight: 700; cursor: pointer; }
.btn.primary { background: var(--c2); border-color: var(--c2); color: #fff; }
.btn.danger { border-color: #d70015; color: #d70015; }
.btn.ghost { background: transparent; color: #fff; border-color: #ffffff66; }
.btn.sm { min-height: 38px; padding: 4px 12px; font-size: .9rem; }
.btn.big { width: 100%; min-height: 54px; margin-top: 8px; }
.msg { color: #d70015; min-height: 1.2em; }
.nav { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 10px; position: sticky; top: 60px; background: var(--bg); z-index: 4; }
.nav button { white-space: nowrap; min-height: 44px; padding: 6px 14px; border-radius: 999px; border: 2px solid var(--line); background: #fff; font-weight: 600; cursor: pointer; }
.nav button[aria-current=true] { background: var(--c1); color: #fff; border-color: var(--c1); }
.bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.rows { display: grid; gap: 8px; }
.row { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.row .main { flex: 1; min-width: 0; } .row .main b { display: block; overflow: hidden; text-overflow: ellipsis; }
.row .sub { color: var(--muted); font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pill { font-size: .75rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #e8f7ef; color: #00663e; margin-right: 4px; }
.pill.off { background: #eee; color: #888; } .pill.warn { background: #fff3cd; color: #6b4e00; }
.grid2 { display: grid; grid-template-columns: 1fr; gap: 0 14px; } @media (min-width: 720px) { .grid2 { grid-template-columns: 1fr 1fr; } .full { grid-column: 1 / -1; } }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; position: sticky; bottom: 0; background: #fff; padding: 10px 0 calc(10px + env(safe-area-inset-bottom)); }
table { width: 100%; border-collapse: collapse; font-size: .88rem; } th, td { text-align: left; padding: 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--c1); color: #fff; padding: 12px 18px; border-radius: 12px; opacity: 0; transition: .25s; pointer-events: none; z-index: 30; }
.toast.on { opacity: 1; }
[hidden] { display: none !important; }
