:root {
  --navy: #2c3620;
  --ink: #1d2b25;
  --muted: #4d6258;
  --blue: #285c4e;
  --border: #d7e1d9;
  --teal: #356f5d;
  background: #f0f3ee;
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
}

body { background: #f0f3ee; }
.site-header { max-width: none; height: 72px; padding: 0 clamp(20px, 4vw, 64px); }
.brand { color: var(--ink); letter-spacing: -.02em; }
.brand svg { color: #376c5e; }
.site-footer { max-width: none; margin: 0; padding: 24px clamp(20px, 4vw, 64px); color: #455a50; }
.site-footer a { color: #455a50; }
.primary { background: var(--blue); border-radius: 4px; }
.primary:hover { background: #1c493d; }
.outline { border-radius: 4px; }
.primary:active, .outline:active { transform: scale(.985); }

/* The report folio is an illustration of the actual archive workflow, with no patient data. */
.auth-layout {
  max-width: none;
  margin: 0;
  min-height: calc(100svh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border: 0;
  border-radius: 0;
  box-shadow: none; /* taste-skill-ignore: clears the legacy container shadow */
  overflow: visible;
  background: transparent;
}
.auth-aside {
  align-self: start;
  position: sticky;
  top: 0;
  min-height: calc(100svh - 72px);
  padding: clamp(30px, 4vw, 64px);
  background: #b7c8be;
  color: #1d2b25;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.auth-stage-copy { margin-top: clamp(32px, 6vh, 82px); }
.auth-stage-copy h1 {
  margin: 0;
  font-family: "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
  font-size: clamp(44px, 4.7vw, 74px);
  line-height: 1.15;
  letter-spacing: -.045em;
  font-weight: 600;
}
.auth-stage-copy .aside-lead { max-width: 25em; margin: 22px 0 0; font-size: clamp(17px, 1.35vw, 20px); line-height: 1.7; color: #2e4439; }
.report-object { position: relative; width: min(86%, 510px); height: clamp(220px, 31vh, 360px); margin: clamp(34px, 5vh, 60px) 0 26px auto; }
.report-back { position: absolute; inset: 20px 5px 0 50px; background: #d6c4b8; transform: rotate(6deg); }
.report-back:after { content: ""; position: absolute; inset: 0; background: #a6b3bc; animation: paper-crossfade 11s ease-in-out infinite alternate; }
.report-page {
  position: absolute;
  inset: 0 34px 18px 0;
  padding: clamp(24px, 3vw, 42px);
  background: #f3f4ed;
  display: flex;
  flex-direction: column;
  transform: rotate(-3deg);
}
.report-kicker { font-size: 14px; font-weight: 700; }
.report-page strong { display: block; margin-top: 16px; font-family: "Noto Serif SC", "Source Han Serif SC", "SimSun", serif; font-size: clamp(29px, 3vw, 46px); line-height: 1.2; font-weight: 600; }
.report-band { margin-top: auto; padding: 20px 0; background: #d9e5da; text-align: center; font-size: clamp(13px, 1.05vw, 16px); white-space: nowrap; }
.report-last { margin-top: 16px; font-size: 14px; color: #3c5348; }
.stage-footnote { margin: auto 0 0; font-size: 15px; color: #2e4439; }
.auth-panel { background: #f8f9f5; padding: 40px clamp(26px, 6vw, 100px); justify-content: flex-start; }
.auth-panel-inner { width: min(100%, 480px); margin: auto; }
.auth-tabs { gap: 26px; border: 0; margin: 0 0 36px; }
.auth-tabs a { padding: 9px 0 11px; }
.auth-tabs .selected { border-bottom: 3px solid var(--blue); }
.auth-panel .eyebrow { display: none; } /* taste-skill-ignore: hides old kicker labels */
.auth-panel h2 { font-family: "Noto Serif SC", "Source Han Serif SC", "SimSun", serif; font-size: clamp(29px, 2.8vw, 42px); line-height: 1.25; letter-spacing: -.035em; margin: 0 0 16px; }
.auth-panel .panel-description { color: #42584d; font-size: 16px; line-height: 1.6; margin: 0 0 34px; }
.auth-panel label { font-size: 15px; }
.auth-panel input:not([type=checkbox]):not([type=hidden]) { border-radius: 4px; border-color: #bfcfc4; min-height: 52px; }
.auth-panel input:focus-visible { outline-color: #356f5d; }
.auth-panel .primary.full { min-height: 52px; margin-top: 10px; }
.auth-panel .form-hint, .auth-panel small { color: #4d6258; }
.panel-bottom { border: 0; margin-top: 18px; padding-top: 18px; background: #e7eee7; padding-left: 16px; padding-right: 16px; padding-bottom: 18px; }
.secret { background: #e7eee7; border: 0; border-radius: 4px; }
.admin-auth-layout .auth-aside { background: #a6b3bc; }
.admin-auth-layout .report-band { background: #d6c4b8; }

/* Account and merchant screens carry the same palette without changing their controls. */
.workspace { max-width: 1340px; }
.workspace-side { border: 0; border-radius: 4px; background: #e1ebe2; }
.workspace-side nav a.active { background: #c5d9ca; color: #1d4b3d; }
.workspace-side nav a:hover { background: #d1e2d4; }
.workspace .card { border: 0; border-radius: 4px; box-shadow: none; } /* taste-skill-ignore: clears legacy card shadow */
.workspace .license-card { background: #2c3620; border: 0; border-radius: 4px; }
.workspace .license-card .license-state { background: #506449; }
.workspace .license-card .license-word { color: #c2d5bb; }
.workspace .primary { background: var(--blue); }
.workspace .primary:hover { background: #1c493d; }
.workspace .outline { border-color: #bfcfc4; }
.workspace a.primary:hover, .workspace a.outline:hover, .workspace button:hover:not(:disabled), .workspace-side nav a:hover { box-shadow: none; } /* taste-skill-ignore: clears legacy hover shadow */
.account-consent-alert { background: #f6e6cd; }

@keyframes paper-crossfade { from { opacity: 0; } to { opacity: 1; } }
@keyframes stage-enter { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: 0 0; } }
.auth-stage-copy h1, .auth-stage-copy .aside-lead, .report-back, .report-page, .stage-footnote,
.auth-tabs, .auth-panel-inner h2, .auth-panel-inner .panel-description {
  animation: stage-enter .65s ease-out both;
}
.auth-stage-copy h1 { animation-delay: .06s; }
.auth-stage-copy .aside-lead { animation-delay: .12s; }
.report-back { animation-delay: .18s; }
.report-page { animation-delay: .25s; }
.stage-footnote { animation-delay: .32s; }
.auth-tabs { animation-delay: .1s; }
.auth-panel-inner h2 { animation-delay: .18s; }
.auth-panel-inner .panel-description { animation-delay: .25s; }
.auth-panel button, .auth-panel a { transition: transform .18s ease, background-color .18s ease; }
.auth-panel button:not(:disabled):hover { transform: translateY(-2px); }
.auth-panel button:not(:disabled):active { transform: scale(.98); }

@media (max-width: 800px) {
  .site-header { height: 58px; padding: 0 18px; }
  .header-caption { display: none; }
  .auth-layout { display: block; margin: 0; min-height: 0; }
  .auth-aside { position: static; min-height: 0; padding: 18px 22px 17px; display: block; }
  .report-object, .stage-footnote { display: none; }
  .auth-stage-copy { margin: 0; }
  .auth-stage-copy h1 { font-size: clamp(27px, 7.5vw, 40px); line-height: 1.15; }
  .auth-stage-copy h1 br { display: none; }
  .auth-stage-copy .aside-lead { font-size: 14px; line-height: 1.5; margin: 7px 0 0; max-width: none; }
  .auth-panel { padding: 19px 20px 26px; }
  .auth-panel-inner { width: 100%; }
  .auth-tabs { margin-bottom: 22px; }
  .auth-panel h2 { font-size: 27px; margin-bottom: 9px; }
  .auth-panel .panel-description { margin-bottom: 22px; font-size: 14px; }
  .auth-panel label { margin-top: 13px; }
  .site-footer { padding: 18px 20px; font-size: 13px; }
  .workspace { grid-template-columns: minmax(0, 1fr); padding: 0 14px; }
}
@media (max-width: 360px) {
  .auth-aside { padding-left: 18px; padding-right: 18px; }
  .auth-panel { padding-left: 18px; padding-right: 18px; }
  .auth-stage-copy h1 { font-size: 26px; }
  .site-footer { padding-left: 18px; padding-right: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .auth-stage-copy h1, .auth-stage-copy .aside-lead, .report-back, .report-page, .stage-footnote,
  .auth-tabs, .auth-panel-inner h2, .auth-panel-inner .panel-description, .report-back:after { animation: none; }
  .auth-panel button, .auth-panel a { transition: none; }
}

/* Customer access: the report is a quiet editorial cue; the form is the focus. */
body.auth { background: #fff; }
body.auth .site-header {
  max-width: 1440px;
  height: 76px;
  padding-inline: clamp(22px, 3.5vw, 54px);
  border-bottom: 1px solid #e8eee9;
  background: #fff;
}
body.auth .brand { font-size: 21px; gap: 13px; }
body.auth .brand svg { width: 38px; height: 38px; }
body.auth .header-caption { color: #72857b; font-size: 13px; }
body.auth .auth-layout {
  max-width: 1440px;
  min-height: calc(100svh - 76px);
  margin-inline: auto;
  grid-template-columns: minmax(350px, 39%) minmax(0, 1fr);
  background: #fff;
}
body.auth .auth-aside {
  min-height: calc(100svh - 76px);
  padding: clamp(38px, 4vw, 60px);
  background: #e9f2eb;
  border-right: 1px solid #dce9df;
}
body.auth .auth-stage-copy { margin-top: clamp(24px, 5vh, 66px); }
body.auth .auth-stage-copy h1 {
  max-width: 8em;
  font-size: clamp(42px, 4vw, 61px);
  line-height: 1.18;
  color: #173c30;
}
body.auth .auth-stage-copy .aside-lead {
  max-width: 20em;
  margin-top: 24px;
  color: #4f6659;
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.8;
}
body.auth .report-object {
  width: min(86%, 395px);
  height: clamp(210px, 29vh, 305px);
  margin: clamp(48px, 7vh, 88px) auto 36px;
}
body.auth .report-back {
  inset: 18px 12px 0 38px;
  background: #a7c8b3;
  transform: rotate(4deg);
  border: 1px solid #89b29b;
}
body.auth .report-back:after { background: #b8d2c0; opacity: .42; animation: none; }
body.auth .report-page {
  inset: 0 27px 16px 0;
  padding: clamp(25px, 2.7vw, 36px);
  background: #fffefb;
  border: 1px solid #e2e9e1;
  box-shadow: 0 20px 42px #2c564324;
  transform: rotate(-2deg);
}
body.auth .report-kicker { color: #1e5944; font-size: 13px; letter-spacing: .08em; }
body.auth .report-page strong { color: #153b2f; font-size: clamp(30px, 2.6vw, 40px); }
body.auth .report-band {
  padding: 14px 8px;
  background: #eef6ef;
  border-top: 1px solid #d9e8dc;
  border-bottom: 1px solid #d9e8dc;
  color: #3e6a54;
  font-size: 13px;
}
body.auth .report-last, body.auth .stage-footnote { color: #5e7668; font-size: 13px; }
body.auth .auth-panel {
  background: #fff;
  padding: clamp(38px, 4.4vw, 72px) clamp(38px, 7vw, 112px);
}
body.auth .auth-panel-inner { width: min(100%, 548px); }
body.auth .auth-tabs { gap: 32px; margin-bottom: 42px; border-bottom: 1px solid #e2eae4; }
body.auth .auth-tabs a { padding: 11px 0 15px; color: #70857a; font-size: 15px; }
body.auth .auth-tabs .selected { color: #173d30; border-bottom: 3px solid #176346; }
body.auth .auth-panel h2 { color: #17372d; font-size: clamp(32px, 2.8vw, 40px); margin-bottom: 13px; }
body.auth .auth-panel .panel-description { color: #60786a; margin-bottom: 30px; }
body.auth .auth-panel label { color: #213a2e; font-weight: 650; margin-top: 21px; }
body.auth .auth-panel input:not([type=checkbox]):not([type=hidden]) {
  min-height: 54px;
  padding: 12px 16px;
  border: 1px solid #cbdcd0;
  border-radius: 10px;
  background: #fff;
  color: #17372d;
  box-shadow: 0 1px 2px #17372d08;
}
body.auth .auth-panel input:not([type=checkbox]):not([type=hidden]):hover { border-color: #94b9a1; }
body.auth .auth-panel input:focus-visible { outline: 3px solid #acd8bc; outline-offset: 2px; border-color: #20724e; }
body.auth .auth-panel .primary.full {
  min-height: 54px;
  margin-top: 17px;
  border-radius: 10px;
  background: #176346;
  font-size: 16px;
}
body.auth .auth-panel .primary.full:hover { background: #104d37; }
body.auth .auth-panel .outline { border-radius: 9px; border-color: #cadbce; color: #245841; }
body.auth .auth-panel .outline:hover:not(:disabled) { background: #eff7f0; }
body.auth .auth-panel .form-hint, body.auth .auth-panel small { color: #668073; font-size: 13px; line-height: 1.6; }
body.auth .auth-panel .check { margin-block: 15px; }
body.auth .auth-panel .check input { accent-color: #176346; }
body.auth .panel-bottom { background: #f0f6f1; border-radius: 10px; color: #476a56; }
body.auth .site-footer { max-width: 1440px; margin-inline: auto; border-top: 1px solid #e8eee9; background: #fff; }

/* Registration follows the supplied report-and-form reference. */
body.auth .register-auth-layout .auth-panel { align-items: center; }
body.auth .register-auth-layout .auth-panel-inner { margin-block: clamp(20px, 4vh, 56px); }
body.auth .register-auth-layout .verification-actions { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
body.auth .register-auth-layout .verification-actions .outline { min-height: 46px; white-space: nowrap; }
body.auth .register-auth-layout .delivery-state { margin: 14px 0 20px; }
body.auth .register-auth-layout .register-password { margin-top: 24px; padding-top: 7px; border-top: 1px solid #e6eee8; }
body.auth .register-auth-layout .register-consents { padding-top: 2px; border-top: 1px solid #e6eee8; }
body.auth .register-auth-layout .register-consents .check { margin-block: 16px; }
body.auth .register-auth-layout .register-consents .check:first-child { margin-top: 18px; }
body.auth .register-auth-layout .register-consents a { color: #176346; text-underline-offset: 3px; }
body.auth .register-auth-layout .primary:disabled { opacity: 1; background: #dce8df; color: #657c6b; border-color: #d0dfd3; }
body.auth .legacy-login { margin-top: 24px; border-top: 1px solid #e4ece6; padding-top: 18px; }
body.auth .legacy-login>summary { cursor: pointer; color: #27664b; font-size: 14px; font-weight: 650; }
body.auth .legacy-login form { padding-top: 10px; }

@media (max-width: 900px) {
  body.auth .site-header { height: 62px; padding-inline: 20px; }
  body.auth .header-caption { display: none; }
  body.auth .auth-layout { display: block; min-height: calc(100svh - 62px); }
  body.auth .auth-aside { display: none; }
  body.auth .auth-panel { min-height: calc(100svh - 62px); padding: 30px max(22px, calc((100vw - 560px)/2)) 46px; }
  body.auth .auth-tabs { margin-bottom: 32px; }
  body.auth .auth-panel h2 { font-size: clamp(30px, 7vw, 37px); }
  body.auth .register-auth-layout .auth-aside { display: block; min-height: 0; position: static; padding: 24px max(22px, calc((100vw - 560px)/2)); border-right: 0; border-bottom: 1px solid #dce9df; }
  body.auth .register-auth-layout .auth-stage-copy { margin: 0; }
  body.auth .register-auth-layout .auth-stage-copy h1 { max-width: none; font-size: clamp(27px, 5.5vw, 38px); }
  body.auth .register-auth-layout .auth-stage-copy h1 br { display: none; }
  body.auth .register-auth-layout .auth-stage-copy .aside-lead { max-width: 40em; margin-top: 8px; font-size: 14px; line-height: 1.6; }
  body.auth .register-auth-layout .report-object, body.auth .register-auth-layout .stage-footnote { display: none; }
  body.auth .register-auth-layout .auth-panel { min-height: 0; padding-top: 26px; }
  body.auth .register-auth-layout .auth-panel-inner { margin-block: 0; }
}
@media (max-width: 430px) {
  body.auth .auth-panel { padding: 24px 20px 38px; }
  body.auth .auth-tabs { margin-bottom: 28px; }
  body.auth .auth-panel .panel-description { margin-bottom: 24px; }
  body.auth .auth-panel label { margin-top: 18px; }
  body.auth .verification-actions { align-items: stretch; }
  body.auth .verification-actions .outline { min-height: 46px; }
  body.auth .site-footer { padding: 18px 20px; }
  body.auth .register-auth-layout .auth-aside { padding: 21px 20px 20px; }
  body.auth .register-auth-layout .auth-stage-copy h1 { font-size: 27px; }
  body.auth .register-auth-layout .verification-actions { flex-wrap: wrap; gap: 5px 12px; }
  body.auth .register-auth-layout .verification-actions small { flex: 1; min-width: 140px; }
}
