.embed-main{max-width:1100px}
.embed-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,420px);gap:28px;align-items:start;margin-top:24px}
.embed-form{display:flex;flex-direction:column;gap:10px;min-width:0}
.embed-form>label,legend{font-weight:700}
.embed-search{position:relative}
#embed-query,#embed-code{width:100%;font:inherit;padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:#fff;color:#14232a}
#embed-code{font:13px/1.45 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;resize:vertical}
#embed-results{list-style:none;margin:4px 0 0;padding:0;position:absolute;left:0;right:0;z-index:2;background:#fff;border:1px solid var(--line);border-radius:8px;box-shadow:0 8px 24px #0002;max-height:320px;overflow:auto}
#embed-results:empty{display:none}
#embed-results button{all:unset;box-sizing:border-box;display:flex;justify-content:space-between;gap:10px;width:100%;padding:9px 12px;cursor:pointer;color:#14232a}
#embed-results button span{font-weight:800}
#embed-results button[aria-selected=true],#embed-results button:hover{background:#e3efe6}
.embed-status{min-height:1.4em;margin:0;color:var(--muted);font-size:.95em}
fieldset{border:1px solid var(--line);border-radius:8px;padding:8px 12px;display:flex;flex-wrap:wrap;gap:6px 18px;margin:0}
fieldset label{display:inline-flex;gap:6px;align-items:center;min-height:32px;cursor:pointer}
.embed-copy{display:flex;align-items:center;gap:12px}
#embed-copy{font:inherit;font-weight:700;padding:9px 18px;border-radius:8px;border:0;background:#205d44;color:#fff;cursor:pointer}
#embed-copy:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
#embed-copied{color:#205d44;font-weight:700}
.embed-preview h2{font-size:1.1rem}
.embed-frame{padding:14px;border:1px dashed var(--line);border-radius:12px;background:repeating-linear-gradient(45deg,#0000 0 10px,#0000000a 10px 20px)}
.embed-frame iframe{display:block;border:0;border-radius:8px;max-width:100%;background:transparent}
@media(max-width:760px){.embed-layout{grid-template-columns:1fr}}
@media(prefers-color-scheme:dark){#embed-query,#embed-code,#embed-results{background:#13252d;color:#eef4eb}#embed-results button{color:#eef4eb}#embed-results button[aria-selected=true],#embed-results button:hover{background:#21404a}#embed-copied{color:#5fd39a}}
@media(min-width:1800px){body{zoom:1.35}}@media(min-width:2400px){body{zoom:1.8}}@media(min-width:3400px){body{zoom:2.6}}
