:root {
	--msb-bg: #ebeef2;
	--msb-surface: #ffffff;
	--msb-surface-muted: #f4f5f7;
	--msb-border: #ced3dc;
	--msb-text: #232933;
	--msb-text-muted: #5c6574;
	--msb-link: #404b5f;
	--msb-link-hover: #1f2631;
	--msb-accent: #717b8b;
	--msb-danger: #a03b47;
	--msb-ok: #2f6f59;
}

body {
	margin-top: 0;
	margin-bottom: 40px;
	margin-left: auto;
	margin-right: auto;
	max-width: 1000px;
	line-height: 1.6;
	font-size: 18px;
	color: var(--msb-text);
	/*padding: 0 10px;*/
	padding: 0;
	font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
	background: linear-gradient(180deg, #f0f2f5 0%, #e7eaee 100%);
}

/* Metasiberia root page (synced from Figma stub layer "metasiberia"). */
.msb-root-hero {
	/* Figma had ~120px offset; keep it responsive for mobile. */
	padding: clamp(24px, 8vw, 120px) clamp(24px, 8vw, 120px) 12px;
	text-align: center;
}
.msb-root-hero-emblem {
	display: block;
	margin: 0 auto 16px;
	width: clamp(88px, 9vw, 132px);
	height: auto;
}
.msb-root-hero-title {
	display: inline-flex;
	align-items: baseline;
	gap: 0;
	font-size: clamp(40px, 8vw, 74px);
	line-height: 1;
	color: #000;
}
.msb-root-hero-title-light {
	font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: 0.9em;
	font-weight: 300;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.msb-root-hero-title-bold {
	font-family: "Consolas", "Courier New", monospace;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}
.msb-root-hero-title-mark {
	font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: 0.72em;
	font-weight: 300;
	line-height: 1;
	margin-left: 0.03em;
	transform: translateY(-0.48em);
}
.msb-root-hero-pretitle {
	margin-bottom: 8px;
	font-size: clamp(14px, 1.9vw, 22px);
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: none;
	color: #5a6577;
}
.msb-root-hero-subtitle {
	margin-top: 8px;
	font-size: clamp(14px, 2vw, 22px);
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #4a5568;
}
.msb-root-hero-links {
	padding-left: 0;
	margin-top: 6px;
	font-size: 14px;
	text-align: center;
}
.msb-root-hero-links a {
	color: var(--msb-link);
	text-decoration: none;
}
.msb-root-hero-links a:hover {
	text-decoration: underline;
	color: var(--msb-link-hover);
}
.msb-root-hero-links a.msb-root-beta-download {
	font-size: 15px;
	font-weight: 500;
	color: var(--msb-accent);
	text-decoration: none;
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
}
.msb-root-hero-links a.msb-root-beta-download:hover {
	text-decoration: underline;
	color: var(--msb-accent);
}
.msb-root-photo-filmstrip-wrap {
	margin-top: 8px;
	margin-left: calc(50% - 50vw + 10px);
	margin-right: calc(50% - 50vw + 10px);
	width: calc(100vw - 20px);
	max-width: calc(100vw - 20px);
	box-sizing: border-box;
	overflow-x: auto;
	overflow-y: hidden;
	background: linear-gradient(180deg, rgba(17, 23, 34, 0.14) 0%, rgba(17, 23, 34, 0.08) 100%);
	scrollbar-color: #b6c4d8 #e6ecf4;
	scrollbar-width: auto;
}
.msb-root-photo-filmstrip-wrap::-webkit-scrollbar {
	height: 5px;
}
.msb-root-photo-filmstrip-wrap::-webkit-scrollbar-track {
	background: #e6ecf4;
}
.msb-root-photo-filmstrip-wrap::-webkit-scrollbar-thumb {
	background: #b6c4d8;
	border-radius: 999px;
}
.msb-root-photo-filmstrip-wrap::-webkit-scrollbar-thumb:hover {
	background: #9fb0c9;
}
.msb-root-photo-filmstrip {
	display: flex;
	flex-direction: row;
	align-items: stretch;
	min-height: 132px;
}
.msb-root-photo-filmstrip-item {
	flex: 0 0 auto;
	width: 176px;
	text-decoration: none;
}
.msb-root-photo-filmstrip-img {
	width: 100%;
	height: 132px;
	display: block;
	object-fit: cover;
	opacity: 0.96;
	box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.18);
	transition: opacity 120ms ease-in-out, filter 120ms ease-in-out;
}
.msb-root-photo-filmstrip-item:hover .msb-root-photo-filmstrip-img {
	opacity: 1;
	filter: saturate(1.1) brightness(1.04);
}
@media (max-width: 900px) {
	.msb-root-photo-filmstrip-item {
		width: 148px;
	}
	.msb-root-photo-filmstrip-img {
		height: 110px;
	}
}

.root-body {
	/*margin-top: 46px;*/
	margin-top: 20px;
	margin-left: auto;
	margin-right: auto;
	width: 96vw;
	/*width: 100%;*/
	max-width: 3000px; /*override max-width: 1000px in body*/
	/*max-width: 100%;*/
	overflow-x: hidden; /*prevents horizontal scroll bar by allowing the body to be under the vertical scroll bar*/
}

.root-rest-of-body {
	max-width: 1000px;
	width: 75vw;
	margin-left: auto;
	margin-right: auto;
}

/* This is the body class for all pages apart from the root page. */
.standard-body 
{
	margin-top: 60px;
	width: 75vw;
}
h1,h2,h3
{
	line-height: 1.2;
}
h2 {
    margin-top: 45px;
}
table
{
	width: 100%;
}
td
{
	vertical-align: top;
}
a
{
	color: var(--msb-link);
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
}
a:hover
{
	color: var(--msb-link-hover);
}
.main
{
	min-height: 400px;
}
.caption
{
	font-size: 0.8em;
	color: var(--msb-text-muted);
	margin-bottom: 20px;
}
#login
{
	text-align: right;
	float: right;
	margin-top: -8px;
	/* Reserve space for the fixed EN/RU toggle so long usernames do not overlap it. */
	margin-right: 76px;
	max-width: calc(100vw - 120px);
}
.map-info {
	padding: 6px 8px;
	background: white;
	background: rgba(255,255,255,0.8);
	box-shadow: 0 0 15px rgba(0,0,0,0.15);
	border-radius: 5px;
}

@media (max-width: 700px) {
	#login {
		margin-top: 0;
		margin-right: 76px;
		max-width: calc(100% - 88px);
	}
}


