body
{
  color:#ddd;
  background:#333;
  margin-bottom:70px;
}

a
{
	color:#60B1E2;
}

a:hover
{
	color:#D00;
}

a.nounderline
{
	text-decoration:none;
}

a.highlight_green
{
	color:#43C20C;
}

a.highlight_green:hover
{
	color:#A00;
}

a.highlight_red
{
	color:#E00000;
}

a.highlight_red:hover
{
	color:#A00;
}

a.highlight_yellow
{
	color:#E0C400;
}

a.highlight_yellow:hover
{
	color:#A00;
}

p
{
	padding-top:3px;
	padding-bottom:3px;
	margin-top:0px;
	margin-bottom:0px;
}

div.functionssettings
{
	padding-top:3px;
	padding-bottom:3px;
	margin-top:0px;
	margin-bottom:0px;
}

fieldset
{
	margin-top:10px;
	background:#444;
}

.textcolorerror
{
	color:#F00;
}

.textcolorgood
{
	color:#00BD00;
}

legend
{
	color:#60B1E2;
	font-weight:bold;
}

img.logtypeimage
{
	width:22px;
	min-height:22px;
	height:auto;
}

@media only screen and (min-width:700px)
{
	fieldset.small
	{
		background:#444;
		width:550px;
	}

	.button
	{
		margin-top:10px;
		border-radius:25px 25px 0px 0px;
		background:#555;
		padding:10px;
		display:inline-block;
		vertical-align:top;
		height:20px;
		width:200px;
	}
	
	div.settings
	{
		vertical-align:top;
		width:70%;
	}

	label
	{
		display:inline-block;
		width:70%;
	}

	input.small
	{
		width:25%;
		min-width:200px;
	}
	
	input.fixed
	{
		width:200px;
	}
	
	input.fixed300
	{
		width:300px;
	}

	textarea.small
	{
		width:25%;
		min-width:200px;
	}
	
	textarea.fixed
	{
		width:200px;
	}
	
	#plusminusbutton
	{
		display:none;
	}
	
	#framemenu_bigscreen
	{
		display:block;
	}
	
	#framemenu_smallscreen
	{
		display:none;
	}
	
	#botheader_bigscreen
	{
		display:block;
	}
	
	#botheader_smallscreen
	{
		display:none;
	}
}

@media only screen and (max-width:699px)
{
	.hidden_midsizescreen
	{
		display:none;
	}

	fieldset.small
	{
		background:#444;
	}

	.button
	{
		margin:2px;
		border-radius:25px;
		background:#555;
		padding:10px;
		display:inline-block;
		vertical-align:top;
		height:20px;
		width:200px;
	}
	
	div.settings
	{
		vertical-align:top;
		width:95%;
	}
	
	label
	{
		display:inline-block;
		width:95%;
	}

	input.small
	{
		width:95%;
	}
	
	input.fixed
	{
		width:95%;
	}
	
	input.fixed300
	{
		width:95%;
	}

	textarea.small
	{
		width:95%;
	}
	
	textarea.fixed
	{
		width:95%;
	}
	
	#framemenu_bigscreen
	{
		display:none;
	}
	
	#framemenu_smallscreen
	{
		display:block;
	}
	
	#botheader_bigscreen
	{
		display:none;
	}
	
	#botheader_smallscreen
	{
		display:block;
	}
}

@media only screen and (max-width:599px)
{
	.hidden_smallscreen
	{
		display:none;
	}
}

@media only screen and (max-width:379px)
{
	.hidden_verysmallscreen
	{
		display:none;
	}
	
	.title
	{
		font-size:12pt;
	}
	
	span.build
	{
		display:none;
		font-size:10pt;
	}
}

@media only screen and (min-width:380px)
{
	.title
	{
		font-size:14pt;
	}
	
	span.build
	{
		font-size:10pt;
	}
}

div.settings, div.settingsright
{
	padding-top:3px;
	padding-bottom:3px;
	margin-top:0px;
	margin-bottom:0px;
	display:inline-block;
}

div.settingsright_topspacer
{
	padding-top:10px;
	padding-bottom:3px;
	margin-top:0px;
	margin-bottom:0px;
	display:inline-block;
}

label.auto
{
	display:inline-block;
	width:auto;
}

label.small
{
	display:inline-block;
	width:250px;
}

label.big
{
	display:inline-block;
	width:95%;
}
	
input.big
{
	width:95%;
}

textarea.big
{
	width:95%;
}

#frametop
{
	width:100%;
	padding-top:4px;
	padding-left:10px;
	padding-bottom:20px;
	margin:0px;
}

.framemenublock_nowidth, .framemenublock_big
{
	display:inline-block;
	vertical-align:top;
	padding-left:0px;
	padding-top:2px;
	padding-bottom:2px;
	padding-right:0px;
	margin:0px;
	height:40px;
}

.framemenublock_nowidth
{
	min-width:200px;
}

.framemenublock_big
{
	width:200px;
}

.framemenublock_single, .framemenublock_single_nowidth
{
	display:inline-block;
	vertical-align:top;
	padding-left:0px;
	padding-top:2px;
	padding-bottom:2px;
	padding-right:0px;
	margin:0px;
	height:20px;
}

.framemenublock_single_nowidth
{
	min-width:200px;
}

.framemenublock_single
{
	width:200px;
}

.framemenublock_login
{
	display:inline-block;
	vertical-align:top;
	padding-left:0px;
	padding-top:2px;
	padding-bottom:2px;
	padding-right:0px;
	margin:0px;
	height:50px;
	width:200px;
}

.hidden
{
	display:none;
}

#languagename
{
	font-weight:bold;
}

#framecontent
{
	margin:0px;
	padding-top:4px;
	padding-left:0px;
	padding-right:5px;
	padding-bottom:0px;
	text-align:left;
}

#framecontentinstall
{
	margin-bottom:60px;
	padding-top:4px;
	padding-left:5px;
	padding-right:5px;
	padding-bottom:0px;
	text-align:left;
}

#framebottom
{
	width:100%;
	position:fixed;
	left:0px;
	right:0px;
	bottom:0px;
	padding-bottom:3px;
	background-color:#333;
}

#loadingscreen, #loadingscreencommand
{
	margin-top:10px;
	padding:10px;
	background-color:#444;
	text-align:center;
	font-weight:bold;
	color:#00D8EA;
}

#helpinstancelistreload
{
	margin-top:10px;
	padding:10px;
	background-color:#444;
	color:#DDD;
}

#statusscreen, #botstatusscreen
{
	margin-top:10px;
	padding:10px;
	background-color:#444;
	text-align:center;
	font-weight:bold;
	color:#FF6868;
}

table.functionlist
{
	margin-top:2px;
	margin-bottom:10px;
	margin-left:auto;
	margin-right:auto;
	padding:0px;
	border:0px;
	border-collapse:collapse;
}

td.functionlist
{
	margin:0px;
	padding-left:2px;
	padding-right:2px;
	padding-bottom:1px;
	padding-top:1px;
	border:0px;
}

.nospacer
{
	margin:0px;
	padding:0px;
	border:0px;
}

tr.functionlist
{
	margin:0px;
	padding:0px;
	border:0px;
}

tr.functionlist:hover
{
	background-color:#444;
}

tr.functionlist_title, th.functionlist_title
{
	background:#18388E;
	color:#ccc;
	border:0;
	margin:0px;
}

.div_addfunction_title
{
	font-weight:bold;
	padding:5px;
}

.top
{
	vertical-align:top;
}

.middle
{
	vertical-align:middle;
}

.settingstable
{
	border-collapse:collapse;
	margin-bottom:60px;
}

.checkbox
{
	width:16px;
	height:16px;
	background-color:#FFF;
	border-style:ridge;
	border-width:3px;
	border-color:#999;
	cursor:pointer;
}

