:root {
  --lime: #caff00;
  --ink: #111;
  --paper: #fff;
  --canvas: #f4f4ef;
  --muted: #666;
  --line: #deded6;
  --pink: #ff006e;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  color: var(--ink);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 1;
  color: #333333;
}
a {
  color: inherit;
  text-decoration: none;
}
[hidden] {
  display: none !important;
}
h1,
h2,
p {
  margin: 0;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 4px;
}
.mono,
.section-number {
  font-family: Consolas, "Microsoft YaHei", monospace;
}
.section-number {
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 27px;
  font-weight: 900;
  width: fit-content;
}
.brand small {
  display: block;
  font:
    700 12px Consolas,
    sans-serif;
  letter-spacing: 0.7px;
}
.brand-symbol {
  display: block;
  width: 52px;
  height: 52px;
  object-fit: contain;
}
.muted {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}
.button {
  --admin-button-depth: 3px;
  border-radius: 0;
  min-height: 44px;
  font-size: 14px;
  border: 2px solid var(--ink);
  background: white;
  color: var(--ink);
  padding: 12px 20px;
  font-weight: 700;
  box-shadow: 3px 3px 0 var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition:
    transform 150ms ease-out,
    box-shadow 150ms ease-out;
}


.button.primary {
  background: var(--lime);
}
.button.wide {
  width: 100%;
  justify-content: space-between;
}
.button.small {
  --admin-button-depth: 2px;
  min-height: 36px;
  font-size: 12px;
  padding: 7px 12px;
  box-shadow: 2px 2px;
}
.back-link {
  display: inline-block;
  font-size: 13px;
  margin-top: 24px;
  color: #444;
}
.topbar {
  height: 86px;
  display: flex;
  align-items: center;
  padding: 0 36px;
  border-bottom: 2px solid;
  gap: 24px;
  background: white;
}
.compact {
  font-size: 24px;
}
.compact .brand-symbol {
  width: 43px;
  height: 43px;
}
.workspace-label {
  border-left: 1px solid #ccc;
  padding-left: 24px;
  font-size: 14px;
  font-weight: 700;
}
.top-actions {
  margin-left: auto;
  display: flex;
  gap: 20px;
  align-items: center;
  font-size: 12px;
}
.text-link {
  border: 0;
  padding: 8px 0;
  background: transparent;
  color: inherit;
  font-size: 13px;
}
.text-link:hover,
.back-link:hover {
  text-decoration: underline;
}
.account-button {
  border: 2px solid var(--ink);
  min-height: 40px;
  background: var(--canvas);
  padding: 8px 12px;
  font-size: 12px;
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.workspace-layout {
  display: grid;
  grid-template-columns: 206px 1fr;
  min-height: calc(100vh - 86px);
}
.sidebar {
  border-right: 2px solid;
  background: white;
  padding: 34px 20px;
  display: flex;
  flex-direction: column;
}
.nav-caption {
  font-size: 11px;
  color: var(--muted);
  margin: 0 12px 16px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 12px;
  font-size: 14px;
  font-weight: 700;
  border: 2px solid;
}
.nav-item span:last-child {
  margin-left: auto;
}
.nav-item.active {
  background: var(--lime);
  box-shadow: 3px 3px;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 70px 10px 0;
  font-size: 12px;
}
.sidebar-bottom p {
  color: var(--muted);
  line-height: 1.9;
  margin: 12px 0 28px;
}
.sidebar-bottom .mono {
  font-size: 10px;
}
main {
  min-width: 0;
  background: var(--canvas);
  padding: 42px 48px 80px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  margin-bottom: 30px;
}
.page-heading h1 {
  font-size: 40px;
  letter-spacing: -1px;
  line-height: 1.25;
  margin-bottom: 10px;
}
.heading-dot {
  color: var(--ink);
  background: var(--lime);
  margin-left: 5px;
}
.list-panel {
  background: white;
  border: 2px solid var(--ink);
  box-shadow: 5px 5px 0;
}
.list-toolbar {
  padding: 20px 24px;
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.tabs button {
  padding: 9px 12px;
  min-height: 40px;
  border: 2px solid transparent;
  background: transparent;
  font-size: 13px;
  color: var(--muted);
}
.tabs button.selected {
  border: 2px solid var(--ink);
  background: var(--lime);
  color: var(--ink);
  font-weight: 700;
}
.search-form {
  display: flex;
  border: 1px solid #bbb;
  max-width: 260px;
}
.search-form input {
  border: 0;
  margin: 0;
  min-width: 0;
  width: 100%;
  padding: 10px;
  font-size: 13px;
}
.search-form button {
  border: 0;
  background: white;
  width: 38px;
  font-size: 20px;
}
.table-scroll {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
}
th {
  background: #f9f9f5;
  color: #777;
  font-size: 11px;
  padding: 14px 24px;
  white-space: nowrap;
  font-weight: 500;
}
td {
  padding: 20px 24px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  vertical-align: middle;
}
td:first-child {
  width: 48%;
}
.event-cell {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 240px;
}
.event-thumb {
  width: 52px;
  height: 68px;
  object-fit: cover;
  background: var(--canvas);
  border: 1px solid #ddd;
  flex: none;
}
.event-thumb.blank {
  display: grid;
  place-items: center;
  font-size: 24px;
}
.event-name {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
  display: block;
  max-width: 350px;
}
.event-meta {
  font-size: 10px;
  color: #888;
  margin-top: 6px;
}
.badge {
  font-size: 11px;
  padding: 5px 8px;
  display: inline-flex;
  white-space: nowrap;
  border: 1px solid #ccc;
  background: #f2f2ed;
}
.badge.published {
  background: #eafaaf;
  border-color: #a2bd5a;
}
.badge.draft {
  background: #fff4d6;
  border-color: #d7be82;
}
.badge.archived {
  color: #777;
}
.badge.recommendation-badge {
  margin-top: 7px;
  padding: 3px 6px;
  border-color: var(--ink);
  background: var(--lime);
  color: var(--ink);
}
.unpublished {
  font-size: 10px;
  color: #8a681d;
  margin-top: 7px;
}
.list-footer {
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  font-size: 12px;
  color: #777;
}
.list-footer > div {
  display: flex;
  gap: 12px;
}
.empty {
  text-align: center;
  padding: 65px 20px;
}
.empty > span {
  font-size: 40px;
}
.empty h2 {
  font-size: 20px;
  margin: 12px;
}
.empty p {
  font-size: 13px;
  color: #666;
}
.editor-heading {
  margin-top: 24px;
}
.editor-heading h1 {
  font-size: 32px;
}
#editor-view > .back-link {
  margin-top: 0;
}
.editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
}
.form-panel {
  background: white;
  border: 1px solid #cfcfc7;
  padding: 26px;
  margin-bottom: 24px;
}
.form-panel h2 {
  font-size: 16px;
  margin-bottom: 24px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.form-panel h2 span {
  font: 12px Consolas;
  color: #888;
}
.form-panel label,
label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 20px;
}
label:last-child {
  margin-bottom: 0;
}
label em {
  font-size: 10px;
  font-style: normal;
  color: #888;
  margin-left: 5px;
}
input,
textarea,
select {
  display: block;
  width: 100%;
  border: 1px solid #aaa;
  border-radius: 0;
  background: white;
  padding: 12px;
  margin-top: 9px;
  font-size: 14px;
  color: var(--ink);
}
textarea {
  resize: vertical;
  line-height: 1.8;
}
input::placeholder,
textarea::placeholder {
  color: #999;
  font-size: 13px;
}
fieldset {
  padding: 0;
  margin: 0;
  border: 0;
  min-width: 0;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-panel .team-limit-option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-bottom: 0;
  cursor: pointer;
}
.form-panel .recommendation-toggle {
  margin-bottom: 18px;
}
.recommendation-panel {
  border-top: 3px solid var(--ink);
}
.recommendation-status {
  font-size: 12px;
  line-height: 1.7;
  margin: 0 0 16px;
}
.team-limit-option input[type="checkbox"] {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
  accent-color: var(--lime);
}
input[name="team_max"]:disabled {
  background: var(--canvas);
  color: var(--muted);
  cursor: not-allowed;
}
.help {
  font-size: 12px;
  color: #777;
  line-height: 1.8;
  margin: 0 0 18px;
}
.poster-empty {
  min-height: 190px;
  border: 1px dashed #aaa;
  background: #f9f9f6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.poster-empty > span {
  font-size: 34px;
}
.poster-empty strong {
  font-size: 13px;
}
.poster-empty p {
  font-size: 11px;
  color: #888;
}
#poster-preview {
  width: 100%;
  height: auto;
  max-height: 380px;
  object-fit: contain;
  border: 1px solid #ddd;
}
.upload-button {
  margin-top: 16px;
  width: 100%;
  font-size: 13px;
  cursor: pointer;
}
.poster-panel .help {
  margin: 15px 0 0;
  font-size: 10px;
}
.publish-note {
  background: var(--lime);
  border: 2px solid;
}
.publish-note .mono {
  font-size: 10px;
  letter-spacing: 1px;
}
.publish-note p {
  font-size: 20px;
  font-weight: 900;
  margin: 18px 0 12px;
}
.publish-note > span:last-child {
  font-size: 12px;
  line-height: 1.8;
}
.time-row {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.time-row label {
  margin: 0;
}
.time-controls {
  display: grid;
  grid-template-columns: 125px 1fr;
  gap: 10px;
}
.time-controls input {
  min-width: 0;
}
.editor-actions {
  position: sticky;
  bottom: 0;
  margin-top: 4px;
  border: 2px solid;
  background: white;
  box-shadow: 4px 4px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  z-index: 5;
}
.editor-actions > div:first-child {
  display: flex;
  gap: 18px;
  align-items: center;
  font-size: 12px;
  color: #777;
}
.action-buttons {
  display: flex;
  gap: 14px;
}
.danger {
  color: #a32035;
}
.error {
  font-size: 13px;
  color: #a32035;
  line-height: 1.7;
  min-height: 20px;
  margin: 12px 0;
}
.boot {
  min-height: 100vh;
  display: grid;
  place-items: center;
  color: #666;
  font-size: 14px;
}
#global-message {
  padding: 14px 18px;
  border: 1px solid #a0b266;
  background: #effbcf;
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 24px;
  white-space: pre-line;
}
#global-message.error {
  border-color: #d3a1a6;
  background: #ffeded;
  color: #a32035;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
