:root {
  --portal-surface: rgba(255, 255, 255, 0.86);
  --portal-surface-strong: rgba(255, 255, 255, 0.94);
  --portal-surface-soft: rgba(247, 251, 255, 0.92);
  --portal-line: rgba(38, 112, 255, 0.1);
  --portal-line-strong: rgba(38, 112, 255, 0.16);
  --portal-text: #162948;
  --portal-text-soft: #546983;
  --portal-text-muted: #8090a6;
  --portal-shadow: 0 20px 56px rgba(39, 83, 153, 0.1);
  --portal-shadow-soft: 0 16px 36px rgba(39, 83, 153, 0.08);
  --portal-radius-xl: 32px;
  --portal-radius-lg: 24px;
  --portal-radius-md: 20px;
  --portal-radius-sm: 16px;
}

.pc-portal-body .console-shell {
  min-height: 100vh;
}

.portal-main {
  padding: 44px 0 88px;
}

.portal-main__inner {
  display: grid;
  gap: 32px;
}

.workspace-page {
  display: grid;
  gap: 36px;
}

.portal-breadcrumb {
  position: relative;
  z-index: 1;
}

.portal-breadcrumb__list {
  margin: 0;
  padding: 14px 18px;
  list-style: none;
  border: 1px solid rgba(38, 112, 255, 0.1);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(12px);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
}

.portal-breadcrumb__item {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.portal-breadcrumb__item + .portal-breadcrumb__item::before {
  content: "/";
  color: rgba(84, 105, 131, 0.55);
  font-size: 13px;
  font-weight: 600;
}

.portal-breadcrumb__link,
.portal-breadcrumb__current {
  min-width: 0;
  font-size: 14px;
  line-height: 1.6;
  white-space: nowrap;
}

.portal-breadcrumb__link {
  color: var(--portal-text-soft);
  transition: color 0.24s ease;
}

.portal-breadcrumb__link:hover {
  color: var(--portal-text);
}

.portal-breadcrumb__current {
  color: #47627f;
}

.portal-breadcrumb__current.is-current {
  color: var(--portal-text);
  font-weight: 700;
}

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

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 42px 44px;
  border: 1px solid rgba(38, 112, 255, 0.08);
  border-radius: var(--portal-radius-xl);
  background:
    radial-gradient(circle at left top, rgba(125, 187, 255, 0.18), transparent 32%),
    radial-gradient(circle at right bottom, rgba(125, 187, 255, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(246, 251, 255, 0.96) 100%);
  box-shadow: var(--portal-shadow);
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.82fr);
  gap: 28px;
}

.page-hero::before,
.page-hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.page-hero::before {
  width: 320px;
  height: 320px;
  top: -120px;
  right: -90px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.08) 66%, transparent 70%);
}

.page-hero::after {
  width: 240px;
  height: 240px;
  left: -72px;
  bottom: -84px;
  background: radial-gradient(circle, rgba(123, 181, 255, 0.22), rgba(123, 181, 255, 0.06) 58%, transparent 70%);
}

.page-hero__copy,
.hero-summary-card {
  position: relative;
  z-index: 1;
}

.page-hero__title {
  margin: 18px 0 16px;
  color: var(--portal-text);
  font-size: clamp(34px, 3.4vw, 50px);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.03em;
}

.page-hero__desc {
  margin: 0;
  max-width: 760px;
  color: var(--portal-text-soft);
  font-size: 16px;
  line-height: 1.85;
}

.page-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.info-chip {
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(38, 112, 255, 0.1);
  background: rgba(255, 255, 255, 0.78);
  color: #2d5eb6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  
}

.hero-summary-card {
  padding: 26px;
  border-radius: 26px;
  border: 1px solid rgba(38, 112, 255, 0.1);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 32px rgba(39, 83, 153, 0.08);
  backdrop-filter: blur(12px);
  display: grid;
  gap: 16px;
}

.hero-summary-card__label {
  color: #5883c7;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-summary-card__title {
  margin: 0;
  color: var(--portal-text);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.32;
}

