:root {
	--black: #111111;
	--white: #ffffff;
	--gray: #707070;
	--gray-light: #dddddd;
	--gray-bg: #f4f4f4;
	--yellow: #eea426;
	--blue: #147ecc;
	--blue-light: #2699f0;
	--blue-deep: #0b64a4;
	--shadow: 0 2px 10px 0 #dddddd;
}
* { box-sizing: border-box; }
html, body {
	margin: 0;
	min-height: 100%;
	font-family: Roboto, system-ui, sans-serif;
	color: var(--black);
	background: var(--gray-bg);
}
body { display: flex; flex-direction: column; min-height: 100vh; }
a { color: var(--black); text-decoration: none; transition: color .15s, background .15s, border-color .15s; }
a:hover { color: var(--yellow); }
img { max-width: 100%; height: auto; }

.site-header {
	background: var(--white);
	box-shadow: var(--shadow);
	position: sticky;
	top: 0;
	z-index: 20;
}
.site-header .inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 12px 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.25rem;
}
.brand {
	display: flex;
	align-items: center;
	gap: 12px;
	color: var(--black);
	flex-shrink: 0;
}
.brand:hover { color: var(--black); }
.brand img.mark {
	height: 52px;
	width: auto;
	display: block;
}
.brand .txt { display: flex; flex-direction: column; line-height: 1.15; }
.brand .name { font-weight: 700; font-size: 18px; letter-spacing: .02em; }
.brand .sub { font-size: 12px; font-weight: 500; color: var(--yellow); text-transform: uppercase; letter-spacing: .08em; }

.site-header nav {
	display: flex;
	align-items: center;
	gap: 4px;
	flex-wrap: wrap;
	justify-content: flex-end;
}
.site-header nav a {
	font-size: 15px;
	font-weight: 500;
	padding: 8px 12px;
	color: var(--black);
}
.site-header nav a:hover,
.site-header nav a.is-on { color: var(--yellow); }
.site-header nav a.out { color: var(--gray); font-weight: 400; }

