:root {
  color-scheme: light;
  --navy: #071329;
  --navy-2: #112442;
  --champagne: #d5c7ad;
  --champagne-soft: #f1ece4;
  --ink: #142033;
  --muted: #647086;
  --line: #e4e8ee;
  --surface: #ffffff;
  --canvas: #f5f6f8;
  --reserved-area-blue-bg: radial-gradient(ellipse at 62% 24%, rgba(108,166,218,.64), transparent 42%), linear-gradient(135deg, #071832 0%, #113458 48%, #285781 100%);
  --shadow: 0 24px 70px rgba(8, 20, 40, .12);
  --radius: 18px;
  --radius-sm: 12px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--surface); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
.skip-link { position: fixed; z-index: 1000; top: 12px; left: 12px; padding: 12px 16px; transform: translateY(-160%); background: #fff; color: var(--navy); border-radius: 8px; }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid #9cb5dc; outline-offset: 3px; }

/* Public site */
.site-shell { overflow: hidden; background: #fff; }
.home-opening { min-height: calc(100vh - 88px); min-height: calc(100svh - 88px); display: flex; flex-direction: column; }
.home-opening .site-hero { flex: 1 0 auto; min-height: 0; }
.home-opening .statement-band { flex: 0 0 auto; min-height: 96px; display: flex; align-items: center; }
.site-header { position: relative; width: calc(100% - clamp(48px, 4.5vw, 96px)); margin: 0 auto; height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 28px; border-bottom: 1px solid rgba(7, 19, 41, .08); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); min-width: 240px; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--champagne); color: var(--champagne); font: 500 15px/1 Georgia, serif; letter-spacing: -.08em; position: relative; }
.brand-mark .ag-glyph { position:relative; z-index:1; display:block; width:72%; max-height:76%; object-fit:contain; }
.brand-mark::after { content: ""; position: absolute; inset: 4px; border: 1px solid rgba(213,199,173,.45); }
.brand-copy { display: grid; gap: 3px; }
.brand-copy strong { font: 500 12px/1.2 Georgia, serif; letter-spacing: .1em; text-transform: uppercase; }
.brand-copy span { color: var(--muted); font-size: 9px; letter-spacing: .22em; text-transform: uppercase; }
.site-nav-links { position: absolute; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 3px; padding: 5px; border: 1px solid rgba(213,199,173,.52); border-radius: 999px; background: rgba(249,248,246,.92); box-shadow: 0 8px 24px rgba(7,19,41,.055); color: #3f4c61; font: 400 12px/1.1 Georgia, "Times New Roman", serif; letter-spacing: .01em; }
.site-nav-links a { text-decoration: none; padding: 9px 14px; border-radius: 999px; transition: color .2s ease, background .2s ease, box-shadow .2s ease; }
.site-nav-links a:hover { color: #806945; background: #fff; box-shadow: 0 2px 10px rgba(7,19,41,.07); }
.site-header-actions { display: flex; align-items: center; gap: 12px; }
.menu-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--navy); }
.btn { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid transparent; border-radius: 999px; padding: 0 20px; text-decoration: none; font-size: 12px; font-weight: 600; letter-spacing: .015em; transition: transform .18s ease, background .18s ease, border-color .18s ease; }
.btn:hover { transform: translateY(-1.5px); }
.btn:active { transform: scale(.95); transition: transform 0.08s ease; }
.btn.modal-origin-fading { opacity: 0; transform: scale(.96); pointer-events: none; transition: opacity .28s ease, transform .28s ease; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-2); }
.btn-outline { color: var(--navy); border-color: #cfd6df; background: transparent; }
.btn-outline:hover { border-color: var(--champagne); background: #fbfaf8; }
.btn-light { color: var(--navy); background: #fff; }
.btn-light:hover { background: var(--champagne-soft); }
.btn-small { min-height: 38px; padding: 0 15px; font-size: 11px; }
.btn-text { min-height: 36px; padding: 0 4px; color: var(--navy); background: transparent; border: 0; font-size: 12px; font-weight: 600; }
.btn-text:hover { color: #8f764d; }
.icon-arrow { font-size: 17px; line-height: 1; }

.site-hero { width: min(1440px, calc(100% - clamp(48px, 4.5vw, 96px))); min-height: 610px; margin: 0 auto; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(56px, 5vw, 112px); padding: 56px 0 76px; }
.hero-copy { max-width: 600px; }
.eyebrow { display: flex; align-items: center; gap: 12px; color: #9a825a; font-size: 10px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--champagne); }
.hero-copy h1 { margin: 26px 0 20px; color: var(--navy); font: 400 clamp(42px, 5.4vw, 70px)/1.02 Georgia, "Times New Roman", serif; letter-spacing: -.045em; }
.hero-copy h1 em { color: #a48a61; font-style: normal; }
.hero-lead { max-width: 480px; margin: 0; color: #5c6879; font-size: 16px; line-height: 1.8; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-art { min-height: 440px; display: grid; place-items: center; position: relative; isolation: isolate; }
.hero-art::before { content: ""; position: absolute; z-index: -1; width: min(430px, 82%); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 32% 28%, #23395b, var(--navy) 66%); box-shadow: 0 36px 90px rgba(7,19,41,.18); }
.hero-art::after { content: ""; position: absolute; z-index: -1; width: min(480px, 92%); aspect-ratio: 1; border: 1px solid rgba(213,199,173,.7); border-radius: 50%; transform: translate(20px,-6px); }
.hero-seal { width: 210px; height: 210px; display: grid; place-items: center; border: 1px solid rgba(213,199,173,.8); color: var(--champagne); font: 400 75px/1 Georgia, serif; letter-spacing: -.12em; position: relative; }
.hero-seal .hero-glyph { display:block; width:68%; height:auto; object-fit:contain; }
.hero-seal::before, .hero-seal::after { content: ""; position: absolute; inset: 11px; border: 1px solid rgba(213,199,173,.3); }
.hero-seal::after { inset: 25px; }
.hero-card { position: absolute; z-index: 30; right: -2px; bottom: 34px; width: 235px; padding: 20px; border: 1px solid rgba(255,255,255,.65); border-radius: 16px; background: rgba(255,255,255,.92); box-shadow: 0 18px 48px rgba(7,19,41,.14); backdrop-filter: blur(14px); }
.hero-card-label { color: #98815c; font-size: 9px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.hero-card strong { display: block; margin: 9px 0 6px; color: var(--navy); font: 400 20px/1.2 Georgia, serif; }
.hero-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.hero-orbit { position: absolute; top: 42px; left: 18px; width: 74px; height: 74px; border: 1px solid rgba(213,199,173,.7); border-radius: 50%; }
.hero-orbit::after { content: ""; position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--champagne); top: 5px; right: 14px; }

.statement-band { background: var(--navy); color: #fff; }
.statement-inner { width: calc(100% - clamp(48px, 4.5vw, 96px)); min-height: 96px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.statement-inner p { margin: 0; color: #dce2eb; font: 400 19px/1.4 Georgia, serif; }
.statement-inner span { color: var(--champagne); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; white-space: nowrap; }
.site-section { width: min(1100px, calc(100% - 48px)); margin: 0 auto; padding: 100px 0; }
.section-topline { color: #a3895f; font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.section-heading { max-width: 680px; margin: 16px 0 18px; color: var(--navy); font: 400 clamp(32px, 4vw, 48px)/1.1 Georgia, serif; letter-spacing: -.035em; }
.section-intro { max-width: 650px; margin: 0; color: #697487; font-size: 14px; line-height: 1.8; }
.about-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 80px; align-items: start; }
.about-aside { padding: 25px 0 0 28px; border-left: 1px solid var(--champagne); color: #616d7d; font: 400 17px/1.8 Georgia, serif; }
.about-aside strong { display: block; margin-top: 16px; color: var(--navy); font: 500 11px/1.5 var(--font, sans-serif); letter-spacing: .1em; text-transform: uppercase; }
.section-rule { width: 52px; height: 1px; margin: 30px 0; background: var(--champagne); }
.practice-section { background: var(--canvas); }
.practice-inner { width: min(1100px, calc(100% - 48px)); margin: 0 auto; padding: 98px 0 104px; }
.practice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 42px; }
.practice-card { min-height: 260px; padding: 30px; border: 1px solid #e2e6ec; border-radius: var(--radius); background: #fff; position: relative; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.practice-card:hover { transform: translateY(-4px); box-shadow: 0 18px 38px rgba(13,29,53,.07); }
.practice-number { color: #a28b66; font: 400 12px Georgia, serif; letter-spacing: .12em; }
.practice-card h3 { margin: 42px 0 12px; color: var(--navy); font: 400 28px/1.1 Georgia, serif; }
.practice-card p { max-width: 440px; margin: 0; color: #667184; font-size: 13px; line-height: 1.8; }
.practice-card::after { content: ""; position: absolute; right: -30px; bottom: -76px; width: 190px; height: 190px; border: 1px solid rgba(213,199,173,.52); border-radius: 50%; }
.practice-card::before { content: ""; position: absolute; right: 22px; bottom: -110px; width: 190px; height: 190px; border: 1px solid rgba(213,199,173,.32); border-radius: 50%; }
.method-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 46px; }
.method-card { padding-top: 18px; border-top: 1px solid var(--champagne); }
.method-step { color: #a28b66; font: 400 13px Georgia, serif; }
.method-card h3 { margin: 24px 0 10px; color: var(--navy); font: 400 21px/1.3 Georgia, serif; }
.method-card p { max-width: 270px; margin: 0; color: #6d7889; font-size: 12px; line-height: 1.75; }
.contact-band { width: min(1100px, calc(100% - 48px)); margin: 0 auto 90px; padding: 46px 52px; display: flex; align-items: center; justify-content: space-between; gap: 32px; border-radius: 20px; background: linear-gradient(120deg, #08152b, #162847); color: #fff; position: relative; overflow: hidden; }
.contact-band::after { content: ""; position: absolute; right: 20%; top: -50px; width: 340px; height: 206px; background: url("/ag-monogram.png?v=c7ecc524afc3eb9a") center / contain no-repeat; opacity: .06; pointer-events: none; }
.contact-band h2 { max-width: 540px; margin: 0; font: 400 clamp(26px, 3vw, 36px)/1.15 Georgia, serif; }
.contact-band .btn { position: relative; z-index: 1; flex-shrink: 0; }
.site-footer { padding: 30px 24px; border-top: 1px solid var(--line); }
.footer-inner { width: min(1200px, 100%); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.footer-links { display: flex; gap: 18px; color: #5d6879; font-size: 11px; }
.footer-links button { padding: 0; border: 0; color: inherit; background: none; font-size: inherit; }
.footer-links button:hover { color: #9a825a; }

/* Scroll-led blue world: the orb grows while the whole page palette shifts. */
.scroll-blue-orb { display: none; }
.world-transition-runway { height: 0; pointer-events: none; }
#app.scroll-world-enabled .world-transition-runway { height: 72vh; height: 72svh; }
#app.scroll-world-enabled { position: relative; isolation: isolate; min-height: 100vh; background: var(--world-page-bg, #fff); }
#app.scroll-world-enabled .scroll-blue-orb {
  display: block; position: fixed; z-index: 0; left: var(--world-orb-x, 50vw); top: var(--world-orb-y, 45vh);
  width: var(--world-orb-diameter, 430px); height: var(--world-orb-diameter, 430px); border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #23395b, #071329 66%);
  box-shadow: 0 36px 90px rgba(7,19,41,.18);
  transform: translate3d(-50%,-50%,0) scale(var(--world-orb-scale, 1)); transform-origin: center; pointer-events: none;
  will-change: transform;
}
#app.scroll-world-enabled .site-shell { position: relative; z-index: 1; overflow: visible; background: transparent; }
#app.scroll-world-enabled .site-header { border-bottom-color: var(--world-header-border, rgba(7,19,41,.08)); }
#app.scroll-world-enabled .brand { color: var(--world-ink, var(--navy)); }
#app.scroll-world-enabled .brand-copy span { color: var(--world-muted, var(--muted)); }
#app.scroll-world-enabled .site-nav-links { color: var(--world-nav-text, #3f4c61); border-color: var(--world-nav-border, rgba(213,199,173,.52)); background: var(--world-nav-bg, #f9f8f6); }
#app.scroll-world-enabled .site-nav-links a:hover { color: var(--world-nav-hover-text, #806945); background: var(--world-nav-hover-bg, #fff); }
#app.scroll-world-enabled .site-header-actions .btn-outline,
#app.scroll-world-enabled .hero-actions .btn-outline { color: var(--world-ink, var(--navy)); border-color: var(--world-outline-border, #cfd6df); }
#app.scroll-world-enabled .hero-actions .btn-primary { color: var(--world-action-text, #fff); background: var(--world-action-bg, var(--navy)); }
#app.scroll-world-enabled .hero-actions .btn-primary:hover { background: var(--world-action-hover-bg, var(--navy-2)); }
#app.scroll-world-enabled .about-grid .btn-text { color: var(--world-action-link, var(--navy)); }
#app.scroll-world-enabled .hero-copy h1 { color: var(--world-heading, var(--navy)); }
#app.scroll-world-enabled .hero-lead { color: var(--world-hero-copy, #5c6879); }
#app.scroll-world-enabled .eyebrow { color: var(--world-accent, #9a825a); }
#app.scroll-world-enabled .hero-art::before { opacity: 0; }
#app.scroll-world-enabled .hero-art::after,
#app.scroll-world-enabled .hero-orbit { opacity: calc(1 - var(--world-progress, 0)); }
#app.scroll-world-enabled .hero-orbit::after { transform-origin: -14px 32px; transform: rotate(var(--world-orbit-dot-angle, 0deg)); }
#app.scroll-world-enabled .hero-card { opacity: var(--world-card-opacity, 1); pointer-events: none; }
#app.scroll-world-enabled .hero-seal {
  position: fixed; z-index: 20; top: 0; left: 0; margin: 0; transform-origin: top left;
  transform: translate3d(var(--world-seal-x, 0px), var(--world-seal-y, 0px), 0) scale(var(--world-seal-scale, 1));
  will-change: transform;
}
#app.scroll-world-enabled .hero-seal::before,
#app.scroll-world-enabled .hero-seal::after { border-width: var(--world-seal-inner-border-width, 1px); }
#app.scroll-world-enabled .section-topline { color: var(--world-accent, #a3895f); }
#app.scroll-world-enabled .section-heading,
#app.scroll-world-enabled .about-aside strong,
#app.scroll-world-enabled .practice-card h3,
#app.scroll-world-enabled .method-card h3 { color: var(--world-heading, var(--navy)); }
#app.scroll-world-enabled .section-intro,
#app.scroll-world-enabled .about-aside,
#app.scroll-world-enabled .practice-card p,
#app.scroll-world-enabled .method-card p,
#app.scroll-world-enabled .footer-links { color: var(--world-copy, #667184); }
#app.scroll-world-enabled .practice-section { background: var(--world-practice-bg, var(--canvas)); }
#app.scroll-world-enabled .practice-card { border-color: var(--world-card-border, #e2e6ec); background: var(--world-card-bg, #fff); }
#app.scroll-world-enabled .practice-number,
#app.scroll-world-enabled .method-step { color: var(--world-accent, #a28b66); }
#app.scroll-world-enabled .site-footer { border-top-color: var(--world-footer-border, var(--line)); }
@media (max-width: 720px) { #app.scroll-world-enabled .world-transition-runway { height: 28vh; height: 28svh; } }

/* Reveal progress is mapped directly to scroll position and reverses on scroll-up. */
#app.scroll-reveal-enabled [data-reveal] {
  opacity: var(--scroll-reveal-progress, 0);
  transform: translate3d(0, var(--scroll-reveal-translate, 28px), 0);
  filter: blur(var(--scroll-reveal-blur, 5px));
  transition: none;
  will-change: opacity, transform, filter;
}
#app.scroll-reveal-enabled .practice-card[data-reveal]:hover {
  transform: translate3d(0, var(--scroll-reveal-translate, 28px), 0) translateY(-4px);
}

/* Reserved-area transition */
.reserved-transition-overlay {
  position: fixed;
  z-index: 10000;
  pointer-events: auto;
  overflow: hidden;
  background: var(--reserved-area-blue-bg);
  box-shadow: inset 0 0 0 1px rgba(218,233,250,.4), 0 28px 100px rgba(1,7,18,.18);
  will-change: transform, border-radius, opacity;
}

/* Reserved-area login */
.login-page { min-height: 100vh; background: var(--reserved-area-blue-bg); display: grid; place-items: center; padding: 28px; }
.login-shell { width: min(1020px, 100%); min-height: 610px; display: grid; grid-template-columns: .92fr 1.08fr; overflow: hidden; border-radius: 24px; background: #fff; box-shadow: var(--shadow); }
.login-aside { padding: 44px; display: flex; flex-direction: column; justify-content: space-between; background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.login-aside::after { content: ""; position: absolute; right: -20px; bottom: -54px; width: 380px; height: 230px; background: url("/ag-monogram.png?v=c7ecc524afc3eb9a") center / contain no-repeat; opacity: .08; pointer-events: none; }
.login-aside .brand { color: #fff; }
.login-aside .brand-copy span { color: #aebbd0; }
.login-aside-copy { position: relative; z-index: 1; }
.login-aside-copy .eyebrow { color: var(--champagne); }
.login-aside-copy h1 { max-width: 340px; margin: 22px 0 16px; font: 400 42px/1.08 Georgia, serif; }
.login-aside-copy p { max-width: 330px; margin: 0; color: #c0cada; font-size: 13px; line-height: 1.8; }
.login-aside-foot { position: relative; z-index: 1; color: #9daac0; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.login-main { padding: 54px 52px; display: flex; flex-direction: column; justify-content: center; }
.login-main h2 { margin: 0; color: var(--navy); font: 400 31px/1.2 Georgia, serif; }
.login-main > p { margin: 10px 0 28px; color: #697487; font-size: 12px; line-height: 1.7; }
.login-main > .login-notice { margin: -14px 0 18px; color: #35644a; }
.login-mode { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 5px; border-radius: 999px; background: #f0f2f5; }
.login-mode button { min-height: 38px; border: 0; border-radius: 999px; color: #687488; background: transparent; font-size: 11px; font-weight: 600; }
.login-mode button.active { color: var(--navy); background: #fff; box-shadow: 0 2px 8px rgba(12,26,48,.08); }
.login-form { margin-top: 23px; display: grid; gap: 16px; }
.login-field { display: grid; gap: 0; }
.field-label { display: block; margin: 0 0 8px; color: #334056; font-size: 11px; font-weight: 700; }
.field-optional { color: #8993a2; font-size: 10px; font-weight: 400; }
.form-control { width: 100%; min-height: 46px; padding: 0 14px; border: 1px solid #dce2e9; border-radius: 10px; color: var(--ink); background: #fff; font-size: 12px; }
.form-control:focus { border-color: #8fa1bc; outline: 3px solid rgba(143,161,188,.16); }
textarea.form-control { min-height: 100px; padding: 12px 14px; resize: vertical; }
.login-forgot { justify-self: end; padding: 0; border: 0; color: #687488; background: transparent; font-size: 11px; cursor: pointer; }
.login-forgot:hover { color: var(--navy); text-decoration: underline; }
.login-submit { width: 100%; margin-top: 0; }
.back-link { margin-top: 22px; align-self: flex-start; }
.admin-empty-state { margin-top: 18px; padding: 18px; border: 1px solid #e4e8ee; border-radius: 12px; background: #f8f9fb; }
.admin-empty-state strong { color: var(--navy); font: 400 17px/1.3 Georgia, serif; }
.admin-empty-state p { margin: 8px 0 0; color: #697487; font-size: 11px; line-height: 1.7; }
.admin-home-actions { margin-top: 22px; display: flex; align-items: center; gap: 14px; }
.admin-home-actions .btn { margin: 0; }

/* Administrator console & Team workspace */
.admin-shell { min-height: 100vh; display: grid; grid-template-columns: 78px minmax(0,1fr); color: var(--ink); background: #f5f6f8; }
.admin-sidebar { position: sticky; top: 0; height: 100vh; padding: 22px 10px 16px; display: flex; flex-direction: column; align-items: center; background: var(--navy); color: #eaf0f8; z-index: 25; }
.admin-sidebar-brand { width: 100%; padding: 0 0 16px; border-bottom: 1px solid rgba(255,255,255,.12); display: flex; justify-content: center; }
.admin-sidebar .brand { min-width: 0; color: #fff; display: flex; justify-content: center; align-items: center; }
.admin-sidebar .brand-mark { width: 38px; height: 38px; flex-shrink: 0; margin: 0; }
.admin-sidebar .brand-copy { display: none; }
.admin-sidebar-caption { display: none; }
.admin-nav { margin-top: 18px; display: flex; flex-direction: column; align-items: center; gap: 7px; width: 100%; }
.admin-nav-item { width: 44px; height: 44px; min-height: 44px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 11px; color: #8fa1bc; background: transparent; position: relative; cursor: pointer; transition: color .18s ease, background .18s ease, border-color .18s ease, transform .15s ease; }
.admin-nav-item:hover { color: #fff; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14); }
.admin-nav-item.active { color: #dfd0b5; background: rgba(213,199,173,.14); border-color: rgba(213,199,173,.35); box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.admin-nav-item .nav-icon { width: 20px; height: 20px; flex-shrink: 0; display: block; }
.admin-nav-item > span:not(.nav-icon):not(.admin-nav-label) { display: none; }
.admin-nav-item strong { display: none; }
.admin-nav-label,
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Floating luxury tooltip on hover & focus */
.admin-nav-item[data-tooltip]::after,
.admin-sidebar-icon-btn[data-tooltip]::after,
.admin-sidebar-status[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(-4px);
  padding: 6px 11px;
  background: #08111e;
  color: #f1ebd8;
  border: 1px solid rgba(213,199,173,.32);
  border-radius: 7px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .02em;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
  z-index: 1000;
}
.admin-nav-item[data-tooltip]:hover::after,
.admin-nav-item[data-tooltip]:focus-visible::after,
.admin-sidebar-icon-btn[data-tooltip]:hover::after,
.admin-sidebar-icon-btn[data-tooltip]:focus-visible::after,
.admin-sidebar-status[data-tooltip]:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

.admin-sidebar-foot { margin-top: auto; padding: 14px 0 2px; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; border-top: 1px solid rgba(255,255,255,.12); }
.admin-sidebar-status { width: 8px; height: 8px; border-radius: 50%; background: #7ac5a6; box-shadow: 0 0 0 3px rgba(122,197,166,.15); position: relative; cursor: default; }
.admin-sidebar-icon-btn { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.14); border-radius: 9px; color: #8fa1bc; background: transparent; position: relative; cursor: pointer; text-decoration: none; transition: all .18s ease; }
.admin-sidebar-icon-btn:hover { color: #fff; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.24); }
.admin-sidebar-icon-btn .nav-icon { width: 18px; height: 18px; flex-shrink: 0; }
.admin-sidebar-foot button:not(.admin-sidebar-icon-btn) { margin-left: auto; padding: 6px 8px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; color: #fff; background: transparent; font-size: 9px; }
.admin-main { min-width: 0; }
.admin-topbar { min-height: 70px; padding: 0 34px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid #e6e9ee; background: rgba(255,255,255,.94); }
.admin-topbar > div:first-child { display: grid; gap: 4px; }
.admin-topbar > div:first-child span { color: #8993a2; font-size: 9px; }
.admin-topbar > div:first-child strong { color: var(--navy); font: 400 15px Georgia,serif; }
.admin-topbar-account { display: flex; align-items: center; gap: 9px; color: #4e5c70; font-size: 10px; }
.admin-avatar-small { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid #ddcfb7; border-radius: 50%; color: #8c754d; background: #f6f2eb; font: 500 10px Georgia,serif; }
.admin-avatar-small .ag-avatar-glyph { display:block; width:20px; height:auto; object-fit:contain; }
.admin-content { width: min(1380px,100%); margin: 0 auto; padding: 34px 36px 54px; }
.admin-page-heading { margin-bottom: 22px; }
.admin-page-heading .section-topline { color: #927a50; }
.admin-page-heading h1 { margin: 8px 0 8px; color: var(--navy); font: 400 32px/1.12 Georgia,serif; letter-spacing: -.025em; }
.admin-page-heading p { max-width: 760px; margin: 0; color: #718095; font-size: 11px; line-height: 1.7; }
.admin-notice { margin-bottom: 18px; padding: 13px 15px; display: flex; align-items: flex-start; gap: 11px; border: 1px solid #e7dfd1; border-radius: 10px; color: #6f624d; background: #fbf9f5; }
.admin-notice-mark { width: 19px; height: 19px; flex: 0 0 19px; display: grid; place-items: center; border: 1px solid #d4c2a2; border-radius: 50%; color: #8e7750; font: 600 11px Georgia,serif; }
.admin-notice p { margin: 0; font-size: 10px; line-height: 1.65; }
.admin-notice strong { color: #5b4d35; }
.admin-status-grid { margin-bottom: 18px; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.admin-status-card { min-height: 118px; padding: 16px; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 8px; border: 1px solid #e5e8ed; border-radius: 11px; background: #fff; box-shadow: 0 5px 18px rgba(8,20,40,.025); }
.admin-card-label { color: #7d899a; font-size: 9px; font-weight: 600; letter-spacing: .02em; }
.admin-status-card strong { color: var(--navy); font: 400 16px/1.3 Georgia,serif; }
.admin-status-card small { color: #8a95a5; font-size: 9px; line-height: 1.5; }
.admin-overview-grid { margin-bottom: 18px; display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr); gap: 14px; align-items: stretch; }
.admin-panel { min-width: 0; border: 1px solid #e5e8ed; border-radius: 11px; background: #fff; box-shadow: 0 5px 18px rgba(8,20,40,.025); }
.admin-panel-header { min-height: 66px; padding: 12px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid #edf0f3; }
.admin-panel-header .section-topline { margin-bottom: 4px; font-size: 8px; }
.admin-panel-header h2 { margin: 0; color: var(--navy); font: 400 17px/1.2 Georgia,serif; }
.admin-checklist { padding: 5px 18px 10px; }
.admin-checklist > div { min-height: 59px; display: grid; grid-template-columns: 25px minmax(0,1fr) auto; align-items: center; gap: 10px; border-bottom: 1px solid #f0f2f5; }
.admin-checklist > div:last-child { border-bottom: 0; }
.admin-check-icon { width: 21px; height: 21px; display: grid; place-items: center; border: 1px solid #dfe4eb; border-radius: 50%; color: #9aa4b2; font-size: 10px; }
.admin-check-icon.done { border-color: #d4e8dc; color: #397b5e; background: #edf7f1; }
.admin-checklist strong,.admin-account-row strong { display: block; color: #344158; font-size: 10px; font-weight: 600; }
.admin-checklist small,.admin-account-row small { display: block; margin-top: 4px; color: #8994a3; font-size: 9px; line-height: 1.4; }
.admin-state-pill { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 999px; color: #66758b; background: #eef1f5; font-size: 8px; font-weight: 700; white-space: nowrap; }
.admin-state-pill.complete { color: #397b5e; background: #e9f4ed; }
.admin-state-pill.pending { color: #8b7043; background: #f6f1e7; }
.admin-state-pill::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.admin-inline-link { padding: 5px 0; border: 0; color: #8a744d; background: transparent; font-size: 9px; font-weight: 600; cursor: pointer; }
.admin-inline-link:hover { text-decoration: underline; }
.admin-empty { min-height: 140px; padding: 23px 18px; display: flex; flex-direction: column; justify-content: center; color: #7f8b9c; text-align: center; }
.admin-empty strong { color: #536177; font: 400 15px/1.3 Georgia,serif; }
.admin-empty p { max-width: 540px; margin: 7px auto 0; font-size: 10px; line-height: 1.7; }
.admin-empty.compact { min-height: 92px; padding: 16px 20px; }
.admin-empty.compact p { margin: 0; }
.admin-overview-footer { margin-top: 0; }
.admin-space-top { margin-top: 18px; }
.admin-account-row { min-height: 76px; padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.admin-account-row > div:first-of-type { min-width: 0; flex: 1; }
.admin-account-row > .btn, .admin-account-row > .admin-gmail-actions { flex: 0 0 auto; margin-left: auto; display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.admin-avatar { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border-radius: 50%; color: #796440; background: #f1ece3; font: 500 11px Georgia,serif; }
.admin-account-meta { margin-left: auto; color: #8792a2; font-size: 9px; }
.admin-role-list { padding: 0 18px; }
.admin-role-list article { min-height: 66px; display: flex; align-items: center; gap: 11px; border-bottom: 1px solid #f0f2f5; }
.admin-role-list article:last-child { border-bottom: 0; }
.admin-role-list article > div { min-width: 0; flex: 1; }
.admin-role-list strong { display: block; color: #344158; font-size: 10px; }
.admin-role-list small { display: block; margin-top: 4px; color: #8994a3; font-size: 9px; line-height: 1.4; }
.admin-role-symbol { width: 28px; height: 28px; flex: 0 0 28px; display: grid; place-items: center; border: 1px solid #e4dac9; border-radius: 8px; color: #8a744d; background: #faf8f4; font: 400 11px Georgia,serif; }
.admin-panel-footnote { padding: 12px 18px; border-top: 1px solid #edf0f3; color: #8994a3; font-size: 9px; line-height: 1.6; }
.admin-permission-wrap { overflow-x: auto; }
.admin-permission-table { width: 100%; border-collapse: collapse; }
.admin-permission-table th,.admin-permission-table td { padding: 12px 18px; border-bottom: 1px solid #edf0f3; text-align: left; }
.admin-permission-table th { color: #8a95a5; background: #fbfcfd; font-size: 8px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.admin-permission-table th:not(:first-child),.admin-permission-table td:not(:first-child) { width: 132px; text-align: center; }
.admin-permission-table td strong { display: block; color: #354258; font-size: 10px; font-weight: 600; }
.admin-permission-group { display: block; margin-bottom: 4px; color: #9a835a; font-size: 8px; text-transform: uppercase; letter-spacing: .05em; }
.admin-permission-table input[type="checkbox"] { width: 17px; height: 17px; accent-color: #172a49; cursor: pointer; }
.admin-permission-table input[type="checkbox"]:disabled { cursor: not-allowed; opacity: .45; }
.admin-permission-pending { color: #8b7043; font-size: 8px; font-weight: 700; }
.admin-permission-footer { padding: 13px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.admin-permission-footer p { margin: 0; color: #8791a1; font-size: 9px; line-height: 1.5; }
.admin-permission-footer > div { display: flex; align-items: center; gap: 8px; }
.admin-permission-footer .btn:disabled { opacity: .5; cursor: not-allowed; }
.admin-integration-list { margin-bottom: 18px; display: grid; gap: 12px; }
.admin-integration-card { min-height: 110px; padding: 17px 19px; display: flex; align-items: center; gap: 14px; }
.admin-integration-mark { width: 35px; height: 35px; flex: 0 0 35px; display: grid; place-items: center; border: 1px solid #e4dac9; border-radius: 10px; color: #8a744d; background: #faf8f4; font: 400 20px Georgia,serif; }
.admin-integration-card > div { flex: 1; }
.admin-integration-card h2 { margin: 8px 0 4px; color: var(--navy); font: 400 15px Georgia,serif; }
.admin-integration-card p { margin: 0; color: #8791a1; font-size: 9px; line-height: 1.5; }
.admin-security-list { padding: 4px 18px 10px; }
.admin-security-list > div { padding: 13px 0; display: grid; gap: 5px; border-bottom: 1px solid #f0f2f5; }
.admin-security-list > div:last-child { border-bottom: 0; }
.admin-security-list strong { color: #354258; font-size: 10px; }
.admin-security-list small { color: #8791a1; font-size: 9px; line-height: 1.5; }
.admin-sidebar button:focus-visible,.admin-inline-link:focus-visible,.admin-nav-item:focus-visible { outline-color: #d8c7a7; }

/* Admin account tables */
.panel-body { padding: 16px 18px; }
.data-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.data-table { width: 100%; border-collapse: collapse; min-width: 680px; }
.data-table th { padding: 13px 18px; color: #7c8798; background: #fafbfc; text-align: left; font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }
.data-table td { padding: 15px 18px; border-top: 1px solid #edf0f3; color: #526075; font-size: 10px; }
.data-table th:last-child, .data-table td:last-child { text-align: right; }
.data-table td strong { color: var(--navy); font-size: 10px; }
.admin-account-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; white-space: nowrap; }
.admin-account-actions .admin-account-action { min-height: 32px; padding: 0 11px; border-radius: 8px; font-size: 9px; letter-spacing: .01em; }
.admin-account-invite { color: #536982; border-color: #d9e1e9; background: #f8fafc; }
.admin-account-invite:hover { border-color: #bcc9d7; background: #f2f6fa; }
.admin-invitation-status { display: inline-block; margin-top: 4px; color: #788597; font-size: 8px; }
.admin-account-save { color: var(--navy); border-color: #d9dfe7; background: #fff; }
.admin-account-save:hover { border-color: #bcc7d5; background: #f8fafc; }
.admin-account-status { color: #816b46; border-color: #e7dece; background: #fbf9f5; }
.admin-account-status:hover { border-color: var(--champagne); background: #f7f3ec; }
.admin-account-delete { width: 32px; height: 32px; flex: 0 0 32px; padding: 0; display: grid; place-items: center; border: 1px solid #eadbd7; border-radius: 8px; color: #96665d; background: #fff; transition: background .18s ease,border-color .18s ease,color .18s ease; }
.admin-account-delete svg { width: 15px; height: 15px; }
.admin-account-delete:hover { border-color: #d8bcb5; color: #854b43; background: #fbf5f3; }
.admin-account-actions button:disabled { opacity: .55; cursor: wait; transform: none; }

/* Modal and feedback */
.modal-backdrop { position: fixed; z-index: 100; inset: 0; padding: 22px; display: grid; place-items: center; background: rgba(5,14,29,.58); backdrop-filter: blur(5px); opacity: 1; transition: opacity .8s ease, backdrop-filter .9s ease; }
.modal-backdrop.modal-is-entering { opacity: 0; backdrop-filter: blur(0); }
.modal-card { width: min(540px, 100%); max-height: min(88vh, 760px); overflow: auto; padding: 26px; border: 1px solid rgba(213,199,173,.45); border-radius: 17px; background: #fff; box-shadow: 0 30px 90px rgba(0,0,0,.25); transform: translate3d(0,0,0) scaleX(1) scaleY(1); transform-origin: center; opacity: 1; transition: transform 1.2s cubic-bezier(.65,0,.35,1), opacity .72s ease; }
.modal-backdrop.modal-is-entering .modal-card { transform: translate3d(var(--modal-origin-x, 0px), var(--modal-origin-y, 14px), 0) scaleX(var(--modal-start-scale-x, .96)) scaleY(var(--modal-start-scale-y, .96)); opacity: 0; }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.modal-header h2 { margin: 0; color: var(--navy); font: 400 24px/1.2 Georgia, serif; }
.modal-header p { margin: 7px 0 0; color: #778294; font-size: 10px; line-height: 1.6; }
.modal-close { width: 34px; height: 34px; display: grid; place-items: center; flex-shrink: 0; border: 1px solid #e4e8ee; border-radius: 50%; color: #667184; background: #fff; font-size: 17px; }
.modal-form { display: grid; gap: 14px; margin-top: 24px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.form-hint { color: #8893a2; font-size: 9px; line-height: 1.6; }
.toast { position: fixed; z-index: 120; right: 24px; bottom: 24px; max-width: 360px; padding: 14px 18px; border: 1px solid #d9e8df; border-radius: 11px; color: #285a48; background: #eef7f2; box-shadow: var(--shadow); font-size: 11px; line-height: 1.5; animation: toast-in .25s ease-out; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 980px) {
  .site-nav-links { gap: 18px; }
  .site-hero { gap: 25px; }
  .hero-art { min-height: 370px; }
  .hero-seal { width: 180px; height: 180px; font-size: 65px; }
  .hero-card { right: -10px; width: 210px; }
}
@media (max-width: 1120px) and (min-width: 721px) {
  .site-header { gap: 16px; }
  .brand { min-width: 0; }
  .site-nav-links { position: static; left: auto; transform: none; gap: 8px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; font-size: 11px; }
  .site-nav-links a { padding: 4px 3px; }
  .site-header-actions { gap: 8px; }
  .site-header-actions .btn-outline { padding: 0 12px; }
}
@media (max-height: 720px) and (min-width: 721px) {
  .home-opening .site-hero { padding-top: 30px; padding-bottom: 30px; }
  .home-opening .hero-art { min-height: 350px; }
  .home-opening .hero-card { bottom: 24px; }
}
@media (max-width: 720px) {
  html { scroll-behavior: auto; }
  .site-header { width: min(100% - 32px, 1200px); height: 72px; }
  .brand { min-width: 0; }
  .brand-mark { width: 38px; height: 38px; }
  .brand-copy strong { font-size: 10px; }
  .site-nav-links { display: none; position: absolute; z-index: 20; top: 72px; left: 0; right: 0; padding: 18px 24px; flex-direction: column; align-items: flex-start; gap: 17px; border-bottom: 1px solid var(--line); background: #fff; box-shadow: 0 15px 30px rgba(7,19,41,.08); }
  .site-nav-links.open { display: flex; }
  .site-header-actions .btn-outline { display: none; }
  .menu-toggle { display: grid; place-items: center; }
  .home-opening { min-height: auto; }
  .home-opening .site-hero { flex: none; min-height: 0; }
  .home-opening .statement-band { min-height: 88px; }
  .site-hero { width: min(100% - 32px, 1200px); grid-template-columns: 1fr; gap: 14px; padding: 58px 0 58px; }
  .hero-copy h1 { margin-top: 22px; font-size: clamp(43px, 12vw, 62px); }
  .hero-lead { font-size: 14px; }
  .hero-art { min-height: 330px; margin-top: 4px; }
  .hero-art::before { width: 290px; }
  .hero-art::after { width: 322px; }
  .hero-seal { width: 155px; height: 155px; font-size: 58px; }
  .hero-card { right: 0; bottom: 15px; width: 190px; padding: 15px; }
  .hero-card strong { font-size: 17px; }
  .hero-orbit { top: 18px; left: 10px; }
  .statement-inner { width: calc(100% - 32px); min-height: 88px; align-items: flex-start; justify-content: center; flex-direction: column; gap: 8px; }
  .statement-inner p { font-size: 17px; }
  .site-section, .practice-inner { width: calc(100% - 32px); padding: 70px 0; }
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .about-aside { margin-left: 2px; padding-top: 4px; }
  .practice-grid { grid-template-columns: 1fr; gap: 12px; margin-top: 30px; }
  .practice-card { min-height: 225px; padding: 24px; }
  .practice-card h3 { margin-top: 32px; }
  .method-grid { grid-template-columns: 1fr; gap: 24px; }
  .method-card { padding-top: 14px; }
  .method-card h3 { margin-top: 15px; }
  .contact-band { width: calc(100% - 32px); margin-bottom: 60px; padding: 30px 24px; align-items: flex-start; flex-direction: column; }
  .contact-band::after { right: -5%; top: 20%; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .footer-links { flex-wrap: wrap; }
  .login-page { padding: 12px; }
  .login-shell { min-height: 0; grid-template-columns: 1fr; border-radius: 18px; }
  .login-aside { min-height: 250px; padding: 26px; }
  .login-aside-copy h1 { margin: 16px 0 10px; font-size: 31px; }
  .login-aside-copy p { font-size: 11px; }
  .login-aside-foot { margin-top: 28px; }
  .login-main { padding: 32px 25px; }
  .login-main h2 { font-size: 26px; }
  .panel-body { padding: 14px; }
  .form-row { grid-template-columns: 1fr; }
  .modal-backdrop { padding: 12px; }
  .modal-card { padding: 21px; }
}
@media (max-width: 1040px) {
  .admin-shell { grid-template-columns: 78px minmax(0,1fr); }
  .admin-content { padding: 28px 24px 42px; }
  .admin-status-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 720px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; height: auto; padding: 12px 14px 10px; align-items: stretch; }
  .admin-sidebar-brand { padding: 0 4px 8px; border-bottom: 0; justify-content: space-between; }
  .admin-sidebar .brand { justify-content: flex-start; }
  .admin-sidebar .brand-copy { display: flex; }
  .admin-sidebar-caption { display: block; margin: 4px 0 0; }
  .admin-nav { margin-top: 10px; flex-direction: row; overflow-x: auto; gap: 6px; padding: 2px 2px 6px; scrollbar-width: thin; }
  .admin-nav-item { width: 40px; height: 40px; min-height: 40px; padding: 0; flex: 0 0 40px; }
  .admin-sidebar-foot { margin-top: 6px; padding: 8px 3px 0; flex-direction: row; justify-content: flex-end; gap: 8px; }
  .admin-sidebar-foot .admin-sidebar-status { margin-right: auto; }
  .admin-nav-item[data-tooltip]::after,
  .admin-sidebar-icon-btn[data-tooltip]::after,
  .admin-sidebar-status[data-tooltip]::after { display: none; }
  .admin-topbar { min-height: 58px; padding: 0 16px; }
  .admin-content { padding: 22px 15px 34px; }
  .admin-page-heading h1 { font-size: 28px; }
  .admin-overview-grid { grid-template-columns: 1fr; }
  .admin-integration-card { align-items: flex-start; flex-wrap: wrap; }
  .admin-integration-card > div { min-width: calc(100% - 55px); }
  .admin-integration-card > .btn { margin-left: 49px; }
  .admin-permission-table { min-width: 560px; }
  .admin-permission-footer { align-items: flex-start; flex-direction: column; }
  .admin-permission-footer > div { width: 100%; justify-content: flex-end; }
}
@media (max-width: 460px) {
  .admin-topbar-account { font-size: 0; }
  .admin-topbar-account .admin-avatar-small { font-size: 10px; }
  .admin-status-grid { grid-template-columns: 1fr; }
  .admin-status-card { min-height: 105px; }
  .admin-notice { padding: 11px 12px; }
  .admin-checklist { padding: 4px 12px 8px; }
  .admin-checklist > div { grid-template-columns: 22px minmax(0,1fr); padding: 8px 0; }
  .admin-checklist .admin-state-pill,.admin-checklist .admin-inline-link { grid-column: 2; justify-self: start; }
  .admin-role-list { padding: 0 12px; }
  .admin-role-list .admin-state-pill { margin-left: 39px; }
  .admin-account-meta { display: none; }
}

/* ==========================================================================
   Workspace Fluid Animation System (Internal Modules)
   ========================================================================== */
.admin-content {
  animation: adminContentEnter 0.38s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes adminContentEnter {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.995);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Staggered entrance cascade for cards and list rows */
.client-directory-card,
.process-card,
.case-entry,
.admin-status-card,
.admin-checklist > div,
.admin-panel,
.admin-account-row {
  animation: itemStaggerSlide 0.38s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.client-directory-card:nth-child(1), .process-card:nth-child(1), .case-entry:nth-child(1), .admin-status-card:nth-child(1), .admin-checklist > div:nth-child(1) { animation-delay: 0.03s; }
.client-directory-card:nth-child(2), .process-card:nth-child(2), .case-entry:nth-child(2), .admin-status-card:nth-child(2), .admin-checklist > div:nth-child(2) { animation-delay: 0.06s; }
.client-directory-card:nth-child(3), .process-card:nth-child(3), .case-entry:nth-child(3), .admin-status-card:nth-child(3), .admin-checklist > div:nth-child(3) { animation-delay: 0.09s; }
.client-directory-card:nth-child(4), .process-card:nth-child(4), .case-entry:nth-child(4), .admin-status-card:nth-child(4), .admin-checklist > div:nth-child(4) { animation-delay: 0.12s; }
.client-directory-card:nth-child(5), .process-card:nth-child(5), .case-entry:nth-child(5), .admin-status-card:nth-child(5), .admin-checklist > div:nth-child(5) { animation-delay: 0.15s; }
.client-directory-card:nth-child(n+6), .process-card:nth-child(n+6), .case-entry:nth-child(n+6) { animation-delay: 0.18s; }

@keyframes itemStaggerSlide {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Tactile Physics for Interactive Cards & Rows */
.admin-content .row,
.admin-content .process-card,
.admin-content .case-entry,
.admin-status-card,
.admin-panel {
  transition: transform .26s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow .26s cubic-bezier(0.16, 1, 0.3, 1),
              border-color .22s ease,
              background-color .22s ease;
}

.admin-content .client-directory-card:hover,
.admin-content .process-card:hover,
.admin-status-card:hover {
  transform: translateY(-2.5px);
  box-shadow: 0 10px 28px rgba(7, 19, 41, 0.07);
  border-color: rgba(183, 162, 118, 0.55);
  background: #fbfbfd;
}

/* Nav Item Spring Interaction */
.admin-nav-item {
  transition: color .2s ease,
              background .2s ease,
              border-color .2s ease,
              transform .24s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow .2s ease;
}

.admin-nav-item:hover {
  transform: translateY(-1.5px) scale(1.04);
}

.admin-nav-item:active {
  transform: scale(0.92);
}

.admin-nav-item.active {
  animation: navPop 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes navPop {
  0% { transform: scale(0.9); }
  60% { transform: scale(1.07); }
  100% { transform: scale(1); }
}

/* Toast & Alert slide */
.flash,
#toast-root > div {
  animation: toastSlideDown 0.38s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes toastSlideDown {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .world-transition-runway { height: 0 !important; }
  #app.scroll-reveal-enabled [data-reveal] { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
}
