:root { color-scheme: light; --line: #d7dde5; --muted: #64748b; --bg: #f6f7f9; --ink: #18202c; --accent: #1f7668; --bad: #b42318; }
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, Segoe UI, sans-serif; background: var(--bg); color: var(--ink); }
.wrap { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
main { padding: 32px 0 56px; }
label { display: block; margin-bottom: 5px; font-weight: 700; }
input { width: 100%; min-height: 38px; border: 1px solid var(--line); border-radius: 5px; padding: 8px 10px; font: inherit; }
input[type="checkbox"] { width: auto; min-height: auto; }
button { min-height: 38px; padding: 0 14px; border: 1px solid var(--accent); background: var(--accent); color: #fff; border-radius: 6px; font-weight: 700; cursor: pointer; }
.muted { color: var(--muted); }
.app-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.app-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  gap: 14px;
}
.app-brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
}
.app-brand__logo {
  display: block;
  width: auto;
  height: 34px;
}
.app-header__right {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.app-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
}
.app-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: #334155;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
}
.app-tab:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.app-tab.is-active {
  border-color: #b7dfd6;
  background: #eefaf7;
  color: var(--accent);
}
.app-icon {
  width: 15px;
  height: 15px;
  flex: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}
.app-user-menu {
  position: relative;
}
.app-user-menu summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: #334155;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
}
.app-user-menu summary::-webkit-details-marker {
  display: none;
}
.app-user-menu summary::after {
  content: "⌄";
  color: var(--muted);
  font-size: 14px;
}
.app-user-menu[open] summary {
  border-color: var(--accent);
  color: var(--accent);
}
.app-user-menu .dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 20;
  min-width: 220px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
}
.app-user-menu .dropdown a,
.app-user-menu .dropdown button {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 38px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  text-decoration: none;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}
.app-user-menu .dropdown a:hover,
.app-user-menu .dropdown button:hover {
  background: #eef6f4;
  color: var(--accent);
}
.app-user-menu .dropdown form {
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
@media (max-width: 760px) {
  .app-header__inner {
    align-items: stretch;
    flex-direction: column;
    padding: 12px 0;
  }
  .app-header__right {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
    margin-left: 0;
  }
  .app-switcher {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }
  .app-tab {
    justify-content: center;
  }
  .app-user-menu {
    align-self: flex-end;
  }
}
.login-panel {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(320px, 420px);
  gap: 24px;
  align-items: center;
  width: min(920px, 100%);
  margin: 24px auto 0;
}
.login-panel__intro {
  padding: 8px 0 8px 16px;
  border-left: 4px solid var(--accent);
}
.login-panel__logo {
  display: block;
  width: auto;
  height: 40px;
  margin-bottom: 24px;
}
.login-panel__kicker {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.login-panel h1 {
  margin: 0 0 10px;
  font-size: 30px;
  line-height: 1.18;
}
.login-panel__copy {
  max-width: 440px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}
.login-card {
  display: grid;
  gap: 13px;
  max-width: none;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}
.login-card button {
  width: 100%;
}
.login-field {
  display: grid;
  gap: 5px;
}
.login-field label {
  margin: 0;
  color: #334155;
  font-size: 13px;
  font-weight: 650;
}
.login-remember {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #334155;
  font-size: 14px;
  font-weight: 500;
}
.login-remember input {
  margin: 0;
}
.login-errors {
  color: var(--bad);
  font-size: 13px;
  line-height: 1.4;
}
.login-errors ul {
  margin: 0;
  padding-left: 18px;
}
@media (max-width: 760px) {
  .login-panel {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 12px;
  }
  .login-panel__intro {
    padding-left: 12px;
  }
  .login-panel h1 {
    font-size: 25px;
  }
}
