:root { --bg:#f4f5f8; --card:#fff; --ink:#1b2130; --muted:#5d6577; --line:#e1e4ea; --accent:#2f6fed; --danger:#d93025; --ok:#188038; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin:0; font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background:var(--bg); color:var(--ink); min-height:100vh; }
a { color: var(--accent); }
:focus-visible { outline: 3px solid #fbbf24; outline-offset: 2px; }
[hidden] { display:none !important; }
.center { min-height:100vh; display:flex; align-items:center; justify-content:center; padding:24px; }
.card { background:var(--card); border:1px solid var(--line); border-radius:16px; padding:28px; }
.auth { width:100%; max-width:430px; }
.brand { display:flex; align-items:center; gap:12px; margin-bottom:18px; }
.brand img { width:44px; height:44px; }
.brand h1 { font-size:22px; margin:0; line-height:1.2; }
.brand p { margin:0; color:var(--muted); font-size:14px; }
h2 { font-size:18px; margin:0 0 10px; }
label { display:block; font-weight:600; font-size:14px; margin:14px 0 6px; }
label .hint { font-weight:400; color:var(--muted); }
input[type=text], input[type=email], input[type=password], input[type=number], select {
  width:100%; font:inherit; padding:11px 12px; border:1.5px solid #cfd5df; border-radius:10px; background:#fff; color:inherit; }
input:focus, select:focus { outline:none; border-color:var(--accent); box-shadow:0 0 0 3px rgba(47,111,237,.15); }
.check { display:flex; gap:10px; align-items:flex-start; font-weight:400; font-size:15px; }
.check input { width:20px; height:20px; margin-top:2px; flex:none; accent-color:var(--accent); }
button, .btn { appearance:none; border:0; border-radius:10px; background:var(--accent); color:#fff; font:600 15px/1 inherit;
  padding:0 16px; min-height:44px; cursor:pointer; display:inline-flex; align-items:center; justify-content:center; gap:6px; text-decoration:none; }
button:hover, .btn:hover { filter:brightness(1.06); }
button:disabled { opacity:.5; cursor:default; }
button.block { width:100%; margin-top:20px; min-height:50px; font-size:16px; }
button.ghost, .btn.ghost { background:#e9edf5; color:var(--ink); }
button.danger { background:var(--danger); }
button.link { background:none; color:var(--accent); padding:0 6px; min-height:36px; }
button.small, .btn.small { min-height:36px; padding:0 12px; font-size:14px; }
.error { color:var(--danger); font-size:14px; min-height:20px; margin-top:10px; }
.note { background:#f1f5ff; border:1px solid #d6e2ff; border-radius:10px; padding:12px 14px; font-size:14px; color:#2b3550; margin:12px 0; }
.muted { color:var(--muted); font-size:14px; }
.foot { margin-top:18px; text-align:center; font-size:13px; color:var(--muted); }

/* app shell */
.topbar { background:#1d2433; color:#fff; display:flex; align-items:center; gap:14px; padding:10px 20px; flex-wrap:wrap; }
.topbar img { width:32px; height:32px; }
.topbar .title { font-weight:700; font-size:17px; margin-right:auto; }
.topbar .title small { display:block; font-weight:400; font-size:12px; color:#aab3c5; }
.topbar a, .topbar button { color:#dfe4ee; background:transparent; font-weight:500; font-size:14px; min-height:36px; padding:0 10px; text-decoration:none; border-radius:8px; }
.topbar a:hover, .topbar button:hover { background:#2c3446; }
.wrap { max-width:1080px; margin:0 auto; padding:24px 20px 60px; }
.row { display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.row.end { justify-content:flex-end; }
.newboard { display:flex; gap:10px; margin:6px 0 22px; flex-wrap:wrap; }
.newboard input { flex:1; min-width:220px; }
.boards { display:grid; grid-template-columns:repeat(auto-fill, minmax(260px, 1fr)); gap:14px; }
.board { background:#fff; border:1px solid var(--line); border-radius:14px; padding:16px; display:flex; flex-direction:column; gap:8px; }
.board h3 { margin:0; font-size:17px; word-break:break-word; }
.board .meta { font-size:13px; color:var(--muted); }
.board .actions { display:flex; gap:6px; margin-top:auto; padding-top:8px; flex-wrap:wrap; }
.empty { text-align:center; padding:50px 20px; color:var(--muted); background:#fff; border:1px dashed #cfd5df; border-radius:14px; }
table { width:100%; border-collapse:collapse; background:#fff; border:1px solid var(--line); border-radius:12px; overflow:hidden; }
th, td { text-align:left; padding:11px 12px; border-bottom:1px solid #eef0f4; font-size:14px; vertical-align:middle; }
th { background:#f7f8fb; font-size:12px; text-transform:uppercase; letter-spacing:.05em; color:#6b7386; }
.tag { display:inline-block; font-size:12px; font-weight:600; padding:2px 8px; border-radius:20px; background:#eef1f6; color:#475069; }
.tag.admin { background:#e8f0fe; color:#1a56c8; } .tag.pending { background:#fef7e0; color:#8a5a00; } .tag.off { background:#fce8e6; color:#b3261e; }
section + section { margin-top:34px; }
.grid2 { display:grid; grid-template-columns:1fr 1fr; gap:0 22px; }
@media (max-width:720px) { .grid2 { grid-template-columns:1fr; } .hide-sm { display:none; } }
.linkbox { display:flex; gap:8px; margin-top:8px; }
.linkbox input { font:13px ui-monospace, Menlo, monospace; }
dialog { border:0; border-radius:16px; padding:24px; width:min(460px, 92vw); box-shadow:0 20px 60px rgba(0,0,0,.35); }
dialog::backdrop { background:rgba(10,14,22,.55); }
dialog h2 { margin-top:0; }
.toast { position:fixed; left:50%; bottom:24px; transform:translateX(-50%); background:#1d2433; color:#fff; padding:10px 18px; border-radius:10px; font-weight:600; z-index:50; }

/* privacy doc */
body.doc { background:#fff; }
.narrow { max-width:760px; margin:0 auto; padding:40px 22px 60px; }
.doc h1 { font-size:30px; margin-bottom:6px; } .doc h2 { margin-top:28px; } .doc li { margin:6px 0; }
.lead { font-size:17px; color:#3b4357; }

/* install */
.topbar button.install { background:var(--accent); color:#fff; }
.topbar button.install:hover { background:#2a62d4; }
.steps { padding-left:22px; } .steps li { margin:8px 0; }
