/*
! tailwindcss v3.4.3 | MIT License | https://tailwindcss.com
*/

/*
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
*/

*,
::before,
::after {
  box-sizing: border-box;
  /* 1 */
  border-width: 0;
  /* 2 */
  border-style: solid;
  /* 2 */
  border-color: #e5e7eb;
  /* 2 */
}

::before,
::after {
  --tw-content: '';
}

/*
1. Use a consistent sensible line-height in all browsers.
2. Prevent adjustments of font size after orientation changes in iOS.
3. Use a more readable tab size.
4. Use the user's configured `sans` font-family by default.
5. Use the user's configured `sans` font-feature-settings by default.
6. Use the user's configured `sans` font-variation-settings by default.
7. Disable tap highlights on iOS
*/

html,
:host {
  line-height: 1.5;
  /* 1 */
  -webkit-text-size-adjust: 100%;
  /* 2 */
  -moz-tab-size: 4;
  /* 3 */
  -o-tab-size: 4;
     tab-size: 4;
  /* 3 */
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  /* 4 */
  font-feature-settings: normal;
  /* 5 */
  font-variation-settings: normal;
  /* 6 */
  -webkit-tap-highlight-color: transparent;
  /* 7 */
}

/*
1. Remove the margin in all browsers.
2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.
*/

body {
  margin: 0;
  /* 1 */
  line-height: inherit;
  /* 2 */
}

/*
1. Add the correct height in Firefox.
2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
3. Ensure horizontal rules are visible by default.
*/

hr {
  height: 0;
  /* 1 */
  color: inherit;
  /* 2 */
  border-top-width: 1px;
  /* 3 */
}

/*
Add the correct text decoration in Chrome, Edge, and Safari.
*/

abbr:where([title]) {
  -webkit-text-decoration: underline dotted;
          text-decoration: underline dotted;
}

/*
Remove the default font size and weight for headings.
*/

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

/*
Reset links to optimize for opt-in styling instead of opt-out.
*/

a {
  color: inherit;
  text-decoration: inherit;
}

/*
Add the correct font weight in Edge and Safari.
*/

b,
strong {
  font-weight: bolder;
}

/*
1. Use the user's configured `mono` font-family by default.
2. Use the user's configured `mono` font-feature-settings by default.
3. Use the user's configured `mono` font-variation-settings by default.
4. Correct the odd `em` font sizing in all browsers.
*/

code,
kbd,
samp,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  /* 1 */
  font-feature-settings: normal;
  /* 2 */
  font-variation-settings: normal;
  /* 3 */
  font-size: 1em;
  /* 4 */
}

/*
Add the correct font size in all browsers.
*/

small {
  font-size: 80%;
}

/*
Prevent `sub` and `sup` elements from affecting the line height in all browsers.
*/

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/*
1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
3. Remove gaps between table borders by default.
*/

table {
  text-indent: 0;
  /* 1 */
  border-color: inherit;
  /* 2 */
  border-collapse: collapse;
  /* 3 */
}

/*
1. Change the font styles in all browsers.
2. Remove the margin in Firefox and Safari.
3. Remove default padding in all browsers.
*/

button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  /* 1 */
  font-feature-settings: inherit;
  /* 1 */
  font-variation-settings: inherit;
  /* 1 */
  font-size: 100%;
  /* 1 */
  font-weight: inherit;
  /* 1 */
  line-height: inherit;
  /* 1 */
  letter-spacing: inherit;
  /* 1 */
  color: inherit;
  /* 1 */
  margin: 0;
  /* 2 */
  padding: 0;
  /* 3 */
}

/*
Remove the inheritance of text transform in Edge and Firefox.
*/

button,
select {
  text-transform: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Remove default button styles.
*/

button,
input:where([type='button']),
input:where([type='reset']),
input:where([type='submit']) {
  -webkit-appearance: button;
  /* 1 */
  background-color: transparent;
  /* 2 */
  background-image: none;
  /* 2 */
}

/*
Use the modern Firefox focus style for all focusable elements.
*/

:-moz-focusring {
  outline: auto;
}

/*
Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
*/

:-moz-ui-invalid {
  box-shadow: none;
}

/*
Add the correct vertical alignment in Chrome and Firefox.
*/

progress {
  vertical-align: baseline;
}

/*
Correct the cursor style of increment and decrement buttons in Safari.
*/

::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
  height: auto;
}

/*
1. Correct the odd appearance in Chrome and Safari.
2. Correct the outline style in Safari.
*/

[type='search'] {
  -webkit-appearance: textfield;
  /* 1 */
  outline-offset: -2px;
  /* 2 */
}

/*
Remove the inner padding in Chrome and Safari on macOS.
*/

::-webkit-search-decoration {
  -webkit-appearance: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Change font properties to `inherit` in Safari.
*/

::-webkit-file-upload-button {
  -webkit-appearance: button;
  /* 1 */
  font: inherit;
  /* 2 */
}

/*
Add the correct display in Chrome and Safari.
*/

summary {
  display: list-item;
}

/*
Removes the default spacing and border for appropriate elements.
*/

blockquote,
dl,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
figure,
p,
pre {
  margin: 0;
}

fieldset {
  margin: 0;
  padding: 0;
}

legend {
  padding: 0;
}

ol,
ul,
menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

/*
Reset default styling for dialogs.
*/

dialog {
  padding: 0;
}

/*
Prevent resizing textareas horizontally by default.
*/

textarea {
  resize: vertical;
}

/*
1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
2. Set the default placeholder color to the user's configured gray 400 color.
*/

input::-moz-placeholder, textarea::-moz-placeholder {
  opacity: 1;
  /* 1 */
  color: #9ca3af;
  /* 2 */
}

input::placeholder,
textarea::placeholder {
  opacity: 1;
  /* 1 */
  color: #9ca3af;
  /* 2 */
}

/*
Set the default cursor for buttons.
*/

button,
[role="button"] {
  cursor: pointer;
}

/*
Make sure disabled buttons don't get the pointer cursor.
*/

:disabled {
  cursor: default;
}

/*
1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
   This can trigger a poorly considered lint error in some tools but is included by design.
*/

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block;
  /* 1 */
  vertical-align: middle;
  /* 2 */
}

/*
Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
*/

img,
video {
  max-width: 100%;
  height: auto;
}

/* Make elements with the HTML hidden attribute stay hidden by default */

[hidden] {
  display: none;
}

[type='text'],[type='email'],[type='url'],[type='password'],[type='number'],[type='date'],[type='datetime-local'],[type='month'],[type='search'],[type='tel'],[type='time'],[type='week'],[multiple],textarea,select {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  background-color: #fff;
  border-color: #6b7280;
  border-width: 1px;
  border-radius: 0px;
  padding-top: 0.5rem;
  padding-right: 0.75rem;
  padding-bottom: 0.5rem;
  padding-left: 0.75rem;
  font-size: 1rem;
  line-height: 1.5rem;
  --tw-shadow: 0 0 #0000;
}

[type='text']:focus, [type='email']:focus, [type='url']:focus, [type='password']:focus, [type='number']:focus, [type='date']:focus, [type='datetime-local']:focus, [type='month']:focus, [type='search']:focus, [type='tel']:focus, [type='time']:focus, [type='week']:focus, [multiple]:focus, textarea:focus, select:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
  --tw-ring-inset: var(--tw-empty,/*!*/ /*!*/);
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: #2563eb;
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
  border-color: #2563eb;
}

input::-moz-placeholder, textarea::-moz-placeholder {
  color: #6b7280;
  opacity: 1;
}

input::placeholder,textarea::placeholder {
  color: #6b7280;
  opacity: 1;
}

::-webkit-datetime-edit-fields-wrapper {
  padding: 0;
}

::-webkit-date-and-time-value {
  min-height: 1.5em;
}

::-webkit-datetime-edit,::-webkit-datetime-edit-year-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-meridiem-field {
  padding-top: 0;
  padding-bottom: 0;
}

select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
  -webkit-print-color-adjust: exact;
          print-color-adjust: exact;
}

[multiple] {
  background-image: initial;
  background-position: initial;
  background-repeat: unset;
  background-size: initial;
  padding-right: 0.75rem;
  -webkit-print-color-adjust: unset;
          print-color-adjust: unset;
}

[type='checkbox'],[type='radio'] {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  padding: 0;
  -webkit-print-color-adjust: exact;
          print-color-adjust: exact;
  display: inline-block;
  vertical-align: middle;
  background-origin: border-box;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  flex-shrink: 0;
  height: 1rem;
  width: 1rem;
  color: #2563eb;
  background-color: #fff;
  border-color: #6b7280;
  border-width: 1px;
  --tw-shadow: 0 0 #0000;
}

[type='checkbox'] {
  border-radius: 0px;
}

[type='radio'] {
  border-radius: 100%;
}

[type='checkbox']:focus,[type='radio']:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
  --tw-ring-inset: var(--tw-empty,/*!*/ /*!*/);
  --tw-ring-offset-width: 2px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: #2563eb;
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
}

[type='checkbox']:checked,[type='radio']:checked {
  border-color: transparent;
  background-color: currentColor;
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
}

[type='checkbox']:checked {
  background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e");
}

[type='radio']:checked {
  background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e");
}

[type='checkbox']:checked:hover,[type='checkbox']:checked:focus,[type='radio']:checked:hover,[type='radio']:checked:focus {
  border-color: transparent;
  background-color: currentColor;
}

[type='checkbox']:indeterminate {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3e%3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3e%3c/svg%3e");
  border-color: transparent;
  background-color: currentColor;
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
}

[type='checkbox']:indeterminate:hover,[type='checkbox']:indeterminate:focus {
  border-color: transparent;
  background-color: currentColor;
}

[type='file'] {
  background: unset;
  border-color: inherit;
  border-width: 0;
  border-radius: 0;
  padding: 0;
  font-size: unset;
  line-height: inherit;
}

[type='file']:focus {
  outline: 1px solid ButtonText;
  outline: 1px auto -webkit-focus-ring-color;
}

*, ::before, ::after {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}

::backdrop {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}

.container {
  width: 100%;
}

