:root {
  color-scheme: light;
  --font-friendly: ui-rounded, "Hiragino Maru Gothic ProN", "Hiragino Maru Gothic Pro", "Yu Gothic", Meiryo, sans-serif;
  --bg: #faf7f1;
  --paper: #fffdfa;
  --paper-2: #f3eee5;
  --text: #30434d;
  --muted: #718087;
  --line: #e6ded3;
  --strong-line: #d5c9ba;
  --sidebar: #f5efe7;
  --accent: #b2553f;
  --accent-soft: #f9e6dd;
  --calm: #557e6d;
  --calm-soft: #e4f0ea;
  --danger: #a85c55;
  --shadow: 0 12px 32px rgba(116, 82, 56, .10);
  --radius: 16px;
}

* { box-sizing: border-box; }
html { font-family: var(--font-friendly); background: var(--bg); }
body { margin: 0; min-width: 320px; overflow-x: hidden; color: var(--text); background: var(--bg); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 256px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 18px 12px 14px; display: flex; flex-direction: column; background: var(--sidebar); border-right: 1px solid var(--line); z-index: 20; overflow-y: auto; }
.brand { display: flex; gap: 10px; align-items: center; padding: 4px 8px 15px; }
.brand img { border-radius: 9px; }
.brand strong { display: block; font-size: .96rem; letter-spacing: -.02em; }
.brand small { display: block; margin-top: 2px; color: var(--muted); font-size: .58rem; letter-spacing: .11em; }
.new-task-button { min-height: 40px; padding: 0 12px; border: 0; border-radius: 10px; color: white; background: var(--accent); text-align: left; font-weight: 720; font-size: .84rem; box-shadow: 0 5px 14px rgba(184, 93, 70, .20); }
.new-task-button span { margin-right: 7px; font-size: 1rem; }
.nav-list { margin-top: 14px; display: grid; gap: 3px; }
.nav-group { display: grid; gap: 2px; }
.nav-group summary { min-height: 30px; padding: 8px 10px 4px; color: var(--muted); cursor: pointer; font-size: .63rem; font-weight: 750; letter-spacing: .1em; list-style: none; }
.nav-group summary::-webkit-details-marker { display: none; }
.nav-group summary::after { content: "＋"; float: right; font-size: .75rem; font-weight: 500; }
.nav-group[open] summary::after { content: "−"; }
.nav-group .nav-item { padding-left: 13px; }
.nav-item { min-height: 37px; padding: 0 9px; border: 0; border-radius: 9px; display: grid; grid-template-columns: 24px 1fr auto; align-items: center; color: var(--muted); background: transparent; text-align: left; font-size: .8rem; }
.nav-item:hover { background: rgba(71,116,98,.07); }
.nav-item.active { color: var(--calm); background: var(--calm-soft); font-weight: 720; }
.nav-item > span { color: var(--calm); text-align: center; }
.nav-item em { min-width: 24px; padding: 2px 6px; border-radius: 999px; color: var(--muted); background: rgba(255,255,255,.65); text-align: center; font-size: .66rem; font-style: normal; }
.project-area { margin-top: 10px; }
.side-heading { padding: 10px 9px 4px; display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: .65rem; font-weight: 750; letter-spacing: .08em; }
.side-heading button { border: 0; color: var(--muted); background: transparent; font-size: 1rem; }
.project-list { display: grid; gap: 2px; }
.project-button { min-height: 34px; padding: 0 9px; border: 0; border-radius: 7px; display: grid; grid-template-columns: 14px 1fr auto; align-items: center; gap: 5px; color: var(--muted); background: transparent; text-align: left; font-size: .76rem; }
.project-button:hover, .project-button.active { color: var(--text); background: rgba(0,0,0,.05); }
.project-dot { width: 8px; height: 8px; border-radius: 3px; }
.sidebar-footer { margin-top: auto; padding-top: 14px; display: grid; gap: 2px; }
.sidebar-footer button { min-height: 34px; padding: 0 9px; border: 0; border-radius: 7px; color: var(--muted); background: transparent; text-align: left; font-size: .73rem; }
.sidebar-footer button:hover { color: var(--text); background: rgba(0,0,0,.05); }

.main { min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 10; height: 62px; padding: 0 clamp(20px, 4vw, 54px); display: flex; align-items: center; gap: 18px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(16px); }
.quick-links { display: flex; gap: 5px; }
.quick-links button { min-height: 34px; padding: 0 10px; border: 0; border-radius: 7px; color: var(--muted); background: transparent; font-size: .73rem; }
.quick-links button:hover, .quick-links button.active { color: var(--text); background: var(--paper-2); }
.quick-links span { margin-right: 4px; }
.search { margin-left: auto; width: min(270px, 32%); height: 35px; padding: 0 10px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: var(--paper); }
.search input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--text); background: transparent; font-size: .76rem; }
.mobile-menu { display: none; border: 0; background: transparent; color: var(--text); font-size: 1.1rem; }
.content { width: min(1080px, calc(100% - 48px)); margin: 0 auto; padding: 48px 0 100px; }
.page-heading { min-height: 88px; display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; }
.eyebrow { margin: 0 0 7px; color: var(--muted); font-size: .65rem; font-weight: 760; letter-spacing: .13em; text-transform: uppercase; }
h1 { margin: 0; font-family: var(--font-friendly); font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 720; letter-spacing: -.035em; }
.page-heading p:last-child { margin: 8px 0 0; color: var(--muted); font-size: .78rem; }
.outline-button { min-height: 38px; padding: 0 13px; border: 1px solid var(--strong-line); border-radius: 8px; color: var(--text); background: var(--paper); font-size: .75rem; font-weight: 680; }

