/* =====================================================
   🌟 平台美化：低调质感聊天框 + 羽毛笔加载动画
   ===================================================== */
[class*="bg-[#F1CBCB]"], [class*="bg-[#c9e1e9]"] { display: none !important; }

.bg-gray-100\/90.relative.inline-block {
    background: #ffffff !important;
    border: 1px solid #dfe6e9 !important;
    outline: 1px solid rgba(139, 115, 85, 0.15) !important;
    outline-offset: -3px !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
    border-radius: 10px !important;
    padding: 14px !important;
    position: relative !important;
    isolation: isolate !important;
    overflow: visible !important;
}
.bg-gray-100\/90.relative.inline-block::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 24px; height: 24px;
    border-top: 2px solid #8b7355;
    border-left: 2px solid #8b7355;
    border-radius: 10px 0 0 0;
    opacity: 0.6;
    pointer-events: none;
}
.bg-gray-100\/90.relative.inline-block::after {
    content: '';
    position: absolute;
    bottom: 0; right: 0;
    width: 24px; height: 24px;
    border-bottom: 2px solid #8b7355;
    border-right: 2px solid #8b7355;
    border-radius: 0 0 10px 0;
    opacity: 0.6;
    pointer-events: none;
}

.markdown-body {
    color: #2d3436 !important;
    font-family: "Noto Serif SC", 'Georgia', 'Palatino Linotype', serif !important;
    line-height: 1.8 !important;
    background: transparent !important;
}

