/* İDÜ Campus / B — Akış. First beta slice: shell, week, mobile day, lesson detail. */
:root{
  --bg:#f7f8f6;--surface:#fff;--ink:#1b292c;--muted:#5e6d71;
  --line:#dce4e0;--accent:#164f61;--soft:#f2f5f3;--selected:#e6f0f1;
  --control-bg:#f2f5f3;--text-secondary:#5e6d71;
}
[data-theme=dark]{
  --bg:#111a1b;--surface:#192427;--ink:#eaf1ee;--muted:#adbfbe;
  --line:#35474a;--accent:#a5d7dc;--soft:#223035;--selected:#263b40;
  --control-bg:#223035;--text-secondary:#adbfbe;
}
body{background:var(--bg);color:var(--ink);font-family:system-ui,-apple-system,'Segoe UI',Arial,sans-serif}
:where(button,a,input,select,textarea):focus-visible{outline:2px solid #3292bd;outline-offset:3px}
[data-theme=dark] :where(button,a,input,select,textarea):focus-visible{outline-color:#95d3ed}
.flow-layout{display:grid;grid-template-columns:208px minmax(0,1fr);min-height:100dvh}
body.flow-nav-collapsed .flow-layout{grid-template-columns:60px minmax(0,1fr)}
.flow-layout .calendar-shell{min-width:0;margin:0}
.flow-sidebar{background:var(--surface);border-right:1px solid var(--line);height:100dvh;position:sticky;top:0;display:flex;flex-direction:column;min-width:0;z-index:10}
.flow-sidebar-heading{height:67px;display:flex;align-items:center;padding:0 12px;gap:8px;border-bottom:1px solid var(--line)}
.flow-sidebar-mark{width:31px;height:31px;border-radius:5px;background:var(--accent);color:var(--surface);display:grid;place-items:center;font-size:12px;font-weight:800;flex-shrink:0}
.flow-sidebar-name{font-size:15px;font-weight:750;letter-spacing:-.5px;white-space:nowrap;overflow:hidden}
#flow-nav-toggle{margin-left:auto;flex:0 0 27px;height:30px;border-radius:5px;background:var(--soft);font-size:18px;color:var(--accent)}
.flow-sidebar-nav{padding:14px 9px;display:flex;flex-direction:column;gap:3px;overflow:auto}
.flow-sidebar-nav p{margin:15px 9px 5px;color:var(--text-secondary);font-size:10px;font-weight:700;letter-spacing:.08em}
.flow-sidebar-nav a,.flow-sidebar-nav button{display:flex;align-items:center;min-height:43px;width:100%;padding:9px 10px;gap:10px;background:none;text-align:left;border-radius:5px;color:var(--ink);font-size:13px}
.flow-sidebar-nav a:hover,.flow-sidebar-nav button:hover{background:var(--soft)}
.flow-sidebar-nav [aria-current=page]{background:var(--selected);color:var(--accent);font-weight:700}
.flow-sidebar-nav .flow-nav-glyph{flex:0 0 20px;text-align:center;font-size:15px;font-weight:550;color:var(--accent)}
.flow-sidebar-nav .flow-nav-label{white-space:nowrap;overflow:hidden}
.flow-sidebar-footer{margin-top:auto;padding:13px 15px;border-top:1px solid var(--line);font-size:10px;line-height:1.55;color:var(--text-secondary)}
.flow-sidebar-footer a{text-decoration:underline}
.flow-nav-collapsed .flow-sidebar-name,.flow-nav-collapsed .flow-nav-label,.flow-nav-collapsed .flow-sidebar-nav p,.flow-nav-collapsed .flow-sidebar-footer{display:none}
.flow-nav-collapsed .flow-sidebar-heading{padding:5px;display:grid;justify-items:center;height:85px;gap:3px}
.flow-nav-collapsed #flow-nav-toggle{margin:0;width:32px}
.flow-nav-collapsed .flow-sidebar-nav{padding-inline:5px}
.flow-nav-collapsed .flow-sidebar-nav a,.flow-nav-collapsed .flow-sidebar-nav button{justify-content:center;padding:8px 0}
.flow-layout .campus-header{padding-inline:clamp(12px,2vw,28px)}
.flow-layout .calendar-shell main{max-width:none;padding:12px clamp(12px,2vw,28px) 0}
.flow-layout .schedule-panel{border-radius:7px;box-shadow:none;background:var(--surface)}
.flow-layout .calendar-toolbar{padding:9px 12px;gap:7px}
.flow-layout .now-jump{margin-left:0;white-space:nowrap;font-variant-numeric:tabular-nums}
.flow-filters{position:relative}
.flow-filters summary{list-style:none;cursor:pointer;min-height:36px;display:flex;align-items:center;padding:6px 9px;border:1px solid var(--line);border-radius:5px;color:var(--accent);font-size:12px}
.flow-filters summary::-webkit-details-marker{display:none}
.flow-filters[open] summary{background:var(--selected)}
.flow-filter-fields{position:absolute;right:0;top:calc(100% + 5px);z-index:12;display:grid;gap:4px;width:190px;padding:8px 12px;background:var(--surface);border:1px solid var(--line);border-radius:7px;box-shadow:0 8px 22px #0002}
.flow-filter-fields .free-toggle{min-height:36px}
.flow-layout .calendar-toolbar #date-heading{font-variant-numeric:tabular-nums}
.flow-layout .calendar-viewport{max-height:min(76dvh,var(--now-height,1050px));overflow:auto}
.flow-layout #more-open{display:inline-flex}
@media(min-width:761px){
  .flow-layout .campus-brand,.flow-layout #more-open span{display:none}
  .flow-layout #more-open{min-width:38px;padding-inline:9px}
  #more-dialog .campus-menu[aria-label="Program"],#more-dialog .campus-menu[aria-label="Destek"]{display:none}
}
.flow-layout .calendar-shell .event-card.course-colored{--event-bg:color-mix(in srgb,var(--surface) 89%,hsl(var(--course-hue) 66% 51%));--event-line:color-mix(in srgb,var(--line) 71%,hsl(var(--course-hue) 60% 55%))}
.flow-layout .calendar-shell .event-card.course-colored .event-title{color:var(--ink)}
.flow-layout .calendar-shell .event-card{border-radius:4px;box-shadow:none;transform:none}
.flow-calendar-layout{display:grid;grid-template-columns:minmax(0,1fr);min-width:0}
.flow-week-area,.flow-detail{grid-area:1/1}
.flow-week-area{min-width:0;border-right:1px solid var(--line);background:var(--surface)}
.flow-week-scroll{overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:var(--line) transparent;--flow-day-width:76px;scroll-padding-inline-start:var(--flow-day-width)}
.flow-week-board{min-width:1200px}
.flow-week-scale,.flow-week-row{display:grid;grid-template-columns:var(--flow-day-width) minmax(0,1fr);min-width:0}
.flow-week-scale{position:sticky;top:0;z-index:8;height:58px;background:var(--surface);border-bottom:1px solid var(--line)}
.flow-day-stub{position:sticky;left:0;z-index:4;background:var(--surface);border-right:1px solid var(--line);padding:10px 8px;min-width:0}
.flow-day-stub button{display:flex;flex-direction:column;align-items:flex-start;gap:2px;color:var(--ink);font-size:12px;background:none;width:100%;text-align:left}
.flow-day-stub button span{color:var(--text-secondary);font-size:11px;text-transform:capitalize}
.flow-day-stub button strong{font-size:18px;font-weight:650;line-height:1.2}
.flow-week-today .flow-day-stub{background:var(--selected);box-shadow:inset 3px 0 var(--accent)}
.flow-week-today .flow-day-stub button,.flow-week-today .flow-day-stub button span,.flow-today-label{color:var(--accent)}
.flow-today-label{font-size:11px;font-weight:700;line-height:1.2}
.flow-mobile-day-title .flow-today-label{margin-inline-start:6px}
.flow-time-caption{color:var(--text-secondary);font-size:10px;display:flex;align-items:flex-end;justify-content:center}
.flow-time-axis{position:relative;background:var(--surface)}
.flow-time-axis>span:not(.flow-now-clock){position:absolute;bottom:7px;transform:translateX(-50%);font-size:10px;color:var(--text-secondary);font-variant-numeric:tabular-nums;white-space:nowrap}
.flow-time-axis>span:not(.flow-now-clock):first-child{transform:translateX(0)}
.flow-time-axis>span:not(.flow-now-clock):last-child{transform:translateX(-100%)}
.flow-week-row{border-bottom:1px solid var(--line)}
.flow-week-row:last-child{border-bottom:0}
.flow-week-track{position:relative;min-width:0;background-image:linear-gradient(to right,var(--line) 1px,transparent 1px);background-size:10% 100%;background-color:var(--surface)}
.flow-week-row:nth-of-type(odd) .flow-week-track{background-color:var(--soft)}
.flow-day-empty{position:absolute;left:15px;top:15px;font-size:11px;color:var(--text-secondary)}
.flow-event-slot{position:absolute;min-width:0;z-index:1}
.flow-event-slot.has-conflict{box-shadow:inset 0 -3px 0 #ad3445}
.flow-event-slot .event-card{position:static!important;display:flex;flex-direction:column;gap:2px;top:auto!important;left:auto!important;right:auto!important;margin:0!important;width:100%!important;height:100%!important;min-height:0!important;padding:4px 5px!important;border-width:1px 1px 1px 3px;overflow:hidden!important;align-self:initial;transition:none}
.flow-event-slot .event-card:hover{filter:brightness(.96);z-index:4}
.flow-event-slot .event-time{display:block;font-size:9px;line-height:1;white-space:nowrap;font-variant-numeric:tabular-nums}
.flow-event-slot .event-department{font-size:10px!important;line-height:11px!important;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden!important;overflow-wrap:anywhere}
.flow-event-slot .event-title{display:none!important}
.flow-event-slot .event-card:not(:has(.event-department)) .event-title{display:-webkit-box!important;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;font-size:10px;line-height:11px;overflow-wrap:anywhere}
.calendar-shell .flow-event-slot .event-card .event-teacher{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;overflow-wrap:anywhere;white-space:normal;color:var(--text-secondary);font-size:10px;line-height:11px}
.flow-event-slot .event-label{flex:none;font-size:9px!important;line-height:1.2!important;margin:0!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block}
.flow-event-slot .event-extra{display:none}
.flow-event-slot [aria-pressed=true]{outline:2px solid var(--accent);outline-offset:-2px}
.flow-detail{width:min(300px,42%);min-width:0;position:sticky;top:0;align-self:start;justify-self:end;z-index:9;max-height:min(76dvh,var(--now-height,950px));overflow:auto;padding:20px 19px;font-size:13px;background:var(--surface);border:1px solid var(--line);box-shadow:-8px 8px 24px #0002}
#flow-detail-close{float:right;width:32px;height:32px;margin:-7px -7px 4px 8px;background:var(--soft);color:var(--ink);border-radius:4px;font-size:19px}
.flow-detail-label{color:var(--text-secondary);font-size:10px;font-weight:650;letter-spacing:.09em;margin:0 0 12px}
.flow-detail-data h3{font-size:20px;line-height:1.3;letter-spacing:-.35px;overflow-wrap:anywhere;margin:0 0 10px}
.flow-detail-topic{font-size:15px;line-height:1.5;margin:0 0 18px;overflow-wrap:anywhere}
.flow-detail-data dl{display:grid;grid-template-columns:95px minmax(0,1fr);gap:9px 12px;margin:0;padding:15px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.flow-detail-data dt{font-size:12px;color:var(--text-secondary)}
.flow-detail-data dd{margin:0;overflow-wrap:anywhere;font-size:12px;line-height:1.5}
.flow-origin{font-size:11px;line-height:1.55;color:var(--text-secondary);margin-top:15px}
.flow-conflict{font-size:11px;line-height:1.55;color:#a8394d;background:var(--soft);padding:9px;border-left:3px solid currentColor;margin:12px 0}
[data-theme=dark] .flow-conflict{color:#f5a2af}
.flow-now-marker{position:absolute;top:0;bottom:0;z-index:3;pointer-events:none;color:#ad2949}
.flow-now-marker>span{position:absolute;border-left:2px solid currentColor}
.flow-now-marker[data-edge=outside]>span{border-left-style:dashed}
[data-theme=dark] .flow-now-marker{color:#ff9db1}
.flow-now-clock{position:absolute;top:5px;transform:translateX(-50%);padding:2px 4px;border:1px solid var(--line);font-size:10px;line-height:1.3;background:var(--surface);color:var(--ink);border-radius:3px;font-variant-numeric:tabular-nums;white-space:nowrap}
.flow-day-strip,.flow-mobile-week{display:none}
.flow-menu-secondary{margin:10px 10px 0;border-top:1px solid var(--line);padding-top:8px}
.flow-menu-secondary summary{font-size:12px;color:var(--text-secondary);padding:8px 10px;cursor:pointer}
.flow-menu-secondary .campus-menu{padding:4px 0}
.flow-menu-secondary .campus-menu button{width:100%}
@media(max-width:760px){
  .flow-layout,.flow-nav-collapsed .flow-layout{display:block}
  .flow-sidebar{display:none}
  .flow-layout #more-open{display:inline-flex}
  .flow-layout .calendar-shell main{padding:8px 9px 0}
  .flow-layout .campus-header{min-height:52px;padding:6px 11px;gap:7px;flex-wrap:nowrap}
  .flow-layout .campus-brand{font-size:16px}
  .flow-layout .campus-brand img{width:25px;height:25px}
  .flow-layout #extra-lesson-open{display:inline-flex;align-items:center;justify-content:center;flex:0 0 36px;width:36px;height:38px;overflow:hidden;font-size:0;padding:6px;border:1px solid var(--line);border-radius:5px}
  .flow-layout #extra-lesson-open svg{display:block;width:17px;height:17px}
  .flow-layout .schedule-panel{border:0;border-radius:0;background:var(--surface)}
  .flow-layout .calendar-toolbar{padding:6px 8px;gap:5px}
  .flow-layout .calendar-toolbar .date-nav{width:100%;display:flex;gap:5px}
  .flow-layout .date-nav #date-heading{font-size:14px;white-space:normal}
  .flow-layout .calendar-toolbar .view-switch{flex:1;margin:0}
  .flow-layout .calendar-toolbar .now-jump{margin-left:auto;width:auto;min-height:36px;padding:5px 7px;font-size:11px}
  .flow-layout .calendar-toolbar .view-switch button{font-size:12px;min-height:34px;padding-block:5px}
  .flow-layout .calendar-viewport{max-height:none;overflow:visible}
  .flow-layout .calendar-shell .day-list{padding:9px 9px 14px;min-height:250px}
  .flow-day-strip{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;border-bottom:1px solid var(--line);padding:5px 6px}
  .flow-day-strip button{padding:7px 1px;min-width:0;background:transparent;border-radius:4px;display:flex;flex-direction:column;align-items:center;gap:4px;color:var(--text-secondary)}
  .flow-day-strip button span{font-size:10px;text-transform:capitalize}
  .flow-day-strip button strong{font-size:15px;font-weight:600;font-variant-numeric:tabular-nums;color:var(--ink)}
  .flow-day-strip button[aria-pressed=true]{background:var(--selected);color:var(--accent)}
  .flow-day-strip button[aria-pressed=true] strong{color:var(--accent)}
  .flow-day-strip button[aria-current=date]{box-shadow:inset 0 -2px var(--accent)}
  .flow-layout .calendar-shell .day-row{grid-template-columns:52px minmax(0,1fr);gap:7px;border-bottom:1px solid var(--line);padding-bottom:9px;margin-bottom:9px}
  .flow-layout .calendar-shell .day-time{padding-top:8px;font-variant-numeric:tabular-nums;font-size:12px}
  .flow-layout .calendar-shell .day-event{min-height:90px;padding:11px 12px;gap:5px;background:var(--surface)}
  .flow-layout .calendar-shell .day-event .event-department{font-size:13px;line-height:1.4}
  .flow-layout .calendar-shell .day-event .event-title{font-size:14px;line-height:1.45;white-space:normal;overflow:visible;overflow-wrap:anywhere}
  .flow-layout .calendar-shell .day-event .event-teacher{font-size:12px;line-height:1.4;overflow-wrap:anywhere;white-space:normal}
  .flow-layout .calendar-shell .day-event .event-label{font-size:11px}
  .flow-calendar-layout{display:none}
  .flow-mobile-week{display:block;padding:10px}
  .flow-mobile-week-day{position:relative;padding:10px 0 14px;border-bottom:1px solid var(--line)}
  .flow-mobile-day-title{font-size:16px;font-weight:650;background:none;color:var(--ink);padding:4px 0 12px;text-align:left;text-transform:capitalize}
  .flow-week-mobile-entry{display:grid;grid-template-columns:63px minmax(0,1fr);gap:8px;margin:0 0 9px;align-items:start}
  .flow-week-mobile-entry>span{font-size:11px;line-height:1.5;color:var(--text-secondary);font-variant-numeric:tabular-nums;overflow-wrap:anywhere;padding-top:7px}
  .flow-week-mobile-entry .event-card{position:static!important;display:flex;min-height:74px;width:100%!important;height:auto!important;margin:0!important;padding:9px 10px!important;gap:4px;overflow:visible}
  .flow-week-mobile-entry .event-title{display:block!important;font-size:13px!important;line-height:1.4}
  .flow-week-mobile-entry .event-teacher{font-size:11px!important;white-space:normal;overflow-wrap:anywhere}
  .flow-week-mobile-entry .event-time{display:none}
  .flow-week-mobile-entry .event-label{font-size:10px!important}
  .flow-layout .calendar-source-warning{font-size:11px}
  .flow-layout .campus-drawer{border-radius:0 8px 8px 0}
  .flow-layout #details-dialog.lesson-sheet{border-radius:12px 12px 0 0}
}
@media(prefers-reduced-motion:reduce){.flow-layout *{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
