.workspace-page {
  min-height: 100vh;
  background: #ffffff;
  overflow-x: hidden;
}

.workspace-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 248px 1fr auto;
  align-items: center;
  min-height: 72px;
  border-bottom: 1px solid #e8e8e8;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
}

.workspace-topbar .brand {
  padding-left: 56px;
}

.workspace-topnav {
  display: flex;
  justify-content: center;
  gap: 34px;
  color: #303030;
  font-size: 14px;
}

.topbar-account {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 16px;
  padding-right: 40px;
  color: #6b6b6b;
  font-size: 14px;
}

.topbar-account button,
.desktop-action,
.course-actions button,
.quick-button,
.section-title button {
  min-height: 36px;
  border-radius: 999px;
  padding: 0 16px;
  font-weight: 720;
}

.topbar-account button,
.desktop-action,
.course-actions button:first-child,
.quick-button.is-primary {
  background: #050505;
  color: #ffffff;
}

.workspace-layout {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
}

.workspace-sidebar {
  position: sticky;
  top: 72px;
  min-height: calc(100vh - 72px);
  border-right: 1px solid #e8e8e8;
  background: #fafafa;
  padding: 54px 32px;
}

.sidebar-label {
  margin: 0 0 18px 24px;
  color: #8a8a8a;
  font-size: 12px;
  font-weight: 760;
  text-transform: uppercase;
}

.sidebar-item {
  display: flex;
  align-items: center;
  min-height: 44px;
  border-radius: 8px;
  padding: 0 24px;
  color: #303030;
  font-size: 15px;
  font-weight: 650;
}

.sidebar-item + .sidebar-item {
  margin-top: 8px;
}

.sidebar-item.is-active {
  background: #050505;
  color: #ffffff;
}

.sidebar-item.is-muted {
  color: #9b9b9b;
}

.workspace-main {
  width: min(100%, 1240px);
  min-width: 0;
  padding: 54px 56px 72px;
}

.workspace-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 28px;
}

.workspace-kicker,
.status-label,
.section-title span,
.panel-title span {
  display: block;
  color: #8a8a8a;
  font-size: 13px;
  font-weight: 760;
}

.workspace-heading h1 {
  margin: 8px 0 0;
  color: #050505;
  font-size: clamp(42px, 5vw, 58px);
  line-height: 1.04;
}

.workspace-heading p {
  max-width: 620px;
  margin: 14px 0 0;
  color: #6b6b6b;
  font-size: 17px;
  line-height: 1.7;
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.summary-strip article {
  min-height: 92px;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 20px;
  background: #ffffff;
}

.summary-strip span {
  display: block;
  color: #8a8a8a;
  font-size: 13px;
}

.summary-strip strong {
  display: block;
  margin-top: 10px;
  color: #050505;
  font-size: 28px;
}

.primary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 18px;
}

.course-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 258px;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 38px 40px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0.025)),
    #f5f5f7;
}

.course-card h2 {
  margin: 16px 0 0;
  color: #050505;
  font-size: clamp(36px, 4vw, 52px);
  line-height: 1.05;
}

.course-card p {
  max-width: 560px;
  margin: 18px 0 0;
  color: #6b6b6b;
  font-size: 17px;
  line-height: 1.7;
}

.course-actions {
  display: flex;
  gap: 10px;
  margin-top: 34px;
}

.course-actions button + button,
.quick-button,
.section-title button {
  border: 1px solid #e8e8e8;
  background: #ffffff;
  color: #111111;
}

.quick-panel,
.orders-panel,
.notice-panel {
  min-width: 0;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  background: #ffffff;
}

.quick-panel {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 258px;
  padding: 28px;
}

.panel-title {
  margin-bottom: 8px;
}

.panel-title strong {
  display: block;
  margin-top: 6px;
  color: #050505;
  font-size: 22px;
}

.quick-button {
  justify-content: center;
  width: 100%;
  min-height: 46px;
  border-radius: 8px;
}

.quick-button.is-primary {
  border-color: #050505;
}

.section-block {
  margin-top: 38px;
}

.section-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.section-title h2 {
  margin: 6px 0 0;
  color: #050505;
  font-size: 25px;
}

