/* ==========================================================================
   Özel Salihli Koleji — Veli–Öğretmen Randevu Sistemi · arayüz stilleri
   --------------------------------------------------------------------------
   Mobil öncelikli, harici bağımlılık yok (madde 25). Renk ve ölçüler tek
   yerden değiştirilebilsin diye CSS değişkenleriyle tanımlanmıştır.

   Tasarım dili "sessiz otorite": koyu lacivert + kırık beyaz + soluk altın.
   Doygun renk ve gradient kullanılmaz, gölge minimumdadır; güven duygusu
   sadelikle kurulur. Lacivert ve kiremit kırmızısı okulun kendi logosundan
   (#1C5178 / #B91C2B) alınmıştır.

   Yazı tipleri /assets/css/fonts.css içinde kendi sunucumuzdan yüklenir;
   Google Fonts CDN'ine bağlanılmaz (KVKK).
   ========================================================================== */

:root {
    /* Kurumsal renkler — logodan türetilmiştir */
    --navy:         #12324B;   /* koyu bloklar: üst şerit, alt bilgi */
    --navy-2:       #0D2537;   /* koyu blok hover */
    --brand:        #1C5178;   /* birincil eylem rengi */
    --brand-dark:   #143C5A;
    --brand-soft:   #EDF2F6;
    --gold:         #B89A62;   /* vurgu — YALNIZCA koyu zeminde */
    --gold-ink:     #7E6335;   /* açık zeminde altın metin (AA: 5.2:1) */
    --gold-soft:    #F3EEE3;

    --ink:          #1C1A18;
    --ink-soft:     #4A463F;
    --muted:        #6A6560;
    --line:         #E4DED7;
    --line-strong:  #CFC7BD;
    --bg:           #F8F6F3;   /* sayfa zemini — saf beyaz değil */
    --surface:      #FFFFFF;

    --ok:           #1F6B45;
    --ok-soft:      #EDF5F0;
    --warn:         #8A5A15;
    --warn-soft:    #FAF3E6;
    --danger:       #B91C2B;   /* logo kırmızısı */
    --danger-soft:  #FBEFF0;
    --info:         #1C5178;
    --info-soft:    #EDF2F6;

    --radius:       4px;
    --radius-lg:    6px;
    --shadow:       0 1px 2px rgba(28, 26, 24, .04), 0 10px 30px rgba(28, 26, 24, .05);
    --shadow-sm:    0 1px 2px rgba(28, 26, 24, .06);
    --wrap:         1120px;

    --serif:        'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --body:         'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

    color-scheme: light;
}

/* ------------------------------------------------------------------ temel */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 300 16px/1.65 var(--body);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--brand-dark); }

/* Başlıklar serif — ince, geniş, sakin. Gövde metni DM Sans 300 kalır. */
h1, h2, h3 {
    font-family: var(--serif);
    font-weight: 400;
    letter-spacing: -.005em;
    line-height: 1.2;
    margin: 0 0 .5em;
    color: var(--navy);
}
h1 { font-size: 2.05rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1rem; }

strong, b { font-weight: 500; }

.wrap { width: min(var(--wrap), 100%); margin-inline: auto; padding-inline: 16px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.prewrap { white-space: pre-wrap; }

.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 100;
    background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 2px;
    border-radius: 6px;
}

/* ------------------------------------------------------------- üst şerit */

/* Okulun iletişim bilgileri: sayfa değişse de sabit kalır, veli aramak
   istediğinde numarayı aramak zorunda kalmaz. */
