:root {
  --primary: #1e3a8a;
  --primary-hover: #1e40af;
  --danger: #b91c1c;
  --danger-bg: #fef2f2;
  --success: #047857;
  --success-bg: #ecfdf5;
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-400: #9ca3af;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50: #f9fafb;
  --bg: #f0f2f5;
  --surface: #ffffff;
  --font-sans: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  --font-mono: var(--font-sans);
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--gray-800); font-family: var(--font-sans); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased;  }
a { color: inherit; text-decoration: none; transition: 0.2s; }
button, input, select, textarea { font-family: inherit; transition: 0.2s; }
ul, ol, h1, h2, h3, h4, p { margin: 0; padding: 0; list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; width: 100%; }
.skip { position: absolute; left: -9999px; }

.portal-global-header { background: var(--surface); border-bottom: 1px solid var(--gray-300); height: 60px; position: sticky; top: 0; z-index: 100; }
.portal-global-header .container { display: flex; align-items: center; height: 100%; gap: 24px; }
.pgh-brand { display: flex; align-items: center; gap: 6px; font-size: 20px; font-weight: 700; color: var(--gray-900); flex-shrink: 0; }
.brand-logo { width: 20px; height: 20px; background: var(--primary); border-radius: 4px; display: inline-block; }
.pgh-brand .hl { color: var(--primary); }

