@font-face {
  font-family: 'DotGothic16';
  font-style: normal;
  font-weight: 400;
  src: url('//echo.fanpop.jp/fonts/DotGothic16-Regular.ttf') format('woff2');
  font-display: swap;
  size-adjust: 92%;
}
@font-face {
  font-family: 'ChakraPetch';
  font-style: normal;
  font-weight: 400;
  src: url('//echo.fanpop.jp/fonts/ChakraPetch-Regular.ttf') format('woff2');
  font-display: swap;
  size-adjust: 100%;
}

html, body {
	overscroll-behavior-y: contain;
	backface-visibility: hidden;
}
html {
	height: 100vh;
}
body {
	height: calc(100% - 120px);
	padding-bottom: 120px;
}
body.added-message {
	height: calc(100% - 140px);
	padding-bottom: 140px;
}
.thumb-img {
	image-orientation: from-image;
    max-width: 240px;
    max-height: 240px;
    border-radius: 8px;
    display: block;
    margin: 2px 0;
}
video {
    max-width: 240px;
    max-height: 240px;
    border-radius: 8px;
    display: block;
    margin: 2px 0;
}
body.darkmode textarea {
	color: #EFEFEF;
}
textarea::placeholder {
	color: #CCCCCC;
}
body.darkmode textarea::placeholder {
	color: #666666;
}

