/* Sleepy Angel 管理サイト — モバイルファースト */
:root {
  --teal: #1FA0B0;
  --teal-dark: #17808D;
  --mint: #3FD0C9;
  --slate: #4F5A5C;
  --ink: #26302F;
  --muted: #7A8687;
  --line: #E3EAEA;
  --bg: #F3F7F7;
  --surface: #FFFFFF;
  --soft: #E8F6F7;
  --danger: #D9534F;
  --danger-soft: #FCEDEC;
  --warn: #E8A33D;
  --warn-soft: #FDF4E6;
  --ok: #2BA36B;
  --ok-soft: #E7F6EE;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(38, 48, 47, .06), 0 4px 16px rgba(38, 48, 47, .05);
  --tabbar-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-tap-highlight-color: transparent;
}
a { color: var(--teal-dark); text-decoration: none; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; line-height: 1.3; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.pos { color: var(--ok); }
.neg { color: var(--danger); }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.mt { margin-top: 16px; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- レイアウト ---------- */
.app { min-height: 100vh; }
.main { min-width: 0; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 12px;
  height: 56px; padding: 0 16px;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar-logo img { height: 36px; width: auto; display: block; }
.page-title { font-size: 16px; font-weight: 700; color: var(--slate); }
.content {
  padding: 16px 16px calc(var(--tabbar-h) + var(--safe-b) + 88px);
  max-width: 1200px;
}

/* サイドバー（SP ではドロワー） */
.sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 50;
  width: 270px; max-width: 84vw;
  display: flex; flex-direction: column;
  background: var(--surface);
  border-right: 1px solid var(--line);
  transform: translateX(-100%);
  transition: transform .22s ease;
}
.drawer-open .sidebar { transform: none; box-shadow: 8px 0 32px rgba(0, 0, 0, .15); }
.drawer-backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(20, 30, 30, .35); opacity: 0; pointer-events: none; transition: opacity .2s; }
.drawer-open .drawer-backdrop { opacity: 1; pointer-events: auto; }
.drawer-open { overflow: hidden; }
.sidebar-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 4px 16px; }
.brand img { height: 64px; width: auto; display: block; }
.nav { flex: 1; overflow-y: auto; padding: 8px; }
.nav-item {
  display: flex; align-items: center; gap: 12px;
  min-height: 46px; padding: 0 14px; margin-bottom: 2px;
  border-radius: 10px; color: var(--slate); font-weight: 600;
}
.nav-item:hover { background: var(--bg); }
.nav-item.is-active { background: var(--soft); color: var(--teal-dark); }
.nav-item.is-active .icon { color: var(--teal); }
.sidebar-foot { display: flex; align-items: center; gap: 8px; padding: 12px; border-top: 1px solid var(--line); padding-bottom: calc(12px + var(--safe-b)); }
.me { flex: 1; display: flex; align-items: center; gap: 10px; color: var(--ink); min-width: 0; }
.me-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-name small { display: block; font-size: 11px; color: var(--muted); font-weight: 400; }
.avatar {
  display: inline-grid; place-items: center; flex-shrink: 0;
  width: 32px; height: 32px; border-radius: 50%;
  color: #fff; font-size: 13px; font-weight: 700;
}
.avatar.sm { width: 24px; height: 24px; font-size: 11px; }

/* 下部タブバー（SP） */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: repeat(5, 1fr);
  height: calc(var(--tabbar-h) + var(--safe-b));
  padding-bottom: var(--safe-b);
  background: rgba(255, 255, 255, .97);
  border-top: 1px solid var(--line);
}
.tab {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  border: 0; background: none; font: inherit; color: var(--muted); font-size: 11px; font-weight: 600; cursor: pointer;
}
.tab .icon { width: 24px; height: 24px; }
.tab.is-active { color: var(--teal); }

