:root {
  color-scheme: light;
  --bg: #f6f2ec;
  --surface: #fffcf9;
  --ink: #28212a;
  --muted: #6c636a;
  --line: #ddd5d8;
  --accent: #4b2048;
  --accentText: #fff8fc;
  --soft: #eee3eb;
  --danger: #a12d3c;
  --tint: #f8f4f7;
  --shadow: 0 4px 20px #37223207;
  font:
    16px/1.5 Inter,
    Geist,
    'Segoe UI',
    Arial,
    sans-serif;
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #181518;
  --surface: #242024;
  --ink: #f4edf2;
  --muted: #c6b8c1;
  --line: #4c4149;
  --accent: #e9b9df;
  --accentText: #32162c;
  --soft: #423341;
  --tint: #302930;
  --danger: #ffb3bc;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
}
a {
  color: var(--accent);
  text-underline-offset: 3px;
}
a:hover {
  text-decoration-thickness: 2px;
}
.skip {
  position: fixed;
  top: -100px;
  background: var(--surface);
  z-index: 10;
  padding: 12px;
}
.skip:focus {
  top: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--accent);
  padding: 0.62rem 0.9rem;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.35;
  min-height: 40px;
}
button:hover,
.button:hover {
  border-color: var(--accent);
  background: var(--tint);
}
button.primary,
.primary,
.auth-form button[type='submit'] {
  background: var(--accent);
  color: var(--accentText);
  border-color: var(--accent);
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
input,
select,
textarea {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0.6rem 0.7rem;
  min-width: 0;
  max-width: 100%;
}
input:not([type='checkbox'], [type='radio'], [type='file']),
select {
  min-height: 42px;
}
textarea {
  min-height: 74px;
  resize: vertical;
}
input[type='checkbox'] {
  accent-color: var(--accent);
}
:focus-visible {
  outline: 3px solid #9271bb;
  outline-offset: 3px;
}
label {
  font-weight: 550;
}
h1,
h2,
h3,
p {
  margin-block-start: 0;
}
h1,
h2,
h3 {
  line-height: 1.16;
  letter-spacing: -0.035em;
}
h1 {
  font-size: clamp(2rem, 3.4vw, 3.45rem);
  margin-bottom: 0.7em;
}
h2 {
  font-size: 1.5rem;
}
h3 {
  font-size: 1.13rem;
}
small,
.muted {
  color: var(--muted);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--accent);
  font-weight: 760;
  letter-spacing: -0.055em;
  text-decoration: none;
}
.symbol {
  width: 1.6em;
  height: 1.6em;
  fill: currentColor;
  flex: none;
}
.auth {
  max-width: 1720px;
  margin: auto;
  padding: clamp(22px, 3.7vw, 60px);
}
.mast {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: var(--accent);
}
.mast .wordmark {
  font-size: clamp(24px, 2.65vw, 42px);
}
.mast > span {
  font-size: clamp(14px, 1.7vw, 26px);
  font-weight: 640;
  letter-spacing: -0.035em;
}
.sign-grid {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: clamp(16px, 1.5vw, 25px);
  margin-top: clamp(32px, 5.5vh, 62px);
  min-height: min(76vh, 820px);
}
.auth-box,
.sign-photo {
  border-radius: 17px;
  overflow: hidden;
}
.auth-box {
  background: var(--surface);
  display: flex;
  align-items: center;
  padding: clamp(24px, 4vw, 72px);
}
.auth-form {
  width: 100%;
  color: var(--accent);
}
.auth-form h1 {
  font-size: clamp(46px, 5vw, 80px);
  margin: 0 0 0.12em;
  letter-spacing: -0.065em;
  font-weight: 740;
}
.auth-form > p {
  font-size: clamp(17px, 1.65vw, 25px);
  color: var(--muted);
  margin: 0.35rem 0 clamp(22px, 4vh, 40px);
}
.auth-form form {
  display: grid;
  gap: clamp(14px, 2.25vh, 25px);
}
.auth-form label {
  display: grid;
  gap: 0.45rem;
  font-size: clamp(15px, 1.15vw, 19px);
  font-weight: 650;
}
.auth-form input,
.auth-form select {
  width: 100%;
  height: clamp(43px, 5.5vh, 65px);
}
.auth-form button,
.auth-form .button {
  width: 100%;
  min-height: clamp(42px, 5.6vh, 61px);
}
.auth-form .secondary {
  margin-top: 1rem;
  background: transparent;
  border-color: var(--accent);
}
.auth-form .primary {
  margin-top: 0.6rem;
}
.quiet-link {
  display: block;
  text-align: center;
  margin-top: 1rem;
  font-size: 0.86rem;
  color: var(--muted);
}
.sign-photo {
  position: relative;
  min-height: 450px;
  background: #493b35;
}
.sign-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sign-photo div {
  position: absolute;
  inset: auto 0 0;
  padding: 65px 32px 27px;
  color: white;
  line-height: 1.35;
  background: linear-gradient(transparent, #231b17d9);
}
.sign-photo strong {
  display: block;
  font-size: clamp(23px, 2vw, 33px);
  letter-spacing: -0.045em;
}
.sign-photo span {
  font-size: clamp(15px, 1.25vw, 22px);
}
.passfield {
  display: flex;
  align-items: center;
  position: relative;
}
.passfield input {
  padding-right: 3rem;
}
.passfield .eye {
  position: absolute;
  right: 3px;
  width: 40px;
  min-height: 36px;
  padding: 5px;
  border: 0;
  background: transparent;
  color: var(--accent);
}
.icon {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.shell {
  display: grid;
  grid-template-columns: 242px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: var(--surface);
  border-right: 1px solid var(--line);
  padding: 25px 16px;
  align-self: start;
  position: sticky;
  top: 0;
  height: 100dvh;
  overflow: auto;
  display: flex;
  flex-direction: column;
}
.sidebar .wordmark {
  padding: 0 10px 24px;
  font-size: 25px;
}
.sidebar nav {
  display: grid;
  gap: 2px;
}
.sidebar nav a,
.navfoot a {
  font-size: 0.89rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 12px;
  border-radius: 7px;
  color: var(--muted);
  font-weight: 520;
}
.sidebar nav a[aria-current],
.sidebar nav a:hover,
.navfoot a:hover {
  color: var(--accent);
  background: var(--soft);
}
.navfoot {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: auto;
}
.mainwrap {
  min-width: 0;
}
.bar {
  min-height: 65px;
  border-bottom: 1px solid var(--line);
  padding: 10px clamp(16px, 3vw, 44px);
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  background: var(--surface);
  font-size: 0.87rem;
}
.bar .spacer {
  flex: 1;
}
.bar .place {
  font-weight: 600;
  color: var(--ink);
}
.bar a {
  text-decoration: none;
}
.avatar {
  background: var(--soft);
  color: var(--accent);
  border-radius: 50%;
  height: 35px;
  width: 35px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: bold;
}
.mobile-nav {
  display: none;
}
.work {
  padding: clamp(17px, 3vw, 50px);
  max-width: 1560px;
  margin: auto;
  overflow-wrap: anywhere;
}
.work h1 {
  color: var(--accent);
}
.work section,
.work form {
  min-width: 0;
}
.work .panel,
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: clamp(15px, 2vw, 27px);
  border-radius: 12px;
  margin-bottom: 15px;
}
.note,
.mode {
  background: var(--soft);
  color: var(--accent);
  padding: 9px 16px;
  font-size: 0.89rem;
}
.mode {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.7rem;
}
.mode a,
.mode button {
  font-size: inherit;
}
.mode button {
  min-height: 29px;
  padding: 3px 9px;
}
.heading {
  display: flex;
  gap: 1rem;
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
  margin: 8px 0 25px;
}
.heading h1 {
  margin: 0 0 0.15em;
}
.heading p {
  color: var(--muted);
  margin: 0;
}
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(125px, 1fr));
  gap: 12px;
  margin: 0 0 23px;
}
.stats a,
.stats article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 18px;
  text-decoration: none;
  color: var(--muted);
  display: grid;
  gap: 7px;
  font-size: 0.86rem;
}
.stats strong {
  font-size: clamp(24px, 2.4vw, 40px);
  color: var(--accent);
  line-height: 1.15;
  letter-spacing: -0.05em;
}
.double {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(240px, 1fr);
  gap: 16px;
}
.rowlink {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}
.rowlink:hover {
  color: var(--accent);
}
.rowlink > span {
  min-width: 0;
}
.rowlink strong,
.rowlink small {
  display: block;
}
.tag {
  border-radius: 6px;
  background: var(--tint);
  color: var(--accent);
  font-size: 0.76rem;
  padding: 0.3rem 0.55rem;
}
.gridform {
  display: grid;
  gap: 13px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  align-items: end;
}
.gridform label,
.fields label {
  display: grid;
  gap: 5px;
  font-size: 0.88rem;
}
.fields {
  display: grid;
  gap: 13px;
  max-width: 620px;
}
.checks {
  display: flex;
  gap: 8px 18px;
  flex-wrap: wrap;
}
.checks label {
  display: flex;
  gap: 6px;
  align-items: center;
}
.error {
  color: var(--danger);
  font-weight: 600;
}
.error:empty {
  display: none;
}
#notice:not(:empty) {
  position: fixed;
  bottom: 22px;
  right: 20px;
  max-width: min(480px, 92vw);
  color: var(--accentText);
  background: var(--accent);
  border-radius: 9px;
  padding: 13px 20px;
  z-index: 50;
  box-shadow: var(--shadow);
}
details > summary {
  cursor: pointer;
}
table {
  border-collapse: collapse;
}
th {
  text-align: left;
}
hr {
  border: 0;
  border-top: 1px solid var(--line);
}
.bare {
  max-width: 1000px;
  margin: auto;
  padding: 25px;
}
.scroll {
  overflow: auto;
}
.quiet {
  color: var(--muted);
  font-size: 0.88rem;
}
@media (max-width: 850px) {
  .shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    display: none;
  }
  .shell.menu .sidebar {
    display: flex;
    position: fixed;
    z-index: 8;
    width: min(300px, 82vw);
    box-shadow: 0 0 0 100vmax #0005;
  }
  .mobile-nav {
    display: inline-flex;
  }
  .work {
    padding: 20px 16px;
  }
  .bar .crumb {
    display: none;
  }
  .double {
    grid-template-columns: 1fr;
  }
  .auth {
    padding: 22px;
  }
  .sign-grid {
    grid-template-columns: 1fr 1fr;
  }
  .auth-box {
    padding: 25px;
  }
  .bar {
    min-height: 54px;
  }
}
@media (max-width: 620px) {
  .mast > span {
    font-size: 0.8rem;
  }
  .auth {
    padding: 20px 16px;
  }
  .sign-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 27px;
    min-height: 0;
  }
  .auth-box {
    padding: 30px 23px;
  }
  .sign-photo {
    min-height: 160px;
    height: 26vh;
  }
  .sign-photo div {
    padding: 45px 19px 15px;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .bar .displayname {
    display: none;
  }
  .work h1 {
    font-size: 2rem;
  }
  .work table {
    max-width: 100%;
  }
  .heading {
    align-items: start;
  }
  .gridform {
    grid-template-columns: 1fr;
  }
  .sidebar .wordmark {
    padding-bottom: 14px;
  }
  .panel {
    padding: 15px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
@media print {
  .sidebar,
  .bar,
  .mode,
  #notice {
    display: none;
  }
  .shell {
    display: block;
  }
  .work {
    padding: 0;
  }
}
@media (min-width: 1000px) {
  .auth {
    padding-top: clamp(24px, 2.9vh, 38px);
  }
  .sign-grid {
    margin-top: clamp(40px, 6.2vh, 72px);
    min-height: min(78.2vh, 860px);
  }
  .auth-form label {
    font-size: clamp(17px, 1.4vw, 23px);
  }
  .auth-form input,
  .auth-form select {
    height: clamp(48px, 6.15vh, 67px);
  }
  .auth-form button:not(.eye),
  .auth-form .button {
    font-size: clamp(17px, 1.45vw, 23px);
    min-height: clamp(48px, 6vh, 65px);
  }
  .auth-form form {
    gap: clamp(16px, 2.5vh, 26px);
  }
  .auth-form .passfield {
    margin-top: 0.45rem;
  }
  .mast > span {
    font-weight: 680;
  }
}
