@import url("https://fonts.googleapis.com/css2?family=Syne:wght@700;800&family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;600&display=swap");

.tc-market-monitor {
  --tc-bg: #f6f8fb;
  --tc-surface: #ffffff;
  --tc-surface-2: #f1f5f9;
  --tc-border: #e5e7eb;
  --tc-border-soft: #f0f2f5;
  --tc-blue: #2563eb;
  --tc-blue-soft: #eff6ff;
  --tc-green: #2e7d32;
  --tc-green-hover: #1b5e20;
  --tc-green-soft: #e8f5e9;
  --tc-green-line: #a5d6a7;
  --tc-green-pale: #f4faf4;
  --tc-red: #c62828;
  --tc-red-soft: #ffebee;
  --tc-ink: #111827;
  --tc-ink-2: #374151;
  --tc-ink-3: #6b7280;
  --tc-ink-4: #9ca3af;
  --tc-radius: 8px;
  --tc-radius-lg: 12px;
  --tc-sidebar-w: 256px;
  --tc-header-h: 56px;
  --tc-ticker-h: 88px;
  --tc-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
  --tc-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.09), 0 2px 4px rgba(0, 0, 0, 0.05);
  --tc-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --tc-display: "Syne", "Inter", sans-serif;
  --tc-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow: visible;
  background: var(--tc-bg);
  color: var(--tc-ink);
  font-family: var(--tc-sans);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

.tc-market-monitor,
.tc-market-monitor * {
  box-sizing: border-box;
}

.tc-market-monitor a {
  color: inherit;
}

.tc-market-monitor button,
.tc-market-monitor input {
  font: inherit;
}

.tc-shell {
  min-height: 100vh;
  background: var(--tc-bg);
}

.tc-topbar {
  position: sticky;
  top: var(--tc-sticky-offset, 0px);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 14px;
  height: var(--tc-header-h);
  padding: 0 20px;
  border-bottom: 1px solid var(--tc-border);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--tc-shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.tc-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  color: var(--tc-ink);
  text-decoration: none;
  white-space: nowrap;
}

.tc-logo-icon {
  display: block;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
}

.tc-logo-text {
  font-family: var(--tc-display);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
}

.tc-logo-text span {
  color: var(--tc-green);
}

.tc-topbar-divider {
  width: 1px;
  height: 20px;
  background: var(--tc-border);
  flex: 0 0 auto;
}

.tc-page-state {
  display: none;
  align-items: center;
  gap: 7px;
  color: var(--tc-ink-2);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.tc-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--tc-green);
  box-shadow: 0 0 0 2px var(--tc-green-soft);
  animation: tc-pulse 2s infinite;
}

@keyframes tc-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.tc-spacer {
  flex: 1 1 auto;
  min-width: 12px;
}

.tc-save-state,
.tc-time,
.tc-account-pill {
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid var(--tc-border);
  border-radius: 6px;
  background: var(--tc-surface-2);
  color: var(--tc-ink-3);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.tc-save-state.is-saving {
  color: var(--tc-blue);
}

.tc-save-state.is-saved {
  color: var(--tc-green);
  background: var(--tc-green-soft);
  border-color: var(--tc-green-line);
}

.tc-save-state.is-error {
  color: var(--tc-red);
  background: var(--tc-red-soft);
  border-color: #ef9a9a;
}

.tc-time {
  font-family: var(--tc-mono);
  font-weight: 600;
}

.tc-account-pill {
  color: var(--tc-green);
  background: var(--tc-green-soft);
  border-color: var(--tc-green-line);
}

.tc-primary-btn,
.tc-secondary-btn,
.tc-secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 7px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.12s ease, color 0.12s ease, transform 0.12s ease;
}

.tc-primary-btn {
  border: 0;
  background: var(--tc-green);
  color: #ffffff;
}

.tc-primary-btn:hover {
  background: var(--tc-green-hover);
  color: #ffffff;
  transform: translateY(-1px);
}

.tc-secondary-btn,
.tc-secondary-link {
  width: 100%;
  border: 1px solid var(--tc-green-line);
  background: #ffffff;
  color: var(--tc-green);
}

.tc-secondary-btn:hover,
.tc-secondary-link:hover {
  background: var(--tc-green-pale);
  color: var(--tc-green);
}

