@media (max-width: 720px) {
  .bot-command-panel {
    right: 8px;
    left: 8px;
    width: calc(100% - 16px);
    max-height: min(360px, 44dvh);
  }

  .bot-command-scope { display: none; }
  .bot-command-option { grid-template-columns: 34px minmax(0, 1fr); }
  .bot-message-card { width: min(100%, calc(100vw - 76px)); }
  .bot-message-card-actions { grid-template-columns: 1fr; }
  .bot-command-form { min-width: 0; }

  .bot-command-editor-row {
    grid-template-columns: 16px minmax(0, 1fr) 90px 38px;
  }

  .bot-command-editor-row input[data-command-collection] {
    grid-column: 2 / -1;
    grid-row: 2;
  }

  .bot-command-editor-row input[data-command-description] {
    grid-column: 2 / -1;
    grid-row: 3;
  }

  .bot-command-editor-row select[data-command-permission],
  .bot-command-editor-row input[data-command-cooldown] {
    grid-column: 2 / -1;
  }

  .group-bot-fields { grid-template-columns: 1fr; }
  .bot-parameter-form { min-width: 0; }
}

/* Primary library, profile hub, and conversation list menus */
.app-shell.single-pane .workspace {
  grid-column: 2 / 4;
}

.contact-tabs {
  position: sticky;
  top: 0;
  z-index: 3;
  margin: 0 6px 9px;
  background: var(--sidebar);
}

.contact-tabs button {
  min-height: 34px;
}

.conversation-item.touching {
  background: var(--surface-3);
}

.conversation-context-menu {
  width: 210px;
  overflow: visible;
}

.conversation-submenu-wrap {
  position: relative;
}

.conversation-submenu-trigger {
  width: 100%;
}

.conversation-submenu-trigger span:nth-child(2) {
  flex: 1;
}

.conversation-submenu-trigger .lucide:last-child {
  width: 14px;
  height: 14px;
}

.conversation-context-submenu {
  position: absolute;
  top: -7px;
  left: calc(100% + 7px);
  width: 248px;
  display: none;
  gap: 2px;
  padding: 6px;
  border: 1px solid #3a434e;
  border-radius: 7px;
  background: #20252c;
  box-shadow: 0 14px 38px rgba(0, 0, 0, .46);
}

.conversation-context-menu.submenu-left .conversation-context-submenu {
  right: calc(100% + 7px);
  left: auto;
}

.conversation-submenu-wrap:hover .conversation-context-submenu,
.conversation-submenu-wrap.open .conversation-context-submenu {
  display: grid;
}

.batch-group-settings {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--line-soft);
}

.batch-group-row {
  min-height: 68px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) minmax(180px, 260px);
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  background: var(--surface);
}

.batch-group-row .avatar {
  width: 42px;
  height: 42px;
}

.my-view,
.meme-library-view {
  min-height: 100%;
}

.my-header > div:first-of-type {
  flex: 1;
}

.my-body {
  width: min(920px, 100%);
  margin: 0 auto;
  padding: 28px;
}

.my-profile-hero {
  min-height: 250px;
  overflow: hidden;
  border-radius: 8px;
  background: #242a32 center / cover no-repeat;
}

.my-profile-shade {
  min-height: 250px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 28px;
  background: rgba(8, 10, 14, .54);
}

.my-profile-main {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 0;
  border: 0;
  background: transparent;
  color: white;
  text-align: left;
}

.my-profile-main > .avatar {
  width: 86px;
  height: 86px;
  flex-basis: 86px;
  border: 3px solid rgba(255, 255, 255, .72);
  font-size: calc(25px + var(--font-size-delta));
  cursor: pointer;
}

.my-profile-copy {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.my-profile-copy strong {
  overflow: hidden;
  font-size: calc(26px + var(--font-size-delta));
  text-overflow: ellipsis;
  white-space: nowrap;
}

.my-profile-copy span,
.my-profile-copy small {
  color: rgba(255, 255, 255, .76);
  font-size: calc(13px + var(--font-size-delta));
}

.my-profile-main > .lucide {
  width: 20px;
  color: rgba(255, 255, 255, .74);
}

.my-profile-edit-button {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: rgba(255, 255, 255, .74);
  cursor: pointer;
}

.my-profile-edit-button:hover { background: rgba(255, 255, 255, .1); color: white; }
.my-profile-edit-button .lucide { width: 20px; height: 20px; }
.my-profile-avatar:focus-visible,
.my-profile-edit-button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.my-background-actions {
  display: flex;
  gap: 5px;
}

.my-background-actions .icon-button {
  background: rgba(13, 16, 22, .66);
  color: white;
}

.my-menu {
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line-soft);
}

