#body {
	position: relative;
	overflow-y: scroll;
}

.noscript {
	position: fixed;
	display: block;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	padding-top: 20px;
	background-color: #eee;
	z-index: 9999;
	text-align: center;
	font-size:16px;
}

.noscript:after {
	content: "JavaScript已被禁用，请开启JavaScript支持后刷新重试";
	color: #a94442;
}


:root {
	--nav-height: 68px;
	--nav-font-size: 12px;
	--nav-brand-size: 16px;
	--nav-bg: #0f172a;
	--nav-surface: rgba(255, 255, 255, 0.05);
	--nav-border: rgba(255, 255, 255, 0.08);
	--nav-text: #e8edf7;
	--nav-muted: #9fb0c5;
	--nav-accent: #45d3c5;
	--body-font-size: 15px;
	--body-line-height: 1.6;
	--content-gutter: 18px;
}

body {
	font-size: var(--body-font-size);
	line-height: var(--body-line-height);
}

html[lang^='zh'] body {
	font-family: "PingFang SC", "Microsoft YaHei", "Raleway", sans-serif;
}

html[lang='en'] body {
	font-family: "Roboto", "Helvetica Neue", Arial, sans-serif;
}

html[lang='ja'] body {
	font-family: "Noto Sans JP", "Hiragino Kaku Gothic Pro", "Meiryo", sans-serif;
	letter-spacing: 0.03em;
}

html[lang='en'] .site-navbar .nav-label,
html[lang='en'] .site-navbar .nav-action-label {
	text-transform: capitalize;
}

html[lang='ja'] .site-navbar {
	letter-spacing: 0.03em;
}

.mt10 {
	margin-top: 10px;
}

.mt15 {
	margin-top: 15px;
}

.dropdown-menu {
	min-width: 150px;
	font-size: 13px;
}

.dropdown-menu.columns-2 {
	min-width: 400px;
}
.dropdown-menu.columns-3 {
	min-width: 600px;
}
.dropdown-menu li a {
	padding: 3px 15px;
	font-weight: 300;
}
.dropdown-menu .dropdown-header {
	font-size: 13px;
	padding: 3px 13px;
}
.dropdown-menu .divider {
	margin: 5px 0;
}
.multi-column-dropdown {
	list-style: none;
	padding-left: 0;
}
.multi-column-dropdown li a {
	display: block;
	clear: both;
	line-height: 1.428571429;
	color: #333;
	white-space: normal;
}
.multi-column-dropdown li a:hover {
	text-decoration: none;
	color: #262626;
	background-color: #f5f5f5;
}

