/* 01 · Design tokens and base elements */
:root {
  --blue: #285cdb;
  --blue-dark: #1c48b4;
  --ink: #1b3153;
  --muted: #5c6b81;
  --paper: #fff;
  --bg: #f4f7fb;
  --line: #dce4ef;
  --teal: #237a70;
  --orange: #c46b51;
  --blue-tint: #eaf0ff;
  --danger: #a9393f;
  --dim-EI: #285cdb;
  --dim-SN: #237a70;
  --dim-TF: #a64e39;
  --dim-JP: #7965b2;
  font-family: "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  font-synthesis: none;
  line-height: 1.65;
  font-size: 15px;
  background: var(--bg);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
#main:focus,
#question-title:focus {
  outline: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
label,
summary {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
a {
  color: var(--blue);
  text-decoration: none;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
a:hover {
  text-decoration: none;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  line-height: 1.35;
}
h1 {
  font-size: 40px;
  letter-spacing: -1.2px;
  font-weight: 650;
}
h2 {
  font-size: 25px;
  letter-spacing: -0.5px;
  font-weight: 600;
}
h3 {
  font-size: 18px;
  font-weight: 600;
}
p {
  margin-bottom: 16px;
}
::selection {
  background: #d8e5ff;
}
:focus-visible {
  outline: 3px solid #5284e5;
  outline-offset: 4px;
}
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline-offset: 1px;
}
svg {
  display: block;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  clip: rect(0, 0, 0, 0);
  overflow: hidden;
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 50;
  padding: 12px 18px;
  background: white;
  border: 2px solid var(--blue);
  border-radius: 8px;
}
.skip-link:focus {
  top: 12px;
}
/* 02 · Shared navigation and layout */
.site-header {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1120px;
  margin: auto;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 25px;
  font-weight: 650;
  letter-spacing: 2px;
}
.brand > span {
  display: flex;
  align-items: center;
  gap: 17px;
}
.brand-sub {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 1px;
  border-left: 1px solid var(--line);
  padding-left: 17px;
}
nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
nav a {
  font-size: 13px;
  color: var(--muted);
  padding: 10px 0;
}
[hidden] { display: none !important; }
nav a[aria-current="page"] {
  color: var(--blue);
  font-weight: 600;
}
.nav-admin {
  border-left: 1px solid var(--line);
  padding-left: 32px;
}
main {
  max-width: 1120px;
  margin: 0 auto;
  outline: none;
  min-height: calc(100vh - 195px);
}
#view {
  padding: 48px 0 64px;
}
.site-footer {
  max-width: 1120px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding: 23px 0 26px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  color: var(--muted);
}
/* 03 · Buttons, forms and feedback */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 12px 23px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  transition:
    background 0.15s,
    box-shadow 0.15s;
}
.btn:hover {
  background: var(--blue-dark);
}
.btn-secondary {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}
.btn-secondary:hover {
  background: #f1f5fb;
  border-color: #b7c8de;
}
.btn-quiet {
  background: transparent;
  color: var(--muted);
  padding: 10px 13px;
}
.btn-quiet:hover {
  background: #e9eef7;
  color: var(--ink);
}
.btn-danger {
  background: var(--danger);
}
.btn-danger:hover {
  background: #862d32;
}
.btn-small {
  min-height: 36px;
  padding: 7px 13px;
  font-size: 12px;
  border-radius: 7px;
}
.text-link {
  border: 0;
  background: transparent;
  color: var(--blue);
  padding: 4px 0;
  font-weight: 500;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 13px;
}
.intro-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--blue);
  margin-bottom: 24px;
}
.intro-label:before {
  content: "";
  width: 24px;
  height: 2px;
  background: currentColor;
}
/* 04 · Home and four-dimension identity */
.home-hero {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  align-items: center;
  gap: 52px;
  padding: 29px 0 56px;
}
.home-hero h1 {
  font-size: 57px;
  line-height: 1.24;
  letter-spacing: -2px;
  margin-bottom: 24px;
}
.hero-copy {
  max-width: 470px;
}
.hero-copy > p {
  max-width: 425px;
  color: var(--muted);
  line-height: 1.9;
  font-size: 16px;
  margin-bottom: 29px;
}
.hero-copy .btn {
  padding: 15px 28px;
  min-height: 54px;
}
.hero-meta {
  display: flex;
  gap: 20px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 12px;
}
.hero-meta span + span {
  border-left: 1px solid #cad6e6;
  padding-left: 20px;
}
.hero-art {
  position: relative;
  background: #e8eff9;
  border-radius: 50% 50% 19px 19px;
  padding: 46px 44px 26px;
  aspect-ratio: 1.02;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.personality-art {
  width: 100%;
  height: auto;
}
.art-caption {
  margin: 20px 0 0;
  text-align: center;
  color: #466184;
  font-size: 12px;
  letter-spacing: 0.7px;
}
.art-line {
  stroke: #bed0e6;
  stroke-width: 1;
}
.hero-art .art-note {
  position: absolute;
  right: -9px;
  top: 35px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 50px;
  padding: 9px 15px;
  font-size: 11px;
  transform: rotate(7deg);
  box-shadow: 0 4px 14px #193c6d08;
  cursor: default;
  z-index: 1;
}
.hero-art .art-note:hover,
.hero-art .art-note:focus-visible {
  animation: art-note-wiggle 650ms ease-in-out;
}
@keyframes art-note-wiggle {
  0%, 100% { transform: rotate(7deg); }
  25% { transform: rotate(1deg) translateY(-3px); }
  55% { transform: rotate(12deg) translateY(2px); }
  80% { transform: rotate(4deg) translateY(-2px); }
}
.home-ribbon {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 24px 29px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 28px;
}
.ribbon-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}
.ribbon-item + .ribbon-item {
  border-left: 1px solid var(--line);
  padding-left: 28px;
}
.ribbon-icon {
  width: 36px;
  height: 36px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--blue);
  background: var(--blue-tint);
}
.ribbon-item h3 {
  font-size: 14px;
  margin: 0 0 4px;
}
.ribbon-item p {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
}
.home-bottom {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 90px;
  margin-top: 58px;
  align-items: start;
}
.home-bottom h2 {
  font-size: 24px;
  margin-bottom: 13px;
}
.home-bottom p {
  font-size: 14px;
  color: var(--muted);
  max-width: 490px;
  line-height: 1.9;
}
.dimension-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px 26px;
  padding-top: 3px;
}
.dimension-item {
  display: flex;
  align-items: center;
  gap: 13px;
}
.dimension-letters {
  font-size: 21px;
  font-weight: 650;
  letter-spacing: 1px;
  width: 57px;
  flex: none;
  color: var(--dim);
}
.dimension-item span:last-child {
  font-size: 12px;
  color: var(--muted);
}
.home-disclaimer {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
  margin: 30px 0 0;
  padding-top: 25px;
  border-top: 1px solid var(--line);
}
/* 05 · Entry and recovery forms */
.narrow {
  max-width: 560px;
  margin: 16px auto 45px;
}
.back-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 25px;
}
.paper {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 36px;
}
.form-intro {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 26px;
}
.form-field {
  margin-bottom: 22px;
}
.form-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}
.input {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid #becde0;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
}
.input::placeholder {
  color: #8996a8;
}
.field-help {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
  margin: 8px 0 0;
}
.full {
  width: 100%;
}
.form-fineprint {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
  margin: 20px 0 0;
}
.alert {
  padding: 13px 16px;
  border: 1px solid #e7bbb7;
  border-radius: 9px;
  background: #fff4f2;
  color: #973f37;
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 18px;
}
.alert:empty {
  display: none;
}
.alert-info {
  background: #edf3ff;
  border-color: #c9d9f5;
  color: #345c9c;
}
.alert-success {
  background: #ecf6f1;
  border-color: #bcdace;
  color: #26684f;
}
.resume-card {
  background: #edf3ff;
  border: 1px solid #d5e1f7;
  padding: 23px;
  border-radius: 12px;
  margin-bottom: 25px;
}
.resume-card h3 {
  margin-bottom: 8px;
}
.resume-card p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 18px;
}
.loading {
  max-width: 580px;
  margin: 65px auto;
  text-align: center;
  padding: 40px;
}
.spinner {
  display: block;
  width: 28px;
  height: 28px;
  border: 2px solid var(--line);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 18px;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
/* 06 · Focused assessment and question navigation */
.page-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 30px;
}
.page-title h1 {
  margin: 0 0 8px;
  font-size: 31px;
}
.page-title p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}
.quiz-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 28px;
  align-items: start;
}
.quiz-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 36px 40px 29px;
  min-width: 0;
}
.progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
  gap: 12px;
}
.progress-meta strong {
  font-size: 14px;
  color: var(--ink);
}
.progress-track {
  height: 5px;
  background: #e9eef6;
  border-radius: 3px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--blue);
  border-radius: 3px;
  transition: width 0.15s;
}
.question-heading {
  margin: 40px 0 27px;
}
.question-heading p {
  color: var(--muted);
  font-size: 12px;
  margin: 0 0 10px;
}
.question-heading h2 {
  font-size: 25px;
  margin: 0 0 7px;
}
.question-heading .small {
  color: var(--muted);
  font-size: 13px;
}
.answer-options {
  border: 0;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}
