/* Compact study-tool forms. Shared sidebar, result views and API contracts stay intact. */
body[data-ai-tool] .ai-main { padding-top:24px; }
body[data-ai-tool] .ai-intro { padding:0 0 18px; border:0; border-radius:0; background:transparent; box-shadow:none; }
body[data-ai-tool] .ai-intro h1 { font-size:28px; margin:6px 0; }
body[data-ai-tool] .ai-intro .ai-eyebrow { display:none; }
body[data-ai-tool] .ai-intro p { margin:4px 0; font-size:13px; }
body[data-ai-tool] #ai-access { font-size:12px; }
body[data-ai-tool] #ai-status:empty { display:none; }
body[data-ai-tool] .sv-compact-card,body .sv-gps-wizard { padding:24px; border:1px solid #e2e8f0!important; border-radius:16px!important; background:var(--sv-surface)!important; box-shadow:none!important; }
body .sv-compact-form { display:block; color:var(--sv-text); }
body .sv-compact-form [hidden] { display:none!important; }
body .sv-compact-form label,body .sv-control-label { display:block; font:500 13px/1.5 Inter,Arial,sans-serif; color:var(--sv-text); margin:0; letter-spacing:normal; text-transform:none; }
body .sv-compact-form :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea) { box-sizing:border-box; min-height:40px; padding:9px 11px!important; margin:6px 0 0; border:1px solid #dbe2eb!important; border-radius:9px!important; background:var(--sv-surface)!important; color:var(--sv-text); font:400 14px/1.45 Inter,Arial,sans-serif; box-shadow:none!important; width:100%; }
body .sv-compact-form textarea { resize:vertical; }
body .sv-compact-form :is(input,select,textarea,button):focus-visible { outline:2px solid #3b82f6!important; outline-offset:2px; }
body .sv-source-grid { display:grid; grid-template-columns:minmax(0,35fr) minmax(0,65fr); gap:20px; align-items:start; }
body .sv-source-grid>* { min-width:0; }
body .sv-compact-form .sv-tag-input { display:flex; flex-wrap:wrap; align-items:center; gap:6px; padding:7px 9px; margin-top:6px; border:1px solid #dbe2eb; background:var(--sv-surface); border-radius:9px; min-height:44px; }
body .sv-tag-input:focus-within { border-color:var(--sv-border); box-shadow:0 0 0 2px #eff6ff; }
body .sv-tag-list { display:contents; }
body .sv-compact-form .sv-tag-editor { flex:1 1 150px; width:150px; min-width:100px; min-height:28px; margin:0; padding:2px 3px!important; border:0!important; box-shadow:none!important; border-radius:0!important; }
body .sv-compact-form .sv-tag-editor:focus-visible { outline:none!important; }
body .sv-topic-tag { display:inline-flex; align-items:center; gap:5px; max-width:100%; background:var(--primary-light); color:var(--primary); border-radius:6px; padding:4px 6px 4px 9px; font-size:12px; line-height:1.5; }
body .sv-topic-tag>span { overflow-wrap:anywhere; min-width:0; }
body .sv-topic-tag button { flex-shrink:0; display:grid; place-items:center; min-height:24px; min-width:24px; padding:0; background:transparent; border:0; border-radius:4px; color:var(--primary); cursor:pointer; font-size:18px; }
body .sv-topic-tag button:hover { background:var(--sv-surface-soft); }
body .sv-compact-form .curriculum-choices { display:flex; flex-wrap:wrap; gap:6px; margin:8px 0 0; max-height:110px; overflow:auto; padding:2px 3px 5px; }
body .sv-compact-form .curriculum-chip { min-height:30px; padding:5px 9px; border:1px solid #e2e8f0; border-radius:7px; background:var(--sv-surface); color:var(--sv-text-muted); font-size:12px; font-weight:400; line-height:1.4; }
body .sv-compact-form .curriculum-chip[aria-pressed=true] { background:var(--primary-light); border-color:var(--sv-border); color:var(--primary); }
body .sv-compact-form .curriculum-choices p { margin:2px 0; font-size:12px; color:var(--sv-text-muted); }
body .sv-compact-form :is(#topic-suggestions,#curriculum-picker) { position:relative; }
body .sv-compact-form .sv-topic-info { position:absolute; top:-75px; right:0; padding:0; margin:0; background:transparent; z-index:3; }
body .sv-topic-info summary { cursor:pointer; font-size:14px; color:var(--sv-text-muted); list-style:none; }
body .sv-topic-info[open] .sv-picker-help { position:absolute; right:0; width:240px; padding:12px; border:1px solid #dbe2eb; background:var(--sv-surface); border-radius:8px; box-shadow:0 6px 20px #17203312; font-size:12px; line-height:1.6; }
body .sv-compact-form fieldset { min-width:0; border:0; padding:0; margin:20px 0; background:transparent; border-radius:0; }
body .sv-compact-form legend { padding:0; margin-bottom:9px; font-size:14px; font-weight:600; }
body .sv-presets { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
body .sv-presets button { padding:13px 14px; min-height:74px; border:1px solid #e2e8f0; border-radius:10px; background:var(--sv-surface); text-align:left; color:var(--sv-text); cursor:pointer; box-shadow:none; }
body .sv-presets strong { display:block; font-size:13px; font-weight:600; line-height:1.5; }
body .sv-presets small { display:block; margin-top:4px; font-size:11px; line-height:1.5; color:var(--sv-text-muted); }
body .sv-compact-form :is(.sv-presets button,.sv-pills button,.sv-segments button)[aria-pressed=true] { background:var(--primary-light); border-color:var(--sv-border); color:var(--primary); box-shadow:none; }
body .sv-counts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px 18px; margin-top:14px; }
body .sv-count-row { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:7px 0; border-bottom:1px solid #f1f5f9; font-size:12px; }
body .sv-count-row small { color:var(--sv-text-muted); white-space:nowrap; }
body .sv-stepper { display:flex; align-items:center; flex-shrink:0; border:1px solid #dbe2eb; border-radius:7px; overflow:hidden; }
body .sv-stepper button { border:0; background:var(--sv-surface-soft); color:var(--sv-text); width:30px; min-height:34px; cursor:pointer; font-size:16px; }
body .sv-compact-form .sv-stepper input { appearance:textfield; width:40px; min-height:34px; border:0!important; padding:3px!important; margin:0; text-align:center; }
.sv-stepper input::-webkit-inner-spin-button,.sv-stepper input::-webkit-outer-spin-button { appearance:none; margin:0; }
body .sv-format-help { margin:9px 0 0; font-size:11px; color:var(--sv-text-muted); }
body .sv-format-help summary { cursor:pointer; }
body .sv-action-bar { display:flex; flex-wrap:wrap; align-items:center; gap:12px; border-top:1px solid #e2e8f0; padding-top:16px; margin-top:18px; }
body .sv-action-bar>label { display:flex; align-items:center; gap:6px; font-size:12px; }
body .sv-action-bar :is(input,select) { width:auto!important; margin:0!important; min-height:36px!important; padding:7px 8px!important; font-size:12px!important; }
body .sv-action-bar input[type=number] { width:62px!important; }
body .sv-action-bar .sv-marks { border-radius:7px; background:var(--sv-surface-soft); padding:8px 10px; white-space:nowrap; }
body .sv-action-bar .sv-marks input { width:36px!important; border:0!important; background:transparent!important; padding:0!important; min-height:20px!important; appearance:textfield; font-weight:600; }
.sv-marks input::-webkit-inner-spin-button { appearance:none; }
body .sv-compact-form .btn { min-height:40px; padding:10px 16px; font-size:13px; box-shadow:none!important; }
body .sv-action-bar>.btn { margin-left:auto; }
body .sv-text-toggle { padding:7px 0; border:0; background:transparent; color:var(--primary); font:500 12px/1.5 Inter,Arial,sans-serif; text-align:left; cursor:pointer; }
body .sv-optional { margin-top:14px; }
body .sv-form-note { font-size:11px; line-height:1.6; color:var(--sv-text-muted); margin:12px 0 0; }
body .sv-segments { display:inline-flex; flex-wrap:wrap; gap:3px; padding:3px; background:var(--sv-surface-soft); border-radius:9px; }
body .sv-segments button,body .sv-segments label>span { display:block; border:1px solid transparent; padding:7px 12px; border-radius:7px; background:transparent; font-size:12px; font-weight:500; color:var(--sv-text-muted); cursor:pointer; }
body .sv-segments label { position:relative; }
body .sv-segments input { position:absolute; opacity:0; width:1px; height:1px; }
body .sv-segments input:checked+span { background:var(--primary-light); color:var(--primary); border-color:var(--sv-border); }
body .sv-segments input:focus-visible+span { outline:2px solid #3b82f6; outline-offset:2px; }
body .sv-planner-heading { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:14px; }
body .sv-planner-heading h1 { font-size:23px!important; margin:0; letter-spacing:-.4px!important; }
body .sv-step-indicator { font-size:12px; color:var(--sv-text-muted); padding:12px 0; margin:12px 0 16px; border-bottom:1px solid #e2e8f0; }
body .sv-exam-grid { display:grid; grid-template-columns:1.4fr 1fr 1fr; gap:14px; }
body .sv-exam-grid>* { min-width:0; }
body .sv-pills { display:flex; flex-wrap:wrap; gap:8px; }
body .sv-pills button { border:1px solid #e2e8f0; background:var(--sv-surface); padding:8px 12px; border-radius:8px; font-size:12px; color:var(--sv-text-muted); cursor:pointer; }
body .sv-wizard-footer { display:flex; justify-content:flex-end; gap:12px; margin-top:22px; }
body #gps-step-2 .sv-wizard-footer .btn-primary { flex:1; }
body .sv-context-bar { display:flex; justify-content:space-between; align-items:center; gap:12px; background:var(--sv-surface-soft); border-radius:9px; padding:8px 12px; font-size:12px; color:var(--sv-text-muted); }
body .sv-study-types { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin-top:16px; }
body .sv-study-types .v2-check { display:flex; align-items:center; gap:8px; margin:0; font-size:12px; }
body .sv-study-types input { accent-color:var(--primary); }
body[data-ai-tool] .ai-about { padding:14px 18px; margin-top:18px; }
body[data-ai-tool] .ai-about summary { cursor:pointer; font-size:13px; font-weight:500; }
body[data-ai-tool] .ai-about p { font-size:12px; }
@media(max-width:700px) {
 body .sv-source-grid,body .sv-exam-grid { grid-template-columns:1fr; gap:14px; }
 body .sv-presets { gap:6px; }
 body .sv-presets button { padding:10px; }
 body .sv-presets strong { font-size:12px; }
 body .sv-presets small { font-size:10px; }
 body .sv-counts { grid-template-columns:1fr; }
 body .sv-study-types { grid-template-columns:repeat(2,minmax(0,1fr)); }
 body[data-ai-tool] .sv-compact-card,body .sv-gps-wizard { padding:18px; }
 body .sv-action-bar { gap:12px; }
 body .sv-action-bar>.btn { flex-basis:100%; width:100%; margin:0; }
 body .sv-compact-form :is(input:not([type=checkbox]):not([type=radio]),select,textarea) { font-size:16px; }
}
body .sv-topic-field { position:relative; }
body .sv-compact-form .sv-topic-field>.sv-topic-info { position:absolute; top:0; right:0; margin:0; padding:0; }
body .sv-topic-field>label { padding-right:23px; }

/* Calm, focused input experience across the four study tools. */
body[data-ai-tool] .ai-main { max-width:1000px; padding-top:34px; padding-bottom:40px; }
body[data-ai-tool] .ai-intro { padding:0 0 24px; }
body[data-ai-tool] .ai-intro h1 { font-size:24px!important; font-weight:600!important; letter-spacing:-.7px!important; }
body[data-ai-tool] .ai-intro>p:not(#ai-access) { display:none; }
body[data-ai-tool] #ai-access { color:var(--sv-text-muted); font-size:11px; line-height:1.7; max-width:650px; }
body[data-ai-tool] .sv-compact-card,body .sv-gps-wizard { padding:32px 36px; border-radius:22px!important; border-color:var(--sv-border)!important; box-shadow:0 8px 32px #17203304!important; }
body .sv-form-welcome { padding-bottom:26px; }
body .sv-form-kicker { display:block; font:600 9px/1.5 Inter,Arial,sans-serif; letter-spacing:1.8px; color:var(--sv-text-muted); margin-bottom:9px; }
body[data-ai-tool] .sv-form-welcome h2,body .sv-planner-heading h1 { font:600 26px/1.3 Inter,Arial,sans-serif!important; letter-spacing:-.8px!important; color:var(--sv-text); margin:0 0 8px; }
body .sv-form-welcome p,body .sv-planner-description { font:400 13px/1.6 Inter,Arial,sans-serif; color:var(--sv-text-muted); margin:0; }
body .sv-source-grid { grid-template-columns:minmax(0,1fr); gap:22px; }
body .sv-source-grid>label { max-width:340px; }
body .sv-compact-form label,body .sv-control-label { font-size:12px; font-weight:600; color:var(--sv-text-muted); }
body .sv-compact-form :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea) { min-height:46px; padding:12px 14px!important; border-color:var(--sv-border)!important; border-radius:11px!important; background:var(--sv-surface)!important; font-size:14px; color:var(--sv-text); }
body .sv-compact-form :is(input,textarea)::placeholder { color:var(--sv-text-muted); opacity:1; }
body .sv-compact-form .sv-tag-input { min-height:64px; padding:12px; border-color:var(--sv-border); border-radius:12px; background:var(--sv-surface); gap:8px; }
body .sv-compact-form .sv-tag-input:focus-within { background:var(--sv-surface); border-color:var(--sv-border); box-shadow:0 0 0 3px #eff6ff; }
body .sv-compact-form .sv-tag-editor { min-height:30px; padding:3px!important; background:transparent!important; }
body .sv-topic-tag { background:var(--primary-light); color:var(--primary); padding:5px 6px 5px 10px; border-radius:7px; }
body .sv-topic-tag button { color:var(--sv-text-muted); }
body .sv-compact-form .curriculum-choices { max-height:none; margin-top:10px; gap:6px; padding:0; align-items:center; }
body .sv-compact-form .curriculum-choices.is-expanded { max-height:150px; overflow:auto; padding:2px; }
body .sv-compact-form .curriculum-chip { border:1px solid transparent; background:var(--sv-surface-soft); color:var(--sv-text-muted); border-radius:6px; padding:5px 9px; font-size:11px; min-height:28px; }
body .sv-compact-form .curriculum-chip:hover { color:var(--primary); border-color:var(--sv-border); background:var(--primary-light); }
body .sv-compact-form .curriculum-chip[aria-pressed=true] { background:var(--primary-light); border-color:var(--sv-border); color:var(--primary); }
body .sv-browse-topics { background:transparent; border:0; padding:5px 7px; color:var(--primary); cursor:pointer; font:500 11px/1.5 Inter,Arial,sans-serif; }
body .sv-compact-form .sv-quiz-format { margin:26px 0 20px; }
body .sv-compact-form legend { font-size:12px; color:var(--sv-text-muted); margin-bottom:10px; font-weight:600; }
body .sv-presets { gap:8px; background:var(--sv-surface-soft); padding:5px; border-radius:12px; }
body .sv-presets button { position:relative; border-color:transparent; background:transparent; padding:12px 14px; min-height:64px; border-radius:9px; }
body .sv-presets strong { font-size:12px; color:var(--sv-text-muted); }
body .sv-presets small { font-size:10px; color:var(--sv-text-muted); margin-top:3px; }
body .sv-compact-form .sv-presets button[aria-pressed=true] { background:var(--sv-surface); border-color:var(--sv-border); box-shadow:0 2px 5px #17203305; }
body .sv-presets button[aria-pressed=true] strong { color:var(--primary); }
body .sv-format-help { font-size:10px; margin-top:10px; color:var(--sv-text-muted); }
body .sv-action-bar { margin-top:22px; padding-top:18px; border-color:var(--sv-border); align-items:center; gap:20px; }
body .sv-action-bar>label { font-size:11px; color:var(--sv-text-muted); font-weight:500; }
body .sv-action-bar :is(input,select) { min-height:34px!important; padding:6px 9px!important; background:var(--sv-surface)!important; border-color:var(--sv-border)!important; font-size:12px!important; }
body .sv-action-bar .sv-marks { background:var(--sv-surface-soft); color:var(--sv-text-muted); padding:7px 10px; border-radius:8px; }
body .sv-action-bar .sv-marks input { background:transparent!important; border:0!important; }
body .sv-action-bar .sv-text-toggle { margin-left:auto; font-size:11px; color:var(--sv-text-muted); }
body .sv-submit-row { display:flex; justify-content:flex-end; padding-top:24px; }
body .sv-compact-form .btn-primary { background:var(--theme-button); border:1px solid #36577f; color:#fff; border-radius:11px!important; min-height:46px; padding:12px 24px; box-shadow:0 3px 8px #36577f12!important; font-size:13px; }
body .sv-compact-form .btn-primary:hover { background:var(--theme-button); border-color:var(--sv-border); transform:none; }
body .sv-submit-row .btn-primary { min-width:200px; }
body .sv-compact-card>.sv-form-note { text-align:center; font-size:10px; margin:22px 0 0; color:var(--sv-text-muted); }
body[data-ai-tool] .ai-about { background:transparent; border:0; box-shadow:none; padding:14px 3px; margin-top:6px; }
body[data-ai-tool] .ai-about summary { color:var(--sv-text-muted); font-size:11px; font-weight:400; }
body .sv-planner-heading { align-items:flex-start; }
body .sv-planner-heading .sv-segments { margin-top:2px; }
body .sv-step-indicator { border:0; background:var(--sv-surface-soft); padding:10px 13px; border-radius:8px; margin:22px 0; color:var(--sv-text-muted); font-size:11px; }
body .sv-exam-grid { gap:16px; }
body .sv-preparation { margin:24px 0!important; }
body .sv-pills { gap:8px; }
body .sv-pills button { border-color:var(--sv-border); border-radius:9px; background:var(--sv-surface); color:var(--sv-text-muted); padding:10px 16px; font-size:12px; }
body .sv-compact-form .sv-pills button[aria-pressed=true] { color:var(--primary); background:var(--primary-light); border-color:var(--sv-border); }
body .sv-gps-wizard #profile-context { font-size:10px; color:var(--sv-text-muted); margin-top:8px; }
body .sv-gps-wizard>[data-reveal],body #gps-step-1>[data-reveal] { margin-top:14px; color:var(--sv-text-muted); font-size:11px; }
body .sv-wizard-footer { padding-top:20px; border-top:1px solid #edf0f5; margin-top:22px; }
body #gps-step-2 .sv-wizard-footer .btn-primary { flex:0 1 auto; min-width:220px; margin-left:auto; }
body .sv-context-bar { background:var(--sv-surface-soft); border-radius:9px; font-size:11px; color:var(--sv-text-muted); }
body .sv-study-types { margin-top:20px; gap:14px; }
body .sv-topic-info summary { color:var(--sv-text-muted); font-size:12px; }
body .sv-compact-form .sv-stepper input { min-height:34px; padding:3px!important; border:0!important; }
@media(max-width:700px) {
 body[data-ai-tool] .ai-main { padding-top:22px; }
 body[data-ai-tool] .sv-compact-card,body .sv-gps-wizard { padding:24px 20px; border-radius:16px!important; }
 body[data-ai-tool] .sv-form-welcome h2,body .sv-planner-heading h1 { font-size:23px!important; }
 body .sv-source-grid>label { max-width:none; }
 body .sv-presets { grid-template-columns:1fr; gap:3px; }
 body .sv-presets button { min-height:45px; display:flex; align-items:center; justify-content:space-between; gap:10px; padding:10px; }
 body .sv-presets small { margin:0; }
 body .sv-action-bar { gap:12px; }
 body .sv-action-bar .sv-text-toggle { margin-left:0; }
 body .sv-submit-row .btn-primary { width:100%; }
 body .sv-exam-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
 body .sv-exam-grid>label:first-child { grid-column:1/-1; }
 body .sv-pills { gap:6px; }
 body .sv-pills button { padding:9px 10px; font-size:11px; }
 body #gps-step-2 .sv-wizard-footer .btn-primary { min-width:0; flex:1; }
 body .sv-compact-form :is(input:not([type=checkbox]):not([type=radio]),select,textarea) { font-size:16px; }
}
/* The editor is part of one input surface, never a nested input card. */
body .sv-compact-form .sv-tag-input input.sv-tag-editor:not([type=hidden]) { border:0!important; background:transparent!important; border-radius:0!important; box-shadow:none!important; min-height:30px; padding:3px!important; margin:0; }
body .v2-main:has(.sv-gps-wizard) { max-width:1000px; }
body .v2-main #status:empty,body .v2-main #sync-status:empty { display:none; }
/* Override legacy tool-form layout only within the new input cards. */
body[data-ai-tool] .ai-intro { margin-bottom:0; }
body[data-layout=app][data-ai-tool] .ai-main { max-width:none; }
body[data-ai-tool] .ai-main>:is(.ai-intro,#ai-status,#ai-workspace,#ai-output,.ai-about) { max-width:900px; margin-left:auto; margin-right:auto; }
body .sv-compact-form .sv-action-bar>label { flex-direction:row; align-items:center; gap:7px; }
body .sv-compact-form .sv-action-bar label input:not([type=hidden]):not([type=checkbox]),body .sv-compact-form .sv-action-bar label select { min-height:36px; padding:7px 9px!important; margin:0; border-radius:8px!important; }
body .sv-compact-form .sv-action-bar .sv-marks input:not([type=hidden]):not([type=checkbox]) { width:32px!important; border:0!important; background:transparent!important; padding:0!important; min-height:20px; font-size:12px; }
body .sv-compact-form .sv-format-help { padding:0; background:transparent; border:0; border-radius:0; margin:12px 0 0; }
body .sv-compact-form .sv-format-help summary { font-size:10px; font-weight:400; color:var(--sv-text-muted); }
body .sv-compact-form .sv-topic-info { border:0; background:transparent; }
body .sv-compact-form .curriculum-choices .curriculum-chip { min-height:28px; padding:5px 9px; background:var(--sv-surface-soft); border:1px solid transparent; color:var(--sv-text-muted); font-size:11px; }
body .sv-compact-form .curriculum-choices .curriculum-chip[aria-pressed=true] { background:var(--primary-light); border-color:var(--sv-border); color:var(--primary); }
body .sv-compact-form .sv-segments label { display:block; }

/* Login-inspired navy mastheads keep the actual inputs calm and white. */
body[data-ai-tool] .sv-form-welcome,body .sv-gps-wizard .sv-planner-heading {
 position:relative; isolation:isolate; margin:-32px -36px 28px; padding:30px 36px;
 background:radial-gradient(ellipse at 95% 0,#365a83,transparent 65%),#142943;
 border-radius:21px 21px 0 0; overflow:hidden;
}
body[data-ai-tool] .sv-form-welcome::after,body .sv-gps-wizard .sv-planner-heading::after {
 content:''; position:absolute; width:230px; height:230px; right:-40px; top:-120px;
 border:1px solid #ffffff16; border-radius:50%; box-shadow:0 0 0 30px #ffffff05,0 0 0 60px #ffffff03;
 pointer-events:none; z-index:-1;
}
body[data-ai-tool] .sv-form-welcome::before { content:'✦'; position:absolute; right:48px; bottom:24px; color:var(--sv-text-muted); font-size:30px; pointer-events:none; }
body[data-ai-tool] .sv-form-welcome h2,body .sv-gps-wizard .sv-planner-heading h1 { color:#fff; padding-right:35px; }
body .sv-form-welcome .sv-form-kicker,body .sv-gps-wizard .sv-form-kicker { color:var(--sv-text-muted); }
body .sv-form-welcome p,body .sv-gps-wizard .sv-planner-description { color:var(--sv-text-muted); max-width:90%; }
body .sv-gps-wizard .sv-planner-heading .sv-segments { background:#ffffff12; border:1px solid #ffffff1c; }
body .sv-gps-wizard .sv-planner-heading .sv-segments button { color:var(--sv-text-muted); }
body .sv-gps-wizard .sv-planner-heading .sv-segments button[aria-pressed=true] { background:var(--primary-light); color:var(--sv-text-muted); border-color:var(--sv-border); }
body .sv-compact-form .sv-tag-input { cursor:text; background:var(--sv-surface-soft); border-color:var(--sv-border); }
body .sv-compact-form .sv-tag-input:focus-within { border-color:var(--sv-border); box-shadow:0 0 0 3px #eaf1fa; }
body .sv-tag-input .sv-add-topic { flex-shrink:0; min-height:32px; border:0; border-radius:7px; padding:6px 12px; background:var(--theme-button); color:#fff; cursor:pointer; font:600 12px Inter,Arial,sans-serif; }
body .sv-tag-input .sv-add-topic:hover { background:var(--theme-button); }
body .sv-compact-form input.sv-chapter-search:not([type=hidden]):not([type=checkbox]) { min-height:38px; margin:12px 0 0; padding:8px 12px!important; font-size:13px; background:var(--sv-surface)!important; }
body .sv-compact-form .sv-action-bar .sv-page-length { font-size:12px; font-weight:500; color:var(--sv-text-muted); }
body .sv-compact-form .sv-action-bar .sv-page-length select { min-width:105px; min-height:40px; }
body .sv-compact-form .sv-presets button[aria-pressed=true] { border-color:var(--sv-border); background:var(--primary-light); box-shadow:inset 3px 0 #335b8a; }
body .sv-compact-form .sv-presets button[aria-pressed=true] strong { color:var(--primary); }
body .sv-compact-form .btn-primary { background:linear-gradient(120deg,#274a73,#183452); border-color:var(--sv-border); box-shadow:0 5px 12px #274a7318!important; }
body .sv-compact-form .btn-primary:hover { background:var(--theme-button); }
body[data-ai-tool] .ai-intro h1 { color:var(--sv-text); }
body[data-ai-tool] .ai-intro h1::before { content:''; display:inline-block; width:6px; height:21px; border-radius:4px; margin-right:10px; background:var(--sv-surface-soft); vertical-align:-1px; }
body .sv-compact-form .sv-form-note,body .sv-compact-card>.sv-form-note { color:var(--sv-text-muted); }
@media(max-width:700px) {
 body[data-ai-tool] .sv-form-welcome,body .sv-gps-wizard .sv-planner-heading { margin:-24px -20px 24px; padding:24px 20px; border-radius:15px 15px 0 0; }
 body[data-ai-tool] .sv-form-welcome::before { right:20px; bottom:20px; font-size:23px; }
 body .sv-gps-wizard .sv-planner-heading { gap:18px; }
}