@media (min-width: 640px) {
  .container {
    max-width: 640px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 768px;
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: 1024px;
  }
}

@media (min-width: 1280px) {
  .container {
    max-width: 1280px;
  }
}

@media (min-width: 1536px) {
  .container {
    max-width: 1536px;
  }
}

.hero-arrow-left-solid {
  --hero-arrow-left-solid: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true" data-slot="icon">  <path fill-rule="evenodd" d="M11.03 3.97a.75.75 0 0 1 0 1.06l-6.22 6.22H21a.75.75 0 0 1 0 1.5H4.81l6.22 6.22a.75.75 0 1 1-1.06 1.06l-7.5-7.5a.75.75 0 0 1 0-1.06l7.5-7.5a.75.75 0 0 1 1.06 0Z" clip-rule="evenodd"/></svg>');
  -webkit-mask: var(--hero-arrow-left-solid);
  mask: var(--hero-arrow-left-solid);
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  background-color: currentColor;
  vertical-align: middle;
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
}

.hero-arrow-path {
  --hero-arrow-path: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" aria-hidden="true" data-slot="icon">  <path stroke-linecap="round" stroke-linejoin="round" d="M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0 3.181 3.183a8.25 8.25 0 0 0 13.803-3.7M4.031 9.865a8.25 8.25 0 0 1 13.803-3.7l3.181 3.182m0-4.991v4.99"/></svg>');
  -webkit-mask: var(--hero-arrow-path);
  mask: var(--hero-arrow-path);
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  background-color: currentColor;
  vertical-align: middle;
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
}

.hero-exclamation-circle-mini {
  --hero-exclamation-circle-mini: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true" data-slot="icon">  <path fill-rule="evenodd" d="M18 10a8 8 0 1 1-16 0 8 8 0 0 1 16 0Zm-8-5a.75.75 0 0 1 .75.75v4.5a.75.75 0 0 1-1.5 0v-4.5A.75.75 0 0 1 10 5Zm0 10a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z" clip-rule="evenodd"/></svg>');
  -webkit-mask: var(--hero-exclamation-circle-mini);
  mask: var(--hero-exclamation-circle-mini);
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  background-color: currentColor;
  vertical-align: middle;
  display: inline-block;
  width: 1.25rem;
  height: 1.25rem;
}

.hero-information-circle-mini {
  --hero-information-circle-mini: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true" data-slot="icon">  <path fill-rule="evenodd" d="M18 10a8 8 0 1 1-16 0 8 8 0 0 1 16 0Zm-7-4a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM9 9a.75.75 0 0 0 0 1.5h.253a.25.25 0 0 1 .244.304l-.459 2.066A1.75 1.75 0 0 0 10.747 15H11a.75.75 0 0 0 0-1.5h-.253a.25.25 0 0 1-.244-.304l.459-2.066A1.75 1.75 0 0 0 9.253 9H9Z" clip-rule="evenodd"/></svg>');
  -webkit-mask: var(--hero-information-circle-mini);
  mask: var(--hero-information-circle-mini);
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  background-color: currentColor;
  vertical-align: middle;
  display: inline-block;
  width: 1.25rem;
  height: 1.25rem;
}

