@charset "utf-8";

/* Portal header, member menu, and admin direct-message modal. */
.portal-header.header {
    background:var(--color-gray-02);
    border-bottom:1px solid #e5e5e5;
    font-family:var(--font-family-base, 'Pretendard Variable', 'Pretendard', sans-serif);
  }
  .portal-header > .portal-header__inner.inner {
    position:relative;
    width:1500px;
    max-width:calc(100% - 40px);
    margin:0 auto;
    padding:10px 20px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:24px;
  }
  .portal-header .portal-header__logo {
    margin:0;
    display:flex;
    flex:0 0 auto;
    width:auto;
  }
  .portal-header .portal-header__logo a {
    display:inline-block;
    line-height:0;
  }
  .portal-header .portal-header__logo img {
    display:block;
    height:48px;
    width:auto;
    max-width:none;
  }
  .portal-header .portal-nav {
    display:flex;
    align-items:center;
    gap:8px;
    list-style:none;
    margin:0 auto 0 28px;
    padding:0;
    width:auto;
    height:auto;
    flex:1 1 auto;
  }
  .portal-header .portal-nav__item {
    position:relative;
    float:none;
  }
  .portal-header .portal-nav__item::after {
    content:"";
    display:none;
    position:absolute;
    left:0;
    right:0;
    top:100%;
    height:24px;
  }
  .portal-header .portal-nav__item:hover::after {
    display:block;
  }
  .portal-header .portal-nav__link {
    position:relative;
    display:flex;
    flex-direction:column;
    justify-content:center;
    min-height:50px;
    padding:8px 12px 8px 18px;
    border:1px solid transparent;
    border-radius:8px;
    color:#0f172a;
    background:#fff;
    font-size:15px;
    font-weight:700;
    line-height:1.2;
    text-decoration:none;
    white-space:nowrap;
  }
  .portal-header button.portal-nav__link {
    font-family:inherit;
    cursor:pointer;
  }
  .portal-header .portal-nav__link--button {
    appearance:none;
  }
  .portal-header .portal-nav__link:before {
    content:"";
    position:absolute;
    left:0;
    top:10px;
    bottom:10px;
    width:3px;
    border-radius:999px;
    background:#2563eb;
  }
  .portal-header .portal-nav__status {
    color:#1d4ed8;
    font-size:16px;
    font-weight:700;
    line-height:1.15;
    letter-spacing:.02em;
  }
  .portal-header .portal-nav__text {
    margin-top:3px;
    text-align:center;
  }
  .portal-header .portal-nav__link--registered {
    border-color:transparent;
    background:#fff;
  }
  .portal-header .portal-nav__link--accent {
    color:#0f172a;
    border-color:transparent;
    background:#fff;
  }
  .portal-header .portal-nav__link--accent:before {
    background:#f59e0b;
  }
  .portal-header .portal-nav__link--accent .portal-nav__status {
    color:#b45309;
  }
  .portal-header .portal-nav__link--green {
    color:#0f172a;
    border-color:transparent;
    background:#fff;
  }
  .portal-header .portal-nav__link--green:before {
    background:#16a34a;
  }
  .portal-header .portal-nav__link--green .portal-nav__status {
    color:#15803d;
  }
  .portal-header .portal-nav__link--member-entry:before {
    opacity:0;
  }
  .portal-header .portal-nav__link--member-entry.portal-nav__link--green:before,
  .portal-header .portal-nav__link--member-entry.portal-nav__link--registered:before,
  .portal-header .portal-nav__link--member-entry.portal-nav__link--accent:before {
    background:var(--color-primary-06);
  }
  .portal-header .portal-nav__link--member-entry.portal-nav__link--active:before {
    opacity:1;
  }
  .portal-header .portal-nav__link--member-entry.portal-nav__link--active,
  .portal-header .portal-nav__link--member-entry.portal-nav__link--active .portal-nav__text {
    color:var(--color-primary-06);
  }
  .portal-header .portal-submenu {
    display:none;
    position:absolute;
    top:100%;
    left:0;
    min-width:220px;
    padding:10px 0 12px;
    border:1px solid #ddd;
    border-radius:14px;
    background:#fff;
    box-shadow:0 12px 28px rgba(0,0,0,.08);
    z-index:1000;
  }
  .portal-header .portal-nav__item:hover > .portal-submenu {
    display:block;
  }
  .portal-header .portal-submenu--accent {
    border-color:#fed7aa;
    box-shadow:0 12px 28px rgba(146,64,14,.10);
  }
  .portal-header .portal-submenu__scope {
    margin:0 16px 10px;
    padding:0 0 8px;
    border-bottom:1px solid #e2e8f0;
    color:#1d4ed8;
    font-size:12px;
    font-weight:700;
    line-height:1.2;
  }
  .portal-header .portal-submenu__scope--accent {
    border-bottom-color:#fed7aa;
    color:#b45309;
  }
  .portal-header .portal-submenu__title {
    margin:0 16px 8px;
    color:#1a67af;
    font-size:14px;
    font-weight:700;
  }
  .portal-header .portal-submenu__title--accent {
    color:#b45309;
  }
  .portal-header .portal-submenu__list {
    list-style:none;
    margin:0;
    padding:0;
  }
  .portal-header .portal-submenu__list + .portal-submenu__title {
    margin-top:10px;
  }
  .portal-header .portal-submenu__list a {
    display:block;
    padding:7px 16px;
    color:#555;
    font-size:14px;
    text-decoration:none;
    white-space:nowrap;
  }
  .portal-header .portal-nav__link,
  .portal-header .portal-submenu__list a {
    transition:none !important;
    transform:none !important;
  }
  .portal-header .portal-nav__link:hover,
  .portal-header .portal-nav__link:focus,
  .portal-header .portal-submenu__list a:hover,
  .portal-header .portal-submenu__list a:focus {
    background:transparent !important;
    box-shadow:none !important;
    text-decoration:none !important;
    transform:none !important;
  }
  .portal-header .portal-submenu__list a:hover,
  .portal-header .portal-submenu__list a:focus {
    color:#555 !important;
  }
  .portal-header .portal-util.util_menu {
    display:flex;
    align-items:center;
    gap:12px;
    margin:0;
    flex:0 0 auto;
  }
  .portal-header .portal-util__links {
    display:flex;
    align-items:center;
    gap:10px;
    list-style:none;
    margin:0;
    padding:0;
  }
  .portal-header .portal-util__links li {
    display:flex;
    align-items:center;
  }
  .portal-header .portal-util__links li + li {
    margin-left:0;
  }
  .portal-header .portal-util__links a {
    display:inline-flex;
    align-items:center;
    height:auto;
    color:#222;
    font-size:14px;
    text-decoration:none;
  }
  .portal-header .portal-util__links button {
    display:inline-flex;
    align-items:center;
    height:auto;
    border:0;
    color:#222;
    background:transparent;
    font-size:14px;
    font-family:inherit;
    text-decoration:none;
    cursor:pointer;
  }
  .portal-header .portal-user-name {
    color:#444;
    font-size:14px;
    font-weight:600;
  }
  .portal-header .portal-admin {
    position:relative;
    padding:10px 0;
    margin:-10px 0;
  }
  .portal-header .portal-admin__toggle {
    display:inline-flex;
    align-items:center;
    gap:8px;
    min-width:92px;
    padding:9px 14px;
    border:1px solid #d5dbe3;
    border-radius:12px;
    background:#fff;
    color:#1f2937;
    text-decoration:none;
    font-size:14px;
    font-weight:700;
    white-space:nowrap;
    line-height:1;
    cursor:default;
    user-select:none;
    box-shadow:0 1px 2px rgba(15,23,42,.04);
  }
  .portal-header .portal-admin__toggle:after {
    content:'';
    width:7px;
    height:7px;
    margin-top:-3px;
    border-right:1.5px solid #64748b;
    border-bottom:1.5px solid #64748b;
    transform:rotate(45deg);
  }
  .portal-header .portal-admin__badge {
    display:none;
    align-items:center;
    justify-content:center;
    min-width:20px;
    height:20px;
    padding:0 6px;
    border-radius:999px;
    color:#fff;
    background:#dc2626;
    font-size:12px;
    font-weight:700;
    line-height:1;
  }
  .portal-header .portal-admin__toggle.has-message .portal-admin__badge,
  .portal-header .portal-admin__item-label.has-message .portal-admin__badge {
    display:inline-flex;
  }
  .portal-header .portal-admin__item-label.has-message {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:8px;
  }
  .portal-header .portal-admin__menu {
    display:none;
    position:absolute;
    right:0;
    top:calc(100% + 4px);
    width:320px;
    max-width:calc(100vw - 24px);
    box-sizing:border-box;
    padding:10px;
    border:1px solid #d8dee6;
    border-radius:16px;
    background:#fff;
    box-shadow:0 18px 38px rgba(15,23,42,.14);
    z-index:1200;
  }
  .portal-header .portal-admin:hover .portal-admin__menu {
    display:block;
  }
  .portal-header .portal-admin:focus-within .portal-admin__menu {
    display:block;
  }
  .portal-header .portal-admin__menu:after {
    content:'';
    position:absolute;
    left:0;
    right:0;
    top:-14px;
    height:14px;
  }
  .portal-header .portal-admin__menu:before {
    content:'';
    position:absolute;
    right:24px;
    top:-7px;
    width:12px;
    height:12px;
    background:#fff;
    border-left:1px solid #d8dee6;
    border-top:1px solid #d8dee6;
    transform:rotate(45deg);
  }
  .portal-header .portal-admin__head {
    padding:10px 12px 12px;
    border-bottom:1px solid #edf2f7;
  }
  .portal-header .portal-admin__title {
    color:#0f172a;
    font-size:13px;
    font-weight:700;
    line-height:1.2;
  }
  .portal-header .portal-admin__caption {
    margin-top:4px;
    color:#64748b;
    font-size:12px;
    line-height:1.4;
  }
  .portal-header .portal-admin__body {
    display:flex;
    flex-direction:column;
    gap:4px;
    padding-top:8px;
  }
  .portal-header .portal-admin__item {
    display:block;
    padding:11px 12px;
    border:1px solid transparent;
    border-radius:12px;
    color:#1f2937;
    text-decoration:none;
    background:#fff;
  }
  .portal-header .portal-admin__item:hover,
  .portal-header .portal-admin__item:focus {
    border-color:#e2e8f0;
    background:#f8fafc;
    outline:0;
  }
  .portal-header .portal-admin__item--active {
    border-color:#bfdbfe;
    background:#eff6ff;
  }
  .portal-header .portal-admin__item--active .portal-admin__item-label {
    color:var(--color-primary-06);
  }
  .portal-header button.portal-admin__toggle,
  .portal-header button.portal-admin__item {
    font-family:inherit;
  }
  .portal-header button.portal-admin__item {
    width:100%;
    text-align:left;
    cursor:pointer;
  }
  .portal-header .portal-member .portal-admin__menu {
    width:min(390px, calc(100vw - 24px));
    max-height:calc(100vh - 140px);
    overflow-y:auto;
  }
  .portal-header .portal-admin__item-label {
    display:block;
    color:#0f172a;
    font-size:14px;
    font-weight:700;
    line-height:1.35;
    word-break:keep-all;
  }
  .portal-header .portal-admin__item-note {
    display:block;
    margin-top:3px;
    color:#64748b;
    font-size:12px;
    line-height:1.45;
    word-break:keep-all;
    overflow-wrap:anywhere;
  }
  .portal-header .portal-member-product-board {
    cursor:default;
  }
  .portal-header .portal-member-board-form {
    display:grid;
    gap:9px;
    margin-top:10px;
    padding-top:10px;
    border-top:1px solid #edf2f7;
  }
  .portal-header .portal-member-board-field {
    display:grid;
    gap:5px;
    min-width:0;
  }
  .portal-header .portal-member-board-label {
    color:#475569;
    font-size:12px;
    font-weight:700;
    line-height:1.25;
  }
  .portal-header .portal-member-board-select {
    width:100%;
    height:38px;
    padding:0 10px;
    border:1px solid #cbd5e1;
    border-radius:8px;
    background:#ffffff;
    color:#0f172a;
    font-size:13px;
    font-weight:700;
    line-height:1;
    box-sizing:border-box;
  }
  .portal-header .portal-member-board-select:focus {
    border-color:var(--color-primary-06);
    box-shadow:0 0 0 3px rgba(37, 99, 235, 0.12);
    outline:0;
  }
  .portal-header .portal-member-board-select[hidden] {
    display:none;
  }
  .portal-header .portal-member-board-actions {
    display:flex;
    justify-content:flex-end;
  }
  .portal-header .portal-member-board-submit {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:72px;
    height:34px;
    padding:0 14px;
    border:0;
    border-radius:8px;
    background:var(--color-primary-06);
    color:#ffffff;
    font-family:inherit;
    font-size:13px;
    font-weight:700;
    line-height:1;
    cursor:pointer;
  }
  .portal-admin-dm-overlay {
    position:fixed;
    inset:0;
    z-index:1500;
    display:none;
    align-items:center;
    justify-content:center;
    padding:32px;
    background:rgba(17, 17, 19, 0.42);
    backdrop-filter:blur(5px);
  }
  .portal-admin-dm-overlay.is-open {
    display:flex;
  }
  .portal-admin-dm-modal {
    width:min(920px, calc(100vw - 64px));
    max-height:calc(100vh - 64px);
    border:1px solid var(--color-gray-03);
    border-radius:10px;
    background:var(--color-gray-01);
    box-shadow:0 18px 44px rgba(17, 17, 19, 0.24);
    overflow:auto;
  }
  .portal-admin-dm-head {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:20px 20px 8px;
    border-bottom:0;
  }
  .portal-admin-dm-title {
    margin:0;
    color:var(--color-gray-08);
    font-size:24px;
    font-weight:700;
    line-height:1.2;
  }
  .portal-admin-dm-close {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:32px;
    height:32px;
    border:0;
    border-radius:8px;
    color:var(--color-gray-06);
    background:transparent;
    font-size:24px;
    font-weight:700;
    line-height:1;
    cursor:pointer;
  }
  .portal-admin-dm-close:hover,
  .portal-admin-dm-close:focus {
    color:var(--color-gray-08);
    background:var(--color-gray-02);
  }
  .portal-admin-dm-body {
    display:flex;
    flex-direction:column;
    gap:14px;
    padding:0 20px 20px;
  }
  .portal-admin-dm-field {
    display:flex;
    flex-direction:column;
    gap:7px;
  }
  .portal-admin-dm-field label {
    color:var(--color-gray-08);
    font-size:16px;
    font-weight:700;
  }
  .portal-admin-dm-field input,
  .portal-admin-dm-field textarea {
    width:100%;
    box-sizing:border-box;
    border:1px solid var(--color-gray-04);
    border-radius:9px;
    color:var(--color-gray-08);
    background:var(--color-gray-01);
    font-size:15px;
    font-weight:500;
    line-height:1.5;
  }
  .portal-admin-dm-field input {
    height:50px;
    padding:0 16px;
    line-height:50px;
  }
  .portal-admin-dm-field textarea {
    min-height:190px;
    padding:14px 16px;
    line-height:1.55;
    resize:vertical;
  }
  .portal-admin-dm-field input:focus,
  .portal-admin-dm-field textarea:focus {
    border-color:var(--color-primary-06);
    outline:0;
    box-shadow:0 0 0 3px rgba(23, 50, 139, 0.12);
  }
  .portal-admin-dm-note {
    margin:-5px 0 4px;
    color:var(--color-gray-05);
    font-size:14px;
    font-weight:500;
    line-height:1.45;
  }
  .portal-admin-dm-alert {
    margin:0 0 4px;
    padding:12px 14px;
    border:1px solid transparent;
    border-radius:8px;
    font-size:14px;
    font-weight:700;
    line-height:1.45;
  }
  .portal-admin-dm-alert--success {
    border-color:var(--color-secondary-02);
    color:var(--color-secondary-07);
    background:var(--color-secondary-01);
  }
  .portal-admin-dm-alert--error {
    border-color:var(--color-destructive-02);
    color:var(--color-destructive-06);
    background:var(--color-destructive-01);
  }
  .portal-admin-dm-actions {
    display:grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:16px;
    margin-top:2px;
  }
  .portal-admin-dm-actions button {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:100%;
    height:54px;
    padding:0 18px;
    border-radius:8px;
    font-size:16px;
    font-weight:700;
    cursor:pointer;
  }
  .portal-admin-dm-actions .portal-admin-dm-cancel {
    border:1px solid var(--color-primary-06);
    color:var(--color-primary-06);
    background:var(--color-primary-01);
  }
  .portal-admin-dm-actions .portal-admin-dm-submit {
    border:1px solid var(--color-primary-06);
    color:var(--color-gray-01);
    background:var(--color-primary-06);
    box-shadow:0 4px 10px rgba(17, 17, 19, 0.12);
  }
  @media (max-width: 640px) {
    .portal-admin-dm-overlay {
      padding:14px;
    }
    .portal-admin-dm-modal {
      width:100%;
      max-height:calc(100vh - 28px);
    }
    .portal-admin-dm-head {
      padding:18px 16px 8px;
    }
    .portal-admin-dm-title {
      font-size:21px;
    }
    .portal-admin-dm-body {
      padding:0 16px 18px;
    }
    .portal-admin-dm-actions {
      grid-template-columns:1fr;
      gap:10px;
    }
  }

  @keyframes chatbot-balloon-float {
    0%, 100% {
      transform: translateX(-50%) translateY(0);
      opacity: 0.95;
    }
    50% {
      transform: translateX(-50%) translateY(-6px);
      opacity: 1;
    }
  }

  @keyframes chatbot-balloon-tail {
    0%, 100% {
      transform: translateX(0) scaleY(1);
    }
    50% {
      transform: translateX(-1px) scaleY(0.9);
    }
  }

  #CM_chatbot img[src*="chatbot.png"] + div {
    animation: chatbot-balloon-float 2.2s ease-in-out infinite;
    transform-origin: 50% 100%;
    will-change: transform, opacity;
    top: auto !important;
    bottom: 92px !important;
    width: min(190px, calc(100vw - 32px)) !important;
    min-height: 42px;
    padding: 11px 14px 12px !important;
    border: 1px solid rgba(62, 99, 221, 0.18) !important;
    border-radius: 18px !important;
    color: #172554;
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(238, 246, 255, 0.98)) !important;
    box-shadow: none !important;
    font-size: 13px !important;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.5 !important;
    backdrop-filter: blur(10px);
  }

  #CM_chatbot .chatbot-launcher {
    transition: transform 0.2s ease;
    transform-origin: 50% 100%;
  }

  #CM_chatbot .chatbot-launcher:hover {
    transform: translateY(-2px) scale(1.02);
  }

  #CM_chatbot .chatbot-launcher:hover img[src*="chatbot.png"] + div {
    animation-play-state: paused;
    box-shadow: none !important;
  }

  #CM_chatbot img[src*="chatbot.png"] + div > div {
    animation: chatbot-balloon-tail 2.2s ease-in-out infinite;
    border-width: 9px !important;
    border-color: rgba(238, 246, 255, 0.98) transparent transparent transparent !important;
    filter: none !important;
    margin-left: -9px !important;
  }

  #CM_chatbot img[src*="chatbot.png"] {
    transition: filter 0.2s ease;
    filter: drop-shadow(0 10px 18px rgba(15, 23, 42, 0.18));
  }

  #CM_chatbot .chatbot-launcher:hover img[src*="chatbot.png"] {
    filter: drop-shadow(0 14px 22px rgba(15, 23, 42, 0.24));
  }

  @media (max-width: 576px) {
    #CM_chatbot img[src*="chatbot.png"] + div {
      top: auto !important;
      bottom: 88px !important;
      width: min(170px, calc(100vw - 28px)) !important;
      padding: 10px 12px 11px !important;
      font-size: 12px !important;
    }
  }

  .portal-header.header {
    border-bottom:0;
    background:var(--color-gray-02);
  }
  .portal-header > .portal-header__inner.inner {
    width:1500px;
    max-width:calc(100% - 80px);
    min-height:118px;
    padding:26px 0 34px;
    gap:28px;
  }
  .portal-header .portal-header__logo img {
    height:52px;
  }
  .portal-header .portal-nav {
    flex:1 1 auto;
    gap:54px;
    margin:0 auto 0 42px;
  }
  .portal-header .portal-nav__link {
    display:inline-flex;
    flex-direction:row;
    align-items:center;
    gap:6px;
    min-height:auto;
    padding:0;
    border:0;
    border-radius:0;
    color:#111111;
    background:transparent;
    font-size:18px;
    font-weight:700;
    line-height:1;
  }
  .portal-header .portal-nav__link:before {
    content:none;
  }
  .portal-header .portal-nav__status,
  .portal-header .portal-nav__text,
  .portal-header .portal-nav__link--accent .portal-nav__status,
  .portal-header .portal-nav__link--green .portal-nav__status {
    margin:0;
    color:#111111;
    font-size:18px;
    font-weight:700;
    line-height:1;
    letter-spacing:0;
  }
  .portal-header .portal-submenu {
    top:calc(100% + 10px);
  }
  .portal-header .portal-util.util_menu {
    gap:12px;
  }
  .portal-header .portal-util__links a {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:78px;
    height:48px;
    padding:0 18px;
    border-radius:10px;
    color:#ffffff;
    background:var(--color-primary-06);
    box-shadow:0 6px 14px rgba(15, 23, 42, 0.12);
    font-size:16px;
    font-weight:700;
    line-height:1;
  }
  .portal-header .portal-util__links button.portal-admin-dm-open {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:96px;
    height:43px;
    padding:0 16px;
    border:0;
    border-radius:10px;
    color:#ffffff;
    background:var(--color-primary-06);
    box-shadow:0 6px 14px rgba(15, 23, 42, 0.12);
    font-size:14px;
    font-weight:700;
    line-height:1;
  }
  .portal-header .portal-user-name {
    color:#111111;
    font-size:18px;
    font-weight:700;
  }
  @media (max-width: 1080px) {
    .portal-header > .portal-header__inner.inner {
      max-width:calc(100% - 28px);
      min-height:auto;
      padding:18px 0;
      flex-wrap:wrap;
    }
    .portal-header .portal-nav {
      order:3;
      flex-basis:100%;
      justify-content:flex-start;
      gap:24px;
      margin:6px 0 0;
      overflow-x:auto;
    }
    .portal-header .portal-nav__link,
    .portal-header .portal-nav__status,
    .portal-header .portal-nav__text {
      font-size:16px;
    }
  }

  .portal-header .portal-header__brand {
    display:inline-flex;
    align-items:center;
    color:var(--color-primary-06);
    line-height:1;
  }
  .portal-header .portal-header__brand-logo {
    display:block;
    width:276px;
    height:auto;
    max-width:none;
  }
  .portal-header .portal-header__brand-mark {
    display:block;
    width:61px;
    height:61px;
    object-fit:contain;
  }
  .portal-header .portal-header__brand-text {
    color:var(--color-primary-06);
    font-size:48px;
    font-weight:700;
    letter-spacing:0;
    white-space:nowrap;
  }

  /* 100% browser density tuned to match the former 90% zoom impression */
  .portal-header > .portal-header__inner.inner {
    width:1350px;
    max-width:calc(100% - 72px);
    min-height:106px;
    padding:27px 0;
    gap:25px;
  }
  .portal-header .portal-header__logo img {
    height:47px;
  }
  .portal-header .portal-nav {
    gap:49px;
    margin-left:38px;
  }
  .portal-header .portal-nav__link,
  .portal-header .portal-nav__status,
  .portal-header .portal-nav__text,
  .portal-header .portal-nav__link--accent .portal-nav__status,
  .portal-header .portal-nav__link--green .portal-nav__status {
    font-size:19px;
    line-height:1;
  }
  .portal-header .portal-nav__link {
    transform:translateY(2px);
  }
  .portal-header .portal-util__links a {
    min-width:70px;
    height:43px;
    padding:0 16px;
    font-size:14px;
  }
  .portal-header .portal-member .portal-admin__toggle {
    justify-content:center;
    min-width:106px;
    height:43px;
    padding:0 16px;
    border-color:var(--color-primary-06);
    border-radius:10px;
    color:var(--color-primary-06);
    background:#ffffff;
    box-shadow:0 6px 14px rgba(15, 23, 42, 0.12);
    font-size:14px;
    font-weight:700;
    cursor:pointer;
  }
  .portal-header .portal-member .portal-admin__toggle:after {
    display:none;
  }
  .portal-header .portal-user-name {
    display:inline-flex;
    align-items:center;
    gap:9px;
    font-size:16px;
  }
  .portal-header .portal-user-name:after {
    content:"";
    display:inline-block;
    width:30px;
    height:30px;
    flex:0 0 auto;
    background:url("../../images/ico_member_profile.png") center / contain no-repeat;
  }
  .portal-header .portal-header__brand-logo {
    width:248px;
  }
  .portal-header .portal-header__brand-mark {
    width:55px;
    height:55px;
  }
  .portal-header .portal-header__brand-text {
    font-size:43px;
  }

  .portal-header .portal-nav__link,
  .portal-header .portal-nav__status,
  .portal-header .portal-nav__text,
  .portal-header .portal-nav__link--accent .portal-nav__status,
  .portal-header .portal-nav__link--green .portal-nav__status {
    font-size:18px !important;
    line-height:1 !important;
  }

  .portal-header .portal-nav__link--active,
  .portal-header .portal-nav__link--active .portal-nav__status,
  .portal-header .portal-nav__link--active .portal-nav__text {
    color:var(--color-primary-06) !important;
  }

  /* Product menu only */
  .portal-header .portal-submenu--mega {
    display:none;
    top:100%;
    left:0;
    width:456px;
    min-width:456px;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:0;
    padding:0;
    border:1px solid #e5e7eb;
    border-radius:0 0 8px 8px;
    background:#ffffff;
    box-shadow:0 16px 26px rgba(0, 0, 0, 0.2);
    overflow:hidden;
  }
  .portal-header .portal-nav__item--products:hover > .portal-submenu--mega,
  .portal-header .portal-nav__item--products:focus-within > .portal-submenu--mega {
    display:grid;
  }
  .portal-header .portal-submenu--mega .portal-submenu__column {
    min-width:0;
    padding:15px 28px 14px;
  }
  .portal-header .portal-submenu--mega .portal-submenu__column + .portal-submenu__column {
    border-left:1px solid #eef0f4;
  }
  .portal-header .portal-submenu--mega .portal-submenu__scope {
    margin:0 0 12px;
    padding:0;
    border-bottom:0;
    color:var(--color-primary-06);
    font-size:16px;
    font-weight:700;
    line-height:1.35;
  }
  .portal-header .portal-submenu--mega .portal-submenu__scope--accent {
    color:var(--color-tertiary-06);
  }
  .portal-header .portal-submenu--mega .portal-submenu__group + .portal-submenu__group {
    margin-top:10px;
  }
  .portal-header .portal-submenu--mega .portal-submenu__title,
  .portal-header .portal-submenu--mega .portal-submenu__title--accent {
    margin:0 0 4px;
    color:var(--color-primary-06);
    font-size:16px;
    font-weight:700;
    line-height:1.35;
  }
  .portal-header .portal-submenu--mega .portal-submenu__title--accent {
    color:var(--color-tertiary-06);
  }
  .portal-header .portal-submenu--mega .portal-submenu__list a {
    padding:0;
    color:#222222;
    font-size:15px;
    font-weight:500;
    line-height:1.8;
  }
  .portal-header .portal-submenu--mega .portal-submenu__list a:hover,
  .portal-header .portal-submenu--mega .portal-submenu__list a:focus {
    color:var(--color-primary-06) !important;
  }
  .portal-header .portal-submenu--mega .portal-submenu__column--general .portal-submenu__list a:hover,
  .portal-header .portal-submenu--mega .portal-submenu__column--general .portal-submenu__list a:focus {
    color:var(--color-tertiary-06) !important;
  }

  @media (max-width: 1080px) {
    .portal-header .portal-submenu--mega {
      left:0;
      width:min(456px, calc(100vw - 28px));
      min-width:0;
    }
  }

  @media (max-width: 560px) {
    .portal-header .portal-submenu--mega {
      grid-template-columns:1fr;
    }
    .portal-header .portal-submenu--mega .portal-submenu__column + .portal-submenu__column {
      border-left:0;
      border-top:1px solid #eef0f4;
    }
  }