.hero-summary-card__desc {
  margin: 0;
  color: var(--portal-text-soft);
  line-height: 1.75;
}

.hero-summary-list {
  display: grid;
  gap: 12px;
}

.hero-summary-item {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(38, 112, 255, 0.08);
  background: rgba(247, 251, 255, 0.82);
  display: grid;
  gap: 6px;
}

.hero-summary-item strong {
  color: var(--portal-text);
  font-size: 14px;
}

.hero-summary-item span {
  color: var(--portal-text-soft);
  font-size: 14px;
  line-height: 1.65;
}

.portal-section {
  display: grid;
  gap: 24px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  width: fit-content;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(38, 112, 255, 0.1);
  color: #2f69d8;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-heading--compact {
  margin-bottom: 0;
  text-align: left;
}

.section-heading--compact .section-divider {
  margin-top: 14px;
}

.tool-shell,
.status-layout,
.account-layout,
.records-layout {
  display: grid;
  gap: 24px;
  align-items: start;
}

.tool-shell {
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.64fr);
  align-items: stretch;
}

.tool-shell--composer {
  align-items: start;
}

.tool-shell--single {
  grid-template-columns: minmax(0, 1fr);
}

.status-layout,
.account-layout {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
}

.account-layout--single {
  grid-template-columns: minmax(0, 1fr);
}

.records-layout {
  grid-template-columns: minmax(0, 1fr);
}

.account-layout__main,
.tool-panel {
  display: grid;
  gap: 24px;
}

.tool-stage,
.tool-panel {
  height: 100%;
}

.tool-shell--composer .tool-stage,
.tool-shell--composer .tool-panel,
.tool-shell--composer .tool-stage > .panel-card,
.tool-shell--composer .tool-panel > .panel-card {
  height: auto;
}

.tool-stage {
  display: grid;
}

.tool-stage > .panel-card,
.tool-panel > .panel-card:only-child {
  height: 100%;
}

.tool-shell--composer .tool-panel > .panel-card:only-child {
  height: auto;
}

.tool-panel > .panel-card:only-child {
  display: flex;
  flex-direction: column;
}

.tool-panel--submit {
  align-content: start;
}

.panel-card {
  padding: 28px;
  border: 1px solid var(--portal-line);
  border-radius: 28px;
  background: var(--portal-surface);
  box-shadow: var(--portal-shadow-soft);
  backdrop-filter: blur(12px);
}

.panel-card--stage {
  background:
    radial-gradient(circle at right top, rgba(125, 187, 255, 0.1), transparent 30%),
    var(--portal-surface-strong);
}

.panel-card--soft {
  background:
    linear-gradient(180deg, rgba(236, 245, 255, 0.96) 0%, rgba(248, 251, 255, 0.94) 100%);
}

.panel-card--submit {
  gap: 20px;
}

.panel-card--submit .panel-card__head {
  margin-bottom: 0;
}

