/* 옮 컴포넌트 */

/* ---- 브랜드, 상태 알약, 테마 전환 ---- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xl);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.brand__link {
  display: block;
  border-radius: var(--radius-sm);
}
.brand__logo {
  display: block;
  width: auto;
  height: 40.6px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 32px;
  padding: 0 var(--space-3);
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: var(--text-sm);
  color: var(--text-muted);
}
.status-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-strong);
}
.status-pill[data-state="ok"]::before {
  background: var(--accent);
}
.status-pill[data-state="connecting"]::before {
  background: var(--warn-text);
}
.status-pill[data-state="down"]::before {
  background: var(--danger);
}

.theme-toggle {
  /* 세 칸(밝게, 어둡게, 자동)의 너비를 가장 긴 글자에 맞춰 똑같이 */
  display: inline-grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  overflow: hidden;
}
.theme-toggle__option {
  min-height: 36px;
  min-width: 44px;
  padding: 0 var(--space-3);
  border: 0;
  border-right: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  font-size: var(--text-sm);
}
.theme-toggle__option:last-child {
  border-right: 0;
}
.theme-toggle__option[aria-pressed="true"] {
  background: var(--accent);
  color: var(--on-accent);
}

/* ---- 패널 ---- */
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-4);
}
.panel__title {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-3);
}
.subtitle {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin: var(--space-4) 0 var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-muted);
}
.count {
  min-width: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text);
  font-size: var(--text-xs);
  text-align: center;
}
.empty {
  padding: var(--space-3);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: var(--text-sm);
}
.label {
  display: block;
  margin-bottom: var(--space-1);
  font-size: var(--text-sm);
  font-weight: 600;
}
.hint {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* ---- 버튼 ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: var(--tap);
  padding: 0 var(--space-4);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover:not(:disabled) {
  background: var(--surface-2);
}
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.btn--primary {
  background: var(--grad-cool);
  border-color: transparent;
  color: #fff;
}
.btn--warm {
  background: var(--grad-warm);
  border-color: transparent;
  color: var(--on-warm);
}
.btn--primary:hover:not(:disabled),
.btn--warm:hover:not(:disabled) {
  filter: brightness(1.07) saturate(1.05);
}
.btn--primary:hover:not(:disabled) {
  background: var(--grad-cool);
}
.btn--warm:hover:not(:disabled) {
  background: var(--grad-warm);
}
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover:not(:disabled),
  .btn--warm:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px -4px rgba(123, 63, 228, 0.5);
  }
  .btn--warm:hover:not(:disabled) {
    box-shadow: 0 4px 12px -4px rgba(242, 140, 56, 0.6);
  }
}
.btn--small {
  min-height: 40px;
  padding: 0 var(--space-3);
  font-size: var(--text-sm);
}
.btn--ghost {
  border-color: transparent;
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (pointer: coarse) {
  .btn--small {
    min-height: var(--tap);
  }
  .theme-toggle__option {
    min-height: var(--tap);
  }
}

/* ---- 기기 목록 ---- */
.self {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  border-radius: var(--radius);
  background: var(--surface-2);
}
.self__name {
  font-weight: 700;
}
.badge {
  display: inline-grid;
  place-items: center;
  min-width: 40px;
  height: 28px;
  padding: 0 var(--space-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.device-list {
  display: grid;
  gap: var(--space-2);
}
.device {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  min-height: 56px;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: left;
  cursor: pointer;
}
.device:hover {
  background: var(--surface-2);
}
.device[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: inset 3px 0 0 var(--accent);
}
.device__name {
  font-weight: 600;
}
.device__state {
  font-size: var(--text-sm);
  color: var(--text-muted);
}
.device[aria-pressed="true"] .device__state {
  color: var(--accent-text);
  font-weight: 700;
}
.device--new {
  animation: ping 0.9s ease-out 1;
}
@keyframes ping {
  0% {
    box-shadow: 0 0 0 0 var(--accent-ring);
  }
  100% {
    box-shadow: 0 0 0 10px transparent;
  }
}

/* ---- 코드로 연결 ---- */
.connect {
  margin-top: var(--space-3);
  border-top: 1px solid var(--border);
  padding-top: var(--space-3);
}
.connect__title {
  font-size: var(--text-base);
  font-weight: 700;
}
.my-code {
  min-height: var(--tap);
}
.connect__body {
  display: grid;
  gap: var(--space-3);
  padding-top: var(--space-2);
}
.qr {
  width: 164px;
  height: 164px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.qr img {
  display: block;
  width: 100%;
  height: 100%;
}
.code {
  font-family: var(--font-mono);
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: 0.12em;
}
.input {
  min-height: var(--tap);
  width: 100%;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
}
.input--code {
  max-width: 10rem;
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
}
textarea.input {
  resize: vertical;
  min-height: 88px;
}

/* ---- 보내기 ---- */
.target {
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius);
  background: var(--surface-2);
  font-size: var(--text-sm);
}
.target strong {
  font-weight: 700;
}
.target[data-empty="true"] {
  background: var(--warn-soft);
  color: var(--warn-text);
}
.dropzone {
  display: grid;
  gap: var(--space-2);
  justify-items: start;
  padding: var(--space-4);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
}
.dropzone.is-over {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.pending {
  display: grid;
  gap: var(--space-2);
}
.pending__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-1) var(--space-1) var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: var(--text-sm);
}
.pending__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---- 전송 내역 ---- */
.history {
  display: grid;
}
.item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: var(--space-2) var(--space-3);
  padding: var(--space-3) 0;
  border-top: 1px solid var(--border);
}
.item:first-child {
  border-top: 0;
  padding-top: 0;
}
.item__thumb {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--text-muted);
}
.item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.item__title {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.item__meta {
  display: flex;
  flex-wrap: wrap;
  font-size: var(--text-sm);
  color: var(--text-muted);
}
.item__meta span + span {
  margin-left: var(--space-2);
  padding-left: var(--space-2);
  border-left: 1px solid var(--border-strong);
}
.item__status {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-1);
  font-size: var(--text-sm);
}
.item[data-status="done"] .item__status {
  color: var(--accent-text);
  font-weight: 600;
}
.item[data-status="failed"] .item__status,
.item[data-status="declined"] .item__status {
  color: var(--danger);
  font-weight: 600;
}
.item[data-status="canceled"] .item__status {
  color: var(--text-muted);
}
.item__text {
  margin-top: var(--space-1);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  font-family: var(--font);
  font-size: var(--text-sm);
  white-space: pre-wrap;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.item__text.is-open {
  display: block;
  max-height: 40vh;
  overflow: auto;
}
.item__note {
  margin-top: var(--space-1);
  font-size: var(--text-xs);
  color: var(--text-muted);
}
.item__actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.bar {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  border: 0;
  border-radius: 4px;
  background: var(--surface-2);
  overflow: hidden;
}
.bar::-webkit-progress-bar {
  background: var(--surface-2);
}
.bar::-webkit-progress-value {
  background: var(--grad-cool);
}
.bar::-moz-progress-bar {
  background: var(--grad-cool);
}
.progress-wrap {
  display: grid;
  gap: var(--space-1);
  width: 100%;
  margin-top: var(--space-1);
}
.progress-text {
  font-size: var(--text-xs);
  color: var(--text-muted);
}
.check path {
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
  animation: draw 0.35s ease-out forwards;
}
@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}
@media (min-width: 600px) {
  .item {
    grid-template-columns: 56px minmax(0, 1fr) auto;
    align-items: start;
  }
  .item__actions {
    grid-column: 3;
    grid-row: 1;
    flex-wrap: nowrap;
  }
}

