.mobile-draft,
.mobile-edit-button {
  display: none;
}

@media (max-width: 560px) {
  .mobile-draft {
    display: block;
    margin-top: 14px;
    background: rgba(255, 255, 255, .5);
    border: 1px solid var(--line);
    border-radius: 13px;
    overflow: hidden;
  }

  .mobile-draft.hidden {
    display: none;
  }

  .mobile-draft-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 13px;
    background: rgba(201, 236, 114, .28);
    border-bottom: 1px solid var(--line);
  }

  .mobile-draft-head div {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .mobile-draft-head span {
    font: 800 9px Manrope;
    letter-spacing: 1px;
    color: var(--orange);
  }

  .mobile-draft-head strong {
    font: 800 11px Manrope;
  }

  .mobile-draft-head small {
    font-size: 9px;
    color: var(--muted);
  }

  .mobile-draft-head-actions {
    display: flex;
    align-items: flex-end;
    gap: 6px;
  }

  .mobile-draft-head-actions button {
    border: 0;
    background: none;
    color: var(--orange);
    font: 750 10px Manrope;
    padding: 0;
  }

  .mobile-draft-row {
    display: grid;
    grid-template-columns: 27px auto minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    padding: 11px 13px;
    border-bottom: 1px solid var(--line);
    animation: rise .25s both;
  }

  .mobile-draft-row:first-child {
    background: rgba(255, 213, 104, .13);
  }

  .recent-number {
    height: 24px;
    width: 24px;
    border-radius: 7px;
    background: var(--yellow);
    display: grid;
    place-items: center;
    font: 800 10px Manrope;
    color: #17372b;
  }

  .mobile-draft-row .draft-item-name {
    font-size: 13px;
    font-weight: 650;
  }

  .mobile-draft-row .draft-check {
    width: 23px;
    height: 23px;
    padding: 0;
    border: 1.5px solid #a6ada8;
    background: var(--paper);
    border-radius: 6px;
    color: white;
    font: 800 13px Manrope;
  }

  .mobile-draft-row .draft-check.checked {
    background: var(--ink);
    border-color: var(--ink);
  }

  .mobile-draft-row.done .draft-item-name {
    text-decoration: line-through;
    color: #9da49f;
  }

  .mobile-draft-actions {
    display: flex;
    align-items: center;
    gap: 3px;
  }

  .mobile-draft-row button {
    border: 0;
    background: none;
    color: var(--muted);
    padding: 5px;
  }

  .mobile-draft-row .mobile-edit {
    color: var(--ink);
    font: 750 10px Manrope;
  }

  .mobile-draft-row .mobile-save {
    color: #9b9075;
    font-size: 17px;
  }

  .mobile-draft-row .mobile-save.saved {
    color: #d99a12;
  }

  .mobile-draft-row .mobile-remove {
    font-size: 17px;
  }

  .mobile-sort-button {
    width: calc(100% - 20px);
    margin: 10px;
    padding: 12px;
    border: 0;
    border-radius: 9px;
    background: var(--ink);
    color: var(--paper);
    font: 800 13px Manrope;
  }

  .route-panel {
    display: none;
  }

  .mobile-sorted .route-panel {
    display: block;
  }

  .mobile-sorted .control-panel {
    display: none;
  }

  .mobile-edit-button {
    display: block;
    border: 0;
    background: transparent;
    color: var(--orange);
    font: 700 12px "DM Sans";
    padding: 0 0 13px;
  }

  .mobile-sorted .hero {
    display: none;
  }

  .mobile-sorted .planner-grid {
    padding-top: 22px;
  }

  body.dark .mobile-draft {
    background: #1c3027;
  }
}
