.ted-editor{--ted-accent:var(--red,#bc382e);--ted-line:#d9ddd7;--ted-ink:#252925;--ted-muted:#5b625d;min-width:0;color:var(--ted-ink)}
.ted-editor *{box-sizing:border-box}
.ted-editor h2{margin:0 0 .75rem}
.ted-editor h3{margin:0 0 .5rem;font-size:1rem;line-height:1.3}
.ted-editor button,.ted-editor input,.ted-editor select,.ted-editor textarea{font:inherit}
.ted-editor button:focus-visible,.ted-editor select:focus-visible,.ted-editor input:focus-visible,.ted-editor textarea:focus-visible,.ted-editor summary:focus-visible,.ted-editor [tabindex]:focus-visible{outline:3px solid #2d65af;outline-offset:2px}
.ted-tools,.ted-nav,.ted-nav-group,.ted-footer,.ted-help,.ted-dialog-actions,.ted-panel-title{display:flex;align-items:center;gap:.45rem;flex-wrap:wrap}
.ted-editor button.ted-tool,.ted-editor button.ted-icon,.ted-editor button.ted-primary,.ted-dialog button{border:1px solid var(--ted-line);border-radius:8px;min-height:40px;padding:7px 12px;background:#fff;color:#30372f;font-size:.9rem;font-weight:600;line-height:1.25;cursor:pointer}
.ted-editor button.ted-tool:hover:not(:disabled),.ted-editor button.ted-icon:hover:not(:disabled),.ted-dialog button:hover:not(:disabled){border-color:#949e93;background:#f4f6f2}
.ted-editor button.ted-tool[aria-pressed=true]{color:#fff;background:#38493e;border-color:#38493e}
.ted-editor button.ted-tool[aria-pressed=true]:hover:not(:disabled){background:#2e3d32;color:#fff}
.ted-editor button.ted-primary,.ted-dialog button.ted-primary{background:var(--ted-accent);border-color:var(--ted-accent);color:#fff;padding-inline:17px;min-height:44px}
.ted-editor button.ted-primary:hover:not(:disabled),.ted-dialog button.ted-primary:hover:not(:disabled){background:var(--red-h,#a52e26);color:#fff}
.ted-editor button:disabled{opacity:.48;cursor:default}
.ted-editor button.ted-link-button{border:0;background:transparent;color:#93352b;text-decoration:underline;text-underline-offset:2px;font-size:.85rem;font-weight:620;padding:4px;min-height:30px}
.ted-editor .ted-help{min-height:36px;margin:5px 0 9px;color:var(--ted-muted);font-size:.87rem}
.ted-help span{flex:1 1 auto}
.ted-editor .ted-disclosure{margin:0 0 .8rem;padding:.6rem .85rem;border:1px solid #e5c8bd;border-radius:7px;background:#fff6ef;color:#674033;font-size:.9rem}
.ted-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(185px,230px);gap:15px;align-items:start}
.ted-work{min-width:0;border:1px solid var(--ted-line);border-radius:10px;overflow:hidden;background:#f7f8f5}
.ted-nav{justify-content:space-between;background:#f7f8f5;gap:8px;padding:6px 8px;border-bottom:1px solid var(--ted-line)}
.ted-nav-group{gap:5px;flex-wrap:nowrap;font-size:.82rem}
.ted-editor .ted-nav .ted-tool,.ted-editor .ted-nav .ted-icon{min-height:35px;padding:5px 8px;font-size:.8rem}
.ted-editor .ted-nav .ted-icon{width:34px;padding:0;font-size:1.35rem}
.ted-editor .ted-page-number,.ted-editor .ted-zoom{border:1px solid #c5cbc2;border-radius:6px;background:#fff;min-height:35px;padding:3px 6px;color:var(--ted-ink);font:inherit}
.ted-editor input.ted-page-number{width:3.1em;-moz-appearance:textfield;text-align:center}
.ted-editor .ted-page-number::-webkit-inner-spin-button,.ted-editor .ted-page-number::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.ted-scroll{width:100%;max-height:min(77vh,850px);min-height:145px;overflow:auto;padding:14px;overscroll-behavior:contain;background:#e8ebe5;background-image:radial-gradient(#cdd3c9 .8px,transparent .9px);background-size:9px 9px}
.ted-sheet{position:relative;background:#fff;margin:0 auto;box-shadow:0 1px 7px #29322132;isolation:isolate;touch-action:pan-x pan-y;user-select:none;outline-offset:0}
.ted-sheet.ted-marking{touch-action:none;cursor:crosshair}
.ted-sheet.ted-pending{opacity:.35;pointer-events:none}
.ted-page-canvas,.ted-layer,.ted-trace{position:absolute;inset:0;width:100%;height:100%;display:block}
.ted-layer,.ted-trace,.ted-ghost{pointer-events:none}
.ted-widgets{z-index:1}
.ted-items{z-index:2}
.ted-trace,.ted-ghost{z-index:3}
.ted-mark{position:absolute;pointer-events:auto;cursor:move;touch-action:none;outline:1px dashed transparent;outline-offset:0}
.ted-mark:hover{outline-color:#5f7567}
.ted-mark.ted-selected{outline:2px solid #316652}
.ted-mark canvas{width:100%;height:100%;display:block;pointer-events:none}
.ted-mark[data-kind=highlight]{mix-blend-mode:multiply}
.ted-grip{position:absolute;width:24px;height:24px;right:-11px;bottom:-11px;cursor:nwse-resize;touch-action:none;display:grid;place-items:center}
.ted-grip::after{content:"";width:10px;height:10px;border:2px solid #fff;background:#316652;box-shadow:0 0 0 1px #316652;border-radius:2px}
.ted-ghost{position:absolute;outline:2px dashed #316652}
.ted-ghost-redact{background:#000}
.ted-ghost-highlight{background:#ffdb3970}
.ted-ghost-link{background:#87b2e04a}
.ted-editor button.ted-widget{position:absolute;pointer-events:auto;background:rgba(219,232,247,.16);color:#18232c;border:1px dashed #5880aa;min-height:0;min-width:0;padding:0 2px;border-radius:0;line-height:1.1;font-size:clamp(8px,1.2vw,15px);text-align:left;white-space:pre;overflow:hidden;display:block;cursor:text}
.ted-editor button.ted-widget-active{outline:2px solid #315c94;outline-offset:0}
.ted-editor button.ted-widget-changed{background:#fff}
.ted-aside{display:grid;align-content:start;gap:12px;min-width:0}
.ted-item-list,.ted-properties,.ted-form-fields{min-width:0;border:1px solid var(--ted-line);border-radius:9px;padding:12px;background:#fafbf8}
.ted-editor .ted-hint,.ted-editor .ted-message{font-size:.86rem;color:var(--ted-muted);line-height:1.45;margin:0;overflow-wrap:anywhere}
.ted-panel-title{justify-content:space-between;align-items:baseline}
.ted-panel-title h3{margin-bottom:0}
.ted-label{display:grid;gap:3px;font-size:.83rem;font-weight:600;color:#3c443d;margin-top:.55rem;overflow-wrap:anywhere}
.ted-editor .ted-aside select,.ted-editor .ted-aside textarea,.ted-editor .ted-aside input:not([type=checkbox]){display:block;width:100%;min-width:0;min-height:36px;background:#fff;color:#202621;border:1px solid #c7cdc3;border-radius:6px;padding:5px 7px;font-size:.92rem;font-weight:400;line-height:1.35}
.ted-editor .ted-aside textarea{resize:vertical}
.ted-editor .ted-aside input[type=color]{padding:3px;cursor:pointer}
.ted-editor .ted-check,.ted-editor .ted-flatten{display:flex;align-items:center;gap:7px}
.ted-editor input[type=checkbox]{accent-color:#35614a;width:18px;height:18px;min-height:0;margin:0;flex:0 0 auto}
.ted-editor .ted-position{margin-top:.75rem}
.ted-position summary{cursor:pointer;color:#485349;font-size:.83rem;font-weight:600}
.ted-position-grid{display:grid;grid-template-columns:1fr 1fr;gap:3px 8px}
.ted-form-fields{max-height:min(65vh,620px);overflow:auto}
.ted-footer{margin-top:14px;gap:12px}
.ted-flatten{font-size:.89rem;color:#454d45;margin-right:3px}
.ted-editor .ted-message{flex:1;min-width:120px}
.ted-editor .ted-error{color:#982e23}
.ted-dialog{width:min(94vw,580px);border:1px solid #c6cdc3;border-radius:13px;padding:18px;box-shadow:0 15px 55px #1b281c44;color:var(--ted-ink);background:white}
.ted-dialog::backdrop{background:#1d281d66}
.ted-dialog .ted-sign-pad{display:block;margin:12px 0;width:100%;aspect-ratio:10/3;background:linear-gradient(transparent 72%,#d7ded5 72.5%,transparent 73%);border:1px dashed #a2aea0;border-radius:7px;touch-action:none;cursor:crosshair}
.ted-dialog-actions button:first-child{margin-right:auto}
@media(max-width:760px){
  .ted-layout{grid-template-columns:minmax(0,1fr)}.ted-aside{grid-template-columns:repeat(auto-fit,minmax(min(100%,215px),1fr));gap:8px}
  .ted-form-fields{max-height:410px}.ted-scroll{padding:8px;max-height:67vh}
  .ted-editor .ted-aside input:not([type=checkbox]),.ted-editor .ted-aside select,.ted-editor .ted-aside textarea{font-size:16px}
  .ted-nav-group{gap:4px}
}
@media(max-width:470px){
  .ted-tools{gap:4px}.ted-editor button.ted-tool{min-height:42px;padding:6px 8px;font-size:.83rem}
  .ted-nav{padding:5px;gap:4px}.ted-nav-group{font-size:.76rem}.ted-nav{justify-content:flex-start}.ted-nav-group:last-child{margin-left:auto}
  .ted-editor .ted-nav .ted-tool{padding:4px 5px}.ted-editor .ted-nav .ted-icon{width:27px}
  .ted-editor .ted-zoom,.ted-editor .ted-page-number{padding-inline:2px}.ted-editor input.ted-page-number{width:2.5em}
  .ted-footer{align-items:flex-start}.ted-footer .ted-message{flex-basis:100%}
}
.ted-targets{z-index:3}
.ted-editor button.ted-native-target{display:block;position:absolute;pointer-events:auto;min-width:0;min-height:0;margin:0;padding:0;border:1px dashed #347454;border-radius:1px;background:rgba(102,159,113,.13);cursor:text}
.ted-editor button.ted-native-target:hover,.ted-editor button.ted-native-target:focus-visible{border:2px solid #276243;background:rgba(102,159,113,.2)}
.ted-editor .ted-text-picker{max-width:100%;min-width:0;border:1px solid #c7cdc3;border-radius:6px;background:#fff;padding:5px;font-size:.88rem}
.ted-editor .ted-original{white-space:pre-wrap;overflow-wrap:anywhere;margin:3px 0 .5rem;font-size:.95rem;color:#303b30}
.ted-editor .ted-font-note{margin-top:.65rem}
.ted-mark[data-kind=replace]{cursor:text}
.ted-editor .ted-aside [aria-invalid=true]{border-color:#af3c2d}

@media(max-width:700px){
  .ted-editor>h2{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  .ted-editor .ted-tools{flex-wrap:nowrap;overflow-x:auto;gap:5px;padding:4px;margin:-4px -4px 0;scrollbar-width:thin}
  .ted-tools button{flex:none;white-space:nowrap}
  .ted-editor .ted-tools .ted-tool{min-height:44px}
  .ted-editor .ted-help{min-height:0;margin:4px 0 6px;line-height:1.3}
  .ted-editor .ted-nav .ted-tool,.ted-editor .ted-nav .ted-icon{min-height:44px}
  .ted-editor .ted-nav .ted-icon{width:32px}
  .ted-editor .ted-nav-group:first-child>span:first-of-type{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  .ted-editor .ted-scroll{min-height:47svh}
  .ted-editor .ted-footer{position:sticky;bottom:0;z-index:4;gap:6px;margin:8px -8px -8px;padding:8px 8px max(8px,env(safe-area-inset-bottom));border-top:1px solid var(--ted-line);border-radius:0 0 8px 8px;background:#fff}
  .ted-editor .ted-footer .ted-message:empty{display:none}
}
