.hairline { width: 100%; height: 1px; background: var(--border-default); margin: 20px 0; }
.profile-card, .form-card { max-width: 760px; }
.me__link { color: inherit; text-decoration: none; min-width: 0; }
.me__link:hover { text-decoration: none; color: inherit; }
.me__link:hover .me__name { color: var(--gold-200); }

.meter {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border: 0;
  border-radius: 2px;
  background: var(--navy-600);
  overflow: hidden;
}
.meter::-webkit-progress-bar { background: var(--navy-600); border-radius: 2px; }
.meter::-webkit-progress-value { background: var(--accent); border-radius: 2px; }
.meter::-moz-progress-bar { background: var(--accent); border-radius: 2px; }
.meter--full::-webkit-progress-value { background: var(--success); }
.meter--full::-moz-progress-bar { background: var(--success); }

.list { display: flex; flex-direction: column; }
.list__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-primary);
  text-decoration: none;
  font-size: 13px;
  min-width: 0;
}
.list__item:first-child { border-top: 0; }
a.list__item:hover { background: var(--surface-hover); text-decoration: none; color: var(--text-primary); }
.list__icon {
  width: 30px;
  height: 30px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}
.list__icon .ic { width: 15px; height: 15px; }

.notice {
  --c: var(--gold-300);
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid color-mix(in srgb, var(--c) 35%, transparent);
  background: color-mix(in srgb, var(--c) 8%, var(--surface-1));
  color: var(--text-primary);
}
.notice > .ic { color: var(--c); margin-top: 2px; }
.notice--danger { --c: var(--danger-fg); }
.notice--gold { --c: var(--gold-300); }
.row--end { justify-content: flex-end; }
.table__sub { display: block; margin-top: 2px; }
.stat--link { color: var(--text-primary); text-decoration: none; transition: border-color var(--dur-fast); }
.stat--link:hover { border-color: var(--border-strong); background: var(--surface-hover); text-decoration: none; color: var(--text-primary); }
.stat--link:hover .stat__label { text-decoration: underline; }

.division {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 20px;
  padding: 0 6px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-default);
  background: var(--info-subtle);
  color: var(--info-fg);
  font: 600 11px/1 var(--font-sans);
  white-space: nowrap;
}

.certs { display: flex; flex-wrap: wrap; gap: 3px; max-width: 360px; }
.cert {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 5px;
  border-radius: 3px;
  border: 1px solid var(--border-subtle);
  color: var(--text-disabled);
  font: 600 11px/1 var(--font-sans);
  white-space: nowrap;
}
.cert.is-on { color: var(--success-fg); border-color: color-mix(in srgb, var(--success) 40%, transparent); background: var(--success-subtle); }
.cert--lg { height: 28px; padding: 0 10px; font-size: 12px; border-radius: var(--radius-sm); justify-content: center; }

.rank--staff { background: color-mix(in srgb, var(--info) 16%, transparent); color: var(--blue-400); border-color: color-mix(in srgb, var(--info) 45%, transparent); }
.rank--sgt { background: var(--navy-600); color: var(--silver-50); border-color: var(--silver-400); }
.avatar--24 { --size: 24px; }
.prose { white-space: pre-line; color: var(--text-secondary); overflow-wrap: anywhere; }
.table tr.is-inactive td { opacity: .6; }
.table tr.is-inactive td:last-child { opacity: 1; }

.table tr.is-suspended { background: color-mix(in srgb, var(--danger) 5%, transparent); }
.officer-link { color: var(--text-primary); font-weight: 600; }
.officer-link__badge { font: 400 12px/1 var(--font-mono); color: var(--text-muted); margin-right: 6px; }
.table .input--sm, .table .select--sm { min-width: 0; }
.cell-input { width: 100%; min-width: 90px; }
.input--num { width: 110px; text-align: right; }
.input--badge { width: 76px; }
.input--short { width: 110px; }
.input--role { min-width: 190px; }
.center, .table th.center, .table td.center { text-align: center; }
.hairline--left { width: 100%; margin: 6px 0; background: var(--border-subtle); }
.table tr.is-current td { background: var(--accent-subtle); }
.fieldset { margin: 0; padding: 14px 16px 16px; border: 1px solid var(--border-default); border-radius: var(--radius-md); }
.fieldset legend { padding: 0 6px; font: 600 13px/1 var(--font-sans); color: var(--text-primary); }
.copy-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 6px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xs);
  background: var(--surface-1);
  color: var(--text-primary);
  font: 500 12px/1.4 var(--font-sans);
  cursor: pointer;
  max-width: 100%;
  overflow-wrap: anywhere;
  text-align: left;
}
.copy-chip:hover { border-color: var(--border-gold); color: var(--gold-200); }
.copy-chip .ic { color: var(--text-muted); flex: none; }
.role-chip { display: inline-flex; padding: 2px 6px; border-radius: var(--radius-xs); background: var(--surface-active); font: 400 12px/1.3 var(--font-sans); color: var(--text-muted); }
.role-chip.is-rank { background: var(--accent-subtle); color: var(--gold-200); font-family: var(--font-sans); font-weight: 600; }
.raw { margin-top: 14px; border-top: 1px solid var(--border-subtle); padding-top: 12px; }
.raw summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font: 600 12px/1 var(--font-sans); color: var(--text-secondary); }
.raw__json { margin: 6px 0 0; padding: 10px 12px; max-height: 280px; overflow: auto; border-radius: var(--radius-sm); background: var(--navy-950); border: 1px solid var(--border-subtle); font: 400 11px/1.5 var(--font-mono); color: var(--silver-200); white-space: pre; }
.grid-stats--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 0; }
.ctx__item--danger { color: var(--danger-fg); }
.ctx__item--danger:hover, .ctx__item--danger:focus-visible { background: var(--danger-subtle); color: var(--danger-fg); }

