.cm-village-import{padding-bottom:64px}.cm-import-intro{max-width:780px;padding:48px 0 26px}.cm-import-intro h1{font-size:clamp(38px,5vw,64px);line-height:1.05;margin:12px 0 20px}.cm-import-intro h1 span{color:#ffda38}.cm-import-intro>p:last-child{font-size:18px;color:#c0dde1}.cm-village-import .cm-tracker-panel{margin-bottom:22px}.cm-village-import h2{margin-top:0}.cm-village-import label{display:block;font-weight:700;font-size:13px;margin-bottom:8px}.cm-village-import input:not([type=checkbox]),.cm-village-import textarea,.cm-village-import select{background:#0b303c;color:#f4fbfc;border:1px solid #3d6873;border-radius:9px;padding:12px;font:inherit;max-width:100%;box-sizing:border-box}.cm-village-import input[type=file]{width:100%;margin-bottom:18px}.cm-village-import textarea{width:100%;resize:vertical;min-height:120px;font:13px/1.5 ui-monospace,SFMono-Regular,monospace}.cm-village-import button{cursor:pointer;font:inherit;font-weight:700;background:#143f4c;border:1px solid #3d6873;color:#fff;border-radius:9px;padding:11px 18px}.cm-village-import button.cm-tracker-primary{background:#ffda38;color:#082c36;border-color:#ffda38}.cm-village-import button:hover{border-color:#ffda38}.cm-village-import :is(button,input,textarea,select):focus-visible{outline:3px solid #ffda38;outline-offset:3px}.cm-village-import button:disabled{cursor:wait;opacity:.6}.cm-import-submit{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-top:15px}.cm-import-submit span,.cm-import-help{font-size:13px;color:#b5d2d8}.cm-import-help summary{cursor:pointer}.cm-import-help p{max-width:900px}.cm-import-toolbar{display:flex;justify-content:space-between;align-items:end;gap:16px;margin:30px 0 18px}.cm-import-toolbar select{min-width:min(330px,70vw)}.cm-import-tabs{display:flex;gap:8px;margin:22px 0}.cm-import-tabs button[aria-pressed=true]{background:#ffda38;color:#082c36;border-color:#ffda38}.cm-import-section-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px}.cm-import-timers,.cm-import-progress{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,245px),1fr));gap:14px}.cm-import-timer,.cm-import-progress-card{background:#0c323e;border:1px solid #315c68;padding:18px;border-radius:12px}.cm-import-timer strong,.cm-import-timer time{display:block;margin-bottom:6px}.cm-import-timer time{color:#ffda38;font-size:20px;font-weight:700}.cm-import-timer small{display:block;color:#b5d2d8;line-height:1.7}.cm-import-progress-card h3{margin:0 0 10px;font-size:16px}.cm-import-progress-card strong{font-size:26px;color:#8eebb0}.cm-import-progress-card progress{display:block;width:100%;height:9px;accent-color:#8eebb0;margin:12px 0}.cm-import-progress-card p{margin:8px 0;font-size:13px;color:#b5d2d8}.cm-import-table-wrap{overflow:auto;max-height:650px;border:1px solid #315c68;border-radius:10px}.cm-import-table{width:100%;border-collapse:collapse;font-size:14px;white-space:nowrap}.cm-import-table th,.cm-import-table td{padding:13px 15px;text-align:left;border-bottom:1px solid #315c68}.cm-import-table th{position:sticky;top:0;background:#103b48;color:#c7e4e9;z-index:1}.cm-import-table td:first-child{min-width:200px;white-space:normal}.cm-import-table tr:last-child td{border-bottom:0}.cm-import-item{display:flex;align-items:center;gap:10px}.cm-import-item img{width:36px;height:36px;object-fit:contain;flex:none}.cm-import-item small{display:block;color:#a9c9d0;font-size:11px;margin-top:4px}.cm-import-item details{max-width:400px;white-space:normal}.cm-import-item pre{white-space:pre-wrap;font-size:11px}.cm-import-good{color:#8eebb0}.cm-import-caution{color:#ffca80}.cm-import-error{color:#ff9b98}.cm-import-filters{display:flex;gap:16px;flex-wrap:wrap;align-items:end;margin:20px 0}.cm-import-filters label{flex:1;min-width:150px}.cm-import-filters label select,.cm-import-filters label input[type=search]{display:block;width:100%;margin-top:8px}.cm-import-filters label.cm-import-check{display:flex;align-items:center;gap:8px;min-height:44px;flex:0 0 auto}.cm-import-cosmetics{display:flex;gap:10px;flex-wrap:wrap}.cm-import-cosmetics span{padding:9px 13px;border:1px solid #3d6873;border-radius:8px;font-size:13px}.cm-import-table .cm-import-change{white-space:normal;min-width:180px;max-width:420px}.cm-import-profile h2{overflow-wrap:anywhere}.cm-import-empty{color:#b5d2d8;padding:14px 0}.cm-village-import [hidden]{display:none!important}#cm-import-status{min-height:20px;margin-bottom:0}#cm-import-delete{font-size:13px}@media(max-width:650px){.cm-import-intro{padding-top:28px}.cm-import-toolbar{align-items:stretch;flex-direction:column}.cm-import-toolbar select{width:100%;min-width:0}.cm-import-submit button{width:100%}.cm-import-table th,.cm-import-table td{padding:10px}.cm-import-tabs button{flex:1;padding:12px 8px}.cm-import-section-head{align-items:start}.cm-import-filters{gap:10px}}

.cm-import-progress-card{align-self:start}.cm-import-card-upgrades{border-top:1px solid #315c68;margin-top:16px;padding-top:12px}.cm-import-card-upgrades summary{cursor:pointer;color:#ffda38;font-size:14px;font-weight:700;line-height:1.5}.cm-import-card-upgrades summary:hover{color:#fff}.cm-import-card-upgrades summary:focus-visible{outline:2px solid #ffda38;outline-offset:4px;border-radius:3px}.cm-import-card-upgrades ul{list-style:none;margin:12px 0 0;padding:0;max-height:340px;overflow:auto}.cm-import-card-upgrades li{padding:10px 0;border-bottom:1px solid #315c68;font-size:13px}.cm-import-card-upgrades li:last-child{border:0;padding-bottom:0}.cm-import-upgrade-name{display:flex;align-items:center;gap:8px;font-weight:700;overflow-wrap:anywhere}.cm-import-upgrade-name img{width:30px;height:30px;object-fit:contain;flex:none}.cm-import-upgrade-level{display:block;color:#c7e4e9;margin-top:5px}.cm-import-card-upgrades li small{display:block;margin-top:4px}

.cm-import-progress-help{display:inline-block;position:relative;margin-left:10px;vertical-align:4px}.cm-village-import .cm-import-help-button{display:inline-flex;align-items:center;justify-content:center;width:23px;height:23px;padding:0;border-radius:50%;font-size:13px;line-height:1;color:#c7e4e9;border-color:#65858d;background:transparent}.cm-import-progress-tooltip{display:none;position:absolute;top:calc(100% + 9px);left:-90px;width:245px;max-width:70vw;box-sizing:border-box;padding:13px;border:1px solid #65858d;border-radius:9px;background:#082a35;color:#ecf8fa;box-shadow:0 5px 20px #0005;font-size:12px;line-height:1.6;z-index:5;font-weight:400}.cm-import-progress-help:hover .cm-import-progress-tooltip,.cm-import-progress-help:focus-within .cm-import-progress-tooltip,.cm-import-progress-help.is-open .cm-import-progress-tooltip{display:block}
.cm-import-progress-help{vertical-align:3px;margin-left:8px}.cm-village-import .cm-import-help-button{width:20px!important;height:20px!important;min-width:20px!important;min-height:20px!important;max-width:20px!important;max-height:20px!important;padding:0!important;box-sizing:border-box!important;aspect-ratio:1;border:1px solid #71929a!important;border-radius:50%!important;font:600 12px/1 Arial,sans-serif!important;color:#b8d3d9!important;transform:none!important;box-shadow:none!important}.cm-village-import .cm-import-help-button:hover{color:#ffda38!important;border-color:#ffda38!important}.cm-village-import .cm-import-help-button:focus{outline:none!important}.cm-village-import .cm-import-help-button:focus-visible{outline:2px solid #ffda38!important;outline-offset:3px!important}
.cm-village-import .cm-import-help-button{color:#70c7ff!important;border-color:#70c7ff!important}.cm-village-import .cm-import-help-button:hover{color:#a5ddff!important;border-color:#a5ddff!important}.cm-village-import .cm-import-help-button:focus-visible{outline-color:#70c7ff!important}

/* Village identity and aggregate level progress. */
.cm-import-tabs button[data-village]{display:inline-flex;align-items:center;gap:9px;text-align:left;min-height:58px}
.cm-import-tabs button[data-village] img{width:38px;height:38px;object-fit:contain;flex-shrink:0}
.cm-import-tabs button[data-village] small{display:block;font-size:11px;line-height:1.5;font-weight:600;opacity:.85}

.cm-import-tabs button[data-village] .cm-import-village-value{font-weight:800;color:#8ee6b5}
.cm-import-tabs button[data-village][aria-pressed="true"] .cm-import-village-value{color:#166534}

.cm-import-tabs button[data-village] .cm-import-hall-number{font-weight:400}

.cm-import-item-progress{font-size:12px;margin-top:9px;min-width:110px}.cm-import-item-progress progress{display:block;width:100%;height:5px;margin:12px 0;accent-color:#8ee6b5}.cm-import-item-progress small{display:block;color:#ffda38;font-size:12px}
