dialog.wp-dialog {
  --wp-ink: #112333;
  --wp-paper: #f6f5f0;
  --wp-blue: #2765cf;
  --wp-muted: #596575;
  --wp-line: #dfe3e6;
  box-sizing: border-box;
  width: min(960px, calc(100vw - 40px));
  max-width: min(960px, calc(100vw - 40px));
  max-height: calc(100dvh - 48px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid #d4dce2;
  border-radius: 10px;
  background: #fff;
  color: var(--wp-ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.45;
  box-shadow: 0 24px 100px #081b3355;
}

.wp-dialog::backdrop { background: #081827b8; backdrop-filter: blur(5px); }
.wp-dialog *, .wp-dialog *::before, .wp-dialog *::after { box-sizing: border-box; }
.wp-dialog [hidden] { display: none !important; }
.wp-dialog button, .wp-dialog a { -webkit-tap-highlight-color: transparent; }
.wp-dialog button { font: inherit; cursor: pointer; }
.wp-dialog button, .wp-dialog a, .wp-dialog h2, .wp-dialog h3 { outline-offset: 4px; }
.wp-dialog button:focus-visible, .wp-dialog a:focus-visible { outline: 3px solid var(--wp-blue); }
.wp-dialog h2:focus, .wp-dialog h3:focus { outline: none; }
.wp-dialog button { touch-action: manipulation; }
.wp-shell { display: flex; flex-direction: column; max-height: calc(100dvh - 50px); min-height: 0; }
.wp-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 28px 12px; flex: 0 0 auto; }
.wp-header h2 { margin: 0; font-size: 24px; line-height: 1.2; font-weight: 650; letter-spacing: -0.65px; }
.wp-close { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 8px 10px; border: 0; border-radius: 4px; background: transparent; color: var(--wp-muted); }
.wp-close:hover { background: var(--wp-paper); color: var(--wp-ink); }
.wp-tabs { display: flex; flex: 0 0 auto; gap: 24px; overflow-x: auto; padding: 0 28px; border-bottom: 1px solid var(--wp-line); scrollbar-width: none; }
.wp-tabs::-webkit-scrollbar { display: none; }
.wp-tabs button { flex: 0 0 auto; min-height: 48px; padding: 10px 0 12px; border: 0; border-bottom: 3px solid transparent; background: transparent; color: var(--wp-muted); font-size: 14px; font-weight: 550; white-space: nowrap; }
.wp-tabs button:hover { color: var(--wp-ink); }
.wp-tabs button[aria-selected="true"] { border-bottom-color: var(--wp-blue); color: var(--wp-blue); }
.wp-tabs button:focus-visible { outline-offset: -4px; }
.wp-body { min-height: 0; flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: 24px 28px 28px; scrollbar-gutter: stable; }
.wp-catalog { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 24px; }
.wp-card { min-width: 0; padding-bottom: 22px; border-bottom: 1px solid var(--wp-line); }
.wp-preview { display: flex; align-items: center; justify-content: center; height: auto; aspect-ratio: 2 / 1; overflow: hidden; border: 1px solid #e5e7e5; border-radius: 5px; background: var(--wp-paper); }
.wp-illustration { width: 100%; height: 100%; }
.wp-preview-planning { background: #f3f5f2; }
.wp-preview img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.wp-card-content { padding-top: 16px; }
.wp-card h3 { margin: 0; font-size: 21px; line-height: 1.25; font-weight: 620; letter-spacing: -0.4px; }
.wp-provenance { margin: 6px 0 0; color: var(--wp-muted); font-size: 12px; line-height: 1.5; }
.wp-action { display: inline-flex; align-items: center; gap: 12px; min-height: 42px; margin-top: 10px; padding: 7px 0; border: 0; border-radius: 2px; background: transparent; color: var(--wp-blue); font-size: 14px; font-weight: 650; text-decoration: none; }
.wp-action:hover { text-decoration: underline; text-underline-offset: 4px; }
.wp-action span { font-size: 18px; line-height: 1; }
.wp-footer { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 18px; min-height: 70px; padding: 12px 28px; border-top: 1px solid var(--wp-line); background: #fff; }
.wp-footer > span { color: var(--wp-muted); font-size: 12px; }
.wp-contact { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 42px; padding: 10px 16px; border: 1px solid var(--wp-blue); border-radius: 4px; background: var(--wp-blue); color: #fff; font-size: 14px; font-weight: 600; }
.wp-contact:hover { background: #1d53b4; border-color: #1d53b4; }
.wp-detail { min-width: 0; }
.wp-detail-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 20px; margin-bottom: 12px; }
.wp-back { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; margin-left: -5px; padding: 6px 5px; border: 0; border-radius: 3px; background: transparent; color: var(--wp-muted); font-size: 13px; }
.wp-back:hover { color: var(--wp-blue); }
.wp-detail-top .wp-provenance { margin: 0; }
.wp-detail-title { margin: 0 0 22px; font-size: 28px; line-height: 1.2; font-weight: 630; letter-spacing: -0.8px; }
.wp-screen-tabs, .wp-mode-switch { display: inline-flex; align-items: center; gap: 4px; padding: 3px; border: 1px solid var(--wp-line); border-radius: 5px; background: var(--wp-paper); }
.wp-screen-tabs button, .wp-mode-switch button { min-height: 38px; padding: 8px 13px; border: 1px solid transparent; border-radius: 3px; background: transparent; color: var(--wp-muted); font-size: 13px; font-weight: 550; }
.wp-screen-tabs button[aria-pressed="true"], .wp-mode-switch button[aria-pressed="true"] { border-color: #ccd5df; background: #fff; color: var(--wp-ink); box-shadow: 0 1px 2px #11233308; }
.wp-screen-figure { margin: 18px 0 0; }
.wp-screen-frame { overflow: hidden; border: 1px solid var(--wp-line); border-radius: 4px; background: var(--wp-paper); }
.wp-screen-image { display: block; width: 100%; height: auto; }
.wp-screen-figure figcaption { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; padding-top: 10px; color: var(--wp-muted); font-size: 12px; }
.wp-text-link { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; color: var(--wp-blue); text-underline-offset: 3px; }
.wp-chart-tools { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.wp-class-name { color: var(--wp-muted); font-size: 13px; }
.wp-chart-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 12px 18px; margin-bottom: 16px; }
.wp-chart-heading h4 { margin: 0; font-size: 15px; font-weight: 630; }
.wp-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; font-size: 11px; color: var(--wp-muted); }
.wp-legend > span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.wp-legend strong { color: var(--wp-ink); font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; margin-left: 2px; }
.wp-key-class { width: 7px; height: 7px; border-radius: 50%; background: var(--wp-blue); }
.wp-key-comparison { width: 18px; border-top: 2px dashed #7b8494; }
.wp-chart-wrap { position: relative; width: 100%; height: 278px; }
.wp-chart { display: block; width: 100%; height: 100%; overflow: visible; }
.wp-chart text { font-family: inherit; }
.wp-plot-paper { fill: #fafbf9; }
.wp-class-area { fill: var(--wp-blue); opacity: .045; }
.wp-grid-line { stroke: #e6e9eb; stroke-width: 1; }
.wp-axis-text { fill: #667382; font-size: 11px; }
.wp-axis-title { fill: #596575; font-size: 10px; }
.wp-class-line { fill: none; stroke: var(--wp-blue); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.wp-comparison-line { fill: none; stroke: #7b8494; stroke-width: 1.8; stroke-dasharray: 5 5; stroke-linejoin: round; }
.wp-selection-guide { stroke: var(--wp-blue); stroke-width: 1; stroke-dasharray: 3 4; opacity: .4; }
.wp-selection-ring { fill: none; stroke: var(--wp-blue); stroke-width: 1; opacity: .35; pointer-events: none; }
.wp-selected-column { fill: var(--wp-blue); opacity: .055; }
.wp-axis-selected { fill: var(--wp-blue); font-weight: 700; }
.wp-score-point { fill: var(--wp-blue); stroke: #fff; stroke-width: 1.5; }
.wp-score-value { fill: var(--wp-ink); font-size: 12px; font-weight: 650; font-variant-numeric: tabular-nums; }
.wp-chart-day { cursor: pointer; }
.wp-chart-day:hover .wp-score-point { stroke: var(--wp-ink); }
.wp-chart-points { position: absolute; inset: 0; pointer-events: none; }
.wp-point-button { position: absolute; width: 44px; height: 44px; min-height: 0; padding: 0; transform: translate(-50%, -50%); pointer-events: auto; border: 0; border-radius: 50%; background: transparent; }
.wp-point-button::after { position: absolute; inset: 6px; border: 1px solid transparent; border-radius: 50%; content: ""; }
.wp-point-button:hover::after, .wp-point-button[aria-pressed="true"]::after { border-color: var(--wp-blue); }
.wp-point-button:focus-visible { outline: 2px solid var(--wp-blue); outline-offset: -3px; background: #2765cf12; }
.wp-day-picker { display: flex; align-items: center; gap: 14px; margin-top: 20px; }
.wp-control-label { flex: 0 0 auto; color: var(--wp-muted); font-size: 12px; }
.wp-days { display: grid; flex: 1 1 auto; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 4px; }
.wp-days button { min-width: 0; min-height: 44px; padding: 5px 0; border: 1px solid var(--wp-line); border-radius: 3px; background: #fff; color: var(--wp-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.wp-days button:hover { border-color: var(--wp-blue); color: var(--wp-blue); }
.wp-days button[aria-pressed="true"] { border-color: var(--wp-blue); background: var(--wp-blue); color: #fff; }
.wp-assessments { margin-top: 24px; padding: 18px 20px; border: 1px solid #d8e2f2; border-radius: 5px; background: #f7f9fd; }
.wp-assessment-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wp-assessment-heading h4 { margin: 0; font-size: 14px; font-weight: 600; }
.wp-assessment-close { min-height: 32px; margin-right: -4px; padding: 4px; border: 0; background: transparent; color: var(--wp-muted); font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.wp-assessment-values { display: grid; grid-template-columns: 1.2fr repeat(3, 1fr); gap: 16px; margin: 16px 0 0; }
.wp-assessment-values > div { padding-left: 16px; border-left: 1px solid #d8e2f2; }
.wp-assessment-values > div:first-child { padding-left: 0; border-left: 0; }
.wp-assessment-values dt { color: var(--wp-muted); font-size: 11px; }
.wp-assessment-values dd { margin: 4px 0 0; font-size: 27px; font-weight: 550; font-variant-numeric: tabular-nums; letter-spacing: -0.5px; }
.wp-assessment-values dd span { color: var(--wp-muted); font-size: 12px; font-weight: 400; letter-spacing: 0; }
.wp-mean-value dd { color: var(--wp-blue); }
.wp-sr { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); border: 0; white-space: nowrap; }

@media (max-width: 720px) {
  .wp-header { padding: 16px 20px 8px; }
  .wp-tabs { gap: 20px; padding: 0 20px; }
  .wp-body { padding: 20px; }
  .wp-footer { padding-right: 20px; padding-left: 20px; }
  .wp-catalog { gap: 22px 18px; }
  .wp-card h3 { font-size: 19px; }
  .wp-days { grid-template-columns: repeat(9, minmax(0, 1fr)); }
  .wp-chart-heading { align-items: flex-start; }
}

@media (max-width: 520px) {
  dialog.wp-dialog { width: calc(100vw - 32px); max-width: calc(100vw - 32px); max-height: calc(100dvh - 32px); border-radius: 8px; }
  .wp-shell { max-height: calc(100dvh - 34px); }
  .wp-header { gap: 8px; padding: 14px 16px 6px; }
  .wp-header h2 { font-size: 22px; }
  .wp-close { gap: 5px; padding-right: 0; font-size: 13px; }
  .wp-tabs { gap: 12px; padding: 0 16px; }
  .wp-tabs button { min-height: 46px; font-size: 13px; }
  .wp-body { padding: 20px 16px 24px; scrollbar-gutter: auto; }
  .wp-catalog { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .wp-card { padding-bottom: 19px; }
  .wp-card-content { padding-top: 13px; }
  .wp-card h3 { font-size: 21px; }
  .wp-card .wp-provenance { font-size: 12px; }
  .wp-footer { min-height: 65px; gap: 8px; padding: 10px 16px; }
  .wp-footer > span { font-size: 11px; }
  .wp-contact { gap: 11px; padding: 9px 12px; font-size: 13px; }
  .wp-detail-title { margin-bottom: 18px; font-size: 25px; }
  .wp-detail-top { gap: 4px; margin-bottom: 10px; }
  .wp-detail-top .wp-provenance { width: 100%; }
  .wp-chart-tools { gap: 10px; margin-bottom: 18px; }
  .wp-class-name { width: 100%; font-size: 12px; }
  .wp-mode-switch button, .wp-screen-tabs button { padding: 8px 11px; font-size: 12px; }
  .wp-chart-heading { display: block; }
  .wp-legend { gap: 13px; margin-top: 9px; font-size: 10px; }
  .wp-day-picker { display: block; margin-top: 16px; }
  .wp-control-label { display: block; margin-bottom: 7px; }
  .wp-days { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 5px; }
  .wp-days button { min-height: 44px; }
  .wp-assessments { margin-top: 20px; padding: 13px 12px; }
  .wp-assessment-values { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 7px; }
  .wp-assessment-values > div { padding-left: 7px; }
  .wp-assessment-values .wp-mean-value { grid-column: 1 / -1; }
  .wp-assessment-values > div:nth-child(2) { padding-left: 0; border-left: 0; }
  .wp-assessment-values dt { font-size: 10px; }
  .wp-assessment-values dd { font-size: 24px; }
  .wp-assessment-values dd span { font-size: 11px; }
  .wp-screen-figure figcaption { display: block; }
  .wp-screen-figure figcaption > span { display: block; }
}

@media (max-width: 360px) {
  .wp-tabs { flex-wrap: wrap; column-gap: 18px; row-gap: 0; }
  .wp-tabs button { min-height: 40px; padding-block: 8px; }
  .wp-assessment-values > div:not(.wp-mean-value) dt { min-height: 2.6em; line-height: 1.3; }
}
@media (pointer: coarse) {
  .wp-close, .wp-action, .wp-contact, .wp-back, .wp-screen-tabs button, .wp-mode-switch button, .wp-days button { min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .wp-dialog *, .wp-dialog *::before, .wp-dialog *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