/* ---- 대화상자, 토스트 ---- */
.dialog {
  width: min(440px, calc(100vw - 32px));
  padding: var(--space-5);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
}
.dialog::backdrop {
  background: var(--backdrop);
}
.dialog__title {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-2);
}
.dialog__list {
  display: grid;
  gap: var(--space-1);
  max-height: 30vh;
  overflow: auto;
  margin: var(--space-3) 0;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  font-size: var(--text-sm);
}
.dialog__list li {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
}
.dialog__warn {
  margin-bottom: var(--space-3);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  background: var(--warn-soft);
  color: var(--warn-text);
  font-size: var(--text-sm);
}
.toasts {
  position: fixed;
  left: 50%;
  bottom: max(var(--space-4), env(safe-area-inset-bottom));
  z-index: 50;
  display: grid;
  gap: var(--space-2);
  width: min(420px, calc(100vw - 32px));
  transform: translateX(-50%);
  pointer-events: none;
}
.toast {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius);
  background: var(--text);
  color: var(--bg);
  font-size: var(--text-sm);
  font-weight: 600;
}
.toast--action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  width: 100%;
  border: 0;
  text-align: left;
  cursor: pointer;
  pointer-events: auto;
}
.toast--action::after {
  content: "보기";
  flex: none;
  padding: 2px var(--space-2);
  border-radius: var(--radius-sm);
  background: var(--yellow);
  color: var(--on-warm);
  font-size: var(--text-xs);
}
/* 받은 항목으로 이동했을 때 잠깐 강조 */
.item--flash {
  animation: flash 1.6s ease-out 1;
}
@keyframes flash {
  0%,
  30% {
    box-shadow: 0 0 0 3px var(--accent);
    background: var(--accent-soft);
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}
@media (prefers-reduced-motion: reduce) {
  .item--flash {
    animation: none;
    outline: 3px solid var(--accent);
  }
}

/* ---- 사용 예시 ---- */
.usecases {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-3);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
}
.usecase {
  display: flex;
  word-break: keep-all;
  overflow-wrap: anywhere;
  gap: var(--space-3);
  padding: var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
}
.usecase__num {
  flex: none;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--accent-text);
  line-height: 1.6;
}
.usecase__title {
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--space-1);
}
.usecase__desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* ---- 메뉴(WIFI 전송, 방 만들기): 두 메뉴 모두 항상 보이고, 선택된 메뉴만 색이 채워집니다 ---- */
.mode-nav {
  padding-top: var(--space-4);
}
.mode-tabs {
  display: inline-flex;
  gap: var(--space-1);
  padding: var(--space-1);
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
}
.mode-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: var(--tap);
  padding: 0 var(--space-5) 0 var(--space-4);
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, transform 0.15s ease;
}
.mode-tab__emoji {
  font-size: 1.1em;
  line-height: 1;
}
.mode-tab--wifi[aria-pressed="true"] {
  background: var(--grad-warm);
  color: var(--on-warm);
  box-shadow: 0 2px 10px -2px rgba(242, 140, 56, 0.55);
}
.mode-tab--room[aria-pressed="true"] {
  background: var(--grad-cool);
  color: #fff;
  box-shadow: 0 2px 10px -2px rgba(123, 63, 228, 0.55);
}
.mode-tab__badge {
  position: absolute;
  top: -4px;
  right: -2px;
}
/* 마우스가 있는 데스크톱에서만 hover 효과 */
@media (hover: hover) and (pointer: fine) {
  .mode-tab:not([aria-pressed="true"]):hover {
    background: var(--surface);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px -3px rgba(0, 0, 0, 0.25);
  }
  .mode-tab[aria-pressed="true"]:hover {
    filter: brightness(1.05);
  }
}
.mode-tab:active {
  transform: scale(0.97);
}
@media (max-width: 360px) {
  .mode-tab {
    padding: 0 var(--space-3);
  }
}
@media (prefers-reduced-motion: reduce) {
  .mode-tab {
    transition: none;
  }
}
.count--alert {
  background: var(--pink);
  color: #fff;
}

