:root {
  color-scheme: light dark;
  --blue: oklch(0.57 0.20 255);
  --blue-hover: oklch(0.52 0.20 255);
  --blue-soft: oklch(0.96 0.02 255);
  --grey-blue: oklch(0.48 0.03 250);
  --dark: oklch(0.42 0.05 244);
  --input: oklch(1 0 0);
  --input-border: oklch(0.89 0.01 250);
  --button-text: oklch(0.985 0.005 255);
  --card: oklch(0.98 0.008 255);
  --title: oklch(0.30 0.06 240);
  --underline: oklch(0.91 0.015 255);
  --line: oklch(0.91 0.01 250);
  --line-strong: oklch(0.88 0.012 250);
  --surface: oklch(0.995 0.004 255);
  --canvas: oklch(0.98 0.006 255);
  --text: oklch(0.28 0.04 244);
  --muted: oklch(0.56 0.03 250);
  --sidebar-bg: oklch(0.99 0.005 255);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --focus-ring: 0 0 0 2px var(--surface), 0 0 0 4px var(--blue);
  --shadow-sm: 0 1px 2px oklch(0.20 0.02 250 / 0.06);
  --shadow-md: 0 4px 12px oklch(0.20 0.02 250 / 0.10), 0 1px 3px oklch(0.20 0.02 250 / 0.08);
  --shadow-lg: 0 12px 32px oklch(0.20 0.02 250 / 0.14), 0 1px 3px oklch(0.20 0.02 250 / 0.08);
  font-family: 'Instrument Sans', ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 320px;
  background: var(--canvas);
  color: var(--text);
  overflow-x: hidden;
}
button,
input,
textarea {
  font: inherit;
}
a {
  color: inherit;
}
button {
  cursor: pointer;
}
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
a:focus-visible,
[tabindex]:focus-visible,
[contenteditable]:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}
@media (forced-colors: active) {
  :focus-visible {
    outline: 2px solid CanvasText;
    outline-offset: 2px;
    box-shadow: none;
  }
}
h1,
h2 {
  font-family: 'General Sans', ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -0.015em;
  margin-top: 0;
}
h3,
p {
  margin-top: 0;
}
time,
.kbd,
code,
pre,
.mono {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-variant-ligatures: none;
}
.eyebrow {
  margin-bottom: 10px;
  color: var(--grey-blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.brand {
  display: inline-flex;
  align-items: center;
  color: var(--title);
  text-decoration: none;
  transition: opacity 0.15s ease;
  height: 36px;
}
.brand:hover {
  opacity: 0.85;
}
.brand-logo {
  height: 36px;
  width: auto;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
  object-position: left center;
}
.button,
.secondary-button,
.text-button,
.icon-button,
.tool-button {
  border: 1px solid transparent;
  border-radius: 4px;
  transition:
    background 0.16s ease,
    color 0.16s ease,
    transform 0.16s ease;
}
.button {
  display: inline-block;
  background: var(--blue);
  color: var(--button-text);
  padding: 12px 16px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}
.button:hover {
  background: var(--blue-hover);
}
.button:active,
.secondary-button:active,
.text-button:active,
.tool-button:active {
  transform: translateY(1px);
}
.text-button {
  background: transparent;
  color: var(--blue);
  padding: 8px 0;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}
.secondary-button,
.tool-button {
  display: inline-block;
  border-color: rgba(41, 119, 245, 0.48);
  background: transparent;
  color: var(--blue);
  padding: 9px 13px;
  font-weight: 650;
  text-decoration: none;
}
.secondary-button:hover,
.tool-button:hover {
  background: var(--input);
}
label {
  display: grid;
  gap: 8px;
  color: var(--title);
  font-size: 14px;
  font-weight: 650;
}
input,
textarea {
  width: 100%;
  border: 1px solid var(--input-border);
  border-radius: var(--radius-sm);
  background: var(--input);
  color: var(--text);
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
input:hover,
textarea:hover {
  border-color: oklch(0.65 0.12 255 / 0.5);
}
input:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px oklch(0.59 0.19 255 / 0.12);
}
textarea {
  min-height: 160px;
  resize: vertical;
  line-height: 1.55;
}
small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}
.form-message {
  color: #a12d38;
  font-size: 14px;
}
.login-view {
  min-height: 100dvh;
  max-width: 1400px;
  margin: auto;
  padding: 32px 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-theme {
  position: absolute;
  top: 20px;
  right: 20px;
}
.login-card {
  width: min(100%, 500px);
  padding: 52px 0;
}
.login-card h1 {
  margin-bottom: 22px;
  color: var(--title);
  font-size: clamp(46px, 6vw, 64px);
  letter-spacing: -0.055em;
  line-height: 0.98;
}
.login-copy {
  margin-bottom: 30px;
  color: var(--grey-blue);
  font-size: 17px;
  line-height: 1.6;
}
.login-card label {
  margin: 16px 0;
}
.full-button {
  width: 100%;
  margin-top: 8px;
}
.login-footer {
  align-self: end;
  color: var(--muted);
  font-size: 13px;
}
.user-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding: 16px 0;
  flex-wrap: wrap;
}
.user-row > div:first-child {
  display: grid;
  gap: 4px;
  min-width: 180px;
  flex: 1;
}
.user-row span {
  color: var(--grey-blue);
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-row form {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.user-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  min-width: 280px;
}
.user-actions input {
  width: auto;
  min-width: 180px;
  max-width: 220px;
  padding: 8px 12px;
  font-size: 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.user-actions .btn-label {
  font-size: 11px;
  font-weight: 500;
}
.user-actions .tool-button,
.user-actions .secondary-button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
}
.user-actions .tool-button {
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  padding: 4px 8px;
}
.user-actions .tool-button:hover {
  background: var(--card);
  color: var(--text);
}
.user-actions .secondary-button {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  padding: 4px 8px;
}
.user-actions .secondary-button:hover {
  background: var(--card);
  color: var(--text);
}
.user-actions .tool-button.danger {
  color: #c5221f;
  border-color: oklch(0.6 0.2 25 / 0.3);
}
.user-actions .tool-button.danger:hover {
  background: oklch(0.6 0.2 25 / 0.1);
  color: #c5221f;
}
