:root {
  --bg: #f3f4f6;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --brand: #0f766e;
  --danger: #b91c1c;
  --border: #e2e8f0;
}

* {
  box-sizing: border-box;
}

body.v6-theme {
  margin: 0;
  font-family: "Helvetica Neue", Arial, sans-serif;
  background: radial-gradient(circle at 10% 20%, #f8fafc, #e2e8f0 45%, #cbd5f5 100%);
  color: var(--text);
}

.v6-shell {
  width: 100%;
  margin: 0;
  padding: 0;
  position: relative;
}

.v6-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.15);
  padding: 24px 28px;
}

.v6-topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.v6-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 32px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.v6-brand {
  font-weight: 700;
  letter-spacing: 0.04em;
}

.v6-topnav {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  justify-content: center;
}

.v6-topnav-spacer {
  flex: 1;
}

.v6-topnav-item {
  position: relative;
}

.v6-topnav-toggle {
  font-size: 13px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  list-style: none;
}

.v6-topnav-toggle::-webkit-details-marker {
  display: none;
}

.v6-topnav-toggle::marker {
  content: "";
}

.v6-topnav-toggle::after {
  content: "▾";
  margin-left: 6px;
  color: var(--muted);
}

.v6-topnav-panel {
  position: absolute;
  top: 38px;
  left: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  min-width: 200px;
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.12);
  display: grid;
  gap: 6px;
  z-index: 30;
}

.v6-topnav-panel--wide {
  min-width: 560px;
  max-width: min(84vw, 980px);
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  align-content: start;
}

.v6-topnav-group {
  display: grid;
  gap: 6px;
  padding: 6px 0;
  border-top: 1px solid var(--border);
}

.v6-topnav-group:first-child {
  border-top: none;
  padding-top: 0;
}

.v6-topnav-group-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  padding: 0 4px;
}

.v6-topnav-group-list {
  display: grid;
  gap: 6px;
}

.v6-topnav-item:not([open]) .v6-topnav-panel {
  display: none;
}

.v6-topnav-link,
.v6-topnav-sub {
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 999px;
}

.v6-topnav-link {
  font-weight: 600;
  background: #e0e7ff;
}

.v6-topnav-link--primary {
  background: #dbe7ff;
}

.v6-topnav-link--ghost {
  background: transparent;
  color: var(--text);
}

.v6-topnav-link:hover,
.v6-topnav-sub:hover,
.v6-topnav-toggle:hover {
  background: #e2e8f0;
}

.v6-topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
}

.v6-topbar-link {
  font-size: 13px;
  color: var(--brand);
  text-decoration: none;
}

.v6-topbar-link:hover {
  text-decoration: underline;
}

.v6-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #f8fafc;
  color: var(--brand);
  text-decoration: none;
}

.v6-icon-button svg {
  width: 18px;
  height: 18px;
  display: block;
}

.v6-icon-button:hover {
  background: #e2e8f0;
}

.v6-topnav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 1 auto;
}

.v6-topnav-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #0f172a;
}

.v6-topnav-switch input {
  accent-color: #0f172a;
}

.v6-menu-link--disabled,
.v6-topnav-link--disabled {
  color: #94a3b8;
  cursor: not-allowed;
  pointer-events: none;
}

.v6-topnav-input {
  height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 13px;
  min-width: 220px;
}

.v6-topnav-button {
  height: 34px;
  padding: 0 14px;
  border-radius: 8px;
  border: none;
  background: #9bb6ff;
  color: #0f172a;
  font-weight: 600;
  cursor: pointer;
}

.v6-topnav-button:hover {
  background: #7f9bff;
}

.v6-content {
  max-width: 1200px;
  margin: 24px auto 40px;
  padding: 0 24px;
}

.v6-logo {
  display: block;
  width: 150px;
  margin: 0 auto 14px;
}

.v6-card h1 {
  font-size: 22px;
  margin: 0 0 12px;
  text-align: center;
}

.v6-subtitle {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 16px;
}

