/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-bg:            #F0F4F8;
  --color-surface:       #FFFFFF;
  --color-border:        #E2E8F0;
  --color-border-light:  #F0F4F8;

  --color-primary:       #FF7D3D;
  --color-primary-dark:  #E05A1A;
  --color-primary-glow:  rgba(255, 125, 61, 0.35);

  --color-interval:      #4A90D9;
  --color-interval-dark: #2B6CB0;
  --color-interval-glow: rgba(74, 144, 217, 0.35);

  --color-on:            #0ACF83;
  --color-on-dark:       #00A86B;

  --color-success:       #38A169;
  --color-danger:        #E53E3E;
  --color-danger-bg:     #FFF5F5;

  --color-text:          #1A202C;
  --color-text-muted:    #718096;
  --color-text-light:    #A0AEC0;

  --color-ring-track:    #E2E8F0;
  --color-ring:          #FF7D3D;

  --font: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI',
          'Noto Sans JP', sans-serif;

  --shadow:    0 4px 24px rgba(0, 0, 0, 0.12);
  --shadow-sm: 0 2px 8px  rgba(0, 0, 0, 0.08);
  --shadow-up: 0 -2px 12px rgba(0, 0, 0, 0.08);

  --color-action:          #1F2937;
  --color-action-hover:    #111827;
  --color-action-disabled: #D1D5DB;

  --user-1:  #3F51B5;
  --user-2:  #81C784;
  --user-3:  #E57373;
  --user-4:  #FFB74D;
  --user-5:  #BA68C8;
  --user-6:  #4DD0E1;
  --user-7:  #F06292;
  --user-8:  #A1887F;
  --user-9:  #90A4AE;
  --user-10: #AED581;
  --user-11: #FFD54F;
  --user-12: #9575CD;

  --radius:      12px;
  --radius-sm:   8px;
  --radius-full: 9999px;

  --header-h:   56px;
  --strip-h:    84px;
  --controls-h: 88px;
}

.avatar-lg,
.current-name,
.timer-value,
.timer-unit,
.round-label {
  transition: opacity 0.2s, filter 0.2s;
}

/* ===== Running phase: ring animation (持ち時間のみ) ===== */

.avatar-ring-wrapper {
  position: relative;
  display: inline-flex;
  border-radius: 50%;
  flex-shrink: 0;
}

body[data-phase="running"] .avatar-ring-wrapper {
  /* 隙間を白で埋める */
  background: #fff;
  /* ユーザーカラー 4px + 白 1px（外側・画像領域を狭めない） */
  box-shadow: 0 0 0 1px #fff,
              0 0 0 5px var(--avatar-border-color, transparent);
}

body[data-phase="running"] .avatar-ring-wrapper .avatar-lg {
  position: relative;
  z-index: 1;
}

body[data-phase="running"]:not([data-transition="end"]):not([data-paused="true"]) .avatar-ring-wrapper::before,
body[data-phase="running"]:not([data-transition="end"]):not([data-paused="true"]) .avatar-ring-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  animation: ring-emit 1.8s ease-out infinite;
  pointer-events: none;
  z-index: 0;
}

body[data-phase="running"]:not([data-transition="end"]):not([data-paused="true"]) .avatar-ring-wrapper::after {
  animation-delay: 0.5s;
}

@keyframes ring-emit {
  0%   { box-shadow: 0 0  2px  2px rgba(var(--ring-color-rgb, 31, 41, 55), 0.5); }
  75%  { box-shadow: 0 0 16px 28px rgba(var(--ring-color-rgb, 31, 41, 55), 0.0); }
  100% { box-shadow: 0 0 16px 28px rgba(var(--ring-color-rgb, 31, 41, 55), 0.0); }
}

/* ===== Interval phase: distinct layout ===== */

body[data-phase="interval"] {
  --color-ring: #718096;
}

/* Dark background */
body[data-phase="interval"] .main-content {
  background: #4A5568;
  transition: background 0.3s ease;
}

/* "つぎは" — section title at top, back in normal flow */
body[data-phase="interval"] .status-label {
  position: static;
  font-size: 1.3rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.04em;
}

/* Person row: horizontal layout, compact */
body[data-phase="interval"] .current-person {
  flex-direction: row;
  gap: 16px;
  opacity: 1;
  filter: none;
}

