:root {
  color-scheme: light;
  --ink: #17151c;
  --paper: #f7f5fb;
  --purple: #7938e6;
  --purple-deep: #4f1bb0;
  --pink: #df64e9;
  font-family: Inter, "Noto Sans JP", "Yu Gothic", system-ui, sans-serif;
}

* { box-sizing: border-box; }
body { min-width: 320px; min-height: 100vh; margin: 0; color: var(--ink); background: var(--paper); }
a { color: inherit; }
.hub-shell { width: min(calc(100% - 48px), 1080px); min-height: 100vh; margin: 0 auto; padding: 22px 0 20px; }
.hub-header { display: flex; align-items: center; justify-content: space-between; padding-bottom: 16px; border-bottom: 1px solid var(--ink); }
.hub-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-size: .82rem; font-weight: 900; letter-spacing: .15em; }
.brand-mark { display: grid; place-items: center; width: 32px; height: 32px; color: white; background: var(--ink); font-family: Georgia, serif; font-size: 1.1rem; letter-spacing: 0; }
.hub-meta { margin: 0; color: #706a78; font-size: .75rem; font-weight: 800; letter-spacing: .16em; }
.daily-summary { margin: 32px 0 clamp(42px, 5vw, 58px); }
.summary-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 18px; }
.summary-kicker { margin: 0 0 7px; color: var(--purple); font-size: .72rem; font-weight: 900; letter-spacing: .2em; }
.summary-heading h1 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.8rem); letter-spacing: -.045em; }
.summary-date { color: #665f6d; font: italic 1.05rem Georgia, serif; }
.summary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 20px; }
.summary-card { min-width: 0; padding: 18px; border: 1px solid var(--ink); background: #fff; box-shadow: 5px 5px 0 var(--ink); }
.summary-card header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid #d8d3dc; }
.summary-card h3 { margin: 0; font-size: 1.18rem; }
.summary-count { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 8px; border-radius: 999px; color: #fff; background: var(--purple); font-size: .82rem; font-weight: 900; }
.summary-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #fff; background: var(--ink); font-weight: 900; }
.summary-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.summary-list li { display: grid; gap: 5px; padding: 10px 0; border-bottom: 1px solid #ece8ef; overflow-wrap: anywhere; }
.summary-list strong { font-size: .94rem; line-height: 1.45; }
.summary-item-meta { color: #716a78; font-size: .78rem; font-weight: 800; }
.summary-card > a { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; color: var(--purple); font-size: .84rem; font-weight: 900; text-decoration: none; }
.summary-card > a:hover { text-decoration: underline; }
.summary-card > a:focus-visible { outline: 3px solid var(--pink); outline-offset: 4px; }
.summary-empty { color: #7b7480; font-size: .88rem; }
.summary-list .summary-todo-item { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.summary-todo-content { display: grid; gap: 5px; min-width: 0; }
.summary-todo-complete { display: grid; place-items: center; width: 32px; height: 32px; min-height: 32px; padding: 0; border: 1px solid #b9a4e8; border-radius: 50%; color: var(--purple); background: #f5f0ff; cursor: pointer; font-size: .95rem; font-weight: 900; }
.summary-todo-complete:hover { border-color: var(--purple); background: #ede4ff; }
.summary-todo-complete:focus-visible { outline: 3px solid rgba(121,56,230,.2); outline-offset: 3px; }
.todo-summary-group { padding-top: 17px; }
.todo-summary-group + .todo-summary-group { margin-top: 4px; }
.todo-summary-group h4 { display: flex; align-items: center; justify-content: space-between; margin: 0 0 2px; font-size: .84rem; }
.todo-summary-group .summary-count { min-width: 25px; height: 25px; font-size: .72rem; }
.overdue-group h4, .overdue-date { color: #c43f55; }
.overdue-count { background: #c43f55; }
.has-error .summary-card { border-color: #c43f55; }
.collection-section { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; padding-bottom: 38px; }
.collection-heading { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; margin-bottom: -4px; }
.collection-heading h2 { margin: 0; font-size: .8rem; letter-spacing: .2em; }
.collection-heading span { color: #77717e; font: italic 1rem Georgia, serif; }
.collection-card { display: grid; grid-template-columns: 128px minmax(0, 1fr); min-height: 150px; overflow: hidden; border: 1px solid var(--ink); background: white; text-decoration: none; box-shadow: 6px 6px 0 var(--ink); transition: transform .2s ease, box-shadow .2s ease; }
.collection-card:hover { transform: translate(-4px, -4px); box-shadow: 14px 14px 0 var(--purple); }
.collection-card:focus-visible { outline: 4px solid var(--pink); outline-offset: 5px; }
.card-visual { position: relative; display: grid; place-items: center; overflow: hidden; color: white; background: linear-gradient(145deg, var(--purple-deep), var(--purple) 60%, var(--pink)); }
.visual-grid { position: absolute; inset: 0; opacity: .18; background-image: linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px); background-size: 28px 28px; }
.card-visual svg { z-index: 1; width: min(48%, 84px); fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 5; filter: drop-shadow(5px 5px 0 rgba(38, 10, 89, .32)); }
.visual-label { position: absolute; right: 12px; bottom: 12px; font-size: .62rem; font-weight: 900; letter-spacing: .14em; }
.budget-card-visual { background: linear-gradient(145deg, #352071, var(--purple-deep) 58%, var(--purple)); }
.budget-symbol { z-index: 1; display: grid; place-items: center; width: 82px; height: 82px; border: 3px solid rgba(255,255,255,.9); border-radius: 50%; font: 400 3.2rem Georgia, serif; box-shadow: 5px 5px 0 rgba(24,8,62,.35); }
.shopping-card-visual { background: linear-gradient(145deg, #26165c, #6430c8 58%, #a957dc); }
.shopping-symbol { z-index: 1; display: grid; gap: 9px; width: 92px; padding: 17px 15px; border: 3px solid rgba(255,255,255,.92); border-radius: 13px; box-shadow: 5px 5px 0 rgba(24,8,62,.35); }
.shopping-symbol i { position: relative; display: block; height: 5px; margin-left: 28px; border-radius: 99px; background: white; }
.shopping-symbol i::before { position: absolute; left: -28px; top: -6px; content: "✓"; color: white; font: 900 1rem system-ui, sans-serif; }
.todo-card-visual { background: linear-gradient(145deg, #17151c, #352071 60%, #7938e6); }
.todo-symbol { z-index: 1; display: grid; gap: 9px; width: 92px; padding: 17px 15px; border: 3px solid rgba(255,255,255,.92); border-radius: 10px; box-shadow: 5px 5px 0 rgba(15,7,36,.4); }
.todo-symbol i { position: relative; display: block; height: 4px; margin-left: 30px; border-radius: 99px; background: white; }
.todo-symbol i::before { position: absolute; left: -30px; top: -7px; width: 14px; height: 14px; content: ""; border: 3px solid white; border-radius: 4px; }
.calendar-card-visual { background: linear-gradient(145deg, #3a176c, #7130c5 55%, #d44fba); }
.calendar-symbol { z-index: 1; display: grid; place-items: center; width: 88px; height: 82px; overflow: hidden; border: 3px solid white; border-radius: 10px; color: white; box-shadow: 5px 5px 0 rgba(24,8,62,.35); }
.calendar-symbol::before { align-self: start; width: 100%; height: 18px; content: ""; background: rgba(255,255,255,.94); }
.calendar-symbol b { font: 400 2.25rem Georgia, serif; }
.calendar-symbol i { width: 48px; height: 4px; margin-bottom: 9px; border-radius: 99px; background: rgba(255,255,255,.8); }
.news-card-visual { background: linear-gradient(145deg, #19152a, #5b27b7 58%, #b64ed4); }
.place-card-visual { background: linear-gradient(145deg, #24134f, #733bd0 58%, #cf72c9); }
.usual-card-visual { background: linear-gradient(145deg, #281155, #7a3cdf 56%, #e476bd); }
.usual-symbol { z-index: 1; display: grid; gap: 10px; width: 92px; padding: 17px 15px; border: 3px solid white; border-radius: 13px; box-shadow: 5px 5px 0 rgba(24,8,62,.35); }
.usual-symbol i { position: relative; display: block; height: 4px; margin-left: 27px; border-radius: 99px; background: white; }
.usual-symbol i::before { position: absolute; left: -27px; top: -5px; width: 12px; height: 12px; content: ""; border: 2px solid white; border-radius: 50%; }
.news-symbol { z-index: 1; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 7px 9px; width: 92px; padding: 13px; border: 3px solid white; border-radius: 10px; box-shadow: 5px 5px 0 rgba(24,8,62,.35); }
.news-symbol b { grid-row: 1 / 4; font: italic 700 2rem Georgia, serif; }
.news-symbol i { height: 4px; border-radius: 99px; background: white; }
.card-content { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 14px; padding: 20px; }
.card-number { align-self: start; margin: 0; color: var(--purple); font: italic 1.2rem Georgia, serif; }
.card-content h3 { margin: 0; font-size: 1.4rem; letter-spacing: -.04em; }
.card-content p { margin: 0; color: #716b78; font-size: .84rem; line-height: 1.5; }
.hub-footer { display: flex; justify-content: space-between; padding-top: 18px; border-top: 1px solid #bdb7c6; color: #77717e; font-size: .7rem; font-weight: 800; letter-spacing: .14em; }

@media (max-width: 720px) {
  body { overflow-x: hidden; background: #fbfaff; }
  .hub-shell { width: 100%; padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(40px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
  .hub-header { padding-bottom: 14px; }
  .hub-brand { gap: 9px; font-size: .74rem; }
  .brand-mark { width: 28px; height: 28px; }
  .hub-meta { display: none; }
  .daily-summary { margin: 24px 0 48px; }
  .summary-heading { align-items: center; margin-bottom: 14px; }
  .summary-heading h1 { font-size: 1.65rem; }
  .summary-date { font-size: .92rem; }
  .summary-grid { grid-template-columns: 1fr; gap: 18px; }
  .summary-card { padding: 19px; box-shadow: 4px 4px 0 var(--ink); }
  .summary-card header { padding-bottom: 13px; }
  .summary-list li { padding-block: 12px; }
  .collection-heading { margin-bottom: 13px; }
  .collection-section { grid-template-columns: 1fr; gap: 16px; }
  .collection-card { grid-template-columns: 82px minmax(0, 1fr); min-height: 96px; box-shadow: 4px 4px 0 var(--ink); }
  .collection-card:hover { transform: none; box-shadow: 4px 4px 0 var(--ink); }
  .card-visual { min-height: 96px; }
  .card-visual svg { width: 58px; stroke-width: 6; filter: none; }
  .visual-label { display: none; }
  .budget-symbol { width: 62px; height: 62px; border-width: 2px; font-size: 2.4rem; box-shadow: 4px 4px 0 rgba(24,8,62,.35); }
  .shopping-symbol, .todo-symbol { gap: 7px; width: 62px; padding: 13px 9px; border-width: 2px; border-radius: 9px; box-shadow: 4px 4px 0 rgba(24,8,62,.35); }
  .shopping-symbol i, .todo-symbol i { height: 3px; margin-left: 17px; }
  .shopping-symbol i::before { left: -17px; top: -6px; font-size: .82rem; }
  .todo-symbol i::before { left: -17px; top: -5px; width: 9px; height: 9px; border-width: 2px; }
  .calendar-symbol { width: 62px; height: 62px; border-width: 2px; border-radius: 9px; box-shadow: 4px 4px 0 rgba(24,8,62,.35); }
  .calendar-symbol::before { height: 13px; }
  .calendar-symbol b { font-size: 1.8rem; }
  .calendar-symbol i { width: 32px; height: 3px; margin-bottom: 6px; }
  .news-symbol { gap: 5px 6px; width: 62px; padding: 9px; border-width: 2px; box-shadow: 4px 4px 0 rgba(24,8,62,.35); }
  .news-symbol b { font-size: 1.5rem; }
  .news-symbol i { height: 3px; }
  .card-content { grid-template-columns: minmax(0, 1fr); align-items: center; gap: 10px; padding: 16px 14px; }
  .card-number { display: none; }
  .card-content h3 { font-size: 1.14rem; letter-spacing: -.025em; }
  .card-content p { font-size: .78rem; line-height: 1.45; }
  .hub-footer { margin-top: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  .collection-card { transition: none; }
}
.logout-button {
  margin-left: auto;
  padding: 8px 14px;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: inherit;
  background: transparent;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
