/* Thesis Desk — no build step, no external requests */
:root {
  --bg: #f5f3ee;
  --surface: #ffffff;
  --surface-2: #faf8f4;
  --ink: #1b2533;
  --ink-2: #4a5568;
  --muted: #7a8494;
  --line: #e4e0d7;
  --line-2: #efece5;
  --brand: #1e3a5f;
  --brand-ink: #ffffff;
  --brand-soft: #e7eef6;
  --accent: #b8862b;
  --focus: #3b82c4;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(27, 37, 51, .05), 0 4px 16px rgba(27, 37, 51, .04);
  --b-gray-bg: #eef0f3;   --b-gray-fg: #4a5568;
  --b-blue-bg: #e3edf9;   --b-blue-fg: #1f4f87;
  --b-green-bg: #e2f3e8;  --b-green-fg: #1d6b3a;
  --b-amber-bg: #fbf0d9;  --b-amber-fg: #8a5a07;
  --b-red-bg: #fbe5e3;    --b-red-fg: #a3271c;
  --b-violet-bg: #efe8fb; --b-violet-fg: #5b3b9a;
  --b-teal-bg: #dff3f1;   --b-teal-fg: #136a62;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12161c; --surface: #1a2029; --surface-2: #1f2631; --ink: #e8ecf1; --ink-2: #b7c0cc; --muted: #8893a2;
    --line: #2b3440; --line-2: #252d38; --brand: #7fa8d6; --brand-ink: #0f1620; --brand-soft: #1f2d3e; --accent: #d9a548;
    --shadow: none;
    --b-gray-bg: #2a313b; --b-gray-fg: #c3cad4; --b-blue-bg: #1d3350; --b-blue-fg: #a9c8ef; --b-green-bg: #183a28; --b-green-fg: #9fdcb5;
    --b-amber-bg: #3d3018; --b-amber-fg: #f0cd86; --b-red-bg: #45201d; --b-red-fg: #f4aaa2; --b-violet-bg: #2f2547; --b-violet-fg: #cdb8f5;
    --b-teal-bg: #163a37; --b-teal-fg: #95ddd4;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.55 var(--font); }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .6em; }
h1 { font: 600 1.75rem/1.2 var(--serif); letter-spacing: -.01em; }
h2 { font-size: 1.05rem; font-weight: 650; }
h3 { font-size: .8rem; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-top: 1.2em; }
p { margin: 0 0 .8em; }
code, .mono { font-family: var(--mono); font-size: .88em; }
code { background: var(--surface-2); border: 1px solid var(--line-2); padding: .05em .35em; border-radius: 5px; word-break: break-all; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.big { font-size: 1.15rem; }
.mt0 { margin-top: 0; }
.nowrap { white-space: nowrap; }
.r { text-align: right; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ---------- top bar ---------- */
.topbar { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.topbar-inner { display: flex; align-items: center; gap: 24px; height: 58px; }
.brand { display: flex; align-items: center; gap: 10px; font: 600 1.05rem var(--serif); color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand-mark { width: 26px; height: 26px; border-radius: 7px; background: var(--brand) url("favicon.svg") center/cover; flex: none; }
.mainnav { display: flex; gap: 2px; overflow-x: auto; flex: 1; scrollbar-width: none; }
.mainnav a { color: var(--ink-2); text-decoration: none; padding: 7px 12px; border-radius: 8px; font-weight: 500; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.mainnav a:hover { background: var(--surface-2); color: var(--ink); }
.mainnav a.on { background: var(--brand-soft); color: var(--brand); }
.pill { background: var(--accent); color: #fff; font-size: .72rem; font-weight: 700; border-radius: 99px; padding: 0 7px; line-height: 18px; }
.topbar-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.bell { position: relative; color: var(--ink-2); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; }
.bell:hover, .bell.on { background: var(--surface-2); color: var(--ink); }
.dotcount { position: absolute; top: 2px; right: 0; background: #c2412d; color: #fff; font-size: .65rem; font-weight: 700; border-radius: 99px; padding: 0 5px; line-height: 16px; }
.usermenu { position: relative; }
.usermenu summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 4px 6px; border-radius: 8px; }
.usermenu summary::-webkit-details-marker { display: none; }
.usermenu summary:hover { background: var(--surface-2); }
.uname { font-weight: 500; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; font-size: .75rem; font-weight: 700; flex: none; }
.avatar.sm { width: 22px; height: 22px; font-size: .62rem; }
.menu { position: absolute; right: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.12); min-width: 220px; padding: 6px; }
.menu a, .menu .linkbtn { display: block; width: 100%; text-align: left; padding: 8px 10px; border-radius: 6px; color: var(--ink); text-decoration: none; font: inherit; background: none; border: 0; cursor: pointer; }
.menu a:hover, .menu .linkbtn:hover { background: var(--surface-2); }
.menu-head { padding: 8px 10px 10px; border-bottom: 1px solid var(--line-2); margin-bottom: 4px; font-size: .86rem; word-break: break-all; }

.main { padding-top: 28px; padding-bottom: 40px; min-height: calc(100vh - 120px); }
.foot { color: var(--muted); font-size: .8rem; padding-bottom: 28px; }

/* ---------- page head ---------- */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head h1 { margin: 0; }
.eyebrow { font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.eyebrow a { color: inherit; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 10px; }
.person { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }

/* ---------- cards & grids ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 18px; box-shadow: var(--shadow); }
.card.flush { padding: 0; overflow: hidden; }
.card.accent { border-top: 3px solid var(--brand); }
.card.narrow { max-width: 760px; }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 8px; }
.card.hero { background: linear-gradient(135deg, var(--brand-soft), var(--surface)); }
.pad { padding: 20px 22px; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.grid-cards .card { margin-bottom: 0; }
.col-side .card h2 { font-size: .95rem; }
@media (max-width: 960px) { .grid-2 { grid-template-columns: 1fr; } }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; box-shadow: var(--shadow); }
.stat .n { font: 600 2rem/1 var(--serif); }
.stat .l { color: var(--muted); font-size: .86rem; margin-top: 6px; }
.stat.hot { border-color: var(--accent); }
.stat.hot .n { color: var(--accent); }
.stat.warn .n { color: #c2412d; }
.stat:hover { border-color: var(--brand); }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- badges, chips ---------- */
.badge { display: inline-block; font-size: .75rem; font-weight: 600; padding: 2px 9px; border-radius: 99px; white-space: nowrap; vertical-align: middle; }
.b-gray { background: var(--b-gray-bg); color: var(--b-gray-fg); }
.b-blue { background: var(--b-blue-bg); color: var(--b-blue-fg); }
.b-green { background: var(--b-green-bg); color: var(--b-green-fg); }
.b-amber { background: var(--b-amber-bg); color: var(--b-amber-fg); }
.b-red { background: var(--b-red-bg); color: var(--b-red-fg); }
.b-violet { background: var(--b-violet-bg); color: var(--b-violet-fg); }
.b-teal { background: var(--b-teal-bg); color: var(--b-teal-fg); }
.chip { display: inline-block; font: 700 .62rem var(--mono); letter-spacing: .04em; background: var(--brand); color: var(--brand-ink); border-radius: 4px; padding: 2px 5px; vertical-align: 1px; }
.ver { font: 600 .78rem var(--mono); color: var(--muted); background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 5px; padding: 0 5px; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.kw { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.kw span { font-size: .78rem; color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 6px; padding: 1px 8px; }

/* ---------- stepper ---------- */
.stepper { list-style: none; display: flex; padding: 0; margin: 4px 0 22px; counter-reset: s; }
.stepper li { flex: 1; position: relative; text-align: center; font-size: .78rem; color: var(--muted); padding-top: 22px; }
.stepper li::before { content: ""; position: absolute; top: 7px; left: -50%; right: 50%; height: 2px; background: var(--line); }
.stepper li:first-child::before { display: none; }
.stepper .dot { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line); z-index: 1; }
.stepper li.done { color: var(--ink-2); }
.stepper li.done::before, .stepper li.current::before { background: var(--brand); }
.stepper li.done .dot { background: var(--brand); border-color: var(--brand); }
.stepper li.current { color: var(--ink); font-weight: 650; }
.stepper li.current .dot { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); background: var(--surface); }
@media (max-width: 640px) { .stepper .lbl { display: none; } .stepper li.current .lbl { display: block; position: absolute; left: 50%; transform: translateX(-50%); white-space: nowrap; } .stepper { margin-bottom: 30px; } }

/* ---------- forms ---------- */
.form { display: flex; flex-direction: column; gap: 14px; }
.form.compact { gap: 8px; margin-top: 8px; }
.form label { display: flex; flex-direction: column; gap: 5px; font-weight: 550; font-size: .9rem; }
.form label .muted { font-weight: 400; }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=number], input[type=date], input[type=datetime-local], input:not([type]), select, textarea {
  font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; width: 100%; font-weight: 400;
}
textarea { resize: vertical; min-height: 70px; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px rgba(59, 130, 196, .18); }
input[type=file] { font: inherit; font-weight: 400; font-size: .88rem; padding: 8px; border: 1px dashed var(--line); border-radius: 8px; background: var(--surface-2); width: 100%; }
.form label.check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; }
.form label.check input { margin-top: 4px; flex: none; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
@media (max-width: 640px) { .row2, .row3 { grid-template-columns: 1fr; } }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.filters input, .filters select { width: auto; min-width: 150px; padding: 7px 10px; }
.filters input[type=search] { flex: 1; min-width: 200px; }
.danger-zone { border-top: 1px solid var(--line-2); margin-top: 20px; padding-top: 16px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: 600 .9rem var(--font); padding: 9px 16px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: var(--ink-2); }
.btn-primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { filter: brightness(1.1); border-color: var(--brand); }
.btn-danger { background: #b4342a; border-color: #b4342a; color: #fff; }
.btn-warn { background: var(--b-amber-bg); border-color: transparent; color: var(--b-amber-fg); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--surface-2); border-color: transparent; }
.btn-ghost.danger { color: #b4342a; }
.btn-sm { padding: 5px 11px; font-size: .82rem; }
.btn-block { width: 100%; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.form .actions { margin-top: 2px; }
form.inline { display: inline; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--brand); cursor: pointer; font: inherit; }

/* ---------- flashes / callouts ---------- */
.flash { padding: 11px 14px; border-radius: 9px; margin-bottom: 14px; font-size: .92rem; border: 1px solid transparent; }
.flash-success { background: var(--b-green-bg); color: var(--b-green-fg); }
.flash-error { background: var(--b-red-bg); color: var(--b-red-fg); }
.flash-info { background: var(--b-blue-bg); color: var(--b-blue-fg); }
.callout { background: var(--brand-soft); border-radius: 9px; padding: 11px 14px; margin: 12px 0; }
.callout-green { background: var(--b-green-bg); color: var(--b-green-fg); }
.empty { color: var(--muted); margin: 0; }

/* ---------- tables, lists ---------- */
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.card:not(.flush) .table th { background: none; padding-left: 0; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.card:not(.flush) .table td { padding-left: 0; }
.table tr:last-child td { border-bottom: 0; }
.table tr.clickable { cursor: pointer; }
.table tr.clickable:hover td { background: var(--surface-2); }
.faded { opacity: .55; }
.clip { max-width: 340px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 760px) {
  .table thead { display: none; }
  .table tr { display: block; padding: 12px 14px; border-bottom: 1px solid var(--line-2); }
  .table td { display: block; padding: 2px 0 !important; border: 0; text-align: left; }
  .clip { max-width: 100%; }
}
.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: 10px 0; border-bottom: 1px solid var(--line-2); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.list li:last-child { border-bottom: 0; }
.list.tight li { display: block; padding: 8px 0; }
.list a { text-decoration: none; color: var(--ink); }
.list a:hover { color: var(--brand); }
ul.plain { padding-left: 18px; margin: 0; }
ul.plain li { margin-bottom: 6px; }
.dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0 0 12px; font-size: .9rem; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; }
details > summary { cursor: pointer; color: var(--brand); font-weight: 550; font-size: .88rem; margin: 6px 0; }
.steps-list li { margin-bottom: 10px; }
.checks { list-style: none; padding: 0; margin: 0 0 16px; font-size: .88rem; columns: 2; }
.checks .ok { color: var(--b-green-fg); }
.checks .bad { color: var(--b-red-fg); font-weight: 600; }

/* ---------- topics ---------- */
.topic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.topic { display: flex; flex-direction: column; margin: 0; }
.topic h3 { font: 600 1.1rem/1.3 var(--serif); text-transform: none; letter-spacing: 0; color: var(--ink); margin: 6px 0 8px; }
.topic .desc { color: var(--ink-2); font-size: .9rem; flex: 1; }
.topic .actions { margin-top: 12px; }
.desc.clamp { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; color: var(--ink-2); margin-bottom: 12px; }
.prose { color: var(--ink-2); margin-bottom: 10px; overflow-wrap: anywhere; }

/* ---------- submissions ---------- */
.subs { display: flex; flex-direction: column; gap: 14px; }
.sub { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; background: var(--surface); scroll-margin-top: 80px; }
.sub:target { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.sub-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.sub-head .kind { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 650; margin-right: 6px; }
.sub-file { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; overflow-wrap: anywhere; }
.sub-file a { font-weight: 550; }
blockquote.note { margin: 10px 0 0; padding: 8px 12px; background: var(--surface-2); border-left: 3px solid var(--line); border-radius: 0 6px 6px 0; font-size: .9rem; color: var(--ink-2); }
blockquote.note .who { font-weight: 600; color: var(--ink); }
.fb { margin-top: 12px; padding: 10px 12px 2px; border-left: 3px solid var(--brand); background: var(--brand-soft); border-radius: 0 8px 8px 0; }
.fb .prose { color: var(--ink); margin: 6px 0 8px; }
.fb .sub-file { margin-bottom: 8px; }
.fb-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.fb-form { margin-top: 10px; border-top: 1px dashed var(--line); padding-top: 4px; }

/* ---------- messages ---------- */
.thread { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; max-height: 520px; overflow-y: auto; }
.msg { max-width: 85%; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 12px 12px 12px 4px; padding: 8px 12px; }
.msg.mine { align-self: flex-end; background: var(--brand-soft); border-color: transparent; border-radius: 12px 12px 4px 12px; }
.msg-head { font-size: .84rem; margin-bottom: 2px; }
.msg-body { overflow-wrap: anywhere; }
.msg-form textarea { min-height: 60px; }

/* ---------- milestones ---------- */
.milestones { list-style: none; padding: 0; margin: 0 0 6px; }
.milestones li { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line-2); }
.milestones li:last-child { border-bottom: 0; }
.tick { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); background: var(--surface); margin-top: 2px; padding: 0; cursor: pointer; position: relative; }
span.tick { cursor: default; }
button.tick:hover { border-color: var(--brand); }
.milestones li.done .tick { background: var(--b-green-fg); border-color: var(--b-green-fg); }
.milestones li.done .tick::after { content: ""; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.milestones li.late .tick { border-color: var(--b-red-fg); }
.milestones li.done .ms-title { color: var(--muted); text-decoration: line-through; }
.ms-body { flex: 1; min-width: 0; }
.ms-title { font-weight: 550; margin-bottom: 3px; }
.ms-edit summary { font-size: .78rem; margin: 4px 0 0; }

/* ---------- activity, notifications ---------- */
.activity { list-style: none; padding: 0; margin: 0; font-size: .86rem; max-height: 360px; overflow-y: auto; }
.activity li { padding: 7px 0; border-bottom: 1px solid var(--line-2); }
.activity li:last-child { border-bottom: 0; }
.notifs { list-style: none; margin: 0; padding: 0; }
.notifs a { display: flex; justify-content: space-between; gap: 16px; padding: 13px 20px; border-bottom: 1px solid var(--line-2); text-decoration: none; color: var(--ink-2); }
.notifs li:last-child a { border-bottom: 0; }
.notifs a:hover { background: var(--surface-2); }
.notifs li.unread a { color: var(--ink); font-weight: 550; background: linear-gradient(90deg, var(--brand-soft), transparent 40%); }
.notifs .muted { white-space: nowrap; font-weight: 400; }
details.card.admin { padding: 12px 22px; }
details.card.admin summary { color: var(--muted); }

/* ---------- auth pages ---------- */
.authpage { min-height: 100vh; background: radial-gradient(1200px 500px at 50% -10%, var(--brand-soft), var(--bg)); }
.authwrap { max-width: 440px; margin: 0 auto; padding: 56px 18px; }
.authwrap.wide { max-width: 640px; }
.authbrand { display: flex; align-items: center; justify-content: center; gap: 10px; font: 600 1.25rem var(--serif); margin-bottom: 20px; }
.authbrand .brand-mark { width: 32px; height: 32px; }
.authcard { padding: 28px; }
.authcard h1 { font-size: 1.45rem; }
.authcard h2 { margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.authlinks { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 16px; font-size: .88rem; }

@media print {
  .topbar, .foot, .fb-form, .msg-form, details, .actions, .filters { display: none !important; }
  body { background: #fff; }
  .card { box-shadow: none; break-inside: avoid; }
  .grid-2 { grid-template-columns: 1fr; }
}

/* ---------- language switcher ---------- */
.langs { display: inline-flex; gap: 2px; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 8px; padding: 2px; font-size: .8rem; }
.langs a, .langs span { padding: 3px 10px; border-radius: 6px; text-decoration: none; color: var(--ink-2); }
.langs a:hover { background: var(--surface); color: var(--ink); }
.langs .on { background: var(--surface); color: var(--ink); font-weight: 650; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.langs.inline { margin-left: auto; }
.menu-langs { display: flex; align-items: center; gap: 8px; padding: 6px 10px 8px; border-bottom: 1px solid var(--line-2); margin-bottom: 4px; }
.langtag { font: 700 .62rem var(--mono); color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 1px 4px; }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.authtop { display: flex; justify-content: flex-end; margin-bottom: 10px; }
@media (max-width: 640px) { .uname { display: none; } }
