  :root {
  --bidlab-blue: #2f5bd5;
  --bidlab-blue-dark: #1e3fa8;
  --bidlab-blue-hover: #3a68e3;
  --bidlab-navy: #13233f;
  --bidlab-sky: #4aa8e8;
  --bidlab-mint: #25a7a0;
  --bidlab-purple: #7b61e8;
  --bidlab-orange: #f59e0b;
  --bidlab-green: #22a06b;
  --bidlab-red: #e55353;
  --bidlab-bg: #f4f6f9;
  --bidlab-card: #ffffff;
  --bidlab-border: #e4e8ef;
  --bidlab-text: #20242c;
  --bidlab-muted: #737b88;
  --bidlab-radius: 16px;
  --navy: var(--bidlab-navy);
  --navy-deep: var(--bidlab-navy);
  --blue: var(--bidlab-blue);
  --blue-hover: var(--bidlab-blue-dark);
  --gold: var(--bidlab-orange);
  --gold-hover: #d4b56e;
  --text: var(--bidlab-text);
  --muted: var(--bidlab-muted);
  --line: var(--bidlab-border);
  --bg: var(--bidlab-bg);
  --white: var(--bidlab-card);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: Pretendard, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3 {
  word-break: keep-all;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 70px;
  background: #ffffff;
  border-bottom: 1px solid #eeeeee;
}

#about,
#services,
#solutions,
#process,
#consult,
#contact,
#contents {
  scroll-margin-top: 80px;
}

.header-inner {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  min-height: 70px;
}

.logo-area {
  display: flex;
  align-items: center;
  padding: 6px 0;
}

.logo-image {
  display: block;
  height: 48px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}

.main-nav,
.nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.main-nav a,
.nav a {
  color: var(--bidlab-text);
  font-size: 15px;
  font-weight: 600;
}

.main-nav a:hover,
.nav a:hover,
.nav a.is-current {
  color: var(--blue);
}

.nav-cta {
  padding: 8px 16px;
  background: var(--blue);
  color: var(--white) !important;
}

.nav-cta:hover {
  background: var(--blue-hover);
  color: var(--white) !important;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 6px 8px;
  background: var(--blue);
}

.hero {
  position: relative;
  min-height: 88vh;
  display: grid;
  place-items: center;
  background:
    linear-gradient(120deg, rgba(7, 21, 39, 0.82), rgba(11, 31, 58, 0.55)),
    url("https://images.unsplash.com/photo-1497366216548-37526070297c?auto=format&fit=crop&w=1800&q=80")
      center / cover no-repeat;
  color: var(--white);
}

.hero-content {
  padding: 90px 0 80px;
}

.eyebrow {
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.25;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero-lead {
  max-width: 620px;
  color: #d7deea;
  margin-bottom: 36px;
}

.hero-actions,
.about-grid,
.service-list,
.process-steps,
.consult-box,
.footer-inner {
  display: grid;
  gap: 20px;
}

.hero-actions {
  grid-auto-flow: column;
  justify-content: start;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
}

.btn-primary:hover {
  background: var(--gold-hover);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--white);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

.about,
.solutions {
  padding: 96px 0;
  background: var(--bg);
}

.process {
  padding: 96px 0;
  background: var(--white);
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.solution-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 24px;
}

.solution-card span {
  display: block;
  color: var(--blue);
  font-weight: 700;
  margin-bottom: 10px;
}

.solution-card h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.solution-card p {
  color: var(--muted);
  font-size: 14px;
}

.solution-card:hover {
  border-color: var(--blue);
}

.section-heading {
  max-width: 640px;
  margin-bottom: 48px;
}

.section-heading h2,
.consult-copy h2 {
  font-size: 32px;
  margin-bottom: 12px;
}

.section-heading p,
.consult-copy p {
  color: var(--muted);
}

.about-grid {
  grid-template-columns: repeat(3, 1fr);
}

.about-card,
.service-item,
.consult-box {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 28px;
}

.about-number {
  display: block;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 12px;
}

.about-card h3,
.service-item h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.about-card p,
.service-item p {
  color: var(--muted);
}

.services {
  padding: 96px 0;
  background: var(--navy);
  color: var(--white);
}

.section-heading.light p {
  color: #c5cedb;
}

.service-list {
  grid-template-columns: 1fr 1fr;
}

.service-item {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

.service-item p {
  color: #c9d3e0;
}

.process-steps {
  grid-template-columns: repeat(4, 1fr);
  list-style: none;
  counter-reset: step;
}

.process-steps li {
  background: var(--bg);
  border-top: 3px solid var(--gold);
  padding: 24px;
}

.process-steps li::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 10px;
}

.process-steps span {
  display: block;
  color: var(--muted);
  margin-top: 6px;
}

.consult {
  padding: 96px 0;
}

.consult-box {
  grid-template-columns: 0.9fr 1.1fr;
  align-items: start;
}

.consult-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.consult-form label {
  display: grid;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}

.consult-form .full,
.consult-form .form-note,
.consult-form button,
.form-status {
  grid-column: 1 / -1;
}

.consult-form input,
.consult-form select,
.consult-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  padding: 12px 14px;
  font: inherit;
  background: #fcfbf8;
}