.form-field {
	margin-bottom: 1em;
}

.msg {
	background-color: #f3f6fa;
	border: 1px solid #ccd4df;
	border-radius: 8px;
	padding: 10px 12px;
	margin: 10px 0;
}
.info-notify
{
	background-color: #eef3f8;
}

.footer {
	font-size: 0.8em;
	color: var(--msb-text-muted);
	text-align: center;
}

#price-plot-canvas
{
	border:1px solid #d3d3d3;
}
#tooltip-canvas
{
	border:1px solid #d3d3d3;
	position:absolute;
	left:-400px;
	top:100px;
	pointer-events:none;
}
#selection-point-canvas
{
	border:none;
	position:absolute;
	left:-400px;
	top:100px;
	pointer-events:none;
}

.eth-address
{
	color: var(--msb-text-muted);
}
.substrata-logo-top-small
{
	padding-bottom:20px;
}
.logo-root-page
{
	padding-bottom:20px;
}
.buy-visa-image
{
	position: relative;
	top: 9px;
}
.buy-paypal-image
{
	position: relative;
	top: 6px;
	left: -1px;
}
.inline-block
{
	display: inline-block;
}
#mapid
{
	height: 650px;
}
.hidden
{
	display: none;
}

/*These colours should match those in map.js*/
.map-col-mradmin
{
	color: #3388ff; /* blue */
}
.map-col-other
{
	color: #0f9caa; /* blue */
}
.map-col-for-auction
{
	color: #b40d96; /* purpleish */
}
.map-col-highlighted
{
	color: #ef9518;
}

.commands {
	font-size: 0.8em;
	font-family: "Lucida Console", Courier, monospace;
	background-color: rgb(230, 230, 230);
	overflow: auto;
}
.code-block {
	/* Style from https://stackoverflow.com/a/48694906 */
	background: #f4f4f4;
	border: 1px solid #ddd;
	border-left: 3px solid #f36d33;
	color: #666;
	page-break-inside: avoid;
	font-family: monospace;
	font-size: 15px;
	line-height: 1.6;
	margin-bottom: 1.6em;
	max-width: 100%;
	overflow: auto;
	padding: 1em 1.5em;
	display: block;
	word-wrap: break-word;
}


