:root {
  --blue-700: #2f6bff;
  --blue-50: #f2f6ff;
  --surface: #ffffff;
  --surface-subtle: #f8fafc;
  --surface-muted: #f2f4f6;
  --text-strong: #191f28;
  --text-base: #333d4b;
  --text-soft: #6b7684;
  --line: #e5e8eb;
  --line-strong: #d7dce2;
  --success: #0f9f6e;
  --error: #d14343;
  --shadow-hero: 0 20px 40px rgba(15, 23, 42, 0.04);
  --shadow-card: 0 8px 24px rgba(15, 23, 42, 0.04);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Pretendard", "Noto Sans KR", sans-serif;
  color: var(--text-strong);
  background: #f6f7f9;
}

body::before {
  content: none;
  display: none;
}

.portal-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 56px;
}

.portal-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.portal-topbar,
.portal-hero,
.portal-panel {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.portal-topbar {
  position: sticky;
  top: 10px;
  z-index: 24;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  backdrop-filter: blur(10px);
}

.portal-top-actions {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.portal-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  color: var(--text-strong);
  text-decoration: none;
}

.portal-brand strong {
  font-size: 1.2rem;
  letter-spacing: 0;
}

.portal-brand span,
.portal-nav a,
.portal-label,
.portal-panel-head span,
.portal-result-category,
.portal-shortcut span,
.portal-summary span,
.portal-result-card p,
.portal-work-card p {
  color: var(--text-soft);
}

.portal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 6px;
}

.portal-nav a {
  color: var(--text-base);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
}

.portal-contact-trigger {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-subtle);
  color: var(--text-strong);
  font-weight: 700;
}

.portal-contact-trigger:hover {
  background: #edf1f5;
}

.portal-sticky-search {
  position: sticky;
  top: 92px;
  z-index: 23;
  margin-top: 12px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  transition: transform 180ms ease, padding 180ms ease, box-shadow 180ms ease;
}

.portal-sticky-search.is-compact {
  padding: 9px 12px;
  transform: scale(0.99);
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.05);
}

.portal-sticky-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.portal-sticky-search-form input,
.portal-sticky-search-form button {
  min-height: 46px;
  border-radius: 16px;
}

.portal-sticky-search-form input {
  padding: 0 16px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.portal-sticky-search-form button {
  padding: 0 18px;
  border: 1px solid var(--line);
  background: var(--surface-muted);
  font-weight: 700;
}

.portal-quick-panel {
  position: fixed;
  right: 18px;
  bottom: 22px;
  z-index: 26;
  display: grid;
  gap: 10px;
}

.portal-quick-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--text-strong);
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(12px);
}

.portal-quick-link.is-button {
  font: inherit;
}

.portal-contact-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
}

.portal-contact-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.32);
}

.portal-contact-dialog {
  position: relative;
  width: min(460px, calc(100% - 24px));
  margin: 72px auto 0;
  padding: 18px;
  border: 1px solid #d7d7d7;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}

.portal-contact-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.portal-contact-form {
  display: grid;
  gap: 8px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.portal-contact-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.portal-contact-head strong {
  font-size: 0.95rem;
  color: #111;
}

.portal-contact-head span {
  font-size: 0.76rem;
  color: #767676;
}

.portal-contact-close {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #d4d4d4;
  border-radius: 999px;
  background: #f5f5f5;
  color: #222;
}

.portal-contact-form input,
.portal-contact-form textarea {
  width: 100%;
  border: 1px solid #d4d4d4;
  border-radius: 12px;
  background: #fff;
  color: #111;
  padding: 10px 12px;
  outline: 0;
}

.portal-contact-form textarea {
  resize: vertical;
  min-height: 76px;
}

.portal-contact-form button {
  min-height: 42px;
  border: 1px solid #cfcfcf;
  border-radius: 12px;
  background: #ededed;
  color: #111;
  font-weight: 700;
}

.portal-contact-form button:hover {
  background: #e3e3e3;
}

.portal-contact-form button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.portal-contact-status {
  min-height: 18px;
  margin: 0;
  font-size: 0.82rem;
  color: #666;
}

.portal-contact-status.is-success {
  color: #0d7a50;
}

.portal-contact-status.is-error {
  color: #b53b3b;
}

.portal-modal-open {
  overflow: hidden;
}

.portal-comment-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.portal-comment-trigger {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid #cfcfcf;
  border-radius: 999px;
  background: #f1f1f1;
  color: #111;
  font-weight: 700;
}

.portal-comment-trigger:hover {
  background: #e5e5e5;
}

.portal-comment-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.portal-comment-embed {
  padding: 18px;
  border: 1px solid #dddddd;
  border-radius: 18px;
  background: #f8f8f8;
}

#disqus_thread {
  width: 100%;
  min-height: 180px;
}

.portal-main {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.portal-hero {
  padding: 36px 32px 32px;
}

.portal-live-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.portal-live-card,
.portal-mini-metric,
.portal-feed-item {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-subtle);
  box-shadow: none;
}

.portal-live-card span,
.portal-mini-metric span {
  display: block;
  color: var(--text-soft);
  font-size: 0.82rem;
}

.portal-live-card strong,
.portal-mini-metric strong {
  display: block;
  margin-top: 6px;
  color: var(--text-strong);
  font-size: 1rem;
}

.portal-mini-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.portal-live-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.portal-live-badge {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--text-base);
  font-weight: 700;
  font-size: 0.84rem;
}

