/* ============================================================
   tiles.css – Glass tile card + per-tile styles
   ============================================================ */

/* ── Shared glass tile ── */
.tile {
  background: var(--tile-bg);
  backdrop-filter: var(--tile-blur);
  -webkit-backdrop-filter: var(--tile-blur);
  border: 1px solid var(--tile-border);
  box-shadow: var(--tile-shadow);
  border-radius: var(--tile-radius);
  padding: var(--tile-padding);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

.refresh-timer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  padding: 2px 6px;
  margin-left: 0.5rem;
  font-family: monospace;
  font-size: 0.75rem;
  color: var(--color-secondary);
  min-width: 45px;
  width: auto;
}

/* ============================================================
   CLOCK & CALENDAR TILE
   ============================================================ */
.tile-clock {
  flex-direction: row;
  align-items: stretch;
  padding: 0;
}

.clock-left {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--tile-padding);
}

.clock-divider {
  width: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: var(--tile-padding) 1.5rem;
  flex-shrink: 0;
}

.clock-right {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: var(--tile-padding);
  padding-left: 0;
  padding-right: 2.5rem;
}

.clock-time-row {
  display: flex;
  align-items: baseline;
  gap: 0.15em;
}

.clock-time {
  font-size: var(--clock-time-size);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--color-primary);
}

.clock-seconds {
  font-size: var(--clock-seconds-size);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  color: var(--color-secondary);
}

.clock-date-block {
  margin-top: 0.5rem;
}

.clock-weekday {
  display: block;
  font-size: var(--clock-weekday-size);
  font-weight: 500;
  color: var(--color-primary);
  line-height: 1.3;
}

.clock-date {
  display: block;
  font-size: var(--clock-date-size);
  font-weight: 400;
  color: var(--color-secondary);
  line-height: 1.4;
}

/* --- Mini Calendar (Right) --- */
.cal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.cal-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-primary);
  text-transform: capitalize;
}
.cal-nav {
  display: flex;
  gap: 0.5rem;
}
.cal-nav-btn {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 150ms, color 150ms;
}
.cal-nav-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-primary);
}
.cal-nav-btn svg { width: 1.25rem; height: 1.25rem; }

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.25rem;
  flex: 1;
  align-content: start;
}

.cal-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  border-radius: 0.5rem;
  font-size: 0.9375rem;
  aspect-ratio: 1;
}
.cal-cell--header {
  color: var(--color-secondary);
  font-size: 0.8125rem;
  font-weight: 500;
  aspect-ratio: auto;
  padding-bottom: 0.25rem;
}

.cal-cell--day {
  cursor: pointer;
  color: var(--color-primary);
  transition: background 150ms;
}
.cal-cell--day:hover {
  background: rgba(255, 255, 255, 0.08);
}
.cal-cell--weekend {
  color: #d1d5db;
  opacity: 0.7;
}
.cal-cell--holiday {
  color: var(--color-accent);
  font-weight: 600;
}
.cal-cell--other-month {
  color: var(--color-secondary);
  opacity: 0.3;
  pointer-events: none;
}
.cal-cell--today {
  background: var(--color-accent);
  color: #0a0c10;
  font-weight: 600;
}
.cal-cell--today:hover {
  background: #85b8ff;
}

/* note dot */
.cal-note-dot {
  position: absolute;
  bottom: 12%;
  width: 0.25rem;
  height: 0.25rem;
  border-radius: 50%;
  background: var(--color-accent);
}
.cal-cell--today .cal-note-dot {
  background: #0a0c10;
}

/* ============================================================
   WEATHER TILE
   ============================================================ */
.tile-weather {
  gap: 0.75rem;
  align-self: stretch;
}

/* --- Header --- */
.weather-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.weather-location {
  font-size: var(--weather-header-size);
  color: var(--color-secondary);
  font-weight: 500;
}

