/* Парсер «На промте»: оранжевый постер, чёрные карточки, линии вместо рамок,
   прямые углы — как анкета на komanda.napromte.ru. */
:root {
  --orange: #ff5a12;
  --orange-2: #ff7a35;
  --ink: #0b0a0a;
  --ink-2: #191515;
  --ink-3: #2a2424;
  --paper: #f4f1ee;
  --muted: rgba(244, 241, 238, .62);
  --faint: rgba(244, 241, 238, .34);
  --line: rgba(244, 241, 238, .16);
  --on-orange: #0b0a0a;
  --on-orange-muted: rgba(11, 10, 10, .62);
  --yellow: #ffcf26;
  --green: #b6f36a;
  --wide: 'Unbounded', 'Arial Black', system-ui, sans-serif;
  --text: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --pad: clamp(16px, 3.4vw, 48px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  background: var(--orange);
  color: var(--on-orange);
  font: 15px/1.45 var(--text);
  min-height: 100vh;
}
[hidden] { display: none !important; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

/* знак >_ */
.mark { font: 900 64px/1 var(--wide); letter-spacing: -.04em; display: inline-flex; align-items: flex-end; }
.mark .under { animation: blink 1.1s steps(1) infinite; }
.mark.small { font-size: 30px; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .mark .under { animation: none; } }

/* вход */
.login { min-height: 100vh; display: grid; place-items: center; padding: var(--pad); }
.login-box { width: min(420px, 100%); display: grid; gap: 22px; }
.login-box h1 { font: 900 clamp(30px, 7vw, 44px)/1 var(--wide); letter-spacing: -.02em; }
.login-box h1 em { font-style: normal; font-weight: 500; font-size: .5em; letter-spacing: 0; text-transform: uppercase; }
.login-box label { display: grid; gap: 6px; }
.login-box label span { font: 500 11px/1 var(--wide); text-transform: uppercase; letter-spacing: .08em; }
.login-box input {
  background: transparent; border: 0; border-bottom: 2px solid var(--on-orange);
  padding: 8px 0; font-size: 20px; outline: none; border-radius: 0;
}
.login-box input:focus { border-bottom-color: var(--paper); }
.login-box button {
  background: var(--ink); color: var(--paper); border: 0; padding: 16px;
  font: 800 15px/1 var(--wide); text-transform: uppercase; letter-spacing: .06em;
}
.login-box button:hover { background: var(--ink-3); }
.err { min-height: 1.4em; font-weight: 600; }

/* шапка */
.top {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px var(--pad); border-bottom: 2px solid var(--on-orange);
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-name { font: 900 20px/1 var(--wide); letter-spacing: -.01em; }
.brand-sub { font: 500 10px/1.4 var(--wide); text-transform: uppercase; letter-spacing: .1em; }
.who { font-size: 13px; color: var(--on-orange-muted); white-space: nowrap; }
.link { background: none; border: 0; text-decoration: underline; text-underline-offset: 3px; color: var(--on-orange); }

/* вкладки площадок */
.tabs {
  display: flex; gap: 0; overflow-x: auto; scrollbar-width: none;
  border-bottom: 2px solid var(--on-orange); padding: 0 var(--pad);
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  background: none; border: 0; padding: 18px 18px 14px; display: grid; gap: 4px; text-align: left;
  border-right: 1px solid rgba(11, 10, 10, .25); flex: 0 0 auto; position: relative;
}
.tab:first-child { padding-left: 0; }
.tab .t-name { font: 800 clamp(15px, 2vw, 20px)/1 var(--wide); text-transform: uppercase; letter-spacing: -.01em; }
.tab .t-meta { font-size: 12px; color: var(--on-orange-muted); }
.tab.soon .t-name { opacity: .45; }
.tab[aria-selected="true"]::after {
  content: ""; position: absolute; left: 0; right: 18px; bottom: -2px; height: 6px; background: var(--ink);
}
.tab:first-child[aria-selected="true"]::after { left: 0; }

/* заголовок площадки */
.source-head { padding: 22px var(--pad) 6px; display: grid; gap: 6px; max-width: 980px; }
.source-head h2 { font: 900 clamp(28px, 6vw, 64px)/.95 var(--wide); letter-spacing: -.03em; text-transform: uppercase; }
.source-head p { color: var(--on-orange-muted); }
.source-head .run { font-size: 13px; }
.soon-box { margin: 10px 0 0; padding: 20px 0; border-top: 2px solid var(--on-orange); font: 500 clamp(18px, 2.4vw, 24px)/1.35 var(--text); max-width: 760px; }

/* фильтры */
.filters { padding: 14px var(--pad); display: grid; gap: 12px; border-bottom: 2px solid var(--on-orange); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  background: transparent; border: 1.5px solid var(--on-orange); padding: 7px 12px;
  font: 600 13px/1 var(--text); border-radius: 0;
}
.chip b { font-weight: 800; margin-left: 4px; }
.chip[aria-selected="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.filter-row { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.filter-row input[type=search], .filter-row select {
  background: transparent; border: 0; border-bottom: 1.5px solid var(--on-orange); padding: 7px 0;
  border-radius: 0; outline: none; min-width: 0;
}
.filter-row input[type=search] { flex: 1 1 260px; font-size: 16px; }
.filter-row input[type=search]::placeholder { color: var(--on-orange-muted); }
.filter-row select { -webkit-appearance: none; appearance: none; padding-right: 18px; font-weight: 600;
  background: linear-gradient(45deg, transparent 50%, var(--ink) 50%) right 6px center / 6px 6px no-repeat,
              linear-gradient(-45deg, transparent 50%, var(--ink) 50%) right 0 center / 6px 6px no-repeat; }
.check { display: inline-flex; gap: 7px; align-items: center; font-size: 14px; font-weight: 600; }
.check input { accent-color: var(--ink); width: 16px; height: 16px; }

/* карточки */
.grid {
  padding: 22px var(--pad) 40px; display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
}
.card { background: var(--ink); color: var(--paper); display: flex; flex-direction: column; min-width: 0; }
.card.rejected { opacity: .55; }
.works { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--ink); aspect-ratio: 3 / 1.25; }
.work { position: relative; display: block; overflow: hidden; background: var(--ink-2); }
.work img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.work:hover img { transform: scale(1.04); }
.work .kind {
  position: absolute; left: 6px; bottom: 6px; font: 800 10px/1 var(--wide); text-transform: uppercase;
  background: rgba(11, 10, 10, .75); padding: 4px 5px; letter-spacing: .04em;
}
.work.empty { display: grid; place-items: center; color: var(--faint); font-size: 12px; }
.c-body { padding: 16px 16px 14px; display: grid; gap: 10px; flex: 1; align-content: start; }
.c-head { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; }
.ava { width: 44px; height: 44px; object-fit: cover; background: var(--ink-3); display: block; }
.ava.ph { display: grid; place-items: center; font: 800 16px/1 var(--wide); color: var(--orange); }
.c-name { font: 800 15px/1.2 var(--wide); overflow-wrap: anywhere; }
.c-handle { font-size: 13px; color: var(--muted); text-decoration: none; }
.c-handle:hover { color: var(--paper); text-decoration: underline; }
.score { font: 900 40px/.9 var(--wide); color: var(--orange); text-align: right; }
.score small { display: block; font: 500 9px/1.2 var(--wide); color: var(--faint); text-transform: uppercase; letter-spacing: .06em; }
.summary { font-size: 14px; }
.about { font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.meta { font-size: 12px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 12px; }
.tags { display: flex; flex-wrap: wrap; gap: 5px; }
.tag { font: 600 11px/1 var(--text); padding: 5px 7px; border: 1px solid var(--line); color: var(--muted); }
.tag.type { border-color: var(--paper); color: var(--paper); }
.tag.ready { background: var(--green); color: var(--ink); border-color: var(--green); }
.tag.rej { background: var(--ink-3); border-color: var(--ink-3); color: var(--paper); }
.contacts { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; }
.contacts a { color: var(--paper); text-underline-offset: 3px; }
.found { font-size: 11px; color: var(--faint); }
.c-foot { border-top: 1px solid var(--line); padding: 12px 16px 14px; display: grid; gap: 8px; }
.c-actions { display: flex; gap: 8px; align-items: center; }
.c-actions select {
  flex: 1; background: var(--ink-2); border: 1px solid var(--line); color: var(--paper); padding: 8px; border-radius: 0;
  font-weight: 700; font-size: 13px;
}
.c-actions select[data-s="Написать"] { border-color: var(--yellow); color: var(--yellow); }
.c-actions select[data-s="Написали"], .c-actions select[data-s="Ответил"] { border-color: var(--orange); color: var(--orange); }
.c-actions select[data-s="Анкета"] { border-color: var(--green); color: var(--green); }
.c-actions select[data-s="Не подходит"] { color: var(--faint); }
.btn {
  background: var(--orange); color: var(--ink); border: 0; padding: 9px 12px;
  font: 800 11px/1 var(--wide); text-transform: uppercase; letter-spacing: .04em; white-space: nowrap;
}
.btn:hover { background: var(--orange-2); }
.note {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line); color: var(--paper);
  padding: 6px 0; font-size: 13px; resize: vertical; min-height: 32px; outline: none; border-radius: 0;
}
.note:focus { border-bottom-color: var(--orange); }
.who-did { font-size: 11px; color: var(--faint); }

.empty { padding: 30px var(--pad) 60px; font: 500 18px/1.4 var(--text); max-width: 700px; }

/* чаты */
.chats { padding: 10px var(--pad) 40px; border-top: 2px solid var(--on-orange); }
.chats h2 { font: 900 24px/1.1 var(--wide); text-transform: uppercase; margin-top: 18px; }
.chats .hint { color: var(--on-orange-muted); margin: 6px 0 14px; }
.chats ul { list-style: none; columns: 3 260px; column-gap: 28px; }
.chats li { break-inside: avoid; padding: 7px 0; border-bottom: 1px solid rgba(11, 10, 10, .25); font-size: 14px; }
.chats li span { color: var(--on-orange-muted); font-size: 12px; }

.foot { padding: 20px var(--pad) 30px; font-size: 12px; color: var(--on-orange-muted); border-top: 2px solid var(--on-orange); }

.toast {
  position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--paper); padding: 12px 16px; font-weight: 700; font-size: 14px;
  transition: .2s; max-width: calc(100% - 32px);
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.card :focus-visible { outline-color: var(--orange); }

@media (max-width: 560px) {
  .who { font-size: 12px; }
  .brand-sub { display: none; }
  .score { font-size: 32px; }
}