.portal-label,
.portal-panel-head span,
.portal-result-category {
  font-size: 0.84rem;
  font-weight: 600;
}

.portal-hero h1,
.portal-panel-head h2,
.portal-result-card strong,
.portal-work-card strong {
  margin: 0;
  color: var(--text-strong);
}

.portal-hero h1 {
  margin-top: 12px;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.06;
  letter-spacing: 0;
}

.portal-hero-title .text-wrap {
  display: block;
  min-height: 1em;
}

.portal-copy {
  max-width: 700px;
  margin: 18px 0 0;
  color: var(--text-soft);
  line-height: 1.65;
}

.char {
  display: inline;
  opacity: 1;
  transform: none;
  animation: none;
}

.portal-search-form {
  margin-top: 28px;
}

.portal-provider-picker {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-subtle);
}

.portal-provider-copy {
  margin: 0;
  color: var(--text-base);
  line-height: 1.6;
}

.portal-provider-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.portal-provider-button {
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-strong);
  font-weight: 700;
}

.portal-provider-button:hover {
  background: var(--surface-muted);
  border-color: var(--line-strong);
}

.portal-search-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-subtle);
}

.portal-search-box input {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text-strong);
}

.portal-search-box button,
.portal-chip,
.portal-shortcut,
.portal-stylist-form button {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-strong);
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.portal-search-box button {
  min-width: 118px;
  min-height: 54px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 700;
}

.portal-search-box button:hover,
.portal-chip:hover,
.portal-shortcut:hover,
.portal-stylist-form button:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background: var(--surface-muted);
}

.portal-keyword-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.portal-chip {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.portal-tools-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
  align-items: start;
}

.portal-panel-primary-tool {
  box-shadow: 0 24px 48px rgba(18, 67, 102, 0.12);
}

.portal-panel-secondary-tool {
  margin-top: 24px;
}

.portal-panel {
  padding: 24px;
}

.portal-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.portal-shortcuts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.portal-shortcut {
  display: grid;
  gap: 6px;
  padding: 18px 16px;
  border-radius: 20px;
  text-align: left;
}

.portal-shortcut-link {
  text-decoration: none;
}

.portal-summary {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.portal-summary li,
.portal-result-card,
.portal-work-card {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-subtle);
}

.portal-results,
.portal-workspace {
  display: grid;
  gap: 14px;
}

.portal-section-note {
  margin: 0;
  max-width: 380px;
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.55;
  text-align: right;
}

.portal-article-grid,
.portal-faq-list,
.portal-trust-links,
.portal-profile-list,
.portal-feed-list {
  display: grid;
  gap: 14px;
}

.portal-article-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.portal-article-card,
.portal-faq-item,
.portal-trust-link,
.portal-profile-item,
.portal-feed-item {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-subtle);
}

.portal-feed-item strong {
  color: var(--text-strong);
}

.portal-feed-item p {
  margin: 8px 0 0;
  color: var(--text-soft);
  line-height: 1.7;
}

.portal-article-card h3,
.portal-faq-item h3 {
  margin: 10px 0 10px;
  font-size: 1.02rem;
  color: var(--text-strong);
}

.portal-article-card p,
.portal-faq-item p,
.portal-profile-item p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.7;
}

.portal-article-card a,
.portal-feed-item a,
.portal-faq-item a,
.portal-doc-panel a {
  color: var(--blue-700);
  font-weight: 700;
  text-decoration: none;
}

.portal-article-card a:hover,
.portal-feed-item a:hover,
.portal-faq-item a:hover,
.portal-doc-panel a:hover {
  text-decoration: underline;
}

.portal-calendar-widget,
.portal-fx-widget {
  display: grid;
  gap: 16px;
}

.portal-stylist-panel {
  border-color: var(--line);
  background: var(--surface);
}