.my-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.my-feature-card {
  min-width: 0;
  min-height: 132px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.my-feature-card:hover {
  border-color: rgba(89, 199, 206, .46);
  background: var(--surface-3);
}

.my-feature-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.my-feature-icon .lucide {
  width: 21px;
  height: 21px;
}

.my-feature-icon.trpg {
  color: var(--accent-strong);
  background: color-mix(in srgb, var(--accent) 18%, var(--surface-3));
}

.my-feature-icon.turtle {
  color: #f7fbff;
  background: linear-gradient(145deg, #3d8ea3, #24566f);
}

.turtle-stage,
.turtle-frame {
  background: #eef5f6;
}

.my-feature-copy {
  display: grid;
  gap: 7px;
}

.my-feature-copy strong {
  font-size: calc(16px + var(--font-size-delta));
}

.my-feature-copy small {
  color: var(--muted);
  font-size: calc(11px + var(--font-size-delta));
  line-height: 1.45;
}

.trpg-view {
  width: 100%;
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.trpg-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.trpg-heading {
  min-width: 0;
}

.trpg-heading h2,
.trpg-heading p {
  margin: 0;
}

.trpg-heading p {
  margin-top: 2px;
  color: var(--muted);
  font-size: calc(11px + var(--font-size-delta));
}

.trpg-stage {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #17202a;
}

.trpg-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #17202a;
}

.trpg-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  color: var(--muted);
  background: var(--bg);
}

.trpg-loading-mark {
  width: 52px;
  height: 52px;
}

.trpg-loading-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (max-width: 720px) {
  .trpg-header {
    min-height: 54px;
    padding-inline: 10px;
  }

  .trpg-stage {
    padding-bottom: env(safe-area-inset-bottom);
  }
}

.meme-library-header > div {
  flex: 1;
}

.meme-library-header-actions {
  flex: 0 0 auto !important;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

.meme-publish-button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 13px;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.meme-publish-button .lucide {
  width: 17px;
  height: 17px;
}

.my-menu-item {
  width: 100%;
  min-height: 70px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 13px;
  padding: 11px 17px;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.my-menu-item:last-child { border-bottom: 0; }
.my-menu-item:hover { background: var(--surface-3); }
.my-menu-item > .lucide:first-child { color: var(--accent-strong); }
.my-menu-item > .lucide:last-child { width: 17px; color: var(--faint); }
.my-menu-item span { min-width: 0; display: grid; gap: 5px; }
.my-menu-item strong { font-size: calc(14px + var(--font-size-delta)); }
.my-menu-item small { color: var(--muted); font-size: calc(11px + var(--font-size-delta)); }

.profile-background-editor {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
}

.profile-background-preview {
  height: 86px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-2) center / cover no-repeat;
  color: var(--faint);
}

.profile-background-editor > div:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.profile-background-editor strong { font-size: calc(13px + var(--font-size-delta)); }
.profile-background-editor span { color: var(--muted); font-size: calc(11px + var(--font-size-delta)); }
.profile-background-controls { display: flex; align-items: center; gap: 6px; }

.profile-card {
  overflow: hidden;
  padding: 0;
}

.profile-card-hero {
  min-height: 280px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: #242a32 center / cover no-repeat;
}

.profile-card-hero-content {
  width: 100%;
  padding: 30px 26px 24px;
  background: transparent;
}

.profile-card-hero-content .avatar {
  border: 3px solid rgba(255, 255, 255, .72);
  border-radius: 20px;
}

.profile-card-hero-content .account-number,
.profile-card-hero-content .profile-signature {
  color: rgba(255, 255, 255, .76);
}

.profile-details {
  margin: 0;
}

.meme-library-body {
  width: min(1320px, 100%);
  margin: 0 auto;
  padding: 22px 26px 34px;
}

.meme-library-filters {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(150px, 230px) 40px;
  gap: 9px;
  margin-bottom: 18px;
  padding: 10px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(28, 33, 40, .96);
}

.meme-library-search {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
  color: var(--faint);
}

.meme-library-search .lucide { width: 17px; }
.meme-library-search input { min-height: 38px; padding: 0; border: 0; background: transparent; }
.meme-library-filters > .icon-button { background: var(--accent); color: #071719; }

.meme-library-grid {
  column-width: 180px;
  column-gap: 11px;
}

.meme-library-grid > .empty-list {
  column-span: all;
}

.meme-library-item {
  position: relative;
  width: 100%;
  display: inline-block;
  break-inside: avoid;
  margin: 0 0 11px;
  overflow: hidden;
  border-radius: 6px;
  background: var(--surface-2);
}

.meme-library-preview {
  width: 100%;
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.meme-library-preview img {
  width: 100%;
  height: auto;
  display: block;
}

.meme-gif-badge {
  position: absolute;
  top: 7px;
  left: 7px;
  padding: 3px 6px;
  border-radius: 4px;
  background: rgba(8, 10, 14, .78);
  color: white;
  font-size: calc(9px + var(--font-size-delta));
  font-weight: 750;
}

.meme-library-actions {
  position: absolute;
  right: 6px;
  bottom: 6px;
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity .14s ease;
}

.meme-library-item:hover .meme-library-actions,
.meme-library-item:focus-within .meme-library-actions {
  opacity: 1;
}

.meme-library-actions .icon-button {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
  background: rgba(12, 15, 20, .86);
  color: white;
}

.meme-library-actions .icon-button:disabled {
  color: var(--green);
  opacity: 1;
}

.meme-library-loading {
  padding: 22px;
  color: var(--muted);
  text-align: center;
}

.meme-load-more {
  display: block;
  min-width: 150px;
  margin: 22px auto 0;
}

@media (max-width: 720px) {
  .app-shell.single-pane .workspace {
    grid-column: 1;
    grid-row: 1;
    z-index: 3;
  }

  .rail-button,
  .rail-button:hover,
  .rail-button.active {
    width: min(84px, 28vw);
  }

  .conversation-context-backdrop.mobile {
    display: flex;
    align-items: flex-end;
    background: rgba(5, 7, 10, .5);
  }

  .conversation-context-menu.mobile {
    position: static;
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    padding: 10px max(10px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 8px 8px 0 0;
  }

  .conversation-context-menu.mobile .member-context-action {
    min-height: 62px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    text-align: center;
  }

  .batch-group-row {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .batch-group-row select {
    grid-column: 1 / -1;
  }

  .my-body {
    padding: 16px 14px 26px;
  }

  .my-profile-hero,
  .my-profile-shade {
    min-height: 220px;
  }

  .my-profile-shade {
    align-items: flex-end;
    padding: 20px 17px;
  }

  .my-profile-main {
    gap: 13px;
  }

  .my-profile-main > .avatar {
    width: 70px;
    height: 70px;
    flex-basis: 70px;
  }

  .my-profile-copy strong { font-size: calc(22px + var(--font-size-delta)); }
  .my-profile-copy small { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .my-background-actions { flex-direction: column; }

  .profile-background-editor {
    grid-template-columns: 1fr;
  }

  .profile-background-preview {
    height: 130px;
  }

  .profile-background-controls {
    justify-content: flex-start;
  }

  .meme-library-body {
    padding: 12px 10px 24px;
  }

  .meme-library-filters {
    grid-template-columns: minmax(0, 1fr) 42px;
    margin-bottom: 10px;
    padding: 7px;
  }

  .meme-library-filters select {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .meme-library-grid {
    column-width: 112px;
    column-gap: 8px;
  }

  .meme-library-item {
    margin-bottom: 8px;
  }

  .meme-library-actions {
    opacity: 1;
  }

  .meme-library-actions .icon-button {
    width: 31px;
    height: 31px;
    flex-basis: 31px;
  }

  .meme-library-header {
    gap: 8px;
    padding-inline: 12px;
  }

  .meme-publish-button {
    width: 40px;
    min-width: 40px;
    height: 40px;
    justify-content: center;
    padding: 0;
  }

  .meme-publish-button span {
    display: none;
  }
}

/* Media files and native download state */
.group-name-row {
  display: flex;
  align-items: center;
  gap: 7px;
}

.group-name-edit {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
}

.group-name-edit .lucide { width: 15px; height: 15px; }

.draft-tile video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.message-file {
  cursor: default;
}

.message-video-card {
  width: min(430px, 100%);
  overflow: hidden;
  margin-top: 5px;
  border: 1px solid rgba(222, 229, 255, .1);
  border-radius: 6px;
  background: rgba(8, 10, 18, .38);
}

.message-video {
  width: 100%;
  max-height: 360px;
  display: block;
  aspect-ratio: 16 / 9;
  background: #050609;
  object-fit: contain;
}

.message-video-preview {
  position: relative;
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 0;
  padding: 0;
  background: #050609;
  color: #fff;
  cursor: pointer;
}

.message-video-preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.message-video-preview.no-poster { background: #0d1016; }

.message-video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 50%;
  background: rgba(7, 9, 13, .76);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .3);
  transform: translate(-50%, -50%);
}

.message-video-play .lucide { width: 20px; height: 20px; margin-left: 2px; }
.message-video-preview:hover .message-video-play { background: rgba(27, 32, 42, .94); }

.message-video-placeholder {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-width: 0 0 1px;
  border-radius: 0;
  background: #0d1016;
}

.bot-card-media-placeholder {
  width: 100%;
  min-height: 150px;
  border-right: 0;
  border-left: 0;
  border-radius: 0;
}

.message-video-meta {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
}

.file-download-control {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #9ba7b6;
  font-size: calc(10px + var(--font-size-delta));
}

.file-download-control > .lucide { width: 15px; height: 15px; }
.file-download-control.downloaded { color: #7ec69c; }
.file-download-control.downloading { color: #9ebce1; }
.file-download-control.downloading > .lucide { animation: azusa-spin 1s linear infinite; }
.file-download-control.compact span { white-space: nowrap; }

.file-download-button {
  width: auto;
  min-width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 8px;
}

.file-download-control.compact .file-download-button {
  width: 32px;
  padding: 0;
}

.file-download-button .lucide { width: 16px; height: 16px; }

.shared-media-item.video { cursor: pointer; }
.shared-media-item .shared-video-play {
  top: 50%;
  right: auto;
  bottom: auto;
  left: 50%;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  background: rgba(8, 10, 18, .78);
  transform: translate(-50%, -50%);
}
.shared-video-play .lucide { width: 17px; height: 17px; }

.video-lightbox-shell { width: min(960px, 94vw); }
.lightbox-video {
  width: 100%;
  max-height: calc(92dvh - 54px);
  display: block;
  background: #050609;
}

@keyframes azusa-spin { to { transform: rotate(360deg); } }

@media (max-width: 720px) {
  .message-video-card { width: 100%; max-width: 360px; }
  .message-video { max-height: 260px; }
  .message-video-meta { min-height: 46px; padding: 7px 8px; }
  .file-download-button { min-width: 34px; height: 34px; }
  .video-lightbox-shell {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    display: grid;
    place-items: center;
  }
  .video-lightbox-shell .lightbox-video {
    grid-area: 1 / 1;
    width: 100%;
    max-height: 100dvh;
  }
}

@media (max-width: 420px) {
  .auth-panel {
    padding: 24px 20px;
    border-right: 0;
    border-left: 0;
  }
  .chat-heading h2 { font-size: calc(14px + var(--font-size-delta)); }
  .message-author span:first-child { max-width: 130px; overflow: hidden; text-overflow: ellipsis; }
}

/* Settings use a dedicated, quieter hierarchy instead of the long-form settings layout. */
.settings-view {
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
}

.settings-page-header {
  position: sticky;
  top: 0;
  z-index: 12;
  min-height: 66px;
  justify-content: flex-start;
  border-color: var(--line);
  background: var(--surface);
  backdrop-filter: blur(14px);
}

.settings-page-header > .icon-button { flex: 0 0 38px; }
.settings-page-header h2 { font-size: calc(19px + var(--font-size-delta)); font-weight: 700; }
.settings-page-header p { color: var(--muted); }

.settings-hub-body {
  width: min(920px, 100%);
  margin: 0 auto;
  padding: 28px;
}

.settings-hub-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.settings-hub-item {
  position: relative;
  min-height: 150px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-content: space-between;
  align-items: start;
  gap: 18px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: var(--surface-2);
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.settings-hub-item:hover { border-color: rgba(89, 199, 206, .46); background: var(--surface-3); }
.settings-hub-item > .lucide { position: absolute; top: 24px; right: 20px; width: 18px; height: 18px; color: var(--muted); }

.settings-hub-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: #25352f;
  color: #8fd1b1;
}

.settings-hub-item:nth-child(2) .settings-hub-icon { background: #273442; color: #91bde9; }
.settings-hub-item:nth-child(3) .settings-hub-icon { background: #3b2c31; color: #e8a5af; }
.settings-hub-item:nth-child(4) .settings-hub-icon { background: #3a3526; color: #e2c77d; }
.settings-hub-icon .lucide { width: 21px; height: 21px; }

.settings-hub-copy { min-width: 0; grid-column: 1 / -1; display: grid; gap: 7px; }
.settings-hub-copy strong { font-size: calc(18px + var(--font-size-delta)); }
.settings-hub-copy small { color: var(--muted); font-size: calc(12px + var(--font-size-delta)); line-height: 1.55; }

.settings-detail-body {
  width: min(820px, 100%);
  padding: 10px 34px 70px;
}

.settings-detail-body > .settings-section,
.settings-detail-body > .settings-section:first-child {
  margin: 0;
  border: 0;
  padding: 28px 0;
  background: transparent;
}

.settings-detail-body > .settings-section + .settings-section { border-top: 1px solid #32353a; }
.settings-detail-body .section-heading { margin-bottom: 20px; }
.settings-detail-body .section-heading h3 { font-size: calc(16px + var(--font-size-delta)); }
.settings-detail-body .section-heading p { color: #9298a1; }
.settings-detail-body .profile-editor,
.settings-detail-body .settings-group {
  border: 0;
  padding: 0;
  background: transparent;
}

.settings-detail-body .setting-row { min-height: 54px; border-color: #2c2f34; }
.settings-detail-body .appearance-setting-block { border-color: #2c2f34; }

.shortcut-setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
}

.shortcut-setting-copy {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.shortcut-setting-copy strong { font-size: calc(13px + var(--font-size-delta)); }
.shortcut-setting-copy small { color: var(--muted); font-size: calc(11px + var(--font-size-delta)); line-height: 1.5; }

.shortcut-setting-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 0 0 auto;
}

.shortcut-capture {
  min-width: 128px;
  font-family: "Cascadia Mono", Consolas, monospace;
  letter-spacing: .02em;
}

.shortcut-capture.recording {
  border-color: var(--accent);
  color: var(--accent-strong);
  box-shadow: 0 0 0 2px var(--accent-soft);
}

@media (max-width: 720px) {
  .settings-page-header {
    min-height: 58px;
    padding: 8px 12px;
    backdrop-filter: none;
  }

  .settings-page-header h2 { font-size: calc(17px + var(--font-size-delta)); }
  .settings-page-header p { margin-top: 2px; font-size: calc(10px + var(--font-size-delta)); }
  .settings-hub-body { padding: 16px 14px 82px; }
  .settings-hub-list { gap: 10px; }
  .settings-hub-item { min-height: 144px; grid-template-columns: 38px minmax(0, 1fr); gap: 15px 10px; padding: 16px; }
  .settings-hub-item > .lucide { top: 18px; right: 15px; }
  .settings-hub-icon { width: 38px; height: 38px; }
  .settings-hub-copy strong { font-size: calc(15px + var(--font-size-delta)); }
  .settings-hub-copy small { font-size: calc(10px + var(--font-size-delta)); }
  .settings-detail-body { padding: 0 16px 86px; }
  .settings-detail-body > .settings-section,
  .settings-detail-body > .settings-section:first-child { padding: 24px 0; }
  .shortcut-setting-row { align-items: stretch; flex-direction: column; gap: 12px; }
  .shortcut-setting-actions { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
