.page-mypage {
  background: #f7f9fc;
}

.mp-main {
  padding: var(--main-pad-top) 0 var(--main-pad-bottom);
}

.mp-main__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--page-pad-x);
  display: grid;
  grid-template-columns: var(--sidebar-left) minmax(0, 1fr);
  gap: var(--main-gap);
  align-items: start;
}

/* —— Sidebar —— */
.mp-side {
  background: #fff;
  border: 1px solid #e5ebf3;
  border-radius: 14px;
  padding: 18px 14px 14px;
  box-shadow: 0 6px 18px rgba(28, 55, 90, 0.04);
}

.mp-profile {
  text-align: center;
  padding: 4px 8px 16px;
  border-bottom: 1px solid #eef2f7;
  margin-bottom: 10px;
}

.mp-profile__avatar {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: #e8f0ff;
  color: var(--blue);
  font-size: 22px;
  font-weight: 800;
}

.mp-profile strong {
  display: block;
  font-size: 16px;
  font-weight: 800;
  color: var(--navy-deep);
  letter-spacing: -0.03em;
}

.mp-profile p {
  margin: 6px 0 0;
  font-size: 12.5px;
  color: #8b93a0;
  line-height: 1.45;
}

.mp-nav {
  display: grid;
  gap: 2px;
}

.mp-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 10px;
  font-size: 13.5px;
  color: #4b5563;
  font-weight: 500;
}

.mp-nav a:hover {
  background: #f5f8fc;
  color: var(--blue);
}

.mp-nav a.is-on {
  background: #eaf1ff;
  color: var(--blue);
  font-weight: 700;
}

.mp-nav__ico {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  color: #8b93a0;
  flex-shrink: 0;
}

.mp-nav a:hover .mp-nav__ico,
.mp-nav a.is-on .mp-nav__ico {
  color: var(--blue);
}

.mp-nav__ico svg {
  width: 18px;
  height: 18px;
}

.mp-nav__badge {
  margin-left: auto;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  font-style: normal;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mp-nav__divider {
  border: 0;
  border-top: 1px solid #eef2f7;
  margin: 8px 4px;
}

.mp-panel__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

.mp-panel__actions .mp-filters {
  justify-content: flex-end;
}

.mp-badge--tools {
  background: #fff4e5;
  color: #c26a00;
}

.col-like {
  width: 72px;
  text-align: center;
  color: #5d6673;
}

.col-more {
  width: 44px;
  text-align: center;
}

.mp-like {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 13px;
  color: #6b7480;
  white-space: nowrap;
}

.mp-more {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #9aa3af;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.mp-more:hover {
  background: #eef2f8;
  color: #5d6673;
}

.mp-table--comments .col-origin {
  width: 22%;
}

.mp-table--comments .col-board {
  width: 118px;
}

.mp-foot .pagination span {
  color: #9aa3af;
  padding: 0 2px;
  font-size: 13px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mp-cs {
  margin-top: 14px;
  padding: 14px 12px;
  border-radius: 12px;
  background: #f3f7fc;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.mp-cs__ico {
  font-size: 18px;
  line-height: 1;
}

.mp-cs p {
  margin: 0;
  font-size: 12.5px;
  color: #5d6673;
  line-height: 1.5;
}

.mp-cs a {
  color: var(--blue);
  font-weight: 600;
}

/* —— Panel —— */
.mp-panel {
  background: #fff;
  border: 1px solid #e5ebf3;
  border-radius: 14px;
  padding: 20px 22px 22px;
  box-shadow: 0 6px 18px rgba(28, 55, 90, 0.04);
  min-width: 0;
}

.mp-panel .breadcrumb {
  margin: 0 0 var(--crumb-mb);
  font-size: var(--crumb-size);
  color: var(--crumb-color);
}

.mp-panel .breadcrumb a {
  color: var(--crumb-color);
}

.mp-panel .breadcrumb strong {
  color: var(--crumb-strong);
  font-weight: 600;
}

.mp-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.mp-panel__head h1 {
  margin: 0 0 6px;
  font-size: var(--hero-h1-size);
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--navy-deep);
}

.mp-panel__head p {
  margin: 0;
  font-size: var(--hero-lead-size);
  color: var(--hero-lead-color);
}

.mp-search {
  position: relative;
  width: min(320px, 100%);
  flex-shrink: 0;
}

.mp-search svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #9aa3af;
  pointer-events: none;
}