.v6-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 12px;
  line-height: 1.4;
}

.v6-docs-actions {
  display: flex;
  gap: 8px;
  margin: 10px 0 12px;
}

.v6-docs-actions button {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #e0e7ff;
  font-weight: 600;
  cursor: pointer;
}

.v6-docs-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.v6-success {
  color: #166534;
  font-size: 13px;
  margin: 8px 0;
}

.v6-error {
  color: #b91c1c;
  font-size: 13px;
  margin: 8px 0;
}

.v6-docs-actions button:hover {
  background: #c7d2fe;
}

.v6-docs-editor {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  background: #f8fafc;
  min-height: 280px;
}

.milkdown {
  --crepe-font-default: Arial, Helvetica, sans-serif;
  --crepe-font-title: Arial, Helvetica, sans-serif;
  --crepe-font-code: "Courier New", Courier, monospace;
}

.v6-docs-hidden {
  display: none;
}

.v6-docs-confluence {
  display: grid;
  grid-template-columns: minmax(240px, 320px) 1fr;
  gap: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  background: #fff;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

.v6-docs-confluence-sidebar {
  background: #f8fafc;
  border-right: 1px solid #e5e7eb;
  padding: 16px 12px;
}

.v6-docs-confluence-tree ul {
  list-style: none;
  margin: 0;
  padding: 0 0 0 8px;
  display: grid;
  gap: 2px;
}

.v6-docs-confluence-tree li {
  margin: 0;
}

.v6-docs-confluence-tree summary {
  list-style: none;
}

.v6-docs-confluence-tree summary::-webkit-details-marker {
  display: none;
}

.v6-docs-tree-branch > details {
  margin: 0;
}

.v6-docs-tree-branch > details > summary {
  cursor: pointer;
}

.v6-docs-folder-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  color: #0f172a;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
}

.v6-docs-folder-link:hover {
  background: #e2e8f0;
}

.v6-docs-folder-link--active {
  background: #e2e8f0;
}

.v6-docs-folder-icon {
  width: 18px;
  height: 14px;
  border-radius: 3px 3px 2px 2px;
  background: #fbbf24;
  position: relative;
}

.v6-docs-folder-icon::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 2px;
  width: 10px;
  height: 6px;
  border-radius: 3px 3px 0 0;
  background: #fde68a;
}

.v6-docs-confluence-panel {
  padding: 20px 24px 28px;
  background: #fff;
  min-height: 360px;
}

.v6-docs-folder-panel {
  display: none;
}

.v6-docs-folder-panel--active {
  display: block;
}

.v6-docs-folder-panel:target {
  display: block;
}

.v6-docs-folder-panel h3 {
  margin: 0;
  font-size: 18px;
  color: #0f172a;
}

.v6-docs-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.v6-docs-panel-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.v6-docs-panel-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.v6-docs-confluence-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.v6-docs-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.v6-docs-confluence-list a {
  text-decoration: none;
  color: #0f172a;
  font-size: 14px;
}

.v6-docs-confluence-list a:hover {
  text-decoration: underline;
}

.v6-docs-add-row {
  margin-top: 14px;
  padding-top: 8px;
  border-top: 1px solid #e2e8f0;
}

.v6-docs-add-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 8px;
  background: #eef2ff;
  color: #1e293b;
  font-weight: 600;
  font-size: 12px;
  text-decoration: none;
}

.v6-docs-add-link:hover {
  background: #e0e7ff;
}

