@charset "UTF-8";
@layer reset, base, components, responsive;
@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  body, h1, h2, h3, p, ul, ol { margin: 0; }
  button, input, textarea, select { font: inherit; }
  button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
  button { cursor: pointer; }
  a { color: inherit; text-decoration: none; }
  button { color: inherit; }
  svg { display: inline-block; vertical-align: middle; flex-shrink: 0; }
  button { border: 0; background: none; }
  img { max-width: 100%; display: block; }
  [hidden] { display: none !important; }
}
@layer base {
  :root { --navy: #172c50; --navy-hover: #27456f; --ink: #20314c; --muted: #718096; --line: #e8ecf1; --bg: #f8f9fc; --soft: #f0f3f8; --blue: #eaf0f8; --green: #477c63; --green-bg: #eaf3ed; --amber: #a7753b; --amber-bg: #faf0e2; --red: #ae5e57; --radius: 18px; --shadow: 0 8px 32px #152b4a08; color-scheme: light; }
  html { scroll-behavior: smooth; scroll-padding-top: 120px; }
  body { min-width: 320px; color: var(--ink); background: var(--bg); font-family: "Inter", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif; font-size: 14px; line-height: 1.7; -webkit-font-smoothing: antialiased; letter-spacing: .015em; }
  button { line-height: 1.5; }
  button, a, input, textarea { touch-action: manipulation; }
  :focus-visible { outline: 3px solid #8baddd; outline-offset: 4px; }
  ::selection { background: #dce7f5; }
  input, textarea { width: 100%; color: var(--ink); background: #fff; border: 1px solid #dce2eb; border-radius: 10px; padding: 12px 14px; min-height: 48px; font-size: 16px; line-height: 1.5; transition: border-color .2s, box-shadow .2s; }
  input:focus, textarea:focus { outline: none; border-color: #6f89ad; box-shadow: 0 0 0 3px #172c500b; }
  input::placeholder, textarea::placeholder { color: #98a2b1; font-size: 14px; }
  input[type=checkbox] { width: 20px; min-height: 20px; height: 20px; accent-color: var(--navy); flex-shrink: 0; }
  input[type=search]::-webkit-search-cancel-button { cursor: pointer; }
  textarea { resize: vertical; min-height: 96px; }
  select { width: 100%; min-height: 48px; border: 1px solid #dce2eb; border-radius: 10px; background: #fff; color: var(--ink); padding: 10px 13px; font-size: 16px; }
  button:disabled { opacity: .5; cursor: wait; }
  h1, h2, h3 { color: var(--navy); }
  .skip-link { position: fixed; z-index: 100; top: -80px; left: 20px; padding: 12px 24px; background: var(--navy); color: #fff; border-radius: 8px; }
  .skip-link:focus { top: 12px; }
}
@layer components {
  .app-shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100dvh; }
  .sidebar { background: #fff; border-right: 1px solid var(--line); position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; padding: 39px 22px 22px; z-index: 30; }
  .brand { display: inline-flex; align-items: center; gap: 11px; width: fit-content; color: var(--navy); }
  .brand-mark { display: grid; place-items: center; width: 41px; height: 44px; color: var(--navy); }
  .brand-word { font-size: 25px; font-weight: 800; letter-spacing: .1em; line-height: 1.2; }
  .brand-sub { font-size: 8px; letter-spacing: .26em; font-weight: 600; display: block; margin-top: 5px; }
  .side-caption { color: #9ba5b4; font-size: 10px; letter-spacing: .18em; margin: 49px 15px 13px; }
  .nav-link { width: 100%; display: flex; align-items: center; gap: 12px; color: #6b7890; font-weight: 600; padding: 13px 16px; border-radius: 10px; margin-bottom: 7px; text-align: left; transition: background .2s, color .2s; min-height: 48px; }
  .nav-link:hover { background: #f5f7fa; color: var(--navy); }
  .nav-link.active { color: var(--navy); background: #edf1f7; }
  .nav-link .nav-count { font-size: 11px; margin-left: auto; border-radius: 5px; background: #fff; min-width: 23px; padding: 0 5px; text-align: center; }
  .sidebar-footer { margin-top: auto; }
  .kind-note { border-radius: 12px; background: #f6f8fb; padding: 20px 16px 17px; margin: 25px 4px 22px; }
  .kind-note svg { color: #8b9ab0; margin-bottom: 10px; }
  .kind-note p { font-size: 11px; color: #7a889c; line-height: 1.9; }
  .sidebar-fine { font-size: 10px; color: #a0a9b7; margin: 0 16px; }
  .mobile-header, .mobile-nav { display: none; }
  .workspace { min-width: 0; }
  .topbar { min-height: 84px; border-bottom: 1px solid var(--line); background: #ffffffa8; padding: 0 46px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
  .breadcrumb { color: #6f7d91; font-size: 12px; display: flex; align-items: center; gap: 12px; }
  .breadcrumb strong { color: #455773; font-weight: 500; }
  .topbar-note { font-size: 11px; color: #7c8799; display: flex; align-items: center; gap: 7px; }
  .content { max-width: 1300px; padding: 42px 48px 28px; margin: 0 auto; }
  .page-eyebrow { font-size: 10px; font-weight: 600; letter-spacing: .18em; color: #8a97aa; margin-bottom: 9px; }
  .page-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 28px; }
  .page-heading h1 { font-size: 27px; font-weight: 750; letter-spacing: .035em; line-height: 1.5; }
  .date-label { font-size: 11px; color: #8792a3; display: flex; align-items: center; gap: 7px; }
  .hero { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; min-height: 326px; padding: 40px 30px 38px 43px; background: #edf1f7; border: 1px solid #e7ecf4; border-radius: 20px; position: relative; overflow: hidden; }
  .hero-copy { z-index: 1; }
  .pill-label { color: #6d7e97; font-size: 10px; letter-spacing: .08em; margin-bottom: 16px; display: inline-flex; align-items: center; gap: 7px; }
  .pill-label::before { content: ''; height: 5px; width: 5px; background: #8fa6c7; border-radius: 50%; }
  .hero h2 { font-size: clamp(26px, 2.5vw, 38px); line-height: 1.65; font-weight: 750; letter-spacing: .07em; }
  .hero-description { color: #728097; font-size: 12px; line-height: 2; margin: 13px 0 23px; }
  .hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 17px; }
  .hero-art { width: 100%; max-width: 380px; justify-self: end; animation: float-in 1s both, gentle-float 6s 1s ease-in-out infinite; }
  .btn { min-height: 46px; display: inline-flex; justify-content: center; align-items: center; gap: 9px; border-radius: 9px; font-weight: 600; font-size: 12px; padding: 13px 20px; transition: background .2s, transform .2s, box-shadow .2s; white-space: nowrap; }
  .btn:hover { transform: translateY(-1px); }
  .btn:active { transform: translateY(1px); }
  .btn-primary { background: var(--navy); color: #fff; box-shadow: 0 4px 10px #172c5010; }
  .btn-primary:hover { background: var(--navy-hover); box-shadow: 0 6px 15px #172c501a; }
  .btn-secondary { background: #fff; border: 1px solid #dfe5ee; color: #4b5c76; }
  .btn-secondary:hover { background: #f4f6f9; }
  .btn-subtle { background: var(--soft); color: #526683; }
  .btn-text { padding: 8px 0; font-size: 11px; font-weight: 500; color: #5d6e87; }
  .btn-danger { color: var(--red); background: #fbf0ef; }
  .btn-wide { width: 100%; }
  .icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 9px; color: #8996aa; flex-shrink: 0; transition: background .2s, color .2s; }
  .icon-btn:hover { background: var(--soft); color: var(--navy); }
  .benefits { display: grid; grid-template-columns: repeat(3, 1fr); margin: 28px 0 40px; }
  .benefit { display: flex; align-items: center; justify-content: center; gap: 10px; border-right: 1px solid #e2e7ee; color: #738197; font-size: 11px; }
  .benefit:last-child { border: 0; }
  .benefit svg { color: #8193ae; }
  .section-heading { display: flex; align-items: center; gap: 12px; justify-content: space-between; margin-bottom: 20px; }
  .section-heading h2 { font-size: 17px; font-weight: 700; }
  .section-heading p { font-size: 10px; color: #8a95a5; margin-top: 4px; }
  .section-title-line { display: flex; align-items: center; gap: 9px; }
  .count-bubble { background: #e9edf4; color: #6e809b; border-radius: 6px; padding: 1px 7px; font-size: 10px; }
  .recent-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 21px; border-bottom: 1px solid var(--line); gap: 14px; }
  .tabs { display: inline-flex; gap: 22px; }
  .tab { font-size: 11px; color: #8a95a5; padding: 12px 1px 15px; border-bottom: 2px solid transparent; min-height: 48px; white-space: nowrap; }
  .tab.active { color: var(--navy); border-bottom-color: var(--navy); font-weight: 700; }
  .search { position: relative; width: 185px; }
  .search svg { position: absolute; left: 11px; top: 12px; color: #98a4b5; }
  .search input { border: 0; background: transparent; padding: 10px 8px 10px 32px; min-height: 40px; font-size: 12px; }
  .search input::placeholder { font-size: 11px; }
  .recent-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
  .recent-card { background: #fff; border: 1px solid #e6eaf0; border-radius: 14px; padding: 23px 24px 19px; text-align: left; position: relative; box-shadow: 0 2px 3px #152b4a02; transition: border-color .2s, transform .25s, box-shadow .25s; display: block; width: 100%; }
  .recent-card:hover { border-color: #bac8da; transform: translateY(-3px); box-shadow: var(--shadow); }
  .recent-card-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
  .list-type-icon { height: 39px; width: 39px; display: grid; place-items: center; border-radius: 11px; color: #758aab; background: #f0f3f8; }
  .status-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 500; color: #78869b; background: #f0f3f7; border-radius: 6px; padding: 3px 8px; white-space: nowrap; }
  .status-badge.shopping { background: #edf2fb; color: #5a7dae; }
  .status-badge.shopping::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: #5a7dae; box-shadow: 0 0 0 3px #5a7dae10; }
  .status-badge.done { color: #628472; background: #edf4ef; }
  .recent-card h3 { font-size: 16px; margin: 16px 0 8px; overflow-wrap: anywhere; }
  .people-line { font-size: 10px; color: #8b97a8; display: flex; align-items: center; gap: 7px; }
  .people-line .person { color: #5d6d84; }
  .mini-progress { height: 4px; border-radius: 5px; background: #eef1f5; overflow: hidden; margin: 21px 0 9px; }
  .mini-progress span { height: 100%; display: block; background: #7d94b5; border-radius: inherit; transition: width .5s; }
  .recent-card-foot { display: flex; justify-content: space-between; font-size: 9px; color: #98a2b1; }
  .empty-card { min-height: 215px; border: 1px dashed #d4dce8; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: #ffffff55; padding: 25px; text-align: center; }
  .empty-icon { width: 42px; height: 42px; display: grid; place-items: center; background: #ecf0f6; color: #8193ad; border-radius: 13px; margin-bottom: 2px; }
  .empty-card h3 { font-size: 13px; font-weight: 600; }
  .empty-card p { font-size: 10px; color: #929daf; }
  .idea-card { border: 1px solid var(--line); border-radius: 14px; padding: 21px 24px 13px; background: #fff; }
  .idea-title { font-size: 11px; color: #7b8799; margin-bottom: 9px; }
  .idea-row { display: flex; align-items: center; gap: 11px; width: 100%; min-height: 48px; padding: 7px 0; border-bottom: 1px solid #f0f2f6; text-align: left; font-size: 11px; }
  .idea-row:last-child { border-bottom: 0; }
  .idea-row .idea-emoji { display: grid; place-items: center; width: 30px; height: 30px; background: #f6f7fa; border-radius: 9px; font-size: 16px; }
  .idea-row > svg:last-child { margin-left: auto; color: #a4afbf; }
  .idea-row:hover { color: #5e81b4; }
  .bottom-note { display: flex; gap: 9px; align-items: center; justify-content: center; margin-top: 28px; padding-top: 18px; font-size: 10px; color: #9aa5b5; }
  .page-footer { display: flex; justify-content: space-between; gap: 14px; font-size: 9px; color: #a4adba; margin-top: 43px; padding-top: 20px; border-top: 1px solid var(--line); }
  .page-footer button { font-size: 9px; color: #8e9aac; padding: 0; min-height: 24px; }
  .page-footer-links { display: flex; gap: 20px; }
  .reveal { animation: rise-in .5s both; }
  .delay-1 { animation-delay: .07s; } .delay-2 { animation-delay: .14s; } .delay-3 { animation-delay: .21s; }
  .form-layout { display: grid; grid-template-columns: minmax(0, 1fr) 255px; gap: 26px; align-items: start; }
  .form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 32px; }
  .form-intro { font-size: 12px; color: #7b889d; margin-bottom: 27px; line-height: 1.9; }
  .field { margin-bottom: 21px; }
  .field label { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; margin-bottom: 8px; }
  .field label .optional { font-size: 10px; font-weight: 400; color: #99a4b4; }
  .field label .required { font-size: 9px; font-weight: 500; color: #8e9db1; background: #f0f3f8; border-radius: 4px; padding: 0 5px; }
  .field-help { font-size: 10px; color: #8c99ab; margin-top: 7px; }
  .field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
  .field-error { color: var(--red); font-size: 12px; margin: 10px 0; padding: 11px 13px; background: #fcf1ef; border-radius: 8px; }
  .checkbox-field { display: flex; align-items: center; gap: 10px; font-size: 12px; cursor: pointer; min-height: 48px; }
  .form-bottom { border-top: 1px solid var(--line); padding-top: 22px; margin-top: 8px; }
  .form-bottom-note { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 10px; color: #8d99ab; margin-top: 12px; }
  .info-card { padding: 25px 23px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
  .info-card h3 { font-size: 13px; margin-bottom: 20px; display: flex; align-items: center; gap: 8px; }
  .steps { list-style: none; padding: 0; }
  .step { display: flex; align-items: flex-start; gap: 11px; margin: 0 0 24px; }
  .step:last-child { margin-bottom: 0; }
  .step-number { color: #8397b4; background: #f0f3f8; width: 25px; height: 25px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; flex-shrink: 0; }
  .step strong { font-size: 11px; display: block; margin-bottom: 3px; }
  .step p { font-size: 10px; color: #8995a7; line-height: 1.9; }
  .back-link { display: inline-flex; gap: 7px; align-items: center; color: #7a8aa0; font-size: 11px; min-height: 40px; margin-bottom: 15px; }
  .list-page .page-heading { margin-bottom: 21px; }
  .list-title { overflow-wrap: anywhere; }
  .list-actions { display: flex; align-items: center; gap: 10px; }
  .list-subtitle { font-size: 11px; color: #8a96a8; margin-top: 6px; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
  .avatar { width: 23px; height: 23px; border-radius: 50%; color: #6f82a1; background: #e8edf5; display: inline-grid; place-items: center; font-size: 10px; font-weight: 600; }
  .avatar.second { background: #eaece7; color: #85917d; }
  .mode-switch { display: inline-flex; padding: 4px; border: 1px solid #e3e8f0; border-radius: 11px; gap: 3px; background: #edf1f6; }
  .mode-btn { display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 11px; padding: 10px 19px; border-radius: 7px; min-height: 40px; color: #8a96a8; }
  .mode-btn.active { background: #fff; color: var(--navy); box-shadow: 0 2px 5px #172c5008; font-weight: 600; }
  .list-layout { display: grid; grid-template-columns: minmax(0, 1fr) 258px; align-items: start; gap: 25px; margin-top: 23px; }
  .list-main { min-width: 0; }
  .progress-panel { border: 1px solid #e2e8f1; border-radius: 14px; background: #fff; padding: 20px 23px; position: sticky; top: 12px; z-index: 20; box-shadow: 0 4px 15px #172c5003; }
  .progress-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .progress-title { font-size: 12px; font-weight: 500; }
  .progress-title strong { font-size: 25px; font-weight: 700; color: var(--navy); margin-right: 3px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
  .progress-title small { font-size: 11px; color: #93a0b2; margin-left: 7px; }
  .live-indicator { font-size: 9px; color: #84938b; display: flex; align-items: center; gap: 5px; white-space: nowrap; }
  .live-dot { width: 5px; height: 5px; background: #7eaa8d; border-radius: 50%; box-shadow: 0 0 0 3px #7eaa8d0b; }
  .live-indicator.offline { color: #b08350; }
  .live-indicator.offline .live-dot { background: #b08350; }
  .progress-track { height: 7px; background: #edf1f6; overflow: hidden; border-radius: 8px; display: flex; margin: 12px 0 10px; }
  .progress-fill { background: #6f89af; height: 100%; transition: width .4s ease; }
  .progress-fill.missing { background: #d6b989; }
  .progress-fill.skipped { background: #b7c0cc; }
  .progress-labels { font-size: 9px; color: #8a97a9; display: flex; gap: 14px; flex-wrap: wrap; }
  .legend { display: flex; align-items: center; gap: 5px; }
  .legend::before { content: ''; height: 5px; width: 5px; border-radius: 50%; background: #6f89af; }
  .legend.missing::before { background: #d6b989; }
  .legend.skipped::before { background: #b7c0cc; }
  .list-toolbar { display: flex; align-items: center; justify-content: space-between; margin: 15px 0 0; border-bottom: 1px solid var(--line); gap: 10px; }
  .list-toolbar .tabs { gap: 20px; }
  .list-toolbar .tab { font-size: 10px; }
  .list-toolbar-count { font-size: 9px; color: #a0aabb; white-space: nowrap; }
  .items { display: grid; gap: 10px; margin: 15px 0 20px; }
  .item-row { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 15px 15px 15px 12px; min-height: 91px; transition: background .25s, border-color .25s, opacity .25s; position: relative; }
  .item-row.priority { border-left: 3px solid #caa475; padding-left: 10px; }
  .item-row.bought { background: #f4f7f5; border-color: #e3ece5; }
  .item-row.not_found { background: #fcf9f4; border-color: #eee6d9; }
  .item-row.skipped { background: #f3f4f7; }
  .item-check { width: 49px; min-width: 49px; height: 56px; display: grid; place-items: center; border-radius: 9px; }
  .check-circle { width: 29px; height: 29px; border: 1.5px solid #cfdae6; border-radius: 9px; display: grid; place-items: center; color: transparent; transition: background .2s, border-color .2s, transform .2s; }
  .item-check:hover .check-circle { border-color: #7d96b8; background: #f2f5fa; transform: scale(1.06); }
  .bought .check-circle { background: #638972; border-color: #638972; color: #fff; animation: check-pop .3s; }
  .not_found .check-circle { color: #b08e59; background: #f5eddc; border-color: #dfc99f; }
  .skipped .check-circle { color: #9ba8b8; background: #e5e9ef; border-color: #d2dbe5; }
  .item-body { flex: 1; min-width: 0; text-align: left; padding: 5px 0; align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
  .item-title-line { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; }
  .item-name { font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
  .bought .item-name { text-decoration: line-through; text-decoration-color: #93aa9a; color: #80938a; }
  .skipped .item-name { text-decoration: line-through; color: #93a0af; }
  .item-detail { color: #8d99aa; font-size: 10px; margin-top: 3px; overflow-wrap: anywhere; }
  .item-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; color: #95a1b1; font-size: 9px; margin-top: 6px; }
  .quantity { color: #6c7d96; font-size: 9px; background: #eff2f7; padding: 1px 7px; border-radius: 4px; max-width: 100%; overflow-wrap: anywhere; }
  .priority-badge { color: #af8653; font-size: 8px; background: #f8efdf; border-radius: 4px; padding: 1px 5px; white-space: nowrap; }
  .new-badge { font-size: 8px; font-weight: 700; color: #5476aa; background: #eaf0fa; padding: 1px 5px; border-radius: 4px; animation: rise-in .3s; }
  .missing-btn { font-size: 9px; color: #95a0b0; border: 1px solid #e6eaf0; border-radius: 7px; min-height: 42px; padding: 8px 9px; flex-shrink: 0; background: #fff; }
  .missing-btn:hover, .not_found .missing-btn { color: #a5814b; border-color: #d8c39f; background: #f9f2e6; }
  .row-edit { color: #a1acba; width: 32px; height: 44px; display: grid; place-items: center; flex-shrink: 0; border-radius: 7px; }
  .row-edit:hover { background: var(--soft); color: var(--navy); }
  .item-row.pending-save { opacity: .7; }
  .quick-add { background: #fff; border: 1px solid #dfe6ef; border-radius: 12px; padding: 6px; display: flex; align-items: center; gap: 5px; margin-top: 14px; }
  .quick-add > svg { margin-left: 10px; color: #9aabc0; }
  .quick-add input { min-width: 0; border: 0; padding: 8px; background: transparent; min-height: 44px; font-size: 13px; }
  .quick-add input:focus { box-shadow: none; }
  .quick-add input::placeholder { font-size: 11px; }
  .quick-add .btn { min-height: 42px; padding: 9px 15px; font-size: 10px; }
  .add-detail-link { font-size: 10px; color: #8a9bb3; display: flex; align-items: center; gap: 5px; padding: 6px 4px; margin-top: 6px; min-height: 40px; }
  .list-side { display: grid; gap: 17px; }
  .detail-card { background: #fff; padding: 22px 22px 21px; border: 1px solid var(--line); border-radius: 14px; }
  .detail-card-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
  .detail-card h3 { font-size: 12px; font-weight: 600; }
  .detail-card-heading .icon-btn { height: 26px; width: 26px; }
  .detail-line { display: flex; align-items: flex-start; gap: 10px; font-size: 11px; margin: 16px 0 0; color: #65768f; }
  .detail-line > svg { color: #9aabc1; margin-top: 2px; }
  .detail-line small { display: block; color: #9ba5b3; font-size: 9px; margin-bottom: 2px; }
  .detail-line p { white-space: pre-wrap; overflow-wrap: anywhere; }
  .shop-action-card { background: #edf1f7; padding: 23px 21px; border: 1px solid #e1e7f1; border-radius: 14px; text-align: center; }
  .shop-action-card h3 { font-size: 12px; margin-bottom: 8px; }
  .shop-action-card p { color: #8391a7; font-size: 10px; line-height: 1.9; margin-bottom: 18px; }
  .shop-action-card .btn { font-size: 11px; padding-inline: 12px; }
  .tip-card { padding: 4px 12px; display: flex; gap: 9px; color: #9aa5b5; font-size: 9px; line-height: 1.9; }
  .tip-card svg { margin-top: 3px; }
  .demo-banner { display: flex; align-items: center; justify-content: space-between; gap: 15px; border: 1px solid #d8e3f1; background: #edf3fb; color: #7186a4; padding: 10px 16px; font-size: 10px; border-radius: 9px; margin-bottom: 23px; }
  .demo-banner button { color: #4b6c9c; font-weight: 600; font-size: 10px; min-height: 28px; white-space: nowrap; }
  .connection-banner { padding: 10px 15px; background: #faf1e4; color: #a17c4d; border-radius: 9px; margin: 12px 0; font-size: 11px; }
  .list-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 43px 18px 33px; gap: 10px; }
  .list-empty .empty-icon { width: 52px; height: 52px; }
  .list-empty h3 { font-size: 13px; margin-top: 6px; }
  .list-empty p { color: #95a2b4; font-size: 11px; line-height: 1.9; }
  .summary-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 34px 32px; text-align: center; margin-bottom: 22px; }
  .success-emblem { display: inline-grid; width: 65px; height: 65px; border-radius: 22px; background: #eef4ef; color: #6f927a; margin-bottom: 17px; animation: check-pop .5s; }
  .success-emblem svg { margin: auto; }
  .summary-card h2 { font-size: 23px; margin-bottom: 9px; letter-spacing: .05em; }
  .summary-card > p { font-size: 11px; color: #8c99aa; }
  .summary-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 25px 0; }
  .summary-stat { padding: 18px 12px; border-radius: 11px; background: #f4f6f9; }
  .summary-stat strong { display: block; font-size: 27px; color: #5e779c; line-height: 1.3; font-variant-numeric: tabular-nums; }
  .summary-stat small { color: #91a0b4; font-size: 10px; }
  .summary-stat.missing { background: #fbf7f0; }
  .summary-stat.missing strong { color: #b2915e; }
  .total-amount { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 20px; gap: 15px; font-size: 11px; color: #7f8da2; }
  .total-amount strong { color: var(--navy); font-size: 26px; font-variant-numeric: tabular-nums; }
  .total-amount strong small { font-size: 12px; margin-left: 4px; }
  .summary-group-title { font-size: 11px; margin: 20px 0 10px; color: #7e8da3; display: flex; align-items: center; gap: 7px; }
  .guide-hero { padding: 40px 34px; border-radius: 18px; background: #edf1f7; text-align: center; margin-bottom: 25px; }
  .guide-hero .brand { margin-bottom: 20px; }
  .guide-hero h2 { font-size: 25px; line-height: 1.9; letter-spacing: .08em; }
  .guide-hero p { margin-top: 13px; font-size: 12px; color: #8391a5; line-height: 2; }
  .guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; }
  .guide-step { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 28px 22px; }
  .guide-step .step-number { margin-bottom: 22px; width: 30px; height: 30px; }
  .guide-step > svg { color: #7f96b5; margin-bottom: 16px; }
  .guide-step h3 { font-size: 13px; margin-bottom: 11px; }
  .guide-step p { color: #8c99aa; font-size: 11px; line-height: 2; }
  .faq { margin-top: 30px; }
  .faq h2 { font-size: 16px; margin-bottom: 18px; }
  .faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
  .faq summary { cursor: pointer; font-size: 12px; color: #5a6b84; min-height: 27px; }
  .faq details p { font-size: 11px; color: #8693a6; margin: 14px 0 4px; line-height: 2; }
  .error-page { text-align: center; padding: 70px 20px; }
  .error-page .empty-icon { margin: 0 auto 22px; width: 66px; height: 66px; }
  .error-page h1 { font-size: 22px; margin-bottom: 14px; }
  .error-page p { color: #8b98aa; font-size: 12px; margin-bottom: 23px; }
  .error-page form { max-width: 290px; margin: 22px auto; }
  .pin-input { text-align: center; letter-spacing: .6em; font-size: 27px; padding-left: 29px; margin-bottom: 15px; }
  .loading { min-height: 300px; display: flex; align-items: center; justify-content: center; gap: 10px; color: #8b9ab0; font-size: 12px; }
  .spinner { height: 19px; width: 19px; border: 2px solid #dbe3ef; border-top-color: #708bad; border-radius: 50%; animation: spin .8s linear infinite; }
  dialog { width: min(510px, calc(100% - 32px)); max-height: calc(100dvh - 48px); border: 1px solid #e4e9f0; border-radius: 20px; padding: 0; color: var(--ink); box-shadow: 0 30px 100px #0c20333b; overflow-y: auto; background: #fff; }
  dialog[open] { animation: modal-in .25s both; }
  dialog::backdrop { background: #11244162; backdrop-filter: blur(5px); }
  .modal-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px 12px 27px; position: sticky; top: 0; background: #fff; z-index: 2; }
  .modal-header h2 { font-size: 16px; }
  .modal-body { padding: 3px 27px 27px; }
  .modal-description { font-size: 11px; color: #8b98aa; line-height: 1.9; margin-bottom: 23px; }
  .modal-actions { display: flex; gap: 10px; margin-top: 20px; }
  .modal-actions .btn-primary { flex: 1; }
  .share-visual { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 19px; color: #6f87aa; background: #edf2f8; margin: 3px auto 16px; }
  .share-heading { text-align: center; font-size: 18px; margin-bottom: 8px; }
  .share-description { text-align: center; font-size: 11px; color: #8795a9; line-height: 1.9; margin-bottom: 22px; }
  .share-link { display: flex; align-items: center; border: 1px solid #e0e6ef; background: #f6f8fb; border-radius: 10px; padding: 6px 6px 6px 13px; gap: 6px; margin-bottom: 14px; }
  .share-link input { min-width: 0; border: 0; background: transparent; padding: 6px 0; min-height: 36px; font-size: 10px; color: #8291a7; }
  .share-link .btn { min-height: 36px; padding: 9px 12px; font-size: 10px; }
  .share-warning { display: flex; align-items: flex-start; gap: 7px; font-size: 10px; color: #98a3b3; margin: 15px 0 0; line-height: 1.9; }
  .share-warning svg { margin-top: 3px; }
  .complete-info { display: flex; gap: 14px; margin-bottom: 23px; }
  .complete-info > div { flex: 1; padding: 16px; border-radius: 11px; background: #f4f6f9; text-align: center; }
  .complete-info strong { display: block; font-size: 23px; color: #6e83a1; }
  .complete-info small { font-size: 10px; color: #94a0b0; }
  .pending-warning { padding: 12px 14px; background: #faf3e8; border-radius: 8px; font-size: 11px; color: #a18356; margin-bottom: 20px; }
  .danger-zone { padding-top: 17px; margin-top: 23px; border-top: 1px solid var(--line); }
  .danger-zone .btn { font-size: 10px; }
  .toasts { position: fixed; bottom: 28px; left: calc(50% + 116px); transform: translateX(-50%); z-index: 200; pointer-events: none; width: max-content; max-width: calc(100% - 32px); display: grid; gap: 8px; }
  .toast { display: flex; align-items: center; gap: 10px; background: #203858; color: #fff; border: 1px solid #ffffff15; box-shadow: 0 8px 24px #172c5026; padding: 13px 20px; border-radius: 11px; font-size: 11px; animation: toast-in .3s both; pointer-events: auto; }
  .toast.error { background: #886453; }
  .toast button { color: #dae5f2; text-decoration: underline; margin-left: 12px; padding: 6px; font-size: 11px; }
  .toast.leaving { opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s; }
  .mobile-shop-action { display: none; }
  .nowrap { white-space: nowrap; }
  .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0; }
  @keyframes rise-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
  @keyframes float-in { from { opacity: 0; transform: translateY(14px) rotate(-3deg); } to { opacity: 1; transform: translateY(0) rotate(0); } }
  @keyframes gentle-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
  @keyframes modal-in { from { opacity: 0; transform: translateY(15px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
  @keyframes check-pop { 0% { transform: scale(.82); } 60% { transform: scale(1.08); } 100% { transform: scale(1); } }
  @keyframes toast-in { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }
  @keyframes spin { to { transform: rotate(360deg); } }
}
@layer responsive {
  @media (min-width: 1500px) { .content { padding-top: 48px; } .hero { min-height: 350px; } }
  @media (max-width: 1200px) {
    .app-shell { grid-template-columns: 204px minmax(0, 1fr); }
    .sidebar { padding-inline: 17px; }
    .content { padding: 34px 32px 28px; }
    .topbar { padding-inline: 32px; }
    .hero { padding-left: 29px; grid-template-columns: 1.2fr 1fr; }
    .hero h2 { font-size: 29px; }
    .hero-actions { gap: 12px; }
    .hero .btn-primary { padding-inline: 16px; font-size: 11px; }
    .list-layout { grid-template-columns: minmax(0, 1fr) 223px; gap: 18px; }
    .detail-card { padding: 20px 17px; }
    .form-layout { grid-template-columns: minmax(0, 1fr) 220px; gap: 20px; }
    .form-card { padding: 26px; }
    .toasts { left: calc(50% + 102px); }
  }
  @media (max-width: 1000px) {
    .app-shell { grid-template-columns: 184px minmax(0, 1fr); }
    .sidebar { padding-inline: 13px; }
    .brand-word { font-size: 22px; }
    .sidebar .brand { gap: 5px; }
    .nav-link { padding-inline: 12px; font-size: 12px; }
    .content { padding: 30px 26px; }
    .topbar { padding-inline: 26px; min-height: 72px; }
    .hero h2 { font-size: 26px; }
    .hero { min-height: 310px; grid-template-columns: 1.3fr 1fr; padding-inline: 26px 10px; }
    .hero-art { width: 120%; max-width: none; margin-right: -10px; }
    .hero-description { font-size: 11px; }
    .benefit { font-size: 10px; gap: 7px; }
    .recent-card { padding: 18px; }
    .list-layout { grid-template-columns: minmax(0, 1fr); }
    .list-side { grid-template-columns: 1fr 1fr; }
    .tip-card { display: none; }
    .form-layout { grid-template-columns: 1fr; }
    .form-layout > aside { display: none; }
    .toasts { left: calc(50% + 92px); }
  }
  @media (max-width: 760px) {
    .app-shell { display: block; }
    .sidebar, .topbar { display: none; }
    .mobile-header { display: flex; justify-content: space-between; align-items: center; height: 74px; padding: env(safe-area-inset-top, 0px) 23px 0; background: #fff; border-bottom: 1px solid var(--line); }
    .mobile-header .brand-mark { width: 29px; height: 35px; }
    .mobile-header .brand-mark svg { width: 29px; height: 32px; }
    .mobile-header .brand { gap: 8px; }
    .mobile-header .brand-word { font-size: 22px; }
    .mobile-header .brand-sub { font-size: 6px; margin-top: 3px; }
    .mobile-header .mobile-header-note { font-size: 9px; color: #8f9bae; display: flex; align-items: center; gap: 5px; }
    .content { padding: 29px 24px 112px; max-width: 620px; }
    .page-eyebrow { font-size: 8px; margin-bottom: 7px; }
    .page-heading { margin-bottom: 23px; align-items: center; gap: 10px; }
    .page-heading h1 { font-size: 23px; }
    .date-label { font-size: 9px; }
    .date-label svg { display: none; }
    .hero { padding: 29px 26px 22px; min-height: auto; grid-template-columns: 1.2fr 1fr; border-radius: 16px; }
    .hero h2 { font-size: 27px; line-height: 1.7; }
    .pill-label { font-size: 8px; margin-bottom: 15px; }
    .hero-description { font-size: 12px; line-height: 1.9; margin-top: 12px; margin-bottom: 18px; }
    .hero-actions { flex-direction: column; align-items: flex-start; gap: 8px; }
    .hero-art { width: 145%; margin-right: -26px; }
    .hero .btn-primary { font-size: 11px; min-height: 46px; padding: 11px 13px; gap: 7px; }
    .hero .btn-primary svg { width: 14px; }
    .hero .btn-text { min-height: 40px; font-size: 10px; padding: 4px 0; }
    .benefits { margin: 23px 0 32px; }
    .benefit { flex-direction: column; gap: 6px; font-size: 9px; text-align: center; }
    .benefit svg { width: 17px; height: 17px; }
    .section-heading { margin-bottom: 13px; }
    .section-heading h2 { font-size: 16px; }
    .section-heading p { font-size: 10px; margin-top: 3px; }
    .section-heading .btn-text { font-size: 9px; gap: 4px; }
    .recent-toolbar { margin-bottom: 16px; gap: 10px; }
    .tabs { gap: 22px; }
    .tab { font-size: 12px; padding-bottom: 12px; }
    .search { width: 120px; }
    .search input { font-size: 16px; padding-left: 26px; padding-right: 2px; }
    .search svg { width: 13px; left: 7px; }
    .search input::placeholder { font-size: 9px; }
    .recent-grid { gap: 12px; }
    .recent-card { padding: 17px; border-radius: 12px; }
    .recent-card h3 { font-size: 14px; margin-top: 12px; }
    .people-line { font-size: 9px; flex-wrap: wrap; gap: 4px; }
    .list-type-icon { height: 33px; width: 33px; border-radius: 9px; }
    .status-badge { font-size: 8px; padding: 3px 6px; }
    .empty-card { padding: 24px 15px; min-height: 202px; grid-column: 1 / -1; }
    .empty-card h3 { font-size: 12px; }
    .idea-card { grid-column: 1 / -1; padding: 18px 20px 9px; }
    .idea-title { font-size: 10px; }
    .idea-row { font-size: 10px; }
    .bottom-note { font-size: 8px; align-items: flex-start; text-align: left; margin-top: 23px; padding-top: 5px; }
    .bottom-note svg { margin-top: 1px; }
    .page-footer { margin-top: 29px; padding-top: 17px; font-size: 8px; }
    .page-footer button { font-size: 8px; }
    .page-footer-links { gap: 12px; }
    .mobile-nav { display: grid; grid-template-columns: 1fr 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 9px 14px max(9px, env(safe-area-inset-bottom)); border-top: 1px solid #e6ebf2; background: #ffffffed; backdrop-filter: blur(16px); }
    .mobile-nav a { min-height: 47px; color: #9ba6b6; font-size: 8px; display: flex; flex-direction: column; gap: 4px; align-items: center; justify-content: center; }
    .mobile-nav a.active { color: var(--navy); }
    .mobile-nav .nav-create { position: relative; }
    .mobile-nav .nav-create span { width: 42px; height: 29px; border-radius: 8px; background: var(--navy); color: #fff; display: grid; place-items: center; margin-top: -5px; }
    .form-card { padding: 24px 21px; border-radius: 14px; }
    .field { margin-bottom: 20px; }
    .field label { font-size: 13px; }
    .field-grid { gap: 12px; }
    .form-intro { font-size: 12px; }
    .form-bottom .btn { min-height: 50px; font-size: 12px; }
    .form-bottom-note { font-size: 9px; }
    .form-card input::placeholder { font-size: 11px; }
    .back-link { margin-bottom: 10px; font-size: 10px; }
    .list-page.content { padding-top: 17px; padding-bottom: 175px; }
    .list-page .page-heading { align-items: flex-start; margin-bottom: 19px; gap: 10px; }
    .list-page .page-heading h1 { font-size: 23px; }
    .list-actions { gap: 3px; padding-top: 4px; }
    .list-actions .btn { min-height: 38px; padding: 9px 12px; font-size: 10px; }
    .list-actions .btn svg { width: 14px; }
    .list-actions .icon-btn { width: 34px; height: 38px; }
    .list-subtitle { font-size: 10px; gap: 5px; }
    .avatar { width: 21px; height: 21px; font-size: 9px; }
    .mode-switch { display: flex; width: 100%; }
    .mode-btn { flex: 1; padding: 10px; min-height: 44px; font-size: 12px; }
    .list-layout { gap: 20px; margin-top: 20px; }
    .progress-panel { top: 10px; padding: 17px 18px 13px; border-radius: 12px; box-shadow: 0 4px 20px #172c5007; }
    .progress-title { font-size: 12px; }
    .progress-title strong { font-size: 24px; }
    .progress-title small { font-size: 11px; }
    .live-indicator { font-size: 8px; }
    .progress-labels { font-size: 8px; }
    .progress-track { margin-top: 11px; }
    .list-toolbar .tabs { gap: 23px; }
    .list-toolbar .tab { font-size: 12px; }
    .list-toolbar-count { font-size: 8px; }
    .items { gap: 9px; margin-top: 13px; }
    .item-row { padding: 10px 10px 10px 5px; gap: 7px; min-height: 89px; border-radius: 12px; }
    .item-row.priority { padding-left: 3px; }
    .item-name { font-size: 15px; }
    .item-title-line { gap: 5px; }
    .item-detail { font-size: 11px; }
    .item-meta { font-size: 10px; gap: 6px; }
    .quantity { font-size: 10px; }
    .priority-badge, .new-badge { font-size: 9px; }
    .item-check { min-width: 48px; width: 48px; height: 60px; }
    .check-circle { width: 30px; height: 30px; }
    .missing-btn { min-height: 48px; font-size: 11px; padding-inline: 9px; }
    .row-edit { width: 25px; min-height: 48px; }
    .row-edit svg { width: 13px; }
    .requester-mode .missing-btn { display: none; }
    .shopper-mode .row-edit { display: none; }
    .quick-add { padding: 5px; }
    .quick-add input { min-height: 44px; font-size: 16px; }
    .quick-add .btn { min-height: 44px; }
    .list-side { grid-template-columns: 1fr; }
    .shop-action-card { display: none; }
    .detail-card { padding: 22px; }
    .detail-card h3 { font-size: 12px; }
    .detail-card-heading { margin-bottom: 8px; }
    .detail-card .detail-line { font-size: 12px; }
    .detail-line small { font-size: 10px; }
    .add-detail-link { font-size: 11px; }
    .share-link input { font-size: 16px; }
    .mobile-shop-action { display: block; position: fixed; left: 0; right: 0; bottom: calc(65px + env(safe-area-inset-bottom)); padding: 9px 24px; background: linear-gradient(0deg, #f8f9fc 78%, #f8f9fc00); z-index: 35; }
    .mobile-shop-action .btn { min-height: 49px; font-size: 12px; box-shadow: 0 5px 14px #172c5018; }
    .demo-banner { font-size: 9px; padding: 8px 12px; gap: 8px; margin-bottom: 19px; }
    .demo-banner button { font-size: 9px; }
    .summary-card { padding: 28px 22px; }
    .summary-card h2 { font-size: 21px; }
    .summary-card > p { font-size: 10px; }
    .summary-stats { margin: 23px 0; }
    .summary-stat strong { font-size: 25px; }
    .total-amount { font-size: 10px; }
    .total-amount strong { font-size: 24px; }
    .guide-hero { padding: 30px 19px; }
    .guide-hero h2 { font-size: 23px; }
    .guide-hero p { font-size: 11px; }
    .guide-grid { grid-template-columns: 1fr; gap: 12px; }
    .guide-step { padding: 25px; }
    .guide-step .step-number { display: inline-grid; margin-right: 15px; margin-bottom: 20px; }
    .guide-step > svg { margin-bottom: 20px; }
    .guide-step p { font-size: 11px; }
    .toasts { left: 50%; bottom: calc(85px + env(safe-area-inset-bottom)); }
    .toast { font-size: 10px; padding: 12px 16px; }
    dialog { max-height: calc(100dvh - 28px); border-radius: 18px; }
    .modal-header { padding: 18px 15px 11px 22px; }
    .modal-header h2 { font-size: 15px; }
    .modal-body { padding: 3px 22px 25px; }
    .modal-actions .btn { min-height: 49px; }
    .error-page { padding: 50px 0; }
    .error-page h1 { font-size: 19px; }
    .error-page p { font-size: 11px; }
  }
  @media (max-width: 420px) {
    .hero { grid-template-columns: minmax(0, 1fr); padding: 28px 24px 25px; }
    .hero h2 { font-size: 29px; }
    .hero-description { font-size: 12px; }
    .hero-art { position: absolute; width: 206px; right: -39px; top: 12px; opacity: .93; margin: 0; }
    .hero-copy { position: relative; }
    .hero h2, .hero-description { position: relative; z-index: 2; }
    .hero .pill-label { font-size: 8px; margin-bottom: 17px; }
    .hero h2 { font-size: 27px; }
    .hero-art { width: 180px; top: 95px; right: -43px; opacity: .9; }
    .hero-copy { padding-right: 0; }
    .hero-actions { flex-direction: row; gap: 12px; align-items: center; position: relative; z-index: 2; }
    .hero .btn-text { font-size: 10px; }
    .hero .btn-text svg { width: 10px; }
    .recent-grid { grid-template-columns: 1fr; }
    .recent-card { padding: 21px; }
    .recent-card h3 { font-size: 15px; }
    .recent-card .people-line { font-size: 10px; }
    .content { padding-inline: 21px; }
    .search { width: 110px; }
    .date-label { font-size: 8px; }
    .field-grid { grid-template-columns: 1fr 1fr; }
    .form-card { padding-inline: 19px; }
    .list-page .page-heading h1 { font-size: 21px; }
    .list-actions .btn { padding-inline: 10px; font-size: 9px; gap: 5px; }
    .mobile-shop-action { padding-inline: 21px; }
  }
  @media (max-width: 359px) {
    .content { padding-inline: 17px; }
    .hero { padding-inline: 20px; }
    .hero h2 { font-size: 24px; }
    .hero .btn-primary { font-size: 9px; padding-inline: 10px; }
    .hero .btn-text { font-size: 8px; }
    .search { width: 94px; }
    .tabs { gap: 16px; }
    .list-subtitle { font-size: 9px; }
    .item-name { font-size: 12px; }
    .item-row { gap: 4px; padding-right: 7px; }
    .priority-badge { font-size: 7px; }
    .field-grid { grid-template-columns: 1fr; gap: 0; }
  }
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  }
}
