/* 图纸重建工作台 — 共享设计语言（login / admin / 工作台统一沿用） */

:root {
  --ink: #2a2018;
  --muted: #7c6f60;
  --line: #e7ddcc;
  --cream: #f6efe3;
  --cream-2: #efe6d6;
  --soft: #efe6d6;
  --panel: #fffdf8;
  --paper: #f6efe3;
  --brand: #0f7a6c;
  --brand-dark: #0b5d52;
  --amber: #e0954b;
  --amber-soft: #f4d9b6;
  --danger: #b42318;
  --radius: 12px;
  --shadow: 0 24px 60px rgba(60, 42, 22, 0.12);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: inherit;
}

.mark {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--brand) 0%, #14a08d 100%);
  box-shadow: 0 8px 20px rgba(15, 122, 108, 0.35);
}

.mark svg { width: 25px; height: 25px; }

button,
.button {
  height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 9px;
  color: #fff;
  background: linear-gradient(145deg, var(--brand) 0%, var(--brand-dark) 100%);
  font: inherit;
  font-weight: 800;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: filter 0.15s ease, transform 0.05s ease;
}

button:hover,
.button:hover { filter: brightness(1.06); }

button:active,
.button:active { transform: translateY(1px); }

button:disabled { cursor: wait; opacity: 0.72; }

button.secondary,
.button.secondary {
  color: var(--ink);
  background: var(--cream-2);
}

button.danger,
.button.danger {
  color: #fff;
  background: var(--danger);
}

label {
  display: block;
  margin: 0 0 7px;
  font-size: 13px;
  font-weight: 760;
  color: #4a4035;
}

input,
select {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  background: #fffdfa;
  font: inherit;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus,
select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(15, 122, 108, 0.14);
}

.surface {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

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

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

.table th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  background: #fbf8f1;
}

.status {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  color: var(--muted);
  background: var(--cream-2);
  font-size: 12px;
  font-weight: 800;
}

.status.active {
  color: #0b665c;
  background: #dbeee6;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  max-width: min(560px, calc(100vw - 32px));
  padding: 11px 16px;
  border-radius: 10px;
  color: #fff;
  background: rgba(36, 26, 18, 0.94);
  font-size: 13px;
  line-height: 1.5;
  box-shadow: 0 14px 32px rgba(60, 42, 22, 0.22);
}

.hidden { display: none; }