.portal-stylist-tabs {
  display: inline-flex;
  gap: 8px;
  padding: 4px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-muted);
}

.portal-stylist-tab {
  min-height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-soft);
  font-weight: 700;
}

.portal-stylist-tab.is-active {
  background: var(--surface);
  color: var(--text-strong);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.portal-stylist-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr);
  gap: 18px;
  align-items: start;
}

.portal-stylist-form,
.portal-stylist-preview {
  display: grid;
  gap: 16px;
}

.portal-stylist-form {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-subtle);
  box-shadow: none;
}

.portal-stylist-form label {
  display: grid;
  gap: 8px;
  color: var(--text-base);
  font-weight: 700;
}

.portal-form-grid {
  display: grid;
  gap: 14px;
}

.portal-form-grid.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.portal-stylist-form input,
.portal-stylist-form select,
.portal-stylist-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text-strong);
  font: inherit;
}

.portal-stylist-form input:focus,
.portal-stylist-form select:focus,
.portal-stylist-form textarea:focus {
  outline: 2px solid rgba(47, 107, 255, 0.14);
  border-color: #9db7ff;
  background: var(--surface);
}

.portal-stylist-form textarea {
  min-height: 112px;
  padding-top: 14px;
  resize: vertical;
}

.portal-unit-input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.portal-unit-input strong {
  min-width: 44px;
  color: var(--text-soft);
}

.portal-stylist-form button {
  min-height: 52px;
  border-color: var(--blue-700);
  border-radius: 999px;
  background: var(--blue-700);
  color: #ffffff;
  font-weight: 800;
}

.portal-stylist-form button:hover {
  border-color: #2457d6;
  background: #2457d6;
}

.portal-stylist-form button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.portal-stylist-status {
  min-height: 22px;
  margin: 0;
  color: var(--text-soft);
}

.portal-stylist-status.is-success {
  color: #4d7a3a;
  font-weight: 700;
}

.portal-stylist-status.is-error {
  color: #b04a33;
  font-weight: 700;
}

.portal-photo-preview {
  display: grid;
  place-items: center;
  min-height: 340px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-subtle);
  box-shadow: none;
  color: var(--text-soft);
  text-align: center;
}

.portal-photo-preview img {
  width: 100%;
  height: 100%;
  max-height: 420px;
  object-fit: cover;
}

.portal-stylist-summary {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-subtle);
  box-shadow: none;
}

.portal-stylist-summary strong {
  color: var(--text-strong);
}

.portal-stylist-summary p {
  margin: 10px 0 0;
  color: var(--text-soft);
  line-height: 1.7;
}

.portal-style-report {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--blue-50);
  box-shadow: none;
}

.portal-style-report strong {
  display: block;
  color: var(--text-strong);
}

.portal-style-report p {
  margin: 14px 0 0;
  color: var(--text-base);
  line-height: 1.75;
  white-space: normal;
}

