:root {
  color-scheme: light dark;
  --bg: #f6f3ed;
  --ink: #090909;
  --muted: #676762;
  --line: rgb(0 0 0 / .10);
  --panel: rgb(255 255 255 / .56);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
}
html[data-theme="dark"] { --bg: #161719; --ink: #f6f5f1; --muted: #b7b7b1; --line: rgb(255 255 255 / .15); --panel: rgb(34 35 37 / .72); }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100svh; background: radial-gradient(circle at 12% 18%, #c6efff 0, transparent 34%), radial-gradient(circle at 83% 18%, #ffd4d0 0, transparent 30%), radial-gradient(circle at 62% 86%, #c7e7a9 0, transparent 35%), var(--bg); color: var(--ink); }
.shell { max-width: 1040px; margin: 0 auto; padding: 30px 24px 56px; }
.masthead { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); padding: 7px 4px 18px; }
.brand { color: inherit; display: flex; gap: 9px; align-items: center; text-decoration: none; font-size: 28px; font-weight: 500; letter-spacing: 0; }
.mark { display: block; width: 20px; height: 40px; }
.mark img { display: block; width: 20px; height: 40px; }
html[data-theme="dark"] .mark-dark { filter: invert(1); }
.quiet { color: inherit; background: transparent; border: 0; border-bottom: 1px solid currentColor; cursor: pointer; font: inherit; font-size: 14px; padding: 5px 0; }
.two-up { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 40px 0; }
.entry.single { align-items: center; display: flex; justify-content: center; min-height: calc(100svh - 138px); }
.entry.single .panel { width: min(440px, 100%); }
.entry #request-form { display: none; }
.entry.request-only { align-items: center; display: flex; justify-content: center; min-height: calc(100svh - 138px); }
.entry.request-only #login-form { display: none; }
.entry.request-only #request-form { display: block; width: min(620px, 100%); }
#sign-in[hidden], #workspace[hidden], #access-admin[hidden], #password-change[hidden], dialog[hidden] { display: none !important; }
.panel { background: var(--panel); backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px); border: 1px solid rgb(255 255 255 / .72); border-radius: 26px; box-shadow: 0 18px 48px rgb(0 0 0 / .10), inset 0 1px rgb(255 255 255 / .72); padding: 26px; }
h1 { font-size: 25px; margin: 0 0 18px; letter-spacing: 0; }
label, legend { display: block; font-size: 12px; font-weight: 500; letter-spacing: 0; }
label { margin: 14px 0; }
input { display: block; width: 100%; background: rgb(255 255 255 / .65); border: 1px solid transparent; border-radius: 14px; color: var(--ink); font: inherit; font-size: 15px; letter-spacing: 0; margin-top: 7px; padding: 12px 13px; box-shadow: inset 0 1px rgb(255 255 255 / .7); }
html[data-theme="dark"] input { background: rgb(0 0 0 / .24); }
fieldset { border: 0; margin: 20px 0; padding: 0; }
.checks { display: grid; gap: 0; grid-template-columns: 1fr; }
.switch { align-items: center; cursor: pointer; display: inline-flex; font-size: 13px; gap: 10px; justify-content: space-between; margin: 8px 0; min-width: 0; width: 100%; }
.switch input { block-size: 1px; clip: rect(0 0 0 0); inline-size: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; }
.switch i { background: #c6c6c8; border-radius: 999px; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .08); display: block; flex: 0 0 auto; height: 26px; position: relative; transition: background .16s ease; width: 46px; }
.switch i::after { background: white; border-radius: 50%; box-shadow: 0 1px 3px rgb(0 0 0 / .24); content: ''; height: 22px; left: 2px; position: absolute; top: 2px; transition: transform .16s ease; width: 22px; }
.switch input:checked + i { background: #ff8418; }
.switch input:checked + i::after { transform: translateX(20px); }
.switch input:focus-visible + i { outline: 3px solid color-mix(in srgb, #0a84ff 65%, transparent); outline-offset: 3px; }
html[data-theme="dark"] .switch i { background: #55565b; }
.honeypot { display: none !important; }
button:not(.quiet) { background: var(--ink); border: 1px solid var(--ink); border-radius: 999px; color: var(--bg); cursor: pointer; font: inherit; font-weight: 500; padding: 12px 16px; box-shadow: 0 9px 20px rgb(0 0 0 / .14); }
button:not(.quiet):hover { transform: translateY(-1px); }
a.entry-link { color: var(--muted); cursor: pointer; display: block; font: inherit; font-size: 12px; margin: 18px auto 0; padding: 4px 0; text-align: center; text-decoration: underline; text-underline-offset: 4px; width: max-content; }
a.entry-link:hover { color: var(--ink); }
a.entry-link:focus-visible { outline: 3px solid color-mix(in srgb, #0a84ff 65%, transparent); outline-offset: 4px; }
.message { min-height: 18px; color: #b23a2d; font-size: 13px; margin: 14px 0 0; }
.workspace { padding: 40px 0; }
.workspace-head { border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; padding: 8px 4px 18px; }
.workspace-head h1 { margin: 0; }
.app-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 18px; }
.app-links a { background: var(--panel); backdrop-filter: blur(20px); border: 1px solid rgb(255 255 255 / .72); border-radius: 18px; box-shadow: 0 12px 32px rgb(0 0 0 / .08); color: inherit; padding: 17px; text-decoration: none; }
.app-links a:hover, .app-links a:focus-visible { border-color: rgb(0 0 0 / .32); transform: translateY(-2px); }
.access-admin { border-top: 1px solid var(--line); margin-top: 36px; padding-top: 36px; }
.access-admin .workspace-head { align-items: flex-start; }
.section-head { margin-top: 36px; }
.access-admin .workspace-head p, .muted { color: var(--muted); font-size: 13px; line-height: 1.5; margin: 0; }
.request-list { display: grid; gap: 10px; margin-top: 18px; }
.request { align-items: center; background: var(--panel); backdrop-filter: blur(18px); border: 1px solid rgb(255 255 255 / .65); border-radius: 18px; box-shadow: 0 10px 25px rgb(0 0 0 / .06); display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr) auto; padding: 17px; }
.request h2 { font-size: 16px; letter-spacing: 0; margin: 0 0 4px; }
.request p { color: var(--muted); font-size: 13px; margin: 0; overflow-wrap: anywhere; }
.request .request-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tag { background: rgb(255 255 255 / .34); border: 1px solid var(--line); border-radius: 999px; font-size: 11px; padding: 4px 8px; }
.status { font-size: 12px; font-weight: 500; text-transform: capitalize; }
button.secondary { background: transparent; color: var(--ink); }
dialog { background: transparent; border: 0; color: var(--ink); max-width: 560px; padding: 16px; width: calc(100% - 32px); }
dialog::backdrop { background: rgb(0 0 0 / .45); }
dialog .panel { box-shadow: 0 24px 70px rgb(0 0 0 / .24); }
select { background: rgb(255 255 255 / .65); border: 1px solid transparent; border-radius: 14px; color: var(--ink); display: block; font: inherit; margin-top: 7px; padding: 12px; width: 100%; }
html[data-theme="dark"] select { background: rgb(0 0 0 / .24); color: var(--ink); }
.inline-check { max-width: 100%; width: 100%; }
.role-grid { display: grid; gap: 0 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; margin-top: 20px; }
dialog .quiet { align-self: center; margin-right: auto; }
@media (max-width: 680px) { .shell { padding: 18px; } .two-up, .app-links { grid-template-columns: 1fr; } .two-up { padding: 28px 0; } }
@media (max-width: 680px) { .request { align-items: stretch; grid-template-columns: 1fr; } .dialog-actions { justify-content: stretch; } .dialog-actions button { flex: 1; } dialog .quiet { margin-right: 0; } }

/* Shared Lab typography: neutral tracking and no heavy display weights. */
body, body * { font-weight: 500 !important; letter-spacing: 0 !important; }