.panel-card__head {
  margin-bottom: 24px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.panel-card__title {
  margin: 0;
  color: var(--portal-text);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.25;
}

.panel-card__desc {
  margin: 8px 0 0;
  color: var(--portal-text-soft);
  line-height: 1.75;
}

.panel-card__actions {
  margin-top: 24px;
  display: grid;
  gap: 12px;
}

.btn--ghost {
  color: #315591;
  border: 1px solid rgba(38, 112, 255, 0.12);
  background: rgba(255, 255, 255, 0.88);
}

.btn--ghost:hover,
.btn--ghost:focus {
  color: #24457d;
  border-color: rgba(38, 112, 255, 0.22);
}

.btn--outline {
  color: #315591;
  border-color: rgba(38, 112, 255, 0.16);
  background: transparent;
}

.btn--block {
  width: 100%;
}

.btn--large {
  min-height: 56px;
  font-size: 16px;
}

.text-link {
  color: #1f63f5;
  font-weight: 600;
}

.text-link:hover {
  text-decoration: underline;
}

.upload-stage {
  min-height: 316px;
  padding: 28px;
  border-radius: 28px;
  border: 1.5px dashed rgba(38, 112, 255, 0.18);
  background:
    radial-gradient(circle at top, rgba(124, 184, 255, 0.14), transparent 42%),
    linear-gradient(180deg, rgba(248, 251, 255, 0.96) 0%, rgba(239, 247, 255, 0.9) 100%);
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 16px;
  text-align: center;
}

.upload-stage.is-dragging {
  border-color: rgba(38, 112, 255, 0.34);
  background:
    radial-gradient(circle at top, rgba(124, 184, 255, 0.22), transparent 42%),
    linear-gradient(180deg, rgba(246, 250, 255, 0.98) 0%, rgba(233, 244, 255, 0.94) 100%);
}

.upload-dropzone__title {
  color: var(--portal-text);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 700;
  line-height: 1.16;
  max-width: 14ch;
}

.upload-dropzone__desc {
  max-width: 600px;
  color: var(--portal-text-soft);
  line-height: 1.8;
  text-align: center;
}

.editor-stage {
  display: grid;
  gap: 16px;
}

.preview-frame {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(20, 48, 92, 0.12);
  background: linear-gradient(180deg, #15376b 0%, #0f2345 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  aspect-ratio: 16 / 9;
}

.preview-frame__player,
.result-preview-stage__video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: rgba(8, 18, 36, 0.72);
}

.preview-frame__overlay {
  position: absolute;
  inset: 0;
  cursor: crosshair;
}

.selection-box {
  position: absolute;
  border: 2px solid rgba(38, 112, 255, 0.92);
  background: rgba(38, 112, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
  cursor: move;
}

.toast--top {
  position: fixed;
  top: 24px;
  left: 50%;
  min-width: 320px;
  max-width: min(560px, calc(100vw - 32px));
  padding: 16px 20px;
  border: 1px solid rgba(12, 34, 72, 0.18);
  background: linear-gradient(180deg, rgba(24, 86, 215, 0.98) 0%, rgba(14, 58, 156, 0.98) 100%);
  box-shadow: 0 18px 36px rgba(11, 37, 92, 0.28);
  color: #fff;
  text-align: center;
  font-weight: 700;
  transform: translate(-50%, -12px);
  z-index: 110;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast--top.is-active {
  opacity: 1;
  transform: translate(-50%, 0);
}

.video-controller {
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid rgba(38, 112, 255, 0.08);
  background:
    radial-gradient(circle at left center, rgba(124, 184, 255, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(247, 251, 255, 0.98) 0%, rgba(239, 247, 255, 0.94) 100%);
  box-shadow: 0 14px 28px rgba(39, 83, 153, 0.06);
  display: flex;
  align-items: center;
  gap: 18px;
}

.video-controller.is-disabled {
  opacity: 0.72;
}

.video-controller__toggle {
  width: 35px;
  height: 35px;
  padding: 0;
  border: 1px solid rgba(38, 112, 255, 0.14);
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 248, 255, 0.96) 100%);
  color: #2f5896;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 10px 22px rgba(39, 83, 153, 0.1);
  transition: transform 0.24s ease, box-shadow 0.24s ease, opacity 0.24s ease, border-color 0.24s ease, background 0.24s ease, color 0.24s ease;
}

.video-controller__toggle:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: rgba(38, 112, 255, 0.24);
  background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(239, 246, 255, 0.98) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 14px 26px rgba(39, 83, 153, 0.12);
}

.video-controller__toggle:disabled {
  cursor: not-allowed;
  opacity: 0.6;
  box-shadow: none;
}

.video-controller__toggle.is-playing {
  color: #1f63f5;
  background: linear-gradient(180deg, rgba(239, 247, 255, 0.98) 0%, rgba(229, 241, 255, 0.96) 100%);
}

.video-controller__toggle-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.video-controller__icon {
  width: 22px;
  height: 22px;
  flex: none;
}

.video-controller__icon--play {
  transform: translateX(1px);
}

.video-controller__icon--pause {
  width: 20px;
  height: 20px;
  display: none;
}

.video-controller__toggle.is-playing .video-controller__icon--play {
  display: none;
}

.video-controller__toggle.is-playing .video-controller__icon--pause {
  display: block;
}

.video-controller__timeline {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
}

.video-controller__time {
  min-width: 52px;
  color: #315591;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.video-controller__range {
  --video-progress: 0%;
  width: 100%;
  height: 8px;
  margin: 0;
  border-radius: 999px;
  appearance: none;
  outline: none;
  background: linear-gradient(
    90deg,
    #3482ff 0%,
    #3482ff var(--video-progress),
    rgba(38, 112, 255, 0.14) var(--video-progress),
    rgba(38, 112, 255, 0.14) 100%
  );
}

.video-controller__range::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 999px;
  background: transparent;
}

