/* STASTUC v2.2.1 — local file + public spreadsheet importer */
.import-source-shell{display:grid;gap:14px}.import-source-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:6px;border:1.5px solid var(--border,#2b5274);background:rgba(9,45,73,.35);border-radius:12px}.import-source-tab{min-height:48px;border:1.5px solid transparent;border-radius:9px;background:transparent;color:inherit;font:inherit;font-weight:700;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:9px;padding:10px 14px}.import-source-tab span:first-child{font-size:18px}.import-source-tab.active{background:rgba(33,139,218,.16);border-color:#2f8fd0;box-shadow:inset 0 0 0 1px rgba(47,143,208,.12)}.import-panel.hidden{display:none!important}.local-import-actions{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}.spreadsheet-card{text-align:left}.spreadsheet-card .card-head{margin-bottom:10px}.spreadsheet-form{display:grid;grid-template-columns:minmax(0,2fr) minmax(150px,.7fr) auto;gap:10px;align-items:end}.spreadsheet-form .field{margin:0}.spreadsheet-url-input{width:100%}.spreadsheet-actions{display:flex;gap:8px;align-items:center}.spreadsheet-status{margin-top:12px;padding:10px 12px;border:1px solid rgba(112,159,195,.38);border-radius:9px;display:flex;gap:10px;align-items:flex-start;background:rgba(7,33,54,.22)}.spreadsheet-status.hidden{display:none}.spreadsheet-status i{width:9px;height:9px;border-radius:50%;background:#8198aa;margin-top:5px;flex:0 0 auto}.spreadsheet-status.loading i{background:#f1b84b;box-shadow:0 0 0 4px rgba(241,184,75,.1)}.spreadsheet-status.success i{background:#38b979;box-shadow:0 0 0 4px rgba(56,185,121,.1)}.spreadsheet-status.error i{background:#e76a6a;box-shadow:0 0 0 4px rgba(231,106,106,.1)}.spreadsheet-note{margin-top:10px;font-size:12px;line-height:1.55;opacity:.76}.source-badge{display:inline-flex;align-items:center;gap:6px;margin-left:6px;padding:2px 7px;border:1px solid rgba(47,143,208,.45);border-radius:999px;font-size:11px;font-weight:700;color:#78c5ff;background:rgba(47,143,208,.08)}
html[data-theme="light"] .import-source-tabs,html[data-theme="light"] .spreadsheet-status{background:#f6f9fc}.import-source-tab:focus-visible{outline:2px solid #55b2f3;outline-offset:2px}
@media(max-width:880px){.spreadsheet-form{grid-template-columns:1fr}.spreadsheet-actions{justify-content:flex-start}}@media(max-width:560px){.import-source-tabs{grid-template-columns:1fr}.local-import-actions,.spreadsheet-actions{display:grid;grid-template-columns:1fr}.local-import-actions button,.spreadsheet-actions button{width:100%}}