.takeshi-summon-icon {
    float: right;
    display: inline-block;
    width: 25px !important;
    margin: 6px !important;
    border-radius: 0 !important;
    vertical-align: middle;
}
body.darkmode .operation-icon,
body.darkmode .goback-icon {
    filter: invert(100%);
}
.operation-icon {
    float: right;
    display: inline-block;
    width: 25px !important;
    margin: 6px !important;
    border-radius: 0 !important;
    vertical-align: middle;
}
.both {
    clear: both;
}
#newMsgNotice {
	z-index: 9999;
	position: fixed;
	display: none;
	bottom: 20%;
	left: 0;
	right: 0;
	width: 160px;
	margin: auto;
	padding: 8px 15px;
	border-radius: 20px;
	background: rgba(0,0,0,0.6);
	backdrop-filter: blur(12px);
	box-shadow: 0 2px 6px rgba(0,0,0,0.2);
	font-size: 0.8em;
	text-align: center;
	cursor: pointer;
}
#newMsgNotice a {
	font-weight: bold;
	text-decoration: none;
	color: #EEEEEE;
}
#newMsgNotice a:hover {
	color: #FFFFFF;
}
#poster {
	z-index: -1;
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	/* background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(240,245,255,0.9)); */
	background-image: url('//echo.fanpop.jp/background.jpg');
	background-size: cover;
	background-position: center;
	backdrop-filter: blur(12px);
}
body.takeshi #poster {
	background-image: url('//echo.fanpop.jp/dms_img/takeshiai.jpg');
	background-size: cover;
	background-position: center;
}
.list-column {
    max-width: 800px;
    max-height: 100%;
    margin: 0 auto;
    padding: 80px 10px;
    box-sizing: border-box;
    overflow-anchor: auto;
}
.notice-column {
    max-width: 800px;
    margin: 0 auto;
    padding: 80px 10px 0 10px;
    box-sizing: border-box;
    overflow-anchor: auto;
}
.dm-column {
	position: relative;
    max-width: 800px;
    max-height: 100%;
    margin: 0 auto;
    padding: 40px 10px 80px 10px;
    box-sizing: border-box;
    overflow-anchor: auto;
}
.recipient-button {
    width: 100%;
    height: auto;
    margin: 15px;
    padding: 8px auto;
    border: none;
    cursor: pointer;
    outline: none;
    padding: 0;
    appearance: none;
    background-color: transparent;
    text-align: left;
    font-size: 16px;
    color: #222222;
    cursor: pointer;
}
.recipient-id {
    margin: 5px 0;
    font-weight: bold;
}
.uploading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.8);
    z-index: 9999;
}
.uploading-overlay .balloon-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.inf {
    padding: 15px;
    border: 1px solid #EFEFEF;
    border-radius: 8px;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(12px);
}
body.darkmode .inf {
	background: rgba(0,0,0,0.8);
}
.spmsg {
	display: block;
    padding: 15px;
}
body.takeshi .spmsg {
	display: none;
}
.aimsg {
	display: none;
}
body.takeshi .aimsg {
	display: block;
	margin: 10px auto;
    padding: 15px;
    border: 1px solid #EFEFEF;
    border-radius: 8px;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(12px);
}
.msg {
    margin: 15px;
}
.msg.fetch-added {
	padding-bottom: 80px;
}
.me,
.filewrap-me {
    display: inline-block;
    max-width: 70%;
    float: right;
    color: #222222;
    background: #DADF00;
    border-radius: 25px;
    margin: 15px 0 0 0;
    padding: 14px 22px 16px 22px;
    font-family: -apple-system, sans-serif;
    font-size: 1em;
    clear: both;
}
.you,
.filewrap-you {
    display: inline-block;
    max-width: 70%;
    float: left;
    color: #222222;
    background: rgba(232, 238, 245, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    margin: 15px 0 0 0;
    padding: 14px 22px 16px 22px;
    font-family: -apple-system, sans-serif;
    font-size: 1em;
    clear: both;
}
.takeshiai {
    display: inline-block;
    position: relative;
    max-width: 70%;
    float: left;
    color: #CCCCCC;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    margin: 15px 0 0 0;
    padding: 14px 22px 16px 36px;
    font-family: "DotGothic16", sans-serif, "ChakraPetch";
    font-size: 1em;
    clear: both;
}
.takeshiai::before {
    content: "";
    display: block;
    position: absolute;
    top: 10px;
    left: 5px;
    width: 30px;
    height: 30px;
    background-image: url('//echo.fanpop.jp/takeshiico.png');
    background-position: center;
    background-size: contain;
    vertical-align: middle;
}
body.takeshi .takeshiai a {
	color: #F0F0F0;
}
body.takeshi .takeshiai a:hover {
	opacity: 0.7;
}
.time-me {
    display: inline-block;
    float: right;
    font-size: 0.6em;
    color: #CCCCCC;
    margin: 10px 20px 15px 0;
    clear: both;
}
.time-you {
    display: inline-block;
    float: left;
    font-size: 0.6em;
    color: #CCCCCC;
    margin: 10px 0 15px 20px;
    clear: both;
}
.time-takeshiai {
    display: inline-block;
    float: left;
    font-size: 0.6em;
    color: #CCCCCC;
    margin: 10px 0 15px 20px;
    clear: both;
}
.time-takeshiai::before {
	content: '星野たけし・';
}
.takeshi-wait {
	display: none;
	margin-top 4px;
	font-family: -apple-system, sans-serif;
	font-size: 0.8em;
}
/* iOS26バルーン透明化バグ対策 */
@supports (-webkit-touch-callout: none) {
	.me,
	.you,
	.filewrap-me,
	.filewrap-you,
	.time-me,
	.time-you,
	.time-takeshiai {
		position: relative;
    	-webkit-transform: translateZ(0);
    	transform: translateZ(0);
    }
}
.attach {
	text-align: center;
    cursor: pointer;
}
.time {
    font-size: 0.9em;
    font-weight: normal;
    color: #888888;
}
body.darkmode .time {
    color: #CCCCCC;
}
/* DM Pager */
.dm-pager {
	display: block;
	text-align: center;
	clear: both;
}
.dm-pager button {
	padding: 10px 40px;
	border: 0.5px solid #FFFFFF;
	border-radius: 25px;
	outline: none;
	appearance: none;
	background: rgba(255, 255, 255, 0.3);
	backdrop-filter: blur(6px);
	cursor: pointer;
	text-shadow: 0 0 10px #FFFFFF;
	color: #222222;
}
#dmPrevBtn {
	margin: 40px auto;
}
#dmReloadBtn,
#dmNextBtn {
	margin: 60px auto 120px auto;
}

