/* AGS Danışmanlık · Ortak Öğrenci Tasarım Sistemi
   Yalnızca sunum katmanıdır. İşlevsel JS / metin / veri değişmez. */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Playfair+Display:wght@500;600;700&display=swap');
:root{
  --olive:#5C743B;--sand:#D6C1A6;--green-900:#26301B;--green-700:#3D4D27;
  --cream:#F3ECE0;--paper:#FBF8F2;--sand-100:#E9DDCB;--sage-100:#E4E8D8;
  --caramel:#A88B66;--sage:#B6C69F;--ink:#1F2A17;--ink-soft:#5F6853;
  --student-sidebar-width:252px;
}
html{scroll-behavior:smooth}
body.student-theme{margin:0!important;background:var(--cream)!important;color:var(--ink)!important;font-family:Inter,system-ui,-apple-system,Segoe UI,sans-serif!important;font-size:14px;line-height:1.66;min-height:100vh}
body.student-theme *{box-sizing:border-box}
body.student-theme a{color:var(--olive);text-underline-offset:3px}
body.student-theme :is(h1,h2,h3,h4){color:var(--green-900);font-family:'Playfair Display',Georgia,serif!important;letter-spacing:-.025em;line-height:1.25}
body.student-theme h1{font-size:clamp(1.75rem,3.2vw,2.8rem);font-weight:700}
body.student-theme h2{font-size:clamp(1.3rem,2vw,1.85rem);font-weight:650}
body.student-theme h3{font-size:clamp(1.05rem,1.6vw,1.4rem)}
body.student-theme :is(p,.muted,.small,.hint,.label,dt,.caption){color:var(--ink-soft)}
body.student-theme :is(input,select,textarea){font:inherit;color:var(--ink);background:var(--paper);border:1px solid var(--sand);border-radius:12px;min-height:46px;max-width:100%}
body.student-theme :is(input,select,textarea):focus{outline:3px solid var(--sage);outline-offset:2px;border-color:var(--olive)}
body.student-theme :is(button,.btn,.button,.exam-link,.profile-edit-link,.dashboard-entry){font-family:Inter,system-ui,sans-serif;border-radius:12px;min-height:44px;transition:background-color .22s ease,border-color .22s ease,transform .22s ease,box-shadow .22s ease}
body.student-theme :is(button,.btn,.button,.exam-link,.profile-edit-link,.dashboard-entry):hover{transform:translateY(-2px)}
body.student-theme :is(button,.btn,.button,.exam-link,.profile-edit-link,.dashboard-entry):focus-visible,
body.student-theme a:focus-visible{outline:3px solid var(--caramel);outline-offset:3px}
body.student-theme :is(button,.btn,.button,.exam-link,.profile-edit-link,.dashboard-entry):disabled{opacity:.55;cursor:not-allowed;transform:none}
body.student-theme :is(.btn,.button,.exam-link,.profile-edit-link,.dashboard-entry):not(.soft):not(.secondary){background:var(--olive);color:var(--paper);border-color:var(--olive)}
body.student-theme :is(.btn,.button,.exam-link,.profile-edit-link,.dashboard-entry):not(.soft):not(.secondary):hover{background:var(--green-700)}
body.student-theme :is(.btn.soft,.btn.secondary,.button.soft,button.soft,button.secondary){background:var(--sage-100);color:var(--green-900);border-color:var(--sage)}
body.student-theme :is(.btn.soft,.btn.secondary,.button.soft,button.soft,button.secondary):hover{background:var(--sand-100)}
/* Sabit, tutarlı öğrenci navigasyonu: tüm sayfalarda aynı yapı. */
body.student-theme>.student-sidebar{position:fixed;left:0;top:0;bottom:0;z-index:80;width:var(--student-sidebar-width);background:var(--paper);border-right:1px solid var(--sand);padding:23px 15px 24px;display:flex;flex-direction:column;overflow-y:auto;box-shadow:5px 0 20px #26301B08}
body.student-theme .student-sidebar__brand{text-decoration:none;display:flex;align-items:center;gap:10px;padding:5px 10px 26px;color:var(--green-900);border-bottom:1px solid var(--sand-100);margin-bottom:18px}
body.student-theme .student-sidebar__mark{width:34px;height:34px;border-radius:11px;display:grid;place-items:center;background:var(--green-900);color:var(--sand);font:700 18px Georgia,serif;flex:0 0 auto}
body.student-theme .student-sidebar__name{font:700 19px/1.2 'Playfair Display',Georgia,serif;color:var(--green-900)}
body.student-theme .student-sidebar__eyebrow{display:block;font:700 10px/1.8 Inter,sans-serif;letter-spacing:.17em;color:var(--ink-soft)}
body.student-theme .student-sidebar__nav{display:flex;flex-direction:column;gap:5px}
body.student-theme .student-sidebar__nav a{display:flex;align-items:center;gap:11px;text-decoration:none;border-radius:12px;padding:12px 13px;min-height:45px;color:var(--green-900);font:600 13px/1.45 Inter,sans-serif;transition:background-color .2s ease,color .2s ease}
body.student-theme .student-sidebar__nav a:hover{background:var(--sage-100);color:var(--green-900)}
body.student-theme .student-sidebar__nav a[aria-current="page"]{background:var(--olive);color:var(--paper);font-weight:750}
body.student-theme .student-sidebar__nav svg{width:19px;height:19px;flex:0 0 19px;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8}
body.student-theme .student-sidebar__foot{margin-top:auto;border-top:1px solid var(--sand-100);padding:19px 11px 0;font-size:11px;color:var(--ink-soft);letter-spacing:.08em}
/* Eski farklı menüleri sakla; asıl içerik ve uygulama kodu korunur. */
body.student-theme :is(.shell,.layout){display:block!important;min-height:100vh}
body.student-theme :is(.shell>.side,.shell>.nav,.layout>.sidebar){display:none!important}
body.student-theme>header{margin-left:var(--student-sidebar-width)!important;background:var(--green-900)!important;color:var(--cream)!important;padding:17px clamp(18px,3vw,42px)!important;min-height:72px;box-shadow:none!important;border-bottom:1px solid var(--green-700)}
body.student-theme>header :is(a,strong){color:var(--cream)!important}
body.student-theme>header nav.toplinks{display:none!important}
body.student-theme :is(.main,.shell>.main,.layout>main,main,main.content,.content){color:var(--ink)}
body.student-theme :is(.shell>.main,.layout>main,body>main,body>header+main){margin-left:var(--student-sidebar-width)!important}
body.student-theme .shell>.main{width:auto!important;max-width:none!important}
body.student-theme main.content,body.student-theme .content{max-width:1320px!important;margin-left:auto!important;margin-right:auto!important;padding:32px clamp(18px,3vw,40px) 76px!important}
body.student-theme main.main,body.student-theme .layout>main{max-width:none!important;padding:32px clamp(18px,3vw,40px) 76px!important}
body.student-theme>main{max-width:1410px!important;width:calc(100% - var(--student-sidebar-width))!important;padding:34px clamp(18px,3vw,42px) 90px!important;margin-right:0!important;margin-top:0!important}
body.student-theme :is(.top,.shell .top){background:var(--green-900)!important;border-color:var(--green-700)!important;color:var(--cream)!important;min-height:70px!important;padding:15px clamp(18px,3vw,40px)!important}
body.student-theme .top :is(strong,span,a){color:var(--cream)!important}
body.student-theme .hero{background:linear-gradient(135deg,var(--green-900),var(--green-700))!important;color:var(--cream)!important;border-color:var(--green-700)!important}
body.student-theme .hero :is(h1,h2,strong,.n){color:var(--cream)!important}
body.student-theme .hero :is(.muted,p){color:var(--sand)!important}
body.student-theme .hero .pill{background:var(--sand)!important;color:var(--green-900)!important}
body.student-theme :is(.panel,.card,.week,section.card,.metric,.stat,.note,.notice,.result-area,.result-heading){border-color:var(--sand)!important}
body.student-theme :is(.panel,.card,.week,section.card){background:var(--paper)!important;border:1px solid var(--sand)!important;border-radius:16px!important;box-shadow:0 10px 30px #26301B0A!important}
body.student-theme .stat,body.student-theme .metric{background:var(--sage-100)!important;border-radius:12px!important}
body.student-theme .hero .stat{background:var(--paper)!important;border-color:var(--sage)!important}
body.student-theme .hero .stat :is(.small,.n,strong){color:var(--green-900)!important}
body.student-theme :is(.value,.n,.metric strong,.stat strong){color:var(--green-900)}
body.student-theme :is(.pill,.badge){background:var(--sand-100)!important;color:var(--green-900)!important;border-radius:999px}
body.student-theme .empty{background:var(--cream)!important;border-color:var(--sand)!important;color:var(--ink-soft)!important;border-radius:12px}
body.student-theme :is(.notice,.note){background:var(--sage-100);color:var(--green-900)}
body.student-theme :is(.error,.notice.error,.note.error){background:var(--sand-100);color:var(--green-900)}
body.student-theme :is(.success,.notice.success,.note.success){background:var(--sage-100);color:var(--green-900)}
body.student-theme .message{background:var(--sage-100)!important;color:var(--green-900)!important;border-color:var(--sage)!important}
body.student-theme :is(.cardhead,.sectionhead){border-color:var(--sand-100)}
body.student-theme :is(a.sectionlink,.sectionlink){color:var(--green-900)!important}
body.student-theme :is(.sectionlink span){color:var(--caramel)!important}
body.student-theme :is(.top .btn,.hero .btn){background:var(--sand)!important;color:var(--green-900)!important}
body.student-theme .result-heading{background:var(--sand-100)!important}
body.student-theme #examTablesFrame{border-color:var(--sand)!important;background:var(--paper)!important}
body.student-theme table th{background:var(--sage-100)!important;color:var(--green-900)!important}
body.student-theme table td{border-color:var(--sand-100)!important}
body.student-theme :is(.task,.task.pending){background:var(--cream)!important;color:var(--green-900)!important;border-color:var(--sand)!important}
body.student-theme :is(.task.completed){background:var(--sage-100)!important;border-left-color:var(--olive)!important}
body.student-theme :is(.task.late){background:var(--sand-100)!important;border-left-color:var(--caramel)!important}
body.student-theme :is(.task.incomplete){background:var(--sand-100)!important;border-left-color:var(--green-700)!important}
body.student-theme :is(.task.in_progress){background:var(--sage-100)!important;border-left-color:var(--green-900)!important}
body.student-theme .day{border-color:var(--sand)!important;background:var(--paper)!important}
body.student-theme .day-head{background:var(--green-900)!important;color:var(--cream)!important}
body.student-theme .day-head small{color:var(--sand)!important}
body.student-theme .day.today .day-head{background:var(--olive)!important;color:var(--paper)!important}
body.student-theme .day-summary{background:var(--sand-100)!important;color:var(--ink)!important}
body.student-theme .day-bottom{background:var(--sage-100)!important;color:var(--green-900)!important;border-color:var(--sand)!important}
body.student-theme .task .subject{color:var(--ink-soft)!important}
body.student-theme :is(.control,.search){background:var(--paper)!important;border-color:var(--sand)!important}
body.student-theme .date-title{font:700 clamp(18px,2vw,24px)/1.4 'Playfair Display',Georgia,serif;color:var(--green-900)}
body.student-theme #legend{color:var(--ink-soft)}
body.student-theme :is(.box,.summary,.callout){border-color:var(--sand)}
body.student-theme ::selection{background:var(--sand);color:var(--green-900)}
/* Mobil: menü yatay erişilebilir, içerik tam genişlik. */
@media(max-width:900px){
 :root{--student-sidebar-width:0px}
 body.student-theme>.student-sidebar{position:sticky;top:0;bottom:auto;width:100%;height:auto;max-height:none;display:block;padding:9px 12px;box-shadow:0 3px 16px #26301B0A}
 body.student-theme .student-sidebar__brand{display:none}
 body.student-theme .student-sidebar__nav{flex-direction:row;overflow-x:auto;gap:5px;scrollbar-width:thin;padding-bottom:2px}
 body.student-theme .student-sidebar__nav a{flex:none;white-space:nowrap;min-height:43px;padding:10px 12px}
 body.student-theme .student-sidebar__foot{display:none}
 body.student-theme>header{margin-left:0!important;min-height:55px}
 body.student-theme :is(.shell>.main,.layout>main,body>main,body>header+main){margin-left:0!important}
 body.student-theme>main{width:100%!important;max-width:none!important}
 body.student-theme .content,body.student-theme main.content{padding:20px 14px 65px!important}
 body.student-theme .shell>.main,body.student-theme .layout>main{padding:20px 14px 65px!important}
}
@media(max-width:520px){
 body.student-theme h1{font-size:clamp(26px,7.3vw,34px)}
 body.student-theme .grid:not(.calendar):not(.metrics){grid-template-columns:1fr!important}
 body.student-theme :is(.panel,.card,.hero){padding:17px!important}
 body.student-theme .calendar{min-width:1150px}
}
@media(prefers-reduced-motion:reduce){
 html{scroll-behavior:auto}
 body.student-theme *,body.student-theme *::before,body.student-theme *::after{transition:none!important;animation:none!important}
}
/* Yalın 'main' kullanan öğrenci ekranlarının konumu */
body.student-theme .shell>main{margin-left:var(--student-sidebar-width)!important;max-width:none!important;width:auto!important}
body.student-theme .shell>main .content{margin-left:auto!important;margin-right:auto!important}
body.student-theme>.student-sidebar+.shell>main{padding-bottom:70px}
body.student-theme .shell>.main>.top{margin:0}
/* Profildeki gömülü ÖSYM hedef iframe'i bağımsız sayfa gibi görünmemeli. */
body.student-theme.embedded>.student-sidebar{display:none!important}
body.student-theme.embedded>header{display:none!important}
body.student-theme.embedded>main{margin:0!important;width:100%!important;max-width:none!important;padding:0 0 10px!important}
body.student-theme.embedded :is(.panel,.card){box-shadow:none!important}
@media(max-width:900px){body.student-theme .shell>main{margin-left:0!important}}

/* Kâğıt ritmi ve sakin defter detayları */
body.student-theme .content>section.card:nth-of-type(even),
body.student-theme .content>.two:nth-of-type(even)>section.card{background:var(--sand-100)!important}
body.student-theme .content>section.card:nth-of-type(odd){background:var(--paper)!important}
body.student-theme .content>.hero{position:relative;overflow:hidden}
body.student-theme .content>.hero::after{content:"";position:absolute;right:28px;top:18px;bottom:18px;width:1px;background:var(--sand);opacity:.26;pointer-events:none}
body.student-theme :is(.card,.panel,.week){transition:border-color .22s ease,box-shadow .22s ease}
body.student-theme :is(.card,.panel,.week):focus-within{border-color:var(--olive)!important}
body.student-theme :is(.student-sidebar__nav a,.sectionlink,.task,.day-head):focus-visible{outline:3px solid var(--caramel)!important;outline-offset:2px}
body.student-theme select:disabled{background:var(--sand-100)!important;color:var(--ink-soft)!important;opacity:1}
/* Durumlar renk yanında her zaman metin veya işaretle anlatılır. */
body.student-theme .task.completed{color:var(--green-900)!important}
body.student-theme .task.late,body.student-theme .task.incomplete{color:var(--ink)!important}


/* PUSULAM / Student experience v2 */
:root{--ps-border:#D6C1A6;--ps-shadow:0 14px 36px rgba(38,48,27,.065)}
body.student-theme{font-family:Inter,system-ui,sans-serif;text-rendering:optimizeLegibility;background:#F3ECE0;color:#1F2A17}
body.student-theme :is(main,.content,.shell,.grid,.card,.panel,.week){min-width:0}
body.student-theme :is(h1,h2,h3){text-wrap:balance}
body.student-theme :is(.card,.panel,.week){box-shadow:var(--ps-shadow);border:1px solid var(--ps-border);border-radius:16px}
body.student-theme .student-sidebar__nav a{transition:background-color .18s,border-color .18s,color .18s}
body.student-theme .student-sidebar__nav a[aria-current="page"]{font-weight:750}
body.student-theme :is(button,.btn,input,select,textarea){accent-color:#5C743B}
body.student-theme :is(input,select,textarea):focus-visible{outline:3px solid #B6C69F!important;outline-offset:2px}
body.student-theme :is(th){font-size:.78rem;letter-spacing:.025em}
body.student-theme :is(thead){background:#E4E8D8}
body.student-theme :is(tbody tr){border-bottom:1px solid rgba(214,193,166,.65)}
body.student-theme :is(tbody tr):hover{background:rgba(228,232,216,.3)}
body.student-theme :is(img,svg){max-width:100%}
body.student-theme :is(.tablewrap,.scroll,.table-scroll){max-width:100%;overflow-x:auto}
@media(max-width:680px){body.student-theme :is(th,td){padding-block:10px}body.student-theme :is(table){font-size:.88rem}}
@media(prefers-reduced-motion:reduce){body.student-theme,body.student-theme *,body.student-theme *::before,body.student-theme *::after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important}}
