@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--background);
  font-synthesis: none;
  --primary: #234b68;
  --secondary: #eaf2f8;
  --background: #f6f8fa;
  --surface: #fff;
  --text: #253341;
  --muted: #647583;
  --accent: #18a999;
  --line: #e3e8ed;
  --sidebar-width: 208px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  padding: 10px 14px;
  color: var(--primary);
  font-weight: 500;
}

button:hover {
  background: var(--secondary);
}

button:disabled {
  opacity: 0.5;
  cursor: wait;
}

button.primary {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 3px 5px #234b6815;
}

button.primary:hover {
  background: #183a54;
}

button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

label {
  display: block;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

label input,
label select {
  display: block;
  width: 100%;
  min-width: 0;
  margin-top: 7px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  font-size: 12px;
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px #234b680d;
}

h1 {
  margin: 10px 0;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -1px;
}

p {
  margin: 8px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.eyebrow {
  color: var(--primary);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.6px;
}

[role='alert'] {
  color: #a33d32;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--primary);
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -1px;
  text-decoration: none;
}

.brand img {
  flex: none;
}

.brand-dot {
  color: var(--accent);
}

.brand-signature {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  color: var(--muted);
  font-size: 10px;
}

.brand-signature img {
  display: block;
  width: 134px;
  height: 38px;
  object-fit: cover;
  object-position: left center;
}

.auth-screen {
  display: flex;
  justify-content: center;
  align-items: center;
  align-items: safe center;
  height: 100%;
  overflow: auto;
  padding: 30px;
  background: radial-gradient(ellipse at top left, var(--secondary), transparent 60%), var(--background);
}

.auth-card {
  width: 420px;
  max-width: 100%;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 18px 60px #234b6812;
}

.auth-card h1 {
  font-size: 25px;
}

.auth-card .brand {
  margin-bottom: 30px;
}

.auth-card label {
  margin-top: 18px;
}

.auth-card button {
  width: 100%;
  margin-top: 14px;
}

.auth-signature {
  justify-content: center;
  margin-top: 23px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

aside {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-width);
  padding: 28px 16px;
  border-right: 1px solid var(--line);
  background: var(--surface);
}

main {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin-left: var(--sidebar-width);
  overflow: hidden;
}

header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  gap: 16px;
  height: 78px;
  padding: 0 32px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
}

header b {
  margin: 0 12px;
  color: var(--line);
}

.header-path,
.pill {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-account {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-width: 0;
  max-width: 60%;
  margin-left: auto;
}

.pill {
  font-size: 11px;
}

.user-menu {
  position: relative;
  flex: none;
}

.user-menu > summary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--secondary);
  color: var(--primary);
  list-style: none;
  cursor: pointer;
}

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

.user-dropdown {
  position: absolute;
  inset: calc(100% + 8px) 0 auto auto;
  width: 220px;
  max-width: calc(100vw - 36px);
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 8px 28px #234b6820;
}

#sessionName {
  display: block;
  padding: 10px 12px;
  color: var(--text);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.user-dropdown button {
  width: 100%;
  min-height: 44px;
  border: 0;
}

.user-dropdown p:empty {
  display: none;
}

.workspace-content {
  flex: 1;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 0 32px 28px;
}

footer {
  display: flex;
  justify-content: flex-end;
  flex-shrink: 0;
  padding: 18px 32px;
  border-top: 1px solid var(--line);
}

.mobile-brand {
  display: none;
}

@media (max-width: 1000px) {
  :root {
    --sidebar-width: 180px;
  }

  header,
  .workspace-content,
  footer {
    padding-inline: 24px;
  }

  h1 {
    font-size: 25px;
  }
}

@media (max-width: 650px) {
  aside,
  .header-path,
  .header-account > .pill {
    display: none;
  }

  main {
    margin: 0;
  }

  header {
    height: 72px;
    gap: 8px;
  }

  header,
  .workspace-content,
  footer {
    padding-inline: 18px;
  }

  footer {
    padding-block: 12px;
  }

  label input,
  label select {
    font-size: 16px;
  }

  .auth-screen {
    padding: 18px;
  }

  .auth-card {
    padding: 25px;
  }

  .auth-card h1 {
    font-size: 24px;
  }

  .mobile-brand {
    display: flex;
    font-size: 24px;
  }

}