.textinput, .Select_Single, .Select_Multiple
{
	margin:4px;
	color:#ddd;
	background-color:#333;
	box-shadow:2px 2px 4px rgba(0,0,0,0.5);
}

.textinput:focus
{
	box-shadow:2px 2px 4px rgba(0,0,0,1.0);
}

.textinputerror
{
	margin:4px;
	color:#000000;
	background-color:#FF0000;
	box-shadow:2px 2px 4px rgba(200,0,0,0.5);
}

.textinputerror:focus
{
	box-shadow:2px 2px 4px rgba(200,0,0,1.0);
}

.errormessage
{
	color:#FF4C4C;
	font-weight:bold;
}

.topspacer
{
	padding-top:10px;
}

.rightspacer
{
	padding-right:10px;
}

.submitspacer
{
	margin-bottom:5px;
	margin-top:5px;
	margin-left:20px;
	margin-right:20px;
}

.spacer_topnbottom
{
	padding-top:10px;
	padding-bottom:50px;
}

.botmanagertitle
{
	text-align:left;
	font-size:20pt;
}

.title
{
	background-image:linear-gradient(90deg, #374569, transparent 100%);
	color:#BBB;
	/* text-shadow: 0 -1px #FFF, 1px 0 #FFF, 0 1px #FFF, -1px 0 #FFF; */
	text-shadow:0.1px 0.1px 3px #000;
	text-align:left;
	padding-left:5px;
	padding-right:2px;
	padding-top:2px;
	padding-bottom:2px;
	white-space:nowrap;
}

.botmanagerdescription
{
	text-align:left;
	font-weight:bold;
	padding-top:5px;
	padding-bottom:10px;
}

.botmanagerwarning
{
	text-align:left;
	font-weight:bold;
	padding-top:0px;
	padding-bottom:20px;
	color:#FF4400;
}

.logviewpages
{
	text-align:center;
	padding-top:15px;
}

.logdelete
{
	text-align:center;
	padding-top:15px;
}

.div_addfunction
{
	width:90%;
	text-align:center;
	padding-top:10px;
	margin-left:auto;
	margin-right:auto;
}

hr.borderline
{
	border:none;
	border-bottom-width:1px;
	border-bottom-style:solid;
	border-bottom-color:#AAAAAA;
}

.borderline
{
	border-bottom-width:1px;
	border-bottom-style:solid;
	border-bottom-color:#AAAAAA;
}

.rightpadding
{
	padding-right:5px;
}

.leftrightpadding
{
	padding-left:5px;
	padding-right:5px;
}

.bottommargin
{
	margin-bottom:20px;
}

.nopaddingmargin
{
	padding:0px;
	margin:0px;
}

.hand
{
	cursor:pointer;
}

.ellipsis
{
	white-space:nowrap;
	text-overflow:ellipsis;
	overflow:hidden;
}

.nowrap
{
	white-space:nowrap;
}

.bold
{
	font-weight:bold;
}

.left
{
	text-align:left;
}

.center
{
	text-align:center;
}

.right
{
	text-align:right;
}

.languageimagechooser
{
	padding:1px;
}

.languageimagechooser:hover
{
	padding:0px;
	border-color:#3300FF;
	border-style:solid;
	border-width:1px;
}

.button_active
{
	background:#444 !important;
}

.button:hover
{
	background:#444;
}

table.bbcode, select.bbcode
{
	background:#bbb;
	border:0;
	outline:none;
}

table.bbcode
{
	padding:0px;
	padding-bottom:1px;
}

select.bbcode
{
	height:100%;
}

select.bbcode:focus
{
	background:#aaa;
}

.bbcode_message_keyword
{
	color:#00C300;
}

.bbcode_message_highlight_warning
{
	color:#FF4400;
}

.bbcode_message_highlight_notice
{
	color:#00C300;
}
/* ==========================================================================
   VoySpeak ControlBot theme (on top of the dark base layout above)
   Colors and type follow voyspeak.com
   ========================================================================== */

@font-face { font-family: "Manrope"; font-weight: 400; font-display: swap; src: url("../voyspeak/fonts/manrope-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 500; font-display: swap; src: url("../voyspeak/fonts/manrope-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 600; font-display: swap; src: url("../voyspeak/fonts/manrope-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 700; font-display: swap; src: url("../voyspeak/fonts/manrope-latin-700-normal.woff2") format("woff2"); }

:root {
	--vs-bg: #0a1018;
	--vs-bg-soft: #111826;
	--vs-card: #172033;
	--vs-elevated: #1e2940;
	--vs-text: #f4f7fb;
	--vs-dim: #b7c4d6;
	--vs-accent: #2f9bff;
	--vs-accent-hover: #7ec4ff;
	--vs-accent-soft: rgba(47, 155, 255, 0.16);
	--vs-on-accent: #041018;
	--vs-line: rgba(246, 243, 235, 0.12);
	--vs-line-strong: rgba(246, 243, 235, 0.22);
	--vs-danger: #ff6b6b;
	--vs-ok: #3ddc84;
	--vs-warn: #e0b87a;
	--vs-radius-sm: 6px;
	--vs-radius: 10px;
	--vs-radius-lg: 14px;
	--vs-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
}

html { background: var(--vs-bg); }

body {
	font-family: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
	font-size: 15px;
	line-height: 1.55;
	color: var(--vs-text) !important;
	background: var(--vs-bg) !important;
	margin: 0;
	padding: 0 0 72px;
}

a, a:visited { color: var(--vs-accent); text-decoration: none; }
a:hover { color: var(--vs-accent-hover); }
a.highlight_green { color: var(--vs-ok); }
a.highlight_red { color: var(--vs-danger); }
a.highlight_yellow { color: var(--vs-warn); }
a.highlight_green:hover, a.highlight_red:hover, a.highlight_yellow:hover { color: var(--vs-accent-hover); }

::selection { background: var(--vs-accent-soft); }

/* ---- Header ---------------------------------------------------------- */
.vs-header {
	position: sticky;
	top: 0;
	z-index: 50;
	display: flex;
	align-items: center;
	gap: 14px;
	height: 64px;
	padding: 0 24px;
	background: rgba(10, 16, 24, 0.92);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--vs-line);
}
.vs-brand { display: flex; align-items: center; gap: 12px; color: var(--vs-text) !important; }
.vs-brand img { height: 34px; width: auto; display: block; }
.vs-product {
	font-weight: 600;
	font-size: 15px;
	color: var(--vs-dim);
	padding-left: 12px;
	border-left: 1px solid var(--vs-line-strong);
}
.vs-header span.build { color: var(--vs-dim); opacity: 0.6; font-size: 12px; }
.vs-header-right { margin-left: auto; display: flex; align-items: center; }
#plusminusbutton { cursor: pointer; filter: invert(1); opacity: 0.8; }

/* ---- Menu bar -------------------------------------------------------- */
#vs-menu {
	box-sizing: border-box;
	width: 100%;
	padding: 14px 24px;
	background: var(--vs-bg-soft);
	border-bottom: 1px solid var(--vs-line);
	color: var(--vs-dim);
}
.framemenublock_big, .framemenublock_nowidth, .framemenublock_login,
.framemenublock_single, .framemenublock_single_nowidth {
	height: auto;
	min-height: 40px;
	padding: 2px 12px 2px 0;
	line-height: 1.8;
}
#vs-menu b, #vs-menu .bold { color: var(--vs-text); font-weight: 600; }
#vs-menu a { color: var(--vs-dim); }
#vs-menu a:hover { color: var(--vs-text); }
#vs-menu img.middle, #vs-menu img { vertical-align: middle; opacity: 0.9; }

.topspacer { padding-top: 0; height: 24px; }

/* ---- Content --------------------------------------------------------- */
#vs-main {
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 24px;
	box-sizing: border-box;
}
#vs-menu .errormessage { padding-top: 6px; }

/* Section titles (also used for [title] in welcome messages) */
.title {
	background: none !important;
	color: var(--vs-text);
	text-shadow: none;
	font-size: 20px !important;
	font-weight: 700;
	letter-spacing: -0.02em;
	padding: 4px 0 10px;
	margin-bottom: 8px;
	border-bottom: 1px solid var(--vs-line);
	white-space: normal;
}
.botmanagertitle { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.botmanagerdescription { color: var(--vs-dim); font-weight: 500; }
.botmanagerwarning { color: var(--vs-warn); }
legend { color: var(--vs-accent); font-weight: 700; padding: 0 6px; }

fieldset, fieldset.small {
	background: var(--vs-card) !important;
	border: 1px solid var(--vs-line);
	border-radius: var(--vs-radius-lg);
	padding: 16px 20px;
	margin-top: 16px;
	box-shadow: var(--vs-shadow);
}

#loadingscreen, #loadingscreencommand, #helpinstancelistreload, #statusscreen, #botstatusscreen {
	background: var(--vs-card);
	border: 1px solid var(--vs-line);
	border-radius: var(--vs-radius);
}
#loadingscreen, #loadingscreencommand { color: var(--vs-accent-hover); }
#statusscreen, #botstatusscreen { color: var(--vs-danger); }
#helpinstancelistreload { color: var(--vs-dim); }

.textcolorerror, .errormessage { color: var(--vs-danger); }
.textcolorgood { color: var(--vs-ok); }

/* ---- Tabs / pill buttons used in the bot manager --------------------- */
.button {
	background: var(--vs-elevated) !important;
	border: 1px solid var(--vs-line);
	border-radius: var(--vs-radius) var(--vs-radius) 0 0;
	color: var(--vs-text);
	height: auto !important;
	transition: background 0.15s ease;
}
.button:hover { background: #253352 !important; }
.button_active { background: var(--vs-accent-soft) !important; border-color: var(--vs-accent); }

/* ---- Forms ----------------------------------------------------------- */
.textinput, .Select_Single, .Select_Multiple, select, textarea,
input[type="text"], input[type="password"], input[type="email"], input[type="number"] {
	font: inherit;
	color: var(--vs-text) !important;
	background: var(--vs-bg-soft) !important;
	border: 1px solid var(--vs-line-strong);
	border-radius: var(--vs-radius-sm);
	padding: 7px 10px;
	box-shadow: none !important;
	outline: none;
	box-sizing: border-box;
}
.textinput:focus, select:focus, textarea:focus, input:focus {
	border-color: var(--vs-accent) !important;
	box-shadow: 0 0 0 3px var(--vs-accent-soft) !important;
}
.textinputerror {
	color: var(--vs-text) !important;
	background: rgba(255, 107, 107, 0.12) !important;
	border: 1px solid var(--vs-danger) !important;
}
option { background: var(--vs-card); color: var(--vs-text); }

input[type="submit"], input[type="button"], input[type="reset"], button {
	font: inherit;
	font-weight: 700;
	color: var(--vs-on-accent);
	background: var(--vs-accent);
	border: 0;
	border-radius: 999px;
	padding: 8px 20px;
	cursor: pointer;
	transition: background 0.15s ease;
}
input[type="submit"]:hover, input[type="button"]:hover, button:hover { background: var(--vs-accent-hover); }
input[type="reset"] { background: var(--vs-elevated); color: var(--vs-text); border: 1px solid var(--vs-line-strong); }

input[type="checkbox"], input[type="radio"] { accent-color: var(--vs-accent); }
.checkbox { background: var(--vs-bg-soft); border: 1px solid var(--vs-line-strong); border-radius: 4px; }

label { color: var(--vs-text); }

/* ---- Tables ---------------------------------------------------------- */
table { border-collapse: collapse; }
tr.functionlist_title, th.functionlist_title, th {
	background: var(--vs-elevated) !important;
	color: var(--vs-dim) !important;
	font-weight: 600;
	text-align: left;
}
th, td.functionlist { padding: 6px 10px; }
tr.functionlist { border-bottom: 1px solid var(--vs-line); }
tr.functionlist:hover { background: var(--vs-accent-soft); }
hr.borderline, .borderline { border-bottom-color: var(--vs-line) !important; }

/* ---- BBCode editor --------------------------------------------------- */
table.bbcode, select.bbcode { background: var(--vs-elevated); border-radius: var(--vs-radius-sm); }
select.bbcode:focus { background: #253352; }
.bbcode_message_keyword, .bbcode_message_highlight_notice { color: var(--vs-ok); }
.bbcode_message_highlight_warning { color: var(--vs-warn); }

.languageimagechooser:hover { border-color: var(--vs-accent); border-radius: 3px; }

/* ---- Footer ---------------------------------------------------------- */
#framebottom {
	background: rgba(10, 16, 24, 0.95) !important;
	border-top: 1px solid var(--vs-line);
	padding: 10px 16px;
	font-size: 12px;
	color: var(--vs-dim);
	box-sizing: border-box;
}
#framebottom a { color: var(--vs-dim); }
#framebottom a:hover { color: var(--vs-text); }
#framebottom .vs-sep { opacity: 0.4; margin: 0 8px; }

@media only screen and (max-width: 699px) {
	.vs-header { padding: 0 14px; height: 56px; }
	.vs-brand img { height: 28px; }
	.vs-product { font-size: 13px; padding-left: 10px; }
	#vs-menu { padding: 10px 14px; }
	#vs-main { padding: 0 14px; }
	.button { border-radius: 999px; }
}
@media only screen and (max-width: 379px) {
	.vs-product { display: none; }
}

/* ---- Login card (logged-out state) ----------------------------------- */
#vs-menu:has(.vs-login) {
	background: none;
	border-bottom: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 56px 16px 8px;
}
.vs-login {
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 400px;
	box-sizing: border-box;
	padding: 28px 28px 22px;
	background: var(--vs-card);
	border: 1px solid var(--vs-line);
	border-radius: var(--vs-radius-lg);
	box-shadow: 0 18px 44px rgba(0, 0, 0, 0.38);
	margin: 0;
	gap: 0 !important;
}
.vs-login-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.vs-login-head img { display: block; border-radius: 10px; }
.vs-login-title { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; color: var(--vs-text); line-height: 1.25; }
.vs-login-sub { font-size: 13px; color: var(--vs-dim); margin-top: 2px; }

.vs-field-label { display: block; width: auto !important; font-size: 13px; font-weight: 600; color: var(--vs-dim); margin: 0 0 6px; }
.vs-login .vs-field { display: block; width: 100% !important; min-width: 0; margin: 0 0 16px; padding: 10px 12px; }
.vs-login .vs-login-submit { width: 100%; margin-top: 4px; padding: 11px 20px; font-size: 15px; }

.vs-login-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 6px 16px;
	margin-top: 16px;
	font-size: 13px;
}
.vs-login-links img, .vs-login-links br, .vs-login-foot img.middle { display: none; }
#vs-menu .vs-login-links a { color: var(--vs-accent); }
#vs-menu .vs-login-links a:hover { color: var(--vs-accent-hover); }

