.device-save {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  max-width: 720px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);

  & .device-download {
    width: 44px;
    min-height: 44px;
    padding: 10px;
    color: var(--accent);

    & svg { width: 22px; height: 22px; }
    &:disabled { cursor: default; opacity: .6; }
  }
  & .device-copy { min-width: 0; overflow-wrap: anywhere; }
  & [data-save-description] { font-weight: 600; line-height: 1.4; }
  & [data-save-meta] { margin-top: 3px; line-height: 1.4; }
  & progress { width: 100%; max-width: 320px; height: 5px; display: block; margin-top: 6px; accent-color: var(--accent); }
  & [data-save-description][data-error] { color: var(--error); }
  & .device-actions {
    position: relative;
    font-size: 13px;
    color: var(--muted);

    & summary { cursor: pointer; padding: 10px; list-style: none; border-left: 1px solid var(--line); }
    & summary::-webkit-details-marker { display: none; }
    & summary:hover { color: var(--accent); }
    & > div { position: absolute; z-index: 5; right: 0; min-width: 190px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px; }
    & button { width: 100%; }
  }
}
.device-shell {
  max-width: 1100px;
  margin-inline: auto;
  & .device-heading { margin-bottom: 24px; }
  & h1 { font-size: clamp(32px, 5vw, 52px); margin: 8px 0 14px; }
  & .device-routes { margin-top: 16px; }
  & .device-route {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
    & h2 { font-size: 26px; margin-bottom: 4px; }
    & .device-route-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
  }
  & .device-storage { margin-top: 24px; }
}
