:root {
  --navy: #002A5F;
  --navy-deep: #001B3D;
  --navy-deepest: #00142E;
  --navy-panel: #0B3A73;
  --blue: #007AFF;
  --blue-light: #7EC1FF;
  --blue-dim: rgba(0, 122, 255, 0.12);
  --blue-glow: rgba(0, 122, 255, 0.25);
  --white: #FFFFFF;
  --gray-bg: #F4F6F9;
  --gray-line: #E1E6ED;
  --gray-line-dark: #1E3A63;
  --text-body: #2B3646;
  --text-muted: #6B7684;
  --text-on-navy: #E8EDF5;
  --text-on-navy-muted: #90A3BE;
  --text-on-navy-faint: #5E7599;

  /* 글래스 표면 (카드류) */
  --glass-bg: linear-gradient(135deg, rgba(255,255,255,0.055) 0%, rgba(255,255,255,0.015) 100%);
  --glass-border: rgba(255, 255, 255, 0.10);
  --glass-border-hover: rgba(0, 122, 255, 0.4);

  /* radius 스케일 */
  --r-xs: 4px; --r-sm: 8px; --r: 14px; --r-lg: 22px; --r-xl: 32px;
  --radius: 10px;

  /* shadow 스케일 */
  --shadow-md: 0 8px 28px rgba(0, 0, 0, 0.24);
  --shadow-lg: 0 20px 56px rgba(0, 0, 0, 0.38);
  --shadow-glow: 0 0 36px rgba(0, 122, 255, 0.18);
  --shadow-card: 0 10px 32px rgba(0, 0, 0, 0.32), 0 1px 0 rgba(255, 255, 255, 0.06) inset;

  /* motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t: all 0.4s var(--ease);

  --font-display: 'Fraunces', serif;
  --font-display-sans: 'Manrope', sans-serif;
  --font-body: 'Inter', 'Noto Sans KR', sans-serif;
  --max-width: 1180px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--navy-deepest);
  color: var(--text-on-navy-muted);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.hidden { display: none !important; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ── reveal-on-scroll ── */
.reveal {
  opacity: 0; transform: translateY(24px) scale(0.98);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.in-view { opacity: 1; transform: translateY(0) scale(1); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── NAV ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%; height: 68px;
  background: transparent;
  transition: background 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
  border-bottom: 1px solid transparent;
}
.nav-scrolled {
  background: rgba(0, 27, 61, 0.75);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom-color: var(--gray-line-dark);
}
.nav-logo { height: 26px; }
.nav-links {
  display: flex; align-items: center; gap: 2.25rem; list-style: none;
}
.nav-links a {
  color: var(--text-on-navy);
  text-decoration: none;
  font-size: 0.9rem; font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--blue); }
.nav-cta {
  background: var(--blue); color: var(--white);
  border: none; padding: 0.55rem 1.3rem; border-radius: 6px;
  font-size: 0.85rem; font-weight: 600;
  text-decoration: none; transition: opacity 0.2s;
}
.nav-cta:hover { opacity: 0.85; }
.menu-btn {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.menu-btn span { width: 22px; height: 2px; background: var(--white); border-radius: 2px; }

/* ── HERO ── */
#hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 140px 5% 100px;
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
}
#heroCanvas {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  opacity: 0.9;
}
.hero-glow-blob {
  position: absolute; z-index: 0; border-radius: 50%;
  filter: blur(60px); pointer-events: none;
}
.hero-glow-1 {
  width: 520px; height: 520px; top: -10%; right: -8%;
  background: radial-gradient(circle, rgba(0, 122, 255, 0.22) 0%, transparent 70%);
}
.hero-glow-2 {
  width: 420px; height: 420px; bottom: -15%; left: -6%;
  background: radial-gradient(circle, rgba(0, 122, 255, 0.14) 0%, transparent 70%);
}
.hero-content { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; text-align: center; }
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.4vw, 4.2rem);
  font-weight: 600; line-height: 1.15; letter-spacing: -0.01em;
  color: var(--white); margin-bottom: 1.4rem;
}
.hero-title .accent {
  background: linear-gradient(120deg, #7EC1FF 0%, var(--blue) 55%, #7EC1FF 100%);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 6s ease-in-out infinite;
}
@keyframes shimmer {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-title .accent { animation: none; }
}

/* ── 커서 글로우 (데스크탑, hero-network.js가 동적으로 붙임) ── */
.cursor-glow {
  position: fixed; width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 122, 255, 0.10) 0%, transparent 65%);
  pointer-events: none; z-index: 9998;
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
}
.hero-sub {
  font-size: 1.1rem; color: var(--text-on-navy-muted);
  max-width: 560px; margin: 0 auto 2.5rem; line-height: 1.75;
}
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  background: var(--blue); color: var(--white);
  padding: 0.9rem 2.1rem; border-radius: var(--r-sm);
  font-weight: 700; font-size: 0.95rem;
  text-decoration: none; transition: var(--t); display: inline-block;
  box-shadow: 0 4px 20px rgba(0, 122, 255, 0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0, 122, 255, 0.42), var(--shadow-glow); }
