/* Extracted from settings.html. Loaded in the same position the inline
   <style> occupied, so the cascade is unchanged. */
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
      background: #000;
      color: #fff;
      min-height: 100vh;
    }

    .container {
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: 120px 20px 60px;
      max-width: none;
      margin: 0;
      position: relative;
      z-index: 1;
    }

    .page-header {
      text-align: center;
      margin-bottom: 40px;
      width: 100%;
    }

    .page-title {
      font-size: 2.5rem;
      font-weight: 700;
      color: #e3dedc;
      text-shadow: 0 0 20px rgba(227, 222, 220, 0.5);
      margin-bottom: 10px;
      text-align: center;
    }

    .page-subtitle {
      color: rgba(227, 222, 220, 0.6);
      font-size: 1rem;
      text-align: center;
    }

    /* Settings Grid */
    .settings-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 25px;
      width: 100%;
      max-width: 800px;
    }

    /* Settings Card */
    .settings-card {
      background: rgba(255, 255, 255, 0.03);
      border: 1px solid rgba(227, 222, 220, 0.15);
      border-radius: 20px;
      padding: 28px;
      transition: all 0.3s ease;
      width: 100%;
    }

    .settings-card:hover {
      border-color: rgba(227, 222, 220, 0.3);
      background: rgba(255, 255, 255, 0.05);
      transform: translateY(-4px);
      box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    }

    .card-header {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 15px;
    }

    .card-icon {
      width: 40px;
      height: 40px;
      background: rgba(227, 222, 220, 0.1);
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 18px;
    }

    .card-title {
      font-size: 1.1rem;
      font-weight: 600;
      color: #e3dedc;
    }

    .card-desc {
      font-size: 0.85rem;
      color: rgba(227, 222, 220, 0.5);
      line-height: 1.6;
      margin-bottom: 20px;
    }

    /* Setting Row */
    .setting-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 15px;
      margin-bottom: 15px;
    }

    .setting-row:last-child {
      margin-bottom: 0;
    }

    .setting-label {
      font-size: 0.85rem;
      font-weight: 500;
      color: rgba(227, 222, 220, 0.8);
    }

    /* Select */
    .setting-select {
      padding: 10px 35px 10px 14px;
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid rgba(227, 222, 220, 0.2);
      border-radius: 10px;
      color: #fff;
      font-family: inherit;
      font-size: 0.9rem;
      cursor: pointer;
      outline: none;
      transition: all 0.3s ease;
      appearance: none;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23e3dedc' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right 12px center;
    }

    .setting-select:focus {
      border-color: #e3dedc;
      background-color: rgba(255, 255, 255, 0.1);
    }

    .setting-select option {
      background: #111;
      color: #fff;
    }

    /* Button */
    .setting-btn {
      padding: 12px 24px;
      background: rgba(227, 222, 220, 0.1);
      border: 1px solid rgba(227, 222, 220, 0.3);
      border-radius: 10px;
      color: #e3dedc;
      font-family: inherit;
      font-size: 0.9rem;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s ease;
      width: 100%;
    }

    .setting-btn:hover {
      background: rgba(227, 222, 220, 0.2);
      border-color: #e3dedc;
      box-shadow: 0 0 20px rgba(227, 222, 220, 0.2);
    }

    /* Toggle Switch */
    .toggle-switch {
      position: relative;
      width: 50px;
      height: 28px;
      cursor: pointer;
      flex-shrink: 0;
    }

    .toggle-switch input {
      opacity: 0;
      width: 0;
      height: 0;
    }

    .toggle-slider {
      position: absolute;
      inset: 0;
      background: rgba(255, 255, 255, 0.1);
      border: 1px solid rgba(227, 222, 220, 0.2);
      border-radius: 28px;
      transition: all 0.3s ease;
    }

    .toggle-slider::before {
      position: absolute;
      content: "";
      width: 20px;
      height: 20px;
      left: 3px;
      bottom: 3px;
      background: rgba(227, 222, 220, 0.5);
      border-radius: 50%;
      transition: all 0.3s ease;
    }

    .toggle-switch input:checked + .toggle-slider {
      background: rgba(227, 222, 220, 0.3);
      border-color: #e3dedc;
    }

    .toggle-switch input:checked + .toggle-slider::before {
      transform: translateX(22px);
      background: #e3dedc;
    }

    /* Toast */
    .toast {
      position: fixed;
      bottom: 30px;
      left: 50%;
      transform: translateX(-50%) translateY(20px);
      background: rgba(20, 20, 20, 0.95);
      border: 1px solid rgba(227, 222, 220, 0.3);
      color: #e3dedc;
      font-size: 0.9rem;
      font-weight: 500;
      padding: 14px 28px;
      border-radius: 12px;
      opacity: 0;
      pointer-events: none;
      transition: all 0.3s ease;
      z-index: 999;
    }

    .toast.show {
      opacity: 1;
      transform: translateX(-50%) translateY(0);
    }

    .wallpaper-preview.active {
      border-color: #87CEEB !important;
    }
  
