.retention-editor{margin-top:18px;padding:17px;border:1px solid #d9eaec;border-radius:12px;background:#f6fbfc}.retention-heading{display:flex;gap:10px;align-items:flex-start;margin-bottom:16px}.retention-heading strong{font-size:13px;color:#3b6570}.retention-heading p{font-size:11px;line-height:1.8;color:#8198a3;margin-top:3px}.retention-symbol{display:grid;place-items:center;background:#e5f3f2;border-radius:9px;padding:8px;color:#27939d}.retention-symbol .icon{width:17px;height:17px}.retention-quick{display:flex;gap:10px;align-items:flex-end;flex-wrap:wrap;margin:16px 0}.retention-quick label{max-width:135px}.retention-quick label>span,.retention-datetime label>span{display:block;color:#6d8693;font-size:11px;margin-bottom:6px}.retention-quick>span{font-size:10px;color:#91a4ad;padding-bottom:8px}.retention-datetime{display:grid;grid-template-columns:1.2fr 1fr 1fr 10px 1fr 1fr;gap:8px;align-items:end}.retention-datetime label{min-width:0}.retention-at{padding-bottom:9px;text-align:center;color:#a4b6bf}.retention-spacing{margin-top:17px}.retention-spacing input{max-width:180px}.retention-preview{margin-top:15px;border-left:3px solid #a1c4cb;padding:7px 11px;font-size:12px;line-height:1.8;color:#718e99;font-variant-numeric:tabular-nums}.retention-preview.is-scheduled{border-left-color:#1695a2;background:#edf8f8;color:#287b88}.retention-cell{display:flex;flex-direction:column;align-items:flex-start;gap:5px;min-width:145px;max-width:260px}.retention-tag{display:inline-flex;border:1px solid #e2ebef;border-radius:6px;padding:3px 7px;background:#f5f8fa;color:#869eaa;font-size:10px;line-height:1.4}.retention-tag.is-long-term{background:#edf7f3;border-color:#d9ede6;color:#548f7e}.retention-tag.is-scheduled{background:#edf6fa;border-color:#d9e9f0;color:#508697}.retention-date{font-size:10px;color:#718d9c;white-space:nowrap;font-variant-numeric:tabular-nums}.retention-countdown{font-family:var(--mono);font-size:11px;color:#328f98;white-space:nowrap}.retention-countdown.is-due{color:#b28b50}.retention-batch-summary{display:flex;justify-content:space-between;gap:15px;align-items:center;margin:17px 0;padding:14px 16px;background:#f5fafb;border:1px solid #e0ecef;border-radius:11px}.retention-batch-summary .retention-cell{max-width:none}.retention-batch-summary p{font-size:11px;color:#8aa0ab;margin-top:4px}.retention-editor[hidden],.retention-editor .hidden{display:none!important}@media(max-width:620px){.retention-datetime{grid-template-columns:repeat(3,minmax(0,1fr))}.retention-at{display:none}.retention-batch-summary{align-items:flex-start;flex-direction:column}.retention-editor{padding:13px}.retention-quick>span{width:100%;padding:0}.retention-datetime pk-select{min-width:0}}
.children-retention{padding:0 18px 16px}.children-retention .retention-editor{margin-top:0}
.retention-summary{display:block;font-size:10px;color:#8a9faa;line-height:1.7;white-space:normal}

/* Match the mother-account yellow / green rows without hiding selection. */
.children-management .child-row-pending{--child-status-soft:#fff9e9;--child-status-edge:#f1e0b8}
.children-management .child-row-joined{--child-status-soft:#edf8f1;--child-status-edge:#c8e8d8}
.children-management .data-table tr:is(.child-row-pending,.child-row-joined)>td{background:var(--child-status-soft);transition:box-shadow .15s ease}
.children-management .data-table tr:is(.child-row-pending,.child-row-joined)>td:first-child{box-shadow:inset 3px 0 0 var(--child-status-edge)}
.children-management .data-table tr:is(.child-row-pending,.child-row-joined):hover>td{background:var(--child-status-soft);filter:brightness(.992)}
.children-management .data-table tr:is(.child-row-pending,.child-row-joined).selected>td{background:var(--child-status-soft);box-shadow:inset 0 2px 0 #8ac3c955,inset 0 -2px 0 #8ac3c955}
.children-management .data-table tr:is(.child-row-pending,.child-row-joined).selected>td:first-child{box-shadow:inset 3px 0 0 #379ba6,inset 0 2px 0 #8ac3c955,inset 0 -2px 0 #8ac3c955}

/* Keep the child-account operation settings on the same form grid. */
.children-management{--children-gutter:20px}
.children-management>.toolbar,.children-management>.batch-bar,.children-management>.summary-line{padding-inline:var(--children-gutter)}
.children-management>.invite-schedule{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.3fr) minmax(0,1fr);align-items:start;gap:16px 20px;padding:20px var(--children-gutter) 18px;border-bottom:0;background:#f6fafb}
.children-management .invite-schedule>.invite-interval,.children-management .invite-schedule>.invite-schedule-mode{display:flex;flex-direction:column;align-items:stretch;gap:8px;min-width:0}
.children-management .invite-schedule label{font-size:12px;font-weight:550;line-height:1.6;color:#667f8d;white-space:normal}
.children-management .invite-schedule input,.children-management .invite-schedule pk-select{width:100%;min-width:0;max-width:none;height:42px;padding:9px 12px;font-size:12px;border-radius:10px;background:#fff}
.children-management .invite-schedule-note{grid-column:1/-1;display:block;width:auto;margin:0;padding-top:12px;border-top:1px solid #e2ecef;color:#8198a3;font-size:11px;line-height:1.9;overflow-wrap:anywhere}
.children-management>.children-retention{padding:0 var(--children-gutter) 20px;background:#f6fafb}
.children-management .children-retention>.retention-editor{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:18px 28px;margin:0;padding:20px;border-color:#dcebed;background:#fbfdfd}
.children-management .children-retention .retention-heading{min-width:0;margin:0;gap:12px;align-items:flex-start}
.children-management .children-retention .retention-heading>div{min-width:0}
.children-management .children-retention .retention-heading strong{font-size:13px;line-height:1.8}
.children-management .children-retention .retention-heading p{max-width:390px;line-height:1.9}
.children-management .children-retention .retention-symbol{flex-shrink:0}
.children-management .children-retention .retention-editor>.field{min-width:0;margin:0}
.children-management .children-retention .retention-editor>.field>span{font-size:12px;line-height:1.6;margin-bottom:8px}
.children-management .children-retention .retention-editor>.field>pk-select{width:100%;height:42px;font-size:12px}
.children-management .children-retention .retention-scheduled{grid-column:1/-1;min-width:0;padding-top:18px;border-top:1px solid #e2ecef}
.children-management .children-retention .retention-quick{margin:0 0 18px;gap:10px 12px}
.children-management .children-retention .retention-quick label{width:160px;max-width:100%}
.children-management .children-retention .retention-quick .button{min-height:42px;padding:9px 14px}
.children-management .children-retention .retention-datetime{max-width:780px;gap:10px}
.children-management .children-retention .retention-datetime pk-select{width:100%;height:42px;min-width:0;font-size:12px}
.children-management .children-retention .retention-spacing{margin-top:18px}
.children-management .children-retention .retention-spacing input{width:160px;max-width:100%;height:42px}
.children-management .children-retention .retention-preview{grid-column:1/-1;margin:0;overflow-wrap:anywhere}
@media(max-width:1000px){
  .children-management .children-retention>.retention-editor{gap:16px 20px;padding:18px}
  .children-management>.invite-schedule{column-gap:14px}
}
@media(max-width:760px){
  .children-management{--children-gutter:16px}
  .children-management>.invite-schedule{grid-template-columns:1fr;gap:16px;padding-top:16px;padding-bottom:16px}
  .children-management .invite-schedule-note{padding-top:12px;font-size:11px}
  .children-management>.children-retention{padding-bottom:16px}
  .children-management .children-retention>.retention-editor{grid-template-columns:1fr;padding:16px;gap:18px}
  .children-management .children-retention .retention-heading p{max-width:none}
  .children-management .children-retention .retention-quick>span{width:100%;padding:0}
  .children-management .children-retention .retention-datetime{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px 8px}
  .children-management .children-retention .retention-at{display:none}
}
@media(max-width:420px){
  .children-management{--children-gutter:12px}
  .children-management .children-retention>.retention-editor{padding:14px}
  .children-management .children-retention .retention-quick label{width:140px}
  .children-management .children-retention .retention-datetime{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* Account selection inside the space-application dialog. */
.modal-join-create .modal-body{scroll-padding-block:20px;overflow-anchor:none}
.modal-join-create .modal-content{min-width:0}
.modal-join-create .join-target-field{scroll-margin-top:20px}
.modal-join-create .join-target-field small{overflow-wrap:anywhere}
.modal-join-create .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.modal-join-create .form-grid>.field{min-width:0}
.modal-join-create pk-select{min-width:0;max-width:100%}
.modal-join-create .join-existing-accounts{min-width:0;padding:16px;border:1px solid #e0eaee;border-radius:12px;background:#f8fbfc}
.modal-join-create .join-candidate-heading{margin-bottom:14px}
.modal-join-create .join-candidate-heading strong{font-size:13px;line-height:1.8;color:#3b6570}
.modal-join-create .join-candidate-heading p{margin-top:4px;font-size:11px;line-height:1.9;color:#8198a3}
.modal-join-create .join-candidate-search{display:block;position:relative;width:100%;min-width:0;margin:0}
.modal-join-create .join-candidate-search>.icon{top:50%;left:13px;transform:translateY(-50%);width:17px;height:17px}
.modal-join-create .join-candidate-search input{display:block;width:100%;min-width:0;height:42px;padding:10px 12px 10px 40px;background:#fff;font-size:12px}
.modal-join-create .join-candidate-list{min-width:0;margin-top:16px}
.modal-join-create .join-candidate-list .table-wrap{max-width:100%;border:1px solid #e2ecef;border-radius:9px;background:#fff}
.modal-join-create .join-candidate-list .data-table{min-width:540px}
.modal-join-create .join-candidate-list .data-table td{white-space:normal;overflow-wrap:anywhere}
.modal-join-create .join-candidate-list .data-table th:first-child,.modal-join-create .join-candidate-list .data-table td:first-child{width:44px}
.modal-join-create .join-candidate-list>.library-form-help{margin-top:12px}
@media(max-width:760px){
  .modal-join-create .form-grid{grid-template-columns:1fr}
  .modal-join-create .join-existing-accounts{padding:13px}
  .modal-join-create .join-candidate-list{margin-top:13px}
}
