.dispatch-container { --bg: #ffffff; --bg-sub: #f8fafc; --bg-card: #ffffff; --border: #e2e8f0; --border-active: #C8102E; --text: #1e293b; --text-muted: #64748b; --accent: #C8102E; --accent-soft: rgba(200, 16, 46, 0.08); --kitchen: #f59e0b; --kitchen-soft: rgba(245, 158, 11, 0.1); --success: #22c55e; --shadow: 0 4px 12px rgba(0, 0, 0, 0.05); --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.08); } .dispatch-container { width: 100%; height: calc(100vh - var(--appshell-header-height, 56px)); margin: 0; display: flex; flex-direction: column; background: var(--bg); color: var(--text); font-family: var(--font-family-body); overflow: hidden; position: relative; } /* Embedded mode: rendered inside a parent container (e.g. a Dialog), so drop the negative margin and viewport-based sizing that assumes the standalone /dispatch page is wrapped in MainCard's 24px padding. */ .dispatch-container.embedded { width: 100%; height: 100%; margin: 0; flex: 1; min-height: 0; } .dispatch-container * { box-sizing: border-box; } /* Header */ .dispatch-container #hdr { height: 56px; flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; /* Tighter on the LEFT than the right. The logo is the page's anchor and was sitting 24px in; the right side keeps the wider gutter because the controls there need clearance from the window edge. #strat-row below carries the same asymmetry — the two are stacked, so their left edges have to agree or the logo no longer lines up with the batch row under it. */ padding: 0 24px 0 12px; background: var(--bg); border-bottom: 1px solid var(--border); z-index: 1010; /* Nothing in this row may breach the padding above. It is a nowrap flex row — logo/batch group, .hdr-stats, #clock — and none of the three declared a shrink priority, so once the intrinsic content width passed the container the whole row spilled past the 24px gutter and the clock ended up ~8px from the window edge. Width goes missing here without the viewport changing: Dispatch renders inside .dai-page, which body.dai-docked narrows by the assistant dock, so opening MileTruth is what takes the room. `min-width: 0` on a flex CONTAINER does nothing by itself; it is set on the children below. This declares the intent the three rules share. */ gap: 12px; min-width: 0; } .dispatch-container .logo { display: flex; align-items: center; gap: 12px; /* First to give up space, and deliberately so. This group holds the page title, the hub selector and the batch label — the batch label can truncate and still be read, whereas a half-clipped date or a cut-off clock is just broken. A flex item defaults to min-width:auto and refuses to go below its content width, which is what forced the overflow onto the items to its right. */ min-width: 0; overflow: hidden; } /* The badge is sized to the D ITSELF, not to the image file. doormile-mark.png fills only 66.8% of its own canvas (alpha bounding box 170..853 of 1024) — a third of every edge is transparent padding. In the old 44px box that drew a 29px D with 7.3px of empty space on each side, so the 12px gap to "Dispatch" read as ~19px. That whitespace was the "large gap", not the gap property. The image is scaled 150% (1 / 0.668) to cancel the padding exactly, and overflow clips what spills — which is only transparent pixels. Net effect: the D stays the size it already looked, and the gap becomes a true 12px. */ .dispatch-container .logo-badge { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; overflow: hidden; flex: 0 0 auto; } .dispatch-container .logo-badge-img { width: 150%; height: 150%; max-width: none; object-fit: contain; } .dispatch-container .logo-name { font-size: 18px; font-weight: 800; color: var(--text); letter-spacing: -0.02em; } .dispatch-container .logo-name em { color: var(--accent); font-style: normal; opacity: 0.8; } /* Operating-city pill — sits to the RIGHT of the "Dispatch" heading inline. */ /* The location pill is now an interactive dropdown trigger. Wrapped in .logo-city-wrap so the absolute-positioned menu below anchors to it. */ .dispatch-container .logo-city-wrap { position: relative; display: inline-block; } .dispatch-container .logo-city { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px 4px 10px; border-radius: 999px; background: rgba(123, 31, 162, 0.08); border: 1px solid rgba(123, 31, 162, 0.25); color: var(--color-accent); font-size: 11px; font-weight: 700; letter-spacing: 0.02em; line-height: 1; cursor: pointer; font-family: inherit; transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease; } .dispatch-container .logo-city:hover { background: rgba(123, 31, 162, 0.14); border-color: rgba(123, 31, 162, 0.45); } .dispatch-container .logo-city.open { background: rgba(123, 31, 162, 0.18); border-color: rgba(123, 31, 162, 0.55); box-shadow: 0 4px 12px rgba(123, 31, 162, 0.18); } .dispatch-container .logo-city svg { font-size: 13px; flex-shrink: 0; } .dispatch-container .logo-city-caret { font-size: 15px; transition: transform 0.2s ease; } .dispatch-container .logo-city.open .logo-city-caret { transform: rotate(180deg); } .dispatch-container .logo-city-text { max-width: 180px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } /* Dropdown menu — anchored under the trigger, scrolls if there are many hubs. */ .dispatch-container .logo-city-menu { position: absolute; top: calc(100% + 6px); left: 0; min-width: 200px; max-height: 320px; overflow-y: auto; background: #fff; border: 1px solid rgba(123, 31, 162, 0.18); border-radius: 5px; box-shadow: 0 16px 36px rgba(15, 23, 42, 0.16); padding: 6px; z-index: 1000; animation: logo-city-menu-in 0.14s ease-out; } @keyframes logo-city-menu-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } } .dispatch-container .logo-city-menu::-webkit-scrollbar { width: 6px; } .dispatch-container .logo-city-menu::-webkit-scrollbar-thumb { background: rgba(123, 31, 162, 0.3); border-radius: 999px; } .dispatch-container .logo-city-option { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 10px; border: 0; background: transparent; border-radius: 5px; font-size: 12px; font-weight: 600; color: #1e293b; cursor: pointer; font-family: inherit; text-align: left; transition: background 0.12s ease; } .dispatch-container .logo-city-option:hover { background: rgba(123, 31, 162, 0.06); } .dispatch-container .logo-city-option.active { background: rgba(123, 31, 162, 0.1); color: var(--color-accent); } .dispatch-container .logo-city-option-icon { font-size: 14px; color: var(--color-accent); flex-shrink: 0; } .dispatch-container .logo-city-option span:not(.logo-city-option-check) { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .dispatch-container .logo-city-option-check { color: var(--color-accent); font-weight: 800; flex-shrink: 0; } .dispatch-container .hdr-sep { width: 1px; height: 20px; background: var(--border); margin: 0 4px; } .dispatch-container .hdr-meta { font-size: 12px; color: var(--text-muted); font-weight: 500; } .dispatch-container #clock { font-size: 13px; color: var(--text); font-weight: 600; font-family: var(--font-family-code); background: var(--bg-sub); padding: 7px 16px; border-radius: 5px; border: 1px solid var(--border); } /* Header right-cluster — profit/loss + orders pill + date picker, sits to the LEFT of the running clock. Pushed against the clock with margin-left:auto so the .logo on the left stays anchored and the cluster floats right. */ .dispatch-container .hdr-stats { display: flex; align-items: center; gap: 16px; margin-left: auto; margin-right: 16px; min-width: 0; flex-wrap: nowrap; /* Shrinkable, but only after the logo group has given up what it can — and never below the date chip, which is the one control in here an operator has to be able to read and click. The chip declares its own flex-shrink: 0 below; the revenue and orders chips absorb the squeeze first, which is right: they are readouts, not controls. */ flex: 0 1 auto; } /* The date chip is a control, not a readout. It keeps its size while the readouts beside it compress. */ .dispatch-container .hdr-stats .date-chip { flex-shrink: 0; } /* The clock is last in the row and outside .hdr-stats. Fixed size so the gutter above holds: a shrinking clock clips its own digits, which reads as a rendering fault rather than a tight layout. */ .dispatch-container #clock { flex: 0 0 auto; } /* Tabs */ .dispatch-container #strat-row { height: 54px; flex-shrink: 0; display: flex; align-items: center; gap: 8px; /* Same left gutter as #hdr — see the note there. */ padding: 0 24px 0 12px; background: var(--bg); border-bottom: 1px solid var(--border); } .dispatch-container .sbt { padding: 6px 13px; border-radius: 20px; border: 1px solid #e2e8f0; background: var(--bg); color: var(--text-muted); font-size: 12px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; line-height: 1; transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); font-family: inherit; } .dispatch-container .sbt:hover { background: var(--bg-sub); color: var(--text); border-color: #cbd5e1; } .dispatch-container .sbt.active { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 2px 8px rgba(200, 16, 46, 0.28); } /* SVG icon slot inside each tab button — fixed square, color inherits from button so active-state white propagates without per-tab overrides. */ .dispatch-container .sbt .sbt-icon { display: inline-flex; align-items: center; justify-content: center; width: 15px; height: 15px; font-size: 15px; line-height: 1; flex-shrink: 0; color: inherit; } .dispatch-container .sbt .sbt-icon svg { width: 1em; height: 1em; display: block; /* react-icons SVGs fill with currentColor by default — this just ensures consistent baseline alignment with the label next to them. */ vertical-align: middle; } /* Strat-row quick stats — total orders + profit/loss chips next to the view-mode buttons */ .dispatch-container .strat-stats { display: inline-flex; align-items: center; gap: 8px; margin-left: 8px; padding-left: 12px; border-left: 1px solid var(--border); height: 32px; } /* Right-floating variant — used for the profit/loss chip when there's no live-controls block to nest inside. */ .dispatch-container .strat-stats.strat-stats-right { margin-left: auto; padding-left: 0; border-left: none; } .dispatch-container .strat-stat { display: inline-flex; align-items: center; gap: 8px; padding: 7px 15px; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 1; border: 1px solid var(--border); background: var(--bg); color: var(--text); transition: all 0.15s ease; white-space: nowrap; } .dispatch-container .strat-stat-icon { font-size: 13px; line-height: 1; } .dispatch-container .strat-stat-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); } .dispatch-container .strat-stat-value { font-size: 13px; font-weight: 800; } .dispatch-container .strat-stat-orders { background: var(--accent-soft); border-color: rgba(58, 58, 58, 0.25); } .dispatch-container .strat-stat-orders .strat-stat-value { color: var(--accent); } .dispatch-container .strat-stat-profit { background: rgba(34, 197, 94, 0.1); border-color: rgba(34, 197, 94, 0.3); } .dispatch-container .strat-stat-profit .strat-stat-value, .dispatch-container .strat-stat-profit .strat-stat-label { color: var(--success); } .dispatch-container .strat-stat-loss { background: rgba(239, 68, 68, 0.1); border-color: rgba(239, 68, 68, 0.35); } .dispatch-container .strat-stat-loss .strat-stat-value, .dispatch-container .strat-stat-loss .strat-stat-label { color: #dc2626; } /* Live data controls (date picker + load status) */ .dispatch-container .live-controls { margin-left: auto; display: flex; align-items: center; gap: 12px; } .dispatch-container .live-status { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--text-muted); padding: 7px 15px; border-radius: 999px; background: var(--bg-sub); border: 1px solid var(--border); } .dispatch-container .live-status-ready { color: var(--success); } .dispatch-container .live-status-error { color: #ef4444; } .dispatch-container .live-status-sub { color: var(--text-muted); font-weight: 500; font-size: 11px; opacity: 0.85; } .dispatch-container .live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: live-pulse 1.2s ease-in-out infinite; } .dispatch-container .live-dot.ready { background: var(--success); animation: none; } .dispatch-container .live-dot.error { background: #ef4444; animation: none; } @keyframes live-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.85); } } /* ── Date picker chip ───────────────────────────────────────────── Three-part pill: prev-day arrow ◂ | formatted-date card | ▸ next-day arrow. The center card overlays a transparent native so clicking anywhere on the chip opens the OS date dialog while still showing a glanceable formatted value (`Mon, May 25, 2026`). A small "Today" badge appears when the picked date matches today, and the next-day arrow disables itself there. Design language: matches the Compare-button family — soft white card, indigo border + halo on hover/focus, subtle lift on interaction. ──────────────────────────────────────────────────────────────── */ /* Date picker chip - compact (32px), single-row, responsive */ .dispatch-container .date-chip { position: relative; display: inline-flex; align-items: center; gap: 0; height: 32px; max-height: 32px; background: #ffffff; border: 1px solid rgba(15, 23, 42, 0.12); border-radius: 8px; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04); transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease; flex-shrink: 0; box-sizing: border-box; } .dispatch-container .date-chip.is-open { border-color: #000000; box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.15), 0 8px 20px rgba(0, 0, 0, 0.14); } .dispatch-container .date-chip:hover { border-color: rgba(0, 0, 0, 0.35); box-shadow: 0 2px 5px rgba(15, 23, 42, 0.06); } .dispatch-container .date-chip:focus-within { border-color: #000000; box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.15); } .dispatch-container .date-chip-main { appearance: none; position: relative; display: inline-flex; align-items: center; gap: 6px; height: 100%; padding: 0 8px; cursor: pointer; min-width: 0; background: transparent; border: 0; color: inherit; font: inherit; text-align: left; box-sizing: border-box; } .dispatch-container .date-chip-main:focus { outline: none; } .dispatch-container .date-chip-main:hover { background: rgba(0, 0, 0, 0.03); } .dispatch-container .date-chip-icon { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 4px; background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%); color: #334155; font-size: 12px; flex-shrink: 0; } .dispatch-container .date-chip-text { display: flex; flex-direction: row; align-items: center; line-height: 1; gap: 5px; min-width: 0; } .dispatch-container .date-chip-label { display: none; } .dispatch-container .date-chip-today-pill { display: inline-flex; align-items: center; padding: 1px 5px; border-radius: 999px; background: #0f172a; color: #ffffff; font-size: 8.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; } .dispatch-container .date-chip-value { font-size: 12px; font-weight: 600; color: #0f172a; letter-spacing: 0.01em; white-space: nowrap; } .dispatch-container .date-chip-full { display: inline; } .dispatch-container .date-chip-short { display: none; } .dispatch-container .date-chip-chevron { display: inline-flex; align-items: center; justify-content: center; color: #94a3b8; font-size: 15px; margin-left: 2px; transition: color 0.18s ease, transform 0.18s ease; } .dispatch-container .date-chip-main:hover .date-chip-chevron { color: #262626; } .dispatch-container .date-chip-chevron.is-open { color: #262626; transform: rotate(180deg); } /* ── Calendar popover ──────────────────────────────────────────── Floats below the chip, right-aligned so it doesn't fly off the right edge of the toolbar. Glassy white card with a tip pointing up at the chip; same shadow language as the order-popup. */ .dispatch-container .date-cal-popover { position: absolute; top: calc(100% + 6px); right: 0; z-index: 1000; width: 304px; padding: 14px 14px 10px; background: #ffffff; border: 1px solid rgba(15, 23, 42, 0.08); border-radius: 5px; box-shadow: 0 18px 44px rgba(15, 23, 42, 0.18), 0 4px 12px rgba(15, 23, 42, 0.06); animation: date-cal-in 0.18s cubic-bezier(0.4, 0, 0.2, 1); } /* Tiny tip pointing up at the chip — three layered triangles for a 1px hairline border that aligns with the popover's border. */ .dispatch-container .date-cal-popover::before, .dispatch-container .date-cal-popover::after { content: ''; position: absolute; bottom: 100%; right: 28px; width: 0; height: 0; border-left: 8px solid transparent; border-right: 8px solid transparent; } .dispatch-container .date-cal-popover::before { border-bottom: 8px solid rgba(15, 23, 42, 0.08); } .dispatch-container .date-cal-popover::after { border-bottom: 8px solid #ffffff; margin-bottom: -1px; } @keyframes date-cal-in { from { opacity: 0; transform: translateY(-6px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } } /* Month header ─────────────────────────────────────────────────── */ .dispatch-container .date-cal-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; } .dispatch-container .date-cal-title { flex: 1; text-align: center; font-size: 14px; font-weight: 800; color: #0f172a; letter-spacing: 0.01em; } .dispatch-container .date-cal-nav { appearance: none; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border: 0; border-radius: 5px; background: rgba(248, 250, 252, 0.9); color: #475569; font-size: 18px; cursor: pointer; transition: background 0.15s ease, color 0.15s ease; } .dispatch-container .date-cal-nav:hover:not(:disabled) { background: rgba(0, 0, 0, 0.1); color: #262626; } .dispatch-container .date-cal-nav:disabled { opacity: 0.35; cursor: not-allowed; } /* Weekday row + day grid ───────────────────────────────────────── */ .dispatch-container .date-cal-weekdays, .dispatch-container .date-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; } .dispatch-container .date-cal-weekdays { margin-bottom: 4px; } .dispatch-container .date-cal-weekday { text-align: center; font-size: 10px; font-weight: 800; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.06em; padding: 4px 0; } .dispatch-container .date-cal-day { appearance: none; display: inline-flex; align-items: center; justify-content: center; height: 36px; border: 0; border-radius: 5px; background: transparent; color: #0f172a; font-size: 13px; font-weight: 600; cursor: pointer; transition: background 0.12s ease, color 0.12s ease, box-shadow 0.18s ease, transform 0.12s ease; } .dispatch-container .date-cal-day:hover:not(:disabled):not(.is-selected) { background: rgba(0, 0, 0, 0.1); color: #262626; } /* "Other-month" days fade so the visible month reads as the active region but the operator still gets visual continuity at week edges. */ .dispatch-container .date-cal-day.is-other-month { color: #cbd5e1; font-weight: 500; } /* Today gets a subtle indigo ring so it's always findable, even when the operator has navigated months away from it. */ .dispatch-container .date-cal-day.is-today { box-shadow: inset 0 0 0 1.5px rgba(0, 0, 0, 0.55); color: #262626; font-weight: 800; } /* Selected = the date currently in selectedDate. Filled indigo gradient (same as the Today pill / Compare button family). */ .dispatch-container .date-cal-day.is-selected { background: linear-gradient(135deg, #000000, #3A3A3A); color: #ffffff; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35); font-weight: 800; } .dispatch-container .date-cal-day.is-selected.is-today { /* Selected + today: drop the inset ring so the fill reads cleanly. */ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35); } .dispatch-container .date-cal-day.is-selected:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45); } .dispatch-container .date-cal-day.is-disabled { color: #e2e8f0; cursor: not-allowed; pointer-events: none; } .dispatch-container .date-cal-day:focus-visible { outline: 2px solid rgba(0, 0, 0, 0.5); outline-offset: 1px; } /* Quick presets ────────────────────────────────────────────────── */ .dispatch-container .date-cal-presets { display: flex; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(15, 23, 42, 0.06); } .dispatch-container .date-cal-preset { appearance: none; flex: 1; padding: 7px 10px; border: 1px solid rgba(15, 23, 42, 0.08); border-radius: 5px; background: #ffffff; color: #475569; font-size: 11px; font-weight: 700; letter-spacing: 0.02em; cursor: pointer; transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.12s ease; } .dispatch-container .date-cal-preset:hover { background: rgba(0, 0, 0, 0.08); border-color: rgba(0, 0, 0, 0.35); color: #262626; transform: translateY(-1px); } .dispatch-container .date-cal-preset:focus-visible { outline: 2px solid rgba(0, 0, 0, 0.5); outline-offset: 1px; } /* Prev / next day arrows — flank the main card. Same look as the chevron buttons used elsewhere in the toolbar. */ .dispatch-container .date-chip-nav { appearance: none; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 100%; box-sizing: border-box; border: 0; border-left: 1px solid rgba(15, 23, 42, 0.06); border-right: 1px solid rgba(15, 23, 42, 0.06); background: rgba(248, 250, 252, 0.7); color: #64748b; font-size: 18px; cursor: pointer; transition: background 0.15s ease, color 0.15s ease; } .dispatch-container .date-chip-nav:first-child { border-left: 0; border-right: 1px solid rgba(15, 23, 42, 0.06); /* Mirrors the chip's border-radius - 1px so the nav button rounds with the outer card now that the chip itself isn't clipping with overflow:hidden (popover anchors to it and can't be clipped). */ border-radius: 5px 0 0 5px; } .dispatch-container .date-chip-nav:last-child { border-right: 0; border-left: 1px solid rgba(15, 23, 42, 0.06); border-radius: 0 5px 5px 0; } .dispatch-container .date-chip-nav:hover:not(:disabled) { background: rgba(0, 0, 0, 0.08); color: #262626; } .dispatch-container .date-chip-nav:disabled { opacity: 0.4; cursor: not-allowed; } /* Focus ring on the prev/next arrows for keyboard users — the focus-within on the parent already handles the main card. */ .dispatch-container .date-chip-nav:focus-visible { outline: 2px solid rgba(0, 0, 0, 0.5); outline-offset: -2px; } /* ── Batch selector (live /dispatch only) ─────────────────────── */ .dispatch-container #batch-row { display: flex; align-items: center; gap: 12px; padding: 12px 24px; background: var(--bg-sub); border-bottom: 1px solid var(--border); flex-shrink: 0; /* Prevent the row itself from squishing when the chip list overflows. */ min-width: 0; } /* Horizontal scroller for the slot chips. Keeps the "Slot" label fixed on the left and lets the chip list scroll when it overflows the viewport. */ .dispatch-container .batch-scroll { display: flex; align-items: center; gap: 10px; overflow-x: auto; overflow-y: hidden; flex: 1; min-width: 0; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: rgba(100, 116, 139, 0.4) transparent; padding-bottom: 2px; } .dispatch-container .batch-scroll::-webkit-scrollbar { height: 6px; } .dispatch-container .batch-scroll::-webkit-scrollbar-track { background: transparent; } .dispatch-container .batch-scroll::-webkit-scrollbar-thumb { background: rgba(100, 116, 139, 0.3); border-radius: 999px; } .dispatch-container .batch-scroll::-webkit-scrollbar-thumb:hover { background: rgba(100, 116, 139, 0.55); } .dispatch-container .batch-label { font-size: 11px; font-weight: 800; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-right: 4px; flex-shrink: 0; } .dispatch-container .batch-btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; /* Matches an Astryx