.vs-login-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 18px;
	padding-top: 14px;
	border-top: 1px solid var(--vs-line);
	font-size: 12px;
}
.vs-login-foot .framemenublock_single, .vs-login-foot .framemenublock_nowidth,
.vs-login-foot .framemenublock_single_nowidth {
	width: auto; min-width: 0; min-height: 0; height: auto; padding: 0; line-height: 1.4;
	display: flex; align-items: center; gap: 6px;
}
.vs-login-foot #languagename { font-weight: 500; color: var(--vs-dim); margin-right: 2px; }
.vs-login-foot .languageimagechooser { vertical-align: middle; border-radius: 2px; }

.vs-notice {
	font-size: 13px;
	font-weight: 600;
	padding: 10px 12px;
	border-radius: var(--vs-radius-sm);
	margin: -6px 0 18px;
	border: 1px solid;
}
.vs-notice-ok { color: var(--vs-text); background: var(--vs-accent-soft); border-color: rgba(47, 155, 255, 0.35); }
.vs-notice-error { color: #ffd2d2; background: rgba(255, 107, 107, 0.12); border-color: rgba(255, 107, 107, 0.4); }

/* Welcome / maintenance text under the login card */
body:has(.vs-login) #vs-main { max-width: 400px; padding: 0 16px; text-align: left; color: var(--vs-dim); font-size: 13px; }
body:has(.vs-login) #vs-main .title { font-size: 15px !important; color: var(--vs-text); border-bottom: 0; padding: 0 0 4px; margin: 0; }
body:has(.vs-login) .topspacer { height: 20px; }

/* Logged-in menu bar lines up with the content column */
#vs-menu > #framemenu_bigscreen, #vs-menu > #framemenu_smallscreen { max-width: 1132px; margin: 0 auto; }

@media only screen and (max-width: 699px) {
	#vs-menu:has(.vs-login) { padding: 24px 14px 4px; }
	.vs-login { padding: 22px 18px 18px; }
}
.vs-login, .vs-login label, .vs-login-links, .vs-login-foot { text-align: left; }
.vs-login-links { justify-content: flex-start; }
.vs-login-foot > div:last-child { margin-left: auto; }

/* Icons: lucide (ISC license), drawn as CSS masks so they take the text color */
.vs-i{display:inline-block;flex:none;width:16px;height:16px;background:currentColor;-webkit-mask:var(--i) center/contain no-repeat;mask:var(--i) center/contain no-repeat;vertical-align:-3px}
.vs-i-list{--i:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.75%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%2012h.01%22/%3E%3Cpath%20d%3D%22M3%2018h.01%22/%3E%3Cpath%20d%3D%22M3%206h.01%22/%3E%3Cpath%20d%3D%22M8%2012h13%22/%3E%3Cpath%20d%3D%22M8%2018h13%22/%3E%3Cpath%20d%3D%22M8%206h13%22/%3E%3C/svg%3E")}
.vs-i-plus{--i:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.75%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M5%2012h14%22/%3E%3Cpath%20d%3D%22M12%205v14%22/%3E%3C/svg%3E")}
.vs-i-settings{--i:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.75%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M20%207h-9%22/%3E%3Cpath%20d%3D%22M14%2017H5%22/%3E%3Ccircle%20cx%3D%2217%22%20cy%3D%2217%22%20r%3D%223%22/%3E%3Ccircle%20cx%3D%227%22%20cy%3D%227%22%20r%3D%223%22/%3E%3C/svg%3E")}
.vs-i-users{--i:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.75%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M16%2021v-2a4%204%200%200%200-4-4H6a4%204%200%200%200-4%204v2%22/%3E%3Ccircle%20cx%3D%229%22%20cy%3D%227%22%20r%3D%224%22/%3E%3Cpath%20d%3D%22M22%2021v-2a4%204%200%200%200-3-3.87%22/%3E%3Cpath%20d%3D%22M16%203.13a4%204%200%200%201%200%207.75%22/%3E%3C/svg%3E")}
.vs-i-user{--i:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.75%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%228%22%20r%3D%225%22/%3E%3Cpath%20d%3D%22M20%2021a8%208%200%200%200-16%200%22/%3E%3C/svg%3E")}
.vs-i-copy{--i:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.75%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20width%3D%2214%22%20height%3D%2214%22%20x%3D%228%22%20y%3D%228%22%20rx%3D%222%22/%3E%3Cpath%20d%3D%22M4%2016c-1.1%200-2-.9-2-2V4c0-1.1.9-2%202-2h10c1.1%200%202%20.9%202%202%22/%3E%3C/svg%3E")}
.vs-i-pencil{--i:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.75%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M17%203a2.85%202.83%200%201%201%204%204L7.5%2020.5%202%2022l1.5-5.5Z%22/%3E%3C/svg%3E")}
.vs-i-log{--i:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.75%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M15%202H6a2%202%200%200%200-2%202v16a2%202%200%200%200%202%202h12a2%202%200%200%200%202-2V7Z%22/%3E%3Cpath%20d%3D%22M14%202v4a2%202%200%200%200%202%202h4%22/%3E%3Cpath%20d%3D%22M16%2013H8%22/%3E%3Cpath%20d%3D%22M16%2017H8%22/%3E%3Cpath%20d%3D%22M10%209H8%22/%3E%3C/svg%3E")}
.vs-i-trash{--i:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.75%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%206h18%22/%3E%3Cpath%20d%3D%22M19%206v14c0%201-1%202-2%202H7c-1%200-2-1-2-2V6%22/%3E%3Cpath%20d%3D%22M8%206V4c0-1%201-2%202-2h4c1%200%202%201%202%202v2%22/%3E%3C/svg%3E")}
.vs-i-play{--i:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.75%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpolygon%20points%3D%226%203%2020%2012%206%2021%206%203%22/%3E%3C/svg%3E")}
.vs-i-stop{--i:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.75%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20width%3D%2214%22%20height%3D%2214%22%20x%3D%225%22%20y%3D%225%22%20rx%3D%222%22/%3E%3C/svg%3E")}
.vs-i-refresh{--i:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.75%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%2012a9%209%200%200%201%209-9%209.75%209.75%200%200%201%206.74%202.74L21%208%22/%3E%3Cpath%20d%3D%22M21%203v5h-5%22/%3E%3Cpath%20d%3D%22M21%2012a9%209%200%200%201-9%209%209.75%209.75%200%200%201-6.74-2.74L3%2016%22/%3E%3Cpath%20d%3D%22M8%2016H3v5%22/%3E%3C/svg%3E")}
.vs-i-rotate{--i:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.75%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%2012a9%209%200%201%200%209-9%209.75%209.75%200%200%200-6.74%202.74L3%208%22/%3E%3Cpath%20d%3D%22M3%203v5h5%22/%3E%3C/svg%3E")}
.vs-i-help{--i:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.75%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%2210%22/%3E%3Cpath%20d%3D%22M9.09%209a3%203%200%200%201%205.83%201c0%202-3%203-3%203%22/%3E%3Cpath%20d%3D%22M12%2017h.01%22/%3E%3C/svg%3E")}
.vs-i-logout{--i:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.75%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M9%2021H5a2%202%200%200%201-2-2V5a2%202%200%200%201%202-2h4%22/%3E%3Cpolyline%20points%3D%2216%2017%2021%2012%2016%207%22/%3E%3Cline%20x1%3D%2221%22%20x2%3D%229%22%20y1%3D%2212%22%20y2%3D%2212%22/%3E%3C/svg%3E")}
.vs-i-key{--i:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.75%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%227.5%22%20cy%3D%2215.5%22%20r%3D%225.5%22/%3E%3Cpath%20d%3D%22m21%202-9.6%209.6%22/%3E%3Cpath%20d%3D%22m15.5%207.5%203%203L22%207l-3-3%22/%3E%3C/svg%3E")}
.vs-i-server{--i:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.75%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20width%3D%2220%22%20height%3D%228%22%20x%3D%222%22%20y%3D%222%22%20rx%3D%222%22%20ry%3D%222%22/%3E%3Crect%20width%3D%2220%22%20height%3D%228%22%20x%3D%222%22%20y%3D%2214%22%20rx%3D%222%22%20ry%3D%222%22/%3E%3Cline%20x1%3D%226%22%20x2%3D%226.01%22%20y1%3D%226%22%20y2%3D%226%22/%3E%3Cline%20x1%3D%226%22%20x2%3D%226.01%22%20y1%3D%2218%22%20y2%3D%2218%22/%3E%3C/svg%3E")}
.vs-i-clock{--i:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.75%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%2210%22/%3E%3Cpolyline%20points%3D%2212%206%2012%2012%2016%2014%22/%3E%3C/svg%3E")}
.vs-i-alert{--i:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.75%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m21.73%2018-8-14a2%202%200%200%200-3.48%200l-8%2014A2%202%200%200%200%204%2021h16a2%202%200%200%200%201.73-3%22/%3E%3Cpath%20d%3D%22M12%209v4%22/%3E%3Cpath%20d%3D%22M12%2017h.01%22/%3E%3C/svg%3E")}
.vs-i-external{--i:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.75%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M15%203h6v6%22/%3E%3Cpath%20d%3D%22M10%2014%2021%203%22/%3E%3Cpath%20d%3D%22M18%2013v6a2%202%200%200%201-2%202H5a2%202%200%200%201-2-2V8a2%202%200%200%201%202-2h3%22/%3E%3C/svg%3E")}
.vs-i-download{--i:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.75%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%2015V3%22/%3E%3Cpath%20d%3D%22M21%2015v4a2%202%200%200%201-2%202H5a2%202%200%200%201-2-2v-4%22/%3E%3Cpath%20d%3D%22m7%2010%205%205%205-5%22/%3E%3C/svg%3E")}

/* ==== VoySpeak ControlBot app layer ==================================== */
:root {
	--vs-page-max: 1680px;
	--vs-page-pad: 32px;
	--vs-ok: #3ddc84;
	--vs-danger: #ff6b6b;
	--vs-warn: #e0b87a;
	--vs-text-2: #b7c4d6;
	--vs-text-3: #7f8da3;
	--vs-hair: rgba(246, 243, 235, 0.08);
	--vs-hover: rgba(246, 243, 235, 0.04);
	--vs-ease: cubic-bezier(0.2, 0, 0, 1);
}

.vs-mono { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.vs-dim { color: var(--vs-text-2); }
.vs-num { text-align: right !important; }

/* ---- Page frame: full width ------------------------------------------ */
.vs-header, #vs-menu, #vs-main { padding-left: max(var(--vs-page-pad), calc((100% - var(--vs-page-max)) / 2)) !important; padding-right: max(var(--vs-page-pad), calc((100% - var(--vs-page-max)) / 2)) !important; }
#vs-main { max-width: none !important; margin: 0; padding-top: 32px; padding-bottom: 96px; box-sizing: border-box; }
.topspacer:empty { display: none; }
#vs-main div.topspacer:not(:empty) { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 8px 0 24px; text-align: left; }
.vs-header { gap: 16px; }
.vs-header-right, #plusminusbutton { display: none !important; }

/* ---- Navigation (logged in) ------------------------------------------ */
#vs-menu:has(.vs-nav) { padding-top: 0; padding-bottom: 0; background: var(--vs-bg-soft); }
.vs-nav { display: flex !important; align-items: center; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; min-height: 52px; max-width: none !important; margin: 0 !important; }
.vs-nav-main, .vs-nav-user { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
#vs-menu .vs-nav-link, .vs-nav-name {
	display: inline-flex; align-items: center; gap: 8px;
	height: 36px; padding: 0 12px; border-radius: 8px;
	font-size: 14px; font-weight: 500; color: var(--vs-text-2);
	transition: background-color 0.15s var(--vs-ease), color 0.15s var(--vs-ease);
}
#vs-menu .vs-nav-link:hover { color: var(--vs-text); background: var(--vs-hover); }
#vs-menu .vs-nav-link.is-active { color: var(--vs-text); background: var(--vs-elevated); box-shadow: inset 0 0 0 1px var(--vs-hair); }
.vs-nav-name { color: var(--vs-text); }
.vs-nav-extra { display: inline-flex; align-items: center; gap: 12px; margin-left: 8px; padding-left: 16px; border-left: 1px solid var(--vs-hair); font-size: 13px; }
.vs-nav-extra .framemenublock_single, .vs-nav-extra .framemenublock_nowidth { display: inline-flex; align-items: center; gap: 6px; width: auto; min-width: 0; height: auto; min-height: 0; padding: 0; line-height: 1; }
.vs-nav-extra img.middle { display: none; }
.vs-nav-extra #languagename { display: none; }
.vs-nav-extra .languageimagechooser { vertical-align: middle; border-radius: 2px; }
#framemenu_smallscreen { display: none !important; }
@media only screen and (max-width: 699px) {
	#framemenu_bigscreen.vs-nav { display: flex !important; padding: 8px 0; }
	.vs-nav-name, .vs-nav-extra { display: none; }
}

/* ---- Headings --------------------------------------------------------- */
#vs-main .title, #vs-main h1.title, #vs-main h2.title {
	font-size: 20px !important; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3;
	color: var(--vs-text); border: 0; padding: 0; margin: 0 0 16px;
}
#vs-main h2.title { font-size: 17px !important; }
#vs-main .title .vs-dim { font-weight: 500; }
.vs-pagehead, .vs-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin: 0 0 16px; }
.vs-pagehead .title, .vs-section-head .title { margin: 0 !important; }
.vs-section-head { margin-top: 40px; }
#vs-main > h2.title { margin-top: 40px; }

/* ---- Buttons ---------------------------------------------------------- */
.vs-btn, #vs-main .vs-btn:visited {
	display: inline-flex; align-items: center; gap: 8px;
	height: 36px; padding: 0 14px; box-sizing: border-box;
	font-size: 14px; font-weight: 500; line-height: 1; white-space: nowrap;
	color: var(--vs-text) !important; background: var(--vs-elevated);
	border: 1px solid var(--vs-hair); border-radius: 8px;
	transition: background-color 0.15s var(--vs-ease), border-color 0.15s var(--vs-ease);
}
.vs-btn:hover { background: #253352; border-color: var(--vs-line-strong); }
.vs-btn .vs-i { color: var(--vs-text-2); }
.vs-btn-primary, #vs-main .vs-btn-primary:visited { background: var(--vs-accent); border-color: transparent; color: var(--vs-on-accent) !important; font-weight: 600; }
.vs-btn-primary .vs-i { color: var(--vs-on-accent); }
.vs-btn-primary:hover { background: var(--vs-accent-hover); }
.vs-btn-danger, #vs-main .vs-btn-danger:visited { color: #ffc9c9 !important; }
.vs-btn-danger .vs-i { color: var(--vs-danger); }
.vs-btn-danger:hover { background: rgba(255, 107, 107, 0.12); border-color: rgba(255, 107, 107, 0.35); }
.vs-btn-group { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.vs-btn-group:empty { display: none; }

#vs-main input[type="submit"], #vs-main button[type="submit"] {
	height: 40px; padding: 0 20px; margin: 0; font-size: 14px; font-weight: 600; border-radius: 8px;
	display: inline-flex; align-items: center; gap: 8px;
}
#vs-main input.vs-btn-secondary { background: var(--vs-elevated); color: var(--vs-text); border: 1px solid var(--vs-line-strong); font-weight: 500; height: 38px; }
#vs-main input.vs-btn-secondary:hover { background: rgba(255, 107, 107, 0.12); border-color: rgba(255, 107, 107, 0.4); color: #ffc9c9; }
#vs-main .vs-btn-primary-sm { height: 38px; }
#vs-main .vs-btn-primary-sm .vs-i { color: var(--vs-on-accent); }

.vs-icon-btn {
	display: inline-flex; align-items: center; justify-content: center;
	width: 32px; height: 32px; border-radius: 8px; color: var(--vs-text-3) !important;
	transition: background-color 0.15s var(--vs-ease), color 0.15s var(--vs-ease);
}
.vs-icon-btn:hover { background: var(--vs-elevated); color: var(--vs-text) !important; }
.vs-icon-btn.vs-icon-danger:hover { background: rgba(255, 107, 107, 0.12); color: var(--vs-danger) !important; }

/* ---- Cards, tables ---------------------------------------------------- */
.vs-card { background: var(--vs-card); border: 1px solid var(--vs-hair); border-radius: 14px; }
.vs-table-card { overflow: hidden; margin: 0 0 24px; }
#vs-main table.vs-table { width: 100%; margin: 0; border: 0; border-radius: 0; background: none; border-collapse: collapse; }
#vs-main table.vs-table th {
	background: transparent !important; color: var(--vs-text-3) !important;
	font-size: 13px; font-weight: 500; letter-spacing: 0; text-align: left;
	height: 44px; padding: 0 16px !important; border-bottom: 1px solid var(--vs-hair); white-space: nowrap;
}
#vs-main table.vs-table th a, #vs-main table.vs-table th a:visited { color: var(--vs-text-3); }
#vs-main table.vs-table th a:hover { color: var(--vs-text); }
#vs-main table.vs-table td { height: 52px; padding: 0 16px !important; border-bottom: 1px solid var(--vs-hair); font-size: 14px; vertical-align: middle; }
#vs-main table.vs-table tbody tr:last-child td { border-bottom: 0; }
#vs-main table.vs-table tr.functionlist:hover { background: var(--vs-hover); }
#vs-main table.vs-table .vs-col-dot { width: 12px; padding-right: 0 !important; }
#vs-main table.vs-table .vs-actions { width: 1%; white-space: nowrap; text-align: right; padding-right: 10px !important; }
#vs-main table.vs-table .vs-actions .vs-icon-btn + .vs-icon-btn { margin-left: 0; }
.vs-rowlink, #vs-main .vs-rowlink:visited { color: var(--vs-text) !important; font-weight: 600; }
.vs-rowlink:hover { color: var(--vs-accent-hover) !important; }
#vs-main table.vs-table td.vs-dim { color: var(--vs-text-2); }

/* Status dots: live (images swapped by script) and static */
img.vs-dotimg {
	width: 8px; height: 8px; border-radius: 50%; padding: 0; vertical-align: middle;
	object-fit: none; object-position: 100px 100px; background: var(--vs-text-3);
}
img.vs-dotimg[src*="bullet_green"] { background: var(--vs-ok); box-shadow: 0 0 0 3px rgba(61, 220, 132, 0.16); }
img.vs-dotimg[src*="bullet_red"] { background: var(--vs-danger); box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.14); }
.vs-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--vs-text-3); vertical-align: middle; }
.vs-dot.is-on { background: var(--vs-ok); box-shadow: 0 0 0 3px rgba(61, 220, 132, 0.16); }
.vs-dot.is-off { background: var(--vs-danger); box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.14); }
.vs-dot.is-warn { background: var(--vs-warn); }
.vs-dot.is-base { background: var(--vs-text-3); }

/* ---- Bot header ------------------------------------------------------- */
.vs-bot { background: var(--vs-card); border: 1px solid var(--vs-hair); border-radius: 14px; padding: 24px; margin: 0 0 8px; }
.vs-bot-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.vs-bot-kicker { font-size: 13px; color: var(--vs-text-3); margin-bottom: 4px; }
.vs-bot-name { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; margin: 0; color: var(--vs-text); word-break: break-word; }
.vs-status {
	display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px;
	border-radius: 8px; background: var(--vs-bg-soft); border: 1px solid var(--vs-hair);
	font-size: 14px; font-weight: 500; color: var(--vs-text); white-space: nowrap;
}
.vs-status a { color: var(--vs-warn); }
.vs-bot-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px 32px; margin: 24px 0 0; padding: 20px 0 0; border-top: 1px solid var(--vs-hair); }
.vs-bot-facts dt { font-size: 13px; color: var(--vs-text-3); margin: 0 0 4px; font-weight: 500; }
.vs-bot-facts dd { margin: 0; font-size: 15px; color: var(--vs-text); }
.vs-bot-facts dd a.highlight_green, .vs-bot-facts dd a.highlight_green:visited { color: var(--vs-ok); }
.vs-bot-facts dd a.highlight_yellow, .vs-bot-facts dd a.highlight_yellow:visited { color: var(--vs-warn); }
.vs-bot-facts dd a.highlight_red, .vs-bot-facts dd a.highlight_red:visited { color: var(--vs-danger); }
.vs-bot-actions { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 24px; }
.vs-bot-actions #botstatus_buttons:not(:empty) { padding-right: 16px; border-right: 1px solid var(--vs-hair); }
@media only screen and (max-width: 699px) {
	.vs-bot { padding: 20px 16px; }
	.vs-bot-top { flex-direction: column; }
	.vs-bot-actions #botstatus_buttons:not(:empty) { border-right: 0; padding-right: 0; }
}

/* ---- Panels and inline forms ------------------------------------------ */
.vs-panel { padding: 8px 24px; margin: 0 0 24px; }
.vs-panel-row { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding: 16px 0; border-bottom: 1px solid var(--vs-hair); }
.vs-panel-row:last-child { border-bottom: 0; }
.vs-stat-label { color: var(--vs-text-2); font-size: 14px; }
.vs-stat-value { font-size: 20px; font-weight: 600; color: var(--vs-text); margin-left: 8px; }
.vs-panel-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.vs-form-label { font-size: 14px; color: var(--vs-text); font-weight: 500; }
.vs-form-controls { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
#vs-main .vs-form-controls select, #vs-main .vs-form-controls .textinput { margin: 0; height: 38px; min-width: 220px; }
.vs-check { display: inline-flex !important; align-items: center; gap: 8px; width: auto !important; font-size: 14px; color: var(--vs-text-2); cursor: pointer; }
#vs-main .vs-check input { margin: 0; }
.vs-panel-title { font-size: 16px; font-weight: 600; margin: 16px 0 8px; color: var(--vs-text); }
.vs-help { font-size: 14px; line-height: 1.6; color: var(--vs-text-2); max-width: 90ch; margin: 0 0 16px; }
.vs-addfn { padding: 8px 24px 24px; }
.vs-help-box, .vs-notice-box {
	padding: 12px 16px; margin: 8px 0 16px; border-radius: 10px;
	background: var(--vs-bg-soft); border: 1px solid var(--vs-hair); color: var(--vs-text-2); font-size: 14px; text-align: left;
}
.vs-help-box { flex-basis: 100%; }
#statusscreen.vs-notice-box, #botstatusscreen.vs-notice-box { color: var(--vs-text); border-color: rgba(47, 155, 255, 0.3); background: var(--vs-accent-soft); font-weight: 500; }
.vs-footnote { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin: 8px 0 0; font-size: 13px; color: var(--vs-text-3); }

/* ---- Settings forms (fieldset + label/control rows) -------------------- */
#vs-main fieldset, #vs-main fieldset.small {
	max-width: none; width: auto; box-sizing: border-box;
	background: var(--vs-card) !important; border: 1px solid var(--vs-hair); border-radius: 14px;
	box-shadow: none; padding: 0 24px 8px; margin: 0 0 24px; min-width: 0;
}
#vs-main legend {
	float: left; width: 100%; box-sizing: border-box; padding: 20px 0 4px; margin: 0;
	font-size: 16px; font-weight: 600; color: var(--vs-text);
}
#vs-main legend + * { clear: both; }
#vs-main fieldset .botmanagerdescription { clear: both; font-weight: 400; font-size: 14px; color: var(--vs-text-2); padding: 0 0 16px; margin: 0; max-width: 90ch; }
#vs-main fieldset .botmanagerwarning { color: var(--vs-warn); font-size: 14px; padding: 0 0 12px; }
#vs-main fieldset .botmanagerwarning:empty { display: none; }
#vs-main fieldset > p, #vs-main fieldset > div.functionssettings, #vs-main fieldset > div.settings {
	clear: both;
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 520px); gap: 8px 48px; align-items: start;
	padding: 20px 0; margin: 0; border-top: 1px solid var(--vs-hair); border-bottom: 0 !important;
}
#vs-main fieldset > p > label, #vs-main fieldset > div.functionssettings > label {
	display: block; width: auto !important; min-width: 0; font-size: 14px; font-weight: 400; line-height: 1.6; color: var(--vs-text-2);
}
#vs-main fieldset .vs-control, #vs-main fieldset > p > :not(label) { min-width: 0; }
#vs-main fieldset select, #vs-main fieldset .textinput, #vs-main fieldset textarea, #vs-main fieldset input[type="text"], #vs-main fieldset input[type="password"] {
	width: 100% !important; max-width: 100%; margin: 0 !important; min-height: 40px;
}
#vs-main fieldset textarea { min-height: 120px; line-height: 1.5; }
#vs-main fieldset select[multiple], #vs-main fieldset select[size]:not([size="1"]) { min-height: 200px; padding: 6px; }
#vs-main select[multiple] option, #vs-main select[size]:not([size="1"]) option { padding: 6px 8px; border-radius: 6px; }
#vs-main select[multiple] option:checked { background: var(--vs-accent-soft) linear-gradient(0deg, var(--vs-accent-soft), var(--vs-accent-soft)); color: var(--vs-text); }
#vs-main hr.borderline { border: 0; border-top: 1px solid var(--vs-hair); margin: 0; }
#vs-main table.bbcode, #vs-main select.bbcode { margin-bottom: 8px; }
@media only screen and (max-width: 899px) {
	#vs-main fieldset > p, #vs-main fieldset > div.functionssettings, #vs-main fieldset > div.settings { grid-template-columns: 1fr; }
}
.vs-savebar {
	position: sticky; bottom: 41px; z-index: 5;
	display: flex; justify-content: flex-start; gap: 12px;
	padding: 16px 0; margin-top: -8px;
	background: linear-gradient(0deg, var(--vs-bg) 70%, rgba(10, 16, 24, 0));
}

/* Scrollbars inside dark controls */
#vs-main select, #vs-main textarea { scrollbar-color: #2c3d58 transparent; color-scheme: dark; }
html { color-scheme: dark; }

/* Reduce legacy spacing helpers inside the app */
#vs-main .framemenublock_single_nowidth { margin: 0 0 16px; }
#vs-main .bottommargin { margin-bottom: 16px; }

@media only screen and (max-width: 699px) { :root { --vs-page-pad: 16px; } #vs-main { padding-top: 20px; } }
body:has(.vs-login) #vs-main { padding-left: max(16px, calc(50% - 200px)) !important; padding-right: max(16px, calc(50% - 200px)) !important; padding-top: 24px; }

/* ---- User management ---------------------------------------------------- */
#vs-main [hidden], #vs-main fieldset > p.hidden { display: none !important; }
.vs-role {
	display: inline-flex; align-items: center; gap: 8px;
	font-size: 13px; color: var(--vs-text-2); white-space: nowrap;
}
.vs-role::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--vs-text-3); flex: none; }
.vs-role.is-admin { color: var(--vs-text); }
.vs-role.is-admin::before { background: var(--vs-accent); }
.vs-role.is-subadmin::before { background: transparent; box-shadow: inset 0 0 0 2px var(--vs-accent); }
.vs-role.is-user::before { background: var(--vs-ok); }
.vs-role.is-off { color: var(--vs-text-3); }
.vs-role.is-off::before { background: var(--vs-danger); }
.vs-sort, #vs-main .vs-sort:visited { display: inline-flex; align-items: center; gap: 4px; }
.vs-sort img { display: none; }
.vs-sort-arrow { color: var(--vs-accent); font-size: 12px; }
.vs-mail, #vs-main .vs-mail:visited { color: var(--vs-text-2) !important; }
.vs-mail:hover { color: var(--vs-text) !important; }
#vs-main table.vs-table .vs-num { text-align: right; width: 1%; white-space: nowrap; }

#vs-main input.vs-btn-danger-solid { background: #d94848; color: #fff; border: 1px solid transparent; }
#vs-main input.vs-btn-danger-solid:hover { background: #e85a5a; }
#vs-main input.vs-btn-secondary-neutral { background: var(--vs-elevated); color: var(--vs-text); border: 1px solid var(--vs-line-strong); font-weight: 500; }
#vs-main input.vs-btn-secondary-neutral:hover { background: #253352; }
.vs-confirm { padding: 20px 24px 24px; max-width: 760px; }
.vs-confirm .vs-help { margin: 0 0 16px; color: var(--vs-text); }
.vs-confirm .vs-help strong { font-weight: 600; }
.vs-confirm #userchooser { display: inline-flex; align-items: center; gap: 12px; color: var(--vs-text-2); font-size: 14px; }

#vs-main fieldset.vs-form-narrow { max-width: 960px; }
#vs-main fieldset.vs-form-narrow > p { grid-template-columns: minmax(160px, 260px) minmax(0, 1fr); gap: 8px 32px; align-items: center; padding: 16px 0; }
#vs-main fieldset.vs-form-narrow > p > label { color: var(--vs-text); font-weight: 500; }
#vs-main fieldset.vs-form-narrow > p.vs-fs-note { display: block; padding: 0 0 16px; border-top: 0; font-size: 14px; color: var(--vs-text-2); }
.vs-field-hint { display: block; margin-top: 4px; font-size: 13px; font-weight: 400; line-height: 1.5; color: var(--vs-text-3); }
.vs-tick { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 6px; border: 1px solid var(--vs-line-strong); background: var(--vs-bg-soft); vertical-align: middle; }
.vs-tick img { width: 14px; height: 14px; margin: 0; }
@media only screen and (max-width: 699px) {
	#vs-main fieldset.vs-form-narrow > p { grid-template-columns: 1fr; }
}

/* ---- Legacy tables not yet rebuilt -------------------------------------- */
#vs-main table.functionlist:not(.vs-table) {
	width: 100%; border-collapse: collapse; background: var(--vs-card);
	border: 1px solid var(--vs-hair); border-radius: 14px; overflow: hidden; margin: 0 0 24px;
}
#vs-main table.functionlist:not(.vs-table) tr.nospacer { display: none; }
#vs-main table.functionlist:not(.vs-table) th { text-align: left; font-size: 13px; font-weight: 500; color: var(--vs-text-3); padding: 12px 16px; border-bottom: 1px solid var(--vs-hair); }
#vs-main table.functionlist:not(.vs-table) td { padding: 12px 16px; border-bottom: 1px solid var(--vs-hair); font-size: 14px; vertical-align: middle; }
#vs-main table.functionlist:not(.vs-table) tr:last-child td { border-bottom: 0; }
.vs-table-card { overflow-x: auto; }
@media only screen and (max-width: 699px) {
	.vs-hide-sm { display: none !important; }
	#vs-main table.vs-table td, #vs-main table.vs-table th { padding-left: 12px !important; padding-right: 12px !important; }
}
@media only screen and (max-width: 699px) { .vs-role { white-space: normal; } }

/* ---- Tabs (log filter, web settings) ------------------------------------ */
.vs-tabs { display: flex; gap: 4px; flex-wrap: wrap; margin: 0 0 16px; padding: 4px; width: fit-content; max-width: 100%; box-sizing: border-box; background: var(--vs-bg-soft); border: 1px solid var(--vs-hair); border-radius: 10px; }
.vs-tab, #vs-main .vs-tab:visited {
	display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 7px;
	font-size: 14px; font-weight: 500; color: var(--vs-text-2) !important; white-space: nowrap; cursor: pointer;
	transition: background-color 0.15s var(--vs-ease), color 0.15s var(--vs-ease);
}
.vs-tab:hover { color: var(--vs-text) !important; background: var(--vs-hover); }
.vs-tab.is-active, #vs-main .vs-tab.is-active:visited { background: var(--vs-elevated); color: var(--vs-text) !important; box-shadow: inset 0 0 0 1px var(--vs-hair); }
.vs-tabs + #statusscreen, .vs-tabs + form > fieldset:first-of-type { margin-top: 0; }

/* ---- Log view ------------------------------------------------------------ */
.vs-log-meta { margin: 0 0 12px; font-size: 13px; color: var(--vs-text-3); white-space: pre-line; }
#vs-main .vs-panel-tools select.textinput { height: 36px; min-width: 0; margin: 0; }
#vs-main table.vs-logtable td { height: auto; padding-top: 10px !important; padding-bottom: 10px !important; vertical-align: top; font-size: 13px; }
#vs-main table.vs-logtable td.vs-logmsg { color: var(--vs-text); line-height: 1.55; word-break: break-word; min-width: 280px; }
#vs-main table.vs-logtable td a { color: var(--vs-text-2); }
#vs-main table.vs-logtable td a:hover { color: var(--vs-text); }
.vs-nowrap { white-space: nowrap; }
.vs-lvl { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: var(--vs-text-2); white-space: nowrap; }
.vs-lvl::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--vs-text-3); }
.vs-lvl.is-info::before { background: var(--vs-accent); }
.vs-lvl.is-status::before { background: var(--vs-ok); }
.vs-lvl.is-warn { color: var(--vs-warn); }
.vs-lvl.is-warn::before { background: var(--vs-warn); }
.vs-lvl.is-error, .vs-lvl.is-critical { color: #ffb3b3; }
.vs-lvl.is-error::before, .vs-lvl.is-critical::before { background: var(--vs-danger); }
.vs-pager { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin: -8px 0 24px; font-size: 13px; color: var(--vs-text-3); }
.vs-pager:empty { display: none; }
.vs-page, #vs-main .vs-page:visited { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 32px; padding: 0 8px; box-sizing: border-box; border-radius: 8px; color: var(--vs-text-2) !important; font-variant-numeric: tabular-nums; }
a.vs-page:hover { background: var(--vs-elevated); color: var(--vs-text) !important; }
.vs-page.is-current { background: var(--vs-elevated); color: var(--vs-text) !important; box-shadow: inset 0 0 0 1px var(--vs-line-strong); }
.vs-page-gap { padding: 0 4px; }

/* ---- Misc form bits ------------------------------------------------------ */
.vs-role.is-full::before { background: var(--vs-ok); box-shadow: 0 0 0 2px rgba(61, 220, 132, 0.25); }
.vs-static { font-size: 14px; color: var(--vs-text); line-height: 40px; }
.vs-static.highlight_green, .vs-static .highlight_green { color: var(--vs-ok); }
.vs-static.highlight_red, .vs-static .highlight_red { color: var(--vs-danger); }
.vs-savebar { align-items: center; flex-wrap: wrap; }
.vs-savebar-hint { font-size: 13px; color: var(--vs-text-3); }
.vs-savebar-hint:empty { display: none; }
#vs-main .vs-savebar input[name="MakeDefaultBot"] { background: var(--vs-elevated); color: var(--vs-text); border: 1px solid var(--vs-line-strong); font-weight: 500; }
#vs-main .vs-savebar input[name="MakeDefaultBot"]:hover { background: #253352; }
#vs-main fieldset .botmanagerdescription:empty { display: none; }
#vs-main fieldset.vs-form-narrow > p.vs-fs-stack { grid-template-columns: 1fr; }
.vs-agree { display: inline-flex; align-items: flex-start; gap: 12px; color: var(--vs-text); }
.vs-agree .vs-tick { flex: none; margin-top: 1px; }
.vs-confirm > .vs-btn { margin-top: 4px; }

.vs-legal { display: inline-flex; align-items: center; gap: 12px; }
.vs-login-foot .vs-legal a, .vs-nav-extra .vs-legal a { color: var(--vs-text-2); }
.vs-login-foot .vs-legal a:hover, .vs-nav-extra .vs-legal a:hover { color: var(--vs-text); }

/* ---- Markdown messages (welcome / maintenance) ------------------------ */
body:has(.vs-login) #vs-main { padding-left: max(16px, calc(50% - 380px)) !important; padding-right: max(16px, calc(50% - 380px)) !important; padding-top: 32px; font-size: 15px; }
.vs-md { color: var(--vs-text-2); font-size: 15px; line-height: 1.65; max-width: 760px; }
.vs-md > :first-child { margin-top: 0; }
.vs-md p { margin: 0 0 14px; padding: 0; }
.vs-md h2, .vs-md h3, .vs-md h4, #vs-main .vs-md .vs-md-title {
	color: var(--vs-text); font-weight: 600; letter-spacing: -0.01em; line-height: 1.3;
	margin: 28px 0 10px; padding: 0; border: 0;
}
.vs-md h2, #vs-main .vs-md .vs-md-title { font-size: 20px !important; }
.vs-md h3 { font-size: 17px; }
.vs-md h4 { font-size: 15px; }
.vs-md strong { color: var(--vs-text); font-weight: 600; }
.vs-md a { color: var(--vs-accent); }
.vs-md a:hover { color: var(--vs-accent-hover); }
.vs-md code {
	font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: 0.88em;
	color: var(--vs-text); background: var(--vs-elevated); border: 1px solid var(--vs-hair);
	padding: 1px 6px; border-radius: 6px;
}
.vs-md pre.vs-md-pre {
	margin: 0 0 16px; padding: 14px 16px; overflow-x: auto;
	background: var(--vs-bg-soft); border: 1px solid var(--vs-hair); border-radius: 10px;
	font-size: 13px; line-height: 1.6;
}
.vs-md pre.vs-md-pre code { background: none; border: 0; padding: 0; font-size: inherit; color: var(--vs-text); white-space: pre; }
.vs-md ul, .vs-md ol { margin: 0 0 14px; padding-left: 22px; }
.vs-md li { margin: 4px 0; }
.vs-md blockquote { margin: 0 0 14px; padding: 10px 16px; border-left: 2px solid var(--vs-line-strong); color: var(--vs-text-2); background: var(--vs-hover); border-radius: 0 8px 8px 0; }
.vs-md hr { border: 0; border-top: 1px solid var(--vs-hair); margin: 28px 0; }
.vs-md img.vs-md-img { height: 1em; width: auto; vertical-align: -2px; margin-right: 4px; border-radius: 2px; }
body:has(.vs-login) .vs-md { margin: 0 auto; }

/* ---- Login page: card left, message right ----------------------------- */
@media only screen and (min-width: 960px) {
	body:has(.vs-login) {
		display: grid;
		grid-template-columns: minmax(32px, 1fr) 400px minmax(0, 820px) minmax(32px, 1fr);
		column-gap: 56px;
		align-items: start;
	}
	body:has(.vs-login) > .vs-header { grid-column: 1 / -1; }
	body:has(.vs-login) > #vs-menu {
		grid-column: 2; padding: 48px 0 0 !important; position: sticky; top: 64px;
		display: block; background: none; border: 0;
	}
	body:has(.vs-login) > #vs-main {
		grid-column: 3; padding: 48px 0 96px !important; min-width: 0;
	}
	body:has(.vs-login) .vs-md { margin: 0; max-width: none; }
}
