/* ===== 08-layout-controls.css ===== */
/* ===== extrait de index.html : style #18 ===== */
  /* GRFTSH responsive layout */

  #feed,
  .public-profile-view {
    width: min(100%, 760px);
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
  }

  #dashboard-view {
    width: 80%;
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
  }

  @media (min-width: 700px) {
    .bottom-nav {
      width: min(100%, 760px);
      left: 50%;
      right: auto;
      transform: translateX(-50%);
    }
  }

  @media (min-width: 700px) and (max-width: 1023px) {
    #feed,
    .public-profile-view {
      width: calc(100% - 40px);
      max-width: none;
    }

    #dashboard-view {
      width: calc(100% - 40px);
      max-width: none;
    }

    .bottom-nav {
      width: calc(100% - 40px);
    }
  }

  @media (max-width: 699px) {
    #feed,
    .public-profile-view,
    #dashboard-view {
      width: 100%;
      max-width: none;
      margin-left: 0;
      margin-right: 0;
    }

    #dashboard-view {
      padding-left: max(12px, env(safe-area-inset-left));
      padding-right: max(12px, env(safe-area-inset-right));
    }

    .bottom-nav {
      width: 100%;
      left: 0;
      right: 0;
      transform: none;
    }
  }

/* ===== extrait de index.html : style #19 ===== */
  .dashboard-content {
    width: 100%;
    padding: 24px 0 120px;
    box-sizing: border-box;
  }

  .dashboard-grid {
    display: grid;
    grid-template-columns:
      repeat(auto-fit, minmax(min(240px, 100%), 1fr));
    gap: 16px;
    width: 100%;
  }

  .dashboard-card {
    min-width: 0;
    min-height: 150px;
    padding: 22px;
    box-sizing: border-box;

    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface-2);
  }

  .dashboard-card[hidden] {
    display: none;
  }

  .dashboard-card h2 {
    margin: 0;
    font-size: 18px;
    line-height: 1.25;
  }

  @media (max-width: 699px) {
    .dashboard-content {
      padding-top: 16px;
    }

    .dashboard-grid {
      grid-template-columns: 1fr;
      gap: 12px;
    }

    .dashboard-card {
      min-height: 120px;
      padding: 18px;
      border-radius: 14px;
    }
  }

/* ===== extrait de index.html : style #20 ===== */
  .content-rating {
    margin: 0;
    padding: 18px;
    border: 0;
    border-top: 1px solid var(--border);
  }

  .content-rating legend {
    padding: 0;
    font-size: 15px;
    font-weight: 750;
  }

  .content-rating-help {
    margin: 7px 0 14px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
  }

  .content-rating-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .content-rating-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;

    min-width: 0;
    padding: 14px;

    border: 1px solid var(--border);
    border-radius: 14px;

    background: var(--surface-2);
    cursor: pointer;
  }

  .content-rating-option input {
    margin: 3px 0 0;
    flex: 0 0 auto;
  }

  .content-rating-option-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
  }

  .content-rating-option-text strong {
    font-size: 14px;
  }

  .content-rating-option-text span {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
  }

  @media (max-width: 420px) {
    .content-rating-options {
      grid-template-columns: 1fr;
    }
  }

/* ===== extrait de index.html : style #21 ===== */
  .profile-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;

    width: 100%;
    box-sizing: border-box;

    padding: 16px;

    border: 1px solid var(--border);
    border-radius: 14px;

    background: var(--surface);
    cursor: pointer;
  }

  .profile-toggle-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
  }

  .profile-toggle-text strong {
    font-size: 14px;
    line-height: 1.3;
  }

  .profile-toggle-text span {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
  }

  .profile-toggle {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;

    margin: 0;

    accent-color: #fff;
    cursor: pointer;
  }