/* Chatbot non-member product details. */
#CM_chatbot details.chatbot-nonmember-products {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid #c8dcf5;
  border-radius: 8px;
  background: #f6f9fd;
}
#CM_chatbot details.chatbot-nonmember-products summary {
  cursor: pointer;
  color: #1d5f9f;
  font-weight: 700;
  list-style-position: inside;
}
#CM_chatbot details.chatbot-nonmember-products[open] summary {
  margin-bottom: 8px;
}

@media (max-width: 720px) {
  .portal-header > .portal-header__inner.inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    width: 100%;
    max-width: none;
    padding: 20px 16px 16px;
    gap: 14px 12px;
  }

  .portal-header .portal-header__logo {min-width: 0;}

  .portal-header .portal-header__logo {
    grid-column: 1;
    grid-row: 1;
  }

  .portal-header .portal-header__logo img,
  .portal-header .portal-header__brand-logo {
    width: min(160px, 42vw);
    height: auto;
    max-width: 100%;
  }

  .portal-header .portal-util.util_menu {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    gap: 6px;
  }

  .portal-header .portal-util__links {gap: 6px;}

  .portal-header .portal-util__links a,
  .portal-header .portal-util__links button.portal-admin-dm-open {
    min-width: 0;
    height: 40px;
    padding: 0 12px;
    border-radius: 9px;
    font-size: 13px;
  }

  .portal-header .portal-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    order: initial;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    margin: 0;
    gap: 4px 8px;
    overflow: visible;
  }

  .portal-header .portal-nav__item {min-width: 0;}

  .portal-header .portal-nav__link,
  .portal-header .portal-nav__status,
  .portal-header .portal-nav__text {
    font-size: 14px !important;
    line-height: 1.35 !important;
    white-space: normal;
  }

  .portal-header .portal-nav__link {
    width: 100%;
    flex-direction: column;
    gap: 0;
    justify-content: center;
    min-height: 42px;
    padding: 7px 4px;
    text-align: center;
  }

  .portal-header .portal-submenu,
  .portal-header .portal-nav__item:hover > .portal-submenu,
  .portal-header .portal-nav__item:focus-within > .portal-submenu {
    display: none !important;
  }

  #CM_chatbot {display: none !important;}
}

