:root {
  --ink: #050505;
  --muted: #2e2e2e;
  --green: #00a687;
  --paper: #f8f8f8;
  --bar: #dedede;
  --page: #ffffff;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "Outfit", Arial, sans-serif;
}

a { color: inherit; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 84px 1fr 84px;
  align-items: center;
  height: 92px;
  background: #fff;
}

.icon-btn {
  width: 48px;
  height: 48px;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.icon-btn--menu {
  width: 54px;
  height: 54px;
  background: #111;
  justify-self: end;
  margin-right: 18px;
}

.icon-btn--search { margin-left: 18px; }

.logo {
  width: 84px;
  height: 84px;
  justify-self: center;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.12));
}

.menu-panel {
  display: none;
  position: absolute;
  top: 92px;
  right: 18px;
  width: 240px;
  background: #fff;
  border: 1px solid #eee;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  padding: 12px 0;
}

.menu-panel a {
  display: block;
  padding: 10px 18px;
  text-decoration: none;
  font-size: 16px;
}

.menu-panel a:hover { background: var(--paper); }

.menu-panel.is-open { display: block; }

.wrap {
  width: min(1140px, calc(100% - 40px));
  margin: 0 auto;
}

.back {
  display: flex;
  justify-content: center;
  margin: 8px 0 28px;
}

.back a {
  text-decoration: none;
  font-size: 18px;
}

.back a::before { content: "‹ "; }

.page-title {
  margin: 10px 0 48px;
  text-align: center;
  font-size: 64px;
  font-weight: 500;
  letter-spacing: -1px;
  line-height: 1.05;
}

.search-block { width: min(760px, 100%); margin: 0 auto 28px; }

.search-block label {
  display: block;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 8px;
}

.search-row {
  position: relative;
  border-bottom: 1px dotted #000;
}

.search-row input {
  width: 100%;
  height: 60px;
  border: 0;
  background: transparent;
  font: 400 25px/1 "Outfit", Arial, sans-serif;
  color: var(--ink);
  padding: 0 88px 10px 5px;
  outline: none;
}

.search-actions {
  position: absolute;
  right: 0;
  top: 8px;
  display: flex;
  gap: 8px;
}

.search-actions button {
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 22px;
}

.withdrawn {
  display: inline-block;
  margin-top: 36px;
  text-decoration: none;
  font-size: 18px;
}

.withdrawn::after { content: " ›"; }

.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 70px auto 54px;
  width: min(980px, 100%);
}

.status-row h2 {
  margin: 0;
  font-size: 60px;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -1px;
}

.status-badge {
  width: 150px;
  height: 150px;
  flex: 0 0 150px;
}

.result-card { width: min(700px, 100%); margin: 0 auto 80px; }

.mark {
  display: block;
  width: 120px;
  height: 150px;
  margin: 0 auto 24px;
}

.result-card h3 {
  margin: 0 0 4px;
  text-align: center;
  font-size: 42px;
  font-weight: 500;
  letter-spacing: -0.5px;
}

.annex {
  margin: 0 0 48px;
  text-align: center;
  font-size: 20px;
  font-weight: 500;
}

.owner, .article {
  background: var(--paper);
  padding: 40px 30px;
}

.owner h4, .article h4, .class-label {
  margin: 0 0 24px;
  font-size: 20px;
  font-weight: 500;
}

.owner address {
  font-style: normal;
  line-height: 1.45;
  font-size: 16px;
}

.class-row {
  position: relative;
  background: var(--bar);
  min-height: 84px;
  padding: 30px;
}

.class-label { margin: 0; }

.class-value {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 25px;
  font-weight: 500;
}

.article p {
  margin: 0;
  font-size: 16px;
  line-height: 1.45;
}

.qr-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
}

.qr-row p {
  margin: 0;
  text-align: right;
  font-size: 14px;
  line-height: 1.4;
}

.qr-row a { color: var(--green); }

#qrcode {
  width: 96px;
  height: 96px;
  background: #fff;
  padding: 4px;
}

.empty {
  display: none;
  text-align: center;
  font-size: 28px;
  margin: 80px 0;
}

@media (max-width: 800px) {
  .page-title { font-size: 42px; }
  .status-row { flex-direction: column; align-items: flex-start; }
  .status-row h2 { font-size: 40px; }
  .result-card h3 { font-size: 30px; }
}
