@media screen {
  .view-layout-switch {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 6px 10px;
    min-width: 0;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    margin: 0 0 12px;
    color: var(--friendly-muted, #65746d);
    font: 12px/1.4 var(--friendly-font, "Segoe UI", Arial, sans-serif);
  }
  .view-layout-label, .view-layout-options button > span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }
  .view-layout-options {
    display: inline-flex;
    align-items: stretch;
    gap: 3px;
    max-width: 100%;
    padding: 3px;
    border-radius: 9px;
    background: #edf2e8;
  }
  .view-layout-options button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    min-height: 32px;
    min-width: 32px;
    width: 32px;
    margin: 0;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 7px;
    background: transparent;
    box-shadow: none;
    color: var(--friendly-muted, #65746d);
    font: inherit;
    font-size: 11px;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
  }
  .view-layout-options svg { width: 17px; height: 17px; flex-shrink: 0; }
  .view-layout-options button[aria-checked="true"] {
    background: #fff;
    color: var(--friendly-ink, #283d30);
    box-shadow: 0 1px 3px #283d301a;
  }
  .view-layout-options button:hover { color: var(--friendly-ink, #283d30); background-color: #ffffffa6; }
  .view-layout-options button[aria-checked="true"]:hover { background-color: #fff; }
  .view-layout-options button:focus-visible { outline: 2px solid #365b43; outline-offset: 1px; }
  .view-layout-status { flex-basis: 100%; font-size: 11px; }
  .view-layout-status[hidden] { display: none; }
  .list-view-controls-slot { min-width: 0; width: 100%; }
  .list-view-controls-slot:empty { display: none; }
  #restaurants-list-layout:has(+ #restaurant-list[hidden]) { display: none; }
  @media (max-width: 760px) {
    .view-layout-switch { gap: 6px; }
    .view-layout-options { flex: 0 1 auto; }
    .view-layout-options button { width: 44px; min-width: 44px; min-height: 44px; }
  }
  @media (pointer: coarse) {
    .view-layout-options button { width: 44px; min-width: 44px; min-height: 44px; }
  }
  @media (max-width: 380px) {
    .view-layout-options button { padding: 0; }
  }
  @media (prefers-reduced-motion: reduce) {
    .view-layout-options button { transition: none; }
  }
}
@media print {
  .view-layout-switch { display: none !important; }
}