.weather-updated {
  font-size: var(--weather-header-size);
  color: var(--color-secondary);
  opacity: 0.6;
}

/* --- Current conditions --- */
.weather-current {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-shrink: 0;
}

.weather-current-icon {
  flex-shrink: 0;
  width: var(--weather-icon-size);
  height: var(--weather-icon-size);
}

.weather-current-icon svg {
  width: 100%;
  height: 100%;
}

.weather-current-info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.weather-current-temp {
  font-size: var(--weather-temp-size);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.weather-current-condition {
  font-size: var(--weather-condition-size);
  font-weight: 400;
  color: var(--color-primary);
}

.weather-current-details {
  font-size: var(--weather-details-size);
  color: var(--color-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --- 7-day forecast --- */
.weather-forecast {
  flex: 1;
  display: flex;
  gap: 0.25rem;
  align-items: stretch;
  min-height: var(--weather-chart-height);
}

.forecast-day {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  min-width: 0;
  position: relative;
  border-radius: 0.75rem;
  padding: 0.25rem 0;
}

.forecast-day--today {
  background: rgba(255, 255, 255, 0.035);
}

.forecast-temp-max,
.forecast-temp-min {
  font-size: var(--weather-forecast-temp-size);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  flex-shrink: 0;
  padding: 0.125rem 0;
}

.forecast-temp-max {
  color: var(--color-primary);
  font-weight: 500;
}

.forecast-temp-min {
  color: var(--color-secondary);
}

.forecast-bar-area {
  flex: 1;
  width: 100%;
  position: relative;
  display: flex;
  justify-content: center;
  min-height: 1.25rem;
}

.forecast-bar {
  position: absolute;
  width: var(--weather-bar-width);
  border-radius: 999px;
  background: linear-gradient(to top, var(--color-bar-cool), var(--color-bar-warm));
  height: 0;
  transition: height 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

.forecast-day-icon {
  flex-shrink: 0;
  width: var(--weather-forecast-icon-size);
  height: var(--weather-forecast-icon-size);
  margin: 0.125rem 0;
}

.forecast-day-icon svg {
  width: 100%;
  height: 100%;
}

.forecast-day-label {
  font-size: var(--weather-forecast-label-size);
  color: var(--color-secondary);
  font-weight: 500;
}

.forecast-day--today .forecast-day-label {
  color: var(--color-accent);
}

/* Skeleton */
.weather-skeleton {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
  justify-content: center;
}

.skeleton-block {
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  animation: skeleton-pulse 1.6s ease-in-out infinite;
}

.skeleton-block--sm  { height: 0.875rem; width: 35%; }
.skeleton-block--md  { height: 3rem;     width: 70%; }
.skeleton-block--lg  { height: 6.25rem;  width: 100%; border-radius: 1rem; }

@keyframes skeleton-pulse {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 0.8; }
}

/* Error */
.weather-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  height: 100%;
  text-align: center;
}

.weather-error-text {
  font-size: 1rem;
  color: var(--color-secondary);
}

.weather-error-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--tile-border);
  border-radius: 0.75rem;
  color: var(--color-accent);
  font-family: var(--font-family);
  font-size: 0.9rem;
  padding: 0.5em 1.2em;
  cursor: pointer;
  transition: background 200ms ease;
}

.weather-error-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* ============================================================
   SEARCH BAR
   ============================================================ */

/* The grid-area spacer — NOT a glass tile */
.tile-search {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  padding: 0 !important;
  height: var(--search-height);
  overflow: visible !important;
}

