/* The GASP site around the projects: landing page, sign-in, file browser. Colours come from the review
   app's app.css (served at /assets/app.css), so light and dark themes match. */
.site main { display: block; max-width: 1080px; margin: 0 auto; padding: 28px 16px 56px; height: auto; overflow: visible; }
.site .bar .who { color: var(--muted); font-size: 13px; }
.site .bar form { margin: 0; }
.site .bar button.link { background: none; border: 0; color: var(--accent); cursor: pointer; font: inherit; font-size: 13px; padding: 0; }
.hero h1 { font-size: 26px; margin: 0 0 6px; letter-spacing: -0.01em; }
.hero p { margin: 0; color: var(--muted); max-width: 72ch; line-height: 1.5; }
.projects { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin: 24px 0; }
.project { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 18px 18px 16px;
  display: flex; flex-direction: column; gap: 10px; }
.project h2 { font-size: 18px; margin: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.project p { margin: 0; color: var(--muted); line-height: 1.5; font-size: 14px; flex: 1; }
.project .links { display: flex; gap: 8px; flex-wrap: wrap; }
.project .links a { border: 1px solid var(--line); background: var(--panel); color: var(--ink); }
.project .links a.primary { border-color: var(--accent); background: var(--accent); color: #fff; }
.project.planned { opacity: .72; border-style: dashed; }
.status { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--block-bg); color: var(--muted); }
.status.active { background: var(--ok-soft); color: var(--ok); }
.mirror { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font-size: 13px;
  display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.mirror[hidden] { display: none; }
.mirror b { font-weight: 600; }
.mirror .ok { color: var(--ok); } .mirror .bad { color: var(--error); } .mirror .old { color: var(--warn); }
.mirror .muted { color: var(--muted); }

.signin { max-width: 420px; margin: 12vh auto 0; background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 28px 26px; text-align: center; }
.signin h1 { margin: 0 0 6px; font-size: 24px; letter-spacing: .04em; }
.signin p { color: var(--muted); margin: 0 0 18px; line-height: 1.5; }
.signin .note { background: var(--warn-soft); color: var(--warn); border-radius: 8px; padding: 8px 10px; font-size: 13px; margin-bottom: 16px; }
.signin a.google { display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--panel); color: var(--ink); text-decoration: none; font-weight: 600; }
.signin a.google:hover { border-color: var(--accent); }
.signin .small { font-size: 12px; margin: 18px 0 0; }

.prose { max-width: 70ch; line-height: 1.6; }
.prose h1 { font-size: 24px; } .prose h2 { font-size: 17px; margin-top: 24px; }

/* file browser */
.files { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 16px; align-items: start; }
@media (max-width: 900px) { .files { grid-template-columns: 1fr; } }
.crumbs { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; font-size: 14px; margin-bottom: 10px; }
.crumbs a { color: var(--accent); text-decoration: none; cursor: pointer; }
.crumbs span.sep { color: var(--muted); }
.tools { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; align-items: center; }
.tools .grow { flex: 1; }
.tools .hint { color: var(--muted); font-size: 12px; }
.list { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.list table { width: 100%; border-collapse: collapse; font-size: 13px; }
.list th { text-align: left; font-weight: 600; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .05em;
  padding: 8px 10px; border-bottom: 1px solid var(--line); }
.list td { padding: 7px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.list tr:last-child td { border-bottom: 0; }
.list tr.item { cursor: pointer; }
.list tr.item:hover, .list tr.item.sel { background: var(--accent-soft); }
.list td.name { white-space: normal; word-break: break-word; }
.list td.num { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }
.list .ico { display: inline-block; width: 1.4em; color: var(--muted); }
.viewer { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; min-height: 360px; overflow: hidden;
  display: flex; flex-direction: column; position: sticky; top: 12px; }
.viewer .head { display: flex; gap: 8px; align-items: center; padding: 8px 10px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.viewer .head .title { flex: 1; font-weight: 600; font-size: 13px; word-break: break-all; }
.viewer .body { flex: 1; overflow: auto; max-height: 78vh; }
.viewer .empty { color: var(--muted); padding: 40px 16px; text-align: center; font-size: 14px; }
.viewer iframe { border: 0; width: 100%; height: 76vh; background: #fff; }
.viewer img { max-width: 100%; display: block; margin: 0 auto; }
.viewer pre { margin: 0; padding: 10px 12px; font-family: var(--mono); font-size: 12px; white-space: pre-wrap; word-break: break-word; }
.viewer table.sheet { border-collapse: collapse; font-size: 12px; font-family: var(--mono); }
.viewer table.sheet td { border: 1px solid var(--line); padding: 2px 6px; white-space: nowrap; text-align: left;
  max-width: 28em; overflow: hidden; text-overflow: ellipsis; }
.viewer table.sheet td.n { text-align: right; font-variant-numeric: tabular-nums; }
.viewer table.sheet th { position: sticky; top: 0; background: var(--block-bg); border: 1px solid var(--line); padding: 3px 6px;
  white-space: nowrap; text-align: left; font-weight: 600; }
.viewer .tabs { display: flex; gap: 4px; padding: 6px 10px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.viewer .tabs button.on { background: var(--accent-soft); color: var(--accent); }
.drop { outline: 2px dashed var(--accent); outline-offset: -6px; }

/* feedback list */
.fb-list { display: flex; flex-direction: column; gap: 10px; }
.fb { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.fb.done, .fb.wontfix { opacity: .65; }
.fb-head { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.fb-head .grow { flex: 1; } .fb-who { color: var(--muted); font-size: 12px; }
.fb-kind { font-weight: 600; }
.fb-text { margin: 8px 0; white-space: pre-wrap; line-height: 1.5; }
.fb-where { font-size: 12px; color: var(--muted); } .fb-where a { color: var(--accent); margin-right: 6px; }
.fb-hist { font-size: 12px; color: var(--muted); margin-top: 6px; border-top: 1px solid var(--line); padding-top: 6px; }
.fb-admin { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.fb-admin input { flex: 1; min-width: 160px; }
.tools label { font-size: 14px; margin-right: 10px; }

/* manual */
main.manual { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; max-width: 1180px; }
@media (max-width: 860px) { main.manual { grid-template-columns: 1fr; } .toc { position: static !important; } }
.toc { position: sticky; top: 16px; align-self: start; font-size: 13px; background: var(--panel); border: 1px solid var(--line);
  border-radius: 10px; padding: 12px 14px; max-height: calc(100vh - 40px); overflow: auto; }
.toc ol { padding-left: 18px; margin: 8px 0 0; line-height: 1.7; }
.toc a { color: var(--ink); text-decoration: none; } .toc a:hover { color: var(--accent); }
.manual .prose { max-width: 78ch; }
.manual .prose h2 { font-size: 20px; margin-top: 34px; padding-top: 10px; border-top: 1px solid var(--line); }
.manual .prose h3 { font-size: 15px; margin: 18px 0 6px; }
.manual .lede { font-size: 16px; color: var(--muted); }
.mtable { border-collapse: collapse; width: 100%; font-size: 13px; margin: 8px 0 14px; background: var(--panel); }
.mtable th, .mtable td { border: 1px solid var(--line); padding: 6px 9px; text-align: left; vertical-align: top; }
.mtable th { background: var(--block-bg); font-weight: 600; }
.mtable.keys td:first-child { white-space: nowrap; }
kbd { font-family: var(--mono); font-size: 12px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px;
  padding: 0 5px; background: var(--panel); white-space: nowrap; }
.tip { background: var(--accent-soft); border-radius: 8px; padding: 10px 12px; }
.diagram pre { font-family: var(--mono); font-size: 11px; line-height: 1.35; background: var(--panel); border: 1px solid var(--line);
  border-radius: 8px; padding: 10px; overflow-x: auto; margin: 8px 0 14px; }
.faq dt { font-weight: 600; margin-top: 10px; } .faq dd { margin: 2px 0 0 0; color: var(--ink); }
ol.tips li { margin-bottom: 6px; }

/* admin */
.admin-two { display: grid; grid-template-columns: 1fr 1.6fr; gap: 14px; align-items: start; }
@media (max-width: 900px) { .admin-two { grid-template-columns: 1fr; } }
.site main h2 { font-size: 17px; margin: 26px 0 10px; display: flex; gap: 10px; align-items: center; }
table.data tr.total td { font-weight: 700; border-top: 2px solid var(--line); }