.hero-x-mark-solid {
  --hero-x-mark-solid: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true" data-slot="icon">  <path fill-rule="evenodd" d="M5.47 5.47a.75.75 0 0 1 1.06 0L12 10.94l5.47-5.47a.75.75 0 1 1 1.06 1.06L13.06 12l5.47 5.47a.75.75 0 1 1-1.06 1.06L12 13.06l-5.47 5.47a.75.75 0 0 1-1.06-1.06L10.94 12 5.47 6.53a.75.75 0 0 1 0-1.06Z" clip-rule="evenodd"/></svg>');
  -webkit-mask: var(--hero-x-mark-solid);
  mask: var(--hero-x-mark-solid);
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  background-color: currentColor;
  vertical-align: middle;
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.visible {
  visibility: visible;
}

.static {
  position: static;
}

.fixed {
  position: fixed;
}

.absolute {
  position: absolute;
}

.relative {
  position: relative;
}

.inset-0 {
  inset: 0px;
}

.-inset-y-px {
  top: -1px;
  bottom: -1px;
}

.-left-4 {
  left: -1rem;
}

.-right-4 {
  right: -1rem;
}

.left-0 {
  left: 0px;
}

.right-0 {
  right: 0px;
}

.right-1 {
  right: 0.25rem;
}

.right-2 {
  right: 0.5rem;
}

.right-5 {
  right: 1.25rem;
}

.top-1 {
  top: 0.25rem;
}

.top-10 {
  top: 2.5rem;
}

.top-2 {
  top: 0.5rem;
}

.top-6 {
  top: 1.5rem;
}

.z-50 {
  z-index: 50;
}

.-m-3 {
  margin: -0.75rem;
}

.-my-4 {
  margin-top: -1rem;
  margin-bottom: -1rem;
}

.ml-1 {
  margin-left: 0.25rem;
}

.ml-2 {
  margin-left: 0.5rem;
}

.ml-4 {
  margin-left: 1rem;
}

.mr-2 {
  margin-right: 0.5rem;
}

.mt-0 {
  margin-top: 0px;
}

.mt-0\.5 {
  margin-top: 0.125rem;
}

.mt-10 {
  margin-top: 2.5rem;
}

.mt-11 {
  margin-top: 2.75rem;
}

.mt-14 {
  margin-top: 3.5rem;
}

.mt-16 {
  margin-top: 4rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-3 {
  margin-top: 0.75rem;
}

.block {
  display: block;
}

.inline {
  display: inline;
}

.flex {
  display: flex;
}

.table {
  display: table;
}

.grid {
  display: grid;
}

.contents {
  display: contents;
}

.hidden {
  display: none;
}

.h-3 {
  height: 0.75rem;
}

.h-4 {
  height: 1rem;
}

.h-5 {
  height: 1.25rem;
}

.min-h-\[6rem\] {
  min-height: 6rem;
}

.min-h-full {
  min-height: 100%;
}

.w-1\/4 {
  width: 25%;
}

.w-14 {
  width: 3.5rem;
}

.w-3 {
  width: 0.75rem;
}

.w-4 {
  width: 1rem;
}

.w-5 {
  width: 1.25rem;
}

.w-80 {
  width: 20rem;
}

.w-\[40rem\] {
  width: 40rem;
}

.w-full {
  width: 100%;
}

.max-w-3xl {
  max-width: 48rem;
}

.flex-none {
  flex: none;
}

.translate-y-0 {
  --tw-translate-y: 0px;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.translate-y-4 {
  --tw-translate-y: 1rem;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.transform {
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.animate-spin {
  animation: spin 1s linear infinite;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-1 {
  gap: 0.25rem;
}

.gap-1\.5 {
  gap: 0.375rem;
}

.gap-3 {
  gap: 0.75rem;
}

.gap-4 {
  gap: 1rem;
}

.gap-6 {
  gap: 1.5rem;
}

.space-y-8 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(2rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(2rem * var(--tw-space-y-reverse));
}

.divide-y > :not([hidden]) ~ :not([hidden]) {
  --tw-divide-y-reverse: 0;
  border-top-width: calc(1px * calc(1 - var(--tw-divide-y-reverse)));
  border-bottom-width: calc(1px * var(--tw-divide-y-reverse));
}

.divide-zinc-100 > :not([hidden]) ~ :not([hidden]) {
  --tw-divide-opacity: 1;
  border-color: rgb(244 244 245 / var(--tw-divide-opacity));
}

.overflow-hidden {
  overflow: hidden;
}

.overflow-y-auto {
  overflow-y: auto;
}

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.whitespace-nowrap {
  white-space: nowrap;
}

.rounded {
  border-radius: 0.25rem;
}

.rounded-2xl {
  border-radius: 1rem;
}

.rounded-lg {
  border-radius: 0.5rem;
}

.rounded-md {
  border-radius: 0.375rem;
}

.border {
  border-width: 1px;
}

.border-t {
  border-top-width: 1px;
}

.border-gray-300 {
  --tw-border-opacity: 1;
  border-color: rgb(209 213 219 / var(--tw-border-opacity));
}

.border-rose-400 {
  --tw-border-opacity: 1;
  border-color: rgb(251 113 133 / var(--tw-border-opacity));
}

.border-zinc-200 {
  --tw-border-opacity: 1;
  border-color: rgb(228 228 231 / var(--tw-border-opacity));
}

.border-zinc-300 {
  --tw-border-opacity: 1;
  border-color: rgb(212 212 216 / var(--tw-border-opacity));
}

.bg-emerald-50 {
  --tw-bg-opacity: 1;
  background-color: rgb(236 253 245 / var(--tw-bg-opacity));
}

.bg-rose-50 {
  --tw-bg-opacity: 1;
  background-color: rgb(255 241 242 / var(--tw-bg-opacity));
}

.bg-white {
  --tw-bg-opacity: 1;
  background-color: rgb(255 255 255 / var(--tw-bg-opacity));
}

.bg-zinc-50\/90 {
  background-color: rgb(250 250 250 / 0.9);
}

.bg-zinc-900 {
  --tw-bg-opacity: 1;
  background-color: rgb(24 24 27 / var(--tw-bg-opacity));
}

.fill-cyan-900 {
  fill: #164e63;
}

.fill-rose-900 {
  fill: #881337;
}

.p-0 {
  padding: 0px;
}

.p-14 {
  padding: 3.5rem;
}

.p-2 {
  padding: 0.5rem;
}

.p-3 {
  padding: 0.75rem;
}

.p-4 {
  padding: 1rem;
}

.px-3 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.pb-4 {
  padding-bottom: 1rem;
}

.pr-6 {
  padding-right: 1.5rem;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.font-medium {
  font-weight: 500;
}

.font-normal {
  font-weight: 400;
}

.font-semibold {
  font-weight: 600;
}

.uppercase {
  text-transform: uppercase;
}

.capitalize {
  text-transform: capitalize;
}

.leading-5 {
  line-height: 1.25rem;
}

.leading-6 {
  line-height: 1.5rem;
}

.leading-8 {
  line-height: 2rem;
}

.text-emerald-800 {
  --tw-text-opacity: 1;
  color: rgb(6 95 70 / var(--tw-text-opacity));
}

.text-rose-600 {
  --tw-text-opacity: 1;
  color: rgb(225 29 72 / var(--tw-text-opacity));
}

.text-rose-900 {
  --tw-text-opacity: 1;
  color: rgb(136 19 55 / var(--tw-text-opacity));
}

.text-white {
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity));
}

.text-zinc-500 {
  --tw-text-opacity: 1;
  color: rgb(113 113 122 / var(--tw-text-opacity));
}

.text-zinc-600 {
  --tw-text-opacity: 1;
  color: rgb(82 82 91 / var(--tw-text-opacity));
}

.text-zinc-700 {
  --tw-text-opacity: 1;
  color: rgb(63 63 70 / var(--tw-text-opacity));
}

.text-zinc-800 {
  --tw-text-opacity: 1;
  color: rgb(39 39 42 / var(--tw-text-opacity));
}

.text-zinc-900 {
  --tw-text-opacity: 1;
  color: rgb(24 24 27 / var(--tw-text-opacity));
}

.opacity-0 {
  opacity: 0;
}

.opacity-100 {
  opacity: 1;
}

.opacity-20 {
  opacity: 0.2;
}

.opacity-40 {
  opacity: 0.4;
}

.shadow-lg {
  --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.shadow-md {
  --tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.shadow-sm {
  --tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.shadow-zinc-700\/10 {
  --tw-shadow-color: rgb(63 63 70 / 0.1);
  --tw-shadow: var(--tw-shadow-colored);
}

.outline {
  outline-style: solid;
}

.ring-1 {
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}

.ring-emerald-500 {
  --tw-ring-opacity: 1;
  --tw-ring-color: rgb(16 185 129 / var(--tw-ring-opacity));
}

.ring-rose-500 {
  --tw-ring-opacity: 1;
  --tw-ring-color: rgb(244 63 94 / var(--tw-ring-opacity));
}

.ring-zinc-700\/10 {
  --tw-ring-color: rgb(63 63 70 / 0.1);
}

.filter {
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}

.transition {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter;
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-opacity {
  transition-property: opacity;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.duration-200 {
  transition-duration: 200ms;
}

.duration-300 {
  transition-duration: 300ms;
}

.ease-in {
  transition-timing-function: cubic-bezier(0.4, 0, 1, 1);
}

.ease-out {
  transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
}

.\[scrollbar-gutter\:stable\] {
  scrollbar-gutter: stable;
}

/* ============ FinDash tokens + base ============ */

:root {
  --paper: #F5F1E8;
  --paper-2: #EFEADC;
  --paper-3: #E6DFCD;
  --rule: #D9D1BC;
  --rule-soft: #E4DDC9;
  --ink: #1B1713;
  --ink-2: #332C24;
  --ink-3: #5C5143;
  --ink-4: #8A7E6B;
  --ink-5: #B6AB97;
  --amber: #B8691F;
  --amber-soft: #D9923F;
  --amber-wash: #F2E3CE;
  --up: #5E7A5A;
  --up-soft: #C9D3BE;
  --down: #A85437;
  --down-soft: #E4C7B6;
  /* Heatmap-specific tokens — punchier than the muted text up/down so
     positive vs. negative drift is unambiguous when blended with --bg-2. */
  --heat-up: #2E8B57;
  --heat-dn: #C13A28;
  --teal: #4A7375;
  --plum: #7A4A5E;
  --bg: var(--paper);
  --bg-2: var(--paper-2);
  --bg-3: var(--paper-3);
  --fg: var(--ink);
  --fg-2: var(--ink-2);
  --fg-3: var(--ink-3);
  --fg-4: var(--ink-4);
  --fg-5: var(--ink-5);
  --accent: var(--amber);
  --accent-soft: var(--amber-soft);
  --accent-wash: var(--amber-wash);
  --serif: "Instrument Serif", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Inter", "Inter Tight", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --r-sm: 3px;
  --r-md: 5px;
  --r-lg: 8px;
  color-scheme: light;
}

html[data-theme="dark"] {
  --paper:    #14110C;
  --paper-2:  #1B1812;
  --paper-3:  #241F17;
  --rule:     #2E2820;
  --rule-soft:#241F17;
  --ink:      #EDE5D2;
  --ink-2:    #D8CEB7;
  --ink-3:    #A79B83;
  --ink-4:    #7B7160;
  --ink-5:    #524A3D;
  --amber:      #E0A060;
  --amber-soft: #C4853F;
  --amber-wash: #3A2D1C;
  --up:       #A0B68E;
  --up-soft:  #2F3A2A;
  --down:     #D48B6E;
  --down-soft:#3B2822;
  /* Heatmap colors are saturated independently of the muted text up/down
     so the drift grid reads as clearly green vs. red on the dark paper. */
  --heat-up: #5BC988;
  --heat-dn: #E5644E;
  --teal:     #85AAAC;
  --plum:     #B58EA0;
  color-scheme: dark;
}

.paper-grain {
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 80% -10%, color-mix(in oklch, var(--accent-wash) 60%, transparent), transparent 60%),
    var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.005em;
}

.paper-grain::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image:
    radial-gradient(var(--fg) 0.5px, transparent 0.5px),
    radial-gradient(var(--fg) 0.5px, transparent 0.5px);
  background-size: 4px 4px, 7px 7px;
  background-position: 0 0, 2px 3px;
  z-index: 0;
}

html[data-theme="dark"] .paper-grain::before {
  mix-blend-mode: screen;
  opacity: 0.02;
}

.serif {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
}

.mono  {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.num   {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

.tiny  {
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-3);
  font-weight: 500;
}

.micro {
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-4);
  font-weight: 500;
}

.kbd   {
  font-family: var(--mono);
  font-size: 10px;
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 1px 5px;
  color: var(--fg-3);
  background: var(--bg-2);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.brand-mark {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background:
    conic-gradient(from 210deg, var(--accent) 0 60deg, transparent 60deg 360deg),
    var(--ink-5);
  position: relative;
  border: 1px solid var(--ink-4);
  align-self: center;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: var(--bg);
}

.brand-name {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -0.02em;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: 100px;
  border: 1px solid var(--rule);
  color: var(--fg-3);
  background: var(--bg-2);
  text-transform: uppercase;
}

.tag.up    {
  color: var(--up);
  border-color: color-mix(in oklch, var(--up) 40%, var(--rule));
  background: color-mix(in oklch, var(--up-soft) 50%, transparent);
}

.tag.dn    {
  color: var(--down);
  border-color: color-mix(in oklch, var(--down) 40%, var(--rule));
  background: color-mix(in oklch, var(--down-soft) 50%, transparent);
}

.tag.amber {
  color: var(--amber);
  border-color: color-mix(in oklch, var(--amber) 40%, var(--rule));
  background: var(--amber-wash);
}

/* ===== Home-specific layout ===== */

.home {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 40px 80px;
}

.home-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 8px 0 18px;
  border-bottom: 1px solid var(--rule-soft);
}

.home-nav a {
  color: var(--fg-3);
  text-decoration: none;
  font-size: 13px;
  transition: color .15s;
}

.home-nav a:hover {
  color: var(--fg);
}

.home-nav .spacer {
  flex: 1;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 16px;
  border-radius: var(--r-md);
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--rule);
  background: var(--bg-2);
  color: var(--fg);
  transition: all .15s;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  border-color: var(--fg-4);
}

.btn.primary {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.btn.primary:hover {
  background: var(--ink-2);
  border-color: var(--ink-2);
}

html[data-theme="dark"] .btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #1B1713;
}

html[data-theme="dark"] .btn.primary:hover {
  background: var(--amber-soft);
  border-color: var(--amber-soft);
}

.btn.lg {
  height: 42px;
  padding: 0 22px;
  font-size: 14px;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  padding: 64px 0 40px;
  align-items: center;
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--fg-3);
  text-transform: uppercase;
  margin-bottom: 22px;
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-wash);
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 4.6vw, 64px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 28px;
  color: var(--fg);
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero p.lede {
  font-size: 17px;
  line-height: 1.55;
  max-width: 54ch;
  color: var(--fg-3);
  margin: 0 0 32px;
  text-wrap: pretty;
}

.hero-cta {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.hero-meta {
  display: flex;
  gap: 16px;
  margin-top: 28px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-meta span::before {
  content: "· ";
  margin-right: 6px;
  color: var(--fg-5);
}

.hero-meta span:first-child::before {
  content: "";
  margin: 0;
}

.hero-visual {
  position: relative;
  border-radius: var(--r-lg);
  padding: 24px;
  background:
    radial-gradient(600px 300px at 90% 10%, color-mix(in oklch, var(--accent-wash) 70%, transparent), transparent 60%),
    var(--bg-2);
  border: 1px solid var(--rule);
  box-shadow: 0 20px 60px -20px color-mix(in oklch, var(--ink) 25%, transparent);
}

.hero-visual .preview-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule-soft);
  margin-bottom: 14px;
}

.hero-visual .prv-title {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -0.01em;
}

.hero-visual .prv-title .muted {
  color: var(--fg-3);
  font-style: italic;
  font-size: 15px;
}

.hero-visual .prv-price {
  font-family: var(--mono);
  font-size: 22px;
  letter-spacing: -0.02em;
}

.hero-visual .prv-delta {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--up);
}

.hero-visual .prv-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
}

.hero-visual .prv-chart {
  border-radius: 4px;
  padding: 12px 8px;
  background: var(--bg);
  border: 1px solid var(--rule-soft);
}

.hero-visual .prv-side {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-visual .prv-stat {
  padding: 10px 12px;
  border: 1px solid var(--rule-soft);
  border-radius: 4px;
  background: var(--bg);
}

.hero-visual .prv-stat .l {
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-4);
  margin-bottom: 4px;
}

.hero-visual .prv-stat .v {
  font-family: var(--mono);
  font-size: 16px;
}

.sec-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: end;
  margin: 80px 0 28px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
}

.sec-head .sec-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-4);
  padding-bottom: 6px;
}

.sec-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 38px;
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--fg);
}

