/* Сайт WebEffector: вход и кабинет. Тёмная тема — как у студии. */
:root {
  --bg: #0d0e13; --card: #15171f; --line: #262a36; --text: #e8eaf0; --dim: #9aa0b2;
  --accent: #7cf5c4; --accent-ink: #062a1d; --bad: #ff7a7a; --warn: #ffcf6e;
  --radius: 12px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
body.center { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
code { background: #1e2230; padding: 1px 5px; border-radius: 4px; font-size: 13px; }
h2 { font-size: 17px; margin: 0 0 14px; font-weight: 600; }
[hidden] { display: none !important; }

.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .2px; font-size: 18px; }
.mark { width: 22px; height: 22px; border-radius: 6px;
  background: linear-gradient(90deg, var(--accent) 0 18%, transparent 18% 28%, var(--accent) 28% 46%,
              transparent 46% 56%, var(--accent) 56% 74%, transparent 74% 84%, var(--accent) 84%);
  -webkit-mask: linear-gradient(#000 0 0); opacity: .9; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.login { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 14px; }
.lead { color: var(--dim); margin: 0; }
.hint { color: var(--dim); font-size: 13px; margin: 0; }
.fine { color: #6c7286; font-size: 12px; margin: 10px 0 0; }
.error { color: var(--bad); background: #2a1417; border: 1px solid #4a2227; padding: 8px 10px; border-radius: 8px; margin: 0; }

.buttons { display: flex; flex-direction: column; gap: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 16px;
  border-radius: 9px; border: 1px solid var(--line); background: #1c1f2a; color: var(--text);
  font: inherit; cursor: pointer; text-decoration: none; }
.btn:hover { border-color: #3a4052; }
.btn:disabled { opacity: .5; cursor: default; }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }
.btn.google { background: #fff; color: #1f1f1f; border-color: #fff; font-weight: 600; }
.btn.twitch { background: #9146ff; color: #fff; border-color: #9146ff; font-weight: 600; }
.link { background: none; border: 0; color: var(--dim); font: inherit; cursor: pointer; padding: 4px 6px; }
.link:hover { color: var(--text); }

.dev { display: flex; flex-wrap: wrap; gap: 8px; border-top: 1px dashed var(--line); padding-top: 12px; }
.dev .hint { width: 100%; }
input, select { font: inherit; color: var(--text); background: #0f1118; border: 1px solid var(--line);
  border-radius: 8px; padding: 8px 10px; min-width: 0; }
.dev input { flex: 1; }

.top { display: flex; align-items: center; gap: 16px; padding: 12px 20px; border-bottom: 1px solid var(--line);
  flex-wrap: wrap; }
.top .who { margin-left: auto; display: flex; align-items: center; gap: 8px; color: var(--dim); }
.top img { width: 26px; height: 26px; border-radius: 50%; }
.machine { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--dim); }
.machine .dot { width: 8px; height: 8px; border-radius: 50%; background: #555; }
.machine.on .dot { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.machine.off .dot { background: var(--warn); }

.wrap { max-width: 860px; margin: 24px auto; padding: 0 16px; display: flex; flex-direction: column; gap: 18px; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--dim); }
.grid .sub { color: #6c7286; }
.actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.status { color: var(--dim); font-size: 13px; }
.status.bad { color: var(--bad); }
@media (max-width: 620px) { .grid { grid-template-columns: 1fr; } }

.bar { height: 6px; border-radius: 3px; background: #0f1118; overflow: hidden; margin-top: 8px; }
.bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .4s; }
.bar.upload { margin-top: 14px; }

.jobs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.job { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: #12141b; }
.jhead { display: flex; gap: 10px; align-items: baseline; }
.jhead .name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
.jhead .state { font-size: 12px; padding: 2px 8px; border-radius: 20px; background: #1e2230; color: var(--dim); }
.s-running .state { background: #0f3a2b; color: var(--accent); }
.s-done .state { background: var(--accent); color: var(--accent-ink); }
.s-failed .state { background: #3a1519; color: var(--bad); }
.meta { color: var(--dim); font-size: 13px; margin-top: 2px; }
.msg { color: var(--warn); font-size: 13px; margin-top: 6px; white-space: pre-wrap; }
.s-failed .msg { color: var(--bad); }
.jact { display: flex; gap: 8px; margin-top: 10px; align-items: center; }
.note { color: var(--dim); font-size: 12px; margin-top: 4px; padding-left: 10px; border-left: 2px solid var(--line); }
.plan .planHead { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 6px; }
.plan .planName { font-weight: 600; }
.plan .minutes { color: var(--dim); }
.plan .minutes b { color: var(--accent); font-size: 18px; }

/* Кабинет: студия и каналы OBS (этап 3). */
.links { list-style: none; padding: 0; margin: .5rem 0 0; }
.links li { padding: .15rem 0; }
.card.studio .planHead h2 { margin: 0; }
a.btn { text-decoration: none; }
.card.studio .planHead { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
