.document-review{
 box-sizing:border-box;
 width:min(1280px,calc(100% - 32px));
 max-width:none;
 max-height:92dvh;
 overflow:auto;
 margin:auto;
 padding:clamp(20px,3vw,36px);
 background:var(--paper,#f2f0eb);
 color:var(--ink,#242824);
 border:1px solid var(--line,#cdc9bf);
 border-radius:2px;
}
.document-review::backdrop{background:rgba(22,25,24,.48)}
.document-review h2,.document-review h3,.document-library h3{
 font-family:"Cormorant Garamond",serif;
 font-weight:400;
}
.document-review h2{font-size:clamp(28px,3vw,36px);line-height:1.05;margin:0}
.document-review h3,.document-library h3{font-size:24px;line-height:1.15;margin:22px 0 8px}
.document-review header,.document-review footer{display:flex;justify-content:space-between;gap:16px;align-items:center}
.document-review footer{justify-content:flex-end;margin-top:24px;padding-top:16px;border-top:1px solid var(--line,#cdc9bf)}
.document-review footer{flex-wrap:wrap}
.document-review footer [data-status]{flex:1 0 100%;margin:0;font:400 14px/1.4 Inter,sans-serif}
.document-review [aria-invalid=true]{border-color:var(--atelier-alert,#7a3a33);outline:2px solid var(--atelier-alert,#7a3a33);outline-offset:2px}
.document-review [data-field-error]{color:var(--atelier-alert,#7a3a33);font:400 14px/1.4 Inter,sans-serif}
.document-review button,.document-library button,.document-toast button{
 box-sizing:border-box;
 min-height:44px;
 padding:10px 14px;
 background:none;
 border:0;
 color:inherit;
 font:500 12px Inter,sans-serif;
 cursor:pointer;
}
.document-review button:hover,.document-library button:hover{background:color-mix(in srgb,var(--ink,#242824) 6%,transparent)}
.document-review button:focus-visible,.document-library button:focus-visible,.document-toast button:focus-visible{
 outline:2px solid #a3864d;
 outline-offset:2px;
}
.document-review .document-primary{background:var(--accent-green);color:#f2f0eb!important;border-radius:22px;padding:10px 28px}
.document-review .document-primary:hover,.document-review .document-primary:active{background:var(--accent-green-active);border-color:var(--accent-green-active)}
.document-review-layout{
 display:grid;
 grid-template-columns:minmax(280px,.82fr) minmax(0,1.5fr);
 align-items:start;
 gap:clamp(24px,4vw,56px);
 margin-top:26px;
}
.document-review-layout>section{min-width:0}
.document-preview{
 display:block;
 width:100%;
 max-width:100%;
 max-height:58dvh;
 object-fit:contain;
 object-position:top center;
 background:#fff;
 border:1px solid var(--line,#cdc9bf);
}
.document-review-layout>section:first-child>[data-preview]{margin-top:8px}
.document-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px}
.document-review [data-fields-group]{padding-top:4px}
.document-review .document-fieldsets{display:grid;gap:8px}
.document-review .document-fieldsets [data-fields-group]{border-top:1px solid var(--line,#cdc9bf)}
.document-review .document-more{
 margin-top:12px;
 border-top:1px solid var(--line,#cdc9bf);
 border-bottom:1px solid var(--line,#cdc9bf);
}
.document-review .document-more>summary{
 display:flex;
 align-items:center;
 min-height:48px;
 padding:0 4px;
 cursor:pointer;
 list-style:none;
 font:500 12px Inter,sans-serif;
 letter-spacing:.04em;
}
.document-review .document-more>summary::-webkit-details-marker{display:none}
.document-review .document-more>summary::after{content:"+";margin-left:auto;font:400 22px "Cormorant Garamond",serif}
.document-review .document-more[open]>summary::after{content:"−"}
.document-review .document-more>summary:focus-visible{outline:2px solid #a3864d;outline-offset:2px}
.document-review .document-more[open]>.document-fieldsets{padding:0 0 14px}
.document-library .document-ledger{display:grid;grid-template-columns:minmax(100px,1fr) 2fr;gap:0;margin:0 0 24px}
.document-library .document-ledger dt,.document-library .document-ledger dd{padding:12px 0;margin:0;border-bottom:1px solid var(--line,#cdc9bf)}
.document-library .document-ledger dt{font:400 12px Inter,sans-serif;color:var(--muted,#62645f)}
.document-library .document-ledger dd{font:400 20px "Cormorant Garamond",serif}
.document-review label{display:block;font:400 14px Inter,sans-serif;margin:16px 0 0}
.document-review input:not([type=checkbox]),.document-review select,.document-review textarea{
 box-sizing:border-box;
 width:100%;
 min-height:48px;
 margin-top:8px;
 padding:10px 12px;
 border:1px solid var(--line,#cdc9bf);
 border-radius:2px;
 background:var(--paper,#f8f6f1);
 color:inherit;
 font:400 16px Inter,sans-serif;
}
.document-review textarea{min-height:84px;resize:vertical}
.document-review input[type=checkbox]{width:20px;height:20px;accent-color:var(--accent-green);vertical-align:middle}
.document-review input:focus-visible,.document-review select:focus-visible,.document-review textarea:focus-visible{outline:2px solid #a3864d;outline-offset:1px}
.document-soft,.document-library .document-row small{display:block;font:400 13px Inter,sans-serif;color:var(--muted,#62645f);line-height:1.5}
.document-warning,.document-review [data-status][role=status]{color:var(--atelier-alert,#7a3a33);font:400 14px Inter,sans-serif}
.document-target-card,.document-library .document-row{padding:14px 0;border-bottom:1px solid var(--line,#cdc9bf)}
.document-review [data-target]{display:block;text-align:left;width:100%;border-bottom:1px solid var(--line,#cdc9bf);font-size:16px}
.document-review [data-target] small{display:block;font-size:12px;color:var(--muted,#62645f)}
.document-review .document-field-check{
 display:inline-flex;
 align-items:center;
 max-width:100%;
 margin:8px 0 0;
 padding:5px 9px;
 border:1px solid color-mix(in srgb,var(--atelier-alert,#7a3a33) 24%,var(--line,#cdc9bf));
 background:color-mix(in srgb,var(--atelier-alert,#7a3a33) 7%,var(--paper,#f2f0eb));
 color:var(--atelier-alert,#7a3a33);
 font:400 12px/1.4 Inter,sans-serif;
}
.document-review .document-selected-summary{
 display:block;
 margin:6px 0 0;
 color:var(--muted,#62645f);
 font:400 12px/1.45 Inter,sans-serif;
}
.document-review .document-warranty-plan{
 box-sizing:border-box;
 display:flex;
 align-items:center;
 gap:10px;
 min-height:44px;
 margin:12px 0 0;
 padding:8px 0;
 border-top:1px solid var(--line,#cdc9bf);
 font:400 13px/1.45 Inter,sans-serif;
}
.document-review .document-warranty-plan input[type=checkbox]{
 flex:0 0 20px;
 width:20px;
 height:20px;
 margin:0;
}
.document-review .filing-options .document-target-search{
 box-sizing:border-box;
 display:block;
 width:100%;
 min-height:44px;
 margin:0 0 10px;
 padding:9px 11px;
 border:1px solid var(--line,#cdc9bf);
 border-radius:2px;
 background:var(--paper,#f8f6f1);
 color:inherit;
 font:400 14px Inter,sans-serif;
}
.document-review .filing-options .document-target-search:focus-visible{
 outline:2px solid #a3864d;
 outline-offset:1px;
}
.document-library .document-row{display:flex;gap:12px;align-items:center}
.document-library .document-row>div{flex:1;min-width:0}
.document-toast{
 position:fixed;
 z-index:10020;
 bottom:100px;
 left:50%;
 transform:translateX(-50%);
 max-width:calc(100% - 32px);
 padding:8px 18px;
 background:var(--accent-green);
 color:#f2f0eb;
 font:400 14px Inter,sans-serif;
}
.document-share-choice{box-sizing:border-box;display:flex;align-items:center;gap:10px;padding:10px 0;min-height:44px}
@media(max-width:767px){
 .document-review{width:calc(100% - 20px);max-height:94dvh;padding:16px}
 .document-review-layout{grid-template-columns:minmax(0,1fr);gap:20px;margin-top:18px}
 .document-review-layout>section:first-child{display:flex;flex-direction:column;align-items:stretch}
 .document-preview{max-height:32dvh}
 .document-fields{grid-template-columns:minmax(0,1fr)}
 .document-review h2{font-size:28px}
 .document-review h3{font-size:22px}
 .document-review footer{position:sticky;bottom:-16px;margin:20px -16px -16px;padding:12px 16px;background:var(--paper,#f2f0eb);border-top:1px solid var(--line,#cdc9bf)}
}
@media(prefers-color-scheme:dark){
 :root:not([data-theme="light"]) .document-review{
  background:var(--paper,#252824);
  color:var(--ink,#e7e3d9);
  border-color:var(--line,#494b44);
 }
 :root:not([data-theme="light"]) .document-review input:not([type=checkbox]),
 :root:not([data-theme="light"]) .document-review select,
 :root:not([data-theme="light"]) .document-review textarea{
  background:var(--paper,#30332e);
  border-color:var(--line,#494b44);
 }
 :root:not([data-theme="light"]) .document-review footer{background:var(--paper,#252824)}
 :root:not([data-theme="light"]) .document-preview{background:#f4f1e9}
}
.dark .document-review,.theme-dark .document-review,[data-theme="dark"] .document-review{
 background:var(--paper,#252824);
 color:var(--ink,#e7e3d9);
 border-color:var(--line,#494b44);
}
.dark .document-review input:not([type=checkbox]),.dark .document-review select,.dark .document-review textarea,
.theme-dark .document-review input:not([type=checkbox]),.theme-dark .document-review select,.theme-dark .document-review textarea,
[data-theme="dark"] .document-review input:not([type=checkbox]),[data-theme="dark"] .document-review select,[data-theme="dark"] .document-review textarea{
 background:var(--paper,#30332e);
 border-color:var(--line,#494b44);
}