.video-controller__range::-webkit-slider-thumb {
  width: 18px;
  height: 18px;
  margin-top: -5px;
  border: 3px solid #fff;
  border-radius: 50%;
  appearance: none;
  background: #1f63f5;
  box-shadow: 0 8px 18px rgba(38, 112, 255, 0.24);
  cursor: pointer;
}

.video-controller__range::-moz-range-track {
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(38, 112, 255, 0.14);
}

.video-controller__range::-moz-range-progress {
  height: 8px;
  border-radius: 999px;
  background: #3482ff;
}

.video-controller__range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #1f63f5;
  box-shadow: 0 8px 18px rgba(38, 112, 255, 0.24);
  cursor: pointer;
}

.video-controller__range:disabled {
  cursor: not-allowed;
}

.editor-meta {
  min-height: 54px;
  padding: 14px 18px;
  border-radius: 18px;
  border: 1px solid rgba(38, 112, 255, 0.08);
  background: rgba(247, 251, 255, 0.92);
  color: var(--portal-text-soft);
  display: flex;
  align-items: center;
  line-height: 1.65;
}

.field-stack,
.side-facts,
.checklist {
  display: grid;
  gap: 12px;
}

.field-label {
  color: #5f7ca8;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.field-tip {
  color: var(--portal-text-soft);
  line-height: 1.75;
}

.submit-card__body {
  display: grid;
  gap: 14px;
}

.submit-card__footer {
  padding-top: 18px;
  border-top: 1px solid rgba(38, 112, 255, 0.1);
}

.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.choice-pill {
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(38, 112, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: #315591;
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease, background 0.24s ease;
}

.choice-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(39, 83, 153, 0.08);
}

.choice-pill.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(180deg, #3482ff 0%, #1f63f5 100%);
  box-shadow: 0 14px 30px rgba(38, 112, 255, 0.2);
}

.workspace-page--tool.has-floating-submit-dock {
  padding-bottom: 236px;
}

.floating-submit-dock {
  position: fixed;
  right: 0;
  bottom: 28px;
  left: 0;
  z-index: 80;
  padding: 0 24px;
  pointer-events: none;
}

.floating-submit-dock__inner {
  width: min(100%, 420px);
  margin: 0 auto;
  padding: 18px;
  /* border: 1px solid rgba(38, 112, 255, 0.14); */
  /* border-radius: 28px; */
  /* background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(244, 249, 255, 0.94) 100%); */
  /* box-shadow: 0 24px 56px rgba(18, 48, 94, 0.16); */
  /* backdrop-filter: blur(18px); */
  display: grid;
  gap: 6px;
  pointer-events: auto;
}

.floating-submit-dock__panel {
  padding: 7px 8px;
    border: 1px solid rgba(38, 112, 255, 0.1);
    border-radius: 14px;
    background: rgba(247, 251, 255, 0.92);
    display: flex;
    justify-content: center;
}

.floating-submit-dock__button {
  min-height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1px;
    flex-direction: column;
}

.floating-submit-dock__button-label {
  line-height: 1.2;
}

.floating-submit-dock__estimate {
  color: rgba(255, 255, 255, 0.84);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
}

.estimate-box {
  min-height: 84px;
  padding: 18px 20px;
  border-radius: 22px;
  border: 1px solid rgba(38, 112, 255, 0.12);
  background: rgba(247, 251, 255, 0.96);
  color: var(--portal-text);
  display: flex;
  align-items: center;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
}

