:root {
  --bg: #f5f7fb;
  --panel: #ffffff;
  --panel-soft: #eef3f8;

  --navy: #18324a;
  --navy-deep: #102536;
  --blue: #2f6fa3;
  --blue-soft: #dfeaf4;

  --green: #6e8f7a;
  --green-soft: #e5efe8;

  --gold: #b79a63;
  --gold-soft: #f4ecdc;

  --rose: #9b7474;
  --rose-soft: #f3e7e7;

  --text: #1f2d38;
  --muted: #6c7a86;
  --border: #dce3ea;

  --shadow: 0 12px 30px rgba(25, 50, 74, 0.08);
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 11px;

  --transition: 180ms ease;
}


* {
  box-sizing: border-box;
}


html {
  scroll-behavior: smooth;
}


body {
  margin: 0;
  font-family:
    Inter,
    "Segoe UI",
    Arial,
    sans-serif;

  background: var(--bg);
  color: var(--text);
}


button,
input {
  font: inherit;
}


button {
  cursor: pointer;
}


.app-shell {
  min-height: 100vh;
  display: flex;
}


/* SIDEBAR */

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;

  width: 250px;
  min-height: 100vh;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  padding: 26px 20px;

  background:
    linear-gradient(
      180deg,
      var(--navy-deep) 0%,
      var(--navy) 100%
    );

  color: white;
}


.brand-block {
  display: flex;
  align-items: center;
  gap: 13px;

  margin-bottom: 30px;
}


.brand-mark {
  width: 48px;
  height: 48px;

  border-radius: 14px;

  display: grid;
  place-items: center;

  background: rgba(255, 255, 255, 0.12);

  border:
    1px solid
    rgba(255, 255, 255, 0.14);

  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.5px;
}


.brand-copy {
  min-width: 0;
}


.brand-title {
  font-size: 17px;
  font-weight: 800;
}


.brand-subtitle {
  margin-top: 4px;

  font-size: 11px;
  line-height: 1.35;

  color:
    rgba(255, 255, 255, 0.62);
}


.sidebar-nav {
  display: grid;
  gap: 8px;
}


.nav-item {
  width: 100%;

  display: flex;
  align-items: center;
  gap: 12px;

  padding: 12px 13px;

  border: 0;
  border-radius: 12px;

  background: transparent;
  color:
    rgba(255, 255, 255, 0.74);

  text-align: left;

  transition:
    background var(--transition),
    color var(--transition);
}


.nav-item:hover {
  background:
    rgba(255, 255, 255, 0.08);

  color: white;
}


.nav-item.active {
  background:
    rgba(255, 255, 255, 0.14);

  color: white;
}


.nav-icon {
  width: 22px;

  display: inline-grid;
  place-items: center;

  font-size: 17px;
}


.sidebar-message {
  padding: 18px;

  border-radius: 16px;

  background:
    rgba(255, 255, 255, 0.08);

  border:
    1px solid
    rgba(255, 255, 255, 0.09);
}


.message-mark {
  margin-bottom: 2px;

  font-family: Georgia, serif;
  font-size: 34px;
  line-height: 0.8;

  color:
    rgba(255, 255, 255, 0.48);
}


.sidebar-message p {
  margin: 4px 0;

  font-size: 12px;
  line-height: 1.45;

  color:
    rgba(255, 255, 255, 0.78);
}


/* MAIN */

.main-area {
  width: calc(100% - 250px);

  margin-left: 250px;

  min-height: 100vh;
}


.topbar {
  min-height: 82px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 42px;

  background:
    rgba(255, 255, 255, 0.78);

  border-bottom:
    1px solid var(--border);

  backdrop-filter: blur(14px);

  position: sticky;
  top: 0;
  z-index: 20;
}


.topbar-kicker {
  margin-bottom: 4px;

  font-size: 10px;
  font-weight: 800;

  letter-spacing: 1.6px;
  text-transform: uppercase;

  color: var(--blue);
}


.topbar-title {
  font-size: 16px;
  font-weight: 800;

  color: var(--navy);
}


.theme-toggle {
  display: flex;
  align-items: center;
  gap: 8px;

  padding: 9px 12px;

  border:
    1px solid var(--border);

  border-radius: 999px;

  background: white;
  color: var(--text);

  transition:
    transform var(--transition),
    box-shadow var(--transition);
}


.theme-toggle:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}


/* PAGE */

.page {
  display: none;

  padding: 42px;
}


.page.active-page {
  display: block;
}


/* HERO */

.hero {
  display: grid;
  grid-template-columns: 1.8fr 0.7fr;
  gap: 28px;

  align-items: stretch;

  margin-bottom: 34px;
}


.hero-copy {
  padding: 34px;

  border-radius: var(--radius-lg);

  background:
    linear-gradient(
      135deg,
      #ffffff 0%,
      #eef4f8 100%
    );

  border:
    1px solid var(--border);

  box-shadow: var(--shadow);
}


