.v3-shell{--v3-ink:#172e48;--v3-muted:#526278;--v3-brand:#5734a7;--v3-line:#dce3ed;background:#f6f8fc;color:var(--v3-ink);padding:clamp(16px,3vw,32px);border-radius:20px;font-family:Inter,system-ui,sans-serif;font-size:16px;line-height:1.65;overflow-wrap:anywhere;min-width:0}.v3-shell *{box-sizing:border-box}.v3-shell [hidden]{display:none!important}.v3-shell h1,.v3-shell h2,.v3-shell h3{color:var(--v3-ink);line-height:1.3;letter-spacing:-.025em}.v3-shell h1{font-size:clamp(26px,4vw,38px)}.v3-shell h2{font-size:24px}.v3-shell h3{font-size:19px}.v3-shell p{max-width:80ch}.v3-shell button,.v3-shell input,.v3-shell select,.v3-shell textarea{font:inherit;max-width:100%}.v3-shell button,.v3-shell .v3-link{cursor:pointer;border:1px solid #cac2de;background:#fff;color:#432482;padding:9px 16px;border-radius:10px;min-height:44px;text-decoration:none}.v3-shell button:hover,.v3-shell .v3-link:hover{background:#f0eafc}.v3-shell button:disabled{opacity:.6;cursor:wait}.v3-shell :focus-visible{outline:3px solid #b4451d;outline-offset:3px}.v3-shell .v3-primary{background:var(--v3-brand);color:#fff;border-color:var(--v3-brand)}.v3-shell .v3-danger{color:#9b253a;border-color:#d698a4}.v3-toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:16px 0}.v3-toolbar label{min-width:145px;flex:1}.v3-toolbar input,.v3-toolbar select{width:100%}.v3-shell label{display:block;margin:10px 0;font-weight:600}.v3-shell input:not([type=checkbox]):not([type=radio]),.v3-shell select,.v3-shell textarea{display:block;border:1px solid #b4c0d0;background:#fff;color:var(--v3-ink);padding:10px 12px;border-radius:9px;width:100%;margin-top:5px;min-height:44px}.v3-shell textarea{min-height:120px;resize:vertical;line-height:1.6}.v3-shell input[type=checkbox],.v3-shell input[type=radio]{width:20px;height:20px;vertical-align:middle;margin-right:10px}.v3-shell fieldset{border:1px solid var(--v3-line);border-radius:12px;margin:16px 0;padding:16px;min-width:0}.v3-shell legend{padding:0 8px;font-weight:700}.v3-shell .v3-card{background:#fff;border:1px solid var(--v3-line);border-radius:14px;padding:20px;margin:16px 0;box-shadow:0 3px 10px #20335705}.v3-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:16px}.v3-grid>.v3-card{margin:0}.v3-badge{display:inline-block;background:#fff0c5;color:#684200;border:1px solid #d8b558;border-radius:7px;padding:3px 9px;font-weight:750;font-size:12px;letter-spacing:.04em}.v3-meta,.v3-shell .v3-muted{color:var(--v3-muted);font-size:14px}.v3-notice{background:#fff5db;border-left:4px solid #ac6900;padding:16px 20px;border-radius:8px;margin:16px 0}.v3-notice strong{color:#674100}.v3-error{background:#fff0f3;color:#8a1834;padding:12px;border-radius:8px}.v3-status{min-height:28px;white-space:pre-wrap}.v3-tabs{display:flex;gap:8px;border-bottom:1px solid var(--v3-line);padding-bottom:12px;margin:20px 0;flex-wrap:wrap}.v3-tabs [aria-selected=true],.v3-tabs [aria-current=page]{background:var(--v3-brand);color:white}.v3-reading{font-size:var(--v3-reading-size,17px);white-space:pre-wrap;line-height:1.85;max-width:78ch}.v3-simple .v3-reading{line-height:2.1;letter-spacing:.035em;max-width:58ch}.v3-contrast{--v3-ink:#000;--v3-muted:#303030;--v3-line:#333;--v3-brand:#32106f;background:#fff}.v3-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:12px}.v3-stats .v3-card{margin:0}.v3-stats strong{display:block;font-size:28px}.v3-admin-body{background:#eef1f8;margin:0}.v3-admin-wrap{max-width:1280px;margin:24px auto}.v3-admin-header{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:24px;flex-wrap:wrap}.v3-admin-header img{width:120px;height:auto}.v3-shell a{color:#523098}.v3-shell table{width:100%;border-collapse:collapse;text-align:left}.v3-shell th,.v3-shell td{border-bottom:1px solid var(--v3-line);padding:12px;vertical-align:top}.v3-scroll{overflow:auto}.v3-shell summary{cursor:pointer;font-weight:650;padding:8px 0}.v3-options label{font-weight:400;background:#f7f8fc;border:1px solid var(--v3-line);border-radius:9px;padding:12px}.v3-shell output{display:block}.v3-shell .v3-check{display:flex;gap:8px;align-items:flex-start;font-weight:400}.v3-check input{flex:none}.v3-empty{padding:32px 0;color:var(--v3-muted)}@media(max-width:600px){.v3-admin-wrap{margin:0}.v3-shell{border-radius:0}.v3-shell .v3-card{padding:16px}.v3-toolbar>button{width:100%}.v3-shell th,.v3-shell td{padding:8px}.v3-tabs button{flex:1}}
@media(max-width:600px){#editorNav>button{flex:1 1 145px;min-width:130px}.v3-shell .v3-reading-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}.v3-shell .v3-reading-controls>button{width:100%;padding:8px}.v3-shell .v3-contrast{color:#000}}

.v3-shell pre{white-space:pre-wrap;overflow-wrap:anywhere;max-width:100%;font-size:13px}.enem-shell progress{display:block;width:100%;height:12px;accent-color:#5734a7}.enem-shell textarea[readonly]{background:#f6f8fc}.enem-shell details>summary{min-height:44px}
.app-shell.kivo-enem-mode{grid-template-columns:260px minmax(0,1fr)}.kivo-enem-mode .topbar,.kivo-enem-mode .rightbar,.kivo-enem-mode .left-info,.kivo-enem-mode .left-actions,.kivo-enem-mode .study-migration-notice,.kivo-enem-mode .app-footer{display:none}@media(max-width:920px){.app-shell.kivo-enem-mode{grid-template-columns:minmax(0,1fr)}}
@media(max-width:600px){.enem-shell>.v3-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.enem-shell>.v3-tabs button{flex:initial;min-width:0;overflow-wrap:normal;word-break:normal}}

.v3-video-card video{display:block;width:100%;max-height:70vh;aspect-ratio:16/9;background:#101329;border-radius:12px}.v3-video-card{overflow:hidden}
:root { --kivo-review-focus: #5230a8; }
.v3-review { margin: 1.5rem 0; padding: 1rem; border: 1px solid #bbb3ce; border-radius: 16px; background: #fff; color: #251942; }
.v3-review button:focus-visible, .v3-review summary:focus-visible, .v3-map-scroll:focus-visible { outline: 3px solid var(--kivo-review-focus); outline-offset: 4px; }
.v3-review progress { display: block; width: 100%; height: 1.2rem; accent-color: #5230a8; }
.v3-review-placeholder { padding: 2rem 1rem; text-align: center; background: #fff6cb; border-radius: 16px; }
.v3-review-placeholder > span { font-size: 2.5rem; }
.v3-shell .v3-flashcard { display: block; width: 100%; min-height: 210px; margin: 1rem 0; padding: 1.5rem; background: #fff6cb; color: #251942; border: 2px solid #5230a8; border-radius: 20px; font-size: clamp(1.1rem, 3vw, 1.6rem); white-space: pre-wrap; overflow-wrap: anywhere; }
.v3-map-viewer { background: #fff; color: #251942; padding: .5rem; max-width: 100%; }
.v3-map-dialog { inset: 0; margin: 0; width: 100vw; height: 100dvh; max-width: 100vw; max-height: 100dvh; padding: 16px; border: 0; overflow: auto; background: #fff; color: #251942; }
.v3-map-dialog .v3-map-scroll { max-height: calc(100dvh - 180px); }
.v3-map-scroll { width: 100%; max-height: 75vh; overflow: auto; overscroll-behavior: contain; }
.v3-mind-map { display: block; width: 100%; min-width: 760px; max-width: none; height: auto; }
.v3-review textarea { width: 100%; max-width: 100%; box-sizing: border-box; }
@media (max-width: 600px) { .v3-review { padding: 12px; } .v3-review > .v3-tabs { display: grid; grid-template-columns: 1fr; } .v3-review > .v3-tabs > button { width: 100%; overflow-wrap: normal; } }
@media (prefers-reduced-motion: reduce) { .v3-review *, .v3-map-viewer * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
