﻿/* Steelon Matchbox — 审批等待页 & 政治 PK */

/* ---------- pending ---------- */

.pending-box {
  margin-top: 36px;
  border: 1px solid var(--line-strong);
  background: var(--paper-3);
  padding: 28px 30px 26px;
}

.pending-state {
  font-family: var(--serif);
  font-size: 1.35rem;
  margin-bottom: 22px;
}

.pending-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 0 0 18px;
}

.pending-meta div {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.pending-meta dt {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
}

.pending-meta dd {
  margin: 4px 0 0;
  font-size: 1.05rem;
}

.page-foot {
  margin-top: 34px;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---------- pk ---------- */

.pk-page .page-title {
  font-size: clamp(2.4rem, 5vw, 4rem);
}

.pk-panel {
  margin-top: 30px;
  border: 1px solid var(--line-strong);
  background: var(--paper-3);
  padding: 26px 28px;
}

.pk-setup-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.pk-setup-head h2 {
  font-family: var(--display);
  font-size: 1.45rem;
  margin: 0;
}

.pk-setup-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.pk-roster {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}

.pk-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  padding: 10px 14px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.pk-chip strong {
  font-size: 1rem;
}

.pk-chip span {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted);
}

.pk-chip:hover {
  border-color: var(--accent);
}

.pk-chip.is-picked {
  border-color: var(--accent);
  background: rgba(141, 97, 86, 0.1);
}

.pk-scoreline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.pk-player {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.pk-player--right {
  text-align: right;
  align-items: flex-end;
}

.pk-name {
  font-family: var(--display);
  font-size: 1.6rem;
  line-height: 1.1;
}

.pk-uid {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted);
}

.pk-progress {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--muted);
}

.pk-timer {
  font-size: 1.5rem;
  color: var(--accent);
}

.pk-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr) minmax(0, 1fr);
  gap: 28px;
  margin-top: 26px;
  align-items: start;
}

.pk-half {
  border: 1px solid var(--line);
  padding: 14px;
  background: var(--paper);
}

.pk-half--right {
  text-align: right;
}

.pk-half-tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.pk-options {
  display: grid;
  gap: 14px;
}

.pk-option {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 62px;
  border: 1px solid var(--line-strong);
  background: var(--paper-3);
  padding: 16px 18px;
  cursor: pointer;
  text-align: left;
  font-size: 1.02rem;
  transition: border-color 0.12s, background 0.12s;
}

.pk-half--right .pk-option {
  flex-direction: row-reverse;
  text-align: right;
}

.pk-option:hover:not(:disabled) {
  border-color: var(--accent);
}

.pk-option:disabled {
  cursor: default;
  opacity: 0.75;
}

.pk-option.is-chosen {
  border-color: var(--accent);
  background: rgba(141, 97, 86, 0.14);
}

.pk-option.is-right {
  border-color: var(--sage);
  background: rgba(111, 128, 105, 0.16);
}

.pk-key {
  font-family: var(--display);
  font-size: 1.1rem;
  min-width: 1.4em;
  text-align: center;
}

.pk-question {
  text-align: center;
  padding: 10px 6px;
}

.pk-type {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--accent);
}

.pk-stem {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  line-height: 1.6;
  margin: 10px 0 0;
}

.pk-flash {
  min-height: 1.6em;
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--muted);
}

.pk-status {
  margin-top: 18px;
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
}

.pk-result {
  text-align: center;
}

.pk-winner {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin: 0 0 24px;
}

.pk-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.pk-result-card {
  border: 1px solid var(--line);
  padding: 18px;
  background: var(--paper);
}

.pk-big {
  font-family: var(--display);
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 1;
  color: var(--accent);
}

.pk-result-actions {
  margin-top: 22px;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.pk-ranking {
  margin-top: 30px;
  text-align: left;
}

.pk-ranking h3 {
  font-family: var(--display);
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.pk-rank-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}

.pk-rank-no {
  font-family: var(--mono);
  color: var(--muted);
}

.pk-rank-pts {
  font-family: var(--mono);
  color: var(--muted);
}

/* ---------- dictation ---------- */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.dict-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.74rem;
}

.dict-stem {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  line-height: 1.75;
  margin: 18px 0 22px;
  min-height: 3.5em;
}

.dict-input {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: var(--paper-3);
  padding: 12px 14px;
  font-size: 1rem;
}

.dict-input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.dict-actions {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}