dialog {
  border: 3px solid var(--ink);
  padding: 0;
  max-width: min(750px, calc(100vw - 28px));
  width: 650px;
  max-height: 88vh;
  box-shadow: 8px 8px;
  background: white;
}
dialog::backdrop {
  background: rgba(0, 0, 0, 0.55);
}
.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 2px solid;
  background: var(--lime);
  position: sticky;
  top: 0;
}
.dialog-close {
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
}
.preview-content {
  padding: 24px;
}
.preview-content img {
  width: 100%;
  max-height: 500px;
  object-fit: contain;
}
.preview-content h2 {
  font-size: 24px;
  line-height: 1.5;
  margin: 24px 0 16px;
}
.preview-content p {
  white-space: pre-wrap;
  line-height: 1.9;
  font-size: 14px;
}
.preview-content .preview-team-size {
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 16px;
  font-weight: 700;
}
.password-content {
  padding: 28px;
}
#password-dialog {
  width: 440px;
}
details summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}
#history-list {
  padding-left: 16px;
  font-size: 11px;
  color: #666;
  line-height: 1.8;
}
#history-list li {
  margin-top: 14px;
}
@media (min-width: 1600px) {
  main {
    padding: 52px 70px;
  }
  .editor-grid {
    grid-template-columns: minmax(0, 1fr) 330px;
  }
  .list-panel,
  .editor-grid,
  .editor-actions {
    max-width: 1400px;
  }
}
@media (max-width: 1100px) {
  .sidebar {
    display: none;
  }
  .workspace-layout {
    grid-template-columns: 1fr;
  }
  main {
    padding: 32px 28px 60px;
  }
  .topbar {
    padding: 0 28px;
  }
  .editor-grid {
    grid-template-columns: minmax(0, 1fr) 240px;
  }
  .list-toolbar {
    flex-wrap: wrap;
  }
}
@media (max-width: 700px) {
  .topbar {
    height: auto;
    min-height: 76px;
    padding: 16px;
    gap: 14px;
    flex-wrap: wrap;
  }
  .workspace-label {
    border-left: 0;
    padding: 0;
    font-size: 12px;
  }
  .compact {
    font-size: 20px;
  }
  .top-actions {
    gap: 16px;
    flex-wrap: wrap;
    width: 100%;
    margin: 0;
  }
  .account-button {
    margin-left: auto;
    max-width: 200px;
  }
  .workspace-layout {
    min-height: 80vh;
  }
  main {
    padding: 28px 16px 50px;
  }
  .page-heading {
    align-items: flex-start;
    gap: 14px;
  }
  .page-heading h1 {
    font-size: 30px;
  }
  .page-heading > .button {
    font-size: 12px;
    padding: 10px 12px;
    white-space: nowrap;
  }
  .page-heading .muted {
    font-size: 12px;
  }
  .list-toolbar {
    padding: 14px;
  }
  .tabs {
    gap: 0;
  }
  .tabs button {
    padding: 8px;
    font-size: 12px;
  }
  .search-form {
    max-width: none;
    width: 100%;
  }
  th,
  td {
    padding: 14px;
  }
  .event-cell {
    min-width: 210px;
  }
  .editor-grid {
    grid-template-columns: 1fr;
  }
  .editor-side {
    display: grid;
    grid-template-columns: 1fr;
    order: -1;
  }
  .editor-side .publish-note {
    display: none;
  }
  .poster-panel {
    display: grid;
    grid-template-columns: 110px 1fr;
    column-gap: 16px;
    align-items: center;
  }
  .poster-panel h2 {
    grid-column: 1/-1;
  }
  .poster-panel #poster-preview,
  .poster-panel .poster-empty {
    grid-row: 2/4;
    width: 110px;
    max-height: 160px;
    min-height: 100px;
  }
  .poster-panel .poster-empty p {
    display: none;
  }
  .poster-panel .upload-button {
    margin-top: 0;
  }
  .form-panel {
    padding: 20px;
    margin-bottom: 18px;
  }
  .two-col {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .editor-actions {
    padding: 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .action-buttons {
    justify-content: space-between;
  }
  .action-buttons .button {
    flex: 1;
    padding: 10px;
    font-size: 13px;
  }
  .time-controls {
    grid-template-columns: 110px 1fr;
  }
  .time-controls input,
  .time-controls select {
    font-size: 12px;
    padding: 10px 8px;
  }
  .list-footer {
    padding: 16px;
  }
  .editor-heading h1 {
    font-size: 28px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* Experience post moderation uses the existing review shell. */
#community-review-view .review-compare {
  align-items: start;
}
#community-review-view .review-toolbar .tabs {
  flex-wrap: wrap;
}
#community-review-view .community-review-summary {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 52ch;
  margin: 0;
  color: #555;
  font-size: 13px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
#community-review-view .community-review-prose {
  min-width: 0;
  font-size: 14px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
#community-review-view .community-review-prose > :first-child {
  margin-top: 0;
}
#community-review-view .community-review-prose p {
  margin: 12px 0;
  white-space: normal;
}
#community-review-view .community-review-prose :is(h2, h3) {
  margin: 24px 0 12px;
  color: inherit;
  font-size: 20px;
  line-height: 1.5;
}
#community-review-view .community-review-prose h3 {
  font-size: 17px;
}
#community-review-view .community-review-prose :is(ul, ol) {
  padding-left: 24px;
}
#community-review-view .community-review-prose blockquote {
  margin: 16px 0;
  padding: 8px 12px;
  border-left: 3px solid #777;
  background: #f4f4ee;
}
#community-review-view .community-review-prose pre {
  max-width: 100%;
  overflow: auto;
  padding: 12px;
  background: #f4f4ee;
  font-size: 12px;
}
#community-review-view .community-review-prose :is(img, figure) {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 16px 0;
}
#community-review-view .community-review-prose a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
#community-review-view .community-review-images {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
#community-review-view .community-review-avatar {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: cover;
  border: 1px solid #aaa;
  margin-top: 12px;
}
#community-review-view .community-review-images figure {
  min-width: 0;
  margin: 0;
}
#community-review-view .community-review-images img {
  display: block;
  width: 100%;
  height: 160px;
  object-fit: contain;
  border: 1px solid #aaa;
  background: #f7f7f2;
}
#community-review-view :is(.community-review-images figcaption, .community-review-media-note) {
  color: #555;
  font-size: 12px;
  line-height: 1.7;
}
.table-scroll {
  position: relative;
}
@media (max-width: 700px) {
  .table-scroll {
    overflow: visible;
  }
  table,
  tbody {
    display: block;
  }
  thead {
    display: none;
  }
  tbody tr {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 18px 14px;
    border-top: 1px solid var(--line);
  }
  td {
    display: block;
    border: 0;
    padding: 0;
  }
  td:first-child {
    width: auto;
    grid-column: 1/-1;
  }
  .event-cell {
    min-width: 0;
  }
  .event-name {
    max-width: none;
  }
  td:nth-child(3)::before {
    content: "报名：";
    color: #777;
  }
  td:nth-child(4) {
    color: #777;
    font-size: 11px;
    align-self: center;
  }
  td:last-child {
    text-align: right;
  }
}