.sec-head h2 em {
  font-style: italic;
  color: var(--accent);
}

.personas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.persona-card {
  padding: 22px;
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  background: var(--bg-2);
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 360px;
  transition: transform .18s ease, border-color .18s ease;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  text-align: left;
  font: inherit;
  cursor: pointer;
  width: 100%;
}

.persona-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}

.persona-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(180px 90px at 100% 0%, var(--accent-wash), transparent 60%);
  opacity: 0;
  transition: opacity .2s;
}

.persona-card:hover::before {
  opacity: 1;
}

.persona-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border: 1px solid var(--rule);
  color: var(--accent);
}

.persona-card h3 {
  font-family: var(--serif);
  font-size: 26px;
  margin: 0;
  letter-spacing: -0.01em;
  font-weight: 400;
}

.persona-card .tag-row {
  display: flex;
  gap: 6px;
  margin-top: -4px;
}

.persona-card p {
  font-size: 13.5px;
  color: var(--fg-3);
  line-height: 1.55;
  margin: 0;
  text-wrap: pretty;
}

.persona-card ul {
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.persona-card li {
  font-size: 12px;
  color: var(--fg-2);
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.persona-card li::before {
  content: "—";
  color: var(--accent);
  font-family: var(--mono);
}

.persona-card .go {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--fg-3);
  padding-top: 14px;
  border-top: 1px solid var(--rule-soft);
}

.persona-card .go .arrow {
  transition: transform .18s;
  color: var(--accent);
}

.persona-card:hover .go .arrow {
  transform: translateX(4px);
}

.strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-2);
}

.strip .cell {
  padding: 22px 24px;
  border-right: 1px solid var(--rule-soft);
}

.strip .cell:last-child {
  border-right: 0;
}

.strip .num {
  font-family: var(--serif);
  font-size: 42px;
  line-height: 1;
  color: var(--fg);
  letter-spacing: -0.02em;
}

.strip .lbl {
  font-size: 11px;
  color: var(--fg-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 6px;
}

.caps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.cap {
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: 20px;
  background: var(--bg-2);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cap .mono-title {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.cap h4 {
  font-family: var(--serif);
  font-size: 22px;
  margin: 0;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.cap p {
  font-size: 13px;
  color: var(--fg-3);
  margin: 0;
  line-height: 1.55;
}

.cap .cap-visual {
  height: 70px;
  margin-top: 6px;
}

.philosophy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 36px 0;
}

.philosophy blockquote {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 26px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--fg);
  max-width: 40ch;
}

.philosophy blockquote::before {
  content: "\201C";
  font-size: 48px;
  color: var(--accent);
  line-height: 0.5;
  margin-right: 4px;
  vertical-align: -16px;
}

.philosophy .bio {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-4);
  margin-top: 20px;
}

.philosophy .right p {
  font-size: 14px;
  color: var(--fg-3);
  line-height: 1.65;
  margin: 0 0 16px;
}

.philosophy .right p strong {
  color: var(--fg);
  font-weight: 500;
}

.final-cta {
  margin-top: 80px;
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: 56px 48px;
  background:
    radial-gradient(600px 300px at 100% 0%, color-mix(in oklch, var(--accent-wash) 80%, transparent), transparent 60%),
    var(--bg-2);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}

.final-cta h2 {
  font-family: var(--serif);
  font-size: 44px;
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  font-weight: 400;
}

.final-cta h2 em {
  font-style: italic;
  color: var(--accent);
}

.final-cta p {
  font-size: 14px;
  color: var(--fg-3);
  max-width: 56ch;
  margin: 0;
}

footer.home-footer {
  margin-top: 64px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 28px;
  font-size: 12px;
  color: var(--fg-3);
}

footer.home-footer h5 {
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-4);
  margin: 0 0 12px;
  font-weight: 500;
}

footer.home-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

footer.home-footer a {
  color: var(--fg-2);
  text-decoration: none;
}

footer.home-footer a:hover {
  color: var(--accent);
}

.foot-brand {
  font-family: var(--serif);
  font-size: 22px;
  margin-bottom: 12px;
}

.foot-colophon {
  color: var(--fg-4);
  max-width: 36ch;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: color-mix(in oklch, var(--ink) 40%, transparent);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadein .22s ease;
}

.modal {
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  width: 100%;
  max-width: 880px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.35);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  overflow: hidden;
  position: relative;
  animation: popin .25s ease;
}

@keyframes popin {
  from {
    transform: translateY(8px) scale(0.98);
    opacity: 0;
  }

  to {
    transform: none;
    opacity: 1;
  }
}

@keyframes fadein {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-3);
  background: transparent;
  border: 1px solid transparent;
  z-index: 3;
  cursor: pointer;
}

.modal-close:hover {
  background: var(--bg-2);
  border-color: var(--rule);
  color: var(--fg);
}

.modal-left {
  padding: 40px;
  background: color-mix(in oklch, var(--accent-wash) 40%, var(--bg-2));
  display: flex;
  flex-direction: column;
  position: relative;
  border-right: 1px solid var(--rule);
}

.modal-left .eyebrow {
  color: var(--fg-3);
}

.modal-left h2 {
  font-family: var(--serif);
  font-size: 40px;
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  font-weight: 400;
}

.modal-left h2 em {
  font-style: italic;
  color: var(--accent);
}

.modal-left p {
  font-size: 13.5px;
  color: var(--fg-3);
  margin: 0 0 26px;
  line-height: 1.5;
}

.modal-left .persona-pick {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pick {
  text-align: left;
  padding: 12px 14px;
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  background: var(--bg);
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 12px;
  transition: all .15s;
  cursor: pointer;
  font: inherit;
  color: inherit;
  width: 100%;
}

.pick:hover {
  border-color: var(--fg-4);
}

.pick.on {
  border-color: var(--accent);
  background: var(--bg-2);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--accent) 20%, transparent);
}

.pick .pk-ico {
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pick .pk-t {
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: -0.01em;
}

.pick .pk-d {
  font-size: 11.5px;
  color: var(--fg-3);
  margin-top: 1px;
}

.pick .pk-check {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pick.on .pk-check {
  background: var(--accent);
  border-color: var(--accent);
}

.pick.on .pk-check::after {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--bg);
}

.modal-right {
  padding: 40px;
  display: flex;
  flex-direction: column;
}

.modal-right h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}

.modal-right .sub {
  font-size: 12.5px;
  color: var(--fg-3);
  margin-bottom: 24px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 14px;
}

.field label {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-4);
}

.field input {
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  background: var(--bg-2);
  color: var(--fg);
  font: inherit;
  font-size: 13.5px;
  outline: none;
  transition: border-color .15s;
}

.field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--accent) 20%, transparent);
}

.field.inline {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  margin-top: -6px;
}

.field.inline input[type=checkbox] {
  width: 14px;
  height: 14px;
  accent-color: var(--accent);
}

.field.inline label {
  font-size: 12px;
  text-transform: none;
  letter-spacing: 0;
  color: var(--fg-3);
}

.login-actions {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn.block {
  width: 100%;
  justify-content: center;
}

.divider-or {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  color: var(--fg-4);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 18px 0 12px;
}

.divider-or::before, .divider-or::after {
  content: "";
  height: 1px;
  background: var(--rule-soft);
}

.sso {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.sso button {
  height: 36px;
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  background: var(--bg-2);
  color: var(--fg-2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12.5px;
  cursor: pointer;
}

.sso button:hover {
  border-color: var(--fg-4);
}

.modal-foot {
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--fg-4);
}

.modal-foot a {
  color: var(--fg-3);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ===== Dashboard shell ===== */

hr.rule {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 0;
}

hr.rule-soft {
  border: 0;
  border-top: 1px solid var(--rule-soft);
  margin: 0;
}

.app button, .home button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
}

.app :focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.app {
  display: grid;
  grid-template-columns: 280px 1fr;
  grid-template-rows: 56px 1fr;
  min-height: 100vh;
  position: relative;
  z-index: 1;
  font-size: 15px;
}

/* Hide the ticker-picker sidebar in tabs where it doesn't make sense
   (Baskets is about basket-as-an-entity; Agent has its own input).
   The sidebar is a Stocks-tab tool, so collapse the grid to a single
   column when the user is anywhere else. */

.app-no-sidebar {
  grid-template-columns: 1fr;
}

.topbar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 20px;
  border-bottom: 1px solid var(--rule);
  background: color-mix(in oklch, var(--bg) 92%, transparent);
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand-badge {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--fg-3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 2px 6px;
  border: 1px solid var(--rule);
  border-radius: 3px;
}

.tabs {
  display: flex;
  gap: 14px;
  height: 100%;
  align-items: stretch;
  margin-left: auto;
}

.tab {
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--fg-3);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color .15s ease, border-color .15s ease;
}

/* Sub-tab nav lives inside the content column (not the topbar), so
   the topbar-tuned `.tabs` rules above (height: 100%, margin-left:
   auto) don't apply — those make the nav swallow the whole content
   area and float right. Reset and give the buttons proper vertical
   sizing + a baseline rule the active-state underline aligns to. */

.subtabs {
  height: auto;
  margin-left: 0;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--rule);
}

.subtabs .tab {
  padding: 10px 18px;
}

.tab .tab-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--fg-5);
}

.tab[aria-selected="true"] {
  color: var(--fg);
  border-bottom-color: var(--accent);
}

.tab[aria-selected="true"] .tab-dot {
  background: var(--accent);
}

.tab:hover {
  color: var(--fg);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.top-btn {
  height: 30px;
  padding: 0 10px;
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--fg-2);
  background: var(--bg-2);
  text-decoration: none;
}

.top-btn:hover {
  border-color: var(--fg-4);
}

.top-btn.icon {
  width: 30px;
  padding: 0;
  justify-content: center;
}

.top-btn.warn {
  border-color: color-mix(in oklch, var(--down) 60%, var(--rule));
  color: var(--down);
}

