/* Team delete dialog (JS/features/team-delete-flow.js), shared by admin.html and
   team_board.html so an Organization Owner can use it from the Team page.
   Classes are shared with the OKR Cleanup and organization-delete dialogs (one destructive
   recipe; `.acct-delete-*` in CSS/components.css is the original). Colours are all tokens. */

/* The warning box both dialogs open with — sys_design-system.md §"Wording in the
   Suite", the destructive-confirmation shape. */
.okrc-warn{
  font-size:var(--a-fs-ctl); line-height:var(--a-lh-ui); color:var(--text);
  padding:10px 12px; background:var(--red-soft);
  border:1px solid var(--red); border-radius:var(--radius-sm);
}
.okrc-warn p{ margin:0 0 8px; }
.okrc-warn p:last-child{ margin-bottom:0; }
.okrc-warn ul{ margin:0 0 8px; padding-left:18px; }
.okrc-warn li{ margin:2px 0; }
.okrc-warn b{ color:var(--red-text); }

/* The typed-confirmation label and chip, for dialogs that ask for a phrase rather
   than a click — the same distinction account.js draws for deleting your own account. */
.okrc-phrase-label{
  display:block; font-size:var(--a-fs-11); color:var(--text-dim); text-transform:uppercase;
  letter-spacing:.4px; font-weight:600; margin:14px 0 5px;
}
/* `text-transform:none` overrides the uppercase inherited from `.okrc-phrase-label`
   — this chip holds a team's real name, so painting it uppercase would tell the
   reader to type a string the team does not have. Scoped to this class only. */
.okrc-phrase{
  font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size:var(--a-fs-ctl); color:var(--red-text); background:var(--panel-2);
  border:1px solid var(--border-soft); border-radius:4px; padding:1px 5px;
  white-space:nowrap; text-transform:none;
}
.okrc-hint{ font-size:var(--a-fs-ctl-sm); line-height:var(--a-lh-ui); color:var(--text-faint); margin-top:6px; }
.okrc-hint.err{ color:var(--red-text); }

/* The cascade offer: ordinary dialog text spaced off the boxes above it. The button
   carries the warning via `.a-btn.danger` (CSS/alt/alt-components.css). */
.okrc-cascade-offer{ margin-top:10px; }
.okrc-cascade-offer p{ font-size:var(--a-fs-ctl); line-height:var(--a-lh-ui); color:var(--text); margin:0 0 10px; }
.okrc-cascade-offer p:last-child{ margin-bottom:0; }

/* A checkbox and its sentence on one line, reusing `.okrc-phrase-label`'s spacing
   but not its uppercase — a class rather than an inline style, so 4d's grep finds it. */
.tdf-keep-choice{
  display:flex; align-items:center; gap:7px;
  text-transform:none; letter-spacing:normal; font-size:var(--a-fs-ctl); font-weight:600;
  color:var(--text); cursor:pointer;
}
.tdf-keep-choice input{ margin:0; flex:0 0 auto; }

/* The consequence of that choice, carrying more weight than the offer paragraph —
   load-bearing text (4d's judgement clause), the line a reader most needs to land on. */
.tdf-keep-note{ font-weight:600; margin:0 0 10px; }
.tdf-keep-note:last-child{ margin-bottom:0; }

/* Refusal colour only (`--red-text`, no box, like `.okrc-hint.err`); `.tdf-keep-note` has
   the shape. Matches the offer rule's specificity (`.okrc-cascade-offer p`, 0,1,1) so it
   wins by order rather than `!important`. */
.okrc-cascade-offer p.tdf-keep-block{ color:var(--red-text); }

/* What survives the delete — a separate box, deliberately not red (sys_design-
   system.md §"Wording in the Suite"). `--gray-soft` matches `.aea-verdict`'s own
   resting state; same shape as `.okrc-warn`, only the two colours differ. */
.orgdel-keep{
  font-size:var(--a-fs-ctl); line-height:var(--a-lh-ui); color:var(--text);
  padding:10px 12px; margin-top:10px; background:var(--gray-soft);
  border:1px solid var(--border-soft); border-radius:var(--radius-sm);
}
.orgdel-keep p{ margin:0 0 8px; }
.orgdel-keep p:last-child{ margin-bottom:0; }
.orgdel-keep ul{ margin:0; padding-left:18px; }
.orgdel-keep li{ margin:2px 0; }
/* The figure, in ordinary text colour — `.okrc-warn b` is red because that count is a loss. */
.orgdel-keep b{ color:var(--text); }

/* The footer stacks on a phone — a danger button and Cancel side by side below
   520px either overflow or shrink unreadable. CSS/admin.css carries the same rule
   for its own dialogs; this is `#teamDeleteOverlay`'s. */
@media (max-width: 520px){
  #teamDeleteOverlay .modal-footer{ flex-direction:column-reverse; align-items:stretch; }
  #teamDeleteOverlay .modal-footer .a-btn{ justify-content:center; }
}
