.lists-page { min-height: 100vh; background: #eaf4f8; }
.lists-shell { width: min(520px, calc(100% - 28px)); margin: 0 auto; padding: 24px 0 32px; color: #426783; }
.back-link { color: #6d9db8; text-decoration: none; font-size: 13px; }
.lists-header { display: flex; align-items: center; gap: 14px; margin: 12px 0 6px; }
.lists-header img { width: 64px; height: 64px; object-fit: contain; }
.lists-header h1 { margin: 0; font-size: 29px; }
.eyebrow { margin: 0 0 2px; color: #7894a4; font: 12px "Yomogi Local", sans-serif; }
.list-group { margin: 12px 0; padding: 12px; border: 1px solid rgba(211,231,239,.85); border-radius: 24px; background: rgba(246,251,253,.9); box-shadow: 0 10px 28px rgba(69,112,122,.08); }
.group-heading { display: flex; width: 100%; align-items: center; justify-content: space-between; padding: 4px 4px 10px; border: 0; color: #426783; background: transparent; text-align: left; cursor: pointer; }
.group-heading strong, .group-heading small { display: block; }
.group-heading strong { font-size: 20px; }
.group-heading small { margin-top: 2px; color: #7894a4; font: 12px "Yomogi Local", sans-serif; }
.chevron { font-size: 24px; transition: transform .2s; }.list-group.is-collapsed .chevron { transform: rotate(-90deg); }
.list-group.is-collapsed > :not(.group-heading-row) { display: none; }
.group-heading-row { display: flex; align-items: flex-start; gap: 8px; }
.group-heading-row .group-heading { width: auto; flex: 1; }
.history-entry { flex: 0 0 auto; margin-top: 4px; padding: 7px 10px; border: 1px solid #c7dfe7; border-radius: 999px; color: #56839a; background: #fff; font: 12px "Yomogi Local", sans-serif; cursor: pointer; }
.add-form { display: grid; grid-template-columns: 1.3fr .9fr auto; gap: 6px; margin-bottom: 8px; }
.add-form input { min-width: 0; padding: 10px 11px; border: 1px solid #c7dfe7; border-radius: 13px; color: #426783; background: #fff; font: 13px "Yomogi Local", sans-serif; }
.add-form button { padding: 8px 12px; border: 0; border-radius: 13px; color: #fff; background: #78a9c7; font: 600 13px "Yomogi Local", sans-serif; cursor: pointer; }
.item-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.restore-item { padding: 5px 8px; border: 1px solid #a8c8d7; border-radius: 10px; color: #56839a; background: #fff; font: 12px "Yomogi Local", sans-serif; cursor: pointer; }
.list-item { display: flex; align-items: center; gap: 9px; padding: 10px 8px; border-radius: 14px; background: #fff; }
.list-item input[type="checkbox"] { width: 19px; height: 19px; accent-color: #78a9c7; }
.list-item-icon { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; overflow: hidden; border-radius: 10px; color: #5f91a7; background: #edf6f4; font-weight: 800; font-size: 17px; }
.list-item-icon img { width: 100%; height: 100%; object-fit: cover; }
.item-copy { min-width: 0; flex: 1; }.item-title { display: block; font-size: 14px; }.item-meta { display: block; margin-top: 2px; color: #7894a4; font-size: 11px; }
.item-category { display: flex; align-items: center; gap: 7px; margin-top: 3px; color: #7894a4; font-size: 11px; }
.item-formal-name { color: #54859b; font-weight: 700; }
.list-item.is-done .item-title { color: #9bb0ba; text-decoration: line-through; }.delete-item { border: 0; color: #a6bbc4; background: transparent; cursor: pointer; }
.lists-status { margin: 14px 0; color: #7894a4; text-align: center; font-size: 12px; }
.list-item { cursor: pointer; }.list-item button,.list-item input { cursor: pointer; }
.history-screen { position: fixed; inset: 0; z-index: 50; display: grid; grid-template-rows: auto minmax(0, 1fr); color: #426783; background: #eaf4f8; }
.history-screen[hidden] { display: none; }
.history-screen-header { display: flex; align-items: center; gap: 13px; padding: max(18px, env(safe-area-inset-top)) 18px 14px; border-bottom: 1px solid #d3e7ef; background: rgba(248,252,253,.96); }
.history-screen-header button { width: 38px; height: 38px; border: 0; border-radius: 50%; color: #426783; background: #e2f0f5; font-size: 22px; cursor: pointer; }
.history-screen-header p { margin: 0 0 2px; color: #7894a4; font: 12px "Yomogi Local", sans-serif; }.history-screen-header h1 { margin: 0; font-size: 23px; }
.history-scroll { overflow-y: auto; overscroll-behavior: contain; padding: 18px max(14px, calc((100vw - 520px) / 2)) calc(28px + env(safe-area-inset-bottom)); }
.history-intro,.history-empty,.history-more { margin: 0 0 14px; color: #7894a4; font: 13px/1.55 "Yomogi Local", sans-serif; }.history-more { padding: 12px 0 4px; text-align: center; }
.history-screen-list .list-item { background: #f9fcfd; box-shadow: 0 5px 18px rgba(69,112,122,.06); }
.popopo-modal { position: fixed; inset: 0; z-index: 30; display: grid; align-items: flex-start; place-items: center; overflow: auto; padding: 24px 12px; background: rgba(66,103,131,.18); }.popopo-modal[hidden] { display: none; }
.modal-card { box-sizing: border-box; width: min(340px, calc(100vw - 24px)); max-height: calc(100vh - 48px); overflow: auto; padding: 22px 18px; border: 1px solid #d3e7ef; border-radius: 25px; color: #426783; background: #f8fcf6; box-shadow: 0 16px 40px rgba(69,112,122,.18); text-align: center; }.modal-card * { box-sizing: border-box; }.modal-card > img { width: 58px; height: 58px; object-fit: contain; }.modal-card > p { margin: 8px 0 16px; font: 600 16px/1.5 "Yomogi Local", sans-serif; text-align: left; }.modal-options { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; }.modal-options button { padding: 9px 13px; border: 0; border-radius: 999px; color: #fff; background: #5a96e9; font: 600 13px "Yomogi Local", sans-serif; }.modal-options button.cancel { color: #5f8498; background: #edf5f7; }
.list-identity-detail { display: grid; width: 100%; gap: 10px; text-align: left; }.list-identity-detail h3 { margin: 0; font-size: 16px; }.list-identity-detail .identity-image { display: block; width: 100px; height: 100px; margin: 0 auto; border-radius: 18px; object-fit: contain; background: #fff; }.list-identity-detail .identity-placeholder { display: grid; width: 100px; height: 100px; margin: 0 auto; place-items: center; border-radius: 18px; color: #78a9c7; background: #edf6f4; font-size: 32px; }.list-identity-detail .identity-status { margin: 0; color: #58788c; font-size: 13px; }.identity-editor { display: grid; gap: 9px; text-align: left; }.identity-editor textarea { width: 100%; min-height: 80px; resize: vertical; padding: 10px; border: 1px solid #bad2df; border-radius: 12px; color: #315d7b; background: #fff; font: 14px/1.5 "Yomogi Local", sans-serif; }.identity-editor .check-row { display: flex; gap: 8px; align-items: center; padding: 8px; border-radius: 12px; background: #fff; font-size: 13px; }.identity-editor .check-row img { width: 48px; height: 48px; border-radius: 10px; object-fit: contain; }.identity-preview { width: 100%; text-align: center; }.identity-preview img { display: block; width: min(180px, 100%); height: 180px; margin: 0 auto 10px; border-radius: 16px; object-fit: contain; background: #fff; }
.identity-editor input,.identity-editor select { width: 100%; min-width: 0; padding: 10px; border: 1px solid #bad2df; border-radius: 12px; color: #315d7b; background: #fff; font: 14px "Yomogi Local", sans-serif; }
@media (max-width: 440px) { .add-form { grid-template-columns: 1fr 1fr; }.add-form button { grid-column: 1 / -1; }.lists-header h1 { font-size: 25px; } }