.req { color: var(--danger-fg); }
.form-section { display: flex; flex-direction: column; gap: 12px; }
.form-section + .form-section { padding-top: 18px; border-top: 1px solid var(--border-subtle); }
.form-section__title { display: flex; align-items: center; gap: 8px; padding-bottom: 6px; border-bottom: 1px solid var(--border-subtle); font: 600 14px/1.3 var(--font-sans); color: var(--text-primary); }

.signers { border: 1px solid var(--border-default); border-radius: var(--radius-md); background: var(--surface-1); }
.signers[open] { border-color: var(--border-strong); }
.signers__summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  cursor: pointer;
  list-style: none;
  font: 600 13px/1.2 var(--font-sans);
  color: var(--text-primary);
  user-select: none;
}
.signers__summary::-webkit-details-marker { display: none; }
.signers__summary:hover { color: var(--gold-200); }
.signers__chev { transition: transform var(--dur-base) var(--ease-out); color: var(--text-muted); }
.signers[open] .signers__chev { transform: rotate(180deg); }
.signers__count { min-width: 20px; height: 20px; padding: 0 6px; display: inline-flex; align-items: center; justify-content: center; border-radius: 99px; background: var(--accent); color: var(--text-on-accent); font: 600 12px/1 var(--font-sans); }
.signers__body { display: flex; flex-direction: column; gap: 12px; padding: 4px 12px 14px; max-height: 320px; overflow-y: auto; }
.signers__group { display: flex; flex-direction: column; gap: 6px; }
.signers__label { font: var(--text-label); color: var(--text-muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 9px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface-1);
  color: var(--text-primary);
  font: 400 13px/1 var(--font-sans);
  white-space: nowrap;
}
.chip:hover span { border-color: var(--border-strong); color: var(--text-primary); }
.chip input:checked + span { border-color: var(--accent); background: var(--accent); color: var(--text-on-accent); }
.chip input:checked + span::before { content: "✓"; font-weight: 700; }
.chip input:focus-visible + span { box-shadow: var(--focus-ring); }
.chip--group span { border-style: dashed; }

.show-xs { display: none; }
.seg {
  display: inline-flex;
  gap: 0;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-1);
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}
.seg::-webkit-scrollbar { display: none; }
.seg__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 10px;
  border-left: 1px solid var(--border-default);
  color: var(--text-primary);
  font: 400 13px/1 var(--font-sans);
  white-space: nowrap;
  text-decoration: none;
}
.seg__item:first-child { border-left: 0; }
.seg__item:hover { color: var(--text-primary); background: var(--surface-hover); text-decoration: none; }
.seg__item.is-active, .seg__item.is-active:hover { background: var(--accent); color: var(--text-on-accent); }

.ins {
  --ins-c: var(--silver-200);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  color: var(--ins-c);
  background: var(--surface-3);
  border: 1px solid var(--border-default);
}
.ins--gold { --ins-c: var(--gold-300); background: var(--accent-subtle); border-color: var(--border-gold); }
.ins--lg { width: 36px; height: 36px; }
.ins--none { visibility: hidden; }
.ins__svg { width: 22px; height: 22px; }
.ins--lg .ins__svg { width: 26px; height: 26px; }
.ins--stars { width: auto; min-width: 30px; padding: 0 6px; }
.ins--lg.ins--stars { min-width: 36px; padding: 0 7px; }
.ins__svg--stars { width: auto; height: 11px; }
.ins--lg .ins__svg--stars { width: auto; height: 13px; }

.rank__ins { display: inline-flex; }
.rank__ins .ins__svg { width: 12px; height: 12px; filter: none; }
.rank__ins .ins__svg--stars { width: auto; height: 8px; }
.meter--thin { height: 4px; }