.site-navbar {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1030;
	background: linear-gradient(135deg, #101a33 0%, #0b1224 100%);
	color: var(--nav-text);
	border-bottom: 1px solid var(--nav-border);
	box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}

.site-navbar .navbar-shell {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: var(--nav-height);
	padding: 0 var(--content-gutter);
	gap: 18px;
}

.navbar-left {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.navbar-brand-block {
	position: relative;
	display: flex;
	align-items: center;
	gap: 8px;
}

.navbar-brand-link {
	color: var(--nav-text);
	font-weight: 800;
	font-size: var(--nav-brand-size);
	letter-spacing: 0.4px;
	text-decoration: none;
	padding: 8px 0;
	white-space: nowrap;
}

.navbar-brand-link:hover,
.navbar-brand-link:focus {
	color: #fff;
	text-decoration: none;
}

.brand-mega {
	position: absolute;
	left: 0;
	top: calc(100% + 14px);
	background: #0b162c;
	border: 1px solid var(--nav-border);
	border-radius: 14px;
	box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
	padding: 18px 20px;
	min-width: 780px;
	max-width: min(1200px, calc(100vw - 2 * var(--content-gutter)));
	display: none;
	z-index: 3;
}

.brand-mega .mega-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 18px;
}

.mega-column {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.mega-header {
	font-size: calc(var(--nav-font-size) - 1px);
	font-weight: 700;
	color: #f1f5ff;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.mega-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.mega-list a {
	color: var(--nav-text);
	font-size: var(--nav-font-size);
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 8px;
	border-radius: 8px;
	transition: background 0.15s ease, color 0.15s ease, padding-left 0.15s ease;
}

.mega-list a:hover,
.mega-list a:focus {
	color: #fff;
	background: var(--nav-surface);
	padding-left: 12px;
	text-decoration: none;
}

.mega-extra {
	padding-top: 6px;
	border-top: 1px solid var(--nav-border);
}

.navbar-toggle {
	display: none;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 6px;
	width: 48px;
	height: 42px;
	border-radius: 12px;
	border: 1px solid var(--nav-border);
	background: var(--nav-surface);
	cursor: pointer;
}

.navbar-toggle .bar {
	display: block;
	width: 20px;
	height: 2px;
	background: var(--nav-text);
	border-radius: 2px;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.navbar-main {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex: 1;
	gap: 16px;
	min-width: 0;
	position: relative;
	z-index: 2;
}

.nav-links {
	list-style: none;
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 0;
	flex: 1;
	min-width: 0;
}

.nav-item {
	position: relative;
}

.nav-dropdown {
	position: relative;
}

.nav-label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 12px;
	font-size: var(--nav-font-size);
	font-weight: 600;
	color: var(--nav-text);
	background: transparent;
	border: 1px solid transparent;
	border-radius: 12px;
	cursor: pointer;
	transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.nav-label:hover,
.nav-label:focus {
	color: #fff;
	background: var(--nav-surface);
	border-color: var(--nav-border);
	text-decoration: none;
}

.dropdown-panel {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 240px;
	background: #0b162c;
	border: 1px solid var(--nav-border);
	border-radius: 12px;
	padding: 10px 0;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
	opacity: 0;
	transform: translateY(6px);
	pointer-events: none;
	transition: opacity 0.18s ease, transform 0.18s ease;
}

.nav-dropdown.is-open > .dropdown-panel {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

.dropdown-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.dropdown-list li a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 14px;
	color: var(--nav-text);
	font-size: calc(var(--nav-font-size) - 1px);
	text-decoration: none;
}

.dropdown-list li a:hover,
.dropdown-list li a:focus {
	color: #fff;
	background: var(--nav-surface);
	text-decoration: none;
}

.dropdown-divider {
	height: 1px;
	margin: 6px 12px;
	background: var(--nav-border);
}

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

.nav-action {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 12px;
	font-size: calc(var(--nav-font-size) - 3px);
	color: var(--nav-text);
	background: transparent;
	border: none;
	border-radius: 12px;
	cursor: pointer;
	transition: color 0.2s ease, transform 0.15s ease;
}

.nav-action:hover,
.nav-action:focus {
	color: #fff;
	text-decoration: none;
	transform: translateY(-1px);
}

.nav-language {
	position: relative;
}

.nav-language .dropdown-panel {
	right: 0;
	left: auto;
	min-width: 190px;
}

.nav-feedback {
	background: linear-gradient(120deg, #39c8c2 0%, #3ba6f6 100%);
	color: #0b1224;
	border: none;
	font-weight: 700;
}

.nav-feedback:hover,
.nav-feedback:focus {
	color: #0b1224;
}

.nav-search {
	display: flex;
	align-items: center;
	gap: 10px;
}

.nav-search-form {
	margin: 0;
	width: 100%;
}

.nav-search-input {
	width: 174px;
	max-width: 100%;
	padding: 10px 12px;
	font-size: calc(var(--nav-font-size) - 2px);
	border-radius: 12px;
	border: 1px solid var(--nav-border);
	background: rgba(255, 255, 255, 0.06);
	color: #f8fbff;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-search-input:focus {
	outline: none;
	border-color: var(--nav-accent);
	box-shadow: 0 0 0 3px rgba(69, 211, 197, 0.2);
	background: rgba(255, 255, 255, 0.08);
}

.navbar-backdrop {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
	z-index: 1;
	opacity: 0;
	transition: opacity 0.2s ease;
}

.site-navbar.is-mobile-open .navbar-backdrop {
	display: block;
	opacity: 1;
}

.navbar-brand-block.is-open .brand-mega {
	display: block;
}

body.nav-open {
	overflow: hidden;
}
 

#content {
	margin-top: calc(var(--nav-height) + 16px);
}

.ttitle {
	margin-top: -10px;
}

.ttitle dl {
	margin:0;
	padding-top: 28px;
}


.ttitle dl dd, .ttitle dl dt {
	float: left;
	padding-left: 8px;
	font-size: 13px;
}

p.bg-primary, p.bg-warning, p.bg-info, p.bg-success, p.bg-danger {
	padding: 0 15px;
	line-height: 40px;
}

.powerby {
	float:right;
	color:#666;
	line-height: 34px;
}

.usage-tip {
	float:left;
	color:#666;
	line-height: 34px;
}

.copy-btn {
	margin-left: 8px;
	color: #007bff;
	cursor: pointer;
	font-size: 12px;
	text-decoration: none;
}

.copy-btn:hover {
	color: #0056b3;
	text-decoration: none;
}

.copy-btn .glyphicon {
	margin-right: 3px;
}

.tips {
	position: relative;
	padding: 35px 10px 15px;
	margin: 15px;
	border-left: 8px solid #eee;
	word-break: break-all;
}

.tips:after {
	position: absolute;
	top: 5px;
	left: 10px;
	font-size: 12px;
	font-weight: 700;
	color: #959595;
	letter-spacing: 1px;
	content: "Tips:";
}

.tips li {
	line-height: 25px;
	font-size: 14px;
}

.pace {
  -webkit-pointer-events: none;
  pointer-events: none;

  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

.pace-inactive {
  display: none;
}

.pace .pace-progress {
  background: #999;
  position: fixed;
  z-index: 2000;
  top: 0;
  right: 100%;
  width: 100%;
  height: 2px;
}

/* homepage */
.homepage #content .row:first-child {margin-bottom: 40px;}
.homepage #tools-list tbody tr td {word-break: break-all;}
.homepage .page-header {border-bottom: 0;}
.homepage #footer {min-height:40px; background-color: #f5f5f5; padding-left: 0; padding-right: 0; text-align: center;}
.homepage #footer p {margin: 0; line-height: 40px; font-size: 12px; color:#999;}

/* responsive helpers */
.show-desktop-only {display: block;}
.show-mobile-inline {display: none;}
@media (max-width: 767px) {
	.show-desktop-only {display: none;}
	.show-mobile-inline {display: block;}
}

/* markdown */
.tools-markdown #markdown-input {position:relative; width:100%; height:480px;}
.tools-markdown .markdown-code {min-height: 480px;}
.tools-markdown #preview {height: 480px;}
.tools-markdown #md-draftbox {line-height: 34px;}
.tools-markdown #md-draftbox > span {display: none;}
@media all and (min-height: 760px) {
	.tools-markdown #markdown-input {position:relative; width:100%; height:620px;}
	.tools-markdown .markdown-code {min-height: 620px;}
	.tools-markdown #preview {height: 620px;}
}
@media all and (min-height: 880px) {
	.tools-markdown #markdown-input {position:relative; width:100%; height:740px;}
	.tools-markdown .markdown-code {min-height: 740px;}
	.tools-markdown #preview {height: 740px;}
}

/* json */
.tools-json #input {position:relative; width:100%; height:380px;}
@media all and (min-height: 760px) {
	.tools-json #input {height: 500px;}
}
@media all and (min-height: 880px) {
	.tools-json #input {height: 620px;}
}

/* less */
.tools-less .editor {height: 400px;}

/* less */
.tools-unserialize .editor {height: 400px;}

/* xmljson */
.tools-xmljson .editor {height: 400px;}

/* highlight */
.tools-highlight #editor {position:relative; width:100%; height:500px;}
.tools-highlight .input {min-height: 500px;}

/* sqlformat */
.tools-sqlformat .editor {height: 400px;}
.tools-sqlformat #output {height: 400px; overflow-y: scroll; border:1px solid #ccc;}
.tools-sqlformat #output pre {border: 0; font-size: 15px; color: black; background-color: white;}

/* protobuf */
.tools-protobuf .editor {height: 400px;}

/* timestamp */
.tools-timestamp #current_timestamp:hover:after {content: " [已暂停]"; color: #999;}

.tools-regex .delimiter { line-height: 34px; width:20px; float: left; text-align: center;}

/* Tool labels */
.tool-label {
    display: inline-block;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: bold;
    line-height: 1;
    margin-left: 5px;
    border-radius: 3px;
    vertical-align: middle;
}

.tool-label.hot {
    background-color: #ff4757;
    color: white;
}

.tool-label.new {
    background-color: #2ed573;
    color: white;
}

/* MBTI Personality Test */
.tools-mbti {
    padding: 20px 0;
}

/* MBTI页面容器 - 限制宽度和居中 */
.tools-mbti-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


.tools-mbti .well {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 15px;
    color: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin: 20px 0;
    padding: 30px;
}

.tools-mbti .progress {
    height: 25px;
    border-radius: 12px;
    background-color: #f0f0f0;
    box-shadow: none;
    margin-bottom: 30px;
}

.tools-mbti .progress-bar {
    background: linear-gradient(90deg, #4CAF50, #45a049);
    border-radius: 12px;
    transition: width 0.6s ease;
    font-weight: bold;
    font-size: 14px;
    line-height: 25px;
}

.tools-mbti .question-container {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    margin: 20px 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.tools-mbti .question-container h3 {
    color: #333;
    font-weight: 600;
    margin-bottom: 25px;
}

.tools-mbti .question-container .well-lg {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 25px;
    margin: 20px 0;
}

.tools-mbti .question-container h4 {
    color: #495057;
    font-weight: 500;
    line-height: 1.6;
    font-size: 18px;
}

.tools-mbti .option-btn {
    margin: 15px 0;
    padding: 20px 30px;
    border-radius: 10px;
    border: 2px solid #dee2e6;
    background: white;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: left;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tools-mbti .option-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.tools-mbti .option-btn.active {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}

.tools-mbti .option-btn .glyphicon {
    margin-right: 10px;
    font-size: 18px;
}

.tools-mbti .result-container {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin: 20px 0;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.tools-mbti .personality-type {
    text-align: center;
    margin-bottom: 30px;
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    color: white;
}

.tools-mbti .personality-type h1 {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.tools-mbti .personality-type h3 {
    font-size: 28px;
    font-weight: 500;
    margin: 0;
    opacity: 0.9;
}

.tools-mbti .personality-description {
    margin: 30px 0;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 5px solid #007bff;
}

.tools-mbti .personality-description p {
    font-size: 18px;
    line-height: 1.8;
    color: #495057;
    margin: 0;
}

.tools-mbti .panel {
    border: none;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    margin: 20px 0;
    overflow: hidden;
}

.tools-mbti .panel-heading {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    padding: 20px 25px;
    font-weight: 600;
    font-size: 18px;
}

.tools-mbti .panel-body {
    padding: 25px;
}

.tools-mbti .panel-primary .panel-heading {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.tools-mbti .panel-success .panel-heading {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
}

.tools-mbti .panel-info .panel-heading {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
}

.tools-mbti .panel ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.tools-mbti .panel ul li {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    font-size: 16px;
    display: flex;
    align-items: center;
}

.tools-mbti .panel ul li:last-child {
    border-bottom: none;
}

.tools-mbti .panel ul li .glyphicon {
    margin-right: 12px;
    font-size: 16px;
}

.tools-mbti .dimension-item {
    text-align: center;
    padding: 20px 15px;
}


.tools-mbti .dimension-item h5 {
    font-weight: 600;
    color: #495057;
    margin-bottom: 15px;
    font-size: 16px;
}

.tools-mbti .dimension-item .progress {
    height: 30px;
    background-color: #e9ecef;
    border-radius: 15px;
    margin-bottom: 10px;
    box-shadow: none;
}

.tools-mbti .dimension-item .progress-bar {
    font-size: 14px;
    font-weight: bold;
    line-height: 30px;
}

.tools-mbti .dimension-item small {
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
}

.tools-mbti .action-buttons {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #eee;
}

.tools-mbti .action-buttons .btn {
    margin: 0 10px 15px;
    padding: 15px 30px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 16px;
    min-width: 160px;
    transition: all 0.3s ease;
}

.tools-mbti .action-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.tools-mbti .action-buttons .btn-lg {
    padding: 18px 35px;
    font-size: 18px;
    min-width: 180px;
}

.tools-mbti #restart-test {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    border: none;
    color: white;
}

.tools-mbti #share-result {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    border: none;
    color: white;
}

.tools-mbti #print-result {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    border: none;
    color: white;
}


@media print {
	.tools-mbti .action-buttons,
	.tools-mbti .site-navbar,
	.tools-mbti .ttitle {
		display: none !important;
	}

    .tools-mbti .result-container {
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .tools-mbti .panel {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* Certificate Decoder */
.tools-certificate .upload-area {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    background-color: #f9f9f9;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 20px;
}

.tools-certificate .upload-area:hover,
.tools-certificate .upload-area.drag-over {
    border-color: #337ab7;
    background-color: #e8f4ff;
}

.tools-certificate .upload-area i {
    font-size: 48px;
    color: #ccc;
    margin-bottom: 15px;
}

.tools-certificate .certificate-input {
    min-height: 200px;
    font-family: 'Courier New', monospace;
    resize: vertical;
}

.tools-certificate .certificate-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 20px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tools-certificate .certificate-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tools-certificate .certificate-header .type-badge {
    background: rgba(255,255,255,0.2);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.tools-certificate .certificate-body {
    padding: 20px;
}

.tools-certificate .info-row {
    display: flex;
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.tools-certificate .info-row:last-child {
    border-bottom: none;
}

.tools-certificate .info-label {
    font-weight: bold;
    min-width: 150px;
    color: #555;
}

.tools-certificate .info-value {
    flex: 1;
    word-break: break-all;
}

.tools-certificate .fingerprint {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
}

.tools-certificate .copy-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
    margin-left: 8px;
}

.tools-certificate .copy-btn:hover {
    background: #218838;
}

.tools-certificate .warning-box {
    margin-top: 15px;
}

.tools-certificate .warning-item {
    padding: 8px 12px;
    margin-bottom: 5px;
    border-radius: 4px;
    font-size: 13px;
}

.tools-certificate .warning-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.tools-certificate .warning-warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
}

.tools-certificate .warning-info {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

.tools-certificate .hex-view {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 15px;
    margin-top: 15px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    max-height: 300px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-all;
}

.tools-certificate .export-buttons {
    margin-top: 15px;
    text-align: right;
}

.tools-certificate .export-buttons .btn {
    margin-left: 8px;
}

.tools-certificate .san-domains {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.tools-certificate .san-domain {
    background: #e9ecef;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 12px;
    color: #495057;
}

.tools-certificate .loading {
    text-align: center;
    padding: 40px;
}

.tools-certificate .error-message {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 15px;
    border-radius: 4px;
    margin: 20px 0;
}

.tools-certificate .file-input {
    display: none;
}

.tools-certificate .drop-zone {
	background: #e3f2fd;
	border-color: #2196f3;
}

/* Responsive tiers */
@media (max-width: 1023px) {
	:root {
		--nav-height: 60px;
		--nav-font-size: 11px;
		--nav-brand-size: 16px;
		--body-font-size: 15px;
		--content-gutter: 14px;
	}

	.site-navbar .navbar-shell {
		padding: 0 var(--content-gutter);
	}

	.navbar-toggle {
		display: inline-flex;
	}

	.site-navbar .navbar-main {
		display: none;
		position: fixed;
		top: var(--nav-height);
		left: 0;
		right: 0;
		bottom: 0;
		background: #0b1224;
		flex-direction: column;
		align-items: stretch;
		gap: 16px;
		padding: 18px var(--content-gutter) 32px;
		overflow-y: auto;
	}

	.site-navbar.is-mobile-open .navbar-main {
		display: flex;
	}

	.site-navbar .nav-links {
		flex-direction: column;
		align-items: stretch;
		gap: 4px;
		order: 1;
	}

	.site-navbar .nav-actions {
		order: 2;
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
	}

	.site-navbar .nav-search {
		order: 0;
		width: 100%;
	}

	.nav-search-input {
		width: 100%;
	}

	.site-navbar .nav-label,
	.site-navbar .nav-action {
		width: 100%;
		justify-content: space-between;
	}

	.site-navbar .nav-feedback {
		justify-content: center;
	}

	.site-navbar .dropdown-panel {
		position: static;
		opacity: 1;
		pointer-events: auto;
		transform: none;
		box-shadow: none;
		margin-top: 6px;
		display: none;
		background: rgba(255, 255, 255, 0.03);
		border-color: var(--nav-border);
	}

	.site-navbar .nav-dropdown.is-open > .dropdown-panel {
		display: block;
	}

	.site-navbar .dropdown-list li a {
		padding: 8px 10px;
	}

	.brand-mega {
		position: static;
		min-width: 0;
		max-width: none;
		width: 100%;
		margin-top: 6px;
		box-shadow: none;
	}

	.brand-mega .mega-grid {
		grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	}

	.ttitle dl {
		padding-top: 5px;
	}

	.ttitle dl dd,
	.ttitle dl dt {
		float: none;
		width: 100%;
	}

	.tools-mbti-container {
		padding: 0 15px;
	}

	.tools-mbti .question-container,
	.tools-mbti .result-container {
		padding: 20px;
		margin: 12px 0;
	}

	.tools-mbti .personality-type h1 {
		font-size: 34px;
	}

	.tools-mbti .personality-type h3 {
		font-size: 22px;
	}

	.tools-mbti .option-btn {
		margin: 10px 0;
		padding: 15px 20px;
		min-height: 70px;
		font-size: 15px;
	}

	.tools-mbti .action-buttons .btn {
		width: 100%;
		margin: 5px 0;
		padding: 12px 20px;
	}

	.tools-certificate .info-row {
		flex-direction: column;
	}

	.tools-certificate .info-label {
		min-width: auto;
		margin-bottom: 5px;
	}

	.tools-certificate .certificate-header {
		flex-direction: column;
		text-align: center;
		gap: 10px;
	}
}

@media (min-width: 1024px) {
	.navbar-toggle {
		display: none;
	}

	.navbar-brand-block:hover .brand-mega {
		display: block;
	}

	.nav-dropdown:hover > .dropdown-panel {
		opacity: 1;
		transform: translateY(0);
		pointer-events: auto;
	}
}

@media (min-width: 1024px) and (max-width: 1279px) {
	:root {
		--nav-height: 64px;
		--nav-font-size: 10px;
		--nav-brand-size: 14px;
		--body-font-size: 14px;
		--content-gutter: 18px;
	}

	.nav-search {
		display: none;
	}

	.ttitle dl {
		padding-top: 10px;
	}

	.tools-mbti-container {
		max-width: 960px;
		margin: 0 auto;
	}

	.tools-mbti .dimension-item .progress {
		max-width: 200px;
		margin: 15px auto 10px;
	}
}

@media (min-width: 1280px) and (max-width: 1439px) {
	:root {
		--nav-height: 68px;
		--nav-font-size: 12px;
		--nav-brand-size: 16px;
		--body-font-size: 15px;
		--content-gutter: 22px;
	}

	.tools-mbti-container {
		max-width: 1100px;
		margin: 0 auto;
	}

	.tools-mbti .personality-type {
		padding: 40px;
	}

	.tools-mbti .panel-body {
		padding: 30px;
	}

	.tools-mbti .dimension-item .progress {
		max-width: 240px;
	}
}

@media (min-width: 1440px) {
	:root {
		--nav-height: 72px;
		--nav-font-size: 14px;
		--nav-brand-size: 18px;
		--body-font-size: 16px;
		--content-gutter: 28px;
	}

	.nav-search-input {
		width: 214px;
	}

	.tools-mbti-container {
		max-width: 1280px;
		margin: 0 auto;
	}

	.tools-mbti .personality-type {
		padding: 48px;
	}

	.tools-mbti .panel-body {
		padding: 35px;
	}

	.tools-mbti .result-container {
		padding: 50px;
	}

	.tools-certificate .info-label {
		min-width: 200px;
	}
}