.portal-calendar-header,
.portal-fx-series-head,
.portal-fx-legend,
.portal-fx-axis {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.portal-calendar-controls {
  display: inline-flex;
  gap: 8px;
}

.portal-calendar-nav {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid #cfd8e2;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-weight: 700;
}

.portal-calendar-header strong,
.portal-fx-series-head strong {
  color: #111;
}

.portal-calendar-header span,
.portal-fx-series-head span {
  color: #5f5f5f;
  font-size: 0.9rem;
}

.portal-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

.portal-calendar-weekdays span {
  text-align: center;
  color: #666;
  font-size: 0.85rem;
  font-weight: 700;
}

.portal-calendar-day {
  min-height: 58px;
  padding: 10px;
  border: 1px solid #dfdfdf;
  border-radius: 16px;
  background: #f8f8f8;
  text-align: left;
}

.portal-calendar-day span {
  color: #111;
  font-weight: 700;
}

.portal-calendar-day.is-empty {
  border-style: dashed;
  background: #fbfbfb;
}

.portal-calendar-day.is-today {
  border-color: #8bb6d6;
  background: #eef6fb;
  box-shadow: inset 0 0 0 1px rgba(71, 129, 171, 0.14);
}

.portal-calendar-day.is-selected {
  border-color: #3c7cb3;
  background: linear-gradient(180deg, #eef6fb 0%, #dcecf8 100%);
}

.portal-calendar-day.is-holiday {
  border-color: rgba(219, 123, 34, 0.32);
}

.portal-calendar-day.has-note {
  box-shadow: inset 0 0 0 1px rgba(29, 154, 108, 0.08);
}

.portal-calendar-markers {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.portal-calendar-marker {
  width: 7px;
  height: 7px;
  border-radius: 999px;
}

.portal-calendar-marker.holiday {
  background: #db7b22;
}

.portal-calendar-marker.note {
  background: #1d9a6c;
}

.portal-calendar-detail {
  padding: 18px;
  border: 1px solid #dfdfdf;
  border-radius: 18px;
  background: #f8f8f8;
}

.portal-calendar-detail strong {
  display: block;
  color: #111;
}

.portal-calendar-detail p {
  margin: 8px 0 0;
  color: #5d5d5d;
  line-height: 1.7;
  cursor: pointer;
}

.portal-fx-legend {
  flex-wrap: wrap;
  justify-content: flex-start;
}

.portal-fx-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid #dfdfdf;
  border-radius: 999px;
  background: #fafafa;
}

.portal-fx-swatch {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.portal-fx-swatch.usd,
.portal-fx-path.usd {
  background: #2d7ff9;
  stroke: #2d7ff9;
}

.portal-fx-swatch.jpy,
.portal-fx-path.jpy {
  background: #1d9a6c;
  stroke: #1d9a6c;
}

.portal-fx-swatch.eur,
.portal-fx-path.eur {
  background: #db7b22;
  stroke: #db7b22;
}

.portal-fx-chart {
  position: relative;
}

.portal-fx-board {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}

.portal-fx-svg {
  width: 100%;
  height: 240px;
}

.portal-fx-svg-main {
  display: block;
}

.portal-fx-chart-wrap {
  display: grid;
  gap: 10px;
}

.portal-fx-yaxis {
  display: grid;
  align-content: space-between;
  justify-items: end;
  padding: 8px 0;
  color: var(--text-soft);
  font-size: 0.82rem;
}

.portal-fx-grid-bg {
  fill: var(--surface-subtle);
}

.portal-fx-grid-line {
  stroke: #d8dde3;
  stroke-width: 1;
  stroke-dasharray: 4 6;
}

.portal-fx-grid-label {
  display: none;
}

.portal-fx-path {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.portal-fx-dot {
  fill: #fff;
  stroke-width: 3;
  cursor: pointer;
}

.portal-fx-axis {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  justify-content: space-between;
  color: var(--text-soft);
  font-size: 0.82rem;
  gap: 8px;
}

.portal-fx-axis span {
  text-align: center;
}

.portal-fx-note {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.88rem;
  line-height: 1.6;
}

.portal-fx-tooltip {
  position: absolute;
  right: 0;
  margin-top: -6px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  color: var(--text-strong);
  font-size: 0.84rem;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.portal-fx-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.portal-fx-summary-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-subtle);
}

.portal-fx-summary-change {
  margin: 10px 0 0;
  font-size: 0.92rem;
  font-weight: 700;
}

.portal-fx-summary-change.is-up {
  color: #b25a20;
}

.portal-fx-summary-change.is-down {
  color: #0f7b50;
}

.portal-trust-panel .portal-trust-link {
  padding: 18px;
  border-radius: 16px;
  background: var(--surface-subtle);
}

.portal-profile-item strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text-strong);
}

.portal-profile-item a,
.portal-trust-link {
  color: inherit;
  text-decoration: none;
}

.portal-trust-link {
  display: grid;
  gap: 6px;
}

.portal-trust-link strong {
  color: var(--text-strong);
}

.portal-trust-link span {
  color: var(--text-soft);
  line-height: 1.6;
}

.portal-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-top: 24px;
  padding: 22px 8px 8px;
  color: var(--text-soft);
}

.portal-footer p {
  margin: 6px 0 0;
}

.portal-footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

.portal-footer-nav a {
  color: var(--text-base);
  text-decoration: none;
}

.portal-doc-body {
  background: #f6f7f9;
}

.portal-doc-shell {
  padding-bottom: 56px;
}

.portal-doc-panel {
  margin-top: 22px;
}

.portal-doc-panel h1 {
  margin: 12px 0 18px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  color: var(--text-strong);
}

.portal-doc-panel h2 {
  margin: 28px 0 10px;
  color: var(--text-strong);
}

.portal-doc-panel p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.85;
}

.launchpad-body {
  background: #0f1115;
  color: #f5f7fa;
}

.launchpad-shell {
  padding-bottom: 48px;
}

.launchpad-body .portal-topbar,
.launchpad-body .portal-panel {
  border-color: rgba(255, 255, 255, 0.08);
  background: #171b22;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22);
}

.launchpad-body .portal-brand,
.launchpad-body .portal-panel-head h2,
.launchpad-body .portal-panel h1,
.launchpad-body .portal-nav a,
.launchpad-body .portal-summary strong,
.launchpad-body .portal-trust-link strong {
  color: #f5f7fa;
}

