@media (max-width: 1024px) {
  .portal-wrapper { display: flex; flex-direction: column; margin: 14px auto 50px; padding: 0 16px; }
  .portal-left-rail { display:none; }
  .portal-main { order: 1; width: 100%; }
  .portal-side { order: 2; width: 100%; display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); }
  .portal-side { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .page-layout { grid-template-columns: 1fr; }
  .pgh-search { max-width: 300px; }
  .pgh-nav { gap: 16px; }
  .portal-dashboard { grid-template-columns: 1fr 1fr; }
  .portal-search-intro { min-height: 220px; }
}

@media (max-width: 768px) {
  body { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
  .site-footer { padding: 24px 0 28px; }
  .site-footer .container { padding: 0 12px; }
  .footer-notice { display: block; padding: 24px 20px; border-radius: 16px; }
  .footer-brand { margin: 0 0 16px; font-size: 18px; }
  .footer-brand .brand-logo { width: 22px; height: 22px; }
  .footer-brand .brand-logo:after { background-size: 12px 12px; }
  .footer-policy-links { gap: 10px; margin-bottom: 16px; }
  .footer-policy-links a { font-size: 12.5px; }
  .footer-policy-links a:not(:last-child)::after { margin-left: 10px; }
  .footer-policy-copy { font-size: 12px; line-height: 1.6; }
  .footer-intro { font-size: 13px; margin-bottom: 12px !important; }
  .footer-policy-detail { padding-left: 14px; font-size: 12px; border-left-width: 2px; border-color: rgba(229,232,237,0.8); }
  .footer-copyright { margin-top: 16px !important; font-size: 11px; }
  .home-topic-hubs { padding: 18px 16px; }
  .home-topic-heading h2 { font-size: 19px; }
  .home-topic-grid { grid-template-columns: 1fr; }
  .home-topic-grid p { min-height: 0; }
  .portal-global-header .container { flex-wrap: wrap; gap: 12px; justify-content: space-between; padding: 12px 16px; }
  .portal-global-header { height: auto; }
  .pgh-search { order: 3; width: 100%; max-width: none; }
  .pgh-nav { display: none; }
  .pgh-actions { display: none; }

  .utility-strip { display: none; }
  .portal-dashboard { grid-template-columns: 1fr; }
  .dash-col { gap: 16px; }
  .portal-tool-grid { grid-template-columns: 1fr; }
  .qa-meta span:nth-child(n+3) { display: none; }
  .video-grid { grid-template-columns: 1fr 1fr; }
  .lower-boards-grid { grid-template-columns: 1fr; }
  .portal-side { grid-template-columns: 1fr; }
  .portal-left-rail { grid-template-columns: 1fr 1fr; }
  .portal-left-rail .rail-login { grid-column: 1/-1; }

  .portal-global-header { height: 62px; }
  .seo-content-head {
    padding: 24px 20px 20px;
  }
  .seo-content-head h1 {
    font-size: 24px;
    line-height: 1.42;
  }
  .main-board-box .board-content {
    padding: 24px 20px 30px;
    font-size: 14px;
    line-height: 1.8;
  }
  .main-board-box .board-content h2 {
    margin-top: 24px;
    font-size: 19px;
  }
  .verification-hero { padding:46px 20px; }
  .verification-hero h1 { font-size:30px; }
  .verification-hero p { font-size:14px; }
  .verification-layout { display:block; padding:34px 16px 0; }
  .verification-main > section { margin-bottom:48px; }
  .verification-section-head h2 { font-size:21px; }
  .verification-status-grid { grid-template-columns:1fr; }
  .verification-status-card { min-height:0; }
  .verification-criterion header { grid-template-columns:34px minmax(0,1fr); padding:19px 18px; }
  .criterion-required { grid-column:2; justify-self:start; }
  .verification-criterion dl { grid-template-columns:1fr; }
  .verification-criterion dl > div { border-right:0; border-bottom:1px solid #edf0f4; }
  .verification-criterion dl > div:last-child { border-bottom:0; }
  .verification-process li { padding:18px; }
  .verification-action-box { display:block; padding:24px; }
  .verification-action-box .btn { width:100%; margin-top:18px; }
  .verification-side { position:static; margin-top:8px; }
  .verification-side-card:first-child { display:none; }
  .ev-board-header {
    width: calc(100% - 28px);
    margin: 20px auto 12px;
  }
  .ev-board-heading {
    min-height: 0;
    padding: 22px 20px;
    border-radius: 14px;
  }
  .ev-board-heading h1 { font-size: 22px; }
  .ev-board-heading p { font-size: 12px; }
  .ev-community-switcher { gap: 6px; margin-top: 8px; }
  .ev-community-switcher a {
    display: flex;
    min-width: 0;
    min-height: 58px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 9px 5px;
    text-align: center;
  }
  .ev-community-tab-kicker { display:none; }
  .ev-community-switcher strong { font-size: 12px; white-space: nowrap; }
  .ev-community-switcher small {
    padding: 0;
    background: transparent;
    font-size: 12px;
  }
  #bo_v_top .btn_more_opt i { display:inline-block; }
  #bo_v_top .btn_more_opt::after { content:none; }
  #bo_v_top .btn_bo_user .ev-more-action { max-width:none; flex:1; }
  .pgh-brand { min-width:0; font-size:21px; }
  .pgh-nav, .pgh-actions { display:none; }
  .portal-wrapper { padding: 0 10px; }
  .portal-search-intro { min-height: 268px; padding: 23px 18px 14px; background-size: auto 100%; background-position: 118% center; }
  .portal-search-intro:after { inset:0 22% 0 0; background:rgba(248,223,120,.62); }
  .portal-search-intro h1 { font-size:25px; }
  .hero-copy p { font-size:12px; }
  .search-form-wrap { width: 76%; margin-top:20px; }
  .search-paths { max-width: 75%; flex-wrap:wrap; }
  .popular-searches { max-width:80%; }
  .portal-action-tiles { gap:7px; }
  .portal-action-tiles a { min-height:86px; padding:13px 11px; }
  .portal-action-tiles strong { font-size:13px; }
  .portal-action-tiles span { font-size: 12px; }
  .portal-side { grid-template-columns:1fr; }

  .portal-search-intro { padding: 15px 12px 11px; }
  .portal-search-intro h2 { font-size: 18px; margin-bottom: 14px; }
  .search-paths { flex-wrap: wrap; }
  .portal-action-tiles { gap: 6px; }
  .portal-action-tiles a { min-height: 78px; padding: 11px 9px; }
  .portal-action-tiles strong { font-size: 12px; }
  .portal-action-tiles span { font-size: 12px; line-height: 1.3; padding-right: 8px; }
  .popular-searches a:nth-of-type(n+4) { display: none; }
  .qa-row { min-height: 56px; }
  .report-row { min-height: 52px; }

  .mobile-nav {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0;
    height: calc(66px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(229, 232, 237, 0.7);
    box-shadow: 0 -8px 24px rgba(20, 43, 82, 0.06);
    z-index: 1000;
    align-items: center; justify-content: space-around;
    padding-bottom: env(safe-area-inset-bottom);
    padding-left: 6px; padding-right: 6px;
  }
  .mobile-nav a {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700; color: #748095;
    flex: 1; height: 100%; gap: 5px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-tap-highlight-color: transparent;
  }
  .mobile-nav a span {
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  .mobile-nav a .nav-icon {
    width: 22px; height: 22px;
    stroke: currentColor;
    stroke-width: 2.2;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .mobile-nav a .mobile-nav-icon {
    display: block;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    object-fit: contain;
    filter: saturate(.82) drop-shadow(0 3px 4px rgba(20, 43, 82, .14));
    transform: translateY(0);
    transition: transform .2s ease, filter .2s ease;
  }
  .mobile-nav a.active {
    color: var(--primary, #142b52);
    font-weight: 700;
  }
  .mobile-nav a.active .nav-icon {
    stroke-width: 2.8;
    transform: translateY(-2px);
    color: var(--primary);
  }
  .mobile-nav a.active .mobile-nav-icon {
    filter: saturate(1.08) contrast(1.04) drop-shadow(0 5px 6px rgba(20, 43, 82, .20));
    transform: translateY(-2px) scale(1.08);
  }
  .mobile-nav a:active .nav-icon {
    transform: scale(0.9);
  }
  .mobile-nav a:active .mobile-nav-icon {
    transform: scale(.94);
  }

  /* Member login */
  #mb_login.mbskin {
    width: calc(100% - 32px);
    max-width: 420px;
    margin: 24px auto 34px;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(215, 221, 231, .92);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(20, 43, 82, .10);
  }
  #mb_login .mbskin_box {
    padding: 26px 22px 24px;
  }
  #mb_login h1 {
    position: relative;
    display: block;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    color: var(--primary);
    font-size: 24px;
    line-height: 1.3;
    font-weight: 700;
    text-align: left;
    letter-spacing: -.04em;
  }
  #mb_login h1::before {
    content: "";
    display: inline-block;
    width: 9px;
    height: 9px;
    margin: 0 9px 3px 0;
    border-radius: 50%;
    background: var(--danger);
    box-shadow: 0 0 0 5px rgba(231, 53, 79, .10);
  }
  #mb_login .login_intro {
    margin: 7px 0 22px;
    color: #6f7b8d;
    font-size: 13px;
    line-height: 1.5;
  }
  #mb_login .mb_log_cate {
    justify-content: flex-end;
    gap: 7px;
    margin: 0 0 20px;
    padding: 12px 14px;
    border: 0;
    border-radius: 10px;
    background: #f6f8fb;
  }
  #mb_login .mb_log_cate h2 { display: none; }
  #mb_login .login_join_prompt {
    color: #788497;
    font-size: 12px;
    font-weight: 600;
  }
  #mb_login .mb_log_cate .join {
    color: var(--danger);
    font-size: 12px;
    font-weight: 700;
  }
  #mb_login .login_field { margin-bottom: 15px; }
  #mb_login .login_field label {
    display: block;
    margin-bottom: 7px;
    color: #263852;
    font-size: 13px;
    font-weight: 700;
  }
  #mb_login .login_field .frm_input {
    height: 52px;
    margin: 0;
    padding: 0 15px;
    border: 1px solid #dce2ea;
    border-radius: 11px;
    background: #fbfcfe;
    color: #172a46;
    font-size: 15px;
  }
  #mb_login .login_field .frm_input:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(20, 43, 82, .10);
  }
  #mb_login .btn_submit {
    height: 52px;
    margin: 3px 0 0;
    border: 0;
    border-radius: 11px;
    background: linear-gradient(135deg, #183764, #102a52);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(20, 43, 82, .20);
  }
  #mb_login #login_info {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #edf0f4;
    color: #59677c;
    font-size: 12px;
  }
  #mb_login .chk_box label { padding-left: 23px; }
  #mb_login .login_if_lpl a { color: #344964; font-weight: 700; }

  /* Member registration agreement */
  .register {
    width: calc(100% - 32px);
    max-width: 600px;
    margin: 24px auto 36px;
    padding: 22px 18px;
    border: 1px solid rgba(215, 221, 231, .92);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(20, 43, 82, .08);
  }
  #fregister > p {
    height: auto;
    margin: 0 0 18px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #f6f8fb;
    color: #42516a;
    font-size: 13px;
    line-height: 1.65;
    text-align: left;
    font-weight: 700;
  }
  #fregister > p::before { display: none; }
  #fregister section {
    margin: 0 0 16px;
    overflow: hidden;
    border-radius: 14px;
    box-shadow: none;
  }
  #fregister h2 {
    padding: 17px 48px 17px 16px;
    font-size: 16px;
    line-height: 1.35;
  }
  #fregister textarea {
    height: 132px;
    padding: 16px;
    font-size: 12px;
    line-height: 1.65;
  }
  #fregister .fregister_terms > div {
    padding: 0;
    overflow: hidden;
  }
  #fregister .fregister_terms table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
    font-size: 13px;
    line-height: 1.45;
  }
  #fregister .fregister_terms table th,
  #fregister .fregister_terms table td {
    padding: 10px 6px;
    word-break: keep-all;
    overflow-wrap: anywhere;
    vertical-align: top;
  }
  #fregister .fregister_agree {
    position: static;
    padding: 13px 16px;
    border: 0;
    border-top: 1px solid #edf0f4;
    background: #fbfcfe;
    text-align: left;
  }
  #fregister .fregister_agree label {
    display: flex;
    min-height: 24px;
    align-items: center;
    gap: 9px;
    color: #33445f;
    font-size: 12px;
    font-weight: 700;
  }
  #fregister .fregister_agree input[type="checkbox"] + label span,
  #fregister .fregister_agree.chk_all input[type="checkbox"] + label span {
    position: relative;
    top: auto;
    right: auto;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    border-radius: 6px;
  }
  #fregister_chkall {
    min-height: 52px;
    margin: 0 0 16px;
    padding: 0;
    border-radius: 12px;
    line-height: normal;
  }
  #fregister .btn_confirm {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 8px;
    margin-top: 0;
  }
  #fregister .btn_confirm .btn_close,
  #fregister .btn_confirm .btn_submit {
    width: 100%;
    height: 50px !important;
    margin: 0;
    border-radius: 11px;
    font-size: 14px;
  }

  /* Account recovery */
  #find_info {
    width: calc(100% - 32px);
    max-width: 460px;
    margin: 24px auto 36px;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(215, 221, 231, .92);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(20, 43, 82, .08);
  }
  #find_info .new_win_con {
    width: 100% !important;
    padding: 24px 20px;
    background: #fff;
  }
  #find_info h3 {
    display: block;
    margin: 0 0 8px;
    color: var(--primary);
    font-size: 22px;
    line-height: 1.35;
    font-weight: 700;
    text-align: left;
  }
  #find_info #info_fs {
    margin: 0 0 16px;
    padding: 0;
    border: 0;
  }
  #find_info #info_fs p {
    margin: 0 0 16px;
    color: #68758a;
    font-size: 13px;
    line-height: 1.65;
  }
  #find_info #mb_email {
    width: 100%;
    height: 50px;
    margin: 0;
    padding: 0 14px;
    border: 1px solid #dce2ea;
    border-radius: 11px;
    background: #fbfcfe;
    font-size: 14px;
  }
  #find_info .captcha {
    display: flex;
    width: 100%;
    margin: 0 0 16px;
    padding: 14px;
    flex-wrap: wrap;
    gap: 8px;
    border: 1px solid #e1e6ed;
    border-radius: 12px;
    background: #f8f9fb;
  }
  #find_info .captcha legend { display: none; }
  #find_info .captcha #captcha_img { max-width: 100%; height: auto; }
  #find_info .captcha #captcha_key {
    width: calc(100% - 104px);
    min-width: 0;
    height: 46px;
    margin: 0;
    border: 1px solid #d9e0e9;
    border-radius: 9px;
  }
  #find_info .captcha #captcha_mp3,
  #find_info .captcha #captcha_reload {
    height: 46px;
    margin: 0;
    border: 0;
    border-radius: 9px;
  }
  #find_info .captcha #captcha_info {
    width: 100%;
    margin: 0;
    color: #6b778a;
    font-size: 13px;
    line-height: 1.45;
  }
  #find_info .win_btn { margin: 0; }
  #find_info .btn_submit {
    height: 50px;
    margin: 0;
    border: 0;
    border-radius: 11px;
    font-weight: 700;
    background: linear-gradient(135deg, #183764, #102a52);
  }
}

