@media (max-width: 700px) {
  .login-story {
    min-height: 245px;
    padding: 22px 20px;
  }

  .login-story img {
    width: 150px;
    margin-bottom: 16px;
  }

  .login-story .eyebrow {
    font-size: 9px;
  }

  .login h1 {
    margin: 10px 0 0;
    font-size: 36px;
    line-height: 1;
  }

  .login-story > p {
    display: none;
  }

  .login-art {
    right: -38px;
    bottom: -22px;
    font-size: 155px;
  }

  .back-link {
    padding-top: 18px;
    font-size: 12px;
  }

  .login-content {
    max-width: none;
    padding: 26px 20px calc(28px + env(safe-area-inset-bottom));
  }

  .login-content h2 {
    margin: 8px 0 12px;
    font-size: 27px;
  }

  .login-content > p:not(.muted) {
    font-size: 13px;
  }

  .login-content form {
    margin-top: 20px;
  }

  .login-content label {
    margin-bottom: 13px;
  }

  .login-content .muted {
    margin: 11px 0 0;
    font-size: 10.5px;
  }

  .top-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(44px, auto));
    overflow: visible;
    padding: 0;
    align-items: stretch;
  }

  .top-actions .requests-tool {
    grid-column: 1;
    grid-row: 1;
  }

  .top-actions .attendance-tool {
    grid-column: 2;
    grid-row: 1;
  }

  .top-actions #publish {
    grid-column: 3;
    grid-row: 1;
  }

  .top-actions #undo {
    grid-column: 1;
    grid-row: 2;
  }

  .top-actions #preview-toggle {
    grid-column: 2;
    grid-row: 2;
  }

  .top-actions #logout {
    grid-column: 3;
    grid-row: 2;
  }

  .top-actions button,
  .top-actions .team-tool {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 7px 8px;
    font-size: 10.5px;
    text-align: center;
    line-height: 1.15;
  }

  .editor-layout,
  .editor-layout:has(.inspector:not([hidden])) {
    height: auto;
    flex: 1;
    min-height: 0;
  }

  #inspector-actions {
    position: sticky;
    bottom: calc(-22px - env(safe-area-inset-bottom));
    z-index: 3;
    margin: 20px -16px 0;
    padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
    background: #fff;
    box-shadow: 0 -10px 22px #10332612;
  }
}

@media (max-width: 380px) {
  .top-actions button,
  .top-actions .team-tool {
    font-size: 9.5px;
    padding-inline: 5px;
  }
}
