:root {
  color-scheme: light;
  --ink: #172245;
  --muted: #53607c;
  --blue: #344594;
  --blue-hover: #273675;
  --line: #d7dff0;
  --tint: #edf1fc;
  --paper: #f6f8fd;
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
}

a {
  color: var(--blue);
  text-underline-offset: .22em;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid #6679d5;
  outline-offset: 3px;
}

h1,
h2,
p {
  margin: 0;
}

h1,
h2 {
  line-height: 1.22;
}

.entry-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: min(920px, calc(100% - 48px));
  min-height: 550px;
  margin: clamp(32px, 8vh, 96px) auto 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 20px 60px #26396d14;
}

.entry-brand {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  isolation: isolate;
  overflow: hidden;
  padding: 46px 48px 64px;
  color: #fff;
  background: linear-gradient(145deg, #21336f 0%, #374693 60%, #5753a4 100%);
}

.brand-copy {
  position: relative;
  z-index: 1;
}

.brand-copy h1 {
  font-size: clamp(2.65rem, 6.2vw, 5.3rem);
  font-weight: 740;
  letter-spacing: -.055em;
  line-height: 1.04;
}

.brand-copy p {
  margin-top: 1.2rem;
  color: #e7ebff;
}

.brand-mark,
.brand-trail {
  display: flex;
  align-items: center;
  pointer-events: none;
}

.brand-mark {
  gap: 6px;
  height: 30px;
}

.brand-mark i {
  display: block;
  width: 13px;
  height: 13px;
  border: 1px solid #dfe6ff;
  border-radius: 3px;
  transform: rotate(45deg);
}

.brand-mark i:first-child {
  width: 8px;
  height: 8px;
}

.brand-mark i:last-child {
  width: 19px;
  height: 19px;
  background: #dfe6ff;
}

.brand-trail {
  position: absolute;
  z-index: -1;
  top: 20%;
  right: -24%;
  gap: 12px;
  height: 180px;
  transform: rotate(-38deg);
}

.brand-trail i {
  display: block;
  width: 75px;
  height: 75px;
  border: 1px solid #ebebff45;
  border-radius: 12px;
  transform: rotate(45deg);
}

.brand-trail i:nth-child(2) {
  width: 106px;
  height: 106px;
  background: #e4e1ff0b;
}

.brand-trail i:nth-child(3) {
  width: 150px;
  height: 150px;
  background: #e4e1ff10;
}

.brand-trail i:nth-child(4) {
  width: 170px;
  height: 170px;
  background: #e4e1ff14;
}

.entry-panel {
  align-self: center;
  min-width: 0;
  padding: 36px clamp(28px, 5.4vw, 68px) 42px;
}

.entry-panel h2,
.standalone h1 {
  font-size: clamp(1.65rem, 3.4vw, 2rem);
  font-weight: 720;
  letter-spacing: -.038em;
}

.intro {
  margin: 8px 0 22px;
  color: var(--muted);
}

.entry-switch {
  display: inline-flex;
  gap: 3px;
  margin-bottom: 25px;
  padding: 4px;
  border-radius: 12px;
  background: var(--tint);
}

.entry-switch a {
  display: grid;
  min-width: 72px;
  min-height: 44px;
  place-items: center;
  border-radius: 8px;
  color: var(--muted);
  font-size: .94rem;
  font-weight: 650;
  text-decoration: none;
}

.entry-switch a[aria-current] {
  color: var(--blue);
  background: #fff;
  box-shadow: 0 1px 6px #28417d18;
}

.field-stack {
  display: grid;
  gap: 15px;
}

.field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.field label {
  font-size: .93rem;
  font-weight: 660;
}

.field input {
  width: 100%;
  min-height: 46px;
  padding: 9px 11px;
  border: 1px solid #bfcbe5;
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
}

.field small {
  color: var(--muted);
  font-size: .82rem;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: .95rem;
  font-weight: 680;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
}

.primary {
  color: #fff;
  background: var(--blue);
}

.primary:hover {
  background: var(--blue-hover);
}

.field-stack > .button {
  margin-top: 2px;
}

.text-button {
  display: inline-block;
  min-height: 44px;
  padding: 5px 0;
  border: 0;
  color: var(--blue);
  background: transparent;
  font-size: .94rem;
  text-decoration: underline;
  text-underline-offset: .22em;
}

.entry-footer {
  display: flex;
  justify-content: center;
  margin: 11px 0 20px;
}

.entry-footer a {
  display: grid;
  min-height: 44px;
  place-items: center;
  padding-inline: 8px;
  color: var(--muted);
  font-size: .88rem;
}

.notice {
  margin-bottom: 16px;
  padding: 10px 13px;
  border: 1px solid;
  border-radius: 8px;
  font-size: .94rem;
}

.notice-error {
  border-color: #e7bbc6;
  color: #852b40;
  background: #fff2f4;
}

.notice-success {
  border-color: #b1d4c9;
  color: #225b49;
  background: #edf8f3;
}

.account {
  display: grid;
  gap: 7px;
  margin: 0 0 24px;
  padding: 14px;
  border-radius: 8px;
  background: var(--tint);
}

.account div {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 4px;
}

.account dt {
  color: var(--muted);
}

.account dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.entry-logout {
  margin-top: 8px;
}

.wide {
  width: min(960px, calc(100% - 44px));
  margin-inline: auto;
}

.topbar {
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.topbar-inner {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 3px;
}

.topbar-inner a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font-size: .94rem;
}

.topbar-inner .site-name {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 710;
  text-decoration: none;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2.5vw, 24px);
}

