/* Стили для /author/* — личный кабинет автора prostaya-rabota.ru */

* { box-sizing: border-box; }

body { margin: 0; font: 14px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: #f5f5f5; color: #222; }

/* ─── Auth login page ─── */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.auth-card { width: 100%; max-width: 360px; background: #fff; padding: 28px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.08); }
.auth-card h1 { margin: 0 0 6px; font-size: 22px; }
.auth-card .sub { color: #888; font-size: 13px; margin: 0 0 22px; }
.auth-card .hint { font-size: 12px; color: #999; margin: 14px 0 0; text-align: center; }
.field { margin: 0 0 14px; }
.field label { display: block; font-size: 12px; color: #666; margin: 0 0 4px; font-weight: 600; }
.field input, .field textarea, .field select {
  width: 100%; padding: 10px 12px; font: 15px/1.4 inherit; border: 1px solid #ddd; border-radius: 6px; background: #fff;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: #ff6f4d; }
.err { background: #fde6e6; color: #9b2222; border: 1px solid #f0bcbc; padding: 8px 12px; border-radius: 4px; font-size: 13px; margin: 0 0 14px; }
.ok-flash { background: #e0f5e0; color: #2a662a; border: 1px solid #b9ddb9; padding: 8px 12px; border-radius: 4px; font-size: 13px; margin: 0 0 14px; }
.submit { width: 100%; background: #ff6f4d; color: #fff; border: none; border-radius: 6px; padding: 11px 16px; font: 600 15px/1.2 inherit; cursor: pointer; }
.submit:hover { background: #e85a3a; }

/* ─── Cabinet layout ─── */
.cab-shell { max-width: 1100px; margin: 0 auto; padding: 20px; }
.cab-shell h1 { margin: 0 0 4px; font-size: 22px; }
.cab-shell .sub { color: #888; font-size: 13px; margin: 0 0 18px; }
.cab-nav { display: flex; gap: 4px; align-items: center; margin: 0 0 22px; padding: 0 0 12px; border-bottom: 1px solid #e5e5e5; flex-wrap: wrap; }
.cab-nav__link { padding: 7px 14px; border-radius: 4px; color: #444; text-decoration: none; font-size: 14px; font-weight: 500; }
.cab-nav__link:hover { color: #ff6f4d; }
.cab-nav__link--active { background: #ff6f4d; color: #fff; }
.cab-nav__link--active:hover { color: #fff; }
.cab-nav__logout { margin-left: auto; padding: 7px 14px; color: #888; text-decoration: none; font-size: 13px; }
.cab-nav__logout:hover { color: #c0392b; }

/* ─── Cabinet tables / cards ─── */
.cab-toolbar { display: flex; gap: 8px; align-items: center; margin: 0 0 18px; flex-wrap: wrap; }
.btn { display: inline-block; padding: 8px 14px; background: #fff; border: 1px solid #ddd; border-radius: 4px; color: #333; text-decoration: none; font-size: 14px; cursor: pointer; font-family: inherit; }
.btn:hover { border-color: #ff6f4d; color: #ff6f4d; }
.btn-primary { background: #ff6f4d; border-color: #ff6f4d; color: #fff; }
.btn-primary:hover { background: #e85a3a; color: #fff; border-color: #e85a3a; }
.btn-danger:hover { border-color: #c0392b; color: #c0392b; }
.cab-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 6px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
.cab-table th { text-align: left; padding: 10px 12px; background: #fafafa; border-bottom: 1px solid #e8e8e8; font-weight: 600; font-size: 12px; color: #666; text-transform: uppercase; letter-spacing: 0.04em; }
.cab-table td { padding: 12px; border-bottom: 1px solid #f0f0f0; vertical-align: top; font-size: 13px; }
.cab-table tr:last-child td { border-bottom: none; }
.cab-empty { padding: 40px; text-align: center; color: #888; background: #fff; border-radius: 6px; }
.status-pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.status-published, .status-active { background: #e0f5e0; color: #2a662a; }
.status-draft, .status-disabled { background: #f0f0f0; color: #666; }

/* ─── Profile form ─── */
.profile-form { background: #fff; padding: 22px; border-radius: 6px; box-shadow: 0 1px 3px rgba(0,0,0,0.06); max-width: 720px; }
.profile-form h2 { margin: 0 0 16px; font-size: 18px; padding: 0 0 8px; border-bottom: 1px solid #eee; }
.profile-form h2:not(:first-child) { margin-top: 28px; }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .field--row { grid-template-columns: 1fr; } }
.field .hint { font-size: 12px; color: #999; margin: 4px 0 0; }
.field input[readonly] { background: #f7f7f7; color: #777; }
.avatar-block { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.avatar-preview { width: 96px; height: 96px; border-radius: 50%; background: #ccc; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 32px; font-weight: bold; overflow: hidden; }
.avatar-preview img { width: 100%; height: 100%; object-fit: cover; }

/* ─── Editor layout ─── */
.layout { display: grid; grid-template-columns: 1fr 280px; gap: 20px; }
.col-main, .col-side { background: #fff; border-radius: 6px; padding: 18px 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
.col-main .field textarea[name="content_md"] { min-height: 400px; }
@media (max-width: 900px) { .layout { grid-template-columns: 1fr; } }
.actions { display: flex; gap: 10px; align-items: center; }