.checklist__item {
  min-height: 48px;
  padding: 0 16px;
  border-radius: 18px;
  border: 1px solid rgba(38, 112, 255, 0.08);
  background: rgba(247, 251, 255, 0.78);
  color: var(--portal-text-soft);
  display: flex;
  align-items: center;
  line-height: 1.6;
}

.side-facts__item {
  display: grid;
  gap: 6px;
}

.side-facts__label {
  color: #6281ad;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.side-facts__value {
  color: var(--portal-text);
  font-size: 15px;
  line-height: 1.7;
}

.progress-shell {
  display: grid;
  gap: 16px;
}

.progress-shell__bar {
  height: 14px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(38, 112, 255, 0.12);
}

.progress-shell__fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #3d8aff 0%, #1f63f5 100%);
}

.progress-shell__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--portal-text-soft);
  font-size: 14px;
}

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

.stats-grid--modal {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.stats-card {
  padding: 22px;
  border-radius: 22px;
  border: 1px solid rgba(38, 112, 255, 0.1);
  background: rgba(247, 251, 255, 0.92);
  display: grid;
  gap: 10px;
}

.stats-card__label {
  color: #6281ad;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stats-card__value {
  color: var(--portal-text);
  font-size: clamp(28px, 2.6vw, 40px);
  font-weight: 700;
  line-height: 1.1;
}

.stats-card__desc {
  color: var(--portal-text-soft);
  line-height: 1.7;
}

.stats-card--compact {
  padding: 18px;
}

.stats-card--compact .stats-card__value {
  font-size: clamp(22px, 2vw, 28px);
}

.overlay-modal__dialog--processing {
  width: min(680px, calc(100vw - 40px));
}

.overlay-modal__dialog--result {
  width: min(1180px, calc(100vw - 40px));
  gap: 24px;
}

.overlay-modal__hint {
  margin: 0;
  color: var(--portal-text-soft);
  line-height: 1.7;
}

.overlay-modal__actions--stacked {
  display: grid;
  justify-content: stretch;
}

.result-modal__header,
.result-modal__header-copy,
.result-preview-card {
  display: grid;
  gap: 12px;
}

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

.result-modal__meta-card {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(38, 112, 255, 0.1);
  background: rgba(247, 251, 255, 0.92);
  display: grid;
  gap: 8px;
}

.result-modal__meta-label,
.result-preview-card__label {
  color: #6281ad;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.result-modal__meta-value {
  color: var(--portal-text);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  word-break: break-word;
}

.result-modal__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  row-gap: 18px;
  column-gap: 30px;
}

