/* A shared Background Paths identity; green for aflvault, copper for Cilicians. */
html { background:#f5f6f3; }
html[data-initial-theme="dark"] { background:#111412; }
body.paths-design {
  --bg:#f5f6f3; --surface:#fcfcf9; --surface2:#e9ede7;
  --text:#18241c; --muted:#606d63; --line:#d6ddd3;
  --sidebar:#f0f3ed; --sidebar-text:#18241c; --gold:#245640;
  --accent:#245640; --accent2:#193d2d; --path-color:#37634b;
  --title-end:#59675d; --panel:var(--surface); --ink:var(--text);
  background:var(--bg); color:var(--text);
}
body.paths-design[data-theme="dark"], :root[data-theme="dark"] body.paths-design {
  --bg:#111412; --surface:#181d19; --surface2:#222a23;
  --text:#f0f3ed; --muted:#a5b3a7; --line:#303b32;
  --sidebar:#151b16; --sidebar-text:#f0f3ed; --gold:#b8cbbb;
  --accent:#386b4a; --accent2:#467f5c; --path-color:#9ebaa4;
  --title-end:#b6c9b8;
}
body.paths-design.plain-frc {
  --bg:#f7f5f1; --surface:#fcfbf8; --surface2:#ebe7e1; --sidebar:#f3f0ea;
  --text:#262321; --sidebar-text:#262321; --muted:#71685e; --line:#dad5ce;
  --title-end:#74675b; --path-color:#a56f46; --green:#9c450d;
}
:root[data-theme="dark"] body.paths-design.plain-frc {
  --bg:#141311; --surface:#1c1a17; --surface2:#28231d; --sidebar:#191612;
  --text:#f2efe8; --sidebar-text:#f2efe8; --muted:#b8ad9e; --line:#3d352b;
  --title-end:#d0b89b; --green:#dbaa77; --path-color:#c4a17d;
}
body.paths-design[data-theme="contrast"] {
  --bg:#fff; --surface:#fff; --surface2:#fff; --text:#000;
  --muted:#222; --line:#000; --sidebar:#fff; --sidebar-text:#000;
  --accent:#004330; --accent2:#002d20; --title-end:#000;
}
.paths-host { position:relative; isolation:isolate; }
.paths-layer { position:absolute; inset:0; overflow:hidden; z-index:-1; pointer-events:none; color:var(--path-color); }
.paths-layer .paths-lines { position:absolute; inset:-10%; width:120%; height:120%; display:block; fill:none; stroke:currentColor; }
body.paths-design .paths-layer .paths-lines path { stroke-dasharray:none; stroke-dashoffset:0; opacity:.7; animation:none !important; }
body.paths-design.paths-ready .paths-layer .paths-lines {
  animation:paths-drift 16s ease-in-out -8s infinite alternate !important;
}
body.paths-design .paths-layer.paths-asleep .paths-lines,
body.paths-design.paths-tab-idle .paths-layer .paths-lines { animation-play-state:paused !important; }
@keyframes paths-drift {
  from { transform:translate3d(-4%,-3%,0); }
  to { transform:translate3d(4%,3%,0); }
}
body.paths-design .topin { min-height:80px; padding-top:16px; padding-bottom:16px; }
body.paths-design .top, body.paths-design .topbar { background:var(--bg); border-color:var(--line); }
body.paths-design #aflIntro { animation:none !important; }
body.paths-design #introWord { min-width:10ch; margin:0 0 24px; color:var(--accent); font-size:clamp(1.8rem,5vw,3rem); font-weight:650; line-height:1.2; }
body.paths-design #hero .frc-entry-link { margin:0 auto 16px; padding:10px 20px; }
body.paths-design #hero .landing-download { display:block; }
body.paths-design #frcAccessDialog { max-width:460px; padding:28px; }
body.paths-design #frcAccessDialog h2 { margin:0; font-size:1.6rem; }
body.paths-design #frcAccessDialog .hint { margin:18px 0; line-height:1.7; }
body.paths-design #frcAccessForm input { width:100%; }
body.paths-design #frcAccessError:empty { display:none; }
@media(max-width:640px) {
  body.paths-design .topin { flex-wrap:wrap; }
  body.paths-design .top-actions { flex-wrap:wrap; justify-content:flex-end; }
  body.paths-design #navFrcEntry { font-size:.75rem; padding:8px 10px; min-height:34px; }
}
body.paths-design input:not([type="checkbox"]):not([type="radio"]),
body.paths-design :is(select,textarea) { min-height:44px; border-color:var(--line); }
body.paths-design :is(#hero,#auth,#workspace,#teacherApp,#loginPanel,#publicSettingsDialog) :is(button,input,select,textarea,.card,.item,.panel,.task-card,.member-card,.gate-status,.search,.upload-drop,.project-flow-node,.project-mobile-task,.table-wrap,.classcard,.file-view-switch) { border-radius:8px !important; }
body.paths-design :is(#auth,#loginPanel,dialog) { border-radius:14px !important; }
body.paths-design :is(button,a,summary):focus-visible { outline:2px solid var(--text) !important; outline-offset:4px !important; }
/* Centered full-height welcome, then the real product's illustrative preview. */
body.paths-design.simple-entry.landing-open:not(.logged-in) main { max-width:none; padding:0 0 48px; }
body.paths-design #hero.vault-landing { display:flex; flex-direction:column; gap:48px; padding:0; margin:0; }
body.paths-design .paths-welcome { width:100%; min-height:calc(100dvh - 80px); display:grid; place-items:center; padding:70px 28px; overflow:hidden; }
body.paths-design #hero .hero-copy { width:min(940px,100%); text-align:center; padding:0; margin:0; background:transparent; border:0; overflow:visible; }
body.paths-design #hero .hero-copy .kicker { font-size:.72rem; letter-spacing:.16em; margin-bottom:26px; color:var(--muted) !important; }
body.paths-design #hero .hero-copy h1 { font-size:clamp(3.1rem,7.5vw,7rem); line-height:1.04; letter-spacing:-.065em; font-weight:720; max-width:none; margin:0 auto 28px; }
body.paths-design #hero .hero-copy h1 span { display:block; }
body.paths-design #landingTitle, body.paths-design #gate h1 {
  background-image:linear-gradient(100deg,var(--text) 24%,var(--title-end)) !important;
  background-clip:text; -webkit-background-clip:text; color:transparent;
}
body.paths-design #hero .hero-copy h1,
body.paths-design #gate h1 { opacity:1; transform:none; animation:none !important; }
body.paths-design #hero .hero-copy>p { max-width:54ch; margin:auto; font-size:1.03rem; line-height:1.8; color:var(--muted); }
body.paths-design #hero .hero-actions { justify-content:center; gap:12px; margin:32px 0 20px; }
body.paths-design #hero .hero-actions .btn,
body.paths-design #gate .gate-actions .button { min-height:52px; padding:14px 28px; border-radius:14px !important; font-size:1rem; font-weight:650; border:1px solid var(--line); }
body.paths-design #hero #heroRegister { background:var(--accent) !important; border-color:var(--accent) !important; color:#fff !important; }
body.paths-design #hero .hero-actions .secondary { background:var(--surface) !important; color:var(--text) !important; }
body.paths-design #hero .landing-school { justify-content:center; margin:34px auto 0; padding:0; border:0; max-width:none; text-align:left; }
body.paths-design #hero .landing-school img { width:42px; height:42px; }
body.paths-design #hero .landing-school strong { font-size:.82rem; }
body.paths-design #hero .landing-school span { font-size:.75rem; }
body.paths-design #hero .landing-preview { width:min(980px,calc(100% - 48px)); margin:0 auto; border-radius:12px !important; background:var(--surface); }
body.paths-design #hero .preview-window-body { min-height:360px; grid-template-columns:160px 1fr; }
body.paths-design #hero .preview-work { padding:28px; }
body.paths-design #hero .preview-menu { padding:25px 18px; font-size:.7rem; }
body.paths-design #hero .preview-menu>strong { font-size:1.2rem; }
body.paths-design #hero .preview-tiles span { font-size:.72rem; }
body.paths-design #hero .preview-tiles small { font-size:.62rem; }
body.paths-design #hero .preview-list { font-size:.72rem; }
body.paths-design #hero .landing-benefits, body.paths-design #hero .landing-bottom { width:min(980px,calc(100% - 48px)); margin:0 auto; }
/* Sign-in uses the same paths, behind the form rather than over its controls. */
body.paths-design #auth, body.paths-design #loginPanel { overflow:hidden; background:var(--surface); border:1px solid var(--line); }
body.paths-design #auth .paths-layer, body.paths-design #loginPanel .paths-layer { opacity:.28; }
body.paths-design.welcome-access.landing-open:not(.logged-in) #auth { max-width:500px; margin:64px auto 32px; padding:30px; }
body.paths-design #auth :is(h2,input,select,textarea,.turnstile,.msg,.entry-links,.btn),
body.paths-design #loginPanel :is(h1,input,.turnstile,.msg,.btn) { position:relative; }
body.paths-design #authTitle { font-size:1.75rem; letter-spacing:-.045em; margin:22px 0; }
/* Cilicians doorway and sign-in retain the team ID gate and existing account flow. */
body.paths-design #gate { min-height:100dvh; padding:28px 40px 24px; overflow:hidden; }
body.paths-design #gate .gate-brand { font-size:1rem; font-weight:650; }
body.paths-design #gate .gate-top { width:100%; display:flex; justify-content:space-between; align-items:center; gap:16px; }
body.paths-design #gate #gateThemeToggle { min-height:36px; padding:8px 14px; background:var(--surface); border:1px solid var(--line); color:var(--text); border-radius:8px !important; font-size:12px; }
body.paths-design #gate .gate-card { width:min(960px,100%); display:flex; flex-direction:column; align-items:center; text-align:center; padding:46px 12px; margin:auto; }
body.paths-design #gate .gate-team-logo { width:104px; height:104px; margin-bottom:24px; border:1px solid var(--line); border-radius:12px !important; }
body.paths-design.frc-doorway #gate .gate-card>h1,
body.paths-design.frc-doorway #gate .gate-card>.eyebrow,
body.paths-design.frc-doorway #gate .gate-copy { display:block; }
body.paths-design #gate .eyebrow { color:var(--muted); font-size:11px; letter-spacing:.17em; margin-bottom:18px; }
body.paths-design #gate h1 { font-size:clamp(3.3rem,7.5vw,6.5rem); line-height:1.04; letter-spacing:-.065em; margin:0 0 26px; font-weight:720; }
body.paths-design #gate .gate-copy { max-width:54ch; font-size:16px; margin:0 auto 26px; }
body.paths-design #gate #gateContent { width:min(600px,100%); }
body.paths-design #gate .gate-actions { justify-content:center; }
body.paths-design #gate .primary { background:#9c450d; color:#fff; border-color:#9c450d; }
body.paths-design #gate .gate-status { text-align:left; background:var(--surface); }
body.paths-design #gate .doorway-note { margin:18px 0 0; }
body.paths-design #gate .policy-links { justify-content:center; margin-top:28px; }
body.paths-design #gate .policy-links a { font-size:11px; color:var(--muted) !important; }
body.paths-design #gate .gate-foot { width:100%; max-width:600px; margin-top:30px; }
body.paths-design #gate .gate-caption { font-size:9px; color:var(--muted); }
/* Functional workspaces: quieter paths language, with clear reading surfaces. */
body.paths-design .workspace-sidebar, body.paths-design .sidebar { background:var(--sidebar); border-color:var(--line); }
body.paths-design #workspace .frc-brand .frc-team-logo { width:112px; height:112px; border-radius:10px !important; }
body.paths-design #workspace .sidebar nav button { padding:12px 14px; color:var(--muted); }
body.paths-design #workspace .sidebar nav button.active { background:var(--surface2); color:var(--ink); font-weight:650; }
body.paths-design.logged-in #app .nav .btn.active { background:var(--surface2) !important; }
body.paths-design #workspace .page-heading h1, body.paths-design.logged-in #app .sectionhead h2 { font-size:clamp(1.9rem,3vw,2.7rem); letter-spacing:-.045em; }
body.paths-design #workspace .page-heading { margin-bottom:26px; }
body.paths-design #workspace .topbar { height:78px; }
body.paths-design #workspace #main { padding-top:34px; }
body.paths-design #workspace .project-summary { padding:22px 0; }
body.paths-design #workspace .project-summary h2 { letter-spacing:-.035em; }
body.paths-design #workspace .project-controls { gap:10px; }
body.paths-design #workspace .project-flow-viewport { background:var(--surface); border-radius:10px; }
body.paths-design #workspace .project-flow-node { border-color:var(--line); }
body.paths-design #workspace .project-flow-node:hover { border-color:var(--green); }
body.paths-design #workspace .project-flow-links { stroke:var(--muted); color:var(--muted); }
body.paths-design #workspace .primary { background:#9c450d; color:#fff; border-color:#9c450d; }
body.paths-design #workspace .secondary { background:var(--surface); color:var(--ink); }
body.paths-design #workspace .stat-value { font-size:34px; }
body.paths-design #app .upload-drop { background:var(--surface) !important; border-style:solid; padding:30px 24px !important; }
body.paths-design #app .upload-drop h4 { font-size:1.15rem; letter-spacing:-.025em; }
body.paths-design #app .files-toolbar { margin-top:28px; }
body.paths-design #app .file-card, body.paths-design #app .folder-card { background:var(--surface); }
body.paths-design #app .file-filters { background:transparent; }
body.paths-design #app .workspace-search { border-radius:8px; }
body.paths-design #workspace .team-note { background:transparent; border:0; padding-left:10px; }
body.paths-design #workspace .team-note p { margin-left:0; }
body.paths-design #workspace .member-card { display:block; }
body.paths-design #workspace .member-card .member-top { margin-bottom:14px; }
body.paths-design #workspace .member-card .member-meta { margin-bottom:14px; }
body.paths-design #workspace .member-card select { margin-bottom:12px; }
body.paths-design #workspace .member-actions { margin-top:14px; }
body.paths-design #workspace .team-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
body.paths-design #workspace .page-footer { background:var(--bg); }
body.paths-design #loginPanel { padding:30px; }
body.paths-design #loginPanel h1 { font-size:2rem; letter-spacing:-.045em; }
body.paths-design #teacherApp .side { border-radius:10px; background:var(--sidebar); }
body.paths-design #teacherApp .classcard { border-radius:8px !important; }
body.paths-design dialog { background:var(--surface); border-color:var(--line); }
body.paths-design[data-theme="contrast"] .paths-layer { display:none; }
body.paths-design[data-theme="contrast"] #landingTitle { background:none !important; color:var(--text); }
@media(max-width:760px) {
  body.paths-design .paths-welcome { min-height:calc(100dvh - 76px); padding:60px 22px; }
  body.paths-design #hero .hero-copy h1 { font-size:clamp(2.7rem,10.8vw,4.5rem); }
  body.paths-design #hero .hero-copy>p { font-size:.93rem; }
  body.paths-design #hero .hero-actions .btn { min-height:46px; padding:12px 22px; font-size:.9rem; }
  body.paths-design #hero .landing-preview, body.paths-design #hero .landing-benefits, body.paths-design #hero .landing-bottom { width:calc(100% - 36px); }
  body.paths-design #hero .preview-window-body { grid-template-columns:90px 1fr; min-height:320px; }
  body.paths-design #hero .preview-menu { padding:20px 8px; font-size:.52rem; }
  body.paths-design #hero .preview-work { padding:16px 12px; }
  body.paths-design #hero .preview-tiles span, body.paths-design #hero .preview-list { font-size:.58rem; }
  body.paths-design.welcome-access.landing-open:not(.logged-in) #auth { max-width:calc(100% - 36px); padding:24px; }
  body.paths-design #gate { padding:22px 22px 18px; }
  body.paths-design #gate .gate-card { padding:36px 0; }
  body.paths-design #gate h1 { font-size:clamp(2.8rem,10.6vw,4.5rem); }
  body.paths-design #gate .gate-team-logo { width:88px; height:88px; }
  body.paths-design #gate .gate-copy { font-size:14px; }
  body.paths-design #gate .gate-actions .button { min-height:46px; padding:12px 20px; font-size:14px; }
  body.paths-design #gate .policy-links { gap:8px 12px; }
  body.paths-design #workspace .team-grid { grid-template-columns:1fr; }
  body.paths-design #workspace .topbar { height:auto; min-height:68px; }
  body.paths-design #workspace #main { padding:26px 18px; }
  body.paths-design #workspace .project-controls { align-items:stretch; }
}
@media(prefers-reduced-motion:reduce) {
  body.paths-design.paths-ready .paths-layer .paths-lines,
  body.paths-design.paths-ready #hero .hero-copy h1,
  body.paths-design.paths-ready #gate h1 { animation:none !important; }
}
