/* ============================================================
   PROPERI — виджеты
   ============================================================ */

/* ---------- общее ---------- */
.w-pad { height: 100%; padding: 14px 16px; }
.w-scroll { height: 100%; overflow: auto; overscroll-behavior: contain; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.w-empty {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 18px;
  text-align: center;
  color: var(--dim);
  font-size: 11.5px;
  line-height: 1.5;
}
.w-empty b { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.w-empty .we-ico { font-size: 24px; opacity: .7; margin-bottom: 2px; }
.w-empty .btn { margin-top: 4px; }
.w-loading { color: var(--dim); font-size: 11px; display: flex; align-items: center; gap: 8px; }
.spinner {
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 1.5px solid var(--line-2);
  border-top-color: var(--acc);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   ОКНО ПК
   ============================================================ */
.win-widget { position: absolute; inset: 0; background: #05070a; }
.win-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: none;
  background: #000;
}
.win-widget.live .win-video { display: block; }
.win-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 20px;
  text-align: center;
  background: var(--panel);
}
.win-placeholder .win-ico {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--acc-soft);
  color: var(--acc);
  font-family: var(--mono);
  font-size: 16px;
  margin-bottom: 4px;
}
.win-placeholder b { font-size: 12.5px; }
.win-placeholder p { max-width: 260px; font-size: 10.5px; line-height: 1.45; color: var(--dim); margin-bottom: 8px; }
.win-note { font-size: 9.5px; color: var(--dim); margin-top: 4px; min-height: 12px; }
.win-bar {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 6px;
  background: rgba(0, 0, 0, .68);
  opacity: 0;
  transition: opacity .15s;
}
.win-widget:hover .win-bar, .win-widget:focus-within .win-bar { opacity: 1; }
.win-source { min-width: 0; font-size: 9.5px; color: rgba(255, 255, 255, .72); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win-stop {
  height: 22px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 5px;
  background: rgba(0, 0, 0, .4);
  color: #fff;
  font-size: 9px;
  cursor: pointer;
  flex: 0 0 auto;
}
.win-stop:hover { background: rgba(255, 255, 255, .12); }


/* ============================================================
   ЧАСЫ
   ============================================================ */
.clock {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4px 18px 12px;
}
.clock-label {
  font-size: 9px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--acc);
  font-weight: 600;
  margin-bottom: 1px;
  min-height: 12px;
}
.clock-time {
  display: flex;
  align-items: baseline;
  gap: 2px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(38px, 15cqw, 88px);
  line-height: 1;
  letter-spacing: -.07em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.clock-time .ss {
  font-size: .42em;
  color: var(--dim);
  letter-spacing: -.02em;
  font-weight: 500;
  transform: translateY(-.08em);
}
.clock-date {
  margin-top: 5px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .01em;
}
.clock-alt {
  margin-top: auto;
  padding-top: 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  color: var(--dim);
  min-height: 24px;
}
.clock-alt b {
  font-family: var(--mono);
  color: var(--muted);
  font-weight: 500;
  letter-spacing: .03em;
}
.clock-empty-hint { font-size: 9.5px; color: var(--dim); }

/* ============================================================
   ПОЕЗД
   ============================================================ */
.train-widget {
  position: absolute;
  inset: 0;
  overflow: hidden;
  cursor: pointer;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, #141a24 0%, #07090d 72%);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 10px 12px;
  z-index: 0;
}
.tw-scene { position: absolute; inset: 0; overflow: hidden; }
.tw-tunnel {
  position: absolute;
  inset: 0;
  perspective: 560px;
  perspective-origin: 50% 48%;
  transform-style: preserve-3d;
}
.tw-ring {
  position: absolute;
  inset: 0;
  margin: auto;
  width: min(54%, 560px);
  height: min(46%, 380px);
  border: 1.5px solid color-mix(in srgb, var(--acc) 26%, transparent);
  border-radius: 22% / 26%;
  box-shadow: 0 0 22px -12px var(--acc), inset 0 0 22px -16px var(--acc);
  animation: tunnelFly 5.2s linear infinite;
  animation-delay: calc(var(--i) * -.42s);
  opacity: 0;
}
body.compact .tw-ring { border-width: 1px; }
@keyframes tunnelFly {
  0% { opacity: 0; transform: translateZ(-2500px); }
  10% { opacity: .8; }
  70% { opacity: .45; }
  92% { opacity: 0; }
  100% { opacity: 0; transform: translateZ(700px); }
}
.tw-train {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  animation: trainRush 7.4s cubic-bezier(.55, .02, .9, .4) infinite;
  will-change: transform, opacity;
}
@keyframes trainRush {
  0%, 46% { transform: scale(.02); opacity: 0; }
  52% { opacity: 1; }
  82% { opacity: 1; }
  100% { transform: scale(2.9); opacity: 0; }
}
.loco {
  width: min(46%, 320px);
  aspect-ratio: 1.12;
  position: relative;
  border-radius: 20% 20% 9% 9%;
  background:
    linear-gradient(180deg, #38404f 0%, #252b36 22%, #1a1f28 60%, #12161d 100%);
  border: 2px solid #4a5364;
  box-shadow:
    0 0 60px -12px color-mix(in srgb, var(--acc) 55%, transparent),
    inset 0 4px 0 rgba(255, 255, 255, .12),
    inset 0 -18px 30px rgba(0, 0, 0, .7);
}
.loco-top {
  position: absolute;
  top: 6%;
  left: 12%;
  right: 12%;
  height: 15%;
  border-radius: 7px 7px 4px 4px;
  background: linear-gradient(180deg, #4b5466, #2c333f);
  border: 1px solid #596377;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: clamp(4px, 1.6cqw, 12px);
  letter-spacing: .24em;
  color: #aab5c9;
  text-shadow: 0 0 8px rgba(200, 255, 61, .4);
  overflow: hidden;
}
.loco-window {
  position: absolute;
  top: 25%;
  left: 17%;
  right: 17%;
  height: 28%;
  border-radius: 10px;
  background:
    linear-gradient(180deg, #0a0d12 0%, #121a24 55%, #0a0e14 100%);
  border: 2px solid #4b5568;
  box-shadow: inset 0 6px 18px rgba(0, 0, 0, .9), 0 0 22px -8px var(--acc);
  overflow: hidden;
}
.loco-window::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, .11) 46%, transparent 60%);
}
.loco-lights {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 58%;
  display: flex;
  justify-content: space-between;
}
.loco-lights i {
  width: 15%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 34%, #fff, var(--acc) 40%, color-mix(in srgb, var(--acc) 40%, #000) 78%);
  box-shadow: 0 0 20px 4px color-mix(in srgb, var(--acc) 60%, transparent), 0 0 60px 12px color-mix(in srgb, var(--acc) 25%, transparent);
}
.loco-grill {
  position: absolute;
  left: 26%;
  right: 26%;
  bottom: 15%;
  height: 12%;
  border-radius: 3px;
  background: repeating-linear-gradient(90deg, #39414f 0 4px, #14181f 4px 7px);
  border: 1px solid #4a5466;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, .8);
}
.loco-bumper {
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: 3%;
  height: 8%;
  border-radius: 4px;
  background: linear-gradient(180deg, #59637a, #2a303b);
  border: 1px solid #6b768e;
}
.loco-beam {
  position: absolute;
  top: 58%;
  left: 50%;
  width: 250%;
  height: 250%;
  transform: translate(-50%, -40%);
  background: conic-gradient(from 180deg at 50% 40%, transparent 0deg, color-mix(in srgb, var(--acc) 12%, transparent) 12deg, transparent 26deg, transparent 334deg, color-mix(in srgb, var(--acc) 12%, transparent) 348deg, transparent 360deg);
  opacity: .55;
  pointer-events: none;
  z-index: -1;
  filter: blur(6px);
}
.tw-speedlines {
  position: absolute;
  inset: -15%;
  background: repeating-conic-gradient(from 0deg at 50% 48%, rgba(255, 255, 255, .055) 0deg .5deg, transparent .5deg 7deg);
  mask-image: radial-gradient(circle at 50% 48%, transparent 20%, #000 72%);
  -webkit-mask-image: radial-gradient(circle at 50% 48%, transparent 20%, #000 72%);
  animation: spin 22s linear infinite;
  opacity: .5;
  pointer-events: none;
}
.tw-tag {
  position: relative;
  z-index: 4;
  align-self: flex-end;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 8.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dim);
  padding: 4px 8px;
  border-radius: 7px;
  background: rgba(0, 0, 0, .35);
  border: 1px solid var(--line);
  backdrop-filter: blur(6px);
  pointer-events: none;
}
.tw-tag b {
  font-weight: 700;
  color: var(--acc);
  letter-spacing: .18em;
}
.train-widget:hover .tw-tag { color: var(--muted); border-color: color-mix(in srgb, var(--acc) 30%, transparent); }
.tw-cta {
  position: relative;
  z-index: 4;
  align-self: flex-end;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .18em;
  padding: 6px 10px;
  border-radius: 7px;
  border: 1px solid color-mix(in srgb, var(--acc) 45%, transparent);
  background: rgba(200, 255, 61, .1);
  color: var(--acc);
  cursor: pointer;
  pointer-events: none;
  text-transform: uppercase;
}
.train-widget:hover .tw-cta { background: var(--acc); color: var(--on-acc); }

/* полноэкранный поезд */
.train-takeover { background: radial-gradient(ellipse at 50% 50%, #101720 0%, #030405 70%); }
.train-takeover .tw-ring { border-width: 2px; box-shadow: 0 0 40px -10px var(--acc), inset 0 0 40px -14px var(--acc); }
.train-takeover .tw-train { animation-duration: 3.4s; }
.train-takeover .tw-ring { animation-duration: 3.4s; }
.train-takeover .loco { width: min(70vw, 880px); }
.train-takeover .tw-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 7%;
  z-index: 10;
  text-align: center;
  pointer-events: none;
}
.train-takeover .tw-caption strong {
  display: block;
  font-size: clamp(26px, 6.2vw, 92px);
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: .95;
  color: #fff;
  text-shadow: 0 0 40px color-mix(in srgb, var(--acc) 70%, transparent), 0 6px 0 rgba(0, 0, 0, .5);
  animation: captionPulse .5s cubic-bezier(.2, .9, .3, 1.2) both;
}
.train-takeover .tw-caption span {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--mono);
  font-size: clamp(9px, 1.1vw, 13px);
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--acc);
  border: 1px solid color-mix(in srgb, var(--acc) 40%, transparent);
  padding: 6px 12px;
  border-radius: 6px;
}
@keyframes captionPulse { from { opacity: 0; transform: scale(.86); } }
.train-takeover .takeover-close { z-index: 30; }
.train-takeover.flash::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  animation: flash .5s ease-out forwards;
  pointer-events: none;
  z-index: 9;
}
@keyframes flash { 0% { opacity: .85; } 100% { opacity: 0; } }
body.shaking .app { animation: shake .62s cubic-bezier(.36, .07, .19, .97) both; }

/* ============================================================
   ЗАМЕТКИ
   ============================================================ */
.notes { height: 100%; display: flex; flex-direction: column; }
.notes textarea {
  flex: 1;
  width: 100%;
  min-height: 0;
  resize: none;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font: 13px/1.62 var(--font);
  padding: 12px 16px;
  caret-color: var(--acc);
}
.notes textarea::placeholder { color: var(--dim); }
.notes-foot {
  flex: 0 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 14px;
  border-top: 1px solid var(--line);
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--dim);
}
.notes-foot .saved { color: color-mix(in srgb, var(--acc) 60%, var(--dim)); }

/* ============================================================
   ЗАДАЧИ
   ============================================================ */
.todo { height: 100%; display: flex; flex-direction: column; }
.todo-list { flex: 1; overflow: auto; padding: 6px 8px; }
.todo-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 7px 8px;
  border-radius: 8px;
  transition: background .12s;
  group: todo;
}
.todo-item:hover { background: rgba(255, 255, 255, .035); }
.todo-check {
  appearance: none;
  width: 15px;
  height: 15px;
  margin: 2px 0 0;
  flex: 0 0 auto;
  border-radius: 5px;
  border: 1.5px solid var(--line-2);
  background: transparent;
  cursor: pointer;
  position: relative;
  transition: all .15s;
}
.todo-check:checked { background: var(--acc); border-color: var(--acc); }
.todo-check:checked::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--on-acc);
  font-size: 10px;
  font-weight: 900;
}
.todo-text {
  flex: 1;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--text);
  word-break: break-word;
  min-height: 18px;
}
.todo-item.done .todo-text { color: var(--dim); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--dim) 60%, transparent); }
.todo-del {
  border: 0;
  background: transparent;
  color: var(--dim);
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
  padding: 2px 3px;
  border-radius: 4px;
  opacity: 0;
  transition: opacity .12s, color .12s;
}
.todo-item:hover .todo-del { opacity: 1; }
.todo-del:hover { color: var(--danger); }
.todo-add {
  display: flex;
  gap: 6px;
  padding: 8px 10px;
  border-top: 1px solid var(--line);
}
.todo-input {
  flex: 1;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font: 12px var(--font);
  padding: 5px 4px;
}
.todo-input::placeholder { color: var(--dim); }
.todo-add-btn {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04);
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  transition: all .15s;
}
.todo-add-btn:hover { background: var(--acc); border-color: var(--acc); color: var(--on-acc); }
.todo-count { font-family: var(--mono); }

