.gd { display: grid; gap: 16px; color: #0c1423; min-width: 0; }
.gd .as-heading, .gd .as-box { margin: 0; min-width: 0; }
.gd .as-heading { align-items: center; }
.gd .as-heading h1, .gd .as-box h2, .gd .gd-item strong { overflow-wrap: anywhere; }
.gd-form { display: grid; gap: 16px; padding: 16px 18px; min-width: 0; }
.gd-form p, .gd-notice { margin: 0; }
.gd .auth-field { margin: 0; min-width: 0; }
.gd small { display: block; color: #4c5766; font-size: .94rem; font-weight: 400; }
.gd fieldset { display: grid; gap: 4px; padding: 0; border: 0; margin: 0; min-width: 0; }
.gd legend, .gd .auth-field label { font-weight: 650; }
.as-work .gd label.gd-check { display: flex; align-items: center; gap: .65em; min-height: 40px; font-weight: 400; cursor: pointer; }
.gd .gd-check input { width: 18px; height: 18px; min-width: 18px; accent-color: #0c1423; margin: 0; }
.gd-form > button, .gd-row button, .gd-inline button, .gd-button { width: fit-content; max-width: 100%; padding: 8px 16px; min-height: 40px; background: white; color: #0c1423; border: 1px solid #8a919c; border-radius: 6px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.gd-form button.gd-primary, .gd .gd-button.gd-primary { background: #0c1423; border-color: #0c1423; color: white; }
.gd-form button.gd-primary:hover, .gd-button.gd-primary:hover { background: #26354a; }
.gd .as-box:has(.org-picker[open]) { overflow: visible; }
.gd .org-picker-options button[hidden] { display: none; }
.gd .org-picker-options button { border: 0; border-radius: 0; width: 100%; text-align: start; }
.gd-row, .gd-item { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 14px; padding: 12px 18px; }
.gd-row + .gd-row { border-top: 1px solid #dadde2; }
.gd-item small { margin-top: 3px; }
.gd-toggle { cursor: pointer; font-weight: 650; background: rgb(245,245,245); padding: 12px 18px; }
.gd-inline { padding: 0 18px 12px; }
.gd-inline summary { cursor: pointer; }
.gd-inline form { margin-top: 8px; }
.gd-caps { margin: 0; padding: 12px 38px; line-height: 1.75; }
.gd-notice { padding: 12px 16px; border: 1px solid #b8c7be; background: #f6f9f7; border-radius: 6px; }
.gd-error { border-color: #c38889; color: #811f26; }
@media (max-width: 480px) { .gd { gap: 12px; } .gd-form,.gd-row,.gd-item,.gd-toggle { padding: 12px 14px; } }

/* Parent link management: child view first, permissions and documents secondary. */
.gd-parent-intro { margin:0; max-width:72ch; line-height:1.65; color:#4c5766; }
.gd-parent-steps { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; padding:0; margin:0; list-style:none; }
.gd-parent-steps li { display:flex; align-items:center; gap:10px; padding:12px; border:1px solid #dadde2; border-radius:8px; min-width:0; }
.gd-parent-steps strong { display:grid; place-items:center; flex:none; width:28px; height:28px; border-radius:50%; background:#0c1423; color:#fff; }
.gd-parent-steps span { font-size:.93rem; line-height:1.4; overflow-wrap:anywhere; }
.gd-parent-child { display:flex; flex-wrap:wrap; align-items:center; border-top:1px solid #dadde2; }
.gd-parent-child .gd-item { flex:1 1 210px; border:0; }
.gd-parent-permissions { display:inline-flex; align-items:center; min-height:44px; padding:8px 18px; text-decoration:underline; text-underline-offset:3px; }
.gd-parent-caption { color:#4c5766; line-height:1.55; }
.gd-parent a:focus-visible,.gd-parent summary:focus-visible { outline:3px solid #0c1423; outline-offset:3px; }
@media(max-width:600px) { .gd-parent-steps { grid-template-columns:1fr; gap:6px; } .gd-parent-steps li { padding:9px 12px; } }