/* The actual glass pill bar, fixed-positioned to center on the viewport */
.search-bar {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  width: var(--search-width);
  height: var(--search-height);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 1.5rem;
  border-radius: 999px;
  background: var(--tile-bg);
  backdrop-filter: var(--tile-blur);
  -webkit-backdrop-filter: var(--tile-blur);
  border: 1px solid var(--tile-border);
  box-shadow: var(--tile-shadow);
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.search-bar:focus-within {
  border-color: rgba(110, 168, 255, 0.3);
  box-shadow: var(--tile-shadow), 0 0 0 0.25rem rgba(110, 168, 255, 0.1);
}

.search-icon {
  flex-shrink: 0;
  width: 1.375rem;
  height: 1.375rem;
  color: var(--color-secondary);
}

.search-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-family: var(--font-family);
  font-size: var(--search-font-size);
  color: var(--color-primary);
  caret-color: var(--color-accent);
  min-width: 0;
}

.search-input::placeholder {
  color: var(--color-secondary);
  opacity: 0.6;
}

.search-input:focus-visible {
  outline: none;
}

/* ============================================================
   QUICK ACCESS TILE
   ============================================================ */
.tile-quickAccess {
  gap: 0.75rem;
  align-self: start;
}

/* --- Header row --- */
.qa-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.qa-header-title {
  font-size: var(--qa-header-size);
  color: var(--color-secondary);
  font-weight: 500;
}

.qa-header-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.875rem;
  border-radius: 999px;
  border: 1px solid var(--tile-border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-secondary);
  font-family: var(--font-family);
  font-size: var(--qa-header-size);
  cursor: pointer;
  transition: background 150ms ease;
}

.qa-header-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.qa-header-btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.qa-header-btn svg {
  width: 0.875rem;
  height: 0.875rem;
}

/* --- Slot grid --- */
.qa-grid {
  display: grid;
  flex: 1;
  grid-template-columns: repeat(var(--qa-columns, 4), var(--qa-slot-size));
  grid-template-rows: repeat(2, 1fr);
  gap: var(--qa-slot-gap);
}

/* --- Slot (shared) --- */
.qa-slot {
  width: var(--qa-slot-size);
  height: auto;
  border-radius: var(--qa-slot-radius);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: background 150ms ease, transform 150ms ease;
}

.qa-slot:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: scale(1.03);
}

/* --- Filled slot link --- */
.qa-slot-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
  width: 100%;
  height: 100%;
  padding: 0.75rem 0.5rem;
}

.qa-slot-link:focus-visible {
  outline: none;
}

.qa-slot--filled:focus-within {
  outline: 2px solid var(--color-accent);
  outline-offset: -2px;
}

.qa-slot-favicon {
  width: var(--qa-favicon-size);
  height: var(--qa-favicon-size);
  border-radius: var(--qa-favicon-radius);
  overflow: hidden;
  flex-shrink: 0;
}

.qa-slot-favicon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.qa-slot-label {
  font-size: var(--qa-label-size);
  color: var(--color-secondary);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
  line-height: 1.2;
}

/* --- Empty slot --- */
.qa-slot--empty {
  cursor: pointer;
}

.qa-slot-add {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #6b7280;
  width: 100%;
  height: 100%;
  font-family: var(--font-family);
  transition: color 150ms ease;
}

.qa-slot--empty:hover .qa-slot-add {
  color: #9ca3af;
}

.qa-slot-plus {
  font-size: 2.5rem;
  line-height: 1;
  font-weight: 300;
}

.qa-slot-add-label {
  font-size: var(--qa-label-size);
}

/* --- Action buttons (edit mode hover only) --- */
.qa-slot-actions {
  position: absolute;
  top: 0.375rem;
  right: 0.375rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  opacity: 0;
  transition: opacity 120ms ease;
  pointer-events: none;
  z-index: 2;
}

/* Show on hover ONLY when grid is in edit mode */
.qa-grid--edit .qa-slot--filled:hover .qa-slot-actions {
  opacity: 1;
  pointer-events: auto;
}

.qa-slot-btn {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 100ms ease;
  padding: 0;
}

.qa-slot-btn:hover {
  transform: scale(1.1);
}

.qa-slot-btn svg {
  width: 1rem;
  height: 1rem;
}

