#wf-admin.wf-console {
  padding: clamp(18px, 2.5vw, 28px);
  scroll-margin-top: 20px;
  min-width: 0;
}

.wf-console :is(h3, h4, p) { margin: 0; }
.wf-console [hidden] { display: none !important; }
.wf-console :is(button, input, select, summary):focus-visible {
  outline: 3px solid #087f8c;
  outline-offset: 3px;
}

.wf-console-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}
.wf-console-heading h3 { font-size: 22px; }
.wf-console-heading p,
.wf-console-section-head p,
.wf-console-help {
  color: #526579;
  font-size: 14px;
  line-height: 1.6;
}
.wf-console-heading p { margin-top: 7px; max-width: 62ch; }
.wf-console .btn { min-height: 44px; }
.wf-console-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid #dce5ec;
  margin-top: 22px;
}
.wf-console-tabs button {
  position: relative;
  min-height: 48px;
  padding: 12px 18px;
  color: #526579;
  border: 0;
  background: transparent;
  font-weight: 750;
}
.wf-console-tabs button[aria-selected="true"] { color: #086e79; }
.wf-console-tabs button[aria-selected="true"]::after {
  content: '';
  position: absolute;
  bottom: -1px;
  inset-inline: 12px;
  height: 3px;
  background: #087f8c;
  border-radius: 3px 3px 0 0;
}
.wf-console-panel { padding-top: 22px; }
.wf-console-form { display: grid; gap: 20px; }
.wf-console-block { display: grid; gap: 20px; }
.wf-console-block + .wf-console-block {
  border-top: 1px solid #e5ebf0;
  padding-top: 22px;
}
.wf-console-toggle {
  display: flex;
  gap: 12px;
  align-items: center;
  background: #f0f8f8;
  border: 1px solid #d7ebeb;
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
}
.wf-console input[type="checkbox"] { width: 18px; height: 18px; flex-shrink: 0; accent-color: #087f8c; }
.wf-console-toggle span { display: grid; gap: 5px; }
.wf-console-toggle small { color: #526579; font-size: 13px; line-height: 1.5; font-weight: 400; }
.wf-console-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
.wf-console-field { display: grid; gap: 8px; min-width: 0; font-size: 14px; font-weight: 650; }
.wf-console-field small { color: #526579; font-weight: 400; font-size: 12px; line-height: 1.6; }
.wf-console-field :is(input, select) {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  border: 1px solid #cad8e2;
  border-radius: 10px;
  background: white;
  color: #102b46;
  padding: 10px 12px;
}
.wf-console-field input::placeholder { color: #677b8c; }
.wf-console-section-head { display: grid; gap: 7px; }
.wf-console-section-head h4 { font-size: 16px; }
.wf-console-checks { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 9px; min-width: 0; }
.wf-console-check { display: flex; align-items: center; gap: 9px; min-height: 44px; border: 1px solid #dce5ec; border-radius: 10px; padding: 10px 13px; font-size: 13px; cursor: pointer; }
.wf-console-check:has(input:checked) { background: #f0f8f8; border-color: #99cacc; }
.wf-console-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; background: #f6f8fa; border: 1px solid #e5ebf0; border-radius: 12px; padding: 15px; font-size: 13px; line-height: 1.6; }
.wf-console-note p { flex: 1 1 220px; color: #526579; }
.wf-console #wf-ai-settings > .wf-console-block:first-child .wf-console-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.wf-console-tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wf-console-details { margin: 0; border: 1px solid #dce5ec; border-radius: 12px; padding: 16px; min-width: 0; }
.wf-console-details > summary { min-height: 44px; cursor: pointer; color: #102b46; font-weight: 750; line-height: 1.5; }
.wf-console-details > summary small { display: block; font-size: 12px; color: #526579; font-weight: 400; margin: 3px 0 0 18px; }
.wf-console-details[open] > summary { margin-bottom: 20px; }
.wf-console-plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.wf-console-plan { padding: 18px; border-radius: 10px; border: 1px solid #dce5ec; background: #fafcfd; display: grid; align-content: start; gap: 15px; min-width: 0; }
.wf-console-plan h4 { font-size: 16px; }
.wf-console-plan .wf-console-checks { display: grid; gap: 6px; }
.wf-console-plan .wf-console-check { background: #fff; border-color: transparent; padding: 6px 8px; }
.wf-console-search { margin-top: 16px; max-width: 440px; }
.wf-console-allowance-list { max-height: 390px; overflow: auto; padding-right: 4px; margin-top: 14px; }
.wf-console-allowance { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid #e5ebf0; }
.wf-console-allowance .wf-console-field { flex: 1; grid-template-columns: minmax(120px, 1fr) minmax(100px, 170px); align-items: center; }
.wf-console-allowance .wf-console-check { border-color: transparent; }
.wf-console-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 16px 0 2px; border-top: 1px solid #dce5ec; background: #fff; }
.wf-console-actions > div { display: flex; flex-wrap: wrap; gap: 8px; }
.wf-console-status { font-size: 13px; color: #526579; min-height: 20px; }
.wf-console-status[data-state="saved"] { color: #116d4d; }
.wf-console-status[data-state="dirty"] { color: #81510a; }
.wf-console-status[data-state="error"] { color: #b42318; }
.wf-console button:disabled { cursor: default; opacity: .55; transform: none; }
.wf-sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 850px) {
  .wf-console-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wf-console-allowance { align-items: stretch; flex-direction: column; gap: 5px; }
}
@media (max-width: 540px) {
  .wf-console-grid,
  .wf-console-tool-grid,
  .wf-console-plan-grid,
  .wf-console #wf-ai-settings > .wf-console-block:first-child .wf-console-grid { grid-template-columns: minmax(0, 1fr); }
  .wf-console-heading .btn { width: 100%; }
  .wf-console-tabs button { flex: 1; padding-inline: 10px; }
  .wf-console-plan { padding: 12px; }
  .wf-console-details { padding: 12px; }
  .wf-console-allowance .wf-console-field { grid-template-columns: minmax(0, 1fr); }
  .wf-console-actions > div { display: grid; width: 100%; grid-template-columns: 1fr 1fr; }
  .wf-console-actions .btn { padding: 10px 9px; font-size: 12px; }
  .wf-console-note .btn { width: 100%; }
}
