/* Navigation, workspace shell, and authentication layouts. */
.app-shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; height: 100dvh; display: flex; flex-direction: column; background: #163d34; color: #eff5ef; padding: 31px 20px 20px; overflow-y: auto; }
.sidebar-brand { display: flex; align-items: center; gap: 12px; padding: 0 10px; margin-bottom: 39px; }
.sidebar-brand a { color: inherit; text-decoration: none; }
.sidebar-brand strong { display: block; letter-spacing: .045em; font-size: 19px; line-height: 1.25; }
.sidebar-brand a > span { display: block; color: #adc6b9; font-size: 9px; letter-spacing: .19em; margin-top: 4px; }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; height: 40px; width: 40px; border: 1px solid #7f9b80; border-radius: 11px; color: #c9b883; flex-shrink: 0; }
.brand-mark .icon { width: 25px; height: 25px; }
.nav-disclosure { flex: 1; display: flex; flex-direction: column; }
.nav-disclosure > summary { display: none; }
.nav-heading { color: #9bb5a7; letter-spacing: .14em; font-size: 9px; font-weight: 650; margin: 24px 12px 12px; }
.nav-heading:first-child { margin-top: 0; }
.nav-item { display: flex; width: 100%; align-items: center; gap: 12px; min-height: 47px; padding: 12px; color: #c6d8ce; font-size: 12px; text-decoration: none; border: 0; border-radius: 8px; margin-bottom: 5px; line-height: 1.45; text-align: left; }
.nav-item .icon { width: 19px; height: 19px; color: #9ebaaa; }
.nav-item:hover, .nav-item.active { color: #fff; background: #285246; box-shadow: none; }
.nav-item.active { background: #2c5c4b; font-weight: 600; }
.nav-item.active .icon { color: #d9d8b2; }
.sidebar-bottom { margin-top: 40px; }
.sidebar-note { display: flex; gap: 10px; padding: 16px 10px; border-top: 1px solid #36564a; color: #ccded1; font-size: 11px; }
.sidebar-note .icon { width: 16px; }
.sidebar-note p { margin: 0; }
.sidebar-note small { display: block; color: #9bb5a7; font-size: 10px; line-height: 1.7; margin-top: 5px; }
.logout-button { background: transparent; font-weight: 500; justify-content: flex-start; }
.sidebar-version { display: block; color: #9bb5a7; font-size: 9px; letter-spacing: .09em; margin: 22px 12px 0; }
.app-main { min-width: 0; display: flex; flex-direction: column; }
.workspace-header { height: 83px; padding: 0 38px; display: flex; align-items: center; justify-content: space-between; gap: 20px; background: #fff; border-bottom: 1px solid var(--line); }
.breadcrumb { display: flex; gap: 12px; align-items: center; font-size: 12px; color: var(--muted); }
.breadcrumb strong { font-weight: 500; color: var(--ink); }
.user-identity { display: flex; align-items: center; gap: 10px; }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; background: #edf1e9; color: #5f6b4d; border: 1px solid #dce4d6; border-radius: 50%; font-weight: 650; flex-shrink: 0; }
.user-identity strong { font-size: 12px; display: block; }
.user-identity small { display: block; font-size: 10px; color: var(--muted); }
.container { width: 100%; max-width: 1440px; margin: 0 auto; padding: 34px 38px 45px; flex: 1; }
.workspace-footer { display: flex; justify-content: space-between; gap: 18px; margin: 0 38px; padding: 20px 0; font-size: 10px; color: var(--muted); border-top: 1px solid var(--line); }
.auth-layout { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth-story { position: relative; overflow: hidden; display: flex; flex-direction: column; padding: 48px clamp(35px, 5.5vw, 85px) 32px; background: #163d34; color: #f3f6ed; }
.auth-story::after { content: ""; position: absolute; width: 530px; height: 530px; bottom: -320px; right: -230px; border-radius: 50%; border: 1px solid #6c88704d; box-shadow: 0 0 0 46px #6c88701a, 0 0 0 91px #6c887010; pointer-events: none; }
.auth-brand { display: flex; align-items: center; gap: 12px; color: #f5f6eb; text-decoration: none; font-size: 21px; font-weight: 650; letter-spacing: .05em; }
.auth-brand:hover { color: #fff; }
.auth-brand small { display: block; font-size: 9px; letter-spacing: .24em; color: #afc5b4; font-weight: 500; }
.auth-story-content { margin: auto 0; padding: 70px 0; position: relative; z-index: 1; }
.auth-story .eyebrow { color: #c4b47d; font-size: 9px; }
.auth-story h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(37px, 3.5vw, 54px); line-height: 1.16; font-weight: 400; letter-spacing: -.035em; margin: 24px 0; }
.auth-story-content > p { max-width: 370px; color: #b5cbbd; font-size: 13px; line-height: 1.85; }
.auth-steps { list-style: none; padding: 0; margin: 38px 0 0; display: grid; gap: 21px; }
.auth-steps li { display: flex; gap: 16px; align-items: center; }
.auth-steps li > span { display: grid; place-items: center; width: 32px; height: 32px; flex-shrink: 0; color: #c6b989; border: 1px solid #55735f; border-radius: 50%; font-size: 10px; }
.auth-steps strong { font-weight: 500; font-size: 12px; }
.auth-steps small { display: block; font-size: 11px; color: #adc4b4; margin-top: 2px; }
.auth-story-footer { display: flex; justify-content: space-between; gap: 16px; color: #9eb7a8; font-size: 8px; letter-spacing: .09em; position: relative; z-index: 1; }
.auth-main { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 64px 36px 28px; background: #fcfdfb; }
.auth-main-inner { width: 100%; max-width: 390px; margin: auto; }
.auth-main .login { margin: 0; }
.auth-main .login.card { border: 0; padding: 0; box-shadow: none; background: transparent; }
.auth-main h2, .auth-main h1 { font-size: 29px; font-weight: 650; margin-bottom: 14px; }
.auth-description { color: var(--muted); font-size: 13px; line-height: 1.8; margin-bottom: 29px; }
.auth-form { margin-top: 28px; }
.auth-form .full-width { margin-top: 4px; min-height: 48px; justify-content: space-between; }
.auth-help { padding-top: 23px; margin-top: 29px; border-top: 1px solid var(--line); }
.auth-help strong { font-size: 12px; }
.auth-help p { color: var(--muted); font-size: 12px; line-height: 1.8; margin: 6px 0 0; }
.auth-footer { display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 10px; color: #6b7970; margin: 50px 0 0; }
.auth-footer .icon { width: 13px; height: 13px; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 108px !important; }
.password-toggle { position: absolute; right: 3px; top: 3px; min-height: 40px; background: transparent; color: var(--green); border: 0; padding: 9px; font-size: 11px; }
.password-toggle:hover { background: var(--mint); color: var(--green); box-shadow: none; }
@media (max-width: 1100px) {
  .app-shell { grid-template-columns: 222px minmax(0, 1fr); }
  .sidebar { padding-inline: 13px; }
  .container { padding: 28px 26px; }
  .workspace-header { padding-inline: 26px; }
  .workspace-footer { margin-inline: 26px; }
  .auth-story { padding-inline: 36px; }
}
@media (max-width: 820px) {
  .app-shell { display: block; }
  .sidebar { position: relative; height: auto; padding: 17px 20px 8px; overflow: visible; }
  .sidebar-brand { margin: 0 0 8px; padding: 0; }
  .sidebar-brand strong { font-size: 16px; }
  .sidebar-brand a > span { font-size: 8px; }
  .sidebar .brand-mark { width: 34px; height: 34px; }
  .nav-disclosure > summary { display: flex; justify-content: space-between; color: #c9dbcf; font-size: 12px; min-height: 44px; }
  .nav-disclosure > summary::marker { display: none; }
  .nav-disclosure nav { padding-top: 12px; }
  .sidebar-bottom { margin-top: 14px; padding-bottom: 10px; }
  .sidebar-note, .sidebar-version { display: none; }
  .workspace-header { height: 68px; padding-inline: 20px; }
  .container { padding: 26px 20px 36px; }
  .workspace-footer { margin-inline: 20px; font-size: 9px; }
  .breadcrumb { font-size: 11px; gap: 8px; }
  .breadcrumb > span:first-child { display: none; }
  .breadcrumb > span:nth-child(2) { display: none; }
  .auth-layout { grid-template-columns: 1fr; }
  .auth-story { padding: 27px 26px; }
  .auth-brand { font-size: 18px; }
  .auth-story-content, .auth-story-footer { display: none; }
  .auth-story::after { width: 200px; height: 200px; bottom: -130px; right: 0; }
  .auth-main { min-height: calc(100dvh - 96px); padding: 38px 25px 24px; }
  .auth-main-inner { max-width: 430px; }
  .auth-main .section-icon { display: none; }
  .auth-main h2, .auth-main h1 { font-size: 27px; }
  .auth-footer { margin-top: 36px; }
}
