.cabinet-body {
  min-height: 100vh;
}

.cabinet-hero {
  margin-top: 52px;
  padding: clamp(36px, 6vw, 76px);
  display: grid;
  grid-template-columns: 1fr .86fr;
  gap: 34px;
  align-items: center;
  border-radius: 54px;
  background:
    radial-gradient(circle at 88% 14%, rgba(255, 222, 128, .68), transparent 26%),
    linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(232, 247, 255, .92));
  border: 1px solid rgba(79, 170, 239, .14);
  box-shadow: var(--shadow);
}

.cabinet-hero h1 {
  margin: 0;
  color: var(--ink-2);
  font: 900 clamp(40px, 5vw, 72px)/.95 Georgia, "Times New Roman", serif;
  letter-spacing: -.045em;
}

.cabinet-hero p {
  max-width: 720px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
}

.login-card {
  padding: 28px;
  border-radius: 36px;
  background: rgba(255, 255, 255, .88);
  border: 1px solid rgba(79, 170, 239, .14);
  box-shadow: 0 20px 60px rgba(42, 116, 171, .12);
}

.login-card h2 {
  margin: 0 0 18px;
  font: 900 30px/1.05 Georgia, serif;
  letter-spacing: -.035em;
}

.login-form {
  display: grid;
  gap: 12px;
}

.field {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.field input,
.field select {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid rgba(72, 130, 177, .18);
  border-radius: 18px;
  background: #fff;
  color: var(--ink);
  font: 800 16px/1 "Trebuchet MS", sans-serif;
  outline: none;
}

.field input:focus,
.field select:focus {
  border-color: rgba(73, 168, 255, .72);
  box-shadow: 0 0 0 4px rgba(73, 168, 255, .14);
}

.form-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.role-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.role-tile {
  min-height: 250px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 34px;
  background: rgba(255, 255, 255, .88);
  border: 1px solid rgba(79, 170, 239, .14);
  box-shadow: 0 18px 46px rgba(42, 116, 171, .09);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.role-tile:hover {
  transform: translateY(-8px);
  border-color: rgba(73, 168, 255, .38);
  box-shadow: 0 28px 70px rgba(42, 116, 171, .16);
}

.role-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: #e6f5ff;
  color: #1b7dc8;
  font-size: 28px;
  font-weight: 950;
}

.role-tile h3 {
  margin: 18px 0 10px;
  font: 900 27px/1.05 Georgia, serif;
  letter-spacing: -.04em;
}

.role-tile p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.role-link {
  margin-top: 18px;
  color: #1683d6;
  font-weight: 950;
}

.app-shell {
  width: min(calc(100% - 32px), 1480px);
  min-height: calc(100vh - 32px);
  margin: 16px auto;
  display: grid;
  grid-template-columns: 286px 1fr;
  gap: 18px;
}

.app-sidebar {
  position: sticky;
  top: 16px;
  align-self: start;
  min-height: calc(100vh - 32px);
  padding: 22px;
  display: flex;
  flex-direction: column;
  border-radius: 34px;
  background: rgba(255, 255, 255, .9);
  border: 1px solid rgba(79, 170, 239, .14);
  box-shadow: var(--shadow);
}

.role-label {
  margin: 20px 0;
  padding: 14px;
  border-radius: 22px;
  background: linear-gradient(135deg, #e8f7ff, #fff6d9);
  color: #456276;
  font-weight: 950;
}

.app-nav {
  display: grid;
  gap: 8px;
}

.app-nav a {
  padding: 14px 15px;
  border-radius: 18px;
  color: #405367;
  font-weight: 900;
}

.app-nav a.active,
.app-nav a:hover {
  color: #0b5f9d;
  background: #eaf7ff;
}

.sidebar-bottom {
  margin-top: auto;
  display: grid;
  gap: 10px;
}

.app-main {
  padding: clamp(22px, 4vw, 42px);
  border-radius: 38px;
  background: rgba(255, 255, 255, .7);
  border: 1px solid rgba(79, 170, 239, .12);
  box-shadow: var(--shadow);
}

.app-topline {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
  margin-bottom: 24px;
}

.app-topline h1 {
  margin: 0;
  color: var(--ink-2);
  font: 900 clamp(34px, 4vw, 58px)/.96 Georgia, serif;
  letter-spacing: -.045em;
}

.app-topline p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.45;
}

.status-pill {
  min-width: max-content;
  padding: 13px 17px;
  border-radius: 999px;
  background: #fff;
  color: #1482d2;
  border: 1px solid rgba(79, 170, 239, .2);
  font-weight: 950;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 18px;
}

.app-card {
  padding: 24px;
  border-radius: 30px;
  background: #fff;
  border: 1px solid rgba(79, 170, 239, .13);
  box-shadow: 0 16px 44px rgba(42, 116, 171, .08);
}

.app-card.sunny {
  background: linear-gradient(135deg, #fff, #fff4cf);
}

.app-card.sky {
  background: linear-gradient(135deg, #fff, #e8f7ff);
}

.app-card.dark {
  color: #fff;
  background: #12324a;
}

.app-card.dark p,
.app-card.dark li {
  color: rgba(255, 255, 255, .78);
}

.app-card h2,
.app-card h3 {
  margin: 0 0 14px;
  font: 900 28px/1.08 Georgia, serif;
  letter-spacing: -.035em;
}

.app-card p,
.app-card li {
  color: var(--muted);
  line-height: 1.5;
}

.app-card ul {
  margin: 0;
  padding-left: 20px;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.metric {
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(79, 170, 239, .12);
}

.metric strong {
  display: block;
  color: #1683d6;
  font: 950 30px/1 Georgia, serif;
}

.metric span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.wide { grid-column: 1 / -1; }

.task-list {
  display: grid;
  gap: 10px;
}

.task-item {
  padding: 14px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-radius: 18px;
  background: rgba(235, 247, 255, .72);
  color: #3f5367;
  font-weight: 850;
}

.task-item b {
  color: var(--ink);
}

@media (max-width: 1120px) {
  .cabinet-hero,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .role-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .app-sidebar {
    position: static;
    min-height: auto;
  }
}

@media (max-width: 720px) {
  .cabinet-hero {
    margin-top: 24px;
    border-radius: 34px;
  }

  .role-grid,
  .metric-row {
    grid-template-columns: 1fr;
  }

  .app-topline {
    display: grid;
  }

  .app-shell {
    width: min(calc(100% - 20px), 1480px);
    margin: 10px auto;
  }
}