@media (max-width: 480px) {
  .video-grid { grid-template-columns: 1fr; }
  .report-row { flex-wrap: wrap; }
  .report-date { width: 100%; text-align: right; }
  .qa-tabs { overflow-x: auto; white-space: nowrap; padding-bottom: 4px; }
  .qa-tabs::-webkit-scrollbar { display: none; }
  .portal-wrapper { padding-left: 10px; padding-right: 10px; margin-top: 10px; }
  .pgh-brand { font-size: 18px; }
  .pgh-search form { height: 38px; }
  .portal-action-tiles span { max-width: 70px; }
}

@media (max-width: 768px) {
  .portal-search-intro,
  .portal-action-tiles a,
  .portal-tool,
  .portal-section,
  .side-widget {
    border-radius: 18px;
    box-shadow:
      0 10px 24px rgba(20,43,82,.06),
      0 4px 12px rgba(20,43,82,.04),
      inset 0 1px 0 rgba(255,255,255,.95);
    background: #fff;
    border: 1px solid rgba(229,232,237,0.8);
  }
  .portal-action-tiles a {
    min-height: 84px;
  }
  .portal-main {
    gap: 15px;
  }
  .portal-dashboard,
  .dash-col,
  .portal-tool-grid {
    gap: 14px;
  }
  .portal-search-intro {
    border-radius: 18px;
  }
}