.tc-ticker {
  height: var(--tc-ticker-h);
  padding: 8px 0;
  overflow: hidden;
  border-bottom: 1px solid var(--tc-border);
  background: var(--tc-surface);
}

.tc-ticker iframe {
  display: block;
  width: 100%;
  height: 72px;
  border: 0;
}

.tc-layout {
  display: flex;
  align-items: flex-start;
  min-height: calc(100vh - var(--tc-header-h) - var(--tc-ticker-h));
  background: var(--tc-bg);
}

.tc-sidebar {
  position: sticky;
  top: calc(var(--tc-sticky-offset, 0px) + var(--tc-header-h) + var(--tc-ticker-h));
  display: flex;
  flex-direction: column;
  flex: 0 0 var(--tc-sidebar-w);
  width: var(--tc-sidebar-w);
  height: calc(100vh - var(--tc-header-h) - var(--tc-ticker-h));
  overflow-x: hidden;
  overflow-y: auto;
  border-right: 1px solid var(--tc-border);
  background: var(--tc-surface);
  scrollbar-width: thin;
  scrollbar-color: var(--tc-border) transparent;
}

.tc-sidebar::-webkit-scrollbar {
  width: 4px;
}

.tc-sidebar::-webkit-scrollbar-thumb {
  background: var(--tc-border);
  border-radius: 999px;
}

.tc-sidebar-section {
  padding: 14px 12px 6px;
}

.tc-sidebar-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 4px 8px;
  color: var(--tc-ink-4);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tc-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 5px;
  background: var(--tc-green-soft);
  color: var(--tc-green);
  cursor: pointer;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  transition: background 0.12s ease;
}

.tc-icon-btn:hover {
  background: #c8e6c9;
}

.tc-watch-list {
  display: grid;
  gap: 2px;
}

.tc-watch-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 24px;
  align-items: center;
  gap: 7px;
  min-height: 58px;
  padding: 8px 8px 8px 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease, transform 0.12s ease;
}

.tc-watch-main {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 40px;
  min-width: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 0;
  text-align: left;
}

.tc-watch-item:hover {
  background: var(--tc-surface-2);
}

.tc-watch-item.is-active {
  border-color: var(--tc-green-line);
  background: var(--tc-green-soft);
  box-shadow: 0 2px 8px rgba(46, 125, 50, 0.08);
}

.tc-symbol-icon,
.tc-symbol-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--tc-border);
  border-radius: 9px;
  background: var(--tc-surface-2);
  color: var(--tc-ink-3);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0;
}

