:root {
  color-scheme: light;
  --bg: #f4f7f8;
  --panel: #ffffff;
  --ink: #17212b;
  --muted: #52606d;
  --line: #d7dee4;
  --accent: #0b7285;
  --accent-dark: #075866;
  --amber: #946200;
  --amber-bg: #fff3cd;
  --green-bg: #d9f7e8;
  --red-bg: #ffe1e1;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", Arial, sans-serif;
}

button,
input,
textarea {
  font: inherit;
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0;
}

.intro,
.tool,
.result-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.intro {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 420px);
  gap: 28px;
  align-items: end;
  padding: 32px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 10px;
  font-size: clamp(2.25rem, 7vw, 4.5rem);
  line-height: 0.95;
}

h2 {
  margin-bottom: 6px;
}

h3 {
  margin-bottom: 12px;
}

.lead {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.55;
}

.notice {
  border-left: 4px solid var(--accent);
  background: #eef8fa;
  padding: 16px;
  line-height: 1.45;
}

.tool {
  margin-top: 18px;
  padding: 22px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}

.url-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 14px;
}

button {
  min-height: 48px;
  border: 0;
  border-radius: 6px;
  padding: 0 18px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
}

button:hover {
  background: var(--accent-dark);
}

button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.status {
  min-height: 28px;
  margin-top: 14px;
  color: var(--muted);
}

.status.error {
  color: #b42318;
}

.result-panel {
  margin-top: 18px;
  padding: 22px;
}

.app-header {
  display: flex;
  gap: 16px;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.app-icon {
  display: none;
  width: 72px;
  height: 72px;
  border-radius: 16px;
  border: 1px solid var(--line);
  object-fit: cover;
}

.risk-grid,
.columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.risk-grid {
  margin: 18px 0;
}

.risk-grid > div,
.columns > section,
.result-panel > section {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.meta-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.risk-pill {
  display: inline-flex;
  min-width: 76px;
  justify-content: center;
  border-radius: 999px;
  padding: 6px 12px;
  background: var(--amber-bg);
  color: var(--amber);
}

.summary {
  color: var(--muted);
  line-height: 1.55;
}

ul {
  margin: 0;
  padding-left: 20px;
}

li + li {
  margin-top: 8px;
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

#copyButton {
  min-height: 38px;
}

textarea {
  width: 100%;
  min-height: 360px;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 14px;
  resize: vertical;
  line-height: 1.45;
}

@media (max-width: 760px) {
  .intro,
  .risk-grid,
  .columns,
  .url-row {
    grid-template-columns: 1fr;
  }
}