/* Member utility menu */
.portal-header .portal-member__toggle {
  gap: 9px;
  cursor: pointer;
}

.portal-header .portal-member__toggle::before {
  content: "";
  width: 14px;
  height: 10px;
  flex: 0 0 auto;
  background: linear-gradient(
    to bottom,
    currentColor 0 2px,
    transparent 2px 4px,
    currentColor 4px 6px,
    transparent 6px 8px,
    currentColor 8px 10px
  );
}

.portal-header .portal-member .portal-member__toggle::after {
  display: block;
  width: 7px;
  height: 7px;
  margin: -3px 0 0 2px;
  border-color: currentColor;
  transition: transform 0.18s ease;
}

.portal-header .portal-member.is-open .portal-member__toggle::after,
.portal-header .portal-member:focus-within .portal-member__toggle::after {
  margin-top: 3px;
  transform: rotate(225deg);
}

.portal-header .portal-member.is-open .portal-member__menu {
  display: block;
}

.portal-header .portal-member .portal-member__menu {
  width: min(430px, calc(100vw - 32px));
  max-height: none;
  overflow: visible;
  padding: 12px;
  border-color: #cdd7e6;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
}

.portal-header .portal-member__menu .portal-admin__head {
  padding: 10px 10px 14px;
}

.portal-header .portal-member__menu .portal-admin__title {
  color: var(--color-primary-06);
  font-size: 16px;
  font-weight: 800;
}

