/* 思い出記録 */
#screen-records{ min-height:calc(100dvh - 74px); background:#FCFBF8; }
.records-head{ padding:calc(18px + env(safe-area-inset-top,0px)) 18px 16px; background:linear-gradient(160deg,#FFFDF9 20%,#F5F1E9); }
.records-head .brand{ font-size:25px; }
.records-head p{ margin:5px 0 0; color:#697386; font-size:11px; }
.records-content{ padding-top:14px; }
.records-stats{ display:grid; grid-template-columns:repeat(4,1fr); gap:7px; margin-bottom:15px; }
.record-stat{ padding:13px 5px; border:1px solid #E0E5ED; border-radius:15px; background:#fff; text-align:center; box-shadow:0 3px 12px rgba(27,44,77,.05); }
.record-stat b,.record-stat small{ display:block; }
.record-stat b{ color:#123F82; font:900 20px 'Zen Maru Gothic',sans-serif; }
.record-stat small{ margin-top:3px; color:#737B89; font-size:9px; }
.records-tools{ margin-bottom:13px; }
.records-search{ width:100%; padding:11px 13px; border:1px solid #DCE1E9; border-radius:12px; background:#fff; color:#222B3A; font-size:12px; }
.records-title{ display:flex; align-items:center; justify-content:space-between; margin:4px 1px 9px; }
.records-title b{ font-size:14px; }.records-title small{ color:#7B8290; font-size:9px; }
.record-card{ display:grid; grid-template-columns:54px 1fr auto; gap:11px; align-items:center; width:100%; margin-bottom:9px; padding:11px; border:1px solid #DEE3EB; border-radius:15px; background:#fff; color:#222B3A; text-align:left; box-shadow:0 3px 12px rgba(27,44,77,.05); }
.record-date{ height:54px; display:flex; flex-direction:column; align-items:center; justify-content:center; border-radius:12px; background:#EDF4FD; color:#123F82; }
.record-date b{ font-size:18px; line-height:1; }.record-date small{ margin-top:4px; font-size:9px; }
.record-main{ min-width:0; }.record-main b,.record-main span,.record-main small{ display:block; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.record-main b{ font-size:13px; }.record-main span{ margin-top:3px; color:#596274; font-size:10px; }.record-main small{ margin-top:5px; color:#31547F; font-size:9px; }
.record-thumb{ width:44px; height:44px; object-fit:cover; border-radius:10px; background:#EEF1F5; }
.record-chevron{ color:#8A93A2; font-size:20px; }
.records-empty{ padding:46px 22px; border:1px dashed #D4DBE6; border-radius:16px; background:#fff; text-align:center; }
.records-empty b{ display:block; color:#23324B; font-size:15px; }.records-empty p{ margin:8px 0 0; color:#727B8B; font-size:11px; line-height:1.7; }
.record-form{ max-height:78dvh; overflow:auto; padding:0 18px 18px; }
.record-source{ margin:3px 0 13px; padding:12px; border:1px solid #CADBF2; border-radius:12px; background:#F4F8FE; }
.record-source b,.record-source small{ display:block; }.record-source b{ font-size:13px; }.record-source small{ margin-top:4px; color:#687386; font-size:9px; }
.record-field{ margin-bottom:12px; }.record-field label{ display:block; margin-bottom:5px; color:#344054; font-size:10px; font-weight:800; }
.record-field input,.record-field textarea{ width:100%; padding:11px; border:1px solid #D7DDE6; border-radius:10px; background:#fff; font-size:12px; }
.record-field textarea{ min-height:86px; resize:vertical; line-height:1.6; }
.record-field-note{ display:block; margin-top:5px; color:#7A8290; font-size:8px; line-height:1.55; }
.record-count{ display:grid; grid-template-columns:38px minmax(0,1fr) 38px; align-items:center; width:100%; max-width:170px; border:1px solid #D7DDE6; border-radius:10px; overflow:hidden; }
.record-count button{ display:grid; place-items:center; width:38px; height:39px; padding:0; border:0; background:#F5F7FA; color:#D52D3A; font-size:20px; font-weight:800; }
.record-count input{ min-width:0; width:100%; height:39px; padding:0; border:0; border-radius:0; text-align:center; font-weight:800; appearance:textfield; -moz-appearance:textfield; }
.record-count input::-webkit-inner-spin-button,.record-count input::-webkit-outer-spin-button{ margin:0; -webkit-appearance:none; }
.record-counter-panel{ margin-bottom:12px; padding:11px; border:1px solid #E0E4EB; border-radius:12px; background:#FAFBFD; }
.record-counter-row{ display:grid; grid-template-columns:1fr 154px; align-items:center; gap:8px; margin-bottom:8px; }
.record-counter-row label{ color:#344054; font-size:10px; font-weight:800; }
.record-counter-row .record-count{ max-width:none; background:#fff; }
.record-counter-row.custom{ padding-top:8px; border-top:1px solid #E2E6ED; }
.record-counter-name{ min-width:0; width:100%; padding:10px; border:1px solid #D7DDE6; border-radius:9px; background:#fff; font-size:10px; }
.record-custom-value{ display:flex; align-items:center; gap:5px; min-width:0; }
.record-custom-value .record-count{ flex:1; min-width:0; }
.record-counter-add{ width:100%; margin:1px 0 6px; padding:9px; border:1px dashed #AABBD3; border-radius:9px; background:#fff; color:#123F82; font-size:10px; font-weight:800; }
.record-counter-remove{ flex:0 0 28px; height:28px; border:0; border-radius:50%; background:#FBEDEF; color:#CF3442; font-size:16px; }
.record-photo-input{ padding:10px!important; border-style:dashed!important; }
.record-photo-grid{ display:flex; gap:7px; flex-wrap:wrap; margin-top:8px; }
.record-photo-item{ position:relative; width:68px; height:68px; }
.record-photo-view{ width:68px; height:68px; padding:0; border:0; border-radius:10px; background:#EEF1F5; overflow:hidden; }
.record-photo-view img{ width:100%; height:100%; object-fit:cover; }
.record-photo-delete{ position:absolute; top:-6px; right:-6px; z-index:2; width:24px; height:24px; padding:0; border:2px solid #fff; border-radius:50%; background:#D93644; color:#fff; box-shadow:0 2px 7px rgba(25,33,50,.2); font-size:15px; line-height:18px; }
.record-photo-viewer{ position:fixed; inset:0; z-index:300; display:flex; align-items:center; justify-content:center; padding:24px; background:rgba(10,15,25,.92); }
.record-photo-viewer img{ display:block; max-width:100%; max-height:88dvh; object-fit:contain; border-radius:12px; }
.record-photo-viewer-close{ position:absolute; top:calc(16px + env(safe-area-inset-top,0px)); right:16px; width:38px; height:38px; border:0; border-radius:50%; background:rgba(255,255,255,.16); color:#fff; font-size:25px; }
.record-form-actions{ display:grid; grid-template-columns:1fr 2fr; gap:8px; position:sticky; bottom:-18px; padding:11px 0 calc(8px + var(--safe-bottom)); background:#fff; }
.record-form-actions button{ padding:12px; border-radius:10px; font-size:12px; font-weight:800; }
.record-form-actions .delete{ border:1px solid #E1E4E9; color:#D32B38; background:#fff; }
.record-form-actions .save{ border:0; color:#fff; background:#123F82; }
.record-detail-head small{ display:block; margin-bottom:3px; color:#7A8494; font-size:9px; font-weight:700; }
.record-detail{ max-height:78dvh; overflow:auto; padding:2px 18px calc(18px + var(--safe-bottom)); }
.record-detail-meta{ margin-bottom:14px; padding:13px; border-radius:13px; background:#F1F6FD; }
.record-detail-meta b,.record-detail-meta span{ display:block; }
.record-detail-meta b{ color:#123F82; font-size:13px; }.record-detail-meta span{ margin-top:5px; color:#657085; font-size:10px; }
.record-detail section{ margin-bottom:14px; }
.record-detail section>small{ display:block; margin-bottom:5px; color:#7A8494; font-size:9px; font-weight:800; }
.record-detail section>p{ margin:0; color:#252E3D; font-size:13px; line-height:1.65; }
.record-detail-counts{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin-bottom:14px; }
.record-detail-counts div{ padding:12px; border:1px solid #E0E5ED; border-radius:12px; background:#fff; }
.record-detail-counts small,.record-detail-counts b{ display:block; }
.record-detail-counts small{ color:#707A8C; font-size:9px; }.record-detail-counts b{ margin-top:4px; color:#123F82; font-size:15px; }
.record-detail-memo{ padding:13px; border-radius:13px; background:#FAF8F3; }
.record-detail-photos{ display:grid; grid-template-columns:repeat(3,1fr); gap:7px; }
.record-detail-photos button{ aspect-ratio:1; padding:0; border:0; border-radius:11px; overflow:hidden; background:#EEF1F5; }
.record-detail-photos img{ width:100%; height:100%; object-fit:cover; }
.record-detail-blank{ margin:8px 0 16px; padding:22px 14px; border:1px dashed #D6DDE7; border-radius:13px; color:#7A8494; font-size:10px; text-align:center; }
.record-detail-edit{ width:100%; padding:12px; border:1px solid #CAD4E2; border-radius:11px; color:#263A5B; background:#fff; font-size:12px; font-weight:800; }