.result-preview-stage {
  min-height: 320px;
  border-radius: 24px;
  border: 1px solid rgba(20, 48, 92, 0.12);
  background: linear-gradient(180deg, #15376b 0%, #0f2345 100%);
  overflow: hidden;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
}

.result-preview-stage__empty {
  padding: 40px 32px;
  color: rgba(255, 255, 255, 0.82);
  text-align: center;
  line-height: 1.8;
}

.result-modal__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.result-modal__hint {
  margin: 0;
  color: var(--portal-text-soft);
  line-height: 1.7;
}

.result-modal__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.account-header {
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.account-header__user {
  display: flex;
  align-items: center;
  gap: 16px;
}

.account-header__avatar {
  width: 62px;
  height: 62px;
  border-radius: 20px;
  background: linear-gradient(180deg, #3482ff 0%, #1f63f5 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  
}

.account-header__name {
  color: var(--portal-text);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
}

.points-package-grid,
.record-list,
.insight-grid {
  display: grid;
  gap: 18px;
}

.points-package-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.points-package-item {
  position: relative;
  width: 100%;
  padding: 24px;
  border: 1px solid rgba(38, 112, 255, 0.1);
  border-radius: 24px;
  background: rgba(247, 251, 255, 0.96);
  text-align: left;
  box-shadow: 0 12px 28px rgba(39, 83, 153, 0.06);
  display: grid;
  align-content: start;
  gap: 0;
  cursor: pointer;
}


.points-package-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  min-height: 28px;
  padding: 0 12px;
  border: 1px solid rgba(47, 105, 216, 0.14);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(47, 105, 216, 0.12), rgba(89, 142, 255, 0.22));
  color: #2f69d8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  backdrop-filter: blur(10px);
}

.points-package-title {
  margin-top: 10px;
  color: var(--portal-text);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
}

.points-package-price {
  margin-top: 16px;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  color: var(--portal-text);
}

.points-package-currency {
  font-size: 20px;
  font-weight: 700;
}

.points-package-value {
  font-size: 46px;
  font-weight: 700;
  line-height: 1;
}

.points-package-points {
  margin-top: 12px;
  color: #1f63f5;
  font-size: 16px;
  font-weight: 700;
}

.points-package-meta {
  margin-top: 10px;
  color: var(--portal-text-soft);
  line-height: 1.7;
}

.points-package-original {
  color: var(--portal-text-soft);
  font-size: 15px;
  line-height: 1.4;
  text-decoration: line-through;
}

.points-package-action {
  margin-top: 18px;
}

.pay-modal {
  max-width: 420px;
}

.pay-modal__info {
  position: relative;
  width: fit-content;
  min-width: 0;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 0;
  padding: 10px 18px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(246, 248, 253, 0.98) 0%, rgba(241, 245, 252, 0.98) 100%);
  border: 1px solid rgba(52, 130, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
  color: var(--portal-text);
  overflow: hidden;
}

.pay-modal__info::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.65) 0%, rgba(244, 247, 253, 0.2) 100%);
  pointer-events: none;
}

.pay-modal__info > span,
.pay-modal__info > strong {
  position: relative;
  z-index: 1;
}

.pay-modal__info > span {
  color: #4b5563;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  text-align: left;
  white-space: nowrap;
}

.pay-modal__info strong {
  color: #1677ff;
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  text-align: left;
  white-space: nowrap;
  text-shadow: none;
}

.pay-modal__qr-shell {
  margin-top: 18px;
}

.pay-modal__code {
  position: relative;
  width: 220px;
  min-height: 220px;
  margin: 0 auto;
}

