:root {
  --paper: #fbfaf7;
  --ink: #111110;
  --muted: #6f6a62;
  --line: #d7d1c7;
  --accent: #bd5537;
  --olive: #a7a26b;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Helvetica Neue", Arial, "Pretendard", "Noto Sans KR", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button,
a,
label {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  margin: 0;
  padding: 0 32px;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  font-family: "Bodoni 72", Didot, "Bodoni MT", "Times New Roman", serif;
  font-size: 37px;
  line-height: 1;
  letter-spacing: -0.02em;
}

.header-member {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 12px;
}

.header-nickname {
  max-width: 150px;
  overflow: hidden;
  text-decoration: underline;
  text-overflow: ellipsis;
  text-underline-offset: 4px;
  white-space: nowrap;
}

.header-nickname:hover {
  color: var(--accent);
}

.logout-button {
  display: inline-grid;
  place-items: center;
  min-width: 64px;
  height: 28px;
  padding: 0 12px;
  border: 1px solid #0c0c0b;
  border-radius: 0;
  background: #0c0c0b;
  color: #fff;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.logout-button:hover {
  background: #0c0c0b;
  color: #fff;
}

.profile-page {
  margin: 0 clamp(34px, 6vw, 102px);
  padding: 48px 0 160px;
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.profile-heading {
  margin-top: 19px;
}

.profile-heading h1 {
  margin: 0;
  font-family: "Bodoni 72", Didot, "Bodoni MT", Georgia, serif;
  font-size: clamp(50px, 5.8vw, 70px);
  line-height: 0.92;
  font-weight: 400;
}

.member-type {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.member-type span {
  color: var(--ink);
}

.member-type i {
  color: var(--ink);
  font-style: normal;
}

.verification-mark {
  font-size: 15px;
  font-weight: 500;
}

.verification-mark.approved {
  color: #2f6f9f;
}

.verification-mark.pending {
  color: #b8743a;
}

.verification-mark.general {
  color: var(--muted);
}

.verification-mark.rejected {
  color: #a13d2d;
}

.edit-profile-button {
  display: grid;
  place-items: center;
  width: 134px;
  height: 45px;
  margin-top: 21px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
}

.edit-profile-button:hover {
  background: var(--ink);
  color: #fff;
}

.profile-tabs {
  display: flex;
  gap: clamp(18px, 2.2vw, 34px);
  position: relative;
  margin-top: 47px;
  border-bottom: 1px solid var(--line);
  --tab-indicator-left: 0px;
  --tab-indicator-width: 0px;
}

.profile-tabs::after {
  position: absolute;
  bottom: -1px;
  left: var(--tab-indicator-left);
  width: var(--tab-indicator-width);
  height: 2px;
  background: var(--accent);
  content: "";
  transition:
    left 260ms cubic-bezier(0.2, 0.8, 0.2, 1),
    width 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.profile-tab {
  min-height: 50px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
}

.profile-tab span {
  margin-left: 8px;
}

.profile-tab.active {
  color: var(--accent);
}

.tab-panel {
  padding-top: 39px;
}

.tab-panel[hidden] {
  display: none;
}

#board-management-panel {
  padding-top: 28px;
}

.board-management-list {
  border-top: 1px solid var(--line);
}

.board-management-list.is-loading {
  padding: 38px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.board-management-row {
  display: grid;
  grid-template-columns: 100px 142px minmax(0, 1fr) 70px 132px;
  align-items: center;
  gap: 13px;
  box-sizing: border-box;
  min-height: 42px;
  padding-inline: 10px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.board-management-row:not(.board-management-head):hover {
  background: rgba(197, 86, 57, 0.035);
}

.board-management-head {
  min-height: 38px;
  color: #2a2824;
  font-size: 11px;
  font-weight: 700;
}

.board-management-title {
  min-width: 0;
}

.board-management-title a {
  display: block;
  overflow: hidden;
  color: #1b1916;
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.board-management-title a:hover,
.board-management-title a:focus-visible {
  color: var(--accent);
  outline: none;
}

.board-management-author,
.board-management-public-info,
.board-management-comments,
.board-management-date {
  color: var(--muted);
  white-space: nowrap;
}

.board-management-author {
  color: #1b1916;
  font-size: 12px;
  font-weight: 700;
}

.board-management-comments,
.board-management-head span:nth-child(4) {
  text-align: center;
}

.board-management-date,
.board-management-head span:nth-child(5) {
  text-align: right;
}

.board-management-empty {
  margin: 0;
  padding: 42px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

#temporary-panel {
  padding-top: 18px;
}

.temporary-limit-note {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 12px;
}

.project-grid,
.saved-grid,
.temporary-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.project-grid.is-loading {
  min-height: 214px;
}

.project-loading-card::before,
.project-loading-card::after {
  content: "";
  background: linear-gradient(
    100deg,
    #eeeae3 20%,
    #f8f6f1 50%,
    #eeeae3 80%
  );
  background-size: 220% 100%;
  animation: profile-work-card-loading 1.25s ease-in-out infinite;
}

.project-loading-card::before {
  display: block;
  width: 100%;
  height: 143px;
}

.project-loading-card::after {
  display: block;
  width: 68%;
  height: 10px;
  margin-top: 12px;
  box-shadow:
    0 22px 0 #eeeae3,
    0 44px 0 #eeeae3;
}

@keyframes profile-work-card-loading {
  from {
    background-position: 200% 0;
  }

  to {
    background-position: -200% 0;
  }
}

.project-card,
.saved-grid article,
.temporary-card {
  min-width: 0;
  max-width: none;
}

.project-card {
  cursor: pointer;
}

.project-card img,
.project-card-placeholder,
.saved-grid img,
.temporary-card img,
.temporary-card-placeholder {
  display: block;
  width: 100%;
  height: 143px;
  aspect-ratio: auto;
  object-fit: cover;
}

.project-card-placeholder {
  display: grid;
  place-items: center;
  background: #eeeae3;
  color: var(--muted);
  font-size: 12px;
}

.project-card h2,
.saved-grid h2,
.temporary-grid h2 {
  font-family: Georgia, "Noto Serif KR", "Times New Roman", serif;
  font-weight: 400;
}

.project-card h2 {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  font-size: 22px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 8px;
}

.project-author {
  margin: 3px 0 6px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.project-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 11px;
}

.project-meta time {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-counts {
  flex: 0 0 auto;
  text-align: right;
  white-space: nowrap;
}

.project-card-actions {
  display: flex;
  gap: 7px;
  margin-top: 12px;
}

.project-card-action {
  flex: 1 1 0;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    color 160ms ease;
}

.project-card-action:hover,
.project-card-action:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  outline: none;
}

.project-card-action.delete:hover,
.project-card-action.delete:focus-visible {
  background: var(--accent);
  color: #fff;
}

.project-card-action:disabled {
  cursor: wait;
  opacity: 0.55;
}

.profile-action-backdrop {
  position: fixed;
  z-index: 90;
  inset: 0;
  background: rgba(20, 20, 18, 0.42);
  backdrop-filter: blur(2px);
}

.profile-action-dialog {
  position: fixed;
  z-index: 91;
  top: 50%;
  left: 50%;
  width: min(440px, calc(100vw - 40px));
  padding: 36px;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: 0 24px 70px rgba(20, 20, 18, 0.2);
  text-align: center;
  transform: translate(-50%, -50%);
}

.profile-action-dialog strong {
  display: block;
  font-family: Georgia, "Noto Serif KR", "Times New Roman", serif;
  font-size: 25px;
  font-weight: 400;
}

.profile-action-dialog p {
  margin: 14px 0 26px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.profile-action-dialog-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.profile-action-dialog-button {
  min-width: 112px;
  min-height: 40px;
  padding: 9px 18px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
}

.profile-action-dialog-button.confirm {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.profile-action-dialog-button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.project-empty {
  padding: 42px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.profile-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 42px;
}

.profile-page-number {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
}

.profile-page-number:hover,
.profile-page-number.active {
  border-color: var(--accent);
  color: var(--accent);
}

.status-tag {
  min-width: 46px;
  padding: 4px 7px;
  color: #fff;
  font-size: 10px;
  text-align: center;
}

.status-tag.public {
  background: var(--olive);
}

.status-tag.review {
  background: var(--accent);
}

.status-tag.pending {
  background: #8f877d;
}

.saved-grid {
  border-top: 0;
}

.saved-grid.saved-empty {
  display: block;
  padding: 46px 0;
  border-top: 0;
  color: var(--muted);
  font-size: 14px;
}

.saved-grid .saved-work-card {
  border-bottom: 0;
  cursor: pointer;
  max-width: none;
}

.saved-grid .saved-work-card > img,
.saved-grid .saved-work-card > .project-card-placeholder {
  height: 143px;
  aspect-ratio: auto;
  border: 1px solid var(--line);
}

.saved-work-card-copy {
  margin-top: 3px;
}

.saved-grid p.saved-work-card-author {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 30px;
  margin: 0 0 6px;
  color: #7b746b;
  font-size: 13px;
  line-height: 1.2;
}

.saved-work-card-author-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.saved-grid .saved-work-card h2 {
  margin: 0;
  font-size: 25px;
  line-height: 1.15;
  letter-spacing: 0;
}

.saved-grid p.saved-work-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.saved-work-card-meta time {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.saved-work-card-counts {
  flex: 0 0 auto;
  text-align: right;
  white-space: nowrap;
}

.saved-work-card-actions {
  flex: 0 0 auto;
  margin-left: auto;
}

.temporary-card {
  position: relative;
  border-bottom: 1px solid var(--line);
}

.temporary-card-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.temporary-card-button:hover h2 {
  color: var(--accent);
}

.temporary-card img,
.temporary-card-placeholder {
  background: #eeeae3;
}

.temporary-card-placeholder {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 12px;
}

.temporary-card-body {
  padding: 17px 0 12px;
}

.temporary-card h2 {
  margin: 10px 0 12px;
  font-size: 19px;
}

.temporary-card p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.temporary-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 0 20px;
}

.temporary-card-footer p {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.temporary-delete-button {
  flex: 0 0 auto;
  min-width: 54px;
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
}

.temporary-delete-button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.delete-warning-backdrop {
  position: fixed;
  inset: 0;
  z-index: 39;
  min-height: 100dvh;
  background: rgba(251, 250, 247, 0.42);
  backdrop-filter: blur(3px);
}

.delete-warning-message {
  position: fixed;
  top: 50%;
  top: 50dvh;
  left: 50%;
  left: 50vw;
  z-index: 40;
  min-width: 280px;
  max-width: calc(100vw - 48px);
  max-height: calc(100dvh - 48px);
  overflow: auto;
  padding: 24px 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 254, 250, 0.96);
  box-shadow: 0 18px 44px rgba(17, 16, 14, 0.14);
  color: var(--ink);
  text-align: center;
  transform: translate(-50%, -50%);
}

.delete-warning-message strong,
.delete-warning-message small {
  display: block;
}

.delete-warning-message strong {
  font-size: 18px;
  font-weight: 700;
}

.delete-warning-message small {
  margin-top: 9px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}

.delete-warning-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}

.delete-warning-actions button {
  display: grid;
  place-items: center;
  min-width: 86px;
  height: 40px;
  padding: 0 18px;
  border-radius: 7px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.delete-warning-cancel {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
}

.delete-warning-confirm {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
}

.temporary-empty {
  padding: 20px 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

@media (max-width: 1100px) {
  .project-grid,
  .saved-grid,
  .temporary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .project-grid,
  .saved-grid,
  .temporary-grid {
    grid-template-columns: 1fr;
  }

  .project-card img,
  .project-card-placeholder,
  .saved-grid img,
  .temporary-card img,
  .temporary-card-placeholder {
    height: 210px;
  }

  .board-management-row {
    grid-template-columns: minmax(0, 1fr) 52px;
    gap: 12px;
  }

  .board-management-author,
  .board-management-public-info,
  .board-management-date,
  .board-management-head span:nth-child(1),
  .board-management-head span:nth-child(2),
  .board-management-head span:nth-child(4),
  .board-management-head span:nth-child(5) {
    display: none;
  }

  .board-management-comments {
    text-align: right;
  }
}

@media (max-width: 560px) {
  .site-header {
    height: 64px;
    margin: 0;
    padding: 0 18px;
  }

  .wordmark {
    font-size: 30px;
  }

  .header-member {
    gap: 12px;
  }

  .header-nickname {
    max-width: 85px;
  }

  .logout-button {
    padding-inline: 10px;
  }

  .profile-page {
    margin-inline: 20px;
    padding: 40px 0 112px;
  }

  .profile-heading h1 {
    font-size: clamp(40px, 13vw, 52px);
    line-height: 1;
    overflow-wrap: anywhere;
  }

  .profile-tabs {
    gap: 14px;
    flex-wrap: wrap;
    overflow: visible;
  }

  .profile-tab {
    flex: 0 0 auto;
    border-bottom: 2px solid transparent;
    font-size: 13px;
  }

  .profile-tabs::after {
    display: none;
  }

  .profile-tab.active {
    border-bottom-color: var(--accent);
  }

  .profile-tab span {
    margin-left: 4px;
  }

}
