.eventworks-mobile-mockup-page {
  margin: 1.5rem 0 2rem;
}

.ewm-layout {
  display: grid;
  grid-template-columns: minmax(280px, 380px) minmax(320px, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.ewm-controls {
  background: #ffffff;
  border: 1px solid #d7dee8;
  border-radius: 14px;
  padding: 1rem 1rem 1.25rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.ewm-controls h3 {
  margin: 0 0 0.5rem;
  color: #0f1f4a;
  font-size: 1.1rem;
}

.ewm-subtitle {
  margin: 0 0 0.85rem;
  color: #51627d;
  font-size: 0.92rem;
  line-height: 1.45;
}

.ewm-controls-row {
  display: grid;
  grid-template-columns: auto minmax(100px, 1fr) auto;
  gap: 0.6rem;
  align-items: center;
  margin: 0.75rem 0 1rem;
}

.ewm-controls-row label {
  font-weight: 600;
  color: #1f2d47;
  font-size: 0.9rem;
}

.ewm-controls-row input {
  border: 1px solid #c7d2e0;
  border-radius: 8px;
  padding: 0.45rem 0.6rem;
  font-size: 0.95rem;
}

.ewm-btn {
  border: 1px solid #0b1c4d;
  background: linear-gradient(135deg, #17398a 0%, #0b1c4d 100%);
  color: #ffffff;
  border-radius: 8px;
  padding: 0.45rem 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.ewm-btn:hover {
  opacity: 0.96;
}

.ewm-stats {
  margin: 0.5rem 0 0.8rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.ewm-stats div {
  background: #f5f8fd;
  border: 1px solid #d6deea;
  border-radius: 10px;
  padding: 0.55rem 0.5rem;
  text-align: center;
}

.ewm-stats dt {
  margin: 0;
  color: #5f6f86;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.ewm-stats dd {
  margin: 0.2rem 0 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #10245f;
}

.ewm-error {
  margin: 0.2rem 0 0.8rem;
  color: #991b1b;
  background: #fef2f2;
  border: 1px solid #fecaca;
  padding: 0.6rem 0.7rem;
  border-radius: 8px;
  font-size: 0.9rem;
}

.ewm-device-wrap {
  display: flex;
  justify-content: center;
}

.ewm-device {
  width: 390px;
  max-width: 100%;
  min-height: 760px;
  border-radius: 34px;
  border: 10px solid #0f172a;
  background: #f8fbff;
  box-shadow: 0 16px 40px rgba(2, 6, 23, 0.25);
  overflow: hidden;
  position: relative;
}

.ewm-notch {
  width: 42%;
  height: 22px;
  background: #0f172a;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  margin: 0 auto;
}

.ewm-app-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.9rem 1rem 0.8rem;
  background: linear-gradient(135deg, #17398a 0%, #0b1c4d 100%);
  color: #ffffff;
}

.ewm-app-header strong {
  font-size: 0.95rem;
  font-weight: 700;
}

.ewm-app-header span {
  font-size: 0.78rem;
  opacity: 0.9;
}

.ewm-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
  padding: 0.7rem 0.75rem;
  background: #f3f7fc;
  border-bottom: 1px solid #d8e1ed;
}

.ewm-tabs button {
  border: 1px solid #c8d4e3;
  background: #ffffff;
  color: #30435f;
  border-radius: 999px;
  padding: 0.42rem 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.ewm-tabs button.is-active {
  background: #10245f;
  color: #ffffff;
  border-color: #10245f;
}

.ewm-app-body {
  padding: 0.8rem;
  min-height: 610px;
}

.ewm-loading,
.ewm-empty {
  border: 1px dashed #bfd0e4;
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  color: #5a6d86;
  background: #f6fafe;
}

.ewm-list {
  display: grid;
  gap: 0.7rem;
}

.ewm-card {
  background: #ffffff;
  border: 1px solid #d7dfeb;
  border-radius: 12px;
  padding: 0.8rem;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.07);
}

.ewm-tap-card {
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.ewm-tap-card:hover {
  transform: translateY(-1px);
  border-color: #bccbe0;
  box-shadow: 0 7px 14px rgba(15, 23, 42, 0.1);
}

.ewm-card-title {
  margin: 0 0 0.35rem;
  color: #10245f;
  font-size: 0.95rem;
  line-height: 1.35;
}

.ewm-card-meta {
  margin: 0.05rem 0;
  color: #576983;
  font-size: 0.82rem;
  line-height: 1.28;
}

.ewm-card-track {
  display: inline-block;
  margin: 0.2rem 0 0.25rem;
  padding: 0.16rem 0.45rem;
  background: #edf2fa;
  border: 1px solid #d4dfef;
  color: #1f3c7d;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.ewm-card-speakers {
  margin: 0.2rem 0 0;
  color: #344a67;
  font-size: 0.8rem;
}

.ewm-speaker-row,
.ewm-sponsor-row {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 0.7rem;
  align-items: start;
}

.ewm-speaker-photo,
.ewm-sponsor-logo {
  width: 62px;
  height: 62px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #d1d9e6;
  background: #f0f4fb;
}

.ewm-speaker-photo-placeholder,
.ewm-sponsor-logo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #667a95;
  font-size: 0.7rem;
  font-weight: 600;
}

.ewm-link {
  color: #17398a;
  font-size: 0.8rem;
  text-decoration: none;
  word-break: break-all;
}

.ewm-link:hover {
  text-decoration: underline;
}

.ewm-detail {
  display: grid;
  gap: 0.75rem;
}

.ewm-back-btn {
  justify-self: start;
  border: 1px solid #cad5e4;
  background: #f8fbff;
  color: #1f365f;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-weight: 600;
  font-size: 0.78rem;
  cursor: pointer;
}

.ewm-back-btn:hover {
  background: #eef4fc;
}

.ewm-detail-header-row {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 0.7rem;
  align-items: start;
}

.ewm-speaker-detail-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.52rem;
}

.ewm-speaker-detail-stack .ewm-speaker-photo {
  width: 84px;
  height: 84px;
  border-radius: 14px;
}

.ewm-speaker-detail-text {
  max-width: 100%;
}

.ewm-speaker-detail-text .ewm-detail-title {
  margin: 0 0 0.1rem;
  font-size: 1.05rem;
  line-height: 1.28;
}

.ewm-speaker-detail-text .ewm-detail-meta {
  margin: 0;
  line-height: 1.22;
}

.ewm-detail-title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
  color: #0f2558;
}

.ewm-detail-meta {
  margin: 0.15rem 0 0;
  color: #4f627f;
  font-size: 0.82rem;
}

.ewm-detail-subtitle {
  margin: 0.35rem 0 0;
  color: #213962;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.ewm-detail-copy {
  margin: 0;
  color: #354c6d;
  font-size: 0.86rem;
  line-height: 1.5;
}

.ewm-inline-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.ewm-inline-chip {
  border: 1px solid #ccd8e8;
  background: #f3f7fc;
  color: #1e3a72;
  border-radius: 999px;
  padding: 0.24rem 0.56rem;
  font-size: 0.75rem;
  cursor: pointer;
}

.ewm-inline-chip:hover {
  background: #e8f0fa;
}

.ewm-card-speaker {
  padding: 0.92rem 0.78rem 0.82rem;
}

.ewm-speaker-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.52rem;
}

.ewm-speaker-stack .ewm-speaker-photo {
  width: 84px;
  height: 84px;
  border-radius: 14px;
}

.ewm-speaker-text {
  width: 100%;
  display: grid;
  gap: 0.08rem;
}

.ewm-speaker-text .ewm-card-title {
  margin: 0 0 0.08rem 0 !important;
  font-size: 1rem;
}

.ewm-speaker-text .ewm-card-meta {
  margin: 0 !important;
  padding: 0;
  line-height: 1.22;
}

.ewm-speaker-avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #d9e4f5 0%, #edf3fc 100%);
  border-color: #c2d2ea;
  color: #14356f;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

@media (max-width: 980px) {
  .ewm-layout {
    grid-template-columns: 1fr;
  }

  .ewm-controls {
    order: 2;
  }

  .ewm-device-wrap {
    order: 1;
  }
}