.pgh-search form { display: flex; border: 2px solid var(--primary); border-radius: 4px; overflow: hidden; height: 36px; width: 220px; }
.pgh-search input { flex: 1; border: none; padding: 0 12px; font-size: 13px; font-weight: 600; outline: none; width: 100%; }
.pgh-search button { width: 48px; background: var(--primary); color: #fff; border: none; font-weight: bold; cursor: pointer; font-size: 12px; }

.pgh-nav { display: flex; gap: 20px; flex: 1; }
.pgh-nav a { font-size: 14px; font-weight: 700; color: var(--gray-900); white-space: nowrap; }
.pgh-nav a:hover { color: var(--primary); }

.pgh-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.user-name, .auth-link { font-size: 13px; font-weight: 600; color: var(--gray-600); }
.user-name:hover, .auth-link:hover { color: var(--gray-900); }
.btn-ask, .btn-report { display: inline-flex; align-items: center; justify-content: center; height: 32px; padding: 0 12px; border-radius: 4px; font-weight: 700; font-size: 12px; border: 1px solid var(--gray-300); }
.btn-ask { background: var(--gray-900); color: #fff; border-color: var(--gray-900); }
.btn-ask:hover { background: #000; }
.btn-report { background: var(--surface); color: var(--danger); border-color: var(--danger); }
.btn-report:hover { background: var(--danger-bg); }

.member-shell-nav { display: flex; gap: 8px; padding: 16px; align-items: center; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--gray-200); border-radius: 8px; margin-top: 24px; }
.member-shell-nav .btn-outline { border: 1px solid var(--gray-300); padding: 6px 12px; border-radius: 4px; font-size: 12px; font-weight: 600; }

.portal-wrapper { display: flex; gap: 24px; max-width: 1200px; margin: 24px auto 60px; padding: 0 16px; }
.portal-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.portal-side { width: 300px; flex-shrink: 0; display: flex; flex-direction: column; gap: 16px; }

.portal-search-intro { background: var(--surface); border: 1px solid var(--gray-300); padding: 24px 28px; text-align: center; }
.portal-search-intro h2 { font-size: 22px; font-weight: 700; color: var(--gray-900); margin-bottom: 18px; letter-spacing: -0.02em; }
.search-form-wrap form { max-width: 500px; margin: 0 auto; display: flex; border: 2px solid var(--gray-900); border-radius: 30px; overflow: hidden; height: 50px; }
.search-form-wrap input { flex: 1; border: none; padding: 0 20px; font-size: 15px; outline: none; }
.search-form-wrap button { width: 70px; background: var(--gray-900); color: #fff; border: none; font-weight: 700; font-size: 14px; cursor: pointer; }
.search-paths { display: flex; justify-content: center; gap: 10px; margin-top: 14px; }
.search-paths a { display: inline-block; padding: 6px 16px; background: var(--gray-100); border: 1px solid var(--gray-200); border-radius: 20px; font-size: 13px; font-weight: 600; color: var(--gray-700); }
.search-paths a:hover { background: var(--surface); border-color: var(--primary); color: var(--primary); }
.popular-searches { margin-top: 16px; font-size: 12px; display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.ps-label { font-weight: 700; color: var(--gray-500); }
.popular-searches a { color: var(--gray-700); font-weight: 600; }
.popular-searches a:hover { text-decoration: underline; }
.popular-searches .num { color: var(--primary); font-weight: 700; margin-right: 2px; }

.portal-dashboard { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.dash-col { display: flex; flex-direction: column; gap: 16px; }
.dash-box { background: var(--surface); border: 1px solid var(--gray-300); }
.dash-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--gray-200); }
.dash-head h3 { font-size: 14px; font-weight: 700; color: var(--gray-900); }
.dash-head .text-danger { color: var(--danger); }
.dash-head a { font-size: 16px; color: var(--gray-400); line-height: 1; }
.dash-head a:hover { color: var(--gray-900); }
.dash-list { padding: 8px 16px; }
.dash-list li { padding: 6px 0; }
.dash-list a { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.dash-list .title { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; color: var(--gray-800); }
.dash-list .meta { font-size: 13px; color: var(--gray-400); font-family: var(--font-mono); flex-shrink: 0; }
.dash-list a:hover .title { color: var(--primary); text-decoration: underline; }
.empty { font-size: 12px; color: var(--gray-400); text-align: center; padding: 12px 0 !important; }

.portal-tool-grid { display: grid; grid-template-columns: minmax(0,1.04fr) minmax(0,.96fr); gap: 12px; }
.home-topic-hubs {
  margin-bottom: 12px;
  padding: 22px;
  border: 1px solid var(--gray-300);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(20,43,82,.06);
}
.home-topic-heading {
  margin-bottom: 16px;
}
.home-topic-heading > span {
  color: var(--danger);
  font-size: 12px;
  font-weight: 800;
}
.home-topic-heading h2 {
  margin: 3px 0 5px;
  color: var(--primary);
  font-size: 21px;
  line-height: 1.35;
  letter-spacing: -.045em;
}
.home-topic-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.home-topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 10px;
}
.home-topic-grid article {
  padding: 16px;
  border: 1px solid var(--gray-300);
  border-radius: 9px;
  background: var(--gray-50);
}
.home-topic-grid h3 {
  margin: 0 0 7px;
  color: var(--gray-900);
  font-size: 15px;
}
.home-topic-grid p {
  min-height: 66px;
  margin: 0 0 11px;
  color: var(--gray-600);
  font-size: 12.5px;
  line-height: 1.65;
}
.home-topic-grid a {
  color: var(--primary);
  font-size: 12.5px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.home-topic-grid a:hover {
  color: var(--danger);
}
.portal-tool { min-width: 0; border: 1px solid var(--gray-300); background: var(--surface); padding: 18px; }
.portal-tool-calc { border-top: 3px solid var(--primary); }
.portal-tool-problem { border-top: 3px solid var(--gray-900); }
.tool-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.tool-heading h3 { margin-top: 2px; color: var(--gray-900); font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.tool-heading > a { color: var(--primary); font-size: 12px; font-weight: 700; white-space: nowrap; }
.tool-kicker { display: block; color: var(--gray-500); font-family: var(--font-sans); font-size: 12px; font-weight: 600; letter-spacing: -0.01em; }
.portal-tool > p { margin: 8px 0 14px; color: var(--gray-500); font-size: 12px; line-height: 1.5; }
.tool-links { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); border-top: 1px solid var(--gray-200); border-left: 1px solid var(--gray-200); }
.tool-links a { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; min-width: 0; padding: 10px; border-right: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200); color: var(--gray-800); }
.tool-links a:hover { background: var(--gray-50); color: var(--primary); }
.tool-links strong { font-size: 13px; }
.tool-links span { color: var(--gray-400); font-size: 12px; white-space: nowrap; }
.tool-followups { display: flex; gap: 14px; margin-top: 12px; }
.tool-followups a { color: var(--gray-600); font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.tool-problem-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.tool-problem-form label { min-width: 0; }
.tool-problem-form label span { display: block; margin-bottom: 4px; color: var(--gray-500); font-size: 12px; font-weight: 700; }
.tool-problem-form select { width: 100%; height: 34px; border: 1px solid var(--gray-300); background: var(--surface); padding: 0 8px; color: var(--gray-700); font-size: 12px; }
.tool-problem-form button { grid-column: 1/-1; height: 36px; border: 0; background: var(--gray-900); color: #fff; font-size: 12px; font-weight: 700; cursor: pointer; }
.tool-problem-form button:hover { background: var(--primary); }

.portal-section { background: var(--surface); border: 1px solid var(--gray-300); }
.section-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--gray-300); background: var(--gray-50); }
.section-head h3 { font-size: 15px; font-weight: 700; color: var(--gray-900); }
.section-head .more { font-size: 16px; font-weight: 600; color: var(--gray-400); }
.section-head .more:hover { color: var(--gray-900); }

.qa-tabs { display: flex; gap: 12px; }
.qa-tabs a { font-size: 13px; font-weight: 700; color: var(--gray-500); }
.qa-tabs a.active, .qa-tabs a:hover { color: var(--primary); }
.qa-table { padding: 0 20px; }
.qa-row { display: block; padding: 16px 0; border-bottom: 1px solid var(--gray-200); }
.qa-row:last-child { border-bottom: none; }
.qa-row:hover { background: var(--gray-50); margin: 0 -20px; padding: 16px 20px; border-bottom-color: transparent; }
.qa-title { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.qa-title strong { font-size: 14px; color: var(--gray-900); font-weight: 700; }
.badge-status { padding: 2px 6px; border-radius: 2px; font-size: 13px; font-weight: 700; flex-shrink: 0; }
.badge-status.answered { background: var(--success-bg); color: var(--success); }
.badge-status.waiting { background: var(--gray-100); color: var(--gray-600); border: 1px solid var(--gray-300); }
.qa-meta { display: flex; gap: 12px; font-size: 12px; color: var(--gray-500); align-items: center; }
.qa-topic { color: var(--primary); font-weight: 700; }

.report-table { padding: 0 20px; }
.report-row { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--gray-200); }
.report-row:last-child { border-bottom: none; }
.report-row:hover { background: var(--danger-bg); margin: 0 -20px; padding: 14px 20px; border-bottom-color: transparent; }
.badge-report { background: var(--danger-bg); color: var(--danger); font-size: 13px; font-weight: 700; padding: 2px 6px; border-radius: 2px; white-space: nowrap; }
.report-title { flex: 1; font-size: 14px; color: var(--gray-900); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.report-provider { font-size: 12px; color: var(--gray-600); white-space: nowrap; }
.report-date { font-size: 12px; color: var(--gray-400); font-family: var(--font-mono); white-space: nowrap; }

.resolved-table { padding: 0 20px; }
.resolved-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--gray-200); }
.resolved-row:last-child { border-bottom: none; }
.resolved-row:hover .resolved-title { text-decoration: underline; color: var(--primary); }
.resolved-mark { color: var(--primary); font-weight: 700; font-size: 12px; }
.resolved-title { flex: 1; font-size: 13px; color: var(--gray-800); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.resolved-meta { font-size: 13px; color: var(--gray-500); }

.video-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 20px; }
.video-card { display: block; }
.video-card > a { display: block; }
.video-card .thumb { display: block; width: 100%; aspect-ratio: 16/9; background: #000 center/cover; border-radius: 4px; margin-bottom: 8px; border: 1px solid var(--gray-200); }
.video-card .v-title { font-size: 13px; color: var(--gray-900); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.video-card:hover .v-title { color: var(--primary); text-decoration: underline; }
.video-play {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.video-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 44px;
  height: 32px;
  place-items: center;
  border-radius: 9px;
  background: rgba(231,53,79,.94);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  box-shadow: 0 6px 18px rgba(20,43,82,.22);
  transform: translate(-50%,-92%);
  transition: transform .18s ease, background .18s ease;
}
.video-play:hover .video-play-icon {
  background: #c91c3c;
  transform: translate(-50%,-92%) scale(1.08);
}
.v-channel {
  display: block;
  margin-top: 5px;
  color: var(--gray-500);
  font-size: 12px;
  font-weight: 700;
}
.video-modal[hidden] { display: none; }
.video-modal {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: grid;
  padding: 24px;
  place-items: center;
}
.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8,18,34,.78);
  backdrop-filter: blur(5px);
}
.video-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(920px,100%);
  overflow: hidden;
  border-radius: 18px;
  background: #111;
  box-shadow: 0 24px 80px rgba(0,0,0,.48);
}
.video-modal-head {
  display: flex;
  min-height: 52px;
  padding: 10px 12px 10px 18px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: #fff;
}
.video-modal-head strong {
  overflow: hidden;
  color: var(--primary);
  font-size: 14px;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.video-modal-head button {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #eef1f5;
  color: var(--primary);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.video-modal-frame {
  aspect-ratio: 16/9;
  background: #000;
}
.video-modal-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-modal-open { overflow: hidden; }
.video-library-section { margin-top: 18px; }
.video-library-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.video-relations { display: flex; gap: 10px; margin-top: 7px; }
.video-relations a { color: var(--gray-500); font-size: 12px; font-weight: 700; }

.lower-boards-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.simple-list { padding: 8px 16px; }
.simple-list li a { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--gray-200); font-size: 13px; }
.simple-list li:last-child a { border-bottom: none; }
.simple-list a:hover .title { color: var(--primary); text-decoration: underline; }
.simple-list .title { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--gray-800); }
.simple-list .date { font-size: 13px; color: var(--gray-400); font-family: var(--font-mono); }
.new-item-icon {
  display: inline-flex;
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  margin-right: 7px;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: var(--danger, #e7354f);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.side-widget { background: var(--surface); border: 1px solid var(--gray-300); }
.side-widget .widget-head { padding: 12px 16px; border-bottom: 1px solid var(--gray-200); background: var(--gray-50); display: flex; justify-content: space-between; align-items: center; }
.side-widget .widget-head h3 { font-size: 14px; font-weight: 700; color: var(--gray-900); }
.side-widget .widget-head .more { font-size: 16px; color: var(--gray-400); }
.side-widget .widget-head .more:hover { color: var(--gray-900); }
.side-widget .widget-body { padding: 16px; }

.login-widget { border-top: 2px solid var(--gray-900); }
.login-form { display: flex; flex-direction: column; gap: 8px; }
.login-form input { height: 36px; padding: 0 10px; border: 1px solid var(--gray-300); font-size: 13px; border-radius: 2px; }
.login-form input:focus { border-color: var(--primary); outline: none; }
.btn-login { height: 40px; background: var(--primary); color: #fff; font-weight: 700; border-radius: 2px; margin-top: 4px; }
.btn-login:hover { background: var(--primary-hover); }
.login-links { display: flex; justify-content: space-between; font-size: 12px; color: var(--gray-600); margin-top: 4px; }
.login-links a { color: var(--gray-600); margin-left: 8px; }
.login-links a:hover { color: var(--gray-900); }
.login-logged { text-align: center; }
.user-greeting { font-size: 14px; color: var(--gray-800); margin-bottom: 12px; }
.user-greeting strong { color: var(--gray-900); }
.user-stats { display: flex; gap: 8px; margin-bottom: 12px; }
.user-stats a { flex: 1; background: var(--gray-50); border: 1px solid var(--gray-200); padding: 8px; font-size: 12px; font-weight: 700; color: var(--gray-700); }
.user-stats a:hover { border-color: var(--primary); color: var(--primary); background: #fff; }
.user-stats strong { color: var(--primary); }
.user-actions { display: flex; gap: 8px; }
.btn-sub { flex: 1; display: inline-flex; align-items: center; justify-content: center; height: 32px; border: 1px solid var(--gray-300); font-size: 12px; font-weight: 600; color: var(--gray-700); }
.btn-sub:hover { background: var(--gray-50); color: var(--gray-900); }

.prob-widget form { display: flex; flex-direction: column; gap: 8px; }
.prob-widget select { height: 36px; padding: 0 10px; border: 1px solid var(--gray-300); font-size: 13px; color: var(--gray-800); border-radius: 2px; }
.prob-widget select:focus { border-color: var(--primary); outline: none; }
.btn-submit { height: 36px; background: var(--gray-900); color: #fff; font-weight: 700; border-radius: 2px; margin-top: 4px; }
.btn-submit:hover { background: #000; }

.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.calc-btn { display: flex; align-items: center; justify-content: center; height: 40px; background: var(--gray-50); border: 1px solid var(--gray-300); font-size: 13px; font-weight: 700; color: var(--gray-800); border-radius: 4px; }
.calc-btn:hover { border-color: var(--primary); color: var(--primary); background: #fff; }
.widget-body .desc { font-size: 12px; color: var(--gray-500); }

.provider-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.provider-list li { border: 1px solid var(--gray-200); border-radius: 4px; }
.prov-link { display: flex; flex-direction: column; padding: 10px 12px; background: var(--gray-50); }
.prov-link:hover { background: #fff; border-color: var(--primary); }
.prov-name { font-size: 13px; font-weight: 700; color: var(--gray-900); }
.prov-meta { font-size: 13px; color: var(--gray-500); margin-top: 4px; }
.btn-compare { display: flex; align-items: center; justify-content: center; height: 36px; border: 1px solid var(--gray-300); font-size: 13px; font-weight: 700; color: var(--gray-700); border-radius: 4px; }
.btn-compare:hover { background: var(--gray-50); color: var(--gray-900); }

.rank-list { display: flex; flex-direction: column; gap: 8px; }
.rank-list a { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--gray-800); }
.rank-list a:hover { text-decoration: underline; color: var(--primary); }
.rank-list .rank { width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; background: var(--gray-200); font-size: 13px; font-weight: 700; font-family: var(--font-mono); border-radius: 2px; flex-shrink: 0; }
.rank-list li:nth-child(1) .rank { background: var(--danger); color: #fff; }
.rank-list li:nth-child(2) .rank { background: var(--primary); color: #fff; }
.rank-list li:nth-child(3) .rank { background: var(--gray-800); color: #fff; }
.rank-list .title { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.site-footer {
  background: #fff;
  border-top: 1px solid rgba(229,232,237,.9);
  padding: 24px 0 48px;
  margin-top: auto;
}
.footer-inner {
  color: var(--muted);
  font-size: 13px;
  text-align: left;
}
.footer-notice {
  padding: 32px 36px;
  border: 1px solid rgba(229,232,237,0.8);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(20,43,82,0.04);
  display: flex;
  align-items: flex-start;
  gap: 32px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.06em;
  margin-top: -2px;
}
.footer-brand .brand-logo {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--danger);
  position: relative;
}
.footer-brand .brand-logo:after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E") no-repeat center center / 14px 14px;
}
.footer-brand .hl {
  color: var(--danger);
}
.footer-notice-content {
  flex: 1;
  min-width: 0;
}
.footer-policy-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}
.footer-policy-links a {
  color: var(--primary);
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
  font-size: 13.5px;
}
.footer-policy-links a:not(:last-child)::after {
  content: "·";
  margin-left: 12px;
  color: #c9ced6;
  font-weight: 400;
}
.footer-policy-links a.privacy-link {
  color: var(--danger);
}
.footer-policy-links a:hover {
  color: var(--danger);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.footer-policy-copy {
  line-height: 1.6;
}
.footer-policy-copy p {
  margin: 0;
}
.footer-intro {
  margin-bottom: 16px !important;
  color: var(--ink);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: -0.01em;
}
.footer-policy-detail {
  padding: 4px 0 4px 16px;
  border-left: 2px solid var(--line);
  color: #6b778a;
  font-size: 12.5px;
}
.footer-policy-detail p {
  margin-bottom: 6px;
}
.footer-policy-detail p:last-child {
  margin-bottom: 0;
}
.footer-copyright {
  margin-top: 18px !important;
  color: #8c97a8;
  font-weight: 600;
  font-family: var(--font-mono);
  font-size: 12px;
}

.page-layout { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 24px; padding-bottom: 40px; margin-top: 24px; max-width: 1200px; margin-left: auto; margin-right: auto; padding-left: 16px; padding-right: 16px; }
.page-layout:has(> .page-main:only-child) { grid-template-columns: minmax(0,1fr); }
.page-main, .page-side { min-width: 0; }
.hub-hero { background: var(--surface); padding: 40px 0; border-bottom: 1px solid var(--gray-300); text-align: center; margin-bottom: 24px; }
.hub-hero h1 { font-size: 24px; font-weight: 700; color: var(--gray-900); margin-bottom: 12px; }
.hub-hero p { color: var(--gray-600); font-size: 14px; }
.mobile-nav { display: none; }

/* Reference composition: a quiet canvas, narrow visual rail, service column, broad content stage. */
:root {
  --primary: #142b52;
  --primary-hover: #203f70;
  --danger: #e7354f;
  --danger-bg: #fff0f2;
  --cyan: #19b8c6;
  --warm: #f8df78;
  --canvas: #f4f5f7;
  --ink: #142033;
  --muted: #748095;
  --line: #e5e8ed;
  --surface: #ffffff;
}
body { background: var(--canvas); color: var(--ink); }
.container { max-width: 1240px; }
.utility-strip { height: 25px; background: #eef0f3; border-bottom: 1px solid #e0e3e8; font-size: 13px; }
.portal-global-header { height: 66px; position: relative; border-bottom: 3px solid var(--danger); box-shadow: 0 1px 0 rgba(20,43,82,.06); }
.portal-global-header .container { gap: 28px; }
.pgh-brand { font-size: 25px; letter-spacing: -.08em; min-width: 190px; }
.brand-logo { width: 30px; height: 30px; border-radius: 50%; background: var(--danger); position: relative; }
.brand-logo:after { content: ""; position:absolute; inset:0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E") no-repeat center center / 16px 16px; }
.pgh-brand .hl { color: var(--danger); }
.pgh-nav { justify-content: center; gap: 25px; }
.pgh-nav a { font-size: 14px; letter-spacing: -.04em; }
.pgh-actions { gap: 7px; }
.auth-link, .user-name { font-size: 13px; }
.btn-ask, .btn-report { height: 29px; border-radius: 5px; font-size: 13px; padding: 0 10px; }
.btn-ask { background: var(--danger); border-color: var(--danger); }
.btn-report { color: var(--primary); border-color: var(--primary); background: #fff; }
.portal-wrapper { max-width: 1240px; margin: 18px auto 62px; padding: 0; display: grid; grid-template-columns: 128px 240px minmax(0,1fr); gap: 12px; align-items: start; }
.portal-left-rail { grid-column: 1; grid-row: 1; gap: 10px; }
.portal-side { grid-column: 2; grid-row: 1; width: auto; gap: 10px; }
.portal-main { grid-column: 3; grid-row: 1; gap: 14px; }
.portal-left-rail > section, .side-widget, .portal-section, .portal-tool, .portal-search-intro, .dash-box { border: 0; border-radius: 8px; box-shadow: 0 5px 16px rgba(20,43,82,.08); }
.rail-art { display: block; position: relative; height: 318px; overflow: hidden; border-radius: 7px; background: var(--primary); }
.rail-art img { width: 100%; height: 100%; object-fit: cover; object-position: 51% center; display: block; }
.rail-art span { position: absolute; left: 10px; right: 8px; bottom: 11px; color: #fff; font-size: 13px; line-height: 1.35; text-shadow: 0 1px 2px #142b52; }
.rail-art b { font-size: 15px; }
.rail-service-banner {
  position: relative;
  display: flex;
  min-height: 356px;
  padding: 24px 18px 20px;
  overflow: hidden;
  flex-direction: column;
  border-radius: 17px;
  color: #fff;
  background:
    radial-gradient(circle at 82% 14%, rgba(255,213,94,.95) 0 34px, transparent 35px),
    radial-gradient(circle at 16% 82%, rgba(24,190,204,.58) 0 54px, transparent 55px),
    linear-gradient(155deg, #173866 0%, #142b52 54%, #0d1d38 100%);
  box-shadow:
    0 18px 34px rgba(20,43,82,.20),
    inset 0 1px 0 rgba(255,255,255,.18);
}
.rail-service-banner::before,
.rail-service-banner::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 50%;
  pointer-events: none;
}
.rail-service-banner::before {
  width: 150px;
  height: 150px;
  right: -82px;
  top: 82px;
}
.rail-service-banner::after {
  width: 90px;
  height: 90px;
  left: -48px;
  bottom: 54px;
}
.rail-service-banner:hover {
  color: #fff;
  transform: translateY(-3px);
  box-shadow:
    0 23px 42px rgba(20,43,82,.25),
    inset 0 1px 0 rgba(255,255,255,.22);
}
.rail-service-kicker {
  position: relative;
  z-index: 1;
  color: #ffd55e;
  font: 700 12px/1 var(--font-mono);
  letter-spacing: 0.02em;
}
.rail-service-banner > strong {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  font-size: 22px;
  line-height: 1.22;
  letter-spacing: -.06em;
}
.rail-service-copy {
  position: relative;
  z-index: 1;
  margin-top: 14px;
  color: rgba(255,255,255,.74);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.65;
  word-break: keep-all;
}
.rail-service-steps {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 20px 1fr;
  align-items: center;
  margin-top: auto;
}
.rail-service-steps i {
  display: grid;
  min-height: 48px;
  padding: 8px 4px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.86);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  text-align: center;
}
.rail-service-steps b {
  height: 1px;
  background: rgba(255,255,255,.28);
}
.rail-service-action {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 43px;
  margin-top: 14px;
  padding: 0 13px;
  border-radius: 11px;
  background: #fff;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(7,17,35,.20);
}
.rail-service-action b {
  color: var(--danger);
  font-size: 16px;
}
.rail-login { border-top: 3px solid var(--danger) !important; padding: 14px 12px; }
.rail-menu { border: 0 !important; overflow: hidden; }
.rail-menu h2, .rail-mini h2 { padding: 11px 12px; background: var(--primary); color:#fff; border:0; }
.rail-menu a { min-height: 36px; background: #fff; }
.rail-menu a:hover { background: #fff4df; color: var(--danger); }
.rail-question { border-left: 4px solid var(--danger); }
.rail-report { border-left: 4px solid var(--cyan); }
.rail-mini { overflow:hidden; }
.portal-search-intro { min-height: 216px; padding: 25px 30px 18px; text-align: left; position: relative; overflow: hidden; background: var(--warm) url("img/ev-community-hero-banner.webp") right center / auto 100% no-repeat; }
.portal-search-intro:after { content:""; position:absolute; inset:0 42% 0 0; background: rgba(248,223,120,.46); pointer-events:none; }
.hero-copy, .search-form-wrap, .search-paths, .popular-searches { position:relative; z-index:1; }
.hero-eyebrow { color: var(--danger); font: 700 12px/1 var(--font-sans); letter-spacing: -0.01em; }
.portal-search-intro h1 { margin: 12px 0 7px; color: var(--primary); font-size: 28px; line-height: 1.14; letter-spacing: -.08em; }
.portal-search-intro h1 strong { color: var(--danger); }
.hero-copy p { color: #40506b; font-size: 13px; font-weight: 700; line-height: 1.55; }
.search-form-wrap { width: 52%; margin-top: 17px; }
.search-form-wrap form { height: 37px; max-width: none; border: 0; border-radius: 5px; background:#fff; box-shadow: 0 3px 9px rgba(20,43,82,.13); }
.search-form-wrap input { font-size: 12px; padding: 0 12px; background: transparent; }
.search-form-wrap button { width: 52px; background: var(--danger); font-size: 12px; }
.search-paths { justify-content:flex-start; gap: 5px; margin-top: 8px; }
.search-paths a { padding: 3px 8px; border:0; background: rgba(255,255,255,.55); border-radius: 3px; color: var(--primary); font-size: 12px; }
.popular-searches { justify-content:flex-start; gap: 9px; margin-top: 9px; font-size: 12px; }
.popular-searches .num { color:var(--danger); }
.portal-action-tiles { gap: 10px; }
.portal-action-tiles a { min-height: 92px; padding: 17px 17px; border-radius: 8px; box-shadow: 0 5px 16px rgba(20,43,82,.09); position:relative; overflow:hidden; }
.portal-action-tiles a:nth-child(1) { background:#fff; border-top: 4px solid var(--danger); }
.portal-action-tiles a:nth-child(2) { background:#fff; border-top: 4px solid #edb81f; }
.portal-action-tiles a:nth-child(3) { background:#fff; border-top: 4px solid var(--cyan); }
.portal-action-tiles a:before { content:""; width:34px; height:34px; border-radius:50%; background:#fff0f2; position:absolute; right:16px; top:18px; }
.portal-action-tiles a:nth-child(2):before { background:#fff7d8; }
.portal-action-tiles a:nth-child(3):before { background:#e4fafb; }
.portal-action-tiles strong { font-size: 16px; color:var(--primary); }
.portal-action-tiles span { font-size: 13px; color:var(--muted); }
.portal-action-tiles b { color:var(--danger); font-size:22px; }
.login-widget { border-top:3px solid var(--danger); }
.login-form { padding: 13px; }
.login-form input { height: 31px; border:1px solid var(--line); border-radius:4px; margin-bottom:6px; font-size: 13px; }
.btn-login { height:34px; border-radius:4px; background:var(--danger); font-size:12px; }
.login-links { font-size: 12px; }
.provider-widget { background: var(--cyan); color:var(--primary); }
.provider-widget .widget-head { border-bottom-color:rgba(20,43,82,.15); }
.provider-widget .widget-head h3 { color:var(--primary); }
.provider-widget .widget-body { padding: 10px; }
.provider-widget .prov-link { border-bottom-color:rgba(20,43,82,.14); }
.provider-widget .prov-name, .provider-widget .prov-meta { color:var(--primary); }
.btn-compare { background:var(--primary); color:#fff; border:0; }
.pop-widget, .cmt-widget { background:#fff; }
.side-widget { box-shadow: 0 5px 16px rgba(20,43,82,.08); }
.portal-dashboard { gap:10px; }
.dash-col { gap:10px; }
.dash-box { box-shadow:none; border:1px solid var(--line); }
.dash-head { padding:11px 13px; }
.dash-head h3 { font-size:13px; color:var(--primary); }
.dash-list { padding:7px 13px; }
.portal-tool-grid { gap:10px; }
.portal-tool, .portal-section { box-shadow:0 5px 16px rgba(20,43,82,.07); border:0; }
.portal-section { padding: 19px; }
.section-head h3 { color:var(--primary); }
.section-head h3:before { background:var(--danger); }
.site-footer { background:#fff; border-top:1px solid rgba(229,232,237,.9); color:var(--muted); }
.footer-inner strong { color:#fff; }

/* Keep the portal grid rules last so legacy component declarations cannot widen the rail
   or restore the former right sidebar. */
@media (min-width: 1025px) {
  .portal-wrapper { display:grid; grid-template-columns:128px 240px minmax(0,1fr); gap:12px; max-width:1240px; }
  .portal-left-rail { grid-column:1; grid-row:1; width:auto; }
  .portal-side { grid-column:2; grid-row:1; width:auto; }
  .portal-main { grid-column:3; grid-row:1; min-width:0; }
}

/* Portal refresh: compact Korean information hub */
.utility-strip { height: 28px; background: #f7f8fa; border-bottom: 1px solid #e3e7ed; color: #7b8794; font-size: 13px; }
.utility-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.utility-links { display: flex; gap: 16px; }
.utility-links a:hover { color: var(--primary); }
.portal-wrapper { max-width: 1280px; display: grid; grid-template-columns: 180px minmax(0, 1fr) 250px; gap: 12px; align-items: start; margin-top: 14px; }
.portal-left-rail { grid-column: 1; display: flex; flex-direction: column; gap: 10px; }
.portal-main { grid-column: 2; grid-row: 1; gap: 12px; }
.portal-side { grid-column: 3; grid-row: 1; width: auto; gap: 10px; }
.portal-left-rail > section, .side-widget, .portal-section, .portal-tool, .portal-search-intro, .dash-box { border-radius: 3px; box-shadow: 0 1px 3px rgba(24,42,65,.06); }
.rail-login { background: #fff; border-top: 3px solid var(--primary); padding: 14px 12px; }
.rail-login strong { display: block; color: var(--gray-900); font-size: 14px; }
.rail-login span { display: block; color: var(--gray-500); font-size: 13px; margin: 4px 0 12px; }
.rail-primary { display: flex; align-items: center; justify-content: center; min-height: 36px; background: var(--primary); color: #fff; font-size: 12px; font-weight: 700; border-radius: 2px; }
.rail-primary:hover { background: var(--primary-hover); }
.rail-menu, .rail-mini { background: #fff; border: 1px solid var(--gray-300); }
.rail-menu h2, .rail-mini h2 { padding: 10px 12px; border-bottom: 1px solid var(--gray-200); color: var(--gray-900); font-size: 12px; font-weight: 700; }
.rail-menu a { display: flex; align-items: center; justify-content: space-between; min-height: 38px; padding: 0 12px; border-bottom: 1px solid var(--gray-100); color: var(--gray-700); font-size: 12px; font-weight: 700; }
.rail-menu a:hover { background: #f5f8fc; color: var(--primary); }
.rail-menu b { color: var(--gray-400); font-size: 17px; font-weight: 400; }
.rail-menu .rail-question { border-left: 3px solid var(--primary); }
.rail-menu .rail-report { border-left: 3px solid var(--danger); }
.rail-mini { padding-bottom: 7px; }
.rail-mini a, .rail-mini p { display: block; padding: 7px 12px 0; color: var(--gray-600); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rail-mini a:hover { color: var(--primary); text-decoration: underline; }
.portal-search-intro { padding: 17px 20px 13px; text-align: left; border-top: 3px solid var(--primary); }
.portal-search-intro h2 { margin-bottom: 10px; font-size: 17px; }
.search-form-wrap form { max-width: none; height: 42px; border: 2px solid var(--primary); border-radius: 3px; }
.search-form-wrap input { font-size: 13px; }
.search-form-wrap button { width: 62px; font-size: 12px; }
.search-paths { justify-content: flex-start; gap: 6px; margin-top: 9px; }
.search-paths a { padding: 4px 9px; border-radius: 2px; font-size: 13px; }
.popular-searches { justify-content: flex-start; gap: 12px; margin-top: 9px; font-size: 13px; }
.portal-action-tiles { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.portal-action-tiles a { min-height: 72px; padding: 12px 13px; background: #fff; border: 1px solid var(--gray-300); border-top: 3px solid var(--primary); border-radius: 3px; box-shadow: 0 1px 3px rgba(24,42,65,.06); position: relative; }
.portal-action-tiles a:nth-child(2) { border-top-color: #536f9e; }
.portal-action-tiles a:nth-child(3) { border-top-color: #8999ad; }
.portal-action-tiles strong, .portal-action-tiles span { display: block; }
.portal-action-tiles strong { color: var(--gray-900); font-size: 13px; }
.portal-action-tiles span { margin-top: 4px; color: var(--gray-500); font-size: 13px; }
.portal-action-tiles b { position: absolute; right: 12px; bottom: 10px; color: var(--primary); font-size: 18px; font-weight: 400; }
.portal-action-tiles a:hover { background: #f7faff; transform: translateY(-1px); }
.portal-dashboard { gap: 10px; }
.dash-col { gap: 10px; }
.dash-head { padding: 10px 12px; }
.dash-head h3 { font-size: 13px; }
.dash-list { padding: 6px 12px; }
.dash-list li { padding: 5px 0; }
.dash-list .title { font-size: 12px; }
.dash-list .meta { font-size: 12px; }
.portal-tool-grid { gap: 10px; }
.portal-tool { padding: 14px; }
.tool-heading h3 { font-size: 15px; }
.portal-section .section-head { padding: 11px 14px; }
.qa-table, .report-table, .resolved-table { padding: 0 14px; }
.qa-row { padding: 12px 0; }
.qa-title strong, .report-title { font-size: 13px; }
.video-grid { gap: 10px; padding: 14px; }
.lower-boards-grid { gap: 10px; }
.side-widget .widget-head { padding: 10px 12px; }
.side-widget .widget-body { padding: 12px; }
.login-widget { border-top-width: 3px; }

/* Final layout lock: desktop follows the reference rail / utility / stage order. */
@media (min-width: 1025px) {
  .portal-wrapper { display: grid; grid-template-columns: 128px 240px minmax(0, 1fr); gap: 12px; max-width: 1240px; margin: 18px auto 62px; padding: 0; }
  .portal-left-rail { grid-column: 1; grid-row: 1; width: auto; }
  .portal-side { grid-column: 2; grid-row: 1; width: auto; }
  .portal-main { grid-column: 3; grid-row: 1; min-width: 0; }
}

/* Soft, dimensional portal surfaces */
.portal-left-rail > section,
.side-widget,
.portal-section,
.portal-tool,
.portal-search-intro,
.dash-box,
.portal-action-tiles a {
  border-radius: 12px;
  border: 1px solid rgba(20, 43, 82, .06);
  box-shadow:
    0 12px 28px rgba(20, 43, 82, .10),
    0 3px 8px rgba(20, 43, 82, .06),
    inset 0 1px 0 rgba(255,255,255,.92);
}
.rail-art {
  border-radius: 13px;
  box-shadow: 0 14px 30px rgba(20,43,82,.18);
}
.rail-login,
.rail-menu,
.rail-mini,
.side-widget,
.portal-section {
  overflow: hidden;
}
.login-widget {
  border-top: 4px solid var(--danger);
}
.login-form {
  padding: 15px;
}
.login-form input {
  height: 38px;
  margin-bottom: 8px;
  padding: 0 13px;
  border: 1px solid #dce1e8;
  border-radius: 9px;
  background: linear-gradient(#fff, #fbfcfd);
  box-shadow: inset 0 2px 4px rgba(20,43,82,.05);
}
.login-form input:focus {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(231,53,79,.10);
}
.btn-login,
.rail-primary,
.btn-compare,
.tool-problem-form button {
  border-radius: 9px;
  box-shadow:
    0 7px 14px rgba(20,43,82,.16),
    inset 0 1px 0 rgba(255,255,255,.24);
  transition: transform .16s ease, box-shadow .16s ease;
}
.btn-login {
  height: 40px;
  background: linear-gradient(180deg, #ef4760 0%, #df2944 100%);
}
.btn-login:hover,
.rail-primary:hover,
.btn-compare:hover,
.tool-problem-form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(20,43,82,.20);
}
.provider-widget {
  background: linear-gradient(155deg, #32c8d1 0%, #18b4c3 100%);
}
.provider-widget .widget-head {
  background: rgba(255,255,255,.17);
}
.provider-widget .provider-list,
.provider-widget .btn-compare {
  border-radius: 9px;
}
.portal-search-intro {
  border-radius: 14px;
  box-shadow: 0 14px 32px rgba(20,43,82,.13);
}
.search-form-wrap form {
  border-radius: 10px;
  box-shadow:
    0 9px 20px rgba(20,43,82,.16),
    inset 0 1px 0 #fff;
}
.search-form-wrap button {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25);
}
.search-paths a {
  border-radius: 999px;
  box-shadow: 0 3px 8px rgba(20,43,82,.08);
}
.portal-action-tiles a {
  min-height: 96px;
  padding: 18px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.portal-action-tiles a:hover {
  transform: translateY(-3px);
  box-shadow:
    0 17px 34px rgba(20,43,82,.15),
    0 5px 10px rgba(20,43,82,.08),
    inset 0 1px 0 #fff;
}
.portal-action-tiles a:before {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  box-shadow:
    0 7px 14px rgba(20,43,82,.08),
    inset 0 2px 3px rgba(255,255,255,.9);
}
.dash-box {
  min-height: 96px;
  background: linear-gradient(180deg, #fff 0%, #fdfefe 100%);
}
.dash-head,
.side-widget .widget-head,
.section-head {
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}
.portal-tool,
.portal-section {
  background: linear-gradient(180deg, #fff 0%, #fcfdfe 100%);
}
.tool-links a,
.calc-btn,
.provider-list li {
  border-radius: 8px;
}
.badge-status,
.badge-report {
  border-radius: 999px;
}
.mobile-nav {
  box-shadow: 0 -8px 22px rgba(20,43,82,.10);
}

/* Extra-soft finish */
html {
  scroll-behavior: smooth;
}
body {
  background: #f6f7fa;
}
a,
button,
input,
select,
.portal-action-tiles a,
.dash-box,
.side-widget,
.portal-tool,
.portal-section {
  transition:
    color .22s ease,
    background-color .22s ease,
    border-color .22s ease,
    box-shadow .22s ease,
    transform .22s ease;
}
.portal-wrapper {
  gap: 16px;
}
.portal-main,
.portal-side,
.portal-left-rail {
  gap: 14px;
}
.portal-left-rail > section,
.side-widget,
.portal-section,
.portal-tool,
.dash-box,
.portal-action-tiles a {
  border-radius: 16px;
  border-color: rgba(20,43,82,.035);
  box-shadow:
    0 16px 38px rgba(20,43,82,.075),
    0 5px 14px rgba(20,43,82,.04),
    inset 0 1px 0 rgba(255,255,255,.96);
}
.portal-search-intro {
  border-radius: 19px;
  border-color: rgba(20,43,82,.04);
  box-shadow:
    0 18px 42px rgba(20,43,82,.10),
    0 5px 14px rgba(20,43,82,.05);
}
.rail-art {
  border-radius: 17px;
  box-shadow:
    0 18px 38px rgba(20,43,82,.14),
    0 5px 14px rgba(20,43,82,.07);
}
.portal-action-tiles a {
  border-top-width: 3px;
  border-left-color: transparent;
  border-right-color: transparent;
  border-bottom-color: transparent;
}
.portal-action-tiles a:before {
  width: 46px;
  height: 46px;
  filter: blur(.1px);
  opacity: .78;
}
.dash-box:hover,
.side-widget:hover,
.portal-tool:hover {
  transform: translateY(-2px);
  box-shadow:
    0 20px 42px rgba(20,43,82,.09),
    0 6px 16px rgba(20,43,82,.045),
    inset 0 1px 0 rgba(255,255,255,.98);
}
.dash-head,
.side-widget .widget-head,
.section-head {
  border-bottom-color: rgba(20,43,82,.07);
}
.dash-list li + li,
.simple-list li + li {
  border-top-color: rgba(20,43,82,.045);
}
.login-form input,
.tool-problem-form select,
.search-form-wrap form,
.calc-btn,
.tool-links a,
.provider-list li {
  border-radius: 12px;
}
.login-form input,
.tool-problem-form select {
  border-color: rgba(20,43,82,.12);
  background: rgba(255,255,255,.94);
  box-shadow:
    inset 0 2px 5px rgba(20,43,82,.035),
    0 1px 0 rgba(255,255,255,.9);
}
.btn-login,
.rail-primary,
.btn-compare,
.tool-problem-form button,
.btn-ask,
.btn-report {
  border-radius: 12px;
}
.search-paths a,
.badge-status,
.badge-report {
  border-radius: 999px;
}
.qa-row,
.report-row,
.resolved-row,
.simple-list li a {
  transition: background-color .2s ease, padding .2s ease, color .2s ease;
}
.qa-row:hover,
.report-row:hover {
  border-radius: 10px;
}
.video-card .thumb {
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(20,43,82,.08);
}
.mobile-nav {
  border-top-color: rgba(20,43,82,.06);
  box-shadow: 0 -12px 30px rgba(20,43,82,.08);
}

@media (min-width: 1025px) {
  .portal-wrapper {
    grid-template-columns: 128px 240px minmax(0, 1fr);
    gap: 16px;
  }
}

/* Round every remaining rectangular UI surface */
:where(
  .portal-global-header,
  .member-shell-nav,
  .rail-art,
  .rail-login,
  .rail-menu,
  .rail-mini,
  .side-widget,
  .portal-search-intro,
  .portal-action-tiles a,
  .dash-box,
  .portal-tool,
  .portal-section,
  .video-card .thumb,
  .calc-btn,
  .provider-list li,
  .prov-link,
  .btn-compare,
  .btn-login,
  .btn-sub,
  .btn-submit,
  .btn-ask,
  .btn-report,
  .rail-primary,
  .tool-problem-form button,
  .tool-problem-form select,
  .login-form input,
  .pgh-search form,
  .search-form-wrap form,
  .search-paths a,
  .tool-links,
  .tool-links a,
  .user-stats a,
  .badge-status,
  .badge-report
) {
  border-radius: 14px;
}
.portal-global-header {
  border-radius: 0 0 16px 16px;
}
.rail-menu h2,
.rail-mini h2,
.side-widget .widget-head,
.section-head,
.dash-head {
  border-radius: 14px 14px 10px 10px;
}
.rail-menu a,
.simple-list li a,
.qa-row,
.report-row,
.resolved-row {
  border-radius: 10px;
}
.rail-menu a {
  margin: 3px 6px;
}
.rail-menu a:last-child {
  margin-bottom: 7px;
}
.tool-links {
  gap: 5px;
  border: 0;
  overflow: visible;
}
.tool-links a {
  border: 1px solid rgba(20,43,82,.08);
}
.login-links label,
.qa-tabs a,
.tool-followups a {
  border-radius: 999px;
}
button,
input,
select,
textarea {
  border-radius: 12px;
}
.mobile-nav {
  border-radius: 18px 18px 0 0;
}

/* Two-level portal header */
.utility-strip {
  height: 42px;
  border-bottom: 1px solid #e8ebf0;
  background: #fbfcfe;
  color: #505966;
}
.utility-inner {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.utility-left,
.utility-right {
  display: flex;
  align-items: center;
}
.utility-left {
  gap: 9px;
  color: #59616c;
  font-size: 12px;
}
.favorite-link {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #3c4653;
  font-size: 12px;
  font-weight: 700;
  box-shadow: none;
}
.favorite-link::first-letter {
  color: #ffc400;
}
.utility-left a:hover,
.favorite-link:hover {
  color: var(--danger);
  transform: none;
}
.utility-right {
  gap: 8px;
}
.utility-event {
  display: inline-flex;
  height: 32px;
  padding: 0 11px 0 7px;
  align-items: center;
  gap: 6px;
  border: 1px solid #d9eef1;
  border-radius: 9px;
  background: #f2fbfc;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.utility-event:hover {
  border-color: #a7dfe4;
  background: #e8f8fa;
  transform: translateY(-1px);
}
.utility-event b {
  display: inline-grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 6px;
  background: #1db8c6;
  color: #fff;
  font-size: 13px;
  box-shadow: 0 3px 7px rgba(29,184,198,.2);
}
.utility-search {
  display: flex;
  width: 270px;
  height: 32px;
  overflow: hidden;
  border: 1px solid #dde2e9;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 2px 7px rgba(20,43,82,.04);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.utility-search:focus-within {
  border-color: #99a8bc;
  box-shadow: 0 0 0 3px rgba(20,43,82,.08);
}
.utility-search input {
  flex: 1;
  width: 100%;
  height: 30px;
  min-height: 0;
  padding: 0 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #24344d;
  font-size: 13px;
  font-weight: 600;
  box-shadow: none;
  outline: none;
}
.utility-search input::placeholder {
  color: #98a1af;
  font-weight: 500;
}
.utility-search button {
  display: grid;
  width: 36px;
  min-width: 36px;
  height: 30px;
  min-height: 0;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #526176;
  box-shadow: none;
}
.utility-search button:hover {
  background: #f1f4f8;
  color: var(--danger);
  transform: none;
}
.utility-search button svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}
.utility-auth {
  display: inline-flex;
  height: 32px;
  min-width: 52px;
  padding: 0 12px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--danger);
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  transition: color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease;
}
.utility-auth:hover {
  transform: translateY(-1px);
}
.utility-login {
  background: #fff;
  color: var(--danger);
}
.utility-login:hover {
  background: #fff5f6;
  box-shadow: 0 4px 10px rgba(231,53,79,.09);
}
.utility-join {
  background: var(--danger);
  color: #fff;
  box-shadow: 0 4px 10px rgba(231,53,79,.18);
}
.utility-join:hover {
  background: #d92a45;
  color: #fff;
  box-shadow: 0 5px 13px rgba(231,53,79,.24);
}
.portal-global-header {
  height: 78px;
  border-bottom: 3px solid var(--danger);
  border-radius: 0;
  background: #fff;
  box-shadow: 0 3px 10px rgba(20,43,82,.04);
}
.portal-global-header .container {
  position: relative;
  display: grid;
  grid-template-columns: 235px minmax(0,1fr) 48px;
  gap: 20px;
}
.pgh-brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}
.mcash-brand-mark {
  display: inline-flex;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  align-items: center;
  justify-content: center;
  border: 3px solid #fff;
  border-radius: 50%;
  background: linear-gradient(145deg, #ef405b, #ba1730);
  box-shadow: 0 4px 12px rgba(196,31,57,.22), 0 0 0 2px #d92542;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}
.pgh-brand .brand-lockup strong {
  color: #171b23;
  font-size: 25px;
  font-weight: 900;
  letter-spacing: -.08em;
  line-height: 1.05;
  white-space: nowrap;
}
.brand-image {
  display: block;
  width: 176px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}
.brand-logo {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 50%;
  background: var(--danger);
  box-shadow: 0 5px 12px rgba(231,53,79,.2);
}
.brand-lockup {
  display: flex;
  flex-direction: column;
}
.brand-lockup small {
  margin-top: -2px;
  color: #8a929e;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: -.02em;
}
.pgh-nav {
  display: flex;
  height: 100%;
  align-items: stretch;
  justify-content: center;
  gap: 0;
}
.pgh-nav a {
  position: relative;
  display: flex;
  min-width: 94px;
  padding: 0 13px;
  align-items: center;
  justify-content: center;
  color: #151a22;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -.035em;
}
.pgh-nav .desktop-nav-icon {
  display: block;
  width: 23px;
  height: 23px;
  margin-right: 8px;
  flex: 0 0 23px;
  color: #66758a;
  transition: color .2s ease, transform .2s ease;
}
.pgh-nav a:hover .desktop-nav-icon {
  color: var(--danger);
  transform: translateY(-2px);
}
.pgh-nav .nav-icon {
  position: relative;
  display: inline-grid;
  width: 22px;
  height: 28px;
  margin-right: 9px;
  place-items: center;
  border-radius: 11px 11px 5px 5px;
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.38),
    inset 0 -5px 9px rgba(0,0,0,.08),
    0 8px 11px rgba(231,53,79,.22);
}
.pgh-nav .nav-icon::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 2px;
  right: 2px;
  bottom: -7px;
  height: 10px;
  border-radius: 50%;
  background: currentColor;
  opacity: .28;
  filter: blur(5px);
}
.pgh-nav .nav-provider {
  background: linear-gradient(155deg,#ffca43 0%,#ef9900 100%);
  color: #f2a000;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.48), inset 0 -5px 9px rgba(125,72,0,.12), 0 8px 12px rgba(239,153,0,.22);
}
.pgh-nav .nav-question {
  background: linear-gradient(155deg,#33d7d8 0%,#009ea9 100%);
  color: #0fb8bd;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.48), inset 0 -5px 9px rgba(0,91,99,.12), 0 8px 12px rgba(0,158,169,.22);
}
.pgh-nav .nav-report {
  background: linear-gradient(155deg,#ff5073 0%,#ed204c 100%);
  color: #f42f58;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.48), inset 0 -5px 9px rgba(130,0,30,.12), 0 8px 12px rgba(237,32,76,.24);
}
.pgh-nav .nav-solve {
  background: linear-gradient(155deg,#6b8ff2 0%,#3e5fc7 100%);
  color: #5475d8;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.48), inset 0 -5px 9px rgba(22,43,111,.12), 0 8px 12px rgba(62,95,199,.22);
}
.pgh-nav .nav-calc {
  background: linear-gradient(155deg,#ffd64f 0%,#eca900 100%);
  color: #f0b700;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.48), inset 0 -5px 9px rgba(128,83,0,.12), 0 8px 12px rgba(236,169,0,.22);
}
.pgh-nav .nav-video {
  background: linear-gradient(155deg,#ad75ea 0%,#7742bd 100%);
  color: #8953ca;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.48), inset 0 -5px 9px rgba(61,26,105,.12), 0 8px 12px rgba(119,66,189,.22);
}
.pgh-nav .nav-3d-icon {
  display: block;
  width: 34px;
  height: 34px;
  margin-right: 7px;
  flex: 0 0 34px;
  object-fit: contain;
  filter: drop-shadow(0 5px 5px rgba(20,43,82,.16));
  transform: translateY(-1px);
  transition: transform .2s ease, filter .2s ease;
}
.pgh-nav a:hover .nav-3d-icon {
  filter: drop-shadow(0 7px 7px rgba(20,43,82,.22));
  transform: translateY(-3px) scale(1.06);
}
.pgh-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: -3px;
  height: 3px;
  background: var(--danger);
  transition: left .2s ease, right .2s ease;
}
.pgh-nav a:hover {
  color: var(--danger);
}
.pgh-nav a:hover::after {
  left: 14px;
  right: 14px;
}
.pgh-nav-group {
  position: relative;
  display: flex;
  height: 100%;
  align-items: stretch;
}
.pgh-category-trigger {
  display: flex;
  min-width: 94px;
  padding: 0 13px;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: #151a22;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -.035em;
  white-space: nowrap;
  cursor: pointer;
}
.pgh-category-trigger::after {
  content: "";
  width: 6px;
  height: 6px;
  margin: -3px 0 0 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  opacity: .55;
  transition: transform .2s ease, margin-top .2s ease;
}
.pgh-category-trigger.pgh-primary-link::after {
  display: none;
}
.pgh-nav-group:hover .pgh-category-trigger,
.pgh-nav-group:focus-within .pgh-category-trigger {
  color: var(--danger);
}
.pgh-nav-group:hover .pgh-category-trigger::after,
.pgh-nav-group:focus-within .pgh-category-trigger::after {
  margin-top: 3px;
  transform: rotate(225deg);
}
.pgh-nav-group:hover .pgh-category-trigger .nav-3d-icon,
.pgh-nav-group:focus-within .pgh-category-trigger .nav-3d-icon {
  filter: drop-shadow(0 7px 7px rgba(20,43,82,.22));
  transform: translateY(-3px) scale(1.06);
}
.pgh-category-menu {
  position: absolute;
  z-index: 1100;
  top: calc(100% - 8px);
  right: 0;
  display: none;
  width: 168px;
  padding: 8px;
  border: 1px solid rgba(215,221,231,.9);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(20,43,82,.15);
}
.pgh-nav-group:hover .pgh-category-menu,
.pgh-nav-group:focus-within .pgh-category-menu {
  display: block;
}
.pgh-category-menu a {
  min-width: 0;
  height: 42px;
  padding: 0 12px;
  justify-content: flex-start;
  border-radius: 9px;
  font-size: 13px;
}
.pgh-category-menu a::after { display: none; }
.pgh-category-menu a:hover { background: #f6f8fb; }

.loan-news-cover {
  margin: 0 0 26px;
  overflow: hidden;
  border-radius: 16px;
  background: #f4f6f9;
}
.loan-news-cover img {
  display: block;
  width: 100%;
  max-height: 480px;
  object-fit: cover;
}
.loan-news-summary {
  margin: 0 0 20px;
  padding: 22px 24px;
  border: 1px solid #e2e7ee;
  border-radius: 14px;
  background: #f8fafc;
}
.loan-news-summary strong { color: var(--primary); }
.loan-news-summary p { margin: 8px 0 0; }
.loan-news-source {
  padding: 16px 18px;
  border-radius: 11px;
  background: #fff5f6;
  color: #4a5568;
}
.loan-news-source a { color: var(--danger); font-weight: 700; }
.loan-news-note { margin-top: 14px; color: var(--muted); font-size: 12px; }
.btn_bo_user .ev-write-btn {
  display: inline-flex;
  width: auto;
  min-width: 92px;
  padding: 0 16px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  white-space: nowrap;
}
.ev-write-label { display: inline; }

@media (max-width: 1240px) and (min-width: 769px) {
  .pgh-nav a,
  .pgh-category-trigger {
    min-width: 0;
    padding: 0 7px;
    font-size: 13px;
  }
  .pgh-nav .nav-3d-icon {
    width: 27px;
    height: 27px;
    margin-right: 4px;
    flex-basis: 27px;
  }
}

@media (min-width: 1241px) {
  .pgh-nav > a,
  .pgh-category-trigger {
    min-width: 82px;
    padding-right: 8px;
    padding-left: 8px;
    white-space: nowrap;
  }
  .pgh-nav-group > button.pgh-category-trigger {
    font-size: 16px;
  }
  .pgh-nav-group > button.pgh-category-trigger .nav-3d-icon {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    margin-right: 7px;
  }
  .pgh-nav .nav-3d-icon {
    width: 30px;
    height: 30px;
    margin-right: 5px;
    flex-basis: 30px;
  }
}
.header-menu-wrap {
  position: relative;
  display: flex;
  justify-content: flex-end;
}
.header-menu-button {
  display: grid;
  width: 39px;
  min-width: 39px;
  height: 39px;
  min-height: 39px;
  padding: 10px;
  place-content: center;
  gap: 4px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 5px 15px rgba(20,43,82,.13);
}
.header-menu-button span {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--danger);
}
.sound_only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.header-quick-menu {
  position: absolute;
  top: 55px;
  right: 0;
  z-index: 120;
  display: none;
  width: 190px;
  padding: 8px;
  border: 1px solid rgba(229,232,237,.9);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 35px rgba(20,43,82,.16);
}
.header-quick-menu.is-open {
  display: grid;
}
.header-quick-menu a {
  padding: 9px 10px;
  border-radius: 8px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.header-quick-menu a:hover {
  background: #fff2f4;
  color: var(--danger);
}

/* Home hierarchy uplift: larger, clearer portal modules */
@media (min-width: 1025px) {
  .portal-global-header {
    height: 86px;
  }
  .portal-global-header .container {
    grid-template-columns: 260px minmax(0,1fr) 52px;
  }
  .pgh-brand {
    min-width: 0;
  }
  .brand-image {
    width: 195px;
  }
  .brand-lockup small {
    margin-top: 0;
    font-size: 12px;
  }
  .pgh-nav a {
    min-width: 108px;
    padding: 0 16px;
    font-size: 16px;
  }
  .pgh-nav .desktop-nav-icon {
    width: 25px;
    height: 25px;
    margin-right: 9px;
    flex-basis: 25px;
  }
  .pgh-nav .nav-icon {
    width: 25px;
    height: 32px;
    margin-right: 10px;
    border-radius: 13px 13px 6px 6px;
    font-size: 12px;
  }
  .pgh-nav .nav-3d-icon {
    width: 39px;
    height: 39px;
    margin-right: 8px;
    flex-basis: 39px;
  }
  .header-menu-button {
    width: 43px;
    min-width: 43px;
    height: 43px;
    min-height: 43px;
  }
  .portal-wrapper {
    max-width: 1320px;
    grid-template-columns: 146px 266px minmax(0,1fr);
    gap: 15px;
    margin-top: 18px;
  }
  .portal-left-rail,
  .portal-side,
  .portal-main,
  .dash-col {
    gap: 15px;
  }
  .rail-art {
    height: 365px;
    border-radius: 17px;
    box-shadow: 0 15px 30px rgba(20,43,82,.14);
  }
  .rail-art span {
    left: 14px;
    right: 12px;
    bottom: 15px;
    font-size: 12px;
  }
  .rail-art b {
    font-size: 18px;
  }
  .rail-service-banner {
    min-height: 405px;
    padding: 29px 20px 22px;
  }
  .rail-service-banner > strong {
    margin-top: 22px;
    font-size: 26px;
  }
  .rail-service-copy {
    font-size: 12px;
    line-height: 1.75;
  }
  .login-widget {
    min-height: 276px;
  }
  .login-form {
    gap: 12px;
    padding: 19px;
  }
  .login-form > input:not([type="hidden"]) {
    height: 46px;
    padding: 0 16px;
    font-size: 13px;
  }
  .login-form .btn-login {
    height: 48px;
    font-size: 14px;
  }
  .login-links {
    min-height: 30px;
    font-size: 13px;
  }
  .side-quick-banner {
    min-height: 68px;
    padding: 12px 15px;
  }
  .quick-copy strong {
    font-size: 13px;
  }
  .quick-copy small {
    font-size: 12px;
  }
  .side-notice-ticker {
    min-height: 52px;
    padding: 10px 14px;
  }
  .side-widget .widget-head {
    min-height: 54px;
    padding-top: 14px;
    padding-bottom: 14px;
  }
  .side-widget .widget-head h3 {
    font-size: 15px;
  }
  .side-widget .widget-body {
    padding-top: 18px;
    padding-bottom: 18px;
  }
  .provider-list {
    gap: 10px;
  }
  .prov-link {
    padding: 13px 14px;
  }
  .prov-name {
    font-size: 14px;
  }
  .prov-meta {
    font-size: 13px;
  }
  .btn-compare {
    height: 43px;
    font-size: 13px;
  }
  .portal-main {
    gap: 16px;
  }
  .portal-search-intro {
    min-height: 275px;
    padding: 32px 34px 24px;
    border-radius: 19px;
  }
  .portal-search-intro h1 {
    margin: 14px 0 10px;
    font-size: 38px;
    line-height: 1.12;
  }
  .hero-eyebrow {
    font-size: 13px;
  }
  .hero-copy p {
    font-size: 15px;
    line-height: 1.65;
  }
  .search-form-wrap {
    width: 57%;
    margin-top: 20px;
  }
  .search-form-wrap form {
    height: 48px;
    border-radius: 12px;
  }
  .search-form-wrap input {
    padding: 0 16px;
    font-size: 13px;
  }
  .search-form-wrap button {
    width: 68px;
    font-size: 13px;
  }
  .search-paths a {
    padding: 6px 11px;
    border-radius: 8px;
    font-size: 13px;
  }
  .popular-searches {
    margin-top: 11px;
    font-size: 13px;
  }
  .portal-action-tiles {
    gap: 14px;
  }
  .portal-action-tiles a {
    min-height: 116px;
    padding: 22px 20px;
    border-radius: 17px;
  }
  .portal-action-tiles a::before {
    width: 44px;
    height: 44px;
  }
  .portal-action-tiles strong {
    font-size: 18px;
  }
  .portal-action-tiles span {
    margin-top: 7px;
    font-size: 12px;
  }
  .portal-action-tiles b {
    right: 18px;
    bottom: 14px;
    font-size: 24px;
  }
  .portal-dashboard {
    gap: 14px;
  }
  .dash-col {
    gap: 14px;
  }
  .dash-box {
    min-height: 142px;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 9px 24px rgba(20,43,82,.065);
  }
  .dash-head {
    min-height: 50px;
    padding: 13px 16px;
  }
  .dash-head h3 {
    font-size: 15px;
  }
  .dash-list {
    padding: 10px 16px 13px;
  }
  .dash-list li {
    padding: 8px 0;
  }
  .dash-list .title {
    font-size: 13px;
  }
  .dash-list .meta {
    font-size: 12px;
  }
  .portal-tool-grid {
    gap: 14px;
  }
  .portal-tool {
    min-height: 235px;
    padding: 24px;
    border-radius: 17px;
  }
  .tool-heading h3 {
    font-size: 20px;
  }
  .portal-tool > p {
    margin: 10px 0 18px;
    font-size: 13px;
  }
  .portal-section {
    padding: 24px;
    border-radius: 18px;
  }
  .section-head {
    min-height: 58px;
    padding: 16px 20px;
  }
  .section-head h3 {
    font-size: 17px;
  }
  .qa-row,
  .report-row {
    min-height: 66px;
  }
}

/* Premium home hero */
.portal-search-intro {
  isolation: isolate;
  background:
    linear-gradient(100deg,rgba(255,255,255,.99) 0%,rgba(255,255,255,.97) 43%,rgba(255,255,255,.72) 56%,rgba(255,255,255,.08) 73%),
    #fff url("img/ev-main-hero-model.webp") right center / auto 100% no-repeat;
  box-shadow:
    0 18px 38px rgba(20,43,82,.12),
    inset 0 1px 0 rgba(255,255,255,.68);
}
.portal-search-intro::before {
  content: "";
  position: absolute;
  z-index: 0;
  width: 240px;
  height: 240px;
  left: -115px;
  top: -135px;
  border: 42px solid rgba(255,255,255,.16);
  border-radius: 50%;
  pointer-events: none;
}
.portal-search-intro::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: auto auto -78px 39%;
  width: 170px;
  height: 170px;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 50%;
  background: radial-gradient(circle,rgba(255,255,255,.08) 0 37%,transparent 38%);
  pointer-events: none;
}
.portal-search-intro .hero-copy,
.portal-search-intro .search-form-wrap,
.portal-search-intro .search-paths,
.portal-search-intro .popular-searches {
  position: relative;
  z-index: 2;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid rgba(231,53,79,.14);
  border-radius: 999px;
  background: rgba(255,255,255,.42);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
  backdrop-filter: blur(8px);
}
.hero-eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--danger);
  box-shadow: 0 0 0 4px rgba(231,53,79,.12);
}
.portal-search-intro h1 {
  max-width: 560px;
  word-break: keep-all;
  text-shadow: 0 2px 0 rgba(255,255,255,.32);
}
.portal-search-intro h1 strong {
  position: relative;
  display: inline-block;
}
.portal-search-intro h1 strong::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -3px;
  right: -5px;
  bottom: 1px;
  height: 10px;
  border-radius: 5px;
  background: rgba(255,255,255,.38);
  transform: rotate(-1deg);
}
.hero-data-status {
  display: inline-flex;
  margin-top: 11px;
  align-items: center;
  gap: 7px;
  color: #334968;
  font-size: 12px;
  font-weight: 700;
}
.hero-data-status i {
  width: 7px;
  height: 7px;
  border: 2px solid rgba(255,255,255,.8);
  border-radius: 50%;
  background: #17a88b;
  box-shadow: 0 0 0 3px rgba(23,168,139,.14);
}
.portal-search-intro .search-form-wrap {
  margin-top: 15px;
}
.portal-search-intro .search-form-wrap form {
  overflow: visible;
  border: 2px solid var(--primary);
  background: rgba(255,255,255,.94);
  box-shadow:
    0 12px 24px rgba(20,43,82,.17),
    inset 0 1px 0 #fff;
}
.portal-search-intro .search-form-wrap input {
  border-radius: 10px 0 0 10px;
  color: var(--primary);
  font-weight: 700;
}
.portal-search-intro .search-form-wrap button {
  margin: -2px;
  height: calc(100% + 4px);
  border-radius: 0 11px 11px 0;
  background: linear-gradient(145deg,#ff4a66 0%,#df2445 100%);
  box-shadow:
    -5px 0 13px rgba(231,53,79,.13),
    0 8px 16px rgba(183,26,57,.22);
  text-shadow: 0 1px 1px rgba(0,0,0,.12);
}
.portal-search-intro .search-form-wrap button:hover {
  background: linear-gradient(145deg,#ff5a73 0%,#c91c3c 100%);
  transform: translateY(-1px);
}
.portal-search-intro .search-paths {
  margin-top: 11px;
}
.portal-search-intro .search-paths a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(20,43,82,.08);
  background: rgba(255,255,255,.72);
  box-shadow: 0 5px 12px rgba(20,43,82,.07);
  backdrop-filter: blur(7px);
}
.portal-search-intro .search-paths a::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--danger);
}
.portal-search-intro .search-paths a:nth-child(2)::before { background: #e7ad00; }
.portal-search-intro .search-paths a:nth-child(3)::before { background: var(--cyan); }
.portal-search-intro .search-paths a:nth-child(4)::before { background: #5d73ce; }
.portal-search-intro .popular-searches {
  align-items: center;
}
.portal-search-intro .ps-label {
  padding: 3px 7px;
  border-radius: 5px;
  background: rgba(20,43,82,.09);
  color: var(--primary);
}
.hero-policy-card {
  position: absolute;
  z-index: 3;
  right: 21px;
  bottom: 18px;
  display: flex;
  min-width: 188px;
  min-height: 55px;
  padding: 9px 12px;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(255,255,255,.62);
  border-radius: 14px;
  background: rgba(255,255,255,.83);
  color: var(--primary);
  box-shadow: 0 12px 28px rgba(20,43,82,.16);
  backdrop-filter: blur(12px);
}
.hero-policy-card > span:first-child {
  display: grid;
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(145deg,#35d1d0,#119aa8);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 6px 12px rgba(17,154,168,.24);
}
.hero-policy-card > span:nth-child(2) {
  display: grid;
  gap: 3px;
}
.hero-policy-card small {
  color: #8290a3;
  font: 700 12px/1 var(--font-mono);
  letter-spacing: .06em;
}
.hero-policy-card strong {
  font-size: 13px;
}
.hero-policy-card b {
  margin-left: auto;
  color: var(--danger);
  font-size: 16px;
}
.hero-policy-card:hover {
  color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(20,43,82,.2);
}

@media (max-width: 1024px) {
  .hero-policy-card {
    display: none;
  }
}

@media (max-width: 640px) {
  .portal-search-intro {
    background:
      linear-gradient(105deg,rgba(255,255,255,.99) 0%,rgba(255,255,255,.94) 48%,rgba(255,255,255,.42) 68%,rgba(255,255,255,.04) 84%),
      #fff url("img/ev-main-hero-model.webp") 72% center / auto 100% no-repeat;
  }
  .hero-eyebrow {
    padding: 6px 8px;
  }
  .hero-data-status {
    margin-top: 9px;
  }
  .portal-search-intro .search-form-wrap form {
    border-width: 2px;
  }
  .portal-search-intro .search-form-wrap input {
    min-width: 0;
    padding: 0 12px;
    font-size: 13px;
  }
  .portal-search-intro .search-form-wrap button {
    width: 58px;
    min-width: 58px;
    flex: 0 0 58px;
    font-size: 13px;
  }
}

/* Premium provider update widget */
.provider-widget {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(13,151,166,.24) !important;
  background:
    radial-gradient(circle at 100% 0,rgba(255,255,255,.35) 0 56px,transparent 57px),
    linear-gradient(145deg,#3ed2d8 0%,#1ab7c3 56%,#0ea4b4 100%);
  box-shadow:
    0 16px 34px rgba(16,146,161,.18),
    inset 0 1px 0 rgba(255,255,255,.55) !important;
}
.provider-widget::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  right: -68px;
  bottom: -72px;
  border: 20px solid rgba(255,255,255,.08);
  border-radius: 50%;
  pointer-events: none;
}
.provider-widget .widget-head {
  position: relative;
  z-index: 1;
  min-height: 68px !important;
  padding-top: 13px !important;
  padding-bottom: 12px !important;
  border-bottom: 1px solid rgba(20,43,82,.08);
  border-radius: 0 0 17px 17px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 7px 18px rgba(20,43,82,.1);
}
.provider-head-copy {
  display: grid;
  gap: 5px;
}
.provider-head-copy > span {
  color: #12a7b5;
  font: 700 12px/1 var(--font-mono);
  letter-spacing: 0.02em;
}
.provider-widget .widget-head h3 {
  color: var(--primary);
  font-size: 16px;
  letter-spacing: -.035em;
}
.provider-widget .widget-head .more {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 10px;
  background: #edf9fa;
  color: #0e9ba8;
  font-size: 18px;
  font-weight: 700;
}
.provider-widget .widget-head .more:hover {
  background: #dff5f7;
  color: var(--primary);
  transform: rotate(90deg);
}
.provider-widget .widget-body {
  position: relative;
  z-index: 1;
  padding-top: 15px !important;
  padding-bottom: 16px !important;
}
.provider-empty {
  display: flex;
  min-height: 108px;
  padding: 13px;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 15px;
  background: rgba(255,255,255,.14);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.3),
    0 8px 18px rgba(5,112,124,.08);
  backdrop-filter: blur(8px);
}
.provider-empty img {
  width: 66px;
  height: 66px;
  flex: 0 0 66px;
  object-fit: contain;
  filter: drop-shadow(0 7px 7px rgba(8,88,100,.2));
}
.provider-empty > span {
  display: grid;
  min-width: 0;
  gap: 5px;
}
.provider-empty strong {
  color: #fff;
  font-size: 13px;
  text-shadow: 0 1px 2px rgba(5,83,94,.18);
}
.provider-empty small {
  color: rgba(255,255,255,.78);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  word-break: keep-all;
}
.provider-widget .provider-list {
  gap: 8px;
  margin-bottom: 13px;
}
.provider-widget .provider-list li {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.48);
  border-radius: 12px;
  background: rgba(255,255,255,.16);
}
.provider-widget .prov-link {
  padding: 12px 13px;
  background: transparent;
}
.provider-widget .prov-link:hover {
  background: rgba(255,255,255,.2);
}
.provider-widget .prov-name {
  color: #fff;
  font-size: 13px;
  text-shadow: 0 1px 1px rgba(5,83,94,.15);
}
.provider-widget .prov-meta {
  color: rgba(255,255,255,.75);
  font-size: 12px;
}
.provider-widget .btn-compare {
  position: relative;
  display: flex;
  min-height: 48px;
  margin-top: 13px;
  padding: 0 15px;
  justify-content: space-between;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 13px;
  background: linear-gradient(145deg,#193d70 0%,#102b52 100%);
  color: #fff;
  font-size: 12px;
  box-shadow:
    0 11px 22px rgba(10,43,81,.24),
    inset 0 1px 0 rgba(255,255,255,.16);
}
.provider-widget .btn-compare::before {
  content: "↗";
  display: grid;
  width: 25px;
  height: 25px;
  margin-right: 8px;
  flex: 0 0 25px;
  place-items: center;
  border-radius: 8px;
  background: rgba(255,255,255,.1);
  color: #57e0e2;
  font-size: 12px;
}
.provider-widget .btn-compare span {
  flex: 1;
  text-align: left;
}
.provider-widget .btn-compare b {
  color: #ffd55e;
  font-size: 16px;
}
.provider-widget .btn-compare:hover {
  background: linear-gradient(145deg,#204c86 0%,#142f59 100%);
  color: #fff;
  transform: translateY(-2px);
}

/* Purposeful 3D icon placement */
.portal-action-tiles a {
  padding-right: 78px;
}
.portal-action-tiles a::before {
  display: none;
}
.portal-action-tiles > a > img {
  position: absolute;
  right: 14px;
  top: 50%;
  width: 65px;
  height: 65px;
  object-fit: contain;
  filter: drop-shadow(0 9px 8px rgba(20,43,82,.16));
  transform: translateY(-50%);
  transition: transform .2s ease, filter .2s ease;
}
.portal-action-tiles > a:hover > img {
  filter: drop-shadow(0 12px 11px rgba(20,43,82,.22));
  transform: translateY(-54%) scale(1.07) rotate(-2deg);
}
.portal-action-tiles > a > b {
  right: 76px;
}
.dash-head h3 {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
}
.dash-head h3 img {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  object-fit: contain;
  filter: drop-shadow(0 4px 4px rgba(20,43,82,.13));
}

@media (max-width: 640px) {
  .portal-action-tiles a {
    padding-right: 68px;
  }
  .portal-action-tiles > a > img {
    width: 56px;
    height: 56px;
  }
  .portal-action-tiles > a > b {
    right: 65px;
  }
}

/* Readability pass */
body {
  color: #172235;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.62;
  letter-spacing: -.012em;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4,
strong,
.pgh-nav a {
  letter-spacing: -.04em;
  word-break: keep-all;
}
p,
.hero-copy p,
.portal-tool > p,
.hub-hero p,
.widget-box p {
  line-height: 1.72;
  word-break: keep-all;
}
.portal-action-tiles strong {
  font-size: 19px;
  line-height: 1.3;
}
.portal-action-tiles span {
  color: #59677a;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}
.dash-head h3,
.side-widget .widget-head h3 {
  color: #132744;
  font-weight: 700;
  line-height: 1.35;
}
.dash-list .title,
.simple-list .title,
.qa-title strong,
.report-title,
.resolved-title {
  color: #243248;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.55;
}
.dash-list .meta,
.simple-list .date,
.report-date,
.resolved-meta {
  color: #7c8797;
  font-size: 13px;
  font-weight: 600;
}
.empty,
.empty-state,
.dash-list .empty {
  color: #8390a0;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
}
.provider-empty strong {
  font-size: 14px;
  line-height: 1.35;
}
.provider-empty small {
  font-size: 12px;
  line-height: 1.65;
}
.quick-copy strong,
.side-notice-ticker a,
.side-notice-ticker > span:not(.quick-icon) {
  line-height: 1.5;
}
.tool-heading h3,
.section-head h3 {
  line-height: 1.4;
}
.tool-links strong {
  font-size: 14px;
  line-height: 1.45;
}
.tool-links span,
.tool-kicker,
.provider-head-copy > span {
  letter-spacing: .08em;
}
input,
select,
textarea,
button {
  font-weight: 600;
}
input::placeholder,
textarea::placeholder {
  color: #8a94a3;
  opacity: 1;
}

@media (max-width: 640px) {
  body {
    font-size: 13px;
    line-height: 1.6;
  }
  .portal-action-tiles strong {
    font-size: 16px;
  }
  .portal-action-tiles span {
    font-size: 13px;
  }
  .dash-head h3,
  .side-widget .widget-head h3 {
    font-size: 14px;
  }
  .dash-list .title,
  .simple-list .title,
  .qa-title strong,
  .report-title,
  .resolved-title {
    font-size: 13px;
  }
}

/* Precision pass for the utility column */
.portal-side {
  --side-pad: 16px;
  gap: 14px;
}
.login-widget {
  min-height: 240px;
  padding: 0;
  border-top: 3px solid var(--danger);
}
.login-form {
  display: grid;
  gap: 10px;
  padding: 16px;
}
.login-form > input:not([type="hidden"]) {
  width: 100%;
  height: 40px;
  margin: 0;
  padding: 0 14px;
  border-radius: 10px;
}
.login-form .btn-login {
  width: 100%;
  height: 42px;
  margin: 0;
  border: 0;
  border-radius: 10px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}
.login-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 26px;
  margin: 0;
  color: #5e6877;
  font-size: 12px;
  line-height: 1;
}
.login-links > div {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.login-links a {
  margin: 0;
  color: #273142;
  font-weight: 700;
}
.login-divider {
  color: #9ba4b1;
}
.auto-login-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
}
.auto-login-toggle input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.toggle-track {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 31px;
  height: 18px;
  padding: 2px;
  border-radius: 999px;
  background: #ffc21c;
  box-shadow:
    inset 0 1px 2px rgba(124,81,0,.16),
    0 2px 5px rgba(218,153,0,.18);
  transition: background-color .2s ease;
}
.toggle-thumb {
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(20,43,82,.22);
  transition: transform .2s ease;
}
.auto-login-toggle input:checked + .toggle-track {
  background: var(--danger);
}
.auto-login-toggle input:checked + .toggle-track .toggle-thumb {
  transform: translateX(13px);
}
.auto-login-toggle input:focus-visible + .toggle-track {
  outline: 3px solid rgba(255,194,28,.28);
  outline-offset: 2px;
}
.toggle-label {
  color: #7a8491;
  white-space: nowrap;
}
.side-quick-banner {
  display: grid;
  grid-template-columns: 34px minmax(0,1fr) auto;
  align-items: center;
  min-height: 58px;
  padding: 10px 12px;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(135deg, #16c8e1 0%, #06aee0 100%);
  box-shadow:
    0 12px 24px rgba(0,157,201,.18),
    inset 0 1px 0 rgba(255,255,255,.32);
}
.side-quick-banner:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow:
    0 16px 30px rgba(0,157,201,.24),
    inset 0 1px 0 rgba(255,255,255,.38);
}
.quick-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,.20);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}
.quick-copy {
  min-width: 0;
}
.quick-copy strong,
.quick-copy small {
  display: block;
}
.quick-copy strong {
  font-size: 12px;
  line-height: 1.25;
}
.quick-copy small {
  margin-top: 2px;
  color: rgba(255,255,255,.82);
  font-size: 12px;
}
.quick-badge {
  padding: 5px 7px;
  border-radius: 7px;
  background: #ffd05a;
  color: #9a4e00;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 3px 8px rgba(128,72,0,.15);
}
.side-notice-ticker {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center;
  min-height: 46px;
  padding: 8px 12px;
  border-radius: 12px;
  background: #fff;
  box-shadow:
    0 12px 26px rgba(20,43,82,.07),
    inset 0 1px 0 #fff;
}
.side-notice-ticker strong {
  padding: 4px 7px;
  border-radius: 6px;
  background: var(--danger);
  color: #fff;
  font-size: 12px;
}
.side-notice-ticker a,
.side-notice-ticker > span:not(.quick-icon) {
  min-width: 0;
  margin: 0 8px;
  overflow: hidden;
  color: #273142;
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.side-notice-ticker b {
  color: #8e98a6;
  font-size: 18px;
  font-weight: 400;
}
.provider-widget,
.pop-widget,
.cmt-widget {
  margin: 0;
}
.live-chat-widget {
  margin: 0;
  overflow: hidden;
  border-top: 3px solid #e7354f;
}
.live-chat-head {
  gap: 8px;
}
.live-chat-head h3 {
  display: flex;
  align-items: center;
  gap: 6px;
}
.live-chat-head h3 small {
  padding: 2px 5px;
  border-radius: 4px;
  background: #fff0f2;
  color: #d92f48;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
}
.live-chat-online {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #556274;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.live-chat-online i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #20b978;
  box-shadow: 0 0 0 3px rgba(32,185,120,.12);
}
.live-chat-body {
  padding: 10px 12px 12px;
  background: #f8f9fb;
}
.live-chat-messages {
  height: 224px;
  overflow-y: auto;
  scrollbar-width: thin;
}
.live-chat-message {
  margin-bottom: 8px;
  animation: live-chat-in .28s ease both;
}
.live-chat-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 3px;
  color: #8a95a5;
  font-size: 12px;
}
.live-chat-meta strong {
  color: #263750;
  font-size: 12px;
}
.live-chat-message p {
  display: inline-block;
  max-width: 92%;
  margin: 0;
  padding: 7px 9px;
  border: 1px solid rgba(20,43,82,.08);
  border-radius: 3px 10px 10px 10px;
  background: #fff;
  color: #35445a;
  font-size: 13px;
  line-height: 1.45;
  word-break: keep-all;
}
.live-chat-message.is-mine {
  text-align: right;
}
.live-chat-message.is-mine .live-chat-meta {
  justify-content: flex-end;
}
.live-chat-message.is-mine p {
  border-color: #e7354f;
  border-radius: 10px 3px 10px 10px;
  background: #e7354f;
  color: #fff;
}
.live-chat-form {
  margin-top: 12px;
  padding: 10px;
  border: 1px solid rgba(20,43,82,.1);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(20,43,82,.05);
}
.live-chat-compose-head,
.live-chat-compose-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.live-chat-compose-head {
  margin-bottom: 7px;
}
.live-chat-compose-head label {
  color: #263750;
  font-size: 12px;
  font-weight: 700;
}
.live-chat-compose-head span {
  color: #9aa3b0;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.live-chat-compose-head b {
  color: #536174;
}
.live-chat-compose {
  display: grid;
  grid-template-columns: minmax(0,1fr) 42px;
  gap: 7px;
  align-items: end;
}
.live-chat-form textarea {
  width: 100%;
  min-width: 0;
  min-height: 58px;
  max-height: 96px;
  padding: 9px 10px;
  resize: vertical;
  border: 1px solid rgba(20,43,82,.14);
  border-radius: 8px;
  background: #f8fafc;
  color: #263750;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.45;
}
.live-chat-form textarea::placeholder {
  color: #a1aab6;
}
.live-chat-form textarea:focus {
  border-color: #263750;
  background: #fff;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(38,55,80,.08);
}
.live-chat-form button {
  display: flex;
  width: 42px;
  min-height: 58px;
  padding: 0;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: #263750;
  color: #fff;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}
.live-chat-form button:hover {
  background: #e7354f;
}
.live-chat-form button:active {
  transform: translateY(1px);
}
.live-chat-form button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}
.live-chat-form button span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
}
.live-chat-lock {
  display: grid;
  grid-template-columns: 34px minmax(0,1fr);
  gap: 9px 10px;
  margin-top: 12px;
  padding: 12px;
  align-items: center;
  border: 1px solid rgba(20,43,82,.1);
  border-radius: 12px;
  background: linear-gradient(145deg,#fff,#f7f9fc);
  box-shadow: 0 5px 16px rgba(20,43,82,.05);
}
.live-chat-lock-icon {
  display: grid;
  width: 34px;
  height: 34px;
  grid-row: 1;
  place-items: center;
  border-radius: 10px;
  background: #eef2f7;
  color: #263750;
}
.live-chat-lock-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.live-chat-lock strong {
  display: block;
  color: #263750;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}
.live-chat-lock p {
  margin: 2px 0 0;
  color: #8b95a3;
  font-size: 8px;
  line-height: 1.45;
}
.live-chat-lock > a {
  display: flex;
  min-height: 32px;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #263750;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  transition: background .18s ease, transform .18s ease;
}
.live-chat-lock > a:hover {
  background: #e7354f;
  color: #fff;
  transform: translateY(-1px);
}
.live-chat-compose-foot {
  margin-top: 6px;
  color: #9aa3b0;
  font-size: 8px;
  line-height: 1.35;
}
.live-chat-compose-foot span:last-child {
  color: #d3475b;
  font-weight: 700;
}
.live-chat-note {
  display: flex;
  gap: 4px;
  margin: 7px 2px 0;
  align-items: center;
  color: #9099a7;
  font-size: 8px;
  line-height: 1.4;
}
@keyframes live-chat-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.cmt-widget .simple-list {
  overflow: hidden;
}
.cmt-widget .simple-list li {
  max-height: 56px;
  opacity: 1;
  transform: translateY(0);
  transition: max-height .35s ease, opacity .35s ease, transform .35s ease;
}
.cmt-widget .simple-list li.live-comment-enter {
  max-height: 0;
  opacity: 0;
  transform: translateY(-12px);
}
.side-widget .widget-head,
.side-widget .widget-body {
  padding-left: var(--side-pad);
  padding-right: var(--side-pad);
}

/* ==========================================================================
   GLOBAL UI SYSTEM - Soft Rounded Aesthetic (Applies across all pages)
   ========================================================================== */

/* Forms & Inputs */
input[type="text"], input[type="password"], input[type="email"], input[type="number"],
input[type="tel"], select, textarea, .ev-input, .frm_input {
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid rgba(200, 205, 212, 0.8);
  border-radius: 12px;
  background: #ffffff;
  color: var(--ink, #142033);
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s ease;
  box-shadow: inset 0 2px 4px rgba(20,43,82,0.02);
}
textarea {
  min-height: 100px;
  resize: vertical;
}
input:focus, select:focus, textarea:focus, .ev-input:focus, .frm_input:focus {
  border-color: var(--primary, #142b52);
  outline: none;
  box-shadow: 0 0 0 3px rgba(20,43,82,0.1), inset 0 2px 4px rgba(20,43,82,0.02);
}

/* Buttons */
.btn, button, .btn_submit, .btn_confirm, .btn_cancel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}
.btn-primary, .btn_submit, .rail-primary {
  background: var(--danger, #e7354f);
  color: #fff !important;
  box-shadow: 0 4px 10px rgba(231,53,79,0.25);
}
.btn-primary:hover, .btn_submit:hover, .rail-primary:hover {
  background: #d62c45;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(231,53,79,0.3);
}
.btn-primary:active, .btn_submit:active {
  transform: translateY(1px);
  box-shadow: 0 2px 5px rgba(231,53,79,0.25);
}
.btn-outline, .btn_cancel {
  background: #fff;
  color: var(--primary, #142b52) !important;
  border-color: rgba(20,43,82,0.2);
  box-shadow: 0 2px 5px rgba(20,43,82,0.04);
}
.btn-outline:hover, .btn_cancel:hover {
  background: #f8f9fb;
  border-color: var(--primary, #142b52);
  transform: translateY(-1px);
}

/* Cards & Sections */
.main-board-box, .widget-box, .provider-card, .bo_v, .ev-widget, .mbskin_box, .register_form_inner {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(229,232,237,0.8) !important;
  box-shadow: 0 6px 20px rgba(20,43,82,0.06), 0 2px 5px rgba(20,43,82,0.04);
  overflow: hidden;
}

/* Page Layout Headers */
.hub-hero {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(229,232,237,0.8);
  box-shadow: 0 6px 20px rgba(20,43,82,0.06), 0 2px 5px rgba(20,43,82,0.04);
  margin-bottom: 24px;
  padding: 40px 24px;
  text-align: center;
}
.hub-hero h1 {
  font-size: 26px;
  font-weight: 700;
  color: var(--primary, #142b52);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.hub-hero p {
  color: var(--muted, #748095);
  font-size: 15px;
}

/* Section Headers */
.box-head, .widget-head, .section-head {
  padding: 18px 20px;
  border-bottom: 1px solid rgba(229,232,237,0.8);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.box-head h2, .box-head h3, .widget-head, .section-head h2, .section-head h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary, #142b52);
  margin: 0;
}
.seo-content-head {
  display: block;
  padding: 30px 34px 26px;
}
.seo-content-head .meta {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--danger);
  font-size: 13px;
  font-weight: 700;
}
.seo-content-head h1 {
  max-width: 900px;
  margin: 0;
  color: var(--primary);
  font-size: 28px;
  line-height: 1.4;
  letter-spacing: -.035em;
}
.seo-content-head .text-muted {
  margin: 12px 0 0;
  font-size: 13px;
}
.main-board-box .board-content {
  padding: 30px 34px 36px;
  color: #26364d;
  font-size: 15px;
  line-height: 1.85;
}
.main-board-box .board-content h2 {
  margin: 26px 0 8px;
  color: var(--primary);
  font-size: 20px;
  line-height: 1.4;
}
.main-board-box .board-content h2:first-child { margin-top: 0; }
.main-board-box .board-content ol { padding-left: 22px; }

/* Public provider verification standard */
.verification-policy-page { padding-bottom: 72px; }
.verification-hero {
  padding: 64px 20px;
  background: linear-gradient(135deg,#10294d 0%,#173b69 58%,#0d5670 100%);
  color: #fff;
  text-align: center;
}
.verification-hero .container { max-width: 940px; }
.verification-kicker {
  display: inline-block; margin-bottom: 18px; color: #82e3db;
  font-size: 12px; font-weight: 700; letter-spacing: 0.02em;
}
.verification-hero h1 { margin: 0; font-size: 38px; line-height: 1.25; letter-spacing: -.04em; }
.verification-hero p { margin: 18px auto 0; color: #d9e4ef; font-size: 16px; line-height: 1.8; }
.verification-hero-meta { display:flex; justify-content:center; gap:10px; flex-wrap:wrap; margin-top:28px; }
.verification-hero-meta span { padding:8px 13px; border:1px solid rgba(255,255,255,.18); border-radius:999px; background:rgba(255,255,255,.08); font-size:12px; font-weight:700; }
.verification-layout { display:grid; grid-template-columns:minmax(0,1fr) 250px; gap:36px; padding-top:52px; }
.verification-main { min-width:0; }
.verification-main > section { margin-bottom:64px; }
.verification-section-head { display:flex; gap:16px; align-items:flex-start; margin-bottom:24px; }
.verification-section-head > span { display:flex; width:38px; height:38px; flex:0 0 38px; align-items:center; justify-content:center; border-radius:10px; background:#eaf0f7; color:#244a76; font-size:12px; font-weight: 700; }
.verification-section-head h2 { margin:0; color:#142b52; font-size:24px; line-height:1.35; letter-spacing:-.03em; }
.verification-section-head p { margin:5px 0 0; color:#748095; font-size:14px; line-height:1.6; }
.verification-status-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.verification-status-card { min-height:160px; padding:22px; border:1px solid #e4e9ef; border-top:4px solid #8d98a8; border-radius:14px; background:#fff; box-shadow:0 6px 18px rgba(20,43,82,.05); }
.verification-status-card.is-verified { border-top-color:#159676; }
.verification-status-card.is-reviewing { border-top-color:#d79616; }
.verification-status-card.is-unverified { border-top-color:#e7354f; }
.verification-status-card strong { color:#142b52; font-size:17px; }
.verification-status-card p { margin:12px 0 0; color:#5f6c7d; font-size:13px; line-height:1.7; }
.verification-formula { margin-top:16px; padding:22px 24px; border-radius:14px; background:#f0f5fa; }
.verification-formula strong { display:block; margin-bottom:10px; color:#142b52; font-size:13px; }
.verification-formula code { display:block; padding:12px 14px; border-radius:9px; background:#142b52; color:#fff; font:700 12px/1.65 ui-monospace,SFMono-Regular,Menlo,monospace; white-space:normal; }
.verification-formula p { margin:12px 0 0; color:#657387; font-size:12px; line-height:1.65; }
.verification-criteria-list { display:grid; gap:16px; }
.verification-criterion { overflow:hidden; border:1px solid #e4e9ef; border-radius:15px; background:#fff; box-shadow:0 5px 16px rgba(20,43,82,.04); }
.verification-criterion header { display:grid; grid-template-columns:42px minmax(0,1fr) auto; gap:14px; align-items:start; padding:22px 24px; }
.criterion-number { color:#a3adba; font-size:12px; font-weight: 700; line-height:25px; }
.verification-criterion h3 { margin:0; color:#142b52; font-size:18px; line-height:1.4; }
.verification-criterion header p { margin:6px 0 0; color:#657387; font-size:13px; line-height:1.65; }
.criterion-required { padding:5px 9px; border-radius:999px; background:#fff0f2; color:#d52c46; font-size: 12px; font-weight: 700; }
.verification-criterion dl { display:grid; grid-template-columns:1fr 1fr 1fr; margin:0; border-top:1px solid #edf0f4; background:#fbfcfd; }
.verification-criterion dl > div { padding:17px 18px; border-right:1px solid #edf0f4; }
.verification-criterion dl > div:last-child { border-right:0; }
.verification-criterion dt { margin-bottom:7px; color:#58677b; font-size: 13px; font-weight: 700; }
.verification-criterion dd { margin:0; color:#566376; font-size:12px; line-height:1.65; }
.verification-criterion .criterion-pass dt { color:#138064; }
.verification-criterion .criterion-fail dt { color:#d52c46; }
.verification-process { display:grid; gap:0; margin:0; padding:0; list-style:none; border:1px solid #e4e9ef; border-radius:15px; background:#fff; overflow:hidden; }
.verification-process li { display:flex; gap:16px; padding:20px 24px; border-bottom:1px solid #edf0f4; }
.verification-process li:last-child { border-bottom:0; }
.verification-process li > span { display:flex; width:30px; height:30px; flex:0 0 30px; align-items:center; justify-content:center; border-radius:50%; background:#142b52; color:#fff; font-size:12px; font-weight: 700; }
.verification-process strong { color:#142b52; font-size:15px; }
.verification-process p { margin:5px 0 0; color:#657387; font-size:13px; line-height:1.6; }
.verification-limit-box { padding:26px 28px; border:1px solid #f0c9cf; border-radius:15px; background:#fff8f9; }
.verification-limit-box ul { display:grid; gap:10px; margin:0; padding-left:20px; }
.verification-limit-box li { color:#5b6677; font-size:13px; line-height:1.65; }
.verification-action-box { display:flex; align-items:center; justify-content:space-between; gap:24px; padding:26px 28px; border-radius:15px; background:#142b52; color:#fff; }
.verification-action-box strong { font-size:16px; }
.verification-action-box p { max-width:560px; margin:7px 0 0; color:#cbd6e3; font-size:13px; line-height:1.65; }
.verification-action-box .btn { flex:0 0 auto; }
.verification-side { align-self:start; position:sticky; top:106px; display:grid; gap:14px; }
.verification-side-card { display:grid; gap:4px; padding:18px; border:1px solid #e4e9ef; border-radius:14px; background:#fff; box-shadow:0 5px 16px rgba(20,43,82,.04); }
.verification-side-card > strong { margin-bottom:8px; color:#142b52; font-size:14px; }
.verification-side-card a { padding:8px 0; border-bottom:1px solid #edf0f4; color:#5e6c7f; font-size:12px; font-weight:700; }
.verification-side-card a:last-child { border-bottom:0; }
.verification-side-card.is-notice { background:#f0f5fa; }
.verification-side-card p { margin:0; color:#657387; font-size:12px; line-height:1.7; }
.verification-provider-link { width:100%; }

/* Shared board headers and community navigation */
.ev-board-header {
  width: min(1200px, calc(100% - 32px));
  margin: 34px auto 18px;
}
.ev-board-heading {
  display: flex;
  min-height: 126px;
  flex-direction: column;
  justify-content: center;
  padding: 26px 30px;
  border: 1px solid rgba(229,232,237,.9);
  border-radius: 16px;
  background: linear-gradient(135deg,#fff 0%,#f5f8fc 100%);
  box-shadow: 0 6px 20px rgba(20,43,82,.05);
}
.ev-board-heading > span {
  margin-bottom: 7px;
  color: var(--danger);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.ev-board-heading h1 {
  margin: 0;
  color: var(--primary);
  font-size: 25px;
  line-height: 1.35;
  letter-spacing: -.035em;
}
.ev-board-heading p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}
.ev-community-switcher {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 10px;
  margin-top: 12px;
}
.ev-board-header.is-compact {
  margin-top: 22px;
  margin-bottom: 10px;
}
.ev-board-header.is-compact .ev-community-switcher { margin-top: 0; }
.ev-community-switcher a {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 2px 12px;
  min-height: 72px;
  align-content: center;
  padding: 13px 18px;
  overflow: hidden;
  border: 1px solid #e3e8ef;
  border-radius: 13px;
  background: #fff;
  color: #33435a;
  box-shadow: 0 4px 12px rgba(20,43,82,.04);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.ev-community-switcher a:hover {
  border-color: #b8c5d6;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(20,43,82,.08);
}
.ev-community-switcher a.active {
  border-color: var(--primary);
  background: linear-gradient(135deg,#142b52,#214d7c);
  color: #fff;
}
.ev-community-tab-kicker {
  grid-column: 1;
  color: #8995a5;
  font-size: 12px;
  font-weight: 700;
}
.ev-community-switcher a.active .ev-community-tab-kicker { color: #a9cbea; }
.ev-community-switcher strong { grid-column:1; font-size:14px; line-height:1.3; }
.ev-community-switcher small {
  grid-column:2;
  grid-row:1 / span 2;
  align-self:center;
  padding:5px 8px;
  border-radius:999px;
  background:#f1f4f8;
  color:#728095;
  font-size: 12px;
  font-weight: 700;
}
.ev-community-switcher a.active small { background:rgba(255,255,255,.14); color:#fff; }

/* Lists and Tables */
.board-list li, .dense-board li, .guide-item {
  border-bottom: 1px solid rgba(229,232,237,0.6);
  padding: 16px 20px;
  transition: background 0.2s ease;
}
.board-list li:last-child, .dense-board li:last-child {
  border-bottom: none;
}
.board-list li:hover, .dense-board li:hover, .guide-item:hover, .qa-row:hover, .report-row:hover {
  background: #fcfcfd;
  margin: 0;
  padding: 16px 20px;
  border-bottom-color: transparent;
}

/* Empty States & Alerts */
.empty-state, .empty_table {
  background: #f8f9fb;
  border: 1px dashed rgba(20,43,82,0.15);
  border-radius: 12px;
  padding: 32px 20px !important;
  color: var(--muted, #748095);
  text-align: center;
  font-size: 14px;
  margin: 20px;
}

/* Tabs & Chips */
.search-tabs, .qa-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.search-tabs a, .qa-tabs a {
  padding: 10px 20px;
  background: #ffffff;
  border: 1px solid rgba(229,232,237,0.8);
  border-radius: 99px;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted, #748095);
  box-shadow: 0 2px 5px rgba(20,43,82,0.04);
}
.search-tabs a.active, .search-tabs a:hover, .qa-tabs a.active, .qa-tabs a:hover {
  background: var(--primary, #142b52);
  color: #ffffff;
  border-color: var(--primary, #142b52);
}

/* Pagination */
.pg_wrap { display: flex; justify-content: center; margin: 32px 0; }
.pg { display: inline-flex; gap: 6px; }
.pg_page, .pg_current {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 12px;
  border-radius: 10px; border: 1px solid rgba(229,232,237,0.8);
  background: #ffffff; font-size: 14px; font-weight: 700; color: var(--muted, #748095);
  box-shadow: 0 2px 4px rgba(20,43,82,0.03); transition: all 0.2s ease;
}
.pg_page:hover {
  background: #f8f9fb; color: var(--primary, #142b52); border-color: rgba(20,43,82,0.2);
}
.pg_current {
  background: var(--danger, #e7354f); border-color: var(--danger, #e7354f); color: #ffffff;
  box-shadow: 0 4px 10px rgba(231,53,79,0.2);
}


/* Chips */
.chips-wrap { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 99px; font-size: 13px;
  background: #f8f9fb; border: 1px solid rgba(229,232,237,0.8); color: var(--ink);
  box-shadow: 0 2px 4px rgba(20,43,82,0.02);
}
.chip strong { color: var(--primary); font-weight: 700; }

/* Dense Board & Guide List Layouts */
.dense-board, .guide-list, .board-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.dense-board li {
  display: flex;
  align-items: center;
  gap: 12px;
}
.dense-board li a {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
  color: var(--ink);
}
.dense-board li a:hover {
  color: var(--danger);
  text-decoration: underline;
}
.dense-board li small {
  color: var(--muted);
  font-size: 12px;
}

.guide-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none;
  background: transparent;
}
.guide-item .meta {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.guide-item h2, .guide-item h3 {
  font-size: 15px;
  margin: 0;
  color: var(--primary);
  font-weight: 700;
}
.guide-item:hover h2, .guide-item:hover h3 {
  color: var(--danger);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.grid-2 label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
}

.widget-box, .main-board-box {
  margin-bottom: 24px;
}
.problem-filter-form, #ev-calculator {
  padding: 24px;
}
#ev-calculator.calculator-shell {
  padding: 0;
}
.calculator-page {
  gap: 0;
}
.calculator-hero {
  position: relative;
  overflow: hidden;
  padding: 42px 34px;
  background:
    radial-gradient(circle at 86% 22%, rgba(255,213,94,.42) 0 62px, transparent 63px),
    radial-gradient(circle at 76% 96%, rgba(25,184,198,.18) 0 90px, transparent 91px),
    #fff;
}
.calculator-hero::after {
  content: "₩";
  position: absolute;
  right: 8%;
  top: 50%;
  color: rgba(231,53,79,.08);
  font-size: 150px;
  font-weight: 700;
  line-height: 1;
  transform: translateY(-50%);
}
.calculator-hero > * {
  position: relative;
  z-index: 1;
}
.calculator-eyebrow {
  display: block;
  margin-bottom: 11px;
  color: var(--danger);
  font: 700 12px/1 var(--font-mono);
  letter-spacing: 0.02em;
}
.calculator-notice {
  display: inline-flex;
  margin-top: 15px;
  padding: 7px 11px;
  border-radius: 999px;
  background: #f6f7f9;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.calculator-shell {
  overflow: hidden;
  margin-bottom: 18px;
  border: 1px solid rgba(229,232,237,.84);
  border-radius: 19px;
  background: #fff;
  box-shadow: 0 15px 38px rgba(20,43,82,.08), 0 4px 12px rgba(20,43,82,.035);
}
.calculator-workspace {
  display: grid;
  grid-template-columns: minmax(0,1.15fr) minmax(330px,.85fr);
}
.calculator-input-panel {
  padding: 30px;
}
.calculator-panel-head,
.calculator-section-head,
.calculator-result-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.calculator-panel-head span,
.calculator-section-head span,
.calculator-result-head > span {
  display: block;
  margin-bottom: 6px;
  color: var(--danger);
  font: 700 12px/1 var(--font-mono);
  letter-spacing: 0.02em;
}
.calculator-panel-head h2,
.calculator-section-head h2 {
  color: var(--primary);
  font-size: 19px;
  letter-spacing: -.04em;
}
.calculator-panel-head small,
.calculator-section-head small {
  color: var(--muted);
  font-size: 13px;
}
.calculator-fields {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 19px 16px;
  margin-top: 25px;
}
.calculator-field {
  display: grid;
  min-width: 0;
  gap: 8px;
}
.calculator-field > span:first-child {
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
}
.calculator-field > small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}
.calculator-field-wide {
  grid-column: 1/-1;
}
.calculator-input-wrap {
  position: relative;
  display: block;
}
.calculator-input-wrap input {
  width: 100%;
  height: 50px;
  padding: 0 48px 0 15px;
  border-radius: 13px;
  background: #fbfcfd;
  font-size: 15px;
  font-weight: 700;
}
.calculator-input-wrap b {
  position: absolute;
  right: 15px;
  top: 50%;
  color: var(--muted);
  font-size: 12px;
  transform: translateY(-50%);
}
.calculator-quick-values {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 8px;
  margin-top: -8px;
}
.calculator-quick-values button {
  min-height: 36px;
  padding: 0 8px;
  border: 1px solid rgba(20,43,82,.1);
  border-radius: 10px;
  background: #f6f7f9;
  color: var(--primary);
  font-size: 13px;
  box-shadow: none;
}
.calculator-quick-values button:hover {
  border-color: var(--danger);
  background: #fff4f6;
  color: var(--danger);
  transform: translateY(-1px);
}
.calculator-range {
  grid-column: 1/-1;
  width: 100%;
  height: 5px !important;
  min-height: 5px !important;
  margin: -8px 0 2px;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 999px;
  accent-color: var(--danger);
  box-shadow: none !important;
}
.calculator-result-panel {
  display: flex;
  min-width: 0;
  padding: 30px;
  flex-direction: column;
  color: #fff;
  background:
    radial-gradient(circle at 92% 8%, rgba(255,213,94,.32) 0 58px, transparent 59px),
    linear-gradient(150deg,#183b6b 0%,#142b52 58%,#0e1e39 100%);
}
.calculator-result-head > span {
  color: #ffd55e;
}
.calculator-result-head small {
  color: rgba(255,255,255,.56);
  font-size: 12px;
}
.calculator-primary-result {
  padding: 38px 0 30px;
}
.calculator-primary-result > span {
  display: block;
  color: rgba(255,255,255,.68);
  font-size: 12px;
  font-weight: 700;
}
.calculator-primary-result strong {
  display: block;
  margin-top: 8px;
  color: #fff;
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: -.055em;
}
.calculator-primary-result small {
  display: block;
  margin-top: 9px;
  color: #ffd55e;
  font-size: 13px;
  font-weight: 700;
}
.calculator-result-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 9px;
}
.calculator-result-grid > div {
  padding: 14px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 13px;
  background: rgba(255,255,255,.07);
}
.calculator-result-grid span {
  display: block;
  color: rgba(255,255,255,.58);
  font-size: 12px;
}
.calculator-result-grid strong {
  display: block;
  margin-top: 7px;
  color: #fff;
  font-size: 14px;
}
.calculator-formula {
  margin-top: auto;
  padding-top: 25px;
}
.calculator-formula span {
  color: rgba(255,255,255,.48);
  font-size: 12px;
  font-weight: 700;
}
.calculator-formula p {
  margin-top: 6px;
  color: rgba(255,255,255,.78);
  font: 600 13px/1.5 var(--font-mono);
}
.calculator-comparison {
  padding: 26px 30px 30px;
  border-top: 1px solid rgba(229,232,237,.82);
  background: #fbfcfd;
}
.calculator-bars {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 12px 18px;
  margin-top: 23px;
}
.calculator-bar {
  padding: 13px 15px;
  border: 1px solid rgba(229,232,237,.9);
  border-radius: 12px;
  background: #fff;
}
.calculator-bar.is-active {
  border-color: rgba(231,53,79,.34);
  background: #fff7f8;
  box-shadow: 0 5px 14px rgba(231,53,79,.08);
}
.calculator-bar-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
}
.calculator-bar-meta span {
  color: var(--muted);
}
.calculator-bar-meta b,
.calculator-bar-meta strong {
  color: var(--primary);
}
.calculator-bar.is-active .calculator-bar-meta b,
.calculator-bar.is-active .calculator-bar-meta strong {
  color: var(--danger);
}
.calculator-bar-track {
  height: 6px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf0f4;
}
.calculator-bar-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg,var(--cyan),var(--primary));
}
.calculator-bar.is-active .calculator-bar-track i {
  background: linear-gradient(90deg,#ff8999,var(--danger));
}
.calculator-comparison-empty {
  grid-column: 1/-1;
  padding: 24px;
  color: var(--muted);
  text-align: center;
}
.calculator-links {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 12px;
}
.calculator-links a {
  position: relative;
  display: flex;
  min-height: 96px;
  padding: 19px 48px 18px 19px;
  flex-direction: column;
  justify-content: center;
  border: 1px solid rgba(229,232,237,.84);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(20,43,82,.055);
}
.calculator-links a:hover {
  border-color: rgba(231,53,79,.25);
  transform: translateY(-2px);
  box-shadow: 0 13px 28px rgba(20,43,82,.09);
}
.calculator-links span {
  color: var(--danger);
  font-size: 12px;
  font-weight: 700;
}
.calculator-links strong {
  margin-top: 6px;
  color: var(--primary);
  font-size: 13px;
}
.calculator-links b {
  position: absolute;
  right: 18px;
  top: 50%;
  color: var(--danger);
  font-size: 18px;
  transform: translateY(-50%);
}

@media (max-width: 820px) {
  .calculator-workspace {
    grid-template-columns: 1fr;
  }
  .calculator-result-panel {
    min-height: 360px;
  }
}

@media (max-width: 640px) {
  .calculator-hero {
    padding: 32px 20px;
  }
  .calculator-hero::after {
    right: -8%;
    font-size: 110px;
  }
  .calculator-notice {
    align-items: flex-start;
    border-radius: 10px;
    line-height: 1.45;
  }
  .calculator-input-panel,
  .calculator-result-panel,
  .calculator-comparison {
    padding: 22px 18px;
  }
  .calculator-fields,
  .calculator-bars,
  .calculator-links {
    grid-template-columns: 1fr;
  }
  .calculator-field-wide,
  .calculator-quick-values,
  .calculator-range {
    grid-column: auto;
  }
  .calculator-quick-values {
    grid-template-columns: repeat(4,1fr);
  }
  .calculator-primary-result strong {
    font-size: 31px;
  }
  .calculator-result-panel {
    min-height: 330px;
  }
  .calculator-links {
    gap: 10px;
  }
  .calculator-links a {
    min-height: 82px;
  }
}
.problem-filter-form {
  display: grid;
  grid-template-columns: minmax(130px,.8fr) minmax(150px,.9fr) minmax(180px,1.25fr) minmax(180px,1.25fr) auto;
  align-items: end;
  gap: 14px;
}
.problem-filter-form label {
  display: grid;
  min-width: 0;
  gap: 8px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
}
.problem-filter-form select,
.problem-filter-form input {
  display: block;
  width: 100%;
  height: 44px;
  min-height: 44px;
  margin: 0;
}
.problem-filter-form .btn {
  height: 44px;
  min-height: 44px;
  padding: 0 22px;
  white-space: nowrap;
}
.problem-filter-form + section {
  margin-bottom: 0;
  overflow: hidden;
  border: 1px solid rgba(229,232,237,.82);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(20,43,82,.06), 0 2px 6px rgba(20,43,82,.035);
}
.problem-filter-form + section .section-head {
  padding: 18px 20px;
}
.problem-filter-form + section .dense-board {
  background: #fff;
}
.content-relations {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.content-relations .btn {
  min-height: 42px;
  border-radius: 12px;
}

@media (max-width: 980px) {
  .problem-filter-form {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
  .problem-filter-form .btn {
    grid-column: 1 / -1;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .problem-filter-form {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 18px;
  }
  .problem-filter-form .btn {
    grid-column: auto;
  }
  .problem-filter-form + section .section-head {
    gap: 12px;
    padding: 16px;
  }
  .problem-filter-form + section .section-head .btn {
    min-height: 38px;
    padding: 0 14px;
    font-size: 12px;
  }
  .content-relations {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 10px;
  }
  .content-relations .btn {
    width: 100%;
    padding: 0 10px;
    font-size: 12px;
  }
}

/* Member Shell Nav Upgrade */
.member-shell-nav {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(229,232,237,0.8);
  box-shadow: 0 6px 20px rgba(20,43,82,0.06), 0 2px 5px rgba(20,43,82,0.04);
  padding: 20px 24px;
  margin-top: 32px;
  margin-bottom: 32px;
  gap: 12px;
}
.member-shell-nav strong {
  font-size: 16px;
  color: var(--primary);
  margin-right: 12px;
}

.member-shell-nav .btn-outline {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 99px;
  font-size: 14px;
  border-color: rgba(20,43,82,0.15) !important;
  color: var(--muted) !important;
}
.member-shell-nav .btn-outline:hover {
  background: var(--primary) !important;
  color: #fff !important;
  border-color: var(--primary) !important;
}

/* Basic Tables */
.board-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(20,43,82,0.06), 0 2px 5px rgba(20,43,82,0.04);
  border: 1px solid rgba(229,232,237,0.8);
  margin-bottom: 24px;
}
.board-table th {
  background: #f8f9fb;
  padding: 16px 20px;
  text-align: left;
  font-weight: 700;
  font-size: 14px;
  color: var(--primary);
  border-bottom: 1px solid rgba(229,232,237,0.8);
}
.board-table td {
  padding: 16px 20px;
  font-size: 14px;
  border-bottom: 1px solid rgba(229,232,237,0.6);
  color: var(--ink);
}
.board-table tr:last-child td {
  border-bottom: none;
}
.board-table tbody tr:hover td {
  background: #fcfcfd;
}

/* Form Labels in Main Board Box */
.main-board-box label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
}

/* Panel & Ol Lists */
.panel {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(229,232,237,0.8);
  box-shadow: 0 6px 20px rgba(20,43,82,0.06), 0 2px 5px rgba(20,43,82,0.04);
  padding: 32px;
  margin-bottom: 32px;
}
.panel ol {
  padding-left: 20px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
}
.panel ol li {
  margin-bottom: 20px;
}
.panel ol li strong {
  display: block;
  font-size: 16px;
  color: var(--primary);
  margin-bottom: 4px;
}
.panel ol li p {
  margin: 0;
  color: var(--muted);
}

/* DL List */
.dl-list {
  padding: 24px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.dl-list div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  border-bottom: 1px dashed rgba(229,232,237,0.8);
  padding-bottom: 8px;
}
.dl-list div:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.dl-list dt {
  font-weight: 700;
  color: var(--muted);
}
.dl-list dd {
  margin: 0;
  font-weight: 600;
  color: var(--ink);
}

/* ==========================================================================
   MOBILE APP FEED REDESIGN (max-width: 768px)
   ========================================================================== */
@media (max-width: 768px) {
  body {
    background: #f2f4f6 !important;
    padding-bottom: 80px;
  }

  /* Break the layout walls to reorder everything as a single feed */
  .portal-wrapper {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 auto 60px !important;
    background: #f2f4f6 !important;
    overflow-x: hidden !important;
  }
  .portal-main, .portal-side, .portal-left-rail {
    display: contents !important;
  }

  /* Base Card Styles */
  .portal-left-rail > *,
  .portal-side > *,
  .portal-main > section,
  .portal-dashboard > .dash-col > .dash-box,
  .portal-tool-grid > .portal-tool,
  .lower-boards-grid > .portal-section {
    width: auto !important;
    max-width: none !important;
    align-self: stretch !important;
    box-sizing: border-box !important;
    border: none !important;
    border-radius: 20px !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.03), 0 1px 4px rgba(0,0,0,0.02) !important;
    background: #fff !important;
    overflow: hidden !important;
    margin: 0 16px !important; /* Feed spacing from edges */
  }

  /* Specific Ordering */
  .portal-search-intro { order: 1; margin: 0 !important; border-radius: 0 0 28px 28px !important; }
  .portal-action-tiles { order: 2; }
  .login-widget { order: 3; }
  .side-notice-ticker { order: 4; }
  .home-topic-hubs { order: 5; }

  .portal-dashboard { display: contents !important; }
  .portal-dashboard > .dash-col { display: contents !important; }
  .portal-dashboard .dash-box:nth-child(1) { order: 6; } /* Today QA */
  .portal-dashboard .dash-box:nth-child(2) { order: 7; } /* Resolved QA */

  .portal-tool-grid { display: contents !important; }
  .portal-tool-grid > .portal-tool-calc { order: 8; }
  .portal-tool-grid > .portal-tool-problem { order: 9; }

  .provider-widget { order: 10; }
  .qa-section { order: 11; }
  .rail-service-banner { order: 12; }
  .report-section { order: 13; }
  .resolved-section { order: 14; }
  .video-section { order: 15; }
  .live-chat-widget { order: 16; }
  .rail-art { order: 17; }
  .pop-widget { order: 18; }

  .lower-boards-grid { display: contents !important; }
  .lower-boards-grid > .portal-section { order: 19; }

  .cmt-widget { order: 20; }
  .side-quick-banner { order: 21; }

  /* ----------------------------------------------------
     Component Polish (Toss/Consumer App Feel)
     ---------------------------------------------------- */

  /* Hero Intro */
  .portal-search-intro {
    min-height: 0 !important;
    padding: 26px 20px 22px !important;
    text-align: left !important;
    box-shadow: 0 8px 24px rgba(20,43,82,0.04) !important;
    background:
      radial-gradient(circle at 88% 14%, rgba(231,53,79,0.11), transparent 25%),
      linear-gradient(145deg, #fff 0%, #fff 68%, #f5f8ff 100%) !important;
  }
  .portal-search-intro::after {
    display: none !important;
  }
  .portal-search-intro::before {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    z-index: 0 !important;
    top: 54px !important;
    right: 18px !important;
    width: 104px !important;
    height: 104px !important;
    background: url("img/logo.webp") center / contain no-repeat !important;
    opacity: 0.055 !important;
    pointer-events: none !important;
  }
  .hero-eyebrow {
    display: inline-flex !important;
    align-items: center;
    background: #fff0f2 !important;
    color: #e7354f !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    padding: 6px 12px !important;
    border-radius: 8px !important;
    margin-bottom: 12px !important;
  }
  .portal-search-intro h1 {
    max-width: 280px;
    font-size: 27px !important;
    line-height: 1.22 !important;
    letter-spacing: -0.04em !important;
    color: #142b52 !important;
    margin-bottom: 10px !important;
    font-weight: 800 !important;
  }
  .portal-search-intro p {
    max-width: 310px;
    font-size: 14px !important;
    line-height: 1.55 !important;
    color: #748095 !important;
    margin-bottom: 18px !important;
    word-break: keep-all;
  }
  .hero-data-status {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin: -6px 0 16px !important;
    padding: 6px 9px !important;
    border-radius: 9px !important;
    background: rgba(22, 159, 132, 0.08) !important;
    color: #237966 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
  }
  .hero-data-status i {
    width: 7px !important;
    height: 7px !important;
    border-radius: 50% !important;
    background: #2bc5a4 !important;
    box-shadow: 0 0 0 4px rgba(43,197,164,0.12) !important;
  }

  /* Search Input */
  .search-form-wrap form {
    border: none !important;
    background: #f2f4f6 !important;
    border-radius: 16px !important;
    height: 56px !important;
    padding: 4px !important;
    display: flex !important;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.03) !important;
  }
  .search-form-wrap input {
    background: transparent !important;
    font-size: 16px !important;
    padding: 0 16px !important;
    border: none !important;
    color: #142033 !important;
    flex: 1 !important;
  }
  .search-form-wrap input::placeholder { color: #a0a8b5 !important; font-weight: 500 !important; }
  .search-form-wrap button {
    background: #e7354f !important;
    border-radius: 12px !important;
    width: 64px !important;
    height: 48px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #fff !important;
    border: none !important;
    margin: 0 !important;
    transition: transform 0.2s;
  }
  .search-form-wrap button:active { transform: scale(0.95); }

  /* Horizontal Filter Badges */
  .search-paths {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    overflow: visible !important;
    margin: 12px 0 0 !important;
    padding: 0 !important;
    gap: 8px !important;
  }
  .search-paths::-webkit-scrollbar { display: none; }
  .search-paths a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 0 !important;
    min-height: 42px !important;
    background: #fff !important;
    border: 1px solid #e5e8ed !important;
    color: #142b52 !important;
    padding: 9px 10px !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.02) !important;
  }
  .popular-searches { display: none !important; }
  .hero-policy-card { display: none !important; }

  /* Action Tiles Grid */
  .portal-action-tiles {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 12px !important;
    width: auto !important;
    max-width: none !important;
    align-self: stretch !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    margin: 0 16px !important;
  }
  .portal-action-tiles a {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    background: #fff4f5 !important;
    border: 1px solid rgba(231,53,79,0.10) !important;
    border-radius: 18px !important;
    min-height: 106px !important;
    padding: 13px 6px 12px !important;
    box-shadow: 0 4px 14px rgba(20,43,82,0.05) !important;
    text-align: center !important;
    transition: transform 0.2s;
  }
  .portal-action-tiles a:nth-child(2) {
    background: #f4f7fc !important;
    border-color: rgba(83,111,158,0.12) !important;
  }
  .portal-action-tiles a:nth-child(3) {
    background: #f3f7f8 !important;
    border-color: rgba(102,124,139,0.12) !important;
  }
  .portal-action-tiles a::before { display: none !important; }
  .portal-action-tiles a:active { transform: scale(0.96); }
  .portal-action-tiles img,
  .portal-action-tiles > a > img {
    position: static !important;
    inset: auto !important;
    order: 0 !important;
    width: 43px !important;
    height: 43px !important;
    margin: 0 !important;
    object-fit: contain !important;
    filter: drop-shadow(0 4px 5px rgba(20,43,82,0.12)) !important;
  }
  .portal-action-tiles strong {
    order: 1 !important;
    font-size: 14.5px !important;
    line-height: 1.2 !important;
    font-weight: 800 !important;
    color: #142033 !important;
  }
  .portal-action-tiles span, .portal-action-tiles b { display: none !important; }

  /* Login / Auth Feed Card */
  .login-widget,
  .side-notice-ticker {
    width: auto !important;
    max-width: none !important;
    align-self: stretch !important;
  }
  .login-form { padding: 24px !important; gap: 12px !important; display: flex !important; flex-direction: column !important; }
  .login-form input {
    height: 52px !important;
    border: 1px solid #e5e8ed !important;
    border-radius: 14px !important;
    padding: 0 16px !important;
    font-size: 15px !important;
    background: #f9fafb !important;
  }
  .btn-login {
    height: 52px !important;
    border-radius: 14px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    background: #142b52 !important;
    color: #fff !important;
    margin-top: 4px !important;
  }
  .login-links { font-size: 14px !important; padding: 4px 4px 0 !important; display: flex !important; justify-content: space-between !important; }
  .login-logged { padding: 24px !important; text-align: left !important; }
  .user-greeting { font-size: 20px !important; margin-bottom: 16px !important; color: #142033 !important; }
  .user-stats { display: flex !important; gap: 12px !important; margin-bottom: 16px !important; }
  .user-stats a { flex: 1 !important; padding: 14px !important; border-radius: 14px !important; font-size: 14px !important; background: #f2f4f6 !important; border: none !important; }
  .user-actions { display: flex !important; gap: 12px !important; }
  .btn-sub { height: 44px !important; border-radius: 12px !important; font-size: 14px !important; border: 1px solid #e5e8ed !important; flex: 1 !important; }

  /* Info Grid Horizontal Swipe */
  .home-topic-hubs { padding: 28px 20px 24px !important; }
  .home-topic-heading span { font-size: 13px !important; color: #e7354f !important; font-weight: 800 !important; }
  .home-topic-heading h2 { font-size: 22px !important; font-weight: 800 !important; margin-top: 4px !important; }
  .home-topic-heading p { font-size: 14.5px !important; line-height: 1.5 !important; color: #748095 !important; margin-top: 8px !important; }
  .home-topic-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    gap: 12px !important;
    margin: 20px -20px -12px !important;
    padding: 0 20px 12px !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .home-topic-grid::-webkit-scrollbar { display: none; }
  .home-topic-grid article {
    flex: 0 0 260px !important;
    background: #f9fafb !important;
    border-radius: 16px !important;
    padding: 20px !important;
    display: flex !important;
    flex-direction: column !important;
    border: none !important;
  }
  .home-topic-grid h3 { font-size: 17px !important; color: #142b52 !important; margin-bottom: 8px !important; font-weight: 800 !important; }
  .home-topic-grid p { font-size: 14px !important; color: #748095 !important; line-height: 1.5 !important; min-height: 0 !important; margin-bottom: 20px !important; flex: 1 !important; }
  .home-topic-grid a {
    display: block !important;
    background: #fff !important;
    color: #142b52 !important;
    text-align: center !important;
    padding: 12px !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    border: 1px solid #e5e8ed !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02) !important;
  }

  /* Dashboards and List Widgets */
  .dash-head, .widget-head, .section-head {
    padding: 20px 20px 16px !important;
    border-bottom: none !important;
    background: transparent !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }
  .dash-head h3, .widget-head h3, .section-head h3 {
    font-size: 18px !important;
    font-weight: 800 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
  }
  .dash-head h3 img { width: 24px !important; height: 24px !important; }
  .dash-head a, .widget-head .more, .section-head .more {
    background: #f2f4f6 !important;
    color: #748095 !important;
    width: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    font-size: 20px !important;
    line-height: 1 !important;
    font-weight: 400 !important;
  }

  .dash-list, .widget-body { padding: 0 20px 20px !important; }
  .dash-list li, .simple-list li a, .rank-list a {
    padding: 16px 0 !important;
    border-bottom: 1px solid #f2f4f6 !important;
  }
  .dash-list li:last-child, .simple-list li:last-child a { border-bottom: none !important; padding-bottom: 0 !important; }
  .dash-list a { display: flex !important; align-items: center !important; gap: 12px !important; }
  .dash-list .title, .simple-list .title, .rank-list .title {
    font-size: 15.5px !important;
    font-weight: 500 !important;
    color: #142033 !important;
    line-height: 1.4 !important;
  }
  .dash-list .meta, .simple-list .date { font-size: 13.5px !important; color: #a0a8b5 !important; }

  /* Tools - Calculation & Problem */
  .portal-tool { padding: 24px 20px !important; border-top: none !important; }
  .tool-heading h3 { font-size: 22px !important; margin-top: 4px !important; font-weight: 800 !important; }
  .tool-kicker { font-size: 13px !important; color: #e7354f !important; font-weight: 800 !important; }
  .tool-heading > a {
    background: #f2f4f6 !important;
    padding: 8px 14px !important;
    border-radius: 10px !important;
    color: #142b52 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
  }
  .portal-tool > p { font-size: 15px !important; line-height: 1.5 !important; color: #748095 !important; margin: 12px 0 24px !important; }

  .tool-links { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 12px !important; border: none !important; }
  .tool-links a {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
    border: 1px solid #e5e8ed !important;
    border-radius: 16px !important;
    padding: 16px !important;
    background: #fff !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.01) !important;
  }
  .tool-links strong { font-size: 16px !important; color: #142033 !important; }
  .tool-links span { font-size: 13px !important; color: #142b52 !important; background: #f2f4f6 !important; padding: 6px 10px !important; border-radius: 8px !important; font-weight: 600 !important; }

  .tool-problem-form { display: flex !important; flex-direction: column !important; gap: 14px !important; }
  .tool-problem-form label { display: flex !important; flex-direction: column !important; gap: 8px !important; }
  .tool-problem-form label span { font-size: 14px !important; color: #142033 !important; font-weight: 700 !important; margin: 0 !important; }
  .tool-problem-form select {
    height: 52px !important;
    border: 1px solid #e5e8ed !important;
    border-radius: 14px !important;
    padding: 0 16px !important;
    font-size: 15px !important;
    background: #f9fafb !important;
    color: #142033 !important;
  }
  .tool-problem-form button {
    height: 56px !important;
    background: #142b52 !important;
    color: #fff !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    border-radius: 14px !important;
    margin-top: 10px !important;
    border: none !important;
  }

  /* Portal Sections (QA, Report, Resolved) */
  .qa-tabs {
    display: flex !important;
    overflow-x: auto !important;
    padding: 0 20px 12px !important;
    margin: 0 -20px 8px !important;
    gap: 8px !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-bottom: 1px solid #f2f4f6 !important;
  }
  .qa-tabs::-webkit-scrollbar { display: none; }
  .qa-tabs a { flex: 0 0 auto; font-size: 14.5px !important; padding: 8px 16px !important; background: #f2f4f6 !important; color: #748095 !important; border-radius: 20px !important; font-weight: 600 !important; }
  .qa-tabs a.active { background: #142b52 !important; color: #fff !important; }

  .qa-table, .report-table, .resolved-table { padding: 0 20px 12px !important; }
  .qa-row, .report-row, .resolved-row { padding: 20px 0 !important; border-bottom: 1px solid #f2f4f6 !important; gap: 10px !important; }
  .qa-row:last-child, .report-row:last-child, .resolved-row:last-child { border-bottom: none !important; }
  .qa-title { flex-direction: column !important; align-items: flex-start !important; gap: 10px !important; margin-bottom: 12px !important; }
  .badge-status { font-size: 13px !important; padding: 6px 10px !important; border-radius: 6px !important; }
  .qa-title strong, .report-title, .resolved-title { font-size: 16px !important; line-height: 1.45 !important; color: #142033 !important; white-space: normal !important; }
  .qa-meta, .resolved-meta { font-size: 13.5px !important; color: #a0a8b5 !important; }

  .report-row { flex-direction: column !important; align-items: flex-start !important; }
  .report-provider { font-size: 13.5px !important; background: #f9fafb !important; padding: 6px 10px !important; border-radius: 8px !important; color: #748095 !important; }

  /* Videos Feed */
  .video-grid {
    display: flex !important;
    overflow-x: auto !important;
    padding: 0 20px 24px !important;
    margin: 0 -20px !important;
    gap: 16px !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-wrap: nowrap !important;
  }
  .video-grid::-webkit-scrollbar { display: none; }
  .video-card { flex: 0 0 280px !important; }
  .video-card .thumb { border-radius: 16px !important; margin-bottom: 14px !important; }
  .video-card .v-title { font-size: 16px !important; font-weight: 700 !important; line-height: 1.4 !important; }
  .video-relations { display: none !important; }

  /* Providers List */
  .provider-list { padding: 0 20px !important; gap: 12px !important; }
  .prov-link { background: #f9fafb !important; border-radius: 16px !important; padding: 18px !important; border: 1px solid #e5e8ed !important; }
  .prov-name { font-size: 16px !important; font-weight: 700 !important; color: #142033 !important; }
  .prov-meta { font-size: 13.5px !important; color: #748095 !important; margin-top: 8px !important; }
  .btn-compare { margin: 12px 20px 20px !important; height: 56px !important; border-radius: 14px !important; font-size: 16px !important; border: none !important; background: #142b52 !important; color: #fff !important; }

  /* Special Banners */
  .rail-service-banner { padding: 40px 28px !important; min-height: 320px !important; }
  .rail-service-banner > strong { font-size: 28px !important; line-height: 1.3 !important; }
  .rail-art { height: 280px !important; }

  /* Rank List */
  .rank-list { padding: 0 20px 16px !important; gap: 18px !important; }
  .rank-list a { font-size: 16px !important; gap: 16px !important; }
  .rank-list .rank { width: 28px !important; height: 28px !important; font-size: 15px !important; border-radius: 8px !important; }

  /* Utilities */
  .side-notice-ticker { border-radius: 20px !important; margin: 0 16px !important; padding: 16px 20px !important; }
  .live-chat-lock { padding: 24px !important; border-radius: 16px !important; }
  .side-quick-banner { border-radius: 20px !important; margin: 0 16px !important; padding: 20px !important; }
}

@media (max-width: 768px) {
  /* Ticker Refinement */
  .side-notice-ticker {
    display: flex !important;
    align-items: center !important;
    padding: 14px 18px !important;
    border-radius: 16px !important;
    background: #fff !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03) !important;
    margin: 0 16px !important;
    gap: 12px !important;
  }
  .side-notice-ticker strong {
    font-size: 13px !important;
    color: #e7354f !important;
    background: #fff0f2 !important;
    padding: 4px 8px !important;
    border-radius: 6px !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
  }
  .side-notice-ticker a, .side-notice-ticker span {
    font-size: 14.5px !important;
    color: #142033 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    flex: 1 !important;
  }
  .side-notice-ticker b {
    color: #a0a8b5 !important;
    font-size: 18px !important;
  }
}

@media (max-width: 768px) {
  /* Extra subtle micro-interactions */
  .home-topic-grid a:active,
  .prov-link:active,
  .btn-login:active,
  .btn-sub:active,
  .btn-compare:active,
  .qa-row:active,
  .report-row:active,
  .resolved-row:active,
  .dash-list a:active,
  .tool-links a:active,
  .rank-list a:active,
  .simple-list li a:active {
    transform: scale(0.97) !important;
    background-color: #f7f8fa !important;
    transition: transform 0.1s, background-color 0.1s !important;
    border-radius: 12px !important;
  }
  .qa-row, .report-row, .resolved-row, .dash-list a, .tool-links a, .rank-list a, .simple-list li a, .home-topic-grid a, .prov-link {
    transition: transform 0.2s, background-color 0.2s !important;
  }
}