.badge-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 22px;
  padding: 0 6px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-default);
  background: var(--surface-3);
  font: 400 13px/1 var(--font-sans);
  color: var(--text-primary);
}
.badge-no::before { content: "#"; opacity: .45; margin-right: 1px; }
.badge-no--empty { border-style: dashed; border-color: var(--border-strong); background: none; color: var(--text-disabled); }

.person { display: flex; align-items: center; gap: 10px; min-width: 0; }
.person__text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.person__name { font: 600 14px/1.3 var(--font-sans); color: var(--text-primary); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person__name:hover { text-decoration: none; }
.person__sub { display: inline-flex; align-items: center; gap: 5px; font: 400 12px/1.3 var(--font-sans); color: var(--text-muted); white-space: nowrap; }
.person__flag { display: inline-flex; align-items: center; gap: 4px; color: var(--text-disabled); }
.person__flag--warn { color: var(--warning-fg); font-family: var(--font-sans); }

.sdot { --c: var(--navy-400); display: inline-flex; align-items: center; gap: 6px; font: 400 13px/1 var(--font-sans); color: var(--text-secondary); white-space: nowrap; }
.sdot::before { content: ""; width: 8px; height: 8px; border-radius: 99px; background: var(--c); }
.sdot--success { --c: var(--success); }
.sdot--warning { --c: var(--warning); color: var(--warning-fg); }
.sdot--danger { --c: var(--danger); color: var(--danger-fg); }
.sdot--info { --c: var(--info); color: var(--info-fg); }

@media (max-width: 640px) {
  .show-xs { display: block; margin-top: 2px; }
  .badge-no { min-width: 44px; font-size: 12px; }
}
.topbar__me:focus-visible { outline: 0; box-shadow: var(--focus-ring); }
.toast--link { color: inherit; text-decoration: none; cursor: pointer; }
.toast--link:hover { color: inherit; text-decoration: none; background: var(--surface-hover); }
.toast--gold { --c: var(--gold-300); }
.toast--info { --c: var(--info-fg); }
.toast--neutral { --c: var(--text-muted); }

.notice--warning { --c: var(--warning-fg); }
.notice--info { --c: var(--info-fg); }
.nav-item__ext { margin-left: auto; width: 13px; height: 13px; color: var(--text-disabled); }

.mt-8 { margin-top: 8px; }

.danger { color: var(--danger-fg); }
.mt-24 { margin-top: 24px; }
.section-title { font: var(--text-h3); margin-bottom: 12px; }
@keyframes blink-alarm { 0%, 100% { box-shadow: 0 0 0 1px color-mix(in srgb, var(--danger) 55%, transparent), 0 0 0 0 color-mix(in srgb, var(--danger) 0%, transparent); } 50% { box-shadow: 0 0 0 2px var(--danger), 0 0 0 0 transparent; } }
@keyframes blink-soft { 50% { opacity: .35; } }
.is-blinking { animation: blink-alarm 1.1s ease-in-out infinite; }
.nav-item__count.is-blinking { animation: blink-soft 1s steps(2, jump-none) infinite; }
.nav-item--alarm { color: var(--danger-fg); }
.nav-item--alarm .ic { color: var(--danger-fg); animation: blink-soft 1s ease-in-out infinite; }
a.notice { color: var(--text-primary); }
a.notice:hover { text-decoration: none; filter: brightness(1.1); }

.tab__count--alert { background: var(--danger); color: #fff; }
.seg--block { display: flex; }
.seg--block .seg__item { flex: 1; justify-content: center; }
.seg__radio { position: relative; padding: 0; cursor: pointer; }
.seg__radio input { position: absolute; opacity: 0; pointer-events: none; }
.seg__radio span { display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 100%; height: 100%; padding: 0 12px; border-radius: var(--radius-sm); }
.seg__radio input:checked + span { background: var(--accent); color: var(--text-on-accent); }
.seg__radio input:focus-visible + span { box-shadow: var(--focus-ring); }

@media (prefers-reduced-motion: reduce) {
  .is-blinking, .clear-card.is-wanted, .clear-card__wanted, .nav-item--alarm .ic, .nav-item__count.is-blinking { animation: none; }
}
.toolbar .toolbar__search.grow { width: auto; flex: 1 1 320px; }
.site-notice .confirm__text { white-space: normal; }
.site-notice--info .confirm__icon { color: var(--info-fg); }
.site-notice--warning .confirm__icon { color: var(--warning-fg); }
.site-notice--danger .confirm__icon { color: var(--danger-fg); }
.site-notice--warning { border-top: 3px solid var(--warning); }
.site-notice--danger { border-top: 3px solid var(--danger); }
.site-notice--info { border-top: 3px solid var(--info); }