.btn-outline {
  border: 1px solid var(--glass-border); color: var(--text-on-navy);
  background: var(--glass-bg); backdrop-filter: blur(10px);
  padding: 0.9rem 2.1rem; border-radius: var(--r-sm);
  font-weight: 500; font-size: 0.95rem;
  text-decoration: none; transition: var(--t); display: inline-block;
}
.btn-outline:hover { border-color: var(--glass-border-hover); color: var(--blue-light); transform: translateY(-2px); }

/* ── SECTION BASE ── */
section { padding: 96px 5%; }
.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--blue-light);
  padding: 0.4rem 1rem; border-radius: 100px;
  border: 1px solid rgba(0, 122, 255, 0.28);
  background: rgba(0, 122, 255, 0.06);
  backdrop-filter: blur(8px);
  margin-bottom: 1rem;
}
.section-label::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0;
  background: var(--blue); box-shadow: 0 0 8px var(--blue);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  font-weight: 600; letter-spacing: -0.01em;
  background: linear-gradient(135deg, #FFFFFF 0%, var(--blue-light) 65%, var(--blue) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 1rem;
}
.section-desc { color: var(--text-on-navy-muted); font-size: 1rem; line-height: 1.75; max-width: 560px; }
.section-head { max-width: 640px; margin: 0 auto 3rem; text-align: center; }
.section-head .section-desc { max-width: none; margin: 0 auto; }

/* ── 섹션 배경: 은은한 글로우 + 도트그리드 텍스처 (전 섹션 다크 테마 공통) ── */
#about, #services, #industries, #performance, #contact { position: relative; overflow: hidden; }
#about::before, #services::before, #industries::before, #performance::before, #contact::before {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  width: 620px; height: 620px; border-radius: 50%; filter: blur(80px);
  top: -18%; right: -12%;
}
#about::before, #industries::before { background: radial-gradient(circle, rgba(0, 122, 255, 0.09) 0%, transparent 70%); }
#services::before, #performance::before { background: radial-gradient(circle, rgba(0, 122, 255, 0.1) 0%, transparent 70%); top: auto; bottom: -18%; left: -12%; right: auto; }
#contact::before { background: radial-gradient(circle, rgba(0, 122, 255, 0.18) 0%, transparent 70%); }
#about::after, #services::after, #industries::after, #performance::after, #contact::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse 85% 75% at 50% 40%, black 25%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 40%, black 25%, transparent 100%);
}
#about > *, #services > *, #industries > *, #performance > *, #contact > * { position: relative; z-index: 1; }

/* ── ABOUT ── */
#about { background: var(--navy-deep); }
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 4rem; align-items: start; max-width: var(--max-width); margin: 0 auto; }
.about-copy .section-desc { max-width: none; font-size: 1.05rem; }
.about-copy p + p { margin-top: 1rem; }
.about-scope {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.75rem;
}
.scope-tag {
  font-size: 0.8rem; font-weight: 600; color: var(--text-on-navy);
  background: rgba(0, 122, 255, 0.1); border: 1px solid rgba(0, 122, 255, 0.22);
  padding: 0.35rem 0.8rem; border-radius: 20px;
}
.about-card {
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  border-radius: var(--r); padding: 2rem; backdrop-filter: blur(12px);
  position: relative; overflow: hidden; transition: var(--t);
}
.about-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(135deg, rgba(0, 122, 255, 0.05) 0%, transparent 60%);
  opacity: 0; transition: opacity 0.4s ease;
}
.about-card:hover { border-color: var(--glass-border-hover); box-shadow: var(--shadow-card); transform: translateX(6px); }
.about-card:hover::before { opacity: 1; }
.about-card h3 {
  font-family: var(--font-display-sans); font-size: 1.1rem; font-weight: 700;
  color: var(--white); margin-bottom: 0.9rem; position: relative; z-index: 1;
}
.about-card p { color: var(--text-on-navy-muted); font-size: 0.92rem; line-height: 1.7; position: relative; z-index: 1; }
.about-card + .about-card { margin-top: 1.25rem; }