.root-auction-list-container {
	/* Use grid layout, works pretty well with putting items side by side, also works well with having a little bit of space between them */
	display: grid;
	/*auto-fit: Fit whatever columns there are into the space. Prefer expanding columns to fill space rather than empty columns.*/
	grid-template-columns: repeat(auto-fit, minmax( /*min=*/ 230px, /*max=*/ 230px));
	grid-auto-flow: row;
	gap: 15px 15px;
}

.root-auction-div {
	margin-bottom: 30px;
}

.root-auction-thumbnail {
	width: 230px; /* for consistency with root-news-thumbnail width*/
	object-fit: cover;
}


.root-news-div-container {
	/* Use grid layout, works pretty well with putting items side by side, also works well with having a little bit of space between them */
	display: grid;
	/*auto-fit: Fit whatever columns there are into the space. Prefer expanding columns to fill space rather than empty columns.*/
	grid-template-columns: repeat(auto-fit, minmax( /*min=*/ 230px, /*max=*/ 230px));
	grid-auto-flow: row;
	gap: 15px 15px;
}

.root-news-div {
	margin-bottom: 30px;
}

.root-news-thumb-div {
	min-height: 160px;
}

.root-news-thumbnail {
	width: 230px;
	height: 131px;
	object-fit: cover;
}

.root-news-title {
	font-weight: bold;
}

.root-news-title a { /*override link colour*/
	color: black;
}

.root-news-content {
}

.root-news-content a { /*override link colour*/
	color: black;
	text-decoration: none;
}

.news-image {
	max-width: 650px;
}

.news-post-timestamp {
	font-size: 0.8em;
}

.news-post-content {
	margin-bottom: 60px;
}



/*----------------------------------------Events-----------------------------------------*/
.root-events-div-container {
	/* Use grid layout, works pretty well with putting items side by side, also works well with having a little bit of space between them */
	display: grid;
	/*auto-fit: Fit whatever columns there are into the space. Prefer expanding columns to fill space rather than empty columns.*/
	grid-template-columns: repeat(auto-fit, minmax( /*min=*/ 230px, /*max=*/ 230px));
	grid-auto-flow: row;
	gap: 15px 15px;
}

.root-event-div {
	margin-bottom: 30px;
}

.root-event-thumb-div {
	min-height: 160px;
}

.root-event-thumbnail {
	width: 230px;
	height: 131px;
	object-fit: cover;
}

.root-event-title {
	font-weight: bold;
}

.root-event-title a { /*override link colour*/
	color: black;
}

.root-event-content {
}

.root-event-content a { /*override link colour*/
	color: black;
	text-decoration: none;
}

.root-event-time {
	font-size: 0.8em;
	color: #777;
}

.event-image {
	max-width: 650px;
}

.event-post-timestamp {
	font-size: 0.8em;
}

.event-post-content {
	margin-bottom: 60px;
}

.event-datum-title {
	padding-right: 1em;
}
.event-datum {
}

.event-title {
	font-size: 1.2em;
}

.event-description {
	padding-bottom: 1em;
}






.top-section {
	position: relative; /*needed because position: absolute positions relative to 'positioned' ancestor*/
	height: 60vh;
	min-height: 400px;
	max-height: 600px;
	width: 100vw;
}

.top-section-text-container {
	position: absolute;
	width: 75vw;
	top: 150px;
	left: 50vw;
	transform: translate(-50%, 0);
	
	color: white;
	border-radius: 0px;
	margin: 0px;
	padding: 10px;
	font-size: 1.0em;
}

.top-intro-section {
	padding: 10px;
	background-color: rgba(0, 0, 0, 0.6);
	margin-bottom: 40px;
}


.play-webclient-div {
	padding: 10px;
	background-color: rgba(0, 0, 0, 0.6);
	font-size: 1.3em;
	margin-left: auto;
	margin-right: auto;
	width: fit-content; /* make the div just as wide as the 'Enter Substrata in your browser' text */
}

.play-webclient-div a { /*override link colour*/
	color: white;
}



.top-image {
	width: 100vw;
	height: 60vh;
	min-height: 400px;
	max-height: 600px;
	object-fit: cover;
}


.top-logo-section img {
	display: block;
	margin: 10px;
}



#top-image {
	opacity: 1;
	transition: opacity 2s;
}

#top-image.fadeOut {
	opacity: 0;
}


.photo-container {
	display: grid;
	/*auto-fit: Fit whatever columns there are into the space. Prefer expanding columns to fill space rather than empty columns.*/
	grid-template-columns: repeat(auto-fit, minmax( /*min=*/ 230px, /*max=*/ 230px));
	grid-auto-flow: row;
	gap: 15px 15px;
}