/* Avatar: ~70% of running size */
body[data-phase="interval"] .avatar-lg {
  width: 80px;
  height: 80px;
  font-size: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(255, 255, 255, 1);
}

/* Name: white, slightly smaller */
body[data-phase="interval"] .current-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0;
}

/* "はじまるまで" sub-label */
body[data-phase="interval"] .interval-sublabel {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
}

/* Timer: ~65% of running size */
body[data-phase="interval"] .timer-value {
  font-size: clamp(2rem, 8vw, 3.2rem);
  color: rgba(255, 255, 255, 0.8);
}

body[data-phase="interval"] .timer-unit {
  color: rgba(255, 255, 255, 0.6);
}

body[data-phase="interval"] .round-label {
  display: none;
}

html, body {
  height: 100%;
}

body {
  font-family: var(--font);
  background: var(--color-bg);
  color: var(--color-text);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

button {
  font-family: var(--font);
}

.hidden {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ===== Header ===== */
.header {
  height: var(--header-h);
  background: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px 0 16px;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
  z-index: 10;
}

.header-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.01em;
  flex: 1;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 2px;
}

.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  transition: background 0.15s, color 0.15s;
}

.icon-btn:hover {
  background: var(--color-bg);
  color: var(--color-text);
}

.icon-btn.sound-muted {
  color: var(--color-text-light);
  opacity: 0.55;
}

/* ===== Participant Strip ===== */
.strip-container {
  height: var(--strip-h);
  background: var(--color-surface);
  overflow-x: auto;
  overflow-y: hidden;
  flex-shrink: 0;
  border-bottom: 1px solid var(--color-border);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

.strip-container::-webkit-scrollbar {
  display: none;
}

.strip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  height: 100%;
  width: max-content;
  min-width: 100%;
}

.strip-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.strip-item.strip-current {
  transform: scale(1.1);
}

.strip-item.strip-current .avatar-sm {
  border-width: 2.5px !important;
  border-color: var(--strip-current-color, var(--color-action));
  /* 内側白1px + キーカラーの外にグレー枠 */
  box-shadow: inset 0 0 0 1px #fff,
              0 0 0 3px rgba(31, 41, 55, 0.15);
}

.strip-name {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--color-text-muted);
  max-width: 52px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}

.strip-item.strip-current .strip-name {
  color: var(--color-text);
  font-weight: 800;
}

.strip .avatar-sm {
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border);
}

/* ===== Avatar ===== */
.avatar {
  border-radius: var(--radius-full);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
  user-select: none;
  border: 2px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
  background-clip: padding-box;
}

.avatar img {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: cover;
}

.avatar-sm {
  width: 46px;
  height: 46px;
  font-size: 1.1rem;
}

.avatar-lg {
  width: 148px;
  height: 148px;
  font-size: 3.6rem;
  box-shadow: var(--shadow);
}

/* ===== Main Content ===== */
.main-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  min-height: 0;
}

.screen {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 16px 24px;
}

