:root {
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #182a22;
  background: #f8f8f5;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
button, input, select { font: inherit; }
a { color: #215b3f; text-underline-offset: 3px; }
::selection { background: #cce5d0; color: #123926; }
:focus-visible { outline: 3px solid #45966b; outline-offset: 3px; }
.page { max-width: 1400px; margin: auto; padding: 0 32px; }
.topbar { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid #dce2da; }
.brand { display: flex; align-items: center; gap: 12px; font-family: Georgia, "Times New Roman", serif; font-size: 23px; font-weight: 700; letter-spacing: -.025em; }
.beta { font: 700 11px ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: .07em; text-transform: uppercase; color: #296147; background: #e7f0e8; padding: 6px 8px; border-radius: 4px; }
.top-link { font-size: 13px; font-weight: 600; text-decoration: none; }
.top-link:hover { text-decoration: underline; }
.page > main:not(.hero) { display: grid; grid-template-columns: minmax(250px, 292px) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.hero { grid-column: 1 / -1; padding: 62px 0 46px; text-align: center; }
.hero h1 { max-width: 1000px; margin: 0 auto 13px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(45px, 5.7vw, 76px); font-weight: 700; line-height: 1.07; letter-spacing: -.035em; text-wrap: balance; }
.hero h1 em { font-style: normal; color: #286544; }
.hero p { max-width: 670px; margin: 0 auto; color: #53655a; font-size: clamp(16px, 1.45vw, 19px); line-height: 1.5; }
.page > main.hero { max-width: 850px; padding-bottom: 25px; text-align: left; }
.page > main.hero h1 { font-size: clamp(42px, 5vw, 66px); margin-left: 0; }
.page > main.hero p { margin-left: 0; }
.page > main.hero ~ .panel { max-width: 850px; margin-bottom: 14px; }
.panel { background: #fff; border: 1px solid #dce2da; border-radius: 13px; padding: 24px; }
.panel-heading { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 19px; }
.step-number { display: grid; place-items: center; flex: 0 0 27px; height: 27px; border: 1px solid #c9d8cc; border-radius: 50%; color: #23583d; font-size: 13px; font-weight: 700; }
.panel h2 { margin: 0 0 5px; font-family: Georgia, "Times New Roman", serif; font-size: 23px; font-weight: 700; line-height: 1.17; letter-spacing: -.025em; }
.panel p { margin: 0; color: #5a6c60; font-size: 13px; line-height: 1.5; }
.connect-panel { display: flex; flex-direction: column; gap: 0; }
.connect-panel .panel-heading { margin-bottom: 24px; }
.connect-actions { display: grid; gap: 9px; }
.connect-actions .button { width: 100%; }
.connect-note { margin-top: auto; padding: 17px 16px; background: #eff5ef; border-radius: 8px; }
.connect-note strong { display: block; margin-bottom: 7px; font-size: 12px; color: #27513a; }
.connect-note p { font-size: 12px; color: #496452; }
.connect-note code { font-size: 10px; }
.button { min-height: 40px; border: 1px solid transparent; border-radius: 7px; padding: 0 15px; cursor: pointer; font-size: 12px; font-weight: 700; transition: background-color .16s ease, border-color .16s ease, transform .16s ease; }
.button:active:not(:disabled) { transform: translateY(1px); }
.button:disabled { opacity: .48; cursor: not-allowed; }
.primary { color: white; background: #1b5137; }
.primary:hover:not(:disabled) { background: #113f29; }
.secondary { color: #214c35; background: #f5f8f4; border-color: #ccd8ce; }
.secondary:hover:not(:disabled) { background: #ebf2e9; }
.text { color: #265b3e; background: transparent; }
.text:hover:not(:disabled) { background: #f0f5ef; }
.status { min-height: 18px; margin: 14px 0 18px !important; font-size: 12px !important; color: #576f5e !important; }
.status.error { color: #a33733 !important; }
.status.success { color: #1f7149 !important; }
.rules-panel { min-width: 0; }
.category-rows { display: grid; gap: 8px; }
.category-row { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(180px, 1.6fr) auto 28px; gap: 10px; align-items: end; padding: 12px; border: 1px solid #e0e5df; border-radius: 8px; }
.field { min-width: 0; }
.field label { display: block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #607265; }
.field input { display: block; width: 100%; margin-top: 6px; }
input[type=text], input[type=email], select { height: 39px; min-width: 0; border: 1px solid #cfd9d0; border-radius: 6px; background: #fff; color: #172b1e; padding: 0 10px; font-size: 12px; outline: none; }
input[type=text]:focus, input[type=email]:focus, select:focus { border-color: #39875a; box-shadow: 0 0 0 3px #dcefe0; }
.check { display: flex; align-items: center; gap: 8px; cursor: pointer; color: #405d49; font-size: 12px; line-height: 1.45; }
.check input { flex: 0 0 auto; accent-color: #1b5137; }
.category-row .check { min-height: 39px; white-space: nowrap; }
.remove-category { width: 28px; height: 39px; padding: 0; font-size: 17px; }
.add-button { margin-top: 11px; }
.scan-row { display: flex; align-items: center; gap: 10px; margin-top: 19px; padding-top: 18px; border-top: 1px solid #e5eae3; }
.scan-row label { margin-right: auto; font-size: 12px; font-weight: 700; }
.scan-row label strong { display: block; margin-top: 2px; font-size: 11px; font-weight: 500; color: #5e6d61; }
.scan-row select { min-width: 145px; }
.hint { margin-top: 13px !important; font-size: 12px !important; color: #516556 !important; }
.hint code, .privacy code { padding: 2px 3px; background: #eef3ec; border-radius: 3px; font-size: 11px; }
.preview-panel, .result-panel, .signup-panel, .privacy { grid-column: 1 / -1; }
.preview-panel .panel-heading, .result-panel .panel-heading { margin-bottom: 15px; }
.summary { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.summary span { padding: 6px 9px; background: #edf3ed; border-radius: 4px; color: #345d42; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.table-wrap { max-height: 520px; overflow: auto; border: 1px solid #e0e6df; border-radius: 7px; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { position: sticky; top: 0; background: #f4f6f2; color: #54685a; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
td, th { padding: 11px 14px; border-bottom: 1px solid #e7ebe5; }
tr:last-child td { border-bottom: 0; }
td { color: #33483a; font-size: 13px; }
td strong { display: block; margin-bottom: 3px; font-size: 13px; color: #172a1d; }
td small { display: block; max-width: 380px; overflow: hidden; color: #5e6d61; text-overflow: ellipsis; white-space: nowrap; }
td select { min-width: 150px; max-width: 210px; }
td .reason { color: #667a6b; }
.apply-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 18px; }
.signup-panel { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(320px, 1.3fr); column-gap: 30px; background: #eaf1e9; border: 0; }
.signup-panel .panel-heading { margin: 0; }
.signup-panel h2 { font-size: 24px; }
.signup-panel p { max-width: 420px; }
.signup-form { grid-column: 2; grid-row: 1 / span 3; }
.signup-form > label:first-child { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 700; }
.signup-row { display: flex; gap: 8px; }
.signup-row input { flex: 1; }
.signup-form .check { margin-top: 11px; }
.signup-panel .status { grid-column: 1; min-height: 0; margin: 8px 0 0 !important; }
.signup-panel .hint { grid-column: 1; margin: 7px 0 0 !important; }
.honeypot { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }
.privacy { margin: 0 0 14px; padding: 17px 20px; border: 1px solid #d9e3d8; border-radius: 8px; background: #f1f5f0; color: #536b58; font-size: 12px; line-height: 1.55; }
.privacy strong { color: #30593a; }
footer { display: flex; justify-content: space-between; gap: 15px; margin-top: 22px; padding: 21px 0 35px; border-top: 1px solid #dce2da; color: #5d705f; font-size: 12px; }
[hidden] { display: none !important; }
@media (max-width: 900px) {
  .page > main:not(.hero) { grid-template-columns: 1fr; }
  .hero, .preview-panel, .result-panel, .signup-panel, .privacy { grid-column: 1; }
  .connect-panel { min-height: 0; }
  .connect-note { margin-top: 12px; }
  .connect-actions { display: flex; flex-wrap: wrap; }
  .connect-actions .button { width: auto; }
}
@media (max-width: 650px) {
  .page { padding: 0 16px; }
  .topbar { min-height: 62px; }
  .brand { font-size: 19px; }
  .top-link { font-size: 11px; }
  .hero { padding: 47px 0 33px; text-align: left; }
  .hero h1 { font-size: clamp(43px, 10vw, 59px); line-height: 1.08; letter-spacing: -.03em; }
  .hero p { font-size: 16px; }
  .panel { padding: 18px; }
  .category-row { grid-template-columns: 1fr auto; }
  .category-row .field:first-child { grid-column: 1; }
  .category-row .field:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .category-row .check { grid-column: 1; grid-row: 3; }
  .category-row .remove-category { grid-column: 2; grid-row: 1; }
  .scan-row { align-items: stretch; flex-direction: column; }
  .scan-row label { margin-right: 0; }
  .scan-row select, .scan-row button { width: 100%; }
  .table-wrap { overflow-x: auto; }
  table { min-width: 600px; }
  .apply-row { align-items: stretch; flex-direction: column; }
  .signup-panel { display: block; }
  .signup-form { margin-top: 17px; }
  .signup-row { flex-direction: column; }
  .signup-panel .status, .signup-panel .hint { margin-top: 9px !important; }
  footer { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
