.opt-wrap { max-width: 820px; }
.opt-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; margin-bottom: 22px; }
.opt-card h2 { font-family: var(--serif); font-size: 1.45rem; margin: 0 0 12px; color: var(--earth); }
.opt-tabs { display: flex; gap: 8px; margin-bottom: 22px; flex-wrap: wrap; }
.opt-tab { flex: 1 1 200px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--cream); font: 500 0.95rem var(--sans); color: var(--ink); cursor: pointer; }
.opt-tab.is-on { background: var(--earth); color: #fff; border-color: var(--earth); }
#opt-form label { display: block; font-weight: 600; margin: 16px 0 6px; color: var(--earth); }
#opt-form input[type=url], #opt-form input[type=text], #opt-form select, #opt-form textarea { width: 100%; box-sizing: border-box; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; font: 400 1rem var(--sans); background: #fff; color: var(--ink); }
#opt-form textarea { resize: vertical; line-height: 1.5; }
#opt-form input:focus, #opt-form select:focus, #opt-form textarea:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.opt-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.opt-checks { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 14px; }
#opt-form .opt-checks label { font-weight: 400; color: var(--ink); margin: 0; display: flex; align-items: center; gap: 8px; }
.opt-hint { color: var(--muted); font-size: 0.92rem; margin: 8px 0 0; }
.opt-warn { background: var(--cream); border-left: 4px solid var(--gold); border-radius: 12px; padding: 14px 18px; margin: 22px 0; font-size: 0.95rem; line-height: 1.55; }
.opt-go { width: 100%; justify-content: center; font-size: 1.05rem; }
.opt-go[disabled] { opacity: 0.6; cursor: wait; }
.opt-privacy { color: var(--muted); font-size: 0.85rem; text-align: center; margin: 12px 0 0; }
.opt-loading { text-align: center; }
.opt-spin { width: 42px; height: 42px; margin: 6px auto 14px; border: 4px solid var(--cream-deep); border-top-color: var(--earth); border-radius: 50%; animation: optspin 0.9s linear infinite; }
@keyframes optspin { to { transform: rotate(360deg); } }
.opt-error { background: #FBEDE6; border: 1px solid #E8BFA9; color: #7A3417; border-radius: 12px; padding: 14px 18px; margin-bottom: 22px; }
.opt-score-card { display: flex; gap: 26px; align-items: center; }
.opt-score { flex: 0 0 auto; width: 118px; height: 118px; border-radius: 50%; background: var(--earth); color: #fff; display: flex; align-items: baseline; justify-content: center; padding-top: 34px; box-sizing: border-box; font-family: var(--serif); }
.opt-score span { font-size: 2.6rem; line-height: 1; }
.opt-score small { font-size: 0.95rem; opacity: 0.8; margin-left: 2px; }
.opt-band { font-family: var(--serif); font-size: 1.4rem; color: var(--earth); margin-bottom: 6px; }
.opt-score-card p { margin: 0; line-height: 1.55; }
.opt-editor { display: flex; gap: 20px; align-items: center; justify-content: space-between; background: var(--earth); color: #fff; border-radius: var(--radius); padding: 24px 28px; margin-bottom: 22px; }
.opt-editor h2 { font-family: var(--serif); font-size: 1.3rem; margin: 0 0 6px; color: #fff; }
.opt-editor p { margin: 0; opacity: 0.9; line-height: 1.5; }
.opt-editor .btn { flex: 0 0 auto; white-space: nowrap; }
.opt-fixes { margin: 0; padding-left: 22px; }
.opt-fixes li { margin-bottom: 10px; line-height: 1.55; }
.opt-sug { border: 1px solid var(--line); border-radius: 14px; padding: 18px; margin-top: 16px; }
.opt-sug-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.opt-sug-for { font-weight: 600; color: var(--earth); }
.opt-sug-why { color: var(--muted); font-size: 0.92rem; margin: 4px 0 10px; }
.opt-sug-text { background: var(--cream); border-radius: 10px; padding: 14px; white-space: pre-wrap; line-height: 1.6; }
.opt-ph { background: #F6E3C4; color: var(--gold-deep); border-radius: 4px; padding: 0 3px; }
.opt-copy { border: 1px solid var(--earth); background: #fff; color: var(--earth); border-radius: 999px; padding: 6px 14px; font: 500 0.88rem var(--sans); cursor: pointer; }
.opt-copy:hover { background: var(--earth); color: #fff; }
.opt-area { padding: 14px 0; border-top: 1px solid var(--line); }
.opt-area:first-child { border-top: 0; padding-top: 0; }
.opt-area-head { display: flex; justify-content: space-between; font-weight: 600; color: var(--earth); }
.opt-bar { height: 8px; background: var(--cream-deep); border-radius: 99px; margin: 8px 0; overflow: hidden; }
.opt-bar i { display: block; height: 100%; background: var(--gold); border-radius: 99px; }
.opt-area p { margin: 0; line-height: 1.55; }
.opt-area a { font-size: 0.92rem; }
.opt-flags { border-color: #E8BFA9; }
.opt-flags ul { margin: 0; padding-left: 20px; }
.opt-again { text-align: center; }
.opt-tool-card { display: flex; gap: 20px; align-items: center; justify-content: space-between; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; margin-top: 28px; }
.opt-tool-card h3 { font-family: var(--serif); margin: 0 0 4px; color: var(--earth); }
.opt-tool-card p { margin: 0; }
@media (max-width: 640px) {
  .opt-card { padding: 20px; }
  .opt-row { grid-template-columns: 1fr; }
  .opt-score-card, .opt-editor, .opt-tool-card { flex-direction: column; align-items: flex-start; }
  .opt-score { width: 96px; height: 96px; padding-top: 28px; }
  .opt-score span { font-size: 2.1rem; }
}
.opt-jump { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; margin: -6px 0 22px; }
.opt-jump span { color: var(--muted); font-size: 0.92rem; margin-right: 2px; }
.opt-jump a { display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--earth); font-size: 0.92rem; font-weight: 500; text-decoration: none; }
.opt-jump a:hover { background: var(--earth); color: #fff; border-color: var(--earth); }
#opt-result [id^="opt-sec-"] { scroll-margin-top: 96px; }