.dict-feedback {
  min-height: 1.6em;
  margin-top: 14px;
  font-size: 0.95rem;
  color: var(--muted);
}

.dict-feedback.is-ok {
  color: var(--sage);
}

.dict-feedback.is-bad {
  color: var(--accent);
}

@media (max-width: 900px) {
  .pk-board {
    grid-template-columns: minmax(0, 1fr);
  }

  .pk-question {
    order: -1;
  }

  .pk-half {
    text-align: left;
  }

  .pk-half--right .pk-option {
    flex-direction: row;
    text-align: left;
  }

  .pk-result-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- 默写：整页宋体 ---------- */

.dict-body,
.dict-body .page-title,
.dict-body .page-lede,
.dict-body .label,
.dict-body .btn,
.dict-body input,
.dict-body .dict-progress,
.dict-body .dict-stem,
.dict-body .dict-feedback,
.dict-body .dict-summary {
  font-family: var(--song);
}

.dict-body .dict-stem {
  font-size: 1.18rem;
  line-height: 1.95;
}

/* ---------- PK：学号入场 ---------- */

.pk-nos {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.pk-no-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--muted);
  text-transform: uppercase;
}

.pk-no {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--display);
  font-size: 2rem;
  letter-spacing: 0.3em;
  padding: 12px 16px 12px 20px;
}

.pk-no:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

@media (max-width: 640px) {
  .pk-nos {
    grid-template-columns: 1fr;
  }
}

/* ---------- PK：多点触控 ---------- */

.pk-option,
.pk-start,
.pk-panel button {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.pk-options {
  touch-action: none;
}

body.pk-playing {
  touch-action: none;
  overscroll-behavior: none;
}

/* ---------- PK：题目数量 ---------- */

.pk-count-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 18px;
  margin-top: 22px;
}

.pk-count-field {
  display: grid;
  gap: 8px;
}

