/* ===== Reset & Base ===== */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{font-size:16px;scroll-behavior:smooth}
body{font-family:'Noto Sans JP','Hiragino Sans','Helvetica Neue',sans-serif;color:#333;background:#FFF5EE;line-height:1.8;min-height:100vh}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto}

/* ===== Color Variables ===== */
:root{
  --primary:#E8843C;
  --primary-light:#F5A623;
  --primary-bg:#FFF5EE;
  --accent:#4A90D9;
  --accent-light:#6BB3F0;
  --success:#51CF66;
  --error:#FF6B6B;
  --card:#fff;
  --text:#333;
  --text-light:#888;
  --shadow:0 2px 12px rgba(0,0,0,.06);
  --shadow-hover:0 6px 24px rgba(0,0,0,.1);
  --radius:16px;
  --radius-lg:20px;
}

/* ===== Hero (Top & Index) ===== */
.hero{
  background:linear-gradient(135deg,#F5A623 0%,#E8843C 100%);
  color:#fff;text-align:center;padding:40px 20px 32px;
  position:relative;overflow:hidden;
}
.hero::before{
  content:'';position:absolute;top:-60px;right:-40px;
  width:200px;height:200px;border-radius:50%;
  background:rgba(255,255,255,.12);
}
.hero::after{
  content:'';position:absolute;bottom:-80px;left:-30px;
  width:260px;height:260px;border-radius:50%;
  background:rgba(255,255,255,.08);
}
.hero-badge{
  display:inline-block;background:#fff;color:var(--primary);
  font-weight:700;font-size:.95rem;padding:4px 20px;border-radius:20px;
  margin-bottom:12px;position:relative;z-index:1;
}
.hero h1{font-size:2rem;margin-bottom:8px;position:relative;z-index:1;letter-spacing:.02em}
.hero p{font-size:.9rem;opacity:.92;position:relative;z-index:1}

/* ===== Container ===== */
.container{max-width:900px;margin:0 auto;padding:16px 16px}

/* ===== Unit Card Grid (Index Page) ===== */
.unit-grid{
  display:grid;grid-template-columns:repeat(4,1fr);
  gap:14px;
}
.unit-card{
  background:var(--card);border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:18px 14px;
  display:flex;align-items:center;gap:12px;
  position:relative;
  transition:transform .2s,box-shadow .2s;
  cursor:pointer;overflow:hidden;
}
.unit-card:hover{transform:translateY(-3px);box-shadow:var(--shadow-hover)}
.unit-card-icon{
  width:42px;height:42px;min-width:42px;
  display:flex;align-items:center;justify-content:center;
  font-size:1.4rem;background:#f8f8f8;border-radius:12px;
}
.unit-card-name{font-size:.95rem;font-weight:600;line-height:1.4;color:var(--text)}
.unit-card-num{
  position:absolute;top:6px;right:10px;
  font-size:.75rem;color:#ccc;font-weight:600;
}

/* ===== Info Box (bottom recommend) ===== */
.info-box{
  margin-top:28px;padding:20px 24px;
  background:#FFFDE7;border:2px solid #FFD54F;border-radius:var(--radius);
  display:flex;align-items:center;gap:16px;
}
.info-box-badge{
  display:inline-block;background:var(--primary);color:#fff;
  font-size:.8rem;font-weight:700;padding:2px 12px;border-radius:10px;
  margin-bottom:4px;
}
.info-box-text h3{font-size:1.05rem;margin-bottom:4px}
.info-box-text p{font-size:.85rem;color:var(--text-light);line-height:1.5}
.info-box-icon{font-size:2rem}
.info-box-arrow{margin-left:auto;font-size:1.5rem;color:var(--primary-light)}

/* ===== Header ===== */
.site-header{
  background:linear-gradient(135deg,#F5A623 0%,#E8843C 100%);
  padding:0 20px;
  box-shadow:0 2px 8px rgba(0,0,0,.1);
  position:sticky;top:0;z-index:100;
}
.header-inner{
  max-width:900px;margin:0 auto;
  display:flex;align-items:center;justify-content:space-between;
  height:52px;
}
.site-logo{
  display:flex;align-items:center;gap:8px;
  font-size:1.15rem;font-weight:700;color:#fff;
  letter-spacing:.02em;
}
.site-logo-icon{
  width:32px;height:32px;border-radius:6px;
  flex-shrink:0;
}
.header-nav{display:flex;gap:18px}
.header-nav a{
  color:rgba(255,255,255,.88);font-size:.9rem;font-weight:600;
  transition:color .2s;
}
.header-nav a:hover{color:#fff}

/* ===== Hero Logo (Top page & Grade index) ===== */
.hero-logo{
  display:flex;align-items:center;justify-content:center;gap:12px;
  position:relative;z-index:1;margin-bottom:4px;
}
.hero-logo-icon{
  width:56px;height:56px;border-radius:12px;
  filter:drop-shadow(0 4px 12px rgba(0,0,0,.15));
}
.hero-logo-text{
  font-size:1.8rem;font-weight:800;color:#fff;
  letter-spacing:.04em;text-shadow:0 2px 8px rgba(0,0,0,.12);
}
/* Compact hero logo for grade index pages */
.hero-logo.compact .hero-logo-icon{width:48px;height:48px;border-radius:10px}
.hero-logo.compact .hero-logo-text{font-size:1.6rem}

@media(max-width:600px){
  .hero-logo-icon{width:44px;height:44px;border-radius:10px}
  .hero-logo-text{font-size:1.4rem}
  .hero-logo.compact .hero-logo-icon{width:36px;height:36px}
  .hero-logo.compact .hero-logo-text{font-size:1.2rem}
}

/* ===== Footer ===== */
.site-footer{
  text-align:center;padding:24px 20px;
  font-size:.85rem;color:var(--text-light);
  margin-top:32px;
}
.footer-site-nav{margin-bottom:10px;font-size:.9rem}
.footer-site-nav a{color:var(--text-light);text-decoration:none;padding:4px 8px;border-radius:6px;transition:background .2s,color .2s}
.footer-site-nav a:hover{background:rgba(0,0,0,.06);color:var(--primary)}
.footer-site-nav-sep{margin:0 6px;opacity:.4}
.footer-subtle-link{margin-top:4px;font-size:.78rem;opacity:.72}
.footer-subtle-link a{color:var(--text-light)}
.footer-subtle-link a:hover{text-decoration:underline;opacity:.95}

/* ===== Breadcrumb ===== */
.breadcrumb{
  max-width:900px;margin:12px auto 0;padding:0 16px;
  font-size:.85rem;color:var(--text-light);
}
.breadcrumb a{color:var(--accent)}
.breadcrumb a:hover{text-decoration:underline}
.breadcrumb span{margin:0 6px}

/* ===== Explanation Page ===== */
.explain-container{max-width:860px;margin:0 auto;padding:30px 20px}

.explain-title{
  font-size:1.6rem;font-weight:700;margin-bottom:8px;color:var(--primary);
}
.explain-subtitle{font-size:.95rem;color:var(--text-light);margin-bottom:28px}

.explain-section{
  background:var(--card);border-radius:var(--radius);
  box-shadow:var(--shadow);padding:28px;margin-bottom:20px;
}
.explain-section h2{
  font-size:1.2rem;color:var(--primary);margin-bottom:14px;
  padding-bottom:8px;border-bottom:2px solid #FFF0E0;
}
.explain-section h3{font-size:1.05rem;color:#555;margin:14px 0 8px}
.explain-section p{margin-bottom:12px}
.explain-section ul,.explain-section ol{margin:8px 0 16px 20px}
.explain-section li{margin-bottom:6px}

/* Point / Tip / Warn boxes */
.point-box{
  background:#FFF8E1;border-left:4px solid var(--primary-light);
  border-radius:0 var(--radius) var(--radius) 0;
  padding:16px 20px;margin:16px 0;
}
.point-box .label{font-weight:700;color:var(--primary);margin-bottom:4px}

.tip-box{
  background:#E8F5E9;border-left:4px solid var(--success);
  border-radius:0 var(--radius) var(--radius) 0;
  padding:16px 20px;margin:16px 0;
}
.tip-box .label{font-weight:700;color:#2E7D32;margin-bottom:4px}

.warn-box{
  background:#FFF0F0;border-left:4px solid var(--error);
  border-radius:0 var(--radius) var(--radius) 0;
  padding:16px 20px;margin:16px 0;
}
.warn-box .label{font-weight:700;color:#C62828;margin-bottom:4px}

/* Example box */
.example-box{
  background:#FFF8F0;border-radius:var(--radius);
  padding:20px;margin:16px 0;border:1px solid #FFE0C0;
}
.example-box .ex-title{font-weight:700;color:var(--primary);margin-bottom:8px}

/* Math formula display */
.math-display{
  background:#f8f8f8;border-radius:12px;padding:16px 20px;
  margin:12px 0;font-size:1.15rem;text-align:center;
  font-family:'Courier New',monospace;letter-spacing:.05em;
  border:1px solid #eee;
}

/* Step-by-step */
.steps,.example-box{counter-reset:step}
.step{
  position:relative;padding:12px 12px 12px 48px;margin-bottom:8px;
  background:#FFF8F0;border-radius:10px;
}
.step::before{
  counter-increment:step;content:counter(step);
  position:absolute;left:12px;top:12px;
  width:28px;height:28px;border-radius:50%;
  background:var(--primary);color:#fff;
  display:flex;align-items:center;justify-content:center;
  font-size:.85rem;font-weight:700;
}

/* Figure / Diagram area */
.figure-area{
  text-align:center;margin:20px 0;padding:20px;
  background:#fafbfc;border-radius:var(--radius);border:1px dashed #ddd;
}
.figure-area svg{max-width:100%}
.figure-area .caption{font-size:.85rem;color:var(--text-light);margin-top:8px}

/* Navigation between explain & practice */
.page-nav{
  display:flex;gap:12px;margin-top:32px;justify-content:center;flex-wrap:wrap;
}
.page-nav a,.btn{
  display:inline-flex;align-items:center;gap:6px;
  padding:12px 28px;border-radius:30px;font-weight:600;
  font-size:1rem;transition:.2s;border:none;cursor:pointer;
}
.btn-primary{background:var(--primary);color:#fff}
.btn-primary:hover{background:#D0732E}
.btn-secondary{background:var(--accent);color:#fff}
.btn-secondary:hover{background:#3A7BC0}
.btn-outline{background:transparent;border:2px solid var(--primary);color:var(--primary)}
.btn-outline:hover{background:var(--primary);color:#fff}

/* ===== Practice App ===== */
.practice-container{max-width:960px;margin:0 auto;padding:30px 20px}

.practice-header{
  background:var(--card);border-radius:var(--radius);
  box-shadow:var(--shadow);padding:20px 24px;margin-bottom:16px;
  display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;
}
.practice-title{font-size:1.2rem;font-weight:700;color:var(--primary)}
.score-display{
  display:flex;align-items:center;gap:16px;font-size:1rem;
}
.score-display .correct{color:var(--success);font-weight:700}
.score-display .wrong{color:var(--error);font-weight:700}
.score-display .total{color:var(--text-light)}

/* Problem area */
.problem-area{
  background:var(--card);border-radius:var(--radius);
  box-shadow:var(--shadow);padding:28px;margin-bottom:16px;
}
.problem-number{
  display:inline-block;background:var(--primary);color:#fff;
  border-radius:20px;padding:2px 14px;font-size:.85rem;font-weight:600;
  margin-bottom:12px;
}
.problem-text{font-size:1.25rem;font-weight:600;margin-bottom:20px;line-height:1.6}

/* Answer input */
.answer-area{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:16px}
.answer-area label{font-size:1rem;font-weight:600}
.answer-input{
  font-size:1.2rem;padding:10px 16px;border:2px solid #e0e0e0;
  border-radius:10px;width:180px;text-align:center;
  transition:border-color .2s;
}
.answer-input:focus{outline:none;border-color:var(--primary)}
.answer-input.correct-input{border-color:var(--success);background:#f0fff4}
.answer-input.wrong-input{border-color:var(--error);background:#fff5f5}
.btn-check{
  padding:10px 24px;border-radius:10px;font-size:1rem;font-weight:600;
  background:var(--primary);color:#fff;border:none;cursor:pointer;transition:.2s;
}
.btn-check:hover{background:#D0732E}
.btn-next{
  padding:10px 24px;border-radius:10px;font-size:1rem;font-weight:600;
  background:var(--success);color:#fff;border:none;cursor:pointer;transition:.2s;
}
.btn-next:hover{background:#40C057}

/* Feedback */
.feedback{
  padding:12px 16px;border-radius:10px;margin-top:12px;
  font-weight:600;font-size:1rem;display:none;
}
.feedback.show{display:block}
.feedback.correct{background:#EBFBEE;color:#2B8A3E}
.feedback.wrong{background:#FFF5F5;color:#C92A2A}

/* Solution display */
.solution{
  margin-top:16px;padding:16px;background:#f8f8f8;
  border-radius:10px;display:none;
}
.solution.show{display:block}
.solution h4{color:var(--primary);margin-bottom:8px}

/* ===== Memo Canvas ===== */
.memo-section{
  background:var(--card);border-radius:var(--radius);
  box-shadow:var(--shadow);padding:20px 24px;margin-bottom:16px;
}
.memo-section h3{font-size:1.05rem;font-weight:700;margin-bottom:12px;color:#555}
.memo-toolbar{
  display:flex;align-items:center;gap:8px;margin-bottom:10px;flex-wrap:wrap;
}
.memo-toolbar button{
  padding:6px 14px;border-radius:8px;border:1px solid #ddd;
  background:#fff;cursor:pointer;font-size:.85rem;transition:.2s;
}
.memo-toolbar button:hover{background:#f0f0f0}
.memo-toolbar button.active{background:var(--primary);color:#fff;border-color:var(--primary)}
.color-btn{
  width:28px!important;height:28px!important;border-radius:50%!important;
  padding:0!important;border:2px solid #ddd!important;
}
.color-btn.active{border-color:#333!important;box-shadow:0 0 0 2px rgba(0,0,0,.2)}
.pen-size{width:60px;height:28px;border-radius:6px;border:1px solid #ddd;padding:0 4px}
.memo-canvas-wrap{
  border:2px solid #e0e0e0;border-radius:10px;overflow:hidden;
  background:#fff;position:relative;touch-action:none;
}
.memo-canvas-wrap canvas{display:block;width:100%;cursor:crosshair}
.grid-canvas{position:absolute;top:0;left:0;pointer-events:none}

/* ===== Table ===== */
.math-table{
  width:100%;border-collapse:collapse;margin:16px 0;
}
.math-table th,.math-table td{
  border:1px solid #e0e0e0;padding:8px 12px;text-align:center;
}
.math-table th{background:#FFF0E0;font-weight:600;color:var(--primary)}

/* ===== Progress bar ===== */
.progress-bar{
  width:100%;height:8px;background:#e9ecef;border-radius:4px;
  overflow:hidden;margin:8px 0;
}
.progress-fill{
  height:100%;background:linear-gradient(90deg,var(--primary-light),var(--primary));
  border-radius:4px;transition:width .3s;
}

/* ===== Difficulty selector ===== */
.difficulty-selector{
  display:flex;gap:8px;margin-bottom:16px;
}
.diff-btn{
  padding:6px 16px;border-radius:20px;border:2px solid #e0e0e0;
  background:#fff;cursor:pointer;font-size:.9rem;transition:.2s;
}
.diff-btn:hover{border-color:var(--primary)}
.diff-btn.active{background:var(--primary);color:#fff;border-color:var(--primary)}

/* ===== Choice buttons ===== */
.choices{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:16px 0}
.choice-btn{
  padding:12px;border:2px solid #e0e0e0;border-radius:10px;
  background:#fff;cursor:pointer;font-size:1rem;
  text-align:center;transition:.2s;
}
.choice-btn:hover{border-color:var(--primary);background:#FFF8F0}
.choice-btn.selected{border-color:var(--primary);background:#FFF0E0}
.choice-btn.correct-choice{border-color:var(--success);background:#EBFBEE}
.choice-btn.wrong-choice{border-color:var(--error);background:#FFF5F5}

/* ===== PDF Download Button ===== */
.pdf-bar{
  text-align:center;margin:24px 0;
}
.btn-pdf{
  background:linear-gradient(135deg,#4A90D9,#357ABD);color:#fff;
  padding:10px 24px;border-radius:30px;font-weight:600;
  font-size:.95rem;border:none;cursor:pointer;transition:.2s;
  display:inline-flex;align-items:center;gap:6px;
  box-shadow:0 2px 8px rgba(74,144,217,.3);
}
.btn-pdf:hover{background:linear-gradient(135deg,#357ABD,#2A6299);box-shadow:0 4px 12px rgba(74,144,217,.4);transform:translateY(-1px)}
.btn-pdf:disabled{opacity:.6;cursor:wait;transform:none}

/* ===== Progress Dashboard ===== */
.progress-card{
  background:var(--card);border-radius:var(--radius);
  box-shadow:var(--shadow);padding:24px;margin-bottom:16px;
}
.progress-section-title{
  font-size:1.15rem;font-weight:700;color:var(--primary);
  margin-bottom:16px;padding-bottom:8px;border-bottom:2px solid #FFF0E0;
}

/* Level display */
.level-card{
  background:linear-gradient(135deg,#FFF8F0 0%,#FFF0E0 100%);
  border:2px solid #FFD9A0;
}
.level-display{display:flex;align-items:center;gap:20px}
.level-icon{font-size:3rem;line-height:1}
.level-info{flex:1;min-width:0}
.level-title-row{display:flex;align-items:center;gap:10px;margin-bottom:8px}
.level-badge{
  display:inline-block;background:var(--primary);color:#fff;
  font-weight:700;font-size:.9rem;padding:2px 12px;border-radius:12px;
}
.level-name{font-size:1.2rem;font-weight:700;color:var(--text)}
.xp-bar-wrap{display:flex;align-items:center;gap:12px}
.xp-bar{
  flex:1;height:12px;background:#e9ecef;border-radius:6px;overflow:hidden;
}
.xp-bar-fill{
  height:100%;border-radius:6px;
  background:linear-gradient(90deg,#F5A623,#E8843C);
  transition:width .6s ease;
}
.xp-text{font-size:.85rem;color:var(--text-light);white-space:nowrap}

/* Stats grid */
.stats-grid{
  display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:16px;
}
.stat-card{
  background:var(--card);border-radius:var(--radius);
  box-shadow:var(--shadow);padding:18px 12px;text-align:center;
}
.stat-icon{font-size:1.6rem;margin-bottom:4px}
.stat-value{font-size:1.6rem;font-weight:800;color:var(--primary);line-height:1.2}
.stat-label{font-size:.8rem;color:var(--text-light);margin-top:2px}

/* Achievements */
.achievements-grid{
  display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:10px;
}
.achievement-item{
  padding:14px 10px;border-radius:12px;text-align:center;
  border:2px solid #e0e0e0;transition:transform .2s;
}
.achievement-item.unlocked{
  border-color:#FFD54F;background:#FFFDE7;
}
.achievement-item.locked{opacity:.5}
.achievement-item.unlocked:hover{transform:translateY(-2px)}
.achievement-icon{font-size:1.8rem;margin-bottom:4px}
.achievement-name{font-size:.85rem;font-weight:700;color:var(--text);margin-bottom:2px}
.achievement-desc{font-size:.75rem;color:var(--text-light);line-height:1.3}

/* Grade tabs */
.grade-tabs{display:flex;gap:8px;margin-bottom:16px}
.grade-tab{
  padding:6px 18px;border-radius:20px;border:2px solid #e0e0e0;
  background:#fff;cursor:pointer;font-size:.9rem;font-weight:600;transition:.2s;
}
.grade-tab:hover{border-color:var(--primary)}
.grade-tab.active{background:var(--primary);color:#fff;border-color:var(--primary)}

/* Unit progress list */
.unit-progress-item{
  display:flex;align-items:center;gap:12px;
  padding:12px;border-bottom:1px solid #f0f0f0;
}
.unit-progress-item:last-child{border-bottom:none}
.unit-progress-item.practiced{background:#FAFFF5}
.unit-progress-icon{font-size:1.3rem;width:32px;text-align:center;flex-shrink:0}
.unit-progress-info{flex:1;min-width:0}
.unit-progress-name{font-size:.9rem;font-weight:600;color:var(--text);margin-bottom:4px}
.unit-progress-num{font-size:.8rem;color:var(--text-light);font-weight:400}
.unit-progress-bar-wrap{display:flex;align-items:center;gap:8px}
.unit-progress-bar{
  flex:1;height:6px;background:#e9ecef;border-radius:3px;overflow:hidden;
}
.unit-progress-bar-fill{
  height:100%;border-radius:3px;
  background:linear-gradient(90deg,var(--success),#2B8A3E);transition:width .4s;
}
.unit-progress-rate{font-size:.8rem;color:var(--text-light);min-width:36px;text-align:right}
.unit-progress-meta{flex-shrink:0;text-align:right;min-width:40px}
.unit-sessions{font-size:.8rem;color:var(--accent);font-weight:600}
.unit-not-yet{font-size:.75rem;color:#ccc}

/* History list */
.history-item{
  display:flex;align-items:center;gap:12px;
  padding:12px;border-bottom:1px solid #f0f0f0;
}
.history-item:last-child{border-bottom:none}
.history-icon{font-size:1.3rem;width:32px;text-align:center;flex-shrink:0}
.history-info{flex:1;min-width:0}
.history-title{font-size:.9rem;font-weight:600;color:var(--text)}
.history-detail{font-size:.8rem;color:var(--text-light);margin-top:2px}
.perfect-badge{
  display:inline-block;background:#FFD54F;color:#333;
  font-size:.7rem;font-weight:700;padding:1px 8px;border-radius:8px;
}
.history-right{text-align:right;flex-shrink:0}
.history-xp{font-size:.9rem;font-weight:700;color:var(--primary)}
.history-date{font-size:.75rem;color:var(--text-light);margin-top:2px}
.history-empty{
  text-align:center;padding:32px 16px;color:var(--text-light);font-size:.95rem;
}

/* Reward toast notification */
.reward-toast{
  position:fixed;top:70px;left:50%;transform:translateX(-50%) translateY(-20px);
  background:linear-gradient(135deg,#F5A623,#E8843C);color:#fff;
  padding:14px 28px;border-radius:16px;
  box-shadow:0 8px 32px rgba(232,132,60,.35);
  font-weight:700;font-size:1rem;text-align:center;
  z-index:200;opacity:0;transition:opacity .4s,transform .4s;
  pointer-events:none;line-height:1.6;
}
.reward-toast.show{opacity:1;transform:translateX(-50%) translateY(0)}

/* ===== Animations ===== */
@keyframes fadeIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
.fade-in{animation:fadeIn .4s ease-out}

/* ===== Responsive ===== */
@media(max-width:768px){
  .unit-grid{grid-template-columns:repeat(2,1fr)}
  .hero h1{font-size:1.5rem}
  .explain-title{font-size:1.3rem}
  .problem-text{font-size:1.1rem}
  .practice-header{flex-direction:column;align-items:flex-start}
  .info-box{flex-direction:column;text-align:center}
  .info-box-arrow{display:none}
  .stats-grid{grid-template-columns:repeat(2,1fr)}
  .achievements-grid{grid-template-columns:repeat(auto-fill,minmax(120px,1fr))}
  .level-icon{font-size:2.4rem}
  .level-name{font-size:1rem}
}
@media(max-width:480px){
  .unit-grid{grid-template-columns:1fr 1fr;gap:10px}
  .unit-card{padding:14px 10px;gap:8px}
  .unit-card-icon{width:34px;height:34px;min-width:34px;font-size:1.1rem}
  .unit-card-name{font-size:.85rem}
  .hero{padding:30px 16px 24px}
  .container,.explain-container,.practice-container{padding:20px 12px}
  .explain-section,.problem-area,.memo-section{padding:16px}
  .answer-area{flex-direction:column;align-items:stretch}
  .answer-input{width:100%}
  .level-display{flex-direction:column;text-align:center;gap:12px}
  .level-title-row{justify-content:center}
  .xp-bar-wrap{flex-direction:column;gap:4px}
  .grade-tabs{flex-wrap:wrap}
  .history-item{flex-wrap:wrap;gap:8px}
  .history-right{width:100%;text-align:left;display:flex;gap:12px;align-items:center}
}
