:root {
  --bg: #f4f6f4;
  --surface: #ffffff;
  --ink: #17211b;
  --muted: #657268;
  --line: #dce3de;
  --green: #1f7a53;
  --gold: #f2c14e;
  --red: #b83232;
  --red-2: #fde8e8;
  --shadow: 0 18px 50px rgba(23, 33, 27, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
}

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

.login-layout {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-panel,
.install-panel {
  width: min(460px, 100%);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 28px;
}

.install-panel {
  margin: 48px auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.brand-mark,
.app-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--gold);
  color: #18211b;
  font-weight: 800;
}

.brand span,
p {
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px;
  font-weight: 800;
}

h1 {
  margin: 0 0 8px;
  font-size: 38px;
  letter-spacing: 0;
}

form { display: grid; gap: 16px; }

label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  font: inherit;
}

button,
.logout {
  border: 0;
  border-radius: 8px;
  padding: 12px 16px;
  background: var(--green);
  color: white;
  font-weight: 800;
  cursor: pointer;
}

.error {
  background: var(--red-2);
  color: var(--red);
  padding: 12px;
  border-radius: 8px;
}

.notice {
  background: #e2f3ea;
  color: var(--green);
  padding: 12px;
  border-radius: 8px;
}

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

aside {
  background: #16231b;
  color: #f7fbf8;
  padding: 28px 18px;
}

aside nav {
  display: grid;
  gap: 8px;
}

aside nav a {
  padding: 12px;
  border-radius: 8px;
  color: #dbe8df;
}

aside nav a.active,
aside nav a:hover {
  background: rgba(255,255,255,.12);
  color: white;
}

main {
  padding: 32px;
}

header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 28px;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.app-card {
  min-height: 142px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 20px;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
}

.app-card strong {
  font-size: 22px;
}

.app-card p {
  margin: 6px 0 0;
}

.app-card > span {
  color: var(--green);
  font-weight: 800;
}

@media (max-width: 760px) {
  .shell {
    grid-template-columns: 1fr;
  }

  aside {
    position: static;
  }

  header,
  .app-card {
    grid-template-columns: 1fr;
  }
}
