:root {
  --ink: #101828;
  --muted: #667085;
  --line: #d8dee8;
  --paper: #ffffff;
  --soft: #f6f8fb;
  --brand: #0bbf8a;
  --brand-dark: #06956c;
  --blue: #3757f7;
  --warning: #f97316;
  --shadow: 0 12px 32px rgba(16, 24, 40, 0.08);
  --radius: 18px;
  --font: "KaiTi", "STKaiti", "Microsoft YaHei", "PingFang SC", sans-serif;
}

* {
  box-sizing: border-box;
}

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

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(260px, 520px) auto auto auto;
  gap: 22px;
  align-items: center;
  padding: 22px 44px;
  border-bottom: 1px solid #edf0f5;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
}

body[data-page="detail"] .site-header {
  display: none;
}

.logo {
  white-space: nowrap;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 900;
  letter-spacing: 1px;
}

.logo span {
  color: #3400ff;
  margin-right: 8px;
}

.search-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  min-height: 62px;
  overflow: hidden;
  border: 3px solid var(--brand);
  border-radius: 24px;
  background: #fff;
}

.search-bar input {
  width: 100%;
  border: 0;
  outline: 0;
  padding: 0 28px;
  font-size: 26px;
  text-align: center;
}

.search-bar button {
  border: 0;
  padding: 0 24px;
  color: var(--brand-dark);
  font-size: 22px;
  font-weight: 900;
  background: transparent;
}

.grade-button,
.login-button,
.mail-button,
.primary,
.secondary,
.fullscreen-button,
.back-button {
  min-height: 46px;
  border-radius: 13px;
  font-weight: 900;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.grade-button {
  padding: 0 24px;
  color: #062c2c;
  border: 2px solid #2138ff;
  background: var(--brand);
  font-size: 26px;
}

.login-button {
  padding: 0 20px;
  color: #fff;
  border: 2px solid var(--brand);
  background: linear-gradient(135deg, #5f6bf5, #4348d8);
  font-size: 24px;
}

.mail-button {
  width: 68px;
  height: 68px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: #1687ee;
  background-position: center;
  background-size: cover;
}

.mail-button.has-image {
  color: transparent;
}

.primary {
  border: 0;
  padding: 0 24px;
  color: #fff;
  background: var(--brand);
}

.secondary,
.back-button {
  border: 1px solid var(--line);
  padding: 0 22px;
  color: var(--ink);
  background: #fff;
}

.fullscreen-button {
  border: 0;
  padding: 0 24px;
  color: #06382c;
  background: var(--brand);
  font-size: 24px;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.page {
  display: none;
}

.page.active {
  display: block;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 38px;
  max-width: 1420px;
  margin: 34px auto 80px;
  padding: 0 34px;
}

.work-card {
  display: flex;
  min-height: 486px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #edf0f5;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(16, 24, 40, 0.08);
}

.work-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, #f4f7fb, #fffdf1);
}

.cover-art {
  position: absolute;
  inset: 0;
}

.clock-art::before {
  content: "20:02:28";
  position: absolute;
  left: 10%;
  top: 38%;
  color: #293548;
  font: 700 clamp(34px, 4.6vw, 62px) "Microsoft YaHei", sans-serif;
}

.cube-art::before,
.cube-art::after {
  content: "";
  position: absolute;
  top: 34%;
  width: 64px;
  height: 92px;
  border-radius: 50%;
  background: #14d8df;
  box-shadow: inset -14px 0 0 #ff8d16;
  transform: rotate(-10deg);
}

.cube-art::before {
  left: 20%;
}

.cube-art::after {
  right: 20%;
  transform: rotate(8deg);
}

.water-art::before {
  content: "";
  position: absolute;
  left: 16%;
  bottom: 16%;
  width: 22%;
  height: 48%;
  border-radius: 14px;
  background: #ffb24a;
  box-shadow: 86px -34px 0 #98d8ff, 172px 0 0 #ffffff;
}

.chart-art::before {
  content: "";
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: 22%;
  height: 3px;
  background: #0bbf8a;
  transform: skewY(-12deg);
  box-shadow: 60px -40px 0 #fb7185, 140px -10px 0 #60a5fa, 230px -70px 0 #facc15;
}

.work-body {
  min-height: 190px;
  padding: 26px;
  background: #fff;
}

.work-body h2 {
  margin: 0 0 16px;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: 800 24px "Microsoft YaHei", sans-serif;
}

.work-body p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #536175;
  font: 17px/1.7 "Microsoft YaHei", sans-serif;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.work-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.work-meta span {
  padding: 5px 10px;
  border-radius: 999px;
  color: #095e46;
  background: #e8f8f2;
  font: 700 13px "Microsoft YaHei", sans-serif;
}

.detail-shell {
  max-width: 1420px;
  margin: 28px auto 70px;
  padding: 0 34px;
}

.detail-topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 42px;
  align-items: center;
  margin-bottom: 18px;
}

.detail-buttons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: center;
}