.portal-header .portal-member__menu .portal-admin__caption {
  margin-top: 5px;
  font-size: 13px;
}

.portal-header .portal-member__menu .portal-admin__body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding-top: 10px;
}

.portal-header .portal-member__menu .portal-admin__item {
  min-width: 0;
  padding: 12px;
  border-color: #e5eaf1;
  background: #ffffff;
}

.portal-header .portal-member__menu .portal-admin__item:hover,
.portal-header .portal-member__menu .portal-admin__item:focus {
  border-color: #b8c7e4;
  background: #f6f8ff;
}

.portal-header .portal-member__menu .portal-member-product-board {
  grid-column: 1 / -1;
  padding: 14px;
  border-color: #cbd7ee;
  background: #f8faff;
}

.portal-header .portal-member__menu .portal-member-board-form {
  grid-template-columns: minmax(105px, 0.8fr) minmax(0, 1.4fr) auto;
  align-items: end;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top-color: #dfe6f3;
}

.portal-header .portal-member__menu .portal-member-board-select {
  height: 40px;
  background-color: #ffffff;
}

.portal-header .portal-member__menu .portal-member-board-submit {
  min-width: 64px;
  height: 40px;
}

@media (max-width: 720px) {
  .portal-header--member .portal-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .portal-header .portal-util.portal-util--member.util_menu {
    grid-column: 1 / -1;
    grid-row: 3;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    width: 100%;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid #e1e5ec;
  }

  .portal-header .portal-util--member .portal-member {
    justify-self: start;
  }

  .portal-header .portal-util--member .portal-user-name {
    min-width: 0;
    overflow: hidden;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .portal-header .portal-util--member .portal-user-name::after {
    width: 26px;
    height: 26px;
  }

  .portal-header .portal-util--member .portal-util__links a {
    height: 38px;
    padding: 0 11px;
  }

  .portal-header .portal-member .portal-member__menu {
    right: auto;
    left: 0;
    top: calc(100% + 8px);
    max-height: none;
    overflow: visible;
  }

  .portal-header .portal-member .portal-member__menu::before {
    right: auto;
    left: 36px;
  }
}

@media (max-width: 480px) {
  .portal-header .portal-member .portal-member__menu {
    padding: 8px;
  }

  .portal-header .portal-member__menu .portal-admin__head {
    padding: 8px 8px 10px;
  }

  .portal-header .portal-member__menu .portal-admin__body {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    padding-top: 8px;
  }

  .portal-header .portal-member__menu .portal-admin__item {
    padding: 10px;
  }

  .portal-header .portal-member__menu .portal-member-product-board {
    padding: 10px;
  }

  .portal-header .portal-member__menu .portal-member-board-form {
    grid-template-columns: 1fr;
    gap: 6px;
    margin-top: 8px;
    padding-top: 8px;
  }

  .portal-header .portal-member__menu .portal-member-board-select,
  .portal-header .portal-member__menu .portal-member-board-submit {
    height: 36px;
  }

  .portal-header .portal-member__menu .portal-member-board-submit {
    width: 100%;
  }

  .portal-header .portal-member__menu .portal-admin__body > a .portal-admin__item-note,
  .portal-header .portal-member__menu .portal-admin__body > button .portal-admin__item-note {
    display: none;
  }
}

/* Mobile navigation */
.portal-header .portal-mobile-toggle {
  display: none;
}

@media (max-width: 720px) {
  .portal-header .portal-mobile-toggle {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    justify-self: end;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--color-gray-03);
    border-radius: 10px;
    background: var(--color-gray-01);
    color: var(--color-primary-06);
    cursor: pointer;
    touch-action: manipulation;
    transition: border-color 0.18s ease, background-color 0.18s ease;
  }

  .portal-header .portal-mobile-toggle:focus-visible {
    outline: 3px solid rgba(29, 59, 145, 0.2);
    outline-offset: 3px;
    border-color: var(--color-primary-06);
  }

  .portal-header .portal-mobile-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 0.18s ease, opacity 0.18s ease;
  }

  .portal-header.is-mobile-open .portal-mobile-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .portal-header.is-mobile-open .portal-mobile-toggle span:nth-child(2) {
    opacity: 0;
  }

  .portal-header.is-mobile-open .portal-mobile-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .portal-header .portal-nav,
  .portal-header .portal-util.util_menu,
  .portal-header .portal-util.portal-util--member.util_menu {
    display: none;
  }

  .portal-header.is-mobile-open .portal-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 10px;
    border: 1px solid var(--color-gray-03);
    border-radius: 12px;
    background: var(--color-gray-01);
  }

  .portal-header.is-mobile-open .portal-nav__link {
    flex-direction: row;
    justify-content: flex-start;
    gap: 5px;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid transparent;
    border-radius: 9px;
    text-align: left;
  }

  .portal-header.is-mobile-open .portal-nav__link--active {
    border-color: var(--color-primary-03);
    background: var(--color-primary-01);
  }

  .portal-header.is-mobile-open .portal-nav__item--products > .portal-submenu--mega,
  .portal-header.is-mobile-open .portal-nav__item--products:hover > .portal-submenu--mega,
  .portal-header.is-mobile-open .portal-nav__item--products:focus-within > .portal-submenu--mega {
    position: static;
    display: none;
    width: 100%;
    min-width: 0;
    max-height: min(62vh, 520px);
    margin-top: 6px;
    border: 1px solid var(--color-gray-03);
    border-radius: 9px;
    box-shadow: none;
    overflow-y: auto;
  }

  .portal-header.is-mobile-open .portal-nav__item--products.is-submenu-open > .portal-submenu--mega {
    display: grid !important;
  }

  .portal-header.is-mobile-open .portal-nav__item--products.is-submenu-open > .portal-nav__link--products {
    border-color: var(--color-primary-03);
    background: var(--color-primary-01);
  }

  .portal-header.is-mobile-open .portal-util.util_menu {
    grid-column: 1 / -1;
    grid-row: 3;
    display: flex;
    justify-content: flex-start;
    width: 100%;
    padding-top: 12px;
    border-top: 1px solid var(--color-gray-03);
  }

  .portal-header.is-mobile-open .portal-util:not(.portal-util--member) .portal-util__links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .portal-header.is-mobile-open .portal-util:not(.portal-util--member) .portal-util__links a,
  .portal-header.is-mobile-open .portal-util:not(.portal-util--member) .portal-util__links button {
    width: 100%;
  }

  .portal-header.is-mobile-open .portal-util.portal-util--member.util_menu {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .portal-header .portal-admin:not(.portal-member) .portal-admin__menu {
    right: auto;
    left: 0;
    max-height: calc(100vh - 180px);
    max-height: calc(100dvh - 180px);
    overflow-y: auto;
  }

  .portal-header .portal-admin:not(.portal-member) .portal-admin__menu::before {
    right: auto;
    left: 24px;
  }

  .portal-header .portal-member .portal-member__menu,
  .portal-header .portal-member:focus-within .portal-member__menu {
    display: none !important;
  }

  .portal-header .portal-member.is-open .portal-member__menu {
    display: block !important;
  }
}

