@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --gr-bg: #f3efe7;
  --gr-surface: rgba(255, 255, 255, 0.78);
  --gr-surface-strong: #ffffff;
  --gr-border: rgba(15, 61, 62, 0.12);
  --gr-border-strong: rgba(15, 61, 62, 0.2);
  --gr-text: #173138;
  --gr-muted: #6c7e80;
  --gr-heading: #11242f;
  --gr-primary: #0f6b6e;
  --gr-primary-deep: #0f3d3e;
  --gr-secondary: #d97745;
  --gr-accent: #8fc7bb;
  --gr-success: #2b8f63;
  --gr-warning: #d6a046;
  --gr-danger: #c24f4b;
  --gr-shadow: 0 18px 50px rgba(17, 36, 47, 0.12);
  --gr-shadow-soft: 0 12px 32px rgba(17, 36, 47, 0.08);
  --gr-radius-xl: 28px;
  --gr-radius-lg: 22px;
  --gr-radius-md: 16px;
  --gr-radius-sm: 12px;
  --gr-sidebar-width: 320px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Space Grotesk", sans-serif;
  color: var(--gr-text);
  background:
    radial-gradient(circle at top left, rgba(143, 199, 187, 0.25), transparent 30%),
    radial-gradient(circle at top right, rgba(217, 119, 69, 0.18), transparent 24%),
    linear-gradient(180deg, #f7f2ea 0%, #eef3f1 48%, #eef0ec 100%);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(15, 61, 62, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 61, 62, 0.03) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 80%);
  z-index: -1;
}

body.app-body,
body.front-body,
body.auth-body {
  background:
    radial-gradient(circle at top left, rgba(143, 199, 187, 0.25), transparent 30%),
    radial-gradient(circle at top right, rgba(217, 119, 69, 0.2), transparent 24%),
    linear-gradient(180deg, #f7f2ea 0%, #eef3f1 48%, #eef0ec 100%);
}

a {
  color: var(--gr-primary);
}

a:hover {
  color: var(--gr-primary-deep);
}

h1,
h2,
h3,
h4,
h5,
h6,
.logo span,
.card-title,
.pagetitle h1,
.auth-display-title,
.front-display-title {
  font-family: "Space Grotesk", sans-serif;
  color: var(--gr-heading);
}

.display-serif,
.workspace-kicker strong,
.hero-spotlight strong,
.front-brand-mark {
  font-family: "Fraunces", serif;
}

small,
.text-muted,
.muted {
  color: var(--gr-muted) !important;
}

#main {
  margin-top: 86px;
  padding: 28px 34px 42px;
  min-height: calc(100vh - 100px);
}

@media (max-width: 1199px) {
  #main {
    padding: 22px 18px 30px;
  }
}

@media (min-width: 1200px) {
  #main,
  #footer {
    margin-left: var(--gr-sidebar-width);
  }
}

@media (max-width: 1199px) {
  .toggle-sidebar .sidebar {
    left: 0;
  }
}

@media (min-width: 1200px) {
  .toggle-sidebar #main,
  .toggle-sidebar #footer {
    margin-left: 0;
  }

  .toggle-sidebar .sidebar {
    left: calc(var(--gr-sidebar-width) * -1);
  }
}

.main-shell {
  position: relative;
}

.pagetitle {
  margin-bottom: 22px;
}

.pagetitle h1 {
  font-size: clamp(1.8rem, 1.6rem + 0.9vw, 2.5rem);
  letter-spacing: -0.04em;
  margin-bottom: 6px;
}

.pagetitle p {
  margin: 0;
  color: var(--gr-muted);
  max-width: 60ch;
}

.breadcrumb {
  color: var(--gr-muted);
}

.breadcrumb .active,
.breadcrumb a:hover {
  color: var(--gr-primary-deep);
}

