*{
  box-sizing: border-box;
}

html{
  scroll-behavior: smooth;
}

body{
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-size: 15px;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
}

body:has(dialog[open]){
  overflow: hidden;
}

body.auth-open{
  overflow: hidden;
}

body.filters-open{
  overflow: hidden;
}

a{
  color: inherit;
  text-decoration: none;
}

[hidden]{
  display: none !important;
}

.icon-sprite{
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

button,
input,
select,
textarea{
  font: inherit;
}

button,
select{
  cursor: pointer;
}

.app-shell{
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
}

.app-shell[hidden],
.auth-screen[hidden]{
  display: none;
}

.auth-screen{
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
  background: var(--bg);
}

.auth-card{
  display: grid;
  width: min(460px, 100%);
  gap: 16px;
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.auth-brand{
  color: var(--ink);
}

.auth-card h1{
  margin-bottom: 8px;
}

.auth-card p{
  margin-bottom: 0;
  color: var(--muted);
}