.v6-docs-empty-add {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.v6-docs-subfolders {
  margin-bottom: 12px;
}

.v6-docs-subfolders h4 {
  margin: 0 0 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
}

.v6-docs-subfolder-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.v6-docs-subfolder-list a {
  text-decoration: none;
  color: #0f172a;
  font-size: 13px;
}

.v6-docs-subfolder-list a:hover {
  text-decoration: underline;
}

.v6-docs-menu {
  position: relative;
}

.v6-docs-menu-trigger {
  list-style: none;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  border-radius: 8px;
  padding: 2px 8px;
  cursor: pointer;
  font-weight: 700;
  color: #64748b;
  opacity: 0;
  pointer-events: none;
}

.v6-docs-menu-trigger::-webkit-details-marker {
  display: none;
}

.v6-docs-item:hover .v6-docs-menu-trigger,
.v6-docs-panel-header:hover .v6-docs-menu-trigger,
.v6-docs-menu:focus-within .v6-docs-menu-trigger {
  opacity: 1;
  pointer-events: auto;
}

.v6-docs-menu-list {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  min-width: 160px;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
  padding: 6px;
  display: grid;
  gap: 4px;
  z-index: 10;
}

.v6-docs-menu-item {
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  color: #0f172a;
  display: block;
}

.v6-docs-menu-item:hover {
  background: #f1f5f9;
}

.v6-docs-menu-danger {
  color: #b91c1c;
}

.v6-docs-menu-form {
  margin: 0;
}

.v6-docs-search {
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  align-items: center;
}

.v6-docs-search input {
  flex: 1;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  font-size: 13px;
}

.v6-docs-search button {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #eef2ff;
  font-weight: 600;
  cursor: pointer;
}

.v6-docs-search button:hover {
  background: #e0e7ff;
}

.v6-docs-dialog-card {
  border: 1px solid #e5e7eb;
  background: #fff;
}

.v6-docs-dialog-form input,
.v6-docs-dialog-form select {
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}
.v6-docs-typebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  margin-bottom: 12px;
}

.v6-docs-typebar--standalone {
  margin-bottom: 0;
}

.v6-docs-typebar-title {
  font-weight: 700;
  font-size: 14px;
  color: #0f172a;
}

.v6-docs-review {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  padding: 16px 18px;
}


@media (max-width: 900px) {
  .v6-docs-confluence {
    grid-template-columns: 1fr;
  }

  .v6-docs-confluence-sidebar {
    border-right: none;
    border-bottom: 1px solid #e5e7eb;
  }
}

.v6-docs-folder-meta {
  font-size: 11px;
  color: var(--muted);
  margin-left: 6px;
}

.v6-docs-folder-actions {
  display: grid;
  gap: 8px;
  padding: 8px 0 4px;
}

.v6-docs-folder-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.v6-docs-folder-form input {
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  font-size: 12px;
  min-width: 180px;
}

.v6-docs-folder-form button {
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: #dbeafe;
  font-weight: 600;
  cursor: pointer;
}

.v6-docs-ops {
  margin: 12px 0 16px;
}

.v6-docs-ops-card {
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 12px;
  background: #f8fafc;
}

.v6-docs-toolbar {
  display: flex;
  gap: 10px;
  margin: 10px 0 16px;
  align-items: center;
}

.v6-docs-toolbar button {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #e2e8f0;
  font-weight: 600;
  cursor: pointer;
}

.v6-docs-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #e2e8f0;
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
}

.v6-docs-button:hover {
  background: #cbd5f5;
}

.v6-docs-button--ghost {
  background: transparent;
}

.v6-docs-toolbar button:hover {
  background: #cbd5f5;
}

.v6-docs-label {
  font-size: 12px;
  color: var(--muted);
}

.v6-docs-select {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 12px;
  background: #fff;
}

.v6-docs-select--lg {
  padding: 8px 14px;
  font-size: 14px;
}

.v6-docs-type-section {
  margin-bottom: 14px;
}

.v6-docs-type-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.v6-docs-type-button {
  background: #f1f5f9;
}

.v6-docs-type-button--active {
  background: #cbd5f5;
  border-color: #94a3b8;
}

.v6-dialog {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(15, 23, 42, 0.35);
  z-index: 50;
}

.v6-dialog--open {
  display: flex;
}

.v6-dialog:target {
  display: flex;
}

.v6-dialog-card {
  border-radius: 12px;
  padding: 0;
  max-width: 420px;
  width: 92vw;
  background: var(--surface);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.2);
}