.root-photo-img {
	width: 230px;
	height: 172px;
	object-fit: cover;
	display: block; /*to remove whitespace under the image: https://www.tutorialrepublic.com/faq/how-to-remove-white-space-under-an-image-using-css.php */
}

.photo-midsize-img {
	max-width: 100%;
}

.msb-photo-detail {
	max-width: 980px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.msb-photo-image-wrap {
	display: flex;
	justify-content: center;
	align-items: center;
	background: #f1f4f8;
	border: 1px solid #cfd7e2;
	border-radius: 12px;
	padding: 10px;
}

.msb-photo-midsize-img {
	width: 100%;
	height: auto;
	max-width: 960px;
	display: block;
	border-radius: 8px;
}

.msb-photo-info-card {
	background: var(--msb-surface);
	border: 1px solid var(--msb-border);
	border-radius: 12px;
	padding: 14px 16px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.msb-photo-caption-title {
	margin: 0 0 8px;
	font-size: clamp(24px, 4vw, 34px);
	line-height: 1.15;
}

.msb-photo-caption-text {
	margin: 0;
	line-height: 1.55;
	color: #2e3746;
}

.msb-photo-inline-label {
	font-weight: 700;
	color: #253247;
}

.msb-photo-hashtags {
	margin: 10px 0 0;
	color: #5f6d82;
	font-size: 14px;
}

.msb-photo-message {
	margin: 0;
}

.msb-photo-meta-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 10px;
}

.msb-photo-meta-item {
	background: #f7f9fc;
	border: 1px solid #dce4ef;
	border-radius: 10px;
	padding: 10px 12px;
	min-width: 0;
}

.msb-photo-meta-label {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #5f6d82;
}

.msb-photo-meta-value {
	margin-top: 4px;
	font-size: 16px;
	color: #202c3c;
	overflow-wrap: anywhere;
}

.msb-photo-meta-value a {
	overflow-wrap: anywhere;
	word-break: break-word;
}

.msb-photo-section-title {
	margin: 0 0 10px;
	font-size: 18px;
}

.msb-share-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0;
}

.msb-share-link {
	display: inline-block;
	padding: 0;
	border: 0;
	background: transparent;
	color: #2b3a52;
	font-size: 14px;
	font-weight: 500;
	text-decoration: underline;
	text-underline-offset: 2px;
	margin-right: 8px;
}

.msb-share-link:hover {
	color: #15213a;
}

.msb-share-link:not(:last-child)::after {
	content: " |";
	color: #7b8798;
	text-decoration: none;
	margin-left: 8px;
}

.msb-photo-owner-tools p {
	margin: 0;
}

.msb-photo-delete-form {
	margin: 0;
}

@media (max-width: 900px) {
	.msb-photo-info-card {
		padding: 12px;
	}

	.msb-photo-meta-grid {
		grid-template-columns: 1fr;
	}
}


/* Used on parcel page for both screenshots and photos */
.generic-image-container {
	display: grid;
	/*auto-fit: Fit whatever columns there are into the space. Prefer expanding columns to fill space rather than empty columns.*/
	grid-template-columns: repeat(auto-fit, minmax( /*min=*/ 320px, /*max=*/ 320px));
	grid-auto-flow: row;
	gap: 15px 15px;
}

.generic-image {
	width: 320px;
	height: 240px;
	object-fit: cover;
	display: block; /*to remove whitespace under the image: https://www.tutorialrepublic.com/faq/how-to-remove-white-space-under-an-image-using-css.php */
}






.article-image {
	max-width: 75vw;
}

.script-log {
	font-size: 0.9em;
}

.log-timestamp {
	color: cadetblue;
}
.log-ob {
	color:darkcyan
}
.log-error {
	color: firebrick;
}
.log-print {
}


.code-func-definition {
	margin-top: 2em;
	margin-bottom: 0.5em;
	font-size: 1.2em;
	font-weight: 400;
	background-color: #ecf9f2;
}

.code-arg {
	margin-top: 0.3em;
	margin-bottom: 0.3em;
}

.code-arg-code {
	background: #f4f4f4;
	border: 1px solid #ddd;
	border-left: 3px solid #caefef;
	color: #444;
	font-family: monospace;
	font-size: 16px;
	margin-right: 0.5em;
	padding: 0.1em 0.3em;
}

.code-func-description {

}


