/* ============================================================
   admin.css — 町探索 管理画面 リニューアル版
   ============================================================ */

:root {
  --a-bg:        #f0f2f5;
  --a-white:     #ffffff;
  --a-border:    #e2e8f0;
  --a-text:      #1e293b;
  --a-soft:      #64748b;
  --a-blue:      #3a7fc1;
  --a-blue-h:    #2d6aa8;
  --a-green:     #16a34a;
  --a-red:       #dc2626;
  --a-shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --a-shadow:    0 4px 14px rgba(0,0,0,0.09);
  --a-radius:    10px;
  --a-font:      'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
}

/* ============================================================
   リセット / ベース
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--a-bg) !important;
  background-image: none !important;
  color: var(--a-text) !important;
  font-family: var(--a-font);
  font-size: 14px;
  line-height: 1.65;
  min-height: 100vh;
}

/* style.css のアニメーション疑似要素を無効化 */
body::before, body::after { display: none !important; }

/* style.css の h2/h3 グラデーション・アニメを打ち消す */
h2, h3 {
  background: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: var(--a-text) !important;
  background-clip: unset !important;
  animation: none !important;
  color: var(--a-text) !important;
}

a { text-decoration: none; }
img { max-width: 100%; display: block; }

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #fcfcfe inset !important;
  box-shadow: 0 0 0 1000px #fcfcfe inset !important;
}

/* ============================================================
   ヘッダー
   ============================================================ */
