:root {
  color-scheme: light;
  --ink: #292235;
  --muted: #655f70;
  --violet: #6040ba;
  --line: #e5e1ea;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  color: var(--ink);
  background: #faf9fc;
}
* {box-sizing: border-box;}
body, h1, h2, p, dl, dd {margin: 0;}
a {color: inherit; text-decoration: none;}
button, input, select {font: inherit;}
button {cursor: pointer;}
[hidden] {display: none !important;}
:focus-visible {outline: 3px solid #5632c4; outline-offset: 4px;}
.wrap {width: min(1240px, 92%); margin-inline: auto;}
.skip {position: absolute; z-index: 2; top: -70px; left: 1rem; padding: .7rem; background: white;}
.skip:focus {top: .7rem;}
.mast {background: #fff; border-bottom: 1px solid var(--line);}
.mast-in, .brand, .mast nav, .admin-link, .action, .roles dt, footer {display: flex; align-items: center;}
.mast-in {min-height: 78px; justify-content: space-between; gap: 18px;}
.brand {gap: 11px; flex: none;}
.brand img {border-radius: 12px;}
.brand span {font-size: 1.23rem; font-weight: 750; letter-spacing: .045em; line-height: 1.35;}
.brand small {display: block; font-size: .64rem; font-weight: 650; letter-spacing: .095em; color: var(--muted);}
.mast nav {gap: clamp(12px, 2.6vw, 36px); font-size: .94rem;}
.mast nav a {padding-block: .55rem;}
.mast nav a:hover, .register:hover {text-decoration: underline; text-underline-offset: 4px;}
.mast .admin-link {gap: .4rem; color: var(--violet); font-weight: 650;}
i[data-icon] {display: inline-flex; align-items: center;}
.hero {isolation: isolate; position: relative; overflow: hidden; min-height: clamp(365px,34vw,452px); display: grid; align-items: center; margin-top: 28px; border-radius: 24px; background: #ead3fa;}
.hero-art {position: absolute; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center; inset: 0;}
.hero::before {content: ""; z-index: -1; position: absolute; inset: 0; background: linear-gradient(90deg,#edddfb 0%,rgba(237,221,251,.93) 22%,rgba(237,221,251,.64) 40%,transparent 58%);}
.hero-body {padding: clamp(30px,4.5vw,65px);}
.kicker {color: var(--violet); font-size: .9rem; font-weight: 700; letter-spacing: .1em;}
.hero h1 {color: #2b193d; font-size: clamp(3.2rem,5.5vw,5rem); line-height: 1.21; letter-spacing: -.045em; margin: 8px 0 15px;}
.intro {color: #493755; line-height: 1.85; font-size: clamp(1rem,1.25vw,1.12rem);}
.app-actions {display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 24px;}
.action {justify-content: center; gap: 9px; min-height: 48px; padding: 10px 19px; border: 1px solid transparent; border-radius: 10px; font-weight: 650; text-align: center;}
.ios, .submit {background: var(--violet); color: #fff;}
.ios:hover, .submit:not(:disabled):hover {background: #482b9c;}
.android {background: #fff; color: #3d2c50; border-color: #c8b4d7;}
a.android:hover {border-color: #8762a5;}
.unavailable {color: #584c66; background: #f6effa; border-color: #d0c0da; font-size: .93rem;}
.device-icon {width: 13px; height: 20px; border: 2px solid currentColor; border-radius: 3px; position: relative;}
.device-icon::after {content: ""; position: absolute; width: 3px; height: 2px; border-radius: 2px; background: currentColor; bottom: 2px; left: 3px;}
.register {display: inline-block; margin-top: 14px; color: #49325f; font-size: .9rem; padding-block: 3px;}
.office {display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: clamp(34px,8vw,120px); padding: clamp(38px,5vw,70px) clamp(12px,3.5vw,52px); scroll-margin-top: 1rem;}
.office h2 {font-size: clamp(1.9rem,3.5vw,3rem); letter-spacing: -.045em; margin: 8px 0 12px; font-weight: 720; line-height: 1.25;}
.office-copy > p:not(.kicker), .roles dd {color: var(--muted); line-height: 1.75;}
.roles {margin-top: 26px;}
.roles div {padding-block: 13px; border-top: 1px solid var(--line);}
.roles dt {gap: .55rem; font-weight: 650;}
.roles dt i {color: var(--violet);}
.roles dd {margin: 4px 0 0 29px; font-size: .94rem;}
.login-panel {background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: clamp(20px,2.7vw,38px);}
form {display: grid; gap: 7px;}
form label {font-size: .95rem; font-weight: 620;}
input, select {width: 100%; min-height: 45px; border: 1px solid #c8c3d0; border-radius: 7px; padding: 8px 12px; color: var(--ink); background: #fff;}
form label:not(:first-child) {margin-top: 8px;}
.select-wrap {position: relative;}
select {appearance: none; padding-right: 35px;}
.select-wrap::after {content: ""; position: absolute; right: 15px; top: calc(50% - 5px); width: 7px; height: 7px; border: solid var(--muted); border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); pointer-events: none;}
.error {color: #9a253b; line-height: 1.5; font-size: .94rem;}
.error:empty {display: none;}
.submit {margin-top: 12px; width: 100%;}
.submit:disabled {opacity: .7; cursor: progress;}
footer {border-top: 1px solid var(--line); justify-content: space-between; color: var(--muted); font-size: .88rem; padding-block: 24px 30px;}
@media(max-width: 760px) {
  .mast-in {min-height: 66px;}
  .mast nav {gap: 14px;}
  .mast nav > a:first-child {display: none;}
  .hero {margin-top: 16px;}
  .office {gap: 24px; grid-template-columns: 1fr 1.1fr; padding-inline: 2px;}
  .roles dd {margin-left: 0;}
}
@media(max-width: 580px) {
  .wrap {width: min(92%, 490px);}
  .mast nav {gap: 12px; font-size: .87rem;}
  .mast .admin-link i {display: none;}
  .brand {gap: 6px;}
  .brand img {width: 32px; height: 32px; border-radius: 9px;}
  .brand span {font-size: 1.04rem;}
  .brand small {font-size: .52rem;}
  .hero {align-items: start; margin-top: 12px; border-radius: 16px; background: #e8d0f7; min-height: 0; padding-bottom: clamp(125px,35vw,175px);}
  .hero-art {inset: auto 0 0; height: clamp(195px,50vw,250px); object-position: right bottom;}
  .hero::before {background: linear-gradient(180deg,#edddfb 24%,#e8d0f7 49%,rgba(232,208,247,.77) 59%,transparent 78%);}
  .hero-body {padding: 24px 20px 5px;}
  .hero h1 {font-size: 3.1rem; margin: 3px 0 10px;}
  .intro {line-height: 1.6; max-width: 23em;}
  .wide-break {display: none;}
  .app-actions {margin-top: 14px; gap: 6px;}
  .app-actions .action {min-height: 44px; padding: 8px 10px; font-size: .88rem; gap: 6px;}
  .register {margin-top: 8px;}
  .office {display: flex; flex-direction: column; gap: 18px; padding: 29px 1px;}
  .office h2 {margin: 4px 0 5px;}
  .roles {display: none;}
  .login-panel {width: 100%;}
}
