/* 自動キャプチャ テストベッド: ログイン後アプリ(URLレスSPA) スタイル (架空ブランド) */
* { box-sizing: border-box; }
body { margin: 0; font-family: "Segoe UI","Hiragino Kaku Gothic ProN",Meiryo,sans-serif; color: #1f2937; }
.view { min-height: 100vh; }
[hidden] { display: none !important; }

/* ===== トップ(2カード) ===== */
.view-top { position: relative; display: flex; align-items: center; justify-content: center; background: #fff; }
.top-inner { text-align: center; }
.top-logo {
  width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 10px;
  background: linear-gradient(135deg,#f59e0b,#ef4444 40%,#3b82f6); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700;
}
.top-title { font-size: 30px; margin: 0 0 36px; color: #374151; }
.top-cards { display: flex; gap: 28px; justify-content: center; }
.top-card {
  width: 230px; height: 230px; background: #fff; border: 1px solid #d1d5db; border-radius: 14px;
  cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px; box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.top-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,0.14); }
.top-card-icon { font-size: 52px; }
.top-card-label { font-size: 20px; font-weight: 700; color: #374151; }
.account-wrap { position: absolute; left: 16px; bottom: 16px; }
.account-chip {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  border: 1px solid #e5e7eb; border-radius: 6px; padding: 10px 14px; background: #fff; font-size: 13px; text-align: left;
}
.account-chip:hover { background: #f9fafb; }
.account-ava { font-size: 18px; }
.account-name small { color: #6b7280; }
/* アカウントメニュー(チップの上にポップアップ) */
.account-menu {
  position: absolute; left: 0; bottom: calc(100% + 6px); min-width: 280px;
  background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; box-shadow: 0 6px 18px rgba(0,0,0,0.15);
  overflow: hidden;
}
.account-menu-head { padding: 12px 14px; font-size: 13px; border-bottom: 1px solid #e5e7eb; }
.account-menu-head small { color: #6b7280; }
.account-menu-item {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 12px 14px; font-size: 14px; display: flex; align-items: center; gap: 8px;
}
.account-menu-item:hover { background: #f3f4f6; }
.copyright { position: absolute; right: 16px; bottom: 16px; color: #6b7280; font-size: 13px; }

/* ===== エディタ(3ペイン) ===== */
.view-editor { display: flex; height: 100vh; background: #f1f5f9; }
.ed-side { flex: 0 0 220px; background: #f8fafc; border-right: 1px solid #e2e8f0; display: flex; flex-direction: column; padding: 10px; gap: 8px; overflow: auto; }
.ed-brand { font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 6px; padding: 4px; }
.ed-newbtn, .ed-langbtn, .ed-savebtn, .ed-signagebtn {
  border: 1px solid #cbd5e1; background: #fff; border-radius: 6px; padding: 8px; font-size: 13px; cursor: pointer; text-align: center;
}
.ed-savebtn { background: #e2e8f0; }
.ed-signagebtn { background: #0f766e; color: #fff; border: none; }
.ed-step { background: #fff; border: 1px solid #e2e8f0; border-radius: 6px; padding: 8px; }
.ed-step-active { border-color: #5eead4; background: #f0fdfa; }
.ed-step-head { font-weight: 700; font-size: 13px; margin-bottom: 6px; color: #0f766e; }
/* STEP1/STEP2 ナビは実機同様 href 無しの <a>。a のデフォルト装飾を打ち消す */
.ed-step-item, .ed-topic-row { display: block; color: inherit; text-decoration: none; cursor: pointer; }
.ed-step-item { font-size: 13px; padding: 6px; border-radius: 4px; }
.ed-step-item.active { background: #ccfbf1; }
.ed-topic-list { display: grid; gap: 4px; }
.ed-topic-row { font-size: 12px; color: #475569; padding: 6px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ed-flags { font-size: 16px; text-align: center; margin: 8px 0; }
.ed-foot-icons { display: flex; gap: 12px; align-items: center; padding: 8px 4px; margin-top: auto; font-size: 18px; }
.ed-foot-icons button { background: none; border: none; font-size: 18px; cursor: pointer; }

.ed-center { flex: 1 1 auto; padding: 16px 20px; overflow: auto; }
.ed-center-head { font-size: 18px; font-weight: 700; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.ed-help { background: #14b8a6; color: #fff; border-radius: 50%; width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; }
.ed-reorder { margin-left: auto; border: 1px solid #cbd5e1; background: #fff; border-radius: 16px; padding: 5px 14px; font-size: 12px; cursor: pointer; }
.ed-card { background: #fff; border: 1px solid #99f6e4; border-radius: 10px; margin-bottom: 14px; overflow: hidden; }
.ed-card-head { background: #f0fdfa; padding: 10px 14px; font-weight: 700; font-size: 14px; display: flex; }
.ed-card-actions { margin-left: auto; color: #64748b; }
.ed-card-body { width: 100%; border: none; padding: 12px 14px; font-size: 14px; min-height: 80px; resize: vertical; outline: none; font-family: inherit; }
.ed-add { text-align: center; }
.ed-add button { width: 34px; height: 34px; border-radius: 50%; border: none; background: #14b8a6; color: #fff; font-size: 18px; cursor: pointer; }

.ed-ai { flex: 0 0 360px; background: #fff; border-left: 1px solid #e2e8f0; display: flex; flex-direction: column; }
.ed-ai-tabs { display: flex; border-bottom: 1px solid #e2e8f0; }
.ed-ai-tab { flex: 1; background: #f8fafc; border: none; padding: 12px 6px; font-size: 13px; cursor: pointer; border-right: 1px solid #e2e8f0; }
.ed-ai-tab.active { background: #fff; font-weight: 700; border-bottom: 2px solid #14b8a6; }
.ed-ai-panel { padding: 16px; }
.ed-ai-title { font-weight: 700; font-size: 15px; text-align: center; margin-bottom: 14px; }
.ed-ai-input { width: 100%; min-height: 160px; border: 1px solid #cbd5e1; border-radius: 6px; padding: 10px; font-size: 14px; resize: vertical; }
.ed-ai-row { font-size: 13px; margin: 12px 0; }
.ed-ai-num { width: 56px; margin-left: 8px; }
.ed-ai-gen { width: 100%; padding: 10px; background: #e2e8f0; color: #64748b; border: none; border-radius: 6px; font-size: 14px; cursor: pointer; }
.ed-ai-empty { color: #9ca3af; font-size: 13px; text-align: center; }

/* ===== サイネージ表示 ===== */
.view-signage { display: flex; flex-direction: column; height: 100vh; background: #fff; }
.sg-image {
  margin: 12px; height: 52%; background: #e5e7eb; border: 1px solid #d1d5db; border-radius: 4px;
  display: flex; align-items: center; justify-content: center; color: #6b7280; font-size: 20px;
}
.sg-rows { flex: 1 1 auto; overflow: auto; }
.sg-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; font-size: 18px; border-top: 1px solid #e5e7eb; }
.sg-row-alt { background: #ecfeff; }
.sg-flag { font-size: 22px; }
.sg-bar { display: flex; align-items: center; gap: 18px; padding: 10px 16px; border-top: 1px solid #d1d5db; font-size: 15px; }
.sg-bar button { background: none; border: none; font-size: 15px; cursor: pointer; }
.sg-pager { margin-left: 8px; }
.sg-gear { margin-left: auto; }

/* ===== エディタ: 翻訳モード ===== */
.tr-original { background: #f1f5f9; border: 1px solid #e2e8f0; border-radius: 8px; padding: 10px 14px; margin-bottom: 12px; }
.tr-original-head { font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.tr-original-body { font-size: 13px; color: #475569; }
.tr-flow { text-align: center; margin: 10px 0; }
.tr-flow button { background: #4f46e5; color: #fff; border: none; border-radius: 20px; padding: 10px 24px; font-size: 14px; cursor: pointer; }
.tr-toolbar { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: #6b7280; margin-bottom: 10px; }
.tr-toggle b { background: #e0e7ff; padding: 2px 8px; border-radius: 4px; }
.tr-card { display: grid; grid-template-columns: 1fr 64px 1fr; align-items: stretch; gap: 0; background: #fff; border: 1px solid #99f6e4; border-radius: 10px; margin-bottom: 12px; overflow: hidden; }
.tr-card-left, .tr-card-right { padding: 12px 14px; }
.tr-card-head { font-weight: 700; font-size: 13px; margin-bottom: 8px; display: flex; flex-direction: column; gap: 6px; }
.tr-reuse { align-self: flex-start; border: 1px solid #cbd5e1; background: #fff; border-radius: 6px; padding: 4px 10px; font-size: 11px; cursor: pointer; }
.tr-card-text { font-size: 13px; color: #475569; }
.tr-arrow { display: flex; align-items: center; justify-content: center; background: #eef2ff; color: #6366f1; font-size: 12px; writing-mode: vertical-rl; }
.tr-lang { font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.tr-trans { font-size: 13px; color: #2563eb; }
.ed-step-item.active, .ed-topic-row.active { background: #ccfbf1; font-weight: 700; }

/* ===== 設定(翻訳言語・表示方法) ===== */
.view-settings { display: flex; flex-direction: column; height: 100vh; background: #fff; }
.set-header { font-size: 20px; font-weight: 700; padding: 16px 20px; display: flex; align-items: center; gap: 8px; }
.set-body { flex: 1 1 auto; display: flex; min-height: 0; overflow: hidden; }
.set-nav { flex: 0 0 200px; border-right: 1px solid #e5e7eb; padding: 8px; }
.set-nav-item { padding: 12px 14px; font-size: 14px; border-radius: 6px; cursor: pointer; }
.set-nav-item.active { background: #1f2937; color: #fff; font-weight: 700; }
.set-layouts { flex: 0 0 280px; border-right: 1px solid #e5e7eb; padding: 14px; overflow: auto; }
.set-layouts-hint { font-size: 13px; color: #6b7280; margin-bottom: 12px; }
.set-layout { border: 2px solid #e5e7eb; border-radius: 6px; padding: 10px; margin-bottom: 16px; }
.set-layout.active { border-color: #1f2937; }
.set-layout-title { font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.set-layout-slots div { border: 1px solid #d1d5db; border-radius: 4px; padding: 6px 8px; font-size: 13px; margin-bottom: 4px; }
.set-detail { flex: 1 1 auto; padding: 16px 24px; overflow: auto; }
.set-detail h2 { font-size: 18px; margin: 0 0 16px; }
.set-block { margin-bottom: 22px; }
.set-block-title { background: #f3f4f6; padding: 8px 12px; font-weight: 700; font-size: 14px; border-radius: 4px; margin-bottom: 12px; }
.set-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.set-table th, .set-table td { text-align: left; padding: 8px; }
.set-row { margin: 8px 0; font-size: 14px; }
.set-detail select { padding: 6px 10px; border: 1px solid #cbd5e1; border-radius: 6px; }
.set-footer { display: flex; align-items: center; padding: 12px 20px; border-top: 1px solid #e5e7eb; }
.set-back { background: none; border: none; font-size: 15px; cursor: pointer; }
.set-save { margin-left: auto; background: #374151; color: #fff; border: none; border-radius: 6px; padding: 10px 28px; font-size: 14px; cursor: pointer; }