.top-btn[disabled] {
  opacity: 0.55;
  cursor: wait;
}

.top-btn svg.spinning {
  animation: findash-spin 0.9s linear infinite;
}

@keyframes findash-spin {
  to {
    transform: rotate(360deg);
  }
}

.market-data-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  font-size: 12px;
  color: var(--fg-2);
  background: color-mix(in oklch, var(--down) 15%, var(--bg-2));
  border-bottom: 1px solid var(--rule);
}

.market-data-banner .mono {
  color: var(--fg-3);
  font-size: 11px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-clock {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--fg-3);
}

.mkt-open-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--up);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--up) 30%, transparent);
}

/* Sidebar */

.sidebar {
  border-right: 1px solid var(--rule);
  background: color-mix(in oklch, var(--bg-2) 60%, transparent);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.search {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  background: var(--bg);
  padding: 7px 10px;
}

.search input {
  border: 0;
  background: transparent;
  width: 100%;
  color: var(--fg);
  font: inherit;
  outline: none;
  font-size: 13px;
}

.search input::-moz-placeholder {
  color: var(--fg-4);
}

.search input::placeholder {
  color: var(--fg-4);
}

.watchlist-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 18px 6px;
}

.watchlist {
  list-style: none;
  margin: 0;
  padding: 4px 8px 16px;
}

.watch-row {
  display: grid;
  grid-template-columns: 50px 1fr auto 60px;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--r-md);
  cursor: pointer;
  color: var(--fg-2);
  border: 1px solid transparent;
}

.watch-row:hover {
  background: var(--bg-3);
}

.watch-row.active {
  background: color-mix(in oklch, var(--accent-wash) 60%, transparent);
  border-color: color-mix(in oklch, var(--accent) 30%, var(--rule));
  color: var(--fg);
}

.watch-row .ticker {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.watch-row .name {
  font-size: 11px;
  color: var(--fg-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.watch-row .price {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-2);
}

.watch-row .chg {
  font-family: var(--mono);
  font-size: 11px;
  text-align: right;
}

.watch-row .chg.up {
  color: var(--up);
}

.watch-row .chg.dn {
  color: var(--down);
}

/* Content */

.content {
  overflow-y: auto;
  padding: 28px 32px 48px;
  position: relative;
}

.page-header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 24px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rule);
}

.page-title-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.crumb {
  display: flex;
  gap: 6px;
  font-size: 11px;
  color: var(--fg-4);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.page-title {
  font-family: var(--serif);
  font-size: 46px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin: 0;
  font-weight: 400;
}

.page-title .ticker {
  color: var(--fg);
}

.page-title .company {
  color: var(--fg-3);
  font-style: italic;
}

.page-sub {
  font-size: 13px;
  color: var(--fg-3);
  max-width: 60ch;
}

.hero-price {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
}

.hero-price .big {
  font-family: var(--mono);
  font-size: 34px;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.hero-price .delta {
  font-family: var(--mono);
  font-size: 14px;
}

.hero-price .delta.up {
  color: var(--up);
}

.hero-price .delta.dn {
  color: var(--down);
}

.hero-price .asof {
  font-size: 11px;
  color: var(--fg-4);
}

/* cards / panels */

.panel {
  background: color-mix(in oklch, var(--bg-2) 70%, transparent);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: 18px;
  position: relative;
}

.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.panel-title {
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--fg);
}

.panel-sub {
  font-size: 11px;
  color: var(--fg-4);
  letter-spacing: 0.04em;
}

.grid {
  display: grid;
  gap: 16px;
}

.g-2 {
  grid-template-columns: repeat(2, minmax(0,1fr));
}

.g-3 {
  grid-template-columns: repeat(3, minmax(0,1fr));
}

.g-4 {
  grid-template-columns: repeat(4, minmax(0,1fr));
}

.g-5 {
  grid-template-columns: repeat(5, minmax(0,1fr));
}

.g-6 {
  grid-template-columns: repeat(6, minmax(0,1fr));
}

.g-12 {
  grid-template-columns: repeat(12, minmax(0,1fr));
}

.col-2 {
  grid-column: span 2;
}

.col-3 {
  grid-column: span 3;
}

.col-4 {
  grid-column: span 4;
}

.col-5 {
  grid-column: span 5;
}

.col-6 {
  grid-column: span 6;
}

.col-7 {
  grid-column: span 7;
}

.col-8 {
  grid-column: span 8;
}

.col-9 {
  grid-column: span 9;
}

.col-12 {
  grid-column: span 12;
}

/* stat */

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-label {
  font-size: 10.5px;
  color: var(--fg-4);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.stat-value {
  font-family: var(--mono);
  font-size: 20px;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}

.stat-value.lg {
  font-size: 26px;
  letter-spacing: -0.02em;
}

.stat-value.sm {
  font-size: 15px;
}

.stat-value.md {
  font-size: 20px;
}

.stat-sub {
  font-size: 11px;
  color: var(--fg-3);
  font-family: var(--mono);
}

.stat-sub.up-c {
  color: var(--up);
}

.stat-sub.dn-c {
  color: var(--down);
}

/* decile ladder */

.decile-ladder {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 2px;
  height: 6px;
}

.decile-cell {
  background: var(--rule-soft);
  border-radius: 1px;
}

.decile-cell.active {
  background: var(--accent);
}

.decile-ladder.up .decile-cell.active {
  background: var(--up);
}

.decile-ladder.dn .decile-cell.active {
  background: var(--down);
}

/* pctile bar */

.pctile-bar {
  height: 4px;
  background: var(--rule-soft);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.pctile-bar .fill {
  height: 100%;
  background: linear-gradient(90deg, color-mix(in oklch, var(--accent) 20%, var(--rule-soft)), var(--accent));
  border-radius: 2px;
}

.pctile-bar .marker {
  position: absolute;
  top: -3px;
  width: 2px;
  height: 10px;
  background: var(--fg);
}

/* table */

table.measure-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

table.measure-table th, table.measure-table td {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid var(--rule-soft);
}

table.measure-table th {
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-4);
  font-weight: 500;
  border-bottom: 1px solid var(--rule);
}

table.measure-table td.num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

table.measure-table tbody tr:hover {
  background: var(--bg-3);
}

table.measure-table td.right, table.measure-table th.right {
  text-align: right;
}

/* sparkline */

.sparkline {
  display: block;
  width: 100%;
  height: 28px;
}

/* tweaks panel */

.tweaks {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 280px;
  background: var(--bg-2);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  box-shadow: 0 10px 40px -10px rgba(0,0,0,0.25);
  padding: 16px;
  z-index: 100;
  font-size: 12px;
}

.tweaks h4 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.tweaks-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-top: 1px solid var(--rule-soft);
}

.tweaks-row:first-of-type {
  border-top: 0;
}

.tweaks-row label {
  color: var(--fg-3);
}

.swatches {
  display: flex;
  gap: 6px;
}

.swatch {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  cursor: pointer;
}

.swatch.active {
  outline: 2px solid var(--fg);
  outline-offset: 1px;
}

.seg {
  display: inline-flex;
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
}

.seg button {
  padding: 3px 8px;
  font-size: 11px;
  color: var(--fg-3);
  background: var(--bg);
}

.seg button.on {
  background: var(--fg);
  color: var(--bg);
}

/* transitions */

.tab-content {
  animation: fadein .25s ease;
}

@keyframes fadein {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to   {
    opacity: 1;
    transform: none;
  }
}

/* text helpers */

.muted {
  color: var(--fg-3);
}

.mute-2 {
  color: var(--fg-4);
}

.up-c {
  color: var(--up);
}

.dn-c {
  color: var(--down);
}

.am-c {
  color: var(--accent);
}

/* dividers with label */

.section-rule {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  margin: 28px 0 18px;
  color: var(--fg-4);
}

.section-rule::before, .section-rule::after {
  content: "";
  border-top: 1px solid var(--rule);
}

.section-rule .label {
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.02em;
  font-style: italic;
  color: var(--fg-3);
}

/* distribution plot scaffolds */

.dist-axis {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--fg-4);
  margin-top: 4px;
}

/* chip row */

.chip-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* number display helpers */

.big-num {
  font-family: var(--mono);
  font-size: 30px;
  letter-spacing: -0.02em;
}

.mid-num {
  font-family: var(--mono);
  font-size: 18px;
}

/* time range seg */

.time-seg {
  display: inline-flex;
  gap: 2px;
  padding: 2px;
  background: var(--bg-3);
  border-radius: var(--r-md);
  border: 1px solid var(--rule);
}

.time-seg button {
  padding: 3px 9px;
  font-size: 11px;
  font-family: var(--mono);
  color: var(--fg-3);
  border-radius: 3px;
}

.time-seg button.on {
  background: var(--bg);
  color: var(--fg);
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

/* retail signal card */

.signal-card {
  padding: 18px;
  border-radius: var(--r-lg);
  border: 1px solid var(--rule);
  background: var(--bg-2);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.signal-card .lbl {
  font-size: 11px;
  color: var(--fg-4);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.signal-card .val {
  font-family: var(--serif);
  font-size: 30px;
  letter-spacing: -0.01em;
}

.signal-card .desc {
  font-size: 12px;
  color: var(--fg-3);
  line-height: 1.4;
}

.signal-card.pos {
  background: color-mix(in oklch, var(--up-soft) 40%, var(--bg-2));
}

.signal-card.neg {
  background: color-mix(in oklch, var(--down-soft) 40%, var(--bg-2));
}

.signal-card.warm {
  background: color-mix(in oklch, var(--accent-wash) 50%, var(--bg-2));
}

/* ===== Agent tab (chat) ===== */

.agent-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 16px;
  height: calc(100vh - 140px);
  min-height: 480px;
}

.agent-sidebar {
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.agent-sidebar-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--rule);
}

.agent-conv-list {
  list-style: none;
  margin: 0;
  padding: 6px 8px 14px;
  overflow-y: auto;
  flex: 1;
}

.agent-conv-empty {
  padding: 18px 14px;
  color: var(--fg-4);
  font-size: 12px;
  text-align: center;
}

.agent-conv-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 12px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  color: var(--fg-2);
  cursor: pointer;
}

