:root {
  --bg: #fff7ef;
  --bg-strong: #ffe9d3;
  --panel: rgba(255, 255, 255, 0.88);
  --panel-strong: #ffffff;
  --text: #2f1a0d;
  --muted: #7b5a46;
  --line: rgba(141, 88, 44, 0.12);
  --accent: #c65a1e;
  --accent-strong: #8f3410;
  --accent-soft: rgba(198, 90, 30, 0.14);
  --shadow: 0 28px 70px rgba(147, 78, 12, 0.14);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --font: "Segoe UI", "Helvetica Neue", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 158, 76, 0.35), transparent 28%),
    radial-gradient(circle at right 10%, rgba(255, 199, 145, 0.5), transparent 24%),
    linear-gradient(180deg, #fff5ea 0%, #fffaf5 52%, #fff3e5 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.45) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.45) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.06));
  pointer-events: none;
}

.page-shell {
  width: min(1320px, calc(100vw - 32px));
  margin: 24px auto 40px;
}

.hero {
  padding: 28px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(171, 66, 23, 0.96), rgba(214, 107, 41, 0.92)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent);
  box-shadow: var(--shadow);
  color: white;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  top: -110px;
  right: -40px;
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero__content h1 {
  margin: 14px 0 14px;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 0.95;
  max-width: 12ch;
  color: #ffd1a8;
  text-shadow: 0 10px 24px rgba(95, 36, 16, 0.22);
}

.hero__content p {
  margin: 0;
  max-width: 58ch;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  line-height: 1.6;
}

.badge,
.loading-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 0.88rem;
  font-weight: 600;
}

.badge {
  width: fit-content;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.search-panel,
.results-panel,
.details-panel,
.summary-card {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.56);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.panel-header p,
.feedback,
.card-meta,
.details-list dt,
.details-placeholder span,
.summary-card span {
  color: var(--muted);
}

.layout {
  display: grid;
  gap: 20px;
  margin-top: 22px;
}

.search-panel,
.results-panel,
.details-panel {
  border-radius: var(--radius-xl);
  padding: 24px;
}

.search-box {
  display: grid;
  gap: 10px;
  font-weight: 700;
}

.search-box span,
.panel-header h2 {
  font-size: 1rem;
}

.search-box input {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 18px;
  padding: 16px 18px;
  color: var(--text);
  font-size: 1rem;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.search-box input:focus {
  border-color: rgba(255, 122, 26, 0.45);
  box-shadow: 0 0 0 5px rgba(255, 122, 26, 0.1);
  transform: translateY(-1px);
}
.loading-chip {
  background: var(--accent-soft);
  color: var(--accent-strong);
  border-color: rgba(255, 122, 26, 0.22);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.summary-card {
  border-radius: var(--radius-lg);
  padding: 18px 20px;
}

.summary-card strong {
  display: block;
  margin-top: 6px;
  font-size: 2rem;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.95fr);
  gap: 20px;
  align-items: start;
}

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

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

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

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}

.asset-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 248, 240, 0.92));
  padding: 18px;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.asset-card:hover,
.asset-card.is-selected {
  transform: translateY(-3px);
  box-shadow: 0 20px 38px rgba(172, 94, 21, 0.12);
  border-color: rgba(255, 122, 26, 0.24);
}

.asset-card__top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.asset-card h3 {
  margin: 12px 0 8px;
  font-size: 1.05rem;
}

.asset-card p {
  margin: 0;
  line-height: 1.5;
}

.card-type {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-strong);
  background: rgba(255, 122, 26, 0.12);
  padding: 6px 10px;
  border-radius: 999px;
}

.card-meta {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  font-size: 0.92rem;
}

.feedback,
.empty-state,
.details-placeholder {
  border-radius: 18px;
  padding: 18px;
  border: 1px dashed rgba(255, 122, 26, 0.26);
  background: rgba(255, 247, 241, 0.8);
}

.feedback.is-error {
  color: #9e2c00;
  background: rgba(255, 238, 232, 0.88);
  border-style: solid;
}

.details-content {
  display: grid;
  gap: 16px;
}

.details-heading h3 {
  margin: 12px 0 6px;
  font-size: 1.35rem;
}

.details-heading p {
  margin: 0;
  color: var(--muted);
}

.details-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
}

.details-list div {
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.details-list dt {
  margin-bottom: 6px;
  font-size: 0.84rem;
}

.details-list dd {
  margin: 0;
  font-weight: 700;
  word-break: break-word;
}

.details-comment {
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 248, 239, 0.92), rgba(255, 255, 255, 0.96));
  border: 1px solid var(--line);
  line-height: 1.6;
}

.is-hidden {
  display: none;
}

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

@media (max-width: 700px) {
  .page-shell {
    width: min(100vw - 16px, 1320px);
    margin-top: 12px;
  }

  .hero,
  .search-panel,
  .results-panel,
  .details-panel {
    padding: 18px;
    border-radius: 22px;
  }

  .details-list {
    grid-template-columns: 1fr;
  }

  .asset-card {
    border-radius: 18px;
  }
}
