/* 既存変数は共通トークン(design-tokens.css)を参照するエイリアスに変更。
   値は従来と完全一致のため見た目は不変。今後の色変更はトークン1枚で全ツール同時。 */
:root {
  --brand: var(--tlr-brand);
  --brand-dark: var(--tlr-brand-dark);
  --bg: var(--tlr-bg);
  --card: var(--tlr-card);
  --text: var(--tlr-text);
  --muted: var(--tlr-muted);
  --border: var(--tlr-border);
  --error: var(--tlr-error);
  --radius: var(--tlr-radius);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }
body {
  width: 100%;
  min-width: 300px;
  /* 視認性優先の書体(Windowsは Yu Gothic UI / Segoe UI、Macは Hiragino が当たる) */
  font-family: "Segoe UI", "Yu Gothic UI", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Meiryo", system-ui, sans-serif;
  font-feature-settings: "palt" 1;
  -webkit-font-smoothing: antialiased;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
}

#app { padding: 0; height: 100%; }

.screen { display: flex; flex-direction: column; gap: 16px; }
#screen-login, #screen-tool { padding: 20px; min-height: 100%; }
#screen-tools { flex-direction: row; gap: 0; padding: 0; height: 100%; align-items: stretch; }
/* 規約・法的情報の見た目は「契約管理ビュー」の節に集約(.legal-row / .legal-links) */
[hidden] { display: none !important; }

