* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }

.app-shell { min-height: 100vh; }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 1020;
  width: 252px;
  padding: 28px 18px 20px;
  background: #fbfcfa;
  border-right: 1px solid var(--line);
  flex-direction: column;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 0 10px;
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  letter-spacing: -.05em;
}

.brand-name { display: flex; min-width: 0; flex-direction: column; line-height: 1; }
.brand-name > span { font-size: 17px; letter-spacing: -.035em; }
.brand-name > small { margin-top: 4px; color: #777b80; font: 700 9px "DM Sans", sans-serif; letter-spacing: .12em; text-transform: uppercase; }

.brand-mark {
  display: block;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  filter: drop-shadow(0 5px 9px rgba(32, 33, 36, .16));
}

.brand-mark img { display: block; width: 100%; height: 100%; }
.brand-mark .brand-logo-dark { display: none; }
html[data-theme="dark"] .brand-mark .brand-logo-light { display: none; }
html[data-theme="dark"] .brand-mark .brand-logo-dark { display: block; }
.brand-mark.small { width: 36px; height: 36px; }

.brand-lockup { display: block; width: min(206px, 100%); flex: 0 1 auto; }
.brand-lockup img { display: block; width: 100%; height: auto; }
.brand-lockup .brand-logo-dark { display: none; }
html[data-theme="dark"] .brand-lockup .brand-logo-light { display: none; }
html[data-theme="dark"] .brand-lockup .brand-logo-dark { display: block; }

.workspace-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 28px 4px 26px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}

.workspace-avatar {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--brand-dark);
  border-radius: 10px;
  background: var(--brand-light);
  font: 700 11px "Manrope", sans-serif;
}

.workspace-copy { display: flex; min-width: 0; flex-direction: column; }
.workspace-copy small, .workspace-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-copy small { color: #8a9896; font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.workspace-copy strong { font-size: 12px; }
.workspace-chip > i { color: #9aa6a4; font-size: 12px; }

.sidebar-nav { display: flex; flex-direction: column; gap: 4px; }
.nav-label { margin: 0 12px 7px; color: #9aa6a4; font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.sidebar-nav .nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  padding: 9px 12px;
  color: #61706e;
  border-radius: 9px;
  font-weight: 600;
  transition: .2s ease;
}
.sidebar-nav .nav-link:hover { color: var(--ink); background: #f0f3ef; }
.sidebar-nav .nav-link.active { color: var(--brand-dark); background: #e6f0eb; }
.sidebar-nav .nav-link i { width: 18px; font-size: 16px; text-align: center; }
.nav-count { margin-left: auto; color: #73817f; font-size: 11px; }
.beta-pill { margin-left: auto; padding: 2px 5px; color: #55744b; border-radius: 4px; background: #dff0b1; font-size: 8px; letter-spacing: .08em; }

.sidebar-bottom { display: flex; margin-top: auto; flex-direction: column; gap: 12px; }
.security-note { display: flex; align-items: center; gap: 10px; padding: 11px 10px; }
.security-icon { display: grid; width: 32px; height: 32px; place-items: center; color: var(--brand); border-radius: 50%; background: var(--brand-light); font-size: 15px; }
.security-note div { display: flex; flex-direction: column; }
.security-note strong { font-size: 11px; }
.security-note small { color: #889693; font-size: 9px; }
.role-switch { display: flex; width: 100%; align-items: center; gap: 10px; padding: 10px 11px; color: #fff; border: 0; border-radius: 12px; background: var(--ink); }
.role-switch:hover { background: #203f3c; }
.role-icon { display: grid; width: 32px; height: 32px; place-items: center; color: var(--ink); border-radius: 8px; background: var(--lime); }
.role-switch .text-start { display: flex; flex-direction: column; line-height: 1.15; }
.role-switch small { color: #b9c6c4; font-size: 9px; }
.role-switch strong { font-size: 12px; }
.role-switch > i { color: #8da19e; }

.main-content { min-height: 100vh; margin-left: 252px; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 1010;
  display: flex;
  min-height: 74px;
  align-items: center;
  padding: 0 38px;
  border-bottom: 1px solid rgba(227, 232, 228, .9);
  background: rgba(245, 247, 244, .88);
  backdrop-filter: blur(16px);
}
.topbar-title { color: #73817f; font-size: 12px; font-weight: 600; }
.status-dot { display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: #57a56e; box-shadow: 0 0 0 4px rgba(87,165,110,.11); }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.top-search { min-width: 232px; align-items: center; gap: 9px; padding: 8px 10px; color: #83918f; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.75); font-size: 11px; text-align: left; }
.top-search span { margin-right: auto; }
.top-search kbd { padding: 2px 5px; color: #7d8b89; border: 1px solid #dde3df; border-radius: 4px; background: #f5f7f4; box-shadow: none; font: 500 9px "DM Sans", sans-serif; }
.icon-button { display: inline-grid; width: 38px; height: 38px; padding: 0; place-items: center; color: #61706e; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.icon-button:hover { color: var(--brand); border-color: #c8d7d2; background: #fbfdfc; }
.icon-button.small { width: 32px; height: 32px; font-size: 13px; }
.theme-toggle i { transition: transform .22s ease; }
.theme-toggle:hover i { transform: rotate(16deg); }
.notification-dot { position: absolute; top: 7px; right: 7px; width: 6px; height: 6px; border: 2px solid #fff; border-radius: 50%; background: var(--coral); box-sizing: content-box; }
.profile-button { display: flex; align-items: center; gap: 10px; padding: 3px 5px 3px 3px; color: var(--ink); border: 0; background: transparent; }
.profile-avatar { display: grid; width: 36px; height: 36px; place-items: center; color: #fff; border-radius: 10px; background: var(--brand); font: 700 10px "Manrope", sans-serif; }
.profile-avatar.large { width: 44px; height: 44px; font-size: 12px; }
.profile-copy { display: flex; min-width: 95px; flex-direction: column; text-align: left; line-height: 1.2; }
.profile-copy strong { font-size: 11px; }
.profile-copy small { margin-top: 2px; color: #8b9896; font-size: 9px; }
.profile-button > i { color: #84918f; font-size: 10px; }

