:root {
  font-family: Inter, "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  color: #233229;
  background: #f8f9f5;
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .55; cursor: wait; }
:focus-visible { outline: 2px solid #688457; outline-offset: 4px; }
header, footer {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 18px 5%; background: #fff; border-bottom: 1px solid #e5eadf;
}
header { min-height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 700; }
.brand-icon {
  flex: 0 0 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  font-size: 25px; background: #edf2e8; color: #52734d;
}
.admin-link { font-size: 13px; color: #485d45; flex-shrink: 0; }
footer {
  min-height: 64px; justify-content: center; text-align: center; border-top: 1px solid #e5eadf;
  border-bottom: 0; font-size: 12px; color: #5f6d5b;
}
.main-grid {
  max-width: 1370px; min-height: calc(100vh - 138px); margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr 1fr; border-inline: 1px solid #e5eadf;
}
.intro {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(40px, 6vw, 91px) clamp(28px, 5vw, 72px);
  background: linear-gradient(140deg, #f0f4e9, #f7f9f3); border-right: 1px solid #e3e8dd;
}
.intro-orbit {
  position: absolute; z-index: -1; right: -200px; bottom: -190px; width: 440px; height: 440px;
  border: 1px solid #d9e3d1; border-radius: 50%;
  box-shadow: 0 0 0 42px #dde6d333, 0 0 0 84px #dde6d324;
}
.event-title {
  font-size: clamp(29px, 3.4vw, 48px); line-height: 1.32; letter-spacing: -.035em;
  margin: 0 0 34px; max-width: 17em; text-wrap: pretty;
}
h2 { font-size: 22px; margin: 0 0 16px; }
.intro h2 { font-size: 19px; }
.draw-instructions { padding-left: 1.4em; margin: 0; font-size: 16px; line-height: 1.8; color: #394c39; }
.draw-instructions li + li { margin-top: 10px; }
.work-area {
  padding: clamp(40px, 6vw, 90px) clamp(24px, 5vw, 65px);
  background: #fbfcf9; display: flex; align-items: flex-start; justify-content: center;
}
.form-card, .panel {
  border: 1px solid #e1e7da; background: #fff; border-radius: 17px;
  box-shadow: 0 16px 46px #24351c07;
}
.form-card { width: 100%; max-width: 465px; padding: clamp(23px, 3vw, 37px); }
form { margin-top: 22px; }
label { display: block; margin-bottom: 17px; font-size: 14px; color: #3e513b; }
input, select {
  display: block; width: 100%; min-height: 46px; border: 1px solid #dbe3d6;
  border-radius: 8px; margin-top: 7px; padding: 10px 13px; background: #fff; color: #273729;
}
select:disabled { background: #f7f8f5; color: #667262; }
.primary, .secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 8px; min-height: 43px;
  padding: 10px 16px; font-size: 14px; font-weight: 600;
}
.primary { background: #496942; color: #fff; }
.primary:hover { background: #3e5d36; }
.secondary { border-color: #dbe4d8; background: #fff; color: #425840; }
.secondary:hover { background: #f4f7f1; }
.wide { width: 100%; }
.wide:has(span) { justify-content: space-between; }
.text-button { display: block; margin: 17px auto 0; border: 0; background: transparent; color: #486342; font-size: 14px; }
.selected { font-size: 14px; line-height: 1.6; color: #4d6148; }
.error { border-radius: 7px; padding: 12px; background: #fff0eb; color: #8b3d31; font-size: 14px; }
.result-inline { text-align: center; }
.result-inline h2 { line-height: 1.6; }
#number { display: block; font-size: 76px; color: #496942; line-height: 1.1; font-variant-numeric: tabular-nums; }
.result-inline > p { color: #4e6048; font-size: 13px; line-height: 1.65; }
.link-box {
  background: #f3f7ee; border: 1px solid #e1e9da; padding: 18px;
  margin: 21px 0; border-radius: 9px; text-align: left; font-size: 14px;
}
.link-box h3 { margin: 0 0 12px; font-size: 16px; }
.link-box dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 8px 12px; }
.link-box dd { margin: 0; }
.dashboard { max-width: 1220px; min-height: calc(100vh - 138px); margin: auto; padding: 45px 24px; }
.dashboard .event-title { font-size: clamp(25px, 3vw, 38px); max-width: none; }
.panel { padding: 24px; margin-bottom: 20px; }
#login-panel { max-width: 460px; }
.panel-head, .button-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.panel-head p { margin: 0; color: #4a6045; }
.table-wrap { overflow: auto; }
table { border-collapse: collapse; width: 100%; text-align: left; white-space: nowrap; font-size: 14px; }
th, td { padding: 12px; border-bottom: 1px solid #edf1e9; }
th { background: #f3f7ee; }
.delete-row { background: #fff4ef; color: #8b3d31; border: 1px solid #f1d8ce; border-radius: 6px; padding: 6px 10px; }
.empty { margin: 18px 0 4px; color: #596a55; }
.pill { background: #edf3e7; color: #4d6845; padding: 4px 9px; margin-left: 6px; border-radius: 20px; font-size: 12px; }
@media (max-width: 730px) {
  header { padding: 13px 18px; }
  .brand { font-size: 12px; gap: 8px; }
  .brand-icon { flex-basis: 33px; height: 33px; font-size: 21px; }
  .admin-link { font-size: 12px; }
  .main-grid { grid-template-columns: 1fr; }
  .intro { padding: 33px 24px; border-right: 0; }
  .event-title { margin-bottom: 24px; }
  .draw-instructions { font-size: 14px; }
  .work-area { padding: 25px 18px 35px; }
  .dashboard { padding-inline: 17px; }
  .panel { padding: 18px; }
}
