/* Тема Timora AI для mytimora.ru: тёплая бумага, чернильный чёрный, бежевые карточки, фиолетовый акцент.
   Подключается после site.css и переопределяет токены — разметка и скрипты не менялись. Светлая тема всегда. */
@font-face{font-family:"Jost";src:url(/assets/fonts/jost-cyrillic.woff2) format("woff2");font-weight:100 900;font-display:swap;unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"Jost";src:url(/assets/fonts/jost-latin.woff2) format("woff2");font-weight:100 900;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
:root,
:root:root {
  --bg: #FCFAF8; --surface: #EFEBE3; --surface-2: #E6E0D4; --surface-3: #DDD6C8;
  --ink: #26251E; --ink-2: #4a483d; --ink-3: #7d7a6e;
  --line: #26251e1f; --line-2: #26251e38; --on-ink: #FCFAF8;
  --ok: #1f7a3f; --critical: #d93a3f; --accent: #6d4cff;
  --glow: rgba(109, 76, 255, .10);
  --shadow-1: 0 1px 2px rgba(38, 37, 30, .05), 0 14px 34px -14px rgba(38, 37, 30, .22);
  --shadow-2: 0 2px 6px rgba(38, 37, 30, .06), 0 30px 70px -24px rgba(38, 37, 30, .32);
  --nav-bg: rgba(252, 250, 248, .86);
  --r-sm: 6px; --r-md: 6px; --r-lg: 8px; --r-xl: 10px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Jost", "Century Gothic", "Avenir Next", system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root, :root:root {
    --bg: #FCFAF8; --surface: #EFEBE3; --surface-2: #E6E0D4; --surface-3: #DDD6C8;
    --ink: #26251E; --ink-2: #4a483d; --ink-3: #7d7a6e;
    --line: #26251e1f; --line-2: #26251e38; --on-ink: #FCFAF8;
    --ok: #1f7a3f; --critical: #d93a3f; --glow: rgba(109, 76, 255, .10);
    --shadow-1: 0 1px 2px rgba(38, 37, 30, .05), 0 14px 34px -14px rgba(38, 37, 30, .22);
    --shadow-2: 0 2px 6px rgba(38, 37, 30, .06), 0 30px 70px -24px rgba(38, 37, 30, .32);
    --nav-bg: rgba(252, 250, 248, .86);
    --kind-lecture: #3567C9; --kind-practice: #2E7D5B; --kind-seminar: #1C8384; --kind-lab: #7E4BC9;
    --kind-exam: #B3261E; --kind-credit: #C0571B; --kind-consultation: #A8761F; --kind-coursework: #4A4FB5;
    --kind-selfstudy: #7D7D86; --kind-internship: #6F6A2C; --kind-event: #B23A86;
  }
}

body { font-family: var(--font); letter-spacing: .15px; }
h1, h2, h3, h4, .display { font-family: var(--display); font-weight: 400; letter-spacing: .2px; }
h1 { font-weight: 300; letter-spacing: -.01em; }
h2 { font-weight: 300; }
::selection { background: #6d4cff33; color: var(--ink); }

/* кнопки: контурные пилюли с заливкой слева направо, главная — чернильная */
.btn { font-family: var(--display); font-weight: 500; letter-spacing: .5px; position: relative; overflow: hidden; isolation: isolate; box-shadow: none !important; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink); transform: translateX(-101%); transition: transform .45s cubic-bezier(.7, 0, .2, 1); }
.btn:hover::before { transform: none; }
.btn-ink { background: var(--ink); color: var(--on-ink); }
.btn-ink::before { background: var(--accent); }
.btn-ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { color: var(--on-ink); border-color: var(--ink); }
.btn-tg, .btn-vk { background: var(--ink); color: var(--on-ink); }
.btn-tg::before, .btn-vk::before { background: var(--accent); }
.btn-tg:hover, .btn-vk:hover { background: var(--ink); box-shadow: none; }
.btn-tg img, .btn-vk img { box-shadow: 0 0 0 1.5px var(--on-ink); }

