.three-matters-overview { padding: 18px; border-top: 4px solid var(--kfc-red); }
.three-matters-attention { margin: -4px -4px 16px; padding: 14px; color: var(--ink-950); background: linear-gradient(135deg, #fff6f2 0%, #fff 68%); border: 1px solid rgba(191,47,52,.12); border-radius: 12px; }
.attention-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.attention-head > div { display: flex; align-items: baseline; gap: 8px; }
.attention-head strong { font-size: 14px; }
.attention-head span, .attention-head small { color: var(--ink-500); font-size: 9px; }
.attention-light-grid { margin-top: 10px; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 7px; }
.attention-light { min-width: 0; min-height: 78px; padding: 8px; display: grid; grid-template-columns: 48px minmax(0, 1fr); align-content: center; column-gap: 8px; background: white; border: 1px solid var(--line); border-radius: 9px; }
.attention-light.is-pass { background: #f2fbf5; border-color: #b9e2c8; }
.attention-light.is-fail { background: #fff3f2; border-color: #f0b7b3; }
.attention-light i { grid-row: 1 / 3; align-self: center; width: 36px; height: 36px; background: #14924d; border: 5px solid #dff4e8; border-radius: 50%; box-shadow: 0 0 0 4px rgba(20,146,77,.16), 0 0 18px rgba(20,146,77,.38); transform-origin: center; will-change: transform, opacity, filter; }
.attention-light.is-pass i { animation: attention-light-pulse 1.9s ease-in-out infinite; }
.attention-light.is-fail i { background: #dc2028; border-color: #ffe2df; box-shadow: 0 0 0 4px rgba(220,32,40,.16), 0 0 18px rgba(220,32,40,.38); animation: attention-light-pulse 1.35s ease-in-out infinite; animation-duration: 1.35s; }
.attention-light:nth-child(even) i { animation-delay: -.45s; }
@keyframes attention-light-pulse {
  0%, 100% { opacity: .72; transform: scale(.94); filter: brightness(.9); }
  50% { opacity: 1; transform: scale(1.06); filter: brightness(1.2); }
}
.attention-light span { overflow: hidden; color: var(--ink-500); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.attention-light strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.attention-empty { grid-column: 1 / -1; color: var(--ink-500); font-size: 10px; }
.sssg-guidance { margin-top: 10px; padding: 9px 11px; display: flex; align-items: center; gap: 10px; color: #6f2528; background: #fff; border-left: 3px solid var(--kfc-red); border-radius: 7px; }
.sssg-guidance span { flex: 0 0 auto; color: var(--kfc-red); font-size: 11px; font-weight: 900; }
.sssg-guidance strong { font-size: 15px; font-weight: 800; line-height: 1.5; }
.three-matters-summary-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.three-matters-summary-head > div { display: grid; gap: 3px; }
.three-matters-summary-head > div > strong { font-size: 16px; color: var(--ink-950); }
.three-matters-summary-head > div > span { color: var(--ink-500); font-size: 11px; }
.scope-count { padding: 7px 11px; color: var(--ink-600); font-size: 11px; background: #fff4f1; border-radius: 999px; }
.scope-count strong { color: var(--kfc-red); }
.three-matters-rings { margin-top: 15px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.matter-ring-button { min-height: 116px; padding: 12px; display: grid; grid-template-columns: 72px minmax(0, 1fr); grid-template-rows: 1fr auto; column-gap: 12px; align-items: center; text-align: left; color: var(--ink-950); background: #fffaf7; border: 1px solid rgba(132,97,83,.15); border-radius: 13px; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.matter-ring-button:hover { transform: translateY(-2px); border-color: rgba(191,47,52,.35); box-shadow: 0 10px 24px rgba(80,36,22,.09); }
.matter-ring-button:focus-visible { outline: 3px solid rgba(191,47,52,.22); outline-offset: 2px; }
.matter-ring { grid-row: 1 / 3; width: 70px; aspect-ratio: 1; display: grid; place-content: center; text-align: center; background: radial-gradient(circle at center, #fff 0 54%, transparent 56%), conic-gradient(var(--ring-color) var(--ring-ratio), #ece6e1 0); border-radius: 50%; }
.matter-ring strong { font-size: 22px; line-height: 1; }
.matter-ring small { color: var(--ink-500); font-size: 9px; }
.matter-ring-button > span:nth-child(2) { align-self: end; font-size: 13px; font-weight: 800; }
.matter-ring-button > small { align-self: start; color: var(--ink-500); font-size: 10px; }
.three-matters-flow { margin-top: 13px; padding: 10px 12px; display: flex; align-items: center; justify-content: center; gap: 9px; background: #f8f5f2; border-radius: 10px; }
.three-matters-flow span { padding: 4px 8px; color: var(--ink-800); font-size: 10px; font-weight: 800; background: white; border: 1px solid var(--line); border-radius: 999px; }
.three-matters-flow i { color: var(--ink-500); font-size: 9px; font-style: normal; }
.three-matters-modal { width: min(1080px, calc(100vw - 40px)); max-height: calc(100vh - 44px); }
.three-matters-modal .modal-body { overflow: auto; }
.three-matters-modal .modal-foot { flex-wrap: wrap; }
.three-matters-modal .modal-foot > span { margin-right: auto; color: var(--ink-500); font-size: 11px; }
.tm-store-select { margin-bottom: 10px; display: flex; align-items: center; gap: 9px; }
.tm-store-select span, .tm-list-toolbar label span { color: var(--ink-500); font-size: 10px; font-weight: 700; }
.tm-store-select select, .tm-list-toolbar input { min-height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.tm-record-meta { margin-bottom: 12px; display: flex; align-items: center; gap: 8px; color: var(--ink-500); font-size: 10px; }
.tm-status { display: inline-flex; align-items: center; width: max-content; padding: 4px 7px; color: #704e0d; font-size: 9px; font-weight: 800; background: #fff3cc; border-radius: 999px; }
.tm-status.is-approved { color: #176b3a; background: #e4f4e9; }
.tm-status.is-reviewed { color: #31548a; background: #e7eef9; }
.tm-status.is-not_created { color: #8d3134; background: #fde6e4; }
.tm-form-grid, .tm-detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tm-matter-form, .tm-detail-card { min-width: 0; margin: 0; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: #fffaf7; }
.tm-matter-form legend, .tm-detail-card > span { padding: 4px 7px; color: white; font-size: 10px; font-weight: 800; background: var(--kfc-red); border-radius: 999px; }
.tm-matter-form label { margin-top: 9px; display: grid; gap: 5px; }
.tm-matter-form label > span { color: var(--ink-600); font-size: 10px; font-weight: 700; }
.tm-action-field { margin-top: 9px; display: grid; gap: 6px; }
.tm-action-field > span { color: var(--ink-600); font-size: 10px; font-weight: 700; }
.tm-action-editor, .tm-action-list { display: grid; gap: 7px; }
.tm-action-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 6px; align-items: start; }
.tm-action-index { padding-top: 9px; color: var(--ink-500); font-size: 9px; font-weight: 800; }
.tm-action-row textarea { min-height: 48px; resize: vertical; }
.tm-action-add, .tm-action-remove { min-height: 32px; padding: 0 9px; font: inherit; font-size: 10px; font-weight: 800; border-radius: 7px; cursor: pointer; }
.tm-action-add { width: max-content; color: var(--kfc-red); background: #fff; border: 1px dashed rgba(191,47,52,.45); }
.tm-action-remove { margin-top: 3px; color: #8d3134; background: #fff4f1; border: 1px solid rgba(191,47,52,.2); }
.tm-action-add:hover, .tm-action-remove:hover { border-color: var(--kfc-red); }
.tm-action-remove:disabled { color: var(--ink-400); background: #f3efeb; border-color: var(--line); cursor: not-allowed; }
.tm-matter-form input, .tm-matter-form textarea { width: 100%; min-height: 38px; padding: 8px 9px; color: var(--ink-900); font: inherit; font-size: 11px; line-height: 1.45; background: white; border: 1px solid var(--line); border-radius: 8px; resize: vertical; }
.tm-matter-form textarea { min-height: 62px; }
.tm-matter-form [disabled] { color: var(--ink-700); background: #f3efeb; opacity: 1; }
.tm-detail-card h4 { min-height: 38px; margin: 10px 0 5px; font-size: 13px; }
.tm-detail-card p, .tm-detail-card ul { margin: 7px 0; color: var(--ink-600); font-size: 10px; line-height: 1.5; }
.tm-detail-card ul { padding-left: 17px; }
.tm-result { padding-top: 7px; border-top: 1px dashed var(--line); }
.three-matters-error { margin: 12px 0 0; padding: 9px 11px; color: #a6282e; font-size: 11px; background: #fff0ee; border-radius: 8px; }
.tm-list-toolbar { margin-bottom: 10px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.tm-list-toolbar label { display: grid; gap: 5px; }
.tm-list-toolbar > span { color: var(--ink-500); font-size: 10px; }
.tm-table td:last-child { white-space: nowrap; }
.tm-table .table-action + .table-action { margin-left: 5px; }
.tm-pagination { margin-top: 9px; display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.tm-pagination button { min-height: 32px; padding: 0 10px; color: var(--ink-700); background: white; border: 1px solid var(--line); border-radius: 7px; }
.tm-pagination span { color: var(--ink-500); font-size: 10px; }
.tm-selected-detail { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.tm-selected-detail > h3 { margin: 0 0 10px; font-size: 14px; }
.tm-empty { padding: 42px 20px; text-align: center; color: var(--ink-500); }
.tm-empty strong { color: var(--ink-900); }

@media (max-width: 760px) {
  .three-matters-attention { margin: -2px -2px 13px; padding: 11px; }
  .attention-head > div { display: grid; gap: 2px; }
  .attention-light-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .attention-light { min-height: 78px; }
  .sssg-guidance { align-items: flex-start; flex-direction: column; gap: 4px; }
  .three-matters-summary-head { align-items: flex-start; flex-direction: column; }
  .three-matters-rings { grid-template-columns: 1fr; }
  .matter-ring-button { min-height: 92px; }
  .three-matters-flow { justify-content: flex-start; overflow-x: auto; }
  .three-matters-flow > * { flex: 0 0 auto; }
  .tm-form-grid, .tm-detail-grid { grid-template-columns: 1fr; }
  .tm-action-row { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .three-matters-modal { width: 100%; max-height: 90vh; top: auto; bottom: 0; transform: translateX(-50%) translateY(104%); border-radius: 18px 18px 0 0; }
  .three-matters-modal.open { transform: translateX(-50%) translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .attention-light i { animation: none; }
}
