/*! tailwindcss v4.3.0 | MIT License | https://tailwindcss.com */
@layer theme, base, components, utilities;
@layer theme {
  :root, :host {
    --font-sans: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji",
      "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
      "Courier New", monospace;
    --radius-sm: 0.25rem;
    --radius-md: 0.375rem;
    --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --default-font-family: var(--font-sans);
    --default-mono-font-family: var(--font-mono);
  }
}
@layer base {
  *, ::after, ::before, ::backdrop, ::file-selector-button {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0 solid;
  }
  html, :host {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    font-family: var(--default-font-family, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");
    font-feature-settings: var(--default-font-feature-settings, normal);
    font-variation-settings: var(--default-font-variation-settings, normal);
    -webkit-tap-highlight-color: transparent;
  }
  hr {
    height: 0;
    color: inherit;
    border-top-width: 1px;
  }
  abbr:where([title]) {
    -webkit-text-decoration: underline dotted;
    text-decoration: underline dotted;
  }
  h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
  }
  a {
    color: inherit;
    -webkit-text-decoration: inherit;
    text-decoration: inherit;
  }
  b, strong {
    font-weight: bolder;
  }
  code, kbd, samp, pre {
    font-family: var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
    font-feature-settings: var(--default-mono-font-feature-settings, normal);
    font-variation-settings: var(--default-mono-font-variation-settings, normal);
    font-size: 1em;
  }
  small {
    font-size: 80%;
  }
  sub, sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
  }
  sub {
    bottom: -0.25em;
  }
  sup {
    top: -0.5em;
  }
  table {
    text-indent: 0;
    border-color: inherit;
    border-collapse: collapse;
  }
  :-moz-focusring {
    outline: auto;
  }
  progress {
    vertical-align: baseline;
  }
  summary {
    display: list-item;
  }
  ol, ul, menu {
    list-style: none;
  }
  img, svg, video, canvas, audio, iframe, embed, object {
    display: block;
    vertical-align: middle;
  }
  img, video {
    max-width: 100%;
    height: auto;
  }
  button, input, select, optgroup, textarea, ::file-selector-button {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    border-radius: 0;
    background-color: transparent;
    opacity: 1;
  }
  :where(select:is([multiple], [size])) optgroup {
    font-weight: bolder;
  }
  :where(select:is([multiple], [size])) optgroup option {
    padding-inline-start: 20px;
  }
  ::file-selector-button {
    margin-inline-end: 4px;
  }
  ::placeholder {
    opacity: 1;
  }
  @supports (not (-webkit-appearance: -apple-pay-button))  or (contain-intrinsic-size: 1px) {
    ::placeholder {
      color: currentcolor;
      @supports (color: color-mix(in lab, red, red)) {
        color: color-mix(in oklab, currentcolor 50%, transparent);
      }
    }
  }
  textarea {
    resize: vertical;
  }
  ::-webkit-search-decoration {
    -webkit-appearance: none;
  }
  ::-webkit-date-and-time-value {
    min-height: 1lh;
    text-align: inherit;
  }
  ::-webkit-datetime-edit {
    display: inline-flex;
  }
  ::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
  }
  ::-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-block: 0;
  }
  ::-webkit-calendar-picker-indicator {
    line-height: 1;
  }
  :-moz-ui-invalid {
    box-shadow: none;
  }
  button, input:where([type="button"], [type="reset"], [type="submit"]), ::file-selector-button {
    appearance: button;
  }
  ::-webkit-inner-spin-button, ::-webkit-outer-spin-button {
    height: auto;
  }
  [hidden]:where(:not([hidden="until-found"])) {
    display: none !important;
  }
}
@layer utilities;
@import url('https://fonts.bunny.net/css?family=playfair-display:600,700|inter:400,500,600,700|jetbrains-mono:400,500,600');
:root {
  --color-primary: #C83A32;
  --color-primary-hover: #B0322B;
  --color-primary-tint: rgba(200,58,50,0.14);
  --color-secondary: #B08A4A;
  --color-secondary-tint: rgba(176,138,74,0.14);
  --color-tertiary: #5B2426;
  --color-neutral: #81786E;
  --color-success: #4F7665;
  --color-success-tint: rgba(79,118,101,0.18);
  --color-warning: #D8A24A;
  --color-warning-tint: rgba(216,162,74,0.16);
  --color-error: #C83A32;
  --color-error-tint: rgba(200,58,50,0.16);
  --color-info: #8E8A9C;
  --color-info-tint: rgba(142,138,156,0.16);
  --color-up: #C83A32;
  --color-down: #4F7665;
  --color-up-tint: rgba(200,58,50,0.16);
  --color-down-tint: rgba(79,118,101,0.2);
  /* Shared warm-graphite application shell for all standard workspaces. */
  --color-bg: #292422;
  --color-surface: #4A4541;
  --color-surface-2: #403B38;
  --color-surface-hover: #56504B;
  --color-border: #68605A;
  --color-border-gold: rgba(193,155,90,0.46);
  --color-text: #FFF9F0;
  --color-text-muted: #D2C9BE;
  --color-text-gold: #D1AC70;
  --color-text-on-primary: #FFFFFF;
  /* Keep the application shell continuous: page canvas, top navigation, and sidebar share one background. */
  --color-navbar-bg: var(--color-bg);
  --color-navbar-text: #FFF9F0;
  --color-sidebar-bg: var(--color-bg);
  --color-sidebar-text: #DED4C8;
  --color-sidebar-active-bg: #704648;
  --color-sidebar-active-text: #FFF9F0;
  --color-ticker-bg: #322E2B;
  --color-ticker-text: #FFF9F0;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --space-page: 24px;
  --space-page-compact: 12px;
  --gap-sm: 8px;
  --gap-md: 16px;
  --gap-lg: 24px;
  --height-navbar: 64px;
  --height-ticker: 36px;
  --width-sidebar: 200px;
  --width-sidebar-collapsed: 64px;
  --radius-sm: 2px;
  --radius-md: 4px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.45);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.6);
  --transition-fast: 120ms ease;
  --transition-normal: 220ms ease;
  --transition-slow: 400ms ease;
  --chart-1: #C83A32;
  --chart-2: #B08A4A;
  --chart-3: #4F7665;
  --chart-4: #8C4A47;
  --chart-5: #D9D0C3;
  --chart-6: #81786E;
}
@layer base {
  body {
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
  }
  h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--color-text);
    font-weight: 600;
  }
  ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
  }
  ::-webkit-scrollbar-track {
    background: var(--color-bg);
  }
  ::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 4px;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: var(--color-neutral);
  }
}
@layer components {
  .panel {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
  }
  .panel-header-title {
    font-family: var(--font-heading);
    color: var(--color-text);
    font-size: 16px;
    font-weight: 600;
  }
  .panel-gold {
    border: 1px solid var(--color-border-gold);
  }
  .panel-burgundy {
    background: var(--color-tertiary);
    border: 1px solid var(--color-border-gold);
  }
  .divider {
    border-color: var(--color-border);
  }
  .num {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
  }
  .num-gold {
    font-family: var(--font-mono);
    color: var(--color-text-gold);
  }
  .text-muted {
    color: var(--color-text-muted);
  }
  .text-up {
    color: var(--color-up);
  }
  .text-down {
    color: var(--color-down);
  }
  .bg-up-tint {
    background: var(--color-up-tint);
    color: var(--color-up);
  }
  .bg-down-tint {
    background: var(--color-down-tint);
    color: #7FB59E;
  }
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
  }
  .btn-primary {
    background: var(--color-primary);
    color: var(--color-text-on-primary);
  }
  .btn-primary:hover {
    background: var(--color-primary-hover);
  }
  .btn-secondary {
    background: transparent;
    color: var(--color-text-gold);
    border-color: var(--color-border-gold);
  }
  .btn-secondary:hover {
    background: var(--color-secondary-tint);
  }
  .btn-ghost {
    background: transparent;
    color: var(--color-text);
  }
  .btn-ghost:hover {
    background: var(--color-surface-hover);
  }
  .btn-danger {
    background: var(--color-error-tint);
    color: var(--color-error);
    border-color: var(--color-error);
  }
  .btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
  }
  .btn:focus-visible, .input:focus-visible, .select:focus-visible {
    outline: 2px solid var(--color-secondary);
    outline-offset: 1px;
  }
  .input, .textarea {
    background: var(--color-surface-2);
    color: var(--color-text);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: border-color var(--transition-fast);
  }
  .input::placeholder, .textarea::placeholder {
    color: var(--color-text-muted);
  }
  .input:focus, .textarea:focus, .select:focus {
    border-color: var(--color-secondary);
    outline: none;
  }
  .select {
    appearance: none;
    -webkit-appearance: none;
    background-color: var(--color-surface-2);
    color: var(--color-text);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23B08A4A' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    cursor: pointer;
  }
  .label {
    color: var(--color-text-muted);
    font-size: 12px;
    font-weight: 500;
  }
  .checkbox {
    accent-color: var(--color-primary);
  }
  .toggle {
    appearance: none;
    -webkit-appearance: none;
    background: var(--color-border);
    border-radius: 999px;
    position: relative;
    cursor: pointer;
    transition: background var(--transition-fast);
  }
  .toggle::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--color-text);
    transition: transform var(--transition-fast);
  }
  .toggle:checked {
    background: var(--color-primary);
  }
  .toggle:checked::after {
    transform: translateX(16px);
  }
  .tab {
    color: var(--color-text-muted);
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
    background: transparent;
  }
  .tab:hover {
    color: var(--color-text);
  }
  .tab-active {
    color: var(--color-text);
    border-bottom-color: var(--color-primary);
  }
  .chip {
    background: transparent;
    color: var(--color-text-muted);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
  }
  .chip:hover {
    color: var(--color-text);
    border-color: var(--color-neutral);
  }
  .chip-active {
    background: var(--color-primary);
    color: var(--color-text-on-primary);
    border-color: var(--color-primary);
  }
  .table {
    width: 100%;
    border-collapse: collapse;
    color: var(--color-text);
  }
  .table th {
    color: var(--color-text-muted);
    font-weight: 500;
    font-size: 12px;
    text-align: left;
    background: var(--color-surface-2);
    border-bottom: 1px solid var(--color-border);
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }
  .table td {
    border-bottom: 1px solid var(--color-border);
  }
  .table tbody tr {
    transition: background var(--transition-fast);
  }
  .table tbody tr:hover {
    background: var(--color-surface-hover);
  }
  .badge {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    background: var(--color-info-tint);
    color: var(--color-text);
  }
  .badge-up {
    background: var(--color-up-tint);
    color: var(--color-up);
  }
  .badge-down {
    background: var(--color-down-tint);
    color: #7FB59E;
  }
  .badge-gold {
    background: var(--color-secondary-tint);
    color: var(--color-text-gold);
  }
  .badge-warning {
    background: var(--color-warning-tint);
    color: var(--color-warning);
  }
  .badge-neutral {
    background: var(--color-info-tint);
    color: var(--color-text);
  }
  .status-dot {
    border-radius: 50%;
    background: var(--color-success);
  }
  .status-dot-live {
    background: var(--color-primary);
    animation: pulse-dot 1.6s infinite;
  }
  .progress {
    background: var(--color-border);
    border-radius: 999px;
    overflow: hidden;
  }
  .progress-bar {
    background: var(--color-secondary);
  }
  .skeleton {
    background: linear-gradient(90deg, var(--color-surface) 25%, var(--color-surface-hover) 50%, var(--color-surface) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite;
    border-radius: var(--radius-sm);
  }
  .modal-backdrop {
    background: rgba(10,8,8,0.7);
  }
  .modal {
    background: var(--color-surface);
    border: 1px solid var(--color-border-gold);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    color: var(--color-text);
  }
  .drawer {
    background: var(--color-surface);
    border-left: 1px solid var(--color-border-gold);
    box-shadow: var(--shadow-lg);
    color: var(--color-text);
  }
  .tooltip {
    background: var(--color-surface-2);
    color: var(--color-text);
    border: 1px solid var(--color-border-gold);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
  }
  .menu {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
  }
  .menu-item {
    color: var(--color-text);
    cursor: pointer;
    transition: background var(--transition-fast);
  }
  .menu-item:hover {
    background: var(--color-surface-hover);
  }
  .link {
    color: var(--color-text-gold);
    cursor: pointer;
    transition: color var(--transition-fast);
  }
  .link:hover {
    color: var(--color-text);
  }
  .ticker-symbol {
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--color-text);
    cursor: pointer;
  }
  .ticker-symbol:hover {
    color: var(--color-text-gold);
  }
  .grid-lines {
    background-image: linear-gradient(var(--color-border) 1px, transparent 1px), linear-gradient(90deg, var(--color-border) 1px, transparent 1px);
    background-size: 32px 32px;
  }
  @keyframes shimmer {
    0% {
      background-position: 200% 0;
    }
    100% {
      background-position: -200% 0;
    }
  }
  @keyframes pulse-dot {
    0%,100% {
      opacity: 1;
    }
    50% {
      opacity: 0.35;
    }
  }
  @keyframes ticker-scroll {
    from {
      transform: translateX(0);
    }
    to {
      transform: translateX(-50%);
    }
  }
}