.hero-kicker,
.section-kicker {
  margin-bottom: 8px;

  font-size: 10px;
  font-weight: 800;

  text-transform: uppercase;
  letter-spacing: 1.6px;

  color: var(--blue);
}


.hero h1 {
  margin: 0;

  max-width: 760px;

  font-size:
    clamp(34px, 4.2vw, 58px);

  line-height: 1.02;

  letter-spacing: -1.8px;

  color: var(--navy-deep);
}


.hero h1 span {
  color: var(--blue);
}


.hero p {
  max-width: 760px;

  margin:
    20px 0 0;

  font-size: 17px;
  line-height: 1.65;

  color: var(--muted);
}


.hero-card {
  min-height: 100%;

  display: flex;
  flex-direction: column;
  justify-content: center;

  padding: 28px;

  border-radius: var(--radius-lg);

  color: white;

  background:
    linear-gradient(
      145deg,
      var(--navy) 0%,
      var(--blue) 100%
    );

  box-shadow: var(--shadow);
}


.hero-card-label {
  font-size: 11px;
  font-weight: 800;

  text-transform: uppercase;
  letter-spacing: 1.5px;

  color:
    rgba(255, 255, 255, 0.72);
}


.hero-card-number {
  margin: 14px 0 4px;

  font-size: 54px;
  font-weight: 800;

  line-height: 1;
}


.hero-card-text {
  max-width: 170px;

  font-size: 14px;
  line-height: 1.5;

  color:
    rgba(255, 255, 255, 0.8);
}


/* OVERVIEW */

.overview-section {
  margin-top: 14px;
}


.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;

  margin-bottom: 18px;
}


.section-heading h2,
.panel-heading h2,
.quick-panel h2 {
  margin: 0;

  font-size: 23px;

  color: var(--navy-deep);
}


.workspace-grid {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 18px;
}


.workspace-card {
  position: relative;

  display: grid;
  grid-template-columns:
    auto 1fr auto;

  gap: 16px;
  align-items: center;

  min-height: 150px;

  padding: 20px;

  border-radius: var(--radius-md);

  border:
    1px solid var(--border);

  background: white;

  box-shadow:
    0 8px 22px
    rgba(25, 50, 74, 0.05);

  transition:
    transform var(--transition),
    box-shadow var(--transition);
}


.workspace-card:hover {
  transform: translateY(-2px);

  box-shadow:
    0 14px 28px
    rgba(25, 50, 74, 0.09);
}


.workspace-icon {
  width: 54px;
  height: 54px;

  border-radius: 16px;

  display: grid;
  place-items: center;

  font-size: 21px;
  font-weight: 800;

  color: var(--navy);
}


.workspace-copy h3 {
  margin:
    0 0 7px;

  font-size: 17px;

  color: var(--navy-deep);
}


.workspace-copy p {
  margin: 0;

  font-size: 13px;
  line-height: 1.55;

  color: var(--muted);
}


.workspace-button {
  min-width: 82px;

  padding:
    10px 15px;

  border: 0;
  border-radius: 10px;

  background: var(--navy);
  color: white;

  font-size: 12px;
  font-weight: 800;

  transition:
    transform var(--transition),
    background var(--transition);
}


.workspace-button:hover {
  transform: translateY(-1px);

  background: var(--blue);
}


/* CARD TONES */

.card-membership .workspace-icon {
  background: var(--blue-soft);
}


.card-meetings .workspace-icon {
  background: var(--gold-soft);
}


.card-documents .workspace-icon {
  background: var(--green-soft);
}


.card-correspondence .workspace-icon {
  background: var(--rose-soft);
}


.card-contacts .workspace-icon {
  background: #e6edf6;
}


.card-actions .workspace-icon {
  background: #e7efe9;
}


.card-other {
  border-style: dashed;

  background:
    linear-gradient(
      135deg,
      #ffffff 0%,
      #f4f7fa 100%
    );
}


.card-other .workspace-icon {
  background: #edf1f5;
}


/* ATTENTION */

.attention-section {
  display: grid;
  grid-template-columns:
    1.6fr 0.8fr;

  gap: 20px;

  margin-top: 28px;
}


.attention-panel,
.quick-panel {
  padding: 24px;

  border-radius: var(--radius-md);

  background: white;

  border:
    1px solid var(--border);

  box-shadow:
    0 8px 22px
    rgba(25, 50, 74, 0.05);
}


.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;

  margin-bottom: 17px;
}


.attention-dot {
  width: 10px;
  height: 10px;

  border-radius: 50%;

  background: var(--rose);

  box-shadow:
    0 0 0 6px
    rgba(155, 116, 116, 0.12);
}


.attention-list {
  display: grid;
  gap: 10px;
}


