/* The site's font and colours (site/src/index.css), so the setup pages read as part of eyemark.dev. */
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 400; font-display: swap; src: url("/_fonts/figtree-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 500; font-display: swap; src: url("/_fonts/figtree-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 600; font-display: swap; src: url("/_fonts/figtree-latin-600-normal.woff2") format("woff2"); }
:root { --bg: #f5f7fa; --fg: #21252c; --muted: #474b53; --line: #e0e2e6; --accent: #0b5bd3; --mark: #1a52a8; --surface: #eff1f4; --button: #e5e7eb; --button-hover: #dddfe3; --button-border: #d3d5d9; --ok: #1a7f37; --bad: #b42318; color-scheme: light dark; }
@media (prefers-color-scheme: dark) { :root { --bg: #0e1219; --fg: #e9edf2; --muted: #a8abb2; --line: #242830; --accent: #6ea8fe; --mark: #e9edf2; --surface: #151921; --button: #20242c; --button-hover: #272c34; --button-border: #333840; --ok: #5fd27a; --bad: #ff8a80; } }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.5 "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }

/* The site's page grid and header (site/src/ui.tsx Header): the mark and name sit where they do on
   eyemark.dev and its docs, to the pixel. */
.wrap { margin-inline: auto; max-width: 1360px; padding-inline: clamp(1.5rem, 5vw, 4rem); }
.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem 1.5rem; padding-block: .75rem; }
.brand { display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem; font-size: 1.125rem; line-height: 1.75rem; font-weight: 600; color: var(--fg); text-decoration: none; }
.brand svg { width: 1.25rem; height: 1.25rem; flex-shrink: 0; color: var(--mark); }
.brand span { font-weight: 400; color: var(--muted); }

main { padding-block: 1.5rem 4rem; }
main > * { max-width: 42rem; }
h1 { font-size: 1.75rem; line-height: 1.25; font-weight: 600; margin: 0 0 .25rem; overflow-wrap: anywhere; }
h2 { font-size: 1.2rem; font-weight: 600; margin-top: 2rem; }
.muted, .hint { color: var(--muted); }
.hint { font-size: .9rem; margin: .25rem 0 0; }
label { display: block; margin-top: .75rem; font-weight: 500; }
label.check { font-weight: 400; display: flex; gap: .5rem; align-items: center; }
input, select { width: 100%; padding: .5rem .6rem; font: inherit; color: inherit; background: transparent; border: 1px solid var(--line); border-radius: 6px; }
input[type=checkbox] { width: auto; }
input:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
fieldset { border: 1px solid var(--line); border-radius: 8px; margin: 1rem 0; padding: .75rem 1rem 1rem; }
legend { font-weight: 600; padding: 0 .25rem; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 .75rem; }
.pair label { grid-row: 1; } .pair input { grid-row: 2; }
details { margin-top: .75rem; } summary { cursor: pointer; }
.row { display: flex; gap: .75rem; margin-top: 1.25rem; flex-wrap: wrap; }
.row input { flex: 1; }
/* Primary actions are ink, as on the site; blue is for links and focus. */
button, .button { display: inline-flex; align-items: center; padding: .5rem 1.1rem; min-height: 2.75rem; font: inherit; font-weight: 500; border-radius: 999px; border: 1px solid var(--fg); background: var(--fg); color: var(--bg); cursor: pointer; text-decoration: none; }
button.secondary, .button.secondary { background: var(--button); color: var(--fg); border-color: var(--button-border); }
button.secondary:hover, .button.secondary:hover { background: var(--button-hover); }
button.danger { background: transparent; color: var(--bad); border-color: var(--bad); }
button.link { background: none; border: 0; color: var(--accent); padding: 0; min-height: 0; font-weight: 400; text-decoration: underline; }
button:disabled { opacity: .5; cursor: not-allowed; }
a { color: var(--accent); }
.steps, .repos { list-style: none; padding: 0; }
.steps li { border-top: 1px solid var(--line); padding: .6rem 0; }
.steps li p { margin: .2rem 0 0; color: var(--muted); overflow-wrap: anywhere; }
.steps li.done strong { color: var(--ok); }
/* The repositories Eyemark is installed on: one panel under the mark, a row each. */
.panel { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; margin-top: 1rem; }
.panel-head { display: flex; align-items: center; gap: .5rem; margin: 0; padding: .75rem 1rem; font-weight: 600; border-bottom: 1px solid var(--line); }
.panel-head svg { width: 1.1rem; height: 1.1rem; color: var(--mark); flex-shrink: 0; }
.repos { margin: 0; }
.repos li + li a { border-top: 1px solid var(--line); }
.repos a { display: flex; justify-content: space-between; gap: 1rem; align-items: center; min-height: 3rem; padding: .6rem 1rem; background: var(--bg); color: var(--fg); text-decoration: none; overflow-wrap: anywhere; }
.repos a:hover { background: var(--surface); }
.repos a:hover strong { text-decoration: underline; }
.empty { margin: 0; padding: 1rem; background: var(--bg); color: var(--muted); }
.pill { font-size: .8rem; padding: .1rem .55rem; border-radius: 999px; background: var(--fg); color: var(--bg); white-space: nowrap; }
.pill.quiet { background: var(--button); color: var(--muted); }

/* A repository's steps: cards that open each step's own page. */
.cards { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.card { display: flex; gap: .85rem; align-items: center; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--fg); text-decoration: none; }
.card:hover { border-color: var(--muted); }
.card-body { flex: 1; min-width: 0; }
.card-body strong { display: block; }
.card-body span { display: block; color: var(--muted); font-size: .9rem; overflow-wrap: anywhere; }
.card.done { background: var(--bg); }
.chevron { color: var(--muted); font-size: 1.4rem; line-height: 1; }
.dot { display: grid; place-items: center; flex-shrink: 0; width: 1.5rem; height: 1.5rem; border-radius: 50%; border: 2px solid var(--muted); font-size: .8rem; font-weight: 600; }
.dot.done { background: var(--ok); border-color: var(--ok); color: var(--bg); }
.dot.pending { border-style: dashed; }
.state { display: inline-block; margin: 0; font-size: .85rem; font-weight: 600; color: var(--muted); }
.state.done { color: var(--ok); }
.back { display: inline-block; margin-bottom: .5rem; font-size: .9rem; }
#message.error { color: var(--bad); } #message.ok { color: var(--ok); }
code { font-size: .9em; overflow-wrap: anywhere; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; border-top: 1px solid var(--line); padding: .4rem .3rem; vertical-align: top; }
footer { margin-top: 3rem; color: var(--muted); font-size: .9rem; }
.row:empty { display: none; }

/* The account bubble, top right of the header, and its menu. */
.user { position: relative; }
.avatar { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; min-height: 0; padding: 0; border-radius: 50%; border: 1px solid var(--button-border); background: var(--button); color: var(--fg); font-weight: 600; overflow: hidden; }
.avatar:hover { background: var(--button-hover); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.menu { position: absolute; right: 0; top: calc(100% + .4rem); z-index: 10; min-width: 14rem; padding: .4rem; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); box-shadow: 0 8px 24px rgb(0 0 0 / .18); }
.menu-name { margin: 0; padding: .45rem .6rem 0; font-weight: 600; overflow-wrap: anywhere; }
.menu-login { display: block; padding: .1rem .6rem .5rem; color: var(--muted); font-size: .9rem; text-decoration: none; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.menu-login:hover { color: var(--fg); text-decoration: underline; }
.menu-item { display: block; width: 100%; margin-top: .35rem; min-height: 2.5rem; padding: .4rem .6rem; border: 0; border-radius: 8px; background: transparent; color: var(--fg); font-weight: 400; text-align: left; }
.menu-item:hover { background: var(--surface); }
a.menu-item { text-decoration: none; }
.card.static { background: var(--bg); }
.card.static:hover { border-color: var(--line); }
.notice { padding: .75rem 1rem; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 8px; background: var(--surface); }
/* The header's right side, as on the site: a text link, then the account bubble. */
.bar-end { display: flex; align-items: center; gap: 1.5rem; }
.nav { display: inline-flex; align-items: center; min-height: 2.75rem; font-size: .875rem; line-height: 1.375rem; color: var(--muted); text-decoration: none; }
.nav:hover { color: var(--fg); }
.nav svg { width: .85rem; height: .85rem; margin-left: .2rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* shadcn's Breadcrumb: muted links, a 14px chevron between, the current page in the text colour. */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .375rem; margin: 0 0 .75rem; padding: 0; list-style: none; font-size: .875rem; line-height: 1.25rem; color: var(--muted); overflow-wrap: anywhere; }
@media (min-width: 640px) { .crumbs { gap: .625rem; } }
.crumb { display: inline-flex; align-items: center; gap: .375rem; }
.crumb a { color: inherit; text-decoration: none; transition: color .15s; }
.crumb a:hover { color: var(--fg); }
.crumb-page { color: var(--fg); }
.crumb-sep svg { display: block; width: .875rem; height: .875rem; }
/* Admin: tabs between its two pages, the accounts table, mode choices, the add dialog. */
.tabs { display: flex; gap: 1.5rem; margin-bottom: 1rem; border-bottom: 1px solid var(--line); }
.tabs a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--muted); text-decoration: none; font-size: .9rem; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--fg); }
.tabs a[aria-current="page"] { color: var(--fg); border-bottom-color: var(--fg); font-weight: 500; }
main > #accounts-page { max-width: 56rem; }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.page-head p { margin: 0; flex: 1 1 20rem; }
td.actions { white-space: nowrap; text-align: right; }
td.actions .link + .link { margin-left: 1rem; }
button.link.danger-link { color: var(--bad); }
.pill.status-approved { background: var(--ok); color: var(--bg); }
.pill.status-waitlist { background: var(--button); color: var(--fg); border: 1px solid var(--button-border); }
.pill.status-blocked { background: transparent; color: var(--bad); border: 1px solid var(--bad); }
.empty-line { color: var(--muted); padding: 1rem 0; }
.choices { display: grid; gap: .5rem; }
.choice { display: flex; gap: .75rem; align-items: flex-start; margin: 0; padding: .75rem 1rem; border: 1px solid var(--line); border-radius: 10px; font-weight: 400; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--fg); background: var(--surface); }
.choice input { width: auto; margin-top: .3rem; }
.choice strong { display: block; }
.choice span span { display: block; color: var(--muted); font-size: .9rem; }
dialog { width: min(28rem, calc(100vw - 2rem)); padding: 1.25rem; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); color: var(--fg); box-shadow: 0 16px 48px rgb(0 0 0 / .3); }
dialog::backdrop { background: rgb(0 0 0 / .45); }
dialog h2 { margin-top: 0; }