.qa-slot-btn--delete {
  background: #ef4444;
  color: white;
}

.qa-slot-btn--edit {
  background: #facc15;
  color: #1a1a1a;
}

/* --- Drag states --- */
.qa-slot--dragging {
  z-index: 100 !important;
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.45);
  opacity: 0.95;
  pointer-events: none;
}

.qa-slot--dragging:hover {
  transform: none; /* override hover scale during drag */
}

.qa-slot--drop-target {
  outline: 2px solid var(--color-accent);
  outline-offset: -2px;
}

.qa-grid--edit .qa-slot--filled {
  cursor: grab;
}

.qa-grid--edit .qa-slot--filled:active {
  cursor: grabbing;
}

.qa-grid--edit .qa-slot {
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

/* ============================================================
   NOTES TILE
   ============================================================ */
.tile-notes {
  gap: 0.75rem;
  align-self: stretch;
  height: 0;
  min-height: 100%;
}

.notes-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.notes-header-title {
  font-size: var(--qa-header-size);    /* 15px */
  color: var(--color-secondary);
  font-weight: 500;
}

.notes-saved {
  font-size: 0.8125rem;               /* 13px */
  color: var(--color-secondary);
  opacity: 0.5;
  font-variant-numeric: tabular-nums;
}

.notes-textarea {
  flex: 1;
  resize: none;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 0.75rem;
  outline: none;
  font-family: var(--font-family);
  font-size: 1rem;                     /* 16px */
  line-height: 1.5;
  color: var(--color-primary);
  caret-color: var(--color-accent);
  padding: 0.75rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.15) transparent;
  transition: border-color 200ms ease;
}

.notes-textarea::placeholder {
  color: var(--color-secondary);
  opacity: 0.5;
  font-style: italic;
}

.notes-textarea:focus {
  border-color: rgba(110, 168, 255, 0.25);
}

.notes-textarea:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: -2px;
}

.notes-textarea::-webkit-scrollbar {
  width: 6px;
}
.notes-textarea::-webkit-scrollbar-track {
  background: transparent;
}
.notes-textarea::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.15);
  border-radius: 3px;
}

/* ============================================================
   QUICK ACCESS + POMERANCEE STACK (flex container in col-2)
   ============================================================ */
.quick-stack {
  display: flex;
  flex-direction: column;
  gap: var(--grid-gap);
  align-self: stretch;
  min-height: 0;
}

/* ============================================================
   POMERANCEE PROJECTS TILE
   ============================================================ */
.tile-pomeranceeProjects {
  gap: 0.75rem;
  flex: 1 1 auto;
  min-height: 0;
}

.pom-header {
  font-size: var(--qa-header-size);    /* 15px */
  color: var(--color-secondary);
  font-weight: 500;
  flex-shrink: 0;
}

.pom-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.125rem;
}

.pom-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  border-radius: 0.75rem;
  text-decoration: none;
  color: inherit;
  transition: background 150ms ease;
}
.pom-row:hover {
  background: rgba(255,255,255,0.05);
}
.pom-row:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: -2px;
}

.pom-dot {
  width: 0.625rem;           /* 10px */
  height: 0.625rem;
  border-radius: 50%;
  background: var(--dot-color, #22c55e);
  box-shadow: 0 0 6px var(--dot-color, #22c55e);
  flex-shrink: 0;
}

.pom-name {
  flex: 1;
  font-size: 1rem;            /* 16px */
  color: var(--color-primary);
}

.pom-link-icon {
  flex-shrink: 0;
  color: var(--color-secondary);
  opacity: 0.4;
  display: flex;
  align-items: center;
}

/* ============================================================
   STOCKS TILE
   ============================================================ */
.tile-stocks {
  gap: 0.75rem;
  align-self: stretch;
}

.stocks-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
  padding: 0.5rem 0.5rem 1.5rem 0.5rem; /* Generous vertical spacing */
}

.stocks-title {
  font-size: var(--qa-header-size);
  color: var(--color-secondary);
  font-weight: 500;
}

.stocks-updated {
  font-size: 0.8125rem;
  color: var(--color-secondary);
  opacity: 0.5;
  font-variant-numeric: tabular-nums;
}

.stocks-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem; /* Increase vertical spacing between rows */
}