@media (max-width: 768px) {
/* removed redundant mobile-nav */
}

@media (max-width: 768px) {
  .portal-global-header {
    height: 64px;
    overflow: hidden;
  }
  .portal-global-header .container {
    display: flex;
    height: 64px;
    padding: 0 14px;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }
  .pgh-brand {
    width: min(152px, calc(100% - 64px));
    height: 46px;
    min-width: 0;
    align-items: center;
    background: transparent;
  }
  .mcash-brand-mark {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    font-size: 19px;
  }
  .pgh-brand .brand-lockup strong {
    font-size: 21px;
  }
  .pgh-brand .brand-lockup small {
    display: none;
  }
  .header-menu-wrap {
    flex: 0 0 42px;
  }
  .header-menu-button {
    width: 42px;
    height: 42px;
  }
}

/* Final compact mobile layout */
@media (max-width: 640px) {
  body {
    padding-bottom: calc(74px + env(safe-area-inset-bottom));
    overflow-x: hidden;
  }
  .portal-global-header {
    height: 64px;
  }
  .portal-global-header .container {
    display: flex;
    height: 64px;
    padding: 0 14px;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }
  .pgh-brand {
    width: min(152px, calc(100% - 64px));
    height: 46px;
    min-width: 0;
  }
  .header-menu-button {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
  }
  .portal-wrapper {
    width: 100%;
    margin-top: 10px;
    padding-right: 8px;
    padding-left: 8px;
  }
  .portal-main {
    min-width: 0;
    gap: 10px;
  }
  .portal-search-intro {
    min-height: 0;
    padding: 24px 20px 20px;
    border-radius: 18px;
    background:
      linear-gradient(105deg, rgba(255,255,255,.99) 0%, rgba(255,255,255,.96) 48%, rgba(255,255,255,.62) 68%, rgba(255,255,255,.08) 88%),
      #fff url("img/ev-main-hero-model.webp") 73% center / auto 100% no-repeat;
    box-shadow: 0 6px 20px rgba(20, 43, 82, 0.06);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.5);
  }
  .portal-search-intro h1 {
    max-width: 75%;
    margin: 10px 0 6px;
    font-size: 24px;
    line-height: 1.25;
    letter-spacing: -0.04em;
    color: var(--primary);
  }
  .hero-eyebrow {
    padding: 5px 8px;
    font-size: 12px;
    border-radius: 4px;
    background: rgba(231, 53, 79, 0.08);
    color: var(--danger);
    letter-spacing: 0.05em;
    font-weight: 700;
    display: inline-block;
  }
  .hero-copy p {
    max-width: 70%;
    font-size: 13px;
    line-height: 1.5;
    color: #354359;
    font-weight: 600;
  }
  .hero-data-status {
    margin-top: 7px;
    font-size: 12px;
  }
  .portal-search-intro .search-form-wrap {
    width: 100%;
    margin-top: 18px;
  }
  .portal-search-intro .search-form-wrap form {
    height: 48px;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(20,43,82,0.1);
    background: #fff;
    border: 1px solid rgba(20,43,82,0.05);
  }
  .portal-search-intro .search-form-wrap input {
    padding: 0 16px;
    font-size: 14px;
    font-weight: 600;
    background: transparent;
  }
  .portal-search-intro .search-form-wrap input::placeholder {
    color: #9ca3af;
    font-weight: 500;
  }
  .portal-search-intro .search-form-wrap button {
    width: 64px;
    flex: 0 0 64px;
    padding: 0;
    font-size: 14px;
    font-weight: 700;
    background: var(--danger);
    color: #fff;
  }
  .portal-search-intro .search-paths {
    display: flex;
    margin-top: 14px;
    flex-wrap: wrap;
    gap: 8px;
  }
  .portal-search-intro .search-paths a {
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 8px;
    background: rgba(255,255,255,0.8);
    color: var(--primary);
    border: 1px solid rgba(20,43,82,0.05);
    box-shadow: 0 2px 6px rgba(20,43,82,0.04);
  }
  .portal-search-intro .popular-searches {
    display: flex;
    margin-top: 14px;
    flex-wrap: wrap;
    gap: 8px 12px;
    font-size: 13px;
    align-items: center;
  }
  .portal-action-tiles {
    gap: 10px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
  .portal-action-tiles a {
    min-width: 0;
    min-height: 94px;
    padding: 16px 14px;
    border-radius: 16px;
    box-shadow: 0 6px 16px rgba(20,43,82,0.05);
    border: 1px solid rgba(229,232,237,0.5);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }
  .portal-action-tiles strong {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--primary);
    z-index: 2;
    position: relative;
  }
  .portal-action-tiles span {
    max-width: none;
    margin-top: 4px;
    padding: 0;
    font-size: 12px;
    line-height: 1.35;
    color: #6b7280;
    font-weight: 600;
    z-index: 2;
    position: relative;
  }
  .portal-action-tiles > a > img {
    right: -4px;
    bottom: -4px;
    width: 44px;
    height: 44px;
    opacity: 0.6;
    z-index: 1;
    transform: scale(1.1);
  }
  .portal-action-tiles > a > b {
    display: none;
  }
  .portal-dashboard,
  .dash-col {
    min-width: 0;
    gap: 10px;
  }
  .dash-box {
    min-width: 0;
    min-height: 0;
    border-radius: 18px;
    box-shadow: 0 4px 16px rgba(20,43,82,0.04);
    border: 1px solid rgba(229,232,237,0.8);
    background: #fff;
    overflow: hidden;
  }
  .dash-head {
    min-height: 52px;
    padding: 14px 18px;
    background: #fafafc;
    border-bottom: 1px solid rgba(229,232,237,0.8);
  }
  .dash-head h3 img {
    width: 22px;
    height: 22px;
    flex-basis: 22px;
  }
  .dash-list {
    min-width: 0;
    padding: 8px 18px 14px;
  }
  .dash-list li,
  .dash-list a {
    min-width: 0;
  }
  .dash-list .title {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 13.5px;
    font-weight: 700;
    color: #1f2937;
  }
  .dash-list .meta {
    flex: 0 0 auto;
    font-size: 13px;
    color: #9ca3af;
    font-weight: 600;
  }
  .portal-section,
  .qa-table,
  .qa-row,
  .qa-main,
  .qa-title {
    min-width: 0;
  }
  .qa-title strong,
  .report-title,
  .resolved-title {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
/* removed redundant mobile-nav size override */
  .video-grid,
  .video-library-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
    padding: 10px;
    gap: 12px 8px;
  }
  .video-card .v-title {
    font-size: 12.5px;
    font-weight: 700;
    margin-top: 8px;
    line-height: 1.3;
    color: #111827;
  }
  .video-play-icon {
    width: 38px;
    height: 28px;
    transform: translate(-50%,-98%);
  }
  .video-modal {
    padding: 10px;
  }
  .video-modal-dialog {
    border-radius: 13px;
  }
  .video-modal-head {
    min-height: 52px;
    padding: 10px 12px 10px 18px;
  }
  .video-modal-head strong {
    font-size: 14px;
  }
}

