* {
  box-sizing: border-box;
}

:root {
  color-scheme: light;
  --bg: #f7f7f7;
  --ink: #000000;
  --muted: #707070;
  --line: #dedede;
  --panel: #ffffff;
  --soft: #f1f1f1;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 400;
}

.topbar {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  background: #000000;
  color: #ffffff;
}

.brand,
.top-link,
.top-button {
  color: inherit;
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 700;
}

.brand-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 2px solid #ffffff;
  border-radius: 8px;
  font-size: 17px;
  line-height: 1;
}

.top-link {
  padding: 10px 14px;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  background: #151515;
  font-weight: 700;
}

.top-button {
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  background: #151515;
  padding: 10px 14px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.screen {
  min-height: calc(100vh - 70px);
  display: grid;
  place-items: center;
  padding: 48px 24px;
}

.login-card,
.workspace {
  width: min(630px, 100%);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.06);
}

.login-card {
  display: grid;
  justify-items: center;
  gap: 24px;
  padding: 64px 56px 54px;
  text-align: center;
}

.workspace {
  width: min(940px, 100%);
  padding: 32px;
}

.card-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 4px solid #000000;
  border-radius: 10px;
  font-size: 26px;
  line-height: 1;
}

h1 {
  margin: 0;
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: 0;
  font-weight: 700;
}

.subtle {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.45;
}

.form {
  width: 100%;
  display: grid;
  gap: 22px;
  text-align: left;
}

label {
  display: grid;
  gap: 10px;
  color: #3b3b3b;
  font-size: 15px;
  font-weight: 600;
}

input {
  width: 100%;
  min-height: 64px;
  border: 3px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-size: 18px;
  font-weight: 500;
  padding: 16px 22px;
}

input:focus {
  border-color: #000000;
  outline: 4px solid #ededed;
}

.primary-button,
.secondary-button {
  min-height: 64px;
  border: 0;
  border-radius: 12px;
  font: inherit;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
}

.secondary-button.full {
  width: 100%;
}

.primary-button {
  width: 100%;
  background: #000000;
  color: #ffffff;
}

.secondary-button {
  width: fit-content;
  border: 1px solid #cfcfcf;
  background: #ffffff;
  color: #000000;
  padding: 0 18px;
}

.primary-button:hover {
  background: #1f1f1f;
}

.message {
  min-height: 20px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.message[data-tone="ok"] {
  color: #000000;
}

.message[data-tone="error"] {
  color: #000000;
  font-weight: 800;
}

.result-box {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft);
  padding: 16px;
  font-weight: 700;
}

.result-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #000000;
}

.workspace-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}

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

.service-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  background: #ffffff;
}

.service-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 2px solid #000000;
  border-radius: 8px;
  margin-bottom: 18px;
}

.service-card h2 {
  margin: 0 0 10px;
  font-size: 20px;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.user-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 180px;
  gap: 16px;
  align-items: end;
  margin-bottom: 24px;
}

.user-form input {
  min-height: 52px;
  border-width: 2px;
  font-size: 16px;
  padding: 12px 14px;
}

.user-form label {
  font-size: 14px;
}

.user-form .primary-button,
.workspace .secondary-button {
  min-height: 52px;
  font-size: 16px;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

th,
td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

tr:last-child td {
  border-bottom: 0;
}

@media (max-width: 720px) {
  .topbar {
    height: 64px;
    padding: 0 18px;
  }

  .brand {
    font-size: 20px;
  }

  .screen {
    min-height: calc(100vh - 64px);
    padding: 28px 16px;
  }

  .login-card,
  .workspace {
    border-radius: 14px;
    padding: 34px 22px;
  }

  h1 {
    font-size: 28px;
  }

  .subtle {
    font-size: 17px;
  }

  .user-form {
    grid-template-columns: 1fr;
  }

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