.section-title p {
  margin: 0;
  color: #8a8a8a;
  font-size: 14px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  min-width: 0;
  min-height: 172px;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 26px;
  background: #ffffff;
}

.service-card strong {
  display: block;
  color: #050505;
  font-size: 21px;
}

.service-card span {
  display: block;
  margin-top: 12px;
  color: #8a8a8a;
  font-size: 14px;
}

.service-card p {
  margin: 18px 0 0;
  color: #6b6b6b;
  font-size: 14px;
  line-height: 1.65;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(340px, 0.55fr);
  gap: 18px;
  margin-top: 38px;
}

.orders-panel,
.notice-panel {
  min-height: 172px;
  padding: 26px;
}

.section-title.compact {
  margin-bottom: 18px;
}

.orders-list {
  border-top: 1px solid #e8e8e8;
}

.orders-loading {
  padding: 22px 0;
  color: #8a8a8a;
  font-size: 14px;
}

.order-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid #f0f0f0;
}

.order-main {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.order-main strong {
  color: #050505;
  font-size: 16px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-main span {
  color: #8a8a8a;
  font-size: 13px;
}

.order-status {
  flex-shrink: 0;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.order-status.is-queue {
  background: #f1f1f1;
  color: #6b6b6b;
}

.order-status.is-doing {
  background: #050505;
  color: #ffffff;
}

.order-status.is-done {
  background: #ffffff;
  color: #050505;
  box-shadow: inset 0 0 0 1px #050505;
}

.empty-orders {
  padding-top: 22px;
}

.empty-orders strong {
  color: #050505;
  font-size: 18px;
}

.empty-orders p,
.notice-panel p {
  margin: 10px 0 0;
  color: #6b6b6b;
  font-size: 15px;
  line-height: 1.75;
}

.mobile-tabbar {
  display: none;
}

@media (max-width: 980px) {
  .workspace-page {
    padding-bottom: 78px;
  }

  .workspace-topbar {
    grid-template-columns: 1fr auto;
    min-height: 58px;
    padding: 0 18px;
  }

  .workspace-topbar .brand {
    padding-left: 0;
    font-size: 16px;
  }

  .workspace-topnav,
  .topbar-account span,
  .workspace-sidebar,
  .desktop-action {
    display: none;
  }

  .topbar-account {
    padding-right: 0;
  }

  .topbar-account button {
    min-height: 36px;
    padding: 0 16px;
    font-size: 13px;
  }

  .workspace-layout {
    display: block;
  }

  .workspace-main {
    width: 100%;
    padding: 34px 18px 28px;
    overflow-x: hidden;
  }

  .workspace-heading {
    display: block;
    margin-bottom: 22px;
  }

  .workspace-heading h1 {
    font-size: 40px;
  }

  .workspace-heading p {
    font-size: 15px;
  }

  .summary-strip {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .summary-strip article {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    padding: 16px 18px;
  }

  .summary-strip strong {
    margin-top: 0;
    font-size: 24px;
  }

  .primary-grid,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .course-card {
    min-height: 210px;
    padding: 28px 24px;
  }

  .course-card h2 {
    font-size: 38px;
  }

  .course-card p {
    font-size: 15px;
  }

  .course-actions {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 28px;
  }

  .course-actions button {
    min-height: 44px;
    width: 100%;
    padding: 0 12px;
  }

  .quick-panel {
    min-height: auto;
    padding: 22px;
  }

  .service-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .service-card {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    min-height: 72px;
    padding: 18px 20px;
  }

  .service-card span {
    margin-top: 0;
  }

  .service-card p {
    grid-column: 1 / -1;
    margin-top: 10px;
  }

  .orders-panel,
  .notice-panel {
    padding: 22px;
  }

  .mobile-tabbar {
    position: fixed;
    right: 14px;
    bottom: 14px;
    left: 14px;
    z-index: 50;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    min-height: 58px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(18px);
  }

  .mobile-tabbar a {
    display: grid;
    place-items: center;
    color: #6b6b6b;
    font-size: 13px;
    font-weight: 720;
  }

  .mobile-tabbar a.is-active {
    color: #050505;
  }
}

@media (max-width: 390px) {
  .course-actions {
    grid-template-columns: 1fr;
  }

  .summary-strip {
    grid-template-columns: 1fr;
  }
}