.stocks-row {
  display: grid;
  grid-template-columns: 24fr 56fr 20fr;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 1.25rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.03);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 200ms ease;
}
.stocks-row:hover {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}
.stocks-row:hover .stocks-icon {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

@media (prefers-reduced-motion: reduce) {
  .stocks-row {
    transition: background 200ms ease, border 200ms ease, box-shadow 200ms ease;
  }
  .stocks-row:hover {
    transform: none;
  }
}

.stocks-left {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stocks-icon {
  flex-shrink: 0;
  width: 2rem; /* 32px */
  height: 2rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px; /* Prevent logos from touching edge if they fill the SVG */
}

.stocks-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.stocks-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.stocks-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stocks-ticker {
  font-size: 0.875rem;
  color: var(--color-secondary);
  opacity: 0.6;
}

.stocks-spark {
  width: 100%;
  height: 2.25rem;            /* 36px */
  display: flex;
  align-items: center;
}
.stock-sparkline {
  width: 100%;
  height: 100%;
}

.stocks-right {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.stocks-price {
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--color-primary);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.stocks-change {
  font-size: 0.875rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  margin-top: 0.25rem;
}

@media (max-width: 1400px) {
  .stocks-row {
    grid-template-columns: minmax(140px, 1fr) 2fr minmax(100px, 1fr);
    gap: 1rem;
    padding: 0.75rem 1rem;
  }
  .stocks-icon {
    width: 1.75rem; /* 28px */
    height: 1.75rem;
  }
}

.stocks-error {
  font-size: 0.75rem;
  color: var(--color-secondary);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.stocks-error svg {
  cursor: pointer;
  opacity: 0.5;
}

.skeleton-text {
  color: var(--color-secondary);
  opacity: 0.3;
}

/* ============================================================
   FINANCE NEWS TILE
   ============================================================ */
.tile-financeNews {
  gap: 0.75rem;
  align-self: stretch;
  height: 0;
  min-height: 100%;
}

.news-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.news-title {
  font-size: var(--qa-header-size);
  color: var(--color-secondary);
  font-weight: 500;
}

.news-updated {
  font-size: 0.8125rem;
  color: var(--color-secondary);
  opacity: 0.5;
  font-variant-numeric: tabular-nums;
}

.news-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  min-height: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.15) transparent;
}
.news-list::-webkit-scrollbar { width: 5px; }
.news-list::-webkit-scrollbar-track { background: transparent; }
.news-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 3px; }

.news-row {
  display: flex;
  flex-direction: column;
  padding: 0.5rem 0.625rem;
  border-radius: 0.625rem;
  text-decoration: none;
  color: inherit;
  transition: background 150ms ease;
  flex-shrink: 0;
}
.news-row:hover {
  background: rgba(255,255,255,0.05);
}
.news-row:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: -2px;
}

.news-headline {
  font-size: 0.9375rem;       /* 15px */
  color: var(--color-primary);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-meta {
  font-size: 0.75rem;
  color: var(--color-secondary);
  opacity: 0.6;
  margin-top: 0.125rem;
}

.news-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 0.75rem;
  text-align: center;
  color: var(--color-secondary);
  font-size: 0.9375rem;
}

.news-retry-btn {
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--tile-border);
  border-radius: 0.75rem;
  color: var(--color-accent);
  font-family: var(--font-family);
  font-size: 0.875rem;
  padding: 0.5em 1.2em;
  cursor: pointer;
  transition: background 200ms ease;
}
.news-retry-btn:hover {
  background: rgba(255,255,255,0.12);
}
