/* CollectionPier: one small stylesheet for the public pages and the signed-in area. No fonts, no images, nothing from other sites. */
:root {
  --bg: #f6f7f9; --card: #ffffff; --text: #1d2733; --muted: #5b6672; --line: #dfe3e8;
  --accent: #2b59d8; --on-accent: #ffffff; --ok: #1a7f4b; --warn: #8a5a00; --err: #b3261e; --radius: 10px;
  --m-get: #0a7a42; --m-post: #8a5a00; --m-put: #08708f; --m-patch: #6a45f0;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #14181d; --card: #1c2229; --text: #e8ecf0; --muted: #9aa5b1; --line: #2d3640; --ok: #5fcf95; --warn: #e0b04a; --err: #ff8a80;
    --accent: #7c9dff; --on-accent: #0b1020; --m-get: #4fd08a; --m-post: #e0b04a; --m-put: #4cc3e8; --m-patch: #a99bff; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
a { color: var(--accent); }
h1 { font-size: 1.7rem; margin: 1rem 0 .4rem; }
h2 { font-size: 1.25rem; margin: 1.6rem 0 .5rem; }
h3 { font-size: 1.05rem; margin: 0; }
p { margin: .4rem 0 .8rem; }
.wrap { max-width: 920px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.mono { font-family: ui-monospace, Consolas, monospace; font-size: .9em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sep { margin: 0 .5rem; }

.page { min-height: 100vh; display: flex; flex-direction: column; }
.page main { flex: 1; padding-bottom: 2rem; }
.top { background: var(--card); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; padding-top: .7rem; padding-bottom: .7rem; }
.brand { font-weight: 700; font-size: 1.15rem; color: var(--text); text-decoration: none; }
.top nav { margin-left: auto; display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.top nav a { color: var(--text); text-decoration: none; }
.top nav a:hover { text-decoration: underline; }
.foot { border-top: 1px solid var(--line); padding-top: 1rem; padding-bottom: 1.5rem; color: var(--muted); font-size: .85rem; }
.foot a { color: var(--muted); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; margin: .8rem 0; }
.narrow { max-width: 460px; margin-left: auto; margin-right: auto; }
.hero { padding: 2.5rem 0 1rem; }
.hero h1 { font-size: 2.2rem; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 40rem; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .8rem; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .8rem; }
.plan ul { padding-left: 1.1rem; margin: .4rem 0; }
.price { font-size: 1.3rem; font-weight: 700; margin: .2rem 0; }
.doc { max-width: 46rem; padding-top: 1rem; }
.doc h2 { font-size: 1.1rem; }
.empty { color: var(--muted); padding: 1rem 0; }
.code { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: .6rem .8rem; overflow-x: auto; font-size: .85rem; }

.btn, button.btn { display: inline-block; background: var(--accent); color: var(--on-accent); border: 0; border-radius: 8px; padding: .5rem 1rem; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn:hover { filter: brightness(1.08); }
.btn[disabled] { opacity: .5; cursor: default; }
.btn-quiet { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.btn-danger { background: var(--err); }
.linkish { background: none; border: 0; color: var(--accent); cursor: pointer; font: inherit; padding: 0; text-decoration: underline; }
.inline { display: inline; }
form.stack { display: grid; gap: .7rem; }
label { display: grid; gap: .25rem; font-weight: 600; font-size: .95rem; }

/* workspace, collections tree, request editor, response */
.team h1 { margin-top: 1.2rem; }
.brand img { display: block; height: 30px; width: auto; }
.crumbs { color: var(--muted); font-size: .9rem; margin-top: .8rem; }
.crumbs a { color: var(--muted); }
.row { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.row > * { margin: 0; }
.tree { list-style: none; padding-left: 1.1rem; margin: .3rem 0; }
.tree.root { padding-left: 0; }
.tree li { margin: .2rem 0; }
.folder { font-weight: 600; }
.method { display: inline-block; min-width: 3.6rem; text-align: center; font-size: .72rem; font-weight: 700; padding: .05rem .35rem; border-radius: 6px; border: 1px solid var(--line); background: var(--bg); font-family: ui-monospace, Consolas, monospace; }
.m-GET { color: var(--m-get); border-color: var(--m-get); } .m-POST { color: var(--m-post); border-color: var(--m-post); } .m-PUT { color: var(--m-put); border-color: var(--m-put); }
.m-PATCH { color: var(--m-patch); border-color: var(--m-patch); } .m-DELETE { color: var(--err); border-color: var(--err); }
.editor { display: grid; gap: .8rem; }
.editor .line { display: grid; grid-template-columns: 8rem 1fr; gap: .5rem; }
.editor textarea { font-family: ui-monospace, Consolas, monospace; font-size: .9rem; min-height: 6rem; }
.editor textarea.big { min-height: 12rem; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .6rem; }
.resp { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem 1rem; margin: .8rem 0; }
.resp pre { white-space: pre-wrap; overflow-wrap: anywhere; margin: .4rem 0; font-family: ui-monospace, Consolas, monospace; font-size: .85rem; max-height: 28rem; overflow: auto; }
.status-2 { color: var(--ok); font-weight: 700; } .status-3 { color: var(--warn); font-weight: 700; } .status-4, .status-5 { color: var(--err); font-weight: 700; }
table.rows { border-collapse: collapse; width: 100%; }
table.rows th, table.rows td { text-align: left; padding: .3rem .4rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.rows input[type=text], table.rows input[type=password] { padding: .3rem .4rem; }
input[type=password], input[type=file] { font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: .5rem .6rem; width: 100%; }
.badge-secret { border-color: var(--warn); color: var(--warn); }
.badge-paused { border-color: var(--err); color: var(--err); }
.badge-ok { border-color: var(--ok); color: var(--ok); }
@media (max-width: 520px) { .hero h1 { font-size: 1.7rem; } .editor .line { grid-template-columns: 1fr; } }

label.check { display: flex; gap: .5rem; align-items: center; font-weight: 400; }
input[type=text], input[type=email], input[type=search], textarea, select {
  font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: .5rem .6rem; width: 100%;
}
.toolbar { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin: .8rem 0; }
summary { cursor: pointer; font-weight: 600; }
details.card[open] summary { margin-bottom: .6rem; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.notice { border-radius: 8px; padding: .55rem .8rem; margin: .7rem 0; border: 1px solid var(--line); background: var(--card); }
.notice-error { border-color: var(--err); color: var(--err); }
.notice-ok { border-color: var(--ok); color: var(--ok); }
.notice-warn { border-color: var(--warn); color: var(--warn); }
.badge { display: inline-block; font-size: .75rem; font-weight: 700; padding: .1rem .5rem; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); vertical-align: middle; }
.plain { white-space: pre-wrap; overflow-wrap: anywhere; }
