/* ==========================================================
 * My9Niconico - app.css
 * デザイン: B案（ポップ・エンタメ）
 * ========================================================== */

/* --- カラートークン --- */
:root {
  --bg: #FFFBEB;
  --card-bg: #FFFFFF;
  --text-main: #333333;
  --text-sub: #666666;
  --accent: #F97316;
  --accent-hover: #EA580C;
  --accent-light: #FFF7ED;
  --danger: #EF4444;
  --radius: 16px;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* --- リセット・ベース --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', 'Yu Gothic', sans-serif;
  background: var(--bg);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button { cursor: pointer; font-family: inherit; }
img { display: block; max-width: 100%; }

/* --- ページヘッダー --- */
.page-header {
  text-align: center;
  padding: 28px 16px 8px;
}

/* ロゴ風タイトル */
.site-logo {
  font-family: 'Zen Maru Gothic', 'Hiragino Kaku Gothic ProN', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: 0.02em;
  color: var(--text-main);
  position: relative;
  display: inline-block;
}
.logo-accent {
  font-size: 2.8rem;
  color: var(--accent);
  vertical-align: baseline;
  text-shadow: 2px 2px 0 rgba(249, 115, 22, 0.15);
  margin: 0 2px;
}
.logo-nico {
  background: linear-gradient(135deg, var(--accent), #FB923C);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.site-logo::after {
  content: '';
  display: block;
  width: 60%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), #FBBF24);
  border-radius: 2px;
  margin: 6px auto 0;
}

.page-header .subtitle {
  font-size: 0.88rem;
  color: var(--text-sub);
  margin-top: 8px;
}

/* --- メインレイアウト --- */
.main-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 16px 40px;
}
.grid-section { width: 100%; }

/* --- リスト名入力 --- */
.title-input-wrap {
  text-align: center;
  margin-bottom: 16px;
}
.title-input {
  width: 100%;
  max-width: 480px;
  padding: 10px 16px;
  font-family: 'Zen Maru Gothic', 'Hiragino Kaku Gothic ProN', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  text-align: center;
  border: 2px solid #E0E0E0;
  border-radius: 12px;
  background: var(--card-bg);
  outline: none;
  transition: border-color 0.2s;
}
.title-input:focus {
  border-color: var(--accent);
}
.title-input::placeholder {
  color: #bbb;
  font-weight: 400;
}

/* --- 3×3グリッド --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

/* --- カード --- */
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
  transition: box-shadow 0.2s;
  /* iOS長押しコンテキストメニュー抑制 */
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}
.card:hover { box-shadow: var(--shadow-lg); }

/* --- ジグルモード（長押し後） --- */
@keyframes jiggle {
  0%, 100% { transform: rotate(-1.2deg); }
  50% { transform: rotate(1.2deg); }
}
.card-grid.jiggle .card:not(.placeholder) {
  animation: jiggle 0.25s ease-in-out infinite;
}
.card-grid.jiggle .card:nth-child(even) {
  animation-delay: 0.12s;
}
/* ジグルモード中は×ボタン常時表示 */
.card-grid.jiggle .btn-remove {
  opacity: 1;
}
/* ジグルモード中のタッチ挙動制御 */
.card-grid.jiggle {
  -webkit-touch-callout: none;
  user-select: none;
}

/* モバイル: タップで×一時表示 */
.card.card-tapped .btn-remove {
  opacity: 1;
}

/* ドラッグ中のカード */
.card.drag-active {
  position: fixed !important;
  z-index: 1000;
  pointer-events: none;
  transform: skewX(-5deg) scale(1.06);
  box-shadow: 0 12px 32px rgba(0,0,0,0.25);
  opacity: 0.92;
  transition: none;
  animation: none !important;
}
/* ドラッグ元の空きスペース */
.card.drag-origin {
  opacity: 0.3;
  border: 2px dashed var(--accent);
}
/* スワップ先候補 */
.card.drag-target {
  box-shadow: 0 0 0 3px var(--accent);
  transform: scale(0.95);
  transition: transform 0.15s;
}

/* 並べ替えヒント */
.reorder-hint {
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-sub);
  margin: 8px 0 0;
}

/* 番号バッジ */
.card .badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  line-height: 1;
}