.topbar { background: var(--navy); color: rgba(255, 255, 255, .72); font-size: .78rem; }
.topbar__inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; flex-wrap: wrap; min-height: 38px; padding-block: 7px;
}
.topbar a { color: inherit; text-decoration: none; }
.topbar a:hover { color: #fff; }

.topbar__contact { display: flex; align-items: center; gap: 8px 18px; flex-wrap: wrap; }
.topbar__item { display: inline-flex; align-items: center; gap: 6px; }
.topbar__item span[aria-hidden] { opacity: .6; }

.topbar__social { display: flex; align-items: center; gap: 6px; }
.topbar__social a {
    width: 26px; height: 26px; border-radius: 50%;
    display: grid; place-items: center;
    font-size: .72rem; letter-spacing: .02em;
    color: rgba(255, 255, 255, .6);
    border: 1px solid rgba(255, 255, 255, .18);
}
.topbar__social a:hover { color: #fff; background: rgba(255, 255, 255, .12); }

/* Dar ekranda adres satırı üst şeridi iki kata çıkarıyor; kaldırılır —
   aynı bilgi alt bilgide zaten tam hâliyle duruyor. */
@media (max-width: 767px) {
    .topbar__item--address { display: none; }
}

/* ------------------------------------------------------------------ başlık */

.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    position: sticky; top: 0; z-index: 20;
}
.site-header.is-stuck { box-shadow: 0 2px 24px rgba(28, 26, 24, .07); }

.site-header__inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; min-height: 82px; flex-wrap: wrap; padding-block: 12px;
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.brand__logo { height: 52px; width: auto; max-width: 240px; object-fit: contain; }
.brand__mark {
    width: 42px; height: 42px; display: grid; place-items: center;
    background: var(--navy); color: var(--gold); border-radius: var(--radius);
    font-weight: 500; font-size: .82rem; letter-spacing: .06em;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.25; }
.brand__text strong { font-family: var(--serif); font-size: 1.15rem; font-weight: 500; color: var(--navy); }
.brand__text small {
    color: var(--muted); font-size: .68rem;
    letter-spacing: .18em; text-transform: uppercase;
}
/* Logo varken okul adı görselde zaten yazılı; metin yalnızca alt başlık taşır. */
.brand--logo .brand__text { padding-left: 12px; border-left: 1px solid var(--line); }
/* Telefon ekranında logo tek başına yeter; alt başlık üç satıra sarıyordu. */
@media (max-width: 599px) {
    .brand--logo .brand__text { display: none; }
    .brand__logo { height: 44px; max-width: 200px; }
}

.site-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.site-nav a {
    padding: 9px 14px; border-radius: var(--radius); text-decoration: none;
    color: var(--ink-soft); font-size: .84rem; font-weight: 500;
    letter-spacing: .04em; text-transform: uppercase;
}
.site-nav a:hover { background: var(--brand-soft); color: var(--brand-dark); }
.site-nav__cta { background: var(--navy); color: #fff !important; }
.site-nav__cta:hover { background: var(--navy-2); }

.site-main { flex: 1; padding-block: 32px 56px; }

/* ------------------------------------------------------------------- alt */

.site-footer { background: var(--navy); color: rgba(255, 255, 255, .74); margin-top: auto; }
.site-footer__inner {
    display: grid; gap: 28px; padding-block: 40px 32px;
    font-size: .88rem;
}
.site-footer p { margin: 0 0 6px; }
.site-footer a { color: rgba(255, 255, 255, .74); }
.site-footer a:hover { color: #fff; }
.site-footer .muted { color: rgba(255, 255, 255, .45); }

.site-footer__title {
    display: block; margin-bottom: 12px;
    font-family: var(--serif); font-size: 1.15rem; font-weight: 500;
    color: #fff;
}
.site-footer__label {
    display: block; margin-bottom: 10px;
    font-size: .68rem; letter-spacing: .18em; text-transform: uppercase;
    color: var(--gold);
}
.site-footer__social { display: flex; gap: 8px; margin-top: 12px; }
.site-footer__social a {
    padding: 5px 12px; border: 1px solid rgba(255, 255, 255, .18);
    border-radius: var(--radius); font-size: .76rem;
}
.site-footer__social a:hover { background: rgba(255, 255, 255, .1); }

.site-footer__legal {
    border-top: 1px solid rgba(255, 255, 255, .12);
    padding-block: 16px; font-size: .78rem;
    display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: space-between;
}

@media (min-width: 720px) {
    .site-footer__inner { grid-template-columns: 1.2fr 1fr 1fr; }
}

/* ---------------------------------------------------------------- kartlar */

.card, .detail, .prose {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}
@media (min-width: 720px) {
    .card, .detail, .prose { padding: 28px; }
}

.card--narrow, .detail--narrow { max-width: 560px; margin-inline: auto; }
.card__title { margin-bottom: 4px; }
.card__lead { color: var(--ink-soft); margin-bottom: 20px; }
.card__foot { margin: 20px 0 0; font-size: .92rem; }

.page-head { margin-bottom: 20px; }
.page-head__lead { color: var(--ink-soft); max-width: 60ch; }
.page-head__note {
    background: var(--gold-soft); border-left: 3px solid var(--gold);
    padding: 12px 16px; border-radius: 0 var(--radius) var(--radius) 0; color: var(--ink-soft);
}

.empty {
    background: var(--bg); border: 1px dashed var(--line-strong);
    border-radius: var(--radius); padding: 20px; color: var(--ink-soft); text-align: center;
}

/* ----------------------------------------------------------------- adımlar */

.stepper {
    display: flex; gap: 4px; list-style: none; margin: 0 0 20px; padding: 0;
    overflow-x: auto; scrollbar-width: none;
}
.stepper::-webkit-scrollbar { display: none; }

.stepper__item {
    display: flex; align-items: center; gap: 8px;
    padding: 9px 16px 9px 11px; border-radius: var(--radius);
    background: var(--surface); border: 1px solid var(--line);
    color: var(--muted); font-size: .82rem; white-space: nowrap;
}
.stepper__no {
    width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
    background: var(--line); color: var(--ink-soft); font-size: .74rem; font-weight: 500;
}
.stepper__item.is-active { border-color: var(--navy); color: var(--navy); background: var(--surface); }
.stepper__item.is-active .stepper__no { background: var(--navy); color: var(--gold); }
.stepper__item.is-done { color: var(--ok); border-color: #C7DCD0; background: var(--ok-soft); }
.stepper__item.is-done .stepper__no { background: var(--ok); color: #fff; }

/* -------------------------------------------------------------- seçim özeti */

.selection {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius-lg); padding: 16px; margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}
.selection__teacher { display: flex; align-items: center; gap: 12px; }
.selection__teacher > div { display: flex; flex-direction: column; line-height: 1.3; }
.selection__teacher .muted { font-size: .85rem; }
.selection__change { margin-left: auto; font-size: .85rem; white-space: nowrap; }

.selection__facts {
    display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 14px 0 0;
    padding-top: 14px; border-top: 1px dashed var(--line);
}
.selection__facts div { display: flex; flex-direction: column; }
.selection__facts dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.selection__facts dd { margin: 0; font-weight: 600; display: flex; align-items: baseline; gap: 8px; }
.selection__facts .selection__change { margin-left: 0; font-weight: 400; }

/* --------------------------------------------------------------- öğretmen */

.avatar {
    width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none;
    background: var(--brand-soft);
}
.avatar--sm { width: 44px; height: 44px; }
.avatar--initials {
    display: grid; place-items: center; color: var(--brand-dark);
    font-weight: 700; letter-spacing: .02em;
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-strong);
    background: var(--surface); color: var(--ink-soft);
    text-decoration: none; font-size: .88rem;
}
.chip:hover { border-color: var(--brand); color: var(--brand-dark); }
.chip.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip__count { font-size: .75rem; opacity: .75; }

.teacher-grid {
    list-style: none; margin: 0; padding: 0;
    display: grid; gap: 12px;
    grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 520px)  { .teacher-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 760px)  { .teacher-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1100px) { .teacher-grid { grid-template-columns: repeat(6, 1fr); } }

.teacher-card { position: relative; }
.teacher-card__link {
    display: flex; flex-direction: column; height: 100%;
    border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
    text-decoration: none; color: inherit; background: var(--surface);
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.teacher-card__link:hover {
    border-color: var(--brand); box-shadow: var(--shadow-sm); transform: translateY(-2px);
}
/* Dikey (portrait) öğretmen fotoğrafı — 3:4 oranında, üstten hizalı */
.teacher-card__photo {
    width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top center;
    display: block; background: var(--brand-soft);
    border-bottom: 1px solid var(--line);
}
.teacher-card__photo--initials {
    display: grid; place-items: center;
    color: var(--brand-dark); font-weight: 700; font-size: 2.6rem; letter-spacing: .02em;
}
.teacher-card__body {
    display: flex; flex-direction: column; gap: 3px; min-width: 0;
    padding: 12px 14px 14px; flex: 1;
}
.teacher-card__name { font-size: 1rem; line-height: 1.25; }
.teacher-card__branch { color: var(--brand-dark); font-size: .85rem; font-weight: 500; }
.teacher-card__bio {
    color: var(--muted); font-size: .85rem;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.teacher-card__meta { color: var(--muted); font-size: .8rem; margin-top: auto; padding-top: 4px; }
.teacher-card__go {
    position: absolute; top: 10px; right: 10px;
    width: 30px; height: 30px; border-radius: 50%;
    display: grid; place-items: center;
    background: rgba(255, 255, 255, .9); color: var(--brand-dark);
    font-size: 1.1rem; line-height: 1; box-shadow: var(--shadow-sm);
    transition: background .15s ease, color .15s ease;
}
.teacher-card__link:hover .teacher-card__go { background: var(--brand); color: #fff; }

/* --------------------------------------------------------------- takvim */

.calendar__nav {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; margin-bottom: 12px;
}
.calendar__month { font-size: 1.05rem; }

.calendar__weekdays, .calendar__grid {
    display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px;
}
.calendar__weekdays {
    margin-bottom: 6px; font-size: .75rem; color: var(--muted); text-align: center;
}

.calendar__day {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 2px; min-height: 58px; padding: 4px 2px;
    border: 1px solid var(--line); border-radius: 10px;
    text-decoration: none; font-size: .95rem;
}
.calendar__num { font-weight: 600; }
.calendar__free { font-size: .65rem; color: var(--ok); }

.calendar__day.is-open { background: var(--ok-soft); border-color: #C7DCD0; color: var(--ink); }
.calendar__day.is-open:hover { border-color: var(--ok); box-shadow: var(--shadow-sm); }
.calendar__day.is-closed { background: var(--bg); color: var(--line-strong); cursor: not-allowed; }
.calendar__day.is-today { outline: 2px solid var(--brand); outline-offset: -2px; }
.calendar__pad { min-height: 58px; }

.calendar__legend {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    margin: 14px 0 0; font-size: .8rem; color: var(--muted);
}
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot--open { background: #8CBFA5; }
.dot--closed { background: var(--line-strong); margin-left: 10px; }

/* ---------------------------------------------------------------- saatler */

.slot-grid {
    list-style: none; margin: 0; padding: 0;
    display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
}
.slot {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 12px 8px; border: 1px solid var(--line-strong); border-radius: var(--radius);
    background: var(--surface); text-decoration: none; color: var(--ink);
    transition: border-color .15s ease, background .15s ease;
}
.slot strong { font-size: 1.05rem; }
.slot small { color: var(--muted); font-size: .72rem; }
.slot:hover { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark); }

/* ---------------------------------------------------------------- formlar */

.form__group { border: 0; margin: 0 0 20px; padding: 0; }
.form__group legend {
    padding: 0; margin-bottom: 12px; font-weight: 600; font-size: .95rem;
    color: var(--ink); border-bottom: 1px solid var(--line); width: 100%; padding-bottom: 8px;
}

.form__row { display: grid; gap: 14px; }
@media (min-width: 640px) {
    .form__row { grid-template-columns: 1fr 1fr; }
    .form__row--3 { grid-template-columns: repeat(3, 1fr); }
    .field--narrow { max-width: 180px; }
}

.field { margin-bottom: 14px; }
.field label { display: block; margin-bottom: 6px; font-weight: 500; font-size: .92rem; }
.field label span[aria-hidden] { color: var(--danger); }

.field input[type="text"], .field input[type="email"], .field input[type="tel"],
.field input[type="password"], .field input[type="date"], .field input[type="time"],
.field input[type="number"], .field input[type="url"], .field input[type="search"],
.field select, .field textarea,
.time-row input[type="time"],
.table--form input[type="text"], .table--form input[type="time"],
.table--form input[type="date"], .table--form input[type="number"], .table--form select {
    width: 100%; padding: 11px 13px; font: inherit; color: var(--ink);
    background: var(--surface); border: 1px solid var(--line-strong);
    border-radius: var(--radius); transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 96px; }

.time-row input[type="time"], .table--form input, .table--form select { padding: 8px 10px; }

.field input:focus, .field select:focus, .field textarea:focus,
.time-row input:focus, .table--form input:focus, .table--form select:focus {
    outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(28, 81, 120, .14);
}

.field__hint { margin: 6px 0 0; font-size: .8rem; color: var(--muted); }
.field__error { margin: 6px 0 0; font-size: .84rem; color: var(--danger); font-weight: 500; }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: var(--danger); }

.field--check label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.field--check input { margin-top: 4px; width: 18px; height: 18px; flex: none; accent-color: var(--brand); }
/* onay kutusu bir form satırı içindeyse komşu alanın girdi kutusuyla hizalanır */
.form__row > .field--check { display: flex; align-items: center; min-height: 46px; margin-top: 26px; }
.form__row > .field--check input { margin-top: 0; }

.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 8px; }
.form__note { margin: 0; font-size: .84rem; color: var(--muted); max-width: 42ch; }

/* --------------------------------------------------------------- düğmeler */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 22px; border: 1px solid transparent; border-radius: var(--radius);
    background: var(--navy); color: #fff; font: inherit; font-weight: 500;
    font-size: .86rem; letter-spacing: .06em; text-transform: uppercase;
    text-decoration: none; cursor: pointer; transition: background .18s ease, border-color .18s ease;
}
.btn:hover { background: var(--navy-2); color: #fff; }
.btn--primary { background: var(--brand); }
.btn--primary:hover { background: var(--brand-dark); }
.btn--lg { padding: 15px 30px; font-size: .92rem; }

.btn--ghost { background: var(--surface); border-color: var(--line-strong); color: var(--ink-soft); }
.btn--ghost:hover { background: var(--bg); border-color: var(--brand); color: var(--brand-dark); }

.btn--danger { background: var(--danger); }
.btn--danger:hover { background: #8E1521; }

.btn--icon { padding: 8px 14px; background: var(--surface); border-color: var(--line-strong); color: var(--ink-soft); font-size: 1.2rem; }
.btn--icon:hover { background: var(--brand-soft); color: var(--brand-dark); }
.btn.is-disabled, .btn[disabled] { opacity: .45; pointer-events: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn--block { width: 100%; }

/* --------------------------------------------------------------- bildirim */

.flash {
    display: flex; gap: 12px; align-items: flex-start;
    padding: 14px 16px; border-radius: var(--radius);
    border: 1px solid var(--line); background: var(--surface); margin-bottom: 16px;
}
.flash p { margin: 0; }
.flash__icon {
    width: 22px; height: 22px; flex: none; border-radius: 50%;
    display: grid; place-items: center; font-size: .8rem; font-weight: 700; color: #fff;
}
.flash--success { background: var(--ok-soft); border-color: #C7DCD0; }
.flash--success .flash__icon { background: var(--ok); }
.flash--error { background: var(--danger-soft); border-color: #EDC9CD; }
.flash--error .flash__icon { background: var(--danger); }
.flash--warning { background: var(--warn-soft); border-color: #E7D5B0; }
.flash--warning .flash__icon { background: var(--warn); }
.flash--info { background: var(--info-soft); border-color: #C6D5E0; }
.flash--info .flash__icon { background: var(--info); }

.notice { padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--line); }
.notice--info    { background: var(--info-soft);   border-color: #C6D5E0; }
.notice--success { background: var(--ok-soft);     border-color: #C7DCD0; }
.notice--warning { background: var(--warn-soft);   border-color: #E7D5B0; }

/* ---------------------------------------------------------------- rozetler */

.badge {
    display: inline-flex; align-items: center; padding: 5px 12px;
    border-radius: 999px; font-size: .82rem; font-weight: 600; white-space: nowrap;
    background: var(--bg); color: var(--ink-soft); border: 1px solid var(--line);
}
.badge--warning { background: var(--warn-soft); color: var(--warn); border-color: #E7D5B0; }
.badge--success { background: var(--ok-soft); color: var(--ok); border-color: #C7DCD0; }
.badge--danger  { background: var(--danger-soft); color: var(--danger); border-color: #EDC9CD; }
.badge--info    { background: var(--info-soft); color: var(--info); border-color: #C6D5E0; }
.badge--neutral { background: var(--bg); color: var(--muted); }

/* Randevu durumları — AppointmentStatus::tone() ile birebir eşleşir */
.badge--pending   { background: var(--warn-soft);   color: var(--warn);   border-color: #E7D5B0; }
.badge--approved  { background: var(--ok-soft);     color: var(--ok);     border-color: #C7DCD0; }
.badge--rejected  { background: var(--danger-soft); color: var(--danger); border-color: #EDC9CD; }
.badge--cancelled { background: var(--bg);          color: var(--muted);  border-color: var(--line-strong); }
.badge--completed { background: var(--info-soft);   color: var(--info);   border-color: #C6D5E0; }
.badge--noshow    { background: #F1EEF5;            color: #57457A;       border-color: #D5CCE4; }

/* ----------------------------------------------------------------- detay */

.detail__head {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 12px; flex-wrap: wrap; margin-bottom: 16px;
}
.detail__ref { margin: 0 0 4px; font-size: .85rem; color: var(--muted); }
.detail__ref strong { color: var(--ink); letter-spacing: .04em; }

.facts {
    display: grid; gap: 14px; margin: 0 0 20px;
    padding: 16px; background: var(--bg); border-radius: var(--radius);
}
@media (min-width: 640px) { .facts { grid-template-columns: repeat(2, 1fr); } }
.facts div { display: flex; flex-direction: column; gap: 2px; }
.facts dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; }

.detail__block { margin-bottom: 24px; }
.detail__block h2 { font-size: 1.05rem; }
.detail__actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 16px; }

.timeline { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 14px 14px; }
.timeline li::before {
    content: ''; position: absolute; left: -23px; top: 7px;
    width: 9px; height: 9px; border-radius: 50%; background: var(--brand); border: 2px solid var(--surface);
}
.timeline__when { display: block; font-size: .78rem; color: var(--muted); }
.timeline__what { font-weight: 600; }
.timeline__what small { font-weight: 400; color: var(--muted); }
.timeline__note { display: block; font-size: .85rem; color: var(--ink-soft); }

/* ----------------------------------------------------------------- metin */

.prose { max-width: 74ch; margin-inline: auto; }
.prose h2 { margin-top: 1.6em; }

.wizard__help { text-align: center; font-size: .9rem; color: var(--muted); }

/* ------------------------------------------------------- ortalanmış sayfa */

.body--centered { display: grid; place-items: center; padding: 24px; }
.notice-card {
    width: min(560px, 100%); background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius-lg); padding: 32px 28px; box-shadow: var(--shadow); text-align: center;
}
.notice-card .btn { margin-top: 8px; }

/* Giriş gibi form içeren ortalanmış kartlar sola hizalı okunur */
.notice-card--form { text-align: left; }
.notice-card--form h1 { text-align: center; }
.notice-card--form > .muted { text-align: center; margin-bottom: 24px; }
.notice-card--form .small { text-align: center; }
.form--login { margin-bottom: 20px; }

/* ==========================================================================
   PANEL — öğretmen ve yönetici ekranları
   --------------------------------------------------------------------------
   Veli arayüzüyle aynı renk değişkenlerini kullanır; ayrı bir dosya yerine
   burada tutulur çünkü ortak bileşenler (badge, form, tablo) paylaşılır.
   ========================================================================== */

.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;
}

.inline-form { display: inline; }

.btn--sm { padding: 6px 12px; font-size: .85rem; }

/* --------------------------------------------------------------- iskelet */

.body--panel { background: var(--bg); }

.panel-top {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    position: sticky; top: 0; z-index: 20;
}
.panel-top__inner {
    max-width: 1320px; margin: 0 auto; padding: 10px 16px;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.panel-top__user { display: flex; align-items: center; gap: 8px; }
.panel-top__name { font-weight: 600; font-size: .9rem; display: none; }
@media (min-width: 640px) {
    .panel-top__name { display: inline; }
}

.brand--sm .brand__mark { width: 34px; height: 34px; font-size: .8rem; }
.brand--sm .brand__logo { height: 38px; max-width: 190px; }

.panel-shell {
    flex: 1;
    max-width: 1320px; width: 100%; margin: 0 auto; padding: 16px;
    display: grid; gap: 16px;
    align-items: start;
}
/* grid çocukları varsayılan min-width:auto ile taşar; menü şeridi kendi içinde kaysın */
.panel-shell > * { min-width: 0; }
@media (min-width: 900px) {
    .panel-shell { grid-template-columns: 232px minmax(0, 1fr); padding: 24px 16px; gap: 24px; }
}

/* Dar ekranda menü yatay kaydırılabilir bir şerittir */
.panel-nav ul {
    list-style: none; margin: 0; padding: 0;
    display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
}
.panel-nav ul::-webkit-scrollbar { display: none; }

.panel-nav__link {
    display: flex; align-items: center; gap: 10px; white-space: nowrap;
    padding: 10px 14px; border-radius: var(--radius);
    background: var(--surface); border: 1px solid var(--line);
    color: var(--ink-soft); text-decoration: none; font-size: .92rem; font-weight: 500;
}
.panel-nav__link:hover { border-color: var(--line-strong); color: var(--ink); }
.panel-nav__link.is-active {
    background: var(--navy); border-color: var(--navy); color: #fff;
}
.panel-nav__link.is-active .panel-nav__icon { color: var(--gold); opacity: 1; }
.panel-nav__icon { font-size: 1rem; opacity: .85; }
.panel-nav__foot { display: none; }

@media (min-width: 900px) {
    .panel-nav {
        position: sticky; top: 80px;
        background: var(--surface); border: 1px solid var(--line);
        border-radius: var(--radius-lg); padding: 12px; box-shadow: var(--shadow-sm);
    }
    .panel-nav ul { flex-direction: column; gap: 2px; overflow: visible; }
    .panel-nav__link { border: 0; background: none; padding: 10px 12px; }
    .panel-nav__link:hover { background: var(--bg); }
    .panel-nav__foot {
        display: block; margin: 12px 4px 4px; padding-top: 12px;
        border-top: 1px solid var(--line); font-size: .82rem;
    }
}

.panel-main { min-width: 0; display: flex; flex-direction: column; gap: 16px; }

.panel-head {
    display: flex; flex-wrap: wrap; align-items: flex-start;
    justify-content: space-between; gap: 12px;
}
.panel-head h1 { margin: 0 0 4px; font-size: 1.45rem; }
.panel-head p { margin: 0; }

.back-link { margin: 0; font-size: .9rem; }

.empty--card {
    background: var(--surface); border-style: solid; border-color: var(--line);
    box-shadow: var(--shadow-sm);
}

.card__head {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 12px; margin-bottom: 14px;
}
.card__head h2 { margin: 0; font-size: 1.1rem; }

/* ------------------------------------------------------------- sayılar */

.stat-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }

.stat {
    display: flex; flex-direction: column; gap: 2px;
    background: var(--surface); border: 1px solid var(--line);
    border-left: 4px solid var(--brand);
    border-radius: var(--radius); padding: 16px 18px;
    text-decoration: none; color: inherit; box-shadow: var(--shadow-sm);
}
.stat:hover { border-color: var(--line-strong); border-left-color: var(--brand-dark); }
.stat--warn { border-left-color: var(--warn); }
.stat--ok   { border-left-color: var(--ok); }
.stat__value { font-family: var(--serif); font-size: 2.3rem; font-weight: 500; line-height: 1.05; color: var(--navy); }
.stat__label { font-size: .86rem; color: var(--muted); }

/* -------------------------------------------------------------- listeler */

.row-list { list-style: none; margin: 0; padding: 0; }
.row-list__item + .row-list__item { border-top: 1px solid var(--line); }

.row-list__link {
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
    padding: 12px 4px; text-decoration: none; color: inherit; border-radius: 8px;
}
.row-list__link:hover { background: var(--bg); }
.row-list__when { min-width: 128px; display: flex; flex-direction: column; }
.row-list__when small, .row-list__who small { color: var(--muted); font-size: .82rem; }
.row-list__who { flex: 1; min-width: 160px; display: flex; flex-direction: column; }

/* --------------------------------------------------------------- tablo */

.table-wrap { overflow-x: auto; }

.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th, .table td { text-align: left; padding: 10px 12px; vertical-align: middle; }
.table thead th {
    font-size: .78rem; text-transform: uppercase; letter-spacing: .04em;
    color: var(--muted); border-bottom: 1px solid var(--line-strong);
}
.table tbody tr + tr { border-top: 1px solid var(--line); }
.table tbody tr:hover { background: var(--bg); }
.table td small { display: block; font-size: .8rem; }
.table .is-past td { opacity: .72; }
.table__action { text-align: right; white-space: nowrap; }
.table--form td { padding: 6px 8px; }
.table--form input, .table--form select { min-width: 110px; }

/* Dar ekranda tablo satırları karta dönüşür */
@media (max-width: 719px) {
    .table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .table tbody tr {
        display: block; border: 1px solid var(--line); border-radius: var(--radius);
        margin-bottom: 10px; padding: 6px 4px; background: var(--surface);
    }
    .table tbody tr + tr { border-top: 1px solid var(--line); }
    .table td { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; }
    .table td::before {
        content: attr(data-label); font-size: .78rem; color: var(--muted);
        text-transform: uppercase; letter-spacing: .04em; flex: 0 0 auto;
    }
    .table__action { text-align: left; }
}

/* ------------------------------------------------------------- filtreler */

.filters {
    display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow-sm);
}
.filters--tight { padding: 10px 14px; }
.filters__actions { display: flex; gap: 8px; margin-left: auto; }

.field--inline { margin: 0; min-width: 150px; }
.field--inline label { font-size: .8rem; color: var(--muted); }
.field--grow { flex: 1; min-width: 200px; }

/* dar ekranda süzgeç alanları satırı eşit paylaşsın */
@media (max-width: 599px) {
    .field--inline { flex: 1 1 140px; min-width: 140px; }
}

/* ------------------------------------------------------------ sayfalama */

.pager {
    display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
    padding: 4px 2px; font-size: .9rem;
}
.pager__pages { display: flex; gap: 4px; align-items: center; }
.pager__pages a, .pager__current {
    min-width: 34px; text-align: center; padding: 5px 8px;
    border-radius: 8px; border: 1px solid var(--line); text-decoration: none;
}
.pager__pages a { background: var(--surface); color: var(--ink-soft); }
.pager__pages a:hover { border-color: var(--line-strong); }
.pager__current { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.pager__step { text-decoration: none; color: var(--brand); }
.pager__step.is-disabled { color: var(--muted); pointer-events: none; }
.pager__gap { color: var(--muted); }
.pager__total { margin-left: auto; color: var(--muted); font-size: .84rem; }

/* --------------------------------------------------------- günlük ajanda */

.day-nav { display: flex; gap: 6px; flex-wrap: wrap; }

.agenda { list-style: none; margin: 0; padding: 0; background: var(--surface);
    border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow-sm); }

.agenda__row {
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
    padding: 10px 16px; border-left: 3px solid transparent;
}
.agenda__row + .agenda__row { border-top: 1px solid var(--line); }
.agenda__row--booked { border-left-color: var(--brand); background: var(--brand-soft); }

.agenda__time { min-width: 74px; display: flex; flex-direction: column; line-height: 1.2; }
.agenda__time small { color: var(--muted); font-size: .78rem; }

.agenda__body { flex: 1; min-width: 160px; display: flex; flex-direction: column;
    text-decoration: none; color: inherit; }
.agenda__body small { color: var(--ink-soft); font-size: .84rem; }
.agenda__body--free { color: var(--ok); font-weight: 500; }
.agenda__body--muted { color: var(--muted); }

.badge--free { background: var(--ok-soft); color: var(--ok); border-color: #C7DCD0; }

/* -------------------------------------------------------- haftalık görünüm */

.week { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 700px)  { .week { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .week { grid-template-columns: repeat(7, 1fr); gap: 8px; } }

.week__day {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 10px; min-height: 120px;
}
.week__day.is-today { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft); }

.week__head { margin-bottom: 8px; }
.week__head a { display: flex; align-items: baseline; gap: 6px; text-decoration: none; color: inherit; }
.week__weekday { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.week__number { font-size: 1.1rem; font-weight: 700; margin-left: auto; }

.week__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }

.week__item {
    display: flex; flex-direction: column; padding: 6px 8px; border-radius: 8px;
    text-decoration: none; font-size: .82rem; line-height: 1.3;
    background: var(--bg); color: var(--ink); border-left: 3px solid var(--line-strong);
}
.week__item span { color: var(--ink-soft); }
.week__item--pending   { background: var(--warn-soft);   border-left-color: var(--warn); }
.week__item--approved  { background: var(--ok-soft);     border-left-color: var(--ok); }
.week__item--completed { background: var(--info-soft);   border-left-color: var(--info); }
.week__item--rejected,
.week__item--cancelled { background: var(--bg);          border-left-color: var(--line-strong); opacity: .75; }
.week__item--noshow    { background: #F1EEF5;            border-left-color: #57457A; }

.week__empty { margin: 0; color: var(--muted); font-size: .84rem; }
.week__free { margin: 8px 0 0; color: var(--ok); font-size: .78rem; }

.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: .82rem; color: var(--muted); }
.legend__item { display: inline-flex; align-items: center; gap: 6px; }
.dot--pending   { background: var(--warn); }
.dot--approved  { background: var(--ok); }
.dot--completed { background: var(--info); }
.dot--cancelled { background: var(--line-strong); }

/* ------------------------------------------------- çalışma saati düzenleyici */

.week-editor { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

.week-editor__day {
    border: 1px solid var(--line); border-radius: var(--radius);
    padding: 10px 12px 12px; margin: 0;
}
.week-editor__day legend { font-size: .85rem; font-weight: 600; padding: 0 6px; color: var(--ink-soft); }

.time-row { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.time-row input { flex: 1; min-width: 0; }
.time-row span { color: var(--muted); }

/* --------------------------------------------------------------- yazdırma */

/* Öğretmenin günlük listeyi kâğıda dökmesi beklenen tek çıktıdır; gezinme
   ve eylem düğmeleri basılmaz. */
@media print {
    .panel-top, .panel-nav, .filters, .day-nav, .pager,
    .site-header, .site-footer, .detail__actions, .btn-row, .wizard__help { display: none !important; }
    .panel-shell { display: block; padding: 0; }
    body { background: #fff; }
    .card, .detail { box-shadow: none; border-color: #999; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
}

/* ------------------------------------------------------- yönetim paneli */

/* İki sütunlu kart yerleşimi; dar ekranda tek sütuna iner. */
.panel-cols { display: grid; gap: 16px; }
@media (min-width: 900px) {
    .panel-cols { grid-template-columns: 1fr 1fr; align-items: start; }
}

/* Durum dağılımı çubukları — grafik kitaplığı gerektirmez. */
.bar-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.bar-list__item {
    display: grid; align-items: center; gap: 10px;
    grid-template-columns: 110px 1fr 40px;
}
.bar-list__label { font-size: .88rem; color: var(--ink-soft); }
.bar-list__track {
    height: 10px; border-radius: 999px; background: var(--bg);
    border: 1px solid var(--line); overflow: hidden;
}
.bar-list__fill { display: block; height: 100%; background: var(--muted); min-width: 2px; }
.bar-list__fill--pending   { background: var(--warn); }
.bar-list__fill--approved  { background: var(--ok); }
.bar-list__fill--rejected  { background: var(--danger); }
.bar-list__fill--cancelled { background: var(--line-strong); }
.bar-list__fill--completed { background: var(--info); }
.bar-list__fill--noshow    { background: #57457A; }
.bar-list__value { font-size: .88rem; font-weight: 600; text-align: right; }

@media (max-width: 520px) {
    .bar-list__item { grid-template-columns: 1fr 40px; }
    .bar-list__track { grid-column: 1 / -1; order: 3; }
}

/* Liste üstündeki durum sayacı şeridi. */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }

/* Bağlantısız satır listesi — işlem kayıtları gibi salt okunur listeler. */
.row-list--plain .row-list__item { padding: 10px 4px; }

/* Radyo düğmesiyle seçilen saat kutusu (yönetimin elle randevu ekranı). */
.slot--pick { cursor: pointer; position: relative; text-align: center; }
.slot--pick:has(input:checked) {
    border-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark);
    box-shadow: inset 0 0 0 1px var(--brand);
}
.slot--pick:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }
.slot--pick.is-off {
    cursor: not-allowed; background: var(--bg); color: var(--muted);
    border-style: dashed; border-color: var(--line);
}
.slot--pick.is-off:hover { background: var(--bg); color: var(--muted); border-color: var(--line); }

/* Kişi hücresi — fotoğraf + ad. Fotoğrafı olmayan öğretmen için baş harfler
   kullanılır; böylece satır yüksekliği listede sabit kalır. */
.person { display: flex; align-items: center; gap: 10px; }
.person__photo {
    width: 40px; height: 40px; flex: none; border-radius: 50%;
    object-fit: cover; background: var(--bg); border: 1px solid var(--line);
}
.person__photo--initials {
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--brand-soft); color: var(--brand-dark);
    font-size: .82rem; font-weight: 700; letter-spacing: .02em;
}
.person__text { display: flex; flex-direction: column; min-width: 0; }
.person__text small { font-size: .8rem; }

/* Form içindeki mevcut fotoğrafın önizlemesi. */
.photo-preview { margin: 0 0 10px; }
.photo-preview img {
    width: 96px; height: 96px; border-radius: var(--radius);
    object-fit: cover; border: 1px solid var(--line); background: var(--bg);
}

/* Alt alta gelen onay/seçim kutuları birbirine yapışmasın. */
.field--check label + label { margin-top: 8px; }

/* ------------------------------------------------------------------ */
/*  Raporlar (madde 31)                                               */
/* ------------------------------------------------------------------ */

.stat__hint { display: block; margin-top: 4px; font-size: .78rem; color: var(--muted); }

/* Yan yana iki kart; dar ekranda alt alta iner. */
.grid-2 { display: grid; gap: 16px; grid-template-columns: 1fr; margin-bottom: 16px; }
@media (min-width: 900px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

/* Çok sütunlu sayım tabloları için daha sıkı satır yüksekliği. */
.table--compact th, .table--compact td { padding: 8px 10px; font-size: .88rem; }
.table .num { text-align: right; white-space: nowrap; }

/* Satır içi oran göstergesi: sayının yanında ince bir dolgu çubuğu. */
.meter {
    display: inline-block; width: 56px; height: 6px; margin-right: 8px;
    vertical-align: middle; border-radius: 999px; background: var(--bg);
    border: 1px solid var(--line); overflow: hidden;
}
.meter__fill { display: block; height: 100%; background: var(--brand); }

/* Gün/saat/ay dağılımı listeleri. */
.chart { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.chart__row { display: grid; grid-template-columns: 96px 1fr 44px; align-items: center; gap: 10px; }
.chart__label { font-size: .84rem; color: var(--muted); }
.chart__track { height: 10px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); overflow: hidden; }
.chart__bar { display: block; height: 100%; background: var(--brand); }
.chart__value { font-size: .86rem; font-weight: 600; text-align: right; }

/* ------------------------------------------------------------------ */
/*  Haftalık çalışma saati ızgarası (Google Takvim tarzı)             */
/* ------------------------------------------------------------------ */

.wg__hint { margin: 0 0 12px; font-size: .84rem; color: var(--muted); line-height: 1.45; }

.wg__tabs { display: none; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.wg__tab {
    border: 1px solid var(--line); background: #fff; color: var(--ink, #12324B);
    border-radius: 999px; padding: 6px 14px; font: inherit; font-size: .86rem; cursor: pointer;
}
.wg__tab.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }

.wg__cal {
    display: flex; border: 1px solid var(--line); border-radius: 12px;
    overflow: hidden; background: #fff;
}

.wg__gutter { flex: 0 0 54px; border-right: 1px solid var(--line); }
.wg__corner { height: 34px; border-bottom: 1px solid var(--line); }
.wg__hours { position: relative; }
.wg__hours span {
    position: absolute; right: 7px; transform: translateY(-50%);
    font-size: .72rem; color: var(--muted); white-space: nowrap;
}

.wg__cols { flex: 1 1 auto; min-width: 0; }
.wg__head { display: flex; height: 34px; border-bottom: 1px solid var(--line); }
.wg__dayhead {
    flex: 1; min-width: 0; text-align: center; font-size: .8rem; font-weight: 600;
    line-height: 34px; border-left: 1px solid var(--line); color: var(--muted);
}
.wg__dayhead:first-child { border-left: 0; }

.wg__grid { display: flex; position: relative; }
.wg__col {
    flex: 1; min-width: 0; position: relative; border-left: 1px solid var(--line);
    background: repeating-linear-gradient(
        to bottom, transparent 0, transparent 59px,
        var(--line) 59px, var(--line) 60px);
    touch-action: pan-y;
}
.wg__col:first-child { border-left: 0; }

.wg__block {
    position: absolute; left: 2px; right: 2px; box-sizing: border-box;
    background: var(--brand); color: #fff; border: 1px solid rgba(0, 0, 0, .18);
    border-radius: 6px; font-size: .72rem; overflow: hidden; cursor: grab;
    user-select: none; touch-action: none; box-shadow: 0 1px 2px rgba(0, 0, 0, .15);
}
.wg__block.is-dragging { cursor: grabbing; opacity: .9; z-index: 3; }
.wg__block.is-draft { opacity: .65; }
.wg__block__time { display: block; padding: 3px 6px; pointer-events: none; line-height: 1.25; }
.wg__block__del {
    position: absolute; top: 1px; right: 1px; width: 18px; height: 18px;
    padding: 0; line-height: 16px; text-align: center; border: 0; border-radius: 4px;
    background: rgba(0, 0, 0, .28); color: #fff; font-size: 15px; cursor: pointer;
}
.wg__block__del:hover { background: rgba(0, 0, 0, .5); }
.wg__block__handle { position: absolute; left: 0; right: 0; height: 9px; cursor: ns-resize; touch-action: none; }
.wg__block__handle--top { top: 0; }
.wg__block__handle--bot { bottom: 0; }

@media (max-width: 719px) {
    .wg__tabs { display: flex; }
    .wg__dayhead { display: none; }
    .wg__dayhead.is-active { display: block; }
    .wg__col { display: none; }
    .wg__col.is-active { display: block; }
}