/* шапка */
.brand span { font-family: var(--display); font-weight: 500; letter-spacing: .2px; }
.nav-links a { font-weight: 500; position: relative; }

/* карточки: бежевые, почти без скруглений, поднимаются при наведении */
[class*="card"] { border-radius: var(--r-md); }

/* сетка списков не должна растягиваться от длинных названий */
.list { grid-template-columns: minmax(0, 1fr); }
.row { min-width: 0; }
.row .name { font-weight: 500; font-family: var(--display); letter-spacing: .1px; }

/* типографика: тонкие заголовки Jost, как на timoraspace.dev (усиленная специфичность — перебивает site.css) */
:root:root h1 { font-weight: 300; letter-spacing: -.025em; }
:root:root h2, :root:root .h2 { font-weight: 300; letter-spacing: -.015em; }
:root:root h3, :root:root h4 { font-weight: 400; letter-spacing: .1px; }
:root:root .eyebrow { font-family: var(--display); font-weight: 500; letter-spacing: .3em; color: var(--accent); }
:root:root .pill { font-family: var(--display); font-weight: 500; letter-spacing: .04em; }
:root:root b, :root:root strong { font-weight: 600; }

/* ───────── страница /status ───────── */
.status-page { padding-top: clamp(40px, 7vw, 84px); padding-bottom: 80px; }
.st-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.st-eyebrow { font: 500 13px var(--display); letter-spacing: .3em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; }
.st-head h1 { font-size: clamp(36px, 6vw, 68px); line-height: 1.05; margin: 0; }
.st-lead { margin: 18px 0 0; color: var(--ink-2); font-size: clamp(15px, 1.8vw, 18px); line-height: 1.75; }
.st-overall { display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; padding: 11px 20px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font: 500 15px var(--display); }
.st-overall em { font-style: normal; font-weight: 400; color: var(--ink-3); font-size: 13px; margin-left: 4px; }
.st-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ink-3); box-shadow: 0 0 0 0 #0000; flex: none; }
.st-overall.up .st-dot { background: #1f9d55; animation: stp 2.4s infinite; }
.st-overall.warn .st-dot { background: #e6a100; }
.st-overall.bad .st-dot { background: #d93a3f; }
@keyframes stp { 0% { box-shadow: 0 0 0 0 #1f9d5566; } 70% { box-shadow: 0 0 0 10px #1f9d5500; } 100% { box-shadow: 0 0 0 0 #1f9d5500; } }
.st-block { margin-top: clamp(40px, 6vw, 72px); }
.st-block h2 { font-size: clamp(26px, 3.6vw, 40px); margin: 0 0 22px; }
.st-sub { margin: -12px 0 0; color: var(--ink-2); font-size: 15px; }
.st-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.st-card { background: var(--surface); border-radius: var(--r-md); padding: 24px 26px 22px; display: flex; flex-direction: column; gap: 14px; transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s; }
.st-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-1); }
.st-card > header { display: flex; align-items: center; gap: 12px; }
.st-card h3 { font-size: 20px; margin: 0; flex: 1; min-width: 0; }
.st-ic { display: flex; color: var(--ink-3); }
.st-card.up .st-ic { color: #1f9d55; } .st-card.warn .st-ic { color: #e6a100; } .st-card.bad .st-ic { color: #d93a3f; }
.st-pill { display: inline-block; font: 500 13px var(--display); letter-spacing: .03em; padding: 5px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--bg); color: var(--ink); white-space: nowrap; }
.st-pill.up { border-color: #1f9d5566; color: #1a7a43; background: #1f9d5512; }
.st-pill.warn { border-color: #e6a10077; color: #8a5f00; background: #e6a10016; }
.st-pill.bad { border-color: #d93a3f66; color: #b32a2f; background: #d93a3f12; }
.st-metrics { display: flex; flex-wrap: wrap; gap: 8px 24px; color: var(--ink-2); font-size: 14.5px; }
.st-metrics span { display: inline-flex; align-items: center; gap: 7px; }
.st-metrics b { color: var(--ink); font-weight: 600; }
.st-card.up .st-metrics span:first-child b { color: #1a7a43; }
.st-tag { align-self: flex-start; font: 500 12px ui-monospace, Menlo, monospace; letter-spacing: .08em; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--bg); }
.st-hl { display: flex; justify-content: space-between; color: var(--ink-3); font-size: 13px; margin-bottom: 8px; }
.ticks { display: flex; gap: 2px; height: 38px; padding: 8px 9px; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; }
.ticks .t { flex: 1; min-width: 0; border-radius: 1px; background: #1f9d55; }
.ticks .t.bad { background: #d93a3f; } .ticks .t.none { background: #1f9d55; }

.st-unis-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.st-search { width: min(100%, 280px); font: 400 15px var(--font); padding: 12px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); }
.st-search:focus { outline: none; border-color: var(--ink); }
.st-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 22px 0 20px; padding: 0; color: var(--ink-2); font-size: 14px; }
.st-legend li { display: inline-flex; align-items: center; gap: 8px; }
.st-legend .d { width: 14px; height: 14px; border-radius: 3px; display: inline-block; }
.d.ok, .dy.ok { background: #1f9d55; } .d.warn, .dy.warn { background: #e6a100; } .d.bad, .dy.bad { background: #d93a3f; } .d.none, .dy.none { background: #1f9d55; }
.st-unis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.st-uni { background: var(--surface); border-radius: var(--r-md); padding: 20px 22px 16px; }
.st-uh { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.st-logo { width: 42px; height: 42px; border-radius: 10px; background: #fff; display: flex; align-items: center; justify-content: center; flex: none; font: 600 13px var(--display); color: var(--ink-2); overflow: hidden; }
.st-logo img { width: 34px; height: 34px; object-fit: contain; }
.st-un { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.st-un b { font: 500 18px var(--display); } .st-un span { color: var(--ink-3); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-ur { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.st-up { font: 400 20px var(--display); }
.st-ur .st-pill { padding: 3px 11px; font-size: 12px; }
.days { display: flex; gap: 2px; height: 34px; }
.dy { flex: 1; min-width: 0; border-radius: 2px; transition: transform .15s; }
.dy:hover { transform: scaleY(1.18); }
.days-l { display: flex; justify-content: space-between; margin-top: 8px; color: var(--ink-3); font-size: 12px; }
.st-note, .st-empty { color: var(--ink-3); font-size: 13.5px; margin: 22px 0 0; line-height: 1.7; }
@media (max-width: 860px) { .st-grid, .st-unis { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .st-overall { flex-wrap: wrap; border-radius: 16px; } .st-overall em { flex-basis: 100%; margin: 0 0 0 20px; } .st-card { padding: 20px 18px; } .ticks { gap: 1px; padding: 8px 6px; } .st-legend { gap: 8px 16px; } }

/* подсказка и наведение: оранжевый акцент, подсказка не выходит за экран */
.dy:hover, .ticks .t:hover { background: #f08a24 !important; }
.st-tip { position: fixed; z-index: 60; left: 0; top: 0; max-width: min(300px, calc(100vw - 16px)); padding: 8px 12px; border-radius: 8px; background: var(--ink); color: var(--on-ink); font-size: 13px; line-height: 1.4; pointer-events: none; box-shadow: 0 10px 30px -10px rgba(38, 37, 30, .5); }
.st-tip[hidden] { display: none; }
.st-grid, .st-unis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.st-grid > *, .st-unis > *, .st-uh, .st-un { min-width: 0; }
@media (max-width: 860px) { .st-grid, .st-unis { grid-template-columns: minmax(0, 1fr); } }