.mp-search input {
  width: 100%;
  height: 42px;
  border: 1px solid #dbe3ee;
  border-radius: 10px;
  padding: 0 12px 0 38px;
  font-size: 13.5px;
  outline: none;
  background: #fff;
}

.mp-search input:focus {
  border-color: #b7c9ef;
  box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.12);
}

.mp-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.mp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mp-chips button {
  height: 34px;
  padding: 0 12px;
  border: 1px solid #e4eaf2;
  border-radius: 999px;
  background: #fff;
  color: #4b5563;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.mp-chips button em {
  font-style: normal;
  margin-left: 2px;
  color: #8b93a0;
}

.mp-chips button.is-on {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.mp-chips button.is-on em {
  color: rgba(255, 255, 255, 0.85);
}

.mp-filters {
  display: flex;
  gap: 8px;
}

.mp-filters select {
  height: 34px;
  padding: 0 28px 0 12px;
  border: 1px solid #dbe3ee;
  border-radius: 8px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M7 10l5 5 5-5' stroke='%238b93a0' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 10px center;
  appearance: none;
  font-size: 13px;
  color: #4b5563;
  cursor: pointer;
}

.mp-table-wrap {
  border: 1px solid #eef2f7;
  border-radius: 12px;
  overflow: hidden;
}

.mp-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.mp-table th,
.mp-table td {
  padding: 13px 10px;
  font-size: 13.5px;
  border-bottom: 1px solid #eef2f7;
  vertical-align: middle;
}

.mp-table th {
  background: #f5f7fb;
  color: #8b93a0;
  font-weight: 600;
  text-align: center;
}

.mp-table tbody tr:last-child td {
  border-bottom: 0;
}

.mp-table tbody tr:hover {
  background: #f8fafd;
}

.col-no {
  width: 64px;
  text-align: center;
  color: #8b93a0;
}

.col-comment {
  text-align: left;
  overflow: hidden;
}

.col-board {
  width: 120px;
  text-align: center;
}

.col-origin {
  width: 28%;
  text-align: left;
  overflow: hidden;
}

.col-date {
  width: 100px;
  text-align: center;
  color: #8b93a0;
}

.col-title {
  text-align: left;
  overflow: hidden;
}

.col-view,
.col-reply {
  width: 72px;
  text-align: center;
  color: #5d6673;
}

.col-comment a,
.col-origin a,
.col-title a {
  color: #1f2937;
  font-weight: 500;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.col-comment a:hover,
.col-origin a:hover,
.col-title a:hover {
  color: var(--blue);
}

.mp-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.mp-badge--qna {
  background: #e8f0ff;
  color: #2f5fd0;
}

.mp-badge--board {
  background: #e6f6ec;
  color: #1f8a4c;
}

.mp-badge--prec {
  background: #f0eaff;
  color: #6b3fd4;
}

.mp-badge--forms {
  background: #fff1e6;
  color: #c45c12;
}

.mp-badge--news {
  background: #e8f7fb;
  color: #0b7ea4;
}

.mp-badge--comm {
  background: #fde8f0;
  color: #c0265a;
}

.mp-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-top: 18px;
  min-height: 36px;
}

.mp-total {
  position: absolute;
  left: 0;
  margin: 0;
  font-size: 13.5px;
  color: #6b7480;
}

.mp-total strong {
  color: var(--navy-deep);
}

.mp-foot .pagination {
  display: flex;
  align-items: center;
  gap: 4px;
}

.mp-foot .pagination button {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #5d6673;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}

.mp-foot .pagination button.is-on {
  background: var(--blue);
  color: #fff;
}

.mp-foot .pagination button:hover:not(.is-on) {
  background: #eef2f8;
}

.mp-footer {
  border-top: 1px solid #e5ebf3;
  background: #fff;
  padding: 22px 0;
}

.mp-footer .footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--page-pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.mp-footer .footer__brand {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.mp-footer .footer__brand strong {
  color: #9aa3af;
  font-size: 18px;
}

.mp-footer nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.mp-footer a {
  font-size: 13px;
  color: #7b8491;
}

.mp-footer p {
  margin: 0;
  font-size: 12px;
  color: #9aa3af;
}

.mp-table--scraps .col-check {
  width: 40px;
  text-align: center;
}

.mp-table--scraps .col-check input {
  width: 15px;
  height: 15px;
  accent-color: var(--blue);
  cursor: pointer;
}

.mp-table--scraps .col-title {
  width: auto;
}

.mp-table--scraps .col-title a {
  white-space: nowrap;
}

.mp-snippet {
  margin: 4px 0 0;
  font-size: 12.5px;
  color: #8b93a0;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.col-author {
  width: 128px;
  text-align: center;
  color: #5d6673;
}

.col-origin-btn {
  width: 96px;
  text-align: center;
}

.mp-origin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding: 0 10px;
  border: 1px solid #dbe3ee;
  border-radius: 8px;
  background: #fff;
  color: #4b5563;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}

.mp-origin-btn:hover {
  color: var(--blue);
  border-color: #b7c9ef;
  background: #f5f8ff;
}

.mp-foot--scraps {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.mp-foot--scraps .mp-total {
  position: static;
  justify-self: start;
}

.mp-foot--scraps .pagination {
  justify-self: center;
}

.mp-pagesize {
  justify-self: end;
  height: 34px;
  padding: 0 28px 0 12px;
  border: 1px solid #dbe3ee;
  border-radius: 8px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M7 10l5 5 5-5' stroke='%238b93a0' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 10px center;
  appearance: none;
  font-size: 13px;
  color: #4b5563;
  cursor: pointer;
}

@media (max-width: 1199px) {
  .mp-table--scraps .col-author,
  .mp-table--scraps .col-origin-btn {
    display: none;
  }
}

@media (max-width: 767px) {
  .mp-foot--scraps {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 12px;
  }

  .mp-foot--scraps .mp-total,
  .mp-pagesize {
    justify-self: center;
  }

  .mp-table--scraps .col-check,
  .mp-table--scraps .col-more {
    display: none;
  }
}

/* posts table */
.mp-table .col-title {
  width: auto;
}

@media (max-width: 1199px) {
  .mp-main__inner {
    grid-template-columns: 1fr;
  }

  .mp-side {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 12px;
    align-items: start;
  }

  .mp-profile {
    border-bottom: 0;
    margin-bottom: 0;
    border-right: 1px solid #eef2f7;
    padding-right: 12px;
  }

  .mp-cs {
    grid-column: 1 / -1;
  }

  .col-origin,
  .col-reply {
    display: none;
  }
}

@media (max-width: 767px) {
  .mp-side {
    grid-template-columns: 1fr;
  }

  .mp-profile {
    border-right: 0;
    border-bottom: 1px solid #eef2f7;
    margin-bottom: 10px;
    padding-right: 8px;
  }

  .mp-panel__head {
    flex-direction: column;
  }

  .mp-panel__actions {
    width: 100%;
    align-items: stretch;
  }

  .mp-panel__actions .mp-filters {
    justify-content: stretch;
  }

  .mp-panel__actions .mp-filters select {
    flex: 1;
  }

  .mp-search {
    width: 100%;
  }

  .mp-foot {
    flex-direction: column;
    gap: 12px;
  }

  .mp-total {
    position: static;
  }

  .col-board,
  .col-date,
  .col-like {
    display: none;
  }
}