#dmHeader {
    z-index: 9999;
    position: fixed;
    top: 0;
    left: 0;
    width: 98%;
    margin: 0;
    padding: 5px 1%;
    border-bottom: 1px solid #EEEEEE;
    background: linear-gradient(180deg, rgba(255,255,255,1), rgba(255,255,255,0.8));
    backdrop-filter: blur(10px);
}
body.darkmode #dmHeader {
    background: linear-gradient(180deg, rgba(0,0,0,1), rgba(0,0,0,0.8));
    border-bottom: 1px solid #222222;
}
#dmHeader p {
    display: inline-block;
    vertical-align: middle;
}
#dmHeader img {
    display: inline-block;
    vertical-align: middle;
    width: 35px;
    height: auto;
    margin: 0 10px 0 0;
    border-radius: 50%;
}
.recipient-icon {
    display: inline-block;
    vertical-align: middle;
    width: 100%;
    height: auto;
    margin: 0 15px 0 0;
    border-radius: 50%;
}
.recipient-form-box {
    display: inline-block;
    position: relative;
    vertical-align: middle;
    width: calc(100% - 90px;)
}
body.darkmode .recipient-form-box {
    color: #EFEFEF;
}
.open-uid {
	line-height: 1em;
    font-weight: bold;
}
.open-uid span {
	font-weight: normal;
	font-size: 0.8em;
	color: #999999;
}
.goback-icon {
    display: inline-block;
    width: 25px !important;
    margin: 10px !important;
    vertical-align: middle;
    border-radius: 0 !important;
}
body.darkmode .goback-icon {
    filter: invert(100%);
}
.recipient-icon-wrapper {
    position: relative;
    display: inline-block;
    width: 60px;
    margin: 0 10px 0 0;
}