/* --- ブランドヘッダー(ログイン画面) --- */
.brand {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  margin-top: 4px; padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
/* ログイン画面のロゴ(2026-07-28 yuki提供・白背景を抜いた透過PNG) */
.brand-mark { height: 22px; width: auto; display: block; }
.brand-lead { font-size: 11px; color: #6b7b8f; margin: 0; line-height: 1.6; }

/* --- フォーム --- */
.form { display: flex; flex-direction: column; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field span { font-size: 12px; color: var(--muted); font-weight: 600; }
.field input {
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 9px;
  font-size: 14px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(23,99,207,0.12); }

/* パスワード表示トグル(目アイコン) */
.pass-wrap { position: relative; display: flex; }
.pass-wrap input { width: 100%; padding-right: 42px; }
.eye {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border: none; background: transparent; cursor: pointer;
  color: #94a3b8; display: flex; align-items: center; justify-content: center; border-radius: 7px;
}
.eye:hover { color: var(--brand); background: #f1f5f9; }
.eye svg { width: 19px; height: 19px; }

/* ログイン情報の保存確認バー */
.save-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin: 10px 12px 0; padding: 9px 12px;
  background: #eef5ff; border: 1px solid #cfe0fb; border-radius: 10px;
}
.save-q { font-size: 12.5px; color: #1a3a63; }
.save-acts { display: flex; gap: 6px; flex: 0 0 auto; }
.save-btn { border: none; border-radius: 7px; padding: 6px 12px; font-size: 12px; font-weight: 600; cursor: pointer; }
.save-yes { background: var(--brand); color: #fff; }
.save-no { background: #fff; color: #64748b; border: 1px solid #d8e1ee; }

/* ログイン画面の保存確認(初回だけ・移る前) */
.save-ask {
  margin-top: 8px; padding: 16px; border: 1px solid #cfe0fb; background: #f3f8ff;
  border-radius: 12px; display: flex; flex-direction: column; gap: 6px;
}
.save-ask-q { font-size: 14px; font-weight: 700; color: #1a3a63; }
.save-ask-sub { font-size: 12px; color: #5b7390; line-height: 1.6; }
.save-ask-acts { display: flex; gap: 8px; margin-top: 4px; }
.save-ask-acts .btn-primary { flex: 1; margin-top: 0; }
.btn-ghost {
  flex: 1; padding: 12px 18px; border-radius: 9px; cursor: pointer;
  background: #fff; color: #64748b; border: 1px solid #d8e1ee; font-size: 14px; font-weight: 600;
  white-space: nowrap;
}
.btn-ghost:hover { background: #f1f5f9; }

.btn-primary {
  margin-top: 4px;
  padding: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  border: none;
  border-radius: 9px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: filter .15s, transform .05s;
}
.btn-primary:hover { filter: brightness(.96); }
.btn-primary:active { transform: scale(.99); }
.btn-primary:disabled { opacity: .6; cursor: progress; }

.error {
  color: var(--error);
  font-size: 12.5px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 6px;
  padding: 8px 10px;
}

.hint { font-size: 11.5px; color: var(--muted); line-height: 1.6; text-align: center; }

/* --- トップバー(一覧・ツール画面) --- */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 12px; border-bottom: 1px solid var(--border);
}
.topbar-title { font-size: 15px; font-weight: 700; }
#screen-tool .topbar { min-height: 50px; box-sizing: border-box; }
/* yuki指示(2026-07-28): ポップ型ツール(入稿くん・空室確認くん等)は各ツール自身のヘッダーに
   ロゴとサービス名が入っているため、ツーラー側のタイトルを出すと名前が二重になり
   ツールのブランドイメージを損なう → 埋め込み表示の時だけツーラー側のタイトルを隠す
   (「戻る」は残す。別タブで開くツールでは従来どおりタイトルを表示) */
#screen-tool.embed-mode .topbar-title { display: none; }
.spacer { width: 60px; }
.btn-text {
  background: none; border: none; color: var(--brand);
  font-size: 14.5px; cursor: pointer; font-weight: 600;
  display: inline-flex; align-items: center; gap: 4px;
  user-select: none; /* 文字選択カーソル(I字)を出さない=文字の上でも「押せるボタン」に */
  /* 文字だけでなく周囲まで当たり判定に。見た目位置は負マージンで据え置き */
  padding: 8px 12px; margin: -8px -12px; border-radius: 8px;
  /* 埋め込みツール(iframe)より前面に固定=文字の上でも確実にボタンとして反応(I字カーソル防止) */
  position: relative; z-index: 3;
  white-space: nowrap;
}
.btn-text .btn-ico { width: 17px; height: 17px; flex: 0 0 auto; }
.btn-text:hover { text-decoration: underline; background: rgba(23, 99, 207, 0.06); }
/* (2026-07-21:「メニューへ戻る」は文字スタイル(.btn-text)に確定。青塗りボタン案は不採用) */

.welcome { font-size: 13px; color: var(--muted); }

/* --- サイドバー(ナビ列・アイコン+下に文字ラベル) --- */
.hub-rail {
  width: 66px; flex: 0 0 auto;
  background: linear-gradient(180deg, #1763cf, #0d9dda);
  display: flex; flex-direction: column; align-items: center;
  padding: 14px 0; gap: 6px;
}
.rail-btn {
  position: relative;
  width: 58px; border: none; background: none;
  color: rgba(255,255,255,0.82); cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  padding: 7px 0; border-radius: 10px; transition: background .15s, color .15s;
}
.rail-btn svg { width: 20px; height: 20px; }
/* サイドバーのラベルは折り返さない(全ボタン同じ文字サイズのまま「お問い合わせ」6文字が1行で収まる寸法) */
.rail-label { font-size: 9px; font-weight: 600; letter-spacing: 0; line-height: 1; white-space: nowrap; }
.rail-btn:hover { color: #fff; background: rgba(255,255,255,0.12); }
.rail-btn.is-active { background: rgba(255,255,255,0.22); color: #fff; }
.rail-spacer { margin-top: auto; }
/* 管理者専用を一般ユーザーに見せる時=グレーアウト(非表示にはしない=責任者に管理者パスで入ってと促す導線) */
.rail-btn.is-locked { opacity: .4; }
.rail-btn.is-locked:hover { color: rgba(255,255,255,0.82); background: none; }
/* 未読バッジ(お知らせ・チャットの通知数) */
.rail-badge {
  position: absolute; top: 2px; right: 8px;
  min-width: 16px; height: 16px; padding: 0 4px; box-sizing: border-box;
  background: #ef4444; color: #fff; font-size: 10px; font-weight: 700; line-height: 16px;
  border-radius: 9px; text-align: center;
}

/* --- 右上「管理者アカウント」バッジ --- */
.head-spacer { flex: 1 1 auto; }
.admin-badge {
  flex: 0 0 auto; font-size: 10.5px; font-weight: 700; letter-spacing: .3px;
  color: #1763cf; background: #e6f0ff; border: 1px solid #c3d8f5;
  padding: 4px 10px; border-radius: 20px; white-space: nowrap;
}

/* --- ハブ本体 --- */
.hub-main { flex: 1; min-width: 0; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; }
/* 浮遊パネルでは、右端の折りたたみ・非表示ボタンがバッジに被らないようにする。 */
.hub-head {
  display: flex; align-items: center; gap: 8px; padding: 14px 46px 12px 16px;
  border-bottom: 1px solid var(--border);
  /* 店名は横幅をまるごと使う行として下に回す(2026-08-29) */
  flex-wrap: wrap; row-gap: 4px;
}
.is-floating .hub-head { padding-right: 84px; }
/* ホーム画面のロゴ(枠なしで画像をそのまま置く) */
.hub-logo { height: 15px; width: auto; display: block; flex: 0 0 auto; }
/* 右側:管理者バッジの下に「○○店でログイン中」(2026-07-28 yuki指示の配置) */
/* ★2026-08-29 yuki指示:店名を省略しない。
   以前は nowrap + ellipsis で長い店名が「…」で切れていた。
   店名は長いものがあるため、折り返して全部出す。 */
.head-right { display: flex; align-items: center; gap: 5px; min-width: 0; flex: 0 0 auto; }
.hub-sub {
  font-size: 10.5px; color: var(--muted); margin: 0;
  /* ロゴ行の下に、パネルの横幅いっぱいの1行として置く */
  /* 2026-10-04 yuki「左か右に寄せて」: 右寄せだと右の余白(折りたたみボタン分)のせいで真ん中に浮いて見えた → ロゴとバッジにそろえて左寄せ */
  flex: 1 0 100%; text-align: left; line-height: 1.45;
}
/* 極端に長い店名だけは折り返す(切り捨てはしない) */
.hub-sub .who-name { overflow-wrap: anywhere; }
.hub-toast {
  margin: auto 12px 12px; background: #1e293b; color: #fff;
  font-size: 12px; padding: 9px 12px; border-radius: 8px; text-align: center;
}

/* --- ツールカード(行型) --- */
/* 縮めずに全部の高さを持たせ、入りきらない分は外側(.hub-main)でスクロールする(6つ目の提案くんが既定の大きさで切れていた・2026-10-03) */
.tool-grid { display: flex; flex-direction: column; padding: 8px 8px 12px; gap: 2px; flex: 0 0 auto; }
.tool-card {
  display: flex; align-items: center; gap: 9px;
  padding: 10px 8px; width: 100%;
  background: transparent; border: none; border-radius: 10px;
  cursor: pointer; text-align: left;
  transition: background .12s, transform .05s;
}
.tool-card:hover:not(:disabled) { background: #e6f0ff; }
.tool-card:active:not(:disabled) { transform: scale(.99); }
.tool-card.is-soon { opacity: .55; cursor: not-allowed; }
.tool-icon {
  width: 30px; height: 30px; flex: 0 0 auto;
  border-radius: 9px; background: #eef2f7; color: #1763cf;
  display: flex; align-items: center; justify-content: center;
}
.tool-icon svg { width: 17px; height: 17px; }
.tool-info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.tool-name { font-size: 14px; font-weight: 500; color: #1e293b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 説明は折り返さない・全ツール一律サイズ(9.5px)で1行に収める(見切れ防止) */
.tool-desc { font-size: 9.5px; color: #94a3b8; margin-top: 2px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tool-seat {
  margin-left: 6px; flex: 0 0 auto; white-space: nowrap;
  font-size: 11px; font-weight: 500;
  color: var(--brand); background: #e6f0ff;
  padding: 4px 9px; border-radius: 20px;
}
.tool-card.is-soon .tool-seat { color: var(--muted); background: #f1f5f9; }

/* ツール別の差し色はアイコンのみ。枠バッジは全ツール青で統一(入稿くんの青) */
.tool-card:nth-child(1) .tool-icon { background: #e6f0ff; color: #1763cf; }
.tool-card:nth-child(2) .tool-icon { background: #eefcf5; color: #0d9488; }
/* 部屋探しくんは検索画面のロゴ(packages/shared/search/tool/style.css の .hs-logo)の色味を、ほかのツールと同じ薄さの下地にする */
.tool-card:nth-child(3) .tool-icon { background: linear-gradient(145deg, #e3efff, #e6ecff 55%, #eceafe); color: #4a86fb; }
.tool-card:nth-child(3) .tool-icon svg { stroke-width: 2.4; }
.tool-card:nth-child(4) .tool-icon { background: #fff5ed; color: #ea580c; }
.tool-card:nth-child(5) .tool-icon { background: #fffbeb; color: #d97706; }
.tool-card[data-tool="teian"] .tool-icon { background: #fdeeee; color: #e5262f; } /* 提案くんの赤(2026-10-04 yuki) */

/* ===== 画面の見出し(2026-07-26 yuki承認デザイン)=====
   契約管理=薄い曲線 / お知らせ=風になびく木の風景 / お問い合わせ=運営バッジ */
/* 見出しは絶対に縮まない・潰れない(2026-07-28:中身に押されて文字が見切れていた) */
.pane-head { position: relative; overflow: hidden; flex: 0 0 auto; }
/* 契約管理の見出しは薄い青の無地(2026-07-26 yuki指示:曲線の柄は出さない) */
.pane-head--plan { background: #eaf3fd; border-bottom: 1px solid #dbe8f7; }
.pane-head-in { position: relative; padding: 15px 16px 14px; }
.pane-t { font-size: 16px; font-weight: 700; color: #0d2b4e; margin: 0; letter-spacing: .02em; }
.pane-s { font-size: 11.5px; color: #59718f; margin: 4px 0 0; line-height: 1.5; }
/* お知らせ:風景の上に文字を置く(文字は左半分、木と光は右側=重ならない) */
.pane-head--scene {
  height: 56px; border-bottom: 1px solid #d7e6f7;
  background: linear-gradient(118deg, #1763cf 0%, #2e86d8 48%, #0d9dda 100%);
}
/* 左下からの淡い光。図形1つだけで、文字には掛からない位置に置く */
.pane-head--scene::after {
  content: ""; position: absolute; left: -32px; bottom: -72px;
  width: 196px; height: 134px; border-radius: 50%;
  background: rgba(255,255,255,.13); pointer-events: none;
}
.scene-copy { position: absolute; left: 16px; top: 12px; right: 14px; display: flex; flex-direction: column; gap: 2px; }
/* 見出しの字組み:字間を広げ、端正に(公式感) */
.pane-head--scene .pane-t { font-size: 15px; font-weight: 700; letter-spacing: .1em; }
.pane-head--scene .pane-s { margin: 0; font-size: 10px; letter-spacing: .045em; font-weight: 500; }
.pane-t--strong { color: #fff; font-weight: 700; }
.pane-s--sky { color: rgba(255,255,255,.84); }
.scene-title-row { display: flex; align-items: center; gap: 8px; }
.notice-view .notice-count {
  font-size: 10px; font-weight: 600; color: #1763cf;
  background: rgba(255,255,255,.92); border: 1px solid #cfe2f7; padding: 2.5px 9px; border-radius: 99px; white-space: nowrap;
}
.notice-view .notice-count:empty { display: none; }
/* 2026-07-27 yuki指示:風景は静止画にした(アニメ全廃)。
   毎秒描き直さなくなったぶん、絵の描き込み量は増やしても軽い。 */
/* パネルのサイズ変更中は全アニメを止める(描き直しの負荷を下げ、離した瞬間にくっきりさせる) */
.is-resizing * { animation-play-state: paused !important; transition: none !important; }

/* --- お問い合わせ(店舗⇔Tooler 運営) --- */
.chat-view { display: flex; flex-direction: column; height: 100%; min-height: 0; }
/* 配色は落ち着いたグレー基調(2026-07-26 yuki指示:青と白だけだと目がちかちかする) */
.pane-head--chat { padding: 13px 16px; background: #f2f4f6; border-bottom: 1px solid #e2e6ea; }
.pane-head--chat .pane-t { font-size: 15px; color: #1f2a35; }
.pane-head--chat .pane-s { color: #6b7683; }
.chat-list {
  flex: 1 1 auto; min-height: 0; overflow-y: auto; background: #f7f8f9;
  padding: 10px 14px 12px; display: flex; flex-direction: column; gap: 10px;
}
.chat-empty { font-size: 12px; color: var(--muted); text-align: center; padding: 24px 0; }
.chat-day { align-self: center; font-size: 10px; color: #78828e; background: #e8ebee; border-radius: 99px; padding: 2.5px 11px; white-space: nowrap; }
/* アイコンなし。吹き出しの下に送信者・時刻を小さく置く(2026-07-26 yuki指示) */
.chat-row { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.chat-row.me { align-items: flex-end; }
.chat-row .c-time { font-size: 10px; color: #9aa5b5; white-space: nowrap; padding: 0 2px; }
.chat-msg { max-width: 82%; padding: 9px 12px; border-radius: 14px; font-size: 12.5px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
/* 自分=落ち着いた深緑、運営=白。強い青の面積を無くして目を疲れさせない */
.chat-msg.from-store { background: #3f7d63; color: #fff; border-radius: 14px 14px 3px 14px; }
.chat-msg.from-toslack { background: #fff; color: #263340; border: 1px solid #e2e6ea; box-shadow: 0 1px 2px rgba(20,30,45,.05); border-radius: 14px 14px 14px 3px; }
/* 入力欄の直前の注意書き。ご入力の内容はそのまま当社に届き保存されるため(2026-08-25 追加) */
.chat-caution { font-size: 11px; color: #59718f; line-height: 1.5; margin: 10px 12px 0; }
.chat-form { display: flex; gap: 7px; margin: 6px 12px 12px; background: #fff; border: 1px solid #dfe3e8; border-radius: 12px; padding: 7px 7px 7px 13px; align-items: center; }
.chat-form #chat-input { flex: 1 1 auto; min-width: 0; padding: 4px 0; border: none; outline: none; font-size: 12.5px; background: transparent; color: #263340; }
.chat-form .chat-send {
  flex: 0 0 auto; width: 38px; height: 34px; padding: 0; border-radius: 10px; margin: 0;
  display: grid; place-items: center; background: #3f7d63; border-color: #3f7d63;
}
.chat-form .chat-send:hover { background: #356a54; border-color: #356a54; }
.chat-form .chat-send svg { width: 17px; height: 17px; }

/* --- お知らせビュー(全員共通) --- */
.notice-view { display: flex; flex-direction: column; }
.notice-list { display: flex; flex-direction: column; background: #fff; }
.notice-empty { font-size: 12px; color: var(--muted); text-align: center; padding: 28px 0; }
/* 2026-10-27 yuki 選択「案A(アイコン+ひとこと)」。数字は見本(raw/ツーラー_お知らせ画面_案A-2026-10-27)のまま */
/* 共通: ツールのアイコン(ホームと同じ色)・種類の札・未読の点 */
.nt-ti { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.nt-ti svg { width: 19px; height: 19px; }
.nt-ti.is-nyukou { background: #e6f0ff; color: #1763cf; }
.nt-ti.is-kuushitsu { background: #eefcf5; color: #0d9488; }
.nt-ti.is-heyasagashi { background: linear-gradient(145deg, #e3efff, #e6ecff 55%, #eceafe); color: #4a86fb; }
.nt-ti.is-mitsumori { background: #fff5ed; color: #ea580c; }
.nt-ti.is-daichou { background: #fffbeb; color: #d97706; }
.nt-ti.is-teian { background: #fdeeee; color: #e5262f; }
.nt-ti.is-maint { background: #fbeed8; color: #8a5309; }
.nt-ti.is-info { background: #eef2f8; color: #42536e; }
.nt-chip { display: inline-flex; align-items: center; height: 18px; padding: 0 7px; border-radius: 999px; font-size: 10px; font-weight: 600; white-space: nowrap; }
.nt-chip.is-feature { color: #0f6e56; background: #e4f6ef; }
.nt-chip.is-maint { color: #8a5309; background: #fbeed8; }
.nt-chip.is-info { color: #42536e; background: #eef2f8; }
.nt-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); flex: 0 0 auto; }
.nt-date { font-size: 10.5px; color: #a3b0c2; white-space: nowrap; }
.nt-chev { color: #b7c3d3; flex: 0 0 auto; }
.nt-chev svg { width: 16px; height: 16px; display: block; }
.nt-one { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 一覧: 1件=3行。1件まるごと押せる */
.nt-it { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-bottom: 1px solid #eef2f8; cursor: pointer; }
.nt-it:hover { background: #f7fafd; }
.nt-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.nt-meta { display: flex; align-items: center; gap: 6px; }
.nt-meta .nt-date { margin-left: auto; }
.nt-meta .nt-tn { font-size: 11px; font-weight: 700; color: #42536e; white-space: nowrap; }
.nt-tt { font-size: 13px; font-weight: 700; color: #0d2b4e; }
.nt-it.is-read .nt-tt { font-weight: 500; color: #3f5165; }
.nt-sm { font-size: 11.5px; color: #6b7a90; }
/* 詳細 */
/* 縮めずに全部の高さを持たせる(長い本文で白い地が画面1枚分で切れていた。.tool-grid と同じ) */
.notice-detail { background: #fff; min-height: 100%; flex: 0 0 auto; }
.notice-detail .nt-back { display: flex; align-items: center; gap: 6px; padding: 12px 16px; font-size: 12px; font-weight: 600; color: var(--brand);
  border: 0; background: none; cursor: pointer; }
.notice-detail .nt-back svg { width: 15px; height: 15px; }
.notice-detail .nt-hero { padding: 6px 20px 18px; border-bottom: 1px solid #eef2f8; }
.notice-detail .nt-hero .nt-ti { width: 48px; height: 48px; border-radius: 14px; }
.notice-detail .nt-hero .nt-ti svg { width: 25px; height: 25px; }
.notice-detail .nt-hero .nt-row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.notice-detail .nt-hero .nt-tn { font-size: 13px; font-weight: 700; color: #0d2b4e; }
.notice-detail .nt-hero .nt-sub { display: flex; gap: 6px; align-items: center; margin-top: 3px; }
.notice-detail h2 { font-size: 17px; font-weight: 700; color: #0d2b4e; line-height: 1.5; margin: 0; }
.notice-detail .nt-bd { padding: 18px 20px 28px; display: flex; flex-direction: column; gap: 18px; }
.notice-detail .nt-lead { font-size: 13px; color: #33465e; line-height: 1.8; margin: 0; white-space: pre-wrap; }
.notice-detail .nt-sec-t { font-size: 11px; font-weight: 700; color: #8394ab; letter-spacing: .08em; margin: 0 0 8px; }
.notice-detail .nt-items { display: flex; flex-direction: column; border: 1px solid #eef2f8; border-radius: 12px; overflow: hidden; }
.notice-detail .nt-items + .nt-ok { margin-top: 10px; }
.notice-detail .nt-item { display: flex; gap: 12px; padding: 12px 14px; border-bottom: 1px solid #eef2f8; align-items: flex-start; }
.notice-detail .nt-item:last-child { border-bottom: 0; }
.notice-detail .nt-item .nt-ti { width: 30px; height: 30px; border-radius: 9px; }
.notice-detail .nt-item .nt-ti svg { width: 16px; height: 16px; }
.notice-detail .nt-ck { width: 22px; height: 22px; border-radius: 50%; background: #e4f6ef; color: #0f6e56; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; margin-top: 1px; }
.notice-detail .nt-ck svg { width: 13px; height: 13px; }
.notice-detail .nt-il { font-size: 13px; font-weight: 700; color: #0d2b4e; }
.notice-detail .nt-id { font-size: 12px; color: #5b6b82; line-height: 1.7; margin-top: 2px; }
.notice-detail .nt-note { background: #f6f8fb; border-radius: 10px; padding: 11px 13px; font-size: 11.5px; color: #5b6b82; line-height: 1.7; white-space: pre-wrap; }
.notice-detail .nt-ok { display: flex; flex-wrap: wrap; gap: 6px; }
.notice-detail .nt-ok span { font-size: 11.5px; padding: 4px 10px; border-radius: 999px; background: #eef2f8; color: #42536e; white-space: nowrap; }

/* --- 契約管理ビュー(請求・単価は出さない) --- */
.seats-view { display: flex; flex-direction: column; }
/* 保存後の確定バー(押すと確定内容のポップが開く) */
.saved-bar {
  width: 100%; display: flex; align-items: center; gap: 8px; padding: 11px 16px;
  background: #e4f6ef; color: #0f6e56; font: inherit; font-size: 12px; font-weight: 600;
  border: 0; border-bottom: 1px solid #d2ece1; cursor: pointer; text-align: left;
}
.saved-bar:hover { background: #dbf1e7; }
.saved-bar svg { width: 16px; height: 16px; flex: 0 0 auto; }
.saved-bar .saved-arrow { margin-left: auto; width: 15px; height: 15px; }
.saved-note { font-size: 11px; color: #6b7d94; line-height: 1.7; margin: 0 0 14px; }
/* 列の見出し(現在 / 翌月) */
/* 列の見出しは折り返さない(現在=数字の上 / 翌月=変更ボタンの上に来る幅で固定) */
.seats-legend {
  display: flex; justify-content: flex-end; align-items: center; gap: 28px;
  padding: 9px 16px 5px; font-size: 10px; color: #93a1b5; letter-spacing: .04em;
}
.seats-legend span { white-space: nowrap; }
.seats-legend .lg-cur { width: 22px; text-align: center; }
.seats-legend .lg-next { width: 88px; text-align: center; }
/* 締切・契約種別の案内(2026-08-29)。
   ここは短いラベルではなく文章なので、折り返しを許す。
   nowrap のままだとパック契約の案内文がはみ出て読めなくなる。 */
.seats-deadline { font-size: 10.5px; color: #a3b0c2; margin: 0; padding: 0 16px 12px; line-height: 1.55; }
.seats-deadline.is-locked { color: #b4632f; }
/* 変更できない時は、触れないことが見て分かるようにする */
.seats-edit.is-locked { opacity: .5; }
.seats-edit.is-locked input,
.seats-edit.is-locked button { cursor: not-allowed; }
#seats-save:disabled { opacity: .45; cursor: not-allowed; }
.seats-edit { display: flex; flex-direction: column; }
.seats-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 16px; border-bottom: 1px solid #f2f5f9; }
.seats-row .nm { font-size: 13px; font-weight: 500; color: #16273f; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.trial-tag { font-size: 10px; font-weight: 600; color: #0f6e56; background: #e4f6ef; padding: 1.5px 7px; border-radius: 20px; }
/* 現在の枠数 → 変更ボタン(− 数 +) */
.seats-right { display: flex; align-items: center; gap: 9px; }
.seats-row .cur { font-size: 13px; color: #93a1b5; white-space: nowrap; }
.seats-row .arw { color: #cdd7e4; }
.seats-ctl { display: flex; align-items: center; border: 1px solid #dfe5ee; border-radius: 9px; overflow: hidden; background: #fff; }
.seats-ctl button { width: 27px; height: 28px; border: 0; background: #fbfcfe; color: #55647c; font-size: 15px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.seats-ctl button:hover { background: #eef3fa; color: var(--brand); }
.seats-ctl button:disabled { color: #c8d0dc; cursor: default; background: #fbfcfe; }
.seats-ctl input {
  width: 34px; padding: 5px 0; border: 0; border-left: 1px solid #eef2f8; border-right: 1px solid #eef2f8;
  font-size: 13px; font-weight: 600; text-align: center; outline: none; color: #16273f;
  -moz-appearance: textfield;
}
.seats-ctl input::-webkit-outer-spin-button, .seats-ctl input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
/* 注意書きは1行に収める(折り返さない。入り切るまで字を小さくする) */
.seats-note {
  font-size: 11px; color: #8593a8; line-height: 1.6; padding: 11px 14px; margin: 0;
  border-bottom: 1px solid #eef2f8; white-space: nowrap; overflow: hidden;
}
.seats-note b { color: #42536e; font-weight: 600; }
.seats-acts { display: flex; gap: 8px; padding: 12px 16px; }
.seats-acts .btn-primary, .seats-acts .btn-ghost { flex: 1; margin-top: 0; }
/* 規約・法的情報(1行→押すと3書類) */
.legal-row {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 13px 16px; background: #f8fafd; border: 0; border-top: 1px solid #eef2f8;
  font: inherit; font-size: 12.5px; color: #42536e; cursor: pointer; white-space: nowrap;
}
.legal-row:hover { background: #f1f6fc; }
.legal-row-l { display: flex; align-items: center; gap: 8px; }
.legal-row svg { width: 15px; height: 15px; color: #93a1b5; flex: 0 0 auto; }
.legal-chev { transition: transform .18s ease; }
.legal-row[aria-expanded="true"] .legal-chev { transform: rotate(90deg); }
.legal-links { display: flex; flex-direction: column; gap: 9px; padding: 11px 16px 14px; background: #f8fafd; border-top: 1px solid #eef2f8; }
.legal-links a { font-size: 12.5px; color: var(--brand); text-decoration: none; white-space: nowrap; }
.legal-links a:hover { text-decoration: underline; }
/* 二段階確認 */
.seats-confirm { position: fixed; inset: 0; background: rgba(15,23,42,0.45); display: flex; align-items: center; justify-content: center; padding: 18px; z-index: 20; }
.seats-confirm-card { background: #fff; border-radius: 14px; padding: 18px; width: 100%; max-width: 280px; }
.seats-confirm-title { font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.seats-diff { display: flex; flex-direction: column; gap: 5px; font-size: 13px; margin-bottom: 14px; }
.seats-diff .d { display: flex; justify-content: space-between; gap: 8px; }
.seats-diff .d .nm { color: #1e293b; }
.seats-diff .d .ch { font-weight: 700; color: var(--brand); white-space: nowrap; }
.seats-diff .d .ch.same { color: var(--muted); font-weight: 500; }
.seats-confirm-q { font-size: 13px; font-weight: 700; color: #1a3a63; line-height: 1.6; margin-bottom: 12px; text-align: center; }
.seats-confirm-acts { display: flex; gap: 8px; }
.seats-confirm-acts .btn-primary, .seats-confirm-acts .btn-ghost { flex: 1; margin-top: 0; }

/* ページ型ツールを別タブで開いている間の案内カード(2026-07-22 yuki指示で刷新) */
.tool-open-card { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.tool-open-card .toc-badge { font-size: 11px; font-weight: 700; color: #0f766e; background: #d1fae5; border-radius: 99px; padding: 3px 12px; white-space: nowrap; }
.tool-open-card .toc-title { font-size: 14px; font-weight: 700; color: #1a3a63; white-space: nowrap; }
.tool-open-card .toc-hint { font-size: 12px; color: #64748b; line-height: 1.6; }
.tool-open-card .btn-primary.toc-go { margin-top: 2px; width: auto; padding: 10px 18px; white-space: nowrap; }

/* --- 個別ツール本体 --- */
/* ポップ型統合ツールの埋め込み(入稿くん等):パネル内いっぱいにツールUIを表示。
   スクロールは iframe の中の1本だけ(外側の二重スクロール・はみ出しを禁止) */
#screen-tool.embed-mode {
  padding: 0;
  /* ★2026-08-03 100vh から 100% へ。100vh は documentElement に掛かる CSS zoom の影響を受けないが、
     html/body の height:100% と実際の表示領域は zoom で縮む。そのためパネルを標準幅(340px)より
     広げると zoom が 1 を超え、ツール画面だけが枠より高くなって外側にスクロールが生まれ、
     内側と二重になっていた。内側のバーは途中までしか進まず、2本指スクロールは内側にしか
     効かないため「スクロールが効かない」と見えていた。親(#app → body/html)の高さに従わせる。 */
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0;
}
#screen-tool.embed-mode .topbar { flex: 0 0 auto; padding: 10px 14px 8px; margin: 0; }
.tool-body.embed {
  flex: 1 1 auto;
  min-height: 0;
  padding: 0;
  display: block;
  place-items: normal; /* 基底.tool-bodyのplace-items:centerが新Chromeではblock子も中央寄せするため無効化(=左右余白の犯人) */
  text-align: left;
  overflow: hidden;   /* スクロールは iframe の中で行う(zoom方式・2026-07-22)=バーは中に1本だけ */
  border: 0;
  border-radius: 0;
  background: transparent;
  position: relative;
  overscroll-behavior: contain;
}
.tool-body.embed::-webkit-scrollbar { width: 6px; }
.tool-body.embed::-webkit-scrollbar-thumb { background: #c3cfe2; border-radius: 99px; }
.tool-body.embed::-webkit-scrollbar-track { background: transparent; }
.tool-embed-frame { width: 100%; height: 100%; border: 0; display: block; background: #fff; }
.tool-body {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 16px;
  min-height: 240px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
  line-height: 1.7;
}