.agent-conv-row:hover {
  background: var(--bg-3);
}

.agent-conv-row.active {
  background: color-mix(in oklch, var(--accent-wash) 60%, transparent);
  border-color: color-mix(in oklch, var(--accent) 30%, var(--rule));
  color: var(--fg);
}

.agent-conv-title {
  font-size: 13px;
  letter-spacing: -0.005em;
}

.agent-conv-time {
  font-size: 11px;
  color: var(--fg-4);
  font-family: var(--mono);
}

.agent-main {
  padding: 0;
  display: flex;
  flex-direction: row;
  overflow: hidden;
}

.agent-chat-col {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.agent-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  border-bottom: 1px solid var(--rule);
}

.agent-title {
  font-size: 18px;
}

.agent-actions {
  display: flex;
  gap: 8px;
}

/* Quiet inline notice used for non-fatal agent issues (transport
   retries that exceeded their budget, max-turns notices, etc.). Used
   to be a loud red block at the bottom of the chat — too alarming
   for conditions that are usually benign because the work actually
   completed. Now it's a subtle dismissible strip under the header. */

.agent-flash {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 16px 0;
  padding: 5px 10px;
  font-size: 11.5px;
  line-height: 1.4;
  border-radius: var(--r-sm, 4px);
  border: 1px solid var(--rule-soft);
  background: var(--bg-2);
  color: var(--fg-3);
}

.agent-flash-icon {
  flex-shrink: 0;
  color: var(--fg-4);
  font-size: 11px;
}

.agent-flash-text {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-flash-close {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border: 0;
  background: transparent;
  color: var(--fg-4);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  border-radius: 3px;
}

.agent-flash-close:hover {
  background: var(--bg-3);
  color: var(--fg);
}

.agent-messages {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.55;
}

/* Row wrapper that holds an avatar next to a user / assistant bubble. */

.agent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 90%;
}

.agent-row--user {
  align-self: flex-end;
  flex-direction: row;
  justify-content: flex-end;
}

.agent-row--assistant {
  align-self: flex-start;
  flex-direction: row;
}

.agent-row .agent-msg {
  max-width: calc(100% - 38px);
  /* room for a 28px avatar + 10px gap */
}

.agent-avatar {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--rule);
  background: var(--bg-2);
  color: var(--fg-3);
  margin-top: 2px;
  /* nudge to align optically with first line of bubble */
}

.agent-avatar--user {
  background: var(--accent-wash);
  border-color: color-mix(in oklch, var(--accent) 30%, var(--rule));
  color: var(--accent);
}

.agent-avatar--assistant {
  background: color-mix(in oklch, var(--bg-3) 85%, transparent);
  color: var(--fg-2);
}

html[data-theme="dark"] .agent-avatar--user {
  color: var(--amber-soft);
}

html[data-theme="dark"] .agent-avatar--assistant {
  color: var(--fg);
}

.agent-msg {
  max-width: 78%;
  padding: 10px 14px;
  border-radius: var(--r-lg);
  border: 1px solid var(--rule);
  background: var(--bg-2);
  color: var(--fg);
  white-space: pre-wrap;
  word-break: break-word;
}

.agent-msg--user {
  align-self: flex-end;
  background: var(--accent-wash);
  border-color: color-mix(in oklch, var(--accent) 30%, var(--rule));
}

.agent-msg--assistant {
  align-self: flex-start;
  background: color-mix(in oklch, var(--bg-3) 85%, transparent);
  /* The markdown prose structure and step rows inside an assistant
     bubble already manage their own vertical rhythm via <p>, <hr>,
     and `.agent-step` margins. `pre-wrap` on the bubble preserves
     HEEx template newlines between components as visible blank lines,
     which inflates the bubble — override back to normal here. */
  white-space: normal;
}

/* Assistant message blocks — text chunks still honor author's
   intentional newlines (the LLM streams them literally), but the
   element-level whitespace noise from HEEx templating doesn't leak. */

.agent-msg--assistant .agent-msg-text {
  white-space: pre-wrap;
  word-break: break-word;
}

.agent-msg--assistant .agent-msg-text + .agent-msg-text {
  margin-top: 8px;
}

/* Agent step line — a single muted row of small text inside an
   assistant bubble (or standing in for a persisted tool-result
   message). Intentionally minimal chrome: no border, no background,
   no pill. Just `✓ Phrase · 0.9s` at small size, sitting between
   narrative paragraphs. */

.agent-step {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 2px 0;
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--fg-3);
  font-variant-numeric: tabular-nums;
}

.agent-step-mark {
  flex-shrink: 0;
  width: 12px;
  text-align: center;
  color: var(--fg-4);
  font-size: 11px;
}

.agent-step-text {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-step--running .agent-step-mark {
  color: var(--accent);
}

.agent-step--done .agent-step-mark {
  color: var(--up);
}

.agent-step--error .agent-step-mark {
  color: var(--down);
}

.agent-step--error .agent-step-text {
  color: var(--down);
}

/* Persisted tool-result: rendered inside the assistant bubble via the
   turn-grouping path, same visual vocabulary as the streaming view.
   <details> stays so the user can expand the body (stdout, JSON blob,
   …) on demand; outer element is borderless and background-less so it
   reads as one more step line among the narrative. */

.agent-step-row {
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
}

.agent-step-row > summary {
  cursor: pointer;
  list-style: none;
  padding: 0;
}

.agent-step-row > summary::-webkit-details-marker {
  display: none;
}

.agent-step-row > summary:hover .agent-step-text {
  color: var(--fg-2);
}

.agent-step-row[open] > summary .agent-step-text {
  color: var(--fg);
}

.agent-step-body {
  margin: 4px 0 6px 18px;
  padding: 6px 10px;
  background: var(--bg-2);
  border-left: 2px solid var(--rule);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--fg-2);
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 240px;
  overflow-y: auto;
}

/* ask_user replies render like a normal user bubble with a tiny prefix. */

.agent-tool-result--ask {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.agent-tool-result--ask .tiny {
  color: var(--fg-4);
  font-size: 9.5px;
}

.agent-tool-result-ask-body {
  white-space: pre-wrap;
  word-break: break-word;
}

.agent-msg--error {
  align-self: stretch;
  background: color-mix(in oklch, var(--down-soft) 50%, transparent);
  border-color: color-mix(in oklch, var(--down) 30%, var(--rule));
  color: var(--down);
}

.agent-msg--streaming .agent-caret {
  display: inline-block;
  margin-left: 2px;
  color: var(--accent);
  animation: agent-caret-blink 1s steps(2, end) infinite;
}

@keyframes agent-caret-blink {
  0%, 50% {
    opacity: 1;
  }

  51%, 100% {
    opacity: 0;
  }
}

.agent-meta {
  align-self: center;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-4);
  font-weight: 500;
}

.agent-ask {
  margin: 8px 14px 0;
  padding: 12px 14px;
  border: 1px solid color-mix(in oklch, var(--accent) 35%, var(--rule));
  border-radius: var(--r-lg);
  background: color-mix(in oklch, var(--accent-wash) 65%, transparent);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.agent-ask-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.agent-ask-context {
  font-size: 12px;
  color: var(--fg-3);
  font-style: italic;
}

.agent-ask-question {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--fg);
  font-weight: 500;
}

.agent-ask-buttons {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.agent-ask-form {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.agent-ask-form input[type="text"] {
  flex: 1;
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  padding: 7px 10px;
  background: var(--bg);
  color: var(--fg);
  font: inherit;
  outline: none;
  font-size: 13px;
}

.agent-ask-form input[type="text"]:focus {
  border-color: var(--accent);
}

.agent-composer {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid var(--rule);
}

.agent-composer input[type="text"] {
  flex: 1;
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  padding: 8px 12px;
  background: var(--bg);
  color: var(--fg);
  font: inherit;
  outline: none;
}

.agent-composer input[type="text"]:focus {
  border-color: var(--fg-4);
}

.agent-composer input[type="text"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Icon-only send button: circular, accent fill, hover lift. The disabled
   state dims it without removing it, so the layout doesn't shift when
   the agent starts / stops working. Enter in the <input> submits the
   form (browsers key implicit submission off of the submit button — as
   long as it isn't disabled, Enter works). */

.agent-send-btn {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  transition: background .15s, border-color .15s, transform .1s;
}

.agent-send-btn:hover {
  background: var(--ink-2);
  border-color: var(--ink-2);
}

.agent-send-btn:active {
  transform: scale(0.96);
}

.agent-send-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}

.agent-send-btn svg {
  transform: translate(-1px, 1px);
}

html[data-theme="dark"] .agent-send-btn {
  background: var(--accent);
  border-color: var(--accent);
  color: #1B1713;
}

html[data-theme="dark"] .agent-send-btn:hover {
  background: var(--amber-soft);
  border-color: var(--amber-soft);
}

/* Sidebar "+ New conversation" button: accent-tinted, icon + label. */

.agent-new-btn.btn {
  gap: 5px;
  height: 28px;
  padding: 0 10px;
  font-size: 12px;
  color: var(--accent);
  border-color: color-mix(in oklch, var(--accent) 35%, var(--rule));
  background: color-mix(in oklch, var(--accent-wash, var(--bg-2)) 55%, var(--bg));
}

.agent-new-btn.btn:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: color-mix(in oklch, var(--accent-wash, var(--bg-2)) 80%, var(--bg));
}

.agent-new-btn.btn svg {
  opacity: 0.85;
}

.agent-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 48px;
  color: var(--fg-3);
  text-align: center;
}

.agent-empty-sub {
  font-size: 13px;
  color: var(--fg-4);
  margin: 0 0 6px;
  max-width: 44ch;
}

/* ----- Artifact (scratchpad HTML) split pane ----- */

.agent-artifact-pane {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--rule);
  min-width: 0;
  overflow: hidden;
}

.agent-artifact-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--rule);
}

.agent-artifact-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.agent-artifact-desc {
  font-size: 13px;
  color: var(--fg);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 42ch;
}

