.sidebar{
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
  height: 100vh;
  padding: 18px;
  color: #eef5f2;
  background:
    radial-gradient(circle at 16% 0%, rgba(199, 54, 47, 0.2), transparent 30%),
    linear-gradient(180deg, #1a2321 0%, #111918 62%, #0f1514 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 10px 0 28px rgba(17, 25, 24, 0.1);
}

.brand{
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 48px;
}

.brand-mark{
  display: grid;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  background: var(--accent);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sm);
  box-shadow: none;
  font-weight: 950;
}

.brand strong,
.brand small{
  display: block;
}

.brand strong{
  color: #fff;
  line-height: 1;
}

.brand small{
  color: #aeb7b2;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.side-nav{
  display: grid;
  gap: var(--space-5);
}

.nav-group{
  display: grid;
  gap: 6px;
}

.side-nav a{
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 0 12px;
  color: #c7d1cc;
  background: transparent;
  border-color: transparent;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 750;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.side-nav a:hover,
.side-nav a.active{
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
}

.side-nav a.active{
  box-shadow: inset 3px 0 0 var(--accent);
}

.side-nav a:hover{
  transform: none;
}

.side-nav a > span:first-child{
  display: inline-flex;
  gap: 10px;
  align-items: center;
}

.nav-icon{
  display: inline-block;
  width: 21px;
  height: 21px;
  color: currentColor;
  opacity: 0.86;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-badge{
  display: inline-flex;
  min-width: 22px;
  min-height: 22px;
  align-items: center;
  justify-content: center;
  padding: 0 7px;
  color: #fff;
  background: var(--accent);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
}

.nav-badge[hidden]{
  display: none;
}

.sidebar-card{
  margin-top: auto;
  padding: 16px;
  color: #c7d1cc;
  background: rgba(255, 255, 255, 0.055);
  border: 0;
  border-radius: 0;
  box-shadow: 0 18px 24px -22px rgba(0, 0, 0, 0.55);
  backdrop-filter: none;
}

.sidebar-card span{
  display: block;
  margin-bottom: 6px;
  color: #fff;
  font-size: 14px;
  font-weight: 780;
  line-height: 1.3;
}

.sidebar-card p{
  margin: 8px 0 0;
  color: #aeb9b4;
  font-size: 13px;
  line-height: 1.45;
}

.app-main{
  min-width: 0;
}

.topbar{
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 16px;
  align-items: center;
  min-height: 74px;
  padding: var(--space-4) var(--space-8);
  background: rgba(245, 247, 251, 0.9);
  border-bottom: 1px solid var(--border);
  backdrop-filter: none;
}

.breadcrumb{
  margin: 0 0 3px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
}

h1,
h2,
h3,
p{
  margin-top: 0;
}

h1{
  color: var(--text);
  margin-bottom: 0;
  font-size: clamp(28px, 3vw, 32px);
  font-weight: 750;
  line-height: 1.1;
  letter-spacing: 0;
}

h2{
  color: var(--text);
  margin-bottom: 8px;
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: 0;
}

h3{
  color: var(--text);
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: 700;
}

.topbar-actions{
  display: flex;
  gap: 10px;
  align-items: center;
}

.user-pill{
  position: relative;
}

.user-pill summary{
  display: block;
  list-style: none;
}

.user-pill summary::-webkit-details-marker{
  display: none;
}

.user-pill summary span{
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 0 2px 0 12px;
  color: var(--text-soft);
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 13px;
  font-weight: 760;
}

.user-pill summary span::before{
  display: inline-grid;
  width: 28px;
  height: 28px;
  margin-right: 8px;
  place-items: center;
  color: #fff;
  background: var(--dark);
  border-radius: 0;
  content: attr(data-initial);
}

.user-menu{
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  display: grid;
  width: 220px;
  gap: 6px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.user-menu .btn{
  justify-content: flex-start;
  width: 100%;
  min-width: 0;
}

.global-search{
  display: block;
  min-width: min(36vw, 430px);
}

.content{
  padding: var(--space-6) var(--space-8) var(--space-10);
}

.app-footer{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0 30px 24px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.view{
  display: none;
}

.view.active{
  display: block;
}

.eyebrow{
  display: block;
  margin-bottom: 8px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
}

.panel{
  padding: var(--space-6);
  background: var(--surface);
  border: 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.panel:hover{
  box-shadow: var(--shadow-nested-hover);
  transform: translateY(-1px);
}

.panel-head{
  display: flex;
  gap: 16px;
  align-items: start;
  justify-content: space-between;
  margin-bottom: 16px;
}

.panel-head p{
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.offer-tabs{
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  padding: 4px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.offer-tabs button{
  display: inline-flex;
  flex: 1;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: var(--radius-sm);
  font-weight: 900;
}

.offer-tabs button.active{
  color: var(--ink);
  background: #fff;
  box-shadow: none;
}

.offer-tabs span{
  display: inline-flex;
  min-width: 24px;
  min-height: 24px;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--accent);
  border-radius: 999px;
  font-size: 12px;
}

.saved-searches{
  display: grid;
  gap: 8px;
}

.saved-search{
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
}

.saved-search > button:first-child{
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 10px;
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.saved-search span{
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.layout-grid{
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.filter-chips{
  display: flex;
  width: 100%;
  gap: 18px;
  margin-bottom: 14px;
  padding: 0 0 10px;
  overflow-x: auto;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
}

.filter-chips button{
  position: relative;
  flex: 0 0 auto;
  min-height: 30px;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font-size: 14px;
  font-weight: 760;
}

.filter-chips button::after{
  position: absolute;
  right: 0;
  bottom: -11px;
  left: 0;
  height: 2px;
  content: "";
  background: transparent;
}

.filter-chips button.active{
  color: var(--text);
}

.filter-chips button.active::after{
  background: var(--accent);
}
