:root{
  --bg:#f5f5f7;
  --panel:rgba(255,255,255,0.7);
  --card:#ffffff;
  --text:#1d1d1f;
  --muted:#6e6e73;
  --border:#e5e5ea;
  --accent:#0071e3;
  --accent-hover:#005ecb;

  --radius:20px;
  --shadow:0 20px 40px rgba(0,0,0,0.06);
}

*{
  box-sizing:border-box;
}

body{
  margin:0;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  background:var(--bg);
  color:var(--text);
}

/* ===== Layout ===== */

.container{
  max-width:1100px;
  margin:0 auto;
  padding:32px 20px;
}

.topbar{
  backdrop-filter: blur(20px);
  background:rgba(255,255,255,0.6);
  border-bottom:1px solid var(--border);
  position:sticky;
  top:0;
  z-index:10;
}

.brand{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:16px 20px;
}

.title{
  display:flex;
  flex-direction:column;
}

.title h1{
  margin:0;
  font-size:22px;
  font-weight:600;
}

.title p{
  margin:4px 0 0 0;
  font-size:13px;
  color:var(--muted);
}

/* ===== Panels ===== */

.panel{
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:var(--radius);
  backdrop-filter: blur(25px);
  box-shadow:var(--shadow);
}

/* ===== Form ===== */

.form{
  display:flex;
  flex-wrap:wrap;
  gap:16px;
  padding:24px;
}

.field{
  display:flex;
  flex-direction:column;
  gap:6px;
  min-width:180px;
  flex:1;
}

label{
  font-size:12px;
  color:var(--muted);
}

input, select{
  height:44px;
  padding:0 14px;
  border-radius:14px;
  border:1px solid var(--border);
  background:#fff;
  font-size:15px;
  outline:none;
  transition:all .2s ease;
}

input:focus, select:focus{
  border-color:var(--accent);
  box-shadow:0 0 0 4px rgba(0,113,227,0.15);
}

/* ===== Buttons ===== */

.actions{
  display:flex;
  gap:12px;
  align-items:flex-end;
}

.btn{
  height:44px;
  padding:0 18px;
  border-radius:14px;
  border:none;
  font-weight:600;
  cursor:pointer;
  transition:all .2s ease;
}

.btn-primary{
  background:var(--accent);
  color:#fff;
}

.btn-primary:hover{
  background:var(--accent-hover);
}

.btn-secondary{
  background:#f2f2f7;
  color:var(--text);
}

.btn-secondary:hover{
  background:#e5e5ea;
}

/* ===== List ===== */

.section{
  margin-top:24px;
  padding:24px;
}

.section h2{
  margin:0 0 16px 0;
  font-size:16px;
  font-weight:600;
}

.list{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.row{
  background:var(--card);
  border-radius:16px;
  border:1px solid var(--border);
  padding:16px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  transition:all .2s ease;
}

.row:hover{
  transform:translateY(-2px);
  box-shadow:0 12px 24px rgba(0,0,0,0.05);
}

.row .left{
  display:flex;
  flex-direction:column;
  gap:4px;
}

.row .left .main{
  font-weight:600;
}

.row .left .sub{
  font-size:13px;
  color:var(--muted);
}

.row .right{
  display:flex;
  gap:8px;
}

.smallbtn{
  height:36px;
  padding:0 12px;
  border-radius:12px;
  border:1px solid var(--border);
  background:#f9f9f9;
  font-weight:500;
  cursor:pointer;
}

.smallbtn:hover{
  background:#ececec;
}

.smallbtn-danger{
  color:#d70015;
}
/* =========================
   APPLE STYLE FOR TABLO
   (index.html)
   ========================= */

body{
  background:#f5f5f7;
  color:#1d1d1f;
}

/* Верхняя зона (время/погода) */
#top, .top, .header, #header {
  /* если у тебя есть контейнер сверху — он будет "стеклянным" */
  background: rgba(255,255,255,0.60);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid #e5e5ea;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.06);
}

/* Время и дата */
#time{
  font-weight: 700;
  letter-spacing: -0.5px;
  color:#1d1d1f;
}

#date{
  color:#6e6e73;
}

/* Погода */
#temp{
  font-weight: 700;
  color:#1d1d1f;
}

#weatherText, #city{
  color:#6e6e73;
}

/* Баннер (РОВ/статус) */
#banner{
  background: rgba(0,113,227,0.10);
  border: 1px solid rgba(0,113,227,0.18);
  color:#1d1d1f;
  border-radius: 16px;
  padding: 10px 12px;
  font-weight: 600;
}

/* Сетка карточек */
#classGrid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

/* Карточки */
.card{
  background:#ffffff;
  border:1px solid #e5e5ea;
  border-radius:16px;
  padding: 14px 14px 12px 14px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  transition: transform .18s ease, box-shadow .18s ease;
}

.card:hover{
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.10);
}

/* Заголовки внутри карточки */
.card .cls{
  font-weight: 700;
  color:#1d1d1f;
  letter-spacing: -0.2px;
  margin-bottom: 6px;
}

.card .subj{
  font-weight: 600;
  color:#1d1d1f;
  margin-bottom: 6px;
}

.card .meta{
  color:#6e6e73;
  font-size: 13px;
}

/* Плашка времени */
.timeTag{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;

  background: rgba(0,113,227,0.10);
  border: 1px solid rgba(0,113,227,0.18);
  color:#1d1d1f;
}