/* ── SERVICES ── */
#services { background: var(--navy-deepest); }
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-top: 3rem; max-width: 860px; margin-left: auto; margin-right: auto; }
.service-card {
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  border-radius: var(--r); padding: 2rem; backdrop-filter: blur(12px);
  position: relative; overflow: hidden;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.service-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(135deg, rgba(0, 122, 255, 0.06) 0%, transparent 60%);
  opacity: 0; transition: opacity 0.4s ease;
}
.service-card:hover {
  border-color: var(--glass-border-hover); transform: translateY(-4px);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}
.service-card:hover::before { opacity: 1; }
.service-icon {
  width: 46px; height: 46px; background: rgba(0, 122, 255, 0.1); border: 1px solid rgba(0, 122, 255, 0.2);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem; font-size: 1.35rem; position: relative; z-index: 1;
  transition: var(--t);
}
.service-card:hover .service-icon { background: rgba(0, 122, 255, 0.2); box-shadow: 0 0 22px rgba(0, 122, 255, 0.28); }
.service-card h3 { font-family: var(--font-display-sans); font-size: 1.05rem; font-weight: 700; color: var(--white); margin-bottom: 0.6rem; position: relative; z-index: 1; }
.service-card p { font-size: 0.88rem; color: var(--text-on-navy-muted); line-height: 1.65; margin-bottom: 1rem; position: relative; z-index: 1; }
.service-deliverables { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; position: relative; z-index: 1; }
.service-deliverables li {
  font-size: 0.78rem; color: var(--text-on-navy); font-weight: 500;
  padding-left: 1rem; position: relative;
}
.service-deliverables li::before {
  content: ''; position: absolute; left: 0; top: 0.5em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--blue);
}

/* ── INDUSTRIES ── */
#industries { background: var(--navy-deep); }
.industries-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 3rem; }
.industry-card {
  background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: var(--r);
  padding: 1.75rem 1.4rem; text-align: center; backdrop-filter: blur(12px);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.industry-card:hover {
  border-color: var(--glass-border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}
.industry-icon { font-size: 1.9rem; margin-bottom: 0.75rem; }
.industry-card h4 { font-family: var(--font-display-sans); font-size: 0.9rem; font-weight: 700; color: var(--white); margin-bottom: 0.35rem; }
.industry-card p { font-size: 0.78rem; color: var(--text-on-navy-muted); }

/* ── PERFORMANCE ── */
#performance { background: var(--navy-deepest); }
.perf-controls { display: flex; gap: 1rem; flex-wrap: wrap; margin: 2.5rem 0 1.25rem; }
.perf-search, .perf-filter {
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--glass-border); border-radius: var(--r-sm);
  color: var(--text-on-navy); padding: 0.65rem 1rem; font-size: 0.9rem; outline: none;
  font-family: var(--font-body); backdrop-filter: blur(8px);
}
.perf-search { flex: 1; min-width: 220px; }
.perf-search::placeholder { color: var(--text-on-navy-faint); }
.perf-filter { cursor: pointer; }
.perf-search:focus, .perf-filter:focus { border-color: var(--blue); }
.perf-count { font-size: 0.85rem; color: var(--text-on-navy-muted); margin-bottom: 0.75rem; }
.perf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.perf-card {
  background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: var(--r);
  padding: 1.5rem; backdrop-filter: blur(12px);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.perf-card:hover {
  border-color: var(--glass-border-hover); transform: translateY(-3px);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}
.perf-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.8rem; }
.perf-year { font-weight: 700; color: var(--white); font-family: var(--font-display-sans); }
.perf-industry {
  font-size: 0.72rem; font-weight: 600; color: var(--blue-light);
  background: var(--blue-dim); padding: 0.2rem 0.6rem; border-radius: 12px;
}
.perf-card h3 { font-size: 1rem; color: var(--white); margin-bottom: 0.4rem; }
.perf-client { font-size: 0.85rem; color: var(--text-on-navy-muted); margin-bottom: 0.5rem; }
.perf-summary { font-size: 0.85rem; color: var(--text-on-navy-muted); line-height: 1.6; }
.perf-no-result { color: var(--text-on-navy-muted); padding: 2rem 0; grid-column: 1/-1; text-align: center; }
.perf-empty {
  text-align: center; padding: 3.5rem 2rem;
  border: 1px dashed var(--glass-border); border-radius: var(--r);
  color: var(--text-on-navy-muted); background: var(--glass-bg); backdrop-filter: blur(12px);
}
.perf-empty strong { display: block; color: var(--white); font-size: 1.05rem; margin-bottom: 0.5rem; }

/* ── CONTACT ── */
#contact { background: var(--navy-deep); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4.5rem; margin-top: 3rem; align-items: start; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.5rem; }
.contact-item-icon {
  width: 38px; height: 38px; background: var(--blue-dim); border-radius: 6px;
  display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0;
}
.contact-item-text strong {
  display: block; font-size: 0.78rem; color: var(--blue); font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 0.25rem;
}
.contact-item-text span, .contact-item-text a { font-size: 0.92rem; color: var(--text-on-navy); text-decoration: none; }
.contact-item-text a:hover { color: var(--blue); }
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-field { display: flex; flex-direction: column; gap: 0.4rem; }
.form-field label { font-size: 0.8rem; color: var(--text-on-navy-muted); font-weight: 500; }
.form-field input, .form-field select, .form-field textarea {
  background: var(--navy-deep); border: 1px solid var(--gray-line-dark);
  border-radius: 6px; color: var(--text-on-navy); padding: 0.7rem 1rem;
  font-size: 0.9rem; outline: none; font-family: var(--font-body);
  transition: border-color 0.2s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--blue); }
