/* ============================================================
   資産の置き場所と取り崩しの順番（money/asset-location.html）だけの見た目
   共通は ../assets/css/ek.css（v2 層）と money.css。色は変数だけを使う
   ============================================================ */

/* タブ（withdrawal-rule の .wr-tabs と同じ形） */
.al-tabs { display: flex; gap: 6px; margin: 18px 0 14px; border-bottom: 2px solid var(--line); flex-wrap: wrap; }
.al-tabs button {
  appearance: none; border: 1px solid var(--line); border-bottom: 0; background: var(--surface); color: var(--ink-2);
  font: inherit; font-size: 15px; font-weight: 700; padding: 10px 16px; border-radius: 8px 8px 0 0; cursor: pointer;
  margin-bottom: -2px; min-height: 44px;
}
.al-tabs button[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.al-tabs button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.al-tabs small { font-weight: 400; font-size: 12px; margin-left: 4px; }
@media (max-width: 420px) {
  .al-tabs button { flex: 1 1 0; padding: 10px 8px; font-size: 14px; }
  .al-tabs small { display: block; margin: 0; }
}
[role="tabpanel"][hidden] { display: none !important; }

/* 3つ並びの入力 */
.al-3col { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.al-mini { display: block; font-size: 12px; color: var(--ink-2); margin-bottom: 4px; font-weight: 700; }
.al-3col .input-unit input { min-width: 0; }
@media (max-width: 380px) { .al-3col { gap: 6px; } .al-3col .input-unit .unit { padding: 0 6px; font-size: 12px; } }
.al-gh { font-size: 13px; font-weight: 700; color: var(--ink-2); margin: 4px 0 8px; }
main form .al-ann[hidden] { display: none !important; }

/* 結果 */
.al-h3 { font-size: 15px; margin: 22px 0 4px; }
.al-lead { margin-top: 0; }
table.al-tbl { font-size: 13.5px; }
table.al-tbl td.pl { min-width: 12em; line-height: 1.6; text-align: left; white-space: nowrap; }
table.al-tbl thead th:not(.n) { text-align: left; }
table.al-tbl td.pl small { display: block; color: var(--muted); font-size: 11.5px; }
table.al-tbl tr.sel td, table.al-tbl tr.sel th { background: var(--accent-soft); }
table.al-tbl td.pick { width: 2.5em; text-align: center; }
table.al-tbl td.pick input { width: 18px; height: 18px; accent-color: var(--accent); cursor: pointer; }
table.al-tbl td .sub { display: block; font-size: 11.5px; color: var(--muted); font-weight: 400; white-space: normal; }
table.al-tbl td.warn { color: var(--tint-warn-ink); }
.al-tag { display: inline-block; font-size: 11px; padding: 1px 6px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 700; margin-left: 4px; white-space: nowrap; }

/* 公開後レビュー（2026-10-19）：枠・上限の注意、働き方の欄 */
main form .field[hidden] { display: none !important; }
#warnL:empty { display: none; }
#warnL .mo-msg { margin: 0 0 12px; }
table.al-tbl td .sub.over { color: var(--tint-warn-ink); font-weight: 700; }
.al-via { font-size: 11px; color: var(--muted); font-weight: 400; }