.tc-symbol-logo {
  position: relative;
  overflow: hidden;
  border-color: var(--tc-border);
  background:
    radial-gradient(circle at 72% 22%, rgba(255, 255, 255, 0.85) 0 2px, transparent 3px),
    linear-gradient(145deg, rgba(241, 245, 249, 0.95), #ffffff 64%);
}

.tc-symbol-svg {
  display: block;
  width: 26px;
  height: 26px;
}

.tc-watch-name {
  display: block;
  overflow: hidden;
  color: var(--tc-ink);
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tc-watch-sub {
  display: inline-flex;
  align-items: center;
  max-width: 70px;
  min-height: 16px;
  padding: 1px 5px;
  border-radius: 4px;
  background: #f8fafc;
  color: var(--tc-ink-4);
  font-family: var(--tc-mono);
  font-size: 9px;
  font-weight: 700;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tc-watch-text {
  min-width: 0;
}

.tc-watch-quote {
  display: grid;
  justify-items: end;
  gap: 2px;
  min-width: 58px;
  font-family: var(--tc-mono);
  line-height: 1.1;
}

.tc-watch-price {
  color: var(--tc-ink);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.tc-watch-change {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 17px;
  padding: 2px 5px;
  border-radius: 5px;
  background: var(--tc-surface-2);
  color: var(--tc-ink-4);
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}

.tc-watch-change.is-positive {
  background: var(--tc-green-soft);
  color: var(--tc-green);
}

.tc-watch-change.is-negative {
  background: var(--tc-red-soft);
  color: var(--tc-red);
}

.tc-remove-watch {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--tc-ink-4);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

.tc-remove-watch:hover {
  background: var(--tc-red-soft);
  color: var(--tc-red);
}

.tc-add-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 38px;
  margin-top: 8px;
  padding: 8px;
  border: 1px dashed var(--tc-border);
  border-radius: var(--tc-radius);
  background: transparent;
  color: var(--tc-ink-3);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.tc-add-btn:hover {
  border-color: var(--tc-green);
  background: var(--tc-green-soft);
  color: var(--tc-green);
}

.tc-sidebar-cta {
  margin: 10px 12px 14px;
  padding: 14px 12px;
  border: 1px solid var(--tc-green-line);
  border-radius: var(--tc-radius-lg);
  background: var(--tc-green-soft);
}

.tc-sidebar-cta h3 {
  margin: 0 0 4px;
  color: var(--tc-ink);
  font-family: var(--tc-display);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
}

.tc-sidebar-cta p {
  margin: 0 0 10px;
  color: var(--tc-ink-3);
  font-size: 11px;
  line-height: 1.5;
}

.tc-sidebar-cta .tc-primary-btn,
.tc-sidebar-cta .tc-secondary-btn,
.tc-sidebar-cta .tc-secondary-link {
  width: 100%;
  min-height: 32px;
  padding: 8px 10px;
  font-size: 12px;
}

.tc-sidebar-cta .tc-secondary-link {
  margin-top: 6px;
}

.tc-market-status {
  margin-top: auto;
  padding: 12px;
  border-top: 1px solid var(--tc-border);
}

.tc-market-status-title {
  margin-bottom: 8px;
  padding: 0 2px;
  color: var(--tc-ink-4);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tc-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 28px;
  margin-bottom: 4px;
  padding: 5px 8px;
  border-radius: 6px;
  background: var(--tc-surface-2);
}

.tc-status-row span:first-child {
  color: var(--tc-ink-2);
  font-size: 11px;
  font-weight: 600;
}

.tc-status-value {
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.tc-status-open,
.tc-status-always {
  color: var(--tc-green);
}

.tc-status-closed {
  color: var(--tc-red);
}

.tc-main {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
  background: var(--tc-bg);
}

.tc-chart-area {
  border-bottom: 1px solid var(--tc-border);
  background: var(--tc-surface);
  box-shadow: var(--tc-shadow);
}

.tc-chart-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--tc-border);
  background: var(--tc-surface);
  flex-wrap: wrap;
}

.tc-chart-symbol-name {
  color: var(--tc-ink);
  font-family: var(--tc-display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
}

.tc-btn-group {
  display: flex;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--tc-border);
  border-radius: 7px;
  background: var(--tc-surface-2);
}

.tc-btn-group button {
  min-width: 34px;
  min-height: 28px;
  padding: 5px 10px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--tc-ink-3);
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  transition: background 0.12s ease, color 0.12s ease, box-shadow 0.12s ease;
}

.tc-btn-group button.is-active,
.tc-btn-group button:hover {
  background: var(--tc-green);
  color: #ffffff;
}

.tc-btn-group.is-light button.is-active,
.tc-btn-group.is-light button:hover {
  background: var(--tc-surface);
  color: var(--tc-ink);
  box-shadow: var(--tc-shadow);
}

.tc-chart-frame {
  width: 100%;
  height: 520px;
  background: var(--tc-surface);
}

.tc-chart-frame iframe,
.tc-panel iframe,
.tc-panel-full iframe {
  display: block;
  width: 100%;
  border: 0;
}

.tc-chart-frame iframe {
  height: 100%;
}

.tc-shortcuts {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-bottom: 1px solid var(--tc-border);
  background: var(--tc-surface);
}

.tc-shortcut {
  min-height: 62px;
  padding: 11px 14px;
  border: 0;
  border-right: 1px solid var(--tc-border);
  border-bottom: 2px solid transparent;
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: background 0.12s ease, border-color 0.12s ease;
}

.tc-shortcut:last-child {
  border-right: 0;
}

.tc-shortcut:hover {
  background: var(--tc-surface-2);
}

.tc-shortcut.is-active {
  border-bottom-color: var(--tc-green);
  background: var(--tc-green-soft);
}

.tc-shortcut-label {
  margin-bottom: 4px;
  color: var(--tc-ink-3);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tc-shortcut-title {
  color: var(--tc-ink);
  font-family: var(--tc-mono);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
}

.tc-shortcut-note {
  margin-top: 3px;
  color: var(--tc-green);
  font-size: 10px;
  font-weight: 800;
}

.tc-panels-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border-top: 1px solid var(--tc-border);
}

.tc-panel,
.tc-panel-full {
  min-width: 0;
  overflow: hidden;
  background: var(--tc-surface);
}

.tc-panel {
  border-right: 1px solid var(--tc-border);
  border-bottom: 1px solid var(--tc-border);
}

.tc-panel:nth-child(2n) {
  border-right: 0;
}

.tc-panel-full {
  border-top: 1px solid var(--tc-border);
}

.tc-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--tc-border);
  background: var(--tc-surface);
}