.v6-dialog-form {
  padding: 18px 20px 16px;
  display: grid;
  gap: 10px;
}

.v6-dialog-form h3 {
  margin: 0 0 4px;
  font-size: 16px;
}

.v6-dialog-form label {
  font-size: 12px;
  color: var(--muted);
}

.v6-dialog-form input {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 13px;
}

.v6-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}

.v6-dialog-actions button {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-weight: 600;
  cursor: pointer;
}

.v6-menu-root {
  display: block;
}

.v6-menu-toggle {
  display: none;
  position: absolute;
  top: 16px;
  left: 28px;
  right: auto;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  width: 40px;
  height: 40px;
  padding: 0;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  list-style: none;
  align-items: center;
  justify-content: center;
}

.v6-menu-hamburger {
  display: inline-block;
  font-weight: 700;
  color: #0f172a;
  transform: translateY(-1px);
}

.v6-menu-toggle::-webkit-details-marker {
  display: none;
}

.v6-menu-toggle::marker {
  content: "";
}

.v6-menu-panel {
  width: 100%;
  padding: 18px 32px 12px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: block;
}

.v6-menu-panel--mobile {
  display: none;
}

.v6-menu-mobile-actions {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 10px;
}

.v6-menu {
  display: grid;
  gap: 16px;
  margin: 0 auto;
  max-width: 1400px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.v6-menu-section {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  background: #f8fafc;
}

.v6-menu-title {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
  cursor: pointer;
  list-style: none;
}

.v6-menu-list,
.v6-menu-sublist {
  display: grid;
  gap: 6px;
}

.v6-menu-group {
  margin-bottom: 8px;
}

.v6-menu-subtitle {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
  cursor: pointer;
  list-style: none;
}

.v6-menu-link {
  display: inline-block;
  font-size: 13px;
  color: var(--brand);
  text-decoration: none;
}

.v6-menu-link:hover {
  text-decoration: underline;
}

.v6-menu-section > summary::-webkit-details-marker,
.v6-menu-group > summary::-webkit-details-marker {
  display: none;
}

.v6-menu-section > summary::after,
.v6-menu-group > summary::after {
  content: "▾";
  float: right;
  color: var(--muted);
}

.v6-menu-section[open] > summary::after,
.v6-menu-group[open] > summary::after {
  content: "▴";
}

.v6-customer-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.v6-customer-toggle {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  font-size: 12px;
  border: 1px solid var(--border);
  padding: 0 12px;
  border-radius: 999px;
  background: #f8fafc;
  cursor: pointer;
  list-style: none;
}

.v6-customer-toggle::-webkit-details-marker {
  display: none;
}

.v6-customer-toggle::marker {
  content: "";
}

.v6-customer-form {
  position: absolute;
  right: 0;
  top: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  min-width: 220px;
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.12);
  z-index: 20;
}

.v6-customer-input {
  flex: 1;
  margin-top: 0;
}

.v6-customer-input {
  font-size: 13px;
}


.v6-customer-label {
  font-size: 12px;
  color: var(--muted);
}

.v6-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  font-size: 12px;
  color: var(--muted);
}

.v6-debug-banner {
  background: #fef3c7;
  color: #7c2d12;
  font-size: 12px;
  padding: 6px 10px;
  border-bottom: 1px solid #fde68a;
  text-align: center;
}

.v6-debug-panel {
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
}

.v6-debug-panel summary {
  cursor: pointer;
  color: var(--brand);
}

.v6-debug-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
}

.v6-debug-label {
  font-weight: 600;
}

.v6-field {
  margin-top: 14px;
}

.v6-label {
  display: block;
  font-size: 13px;
  margin-bottom: 6px;
}

.v6-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
  font-size: 14px;
}

.v6-button {
  width: 100%;
  margin-top: 18px;
  padding: 12px;
  background: #d1322d;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
}

.v6-button:hover {
  background: #b22622;
}

.v6-login-panel {
  max-width: 420px;
  margin: 0 auto;
}