/* ===== Idle Screen ===== */
.idle-heading {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.idle-avatars {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* スタート画面のアバター：画像あり・なしで統一して42pxに */
body[data-phase="idle"] .idle-avatars .avatar-sm {
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  min-height: 42px !important;
  max-width: 42px !important;
  max-height: 42px !important;
  flex-shrink: 0;
  line-height: 1;
  border: none !important;
}

body[data-phase="idle"] .idle-avatars .avatar-sm img {
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  min-height: 42px !important;
  max-width: 42px !important;
  max-height: 42px !important;
  object-fit: cover;
}

.idle-avatar-more {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  background: var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.idle-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  width: 100%;
  max-width: 340px;
  overflow: hidden;
}

.idle-info {
  padding: 4px 0;
}

.idle-info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  font-size: 1rem;
}

.idle-info-item + .idle-info-item {
  border-top: 1px solid var(--color-border-light);
}

.idle-info-label {
  color: var(--color-text-muted);
}

.idle-info-value {
  font-weight: 700;
  color: var(--color-text);
}

.edit-settings-btn {
  background: none;
  border: none;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: background 0.15s, color 0.15s;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.edit-settings-btn:hover {
  background: var(--color-bg);
  color: var(--color-action);
}

.edit-settings-btn:active {
  background: var(--color-border);
}

/* ===== Start Button ===== */
.start-btn {
  background: var(--color-action);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  padding: 18px 52px;
  font-size: 1.45rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(31, 41, 55, 0.25);
  transition: transform 0.15s, background 0.15s, box-shadow 0.15s;
  letter-spacing: 0.02em;
}

.start-btn:hover {
  background: var(--color-action-hover);
  transform: scale(1.04);
}

.start-btn:active {
  transform: scale(0.96);
}

.start-btn:disabled {
  background: var(--color-action-disabled);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ===== Running Screen ===== */
.current-person {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.current-name {
  font-size: clamp(1.1rem, 4vw, 1.5rem);
  font-weight: 700;
  text-align: center;
  letter-spacing: -0.02em;
  padding-top: 5px;
}

/* ===== Ring Timer ===== */
.progress-bar-strip {
  width: 100%;
  height: 18px;
  background: var(--color-ring-track);
  flex-shrink: 0;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--color-ring);
  transition: width 0.1s linear, background 0.4s ease;
}

.timer-value {
  font-size: clamp(3rem, 12vw, 5rem);
  font-weight: 900;
  line-height: 1;
  color: var(--color-text);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}

.timer-unit {
  display: none;
}

.status-label {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text-muted);
  text-align: center;
  letter-spacing: 0.01em;
  pointer-events: none;
}

.interval-sublabel {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-align: center;
}

.round-label {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

/* ===== Transition Overlay ===== */
.transition-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  pointer-events: none;
}

.transition-message {
  font-size: clamp(3rem, 14vw, 5.5rem);
  font-weight: 900;
  color: var(--color-action);
  background: rgba(255, 255, 255, 0.92);
  padding: 16px 48px;
  border-radius: var(--radius-full);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  letter-spacing: -0.02em;
  animation: msg-pop 1s ease forwards;
}

@keyframes msg-pop {
  0%   { opacity: 0; transform: scale(0.7); }
  18%  { opacity: 1; transform: scale(1.08); }
  40%  { opacity: 1; transform: scale(1);   }
  75%  { opacity: 1; transform: scale(1);   }
  100% { opacity: 0; transform: scale(0.92); }
}

/* ===== Done Screen ===== */
.done-icon {
  font-size: 5rem;
  line-height: 1;
  animation: pop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.done-text {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-text);
}

@keyframes pop {
  from { transform: scale(0.5); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

/* ===== Controls ===== */
.controls {
  height: var(--controls-h);
  background: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 0 24px;
  box-shadow: var(--shadow-up);
  flex-shrink: 0;
}

.ctrl-btn {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-full);
  border: none;
  background: var(--color-bg);
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s, background 0.15s;
  color: var(--color-text);
  flex-shrink: 0;
}

.ctrl-btn:hover {
  background: var(--color-border);
  transform: scale(1.08);
}

.ctrl-btn:active {
  transform: scale(0.92);
}

.ctrl-pause {
  width: 58px;
  height: 58px;
  font-size: 1.4rem;
  background: var(--color-action);
  color: white;
  box-shadow: 0 4px 14px rgba(31, 41, 55, 0.25);
  transition: transform 0.15s, background 0.2s, box-shadow 0.2s;
}

.ctrl-pause:hover {
  background: var(--color-action-hover);
  color: white;
}

.ctrl-pause:disabled {
  background: var(--color-action-disabled);
  cursor: not-allowed;
  box-shadow: none;
}

.ctrl-reset {
  color: var(--color-text-muted);
  font-size: 1.6rem;
}

.ctrl-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

/* ===== Modal ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  padding: 16px;
}

.modal {
  background: var(--color-surface);
  border-radius: var(--radius);
  width: 100%;
  max-width: 520px;
  max-height: 90dvh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  animation: modal-in 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes modal-in {
  from { transform: scale(0.95); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
}

.modal-header .icon-btn {
  font-size: 1.5rem;
}

.modal-header .icon-btn svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 600px) {
  .modal-header .icon-btn {
    min-width: 52px;
    min-height: 52px;
    padding: 12px;
    transform: translateX(10px);
  }

  .modal-header .icon-btn svg {
    width: 28px;
    height: 28px;
  }
}

.modal-title {
  font-size: 1.3rem;
  font-weight: 800;
}

.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px 8px;
  -webkit-overflow-scrolling: touch;
}

.modal-footer {
  display: flex;
  gap: 12px;
  padding: 16px 20px;
  border-top: 1px solid var(--color-border);
  flex-shrink: 0;
}

/* ===== Buttons (Modal) ===== */
.btn {
  flex: 1;
  padding: 14px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--color-action);
  color: white;
}

.btn-primary:hover {
  background: var(--color-action-hover);
}

.btn-primary:disabled {
  background: var(--color-action-disabled);
  cursor: not-allowed;
}

.btn-secondary {
  background: var(--color-bg);
  color: var(--color-text);
}

.btn-secondary:hover {
  background: var(--color-border);
}

/* ===== Settings Sections ===== */
.settings-section {
  margin-bottom: 28px;
}

.section-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 10px;
}

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border-light);
  gap: 12px;
}