.card {
  padding: clamp(18px, 4vw, 30px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.standalone {
  width: min(425px, calc(100% - 40px));
  margin: clamp(30px, 10vh, 95px) auto 28px;
}

.standalone h1 {
  margin-bottom: 23px;
}

.dashboard {
  display: grid;
  gap: 20px;
  padding-block: 40px 60px;
}

.dashboard > h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  letter-spacing: -.045em;
}

.dashboard > .notice {
  margin-bottom: 0;
}

.queue h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 1.22rem;
}

.count {
  display: inline-grid;
  min-width: 25px;
  min-height: 25px;
  place-items: center;
  padding: 2px 6px;
  border-radius: 15px;
  color: #364580;
  background: #e9edfd;
  font-size: .82rem;
}

.count-approved {
  color: #28594d;
  background: #e3f3ed;
}

.empty {
  padding-top: 6px;
  color: var(--muted);
}

.members {
  margin: 0;
  padding: 0;
  list-style: none;
}

.member-row {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(160px, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding-block: 13px;
  border-top: 1px solid var(--line);
}

.member-row:last-child {
  padding-bottom: 1px;
}

.member-identity {
  display: grid;
  gap: 2px;
  overflow-wrap: anywhere;
}

.member-identity span,
.member-date span {
  color: var(--muted);
}

.member-identity span,
.member-date {
  font-size: .92rem;
}

.member-date {
  display: grid;
  gap: 2px;
  font-variant-numeric: tabular-nums;
}

.settings summary {
  width: fit-content;
  padding-block: 5px;
  color: var(--blue);
  font-weight: 650;
  cursor: pointer;
}

.settings .field-stack {
  max-width: 350px;
  margin-top: 15px;
}

.reader {
  display: flex;
  height: 100vh;
  height: 100dvh;
  flex-direction: column;
  overflow: hidden;
}

.reader-content {
  display: flex;
  min-height: 0;
  flex: 1;
}

.reader-content iframe {
  display: block;
  width: 100%;
  flex: 1;
  border: 0;
}

@media (max-width: 700px) {
  .entry-layout {
    grid-template-columns: 1fr;
    width: min(485px, calc(100% - 32px));
    min-height: 0;
    margin-top: 20px;
    border-radius: 19px;
  }

  .entry-brand {
    gap: 14px;
    padding: 22px 24px 26px;
  }

  .brand-copy h1 {
    font-size: clamp(2.05rem, 7.6vw, 3.5rem);
  }

  .brand-copy h1 br {
    display: none;
  }

  .brand-copy p {
    margin-top: 8px;
    font-size: .91rem;
  }

  .brand-trail {
    top: 9%;
    right: -215px;
    transform: rotate(-30deg);
  }

  .entry-panel {
    padding: 24px 24px 28px;
  }

  .entry-switch {
    margin-bottom: 19px;
  }

  .dashboard {
    padding-block: 28px 40px;
  }

  .member-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .member-identity {
    grid-column: 1;
  }

  .member-date {
    grid-column: 1;
    grid-row: 2;
  }

  .member-row > form {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
}

@media (max-width: 370px) {
  .wide {
    width: calc(100% - 24px);
  }

  .entry-panel {
    padding-inline: 18px;
  }

  .member-row > form .button {
    padding-inline: 9px;
  }
}