.tc-panel-title {
  color: var(--tc-ink);
  font-family: var(--tc-display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.25;
}

.tc-panel-sub {
  color: var(--tc-ink-4);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.tc-news {
  padding: 20px 22px;
  border-top: 1px solid var(--tc-border);
  background: var(--tc-surface);
}

.tc-news-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.tc-news-title {
  color: var(--tc-ink);
  font-family: var(--tc-display);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.25;
}

.tc-lang-buttons {
  display: flex;
  gap: 4px;
  flex: 0 0 auto;
}

.tc-lang-buttons button {
  min-height: 26px;
  padding: 4px 10px;
  border: 1px solid var(--tc-border);
  border-radius: 6px;
  background: transparent;
  color: var(--tc-ink-3);
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.tc-lang-buttons button.is-active,
.tc-lang-buttons button:hover {
  border-color: var(--tc-green);
  background: var(--tc-green);
  color: #ffffff;
}

.tc-news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 10px;
}

.tc-news-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 134px;
  padding: 13px;
  border: 1px solid var(--tc-border);
  border-radius: var(--tc-radius);
  background: var(--tc-surface-2);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.12s ease, box-shadow 0.12s ease, transform 0.12s ease;
}

.tc-news-card:hover {
  border-color: var(--tc-green);
  box-shadow: 0 3px 12px rgba(46, 125, 50, 0.1);
  transform: translateY(-1px);
}

.tc-news-cat {
  color: var(--tc-green);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tc-news-card-title {
  color: var(--tc-ink);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.tc-news-meta {
  display: flex;
  gap: 6px;
  margin-top: auto;
  padding-top: 4px;
  color: var(--tc-ink-4);
  font-size: 10px;
}

.tc-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--tc-border);
  background: var(--tc-surface);
  color: var(--tc-ink-4);
  font-size: 11px;
  line-height: 1.6;
  text-align: center;
}

.tc-footer a {
  color: var(--tc-green);
  text-decoration: none;
}

.tc-footer a:hover {
  text-decoration: underline;
}

.tc-modal-overlay,
.tc-picker-overlay {
  position: fixed;
  inset: 0;
  z-index: 600;
  display: none;
  background: rgba(17, 24, 39, 0.48);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.tc-modal-overlay.is-open,
.tc-picker-overlay.is-open {
  display: flex;
}

.tc-modal-overlay {
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.tc-modal {
  width: 100%;
  max-width: 660px;
  max-height: 82vh;
  overflow-y: auto;
  padding: 28px 28px 32px;
  border: 1px solid var(--tc-border);
  border-radius: var(--tc-radius-lg);
  background: var(--tc-surface);
  box-shadow: var(--tc-shadow-md);
}

.tc-modal-close {
  float: right;
  min-height: 30px;
  padding: 5px 12px;
  border: 1px solid var(--tc-border);
  border-radius: 7px;
  background: var(--tc-surface-2);
  color: var(--tc-ink-3);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.tc-modal-close:hover {
  border-color: var(--tc-red);
  background: var(--tc-red-soft);
  color: var(--tc-red);
}

.tc-modal-cat {
  margin-bottom: 8px;
  color: var(--tc-green);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tc-modal-title {
  margin-bottom: 10px;
  color: var(--tc-ink);
  font-family: var(--tc-display);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.22;
}

.tc-modal-meta {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--tc-ink-4);
  font-size: 11px;
}

.tc-modal-body {
  color: var(--tc-ink-2);
  font-size: 14px;
  line-height: 1.72;
}

.tc-modal-body p {
  margin: 0 0 12px;
}

.tc-picker-overlay {
  align-items: flex-start;
  justify-content: center;
  padding: 80px 20px 20px;
}

.tc-picker {
  width: 100%;
  max-width: 500px;
  overflow: hidden;
  border: 1px solid var(--tc-border);
  border-radius: var(--tc-radius-lg);
  background: var(--tc-surface);
  box-shadow: var(--tc-shadow-md);
}

.tc-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--tc-border);
}

.tc-picker-head h3 {
  margin: 0;
  color: var(--tc-ink);
  font-family: var(--tc-display);
  font-size: 15px;
  font-weight: 800;
}

.tc-picker-head button {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--tc-ink-3);
  cursor: pointer;
  font-size: 18px;
  font-weight: 800;
}

.tc-picker-search {
  width: 100%;
  padding: 11px 16px;
  border: 0;
  border-bottom: 1px solid var(--tc-border);
  outline: 0;
  background: var(--tc-surface-2);
  color: var(--tc-ink);
  font-size: 14px;
}

.tc-picker-search::placeholder {
  color: var(--tc-ink-4);
}

.tc-picker-list {
  max-height: 340px;
  overflow-y: auto;
}

.tc-picker-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  padding: 10px 16px;
  border: 0;
  border-bottom: 1px solid var(--tc-border-soft);
  background: var(--tc-surface);
  cursor: pointer;
  text-align: left;
  transition: background 0.1s ease;
}