.btn, button[type="submit"] {
	display: inline-block;
	border: 1px solid var(--blue);
	border-radius: 0;
	padding: 9px 18px;
	background: var(--blue);
	color: var(--white) !important;
	cursor: pointer;
	font: 500 15px/1.2 Roboto, sans-serif;
}
.btn:hover, button[type="submit"]:hover { background: var(--blue-light); border-color: var(--blue-light); }
.btn-yellow {
	background: var(--yellow);
	border-color: var(--yellow);
	color: var(--white) !important;
}
.btn-yellow:hover { background: #d89012; border-color: #d89012; }
.btn-ghost {
	background: transparent;
	border: 1px solid var(--black);
	color: var(--black) !important;
}
.btn-ghost:hover { background: var(--black); color: var(--white) !important; }

.wrap { flex: 1; width: 100%; max-width: 1200px; margin: 0 auto; padding: 28px 20px 48px; }
.site-footer {
	background: var(--black);
	color: #bbb;
	font-size: 13px;
	padding: 18px 20px 22px;
	text-align: center;
}
.site-footer a { color: var(--yellow); }
.powered {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	margin-top: 12px;
	color: #bbb;
	text-decoration: none;
	letter-spacing: .04em;
	font-size: 12px;
}
.powered:hover { color: #fff; }
.powered img {
	height: 36px;
	width: auto;
	display: block;
	background: #fff;
	padding: 8px 12px;
}

.card {
	background: var(--white);
	border: 1px solid var(--gray-light);
	box-shadow: var(--shadow);
	padding: 28px;
}
.login-page { min-height: 100vh; display: flex; flex-direction: column; background: var(--white); }
.login-page .wrap { display: flex; align-items: center; justify-content: center; }
.login {
	width: 100%;
	max-width: 420px;
	text-align: center;
	padding: 40px 36px 36px;
}
.login .logo-full { height: 110px; width: auto; margin: 0 auto 8px; display: block; }
.login h1 { font-size: 22px; font-weight: 500; margin: 8px 0 4px; }
.login .kicker { color: var(--yellow); font-weight: 500; text-transform: uppercase; letter-spacing: .1em; font-size: 12px; margin: 0 0 24px; }
.login form { text-align: left; }
.login .actions { justify-content: stretch; }
.login button { width: 100%; }

h1 { font-size: 28px; font-weight: 500; margin: 0 0 1rem; }
h2 { font-size: 18px; font-weight: 500; margin: 0 0 .75rem; }
label { display: block; font-size: 13px; color: var(--gray); margin: .85rem 0 .3rem; }
input, select, textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--gray-light);
	border-radius: 0;
	font: inherit;
	background: var(--white);
	color: var(--black);
}
input:focus, select:focus, textarea:focus {
	outline: none;
	border-color: var(--blue);
}
textarea { min-height: 140px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.err { color: #c0392b; margin: 0 0 1rem; }
.muted { color: var(--gray); font-size: .92rem; }
.ok { color: var(--blue-deep); margin: 0 0 1rem; }
.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar input[type="search"] { flex: 1; min-width: 180px; width: auto; }
.view-switch {
	display: flex;
	margin-left: auto;
	border: 1px solid var(--gray-light);
	background: #fff;
}
.view-switch a {
	padding: 8px 14px;
	font-size: 14px;
	font-weight: 500;
	color: var(--gray);
}
.view-switch a:hover { color: var(--blue); }
.view-switch a.is-on { color: var(--black); background: var(--gray-bg); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }

.price-table {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
	box-shadow: var(--shadow);
}
.price-table th, .price-table td {
	border-bottom: 1px solid var(--gray-light);
	padding: 8px 12px;
	text-align: left;
	vertical-align: middle;
}
.price-table th {
	font-size: 12px;
	font-weight: 500;
	color: var(--gray);
	text-transform: uppercase;
	letter-spacing: .04em;
	background: #fff;
	position: sticky;
	top: 76px;
	z-index: 2;
}
.price-table .col-pic { width: 88px; padding-left: 12px; }
.price-table .col-pic a { display: block; }
.price-table .col-pic img,
.price-table .col-pic .ph {
	width: 72px; height: 52px; object-fit: cover; display: block; background: var(--gray-bg);
}
.price-table .col-pic .ph {
	display: flex; align-items: center; justify-content: center;
	font-size: 11px; color: var(--gray);
}
.price-table .col-name a { font-weight: 500; }
.price-table .col-name .muted { margin-top: 2px; font-size: 13px; }
.price-table .col-price { width: 220px; }
.price-table .js-price { font-weight: 700; color: var(--yellow); }
.price-table .js-price.is-busy { opacity: .6; }
.price-table .js-price.is-ok { border-color: var(--blue); }
.price-table .js-price.is-err { border-color: #c0392b; }
.tile {
	background: var(--white);
	border: 1px solid var(--gray-light);
	box-shadow: var(--shadow);
	color: inherit;
	display: block;
	overflow: hidden;
}
.tile[hidden] { display: none; }
.price-table tr[hidden] { display: none; }
.tile:hover { color: inherit; border-color: var(--blue); }
.tile-pic { position: relative; }
.tile img, .tile .ph { width: 100%; height: 180px; object-fit: cover; background: var(--gray-bg); display: block; }
.tile .ph { display: flex; align-items: center; justify-content: center; color: var(--gray); font-size: 13px; }
.tile .fill {
	position: absolute; top: 8px; right: 8px;
	font-size: 12px; font-weight: 700; letter-spacing: .02em;
	padding: 3px 7px; color: #fff; background: rgba(17,17,17,.72);
}
.tile .fill.is-ok { background: var(--blue); }
.tile .fill.is-full { background: var(--yellow); color: var(--black); }
.tile .counts {
	position: absolute; left: 8px; bottom: 8px;
	display: flex; gap: 6px;
}
.tile .counts span {
	display: flex; align-items: center; gap: 4px;
	background: rgba(17,17,17,.72); color: #fff;
	font-size: 12px; font-weight: 500; padding: 3px 7px;
}
.tile .counts svg { display: block; }
.tile .meta { padding: 14px 16px 16px; }
.tile h2 { font-size: 16px; margin: 4px 0 6px; }
.badge {
	display: inline-block;
	font-size: 11px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--blue);
}
.badge.st { color: var(--gray); }
.price { color: var(--yellow); font-weight: 700; font-size: 15px; }

.sec { margin: 1.75rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--gray-light); }
.files { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-top: 14px; }
.file { border: 1px solid var(--gray-light); padding: 8px; font-size: .8rem; background: var(--gray-bg); cursor: grab; }
.file.dragging { opacity: .4; }
.file img, .file video { width: 100%; height: 120px; object-fit: cover; background: #eee; }
.file img { pointer-events: none; }
.file .orig { font-size: 12px; font-weight: 500; margin: 6px 0 2px; word-break: break-all; }
.file code { display: block; word-break: break-all; margin: 0 0 6px; font-size: .7rem; color: var(--gray); }
.file-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.file-acts button {
	background: #fff; border: 1px solid var(--blue); color: var(--blue);
	padding: 4px 8px; font: 500 12px Roboto, sans-serif; cursor: pointer;
}
.file-tools { margin: 8px 0 0; }
.file-tools .btn { padding: 6px 12px; font-size: 13px; }
.actions { display: flex; gap: 10px; margin-top: 1.4rem; align-items: center; }
.empty {
	background: var(--white);
	border: 1px dashed var(--gray-light);
	padding: 48px 24px;
	text-align: center;
	color: var(--gray);
}

@media (max-width: 760px) {
	.row, .row3 { grid-template-columns: 1fr; }
	.site-header .inner { flex-direction: column; align-items: flex-start; }
	.brand img.mark { height: 42px; }
	.wrap { padding: 20px 14px 36px; }
	h1 { font-size: 22px; }
}

.lang-tabs { display: flex; gap: 0; margin: 8px 0 12px; border-bottom: 2px solid var(--gray-light); }
.lang-tab {
	background: transparent; border: 0; border-bottom: 2px solid transparent; margin-bottom: -2px;
	padding: 8px 14px; color: var(--gray); font: 500 14px Roboto, sans-serif; cursor: pointer;
}
.lang-tab.is-on { color: var(--blue); border-bottom-color: var(--blue); }
.lang-pane { display: none; }
.lang-pane.is-on { display: block; }
textarea.short { min-height: 72px; }
.tox-tinymce { border: 1px solid var(--gray-light) !important; border-radius: 0 !important; margin: 6px 0 12px; }

.drop {
	border: 2px dashed var(--gray-light);
	background: var(--gray-bg);
	padding: 22px 16px;
	text-align: center;
	color: var(--gray);
	cursor: pointer;
	margin: 8px 0 14px;
}
.drop span { color: var(--blue); text-decoration: underline; }
.drop.over { border-color: var(--yellow); background: #fff8ec; }
.drop.busy { opacity: .6; }
.drop.err { border-color: #c0392b; }
.drop input[type="file"] { display: none; }

.album {
	border: 1px solid var(--gray-light);
	padding: 16px;
	margin: 0 0 16px;
	background: #fafafa;
}
.album-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.album-head .del { margin-left: auto; font-size: 13px; color: var(--gray); }
.album-new { background: #fff; }