.dm-badge {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 12px;
    height: 12px;
    background: red;
    border-radius: 50%;
    display: none;
}
.sendto-column {
    margin: 0 0 40px 0;
    text-align: center;
}
.sendto-form {
    display: block;
    max-width: 320px;
    margin: 0 auto;
    border-radius: 25px;
    border: 0;
    background: #EEEEEE;
}
body.darkmode .sendto-form {
    background: #333333;
}
.sendto-column button {
    display: inline-block;
    background: transparent;
    border: none;
    cursor: pointer;
    outline: none;
    padding: 0;
    appearance: none;
    vertical-align: middle;
}
.sendto-search {
    display: inline-block;
    width: calc(100% - 80px);
    padding: 8px 15px;
    border: 0;
    background: transparent;
    font-weight: bold;
    font-size: 1.2em;
    vertical-align: middle;
}
body.darkmode .sendto-search {
    color: #EFEFEF;
}
.sendto-search::placeholder {
    color: #CCCCCC;
}
body.darkmode .sendto-search::placeholder {
    color: #666666;
}
.sendto-search:focus {
    outline: none;
}
.sendadd-icon {
    max-width: 26px;
}
body.darkmode .sendadd-icon {
    filter: invert(100%);
}
.btnChat {
	position: relative;
	width: 100%;
	margin: 0;
	padding: 0;
	text-align: center;
}
.download-btn {
	z-index: 2;
	position: absolute;
	top: 20px;
	right: 90px;
	display: inline-block;
    background-color: transparent;
    width: 35px;
    height: auto;
    border: none;
    cursor: pointer;
    outline: none;
    appearance: none;
}
.delete-btn-me {
	z-index: 2;
	position: absolute;
	top: 20px;
	right: -30px;
	display: none;
    background-color: transparent;
    width: 35px;
    height: auto;
    border: none;
    cursor: pointer;
    outline: none;
    appearance: none;
}
.download-btn img,
.delete-btn-me img {
    width: 100%;
    height: auto;
}
.delete-btn-you,
.delete-btn-takeshiai {
	display: none;
}
.attach-link {
    text-decoration: underline;
    color: #35A;
}
.gps-share {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 9px;
    box-sizing: border-box;
}
.filewrap-me .gps-share,
.filewrap-you .gps-share {
    max-width: 100%;
    object-fit: cover;
}
.error {
    color: #D00;
    margin-bottom: 10px;
}
#ued {
	clear: both;
}
#modal-bg {
    z-index: 9999;
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.75);
    align-items: center;
    justify-content: center;
}
#modal-bg.active {
    display: flex;
}
#modal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}
#modal-img, #modal-video {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 16px;
    box-shadow: 0 0 40px #333333;
    pointer-events: auto;
}
#modal-video {
    background: #000000;
    position: relative;
}
#modal-bg {
    z-index: 9999;
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.75);
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
#modal-bg.active {
    display: flex;
}
#modal-img, #modal-video {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 16px;
    box-shadow: 0 0 40px #333333;
}
#modal-close {
    color: #FFFFFF;
    font-size: 24px;
    cursor: pointer;
    margin-bottom: 8px;
}
#loadingOverlay {
    z-index: 9998;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255,255,255,1);
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
}
@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}
#loadingOverlay.fade-out {
    animation: fadeOut 0.5s forwards;
}
/* Spinner Animation */
.spinner {
    width: 48px;
    height: 48px;
    border: 6px solid #ccc;
    border-top: 6px solid #dadf00;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
	0% {
	transform: rotate(0deg);
	}
	100% {
	transform: rotate(360deg);
	}
}
/* Baloon Loader Animation */
.balloon-loader {
	display: flex;
	gap: 8px;
	justify-content: center;
	align-items: center;
	height: 50px;
}
.balloon-loader span {
	width: 15px;
	height: 15px;
	background-color: #DADF00;
	border-radius: 50%;
	animation: jump 2s infinite ease-in-out;
}
.balloon-loader span:nth-child(1) {
  animation-delay: 0s;
  background-color: #DADF00;
}
.balloon-loader span:nth-child(2) {
  animation-delay: 0.2s;
  background-color: #00D9FF;
}
.balloon-loader span:nth-child(3) {
  animation-delay: 0.4s;
  background-color: #FF0099;
}
.balloon-loader span:nth-child(4) {
  animation-delay: 0.6s;
  background-color: #FF8000;
}
@keyframes jump {
	0%, 100%   { transform: translateY(0); }
	10%        { transform: translateY(-12px); }
	20%, 100%  { transform: translateY(0); }
}

/* AI Thinking */
.msg--ai-typing .ai-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin: 0 1px;
  border-radius: 999px;
  background: #EEEEEE;
  opacity: 0.3;
  vertical-align: middle;
  animation: aiTypingJump 1s infinite ease-in-out;
}

.msg--ai-typing .ai-dot:nth-child(2) {
  animation-delay: 0.2s;
}
.msg--ai-typing .ai-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes aiTypingJump {
  0%, 80%, 100% {
    transform: translateY(0);
    opacity: 0.3;
  }
  40% {
    transform: translateY(-3px);
    opacity: 1;
  }
}

