  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  :root {
    --bg: #0a0b0f;
    --bg2: #111318;
    --bg3: #181c24;
    --bg4: #1e2330;
    --border: rgba(255,255,255,0.07);
    --border2: rgba(255,255,255,0.12);
    --accent: #9147ff;
    --accent2: #7d33ff;
    --green: #00e676;
    --red: #ff4444;
    --amber: #ffb300;
    --text: #e8eaf0;
    --muted: #7a8099;
    --nvidia: #76b900;
  }

  html, body {
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: 'Rajdhani', sans-serif;
    font-size: 15px;
  }

  body {
    background-image:
      radial-gradient(ellipse 80% 60% at 10% 0%, rgba(145,71,255,0.08) 0%, transparent 60%),
      radial-gradient(ellipse 60% 40% at 90% 100%, rgba(0,230,118,0.04) 0%, transparent 50%);
    padding: 24px;
  }

  /* HEADER */
  .header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
  }

  /* Wetter-Hintergrund Canvas */
  .weather-bg-canvas {
    position: absolute;
    top: -40px;
    left: 0;
    width: 100%;
    height: calc(100% + 40px);
    pointer-events: none;
    z-index: 0;
    opacity: 1;
  }

  /* Begrüßung (mittig zwischen Uhr und DuckBoard) */
  .greeting-block {
    position: absolute;
    left: 28%;
    transform: translateX(-50%);
    z-index: 1;
    font-family: 'JetBrains Mono', monospace;
    font-size: 42px;
    font-weight: 700;
    color: var(--accent);
    opacity: 0.9;
    line-height: 1;
  }
  .greeting-placeholder {
    color: var(--muted);
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.15s, color 0.15s;
    font-size: 28px;
  }
  .greeting-placeholder:hover {
    opacity: 0.8;
    color: var(--accent);
  }

  .clock-block { line-height: 1; position: relative; z-index: 1; }

  .clock-time {
    font-family: 'JetBrains Mono', monospace;
    font-size: 42px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -2px;
    line-height: 1;
  }

  .clock-date {
    font-size: 13px;
    color: var(--muted);
    font-family: 'JetBrains Mono', monospace;
    margin-top: 4px;
    letter-spacing: 1px;
    text-transform: uppercase;
  }

  .header-right {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 1;
  }

  /* DASHBOARD — Freie Widget-Positionierung */
  .dashboard {
    position: relative;
    min-height: 600px;
  }
  .dashboard > [data-widget] {
    position: absolute;
    width: 320px;
    max-width: 600px;
    transition: box-shadow 0.2s;
  }

  /* Während des Drags */
  .dashboard.dragging {
    cursor: grabbing;
  }
  .dashboard.dragging::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(145,71,255,0.12) 1px, transparent 1px);
    background-size: 24px 24px;
    border-radius: 12px;
    pointer-events: none;
    z-index: 0;
  }

  /* Widget das gerade gedraggt wird */
  .widget-dragging {
    z-index: 9999 !important;
    box-shadow: 0 12px 40px rgba(145,71,255,0.25), 0 0 0 2px var(--accent) !important;
    opacity: 0.92;
    cursor: grabbing !important;
  }

  /* Ghost Preview (Snap-Vorschau) */
  .widget-ghost {
    position: absolute;
    background: rgba(145,71,255,0.06);
    border: 2px dashed rgba(145,71,255,0.3);
    border-radius: 12px;
    pointer-events: none;
    z-index: 8999;
    display: none;
    transition: left 0.08s ease, top 0.08s ease;
  }

  /* Swap Target Highlight */
  .widget-swap-target {
    box-shadow: 0 0 0 2px var(--amber), 0 0 20px rgba(255,179,0,0.2) !important;
    transition: box-shadow 0.15s ease !important;
  }

  /* Resize Handle (Dreieck unten rechts) */
  .widget-resize-handle {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 20px;
    height: 20px;
    cursor: nwse-resize;
    z-index: 10;
    overflow: hidden;
  }
  .widget-resize-handle::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 14px 14px;
    border-color: transparent transparent var(--accent) transparent;
    opacity: 0.35;
    transition: opacity 0.15s;
  }
  [data-widget]:hover .widget-resize-handle::before { opacity: 0.7; }
  .widget-resizing { outline: 2px solid var(--accent); outline-offset: -1px; }

  /* Drag-Handle */
  .panel-header { cursor: grab; user-select: none; }
  .panel-header:active { cursor: grabbing; }

  .panel {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
  }

  .panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 12px;
    border-bottom: 1px solid var(--border);
    background: var(--bg3);
    min-height: unset;
  }

  .panel-title {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted);
    line-height: 1;
    display: flex;
    align-items: center;
    gap: 7px;
  }

  .panel-title .dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent);
  }

  .panel-title .dot.green { background: var(--green); }
  .panel-title .dot.nvidia { background: var(--nvidia); }


  /* TWITCH GRID */
  .twitch-panel { align-self: stretch; }


  .streamer-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
  }


  .streamer-card {
    padding: 5px 10px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: background 0.15s;
    text-decoration: none;
    color: inherit;
    position: relative;
    border-bottom: 1px solid var(--border);
  }

  .streamer-card:hover { background: var(--bg3); }

  .streamer-card.live::before {
    content: '';
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 2px;
    background: var(--green);
  }

  .streamer-card.checking { opacity: 0.5; }

  .streamer-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
  }

  .streamer-status {
    font-size: 11px;
    color: var(--muted);
    font-family: 'JetBrains Mono', monospace;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .streamer-card.live .streamer-status { color: var(--green); }

  .live-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--green);
  }

  .live-badge::before {
    content: '';
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--green);
    animation: pulse 1.5s ease-in-out infinite;
  }

  @keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
  }

  .viewer-count {
    font-size: 11px;
    color: var(--muted);
    font-family: 'JetBrains Mono', monospace;
  }

  /* SIDEBAR */
  .sidebar { display: flex; flex-direction: column; gap: 16px; }

  /* WEATHER */
  .weather-content { padding: 8px 12px; }

  .weather-main {
    display: flex;
    gap: 12px;
  }

  .weather-temp {
    font-size: 52px;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
    font-family: 'JetBrains Mono', monospace;
  }

  .weather-icon { font-size: 42px; line-height: 1; }

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

  .weather-detail {
    background: var(--bg3);
    border-radius: 6px;
    padding: 8px 10px;
  }

  .weather-detail-label {
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 2px;
  }

  .weather-detail-val {
    font-size: 16px;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
  }

  .weather-desc {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 12px;
  }

  .weather-city-input {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
  }

  .weather-city-input input {
    flex: 1;
    background: var(--bg3);
    border: 1px solid var(--border2);
    border-radius: 6px;
    color: var(--text);
    font-family: 'Rajdhani', sans-serif;
    font-size: 14px;
    padding: 5px 10px;
    outline: none;
  }

  .weather-city-input input:focus { border-color: var(--accent); }

  .btn-sm {
    background: var(--bg4);
    border: 1px solid var(--border2);
    border-radius: 5px;
    color: var(--text);
    font-family: 'Rajdhani', sans-serif;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 7px;
    line-height: 1.4;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
  }

  .btn-sm:hover { background: var(--bg3); border-color: var(--accent); color: var(--accent); }

  /* DRIVERS */
  .driver-list { padding: 8px 0; }

  .driver-item {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    padding: 6px 14px;
    border-bottom: 1px solid var(--border);
    color: inherit;
    transition: background 0.15s;
  }

  .driver-item:last-child { border-bottom: none; }
  .driver-item:hover { background: var(--bg3); }

  .driver-logo {
    width: 32px; height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
    flex-shrink: 0;
  }

  .driver-logo.nv {
    background: rgba(118,185,0,0.12);
    border: 1px solid rgba(118,185,0,0.3);
    color: var(--nvidia);
  }


  .driver-info { flex: 1; min-width: 0; }

  .driver-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .driver-version {
    font-size: 12px;
    color: var(--muted);
    font-family: 'JetBrains Mono', monospace;
  }

  .driver-date {
    font-size: 11px;
    color: var(--muted);
    font-family: 'JetBrains Mono', monospace;
    white-space: nowrap;
  }


  /* STATUS BAR */

  /* REFRESH BTN */
  .refresh-btn {
    background: var(--bg3);
    border: 1px solid var(--border2);
    border-radius: 6px;
    color: var(--muted);
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    padding: 4px 10px;
    cursor: pointer;
    transition: all 0.15s;
  }

  .refresh-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--bg4); }
  .refresh-btn.spinning { animation: spin 1s linear infinite; }
  @keyframes spin { to { transform: rotate(360deg); } }

  /* TWITCH OAUTH */
  .auth-note {
    font-size: 12px;
    color: var(--muted);
    padding: 8px 14px;
    background: rgba(145,71,255,0.06);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
  }

  .auth-link {
    color: var(--accent);
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
  }

  .auth-link:hover { text-decoration: underline; }

  .setup-box {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .setup-box label {
    font-size: 12px;
    color: var(--muted);
    letter-spacing: 1px;
    text-transform: uppercase;
  }

  .setup-box input {
    background: var(--bg3);
    border: 1px solid var(--border2);
    border-radius: 6px;
    color: var(--text);
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    padding: 7px 12px;
    outline: none;
    width: 100%;
  }

  .setup-box input:focus { border-color: var(--accent); }

  .setup-row { display: flex; gap: 8px; }

  .btn-primary {
    background: var(--accent);
    border: none;
    border-radius: 6px;
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 14px;
    font-weight: 700;
    padding: 7px 16px;
    cursor: pointer;
    transition: background 0.15s;
    letter-spacing: 0.5px;
  }

  .btn-primary:hover { background: var(--accent2); }

  .hint {
    font-size: 11px;
    color: var(--muted);
    line-height: 1.5;
  }

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

  /* TWITCH ERROR / LOADING */
  .msg-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
    text-align: center;
  }

  .msg-center .big { font-size: 32px; }

  /* LOADING SKELETON */



  /* INFO TOOLTIP */
  .info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    border: 1px solid var(--muted);
    color: var(--muted);
    font-size: 8px;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    cursor: default;
    flex-shrink: 0;
    position: relative;
    margin-left: 4px;
    line-height: 1;
    transition: border-color 0.15s, color 0.15s;
  }
  .info-icon:hover { border-color: var(--text); color: var(--text); }
  .info-tooltip {
    display: none;
    position: fixed;
    background: var(--bg3);
    border: 1px solid var(--border2);
    border-radius: 8px;
    padding: 10px 13px;
    width: 240px;
    font-size: 11px;
    line-height: 1.6;
    color: var(--muted);
    z-index: 8888;
    pointer-events: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  }
  .info-tooltip strong {
    display: block;
    color: var(--text);
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 4px;
  }
  .info-tooltip hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 6px 0;
  }
  .info-icon:hover .info-tooltip { display: block; }

  /* KALENDER */
  .cal-widget { padding: 6px 10px 8px; }
  .cal-nav-row {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
  }
  .cal-month-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.5px;
  }
  .cal-grid-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 3px;
  }
  .cal-dow {
    text-align: center;
    font-size: 9px;
    font-weight: 700;
    color: var(--muted);
    letter-spacing: 0.5px;
    padding: 2px 0;
  }
  .cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
  }
  .cal-cell {
    min-height: 28px;
    border-radius: 4px;
    padding: 2px 3px;
    position: relative;
    font-size: 11px;
    cursor: default;
    overflow: hidden;
  }
  .cal-cell.empty { background: transparent; }
  .cal-num {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
  }
  .cal-cell.cal-weekend .cal-num { color: var(--muted); }
  .cal-cell.cal-today {
    background: rgba(145,71,255,0.2);
    border: 1px solid var(--accent);
  }
  .cal-cell.cal-today .cal-num { color: var(--accent); font-weight: 800; }
  .cal-cell.cal-feiertag {
    background: rgba(229,57,53,0.15);
    border: 1px solid rgba(229,57,53,0.4);
  }
  .cal-cell.cal-feiertag .cal-num { color: #ef5350; font-weight: 700; }
  .cal-cell.cal-ferien {
    background: rgba(21,101,192,0.12);
  }
  .cal-cell.cal-ferien .cal-num { color: #64b5f6; }
  .cal-label {
    display: block;
    font-size: 7px;
    color: #ef5350;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
    margin-top: 1px;
  }
  .cal-ferien-label { color: #64b5f6 !important; }
  .cal-legend {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid var(--border);
  }
  .cal-leg-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    color: var(--muted);
  }
  .cal-dot-l {
    width: 8px; height: 8px;
    border-radius: 2px;
    display: inline-block;
    flex-shrink: 0;
  }

  /* WIDGET COLLAPSE */
  .panel-body {
    transition: max-height 0.3s ease, opacity 0.2s ease;
    overflow: hidden;
    max-height: 2000px;
    opacity: 1;
  }
  .panel.collapsed .panel-body {
    max-height: 0;
    opacity: 0;
  }
  .panel.collapsed .widget-resize-handle { display: none !important; }
  .collapse-btn {
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
    font-size: 10px;
    padding: 0 4px;
    line-height: 1;
    transition: transform 0.2s;
  }
  .panel.collapsed .collapse-btn { transform: rotate(-90deg); }

  /* GAME DEALS */
  .deal-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 12px;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
    position: relative;
  }
  .deal-item:last-child { border-bottom: none; }
  .deal-item:hover { background: var(--bg3); }
  .deal-new-badge {
    position: absolute;
    top: 2px;
    left: 4px;
    font-size: 7px;
    padding: 1px 4px;
    z-index: 1;
  }
  .deal-thumb {
    width: 40px;
    height: 28px;
    object-fit: cover;
    border-radius: 3px;
    flex-shrink: 0;
    background: var(--bg4);
  }
  .deal-info { flex: 1; min-width: 0; }
  .deal-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .deal-prices {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
  }
  .deal-sale {
    font-size: 12px;
    font-weight: 700;
    color: var(--green);
    font-family: 'JetBrains Mono', monospace;
  }
  .deal-normal {
    font-size: 10px;
    color: var(--muted);
    text-decoration: line-through;
    font-family: 'JetBrains Mono', monospace;
  }
  .deal-badge {
    font-size: 9px;
    font-weight: 800;
    background: var(--green);
    color: #000;
    padding: 1px 4px;
    border-radius: 3px;
  }
  .deal-date {
    font-size: 9px;
    color: var(--muted);
    font-family: 'JetBrains Mono', monospace;
    margin-left: auto;
  }

  /* DEALS SCROLL — fester Viewport, translateY */
  .deals-viewport {
    overflow: hidden;
    position: relative;
  }
  .deals-inner {
    will-change: transform;
  }

  /* REDDIT WIDGET */
  .reddit-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
  }
  .reddit-item:last-child { border-bottom: none; }
  .reddit-item:hover { background: var(--bg3); }
  .reddit-thumb {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
    background: var(--bg4);
  }
  .reddit-thumb-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
  }
  .reddit-info { flex: 1; min-width: 0; }
  .reddit-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
  }
  .reddit-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
    flex-wrap: nowrap;
    overflow: hidden;
  }
  .reddit-sub {
    font-size: 10px;
    font-weight: 700;
    color: #ff6314;
    font-family: 'JetBrains Mono', monospace;
    flex-shrink: 0;
  }
  .reddit-author {
    font-size: 10px;
    color: var(--muted);
    font-family: 'JetBrains Mono', monospace;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .reddit-age {
    font-size: 10px;
    color: var(--muted);
    font-family: 'JetBrains Mono', monospace;
    flex-shrink: 0;
  }
  .reddit-flair {
    font-size: 9px;
    font-weight: 700;
    background: rgba(145,71,255,0.15);
    color: var(--accent);
    padding: 1px 4px;
    border-radius: 3px;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .reddit-pin { font-size: 10px; margin-right: 2px; }
  .reddit-nsfw {
    font-size: 8px;
    font-weight: 800;
    background: var(--red);
    color: #fff;
    padding: 1px 3px;
    border-radius: 2px;
    margin-right: 3px;
    flex-shrink: 0;
  }
  .reddit-stats {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    flex-shrink: 0;
    min-width: 42px;
  }
  .reddit-score {
    font-size: 11px;
    font-weight: 700;
    color: #ff6314;
    font-family: 'JetBrains Mono', monospace;
  }
  .reddit-comments {
    font-size: 10px;
    color: var(--muted);
    font-family: 'JetBrains Mono', monospace;
  }
  .reddit-viewport { overflow: hidden; position: relative; }
  .reddit-inner { will-change: transform; }
  .reddit-sub-input {
    width: 100%;
    background: var(--bg4);
    border: 1px solid var(--border2);
    border-radius: 4px;
    color: var(--text);
    font-size: 11px;
    padding: 4px 6px;
    font-family: 'JetBrains Mono', monospace;
    resize: none;
  }
  .reddit-sub-input::placeholder { color: var(--muted); }
  .reddit-sub-input:focus { outline: none; border-color: #ff6314; }

  /* NUMBER INPUT: kein Spinner */
  input[type=number]::-webkit-inner-spin-button,
  input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
  input[type=number] { -moz-appearance: textfield; text-align: right; }

  /* NEWS BADGE */
  .news-badge {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #fff;
    background: var(--accent);
    padding: 1px 5px;
    border-radius: 3px;
    flex-shrink: 0;
    text-transform: uppercase;
    line-height: 1.4;
  }

  /* CLAUDE NEWS */
  .news-item {
    padding: 6px 14px;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    display: block;
    transition: background 0.15s;
  }
  .news-item:last-child { border-bottom: none; }
  .news-item:hover { background: var(--bg3); }
  .news-date {
    font-size: 10px;
    font-family: 'JetBrains Mono', monospace;
    color: var(--muted);
    letter-spacing: 0.5px;
    margin-bottom: 1px;
  }
  .news-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
    margin-bottom: 0;
  }
  .news-body {
    font-size: 11px;
    color: var(--muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .skeleton {
    background: linear-gradient(90deg, var(--bg3) 25%, var(--bg4) 50%, var(--bg3) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
    height: 12px;
  }

  @keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
  }

  /* OVERLAY PANELS (Settings, Changelog) */
  .overlay-panel {
    display: none;
    position: fixed;
    top: 70px;
    right: 24px;
    background: var(--bg2);
    border: 1px solid var(--border2);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.6);
    z-index: 9998;
  }
  .overlay-panel.settings { width: 400px; max-height: 85vh; overflow-y: auto; }
  .overlay-panel.changelog { width: 420px; max-height: 75vh; overflow-y: auto; z-index: 9999; }
  .overlay-panel.backup { width: 360px; max-height: 85vh; overflow-y: auto; z-index: 10000; top: 50%; left: 50%; transform: translate(-50%, -50%); right: auto; }
  .overlay-panel.guide { width: 460px; max-height: 82vh; overflow-y: auto; z-index: 10001; top: 50%; left: 50%; transform: translate(-50%, -50%); right: auto; }

  /* Guide Home */
  .guide-home-section {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 14px;
  }
  .guide-home-section p { margin-bottom: 6px; }
  .guide-home-section strong { color: var(--text); }
  .guide-home-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
  }
  .guide-home-about {
    padding-top: 14px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--muted);
    line-height: 1.7;
  }
  .guide-home-about p { margin-bottom: 4px; }
  .guide-home-about strong { color: var(--text); }

  /* Guide Navigation — immer oben */
  .guide-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 0 12px 0;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: var(--bg2);
    z-index: 1;
  }
  .guide-nav-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    background: var(--bg4);
    border: 1px solid var(--border2);
    border-radius: 6px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    font-family: 'Rajdhani', sans-serif;
    color: var(--muted);
    padding: 5px 10px;
    line-height: 1;
    transition: all 0.15s;
  }
  .guide-nav-btn span { white-space: nowrap; }
  .guide-nav-btn:hover {
    background: rgba(145,71,255,0.12);
    border-color: var(--accent);
    color: var(--text);
  }
  .guide-nav-active {
    background: rgba(145,71,255,0.2) !important;
    border-color: var(--accent) !important;
    color: var(--text) !important;
  }

  /* Detail-Ansicht */
  .guide-detail-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
  }
  .guide-detail-header span { font-size: 16px; }
  .guide-detail-body {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.7;
  }
  .guide-detail-body p { margin-bottom: 8px; }
  .guide-detail-body p:last-child { margin-bottom: 0; }
  .guide-detail-body strong { color: var(--text); }
  .guide-detail-body em { color: var(--accent); font-style: normal; }
  .guide-detail-body code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    background: var(--bg4);
    padding: 1px 5px;
    border-radius: 3px;
    color: var(--green);
  }
  .guide-detail-body ul {
    list-style: none;
    padding: 0;
    margin: 6px 0 8px 0;
  }
  .guide-detail-body li {
    padding: 3px 0 3px 16px;
    position: relative;
  }
  .guide-detail-body li::before {
    content: '·';
    position: absolute;
    left: 3px;
    color: var(--accent);
    font-weight: 700;
  }

  .overlay-header {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    background: var(--bg3);
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    user-select: none;
  }
  .overlay-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted);
  }
  .overlay-close {
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
    font-size: 18px;
    padding: 0 4px;
    line-height: 1;
  }
  .overlay-close:hover { color: var(--text); }
  .overlay-body { padding: 12px 18px; }

  .section-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--muted);
    text-transform: uppercase;
    margin-bottom: 8px;
  }
  .section-divider {
    border-top: 1px solid var(--border);
    margin: 12px 0;
  }
  .btn-danger {
    width: 100%;
    background: rgba(220,50,50,0.12);
    border: 1px solid rgba(220,50,50,0.3);
    border-radius: 6px;
    color: #ef5350;
    cursor: pointer;
    font-family: 'Rajdhani', sans-serif;
    font-size: 12px;
    font-weight: 600;
    padding: 7px;
    letter-spacing: 1px;
  }
  .btn-danger:hover { background: rgba(220,50,50,0.2); }

  /* HEADER CENTER (title + duck) */
  .header-center {
    display: flex;
    align-items: center;
    gap: 14px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
  }
  .header-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 56px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -2px;
    line-height: 1;
  }
  .header-edition {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
  }
  .edition-car {
    width: 22px;
    height: auto;
    color: var(--accent);
  }

  /* NOTIZ TABS */
  .notiz-tabs-row {
    display: flex;
    gap: 3px;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    align-items: center;
  }
  .notiz-tab {
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 5px 5px 0 0;
    color: var(--muted);
    cursor: pointer;
    font-family: 'Rajdhani', sans-serif;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    transition: all 0.15s;
    white-space: nowrap;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .notiz-tab:hover { color: var(--text); border-color: var(--border2); }
  .notiz-tab.active {
    background: var(--bg2);
    color: var(--accent);
    border-color: var(--accent);
    border-bottom-color: var(--bg2);
  }
  .notiz-tab-add {
    background: transparent;
    border: 1px dashed var(--border2);
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 5px;
  }
  .notiz-tab-add:hover { border-color: var(--accent); background: rgba(145,71,255,0.08); }

  .notiz-tab-delete {
    margin-left: 4px;
    font-size: 9px;
    color: var(--muted);
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.15s, color 0.15s;
  }
  .notiz-tab-delete:hover { opacity: 1; color: var(--red); }

  /* KALENDER: Erinnerungen */
  .cal-cell.cal-reminder {
    background: rgba(255,179,0,0.12);
    border: 1px solid rgba(255,179,0,0.35);
  }
  .cal-cell.cal-reminder .cal-num { color: var(--amber); }
  /* Wenn Reminder + Today zusammenfallen, Today gewinnt optisch */
  .cal-cell.cal-today.cal-reminder {
    background: rgba(145,71,255,0.2);
    border-color: var(--accent);
  }
  .cal-cell.cal-today.cal-reminder .cal-num { color: var(--accent); }
  .cal-reminder-dot {
    font-size: 6px;
    position: absolute;
    top: 2px;
    right: 3px;
    line-height: 1;
  }
  .cal-reminder-label {
    color: var(--amber) !important;
    font-size: 7px;
  }

  /* KALENDER: Erinnerungsliste */
  .cal-reminders-list {
    padding: 6px 0;
    margin-top: 6px;
    border-top: 1px solid var(--border);
  }

  /* REMINDER ALERT — zentriert, auffällig */
  .reminder-alert-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    animation: alertFadeIn 0.3s ease-out;
  }
  .reminder-alert-card {
    background: var(--bg2);
    border: 2px solid var(--amber);
    border-radius: 16px;
    padding: 32px 40px;
    text-align: center;
    min-width: 300px;
    max-width: 420px;
    box-shadow:
      0 0 40px rgba(255,179,0,0.2),
      0 0 80px rgba(255,179,0,0.1),
      0 20px 60px rgba(0,0,0,0.5);
    animation: alertPulse 2s ease-in-out infinite;
  }
  .reminder-alert-icon {
    font-size: 48px;
    margin-bottom: 12px;
    animation: alertBell 0.6s ease-in-out;
  }
  .reminder-alert-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
    line-height: 1.3;
  }
  .reminder-alert-time {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    color: var(--amber);
    margin-bottom: 16px;
  }
  .reminder-alert-dismiss {
    background: var(--amber);
    border: none;
    border-radius: 8px;
    color: #000;
    font-family: 'Rajdhani', sans-serif;
    font-size: 15px;
    font-weight: 700;
    padding: 8px 32px;
    cursor: pointer;
    letter-spacing: 1px;
    transition: background 0.15s;
  }
  .reminder-alert-dismiss:hover { background: #ffc107; }

  /* ── WAS IST NEU? ── */
  .whatsnew-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    animation: alertFadeIn 0.3s ease-out;
  }
  .whatsnew-card {
    background: var(--bg2);
    border: 2px solid var(--accent);
    border-radius: 16px;
    padding: 28px 32px 24px;
    text-align: center;
    min-width: 340px;
    max-width: 480px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow:
      0 0 40px rgba(145,71,255,0.15),
      0 0 80px rgba(145,71,255,0.08),
      0 20px 60px rgba(0,0,0,0.5);
    animation: alertPulse 3s ease-in-out infinite;
  }
  .whatsnew-badge {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 20px;
    letter-spacing: 1px;
    margin-bottom: 10px;
  }
  .whatsnew-heading {
    font-size: 26px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
  }
  .whatsnew-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 4px;
  }
  .whatsnew-date {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--muted);
    margin-bottom: 14px;
  }
  .whatsnew-items {
    text-align: left;
    max-height: 40vh;
    overflow-y: auto;
    padding-right: 6px;
    padding-bottom: 4px;
  }
  .whatsnew-items::-webkit-scrollbar { width: 4px; }
  .whatsnew-items::-webkit-scrollbar-track { background: transparent; }
  .whatsnew-items::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 4px; opacity: 0.5; }
  .whatsnew-scroll-wrapper {
    position: relative;
    margin-bottom: 18px;
  }
  .whatsnew-scroll-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 32px;
    background: linear-gradient(transparent, var(--bg2));
    pointer-events: none;
    transition: opacity 0.2s;
    border-radius: 0 0 8px 8px;
  }
  .whatsnew-item {
    font-size: 12px;
    color: var(--text);
    opacity: 0.85;
    padding: 3px 0 3px 16px;
    position: relative;
    line-height: 1.4;
  }
  .whatsnew-dot {
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 8px;
    top: 5px;
  }
  .whatsnew-more {
    font-size: 11px;
    color: var(--muted);
    padding: 6px 0 0 16px;
    font-style: italic;
  }
  .whatsnew-btn {
    background: var(--accent);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    padding: 10px 36px;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: opacity 0.15s, transform 0.1s;
  }
  .whatsnew-btn:hover { opacity: 0.85; transform: scale(1.02); }

  @keyframes alertFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
  }
  @keyframes alertPulse {
    0%, 100% { box-shadow: 0 0 40px rgba(255,179,0,0.2), 0 0 80px rgba(255,179,0,0.1), 0 20px 60px rgba(0,0,0,0.5); }
    50%      { box-shadow: 0 0 60px rgba(255,179,0,0.35), 0 0 120px rgba(255,179,0,0.15), 0 20px 60px rgba(0,0,0,0.5); }
  }
  @keyframes alertBell {
    0%   { transform: rotate(0deg); }
    20%  { transform: rotate(15deg); }
    40%  { transform: rotate(-15deg); }
    60%  { transform: rotate(10deg); }
    80%  { transform: rotate(-5deg); }
    100% { transform: rotate(0deg); }
  }

  /* SPEEDTEST */
  .st-gauge-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 0 4px;
  }
  .st-phase-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 4px;
  }
  .st-results-bar {
    display: flex;
    justify-content: center;
    gap: 16px;
    padding: 8px 12px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
  }
  .st-result {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
  }
  .st-result .st-label {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--muted);
  }
  .st-result .st-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    font-weight: 700;
  }

  /* ── SETTINGS: Tab-Bar ── */
  .settings-tab-bar {
    display: flex;
    border-bottom: 1px solid var(--border);
    background: var(--bg3);
    padding: 0 4px;
  }
  .stab {
    display: flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--muted);
    cursor: pointer;
    font-family: 'Rajdhani', sans-serif;
    font-size: 11px;
    font-weight: 600;
    padding: 8px 10px 6px;
    transition: all 0.15s;
    white-space: nowrap;
  }
  .stab:hover { color: var(--text); background: rgba(255,255,255,0.03); }
  .stab-active {
    color: var(--accent) !important;
    border-bottom-color: var(--accent) !important;
  }
  .stab span { pointer-events: none; }

  /* ── SETTINGS: Widget Rows ── */
  .sw-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
  }
  .sw-row:last-child { border-bottom: none; }
  .sw-icon { flex-shrink: 0; width: 16px; height: 16px; display: flex; align-items: center; justify-content: center; }
  .sw-name {
    flex: 1;
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
    transition: opacity 0.15s;
  }
  .sw-toggles { display: flex; align-items: center; gap: 6px; }

  /* Toggle Switch */
  .sw-toggle {
    position: relative;
    width: 34px;
    height: 18px;
    background: var(--bg4);
    border: 1px solid var(--border2);
    border-radius: 9px;
    cursor: pointer;
    padding: 0;
    transition: all 0.2s;
    flex-shrink: 0;
  }
  .sw-toggle-knob {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 12px;
    height: 12px;
    background: var(--muted);
    border-radius: 50%;
    transition: all 0.2s;
    pointer-events: none;
  }
  .sw-toggle-on {
    background: rgba(0,230,118,0.15);
    border-color: rgba(0,230,118,0.4);
  }
  .sw-toggle-on .sw-toggle-knob {
    left: 18px;
    background: var(--green);
  }

  /* Collapse Button */
  .sw-collapse-btn {
    background: var(--bg4);
    border: 1px solid var(--border2);
    border-radius: 4px;
    color: var(--muted);
    cursor: pointer;
    font-size: 9px;
    padding: 2px 5px;
    line-height: 1;
    transition: all 0.15s;
  }
  .sw-collapse-btn:hover { border-color: var(--accent); color: var(--accent); }
  .sw-collapsed { color: var(--accent); }
  .sw-has-size { color: var(--amber) !important; border-color: rgba(255,179,0,0.3) !important; }

  /* Widget Category Header */
  .sw-cat-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    cursor: pointer;
    user-select: none;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--text);
    margin-top: 6px;
    background: var(--bg4);
    border-radius: 6px;
    border-left: 3px solid var(--accent);
    transition: background 0.15s;
  }
  .sw-cat-header:first-child { margin-top: 0; }
  .sw-cat-header:hover { background: var(--bg3); }

  /* Setting Row (Matrix etc.) */
  .sw-setting-row {
    font-size: 11px;
    color: var(--text);
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  /* ── THEME COLOR GRID ── */
  .theme-color-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 4px;
  }
  .theme-color-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg4);
    border: 1px solid var(--border2);
    border-radius: 5px;
    padding: 6px 8px;
    cursor: pointer;
    transition: all 0.15s;
    text-align: left;
  }
  .theme-color-btn:hover { background: var(--bg3); }
  .theme-active { border-color: var(--accent) !important; background: var(--bg3) !important; }
  .theme-color-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
  }
  .theme-color-name {
    font-size: 11px;
    font-weight: 600;
    color: var(--text);
  }

  /* ── THEME FONT GRID ── */
  .theme-font-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 4px;
  }
  .theme-font-btn {
    background: var(--bg4);
    border: 1px solid var(--border2);
    border-radius: 5px;
    padding: 6px 8px;
    cursor: pointer;
    transition: all 0.15s;
    text-align: center;
    color: var(--text);
  }
  .theme-font-btn:hover { background: var(--bg3); }

  /* ── BACKGROUND SECTIONS ── */
  .bg-section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    cursor: pointer;
    user-select: none;
    background: var(--bg4);
    border-radius: 6px;
    border-left: 3px solid var(--accent);
    transition: background 0.15s;
  }
  .bg-section-header:hover { background: var(--bg3); }
  .bg-section-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 4px 0 4px 20px;
  }

  /* Wallpaper Grid */
  .wp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
  }
  .wp-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg4);
    border: 1px solid var(--border2);
    border-radius: 5px;
    padding: 7px 10px;
    cursor: pointer;
    transition: all 0.15s;
    text-align: left;
    color: var(--text);
  }
  .wp-btn:hover { background: var(--bg3); }
  .wp-btn-active { border-color: var(--accent) !important; background: var(--bg3) !important; }
  .wp-icon { font-size: 14px; flex-shrink: 0; }
  .wp-name { font-size: 11px; font-weight: 600; }

  /* ── PERFORMANCE WIDGET ── */
  .perf-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--border);
  }
  .perf-item {
    background: var(--bg2);
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
  }
  .perf-label {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--muted);
  }
  .perf-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 20px;
    font-weight: 700;
    color: var(--green);
    line-height: 1;
  }
  .perf-graph {
    width: 100%;
    height: 30px;
    margin-top: 2px;
  }

  /* ── SHORTCUTS ── */
  .sc-search {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border-bottom: 1px solid var(--border);
  }
  .sc-search-input {
    flex: 1;
    background: var(--bg4);
    border: 1px solid var(--border2);
    border-radius: 4px;
    color: var(--text);
    font-size: 12px;
    font-family: inherit;
    padding: 5px 8px;
    outline: none;
  }
  .sc-search-input:focus { border-color: var(--accent); }
  .sc-search-btn {
    background: var(--accent);
    border: none;
    border-radius: 4px;
    color: #fff;
    font-size: 12px;
    padding: 4px 8px;
    cursor: pointer;
    font-weight: 700;
  }
  .sc-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 8px 10px;
  }
  .sc-link {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg4);
    border: 1px solid var(--border2);
    border-radius: 5px;
    padding: 5px 10px;
    text-decoration: none;
    color: var(--text);
    font-size: 11px;
    font-weight: 600;
    transition: border-color 0.15s, background 0.15s;
    position: relative;
  }
  .sc-link:hover { border-color: var(--accent); background: var(--bg3); }
  .sc-favicon { flex-shrink: 0; border-radius: 2px; }
  .sc-del {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--red);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 8px;
    width: 14px;
    height: 14px;
    line-height: 14px;
    text-align: center;
    cursor: pointer;
    padding: 0;
  }
  .sc-add-form {
    display: flex;
    gap: 4px;
    padding: 6px 10px 10px;
    border-top: 1px solid var(--border);
  }
  .sc-add-input {
    background: var(--bg4);
    border: 1px solid var(--border2);
    border-radius: 4px;
    color: var(--text);
    font-size: 11px;
    font-family: inherit;
    padding: 4px 6px;
    outline: none;
  }
  .sc-add-input:focus { border-color: var(--accent); }

  /* ── MAPGENIE ── */
  .mg-search {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-bottom: 1px solid var(--border);
  }
  .mg-search-input {
    flex: 1;
    background: var(--bg4);
    border: 1px solid var(--border2);
    border-radius: 4px;
    color: var(--text);
    font-size: 11px;
    font-family: inherit;
    padding: 4px 8px;
    outline: none;
  }
  .mg-search-input:focus { border-color: var(--accent); }
  .mg-count {
    font-size: 9px;
    color: var(--muted);
    font-family: 'JetBrains Mono', monospace;
    white-space: nowrap;
  }
  .mg-list {
    max-height: 220px;
    overflow-y: auto;
  }
  .mg-list::-webkit-scrollbar { width: 3px; }
  .mg-list::-webkit-scrollbar-track { background: transparent; }
  .mg-list::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }
  .mg-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    text-decoration: none;
    color: var(--text);
    font-size: 11px;
    border-bottom: 1px solid var(--border);
    transition: background 0.12s;
  }
  .mg-item:last-child { border-bottom: none; }
  .mg-item:hover { background: var(--bg3); }
  .mg-icon { flex-shrink: 0; opacity: 0.6; border-radius: 2px; }
  .mg-name { flex: 1; font-weight: 500; }
  .mg-arrow { color: var(--muted); font-size: 10px; opacity: 0; transition: opacity 0.12s; }
  .mg-item:hover .mg-arrow { opacity: 1; color: var(--accent); }

  /* ── STEAM CHARTS ── */
  .scc-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 10px;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    transition: background 0.12s;
    font-size: 11px;
  }
  .scc-item:last-child { border-bottom: none; }
  .scc-item:hover { background: var(--bg3); }
  .scc-rank {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 700;
    min-width: 24px;
    text-align: right;
    flex-shrink: 0;
  }
  .scc-name {
    flex: 1;
    font-weight: 500;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .scc-ccu {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: var(--green);
    font-weight: 600;
    flex-shrink: 0;
    white-space: nowrap;
  }
  #steamcharts-display {
    overflow-y: auto;
  }
  #steamcharts-display::-webkit-scrollbar { width: 3px; }
  #steamcharts-display::-webkit-scrollbar-track { background: transparent; }
  #steamcharts-display::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

  /* ── STEAM CHARTS ── */
  .sc-list { max-height: 340px; overflow-y: auto; }
  .sc-list::-webkit-scrollbar { width: 3px; }
  .sc-list::-webkit-scrollbar-track { background: transparent; }
  .sc-list::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }
  .sc-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-bottom: 1px solid var(--border);
    font-size: 11px;
  }
  .sc-row:last-child { border-bottom: none; }
  .sc-rank {
    width: 18px;
    text-align: right;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 700;
    color: var(--muted);
    flex-shrink: 0;
  }
  .sc-game {
    flex: 1;
    font-weight: 500;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .sc-players {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    color: var(--accent);
    min-width: 45px;
    text-align: right;
    flex-shrink: 0;
  }
  .sc-trend { font-size: 9px; width: 12px; text-align: center; flex-shrink: 0; }
  .sc-up { color: var(--green); }
  .sc-down { color: var(--red); }
  .sc-flat { color: var(--muted); font-size: 7px; }
  /* ══════════════════════════════════════ */
  /* WIDGET STYLES                         */
  /* ══════════════════════════════════════ */

  /* ── Glassmorphism ── */
  .ws-glass .panel {
    background: rgba(17, 19, 24, 0.55);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
  }
  .ws-glass .panel-header {
    background: rgba(24, 28, 36, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  /* ── Borderless ── */
  .ws-borderless .panel {
    background: var(--bg2);
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 1px 4px rgba(0, 0, 0, 0.2);
  }
  .ws-borderless .panel-header {
    border-bottom: 1px solid var(--border);
  }

  /* ── Neon Glow ── */
  .ws-neon .panel {
    background: var(--bg2);
    border: 1px solid var(--accent);
    box-shadow: 0 0 8px rgba(var(--accent-rgb), 0.15), 0 0 20px rgba(var(--accent-rgb), 0.06), inset 0 0 12px rgba(var(--accent-rgb), 0.03);
  }
  .ws-neon .panel-header {
    background: var(--bg3);
    border-bottom: 1px solid var(--accent);
  }
  .ws-neon .panel:hover {
    box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.25), 0 0 30px rgba(var(--accent-rgb), 0.1), inset 0 0 16px rgba(var(--accent-rgb), 0.05);
  }

  /* ── Minimal ── */
  .ws-minimal .panel {
    background: var(--bg2);
    border: none;
    border-radius: 4px;
    box-shadow: none;
  }
  .ws-minimal .panel-header {
    background: transparent;
    border-bottom: 1px solid var(--border);
  }

  /* ── Rounded ── */
  .ws-rounded .panel {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 20px;
  }
  .ws-rounded .panel-header {
    background: var(--bg3);
    border-bottom: 1px solid var(--border);
    border-radius: 20px 20px 0 0;
  }

  /* ══════════════════════════════════════ */
  /* SNAKE GAME                            */
  /* ══════════════════════════════════════ */
  .snake-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
  }
  .snake-container {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    min-width: 400px;
    max-width: 720px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(1.2);
    transform-origin: center center;
  }
  .snake-container::-webkit-scrollbar { width: 3px; }
  .snake-container::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }
  .snake-close {
    position: absolute; top: 8px; right: 10px;
    background: none; border: none; color: var(--muted);
    font-size: 18px; cursor: pointer; line-height: 1; z-index: 1;
  }
  .snake-close:hover { color: var(--text); }
  .snake-menu { text-align: center; }
  .snake-title { font-size: 22px; font-weight: 700; letter-spacing: 3px; color: var(--accent); margin-bottom: 4px; }
  .snake-tab-bar { display: flex; gap: 4px; justify-content: center; margin-bottom: 12px; }
  .snake-tab {
    background: var(--bg4); border: 1px solid var(--border2); border-radius: 4px;
    color: var(--muted); font-size: 10px; font-family: inherit; font-weight: 600;
    padding: 4px 10px; cursor: pointer; transition: all 0.12s;
  }
  .snake-tab:hover { color: var(--text); background: var(--bg3); }
  .snake-tab-active { color: var(--accent) !important; border-color: var(--accent) !important; background: rgba(var(--accent-rgb),0.1) !important; }
  .snake-play-btn {
    background: rgba(var(--accent-rgb), 0.15); border: 1px solid rgba(var(--accent-rgb), 0.4);
    border-radius: 8px; color: var(--accent); font-family: inherit; font-size: 15px;
    font-weight: 700; padding: 9px 28px; cursor: pointer; letter-spacing: 2px; transition: all 0.15s;
  }
  .snake-play-btn:hover { background: rgba(var(--accent-rgb), 0.25); transform: scale(1.03); }
  .snake-controls-hint { font-size: 10px; color: var(--muted); margin-top: 6px; }
  .snake-hud { display: flex; justify-content: space-between; align-items: center; width: 100%; font-size: 12px; color: var(--text); font-family: 'JetBrains Mono', monospace; gap: 10px; }
  .snake-diff-grid { display: flex; gap: 4px; justify-content: center; flex-wrap: wrap; }
  .snake-diff-btn {
    background: var(--bg4); border: 1px solid var(--border2); border-radius: 4px;
    color: var(--muted); font-size: 11px; font-family: inherit; font-weight: 600;
    padding: 4px 12px; cursor: pointer; transition: all 0.12s;
  }
  .snake-diff-btn:hover { color: var(--text); }
  .snake-diff-active { color: var(--accent) !important; border-color: var(--accent) !important; background: rgba(var(--accent-rgb),0.1) !important; }
  .snake-skin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
  .snake-skin-btn {
    display: flex; align-items: center; gap: 6px; background: var(--bg4);
    border: 1px solid var(--border2); border-radius: 6px; padding: 6px 10px;
    cursor: pointer; font-size: 11px; color: var(--text); font-family: inherit; transition: all 0.12s; text-align: left;
  }
  .snake-skin-btn:hover { background: var(--bg3); }
  .snake-skin-active { border-color: var(--accent) !important; background: rgba(var(--accent-rgb),0.1) !important; }
  .snake-skin-locked { opacity: 0.4; cursor: not-allowed; }
  .snake-skin-dot { width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0; }
  .snake-stats-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .snake-stat { display: flex; flex-direction: column; align-items: center; background: var(--bg4); border-radius: 6px; padding: 10px 6px; }
  .snake-stat-val { font-size: 16px; font-weight: 700; color: var(--accent); font-family: 'JetBrains Mono', monospace; }
  .snake-stat-label { font-size: 9px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 2px; }
  .snake-lb-title { font-size: 11px; font-weight: 700; color: var(--text); letter-spacing: 1px; margin-top: 14px; margin-bottom: 4px; text-transform: uppercase; }
  .snake-lb-list { max-height: 160px; overflow-y: auto; }
  .snake-lb-list::-webkit-scrollbar { width: 3px; }
  .snake-lb-list::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }
  .snake-lb-row { display: flex; align-items: center; gap: 8px; padding: 3px 0; font-size: 11px; border-bottom: 1px solid var(--border); }
  .snake-lb-row:last-child { border-bottom: none; }
  .snake-lb-rank { font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 700; min-width: 22px; text-align: right; }
  .snake-lb-name { flex: 1; color: var(--text); font-weight: 500; }
  .snake-lb-score { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--green); font-weight: 600; }
  .snake-lb-empty { font-size: 11px; color: var(--muted); padding: 8px 0; }

  /* ══════════════════════════════════════ */
  /* KOMPAKT-MODUS (Portrait / schmale Viewports) */
  /* ══════════════════════════════════════ */

  /* Automatisch bei schmalen Viewports oder Portrait */
  @media (max-width: 1100px), (orientation: portrait) {
    body:not(.compact-off) .header {
      flex-wrap: wrap;
      gap: 14px 16px;
      padding-top: 12px;
      padding-bottom: 20px;
      margin-bottom: 24px;
      row-gap: 14px;
      justify-content: center;
    }
    body:not(.compact-off) .clock-block { order: 1; flex-shrink: 0; }
    body:not(.compact-off) .header-center {
      order: 2;
      position: static !important;
      left: auto !important;
      transform: none !important;
      flex-direction: column;
      gap: 6px;
    }
    body:not(.compact-off) .greeting-block {
      position: static !important;
      transform: none !important;
      order: 3;
      flex-basis: 100%;
      text-align: center;
      font-size: 26px !important;
      padding-top: 0;
      margin-top: -4px;
    }
    body:not(.compact-off) .header-right {
      order: 4;
      flex-basis: 100%;
      flex-wrap: wrap;
      gap: 8px 10px;
      justify-content: center;
    }
    body:not(.compact-off) .greeting-placeholder { font-size: 18px !important; }
    body:not(.compact-off) .clock-time { font-size: 30px !important; letter-spacing: -1px !important; }
    body:not(.compact-off) .clock-date { font-size: 11px !important; margin-top: 3px !important; }
    body:not(.compact-off) .header-title { font-size: 24px !important; }
    body:not(.compact-off) .header-edition { font-size: 10px !important; }
    body:not(.compact-off) .header-center img { height: 50px !important; }
    body:not(.compact-off) .refresh-btn { padding: 7px 12px !important; font-size: 11px !important; }
  }

  /* Manuell erzwungen (unabhängig von Viewport) */
  body.compact-on .header {
    flex-wrap: wrap;
    gap: 14px 16px;
    padding-top: 12px;
    padding-bottom: 20px;
    margin-bottom: 24px;
    row-gap: 14px;
    justify-content: center;
  }
  body.compact-on .clock-block { order: 1; flex-shrink: 0; }
  body.compact-on .header-center {
    order: 2;
    position: static !important;
    left: auto !important;
    transform: none !important;
    flex-direction: column;
    gap: 6px;
  }
  body.compact-on .greeting-block {
    position: static !important;
    transform: none !important;
    order: 3;
    flex-basis: 100%;
    text-align: center;
    font-size: 26px !important;
    padding-top: 0;
    margin-top: -4px;
  }
  body.compact-on .header-right {
    order: 4;
    flex-basis: 100%;
    flex-wrap: wrap;
    gap: 8px 10px;
    justify-content: center;
  }
  body.compact-on .greeting-placeholder { font-size: 18px !important; }
  body.compact-on .clock-time { font-size: 30px !important; letter-spacing: -1px !important; }
  body.compact-on .clock-date { font-size: 11px !important; margin-top: 3px !important; }
  body.compact-on .header-title { font-size: 24px !important; }
  body.compact-on .header-edition { font-size: 10px !important; }
  body.compact-on .header-center img { height: 50px !important; }
  body.compact-on .refresh-btn { padding: 7px 12px !important; font-size: 11px !important; }

  /* ══════════════════════════════════════ */
  /* CRUNCHYROLL Widget                    */
  /* ══════════════════════════════════════ */
  .cr-viewport {
    overflow: hidden;
    position: relative;
  }
  .cr-inner {
    will-change: transform;
  }
  .cr-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: var(--text);
    transition: background 0.15s;
    min-height: 70px;
  }
  .cr-item:hover {
    background: rgba(var(--accent-rgb), 0.08);
  }
  .cr-item:last-child {
    border-bottom: none;
  }
  .cr-thumb {
    width: 42px;
    height: 62px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
    background: var(--bg4);
  }
  .cr-thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 18px;
    font-weight: 700;
  }
  .cr-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .cr-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
  }
  .cr-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    color: var(--muted);
    font-family: 'JetBrains Mono', monospace;
  }
  .cr-year {
    color: var(--muted);
    font-weight: 600;
  }
  .cr-score {
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 600;
  }
  .cr-score-imdb {
    background: rgba(245, 197, 24, 0.15);
    color: #f5c518;
  }
  .cr-score-tmdb {
    background: rgba(1, 210, 119, 0.15);
    color: #01d277;
  }
