:root {
  color-scheme: light;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  background: #f5f7fb;
  color: #202329;
}

* {
  box-sizing: border-box;
}

[v-cloak] {
  display: none;
}

body {
  margin: 0;
  min-width: 320px;
  background: #f5f7fb;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.login-page {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(27, 94, 90, 0.14), transparent 38%),
    linear-gradient(315deg, rgba(177, 85, 43, 0.16), transparent 34%),
    #f5f7fb;
}

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

.login-panel {
  width: min(420px, 100%);
  border: 1px solid #dce2ea;
  border-radius: 8px;
  background: #ffffff;
  padding: 28px;
  box-shadow: 0 18px 45px rgba(25, 32, 44, 0.12);
}

.brand-block,
.topbar-title,
.user-area,
.toolbar,
.pager {
  display: flex;
  align-items: center;
}

.brand-block {
  gap: 14px;
  margin-bottom: 28px;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 8px;
  background: #1b5e5a;
  color: #ffffff;
  font-weight: 800;
}

.brand-mark.small {
  width: 34px;
  height: 34px;
  font-size: 13px;
}

h1,
p {
  margin: 0;
}

.brand-block h1 {
  font-size: 22px;
  line-height: 1.25;
}

.brand-block p {
  margin-top: 6px;
  color: #657081;
}

.login-form {
  display: grid;
  gap: 16px;
}

.login-form label {
  display: grid;
  gap: 8px;
  color: #465263;
  font-size: 14px;
}

.login-form input {
  width: 100%;
  height: 44px;
  border: 1px solid #cad3df;
  border-radius: 6px;
  padding: 0 12px;
  color: #202329;
  background: #ffffff;
}

.login-form input:focus {
  border-color: #1b5e5a;
  outline: 3px solid rgba(27, 94, 90, 0.16);
}

.login-form button {
  height: 44px;
  border: 0;
  border-radius: 6px;
  background: #1b5e5a;
  color: #ffffff;
  font-weight: 700;
}

.form-error {
  border-radius: 6px;
  background: #fff0ed;
  color: #9d2f1f;
  padding: 10px 12px;
  font-size: 14px;
}

.topbar {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #dce2ea;
  background: #ffffff;
  padding: 0 24px;
}

.topbar-title {
  gap: 12px;
}

.topbar h1 {
  font-size: 20px;
}

.user-area {
  gap: 12px;
}

.user-meta {
  display: grid;
  justify-items: end;
  gap: 2px;
}

.user-meta span {
  font-size: 14px;
  font-weight: 700;
}

.user-meta small {
  max-width: 240px;
  overflow: hidden;
  color: #657081;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.secondary-button {
  min-height: 36px;
  border: 1px solid #cad3df;
  border-radius: 6px;
  background: #ffffff;
  color: #28313d;
  padding: 0 12px;
}

.secondary-button:disabled {
  cursor: not-allowed;
  color: #9aa4b2;
  background: #f1f4f8;
}

.dashboard {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 24px;
}

.toolbar {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.toolbar strong {
  font-size: 22px;
}

.toolbar span {
  color: #657081;
}

.pager {
  gap: 10px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid #dce2ea;
  border-radius: 8px;
  background: #ffffff;
}

table {
  width: 100%;
  min-width: 880px;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid #edf0f4;
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
}

th {
  background: #f8fafc;
  color: #465263;
  font-size: 13px;
  font-weight: 700;
}

td {
  font-size: 14px;
}

tbody tr:hover {
  background: #fbfcfe;
}

.muted {
  color: #657081;
}

.empty-state {
  padding: 36px;
  text-align: center;
  color: #657081;
}

@media (max-width: 720px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 14px 16px;
  }

  .user-area,
  .toolbar {
    width: 100%;
    align-items: flex-start;
    flex-direction: column;
  }

  .user-meta {
    justify-items: start;
  }

  .dashboard {
    padding: 16px;
  }
}