.formarea {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: auto;
    min-height: 60px;
    margin: 0 auto;
    border-top: 1px solid #EEEEEE;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    text-align: center;
}
body.darkmode .formarea {
	border-top: 1px solid #222222;
	background: rgba(255,255,255,0.1);
	color: #EFEFEF;
}
body.darkmode .formarea img {
	filter: invert(100%);
}
.formarea textarea {
    display: inline-block;
    bottom: 5px;
    resize: none;
    width: calc(100% - 170px);
    max-width: 800px;
    margin: 0 auto;
    border-radius: 20px;
    border: 0;
    background-color: transparent;
    outline: none;
    font-size: 18px;
    transform: translateY(-8px);
}
.attach-button {
    display: inline-block;
    width: 35px;
    height: auto;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transform: translateY(-8px);
}
.attach-icon {
    max-width: 30px;
}
.gps-button {
    display: inline-block;
    width: 35px;
    height: auto;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transform: translateY(-8px);
}
.gps-icon {
    max-width: 30px;
}
.send-button {
    display: inline-block;
    width: 60px;
    height: 40px;
    background: none;
    border: none;
    padding: 0 10px;
    text-align: right;
    cursor: pointer;
    transform: translateY(-8px);
}
.send-icon {
    max-width: 32px;
}
.dmcalactors {
    margin: 0 0 5px 0;
    font-size: 0.8em;
    color: #888888;
}
#mapModal {
    z-index: 9999;
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #FFFFFF;
    touch-action: none;
}
#map {
    position: relative;
    width: 100%;
    border-bottom: 1px solid #EEEEEE;
    height: calc(100% - 60px);
    touch-action: auto;
}
#locateBtn {
    z-index: 9999;
    position: absolute;
    bottom: 220px;
    right: 10px;
    background: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 18px;
    box-shadow: 0 2px 3px rgba(0,0,0,0.1);
    touch-action: manipulation;
    cursor: pointer;
    touch-action: auto;
}
#cancelMapBtn {
    z-index: 9999;
    position: absolute;
    top: 10px;
    right: 10px;
    background: #FFFFFF;
    border: none;
    border-radius: 4px;
    padding: 6px 20px;
    box-shadow: 0 2px 3px rgba(0,0,0,0.2);
    font-size: 26px;
    text-decoration: none;
    color: #222222;
    cursor: pointer;
}
#sendMapBtn {
    z-index: 9999;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 8px;
    width: 200px;
    height: 45px;
    margin: 0 auto;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    box-shadow: 0 2px 3px rgba(0,0,0,0.2);
    text-align: center;
    font-size: 1em;
    font-weight: bold;
    background: #DADF00;
    color: #222222;
}
.is-fanpop .echoonly {
	display: none !important;
}
.fanpoponly {
    display: none !important;
}
.is-fanpop .fanpoponly {
    display: inline !important;
}
.takeshionly {
	display: none;
}
body.takeshi .takeshionly {
	display: inline !important;
}
body.takeshi .withouttakeshi {
    display: none;
}

#ai-help-open {
	position: relative;
}
#ai-help-open img {
	width: auto;
	height: 22px;
	transform: translateY(-3px);
}
.popup {
    z-index: 999990;
    display: none;
    position: fixed;
    box-sizing: border-box;
    top: 100%;
    left: 50%;
    max-width: 480px;
    height: auto;
    transform: translate(-50%, -100%);
    padding: 10px;
    text-align: center;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.popup.show {
    display: block;
    opacity: 1;
}
.popup-content {
    padding: 20px 40px;
    font-size: 0.8em;
    border-radius: 9px;
    border: 1px solid #8DCBA7;
    background: #FFFFFF;
    color: #222222;
    white-space: nowrap;
}
.popup button {
    margin: 10px auto 30px auto;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    background: #8DCBA7;
    font-weight: bold;
    font-size: 1.4em;
    color: #222222;
    cursor: pointer;
}
.popup button:hover {
    opacity: 0.8;
}

.ogp-card {
	display: flex;
	width: 250px;
	border-radius: 6px;
	margin-top: 6px;
	overflow: hidden;
	font-size: 0.8em;
	background: #FFFFFF;
}
.ogp-thumb {
	width: 100%;
	height: auto;
	background-size: cover;
	background-position: center;
	flex-shrink: 0;
}
.ogp-body {
	padding: 6px;
	flex: 1;
}
.ogp-title {
	font-weight: bold;
	margin-bottom: 3px;
}
.ogp-desc {
	color: #555555;
}

#summonGuide,
#interpreterGuide,
#proxymodeGuide,
#supportmodeGuide,
body.support-active.proxymode-active #proxymodeGuide,
body.support-active.proxymode-active #supportmodeGuide {
	display: none;
}
body.takeshiai-active #summonGuide,
body.interpreter-active #interpreterGuide {
    z-index: 99;
    display: block;
    position: fixed;
    top: 65px;
    left: 0;
    right: 0;
    width: calc(100% - 60px);
    max-width: 800px;
    margin: 0 auto;
    padding: 15px;
    border: 1px solid #DADF00;
    border-radius: 6px;
    background: #FFFFFF;
    font-size: 0.7em;
}
body.takeshiai-active.darkmode #summonGuide,
body.interpreter-active.darkmode #interpreterGuide {
	background: #333333;
}
body.proxymode-active #proxymodeGuide,
body.support-active #supportmodeGuide {
    z-index: 99;
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 80px;
    width: calc(100% - 40px);
    max-width: 800px;
    margin: 0 auto;
    padding: 10px;
    border: 0;
    border-radius: 6px;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(18px);
    text-align: center;
    font-size: 0.6em;
}
body.proxymode-active.darkmode #proxymodeGuide,
body.support-active.darkmode #supportmodeGuide {
	background: #333333;
}
body.support-active .supportmodeHidden {
	display: none;
}
#twa-fanpop-home {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 40px;
    height: 40px;
    padding: 10px;
    border-radius: 50%;
    background: #DADF00;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.1);
    cursor: pointer;
}
#twa-fanpop-home: hover {
	opacity: 0.8;
}
#twa-fanpop-home img {
    width: 100%;
    height: auto;
}