.launchpad-body .portal-brand span,
.launchpad-body .portal-panel-head span,
.launchpad-body .portal-section-note,
.launchpad-body .portal-summary span,
.launchpad-body .portal-trust-link span {
  color: #a7b0bd;
}

.launchpad-hero {
  margin-top: 18px;
}

.launchpad-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.launchpad-meta-card {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: #11151b;
}

.launchpad-meta-card span {
  display: block;
  color: #8f98a8;
  font-size: 0.84rem;
}

.launchpad-meta-card strong {
  display: block;
  margin-top: 8px;
  color: #f5f7fa;
  font-size: 1rem;
}

.launchpad-panel {
  padding: 24px;
}

.launchpad-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.launchpad-pad {
  position: relative;
  display: grid;
  gap: 8px;
  align-content: end;
  min-height: 146px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02) 22%, rgba(0, 0, 0, 0.12) 100%),
    #11151b;
  color: #f5f7fa;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -10px 20px rgba(0, 0, 0, 0.2),
    0 14px 26px rgba(0, 0, 0, 0.22);
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease, filter 120ms ease;
}

.launchpad-pad::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.launchpad-pad::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  top: 12px;
  height: 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  filter: blur(8px);
  pointer-events: none;
}

.launchpad-pad span {
  color: #9aa4b2;
  font-size: 0.86rem;
  font-weight: 700;
}

.launchpad-pad strong {
  font-size: 1.1rem;
}

.launchpad-pad:hover {
  transform: translateY(-2px);
  filter: brightness(1.03);
}

.launchpad-pad.is-active {
  transform: scale(0.985);
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.08),
    inset 0 0 36px rgba(255, 255, 255, 0.08),
    0 0 18px rgba(255, 255, 255, 0.08);
}

.launchpad-pad.is-kick {
  background: linear-gradient(180deg, rgba(47, 107, 255, 0.46), rgba(17, 21, 27, 0.96));
}

.launchpad-pad.is-bass {
  background: linear-gradient(180deg, rgba(15, 159, 110, 0.46), rgba(17, 21, 27, 0.96));
}

.launchpad-pad.is-lead {
  background: linear-gradient(180deg, rgba(157, 92, 255, 0.46), rgba(17, 21, 27, 0.96));
}

.launchpad-pad.is-fx {
  background: linear-gradient(180deg, rgba(255, 153, 54, 0.46), rgba(17, 21, 27, 0.96));
}

.launchpad-guide-grid {
  margin-top: 18px;
}

.portal-results {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.portal-workspace {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.portal-result-empty {
  grid-column: 1 / -1;
}

.portal-result-top {
  margin-bottom: 10px;
}

.portal-result-card p,
.portal-work-card p {
  margin: 10px 0 0;
  line-height: 1.65;
}

@media (max-width: 920px) {
  .portal-grid,
  .portal-results,
  .portal-workspace,
  .portal-stylist-layout,
  .portal-shortcuts,
  .portal-article-grid,
  .portal-fx-summary,
  .portal-live-strip,
  .portal-mini-metrics,
  .portal-feed-grid,
  .portal-tools-grid {
    grid-template-columns: 1fr;
  }

  .portal-panel-secondary-tool {
    margin-top: 0;
  }

  .launchpad-meta,
  .launchpad-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .portal-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 10px;
  }

  .portal-topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .portal-comment-head,
  .portal-top-actions {
    width: 100%;
    justify-content: space-between;
    align-items: center;
  }

  .portal-nav {
    padding-top: 0;
  }

  .portal-panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .portal-section-note {
    max-width: none;
    text-align: left;
  }

  .portal-hero {
    padding: 32px 20px 24px;
  }

  .launchpad-grid,
  .launchpad-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-panel {
    padding: 20px;
  }

  .portal-search-box {
    grid-template-columns: 1fr;
    border-radius: 28px;
  }

  .portal-search-box button {
    width: 100%;
  }

  .portal-form-grid.two-col {
    grid-template-columns: 1fr;
  }

  .portal-contact-dialog {
    margin-top: 28px;
  }

  .portal-footer {
    flex-direction: column;
  }

  .portal-footer-nav {
    justify-content: flex-start;
  }

  .portal-fx-board {
    grid-template-columns: 1fr;
  }

  .portal-fx-yaxis {
    display: none;
  }

  .portal-sticky-search {
    top: 8px;
  }

  .portal-sticky-search-form {
    grid-template-columns: 1fr;
  }

  .portal-quick-panel {
    right: 10px;
    bottom: 14px;
  }

  .portal-quick-link {
    min-width: 60px;
  }
}
