html {
	min-height: 100%;
}

body {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: center;
	padding: 48px 16px 32px;
	box-sizing: border-box;
	margin: 0;
	font-family: Tahoma;
	font-size:0.8em;
	/* background-color:#F4F4EE */
}

*, *::before, *::after {
	box-sizing: border-box;
}

* { margin: 0; padding: 0 }
*::-moz-focus-inner { border:0 }

*:focus
{ 
	-moz-outline:none; 
	outline:none;
	ie-dummy:expression(this.hideFocus=true)
}

a:link { color:#BADCDD;	text-decoration:none }
a:hover { text-decoration:none }
a:visited {	color:#BADCDD }

.body,
#addchar {
	width: 100%;
	max-width: 504px;
}

.tabs {
	display: flex;
	gap: 24px;
	width: 100%;
	max-width: 504px;
	border-bottom: 1px solid #ebeae9;
}

.tab {
	background: none;
	border: none;
	border-bottom: 2px solid transparent;
	margin-bottom: -1px;
	padding: 0 0 8px;
	font: bold 14px Tahoma;
	color: #aaa6a1;
	cursor: pointer;
}

.tab.is-active {
	color: #706a66;
	border-bottom-color: #706a66;
}

.tab-panel {
	width: 100%;
	max-width: 504px;
	margin-top: 16px;
}

.empty-state {
	padding: 10px;
	color: #aaa6a1;
	font-size: 10px;
	text-shadow: 0 1px 0 #FFFFFF;
}

.empty-state:not([hidden]) {
	display: flex;
	flex-direction: column;
	gap: 10px;
	align-items: center;
	text-align: center;
}

.empty-state p {
	margin: 0;
}

.character-list {
	gap: 5px;
}

.character-list:not([hidden]) {
	display: flex;
	flex-direction: column;
}

.character-meta {
	color: #aaa6a1;
	font-size: 10px;
	line-height: 1.4;
}

.character-list-footer {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding-top: 5px;
}

.share-notice {
	margin: 0;
	max-width: 320px;
	color: #aaa6a1;
	font-size: 10px;
	line-height: 1.5;
	text-align: center;
	text-shadow: 0 1px 0 #FFFFFF;
}

.share-notice[hidden] {
	display: none;
}

.character-card--readonly,
.character-card--readonly:hover {
	cursor: default;
	background-color: #fbfbfb;
	border-color: #ebeae9;
}

.character-list--readonly .character-card--readonly {
	margin-bottom: 5px;
}

.delete-step {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.delete-step[hidden] {
	display: none;
}

.character-card .wrapper .delete-step {
	margin-top: 10px;
}

.block {
	width:100%;
	height:auto;
	padding:10px;
	background-color: #fbfbfb;
	border-width:1px 2px;
	border-color:#ebeae9;
	border-style:solid;
	cursor:pointer;
	color:#aaa6a1;
	font-size:10px;
	text-shadow:0 1px 0 #FFFFFF;
	margin-bottom:5px;
}.block:hover {
	background-color:#f3f2f2;
	border-color:#d3d0ce;
}

.disable,
.disable:hover {
	cursor:default;
	cursor:not-allowed;
	opacity:0.38;
	filter: grayscale(0.2);
	border-color:#ebeae9;
	background-color:#fbfbfb;
	pointer-events:none;
}

.active,
.active:hover {
	cursor:default;
	border-color:#ebeae9;
	background-color:#fbfbfb;
}

.valid,
.valid:hover {
	border-color:#c1e6a9;
	background-color: #f1f9eb;
}

.invalid,
.invalid:hover {
	border-color:#fbd6db;
	background-color:#fef5f6;
}

.block-title {
	font-weight:bold;
	color:#706a66;
	font-size:14px;
	margin-bottom:5px;
}

.wrapper {
	display:none;
	width:100%;
	overflow:hidden;
	height:0;
	opacity:0;
	transition: height 180ms ease, opacity 120ms ease;
}


.value {
	margin:10px 0;
	/*border-bottom:1px solid #ebeae9;*/
	padding-bottom:7px;
}

.value-text {
	width:100%;
	height: 30px;
	border:1px solid #ebeae9;
	padding:0 8px;
}.value-invalid {
	border-color:#ce1530;
}.value-valid {
	border-color:#dcf2d0;
}

.value-radio {
	width:100px;
	height: 30px;
	font-size:12px;
	border:1px solid #ccc;
	padding:0 6px;
	margin-bottom:3px;
	display:flex;
	align-items:center;

	cursor:pointer;
	color:#777777;
	line-height: 1;
	text-shadow:0 1px 0 #FFF;

	-moz-box-shadow:inset 0px 1px 0px 0px #ffffff;
	-webkit-box-shadow:inset 0px 1px 0px 0px #ffffff;
	box-shadow:inset 0px 1px 0px 0px #ffffff;
	background-color:#ededed;
	border:1px solid #dcdcdc;
}.value-radio:hover:not(.selected) {
	box-shadow:inset 0px 1px 0px 0px #ffffff;
	background-color:#f3f3f3;
	border-color:#d0d0d0;
}.selected {
	-moz-box-shadow:inset 0px 1px 0px 0px #bbdaf7;
	-webkit-box-shadow:inset 0px 1px 0px 0px #bbdaf7;
	box-shadow:inset 0px 1px 0px 0px #bbdaf7;
	background-color:#79bbff;
	border-color:#4699ed;
	color:#fff;
	text-shadow:0 1px 0 #528ecc;
}.value-radio.selected:hover {
	box-shadow:inset 0px 1px 0px 0px #c8e0ff;
	background-color:#8ac4ff;
	border-color:#5aa5f0;
}.value-radio input{
    position:absolute;
    clip: rect(0,0,0,0);
    clip: rect(0 0 0 0);
}

.select {
	position:relative;
	width:100%;
}.select-text {
	font:12px Tahoma;
	width:100%;
	min-height: 30px;
	height: auto;
	border:1px solid #ebeae9;
	padding:6px 28px 6px 8px;
	margin:10px 0 0;
	cursor:pointer;
	display:flex;
	align-items:center;
	background:#FFF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23777777' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E") no-repeat;
	background-position:right 8px center;
	color:#777;
	line-height: 1.2;
	white-space: normal;
	overflow-wrap: anywhere;
	z-index: 1;
}.value-select {
	display:none;
	position:absolute;
	left:0;
	top: 100%;
	width:100%;
	max-height:120px;
	font:12px Tahoma;
	list-style:none;
	overflow:auto;
	border-width:0 1px 1px;
	border-style:solid;
	border-color:#ebeae9;
	background-color:#FFF;
	z-index: 2;
}.select-item {
	padding:6px 8px;
	cursor:pointer;
	border-style:solid;
	border-width:1px 0;
	border-color:#fff;
	color:#777;
	line-height: 1.2;
	white-space: normal;
	overflow-wrap: anywhere;
}.select-item:hover {
	border-style:solid;
	border-width:1px 0;
	border-color:#4699ed;
	background-color:#79bbff;
	color:#fff;
	text-shadow:0 1px 0 #528ecc;
}

.server-combobox {
	position:relative;
	width:100%;
}.server-combobox-input {
	margin-top:10px;
	cursor:text;
	padding-right:28px;
}.server-combobox-clear {
	position:absolute;
	right:8px;
	top:calc(10px + 15px);
	width:20px;
	height:20px;
	padding:0;
	border:0;
	transform:translateY(-50%);
	cursor:pointer;
	background:transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%23777777' d='M8.06 1.06L5 4.12 1.94 1.06 1.06 1.94 4.12 5 1.06 8.06 1.94 8.94 5 5.88 8.06 8.94 8.94 8.06 5.88 5 8.94 1.94z'/%3E%3C/svg%3E") no-repeat center center;
	background-size:10px 10px;
}.server-combobox-clear:hover {
	background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%23444444' d='M8.06 1.06L5 4.12 1.94 1.06 1.06 1.94 4.12 5 1.06 8.06 1.94 8.94 5 5.88 8.06 8.94 8.94 8.06 5.88 5 8.94 1.94z'/%3E%3C/svg%3E");
}.server-combobox .value-select {
	margin-top:0;
	max-height:280px;
}

.button {
	-moz-box-shadow:inset 0px 1px 0px 0px #ffffff;
	-webkit-box-shadow:inset 0px 1px 0px 0px #ffffff;
	display:inline-flex;
	align-items:center;
	justify-content:center;
	height: 30px;
	font:11px Tahoma;
	font-weight:bold;
	padding:0 10px;
	cursor:pointer;
	line-height: 1;
	vertical-align: middle;
	transition: background-color 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}.ok {
	box-shadow:inset 0px 1px 0px 0px #a4e271;
	background-color:#89c403;
	border:1px solid #74b807;
	text-shadow:0px 1px 0px #528009;
	color:#FFF;
}.button.ok:hover:not(.disable) {
	box-shadow:inset 0px 1px 0px 0px #b8ed8a;
	background-color:#9bd40a;
	border-color:#82c008;
}.button.ok:active:not(.disable) {
	box-shadow:inset 0px 2px 4px 0px rgba(58, 88, 9, 0.35);
	background-color:#7aad03;
	border-color:#6a9f06;
}.cancel {
	box-shadow:inset 0px 1px 0px 0px #ffffff;
	background-color:#f5f5f5;
	border:1px solid #dcdcdc;
	color:#777777;
	text-shadow:0px 1px 0px #ffffff;
}.button.cancel:hover:not(.disable) {
	box-shadow:inset 0px 1px 0px 0px #ffffff;
	background-color:#ebebeb;
	border-color:#cfcfcf;
}.button.cancel:active:not(.disable) {
	box-shadow:inset 0px 2px 4px 0px rgba(0, 0, 0, 0.12);
	background-color:#e0e0e0;
	border-color:#c4c4c4;
}.danger {
	box-shadow:inset 0px 1px 0px 0px #f5a0ad;
	background-color:#ce1530;
	border:1px solid #b01228;
	text-shadow:0px 1px 0px #8f0f21;
	color:#FFF;
}.button.danger:hover:not(.disable) {
	box-shadow:inset 0px 1px 0px 0px #f7b3bd;
	background-color:#e01838;
	border-color:#c4142e;
}.button.danger:active:not(.disable) {
	box-shadow:inset 0px 2px 4px 0px rgba(111, 9, 22, 0.35);
	background-color:#b8122a;
	border-color:#a61025;
}.button.disable,
.button.disable:hover {
	cursor:not-allowed;
	opacity:0.38;
	filter: grayscale(0.2);
	pointer-events:none;
}

.text-error {
	display:none;
	color:#ce1530;
	margin-left:10px;
}

.clean{
	cursor: pointer;
	border-bottom:1px dotted #ce1530;
}

#p1, #p2, #p3 {
	display:none;
	margin-top:7px;
}

.form-footer {
	width:100%;
	display:flex;
	justify-content:center;
	gap:8px;
	flex-wrap:wrap;
	border-top:1px solid #ebeae9;
	padding:5px 0;
	margin-top:16px;
}.form-footer input {
	height: 30px;
	padding:0 10px;
	cursor:pointer;
}

@media (max-width: 640px) {
	body {
		padding: 16px 12px 24px;
	}

	.body,
	#addchar {
		max-width: 100%;
	}

	.block,
	.form-footer {
		padding-left: 8px;
		padding-right: 8px;
	}

	.value-radio {
		width: 100%;
	}

	.text-error {
		display: block;
		margin-left: 0;
		margin-top: 6px;
	}

	.button {
		margin-bottom: 4px;
	}

	.tabs {
		gap: 16px;
		flex-wrap: wrap;
	}
}
