/* High-contrast status cards: company, progress, review counts, account state. */
body { background: #f3f4f1; --surface: #fff; --border-strong: #202622; }
.container { max-width: 1320px; }
.main-header { border-bottom: 1px solid #cfd5d0; padding-bottom: 20px; }
.header-right { flex-wrap: wrap; justify-content: flex-end; }
.card { background: #fff; border: 2px solid #252b27; box-shadow: none; padding: 28px; }
.overline { font-size: 11px; letter-spacing: .12em; color: #617369; }
.admin-list-card .list-header h3 { margin-bottom: 10px; font-size: 25px; letter-spacing: -.045em; }
.list-header p { color: #65716a; font-size: 13px; line-height: 1.7; }
.admin-controls-card { margin-bottom: 20px; }
.admin-controls-card > summary { font-size: 15px; font-weight: 750; cursor: pointer; }
.admin-controls-card[open] > summary { margin-bottom: 24px; }
.ws-overview { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin: 28px 0; }
.ws-overview-item { padding: 18px; border: 1px solid #9aa59d; background: #f3f5f2; display: flex; flex-direction: column; gap: 12px; }
.ws-overview-item:first-child { background: #173e32; color: white; }
.ws-overview-item > span { font-size: 14px; font-weight: 800; }
.ws-overview-item strong { font-size: 32px; font-weight: 750; line-height: 1; font-variant-numeric: tabular-nums; }
.ws-overview-item small { margin-left: 8px; font-size: 12px; font-weight: 500; opacity: .75; }
.filter-sort-bar { border-bottom: 1px solid #e1e5e1 !important; gap: 14px !important; }
.filter-group, .sort-group { flex-wrap: wrap; }
#adminCompanyGrid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; margin-top: 20px; }
.ws-company-card { padding: 18px; border: 2px solid #202622; font-family: Pretendard, "Noto Sans KR", sans-serif; background: white; min-width: 0; display: flex; flex-direction: column; transition: border-color .18s, box-shadow .18s, transform .18s; }
.ws-company-card:hover { border-color: #111; box-shadow: 0 5px 18px #173e3210; transform: translateY(-2px); }
.ws-company-card:focus-visible { outline: 3px solid #537bca; outline-offset: 3px; }
.ws-company-card.is-complete { border-color: #138157; background: #f0fbf5; }
.ws-company-card.selected { border-color: #2456c4 !important; background: #edf3ff !important; box-shadow: inset 0 0 0 1px #2456c4; }
.ws-card-heading { display: flex; align-items: flex-start; gap: 12px; min-height: 28px; }
.ws-company-card h4 { flex: 1; font-size: 20px; font-weight: 900; line-height: 1.35; letter-spacing: -.03em; overflow-wrap: anywhere; margin: 0; }
.ws-card-delete { border: 0; background: transparent; color: #929b95; padding: 0 4px; font-size: 21px; cursor: pointer; }
.ws-card-delete:hover { color: #c13737; }
.ws-card-tags { min-height: 26px; display: flex; align-content: flex-start; flex-wrap: wrap; gap: 5px; margin: 8px 0 6px; }
.ws-chip { display: inline-flex; align-items: center; padding: 3px 8px; font-size: 12px; line-height: 1.4; font-weight: 800; white-space: nowrap; }
.ws-chip.neutral { background: #e4e8e4; color: #303d34; }
.ws-chip.success { background: #137c50; color: #fff; }
.ws-chip.warning { background: #fff0df; color: #945513; }
.ws-progress-heading { display: flex; justify-content: space-between; align-items: baseline; margin-top: auto; margin-bottom: 8px; }
.ws-progress-heading > span { font-size: 13px; font-weight: 700; color: #303b33; }
.ws-progress-heading strong { font-size: 34px; line-height: 1; font-weight: 900; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.ws-progress-heading small { font-size: 14px; margin-left: 3px; letter-spacing: 0; }
.ws-progress-track { height: 8px; background: #dce2dc; overflow: hidden; }
.ws-progress-track > span { height: 100%; display: block; background: #151b17; }
.is-complete .ws-progress-track > span { background: #138157; }
.ws-card-metrics { display: grid; grid-template-columns: 1.3fr 1fr 1fr; margin-top: 14px; }
.ws-card-metrics > div { display: flex; flex-direction: column; gap: 8px; padding-left: 10px; border-left: 1px solid #b8c1b9; }
.ws-card-metrics > div:first-child { border: 0; padding-left: 0; }
.ws-card-metrics span { color: #354038; font-size: 13px; font-weight: 700; }
.ws-card-metrics strong { font-size: 23px; font-weight: 850; line-height: 1; font-variant-numeric: tabular-nums; }
.ws-card-metrics small { font-size: 13px; font-weight: 600; color: #424f46; margin-left: 3px; }
.ws-card-metrics .needs-review { background: #fff0d9; padding-top: 5px; padding-bottom: 5px; margin-top: -5px; margin-bottom: -5px; }
.needs-review strong { color: #994400; }
.ws-account-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 12px; margin-top: 14px; border-top: 1px solid #b8c1b9; }
.ws-chip.account-ready { background: #e6edff; color: #234ea0; border: 1px solid #839bd0; }
.ws-chip.account-empty { background: #fff; color: #454c46; border: 1px solid #9ca69e; }
.ws-account-id { font-size: 12px; font-weight: 600; color: #454f48; overflow-wrap: anywhere; text-align: right; }
.ws-empty { grid-column: 1/-1; padding: 40px; text-align: center; color: #65716a; }
body.mosaic-active .ws-account-id { filter: blur(6px); user-select: none; }
#companyAccountEditor { max-width: 100%; border: 1px solid #d4dcd5 !important; background: #f6f8f4 !important; }
#companyAccountEditor > div { flex-wrap: wrap; }
#companyAccountEditor input { min-width: 110px; flex: 1; }
#companyAccountEditor .btn { height: 32px; padding: 0 10px; }
.dashboard-grid { grid-template-columns: 1.3fr 1fr; gap: 20px; align-items: stretch; }
.stats-card .progress-container { margin-top: 30px; gap: 24px; }
.stats-card .info-item { padding: 14px 0; }
.stats-card .info-item .val { font-size: 22px; font-variant-numeric: tabular-nums; }
.contract-card { display: flex; flex-direction: column; }
.contract-card .contract-footer { margin-top: auto; }
.contract-card .status-desc { font-size: 14px; line-height: 1.9; }
.data-table th { font-size: 14px; color: #303c33; background: #f2f5f1; }
.data-table td { padding-top: 18px; padding-bottom: 18px; vertical-align: middle; }
.data-table td a { line-height: 1.65; overflow-wrap: anywhere; }
.list-card .table-container { overflow-x: auto; }
@media (max-width: 1000px) {
  #adminCompanyGrid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .dashboard-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .card { padding: 18px; }
  .main-header { align-items: flex-start; gap: 16px; }
  .header-right { gap: 6px !important; }
  .ws-overview { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin: 20px 0; }
  .ws-overview-item { padding: 16px; }
  .ws-overview-item strong { font-size: 27px; }
  #adminCompanyGrid { grid-template-columns: minmax(0,1fr); gap: 12px; }
  .admin-list-card > .list-header { align-items: flex-start !important; flex-direction: column; gap: 16px; }
  .ws-card-heading { min-height: 26px; }
  .ws-card-tags { min-height: 24px; }
  .stats-card .progress-container { flex-direction: column; }
  .stats-card .progress-info { width: 100%; }
  .contract-card .contract-header { flex-wrap: wrap !important; }
  #companyAccountEditor { min-width: 0 !important; width: 100% !important; }
}
@media (prefers-reduced-motion: reduce) { .ws-company-card { transition: none; } .ws-company-card:hover { transform: none; } }