.attention-item {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 18px;

  padding: 14px 15px;

  border-radius: 12px;

  background: var(--panel-soft);
}


.attention-title {
  font-size: 13px;
  font-weight: 800;

  color: var(--navy-deep);
}


.attention-note {
  margin-top: 4px;

  font-size: 12px;

  color: var(--muted);
}


.attention-status {
  flex: 0 0 auto;

  padding:
    6px 9px;

  border-radius: 999px;

  background: white;

  font-size: 10px;
  font-weight: 800;

  color: var(--blue);
}


.quick-panel h2 {
  margin-bottom: 17px;
}


.quick-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding:
    13px 0;

  border-bottom:
    1px solid var(--border);

  font-size: 13px;

  color: var(--muted);
}


.quick-stat:last-child {
  border-bottom: 0;
}


.quick-stat strong {
  font-size: 17px;

  color: var(--navy);
}


/* CLOSING */

.closing-message {
  margin-top: 24px;

  padding: 17px 20px;

  border-radius: 13px;

  background:
    linear-gradient(
      135deg,
      #e8f0f6 0%,
      #edf4ef 100%
    );

  font-size: 13px;
  line-height: 1.55;

  color: var(--muted);
}


.closing-message strong {
  color: var(--navy);
}


/* PLACEHOLDER */

.placeholder-card {
  max-width: 700px;

  margin:
    70px auto;

  padding: 44px;

  text-align: center;

  border-radius: var(--radius-lg);

  background: white;

  border:
    1px solid var(--border);

  box-shadow: var(--shadow);
}


.placeholder-card h2 {
  margin:
    0 0 12px;

  font-size: 30px;

  color: var(--navy-deep);
}


.placeholder-card p {
  margin: 0;

  color: var(--muted);

  line-height: 1.6;
}


/* TOAST */

.toast {
  position: fixed;

  left: 50%;
  bottom: 30px;

  transform:
    translate(-50%, 20px);

  padding:
    11px 16px;

  border-radius: 10px;

  background: var(--navy-deep);
  color: white;

  font-size: 12px;
  font-weight: 700;

  opacity: 0;
  pointer-events: none;

  transition:
    opacity var(--transition),
    transform var(--transition);

  z-index: 100;
}


.toast.show {
  opacity: 1;

  transform:
    translate(-50%, 0);
}


/* DARK MODE */

body.dark-mode {
  --bg: #101923;
  --panel: #18232e;
  --panel-soft: #1e2b37;

  --text: #edf3f7;
  --muted: #a6b3bd;
  --border: #2c3a46;

  --navy: #93b4cf;
  --navy-deep: #f0f5f8;
  --blue: #78a9d0;
}


body.dark-mode .topbar {
  background:
    rgba(16, 25, 35, 0.84);
}


body.dark-mode .hero-copy,
body.dark-mode .workspace-card,
body.dark-mode .attention-panel,
body.dark-mode .quick-panel,
body.dark-mode .placeholder-card {
  background: var(--panel);
}


body.dark-mode .hero-copy {
  background:
    linear-gradient(
      135deg,
      #18232e 0%,
      #1c2a35 100%
    );
}


body.dark-mode .card-other {
  background:
    linear-gradient(
      135deg,
      #18232e 0%,
      #1d2933 100%
    );
}


body.dark-mode .attention-item {
  background: var(--panel-soft);
}


body.dark-mode .attention-status,
body.dark-mode .theme-toggle {
  background: #21303c;
  color: #d7e5ef;
}


body.dark-mode .closing-message {
  background:
    linear-gradient(
      135deg,
      #1d2c38 0%,
      #1d302c 100%
    );
}


/* RESPONSIVE */

@media (max-width: 1100px) {

  .workspace-grid {
    grid-template-columns: 1fr;
  }


  .attention-section {
    grid-template-columns: 1fr;
  }

}


@media (max-width: 850px) {

  .sidebar {
    position: static;

    width: 100%;
    min-height: auto;
  }


  .app-shell {
    display: block;
  }


  .main-area {
    width: 100%;
    margin-left: 0;
  }


  .sidebar-message {
    display: none;
  }


  .sidebar-nav {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));

    margin-top: 20px;
  }


  .nav-item {
    justify-content: center;
  }


  .topbar {
    padding:
      0 24px;
  }


  .page {
    padding: 26px 24px;
  }


  .hero {
    grid-template-columns: 1fr;
  }

}


@media (max-width: 620px) {

  .sidebar-nav {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }


  .workspace-card {
    grid-template-columns:
      auto 1fr;

    align-items: start;
  }


  .workspace-button {
    grid-column: 1 / -1;

    width: 100%;
  }


  .hero-copy {
    padding: 26px;
  }


  .hero h1 {
    font-size: 38px;
  }


  .page {
    padding: 22px 16px;
  }

}