:root {
  --bg: #eef4ff;
  --panel: rgba(255, 255, 255, 0.92);
  --line: #d5e0f5;
  --ink: #16233b;
  --subtle: #5f718f;
  --accent: #1f6fe5;
  --accent-2: #13a2c7;
  --ok: #10795e;
  --warn: #9d5b00;
  --err: #b33636;
  --shadow: 0 18px 50px rgba(30, 67, 133, 0.12);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", "Noto Sans KR", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(47, 120, 255, 0.18), transparent 28%),
    radial-gradient(circle at bottom right, rgba(19, 162, 199, 0.14), transparent 24%),
    linear-gradient(180deg, #f7faff 0%, var(--bg) 100%);
}

.shell {
  display: grid;
  grid-template-columns: 320px 1fr;
  min-height: 100vh;
}

.sidebar {
  padding: 32px 26px;
  border-right: 1px solid rgba(31, 111, 229, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(244, 248, 255, 0.92));
}

.brand {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 38px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-title {
  font-size: 1.65rem;
  font-weight: 800;
}

.brand-subtitle,
.meta-copy,
.nav-copy,
.hero-copy,
.panel-header p,
.field small,
.empty-copy {
  color: var(--subtle);
}

.nav-card,
.meta-block,
.panel {
  border: 1px solid rgba(109, 142, 209, 0.18);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.nav-card {
  padding: 24px;
}

.nav-title {
  font-size: 1.35rem;
  font-weight: 800;
}

.meta-block {
  margin-top: 22px;
  padding: 18px 20px;
}

.meta-title {
  font-weight: 700;
  margin-bottom: 8px;
}

.content {
  padding: 38px clamp(20px, 3vw, 42px) 42px;
}

.hero {
  margin-bottom: 24px;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.06;
}

.hero-copy {
  max-width: 800px;
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.7;
}

.panel {
  padding: 28px 30px;
}

.panel + .panel {
  margin-top: 22px;
}

.panel-header h2 {
  margin: 0;
  font-size: 1.45rem;
}

.panel-header p {
  margin: 8px 0 0;
}

.search-form {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr) 180px;
  gap: 18px;
  align-items: end;
  margin-top: 24px;
}

.field {
  display: grid;
  gap: 10px;
}

.field span {
  font-weight: 700;
}

.field input,
.field select,
.search-button {
  min-height: 58px;
  border-radius: 18px;
  border: 1px solid var(--line);
  font-size: 1rem;
}

.field input,
.field select {
  padding: 0 18px;
  background: #fff;
  color: var(--ink);
}

.search-button {
  border: none;
  background: linear-gradient(135deg, var(--accent), #2f87ff);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(31, 111, 229, 0.24);
}

.result-list {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.result-card {
  border-radius: 28px;
  border: 1px solid rgba(109, 142, 209, 0.2);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(244, 248, 255, 0.92));
  box-shadow: var(--shadow);
}

.result-frame {
  padding: 28px 30px 30px;
}

.result-overview {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  margin-bottom: 24px;
}

.result-overview-title-wrap {
  display: flex;
  align-items: center;
  gap: 18px;
}

.result-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  font-size: 1.5rem;
  font-weight: 700;
}

.result-icon-blue {
  background: linear-gradient(135deg, rgba(31, 111, 229, 0.14), rgba(31, 111, 229, 0.24));
  color: var(--accent);
}

.result-icon-green {
  background: linear-gradient(135deg, rgba(16, 121, 94, 0.12), rgba(16, 121, 94, 0.18));
  color: var(--ok);
}

.result-main-title {
  font-size: clamp(1.9rem, 3vw, 2.45rem);
  font-weight: 900;
}

.result-main-copy {
  margin-top: 6px;
  font-size: 1rem;
  color: var(--subtle);
}

.result-status {
  padding: 14px 24px;
  border-radius: 999px;
  background: rgba(31, 111, 229, 0.08);
  font-size: 1rem;
  font-weight: 800;
  white-space: nowrap;
}

.result-table-panel {
  padding: 18px 18px 20px;
  border: 1px solid rgba(122, 158, 224, 0.22);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.84);
}

.result-table-panel + .result-table-panel {
  margin-top: 20px;
}

.result-panel-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding-left: 14px;
  border-left: 6px solid var(--accent);
  font-size: 1.1rem;
  font-weight: 900;
}