.tc-picker-item:hover {
  background: var(--tc-surface-2);
}

.tc-picker-ticker {
  display: block;
  color: var(--tc-ink);
  font-size: 13px;
  font-weight: 800;
}

.tc-picker-name {
  display: block;
  color: var(--tc-ink-3);
  font-size: 11px;
}

.tc-picker-tag {
  flex: 0 0 auto;
  margin-left: auto;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.tc-cat-index { background: var(--tc-blue-soft); color: var(--tc-blue); }
.tc-cat-crypto { background: #fffbeb; color: #d97706; }
.tc-cat-fx { background: var(--tc-green-soft); color: var(--tc-green); }
.tc-cat-comm { background: #fdf4ff; color: #9333ea; }
.tc-cat-stock { background: var(--tc-red-soft); color: var(--tc-red); }

.tc-mobile-sidebar-btn {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  background: var(--tc-green);
  color: #ffffff;
  cursor: pointer;
  font-size: 20px;
  font-weight: 800;
  box-shadow: 0 4px 16px rgba(46, 125, 50, 0.35);
  transition: transform 0.15s ease;
}

.tc-mobile-sidebar-btn:hover {
  transform: scale(1.06);
}

@media (max-width: 1100px) {
  .tc-shortcuts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .tc-mobile-sidebar-btn {
    display: flex;
  }

  .tc-sidebar {
    position: fixed;
    top: calc(var(--tc-sticky-offset, 0px) + var(--tc-header-h) + var(--tc-ticker-h));
    left: 0;
    z-index: 150;
    height: calc(100vh - var(--tc-header-h) - var(--tc-ticker-h));
    box-shadow: var(--tc-shadow-md);
    transform: translateX(-110%);
    transition: transform 0.22s ease;
  }

  .tc-sidebar.is-open {
    transform: translateX(0);
  }

  .tc-panels-grid {
    grid-template-columns: 1fr;
  }

  .tc-panel {
    border-right: 0;
  }

  .tc-time,
  .tc-save-state {
    display: none;
  }
}

@media (max-width: 680px) {
  .tc-topbar {
    gap: 10px;
    padding: 0 12px;
  }

  .tc-logo-text {
    font-size: 15px;
  }

  .tc-page-state {
    display: none;
  }

  .tc-primary-btn,
  .tc-account-pill {
    padding: 7px 10px;
  }

  .tc-chart-toolbar {
    align-items: stretch;
    padding: 10px;
  }

  .tc-chart-symbol-name {
    width: 100%;
  }

  .tc-btn-group {
    width: 100%;
    overflow-x: auto;
  }

  .tc-btn-group button {
    flex: 1 0 auto;
  }

  .tc-chart-frame {
    height: 430px;
  }

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

  .tc-shortcut {
    min-height: 72px;
    padding: 11px 10px;
  }

  .tc-panel-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .tc-panel-sub {
    white-space: normal;
  }

  .tc-news {
    padding: 18px 12px;
  }

  .tc-news-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .tc-news-grid {
    grid-template-columns: 1fr;
  }
}