@media (max-width: 480px) {
  .portal-header .portal-member__menu .portal-admin__item {
    min-height: 52px;
  }

  .portal-header .portal-member__menu .portal-member-board-select,
  .portal-header .portal-member__menu .portal-member-board-submit {
    height: 44px;
  }
}

/* Unified tablet density: keep desktop and mobile layouts unchanged. */
@media (min-width: 721px) and (max-width: 1080px) {
  .portal-header > .portal-header__inner.inner {
    width: auto;
    max-width: calc(100% - 32px);
    min-height: auto;
    padding: 18px 0 14px;
    gap: 14px 18px;
    flex-wrap: wrap;
  }

  .portal-header .portal-header__logo img,
  .portal-header .portal-header__brand-logo {
    width: 220px;
    height: auto;
    max-width: 28vw;
  }

  .portal-header .portal-nav {
    order: 3;
    flex: 1 0 100%;
    gap: 8px;
    width: 100%;
    margin: 0;
    padding-top: 10px;
    border-top: 1px solid var(--color-gray-03);
    overflow-x: auto;
  }

  .portal-header .portal-nav__link {
    min-height: 44px;
    padding: 8px 10px;
    border-radius: 8px;
  }

  .portal-header .portal-nav__link,
  .portal-header .portal-nav__text {
    font-size: 15px !important;
    line-height: 1.3 !important;
  }

  .portal-header .portal-nav .portal-nav__status,
  .portal-header .portal-nav .portal-nav__link--green .portal-nav__status {
    font-size: 15px !important;
    font-weight: 700;
    line-height: 1.3 !important;
  }

  .portal-header .portal-submenu--mega {
    left: 0;
    width: min(520px, calc(100vw - 32px));
    min-width: 0;
  }
}

