@font-face {
  font-family: "SLR Heading";
  src: url("/slr-heading.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

.wcp[data-theme="slr"] {
  --wc-ink: #151717;
  --wc-muted: #495858;
  --wc-line: #d3dddd;
  --wc-paper: #f7f8f8;
  --slr-rail: clamp(196px, 16.8vw, 260px);
  --slr-heading: "SLR Heading", "Segoe UI", sans-serif;
}

.wcp[data-theme="slr"] .wc-top {
  display: grid;
  grid-template-columns: var(--slr-rail) minmax(0, 1fr) auto;
  min-height: 82px;
  align-items: stretch;
  gap: 0;
  padding: 0;
  border: 0;
}

.wcp[data-theme="slr"] .wc-brand {
  justify-content: center;
  padding: 16px;
  border-right: 1px solid var(--wc-line);
}

.wcp[data-theme="slr"] .wc-brand img {
  width: min(100%, 144px);
}

.wc-slr-top-title {
  align-self: center;
  padding: 0 24px;
  font-size: clamp(17px, 1.65vw, 24px);
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.wcp[data-theme="slr"] .wc-top-actions {
  justify-content: end;
  align-content: center;
  padding: 10px 24px 10px 0;
  gap: 12px;
}

.wc-slr-icon {
  display: block;
  flex: none;
}

.wc-slr-account {
  position: relative;
}

.wc-slr-account summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  cursor: pointer;
  list-style: none;
}

.wc-slr-account summary::-webkit-details-marker {
  display: none;
}

.wc-slr-account summary:focus-visible {
  outline: 2px solid var(--wc-accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.wc-slr-account summary [data-wc-avatar] .wc-slr-icon {
  width: 35px;
  height: 35px;
  padding: 5px;
  border-radius: 50%;
  background: #d5ecea;
}

.wc-slr-account summary > .wc-slr-icon {
  width: 17px;
  height: 17px;
}

.wc-slr-account-panel {
  display: grid;
  gap: 8px;
  position: absolute;
  z-index: 3;
  inset: calc(100% + 6px) 0 auto auto;
  width: max-content;
  max-width: min(260px, calc(100vw - 32px));
  padding: 12px;
  overflow-wrap: anywhere;
  border: 1px solid var(--wc-line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 26px #15171718;
}

.wcp[data-theme="slr"] .wc-shell {
  grid-template-columns: var(--slr-rail) minmax(0, 1fr);
  max-width: none;
  min-height: calc(100vh - 82px);
}

.wcp[data-theme="slr"] .wc-nav {
  gap: 10px;
  padding: 40px 10px;
  background: #fff;
}

.wcp[data-theme="slr"] .wc-nav button {
  min-height: 56px;
  gap: 10px;
  padding: 9px 12px;
  font-size: clamp(15px, 1.25vw, 19px);
}

.wcp[data-theme="slr"] .wc-nav button[aria-current="page"] {
  border-color: transparent;
  background: #d2e8e7;
}

.wcp[data-theme="slr"] .wc-main {
  padding: 18px 18px 40px 22px;
}

.wcp[data-theme="slr"] .wc-page-head h1,
.wc-slr-recent h2 {
  font-family: var(--slr-heading);
  font-weight: 600;
}

.wc-slr-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(320px, 28vw, 455px);
  overflow: hidden;
  border-radius: 15px;
  background: #cce5e4;
  margin-bottom: clamp(18px, 2.4vw, 36px);
}

.wc-slr-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 0 34%;
  background: url("/slr-hero.jpg") 63% center / cover no-repeat;
  mask-image: linear-gradient(to right, transparent, #000 48%);
}

.wc-slr-hero-content {
  padding: clamp(24px, 3vw, 50px);
}

.wcp .wc-slr-hero h1 {
  max-width: 14em;
  font: 600 clamp(31px, 4.7vw, 72px)/1.07 var(--slr-heading);
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
}

.wc-slr-hero h1 span {
  display: block;
}

.wcp .wc-slr-hero p {
  max-width: 31rem;
  margin: 16px 0 0;
  color: #233738;
  font-size: clamp(17px, 1.5vw, 22px);
  line-height: 1.39;
}

.wcp .wc-slr-hero [data-wc-create] {
  min-height: 68px;
  margin-top: 26px;
  padding: 12px 28px;
  border-radius: 8px;
  font: 600 clamp(16px, 1.9vw, 27px)/1.2 var(--slr-heading);
}

.wc-slr-recent {
  padding: clamp(17px, 2.1vw, 33px);
  border: 1px solid var(--wc-line);
  border-radius: 14px;
  background: #fff;
}

.wc-slr-recent header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 18px;
}

.wcp .wc-slr-recent h2 {
  font-size: clamp(23px, 3.25vw, 49px);
  letter-spacing: -.035em;
  line-height: 1.15;
}

.wcp .wc-slr-recent [data-wc-all] {
  flex: none;
  gap: 4px;
  padding-inline: 5px;
  background: transparent;
  border-color: transparent;
  color: #146b5d;
  font-size: clamp(15px, 1.58vw, 23px);
  font-weight: 650;
}

.wcp .wc-slr-recent [data-wc-all]:hover {
  background: var(--wc-soft);
}

.wc-slr-recent ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.wc-slr-recent li {
  border-top: 1px solid var(--wc-line);
}

.wcp .wc-slr-ticket {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px 18px;
  width: 100%;
  min-height: clamp(69px, 7.3vw, 111px);
  padding: 12px 0;
  text-align: left;
  border: 0;
  border-radius: 0;
}

.wc-slr-ticket strong,
.wc-slr-ticket-date {
  display: block;
  overflow-wrap: anywhere;
}

.wc-slr-ticket strong {
  font-size: clamp(16px, 1.8vw, 26px);
  line-height: 1.27;
}

.wc-slr-ticket-date {
  margin-top: 3px;
  font-size: clamp(13px, 1.33vw, 19px);
  color: var(--wc-muted);
}

.wc-slr-ticket .wct-status {
  max-width: 14em;
  padding: 7px 14px;
  border-radius: 9px;
  font-size: clamp(12px, 1.27vw, 18px);
  line-height: 1.25;
}

.wc-slr-ticket [data-color="progress"] {
  --wct-color: #07574b;
  --wct-tint: #cbe8e3;
}

.wc-slr-ticket [data-color="waiting"], .wc-slr-ticket [data-color="execution"] {
  --wct-color: #594815;
  --wct-tint: #f1ecdb;
}

.wc-slr-ticket [data-color="resolved"] {
  --wct-color: #215830;
  --wct-tint: #d7edda;
}

.wc-slr-recent .wc-message {
  border: 0;
  border-top: 1px solid var(--wc-line);
  border-radius: 0;
  margin: 0;
  padding: 16px 0 4px;
}

[data-cabinet-login="slr"] .auth-shell {
  margin: 0;
  min-height: 100vh;
  color: #151717;
  background: #d8ebea url("/slr-hero.jpg") right center / cover no-repeat;
  background-blend-mode: screen;
}

[data-cabinet-login="slr"] .auth-brand {
  line-height: 1;
}

[data-cabinet-login="slr"] .auth-card {
  border: 1px solid #d3dddd;
  box-shadow: 0 10px 40px #15171712;
}

[data-cabinet-login="slr"] .auth-card h1 {
  font: 600 26px/1.2 "SLR Heading", "Segoe UI", sans-serif;
}

[data-cabinet-login="slr"] .auth-card .primary {
  background: #087e73;
  color: #fff;
}

@media (max-width: 850px) {
  .wcp[data-theme="slr"] .wc-top {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    min-height: 62px;
    padding: 8px 14px;
  }
  .wcp[data-theme="slr"] .wc-brand {
    padding: 0;
    border: 0;
  }
  .wcp[data-theme="slr"] .wc-brand img { width: 95px; }
  .wc-slr-top-title { flex: 1 1 100px; padding: 0; }
  .wcp[data-theme="slr"] .wc-top-actions { margin-left: auto; padding: 0; }
  .wcp[data-theme="slr"] .wc-nav { padding: 6px 12px; }
  .wcp[data-theme="slr"] .wc-nav button { gap: 8px; min-height: 44px; padding: 7px 10px; }
  .wcp[data-theme="slr"] .wc-nav .wc-slr-icon { width: 20px; height: 20px; }
  .wcp[data-theme="slr"] .wc-main { padding: 14px 14px 32px; }
  .wc-slr-hero { min-height: 288px; }
}

@media (max-width: 560px) {
  .wc-slr-top-title { font-size: 15px; }
  .wc-slr-account summary span:not([data-wc-avatar]) { display: none; }
  .wcp[data-theme="slr"] .wc-top-actions label { flex-basis: 100%; }
  .wcp[data-theme="slr"] .wc-top-actions select { max-width: 155px; }
  .wc-slr-hero {
    min-height: 0;
    padding-top: 126px;
  }
  .wc-slr-hero::before {
    inset: 0 0 auto;
    height: 164px;
    background-position: center 54%;
    mask-image: linear-gradient(to bottom, #000 58%, transparent);
  }
  .wc-slr-hero-content { padding: 16px 18px 19px; }
  .wcp .wc-slr-hero h1 { font-size: clamp(25px, 7vw, 37px); }
  .wc-slr-hero h1 span { display: inline; }
  .wcp .wc-slr-hero p { margin-top: 11px; }
  .wcp .wc-slr-hero [data-wc-create] { width: 100%; min-height: 46px; margin-top: 16px; }
  .wc-slr-recent header { padding-bottom: 9px; }
  .wc-slr-recent [data-wc-all] .wc-slr-icon { display: none; }
  .wcp .wc-slr-ticket { grid-template-columns: minmax(0,1fr); gap: 6px; }
}