.consult-form input:focus,
.consult-form select:focus,
.consult-form textarea:focus {
  outline: 2px solid rgba(196, 163, 90, 0.45);
  border-color: var(--gold);
}

.consult-form label.consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-weight: 500;
}

.consult-form label.consent input {
  width: auto;
  min-width: 18px;
  margin-top: 4px;
  padding: 0;
}

.form-status {
  min-height: 24px;
  color: #1f6b45;
  font-weight: 600;
}

.form-status.error {
  color: #9b2c2c;
}

.site-footer {
  background: var(--navy-deep);
  color: #c9d3e0;
  padding: 48px 0 24px;
}

.footer-inner {
  grid-template-columns: 1fr 1fr;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-name {
  color: var(--white);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

.copyright {
  padding-top: 18px;
  font-size: 13px;
}

.quick-menu {
  position: fixed;
  top: 50%;
  right: 18px;
  z-index: 25;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  width: 86px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #e5eaf3;
  box-shadow: 0 10px 28px rgba(11, 31, 58, 0.12);
}

.quick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 88px;
  padding: 10px 8px;
  color: var(--navy);
  border-bottom: 1px solid #eef2f7;
  text-align: center;
  transition: background 0.2s ease, color 0.2s ease;
}

.quick-item:last-child {
  border-bottom: 0;
}

.quick-icon {
  width: 22px;
  height: 22px;
  color: var(--blue);
}

.quick-icon svg {
  display: block;
  width: 22px;
  height: 22px;
}

.quick-label {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  word-break: keep-all;
}

.quick-item:hover {
  background: var(--navy);
  color: var(--white);
}

.quick-item:hover .quick-icon {
  color: var(--gold);
}

.quick-blog:hover {
  background: #03c75a;
}

.quick-blog:hover .quick-icon {
  color: #fff;
}

.quick-kakao:hover {
  background: #fee500;
  color: #191919;
}

.quick-kakao:hover .quick-icon {
  color: #191919;
}

.quick-youtube:hover {
  background: #e11d48;
}

.quick-youtube:hover .quick-icon {
  color: #fff;
}

@media (max-width: 1100px) {
  .about-grid,
  .solution-grid,
  .process-steps {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 1024px) {
  .header-inner {
    position: relative;
  }

  .menu-toggle {
    display: block;
  }

  .nav,
  .main-nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 8px 20px 20px;
    gap: 0;
    border-bottom: 1px solid #e5eaf3;
    z-index: 21;
  }

  .nav.open,
  .main-nav.open {
    display: flex;
  }

  .nav a,
  .main-nav a {
    padding: 14px 0;
    border-bottom: 1px solid #eef2f7;
  }

  .nav-cta {
    margin-top: 8px;
    align-self: flex-start;
  }

  .quick-menu {
    right: 10px;
    width: 74px;
  }

  .quick-item {
    min-height: 78px;
    padding: 8px 6px;
  }

  .quick-label {
    font-size: 10px;
  }
}

@media (max-width: 700px) {
  body {
    padding-bottom: 0;
  }
  .container {
    width: min(1120px, calc(100% - 28px));
  }

  .about,
  .process,
  .solutions,
  .services,
  .consult {
    padding: 64px 0;
  }

  .section-heading {
    margin-bottom: 28px;
  }

  .section-heading h2,
  .consult-copy h2 {
    font-size: 26px;
  }

  .hero-actions,
  .about-grid,
  .service-list,
  .process-steps,
  .consult-box,
  .consult-form,
  .footer-inner,
  .solution-grid {
    grid-template-columns: 1fr;
    grid-auto-flow: row;
  }

  .hero {
    min-height: 78vh;
  }

  .hero-content {
    padding: 56px 0 48px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .logo-image {
    height: 48px;
    max-width: 140px;
  }

  .quick-menu {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    transform: none;
    width: 100%;
    flex-direction: row;
    border: 0;
    border-top: 1px solid #e5eaf3;
    box-shadow: 0 -6px 20px rgba(11, 31, 58, 0.08);
    padding-bottom: env(safe-area-inset-bottom);
  }

  .quick-item {
    flex: 1;
    min-height: 64px;
    border-bottom: 0;
    border-right: 1px solid #eef2f7;
    padding: 8px 4px;
  }

  .quick-item:last-child {
    border-right: 0;
  }

  .quick-label {
    font-size: 10px;
  }
}

.se-hero {
  padding: 72px 0 48px;
  background: var(--bg);
}

.se-hero h1 {
  font-size: clamp(32px, 4vw, 46px);
  margin-bottom: 12px;
}

.se-hero p.lead {
  max-width: 640px;
  color: var(--muted);
  margin-bottom: 28px;
}

.se-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.se-page .btn-ghost-dark {
  border-color: var(--navy);
  color: var(--navy);
  background: var(--white);
}

.se-page .btn-line {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--navy);
  min-height: 40px;
  padding: 0 14px;
  font-size: 14px;
  cursor: pointer;
}

.se-subbar {
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.se-subbar .container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.se-brand-lockup {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.se-brand-lockup strong {
  font-size: 18px;
  letter-spacing: 0.04em;
}

.se-brand-lockup span {
  color: var(--muted);
  font-size: 13px;
}

.se-userchip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  font-size: 14px;
}

.se-userchip b {
  color: var(--blue);
}

.se-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  padding: 24px 0 64px;
  align-items: start;
}

.se-side {
  display: grid;
  gap: 6px;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 16px;
}

.se-side a {
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.se-side a.active,
.se-side a:hover {
  background: #e8effc;
  color: var(--blue);
}

.se-page .panel {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 20px;
  margin-bottom: 16px;
}

.se-login-wrap {
  display: grid;
  place-items: center;
  padding: 48px 0 80px;
  background: var(--bg);
}

.se-login-card {
  width: min(440px, 100%);
  background: var(--white);
  border: 1px solid var(--line);
  padding: 36px 32px;
}

.se-login-card h1 {
  font-size: 26px;
  margin-bottom: 8px;
}

.se-login-card .lead {
  color: var(--muted);
  margin-bottom: 22px;
  font-size: 14px;
}

.se-login-card label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
}

.se-login-card input,
.se-login-card select,
.se-page input,
.se-page select,
.se-page textarea {
  min-height: 44px;
  border: 1px solid var(--line);
  padding: 0 12px;
  font: inherit;
}

.se-page textarea {
  min-height: 96px;
  padding: 12px;
}

.se-page .empty {
  color: var(--muted);
}

.se-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 16px;
}

