:root {
  --ink: #182321;
  --muted: #69716f;
  --paper: #f3f6f8;
  --card: #fffefa;
  --navy: #172e2a;
  --line: #deddd5;
  --sage: #5d796f;
  --shadow: 0 16px 40px rgba(28, 44, 40, 0.1);
}

* {
  box-sizing: border-box;
}

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

a {
  color: inherit;
}

.parent-main {
  min-height: 100vh;
  margin-left: 244px;
  padding: 42px;
}

.page-header {
  max-width: 860px;
  margin-bottom: 26px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--sage);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 8vw, 42px);
  font-weight: 600;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.page-subtitle {
  max-width: 620px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  max-width: 1040px;
}

.app-card,
.account-panel {
  display: grid;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
  min-height: 156px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  box-shadow: var(--shadow);
  text-decoration: none;
}

.app-card strong {
  min-width: 0;
  font-size: 22px;
  overflow-wrap: anywhere;
}

.app-card span,
.account-panel span {
  min-width: 0;
  color: var(--muted);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

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

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

.auth-card label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  color: white;
  background: var(--navy);
  font-family: Georgia, serif;
  font-weight: 700;
}

.input {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: white;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button-primary {
  color: white;
  background: var(--navy);
}

.button-secondary {
  border-color: var(--line);
  background: white;
}

.form-error {
  padding: 10px 12px;
  border-radius: 8px;
  color: #8a1f16;
  background: #ffe2dd;
  font-size: 13px;
  font-weight: 700;
}

.account-panel {
  max-width: 520px;
  min-height: auto;
}

@media (max-width: 880px) {
  .parent-main {
    margin-left: 0;
    padding: 84px 18px 24px;
  }

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