.topbar { display: flex; align-items: center; gap: 0.5rem; height: 52px; padding: 0 1rem; background: transparent; flex-shrink: 0; z-index: 100; } /* Logo — matches showcase brand-badge */ .logo { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border: none; border-radius: 8px; background: color-mix(in srgb, var(--t-bg) 97%, var(--t-fg)); box-shadow: var(--shadow-minimal); font-weight: 400; font-size: 12px; color: color-mix(in srgb, var(--t-fg) 80%, var(--t-bg)); text-decoration: none; white-space: nowrap; } .logo:hover { color: var(--t-fg); background: color-mix(in srgb, var(--t-bg) 92%, var(--t-fg)); } .logo svg { width: 14px; height: 14px; flex-shrink: 0; } .logo strong { font-weight: 600; } .logo-sub { color: color-mix(in srgb, var(--t-fg) 50%, var(--t-bg)); font-weight: 300; margin-left: 0.125rem; } .logo-sub::before { content: "·"; margin-right: 0.25rem; } .topbar-sep { width: 1px; height: 20px; background: var(--border); margin: 0 0.25rem; } /* Tabs — shadcn/Craft Agents segmented control style */ .tab-group { display: flex; gap: 1px; background: var(--foreground-5); border-radius: 8px; padding: 3px; } .tab { height: 26px; padding: 0 14px; border: none; border-radius: 6px; background: transparent; color: var(--fg2); font-size: 12px; font-weight: 500; font-family: inherit; cursor: default; white-space: nowrap; user-select: none; } .tab:hover { color: var(--fg); } .tab.active { color: var(--fg); background: var(--t-bg); box-shadow: var(--shadow-minimal); } .spacer { flex: 1; } /* Theme dropdown — custom, not native select */ .theme-dropdown-wrap { position: relative; } .theme-dropdown-btn { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 10px; border: none; border-radius: 8px; background: color-mix(in srgb, var(--t-bg) 97%, var(--t-fg)); box-shadow: var(--shadow-minimal); color: color-mix(in srgb, var(--t-fg) 80%, var(--t-bg)); font-size: 12px; font-weight: 500; font-family: inherit; cursor: default; white-space: nowrap; user-select: none; } .theme-dropdown-btn:hover { color: var(--t-fg); background: color-mix(in srgb, var(--t-bg) 92%, var(--t-fg)); } .theme-dropdown-btn .theme-swatch { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; border: 1px solid color-mix(in srgb, var(--t-fg) 10%, transparent); } .theme-dropdown-btn svg { width: 10px; height: 10px; color: var(--fg4); flex-shrink: 0; transition: transform 0.15s; } .theme-dropdown-btn.open svg { transform: rotate(180deg); } .theme-dropdown-menu { display: none; position: absolute; top: calc(100% + 4px); right: 0; min-width: 180px; background: var(--t-bg); border-radius: 8px; padding: 4px; z-index: 2000; flex-direction: column; box-shadow: var(--shadow-modal); max-height: 400px; overflow-y: auto; } .theme-dropdown-menu.open { display: flex; } .theme-dropdown-item { position: relative; display: flex; align-items: center; gap: 8px; padding: 6px 28px 6px 8px; border: none; border-radius: 4px; background: transparent; color: var(--fg); font-size: 12px; font-weight: 400; font-family: inherit; cursor: default; white-space: nowrap; text-align: left; width: 100%; user-select: none; } .theme-dropdown-item:hover { background: color-mix(in srgb, var(--t-fg) 5%, var(--t-bg)); } .theme-dropdown-item.active::after { content: ""; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 14px; height: 14px; background: currentColor; -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E"); -webkit-mask-size: contain; mask-size: contain; } .theme-dropdown-item .theme-swatch { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; border: 1px solid color-mix(in srgb, var(--t-fg) 10%, transparent); } /* Buttons — match showcase secondary button style */ .btn { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border: none; border-radius: 8px; background: color-mix(in srgb, var(--t-bg) 97%, var(--t-fg)); box-shadow: var(--shadow-minimal); color: color-mix(in srgb, var(--t-fg) 80%, var(--t-bg)); font-size: 12px; font-weight: 500; font-family: inherit; cursor: default; white-space: nowrap; user-select: none; text-decoration: none; transition: color 0.15s, background 0.15s; } .btn:hover { color: var(--t-fg); background: color-mix(in srgb, var(--t-bg) 92%, var(--t-fg)); } .btn svg { width: 14px; height: 14px; flex-shrink: 0; } /* Primary button — inverted fg/bg */ .btn-primary { background: var(--t-fg); color: var(--t-bg); box-shadow: rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.1) 0px 1px 2px -1px; } .btn-primary:hover { opacity: 0.9; background: var(--t-fg); color: var(--t-bg); }