/* ---- 방 ---- */
.room-join {
  border-top: 1px solid var(--border);
  padding-top: var(--space-4);
}
.room-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3);
  border-radius: var(--radius);
  background: var(--surface-2);
}
.room-wait {
  padding: var(--space-3);
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--accent-text);
  font-weight: 600;
}
.room-warn {
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius);
  background: var(--warn-soft);
  color: var(--warn-text);
  font-size: var(--text-sm);
}
.room-msg:empty {
  display: none;
}
.member-list {
  display: grid;
  gap: var(--space-2);
}
.member {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-2) var(--space-3);
  min-height: 52px;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.member--request {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.member--offline {
  opacity: 0.6;
}
.member__name {
  display: grid;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.member__tags {
  font-size: var(--text-xs);
  font-weight: 400;
  color: var(--text-muted);
}
.member__actions {
  display: flex;
  gap: var(--space-2);
}
.check {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-height: var(--tap);
  font-size: var(--text-sm);
  cursor: pointer;
}
.check input {
  width: 20px;
  height: 20px;
  accent-color: var(--accent);
}
.room-intro {
  margin-bottom: var(--space-3);
  padding: var(--space-2) var(--space-3);
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: var(--text-sm);
  font-weight: 600;
}

/* ---- 파일 형식 보안 안내(강조) ---- */
.file-rule {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-1) var(--space-2);
  margin-top: var(--space-2);
  padding: var(--space-3);
  border: 1px solid var(--warn-text);
  border-left-width: 4px;
  border-radius: var(--radius);
  background: var(--warn-soft);
  color: var(--text);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.55;
  word-break: keep-all;
}
.file-rule__label {
  flex: none;
  padding: 1px var(--space-2);
  border-radius: var(--radius-sm);
  background: var(--warn-text);
  color: var(--surface);
  font-size: var(--text-xs);
  font-weight: 700;
}
.dropzone .file-rule {
  justify-self: stretch;
}
@media (max-width: 480px) {
  .brand__logo {
    height: 31.4px;
  }
}
/* 로고 글자색: 밝은 테마는 검은색, 어두운 테마는 흰색 이미지 */
.brand__logo--dark {
  display: none;
}
[data-theme="dark"] .brand__logo--light {
  display: none;
}
[data-theme="dark"] .brand__logo--dark {
  display: block;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand__logo--light {
    display: none;
  }
  :root:not([data-theme="light"]) .brand__logo--dark {
    display: block;
  }
}

/* ---- 연결하는 중: 스피너와 짧은 사유 ---- */
.spinner {
  display: inline-block;
  flex: none;
  width: 14px;
  height: 14px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .spinner {
    animation-duration: 2.4s;
  }
}
.item__phase {
  margin-top: 2px;
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* ---- 별점과 의견: 아래에서 올라오는 시트 ---- */
.sheet {
  width: 100%;
  max-width: 480px;
  margin: auto auto 0;
  padding: 0;
  border: 1px solid var(--border);
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
  background: var(--surface);
  color: var(--text);
}
.sheet[open] {
  animation: sheet-up 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.sheet::backdrop {
  background: var(--backdrop);
}
@keyframes sheet-up {
  from {
    transform: translateY(100%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .sheet[open] {
    animation: none;
  }
}
.sheet__body {
  display: grid;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-5) max(var(--space-5), env(safe-area-inset-bottom));
}
.sheet__grip {
  justify-self: center;
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background: var(--border-strong);
}
.sheet__title {
  font-size: var(--text-lg);
  font-weight: 700;
  text-align: center;
}
.stars {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
}
.star {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--border-strong);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.15s ease, color 0.15s ease;
}
.star.is-on {
  color: #f2a73b;
}
@media (hover: hover) and (pointer: fine) {
  .star:hover {
    transform: scale(1.12);
  }
}

/* ---- 기기 종류 표시: PC는 보라, 폰은 주황, 태블릿은 핑크 ---- */
.badge[data-kind="desktop"] {
  border-color: transparent;
  background: var(--kind-pc-bg);
  color: var(--kind-pc-fg);
}
.badge[data-kind="phone"] {
  border-color: transparent;
  background: var(--kind-phone-bg);
  color: var(--kind-phone-fg);
}
.badge[data-kind="tablet"] {
  border-color: transparent;
  background: var(--kind-tablet-bg);
  color: var(--kind-tablet-fg);
}

/* ---- 사용 예시: 번호 색을 네 가지로 돌아가며, 데스크톱에서 커서를 올리면 조금 커짐 ---- */
.usecase {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.usecase:nth-child(4n + 1) .usecase__num { color: var(--purple); }
.usecase:nth-child(4n + 2) .usecase__num { color: #d9701c; }
.usecase:nth-child(4n + 3) .usecase__num { color: var(--pink); }
.usecase:nth-child(4n + 4) .usecase__num { color: #b07d00; }
@media (hover: hover) and (pointer: fine) {
  .usecase:hover {
    transform: scale(1.03);
    border-color: var(--accent);
    box-shadow: 0 8px 24px -12px rgba(123, 63, 228, 0.45);
  }
}
@media (prefers-reduced-motion: reduce) {
  .usecase {
    transition: none;
  }
  .usecase:hover {
    transform: none;
  }
}
.usecase__desc strong {
  color: var(--pink);
  font-weight: 800;
}

.nowrap {
  white-space: nowrap;
}
.file-rule__text {
  flex: 1 1 16em;
  text-wrap: pretty;
}
/* 사용 예시 9개: 데스크톱은 3열(3x3), 태블릿은 2열, 폰은 1열 */
@media (min-width: 900px) {
  .usecases {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
/* 좁은 화면: 로고와 연결 상태, 테마 버튼이 한 줄에 들어가도록 여백을 줄임 */
@media (max-width: 420px) {
  .theme-toggle__option {
    padding: 0 var(--space-2);
  }
  .app-header__tools {
    gap: var(--space-2);
  }
}
