:root{
  --bg:#ffffff;
  --text:#0b1220;
  --muted:#516075;
  --border:#e6e8ec;
  --chip:#eef3ff;
  --codebg:#f6f8fa;
}
*{box-sizing:border-box}
body{
  margin:0;
  font-family: ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial;
  background:var(--bg);
  color:var(--text);
}
.wrap{max-width:980px;margin:0 auto;padding:48px 20px;}
h1,h2,h3{margin:16px 0 10px;line-height:1.2}
p{line-height:1.7;margin:10px 0}
hr{border:0;border-top:1px solid var(--border);margin:18px 0}
.muted{color:var(--muted)}
a{color:#2563eb;text-decoration:none}
a:hover{text-decoration:underline}
pre{background:var(--codebg);color:#0f172a;border:1px solid #e5e7eb;padding:12px 12px;border-radius:12px;overflow:auto;max-width:100%}
blockquote{border-left:4px solid var(--border);padding-left:12px;color:var(--muted);margin:12px 0}
.callout{background:var(--chip);border:1px solid var(--border);padding:12px 14px;border-radius:12px;margin:12px 0}
.todo{display:flex;gap:10px;align-items:flex-start;margin:8px 0}
.todo-mark{width:18px;flex:0 0 18px;color:var(--muted)}
ul,ol{margin:10px 0 10px 22px;line-height:1.7}

/* tables */
.notion-table-wrap{overflow:auto;max-width:100%;border:1px solid var(--border);border-radius:12px;margin:12px 0}
.notion-table{border-collapse:collapse;width:100%;min-width:520px;background:#fff}
.notion-table th,.notion-table td{border-bottom:1px solid var(--border);border-right:1px solid var(--border);padding:10px 12px;text-align:left;vertical-align:top;font-size:14px;line-height:1.4}
.notion-table th{background:#f8fafc;font-weight:700}
.notion-table tr:last-child td{border-bottom:0}
.notion-table th:last-child,.notion-table td:last-child{border-right:0}

/* doc list */
.topbar{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:18px}
.search{display:flex;gap:8px;align-items:center}
.search input{width:320px;max-width:72vw;padding:10px 12px;border:1px solid var(--border);border-radius:10px;font-size:14px}
.chip{display:inline-flex;align-items:center;gap:8px;padding:6px 10px;border-radius:999px;border:1px solid var(--border);background:#fff;color:var(--muted);font-size:12px}
.list{margin-top:10px;border:1px solid var(--border);border-radius:14px;overflow:hidden}
.row{display:flex;gap:12px;align-items:flex-start;padding:12px 14px;border-top:1px solid var(--border)}
.row:first-child{border-top:0}
.row:hover{background:#fafafa}
.did{min-width:170px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:12px;color:var(--muted)}
.rmain{flex:1}
.rtitle{font-weight:700;margin:0 0 2px}
.rmeta{font-size:12px;color:var(--muted)}
