.correction-panel{position:fixed;inset:102px 22px auto auto;width:min(510px,calc(100vw - 32px));max-height:calc(100dvh - 124px);margin:0;padding:0;border:1px solid #415358;border-radius:16px;background:#101b20;color:#e5eef0;box-shadow:0 18px 64px #0009;z-index:1200;overflow:hidden;font-family:inherit;font-size:14px;line-height:1.6}
.correction-panel:not([open]){display:none}.correction-panel[open]{display:flex;flex-direction:column;animation:correction-enter .22s ease-out}.correction-panel-bar{padding:16px 20px;display:flex;align-items:start;justify-content:space-between;gap:16px;border-bottom:1px solid #314348;background:#12232a}.correction-panel-bar h2{font-size:18px;margin:0;line-height:1.4;color:#edf5f4}.correction-panel-bar p{font-size:12px;line-height:1.6;margin:5px 0 0;color:#b1c3c6}.correction-panel-body{padding:20px;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;min-height:0}.correction-object{padding:0 0 16px;border-bottom:1px solid #314348;margin-bottom:18px}.correction-object>span{font-size:11px;color:#a7bdc2;letter-spacing:.05em}.correction-object h3{font-size:18px;line-height:1.5;margin:4px 0;color:#f0f5f4;overflow-wrap:anywhere}.correction-object dl{margin:8px 0 0;display:flex;flex-wrap:wrap;gap:4px 16px;font-size:12px;color:#b1c5ca}.correction-object dl>div{display:flex;gap:6px}.correction-object dt{color:#8da6ad}.correction-object dd{margin:0;overflow-wrap:anywhere}.correction-form{display:grid;gap:16px;max-width:780px;color:#e3edef}.correction-form fieldset{min-width:0;margin:0;padding:0;border:0;display:grid;gap:14px}.correction-form legend{font-weight:650;font-size:14px;padding:0;margin:0 0 8px}.correction-form [hidden]{display:none!important}.correction-field{min-width:0}.correction-form label{display:block;color:#c7d7da;font-size:13px;font-weight:600;line-height:1.5;margin:0 0 6px}.correction-form input:not([type=hidden]),.correction-form textarea,.correction-form select{box-sizing:border-box;width:100%;max-width:100%;border:1px solid #455b63;border-radius:8px;padding:9px 11px;font:inherit;font-size:14px;color:#e7f0f2;background:#0c171c;line-height:1.6;min-height:42px}.correction-form input:focus,.correction-form textarea:focus,.correction-form select:focus{outline:2px solid #7ed6db;outline-offset:2px;border-color:#7ed6db}.correction-form textarea{resize:vertical;min-height:76px}.correction-form textarea[name=original_text]{background:#142229;color:#b9cfd4;font-size:13px;min-height:68px;max-height:180px}.correction-form textarea[name=suggested_text]{min-height:112px}.correction-form textarea[name=reason]{min-height:64px}.correction-form small,.correction-help{display:block;color:#9fb8be;font-size:12px;line-height:1.65;margin:5px 0 0}.correction-form .errorlist,.correction-errors,.correction-network-error{color:#ffbc9e;font-size:13px;line-height:1.7;list-style:none;padding:0;margin:6px 0}.correction-errors{background:#35251e;padding:12px;border:1px solid #76503b;border-radius:8px}.correction-label-row{display:flex;align-items:center;justify-content:space-between;gap:8px}.correction-evidence{border:1px solid #34484f;border-radius:9px;padding:12px}.correction-evidence summary{cursor:pointer;color:#dce8eb;font-size:13px;font-weight:600}.correction-evidence summary span{display:block;font-weight:400;font-size:11px;color:#99b0b7;margin:2px 0 0 15px}.correction-evidence[open]>.correction-field{margin-top:16px}.correction-evidence-row{display:grid;grid-template-columns:1fr 1.15fr;gap:12px;margin-top:14px}.correction-submit{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #34484f;padding-top:14px}.correction-submit p{color:#a8bec5;font-size:11px;line-height:1.6;margin:0;max-width:200px}.correction-primary,.correction-resume{font:inherit;font-size:13px;font-weight:650;background:#c5e66b;color:#18220d;border:1px solid #c5e66b;border-radius:8px;padding:10px 16px;cursor:pointer;white-space:nowrap;min-height:42px}.correction-primary:disabled{opacity:.6;cursor:wait}.correction-quiet,.correction-text-button{font:inherit;background:transparent;border:0;color:#9edce0;cursor:pointer;border-radius:5px}.correction-quiet{font-size:12px;padding:7px 0 7px 8px;white-space:nowrap;min-height:36px}.correction-text-button{font-size:11px;padding:5px 0 7px;min-height:32px}.correction-panel a{color:#98dadd}.correction-panel button:focus-visible,.correction-panel a:focus-visible,.correction-resume:focus-visible{outline:2px solid #8be0e5;outline-offset:3px}.correction-resume{position:fixed;right:22px;bottom:22px;z-index:1199;box-shadow:0 8px 28px #0006}.correction-resume[hidden]{display:none}.correction-loading,.correction-feedback{font-size:14px;line-height:1.8;padding:8px 0}.correction-feedback h3{font-size:21px;margin:0 0 12px}.correction-feedback a{display:inline-block;margin:6px 0}.correction-context-focus{outline:2px solid #8abfc6;outline-offset:5px}.correction-sr-only{position:absolute!important;width:1px;height:1px;padding:0!important;margin:-1px!important;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0!important}
@keyframes correction-enter{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:680px){.correction-panel{inset:10px 8px auto;width:auto;box-sizing:border-box;max-height:calc(100dvh - 20px);border-radius:12px}.correction-panel-bar{padding:13px 16px}.correction-panel-body{padding:16px}.correction-form input:not([type=hidden]),.correction-form textarea,.correction-form select{font-size:16px}.correction-evidence-row{grid-template-columns:1fr}.correction-resume{right:12px;bottom:14px}.correction-quiet{min-height:42px;padding:8px}.correction-text-button{min-height:42px}.correction-submit p{max-width:170px}}
@media(prefers-reduced-motion:reduce){.correction-panel[open]{animation:none}}

.correction-form input[type=radio]{width:16px;min-height:16px;height:16px;padding:0;margin:0 8px 0 0;accent-color:#c6de98}.correction-mode #id_mode{display:grid;gap:8px}.correction-mode #id_mode label{display:flex;align-items:center;font-weight:400}.correction-context dd{white-space:normal;overflow-wrap:anywhere}
.correction-context-meta summary{font-size:12px;color:#9fc7ce;cursor:pointer}.correction-context-meta{margin-top:8px}.correction-form .correction-mode{gap:0}.correction-object dl>div{min-width:0;flex-wrap:wrap}
.correction-form .correction-assistant-consent{padding:16px 0;border-top:1px solid #34484f}
.correction-form .correction-assistant-consent label{display:flex;align-items:flex-start;gap:10px;font-size:13px;line-height:1.6}
.correction-form .correction-assistant-consent input[type=checkbox]{flex:none;width:17px;height:17px;min-height:17px;padding:0;margin:3px 0 0;accent-color:#c8e791}
.correction-form .correction-assistant-consent p{font-size:12px;line-height:1.8;color:#9fb8be;margin:8px 0 0}
