* {
  box-sizing: border-box;
}
:root {
  font-family: "Noto Sans CJK KR", "Apple SD Gothic Neo", sans-serif;
  color: #182b36;
  background: #f2f5f7;
  font-size: 14px;
  --teal: #066b68;
  --line: #dbe3e7;
  --muted: #5b6b75;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  outline-offset: 3px;
}
button {
  border: 1px solid #cbd7dd;
  background: white;
  border-radius: 7px;
  padding: 8px 13px;
  color: inherit;
  cursor: pointer;
}
button:hover {
  background: #edf5f5;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.primary {
  background: var(--teal);
  border-color: var(--teal);
  color: white;
}
.primary:hover {
  background: #045552;
}
a {
  color: var(--teal);
  text-underline-offset: 3px;
}
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 18px 30px 14px;
  background: white;
  border-bottom: 1px solid var(--line);
}
.back {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-decoration: none;
  font-weight: 700;
  color: var(--muted);
}
h1 {
  font-size: 23px;
  letter-spacing: -0.7px;
  margin: 3px 0 0;
}
h1 small {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  vertical-align: middle;
  margin-left: 7px;
}
.toolbar {
  display: flex;
  gap: 8px;
  align-items: center;
}
.badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  line-height: 1.5;
  padding: 3px 8px;
  border-radius: 5px;
  background: #e9f3f2;
  color: #11635f;
  white-space: nowrap;
}
.badge.quiet,
.badge.missing {
  background: #edf1f4;
  color: #5f707b;
}
.badge.candidate {
  background: #fff2d7;
  color: #805418;
}
.badge.verified {
  background: #def1e9;
  color: #176349;
}
.badge.rejected {
  background: #f9e8e6;
  color: #91463d;
}
.notice {
  margin: 0;
  padding: 9px 30px;
  color: var(--muted);
  font-size: 12px;
  min-height: 33px;
}
.notice.error {
  color: #9c3737;
  background: #fff1ef;
}
main {
  padding: 0 30px 30px;
  max-width: 1660px;
  margin: auto;
}
.kpis {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin: 0 0 20px;
}
.kpi {
  padding: 14px 17px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.kpi span {
  color: var(--muted);
  font-size: 12px;
}
.kpi strong {
  font-size: 24px;
  font-weight: 650;
}
.kpi:first-child {
  border-left: 3px solid var(--teal);
}
.workspace {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
aside {
  position: sticky;
  top: 16px;
  padding: 16px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
}
.list-heading {
  font-size: 12px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  margin: 0 4px 12px;
}
.list-heading span {
  font-weight: 400;
  color: var(--muted);
}
#search {
  width: 100%;
  padding: 10px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fafb;
  margin-bottom: 12px;
  font-size: 12px;
}
#brand-list {
  display: grid;
  gap: 5px;
}
.brand-card {
  width: 100%;
  text-align: left;
  padding: 13px 10px;
  border: 1px solid transparent;
  border-radius: 7px;
}
.brand-card.selected {
  background: #edf6f4;
  border-color: #a3c7c2;
}
.brand-card .row {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  align-items: center;
  margin-bottom: 7px;
}
.brand-card strong {
  font-size: 13px;
}
.brand-card p {
  margin: 0;
  font-size: 10px;
  color: var(--muted);
}
#mobile-brand {
  display: none;
}
#detail {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  min-width: 0;
}
#brand-header {
  padding: 22px 24px 16px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.1px;
  color: var(--muted);
  margin: 0 0 7px;
}
h2 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.7px;
}
.heading-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.chips,
.quick-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.quick-links {
  margin-top: 15px;
  gap: 16px;
  font-size: 12px;
}
.quick-links .muted {
  color: #819099;
}
.meta {
  font-size: 12px;
  color: var(--muted);
  margin: 13px 0 0;
  line-height: 1.6;
}
.coverage {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  padding: 0 24px 20px;
}
.coverage-item {
  background: #f8fafb;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-items: flex-start;
  font-size: 11px;
}
#tabs {
  display: flex;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 0 18px;
  overflow: auto;
  scrollbar-width: thin;
}
#tabs button {
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  padding: 13px 13px;
  font-size: 12px;
  white-space: nowrap;
}
#tabs button[aria-selected="true"] {
  border-bottom-color: var(--teal);
  color: var(--teal);
  font-weight: 700;
}
#panel {
  padding: 22px 24px;
  min-height: 245px;
}
h3 {
  margin: 0 0 14px;
  font-size: 15px;
}
h4 {
  margin: 0 0 11px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}
.overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}
.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  min-width: 0;
}
.card strong {
  font-size: 15px;
}
.card p {
  font-size: 12px;
  line-height: 1.7;
  margin: 8px 0 0;
  color: var(--muted);
}
.wide {
  grid-column: 1/-1;
}
.empty {
  border: 1px dashed #c8d6dc;
  border-radius: 7px;
  background: #fafcfc;
  padding: 18px;
}
.empty strong {
  font-size: 13px;
}
.empty p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 7px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  min-width: 640px;
}
th {
  text-align: left;
  font-size: 11px;
  font-weight: 500;
  background: #f4f7f8;
  color: var(--muted);
  white-space: nowrap;
}
th,
td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  line-height: 1.6;
}
tr:last-child td {
  border-bottom: 0;
}
td {
  max-width: 250px;
  overflow-wrap: anywhere;
}
td a {
  display: inline-block;
  margin-right: 7px;
}
.subtle {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
}
.section-note {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
  margin: 0 0 14px;
}
.warning {
  padding: 10px 13px;
  border-radius: 5px;
  background: #fff6e4;
  color: #78531c;
  font-size: 12px;
  line-height: 1.7;
  margin-bottom: 14px;
}
.season-filter {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  margin-bottom: 15px;
}
.season-filter select {
  padding: 7px 28px 7px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
}
.export-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 16px 0;
}
.export-info {
  font-size: 12px;
  color: var(--muted);
  line-height: 2;
  overflow-wrap: anywhere;
}
footer {
  padding: 0 30px 20px;
  max-width: 1660px;
  margin: auto;
  font-size: 11px;
  color: var(--muted);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
[hidden] {
  display: none !important;
}
@media (max-width: 900px) {
  .workspace {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 14px;
  }
  .coverage {
    gap: 5px;
    padding-left: 16px;
    padding-right: 16px;
  }
  .coverage-item {
    padding: 8px 6px;
  }
  #brand-header,
  #panel {
    padding: 18px 16px;
  }
  .top,
  main {
    padding-left: 18px;
    padding-right: 18px;
  }
}
@media (max-width: 760px) {
  .top {
    padding: 14px 16px;
    align-items: flex-start;
    gap: 10px;
  }
  h1 {
    font-size: 20px;
  }
  h1 small {
    display: none;
  }
  .toolbar {
    gap: 5px;
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: 158px;
  }
  .toolbar .badge {
    font-size: 10px;
  }
  .toolbar button {
    font-size: 10px;
    padding: 6px 8px;
  }
  .toolbar .badge {
    flex-basis: 100%;
    margin-left: auto;
    flex-grow: 0;
    width: max-content;
    justify-content: center;
  }
  .notice {
    padding: 8px 16px;
    font-size: 11px;
  }
  main {
    padding: 0 12px 18px;
  }
  .kpis {
    gap: 5px;
    margin-bottom: 12px;
  }
  .kpi {
    padding: 10px 4px;
    flex-direction: column;
    gap: 6px;
    border-radius: 6px;
  }
  .kpi span {
    font-size: 10px;
  }
  .kpi strong {
    font-size: 20px;
  }
  .workspace {
    display: block;
  }
  aside {
    position: static;
    padding: 10px;
    margin-bottom: 12px;
  }
  .list-heading,
  #brand-list {
    display: none;
  }
  #search {
    margin-bottom: 7px;
    padding: 9px;
  }
  #mobile-brand {
    display: block;
    width: 100%;
    padding: 9px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: white;
  }
  .heading-row {
    gap: 9px;
  }
  h2 {
    font-size: 23px;
  }
  .chips {
    gap: 4px;
  }
  .quick-links {
    gap: 10px;
    font-size: 11px;
  }
  .meta {
    font-size: 11px;
  }
  .coverage {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    padding: 0 12px 15px;
    gap: 4px;
  }
  .coverage-item {
    font-size: 9px;
    padding: 8px 4px;
    align-items: center;
  }
  .coverage-item .badge {
    font-size: 9px;
    padding: 2px 5px;
  }
  #tabs {
    padding: 0 8px;
  }
  #tabs button {
    font-size: 11px;
    padding: 12px 10px;
  }
  #panel {
    padding: 17px 13px;
  }
  .overview-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .card {
    padding: 13px;
  }
  .card strong {
    font-size: 14px;
  }
  footer {
    padding: 0 16px 16px;
    line-height: 1.6;
  }
  .table-wrap {
    max-width: 100%;
  }
  table {
    font-size: 11px;
    min-width: 570px;
  }
  .export-actions button {
    font-size: 12px;
  }
  .empty {
    padding: 14px;
  }
}
