.attv2-admin { color: #18354d; }
.attv2-admin [hidden] { display: none !important; }
.attv2-admin h2 { margin: 24px 0 10px; }
.attv2-admin h3 { grid-column: 1 / -1; margin: 0; }
.attv2-admin p { color: #60758a; line-height: 1.6; }
.attv2-admin button, .attv2-admin input, .attv2-admin select { font: inherit; }
.attv2-admin button { border: 1px solid #bdd2e3; border-radius: 6px; background: #fff; color: #07568f; padding: 8px 12px; cursor: pointer; }
.attv2-admin button:disabled { opacity: .55; cursor: wait; }
.attv2-form { background: #fff; padding: 20px; margin: 16px 0; border: 1px solid #dce7ef; border-radius: 10px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.attv2-form label { display: grid; gap: 7px; }
.attv2-form input, .attv2-form select, .attv2-table select { border: 1px solid #bdd2e3; border-radius: 6px; padding: 9px; min-width: 0; background: #fff; }
.attv2-table { background: #fff; overflow-x: auto; border: 1px solid #dce7ef; border-radius: 9px; margin: 14px 0; }
.attv2-table table { width: 100%; min-width: 680px; border-collapse: collapse; }
.attv2-table th, .attv2-table td { padding: 14px; text-align: left; border-bottom: 1px solid #e5edf3; vertical-align: top; }
.attv2-table th { background: #f3f8fc; }
.attv2-table small { display: block; margin-top: 6px; color: #64798a; }
.attv2-table select { max-width: 250px; margin-right: 8px; }
.attv2-message { min-height: 1.5em; }
.attv2-message.is-error { color: #ae2525; background: #fff0f0; padding: 12px; border-radius: 6px; }
.attv2-import { margin: 24px 0; background: #fff; padding: 18px; border: 1px solid #dce7ef; border-radius: 9px; }
.attv2-import summary { cursor: pointer; font-weight: 700; }
.attv2-import label { display: inline-flex; gap: 10px; margin: 10px; }
@media (max-width: 800px) { .attv2-form { grid-template-columns: 1fr; } .attv2-import label { display: grid; margin: 10px 0; } }
.attv2-counselor { margin: 0; background: #f2f6fa; font: 15px/1.6 "Microsoft YaHei", sans-serif; }
.attv2-header { background: #0b416e; color: #fff; padding: 18px 28px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.attv2-header a { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.attv2-header img { width: 36px; height: 36px; }
.attv2-header button { padding: 8px 12px; border-radius: 5px; border: 1px solid #8daec9; background: transparent; color: #fff; cursor: pointer; }
.attv2-workspace { max-width: 1360px; margin: auto; padding: 25px; }
.attv2-workspace [hidden] { display: none !important; }
.attv2-workspace input, .attv2-workspace select { font: inherit; }
.attv2-stats { display: grid; grid-template-columns: repeat(6,1fr); gap: 12px; margin: 24px 0; }
.attv2-stats article { background: #fff; border: 1px solid #dce7ef; border-radius: 8px; padding: 18px; }
.attv2-stats strong { display: block; font-size: 28px; color: #09558c; }
.attv2-tabs, .attv2-filters { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 20px 0; }
.attv2-workspace summary { cursor: pointer; font-weight: 700; }
@media(max-width:800px) { .attv2-stats { grid-template-columns: repeat(2,1fr); } .attv2-header { gap: 12px; padding: 14px; } .attv2-workspace { padding: 15px; } }
.attv2-rollcall { margin: 16px 0; padding: 18px; background: #fff; border: 1px solid #dce5ef; border-radius: 12px; }
.attv2-rollcall select { max-width: 100%; padding: 8px; }
.attv2-rollcall-list { display: grid; gap: 8px; margin: 16px 0; }
.attv2-rollcall-row { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; padding:12px; border:1px solid #dde6ef; border-radius:8px; }
.attv2-rollcall-row small { display:block; color:#64748b; }
.attv2-rollcall-row.is-locked { background:#f0f2f5; color:#64748b; }
.attv2-rollcall-row button[aria-pressed="true"] { background:#0e568c; color:white; }
.attv2-summary { white-space:pre-wrap; font:inherit; line-height:1.8; background:#f4f8fc; padding:16px; }
.attv2-officer-entry, .attv2-legacy { margin:16px 0; }
.attv2-history { margin: 20px 0; padding: 18px; background: #fff; border: 1px solid #dce5ef; border-radius: 12px; }
.attv2-history .attv2-rollcall-row { display: block; margin-top: 12px; }
.attv2-history form { display: grid; gap: 12px; }
.attv2-history textarea { width: 100%; min-height: 76px; }
.attv2-history [data-history-status] { white-space: pre-wrap; }
.attv2-history .is-error { color: #ae2525; }
.attv2-history[aria-busy="true"] button { pointer-events: none; opacity: .6; }
.attv2-report { min-width: 0; max-width: 100%; }
.attv2-summary { overflow-wrap: anywhere; margin-bottom: 10px; }
.attv2-copy-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.attv2-copy-actions [role="status"] { color: #32654b; font-size: 14px; }
.attv2-admin .attv2-actions { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; }
.attv2-arrival { border: 0; padding: 0; margin: 8px 0; min-width: 0; width: 100%; max-width: 440px; box-sizing: border-box; }
.attv2-arrival legend { padding: 0; margin-bottom: 8px; font-weight: 600; }
.attv2-arrival label { display: grid; gap: 6px; min-width: 0; }
.attv2-arrival input, .attv2-arrival select { box-sizing: border-box; width: 100%; min-width: 0; max-width: 100%; min-height: 44px; font-size: 16px; }
.attv2-arrival-clock { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.attv2-verification .attv2-rollcall-row { display: grid; grid-template-columns: minmax(0, 1fr); margin: 12px 0; }
.attv2-verification .attv2-rollcall-row > *, .attv2-history .attv2-actions > * { min-width: 0; max-width: 100%; }
.attv2-verification .attv2-rollcall-row > label { display: grid; gap: 6px; }
.attv2-verification input { box-sizing: border-box; width: 100%; min-width: 0; min-height: 44px; font-size: 16px; }
.attv2-verification .attv2-record-error:not(:empty) { color: #9c2424; background: #fff0f0; border-left: 3px solid #c43c3c; padding: 12px; margin: 0; line-height: 1.7; overflow-wrap: anywhere; }
.attv2-time-help { color: #52677c; line-height: 1.6; font-size: 14px; }
@media (max-width: 600px) {
  .attv2-rollcall, .attv2-history { padding: 12px; min-width: 0; }
  .attv2-summary { padding: 12px; }
  .attv2-arrival-clock { gap: 8px; }
  .attv2-arrival-clock label { font-size: 13px; }
  .attv2-copy-actions button { min-height: 44px; }
}
