/* === Plan A: Enjoy Versant new UI === */
/* Hide legacy header / nav (they were the cramped 1-row header + dropdown nav) */
.p-header,
.p-nav { display: none !important; }

/* Tighter breadcrumb */
.p-breadcrumb { max-width: 1320px; margin: 0 auto; padding: 10px 20px; }

/* ===== Header ===== */
.ev-header {
  background: #fff;
  border-bottom: 1px solid #e0e7ef;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(20,40,80,.04);
}
.ev-header__inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 20px;
  height: 60px;
}
.ev-header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #0d47a1;
  flex-shrink: 0;
}
.ev-header__logo:hover { text-decoration: none; }
.ev-header__logo img { height: 32px; width: auto; display: block; }
.ev-header__logo-text { font-weight: 700; font-size: 1rem; color: #0d47a1; }

.ev-header__search { flex: 1; max-width: 420px; position: relative; }
.ev-header__search input {
  width: 100%; height: 38px;
  border: 1px solid #cfd8dc; border-radius: 20px;
  padding: 0 14px 0 38px;
  font-size: .88rem; background: #f5f7fa; outline: none;
  box-sizing: border-box; color: #1a2740;
}
.ev-header__search input:focus {
  border-color: #1976d2; background: #fff;
  box-shadow: 0 0 0 3px rgba(25,118,210,.1);
}
.ev-header__search-ic {
  position: absolute; left: 14px; top: 50%;
  transform: translateY(-50%);
  color: #90a4ae; pointer-events: none; font-size: .85rem;
}

.ev-header__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.ev-header__bell {
  position: relative;
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #5a6a82; text-decoration: none;
  font-size: 1.05rem;
  transition: background .15s;
}
.ev-header__bell:hover { background: #eef2f7; color: #0d47a1; text-decoration: none; }
.ev-header__bell-badge {
  position: absolute; top: 3px; right: 3px;
  background: #e53935; color: #fff;
  font-size: .6rem; font-weight: 700;
  padding: 1px 5px; border-radius: 9px;
  min-width: 16px; height: 15px;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
}

/* ----- User pill + dropdown ----- */
.ev-header__user { position: relative; }
.ev-header__user-trigger {
  display: flex; align-items: center; gap: 8px;
  background: #eef2f7;
  padding: 4px 12px 4px 4px;
  border: none; border-radius: 22px;
  cursor: pointer;
  font-size: .85rem; font-weight: 700; color: #1a2740;
  transition: background .15s;
  font-family: inherit;
}
.ev-header__user-trigger:hover { background: #dde6f0; }
.ev-header__user-avt {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg,#ffca28,#ff8f00);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: .85rem;
  overflow: hidden; flex-shrink: 0;
}
.ev-header__user-avt img { width: 100%; height: 100%; object-fit: cover; }
.ev-header__user-name { white-space: nowrap; }
.ev-header__user-pin {
  background: #fff3e0; color: #e65100;
  font-size: .65rem; padding: 1px 6px; border-radius: 8px;
  font-weight: 700;
}
.ev-header__user-arrow { font-size: .7rem; color: #5a6a82; transition: transform .2s; }
.ev-header__user.is-open .ev-header__user-arrow { transform: rotate(180deg); }

.ev-header__user-menu {
  position: absolute;
  top: calc(100% + 12px); right: 0;
  background: #fff;
  min-width: 280px;
  border-radius: 14px;
  box-shadow: 0 14px 40px rgba(20,40,80,.18);
  padding: 6px 0;
  z-index: 120;
  border: 1px solid #e0e7ef;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity .15s, transform .15s;
}
.ev-header__user.is-open .ev-header__user-menu {
  opacity: 1; transform: translateY(0); pointer-events: auto;
}
.ev-header__user-menu::before {
  content: "";
  position: absolute; top: -7px; right: 18px;
  width: 12px; height: 12px;
  background: #fff;
  border-left: 1px solid #e0e7ef;
  border-top: 1px solid #e0e7ef;
  transform: rotate(45deg);
}

.ev-header__user-menu-head {
  padding: 14px 18px;
  border-bottom: 1px solid #eef2f7;
}
.ev-header__user-menu-name { font-weight: 700; font-size: .95rem; color: #1a2740; }
.ev-header__user-menu-email {
  font-size: .72rem; color: #90a4ae;
  margin-top: 2px; word-break: break-all;
}
.ev-header__user-menu-pin {
  display: inline-block;
  font-size: .7rem; font-weight: 700;
  padding: 3px 10px; border-radius: 10px;
  margin-top: 8px; text-decoration: none;
}
.ev-pin-premium { background: #fff3e0; color: #e65100; }
.ev-pin-free   { background: #f5f5f5; color: #666; border: 1px solid #ddd; }

.ev-header__user-menu-grp {
  padding: 6px 0;
  border-bottom: 1px solid #eef2f7;
}
.ev-header__user-menu-grp:last-child { border-bottom: none; }

.ev-header__user-menu-item {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 18px;
  font-size: .86rem; color: #3a4a64;
  text-decoration: none; font-weight: 500;
  transition: background .1s;
}
.ev-header__user-menu-item:hover {
  background: #f5f7fa; color: #0d47a1;
  text-decoration: none;
}
.ev-header__user-menu-item i {
  width: 18px; text-align: center;
  color: #90a4ae; font-size: .95rem;
}
.ev-header__user-menu-item:hover i { color: #0d47a1; }
.ev-header__user-menu-badge {
  margin-left: auto;
  background: #e3f2fd; color: #0d47a1;
  font-size: .66rem; font-weight: 700;
  padding: 2px 8px; border-radius: 9px;
}
.ev-menu-admin {
  background: linear-gradient(90deg,#fff3e0,transparent);
  color: #e65100;
  font-weight: 700;
}
.ev-menu-admin i { color: #e65100; }
.ev-menu-admin:hover {
  background: linear-gradient(90deg,#ffe0b2,transparent);
  color: #e65100;
}
.ev-menu-admin:hover i { color: #e65100; }
.ev-menu-logout { color: #c62828; }
.ev-menu-logout i { color: #c62828; }
.ev-menu-logout:hover { color: #b71c1c; }
.ev-menu-logout:hover i { color: #b71c1c; }

/* ----- Guest header ----- */
.ev-header__login-link {
  color: #1565c0; text-decoration: none;
  font-weight: 700; font-size: .88rem;
  padding: 8px 14px;
}
.ev-header__signup-btn {
  background: #1976d2; color: #fff;
  text-decoration: none;
  padding: 8px 14px; border-radius: 8px;
  font-weight: 700; font-size: .85rem;
}
.ev-header__signup-btn:hover { background: #1565c0; color: #fff; text-decoration: none; }

.ev-header__sp-toggle {
  display: none;
  background: none; border: none;
  cursor: pointer;
  font-size: 1.3rem; color: #5a6a82;
  padding: 6px 10px;
  position: relative;
}
.ev-header__sp-toggle-badge {
  position: absolute; top: 2px; right: 2px;
  background: #e53935; color: #fff;
  font-size: .6rem; font-weight: 700;
  padding: 1px 5px; border-radius: 8px;
  min-width: 14px; line-height: 1;
}

/* ===== Nav bar ===== */
.ev-nav { background: #0d47a1; }
.ev-nav__list {
  max-width: 1320px; margin: 0 auto;
  padding: 0 20px;
  display: flex; align-items: stretch;
  list-style: none;
}
.ev-nav__item {
  color: #fff; text-decoration: none;
  font-size: .88rem; font-weight: 600;
  padding: 0 18px; height: 46px;
  display: inline-flex; align-items: center; gap: 6px;
  border-bottom: 3px solid transparent;
  transition: background .15s, border-color .15s;
  white-space: nowrap;
}
.ev-nav__item:hover {
  background: rgba(255,255,255,.08);
  color: #fff; text-decoration: none;
}
.ev-nav__item.is-active {
  background: rgba(255,255,255,.12);
  border-bottom-color: #ffca28;
}
.ev-nav__ic { font-size: 1.05rem; line-height: 1; }

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  .ev-nav__list {
    overflow-x: auto;
    padding: 0 12px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .ev-nav__list::-webkit-scrollbar { display: none; }
  .ev-nav__item { padding: 0 14px; flex-shrink: 0; font-size: .82rem; }
}
@media (max-width: 880px) {
  .ev-header__search { display: none; }
}
@media (max-width: 600px) {
  .ev-header__logo-text { display: none; }
  .ev-header__inner { padding: 0 12px; gap: 8px; height: 54px; }
  .ev-header__user-name,
  .ev-header__user-pin,
  .ev-header__user-arrow { display: none; }
  .ev-header__user-trigger { padding: 0; background: transparent; }
  .ev-header__sp-toggle { display: inline-flex; }
  .ev-nav { display: none; }
  .ev-header__bell { width: 34px; height: 34px; font-size: .95rem; }
}

/* ===== Mobile bottom tabbar ===== */
.ev-tabbar {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  background: #fff;
  border-top: 1px solid #e0e7ef;
  z-index: 90;
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -2px 12px rgba(20,40,80,.06);
}
.ev-tabbar__item {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  height: 60px;
  font-size: .65rem;
  color: #90a4ae;
  text-decoration: none;
  gap: 2px;
  background: none; border: none;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
  position: relative;
}
.ev-tabbar__item.is-active { color: #0d47a1; font-weight: 700; }
.ev-tabbar__ic { font-size: 1.25rem; line-height: 1; }
.ev-tabbar__badge {
  position: absolute; top: 6px;
  left: calc(50% + 6px);
  background: #e53935; color: #fff;
  font-size: .55rem; font-weight: 700;
  padding: 1px 5px; border-radius: 8px;
  min-width: 14px; line-height: 1;
}
@media (max-width: 600px) {
  .ev-tabbar { display: flex; }
  body { padding-bottom: 60px; }
  .l-footer, .p-footer { margin-bottom: 60px; }
}

/* ===== SP slide-up sheet ===== */
.ev-spmenu {
  position: fixed; inset: 0;
  z-index: 150;
  pointer-events: none;
  visibility: hidden;
}
.ev-spmenu.is-open {
  pointer-events: auto;
  visibility: visible;
}
.ev-spmenu__backdrop {
  position: absolute; inset: 0;
  background: rgba(10,20,40,.55);
  opacity: 0;
  transition: opacity .2s;
}
.ev-spmenu.is-open .ev-spmenu__backdrop { opacity: 1; }
.ev-spmenu__sheet {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: #fff;
  border-radius: 18px 18px 0 0;
  max-height: 85vh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform .25s ease-out;
  padding-bottom: env(safe-area-inset-bottom);
}
.ev-spmenu.is-open .ev-spmenu__sheet { transform: translateY(0); }
.ev-spmenu__handle {
  width: 36px; height: 4px;
  background: #cfd8dc;
  border-radius: 2px;
  margin: 10px auto 4px;
}
.ev-spmenu__head {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid #eef2f7;
}
.ev-spmenu__avt {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg,#ffca28,#ff8f00);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700;
  overflow: hidden;
  flex-shrink: 0;
}
.ev-spmenu__avt img { width: 100%; height: 100%; object-fit: cover; }
.ev-spmenu__user { flex: 1; min-width: 0; }
.ev-spmenu__user-name { font-weight: 700; font-size: .95rem; color: #1a2740; }
.ev-spmenu__pin {
  display: inline-block;
  font-size: .65rem; font-weight: 700;
  padding: 2px 7px; border-radius: 8px;
  margin-top: 3px;
}
.ev-spmenu__close {
  background: #f5f7fa; border: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  font-size: .95rem; color: #5a6a82;
  cursor: pointer;
  flex-shrink: 0;
}
.ev-spmenu__grp {
  border-bottom: 1px solid #eef2f7;
  padding: 8px 0;
}
.ev-spmenu__grp:last-child { border-bottom: none; }
.ev-spmenu__label {
  font-size: .68rem; color: #90a4ae;
  font-weight: 700; letter-spacing: .06em;
  padding: 4px 18px 6px;
}
.ev-spmenu__item {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 18px;
  font-size: .92rem; color: #1a2740;
  text-decoration: none;
}
.ev-spmenu__item:hover,
.ev-spmenu__item:active {
  background: #f5f7fa;
  text-decoration: none;
  color: #0d47a1;
}
.ev-spmenu__item--admin {
  background: linear-gradient(90deg,#fff3e0,transparent);
  color: #e65100;
  font-weight: 700;
}
.ev-spmenu__item--admin:hover,
.ev-spmenu__item--admin:active {
  background: linear-gradient(90deg,#ffe0b2,transparent);
  color: #e65100;
}
.ev-spmenu__item--logout { color: #c62828; }
.ev-spmenu__item--logout:hover,
.ev-spmenu__item--logout:active { color: #b71c1c; }
.ev-spmenu__badge {
  margin-left: auto;
  background: #e3f2fd; color: #0d47a1;
  font-size: .66rem; font-weight: 700;
  padding: 2px 8px; border-radius: 9px;
}

/* ===== Hide hero on top page when logged in (via blade @if) ===== */
/* No CSS needed — wrapped in @if condition */

/* ===== Dashboard (.ev-dash) ===== */
.ev-dash {
  background: linear-gradient(135deg, #0d47a1 0%, #1976d2 55%, #42a5f5 100%);
  border-radius: 14px;
  padding: 24px 28px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
  color: #fff;
}
.ev-dash__deco1, .ev-dash__deco2 {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.ev-dash__deco1 {
  top: -50px; right: -50px;
  width: 220px; height: 220px;
  background: rgba(255,255,255,0.05);
}
.ev-dash__deco2 {
  bottom: -70px; left: 35%;
  width: 280px; height: 280px;
  background: rgba(255,255,255,0.03);
}

/* Greeting */
.ev-dash__hello { margin-bottom: 16px; position: relative; }
.ev-dash__hello-pre {
  color: rgba(255,255,255,0.8);
  font-size: 0.85rem;
  margin: 0 0 4px;
}
.ev-dash__hello-main {
  display: flex; align-items: center;
  gap: 12px; flex-wrap: wrap;
}
.ev-dash__hello-title {
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.4;
}
.ev-dash__streak {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.35);
  padding: 4px 14px;
  border-radius: 20px;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
}

/* Score box */
.ev-dash__score {
  background: rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 16px;
  position: relative;
}
.ev-dash__score-row {
  display: flex; align-items: center;
  gap: 12px; flex-wrap: wrap;
  margin-bottom: 10px;
}
.ev-dash__score-tag {
  color: rgba(255,255,255,0.8);
  font-size: 0.82rem;
  white-space: nowrap;
}
.ev-dash__score-goal {
  color: #ffca28;
  font-weight: 700;
  font-size: 1rem;
}
.ev-dash__score-level {
  color: rgba(255,255,255,0.75);
  font-size: 0.8rem;
}
.ev-dash__score-date {
  color: rgba(255,255,255,0.8);
  font-size: 0.8rem;
}
.ev-dash__score-date--over { color: #ff8a80; }
.ev-dash__score-bar-row {
  display: flex; align-items: center;
  gap: 14px;
}
.ev-dash__bar-track {
  flex: 1;
  background: rgba(255,255,255,0.15);
  border-radius: 6px;
  height: 10px;
  overflow: hidden;
  min-width: 60px;
}
.ev-dash__bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #fff59d, #ffca28);
  border-radius: 6px;
  transition: width 0.5s;
}
.ev-dash__score-real {
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
}
.ev-dash__score-diff--ok    { color: #a5d6a7; font-size: 0.82rem; font-weight: 700; }
.ev-dash__score-diff--short { color: #ffcc80; font-size: 0.82rem; }
.ev-dash__score-empty {
  color: rgba(255,255,255,0.6);
  font-size: 0.82rem;
}
.ev-dash__nogoal {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
}
.ev-dash__nogoal-text { color: rgba(255,255,255,0.75); font-size: 0.88rem; }
.ev-dash__nogoal-link {
  color: #ffca28; font-size: 0.82rem;
  font-weight: 700; text-decoration: none;
}
.ev-dash__score-mock {
  border-top: 1px solid rgba(255,255,255,0.15);
  margin-top: 10px; padding-top: 10px;
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap;
}
.ev-dash__mock-tag    { color: rgba(255,255,255,0.6); font-size: 0.78rem; }
.ev-dash__mock-score  { color: rgba(255,255,255,0.9); font-weight: 700; }
.ev-dash__mock-cefr {
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.8);
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 8px;
}
.ev-dash__mock-note { color: rgba(255,255,255,0.5); font-size: 0.72rem; }

/* Actions */
.ev-dash__actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
  position: relative;
}
.ev-dash__action {
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 12px;
  padding: 14px 12px;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  color: #fff;
  display: block;
}
.ev-dash__action:hover {
  background: rgba(255,255,255,0.28);
  text-decoration: none; color: #fff;
  transform: translateY(-2px);
}
.ev-dash__action--secondary {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.2);
}
.ev-dash__action--secondary:hover {
  background: rgba(255,255,255,0.2);
}
.ev-dash__action-ic {
  font-size: 1.8rem; margin-bottom: 4px;
  line-height: 1.1;
}
.ev-dash__action-title {
  color: #fff; font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 2px;
  line-height: 1.3;
}
.ev-dash__action-sub {
  color: rgba(255,255,255,0.7);
  font-size: 0.72rem;
  line-height: 1.4;
}
.ev-dash__action-btn {
  margin-top: 8px;
  background: #fff;
  color: #1565c0;
  border-radius: 14px;
  padding: 4px 0;
  font-size: 0.78rem;
  font-weight: 700;
}
.ev-dash__action--secondary .ev-dash__action-btn {
  background: rgba(255,255,255,0.25);
  color: #fff;
}

/* Diary entry */
.ev-dash__diary {
  display: flex; align-items: center; gap: 14px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 16px;
  text-decoration: none;
  transition: background 0.2s;
  position: relative;
}
.ev-dash__diary:hover {
  background: rgba(255,255,255,0.2);
  text-decoration: none;
}
.ev-dash__diary--disabled {
  opacity: 0.55;
  pointer-events: none;
}
.ev-dash__diary-ic {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
}
.ev-dash__diary-body { flex: 1; min-width: 0; }
.ev-dash__diary-title {
  color: #fff; font-weight: 700;
  font-size: 0.95rem;
}
.ev-dash__diary-sub {
  color: rgba(255,255,255,0.75);
  font-size: 0.78rem;
  margin-top: 2px;
}
.ev-dash__diary-status--prem    { color: #ffca28; font-weight: 700; }
.ev-dash__diary-status--ok      { color: #a5d6a7; font-weight: 700; }
.ev-dash__diary-status--limited { color: #ff8a80; font-weight: 700; }
.ev-dash__diary-btn {
  background: #fff;
  color: #0d47a1;
  border-radius: 16px;
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Bottom (calendar + last test) */
.ev-dash__bottom {
  display: flex; align-items: center;
  gap: 20px; flex-wrap: wrap;
  position: relative;
}
.ev-dash__cal {
  display: flex; gap: 6px;
}
.ev-dash__day { text-align: center; }
.ev-dash__day-name {
  color: rgba(255,255,255,0.6);
  font-size: 0.65rem;
  margin-bottom: 3px;
}
.ev-dash__day-dot {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.62rem;
  background: rgba(255,255,255,0.08);
  border: 2px dashed rgba(255,255,255,0.25);
}
.ev-dash__day-dot--done {
  background: #ffca28;
  color: #333;
  font-weight: bold;
  border: none;
}
.ev-dash__day-dot--today {
  background: rgba(255,255,255,0.25);
  border: 2px solid #fff;
}
.ev-dash__last {
  color: rgba(255,255,255,0.8);
  font-size: 0.82rem;
}
.ev-dash__last strong { color: #fff; }
.ev-dash__last-link {
  color: #ffca28;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

/* ===== SP layout (< 600px) ===== */
@media (max-width: 600px) {
  .ev-dash {
    padding: 16px 14px;
    margin-bottom: 16px;
    border-radius: 12px;
  }
  .ev-dash__hello { margin-bottom: 12px; }
  .ev-dash__hello-pre { font-size: 0.78rem; margin-bottom: 2px; }
  .ev-dash__hello-main { gap: 8px; }
  .ev-dash__hello-title { font-size: 1rem; line-height: 1.45; }
  .ev-dash__streak {
    font-size: 0.72rem;
    padding: 3px 10px;
  }

  .ev-dash__score {
    padding: 11px 13px;
    margin-bottom: 12px;
  }
  /* Stack first row vertically on SP — no flex-wrap with white-space:nowrap */
  .ev-dash__score-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin-bottom: 8px;
  }
  .ev-dash__score-row > .ev-dash__score-inline {
    display: flex; gap: 8px; align-items: baseline;
    flex-wrap: wrap;
  }
  .ev-dash__score-tag,
  .ev-dash__score-goal,
  .ev-dash__score-level,
  .ev-dash__score-date {
    font-size: 0.76rem;
    white-space: normal;
  }
  .ev-dash__score-goal { font-size: 0.95rem; }

  .ev-dash__score-bar-row { gap: 8px; }
  .ev-dash__bar-track { height: 8px; }
  .ev-dash__score-real { font-size: 0.85rem; }
  .ev-dash__score-diff--ok,
  .ev-dash__score-diff--short { font-size: 0.74rem; }

  .ev-dash__score-mock {
    gap: 6px;
    font-size: 0.72rem;
  }
  .ev-dash__mock-tag    { font-size: 0.7rem; }
  .ev-dash__mock-note   { font-size: 0.66rem; width: 100%; margin-top: 2px; }

  /* 2x2 + 1 action grid: パート別 + 模試 on first row, スコア記録 full width */
  .ev-dash__actions {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
  }
  .ev-dash__action {
    padding: 12px 8px;
    border-radius: 10px;
  }
  .ev-dash__action--full { grid-column: 1 / -1; }
  .ev-dash__action-ic { font-size: 1.55rem; margin-bottom: 2px; }
  .ev-dash__action-title { font-size: 0.8rem; }
  .ev-dash__action-sub { display: none; }
  .ev-dash__action-btn {
    margin-top: 6px;
    padding: 3px 0;
    font-size: 0.72rem;
  }
  /* Full-width action becomes horizontal */
  .ev-dash__action--full {
    display: flex; align-items: center;
    gap: 10px;
    text-align: left;
    padding: 10px 14px;
  }
  .ev-dash__action--full .ev-dash__action-ic {
    font-size: 1.4rem; margin: 0;
  }
  .ev-dash__action--full .ev-dash__action-title {
    flex: 1; margin: 0;
  }
  .ev-dash__action--full .ev-dash__action-btn {
    margin: 0; padding: 4px 12px;
    flex-shrink: 0;
  }

  /* Bottom: calendar should never overflow */
  .ev-dash__bottom {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .ev-dash__cal {
    justify-content: space-between;
    gap: 0;
    width: 100%;
  }
  .ev-dash__day { flex: 1; min-width: 0; }
  .ev-dash__day-dot {
    width: 28px; height: 28px;
    margin: 0 auto;
  }
  .ev-dash__last,
  .ev-dash__last-link {
    font-size: 0.76rem;
    text-align: center;
  }

  /* Diary entry SP layout */
  .ev-dash__diary {
    padding: 11px 14px;
    gap: 10px;
    margin-bottom: 12px;
  }
  .ev-dash__diary-ic { font-size: 1.6rem; }
  .ev-dash__diary-title { font-size: 0.85rem; }
  .ev-dash__diary-sub { font-size: 0.7rem; line-height: 1.4; }
  .ev-dash__diary-btn {
    padding: 5px 10px;
    font-size: 0.72rem;
  }
}

/* Very narrow (< 360px) */
@media (max-width: 360px) {
  .ev-dash { padding: 14px 12px; }
  .ev-dash__hello-title { font-size: 0.92rem; }
  .ev-dash__day-dot { width: 24px; height: 24px; }
  .ev-dash__day-name { font-size: 0.6rem; }
}
