.clans {
  --cl-accent: #f5cc00;
  color: var(--text, #dce8f4);
  font-family: inherit;
}
.clans h1,
.clans h2,
.clans h3,
.clans h4,
.cl-dialog h2 {
  margin: 0;
  color: #f4f7fc;
  line-height: 1.2;
}
.clans h2,
.cl-dialog h2 {
  font-size: 1.15rem;
}
.clans a {
  text-decoration: none;
}
.cl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid transparent;
  background: #f5cc00;
  color: #121500;
  padding: 11px 16px;
  border-radius: 10px;
  font: inherit;
  font-weight: 750;
  font-size: 0.84rem;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1.3;
}
.cl-btn:hover {
  filter: brightness(1.1);
}
.cl-btn:disabled {
  opacity: 0.55;
  cursor: wait;
}
.cl-ghost {
  background: #ffffff06;
  border-color: #ffffff16;
  color: #dce8f4;
}
.clans button:focus-visible,
.clans a:focus-visible,
.cl-dialog button:focus-visible {
  outline: 2px solid #f5cc00;
  outline-offset: 3px;
}
.clans input:not([type="checkbox"]),
.clans select,
.cl-dialog input,
.cl-dialog textarea,
.cl-dialog select {
  background: #0c1422;
  border: 1px solid #29364b;
  color: #e8eef8;
  border-radius: 9px;
  padding: 11px;
  font: inherit;
  font-size: 0.85rem;
  min-width: 0;
  max-width: 100%;
}
.clans input:focus,
.clans select:focus,
.cl-dialog input:focus,
.cl-dialog textarea:focus,
.cl-dialog select:focus {
  outline: 1px solid #f5cc00;
}
.cl-muted {
  color: #8ca1bb;
  font-size: 0.85rem;
}
.cl-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.65;
}
.cl-eyebrow {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  font-weight: 750;
  color: #aab5c3;
}
.cl-hero {
  position: relative;
  overflow: hidden;
  padding: 30px;
  border: 1px solid #ffffff17;
  border-radius: 18px;
  background: radial-gradient(ellipse at 100% 0%, #50432255, transparent 68%),
    linear-gradient(120deg, #182133, #101722);
  min-height: 286px;
}
.cl-hero h1 {
  position: relative;
  z-index: 1;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  letter-spacing: -0.04em;
  margin-top: 19px;
  font-weight: 800;
}
.cl-hero h1 span {
  color: #f5cc00;
}
.cl-hero p {
  position: relative;
  z-index: 1;
  color: #9dabbe;
  line-height: 1.7;
  font-size: 0.88rem;
  margin: 15px 0 22px;
}
.cl-hero-foot {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: #8493a7;
}
.cl-hero-foot b {
  color: #edf3ff;
}
.cl-hero-art {
  position: absolute;
  right: 24px;
  top: 30px;
  width: 185px;
  height: 185px;
  opacity: 0.65;
  transform: rotate(-12deg);
  display: grid;
  place-items: center;
}
.cl-hero-art > span {
  font-family: Georgia, serif;
  font-size: 100px;
  color: #c8aa44;
  text-shadow: 0 0 70px #f5cc0044;
}
.cl-hero-art i {
  position: absolute;
  bottom: 14px;
  font-style: normal;
  font-size: 8px;
  letter-spacing: 0.2em;
  color: #b29851;
}
.cl-art-ring {
  position: absolute;
  inset: 0;
  border: 1px solid #d5b75a40;
  transform: rotate(45deg);
  border-radius: 32px;
  background: linear-gradient(135deg, #b89b3116, transparent);
}
.cl-art-ring:after {
  content: "";
  position: absolute;
  inset: 15px;
  border: 1px solid #d5b75a22;
  border-radius: 24px;
}
.cl-my {
  display: flex;
  align-items: center;
  gap: 13px;
  background: #f5cc0009;
  border: 1px solid #f5cc0030;
  border-radius: 13px;
  margin-top: 14px;
  padding: 14px;
  color: #dce8f4;
}
.cl-my small {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: #998d55;
  margin-bottom: 5px;
}
.cl-my strong {
  font-size: 0.92rem;
}
.cl-my > span:last-child {
  margin-left: auto;
  font-size: 0.75rem;
  color: #f5cc00;
}
.cl-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 17px;
}
.cl-section-heading > span {
  color: #8194af;
  font-size: 0.75rem;
}
.cl-section-heading p {
  margin: 7px 0 0;
}
.clans > .cl-section-heading {
  margin-top: 30px;
}
.cl-filters {
  display: flex;
  gap: 9px;
  margin: 15px 0;
}
.cl-filters input[type="search"] {
  flex: 1;
  width: 0;
}
.cl-filters select {
  max-width: 190px;
}
.cl-filters label {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  font-size: 0.76rem;
  color: #92a3b9;
}
.cl-filters input[type="checkbox"] {
  accent-color: #f5cc00;
}
.cl-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.cl-card {
  background: #111b2bd9;
  border: 1px solid #ffffff12;
  border-radius: 15px;
  padding: 22px;
  transition:
    transform 0.15s,
    border-color 0.15s;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.cl-card:hover {
  transform: translateY(-3px);
  border-color: #f5cc0060;
}
.cl-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 20px;
}
.cl-emblem {
  display: inline-flex;
  width: 64px;
  height: 64px;
  border-radius: 17px;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-family: Georgia, serif;
  font-weight: bold;
  border: 1px solid currentColor;
  box-shadow: inset 0 0 24px #ffffff08;
  flex-shrink: 0;
}
.cl-gold {
  color: #e5c754;
  background: #e5c7540c;
}
.cl-green {
  color: #5acb9c;
  background: #5acb9c0c;
}
.cl-blue {
  color: #78b9ff;
  background: #78b9ff0c;
}
.cl-purple {
  color: #c299ff;
  background: #c299ff0c;
}
.cl-orange {
  color: #ffa160;
  background: #ffa1600c;
}
.cl-small {
  width: 42px;
  height: 42px;
  font-size: 25px;
  border-radius: 11px;
}
.cl-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 8px;
  font-size: 0.63rem;
  border-radius: 6px;
  background: #ffffff06;
  border: 1px solid #ffffff0d;
  color: #a5b3c7;
  white-space: nowrap;
}
.cl-pill-green {
  color: #70d5a9;
  background: #18d98a0b;
  border-color: #18d98a25;
}
.cl-tag {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: #8495ad;
  margin-bottom: 7px;
  font-weight: 700;
}
.cl-card h3 {
  font-size: 1.14rem;
  overflow-wrap: anywhere;
}
.cl-card > p {
  font-size: 0.81rem;
  color: #8fa1b9;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 4.1em;
  margin: 10px 0 20px;
}
.cl-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid #ffffff0a;
  padding-top: 14px;
  margin-top: auto;
  font-size: 0.68rem;
  color: #8699b4;
}
.cl-card-bottom > b {
  font-size: 0.8rem;
  color: #d0dbee;
  white-space: nowrap;
}
.cl-card-bottom small {
  font-size: 0.7rem;
  color: #75859b;
  font-weight: 400;
}
.cl-empty {
  padding: 36px 20px;
  text-align: center;
  color: #8496b0;
  border: 1px dashed #ffffff18;
  border-radius: 14px;
  line-height: 1.8;
  grid-column: 1/-1;
  font-size: 0.85rem;
}
.cl-empty h2 {
  margin-bottom: 10px;
}
.cl-demo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #5fb0ff33;
  background: #5fb0ff0a;
  border-radius: 10px;
  margin-bottom: 15px;
  font-size: 0.7rem;
  color: #8eb9e9;
}
.cl-demo label {
  display: flex;
  align-items: center;
  gap: 7px;
}
.cl-demo select {
  padding: 5px 8px;
  font-size: 0.7rem;
}
.cl-back {
  display: inline-block;
  font-size: 0.79rem;
  color: #8fa2bb;
  margin-bottom: 18px;
}
.cl-cover {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1d293b, #121b29);
  border: 1px solid #ffffff14;
  border-radius: 17px;
  padding: 28px;
}
.cl-cover-gold {
  background: radial-gradient(ellipse at 100% 0, #67522550, transparent 65%),
    #141e2d;
}
.cl-cover-green {
  background: radial-gradient(ellipse at 100% 0, #1d674a50, transparent 65%),
    #141e2d;
}
.cl-cover-purple {
  background: radial-gradient(ellipse at 100% 0, #55367555, transparent 65%),
    #141e2d;
}
.cl-cover-blue {
  background: radial-gradient(ellipse at 100% 0, #25587555, transparent 65%),
    #141e2d;
}
.cl-cover-orange {
  background: radial-gradient(ellipse at 100% 0, #75422555, transparent 65%),
    #141e2d;
}
.cl-cover-symbol {
  position: absolute;
  right: 26px;
  top: 2px;
  font:
    180px Georgia,
    serif;
  color: #ffffff07;
  transform: rotate(-12deg);
}
.cl-identity {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 25px 0;
}
.cl-identity .cl-emblem {
  width: 78px;
  height: 78px;
  font-size: 45px;
}
.cl-identity h1 {
  font-size: 1.85rem;
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
}
.cl-identity p {
  font-size: 0.76rem;
  color: #93a3ba;
  margin: 9px 0 0;
}
.cl-cover-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  position: relative;
}
.cl-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  border-bottom: 1px solid #ffffff13;
  margin: 20px 0;
  scrollbar-width: thin;
}
.cl-tabs button {
  border: 0;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  font: inherit;
  font-size: 0.8rem;
  white-space: nowrap;
  padding: 12px 13px;
  background: transparent;
  color: #879ab5;
}
.cl-tabs button.selected {
  color: #f5cc00;
  border-bottom-color: #f5cc00;
}
.cl-tabs b {
  background: #f5cc00;
  color: #141b25;
  font-size: 0.65rem;
  padding: 1px 4px;
  border-radius: 4px;
}
.cl-section {
  border: 1px solid #ffffff10;
  background: #111b2be8;
  border-radius: 14px;
  padding: 22px;
  margin-bottom: 15px;
}
.cl-section > .cl-text {
  font-size: 0.87rem;
  color: #a5b3c7;
}
.cl-announcement {
  border-top: 1px solid #ffffff0c;
  padding: 16px 0 0;
  margin-top: 16px;
}
.cl-announcement > div,
.cl-message > div {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
}
.cl-announcement time,
.cl-message time {
  font-size: 0.65rem;
  color: #7386a0;
}
.cl-announcement p {
  font-size: 0.85rem;
  margin-bottom: 0;
  color: #acb9ce;
}
.cl-overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}
.cl-overview-grid button,
.cl-overview-grid a {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 10px;
  background: #111b2b;
  border: 1px solid #ffffff12;
  border-radius: 13px;
  padding: 23px;
  text-align: left;
  cursor: pointer;
  color: #869ab7;
}
.cl-overview-grid small {
  font-size: 0.59rem;
  letter-spacing: 0.12em;
}
.cl-overview-grid strong {
  font-size: 1.6rem;
  color: #edf3fc;
}
.cl-overview-grid span {
  font-size: 0.75rem;
}
.cl-member {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-top: 1px solid #ffffff0c;
}
.cl-avatar {
  width: 40px;
  height: 40px;
  background: #233249;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 750;
  color: #b0c1dd;
}
.cl-member > div {
  flex: 1;
}
.cl-member a {
  color: #d7e3f5;
  font-weight: 700;
  font-size: 0.85rem;
}
.cl-member small {
  display: block;
  font-size: 0.69rem;
  color: #8196b2;
  margin-top: 4px;
}
.cl-section-footer {
  border-top: 1px solid #ffffff0c;
  margin-top: 18px;
  padding-top: 18px;
}
.cl-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.cl-column {
  background: #0c1523aa;
  border: 1px solid #ffffff0c;
  border-radius: 12px;
  padding: 12px;
  min-width: 0;
}
.cl-column h3 {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.75rem;
  margin: 2px 0 15px;
}
.cl-column h3 b {
  margin-left: auto;
  color: #6e819f;
  font-size: 0.7rem;
}
.cl-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #889ab8;
}
.cl-status-dot.active {
  background: #f5cc00;
}
.cl-status-dot.done {
  background: #54c797;
}
.cl-project {
  background: #172236;
  border: 1px solid #ffffff0e;
  border-radius: 10px;
  padding: 13px;
  margin-bottom: 10px;
}
.cl-project h4 {
  font-size: 0.81rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.cl-project > p {
  font-size: 0.73rem;
  color: #92a6c2;
}
.cl-resources {
  border-top: 1px solid #ffffff0b;
  padding-top: 10px;
}
.cl-resources small {
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  color: #657d9f;
}
.cl-resources p {
  font-size: 0.69rem;
  color: #a7b7ce;
  margin: 5px 0 12px;
}
.cl-assignee {
  font-size: 0.65rem;
  color: #7b91b0;
  line-height: 1.8;
}
.cl-assignee b {
  color: #b2c3dd;
  font-weight: 500;
}
.cl-project select {
  width: 100%;
  font-size: 0.69rem;
  padding: 7px;
  margin-top: 12px;
  background: #101a2a;
}
.cl-link {
  color: #f5cc00;
  display: block;
  font-size: 0.7rem;
  margin: 10px 0;
}
.cl-column-empty {
  text-align: center;
  color: #5e7595;
  font-size: 0.73rem;
  padding: 25px 0;
}
.cl-messages {
  height: 350px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 7px;
}
.cl-message {
  padding: 14px;
  background: #1b294055;
  border: 1px solid #ffffff08;
  border-radius: 11px;
  margin: 10px 30px 10px 0;
}
.cl-message.mine {
  margin: 10px 0 10px 30px;
  background: #f5cc0008;
  border-color: #f5cc001d;
}
.cl-message p {
  font-size: 0.83rem;
  margin: 7px 0 0;
}
.cl-chat-form {
  display: flex;
  gap: 9px;
  margin-top: 16px;
}
.cl-chat-form input {
  flex: 1;
  width: 0;
}
.cl-audit {
  display: flex;
  gap: 13px;
  padding: 14px 0;
  border-top: 1px solid #ffffff09;
  font-size: 0.8rem;
  line-height: 1.6;
  color: #91a5c0;
}
.cl-audit b {
  color: #cad7eb;
}
.cl-audit small {
  display: block;
  color: #637f9e;
  font-size: 0.65rem;
  margin-top: 4px;
}
.cl-audit-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #455976;
  flex: none;
  margin-top: 6px;
}
.cl-request {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #ffffff0d;
  padding: 14px 0;
}
.cl-request b {
  font-size: 0.85rem;
}
.cl-request p {
  font-size: 0.78rem;
  color: #879db9;
}
.cl-inline-actions {
  display: flex;
  gap: 7px;
}
.cl-invite {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 0;
  border-top: 1px solid #ffffff0c;
  flex-wrap: wrap;
  font-size: 0.81rem;
}
.cl-invite > a,
.cl-invite > b {
  margin-right: auto;
  color: #dce8f4;
}
.cl-notice {
  padding: 13px 16px;
  border: 1px solid #54c79744;
  border-radius: 10px;
  background: #54c79710;
  color: #7ddbb2;
  margin: 15px 0;
  font-size: 0.82rem;
}
.cl-notice[hidden] {
  display: none;
}
.cl-error {
  color: #ffa4b0;
  font-size: 0.81rem;
  line-height: 1.5;
}
.cl-notice.cl-error {
  background: #e0406012;
  border-color: #e0406044;
}
.cl-dialog {
  color: #dce8f4;
  background: #131e2e;
  border: 1px solid #34435b;
  border-radius: 18px;
  width: min(490px, calc(100% - 30px));
  padding: 25px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 90px #0009;
  font-family: inherit;
}
.cl-dialog::backdrop {
  background: #040914c9;
  backdrop-filter: blur(5px);
}
.cl-dialog form > label,
.cl-form-two label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.78rem;
  color: #9cacc4;
  margin: 15px 0;
}
.cl-dialog input,
.cl-dialog select,
.cl-dialog textarea {
  width: 100%;
  box-sizing: border-box;
}
.cl-dialog textarea {
  resize: vertical;
}
.cl-close {
  border: 0;
  background: none;
  color: #91a3bc;
  font-size: 26px;
  cursor: pointer;
  line-height: 1;
}
.cl-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}
.cl-form-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.cl-member-danger {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  border-top: 1px solid #ffffff13;
  margin-top: 20px;
  padding-top: 20px;
}
.cl-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  clip: rect(0, 0, 0, 0);
  overflow: hidden;
}
.clans {
  overflow-wrap: anywhere;
}
@media (min-width: 1101px) {
  body:has(.clans) .hub {
    grid-template-columns: 210px minmax(0, 1fr) 240px;
  }
}
@media (max-width: 760px) {
  .cl-demo {
    align-items: flex-start;
    flex-direction: column;
  }
  .cl-hero {
    padding: 23px;
  }
  .cl-hero-art {
    right: 8px;
    top: 25px;
    width: 130px;
    height: 130px;
    opacity: 0.35;
  }
  .cl-hero-art > span {
    font-size: 75px;
  }
  .cl-hero h1 {
    font-size: 2rem;
  }
  .cl-hero-foot {
    align-items: flex-start;
    flex-direction: column;
  }
  .cl-filters {
    flex-wrap: wrap;
  }
  .cl-filters input[type="search"] {
    min-width: 150px;
  }
  .cl-filters label {
    width: 100%;
    padding: 5px 0;
  }
  .cl-card {
    padding: 18px;
  }
  .cl-cover {
    padding: 22px;
  }
  .cl-identity h1 {
    font-size: 1.5rem;
  }
  .cl-identity .cl-emblem {
    width: 60px;
    height: 60px;
    font-size: 35px;
  }
  .cl-board {
    grid-template-columns: 1fr;
  }
  .cl-column {
    padding: 15px;
  }
  .cl-project {
    padding: 16px;
  }
  .cl-project h4 {
    font-size: 0.93rem;
  }
  .cl-project > p {
    font-size: 0.83rem;
  }
  .cl-request {
    align-items: flex-start;
    flex-direction: column;
  }
  .cl-chat-form {
    flex-wrap: wrap;
  }
  .cl-chat-form input {
    min-width: 170px;
  }
  .cl-tabs button {
    padding: 12px 10px;
  }
  .cl-section {
    padding: 18px;
  }
}
@media (max-width: 460px) {
  .cl-grid {
    grid-template-columns: 1fr;
  }
  .cl-overview-grid {
    grid-template-columns: 1fr;
  }
  .cl-section-heading {
    align-items: flex-start;
  }
  .cl-section-heading > span {
    max-width: 130px;
    text-align: right;
  }
  .cl-identity {
    gap: 12px;
  }
  .cl-cover .cl-eyebrow {
    font-size: 0.58rem;
  }
  .cl-identity p {
    font-size: 0.68rem;
  }
  .cl-hero p {
    font-size: 0.82rem;
  }
  .cl-desktop {
    display: none;
  }
  .cl-cover-symbol {
    font-size: 130px;
  }
  .cl-my > span:last-child {
    font-size: 0;
  }
  .cl-chat-form .cl-btn {
    width: 100%;
  }
  .cl-filters select {
    max-width: 145px;
  }
  .cl-dialog {
    padding: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cl-card {
    transition: none;
  }
  .cl-card:hover {
    transform: none;
  }
}

/* Разделы клана: 7 групп сверху + подвкладки внутри группы (11.10.2026) */
.cl-tabs .cl-tab-link { display: inline-flex; align-items: center; gap: 4px; padding: 12px 13px; color: #879ab5; text-decoration: none; font-size: 0.8rem; white-space: nowrap; border-bottom: 2px solid transparent; }
.cl-tabs .cl-tab-link:hover { color: #fff; }
.cl-subtabs { display: flex; gap: 6px; flex-wrap: wrap; margin: -8px 0 18px; }
.cl-subtabs button { border: 1px solid #ffffff17; background: #ffffff08; color: #9fb0c6; border-radius: 999px; padding: 6px 13px; font: inherit; font-size: 0.78rem; cursor: pointer; }
.cl-subtabs button:hover { color: #fff; border-color: #ffffff2a; }
.cl-subtabs button.selected { background: #f5cc0022; border-color: #f5cc0066; color: #f5cc00; }
.cl-overview-grid a { text-decoration: none; }
.cl-fee-note b { color: #f5cc00; }
.cl-check { display: flex; align-items: center; gap: 8px; margin-top: 10px; color: #b9c9da; font-size: 0.85rem; cursor: pointer; }
.cl-check input { width: 16px; height: 16px; accent-color: #f5cc00; }
