:root {
    color-scheme: light;
    --ink: #262626;
    --muted: #717171;
    --gold: #c9a34f;
    --accent: #846528;
    --line: #e6e3dc;
    --paper: #ffffff;
    --background: #f8f8f6;
    --font: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--ink); font: 400 16px/1.65 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-underline-offset: 4px; }
a:hover { color: #262626; }
.portal-header { background: linear-gradient(115deg, #393939 0%, #202020 48%, #080808 100%); border-bottom: 2px solid var(--gold); color: #fff; }
.header-inner { max-width: 1250px; margin: auto; padding: 26px 28px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; flex-direction: column; text-decoration: none; gap: 12px; color: white; }
.brand img { display: block; width: 340px; max-width: 100%; height: auto; }
.beta { color: #d7d0be; font: 400 10px/1.5 var(--font); letter-spacing: 2px; }
.account { display: flex; align-items: center; gap: 22px; font-size: 14px; }
.account form { margin: 0; }
.portal-header .secondary { border-color: #777168; color: #f6f4ef; background: transparent; }
.portal-header .secondary:hover { border-color: var(--gold); color: #f2d58f; background: #ffffff08; }
main { max-width: 1250px; margin: 0 auto; padding: 0 28px; }
nav.portal-nav { display: flex; gap: 28px; flex-wrap: wrap; margin: 0 0 38px; padding: 22px 0 0; border-bottom: 1px solid var(--line); }
.portal-nav a { color: #666; text-decoration: none; padding: 0 0 18px; font-size: 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.portal-nav a:hover, .portal-nav a[aria-current="page"] { color: #242424; border-bottom-color: var(--gold); }
h1, h2, h3 { font-family: var(--font); font-weight: 300; line-height: 1.28; letter-spacing: -.65px; color: #242424; }
h1 { font-size: 38px; margin: 14px 0 12px; }
h2 { font-size: 27px; margin: 0 0 18px; }
h3 { font-size: 22px; margin: 26px 0 14px; }
p { margin: 10px 0 18px; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 4px; padding: 28px; margin: 24px 0; box-shadow: 0 4px 18px #24242403; }
a.panel { transition: border-color .18s, box-shadow .18s; }
a.panel:hover { border-color: #c9a34f90; box-shadow: 0 8px 24px #24242408; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.grid .panel { margin: 0; }
.grid a.panel { border-top: 2px solid var(--gold); }
.count { font: 300 46px/1.4 var(--font); color: #303030; margin-top: 6px; }
button, .button { background: var(--gold); border: 1px solid var(--gold); color: #252017; border-radius: 3px; padding: 11px 19px; cursor: pointer; text-decoration: none; display: inline-block; font: 500 14px/1.5 var(--font); transition: background .18s, border-color .18s; }
button:hover, .button:hover { background: #d6b565; border-color: #d6b565; color: #161616; }
.secondary { background: #fff; border-color: #d8d4ca; color: #454545; }
.secondary:hover { background: #faf7ef; border-color: var(--gold); }
label { display: block; margin: 12px 0 7px; font-size: 13px; font-weight: 500; color: #535353; }
input, select, textarea { font: 400 16px/1.5 var(--font); width: 100%; padding: 12px; border: 1px solid #d9d6ce; border-radius: 3px; background: #fff; color: var(--ink); }
input[type=checkbox] { width: auto; accent-color: #95732b; }
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid #c9a34f40; outline-offset: 1px; border-color: #ac8c43; }
a:focus-visible, button:focus-visible { outline: 2px solid #a27d2e; outline-offset: 4px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px 26px; }
.wide { grid-column: 1/-1; }
svg { width: 20px; height: 20px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 16px 13px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; color: #777; font-weight: 500; letter-spacing: .5px; }
tbody tr:hover { background: #fcfbf8; }
.table-wrap { overflow: auto; }
.muted { color: var(--muted); font-size: 14px; }
.notice { padding: 16px 20px; background: #fbf8ef; border: 1px solid #e2d5b1; border-left: 3px solid var(--gold); border-radius: 3px; margin-bottom: 24px; }
.errors { background: #fff5f3; border-color: #e4c6bf; border-left-color: #a64b3b; }
.badge { background: #f5f1e8; color: #735b2e; padding: 4px 10px; border: 1px solid #ece4d1; border-radius: 3px; font-size: 12px; white-space: nowrap; }
.actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.actions h1 { margin-right: auto; }
.detail { white-space: pre-wrap; }
footer { padding: 34px 0; margin-top: 30px; border-top: 1px solid var(--line); color: #8a8a84; font-size: 11px; letter-spacing: 1px; }
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 32px 20px; background: radial-gradient(ellipse at 50% 0%, #eee9df 0%, #fafaf8 55%, #fff 100%); }
.login-shell { width: 100%; max-width: 460px; border: 1px solid #ded9ce; border-radius: 5px; overflow: hidden; background: #fff; box-shadow: 0 20px 60px #1b1b1b0c; }
.login-brand { display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 38px 32px 30px; background: linear-gradient(115deg, #3a3a3a, #1b1b1b 55%, #050505); border-bottom: 2px solid var(--gold); }
.login-brand img { display: block; width: 330px; max-width: 100%; height: auto; }
.login-box { padding: 34px 40px 38px; }
.login-box h1 { font-size: 28px; margin: 0 0 8px; }
.login-box .subtitle { font-size: 14px; color: var(--muted); margin: 0 0 26px; }
.login-box label { margin-top: 18px; }
.login-box button { width: 100%; margin-top: 26px; padding: 13px; }
.login-box .error { color: #a23828; font-size: 14px; margin-top: 18px; }
.login-footnote { text-align: center; font-size: 11px; letter-spacing: 1.5px; color: #85817a; margin: 24px 0 0; }
@media (max-width: 760px) {
    .header-inner { padding: 22px 20px; gap: 20px; flex-wrap: wrap; }
    .brand img { width: 285px; }
    .account { justify-content: space-between; width: 100%; font-size: 13px; }
    main { padding: 0 20px; }
    nav.portal-nav { gap: 20px; padding-top: 20px; margin-bottom: 26px; }
    .portal-nav a { font-size: 13px; padding-bottom: 14px; }
    h1 { font-size: 30px; } h2 { font-size: 24px; }
    .panel { padding: 20px; }
    .grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
}
@media (max-width: 420px) {
    .login-page { padding: 18px 14px; }
    .login-box { padding: 28px 26px; }
    .login-brand { padding: 30px 26px 24px; }
    .beta { font-size: 9px; letter-spacing: 1.3px; }
    .form-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }


.job-update { border-left: 3px solid var(--gold); background: #fff9eb; border-radius: 3px; }

/* Quiet brand imagery and introduction before sign-in. */
.portal-page { position: relative; isolation: isolate; }
.portal-page::before, .login-page::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image: url("../brand/frieden-classics-emblem.png");
    background-repeat: no-repeat;
}
.portal-page::before {
    background-position: right 6vw center;
    background-size: min(76vw, 850px) auto;
    filter: blur(9px) grayscale(35%);
    opacity: .055;
}
.portal-page .portal-header, .portal-page main { position: relative; z-index: 1; }
.login-page { position: relative; isolation: isolate; }
.login-page::before {
    background-position: right 3vw center;
    background-size: min(88vw, 920px) auto;
    opacity: .09;
}
.login-shell { position: relative; z-index: 1; }
.intro-login { padding: 54px 36px; }
.login-composition {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1180px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 440px;
    gap: 80px;
    align-items: center;
}
.login-intro { max-width: 590px; padding: 10px 0; }
.login-intro .eyebrow { font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase; color: #85652c; margin-bottom: 22px; }
.login-intro h1 { font-size: 39px; font-weight: 300; margin: 0 0 28px; }
.login-intro p { font-size: 16px; line-height: 1.85; color: #555; margin: 0 0 22px; }
.login-intro .access-note { font-size: 14px; border-left: 2px solid var(--gold); padding: 3px 0 3px 18px; margin-top: 28px; color: #5e5544; }
.login-box h2 { font-size: 28px; margin: 0 0 8px; }
@media (max-width: 980px) {
    .login-composition { gap: 40px; grid-template-columns: minmax(0, 1fr) 390px; }
    .login-intro h1 { font-size: 33px; }
    .login-intro p { font-size: 15px; }
}
@media (max-width: 760px) {
    .intro-login { padding: 36px 22px; }
    .login-composition { grid-template-columns: 1fr; gap: 28px; max-width: 540px; }
    .login-composition .login-shell { max-width: 100%; }
    .login-intro { padding: 0; }
    .login-intro h1 { font-size: 30px; margin-bottom: 20px; }
    .login-intro .eyebrow { margin-bottom: 16px; }
    .login-page::before { background-position: center bottom 5vh; background-size: 90vw auto; opacity: .065; }
    .portal-page::before { background-size: 100vw auto; opacity: .035; }
}