.result-panel-title-blue {
  color: var(--accent);
}

.result-panel-title-green {
  border-left-color: rgba(16, 121, 94, 0.8);
  color: var(--ok);
}

.result-panel-title-red {
  border-left-color: rgba(179, 54, 54, 0.8);
  color: var(--err);
}

.result-panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

.result-panel-heading .result-panel-title {
  margin-bottom: 0;
}

.toggle-matches {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(122, 158, 224, 0.28);
  border-radius: 999px;
  background: rgba(244, 248, 255, 0.9);
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
}

.input-summary-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 220px 220px;
  border: 1px solid rgba(122, 158, 224, 0.22);
  border-radius: 16px 16px 0 0;
  overflow: hidden;
}

.input-cell {
  min-height: 72px;
  display: flex;
  align-items: center;
  padding: 18px 20px;
  border-right: 1px solid rgba(122, 158, 224, 0.18);
  border-bottom: 1px solid rgba(122, 158, 224, 0.18);
  background: rgba(255, 255, 255, 0.94);
}

.input-cell:nth-child(4n) {
  border-right: none;
}

.input-cell-label {
  font-size: 1rem;
  font-weight: 800;
  color: var(--ink);
  background: rgba(244, 248, 255, 0.92);
}

.input-cell-value {
  font-size: 1.65rem;
  font-weight: 900;
  color: var(--accent);
}

.input-release-value {
  font-size: clamp(2rem, 5vw, 3rem);
}

.input-note {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid rgba(122, 158, 224, 0.18);
  border-top: none;
  border-radius: 0 0 16px 16px;
  background: rgba(238, 245, 255, 0.82);
}

.input-note-error {
  background: rgba(255, 242, 242, 0.9);
}

.input-note-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 2px solid rgba(31, 111, 229, 0.7);
  color: var(--accent);
  font-weight: 900;
}

.input-note-error .input-note-icon {
  border-color: rgba(179, 54, 54, 0.72);
  color: var(--err);
}

.input-note-copy {
  color: #406295;
  font-size: 1rem;
}

.table-wrap {
  overflow-x: auto;
}

.result-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid rgba(122, 158, 224, 0.22);
  border-radius: 18px;
  overflow: hidden;
}

.result-table thead th {
  padding: 16px 18px;
  background: rgba(232, 246, 239, 0.92);
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 800;
  text-align: center;
  border-right: 1px solid rgba(122, 201, 160, 0.24);
}

.result-table thead th:last-child {
  border-right: none;
}

.result-table tbody td {
  padding: 18px 18px;
  border-top: 1px solid rgba(122, 158, 224, 0.16);
  border-right: 1px solid rgba(122, 158, 224, 0.14);
  vertical-align: middle;
  background: rgba(255, 255, 255, 0.96);
  font-size: 0.98rem;
}

.result-table tbody td:last-child {
  border-right: none;
}

.result-table .primary-row td {
  background: linear-gradient(180deg, rgba(245, 255, 250, 0.98), rgba(238, 250, 243, 0.9));
}

.result-table-error thead th {
  background: rgba(255, 240, 240, 0.92);
  border-right-color: rgba(223, 167, 167, 0.24);
}

.result-table-error .primary-row td {
  background: linear-gradient(180deg, rgba(255, 248, 248, 0.98), rgba(255, 241, 241, 0.92));
}

.result-table-candidates thead th {
  background: rgba(240, 246, 255, 0.96);
  border-right-color: rgba(122, 158, 224, 0.18);
}

.table-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1rem;
  font-weight: 800;
}

.table-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 2px solid rgba(91, 109, 139, 0.58);
  color: #6d7b96;
  font-size: 0.9rem;
  font-weight: 900;
}

.table-icon-green {
  border-color: rgba(16, 121, 94, 0.72);
  color: var(--ok);
}

.table-icon-red {
  border-color: rgba(179, 54, 54, 0.72);
  color: var(--err);
}