.code-attr {
	margin-top: 0.3em;
	margin-bottom: 0.3em;
}
.code-attr-code {
	background: #f4f4f4;
	border: 1px solid #ddd;
	border-left: 3px solid #caefef;
	color: #444;
	font-family: monospace;
	font-size: 16px;
	margin-right: 1em;
	padding: 0.1em 0.3em;
}

.code-attr-descrip {
}

.feature-enabled {
	color: var(--msb-ok);
	font-weight: 600;
}
.feature-disabled {
	color: var(--msb-danger);
	font-weight: 600;
}



.full-width {
	width: 96%;
}

.grouped-region {
	background: var(--msb-surface);
	border: 1px solid var(--msb-border);
	border-radius: 12px;
	padding: 1em;
	margin-bottom: 1em;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.field-description {
	color: var(--msb-text-muted);
	font-size: 0.8em;
}

.danger-zone {
	background: #f9ecef;
	border: 1px solid #d8a6ad;
	color: var(--msb-danger);
	border-radius: 10px;
	width: 96%;
	text-align: right;
	padding: 0.5em;
}

input[type="text"],
input[type="number"],
input[type="password"],
textarea,
select {
	width: min(720px, 96%);
	max-width: 100%;
	box-sizing: border-box;
	border: 1px solid var(--msb-border);
	border-radius: 8px;
	padding: 9px 11px;
	background: var(--msb-surface);
	color: var(--msb-text);
}

input[type="submit"],
input[type="button"],
button {
	border: 1px solid #a3aab6;
	background: linear-gradient(180deg, #fcfcfd 0%, #e6e9ee 100%);
	color: #2c3440;
	border-radius: 8px;
	padding: 7px 12px;
	cursor: pointer;
	transition: background-color .15s ease, border-color .15s ease;
}

input[type="submit"]:hover,
input[type="button"]:hover,
button:hover {
	background: linear-gradient(180deg, #ffffff 0%, #dce1e8 100%);
	border-color: #8f98a8;
}

table {
	border-collapse: collapse;
	background: var(--msb-surface);
	border: 1px solid var(--msb-border);
	border-radius: 10px;
	overflow: hidden;
}

th, td {
	padding: 10px;
	border-bottom: 1px solid #edf1f5;
}

th {
	background: #edf0f4;
	font-weight: 600;
}

.msb-table-wrap {
	width: 100%;
	overflow-x: auto;
	border-radius: 10px;
}

.msb-table {
	width: 100%;
	min-width: 680px;
}

.msb-table tbody tr:nth-child(even) {
	background: #f6f7f9;
}

.msb-lang-toggle-button {
	position: fixed;
	right: 14px;
	top: 14px;
	z-index: 1000;
	min-width: 52px;
	border-radius: 999px;
	background: #d7dce4;
	border: 1px solid #a6aebc;
	color: #283140;
	font-weight: 600;
}

.msb-card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 16px;
}

.msb-card {
	background: var(--msb-surface);
	border: 1px solid var(--msb-border);
	border-radius: 12px;
	padding: 14px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.msb-avatar {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: linear-gradient(140deg, #a9b0bd, #707a8b);
	color: #f8f9fb;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 28px;
	font-weight: 700;
}

.msb-accordion-panel {
	display: none;
	margin-top: 8px;
	padding-top: 8px;
	border-top: 1px dashed #d7e1ea;
}

.msb-accordion-panel.is-open {
	display: block;
}

.msb-accordion-toggle {
	margin-top: 8px;
}

.msb-slider {
	width: min(420px, 95%);
	accent-color: var(--msb-accent);
}

/* ---------------- Layout primitives for tweakpane-like blades ---------------- */
.msb-kpi-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 10px;
	margin: 10px 0 16px 0;
}

.msb-kpi {
	background: linear-gradient(180deg, #ffffff 0%, #f2f4f7 100%);
	border: 1px solid var(--msb-border);
	border-radius: 10px;
	padding: 10px;
}

.msb-kpi-label {
	color: var(--msb-text-muted);
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.msb-kpi-value {
	color: var(--msb-text);
	font-size: 22px;
	font-weight: 700;
	line-height: 1.2;
	margin-top: 4px;
}

.msb-inline-form {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.msb-inline-form label {
	font-size: 12px;
	color: var(--msb-text-muted);
}

.msb-inline-form input[type="text"],
.msb-inline-form input[type="number"],
.msb-inline-form select {
	width: auto;
	min-width: 120px;
}

.msb-inline-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 10px;
}

.msb-inline-fields {
	display: grid;
	grid-template-columns: repeat(4, minmax(100px, max-content));
	gap: 8px;
	align-items: center;
	margin-bottom: 8px;
}

.msb-inline-fields input[type="text"],
.msb-inline-fields input[type="number"] {
	width: 100%;
}

.msb-live-preview {
	background: var(--msb-surface-muted);
	border: 1px solid var(--msb-border);
	border-radius: 10px;
	padding: 8px 10px;
	margin: 10px 0;
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

.msb-live-item {
	color: var(--msb-text-muted);
	font-size: 13px;
}

.msb-live-item b {
	color: var(--msb-text);
}

.msb-quiet-link {
	color: var(--msb-text-muted);
	text-decoration: none;
}

.msb-quiet-link:hover {
	color: var(--msb-text);
	text-decoration: underline;
}

.msb-row-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.msb-row-actions a,
.msb-row-actions input[type="submit"] {
	display: inline-block;
	padding: 4px 8px;
	border: 1px solid #b0b7c3;
	border-radius: 8px;
	background: #f2f4f7;
	text-decoration: none;
	color: #2e3645;
	font-size: 12px;
	line-height: 1.3;
}

.msb-row-actions a:hover,
.msb-row-actions input[type="submit"]:hover {
	background: #e7ebf0;
	border-color: #9da7b6;
	color: #202733;
}

.msb-parcel-list-legacy > br {
	display: none;
}

.msb-parcel-entry {
	margin: 0 0 10px 0;
	padding: 10px;
	border: 1px solid var(--msb-border);
	border-radius: 10px;
	background: var(--msb-surface-muted);
}

.msb-parcel-entry-compact {
	padding: 6px 8px;
	font-size: 0.92em;
}

.msb-parcel-entry form[style*="display: inline"],
.msb-parcel-entry form[style*="display:inline"] {
	display: inline-block;
	margin: 0 0 0 4px;
}

.msb-tweakpane-host {
	position: fixed;
	right: 12px;
	top: 76px;
	z-index: 1100;
	width: min(320px, 30vw);
	min-width: 260px;
	max-height: calc(100vh - 88px);
	overflow-y: auto;
	padding: 8px;
	border: 1px solid var(--msb-border);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.96);
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
}

.msb-tweakpane-host.msb-hidden {
	display: none;
}

.msb-tweakpane-toggle {
	position: fixed;
	right: 12px;
	top: 38px;
	z-index: 1110;
	padding: 6px 10px;
	border: 1px solid var(--msb-border);
	border-radius: 8px;
	background: #f2f4f7;
	color: #2e3645;
	font-size: 12px;
	line-height: 1.3;
	cursor: pointer;
}

.msb-tweakpane-toggle:hover {
	background: #e7ebf0;
}

body.msb-admin.has-tweakpane,
body.msb-control.has-tweakpane {
	padding-right: min(330px, 32vw);
}

@media (max-width: 1200px) {
	body.msb-admin.has-tweakpane,
	body.msb-control.has-tweakpane {
		padding-right: 0;
	}

	.msb-tweakpane-host,
	.msb-tweakpane-toggle {
		position: static;
		width: 100%;
		min-width: 0;
		max-height: none;
		margin-top: 10px;
	}
}

/* ---------------- Admin/control panels (Tweakpane-inspired light theme) ---------------- */
body.msb-admin,
body.msb-control {
	--msb-bg: #ebeef2;
	--msb-surface: #ffffff;
	--msb-surface-muted: #f4f5f7;
	--msb-border: #ced3dc;
	--msb-text: #232933;
	--msb-text-muted: #5c6574;
	--msb-link: #404b5f;
	--msb-link-hover: #1f2631;
	--msb-accent: #717b8b;
	--msb-danger: #a03b47;
	margin-top: 26px;
	width: min(96vw, 1320px);
	max-width: none;
	font-size: 15px;
	line-height: 1.45;
	color: var(--msb-text);
	background: radial-gradient(1200px 460px at 8% -8%, #f8f9fb 0%, #eef1f4 46%, #e6eaee 100%);
}

body.msb-admin header,
body.msb-control header {
	padding: 12px 14px;
	border: 1px solid var(--msb-border);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.94);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 8px 18px rgba(0, 0, 0, 0.08);
}

body.msb-admin h1,
body.msb-control h1 {
	margin: 0;
	font-size: clamp(24px, 3vw, 36px);
	letter-spacing: 0.01em;
}

body.msb-admin h2,
body.msb-control h2 {
	margin-top: 24px;
	font-size: 20px;
}

body.msb-admin h3,
body.msb-control h3 {
	margin-top: 18px;
	font-size: 17px;
}

body.msb-admin #login,
body.msb-control #login {
	margin-top: 0;
}

body.msb-admin #login,
body.msb-admin #login a,
body.msb-control #login,
body.msb-control #login a {
	color: #596273;
}

body.msb-admin .substrata-logo-top-small,
body.msb-control .substrata-logo-top-small {
	padding-bottom: 12px;
	filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.1));
}

body.msb-admin a,
body.msb-control a {
	color: var(--msb-link);
}

body.msb-admin a:hover,
body.msb-control a:hover {
	color: var(--msb-link-hover);
}

body.msb-admin hr,
body.msb-control hr {
	border: 0;
	border-top: 1px solid var(--msb-border);
	margin: 16px 0;
}

p.msb-admin-nav {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	gap: 4px;
	align-items: center;
	padding: 8px;
	border: 1px solid var(--msb-border);
	border-radius: 12px;
	background: rgba(250, 251, 253, 0.98);
	overflow-x: auto;
	overflow-y: hidden;
	white-space: nowrap;
}

p.msb-admin-nav a {
	display: inline-flex;
	align-items: center;
	padding: 3px 6px;
	border-radius: 8px;
	text-decoration: none;
	border: 1px solid #a5acb7;
	background: linear-gradient(180deg, #fbfcfd 0%, #e5e9ef 100%);
	color: #29313d;
	font-weight: 600;
	font-size: 10px;
	line-height: 1.2;
	margin: 0;
	flex: 0 0 auto;
}

p.msb-admin-nav a:hover {
	background: linear-gradient(180deg, #ffffff 0%, #dde2e9 100%);
	border-color: #8f99a9;
	color: #29313d;
}

p.msb-admin-nav a + a::before {
	content: none;
}

body.msb-admin .msb-admin-section {
	margin-top: 14px;
}

body.msb-admin .msb-admin-section > h2:first-child {
	margin-top: 0;
}

body.msb-admin .grouped-region,
body.msb-control .grouped-region,
body.msb-admin .msb-card,
body.msb-control .msb-card {
	background: rgba(255, 255, 255, 0.96);
	border: 1px solid var(--msb-border);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 6px 14px rgba(0, 0, 0, 0.08);
}

body.msb-admin .msb-avatar,
body.msb-control .msb-avatar {
	background: linear-gradient(140deg, #b2b8c4, #7a8394);
	color: #f7f8fa;
}

body.msb-admin form:not([style*="display: inline"]):not([style*="display:inline"]),
body.msb-control form:not([style*="display: inline"]):not([style*="display:inline"]) {
	background: rgba(252, 253, 254, 0.96);
	border: 1px solid var(--msb-border);
	border-radius: 10px;
	padding: 12px;
	margin: 10px 0;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 6px 14px rgba(0, 0, 0, 0.08);
}

body.msb-admin .msb-admin-form {
	margin-bottom: 12px;
}

body.msb-admin form[style*="display: inline"],
body.msb-admin form[style*="display:inline"],
body.msb-control form[style*="display: inline"],
body.msb-control form[style*="display:inline"] {
	background: transparent;
	border: 0;
	padding: 0;
	margin: 0;
	box-shadow: none;
}

body.msb-admin input[type="text"],
body.msb-admin input[type="number"],
body.msb-admin input[type="password"],
body.msb-admin textarea,
body.msb-admin select,
body.msb-control input[type="text"],
body.msb-control input[type="number"],
body.msb-control input[type="password"],
body.msb-control textarea,
body.msb-control select {
	background: #ffffff;
	border: 1px solid #b6beca;
	color: #232a35;
	width: min(820px, 96%);
}

body.msb-admin input[type="text"]:focus,
body.msb-admin input[type="number"]:focus,
body.msb-admin input[type="password"]:focus,
body.msb-admin textarea:focus,
body.msb-admin select:focus,
body.msb-control input[type="text"]:focus,
body.msb-control input[type="number"]:focus,
body.msb-control input[type="password"]:focus,
body.msb-control textarea:focus,
body.msb-control select:focus {
	outline: none;
	border-color: #8d98aa;
	box-shadow: 0 0 0 2px rgba(141, 152, 170, 0.22);
}

body.msb-admin input[type="submit"],
body.msb-admin input[type="button"],
body.msb-admin button,
body.msb-control input[type="submit"],
body.msb-control input[type="button"],
body.msb-control button {
	border: 1px solid #a5acb7;
	background: linear-gradient(180deg, #fbfcfd 0%, #e5e9ef 100%);
	color: #29313d;
	font-weight: 600;
}

body.msb-admin input[type="submit"]:hover,
body.msb-admin input[type="button"]:hover,
body.msb-admin button:hover,
body.msb-control input[type="submit"]:hover,
body.msb-control input[type="button"]:hover,
body.msb-control button:hover {
	background: linear-gradient(180deg, #ffffff 0%, #dde2e9 100%);
	border-color: #8f99a9;
}

body.msb-admin .link-button,
body.msb-control .link-button {
	background: transparent;
	border: 0;
	color: var(--msb-link);
	padding: 0;
	font-weight: 500;
}

body.msb-admin .link-button:hover,
body.msb-control .link-button:hover {
	color: var(--msb-link-hover);
	background: transparent;
	border: 0;
}

body.msb-admin table,
body.msb-admin .msb-table,
body.msb-control table,
body.msb-control .msb-table {
	background: #ffffff;
	border-color: #c5ccd7;
}

body.msb-admin th,
body.msb-control th {
	background: #eceff3;
	color: #232a35;
}

body.msb-admin th,
body.msb-admin td,
body.msb-control th,
body.msb-control td {
	border-bottom: 1px solid #dbe0e8;
}

body.msb-admin .msb-table tbody tr:nth-child(even),
body.msb-control .msb-table tbody tr:nth-child(even) {
	background: #f6f7f9;
}

body.msb-admin code,
body.msb-control code {
	background: #f2f4f7;
	border: 1px solid #ccd3de;
	border-radius: 6px;
	padding: 1px 5px;
	color: #2b3442;
}

body.msb-admin .msg,
body.msb-control .msg {
	background-color: #f3f6fa;
	border-color: #cad3df;
	color: #28303d;
}

body.msb-admin .danger-zone,
body.msb-control .danger-zone {
	background: #f9ecef;
	border-color: #d7a2aa;
	color: #8b3944;
}

body.msb-admin .feature-enabled,
body.msb-control .feature-enabled {
	color: var(--msb-ok);
}

body.msb-admin .feature-disabled,
body.msb-control .feature-disabled {
	color: var(--msb-danger);
}

body.msb-admin .msb-lang-toggle-button,
body.msb-control .msb-lang-toggle-button {
	background: #d8dde5;
	border-color: #a8b0bf;
	color: #2a313d;
}

@media (max-width: 900px) {
	body.msb-admin,
	body.msb-control {
		margin-top: 12px;
		width: 98vw;
	}

	p.msb-admin-nav a {
		font-size: 10px;
		padding: 3px 6px;
	}

	.msb-inline-fields {
		grid-template-columns: repeat(2, minmax(90px, 1fr));
	}
}

.msb-signup-terms-row {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 8px;
}

.msb-signup-terms-checkbox {
	width: 16px;
	height: 16px;
	margin: 0;
}

.msb-signup-terms-label {
	font-size: 14px;
	color: var(--msb-text-muted);
}

.msb-signup-terms-label a {
	font-weight: 600;
}

input[type="submit"].msb-disabled-submit,
button[type="submit"].msb-disabled-submit {
	opacity: 0.55;
	cursor: not-allowed;
}

.msb-cookie-banner {
	position: fixed;
	left: 50%;
	transform: translateX(-50%);
	bottom: 16px;
	z-index: 9999;
	width: min(920px, calc(100vw - 24px));
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 14px;
	border: 1px solid var(--msb-border);
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.97);
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.msb-cookie-text {
	font-size: 14px;
	color: var(--msb-text);
}

.msb-cookie-actions {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
}

.msb-cookie-ok {
	border: 1px solid #a5acb7;
	background: linear-gradient(180deg, #fbfcfd 0%, #e5e9ef 100%);
	color: #29313d;
	font-weight: 600;
	padding: 6px 14px;
	border-radius: 8px;
}

.msb-cookie-ok:hover {
	background: linear-gradient(180deg, #ffffff 0%, #dde2e9 100%);
	border-color: #8f99a9;
}

.msb-cookie-more {
	font-size: 14px;
}

@media (max-width: 700px) {
	.msb-cookie-banner {
		flex-direction: column;
		align-items: flex-start;
	}
}