/* AI Explanation Modal */
#ai-expla-wrapper {
    position: fixed;
    z-index: 999999;
    inset: 0;
    display: none;
}
.ai-expla-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}
.ai-expla-content {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 80%; /* 高さは調整可能 */
    background: #F5F5F5;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}
.ai-expla-content .column {
    width: 100%;
    height: 100%;
    overflow-y: scroll;
}
.ai-expla-content h3 {
    margin: 60px auto 0 auto;
    text-align: center;
}
.ai-expla-content .top-cap {
    display: block;
    width: calc(100% - 40px);
    height: auto;
    margin: 20px auto 0 auto;
    font-size: 0.8em;
    text-align: center;
}
.ai-expla-content hr {
    margin: 30px 0;
    border: 0.5px solid #CCCCCC;
}
.ai-expla-content .space {
    margin: 20px 0;
    border: none;
}
.ai-expla-content ul {
    padding: 10px 20px 20px 20px;
}
.ai-expla-content li {
    margin: 18px auto;
    padding: 15px;
    border-radius: 9px;
    list-style: none;
    background: #FFFFFF;
}
.ai-expla-content li p {
    margin-bottom: 5px;
}
.ai-expla-content .title {
    font-size: 0.96em;
    font-weight: bold;
}
.ai-expla-content .command {
    font-size: 0.8em;
}
.ai-expla-content .command img {
    width: auto;
    height: 1.6em;
    vertical-align: middle;
    transform: translateY(-2px);
}
body.darkmode .ai-expla-content .command img {
    filter: invert(1);
}
.ai-expla-content .explanation {
    font-size: 0.8em;
    color: #666666;
}
.ai-expla-content .notes {
    font-size: 0.7em;
    color: #888888;
}
body.darkmode .ai-expla-content .explanation {
    color: #CCCCCC;
}
#ai-expla-wrapper.show .ai-expla-content {
    transform: translateY(0);
}
body.darkmode .ai-expla-content {
    background: #222222;
}
.ai-expla-close {
    z-index: 9;
    position: absolute;
    top: 10px;
    left: 0;
    right: 0;
    width: 40px;
    height: 5px;
    margin: 0 auto;
    background-color: #CCCCCC;
    border-radius: 999px;
    cursor: pointer;
}
#ai-expla-open {
    z-index: 99;
    display: block;
    position: absolute;
    top: 0;
    left: 80px;
    width: 50px;
    height: 20px;
    padding: 5px 0;
    background: transparent;
    text-align: center;
    vertical-align: middle;
}
#ai-expla-open img {
    width: auto;
    height: 100%;
}
