.app-topnav-apps-menu__item > .app-attention-badge {
  flex: 0 0 auto;
  margin-left: auto;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--app-module-badge-bg, var(--app-action-primary, #1d9bf0));
  color: var(--app-module-badge-text, #fff);
  box-shadow: 0 0 0 2px #ffffff;
  font-size: 11px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}
.app-topnav-apps-menu__item--spotlight { --app-module-badge-bg: #FACC15; --app-module-badge-text: #713F12; }
.app-topnav-apps-menu__item--development-plan { --app-module-badge-bg: #0D9488; }
.app-topnav-apps-menu__item--performance-review { --app-module-badge-bg: #3978FF; }
.app-topnav-apps-menu__item--pip-manager { --app-module-badge-bg: #C0560A; }
.app-topnav-apps-menu__item > .app-attention-badge--dot {
  width: 8px;
  min-width: 8px;
  height: 8px;
  padding: 0;
}
.app-topnav__button--apps { position: relative; }
.app-topnav-apps-menu__item:has(> .app-attention-badge) {
  grid-template-columns: 32px minmax(0, 1fr) auto;
}
.app-topnav__button--apps > .app-attention-total {
  position: absolute;
  top: -5px;
  right: -5px;
  box-sizing: border-box;
  min-width: 20px;
  height: 20px;
  padding: 0 4px;
  border: 0;
  box-shadow: 0 0 0 2px #ffffff;
  border-radius: 999px;
  background: var(--app-action-primary, #1d9bf0);
  color: #fff;
  font-size: 10px;
  line-height: 14px;
}

/**
 * Keshero Design System
 * Loaded before styles.css. New UI should use these tokens and classes so
 * fields, buttons, filters, and tabs stay consistent with locked brand tokens.
 *
 * Locked brand tokens (app/branding_settings.py) own:
 *   --app-control-height, container/popup colors, branding accents
 *
 * Action colors (via .button-* + action_buttons.js label rules):
 *   Search/Apply/primary → teal (.button-primary)
 *   Add/Create/+         → green (.button-add-small)
 *   Delete               → burgundy (.button-delete-small)
 *   Remove               → red (.button-danger-small)
 *   Clear/Cancel/Close   → gray (.button-neutral-action)
 *   Save                 → light blue (.button-save-small)
 *   Archive              → muted gray (.button-archive)
 *
 * Filter action order: Clear (neutral) then Apply (primary).
 * Prefer these building blocks for new work:
 *   .app-page-shell  (full-width page with standard responsive gutters)
 *   .app-field / .app-field__label / .app-field__control
 *   .app-filter-bar / .app-filter-field
 *   .app-tabs / .app-tab  (folder strip)
 *   .app-seg / .app-seg__btn  (scope/filter pills)
 *   .app-disclosure-chevron / details > summary chevron  (show/hide)
 *   .button-primary | .button-small | .button-add-small | …
 *   ks-field macros in templates/_field_macros.html
 *
 * Show/hide: docs/design-system/disclosure-chevrons.md
 * Fields: docs/design-system/field-standards.md
 */

/* Dark navigation surfaces: reusable chrome without changing form-field themes. */
.app-nav-surface--dark {
  --app-nav-bg: #0f172a;
  --app-nav-bg-end: #020617;
  --app-nav-text: #f8fafc;
  --app-nav-muted: #cbd5e1;
  --app-nav-divider: #334155;
  --app-nav-hover: #1e293b;
  --app-nav-selected: #1e3a5f;
  --app-nav-accent: #54d4ff;
  --app-nav-badge: #334155;
  --app-nav-shadow: 0 8px 24px rgb(15 23 42 / 20%);
  --app-disclosure-chevron-color: var(--app-nav-muted);
  background: linear-gradient(160deg, var(--app-nav-bg), var(--app-nav-bg-end));
  color: var(--app-nav-text);
}
.app-nav-surface--dark .app-nav-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--app-control-height);
  height: var(--app-control-height);
  padding: 0;
  border: 1px solid var(--app-nav-divider);
  border-radius: var(--app-field-radius);
  background: transparent;
  color: var(--app-nav-muted);
  cursor: pointer;
}
.app-nav-surface--dark .app-nav-icon-button:hover {
  background: var(--app-nav-hover);
  color: var(--app-nav-text);
}
.app-nav-surface--dark :is(a, button, summary):focus-visible {
  outline: 2px solid var(--app-nav-accent);
  outline-offset: 2px;
}
.app-nav-icon-button > svg { width: 18px; height: 18px; }

/* SearchField on dark nav surfaces (sidebar filters) */
.app-nav-surface--dark .ks-search-field {
  display: block;
  width: 100%;
}
.app-nav-surface--dark .ks-search-field__control {
  display: flex;
  align-items: center;
  min-width: 0;
  position: relative;
}
.app-nav-surface--dark .ks-search-field__control input {
  width: 100%;
  background: var(--app-nav-hover);
  border: 1px solid var(--app-nav-divider);
  border-radius: var(--app-field-radius);
  color: var(--app-nav-text);
  box-shadow: none;
}
.app-nav-surface--dark .ks-search-field__control input::placeholder {
  color: var(--app-nav-muted);
}
.app-nav-surface--dark .ks-search-field__icon {
  color: var(--app-nav-muted);
}
.app-nav-surface--dark .ks-search-field__control:focus-within input {
  border-color: var(--app-nav-accent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--app-nav-accent) 28%, transparent);
}

:root {
  /* Shared page frame: use the viewport consistently instead of page-specific caps */
  --app-page-gutter: clamp(16px, 3vw, 40px);

  /* Page titles (settings toolbar, section page heads) */
  --app-page-title-size: 22px;
  --app-page-title-weight: 700;
  --app-page-title-color: #101828;
  --app-page-title-line-height: 1.2;

  /* Card / panel / section container titles (slightly smaller than page titles) */
  --app-container-title-size: 17px;
  --app-container-title-weight: 700;
  --app-container-title-color: #101828;
  --app-container-title-line-height: 1.25;

  /* Closed control size (locked brand token; previously Site Design → Control Height) */
  --app-control-height: 38px;
  --app-textarea-min-height: calc(var(--app-control-height) * 2);
  /* Shared scrollable table body height (User Assignments / Job Architecture / directories) */
  --app-table-scroll-height: clamp(360px, 62vh, 620px);
  --app-control-padding-x: 12px;
  --app-control-font-size: 13px;
  --app-control-font-weight: 400;
  --app-label-font-size: 12px;
  --app-label-font-weight: 800;
  --app-label-color: #344054;
  --app-label-gap: 6px;

  /* Field surface tokens (shared by native inputs + ks-field + filters) */
  --app-field-bg: #ffffff;
  --app-field-border: #d0d5dd;
  --app-field-text: #101828;
  --app-field-placeholder: #667085;
  --app-field-focus: var(--app-action-primary, #2ec5ff);
  --app-field-focus-ring: rgba(29, 155, 240, 0.12);
  --app-field-focus-ring-width: 2px;
  --app-field-radius: var(--app-radius-control, 6px);

  /* Alias legacy ks-field tokens so macros stay on the design template */
  --ks-field-bg: var(--app-field-bg);
  --ks-field-border: var(--app-field-border);
  --ks-field-text: var(--app-field-text);
  --ks-field-placeholder: var(--app-field-placeholder);
  --ks-field-focus: var(--app-field-focus);
  --ks-field-radius: var(--app-field-radius);
  --ks-field-error: #d92d20;
  --ks-field-disabled-bg: #f2f4f7;
  --ks-field-disabled-text: #98a2b3;
  --ks-field-dropdown-bg: var(--app-field-bg);
  --ks-field-dropdown-hover: #f0f9ff;
  --ks-field-selected-bg: #e8f4ff;
  --ks-field-chip-bg: #eff6ff;
  --ks-field-chip-text: #1849a9;
  --app-dropdown-select-all-divider-width: 2px;
  --app-dropdown-select-all-divider-color: var(--app-field-border);

  /* Shared checkbox/radio: white check on green bubble (form checkboxes/radios only) */
  --app-checkbox-size: 16px;
  --app-checkbox-radius: 50%;
  --app-checkbox-bg: #ffffff;
  --app-checkbox-border: #98a2b3;
  --app-checkbox-checked-bg: #12b76a;
  --app-checkbox-checked-border: #039855;
  --app-checkbox-mark: #ffffff;
  --app-checkbox-mark-size: 12px;
  --app-checkbox-mark-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.25 8.25 6.5 11.5l6.25-7' fill='none' stroke='%23ffffff' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --app-checkbox-disabled-bg: #e4e7ec;
  --app-checkbox-disabled-border: #d0d5dd;

  /* Multi-select / filter dropdown list options: blue rounded square + white check.
     NEVER reuse the green circular form-checkbox look for dropdown lists. */
  --app-dropdown-option-checkbox-radius: 4px;
  --app-dropdown-option-checkbox-checked-bg: var(--keshero-blue, #3a7bff);
  --app-dropdown-option-checkbox-checked-border: var(--keshero-blue, #3a7bff);
}

.app-page-shell {
  box-sizing: border-box;
  margin-left: 0;
  margin-right: 0;
  max-width: none;
  padding-left: var(--app-page-gutter);
  padding-right: var(--app-page-gutter);
  width: 100%;
}

html[data-keshero-theme="dark"] {
  --app-field-bg: #111827;
  --app-field-border: #344054;
  --app-field-text: #f8fafc;
  --app-field-placeholder: #98a2b3;
  --app-field-focus: #38bdf8;
  --app-field-focus-ring: rgba(56, 189, 248, 0.18);
  --ks-field-error: #f97066;
  --ks-field-disabled-bg: #1f2937;
  --ks-field-disabled-text: #667085;
  --ks-field-dropdown-bg: #101828;
  --ks-field-dropdown-hover: #1f2937;
  --ks-field-selected-bg: #0b4a6f;
  --ks-field-chip-bg: #0b4a6f;
  --ks-field-chip-text: #e0f2fe;
  --app-checkbox-bg: #111827;
  --app-checkbox-border: #667085;
  --app-checkbox-checked-bg: #12b76a;
  --app-checkbox-checked-border: #039855;
  --app-checkbox-mark: #ffffff;
  --app-checkbox-disabled-bg: #1f2937;
  --app-checkbox-disabled-border: #344054;
}

/* ---------- Default form controls (new pages inherit automatically) ---------- */
:where(
  input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):not([type="image"]):not([type="range"]):not([type="color"]):not([type="button"]):not([type="submit"]):not([type="reset"]),
  select:not([multiple]),
  .app-field__control,
  .ks-field__control,
  .ks-search-field__control input
) {
  background: var(--app-field-bg);
  border: 1px solid var(--app-field-border);
  border-radius: var(--app-field-radius);
  box-sizing: border-box;
  color: var(--app-field-text);
  font-family: inherit;
  font-size: var(--app-control-font-size);
  font-weight: var(--app-control-font-weight);
  line-height: 1.2;
  min-height: var(--app-control-height);
  padding: 0 var(--app-control-padding-x);
}

:where(textarea, .app-field__textarea) {
  background: var(--app-field-bg);
  border: 1px solid var(--app-field-border);
  border-radius: var(--app-field-radius);
  box-sizing: border-box;
  color: var(--app-field-text);
  font-family: inherit;
  font-size: var(--app-control-font-size);
  font-weight: 400;
  line-height: 1.4;
  min-height: var(--app-textarea-min-height);
  padding: 10px var(--app-control-padding-x);
  resize: vertical;
}

:where(
  input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):not([type="image"]):not([type="range"]):not([type="color"]):focus,
  select:not([multiple]):focus,
  textarea:focus,
  .app-field__control:focus,
  .app-field__textarea:focus,
  .ks-field__control:focus
) {
  border-color: var(--app-field-focus);
  box-shadow: 0 0 0 var(--app-field-focus-ring-width, 2px) var(--app-field-focus-ring, rgba(29, 155, 240, 0.12));
  outline: none;
}

/* Shared percentage input: value and unit live inside one field boundary. */
.app-percent-input {
  align-items: center;
  background: var(--app-field-bg);
  border: 1px solid var(--app-field-border);
  border-radius: var(--app-field-radius);
  box-sizing: border-box;
  color: var(--app-field-text);
  display: inline-flex;
  min-height: var(--app-control-height);
  overflow: hidden;
  width: 100%;
}

.app-percent-input:focus-within {
  border-color: var(--app-field-focus);
  box-shadow: 0 0 0 var(--app-field-focus-ring-width, 2px) var(--app-field-focus-ring, rgba(29, 155, 240, 0.12));
}

.app-percent-input > :where(input:not([type="checkbox"]):not([type="radio"])) {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  flex: 1 1 auto;
  min-width: 0;
  outline: none;
  width: 100%;
}

.app-percent-input > :where(input:not([type="checkbox"]):not([type="radio"])):focus {
  border: 0 !important;
  box-shadow: none !important;
  outline: none;
}

.app-percent-input__suffix {
  align-items: center;
  align-self: stretch;
  background: color-mix(in srgb, var(--app-field-bg) 82%, var(--app-field-border));
  border-left: 1px solid var(--app-field-border);
  color: var(--app-field-text);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: var(--app-control-font-size);
  font-weight: 700;
  justify-content: center;
  min-width: 30px;
  padding: 0 8px;
}

.app-percent-input:has(> input:disabled) {
  background: var(--ks-field-disabled-bg);
  color: var(--ks-field-disabled-text);
}

.app-percent-input:has(> input:disabled) .app-percent-input__suffix {
  color: var(--ks-field-disabled-text);
}

/* Shared checkbox/radio: white checkmark on green circular bubble.
   Opt out with [data-app-checkbox="native"] / [data-app-radio="native"]
   or a page-local custom control. */
:where(input[type="checkbox"]:not([data-app-checkbox="native"])),
:where(input[type="radio"]:not([data-app-radio="native"])) {
  -webkit-appearance: none;
  appearance: none;
  accent-color: var(--app-checkbox-checked-bg);
  background-color: var(--app-checkbox-bg);
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid var(--app-checkbox-border);
  border-radius: var(--app-checkbox-radius);
  box-sizing: border-box;
  color: var(--app-checkbox-mark);
  cursor: pointer;
  display: inline-grid;
  flex: 0 0 auto;
  height: var(--app-checkbox-size);
  margin: 0;
  max-height: none;
  min-height: 0;
  place-content: center;
  width: var(--app-checkbox-size);
}

:where(input[type="checkbox"]:not([data-app-checkbox="native"]):checked),
:where(input[type="radio"]:not([data-app-radio="native"]):checked) {
  background-color: var(--app-checkbox-checked-bg);
  background-image: var(--app-checkbox-mark-image);
  background-size: var(--app-checkbox-mark-size) var(--app-checkbox-mark-size);
  border-color: var(--app-checkbox-checked-border);
}

:where(input[type="checkbox"]:not([data-app-checkbox="native"])[data-indeterminate="true"]),
:where(input[type="checkbox"]:not([data-app-checkbox="native"]):indeterminate),
:where(input[type="checkbox"]:not([data-app-checkbox="native"]):checked[data-indeterminate="true"]),
:where(input[type="checkbox"]:not([data-app-checkbox="native"]):checked:indeterminate) {
  background-color: var(--app-checkbox-checked-bg);
  background-image: linear-gradient(var(--app-checkbox-mark), var(--app-checkbox-mark));
  background-position: center;
  background-repeat: no-repeat;
  background-size: 8px 2px;
  border-color: var(--app-checkbox-checked-border);
}

:where(input[type="checkbox"]:not([data-app-checkbox="native"]):disabled),
:where(input[type="checkbox"]:not([data-app-checkbox="native"])[aria-disabled="true"]),
:where(input[type="radio"]:not([data-app-radio="native"]):disabled),
:where(input[type="radio"]:not([data-app-radio="native"])[aria-disabled="true"]) {
  background: var(--app-checkbox-disabled-bg);
  border-color: var(--app-checkbox-disabled-border);
  cursor: not-allowed;
  opacity: 1;
}

:where(input[type="checkbox"]:not([data-app-checkbox="native"]):disabled:checked::after),
:where(input[type="checkbox"]:not([data-app-checkbox="native"])[aria-disabled="true"]:checked::after) {
  border-color: #f8fafc;
  opacity: 0.9;
}

:where(input[type="checkbox"]:not([data-app-checkbox="native"]):focus-visible),
:where(input[type="radio"]:not([data-app-radio="native"]):focus-visible) {
  box-shadow: 0 0 0 3px var(--app-focus-ring, rgba(46, 197, 255, 0.32));
  outline: none;
}

/* Dropdown / filter option selection indicators (ks-dropdown / MultiSelectDropdown /
   mountFilterMultiselect, legacy filter-list adapters, and Role Matcher match options).
   LOCKED: blue rounded square + white check. Do NOT switch these to the green
   circular --app-checkbox-* form-checkbox style. Form checkboxes stay green above. */
.ks-dropdown__option input[type="checkbox"]:not([data-app-checkbox="native"]),
.grid-filter-check-label input[type="checkbox"]:not([data-app-checkbox="native"]),
.spotlight-tag-picker__option input[type="checkbox"]:not([data-app-checkbox="native"]),
.home-pm-rollup-multiselect__option input[type="checkbox"]:not([data-app-checkbox="native"]),
.pm-manage-filter-option input[type="checkbox"]:not([data-app-checkbox="native"]),
.keshboard-drawer__multiselect-list input[type="checkbox"]:not([data-app-checkbox="native"]),
.keshboard-drawer__filter-option input[type="checkbox"]:not([data-app-checkbox="native"]),
.team-skill-search__check input[type="checkbox"]:not([data-app-checkbox="native"]) {
  --app-checkbox-radius: var(--app-dropdown-option-checkbox-radius);
  --app-checkbox-checked-bg: var(--app-dropdown-option-checkbox-checked-bg);
  --app-checkbox-checked-border: var(--app-dropdown-option-checkbox-checked-border);
  accent-color: var(--app-dropdown-option-checkbox-checked-bg);
  border-radius: var(--app-dropdown-option-checkbox-radius);
}

/* Enforce the dropdown indicator independently of page-local form checkbox art.
   Match menu/option nodes so floating menus retain the same appearance. */
:is(
  .ks-dropdown__option,
  [data-ks-dropdown-menu],
  .grid-filter-check-label,
  .spotlight-tag-picker__option,
  .home-pm-rollup-multiselect__option,
  .home-sv-filter-options,
  .pm-manage-filter-option,
  .pm-assignee-multiselect__list,
  .keshboard-drawer__multiselect-list,
  .keshboard-drawer__filter-option,
  .population-filter-checklist,
  .user-access-pop-multiselect__option,
  .team-skill-search__check,
  [role="listbox"][aria-multiselectable="true"]
) input[type="checkbox"]:not([data-app-checkbox="native"]) {
  -webkit-appearance: none !important;
  appearance: none !important;
  border: 1px solid var(--app-checkbox-border) !important;
  border-radius: var(--app-dropdown-option-checkbox-radius) !important;
  background: var(--app-checkbox-bg) center / 11px 11px no-repeat !important;
  box-sizing: border-box !important;
  flex: 0 0 auto !important;
  height: var(--app-checkbox-size, 16px) !important;
  width: var(--app-checkbox-size, 16px) !important;
  min-height: 0 !important;
  min-width: 0 !important;
  padding: 0 !important;
}

:is(
  .ks-dropdown__option,
  [data-ks-dropdown-menu],
  .grid-filter-check-label,
  .spotlight-tag-picker__option,
  .home-pm-rollup-multiselect__option,
  .home-sv-filter-options,
  .pm-manage-filter-option,
  .pm-assignee-multiselect__list,
  .keshboard-drawer__multiselect-list,
  .keshboard-drawer__filter-option,
  .population-filter-checklist,
  .user-access-pop-multiselect__option,
  .team-skill-search__check,
  [role="listbox"][aria-multiselectable="true"]
) input[type="checkbox"]:not([data-app-checkbox="native"]):checked {
  background-color: var(--app-dropdown-option-checkbox-checked-bg) !important;
  background-image: var(--app-checkbox-mark-image) !important;
  border-color: var(--app-dropdown-option-checkbox-checked-border) !important;
}

:is(
  .ks-dropdown__option,
  [data-ks-dropdown-menu],
  .grid-filter-check-label,
  .spotlight-tag-picker__option,
  .home-pm-rollup-multiselect__option,
  .home-sv-filter-options,
  .pm-manage-filter-option,
  .pm-assignee-multiselect__list,
  .keshboard-drawer__multiselect-list,
  .keshboard-drawer__filter-option,
  .population-filter-checklist,
  .user-access-pop-multiselect__option,
  .team-skill-search__check,
  [role="listbox"][aria-multiselectable="true"]
) input[type="checkbox"]:not([data-app-checkbox="native"]):is(:indeterminate, [data-indeterminate="true"]),
:is(
  .ks-dropdown__option,
  [data-ks-dropdown-menu],
  .grid-filter-check-label,
  .spotlight-tag-picker__option,
  .home-pm-rollup-multiselect__option,
  .home-sv-filter-options,
  .pm-manage-filter-option,
  .pm-assignee-multiselect__list,
  .keshboard-drawer__multiselect-list,
  .keshboard-drawer__filter-option,
  .population-filter-checklist,
  .user-access-pop-multiselect__option,
  .team-skill-search__check,
  [role="listbox"][aria-multiselectable="true"]
) input[type="checkbox"]:not([data-app-checkbox="native"]):checked:is(:indeterminate, [data-indeterminate="true"]) {
  background-color: var(--app-dropdown-option-checkbox-checked-bg) !important;
  background-image: linear-gradient(#fff, #fff) !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: 8px 2px !important;
  border-color: var(--app-dropdown-option-checkbox-checked-border) !important;
}

:is(
  .ks-dropdown__option,
  [data-ks-dropdown-menu],
  .grid-filter-check-label,
  .spotlight-tag-picker__option,
  .home-pm-rollup-multiselect__option,
  .home-sv-filter-options,
  .pm-manage-filter-option,
  .pm-assignee-multiselect__list,
  .keshboard-drawer__multiselect-list,
  .keshboard-drawer__filter-option,
  .population-filter-checklist,
  .user-access-pop-multiselect__option,
  .team-skill-search__check,
  [role="listbox"][aria-multiselectable="true"]
) input[type="checkbox"]:not([data-app-checkbox="native"])::before,
:is(
  .ks-dropdown__option,
  [data-ks-dropdown-menu],
  .grid-filter-check-label,
  .spotlight-tag-picker__option,
  .home-pm-rollup-multiselect__option,
  .home-sv-filter-options,
  .pm-manage-filter-option,
  .pm-assignee-multiselect__list,
  .keshboard-drawer__multiselect-list,
  .keshboard-drawer__filter-option,
  .population-filter-checklist,
  .user-access-pop-multiselect__option,
  .team-skill-search__check,
  [role="listbox"][aria-multiselectable="true"]
) input[type="checkbox"]:not([data-app-checkbox="native"])::after {
  content: none !important;
  display: none !important;
}

:is(
  .ks-dropdown__option,
  [data-ks-dropdown-menu],
  .grid-filter-check-label,
  .spotlight-tag-picker__option,
  .home-pm-rollup-multiselect__option,
  .home-sv-filter-options,
  .pm-manage-filter-option,
  .pm-assignee-multiselect__list,
  .keshboard-drawer__multiselect-list,
  .keshboard-drawer__filter-option,
  .population-filter-checklist,
  .user-access-pop-multiselect__option,
  .team-skill-search__check,
  [role="listbox"][aria-multiselectable="true"]
) input[type="checkbox"]:not([data-app-checkbox="native"]):is(:disabled, [aria-disabled="true"]) {
  opacity: 0.5;
}

/* Keep decorative / alternate checkbox UIs from inheriting the shared mark. */
.pm-readiness-action-drawer__step input[type="checkbox"],
.pm-readiness-action-drawer__step input[type="checkbox"]:checked,
.checkin-session-action input[type="checkbox"],
.checkin-session-action input[type="checkbox"]:checked {
  --app-checkbox-size: 16px;
}

.pm-readiness-action-drawer__step input[type="checkbox"]:checked::after {
  background: transparent;
  border: 0;
  height: auto;
  margin-top: 0;
  width: auto;
}

.checkin-session-action input[type="checkbox"]:checked::after,
.checkin-session-action input[type="checkbox"]::after {
  content: none !important;
  display: none !important;
}

.development-plan-step-complete input[type="checkbox"],
.pm-development-plan-step-complete input[type="checkbox"] {
  --app-checkbox-checked-bg: #12b76a;
  --app-checkbox-checked-border: #039855;
}

/* Compact icon buttons for inline row actions (reorder companions, chip/step removes). */
.app-icon-btn,
.todo-subitem-row__icon-btn {
  align-items: center;
  appearance: none;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  box-sizing: border-box;
  color: #667085;
  cursor: pointer;
  display: inline-flex;
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 800;
  height: 28px;
  justify-content: center;
  line-height: 1;
  min-height: 28px;
  min-width: 28px;
  padding: 0;
  -webkit-appearance: none;
}

.app-icon-btn:hover,
.todo-subitem-row__icon-btn:hover {
  background: #f8fafc;
  border-color: #d0d5dd;
  color: #344054;
}

.app-icon-btn:focus-visible,
.todo-subitem-row__icon-btn:focus-visible {
  box-shadow: 0 0 0 3px var(--app-focus-ring, rgba(46, 197, 255, 0.22));
  outline: none;
}

/* Opens elsewhere / new tab — box with arrow out. Prefer {{ external_link_icon() }} from _app_icon_macros.html. */
.app-external-link-icon {
  fill: none;
  flex: 0 0 auto;
  height: 0.95em;
  min-height: 14px;
  min-width: 14px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  width: 0.95em;
}

.app-icon-btn:disabled,
.todo-subitem-row__icon-btn:disabled {
  cursor: default;
  opacity: 0.28;
}

.app-icon-btn:disabled:hover,
.todo-subitem-row__icon-btn:disabled:hover {
  background: transparent;
  border-color: transparent;
  color: #667085;
}

.app-icon-btn--danger,
.todo-subitem-row__icon-btn--danger,
.pm-development-plan-step-remove,
.development-plan-step-remove,
.pm-readiness-action-step-remove,
button[data-development-plan-step-remove],
button[data-readiness-action-step-remove],
button[data-remove-goal-milestone],
button[data-remove-task-subtask],
button[data-edu-req-remove],
button[data-req-remove],
button[data-team-req-remove],
button[data-role-request-skill-remove],
button[data-delete-cand],
.skills-qualifications__item-remove.app-icon-btn,
.skills-proficiency-card__remove.app-icon-btn,
.pm-calendar-note-card__delete.app-icon-btn {
  color: #b42318;
  font-size: var(--app-remove-icon-font-size, 20px);
  font-weight: 700;
}

.app-icon-btn--danger:hover,
.todo-subitem-row__icon-btn--danger:hover,
.pm-development-plan-step-remove:hover,
.development-plan-step-remove:hover,
.pm-readiness-action-step-remove:hover,
.pm-development-plan-step-remove:focus-visible,
.development-plan-step-remove:focus-visible,
.pm-readiness-action-step-remove:focus-visible,
button[data-remove-goal-milestone]:hover,
button[data-remove-task-subtask]:hover,
button[data-edu-req-remove]:hover,
button[data-req-remove]:hover,
button[data-team-req-remove]:hover,
button[data-role-request-skill-remove]:hover,
button[data-delete-cand]:hover,
.skills-qualifications__item-remove.app-icon-btn:hover,
.skills-proficiency-card__remove.app-icon-btn:hover,
.pm-calendar-note-card__delete.app-icon-btn:hover {
  background: #fef3f2;
  border-color: #fecdca;
  color: #912018;
}

/* Circular complete toggles: solid green bubble + white check (To Do, milestones, subtasks). */
:root {
  --app-complete-circle-bg: var(--app-checkbox-checked-bg, #12b76a);
  --app-complete-circle-border: var(--app-checkbox-checked-border, #039855);
  --app-complete-circle-mark: var(--app-checkbox-mark, #ffffff);
  --app-complete-circle-mark-size: var(--app-checkbox-mark-size, 11px);
  --app-complete-circle-mark-image: var(--app-checkbox-mark-image);
}

:where(
  .todo-list-card__check.is-complete,
  .todo-list-card__subitem-bullet.is-complete,
  .todo-subitem-row__bullet.is-complete,
  .pm-task-drawer__subtask.is-complete .pm-task-drawer__subtask-bullet,
  .pm-milestone-item.is-complete .pm-milestone-toggle,
  .pm-subtask-item.is-complete .pm-subtask-toggle,
  .pm-subtask-state--complete,
  .keshboard-drawer__subtask-state--complete,
  .pm-readiness-development-action-marker--complete,
  .pm-readiness-archive-development-item__step.is-complete
    .pm-readiness-archive-development-item__step-state,
  .pm-readiness-action-drawer__step input[type="checkbox"]:checked
) {
  background-color: var(--app-complete-circle-bg) !important;
  background-image: var(--app-complete-circle-mark-image) !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: var(--app-complete-circle-mark-size) var(--app-complete-circle-mark-size) !important;
  border-color: var(--app-complete-circle-border) !important;
  box-shadow: none !important;
  color: transparent !important;
}

:where(
  .todo-list-card__check.is-complete::after,
  .todo-list-card__subitem-bullet.is-complete::after,
  .todo-subitem-row__bullet.is-complete::after,
  .pm-readiness-development-action-marker--complete::before,
  .pm-readiness-action-drawer__step input[type="checkbox"]:checked::after
) {
  content: none !important;
  display: none !important;
}

/* ---------- Field / filter building blocks ---------- */
.app-field,
.app-filter-field {
  display: grid;
  gap: var(--app-label-gap);
  min-width: 0;
}

.app-field__label,
.app-filter-field > label,
.app-filter-field > .app-field__label {
  color: var(--app-label-color);
  display: block;
  font-size: var(--app-label-font-size);
  font-weight: var(--app-label-font-weight);
  height: 18px;
  line-height: 18px;
}

.app-filter-bar {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
}

.app-filter-bar .app-filter-field {
  flex: 1 1 150px;
  max-width: 240px;
}

.app-filter-bar .app-filter-field--grow {
  flex: 1 1 220px;
  max-width: none;
}

.app-filter-bar .app-filter-actions {
  align-items: end;
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
  min-height: var(--app-control-height);
}

/* ---------- Tab building blocks ---------- */
.app-tabs {
  align-items: flex-end;
  border-bottom: 3px solid var(--app-tab-divider, #b8c4d4);
  display: flex;
  flex-wrap: wrap;
  gap: var(--app-tab-gap, 4px);
  padding-bottom: 0;
}

.app-tab {
  align-items: center;
  background: var(--app-tab-idle-bg, transparent);
  border: 1px solid var(--app-tab-idle-border, #cbd5e1);
  border-bottom: 0;
  border-radius: var(--app-tab-radius, 8px 8px 0 0);
  box-sizing: border-box;
  color: var(--app-tab-idle-text, #344054);
  cursor: pointer;
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  justify-content: center;
  line-height: 1.15;
  min-height: var(--app-control-height);
  padding: 0 14px;
  text-decoration: none;
  white-space: nowrap;
}

.app-tab:hover,
.app-tab:focus-visible {
  background: var(--app-tab-hover-bg, #f8fafc);
  color: var(--app-tab-hover-text, var(--app-action-primary-hover, #20b5e8));
  outline: none;
}

.app-tab.is-active,
.app-tab[aria-selected="true"] {
  background: var(--app-tab-active-bg, var(--app-action-primary, #2ec5ff));
  border-color: var(--app-tab-active-border, var(--app-action-primary-border, #14a8d4));
  color: var(--app-tab-active-text, #fff);
}

.app-seg {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.app-seg__btn {
  align-items: center;
  background: var(--app-pill-bg, #fff);
  border: 1px solid var(--app-pill-border, #dbe5ef);
  border-radius: var(--app-pill-radius, 999px);
  box-sizing: border-box;
  color: var(--app-pill-text, #344054);
  cursor: pointer;
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  justify-content: center;
  min-height: var(--app-control-height);
  padding: 0 14px;
  text-decoration: none;
  white-space: nowrap;
}

.app-seg__btn:hover,
.app-seg__btn:focus-visible {
  background: var(--app-pill-hover-bg, #f0fcff);
  border-color: var(--app-pill-hover-border, #6fe3ff);
  color: var(--app-action-primary-hover, #20b5e8);
  outline: none;
}

.app-seg__btn.is-active,
.app-seg__btn[aria-pressed="true"] {
  background: var(--app-pill-active-bg, var(--app-action-primary, #2ec5ff));
  border-color: var(--app-pill-active-border, var(--app-action-primary-border, #14a8d4));
  color: var(--app-pill-active-text, #fff);
}

/* Modal dismiss — labeled Close, top-right */
.app-modal-close,
.keshero-modal-close {
  align-items: center;
  background: #fff;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  box-sizing: border-box;
  color: #344054;
  cursor: pointer;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  justify-content: center;
  min-height: var(--app-control-height);
  min-width: 64px;
  padding: 0 12px;
}

/*
 * Show/hide disclosure chevrons (sections, rollups, expandable rows).
 * Closed = point right; open = point down. Do not use ▼/▶ glyphs for this.
 * Native <details>/<summary> markers are replaced app-wide; menus/filters that
 * supply their own chrome opt out below. Select/dropdown arrows stay separate.
 * See docs/design-system/disclosure-chevrons.md
 */
:root {
  --app-disclosure-chevron-size: 8px;
  --app-disclosure-chevron-thickness: 2px;
  --app-disclosure-chevron-color: #475467;
}

.app-disclosure-chevron {
  align-items: center;
  color: var(--app-disclosure-chevron-color);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0;
  justify-content: center;
  line-height: 0;
  position: relative;
}

.app-disclosure-chevron::before,
.app-disclosure-chevron__icon::before,
details > summary::before {
  border-bottom: var(--app-disclosure-chevron-thickness) solid currentColor;
  border-right: var(--app-disclosure-chevron-thickness) solid currentColor;
  box-sizing: border-box;
  color: var(--app-disclosure-chevron-color);
  content: "";
  display: block;
  flex: 0 0 auto;
  height: var(--app-disclosure-chevron-size);
  transform: rotate(-45deg);
  transform-origin: 50% 50%;
  transition: transform 0.14s ease;
  width: var(--app-disclosure-chevron-size);
}

.app-disclosure-chevron[aria-expanded="true"]::before,
.app-disclosure-chevron.is-open::before,
.app-disclosure-chevron[aria-expanded="true"] .app-disclosure-chevron__icon::before,
.app-disclosure-chevron.is-open .app-disclosure-chevron__icon::before,
button[aria-expanded="true"] > .app-disclosure-chevron::before,
[aria-expanded="true"] > .app-disclosure-chevron::before,
.is-expanded > .app-disclosure-chevron::before,
.is-expanded .app-disclosure-chevron::before,
details[open] > summary::before {
  transform: rotate(45deg);
}

/* Default disclosure layout for bare <details>/<summary>; local rules may override. */
details > summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 8px;
  list-style: none;
}

details > summary::-webkit-details-marker {
  display: none;
}

details > summary::marker {
  content: "";
}

details.app-disclosure > summary {
  gap: 10px;
}

/*
 * Opt out: menus, filter dropdowns, create triggers, and summaries that already
 * draw a chevron/arrow via a child (or suppress chrome entirely).
 */
:is(
  details.app-topnav-favorites-menu,
  details.app-topnav-apps-menu,
  details.topbar-profile-menu,
  details.app-topnav__popover-group,
  details.todo-list-card__menu,
  details.job-arch-action-menu,
  details.admin-cycle-type-menu,
  details.admin-cycle-action-menu,
  details.dl-row-actions-menu,
  details.pm-manage-filter-multiselect,
  details.pm-assignee-multiselect,
  details.keshboard-drawer__multiselect,
  details.home-pm-rollup-multiselect,
  details.user-access-pop-multiselect,
  details.population-filter-multiselect,
  details.development-plan-scope-person-menu,
  details.development-plan-context-editor,
  details.keshboard-drawer__board-picker,
  details.pr-preview-rich-color-picker,
  details.pm-course-type-dropdown,
  details.succession-workspace-filter,
  details.pm-keshboard-page-create,
  details.development-plan-create-panel,
  details.pm-development-plan-create-panel,
  details.pm-development-plan-link-panel,
  details.checkin-session-add-action,
  details.checkin-hub-add-followup,
  details.checkin-hub-suggest
) > summary::before,
details:has(> summary .app-disclosure-chevron) > summary::before,
details:has(> summary [class*="__chev"]) > summary::before,
details:has(> summary [class*="chevron"]) > summary::before,
details > summary.button-add-small::before,
details > summary.jd-detail-inline-add__trigger::before,
details > summary.keshboard-drawer__create-summary::before,
details > summary.app-help-trigger::before,
details.jd-detail-inline-add > summary::before,
details.development-plan-origin-help > summary::before {
  border: 0;
  content: none;
  display: none;
  height: 0;
  margin: 0;
  width: 0;
}

/* ---------- Page titles (settings toolbar / section heads) ---------- */
.app-page-title,
.settings-group-title {
  color: var(--app-page-title-color);
  font-size: var(--app-page-title-size) !important;
  font-weight: var(--app-page-title-weight);
  letter-spacing: -0.02em;
  line-height: var(--app-page-title-line-height);
  margin: 0;
}

/* ---------- Container titles (cards / panels / sections) ---------- */
.app-container-title {
  color: var(--app-container-title-color);
  font-size: var(--app-container-title-size) !important;
  font-weight: var(--app-container-title-weight);
  letter-spacing: 0;
  line-height: var(--app-container-title-line-height);
  margin: 0;
}
.development-item-creation-help {
  margin: 0;
  position: relative;
  z-index: 12;
}

.development-item-creation-help > summary::-webkit-details-marker {
  display: none;
}

.development-item-creation-help > summary::marker {
  content: "";
}

.development-item-creation-help__trigger {
  align-items: center;
  background: linear-gradient(135deg, #f0f9ff 0%, #f5f3ff 100%);
  border: 1px solid #7dd3fc;
  border-radius: 999px;
  box-shadow: 0 2px 7px rgba(14, 116, 144, 0.1);
  box-sizing: border-box;
  color: #164e63;
  cursor: pointer;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  gap: 8px;
  height: 34px;
  line-height: 1;
  padding: 4px 10px 4px 5px;
  white-space: nowrap;
}

.development-item-creation-help__trigger:hover,
.development-item-creation-help__trigger:focus-visible,
.development-item-creation-help[open] .development-item-creation-help__trigger {
  background: linear-gradient(135deg, #e0f2fe 0%, #ede9fe 100%);
  border-color: #38bdf8;
  box-shadow: 0 5px 14px rgba(14, 116, 144, 0.16);
  color: #0c4a6e;
  outline: none;
}

.development-item-creation-help__icon {
  align-items: center;
  background: linear-gradient(135deg, #2ec5ff, #7c3aed);
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(76, 81, 191, 0.22);
  color: #ffffff;
  display: inline-flex;
  flex: 0 0 21px;
  font-size: 12px;
  height: 21px;
  justify-content: center;
  width: 21px;
}

.development-item-creation-help__chevron {
  border-bottom: 2px solid currentColor;
  border-right: 2px solid currentColor;
  height: 6px;
  margin: -3px 2px 0 1px;
  transform: rotate(45deg);
  transition: transform 0.15s ease, margin 0.15s ease;
  width: 6px;
}

.development-item-creation-help[open] .development-item-creation-help__chevron {
  margin-bottom: -3px;
  margin-top: 1px;
  transform: rotate(225deg);
}

.development-item-creation-help__popover {
  background: #ffffff;
  border: 1px solid #bae6fd;
  border-radius: 16px;
  box-shadow: 0 22px 52px rgba(15, 23, 42, 0.2), 0 4px 12px rgba(14, 116, 144, 0.08);
  display: grid;
  gap: 10px;
  left: 0;
  overflow: hidden;
  padding: 0 0 14px;
  position: absolute;
  right: auto;
  top: calc(100% + 8px);
  width: min(500px, calc(100vw - 48px));
}

.development-item-creation-help__popover::before {
  background: linear-gradient(135deg, #38bdf8, #7c3aed);
  content: "";
  height: 3px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.development-item-creation-help__popover > header {
  background: linear-gradient(135deg, #f0f9ff 0%, #f5f3ff 100%);
  border-bottom: 1px solid #dbeafe;
  display: grid;
  gap: 4px;
  padding: 17px 18px 14px;
}

.development-item-creation-help__popover > header strong {
  color: #0f172a;
  font-size: 15px;
}

.development-item-creation-help__popover > header span,
.development-item-creation-help__option div > span {
  color: #667085;
  font-size: 12px;
  line-height: 1.4;
}

.development-item-creation-help__option {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 11px;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin: 0 14px;
  padding: 10px 11px;
}

.development-item-creation-help__option > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.development-item-creation-help__option > div > strong {
  color: #1e293b;
  font-size: 12.5px;
}

.development-item-creation-help__option > .button-small {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #075985;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .development-item-creation-help__option {
    align-items: stretch;
    grid-template-columns: minmax(0, 1fr);
  }

  .development-item-creation-help__option > .button-small {
    justify-content: center;
    width: 100%;
  }
}
