/* DersTime v1.18.24: güvenli seçimli XML aktarımı ve sade blok çözüm akışı */

/* XML incelenirken kullanıcıya görünür, canlı durum penceresi */
dialog.asc-import-analysis-modal{width:min(560px,calc(100vw - 24px));max-width:560px;padding:0;border:0;border-radius:24px;background:transparent;overflow:visible}
.asc-import-analysis-shell{position:relative;display:grid;justify-items:center;gap:11px;padding:34px 34px 28px;border:1px solid #e0e5ee;border-radius:24px;background:#fff;box-shadow:0 30px 90px rgba(25,34,58,.3);text-align:center;color:#30394d}
.asc-import-analysis-shell .modal-close{top:13px;right:13px}.asc-import-analysis-shell h2{margin:0;font-size:23px}.asc-import-analysis-shell>p{max-width:440px;margin:0;color:#727d92;font-size:11px;line-height:1.6}.asc-import-analysis-shell>.btn{margin-top:2px}
.asc-import-analysis-orbit{position:relative;width:78px;height:78px;margin-bottom:4px}.asc-import-analysis-orbit>span,.asc-import-analysis-orbit>i{position:absolute;inset:0;border:3px solid #e7eafa;border-top-color:#5b5bd6;border-radius:50%;animation:ascImportOrbit 1.15s linear infinite}.asc-import-analysis-orbit>i{inset:9px;border-color:#e6f3ef;border-right-color:#149177;animation-direction:reverse;animation-duration:.85s}.asc-import-analysis-orbit>b{position:absolute;inset:19px;display:grid;place-items:center;border-radius:13px;background:linear-gradient(145deg,#625ee0,#4847b8);color:#fff;font-size:12px;box-shadow:0 8px 20px rgba(83,78,195,.28)}
@keyframes ascImportOrbit{to{transform:rotate(360deg)}}
.asc-import-analysis-progress{width:min(390px,100%);height:7px;margin-top:2px;overflow:hidden;border-radius:999px;background:#eef0f5}.asc-import-analysis-progress>i{display:block;width:42%;height:100%;border-radius:inherit;background:linear-gradient(90deg,#5b5bd6,#8581ee,#1b9a7f);animation:ascImportProgress 1.45s ease-in-out infinite}
@keyframes ascImportProgress{0%{transform:translateX(-110%)}100%{transform:translateX(340%)}}
.asc-import-analysis-stages{display:flex;align-items:center;justify-content:center;gap:7px;color:#8992a4;font-size:8px;font-weight:850}.asc-import-analysis-stages span{display:flex;align-items:center;gap:6px}.asc-import-analysis-stages span+span:before{content:'›';color:#c0c6d1}.asc-import-analysis-stages .active{color:#5654ba}
.asc-import-analysis-warning{display:grid;grid-template-columns:28px minmax(0,1fr);align-items:start;gap:10px;width:100%;margin-top:4px;padding:11px 12px;border:1px solid #efd7a9;border-radius:13px;background:#fffaf0;text-align:left}.asc-import-analysis-warning>span{display:grid;place-items:center;width:27px;height:27px;border-radius:9px;background:#f4dfb8;color:#8c5a07;font-weight:950}.asc-import-analysis-warning p{color:#806d48;font-size:9px;line-height:1.5}.asc-import-analysis-warning b{color:#65480f}
.asc-import-analysis-shell.error{border-color:#efc4cd}.asc-import-analysis-error-icon{display:grid;place-items:center;width:58px;height:58px;border-radius:18px;background:#bd3150;color:#fff;font-size:26px;font-weight:950}.asc-import-analysis-error-message{width:100%;padding:11px 12px;border-radius:12px;background:#fff1f3;color:#8e2940;font-size:10px;line-height:1.5}.asc-import-analysis-error-actions{display:flex;gap:8px;margin-top:3px}
.asc-import-analysis-shell.committing{min-height:390px}.asc-import-commit-counts{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;width:min(390px,100%);margin-top:5px}.asc-import-commit-counts span{padding:10px;border:1px solid #e1e5ed;border-radius:12px;background:#fafbfc;text-align:left}.asc-import-commit-counts b,.asc-import-commit-counts small{display:block}.asc-import-commit-counts b{font-size:18px}.asc-import-commit-counts small{margin-top:2px;color:#818a9c;font-size:8px}

/* Yedi adımlı aktarım ve açık veri değiştirme uyarısı */
.asc-import-steps{grid-template-columns:repeat(7,minmax(0,1fr))}
.asc-import-replace-card{position:relative;max-width:850px;margin:0 auto;padding:28px 30px!important;border-color:#efbdc8!important;background:linear-gradient(180deg,#fff,#fff8f9)!important;text-align:center}.asc-import-replace-icon{display:grid;place-items:center;width:58px;height:58px;margin:0 auto 12px;border-radius:18px;background:#ba304d;color:#fff;font-size:26px;font-weight:950;box-shadow:0 12px 26px rgba(170,42,68,.22)}.asc-import-replace-card>h3{font-size:22px!important;color:#7f2639!important}.asc-import-replace-card>p{max-width:720px;margin:0 auto 16px!important;color:#795a62!important;font-size:11px!important}.asc-import-replace-list{display:grid;gap:7px;max-width:680px;margin:0 auto 17px;text-align:left}.asc-import-replace-list span{padding:8px 10px;border-radius:10px;background:#fff;color:#526078;font-size:9px;font-weight:750}
.asc-import-acknowledge{display:flex;align-items:center;gap:11px;max-width:680px;margin:0 auto;padding:12px 13px;border:1px solid #e5aab7;border-radius:13px;background:#fff;cursor:pointer;text-align:left}.asc-import-acknowledge input{width:19px;height:19px;accent-color:#b92f4b}.asc-import-acknowledge span,.asc-import-acknowledge b,.asc-import-acknowledge small{display:block}.asc-import-acknowledge span{min-width:0}.asc-import-acknowledge b{font-size:10px;color:#6f2939}.asc-import-acknowledge small{margin-top:3px;color:#7e6b70;font-size:8px;line-height:1.4}

/* Ders ve öğretmen seçim ekranı */
.asc-import-selection-card{padding:0!important;overflow:hidden}.asc-import-selection-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:18px 19px 14px}.asc-import-selection-head h3{margin:4px 0 5px;font-size:20px}.asc-import-selection-head p{max-width:770px;color:#748096;font-size:10px;line-height:1.55}.asc-import-selection-head>span{padding:7px 10px;border-radius:999px;background:#e7f6f1;color:#08765f;font-size:9px;font-weight:900;white-space:nowrap}
.asc-import-selection-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 18px;border-block:1px solid #e6e9ef;background:#f8f9fc}.asc-import-selection-toolbar>label{display:flex;align-items:center;gap:7px;min-width:260px;padding:0 10px;border:1px solid #dfe4ec;border-radius:10px;background:#fff}.asc-import-selection-toolbar input{width:100%;min-height:35px;border:0!important;background:transparent!important;box-shadow:none!important;font-size:9px}.asc-import-selection-toolbar>div{display:flex;gap:6px}
.asc-import-select-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;max-height:355px;overflow:auto;padding:12px}.asc-import-select-row{display:grid;grid-template-columns:20px 44px minmax(0,1fr) auto;align-items:center;gap:8px;min-width:0;padding:9px;border:1px solid #e1e5ec;border-radius:11px;background:#fafbfc;cursor:pointer;transition:border-color .15s,background .15s,box-shadow .15s}.asc-import-select-row:hover{border-color:#a9b2dc}.asc-import-select-row.selected{border-color:#9ed5c6;background:#f2fbf8;box-shadow:0 0 0 1px rgba(15,131,105,.04)}.asc-import-select-row>input{position:absolute;opacity:0;pointer-events:none}.asc-import-select-check{display:grid;place-items:center;width:19px;height:19px;border:1px solid #cdd3df;border-radius:6px;background:#fff;color:transparent;font-size:9px;font-weight:950}.asc-import-select-row.selected .asc-import-select-check{border-color:#14866e;background:#14866e;color:#fff}.asc-import-select-code{overflow:hidden;color:#707a8f;font-size:7px;font-weight:900;text-overflow:ellipsis;white-space:nowrap}.asc-import-select-copy,.asc-import-select-copy b,.asc-import-select-copy small{display:block;min-width:0}.asc-import-select-copy b{overflow:hidden;color:#343e53;font-size:8.5px;text-overflow:ellipsis;white-space:nowrap}.asc-import-select-copy small{margin-top:2px;color:#8a93a5;font-size:6.8px}.asc-import-select-row>em{padding:3px 5px;border-radius:999px;background:#fff0ec;color:#ae513d;font-size:6px;font-style:normal;font-weight:850}
.asc-import-selection-excluded,.asc-import-final-danger{display:grid;grid-template-columns:30px minmax(0,1fr);align-items:start;gap:10px;margin-top:10px;padding:11px 12px;border-radius:12px;text-align:left}.asc-import-selection-excluded{border:1px solid #d9deea;background:#f6f7fa;color:#5f6a7f}.asc-import-final-danger{border:1px solid #edb7c2;background:#fff1f3;color:#7f293b}.asc-import-selection-excluded>span,.asc-import-final-danger>span{display:grid;place-items:center;width:29px;height:29px;border-radius:9px;font-weight:950}.asc-import-selection-excluded>span{background:#e6e9ef;color:#677287}.asc-import-final-danger>span{background:#b92f4b;color:#fff}.asc-import-selection-excluded b,.asc-import-final-danger b{font-size:9px}.asc-import-selection-excluded p,.asc-import-final-danger p{margin-top:3px;font-size:8px;line-height:1.45}

/* Blok bazlı çözüm: tek otomatik öneri, geri kalan ayrıntılar kapalı */
.placement-automation-flow{display:flex;align-items:center;justify-content:center;gap:8px;padding:8px 10px;border:1px solid #e0e4eb;border-radius:12px;background:#fff}.placement-automation-flow>span{display:flex;align-items:center;gap:6px;color:#7b8598}.placement-automation-flow>span>b{display:grid;place-items:center;width:22px;height:22px;border-radius:8px;background:#edf0f5;color:#687388;font-size:8px}.placement-automation-flow>span>small{font-size:7.5px;font-weight:850}.placement-automation-flow>span.active{color:#4f5bb1}.placement-automation-flow>span.active>b{background:#5b67c3;color:#fff}.placement-automation-flow>i{color:#bdc3cf;font-style:normal;font-weight:950}
.placement-smart-recommendation{position:relative;display:grid;grid-template-columns:45px minmax(0,1fr) auto;align-items:center;gap:12px;padding:18px 14px 13px;border:1px solid #9bd8c7;border-radius:14px;background:linear-gradient(135deg,#f0fbf7,#fff);color:#295f53}.placement-smart-recommendation.swap{border-color:#e7cc98;background:linear-gradient(135deg,#fff8e9,#fff);color:#755315}.placement-smart-recommendation.pattern{border-color:#abb6e8;background:linear-gradient(135deg,#f2f4ff,#fff);color:#46529b}.placement-smart-recommendation.blocked{border-color:#e9b8c2;background:linear-gradient(135deg,#fff1f3,#fff);color:#7e2b3d}.placement-smart-recommendation>span{display:grid;place-items:center;width:43px;height:43px;border-radius:13px;background:#14896f;color:#fff;font-size:16px;font-weight:950}.placement-smart-recommendation.swap>span{background:#c68013}.placement-smart-recommendation.pattern>span{background:#5b67c3}.placement-smart-recommendation.blocked>span{background:#b92f4b}.placement-smart-recommendation h4{margin:0 0 3px;font-size:12px}.placement-smart-recommendation p{font-size:8.5px;line-height:1.45}.placement-smart-recommendation small{display:block;margin-top:4px;color:#738078;font-size:7px;font-weight:750}.placement-smart-recommendation>.btn{font-size:8px;white-space:nowrap}.placement-smart-badge{position:absolute;top:0;left:14px;transform:translateY(-50%);padding:4px 7px;border-radius:999px;background:#14896f;color:#fff;font-size:6.5px;font-weight:950;text-transform:uppercase;letter-spacing:.04em}.placement-smart-recommendation.swap .placement-smart-badge{background:#c68013}.placement-smart-recommendation.pattern .placement-smart-badge{background:#5b67c3}.placement-smart-recommendation.blocked .placement-smart-badge{background:#b92f4b}
.placement-secondary-panel{overflow:hidden;border:1px solid #dfe4eb;border-radius:13px;background:#fff}.placement-secondary-panel>summary{display:grid;grid-template-columns:31px minmax(0,1fr) auto 16px;align-items:center;gap:9px;padding:10px 11px;list-style:none;cursor:pointer;background:#f8f9fb}.placement-secondary-panel>summary::-webkit-details-marker{display:none}.placement-secondary-panel>summary>span{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:#e9edf5;color:#5967a6;font-size:10px;font-weight:950}.placement-secondary-panel>summary b,.placement-secondary-panel>summary small{display:block}.placement-secondary-panel>summary b{font-size:9px}.placement-secondary-panel>summary small{margin-top:2px;color:#828b9d;font-size:7px}.placement-secondary-panel>summary>em{padding:5px 7px;border-radius:999px;background:#e9edf4;color:#667185;font-size:6.7px;font-style:normal;font-weight:900}.placement-secondary-panel>summary>i{font-style:normal;transition:transform .18s}.placement-secondary-panel[open]>summary>i{transform:rotate(180deg)}.placement-secondary-panel[open]>summary{border-bottom:1px solid #e2e6ed}.placement-secondary-content{padding:0}.placement-panel-note{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 10px 9px}.placement-panel-note p{color:#7b8598;font-size:7px}
.placement-refresh-needed{display:grid;grid-template-columns:32px minmax(0,1fr) auto;align-items:center;gap:10px;margin:10px 15px 0;padding:10px 11px;border:1px solid #e5c681;border-radius:13px;background:#fff8e8;color:#76551c}.placement-refresh-needed>span{display:grid;place-items:center;width:31px;height:31px;border-radius:10px;background:#c58216;color:#fff;font-size:14px;font-weight:950}.placement-refresh-needed b{font-size:9.5px}.placement-refresh-needed p{margin-top:2px;font-size:7.5px;line-height:1.4}.placement-refresh-needed>.btn{font-size:7.5px;white-space:nowrap}

@media(max-width:1050px){
  .asc-import-steps{grid-template-columns:repeat(4,1fr)}
  .asc-import-select-list{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:720px){
  .asc-import-analysis-shell{padding:29px 19px 22px}.asc-import-analysis-stages{flex-direction:column;align-items:flex-start}.asc-import-analysis-stages span+span:before{content:'↓'}
  .asc-import-steps{grid-template-columns:repeat(2,1fr)}.asc-import-replace-card{padding:22px 16px!important}.asc-import-replace-card>h3{font-size:18px!important}
  .asc-import-selection-head,.asc-import-selection-toolbar{align-items:stretch;flex-direction:column}.asc-import-selection-toolbar>label{min-width:0}.asc-import-select-list{grid-template-columns:1fr}.asc-import-select-row{grid-template-columns:20px 42px minmax(0,1fr) auto}
  .placement-automation-flow{align-items:stretch;flex-direction:column}.placement-automation-flow>i{display:none}.placement-smart-recommendation{grid-template-columns:39px minmax(0,1fr)}.placement-smart-recommendation>span{width:38px;height:38px}.placement-smart-recommendation>.btn{grid-column:1/-1;width:100%}.placement-secondary-panel>summary{grid-template-columns:30px minmax(0,1fr) 14px}.placement-secondary-panel>summary>em{display:none}.placement-refresh-needed{grid-template-columns:30px minmax(0,1fr)}.placement-refresh-needed>.btn{grid-column:1/-1}
}

body.theme-dark .asc-import-analysis-shell,body[data-theme="dark"] .asc-import-analysis-shell,body.theme-dark .asc-import-replace-card,body[data-theme="dark"] .asc-import-replace-card,body.theme-dark .asc-import-selection-card,body[data-theme="dark"] .asc-import-selection-card,body.theme-dark .asc-import-select-row,body[data-theme="dark"] .asc-import-select-row,body.theme-dark .placement-automation-flow,body[data-theme="dark"] .placement-automation-flow,body.theme-dark .placement-smart-recommendation,body[data-theme="dark"] .placement-smart-recommendation,body.theme-dark .placement-secondary-panel,body[data-theme="dark"] .placement-secondary-panel{border-color:#394254!important;background:#222936!important;color:#e5e9f1!important}
body.theme-dark .asc-import-analysis-shell h2,body[data-theme="dark"] .asc-import-analysis-shell h2,body.theme-dark .asc-import-selection-head h3,body[data-theme="dark"] .asc-import-selection-head h3,body.theme-dark .asc-import-select-copy b,body[data-theme="dark"] .asc-import-select-copy b,body.theme-dark .placement-smart-recommendation h4,body[data-theme="dark"] .placement-smart-recommendation h4,body.theme-dark .placement-secondary-panel>summary b,body[data-theme="dark"] .placement-secondary-panel>summary b{color:#eef1f7}
body.theme-dark .asc-import-selection-toolbar,body[data-theme="dark"] .asc-import-selection-toolbar,body.theme-dark .placement-secondary-panel>summary,body[data-theme="dark"] .placement-secondary-panel>summary{border-color:#394254;background:#1c222d}body.theme-dark .asc-import-selection-toolbar>label,body[data-theme="dark"] .asc-import-selection-toolbar>label{border-color:#414a5d;background:#252c39}
body.theme-dark .asc-import-select-row.selected,body[data-theme="dark"] .asc-import-select-row.selected{border-color:#397764!important;background:#1e342f!important}.theme-dark .asc-import-acknowledge,[data-theme="dark"] .asc-import-acknowledge{border-color:#70444f;background:#2d252c}.theme-dark .asc-import-replace-list span,[data-theme="dark"] .asc-import-replace-list span,.theme-dark .asc-import-commit-counts span,[data-theme="dark"] .asc-import-commit-counts span{border-color:#3b4353;background:#272e3b;color:#dce2ec}
body.theme-dark .placement-refresh-needed,body[data-theme="dark"] .placement-refresh-needed{border-color:#715c31;background:#352f23;color:#e4ca95}
