.wbe-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.wbe-button {
  min-height: 38px;
  padding: 5px 9px;
  border: 1px solid #d6e1eb;
  border-radius: 7px;
  background: white;
  color: var(--navy, #0b1c31);
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  white-space: nowrap;
  cursor: pointer;
}

.wbe-button:hover:not(:disabled) { background: #edf4fa; }
.wbe-button:disabled { opacity: .48; cursor: default; }
.wbe-button[aria-expanded="true"], .wbe-button[aria-pressed="true"] {
  border-color: #9dbad5;
  background: #e8f1fa;
  color: #193e63;
}
.wbe-primary { border-color: var(--steel, #355d83); background: var(--steel, #355d83); color: white; }
.wbe-primary:hover:not(:disabled) { background: var(--steel-hover, #294d70); }

.wbe-section {
  min-width: 0;
  margin-top: 10px;
  border: 1px solid #d7e2ed;
  border-radius: 10px;
  background: #fbfdff;
}
.wbe-section[hidden], .wbe-form[hidden], .wbe-hint[hidden], .wbe-list:empty, .wbe-feedback:empty { display: none; }
.wbe-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 13px;
  border-bottom: 1px solid #e2e9f1;
}
.wbe-title { margin: 0; color: var(--navy, #0b1c31); font-size: 15px; font-weight: 800; }
.wbe-close { min-height: 34px; }
.wbe-body { padding: 12px 13px; }
.wbe-content { display: grid; gap: 10px; min-width: 0; }
.wbe-hint, .wbe-meta, .wbe-feedback { margin: 0; color: #52677e; font-size: 13px; overflow-wrap: anywhere; }
.wbe-feedback { margin-top: 7px; color: #9a2424; }
.wbe-form { display: flex; align-items: end; flex-wrap: wrap; gap: 7px 10px; }
.wbe-field { display: grid; flex: 0 1 150px; gap: 3px; min-width: 0; color: var(--navy, #0b1c31); font-size: 13px; font-weight: 730; }
.wbe-comment-form .wbe-field, .wbe-task-form .wbe-field:first-child { flex: 1 1 190px; }
.wbe-timer-form .wbe-field { flex-basis: 92px; }
.wbe-input {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  padding: 6px 8px;
  border: 1px solid #c1cfdf;
  border-radius: 6px;
  background: white;
  color: var(--ink, #18283a);
  font: inherit;
  font-size: 16px;
  font-weight: 500;
}
textarea.wbe-input { resize: vertical; }
.wbe-list { margin: 0; padding: 0; list-style: none; max-height: 290px; overflow: auto; overscroll-behavior: contain; }
.wbe-row { padding: 7px 2px; }
.wbe-row + .wbe-row { border-top: 1px solid #e2e9f1; }
.wbe-row-head { display: flex; align-items: center; flex-wrap: wrap; gap: 3px 10px; }
.wbe-row-head strong { font-size: 14px; color: var(--navy, #0b1c31); overflow-wrap: anywhere; }
.wbe-comment-text { margin: 3px 0 0; font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.wbe-task { display: flex; align-items: center; justify-content: space-between; gap: 6px 10px; }
.wbe-task-info { min-width: 0; }
.wbe-status { padding: 2px 6px; border-radius: 12px; background: #e8f0f9; color: #274c70; font-size: 11px; font-weight: 760; }
.wbe-status[data-done="true"] { background: #e0f3e8; color: #21533b; }
.wbe-link {
  min-height: 30px;
  margin: 0;
  padding: 0 3px;
  border: 0;
  background: transparent;
  color: #265d8c;
  text-decoration: underline;
  text-underline-offset: 3px;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}
.wbe-timer-output { margin: 0; color: var(--navy, #0b1c31); font-size: 20px; font-weight: 790; font-variant-numeric: tabular-nums; }

@media (pointer: coarse) {
  .wbe-button, .wbe-input, .wbe-link { min-height: 44px; }
}
