:root {
  --ink: #172c2a;
  --green: #164e46;
  --teal: #25756a;
  --dim: #536965;
  --line: #d6dfd9;
  --paper: #f5f6f0;
  --white: #fffefa;
  --mint: #e1eee2;
  --warm: #f1b18c;
  font-family:
    "DM Sans", Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea,
select {
  font: inherit;
}
input:not([type="radio"]),
select,
textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid #bccbc3;
  border-radius: 7px;
  background: white;
  color: var(--ink);
  margin-top: 0.35rem;
  min-width: 0;
}
input::placeholder,
textarea::placeholder {
  color: #73837d;
}
textarea {
  resize: vertical;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid #c87942;
  outline-offset: 4px;
}
button,
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.55rem;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
  font-weight: 650;
  line-height: 1.35;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.primary,
.secondary {
  padding: 0.72rem 1.15rem;
}
.primary {
  background: var(--green);
  color: white;
}
.primary:hover {
  background: #0e3a34;
}
.secondary {
  background: var(--white);
  border: 1px solid #b9c9c0;
  color: var(--green);
}
.secondary:hover {
  background: var(--mint);
}
.text-button,
.link {
  color: var(--green);
  font-weight: 650;
  background: transparent;
  padding: 0;
}
.link:hover,
.text-button:hover {
  text-decoration: underline;
}
.wide {
  width: 100%;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: clamp(1.9rem, 3.3vw, 2.8rem);
  line-height: 1.22;
  letter-spacing: -0.045em;
}
h2 {
  font-size: 1.18rem;
  line-height: 1.4;
}
h3 {
  font-size: 1.05rem;
}
.muted,
.meta,
small,
.list-row p,
.person-row p,
.member-row p {
  color: var(--dim);
}
small {
  font-size: 0.79rem;
}
.eyebrow {
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  color: var(--dim);
  margin: 0 0 0.6rem;
}
.top {
  background: #fffefa;
  border-bottom: 1px solid var(--line);
}
.top-inner {
  display: flex;
  gap: clamp(1.4rem, 4.3vw, 4.4rem);
  align-items: center;
  min-height: 72px;
  max-width: 1320px;
  padding: 0 clamp(1rem, 5vw, 4.5rem);
  margin: auto;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.68rem;
  font-weight: 750;
  font-size: 1.14rem;
  white-space: nowrap;
  color: var(--green);
}
.mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 37px;
  height: 37px;
  border-radius: 10px;
  background: var(--green);
}
.mark i {
  width: 3px;
  background: #dcedd9;
  border-radius: 4px;
  height: 10px;
}
.mark i:nth-child(2) {
  height: 18px;
}
.mark i:nth-child(3) {
  height: 25px;
}
.mark i:nth-child(4) {
  height: 15px;
}
.top nav {
  align-self: stretch;
  display: flex;
  align-items: stretch;
  gap: 2rem;
}
.top nav a {
  display: flex;
  align-items: center;
  border-bottom: 3px solid transparent;
  padding-top: 3px;
  white-space: nowrap;
  font-size: 0.9rem;
  color: var(--dim);
}
.top nav a[aria-current] {
  font-weight: 700;
  border-color: var(--green);
  color: var(--green);
}
.account {
  margin-left: auto;
  position: relative;
}
.account summary {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  cursor: pointer;
  font-size: 0.84rem;
}
.account summary::-webkit-details-marker {
  display: none;
}
.avatar {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: #e5ddc7;
  color: #584629;
  border-radius: 50%;
  font-weight: 700;
}
.avatar.pale {
  background: var(--mint);
  color: var(--green);
  width: 38px;
  height: 38px;
}
.pop {
  position: absolute;
  z-index: 5;
  right: 0;
  top: calc(100% + 0.6rem);
  min-width: 205px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  box-shadow: 0 8px 32px #24372e18;
  padding: 0.65rem;
}
.pop > * {
  display: block;
  padding: 0.4rem;
}
.pop button {
  background: none;
  padding: 0;
  font-weight: 400;
}
.workspace {
  max-width: 1240px;
  padding: clamp(1.6rem, 4vw, 3.7rem) clamp(1rem, 5.5vw, 4.4rem) 4rem;
  margin: auto;
}
.heading,
.section-head,
.actions,
.choice-row,
.person-link,
.file-head,
.member-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.heading,
.section-head,
.file-head,
.member-row {
  justify-content: space-between;
}
.heading {
  margin-bottom: 1.75rem;
}
.heading h1,
.prose,
.list-row strong,
.asset,
.member-row strong {
  overflow-wrap: anywhere;
}
.meta,
.heading h1 + p {
  margin-top: 0.7rem;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid #b9cec1;
  background: #e6efe6;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 2rem;
}
.metrics > div {
  padding: 1.15rem 1.55rem;
  background: linear-gradient(115deg, #e0ecdf, #eaf1e8);
  color: var(--green);
}
.metrics > div + div {
  border-left: 1px solid #c6d8ca;
}
.metrics span {
  display: block;
  font-size: 0.82rem;
  font-weight: 650;
}
.metrics strong {
  display: inline-block;
  font:
    550 2.35rem/1.28 "DM Sans",
    system-ui,
    sans-serif;
  letter-spacing: -0.055em;
  margin-right: 0.45rem;
  font-variant-numeric: tabular-nums;
}
.metrics small {
  color: #4e675b;
}
.card,
.single-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  min-width: 0;
}
.inset,
.section-head,
.filters {
  padding: 1.4rem 1.55rem;
}
.section-head {
  padding-bottom: 0.5rem;
}
.section-head.bare {
  padding: 0;
  margin-bottom: 1rem;
}
.section-head > span {
  font-size: 0.82rem;
}
.filters {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding-top: 0.8rem;
}
.filters .search {
  position: relative;
  min-width: 190px;
  flex: 1 1 250px;
}
.search input:not([type="radio"]) {
  padding-left: 2.25rem;
}
.glass {
  position: absolute;
  left: 0.83rem;
  top: 50%;
  transform: translateY(-60%);
  width: 0.8rem;
  height: 0.8rem;
  border: 1.6px solid var(--dim);
  border-radius: 50%;
}
.glass:after {
  content: "";
  width: 0.42rem;
  height: 1.6px;
  background: var(--dim);
  position: absolute;
  right: -0.33rem;
  bottom: -0.14rem;
  transform: rotate(45deg);
}
.filters input:not([type="radio"]) {
  margin: 0;
  font-size: 0.88rem;
}
.date-range {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.date-range label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--dim);
}
.date-range input:not([type="radio"]) {
  width: 8.8rem;
  max-width: 100%;
  padding: 0.63rem 0.5rem;
}
.filters button {
  font-size: 0.88rem;
}
.list-head,
.list-row {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr) 7rem;
  gap: 1.15rem;
  align-items: center;
  padding: 1rem 1.55rem;
}
.list-head {
  background: #f2f5ee;
  border-block: 1px solid var(--line);
  font-size: 0.76rem;
  color: var(--dim);
  padding-block: 0.6rem;
}
.list-row + .list-row,
.person-row + .person-row,
.history-row + .history-row,
.member-row + .member-row {
  border-top: 1px solid var(--line);
}
.list-row p,
.person-row p,
.member-row p {
  font-size: 0.83rem;
  margin-top: 0.25rem;
}
.list-row:hover,
.person-row:hover,
.history-row:hover {
  background: #f1f5ed;
}
.list-row time,
.history-row time {
  font-size: 0.82rem;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
}
.empty {
  text-align: center;
  padding: 2.8rem 1rem 3.2rem;
  border-top: 1px solid var(--line);
}
.empty p {
  color: var(--dim);
  margin: 0.45rem 0 0.85rem;
}
.archive-icon {
  display: block;
  position: relative;
  width: 43px;
  height: 31px;
  border: 2px solid #95b39e;
  border-radius: 4px;
  margin: 0 auto 1.1rem;
  background: #e7eee3;
}
.archive-icon:before {
  content: "";
  position: absolute;
  inset: -6px -4px auto;
  height: 8px;
  border: 2px solid #95b39e;
  border-radius: 3px;
  background: #e7eee3;
}
.archive-icon:after {
  content: "";
  display: block;
  margin: 10px auto;
  width: 12px;
  border-top: 2px solid #719681;
}
.pager {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  padding: 1rem;
  color: var(--green);
  font-size: 0.85rem;
}
.stack {
  display: grid;
  gap: 1.15rem;
  align-content: start;
}
.stack > button,
.stack > .button {
  justify-self: start;
}
.stack > .wide {
  justify-self: stretch;
}
.grid-form,
.columns {
  display: grid;
  gap: 1.15rem;
}
.grid-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.columns {
  grid-template-columns: minmax(0, 2fr) minmax(230px, 1fr);
  align-items: start;
}
.editor {
  max-width: 900px;
  margin: auto;
}
.narrow {
  max-width: 575px;
  margin: auto;
}
.narrow h1,
.single-card h1 {
  margin-bottom: 1.4rem;
}
.back {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--dim);
  font-size: 0.89rem;
}
.back:hover {
  color: var(--green);
}
label {
  font-weight: 550;
  font-size: 0.91rem;
}
.choice-row {
  margin: 1rem 0;
}
.choice-row label {
  cursor: pointer;
}
.choice-row input {
  accent-color: var(--green);
}
em {
  font-style: normal;
  color: #976347;
}
.file-fields label {
  background: #f5f7f0;
  border: 1px dashed #aec1b4;
  border-radius: 9px;
  display: block;
  padding: 1rem;
}
.file-fields input[type="file"] {
  font-size: 0.81rem;
  border: 0;
  padding: 0.3rem 0;
  background: transparent;
}
.file-fields small {
  display: block;
  margin-top: 0.5rem;
  font-weight: 400;
}
.file-fields input::file-selector-button {
  padding: 0.4rem 0.65rem;
  margin-right: 0.5rem;
  background: white;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.disclosure {
  border-top: 1px solid var(--line);
  padding-top: 0.85rem;
  margin-top: 0.9rem;
}
.disclosure summary,
.version summary {
  font-weight: 600;
  color: var(--green);
  cursor: pointer;
}
.disclosure[open] > summary {
  margin-bottom: 0.9rem;
}
.version {
  padding: 0.55rem 0;
}
.prose {
  white-space: pre-wrap;
  line-height: 1.9;
  font-size: 0.97rem;
}
.prose:not(:first-child),
.inset h2 + .muted {
  margin-top: 0.75rem;
}
.tag {
  display: inline-flex;
  white-space: nowrap;
  background: var(--mint);
  color: var(--green);
  border-radius: 20px;
  padding: 0.2rem 0.65rem;
  font-size: 0.75rem;
}
.asset,
.member-row,
.history-row,
.person-row {
  padding: 1rem 0;
}
.file-head strong,
.history-row strong,
.file-head small {
  display: block;
}
.asset + .asset {
  border-top: 1px solid var(--line);
}
audio {
  width: 100%;
  margin: 0.5rem 0;
}
.asset .actions {
  font-size: 0.86rem;
  margin-top: 0.65rem;
}
.person-link {
  margin: 1.2rem 0;
}
.person-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding-inline: 1.55rem;
}
.person-row > span:last-child {
  margin-left: auto;
  font-size: 0.8rem;
  color: var(--dim);
}
.history-row {
  display: block;
}
.history-row strong {
  display: inline;
  margin: 0 0.65rem;
}
.member-row {
  gap: 0.5rem;
}
.member-row p {
  font-size: 0.8rem;
}
dl {
  border-top: 1px solid var(--line);
  padding-top: 0.6rem;
}
dt {
  font-size: 0.8rem;
  color: var(--dim);
  margin-top: 0.6rem;
}
dd {
  margin: 0.1rem 0 0.75rem;
  overflow-wrap: anywhere;
}
.notice,
.upload-status,
.error,
.errorlist {
  padding: 0.8rem 1rem;
  border-radius: 7px;
}
.notice,
.upload-status {
  background: var(--mint);
  color: var(--green);
}
.notice {
  margin-bottom: 1rem;
}
.notice p,
.upload-status p {
  margin-bottom: 0.4rem;
}
.error,
.errorlist {
  color: #843d2a;
  background: #fff0e8;
}
.errorlist {
  list-style: none;
  margin: 0.25rem 0;
}
.helptext {
  font-size: 0.8rem;
  color: var(--dim);
}
progress {
  width: 100%;
  accent-color: var(--green);
}
[hidden] {
  display: none !important;
}
.auth-shell {
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: clamp(1rem, 4.2vw, 4rem);
  background: #e9eee5;
}
.login-frame {
  width: min(1060px, 100%);
  min-height: 565px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 15px 65px #234b3514;
  border: 1px solid #c6d2c6;
}
.login-art {
  background: #153e38;
  color: #f2f4e5;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.6rem;
  isolation: isolate;
}
.brand.light {
  color: #f2f4e5;
}
.light .mark {
  background: #e3edda;
}
.light .mark i {
  background: #234d41;
}
.record-art {
  position: absolute;
  inset: 13% -24% 16% 13%;
  z-index: -1;
}
.disc {
  position: absolute;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(
      circle,
      #173f38 0 1.5%,
      #e9af83 1.7% 15.3%,
      #10352e 15.5% 17%,
      transparent 17.2%
    ),
    repeating-radial-gradient(
      circle,
      #306451 0 1px,
      #245744 2px 4px,
      #326751 5px 6px
    );
  box-shadow: -15px 17px 45px #082e2966;
}
.needle {
  position: absolute;
  right: 30%;
  top: -28%;
  height: 72%;
  width: 7px;
  border-radius: 6px;
  background: #c3cbb1;
  transform: rotate(25deg);
  box-shadow: 4px 5px 4px #123b30;
}
.needle:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: -4px;
  width: 15px;
  height: 40px;
  border-radius: 4px;
  background: #dedec6;
}
.art-title {
  background: linear-gradient(0deg, #153e38 20%, transparent);
  padding-top: 2rem;
}
.art-title h2 {
  font-size: 1.55rem;
}
.art-title p {
  font-size: 0.9rem;
  color: #c5d8c8;
  margin-top: 0.35rem;
}
.login-panel {
  display: grid;
  align-items: center;
  padding: clamp(1.6rem, 4vw, 3.4rem);
}
.login-card h1 {
  font-size: 2.05rem;
}
.login-card > .muted {
  margin: 0.5rem 0 1.8rem;
}
.auth-note {
  font-size: 0.81rem;
  color: var(--dim);
  margin-top: 1.6rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}
.single-card {
  max-width: 470px;
  width: 100%;
  padding: 2rem;
  margin: auto;
}
.single-card form {
  margin-top: 1rem;
}
.sr-only,
.skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(100%);
  white-space: nowrap;
}
.skip:focus {
  display: block;
  padding: 0.25rem 1rem;
  background: white;
}
@media (max-width: 800px) {
  .account-label {
    display: none;
  }
  .columns {
    grid-template-columns: 1fr;
  }
  .top-inner {
    gap: 1.25rem;
  }
  .login-frame {
    min-height: 470px;
  }
  .login-art {
    padding: 1.6rem;
  }
  .top nav {
    gap: 1.15rem;
  }
  .filters {
    align-items: stretch;
  }
  .metrics > div {
    padding: 0.85rem 1rem;
  }
}
@media (max-width: 580px) {
  .top-inner {
    flex-wrap: wrap;
    gap: 0.1rem 0.8rem;
    padding-top: 0.6rem;
  }
  .top nav {
    order: 3;
    width: 100%;
    height: 43px;
    gap: 1.5rem;
  }
  .account {
    order: 2;
  }
  .brand {
    font-size: 1rem;
  }
  .mark {
    width: 32px;
    height: 32px;
  }
  .workspace {
    padding-top: 1.5rem;
  }
  .heading {
    gap: 0.6rem;
    align-items: flex-end;
  }
  .heading .button {
    font-size: 0.83rem;
    padding: 0.6rem 0.7rem;
    white-space: nowrap;
  }
  .metrics {
    margin-bottom: 1rem;
  }
  .metrics > div {
    padding: 0.7rem;
  }
  .metrics strong {
    font-size: 1.65rem;
  }
  .inset,
  .section-head,
  .filters,
  .list-row,
  .person-row {
    padding: 1rem;
  }
  .section-head.bare {
    padding: 0;
  }
  .filters .search {
    flex-basis: 100%;
  }
  .date-range {
    flex: 1;
  }
  .date-range label {
    gap: 0.15rem;
  }
  .date-range input:not([type="radio"]) {
    width: 7.3rem;
    font-size: 0.75rem;
  }
  .filters {
    gap: 0.5rem;
  }
  .list-row {
    display: block;
  }
  .list-row > div:nth-child(2) {
    margin: 0.5rem 0;
    font-size: 0.85rem;
  }
  .list-row > div:nth-child(2) p {
    display: inline;
    margin-left: 0.4rem;
  }
  .list-head {
    display: none;
  }
  .grid-form {
    grid-template-columns: 1fr;
  }
  .login-frame {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  .login-art {
    min-height: 140px;
  }
  .record-art {
    inset: -65% -18% auto 54%;
    height: 200%;
  }
  .art-title {
    padding: 1rem 0 0;
    background: transparent;
  }
  .art-title h2 {
    font-size: 1.1rem;
  }
  .art-title p {
    display: none;
  }
  .login-panel {
    padding: 1.6rem;
  }
  .auth-shell {
    padding: 0.85rem;
  }
  .login-card h1 {
    font-size: 1.65rem;
  }
  .empty {
    padding: 1.8rem 0.8rem;
  }
}
