:root { --green: #138a07; --green-dark: #0e6a05; --bg: #f4f5f6; --ink: #1b222c; --muted: #5d6879; --line: #e2e6ea; --red: #b3261e; --amber: #b26a00; }
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: var(--ink); background: var(--bg); }
a { color: var(--green-dark); }
.topbar { background: var(--green); color: #fff; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; height: 52px; }
.topbar .brand { color: #fff; text-decoration: none; font-weight: 700; font-size: 18px; }
.topbar .brand span { font-weight: 400; opacity: .9; }
.topbar nav { display: flex; gap: 18px; align-items: center; }
.topbar nav a, .topbar nav button.link { color: #fff; text-decoration: none; opacity: .95; }
.container { max-width: 980px; margin: 28px auto; padding: 0 20px; }
h1 { font-size: 26px; margin: 0 0 18px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
h2 { font-size: 18px; margin: 0 0 10px; }
h3 { font-size: 15px; margin: 0 0 10px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 20px 22px; margin-bottom: 20px; }
.card.narrow { max-width: 520px; }
.box { border: 1px solid var(--line); border-radius: 6px; padding: 16px; background: #fafbfc; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 14px 0; }
@media (max-width: 720px) { .two { grid-template-columns: 1fr; } }
label { display: block; margin: 10px 0; font-weight: 600; font-size: 13px; }
input, select { display: block; width: 100%; margin-top: 4px; padding: 8px 10px; border: 1px solid #c7cdd4; border-radius: 4px; font: inherit; }
button, .btn { display: inline-block; padding: 8px 14px; border-radius: 4px; border: 1px solid #c7cdd4; background: #fff; color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
button.primary, .btn.primary { background: var(--green); border-color: var(--green); color: #fff; }
button.danger { color: var(--red); border-color: var(--red); background: #fff; }
button.link { border: 0; background: none; padding: 0; font-weight: 400; cursor: pointer; }
button.link.danger { color: var(--red); }
.btn.small { font-size: 13px; padding: 4px 10px; }
form.inline { display: inline; }
.flash { padding: 10px 14px; border-radius: 6px; margin-bottom: 16px; border: 1px solid; }
.flash.success { background: #eaf7e9; border-color: #b7dfb3; color: #124d0a; }
.flash.error { background: #fdecea; border-color: #f5c2bd; color: #7a1a13; }
.flash.info { background: #eef4fb; border-color: #c9dbf2; color: #17365c; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.right { text-align: right; }
.crumbs { margin: 0 0 6px; color: var(--muted); }
pre.code, code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }
pre.code { background: #f1f3f5; padding: 10px 12px; border-radius: 6px; overflow-x: auto; }
table.list { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
table.list th, table.list td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); }
table.list th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: #fafbfc; }
.tag { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: 999px; background: #eef1f4; color: var(--muted); }
.tag.push, .tag.pull, .tag.link { background: #eaf7e9; color: #124d0a; }
.tag.conflict, .tag.error { background: #fdecea; color: #7a1a13; }
.status { padding: 10px 12px; background: #fafbfc; border: 1px solid var(--line); border-radius: 6px; margin: 10px 0; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.dot.ok { background: var(--green); } .dot.warn { background: var(--amber); }
ul.events { list-style: none; padding: 0; margin: 0; }
ul.events li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.foot { text-align: center; color: var(--muted); font-size: 13px; padding: 20px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
details summary { cursor: pointer; color: var(--green-dark); }
/* embedded inside the Overleaf editor drawer */
body.embed .topbar nav a[href^="http"], body.embed .foot, body.embed .crumbs, body.embed h1 .btn { display: none; }
body.embed .topbar { height: 40px; padding: 0 12px; }
body.embed .container { margin: 12px auto; padding: 0 12px; }
body.embed .two { grid-template-columns: 1fr; }
body.embed h1 { font-size: 18px; }