.header {
  height: auto;
  min-height: 78px;
  padding: 14px 24px;
  background: rgba(255, 252, 247, 0.78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 18px 45px rgba(17, 36, 47, 0.08);
}

.logo {
  gap: 12px;
  width: auto;
}

.logo img {
  max-height: 38px;
  margin-right: 0;
  filter: drop-shadow(0 8px 18px rgba(15, 61, 62, 0.18));
}

.logo span {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.header .toggle-sidebar-btn {
  width: 46px;
  height: 46px;
  margin-left: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(15, 107, 110, 0.08);
  color: var(--gr-primary-deep);
  font-size: 1.4rem;
  transition: transform 0.2s ease, background 0.2s ease;
}

.header .toggle-sidebar-btn:hover {
  transform: translateY(-1px);
  background: rgba(15, 107, 110, 0.14);
}

.workspace-header__intro {
  display: flex;
  align-items: center;
  gap: 18px;
}

.workspace-context {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.workspace-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gr-muted);
}

.workspace-kicker::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gr-secondary), var(--gr-primary));
  box-shadow: 0 0 0 6px rgba(15, 107, 110, 0.08);
}

.workspace-title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  margin: 0;
}

.workspace-subtitle {
  font-size: 0.94rem;
  color: var(--gr-muted);
  margin: 0;
}

.workspace-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
  flex-wrap: wrap;
}

.workspace-chip,
.soft-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--gr-border);
  color: var(--gr-primary-deep);
  font-size: 0.86rem;
  font-weight: 600;
  box-shadow: var(--gr-shadow-soft);
}

.workspace-chip i,
.soft-chip i {
  color: var(--gr-secondary);
}

.header-stat {
  display: flex;
  flex-direction: column;
  min-width: 132px;
  padding: 10px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: var(--gr-shadow-soft);
}

.header-stat span {
  font-size: 0.72rem;
  color: var(--gr-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.header-stat strong {
  font-size: 0.95rem;
  color: var(--gr-heading);
  letter-spacing: -0.03em;
}

.header-nav .nav-profile {
  padding: 8px 10px 8px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(15, 107, 110, 0.12), rgba(217, 119, 69, 0.14));
  color: var(--gr-heading);
}

.header-nav .nav-profile span {
  font-size: 0.9rem;
}

.header-nav .nav-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  margin-right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.9);
  color: var(--gr-primary-deep);
  border: 1px solid var(--gr-border);
}

.dropdown-menu {
  border-radius: 18px;
  padding: 8px;
  box-shadow: var(--gr-shadow);
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
}

.dropdown-menu .dropdown-item {
  border-radius: 12px;
  padding: 10px 14px;
}

.dropdown-menu .dropdown-item:hover {
  background: rgba(15, 107, 110, 0.08);
}

.sidebar {
  top: 86px;
  width: var(--gr-sidebar-width);
  padding: 22px 18px 28px;
  background:
    linear-gradient(180deg, rgba(10, 34, 45, 0.95) 0%, rgba(11, 47, 53, 0.94) 100%);
  color: rgba(255, 255, 255, 0.9);
  box-shadow: 24px 0 60px rgba(12, 28, 39, 0.16);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar::-webkit-scrollbar {
  background-color: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
}

.sidebar-brand-panel {
  padding: 18px 16px;
  margin-bottom: 20px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(143, 199, 187, 0.2), rgba(217, 119, 69, 0.16));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.sidebar-brand-panel h2 {
  color: #ffffff;
  font-size: 1.15rem;
  margin-bottom: 6px;
  letter-spacing: -0.03em;
}

.sidebar-brand-panel p {
  color: rgba(255, 255, 255, 0.68);
  margin-bottom: 12px;
  font-size: 0.88rem;
}

.sidebar-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sidebar-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 600;
}

.sidebar-nav .nav-item {
  margin-bottom: 8px;
}

.sidebar-nav .nav-link,
.sidebar-nav .nav-content a {
  border-radius: 16px;
}

.sidebar-nav .nav-link {
  padding: 12px 14px;
  font-size: 0.94rem;
  font-weight: 600;
  background: transparent;
  color: rgba(255, 255, 255, 0.86);
  border: 1px solid transparent;
}

.sidebar-nav .nav-link i {
  color: rgba(255, 255, 255, 0.65);
}

.sidebar-nav .nav-link.collapsed {
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
}

.sidebar-nav .nav-link.collapsed i {
  color: rgba(255, 255, 255, 0.58);
}

.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link.nav-link-active,
.sidebar-nav .nav-link:not(.collapsed) {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(15, 107, 110, 0.28), rgba(217, 119, 69, 0.18));
  border-color: rgba(255, 255, 255, 0.12);
}

