:root { --black: #010101; --panel: #111; --line: #2e2e2e; --gold: #b88b47; --gold-light: #d4b991; --text: #f1e8da; --silver: #d5d5d5; --heading: 'Oswald', sans-serif; --body: 'Golos Text', sans-serif; }
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--black); color: var(--text); font-family: var(--body); font-size: 16px; line-height: 1.55; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }
[hidden] { display: none !important; }
.admin-header { display: flex; min-height: 76px; align-items: center; justify-content: space-between; padding: 16px max(24px, calc((100% - 1180px) / 2)); border-bottom: 1px solid var(--line); }
.admin-brand { font-family: var(--heading); font-size: 28px; text-transform: uppercase; }
.admin-brand span { margin-left: 10px; color: var(--gold-light); font-family: var(--body); font-size: 13px; }
.admin-back { color: var(--gold-light); }
.admin-main { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding-block: 50px 80px; }
.login-panel { max-width: 460px; margin: 70px auto; padding: 34px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); }
.eyebrow { margin-bottom: 8px; color: var(--gold-light); font-size: 13px; font-weight: 700; text-transform: uppercase; }
h1, h2, h3 { font-family: var(--heading); font-weight: 500; text-transform: uppercase; }
h1 { font-size: 52px; }
h2 { font-size: 36px; }
h3 { font-size: 26px; }
.login-panel form { display: grid; gap: 16px; margin-top: 28px; }
label { display: grid; gap: 7px; color: var(--silver); font-size: 14px; }
input, textarea, select { width: 100%; min-height: 46px; border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; background: #090909; color: var(--text); }
textarea { resize: vertical; }
input[type="file"] { margin-block: 18px; padding: 14px; }
label small { color: var(--silver); }
.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 11px; padding: 10px 20px; background: linear-gradient(90deg, #854c14, #936327); color: #fff; font-weight: 700; }
.button--outline { border-color: var(--gold); background: transparent; color: var(--gold-light); }
.button--danger { border-color: #8f4343; background: transparent; color: #efaaaa; }
.button:disabled { cursor: wait; opacity: .55; }
.admin-title { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.admin-title-actions { display: flex; gap: 12px; }
.admin-hint { max-width: 760px; margin-block: 14px 32px; color: var(--silver); }
.mcp-note { margin-bottom: 28px; border: 1px solid var(--line); border-radius: 14px; padding: 20px; background: var(--panel); }
.mcp-note h2 { margin-bottom: 10px; font-size: 26px; }
.mcp-note p { color: var(--silver); }
.mcp-note code { color: var(--gold-light); }
.mcp-note a { text-decoration: underline; text-underline-offset: 3px; }
.issues-list { display: grid; gap: 12px; }
.issue-item { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 18px; border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; background: var(--panel); }
.issue-item img, .issue-thumb-placeholder { width: 64px; height: 88px; border-radius: 8px; object-fit: cover; }
.issue-thumb-placeholder { display: grid; place-items: center; border: 1px dashed var(--gold); color: var(--gold-light); font-family: var(--heading); }
.issue-item h3 { font-size: 24px; }
.issue-item p { color: var(--silver); font-size: 14px; }
.issue-status { display: inline-block; margin-left: 10px; border-radius: 999px; padding: 2px 10px; background: #332b19; color: var(--gold-light); font-size: 12px; }
.issue-item-actions { display: flex; gap: 8px; }
.editor { margin-top: 36px; border: 1px solid var(--gold); border-radius: 18px; padding: 28px; background: var(--panel); }
.editor-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.icon-button { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--text); font-size: 28px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.form-grid .wide { grid-column: 1 / -1; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.status { min-height: 25px; margin-top: 12px; color: var(--gold-light); }
.error { color: #efaaaa; }
.upload-section { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 26px; }
.upload-section > p { margin-top: 8px; color: var(--silver); }
.progress { height: 12px; margin-top: 18px; overflow: hidden; border-radius: 999px; background: var(--line); }
.progress div { width: 0; height: 100%; background: var(--gold); transition: width .15s; }
@media (max-width: 700px) {
  .admin-main { width: calc(100% - 32px); padding-block: 30px 60px; }
  .admin-title, .admin-title-actions { align-items: stretch; flex-direction: column; }
  .issue-item { grid-template-columns: 52px 1fr; padding: 12px; }
  .issue-item img, .issue-thumb-placeholder { width: 52px; height: 72px; }
  .issue-item-actions { grid-column: 1 / -1; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .wide { grid-column: auto; }
  .editor { padding: 18px; }
  h1 { font-size: 43px; }
}