.form-field textarea { resize: vertical; min-height: 120px; }
.form-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-submit {
  background: var(--blue); color: var(--white); border: none; border-radius: var(--r-sm);
  padding: 0.9rem 2rem; font-size: 0.95rem; font-weight: 700;
  cursor: pointer; transition: var(--t); align-self: flex-start;
  box-shadow: 0 4px 20px rgba(0, 122, 255, 0.3);
}
.form-submit:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0, 122, 255, 0.42), var(--shadow-glow); }
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.contact-status { font-size: 0.85rem; min-height: 1.2em; }
.contact-status.success { color: #4ADE80; }
.contact-status.error { color: #FF6B6B; }
.contact-noscript { margin-top: 1rem; font-size: 0.85rem; color: var(--text-on-navy-muted); }
.contact-noscript a { color: var(--blue); }

/* ── FOOTER ── */
footer {
  background: var(--navy-deep); padding: 2.5rem 5%; border-top: 1px solid var(--gray-line-dark);
}
.footer-inner {
  max-width: var(--max-width); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 1.5rem;
}
.footer-logo { height: 20px; margin-bottom: 0.9rem; }
.footer-legal { font-size: 0.78rem; color: var(--text-on-navy-muted); line-height: 1.8; }
.footer-tagline {
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: 1rem; letter-spacing: -0.01em;
  background: linear-gradient(120deg, var(--blue-light) 0%, var(--blue) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ── MOBILE ── */
@media (max-width: 900px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .services-grid, .perf-grid { grid-template-columns: 1fr 1fr; }
  .industries-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .nav-links {
    display: none;
    position: fixed; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; margin: 0;
    background: rgba(0, 27, 61, 0.98); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--gray-line-dark);
    padding: 0.5rem 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    display: block; width: 100%;
    padding: 0.9rem 6%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
  .menu-btn { display: flex; z-index: 101; }
  .menu-btn.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-btn.active span:nth-child(2) { opacity: 0; }
  .menu-btn.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .services-grid, .perf-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  section { padding: 72px 6%; }
}

/* ══════════════════════ ADMIN ══════════════════════ */
.admin-body { background: var(--gray-bg); min-height: 100vh; }
.admin-header {
  background: var(--navy); padding: 1rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
}
.admin-header img { height: 22px; }
.admin-badge {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--blue); background: var(--blue-dim); padding: 0.25rem 0.6rem; border-radius: 3px;
}
.admin-header-right { display: flex; align-items: center; gap: 1rem; }
.admin-user-email { font-size: 0.82rem; color: var(--text-on-navy-muted); }
.admin-logout-btn {
  background: transparent; border: 1px solid var(--gray-line-dark); color: var(--text-on-navy);
  border-radius: 6px; padding: 0.4rem 0.9rem; font-size: 0.82rem; cursor: pointer;
}
.admin-main { max-width: 1000px; margin: 0 auto; padding: 2.5rem 1.5rem; }
.admin-main h1 { font-family: var(--font-display-sans); font-size: 1.5rem; color: var(--navy); margin-bottom: 0.4rem; }
.admin-sub { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 2rem; }

.login-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 2rem;
}
.login-card {
  background: var(--white); border: 1px solid var(--gray-line); border-radius: var(--radius);
  padding: 2.5rem; width: 100%; max-width: 360px;
}
.login-card img { height: 24px; margin-bottom: 1.5rem; }
.login-card h1 { font-size: 1.1rem; color: var(--navy); margin-bottom: 1.5rem; }
.login-card .form-field label { color: var(--text-muted); }
.login-card .form-field input {
  background: var(--gray-bg); border: 1px solid var(--gray-line); color: var(--text-body);
}
.login-card .form-submit { width: 100%; align-self: stretch; text-align: center; margin-top: 0.5rem; }
.login-error { color: #D93025; font-size: 0.82rem; min-height: 1.2em; }
.login-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 1.25rem 0; color: var(--text-muted); font-size: 0.82rem;
}
.login-divider::before,
.login-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--gray-line);
}

