* {
  box-sizing: border-box;
}

:root {
  --cu-ink: #2f2922;
  --cu-muted: #766b5d;
  --cu-line: #eadfce;
  --cu-card: rgba(255, 255, 255, .94);
  --cu-soft: #f8f2e8;
  --cu-gold: #b99b52;
  --cu-gold-dark: #7a612b;
  --cu-green: #3f7d5a;
  --cu-red: #d43f32;
  --cu-blue: #396f8f;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, sans-serif;
  color: var(--cu-ink);
  background:
    radial-gradient(circle at 0% 100%, rgba(221, 190, 112, .24), transparent 26%),
    linear-gradient(110deg, #f8f1e7 0%, #f7f4ed 50%, #eef5f2 100%);
}

.cu-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 24px auto 88px;
}

.cu-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 22px;
  border: 1px solid var(--cu-line);
  border-radius: 26px;
  background: var(--cu-card);
  box-shadow: 0 22px 68px rgba(80, 61, 30, .13);
}

.cu-title h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1;
}

.cu-title p {
  margin: .6rem 0 0;
  color: var(--cu-muted);
  font-size: 1.05rem;
}

.cu-header-actions {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.cu-btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--cu-gold);
  color: #fff;
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.cu-btn:hover,
.cu-btn:focus {
  text-decoration: none;
  filter: brightness(.97);
}

.cu-btn.secondary {
  background: #fff;
  color: var(--cu-gold-dark);
  border: 1px solid var(--cu-line);
}

.cu-btn.danger {
  background: #fff3f1;
  color: var(--cu-red);
  border: 1px solid #f2c8c0;
}

.cu-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.cu-nav,
.cu-panel {
  border: 1px solid var(--cu-line);
  border-radius: 24px;
  background: var(--cu-card);
  box-shadow: 0 18px 54px rgba(80, 61, 30, .1);
}

.cu-nav {
  align-self: start;
  padding: 14px;
  position: sticky;
  top: 18px;
}

.cu-nav-title {
  margin: 8px 10px 12px;
  color: #8c764d;
  font-size: .8rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.cu-tab {
  width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--cu-ink);
  font: inherit;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.cu-tab:hover,
.cu-tab.active {
  background: var(--cu-soft);
}

.cu-panel {
  padding: clamp(18px, 3vw, 28px);
}

.cu-section {
  display: none;
}

.cu-section.active {
  display: block;
}

.cu-section-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 20px;
}

.cu-section-head h2 {
  margin: 0 0 .45rem;
  font-size: clamp(1.45rem, 2.5vw, 2.1rem);
}

.cu-section-head p {
  margin: 0;
  color: var(--cu-muted);
}

.cu-badge {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: #eef7f1;
  color: var(--cu-green);
  font-weight: 900;
  white-space: nowrap;
}

.cu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.cu-card {
  min-height: 102px;
  padding: 18px;
  border: 1px solid var(--cu-line);
  border-radius: 18px;
  background: #fff;
}

.cu-card span,
.cu-form label span {
  display: block;
  margin-bottom: 8px;
  color: #8a7658;
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.cu-card strong {
  display: block;
  color: #201b16;
  font-size: 1.08rem;
}

.cu-form {
  display: grid;
  gap: 14px;
}

.cu-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.cu-form label.full {
  grid-column: 1 / -1;
}

.cu-form input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--cu-line);
  border-radius: 16px;
  background: #fff;
  color: var(--cu-ink);
  font: inherit;
}

.cu-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.cu-role-list {
  display: grid;
  gap: 12px;
}

.cu-role {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--cu-line);
  border-radius: 18px;
  background: #fff;
}

.cu-role strong {
  display: block;
}

.cu-role span {
  color: var(--cu-muted);
}

.cu-notice {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid #eadfcd;
  border-radius: 16px;
  background: #fffaf1;
  color: #6d5c3f;
}

.cu-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 42px;
  border-top: 1px solid var(--cu-line);
  background: rgba(255, 250, 242, .96);
  backdrop-filter: blur(8px);
}

.cu-footer a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 24px;
}

@media (max-width: 860px) {
  .cu-shell {
    width: min(100% - 22px, 1180px);
    margin-top: 14px;
  }

  .cu-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .cu-header-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .cu-layout {
    grid-template-columns: 1fr;
  }

  .cu-nav {
    position: static;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 10px;
  }

  .cu-nav-title {
    display: none;
  }

  .cu-tab {
    width: auto;
    white-space: nowrap;
  }

  .cu-grid,
  .cu-form-grid {
    grid-template-columns: 1fr;
  }

  .cu-section-head {
    flex-direction: column;
  }

  .cu-role {
    align-items: flex-start;
    flex-direction: column;
  }
}
