:root{color:#172033;background:#eef2f7;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Microsoft YaHei,sans-serif;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}*{box-sizing:border-box}body{margin:0;min-width:320px}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.65}.app-shell{display:flex;flex-direction:column;height:100vh;min-height:0}.app-view-tabs{display:flex;gap:8px;padding:10px 14px;background:#fff;border-bottom:1px solid #dbe3ef}.app-view-tabs button{min-height:36px;border:1px solid #cbd5e1;border-radius:8px;padding:0 14px;color:#475569;background:#f8fafc;font-weight:800}.app-view-tabs button.active{color:#fff;border-color:#2563eb;background:#2563eb}.app-layout{display:grid;grid-template-columns:360px minmax(0,1fr);flex:1;height:100%;min-height:0;overflow:hidden}.editor-panel{display:flex;flex-direction:column;gap:14px;overflow-y:auto;padding:22px;background:#f8fafc;border-right:1px solid #dbe3ef}.brand-block{margin-bottom:4px}.eyebrow{display:block;margin-bottom:6px;color:#607088;font-size:12px;font-weight:700;letter-spacing:0;text-transform:uppercase}h1,h2{margin:0;line-height:1.2}h1{color:#111827;font-size:24px}h2{color:#111827;font-size:20px}.field{display:grid;gap:8px;color:#364255;font-size:14px;font-weight:700}.field.compact{min-width:144px}.check-field{display:flex;align-items:center;gap:9px;color:#364255;font-size:14px;font-weight:700}.check-field input{width:18px;height:18px}input,textarea,select{width:100%;border:1px solid #c9d4e5;border-radius:8px;padding:10px 11px;color:#172033;background:#fff;outline:none}textarea{resize:vertical}input:focus,textarea:focus,select:focus{border-color:#2563eb;box-shadow:0 0 0 3px #2563eb24}.button-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}.primary-button,.secondary-button,.ghost-button,.danger-button,.icon-button{min-height:40px;border:0;border-radius:8px;padding:0 14px;font-weight:700}.primary-button{color:#fff;background:#2563eb}.primary-button:hover{background:#1d4ed8}.secondary-button{color:#1d4ed8;background:#dbeafe}.secondary-button:hover{background:#bfdbfe}.secondary-button.small{min-height:32px;padding:0 10px;font-size:13px}.ghost-button{color:#475569;background:#e8edf5}.ghost-button:hover{background:#dde5ef}.ghost-button.small{min-height:32px;padding:0 10px;font-size:13px}.danger-button{color:#991b1b;background:#fee2e2}.danger-button:hover{background:#fecaca}.icon-button{display:grid;width:36px;min-height:36px;place-items:center;padding:0;color:#475569;background:#e8edf5;font-size:24px;line-height:1}.notice-text,.error-text{margin:0;border-radius:8px;padding:10px 12px;font-size:13px;line-height:1.5}.notice-text{color:#155e3b;background:#dcfce7}.error-text{color:#991b1b;background:#fee2e2}.section-title{margin-bottom:8px;color:#364255;font-size:14px;font-weight:800}.saved-routes{display:grid;gap:8px}.route-plan-status{display:grid;gap:7px;border:1px solid #d8e0ec;border-radius:8px;padding:10px;background:#fff}.route-plan-status .section-title{margin-bottom:0}.route-plan-status small{color:#64748b}.route-mode-pill{width:fit-content;border-radius:999px;padding:5px 9px;color:#1d4ed8;background:#dbeafe;font-size:12px;font-weight:800}.saved-routes-header{display:flex;align-items:center;justify-content:space-between;gap:8px}.saved-routes-header .section-title{margin-bottom:0}.saved-route-tools{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}.saved-route-list{display:grid;gap:8px}.saved-route-card{display:grid;gap:4px;width:100%;border:1px solid #d8e0ec;border-radius:8px;padding:10px;color:inherit;text-align:left;background:#fff}.saved-route-card:hover{border-color:#2563eb;box-shadow:0 8px 22px #2563eb1f}.saved-route-card small{color:#64748b}.place-list{display:grid;gap:8px;padding-bottom:24px}.place-list-item{display:grid;gap:8px}.place-card{display:grid;grid-template-columns:30px minmax(0,1fr) auto;align-items:center;gap:9px;width:100%;border:1px solid #d8e0ec;border-radius:8px;padding:10px;color:inherit;text-align:left;background:#fff}.place-card:hover,.place-card.active{border-color:#2563eb;box-shadow:0 8px 22px #2563eb1f}.place-order{display:grid;width:28px;height:28px;place-items:center;border-radius:50%;color:#fff;background:#334155;font-weight:800}.place-main{display:grid;gap:3px;min-width:0}.place-main strong,.place-main small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.place-main small{color:#64748b}.candidate-hint{color:#b45309!important;font-weight:800}.candidate-toggle{justify-self:start}.candidate-panel{display:grid;gap:8px;border:1px solid #d8e0ec;border-radius:8px;padding:10px;background:#fff}.candidate-panel-title{color:#364255;font-size:13px;font-weight:800}.candidate-empty{color:#64748b;font-size:13px}.candidate-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;border:1px solid #e2e8f0;border-radius:8px;padding:10px;background:#f8fafc}.candidate-card.selected{border-color:#2563eb;background:#eff6ff}.candidate-main{display:grid;gap:4px;min-width:0}.candidate-main strong,.candidate-main span,.candidate-main small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.candidate-main span,.candidate-main small{color:#64748b;font-size:12px}.candidate-actions{display:grid;align-content:center;justify-items:end;gap:6px}.selected-candidate{color:#1d4ed8;font-size:12px;font-weight:800;white-space:nowrap}.status-pill{border-radius:999px;padding:4px 8px;color:#475569;background:#e2e8f0;font-size:12px;font-weight:700;white-space:nowrap}.status-pill.success{color:#166534;background:#bbf7d0}.status-pill.failed{color:#991b1b;background:#fecaca}.status-pill.loading{color:#854d0e;background:#fef08a}.workspace{position:relative;min-width:0;min-height:0}.map-shell,.map-container{width:100%;height:100%}.map-shell{position:relative;background:#dce7f3}.map-message{position:absolute;top:18px;left:50%;max-width:min(520px,calc(100% - 40px));transform:translate(-50%);border-radius:8px;padding:12px 14px;color:#1f2937;background:#fffffff0;box-shadow:0 14px 35px #0f172a2e;text-align:center}.map-message.error{color:#991b1b}.detail-panel{position:absolute;top:18px;right:18px;display:grid;gap:16px;width:min(420px,calc(100% - 36px));max-height:calc(100% - 36px);overflow-y:auto;border:1px solid #d9e2ee;border-radius:8px;padding:18px;background:#fff;box-shadow:0 22px 55px #0f172a2e}.detail-header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.detail-meta{display:grid;gap:10px;margin:0}.detail-meta div{display:grid;gap:4px}.detail-meta dt{color:#64748b;font-size:12px;font-weight:800}.detail-meta dd{margin:0;color:#172033;font-size:14px;line-height:1.45}.image-toolbar{display:flex;flex-wrap:wrap;align-items:end;gap:10px}.paste-zone{border:1px dashed #93a4bb;border-radius:8px;padding:18px;color:#526174;background:#f8fafc;text-align:center;outline:none}.paste-zone:focus{border-color:#2563eb;box-shadow:0 0 0 3px #2563eb1f}.image-count-text{margin:-6px 0 0;color:#64748b;font-size:13px}.image-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(116px,1fr));gap:12px}.image-card{display:grid;gap:8px;margin:0;border:1px solid #dbe3ef;border-radius:8px;padding:8px;background:#f8fafc}.image-card img{width:100%;aspect-ratio:1;border-radius:6px;object-fit:cover;background:#e2e8f0}.image-card figcaption{display:flex;align-items:center;justify-content:space-between;gap:6px;color:#475569;font-size:12px}.image-card button{min-height:30px;border:0;border-radius:6px;color:#991b1b;background:#fee2e2;font-weight:700}.empty-state{border:1px dashed #cbd5e1;border-radius:8px;padding:14px;color:#64748b;background:#f8fafc;font-size:14px;text-align:center}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.library-layout{display:grid;grid-template-columns:minmax(420px,.9fr) minmax(0,1.1fr);flex:1;min-height:0;overflow:hidden;background:#eef2f7}.library-list-panel,.route-detail-view{min-height:0;overflow-y:auto;padding:22px}.library-list-panel{border-right:1px solid #dbe3ef;background:#f8fafc}.library-header,.library-detail-header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:16px}.route-library-list{display:grid;gap:12px}.route-library-card{display:grid;gap:14px;border:1px solid #d8e0ec;border-radius:8px;padding:14px;background:#fff}.route-library-card header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.route-library-card h2,.album-place-card h3{margin:0;color:#111827}.route-library-card h2{font-size:18px}.route-library-card p,.album-place-card p{margin:4px 0 0;color:#64748b;line-height:1.45}.snapshot-badge{border-radius:999px;padding:5px 9px;color:#166534;background:#bbf7d0;font-size:12px;font-weight:800;white-space:nowrap}.snapshot-badge.muted{color:#475569;background:#e2e8f0}.route-card-meta,.route-summary-grid{display:grid;gap:10px;margin:0}.route-card-meta{grid-template-columns:repeat(5,minmax(0,1fr))}.route-summary-grid{grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:16px}.route-card-meta div,.route-summary-grid div{display:grid;gap:3px;min-width:0}.route-card-meta dt,.route-summary-grid dt{color:#64748b;font-size:12px;font-weight:800}.route-card-meta dd,.route-summary-grid dd{margin:0;overflow:hidden;color:#172033;font-size:13px;font-weight:700;text-overflow:ellipsis;white-space:nowrap}.library-card-actions,.detail-actions{display:flex;flex-wrap:wrap;gap:8px}.share-link-panel{display:grid;gap:10px;margin-bottom:14px;border:1px solid #bfdbfe;border-radius:8px;padding:14px;background:#eff6ff}.share-link-panel p{margin:4px 0 0;color:#475569;font-size:13px}.share-link-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}.share-link-row input{min-width:0;border:1px solid #cbd5e1;border-radius:8px;padding:10px 11px;color:#172033;background:#fff}.route-detail-view{background:#fff}.album-place-card{display:grid;gap:14px;margin-bottom:16px;border:1px solid #d8e0ec;border-radius:8px;padding:14px;background:#f8fafc}.album-place-header{display:flex;align-items:flex-start;gap:10px}.album-place-header>div{min-width:0;flex:1}.place-image-count{border-radius:999px;padding:5px 9px;color:#0f766e;background:#ccfbf1;font-size:12px;font-weight:800;white-space:nowrap}.album-place-card h3{font-size:17px}.album-note{border-left:3px solid #2563eb;padding-left:10px}.album-note strong,.album-group-title{color:#364255;font-size:13px;font-weight:800}.album-group-title{display:flex;align-items:center;justify-content:space-between;gap:10px}.album-group-title span:last-child{min-width:24px;border-radius:999px;padding:3px 8px;color:#334155;background:#e2e8f0;text-align:center}.album-note p{color:#475569}.album-groups{display:grid;gap:14px}.detail-upload-panel{display:grid;gap:10px;border:1px solid #dbe3ef;border-radius:8px;padding:12px;background:#fff}.detail-upload-controls{display:grid;grid-template-columns:minmax(150px,210px) auto minmax(180px,1fr);align-items:end;gap:12px}.detail-upload-limit{align-self:center;color:#64748b;font-size:13px;line-height:1.45}.detail-upload-panel.is-uploading .detail-paste-zone{opacity:.72}.detail-upload-panel .field{align-self:center}.detail-upload-panel select{cursor:pointer}.detail-paste-zone{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:12px;min-height:92px;border:1px dashed #9fb1c8;border-radius:8px;padding:14px;background:#f8fbff;cursor:text;outline:none;transition:border-color .15s ease,background-color .15s ease,box-shadow .15s ease}.detail-paste-zone:hover{border-color:#60a5fa;background:#eff6ff}.detail-paste-zone:focus,.detail-paste-zone:focus-visible{border-color:#2563eb;background:#eff6ff;box-shadow:0 0 0 3px #2563eb29}.detail-upload-icon{display:grid;width:44px;height:44px;place-items:center;border-radius:8px;background:#dbeafe;font-size:24px}.detail-upload-copy{display:grid;gap:4px;min-width:0}.detail-upload-copy strong{color:#172033;font-size:15px}.detail-upload-copy span,.detail-upload-copy small{color:#64748b;line-height:1.4}.detail-upload-button{min-width:112px}.detail-upload-message{grid-column:1 / -1;margin:0}.album-image-group{display:grid;gap:8px}.album-image-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:10px}.album-thumb-card{display:grid;gap:6px;min-width:0}.album-thumb{position:relative;display:grid;min-height:96px;width:100%;aspect-ratio:1;border:1px solid #cbd5e1;border-radius:8px;padding:0;overflow:hidden;cursor:zoom-in;background-color:#f8fafc;background-image:linear-gradient(45deg,#e2e8f0 25%,transparent 25%),linear-gradient(-45deg,#e2e8f0 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#e2e8f0 75%),linear-gradient(-45deg,transparent 75%,#e2e8f0 75%);background-position:0 0,0 8px,8px -8px,-8px 0;background-size:16px 16px;box-shadow:inset 0 0 0 1px #ffffffc7}.album-thumb img{display:block;width:100%;height:100%;object-fit:contain}.album-thumb.is-broken{cursor:default;background:#f1f5f9}.album-preview-hint{position:absolute;right:0;bottom:0;left:0;padding:5px 6px;color:#fff;background:#0f172ab8;font-size:12px;font-weight:700;opacity:0;transition:opacity .15s ease}.album-thumb:hover .album-preview-hint,.album-thumb:focus-visible .album-preview-hint{opacity:1}.album-image-error{display:grid;width:100%;height:100%;place-items:center;padding:10px;color:#991b1b;background:#fee2e2;font-size:13px;font-weight:800;text-align:center}.album-delete-button{min-height:30px;border:0;border-radius:6px;color:#991b1b;background:#fee2e2;font-size:12px;font-weight:800}.album-delete-button:hover{background:#fecaca}.album-empty{border:1px dashed #cbd5e1;border-radius:8px;padding:12px;color:#64748b;background:#fff;font-size:13px}.share-page{min-height:100vh;background:#eef2f7}.share-header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:24px;background:#fff;border-bottom:1px solid #dbe3ef}.share-header h1{margin:4px 0 6px;color:#111827;font-size:30px}.share-header p{margin:0;color:#64748b}.share-meta{display:grid;grid-template-columns:repeat(4,minmax(80px,1fr));gap:10px;margin:0}.share-meta div{border:1px solid #e2e8f0;border-radius:8px;padding:10px;background:#f8fafc}.share-meta dt{color:#64748b;font-size:12px;font-weight:800}.share-meta dd{margin:4px 0 0;color:#172033;font-weight:800}.share-map-grid{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:16px;height:58vh;min-height:440px;padding:16px 24px}.share-active-place{overflow-y:auto;border:1px solid #d8e0ec;border-radius:8px;padding:16px;background:#fff}.share-active-place h2{margin:10px 0 6px;color:#111827;font-size:18px}.share-active-place p{color:#64748b;line-height:1.5}.share-place-list{display:grid;gap:14px;padding:0 24px 28px}.share-place-list .album-place-card h2{margin:0;color:#111827;font-size:18px}.share-place-list .place-order{border:0;cursor:pointer}.share-state{max-width:680px;margin:0 auto;padding:80px 24px;color:#475569;text-align:center}.share-state h1{color:#111827}.image-preview-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:50;display:grid;place-items:center;padding:24px;background:#0f172ab8}.image-preview-modal{display:grid;gap:12px;width:min(920px,100%);max-height:calc(100vh - 48px);border-radius:8px;padding:14px;background:#fff}.image-preview-header{display:flex;align-items:center;justify-content:space-between;gap:12px}.image-preview-modal img{max-width:100%;max-height:calc(100vh - 130px);border-radius:6px;object-fit:contain;background:#e2e8f0}.amap-marker-label-inner{display:grid;width:24px;height:24px;place-items:center;border:2px solid #fff;border-radius:50%;color:#fff;background:#2563eb;box-shadow:0 6px 14px #2563eb52;font-size:12px;font-weight:800}.amap-marker-label{border:0!important;background:transparent!important;box-shadow:none!important}@media(max-width:820px){.app-shell{height:auto;min-height:100vh}.app-layout{grid-template-columns:1fr;grid-template-rows:auto minmax(420px,1fr);height:auto;min-height:100vh;overflow:visible}.editor-panel{max-height:none;border-right:0;border-bottom:1px solid #dbe3ef}.workspace{min-height:520px}.detail-panel{position:fixed;top:auto;right:12px;bottom:12px;left:12px;width:auto;max-height:74vh}.library-layout{grid-template-columns:1fr;overflow:visible}.library-list-panel{border-right:0;border-bottom:1px solid #dbe3ef}.route-card-meta,.route-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.share-header{display:grid}.share-meta{grid-template-columns:repeat(2,minmax(0,1fr))}.share-map-grid{grid-template-columns:1fr;height:auto;min-height:0}.share-map-grid .map-shell{min-height:420px}.share-link-row,.detail-upload-panel{grid-template-columns:1fr}.detail-upload-controls,.detail-paste-zone{grid-template-columns:1fr;justify-items:start}}
