/* GermesDocs cabinet: document package creation v4 only. */
.gd456-backdrop{z-index:1100;overflow-y:auto;padding:18px;align-items:center;justify-content:center}
.gd456-modal{width:min(760px,100%);max-height:min(92vh,1000px);overflow-y:auto;box-sizing:border-box;background:var(--card,#fff);color:var(--text,#1e293b);border-radius:18px;box-shadow:0 22px 65px rgba(0,0,0,.25);padding:25px;display:flex;flex-direction:column;gap:17px}
.gd456-modal *{box-sizing:border-box}
.gd456-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;padding-bottom:12px;border-bottom:1px solid rgba(120,130,145,.2)}
.gd456-head h2{margin:0;font-size:22px;font-weight:750;line-height:1.25}
.gd456-head p{margin:4px 0 0;color:var(--muted,#718096);font-size:12px}
.gd456-close{border:0!important;background:transparent!important;font-size:25px!important;padding:2px 8px!important;color:inherit!important}
.gd456-section{border:1px solid rgba(120,130,145,.2);border-radius:13px;padding:16px;display:flex;flex-direction:column;gap:12px;min-width:0}
.gd456-section h3{font-size:15px;margin:0 0 2px;font-weight:700}
.gd456-segments{display:flex;gap:8px;flex-wrap:wrap}
.gd456-choice{flex:1 1 130px;border:1px solid #a9b6c8!important;border-radius:8px!important;background:transparent!important;padding:10px!important;color:inherit!important;min-height:40px}
.gd456-choice.selected{background:#e8effd!important;border-color:#537ac8!important;color:#254c96!important;font-weight:700}
.gd456-field{display:flex;flex-direction:column;gap:6px;min-width:0}
.gd456-field>span{font-size:12px;font-weight:650;color:inherit}
.gd456-field input,.gd456-field textarea,.gd456-field select,.gd456-searchrow input{width:100%;min-width:0;min-height:40px;border:1px solid #b5becc!important;background:var(--input-bg,transparent)!important;color:inherit!important;border-radius:8px!important;padding:10px!important;font:inherit;font-size:14px}
.gd456-field textarea{resize:vertical;min-height:68px}
.gd456-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
.gd456-searchrow{display:flex;gap:8px}
.gd456-searchrow button,.gd456-selected button,.gd456-actions button{padding:9px 13px;border:1px solid #b5becc;border-radius:8px;background:transparent;color:inherit;white-space:nowrap}
.gd456-results{display:flex;flex-direction:column;gap:5px;max-height:220px;overflow-y:auto}
.gd456-results button{display:flex;flex-direction:column;gap:3px;padding:10px;text-align:left;border-radius:9px;border:1px solid rgba(120,130,145,.3);background:transparent;color:inherit}
.gd456-results button:hover{background:rgba(107,142,192,.1)}
.gd456-results small,.gd456-selected small{font-size:11px;color:var(--muted,#66758e)}
.gd456-selected{display:flex;justify-content:space-between;gap:10px;border:1px solid #8aa8d5;border-radius:9px;padding:12px}
.gd456-selected>div{display:flex;flex-direction:column;gap:4px;min-width:0}
.gd456-changes{border:1px solid rgba(120,130,145,.2);padding:10px;border-radius:9px;display:grid;grid-template-columns:1fr 1fr;gap:9px}
.gd456-changes legend{padding:0 5px;font-size:12px;font-weight:700}
.gd456-changes label{font-size:13px;display:flex;align-items:flex-start;gap:7px}
.gd456-hint{margin:0;font-size:12px;line-height:1.5;color:var(--muted,#637185)}
.gd456-warning{margin:0;border-left:3px solid #d79232;background:rgba(215,146,50,.09);padding:9px 10px;font-size:12px}
.gd456-error{border:1px solid #d45e5e;border-radius:9px;background:rgba(215,70,70,.08);padding:11px;font-size:13px;color:#bb3434}
.gd456-actions{display:flex;justify-content:flex-end;gap:10px}
.gd456-actions .gd456-submit{background:#245cb5!important;border-color:#245cb5!important;color:white!important;font-weight:700}
.gd456-footnote{margin:0;color:var(--muted,#637185);font-size:12px}
@media(max-width:640px){.gd456-backdrop{padding:0;align-items:stretch}.gd456-modal{width:100%;max-height:100dvh;min-height:100dvh;border-radius:0;padding:15px;gap:12px}.gd456-section{padding:12px}.gd456-grid,.gd456-changes{grid-template-columns:1fr}.gd456-head h2{font-size:18px}.gd456-searchrow{flex-direction:column}.gd456-searchrow button{white-space:normal}.gd456-actions button{flex:1}}
@media(prefers-color-scheme:dark){.gd456-choice.selected{background:#263d66!important;color:#e5efff!important}.gd456-error{color:#f1a2a2}}