.sidebar-nav .nav-link:hover i,
.sidebar-nav .nav-link.nav-link-active i,
.sidebar-nav .nav-link:not(.collapsed) i {
  color: #ffffff;
}

.sidebar-nav .nav-content {
  padding-top: 8px;
  padding-bottom: 4px;
}

.sidebar-nav .nav-content a {
  padding: 11px 14px 11px 18px;
  margin-left: 12px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
  font-weight: 500;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.sidebar-nav .nav-content a i {
  font-size: 0.5rem;
  color: rgba(255, 255, 255, 0.42);
}

.sidebar-nav .nav-content a:hover,
.sidebar-nav .nav-content a.active,
.sidebar-nav .nav-content a.nav-link-active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.07);
  border-left-color: rgba(143, 199, 187, 0.85);
}

.sidebar-footer-note {
  margin-top: 18px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.82rem;
}

.card,
.modal-content,
.surface-card {
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--gr-radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.74));
  box-shadow: var(--gr-shadow);
  backdrop-filter: blur(18px);
}

.card::before,
.modal-content::before,
.surface-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--gr-primary), var(--gr-secondary), var(--gr-accent));
  opacity: 0.9;
}

.card-header,
.card-footer {
  padding: 18px 22px;
  border-bottom: 1px solid rgba(17, 36, 47, 0.08);
  background: rgba(255, 255, 255, 0.28);
  color: var(--gr-heading);
}

.card-title {
  padding: 0;
  margin-bottom: 14px;
  font-size: 1.08rem;
  letter-spacing: -0.03em;
}

.card-body {
  padding: 22px;
}

.glass-note,
.section-note {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(15, 107, 110, 0.06);
  border: 1px solid rgba(15, 107, 110, 0.08);
  color: var(--gr-muted);
}

.btn {
  border-radius: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
  border-width: 1px;
  padding: 0.72rem 1.1rem;
  box-shadow: none;
}

.btn-primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--gr-primary-deep), var(--gr-primary));
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(135deg, #10484a, #0f7f80);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.96);
  color: var(--gr-primary-deep);
  border-color: rgba(15, 61, 62, 0.12);
}