.access-denied { max-width: 640px; padding: 40px; margin: 40px auto; text-align: left; background: white; border: 2px solid #111; }
.access-denied h1 { font-size: 28px; margin: 0 0 20px; }
.access-denied p { margin-bottom: 24px; line-height: 1.7; }
.access-denied .button { margin: 8px 12px 0 0; }

.position-form { margin: 24px 0; padding-top: 24px; border-top: 2px solid #111; display: grid; gap: 16px; }
.position-form label { display: grid; gap: 8px; }
.position-form select, .position-form textarea { width: 100%; padding: 12px; border: 1px solid #aaa; font: inherit; background: white; }
.position-form textarea { min-height: 90px; }
.position-events { padding: 16px; border: 1px solid #bbb; }
.position-events .position-event-option { display: flex; align-items: center; gap: 12px; margin: 12px 0; font-weight: 400; }
.position-event-option input { width: 18px; height: 18px; flex-shrink: 0; }
.position-form [hidden] { display: none; }
.account-picker-selected { list-style: none; padding: 0; display: grid; gap: 8px; margin: 14px 0; }
.account-picker-selected li { display: flex; justify-content: space-between; gap: 16px; padding: 12px; border: 1px solid #aaa; overflow-wrap: anywhere; }
.account-picker-results { display: grid; gap: 8px; max-height: 330px; overflow: auto; }
.account-picker-result { display: grid; gap: 5px; text-align: left; background: white; padding: 12px; border: 2px solid var(--ink); cursor: pointer; font: inherit; overflow-wrap: anywhere; }
.account-picker-result:hover:enabled { background: var(--lime); border-color: var(--ink); }
.account-picker-result:disabled { opacity: 1; color: var(--muted); background: var(--canvas); border-style: dashed; cursor: default; }
.account-picker-result small { color: var(--muted); }
@media (max-width: 640px) { .admin-user-tools { flex-wrap: wrap; } .account-picker-selected li { flex-wrap: wrap; } }

/* Button refinements retained independently of the original page palette. */
:is(.button, .account-button, .tabs button, .account-picker-result) {
  --ink: #000000;
  --lime: #ccff00;
  --canvas: #f4f4f4;
  --muted: #333333;
}
@media (hover: hover) and (pointer: fine) {
.button:not(:disabled):hover {
    background: var(--lime);
    color: var(--ink);
    transform: translate(-1px, -1px);
    box-shadow: calc(var(--admin-button-depth) + 1px) calc(var(--admin-button-depth) + 1px) 0 var(--ink);
  }
}
.button:not(:disabled):active {
  transform: translate(var(--admin-button-depth), var(--admin-button-depth));
  box-shadow: none;
  transition: none;
}
.button:disabled,
.button.primary:disabled {
  border-style: dashed;
  background: var(--canvas);
  box-shadow: none;
  transform: none;
}
@media (max-width: 700px) {
  .button.small, .tabs button { min-height: 44px; }
}