.pay-modal__qr {
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pay-modal__qr canvas,
.pay-modal__qr img {
  display: block;
  width: 220px;
  height: 220px;
  border-radius: 18px;
}

.pay-modal__expired {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 24px;
}

.pay-modal__expired-title {
  color: #dc2626;
  font-size: 18px;
  font-weight: 700;
}

.pay-modal__expired-desc {
  color: var(--portal-text-soft);
  line-height: 1.7;
}

.pay-modal__meta {
  margin-top: 16px;
}

.record-item {
  padding: 24px;
  border: 1px solid rgba(38, 112, 255, 0.1);
  border-radius: 24px;
  background: rgba(247, 251, 255, 0.96);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.record-item__main {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.record-item__eyebrow {
  color: #6281ad;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.record-item__title {
  color: var(--portal-text);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
}

[data-ui-view="score-records"] .record-item__title {
  font-size: 20px;
  line-height: 1.4;
}

.record-item__sub {
  color: var(--portal-text-soft);
  line-height: 1.7;
}

.record-item__side {
  display: grid;
  gap: 12px;
  justify-items: end;
  text-align: right;
}

.record-item__score {
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
}

.record-item__score.is-income {
  color: #21a365;
}

.record-item__score.is-expense {
  color: #e05d63;
}

.record-item__status {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(38, 112, 255, 0.12);
  background: rgba(255, 255, 255, 0.82);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}

.record-item__status--success {
  color: #1f8d58;
  border-color: rgba(33, 163, 101, 0.16);
  background: rgba(33, 163, 101, 0.08);
}

.record-item__status--failed {
  color: #ce4f56;
  border-color: rgba(224, 93, 99, 0.16);
  background: rgba(224, 93, 99, 0.08);
}

.record-item__status--processing {
  color: #315591;
  border-color: rgba(38, 112, 255, 0.16);
  background: rgba(38, 112, 255, 0.08);
}

.record-item__action {
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, #3482ff 0%, #1f63f5 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 14px 30px rgba(38, 112, 255, 0.16);
  cursor: pointer;
}

.record-item__action:hover {
  transform: translateY(-2px);
}

.record-item__action--processing {
  cursor: default;
  box-shadow: none;
}

.record-item__action--processing:hover {
  transform: none;
}

.empty-state {
  min-height: 96px;
  padding: 24px;
  border: 1.5px dashed rgba(38, 112, 255, 0.16);
  border-radius: 22px;
  background: rgba(247, 251, 255, 0.82);
  color: var(--portal-text-soft);
  display: grid;
  place-items: center;
  text-align: center;
}

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

.insight-card {
  padding: 24px;
  border: 1px solid rgba(38, 112, 255, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 30px rgba(39, 83, 153, 0.06);
  display: grid;
  gap: 12px;
}

.insight-card__step {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(180deg, #3482ff 0%, #1f63f5 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.insight-card h3 {
  margin: 0;
  color: var(--portal-text);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
}

.insight-card p {
  margin: 0;
  color: var(--portal-text-soft);
  line-height: 1.75;
}

.news-filter-tabs,
.news-filter-subtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.news-filter-tabs__item,
.news-filter-subtabs__item,
.news-pagination__item {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(38, 112, 255, 0.12);
  background: rgba(255, 255, 255, 0.88);
  color: #46617f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease, background 0.24s ease, color 0.24s ease;
}

.news-filter-tabs__item:hover,
.news-filter-subtabs__item:hover,
.news-pagination__item:hover {
  transform: translateY(-2px);
  border-color: rgba(38, 112, 255, 0.22);
}

.news-filter-tabs__item.is-active,
.news-filter-subtabs__item.is-active,
.news-pagination__item.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(180deg, #3482ff 0%, #1f63f5 100%);
}

.news-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.news-card {
  overflow: hidden;
  border: 1px solid rgba(38, 112, 255, 0.08);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 34px rgba(39, 83, 153, 0.08);
  display: grid;
}

.news-card__media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.news-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news-card:hover .news-card__media img {
  transform: scale(1.03);
}

.news-card__body {
  padding: 22px;
  display: grid;
  gap: 14px;
}

.news-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--portal-text-muted);
  font-size: 13px;
  font-weight: 600;
}

.news-card__tag,
.news-article__tag {
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(38, 112, 255, 0.08);
  color: #2266d7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.news-card__title,
.news-article__title {
  margin: 0;
  color: var(--portal-text);
  font-weight: 700;
}

.news-card__title {
  font-size: 24px;
  line-height: 1.34;
}

.news-card__summary {
  margin: 0;
  color: var(--portal-text-soft);
  line-height: 1.85;
}

.news-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--portal-text-muted);
  font-size: 14px;
}

.news-card__views {
  flex: 0 0 auto;
}

.news-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.news-pagination__item--nav {
  min-width: 88px;
}

.news-article {
  padding: 34px;
  border: 1px solid var(--portal-line);
  border-radius: 30px;
  background: var(--portal-surface-strong);
  box-shadow: var(--portal-shadow);
  display: grid;
  gap: 24px;
}

.news-article__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--portal-text-muted);
  font-size: 14px;
  font-weight: 600;
}

.news-article__title {
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.16;
  letter-spacing: -0.03em;
}

.news-article__summary {
  padding: 18px 20px;
  border-radius: 22px;
  border: 1px solid rgba(38, 112, 255, 0.08);
  background: rgba(247, 251, 255, 0.92);
  color: var(--portal-text-soft);
  line-height: 1.85;
}

.news-article__cover {
  overflow: hidden;
  border-radius: 24px;
}

.news-article__cover img {
  width: 100%;
  height: auto;
}

.news-article__content {
  color: var(--portal-text);
  line-height: 1.9;
}