.btn-success {
  background: linear-gradient(135deg, #256f52, #2b8f63);
  border-color: transparent;
}

.btn-info {
  color: #ffffff;
  background: linear-gradient(135deg, #1f6479, #2c94a7);
  border-color: transparent;
}

.btn-warning {
  color: #1e2324;
  background: linear-gradient(135deg, #f4c96b, #e5ab3c);
  border-color: transparent;
}

.btn-danger {
  background: linear-gradient(135deg, #ab3f3b, #c24f4b);
  border-color: transparent;
}

.alert,
.app-alert {
  border: 0;
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: var(--gr-shadow-soft);
}

.alert-success {
  background: rgba(43, 143, 99, 0.12);
  color: #19563d;
}

.alert-danger {
  background: rgba(194, 79, 75, 0.12);
  color: #6f2f2c;
}

.alert-warning {
  background: rgba(214, 160, 70, 0.16);
  color: #6b4c15;
}

.badge {
  border-radius: 999px;
  padding: 0.48rem 0.72rem;
  letter-spacing: 0.02em;
}

.form-label {
  margin-bottom: 0.45rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--gr-heading);
}

.form-control,
.form-select,
textarea,
input[type="date"],
input[type="number"],
input[type="text"],
input[type="email"],
input[type="password"] {
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(17, 36, 47, 0.1);
  background: rgba(255, 255, 255, 0.92);
  color: var(--gr-heading);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

textarea.form-control,
textarea {
  min-height: 120px;
}

.form-control:focus,
.form-select:focus,
textarea:focus {
  border-color: rgba(15, 107, 110, 0.4);
  box-shadow: 0 0 0 4px rgba(15, 107, 110, 0.12);
}

.input-group-text {
  border-radius: 14px 0 0 14px;
  border: 1px solid rgba(17, 36, 47, 0.1);
  background: rgba(15, 107, 110, 0.08);
  color: var(--gr-primary-deep);
}

.table-shell {
  border-radius: 18px;
}

.table {
  margin-bottom: 0;
  color: var(--gr-text);
  border-collapse: separate;
  border-spacing: 0;
}

.table thead th {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(17, 36, 47, 0.08);
  background: rgba(15, 107, 110, 0.06);
  color: var(--gr-heading);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.table tbody td {
  padding: 15px 16px;
  vertical-align: middle;
  border-bottom: 1px solid rgba(17, 36, 47, 0.06);
  background: transparent;
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
  background: rgba(255, 255, 255, 0.34);
}

.table tbody tr:hover > * {
  background: rgba(15, 107, 110, 0.05);
}

.datatable-wrapper .datatable-top,
.datatable-wrapper .datatable-bottom {
  padding: 14px 4px;
}

.datatable-wrapper .datatable-input,
.datatable-wrapper .datatable-selector {
  border-radius: 12px;
  border: 1px solid rgba(17, 36, 47, 0.12);
  background: rgba(255, 255, 255, 0.92);
  padding: 0.5rem 0.75rem;
}

.datatable-wrapper .datatable-pagination a {
  border-radius: 10px;
}

.dashboard-hero,
.section-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(280px, 1fr);
  gap: 20px;
  padding: 28px;
  border-radius: var(--gr-radius-xl);
  background:
    radial-gradient(circle at top right, rgba(143, 199, 187, 0.42), transparent 34%),
    linear-gradient(135deg, #102d36, #0f5a5d 65%, #146a65 100%);
  color: #f6faf8;
  box-shadow: 0 28px 65px rgba(16, 45, 54, 0.24);
}

.dashboard-hero::after,
.section-hero::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -90px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(217, 119, 69, 0.2);
  filter: blur(6px);
}

.dashboard-hero h2,
.section-hero h2 {
  color: #ffffff;
  font-size: clamp(1.8rem, 1.5rem + 1.2vw, 3rem);
  letter-spacing: -0.05em;
  margin-bottom: 10px;
}

.dashboard-hero p,
.section-hero p {
  color: rgba(246, 250, 248, 0.78);
  max-width: 62ch;
  margin-bottom: 0;
}

.hero-spotlight {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.hero-side-panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  align-content: center;
}

.hero-side-card {
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-side-card span {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.68);
}

.hero-side-card strong {
  display: block;
  margin-top: 6px;
  font-size: 1.2rem;
  color: #ffffff;
}

.metric-grid,
.quick-action-grid,
.front-feature-grid,
.front-metric-grid {
  display: grid;
  gap: 18px;
}

.metric-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.metric-card,
.front-metric-card {
  position: relative;
  padding: 22px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--gr-shadow-soft);
  overflow: hidden;
}

.metric-card::after,
.front-metric-card::after {
  content: "";
  position: absolute;
  top: -36px;
  right: -26px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(143, 199, 187, 0.16);
}

.metric-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gr-muted);
}

.metric-value {
  display: block;
  margin-top: 14px;
  font-size: clamp(1.7rem, 1.5rem + 0.8vw, 2.3rem);
  letter-spacing: -0.06em;
  color: var(--gr-heading);
}

.metric-note {
  margin-top: 10px;
  font-size: 0.88rem;
  color: var(--gr-muted);
}

.quick-action-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.quick-action-card,
.front-feature-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 100%;
  padding: 22px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.78));
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--gr-shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.quick-action-card:hover,
.front-feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--gr-shadow);
}

.quick-action-icon,
.feature-icon {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(15, 107, 110, 0.12), rgba(217, 119, 69, 0.14));
  color: var(--gr-primary-deep);
  font-size: 1.35rem;
}

.quick-action-card h3,
.front-feature-card h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--gr-heading);
}

.quick-action-card p,
.front-feature-card p {
  margin: 0;
  color: var(--gr-muted);
  flex: 1;
}

.quick-action-card .btn {
  align-self: flex-start;
}

.front-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.front-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 251, 246, 0.78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.72);
}

.front-nav {
  padding: 18px 0;
}

.front-nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.front-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 700;
  color: var(--gr-heading);
}

.front-brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.front-brand-mark {
  font-size: 1.45rem;
  color: var(--gr-primary-deep);
}

.front-main {
  flex: 1;
  padding: 34px 0 56px;
}

