/* Кабинет в стиле личного сайта: те же шрифт, цвета и скругления. */
@font-face { font-family: "Manrope"; src: url("/fonts/Manrope-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("/fonts/Manrope-SemiBold.woff2") format("woff2"); font-weight: 600 800; font-display: swap; }

:root {
  --ink: #0a0a0b;
  --graphite: #4a4a52;
  --slate: #8a8a95;
  --silver: #c8c8d0;
  --mist: #f0f0f5;
  --paper: #f7f7f9;
  --white: #fff;
  --border: #e4e4ea;
  --accent: #ff5a1f;
  --accent-ink: #b33910;
  --error: #c62828;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--paper);
  color: var(--ink);
  font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1 { margin: 0 0 8px; font-size: clamp(30px, 5vw, 44px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 800; }
.lead { margin: 0 0 28px; color: var(--graphite); }
.back { color: var(--graphite); text-decoration: none; font-size: 14px; }
.back:hover { color: var(--ink); }

.login { max-width: 420px; margin: 0 auto; padding: 56px 20px; }
.login form { display: flex; flex-direction: column; gap: 14px; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
input {
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  background: var(--white);
  font: inherit;
  font-weight: 400;
  color: var(--ink);
}
input:focus { outline: none; border-color: var(--ink); }
button {
  padding: 15px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
button:hover { opacity: 0.88; }
button.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--silver); padding: 9px 18px; font-size: 14px; }
.error { margin: 0; color: var(--error); font-size: 14px; }

.hub { max-width: 1000px; margin: 0 auto; padding: 32px 20px 64px; }
.hub header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.hub header form { margin: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.tile {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 28px;
  min-height: 210px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 30px;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(10, 10, 11, 0.04);
  transition: transform 0.14s, box-shadow 0.14s;
}
.tile:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(10, 10, 11, 0.08); }
.tile .tag { align-self: flex-start; padding: 3px 10px; border-radius: 999px; background: var(--mist); color: var(--graphite); font-size: 12px; font-weight: 600; }
.tile strong { font-size: 22px; letter-spacing: -0.02em; }
.tile span { color: var(--graphite); font-size: 15px; }
.tile .open { margin-top: auto; color: var(--accent-ink); font-weight: 700; }
