/* ============================================================
   アツマル デモ — 商品固有スタイル（共通 demo.css への追加のみ）
   ============================================================ */

/* ---------- 給与レンジ入力 ---------- */
.at-sal { gap: 10px; }
.at-sal__in { display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: 6px; }
.at-sal__in span { font-size: 12px; font-weight: 900; color: var(--gray); }

/* ---------- 原稿出力（見出し階層） ---------- */
.at-out { min-height: 320px; }
.at-out h4 { display: block; font-size: 13px; font-weight: 900; color: var(--p-text); letter-spacing: .04em; margin: 18px 0 6px; padding-bottom: 5px; border-bottom: 1.5px solid var(--line); position: relative; }
.at-out h4:first-child { margin-top: 0; }
.at-out h4::after { content: ""; position: absolute; left: 0; bottom: -1.5px; width: 34px; height: 1.5px; background: var(--p); }
.at-out .at-lead { display: block; font-size: 17px; font-weight: 900; line-height: 1.55; color: var(--ink); margin: 2px 0 4px; }
.at-out .at-sub { display: block; font-size: 12.5px; color: var(--gray); font-weight: 700; margin-top: 2px; }

/* ---------- 媒体ごとの調整 ---------- */
.at-vers { border-top: 1px solid var(--hair); padding-top: 16px; }
.at-ver { margin-top: 12px; border: 1px solid var(--line); border-radius: var(--r-s); padding: 14px 16px; background: var(--bg); animation: dm-rowin .35s var(--ease); }
.at-ver__note { font-size: 12.5px; color: var(--gray); font-weight: 700; margin-bottom: 8px; padding-left: 10px; border-left: 3px solid var(--p); line-height: 1.6; }
.at-ver__title { font-size: 15.5px; font-weight: 900; line-height: 1.55; margin-bottom: 6px; }
.at-ver__title small { display: inline-block; font-size: 11.5px; font-weight: 700; color: var(--gray); margin-left: 8px; font-family: var(--ff-num); }
.at-ver__body { font-size: 13.5px; white-space: pre-wrap; line-height: 1.8; }
.at-ver .dm-out__tools { margin-top: 12px; }

/* ---------- 応募者一覧（状態のアニメ） ---------- */
.at-apps td .dm-pill { transition: background .3s, color .3s; }
.at-apps td.is-flip .dm-pill { animation: at-flip .45s var(--ease); }
@keyframes at-flip { 0% { transform: translateY(4px); opacity: .2 } 100% { transform: none; opacity: 1 } }
.at-apps tr.is-new td { background: var(--p-bg); }
.at-apps tr.is-new.is-settled td { background: transparent; transition: background 1.2s; }
.at-apps .dm-pill--wait { background: var(--hair); color: var(--gray); }
.at-apps .dm-pill--wait::before { animation: dm-blink 1s infinite; }
.at-apps .name { font-weight: 900; }

/* ---------- 一次返信メールの例 ---------- */
.at-mail { min-height: 300px; font-size: 13.5px; }
.at-mail .subj { display: block; font-weight: 900; border-bottom: 1px solid var(--line); padding-bottom: 8px; margin-bottom: 10px; }
.at-mail .subj small { color: var(--gray); font-weight: 700; margin-right: 6px; }
.at-mail .cand { display: inline-block; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 1px 10px; margin: 2px 0; font-family: var(--ff-num); font-weight: 700; }

/* ---------- タイムラインの色分け ---------- */
.dm-tl.is-auto .dm-tl__line i { background: var(--p); box-shadow: 0 0 0 2px var(--p-weak); }
.dm-tl.is-wait .dm-tl__line i { background: #fff; border: 2px solid var(--gray-2); box-shadow: none; }
.dm-tl.is-human .dm-tl__line i { background: var(--accent); box-shadow: 0 0 0 2px rgba(226,87,28,.18); }
.dm-tl.is-human .dm-tl__t { color: var(--accent); }
.dm-tl:last-child .dm-tl__line::before { bottom: auto; height: 14px; }
.at-tl-legend i.auto { background: var(--p); }
.at-tl-legend i.wait { background: #fff; border: 2px solid var(--gray-2); }
.at-tl-legend i.human { background: var(--accent); }

/* ---------- ルール・チェックリスト ---------- */
.at-rules { display: grid; gap: 10px; }
.at-rules li { position: relative; padding-left: 22px; font-size: 13.5px; line-height: 1.7; }
.at-rules li::before { content: ""; position: absolute; left: 0; top: 9px; width: 10px; height: 10px; border-radius: 50%; background: var(--p-bg); border: 2px solid var(--p); }
.at-check { display: grid; gap: 10px; }
.at-check li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: 13.5px; line-height: 1.6; }
.at-check li::before { content: ""; width: 20px; height: 20px; border-radius: 6px; margin-top: 2px; background: var(--ok-bg); border: 1.5px solid var(--ok); background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315803d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12l5 5 9-10'/></svg>"); background-size: 13px; background-repeat: no-repeat; background-position: center; }
.at-check li b { display: block; font-size: 14px; }
.at-check li span { display: block; color: var(--gray); font-size: 12.5px; font-weight: 700; }
.at-do { border-top: 4px solid var(--ok); }
.at-dont { border-top: 4px solid var(--ng); }
.at-dont .at-check li::before { background-color: var(--ng-bg); border-color: var(--ng); background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b91c1c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M6 6l12 12M18 6L6 18'/></svg>"); }

/* ---------- 改善ログ・来週の打ち手 ---------- */
.at-log .dm-list__item { align-items: center; }
.at-log .when { flex-shrink: 0; width: 44px; font-family: var(--ff-num); font-size: 12px; font-weight: 700; color: var(--gray); }
.at-log .body { flex: 1; min-width: 0; }
.at-log .body .t { font-size: 13.5px; }
.at-log .body .s { font-size: 12px; }
.at-log .eff { flex-shrink: 0; }
.at-next { display: grid; gap: 8px; counter-reset: next; }
.at-next li { counter-increment: next; display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; padding: 11px 12px; border: 1px solid var(--line); border-radius: var(--r-s); font-size: 13.5px; font-weight: 700; line-height: 1.6; animation: dm-rowin .4s var(--ease); }
.at-next li::before { content: counter(next); width: 24px; height: 24px; border-radius: 50%; background: var(--p); color: #fff; display: grid; place-items: center; font-family: var(--ff-num); font-size: 12px; font-weight: 700; margin-top: 1px; }
.at-next li small { display: block; font-size: 12px; color: var(--gray); font-weight: 700; }
.at-next li.is-added { border-color: var(--p); box-shadow: 0 0 0 3px var(--p-weak); }

/* ---------- レスポンシブ ---------- */
@media (max-width: 960px) {
  .dm-side, .dm-nav { min-width: 0; } /* 横スクロール防止（ナビの最小幅が本体幅を押し広げるのを防ぐ） */
  .dm-guide { flex-wrap: wrap; }
  .dm-guide .dm-right { margin-left: 0; width: 100%; }
  .at-sal { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .at-out { min-height: 200px; }
  .at-mail { min-height: 180px; }
  .at-log .dm-list__item { flex-wrap: wrap; }
  .at-log .eff { margin-left: 56px; }
}