.front-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr);
  gap: 22px;
  align-items: stretch;
  margin-bottom: 26px;
}

.front-hero-card {
  padding: 34px;
  border-radius: 32px;
  background:
    radial-gradient(circle at top right, rgba(143, 199, 187, 0.35), transparent 28%),
    linear-gradient(135deg, #102d36, #114e55 70%, #136d68 100%);
  color: #ffffff;
  box-shadow: 0 28px 70px rgba(16, 45, 54, 0.24);
}

.front-display-title {
  font-size: clamp(2.5rem, 2.1rem + 1.8vw, 4.2rem);
  color: #ffffff;
  letter-spacing: -0.07em;
  margin-bottom: 14px;
}

.front-display-title span {
  color: #ffd2b6;
  font-family: "Fraunces", serif;
}

.front-hero-card p {
  max-width: 60ch;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
}

.front-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.front-side-stack {
  display: grid;
  gap: 18px;
}

.front-side-panel {
  padding: 24px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--gr-shadow);
}

.front-side-panel h3 {
  margin-bottom: 8px;
}

.front-section {
  margin-top: 22px;
}

.front-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.front-section-heading h2 {
  margin: 0;
  font-size: clamp(1.7rem, 1.5rem + 0.9vw, 2.4rem);
  letter-spacing: -0.05em;
}

.front-section-heading p {
  margin: 0;
  color: var(--gr-muted);
}

.front-footer {
  padding: 26px 0 34px;
  color: var(--gr-muted);
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 22px;
  align-items: stretch;
}

.auth-copy,
.auth-panel {
  border-radius: 30px;
  overflow: hidden;
}

.auth-copy {
  padding: 32px;
  background:
    radial-gradient(circle at top right, rgba(143, 199, 187, 0.34), transparent 34%),
    linear-gradient(135deg, #0f2f38, #0f585f 70%, #15736c 100%);
  color: #ffffff;
  box-shadow: 0 26px 60px rgba(15, 47, 56, 0.2);
}

.auth-copy h1 {
  color: #ffffff;
  font-size: clamp(2rem, 1.7rem + 1.4vw, 3.3rem);
  letter-spacing: -0.06em;
  margin-bottom: 12px;
}

.auth-copy p {
  color: rgba(255, 255, 255, 0.82);
}

.auth-list {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.auth-list-item {
  display: flex;
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
}

.auth-list-item i {
  color: #ffd2b6;
  font-size: 1.1rem;
}

.auth-panel {
  padding: 30px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: var(--gr-shadow);
}

.auth-panel .card-title,
.auth-panel h2 {
  font-size: 1.55rem;
  margin-bottom: 8px;
}

.auth-subtitle {
  color: var(--gr-muted);
  margin-bottom: 22px;
}

.empty-state {
  padding: 24px;
  border-radius: 22px;
  border: 1px dashed rgba(15, 61, 62, 0.16);
  background: rgba(255, 255, 255, 0.6);
  color: var(--gr-muted);
}

.activity-table td strong {
  color: var(--gr-heading);
}

.surface-grid {
  display: grid;
  gap: 18px;
}

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

@media (max-width: 991px) {
  .workspace-meta,
  .front-nav {
    gap: 12px;
  }

  .dashboard-hero,
  .section-hero,
  .front-hero,
  .auth-layout,
  .surface-grid.two-up {
    grid-template-columns: 1fr;
  }

  .front-main {
    padding-top: 22px;
  }
}

@media (max-width: 767px) {
  .header {
    padding: 12px 14px;
  }

  .workspace-context {
    display: none;
  }

  .workspace-meta {
    width: 100%;
    justify-content: space-between;
  }

  .workspace-chip,
  .header-stat {
    min-width: 0;
    flex: 1 1 auto;
  }

  .dashboard-hero,
  .section-hero,
  .front-hero-card,
  .front-side-panel,
  .auth-copy,
  .auth-panel {
    padding: 22px;
    border-radius: 24px;
  }

  .card-body,
  .card-header {
    padding: 18px;
  }

  .metric-grid,
  .quick-action-grid,
  .front-feature-grid,
  .front-metric-grid {
    grid-template-columns: 1fr;
  }
}