/* WAR member guide menu: isolated addition for the legacy production build. */
.portal-header .portal-submenu--member-guide {
  top: calc(100% + 12px);
  min-width: 178px;
  padding: 9px 0;
  border-radius: 10px;
  box-shadow: 0 16px 26px rgba(0, 0, 0, 0.16);
}

.portal-header .portal-nav__item--member-guide:hover > .portal-submenu--member-guide,
.portal-header .portal-nav__item--member-guide:focus-within > .portal-submenu--member-guide {
  display: block;
}

.portal-header .portal-submenu--member-guide .portal-submenu__list a {
  padding: 9px 18px;
  color: #222222;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
}

.portal-header .portal-submenu--member-guide .portal-submenu__list a:hover,
.portal-header .portal-submenu--member-guide .portal-submenu__list a:focus {
  color: var(--color-primary-06) !important;
}

@media (max-width: 720px) {
  .portal-header.is-mobile-open .portal-nav__item--member-guide > .portal-submenu--member-guide,
  .portal-header.is-mobile-open .portal-nav__item--member-guide:hover > .portal-submenu--member-guide,
  .portal-header.is-mobile-open .portal-nav__item--member-guide:focus-within > .portal-submenu--member-guide {
    position: static;
    display: block !important;
    min-width: 0;
    margin: 4px 0 0 12px;
    padding: 2px 0 4px 12px;
    border: 0;
    border-left: 2px solid var(--color-primary-02);
    border-radius: 0;
    box-shadow: none;
  }

  .portal-header.is-mobile-open .portal-submenu--member-guide .portal-submenu__list a {
    padding: 8px 10px;
    font-size: 14px;
  }
}