/* ============================================================
   ПОГОДА
   ============================================================ */
.weather {
  position: absolute;
  inset: 0;
  padding: 12px 18px 14px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.wx-ghost {
  position: absolute;
  right: -8px;
  bottom: -16px;
  font-size: clamp(70px, 30cqw, 150px);
  line-height: 1;
  opacity: .07;
  pointer-events: none;
  filter: grayscale(1);
}
.wx-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.wx-city {
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wx-updated { font-size: 8.5px; color: var(--dim); white-space: nowrap; cursor: pointer; }
.wx-updated:hover { color: var(--muted); }
.wx-main { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.wx-temp {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(38px, 16cqw, 82px);
  line-height: .88;
  letter-spacing: -.07em;
  color: var(--text);
}
.wx-temp sup { font-size: .32em; color: var(--dim); letter-spacing: 0; vertical-align: super; margin-left: 2px; }
.wx-skel {
  display: inline-block;
  width: 1.5em;
  height: .62em;
  border-radius: .1em;
  vertical-align: baseline;
  background: linear-gradient(90deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .13), rgba(255, 255, 255, .05));
  background-size: 220% 100%;
  animation: wxShimmer 1.3s linear infinite;
}
@keyframes wxShimmer { from { background-position: 130% 0; } to { background-position: -130% 0; } }
.wx-side { display: flex; flex-direction: column; gap: 2px; padding-bottom: 5px; }
.wx-emoji { font-size: clamp(22px, 7cqw, 40px); line-height: 1; filter: saturate(.85); }
.wx-cond { font-size: 11px; color: var(--muted); }
.wx-foot {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid var(--line);
  font-size: 9.5px;
  color: var(--dim);
  font-family: var(--mono);
}
.wx-foot b { color: var(--muted); font-weight: 500; }
.wx-err { margin-top: auto; }

/* ============================================================
   НОВОСТИ
   ============================================================ */
.news { height: 100%; display: flex; flex-direction: column; }
.news-list { flex: 1; overflow: auto; padding: 4px 6px 4px 4px; }
.news-item {
  display: flex;
  gap: 9px;
  padding: 7px 10px;
  border-radius: 8px;
  text-decoration: none;
  transition: background .12s;
}
.news-item:hover { background: rgba(255, 255, 255, .04); }
.news-num {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--acc);
  opacity: .55;
  padding-top: 3px;
  width: 15px;
  flex: 0 0 auto;
  text-align: right;
}
.news-title { font-size: 11.5px; line-height: 1.4; color: var(--text); font-weight: 500; }
.news-meta { display: flex; gap: 8px; font-size: 9.5px; color: var(--dim); margin-top: 3px; }
.news-meta .nm-src { color: color-mix(in srgb, var(--acc) 55%, var(--dim)); }
.news-foot {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 12px;
  border-top: 1px solid var(--line);
  font-size: 9px;
  color: var(--dim);
}
.news-refresh {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--dim);
  font-size: 9px;
  padding: 3px 7px;
  border-radius: 5px;
  cursor: pointer;
  transition: all .15s;
}
.news-refresh:hover { color: var(--acc); border-color: color-mix(in srgb, var(--acc) 40%, transparent); }

