/* Authentication / editorial collage entrance */
.auth-screen { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(360px, .82fr); background: #f7f7f2; overflow: hidden; }
.auth-visual { min-height: 100vh; position: relative; overflow: hidden; isolation: isolate; background: #f7f7f2 url("../../assets/login-field-ops.png") center / cover no-repeat; animation: auth-bg-drift 18s ease-in-out infinite alternate; }
.auth-visual::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(90deg, rgba(247,247,242,.08), transparent 65%, rgba(247,247,242,.22)); }
.auth-visual::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .2; background: linear-gradient(115deg, transparent 0 42%, rgba(101,255,0,.18) 43%, transparent 44% 100%); background-size: 180% 180%; animation: auth-scan-drift 14s ease-in-out infinite alternate; }
.auth-visual > *:not(.auth-visual-copy):not(.auth-visual-tag):not(.auth-visual-stamp):not(.auth-visual-footer) { display: none; }
.auth-visual-grid { position: absolute; inset: 0; opacity: .35; background-image: linear-gradient(rgba(16,17,16,.075) 1px, transparent 1px), linear-gradient(90deg, rgba(16,17,16,.075) 1px, transparent 1px); background-size: 46px 46px; mask-image: linear-gradient(90deg, #000 0%, rgba(0,0,0,.66) 66%, transparent 100%); }
.auth-blue-slab { position: absolute; z-index: -1; background: #1930e6; transform: skewY(-4deg) rotate(-3deg); }
.auth-blue-slab-a { width: 105%; height: 40%; left: -9%; top: 30%; clip-path: polygon(0 18%, 63% 0, 100% 12%, 82% 100%, 15% 80%); }
.auth-blue-slab-b { width: 60%; height: 20%; right: -10%; top: 12%; opacity: .84; clip-path: polygon(0 0, 100% 20%, 75% 100%, 10% 76%); }
.auth-crosshair { position: absolute; width: 180px; height: 180px; border: 1px solid rgba(16,17,16,.23); border-radius: 50%; }
.auth-crosshair::before, .auth-crosshair::after { content: ""; position: absolute; background: rgba(16,17,16,.27); }
.auth-crosshair::before { width: 100%; height: 1px; top: 50%; left: 0; }
.auth-crosshair::after { width: 1px; height: 100%; left: 50%; top: 0; }
.auth-crosshair-a { right: 13%; top: 17%; }
.auth-crosshair-b { width: 82px; height: 82px; left: 12%; bottom: 15%; border-color: rgba(255,255,255,.4); }
.auth-lattice { position: absolute; right: 11%; bottom: 18%; width: 180px; height: 150px; transform: rotate(-16deg); opacity: .9; }
.auth-lattice i { position: absolute; width: 54px; height: 62px; border: 2px solid #101110; background: rgba(255,245,0,.82); clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); }
.auth-lattice i:nth-child(1) { left: 62px; top: 0; background: rgba(255,255,255,.76); }
.auth-lattice i:nth-child(2) { left: 16px; top: 37px; }
.auth-lattice i:nth-child(3) { left: 108px; top: 37px; background: rgba(20,208,208,.78); }
.auth-lattice i:nth-child(4) { left: 62px; top: 74px; background: rgba(255,255,255,.76); }
.auth-lattice i:nth-child(5) { left: 155px; top: 74px; background: rgba(255,245,0,.82); }
.auth-lattice i:nth-child(6) { left: 16px; top: 111px; background: rgba(20,208,208,.78); }
.auth-lattice i:nth-child(7) { left: 108px; top: 111px; background: rgba(255,255,255,.76); }
.auth-display-word { position: absolute; z-index: -1; left: -4%; top: 18%; display: grid; color: #f7f7f2; font: 900 clamp(130px, 18vw, 290px)/.72 Arial, sans-serif; letter-spacing: -.12em; text-transform: uppercase; transform: rotate(-3deg); mix-blend-mode: screen; }
.auth-display-word span:last-child { margin-left: 24%; }
.auth-visual-tag { position: absolute; z-index: 1; color: #101110; font: 11px "DM Mono", monospace; letter-spacing: .13em; animation: auth-label-in .7s .45s both; }
.auth-tag-top { left: 7%; top: 7%; }
.auth-tag-side { right: 4%; top: 35%; writing-mode: vertical-rl; color: rgba(255,255,255,.88); line-height: 1.8; }
.auth-tag-side b { font-size: 20px; color: #fff500; }
.auth-stamp, .auth-visual-stamp { position: absolute; right: 9%; top: 8%; border: 2px solid #101110; padding: 7px 10px; color: #101110; font: 800 11px/1.15 Arial, sans-serif; transform: rotate(6deg); letter-spacing: .09em; }
.auth-visual-stamp { z-index: 1; top: auto; right: 13%; bottom: 10%; background: #101110; color: #f7f7f2; border-color: #101110; transform: rotate(-7deg); animation: auth-stamp-in .65s .7s both; }
.auth-visual-copy { position: absolute; z-index: 1; left: 7%; bottom: 13%; color: #101110; padding: 13px 17px 14px; border-left: 4px solid #65ff00; background: rgba(247,247,242,.88); animation: auth-copy-in .72s .22s both; }
.auth-index, .auth-kicker { display: block; color: #006a6a; font: 11px "DM Mono", monospace; letter-spacing: .15em; }
.auth-visual-copy h1 { margin: 10px 0 0; font-size: clamp(28px, 3.4vw, 52px); line-height: .95; letter-spacing: -.08em; }
.auth-visual-copy h1 em { display: inline-block; margin-left: .6em; color: #fff500; font-style: normal; background: #101110; padding: 2px 12px 8px 7px; }
.auth-visual-copy p { margin: 19px 0 0; font-size: 14px; line-height: 1.8; }
.auth-visual-footer { position: absolute; z-index: 1; left: 7%; right: 7%; bottom: 5%; display: flex; justify-content: space-between; gap: 16px; color: #62675f; font: 10px "DM Mono", monospace; letter-spacing: .08em; animation: auth-label-in .7s .8s both; }
.auth-visual-footer b { color: #006a6a; }
.auth-panel { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: clamp(28px, 6vw, 86px); background: #101110; color: #f7f7f2; position: relative; animation: auth-panel-in .72s cubic-bezier(.22,.8,.25,1) both; }
.auth-panel::before { content: ""; position: absolute; left: 0; top: 10%; bottom: 10%; width: 5px; background: #fff500; }
.auth-panel-head { display: flex; align-items: center; gap: 12px; margin-bottom: clamp(56px, 10vh, 105px); }
.auth-logo-mark { width: 38px; height: 38px; display: grid; place-items: center; background: #fff500; color: #101110; clip-path: polygon(12% 0, 88% 0, 100% 18%, 100% 82%, 88% 100%, 12% 100%, 0 82%, 0 18%); font: 700 20px Arial, sans-serif; }
.auth-panel-head strong { display: block; margin-top: 4px; font-size: 14px; }
.auth-panel .auth-kicker { color: #14d0d0; }
.auth-secure { margin-left: auto; color: #71776d; font: 10px/1.35 "DM Mono", monospace; text-align: right; letter-spacing: .1em; }
.auth-form-intro .auth-kicker { color: #fff500; }
.auth-form-intro h2 { margin: 12px 0 8px; font-size: clamp(28px, 3vw, 40px); letter-spacing: -.06em; }
.auth-form-intro p { margin: 0; color: #a8ada4; font-size: 13px; }
.auth-form { display: grid; gap: 17px; margin-top: 34px; }
.auth-field { display: grid; gap: 8px; }
.auth-field > span { color: #eff0e9; font-size: 12px; }
.auth-field > span b { margin-left: 7px; color: #737970; font: 10px "DM Mono", monospace; letter-spacing: .08em; }
.auth-field input { min-height: 52px; border: 1px solid #4b5049; background: #1b1d1a; color: #f7f7f2; padding: 13px 14px; border-radius: 0; outline: none; transition: border-color .2s ease, background .2s ease; }
.auth-field input::placeholder { color: #6e746b; }
.auth-field input:focus { border-color: #14d0d0; background: #202420; box-shadow: 0 0 0 2px rgba(20,208,208,.12); }
.auth-error { min-height: 18px; color: #ff7068; font-size: 12px; }
.auth-submit { min-height: 52px; display: flex; align-items: center; justify-content: space-between; border: 1px solid #fff500; background: #fff500; color: #101110; padding: 0 16px; font-weight: 800; transition: background .2s ease, transform .2s ease, opacity .2s ease; }
.auth-submit:hover { background: #e7df00; transform: translateX(3px); }
.auth-submit:disabled { cursor: wait; opacity: .76; transform: none; }
.auth-submit.is-verifying b { animation: auth-arrow-pulse .8s ease-in-out infinite; }
.auth-submit b { font-size: 22px; font-weight: 400; }
.auth-form.is-error { animation: auth-shake .28s ease; }
@keyframes auth-shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
@keyframes auth-bg-drift { from { background-position: 49% 50%; } to { background-position: 51% 50%; } }
@keyframes auth-scan-drift { from { transform: translateX(-8%) translateY(-3%); } to { transform: translateX(8%) translateY(3%); } }
@keyframes auth-panel-in { from { opacity: 0; transform: translateX(34px); } to { opacity: 1; transform: translateX(0); } }
@keyframes auth-copy-in { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }
@keyframes auth-label-in { from { opacity: 0; transform: translateY(-7px); } to { opacity: 1; transform: translateY(0); } }
@keyframes auth-stamp-in { from { opacity: 0; transform: rotate(-7deg) scale(.94); } to { opacity: 1; transform: rotate(-7deg) scale(1); } }
@keyframes auth-arrow-pulse { 50% { transform: translateX(4px); } }
.auth-divider { display: flex; align-items: center; gap: 9px; margin: 35px 0 17px; color: #666c63; font: 9px "DM Mono", monospace; letter-spacing: .14em; }
.auth-divider::before, .auth-divider::after { content: ""; height: 1px; flex: 1; background: #383d37; }
.auth-demo p { margin: 0 0 10px; color: #8e958b; font-size: 11px; }
.auth-demo-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.auth-demo-button { min-height: 49px; display: grid; grid-template-columns: 1fr auto; grid-template-rows: 1fr 1fr; column-gap: 8px; border: 1px solid #383d37; background: transparent; color: #e8e9e2; padding: 8px 10px; text-align: left; transition: border-color .2s ease, background .2s ease; }
.auth-demo-button span { grid-row: 1 / -1; align-self: center; font-size: 12px; }
.auth-demo-button small { color: #737a70; font: 9px "DM Mono", monospace; }
.auth-demo-button b { grid-column: 2; grid-row: 1 / -1; align-self: center; color: #fff500; font-size: 18px; font-weight: 400; }
.auth-demo-button:hover { border-color: #14d0d0; background: #1b2421; }
.auth-register-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; color: #737a70; font-size: 11px; }
.auth-register-link button { border: 0; border-bottom: 1px solid #14d0d0; background: transparent; color: #14d0d0; padding: 3px 0; font-size: 11px; }
.auth-register-link button:hover { color: #fff500; border-color: #fff500; }
.application-status-result { min-height: 32px; margin-top: 12px; }
.application-status-head { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 8px; border-bottom: 1px solid rgba(16,17,16,.18); }
.application-status-head span, .status-loading { color: #737a70; font-size: 12px; }
.application-status-list { display: grid; gap: 7px; margin-top: 10px; }
.application-status-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 10px; border: 1px solid rgba(16,17,16,.18); background: rgba(232,232,226,.55); font-size: 12px; }
.status-pending { color: #d9822b; } .status-approved { color: #148b8b; } .status-rejected { color: #ff3b30; }
.department-multi-select { min-height: 132px; padding: 5px; }
.department-multi-select option { padding: 8px 10px; }
.field-hint { display: block; margin-top: 5px; color: #737a70; font-size: 11px; }
.department-choice-field { margin: 0; padding: 0; border: 0; }
.department-choice-field legend { margin-bottom: 8px; color: #101110; font-size: 12px; font-weight: 700; }
.department-choice-field legend small { color: #737a70; font-weight: 400; }
.department-option-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.department-option { display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 10px; border: 1px solid rgba(16,17,16,.2); background: rgba(232,232,226,.45); color: #101110; font-size: 12px; cursor: pointer; }
.department-option:has(input:checked) { border-color: #14d0d0; background: rgba(20,208,208,.12); box-shadow: inset 3px 0 #14d0d0; }
.department-option input { width: 17px; height: 17px; accent-color: #14d0d0; }
@media (max-width: 520px) { .department-option-grid { grid-template-columns: 1fr; } }
.auth-panel-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 50px; color: #687067; font-size: 10px; }
.auth-panel .auth-secure::first-line { color: #14d0d0; }
.auth-panel-head .auth-logo-mark { animation: auth-status-pulse 2.5s ease-in-out infinite; }
@keyframes auth-status-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,245,0,0); } 50% { box-shadow: 0 0 0 5px rgba(255,245,0,.09); } }
.side-logout { width: 100%; margin-top: 14px; padding: 8px 0 0; border: 0; border-top: 1px solid #464a43; background: transparent; color: #9da69c; text-align: left; font-size: 11px; }
.side-logout:hover { color: var(--signal); }

@media (max-width: 760px) {
  .auth-screen { display: block; min-height: 100svh; }
  .auth-visual { min-height: 265px; height: 34svh; }
  .auth-tag-top { left: 6%; top: 8%; font-size: 9px; }
  .auth-tag-side { right: 3%; top: 35%; font-size: 9px; }
  .auth-visual-copy { left: 6%; bottom: 12%; padding: 9px 12px 10px; }
  .auth-visual-copy h1 { font-size: clamp(24px, 7vw, 38px); }
  .auth-visual-copy p { display: none; }
  .auth-visual-footer { left: 6%; right: 6%; bottom: 4%; font-size: 8px; }
  .auth-visual-stamp { right: 8%; bottom: 12%; padding: 5px 7px; font-size: 8px; }
  .auth-panel { min-height: 66svh; padding: 28px 22px 24px; }
  .auth-panel::before { top: 0; bottom: auto; width: 100%; height: 4px; }
  .auth-panel-head { margin-bottom: 42px; }
  .auth-form-intro h2 { font-size: 30px; }
  .auth-panel-foot { padding-top: 38px; font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  .auth-visual, .auth-visual::after, .auth-panel, .auth-visual-tag, .auth-visual-copy, .auth-visual-stamp, .auth-visual-footer, .auth-panel-head .auth-logo-mark { animation: none; }
  .auth-submit, .auth-field input { transition: none; }
}

@media (max-width: 390px) {
  .auth-demo-list { grid-template-columns: 1fr; }
  .auth-panel-foot { flex-direction: column; gap: 5px; }
}

/* Lightweight department gateway inspired by archive terminals */
.division-gateway { min-height: 100vh; position: relative; background: var(--paper); color: var(--ink); overflow: hidden; }
.division-gateway::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .24; background-image: linear-gradient(rgba(16,17,16,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(16,17,16,.06) 1px, transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(135deg, #000, transparent 72%); }
.division-header { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 25px clamp(18px, 5vw, 72px); border-bottom: 1px solid var(--line); background: var(--surface); }
.division-brand { display: flex; align-items: center; gap: 12px; }
.division-brand-mark { width: 38px; height: 38px; display: grid; place-items: center; background: var(--ink); color: var(--signal); clip-path: polygon(12% 0, 88% 0, 100% 18%, 100% 82%, 88% 100%, 12% 100%, 0 82%, 0 18%); font: 700 20px Arial, sans-serif; }
.division-brand strong, .division-brand small { display: block; }
.division-brand strong { font-size: 15px; letter-spacing: .04em; }
.division-brand small { margin-top: 4px; color: var(--muted); font: 10px "DM Mono", monospace; letter-spacing: .12em; }
.division-account { display: flex; align-items: center; gap: 13px; font-size: 12px; }
.division-account > span { color: var(--teal-dark); font: 10px "DM Mono", monospace; letter-spacing: .12em; }
.division-account b { font-size: 13px; }
.division-logout { min-height: 36px; border: 1px solid var(--line); background: transparent; color: var(--ink); padding: 0 11px; font-size: 12px; }
.division-logout:hover { border-color: var(--ink); background: var(--ink); color: var(--surface); }
.division-main { width: min(1180px, calc(100% - 36px)); margin: 0 auto; padding: clamp(42px, 8vw, 100px) 0 28px; }
.division-hero { min-height: 210px; position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; overflow: hidden; margin-bottom: 38px; padding: 27px 0 24px; border-bottom: 1px solid var(--ink); animation: division-heading-in .6s ease both; }
.division-hero::after { content: "M-OPS"; position: absolute; right: 10%; top: 5px; color: rgba(16,17,16,.08); font: 110px/.8 "DM Mono", monospace; letter-spacing: -.12em; pointer-events: none; }
.division-hero-word { position: absolute; left: -7px; bottom: -20px; color: rgba(16,17,16,.1); font: 900 clamp(92px, 15vw, 190px)/.7 Arial, sans-serif; letter-spacing: -.12em; line-height: .72; }
.division-hero-word span { margin-left: .48em; color: rgba(101,255,0,.35); }
.division-hero-copy { position: relative; z-index: 1; max-width: 700px; }
.division-kicker { color: var(--teal-dark); font: 11px "DM Mono", monospace; letter-spacing: .15em; }
.division-hero-copy h1 { margin: 14px 0 8px; font-size: clamp(29px, 4.8vw, 56px); line-height: .98; letter-spacing: -.08em; }
.division-hero-copy p { margin: 0; color: var(--muted); font-size: 14px; }
.division-total { display: flex; align-items: flex-end; gap: 10px; padding-bottom: 4px; color: var(--muted); }
.division-total strong { color: var(--ink); font: 76px/.75 "DM Mono", monospace; letter-spacing: -.12em; }
.division-total span { padding-bottom: 3px; font: 10px/1.35 "DM Mono", monospace; letter-spacing: .1em; }
.division-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.division-card { min-height: 300px; position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; overflow: hidden; border: 1px solid var(--line); background: var(--surface); color: var(--ink); padding: 23px; text-align: left; animation: division-card-in .62s cubic-bezier(.22,.8,.25,1) var(--delay) both; transition: transform .25s ease, border-color .25s ease, background .25s ease; }
.division-card::before { content: ""; position: absolute; width: 210px; height: 210px; right: -72px; top: -70px; border: 1px solid var(--division-accent); transform: rotate(30deg); opacity: .72; transition: transform .35s ease, opacity .35s ease; }
.division-card::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(135deg, transparent 0 62%, color-mix(in srgb, var(--division-accent) 12%, transparent) 62% 63%, transparent 63%); }
.division-card:hover, .division-card:focus-visible { transform: translateY(-5px); border-color: var(--division-accent); outline: none; background: #fbfff0; }
.division-card:hover::before, .division-card:focus-visible::before { transform: rotate(42deg) scale(1.08); opacity: 1; }
.division-card.is-locked { opacity: .64; cursor: not-allowed; }
.division-card.is-locked:hover { transform: none; border-color: var(--line); background: var(--surface); }
.division-card.is-locked::before { border-style: dashed; }
.division-quote { opacity: .86; cursor: default; border-style: dashed; background: rgba(255,255,255,.3); }
.division-quote::before { opacity: .45; border-style: dashed; }
.division-quote:hover { transform: none; border-color: var(--line); background: rgba(255,255,255,.3); }
.division-quote .division-card-mark { font-size: 27px; }
.division-quote .division-card-copy strong { font-size: clamp(20px, 2.4vw, 29px); line-height: 1.08; }
.division-quote .division-card-copy em { color: var(--muted); }
.division-quote .division-card-action { color: var(--muted); font-size: 10px; letter-spacing: .08em; }
.accent-lime { --division-accent: #65ff00; }
.accent-cyan { --division-accent: var(--teal); }
.accent-amber { --division-accent: var(--amber); }
.division-card-index, .division-card-mark, .division-card-copy, .division-card-status, .division-card-action { position: relative; z-index: 1; }
.division-card-index { position: absolute; left: 23px; top: 21px; color: var(--muted); font: 10px "DM Mono", monospace; letter-spacing: .08em; }
.division-card-mark { position: absolute; right: 20px; top: 16px; color: var(--division-accent); font: 42px/1 "DM Mono", monospace; letter-spacing: -.1em; }
.division-card-copy { display: grid; gap: 6px; }
.division-card-copy small { color: var(--teal-dark); font: 10px "DM Mono", monospace; letter-spacing: .12em; }
.division-card-copy strong { font-size: clamp(22px, 3vw, 34px); letter-spacing: -.08em; }
.division-card-copy em { min-height: 38px; color: var(--muted); font-size: 12px; font-style: normal; line-height: 1.55; }
.division-card-status { display: flex; align-items: center; gap: 7px; margin-top: 22px; color: var(--muted); font: 10px "DM Mono", monospace; letter-spacing: .07em; }
.division-card-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--division-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--division-accent) 16%, transparent); }
.division-card-action { align-self: stretch; margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--ink); font-size: 12px; }
.division-card.is-available .division-card-action { color: var(--teal-dark); }
.division-card.is-entering { animation: division-enter .22s ease both; border-color: var(--signal); background: var(--signal); }
.division-card.is-entering .division-card-status, .division-card.is-entering .division-card-action { color: var(--ink); }
.division-footer { display: flex; justify-content: space-between; gap: 15px; margin-top: 42px; color: var(--muted); font: 10px "DM Mono", monospace; letter-spacing: .08em; animation: division-heading-in .6s .35s ease both; }
@keyframes division-heading-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes division-card-in { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
@keyframes division-enter { 50% { transform: translateY(-4px) scale(1.015); } 100% { transform: translateY(-2px) scale(1); } }

@media (max-width: 760px) {
  .division-header { align-items: flex-start; padding: 18px 15px; }
  .division-brand strong { font-size: 13px; }
  .division-brand small { font-size: 8px; }
  .division-account { flex-wrap: wrap; justify-content: flex-end; gap: 5px 9px; }
  .division-account > span { width: 100%; text-align: right; font-size: 9px; }
  .division-account b { font-size: 11px; }
  .division-logout { min-height: 32px; padding: 0 8px; font-size: 10px; }
  .division-main { width: calc(100% - 28px); padding-top: 46px; }
  .division-hero { min-height: 174px; align-items: flex-end; margin-bottom: 26px; padding: 21px 0 20px; }
  .division-hero::after { right: -2%; top: 17px; font-size: 70px; }
  .division-hero-word { bottom: -5px; font-size: 82px; }
  .division-hero-copy h1 { font-size: 32px; }
  .division-hero-copy p { font-size: 13px; }
  .division-total { display: none; }
  .division-grid { grid-template-columns: 1fr; gap: 10px; }
  .division-card { min-height: 205px; padding: 18px; }
  .division-card-index { left: 18px; top: 17px; }
  .division-card-mark { right: 16px; top: 13px; font-size: 35px; }
  .division-card-copy strong { font-size: 26px; }
  .division-card-status { margin-top: 14px; }
  .division-footer { flex-direction: column; margin-top: 25px; line-height: 1.5; }
}

@media (prefers-reduced-motion: reduce) {
  .division-hero, .division-card, .division-footer { animation: none; }
  .division-card, .division-card::before { transition: none; }
}
.group-card-main { min-width: 0; flex: 1; }
.group-card-activity { display: block; margin-top: 11px; color: var(--teal-dark); font-size: 10px; line-height: 1.45; }
.group-card-side { min-width: 164px; display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.group-progress-value { font: 22px "DM Mono", monospace; color: var(--ink); }
.group-progress-label { color: var(--muted); font-size: 10px; }
.group-progress-track { display: block; width: 100%; max-width: 164px; height: 4px; background: var(--line); }
.group-progress-track i { display: block; height: 100%; background: var(--signal); }
.group-open-hint { margin-top: 5px; color: var(--teal-dark); font-size: 11px; }
.group-detail-page { display: grid; gap: 16px; }
.group-detail-hero { background: linear-gradient(135deg, rgba(255,255,255,.44), rgba(20,208,208,.06)); }
.group-mini-stats { margin-top: 18px; }
.danger-stat strong { color: var(--red); }
.group-filter-bar { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.group-filters { display: flex; gap: 8px; min-width: min(470px, 52%); }
.group-filters .select { min-width: 0; flex: 1; }
.group-member-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.group-member-card { display: grid; gap: 10px; border: 1px solid var(--line); background: rgba(255,255,255,.22); padding: 14px; }
.group-member-main { display: block; padding: 0; border: 0; background: transparent; color: inherit; text-align: left; }
.group-member-main:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.member-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.member-card-heading strong, .member-card-heading small { display: block; }
.member-card-heading strong { font-size: 15px; }
.member-card-heading small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.member-status-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.member-status-grid > div { min-width: 0; border-left: 1px solid var(--line); padding-left: 8px; }
.member-status-grid > div:first-child { border-left: 0; padding-left: 0; }
.member-status-grid span:first-child { display: block; color: var(--muted); font-size: 10px; }
.member-status-grid strong { display: block; margin-top: 5px; font: 13px "DM Mono", monospace; white-space: normal; }
.member-status-grid .chip { font-family: inherit; font-size: 10px; }
.member-last-activity { display: block; margin-top: 12px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.group-member-actions { display: flex; gap: 8px; border-top: 1px solid var(--line); padding-top: 10px; }
.group-member-actions .button { flex: 1; }

@media (max-width: 680px) {
  .main { padding: 14px 12px 82px; }
  .topbar { position: sticky; top: 0; z-index: 5; margin: -14px -12px 16px; padding: 12px; background: rgba(232,232,226,.96); backdrop-filter: blur(8px); }
  .page-heading { gap: 8px; }
  .page-title { font-size: 20px; }
  .eyebrow { font-size: 9px; }
  .top-actions { gap: 5px; max-width: 48%; }
  .role-switch { padding: 5px 6px; font-size: 10px; max-width: 100%; }
  .role-switch select { max-width: 74px; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-card { min-width: 0; padding: 13px; }
  .stat-value { font-size: 21px; }
  .hero-panel { padding: 16px; }
  .hero-panel h2 { font-size: 20px; line-height: 1.3; }
  .hero-panel p { line-height: 1.6; }
  .section-grid { gap: 12px; }
  .panel { padding: 14px; }
  .panel-title { font-size: 15px; }
  .quick-grid { gap: 8px; }
  .quick-btn { min-height: 86px; padding: 12px; }
  .quick-btn strong { margin-top: 13px; }
  .activity-card { display: block !important; padding: 15px !important; cursor: pointer; }
  .activity-card .detail-actions { display: flex; margin-top: 14px; justify-content: stretch; }
  .activity-card .detail-actions .button { flex: 1; min-width: 0; }
  .review-summary { min-height: 62px; padding: 13px 14px; }
  .review-summary strong { font-size: 13px; }
  .review-summary-side .chip { max-width: 78px; overflow: hidden; text-overflow: ellipsis; }
  .review-body { padding: 0 14px 14px; }
  .review-body-head { align-items: flex-start; }
  .detail-header { gap: 12px; }
  .detail-header h2 { font-size: 20px; }
  .detail-header p { line-height: 1.6; }
  .detail-actions { justify-content: stretch; width: 100%; }
  .detail-actions .button { flex: 1; }
  .mini-stats { gap: 7px; }
  .mini-stat { padding: 10px; }
  .mini-stat strong { font-size: 18px; }
  .toolbar { gap: 9px; }
  .toolbar-left, .toolbar-right { width: 100%; }
  .toolbar-right .button { flex: 1; }
  .input, .select, .textarea { width: 100%; min-width: 0; max-width: 100%; }
  .table-wrap { overflow: visible; border: 0; }
  .table-wrap table { display: block; min-width: 0; width: 100%; }
  .table-wrap thead { display: none; }
  .table-wrap tbody { display: grid; gap: 10px; }
  .table-wrap tr { display: grid; gap: 8px; padding: 13px; border: 1px solid var(--line); background: var(--surface); }
  .table-wrap td { display: grid; grid-template-columns: 78px minmax(0, 1fr); align-items: center; min-width: 0; padding: 0; border: 0; text-align: left; line-height: 1.5; }
  .table-wrap td::before { color: var(--muted); font: 10px "DM Mono", "Microsoft YaHei", sans-serif; letter-spacing: .04em; }
  .table-wrap td:nth-child(1)::before { content: "成员"; }
  .table-wrap td:nth-child(2)::before { content: "考勤"; }
  .table-wrap td:nth-child(3)::before { content: "贡献"; }
  .table-wrap td:nth-child(4)::before { content: "分值"; }
  .table-wrap td:nth-child(5)::before { content: "备注"; }
  .table-wrap td:nth-child(6)::before { content: "操作"; }
  .table-wrap td:nth-child(7)::before { content: "请假"; }
  .table-wrap td:nth-child(8)::before { content: "缺勤"; }
  .table-wrap td .select, .table-wrap td .input { width: 100%; }
  .table-actions { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .table-actions .button { min-width: 0; padding-inline: 5px; }
  .detail-table td:nth-child(1)::before { content: "成员"; }
  .detail-table td:nth-child(2)::before { content: "考勤"; }
  .detail-table td:nth-child(3)::before { content: "贡献"; }
  .detail-table td:nth-child(4)::before { content: "积分"; }
  .detail-table td:nth-child(5)::before { content: "状态"; }
  .review-table td:nth-child(1)::before { content: "成员 / 管理员"; }
  .review-table td:nth-child(2)::before { content: "考勤"; }
  .review-table td:nth-child(3)::before { content: "贡献"; }
  .review-table td:nth-child(4)::before { content: "分值"; }
  .review-table td:nth-child(5)::before { content: "备注"; }
  .review-table td:nth-child(6)::before { content: "操作"; }
  .score-table td:nth-child(1)::before { content: "成员"; }
  .score-table td:nth-child(2)::before { content: "考勤状态"; }
  .score-table td:nth-child(3)::before { content: "贡献类型"; }
  .score-table td:nth-child(4)::before { content: "贡献分"; }
  .score-table td:nth-child(5)::before { content: "备注"; }
  .score-table td:nth-child(6)::before { content: "本次积分"; }
  .member-table td:nth-child(1)::before { content: "成员"; }
  .member-table td:nth-child(2)::before { content: "管理员"; }
  .member-table td:nth-child(3)::before { content: "总积分"; }
  .member-table td:nth-child(4)::before { content: "参加次数"; }
  .member-table td:nth-child(5)::before { content: "组织工作"; }
  .member-table td:nth-child(6)::before { content: "请假"; }
  .member-table td:nth-child(7)::before { content: "缺勤"; }
  .member-table td:nth-child(8)::before { content: "查看"; }
  .ranking-table td:nth-child(1)::before { content: "排名"; }
  .ranking-table td:nth-child(2)::before { content: "成员"; }
  .ranking-table td:nth-child(3)::before { content: "总积分"; }
  .ranking-table td:nth-child(4)::before { content: "考勤分"; }
  .ranking-table td:nth-child(5)::before { content: "贡献分"; }
  .ranking-table td:nth-child(6)::before { content: "参与次数"; }
  .ranking-table td:nth-child(7)::before { content: "组织工作"; }
  .form-footer { position: sticky; bottom: 70px; z-index: 4; margin-inline: -14px; padding: 12px 14px calc(12px + env(safe-area-inset-bottom)); background: rgba(232,232,226,.96); backdrop-filter: blur(8px); }
  .form-footer .button { flex: 1; }
  .member-select-grid { gap: 7px; }
  .group-overview { grid-template-columns: 1fr; }
  .group-overview-card { align-items: flex-start; flex-direction: column; }
  .group-overview-meta { justify-content: flex-start; }
  .group-card-side { width: 100%; min-width: 0; align-items: flex-start; }
  .group-progress-track { max-width: none; }
  .group-filter-bar { align-items: stretch; flex-direction: column; gap: 12px; }
  .group-filters { width: 100%; min-width: 0; flex-direction: column; }
  .group-member-list { grid-template-columns: 1fr; }
  .member-status-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .member-status-grid > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .group-member-actions .button { min-height: 44px; }
  .mobile-nav { padding-bottom: calc(7px + env(safe-area-inset-bottom)); }
}