.capture { margin: 24px 0 16px; min-height: 54px; padding: 8px 9px 8px 15px; display: grid; grid-template-columns: 24px auto minmax(160px, 1fr) auto auto; align-items: center; gap: 8px; border: 1px solid var(--strong-line); border-radius: 10px; background: var(--paper); box-shadow: var(--shadow); }
.capture-icon { color: var(--muted); font-size: 1.15rem; }
.capture > input { min-width: 0; border: 0; outline: 0; color: var(--text); background: transparent; font-size: .86rem; }
.capture select { min-height: 32px; border: 0; color: var(--muted); background: var(--paper-2); border-radius: 7px; padding: 0 8px; font-size: .7rem; }
.capture button { min-height: 34px; padding: 0 15px; border: 0; border-radius: 8px; color: white; background: var(--accent); font-size: .73rem; font-weight: 720; }
.toolbar { min-height: 44px; display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.view-switch { display: flex; gap: 2px; }
.view-switch button { min-height: 33px; padding: 0 10px; border: 0; border-bottom: 2px solid transparent; color: var(--muted); background: transparent; font-size: .72rem; }
.view-switch button.active { color: var(--accent); border-color: var(--accent); font-weight: 700; }
.filters { display: flex; gap: 6px; }
.filters select { min-height: 31px; max-width: 145px; border: 1px solid var(--line); border-radius: 7px; padding: 0 8px; color: var(--muted); background: var(--paper); font-size: .68rem; }
.bulk-bar { margin-top: 12px; padding: 9px 10px; display: flex; align-items: center; gap: 7px; border-radius: 8px; color: #e8f3ef; background: var(--accent); }
.bulk-bar strong { margin-right: auto; font-size: .72rem; }
.bulk-bar select, .bulk-bar button { min-height: 30px; padding: 0 9px; border: 0; border-radius: 6px; color: var(--text); background: white; font-size: .66rem; }
.bulk-bar[hidden] { display: none; }

.task-group { margin-top: 26px; }
.group-heading { padding: 0 3px 8px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.group-heading h2 { margin: 0; font-family: var(--font-friendly); font-size: 1.05rem; font-weight: 700; }
.group-heading span { color: var(--muted); font-size: .68rem; }
.task-list { display: grid; }
.task-row { min-height: 58px; display: grid; grid-template-columns: 25px 27px minmax(0, 1fr) auto; align-items: center; gap: 7px; border-bottom: 1px solid var(--line); background: transparent; }
.task-row:hover { background: color-mix(in srgb, var(--paper-2) 70%, transparent); }
.select-task { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); }
.complete-task { appearance: none; width: 20px; height: 20px; margin: 0; display: grid; place-items: center; border: 1.5px solid #aaa8a1; border-radius: 50%; cursor: pointer; }
.complete-task::before { content: "✓"; color: white; font-size: .7rem; font-weight: 800; transform: scale(0); }
.complete-task:checked { border-color: var(--accent); background: var(--accent); }
.complete-task:checked::before { transform: scale(1); }
.task-body { min-width: 0; padding: 9px 0; cursor: pointer; }
.task-title { margin: 0 0 5px; overflow: hidden; color: var(--text); font-size: .82rem; font-weight: 650; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.task-row.completed .task-title { color: var(--muted); text-decoration: line-through; }
.task-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; color: var(--muted); font-size: .63rem; }
.pill { padding: 2px 6px; border-radius: 999px; background: var(--paper-2); }
.tag-work { color: #4d6594; background: #e8edf7; }
.tag-private { color: #765b91; background: #f0e9f5; }
.priority-high { color: #a54139; background: #f8e7e5; }
.priority-low { color: #6d746f; background: #eceeec; }
.days-over { color: var(--danger); font-weight: 700; }
.days-soon { color: #9b6c20; font-weight: 700; }
.pin { color: #a27625; }
.task-menu { width: 34px; height: 34px; border: 0; border-radius: 6px; color: var(--muted); background: transparent; }
.task-menu:hover { background: var(--paper-2); color: var(--text); }
.empty-state { margin-top: 26px; padding: 50px 20px; border: 1px dashed var(--strong-line); border-radius: var(--radius); text-align: center; color: var(--muted); }
.empty-state strong { display: block; color: var(--text); font-family: var(--font-friendly); font-size: 1rem; font-weight: 700; }
.empty-state span { display: block; margin-top: 7px; font-size: .72rem; }

.task-table { margin-top: 22px; width: 100%; border-collapse: collapse; border: 1px solid var(--line); background: var(--paper); font-size: .72rem; }
.task-table th, .task-table td { padding: 10px; border-bottom: 1px solid var(--line); text-align: left; }
.task-table th { color: var(--muted); background: var(--paper-2); font-size: .63rem; font-weight: 700; }
.task-table tr { cursor: pointer; }
.task-table tr:hover td { background: var(--paper-2); }
.calendar { margin-top: 22px; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--paper); }
.calendar-head { min-height: 35px; display: grid; place-items: center; border-right: 1px solid var(--line); color: var(--muted); background: var(--paper-2); font-size: .65rem; }
.calendar-day { min-height: 116px; padding: 7px; border-top: 1px solid var(--line); border-right: 1px solid var(--line); overflow: hidden; }
.calendar-day.outside { opacity: .4; }
.calendar-day.today { background: #fff0d6; }
.day-number { display: block; margin-bottom: 6px; font-size: .68rem; font-weight: 700; }
.calendar-task { width: 100%; margin: 2px 0; padding: 4px 5px; border: 0; border-radius: 4px; overflow: hidden; color: var(--text); background: var(--paper-2); text-align: left; text-overflow: ellipsis; white-space: nowrap; font-size: .58rem; }
.week-board { margin-top: 22px; display: grid; grid-template-columns: repeat(7, minmax(130px, 1fr)); gap: 8px; overflow-x: auto; }
.week-column { min-height: 250px; padding: 9px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); }
.week-column h3 { margin: 0 0 8px; color: var(--muted); font-size: .67rem; }
.week-card { width: 100%; margin-bottom: 6px; padding: 8px; border: 1px solid var(--line); border-radius: 7px; color: var(--text); background: var(--bg); text-align: left; font-size: .68rem; line-height: 1.35; }

.special-workspace[hidden] { display: none; }
.overview-grid { margin-top: 25px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.overview-card { padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.overview-card span { color: var(--muted); font-size: .65rem; }
.overview-card strong { display: block; margin-top: 10px; font-family: var(--font-friendly); font-size: 1.8rem; font-weight: 650; }
.gtd-flow { margin-top: 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.gtd-flow article { min-height: 150px; padding: 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.gtd-flow article > span { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--accent); font-size: .66rem; }
.gtd-flow h3 { margin: 18px 0 5px; font-family: var(--font-friendly); font-weight: 700; }
.gtd-flow p { margin: 0; color: var(--muted); font-size: .7rem; line-height: 1.6; }
.mini-form { margin: 24px 0 18px; padding: 10px; display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.mini-form input { min-width: 0; min-height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 7px; color: var(--text); background: var(--bg); font-size: .76rem; }
.mini-form button { padding: 0 15px; border: 0; border-radius: 7px; color: white; background: var(--accent); font-size: .72rem; }
.simple-list, .habit-list { display: grid; gap: 7px; }
.simple-item, .habit-item { min-height: 54px; padding: 10px 12px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); }
.simple-item a, .simple-item strong { flex: 1; color: var(--text); font-size: .78rem; text-decoration: none; }
.simple-item button, .habit-item button { border: 0; color: var(--danger); background: transparent; font-size: .68rem; }
.habit-item input { width: 21px; height: 21px; accent-color: var(--accent); }
.habit-item label { flex: 1; font-size: .78rem; }
.habit-calendar-controls { margin: 20px auto 4px; }
.habit-calendar-help { margin: 0 0 8px; color: var(--muted); text-align: center; font-size: .68rem; }
.habit-calendar { margin-bottom: 18px; }
.habit-calendar-grid { margin-top: 0; }
.habit-calendar-day { min-height: 96px; }
.habit-calendar-item { display: block; overflow: hidden; margin: 2px 0; padding: 3px 4px; border-radius: 4px; color: var(--accent); background: var(--accent-soft); font-size: .58rem; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.habit-calendar-empty { color: var(--line); font-size: .58rem; }

.home-columns { display: block; }
.home-journal[hidden] { display: none; }
body.home-page { height: 100dvh; overflow: hidden; }
body.home-page .main { height: 100dvh; overflow: hidden; }
body.home-page .content { height: calc(100dvh - 62px); padding: 24px 0 18px; overflow: hidden; }
.home-mode .page-heading { min-height: 74px; }
.home-mode .home-columns { max-height: calc(100dvh - 178px); display: grid; grid-template-columns: 1fr; grid-template-rows: auto auto; gap: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); box-shadow: 0 8px 24px rgba(116, 82, 56, .07); }
.home-mode .home-section { min-width: 0; padding: 16px 18px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.home-mode .home-journal { border-top: 1px solid var(--line); }
.home-section-head { display: none; }
.home-mode .home-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.home-section-head .help-kicker { margin-bottom: 4px; }
.home-section-head h2 { margin: 0; font-family: var(--font-friendly); font-size: 1.25rem; font-weight: 700; }
.home-section-head button { min-height: 32px; padding: 0 10px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); background: var(--paper-2); font-size: .68rem; }
.home-section-copy { margin: 8px 0 14px; color: var(--muted); font-size: .72rem; line-height: 1.6; }
.home-mode .capture { margin: 14px 0 16px; grid-template-columns: 22px 96px minmax(0, 1fr) auto; padding-left: 10px; gap: 6px; box-shadow: none; }
.home-mode .capture #quickPriority { display: none; }
.home-mode .toolbar, .home-mode .bulk-bar, .home-mode #taskContent { display: none; }
.home-log-form { display: grid; gap: 8px; }
.home-log-date { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.home-log-form input, .home-log-form select, .home-log-form textarea { width: 100%; min-width: 0; min-height: 40px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 7px; color: var(--text); background: var(--bg); font-size: .76rem; resize: vertical; }
.home-log-form button { min-height: 41px; border: 0; border-radius: 7px; color: white; background: var(--accent); font-size: .74rem; font-weight: 700; }

.journal-form { margin: 24px 0 16px; padding: 10px; display: grid; grid-template-columns: auto auto minmax(160px, 1fr) auto; gap: 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.journal-form#logForm { grid-template-columns: auto auto auto minmax(160px, 1fr) auto; }
.journal-form input, .journal-form select, .month-goal-form input, .budget-form input, .transaction-form input, .transaction-form select, .heading-month { min-width: 0; min-height: 39px; padding: 0 10px; border: 1px solid var(--line); border-radius: 7px; color: var(--text); background: var(--bg); font-size: .76rem; }
.journal-form button, .month-goal-form button, .budget-form button, .transaction-form button { min-height: 39px; padding: 0 14px; border: 0; border-radius: 7px; color: white; background: var(--accent); font-size: .72rem; font-weight: 700; }
.log-filter { margin-bottom: 12px; display: flex; align-items: end; justify-content: space-between; }
.log-filter label { display: grid; gap: 5px; color: var(--muted); font-size: .68rem; }
.log-filter input { min-height: 34px; padding: 0 8px; border: 1px solid var(--line); border-radius: 7px; color: var(--text); background: var(--paper); }
.log-filter button { min-height: 32px; padding: 0 10px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); background: var(--paper); font-size: .68rem; }
.journal-list { display: grid; gap: 7px; }
.journal-row { min-height: 58px; padding: 10px 12px; display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); }
.journal-symbol { font-size: 1.05rem; text-align: center; }
.journal-row strong { display: block; overflow-wrap: anywhere; font-size: .78rem; }
.journal-row small { display: block; margin-top: 4px; color: var(--muted); font-size: .65rem; }
.journal-actions { display: flex; align-items: center; gap: 4px; }
.journal-row button { border: 0; color: var(--danger); background: transparent; font-size: .67rem; }
.journal-row button[data-edit-log] { color: var(--accent); }

.calendar-controls { margin: 22px auto 12px; display: flex; align-items: center; justify-content: center; gap: 18px; }
.calendar-controls button { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); background: var(--paper); font-size: 1.25rem; }
.calendar-controls strong { min-width: 120px; text-align: center; font-family: var(--font-friendly); font-size: 1.05rem; font-weight: 700; }
.month-goal-form { margin-bottom: 13px; padding: 12px; display: grid; grid-template-columns: 1fr auto; gap: 8px; border-left: 4px solid var(--accent); border-radius: 0 9px 9px 0; background: var(--accent-soft); }
.month-goal-form label, .budget-form label { display: grid; gap: 5px; }
.month-goal-form span, .budget-form span { color: var(--muted); font-size: .68rem; font-weight: 700; }
.combined-calendar .calendar { margin-top: 0; }
.calendar-help { margin: 0 0 8px; color: var(--muted); text-align: right; font-size: .67rem; }
.calendar-event { color: var(--accent); background: var(--accent-soft); }
.calendar-undated { margin-bottom: 8px; padding: 9px 10px; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper-2); }
.calendar-undated strong { color: var(--muted); font-size: .66rem; }
.calendar-undated > div { min-width: 0; display: flex; flex-wrap: wrap; gap: 5px; }
.calendar-undated button { max-width: 100%; padding: 5px 8px; border: 0; border-radius: 5px; overflow: hidden; color: var(--accent); background: var(--accent-soft); text-overflow: ellipsis; white-space: nowrap; font-size: .62rem; }
.event-form { grid-template-columns: auto auto minmax(160px, 1fr) auto; margin-top: 18px; }
.event-form [hidden] { display: none; }

.collection-form { grid-template-columns: minmax(130px, .8fr) minmax(180px, 1fr) minmax(170px, 1fr) minmax(170px, 1fr) auto; }
.collection-form input[type="file"] { padding: 4px 6px; }
.collection-form input[type="file"]::file-selector-button { min-height: 29px; margin-right: 7px; padding: 0 9px; border: 1px solid var(--line); border-radius: 6px; color: var(--text); background: var(--paper-2); font: inherit; font-weight: 700; }

.collection-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.collection-grid > section { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--paper); }
.collection-grid header { padding: 13px 15px; display: flex; align-items: center; justify-content: space-between; background: var(--paper-2); }
.collection-grid header strong { font-size: .8rem; }
.collection-grid header span { color: var(--muted); font-size: .65rem; }
.collection-grid article { min-height: 58px; padding: 8px 11px; display: grid; grid-template-columns: 20px 42px minmax(0, 1fr) auto; align-items: center; gap: 7px; border-top: 1px solid var(--line); }
.collection-grid input { width: 17px; height: 17px; accent-color: var(--accent); }
.collection-image { width: 42px; height: 42px; border-radius: 6px; object-fit: cover; background: var(--paper-2); }
.collection-image-placeholder { display: block; }
.collection-item-body { min-width: 0; }
.collection-grid p { margin: 0; font-size: .75rem; line-height: 1.45; }
.collection-grid p a { color: inherit; text-decoration: none; }
.collection-grid p a:hover { text-decoration: underline; }
.collection-link { display: inline-block; margin-top: 3px; color: var(--muted); font-size: .62rem; }
.collection-grid p.done { color: var(--muted); text-decoration: line-through; }
.collection-grid button { border: 0; color: var(--danger); background: transparent; font-size: .65rem; }

.heading-month { align-self: flex-start; }
.budget-form { margin: 20px 0 12px; padding: 11px; display: grid; grid-template-columns: 1fr auto; gap: 8px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); }
.budget-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.budget-summary article { padding: 15px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); }
.budget-summary span { color: var(--muted); font-size: .67rem; }
.budget-summary strong { display: block; margin-top: 7px; font-family: var(--font-friendly); font-size: 1.12rem; font-weight: 650; }
.transaction-form { margin: 18px 0 12px; padding: 10px; display: grid; grid-template-columns: auto auto 1fr 1fr 1.4fr auto; gap: 7px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); }
.transaction-list { display: grid; gap: 6px; }
.transaction-list > article { min-height: 58px; padding: 9px 11px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); }
.transaction-kind { padding: 3px 7px; border-radius: 999px; color: #a54139; background: #f8e7e5; font-size: .64rem; }
.transaction-kind.income { color: #2f6c54; background: #e6f0ec; }
.transaction-list strong { display: block; font-size: .76rem; }
.transaction-list small { display: block; margin-top: 4px; color: var(--muted); font-size: .63rem; }
.transaction-list b { font-size: .76rem; }
.transaction-list button { border: 0; color: var(--danger); background: transparent; font-size: .65rem; }

.data-summary { margin-top: 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.data-summary article { padding: 17px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); }
.data-summary span { color: var(--muted); font-size: .68rem; }
.data-summary strong { display: block; margin-top: 7px; font-family: var(--font-friendly); font-size: 1.5rem; font-weight: 650; }
.data-actions { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.data-actions button, .data-actions label { min-height: 40px; padding: 0 14px; display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; color: var(--text); background: var(--paper); cursor: pointer; font-size: .73rem; font-weight: 680; }
.data-actions button:first-child { color: white; background: var(--accent); }
.data-actions input { display: none; }
.data-note { margin-top: 15px; padding: 15px; border-radius: 8px; color: var(--muted); background: var(--paper-2); font-size: .72rem; line-height: 1.65; }

.reflection-workspace { max-width: 980px; }
.reflection-week { margin-top: 24px; padding: 8px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; border: 1px solid var(--line); border-radius: 11px; background: var(--paper); }
.reflection-day { min-height: 72px; padding: 7px 3px; display: grid; place-items: center; gap: 2px; border: 0; border-radius: 8px; color: var(--muted); background: transparent; }
.reflection-day:hover { background: var(--paper-2); }
.reflection-day.active { color: var(--text); background: var(--accent-soft); }
.reflection-day span { font-size: .66rem; }
.reflection-day strong { font-size: .9rem; }
.reflection-day small { min-height: 20px; font-size: .9rem; }
.reflection-summary { margin-top: 12px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.reflection-summary article { min-height: 118px; padding: 17px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.reflection-summary span { color: var(--muted); font-size: .72rem; }
.reflection-summary strong { display: block; margin: 8px 0 5px; font-family: var(--font-friendly); font-size: 1.65rem; font-weight: 650; }
.reflection-summary p { margin: 0; overflow: hidden; color: var(--muted); font-size: .72rem; line-height: 1.5; text-overflow: ellipsis; white-space: nowrap; }
.reflection-form { margin-top: 20px; padding: 22px; border: 1px solid var(--strong-line); border-radius: 12px; background: var(--paper); box-shadow: var(--shadow); }
.reflection-form-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.reflection-form-head input { min-height: 39px; padding: 0 10px; border: 1px solid var(--line); border-radius: 7px; color: var(--text); background: var(--bg); font-size: .82rem; }
.primary-save { min-height: 40px; padding: 0 16px; border: 0; border-radius: 8px; color: white; background: var(--accent); font-size: .78rem; font-weight: 720; }
.mood-field { margin: 22px 0 18px; padding: 0; border: 0; }
.mood-field legend { margin-bottom: 9px; color: var(--muted); font-size: .72rem; font-weight: 700; }
.mood-options { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; }
.mood-options label { cursor: pointer; }
.mood-options input { position: absolute; opacity: 0; pointer-events: none; }
.mood-options span { min-height: 68px; padding: 8px 3px; display: grid; place-items: center; align-content: center; gap: 3px; border: 1px solid var(--line); border-radius: 9px; background: var(--bg); font-size: 1.35rem; transition: .15s ease; }
.mood-options small { color: var(--muted); font-size: .66rem; }
.mood-options input:checked + span { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.mood-options input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.reflection-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.reflection-fields label { display: grid; gap: 6px; }
.reflection-fields label > span { color: var(--muted); font-size: .72rem; font-weight: 700; }
.reflection-fields textarea { width: 100%; min-height: 92px; padding: 10px; resize: vertical; border: 1px solid var(--line); border-radius: 8px; color: var(--text); background: var(--bg); font-size: .82rem; line-height: 1.55; }
.reflection-save-note { margin: 12px 0 0; color: var(--muted); font-size: .68rem; }
.reflection-history-section { margin-top: 34px; }
.reflection-history-head { margin-bottom: 12px; display: flex; align-items: end; justify-content: space-between; }
.reflection-history-head .help-kicker { margin-bottom: 4px; }
.reflection-history-head h2 { margin: 0; font-family: var(--font-friendly); font-size: 1.25rem; font-weight: 700; }
.reflection-history-head > span { color: var(--muted); font-size: .72rem; }
.reflection-history { display: grid; gap: 9px; }
.reflection-card { padding: 16px 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.reflection-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.reflection-card-head > div { display: flex; align-items: center; gap: 9px; }
.reflection-face { font-size: 1.5rem; }
.reflection-card-head strong { display: block; font-size: .82rem; }
.reflection-card-head small { display: block; margin-top: 3px; color: var(--muted); font-size: .66rem; }
.reflection-card-head button { min-height: 30px; padding: 0 7px; border: 0; color: var(--muted); background: transparent; font-size: .68rem; }
.reflection-card-head .danger-text { color: var(--danger); }
.reflection-card > p { margin: 12px 0; color: var(--text); font-size: .82rem; line-height: 1.65; white-space: pre-wrap; }
.reflection-details { margin: 12px 0; display: grid; gap: 8px; }
.reflection-detail { padding: 8px 10px; border-radius: 8px; background: var(--paper-2); }
.reflection-detail dt { color: var(--muted); font-size: .66rem; font-weight: 700; }
.reflection-detail dd { margin: 3px 0 0; color: var(--text); font-size: .82rem; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.reflection-empty { color: var(--muted); font-size: .74rem; }
.reflection-card footer { display: flex; gap: 6px; }
.reflection-card footer span { padding: 3px 7px; border-radius: 999px; color: var(--muted); background: var(--paper-2); font-size: .66rem; }

.help-workspace { max-width: 980px; }
.help-start { margin-top: 24px; padding: 24px; border: 1px solid var(--strong-line); border-radius: 12px; background: var(--paper); box-shadow: var(--shadow); }
.help-kicker { margin: 0 0 12px; color: var(--accent); font-size: .72rem; font-weight: 800; letter-spacing: .08em; }
.help-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.help-steps article { position: relative; padding-left: 39px; }
.help-steps article > span { position: absolute; left: 0; top: 0; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--accent); font-size: .72rem; font-weight: 800; }
.help-workspace h2 { margin: 0 0 7px; font-family: var(--font-friendly); font-size: 1rem; font-weight: 700; }
.help-workspace article p, .help-note p { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.75; }
.help-section { margin-top: 34px; }
.help-section-heading { margin-bottom: 14px; }
.help-section-heading .help-kicker { margin-bottom: 5px; }
.help-section-heading h2 { font-size: 1.25rem; }
.folder-guide { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.folder-guide article { min-height: 105px; padding: 17px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); }
.folder-guide strong { display: block; margin-bottom: 7px; font-size: .84rem; }
.help-details { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.help-details article { padding: 19px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); }
.help-note { margin-top: 28px; padding: 18px 20px; border-left: 4px solid var(--accent); border-radius: 0 9px 9px 0; background: var(--accent-soft); }
.help-note strong { display: block; margin-bottom: 5px; font-size: .84rem; }
.paper-guide { margin-top: 34px; }
.paper-download { margin-top: 14px; min-height: 42px; padding: 0 16px; display: inline-flex; align-items: center; border-radius: 9px; color: white; background: var(--accent); box-shadow: 0 5px 14px rgba(178, 82, 63, .18); font-size: .75rem; font-weight: 750; text-decoration: none; }
.paper-download:hover { filter: brightness(.96); }

dialog { width: min(560px, calc(100% - 24px)); padding: 0; border: 0; border-radius: 14px; color: var(--text); background: var(--paper); box-shadow: 0 24px 80px rgba(30,29,26,.22); }
dialog::backdrop { background: rgba(30,29,26,.38); backdrop-filter: blur(2px); }
dialog form { padding: 23px; }
.dialog-head { margin-bottom: 20px; display: flex; align-items: flex-start; justify-content: space-between; }
.dialog-head small { color: var(--muted); font-size: .62rem; letter-spacing: .12em; }
.dialog-head h2 { margin: 4px 0 0; font-family: var(--font-friendly); font-size: 1.4rem; font-weight: 700; }
.icon-button { width: 32px; height: 32px; border: 0; border-radius: 50%; color: var(--muted); background: var(--paper-2); font-size: 1rem; }
.field { margin-bottom: 14px; display: grid; gap: 6px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.field span { color: var(--muted); font-size: .68rem; font-weight: 700; }
.field input, .field select, .field textarea { width: 100%; min-height: 40px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 7px; color: var(--text); background: var(--bg); font-size: .76rem; }
.field textarea { resize: vertical; }
.check-field { margin: 2px 0 14px; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .73rem; }
.check-field input { width: 17px; height: 17px; accent-color: var(--accent); }
.dialog-actions { margin-top: 18px; display: flex; justify-content: flex-end; gap: 7px; }
.dialog-actions button, .backup-actions button, .backup-actions label { min-height: 38px; padding: 0 14px; display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 7px; color: var(--text); background: var(--paper); font-size: .72rem; font-weight: 680; }
.dialog-actions .primary { border-color: var(--accent); color: white; background: var(--accent); }
.dialog-actions .danger { margin-right: auto; color: var(--danger); }
.dialog-copy { color: var(--muted); font-size: .75rem; line-height: 1.6; }
.backup-actions { display: flex; gap: 8px; }
.backup-actions label { cursor: pointer; }
.backup-actions input { display: none; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 80; padding: 10px 15px; border-radius: 10px; color: white; background: var(--accent); box-shadow: var(--shadow); opacity: 0; transform: translate(-50%, 12px); transition: .18s ease; pointer-events: none; font-size: .73rem; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.mobile-nav { display: none; }

body.dark {
  color-scheme: dark;
  --bg: #1d2925; --paper: #25332e; --paper-2: #30413a; --text: #edf4ef; --muted: #adbbb4;
  --line: #3b4d45; --strong-line: #50645b; --sidebar: #22302b; --accent: #b85d46; --accent-soft: #51362f;
  --calm: #93c3ae; --calm-soft: #314b40;
  --danger: #e39a92; --shadow: 0 12px 32px rgba(5,18,13,.24);
}
body.dark .tag-work { color: #a9bce1; background: #30394d; }
body.dark .tag-private { color: #d0b3e0; background: #44364c; }
body.dark .priority-high { color: #f0aaa3; background: #4c302e; }
body.dark .calendar-day.today { background: #4a3923; }
body.dark .habit-calendar-item { color: #ffd0bd; background: #51362f; }

@media (max-width: 900px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; width: 270px; transform: translateX(-103%); transition: transform .2s ease; box-shadow: 18px 0 55px rgba(0,0,0,.18); }
  body.menu-open .sidebar { transform: translateX(0); }
  body.menu-open::after { content: ""; position: fixed; inset: 0; z-index: 19; background: rgba(0,0,0,.25); }
  .mobile-menu { display: block; }
  .topbar { padding: 0 18px; }
  .content { width: min(760px, calc(100% - 32px)); }
  .quick-links { overflow-x: auto; }
  .quick-links button { white-space: nowrap; }
  .overview-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .topbar { height: 58px; padding: 0 13px; gap: 8px; }
  .quick-links { flex: 1; }
  .quick-links button { min-width: 58px; padding: 0 6px; font-size: .62rem; }
  .quick-links button span { display: block; margin: 0 0 1px; }
  .search { width: 36px; flex: 0 0 36px; border: 0; background: transparent; }
  .search input { position: fixed; left: 12px; right: 12px; top: 64px; z-index: 12; width: calc(100% - 24px); height: 42px; padding: 0 12px; border: 1px solid var(--strong-line); border-radius: 8px; background: var(--paper); box-shadow: var(--shadow); opacity: 0; pointer-events: none; }
  .search:focus-within input { opacity: 1; pointer-events: auto; }
  .content { width: calc(100% - 24px); padding: 31px 0 96px; }
  .page-heading { min-height: 80px; align-items: flex-start; }
  h1 { font-size: 2.15rem; }
  .outline-button { width: 38px; overflow: hidden; padding: 0 10px; white-space: nowrap; color: transparent; }
  .outline-button::first-letter { color: var(--text); }
  .capture { grid-template-columns: 22px 94px minmax(0, 1fr) auto; padding-left: 9px; gap: 5px; }
  .capture #quickPriority { display: none; }
  .capture #quickType { display: block; width: 94px; padding: 0 4px; font-size: .6rem; }
  .capture button { padding: 0 11px; }
  .toolbar { align-items: flex-start; }
  .view-switch { overflow-x: auto; }
  .filters { display: none; }
  .bulk-bar { flex-wrap: wrap; }
  .bulk-bar strong { width: 100%; }
  .task-row { grid-template-columns: 22px 25px minmax(0,1fr) 28px; }
  .field-grid { grid-template-columns: 1fr; }
  .calendar { font-size: .6rem; }
  .calendar-day { min-height: 76px; padding: 4px; }
  .calendar-task { padding: 3px; font-size: .5rem; }
  .habit-calendar-day { min-height: 76px; }
  .habit-calendar-item { padding: 2px 3px; font-size: .5rem; }
  .overview-grid { grid-template-columns: 1fr 1fr; }
  .gtd-flow { grid-template-columns: 1fr; }
  body.home-page .content { height: calc(100dvh - 58px); padding: 14px 0 78px; }
  .home-mode .page-heading { min-height: 64px; }
  .home-mode .home-columns { max-height: calc(100dvh - 214px); grid-template-columns: 1fr; grid-template-rows: auto auto; gap: 0; }
  .home-mode .home-section { padding: 13px; }
  .home-mode .home-section-head h2 { font-size: 1.05rem; }
  .home-mode .home-section-copy { display: none; }
  .home-mode .capture { grid-template-columns: 20px 88px minmax(0, 1fr) auto; }
  .home-log-form { gap: 6px; }
  .home-log-form textarea { min-height: 54px; max-height: 72px; }
  .collection-grid { grid-template-columns: 1fr; }
  .journal-form, .event-form, .collection-form { grid-template-columns: 1fr; }
  .journal-form#logForm { grid-template-columns: 1fr; }
  .budget-summary { grid-template-columns: 1fr 1fr; }
  .transaction-form { grid-template-columns: 1fr 1fr; }
  .transaction-form #transactionNote { grid-column: 1 / -1; }
  .transaction-form button { grid-column: 1 / -1; }
  .data-summary { grid-template-columns: 1fr 1fr; }
  .reflection-week { gap: 2px; padding: 5px; }
  .reflection-day { min-height: 62px; }
  .reflection-day span { font-size: .62rem; }
  .reflection-day small { font-size: .88rem; }
  .reflection-summary { grid-template-columns: 1fr; }
  .reflection-summary article { min-height: 94px; }
  .reflection-form { padding: 17px; }
  .reflection-form-head { align-items: stretch; flex-direction: column; }
  .primary-save { width: 100%; }
  .mood-options { gap: 4px; }
  .mood-options span { min-height: 62px; font-size: 1.2rem; }
  .mood-options small { font-size: .55rem; }
  .reflection-fields { grid-template-columns: 1fr; }
  .help-start { padding: 18px; }
  .help-steps, .folder-guide, .help-details { grid-template-columns: 1fr; }
  .help-steps { gap: 22px; }
  .mini-form { grid-template-columns: 1fr auto; }
  .mini-form #documentUrl { grid-column: 1 / -1; grid-row: 2; }
  .mobile-nav { position: fixed; left: 9px; right: 9px; bottom: max(9px, env(safe-area-inset-bottom)); z-index: 18; height: 63px; padding: 7px 9px; display: grid; grid-template-columns: repeat(5,1fr); align-items: end; border: 1px solid var(--line); border-radius: 16px; background: color-mix(in srgb, var(--paper) 94%, transparent); box-shadow: 0 12px 35px rgba(0,0,0,.15); backdrop-filter: blur(16px); }
  .mobile-nav button { height: 43px; border: 0; color: var(--muted); background: transparent; display: grid; place-items: center; align-content: center; gap: 2px; font-size: .58rem; }
  .mobile-nav button span { font-size: .9rem; }
  .mobile-nav button.active { color: var(--accent); font-weight: 800; }
  .mobile-nav .mobile-add { width: 47px; height: 47px; margin: -16px auto 0; border-radius: 50%; color: white; background: var(--accent); font-size: 1.35rem; }
  .toast { bottom: 82px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}


.google-calendar-panel { margin: 28px 0 0; padding: 17px; border: 1px solid var(--strong-line); border-left: 4px solid var(--calm); border-radius: 0 11px 11px 0; background: var(--paper); box-shadow: var(--shadow); }
.google-calendar-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.google-calendar-head .help-kicker { margin-bottom: 5px; color: var(--calm); }
.google-calendar-head h2 { margin: 0; font-family: var(--font-friendly); font-size: 1.15rem; font-weight: 720; }
.google-calendar-head p:last-child { margin: 6px 0 0; color: var(--muted); font-size: .72rem; line-height: 1.55; }
.google-calendar-badge { flex: 0 0 auto; padding: 5px 9px; border-radius: 999px; color: var(--muted); background: var(--paper-2); font-size: .65rem; font-weight: 750; }
.google-calendar-badge.connected { color: #2f6c54; background: var(--calm-soft); }
.google-calendar-badge.syncing { color: #926720; background: #fbf0d9; }
.google-calendar-controls { margin-top: 14px; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(180px, .8fr); gap: 9px; }
.google-calendar-controls label { display: grid; gap: 5px; }
.google-calendar-controls label > span { color: var(--muted); font-size: .67rem; font-weight: 700; }
.google-calendar-controls input, .google-calendar-controls select { width: 100%; min-height: 39px; padding: 0 10px; border: 1px solid var(--line); border-radius: 7px; color: var(--text); background: var(--bg); font-size: .73rem; }
.google-calendar-actions { margin-top: 11px; display: flex; flex-wrap: wrap; gap: 7px; }
.google-calendar-actions button { min-height: 38px; padding: 0 13px; border: 1px solid var(--line); border-radius: 7px; color: var(--text); background: var(--paper); font-size: .71rem; font-weight: 700; }
.google-calendar-actions .google-connect { border-color: var(--calm); color: white; background: var(--calm); }
.google-calendar-actions button:disabled { cursor: not-allowed; opacity: .5; }
.google-calendar-actions button[hidden] { display: none; }
.google-calendar-note { margin: 11px 0 0; color: var(--muted); font-size: .67rem; line-height: 1.55; }
.google-calendar-help { margin-top: 12px; color: var(--muted); font-size: .69rem; line-height: 1.65; }
.google-calendar-help summary { cursor: pointer; color: var(--text); font-weight: 700; }
.google-calendar-help ol { margin: 8px 0 8px 20px; padding: 0; }
.google-calendar-help code { padding: 2px 4px; border-radius: 4px; background: var(--paper-2); font-size: .65rem; }
.google-calendar-help a { color: var(--calm); font-weight: 700; }

@media (max-width: 620px) {
  .google-calendar-head { flex-direction: column; }
  .google-calendar-badge { align-self: flex-start; }
  .google-calendar-controls { grid-template-columns: 1fr; }
  .google-calendar-actions button { flex: 1 1 140px; }
}
.cloud-sync-panel { margin-top: 22px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.cloud-sync-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.cloud-sync-head h2 { margin: 0 0 6px; font-size: 1rem; }
.cloud-sync-head p:not(.help-kicker) { margin: 0; color: var(--muted); font-size: .76rem; line-height: 1.6; }
#cloudSyncStatus[data-tone="error"] { color: var(--danger); font-weight: 700; }
.cloud-sync-badge { flex: none; padding: 4px 9px; border-radius: 999px; color: var(--muted); background: var(--paper-2); font-size: .68rem; font-weight: 700; }
.cloud-sync-badge.connected { color: white; background: var(--accent); }
.cloud-sync-badge.syncing, .cloud-sync-badge.waiting { color: var(--accent); background: var(--accent-soft); }
.cloud-sync-actions { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.cloud-sync-actions button { min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); background: var(--paper); font-size: .8rem; font-weight: 700; }
.cloud-sync-actions button:first-child { border-color: var(--accent); color: white; background: var(--accent); }
.cloud-sync-actions button:disabled { opacity: .6; }
.cloud-sync-pill { position: fixed; z-index: 60; top: calc(env(safe-area-inset-top, 0px) + 10px); right: 12px; min-height: 40px; padding: 0 14px; border: 0; border-radius: 999px; color: white; background: var(--accent); font-size: .78rem; font-weight: 700; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.cloud-sync-pill[hidden] { display: none; }
.cloud-sync-account { margin: 12px 0 0; color: var(--text); font-size: .78rem; font-weight: 700; overflow-wrap: anywhere; }

/* 保存失敗・URL移転のお知らせ */
.save-error-bar, .move-notice { position: fixed; left: 50%; z-index: 95; width: min(620px, calc(100% - 24px)); transform: translateX(-50%); display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 12px; box-shadow: var(--shadow); font-size: .82rem; line-height: 1.5; }
.save-error-bar { bottom: calc(24px + env(safe-area-inset-bottom)); color: white; background: var(--danger); }
.move-notice { position: relative; left: auto; transform: none; margin: calc(10px + env(safe-area-inset-top)) auto 10px; color: #3b2a22; background: #fff4d6; border: 1px solid #e6c77a; flex-direction: column; align-items: stretch; }
.save-error-bar[hidden], .move-notice[hidden] { display: none; }
.save-error-bar p, .move-notice p { margin: 0; flex: 1; }
.save-error-bar div, .move-notice div { display: flex; gap: 8px; flex-shrink: 0; }
.save-error-bar button { min-height: 40px; padding: 0 12px; border: 1px solid rgba(255,255,255,.7); border-radius: 9px; color: white; background: transparent; font-weight: 700; }
.move-notice a, .move-notice button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 14px; border-radius: 10px; font-weight: 700; font-size: .86rem; text-decoration: none; }
.move-notice a { flex: 1; color: white; background: var(--accent); }
.move-notice button { border: 1px solid #c9a24b; background: white; color: #3b2a22; }
@media (max-width: 620px) { .save-error-bar { bottom: calc(82px + env(safe-area-inset-bottom)); flex-direction: column; align-items: stretch; } }