/* ============================================================
   ПРОИЗВОДИТЕЛЬНОСТЬ
   ============================================================ */
.perf { height: 100%; display: flex; flex-direction: column; gap: 8px; padding: 11px 13px 10px; }
.perf-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.perf-stat {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .025);
  border-radius: 9px;
  padding: 6px 8px;
  min-width: 0;
}
.perf-stat b {
  display: block;
  font-family: var(--mono);
  font-size: clamp(14px, 4.6cqw, 20px);
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.perf-stat span {
  display: block;
  font-size: 8.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 1px;
}
.perf-graph { flex: 1; min-height: 34px; position: relative; border-radius: 8px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .04); background: rgba(0, 0, 0, .18); }
.perf-graph canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.perf-foot { display: flex; justify-content: space-between; gap: 8px; font-size: 8.5px; color: var(--dim); font-family: var(--mono); }
.perf-foot .ok { color: color-mix(in srgb, var(--acc) 70%, var(--dim)); }

/* ============================================================
   EMBED
   ============================================================ */
.embed { position: absolute; inset: 0; background: #000; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.embed-empty { position: absolute; inset: 0; display: grid; place-items: center; padding: 18px; text-align: center; background: radial-gradient(ellipse at 50% 40%, #141922, #080a0e); }
.embed-empty .ee-ico { font-size: 26px; margin-bottom: 6px; opacity: .8; }
.embed-empty b { display: block; font-size: 12.5px; margin-bottom: 3px; }
.embed-empty p { font-size: 10.5px; color: var(--dim); max-width: 240px; line-height: 1.5; margin-bottom: 10px; }

/* ============================================================
   ССЫЛКИ
   ============================================================ */
.links {
  height: 100%;
  overflow: auto;
  padding: 9px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(74px, 1fr));
  grid-auto-rows: minmax(64px, 1fr);
  gap: 6px;
  align-content: start;
}
.link-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 5px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .025);
  text-decoration: none;
  transition: border-color .15s, background .15s;
  min-width: 0;
}
.link-tile:hover {
  border-color: color-mix(in srgb, var(--acc) 40%, transparent);
  background: var(--acc-soft);
}
.link-tile b {
  width: 25px;
  height: 25px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .06);
  color: var(--acc);
  font-size: 12px;
  font-weight: 800;
  font-family: var(--mono);
  text-transform: uppercase;
}
.link-tile span {
  font-size: 9px;
  color: var(--muted);
  text-align: center;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.link-tile:hover span { color: var(--text); }

/* ============================================================
   ТАЙМЕР
   ============================================================ */
.timer { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 8px; }
.timer-ring { position: relative; width: min(62cqw, 64cqh, 210px); aspect-ratio: 1; display: grid; place-items: center; }
.timer-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.timer-ring .track { fill: none; stroke: rgba(255, 255, 255, .07); stroke-width: 5; }
.timer-ring .prog {
  fill: none;
  stroke: var(--acc);
  stroke-width: 5;
  stroke-linecap: round;
  transition: stroke-dashoffset .3s linear;
}
.timer.break .prog { stroke: var(--acc-3); }
.timer-time { font-family: var(--mono); font-size: clamp(28px, 13cqw, 48px); font-weight: 700; letter-spacing: -.05em; line-height: 1; }
.timer-mode { font-size: 9px; letter-spacing: .22em; text-transform: uppercase; color: var(--dim); margin-top: 3px; }
.timer-btns { display: flex; gap: 5px; margin-top: 2px; }
.tbtn {
  height: 28px;
  padding: 0 12px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04);
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .06em;
  cursor: pointer;
  transition: all .15s;
}
.tbtn:hover { color: var(--text); border-color: var(--line-2); background: rgba(255, 255, 255, .08); }
.tbtn.primary { background: var(--acc); border-color: var(--acc); color: var(--on-acc); }
.tbtn.primary:hover { filter: brightness(1.08); }
.tbtn.icon { width: 28px; padding: 0; }

