/* Honu keeps optional chat and connection-free guidance easy to find. */
body .app-header #copilot-launcher {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: auto; min-width: 112px; max-width: 100%; height: auto; min-height: 42px;
  flex: 0 0 auto; padding: 5px 11px; white-space: normal; overflow: visible;
}
body .app-header #copilot-launcher[hidden] { display: none !important; }
.honu-launcher-label { display: flex; flex-direction: column; text-align: left; font-size: 13px; line-height: 1.25; }
.honu-launcher-label small { font-size: 10px; font-weight: 400; }
#copilot-panel {
  position: fixed; top: calc(var(--app-header-bottom, 80px) + 8px); right: 12px; bottom: 12px;
  width: min(480px, calc(100vw - 24px)); max-width: calc(100vw - 24px); height: auto;
  max-height: calc(100dvh - var(--app-header-bottom, 80px) - 20px);
  display: flex; flex-direction: column; gap: 9px; padding: 14px;
  background: var(--panel, #0d1c2b); overflow: hidden; overscroll-behavior: contain; z-index: 1200;
}
#copilot-panel.is-expanded { width: min(760px, calc(100vw - 24px)); }
#copilot-panel[hidden], #copilot-panel [hidden], #tour-overlay [hidden], .honu-tour-paused[hidden] { display: none !important; }
#copilot-panel > :not(.copilot-thread) { flex: 0 0 auto; }
#copilot-panel > .honu-mode-view { flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain; scrollbar-gutter: stable; padding-right: 3px; }
#honu-chat-view { display: flex; flex-direction: column; gap: 8px; }
#honu-chat-view > :not(.copilot-thread) { flex: 0 0 auto; }
.honu-current-page { margin: 0; color: #a9c9d1; font-size: 12px; line-height: 1.45; }
.honu-mode-intro { margin: 0 0 12px; font-size: 13px; line-height: 1.55; color: #b8cbd2; }
.honu-chat-summary { margin: 0; font-size: 12px; color: #b8cbd2; line-height: 1.45; }
.honu-chat-options { border-top: 1px solid var(--line); padding-top: 5px; }
.honu-chat-options > summary { min-height: 36px; padding: 8px 0; cursor: pointer; font-size: 12px; color: #b8cbd2; }
.honu-chat-options .honu-chat-toolbar { margin: 6px 0; }
.honu-chat-options .honu-availability { padding: 8px 0; border: 0; }
.honu-tour-featured { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 16px; }
.honu-featured-tour { display: flex; flex-direction: column; gap: 5px; padding: 12px; min-width: 0; border: 1px solid #365b62; border-radius: 8px; text-align: left; background: #122e35; color: inherit; font: inherit; cursor: pointer; }
.honu-featured-tour:last-child { grid-column: 1 / -1; }
.honu-featured-tour strong { font-size: 14px; line-height: 1.35; }
.honu-featured-tour span { font-size: 12px; line-height: 1.45; color: #b6cbd2; }
.honu-featured-tour:hover { border-color: var(--accent); }
.honu-tour-search { display: flex; flex-direction: column; gap: 5px; font-size: 12px; }
.honu-tour-search input { width: 100%; min-width: 0; min-height: 40px; padding: 8px 10px; border: 1px solid #36515d; border-radius: 7px; background: #10222c; color: var(--ink); font-size: 14px; }
#copilot-panel .tour-menu-group { padding: 0; border-top: 1px solid var(--line); }
#copilot-panel .tour-menu-group > summary { min-height: 44px; padding: 12px 2px; cursor: pointer; font-size: 13px; color: #d4e5e9; }
#copilot-panel .tour-menu-grid { display: flex; flex-direction: column; gap: 8px; padding-bottom: 12px; }
#copilot-panel .tour-menu-card { padding: 11px; display: flex; flex-direction: column; gap: 5px; text-align: left; border: 1px solid var(--line); border-radius: 7px; background: #10252e; color: inherit; font: inherit; cursor: pointer; }
#copilot-panel .tour-menu-card strong { font-size: 13px; }
#copilot-panel .tour-menu-card-duration { font-size: 11px; color: #aac3cc; }
#copilot-panel .tour-menu-card-desc { margin: 0; font-size: 12px; line-height: 1.5; color: #b9cbd2; }
#copilot-panel .copilot-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 6px 0; position: sticky; top: 0; z-index: 2; background: var(--panel, #0d1c2b); }
#copilot-panel .copilot-head h2 { margin: 0; font-size: 19px; }
#copilot-panel .copilot-head .eyebrow { margin: 0 0 2px; font-size: 10px; }
.honu-mode-switch { display: flex; gap: 6px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.honu-mode-switch button { flex: 1 1 auto; min-height: 40px; border: 1px solid var(--line); border-radius: 8px; padding: 8px; background: transparent; color: inherit; font: inherit; font-size: 13px; cursor: pointer; }
.honu-mode-switch button.is-active { background: rgba(108, 199, 255, .13); border-color: var(--accent, #6cc7ff); }
.honu-welcome { padding: 11px; background: rgba(108, 199, 255, .08); border: 1px solid var(--line); border-radius: 8px; font-size: 13px; }
.honu-welcome p { margin: 6px 0 9px; line-height: 1.5; }
.honu-welcome > div, .honu-chat-toolbar, .honu-send-actions { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.honu-text-button { padding: 5px 7px; min-height: 32px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--muted, #b3c4d5); font: inherit; font-size: 12px; cursor: pointer; }
.honu-text-button:hover { color: var(--ink, #e8f0f6); background: rgba(108, 199, 255, .09); border-color: var(--line); }
.honu-availability { border-bottom: 1px solid var(--line); padding-bottom: 6px; }
#copilot-panel .copilot-statusline { margin: 0; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
#copilot-panel .copilot-statusline a { display: flex; width: fit-content; align-items: center; min-height: 36px; margin-top: 8px; padding: 5px 9px; border: 1px solid currentColor; border-radius: 6px; color: var(--accent, #6cc7ff); text-decoration: underline; }
#copilot-panel .copilot-starters { margin: 0; padding: 8px; }
#copilot-panel .copilot-starters-head { align-items: center; }
#copilot-panel .copilot-starters-label { text-transform: none; font-size: 11px; letter-spacing: 0; }
#copilot-panel .copilot-starters-body { max-height: 170px; overflow: auto; }
#copilot-panel .copilot-thread { flex: 1 0 140px; min-height: 140px; max-height: none; overflow: auto; padding: 2px; gap: 10px; }
#copilot-panel .copilot-msg { font-size: 13px; line-height: 1.55; overflow-wrap: anywhere; }
#copilot-panel .copilot-form { display: flex; flex-direction: column; gap: 7px; margin: 0; padding-top: 8px; border-top: 1px solid var(--line); }
#copilot-panel .copilot-input { width: 100%; min-height: 62px; max-height: 160px; resize: vertical; font-size: 14px; }
#copilot-panel .copilot-form p { margin: 0; font-size: 11px; line-height: 1.4; }
#copilot-panel button:focus-visible, #copilot-panel textarea:focus-visible, #copilot-panel input:focus-visible, #copilot-panel summary:focus-visible,
#tour-overlay button:focus-visible, #tour-overlay input:focus-visible, #tour-overlay select:focus-visible,
.honu-tour-paused button:focus-visible { outline: 3px solid var(--accent, #6cc7ff); outline-offset: 3px; }
#tour-overlay { z-index: 2100; }
#tour-overlay .tour-card { display: flex; flex-direction: column; gap: 10px; padding: 16px; overflow: hidden; width: 440px; background: var(--panel, #0d1c2b); }
#tour-overlay .tour-card.is-menu { width: min(800px, calc(100vw - 24px)); }
#tour-overlay .tour-card > :not(.tour-card-narration) { flex: 0 0 auto; }
#tour-overlay .tour-card-head { flex-wrap: wrap; align-items: center; gap: 6px; }
#tour-overlay .tour-card-eyebrow { font-size: 11px; letter-spacing: .015em; text-transform: none; }
#tour-overlay .tour-card-head-right { margin-left: auto; gap: 6px; flex-wrap: wrap; }
#tour-overlay .tour-card-counter { font-size: 12px; }
#tour-overlay .tour-card-title { font-size: 21px; line-height: 1.25; margin: 0; }
#tour-overlay .tour-card-hint { margin: 0; font-size: 12px; line-height: 1.5; }
#tour-overlay .tour-card-narration { min-height: 44px; max-height: none; overflow: auto; font-size: 14px; line-height: 1.65; padding: 0 3px 3px 0; }
#tour-overlay .tour-card-error { margin: 0; max-height: 110px; overflow: auto; font-size: 12px; line-height: 1.5; }
#tour-overlay .tour-card-dots { flex-wrap: wrap; gap: 5px; }
#tour-overlay .tour-card-dot { width: 32px; height: 32px; font-size: 12px; }
#tour-overlay .tour-card-actions { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 7px; margin: 0; }
#tour-overlay .tour-card-actions-right { display: flex; gap: 7px; flex-wrap: wrap; }
#tour-overlay .tour-card-button, #tour-overlay .tour-card-close { min-height: 38px; font-size: 13px; padding: 8px 11px; }
.tour-menu-filters { display: grid; grid-template-columns: minmax(0, 1fr) minmax(150px, .65fr); gap: 12px; }
.tour-menu-filters label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 600; }
.tour-menu-filters input, .tour-menu-filters select { width: 100%; min-width: 0; min-height: 40px; font: inherit; padding: 8px; color: var(--ink, #e8f0f6); background: var(--input-bg, #142436); border: 1px solid var(--line); border-radius: 7px; }
.tour-menu-count { font-size: 12px; color: var(--muted, #b3c4d5); margin: 8px 0; }
.tour-menu-group h3 { font-size: 14px; margin: 17px 0 8px; }
#tour-overlay .tour-menu-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
#tour-overlay .tour-menu-card { display: flex; flex-direction: column; gap: 5px; padding: 13px; text-align: left; height: auto; min-width: 0; border: 1px solid var(--line); background: rgba(108, 199, 255, .055); color: inherit; border-radius: 8px; }
#tour-overlay .tour-menu-card:hover { border-color: var(--accent, #6cc7ff); background: rgba(108, 199, 255, .12); }
#tour-overlay .tour-menu-card strong { font-size: 14px; line-height: 1.4; }
#tour-overlay .tour-menu-card-duration { font-family: inherit; font-size: 11px; }
#tour-overlay .tour-menu-card-desc { font-size: 12px; line-height: 1.5; }
.honu-tour-paused { position: fixed; z-index: 2050; top: calc(var(--app-header-bottom, 80px) + 10px); left: 50%; transform: translateX(-50%); max-width: calc(100vw - 24px); display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--accent, #6cc7ff); background: var(--panel, #0d1c2b); box-shadow: 0 8px 24px #0007; font-size: 12px; }
.honu-tour-paused span { flex: 1 1 180px; }
.honu-tour-paused button { min-height: 38px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 6px; background: rgba(108, 199, 255, .15); color: inherit; cursor: pointer; }
@media (max-width: 600px) {
  body .app-header #copilot-launcher { width: auto !important; min-width: 98px !important; max-width: 132px; flex: 0 0 auto; margin: 0; padding: 4px 7px; }
  body .app-header #copilot-launcher svg { flex: 0 0 23px; width: 23px; height: 23px; }
  .honu-launcher-label { font-size: 12px; } .honu-launcher-label small { font-size: 9px; }
  #copilot-panel { right: 6px; bottom: 6px; top: calc(var(--app-header-bottom, 80px) + 6px); width: calc(100vw - 12px); max-width: calc(100vw - 12px); padding: 10px; gap: 7px; max-height: calc(100dvh - var(--app-header-bottom, 80px) - 12px); }
  #copilot-panel .button, .honu-text-button, .honu-mode-switch button { min-height: 40px; }
  #copilot-panel .copilot-thread { flex-basis: 120px; min-height: 120px; }
  #tour-overlay .tour-card { padding: 12px; gap: 7px; }
  #tour-overlay .tour-card-title { font-size: 18px; }
  #tour-overlay .tour-card-hint { font-size: 11px; }
  #tour-overlay .tour-card-narration { font-size: 13px; line-height: 1.55; }
  #tour-overlay .tour-card-head-right { flex: 1 1 auto; justify-content: flex-end; }
  #tour-overlay .tour-card-button, #tour-overlay .tour-card-close { min-height: 40px; padding: 7px 9px; }
  #tour-overlay .tour-menu-grid, .tour-menu-filters { grid-template-columns: minmax(0, 1fr); }
  .honu-tour-paused { width: calc(100vw - 24px); box-sizing: border-box; }
}
@media (prefers-reduced-motion: reduce) { #copilot-panel *, #tour-overlay * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
