/* The legal pages' copy of the portal's base rules. public/terms.html, privacy.html, data-deletion.html and 404.html are public pages
   (visitors, search engines and the sign-in providers' reviewers read them), not part of the signed-in portal, and they used to
   link /portal.css. The portal was then restyled (flat cards, 14px text, sharper corners, new tokens); these pages were not part
   of that change, so they would have changed with it. This file holds the rules of public/portal.css as they were at commit
   64223623, cut to the ones that can match an element those four pages use (their markup, and the status line
   public/core/data-deletion.js writes). It is a frozen look, not a place for new styling. Do not link /portal.css from them. */
:root { color-scheme: light; --bg: #e9edf1; --bg-top: #f3f5f8; --surface: #ffffff; --surface-2: #f7f9fb; --surface-3: #eff2f6; --ink: #17202b; --ink-2: #39434f; --muted: #6d7683; --line: rgba(20, 32, 50, 0.10); --line-2: rgba(20, 32, 50, 0.16); --sheen: rgba(255, 255, 255, 0.85); --metal: #144570; --metal-hi: #1f5885; --metal-lo: #0d3352; --metal-ink: #f2f7fb; --radius: 14px; --radius-sm: 10px; --shadow-sm: 0 1px 2px rgba(18, 28, 42, 0.05); --shadow: 0 12px 34px rgba(18, 28, 42, 0.07); --ok: #4f7a5e; --ok-bg: #e8f0ea; --warn: #a8763a; --err: #a5453d; --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
* { box-sizing: border-box; }
body.portal-body { margin: 0; color: var(--ink); font-family: var(--font); background: radial-gradient(120% 55% at 50% -10%, rgba(255, 255, 255, 0.9), transparent 60%), linear-gradient(180deg, var(--bg-top) 0%, var(--bg) 100%); background-attachment: fixed; -webkit-font-smoothing: antialiased; }
h1, h2, p { margin-top: 0; }
.portal-shell { width: min(1080px, calc(100% - 40px)); margin: 0 auto; padding: 48px 0 72px; }
.portal-shell.narrow { width: min(440px, calc(100% - 28px)); padding-top: 88px; }
.portal-eyebrow { margin: 0; color: var(--muted); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; }
.portal-copy, .portal-small { color: var(--muted); line-height: 1.65; }
.portal-small { font-size: 0.85rem; }
.portal-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); color: var(--ink); background: linear-gradient(180deg, #ffffff 0%, var(--surface-2) 100%); box-shadow: inset 0 1px 0 var(--sheen), var(--shadow-sm); cursor: pointer; font: inherit; font-weight: 600; letter-spacing: 0.01em; text-decoration: none; transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease; }
.portal-button:hover { transform: translateY(-1px); }
.portal-button.primary { color: var(--metal-ink); border-color: var(--metal-lo); background: linear-gradient(180deg, var(--metal-hi) 0%, var(--metal) 55%, var(--metal-lo) 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), var(--shadow-sm); }
.portal-button.primary:hover { background: linear-gradient(180deg, #56606b 0%, #3f4853 55%, var(--metal-lo) 100%); }
.portal-button:disabled { cursor: not-allowed; opacity: 0.55; transform: none; }
.portal-card { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, #ffffff 0%, var(--surface-2) 100%); box-shadow: inset 0 1px 0 var(--sheen), var(--shadow); }
.portal-card h1 { margin: 6px 0 10px; font-size: 1.55rem; letter-spacing: -0.02em; }
.portal-card h2 { margin-top: 0; margin-bottom: 14px; font-size: 1.02rem; letter-spacing: -0.01em; }
.portal-field { display: grid; gap: 7px; margin: 14px 0; font-size: 0.82rem; font-weight: 600; color: var(--ink-2); }
.portal-field input, .portal-field select, .portal-field textarea { width: 100%; padding: 12px 13px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: #fff; box-shadow: inset 0 1px 2px rgba(18, 28, 42, 0.04); color: var(--ink); font: inherit; font-weight: 400; transition: border-color 0.12s ease, box-shadow 0.12s ease; }
.portal-field input:focus, .portal-field select:focus, .portal-field textarea:focus { outline: none; border-color: var(--metal); box-shadow: 0 0 0 3px rgba(20, 69, 112, 0.14); }
.portal-field textarea { min-height: 150px; resize: vertical; }
body.portal-body select:not([multiple]):not([size]) { appearance: none; -webkit-appearance: none; min-height: 50px; min-width: 0; max-width: 100%; padding: 13px 48px 13px 16px; border: 1px solid var(--line-2); border-radius: 12px; background-color: var(--surface); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='m4 6 4 4 4-4' stroke='%23144570' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 16px; color: var(--ink); font-family: var(--font); font-size: 1rem; font-weight: 500; line-height: 1.4; box-shadow: inset 0 1px 0 var(--sheen), var(--shadow-sm); cursor: pointer; transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease; }
body.portal-body select:not([multiple]):not([size]):hover:not(:disabled) { border-color: rgba(20, 69, 112, .4); background-color: var(--surface-2); }
body.portal-body select:focus-visible { outline: 2px solid var(--metal); outline-offset: 3px; border-color: var(--metal); box-shadow: 0 0 0 4px rgba(20, 69, 112, .1); }
body.portal-body select:disabled { color: var(--muted); background-color: var(--surface-2); box-shadow: none; cursor: not-allowed; }
body.portal-body .portal-field:has(select), body.portal-body label:has(> select) { gap: 12px; }
@media (forced-colors: active) {
  body.portal-body select:not([multiple]):not([size]) { appearance: auto; background-image: none; }
}
.portal-status { min-height: 1.2rem; font-size: 0.88rem; font-weight: 600; }
.portal-status.success, .portal-status.error { margin-top: 16px; padding: 11px 13px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--surface); }
.portal-status.success { color: var(--ok); border-color: rgba(79, 122, 94, 0.4); }
.portal-status.error { color: var(--err); border-color: rgba(165, 69, 61, 0.4); }
@media (max-width: 760px) {
  .portal-shell { width: min(100% - 24px, 1080px); padding-top: 28px; }
}
@view-transition { navigation: auto; }
:root { --bg: #edf0f2; --bg-top: #f8f9fa; --surface: #fcfcfd; --surface-2: #f6f8fa; --surface-3: #edf1f4; --ink: #182431; --ink-2: #465565; --muted: #75818d; --line: rgba(27, 44, 61, 0.11); --line-2: rgba(27, 44, 61, 0.18); --metal: #174b70; --metal-hi: #245d81; --metal-lo: #123c5c; --shadow-sm: 0 2px 8px rgba(28, 43, 57, 0.045); --shadow: 0 14px 38px rgba(28, 43, 57, 0.065); }
body.portal-body { background: linear-gradient(180deg, #f8f9fa 0%, #edf0f2 100%); min-height: 100vh; }
.portal-shell { width: min(1160px, calc(100% - 48px)); padding-top: 32px; }
.portal-card { border-color: rgba(24, 40, 56, 0.10); border-radius: 16px; background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(247,249,251,.94)); box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 10px 30px rgba(22,37,51,.045); }
.portal-button { min-height: 42px; border-radius: 9px; transition: transform 200ms cubic-bezier(.2,.7,.2,1), background-color 200ms ease, border-color 200ms ease, box-shadow 200ms ease; }
.portal-button.primary { border-color: #173e5c; background: #174b70; box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 2px 5px rgba(18,52,76,.12); }
.portal-button.primary:hover { background: #205a7f; }
.portal-button:focus-visible { outline: 3px solid rgba(31, 91, 132, .28); outline-offset: 3px; }
::view-transition-old(root) { animation: 320ms cubic-bezier(.4,0,.2,1) both fade-leave; }
::view-transition-new(root) { animation: 320ms cubic-bezier(.4,0,.2,1) both fade-arrive; }
@keyframes fade-leave { to { opacity: 0; } }
@keyframes fade-arrive { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 640px) {
  .portal-shell { width: min(100% - 28px, 1160px); padding-top: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none !important; }
}
:root { --agent-panel-width: 400px; }
@media (max-width: 640px) {
  :root { --agent-panel-width: 100vw; }
}