/* ============================================================
   ОБРАТНЫЙ ОТСЧЁТ
   ============================================================ */
.cd { height: 100%; display: flex; flex-direction: column; justify-content: center; gap: 3px; padding: 12px 18px 14px; }
.cd-eyebrow { font-size: 9px; letter-spacing: .2em; text-transform: uppercase; color: var(--acc); font-weight: 600; }
.cd-title { font-size: clamp(13px, 4.4cqw, 18px); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.cd-days { display: flex; align-items: baseline; gap: 7px; margin-top: 2px; }
.cd-days b { font-family: var(--mono); font-size: clamp(40px, 21cqw, 100px); font-weight: 800; line-height: .85; letter-spacing: -.06em; color: var(--text); }
.cd-days i { font-family: var(--mono); font-size: 10px; font-style: normal; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.cd-clock { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; color: var(--muted); margin-top: 1px; }
.cd-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 8px; border-top: 1px solid var(--line); font-size: 9px; color: var(--dim); }
.cd.done .cd-days b { color: var(--acc); }
.cd.done .cd-clock { color: var(--acc); }

/* ============================================================
   КАЛЕНДАРЬ
   ============================================================ */
.cal { height: 100%; display: flex; flex-direction: column; padding: 8px 10px 9px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 0 2px 5px; }
.cal-month { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: capitalize; color: var(--text); }
.cal-nav { display: flex; gap: 2px; }
.cal-nav button {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--dim);
  cursor: pointer;
  font-size: 11px;
  line-height: 1;
}
.cal-nav button:hover { background: rgba(255, 255, 255, .07); color: var(--text); }
.cal-grid { flex: 1; display: grid; grid-template-columns: repeat(7, 1fr); grid-auto-rows: 1fr; gap: 1px; }
.cal-dow { display: grid; place-items: center; font-size: 8px; text-transform: uppercase; color: var(--dim); letter-spacing: .04em; padding-bottom: 1px; }
.cal-day {
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--muted);
  border-radius: 5px;
  min-height: 0;
}
.cal-day.out { opacity: .22; }
.cal-day.wknd { color: var(--dim); }
.cal-day.today { background: var(--acc); color: var(--on-acc); font-weight: 800; }
.cal-day:hover:not(.today) { background: rgba(255, 255, 255, .06); }