/* Плашка РОВ (если у тебя есть .rov) */
.card.rov, .timeTag.rov{
  background: rgba(226,194,77,0.22);
  border-color: rgba(226,194,77,0.35);
}

/* Адаптив под 16:9 (ТВ) */
@media (max-width: 1400px){
  #classGrid{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1100px){
  #classGrid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 800px){
  #classGrid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* =========================
   APPLE STYLE FOR TABLO
   (index.html)
   ========================= */

body{
  background:#f5f5f7;
  color:#1d1d1f;
}

/* Верхняя зона (время/погода) */
#top, .top, .header, #header {
  /* если у тебя есть контейнер сверху — он будет "стеклянным" */
  background: rgba(255,255,255,0.60);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid #e5e5ea;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.06);
}

/* Время и дата */
#time{
  font-weight: 700;
  letter-spacing: -0.5px;
  color:#1d1d1f;
}

#date{
  color:#6e6e73;
}

/* Погода */
#temp{
  font-weight: 700;
  color:#1d1d1f;
}

#weatherText, #city{
  color:#6e6e73;
}

/* Баннер (РОВ/статус) */
#banner{
  background: rgba(0,113,227,0.10);
  border: 1px solid rgba(0,113,227,0.18);
  color:#1d1d1f;
  border-radius: 16px;
  padding: 10px 12px;
  font-weight: 600;
}

/* Сетка карточек */
#classGrid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

/* Карточки */
.card{
  background:#ffffff;
  border:1px solid #e5e5ea;
  border-radius:16px;
  padding: 14px 14px 12px 14px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  transition: transform .18s ease, box-shadow .18s ease;
}

.card:hover{
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.10);
}

/* Заголовки внутри карточки */
.card .cls{
  font-weight: 700;
  color:#1d1d1f;
  letter-spacing: -0.2px;
  margin-bottom: 6px;
}

.card .subj{
  font-weight: 600;
  color:#1d1d1f;
  margin-bottom: 6px;
}

.card .meta{
  color:#6e6e73;
  font-size: 13px;
}

/* Плашка времени */
.timeTag{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;

  background: rgba(0,113,227,0.10);
  border: 1px solid rgba(0,113,227,0.18);
  color:#1d1d1f;
}

/* Плашка РОВ (если у тебя есть .rov) */
.card.rov, .timeTag.rov{
  background: rgba(226,194,77,0.22);
  border-color: rgba(226,194,77,0.35);
}

/* Адаптив под 16:9 (ТВ) */
@media (max-width: 1400px){
  #classGrid{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1100px){
  #classGrid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 800px){
  #classGrid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* ===== Lessons cards (index) ===== */
#scheduleList .lessonItem{
  background:#ffffff;
  border-radius:16px;
  border:1px solid #e5e5ea;
  padding:16px;
  display:flex;
  flex-direction:column;
  gap:4px;
  transition:all .2s ease;
}

#scheduleList .lessonItem:hover{
  transform:translateY(-2px);
  box-shadow:0 12px 24px rgba(0,0,0,0.05);
}

#scheduleList .title{
  font-weight:600;
  color:#1d1d1f;
}

#scheduleList .meta{
  font-size:13px;
  color:#6e6e73;
}
/* ====== Picker + Schedule (Apple) ====== */

.screen{
  position: fixed;
  inset: 0;
  overflow: auto;
  background: var(--bg);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}

.screen-active{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.brand-center{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:16px 20px;
}

.title-center{
  text-align:center;
  flex: 1;
}

.rightSlot{
  width: 120px;
  display:flex;
  justify-content:flex-end;
}

.iconBtn{
  width:44px;
  height:44px;
  border-radius:14px;
  border:1px solid var(--border);
  background:#f2f2f7;
  cursor:pointer;
  font-weight:700;
}

.iconBtn:hover{ background:#e5e5ea; }

.miniSelect{
  height:44px;
  border-radius:14px;
  border:1px solid var(--border);
  background:#fff;
  padding:0 12px;
  outline:none;
}

.miniSelect:focus{
  border-color: var(--accent);
  box-shadow:0 0 0 4px rgba(0,113,227,0.15);
}

/* Сетка карточек классов */
.grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.classCardBtn{
  text-align:left;
  width:100%;
  background:#fff;
  border:1px solid var(--border);
  border-radius:16px;
  padding:16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  cursor:pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}

.classCardBtn:hover{
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.10);
}

.classCardBtn .big{
  font-size:18px;
  font-weight:600;
  margin:0 0 6px 0;
}

.classCardBtn .small{
  font-size:13px;
  color:var(--muted);
  margin:0;
}

/* Карточки уроков */
.lessonItem{
  background:#fff;
  border:1px solid var(--border);
  border-radius:16px;
  padding:16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
  transition: transform .18s ease, box-shadow .18s ease;
}

.lessonItem:hover{
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.10);
}

.lessonLeft .t1{
  font-weight:600;
  margin:0 0 6px 0;
}

.lessonLeft .t2{
  margin:0;
  color:var(--muted);
  font-size:13px;
}

.timePill{
  white-space:nowrap;
  height:28px;
  padding:0 10px;
  border-radius:999px;
  border:1px solid rgba(0,113,227,0.18);
  background: rgba(0,113,227,0.10);
  display:inline-flex;
  align-items:center;
  font-weight:700;
  font-size:12px;
}