/* 简光OA 2.0 · 组件 */
.ico { width: 1.1em; height: 1.1em; flex: none; vertical-align: -.16em; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 16px; border-radius: 8px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .03); color: var(--text); font-size: 14px; cursor: pointer;
  white-space: nowrap; transition: border-color .15s, background .15s, color .15s, box-shadow .15s, filter .15s; user-select: none; }
.btn:hover { border-color: rgba(94, 234, 212, .5); color: #fff; background: rgba(94, 234, 212, .08); }
.btn.pri { background: linear-gradient(135deg, #5eead4, #60a5fa); color: #031419; border-color: transparent; font-weight: 600; }
.btn.pri:hover { filter: brightness(1.1); box-shadow: 0 0 20px rgba(94, 234, 212, .35); }
.btn.ok { color: var(--green); border-color: rgba(52, 211, 153, .4); background: rgba(52, 211, 153, .08); }
.btn.ok:hover { background: rgba(52, 211, 153, .16); }
.btn.danger { color: var(--red); border-color: rgba(248, 113, 113, .38); background: rgba(248, 113, 113, .06); }
.btn.danger:hover { background: rgba(248, 113, 113, .14); color: #fecaca; }
.btn.ghost { border-color: transparent; background: none; color: var(--text2); }
.btn.ghost:hover { background: rgba(255, 255, 255, .04); color: #fff; }
.btn.sm { height: 30px; padding: 0 11px; font-size: 13px; border-radius: 7px; }
.btn.xs { height: 26px; padding: 0 9px; font-size: 12.5px; border-radius: 6px; }
.btn:disabled, .btn.busy { opacity: .5; cursor: not-allowed; pointer-events: none; }
.btn svg { width: 16px; height: 16px; }
.link { all: unset; color: var(--cyan); cursor: pointer; }
.link:hover { color: #a7f8ec; text-decoration: underline; }

.inp { width: 100%; height: 38px; padding: 0 12px; background: rgba(4, 8, 12, .62); border: 1px solid var(--line); border-radius: 8px;
  color: var(--text); font: inherit; font-size: 14.5px; outline: none; transition: border-color .15s, box-shadow .15s; }
textarea.inp { height: auto; min-height: 92px; padding: 9px 12px; resize: vertical; line-height: 1.6; }
select.inp { padding-right: 8px; cursor: pointer; }
select.inp option { background: #0d131b; color: var(--text); }
.inp:focus { border-color: rgba(94, 234, 212, .6); box-shadow: 0 0 0 3px rgba(94, 234, 212, .12); }
.inp::placeholder { color: var(--mute); }
.inp[type=date]::-webkit-calendar-picker-indicator, .inp[type=time]::-webkit-calendar-picker-indicator, .inp[type=month]::-webkit-calendar-picker-indicator { filter: invert(.75); cursor: pointer; }
.chk { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14.5px; }
.chk input { width: 16px; height: 16px; accent-color: var(--cyan); }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.fld { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fld.full { grid-column: 1 / -1; }
.fld > label { font-size: 13.5px; color: var(--text2); }
.fld .req { color: var(--red); margin-left: 2px; }
.fld .hint { font-size: 12.5px; color: var(--dim); }
.form-err { grid-column: 1 / -1; color: var(--red); font-size: 13.5px; min-height: 0; }
.form-err:empty { display: none; }
.upick { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: rgba(4, 8, 12, .62); max-height: 168px; overflow: auto; }
.upick .uc { padding: 2px 11px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; cursor: pointer; color: var(--text2); user-select: none; transition: .12s; }
.upick .uc:hover { border-color: rgba(94, 234, 212, .45); }
.upick .uc.on { border-color: rgba(94, 234, 212, .75); background: rgba(94, 234, 212, .15); color: #fff; }
.upick .grp { width: 100%; font: 11px var(--mono); color: var(--mute); letter-spacing: .1em; margin-top: 2px; }
.imgs { display: flex; flex-wrap: wrap; gap: 8px; }
.imgs .th { width: 78px; height: 78px; border-radius: 8px; border: 1px solid var(--line); background: #0d131b; position: relative; cursor: zoom-in; }
.imgs .th img { width: 100%; height: 100%; object-fit: cover; border-radius: 7px; display: block; }
.imgs .th .rm { all: unset; position: absolute; top: -7px; right: -7px; width: 20px; height: 20px; border-radius: 50%; background: var(--red); color: #fff; font-size: 12px; text-align: center; line-height: 20px; cursor: pointer; }
.imgs .add { display: grid; place-items: center; cursor: pointer; color: var(--dim); font-size: 28px; border-style: dashed; }
.imgs .add:hover { color: var(--cyan); border-color: rgba(94, 234, 212, .5); }

.panel { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; backdrop-filter: blur(6px); min-width: 0; }
.panel::before, .panel::after { content: ''; position: absolute; width: 14px; height: 14px; pointer-events: none; border: 1px solid rgba(94, 234, 212, .55); }
.panel::before { top: -1px; left: -1px; border-right: none; border-bottom: none; border-top-left-radius: 12px; }
.panel::after { bottom: -1px; right: -1px; border-left: none; border-top: none; border-bottom-right-radius: 12px; }
.panel.flat { padding: 0; overflow: hidden; }
.ph { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; min-height: 30px; }
.ph h3 { font-size: 16.5px; font-weight: 600; white-space: nowrap; }
.ph .sp { flex: 1; }
.panel.flat > .ph { padding: 16px 20px 0; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.sp { flex: 1; }
.stack > * + * { margin-top: 16px; }

.bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 16px; }
.bar .inp { width: auto; min-width: 150px; }
.bar .inp.q { min-width: 220px; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.tabs a { padding: 9px 16px; color: var(--dim); cursor: pointer; position: relative; font-size: 15px; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.tabs a:hover { color: var(--text); }
.tabs a.on { color: #fff; }
.tabs a.on::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.seg a { padding: 5px 14px; font-size: 13.5px; color: var(--dim); cursor: pointer; }
.seg a + a { border-left: 1px solid var(--line); }
.seg a.on { background: rgba(94, 234, 212, .14); color: #fff; }

.tbl-wrap { overflow: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tbl th { text-align: left; font-weight: 500; color: var(--dim); font-size: 13px; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 11px 12px; border-bottom: 1px solid rgba(38, 49, 64, .55); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: none; }
.tbl tr.click { cursor: pointer; }
.tbl tr.click:hover td { background: rgba(94, 234, 212, .045); }
.tbl .r { text-align: right; }
.tbl .nw { white-space: nowrap; }
.ell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.tag { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 6px; font-size: 12.5px; line-height: 1; border: 1px solid; white-space: nowrap; vertical-align: middle; }
.tag.cyan { color: var(--cyan); border-color: rgba(94, 234, 212, .35); background: rgba(94, 234, 212, .08); }
.tag.green { color: var(--green); border-color: rgba(52, 211, 153, .35); background: rgba(52, 211, 153, .08); }
.tag.amber { color: var(--amber); border-color: rgba(251, 191, 36, .35); background: rgba(251, 191, 36, .08); }
.tag.red { color: var(--red); border-color: rgba(248, 113, 113, .35); background: rgba(248, 113, 113, .08); }
.tag.indigo { color: var(--indigo); border-color: rgba(129, 140, 248, .38); background: rgba(129, 140, 248, .09); }
.tag.pink { color: var(--pink); border-color: rgba(244, 114, 182, .35); background: rgba(244, 114, 182, .08); }
.tag.blue { color: var(--blue); border-color: rgba(96, 165, 250, .35); background: rgba(96, 165, 250, .08); }
.tag.dim { color: var(--dim); border-color: var(--line); background: rgba(255, 255, 255, .02); }
.badge { display: inline-block; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font: 600 11px/18px var(--mono); text-align: center; box-shadow: 0 0 8px rgba(248, 113, 113, .5); }
.badge:empty { display: none; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; }

.av { width: 32px; height: 32px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; overflow: hidden; font-weight: 600; font-size: 13px; color: #031419; vertical-align: middle; }
.av img { width: 100%; height: 100%; object-fit: cover; }
.who { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.who .av { width: 26px; height: 26px; font-size: 12px; }

.mask { position: fixed; inset: 0; z-index: 100; background: rgba(2, 5, 8, .66); backdrop-filter: blur(3px); display: grid; place-items: center; padding: 20px; animation: fadeIn .15s; }
.modal { width: 560px; max-width: calc(100vw - 40px); max-height: calc(100vh - 40px); display: flex; flex-direction: column; background: var(--panel2); border: 1px solid var(--line2); border-radius: 14px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .55), 0 0 34px rgba(94, 234, 212, .08); animation: popIn .18s ease-out; position: relative; }
.modal.wide { width: 840px; }
.modal.narrow { width: 420px; }
.mh { padding: 15px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.mh h3 { font-size: 17px; font-weight: 600; flex: 1; min-width: 0; }
.mb { padding: 18px 20px; overflow: auto; }
.mf { padding: 13px 20px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.mf .sp { flex: 1; }
.xbtn { all: unset; width: 30px; height: 30px; border-radius: 7px; display: grid; place-items: center; cursor: pointer; color: var(--dim); font-size: 15px; }
.xbtn:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.drawer-mask { position: fixed; inset: 0; z-index: 90; background: rgba(2, 5, 8, .35); animation: fadeIn .15s; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 480px; max-width: 94vw; z-index: 91; display: flex; flex-direction: column;
  background: var(--panel2); border-left: 1px solid var(--line2); box-shadow: -20px 0 60px rgba(0, 0, 0, .45); animation: slideIn .2s ease-out; }
.drawer.wide { width: 640px; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes popIn { from { opacity: 0; transform: translateY(8px) scale(.985); } }
@keyframes slideIn { from { opacity: 0; transform: translateX(28px); } }

#toasts { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 400; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { padding: 10px 18px; border-radius: 9px; background: rgba(12, 18, 25, .97); border: 1px solid var(--line2); box-shadow: 0 10px 30px rgba(0, 0, 0, .45); font-size: 14px; animation: popIn .2s ease-out; max-width: 80vw; }
.toast.err { border-color: rgba(248, 113, 113, .55); color: #fecaca; }
.toast.ok { border-color: rgba(52, 211, 153, .5); color: #bbf7d0; }
.toast.out { opacity: 0; transition: opacity .3s; }

.kv { display: grid; grid-template-columns: 92px 1fr; gap: 0; font-size: 14.5px; }
.kv > b { color: var(--dim); font-weight: 400; padding: 8px 0; border-bottom: 1px dashed rgba(38, 49, 64, .8); }
.kv > span { padding: 8px 0; border-bottom: 1px dashed rgba(38, 49, 64, .8); min-width: 0; word-break: break-word; }
.pre { white-space: pre-wrap; word-break: break-word; }
.empty { text-align: center; padding: 38px 10px; color: var(--dim); font-size: 14px; }
.empty .hud-code { display: block; margin-bottom: 6px; color: var(--mute); }
.loading { padding: 40px; text-align: center; font: 12px var(--mono); letter-spacing: .2em; color: var(--hud); }
.sec-t { font-size: 14px; color: var(--dim); margin: 18px 0 10px; display: flex; align-items: center; gap: 8px; }
.sec-t::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }

/* 审批流程图 */
.flow { display: flex; align-items: flex-start; overflow-x: auto; padding: 6px 2px 4px; }
.fnode { display: flex; flex-direction: column; align-items: center; width: 118px; flex: none; text-align: center; }
.fnode .fc { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--line); background: rgba(4, 8, 12, .85); font: 600 14px var(--mono); color: var(--dim); }
.fnode.ok .fc { border-color: var(--green); color: var(--green); box-shadow: 0 0 14px rgba(52, 211, 153, .35); }
.fnode.no .fc { border-color: var(--red); color: var(--red); box-shadow: 0 0 14px rgba(248, 113, 113, .35); }
.fnode.cur .fc { border-color: var(--cyan); color: var(--cyan); animation: corePulse 1.8s ease-in-out infinite; }
.fnode.skip .fc { border-style: dashed; color: var(--mute); }
.fnode.start .fc { border-color: var(--indigo); color: var(--indigo); }
.fnode .fl { margin-top: 7px; font-size: 13.5px; color: var(--text); line-height: 1.35; }
.fnode .fs { font-size: 12px; color: var(--dim); line-height: 1.4; margin-top: 2px; }
.fnode .fm { margin-top: 5px; font-size: 12px; color: var(--text2); background: rgba(255, 255, 255, .04); border: 1px solid var(--line); border-radius: 6px; padding: 3px 7px; max-width: 112px; word-break: break-word; }
.flink { flex: 1 0 26px; height: 2px; margin-top: 21px; background: var(--line); position: relative; overflow: hidden; }
.flink.ok { background: linear-gradient(90deg, rgba(52, 211, 153, .9), rgba(52, 211, 153, .35)); }
.flink.cur { background: rgba(94, 234, 212, .2); }
.flink.cur::after { content: ''; position: absolute; top: 0; bottom: 0; width: 40%; background: linear-gradient(90deg, transparent, var(--cyan), transparent); animation: flowRun 1.4s linear infinite; }
@keyframes flowRun { from { left: -40%; } to { left: 100%; } }
@keyframes corePulse { 0%, 100% { box-shadow: 0 0 6px rgba(94, 234, 212, .3); } 50% { box-shadow: 0 0 20px rgba(94, 234, 212, .75); } }

/* 项目阶段流水线 */
.pipe { display: flex; gap: 3px; }
.pipe .ps { flex: 1; min-width: 0; height: 30px; display: grid; place-items: center; padding: 0 12px; font-size: 12.5px; color: var(--dim); background: rgba(255, 255, 255, .045);
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 50%, calc(100% - 9px) 100%, 0 100%, 9px 50%); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pipe .ps:first-child { clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 50%, calc(100% - 9px) 100%, 0 100%); }
.pipe .ps.done { background: rgba(52, 211, 153, .2); color: #a7f3d0; }
.pipe .ps.cur { background: linear-gradient(90deg, rgba(94, 234, 212, .5), rgba(129, 140, 248, .45)); color: #fff; font-weight: 600; }
.pipe.click .ps { cursor: pointer; }
.pipe.click .ps:hover { filter: brightness(1.35); }
.pipe.mini .ps { height: 7px; padding: 0; font-size: 0; clip-path: none; border-radius: 2px; }
.prog { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.prog i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--cyan), var(--indigo)); box-shadow: 0 0 8px rgba(94, 234, 212, .5); }
.prog.warn i { background: linear-gradient(90deg, var(--amber), var(--red)); }

/* 日历 */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal .wd { text-align: center; font-size: 12.5px; color: var(--dim); padding: 2px 0; }
.cal .d { min-height: 76px; border-radius: 9px; border: 1px solid var(--line); padding: 6px 8px; background: rgba(255, 255, 255, .02); font-size: 12px; line-height: 1.45; min-width: 0; }
.cal .d .n { font: 600 14px var(--mono); display: flex; align-items: center; gap: 6px; }
.cal .d .t { color: var(--text2); font-family: var(--mono); }
.cal .d.pad { visibility: hidden; }
.cal .d.normal { border-color: rgba(52, 211, 153, .35); background: rgba(52, 211, 153, .05); }
.cal .d.abnormal { border-color: rgba(251, 191, 36, .45); background: rgba(251, 191, 36, .06); }
.cal .d.absent { border-color: rgba(248, 113, 113, .45); background: rgba(248, 113, 113, .06); }
.cal .d.leave { border-color: rgba(129, 140, 248, .45); background: rgba(129, 140, 248, .07); }
.cal .d.rest, .cal .d.future, .cal .d.none { color: var(--mute); }
.cal .d.today { box-shadow: 0 0 0 1px var(--cyan), 0 0 16px rgba(94, 234, 212, .25); }

/* 看板 */
.kan { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
.kcol { background: rgba(8, 12, 17, .55); border: 1px solid var(--line); border-radius: 12px; padding: 12px; min-height: 240px; transition: border-color .15s, background .15s; }
.kcol.drop { border-color: rgba(94, 234, 212, .6); background: rgba(94, 234, 212, .05); }
.kcol h4 { font-size: 14.5px; font-weight: 600; display: flex; align-items: center; gap: 8px; margin: 2px 4px 12px; }
.kcard { background: rgba(14, 20, 28, .95); border: 1px solid var(--line); border-left: 3px solid var(--dim); border-radius: 9px; padding: 10px 12px; margin-bottom: 9px; cursor: grab; transition: border-color .15s, transform .15s; }
.kcard:hover { border-color: rgba(94, 234, 212, .4); transform: translateY(-1px); }
.kcard.high { border-left-color: var(--red); }
.kcard.mid { border-left-color: var(--amber); }
.kcard.low { border-left-color: var(--blue); }
.kcard.dragging { opacity: .45; }
.kcard .kt { font-size: 14.5px; line-height: 1.45; word-break: break-word; }
.kcard .km { font-size: 12.5px; color: var(--dim); margin-top: 6px; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }

/* 时间线 */
.tl { position: relative; padding-left: 22px; }
.tl::before { content: ''; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 1px; background: linear-gradient(var(--line2), var(--line)); }
.tl .ti { position: relative; padding-bottom: 15px; }
.tl .ti::before { content: ''; position: absolute; left: -20px; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--bg1); border: 2px solid var(--cyan); }
.tl .ti.stage::before { border-color: var(--indigo); }
.tl .ti.status::before { border-color: var(--amber); }
.tl .ti.system::before { border-color: var(--mute); }
.tl .tt { font-size: 12.5px; color: var(--dim); display: flex; gap: 8px; align-items: center; }
.tl .tc { font-size: 14.5px; margin-top: 2px; white-space: pre-wrap; word-break: break-word; }

@media (max-width: 1100px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .g2, .g3, .g4, .form, .kan { grid-template-columns: minmax(0, 1fr); }
  .modal, .modal.wide { max-width: calc(100vw - 20px); max-height: calc(100vh - 20px); }
  .mask { padding: 10px; }
  .bar .inp, .bar .inp.q { min-width: 0; flex: 1 1 140px; }
}
.person-native { position: absolute; width: 1px; height: 1px; padding: 0; opacity: 0; pointer-events: none; }
.person-trigger { display: flex; align-items: center; justify-content: space-between; gap: 10px; cursor: pointer; text-align: left; min-width: 0; }
.person-trigger > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person-trigger:disabled { opacity: .5; cursor: not-allowed; }
.person-summary, .person-selection { display: flex; flex-direction: column; gap: 4px; color: var(--dim); font-size: 12px; margin-top: 6px; }
.person-summary > [data-no-translate], .person-selection > [data-no-translate] { max-height: 48px; overflow: auto; overflow-wrap: anywhere; }
.modal.person-picker { width: 720px; height: min(620px, calc(100dvh - 40px)); }
.person-picker > .mh, .person-picker > .mf { flex: none; }
.person-picker > .mb { display: flex; flex: 1; flex-direction: column; gap: 12px; min-height: 0; overflow: hidden; }
.person-toolbar { display: flex; align-items: center; gap: 8px; flex: none; }
.person-toolbar .inp { min-width: 0; }
.person-columns { display: grid; grid-template-columns: minmax(100px, .65fr) minmax(0, 1.65fr); flex: 1; min-height: 0; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.person-departments, .person-members { min-width: 0; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 8px; }
.person-departments { border-right: 1px solid var(--line); background: var(--panel); }
.person-departments button { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; padding: 10px 8px; border: 0; border-radius: 7px; color: var(--text2); background: transparent; cursor: pointer; text-align: left; }
.person-departments button > span { min-width: 0; overflow-wrap: anywhere; }
.person-departments button[aria-pressed=true], .person-option.selected { background: rgba(94, 234, 212, .1); color: var(--text); }
.person-option { display: flex; align-items: center; gap: 10px; padding: 10px; margin-bottom: 4px; border: 1px solid transparent; border-radius: 7px; cursor: pointer; }
.person-option input { flex: none; accent-color: var(--cyan); width: 16px; height: 16px; }
.person-option > span { min-width: 0; }
.person-option b { display: block; font-size: 14px; font-weight: 500; overflow-wrap: anywhere; }
.person-option small { display: block; color: var(--dim); font-size: 12px; overflow-wrap: anywhere; }
.person-option:has(input:disabled) { opacity: .6; cursor: not-allowed; }
.person-picker :is(button,input):focus-visible, .person-option:focus-within { outline: 2px solid var(--cyan); outline-offset: -2px; }
@media (max-width: 760px) {
  .modal.person-picker { height: calc(100dvh - 20px); }
  .person-picker > .mb { padding: 12px; gap: 9px; }
  .person-columns { grid-template-columns: minmax(88px, .6fr) minmax(0, 1fr); }
  .person-departments, .person-members { padding: 4px; }
  .person-departments button { padding: 9px 5px; gap: 4px; font-size: 12px; }
  .person-option { padding: 9px 5px; gap: 6px; }
}