/* ============================================================
   МАТРИЦА
   ============================================================ */
.matrix { position: absolute; inset: 0; background: #030507; cursor: crosshair; }
.matrix canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.matrix-label {
  position: absolute;
  left: 10px;
  bottom: 8px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(200, 255, 61, .45);
  pointer-events: none;
}

/* ============================================================
   КОТ
   ============================================================ */
.pet {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(200, 255, 61, .055), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, .012), transparent);
}
.pet canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.pet-bubble {
  position: absolute;
  top: 10px;
  left: 10px;
  max-width: 72%;
  padding: 6px 9px;
  border-radius: 9px 9px 9px 2px;
  background: rgba(20, 24, 32, .94);
  border: 1px solid var(--line-2);
  font-size: 10.5px;
  line-height: 1.35;
  color: var(--muted);
  box-shadow: 0 10px 24px -12px #000;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .2s, transform .2s;
  pointer-events: none;
  z-index: 2;
}
.pet-bubble.show { opacity: 1; transform: none; }
.pet-hint {
  position: absolute;
  right: 9px;
  bottom: 7px;
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--dim);
  pointer-events: none;
}

/* ============================================================
   РАНДОМАЙЗЕР
   ============================================================ */
.dice { height: 100%; display: flex; flex-direction: column; gap: 7px; padding: 10px 12px 12px; }
.dice-result {
  flex: 1;
  min-height: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 0 4px;
  font-family: var(--mono);
  font-weight: 800;
  font-size: clamp(22px, 9cqw, 50px);
  line-height: 1.05;
  letter-spacing: -.04em;
  color: var(--acc);
  word-break: break-word;
  overflow: hidden;
  transition: filter .12s, opacity .12s;
}
.dice-result.smaller { font-size: clamp(15px, 5.4cqw, 30px); letter-spacing: -.02em; }
.dice-result.rolling { filter: blur(.8px); opacity: .75; }
.dice-modes { display: flex; justify-content: center; gap: 4px; flex-wrap: wrap; }
.dice-chip {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--dim);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all .14s;
}
.dice-chip:hover { color: var(--text); border-color: var(--line-2); }
.dice-chip.active { background: var(--acc-soft); border-color: color-mix(in srgb, var(--acc) 45%, transparent); color: var(--acc); }
.dice-btn {
  height: 34px;
  border-radius: 9px;
  border: 1px solid var(--acc);
  background: var(--acc);
  color: var(--on-acc);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .16em;
  cursor: pointer;
  transition: filter .15s, transform .12s;
}
.dice-btn:hover { filter: brightness(1.07); }
.dice-btn:active { transform: scale(.985); }