.google-login-btn {
  width: 100%; display: flex; align-items: center; justify-content: center;
  gap: 10px; padding: 0.65rem 1rem;
  background: var(--white); color: #3c4043;
  border: 1px solid var(--gray-line); border-radius: 6px;
  font-size: 0.875rem; font-weight: 600; cursor: pointer;
  transition: box-shadow 0.2s, transform 0.2s;
}
.google-login-btn img { width: 18px; height: 18px; }
.google-login-btn:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  transform: translateY(-1px);
}


.add-card, .config-card {
  background: var(--white); border: 1px solid var(--gray-line); border-radius: var(--radius);
  padding: 1.5rem; margin-bottom: 2rem;
}
.add-card h3 {
  font-size: 0.85rem; color: var(--blue); font-weight: 700; margin-bottom: 1rem;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.add-row { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: flex-end; }
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field label { font-size: 0.75rem; color: var(--text-muted); font-weight: 500; }
.field input, .field select, .field textarea {
  background: var(--gray-bg); border: 1px solid var(--gray-line); border-radius: 6px;
  color: var(--text-body); padding: 0.6rem 0.9rem; font-size: 0.875rem; outline: none;
  font-family: var(--font-body);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); }
.year-field { width: 100px; }
.title-field { flex: 2; min-width: 200px; }
.client-field, .industry-field { flex: 1; min-width: 160px; }
.summary-field { flex-basis: 100%; }
.add-btn, .cancel-btn {
  border: none; border-radius: 6px; padding: 0.65rem 1.5rem; font-size: 0.875rem; font-weight: 700;
  cursor: pointer; white-space: nowrap; align-self: flex-end;
}
.add-btn { background: var(--blue); color: var(--white); }
.add-btn:hover { opacity: 0.85; }
.cancel-btn { background: transparent; border: 1px solid var(--gray-line); color: var(--text-muted); }

.toast {
  position: fixed; bottom: 2rem; right: 2rem; background: #22C55E; color: #fff;
  padding: 0.75rem 1.25rem; border-radius: 6px; font-size: 0.875rem; font-weight: 600;
  opacity: 0; transition: opacity 0.3s; pointer-events: none;
}
.toast.show { opacity: 1; }
.toast.error { background: #EF4444; }

.table-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem; }
.table-header h3 { font-size: 0.85rem; color: var(--text-muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.table-count { font-size: 0.8rem; color: var(--blue); }
.search-input {
  width: 100%; background: var(--white); border: 1px solid var(--gray-line); border-radius: 6px;
  color: var(--text-body); padding: 0.6rem 0.9rem; font-size: 0.875rem; outline: none; margin-bottom: 1rem;
}
.search-input:focus { border-color: var(--blue); }
.table-wrap { border: 1px solid var(--gray-line); border-radius: var(--radius); overflow: hidden; background: var(--white); }
table { width: 100%; border-collapse: collapse; }
thead { background: var(--gray-bg); }
th {
  text-align: left; padding: 0.8rem 1rem; font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted);
  border-bottom: 1px solid var(--gray-line);
}
td { padding: 0.85rem 1rem; font-size: 0.875rem; border-bottom: 1px solid var(--gray-line); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--blue-dim); }
.year-badge {
  display: inline-block; background: var(--blue-dim); color: var(--blue);
  font-weight: 700; font-size: 0.75rem; padding: 0.18rem 0.55rem; border-radius: 3px;
}
.edit-btn, .del-btn {
  background: transparent; border: 1px solid var(--gray-line); color: var(--text-muted);
  border-radius: 4px; padding: 0.25rem 0.6rem; font-size: 0.75rem; cursor: pointer;
  transition: border-color 0.2s, color 0.2s; margin-right: 0.4rem;
}
.edit-btn:hover { border-color: var(--blue); color: var(--blue); }
.del-btn:hover { border-color: #EF4444; color: #EF4444; }
.empty-msg { text-align: center; padding: 3rem; color: var(--text-muted); font-size: 0.875rem; }