.v6-error {
  background: #fee2e2;
  color: var(--danger);
  border: 1px solid #fecaca;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 13px;
  margin-bottom: 10px;
}

.v6-center {
  text-align: center;
}



.v6-ai-widget {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  pointer-events: none;
}

.v6-ai-tooltip {
  background: #0f172a;
  color: #fff;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  white-space: nowrap;
}

.v6-ai-widget:hover .v6-ai-tooltip {
  opacity: 1;
  transform: translateY(0);
}

.v6-ai-launcher {
  pointer-events: auto;
  border: none;
  background: linear-gradient(135deg, #0f766e, #0ea5e9);
  color: #fff;
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.2);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.v6-ai-launcher:focus {
  outline: 2px solid #1d4ed8;
  outline-offset: 2px;
}

.v6-ai-panel {
  position: absolute;
  right: 0;
  bottom: 60px;
  width: 360px;
  max-width: calc(100vw - 48px);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.2);
  padding: 14px 16px 16px;
  display: none;
  pointer-events: auto;
}

.v6-ai-widget--open .v6-ai-panel {
  display: block;
}

.v6-ai-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.v6-ai-panel-title {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

.v6-ai-panel-close {
  border: none;
  background: #f1f5f9;
  color: #0f172a;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.v6-ai-panel-body {
  margin-top: 10px;
  display: grid;
  gap: 10px;
}

.v6-ai-messages {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px;
  max-height: 220px;
  overflow-y: auto;
  display: grid;
  gap: 8px;
}

.v6-ai-message {
  display: flex;
}

.v6-ai-message--user {
  justify-content: flex-end;
}

.v6-ai-message--assistant {
  justify-content: flex-start;
}

.v6-ai-bubble {
  max-width: 85%;
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.4;
}

.v6-ai-message--user .v6-ai-bubble {
  background: #dbeafe;
  color: #0f172a;
}

.v6-ai-message--assistant .v6-ai-bubble {
  background: #e2e8f0;
  color: #0f172a;
}

.v6-ai-form {
  display: grid;
  gap: 8px;
}

.v6-ai-input {
  width: 100%;
  resize: vertical;
  min-height: 72px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  padding: 8px 10px;
  font-size: 12px;
  font-family: inherit;
}

.v6-ai-form-actions {
  display: flex;
  justify-content: flex-end;
}

.v6-ai-send {
  border: none;
  background: #0f766e;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
}

.v6-ai-send:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.v6-ai-hint {
  font-size: 11px;
  color: var(--muted);
}

.v6-ai-widget--open .v6-ai-tooltip {
  opacity: 0;
}
@media (max-width: 900px) {
  .v6-topbar-inner {
    padding: 14px 16px;
    padding-left: 72px;
  }

  .v6-topbar-actions {
    gap: 8px;
  }

  .v6-topnav,
  .v6-topnav-search {
    display: none;
  }

  .v6-menu-toggle {
    display: inline-flex;
    position: fixed;
    left: 16px;
    right: auto;
    top: 12px;
    z-index: 25;
  }

  .v6-menu-mobile-actions .v6-topnav-search {
    display: flex;
    width: 100%;
  }

  .v6-menu-mobile-actions .v6-topnav-input {
    min-width: 0;
    width: 100%;
  }

  .v6-topbar-actions .v6-customer-switcher {
    display: none;
  }

  .v6-menu-panel {
    display: none;
    padding: 14px 16px 10px;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
  }

  .v6-menu-root[open] .v6-menu-panel {
    display: block;
  }

  .v6-menu-root[open] .v6-menu-panel--mobile {
    display: block;
  }

  .v6-menu {
    grid-template-columns: 1fr;
  }

  .v6-content {
    margin: 18px auto 32px;
    padding: 0 16px;
  }

  .v6-customer-form {
    right: auto;
    left: 0;
  }

  .v6-ai-widget {
    right: 16px;
    bottom: 16px;
  }

  .v6-ai-panel {
    width: min(320px, calc(100vw - 32px));
  }
}