.agent-artifact-tabs {
  display: flex;
  gap: 6px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--rule);
  overflow-x: auto;
}

.agent-artifact-tab {
  font-size: 11.5px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--fg-3);
  cursor: pointer;
  white-space: nowrap;
}

.agent-artifact-tab:hover {
  background: var(--bg-3);
}

.agent-artifact-tab.active {
  background: var(--accent-wash);
  border-color: color-mix(in oklch, var(--accent) 30%, var(--rule));
  color: var(--fg);
}

.agent-artifact-frame {
  flex: 1;
  width: 100%;
  border: 0;
  background: white;
}

.agent-artifact-image {
  flex: 1;
  -o-object-fit: contain;
     object-fit: contain;
  width: 100%;
  min-height: 0;
  background: var(--bg-2);
  padding: 12px;
}

.agent-artifact-stub {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--bg-2);
}

.agent-artifact-stub-kind {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.agent-artifact-stub-kind code {
  color: var(--fg-3);
  font-size: 12px;
}

.agent-artifact-stub-desc {
  font-size: 14px;
  color: var(--fg-1);
}

.agent-artifact-stub-preview {
  font-size: 13px;
  color: var(--fg-3);
  white-space: pre-wrap;
  word-break: break-word;
  padding: 8px 10px;
  border-radius: 6px;
  background: var(--bg-3);
  border: 1px solid var(--rule);
}

.agent-artifact-stub-meta {
  color: var(--fg-4);
}

@media (max-width: 900px) {
  .agent-layout {
    grid-template-columns: 1fr;
    height: auto;
  }
}

@media (max-width: 1100px) {
  .agent-main.with-artifact {
    flex-direction: column;
  }

  .agent-main.with-artifact .agent-artifact-pane {
    border-left: 0;
    border-top: 1px solid var(--rule);
    min-height: 320px;
  }
}

/* ===== Accent overrides for the dashboard shell ===== */

.app[data-accent="teal"] {
  --accent: #3A6568;
  --accent-soft: #6A9094;
  --accent-wash: #DCE9E8;
}

html[data-theme="dark"] .app[data-accent="teal"] {
  --accent: #85AAAC;
  --accent-soft: #6A9094;
  --accent-wash: #1E2E2F;
}

.app[data-accent="plum"] {
  --accent: #6B3E52;
  --accent-soft: #945A73;
  --accent-wash: #ECDCE3;
}

html[data-theme="dark"] .app[data-accent="plum"] {
  --accent: #B58EA0;
  --accent-soft: #945A73;
  --accent-wash: #2F2028;
}

.app[data-accent="ink"]  {
  --accent: #1B1713;
  --accent-soft: #5C5143;
  --accent-wash: #E6DFCD;
}

html[data-theme="dark"] .app[data-accent="ink"]  {
  --accent: #EDE5D2;
  --accent-soft: #5C5143;
  --accent-wash: #2A2720;
}

@media (max-width: 900px) {
  .modal {
    grid-template-columns: 1fr;
    max-width: 420px;
  }

  .modal-left {
    padding: 28px;
  }

  .modal-right {
    padding: 28px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 0;
  }

  .personas, .caps {
    grid-template-columns: 1fr;
  }

  .strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .strip .cell:nth-child(2) {
    border-right: 0;
  }

  .philosophy, .final-cta {
    grid-template-columns: 1fr;
  }

  footer.home-footer {
    grid-template-columns: 1fr 1fr;
  }
}

/* -------------------------------------------------------------------------
   Markdown body used by the agent tab's assistant messages. The LLM emits
   real markdown (headings, tables, bullet lists, code); Earmark renders it
   to HTML and we scope styling here so it sits cleanly inside .agent-msg.
   Kept intentionally small — no wild prose CSS, just enough structure that
   the content is readable in the dark/paper theme.
   ------------------------------------------------------------------------- */

.md-body {
  line-height: 1.55;
}

.md-body > :first-child {
  margin-top: 0;
}

.md-body > :last-child {
  margin-bottom: 0;
}

.md-body h1,
.md-body h2,
.md-body h3,
.md-body h4 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--fg);
  margin: 20px 0 8px;
  line-height: 1.25;
}

.md-body h1 {
  font-size: 22px;
}

.md-body h2 {
  font-size: 19px;
}

.md-body h3 {
  font-size: 16px;
}

.md-body h4 {
  font-size: 14px;
  color: var(--fg-2);
}

.md-body p {
  margin: 0 0 10px;
}

.md-body strong {
  color: var(--fg);
  font-weight: 600;
}

.md-body em {
  font-style: italic;
  color: var(--fg-2);
}

.md-body ul,
.md-body ol {
  margin: 4px 0 12px;
  padding-left: 22px;
}

.md-body li {
  margin: 2px 0;
}

.md-body li > p {
  margin: 0;
}

.md-body hr {
  border: 0;
  border-top: 1px solid var(--rule-soft);
  margin: 18px 0;
}

.md-body blockquote {
  margin: 10px 0;
  padding: 6px 12px;
  border-left: 3px solid var(--accent);
  color: var(--fg-2);
  background: var(--bg-2);
  border-radius: 0 var(--r-md, 6px) var(--r-md, 6px) 0;
}

.md-body code {
  font-family: var(--mono);
  font-size: 12.5px;
  padding: 1px 5px;
  border-radius: 3px;
  background: var(--bg-3);
  color: var(--fg);
}

.md-body pre {
  margin: 10px 0;
  padding: 10px 12px;
  border-radius: var(--r-md, 6px);
  background: var(--bg-3);
  overflow-x: auto;
}

.md-body pre code {
  padding: 0;
  background: transparent;
  font-size: 12.5px;
  line-height: 1.5;
}

.md-body a {
  color: var(--accent);
  text-decoration: none;
}

.md-body a:hover {
  text-decoration: underline;
}

.md-body table {
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 12.5px;
  width: auto;
  max-width: 100%;
}

.md-body thead th {
  text-align: left;
  font-weight: 600;
  color: var(--fg);
  border-bottom: 1px solid var(--rule);
  padding: 6px 12px 6px 0;
  white-space: nowrap;
}

.md-body tbody td {
  padding: 4px 12px 4px 0;
  border-bottom: 1px solid var(--rule-soft);
  color: var(--fg-2);
  vertical-align: top;
}

.md-body tbody tr:last-child td {
  border-bottom: 0;
}

/* -------------------------------------------------------------------------
   Auth pages (login, register, forgot/reset password, confirmation, settings).
   Standalone full-page cards that reuse the .field / .btn vocabulary from
   the home-page login modal. The phx.gen.auth-generated templates were
   rewritten to use this markup instead of Phoenix's default Tailwind-only
   core components so auth flows match the rest of the dashboard.
   ------------------------------------------------------------------------- */

.auth-shell {
  min-height: calc(100vh - 60px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 60px 24px 80px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-2);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg, 10px);
  padding: 36px 32px 32px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.auth-card.wide {
  max-width: 640px;
}

.auth-title {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
  color: var(--fg);
}

.auth-subtitle {
  font-size: 13px;
  color: var(--fg-3);
  margin: 0 0 24px;
  line-height: 1.5;
}

.auth-subtitle a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.auth-subtitle a:hover {
  text-decoration: underline;
}

.auth-hint {
  margin-top: 18px;
  font-size: 12.5px;
  color: var(--fg-4);
  text-align: center;
}

.auth-hint a {
  color: var(--fg-2);
  font-weight: 500;
  text-decoration: none;
}

.auth-hint a:hover {
  color: var(--accent);
}

.field-error {
  margin-top: 4px;
  font-size: 11.5px;
  color: var(--down);
  line-height: 1.4;
}

.field.has-error input {
  border-color: var(--down);
}

.form-error {
  margin-bottom: 14px;
  padding: 10px 12px;
  border: 1px solid var(--down);
  border-radius: var(--r-md);
  background: color-mix(in oklch, var(--down-soft) 40%, transparent);
  color: var(--down);
  font-size: 12.5px;
}

.field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: -4px 0 4px;
}

.field-row .field.inline {
  margin: 0;
}

.field-row a {
  font-size: 12px;
  color: var(--fg-3);
  text-decoration: none;
}

.field-row a:hover {
  color: var(--accent);
}

.auth-divider {
  height: 1px;
  background: var(--rule-soft);
  margin: 22px 0;
}

/* Minimal top strip shown on auth pages (replaces the old phx.new header). */

.auth-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  border-bottom: 1px solid var(--rule-soft);
  font-size: 13px;
}

.auth-topbar .brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--fg);
  text-decoration: none;
}

.auth-topbar .brand-mark {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  background: var(--accent);
}

.auth-topbar .brand-name {
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: -0.01em;
}

.auth-topbar .back {
  color: var(--fg-3);
  text-decoration: none;
}

.auth-topbar .back:hover {
  color: var(--fg);
}

/* ===================== Universe picker (topbar) ===================== */

.universe-picker {
  display: inline-flex;
  align-items: center;
}

.universe-picker select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  height: 30px;
  padding: 0 28px 0 10px;
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  background-color: var(--bg-2);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238A7E6B' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 12px 12px;
  color: var(--fg-2);
  font: inherit;
  font-size: 12px;
  line-height: 28px;
  cursor: pointer;
  outline: none;
  max-width: 220px;
  text-overflow: ellipsis;
  transition: border-color .15s, box-shadow .15s;
}

.universe-picker select:hover {
  border-color: var(--fg-4);
}

.universe-picker select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--accent) 20%, transparent);
}

.universe-picker select[disabled] {
  opacity: 0.55;
  cursor: wait;
}

.universe-picker select option,
.universe-picker select optgroup {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 13px;
}

.universe-picker select optgroup {
  font-weight: 600;
  color: var(--fg-3);
}

/* ===================== Universe manager modal ===================== */

.universe-manager-backdrop {
  z-index: 200;
}

.universe-manager {
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  width: 100%;
  max-width: 640px;
  max-height: min(80vh, 720px);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: popin .25s ease;
  position: relative;
}

.universe-manager-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px 14px;
  border-bottom: 1px solid var(--rule-soft);
}