.news-article__content h2,
.news-article__content h3,
.news-article__content h4 {
  margin: 32px 0 16px;
  color: var(--portal-text);
  line-height: 1.4;
}

.news-article__content p,
.news-article__content ul,
.news-article__content ol,
.news-article__content blockquote {
  margin: 0 0 18px;
}

.news-article__content blockquote {
  padding: 18px 20px;
  border-left: 4px solid #2d73f6;
  border-radius: 0 18px 18px 0;
  background: rgba(247, 251, 255, 0.92);
  color: var(--portal-text-soft);
}

.news-article__content img {
  max-width: 100%;
  height: auto;
  border-radius: 18px;
}

@media (max-width: 1200px) {
  .page-hero,
  .tool-shell,
  .status-layout,
  .account-layout,
  .insight-grid,
  .news-card-grid {
    grid-template-columns: 1fr;
  }

  .result-modal__grid,
  .result-modal__meta-grid {
    grid-template-columns: 1fr;
  }

  .record-item {
    align-items: flex-start;
  }

  .record-item__side {
    justify-items: start;
    text-align: left;
  }
}

@media (max-width: 1024px) {
  .portal-main {
    padding: 36px 0 72px;
  }

  .portal-main__inner {
    gap: 24px;
  }

  .portal-breadcrumb__list {
    padding: 12px 16px;
    gap: 10px;
  }

  .portal-breadcrumb__item {
    gap: 10px;
  }

  .page-hero,
  .panel-card {
    padding: 30px 26px;
  }

  .page-hero__title {
    font-size: clamp(30px, 5vw, 40px);
  }

  .panel-card__head,
  .account-header,
  .progress-shell__meta,
  .result-modal__footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .result-modal__actions {
    width: 100%;
    justify-content: flex-start;
  }

  .result-modal__actions .btn {
    flex: 1 1 auto;
  }

  .record-item {
    flex-direction: column;
  }

  .news-card__footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .portal-main {
    padding: 28px 0 60px;
  }

  .portal-main__inner {
    gap: 20px;
  }

  .workspace-page {
    gap: 28px;
  }

  .workspace-page--tool.has-floating-submit-dock {
    padding-bottom: 280px;
  }

  .portal-breadcrumb__list {
    padding: 12px 14px;
    border-radius: 18px;
    gap: 8px 10px;
  }

  .portal-breadcrumb__item {
    gap: 8px;
  }

  .portal-breadcrumb__link,
  .portal-breadcrumb__current,
  .portal-breadcrumb__item + .portal-breadcrumb__item::before {
    font-size: 13px;
  }

  .page-hero,
  .panel-card,
  .upload-stage,
  .video-controller,
  .insight-card,
  .record-item,
  .points-package-item,
  .news-card,
  .news-article {
    padding: 22px 20px;
    border-radius: 22px;
  }

  .page-hero__chips,
  .choice-row,
  .news-filter-tabs,
  .news-filter-subtabs,
  .news-pagination {
    gap: 10px;
  }

  .hero-summary-card__title,
  .panel-card__title,
  .record-item__title,
  .account-header__name,
  .points-package-title,
  .news-card__title {
    font-size: 22px;
  }

  .estimate-box,
  .stats-card__value,
  .record-item__score,
  .points-package-value {
    font-size: 30px;
  }

  .upload-dropzone__title {
    font-size: 30px;
  }

  .video-controller {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .video-controller__toggle {
    width: 56px;
  }

  .video-controller__timeline {
    width: 100%;
  }

  .floating-submit-dock {
    bottom: 20px;
    padding: 0 16px;
  }

  .floating-submit-dock__inner {
    padding: 16px;
    border-radius: 22px;
  }

  .floating-submit-dock__panel {
    padding: 16px;
    border-radius: 18px;
  }

  .insight-grid,
  .points-package-grid,
  .news-card-grid {
    grid-template-columns: 1fr;
  }

  .overlay-modal__dialog--result {
    width: min(100%, calc(100vw - 20px));
  }

  .result-preview-stage {
    min-height: 220px;
  }

  .news-article__title {
    font-size: 28px;
  }
}
