.page-export, .page-export-project { --ew-ink: #242039; --ew-muted: #615b73; --ew-accent: #6540bd; --ew-line: #e5dff0; --ew-wash: #f5f1fb; background: #fdfcfe; }
.ew-shell { max-width: 1240px; padding-bottom: 64px; color: var(--ew-ink); }
.ew-shell [hidden] { display: none !important; }
.ew-breadcrumb { padding: 18px 0; }
.ew-kicker { margin: 0; color: var(--ew-accent); font-size: 11px; font-weight: 750; letter-spacing: .065em; }
.ew-hero { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(20px, 5vw, 75px); align-items: center; padding: clamp(26px, 6vw, 78px); border: 1px solid #e0d6f1; border-radius: 26px; background: radial-gradient(ellipse at 100% 5%, #ded1f9, transparent 70%), linear-gradient(120deg, #f8f5fc, #eee5fa); overflow: hidden; }
.ew-hero::before { position: absolute; z-index: -1; right: -80px; top: -190px; width: 440px; height: 440px; border: 1px solid #fff8; border-radius: 50%; box-shadow: 0 0 0 22px #fff3, 0 0 0 54px #fff3, 0 0 0 94px #fff2; content: ''; }
.ew-hero h1 { margin: 18px 0 12px; font-size: clamp(37px, 6vw, 70px); line-height: 1.07; letter-spacing: -.045em; overflow-wrap: anywhere; }
.ew-hero-copy > p:not(.ew-kicker):not(.ew-quiet) { max-width: 38ch; margin: 0; font-size: clamp(15px, 2vw, 19px); color: #534769; }
.ew-hero-copy .ew-actions { margin-top: 25px; }
.ew-quiet { margin: 16px 0 0; color: var(--ew-muted); font-size: 12px; }
.ew-quiet a { display: inline-block; color: var(--ew-accent); margin-inline-start: 6px; font-weight: 700; }
.ew-quiet a:hover { text-decoration: underline; }
.ew-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.ew-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 15px; border: 1px solid transparent; border-radius: 10px; font: inherit; font-size: 13px; font-weight: 700; text-align: center; cursor: pointer; }
.ew-primary { background: #352255; color: #fff; }
.ew-primary:not(:disabled):hover { background: #51347d; color: #fff; }
.ew-secondary { background: #fff; color: #503a78; border-color: #dfd5ee; }
.ew-secondary:not(:disabled):hover { background: #f4eefc; }
.ew-button:disabled { cursor: default; opacity: .6; }
.ew-shell :is(a, button, input, textarea, select, summary):focus-visible { outline: 2px solid var(--ew-accent); outline-offset: 3px; }
.ew-preview { width: min(100%, 470px); justify-self: center; padding: clamp(18px, 3vw, 32px); border: 1px solid #fff; border-radius: 18px; background: #fffdfd; box-shadow: 0 18px 56px #4c2c7d1f; }
.ew-preview-top { display: flex; align-items: center; gap: 8px; color: var(--ew-muted); font-size: 11px; font-weight: 650; }
.ew-preview-dot { display: inline-block; width: 8px; height: 8px; flex: none; border-radius: 50%; background: #936cdd; }
.ew-demo { margin-left: auto; padding: 3px 7px; border-radius: 5px; background: var(--ew-wash); font-size: 10px; }
.ew-preview h2 { margin: 15px 0; font-size: clamp(17px, 3vw, 25px); line-height: 1.35; }
.ew-preview-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ew-preview-metrics div { display: grid; gap: 1px; padding: 12px; border-radius: 10px; background: var(--ew-wash); }
.ew-preview-metrics strong { font-size: clamp(19px, 3vw, 27px); letter-spacing: -.04em; }
.ew-preview-metrics span, .ew-preview-progress { color: var(--ew-muted); font-size: 11px; }
.ew-preview-progress { margin-top: 15px; }
.ew-preview-progress div { display: flex; justify-content: space-between; }
.ew-preview-progress progress { width: 100%; height: 8px; accent-color: var(--ew-accent); }
.ew-tools { margin-top: 40px; }
.ew-tools > header, .ew-explain, .ew-workspace-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; }
.ew-tools h2, .ew-explain h2 { margin: 7px 0 0; font-size: clamp(21px, 3vw, 32px); line-height: 1.3; }
.ew-tools > header > p, .ew-explain p { color: var(--ew-muted); font-size: 13px; }
.ew-tools > header > p { margin: 0; }
.ew-tool-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.ew-tool { display: flex; min-height: 170px; flex-direction: column; align-items: flex-start; padding: 18px; border: 1px solid var(--ew-line); border-radius: 14px; background: #fff; transition: border-color .15s, background .15s; }
.ew-tool:hover { border-color: #b39bdf; background: #f9f5fd; }
.ew-tool-num { padding: 3px 7px; background: var(--ew-wash); border-radius: 6px; color: var(--ew-accent); font-size: 11px; font-weight: 750; }
.ew-tool h3 { margin: 12px 0 5px; font-size: 16px; line-height: 1.45; }
.ew-tool p { margin: 0 0 14px; font-size: 13px; color: var(--ew-muted); }
.ew-link-label { margin-top: auto; color: var(--ew-accent); font-size: 12px; font-weight: 700; }
.ew-explain { margin-top: 24px; padding: 17px 20px; border-top: 1px solid var(--ew-line); }
.ew-explain h2 { font-size: 16px; }
.ew-explain p { margin: 7px 0 0; }
.ew-guide-links { display: flex; flex-wrap: wrap; gap: 8px 15px; }
.ew-guide-links a, .ew-official, .ew-summary > a { color: var(--ew-accent); font-size: 12px; font-weight: 650; }
.ew-guide-links a:hover, .ew-official:hover, .ew-summary > a:hover { text-decoration: underline; }
.ew-workspace-head { margin: 6px 0 20px; }
.ew-workspace-head h1 { margin: 7px 0 3px; font-size: clamp(26px, 4vw, 43px); line-height: 1.2; letter-spacing: -.03em; }
.ew-workspace-head #ew-save-status { margin: 0; min-height: 18px; color: var(--ew-muted); font-size: 12px; }
.ew-project-bar, .ew-plan-bar { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; }
.ew-project-bar { padding: 8px 0 2px; }
.ew-project-bar > .ew-field, .ew-plan-bar > .ew-field { flex: 1 1 145px; min-width: 0; }
.ew-profile, .ew-compare { margin: 12px 0; padding: 10px 14px; border: 1px solid var(--ew-line); border-radius: 12px; background: #fff; }
.ew-profile summary, .ew-compare summary, .ew-task-note summary { cursor: pointer; color: var(--ew-accent); font-size: 13px; font-weight: 650; }
.ew-profile summary, .ew-compare summary { padding: 5px 0; }
.ew-management summary { overflow-wrap: anywhere; }
#ew-management-current { margin-inline-start: 9px; color: var(--ew-muted); font-size: 12px; font-weight: 500; }
.ew-profile .ew-fields { margin-top: 8px; grid-template-columns: 1.5fr 1fr .6fr; }
.ew-grid { display: grid; grid-template-columns: minmax(137px, .7fr) minmax(0, 3.4fr) minmax(175px, .95fr); gap: 15px; align-items: start; }
.ew-main, .ew-summary { min-width: 0; }
.ew-steps { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 4px; }
.ew-steps a { display: flex; align-items: center; min-height: 44px; gap: 8px; padding: 8px; border: 1px solid transparent; border-radius: 9px; color: var(--ew-muted); font-size: 13px; }
.ew-steps span { color: var(--ew-accent); font-size: 10px; font-weight: 750; }
.ew-steps a:hover, .ew-steps a[aria-current] { background: var(--ew-wash); color: var(--ew-accent); border-color: var(--ew-line); }
.ew-plan-bar { margin-bottom: 10px; }
.ew-plan-more summary { padding: 8px 9px; min-height: 44px; border: 1px solid var(--ew-line); border-radius: 10px;
  color: var(--ew-accent); cursor: pointer; font-size: 13px; line-height: 26px; }
.ew-plan-more[open] { flex-basis: 100%; }
.ew-plan-options { display: flex; align-items: end; gap: 9px; margin-top: 7px; }
.ew-plan-options .ew-field { flex: 1; }
.ew-field { display: grid; min-width: 0; gap: 5px; color: var(--ew-ink); font-size: 12px; font-weight: 650; }
.ew-shell :is(input:not([type=file]), select, textarea) { width: 100%; min-width: 0; min-height: 44px; padding: 8px 10px; border: 1px solid #dcd3e8; border-radius: 8px; background: #fff; color: var(--ew-ink); font: inherit; font-size: 14px; }
.ew-shell input[aria-invalid] { border-color: #b63f50; }
.ew-shell input::placeholder { color: #81788c; font-weight: 400; }
.ew-fx-link { display: inline-flex; align-items: center; min-height: 34px; color: var(--ew-accent); font-size: 13px; font-weight: 700; }
.ew-fx-link:hover { text-decoration: underline; }
.ew-fx-panel { max-width: 720px; margin-inline: auto; }
.ew-workspace.is-currency :is(.ew-profile, .ew-grid, .ew-project-actions, #ew-save-status) { display: none; }
.ew-fx-pair { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; align-items: end; }
.ew-fx-pair button { min-width: 44px; padding: 6px; font-size: 19px; }
.ew-fx-amounts { margin-top: 12px; }
.ew-fx-result { padding: 15px; margin-top: 14px; border-radius: 9px; background: var(--ew-wash); }
.ew-fx-result > div { display: grid; gap: 3px; }
.ew-fx-result span, .ew-fx-result p { margin: 0; color: var(--ew-muted); font-size: 12px; }
.ew-fx-result output { display: block; color: var(--ew-ink); font-size: clamp(23px, 5vw, 34px); font-weight: 750; overflow-wrap: anywhere; }
.ew-fx-panel .ew-hint a { color: var(--ew-accent); }
.ew-number-wrap { position: relative; display: block; }
.ew-number-wrap input { padding-inline-end: 52px !important; appearance: textfield; }
.ew-number-wrap input::-webkit-inner-spin-button { appearance: none; }
.ew-number-wrap input::-webkit-outer-spin-button { appearance: none; }
.ew-number-wrap > span { position: absolute; inset-inline-end: 10px; top: 50%; transform: translateY(-50%); color: var(--ew-muted); font-size: 10px; pointer-events: none; }
.ew-panel, .ew-summary { padding: clamp(13px, 2.2vw, 24px); border: 1px solid var(--ew-line); border-radius: 13px; background: #fff; }
.ew-panel-head { margin-bottom: 17px; }
.ew-panel-head h2, .ew-summary h2 { margin: 3px 0 5px; font-size: clamp(19px, 2.5vw, 26px); line-height: 1.3; overflow-wrap: anywhere; }
.ew-panel-head h2 { scroll-margin-top: calc(var(--header-h) + 10px); }
.ew-panel-head p:not(.ew-kicker), .ew-summary > p:not(.ew-kicker) { margin: 0; color: var(--ew-muted); font-size: 13px; overflow-wrap: anywhere; }
.ew-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ew-fieldset { min-width: 0; margin: 0 0 14px; padding: 0; border: 0; }
.ew-fieldset legend { margin-bottom: 7px; font-size: 13px; font-weight: 750; }
.ew-hint, .ew-source-date { margin: 10px 0; color: var(--ew-muted); font-size: 12px; line-height: 1.65; }
.ew-source-date { font-size: 11px; }
.ew-channel-cards, .ew-checklist { display: grid; gap: 8px; }
.ew-channel, .ew-task { padding: 12px; border: 1px solid var(--ew-line); border-radius: 10px; }
.ew-channel.is-selected { border-color: #aa8bdd; background: #faf7fd; }
.ew-channel-top { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.ew-channel-top h3 { margin: 0; font-size: 16px; }
.ew-channel > p { margin: 6px 0; font-size: 13px; }
.ew-channel > p.ew-hint { font-size: 12px; }
.ew-badge { margin-left: auto; padding: 2px 6px; background: var(--ew-wash); color: var(--ew-accent); border-radius: 5px; font-size: 10px; font-weight: 700; }
.ew-task { display: grid; grid-template-columns: minmax(0, 1fr) max-content; align-items: center; gap: 5px 10px; }
.ew-task strong { font-size: 13px; }
.ew-task[data-state=done] { background: #f3f9f5; border-color: #d7eadc; }
.ew-task[data-state=verify] { background: #fff9ef; border-color: #ebdfc7; }
.ew-task-note { grid-column: 1 / -1; }
.ew-task-note textarea { margin-top: 7px; resize: vertical; }
.ew-panel-next { margin-top: 18px; }
.ew-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 10px 0; }
.ew-metric { min-width: 0; padding: 10px; border-radius: 8px; background: var(--ew-wash); }
.ew-metric dt { color: var(--ew-muted); font-size: 11px; }
.ew-metric dd { margin: 3px 0 0; color: var(--ew-ink); font-size: 15px; font-weight: 750; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ew-metric.is-big dd { font-size: clamp(17px, 3vw, 24px); }
.ew-shell .is-loss { color: #ab3248; }
.ew-summary { position: sticky; top: calc(var(--header-h) + 16px); padding: 13px; background: #f9f6fd; }
.ew-summary h2 { font-size: 17px; }
.ew-summary dl { display: grid; gap: 6px; margin: 12px 0; }
.ew-summary .ew-metric { background: #fff; }
#ew-compare-content { overflow-x: auto; }
.ew-compare-table { border-collapse: collapse; width: 100%; min-width: 270px; margin: 8px 0; text-align: left; font-size: 12px; }
.ew-compare-table :is(th, td) { min-width: 105px; padding: 8px; border: 1px solid var(--ew-line); overflow-wrap: anywhere; }
.ew-compare-table th { background: #faf7fd; }
.ew-compare-table th.is-active { color: var(--ew-accent); background: var(--ew-wash); }
.ew-dialog { width: min(400px, calc(100vw - 30px)); padding: 20px; border: 1px solid var(--ew-line); border-radius: 16px; color: var(--ew-ink); }
.ew-dialog::backdrop { background: #2516386e; }
.ew-dialog h2 { margin: 0 0 14px; font-size: 20px; }
.ew-dialog .ew-actions { justify-content: flex-end; margin-top: 14px; }
@media (max-width: 960px) {
  .ew-grid { grid-template-columns: minmax(0, 1fr) minmax(165px, 205px); }
  .ew-steps { grid-column: 1 / -1; position: static; grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .ew-shell { padding-bottom: 37px; }
  .ew-hero { grid-template-columns: 1fr; border-radius: 19px; }
  .ew-preview { width: 100%; justify-self: stretch; }
  .ew-tools { margin-top: 27px; }
  .ew-tools > header, .ew-workspace-head, .ew-explain { align-items: start; flex-direction: column; gap: 7px; }
  .ew-tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ew-tool { min-height: 146px; padding: 13px; }
  .ew-grid { grid-template-columns: minmax(0, 1fr); }
  .ew-summary { position: static; }
  .ew-summary dl { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ew-workspace-head .ew-actions { margin-top: 6px; }
  .ew-steps { gap: 4px; }
  .ew-plan-bar > .ew-field { flex-basis: 85px; }
  .ew-steps a { flex-direction: column; justify-content: center; gap: 1px; text-align: center; padding: 4px 3px; font-size: 11px; }
  .ew-profile .ew-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ew-profile-item { grid-column: 1 / -1; }
  .ew-shell :is(input:not([type=file]), select, textarea) { font-size: 16px; }
}
@media (max-width: 365px) {
  .ew-fields:has([data-number]) { grid-template-columns: minmax(0, 1fr); }
  .ew-summary dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
