/* AsiaTop80 front-end editor (/editor/) — uses the theme's colours when present */
.at80-ed { --ed-ink: var(--ink, #15120f); --ed-muted: var(--muted, #6d655b); --ed-line: var(--line, rgba(21,18,15,.12)); --ed-card: var(--card, #fff); --ed-red: var(--red, #d7261e);
	padding: 36px 0 96px; }
.at80-ed h1 { font-family: var(--serif, Georgia, serif); font-weight: 500; font-size: clamp(30px, 4vw, 44px); line-height: 1.1; margin: 8px 0 6px; }
.at80-ed h2 { font-size: 15px; font-weight: 600; margin: 0 0 14px; }
.ed-bar { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; font-size: 14px; color: var(--ed-muted); padding-bottom: 14px; margin-bottom: 26px; border-bottom: 1px solid var(--ed-line); }
.ed-bar a { color: var(--ed-ink); }
.ed-bar-home { font-weight: 600; text-decoration: none; margin-right: auto; }
.ed-head { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; justify-content: space-between; margin-bottom: 18px; }
.ed-back { font-size: 14px; color: var(--ed-muted); text-decoration: none; }
.ed-msg { padding: 12px 16px; border-radius: 10px; margin: 0 0 16px; font-size: 15px; }
.ed-ok { background: #e7f5ea; color: #145c25; }
.ed-warn { background: #fdf3df; color: #6b4b00; }
.ed-err { background: #fbe6e5; color: #8a1a12; }
.ed-small, .ed-hint { font-size: 13px; color: var(--ed-muted); font-weight: 400; }
.ed-empty { color: var(--ed-muted); padding: 24px 0; }

/* login */
.ed-login { max-width: 420px; margin: 40px auto; }
.ed-lead { color: var(--ed-muted); margin: 0 0 22px; }

/* forms */
.ed-form label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.ed-form input[type=text], .ed-form input[type=password], .ed-form input[type=search], .ed-form textarea, .ed-form select,
.ed-filter input, .ed-filter select {
	display: block; width: 100%; margin-top: 6px; padding: 11px 14px; font: 400 15px/1.4 var(--sans, system-ui, sans-serif);
	color: var(--ed-ink); background: #fff; border: 1px solid var(--ed-line); border-radius: 10px; }
.ed-form textarea { resize: vertical; }
.ed-form input:focus, .ed-form textarea:focus, .ed-form select:focus, .ed-filter input:focus, .ed-filter select:focus { outline: 2px solid var(--ed-ink); outline-offset: -1px; }
.ed-form .ed-check { display: flex; gap: 8px; align-items: center; font-weight: 400; }
.ed-form .ed-check input { width: auto; margin: 0; }
.ed-form .btn { border: 0; cursor: pointer; font-size: 15px; }
.ed-new { margin-top: 8px !important; font-size: 14px !important; padding: 8px 12px !important; }

.ed-card { background: var(--ed-card); border: 1px solid var(--ed-line); border-radius: 14px; padding: 22px 24px 10px; margin-bottom: 18px; }
.ed-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 18px; }
.ed-grid > div { margin-bottom: 14px; }
.ed-grid > div > label { margin-bottom: 0; }
.ed-grid-2 { grid-template-columns: 1fr 1fr; }
.ed-wide { grid-column: 1 / -1; }
.ed-submit { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.ed-submit .btn-line { background: transparent; border: 1px solid var(--ed-ink); }
.ed-delete { margin-top: 34px; }
.ed-link-danger { background: none; border: 0; padding: 0; color: #a8190f; text-decoration: underline; cursor: pointer; font: inherit; font-size: 14px; }

/* photos */
.ed-photos { display: grid; grid-template-columns: 280px 1fr; gap: 26px; padding-bottom: 12px; }
.ed-label { font-size: 14px; font-weight: 600; margin: 0 0 8px; }
.ed-main-img { aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: #efe7da; display: grid; place-items: center; color: var(--ed-muted); font-size: 14px; margin-bottom: 10px; }
.ed-main-img img { width: 100%; height: 100%; object-fit: cover; }
.ed-file { display: inline-block !important; position: relative; margin: 0 0 10px !important; }
.ed-file span { display: inline-block; padding: 9px 16px; border: 1px dashed var(--ed-ink); border-radius: 999px; font-size: 14px; cursor: pointer; }
.ed-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.ed-file:focus-within span { outline: 2px solid var(--ed-red); }
.ed-gallery { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.ed-gallery li { width: 104px; }
.ed-gallery img { width: 104px; height: 78px; object-fit: cover; border-radius: 8px; }
.ed-gallery label { font-size: 12px !important; font-weight: 400 !important; margin: 4px 0 0 !important; display: flex !important; gap: 4px; align-items: center; }
.ed-gallery label input { width: auto; margin: 0; }
.ed-gallery li.is-removed img { opacity: .3; }

/* dashboard */
.ed-years { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; }
.ed-years a { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--ed-line); text-decoration: none; font-size: 14px; }
.ed-years a[aria-current] { background: var(--ed-ink); color: #fff; border-color: var(--ed-ink); }
.ed-meters { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-bottom: 14px; }
.ed-meter { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 14px 16px; background: var(--ed-card); border: 1px solid var(--ed-line); border-radius: 12px; text-decoration: none; }
.ed-meter[aria-current] { border-color: var(--ed-ink); }
.ed-meter-label { font-weight: 600; }
.ed-meter-n { font-variant-numeric: tabular-nums; color: var(--ed-muted); }
.ed-meter-bar { grid-column: 1 / -1; height: 6px; background: #e6dfd3; border-radius: 3px; overflow: hidden; }
.ed-meter-bar i { display: block; height: 100%; background: var(--ed-red); }
.ed-meter.full .ed-meter-bar i { background: #1f8a3b; }
.ed-meter.full .ed-meter-n { color: #1f8a3b; font-weight: 600; }
.ed-meter.over .ed-meter-n { color: #a8190f; font-weight: 600; }
.ed-meter-draft { grid-column: 1 / -1; font-size: 12px; color: var(--ed-muted); margin-top: -2px; }
.ed-live { font-size: 14px; margin: 0 0 22px; padding: 12px 16px; background: var(--ed-card); border: 1px solid var(--ed-line); border-radius: 12px; }
.ed-live p { margin: 0; }
.ed-live .at80-live { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.ed-live select { padding: 6px 10px; border: 1px solid var(--ed-line); border-radius: 8px; font: inherit; background: #fff; }
.ed-live .button { padding: 6px 14px; border-radius: 8px; border: 1px solid var(--ed-ink); background: var(--ed-ink); color: #fff; font: inherit; cursor: pointer; }
.ed-live .at80-live-note { color: var(--ed-muted); }
.ed-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.ed-filter select { width: auto; margin: 0; }
.ed-filter input { flex: 1; min-width: 200px; width: auto; margin: 0; }
.ed-filter .btn { background: transparent; border: 1px solid var(--ed-ink); cursor: pointer; }
.ed-table { width: 100%; border-collapse: collapse; background: var(--ed-card); border: 1px solid var(--ed-line); border-radius: 12px; overflow: hidden; font-size: 15px; }
.ed-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ed-muted); font-weight: 600; padding: 12px 14px; border-bottom: 1px solid var(--ed-line); }
.ed-table td { padding: 10px 14px; border-bottom: 1px solid var(--ed-line); vertical-align: middle; }
.ed-table tr:last-child td { border-bottom: 0; }
.ed-thumb img, .ed-thumb span { width: 64px; height: 48px; object-fit: cover; border-radius: 6px; background: #efe7da; display: block; }
.ed-name { font-weight: 600; text-decoration: none; }
.ed-missing { display: block; font-size: 12px; color: #a8190f; }
.ed-status { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: #e7f5ea; color: #145c25; }
.ed-status.ed-draft, .ed-status.ed-pending { background: #f0ece5; color: var(--ed-muted); }
.ed-actions { white-space: nowrap; font-size: 14px; }

@media (max-width: 760px) {
	.ed-grid, .ed-grid-2, .ed-photos { grid-template-columns: 1fr; }
	.ed-table thead { display: none; }
	.ed-table tr { display: grid; grid-template-columns: 72px 1fr; gap: 0 12px; padding: 10px 12px; border-bottom: 1px solid var(--ed-line); }
	.ed-table td { padding: 2px 0; border: 0; }
	.ed-table td.ed-thumb { grid-row: span 5; }
}

/* years */
.ed-yearbar { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; justify-content: space-between; margin: 0 0 18px; }
.ed-yearbar .ed-years { margin: 0; }
.ed-years a small { display: inline-block; margin-left: 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; opacity: .7; }
.ed-newyear { display: flex; gap: 8px; align-items: center; }
.ed-newyear input { width: 92px; padding: 8px 12px; border: 1px solid var(--ed-line); border-radius: 999px; font: 400 14px/1.2 var(--sans, system-ui, sans-serif); background: #fff; }
.ed-newyear .btn { padding: 8px 16px; font-size: 14px; background: transparent; border: 1px solid var(--ed-ink); cursor: pointer; }