.se-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 16px;
}

.se-card em {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.se-card strong {
  font-size: 22px;
}

@media (max-width: 900px) {
  .se-layout,
  .se-cards {
    grid-template-columns: 1fr;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.btn-blue {
  background: var(--blue);
  color: #fff;
}

.btn-blue:hover {
  background: var(--blue-hover);
  color: #fff;
}

.portal-home {
  background: #ffffff;
  color: var(--bidlab-text);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.btn-blue {
  background: var(--bidlab-blue);
  color: #fff;
}

.btn-blue:hover {
  background: var(--bidlab-blue-dark);
  color: #fff;
}

.btn-ghost-dark {
  border: 1px solid var(--bidlab-border);
  background: #fff;
  color: var(--bidlab-text);
}

section.portal-search {
  display: block;
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 28px 0 8px;
  border: 0;
  border-radius: 0;
  background: #ffffff;
  overflow: visible;
}

.search-box {
  display: flex;
  align-items: center;
  width: min(740px, calc(100% - 32px));
  height: 58px;
  margin: 0 auto;
  border: 2px solid var(--bidlab-blue);
  border-radius: 29px;
  background: #fff;
  overflow: hidden;
}

.search-box input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  padding: 0 22px;
  font: inherit;
  font-size: 16px;
  outline: none;
  background: transparent;
}

.search-box button {
  height: 100%;
  padding: 0 26px;
  border: 0;
  background: var(--bidlab-blue);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.search-box button:hover {
  background: var(--bidlab-blue-dark);
}

.quick-services {
  width: min(1280px, calc(100% - 40px));
  margin: 22px auto 8px;
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: nowrap;
}

.quick-services a {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-width: 72px;
  font-size: 13px;
  font-weight: 700;
  color: #334155;
}

.portal-ico {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 15px;
}

.portal-ico.c1 { background: #2453d4; }
.portal-ico.c2 { background: #3b6ae8; }
.portal-ico.c3 { background: #0f766e; }
.portal-ico.c4 { background: #163b9f; }
.portal-ico.c5 { background: #475569; }
.portal-ico.c6 { background: #b45309; }
.portal-ico.c7 { background: #0369a1; }
.portal-ico.c8 { background: #0d1b3e; }
.portal-ico.c9 { background: #c4a35a; color: #0d1b3e; }

main.portal-main {
  background: var(--bidlab-bg);
  padding: 20px 0 48px;
}

.portal-container {
  max-width: 1280px;
  width: calc(100% - 40px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(300px, 0.9fr);
  gap: 24px;
  align-items: start;
}

.portal-left,
.portal-right {
  display: grid;
  gap: 24px;
}

.portal-card {
  background: var(--bidlab-card);
  border: 1px solid var(--bidlab-border);
  border-radius: var(--bidlab-radius);
  padding: 24px;
  box-shadow: none;
}

.brand-banner {
  height: 190px;
  border-radius: var(--bidlab-radius);
  overflow: hidden;
  display: grid;
  align-items: end;
  background:
    linear-gradient(100deg, rgba(13, 27, 62, 0.78), rgba(36, 83, 212, 0.38)),
    url("https://images.unsplash.com/photo-1497366216548-37526070297c?auto=format&fit=crop&w=1600&q=80")
      center / cover no-repeat;
  color: #fff;
}

.brand-banner-copy {
  padding: 24px 28px;
}

.brand-banner h1 {
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.35;
  margin-bottom: 8px;
}

.brand-banner p {
  font-size: 14px;
  color: #dbe7ff;
  margin-bottom: 14px;
}

.bid-board .portal-tabs {
  padding: 0 0 0;
  margin: -8px -8px 0;
}

.portal-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  overflow-x: auto;
  padding: 0;
  border-bottom: 1px solid #eef2f7;
}

.portal-tabs button {
  border: 0;
  background: transparent;
  min-height: 44px;
  padding: 0 14px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  white-space: nowrap;
}

.portal-tabs button.is-on {
  color: var(--bidlab-blue);
  box-shadow: inset 0 -2px 0 var(--bidlab-blue);
}

.portal-panel {
  padding: 16px 0 0;
}

.portal-notice-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.portal-notice-head h2 {
  font-size: 18px;
}

.portal-notice-head a,
.portal-links a,
.beginner-guide a {
  color: var(--bidlab-blue);
  font-size: 13px;
  font-weight: 700;
}

.table-wrap {
  overflow-x: auto;
}

.portal-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 14px;
}

.portal-table th,
.portal-table td {
  padding: 10px 8px;
  border-bottom: 1px solid #eef2f7;
  text-align: left;
  vertical-align: top;
}

.portal-table th {
  color: #64748b;
  font-weight: 700;
  font-size: 12px;
}

.portal-note,
.portal-empty {
  margin-top: 12px;
  color: var(--bidlab-muted);
  font-size: 13px;
}

.board-title {
  font-size: 18px;
  margin-bottom: 16px;
}

.content-grid,
.portal-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.content-card,
.portal-story {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--bidlab-border);
  border-radius: 12px;
  background: #fff;
}

.content-card span,
.portal-story span {
  color: var(--bidlab-blue);
  font-size: 12px;
  font-weight: 700;
}

.content-card strong,
.portal-story strong {
  font-size: 16px;
  line-height: 1.45;
}

.content-card p,
.portal-story p {
  color: var(--bidlab-muted);
  font-size: 13px;
}

.content-card time,
.portal-story time {
  color: #8a919c;
  font-size: 12px;
}

.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.service-grid h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.service-grid p {
  color: var(--bidlab-muted);
  font-size: 14px;
}

.portal-kicker {
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.14em;
  font-weight: 700;
  margin-bottom: 6px;
}

.bidlab-card h2 {
  font-size: 22px;
  margin-bottom: 8px;
}

.portal-quote {
  margin: 10px 0 16px;
  color: #334155;
  font-weight: 600;
}

.portal-side-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.portal-side-actions .btn,
.consultation-card .btn {
  min-height: 42px;
  width: 100%;
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
}

.consultation-card p,
.beginner-guide p {
  color: var(--bidlab-muted);
  margin-bottom: 14px;
}

.portal-links {
  list-style: none;
  display: grid;
  gap: 8px;
}

.portal-links a {
  display: block;
  padding: 10px 12px;
  border: 1px solid var(--bidlab-border);
  border-radius: 8px;
  color: var(--bidlab-text);
}

.footer-brand {
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-bottom: 16px;
}

.footer-nav a {
  color: #dbe4f0;
  font-size: 13px;
  font-weight: 600;
}

.footer-nav a:hover {
  color: #fff;
}

@media (max-width: 768px) {
  .portal-container {
    display: block;
    width: calc(100% - 32px);
  }

  .portal-right {
    margin-top: 24px;
  }

  section.portal-search .search-box,
  .search-box {
    width: calc(100% - 32px);
  }

  .quick-services {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: calc(100% - 32px);
    gap: 16px 8px;
  }

  .content-grid,
  .portal-cards,
  .service-grid,
  .portal-side-actions {
    grid-template-columns: 1fr;
  }
}

.portal-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #fff;
  border-bottom: 1px solid #e8edf3;
}

.portal-header-inner {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  min-height: 84px;
  position: relative;
}

.portal-search-legacy-unused {
  display: none;
}

.portal-search-legacy-unused input {
  flex: 1;
}

.portal-search-btn {
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  background: var(--blue);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.portal-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.portal-header-right .btn {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 8px;
}

.portal-nav {
  display: none;
}

.portal-icons-wrap {
  background: #fff;
  border-bottom: 1px solid #eef2f7;
}

.portal-icons {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 8px;
  padding: 18px 0 20px;
}

.portal-icons a {
  display: grid;
  justify-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #334155;
}

.portal-ico {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 15px;
}

.portal-ico.c1 { background: #1d4ed8; }
.portal-ico.c2 { background: #2563eb; }
.portal-ico.c3 { background: #0f766e; }
.portal-ico.c4 { background: #1e3a8a; }
.portal-ico.c5 { background: #475569; }
.portal-ico.c6 { background: #b45309; }
.portal-ico.c7 { background: #0369a1; }
.portal-ico.c8 { background: #c4a35a; color: #0b1f3a; }
.portal-ico.c9 { background: #0b1f3a; }

.portal-shell {
  width: min(1280px, calc(100% - 40px));
  margin: 20px auto 40px;
}

.portal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.7fr);
  gap: 20px;
  align-items: start;
}

.portal-banner {
  min-height: 220px;
  border-radius: 12px;
  overflow: hidden;
  display: grid;
  align-items: end;
  background:
    linear-gradient(100deg, rgba(11, 31, 58, 0.78), rgba(29, 78, 216, 0.35)),
    url("https://images.unsplash.com/photo-1497366216548-37526070297c?auto=format&fit=crop&w=1600&q=80")
      center / cover no-repeat;
  color: #fff;
  margin-bottom: 20px;
}

.portal-banner-copy {
  padding: 28px 32px;
}

.portal-banner-copy p {
  font-size: 13px;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  color: #dbe7ff;
}

.portal-banner-copy h1 {
  font-size: clamp(24px, 3vw, 34px);
  margin-bottom: 16px;
}

.portal-board,
.portal-card {
  background: #ffffff;
  border: 1px solid #e7e9ef;
  border-radius: 16px;
  box-shadow: none;
}

.portal-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  overflow-x: auto;
  padding: 0;
  border-bottom: 1px solid #eef2f7;
}

.portal-tabs button {
  border: 0;
  background: transparent;
  min-height: 42px;
  padding: 0 12px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
}

.portal-tabs button.is-on {
  color: var(--blue);
  box-shadow: inset 0 -2px 0 var(--blue);
}

.portal-panel {
  padding: 16px 0 0;
}

.portal-notice-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.portal-notice-head h2 {
  font-size: 18px;
}

.portal-notice-head a,
.portal-links a {
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
}

.portal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.portal-table th,
.portal-table td {
  padding: 10px 8px;
  border-bottom: 1px solid #eef2f7;
  text-align: left;
  vertical-align: top;
}

.portal-table th {
  color: #64748b;
  font-weight: 700;
  font-size: 12px;
}

.portal-note,
.portal-empty {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.portal-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.portal-story {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid #eef2f7;
  border-radius: 10px;
  background: #fafbfc;
}

.portal-story span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}

.portal-story strong {
  font-size: 15px;
  line-height: 1.45;
}

.portal-story p {
  color: var(--muted);
  font-size: 13px;
}

.portal-side {
  display: grid;
  gap: 16px;
}

.portal-card {
  padding: 24px;
}

.portal-kicker {
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.14em;
  font-weight: 700;
  margin-bottom: 6px;
}

.portal-card h2 {
  font-size: 22px;
  margin-bottom: 8px;
}

.portal-card h3 {
  font-size: 17px;
  margin-bottom: 10px;
}

.portal-quote {
  margin: 10px 0 16px;
  color: #334155;
  font-weight: 600;
}

.portal-side-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.portal-side-actions .btn,
.portal-help .btn {
  min-height: 42px;
  width: 100%;
  border-radius: 8px;
}

.portal-links {
  list-style: none;
  display: grid;
  gap: 8px;
}

.portal-links a {
  display: block;
  padding: 10px 12px;
  border: 1px solid #eef2f7;
  border-radius: 8px;
  color: #1c2430;
}

.portal-help p {
  color: var(--muted);
  margin-bottom: 14px;
}

@media (max-width: 1100px) {
  .portal-icons {
    grid-template-columns: repeat(5, 1fr);
  }

  .portal-grid,
  .portal-side-actions {
    grid-template-columns: 1fr;
  }

  .portal-header-inner {
    grid-template-columns: auto 1fr auto;
  }
}

@media (max-width: 1024px) {
  .portal-header .menu-toggle {
    display: block;
  }

  .portal-nav {
    display: none;
    position: absolute;
    top: 84px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 8px 20px 16px;
    border-bottom: 1px solid #e8edf3;
    z-index: 31;
  }

  .portal-nav.open {
    display: flex;
  }
}

@media (max-width: 700px) {
  .portal-header-inner,
  .portal-icons,
  .portal-shell {
    width: min(1280px, calc(100% - 24px));
  }

  .portal-header-inner {
    grid-template-columns: 1fr auto;
    padding: 10px 0 12px;
  }

  .portal-header .logo-area {
    grid-column: 1;
  }

  .portal-header-right {
    grid-column: 2;
  }

  .portal-search-legacy-unused {
    grid-column: 1 / -1;
  }

  .portal-header-right .btn-blue {
    display: none;
  }

  .portal-icons {
    grid-template-columns: repeat(3, 1fr);
    overflow: visible;
  }

  .portal-banner-copy {
    padding: 22px 18px;
  }
}