/* 追加ボタン（SP 右下） */
.fab {
  position: fixed; right: 16px; bottom: calc(var(--tabbar-h) + var(--safe-b) + 16px); z-index: 25;
  display: inline-flex; align-items: center; gap: 6px;
  height: 56px; padding: 0 22px 0 18px; border: 0; border-radius: 28px;
  background: linear-gradient(135deg, var(--teal), var(--mint));
  color: #fff; font: inherit; font-weight: 700; font-size: 15px;
  box-shadow: 0 6px 20px rgba(31, 160, 176, .4); cursor: pointer;
}
.fab .icon { width: 22px; height: 22px; stroke-width: 2.4; }

@media (min-width: 960px) {
  .app { display: grid; grid-template-columns: 250px 1fr; }
  .sidebar { position: sticky; top: 0; height: 100vh; width: auto; max-width: none; transform: none; }
  .sidebar .drawer-close, .drawer-backdrop, .tabbar, .topbar-logo { display: none; }
  .topbar { height: 64px; padding: 0 32px; }
  .page-title { font-size: 20px; }
  .content { padding: 24px 32px 48px; }
  .fab { position: static; height: 42px; padding: 0 18px 0 14px; border-radius: 10px; box-shadow: none; font-size: 14px; }
  .fab-wrap { display: flex; justify-content: flex-end; margin-bottom: 16px; }
}

/* ---------- 部品 ---------- */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  margin-bottom: 16px;
}
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.card-title { font-size: 15px; font-weight: 700; color: var(--slate); display: flex; align-items: center; gap: 8px; }
.card-title .icon { color: var(--teal); }
.card.flush { padding: 0; overflow: hidden; }
.card.flush .card-head { padding: 16px 16px 0; }