.universe-manager-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.01em;
  margin: 0;
}

.universe-manager-body {
  padding: 18px 22px 22px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.universe-manager-body h3 {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 0;
}

.universe-manager-body p {
  margin: 0;
}

.universe-manager-body label {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.universe-manager-body label > .tiny {
  color: var(--fg-4);
}

.universe-manager-body input[type="text"] {
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  background: var(--bg-2);
  color: var(--fg);
  font: inherit;
  font-size: 13px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}

.universe-manager-body input[type="text"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--accent) 20%, transparent);
}

.universe-manager-empty {
  padding: 22px 14px;
  border: 1px dashed var(--rule);
  border-radius: var(--r-md);
  color: var(--fg-3);
  font-size: 13px;
  text-align: center;
  background: color-mix(in oklch, var(--bg-2) 60%, transparent);
}

.universe-manager-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.universe-manager-list li {
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  background: var(--bg-2);
}

.universe-manager-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  gap: 12px;
}

.universe-manager-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg);
}

.universe-manager-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Footer CTA row at the bottom of the list view (New universe /
   Upload CSV). Visually separated from the list above. */

.universe-manager-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--rule-soft);
}

/* Save / Cancel footer for the create / edit / csv-name forms.
   Right-aligned per platform dialog convention (cancel left,
   primary action right) with a hairline separator above and a
   minimum button width so they don't read as cramped icon buttons. */

.universe-manager-form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--rule-soft);
}

.universe-manager-form-actions .btn {
  min-width: 96px;
  justify-content: center;
}

.universe-manager-search-results {
  list-style: none;
  margin: 0;
  padding: 4px;
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 200px;
  overflow-y: auto;
}

.universe-manager-search-results button {
  width: 100%;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 10px;
  align-items: center;
  padding: 6px 10px;
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background .12s;
}

.universe-manager-search-results button:hover {
  background: var(--bg-2);
}

.universe-manager-search-results button .mono {
  font-weight: 600;
}

.universe-manager-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.universe-manager-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 8px;
  border-radius: 100px;
  border: 1px solid var(--rule);
  background: var(--bg-2);
  color: var(--fg-2);
  font-size: 12px;
  cursor: pointer;
  transition: border-color .12s, color .12s, background .12s;
}

.universe-manager-chip:hover {
  border-color: color-mix(in oklch, var(--down) 50%, var(--rule));
  color: var(--down);
}

.universe-manager-chip .mono {
  font-size: 11.5px;
}

/* The btn.warn variant is used for the Delete row action. The existing
   .top-btn.warn rule already styles the icon-button red; here we make
   sure the regular .btn.warn matches that same accent. */

.btn.warn {
  border-color: color-mix(in oklch, var(--down) 50%, var(--rule));
  color: var(--down);
}

.btn.warn:hover {
  border-color: var(--down);
  background: color-mix(in oklch, var(--down) 10%, var(--bg-2));
}

/* PortfolioManager — additive rules on top of .universe-manager. The
   modal shell + buttons inherit from universe-manager-*; only the
   nested rebalance + position blocks need their own styling. */

.portfolio-manager {
  max-width: 720px;
}

.portfolio-manager-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.portfolio-manager-benchmark {
  margin: 6px 0 14px;
  padding: 10px 12px;
  border: 1px solid var(--rule-soft);
  border-radius: var(--r-md);
}

.portfolio-manager-benchmark legend {
  padding: 0 6px;
  color: var(--fg-4);
}

.portfolio-manager-section-head {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 400;
  margin: 14px 0 8px;
}

.portfolio-manager-rebalances {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
}

.portfolio-manager-rebalance {
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  padding: 10px 12px;
  background: var(--bg-2);
}

.portfolio-manager-rebalance-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.portfolio-manager-rebalance-head label {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.portfolio-manager-rebalance-head input[type="date"] {
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  background: var(--bg);
  color: var(--fg);
}

.portfolio-manager-positions {
  list-style: none;
  margin: 6px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.portfolio-manager-positions li {
  display: grid;
  grid-template-columns: 110px 80px auto auto;
  gap: 8px;
  align-items: center;
  padding: 4px 6px;
  border-radius: var(--r-sm);
}

.portfolio-manager-positions li:hover {
  background: var(--bg);
}

.portfolio-manager-positions input[type="number"] {
  height: 28px;
  padding: 0 8px;
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  background: var(--bg);
  color: var(--fg);
  text-align: right;
}

.portfolio-manager-rebalance-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
  gap: 12px;
}

.portfolio-manager-picker {
  margin-top: 8px;
  border-top: 1px dashed var(--rule-soft);
  padding-top: 8px;
}

.portfolio-manager-picker input[type="text"] {
  width: 100%;
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  background: var(--bg);
  color: var(--fg);
}

.portfolio-manager-overweight {
  color: var(--down);
  font-weight: 600;
}

.portfolio-manager-add-rebalance {
  margin-bottom: 10px;
}

.portfolio-manager-blocker {
  margin-top: 6px;
}

/* ----- Phase 5: Universe summary tile + Portfolio dashboard ----- */

.universe-summary-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  margin-bottom: 14px;
  border: 1px solid var(--rule-soft);
  border-radius: var(--r-md);
  background: var(--bg-2);
  font-size: 12px;
}

.universe-summary-strip .universe-summary-id {
  font-weight: 600;
  color: var(--fg);
}

.universe-summary-strip .mono {
  font-size: 12.5px;
}

.portfolio-tab-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.portfolio-tab-header form {
  display: inline-block;
}

.portfolio-tab-header label {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.portfolio-tab-header select {
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  background: var(--bg-2);
  color: var(--fg);
  min-width: 200px;
}

.portfolio-empty-cta {
  text-align: center;
  padding: 60px 20px;
  border: 1px dashed var(--rule);
  border-radius: var(--r-md);
  background: var(--bg-2);
}

.portfolio-empty-cta h2 {
  font-family: var(--serif);
  font-weight: 400;
  margin: 0 0 8px;
  font-size: 22px;
}

.portfolio-empty-cta p {
  margin: 0 auto 18px;
  max-width: 380px;
}

.portfolio-kpi {
  padding: 14px 16px;
}

.portfolio-kpi.muted {
  opacity: 0.55;
}

.portfolio-kpi .stat-value.lg {
  font-size: 28px;
  font-family: var(--serif);
  font-weight: 400;
  margin-top: 6px;
}

.drift-heatmap {
  overflow-x: auto;
  padding: 4px 0;
}

.drift-heatmap svg {
  display: block;
}

.doughnut-chart {
  padding: 4px 0;
}

.doughnut-chart-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.doughnut-svg {
  flex: 0 0 auto;
  cursor: default;
}

/* Highlight the hovered slice — the underlying browser tooltip from
   <title> shows the ticker and percentage. */

.doughnut-svg circle {
  transition: opacity 120ms ease;
}

.doughnut-svg:hover circle:not(:hover) {
  opacity: 0.45;
}

.doughnut-center {
  font-family: var(--serif);
  font-size: 26px;
  fill: var(--fg);
}

.doughnut-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
  gap: 4px 12px;
  width: 100%;
}

.doughnut-legend li {
  display: grid;
  grid-template-columns: 10px auto;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  line-height: 1.6;
  cursor: default;
}

.doughnut-swatch {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  display: inline-block;
}

.doughnut-label {
  color: var(--fg-2);
  font-family: var(--mono);
}

.drift-heatmap-label {
  font-size: 11px;
  font-family: var(--mono, monospace);
  fill: var(--fg-3);
  dominant-baseline: middle;
}

.hover\:cursor-pointer:hover {
  cursor: pointer;
}

.hover\:bg-zinc-50:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(250 250 250 / var(--tw-bg-opacity));
}

.hover\:bg-zinc-700:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(63 63 70 / var(--tw-bg-opacity));
}

.hover\:text-zinc-700:hover {
  --tw-text-opacity: 1;
  color: rgb(63 63 70 / var(--tw-text-opacity));
}

.hover\:opacity-40:hover {
  opacity: 0.4;
}

.focus\:border-rose-400:focus {
  --tw-border-opacity: 1;
  border-color: rgb(251 113 133 / var(--tw-border-opacity));
}

.focus\:border-zinc-400:focus {
  --tw-border-opacity: 1;
  border-color: rgb(161 161 170 / var(--tw-border-opacity));
}

.focus\:ring-0:focus {
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}

.active\:text-white\/80:active {
  color: rgb(255 255 255 / 0.8);
}

.group:hover .group-hover\:bg-zinc-50 {
  --tw-bg-opacity: 1;
  background-color: rgb(250 250 250 / var(--tw-bg-opacity));
}

.group:hover .group-hover\:opacity-70 {
  opacity: 0.7;
}

.phx-submit-loading.phx-submit-loading\:opacity-75 {
  opacity: 0.75;
}

.phx-submit-loading .phx-submit-loading\:opacity-75 {
  opacity: 0.75;
}

@media (min-width: 640px) {
  .sm\:w-96 {
    width: 24rem;
  }

  .sm\:w-full {
    width: 100%;
  }

  .sm\:translate-y-0 {
    --tw-translate-y: 0px;
    transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
  }

  .sm\:scale-100 {
    --tw-scale-x: 1;
    --tw-scale-y: 1;
    transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
  }

  .sm\:scale-95 {
    --tw-scale-x: .95;
    --tw-scale-y: .95;
    transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
  }

  .sm\:gap-8 {
    gap: 2rem;
  }

  .sm\:overflow-visible {
    overflow: visible;
  }

  .sm\:rounded-l-xl {
    border-top-left-radius: 0.75rem;
    border-bottom-left-radius: 0.75rem;
  }

  .sm\:rounded-r-xl {
    border-top-right-radius: 0.75rem;
    border-bottom-right-radius: 0.75rem;
  }

  .sm\:p-6 {
    padding: 1.5rem;
  }

  .sm\:px-0 {
    padding-left: 0px;
    padding-right: 0px;
  }

  .sm\:text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
  }

  .sm\:leading-6 {
    line-height: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .lg\:py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
}