/* 削除ボタン */
.card .btn-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  font-size: 14px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.2s;
}
.card:hover .btn-remove { opacity: 1; }

/* サムネイル */
.card .thumb-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  background: #f0f0f0;
  overflow: hidden;
}
.card .thumb-wrap img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-touch-callout: none;
  pointer-events: none;
}
.card .thumb-deleted {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: #1a1a1a;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* カード情報 */
.card .card-info { padding: 8px 10px; }
.card .card-title {
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--text-main);
  min-height: 2.1em;
}
.card .card-uploader {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
}
.card .uploader-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #eee;
  -webkit-touch-callout: none;
  pointer-events: none;
}
.card .uploader-name {
  font-size: 0.72rem;
  color: var(--text-sub);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

/* --- プレースホルダー（未選択） --- */
.card.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  cursor: pointer;
  border: 2px dashed #DDD;
  background: var(--accent-light);
  box-shadow: none;
}
.card.placeholder:hover {
  border-color: var(--accent);
  background: #FFF3E0;
}
.card.placeholder .placeholder-text {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
}
.card.placeholder .placeholder-text .plus {
  font-size: 1.6rem;
  display: block;
  margin-bottom: 2px;
}

/* --- アクションバー --- */
.action-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
  justify-content: center;
}
.ranking-link-wrap {
  text-align: center;
  margin-top: 12px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border: none;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: background 0.2s, transform 0.1s;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.btn-outline {
  background: var(--card-bg);
  color: var(--text-main);
  border: 1.5px solid #DDD;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.btn-danger-outline {
  background: var(--card-bg);
  color: var(--danger);
  border: 1.5px solid var(--danger);
}
.btn-danger-outline:hover { background: #FEF2F2; }

.btn-x {
  background: #000;
  color: #fff;
}
.btn-x:hover { background: #333; }

.btn-copy {
  background: #2563EB;
  color: #fff;
  border: none;
}
.btn-copy:hover { background: #1D4ED8; }

/* --- 追加パネル（PC: 右、SP: 下） --- */
.add-panel {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}
.add-panel h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 12px;
}

/* タブ */
.panel-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 12px;
  border-bottom: 2px solid #eee;
}
.panel-tab {
  flex: 1;
  padding: 8px 0;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  background: none;
  border: none;
  color: var(--text-sub);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.2s, border-color 0.2s;
}
.panel-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* 検索入力 */
.search-mode-toggle {
  display: flex;
  gap: 14px;
  margin-bottom: 8px;
  font-size: 0.82rem;
}
.search-mode-toggle label {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  color: var(--text-sub);
}
.search-mode-toggle input[type="radio"] {
  accent-color: var(--accent);
}
.search-box {
  display: flex;
  gap: 8px;
}
.search-box input {
  flex: 1;
  padding: 8px 12px;
  border: 1.5px solid #DDD;
  border-radius: 8px;
  font-size: 16px; /* ★16px未満だとiOS Safariが自動ズームする */
  outline: none;
  transition: border-color 0.2s;
}
.search-box input:focus { border-color: var(--accent); }
.search-box button {
  padding: 8px 16px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
}
.search-box button:hover { background: var(--accent-hover); }

/* ID入力 */
.id-input-wrap {
  display: none;
}
.id-input-wrap.active { display: block; }
.search-wrap { display: block; }
.search-wrap.hidden { display: none; }

/* ランキングタブ */
.ranking-wrap {
  display: none;
}
.ranking-wrap.active { display: block; }
.ranking-selector {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.ranking-selector select {
  flex: 1;
  padding: 8px 10px;
  border: 1.5px solid #DDD;
  border-radius: 8px;
  font-size: 16px;
  outline: none;
  background: #fff;
}
.ranking-selector select:focus { border-color: var(--accent); }
.ranking-selector .btn {
  white-space: nowrap;
  padding: 8px 18px;
  font-size: 0.85rem;
}
.ranking-result-item {
  display: flex;
  align-items: center;
}
.rank-badge {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.78rem;
  border-radius: 50%;
  margin-right: 10px;
}

.id-input-box {
  display: flex;
  gap: 8px;
}
.id-input-box input {
  flex: 1;
  padding: 8px 12px;
  border: 1.5px solid #DDD;
  border-radius: 8px;
  font-size: 16px; /* ★iOS自動ズーム防止 */
  outline: none;
}
.id-input-box input:focus { border-color: var(--accent); }
.id-input-box button {
  padding: 8px 16px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
}

.id-hint {
  font-size: 0.72rem;
  color: var(--text-sub);
  margin-top: 6px;
}

/* 検索結果リスト */
.search-results {
  margin-top: 12px;
  max-height: 420px;
  overflow-y: auto;
}
.search-result-item {
  display: flex;
  gap: 10px;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
  align-items: center;
}
.search-result-item:hover { background: var(--accent-light); }
.search-result-item .sr-thumb {
  width: 80px;
  height: 45px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  background: #f0f0f0;
}
.search-result-item .sr-info {
  flex: 1;
  min-width: 0;
}
.search-result-item .sr-title {
  font-size: 0.8rem;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
}
.search-result-item .sr-meta {
  font-size: 0.7rem;
  color: var(--text-sub);
  margin-top: 2px;
}

.search-status {
  text-align: center;
  padding: 16px 0;
  font-size: 0.82rem;
  color: var(--text-sub);
}

/* もっと見るボタン */
.search-more {
  text-align: center;
  padding: 12px 0 4px;
}
.search-more-btn {
  width: 100%;
  padding: 10px;
  font-size: 0.85rem;
}

/* --- 通知 --- */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: #333;
  color: #fff;
  padding: 10px 24px;
  border-radius: 10px;
  font-size: 0.85rem;
  z-index: 1000;
  opacity: 0;
  transition: transform 0.3s, opacity 0.3s;
  pointer-events: none;
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* --- 共有ページ --- */
.share-page .card { cursor: default; }
.share-page .card .btn-remove { display: none; }

/* 共有ページ: サムネ・タイトル・投稿者リンク */
.card-title-link {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-main);
  min-height: 2.1em;
  text-decoration: none;
}
.card-title-link:hover {
  color: var(--accent);
  text-decoration: underline;
}
.card-uploader-link {
  display: flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  color: var(--text-sub);
  min-width: 0;
}
.card-uploader-link:hover {
  color: var(--accent);
}
.card-uploader-link .uploader-name {
  color: inherit;
}
.card .thumb-wrap a {
  display: block;
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
}
.card .thumb-wrap a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: auto;
  -webkit-touch-callout: default;
}

.share-actions {
  text-align: center;
  margin-top: 20px;
}

/* --- フッター --- */
.page-footer {
  text-align: center;
  padding: 24px 16px 32px;
}
.footer-brand {
  font-family: 'Zen Maru Gothic', 'Hiragino Kaku Gothic ProN', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-sub);
  margin-bottom: 8px;
}
.footer-link {
  display: inline-block;
  font-size: 0.82rem;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px dashed var(--accent);
  padding-bottom: 1px;
}
.footer-link:hover {
  color: var(--accent-hover);
  border-color: var(--accent-hover);
}
.footer-legal {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-legal a {
  font-size: 0.72rem;
  color: var(--text-sub);
  text-decoration: none;
}
.footer-legal a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* --- 共有ページヒント --- */
.share-hint {
  font-size: 0.78rem;
  color: var(--text-sub);
  margin-top: 4px;
}

/* --- 静的ページ（利用規約等） --- */
.static-page {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 20px 40px;
}
.static-page-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-main);
  border-bottom: 3px solid var(--accent);
  padding-bottom: 8px;
  margin-bottom: 24px;
}
.static-page-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 24px 0 8px;
}
.static-page-body p {
  font-size: 0.88rem;
  color: var(--text-main);
  line-height: 1.7;
  margin-bottom: 12px;
}
.static-page-body ul {
  margin: 0 0 12px 20px;
  font-size: 0.88rem;
  line-height: 1.7;
}
.static-page-body a {
  color: var(--accent);
}
.static-page-date {
  font-size: 0.78rem;
  color: var(--text-sub);
  margin-top: 32px;
  text-align: right;
}
.static-page-back {
  margin-top: 32px;
  text-align: center;
}
.static-page-back a {
  color: var(--accent);
  font-size: 0.88rem;
  text-decoration: none;
}
.static-page-back a:hover {
  text-decoration: underline;
}

