/* Account-specific additions only; original shell, messages and composer remain shared. */
#quickActions[hidden], #quickActionTabs[hidden], #nativeShopWorkbench[hidden] { display:none !important; }
#nativeShopWorkbench { font-size:12px; line-height:1.65; overflow-wrap:anywhere; }
#nativeShopWorkbench > p { margin:10px 0; }
#nativeShopWorkbench { min-width:0; }
#nativeShopWorkbench .quick-action-group button > span { min-width:0; overflow-wrap:break-word; }
#nativeShopWorkbench button:disabled { opacity:.5; cursor:wait; }
#nativeShopWorkbench button:focus-visible { outline:2px solid #279da8; outline-offset:2px; }
.account-workspace .scope-controls > :not(.member-menu-button):not(.scope-workspace-button):not(.scope-popover):not(.native-device-ready):not(.topbar-session-actions):not(.notification-button):not(.notification-popover),
.account-workspace:not(.native-shop-workspace) #emptyState,
.account-workspace:not(.native-shop-workspace) .thinking-trajectory,
.account-workspace:not(.native-shop-workspace) .thinking-design,
.account-workspace .low-priority-meta { display:none !important; }
.account-workspace #quickActions,.account-workspace #quickActionTabs { opacity:.42; filter:grayscale(1); }
.account-workspace #quickActions button,.account-workspace #quickActionTabs button,
.account-workspace #sidebarNewScheduledTask,.account-workspace [data-workspace-tab=scheduled] { cursor:not-allowed; }
.account-workspace #sidebarNewScheduledTask,.account-workspace [data-workspace-tab=scheduled],.account-workspace #workspaceSettingsButton { opacity:.4; filter:grayscale(1); cursor:not-allowed; }
.account-workspace .sidebar-conversation-more { opacity:1; }
.account-workspace.native-shop-workspace [data-workspace-tab=scheduled] { opacity:1; filter:none; cursor:pointer; }
.account-workspace.native-shop-workspace #sidebarNewScheduledTask,.account-workspace.native-shop-workspace #workspaceSettingsButton { opacity:1; filter:none; cursor:pointer; }
.account-workspace.native-shop-workspace #quickActions,.account-workspace.native-shop-workspace #quickActionTabs { opacity:1; filter:none; }
.account-workspace.native-shop-workspace #quickActions button,.account-workspace.native-shop-workspace #quickActionTabs button { cursor:pointer; }
.account-workspace.native-shop-workspace #quickActions button:disabled { opacity:.45; cursor:not-allowed; }
.scope-workspace-button { display:inline-flex; flex:none; align-items:center; justify-content:center; gap:7px; min-height:36px; padding:0 11px; border:1px solid #dce3ec; border-radius:8px; color:#49566b; background:#fff; font-family:inherit; font-size:12px; font-weight:500; line-height:1.4; cursor:pointer; white-space:nowrap; }
.account-workspace .aw-scope-nav { margin-top:12px; padding:0 0 14px; border-bottom:1px solid #dfe6f0; }
.aw-scope-nav button { display:flex; align-items:center; gap:8px; min-height:36px; text-align:left; border:1px solid transparent; box-shadow:none; background:transparent; color:#526178; padding:8px 10px; border-radius:8px; font:inherit; cursor:pointer; }
.aw-scope-nav .aw-account { width:100%; font-size:12px; }
.aw-nav-title { display:flex; align-items:center; justify-content:space-between; color:#758196; font-size:11px; margin:12px 0 4px; padding-left:10px; }
.aw-nav-title button { min-height:30px; width:30px; padding:5px; justify-content:center; }
.aw-scope-nav .aw-shop { width:100%; font-size:12px; }
.aw-scope-nav .aw-shop svg { flex:none; }
.aw-shop span { overflow-wrap:anywhere; min-width:0; }
.aw-shop small { display:block; color:#778397; font-size:10px; }
.aw-scope-nav .selected { background:#eaf4f0; border-color:#dcece5; color:#27876c; }
.aw-empty-small { font-size:11px; color:#778397; line-height:1.8; margin:8px 10px; }
.aw-connections { margin:0; border-color:#dfe6ee; border-radius:10px; padding:14px; }
.aw-connections > summary { display:flex; align-items:center; gap:8px; min-height:28px; list-style:none; cursor:pointer; color:#132342; }
.aw-connections > summary::-webkit-details-marker { display:none; }
.aw-connections > summary strong { font-size:12px; font-weight:600; }
.aw-connections > summary > span { margin-left:auto; color:#758196; font-size:10px; }
.aw-chevron { flex:none; color:#758196; }
.aw-connections[open] > summary .aw-chevron { transform:rotate(90deg); }
.aw-context-intro { color:#758196; font-size:11px; margin:4px 0 12px; line-height:1.8; }
/* Use rows, not section cards: v28 intentionally styles every context-panel section. */
.aw-connection-row { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; column-gap:12px; row-gap:5px; padding:13px 0; border-top:1px solid #edf1f6; }
.aw-connection-heading { display:flex; gap:7px; align-items:center; flex-wrap:wrap; min-width:0; }
.aw-connection-heading strong { font-size:12px; font-weight:600; }
.aw-icon { display:inline-flex; flex:none; color:#37967d; }
.aw-icon svg { width:16px; height:16px; }
.aw-state { font-size:10px; color:#758196; white-space:nowrap; }
.aw-connection-row p,.aw-shop-context p { color:#758196; font-size:11px; line-height:1.8; margin:0; overflow-wrap:anywhere; }
.aw-connection-row p { grid-column:1 / -1; }
.aw-connection-actions { display:flex; align-items:center; justify-content:flex-end; gap:6px; flex-wrap:wrap; }
.aw-connection-row > .aw-connection-actions { grid-column:2; grid-row:1; }
.aw-connection-actions button,.aw-text-button { border:1px solid #d8e3ec; border-radius:7px; background:#fff; color:#355067; font-family:inherit; font-size:11px; line-height:1.5; min-height:32px; padding:6px 10px; margin:0; cursor:pointer; }
.aw-shop-context { padding:14px 0; border-top:1px solid #edf1f6; display:grid; gap:8px; }
.aw-shop-context .aw-state { margin-left:auto; }
.aw-shop-context .aw-connection-actions { justify-content:flex-start; }
.aw-connection-footer { display:flex; align-items:center; flex-wrap:wrap; gap:4px 12px; border-top:1px solid #edf1f6; padding-top:8px; }
.aw-text-button { padding:5px 0; border-color:transparent; color:#61728a; background:transparent; }
.aw-scope-nav button:focus-visible,.aw-connections summary:focus-visible,.aw-connections button:focus-visible,.scope-workspace-button:focus-visible { outline:2px solid #53c0d6; outline-offset:3px; }
@media(hover:hover) {
  .aw-scope-nav button:hover { background:#eff5f8; }
  .aw-connection-actions button:hover,.scope-workspace-button:hover { border-color:#b9c8d6; background:#f6f9fc; }
  .aw-text-button:hover { color:#24475d; text-decoration:underline; }
}
@container(max-width:350px) {
  .aw-connection-row { grid-template-columns:minmax(0,1fr); }
  .aw-connection-row > .aw-connection-actions { grid-column:1; grid-row:3; justify-content:flex-start; margin-top:3px; }
}
.aw-error { color:#944735; background:#fff5ef; border:1px solid #f1ddd1; padding:9px 12px; border-radius:8px; font-size:12px; overflow-wrap:anywhere; margin:0 0 10px; line-height:1.7; }
.aw-error.aw-notice { color:#267b62; border-color:#c6e6d9; background:#f0faf5; }
.aw-error button { font:inherit; color:inherit; border:0; background:transparent; text-decoration:underline; cursor:pointer; }
.aw-dialog { width:min(570px,calc(100vw - 32px)); max-height:85dvh; min-height:0; height:fit-content; margin:auto; overflow:auto; }
.aw-dialog [data-ref=dialogBody] { padding:12px 20px 20px; }
.aw-dialog [data-ref=dialogError] { margin:0 20px 20px; }
.aw-dialog [data-managed-source] p,.aw-dialog [data-managed-profile] p,.aw-dialog .aw-import-candidate p { overflow-wrap:anywhere; font-size:12px; line-height:1.7; }
.aw-dialog [data-managed-profile] { padding-bottom:18px; border-bottom:1px solid #dfe6f0; }
.aw-dialog-intro { color:#778397; font-size:13px; line-height:1.8; margin:0 0 18px; }
.aw-dialog label { display:block; font-size:12px; margin:14px 0; }
.aw-dialog input:not([type=radio]):not([type=checkbox]),.aw-dialog select { display:block; width:100%; padding:9px 11px; border:1px solid #dfe6f0; border-radius:8px; background:#fff; margin-top:6px; color:#152642; }
.aw-dialog .aw-candidate { display:flex; align-items:center; gap:12px; padding:13px; border:1px solid #dfe6f0; border-radius:10px; margin:9px 0; cursor:pointer; }
.aw-candidate:has(input:checked) { border-color:#79baa7; background:#f2faf7; }
.aw-candidate input { width:15px; height:15px; flex:none; accent-color:#2d997a; }
.aw-candidate span { min-width:0; overflow-wrap:anywhere; }
.aw-candidate strong,.aw-candidate small { display:block; }
.aw-candidate small { font-size:11px; color:#778397; margin-top:4px; }
.aw-badge { margin-left:auto; font-size:10px; padding:3px 8px; background:#eff0f8; color:#66669a; border-radius:6px; }
.aw-candidates { max-height:290px; overflow:auto; }
.aw-dialog details { font-size:11px; color:#778397; margin:20px 0; }
.aw-dialog summary { cursor:pointer; }
.aw-dialog-actions { display:flex; align-items:center; gap:10px; justify-content:flex-end; margin-top:24px; }
.aw-add-options { display:grid; gap:10px; }
.aw-add-options button { display:grid; grid-template-columns:25px 1fr; justify-items:start; padding:15px; gap:5px; }
.aw-add-options button > strong,.aw-add-options button > small { min-width:0; text-align:left; overflow-wrap:anywhere; }
.aw-add-options button > strong:first-child,.aw-add-options button > strong:first-child + small { grid-column:1 / -1; }
html:not(.ui-v31) body dialog.aw-dialog.aurora-layer-dialog .aw-add-options button { min-height:68px; padding:12px 14px; align-content:center; }
.aw-add-options small { grid-column:2; }
.account-workspace .message time:empty { display:none; }
.account-workspace .aw-scope-nav [data-ref=shops] { max-height:150px; overflow:auto; }
@media(max-width:720px) {
  .account-workspace .topbar { flex-wrap:nowrap; }
  .account-workspace .scope-controls { width:auto; margin-left:auto; }
  .scope-workspace-button { min-height:34px; padding:0 9px; }
  .aw-scope-nav [data-ref=shops] { display:flex; overflow:auto; }
  .aw-scope-nav .aw-shop { flex:none; width:auto; }
}
@media(prefers-reduced-motion:reduce) { .aw-dialog { animation:none; } }

/* Setup stays inside the original conversation, using the same avatar and message stack. */
.aw-guide .message-stack { width:min(100%,680px); min-width:0; }
.aw-guide-card { padding:18px; border:1px solid #d7e5ee; border-radius:14px; color:#132342; background:rgba(255,255,255,.96); box-shadow:0 8px 24px rgba(35,59,89,.035); font-size:13px; line-height:1.7; }
.aw-guide-card > header { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:12px; }
.aw-guide-card > header > strong { font-size:14px; }
.aw-guide-card button { min-height:34px; padding:7px 12px; border:1px solid #d7e2eb; border-radius:8px; color:#355067; background:#fff; font:inherit; font-size:12px; line-height:1.5; cursor:pointer; }
.aw-guide-card button:disabled { opacity:.5; cursor:not-allowed; }
.aw-guide-card button.primary { color:#fff; border-color:#142844; background:linear-gradient(135deg,#173a5f,#111f3e 68%,#3f3c77); }
.aw-guide-card > header > button { border:0; color:#758196; font-size:11px; white-space:nowrap; }
.aw-guide-card .aw-add-options { grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr)); margin:12px 0; }
.aw-guide-card .aw-add-options button { min-height:76px; padding:12px; align-content:center; text-align:left; }
.aw-guide-card .aw-add-options small { color:#758196; font-size:11px; font-weight:400; line-height:1.6; }
.aw-guide-card label { display:block; margin:12px 0; font-size:12px; }
.aw-guide-card input:not([type=radio]):not([type=checkbox]):not([type=hidden]),.aw-guide-card select { display:block; width:100%; min-width:0; min-height:38px; margin-top:6px; padding:9px 11px; color:#132342; background:#fbfcfe; border:1px solid #d7e2eb; border-radius:8px; font:inherit; font-size:12px; }
.aw-guide-card input:focus-visible,.aw-guide-card select:focus-visible,.aw-guide-card button:focus-visible,.aw-guide-card summary:focus-visible { outline:2px solid #53c0d6; outline-offset:2px; }
.aw-guide-card .aw-candidate { display:flex; align-items:center; gap:10px; padding:12px; border:1px solid #dfe6f0; border-radius:10px; margin:8px 0; cursor:pointer; }
.aw-guide-card .aw-candidate:has(input:checked) { border-color:#79baa7; background:#f2faf7; }
.aw-guide-card .aw-selection-toolbar { display:flex; align-items:center; justify-content:space-between; gap:10px; color:#758196; font-size:11px; }
.aw-selection-toolbar label { display:flex; align-items:center; gap:8px; margin:0; color:#355067; }
.aw-guide-card .aw-candidates { max-height:300px; padding:0 3px; overflow:auto; }
.aw-guide-card .aw-import-candidates { max-height:min(560px,60dvh); margin:10px 0; padding:0 6px 0 0; }
.aw-import-candidate { min-width:0; margin:10px 0; padding:12px; border:1px solid #dfe6f0; border-radius:10px; background:#fbfcfe; }
.aw-import-candidate:has([name=sourceIndex]:checked) { border-color:#79baa7; background:#f4faf8; }
.aw-guide-card .aw-import-candidate .aw-candidate { padding:0; margin:0; border:0; background:transparent; }
.aw-guide-card .aw-import-candidate [data-source-target] { min-width:0; margin:12px 0 0; padding-top:12px; border-top:1px solid #e0eae7; }
.aw-guide-card .aw-import-candidate [data-source-target] > label,.aw-guide-card .aw-import-fields label { min-width:0; margin:0; }
.aw-guide-card .aw-import-candidate select { width:100%; min-width:0; box-sizing:border-box; height:40px; }
.aw-guide-card .aw-import-candidate select:disabled { opacity:.65; }
.aw-guide-card .aw-import-note { margin:8px 0 0; color:#758196; font-size:11px; line-height:1.7; overflow-wrap:anywhere; }
.aw-import-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
@media(max-width:640px) { .aw-import-fields { grid-template-columns:minmax(0,1fr); } .aw-import-candidate { padding:10px; } }
.aw-guide-card .aw-dialog-intro { font-size:12px; margin-bottom:12px; }
.aw-shop-intro { margin:0 0 16px; padding:12px 14px; border-left:3px solid #53c0d6; border-radius:0 8px 8px 0; background:#f0f7fb; overflow-wrap:anywhere; }
.aw-shop-intro > strong { display:block; color:#173a5f; font-size:14px; font-weight:600; line-height:1.7; }
.aw-shop-intro > p { margin:5px 0 0; color:#52657b; font-size:12px; line-height:1.8; }
.aw-guide-card details { margin:12px 0; color:#61728a; font-size:12px; }
.aw-guide-card summary { cursor:pointer; }
.aw-guide-card details > summary { display:flex; align-items:center; gap:8px; min-height:30px; list-style:none; transition:color .18s ease; }
.aw-guide-card details > summary::-webkit-details-marker { display:none; }
.aw-guide-card details > summary::before { content:""; flex:none; width:5px; height:5px; border-right:1.4px solid currentColor; border-bottom:1.4px solid currentColor; transform:rotate(-45deg); transition:transform .18s cubic-bezier(.2,.72,.24,1); }
.aw-guide-card details[open] > summary::before { transform:rotate(45deg); }
.aw-guide-card details > summary:is(:hover,:focus-visible) { color:#244b68; }
@media(prefers-reduced-motion:reduce) { .aw-guide-card details > summary,.aw-guide-card details > summary::before { transition:none; } }
@media(prefers-reduced-motion:reduce) { .aw-guide.reveal { animation:none; } }
.aw-guide-card .aw-error { margin-top:12px; }
.aw-manual-row { position:relative; min-width:0; margin:16px 0; padding:12px 0 16px; border:0; border-bottom:1px solid #e4ebf2; }
.aw-manual-row legend { padding:0; color:#758196; font-size:11px; }
.aw-guide-card .aw-remove-row { position:absolute; right:0; top:-18px; min-height:30px; padding:4px 7px; border:0; color:#758196; background:transparent; }
.aw-shop-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px 12px; }
.aw-shop-fields .aw-shop-name { grid-column:1 / -1; }
.aw-guide-card .aw-shop-fields label { min-width:0; margin:0; }
.aw-manual-toolbar { display:flex; gap:12px; align-items:center; justify-content:space-between; flex-wrap:wrap; }
.aw-manual-toolbar button { display:inline-flex; align-items:center; gap:6px; }
.aw-manual-toolbar small { color:#758196; font-size:11px; }
.aw-guide-card .hy-select { display:block; width:100%; min-width:0; margin-top:6px; }
.aw-guide-card .hy-select-trigger { width:100%; min-height:38px; text-align:left; background:#fbfcfe; }
.aw-guide-card .hy-select-menu { z-index:20; }
.aw-guide-card .hy-select-menu button { border:0; background:transparent; box-shadow:none; }
.aw-guide-card .aw-connection-footer { margin-top:12px; }
.aw-guide-card .aw-text-button { border:0; padding-inline:0; font-size:11px; }
.aw-existing-shops { margin-top:18px !important; padding-top:2px; border-top:1px solid #e3eaf1; }
.aw-existing-shops > summary { justify-content:space-between; padding:10px 0 4px; color:#243c59; }
.aw-existing-shops > summary > span { font-weight:600; }
.aw-existing-shops > summary > small { margin-left:auto; color:#758196; font-size:11px; font-weight:400; }
.aw-source-scope-note { margin:5px 0 0; color:#758196; font-size:10px; line-height:1.6; }
.aw-existing-shop-list,.aw-management-shop-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin-top:9px; }
.aw-existing-shop { min-width:0; padding:13px; border:1px solid #d9e4ed; border-radius:11px; background:#fff; }
.aw-existing-shop-compact { padding:10px 11px; border-radius:9px; }
.aw-existing-shop.archived { background:#f8fafc; }
.aw-existing-shop-heading { display:flex; align-items:flex-start; gap:9px; min-width:0; }
.aw-existing-shop-heading > svg { flex:none; width:17px; height:17px; margin-top:2px; color:#49677e; }
.aw-existing-shop-heading > div { min-width:0; }
.aw-existing-shop-heading strong,.aw-existing-shop-heading small { display:block; min-width:0; overflow-wrap:anywhere; }
.aw-existing-shop-heading strong { color:#203a58; font-size:12px; line-height:1.5; }
.aw-existing-shop-heading small { margin-top:3px; color:#758196; font-size:10px; line-height:1.55; }
.aw-shop-source-overview { display:flex; flex-wrap:wrap; gap:6px; margin-top:11px; }
.aw-shop-source-line { display:flex; align-items:center; gap:6px; min-width:0; margin-top:8px; padding-top:8px; border-top:1px solid #edf1f5; }
.aw-shop-source-label { flex:none; color:#8a96a6; font-size:9px; }
.aw-shop-source-overview.compact { flex:1; min-width:0; flex-wrap:nowrap; gap:4px; margin-top:0; overflow:hidden; }
.aw-shop-source-overview.compact .aw-source-badge { flex:none; min-height:20px; padding:2px 6px; border-radius:6px; font-size:9px; }
.aw-shop-source-overview.compact .aw-source-badge small { font-size:8px; }
.aw-source-badge { display:inline-flex; align-items:center; gap:5px; min-height:25px; padding:4px 7px; border:1px solid #dfe7ee; border-radius:7px; color:#53657a; background:#f8fafc; font-size:10px; line-height:1.35; }
.aw-source-badge i { width:6px; height:6px; border-radius:50%; background:#aab5c1; }
.aw-source-badge small { color:inherit; font-size:9px; }
.aw-source-badge.linked { color:#26795f; border-color:#cce8dc; background:#eff9f5; }
.aw-source-badge.linked i { background:#3baa85; }
.aw-source-badge.missing { color:#8a6328; border-color:#efdfbc; background:#fffaf0; }
.aw-source-badge.missing i { background:#d0a553; }
.aw-source-badge.unavailable { color:#778397; background:#f4f6f8; }
.aw-source-empty { color:#758196; font-size:10px; }
.aw-existing-shop-actions { display:flex; align-items:center; gap:7px; margin-top:12px; padding-top:10px; border-top:1px solid #edf1f5; }
.aw-guide-card .aw-existing-shop-actions button { min-height:31px; padding:5px 9px; font-size:10px; }
.aw-existing-shop-actions small { color:#758196; font-size:10px; }
.aw-guide-card .aw-existing-shop-actions .aw-archive-link { margin-left:auto; border-color:transparent; color:#8e594d; background:transparent; }
.aw-guide-card .aw-shop-enter { display:inline-flex; flex:none; align-items:center; gap:4px; min-height:29px; margin-left:auto; padding:4px 8px; color:#183958; border-color:#cbdbe6; background:#f8fbfd; font-size:10px; }
.aw-guide-card .aw-shop-enter > svg { width:12px; height:12px; }
.aw-guide-card .aw-shop-request,.aw-guide-card .aw-shop-access-pending { display:inline-flex; flex:none; align-items:center; gap:4px; min-height:29px; margin-left:auto; padding:4px 8px; font-size:10px; }
.aw-guide-card .aw-shop-request { color:#72541f; border-color:#ead09e; background:#fff8e8; }
.aw-guide-card .aw-shop-request > svg { width:12px; height:12px; }
.aw-guide-card .aw-shop-access-pending { color:#6e5d3d; border-color:#eadbbd; background:#fffaf0; }
.aw-shop-view-only { flex:none; color:#7d8998; font-size:9px; }
.aw-management-shop { padding:10px 11px; border-radius:9px; }
.aw-guide-card .aw-shop-manage-compact { display:inline-flex; flex:none; align-items:center; gap:4px; min-height:28px; margin-left:auto; padding:3px 7px; color:#29435f; border-color:#d6e1e9; background:#f8fafc; font-size:9px; }
.aw-guide-card .aw-shop-manage-compact > svg { width:11px; height:11px; }
.aw-management-shop-state { display:flex; align-items:center; gap:7px; min-width:0; margin-top:8px; padding-top:8px; border-top:1px solid #edf1f5; color:#758196; font-size:9px; line-height:1.45; }
.aw-management-shop-state strong { flex:none; padding:2px 6px; border:1px solid #e5d8bd; border-radius:6px; color:#8a6328; background:#fffaf0; font-size:9px; }
.aw-management-shop-state span { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.aw-management-shop-warning { margin:6px 0 0; color:#9a6847; font-size:9px; }
.aw-management-section { margin-top:18px; padding-top:15px; border-top:1px solid #dfe7ef; }
.aw-management-heading { display:flex; align-items:baseline; justify-content:space-between; gap:12px; margin-bottom:10px; }
.aw-management-heading strong { color:#203a58; font-size:13px; }
.aw-management-heading small { color:#758196; font-size:10px; }
.aw-management-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
.aw-guide-card .aw-management-card { display:grid; grid-template-columns:20px minmax(0,1fr) 17px; align-items:center; gap:9px; min-height:62px; padding:10px 11px; text-align:left; }
.aw-management-card > svg { width:17px; height:17px; color:#496b82; }
.aw-management-card > svg:last-child { width:14px; height:14px; color:#90a0ad; }
.aw-management-card span,.aw-management-card strong,.aw-management-card small { display:block; min-width:0; overflow-wrap:anywhere; }
.aw-management-card strong { color:#29435f; font-size:12px; line-height:1.5; }
.aw-management-card small { margin-top:3px; color:#758196; font-size:10px; font-weight:400; line-height:1.5; }
.aw-danger-zone { margin-top:20px; padding:14px; border:1px solid #ead7d1; border-radius:10px; background:#fff9f6; }
.aw-danger-action > strong { color:#7d463b; font-size:13px; }
.aw-danger-action > p { margin:6px 0 11px; color:#755f5a; font-size:11px; line-height:1.7; }
.aw-delete-zone { margin-top:14px; padding-top:14px; border-top:1px solid #ead7d1; }
.aw-inline-confirm { margin-top:12px; padding:12px; border:1px solid #ead4cb; border-radius:9px; color:#67483f; background:#fff5f0; font-size:11px; line-height:1.7; }
.aw-inline-confirm p { margin:0; }
.aw-inline-confirm > div { display:flex; justify-content:flex-end; gap:8px; margin-top:10px; }
.aw-guide-card .aw-danger-confirm { color:#fff; border-color:#9c4f42; background:#9c4f42; }
@media(hover:hover) {
  .aw-existing-shop:hover { border-color:#bfd1df; box-shadow:0 6px 16px rgba(35,59,89,.045); }
  .aw-management-card:hover { border-color:#b8ccd9; background:#f7fafc; }
}
@media(max-width:640px) {
  .aw-existing-shop-list,.aw-management-shop-list,.aw-management-grid { grid-template-columns:minmax(0,1fr); }
  .aw-existing-shops > summary > small,.aw-management-heading > small { display:none; }
  .aw-guide-card .aw-management-card { min-height:58px; }
}
.aw-guide-card .ads-setup-card,.aw-guide-card .ads-discovery-form { margin:12px 0; padding:12px; background:#f8fafc; border:1px solid #e2e8f0; border-radius:10px; }
.aw-guide-card [data-ads-host] h3 { font-size:13px; margin:0; }
.aw-guide-card [data-ads-host] p { font-size:12px; color:#758196; }
/* Moved Ads controls cannot inherit the wide dialog's inline form layout. */
.aw-guide-card [data-ads-host] { min-width:0; container:aw-ads / inline-size; }
.aw-guide-card [data-ads-host] :is(.ads-setup-card,.ads-discovery-form) { display:grid; gap:12px; align-items:end; margin:12px 0 0; }
.aw-guide-card [data-ads-host] .ads-setup-card { grid-template-columns:minmax(0,1fr); }
.aw-guide-card [data-ads-host] .ads-discovery-form { grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto; }
.aw-guide-card [data-ads-host] .ads-discovery-form > div:first-child,
.aw-guide-card [data-ads-host] #adsAccountSelectLabel { grid-column:1 / -1; }
.aw-guide-card [data-ads-host] p { margin:6px 0 0; line-height:1.7; }
.aw-guide-card [data-ads-host] label { min-width:0; margin:0; color:#53617b; }
.aw-guide-card [data-ads-host] :is(input:not([type=hidden]),select,.hy-select-trigger) { box-sizing:border-box; height:40px; min-height:40px; }
.aw-guide-card [data-ads-host] input { margin-top:6px; }
.aw-guide-card [data-ads-host] :is(.ads-auth-actions,.ads-copy-panel) > button,
.aw-guide-card [data-ads-host] #adsDiscoverButton,
.aw-guide-card .aw-dialog-actions > button { display:inline-flex; align-items:center; justify-content:center; box-sizing:border-box; min-height:40px; margin:0; padding:9px 12px; line-height:20px; }
.aw-guide-card [data-ads-host] #adsDiscoverButton { height:40px; white-space:nowrap; }
.aw-guide-card [data-ads-host] .ads-auth-actions { justify-content:flex-end; align-items:stretch; flex-wrap:wrap; gap:8px; }
.aw-guide-card [data-ads-host] .ads-copy-panel { min-width:0; align-items:center; gap:8px; }
.aw-guide-card [data-ads-host] .ads-copy-panel > input:not([type=hidden]) { width:100%; margin:0; text-overflow:ellipsis; }
.aw-guide-card [data-ads-host] .ads-copy-panel > button { height:40px; white-space:nowrap; }
.aw-guide-card [data-ads-host] .ads-copy-panel small { min-width:0; line-height:1.7; overflow-wrap:anywhere; }
.aw-guide-card [data-ads-host] .ads-connection-chip { min-width:0; max-width:100%; overflow-wrap:anywhere; }
.aw-guide-card .aw-dialog-actions { flex-wrap:wrap; gap:8px; }
@container aw-ads (max-width:520px) {
  .aw-guide-card [data-ads-host] .ads-discovery-form { grid-template-columns:minmax(0,1fr); }
  .aw-guide-card [data-ads-host] #adsDiscoverButton { justify-self:end; }
  .aw-guide-card [data-ads-host] .ads-auth-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
}
.aw-guide-card [data-market-host] > .member-create { margin:0; padding:0; border:0; border-radius:0; background:transparent; box-shadow:none; }
/* The original settings form leaves #memberDialog when mounted in the conversation. */
.aw-guide-card .fastmoss-run-limit-toggle { display:flex; align-items:center; gap:8px; min-height:30px; white-space:nowrap; }
.aw-guide-card .fastmoss-run-limit-toggle input[type=checkbox] { flex:0 0 15px; width:15px; height:15px; min-height:0; margin:0; padding:0; accent-color:#4da8be; }
@media(max-width:640px) { .aw-guide-card { padding:12px; } .aw-guide .message-stack { max-width:calc(100% - 42px); } .aw-guide-card .aw-badge { padding:2px 4px; } }
@media(max-width:640px) { .aw-shop-fields { grid-template-columns:minmax(0,1fr); } }

/* Connection tutorial triggers share the TikTok Ads guide treatment so every
   credential form keeps the same low-noise help entry. */
.ads-setup-copy { min-width:0; }
.ads-setup-heading { display:flex; align-items:center; flex-wrap:wrap; gap:7px 12px; margin-bottom:5px; }
.ads-setup-heading h3 { margin:0 !important; }
.credential-guide-heading { display:flex; align-items:center; flex-wrap:wrap; gap:6px 10px; min-width:0; }
.credential-guide-heading :is(h2,h3) { margin-block:0 !important; }
.auth-credential-guide-heading { justify-content:center; margin-bottom:8px; }
#adsDialog .ads-guide-trigger,
.aw-guide-card [data-ads-host] .ads-guide-trigger,
.connection-guide-trigger {
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-height:32px !important;
  border:1px solid rgba(54,151,143,.44) !important;
  border-radius:8px !important;
  padding:0 13px !important;
  color:#24566a !important;
  background:linear-gradient(118deg,rgba(49,141,118,.14),rgba(56,153,168,.16) 58%,rgba(81,77,150,.1)),#f8fcfc !important;
  box-shadow:0 6px 15px rgba(45,119,119,.09),inset 0 1px 0 rgba(255,255,255,.76) !important;
  font-size:11px !important;
  font-weight:600 !important;
  line-height:1.4 !important;
  white-space:nowrap;
}
#adsDialog .ads-guide-trigger > span,
.aw-guide-card [data-ads-host] .ads-guide-trigger > span,
.connection-guide-trigger > span {
  display:grid;
  place-items:center;
  width:16px;
  height:16px;
  border:1px solid #397b78;
  border-radius:50%;
  /* Keep the help glyph white under the settings-heading span palette. */
  color:#fff !important;
  background:#397b78;
  font-size:10px;
  line-height:1;
}
#adsDialog .ads-guide-trigger:hover,
#adsDialog .ads-guide-trigger:focus-visible,
.aw-guide-card [data-ads-host] .ads-guide-trigger:hover,
.aw-guide-card [data-ads-host] .ads-guide-trigger:focus-visible,
.connection-guide-trigger:hover,
.connection-guide-trigger:focus-visible {
  color:#24566a !important;
  border-color:rgba(54,151,143,.62) !important;
  background:linear-gradient(118deg,rgba(49,141,118,.18),rgba(56,153,168,.2) 58%,rgba(81,77,150,.13)),#f7fbfc !important;
  box-shadow:0 8px 18px rgba(45,119,119,.12),inset 0 1px 0 rgba(255,255,255,.76) !important;
}

dialog.ads-guide-dialog {
  width:min(980px,calc(100vw - 32px));
  max-width:none;
  height:min(900px,calc(100dvh - 32px));
  max-height:none;
  margin:auto;
  border:1px solid #d8e4ec;
  border-radius:18px;
  padding:0;
  overflow:hidden;
  color:#263d56;
  background:#f7fafc;
  box-shadow:0 28px 80px rgba(19,43,67,.24);
}
dialog.ads-guide-dialog[open] { display:grid; grid-template-rows:auto minmax(0,1fr) auto; }
.ads-guide-dialog > .dialog-head { position:relative; margin:0 !important; flex:none; }
.ads-authorization-guide-scroll { min-height:0; overflow:auto; padding:22px 24px 28px; scrollbar-width:thin; scrollbar-color:rgba(112,140,163,.42) transparent; }
.ads-guide-intro { max-width:760px; margin:0 0 18px; color:#60748a; font-size:13px; line-height:1.8; }
.ads-guide-step { margin-top:14px; border:1px solid #dce7ee; border-radius:14px; padding:18px; background:#fff; box-shadow:0 8px 24px rgba(29,64,94,.035); }
.ads-guide-step:first-of-type { margin-top:0; }
.ads-guide-step > header { display:flex; align-items:flex-start; gap:12px; }
.ads-guide-step > header > b { display:grid; flex:0 0 28px; place-items:center; width:28px; height:28px; border-radius:9px; color:#fff; background:linear-gradient(145deg,#53b8cf,#676bb0); font-size:13px; }
.ads-guide-step > header > div { min-width:0; }
.ads-guide-step h3 { margin:1px 0 4px !important; color:#203851; font-size:14px !important; }
.ads-guide-step > header p { margin:0; color:#6b7e92; font-size:12px; line-height:1.65; }
.ads-guide-step ol { margin:14px 0 16px 42px; padding-left:18px; color:#425970; font-size:12px; line-height:1.85; }
.ads-guide-step li + li { margin-top:3px; }
.ads-guide-step strong { color:#263f5a; font-weight:650; }
.ads-guide-step a { color:#2f748e; font-weight:600; text-underline-offset:2px; }
.ads-guide-note { margin:0 0 16px 42px; border-left:3px solid #76bccb; padding:8px 11px; color:#587186; background:#f2f8fa; font-size:11px; line-height:1.7; }
.ads-guide-figures { display:grid; grid-template-columns:minmax(0,1fr); gap:12px; margin-left:42px; }
.ads-guide-figures.two-column { grid-template-columns:repeat(2,minmax(0,1fr)); }
.ads-guide-figures figure { min-width:0; margin:0; border:1px solid #dce5ec; border-radius:11px; overflow:hidden; background:#f5f8fa; }
.ads-guide-figures img { display:block; width:100%; height:auto; aspect-ratio:1269 / 706; object-fit:contain; background:#eef3f6; }
.ads-guide-figures figcaption { border-top:1px solid #e1e8ee; padding:8px 11px 9px; color:#687b8e; background:#fff; font-size:10px; line-height:1.55; }
.ads-guide-footer { display:flex; align-items:center; justify-content:space-between; gap:18px; border-top:1px solid #dce6ed; padding:13px 24px; background:#fff; }
.ads-guide-footer small { color:#6a7e92; font-size:10px; line-height:1.6; }
.ads-guide-footer button { flex:0 0 auto; min-height:36px; border:0; border-radius:9px; padding:0 18px; color:#fff; background:linear-gradient(135deg,#397f9a,#315b86); font-family:inherit; font-size:11px; font-weight:600; line-height:1; cursor:pointer; }
@media(max-width:700px) {
  dialog.ads-guide-dialog { width:calc(100vw - 16px); height:calc(100dvh - 16px); border-radius:14px; }
  .ads-authorization-guide-scroll { padding:16px 14px 22px; }
  .ads-guide-step { padding:14px 12px; }
  .ads-guide-step ol,.ads-guide-note,.ads-guide-figures { margin-left:0; }
  .ads-guide-figures.two-column { grid-template-columns:minmax(0,1fr); }
  .ads-guide-footer { align-items:flex-end; padding:11px 14px; }
  .ads-guide-footer small { max-width:70%; }
}
