/* Служба ИТ-поддержки. Язык: серая подложка, белые панели с крупным скруглением, капсулы, чёрный + лаймово-зелёный акцент.
   Акцент меняется в одном месте: токены --lime / --green / --green-dark. */
@font-face{font-family:"Golos";font-style:normal;font-weight:400 700;font-display:swap;src:url(/static/golos-cyr.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"Golos";font-style:normal;font-weight:400 700;font-display:swap;src:url(/static/golos-lat.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

:root{
  --canvas:#e7e9ec; --bg:#f3f4f5; --surface:#ffffff; --soft:#f4f5f6; --soft-2:#eceef0;
  --fg:#141414; --muted:#6c7078; --faint:#a3a7ae; --line:#e9ebee;
  --lime:#bdf24a; --lime-hover:#aee332; --green:#1d8f52; --green-dark:#0d4a2b;
  --accent:#141414; --accent-soft:#eef9d8;
  --new:#3b7cf6; --new-bg:#e9f0fe; --work:#e3a008; --work-bg:#fdf4dc; --done:#22a35a; --done-bg:#e3f6ea; --rej:#9aa0a8; --rej-bg:#eff0f2;
  --urgent:#e5483d; --urgent-bg:#fdecea;
  --shadow:0 1px 2px rgba(20,20,20,.04);
  --shadow-lg:0 20px 48px -12px rgba(20,20,20,.22);
  --font:"Golos","Segoe UI",system-ui,-apple-system,Roboto,Arial,sans-serif;
  --mono:"Cascadia Mono",Consolas,"Courier New",monospace;
  --r-xl:24px; --r-lg:18px; --r:12px; --r-sm:10px;
  color-scheme:light;
}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--canvas);color:var(--fg);font:14px/1.5 var(--font);-webkit-font-smoothing:antialiased}
h1,h2,h3{margin:0;line-height:1.15;text-wrap:balance;letter-spacing:-.02em;font-weight:500}
p{text-wrap:pretty}
a{color:var(--fg)}
button,input,select,textarea{font:inherit;color:inherit}
:focus-visible{outline:2px solid var(--green);outline-offset:2px}
[hidden]{display:none!important}
.ico{width:20px;height:20px;flex:none;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.muted{color:var(--muted)}
.num{font:500 13px var(--font);color:var(--muted);font-variant-numeric:tabular-nums}

/* панели */
.panel{background:var(--surface);border-radius:var(--r-xl)}
.card{background:var(--surface);border-radius:var(--r-xl)}

/* поля */
.field{display:flex;flex-direction:column;gap:7px;min-width:0}
.label{font-size:13px;font-weight:500;color:var(--fg)}
.label .req{color:var(--urgent)}
.hint{font-size:12px;color:var(--faint)}
.input,select.input,textarea.input{width:100%;min-width:0;background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:11px 14px;transition-property:border-color,box-shadow,background-color;transition-duration:.15s}
.input::placeholder{color:var(--faint)}
.input:hover{border-color:#d9dce0}
.input:focus{outline:none;border-color:var(--fg);box-shadow:0 0 0 3px rgba(20,20,20,.06)}
textarea.input{min-height:96px;resize:vertical;line-height:1.5}
select.input{appearance:none;-webkit-appearance:none;padding-right:38px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%23141414' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 15px center;cursor:pointer}
.pill-input{border-radius:999px}

/* кнопки-капсулы */
.btn{text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid transparent;border-radius:999px;padding:10px 20px;font-weight:500;font-size:14px;cursor:pointer;background:var(--lime);color:#141414;transition-property:background-color,border-color,transform;transition-duration:.15s;white-space:nowrap}
.btn:hover{background:var(--lime-hover)}
.btn:active{transform:scale(.97)}
.btn:disabled{opacity:.5;cursor:default;transform:none}
.btn.dark{background:#141414;color:#fff}
.btn.dark:hover{background:#2a2a2a}
.btn.ghost{background:var(--surface);border-color:var(--line);color:var(--fg)}
.btn.ghost:hover{border-color:#d4d7dc}
.btn.soft{background:var(--soft);color:var(--fg)}
.btn.soft:hover{background:var(--soft-2)}
.btn.danger{background:var(--surface);color:var(--urgent);border-color:#f6cfcb}
.btn.danger:hover{background:var(--urgent-bg)}
.btn.sm{padding:7px 14px;font-size:13px}
.btn.lg{padding:14px 24px;font-size:15px}
.btn .ico{width:18px;height:18px}
.round{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:var(--surface);border:0;color:var(--fg);cursor:pointer;position:relative;transition:background-color .15s}
.round:hover{background:var(--soft)}
.round .ico{width:20px;height:20px}

/* сегменты-капсулы: активный пункт чёрный */
.seg{display:inline-flex;align-self:flex-start;max-width:100%;background:var(--surface);border-radius:999px;padding:4px;gap:2px;flex-wrap:wrap}
.seg button{border:0;background:none;border-radius:999px;padding:8px 16px;font-size:14px;color:var(--muted);cursor:pointer;display:inline-flex;align-items:center;gap:7px;transition-property:background-color,color;transition-duration:.15s}
.seg button:hover{color:var(--fg)}
.seg button[aria-pressed="true"]{background:#141414;color:#fff}
.seg button .ico{width:17px;height:17px}
.seg.on-soft{background:var(--soft)}

/* статус: точка + текст */
.chip,.st{display:inline-flex;align-items:center;gap:7px;font-size:13px;white-space:nowrap;color:var(--fg)}
.chip::before,.st::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--c,currentColor)}
.chip.new,.st.new{--c:var(--new)}.chip.work,.st.work{--c:var(--work)}.chip.done,.st.done{--c:var(--done)}.chip.rejected,.st.rejected{--c:var(--rej)}
.chip.urgent{--c:var(--urgent);color:var(--urgent)}
.badge{display:inline-flex;align-items:center;gap:4px;font-size:12px;font-weight:500;padding:2px 8px;border-radius:999px;background:var(--soft);color:var(--muted);white-space:nowrap}
.badge.red{background:var(--urgent-bg);color:var(--urgent)}
.badge.green{background:var(--accent-soft);color:var(--green)}

.msg{font-size:13px;color:var(--muted)}
.msg.err{color:var(--urgent)}

/* логотип в капсуле */
.logo{display:inline-flex;align-items:center;gap:10px;background:var(--surface);border-radius:999px;padding:6px 16px 6px 6px;font-weight:600;font-size:15px;letter-spacing:-.01em;white-space:nowrap}
.logo-mark{width:34px;height:34px;border-radius:50%;background:linear-gradient(140deg,var(--green),var(--green-dark));color:var(--lime);display:grid;place-items:center;font-size:12px;font-weight:700;letter-spacing:.02em;flex:none}
.brand-mark{width:34px;height:34px;border-radius:50%;background:linear-gradient(140deg,var(--green),var(--green-dark));color:var(--lime);display:grid;place-items:center;font-size:12px;font-weight:700}
.brand{display:flex;align-items:center;gap:10px;font-weight:600}
.brand small{display:block;font-weight:400;font-size:12px;color:var(--muted)}

/* аватар */
.av{width:32px;height:32px;border-radius:50%;background:var(--accent-soft);color:var(--green-dark);display:grid;place-items:center;font-size:12px;font-weight:600;flex:none}
.av.sm{width:24px;height:24px;font-size:10px}

/* лента событий */
.timeline{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.timeline li{position:relative;padding:0 0 16px 22px;font-size:14px}
.timeline li::before{content:"";position:absolute;left:4px;top:7px;width:8px;height:8px;border-radius:50%;background:#d6d9de;box-shadow:0 0 0 3px var(--surface)}
.timeline li::after{content:"";position:absolute;left:7.5px;top:18px;bottom:0;width:1px;background:var(--line)}
.timeline li:last-child::after{display:none}
.timeline li.reply::before{background:var(--green)}
.timeline li.status::before{background:var(--work)}
.timeline .t{font-size:12px;color:var(--faint)}
.timeline .bubble{margin-top:5px;background:var(--soft);border-radius:14px;padding:9px 13px;white-space:pre-wrap;overflow-wrap:anywhere}
.timeline li.reply .bubble{background:var(--accent-soft)}

@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
