/* Admin-skisse */
.admin { display: grid; grid-template-columns: 272px minmax(0, 1fr); min-height: 100vh; background: #FFFCFB; }
.admin-side { background: var(--blush); border-right: 1px solid var(--line); padding: 28px 16px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; }
.admin-brand { display: flex; align-items: center; gap: 12px; padding: 0 12px 24px; color: var(--ink); }
.admin-brand img { width: 48px; height: 48px; border-radius: 50%; }
.admin-brand b { font-family: var(--serif); font-weight: 500; font-size: 22px; display: block; line-height: 1; }
.admin-brand small { font-size: 12px; color: var(--muted); }
.admin-nav { display: flex; flex-direction: column; gap: 4px; }
.admin-nav a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: 8px; color: var(--ink); font-size: 15px; white-space: nowrap; }
.admin-nav a[aria-current="page"] { background: var(--rose); color: var(--white); }
.admin-nav a:hover:not([aria-current]) { background: var(--white); }
.admin-side .spacer { flex-grow: 1; }
.admin-side .foot a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; font-size: 14px; }
.admin-main { padding: clamp(20px, 3vw, 36px) clamp(16px, 3.5vw, 48px); display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.admin-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.admin-top h1 { font-size: clamp(30px, 3.5vw, 40px); font-weight: 500; }
.admin-top p { color: var(--muted); font-size: 15px; }
.admin-top .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.admin-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 24px; align-items: start; }
.admin-col { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.box { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.box-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.box-head h2 { font-family: var(--sans); font-size: 18px; font-weight: 500; }
.box-head span { font-size: 13px; color: var(--muted); }
.field { height: 44px; padding: 0 12px; border: 1px solid #E3CFCB; border-radius: 8px; font: inherit; font-size: 15px; color: var(--ink); width: 100%; min-width: 0; background: var(--white); }
.field:focus { border-color: var(--rose); outline: none; box-shadow: 0 0 0 3px rgba(126,79,85,.15); }
.t-head, .t-row { display: grid; grid-template-columns: 22px minmax(0, 1fr) 120px 64px; gap: 14px; align-items: center; }
.t-head { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); padding-bottom: 8px; }
.t-row { padding: 8px 0; border-top: 1px solid #F3E6E3; }
.t-row input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--rose); }
.grip { color: #C9B5B2; }
.add { margin-top: 12px; min-height: 44px; padding: 0 16px; border-radius: 8px; border: 1px dashed var(--gold); background: transparent; font-size: 14px; color: var(--rose); }
.cat { display: flex; justify-content: space-between; align-items: center; min-height: 60px; border-bottom: 1px solid #F3E6E3; font-size: 17px; font-weight: 500; color: var(--ink); }
.cat:last-child { border-bottom: 0; }
.cat span { font-size: 13px; font-weight: 400; color: var(--muted); }
.thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.thumbs img, .upload { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.upload { border: 1px dashed var(--gold); background: var(--blush); font-size: 13px; color: var(--rose); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.lbl { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--text); }
.lbl-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--text); }
.lbl-row .field { max-width: 180px; }

.login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; background: var(--blush); }
.login form { width: 100%; max-width: 400px; background: var(--white); border-radius: 12px; box-shadow: 0 20px 60px rgba(126,79,85,.1); padding: clamp(28px, 6vw, 40px) clamp(20px, 5vw, 36px); display: flex; flex-direction: column; gap: 18px; }
.login .head { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.login .head img { width: 88px; height: 88px; border-radius: 50%; }
.login h1 { font-size: 32px; font-weight: 500; }

@media (max-width: 1100px) {
  .admin-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .admin { grid-template-columns: minmax(0, 1fr); }
  .admin-side { position: sticky; top: 0; z-index: 10; height: auto; flex-direction: row; align-items: center; padding: 10px 12px; gap: 8px; border-right: 0; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
  .admin-brand { padding: 0 8px 0 0; }
  .admin-brand span { display: none; }
  .admin-brand img { width: 40px; height: 40px; }
  .admin-nav { flex-direction: row; }
  .admin-nav a svg { display: none; }
  .admin-side .spacer, .admin-side .foot { display: none; }
}
@media (max-width: 560px) {
  .t-head { display: none; }
  .t-row { grid-template-columns: 22px minmax(0, 1fr) 96px; row-gap: 8px; }
  .t-row .vis { grid-column: 2 / 4; display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
  .admin-top .actions { width: 100%; }
  .admin-top .actions .btn { flex: 1; }
  .lbl-row { flex-direction: column; align-items: stretch; }
  .lbl-row .field { max-width: none; }
}
.vis-label { display: none; }
@media (max-width: 560px) { .vis-label { display: inline; } }