.grid { display: grid; gap: 16px; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .grid-2-1 { grid-template-columns: 2fr 1fr; } }
.grid > .card { margin-bottom: 0; }
.stack > * + * { margin-top: 16px; }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.stat { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; min-width: 0; }
.stat-label { font-size: 12px; color: var(--muted); font-weight: 600; }
.stat-value { font-size: 20px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; margin-top: 2px; overflow-wrap: anywhere; }
.stat-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.stat.accent { background: linear-gradient(135deg, var(--teal), var(--mint)); color: #fff; }
.stat.accent .stat-label, .stat.accent .stat-sub, .stat.accent .stat-value { color: #fff; }
@media (min-width: 720px) { .stat-value { font-size: 24px; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 18px;
  border: 1px solid transparent; border-radius: 10px;
  font: inherit; font-weight: 700; font-size: 14px;
  cursor: pointer; white-space: nowrap;
  background: var(--soft); color: var(--teal-dark);
}
.btn:hover { filter: brightness(.97); }
.btn-primary { background: var(--teal); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--slate); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger-ghost { background: transparent; color: var(--danger); border-color: transparent; }
.btn-sm { min-height: 34px; padding: 0 10px; font-size: 13px; border-radius: 8px; }
.btn-sm .icon { width: 16px; height: 16px; }
.btn-block { width: 100%; }
.btn-google { background: #fff; color: #3c4043; border-color: #dadce0; }
.icon-btn {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; border: 0; border-radius: 10px;
  background: transparent; color: var(--slate); cursor: pointer;
}
.icon-btn:hover { background: var(--bg); }
.inline { display: inline; margin: 0; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.actions.end { justify-content: flex-end; }

/* フォーム */
.form .field { margin-bottom: 14px; }
.field > label, .field-label { display: block; font-size: 13px; font-weight: 700; color: var(--slate); margin-bottom: 6px; }
.req::after { content: "必須"; margin-left: 6px; padding: 1px 6px; border-radius: 4px; background: var(--danger-soft); color: var(--danger); font-size: 10.5px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=month],
input[type=time], input[type=url], input[type=search], input[type=tel], select, textarea {
  width: 100%; min-height: 46px; padding: 10px 12px;
  border: 1px solid #CFDADB; border-radius: 10px;
  background: #fff; color: var(--ink);
  font: inherit; font-size: 16px; /* iOS のズーム防止 */
  -webkit-appearance: none; appearance: none;
}
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237A8687' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 18px; padding-right: 36px; }
textarea { min-height: 110px; resize: vertical; line-height: 1.6; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(31, 160, 176, .18); }
input[type=color] { width: 56px; height: 46px; padding: 4px; border: 1px solid #CFDADB; border-radius: 10px; background: #fff; }
.input-yen { position: relative; }
.input-yen::before { content: "¥"; position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 700; }
.input-yen input { padding-left: 28px; font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field-row > .field { min-width: 0; }
.field-row.three { grid-template-columns: 1fr 1fr 1fr; }
.hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.check { display: flex; align-items: center; gap: 8px; min-height: 40px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--teal); }

/* チップ型の選択（SP で押しやすく） */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips label {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 40px; padding: 0 14px;
  border: 1px solid #CFDADB; border-radius: 20px;
  background: #fff; font-size: 14px; font-weight: 600; color: var(--slate); cursor: pointer;
}
.chips input:checked + label { background: var(--teal); border-color: var(--teal); color: #fff; }
.chips input:focus-visible + label { box-shadow: 0 0 0 3px rgba(31, 160, 176, .3); }
.chips .dot { width: 10px; height: 10px; border-radius: 50%; }

/* フィルター / ツールバー */
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; }
.toolbar select, .toolbar input { width: auto; min-height: 40px; font-size: 15px; }
.toolbar .grow { flex: 1; }
.month-nav { display: flex; align-items: center; gap: 4px; }
.month-pick { margin: 0; }
.month-pick input { width: 150px; min-height: 40px; text-align: center; font-weight: 700; padding: 6px 8px; }

.segmented { display: flex; gap: 4px; padding: 4px; background: #E6EEEE; border-radius: 12px; margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; }
.segmented::-webkit-scrollbar { display: none; }
.segmented a { flex: 1 0 auto; text-align: center; padding: 8px 14px; border-radius: 9px; color: var(--slate); font-weight: 700; font-size: 13.5px; white-space: nowrap; }
.segmented a.is-active { background: #fff; color: var(--teal-dark); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }

/* フラッシュ */
.flash { padding: 12px 14px; border-radius: 10px; margin-bottom: 14px; font-weight: 600; font-size: 14px; }
.flash-success { background: var(--ok-soft); color: #1d7a4f; }
.flash-error { background: var(--danger-soft); color: #b23b37; }
.flash-info { background: var(--soft); color: var(--teal-dark); }
.errors { margin: 0 0 14px; padding: 12px 14px 12px 30px; border-radius: 10px; background: var(--danger-soft); color: #b23b37; font-size: 14px; }

/* バッジ */
.badge { display: inline-block; padding: 1px 8px; border-radius: 6px; font-size: 11.5px; font-weight: 700; background: var(--bg); color: var(--slate); white-space: nowrap; }
.badge-teal { background: var(--soft); color: var(--teal-dark); }
.badge-ok { background: var(--ok-soft); color: #1d7a4f; }
.badge-warn { background: var(--warn-soft); color: #a86b12; }
.badge-danger { background: var(--danger-soft); color: #b23b37; }
.badge-shift { background: #E2F7F5; color: #188a83; }
.badge-meeting { background: #EEE8FB; color: #6a4bb8; }
.badge-other { background: #F0F2F2; color: var(--slate); }

/* リスト（SP の主要表示） */
.list { list-style: none; margin: 0; padding: 0; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); }
.list-item:first-child { border-top: 0; }
.card:not(.flush) .list-item { padding-left: 0; padding-right: 0; }
.list-main { flex: 1; min-width: 0; }
.list-title { font-weight: 700; overflow: hidden; text-overflow: ellipsis; }
.list-meta { font-size: 12.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.list-side { text-align: right; flex-shrink: 0; }
.list-amount { font-weight: 800; font-variant-numeric: tabular-nums; }
a.list-item { color: inherit; }
a.list-item:active { background: var(--bg); }
.group-label { padding: 10px 16px 6px; font-size: 12px; font-weight: 700; color: var(--muted); background: #F8FBFB; border-top: 1px solid var(--line); display: flex; justify-content: space-between; }

/* テーブル */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.table th { font-size: 12px; color: var(--muted); font-weight: 700; background: #F8FBFB; white-space: nowrap; }
.table td.num, .table th.num { text-align: right; }
.table tfoot td { font-weight: 800; background: #F8FBFB; }
.table tr.total td { font-weight: 800; border-top: 2px solid var(--line); }
.table .sticky-col { position: sticky; left: 0; background: #fff; z-index: 1; }
.table th.sticky-col, .table tfoot .sticky-col { background: #F8FBFB; }

/* PC はテーブル、SP はリスト */
.pc-only { display: none; }
@media (min-width: 720px) { .pc-only { display: block; } .sp-only { display: none; } }

/* 進捗バー */
.bar { height: 8px; border-radius: 4px; background: #E6EEEE; overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--teal), var(--mint)); }
.bar.expense > span { background: linear-gradient(90deg, #8A9596, #B5BEBF); }
.bar.over > span { background: var(--danger); }

/* 横棒グラフ */
.hbars { display: grid; gap: 10px; }
.hbar-row { display: grid; grid-template-columns: 6.5em 1fr auto; gap: 10px; align-items: center; font-size: 13px; }
.hbar-row .bar { height: 10px; }

/* 月次グラフ（縦棒） */
.vchart { display: flex; align-items: flex-end; gap: 8px; height: 160px; padding-top: 8px; }
.vchart-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; min-width: 0; }
.vchart-bars { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 3px; }
.vchart-bars span { width: 40%; max-width: 18px; border-radius: 4px 4px 0 0; min-height: 2px; }
.vchart-bars .s { background: var(--teal); }
.vchart-bars .e { background: #B5BEBF; }
.vchart-label { font-size: 11px; color: var(--muted); }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; }

/* シート（SP は下から、PC は中央モーダル） */
dialog.sheet {
  width: 100%; max-width: 100%; max-height: 92vh; margin: auto 0 0;
  padding: 0; border: 0; border-radius: 20px 20px 0 0;
  background: var(--surface); color: var(--ink);
  box-shadow: 0 -8px 40px rgba(0, 0, 0, .2);
}
dialog.sheet::backdrop { background: rgba(20, 30, 30, .45); }
dialog.sheet[open] { animation: sheet-up .22s ease; }
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 12px 8px 8px 20px; background: var(--surface); border-bottom: 1px solid var(--line); }
.sheet-head::before { content: ""; position: absolute; top: 6px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 2px; background: #D5DEDF; }
.sheet-title { font-size: 16px; font-weight: 800; color: var(--slate); }
.sheet-body { padding: 16px 20px calc(20px + var(--safe-b)); overflow-y: auto; }
.sheet-foot { display: flex; gap: 10px; margin-top: 6px; }
.sheet-foot .btn-primary { flex: 1; min-height: 50px; font-size: 16px; }
@media (min-width: 720px) {
  dialog.sheet { width: 560px; max-height: 88vh; margin: auto; border-radius: 18px; }
  .sheet-head::before { display: none; }
}

/* 空 */
.empty { text-align: center; color: var(--muted); padding: 28px 12px; margin: 0; font-size: 14px; }

/* カレンダー */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cal-h { padding: 6px 0; text-align: center; font-size: 11.5px; font-weight: 700; color: var(--muted); background: #F8FBFB; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cal-h.sun, .cal-d.sun .cal-n { color: var(--danger); }
.cal-h.sat, .cal-d.sat .cal-n { color: #3b7fd0; }
.cal-d { position: relative; min-height: 64px; padding: 4px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); color: inherit; background: #fff; overflow: hidden; }
.cal-d.out { background: #FAFCFC; }
.cal-d.out .cal-n { opacity: .35; }
.cal-d.today .cal-n { background: var(--teal); color: #fff; border-radius: 50%; }
.cal-d.selected { background: var(--soft); }
.cal-n { display: inline-grid; place-items: center; width: 24px; height: 24px; font-size: 12.5px; font-weight: 700; }
.cal-dots { display: flex; flex-wrap: wrap; gap: 3px; padding: 2px; }
.cal-dots i { width: 7px; height: 7px; border-radius: 50%; }
.cal-ev { display: none; }
@media (min-width: 720px) {
  .cal-d { min-height: 104px; }
  .cal-dots { display: none; }
  .cal-ev { display: block; font-size: 11.5px; line-height: 1.35; padding: 2px 5px; margin-top: 2px; border-radius: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .cal-more { font-size: 11px; color: var(--muted); padding-left: 4px; }
}
@media (max-width: 719px) { .cal-more { display: none; } }

/* タスク */
.task-check { margin: 0; }
.task-check button {
  display: grid; place-items: center; width: 30px; height: 30px; padding: 0;
  border: 2px solid #B9C6C7; border-radius: 50%; background: #fff; color: transparent; cursor: pointer;
}
.task-check button .icon { width: 16px; height: 16px; stroke-width: 3; }
.task-check.done button { background: var(--ok); border-color: var(--ok); color: #fff; }
.is-done .list-title { text-decoration: line-through; color: var(--muted); }
.overdue { color: var(--danger); font-weight: 700; }

/* メモ */
.memo-grid { display: grid; gap: 12px; }
@media (min-width: 720px) { .memo-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); } }
.memo { display: block; color: inherit; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; border-top: 4px solid var(--line); }
.memo.pinned { border-top-color: var(--mint); }
.memo-title { font-weight: 800; margin-bottom: 4px; display: flex; gap: 6px; align-items: center; }
.memo-title .icon { width: 16px; height: 16px; color: var(--teal); }
.memo-body { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; color: #3b4645; max-height: 9.6em; overflow: hidden; }
.memo-meta { font-size: 11.5px; color: var(--muted); margin-top: 8px; }

/* 共有アカウント */
.secret { display: flex; align-items: center; gap: 4px; }
.secret code { flex: 1; min-width: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; background: var(--bg); padding: 8px 10px; border-radius: 8px; overflow-wrap: anywhere; }
.kv { display: grid; grid-template-columns: 6em 1fr; gap: 8px 12px; align-items: center; font-size: 14px; }
.kv dt { color: var(--muted); font-size: 12.5px; font-weight: 700; }
.kv dd { margin: 0; min-width: 0; }

/* 精算 */
.transfer { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; background: var(--soft); margin-bottom: 8px; flex-wrap: wrap; }
.transfer .arrow { color: var(--teal); font-weight: 800; }

/* ログイン画面 */
.auth-body { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: linear-gradient(160deg, #EAF8F8, #F6FAFA 60%); }
.auth { width: 100%; max-width: 400px; }
.auth-logo { display: block; width: 260px; margin: 0 auto 12px; }
.auth .card { padding: 24px 20px; }
.auth h1 { font-size: 18px; text-align: center; margin-bottom: 18px; color: var(--slate); }
.or { display: flex; align-items: center; gap: 10px; margin: 18px 0; color: var(--muted); font-size: 12px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-foot { text-align: center; margin-top: 16px; font-size: 14px; }

/* ホームのクイック入力 */
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 16px; }
.quick-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-height: 72px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow);
  color: var(--slate); font-size: 12.5px; font-weight: 700;
}
.quick-btn .icon { width: 24px; height: 24px; color: var(--teal); }
.quick-btn:active { background: var(--soft); }
@media (min-width: 960px) { .quick { max-width: 640px; } }
