:root {
  --ink: #202936;
  --muted: #7b818d;
  --subtle: #a2a7b0;
  --line: #e5e7eb;
  --paper: #ffffff;
  --canvas: #f5f6f8;
  --navy: #202936;
  --navy-soft: #2a3441;
  --purple: #6754c7;
  --purple-soft: #f0edff;
  --teal: #137d82;
  --teal-soft: #e8f6f4;
  --orange: #c87526;
  --orange-soft: #fff3e3;
  --red: #be4a55;
  --red-soft: #fff0f1;
  --shadow: 0 12px 32px rgba(33, 42, 55, .06);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--canvas); }
body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: "Segoe UI", "Noto Sans KR", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }

.app-shell { display: flex; min-height: 100vh; }
.sidebar {
  width: 246px;
  min-width: 246px;
  padding: 28px 17px 19px;
  display: flex;
  flex-direction: column;
  background: var(--navy);
  color: #f5f7fa;
}
.brand { display: flex; align-items: center; gap: 11px; padding: 0 10px; }
.brand-mark {
  width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 10px; background: #d6d0ff; color: #3c3184;
  font-weight: 800; letter-spacing: -.5px;
}
.brand strong { display: block; font-size: 15px; letter-spacing: -.3px; }
.brand span { display: block; color: #9da7b5; font-size: 10px; margin-top: 2px; }
.main-nav { display: grid; gap: 5px; margin-top: 52px; }
.nav-item {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 12px;
  color: #aab3bf; border: 0; border-radius: 7px; background: transparent;
  text-align: left; font-size: 12px; font-weight: 600;
}
.nav-item:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav-item.active { color: #fff; background: rgba(214,208,255,.15); }
.nav-icon { width: 17px; color: #c5bdff; font-size: 15px; text-align: center; }
.sidebar-actions { display: grid; gap: 9px; margin-top: auto; }
.sidebar-action {
  width: 100%; padding: 11px 13px; border-radius: 7px; border: 1px solid #46515f;
  color: #f1f3f7; background: transparent; text-align: left; font-size: 12px; font-weight: 700;
}
.sidebar-action:hover { background: #33404d; }
.sidebar-action.light { border-color: #cfc9ff; background: #d6d0ff; color: #403581; }
.sidebar-action.light:hover { background: #e3dfff; }
.sidebar-action span { margin-right: 7px; font-size: 15px; }
.schedule-card { margin-top: 8px; padding: 15px; border-top: 1px solid #3a4654; color: #d9dee5; }
.schedule-card strong, .schedule-card span, .schedule-card small { display: block; }
.schedule-card strong { margin-top: 12px; font-size: 13px; }
.schedule-card span { color: #fff; font-size: 12px; margin-top: 2px; }
.schedule-card small { color: #86919f; font-size: 10px; margin-top: 5px; }
.schedule-status { color: #90d2bc; font-size: 10px; font-weight: 700; }
.schedule-status i { display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: #71c5a5; vertical-align: 1px; }
.sidebar-foot { display: flex; align-items: center; gap: 7px; color: #7e8997; font-size: 10px; padding: 18px 10px 0; }
.connection-dot { width: 6px; height: 6px; border-radius: 50%; background: #71c5a5; }
.icon-button { margin-left: auto; border: 0; background: transparent; color: #7e8997; font-size: 16px; }
.icon-button:hover { color: #fff; }

.main-content { min-width: 0; flex: 1; padding: 34px 5.4vw 64px; }
.topbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; max-width: 1370px; margin: 0 auto 30px; }
.eyebrow { color: var(--purple); font-size: 10px; font-weight: 800; letter-spacing: 1.4px; margin: 0 0 9px; }
h1 { margin: 0; font-size: 28px; letter-spacing: -1px; line-height: 1.15; }
.page-subtitle { color: var(--muted); font-size: 12px; margin: 7px 0 0; }
.topbar-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.button {
  min-height: 38px; display: inline-flex; align-items: center; gap: 7px; padding: 0 13px;
  border-radius: 6px; font-size: 11px; font-weight: 700; transition: .15s ease;
}
.button span { font-size: 14px; }
.button.primary { border: 1px solid var(--purple); color: #fff; background: var(--purple); }
.button.primary:hover { background: #5643b4; }
.button.outline { border: 1px solid #d4cef3; color: #5545ad; background: #fbfaff; }
.button.outline:hover { background: var(--purple-soft); }
.button.secondary { border: 1px solid var(--line); color: #58616d; background: #fff; }
.button.secondary:hover { border-color: #cbd0d8; background: #fafbfc; }
.button.small { min-height: 32px; padding: 0 10px; font-size: 10px; }
.button.danger { border-color: #f0c8cc; color: var(--red); background: var(--red-soft); }
.toast {
  position: fixed; z-index: 80; top: 23px; right: 25px; max-width: 360px;
  padding: 11px 15px; border: 1px solid #d9d3f4; border-radius: 7px;
  color: #4e409b; background: #fff; box-shadow: var(--shadow);
  font-size: 11px; opacity: 0; transform: translateY(-8px); pointer-events: none; transition: .2s ease;
}
.toast.show { opacity: 1; transform: translateY(0); }

.view-wrap { max-width: 1370px; margin: 0 auto; }
.kpi-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 11px; }
.kpi {
  min-height: 124px; padding: 18px 18px 15px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--paper); box-shadow: var(--shadow);
}
.kpi.accent { border-color: #d8d1ff; background: #fbfaff; }
.kpi-label { color: #707783; font-size: 11px; }
.kpi-value { display: block; margin-top: 13px; font-size: 27px; letter-spacing: -.8px; }
.kpi-value em { color: var(--subtle); font-size: 11px; font-style: normal; margin-left: 4px; }
.kpi-note { display: block; margin-top: 5px; color: #a2a7b0; font-size: 10px; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(330px, .9fr); gap: 14px; margin-top: 14px; }
.panel { min-width: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); box-shadow: var(--shadow); }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 21px 22px 14px; border-bottom: 1px solid #f0f1f3; }
.panel-head h2 { margin: 0; font-size: 14px; letter-spacing: -.3px; }
.panel-head p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.text-button { border: 0; background: transparent; color: var(--purple); font-size: 10px; font-weight: 700; padding: 3px 0; }
.text-button:hover { color: #3e2e95; }
.finding-list, .idea-list, .report-list { display: grid; }
.finding-row, .idea-row {
  width: 100%; display: flex; align-items: flex-start; gap: 13px; padding: 16px 22px;
  border: 0; border-bottom: 1px solid #f0f1f3; background: #fff; text-align: left;
}
.finding-row:last-child, .idea-row:last-child { border-bottom: 0; }
.finding-row:hover, .idea-row:hover { background: #fbfbfd; }
.finding-rank { width: 25px; min-width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; color: var(--purple); background: var(--purple-soft); font-size: 10px; font-weight: 800; }
.finding-company, .item-kicker { color: var(--muted); font-size: 10px; }
.finding-title, .idea-title { margin: 4px 0 2px; color: var(--ink); font-size: 12px; font-weight: 800; }
.finding-copy, .idea-copy { margin: 0; color: #737984; font-size: 11px; line-height: 1.55; }
.finding-arrow { margin-left: auto; color: #b4bac2; font-size: 19px; }
.score-badge, .type-badge, .status-badge {
  display: inline-flex; align-items: center; min-height: 21px; padding: 0 7px;
  border-radius: 4px; font-size: 9px; font-weight: 800; white-space: nowrap;
}
.score-5 { color: var(--red); background: var(--red-soft); }
.score-3 { color: var(--orange); background: var(--orange-soft); }
.score-1 { color: #49728b; background: #edf5f8; }
.type-badge { color: #536276; background: #edf1f5; }
.status-badge { color: var(--teal); background: var(--teal-soft); }
.status-badge.partial { color: var(--orange); background: var(--orange-soft); }
.operations { padding: 22px; }
.operation-callout { padding: 16px; border: 1px solid #e0dafb; background: #faf9ff; border-radius: 7px; }
.operation-callout .callout-label { color: var(--purple); font-size: 10px; font-weight: 800; }
.operation-callout h3 { margin: 8px 0 3px; font-size: 16px; letter-spacing: -.5px; }
.operation-callout p { margin: 0; color: var(--muted); font-size: 11px; }
.operation-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.meta-box { padding: 11px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.meta-box span, .meta-box strong { display: block; }
.meta-box span { color: var(--muted); font-size: 9px; }
.meta-box strong { margin-top: 3px; font-size: 11px; }
.operation-actions { display: flex; gap: 7px; margin-top: 14px; }
.operation-actions .button { flex: 1; justify-content: center; }
.policy-list { display: grid; gap: 10px; margin-top: 20px; }
.policy-item { display: flex; align-items: flex-start; gap: 8px; color: #6e7580; font-size: 10px; }
.policy-item b { color: var(--teal); font-size: 12px; line-height: 1.2; }
.table-panel { margin-top: 14px; }
.toolbar { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; padding: 14px 22px; border-bottom: 1px solid #f0f1f3; }
.search-box { display: flex; align-items: center; gap: 7px; min-width: 190px; flex: 1; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; color: #9ba1aa; background: #fff; }
.search-box input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--ink); font-size: 11px; }
.filter-tabs { display: flex; gap: 4px; }
.filter-tab { padding: 7px 10px; border: 1px solid transparent; border-radius: 5px; color: var(--muted); background: transparent; font-size: 10px; font-weight: 700; }
.filter-tab:hover { background: #f7f7fa; }
.filter-tab.active { border-color: #dcd6fa; color: var(--purple); background: var(--purple-soft); }
.table-head, .table-row { display: grid; grid-template-columns: 1.15fr 1.5fr .85fr 1.25fr .65fr; gap: 16px; align-items: center; }
.table-head { padding: 11px 22px; color: #9ba1a9; font-size: 9px; font-weight: 800; letter-spacing: .2px; }
.table-row { width: 100%; padding: 14px 22px; border: 0; border-top: 1px solid #f0f1f3; background: #fff; text-align: left; }
.table-row:hover { background: #fbfbfd; }
.table-cell strong, .table-cell small { display: block; }
.table-cell strong { font-size: 11px; }
.table-cell small { margin-top: 3px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.table-arrow { color: #b3bac3; text-align: right; }
.empty-state { padding: 38px 22px; text-align: center; color: var(--muted); }
.empty-state strong { display: block; color: var(--ink); font-size: 13px; }
.empty-state p { margin: 7px 0 16px; font-size: 11px; }

.detail-page { max-width: 900px; }
.back-button { border: 0; padding: 0; color: var(--purple); background: transparent; font-size: 11px; font-weight: 700; }
.detail-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 18px 0 22px; }
.detail-head h2 { margin: 8px 0 5px; font-size: 24px; letter-spacing: -.8px; }
.detail-head p { margin: 0; color: var(--muted); font-size: 11px; }
.detail-metrics { display: flex; gap: 16px; color: var(--muted); font-size: 11px; }
.detail-metrics strong { color: var(--ink); font-size: 14px; margin-left: 3px; }
.detail-section { padding: 22px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: var(--shadow); margin-bottom: 13px; }
.detail-section > h3 { margin: 0 0 15px; font-size: 13px; }
.summary-lines { display: grid; gap: 10px; margin: 0; color: #5f6670; font-size: 12px; }
.case-card { padding: 17px 0; border-top: 1px solid #eef0f2; }
.case-card:first-of-type { border-top: 0; padding-top: 0; }
.case-top { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.case-top h4 { margin: 3px 0 0; font-size: 13px; }
.case-card h5 { margin: 14px 0 4px; color: var(--purple); font-size: 10px; }
.case-card p { margin: 0; color: #646b75; font-size: 11px; line-height: 1.65; }
.fact-list { display: grid; gap: 6px; margin: 6px 0 0; padding-left: 17px; color: #646b75; font-size: 11px; }
.fact-list li::marker { color: var(--purple); }
.source-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 13px; }
.source-link { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; padding: 6px 8px; border: 1px solid #e3e6ea; border-radius: 5px; color: #66717d; background: #fafbfc; font-size: 9px; text-decoration: none; }
.source-link:hover { border-color: #c7bff1; color: var(--purple); }
.case-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 13px; }
.bookmark-button { padding: 7px 9px; border: 1px solid #d9d2f6; border-radius: 5px; color: #5746af; background: #faf9ff; font-size: 10px; font-weight: 700; white-space: nowrap; }
.bookmark-button:hover { background: var(--purple-soft); }
.bookmark-button.saved { border-color: #cce2d9; color: #33735d; background: #f2faf6; }
.screenshot-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.screenshot-card { min-width: 0; overflow: hidden; border: 1px solid #e1e3e8; border-radius: 6px; color: #656d78; background: #fafbfc; text-decoration: none; }
.screenshot-card:hover { border-color: #c9c1ee; }
.screenshot-card img { display: block; width: 100%; height: 130px; object-fit: cover; background: #eef0f3; }
.screenshot-card strong, .screenshot-card small { display: block; padding: 7px 9px 0; }
.screenshot-card small { overflow: hidden; padding-top: 2px; padding-bottom: 9px; color: #989fa8; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.screenshot-card strong { color: #5b4cad; font-size: 9px; }
.shot-fallback { display: none; min-height: 130px; place-items: center; padding: 14px; color: #8d949d; background: #f0f2f4; font-size: 9px; text-align: center; }
.shot-fallback.visible { display: grid; }
.idea-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.idea-card { padding: 15px; border: 1px solid #e7e8eb; border-radius: 7px; background: #fcfcfd; }
.idea-card h4 { margin: 9px 0 5px; font-size: 12px; }
.idea-card p { margin: 0; color: #69707a; font-size: 10px; line-height: 1.6; }
.idea-card small { display: block; margin-top: 10px; color: var(--muted); font-size: 9px; }
.idea-card .bookmark-button { width: 100%; margin-top: 12px; }
.limitation-list { display: grid; gap: 8px; margin: 0; padding-left: 17px; color: #737984; font-size: 11px; }
.screenshot-strip { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.screenshot-chip { padding: 6px 8px; border: 1px dashed #cfc8f0; border-radius: 5px; color: #6655ba; background: #fbfaff; font-size: 9px; text-decoration: none; }
.screenshot-chip:hover { border-style: solid; background: var(--purple-soft); }
.screenshot-uploader { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-top: 13px; padding: 10px; border: 1px solid #e7e4f7; border-radius: 6px; background: #fcfbff; }
.screenshot-uploader > div { display: grid; min-width: 135px; margin-right: auto; }
.screenshot-uploader strong { color: #5748a5; font-size: 10px; }
.screenshot-uploader small { color: var(--muted); font-size: 9px; }
.screenshot-uploader select, .screenshot-uploader input { max-width: 180px; padding: 7px; border: 1px solid #dedee5; border-radius: 5px; color: #606874; background: #fff; font-size: 9px; }
.screenshot-upload-note { margin-top: 11px; color: #4a816b; font-size: 9px; }

.bookmark-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.bookmark-card { padding: 17px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: var(--shadow); }
.bookmark-card:hover { border-color: #d3cdf3; }
.hidden-result { display: none; }
.bookmark-card h3 { margin: 9px 0 4px; font-size: 13px; }
.bookmark-card p { min-height: 34px; margin: 0; color: #6e7580; font-size: 11px; line-height: 1.5; }
.bookmark-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 15px; color: var(--muted); font-size: 9px; }
.tag-row { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }

.modal-backdrop { position: fixed; z-index: 70; inset: 0; display: grid; place-items: center; padding: 22px; background: rgba(25, 31, 41, .54); }
.modal {
  width: min(640px, 100%); max-height: calc(100vh - 44px); overflow: auto;
  border: 1px solid #dedfe3; border-radius: 10px; background: #fff; box-shadow: 0 24px 80px rgba(21, 28, 38, .22);
}
.modal.wide { width: min(820px, 100%); }
.modal-head { display: flex; justify-content: space-between; gap: 20px; padding: 23px 25px 19px; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 7px 0 4px; font-size: 19px; letter-spacing: -.5px; }
.modal-head p { margin: 0; color: var(--muted); font-size: 10px; }
.modal-close { width: 28px; height: 28px; border: 0; border-radius: 5px; color: #818894; background: transparent; font-size: 20px; }
.modal-close:hover { background: #f3f4f6; color: var(--ink); }
.modal-body { padding: 20px 25px; }
.modal-footer { display: flex; justify-content: flex-end; gap: 8px; padding: 15px 25px; border-top: 1px solid var(--line); background: #fafbfc; }
.modal-label { display: block; margin-bottom: 15px; color: #565e69; font-size: 10px; font-weight: 800; }
.modal-input, .modal-select, .modal-textarea {
  display: block; width: 100%; margin-top: 7px; padding: 10px 11px; border: 1px solid #dcdfe4;
  border-radius: 6px; outline: none; color: var(--ink); background: #fff; font-size: 11px;
}
.modal-input:focus, .modal-select:focus, .modal-textarea:focus { border-color: #a99fe7; box-shadow: 0 0 0 3px #f0edff; }
.modal-textarea { min-height: 220px; resize: vertical; line-height: 1.55; }
.modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.section-label { margin: 21px 0 9px; color: #59616d; font-size: 10px; font-weight: 800; }
.info-banner { padding: 13px 14px; border: 1px solid #e0dbfa; border-radius: 6px; color: #6555b5; background: #faf9ff; font-size: 10px; line-height: 1.55; }
.step-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 13px; }
.step { padding: 11px; border: 1px solid var(--line); border-radius: 6px; color: #737984; background: #fbfcfd; font-size: 10px; }
.step b { display: block; margin-bottom: 3px; color: var(--purple); font-size: 12px; }
.target-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; }
.target-option { display: flex; align-items: flex-start; gap: 7px; padding: 10px; border: 1px solid var(--line); border-radius: 6px; color: #5d6570; background: #fff; font-size: 10px; cursor: pointer; }
.target-option:has(input:checked) { border-color: #c8c1ef; color: #5242aa; background: #faf9ff; }
.target-option input { accent-color: var(--purple); margin: 2px 0 0; }
.target-option small { display: block; margin-top: 2px; color: #9aa1aa; font-size: 9px; line-height: 1.4; }
.target-custom { display: flex; gap: 7px; margin-top: 8px; }
.target-custom .modal-input { margin-top: 0; }
.custom-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.custom-tag { padding: 5px 7px; border: 1px solid #dcd6fa; border-radius: 99px; color: #5b4cad; background: #faf9ff; font-size: 9px; }
.custom-tag button { padding: 0 0 0 5px; border: 0; color: #8e84c8; background: transparent; }
.toggle-line { display: flex; align-items: center; gap: 8px; color: #606873; font-size: 10px; }
.toggle-line input { accent-color: var(--purple); }
.prompt-preview { margin-top: 14px; padding: 12px; border: 1px solid #e4e5e8; border-radius: 6px; color: #69717c; background: #fafbfc; font-size: 10px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.prompt-preview strong { display: block; margin-bottom: 5px; color: #3c4653; font-size: 10px; }
.json-note { color: var(--muted); font-size: 10px; margin: 0 0 12px; }

@media (max-width: 1100px) {
  .main-content { padding-right: 28px; padding-left: 28px; }
  .kpi-grid { grid-template-columns: repeat(3, 1fr); }
  .kpi:nth-child(4), .kpi:nth-child(5) { min-height: 105px; }
}
@media (max-width: 820px) {
  .app-shell { display: block; }
  .sidebar { width: 100%; min-width: 0; padding: 15px 17px; }
  .main-nav { display: flex; gap: 4px; margin-top: 15px; overflow-x: auto; }
  .nav-item { width: auto; white-space: nowrap; }
  .sidebar-actions { display: flex; align-items: center; margin-top: 15px; }
  .sidebar-action { width: auto; flex: 1; }
  .schedule-card { display: none; }
  .sidebar-foot { display: none; }
  .topbar { display: block; }
  .topbar-actions { margin-top: 18px; justify-content: flex-start; }
  .content-grid { grid-template-columns: 1fr; }
}
@media (max-width: 610px) {
  .main-content { padding: 23px 16px 45px; }
  h1 { font-size: 23px; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .kpi { min-height: 106px; padding: 14px; }
  .kpi-value { margin-top: 9px; font-size: 22px; }
  .table-head { display: none; }
  .table-row { grid-template-columns: 1fr auto; gap: 6px 12px; padding: 14px; }
  .table-cell:nth-child(2), .table-cell:nth-child(3), .table-cell:nth-child(4) { grid-column: 1; }
  .table-row .table-cell:nth-child(2) { grid-row: 2; }
  .table-row .table-cell:nth-child(3) { display: none; }
  .table-row .table-cell:nth-child(4) { grid-row: 3; }
  .table-row .table-cell:nth-child(5) { grid-column: 2; grid-row: 1; }
  .table-arrow { display: none; }
  .bookmark-grid, .idea-grid { grid-template-columns: 1fr; }
  .detail-head { display: block; }
  .detail-metrics { margin-top: 13px; }
  .modal-grid, .target-grid, .step-list { grid-template-columns: 1fr; }
  .sidebar-actions { flex-wrap: wrap; }
  .sidebar-action { flex-basis: calc(50% - 5px); }
}

/* ===== 동업계 행사 모니터링 ===== */
.promo-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; padding: 11px 14px; border: 1px solid #d8d1ff; border-radius: 6px; color: #4a3f8f; background: var(--purple-soft); font-size: 11px; }
.promo-banner.warn { border-color: #f3d3ae; color: #8a5317; background: var(--orange-soft); }
.promo-banner.pending { border-color: #f0c8cc; color: #8f343d; background: var(--red-soft); }
.promo-banner.muted { border-color: var(--line); color: var(--muted); background: #fff; }
.promo-banner code { font-size: 10px; }
.promo-banner-actions { display: flex; gap: 6px; }
.promo-pending { margin-bottom: 12px; }
.promo-pending-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px; border-top: 1px solid #f0f1f3; font-size: 11px; }
.promo-pending-row:first-child { border-top: 0; }
.promo-error { display: block; margin-top: 3px; color: var(--red); font-size: 10px; }
.promo-selectors { display: flex; gap: 6px; }
.promo-selectors .modal-select { min-width: 110px; }
.promo-mall-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 16px 22px 20px; }
.promo-mall-card { min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.promo-mall-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.promo-mall-head h3 { margin: 0; font-size: 14px; }
.promo-mall-head > span { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
.promo-field { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 8px; padding: 7px 0; border-top: 1px solid #f3f4f6; font-size: 11px; }
.promo-field-label { color: var(--muted); font-size: 10px; font-weight: 700; }
.promo-field-value { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; overflow-wrap: anywhere; }
.promo-event-list { margin: 0; padding: 0; list-style: none; width: 100%; }
.promo-event-list li { padding: 3px 0; }
.promo-event-list small { display: block; color: var(--muted); font-size: 10px; }
.promo-slot { display: inline-block; margin-right: 4px; padding: 0 5px; border-radius: 3px; color: #536276; background: #edf1f5; font-size: 9px; font-weight: 700; }
.obs-badge, .daily-badge { display: inline-block; padding: 1px 6px; border-radius: 4px; font-size: 9px; font-weight: 800; white-space: nowrap; }
.obs-observed { color: var(--teal); background: var(--teal-soft); }
.obs-none { color: #536276; background: #edf1f5; }
.obs-not_checked { color: var(--subtle); background: #f5f6f8; }
.obs-not_accessible { color: var(--red); background: var(--red-soft); }
.obs-not_observable { color: #8a8f99; background: #f2f2f4; }
.daily-new { color: #fff; background: var(--purple); }
.daily-continuing { color: #536276; background: #edf1f5; }
.daily-changed { color: #8a5317; background: var(--orange-soft); }
.daily-unknown { color: var(--red); background: var(--red-soft); }
.life-active { color: var(--teal); background: var(--teal-soft); }
.life-uncertain { color: #8a5317; background: var(--orange-soft); }
.life-ended { color: #8a8f99; background: #f2f2f4; }
.promo-table-head, .promo-row { display: grid; grid-template-columns: 1.4fr 1fr 1.4fr 1fr .7fr; gap: 14px; align-items: start; }
.promo-table-head { padding: 11px 22px; color: #9ba1a9; font-size: 9px; font-weight: 800; }
.promo-row { padding: 12px 22px; border-top: 1px solid #f0f1f3; font-size: 11px; }
.promo-row .table-cell small { color: var(--muted); font-size: 10px; overflow-wrap: anywhere; }
.promo-row .source-link { display: inline-block; margin-top: 3px; font-size: 10px; }
.promo-more { padding: 0 22px 14px; }
.promo-grid-wrap { overflow-x: auto; padding: 16px 22px 20px; }
.promo-grid { border-collapse: collapse; font-size: 10px; min-width: 100%; }
.promo-grid th, .promo-grid td { padding: 5px 7px; border: 1px solid #eceef1; text-align: left; vertical-align: top; white-space: nowrap; max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
.promo-grid thead th { position: sticky; top: 0; color: #6b7280; background: #f7f8fa; text-align: center; }
.promo-grid .grid-mall { background: #f7f8fa; font-weight: 800; }
.promo-grid .grid-label { color: var(--muted); font-weight: 700; background: #fcfcfd; }
.promo-grid .grid-mall-start th, .promo-grid .grid-mall-start td { border-top: 2px solid #d9dce2; }
.promo-grid .grid-new { color: #fff; background: var(--purple); }
.promo-grid .grid-changed { background: var(--orange-soft); }
.promo-modal-tabs { margin-bottom: 14px; }
.promo-textarea { min-height: 220px; font-family: Consolas, "Courier New", monospace; font-size: 11px; }
.promo-errors { margin-top: 10px; color: var(--red); }

@media (max-width: 1100px) {
  .promo-mall-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 610px) {
  .promo-mall-grid { grid-template-columns: 1fr; padding: 0 14px 16px; }
  .promo-table-head { display: none; }
  .promo-row { grid-template-columns: 1fr auto; gap: 4px 10px; padding: 12px 14px; }
  .promo-row .table-cell:nth-child(5) { grid-column: 2; grid-row: 1; }
  .promo-row .table-cell:nth-child(2), .promo-row .table-cell:nth-child(3), .promo-row .table-cell:nth-child(4) { grid-column: 1 / -1; }
  .promo-grid-wrap { padding: 0 14px 16px; }
  .panel-head .promo-selectors { margin-top: 8px; }
}
.modal-footer .button { white-space: nowrap; }
