:root { color-scheme: light; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #051B4C; background: #EDF4FD; --navy:#051B4C; --blue:#0045CA; --bright:#3072E2; --orange:#FD4F1A; --muted:#5b6a84; --line:#d9e2f0; --white:#fff; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: #EDF4FD; color: var(--navy); }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button, input, textarea, a { transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease, color 180ms ease; }
button:focus-visible, input:focus-visible, textarea:focus-visible, a:focus-visible { outline: 3px solid rgba(48,114,226,.42); outline-offset: 2px; }
.app-shell { min-height: 100vh; }
.auth-view { min-height:100vh; display:grid; place-items:center; padding:24px; }
.auth-card { width:min(460px,100%); background:#fff; border:1px solid var(--line); border-radius:18px; padding:30px; box-shadow:0 18px 50px rgba(5,27,76,.08); }
.auth-card h1 { font-size:32px; margin-top:16px; }
.google-button { width:100%; background:#fff; border:1px solid var(--line); color:var(--navy); margin:12px 0 10px; }
.auth-divider { display:flex; align-items:center; gap:10px; color:var(--muted); font-size:12px; margin:15px 0; }
.auth-divider::before, .auth-divider::after { content:""; height:1px; background:var(--line); flex:1; }
.signup-details { margin-top:22px; color:var(--muted); font-size:13px; }
.signup-details summary { cursor:pointer; padding:8px 0; }
.topbar { height: 68px; background: var(--white); border-bottom: 1px solid var(--line); display:flex; align-items:center; justify-content:space-between; padding:0 28px; }
.brand-mark { display:flex; gap:10px; align-items:center; font-weight:800; letter-spacing:-.02em; }
.brand-logo { width:44px; height:44px; object-fit:contain; flex-shrink:0; display:block; }
.session-meta { display:flex; align-items:center; gap:12px; color:var(--muted); font-size:13px; }
.badge { background:#e6efff; color:var(--blue); padding:6px 10px; border-radius:999px; font-weight:700; }
.layout { display:grid; grid-template-columns:220px minmax(0,1fr); min-height:calc(100vh - 68px); }
.sidebar { background:#fff; border-right:1px solid var(--line); padding:22px 14px; }
.nav-item { display:block; width:100%; border:0; background:transparent; text-align:left; color:var(--muted); padding:12px 14px; border-radius:10px; margin-bottom:4px; font-weight:700; }
.nav-item:hover, .nav-item.active { background:#EDF4FD; color:var(--blue); }
.content { padding:36px clamp(18px,4vw,54px) 60px; max-width:1500px; width:100%; margin:auto; }
.hero-row { display:flex; justify-content:space-between; gap:28px; align-items:flex-start; margin-bottom:28px; }
.eyebrow { color:var(--blue); text-transform:uppercase; letter-spacing:.12em; font-size:12px; font-weight:800; margin:0 0 10px; }
h1 { font-size:clamp(28px,4vw,48px); line-height:1.08; letter-spacing:-.04em; margin:0 0 12px; max-width:750px; }
h2 { margin:0; font-size:20px; letter-spacing:-.02em; }
.lead { max-width:700px; color:var(--muted); font-size:16px; line-height:1.6; margin:0; }
.grid-two { display:grid; grid-template-columns:minmax(260px,.8fr) minmax(360px,1.2fr); gap:20px; }
.panel { background:#fff; border:1px solid var(--line); border-radius:16px; padding:22px; box-shadow:0 8px 25px rgba(5,27,76,.04); }
.panel-heading { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:18px; }
.button { border:0; border-radius:9px; padding:10px 14px; font-weight:800; font-size:14px; }
.button.primary { color:#fff; background:var(--blue); }
.button.primary:hover { background:#0037a2; }
.button.secondary { background:#e9f0fd; color:var(--blue); }
.button.danger { background:#fff0eb; color:#b63412; }
.button:disabled { opacity:.55; cursor:not-allowed; }
.quota-card { min-width:220px; background:var(--navy); color:#fff; border-radius:14px; padding:18px; }
.quota-number { font-size:30px; font-weight:800; margin:4px 0; }
.quota-label { color:#b9c8e7; font-size:12px; }
.project-list, .radar-list { display:grid; gap:10px; }
.project-item { width:100%; text-align:left; background:#f8fbff; border:1px solid var(--line); border-radius:11px; padding:14px; color:var(--navy); }
.project-item:hover, .project-item.selected { border-color:var(--bright); background:#eef5ff; }
.project-name { font-weight:800; display:block; margin-bottom:4px; }
.project-meta, .muted { color:var(--muted); font-size:13px; line-height:1.5; }
.empty { padding:28px 10px; color:var(--muted); text-align:center; }
.notice { padding:12px 16px; background:#fff3e8; color:#8b3a17; border:1px solid #ffd3bd; border-radius:10px; margin-bottom:18px; }
.notice.success { background:#edf9f0; color:#1c6a39; border-color:#c9edd3; }
.form-grid { display:grid; gap:14px; }
label { display:grid; gap:7px; color:var(--muted); font-size:13px; font-weight:700; }
input, textarea { width:100%; border:1px solid var(--line); border-radius:9px; padding:11px 12px; color:var(--navy); background:#fff; }
textarea { resize:vertical; line-height:1.55; }
.editor { min-height:330px; }
.actions { display:flex; flex-wrap:wrap; gap:9px; justify-content:flex-end; margin-top:14px; }
.draft-output { white-space:pre-wrap; line-height:1.68; font-size:14px; background:#f8fbff; border:1px solid var(--line); border-radius:10px; padding:16px; max-height:520px; overflow:auto; }
.radar-item { border:1px solid var(--line); border-radius:12px; padding:16px; background:#fff; }
.radar-title { display:flex; justify-content:space-between; gap:12px; font-weight:800; }
.radar-summary { margin:9px 0; color:#334566; line-height:1.55; font-size:14px; }
.radar-tags { display:flex; flex-wrap:wrap; gap:7px; color:var(--muted); font-size:12px; }
.tag { background:#eef5ff; color:var(--blue); padding:4px 8px; border-radius:999px; }
.admin-panel { margin-top:20px; }
.account-panel { max-width:650px; }
.account-row { display:flex; justify-content:space-between; gap:20px; padding:10px 0; border-bottom:1px solid #eef2f7; }
.account-row:last-child { border-bottom:0; }
dialog { border:0; border-radius:16px; padding:0; width:min(470px, calc(100vw - 32px)); box-shadow:0 20px 70px rgba(5,27,76,.25); }
dialog::backdrop { background:rgba(5,27,76,.35); }
.dialog-card { padding:22px; }
.icon-button { border:0; background:transparent; color:var(--muted); font-size:26px; line-height:1; }
hr { border:0; border-top:1px solid var(--line); margin:22px 0; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; } }
@media (max-width: 760px) { .topbar { padding:0 16px; height:60px; } .session-meta #user-email { display:none; } .layout { display:block; min-height:calc(100vh - 60px); } .sidebar { display:flex; gap:6px; overflow:auto; padding:10px 12px; border-right:0; border-bottom:1px solid var(--line); } .nav-item { white-space:nowrap; width:auto; margin:0; } .content { padding:24px 14px 40px; } .hero-row { display:block; } .quota-card { margin-top:18px; min-width:0; } .grid-two { grid-template-columns:1fr; } h1 { font-size:32px; } .panel { padding:16px; } }
@media (max-width: 360px) { .content { padding-left:10px; padding-right:10px; } .button { padding:9px 10px; } }

/* Match the Fundingguyhk public site across sign-in and the AI workspace. */
:root { color-scheme:light; font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans TC","PingFang TC",sans-serif; color:var(--navy); --navy:#051b4c; --blue:#0045ca; --bright:#3072e2; --orange:#fd4f1a; --muted:#4d607d; --line:#d7e2f1; --white:#fff; }
body { color:var(--navy); }
.auth-view { background:linear-gradient(120deg,#edf4fd,#fff 80%); }
.auth-card { border-radius:16px; box-shadow:0 6px 24px rgba(5,27,76,.05); }
.brand-mark { gap:8px; color:var(--navy); font-size:18px; letter-spacing:-.02em; }
.brand-logo { width:48px; height:48px; }
.topbar { position:sticky; top:0; z-index:30; height:80px; padding-inline:max(20px,calc((100% - 1120px)/2)); }
.layout { min-height:calc(100vh - 80px); }
.panel { box-shadow:none; }
.button { min-height:48px; border-radius:10px; }
.button.primary:hover { background:#003697; }
input,textarea { border-radius:8px; }
h1 { line-height:1.35; letter-spacing:-.02em; }
@media (max-width:760px) { .topbar { height:72px; padding:0 18px; } .layout { min-height:calc(100vh - 72px); } .brand-mark { font-size:17px; gap:6px; } .brand-logo { width:44px; height:44px; } }
