.study-picker{width:calc(100% - 64px);max-width:1184px;padding:0;scroll-margin-top:76px;border:1px solid #dfe3da;border-radius:14px;background:#fff;overflow:hidden}.study-picker [hidden]{display:none!important}.study-picker .picker-heading{padding:13px 20px;background:#fff;color:#25302b;border-radius:0;border-bottom:1px solid #eceee7;gap:12px}.study-picker .picker-heading h2{font-size:21px;letter-spacing:-.5px;max-width:none}.study-picker .picker-heading p{font-size:11px;color:#7c8278;margin:0}.study-picker .picker-body{display:flex;flex-direction:column;gap:12px;padding:14px 20px;border:0;border-radius:0;box-shadow:none;min-height:0}.study-picker button{font:inherit;cursor:pointer}.study-picker .grade-label{display:flex;align-items:center;gap:10px;margin:0 0 6px}.study-picker .grade-label b,.study-picker .written-choice label{font-size:12px;font-weight:650;line-height:1.4}.study-picker .grade-label small{font-size:10px;color:#7b8279;margin:0;line-height:1.4}.study-toolbar{display:flex;gap:18px;align-items:end}.study-grade-control{flex:1;min-width:0}.study-picker .grades{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:6px;margin:0}.study-picker .grades button{height:36px;min-height:36px;display:flex;align-items:center;justify-content:center;gap:2px;padding:0 3px;border:1px solid #e1e4dc;background:#fafbf8;border-radius:7px;line-height:1}.study-picker .grades button b{font-size:16px;font-weight:650;line-height:1}.study-picker .grades button span{font-size:10px;line-height:1;color:inherit}.study-picker .written-choice{width:205px;flex-shrink:0;display:flex;flex-direction:column;gap:6px;padding:0;margin:0;border:0;align-items:stretch}.study-picker select,.study-picker input{border:1px solid #dfe3d9;border-radius:7px;background:white;color:#25302b;font:inherit;font-size:12px;padding:5px 9px;margin:0;height:36px;min-width:0;width:100%;max-width:100%}.study-path-grid{display:flex;gap:7px;margin:0}.study-path-grid>button{display:flex;align-items:center;justify-content:center;gap:7px;padding:7px 12px;min-height:34px;border:1px solid #dfe3d9;background:#fafbf8;border-radius:7px;color:#26332d;line-height:1.3}.study-path-grid strong{font-size:12px;font-weight:600}.study-path-grid>button>span{font-size:16px;line-height:1}.study-picker button[aria-pressed=true]{border-color:#ee6c29;background:#fff2e9;color:#aa430f}.study-picker button:hover,.study-course-options a:hover{border-color:#ee6c29}.study-picker :is(button,a,input,select):focus-visible{outline:2px solid #b44610;outline-offset:2px}.study-course-options{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;margin:0}.study-course-options>a,.study-course-options>button{display:flex;align-items:center;gap:6px;min-width:0;min-height:34px;padding:5px 8px;text-align:left;border:1px solid #e1e4dc;border-radius:7px;background:#fff;color:#26332d;font-size:12px;text-decoration:none;line-height:1.3}.course-symbol{width:17px;height:17px;flex-shrink:0;display:flex;color:#7e8a72}.study-picker [aria-pressed=true] .course-symbol{color:#bc4d17}.course-symbol svg{width:17px;height:17px}.course-name{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.study-course-options small,.study-course-options b{font-size:10px;color:#7b8376;font-weight:500;white-space:nowrap}.study-publisher-options{display:grid;grid-template-columns:repeat(auto-fill,minmax(148px,1fr));gap:8px;margin:0;max-height:none;overflow:visible}.study-publisher-options>button{display:flex;align-items:center;gap:10px;min-width:0;min-height:48px;padding:8px 10px;border:1px solid #e1e4dc;border-radius:10px;background:#fff;line-height:1.25;text-align:left}.study-publisher-options .publisher-logo{position:relative;flex:0 0 34px;width:34px;height:34px;border-radius:8px;background:#f3f5ef;display:grid;place-items:center;overflow:hidden;font-size:11px;font-weight:750;color:#5f6a5c}.study-publisher-options .publisher-logo img{width:100%;height:100%;object-fit:contain;display:block;max-width:none}.study-publisher-options .publisher-logo-fallback{display:none}.study-publisher-options .publisher-logo-fallback.is-visible,.study-publisher-options .publisher-logo img[hidden]+.publisher-logo-fallback{display:grid;place-items:center}.study-publisher-options .publisher-meta{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}.study-publisher-options strong{font-size:12px;font-weight:650;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.study-publisher-options small{font-size:10px;color:#7b8276}.study-empty{grid-column:1/-1;padding:14px;background:#f8f9f5;border:1px dashed #d6dcd0;border-radius:7px;color:#6a7464;font-size:12px;line-height:1.6;margin:0}.study-picker #study-documents{display:flex;flex-direction:column;min-height:130px;border-top:1px solid #e7eae1;padding-top:10px}.pdf-list-heading{display:flex;gap:8px;align-items:center;flex-shrink:0;margin-bottom:7px}.pdf-list-title{display:flex;align-items:center;gap:8px;flex:1;min-width:0}.pdf-list-heading h3{font-size:16px;letter-spacing:-.3px;margin:0}.pdf-list-heading #pdf-count{font-size:10px;color:#748069;white-space:nowrap;background:#f0f3eb;border-radius:20px;padding:2px 7px}.pdf-list-heading label{width:170px;flex-shrink:0}.pdf-list-heading :is(input,select){height:30px;font-size:11px}.pdf-list{overflow:auto;max-height:360px;min-height:0;scrollbar-width:thin;scrollbar-color:#cad2c0 transparent;overscroll-behavior:contain}.pdf-document{display:flex;align-items:center;gap:10px;padding:8px 4px;border-top:1px solid #edf0e7;min-height:54px}.pdf-document:first-child{border-top:0}.pdf-document>div{flex:1;min-width:0}.pdf-document h4{font-size:12px;line-height:1.4;font-weight:600;margin:0;overflow-wrap:anywhere}.pdf-document small{font-size:10px;color:#859079;line-height:1.3;display:block;margin-top:2px}.pdf-file-icon{display:grid;place-items:center;flex-shrink:0;width:32px;height:35px;font:700 9px monospace;background:#fff2e9;color:#b74e1c;border:1px solid #f4e1d3;border-radius:6px}.study-picker .pdf-document .button{min-height:28px;padding:4px 10px;font-size:10px;white-space:nowrap;border-radius:6px;gap:5px}.study-picker .picker-body>div,.study-picker .picker-body>section{flex-shrink:0}.study-picker .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.pdf-viewer{width:min(1200px,94vw);max-width:94vw;height:92vh;max-height:92vh;padding:0;border:0;border-radius:14px;background:#fff;color:#25302b}.pdf-viewer[open]{display:flex;flex-direction:column}.pdf-viewer::backdrop{background:#1b2828b8}.pdf-viewer-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 20px}.pdf-viewer-header h2{font-size:16px;line-height:1.4;margin:4px 0;overflow-wrap:anywhere}.pdf-viewer-header small{font-size:11px;color:#69736d}.pdf-viewer-actions{display:flex;align-items:center;gap:16px;padding:0 20px 12px}.pdf-viewer-actions p{font-size:11px;color:#69736d}.pdf-viewer iframe{border:0;width:100%;flex:1;background:#edf0ea;min-height:200px}
body:is([data-path='/yayin-yazili-pdfleri/'],[data-path='/dersler/']) .nav-row{height:64px}body:is([data-path='/yayin-yazili-pdfleri/'],[data-path='/dersler/']) .topline .wrap{min-height:25px}body:is([data-path='/yayin-yazili-pdfleri/'],[data-path='/dersler/']) .study-picker{display:flex;flex-direction:column;height:calc(100dvh - 114px);min-height:475px;margin-top:12px;margin-bottom:12px}body:is([data-path='/yayin-yazili-pdfleri/'],[data-path='/dersler/']) .study-picker .picker-body{flex:1}body:is([data-path='/yayin-yazili-pdfleri/'],[data-path='/dersler/']) #study-documents{flex:1;flex-shrink:1}body:is([data-path='/yayin-yazili-pdfleri/'],[data-path='/dersler/']) .pdf-list{flex:1;max-height:none}
@media(max-width:900px){.study-course-options{grid-template-columns:repeat(4,minmax(0,1fr))}.study-toolbar{gap:12px}.study-picker .written-choice{width:180px}.study-picker .grades button span{display:none}}
@media(max-width:620px){.study-picker{width:calc(100% - 24px)}.study-picker .picker-heading{padding:11px 12px}.study-picker .picker-heading h2{font-size:18px}.study-picker .picker-heading p{display:none}.study-picker .picker-body{padding:10px 12px;gap:10px}.study-toolbar{flex-direction:column;align-items:stretch;gap:9px}.study-picker .grades{gap:5px}.study-picker .grades button{height:33px;min-height:33px}.study-picker .written-choice{width:100%;flex-direction:row;align-items:center;gap:12px}.study-picker .written-choice label{white-space:nowrap}.study-picker .written-choice select{height:30px;flex:1}.study-path-grid{gap:6px}.study-path-grid>button{flex:1;padding:7px 6px;gap:5px;min-height:34px}.study-path-grid strong{font-size:10px}.study-course-options{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.study-course-options>a,.study-course-options>button{min-height:33px;padding:5px;font-size:10px;gap:4px}.course-symbol,.course-symbol svg{width:15px;height:15px}.study-course-options small{font-size:9px}.study-course-options b{font-size:9px}.study-picker .grade-label{gap:7px}.study-picker .grade-label small{font-size:9px}.study-publisher-options{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;max-height:none;overflow:visible}.study-publisher-options>button{min-height:46px;padding:8px 9px;gap:8px}.study-publisher-options .publisher-logo{flex-basis:30px;width:30px;height:30px;border-radius:7px}.study-publisher-options strong{font-size:11px}.study-publisher-options small{font-size:9px}.pdf-list-heading{flex-wrap:wrap;gap:6px}.pdf-list-title{flex-basis:100%}.pdf-list-heading label{width:calc(50% - 3px)}.pdf-document{gap:7px;padding:7px 0}.pdf-document h4{font-size:11px}.pdf-document small{font-size:9px}.pdf-file-icon{width:26px;height:30px;font-size:8px}.study-picker .pdf-document .button{padding:4px 7px;font-size:10px}.pdf-viewer-header{padding:10px 12px}.pdf-viewer-actions{padding:0 12px 10px;gap:8px}.pdf-viewer-actions p{font-size:9px}.pdf-viewer-header h2{font-size:13px}body:is([data-path='/yayin-yazili-pdfleri/'],[data-path='/dersler/']) .study-picker{min-height:620px}}

.study-path-grid>button{position:relative}.study-picker .study-path-grid>button[aria-disabled=true]{background:#f3f4f0;border-color:#dfe3d9;color:#8a9085;cursor:not-allowed}.study-picker .study-path-grid .study-option-tooltip{display:none;position:absolute;left:0;top:calc(100% + 7px);z-index:10;width:260px;max-width:calc(100vw - 60px);padding:9px 12px;border-radius:7px;background:#25302b;color:#fff;font-size:11px;line-height:1.5;font-weight:500;text-align:left;box-shadow:0 4px 12px #25302b20;pointer-events:none}.study-path-grid>button[aria-disabled=true]:is(:hover,:focus) .study-option-tooltip{display:block}
/* Keep the period chevron next to its text, independent of the toolbar width. */
.study-picker .written-choice{width:205px;align-items:flex-start}.study-picker #study-period{appearance:none;-webkit-appearance:none;width:180px;max-width:100%;padding-right:25px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='m3 4.5 3 3 3-3' fill='none' stroke='%23465148' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-position:right 9px center;background-repeat:no-repeat}
@media(max-width:900px){.study-picker .written-choice{width:180px}}
@media(max-width:620px){.study-picker .written-choice{width:100%;align-items:center}.study-picker #study-period{width:180px;flex:0 1 180px}}

/* Account prompt over the PDF preview; server authorization is a production concern. */
.pdf-preview-stage{position:relative;display:flex;flex:1;min-height:0;overflow:hidden;background:#e8ece6}.pdf-preview-stage iframe{display:block;height:100%;min-height:0}.pdf-login-gate{position:absolute;inset:0;z-index:2;display:flex;align-items:center;justify-content:center;padding:24px;background:rgba(238,241,235,.38);backdrop-filter:blur(5px)}.pdf-viewer.is-locked #pdf-frame{filter:blur(9px);pointer-events:none;user-select:none}.pdf-login-card{width:min(430px,100%);padding:34px 30px;text-align:center;border:1px solid #fff;border-radius:20px;background:rgba(255,255,255,.97);box-shadow:0 18px 65px #25302b20}.pdf-lock-icon{display:grid;place-items:center;width:62px;height:62px;margin:0 auto 20px;border-radius:18px;background:#fff0e5;color:#cf5519}.pdf-lock-icon svg{width:30px;height:30px}.pdf-login-card h3{font-size:23px;line-height:1.3;letter-spacing:-.5px}.pdf-login-card p{font-size:14px;line-height:1.7;color:#5c665f;margin:12px 0 22px}.pdf-login-card .button{width:100%;min-height:46px}.pdf-login-hint{display:block;color:#727970;font-size:11px;line-height:1.6;margin-top:14px}.pdf-viewer-actions[hidden],.pdf-login-gate[hidden]{display:none!important}
@media(max-width:620px){.pdf-login-gate{padding:16px}.pdf-login-card{padding:26px 20px;border-radius:16px}.pdf-login-card h3{font-size:20px}.pdf-login-card p{font-size:13px}.pdf-viewer{height:90dvh;max-height:90dvh}}

.study-picker .study-example-note{margin:6px 0 0;font-size:12px;font-weight:300;line-height:1.5;color:#68716b;text-align:left;}

/* Ders Notları (v91–v100 responsive) */
.study-path-grid{flex-wrap:wrap;row-gap:12px}
.study-picker .study-path-grid>[data-study-mode="notes"]{position:relative;background:#fff;color:#175534;border-color:#528a63;box-shadow:none}
.study-picker .study-path-grid>[data-study-mode="notes"]:hover{background:#fff;border-color:#216441}
.study-picker .study-path-grid>[data-study-mode="notes"][aria-pressed="true"]{background:#eaf7eb;color:#175534;border-color:#528a63;box-shadow:none}
.notes-new{position:absolute;right:6px;top:-8px;border-radius:8px;background:#226641;color:white;padding:2px 6px;font:700 9px/1.15 system-ui;letter-spacing:.02em}
.study-notes{min-width:0;width:100%}
.study-notes .grade-label{flex-wrap:wrap}
.study-notes .grade-label h3{margin:0;font-size:clamp(1rem,2.2vw,1.15rem);line-height:1.3;overflow-wrap:anywhere}
.study-notes .notes-topics{font-size:.88rem;margin:4px 0 10px;color:#45594b;max-width:72ch}
.notes-files{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;width:100%;min-width:0}
/* Tek PDF (Matematik vb.): 2 kolon grid yarım kart bırakmasın */
.notes-files:has(>.note-preview:only-child){grid-template-columns:minmax(0,1fr)}
.notes-files .note-preview{min-width:0;display:grid;align-content:start;padding:0;overflow:hidden;text-align:left;background:white;color:#244733;border:1px solid #c8d9cd;border-radius:10px}
.note-page{display:block;padding:4px;background:#f0f1eb;min-width:0}
.note-page img{display:block;width:100%;height:auto;max-width:100%;box-shadow:0 2px 6px #233b2921}
.note-details{display:grid;gap:2px;padding:5px 6px;line-height:1.2;min-width:0}
.note-details strong{font-size:.80rem;overflow-wrap:anywhere}
.note-details small,.note-details .notes-open{font-size:.68rem}
.notes-open{font-weight:700;color:#245e3a}
.notes-files button:is(:hover,:focus-visible){border-color:#428457;background:#f5faf5}

/* Not kartları + yazılı videosu — tam genişlik, taşmasız */
.study-picker #study-notes{order:10}
.notes-layout{
  display:grid;
  grid-template-columns:minmax(0,1.05fr) minmax(240px,.95fr);
  gap:clamp(12px,2vw,20px);
  align-items:stretch;
  width:100%;
  min-width:0;
}
.notes-layout > .notes-files{max-width:none}
.prep-video{min-width:0;width:100%;margin:0;padding:10px;border:1px solid #adcfb4;border-radius:10px;background:#fff;box-sizing:border-box}
.prep-video h4{margin:0 0 8px;font-size:clamp(.92rem,1.6vw,1rem);color:#244733;line-height:1.35}
.study-picker .prep-play,.prep-video iframe{box-sizing:border-box;position:relative;display:block;width:100%;max-width:100%;aspect-ratio:16/9;height:auto;padding:0;border:0;border-radius:6px;overflow:hidden;background:#15231d}
.prep-play img{width:100%;height:100%;display:block;object-fit:cover}
.prep-play span{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);padding:5px 14px;background:#17251fee;color:white;border-radius:8px;font-size:18px}
.prep-video a{display:inline-block;margin-top:6px;color:#245e3a;font-size:.8rem;font-weight:750}
@media(min-width:901px){
  .notes-layout:has(.prep-video) .note-preview{grid-template-rows:minmax(0,1fr) auto}
  .notes-layout:has(.prep-video) .note-page{display:grid;align-items:center}
  /* Tek PDF (ör. matematik) + video: kart dar, video geniş */
  .notes-layout:has(.notes-files>.note-preview:only-child):has(.prep-video){
    grid-template-columns:minmax(0,240px) minmax(0,1fr);
  }
  .notes-layout:has(.prep-video) .notes-files:has(>.note-preview:only-child){
    grid-template-columns:minmax(0,1fr);
    max-width:240px;
  }
}
/* Tablet: yan yana daralır; video alt satıra düşmez (900+) — 900 altı tek sütun */
@media(max-width:1100px){
  .notes-layout{grid-template-columns:minmax(0,1fr) minmax(220px,.85fr);gap:14px}
}
@media(max-width:900px){
  .study-course-options{grid-template-columns:repeat(3,minmax(0,1fr))}
  .notes-layout{grid-template-columns:1fr;gap:14px;justify-items:stretch}
  .notes-files{grid-template-columns:repeat(2,minmax(0,1fr));width:100%;max-width:none}
  /* Tek PDF + altta video: kart okunaklı genişlikte, video tam satır */
  .notes-files:has(>.note-preview:only-child){
    grid-template-columns:minmax(0,1fr);
    width:100%;
    max-width:min(280px,100%);
    justify-self:start;
  }
  .prep-video{max-width:none;width:100%}
}
@media(max-width:700px){
  .study-path-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,140px),1fr))}
  .study-course-options{grid-template-columns:repeat(2,minmax(0,1fr))}
  .notes-layout{grid-template-columns:1fr;gap:12px}
  .notes-files{width:100%;max-width:none;gap:10px}
  .notes-files:has(>.note-preview:only-child){max-width:min(260px,100%)}
  .prep-video{max-width:none;width:100%}
  .study-picker .grades{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media(max-width:420px){
  .study-course-options{grid-template-columns:1fr 1fr}
  .notes-files{gap:8px}
  .notes-files:has(>.note-preview:only-child){max-width:min(240px,100%)}
  .note-details{padding:6px 7px}
  .note-details strong{font-size:.74rem}
  .prep-video{padding:8px}
  .prep-video h4{font-size:.88rem;overflow-wrap:anywhere}
  .study-picker .grades{grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}
  .study-picker .grades button{min-height:36px}
}
@media(prefers-reduced-motion:no-preference) and (forced-colors:none){
 .prep-video a{background:linear-gradient(105deg,#245e3a 38%,#658c70 50%,#245e3a 62%) 100% 0/300% 100%;background-clip:text;color:transparent;animation:prep-link-shine 4s ease-in-out infinite}
 @keyframes prep-link-shine{0%,62%{background-position:100% 0}95%,100%{background-position:0 0}}
}

/* Notlar açıkken sabit viewport yüksekliği içeriği sıkıştırmasın */
body:is([data-path='/'],[data-path='/yayin-yazili-pdfleri/'],[data-path='/dersler/']) .study-picker:has(#study-notes:not([hidden])){
  height:auto;
  min-height:0;
  overflow:visible;
}
body:is([data-path='/'],[data-path='/yayin-yazili-pdfleri/'],[data-path='/dersler/']) .study-picker:has(#study-notes:not([hidden])) .picker-body{
  overflow:visible;
}
