:root {
  font-family: Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #17201d;
  background: #edf3ef;
  font-synthesis: none;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 12%, rgba(100, 195, 145, .25), transparent 32rem),
    radial-gradient(circle at 92% 88%, rgba(231, 177, 79, .20), transparent 28rem),
    #edf3ef;
}

.shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 18px;
}

.card {
  width: min(100%, 660px);
  padding: clamp(24px, 5vw, 46px);
  border: 1px solid rgba(19, 72, 50, .14);
  border-radius: 26px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 24px 70px rgba(23, 58, 43, .13);
  backdrop-filter: blur(18px);
}

.eyebrow {
  color: #1b7650;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
}

h1, h2 { margin: 8px 0 0; letter-spacing: -.035em; }
h1 { font-size: clamp(30px, 6vw, 48px); line-height: 1.08; }
h2 { font-size: 24px; }
.intro { margin: 16px 0 26px; color: #5b6863; line-height: 1.75; }

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 5px;
  margin-bottom: 22px;
  border-radius: 14px;
  background: #e8eeea;
}

button, input { font: inherit; }
button { cursor: pointer; }

.tab {
  padding: 11px;
  border: 0;
  border-radius: 10px;
  color: #65716c;
  background: transparent;
  font-weight: 700;
}

.tab.active {
  color: #155c40;
  background: white;
  box-shadow: 0 3px 12px rgba(29, 74, 54, .09);
}

label {
  display: block;
  margin: 15px 0 7px;
  color: #35423d;
  font-size: 14px;
  font-weight: 700;
}

input {
  width: 100%;
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid #ccd7d1;
  border-radius: 11px;
  color: #17201d;
  background: rgba(255, 255, 255, .94);
  outline: none;
}

input:focus {
  border-color: #2c9568;
  box-shadow: 0 0 0 3px rgba(44, 149, 104, .14);
}

.primary {
  width: 100%;
  margin-top: 24px;
  padding: 14px 18px;
  border: 0;
  border-radius: 12px;
  color: white;
  background: #176b49;
  font-weight: 800;
  box-shadow: 0 10px 25px rgba(23, 107, 73, .22);
}

.primary:hover { background: #125b3d; }
button:disabled { cursor: wait; opacity: .65; }

.status {
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 10px;
  color: #8b2f25;
  background: #fff0ed;
  line-height: 1.5;
}

.status.info { color: #285b46; background: #e8f4ed; }

.result {
  margin-top: 26px;
  padding-top: 25px;
  border-top: 1px solid #dbe3df;
}

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

.badge {
  padding: 6px 10px;
  border-radius: 999px;
  color: #176b49;
  background: #daf0e4;
  font-size: 12px;
  font-weight: 800;
}

.copy-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.copy-row input { color: #53605b; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 13px; }
.copy-row button {
  padding: 0 14px;
  border: 1px solid #b9cbc2;
  border-radius: 10px;
  color: #176b49;
  background: #f6faf8;
  font-weight: 700;
}

.meta { margin: 16px 0 0; color: #77817d; font-size: 12px; }

@media (prefers-color-scheme: dark) {
  :root { color: #e7efeb; background: #101713; }
  body { background: radial-gradient(circle at 12% 12%, rgba(48, 139, 96, .25), transparent 30rem), #101713; }
  .card { background: rgba(24, 34, 29, .93); border-color: #314139; }
  .intro, .copy-row input { color: #aebbb5; }
  .tabs { background: #222f29; }
  .tab.active, input { color: #e7efeb; background: #18231e; }
  label { color: #d0dad5; }
  input { border-color: #405149; }
  .result { border-color: #35443d; }
  .copy-row button { color: #85d3ae; background: #1e2a24; border-color: #405149; }
}