/* ============================================================
   РАДИО
   ============================================================ */
.radio { height: 100%; display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; position: relative; overflow: hidden; }
.radio::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--acc) 12%, transparent), transparent 70%);
  pointer-events: none;
}
.radio-eyebrow { font-size: 9px; letter-spacing: .2em; text-transform: uppercase; color: var(--acc); font-weight: 600; }
.radio-station { font-size: clamp(15px, 5cqw, 21px); font-weight: 700; letter-spacing: -.025em; line-height: 1.15; }
.radio-genre { font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.eq { display: flex; align-items: flex-end; gap: 3px; height: 34px; margin-top: auto; padding-top: 8px; }
.eq i {
  flex: 1;
  height: 18%;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--acc), color-mix(in srgb, var(--acc) 15%, transparent));
  animation: eqBounce .9s ease-in-out infinite;
  animation-play-state: paused;
  opacity: .45;
  min-height: 3px;
}
.radio.playing .eq i { animation-play-state: running; opacity: 1; }
@keyframes eqBounce { 0%, 100% { height: 14%; } 50% { height: 100%; } }
.radio-controls { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.radio-play {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--acc);
  background: var(--acc);
  color: var(--on-acc);
  cursor: pointer;
  font-size: 13px;
  transition: filter .15s, transform .1s;
}
.radio-play:hover { filter: brightness(1.08); }
.radio-play:active { transform: scale(.94); }
.radio-vol { flex: 1; accent-color: var(--acc); height: 3px; cursor: pointer; min-width: 0; }
.radio-skip {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
}
.radio-skip:hover { color: var(--text); background: rgba(255, 255, 255, .06); }