.detail-buttons .back-button,
.detail-buttons .fullscreen-button,
.detail-buttons .countdown {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  justify-self: center;
  min-width: 190px;
  min-height: 54px;
  padding: 0 22px;
  border-radius: 16px;
  font-size: 20px;
  font-weight: 900;
}

.detail-topbar h2 {
  margin: 0;
  color: #5555e7;
  text-align: center;
  font-size: 46px;
}

.back-button {
  margin: 0;
}

.detail-buttons .back-button {
  border: 2px solid #d7e0ec;
  color: #172033;
  background: #fff;
}

.detail-buttons .fullscreen-button {
  border: 2px solid #10c48d;
  color: #06382c;
  background: #10c48d;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 42px;
  align-items: start;
}

.detail-text-card {
  padding: 24px 24px 8px;
  background: #fff;
}

.detail-heading-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: center;
}

.detail-heading-row h1 {
  margin: 0;
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 900;
}

.detail-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-tag-row span {
  padding: 6px 12px;
  border-radius: 999px;
  color: #095e46;
  background: #e8f8f2;
  font: 700 14px "Microsoft YaHei", sans-serif;
}

.detail-intro {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--muted);
  font: 19px/1.8 "Microsoft YaHei", sans-serif;
}

.preview-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid #ece5d5;
  background: #fff8e7;
}

.preview-frame.fullscreen {
  position: fixed;
  inset: 0;
  z-index: 60;
  aspect-ratio: auto;
  border: 0;
}

.fullscreen-exit {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 8;
  display: none;
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(16, 24, 40, 0.82);
  box-shadow: var(--shadow);
  font: 900 18px var(--font);
}

