:root {
  --ink: #101418;
  --muted: #5d6773;
  --line: #dfe4ea;
  --panel: #ffffff;
  --soft: #f4f6f8;
  --black: #050505;
  --blue: #0f62fe;
  --green: #15803d;
  --danger: #b42318;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: #eef1f4;
}

button,
a {
  font: inherit;
}

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

.auth-card,
.dashboard-card,
.placeholder-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.auth-card {
  width: min(420px, 100%);
  padding: 28px;
  text-align: center;
  box-shadow: 0 16px 40px rgba(16, 20, 24, 0.08);
}

.auth-card img {
  width: 170px;
  height: auto;
  margin-bottom: 18px;
}

.auth-card h1,
.page-title h1,
.placeholder-panel h1 {
  margin: 0;
  letter-spacing: 0;
}

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

.auth-card p,
.page-title p,
.placeholder-panel p,
.card-body p,
.meta {
  color: var(--muted);
}

.primary,
.secondary,
.card-link {
  min-height: 42px;
  border-radius: 6px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 700;
}

.primary,
.card-link {
  background: var(--black);
  color: #fff;
}

.secondary {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
}

.primary:disabled,
.card-link.disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.shell {
  min-height: 100vh;
}

.topbar {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 28px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand img {
  width: 142px;
  height: auto;
}

.brand-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.brand-text strong,
.brand-text span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-text span {
  color: var(--muted);
  font-size: 13px;
}

.account {
  display: flex;
  align-items: center;
  gap: 12px;
}

.account-name {
  text-align: right;
  font-size: 14px;
}

.account-name span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0;
}

.page-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.page-title h1 {
  font-size: 32px;
}

.page-title p {
  margin: 8px 0 0;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.dashboard-card {
  min-height: 220px;
  padding: 22px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 18px;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.module-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--black);
}

.module-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.status {
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
  background: #eaf7ee;
  color: var(--green);
}

.status.locked {
  background: #fff1f0;
  color: var(--danger);
}

.card-body h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.card-body p {
  margin: 0;
  line-height: 1.5;
}

.placeholder-panel {
  padding: 28px;
}

.placeholder-panel h1 {
  font-size: 30px;
}

.placeholder-panel p {
  line-height: 1.55;
}

.permission-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.permission-list span {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 700;
}

.hidden {
  display: none !important;
}

@media (max-width: 760px) {
  .topbar,
  .page-title,
  .account {
    align-items: flex-start;
  }

  .topbar,
  .page-title {
    flex-direction: column;
  }

  .account-name {
    text-align: left;
  }

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