/* ====== Enhanced Member Skins & Responsive Fixes ====== */
@media (max-width: 768px) {
  /* Increase padding to prevent overlap with bottom nav */
  body { padding-bottom: calc(90px + env(safe-area-inset-bottom)) !important; }

  /* Home portal lists */
  .qa-section .section-head {
    display: block !important;
  }
  .qa-section .section-head > h3 {
    margin: 0 0 16px !important;
  }
  .qa-section .qa-tabs {
    width: auto;
  }
  .resolved-section .resolved-row {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: start !important;
    column-gap: 12px !important;
    row-gap: 6px !important;
  }
  .resolved-section .resolved-mark {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: start;
  }
  .resolved-section .resolved-title {
    grid-column: 2;
    min-width: 0;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: normal !important;
    word-break: keep-all;
    overflow-wrap: anywhere;
  }
  .resolved-section .resolved-meta {
    grid-column: 2;
    min-width: 0;
    white-space: normal;
  }

  /* GnuBoard's mobile list markup is different from its desktop table.
     Style it here so custom board skins do not fall back to an unstyled list. */
  #bo_list {
    width: calc(100% - 32px) !important;
    margin: 20px auto 70px !important;
  }
  #bo_list .list_01 {
    overflow: hidden;
    border: 1px solid rgba(215, 221, 231, .88);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(20, 43, 82, .07);
  }
  #bo_list .list_01 ul {
    margin: 0;
    padding: 0;
  }
  #bo_list .list_01 li {
    display: block;
    margin: 0;
    padding: 16px !important;
    border: 0;
    border-bottom: 1px solid #edf0f4;
    background: #fff;
    list-style: none;
  }
  #bo_list .list_01 li:last-child {
    border-bottom: 0;
  }
  #bo_list .bo_cnt,
  #bo_list .bo_subject {
    display: block;
    width: 100%;
    min-width: 0;
  }
  #bo_list .bo_subject {
    padding: 0;
    color: #142033;
    font-size: 15px;
    line-height: 1.5;
    font-weight: 700;
    letter-spacing: -.02em;
    white-space: normal;
    word-break: keep-all;
    overflow-wrap: anywhere;
  }
  #bo_list .bo_cmt {
    display: inline-flex;
    min-width: 22px;
    height: 22px;
    margin-left: 5px;
    padding: 0 6px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #eef5ff;
    color: #2768b2;
    font-size: 11px;
    line-height: 1;
    font-weight: 800;
    vertical-align: 1px;
  }
  #bo_list .bo_info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 10px;
    margin-top: 9px;
    padding: 0;
    color: #7b8798;
    font-size: 12px;
    line-height: 1.4;
  }
  #bo_list .bo_info i {
    margin: 0 3px 0 0;
    color: #9aa4b2;
  }
  #bo_list .bo_info .fa-thumbs-o-up,
  #bo_list .bo_info .fa-thumbs-o-down {
    margin-left: 2px;
  }
  #bo_list #bo_list_total {
    margin-top: 14px;
    color: #7b8798;
    font-size: 12px;
  }

  /* Generic member skin responsiveness */
  .mbskin { width: calc(100% - 32px) !important; max-width: 420px; margin: 30px auto 40px !important; }
  .mbskin .mbskin_box { padding: 24px 20px; border-radius: 16px; border: 1px solid rgba(229,232,237,0.8); box-shadow: 0 10px 24px rgba(20,43,82,0.06); }
  .mbskin h1 { margin: 10px 0 24px !important; font-size: 22px !important; font-weight: 700; color: var(--primary, #142b52); text-align: left; }
  .mbskin .frm_input { height: 48px; padding: 0 16px; border-radius: 12px; border: 1px solid rgba(229,232,237,0.8); font-size: 14px; background: #fbfcfe; transition: all 0.2s; }
  .mbskin .frm_input:focus { border-color: var(--primary, #142b52); background: #fff; box-shadow: 0 0 0 3px rgba(20,43,82,0.1); outline: none; }
  .mbskin .btn_submit { height: 50px !important; border-radius: 12px; font-size: 15px !important; font-weight: 700; background: var(--danger, #e7354f) !important; color: #fff; border: none; margin-top: 16px !important; box-shadow: 0 6px 16px rgba(231,53,79,0.2); }

  /* Register Form */
  #register_form { margin: 20px 16px; border-radius: 16px; border: 1px solid rgba(229,232,237,0.8); box-shadow: 0 10px 24px rgba(20,43,82,0.06); overflow: hidden; }
  #register_form h2 { padding: 20px; font-size: 18px; font-weight: 700; color: var(--primary, #142b52); border-bottom: 1px solid rgba(229,232,237,0.8); background: #f8f9fb; }
  .register_form_inner { border: none; border-radius: 0; background: #fff; }
  .register_form_inner ul { padding: 20px; }
  .register_form_inner label { font-size: 13px; font-weight: 700; color: #354359; margin-bottom: 8px; }
  .register_form_inner .frm_input { height: 46px; border-radius: 10px; border: 1px solid rgba(229,232,237,0.8); background: #fbfcfe; }
  .register_form_inner .btn_frmline { height: 46px; border-radius: 10px; font-weight: 700; padding: 0 16px; background: var(--primary, #142b52); color: #fff; border: none; }
  #fregisterform .btn_confirm { padding: 0 20px 24px; display: flex; gap: 10px; }
  #fregisterform .btn_confirm .btn_submit { flex: 1; height: 50px; border-radius: 12px; font-size: 15px; font-weight: 700; background: var(--danger, #e7354f); border: none; color: #fff; }
  #fregisterform .btn_confirm .btn_cancel { flex: 1; height: 50px; border-radius: 12px; font-size: 15px; font-weight: 700; background: #f0f2f5; color: #354359; border: 1px solid rgba(229,232,237,0.8); }

  /* Register Policy */
  .register { width: calc(100% - 32px); margin: 20px auto; }
  #fregister section { border-radius: 16px; box-shadow: 0 6px 16px rgba(20,43,82,0.05); overflow: hidden; }
  #fregister h2 { padding: 16px 20px; font-size: 16px; font-weight: 700; background: #f8f9fb; border-bottom: 1px solid rgba(229,232,237,0.8); }
  #fregister textarea { height: 120px; padding: 16px 20px; font-size: 13px; border: none; background: #fff; }
  .fregister_agree { position: static; display: block; padding: 14px 20px; background: #f8f9fb; border-top: 1px solid rgba(229,232,237,0.8); }
  .fregister_agree input[type="checkbox"] + label span { position: static; float: left; margin-right: 10px; top: 0; right: 0; }

  /* Member My Activity Nav */
  .member-shell-nav { padding: 12px; gap: 6px; margin: 16px; background: #fff; box-shadow: 0 4px 12px rgba(20,43,82,0.04); }
  .member-shell-nav strong { display: block; width: 100%; font-size: 15px; margin-bottom: 8px; color: var(--primary, #142b52); font-weight: 700; }
  .member-shell-nav .btn-outline { flex: 1 1 calc(33.333% - 6px); text-align: center; padding: 8px 4px; font-size: 13px; border-radius: 8px; background: #fbfcfe; border-color: rgba(229,232,237,0.8); }
  .member-shell-nav .btn-outline:active { background: #f0f2f5; }

  /* Problem Center / Calculator / Providers list mobile refinements */
  .portal-tool-grid, .portal-dashboard, .lower-boards-grid { grid-template-columns: 1fr; }
  .portal-side { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  /* Extra compact for small phones */
  .mbskin { width: calc(100% - 24px) !important; margin: 20px auto 30px !important; }
  .mbskin h1 { font-size: 20px !important; }
  .mbskin .mbskin_box { padding: 20px 16px; }

  #register_form { margin: 16px 12px; }
  .register_form_inner ul { padding: 16px 12px; }
}
