/* Original Auth Gateway identity design. No remote fonts, scripts, or theme dependencies. */
:root {
  color-scheme: light;
  --paper: #f8f9f6;
  --white: #fff;
  --ink: #252b26;
  --muted: #626b60;
  --line: #dfe3da;
  --forest: #272e27;
  --terracotta: #b96e4c;
  --peach: #edc1a1;
  --focus: #a34f2b;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); }
a { color: inherit; }
button { font: inherit; }
input { font: inherit; }
[hidden] { display: none !important; }
svg { flex: 0 0 auto; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--focus); outline-offset: 5px; }
::selection { background: #e8c7ae; color: #252b26; }
.skip-link { position: fixed; left: 20px; top: 16px; z-index: 10; padding: 12px 18px; border-radius: 4px; background: var(--white); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.identity-layout { display: grid; grid-template-columns: minmax(380px, 46%) minmax(0, 1fr); min-height: 100svh; }
.brand { display: inline-flex; align-items: center; gap: 13px; width: fit-content; text-decoration: none; font-size: 19px; font-weight: 600; letter-spacing: -.5px; }
.brand-mark { color: var(--terracotta); }
.brand-caption { display: block; margin-top: 5px; font-size: 8px; font-weight: 500; letter-spacing: 1.7px; }
.identity-story { position: relative; display: flex; flex-direction: column; overflow: hidden; min-height: 820px; padding: 46px 54px 30px; background: var(--forest); color: #f3f2e9; }
.identity-story .brand-mark { color: var(--peach); }
.identity-story .brand-caption { color: #bcc2b4; }
.story-copy { position: relative; z-index: 1; margin-top: clamp(62px, 9vh, 112px); }
.overline, .section-label { font-size: 10px; line-height: 1.5; letter-spacing: 1.7px; font-weight: 600; }
.overline { display: flex; align-items: center; gap: 10px; color: #c1c9ba; margin: 0 0 25px; font-size: 9px; letter-spacing: 1.35px; }
.small-rule { width: 23px; height: 1px; background: var(--peach); }
.story-copy h2 { margin: 0; font-size: clamp(42px, 4.1vw, 66px); letter-spacing: -2.2px; font-weight: 450; line-height: 1.06; }
.story-copy h2 em { color: var(--peach); font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -1.8px; }
.story-copy > p:last-child { margin: 24px 0 0; color: #c1c9ba; line-height: 1.7; font-size: 13px; }
.gateway-art { position: relative; width: min(108%, 510px); margin: -26px auto -2px; align-self: center; }
.gateway-art svg { display: block; width: 100%; height: auto; }
.art-caption { position: absolute; right: 1%; top: 56%; writing-mode: vertical-rl; font-size: 7px; letter-spacing: 1.65px; color: #b2baaa; }
.story-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: auto; padding-top: 20px; border-top: 1px solid #4b5347; color: #bbc3b3; font-size: 11px; }
.story-index { font-size: 8px; letter-spacing: 1.4px; }
.identity-main { display: flex; flex-direction: column; padding: 46px 60px 30px; min-width: 0; }
.main-topline { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 9px; font-weight: 600; letter-spacing: 1.55px; }
.topline-symbol { font-size: 24px; line-height: 30px; font-weight: 400; color: #7e8877; }
.access-panel { width: 100%; max-width: 380px; margin: auto; padding: 62px 0 72px; }
.access-symbol { display: grid; place-items: center; width: 66px; height: 66px; margin-bottom: 32px; border: 1px solid #dddcca; border-radius: 15px; background: #efefe5; color: #6f7051; }
.section-label { color: var(--muted); margin: 0 0 14px; }
.access-panel h1 { margin: 0; font-size: clamp(32px, 3.2vw, 44px); font-weight: 500; letter-spacing: -1.7px; line-height: 1.15; }
.access-description { color: var(--muted); font-size: 14px; line-height: 1.8; margin: 18px 0 34px; }
.google-button, .primary-button { display: flex; align-items: center; justify-content: center; gap: 13px; min-height: 56px; padding: 14px 19px; border: 1px solid #c8cfc2; border-radius: 7px; text-decoration: none; background: var(--white); font-size: 14px; font-weight: 600; transition: border-color .18s, background .18s, box-shadow .18s; }
.google-button > svg:last-child { margin-left: auto; color: #596450; }
.google-button > span { flex: 1; }
.google-button:hover { border-color: #7d8c71; background: #fcfdfb; box-shadow: 0 3px 9px #2732260d; }
.google-button:active, .primary-button:active { background: #edf0e7; }
.sign-in-help { margin: 14px 10px 0; font-size: 11px; color: var(--muted); line-height: 1.7; text-align: center; }
.access-detail { display: flex; align-items: flex-start; gap: 12px; border-top: 1px solid var(--line); margin-top: 35px; padding-top: 26px; }
.detail-icon { display: grid; place-items: center; margin-top: 1px; color: #68725c; }
.access-detail strong { display: block; font-size: 12px; font-weight: 600; }
.access-detail p { color: var(--muted); font-size: 12px; line-height: 1.7; margin: 7px 0 0; }
.identity-footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; color: var(--muted); font-size: 10px; line-height: 1.6; padding-top: 22px; border-top: 1px solid var(--line); }
.identity-footer > span:first-child { font-weight: 600; }
.mobile-brand { display: none; }
.primary-button { justify-content: space-between; background: var(--forest); color: var(--white); border-color: var(--forest); }
.primary-button:hover { background: #394432; }
.primary-button:active { color: var(--ink); }
.auth-notice { padding: 16px; margin: 0 0 22px; border: 1px solid #d7d5bf; border-radius: 7px; background: #efefe5; font-size: 13px; line-height: 1.6; }
.auth-notice strong { font-weight: 600; }
.auth-notice p { margin: 5px 0 0; color: #555d4b; font-size: 12px; }
.auth-notice-error { border-color: #e4b7a6; background: #fbf0ea; color: #923d22; }
.auth-notice-error p { color: #7c4c39; }
/* Signed-in workspace shares the identity system without touching admin pages. */
.workspace-shell { width: min(1160px, calc(100% - 96px)); min-height: 100svh; margin: 0 auto; display: flex; flex-direction: column; }
.workspace-header { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 32px 0; border-bottom: 1px solid var(--line); }
.workspace-session { display: flex; align-items: center; gap: 25px; }
.session-label { display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--muted); }
.sign-out-button { min-height: 42px; padding: 10px 15px; border: 1px solid #cdd4c6; border-radius: 6px; background: transparent; color: var(--ink); cursor: pointer; font-size: 12px; font-weight: 500; }
.sign-out-button span { margin-left: 12px; }
.sign-out-button:hover { background: #eef0e8; border-color: #8c9981; }
.workspace-welcome { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; padding: 74px 0 62px; }
.workspace-welcome h1 { margin: 0; font-size: clamp(42px, 4.5vw, 64px); letter-spacing: -2.4px; line-height: 1.08; font-weight: 450; }
.workspace-welcome h1 em { color: #7a603f; font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
.workspace-welcome > div > p:last-child { font-size: 14px; color: var(--muted); margin: 22px 0 0; line-height: 1.7; }
.account-card { display: flex; align-items: center; gap: 14px; min-width: 0; max-width: 330px; padding: 18px 0 18px 26px; border-left: 1px solid var(--line); }
.account-avatar { display: grid; place-items: center; width: 48px; height: 48px; flex: 0 0 48px; border: 1px solid #d6d8c9; border-radius: 50%; background: #eeeee1; object-fit: cover; font-family: Georgia, serif; font-size: 24px; color: #726448; }
.account-copy { display: grid; gap: 5px; min-width: 0; overflow-wrap: anywhere; }
.account-copy .section-label { font-size: 8px; margin: 0; letter-spacing: 1px; }
.account-copy strong { font-size: 14px; font-weight: 600; }
.account-copy > span:last-child { font-size: 12px; color: var(--muted); }
.applications { padding-bottom: 70px; }
.applications-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; border-top: 1px solid var(--line); padding-top: 26px; margin-bottom: 22px; }
.applications-heading h2 { margin: 0; font-size: 19px; font-weight: 500; letter-spacing: -.4px; }
.applications-heading > span { color: var(--muted); font-size: 9px; letter-spacing: 1.3px; }
.application-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.application-card { display: flex; flex-direction: column; min-width: 0; padding: 25px; border: 1px solid #dde1d6; border-radius: 9px; background: var(--white); text-decoration: none; transition: border-color .18s, box-shadow .18s; }
.application-card:hover { border-color: #88987b; box-shadow: 0 6px 20px #2633200a; }
.application-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 28px; }
.application-icon { display: grid; place-items: center; width: 45px; height: 45px; border: 1px solid #e1dfd0; border-radius: 10px; background: #f1f0e6; color: #776f46; font-family: Georgia, serif; font-size: 23px; }
.application-card:nth-child(3n+2) .application-icon { color: #5d7159; background: #eaf0e6; border-color: #d9e1d4; }
.application-card:nth-child(3n+3) .application-icon { color: #9e694b; background: #f6eae1; border-color: #ebdbcd; }
.application-number { font-size: 10px; color: var(--muted); }
.application-name { font-size: 18px; font-weight: 500; line-height: 1.4; letter-spacing: -.3px; overflow-wrap: anywhere; }
.application-description { color: var(--muted); font-size: 12px; line-height: 1.7; margin: 8px 0 28px; overflow-wrap: anywhere; }
.application-action { display: flex; justify-content: space-between; align-items: center; margin-top: auto; border-top: 1px solid #edf0e8; padding-top: 17px; font-size: 11px; font-weight: 600; }
.workspace-shell > .identity-footer { margin-top: auto; padding-bottom: 25px; }
.empty-state { padding: 40px; background: #f0f1e9; border: 1px solid var(--line); border-radius: 8px; }
.empty-state h3 { font-size: 22px; font-weight: 500; margin: 0 0 12px; }
.empty-state p { font-size: 14px; color: var(--muted); line-height: 1.7; margin: 0; }
.workspace-tools { display: flex; align-items: center; gap: 20px; margin-bottom: 18px; }
.workspace-search { display: flex; align-items: center; gap: 12px; width: min(100%, 430px); padding: 12px 16px; border: 1px solid var(--line); border-radius: 7px; background: var(--white); }
.workspace-search > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.workspace-search input { min-width: 0; width: 100%; border: 0; background: transparent; color: var(--ink); font-size: 13px; }
.workspace-search:focus-within { outline: 2px solid var(--focus); outline-offset: 3px; }
.workspace-search input:focus { outline: 0; }
.workspace-search kbd { color: var(--muted); font-size: 11px; }
.result-count { flex: 0 0 auto; color: var(--muted); font-size: 11px; }
.workspace-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.workspace-filters button { border: 1px solid var(--line); background: transparent; color: var(--muted); border-radius: 5px; padding: 8px 13px; font-size: 11px; cursor: pointer; }
.workspace-filters button[aria-pressed="true"] { color: var(--white); background: var(--forest); border-color: var(--forest); }
@media (min-width: 1500px) {
  .identity-story { padding-left: max(70px, calc((100vw - 1340px) / 2)); padding-right: 70px; }
  .identity-main { padding-left: 85px; padding-right: max(85px, calc((100vw - 1380px) / 2)); }
}
@media (max-width: 1100px) {
  .identity-layout { grid-template-columns: minmax(330px, 45%) minmax(0, 1fr); }
  .identity-story { padding-left: 35px; padding-right: 35px; }
  .identity-main { padding-left: 40px; padding-right: 40px; }
  .overline { font-size: 8px; letter-spacing: .8px; }
  .story-copy h2 { font-size: 48px; }
  .gateway-art { width: 120%; }
}
@media (max-width: 760px) {
  .identity-layout { display: block; min-height: 100svh; }
  .identity-story { display: none; }
  .identity-main { padding: 28px 28px 24px; min-height: 100svh; }
  .mobile-brand { display: block; }
  .main-topline { display: none; }
  .access-panel { padding: 62px 0; max-width: 420px; }
  .access-panel h1 { font-size: 38px; }
  .access-symbol { margin-bottom: 28px; width: 59px; height: 59px; }
  .access-description { font-size: 14px; }
  .identity-footer { font-size: 10px; }
  .workspace-shell { width: calc(100% - 48px); }
  .workspace-header { padding: 25px 0; }
  .workspace-header .brand-caption { font-size: 6px; letter-spacing: 1px; }
  .workspace-header .brand { font-size: 16px; gap: 9px; }
  .workspace-header .brand-mark { width: 24px; }
  .workspace-session .session-label { display: none; }
  .sign-out-button { font-size: 11px; padding: 9px 11px; }
  .sign-out-button span { margin-left: 6px; }
  .workspace-welcome { padding: 48px 0 35px; align-items: flex-start; flex-direction: column; gap: 28px; }
  .workspace-welcome h1 { font-size: 48px; letter-spacing: -1.7px; }
  .account-card { padding: 0; border: 0; max-width: 100%; }
  .application-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .application-card { padding: 22px; }
  .applications { padding-bottom: 45px; }
}
@media (max-width: 480px) {
  .application-grid { grid-template-columns: 1fr; }
  .application-top { margin-bottom: 20px; }
  .application-description { margin-bottom: 22px; }
}
@media (max-width: 360px) {
  .identity-main { padding-left: 22px; padding-right: 22px; }
  .access-panel h1 { font-size: 34px; }
  .brand { font-size: 17px; }
  .workspace-shell { width: calc(100% - 36px); }
  .workspace-header { gap: 10px; }
  .workspace-header .brand-caption { display: none; }
  .workspace-welcome h1 { font-size: 42px; }
  .identity-footer { gap: 12px; font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
@media (forced-colors: active) { .access-symbol, .account-avatar, .application-icon { border: 1px solid CanvasText; } }