/* ============================================================
   КРИПТА
   ============================================================ */
.crypto { height: 100%; display: flex; flex-direction: column; padding: 9px 13px 10px; gap: 1px; }
.cy-row { display: flex; align-items: center; gap: 9px; padding: 7px 0; border-bottom: 1px solid rgba(255, 255, 255, .045); }
.cy-row:last-of-type { border-bottom: 0; }
.cy-ico {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--acc-soft);
  color: var(--acc);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 800;
}
.cy-name { display: block; font-size: 11px; font-weight: 600; line-height: 1.2; }
.cy-sym { display: block; font-size: 9px; letter-spacing: .12em; color: var(--dim); }
.cy-price { margin-left: auto; text-align: right; font-family: var(--mono); font-size: 11.5px; letter-spacing: -.02em; }
.cy-chg { width: 54px; text-align: right; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0; }
.cy-chg.up { color: #63e08a; }
.cy-chg.down { color: var(--danger); }
.crypto-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 7px;
  border-top: 1px solid var(--line);
  font-size: 9px;
  color: var(--dim);
}
.crypto-foot button {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--dim);
  font-size: 8.5px;
  padding: 3px 7px;
  border-radius: 5px;
  cursor: pointer;
}
.crypto-foot button:hover { color: var(--acc); border-color: color-mix(in srgb, var(--acc) 40%, transparent); }

/* ============================================================
   GITROX — аккаунт и проекты
   ============================================================ */
