/* [SEJP-V7-T014] Unified Studio 2.5D Tactile Depth Across All Hubs */
.card,
.sejp-card {
  border-radius: var(--radius-md);
  border-color: var(--border-subtle);
  box-shadow: inset 0 1px 0 var(--card-highlight, rgba(255, 255, 255, 0.35)), 0 3px 0 var(--border-subtle), var(--shadow-sm);
}

.sejp-surface-25d {
  border: 1.5px solid var(--border-subtle);
  border-bottom: 4px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  box-shadow: inset 0 1px 0 var(--card-highlight, rgba(255, 255, 255, 0.45)), var(--shadow-md);
}

.sejp-btn-25d,
.btn-primary {
  border-bottom-width: 3px !important;
  transition: transform 0.14s ease, box-shadow 0.16s ease, filter 0.16s ease;
}
.sejp-btn-25d:active,
.btn-primary:active {
  transform: translateY(2px);
  border-bottom-width: 1px !important;
}

.sejp-tray-25d {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-bottom: 3px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 14px;
  box-shadow: inset 0 1px 0 var(--card-highlight, transparent);
}

.sejp-kpi-25d {
  background: linear-gradient(165deg, var(--bg-surface) 0%, var(--bg-elevated) 100%);
  border: 1px solid var(--border-subtle);
  border-bottom: 4px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  box-shadow: inset 0 1px 0 var(--card-highlight, transparent), var(--shadow-sm);
}

/* Multi-Card Review Studio Grid (1 / 2 / 4 / 6 Cards) */
.rs-multigrid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
.rs-multigrid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rs-multigrid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rs-multigrid.cols-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 991px) {
  .rs-multigrid.cols-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .rs-multigrid.cols-2,
  .rs-multigrid.cols-4,
  .rs-multigrid.cols-6 { grid-template-columns: 1fr; }
}

.rs-mini-rate-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}
.rs-mini-rate-btn {
  border: 1px solid var(--border-subtle);
  border-bottom-width: 3px;
  border-radius: 8px;
  padding: 5px 4px;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  background: var(--bg-surface);
  transition: transform 0.12s ease;
}
.rs-mini-rate-btn:active { transform: translateY(1px); }
.rs-mini-rate-btn[data-r="1"] { color: var(--status-danger); border-color: var(--status-danger); background: var(--status-danger-bg); }
.rs-mini-rate-btn[data-r="2"] { color: var(--status-warning); border-color: var(--status-warning); background: var(--status-warning-bg); }
.rs-mini-rate-btn[data-r="3"] { color: var(--accent-primary); border-color: var(--accent-primary); background: var(--accent-soft); }
.rs-mini-rate-btn[data-r="4"] { color: var(--status-success); border-color: var(--status-success); background: var(--status-success-bg); }

/* Pro Writing Sentence Studio Styles */
.ws-kana-cell {
  position: relative;
  width: 112px;
  height: 112px;
  border: 1.5px solid var(--border-strong);
  border-radius: 10px;
  background: var(--bg-canvas);
  flex-shrink: 0;
  overflow: hidden;
}
.ws-kana-cell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, transparent calc(50% - 0.5px), var(--border-strong) 50%, transparent calc(50% + 0.5px)),
    linear-gradient(to bottom, transparent calc(50% - 0.5px), var(--border-strong) 50%, transparent calc(50% + 0.5px));
  opacity: 0.26;
}
.ws-kana-ghost {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4.1rem;
  font-weight: 700;
  pointer-events: none;
  user-select: none;
  color: var(--text-primary);
}
.ws-lined-sheet {
  position: relative;
  width: 100%;
  height: 220px;
  border: 2px solid var(--border-strong);
  border-radius: var(--radius-md);
  background-color: var(--bg-canvas);
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 35px,
    rgba(100, 116, 139, 0.28) 36px,
    transparent 37px,
    transparent 71px,
    rgba(15, 118, 110, 0.45) 72px
  );
  overflow: hidden;
}

/* [SEJP-V9-T033 / SEJP-V10-T005] Bottom-Right Hexagon Support Desk FAB (Zero Overlap with Scrubber) */
.sejp-hex-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: var(--z-fab-support, 1030);
  width: 54px;
  height: 54px;
  border: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #ffffff;
  background: linear-gradient(135deg, #0f766e 0%, #0284c7 100%);
  clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0% 50%);
  filter: drop-shadow(0 6px 14px rgba(15, 118, 110, 0.30));
  transition: transform 0.16s ease, filter 0.16s ease;
}
.sejp-hex-fab:hover {
  transform: translateY(-2px) scale(1.05);
  filter: drop-shadow(0 10px 20px rgba(15, 118, 110, 0.42));
}
.sejp-hex-fab .bi { font-size: 1.28rem; }
.sejp-hex-badge {
  position: fixed;
  right: 14px;
  bottom: 60px;
  z-index: calc(var(--z-fab-support, 1030) + 1);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ef4444;
  border: 2px solid var(--bg-surface, #ffffff);
  pointer-events: none;
}
@media (max-width: 767.98px) {
  .sejp-hex-fab { bottom: 74px; right: 14px; width: 48px; height: 48px; }
  .sejp-hex-badge { bottom: 112px; right: 12px; }
}

/* [SEJP-V10-T008] Low-Spec Performance Preset: Zero Blur, Zero Ambient Keyframes, Ultra-Crisp Flat GPU Path */
html[data-perf="low"] *,
html[data-perf="low"] *::before,
html[data-perf="low"] *::after {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
html[data-perf="low"] .sejp-card,
html[data-perf="low"] .card,
html[data-perf="low"] .sejp-surface-25d,
html[data-perf="low"] .sejp-kpi-25d {
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08) !important;
}
html[data-perf="low"] .sejp-hex-fab {
  filter: none !important;
  box-shadow: none !important;
  transition: none !important;
}
html[data-perf="low"] .sejp-ambient-particle,
html[data-perf="low"] .wf25-mist,
html[data-perf="low"] .wf25-caustics {
  display: none !important;
  animation: none !important;
}