.MuiButtonBase-root.MuiButton-root.MuiButton-text.MuiButton-textPrimary { color: #3c6382 !important; font-weight: 500 !important; }
.MuiTypography-root.MuiTypography-body2.css-6c0gf2 { color: #636e72 !important; font-family: 'Georgia', serif !important; }

/* 加载动画：羽毛笔 */
.style-module__AtdJSq__dot-flashing.style-module__AtdJSq__text { display: none !important; }
.flex.items-center.justify-center.w-6.h-5 {
    position: relative !important; display: flex !important; align-items: center !important; justify-content: center !important;
    width: 52px !important; height: 48px !important; min-height: 48px !important; margin: 4px auto !important;
}
.flex.items-center.justify-center.w-6.h-5::before {
    content: ''; display: block !important; position: absolute !important; top: 50% !important; left: 50% !important;
    transform: translate(-50%, -50%) !important; width: 52px !important; height: 48px !important;
    background: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 64' width='80' height='64'%3E%3Cdefs%3E%3ClinearGradient id='paperG' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' stop-color='%23ffffff'/%3E%3Cstop offset='100%25' stop-color='%23f5f6f8'/%3E%3C/linearGradient%3E%3ClinearGradient id='featherG' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' stop-color='%233c6382'/%3E%3Cstop offset='100%25' stop-color='%238b7355'/%3E%3C/linearGradient%3E%3C/defs%3E%3C!-- 背景光晕 --%3E%3Cellipse cx='40' cy='40' rx='38' ry='26' fill='url(%23paperG)' opacity='0.7'/%3E%3C!-- 书本左页 --%3E%3Cpath d='M40 52 Q18 47 6 40 L6 22 Q18 30 40 30 Z' fill='%23ffffff' stroke='%23dfe6e9' stroke-width='1'/%3E%3C!-- 书本右页 --%3E%3Cpath d='M40 52 Q62 47 74 40 L74 22 Q62 30 40 30 Z' fill='%23ffffff' stroke='%23dfe6e9' stroke-width='1'/%3E%3C!-- 书脊 --%3E%3Cline x1='40' y1='30' x2='40' y2='52' stroke='%238b7355' stroke-width='1.5' opacity='0.6'/%3E%3C!-- 左页装饰线 --%3E%3Cline x1='12' y1='37' x2='30' y2='37' stroke='%233c6382' stroke-width='0.6' opacity='0.25'/%3E%3Cline x1='12' y1='40' x2='32' y2='40' stroke='%233c6382' stroke-width='0.6' opacity='0.25'/%3E%3Cline x1='12' y1='43' x2='28' y2='43' stroke='%233c6382' stroke-width='0.6' opacity='0.25'/%3E%3C!-- 右页装饰线 --%3E%3Cline x1='48' y1='37' x2='66' y2='37' stroke='%233c6382' stroke-width='0.6' opacity='0.25'/%3E%3Cline x1='48' y1='40' x2='64' y2='40' stroke='%233c6382' stroke-width='0.6' opacity='0.25'/%3E%3Cline x1='48' y1='43' x2='62' y2='43' stroke='%233c6382' stroke-width='0.6' opacity='0.25'/%3E%3C!-- 笔迹书写路径 --%3E%3Cpath id='inkPath' d='M14 46 Q24 36 34 41 Q44 45 54 40 Q62 36 68 42' stroke='%232d3436' stroke-width='1.2' fill='none' stroke-linecap='round' stroke-dasharray='90' stroke-dashoffset='90'%3E%3Canimate attributeName='stroke-dashoffset' from='90' to='0' dur='2.6s' repeatCount='indefinite'/%3E%3C/path%3E%3C!-- 羽毛笔组 --%3E%3Cg%3E%3CanimateMotion dur='2.6s' repeatCount='indefinite' rotate='auto'%3E%3Cmpath href='%23inkPath'/%3E%3C/animateMotion%3E%3Cpath d='M0 0 L-2.5 -7 L2.5 -7 Z' fill='%232d3436'/%3E%3Cline x1='0' y1='-7' x2='0' y2='-22' stroke='%233c6382' stroke-width='1.5' stroke-linecap='round'/%3E%3Cpath d='M0 -22 Q-9 -28 -7 -36 Q-4 -31 0 -24 Q4 -31 7 -36 Q9 -28 0 -22 Z' fill='url(%23featherG)' opacity='0.85'/%3E%3Cpath d='M0 -22 Q-5 -26 -4 -31 Q-2 -27 0 -24 Q2 -27 4 -31 Q5 -26 0 -22 Z' fill='%236b5344' opacity='0.4'/%3E%3C/g%3E%3Ccircle cx='16' cy='20' r='1' fill='%238b7355' opacity='0.5'%3E%3Canimate attributeName='opacity' values='0.5;0.1;0.5' dur='2s' repeatCount='indefinite'/%3E%3C/circle%3E%3Ccircle cx='60' cy='18' r='0.8' fill='%233c6382' opacity='0.4'%3E%3Canimate attributeName='opacity' values='0.4;0.08;0.4' dur='2.4s' repeatCount='indefinite'/%3E%3C/circle%3E%3C/svg%3E") no-repeat center center !important;
    background-size: contain !important; pointer-events: none !important; z-index: 2 !important;
}

/* =====================================================
   📜 内部档案组件：排版与布局
   ===================================================== */

/* ========== 隐藏思维链 ========== */
think, .ai-reply think, .ai-wrap think {
  display: none !important; visibility: hidden !important; opacity: 0 !important;
  width: 0 !important; height: 0 !important; overflow: hidden !important;
  position: absolute !important; left: -9999px !important; top: -9999px !important;
}

/* ========== 主容器 ========== */
.ai-wrap {
  position: relative; background: transparent; border: none;
  font-family: "Noto Serif SC", "Times New Roman", serif;
  color: #2d3436; line-height: 1.8; max-width: 950px; margin: 0 auto;
  display: flex; flex-direction: column; overflow: visible !important;
}

/* ========== 时光锚点 hd（重新设计：杂志风左对齐） ========== */
hd {
  position: relative; display: block;
  padding: 8px 0 8px 18px;
  margin-bottom: 22px;
  color: #2d3436;
  font-weight: 600;
  letter-spacing: 4px;
  font-size: 1em;
  border-left: 3px solid #8b7355;
}
hd::before {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 60px; height: 1px;
  background: #8b7355;
  opacity: 0.4;
}
hd::after {
  content: '';
  position: absolute;
  right: 0; top: 50%;
  width: calc(100% - 180px);
  height: 1px;
  background: linear-gradient(90deg, #dfe6e9, transparent);
  transform: translateY(-50%);
}

/* ========== 对话区 ========== */
article {
  display: block; background: #ffffff; border: 1px solid #dfe6e9;
  border-radius: 8px; padding: 20px; margin-bottom: 18px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}
article q {
  display: block; text-align: left; color: #3c6382; font-size: 1.15em;
  font-weight: 600; padding-bottom: 10px; border-bottom: 1px solid #dfe6e9;
  margin: 0 0 18px 0; letter-spacing: 1px;
  padding-left: 10px; border-left: 3px solid #8b7355;
}
article p { text-indent: 2em; margin-bottom: 12px; font-size: 15px; line-height: 1.9; color: #2d3436; }
article b { display: inline-block; background: #3c6382; color: #ffffff; padding: 3px 10px; font-size: 0.85em; margin: 8px 8px 0 8px; border-radius: 3px 3px 0 0; font-weight: 500; }
article i { display: block; width: fit-content; max-width: 85%; background: #f5f6f8; border: 1px solid #e8ecf0; padding: 10px 14px; margin: 0 8px 12px 8px; font-style: normal; font-size: 14px; border-radius: 0 6px 6px 6px; box-shadow: none; color: #2d3436; }
article b[u] { margin: 8px 8px 0 auto; background: #8b7355; color: #ffffff; display: table; }
article i[u] { margin: 0 8px 12px auto; background: #faf9f7; border-color: #e0dcd4; border-radius: 6px 0 6px 6px; }
article k { color: #3c6382 !important; font-weight: 600; border-bottom: 1px solid #8b7355; padding: 0 1px; }

/* =====================================================
   🔄 标签页逻辑
   ===================================================== */
.tabs-content {   display: flex;       /* 新增 */
  flex-direction: column;  /* 新增 */
  order: 2; position: relative; margin-bottom: 14px; overflow: visible !important; }

.tabs-container {
  order: 0;
  display: flex; justify-content: space-around;
  background: #ffffff; border: 1px solid #dfe6e9;
  border-bottom: none;
  border-radius: 8px 8px 0 0; padding: 8px 0; position: relative; z-index: 51;
}

.tab-button {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  background: transparent; border: none; padding: 6px 12px; border-radius: 4px;
  transition: all 0.2s; color: #636e72; font-size: 0.8em; position: relative; cursor: pointer;
}
.tab-button:hover { background: rgba(60, 99, 130, 0.06); color: #3c6382; }
.tab-icon { font-size: 1.3em; }
.tab-text { font-size: 0.8em; }

.tab-button input[type="radio"], .tab-close input[type="radio"] {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0; cursor: pointer; margin: 0; z-index: 10;
}

.tab-panel {
  order: 1;
  display: none; position: relative; background: #ffffff;
  border: 1px solid #dfe6e9; border-radius: 0 0 8px 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03); overflow: visible !important;
}

.tabs-content:has(.tab-button.t1 input:checked) .tab-panel.p1,
.tabs-content:has(.tab-button.t2 input:checked) .tab-panel.p2,
.tabs-content:has(.tab-button.t3 input:checked) .tab-panel.p3,
.tabs-content:has(.tab-button.t4 input:checked) .tab-panel.p4,
.tabs-content:has(.tab-button.t5 input:checked) .tab-panel.p5 { display: block; }

.tabs-content:has(.tab-close input:checked) .tab-panel { display: none !important; }

.tabs-content:has(.tab-button.t1 input:checked) .tab-button.t1 { background: rgba(60, 99, 130, 0.08); color: #3c6382; font-weight: 600; }
.tabs-content:has(.tab-button.t2 input:checked) .tab-button.t2 { background: rgba(139, 115, 85, 0.1); color: #8b7355; font-weight: 600; }
.tabs-content:has(.tab-button.t3 input:checked) .tab-button.t3 { background: rgba(107, 91, 149, 0.08); color: #6b5b95; font-weight: 600; }
.tabs-content:has(.tab-button.t4 input:checked) .tab-button.t4 { background: rgba(46, 125, 50, 0.08); color: #2e7d32; font-weight: 600; }
.tabs-content:has(.tab-button.t5 input:checked) .tab-button.t5 { background: rgba(198, 40, 40, 0.08); color: #c62828; font-weight: 600; }

.tab-close {
  position: absolute; top: 8px; right: 14px; font-size: 0.85em;
  color: #b2bec3; cursor: pointer; z-index: 60; transition: color 0.2s;
}
.tab-close:hover { color: #3c6382; }

/* ========== 面板内容 ========== */
t[p] { display: block; background: #ffffff; border-radius: 0 0 8px 8px; overflow: visible !important; }
t[p] > b { display: block; background: #f5f6f8; color: #2d3436; padding: 10px 16px; font-weight: 600; letter-spacing: 1px; font-size: 0.95em; border-bottom: 1px solid #dfe6e9; }

t[p="1"] nav[k="h"] { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: #fafbfc; }
t[p="1"] nav[k="h"] i[k="n"] { font-size: 1.3em; font-weight: 600; color: #3c6382; }
t[p="1"] nav[k="h"] i[k="g"] { color: #636e72; background: #eceff1; padding: 2px 8px; border-radius: 10px; font-size: 0.8em; }
t[p="1"] nav[k="h"] i[k="bd"] { color: #b2bec3; font-size: 0.85em; }

t[p] p[k="ap"], t[p] p[k="cl"], t[p] p[k="ch"] { padding: 8px 16px; margin: 0; border-bottom: 1px solid #f0f2f5; font-size: 0.9em; color: #4a5568; }
t[p] p[k="ap"] { background: #fafbfc; }

t[p] nav[k="it"] { display: flex; flex-wrap: wrap; gap: 5px; padding: 10px 16px; position: relative; overflow: visible; }
t[p] nav[k="it"] i { font-style: normal; background: #f5f6f8; border: 1px solid #e8ecf0; padding: 3px 10px 3px 16px; border-radius: 12px; font-size: 0.8em; position: relative; cursor: help; color: #4a5568; }
t[p] nav[k="it"] i::before { content: '·'; position: absolute; left: 6px; top: 50%; transform: translateY(-50%); color: #8b7355; font-size: 1em; font-weight: bold; }
t[p] nav[k="it"] i:hover::after { content: attr(d); position: absolute; bottom: 120%; left: 50%; transform: translateX(-50%); background: #2d3436; color: #ffffff; padding: 4px 8px; border-radius: 4px; white-space: nowrap; font-size: 0.75em; z-index: 9999; pointer-events: none; }

t[p] p[k="as"] { margin: 0 16px 10px; padding: 6px 12px; background: #f8f5f0; border-radius: 4px; font-size: 0.85em; color: #6b5344; border-left: 2px solid #8b7355; }

nav[k="bars"] { display: grid; grid-template-columns: repeat(2, 1fr); gap: 5px 12px; padding: 10px 16px; border-top: 1px solid #dfe6e9; }
nav[k="bars"] p { display: flex; align-items: center; font-size: 0.8em; margin: 0; color: #636e72; }
nav[k="bars"] p::before { width: 26px; font-weight: 500; font-size: 0.85em; }
nav[k="bars"] p[k="fv"]::before { content: '好感'; color: #8b7355; }
nav[k="bars"] p[k="tr"]::before { content: '信任'; color: #2e7d32; }
nav[k="bars"] p[k="gd"]::before { content: '防备'; color: #f39c12; }
nav[k="bars"] p[k="dk"]::before { content: '黑化'; color: #6b5b95; }
nav[k="bars"] p[k="phy"]::before { content: '身体'; color: #c62828; }
nav[k="bars"] p[k="lea"]::before { content: '学习'; color: #3c6382; }
nav[k="bars"] p[k="soc"]::before { content: '社交'; color: #8b7355; }
nav[k="bars"] p[k="han"]::before { content: '动手'; color: #2e7d32; }
nav[k="bars"] p[k="bus"]::before { content: '商业'; color: #6b5b95; }
nav[k="bars"] p[k="luc"]::before { content: '运气'; color: #f39c12; }
nav[k="bars"] em { flex: 1; height: 5px; background: #eceff1; border-radius: 3px; overflow: hidden; margin: 0 6px; border: none; display: block; }
nav[k="bars"] i { display: block; height: 100%; background: linear-gradient(90deg, #3c6382, #8b7355); border-radius: 3px; }
nav[k="bars"] s { text-decoration: none; font-weight: 600; margin-left: 2px; font-size: 0.8em; color: #3c6382; }

/* ========== NPC卡片 ========== */
npc { display: block; border-top: 1px solid #eceff1; margin: 0 16px; padding: 8px 0; }
npc > details > summary { list-style: none; display: flex; align-items: center; gap: 6px; padding: 6px 0; cursor: pointer; }
npc > details > summary::-webkit-details-marker { display: none; }
npc > details > summary b { font-size: 1em; color: #3c6382; font-weight: 600; }
npc > details > summary i[k="rl"] { font-style: normal; font-size: 0.75em; background: #f0edf5; padding: 1px 6px; border-radius: 8px; color: #6b5b95; }
npc > details[open] > summary { border-bottom: 1px dashed #eceff1; }
npc nav[k="dt"] { padding: 6px 0; overflow: visible; }
npc nav[k="dt"] p { margin: 3px 0; font-size: 0.85em; color: #4a5568; }
npc nav[k="dt"] p[k="oc"] { color: #636e72; }

npc nav[k="dt"] p[k="hs"] { background: #f5f0f8; padding: 4px 8px; border-radius: 4px; cursor: help; }
npc nav[k="dt"] p[k="hs"] s { filter: blur(3px); transition: filter 0.3s; text-decoration: none; }
npc nav[k="dt"] p[k="hs"]:hover s { filter: blur(0); }

npc nav[k="dt"] details { margin-top: 6px; background: #f8f9fa; border-left: 2px solid #8b7355; border-radius: 0 4px 4px 0; padding: 4px 10px; }
npc nav[k="dt"] details summary { list-style: none; cursor: pointer; font-weight: 500; color: #636e72; font-size: 0.8em; padding: 3px 0 3px 12px; position: relative; transition: color 0.2s; }
npc nav[k="dt"] details summary::-webkit-details-marker { display: none; }
npc nav[k="dt"] details summary:hover { color: #3c6382; }

npc nav[k="dt"] details summary::before {
  content: '▸';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  color: #8b7355;
  font-size: 0.8em;
  transition: transform 0.2s ease;
}
npc nav[k="dt"] details[open] summary::before {
  transform: translateY(-50%) rotate(90deg);
}

npc nav[k="dt"] details p {
  margin: 4px 0;
  font-size: 0.82em;
  line-height: 1.7;
  color: #636e72;
  padding-left: 2px;
}

/* ========== 商业版图 ========== */
nav[bz="top"] {
  display: flex; justify-content: space-between;
  background: linear-gradient(135deg, #3c6382, #6b5b95);
  padding: 8px 16px;
  color: #fff;
  font-weight: 500;
  font-size: 0.9em;
  opacity: 0.9;
}
ul[bz="list"] { list-style: none; padding: 8px 16px; margin: 0; }
ul[bz="list"] li { padding: 5px 0; border-bottom: 1px solid #f0f2f5; font-size: 0.85em; color: #4a5568; }
ul[bz="list"] li b { color: #3c6382; font-weight: 600; }
nav[bz="buff"] {
  padding: 8px 16px;
  background: #f8f9fa;
  border-top: 1px solid #eceff1;
  font-size: 0.85em;
  color: #636e72;
}

/* ========== 记忆表格 ========== */
t[p="4"] table {
  width: 100%; border-collapse: collapse;
  margin: 8px 0; border: 1px solid #dfe6e9;
}
t[p="4"] caption {
  background: #f5f6f8;
  padding: 5px; font-weight: 600; color: #2d3436;
  font-size: 0.9em;
}
t[p="4"] th {
  background: #fafbfc; color: #4a5568;
  padding: 5px; font-size: 0.8em; font-weight: 500;
  border: 1px solid #e8ecf0;
}
t[p="4"] td {
  padding: 5px; text-align: center;
  font-size: 0.8em; border: 1px solid #e8ecf0;
  color: #636e72;
}

/* ========== 抉择面板 ========== */
t[p="5"] s-info {
  display: block;
  background: #fdf0f0;
  border-left: 3px solid #c62828;
  padding: 5px 10px;
  margin: 6px 16px;
  font-size: 0.8em; font-weight: 500;
  color: #c62828;
}
t[p="5"] ol { padding: 0 16px 10px; margin: 0; }
t[p="5"] li { padding: 5px 0; border-bottom: 1px dotted #eceff1; font-size: 0.85em; color: #4a5568; }

/* ========== 天命推演 ========== */
action {
  display: block; margin: 15px 0;
  border: 1px solid #dfe6e9;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  border-radius: 6px; overflow: hidden;
}
action q {
  display: block;
  background: linear-gradient(135deg, #3c6382, #6b5b95);
  color: #ffffff;
  text-align: center;
  font-size: 1.05em; font-weight: 500;
  padding: 8px; letter-spacing: 2px;
  opacity: 0.92;
}
action > div { background: #ffffff; padding: 12px; }
action > div p {
  color: #4a5568;
  font-size: 14px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px dashed #eceff1;
}
action i {
  display: block;
  background: #fafbfc;
  color: #2d3436;
  padding: 8px 12px; margin-bottom: 6px;
  border: 1px solid #e8ecf0;
  border-left: 3px solid #8b7355;
  font-style: normal; font-weight: 500;
  cursor: pointer; transition: 0.2s;
  border-radius: 0 4px 4px 0;
  font-size: 0.9em;
}
action i:hover { background: #f5f6f8; padding-left: 15px; }

/* ========== 右侧悬浮 ========== */
rb {
  position: absolute;
  right: -100px; top: auto; bottom: 100px;
  width: 36px;
  display: flex; flex-direction: column; gap: 6px;
  z-index: 52;
}
rb details { position: relative; width: 36px; height: 36px; }
rb summary {
  width: 36px; height: 36px;
  background: #ffffff;
  color: #3c6382;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; list-style: none;
  border: 1px solid #dfe6e9;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border-radius: 4px;
  font-size: 0.9em;
}
rb details[open] summary { background: #3c6382; color: #ffffff; border-color: #3c6382; }
rb details > div { display: none; }
rb details[open] > div {
  display: block;
  position: absolute; right: 46px; top: 0;
  width: 280px; max-height: 450px;
  overflow-y: auto !important;
  background: #ffffff;
  border: 1px solid #dfe6e9;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  padding: 10px; z-index: 100; border-radius: 6px;
}
rb details[open] > div h3 {
  margin: 0 0 8px; color: #3c6382;
  border-bottom: 1px solid #eceff1; padding-bottom: 4px;
  font-size: 0.95rem;
  font-weight: 600;
}
rb details > div b { color: #8b7355; font-weight: 600; }
rb details > div > div {
  background: #fafbfc; border: 1px solid #e8ecf0;
  border-radius: 6px; padding: 6px 10px;
  margin-bottom: 6px; font-size: 0.82em;
  color: #4a5568;
}
rb details > div > div:last-child { margin-bottom: 0; }
rb details > div span {
  background: #f0edf5; padding: 1px 6px;
  border-radius: 8px; font-size: 0.72rem; color: #6b5b95;
  display: inline-block; margin: 1px;
}
rb bar { display: block; height: 4px; background: #eceff1; border-radius: 3px; margin-top: 3px; }
rb in { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #3c6382, #8b7355); }

/* ========== 响应式 ========== */
html, body { overflow-x: hidden; }

@media (max-width: 768px) {
  .ai-wrap { padding: 0 !important; max-width: 100% !important; width: 100% !important; }
  rb {
    position: static; width: 100%;
    flex-direction: row; flex-wrap: wrap;
    justify-content: center; margin-top: 12px; gap: 8px;
  }
  rb details { width: auto; height: auto; }
  rb details[open] > div {
    position: fixed; left: 10px; right: 10px;
    width: auto; max-width: 100%; z-index: 1000;
  }
  .tabs-container { padding: 8px 4px; gap: 4px; width: 100%; }
  .tab-button { flex: 1; min-height: 40px; padding: 6px 2px; min-width: 50px; }
  .tab-icon { font-size: 1.2em; }
  .tab-text { font-size: 0.72em; }
  t[p] nav[k="it"] i:hover::after {
    max-width: calc(100vw - 40px);
    white-space: normal; word-break: break-word; font-size: 0.72em;
  }
  hd::after { display: none; }
}

@media (max-width: 480px) {
  .tabs-container { flex-wrap: wrap; gap: 4px; }
  .tab-button { flex: 1 1 calc(32% - 4px); }
}