/* meisai-kakeibo/style.css */
:root { --fg: #1f2937; --muted: #6b7280; --line: #e5e7eb; --accent: #2563eb; --warn: #b45309; --bg: #fff; }
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, "Hiragino Sans", "Yu Gothic UI", sans-serif; color: var(--fg); background: var(--bg); }
.top { display: flex; align-items: center; gap: 24px; padding: 12px 24px; border-bottom: 1px solid var(--line); }
.top h1 { font-size: 20px; margin: 0; }
.tabs { display: flex; gap: 4px; }
.tabs button { border: 1px solid var(--line); background: #fff; padding: 6px 16px; border-radius: 6px; cursor: pointer; }
.tabs button.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.import-button { margin-left: auto; background: var(--accent); color: #fff; padding: 8px 16px; border-radius: 6px; cursor: pointer; }
.about { padding: 12px 24px; background: #f8fafc; border-bottom: 1px solid var(--line); font-size: 14px; }
.about ul { margin: 4px 0 0; padding-left: 20px; }
.banner { margin: 12px 24px 0; padding: 10px 14px; background: #fef3c7; color: var(--warn); border-radius: 6px; }
main { padding: 16px 24px 48px; }
body.dragging main { outline: 3px dashed var(--accent); outline-offset: -8px; }
.intro { max-width: 640px; }
.month-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.month-bar h2 { font-size: 18px; margin: 0; }
.month-bar .range { color: var(--muted); font-weight: normal; font-size: 14px; }
.user-filter { margin-left: auto; font-size: 14px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 14px; }
.manual { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; margin-bottom: 12px; font-size: 14px; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { border-bottom: 1px solid var(--line); padding: 6px 8px; text-align: left; vertical-align: middle; }
th { background: #f8fafc; font-weight: 600; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tr.uncategorized td { background: #fffbeb; }
tr.selected td { background: #dbeafe; }
input.memo { width: 100%; min-width: 120px; }
.totals { color: var(--muted); font-size: 14px; }
.sum { max-width: 480px; }
.sum .total td { font-weight: 700; }
.chart { max-width: 720px; margin: 12px 0 24px; }
.chart svg { width: 100%; height: auto; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; list-style: none; padding: 0; }
.swatch { display: inline-block; width: 10px; height: 10px; margin-right: 4px; }
.settings section { margin-bottom: 28px; }
.settings h3 { margin-bottom: 8px; }
.danger { color: #b91c1c; }
dialog { max-width: 760px; border: 1px solid var(--line); border-radius: 8px; padding: 20px; }
dialog table { margin: 8px 0; }
dialog .buttons { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; }
.foot { padding: 16px 24px; color: var(--muted); font-size: 12px; border-top: 1px solid var(--line); }
