:root {
	--sz-bg: #FBF8F5;
	--sz-card: #fff;
	--sz-line: #EEE3DC;
	--sz-ink: #1d1d1f;
	--sz-muted: #5F5A57;
	--sz-brand: #952B30;
	--sz-brand-dark: #7a1f24;
	--sz-ok: #2f7d4f;
	--sz-err: #b42318;
	--sz-radius: 12px;
	--sz-serif: "Fraunces", Georgia, "Times New Roman", serif;
	--sz-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--sz-bg); color: var(--sz-ink); font: 15px/1.5 var(--sz-sans); }
a { color: var(--sz-brand); }
h1, h2, h3 { font-family: var(--sz-serif); font-weight: 600; line-height: 1.2; margin: 0 0 .5em; }
.sz-muted { color: var(--sz-muted); }

/* Buttons */
.sz-btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; border: 1px solid transparent; border-radius: 999px; padding: .6em 1.2em; font: 600 14px/1 var(--sz-sans); cursor: pointer; text-decoration: none; background: #fff; color: var(--sz-ink); }
.sz-btn--primary { background: var(--sz-brand); color: #fff; }
.sz-btn--primary:hover { background: var(--sz-brand-dark); }
.sz-btn--ghost { border-color: var(--sz-line); }
.sz-btn--ghost:hover { border-color: var(--sz-brand); color: var(--sz-brand); }
.sz-btn--danger { color: var(--sz-err); border-color: #f1c7c3; }
.sz-btn--link { background: none; border: 0; padding: .6em .4em; color: var(--sz-muted); }
.sz-btn--block { width: 100%; }
.sz-btn[disabled] { opacity: .6; cursor: progress; }

/* Forms */
.sz-form { display: grid; gap: 14px; }
.sz-form label, .sz-label { display: grid; gap: 6px; font-weight: 500; font-size: 14px; }
.sz-form input[type=text], .sz-form input[type=email], .sz-form input[type=url], .sz-form input[type=password],
.sz-form input[type=number], .sz-form input[type=tel], .sz-form input[type=datetime-local], .sz-form input[type=search],
.sz-form select, .sz-form textarea {
	width: 100%; border: 1px solid var(--sz-line); border-radius: 10px; padding: .65em .8em; font: 15px var(--sz-sans); background: #fff; color: var(--sz-ink);
}
.sz-form textarea { min-height: 96px; resize: vertical; }
.sz-form :focus-visible, .sz-btn:focus-visible { outline: 2px solid var(--sz-brand); outline-offset: 2px; }
.sz-check { display: flex !important; align-items: center; gap: 8px; font-weight: 400 !important; }
.sz-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.sz-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.sz-help { font-size: 13px; color: var(--sz-muted); font-weight: 400; }

/* Cards / lists */
.sz-card { background: var(--sz-card); border: 1px solid var(--sz-line); border-radius: var(--sz-radius); padding: 20px; margin-bottom: 18px; }
.sz-card > h2 { font-size: 20px; }
.sz-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--sz-line); border-radius: var(--sz-radius); overflow: hidden; }
.sz-table th, .sz-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--sz-line); vertical-align: middle; }
.sz-table th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--sz-muted); background: #fdfbf9; }
.sz-table tr:last-child td { border-bottom: 0; }
.sz-table img { width: 56px; height: 40px; object-fit: cover; border-radius: 6px; }
.sz-badge { display: inline-block; border-radius: 999px; padding: .2em .7em; font-size: 12px; font-weight: 600; background: #f3ece8; color: var(--sz-muted); }
.sz-badge--ok { background: #e3f3e9; color: var(--sz-ok); }
.sz-badge--brand { background: #f6e4e5; color: var(--sz-brand); }
.sz-toolbar { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.sz-empty { text-align: center; padding: 60px 20px; color: var(--sz-muted); }
.sz-alert { border-radius: 10px; padding: 12px 14px; margin: 12px 0; }
.sz-alert--error { background: #fdecea; color: var(--sz-err); }
.sz-repeat__row { border: 1px dashed var(--sz-line); border-radius: 10px; padding: 14px; position: relative; display: grid; gap: 12px; }
.sz-repeat { display: grid; gap: 12px; }
.sz-repeat__remove { position: absolute; top: 8px; right: 8px; }
.sz-pills { display: flex; flex-wrap: wrap; gap: 8px 16px; }

/* Media */
.sz-media__list { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 8px; }
.sz-media__list img { width: 88px; height: 64px; object-fit: cover; border-radius: 8px; border: 1px solid var(--sz-line); }

/* Layout */
.sz-panel { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.sz-side { background: #fff; border-right: 1px solid var(--sz-line); display: flex; flex-direction: column; padding: 20px 14px; position: sticky; top: 0; height: 100vh; }
.sz-side__brand img { max-width: 170px; height: auto; display: block; margin: 0 6px 24px; }
.sz-nav { display: grid; gap: 2px; }
.sz-nav__item { display: block; padding: 10px 12px; border-radius: 10px; color: var(--sz-ink); text-decoration: none; font-weight: 500; }
.sz-nav__item:hover { background: var(--sz-bg); }
.sz-nav__item.is-active { background: #f6e4e5; color: var(--sz-brand); }
.sz-side__foot { margin-top: auto; display: grid; gap: 8px; font-size: 13px; padding: 0 12px; }
.sz-main { min-width: 0; }
.sz-top { display: flex; align-items: center; gap: 16px; padding: 18px 28px; border-bottom: 1px solid var(--sz-line); background: rgba(251,248,245,.9); position: sticky; top: 0; z-index: 5; backdrop-filter: blur(6px); }
.sz-top__title { font-size: 24px; margin: 0; flex: 1; }
.sz-top__user { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--sz-muted); }
.sz-content { padding: 28px; max-width: 1100px; }
.sz-burger { display: none; border: 1px solid var(--sz-line); background: #fff; border-radius: 10px; padding: 6px 10px; font-size: 18px; }

/* Toast */
.sz-toast { position: fixed; right: 20px; bottom: 20px; background: var(--sz-ink); color: #fff; padding: 12px 18px; border-radius: 10px; opacity: 0; transform: translateY(10px); transition: .25s; pointer-events: none; z-index: 100000; max-width: 360px; }
.sz-toast.is-on { opacity: 1; transform: none; }
.sz-toast.is-error { background: var(--sz-err); }

/* Login */
.sz-login-page { min-height: 100vh; display: grid; place-items: center; background: radial-gradient(1200px 600px at 80% -10%, #f6e4e5 0, transparent 60%), var(--sz-bg); }
.sz-login { width: min(400px, calc(100% - 32px)); background: #fff; border: 1px solid var(--sz-line); border-radius: 18px; padding: 36px 32px; box-shadow: 0 24px 60px -30px rgba(149,43,48,.35); display: grid; gap: 10px; }
.sz-login__logo { max-width: 190px; height: auto; margin-bottom: 8px; }
.sz-login h1 { font-size: 28px; margin: 0; }
.sz-link { font-size: 14px; text-align: center; }

@media (max-width: 860px) {
	.sz-panel { grid-template-columns: 1fr; }
	.sz-side { position: fixed; inset: 0 auto 0 0; width: 260px; z-index: 50; transform: translateX(-100%); transition: transform .25s; box-shadow: 0 0 40px rgba(0,0,0,.15); }
	.sz-side.is-open { transform: none; }
	.sz-burger { display: inline-block; }
	.sz-top { padding: 14px 16px; }
	.sz-top__user span { display: none; }
	.sz-content { padding: 16px; }
	.sz-table, .sz-table tbody, .sz-table tr, .sz-table td { display: block; width: 100%; }
	.sz-table thead { display: none; }
	.sz-table tr { border-bottom: 1px solid var(--sz-line); padding: 8px 0; }
	.sz-table td { border: 0; padding: 4px 14px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.sz-handle { cursor: grab; color: var(--sz-muted); width: 28px; user-select: none; }
.sz-blog-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.sz-tabs { display: flex; gap: 6px; margin-bottom: 18px; }
.sz-tabs a { padding: 8px 16px; border-radius: 999px; text-decoration: none; color: var(--sz-ink); border: 1px solid var(--sz-line); background: #fff; }
.sz-tabs a.is-active { background: var(--sz-brand); color: #fff; border-color: var(--sz-brand); }
.sz-form select[multiple] { min-height: 160px; }
.wp-editor-wrap { border-radius: 10px; overflow: hidden; }
@media (max-width: 1000px) { .sz-blog-grid { grid-template-columns: 1fr; } }
.sz-note { background: var(--sz-bg); border-radius: 8px; padding: 10px 12px; font-size: 14px; }
.sz-note p { margin: 0 0 4px; }
.sz-note .sz-muted { font-size: 12px; }
