/* Nagaland AI — Website Builder panel (5.22.0). Loaded only on the tool pages. */
.nai-chat [hidden] { display: none !important; }
.nai-chat--builder .nai-chat__bar { flex-wrap: wrap; row-gap: 8px; }
.nai-chat--builder .nai-mode { padding: 7px 11px; white-space: nowrap; text-decoration: none; display: inline-flex; align-items: center; }
.nai-chat--builder .nai-mode:not(.is-active):hover { color: var(--nai-text); }
.nai-chat__panel { display: flex; flex-direction: column; min-width: 0; background: var(--nai-bg-2); border-left: 1px solid var(--nai-line); }
.nai-panel__head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--nai-line); }
.nai-panel__tabs { display: inline-flex; gap: 2px; background: rgba(0,0,0,.2); border: 1px solid var(--nai-line); border-radius: 999px; padding: 3px; flex-wrap: wrap; }
html[data-theme="light"] .nai-panel__tabs { background: var(--nai-bg-3); }
.nai-panel__tab { border: 0; background: transparent; color: var(--nai-muted); padding: 6px 12px; border-radius: 999px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.nai-panel__tab.is-active { background: var(--nai-user); color: #fff; }
.nai-panel__close { margin-left: auto; }
.nai-panel__meta { display: flex; align-items: center; gap: 10px; padding: 8px 14px 0; min-height: 26px; }
.nai-panel__title { font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nai-panel__status { font-size: 12px; color: var(--nai-green); font-weight: 700; }
.nai-panel__status::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: currentColor; margin-right: 6px; animation: nai-panel-pulse 1s infinite alternate; }
@keyframes nai-panel-pulse { from { opacity: .35; } to { opacity: 1; } }
.nai-panel__notices { margin: 8px 14px 0; padding: 8px 12px 8px 28px; font-size: 12.5px; color: var(--nai-muted); background: rgba(234,200,94,.08); border: 1px solid rgba(234,200,94,.25); border-radius: 10px; }
.nai-panel__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 12px; }
.nai-panel__devices { display: inline-flex; gap: 4px; margin-right: auto; }
.nai-panel__dev { border: 1px solid var(--nai-line); background: transparent; color: var(--nai-muted); border-radius: 8px; padding: 5px 9px; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.nai-panel__dev.is-active { color: var(--nai-text); border-color: var(--nai-green); }
.nai-panel__btn { border: 1px solid var(--nai-line-2); background: transparent; color: var(--nai-text); border-radius: 10px; padding: 6px 11px; font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.nai-panel__btn:hover { border-color: var(--nai-green); background: rgba(16,185,129,.08); }
.nai-panel__btn--fix { border-color: rgba(234,200,94,.5); color: var(--nai-gold); }
.nai-chat__panel:not(.has-site) .nai-panel__btn, .nai-chat__panel:not(.has-site) .nai-panel__devices { opacity: .45; pointer-events: none; }
.nai-panel__body { flex: 1; min-height: 0; position: relative; }
.nai-panel__body > [data-pane] { position: absolute; inset: 0; overflow: auto; -webkit-overflow-scrolling: touch; }
.nai-panel__preview { background: #e9ecea; }
html[data-theme="light"] .nai-panel__preview { background: #dfe5e2; }
.nai-panel__stage { position: relative; height: 100%; margin: 0 auto; background: #fff; }
.nai-panel__stage.is-framed { box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.nai-panel__stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #fff; }
.nai-panel__empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; color: #4b5a52; font-size: 14px; background: #eef2f0; }
.nai-panel__code { margin: 0; padding: 12px 0; font: 12.5px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--nai-text); background: transparent; counter-reset: nai-line; white-space: pre; }
.nai-panel__code span { display: block; padding: 0 14px 0 0; }
.nai-panel__code span::before { counter-increment: nai-line; content: counter(nai-line); display: inline-block; width: 3.4em; padding-right: 1em; text-align: right; color: var(--nai-muted); opacity: .6; user-select: none; }
.nai-panel__code.is-incomplete::after { content: "Incomplete: the page stopped before the end. Ask for a shorter page."; display: block; margin: 12px 14px; padding: 8px 12px; border-radius: 10px; color: var(--nai-gold); border: 1px solid rgba(234,200,94,.4); white-space: normal; font-family: var(--nai-font); }
.nai-panel__fill, .nai-panel__publish { padding: 14px 16px 28px; font-size: 14px; }
.nai-panel__fillform { display: grid; gap: 10px; max-width: 520px; }
.nai-panel__fillform label { display: grid; gap: 4px; font-weight: 600; font-size: 13px; }
.nai-panel__fillform input { padding: 9px 11px; border-radius: 10px; border: 1px solid var(--nai-line-2); background: var(--nai-bg); color: var(--nai-text); font: inherit; }
.nai-panel__muted { color: var(--nai-muted); font-size: 13px; margin: 0 0 10px; }
.nai-panel__note { padding: 10px 12px; border-radius: 10px; background: rgba(16,185,129,.1); border: 1px solid rgba(16,185,129,.3); margin: 0 0 10px; white-space: pre-line; }
.nai-panel__check { font-weight: 700; margin: 0 0 12px; }
.nai-panel__publish details { border: 1px solid var(--nai-line); border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; background: rgba(255,255,255,.02); }
.nai-panel__publish summary { cursor: pointer; font-weight: 700; }
.nai-panel__publish ol { margin: 8px 0 0 18px; padding: 0; }
.nai-panel__publish li { margin: 4px 0; }
.nai-panel-open { display: none; }
.nai-chat--builder .nai-msg__body .nai-panel-ref { color: var(--nai-muted); font-size: 13px; font-style: italic; }

/* Wide screens: a third column beside the chat */
@media (min-width: 1024px) {
  .nai-chat__panel { width: clamp(380px, 44%, 760px); flex-shrink: 0; }
  .nai-panel__close { display: none; }
}
/* Phones and tablets: the panel is a layer over the chat; "Preview" in the top bar opens it */
@media (max-width: 1023px) {
  .nai-chat__panel { position: absolute; inset: 0; z-index: 8; display: none; }
  .nai-chat.is-panel .nai-chat__panel { display: flex; }
  .nai-panel-open { display: inline-flex; width: auto; padding: 0 10px; font-size: 12.5px; font-weight: 700; }
  .nai-chat.is-kb .nai-chat__panel { display: none !important; }
  .nai-panel__devices { display: none; }
}