.answer-option {
  position: relative;
  display: block;
}
.answer-option input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.answer-surface {
  display: flex;
  align-items: center;
  gap: 17px;
  min-height: 89px;
  border: 1.5px solid #dce4ef;
  border-radius: 11px;
  padding: 21px 22px;
  cursor: pointer;
  transition:
    border-color 0.15s,
    background 0.15s;
  font-size: 16px;
  line-height: 1.7;
}
.answer-letter {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  flex: none;
  border: 1px solid #d0dbea;
  border-radius: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  background: #fff;
}
.answer-text {
  flex: 1;
}
.answer-mark {
  width: 20px;
  height: 20px;
  border: 1.5px solid #cad6e6;
  border-radius: 50%;
  flex: none;
  position: relative;
}
.answer-option input:checked + .answer-surface {
  border-color: var(--blue);
  background: #f0f5ff;
}
.answer-option input:checked + .answer-surface .answer-letter {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.answer-option input:checked + .answer-surface .answer-mark {
  background: var(--blue);
  border-color: var(--blue);
}
.answer-option input:checked + .answer-surface .answer-mark:after {
  content: "";
  position: absolute;
  width: 7px;
  height: 4px;
  border: solid white;
  border-width: 0 0 2px 2px;
  transform: rotate(-45deg);
  left: 5px;
  top: 5px;
}
.answer-option input:focus-visible + .answer-surface {
  outline: 3px solid #5284e5;
  outline-offset: 4px;
}
.answer-option:hover .answer-surface {
  border-color: #94b1e5;
}
.quiz-controls {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 31px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.quiz-save {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 11px;
}
.quiz-side {
  padding: 25px 21px;
  background: #edf2f9;
  border-radius: 13px;
}
.quiz-side summary {
  list-style: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.quiz-side summary::-webkit-details-marker {
  display: none;
}
.quiz-side summary:after {
  content: "−";
  color: var(--muted);
  font-size: 20px;
}
.quiz-side:not([open]) summary:after {
  content: "+";
}
.nav-legend {
  display: flex;
  gap: 15px;
  align-items: center;
  font-size: 10px;
  color: var(--muted);
  margin: 14px 0 16px;
}
.nav-legend span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.nav-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: #fff;
  border: 1px solid #c8d4e5;
}
.nav-dot.answered {
  background: #8eacec;
  border-color: #8eacec;
}
.question-nav {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 5px;
}
.question-nav button {
  font-size: 11px;
  border: 1px solid #d2ddec;
  color: var(--muted);
  background: #fff;
  border-radius: 5px;
  height: 29px;
  padding: 0;
  min-width: 0;
}
.question-nav button.answered {
  background: #d7e4ff;
  color: #234ea6;
  border-color: #ccdcfc;
}
.question-nav button[aria-current="step"] {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.quiz-side .text-link {
  font-size: 11px;
  margin-top: 16px;
}
.quiz-note {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
  margin: 20px 3px 0;
}
.quiz-name {
  max-width: 480px;
  overflow-wrap: anywhere;
}
/* 07 · Personal report and interpretation */
.report-intro {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.report-hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 35px;
  align-items: center;
  background: #eaf0fa;
  border: 1px solid #d9e3f3;
  border-radius: 20px;
  padding: 45px 55px;
}
.report-hero h1 {
  font-size: 108px;
  line-height: 1.03;
  font-weight: 650;
  letter-spacing: -6px;
  color: var(--blue);
  margin: 16px 0 11px;
}
.report-person {
  font-size: 13px;
  color: #526b8f;
  overflow-wrap: anywhere;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.report-person-name {
  color: var(--ink);
  font-size: 24px;
  font-weight: 650;
  line-height: 1.25;
}
.report-name {
  font-size: 24px;
  letter-spacing: 1px;
  margin: 0 0 15px;
}
.report-summary {
  font-size: 14px;
  color: #526887;
  line-height: 1.9;
  max-width: 410px;
  margin: 0;
}
.report-hero .personality-art {
  max-width: 285px;
  justify-self: center;
}
.report-hero .guide-mascot {
  display: block;
  width: 100%;
  max-width: 275px;
  justify-self: center;
  animation: guide-float 3.2s ease-in-out infinite;
}
.guide-wave {
  transform-box: fill-box;
  transform-origin: 10% 88%;
  animation: guide-wave 4.5s ease-in-out infinite;
}
@keyframes guide-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes guide-wave {
  0%, 64%, 100% { transform: rotate(0); }
  72%, 88% { transform: rotate(-11deg); }
  80% { transform: rotate(5deg); }
}
.print-query-code {
  display: none;
}
.report-section {
  margin-top: 43px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}
.section-heading h2 {
  margin: 0;
}
.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.dimension-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px 56px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px;
}
.dimension-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  margin-bottom: 14px;
  gap: 10px;
}
.dimension-heading strong {
  font-weight: 600;
}
.dimension-tendency {
  font-size: 11px;
  color: var(--ink);
  background: color-mix(in srgb, var(--dim) 8%, white);
  border-radius: 5px;
  padding: 3px 8px;
  white-space: nowrap;
}
.dimension-values {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 8px;
}
.dimension-values b {
  font-size: 17px;
  font-weight: 600;
  margin-left: 6px;
}
.dimension-values span:last-child {
  text-align: right;
  color: var(--muted);
}
.dimension-track {
  height: 10px;
  background: #e5eaf2;
  border-radius: 5px;
  display: flex;
  position: relative;
  overflow: hidden;
}
.dimension-track:after {
  content: "";
  position: absolute;
  left: 50%;
  height: 100%;
  width: 2px;
  background: #fff;
}
.dimension-left {
  height: 100%;
  background: var(--dim);
}
.dimension-right {
  height: 100%;
  background: var(--dim);
  opacity: 0.28;
}
.dimension-note {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
  margin: 13px 0 0;
}
.explain-note {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
  margin: 15px 0 0;
}
.suggestions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.suggestion {
  border-top: 2px solid #bccde6;
  padding-top: 20px;
}
.suggestion h3 {
  font-size: 16px;
  margin-bottom: 12px;
}
.suggestion p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.85;
  margin: 0;
}
.report-bottom {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  border-top: 1px solid var(--line);
  padding-top: 32px;
  margin-top: 36px;
}
.credentials {
  min-width: 0;
  overflow-wrap: anywhere;
  background: #edf4f3;
  border: 1px solid #d4e5e2;
  border-radius: 11px;
  padding: 23px;
}
.credentials h3 {
  font-size: 15px;
  margin: 0 0 8px;
}
.credentials p {
  font-size: 12px;
  color: #4c6b63;
  line-height: 1.8;
}
.credentials summary {
  font-size: 12px;
  color: var(--teal);
  cursor: pointer;
}
.token-field {
  font-family: ui-monospace, SFMono-Regular, monospace;
  resize: none;
  font-size: 12px;
  line-height: 1.7;
  margin: 12px 0 10px;
  min-height: 65px;
  overflow-wrap: anywhere;
}
.report-tools h3 {
  font-size: 16px;
}
.report-tools p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.85;
  margin-top: 16px;
}
/* 08 · Administration, tables and dialogs */
.admin-heading {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  align-items: flex-start;
  margin-bottom: 30px;
}
.admin-heading h1 {
  font-size: 32px;
  margin: 0 0 7px;
}
.admin-heading p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}
.admin-stats {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 36px;
  margin-bottom: 30px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 29px 32px;
}
.admin-total {
  border-right: 1px solid var(--line);
  padding-right: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.admin-total strong {
  display: block;
  font-size: 57px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -2px;
  color: var(--blue);
  margin: 10px 0;
}
.admin-total .small {
  color: var(--muted);
  font-size: 12px;
}
.admin-dims {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 30px;
}
.admin-dim-title {
  font-size: 12px;
  margin-bottom: 7px;
  color: var(--muted);
}
.admin-dim-values {
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}
.admin-dim-values strong {
  font-size: 14px;
}
.type-distribution {
  margin-bottom: 32px;
}
.type-distribution summary {
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  padding: 3px 0 16px;
}
.type-bars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px 25px;
  padding-top: 8px;
}
.type-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 6px;
  color: var(--muted);
}
.type-bar-label b {
  color: var(--ink);
}
.type-bar-track {
  height: 5px;
  background: #e2e9f3;
  border-radius: 3px;
  overflow: hidden;
}
.type-bar-fill {
  height: 100%;
  background: #7398e4;
}
.table-section {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.table-heading {
  padding: 25px 27px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.table-heading h2 {
  font-size: 19px;
  margin: 0;
}
.table-heading .small {
  display: block;
  margin-top: 4px;
}
.table-heading .btn {
  flex-shrink: 0;
}
.filter-form {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  padding: 0 27px 22px;
}
.filter-form .search-wrap {
  flex: 1;
  min-width: 200px;
}
.filter-form .input {
  font-size: 13px;
  min-height: 42px;
  padding: 9px 12px;
}
.filter-form select {
  width: 150px;
}
.filter-form .btn {
  min-height: 42px;
}
.table-scroll {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}
th {
  font-size: 11px;
  letter-spacing: 0.3px;
  color: var(--muted);
  font-weight: 500;
  background: #f6f8fc;
  white-space: nowrap;
}
th,
td {
  padding: 15px 25px;
  border-top: 1px solid #e7edf5;
}
td {
  vertical-align: middle;
}
tbody tr:hover {
  background: #fafcff;
}
.nickname-cell {
  font-weight: 600;
  max-width: 220px;
  overflow-wrap: anywhere;
}
.employee-name {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}
.type-badge {
  display: inline-block;
  color: var(--blue);
  background: var(--blue-tint);
  font-size: 12px;
  font-weight: 650;
  border-radius: 5px;
  padding: 4px 8px;
  letter-spacing: 0.5px;
}
.type-name-cell {
  font-size: 12px;
  margin-left: 9px;
  color: var(--muted);
}
.table-time {
  white-space: nowrap;
  font-size: 12px;
  color: var(--muted);
}
.table-actions {
  display: flex;
  gap: 11px;
  white-space: nowrap;
}
.table-actions button {
  border: 0;
  padding: 4px 0;
  color: var(--blue);
  background: transparent;
  font-size: 12px;
  min-height: 32px;
}
.table-actions button[data-delete] {
  color: #a95452;
}
.table-actions button[data-report] {
  color: var(--teal);
}
.table-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 25px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.empty-state {
  text-align: center;
  padding: 45px 20px;
  color: var(--muted);
  font-size: 13px;
}
.admin-detail-meta {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 25px;
}
.detail-answers {
  margin-top: 25px;
}
.detail-answers summary {
  cursor: pointer;
  color: var(--blue);
  font-size: 13px;
  margin-bottom: 16px;
}
.detail-answer-list {
  padding: 0;
  list-style: none;
  max-height: 330px;
  overflow: auto;
}
.detail-answer-list li {
  border-top: 1px solid var(--line);
  padding: 13px 0;
  font-size: 12px;
}
.detail-answer-list strong {
  font-weight: 500;
  color: var(--muted);
  display: block;
  margin-bottom: 4px;
}
dialog {
  max-width: calc(100vw - 32px);
  width: 680px;
  max-height: calc(100dvh - 48px);
  overflow: auto;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  box-shadow: 0 24px 90px #15294333;
}
dialog::backdrop {
  background: #172b4d66;
  backdrop-filter: blur(3px);
}
dialog h2 {
  font-size: 23px;
  overflow-wrap: anywhere;
}
.dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}
.dialog-header h2 {
  margin: 0;
}
.dialog-close {
  border: 0;
  background: #eef2f8;
  color: var(--muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 20px;
  flex: none;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}
.delete-dialog {
  width: 430px;
}
.delete-dialog p {
  font-size: 14px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.detail-dims {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 28px;
}
.storage-warning {
  margin: 0 auto 24px;
}
.noscript {
  margin: 35px;
  text-align: center;
}
.report-only-footer {
  margin-top: 30px;
  color: var(--muted);
  font-size: 12px;
}
.lookup-divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 28px 0;
}
.lookup-existing {
  font-size: 13px;
  color: var(--muted);
}
.session-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 14px;
}
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  margin-right: 6px;
}
.hidden {
  display: none !important;
}
/* 09 · Responsive layouts */
@media (min-width: 1440px) {
  #view {
    padding-top: 58px;
  }
  .home-hero {
    padding-top: 35px;
    padding-bottom: 64px;
  }
}
@media (max-width: 1199px) {
  .header-inner,
  main,
  .site-footer {
    margin-left: 32px;
    margin-right: 32px;
  }
  .home-hero {
    gap: 30px;
  }
  .home-hero h1 {
    font-size: 50px;
  }
  .hero-art {
    padding: 42px 31px 24px;
  }
  .home-bottom {
    gap: 50px;
  }
}
@media (max-width: 900px) {
  .home-hero h1 {
    font-size: 43px;
  }
  .hero-copy > p {
    font-size: 14px;
  }
  .hero-art {
    padding: 35px 23px 22px;
  }
  .home-ribbon {
    padding: 23px;
    gap: 20px;
  }
  .ribbon-item + .ribbon-item {
    padding-left: 20px;
  }
  .ribbon-icon {
    display: none;
  }
  .home-bottom {
    gap: 36px;
  }
  .quiz-shell {
    grid-template-columns: minmax(0, 1fr) 210px;
    gap: 18px;
  }
  .quiz-panel {
    padding: 28px;
  }
  .quiz-side {
    padding: 22px 16px;
  }
  .question-nav {
    grid-template-columns: repeat(5, 1fr);
  }
  .question-heading h2 {
    font-size: 22px;
  }
  .answer-surface {
    padding: 18px;
    font-size: 15px;
  }
  .report-hero {
    padding: 35px;
    gap: 15px;
  }
  .report-hero h1 {
    font-size: 87px;
  }
  .dimension-grid {
    gap: 25px 30px;
    padding: 27px;
  }
  .suggestions {
    gap: 24px;
  }
  .admin-stats {
    grid-template-columns: 170px 1fr;
    gap: 25px;
    padding: 26px;
  }
  .admin-total {
    padding-right: 20px;
  }
  .type-bars {
    grid-template-columns: repeat(4, 1fr);
  }
  th,
  td {
    padding: 15px 18px;
  }
  .admin-heading {
    align-items: start;
  }
  .admin-heading .actions {
    justify-content: flex-end;
  }
  .admin-heading .btn {
    padding: 10px 14px;
    font-size: 12px;
  }
  .report-bottom {
    gap: 25px;
  }
}
@media (max-width: 700px) {
  .header-inner,
  main,
  .site-footer {
    margin-left: 20px;
    margin-right: 20px;
  }
  .header-inner {
    height: 74px;
  }
  .brand {
    font-size: 23px;
    gap: 9px;
  }
  .brand-sub {
    display: none;
  }
  nav {
    gap: 18px;
  }
  nav a {
    font-size: 12px;
  }
  .nav-admin {
    border: 0;
    padding-left: 0;
  }
  #view {
    padding: 28px 0 44px;
  }
  .home-hero {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 11px 0 31px;
  }
  .hero-copy {
    max-width: none;
  }
  .intro-label {
    margin-bottom: 18px;
    font-size: 12px;
  }
  .home-hero h1 {
    font-size: 43px;
    line-height: 1.23;
    letter-spacing: -1.6px;
    margin-bottom: 21px;
  }
  .hero-copy > p {
    font-size: 14px;
    max-width: 500px;
    line-height: 1.9;
    margin-bottom: 24px;
  }
  .hero-meta {
    margin-top: 17px;
    font-size: 11px;
  }
  .hero-art {
    aspect-ratio: 1.6;
    padding: 26px 63px 20px;
    border-radius: 90px 90px 14px 14px;
    max-width: 430px;
    width: 100%;
    justify-self: center;
  }
  .hero-art .personality-art {
    max-height: 240px;
  }
  .art-caption {
    margin-top: 13px;
    font-size: 11px;
  }
  .hero-art .art-note {
    right: 0;
    top: 20px;
    font-size: 10px;
  }
  .home-ribbon {
    grid-template-columns: 1fr;
    gap: 19px;
    padding: 24px;
  }
  .ribbon-item + .ribbon-item {
    border: 0;
    border-top: 1px solid var(--line);
    padding: 19px 0 0;
  }
  .ribbon-icon {
    display: grid;
  }
  .home-bottom {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 35px;
  }
  .home-bottom h2 {
    font-size: 23px;
  }
  .home-bottom p {
    margin-bottom: 0;
  }
  .dimension-list {
    gap: 20px;
  }
  .home-disclaimer {
    font-size: 11px;
    margin-top: 26px;
  }
  .site-footer {
    flex-direction: column;
    gap: 5px;
    padding: 20px 0;
    font-size: 10px;
  }
  .narrow {
    margin: 1px auto 20px;
  }
  .paper {
    padding: 26px 23px;
    border-radius: 13px;
  }
  .paper h1 {
    font-size: 29px;
  }
  .page-title h1 {
    font-size: 25px;
  }
  .page-title {
    margin-bottom: 23px;
    gap: 15px;
  }
  .page-title p {
    font-size: 12px;
  }
  .page-title .btn {
    font-size: 11px;
    padding: 9px 12px;
    min-height: 38px;
  }
  .quiz-shell {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .quiz-panel {
    padding: 25px 23px 20px;
    border-radius: 13px;
  }
  .question-heading {
    margin: 29px 0 24px;
  }
  .question-heading h2 {
    font-size: 23px;
  }
  .question-heading .small {
    font-size: 12px;
  }
  .answer-surface {
    min-height: 91px;
    padding: 17px 15px;
    gap: 13px;
  }
  .answer-mark {
    width: 18px;
    height: 18px;
  }
  .answer-option input:checked + .answer-surface .answer-mark:after {
    left: 4px;
    top: 4px;
  }
  .quiz-controls {
    margin-top: 25px;
    padding-top: 21px;
  }
  .quiz-controls .btn {
    font-size: 13px;
    padding: 11px 17px;
  }
  .quiz-save {
    font-size: 10px;
    flex-wrap: wrap;
    gap: 6px;
  }
  .quiz-side {
    padding: 20px;
  }
  .question-nav {
    grid-template-columns: repeat(10, 1fr);
    gap: 6px;
  }
  .question-nav button {
    height: 31px;
  }
  .quiz-note {
    display: none;
  }
  .nav-legend {
    font-size: 11px;
  }
  .quiz-side .text-link {
    font-size: 12px;
  }
  .report-intro {
    font-size: 11px;
    gap: 12px;
    margin-bottom: 17px;
  }
  .report-hero {
    grid-template-columns: minmax(0, 1fr) 84px;
    padding: 27px;
    border-radius: 15px;
    gap: 0 12px;
  }
  .report-hero > div {
    display: contents;
  }
  .report-person,
  .report-name,
  .report-summary {
    grid-column: 1 / -1;
  }
  .report-hero h1 {
    grid-column: 1;
    grid-row: 2;
    font-size: 82px;
    letter-spacing: -4px;
    margin: 15px 0 9px;
  }
  .report-name {
    font-size: 21px;
    margin-bottom: 12px;
  }
  .report-person {
    font-size: 12px;
  }
  .report-person-name {
    font-size: 21px;
  }
  .report-summary {
    font-size: 13px;
    max-width: none;
  }
  .report-hero .personality-art {
    grid-column: 2;
    grid-row: 2;
    width: 100%;
    max-width: 84px;
    opacity: 0.9;
  }
  .report-hero .guide-mascot {
    grid-column: 2;
    grid-row: 2;
    max-width: 84px;
  }
  .report-hero .personality-art text {
    display: none;
  }
  .report-section {
    margin-top: 30px;
  }
  .section-heading {
    margin-bottom: 19px;
    align-items: start;
    gap: 10px;
  }
  .section-heading h2 {
    font-size: 22px;
  }
  .section-heading p {
    font-size: 10px;
    margin-top: 4px;
  }
  .dimension-grid {
    grid-template-columns: 1fr;
    padding: 25px;
    gap: 26px;
  }
  .dimension-grid .dimension-block + .dimension-block {
    border-top: 1px solid var(--line);
    padding-top: 24px;
  }
  .dimension-heading {
    margin-bottom: 12px;
  }
  .dimension-note {
    font-size: 12px;
  }
  .explain-note {
    font-size: 11px;
  }
  .suggestions {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .suggestion {
    padding-top: 17px;
  }
  .suggestion h3 {
    font-size: 16px;
    margin-bottom: 8px;
  }
  .report-bottom {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 28px;
    padding-top: 28px;
  }
  .report-tools {
    order: 2;
  }
  .admin-heading {
    flex-direction: column;
    gap: 18px;
    margin-bottom: 23px;
  }
  .admin-heading h1 {
    font-size: 28px;
  }
  .admin-heading .actions {
    justify-content: flex-start;
    gap: 8px;
  }
  .admin-stats {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 25px;
  }
  .admin-total {
    border: 0;
    border-bottom: 1px solid var(--line);
    padding: 0 0 21px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    column-gap: 10px;
  }
  .admin-total strong {
    grid-column: 2;
    grid-row: 1 / 3;
    font-size: 44px;
    margin: 0;
  }
  .admin-total .small {
    font-size: 11px;
  }
  .admin-dims {
    gap: 22px;
  }
  .type-bars {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .table-heading {
    padding: 22px 20px 19px;
  }
  .filter-form {
    padding: 0 20px 20px;
    gap: 10px;
  }
  .filter-form .search-wrap {
    min-width: 100%;
    flex-basis: 100%;
  }
  .filter-form select {
    flex: 1;
    width: auto;
  }
  .table-pagination {
    padding: 16px 18px;
    gap: 10px;
    font-size: 11px;
  }
  .table-pagination .actions {
    gap: 7px;
  }
  .table-pagination .btn {
    padding: 7px 9px;
  }
  .table-section {
    border-radius: 12px;
  }
  table {
    min-width: 650px;
  }
  th,
  td {
    padding: 14px 18px;
  }
  .detail-dims {
    grid-template-columns: 1fr;
  }
  .detail-dims .dimension-block + .dimension-block {
    border-top: 1px solid var(--line);
    padding-top: 18px;
  }
  dialog {
    padding: 23px;
    border-radius: 13px;
  }
  .dialog-header h2 {
    font-size: 21px;
  }
}
@media (max-width: 380px) {
  .header-inner,
  main,
  .site-footer {
    margin-left: 16px;
    margin-right: 16px;
  }
  nav {
    gap: 13px;
  }
  .brand svg {
    width: 27px;
    height: 27px;
  }
  .brand {
    font-size: 21px;
  }
  .home-hero h1 {
    font-size: 38px;
  }
  .hero-art {
    padding: 22px 48px 18px;
  }
  .hero-meta {
    gap: 12px;
  }
  .hero-meta span + span {
    padding-left: 12px;
  }
  .question-nav {
    grid-template-columns: repeat(8, 1fr);
  }
  .quiz-panel {
    padding: 23px 19px 20px;
  }
  .quiz-controls .btn {
    padding: 11px 13px;
    font-size: 12px;
  }
  .answer-surface {
    font-size: 14px;
    padding: 16px 12px;
    gap: 10px;
  }
  .report-hero {
    padding: 24px;
    grid-template-columns: minmax(0, 1fr) 72px;
  }
  .report-hero .guide-mascot {
    max-width: 72px;
  }
  .report-hero h1 {
    font-size: 74px;
  }
  .dimension-values b {
    font-size: 16px;
  }
  .admin-dims {
    column-gap: 18px;
  }
  .table-pagination {
    flex-direction: column;
    align-items: flex-start;
  }
}
/* 10 · Reduced motion and print */
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media print {
  :root {
    background: #fff;
  }
  @page {
    margin: 15mm;
  }
  html,
  body {
    background: white;
    color: #172b4d;
    font-size: 11px;
  }
  .site-header,
  .site-footer,
  .no-print,
  .skip-link,
  #announcer {
    display: none !important;
  }
  main {
    max-width: none;
    margin: 0;
    min-height: auto;
  }
  #view {
    padding: 0;
  }
  .report-intro {
    margin-bottom: 15px;
  }
  .report-hero {
    padding: 22px 28px;
    grid-template-columns: 1.2fr 1fr;
    break-inside: avoid;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
  .report-hero h1 {
    font-size: 72px;
    margin: 10px 0;
  }
  .report-hero > div {
    display: block;
  }
  .report-summary {
    font-size: 12px;
    line-height: 1.65;
  }
  .report-hero .personality-art {
    grid-column: auto;
    grid-row: auto;
    position: static;
    width: 100%;
    max-width: 180px;
  }
  .report-hero .guide-mascot {
    width: 100%;
    max-width: 150px;
    animation: none;
  }
  .guide-wave {
    animation: none;
  }
  .print-query-code {
    display: block;
    padding: 7px 10px;
    margin: 0 0 10px;
    border-radius: 7px;
    background: #e7f2ee;
    font-size: 9px;
    overflow-wrap: anywhere;
  }
  .report-section {
    margin-top: 20px;
    break-inside: avoid;
  }
  .dimension-grid {
    grid-template-columns: 1fr 1fr;
    padding: 20px;
    gap: 18px 26px;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
  .dimension-grid .dimension-block + .dimension-block {
    border: 0;
    padding-top: 0;
  }
  .dimension-track,
  .dimension-left,
  .dimension-right {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
  .section-heading h2 {
    font-size: 21px;
  }
  .suggestions {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
  .suggestion p {
    font-size: 11px;
  }
  .report-only-footer {
    margin-top: 16px;
    break-inside: avoid;
  }
  .explain-note {
    font-size: 10px;
  }
  .report-bottom {
    display: none;
  }
  a {
    color: inherit;
  }
  h1,
  h2,
  h3 {
    break-after: avoid;
  }
}