/* --- ローディング --- */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid #ddd;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --- 全枠埋まり時のスロット選択モーダル --- */
.slot-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}
.slot-modal {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 20px;
  max-width: 320px;
  width: 90%;
  box-shadow: var(--shadow-lg);
}
.slot-modal h4 { font-size: 0.95rem; margin-bottom: 12px; }
.slot-modal .slot-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.slot-modal .slot-btn {
  padding: 8px;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  background: var(--card-bg);
  font-size: 0.78rem;
  text-align: center;
  transition: all 0.15s;
}
.slot-modal .slot-btn:hover {
  border-color: var(--accent);
  background: var(--accent-light);
}
.slot-modal .slot-cancel {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 8px;
  background: none;
  border: none;
  color: var(--text-sub);
  font-size: 0.82rem;
}

/* --- 動画追加モーダル（タップ時）--- 全デバイスで中央表示 --- */
.add-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.add-modal {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 20px 16px 24px;
  width: 90%;
  max-width: 480px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: modalFadeIn 0.2s ease-out;
}
@keyframes modalFadeIn {
  from { transform: scale(0.95); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}
.add-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.add-modal-header h3 {
  font-size: 1rem;
  font-weight: 700;
}
.add-modal-close {
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--text-sub);
  padding: 4px;
  line-height: 1;
}
.add-modal .panel-tabs { margin-bottom: 12px; }
.add-modal .search-results { max-height: 320px; }

