:root{
    --n-height: 45px;
    --l-width: 160px;

    /* carousel */
    --bg-color: #f1f1f1;
	--card-width: 300px;
	--card-height: 400px;
	--black: #080808;
	--white: #fafafa;
	--accent: #ff2d55;
	--grid-color: rgba(0, 0, 0, 0.08);
	--frame-color: rgba(8, 8, 8, 0.8);
	--transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
	--transition-fast: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.nav{
    background-color: rgba(40, 40, 40, 0.1);
    padding: 0 10px !important;
    height: var(--n-height) !important;
}
.nav li a{
    color: #222 !important;
}
.nav li a.active{
    border-bottom: 1px solid #222 !important;
}
header.nav .logo img{
    display: block !important;
}

/* #data-bg{
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
} */

.wrapper{
    position: fixed;
    left: 0;
    top: var(--n-height);
    width: 100vw;
    height: calc(100vh - var(--n-height));
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    color: #000;
    /* font-family: system-ui; */
}

.left-bar{
    width: var(--l-width);
    height: 100%;
    /* border: 1px solid red; */
    background-color: #faf9fb;
    box-shadow: 0 2px 2px #000;
}

.right-bar{
    width: calc(100vw - var(--l-width));
    height: 100%;
    position: relative;
    /* border: 1px solid blue; */
}

.right-frame{
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
}

.right-frame.right-frame-main{
    background-color: #fff;
}

.rg-span i.fa-times{
    margin-left: 5px;
    margin-right: 3px;
    cursor: pointer;
    opacity: 0.5;
}

.rg-span i.fa-times:hover{
    color: red;
    opacity: 1;
}

.right-frame2{
    display: block;
    background-color: #fff;
}
.right-guild{
    width: 100%;
    height: 45px;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.right-main{
    width: 100%;
    height: calc(100% - 45px);
    /* border: 1px solid red; */
    position: relative;
}

.right-sub-main{
    width: 100%;
    height: 100%;
    overflow-y: auto;
}

.rg-span{
    clip-path: polygon(85% 0%, 100% 50%, 85% 100%, 0% 100%, 10% 50%, 0% 0%);
    background-color: #e0e0e0;
    padding: 4px 18px;
    height: 30px;
    font-family: monospace;
    cursor: pointer;
    display: flex;
    flex-direction: row;
    align-items: center;
    white-space: nowrap;
}

.rg-span:hover{
    opacity: 0.75;
}

.rg-span.active {
    background-color: #211f22;
    color: #e0e0e0;
}

.left-bar-top{
    width: 100%;
    padding: 10px;
    /* border: 1px solid red; */
    display: flex;
    align-items: center;
}

.left-bar-top .fas{
    float: right;
    font-size: 1.85em;
    color: #211f22;
    opacity: 0.5;
    cursor: default;
    /* margin-left: 5px; */
}

.left-bar-top .fas:hover{
    opacity: 1;
}

.left-bar-wrapper{
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.left-bar-item{
    width: calc(100% - 26px);
    margin: 8px 0;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    flex-direction: row;
    justify-content: center;
    border-radius: 35px;
    /* background-color: aquamarine; */
    /* background: radial-gradient(circle, #208fb1, rgb(58, 100, 238)); */
    /* background: linear-gradient(to left, #208fb1, rgb(58, 100, 238)); */
    /* border: 1px solid red; */
    color: #000;
    cursor: pointer;
}

.left-bar-item:hover{
    /* color: #fff; */
    background: rgba(40, 40, 40, 0.1);
}

.left-bar-item.active{
    color: #fff;
}

.left-bar-item:nth-child(1).active{
    background: linear-gradient(to left, #208fb1, rgb(58, 100, 238));
}

.left-bar-item:nth-child(2).active{
    background: linear-gradient(to left, rgb(32, 177, 38), rgb(58, 238, 161));
}

.left-bar-item:nth-child(3).active{
    background: linear-gradient(to left, rgb(174, 177, 32), rgb(139, 238, 58));
}

.left-bar-item:nth-child(4).active{
    background: linear-gradient(to left, rgb(139, 32, 177), rgb(238, 58, 190));
}

.left-bar-item:nth-child(5).active{
    background: linear-gradient(to left, rgb(177, 32, 32), rgb(238, 79, 58));
}

.left-bar-item:nth-child(6).active{
    background: linear-gradient(to left, rgb(32, 177, 143), rgb(58, 238, 205));
}

.left-bar-item .fas{
    width: 1.05em;
    height: 1.05em;
    font-size: 1.05em;
    display: flex;
    justify-content: center;
    align-items: center;
    /* border: 1px solid red; */
}

.lbi-text{
    white-space: nowrap;
    margin-left: 0.75em;
    width: 86px;
    font-size: 1.05em;;
    /* border: 1px solid red; */
}

/* custom */
.right-bar #right-title{
    margin-bottom: 14px;
}

.input-large{
    width: 860px;
    height: 40px;
    display: flex;
    flex-direction: row;
    align-items: center;
    /* border: 1px solid red; */
    overflow: hidden;
    border-radius: 10px;
    border: 2px solid rgba(40, 40, 40, 0.2);
}

.input-large input{
    height: 40px;
    font-size: 18px;

    outline: none;
    padding: 3px;
    width: calc(100% - 100px);
}

.input-large-go{
    width: 100px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    background-color: #208fb1;
    color: #fff;
    height: 100%;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 200ms ease-in;
}

.input-large-go i{
    margin-left: 3px;
}

.input-large-go:hover{
    background-color: #211f22;
}

.input-desc{
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: rgba(0, 0, 0, 0.5);
    margin-top: 15px;
    width: 860px;
    height: 82px;
    line-height: 1.25em;
    letter-spacing: 1.32px;
}

.input-desc li a{
    color: #888;
    margin: 0 3px;
}

.lt-center{
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* start carousel */
.carousel{
	position: relative;
	width: 100%;
	/* max-width: 1400px; */
	padding: 5vh 20px;
    overflow: hidden;
    /* border: 1px solid red; */
}

.land-market{
    width: 100%;
    height: calc(100vh - 160px) !important;
    /* border: 1px solid red; */
    overflow-y: auto !important;
    padding: 15px;
}
.land-input-desc{
    height: 32px;
}

.carousel-track {
	display: flex;
	transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
	padding: 40px 0;
	gap: 40px;
}

.carousel-controls {
	display: flex;
	justify-content: center;
	gap: 20px;
	margin-top: 30px;
}

.carousel-button {
	background: var(--black);
	color: var(--white);
	border: none;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: transform 0.3s ease, opacity 0.3s ease;
}

.carousel-button:hover {
	transform: translateY(-2px);
}

.carousel-button:active {
	transform: translateY(0);
}

.carousel-button svg {
	width: 24px;
	height: 24px;
}

.card-system {
	display: flex;
	gap: 40px;
}

.deconstructed-card {
	position: relative;
	width: var(--card-width);
	height: var(--card-height);
	cursor: pointer;
	transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
	transform-style: preserve-3d;
	flex-shrink: 0;
}

.card-layer {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	transition: transform var(--transition-slow), opacity var(--transition-slow);
}

.card-image {
	overflow: hidden;
	z-index: 1;
}

.wave-svg {
	width: 100%;
	height: 100%;
	transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-frame {
	z-index: 3;
	pointer-events: none;
}

.frame-path {
	fill: none;
	stroke: var(--frame-color);
	stroke-width: 1;
	stroke-dasharray: 1520;
	stroke-dashoffset: 1520;
	transition: stroke-dashoffset 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-background {
	z-index: 0;
	background-color: var(--white);
}

.bg-grid {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.grid-line {
	position: absolute;
	background-color: var(--grid-color);
	transition: transform var(--transition-slow), opacity var(--transition-fast);
}

.grid-line.horizontal {
	width: 100%;
	height: 1px;
	transform: scaleX(0.3);
	transform-origin: left;
}

.grid-line.vertical {
	height: 100%;
	width: 1px;
	transform: scaleY(0.3);
	transform-origin: top;
}

.bg-objects {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
}

.bg-object {
	position: absolute;
	opacity: 0.3;
	transition: transform var(--transition-slow), opacity var(--transition-slow);
}

.bg-object.circle {
	width: 100px;
	height: 100px;
	border-radius: 50%;
	border: 1px solid rgba(0, 0, 0, 0.1);
	bottom: 40px;
	left: -30px;
	transform: translateY(20px);
}

.bg-object.square {
	width: 60px;
	height: 60px;
	border: 1px solid rgba(0, 0, 0, 0.1);
	top: 40px;
	right: 30px;
	transform: rotate(45deg) translateY(-20px);
}

.bg-object.triangle {
	width: 0;
	height: 0;
	border-left: 40px solid transparent;
	border-right: 40px solid transparent;
	border-bottom: 70px solid rgba(0, 0, 0, 0.05);
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) scale(0.5);
}

.card-content {
	z-index: 2;
	padding: 30px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	height: 100%;
}

.ocean-content {
	color: var(--white);
}

.ocean-content .content-text,
.ocean-content .meta-text,
.ocean-content .cta-text {
	color: var(--white);
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.ocean-content .meta-line {
	background-color: var(--white);
}

.ocean-content .fragment-body {
	background: rgba(15, 30, 44, 0.5);
	padding: 10px;
	border-radius: 4px;
	backdrop-filter: blur(2px);
	margin-top: 1rem;
	margin-bottom: 1rem;
}

.content-fragment {
	position: relative;
}

.fragment-heading {
	margin-top: auto;
	margin-bottom: 1.5rem;
}

.content-text {
	font-size: 2rem;
	font-weight: 900;
	line-height: 1.2;
	letter-spacing: -0.02em;
	color: var(--black);
	transition: transform var(--transition-fast), opacity var(--transition-fast);
	transform: translateY(10px);
	opacity: 0.7;
}

.content-subtext {
	font-size: 0.875rem;
	font-weight: 500;
	letter-spacing: 0.05em;
	margin-top: 1rem;
	color: var(--black);
	opacity: 0.5;
	transform: translateY(10px);
	transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.fragment-meta {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 2rem;
}

.meta-line {
	width: 40px;
	height: 1px;
	background-color: var(--black);
	transform: scaleX(0.5);
	transform-origin: left;
	transition: transform var(--transition-fast);
}

.meta-text {
	font-family: "Space Mono", monospace;
	font-size: 0.75rem;
	letter-spacing: 0.05em;
	opacity: 0.6;
	transform: translateX(-5px);
	transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.fragment-body {
	max-width: 85%;
	margin: 1.5rem 0;
}

.fragment-body .content-text {
	font-size: 0.9rem;
	font-weight: 400;
	line-height: 1.5;
	letter-spacing: normal;
	opacity: 0.6;
}

.fragment-cta {
	margin-top: auto;
	overflow: visible;
}

.cta-link {
	text-decoration: none;
	position: relative;
	display: inline-flex;
	align-items: center;
	padding: 8px 0;
}

.cta-box {
	position: absolute;
	top: 0;
	left: -10px;
	width: calc(100% + 20px);
	height: 100%;
	background-color: var(--black);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform var(--transition-fast);
}

.ocean-content .cta-box {
	background-color: var(--white);
}

.cta-text {
	position: relative;
	font-family: "Space Mono", monospace;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	color: var(--black);
	transition: color var(--transition-fast);
	transform: translateX(-5px);
	opacity: 0.7;
	transition: transform var(--transition-fast), opacity var(--transition-fast),
		color var(--transition-fast);
}

.ocean-content .cta-text {
	color: var(--white);
}

.ocean-content .cta-link:hover .cta-text {
	color: var(--black) !important;
}

.align-right {
	text-align: right;
}

.text-align-right {
	align-self: flex-end;
	text-align: right;
}

.text-align-right .meta-line {
	transform-origin: right;
}

.text-align-right .cta-box {
	transform-origin: right;
}

.text-align-right .meta-text {
	transform: translateX(5px);
}

.text-card .content-text,
.text-card .content-subtext {
	color: var(--black);
}

.deconstructed-card:hover .frame-path {
	stroke-dashoffset: 0;
}

.deconstructed-card:hover .content-text,
.deconstructed-card:hover .content-subtext {
	transform: translateY(0);
	opacity: 1;
	transition-delay: 0.05s;
}

.deconstructed-card:hover .fragment-body .content-text {
	transition-delay: 0.1s;
	opacity: 1;
}

.deconstructed-card:hover .meta-text {
	transform: translateX(0);
	opacity: 1;
	transition-delay: 0.15s;
}

.deconstructed-card:hover .meta-line {
	transform: scaleX(1);
	transition-delay: 0.05s;
}

.deconstructed-card:hover .wave-svg {
	transform: scale(1.05);
}

.deconstructed-card:hover .cta-text {
	transform: translateX(0);
	opacity: 1;
	transition-delay: 0.2s;
}

.deconstructed-card:hover .cta-link:hover .cta-box {
	transform: scaleX(1);
}

.deconstructed-card:hover .cta-link:hover .cta-text {
	color: var(--white);
}

.text-card:hover .grid-line.horizontal {
	transform: scaleX(1);
}

.text-card:hover .grid-line.vertical {
	transform: scaleY(1);
}

.text-card:hover .bg-object {
	opacity: 1;
	transform: translate(0, 0) rotate(0);
}

.text-card:hover .bg-object.square {
	transform: rotate(45deg) translate(0, 0);
}

.text-card:hover .bg-object.triangle {
	transform: translate(-50%, -50%) scale(1);
}

.deconstructed-card:hover .grid-line:nth-child(1) {
	transition-delay: 0.1s;
}

.deconstructed-card:hover .grid-line:nth-child(2) {
	transition-delay: 0.2s;
}

.deconstructed-card:hover .grid-line:nth-child(3) {
	transition-delay: 0.3s;
}

.deconstructed-card:hover .grid-line:nth-child(4) {
	transition-delay: 0.15s;
}

.deconstructed-card:hover .grid-line:nth-child(5) {
	transition-delay: 0.25s;
}

.pregnancy-content .card-image svg {
	background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
}

.baby-content .card-image svg {
	background: linear-gradient(135deg, #4ecdc4, #7ee8e1);
}

.percentage-content {
	color: var(--black);
}

.percentage-content .card-image svg {
	background: linear-gradient(135deg, #ffd166, #ffe0a3);
}

.egg-content {
	color: var(--black);
}

.egg-content .card-image svg {
	background: linear-gradient(135deg, #06d6a0, #62f7d1);
}

.sleep-content {
	color: var(--white);
}

.sleep-content .card-image svg {
	background: linear-gradient(135deg, #118ab2, #5ac8e3);
}

.age-content {
	color: var(--white);
}

.age-content .card-image svg {
	background: linear-gradient(135deg, #073b4c, #3c7c8c);
}

.percentage-content .meta-line,
.egg-content .meta-line {
	background-color: var(--black);
}

.sleep-content .meta-line,
.age-content .meta-line {
	background-color: var(--white);
}

.percentage-content .content-text,
.percentage-content .meta-text,
.percentage-content .cta-text,
.egg-content .content-text,
.egg-content .meta-text,
.egg-content .cta-text {
	color: var(--black);
}

.sleep-content .content-text,
.sleep-content .meta-text,
.sleep-content .cta-text,
.age-content .content-text,
.age-content .meta-text,
.age-content .cta-text {
	color: var(--white);
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.sleep-content .cta-box,
.age-content .cta-box {
	background-color: var(--white);
}

.sleep-content .cta-link:hover .cta-text,
.age-content .cta-link:hover .cta-text {
	color: var(--black) !important;
}

.dots-container {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 20px;
}

.dot {
	width: 8px;
	height: 8px;
	background-color: var(--black);
	border-radius: 50%;
	opacity: 0.3;
	transition: transform 0.3s ease, opacity 0.3s ease;
	cursor: pointer;
}

.dot.active {
	opacity: 1;
	transform: scale(1.3);
}

.attribution {
	position: absolute;
	bottom: 20px;
	right: 20px;
	font-size: 12px;
	opacity: 0.7;
}

.attribution a {
	color: var(--black);
	text-decoration: none;
}

@media (max-width: 768px) {
	:root {
		--card-width: 280px;
		--card-height: 380px;
	}

	.card-content {
		padding: 20px;
	}

	.content-text {
		font-size: 1.8rem;
	}
}

.content-carousel .fragment-body {
    height: 400px;
    overflow-y: auto;
    padding: 3px 6px;
}
.content-carousel .content-text {
    padding: 4px 8px;
}
.content-carousel .fragment-meta {
    margin-bottom: 3px;
}
.content-carousel .fragment-heading {
    margin-bottom: 0;
}
/* end carouse */

/* start of tcc */
.tcc-wrapper{
    width: 100%;
    height: 100%;
    padding-bottom: 100px;
    overflow-y: auto;
}
.tcc{
    display: flex;
    flex-direction: row;
    width: 100%;
    overflow-x: auto;
    font-family: Verdana;
}
.tcc .tc-title{
    font-weight: bold;
    font-size: 1.25em;
    padding: 0.5em 0.95em;
}

.tcc-gr .tc-title{
    font-size: 0.85em;
    opacity: 0.6;
}

.tc-card{
    width: 300px;
    min-width: 300px;
    height: 100%;
    max-height: 400px;
    overflow: hidden;
    padding: 12px 18px;
    border-radius: 25px;
    margin-left: 25px;
    font-family: Arial;
    overflow-y: auto;
}

.tc-grad1{
    background: radial-gradient(circle at bottom left, rgba(255, 160, 160, 0.25), rgba(255, 255, 255, 0));
}
.tc-grad2{
    background: radial-gradient(circle at bottom left, rgba(180, 240, 160, 0.25), rgba(255, 255, 255, 0));
}

.tc-list{
    overflow: auto;
}

.tc-item{
    position: relative;
    width: 100%;
    height: 42.5px;
    overflow: hidden;
}
.tc-item-col{
    height: 360px;
    /* height: 105px; */
    /* overflow: auto; */
    background-color: white;
}
.tc-bgl{
    position: absolute;
    background-color: #fff;
    z-index: 0;
    width: 100%;
    height: 100%;
    transform: translateX(calc(-100% + 7.5px));
    transition: transform 200ms ease-in;
}
.tcc-gr .tc-bgl{
    background-color: rgba(0, 0, 0, .2);
}
.tc-li{
    position: absolute;
    padding: 4px 15px;
    padding-right: 8px;
    z-index: 2;
    display: flex;
    flex-direction: row;
    align-items: center;
    height: 100%;
    width: 100%;
    cursor: default;
}
.tc-item-col .tc-li{
    display: block;
}
.tc-li .tc-top{
    display: flex;
    flex-direction: row;
    align-items: center;
}
.tc-counter{
    width: 20px;
    font-family: Georgia;
    font-size: 12px;
    height: 20px;
    background-color: rgb(92, 92, 92);
    color: #fff;
    opacity: 0.65;
    border-radius: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.tcc-hv .tc-item:hover .tc-bgl{
    transform: none;
}
.tc-item .tc-img{
    width: 82.5px;
    height: 32.5px;
    border-radius: 10px;
    overflow: hidden;
    margin-left: auto;
}

.tc-item .tc-label{
    margin: 0 10px;
}
.tcc-gr .tc-item .tc-label{
    font-size: 1.25em;
    margin: 0 5px;
}

.tc-item .tc-img img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.tc-btm{
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
}
.tc-desc{
    font-size: 16px;
    text-indent: 2em;
    margin-top: 7px;
    /* display: none; */
    padding-bottom: 8px;
    letter-spacing: 1.35px;
    color: #666;
}

.tc-mdl{
    width: 100%;
    display: block;
    /* border: 1px solid red; */
}

.tc-mtg{
    display: inline-block;
    margin: 0.8px;
    padding: 2px 2px;
    border-radius: 3px;
    font-family: monospace;
    font-size: 11px;
    white-space: nowrap;
    border: 1px solid;
}
.tc-mtg:nth-child(1){
    color: darkorange;
}
.tc-mtg:nth-child(2){
    color: cadetblue;
}
.tc-mtg:nth-child(3){
    color: green;
}
/* .tc-li:hover .tc-btm{
    display: none;
}
.tc-li:hover .tc-desc{
    display: block;
} */
.tc-cell{
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1px;
}
.tc-cell:hover{
    box-shadow: 0 0 3px #000;
}
.tc-cell img{
    width: 33.5px;
    height: 33.5px;
    object-fit: cover;
    border-radius: 100%;
}
.tc-cell .tc-label-sm{
    font-size: 11px;
    white-space: nowrap;
}
.tc-pls{
    margin: 0 4px;
    color: #666;
}
/* end of tcc */

/* tooltip */
#input-tooltip{
    position: fixed;
    top: 0;
    left: 0;
    /* width: 350px; */
    display: block;
    height: 150px;
    z-index: 10000;
    /* background-color: #444; */
    background: rgba(40, 40, 40, 0.9);
    border-radius: 3px;
    overflow-y: auto;
    font-size: 22px;
}

#input-tooltip .input-tooltip-row{
    width: calc(100% - 4px);
    white-space: nowrap;
    padding: 6px 10px;
    overflow: hidden;
    font-family: monospace;
    color: #eee;
}

#input-tooltip .input-tooltip-row:hover{
    background-color: #000;
    color: #fff;
    cursor: pointer;
}
/* end of tooltip */

.fm-topbar,
.fm-top-bar,
.fm-info-stripe,
.fm-pie-wrapper{
    margin: 12px 20px;
    width: calc(100% - 40px);
    display: flex;
    flex-direction: row;
    align-items: center;
	box-shadow: 0 10px 20px -10px hsl(0 0% 50% / 0.5);
    justify-content: space-between;
    padding: 10px 20px;
    border-radius: 10px;
    overflow: hidden;
}

.fm-top-bar,
.fm-info-stripe{
    margin: 4px 20px;
    justify-content:initial;
	box-shadow: 0 10px 20px -15px hsl(0 0% 50% / 0.5);
}

.fm-topleft{
    display: flex;
    flex-direction: row;
    align-items: center;
}

.fm-top-title{
    font-weight: bold;
    font-size: 22px;
    font-family: Verdana;
}

.fm-swh-btn{
    color: rgb(36, 198, 198);
    margin-left: 15px;
    font-size: 14px;
    cursor: pointer;
}
.fm-swh-btn:hover{
    color: cadetblue;
}

.fm-range-wrapper{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.fm-ran-input{
    width: 80px;
    padding: 4px;
    outline: none;
    border: 1px solid rgba(0, 0, 0, 0.5);
    border-radius: 3px;
}

.top-range-mid{
    margin: 0 4px;
}

.fm-range-label{
    margin-right: 10px;
    color: rgb(56, 56, 56);
    font-weight: bold;
    font-family: system-ui;
}

.fm-i{
    font-size: 18px;
}

.fm-info-text{
    margin: 4px;
    margin-left: 15px;
    font-family: system-ui;
}

.fm-top-bar{
    font-family: Verdana;
    border-bottom: 3px solid rgba(15, 30, 44, 0.25);
}

.fm-top-tab{
    margin-left: 5px;
    margin-right: 15px;
    padding: 3px;
    border-bottom: 3px solid rgba(15, 30, 44, 0.25);
    cursor: pointer;
}

.fm-top-tab:hover,
.fm-top-tab.active{
    color: cadetblue;
    border-bottom: 3px solid cadetblue;
}

.fm-pie-wrapper{
    height: 600px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    position: relative;
}

.fm-pie{
    width: 560px;
    height: 560px;
    border-radius: 40px;
	box-shadow: 0 10px 20px -10px hsl(0 0% 50% / 0.5);
}

.fm-pt{
    width: 560px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    font-family: Verdana;
    font-weight: bold;
    font-size: 20px;
}

.fm-pie.fm-pie-sm{
    width: 360px;
    height: 360px;
    border-radius: 20px;
}
.fm-pt.fm-pt-sm{
    width: 360px;
    font-size: 16px;
}
.fm-pie-wrapper.fm-pie-wrapper-full{
    margin: 12px 20px;
    width: 100%;
    height: fit-content;
}
/* end of frame1 tab1 */

#right-popup{
    position: fixed;
    z-index: 32000;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    display: none;
    transition: opacity 400ms ease-in;
}

#rp-right-p{
    width: 400px;
    height: 100%;
    background-color: #fff;
    z-index: 1;
    box-shadow: 0 0 30px -12px #000;
}
#rp-left-p{
    height: 100%;
    width: calc(100% - 400px);
    z-index: 2;
    position: relative;
}
#rp-title{
    padding: 15px 25px;
    font-size: 19px;
    font-family: Verdana;
    font-weight: bold;
    letter-spacing: 1.25px;
    opacity: 0.75;
}
#rp-title::after{
    content: '代表机构';

}
.rp-dismiss{
    position: absolute;
    z-index: 4;
    top: 7.5px;
    right: 12px;
    font-size: 20px;
    cursor: pointer;
}
.rp-dismiss:hover{
    color: #f00;
}
.rp-srow{
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}
.checkbox-widget{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}
.checkbox-widget label{
    margin-left: 4px;
}
.input-widget{
    width: 300px;
    height: 45px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}
.input-widget input{
    width: 250px;
    padding: 2px;
    outline: none;
    border: 1px solid rgba(0, 0, 0, 0.5);
    font-size: 17px;
    border-radius: 3px;
}
.input-widget .fa-search{
    margin-left: 2px;
    color: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}
.input-widget .fa-search:hover{
    color: #000;
}

.rp-list{
    width: 100%;
    height: calc(100% - 100px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
}

.rp-body{
    width: calc(100% - 20px);
    height: calc(100% - 65px);
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow-y: auto;
}
.rp-li{
    padding: 8px 16px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
    cursor: default;
}
.rp-li:hover{
    color: #fff;
    background-color: #333;
}
.rp-footer{
    height: 45px;
    width: calc(100% - 20px);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}
.rp-footer-note{
    font-size: 14px;
    margin-right: 3px;
    white-space: nowrap;
}
.rp-paginator{
    width: calc(100% - 140px);
    padding: 4px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
}
.rp-item{
    font-family: Georgia;
    width: 20px;
    height: 20px;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.28);
    display: flex;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
}
.rp-item:hover{
    opacity: 0.5;
}
.rp-item.active{
    background-color: #211f22;
    color: #e0e0e0;
}
/* end of right popup */

.to-dismiss{
    opacity: 0;
}

/* 简单布局 */
.toolbar {
    position: absolute;
    z-index: 10;
    left: 16px;
    top: 16px;
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, .85);
    border-radius: 10px;
    padding: 8px 10px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .1);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.toolbar button {
    border: 0;
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    background: #f2f2f2;
}

.toolbar button.active {
    background: #111;
    color: #fff;
}

.toolbar .hint {
    font-size: 12px;
    color: #666;
    padding-left: 8px;
    align-self: center;
}

#migChart {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* cp */
.fm-pie-auto{
    display: block;
    overflow-y: auto;
}

.cp-maintabs{
    width: 100%;
}

.cp-t{
    padding: 4px 8px;
    background-color: rgba(26, 81, 99, 0.6);
    color: #fff;
    border-radius: 15px;
    overflow: hidden;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    cursor: default;
    user-select: none;
    white-space: nowrap;
    margin-left: 1px;
    margin-right: 3px;
}

.cp-tabadder{
    border-radius: 100%;
    width: 25px;
    height: 25px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(26, 81, 99, 0.45);
}
.cp-tabadder:hover{
    background-color: #333;
}

.cp-ti{
    margin-left: 5px;
    font-size: 0.8em;
    opacity: 0.75;
    cursor: pointer;
}

.cp-ti:hover{
    color: red;
}

.cp-container{
    margin: 10px;
    padding: 10px;
    border: 1.5px solid rgba(0, 0, 0, 0.1);
}

.cp-top{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;   
}

.cp-title{
    font-weight: bold;
    font-family: Verdana;
    font-size: 20px;
}

.cp-tabarea{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    background-color: rgba(137, 227, 231, 0.5);
    font-family: monospace;
    border-radius: 4px;
    overflow: hidden;
}

.cp-tab{
    white-space: nowrap;
    background-color: rgba(137, 227, 231, 0.5);
    padding: 2px 5px;
    cursor: pointer;
}

.cp-tab.active,
.cp-tab:hover{
    background-color: rgb(48, 133, 212);
    color: #fff;
}

.cp-wrapper{
    width: calc(100 - 30px);
    margin: 5px;
    padding: 10px;
	box-shadow: 0 10px 20px -10px hsl(0 0% 50% / 0.5);
}

.cp-pie-wrapper{
	display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
    grid-gap: 15px;
}

.cp-pie{
    width: 500px;
    height: 525px;
	box-shadow: 0 10px 20px -10px hsl(0 0% 50% / 0.5);
}
.cp-pie-title{
    width: 100%;
    height: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-family: Verdana;
}
.cp-pie-main{
    width: 500px;
    height: 500px;
}

.sab{
    position: fixed;
    z-index: 35000;
    top: 50px;
    left: 50px;
    width: 200px;
    height: 300px;
    border-radius: 5px;
    background-color: #fff;
    border: 1px solid #999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
	box-shadow: 0 5px 10px -5px hsl(0 0% 50% / 0.5);
    display: none;
}

.sab input{
    width: 180px;
    padding: 3px;
    outline: none;
    font-size: 16px;
    border: 1px solid rgba(102, 102, 102, 0.3);
    border-radius: 3px;
}

.sab .sab-list{
    width: 180px;
    height: 250px;
    min-height: 250px;
    margin: 5px;
    border: 1px solid rgba(102, 102, 102, 0.3);
    overflow: auto;
    cursor: default;
}

.sab .sab-list .sab-li{
    padding: 4px 8px;
    width: 100%;
    border-bottom: 1px solid rgba(102, 102, 102, 0.3);
}

.sab .sab-list .sab-li:hover{
    background-color: #555;
    color: #fff;
}

/* Cool, modern table styling for: <table class="cp-wrapper">…</table> */
table.cp-wrapper{
  --radius: 14px;
  --bg: rgba(28, 31, 38, 0.75);
  --bg-odd: rgba(255,255,255,0.03);
  --bg-even: rgba(255,255,255,0.06);
  --hover: rgba(255,255,255,0.10);
  --text: #e8edf7;
  --muted: #a9b3c7;
  --border: rgba(255,255,255,0.12);
  --glow1: #6EC1FF;
  --glow2: #8A7CFF;

  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  color: var(--text);
  background:
    radial-gradient(1200px 300px at 0% 0%, rgba(110,193,255,0.12), transparent 60%),
    radial-gradient(1200px 300px at 100% 100%, rgba(138,124,255,0.12), transparent 60%),
    var(--bg);
  backdrop-filter: saturate(120%) blur(8px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow:
    0 10px 25px rgba(0,0,0,0.35),
    0 0 0.5px 1px rgba(255,255,255,0.04) inset;
  overflow: hidden; /* helps on some browsers with rounded corners */
}

/* Head cells */
table.cp-wrapper thead th{
  font: 600 0.92rem/1.2 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  letter-spacing: .02em;
  padding: 14px 16px;
  text-align: center;
  color: #eaf2ff;
  position: relative;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  border-bottom: 1px solid var(--border);
  /* top rounded corners */
}
table.cp-wrapper thead th:first-child{
  border-top-left-radius: calc(var(--radius) - 1px);
}
table.cp-wrapper thead th:last-child{
  border-top-right-radius: calc(var(--radius) - 1px);
}

/* Subtle underline glow on headers */
table.cp-wrapper thead th::after{
  content: "";
  position: absolute; left: 10%; right: 10%; bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--glow1), var(--glow2), transparent);
  opacity: .35;
  filter: blur(1px);
}

/* Body cells */
table.cp-wrapper tbody td{
  padding: 14px 16px;
  text-align: center;
  font: 500 0.95rem/1.4 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color: var(--text);
  border-bottom: 1px dashed var(--border);
}

/* Row striping */
table.cp-wrapper tbody tr:nth-child(odd){ background: var(--bg-odd); }
table.cp-wrapper tbody tr:nth-child(even){ background: var(--bg-even); }

/* Hover effect */
table.cp-wrapper tbody tr{
  transition: background-color .25s ease, transform .15s ease;
}
table.cp-wrapper tbody tr:hover{
  background-color: var(--hover);
}

/* Last row border & bottom radius */
table.cp-wrapper tbody tr:last-child td{
  border-bottom: none;
}
table.cp-wrapper tbody tr:last-child td:first-child{
  border-bottom-left-radius: calc(var(--radius) - 1px);
}
table.cp-wrapper tbody tr:last-child td:last-child{
  border-bottom-right-radius: calc(var(--radius) - 1px);
}

/* Thin separators between columns (subtle, not full borders) */
table.cp-wrapper td + td,
table.cp-wrapper th + th{
  box-shadow: inset 1px 0 0 rgba(255,255,255,0.06);
}

/* Compact mode on small screens */
@media (max-width: 640px){
  table.cp-wrapper thead th,
  table.cp-wrapper tbody td{
    padding: 12px 10px;
    font-size: 0.9rem;
  }
}

/* report */
.report{
    width: 100%;
    height: 100%;
    overflow-y: auto;
}

.rower{
    width: 100%;
    height: 25px;
    padding: 0 10px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}
.rower.rower-normal{
    /* justify-content: start; */
    font-size: 0.75em;
    padding: 0 17.5px;
    margin: 4px 0;
}
.hor{
    display: flex;
    flex-direction: row;
    align-items: center;
    width: fit-content;
    /* border: 1px solid red; */
}
.rt-span-title{
    font-weight: bold;
    opacity: 0.45;
    font-family: Verdana;
}
.no-bold{
    font-weight: normal !important;
}
.rower.rower-normal a{
    margin-inline-start: 4px;
    text-decoration: none;
    color: inherit;
    opacity: 0.5;
}
.rower.rower-normal a:hover{
    opacity: 0.85;
    text-decoration: underline;
}
.rt-title{
    font-family: Verdana;
    font-weight: bold;
    opacity: 0.75;
}
.rt-uuid{
    font-family: system-ui;
    font-size: 0.85em;
    opacity: 0.5;
}

.report-section{
    display: block;
    padding: 10px;
    width: calc(100% - 20px);
    box-shadow: 3px 3px rgba(110,193,255,0.06), -2px -1px 3px rgba(140,143,145,0.12);
}

.report-section h3{
    font-family: serif;
}
.report-section .rp-sec{
    margin: 20px 10px;
    width: 100%;
    height: fit-content;
}
.rp-ai{
    width: 350px;
    /* border: 1px solid red; */
}
.rp-ai-left{
    border-left: 2px solid rgba(0, 0, 0, 0.09);
}
.rp-ai-right{
    border-right: 2px solid rgba(0, 0, 0, 0.09);
}
.rp-my{
    width: calc(100% - 357px);
    /* border: 1px solid red; */
}
.rp-her{
    width: calc(100% - 50px);
}

.rp-ai-title{
    padding: 5px;
    font-family: system-ui;
    border-bottom: 2px solid rgba(0, 0, 0, 0.07);
    display: flex;
    flex-direction: row;
    align-items: center;
}

.rp-ai-st{
    color: cadetblue;
    font-size: 0.75em;
    margin-left: 7.5px;
}

table.rt-wrapper {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
  font-size: 14px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  background-color: #fff;
  border: 1px solid #dee2e6;
}

table.rt-wrapper th,
table.rt-wrapper td {
  padding: 0.75rem;
  vertical-align: middle;
  text-align: center;
  border: 1px solid #dee2e6;
}
table.rt-wrapper th{
    white-space: nowrap;
}

table.rt-wrapper-sm th,
table.rt-wrapper-sm td {
  padding: 0.25rem;
}

/* 表头配色（可改为绿色主题：#28a745） */
table.rt-wrapper th {
  background-color: rgba(9, 76, 164, 0.6); /* 蓝色 */
  color: #fff;
  font-weight: 600;
}
table.rt-wrapper.rt-wrapper-light th {
  background-color: rgba(109, 176, 244, 0.1); 
  color: #000;
}

table.rt-wrapper-sm th {
  background-color: rgba(51, 164, 10, 0.6);
}

/* 奇偶行交替颜色 */
table.rt-wrapper tr:nth-child(even) td {
  background-color: #f8f9fa;
}

/* hover 效果 */
table.rt-wrapper tbody tr:hover td {
  background-color: #e9f5ff;
}

table.rt-wrapper td a{
    color: cadetblue;
}

/* skeleton */
.card-header-pl {
  height: 60px;
}

.card-header-pl img {
  object-fit: cover;
  height: 100%;
  width: 100%;
}

.card-content-pl {
  background-color: #fff;
  padding: 30px;
}

.card-content-rl{
    background-color: #fff;
    padding: 15px 20px;
    display: none;
}
.md-auto-format > p{
    padding: 10px 20px;
}

.card-title-pl {
  height: 20px;
  margin: 0;
}

.card-excerpt {
  color: #777;
  margin: 10px 0 20px;
}

.card-edit{
    color: #777;
    font-family: monospace;
}

.author-pl {
  display: flex;
}

.profile-img-pl {
  border-radius: 100%;
  overflow: hidden;
  height: 40px;
  width: 40px;
  min-width: 40px;
  min-height: 40px;
  margin-right: 10px;
}

.author-info {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  margin-left: 10px;
  width: 100px;
}

.author-info-pl small {
  color: #aaa;
  margin-top: 5px;
}

.author-info-pl small,
.author-info-pl strong{
    width: 70px;
}

.animated-bg {
  background-image: linear-gradient(
    to right,
    #f6f7f8 0%,
    #edeef1 10%,
    #f6f7f8 20%,
    #f6f7f8 100%
  );
  background-size: 200% 100%;
  animation: bgPos 1s linear infinite;
}

.animated-bg-text {
  border-radius: 50px;
  display: inline-block;
  margin: 0;
  height: 10px;
  width: 100%;
}

@keyframes bgPos {
  0% {
    background-position: 50% 0;
  }

  100% {
    background-position: -150% 0;
  }
}
/* end of skeleton */

/* fac */
.below-template{
    display: none;
}

#factory{
    left: 20vw;
    position: fixed;
    z-index: 2000000;
    background-color: #fff;
    /* width: 100vw; */
    width: 80vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    display: none;
}

.report h3 b{
    color: cadetblue;
}

.rp-subtitle{
    color: #aaa;
    padding: 4px;
    text-indent: 1.5em;
}

.wc-card{
    width: 450px;
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.wc-title{
    width: 100%;
    height: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
    background-color: cadetblue;
    border: 1px solid cadetblue;
    color: #fff;
}

.wc-chart{
    width: 100%;
    height: calc(100% - 25px);
    border: 1px solid cadetblue;
}

.horc{
    /* border: 1px solid red; */
    justify-content: center;
}


#ent-panel{
    left: 0;
    top: 0;
    position: fixed;
    z-index: 38000;
    background-color: #fff;
    /* width: 100vw; */
    width: 100vw;
    height: 100vh;
    /* display: flex; */
    /* justify-content: center; */
    /* align-items: center; */
    overflow-y: auto;
    /* fuck */
    display: none;
}
.ent-main{
    margin-left: calc(50vw - 550px);
    width: 1100px;
    /* height: 100%; */
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.05);
    /* border: 1px solid red; */
}

.ent-in-main{
    width: 100%;
}

.dismiss-el{
    position: absolute;
    z-index: 100;
    z-index: 4;
    top: 7.5px;
    right: 12px;
    font-size: 25px;
    cursor: pointer;
}
.dismiss-el:hover{
    color: #f00;
}

.ent-row{
    display: flex;
    flex-direction: row;
    align-items: center;
    width: calc(100% - 20px);
    padding: 10px;
    /* border: 1px solid red; */
}
.ent-row-sm{
    padding: 4px;
    width: calc(100% - 8px);
}

.ent-img-wrapper{
    width: 120px;
    height: 120px;
    min-width: 120px;
    min-height: 120px;
    /* border-radius: 4px; */
    margin-right: 10px;
    overflow: hidden;
    box-shadow: 0 0 1px #444;
}
.ent-img-wrapper img{
    width: 100%;
    height: 100%;
    object-fit: contain; /* 改成 contain 保持比例 */
    object-position: center; /* 居中 */
}

.w100{
    padding: 10px;
    width: calc(100% - 20px);
}

.ent-title{
    font-size: 32.5px;
    font-weight: bold;
    font-family: Verdana;
}

.ent-tag{
    padding: 4px 12px;
    white-space: nowrap;
    border-radius: 15px;
    margin-left: 5px;
    font-family: monospace;
    cursor: default;
    font-size: 16px;
}

.ent-tag:nth-child(1) {
    background-color: #9beed8; /* 浅绿松石 */
}
.ent-tag:nth-child(2) {
    background-color: #faf9b4; /* 浅黄色 */
}
.ent-tag:nth-child(3) {
    background-color: #c4eafb; /* 浅蓝色 */
}
.ent-tag:nth-child(4) {
    background-color: #f7e1c7; /* 浅橙色 */
}
.ent-tag:nth-child(5) {
    background-color: #eacff7; /* 浅紫色 */
}
.ent-tag:nth-child(6) {
    background-color: #fcdae7; /* 浅粉色 */
}

.ent-tag:hover{
    opacity: 0.75;
}

#emt-m{
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ent-stripe{
    width: 100%;
    display: flex;
    flex-direction: row;
    /* height: 110px; */
    padding: 5px;
    /* border: 1px solid red; */
    align-items: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.ent-slabel{
    /* height: auto; */
    /* flex: 1; */
    align-self: stretch;
    writing-mode: vertical-rl; /* 或 vertical-lr */
    text-orientation: upright;
    letter-spacing: 5px;
    font-family: Verdana;
    background-color: rgba(46, 214, 160, 0.3);
    color: green;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 20px;
}

.ents-cells{
    display: flex;
    flex-direction: row;
    align-items: center;
    width: calc(100% - 30px);
    overflow-y: auto;
}

.ents-cell{
    height: 200px;
    /* height: 100%; */
    margin-left: 6.5px;
    border-radius: 4px;
    padding: 0 7.5px;
    overflow: hidden;
    min-width: 180px;
    min-width: fit-content;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
}

.ch-frame{
    width: 30px;
    min-width: 30px;
    height: 30px;
    min-height: 30px;
    margin-right: 10px;
    background-color: rgba(46, 214, 160, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
}

.ent-span{
    font-size: 0.85em;
    white-space: nowrap;
    padding: 1px 4px;
    border-radius: 2px;
    font-family: monospace;
    margin: 2px;
}

.ent-s-name{
    white-space: nowrap;
}

.magenta{
    background-color: rgba(188, 75, 120, 0.8);
    color: #fff;
}
.green{
    background-color: rgba(23, 143, 35, 0.8);
    color: #fff;
}

.ent-col{
    font-family: system-ui;
}

.ent-tablet{
    margin-top: 3px;
    white-space: nowrap;
    padding: 2px 4px;
    border-radius: 3px;
    background-color: rgba(0, 0, 0, 0.035);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
}

.ent-tb-1{
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    padding: 1px 3px;
    border-radius: 3px;
    font-size: 0.85em;
}

.ent-td-span{
    padding: 1px 3px;
    white-space: nowrap;
    margin: 2px;
    background-color: rgba(0, 20, 0, 0.15);
    border-radius: 3px;
}

.ent-center-area{
    width: 100%;
    height: 120px;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    margin: 40px 0;
    /* border: 1px solid red; */
}

.ec-card{
    width: 200px;
    height: 100%;
    padding: 10px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    background-color: rgba(120, 150, 200, 0.035);
    box-shadow: 0 0 2px rgba(100, 150, 200, 0.35);
}

.ec-card i{
    color: cadetblue;
    font-size: 30px;
    margin-right: 10px;
}

.ec-card .ec-title{
    font-family: Verdana;
    white-space: nowrap;
    font-size: 20px;
    margin-bottom: 6px;
    color: cadetblue;
}

.ec-card .ec-num{
    font-weight: bold;
    font-size: 28px;
}

.ec-word-cloud{
    width: calc((100% - 50px));
    height: 400px;
    box-shadow: 0 0 10px rgba(100, 100, 100, 0.35);
    margin: 10px 0;
}

.ec-wchart{
    width: 100%;
    height: 100%;
}

.ec-ver{
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ec-main-list{
    margin-top: 10px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 25px;
}

.ec-list-title{
    font-weight: bold;
    font-family: Verdana;
    font-size: 28px;
    text-indent: 1.25em;
    margin: 0 10px;
    margin-bottom: 15px;
}

.ec-list{
    width: calc(100% - 50px);
    margin: 0 20px;
    box-shadow: 0 0 10px rgba(100, 100, 100, 0.35);
    /* height: 400px; */
    overflow: auto;
}

.ec-list-row{
    display: flex;
    flex-direction: row;
    align-items: center;
    width: calc(100% - 20px);
    padding: 10px;
    justify-content: space-between;
    /* border: 1px solid red; */
}

.ec-sub-row{
    display: flex;
    flex-direction: row;
    align-items: center;
    height: 100%;
    /* border: 1px solid blue; */
}

/* 外层行容器 */
.ec-row {
    display: flex;
    align-items: center;
    gap: 10px; /* 元素之间留空隙 */
    padding: 10px;
}

/* 下拉选择框 */
#ec-list-select {
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    font-size: 14px;
    line-height: 1.5;
    margin-right: 7.25px;
    transition: border-color .2s, box-shadow .2s;
}
#ec-list-select:focus {
    border-color: #66afe9;
    outline: 0;
    box-shadow: 0 0 4px rgba(102,175,233,.6);
}

/* 输入框 */
.ec-search-input {
    flex: 1; /* 占满可用空间 */
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color .2s, box-shadow .2s;
}
.ec-search-input:focus {
    border-color: #66afe9;
    outline: 0;
    box-shadow: 0 0 4px rgba(102,175,233,.6);
}

/* 按钮 */
.ec-search-btn {
    margin-left: 7.25px;
    background-color: #007bff; /* bootstrap 主色 */
    color: #fff;
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    user-select: none;
    transition: background-color .2s, box-shadow .2s;
}
.ec-search-btn:hover {
    background-color: #0056b3;
}
.ec-search-btn:active {
    background-color: #004085;
    box-shadow: inset 0 2px 4px rgba(0,0,0,.2);
}

.ec-list .rt-wrapper{
    margin: 0;
}

.ec-footer{
    display: flex;
    flex-direction: row;
    width: calc(100% - 20px);
    justify-content: flex-end;
    align-items: center;
}

.ec-footer .footer-text{
    font-weight: bold;
    font-family: Georgia;
    letter-spacing: 2px;
}

.ec-footer .rp-paginator{
    width: 350px;
    justify-content: space-between;
    margin-left: 25px;
}



/* list */
/* 轻量样式（可选） */
.ec-main-list.is-loading {
    opacity: 0.65;
    pointer-events: none;
}

/* 操作按钮 */
.ec-op-btn {
    padding: 4px 8px;
    margin-right: 6px;
    white-space: nowrap;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
}

.ec-op-btn:hover {
    box-shadow: 0 0 0 2px rgba(0, 0, 0, .04) inset;
}

/* 分页态样式 */
.rp-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 6px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    margin: 0 4px;
    cursor: pointer;
    user-select: none;
}

.rp-item.is-active {
    background: #111827;
    color: #fff;
    border-color: #111827;
}

.rp-item.is-disabled {
    opacity: .5;
    cursor: not-allowed;
}

/* toast */
.ec-toast {
    position: fixed;
    left: 50%;
    top: 20px;
    transform: translateX(-50%) translateY(-10px);
    padding: 8px 12px;
    background: rgba(0, 0, 0, .8);
    color: #fff;
    font-size: 12px;
    border-radius: 8px;
    opacity: 0;
    transition: .2s ease;
    z-index: 9999;
}

.ec-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* 商标小图 */
.sb-thumb-wrap { width: 42px; height: 42px; display:flex; align-items:center; justify-content:center; }
.sb-thumb { width: 100%; height: 100%; object-fit: contain; border-radius: 4px; border: 1px solid #eee; background: #fff; }

.ent-middle-bar{
    width: calc(100% - 40px);
    margin: 10px;
    padding: 10px;
    height: 45px;
    /* border: 1px solid red; */
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    box-shadow: 0 0 20px rgba(0, 0, 0, .09);
    border-radius: 40px;
}

.ent-mb{
    white-space: nowrap;
    width: 130px;
    height: 34.5px;
    /* border: 1px solid red; */
    border-radius: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 1px #000;
    transition: background-color 200ms ease-in, color 200ms ease-in, box-shadow 200ms ease-in;
}

.ent-mb.active{
    background-color: #333;
    color: #fff;
}

.ent-mb:hover{
    cursor: pointer;
    box-shadow: 0 0 3px #000;
}

.ent-container{
    display: none;
    width: 100%;
}

.ent-popup{
    position: fixed;
    left: calc(50vw - 375px);
    top: calc(50vh - 300px);
    z-index: 40000;
    width: 750px;
    height: 600px;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 0 80px rgba(0, 0, 0, .6);
    border-radius: 40px;
    overflow-y: auto;
    /* fuck */
    display: none;
}

#ent-pu-peo{
    z-index: 41000;
}

.ent-tt{
    border-left: 5px solid rgba(100, 220, 130, .4);
    font-size: 30px;
    font-family: Verdana;
    text-indent: 10px;
    margin-bottom: 14px;
}

.ent-ts{
    white-space: nowrap;
    font-family: system-ui;
    padding: 4px 12px;
    font-size: 16px;
    border-radius: 10px;
    display: inline;
    margin-left: 9px;
}

.ent-ts:nth-child(1){
    background-color: rgba(243, 225, 164, 0.4);
}
.ent-ts:nth-child(2){
    background-color: rgba(164, 192, 243, .4);
}
.ent-ts:nth-child(3){
    background-color: rgba(164, 243, 192, .4);
}

.ent-ps-sec{
    width: 100%;
    /* height: 300px; */
    padding: 10px;
    /* border: 1px solid red; */
}

.ent-tt-sm{
    border-left: 5px solid rgba(100, 124, 220, 0.4);
    font-size: 18px;
    font-family: Verdana;
    text-indent: 8px;
}

.ent-tabrow{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    width: 100%;
    height: 40px;
    border-radius: 40px;
    box-shadow: 0 0 20px rgba(0, 0, 0, .09);
}

.ent-tabrow span{
    padding: 0 12px;
    height: 32.5px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: Verdana;
    border: 1.5px solid rgba(95, 158, 160, 0.75);
    border-radius: 40px;
    color: cadetblue;
    cursor: pointer;
    transition: background-color 200ms ease-in, color 200ms ease-in, box-shadow 200ms ease-in;
}

.ent-tabrow span:hover{
    box-shadow: 0 0 2px #000;
}

.ent-tabrow span.active{
    background-color: cadetblue;
    color: #fff;
}

.skeleton-copier{
    display: none;
}

/* 企业列表 */
.comp-ent-wrap .cet-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0 12px;
}

.comp-ent-wrap .cet-title {
    font-weight: 600;
    font-size: 14px;
    color: #111827;
}

.comp-ent-wrap .cet-title .kw {
    padding: 2px 6px;
    border-radius: 6px;
    background: #eef2ff;
}

.comp-ent-wrap .cet-total {
    font-size: 13px;
    color: #6b7280;
}

.comp-ent-wrap .cet-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.comp-ent-wrap .cet-actions .btn {
    border: 1px solid #e5e7eb;
    padding: 6px 10px;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    font-size: 12px;
}

.comp-ent-wrap .cet-actions .btn:hover {
    box-shadow: 0 1px 2px rgba(0, 0, 0, .06);
}

.comp-ent-wrap .cet-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 4px;
}

@media(min-width: 1080px) {
    .comp-ent-wrap .cet-list {
        grid-template-columns: 1fr 1fr;
    }
}

.comp-ent-wrap .cet-card {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 12px;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
}

.comp-ent-wrap .cet-logo {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 8px;
    background: #f3f4f6;
    border: 1px solid #eee;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: Verdana;
    font-size: 40px;
}

.comp-ent-wrap .cet-body {
    min-width: 0;
}

.comp-ent-wrap .cet-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.comp-ent-wrap .cet-name {
    font-weight: 700;
    text-decoration: none;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.comp-ent-wrap .cet-status {
    font-size: 12px;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    padding: 2px 8px;
    background: #f9fafb;
    color: #111827;
    display: inline;
}

.comp-ent-wrap .cet-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    font-size: 12px;
    color: #4b5563;
}

.comp-ent-wrap .cet-meta .kv {
    white-space: nowrap;
}

.comp-ent-wrap .kv .k {
    color: #6b7280;
    margin-right: 2px;
}

.comp-ent-wrap .cet-phones {
    margin-top: 4px;
}

.comp-ent-wrap .cet-phone {
    display: inline-block;
    margin: 2px 6px 0 0;
    padding: 2px 8px;
    font-size: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #f9fafb;
}

.comp-ent-wrap .cet-scope {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.5;
    color: #374151;
}

.comp-ent-wrap .cet-scope.collapsed {
    -webkit-line-clamp: 3;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.comp-ent-wrap .cet-toggle {
    margin-top: 4px;
    background: transparent;
    border: none;
    color: #2563eb;
    cursor: pointer;
    font-size: 12px;
    padding: 0;
}

.comp-ent-wrap .cet-empty {
    padding: 24px;
    border: 1px dashed #e5e7eb;
    border-radius: 12px;
    background: #fafafa;
    color: #6b7280;
    text-align: center;
}

.comp-ent-wrap .cet-pager {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.comp-ent-wrap .cet-pager .btn {
    border: 1px solid #e5e7eb;
    background: #fff;
    border-radius: 8px;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 12px;
}

.comp-ent-wrap .cet-pager .btn[disabled] {
    opacity: .5;
    cursor: not-allowed;
}

.comp-ent-wrap .cet-pager .info {
    font-size: 12px;
    color: #6b7280;
    margin: 0 4px;
}

.comp-ent-wrap .cet-pager input[type=number] {
    width: 80px;
    padding: 6px 8px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 12px;
}

.space-chart{
    width: 100%;
    height: 500px;
}

/* searchable */
.popup-searchable{
    position: fixed;
    z-index: 40000;
    /* top: 20px; */
    /* left: 20px; */
    width: 600px;
    height: 200px;
    background-color: white;
    box-shadow: 0 0 40px rgba(0, 0, 0, .2);
    border-radius: 0 0 10px 10px;
    display: none;
}

.ps-top{
    width: 100%;
    height: 36px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.ps-top input{
    width: calc(100% - 100px);
    height: calc(100% - 8px);
    border: 1px solid cadetblue;
    font-size: 20px;
    border-radius: 4px;
    outline: none;
}

.ps-top .pst-btn{
    background-color: cadetblue;
    margin-left: 10px;
    width: 60px;
    height: calc(100% - 8px);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    border-radius: 4px;
    font-family: monospace;
    font-size: 12px;
    cursor: pointer;
}

.ps-top .pst-btn .fa-search{
    margin-left: 5px;
}

.ps-top .pst-btn:hover{
    opacity: 0.75;
}

.ps-bottom{
    width: 100%;
    /* border: 1px solid red; */
    padding: 2px;
    height: calc(100% - 36px);
    overflow-y: auto;
    display: flex;
    flex-wrap: wrap;  
    gap: 3px; 
}

.pst{
    font-family: monospace;
    padding: 2px 6px;
    border-radius: 2px;
    white-space: nowrap;
    background-color: rgba(228, 240, 173, 0.45);
}

.pst:nth-child(6n),
.cet-card:nth-child(6n) .cet-logo{
    background-color: rgba(220, 250, 210, 0.45);
}
.pst:nth-child(6n + 2),
.cet-card:nth-child(6n + 2) .cet-logo{
    background-color: rgba(210, 250, 250, 0.45);
}
.pst:nth-child(6n + 3),
.cet-card:nth-child(6n + 3) .cet-logo{
    background-color: rgba(210, 213, 250, 0.45);
}
.pst:nth-child(6n + 4), 
.cet-card:nth-child(6n + 4) .cet-logo{
    background-color: rgba(238, 210, 250, 0.45);
}
.pst:nth-child(6n + 5),
.cet-card:nth-child(6n + 5) .cet-logo{
    background-color: rgba(250, 239, 210, 0.45);
}

.pst:hover{
    background-color: #444;
    color: #fff;
    cursor: pointer;
}

/* cpl */
.cpl-sec-wrapper{
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cpl-sec{
    width: 100%;
}

.cpl-sec-top{
    display: flex;
    flex-wrap: wrap;   /* 只在项与项之间换行 */
    gap: 6px;          /* 可选：项间距 */
}

.cpl-top-tablet{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    background-color: rgba(0, 0, 0, .04);
    border-radius: 4px;
    white-space: nowrap;
}

.cpl-top-i{
    margin-right: 5px;
    font-size: 0.85em;
    opacity: 0.75;
}

.cpl-top-t{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.cpl-top-tn{
    margin-right: 10px;
    font-family: monospace;
    opacity: 0.8;
}

.cpl-top-tc{
    font-family: Verdana;
    font-size: 1.25em;
}

.cpl-chart{
    width: 1080px;
    height: 425px;
    margin: 15px 5px;
    box-shadow: 0 0 40px rgba(0, 0, 0, .2);
    border-radius: 20px;
    overflow: hidden;
}

/* patd */
/* Light Theme – drop-in replacement for previous CSS */
/* Root wrapper */
.patd {
  --bg: #f7f9fc;
  --card: #ffffff;
  --ink: #0b1020;
  --muted: #6b7280;
  --accent: #3b82f6;   /* azure */
  --accent-2: #8b5cf6; /* violet */
  --good: #10b981;
  --bad: #ef4444;
  --ring: #e5e7eb;
  --chip: #f3f6fb;
  --pill: #f4f5f7;
  --border: #e6e9f2;
  --grad: radial-gradient(1200px 600px at 10% -10%, rgba(59,130,246,.18), transparent 55%),
           radial-gradient(900px 500px at 110% 10%, rgba(139,92,246,.16), transparent 60%);
  color: var(--ink);
  background: var(--bg);
  background-image: var(--grad);
  padding: 16px;
  box-sizing: border-box;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "PingFang SC", "Microsoft Yahei", "Noto Sans CJK SC", Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

/* Topbar */
.patd-topbar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: start;
  margin-bottom: 14px;
}
.patd-ttl {
  font-size: clamp(20px, 3.4vw, 28px);
  line-height: 1.25;
  margin: 0 0 6px;
  letter-spacing: .2px;
}
.patd-ttl-a{
    margin-left: 3px;
    font-size: 14px;
    font-family: system-ui;
    color: #777;
}
.patd-pn {
  font-size: 13px;
  color: var(--muted);
}
.patd-pn-tags span{
    padding: 2px 4px;
    border: 1px solid;
    border-radius: 4px;
    font-family: monospace;   
    font-size: 12px;
    margin-left: 4px;
    margin-top: 3px;
    display: inline-block;
    white-space: pre;
}
.patd-status {
  align-self: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13px;
  background: linear-gradient(180deg, rgba(59,130,246,.06), rgba(139,92,246,.06));
  border: 1px solid var(--border);
  box-shadow: 0 6px 18px rgba(59,130,246,.08);
}
.patd-status--valid { color: var(--good); }
.patd-status--invalid { color: var(--bad); }
.patd-status .patd-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: currentColor; box-shadow: 0 0 10px currentColor;
}

/* Meta strip */
.patd-metas {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 16px;
}
.patd-meta {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 12px;
  display: grid;
  gap: 6px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  box-shadow: 0 4px 10px rgba(17,24,39,.05);
}
.patd-meta:hover { 
  transform: translateY(-2px); 
  box-shadow: 0 8px 20px rgba(17,24,39,.08);
  border-color: rgba(59,130,246,.35);
}
.patd-meta span { font-size: 12px; color: var(--muted); }
.patd-meta strong { font-weight: 600; font-size: 14px; letter-spacing: .2px; }
.patd-meta strong a{
    color: inherit;
}

/* Scores */
.patd-scores {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.patd-score {
  background: linear-gradient(180deg, rgba(59,130,246,.05), rgba(139,92,246,.05));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px;
  display: grid;
  gap: 10px;
  place-items: center;
  box-shadow: 0 4px 12px rgba(17,24,39,.06);
}
.patd-ring {
  --size: 76px;
  width: var(--size); height: var(--size);
  position: relative;
  border-radius: 50%;
  background: conic-gradient(var(--accent) calc(var(--pct)*1%), #e9eef7 0);
  display: grid; place-items: center;
  filter: drop-shadow(0 6px 14px rgba(59,130,246,.25));
}
.patd-ring__fill { position:absolute; inset:0; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(0,0,0,.03); }
.patd-ring__hole { position:absolute; inset:6px; background: var(--card); border-radius: 50%; box-shadow: inset 0 0 0 1px var(--ring); }
.patd-ring__txt { position: relative; font-weight: 700; font-size: 18px; color: #0b1220; }
.patd-score-cap { font-size: 12px; color: var(--muted); text-align: center; }

/* Pills */
.patd-pills { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin-bottom: 16px; }
.patd-pill-group { background: var(--card); border:1px solid var(--border); border-radius: 16px; padding: 12px; box-shadow: 0 4px 10px rgba(17,24,39,.05); }
.patd-pill-title { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.patd-pill-box { display: flex; flex-wrap: wrap; gap: 8px; }
.patd-pill {
  font-size: 12px;
  background: linear-gradient(180deg, #ffffff, #f7faff);
  padding: 8px 10px; border-radius: 999px; border: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(17,24,39,.05);
}
.patd-pill--empty { color: var(--muted); }
.patd-pill-a{
    cursor: default;
    color: inherit;
    text-decoration: none;
    background: linear-gradient(180deg, #ffffff, #d9e0eb);
}
.patd-pill-a:hover{
    background: linear-gradient(180deg, #ffffff, #b9c5da);
}

/* Abstract */
.patd-abs {
  background: linear-gradient(180deg, #ffffff, #f9fbff);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 16px;
  box-shadow: 0 6px 16px rgba(17,24,39,.06);
}
.patd-abs h2 { margin: 0 0 8px; font-size: 16px; }
.patd-abs p { margin: 0; color: #1f2937; line-height: 1.7; }

/* Timeline */
.patd-timeline { margin-bottom: 16px; }
.patd-timeline h2 { font-size: 16px; margin: 0 0 10px; }
.patd-tl-list { position: relative; display: grid; gap: 14px; }
.patd-tl-item { display: grid; grid-template-columns: 18px 1fr; align-items: start; gap: 10px; position: relative; }
.patd-tl-item::before{
  content:''; position:absolute; left:8px; top:0; bottom:-14px; width:2px; 
  background: linear-gradient(180deg, rgba(59,130,246,.35), rgba(139,92,246,.2));
}
.patd-tl-item:last-child::before{ bottom: 8px; }
.patd-tl-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 12px rgba(139,92,246,.45); border: 2px solid var(--card); }
.patd-tl-body { background: var(--card); border:1px solid var(--border); border-radius: 12px; padding: 10px 12px; box-shadow: 0 4px 10px rgba(17,24,39,.06); }
.patd-tl-date { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.patd-tl-txt { font-size: 14px; }

/* References */
.patd-refs { margin-bottom: 16px; }
.patd-refs h2 { font-size: 16px; margin: 0 0 10px; }
.patd-ref-list { display: grid; gap: 10px; }
.patd-ref {
  display: block; text-decoration: none; color: inherit;
  background: var(--card); border:1px solid var(--border); border-radius: 14px; padding: 10px 12px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
  box-shadow: 0 4px 10px rgba(17,24,39,.05);
}
.patd-ref:hover { 
  transform: translateY(-2px); 
  box-shadow: 0 10px 22px rgba(17,24,39,.08);
  border-color: rgba(59,130,246,.35);
  background: linear-gradient(180deg, #ffffff, #f7fbff);
}
.patd-ref-t { font-size: 14px; font-weight: 600; margin-bottom: 6px; color: #0f172a; }
.patd-ref-s { font-size: 12px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px; }

/* Collapsibles */
.patd-colls { display: grid; gap: 10px; margin-bottom: 16px; }
.patd-det {
  background: var(--card); border:1px solid var(--border); border-radius: 14px; padding: 10px 12px;
  box-shadow: 0 4px 10px rgba(17,24,39,.05);
}
.patd-det > summary {
  cursor: pointer; font-weight: 600; list-style: none; outline: none;
}
.patd-det > summary::-webkit-details-marker { display:none; }
.patd-det[open] > summary { color: var(--accent); }
.patd-det-body { margin-top: 8px; font-size: 14px; color: #1f2937; line-height: 1.65; }
.patd-det-body h2 { font-size: 14px; margin: 8px 0; }
.patd-det-body .claim-text { display: block; margin: 6px 0; }

/* Facts row */
.patd-facts {
  display: grid;
  grid-template-columns: repeat(6, minmax(0,1fr));
  gap: 10px;
  margin-bottom: 8px;
}
.patd-fact {
  background: var(--card); border:1px solid var(--border); border-radius: 14px; padding: 10px 12px; display: grid; gap: 6px;
  box-shadow: 0 4px 10px rgba(17,24,39,.05);
}
.patd-fact span { font-size: 12px; color: var(--muted); }
.patd-fact strong { font-size: 14px; }

/* Responsive */
@media (max-width: 1200px){
  .patd-metas { grid-template-columns: repeat(4, 1fr); }
  .patd-scores { grid-template-columns: repeat(3, 1fr); }
  .patd-pills { grid-template-columns: 1fr 1fr; }
  .patd-facts { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px){
  .patd-topbar { grid-template-columns: 1fr; }
  .patd-metas { grid-template-columns: repeat(2, 1fr); }
  .patd-scores { grid-template-columns: repeat(2, 1fr); }
  .patd-pills { grid-template-columns: 1fr; }
  .patd-facts { grid-template-columns: repeat(2, 1fr); }
  .patd { padding: 12px; }
}
@media (max-width: 420px){
  .patd-metas, .patd-scores, .patd-facts { grid-template-columns: 1fr; }
  .patd-ring { --size: 66px; }
}

/* ===== patd plant extensions (minimal, theme-safe) ===== */
.patd--plant .patd-topbar { grid-template-columns: 1fr auto auto; }

.patd-thumb{
  width: 160px; height: 120px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(17,24,39,.06);
  display: grid; place-items: center;
}
.patd-thumb img{ width:100%; height:100%; object-fit: cover; display:block; }
.patd-thumb-ph{ font-size: 32px; }

.patd-chartbox{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
.patd-chart{
  min-height: 300px;
  background: linear-gradient(180deg, #ffffff, #f7fbff);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(17,24,39,.02), 0 4px 10px rgba(17,24,39,.05);
  position: relative;
}
.patd-row{
    display: flex;
    flex-direction: row;
    align-items: center;
    /* justify-content: center; */
}
.patd-img-sm{
    width: 180px;
    min-width: 180px;
    max-width: 180px;
    object-fit: cover;
    margin: 3px 6px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, .06);
    overflow: hidden;
}
.patd-chart::after{
  content: attr(data-hint);
  position: absolute; left: 10px; top: 8px;
  font-size: 12px; color: var(--muted);
}
.patd-tl-txt-lb{
    font-weight: bold;
    font-size: 1.2em;
    margin: 4px 0;
}
.patd-tl-para img{
    max-width: 300px;
    max-height: 300px;
    object-fit: cover;
    border-radius: 20px !important;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, .04);
}

.patd-tl-para{
    display: flex;
    flex-direction: row;
    align-items: center;
    /* justify-content: center; */
}
.patd-tl-para-txt{
    width: calc(100% - 315px);
    margin-left: 6px;
}

/* ===== patd earth UI extensions (clean, minimal; reuses your tokens) ===== */
.patd--earth .patd-topbar{ grid-template-columns: 1fr auto auto; }
.patd--earth .patd-ring--sm { --size: 76px; }
.patd--earth .patd-ring--xs { --size: 58px; }

.patd-thumb{
  width: 220px; height: 150px; background: var(--card);
  border:1px solid var(--border); border-radius:14px; overflow:hidden;
  box-shadow:0 4px 10px rgba(17,24,39,.06); display:grid; place-items:center;
}
.patd-thumb img{ width:100%; height:100%; object-fit:cover; display:block; }

/* Media row */
.patd-media {
    margin: 12px 0 16px;
}

.patd-media-title {
    font-size: 14px;
    color: var(--muted);
    margin: 0 0 8px;
}

.patd-media-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(140px, 1fr);
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 6px;
}

.patd-media-it {
    /* position: relative; */
    height: 140px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--card);
    box-shadow: 0 4px 10px rgba(17, 24, 39, .05);
}

.patd-media-it img,
.patd-media-it video {
    width: 100%;
    /* height: 115px; */
    height: 100%;
    object-fit: cover;
    display: block;
}
.patd-media-it-row{
    height: 25px;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.patd-media-it--video .patd-media-play {
    /* position: absolute; */
    inset: auto 8px 8px auto;
    height: 23.5px;
    font-size: 12px;
    padding: 6px 8px;
    border-radius: 10px;
    background: rgba(0, 0, 0, .5);
    color: #fff;
    display: none;
}

.patd-media-cap {
    /* position: absolute; */
    height: 23.5px;
    left: 8px;
    bottom: 8px;
    font-size: 12px;
    color: #fff;
    background: rgba(0, 0, 0, .35);
    padding: 4px 6px;
    border-radius: 8px;
    display: none;
}

/* Chart grid */
.patd-chartgrid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 16px;
}

.patd-chartcard {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 4px 10px rgba(17, 24, 39, .05);
    padding: 10px;
    display: grid;
    gap: 8px;
}

.patd-chartcard-h {
    font-size: 13px;
    font-weight: 600;
}

.patd-chart {
    min-height: 260px;
    border-radius: 10px;
    border: 1px dashed var(--ring);
    position: relative;
    background: linear-gradient(180deg, #fff, #f7fbff);
}

.patd-chart::after {
    content: attr(data-hint);
    position: absolute;
    right: 8px;
    top: 6px;
    text-align: right;
    font-size: 12px;
    color: var(--muted);
}

/* Minimal extras for rich recommendation cards */
.patd-rec-card--rich { display: grid; gap: 8px; }
.patd-rec-pills { display:flex; flex-wrap:wrap; gap:6px; margin-top:4px; }
.patd-rec-met { display:grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap:8px; }
.patd-rec-roll { display:grid; gap:4px; }
.patd-rec-roll-row{ display:flex; gap:8px; align-items:baseline; }
.patd-rec-roll-mu{ font-size:12px; color: var(--muted); }

/* Mini charts — reuse your .patd-chart but smaller */
.patd-chart--mini{ min-height: 160px; }
.patd-rec-charts{ display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap:8px; }

@media (max-width: 840px){
  .patd-rec-met{ grid-template-columns: repeat(2, 1fr); }
  .patd-rec-charts{ grid-template-columns: 1fr; }
}

/* Tests / KPIs */
.patd-tests{ display:grid; gap:12px; margin: 8px 0 12px; }
.patd-card{ background: var(--card); border:1px solid var(--border); border-radius:14px; padding:10px 12px; box-shadow:0 4px 10px rgba(17,24,39,.05); }
.patd-card-title{ font-weight:700; font-size:14px; margin-bottom:6px; }
.patd-kvgrid{ display:grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap:8px; }
.patd-kv{ background: #fff; border:1px solid var(--border); border-radius:10px; padding:8px; display:grid; gap:4px; }
.patd-k{ font-size:12px; color:var(--muted); }
.patd-v{ font-size:14px; font-weight:600; }

.patd-badges{ display:flex; flex-wrap:wrap; gap:8px; margin-top:6px; }
.patd-badge{ font-size:12px; padding:6px 8px; border-radius:999px; border:1px solid var(--border); background: var(--pill); }
.patd-badge--good{ background: linear-gradient(180deg, rgba(16,185,129,.08), rgba(16,185,129,.06)); border-color: rgba(16,185,129,.35); }

/* Recommendations */
.patd-recs{ margin: 10px 0 12px; }
.patd-rec-list{ display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap:10px; }
.patd-rec-card{ background: var(--card); border:1px solid var(--border); border-radius:14px; padding:10px; box-shadow:0 4px 10px rgba(17,24,39,.05); display:grid; gap:8px; }
.patd-rec-head{ display:grid; grid-template-columns: auto 1fr; gap:10px; align-items:center; }
.patd-rec-info{ display:grid; gap:4px; }
.patd-rec-name{ font-weight:700; }
.patd-rec-name-h{
    color: coral;
    cursor: pointer;
}
.patd-rec-name-h:hover{
    color: red;
}
.patd-rec-reason{ font-size:12px; color: var(--muted); }

/* CTA */
.patd-cta-btn{
  display:inline-flex; align-items:center; justify-content:center; padding:10px 14px;
  border-radius:12px; border:1px solid var(--border);
  background: linear-gradient(180deg, rgba(59,130,246,.08), rgba(139,92,246,.08));
  box-shadow: 0 6px 16px rgba(59,130,246,.15); color:#0b1220; font-weight:600; width:max-content; margin-left:auto;
}

/* Responsive */
@media (max-width: 1120px){
  .patd-kvgrid{ grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 840px){
  .patd--earth .patd-topbar{ grid-template-columns: 1fr; }
  .patd-thumb{ width:100%; height: 180px; }
  .patd-chartgrid{ grid-template-columns: 1fr; }
  .patd-rec-list{ grid-template-columns: 1fr; }
  .patd-kvgrid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px){
  .patd-kvgrid{ grid-template-columns: 1fr; }
}

/* responsive */
@media (max-width: 960px){
  .patd--plant .patd-topbar { grid-template-columns: 1fr; }
}
@media (max-width: 720px){
  .patd-chartbox{ grid-template-columns: 1fr; }
  .patd-thumb{ width:100%; height: 180px; }
}

/* ==== minimal add-ons for toolbar / grid / table ==== */
.patd-toolbar{
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}
.patd-tabs{ display: inline-flex; background: var(--card); border:1px solid var(--border); border-radius: 12px; padding: 4px; }
.patd-tab{
  appearance:none; border:0; background:transparent; padding:8px 12px; border-radius: 8px; font-weight:600; cursor:pointer;
  color: var(--ink);
}
.patd-tab.is-active{ background: linear-gradient(180deg, rgba(59,130,246,.12), rgba(139,92,246,.10)); }

.patd-filters{ display:flex; gap:10px; flex-wrap:wrap; }
.patd-filter{ background: var(--card); border:1px solid var(--border); border-radius: 10px; padding: 8px 10px; display:grid; gap:6px; }
.patd-filter-lb{ font-size:12px; color: var(--muted); }
.patd-select{
  min-width: 160px; border:1px solid var(--border); background: #fff; padding:6px 8px; border-radius:8px; font-size: 14px;
}

.patd-switch{ display:flex; align-items:center; gap:8px; }
.patd-switch-lb{ font-size:12px; color: var(--muted); }
.patd-switch-opts{ display:flex; gap:10px; }
.patd-radio{ display:inline-flex; align-items:center; gap:6px; font-size:14px; }
.patd-radio input{ accent-color: var(--accent); }

.patd-grid-2{
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 12px;
}
.patd-left, .patd-right{ min-width:0; }
.patd-tablewrap{ padding: 0; overflow: hidden; }
.patd-table-head{
  display:flex; align-items:center; justify-content: space-between;
  padding:10px 12px; border-bottom:1px solid var(--border);
}
.patd-table-title{ font-weight:700; }
.patd-table-hint{ font-size:12px; color: var(--muted); }
.patd-table-body{ display:block; max-height: 640px; overflow:auto; }
.patd-trow{
  display:grid; grid-template-columns: 1.2fr .9fr .8fr .7fr; gap: 10px; padding: 10px 12px; width:100%;
  background: #fff; border:0; border-bottom:1px solid var(--border); text-align:left;
}
.patd-trow--head{ position: sticky; top:0; background: var(--pill); z-index:1; }
.patd-trow--row{ cursor:pointer; }
.patd-trow--row:hover{ background: linear-gradient(180deg, #fff, #f7fbff); }
.patd-empty{ padding:12px; color: var(--muted); }

@media (max-width: 1080px){
  .patd-grid-2{ grid-template-columns: 1fr; }
  .patd-table-body{ max-height: 380px; }
}

/* card start */
.card-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    width: 100%;
    min-width: 0;
    height: max-content;
    overflow:hidden;
    padding: 40px;
    gap: 40px;
    /* border: 1px solid red; */
}

.card{
    width: 320px;
    height: 370px;
    text-decoration: none;
    color: inherit;
    border: 1px solid #eee;
    background-color: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 3px 8px 6px #07111b0d;
    transition: box-shadow 200ms ease-in;
}

.card-banner {
    flex-shrink: 0;
    position: relative;
    box-sizing: border-box;
    width: 100%;
    height: 12rem;
    overflow:hidden;
}
.card:hover{
    box-shadow: 0 3px 14px 15px #060d130d;
}

.card:hover img{
    transform: scale(1.1);
}

.card-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform-origin: center center;
    transition: transform 250ms ease-in;
}

.card-header{
    box-sizing: border-box;
    padding: .88rem 1.166rem;
    display: flex;
    flex-direction: column;
    gap: .66rem;
    width: 100%;
    height:max-content
}

.card-h3{
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.card-neon{
    flex-shrink: 0;
    box-sizing: border-box;
    width: max-content;
    font-size: .875rem;
    font-weight: 700;
    --gradient-color-1: #a32cc4;
    --gradient-color-2: #b65fcf;
    --gradient-color-3: #e39ff6;
    background: linear-gradient(118deg, var(--gradient-color-1), var(--gradient-color-2) 26%, var(--gradient-color-3));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color:transparent;
    font-family: system-ui;
}

/* 第一张卡片 */
.card-grid .card:nth-child(1) .card-neon {
  --gradient-color-1: #a32cc4;
  --gradient-color-2: #b65fcf;
  --gradient-color-3: #e39ff6;
}

/* 第二张卡片 */
.card-grid .card:nth-child(2) .card-neon {
  --gradient-color-1: #f48600;
  --gradient-color-2: #ffa12e;
  --gradient-color-3: #ffe9c9;
}

/* 第三张卡片 */
.card-grid .card:nth-child(3) .card-neon {
  --gradient-color-1: #6270ee;
  --gradient-color-2: #2b90d9;
  --gradient-color-3: #37dede;
}

/* 第四张卡片 */
.card-grid .card:nth-child(4) .card-neon {
  --gradient-color-1: #006633;
  --gradient-color-2: #00cc66;
  --gradient-color-3: #66ff99;
}

/* 第五张卡片 */
.card-grid .card:nth-child(5) .card-neon {
  --gradient-color-1: #f02d85;
  --gradient-color-2: #f95ba5;
  --gradient-color-3: #f4bdd0;
}

.card-time{
    box-sizing: border-box;
    margin-top: auto;
    font-size: .805rem;
    font-weight: 400;
    width:max-content;
}

.card-title{
    box-sizing: border-box;
    width: 100%;
    height: max-content;
    overflow: hidden;
    font-size: 1.06rem;
    font-weight: 600;
    transition: color .18s;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.card-title:hover{
    color: #00cc66;
    cursor: default;
}

.card-desc{
    height: 65px;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
    padding: 0 1.166rem;
    width: 100%;
    color: #6f5460;
    font-size: .805rem;
    font-weight: 400;
    letter-spacing: .88px;
    line-height:1.28rem;
}

.card-tagarea{
    margin-top: auto;
    box-sizing: border-box;
    width: 100%;
    height: max-content;
    overflow:hidden;
    display: flex;
    align-items: center;
    flex-direction: row;
}

.card-tag{
    box-sizing: border-box;
    margin-right: .88rem;
    color: #000;
    font-size: .688rem;
    font-weight: 400;
    transition:color .18s;
    white-space: nowrap;
}

.card-tag:hover {
    color: #00cc66;
}

.card-tag::before {
    content: "#"
}

.card-tag:nth-last-of-type(1) {
    margin-right:0
}
/* card end */

/* 移动端：小屏幕手机 */
@media screen and (max-width: 619px) {
    .wrapper{
        /* flex-direction: column; */
        display: block;
    }
    .left-bar{
        width: 100%;
        height: 35px;
        flex-direction: row;
    }
    .left-bar-wrapper{
        display: flex;
        flex-direction: row;
    }
    .lbi-text{
        display: none;
    }
    .right-bar{
        width: 100%;
        height: calc(100% - 35px);
        /* border: 1px solid red; */
    }
    .checkbox-widget, 
    .left-bar-top{
        display: none;
    }
    .left-bar-item{
        padding: 4px 8px;
        margin: 2.5px;
    }
    .right-guild{
        height: 30px;
        width: 100%;
        overflow-x: auto;
        /* border: 1px solid red; */
    }
    .rg-span{
        padding: 4px 18px;
        font-size: 12px;
        height: auto;
    }
    .input-large{
        width: calc(100% - 40px);
        height: 50px;
    }
    .input-desc{
        height: auto;
        width: auto;
        font-size: 13px;
        padding: 4px;
        text-indent: 1.75em;
    }
    .carousel{
        padding: 0 20px;
        width: 100%;
        overflow-x: auto;
    }
    .carousel-track{
        padding: 10px 0;
    }
    .fm-range-wrapper {
        display: none;
    }
    .fm-topbar, .fm-top-bar, .fm-info-stripe, .fm-pie-wrapper {
        padding: 4px 8px;
    }
    .fm-top-tab {
        white-space: nowrap;
        font-size: 11px;
        margin-left: 2px;
        margin-right: 5px;
    }
    .fm-pie-wrapper{
        display: block;
        flex-direction: column;
        min-height: 300px;
    }
    .fm-pie-auto{
        height: fit-content;
    }
    .card-content-rl {
        padding: 0;
    }
    .rower{
        display: block;
        height: auto;
    }
    .rp-her{
        overflow: auto;
        width: 100%;
    }
    .md-auto-format ol, .md-auto-format ul {
        padding-left: 20px;
    }
    .rp-my {
        width: 100%;
    }
    .hor.rp-sec{
        display: block;
    }
    .cp-container{
        overflow: auto;
    }
    .report-section .rp-sec {
        margin: 10px 0;
    }
    .wc-card{
        width: 290px;
        height: 265px;
    }
    .cp-pie,
    .cp-pie-main{
        width: 280px;
        height: 280px;
    }
    .fm-pt{
        width: 100%;
    }
    .fm-pie.fm-pie-sm, 
    .fm-pie{
        width: 275px;
        height: 275px;
    }
    #rp-right-p {
        width: 100%;
    }
    .rp-footer{
        height: 65px;
        flex-direction: column;
    }
    .rp-paginator{
        width: 100%;
        overflow-x: auto;
    }
    .ent-row {
        flex-direction: column;
        width: 100%;
    }
    .w100 {
        padding: 0;
        width: 100%;
    }
    .ent-title {
        font-size: 22px;
    }
    .ent-mb{
        font-size: 12px;
    }
    .ent-middle-bar{
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
    }
    table.rt-wrapper{
        padding: 0 0.25em;
    }
    .ent-m{
        max-width: 100vw;
        overflow-x: auto;
    }
    /* comp detail */
    .patd-tl-para-txt{
        width: fit-content;
        display: block;
    }
    .patd-tl-body{
        max-width: calc(100% - 30px);
        width: calc(100% - 30px);
    }
    .patd-tl-para img{
        max-width: 250px;
        max-height: 250px;
    }
    .cpl-chart {
        width: 100%;
    }

    .ec-list-row{
        flex-wrap: wrap;
    }

    .ec-list-title{
        flex-basis: 100%;
    }
}