.a-header {
  background: #1e3a5c;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.22);
}
.a-header-inner {
  max-width: 1340px; margin: 0 auto;
  padding: 0 24px; height: 52px;
  display: flex; align-items: center;
  justify-content: space-between;
}
.a-logo {
  font-size: 15px; font-weight: 700;
  color: #fff; letter-spacing: 0.02em;
  white-space: nowrap; flex-shrink: 0;
}
.a-back-btn {
  font-size: 13px; color: rgba(200,220,255,0.85);
  transition: color .2s;
}
.a-back-btn:hover { color: #fff; }
.a-header-right { display: flex; gap: 4px; align-items: center; }
.a-btn-ghost {
  font-size: 11px; font-weight: 500;
  color: rgba(200,220,255,0.75);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 5px; padding: 4px 8px;
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.a-btn-ghost:hover { background: rgba(255,255,255,0.12); color: #fff; }

/* ============================================================
   トースト通知
   ============================================================ */
.a-toast {
  text-align: center; padding: 11px;
  font-size: 13px; font-weight: 600;
  position: sticky; top: 52px; z-index: 99;
}
.a-toast-success { background: #dcfce7; color: #15803d; border-bottom: 1px solid #bbf7d0; }
.a-toast-warn    { background: #fef9c3; color: #854d0e; border-bottom: 1px solid #fef08a; }

/* ============================================================
   2カラム レイアウト（投稿フォーム + リスト）
   ============================================================ */
.a-layout {
  max-width: 1340px; margin: 28px auto;
  padding: 0 24px 60px;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
  align-items: start;
}

/* 編集画面（1カラム中央） */
.a-edit-wrap {
  max-width: 860px; margin: 28px auto;
  padding: 0 24px 60px;
}

/* ============================================================
   パネル（白カード）
   ============================================================ */
.a-panel {
  background: var(--a-white);
  border-radius: var(--a-radius);
  border: 1px solid var(--a-border);
  box-shadow: var(--a-shadow);
  padding: 28px;
}
.a-panel-title {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: var(--a-text) !important;
  -webkit-text-fill-color: var(--a-text) !important;
  margin-bottom: 22px !important;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--a-border);
  display: flex; align-items: center; gap: 10px;
}
.a-count {
  font-size: 12px; font-weight: 400;
  color: var(--a-soft);
  background: var(--a-bg);
  padding: 2px 8px; border-radius: 10px;
}

/* ============================================================
   フォーム基本要素
   ============================================================ */
.a-field { margin-bottom: 20px; }
.a-row { display: flex; gap: 16px; align-items: flex-start; }

.a-label {
  display: block !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  color: var(--a-soft) !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  margin-bottom: 7px !important;
  animation: none !important;
  text-shadow: none !important;
  -webkit-text-fill-color: var(--a-soft) !important;
}
.a-hint {
  font-size: 11px; font-weight: 400;
  color: #94a3b8; letter-spacing: 0; text-transform: none;
}
.a-required { color: var(--a-red); }

.a-input {
  display: block !important;
  width: 100% !important;
  padding: 10px 12px !important;
  border: 1px solid var(--a-border) !important;
  border-radius: 7px !important;
  font-size: 14px !important;
  font-family: var(--a-font) !important;
  color: var(--a-text) !important;
  background: #fcfcfe !important;
  transition: border-color .2s, box-shadow .2s !important;
  outline: none !important;
  box-shadow: var(--a-shadow-sm) !important;
  margin: 0 !important;
}
.a-input:focus {
  border-color: var(--a-blue) !important;
  box-shadow: 0 0 0 3px rgba(58,127,193,0.14) !important;
}
.a-textarea { resize: vertical !important; min-height: 70px; }

/* ============================================================
   カテゴリタグ（ラジオ pill）
   ============================================================ */
.a-tag-group { display: flex; flex-wrap: wrap; gap: 8px; }

.a-tag-pill { cursor: pointer; }
.a-tag-pill input[type="radio"] { display: none; }
.a-tag-pill span {
  display: inline-block;
  padding: 5px 14px;
  font-size: 12px; font-weight: 600;
  color: var(--a-soft);
  border: 1.5px solid var(--a-border);
  border-radius: 20px;
  transition: all .15s;
  user-select: none;
}
.a-tag-pill input:checked + span {
  background: var(--a-blue);
  border-color: var(--a-blue);
  color: #fff;
}
.a-tag-pill:hover span { border-color: var(--a-blue); color: var(--a-blue); }

/* ============================================================
   画像アップロード（サムネイル）
   ============================================================ */
.a-upload-label {
  display: flex !important;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 6px;
  padding: 18px !important;
  border: 2px dashed var(--a-border) !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  background: #fafafa !important;
  transition: all .2s !important;
  color: var(--a-soft) !important;
  text-align: center;
  animation: none !important;
  -webkit-text-fill-color: var(--a-soft) !important;
}
.a-upload-label:hover {
  border-color: var(--a-blue) !important;
  background: rgba(58,127,193,0.04) !important;
  color: var(--a-blue) !important;
  -webkit-text-fill-color: var(--a-blue) !important;
}
.a-upload-icon { font-size: 22px; }
.a-upload-text { font-size: 13px; font-weight: 600; }

.a-thumb-preview {
  width: auto; max-width: 100%; height: auto; max-height: 260px;
  border-radius: 7px;
  margin-top: 10px;
  border: 1px solid var(--a-border);
}
.a-current-thumb { margin-bottom: 12px; }
.a-current-thumb img {
  width: auto; max-width: 100%; height: auto; max-height: 220px;
  border-radius: 7px;
  border: 1px solid var(--a-border);
}

/* ============================================================
   本文エディタ
   ============================================================ */
.a-editor {
  border: 1px solid var(--a-border);
  border-radius: 8px; overflow: hidden;
}
.a-editor-toolbar {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px;
  background: #f8fafc;
  border-bottom: 1px solid var(--a-border);
}
.a-toolbar-btn {
  display: inline-flex !important;
  align-items: center !important; justify-content: center !important; gap: 5px !important;
  text-align: center !important;
  padding: 6px 14px !important;
  min-width: 36px !important;
  font-size: 12px !important; font-weight: 700 !important;
  color: var(--a-blue) !important;
  background: var(--a-white) !important;
  border: 1.5px solid var(--a-blue) !important;
  border-radius: 5px !important;
  cursor: pointer !important;
  transition: all .15s !important;
  animation: none !important;
  text-shadow: none !important;
  -webkit-text-fill-color: var(--a-blue) !important;
  box-sizing: border-box !important;
  white-space: nowrap !important;
}
.a-toolbar-btn:hover {
  background: var(--a-blue) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}
.a-upload-status { font-size: 12px; font-weight: 600; }
.a-upload-status.loading { color: var(--a-soft); }
.a-upload-status.success { color: var(--a-green); }
.a-upload-status.error   { color: var(--a-red); }

.a-editor-body {
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-family: 'Courier New', 'Consolas', monospace !important;
  font-size: 13px !important;
  line-height: 1.85 !important;
  background: #fff !important;
}
.a-editor-body:focus { border: none !important; box-shadow: none !important; }

/* 挿入画像ギャラリー */
.a-inline-gallery {
  padding: 10px 12px;
  display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start;
  background: #f8fafc;
  border-top: 1px solid var(--a-border);
}
.a-inline-gallery:empty { display: none; }
.a-gallery-hint {
  width: 100%; font-size: 11px;
  color: var(--a-soft); margin-bottom: 4px;
}
.a-gallery-item {
  width: 72px; height: 72px;
  cursor: pointer; border-radius: 5px; overflow: hidden;
  border: 2px solid transparent;
  transition: border-color .15s, transform .15s;
  flex-shrink: 0;
}
.a-gallery-item:hover { border-color: var(--a-blue); transform: scale(1.05); }
.a-gallery-item img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   アコーディオン（座標）
   ============================================================ */
.a-accordion {
  border: 1px solid var(--a-border);
  border-radius: 8px; margin-bottom: 20px;
  overflow: hidden;
}
.a-accordion-title {
  display: flex; align-items: center;
  padding: 12px 16px;
  font-size: 13px; font-weight: 600;
  color: var(--a-soft);
  cursor: pointer;
  background: #f8fafc;
  list-style: none;
  user-select: none;
}
.a-accordion-title:hover { background: #f0f4f8; color: var(--a-text); }
.a-accordion-body { padding: 16px; }

/* ============================================================
   ボタン類
   ============================================================ */
.a-btn-submit {
  display: block; width: 100%;
  padding: 14px !important;
  font-size: 15px !important; font-weight: 700 !important;
  color: #fff !important;
  background: var(--a-blue) !important;
  border: none !important; border-radius: 8px !important;
  cursor: pointer !important; margin-top: 24px !important;
  transition: background .2s, transform .15s !important;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 14px rgba(58,127,193,0.35) !important;
}
.a-btn-submit:hover {
  background: var(--a-blue-h) !important;
  transform: translateY(-1px) !important;
}

.a-btn-sub {
  display: inline-flex !important; align-items: center;
  padding: 7px 14px !important;
  font-size: 12px !important; font-weight: 600 !important;
  color: var(--a-blue) !important;
  background: var(--a-white) !important;
  border: 1.5px solid var(--a-blue) !important;
  border-radius: 6px !important; cursor: pointer !important;
  transition: all .15s !important;
  box-shadow: none !important; transform: none !important;
}
.a-btn-sub:hover {
  background: var(--a-blue) !important; color: #fff !important;
}

.a-form-actions {
  display: flex; gap: 12px; align-items: center;
  margin-top: 24px;
}
.a-btn-cancel {
  font-size: 13px; color: var(--a-soft);
  padding: 10px 18px;
  border: 1px solid var(--a-border);
  border-radius: 7px;
  transition: all .15s; white-space: nowrap;
}
.a-btn-cancel:hover { background: var(--a-bg); color: var(--a-text); }

/* ボタン系の文字は常に横1行（折り返し禁止） */
.a-btn-sub, .a-btn-submit, .a-btn-cancel, .a-review-btn, .a-tag-pill span { white-space: nowrap; }

/* ============================================================
   投稿済みリスト（右パネル）
   ============================================================ */
.a-list-panel {
  position: sticky; top: 80px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}
.a-article-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }

.a-article-item {
  border-radius: 8px; overflow: hidden;
  border: 1.5px solid var(--a-border);
  background: var(--a-white);
  transition: box-shadow .2s;
}
.a-article-item:hover { box-shadow: var(--a-shadow); }
.a-article-item.is-latest { border-color: var(--a-blue); }

.a-badge-home {
  display: block;
  font-size: 10px; font-weight: 700;
  color: var(--a-blue);
  background: rgba(58,127,193,0.08);
  padding: 4px 10px;
  border-bottom: 1px solid rgba(58,127,193,0.15);
  letter-spacing: 0.05em;
}

.a-article-inner { display: flex; gap: 12px; padding: 12px; }

.a-article-thumb {
  width: 64px; height: 64px;
  object-fit: cover; border-radius: 5px;
  flex-shrink: 0; background: var(--a-bg);
}
.a-no-thumb {
  display: flex; align-items: center; justify-content: center;
  width: 64px; height: 64px;
  background: var(--a-bg); border-radius: 5px;
  font-size: 22px; flex-shrink: 0;
}

.a-article-info { flex: 1; min-width: 0; }
.a-article-meta { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.a-tag-badge {
  font-size: 10px; font-weight: 700;
  color: var(--a-blue);
  background: rgba(58,127,193,0.1);
  padding: 2px 7px; border-radius: 10px;
  white-space: nowrap;
}
.a-article-date { font-size: 11px; color: var(--a-soft); }
.a-article-title {
  font-size: 13px; font-weight: 600; color: var(--a-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 8px;
}
.a-article-actions { display: flex; flex-wrap: wrap; gap: 5px; }
.a-btn-edit, .a-btn-view, .a-btn-delete {
  display: inline-block;
  font-size: 11px; font-weight: 600;
  padding: 3px 9px; border-radius: 4px;
  white-space: nowrap;
  transition: all .15s;
}
.a-btn-edit   { color: #fff; background: var(--a-blue); border: 1px solid var(--a-blue); }
.a-btn-edit:hover { background: var(--a-blue-h); }
.a-btn-view   { color: var(--a-blue); background: transparent; border: 1px solid var(--a-blue); }
.a-btn-view:hover { background: var(--a-blue); color: #fff; }
.a-btn-delete { color: var(--a-red); background: transparent; border: 1px solid var(--a-red); }
.a-btn-delete:hover { background: var(--a-red); color: #fff; }

.a-empty {
  font-size: 14px; color: var(--a-soft);
  text-align: center; padding: 48px 0;
}

/* ============================================================
   ログイン画面
   ============================================================ */
.a-login-wrap {
  min-height: 100vh; display: flex;
  align-items: center; justify-content: center;
}
.a-login-card {
  background: var(--a-white); border-radius: 14px;
  border: 1px solid var(--a-border);
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
  padding: 40px; width: 100%; max-width: 380px;
}
.a-login-logo { text-align: center; margin-bottom: 8px; font-size: 36px; }
.a-login-title {
  font-size: 18px !important; font-weight: 700 !important;
  text-align: center; margin-bottom: 28px !important;
  color: var(--a-text) !important;
  -webkit-text-fill-color: var(--a-text) !important;
}
.a-login-home {
  display: block; text-align: center; margin-top: 20px;
  font-size: 13px; color: var(--a-soft);
  transition: color .2s;
}
.a-login-home:hover { color: var(--a-blue); }
.a-error-msg {
  font-size: 13px; color: var(--a-red);
  background: #fef2f2; border: 1px solid #fecaca;
  padding: 10px 14px; border-radius: 6px;
  margin-bottom: 14px;
}

/* ============================================================
   ハンバーガーボタン（デスクトップでは非表示）
   ============================================================ */
.a-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-shrink: 0;
}
.a-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all .2s;
}

/* ============================================================
   テーブルラップ（横スクロール）
   ============================================================ */
.a-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ============================================================
   レスポンシブ
   ============================================================ */
/* 中間幅PC: ナビ項目が多いので2段に折り返す */
@media (min-width: 769px) and (max-width: 1240px) {
  .a-header-inner { height: auto; min-height: 52px; flex-wrap: wrap; padding: 8px 16px; row-gap: 4px; }
  .a-header-right { flex-wrap: wrap; row-gap: 4px; justify-content: flex-end; }
}

@media (max-width: 960px) {
  .a-layout { grid-template-columns: 1fr; }
  .a-layout > * { min-width: 0; }
  .a-list-panel { position: static; max-height: none; overflow-y: visible; }
}

@media (max-width: 768px) {
  /* ページ横幅をデバイス幅に固定 */
  html, body { overflow-x: hidden; max-width: 100%; }

  /* ハンバーガー表示 */
  .a-hamburger { display: flex; }

  /* ナビをドロップダウンに */
  .a-header-right {
    display: none;
    position: fixed;
    top: 52px;
    left: 0;
    right: 0;
    background: #1e3a5c;
    flex-direction: column;
    padding: 10px 16px 16px;
    gap: 4px;
    z-index: 200;
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
  }
  .a-header-right.open { display: flex; }
  .a-btn-ghost {
    padding: 11px 14px;
    font-size: 14px;
    border-radius: 8px;
    border-color: transparent;
    text-align: left;
    white-space: nowrap;
  }

  /* テーブルラップを封じ込め */
  .a-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    max-width: 100%;
  }
  /* セル内改行を防いでスクロールを発生させる */
  .u-table td, .u-table th,
  .cm-table td, .cm-table th,
  .cc-table td, .cc-table th { white-space: nowrap; }

  /* レビューアクション */
  .a-review-actions { flex-wrap: wrap; }
  .a-review-btn { flex: 1; text-align: center; }
}

@media (max-width: 600px) {
  .a-layout, .a-edit-wrap { padding: 0 12px 40px; margin: 14px auto; width: 100%; box-sizing: border-box; }
  .a-panel { max-width: 100%; box-sizing: border-box; }
  .a-panel { padding: 18px 14px; }
  .a-row { flex-direction: column; gap: 0; }
  .a-header-inner { padding: 0 14px; }
  .a-logo { font-size: 13px; }
  .u-btn, .cm-btn, .a-btn-sub { padding: 10px 16px !important; font-size: 13px !important; min-height: 44px !important; }
  .cc-btn-delete { padding: 10px 16px !important; min-height: 44px !important; }
  .a-review-btn { padding: 12px 16px !important; min-height: 44px !important; flex: 1; }
  .a-form-actions { flex-direction: column; }
  .a-form-actions .a-btn-cancel { text-align: center; }

  /* Markdown参照グリッド: 1カラムに */
  .a-md-ref-grid { grid-template-columns: 1fr !important; }

  /* タブのタッチターゲット */
  .u-tab, .cm-tab { padding: 10px 16px !important; font-size: 14px !important; min-height: 44px !important; display: flex; align-items: center; }

  /* ===== ツールバーのはみ出し防止 ===== */
  /* これがないとボタン8個でページ幅が超え、ブラウザがページ全体を縮小する */
  .a-editor-toolbar {
    flex-wrap: wrap !important;
    gap: 6px !important;
    padding: 8px !important;
  }
  .a-toolbar-btn {
    padding: 8px 10px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    font-size: 13px !important;
  }

  /* ===== フォーム textarea の高さ削減 ===== */
  #content_area { min-height: 160px !important; }

  /* ===== パネル・コンテナのはみ出し防止 ===== */
  /* overflow-x:hidden をパネルにかけるとタグがクリップされるので使わない */
  .a-editor { overflow-x: hidden !important; }

  /* ===== 入力欄フォントを16pxに (iOS自動ズーム防止) ===== */
  .a-input, textarea.a-input, select.a-input { font-size: 16px !important; }

  /* ===== ラベルヒントをモバイルでは非表示 ===== */
  /* 長いヒントテキストが折り返さず右にはみ出すため */
  .a-hint { display: none !important; }

  /* ===== タグpillをモバイルで小さく（右はみ出し防止） ===== */
  .a-tag-pill span { padding: 6px 10px !important; font-size: 12px !important; }

  /* ============================================================
     テーブル → カード型変換（モバイル）
     ============================================================ */
  .u-table thead,
  .cm-table thead,
  .cc-table thead { display: none; }

  .u-table,  .u-table tbody,  .u-table tr,
  .cm-table, .cm-table tbody, .cm-table tr,
  .cc-table, .cc-table tbody, .cc-table tr { display: block; width: 100%; }

  .u-table tr,
  .cm-table tr,
  .cc-table tr {
    border: 1px solid var(--a-border);
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
    background: var(--a-white);
    box-shadow: var(--a-shadow-sm);
  }

  .u-table td,
  .cm-table td,
  .cc-table td {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    white-space: normal !important;
    font-size: 13px;
    gap: 10px;
  }
  .u-table td:last-child,
  .cm-table td:last-child,
  .cc-table td:last-child { border-bottom: none !important; }

  .u-table td::before,
  .cm-table td::before,
  .cc-table td::before {
    content: attr(data-label);
    font-size: 11px; font-weight: 700;
    color: var(--a-soft);
    flex-shrink: 0;
    min-width: 56px;
    letter-spacing: 0.03em;
  }

  /* アイコン列は中央寄せ */
  .u-table td[data-label="アイコン"],
  .cm-table td[data-label="画像"] {
    justify-content: flex-start;
    gap: 14px;
  }

  /* 操作列は縦積みに */
  .u-table td[data-label="操作"],
  .cm-table td[data-label="操作"],
  .cc-table td[data-label="操作"] {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .u-table td[data-label="操作"]::before,
  .cm-table td[data-label="操作"]::before,
  .cc-table td[data-label="操作"]::before { display: none; }

  /* cm-title の省略を解除 */
  .cm-title { white-space: normal !important; max-width: 100% !important; }
  /* cc-body を全幅に */
  .cc-body { max-width: 100% !important; }
}

/* ============================================================
   審査パネル（ユーザー投稿レビュー）
   ============================================================ */
.a-review-wrap {
  max-width: 1280px; margin: 0 auto; padding: 0 24px 0;
}
.a-review-panel { margin-bottom: 0; border-left: 4px solid #f59e0b; }
.a-review-list  { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.a-review-item  {
  background: #fffbeb; border: 1px solid #fde68a; border-radius: var(--a-radius);
  padding: 16px 18px;
}
.a-review-meta  { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.a-review-avatar {
  width: 36px; height: 36px; border-radius: 50%; object-fit: cover;
  border: 1px solid var(--a-border); flex-shrink: 0;
}
.a-review-no-avatar {
  width: 36px; height: 36px; border-radius: 50%; background: #e2e8f0;
  display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0;
}
.a-review-user  { font-weight: 600; font-size: 13px; display: block; }
.a-review-date  { font-size: 11px; color: var(--a-soft); display: block; }
.a-review-title { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.a-review-img   { width: auto; max-width: 100%; height: auto; max-height: 280px; display: block; border-radius: 8px; margin-bottom: 8px; }
.a-review-body  { font-size: 13px; color: var(--a-soft); line-height: 1.7; margin-bottom: 12px; }
.a-review-actions { display: flex; gap: 8px; }
.a-review-btn {
  padding: 7px 16px; border: none; border-radius: 6px;
  font-size: 13px; font-weight: 600; cursor: pointer; transition: opacity .15s;
}
.a-review-btn:hover { opacity: .8; }
.a-review-approve { background: #dcfce7; color: #16a34a; }
.a-review-reject  { background: #fee2e2; color: #dc2626; }