.setting-label {
  font-size: 0.97rem;
  color: var(--color-text);
  flex: 1;
  line-height: 1.4;
}

.setting-label small {
  display: block;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 2px;
}

.setting-input {
  width: 80px;
  padding: 8px 10px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 1.05rem;
  font-weight: 700;
  text-align: center;
  font-family: var(--font);
  background: var(--color-bg);
  color: var(--color-text);
  transition: border-color 0.15s;
  -moz-appearance: textfield;
}

.setting-input::-webkit-outer-spin-button,
.setting-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

.setting-input:focus {
  outline: none;
  border-color: var(--color-primary);
}

/* ===== Toggle switch ===== */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 26px;
  flex-shrink: 0;
  cursor: pointer;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  background: #D1D5DB;
  border-radius: 26px;
  transition: background 0.2s;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.toggle-switch input:checked + .toggle-slider {
  background: var(--color-on);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(18px);
}

/* ===== Participant List (Modal) ===== */
.participant-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border-light);
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.participant-drag-handle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 40px;
  flex-shrink: 0;
  cursor: grab;
  color: var(--color-text-light);
  touch-action: none;
}

.participant-drag-handle:active {
  cursor: grabbing;
}

.participant-item.participant-dragging {
  opacity: 0.6;
}

.participant-drop-line {
  height: 4px;
  background: #94a3b8;
  flex-shrink: 0;
  margin: 2px 0;
}

.participant-item.participant-drag-over {
  background: rgba(var(--color-primary-rgb, 255, 125, 61), 0.08);
  margin: 0 -12px;
  padding-left: 12px;
  padding-right: 12px;
}

.participant-avatar-btn {
  position: relative;
  background: none;
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-full);
  width: 52px;
  height: 52px;
  cursor: pointer;
  overflow: hidden;
  flex-shrink: 0;
  transition: border-color 0.15s;
  padding: 0;
}

.participant-avatar-btn:hover {
  border-color: var(--color-primary);
}

.participant-avatar-btn .avatar {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 0;
  font-size: 1.2rem;
}

.avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 1.4rem;
  color: var(--color-text-light);
}

.participant-name-input {
  flex: 1;
  padding: 10px 12px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: var(--font);
  background: var(--color-bg);
  color: var(--color-text);
  transition: border-color 0.15s;
  min-width: 0;
  user-select: text;
  -webkit-user-select: text;
}

.participant-name-input:focus {
  outline: none;
  border-color: var(--color-primary);
}

.participant-delete-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--color-text-light);
  font-size: 1.1rem;
  border-radius: var(--radius-sm);
  min-width: 40px;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, background 0.15s;
}

.participant-delete-btn:hover {
  color: var(--color-danger);
  background: var(--color-danger-bg);
}

.participant-delete-btn svg {
  width: 20px;
  height: 20px;
}

.add-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: none;
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  width: 100%;
  cursor: pointer;
  font-size: 1rem;
  font-family: var(--font);
  color: var(--color-text-muted);
  margin-top: 10px;
  transition: border-color 0.15s, color 0.15s;
}

.add-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* ===== Responsive (tablet+) ===== */
@media (min-width: 480px) {
  .avatar-lg {
    width: 160px;
    height: 160px;
  }

  .current-name {
    font-size: 1.5rem;
  }
}

@media (min-width: 768px) {
  .avatar-lg {
    width: 172px;
    height: 172px;
    font-size: 4rem;
  }

  .screen {
    gap: 24px;
  }
}
