body.admin { background: #f6f3ea; font-size: 1.15rem; }
.admin-top {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 16px;
  background: #fff; border-bottom: 4px solid var(--curtain); position: sticky; top: 0; z-index: 5;
}
.admin-top .home { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; color: var(--green-deep); text-decoration: none; margin-right: auto; }
.admin-top .home img { width: 80px; height: 50px; }
.admin-top form { margin: 0; }
.admin-wrap { max-width: 900px; margin: 0 auto; padding: 20px 16px 80px; }
.box { background: #fff; border-radius: var(--r); box-shadow: var(--shadow); padding: 24px; }
.box h1 { margin-top: 0; }
.back { font-weight: 700; }

.btn.big { font-size: 1.2rem; padding: 14px 28px; }
.btn.ghost { background: #fff; color: var(--green-deep); box-shadow: inset 0 0 0 2px #cfe9d7; }
.btn.ghost:hover { background: #eef8f1; color: var(--green-deep); }
.btn.danger { background: #fff; color: var(--curtain-dark); box-shadow: inset 0 0 0 2px #f1cbc4; }
.btn.danger:hover { background: #fdecea; color: var(--curtain-dark); }
.btn[disabled] { opacity: .35; cursor: default; }

.ok, .err { padding: 14px 18px; border-radius: 14px; font-weight: 800; }
.ok { background: #dff5e6; color: #0b4a24; border: 2px solid #9fdcb4; }
.err { background: #fdecea; color: #8a2214; }

.tabs { display: flex; gap: 6px; margin-bottom: -4px; flex-wrap: wrap; }
.tabs a { padding: 12px 22px; border-radius: 16px 16px 0 0; background: #e9e4d4; color: var(--ink); font-weight: 800; text-decoration: none; }
.tabs a[aria-current] { background: #fff; color: var(--green-deep); }

.row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid #efe9d8; flex-wrap: wrap; }
.row:first-of-type { border-top: 0; }
.hint { color: var(--muted); margin-top: -4px; }
.row-main { flex: 1 1 260px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.row-main .badge { align-self: flex-start; margin: 0 0 4px; font-size: .85rem; }
.row-main small { color: var(--muted); }
.row .thumb { width: 72px; height: 54px; object-fit: cover; border-radius: 10px; }
.row-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.row-btns form { margin: 0; }
.row-btns .btn { padding: 8px 14px; }

/* login */
.login { max-width: 420px; margin: 8vh auto 0; text-align: center; }
.login h1 { font-size: 1.5rem; }

/* editor */
.editor-form label, .field { display: block; margin: 0 0 22px; font-weight: 800; color: var(--green-deep); }
.editor-form label small { font-weight: 400; color: var(--muted); }
.editor-form input[type=text], .editor-form input[type=date], .login input {
  display: block; width: 100%; margin-top: 6px; font: inherit; font-weight: 400; color: var(--ink);
  padding: 12px 14px; border: 2px solid #ddd6c1; border-radius: 12px; background: #fffef9;
}
.editor-form input[type=date] { max-width: 260px; }
.login input { margin-bottom: 16px; }
input:focus, .rte:focus { outline: 3px solid var(--sun); border-color: var(--green); }
.lbl { display: block; margin-bottom: 6px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px; background: #f3efe2; border: 2px solid #ddd6c1; border-bottom: 0; border-radius: 12px 12px 0 0; }
.toolbar button { font: inherit; font-size: 1rem; font-weight: 700; padding: 8px 12px; border-radius: 10px; border: 1px solid #d6cfb8; background: #fff; cursor: pointer; color: var(--ink); }
.toolbar button:hover { background: var(--sun-soft); }
.rte {
  min-height: 300px; padding: 16px 18px; border: 2px solid #ddd6c1; border-radius: 0 0 12px 12px;
  background: #fff; font-weight: 400; color: var(--ink); font-size: 1.15rem; line-height: 1.6;
}
.photo-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin-bottom: 12px; }
.pitem { background: #f6f3ea; border-radius: 12px; padding: 6px; }
.pitem img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; display: block; }
.pbtns { display: flex; gap: 4px; margin-top: 6px; }
.pbtns button { flex: 1; font: inherit; font-size: .9rem; padding: 6px 4px; border-radius: 8px; border: 1px solid #d6cfb8; background: #fff; cursor: pointer; }
.pbtns .pdel { flex: 2; color: var(--curtain-dark); }
.pbtns button[disabled] { opacity: .3; }
.add-photos { display: inline-block; cursor: pointer; color: #fff !important; margin: 0 !important; }
.upload-status { font-weight: 400; color: var(--muted); min-height: 1.4em; }
.actions { position: sticky; bottom: 0; background: linear-gradient(transparent, #fff 30%); padding: 18px 0 4px; }
.actions .save { width: 100%; font-size: 1.35rem; padding: 16px; }
.pw-form h2 { margin-top: 0; }
.pw-form label { max-width: 420px; }
.pw-form .btn { margin-top: 4px; }

/* English version box + list markers */
.en-box { border: 2px dashed #b9dcc6; border-radius: 16px; padding: 6px 18px 4px; margin: 0 0 22px; background: #f8fcf9; }
.en-box legend { font-weight: 800; color: var(--green-deep); padding: 0 8px; }
.en-box .hint { margin-top: 0; }
.en { display: inline-block; font-size: .78rem; font-weight: 800; padding: 1px 7px; border-radius: 99px; margin-left: 6px; vertical-align: 1px; }
.ok-en { background: #dff5e6; color: #0b4a24; }
.no-en { background: #f1ede2; color: var(--muted); }
.translate { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 16px; font-weight: 400; }
.translate-status { color: var(--muted); font-size: .95rem; flex: 1 1 260px; }

/* hidden items + trash */
.row.is-hidden .row-main, .row.is-hidden .thumb { opacity: .5; }
.hid-badge { display: inline-block; font-size: .78rem; font-weight: 800; padding: 1px 8px; border-radius: 99px; background: #e9e4d4; color: var(--ink); margin-right: 4px; }
.editor-form label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 700; padding: 12px 14px; background: #f6f3ea; border-radius: 12px; }
.editor-form label.check input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; }
.editor-form label.check small { display: block; font-weight: 400; color: var(--muted); }
