/* Lucian UX/UI Prompt #039 · MIT License (c) 2026 Seokwoooo · https://lucianlabs.dev/uxui-prompt/#039 */
/* Lucian UX/UI Prompt #070 · MIT License (c) 2026 Seokwoooo · https://lucianlabs.dev/uxui-prompt/#070 */
/* Lucian UX/UI Prompt #075 · MIT License (c) 2026 Seokwoooo · https://lucianlabs.dev/uxui-prompt/#075 */
/* fade-slide, ui-modal, list-stagger: TakayuStudio motion-parts を操作画面向けに短く調整 */
:root{color-scheme:light;--page:#f4f5f1;--surface:#fff;--surface-soft:#f7f9f7;--ink:#1f3431;--muted:#667c76;--border:#dce7e1;--primary:#175c54;--primary-dark:#10473f;--accent:#cc963f;--soft:#e8f2ee;--danger:#b84c49;--shadow:0 10px 34px rgba(26,61,49,.06);--ux-ease:cubic-bezier(.2,.8,.2,1);--ux-spring:cubic-bezier(.34,1.45,.64,1);font-family:-apple-system,BlinkMacSystemFont,'Hiragino Kaku Gothic ProN','Noto Sans JP','Yu Gothic',Meiryo,sans-serif}
.menu-toggle{display:none}.field-label{display:block;padding:0;margin:0 0 7px;font-weight:750;font-size:13px}
@media(min-width:681px) and (hover:hover) and (pointer:fine){.navigation .nav-link[data-view="record"]{display:none}}
*{box-sizing:border-box}html{min-width:320px;scroll-behavior:smooth}body{margin:0;background:var(--page);color:var(--ink);font-size:15px;line-height:1.6;-webkit-font-smoothing:antialiased}button,input,select,textarea{font:inherit;color:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}a{color:inherit;text-decoration:none}[hidden]{display:none!important}:focus-visible{outline:3px solid #dbab59;outline-offset:3px}
.topbar{background:#174d48;color:#fff;border-bottom:1px solid rgba(255,255,255,.1)}.topbar-inner{max-width:1440px;margin:auto;min-height:76px;padding:0 36px;display:flex;align-items:center;justify-content:space-between;gap:20px}.brand{display:flex;align-items:center;gap:13px}.brand-mark{width:40px;height:40px;display:grid;place-items:center;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.2);border-radius:12px}.brand-mark svg{width:26px;height:26px;fill:none;stroke:#def3eb;stroke-width:2.4;stroke-linecap:round}.brand strong{font-size:18px;letter-spacing:.06em;display:block;line-height:1.2}.brand small{display:block;color:#c3ded6;font-size:10px;margin-top:3px;letter-spacing:.12em}.local-indicator{font-size:12px;color:#ddede7;display:flex;align-items:center;gap:8px}.local-dot,.status-dot{width:8px;height:8px;border-radius:50%;background:#7ec7a7;display:inline-block;box-shadow:0 0 0 4px rgba(126,199,167,.15)}
.shell{max-width:1440px;margin:auto;display:grid;grid-template-columns:220px minmax(0,1fr);min-height:calc(100vh - 132px)}.navigation{padding:36px 18px;background:#edf2ee;border-right:1px solid var(--border);display:flex;flex-direction:column;gap:6px}.nav-link{border:0;background:none;color:#617770;text-align:left;display:flex;align-items:center;gap:11px;width:100%;padding:12px 14px;border-radius:10px;font-weight:700;transition:background .25s var(--ux-ease),color .25s var(--ux-ease),transform .25s var(--ux-ease)}.nav-link:hover{background:#e1ebe5;transform:translateX(3px)}.nav-link.active{background:#dcece4;color:#195b50}.nav-link>span:first-child{font-size:19px;width:22px;text-align:center}.nav-count{margin-left:auto;background:#d1e4da;border-radius:20px;font-size:11px;min-width:22px;text-align:center}.main-content{padding:42px clamp(24px,5vw,72px) 70px;min-width:0}.view.active{animation:fade-slide .32s var(--ux-ease) both}@keyframes fade-slide{from{opacity:0;transform:translateY(9px)}to{opacity:1;transform:none}}.page-heading{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:27px}.eyebrow{color:#8aab9f;font-size:10px;font-weight:800;letter-spacing:.16em;margin:0 0 4px}.page-heading h1{margin:0;font-size:clamp(24px,3vw,32px);letter-spacing:.04em;line-height:1.35}.intro{color:var(--muted);margin:7px 0 0;font-size:13px}.record-layout{display:grid;grid-template-columns:minmax(0,700px) minmax(240px,320px);align-items:start;gap:22px}.record-main{display:grid;gap:16px}.card{background:var(--surface);border:1px solid var(--border);border-radius:16px;box-shadow:var(--shadow);padding:24px}.card-title{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:20px}.card-title h2,.task-heading h2,.data-card h2{font-size:17px;line-height:1.35;margin:0;letter-spacing:.02em}.card-subtitle{font-size:12px;color:var(--muted);margin:5px 0 0}.tag{background:#eef5f0;border-radius:100px;padding:5px 10px;color:#678276;font-size:10px;font-weight:700;white-space:nowrap}.current-card{background:#e5f1e9;border:1px solid #c8ded1;border-radius:16px;padding:22px 24px;position:relative;overflow:hidden}.current-card:after{content:'';position:absolute;right:-35px;top:-60px;width:180px;height:180px;border-radius:50%;border:26px solid rgba(255,255,255,.25);pointer-events:none}.current-top{display:flex;align-items:center;justify-content:space-between;gap:10px;position:relative;z-index:1}.section-kicker{display:flex;align-items:center;gap:9px;color:#407164;font-size:11px;font-weight:800;letter-spacing:.06em}.status-dot{width:7px;height:7px;background:#3b9873}.current-time{color:#6b8b7d;font-size:11px;font-weight:700}.current-card h2{position:relative;z-index:1;margin:14px 0 3px;font-size:22px;line-height:1.4;color:#1b5548}.current-card p{margin:2px 0 0;font-size:13px;color:#688478}.current-category{font-size:16px!important;font-weight:700;color:#305d4e!important}
.form-card{padding:24px}.field{margin:0 0 20px;border:0;padding:0;min-width:0}.field label,.field legend,.offset-label{display:block;padding:0;margin:0 0 7px;font-weight:750;font-size:13px}.required,.optional{font-weight:700;font-size:10px;padding:2px 6px;margin-left:5px;border-radius:4px}.required{background:#edf6f0;color:#4f8b70}.optional{background:#f0f2f0;color:#8c9992}.field input,.field select,.field textarea,.offset-row input{appearance:none;background-color:#fff;border:1px solid #cad9d1;border-radius:9px;min-height:46px;width:100%;padding:10px 13px;transition:border .2s,box-shadow .2s}.field input:focus,.field select:focus,.field textarea:focus,.offset-row input:focus{border-color:#4e9f88;box-shadow:0 0 0 3px #dcefe4;outline:none}.field textarea{resize:vertical;min-height:75px;line-height:1.5}.field select{padding-right:36px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%236b847a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-position:right 11px center;background-repeat:no-repeat}.select-row{display:flex;align-items:stretch;gap:8px}.select-row select{flex:1;min-width:0}.field-help{display:block;color:#8a9b92;font-size:11px;margin-top:6px}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;border-radius:9px;padding:10px 16px;border:1px solid transparent;font-weight:750;font-size:13px;line-height:1.25;transition:transform .22s var(--ux-spring),background .2s,border-color .2s,box-shadow .2s;white-space:nowrap}.button:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 7px 15px rgba(24,75,56,.11)}.button:active:not(:disabled){transform:scale(.97)}.button-primary{color:#fff;background:var(--primary)}.button-primary:hover:not(:disabled){background:var(--primary-dark)}.button-outline{background:#fff;border-color:#cbdad2;color:#235c4e}.button-outline:hover{border-color:#6d9b87}.button-danger{background:#b44440;color:#fff}.icon-button{font-size:20px;min-width:46px;padding:4px}.submit-button,.full-width{width:100%}.submit-button{min-height:54px;font-size:15px;margin-top:3px}.button-arrow{margin-left:auto}.bank-toggle{display:flex;background:#f1f5f2;border:1px solid #d1e0d7;padding:4px;border-radius:10px;position:relative}.bank-pill{position:absolute;left:4px;top:4px;bottom:4px;width:calc(50% - 4px);background:var(--primary);border-radius:7px;transition:transform .35s var(--ux-spring)}.bank-toggle[data-side=L] .bank-pill{transform:translateX(100%)}.bank-option{position:relative;z-index:1;border:0;background:transparent;flex:1;min-height:40px;border-radius:7px;color:#789087;font-size:15px;font-weight:800;transition:color .25s}.bank-option small{font-size:11px;font-weight:650;margin-left:3px}.bank-option[aria-checked=true]{color:white}.stepper{display:flex;align-items:center;gap:8px}.stepper button{width:46px;height:46px;flex:none;border:1px solid #d1dfd6;border-radius:9px;background:#f6f9f7;color:#276f5d;font-size:21px;transition:transform .2s var(--ux-spring),background .2s}.stepper button:active{transform:scale(.9)}.stepper input{width:76px;text-align:center;font-weight:800;font-size:16px;padding:8px}.stepper input::-webkit-inner-spin-button{appearance:none}.stepper span{font-size:12px;color:var(--muted);margin-right:4px}
.record-aside{display:grid;gap:15px}.history-card{padding:22px}.text-button{border:0;background:none;color:#4d8871;font-weight:700;font-size:11px;padding:4px;transition:transform .2s}.text-button:hover{transform:translateX(3px)}.recent-item{display:flex;gap:12px;padding:12px 0;border-top:1px solid #edf2ee;animation:list-stagger .35s var(--ux-ease) both}.recent-time{font-size:12px;color:#7c9287;white-space:nowrap}.recent-item strong,.history-item strong{display:block;font-size:12px}.recent-item small,.history-item small{font-size:11px;color:#81948b}.quiet-note{background:#edf2ed;padding:18px;border-radius:14px;color:#6e867a;font-size:12px}.quiet-note strong{color:#557868}.quiet-note p{margin:4px 0 0}.empty-state{text-align:center;padding:44px 16px;color:#869a8f}.empty-state strong{display:block;font-size:13px;color:#607d6e}.empty-state p{font-size:12px;margin:6px 0}.empty-icon{display:grid;place-items:center;width:45px;height:45px;border-radius:14px;background:#edf5ef;margin:0 auto 12px;color:#8caf9a;font-size:24px}.history-item{display:flex;align-items:flex-start;gap:14px;padding:17px 0;border-top:1px solid #edf2ee;animation:list-stagger .3s var(--ux-ease) both}.history-item:first-child{border-top:0}.history-time{min-width:116px;font-size:12px;font-weight:700;color:#6b8578}.history-detail{flex:1;min-width:0}.history-actions{display:flex;gap:6px}.history-actions button{background:#f6faf7;border:1px solid #dfebe3;border-radius:7px;padding:5px 9px;color:#53816b;font-size:11px}.history-actions .danger-text{color:#b65c55}@keyframes list-stagger{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.organize-grid{display:grid;grid-template-columns:minmax(240px,330px) minmax(0,1fr);gap:18px;align-items:start}.organize-inputs{display:grid;gap:15px}.task-card{padding:20px}.task-heading{display:flex;gap:12px;align-items:flex-start;margin-bottom:15px}.task-heading p{font-size:11px;color:var(--muted);margin:4px 0 0}.task-number{font-size:10px;font-weight:800;display:grid;place-items:center;color:#42816d;background:#e7f3ea;width:30px;height:30px;border-radius:10px}.file-drop{cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:18px 12px;border:1.5px dashed #b9d5c5;border-radius:10px;background:#f8fbf8;text-align:center;transition:background .2s,border-color .2s,transform .2s}.file-drop:hover{background:#eef7f1;border-color:#6ea487;transform:translateY(-2px)}.file-drop:focus-within{outline:3px solid #dbab59}.file-drop strong{font-size:12px}.file-drop small{font-size:10px;color:#8ca197}.file-icon{font-size:22px;color:#70a58a;line-height:1}.offset-row{display:flex;align-items:center;gap:9px;font-size:12px;color:var(--muted)}.offset-row input{width:110px;min-height:40px}.task-card .full-width{margin-top:15px}.review-card{min-height:400px}.photo-review{max-height:520px;overflow:auto;margin-bottom:16px}.photo-row{display:grid;grid-template-columns:52px minmax(0,1fr) auto;gap:10px;align-items:center;padding:12px 0;border-top:1px solid #edf2ee;animation:list-stagger .28s var(--ux-ease) both}.photo-thumb{width:52px;height:52px;background:#edf2ee;border-radius:8px;object-fit:cover}.photo-info{min-width:0}.photo-info strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.photo-info small{display:block;color:#80958a;font-size:11px}.photo-status{border-radius:30px;padding:4px 8px;font-size:10px;font-weight:700;background:#e8f5eb;color:#4f866a;white-space:nowrap}.photo-status.warn{background:#fff4df;color:#a97428}.photo-status.error{background:#fbebea;color:#ae5550}.review-summary{padding:12px 14px;background:#f3f8f4;border-radius:9px;margin-bottom:12px;font-size:12px;color:#55796a}.progress-wrap{background:#f5f9f6;border:1px solid var(--border);padding:12px;border-radius:10px;margin:12px 0}.progress-label{display:flex;justify-content:space-between;font-size:11px}.progress-wrap progress{display:block;width:100%;height:8px;margin-top:8px;accent-color:var(--primary)}
.photo-category{display:block;width:100%;max-width:100%;margin-top:5px;padding:6px 8px;border:1px solid #d5e4db;border-radius:7px;background:#fff;color:#3b6e5b;font-size:11px}.file-drop:focus-visible{outline:3px solid #dbab59;outline-offset:3px}
.is-working label[role="button"]{pointer-events:none;opacity:.6;cursor:wait}
.editor-lock-content{padding:24px}.editor-lock-content p:not(.eyebrow){color:#4c665a;font-size:13px;line-height:1.7}
[data-sync-state=conflict] .sync-dot{background:#e7a725}
.sync-conflict-dialog .modal-header p{font-size:13px;color:#506b60;margin:8px 0 0}.sync-conflict-item{border:1px solid #cbded1;border-radius:10px;padding:12px;margin:12px 0;min-width:0}.sync-conflict-item legend{font-weight:700;font-size:13px;padding:0 4px}.sync-conflict-choice{display:flex;align-items:flex-start;gap:10px;padding:10px 4px;cursor:pointer}.sync-conflict-choice input{flex:none;accent-color:#07584e;margin-top:5px}.sync-conflict-choice strong,.sync-conflict-choice small{display:block}.sync-conflict-choice small{color:#506b60;overflow-wrap:anywhere;margin-top:3px}
.map-toggle{margin:0 0 14px}.map-panel{margin:0 0 18px;padding:15px;border:1px solid var(--border);border-radius:12px;background:#f7faf7;animation:fade-slide .3s var(--ux-ease)}.map-heading{display:flex;justify-content:space-between;align-items:center;font-size:13px}.online-map{height:340px;margin-top:12px;overflow:hidden;border:1px solid var(--border);border-radius:9px}
.data-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;max-width:850px}.data-card{display:flex;flex-direction:column;align-items:flex-start}.data-card p{color:var(--muted);font-size:12px;margin:10px 0 20px}.data-icon{display:grid;place-items:center;background:#e7f2e9;color:#48856a;width:40px;height:40px;border-radius:12px;font-size:22px;margin-bottom:16px}.data-hint{color:var(--muted);font-size:12px;max-width:850px}.footer{max-width:1440px;margin:auto;padding:18px 36px;color:#9baaa2;font-size:10px;display:flex;justify-content:space-between;gap:16px;border-top:1px solid var(--border)}
.river-management{max-width:850px;margin-top:24px}.river-row{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #edf2ee;padding:12px 0}.river-row strong{display:block;font-size:13px}.river-row small{display:block;font-size:11px;color:var(--muted)}.file-label:focus-visible{outline:3px solid #dbab59;outline-offset:3px}
.modal{border:1px solid var(--border);border-radius:16px;background:#fff;color:var(--ink);padding:0;max-width:min(460px,calc(100vw - 32px));width:100%;max-height:min(90dvh,800px);overflow:auto;box-shadow:0 24px 80px rgba(16,49,36,.25)}.modal::backdrop{background:rgba(19,40,32,.48);animation:backdrop-in .2s ease}.modal[open]{animation:ui-modal .28s var(--ux-ease) both}@keyframes ui-modal{from{opacity:0;transform:translateY(14px) scale(.98)}to{opacity:1;transform:none}}@keyframes backdrop-in{from{opacity:0}to{opacity:1}}.modal form{padding:24px}.modal-header{display:flex;justify-content:space-between;align-items:start;margin-bottom:22px}.modal-header h2{margin:0;font-size:21px}.close-button{border:0;background:#f1f6f2;color:#708b7e;border-radius:9px;font-size:22px;width:36px;height:36px;line-height:1;transition:transform .2s,background .2s}.close-button:hover{transform:rotate(90deg);background:#e2eee6}.preview-box{background:#eef7f0;border:1px solid #dcece1;border-radius:10px;padding:13px 15px}.preview-box small{display:block;font-size:11px;color:#7f9888}.preview-box strong{display:block;font-size:16px;color:#356d55;margin-top:3px;overflow-wrap:anywhere}.modal-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:22px}.small-modal{max-width:min(400px,calc(100vw - 32px))}.small-modal p{font-size:13px;color:var(--muted)}.toast-zone{position:fixed;right:24px;bottom:24px;z-index:50;display:grid;gap:8px;max-width:min(360px,calc(100vw - 32px));pointer-events:none}.toast{background:#245d4b;color:#fff;padding:13px 18px;border-radius:10px;box-shadow:0 10px 30px rgba(20,45,33,.2);font-size:12px;font-weight:700;animation:toast-in .35s var(--ux-spring) both}.toast.error{background:#a84743}@keyframes toast-in{from{opacity:0;transform:translateY(18px) scale(.96)}to{opacity:1;transform:none}}
/* 屋外で読む補助文字も淡くしすぎない。 */
:root{--muted:#526c60}.eyebrow{color:#527668}.optional{color:#536b60}.required{color:#356b52}.field-help{color:#516d5e}.card-subtitle,.intro,.data-hint{color:#526c60}.tag{color:#496b5b}.current-time{color:#476b5b}.current-card p{color:#4d6c5d}.recent-time,.recent-item small,.history-item small,.history-time{color:#526f60}.file-drop small,.photo-info small{color:#526f60}.preview-box small{color:#526e5c}.empty-state{color:#5c7969}.empty-state strong{color:#486859}.footer{color:#60786b}.quiet-note{color:#526b5e}.quiet-note strong{color:#405f4e}
@media(max-width:950px){.shell{grid-template-columns:1fr}.navigation{padding:8px 20px;position:sticky;top:0;z-index:10;flex-direction:row;background:rgba(243,247,243,.97);border-bottom:1px solid var(--border);border-right:0;overflow-x:auto;backdrop-filter:blur(12px)}.nav-link{min-width:max-content;width:auto;padding:9px 12px;font-size:12px}.nav-link:hover{transform:none}.main-content{padding:32px 24px 55px}.record-layout{grid-template-columns:minmax(0,1fr) minmax(220px,300px)}}
@media(max-width:680px){.topbar-inner{min-height:64px;padding:0 16px}.brand strong{font-size:16px}.brand-mark{width:36px;height:36px}.local-indicator{font-size:10px}.navigation{padding:7px 10px;gap:2px}.nav-link{font-size:11px;padding:8px 10px;gap:5px}.nav-link>span:first-child{font-size:16px;width:18px}.main-content{padding:26px 16px 50px}.page-heading{margin-bottom:20px;align-items:flex-start;flex-direction:column}.page-heading h1{font-size:23px}.intro{font-size:12px}.record-layout,.organize-grid,.data-grid{grid-template-columns:1fr}.record-layout{gap:14px}.record-main{gap:13px}.card,.form-card{padding:20px;border-radius:14px}.current-card{padding:18px 20px}.current-card h2{font-size:19px}.card-title{margin-bottom:18px}.card-title h2{font-size:16px}.field{margin-bottom:18px}.select-row{gap:6px}.add-river-btn{padding:8px 10px;font-size:11px}.record-aside{gap:12px}.history-time{min-width:90px}.history-item{gap:9px}.history-actions{flex-direction:column}.review-card{min-height:unset}.modal form{padding:20px}.toast-zone{right:16px;bottom:16px}.footer{padding:16px;font-size:10px}.footer span:last-child{display:none}}
@media(max-width:680px){body{background:#f8f8f2;color:#142622}.topbar{background:#00594c;border:0}.topbar-inner{height:70px;position:relative;justify-content:center;padding:0 12px}.brand{gap:9px}.brand-mark{background:none;border:0;width:31px;height:31px}.brand-mark svg{width:30px;height:30px;fill:none;stroke:#fff;stroke-width:2.3}.brand strong{font-size:22px;letter-spacing:.03em}.brand small,.local-indicator{display:none}.menu-toggle{display:grid;place-items:center;position:absolute;right:12px;top:15px;width:40px;height:40px;border:1px solid rgba(255,255,255,.35);border-radius:8px;background:transparent;color:white;font-size:20px}.navigation{position:absolute;z-index:30;top:70px;right:10px;width:min(300px,calc(100vw - 20px));padding:8px;background:#fff;box-shadow:0 12px 35px rgba(0,55,40,.2);border:1px solid #d5e6db;border-radius:10px;flex-direction:column;overflow:visible;backdrop-filter:none}.navigation:not(.is-open){display:none}.nav-link{width:100%;font-size:14px;padding:12px 13px}.main-content{padding:14px 12px 35px}#view-record>.page-heading{display:none}.record-layout{display:block}.record-main{gap:12px}.current-card{padding:13px 16px;background:#edf5ee;border:1px solid #8eaa98;border-radius:10px;min-height:100px}.current-card:after{display:none}.current-top{justify-content:space-between}.section-kicker{background:#00594c;color:#fff;border-radius:18px;padding:3px 12px;font-size:12px;letter-spacing:0}.status-dot{display:none}.current-time{color:#22352e;font-size:12px}.current-card h2{margin:9px 0 0;font-size:20px;font-weight:800;line-height:1.3;color:#132622}.current-card p{font-size:12px;color:#4b6559}.current-card .current-category{font-size:17px!important;color:#132622!important}.form-card{padding:0;border:1px solid #c5cec7;border-radius:10px;box-shadow:none;overflow:hidden;background:#faf9f3}.form-card>.card-title{margin:0;background:#00594c;padding:8px 15px;color:#fff}.form-card>.card-title h2{font-size:17px;line-height:1.2}.form-card>.card-title .eyebrow,.form-card>.card-title .tag{display:none}.form-card form{padding:4px 14px 8px}.form-card .field{display:grid;grid-template-columns:94px minmax(0,1fr);gap:8px;align-items:center;margin:0;padding:8px 0;border-bottom:1px solid #d3dbd3}.form-card .field:last-child{border:0;padding-bottom:0}.form-card .field>label,.form-card .field-label{margin:0;font-size:15px;font-weight:800}.form-card .required{display:none}.form-card input,.form-card select{min-height:38px;padding:7px 10px;border-color:#b6c2bb;background-color:#fff;font-weight:700}.form-card select{padding-right:25px;background-position:right 6px center}.form-card .select-row{gap:5px}.form-card .add-river-btn{min-height:38px;padding:6px 8px;white-space:nowrap;border-color:#00594c;font-size:11px}.form-card .bank-toggle{padding:3px;border-color:#b6c2bb;border-radius:8px;background:#eeefea}.form-card .bank-pill{top:3px;bottom:3px;left:3px;width:calc(50% - 3px);background:#00594c;border-radius:6px}.form-card .bank-option{min-height:32px;font-size:17px;color:#152822}.form-card .bank-option small{display:none}.form-card .bank-option[aria-checked=true]{color:#fff}.form-card .stepper{gap:8px;justify-content:space-between}.form-card .stepper button{width:42px;height:38px;background:#eff1eb;border-color:#c1cbc2;font-size:19px}.form-card .stepper input{min-height:38px;border:0;background:transparent;flex:1;width:40px;text-align:center;font-size:18px}.form-card .stepper span{display:none}.form-card .icon-button{min-height:38px;min-width:38px}.form-card .field:has(#note-input){display:block}.form-card .field:has(#note-input)>label{margin-bottom:7px}.form-card textarea{min-height:70px;resize:vertical;font-weight:700;border-color:#b6c2bb}.form-card .field-help{margin:5px 0 0;text-align:center;font-size:10px;color:#263c30}.submit-button{min-height:56px;margin:2px 0 0;background:#00594c;font-size:18px;border-radius:9px}.record-aside{display:none}.footer{display:none}#river-dialog{width:100%;height:100dvh;max-width:none;max-height:100dvh;border:0;border-radius:0;box-shadow:none}#river-dialog form{min-height:100%;display:flex;flex-direction:column;padding:0 16px 18px}#river-dialog .modal-header{min-height:70px;margin:0 -16px 24px;padding:15px 16px;background:#00594c;color:#fff;align-items:center}#river-dialog .modal-header .eyebrow{display:none}#river-dialog .modal-header h2{font-size:22px}#river-dialog .close-button{color:#fff;background:transparent;border:1px solid rgba(255,255,255,.35)}#river-dialog .field{margin-bottom:24px}#river-dialog .field label{font-size:16px;font-weight:800}#river-dialog .field input{min-height:50px;font-size:18px;font-weight:700}#river-dialog .preview-box{margin-top:8px;text-align:center;padding:16px}#river-dialog .preview-box strong{font-size:23px;color:#132622}#river-dialog .modal-actions{margin-top:auto;padding-top:24px;display:flex;flex-direction:column-reverse}#river-dialog .modal-actions .button{width:100%;min-height:50px;font-size:16px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important;scroll-behavior:auto!important}}
/* 同期状態は操作の邪魔にならないヘッダー内に表示する。 */
.topbar-inner{position:relative}.sync-anchor{position:relative;margin-left:auto}.sync-toggle{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:6px 8px;border:0;border-radius:8px;background:transparent;color:#fff;font-size:12px;font-weight:700;white-space:nowrap;transition:background .2s var(--ux-ease),transform .2s var(--ux-ease)}.sync-toggle:hover,.sync-toggle[aria-expanded=true]{background:rgba(255,255,255,.12)}.sync-toggle:active{transform:scale(.97)}.sync-dot{flex:none;display:inline-block;width:9px;height:9px;border-radius:50%;background:#b5c7bf;box-shadow:0 0 0 3px rgba(255,255,255,.12)}[data-sync-state=synced] .sync-dot{background:#58bf88}[data-sync-state=pending] .sync-dot,[data-sync-state=offline] .sync-dot{background:#e7a725}[data-sync-state=syncing] .sync-dot{background:#72b5da}[data-sync-state=error] .sync-dot{background:#dc726c}
.sync-popover{position:absolute;z-index:100;right:-8px;top:calc(100% + 14px);width:min(320px,calc(100vw - 24px));padding:17px;border:1px solid #cad9d1;border-radius:12px;background:#fff;color:#1f3431;box-shadow:0 12px 30px rgba(15,42,34,.22);animation:sync-popover-in .2s var(--ux-ease) both}.sync-popover::before{content:'';position:absolute;top:-7px;right:42px;width:12px;height:12px;background:#fff;border-left:1px solid #cad9d1;border-top:1px solid #cad9d1;transform:rotate(45deg)}@keyframes sync-popover-in{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:none}}.sync-popover-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.sync-popover-head h2{font-size:17px;line-height:1.3;margin:0}.sync-close{display:grid;place-items:center;width:32px;height:32px;border:0;border-radius:8px;background:#eef4ef;color:#43685a;font-size:22px;line-height:1;transition:background .2s,transform .2s}.sync-close:hover{background:#dfede4;transform:rotate(90deg)}.sync-summary{display:flex;align-items:center;gap:9px;font-size:13px}.sync-last-time,.sync-description{font-size:12px;line-height:1.5;color:#526c60;margin:10px 0}.sync-popover .button{margin-top:5px;min-height:42px}.sync-settings-link{display:block;margin:10px auto 0;padding:4px 10px;border:0;background:transparent;color:#286652;font-size:12px;font-weight:700;text-decoration:underline;text-underline-offset:3px}
.sync-settings-body{padding:24px}.sync-settings-intro{font-size:13px;color:#526c60;margin:6px 0 0}.sync-data-notice{padding:10px 12px;background:#f0f6f1;border-radius:8px;color:#35594b;font-size:12px;line-height:1.6;margin:0 0 14px}.sync-settings-section{padding:17px 0;border-top:1px solid #dce7e1}.sync-settings-section h3{font-size:15px;margin:0 0 5px}.sync-settings-section p,.sync-settings-section small{font-size:12px;line-height:1.6;color:#526c60;margin:0 0 12px}.sync-settings-section label{display:block;font-weight:700;font-size:13px;margin-bottom:6px}.sync-settings-section input{display:block;min-height:46px;width:100%;padding:10px 12px;border:1px solid #cad9d1;border-radius:9px;background:#fff;color:#1f3431}.sync-settings-section input:focus{border-color:#4e9f88;box-shadow:0 0 0 3px #dcefe4;outline:none}.sync-settings-section small{display:block;margin:6px 0 12px}.sync-code-actions{display:flex;gap:8px;margin:10px 0 12px}.sync-code-actions .button{flex:1}.sync-settings-section .sync-secret-help{margin:0;color:#614f2e}.sync-disconnect{margin-top:16px;padding:5px 0;border:0;background:transparent;color:#9b413d;font-size:12px;font-weight:700;text-decoration:underline;text-underline-offset:3px}.sync-settings-message{font-size:12px;color:#9b413d;min-height:1em;margin:0}
@media(max-width:680px){.topbar-inner{justify-content:flex-start;gap:4px}.brand{flex:none;gap:6px}.brand strong{font-size:clamp(18px,5vw,22px)}.sync-anchor{margin-left:auto;margin-right:46px}.sync-toggle{font-size:11px;gap:6px;padding:6px;min-height:44px}.sync-popover{right:-40px;top:calc(100% + 13px)}.sync-popover::before{right:71px}.sync-settings-body{padding:20px}.sync-settings-dialog .modal-header h2{font-size:19px}}
@media(max-width:360px) and (max-height:700px){.sync-settings-body{padding:16px}.sync-settings-body .modal-header{margin-bottom:12px}.sync-settings-section{padding:10px 0}.sync-data-notice{padding:8px;margin-bottom:8px}.sync-settings-section p{margin-bottom:8px}.sync-settings-section small{margin-bottom:8px}}

/* KML作成は写真整理から続くPC用ワークスペース。 */
.visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.kml-view{max-width:1450px}.kml-heading{margin-bottom:18px}.kml-heading h1{font-size:clamp(24px,2.3vw,30px)}
.kml-modes{display:flex;gap:4px;width:max-content;max-width:100%;padding:4px;background:#e7eee9;border:1px solid #d2e0d6;border-radius:10px;margin:0 0 18px}
.kml-mode{border:0;border-radius:7px;padding:9px 15px;background:transparent;color:#365e4e;font-size:13px;font-weight:750;transition:background .2s var(--ux-ease),color .2s var(--ux-ease),box-shadow .2s var(--ux-ease),transform .2s var(--ux-ease)}
.kml-mode:hover{background:#d9e9de}.kml-mode:active{transform:scale(.98)}.kml-mode.is-active{background:#fff;color:#135948;box-shadow:0 2px 8px rgba(25,63,42,.1)}
.kml-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(250px,290px);gap:18px;align-items:start}.kml-main{min-width:0}.kml-source-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:8px}.kml-source-controls .button{font-size:12px;min-height:40px}.kml-source-help{font-size:12px;color:#516d5e;margin:0 0 8px;line-height:1.65}.kml-status{margin:8px 0 14px;padding:9px 12px;background:#e9f4eb;border-radius:8px;color:#356d50;font-size:12px;line-height:1.5}.kml-groups{display:grid;gap:16px}.kml-empty{background:white;border:1px solid #d1e2d5;border-radius:12px}.kml-empty strong{font-size:15px}
.kml-output{position:sticky;top:18px;padding:22px;border-color:#c0d9c7;border-radius:12px;box-shadow:none}.kml-output h2{font-size:19px;margin:0 0 15px}.kml-checks{display:grid;gap:9px;margin-bottom:19px}.kml-checks label,.kml-merge-check,.kml-include-upstream{display:flex;align-items:flex-start;gap:9px;color:#243d32;font-size:13px;font-weight:700;cursor:pointer}.kml-checks input,.kml-merge-check input,.kml-include-upstream input{width:17px;height:17px;flex:none;margin:3px 0 0;accent-color:#086747}.kml-merge-controls{border-top:1px solid #d9e5dc;padding-top:16px}.kml-merge-check{font-size:15px}.kml-merge-controls select{width:100%;min-height:42px;margin-top:10px;padding:8px 10px;border:1px solid #bed2c3;border-radius:7px;background:#fff;color:#17392c}.kml-merge-controls p,.kml-output-hint{font-size:12px;color:#526c60;line-height:1.65;margin:8px 0 15px}.kml-output-preview{margin:0 0 16px;border:1px solid #d8e7dc;border-radius:9px;overflow:hidden;font-size:12px;color:#36564a}.kml-output-preview strong{display:block;padding:8px 12px;background:#eaf4ed;color:#284b3a;font-size:13px}.kml-output-preview div{display:grid;gap:5px;padding:10px 12px}.kml-output-preview span{overflow-wrap:anywhere}.kml-output-hint{border-top:1px solid #d9e5dc;padding-top:12px;margin-bottom:15px}.kml-export{min-height:54px;font-size:15px}
.kml-group{background:#fff;border:1px solid #bed6c4;border-radius:12px;overflow:hidden;animation:fade-slide .25s var(--ux-ease) both}.kml-group-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;padding:14px 16px;background:#f5f9f5}.kml-group-head h2,.kml-group-head strong{margin:0;font-size:17px}.kml-group-head small{color:#526c60;font-size:12px}.kml-table-scroll{overflow:auto}.kml-table{border-collapse:collapse;width:100%;min-width:670px;table-layout:fixed}.kml-table th,.kml-table td{border:1px solid #d0e1d4;padding:10px;text-align:left;vertical-align:top}.kml-table th:first-child,.kml-table td:first-child{border-left:0}.kml-table th:last-child,.kml-table td:last-child{border-right:0}.kml-table tr:last-child td{border-bottom:0}.kml-table th{background:#e5f1e8;color:#274b38;font-size:12px;text-align:center}.kml-table th:first-child{width:75px}.kml-table th:last-child{width:82px}.kml-span{display:block;font-size:21px;line-height:1.3;font-weight:800}.kml-span-bank{display:inline-block;margin-top:4px;padding:2px 7px;background:#e6f1e8;border-radius:5px;font-size:11px;color:#426c50}.kml-point{display:flex;gap:8px;width:100%;padding:7px;border:1px solid transparent;border-radius:8px;background:transparent;text-align:left;cursor:pointer;transition:background .2s,border-color .2s,transform .2s}.kml-point:hover{background:#eef7ef;border-color:#abcbb5}.kml-point:active{transform:scale(.98)}.kml-point-thumb{width:70px;height:58px;flex:none;border-radius:5px;object-fit:cover;background:#edf2ee}.kml-point-detail{min-width:0;color:#315a45;font-size:11px;line-height:1.45;overflow-wrap:anywhere}.kml-point-detail strong{display:block;color:#183e2a}.kml-point-action{color:#206e54;font-size:11px;text-decoration:underline}.kml-point.is-empty{min-height:70px;align-items:center;justify-content:center;border:1px dashed #b8cfc0;color:#256d55;font-weight:700}.kml-warning{padding:7px 10px;margin:5px 0;border-radius:6px;background:#fff2d7;color:#785014;font-size:12px;line-height:1.45}.kml-result{color:#287242;font-size:12px;font-weight:800}.kml-result.is-warning{color:#9b691c}
.kml-existing-panel{max-width:900px;animation:fade-slide .25s var(--ux-ease)}.kml-existing-card{padding:24px}.kml-existing-card .file-label{min-width:170px}.kml-existing-list{margin:10px 0;border:1px solid #d5e5d9;border-radius:10px;overflow:hidden}.kml-existing-list .empty-state{padding:30px}.kml-existing-row{padding:10px 14px;border-bottom:1px solid #e3ece5;font-size:13px}.kml-existing-row:last-child{border-bottom:0}.kml-include-upstream{margin:18px 0 8px;font-weight:600}.kml-existing-export{margin-top:18px;min-width:240px}
.kml-photo-dialog{max-width:min(650px,calc(100vw - 32px))}.kml-photo-instructions{font-size:13px;color:#526c60;margin:0 0 12px}.kml-candidate-list{max-height:50vh;overflow:auto;display:grid;gap:8px}.kml-candidate{display:flex;align-items:center;gap:10px;border:1px solid #d7e7db;border-radius:9px;padding:10px;cursor:pointer}.kml-candidate:has(input:checked){border-color:#327d5e;background:#eef7f0}.kml-candidate input{accent-color:#086747}.kml-candidate img{width:70px;height:56px;object-fit:cover;border-radius:5px}.kml-candidate small{display:block;color:#526c60;overflow-wrap:anywhere}.kml-photo-dialog .modal-actions{position:sticky;bottom:-24px;background:#fff;padding:12px 0 4px}
.kml-single-label{margin:12px 0}.kml-coordinates{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.kml-coordinates label{display:block;font-size:12px;font-weight:750;margin:0 0 5px}.kml-coordinates input{width:100%;min-height:44px;padding:9px;border:1px solid #cad9d1;border-radius:8px;background:#fff}
.kml-assign-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
/* 座標と写真名は列内で読める大きさを保ち、変更操作は独立した行に配置する。 */
.kml-point:not(.is-empty){display:grid;grid-template-columns:52px minmax(0,1fr);grid-template-rows:auto auto;align-items:start;column-gap:8px;row-gap:5px}
.kml-point:not(.is-empty) .kml-point-thumb{width:52px;height:52px;grid-column:1;grid-row:1/3}
.kml-point:not(.is-empty) .kml-point-detail{grid-column:2;min-width:0;font-size:12px;line-height:1.45;overflow-wrap:anywhere}
.kml-point:not(.is-empty) .kml-point-detail strong{font-size:13px;line-height:1.35}
.kml-point:not(.is-empty) .kml-point-detail small{display:block;font-size:12px;line-height:1.45;white-space:nowrap}
.kml-point:not(.is-empty) .kml-point-action{grid-column:2;justify-self:start;font-size:12px;font-weight:700;line-height:1.4;white-space:nowrap}
.kml-point.is-empty .kml-point-action{font-size:13px;line-height:1.4}
@media(max-width:1350px){.kml-layout{grid-template-columns:1fr}.kml-output{position:static}}
@media(max-width:1100px){.kml-layout{grid-template-columns:1fr}.kml-output{position:static}.kml-output-preview div{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}}
@media(max-width:680px),(hover:none),(pointer:coarse){.kml-nav-link{display:none!important}}
