
  .ableon-howto {
    margin: 12px 0 18px;
    border: 1px solid #e0e4e2;
    border-radius: 11px;
    background: #fafbfa;
    overflow: hidden;
  }
  .ableon-howto summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    cursor: pointer;
    color: #242424;
    font-size: 13px;
    font-weight: 800;
  }
  .ableon-howto summary::-webkit-details-marker { display: none; }
  .ableon-howto summary::after {
    content: "⌄";
    color: #747a77;
    font-size: 16px;
    transition: transform .16s ease;
  }
  .ableon-howto[open] summary::after { transform: rotate(180deg); }
  .ableon-howto-body {
    display: grid;
    gap: 10px;
    padding: 0 14px 14px;
  }
  .ableon-howto-row {
    display: grid;
    grid-template-columns: 112px minmax(0,1fr);
    gap: 10px;
    color: #5c625f;
    font-size: 12px;
    line-height: 1.5;
  }
  .ableon-howto-label { color: #2c2f2d; font-weight: 800; }
  .ableon-example-box {
    grid-column: 1 / -1;
    padding: 11px 12px;
    border: 1px solid #e3e6e4;
    border-radius: 9px;
    background: #fff;
  }
  .ableon-example-text {
    color: #565c59;
    font-size: 12px;
    line-height: 1.5;
    white-space: pre-wrap;
  }
  .ableon-example-button,
  .ableon-mini-action,
  .ableon-history-open,
  .ableon-quick-chip {
    border: 1px solid #d5d9d7;
    background: #fff;
    color: #262826;
    border-radius: 8px;
    font: 700 12px Arial, sans-serif;
    cursor: pointer;
  }
  .ableon-example-button {
    margin-top: 9px;
    padding: 8px 10px;
  }
  .ableon-example-button:hover,
  .ableon-mini-action:hover,
  .ableon-history-open:hover,
  .ableon-quick-chip:hover { border-color: #aeb7b2; background: #f7f8f7; }

  .ableon-loading-status {
    display: none;
    align-items: center;
    gap: 9px;
    margin-top: 10px;
    color: #666d69;
    font-size: 12px;
  }
  .ableon-loading-status.visible { display: flex; }
  .ableon-loading-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green, #16a065);
    box-shadow: 0 0 0 4px rgba(22,160,101,.10);
  }
  .ableon-loading-status.visible .ableon-loading-dot {
    animation: ableon-loading-pulse 1.35s ease-in-out infinite;
  }
  @keyframes ableon-loading-pulse {
    0%, 100% { transform: scale(.92); box-shadow: 0 0 0 3px rgba(22,160,101,.08); opacity: .78; }
    50% { transform: scale(1.16); box-shadow: 0 0 0 7px rgba(22,160,101,.16); opacity: 1; }
  }
  @media (prefers-reduced-motion: reduce) {
    .ableon-loading-status.visible .ableon-loading-dot { animation: none; }
  }

  .ableon-run-meta {
    display: none;
    gap: 8px;
    flex-wrap: wrap;
    padding: 12px 18px 0;
  }
  .ableon-run-meta.visible { display: flex; }
  .ableon-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 28px;
    padding: 5px 9px;
    border: 1px solid #dfe5e2;
    border-radius: 999px;
    background: #f8faf9;
    color: #535b57;
    font-size: 11px;
    font-weight: 700;
  }
  .ableon-status-pill.ok { border-color: #cfe6da; background: #f3faf6; color: #176747; }
  .ableon-status-pill.warn { border-color: #eadfbd; background: #fffaf0; color: #7e6523; }

  .ableon-result-next-actions {
    display: none;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 18px 18px;
  }
  .ableon-result-next-actions.visible { display: flex; }
  .ableon-mini-action { padding: 9px 11px; }
  .ableon-mini-action.primary-soft {
    border-color: #cbe2d6;
    background: #f4faf7;
    color: #126744;
  }

  .tool-picker-item { position: relative; padding-right: 46px; }
  .ableon-tool-star {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #a3a9a6;
    font-size: 17px;
    cursor: pointer;
  }
  .ableon-tool-star:hover { background: #f0f3f1; color: #5c625f; }
  .ableon-tool-star.active { color: #15945e; }
  .ableon-handoff-note {
    margin: 0 0 10px;
    padding: 10px 12px;
    border: 1px solid #cfe6da;
    border-radius: 9px;
    background: #f3faf6;
    color: #2f5e49;
    font-size: 11px;
    line-height: 1.45;
  }

  .ableon-history-overlay,
  .ableon-onboarding-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1900;
    padding: 20px;
    background: rgba(0,0,0,.38);
    align-items: center;
    justify-content: center;
  }
  .ableon-history-overlay.active,
  .ableon-onboarding-overlay.active { display: flex; }
  .ableon-history-modal,
  .ableon-onboarding-modal {
    width: min(100%, 700px);
    max-height: calc(100vh - 40px);
    overflow: auto;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 20px 60px rgba(0,0,0,.2);
  }
  .ableon-history-head,
  .ableon-onboarding-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 22px 14px;
    border-bottom: 1px solid #eceeed;
  }
  .ableon-history-title,
  .ableon-onboarding-title { font-size: 20px; font-weight: 800; color: #1d1d1d; }
  .ableon-onboarding-subtitle { margin-top: 4px; color: #7a807d; font-size: 12px; line-height: 1.45; }
  .ableon-history-confirm {
    padding: 0;
    border: 0;
    color: #1d1d1d;
    max-height: calc(100dvh - 40px);
    overflow: auto;
  }
  .ableon-history-confirm::backdrop { background: rgba(0,0,0,.38); }
  .ableon-history-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
  .ableon-history-clear {
    padding: 8px 10px;
    border: 1px solid #d5d9d7;
    border-radius: 8px;
    background: #fff;
    color: #5f6562;
    font: 700 12px Arial, sans-serif;
    white-space: nowrap;
    cursor: pointer;
  }
  .ableon-history-clear:hover:not(:disabled) { border-color: #8a8f8c; background: #f5f7f6; }
  .ableon-history-clear:focus-visible { outline: 2px solid #289451; outline-offset: 3px; }
  .ableon-history-clear:disabled,
  .ableon-history-open:disabled { opacity: .5; cursor: default; }
  .ableon-history-message { margin-bottom: 12px; color: #138554; font-size: 12px; line-height: 1.45; }
  .ableon-history-message.error { color: #b33e35; }
  .ableon-x {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    flex: 0 0 32px;
    padding: 0;
    border: 0;
    border-radius: 7px;
    background: #f2f6f3;
    color: #3c4941;
    font: 22px/1 Arial, sans-serif;
    cursor: pointer;
  }
  .ableon-x:hover { background: #e4eee8; }
  .ableon-x:focus-visible { outline: 2px solid #289451; outline-offset: 3px; }
  .ableon-history-body,
  .ableon-onboarding-body { padding: 16px 22px 22px; }
  .ableon-history-list { display: grid; gap: 9px; }
  .ableon-history-item {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px 13px;
    border: 1px solid #e2e4e3;
    border-radius: 10px;
    background: #fff;
  }
  .ableon-history-name { color: #242424; font-size: 13px; font-weight: 800; }
  .ableon-history-meta { margin-top: 4px; color: #8a8f8c; font-size: 10.5px; }
  .ableon-history-excerpt {
    margin-top: 6px;
    color: #5f6562;
    font-size: 11px;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
  .ableon-history-open { padding: 8px 10px; }
  .ableon-history-empty { padding: 28px 8px; text-align: center; color: #858b88; font-size: 12px; }

  .ableon-onboarding-steps { display: grid; gap: 10px; }
  .ableon-onboarding-step {
    display: grid;
    grid-template-columns: 32px minmax(0,1fr);
    gap: 11px;
    align-items: start;
    padding: 12px;
    border: 1px solid #e4e6e5;
    border-radius: 10px;
  }
  .ableon-onboarding-number {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: #eef7f2;
    color: #138554;
    font-size: 13px;
    font-weight: 800;
  }
  .ableon-onboarding-step strong { display: block; color: #252525; font-size: 13px; }
  .ableon-onboarding-step span { display: block; margin-top: 3px; color: #727875; font-size: 11.5px; line-height: 1.45; }
  .ableon-onboarding-footer { display: flex; justify-content: flex-end; margin-top: 16px; }
  .ableon-onboarding-start {
    order: 1;
    min-height: 40px;
    padding: 9px 14px;
    border: 0;
    border-radius: 9px;
    background: #171717;
    color: #fff;
    font: 800 12px Arial, sans-serif;
    cursor: pointer;
  }

  @media (max-width: 780px) {
    .ableon-howto-row { grid-template-columns: 1fr; gap: 3px; }
    .ableon-history-item { grid-template-columns: 1fr; }
    .ableon-history-open { justify-self: start; }
  }
  @media (max-width: 540px) {
    .ableon-history-head { position: relative; flex-wrap: wrap; gap: 10px; padding-right: 62px; }
    .ableon-history-head .ableon-x { position: absolute; top: 20px; right: 22px; }
  }

.ableon-file-help { position:relative; display:inline-flex; }
.ableon-help-button { border:1px solid #d4ded8; background:#fff; color:#65776b; border-radius:50%; width:23px; height:23px; cursor:pointer; }
.ableon-file-tip { position:fixed; width:min(300px,calc(100vw - 24px)); z-index:1200; padding:14px; background:#fff; border:1px solid #dce5df; border-radius:12px; box-shadow:0 8px 28px #183d2520; font-size:12px; line-height:1.5; box-sizing:border-box; }
.ableon-file-tip p { margin:5px 0; }
.ableon-context-note { margin:8px 0; padding:10px 12px; border-radius:10px; background:#f0f7f2; font-size:12px; line-height:1.5; }
.ableon-context-note button { margin-left:8px; border:0; background:transparent; color:#487653; text-decoration:underline; cursor:pointer; }
.ableon-onboarding-overlay { background:transparent; pointer-events:none; align-items:flex-end; justify-content:flex-end; }
.ableon-onboarding-modal { width:min(360px,calc(100vw - 32px)); pointer-events:auto; box-shadow:0 8px 40px #17392730; }
.ableon-history-modal { max-height:85vh; overflow:auto; }
.ableon-tool-star:focus-visible,.ableon-help-button:focus-visible { outline:2px solid #289451; outline-offset:3px; }

/* v21: onboarding spacing and action layout */
.ableon-onboarding-head {
  padding: 12px 16px 6px !important;
  min-height: 0 !important;
  align-items: center !important;
}
.ableon-onboarding-head strong {
  margin: 0 !important;
  line-height: 1.2 !important;
}
.ableon-onboarding-body {
  padding: 7px 16px 14px !important;
}
.ableon-onboarding-body p {
  margin: 0 0 10px !important;
  line-height: 1.32 !important;
}

.ableon-onboarding-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-top: 10px;
}
.ableon-onboarding-skip {
  order: 2;
  margin-left: auto;
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid #d9dfdb;
  border-radius: 9px;
  background: #fff;
  color: #59615c;
  font: 700 12px Arial, sans-serif;
  cursor: pointer;
}
.ableon-onboarding-skip:hover { background: #f5f7f6; }
.ableon-onboarding-skip:focus-visible,
.ableon-onboarding-start:focus-visible { outline: 2px solid #289451; outline-offset: 3px; }