.table-result {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.table-result-primary {
  color: var(--ok);
}

.table-date {
  font-size: clamp(2rem, 4vw, 3.3rem);
  font-weight: 900;
  line-height: 1;
}

.table-pill {
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(16, 121, 94, 0.12);
  color: var(--ok);
  font-size: 0.98rem;
  font-weight: 800;
}

.table-error-state {
  color: var(--err);
  font-size: 1.4rem;
  font-weight: 900;
}

.all-match-summary {
  margin: 0 0 14px;
  color: var(--subtle);
  font-size: 0.96rem;
}

.candidate-select {
  min-width: 42px;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid rgba(122, 158, 224, 0.26);
  border-radius: 10px;
  background: rgba(244, 248, 255, 0.92);
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
}

.candidate-description,
.candidate-migration {
  line-height: 1.55;
  white-space: normal;
  word-break: break-word;
}

.row-selected td {
  background: rgba(232, 242, 255, 0.88) !important;
}

.candidate-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 800;
}

.candidate-status-success_with_dates,
.candidate-status-partial_record {
  background: rgba(16, 121, 94, 0.12);
  color: var(--ok);
}

.candidate-status-invalid_os_type,
.candidate-status-no_software_match,
.candidate-status-product_id_no_eox,
.candidate-status-product_bulletin_no_eox,
.candidate-status-unknown_error {
  background: rgba(179, 54, 54, 0.12);
  color: var(--err);
}

.result-notice {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
  padding: 22px 24px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(230, 247, 238, 0.9), rgba(224, 244, 233, 0.94));
}

.result-notice-error {
  background: linear-gradient(180deg, rgba(255, 242, 242, 0.94), rgba(255, 236, 236, 0.96));
}

.result-notice-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 2px solid rgba(16, 121, 94, 0.86);
  color: var(--ok);
  font-weight: 900;
}

.result-notice-error .result-notice-icon {
  border-color: rgba(179, 54, 54, 0.78);
  color: var(--err);
}

.result-message {
  color: var(--ok);
  font-size: 1.08rem;
  line-height: 1.65;
}

.result-notice-error .result-message {
  color: var(--err);
}

.empty-state {
  display: grid;
  gap: 10px;
  place-items: center;
  min-height: 300px;
  border: 1px dashed rgba(109, 142, 209, 0.34);
  border-radius: 24px;
  margin-top: 24px;
  text-align: center;
  padding: 24px;
}

.empty-graphic {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(31, 111, 229, 0.12), rgba(19, 162, 199, 0.18));
  font-size: 2.4rem;
  color: var(--accent);
}

.empty-title {
  font-size: 1.4rem;
  font-weight: 800;
}

.status-success_with_dates {
  background: rgba(16, 121, 94, 0.14);
  color: var(--ok);
}

.status-usable {
  background: linear-gradient(135deg, rgba(18, 164, 104, 0.14), rgba(18, 164, 104, 0.22));
  color: var(--ok);
}

.status-partial_record {
  background: rgba(157, 91, 0, 0.14);
  color: var(--warn);
}

.status-invalid_os_type,
.status-no_software_match,
.status-product_id_no_eox,
.status-product_bulletin_no_eox,
.status-unknown_error {
  background: rgba(179, 54, 54, 0.12);
  color: var(--err);
}

@media (max-width: 1100px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    border-right: none;
    border-bottom: 1px solid rgba(31, 111, 229, 0.08);
  }

  .search-form {
    grid-template-columns: 1fr;
  }

  .result-overview {
    flex-direction: column;
    align-items: flex-start;
  }

  .input-summary-grid {
    grid-template-columns: 1fr 1fr;
  }

  .input-cell:nth-child(2n) {
    border-right: none;
  }

  .input-cell:nth-child(4) {
    border-right: none;
  }
}

@media (max-width: 760px) {
  .content {
    padding: 24px 16px 28px;
  }

  .panel,
  .result-frame {
    padding: 20px 18px;
  }

  .input-summary-grid {
    grid-template-columns: 1fr;
    border-radius: 16px;
  }

  .input-cell {
    border-right: none;
  }

  .input-note {
    border-top: 1px solid rgba(122, 158, 224, 0.18);
    border-radius: 0 0 16px 16px;
  }

  .table-date {
    font-size: 1.8rem;
  }
}