/* モーダル内の追加リンク */
.modal-extra-link {
  text-align: center;
  padding-top: 12px;
  border-top: 1px solid #eee;
  margin-top: 12px;
}
.modal-extra-link a {
  font-size: 0.82rem;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px dashed var(--accent);
  padding-bottom: 1px;
}
.modal-extra-link a:hover {
  color: var(--accent-hover);
}

/* --- 生成画像プレビュー --- */
.image-preview {
  margin-top: 24px;
  text-align: center;
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}
.image-preview img {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  margin: 0 auto;
}
.preview-actions {
  margin-top: 16px;
}
.preview-row {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.preview-row-main {
  margin-bottom: 8px;
}
.preview-row-main .btn {
  flex: 0 1 auto;
}
.preview-row-sub {
  justify-content: center;
}

/* ==========================================================
 * レスポンシブ
 * ========================================================== */
@media (max-width: 768px) {
  .main-container {
    padding: 0 12px 32px;
  }
  .card-grid { gap: 8px; }
  .card .card-info { padding: 6px 8px; }
  .card .card-title { font-size: 0.72rem; }
  .card .card-title-link { font-size: 0.72rem; }
  .card .uploader-icon { width: 16px; height: 16px; }
  .card .uploader-name { font-size: 0.65rem; }
  .card .badge { width: 18px; height: 18px; font-size: 0.6rem; }
  .card.placeholder { min-height: 120px; }
  .page-header h1 { font-size: 1.25rem; }
  .site-logo { font-size: 1.5rem; }
  .logo-accent { font-size: 2.1rem; }
  .action-bar { gap: 6px; }
  .btn { padding: 8px 14px; font-size: 0.8rem; }

  /* SP: プレビューボタン配置
     1段目: 画像保存(1st), 画像付き共有(4th)
     2段目: 共有リンクコピー(2nd), X共有(3rd) */
  .preview-row-main .btn {
    flex: 0 0 calc(50% - 4px);
  }
  .preview-row-main .btn:nth-child(1) { order: 1; }
  .preview-row-main .btn:nth-child(2) { order: 3; }
  .preview-row-main .btn:nth-child(3) { order: 4; }
  .preview-row-main .btn:nth-child(4) { order: 2; }
}

/* =====================================================
 * 削除動画確認ダイアログ
 * ===================================================== */
.deleted-dialog-body {
  padding: 16px;
}
.deleted-video-info {
  background: #1a1a1a;
  color: #fff;
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 12px;
}
.deleted-video-title {
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.4;
  margin-bottom: 4px;
}
.deleted-video-meta {
  font-size: 0.78rem;
  color: #aaa;
}
.deleted-dialog-msg {
  font-size: 0.82rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 16px;
}
.deleted-dialog-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.deleted-dialog-actions .btn {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.82rem;
  padding: 10px 12px;
}
.reup-results-header {
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 2px solid #F5A623;
}