.pk-count-field > span {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.pk-count {
  appearance: none;
  min-width: 132px;
  padding: 10px 36px 10px 12px;
  border: 1px solid var(--line-strong);
  background: var(--paper-3);
  color: var(--ink);
  font: inherit;
  border-radius: 0;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.pk-count-row .field-hint {
  margin: 0;
}

.pk-option .pk-key {
  min-width: 2.2em;
}

/* ---------- 补全实名 ---------- */

.realname-form {
  display: grid;
  gap: 4px;
}

.field-label {
  display: block;
  margin-bottom: 7px;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.realname-form .btn {
  justify-self: start;
  margin-top: 8px;
}

.realname-form .form-error {
  margin-top: 12px;
}

/* each side carries its own copy of the stem, so both players read next to their options */
.pk-side-stem {
  margin: 0 0 10px;
  overflow-wrap: anywhere;
  max-width: 100%;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink-soft);
  min-height: 2.8em;
}

@media (max-width: 980px) {
  /* 窄屏改为单列：每题由各自一侧的题干负责，中间占位文案隐藏 */
  .pk-question .pk-type,
  .pk-question .pk-stem { display: none; }
  .pk-question { padding: 0; }
  .pk-flash { margin: 0 0 10px; min-height: 0; }
  .pk-flash:empty { display: none; }
}

@media (min-width: 981px) {
  .pk-question .pk-stem { display: none; }
}

/* PK: per-side progress + timer inside each half header */
.pk-half-tag{display:flex;align-items:baseline;gap:8px}
.pk-half--right .pk-half-tag{justify-content:flex-end}
.pk-meta{font-size:.72rem;letter-spacing:.08em;color:var(--muted)}
.pk-half-tag .pk-timer{font-size:.9rem;color:var(--accent)}
@media (min-width: 981px) {
  .pk-board{grid-template-columns:minmax(0,1fr) minmax(0,.55fr) minmax(0,1fr)}
}
/* PK: projector-friendly sizing */
.container.pk-inner { width: min(1680px, calc(100% - 48px)); max-width: none; }
.pk-question .pk-stem { font-size: clamp(1.15rem, 1.4vw, 1.5rem); }
@media (min-width: 1500px) {
  .pk-board { gap: 36px; }
  .pk-option { min-height: 82px; padding: 20px 24px; font-size: 1.18rem; }
  .pk-options { gap: 16px; }
  .pk-half { padding: 20px; }
}




/* PK: full-screen battle layout */
@media (min-width: 900px) {
  .container.pk-inner { width: min(1880px, calc(100vw - 24px)); }
  body.pk-playing .page-title,
  body.pk-playing .page-lede { display: none; }
  body.pk-playing .pk-inner { padding-top: 14px; padding-bottom: 8px; }
  body.pk-playing main.page { padding: 10px 0 0; }
  body.pk-playing .site-footer, body.pk-playing footer { display: none; }
  body.pk-playing .pk-match {
    min-height: calc(100vh - 118px);
    display: flex;
    flex-direction: column;
  }
  body.pk-playing .pk-board {
    flex: 1;
    min-height: 0;
    align-items: stretch;
    margin-top: 10px;
  }
  body.pk-playing .pk-half {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  body.pk-playing .pk-question {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  body.pk-playing .pk-options {
    flex: 1;
    min-height: 0;
    grid-auto-rows: 1fr;
    align-content: stretch;
    gap: clamp(8px, 1.3vh, 16px);
  }
  body.pk-playing .pk-option {
    min-height: 0;
    font-size: clamp(1rem, 1.25vw, 1.45rem);
    padding: clamp(8px, 1.2vh, 20px) 22px;
  }
  body.pk-playing .pk-half { overflow: hidden; }
  body.pk-playing .pk-side-stem {
    font-size: clamp(1.05rem, 1.3vw, 1.5rem);
    line-height: 1.5;
    max-height: 34vh;
    overflow-y: auto;
    min-height: 0;
  }
  body.pk-playing .pk-question .pk-stem { display: none; }
  body.pk-playing .pk-scoreline { font-size: clamp(1rem, 1.2vw, 1.35rem); }
}










/* PK 用宋体，像考试卷 */
body.pk-body,
body.pk-body *:not(svg):not(path) {
  font-family: var(--song);
}
body.pk-body .pk-side-stem { line-height: 1.85; }
body.pk-body .pk-option { letter-spacing: 0.01em; }


/* header tool/about dropdowns (right side) */
.header-actions .nav-more--right .nav-more-btn {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
}
.nav-more--right .nav-menu {
  left: auto;
  right: 0;
  min-width: 200px;
}
@media (max-width: 760px) {
  .header-actions .nav-more {
    display: none;
  }
}

/* PK student id picker */
.pk-idgrid { display: flex; align-items: center; gap: 8px; }
.pk-prefix { font-family: var(--mono); letter-spacing: .12em; color: var(--ink-soft); }
.pk-select { font: inherit; padding: 10px 12px; border: 1px solid var(--rule); background: var(--paper); color: var(--ink); min-width: 72px; }


/* review + contact */
.review-card { padding: 18px 20px; margin: 14px 0; }
.review-head { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; color: var(--ink-soft); margin: 0 0 6px; }
.review-stem { font-size: 1.02rem; line-height: 1.7; margin: 0 0 8px; }
.review-options { margin: 0 0 10px 1.1em; line-height: 1.8; }
.review-options .is-answer { color: var(--accent); font-weight: 600; }
.review-answer { margin: 0 0 10px; }
.review-summary { margin: 0 0 6px; font-size: .84rem; color: var(--ink-soft); }
.review-verdict { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
.verdict-chip {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .05em;
  padding: 3px 9px; border-radius: 999px;
  border: 1px solid var(--rule); color: var(--ink-soft);
}
.verdict-chip.is-good { color: #3f7a4f; border-color: rgba(63, 122, 79, .45); background: rgba(63, 122, 79, .10); }
.verdict-chip.is-bad { color: #b23a2e; border-color: rgba(178, 58, 46, .45); background: rgba(178, 58, 46, .10); }
.verdict-chip.is-none { color: var(--ink-soft); border-style: dashed; }
.review-actions { display: flex; gap: 10px; }
.correction-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; margin-top: 10px; }
.correction-form textarea { flex: 1 1 320px; font: inherit; padding: 10px 12px; border: 1px solid var(--rule); background: var(--paper); }
.contact-form { display: grid; gap: 14px; padding: 24px; max-width: 640px; }
.contact-form label { display: grid; gap: 6px; font-size: .85rem; }
.contact-form input, .contact-form textarea { font: inherit; padding: 10px 12px; border: 1px solid var(--rule); background: var(--paper); width: 100%; }

/* simple data tables on public pages */
.panel .admin-table { width: 100%; border-collapse: collapse; }
.panel .admin-table th, .panel .admin-table td { padding: 12px 16px; border-bottom: 1px solid var(--rule); text-align: left; font-size: .92rem; }
.panel .admin-table th { font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; color: var(--ink-soft); }
@media (max-width: 600px) {
  .panel .admin-table th, .panel .admin-table td { padding: 9px 7px; font-size: .82rem; }
  .panel .admin-table th { font-size: .64rem; letter-spacing: .06em; }
}
.pk-select { min-width: 84px; }


/* 全站宋体（首页与顶栏除外） */
body.serif,
body.serif *:not(svg):not(path) {
  font-family: var(--song) !important;
}
body.serif .site-header,
body.serif .site-header *,
body.serif .admin-header,
body.serif .admin-header * {
  font-family: var(--display) !important;
}

/* 默写：题数选择与错题本 */
.dict-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 18px 0 14px;
}
.dict-count-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.dict-count-label select {
  padding: 8px 30px 8px 10px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  border-radius: 2px;
  font-family: inherit;
}
.dict-mistake {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.dict-mistake:first-child { border-top: 0; }
.dict-mistake-meta {
  margin: 0 0 6px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.dict-mistake-stem { margin: 0 0 8px; line-height: 1.85; }
.dict-mistake-ans { margin: 0 0 4px; color: var(--ink-soft); }
.dict-mistake-yours { margin: 0 0 10px; color: var(--muted); }
.dict-mistake-note {
  margin: 0 0 10px;
  padding: 8px 10px;
  border-left: 2px solid var(--accent);
  background: var(--paper-2);
  color: var(--ink-soft);
}
.dict-note-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
}
.dict-note-form textarea {
  flex: 1 1 320px;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.92rem;
}
.dict-note-msg { font-size: 0.8rem; color: var(--muted); align-self: center; }

/* ---------- notices ---------- */

.notice-tier {
  margin-top: 24px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.notice-list {
  margin-top: 26px;
  display: grid;
  gap: 16px;
}

.notice-card {
  border: 1px solid var(--line-strong);
  background: var(--paper-3);
  padding: 22px 26px;
}

.notice-card.is-pinned {
  box-shadow: inset 3px 0 0 var(--accent);
}

.notice-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.notice-title {
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1.45;
  margin: 0;
}

.notice-body {
  margin: 12px 0 0;
  line-height: 1.95;
  color: var(--ink-soft);
  white-space: pre-wrap;
  word-break: break-word;
}

.notice-meta {
  margin: 14px 0 0;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.notice-badge {
  display: inline-block;
  padding: 3px 8px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  white-space: nowrap;
}

.notice-badge--public {
  border-color: var(--sage);
  color: var(--sage);
}

.notice-badge--member {
  border-color: var(--gold);
  color: #8a7550;
}

.notice-badge--class,
.notice-badge--pin {
  border-color: var(--accent);
  color: var(--accent);
}

.notice-locked {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.notice-card--locked {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 15px 20px;
  border-style: dashed;
  background: transparent;
  color: var(--muted);
  font-size: 0.9rem;
}

.notice-empty {
  color: var(--muted);
}

/* home teaser */

.home-notices {
  padding: clamp(56px, 8vh, 84px) 0;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.home-notices-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.home-notices-title {
  margin: 14px 0 0;
  font-family: var(--display);
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  font-weight: 400;
  line-height: 1.35;
}

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

.home-notice-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
}

.home-notice-item:first-child {
  border-top-color: var(--line-strong);
}

.home-notice-item.is-pinned .home-notice-title::before {
  content: "置顶 · ";
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.home-notice-title {
  font-size: 1.05rem;
  line-height: 1.5;
}

.home-notice-meta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.home-notice-item:hover .home-notice-title {
  color: var(--accent);
}

/* admin notice form */

.notice-form {
  border: 1px solid var(--line);
  background: var(--paper-3);
  padding: 20px 22px;
  margin-bottom: 22px;
}

.notice-form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
}

.notice-form-row .field {
  flex: 1 1 200px;
}

.notice-form select,
.notice-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.92rem;
  border-radius: 2px;
}

.notice-form textarea {
  min-height: 110px;
  resize: vertical;
  margin-top: 8px;
}

.notice-form select:focus,
.notice-form textarea:focus {
  outline: none;
  border-color: var(--line-strong);
}

.notice-pin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 10px;
  font-size: 0.88rem;
  color: var(--ink-soft);
  white-space: nowrap;
}

.notice-form-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

@media (max-width: 700px) {
  .notice-card {
    padding: 18px 18px;
  }
  .notice-title {
    font-size: 1.15rem;
  }
  .home-notice-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}