.preview-frame.fullscreen .fullscreen-exit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.preview-demo {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.preview-html {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.preview-clock {
  width: min(46vw, 430px);
  aspect-ratio: 1;
  border: 8px solid #dfd2b2;
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 49%, #d92b39 49% 51%, transparent 51%),
    linear-gradient(30deg, transparent 49%, #f59e0b 49% 51%, transparent 51%),
    #fffdf8;
}

.preview-cube {
  width: min(32vw, 320px);
  height: min(24vw, 240px);
  background: linear-gradient(135deg, #15dce2, #0ba4d8);
  border-radius: 18px;
  box-shadow: 70px 35px 0 rgba(255, 143, 24, 0.76), -80px 30px 0 rgba(20, 216, 223, 0.55);
}

.preview-water {
  width: min(60vw, 660px);
  height: 340px;
  background:
    linear-gradient(to top, #ffb34d 0 48%, #9edcff 48% 100%) 15% 50% / 25% 90% no-repeat,
    linear-gradient(to top, #ffb34d 0 72%, #9edcff 72% 100%) 50% 50% / 25% 90% no-repeat,
    linear-gradient(#fff, #fff) 85% 50% / 25% 90% no-repeat;
}

.watermark {
  position: absolute;
  right: 24px;
  bottom: 18px;
  z-index: 3;
  color: rgba(16, 24, 40, 0.36);
  font-size: 28px;
  font-weight: 900;
  pointer-events: none;
}

.watermark.hidden {
  display: none;
}

.trial-lock {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(8px);
}

.trial-lock.active {
  display: grid;
}

.trial-lock > div {
  max-width: 460px;
  padding: 30px;
  text-align: center;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow);
}

.countdown {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  margin: 0;
  padding: 9px 14px;
  border-radius: 999px;
  color: #8a4d0f;
  background: #fff7e8;
  font: 900 20px var(--font);
}

.detail-buttons .countdown {
  border: 2px solid #fff1d9;
  border-radius: 16px;
}

.countdown.is-action {
  cursor: pointer;
  color: #06382c;
  border-color: #10c48d;
  background: #10c48d;
}

.poster {
  aspect-ratio: 3 / 4;
  border-radius: 0;
  background: linear-gradient(160deg, #0fa086 0 44%, #79d447 44% 100%);
  box-shadow: var(--shadow);
}

.poster.has-images {
  display: grid;
  gap: 12px;
  align-content: start;
  aspect-ratio: auto;
  min-height: 520px;
  max-height: 760px;
  overflow: auto;
  padding: 12px;
  background: #fff;
}

.poster.has-images img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.12);
}

.detail-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 30px;
}

.account-shell,
.admin-shell {
  display: grid;
  gap: 22px;
  max-width: 1320px;
  margin: 34px auto;
  padding: 0 34px;
}

.account-shell {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.account-card,
.admin-main,
.admin-menu {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.account-card {
  padding: 24px;
}

.account-card label,
.auth-form label {
  display: grid;
  gap: 8px;
  margin: 14px 0;
  color: var(--muted);
  font: 700 14px "Microsoft YaHei", sans-serif;
}

.account-card input,
.account-card textarea,
.auth-form input,
.redeem-form input {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
  font: 16px "Microsoft YaHei", sans-serif;
}

.account-card textarea {
  min-height: 120px;
  padding-top: 12px;
}

.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.mini-list {
  display: grid;
  gap: 10px;
}

.mini-item {
  display: block;
  padding: 14px;
  border-radius: 12px;
  background: var(--soft);
  color: inherit;
  font: 15px/1.6 "Microsoft YaHei", sans-serif;
}

.mini-item[href] {
  transition: transform 0.18s ease, background 0.18s ease;
}

.mini-item[href]:hover {
  background: #e8f8f2;
  transform: translateY(-1px);
}

.account-action {
  width: 100%;
  border: 0;
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease;
}

.account-action strong {
  font-size: 18px;
}

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

.account-action:hover {
  background: #e8f8f2;
  transform: translateY(-1px);
}

.admin-shell {
  grid-template-columns: 220px minmax(0, 1fr);
}

.admin-menu {
  display: grid;
  align-self: start;
  padding: 12px;
  gap: 10px;
}

.admin-menu button {
  min-height: 46px;
  border: 0;
  border-radius: 10px;
  background: var(--soft);
  font-weight: 900;
}

.admin-menu button.active {
  color: #fff;
  background: var(--brand);
}

.admin-menu .logout-menu-button {
  margin-top: 8px;
  color: #855000;
  background: #fff3dd;
}

.admin-main {
  padding: 24px;
}

.admin-panel {
  display: none;
}

.admin-panel.active {
  display: block;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.panel-head h1 {
  margin: 0;
}

.code-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px auto;
  gap: 16px;
  align-items: end;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid #eef1f5;
  border-radius: 16px;
  background: #fbfcff;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.link-button,
.fold-button {
  border: 0;
  color: var(--brand-dark);
  background: transparent;
  cursor: pointer;
  font: 900 15px "Microsoft YaHei", sans-serif;
}

.link-button:hover,
.fold-button:hover {
  text-decoration: underline;
}

.record-note {
  display: block;
  margin-top: 8px;
  color: #9a6b13;
  font: 13px "Microsoft YaHei", sans-serif;
}

.danger {
  border-color: #fecaca !important;
  color: #b42318 !important;
  background: #fff5f5 !important;
}

.danger:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.code-tools label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font: 700 14px "Microsoft YaHei", sans-serif;
}

.code-tools input {
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: 16px "Microsoft YaHei", sans-serif;
}

.code-work-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.code-work-list label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #095e46;
  background: #e8f8f2;
  font: 700 14px "Microsoft YaHei", sans-serif;
}

.code-work-list input {
  width: 16px;
  min-height: 16px;
}

.fold-button {
  align-self: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: #eef8ff;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font: 15px "Microsoft YaHei", sans-serif;
}

th,
td {
  padding: 14px;
  border-bottom: 1px solid #eef1f5;
  text-align: left;
}

th {
  color: var(--muted);
  background: var(--soft);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: start center;
  padding: 34px 20px;
}

.modal.active {
  display: grid;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.62);
}

.filter-dialog,
.auth-dialog,
.mail-edit-dialog {
  position: relative;
  z-index: 1;
  width: min(92vw, 1240px);
  border: 1px solid #d9dde5;
  background: #fff;
  box-shadow: 0 14px 34px rgba(16, 24, 40, 0.18);
}

.filter-dialog {
  margin-top: 88px;
  padding: 46px 26px 28px;
}

.filter-dialog h2 {
  position: absolute;
  left: 50%;
  top: -82px;
  margin: 0;
  transform: translateX(-50%);
  font-size: 38px;
}

.close {
  position: absolute;
  right: 22px;
  top: 18px;
  border: 0;
  color: #9aa3af;
  background: transparent;
  font-size: 34px;
}

.filter-board {
  display: grid;
  gap: 22px;
}

.filter-line {
  display: grid;
  grid-template-columns: 82px 1fr;
  align-items: center;
  gap: 14px;
  color: #6a817a;
  font-size: 24px;
}

.filter-line > div {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
}

.filter-chip {
  border: 0;
  padding: 10px 18px;
  border-radius: 12px;
  color: #5e7970;
  background: transparent;
  font-size: 24px;
}

.filter-chip.active {
  color: #004437;
  background: #e2f0e8;
  font-weight: 900;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 28px;
}

.auth-dialog {
  width: min(92vw, 608px);
  margin-top: 20px;
  padding: 54px 50px 42px;
}

.mail-edit-dialog {
  display: grid;
  gap: 16px;
  width: min(520px, 92vw);
  padding: 42px;
  border-radius: 12px;
}

.mail-edit-dialog h2 {
  margin: 0;
}

.mail-edit-dialog label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font: 700 14px "Microsoft YaHei", sans-serif;
}

.mail-edit-dialog input {
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: 16px "Microsoft YaHei", sans-serif;
}

.mail-edit-dialog small {
  color: var(--muted);
}

.work-edit-dialog {
  position: relative;
  width: min(920px, 94vw);
  max-height: calc(100vh - 68px);
  overflow: auto;
  padding: 42px;
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow);
}

.work-edit-dialog h2 {
  margin: 0 0 20px;
  font-size: 30px;
}

.work-edit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.work-edit-grid label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font: 700 14px "Microsoft YaHei", sans-serif;
}

.work-edit-grid input,
.work-edit-grid select,
.work-edit-grid textarea {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: #fff;
  font: 16px "Microsoft YaHei", sans-serif;
}

.work-edit-grid textarea {
  min-height: 110px;
  padding-top: 12px;
}

.work-edit-grid small {
  color: var(--muted);
  font-weight: 500;
}

.wide-field {
  grid-column: 1 / -1;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-bottom: 28px;
  border-bottom: 3px solid #e7ebf0;
}

.auth-tabs button {
  border: 0;
  padding: 0 0 12px;
  color: #3f9dff;
  background: transparent;
  font-size: 28px;
}

.auth-tabs button.active {
  color: var(--ink);
  border-bottom: 3px solid #3f9dff;
}

.auth-form {
  display: none;
  gap: 16px;
}

.auth-form.active {
  display: grid;
}

.auth-dialog.redeem-only .auth-tabs,
.auth-dialog.redeem-only .auth-form {
  display: none;
}

.auth-dialog.redeem-only .redeem-form {
  margin-top: 8px;
  padding-top: 0;
  border-top: 0;
}

.agree {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 10px;
  color: #8792a2;
}

.agree input {
  width: 22px;
  min-height: 22px;
}

.wide {
  width: 100%;
  min-height: 68px;
  font-size: 24px;
}

.redeem-form {
  display: grid;
  gap: 12px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.redeem-form h3,
.redeem-form p {
  margin: 0;
}

.redeem-form p {
  color: var(--muted);
  font: 14px "Microsoft YaHei", sans-serif;
}

.redeem-account {
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--brand-dark) !important;
  background: #e9fbf5;
  font-weight: 800 !important;
}

.redeem-account:empty {
  display: none;
}

.redeem-candidates {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #d8efe7;
  border-radius: 12px;
  background: #f4fffb;
}

.redeem-candidates[hidden] {
  display: none;
}

.redeem-candidates strong {
  color: var(--brand-dark);
  font: 800 14px "Microsoft YaHei", sans-serif;
}

.redeem-candidates label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0;
  padding: 10px;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.redeem-candidates input {
  width: 18px;
  min-height: 18px;
  margin-top: 3px;
  padding: 0;
}

.redeem-candidates small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.form-message {
  min-height: 22px;
  color: var(--brand-dark);
  font: 700 15px "Microsoft YaHei", sans-serif;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 100;
  max-width: 420px;
  padding: 14px 18px;
  border-radius: 12px;
  color: #fff;
  background: rgba(16, 24, 40, 0.92);
  opacity: 0;
  transform: translateY(10px);
  transition: 0.2s ease;
}

.toast.active {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .site-header {
    grid-template-columns: 1fr auto auto;
  }

  .search-bar {
    grid-column: 1 / -1;
    order: 3;
  }

  .mail-button {
    display: none;
  }

  .works-grid,
  .detail-layout,
  .account-shell {
    grid-template-columns: 1fr 1fr;
  }

  .detail-topbar {
    grid-template-columns: 1fr 1fr;
    gap: 22px;
  }

  .detail-layout {
    gap: 22px;
  }
}

@media (max-width: 740px) {
  .site-header {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px;
  }

  .logo {
    text-align: center;
  }

  .search-bar input,
  .search-bar button,
  .grade-button,
  .login-button {
    font-size: 20px;
  }

  .works-grid,
  .account-shell,
  .admin-shell {
    grid-template-columns: 1fr;
    padding: 0 16px;
  }

  .detail-shell {
    margin-top: 18px;
    padding: 0 16px;
  }

  .detail-topbar,
  .detail-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .detail-buttons,
  .panel-head {
    align-items: stretch;
    flex-direction: column;
  }

  .detail-topbar h2 {
    font-size: 34px;
  }

  .filter-line {
    grid-template-columns: 1fr;
    font-size: 20px;
  }

  .filter-chip {
    font-size: 20px;
  }

  .auth-dialog {
    padding: 48px 24px 28px;
  }
}