.grx-w { height: 100%; display: flex; flex-direction: column; position: relative; }
.grx-w-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border-bottom: 1px solid var(--line);
  flex: 0 0 auto;
}
.grx-w-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--acc-soft);
  border: 1px solid color-mix(in srgb, var(--acc) 30%, transparent);
  color: var(--acc);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 800;
}
.grx-w-avatar img { width: 100%; height: 100%; object-fit: cover; }
.grx-w-user { min-width: 0; }
.grx-w-user b { display: block; font-size: 12.5px; font-weight: 700; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.grx-w-user span { display: block; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); margin-top: 2px; }
.grx-w-head .grx-unread {
  margin-left: auto;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  border-radius: 99px;
  background: var(--acc);
  color: var(--on-acc);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 800;
}
.grx-w-body { flex: 1; overflow: auto; padding: 4px 7px 7px; }
.grx-sec {
  font-size: 9px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--dim);
  padding: 9px 8px 4px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.grx-sec::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.grx-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 8px;
  text-decoration: none;
  transition: background .12s;
}
.grx-item:hover { background: rgba(91, 155, 255, .07); }
.grx-item .gi-ico {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: rgba(91, 155, 255, .1);
  color: #8ec5ff;
  font-family: var(--mono);
  font-size: 9px;
  margin-top: 1px;
}
.grx-item b { display: block; font-size: 11px; font-weight: 600; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.grx-item small { display: block; font-size: 9.5px; color: var(--dim); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.grx-item .gi-content { min-width: 0; flex: 1; }
.grx-w-foot {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 11px;
  border-top: 1px solid var(--line);
  font-size: 9px;
  color: var(--dim);
}
.grx-w-foot a { color: #8ec5ff; text-decoration: none; font-weight: 600; }
.grx-w-foot a:hover { color: #fff; }
.grx-w-refresh {
  position: absolute;
  right: 9px;
  bottom: 30px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: rgba(13, 17, 23, .8);
  color: var(--dim);
  font-size: 11px;
  cursor: pointer;
}
.grx-w-refresh:hover { color: #8ec5ff; border-color: rgba(91, 155, 255, .4); }
.srv-w { height: 100%; display: flex; flex-direction: column; }
.srv-scroll { flex: 1; overflow: auto; padding: 7px 9px; display: flex; flex-direction: column; gap: 6px; }
.srv-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .018);
  border-radius: 8px;
  padding: 8px 10px 9px;
  flex: 0 0 auto;
}
.srv-head { display: flex; align-items: center; gap: 7px; margin-bottom: 5px; }
.srv-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #63e08a;
  flex: 0 0 auto;
}
.srv-card.offline .srv-dot { background: var(--danger); }
.srv-name { font-size: 11px; font-weight: 650; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srv-kind { margin-left: auto; font-size: 9px; letter-spacing: .13em; text-transform: uppercase; color: var(--dim); white-space: nowrap; }
.srv-row { display: flex; justify-content: space-between; gap: 7px; align-items: baseline; font-size: 10px; color: var(--dim); }
.srv-row b { font-family: var(--mono); font-size: 10.5px; font-weight: 500; color: var(--muted); letter-spacing: -.01em; white-space: nowrap; }
.srv-bar { height: 4px; border-radius: 99px; background: rgba(255, 255, 255, .055); overflow: hidden; margin: 3px 0 5px; }
.srv-bar i { display: block; height: 100%; border-radius: 99px; background: var(--acc); transition: width .45s ease; }
.srv-bar.ram i { background: var(--acc-3); }
.srv-bar.gpu i { background: var(--acc-2); }
.srv-bar.warn i { background: var(--acc-2); }
.srv-bar.crit i { background: var(--danger); }
.srv-gpu { margin-top: 2px; padding-top: 5px; border-top: 1px solid rgba(255, 255, 255, .04); }
.srv-graph {
  height: 42px;
  margin: 5px 0 2px;
  border: 1px solid rgba(255, 255, 255, .045);
  border-radius: 6px;
  background: rgba(0, 0, 0, .16);
  position: relative;
  overflow: hidden;
}
.srv-graph canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.srv-live { display: inline-flex; align-items: center; gap: 5px; }
.srv-live i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #63e08a;
  animation: srvPulse 1.8s ease-in-out infinite;
}
@keyframes srvPulse { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
.srv-sys { margin-top: 4px; padding-top: 4px; border-top: 1px solid rgba(255, 255, 255, .04); }
.srv-model { min-width: 0; max-width: 68%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.srv-gpu-head { display: flex; justify-content: space-between; gap: 7px; font-size: 9.5px; color: var(--dim); }
.srv-gpu-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srv-gpu-val { font-family: var(--mono); color: var(--muted); white-space: nowrap; }
.srv-off { display: flex; align-items: center; gap: 7px; font-size: 10px; color: var(--dim); }
.srv-off b { color: var(--muted); font-weight: 600; }
.srv-off button {
  margin-left: auto;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--dim);
  border-radius: 5px;
  font-size: 9px;
  padding: 2px 6px;
  cursor: pointer;
}
.srv-off button:hover { color: var(--acc); border-color: color-mix(in srgb, var(--acc) 40%, transparent); }
.srv-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.srv-chip {
  font-size: 8.5px;
  letter-spacing: .07em;
  padding: 2px 5px;
  border-radius: 4px;
  border: 1px solid var(--line);
  color: var(--dim);
}
.srv-chip.ok { color: #63e08a; border-color: rgba(99, 224, 138, .22); background: rgba(99, 224, 138, .06); }
.srv-chip.bad { color: var(--danger); border-color: rgba(255, 92, 122, .25); background: var(--danger-soft); }
.srv-foot {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 11px;
  border-top: 1px solid var(--line);
  font-size: 9px;
  color: var(--dim);
}
.srv-foot button {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--dim);
  border-radius: 5px;
  font-size: 9px;
  padding: 2px 7px;
  cursor: pointer;
}
.srv-foot button:hover { color: var(--acc); border-color: color-mix(in srgb, var(--acc) 40%, transparent); }
.srv-empty { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 18px; color: var(--dim); font-size: 10.5px; line-height: 1.5; }
.srv-empty b { color: var(--muted); font-size: 12px; }
.srv-empty .btn { margin-top: 4px; }
