/* =========================================================
   Auth / account pages – login, register, mypage, withdraw, etc.
   Scoped so .upload-form modal on my-products is not affected.

   Width strategy (max-width based responsive — no padding/margin hacks):
     .user-form              → narrow  (forms, ~32rem)
     .user-form--reading     → reading (account / docs, ~48rem)
     .user-form--wide        → wide    (admin tables, ~72rem)
   Centered with margin-inline:auto, fluid below the cap.
   ========================================================= */

.user-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  width: 100%;
  max-width: var(--content-max-narrow);
  margin-inline: auto;
  padding: 0;
}

/* Login/register/find-account/forgot-password/reset-password/withdraw:
   these views render without an .app-page wrapper, so they need their
   own inline padding for viewport-edge breathing room on small screens. */
body > .user-form {
  padding-inline: var(--space-md);
}

.user-form--reading {
  max-width: var(--content-max-reading);
  gap: var(--space-rhythm-section);
}

.user-form--wide {
  max-width: var(--content-max-wide);
}

/* Panel keeps a small vertical breathing room on standalone pages */
.user-form--panel {
  margin-block: 1rem;
}

.app-page > .user-form--panel,
.app-page > .user-form {
  margin-block: 0;
}

.user-form__link--danger {
  color: var(--error);
}

.user-form__intro {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin: 0;
}

.user-form__intro > * {
  margin: 0;
}

.user-form__intro .user-form__hint {
  margin: 0;
}

.user-form__lead {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.6;
}

.user-form__actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin: 0;
}

/* Primary submit — one visual system for auth, mypage, notifications, help, admin (see admin + inline overrides below) */
.user-form button[type="submit"]:not(.page-header__nav-link-button):not(.info-btn),
.user-form form > button:not([type]):not(.info-btn) {
  cursor: pointer;
  background: var(--fg);
  color: var(--fg-inverse);
  border: none;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: normal;
  font-family: inherit;
  font-size: inherit;
  line-height: 1.25;
  text-align: center;
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
}

.user-form .user-form__btn--danger {
  background: var(--error);
  color: var(--fg-inverse);
}

.user-form__btn--danger {
  background: var(--error);
  color: var(--fg-inverse);
  border: none;
  padding: var(--space-sm) var(--space-md);
  font-weight: 600;
  cursor: pointer;
  border-radius: var(--radius);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: inherit;
  font-size: inherit;
  line-height: 1.25;
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
}


.user-form--admin .user-form__link,
.user-form__link--admin {
  color: var(--admin-accent);
  font-weight: 600;
}

.user-form.user-form--admin button[type="submit"],
.user-form.user-form--admin input[type="submit"],
.user-form.user-form--admin form > button:not([type]):not(.info-btn) {
  background: var(--admin-accent);
  color: var(--fg-inverse);
}

.user-form--admin .user-form__btn--danger {
  background: var(--admin-accent);
}


.user-form--admin .user-form__subtitle {
  color: var(--admin-accent);
}

.user-form__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin: 0;
  min-width: 0;
}


.user-form__links {
  margin: 0;
  min-width: 0;
}

.user-form__sep {
  color: var(--muted);
  font-size: var(--text-sm);
}

.user-form__label {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.user-form__label small {
  color: var(--muted);
  font-weight: 400;
}

.user-form__hint {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.35;
}

.user-form__label > .user-form__hint {
  margin-top: 0;
}

.user-form__toggle-list {
  display: grid;
  gap: 0.75rem;
}

.user-form__toggle {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  padding: var(--space-md);
  border: none;
  background: var(--surface);
  font-weight: inherit;
  text-transform: none;
  letter-spacing: normal;
  cursor: pointer;
}

.user-form__toggle input[type="checkbox"] {
  margin-top: 0.1rem;
}

.user-form__toggle-copy {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.user-form__toggle-title {
  font-weight: 600;
  line-height: 1.35;
  text-transform: none;
  letter-spacing: 0;
}

.user-form__toggle-text {
  font-weight: 400;
  line-height: 1.5;
  color: var(--muted);
  font-size: var(--text-sm);
  text-transform: none;
  letter-spacing: 0;
}

.user-form__stack {
  display: grid;
  gap: 0.25rem;
}

.user-form__stack > * {
  margin: 0;
}

.user-form__stack-form,
.user-form__settings-form {
  display: grid;
  gap: var(--space-lg);
}

.user-form__stack-form > button[type="submit"] {
  justify-self: start;
}

.user-form__table-wrap {
  overflow-x: auto;
  margin: 0;
  border: none;
  background: var(--surface);
}

.user-form__table {
  width: 100%;
}

/* My products – thumbnail cell */
.user-form__table-cell--thumb img {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: cover;
}

.user-form__table-cell {
  padding: 0;
  text-align: left;
}

.user-form__table-cell:last-child {
  text-align: right;
}

/* My products — real table so thead columns match tbody */
table.user-form__table--products {
  border-collapse: collapse;
  table-layout: auto;
  width: 100%;
  min-width: 320px;
  overflow-x: visible;
  box-sizing: border-box;
  /* thead sits outside tbody — vars must live on table so th/td padding matches */
  --products-cell-pad-y: var(--space-sm);
  --products-cell-pad-x: var(--space-md);
}

table.user-form__table--products thead th.user-form__table-cell {
  padding: var(--products-cell-pad-y) var(--products-cell-pad-x);
  text-align: left;
  vertical-align: middle;
  border: none;
  border-bottom: 1px solid var(--border-row-purple);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--bg-overlay);
}

table.user-form__table--products tbody td.user-form__table-cell {
  padding: var(--products-cell-pad-y) var(--products-cell-pad-x);
  text-align: left;
  vertical-align: middle;
  border: none;
  border-bottom: 1px solid var(--border-row-purple);
}

table.user-form__table--products tbody tr:last-child td {
  border-bottom: none;
}

table.user-form__table--products thead th.user-form__table-cell:first-child,
table.user-form__table--products tbody td.user-form__table-cell:first-child {
  width: 56px;
}

/* Products table — mobile: hide secondary columns to reduce density */
@media (max-width: 768px) {
  table.user-form__table--products .user-form__table-cell--category,
table.user-form__table--products .user-form__table-cell--date {
    display: none;
  }

  table.user-form__table--products {
    --products-cell-pad-y: var(--space-xs);
    --products-cell-pad-x: var(--space-sm);
  }

  table.user-form__table--products .user-form__table-cell--title {
    font-weight: 600;
    overflow-wrap: anywhere;
  }

}

/* Real table (All members) – column widths follow content, not fixed grid */
table.user-form__table--members {
  border-collapse: collapse;
  table-layout: auto;
  --members-cell-pad-y: var(--space-sm);
  --members-cell-pad-x: var(--space-md);
}

table.user-form__table--members thead th {
  padding: var(--members-cell-pad-y) var(--members-cell-pad-x);
  text-align: left;
  border: none;
  border-bottom: 1px solid var(--border-row-purple);
  vertical-align: top;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--bg-overlay);
}

table.user-form__table--members tbody td {
  padding: var(--members-cell-pad-y) var(--members-cell-pad-x);
  text-align: left;
  border: none;
  border-bottom: 1px solid var(--border-row-purple);
  vertical-align: top;
}

table.user-form__table--members tbody tr:last-child td {
  border-bottom: none;
}

table.user-form__table--members .user-form__table-cell--end {
  text-align: right;
}

table.user-form__table--members th:nth-child(2),
table.user-form__table--members td:nth-child(2),
table.user-form__table--members th:nth-child(3),
table.user-form__table--members td:nth-child(3),
table.user-form__table--members th:nth-child(4),
table.user-form__table--members td:nth-child(4),
table.user-form__table--members th:nth-child(5),
table.user-form__table--members td:nth-child(5) {
  white-space: nowrap;
}

.user-form__inline-form {
  display: inline-flex;
  margin: 0;
  padding: 0;
  min-width: 0;
}

/* Table row actions — compact, but same radius/weight as primary submits */
.user-form .user-form__inline-form button[type="submit"],
.user-form .user-form__inline-form button.user-form__btn--danger {
  padding: var(--space-xs) var(--space-sm);
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
  text-transform: none;
  line-height: 1.2;
}

.user-form__actions-inline {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
  min-width: 0;
}

.user-form__muted {
  color: var(--muted);
  font-size: var(--text-sm);
}

.user-form__table-cell--email,
.user-form__table-cell--date {
  overflow-wrap: anywhere;
}

.user-form__subtitle {
  margin: 0;
}

.user-form__list {
  margin: 0;
  padding: 0 0 0 1.25rem;
  line-height: 1.5;
}

.user-form__product-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: var(--space-sm);
}

.user-form__product-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm);
  cursor: pointer;
  transition: background var(--ease);
}

.user-form__product-item:hover,
.user-form__product-item:focus {
  background: var(--bg-overlay);
  outline: none;
}

.user-form__product-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
}

.user-form__product-item span {
  text-align: center;
  word-break: break-word;
}

.user-form--compact input,
.user-form--compact select {
  margin-bottom: var(--space-sm);
}

.user-form__skill-row {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  align-items: start;
}

.user-form__skill-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.user-form__email--readonly {
  background-color: var(--surface-alt);
  color: var(--fg);
  pointer-events: none;
  cursor: not-allowed;
}

.card {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  min-width: 0;
}

.card__title {
  font-weight: 600;
}

.card__value {
  font-weight: 500;
  min-width: 0;
  overflow-wrap: anywhere;
}

.mypage-grid {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.help-tutorial-grid {
  margin-top: var(--space-md);
}

.help-tutorial-card {
  padding: var(--space-md);
  border: none;
  background: var(--surface);
  align-content: start;
}

.help-tutorial-card .card__title {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--admin-accent);
}

.help-tutorial-card .card__value {
  line-height: 1.35;
}

.help-tutorial-card .user-form__muted {
  margin: 0;
  line-height: 1.6;
}

.help-tutorial-card .user-form__list {
  margin-bottom: 0;
}

.user-form__profile-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-md);
  width: 100%;
}

.user-form__profile-form > .user-form__label {
  min-width: 0;
}

.user-form__profile-form > .user-form__label--full,
.user-form__profile-form > button {
  grid-column: 1 / -1;
}

/* Disabled feature labels (Skills "coming soon") */
.user-form__label--disabled {
  opacity: 0.45;
  pointer-events: none;
}

/* My products — title column uses remaining width; meta columns follow content */
table.user-form__table--products thead th.user-form__table-cell:nth-child(2),
table.user-form__table--products tbody td.user-form__table-cell:nth-child(2) {
  width: auto;
  min-width: 0;
}

table.user-form__table--products thead th.user-form__table-cell:nth-child(4),
table.user-form__table--products tbody td.user-form__table-cell:nth-child(4) {
  white-space: nowrap;
}

table.user-form__table--products tbody tr.user-form__product-row {
  cursor: pointer;
  transition: background var(--ease);
}

table.user-form__table--products tbody tr.user-form__product-row:hover,
table.user-form__table--products tbody tr.user-form__product-row:focus {
  outline: none;
}


.user-form__table--products .user-form__table-cell--thumb img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  display: block;
}

.user-form__table--products .user-form__table-cell--title {
  font-weight: 500;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-form__table--products .user-form__table-cell--category {
  color: var(--fg);
  min-width: 0;
  overflow-wrap: anywhere;
}

.user-form__table--products .user-form__table-cell--date {
  color: var(--muted);
  font-size: var(--text-sm);
  min-width: 0;
  overflow-wrap: anywhere;
}

.user-form__table--products .user-form__table-cell--price {
  font-weight: 600;
  white-space: nowrap;
}


table.user-form__table--products thead th.user-form__table-cell.user-form__table-cell--date,
table.user-form__table--products tbody td.user-form__table-cell.user-form__table-cell--date {
  text-align: right;
}

/* Desktop: fixed columns so thead/body stay on one grid (status no longer “floats” away from header) */
@media (min-width: 768px) {
  table.user-form__table--products {
    table-layout: fixed;
  }

  table.user-form__table--products thead th.user-form__table-cell:nth-child(1),
table.user-form__table--products tbody td.user-form__table-cell:nth-child(1) {
    width: 4.25rem;
    min-width: 4.25rem;
  }

  table.user-form__table--products thead th.user-form__table-cell:nth-child(2),
table.user-form__table--products tbody td.user-form__table-cell:nth-child(2) {
    width: 30%;
  }

  table.user-form__table--products thead th.user-form__table-cell:nth-child(3),
table.user-form__table--products tbody td.user-form__table-cell:nth-child(3) {
    width: 13%;
  }

  table.user-form__table--products thead th.user-form__table-cell:nth-child(4),
table.user-form__table--products tbody td.user-form__table-cell:nth-child(4) {
    width: 6.25rem;
  }

  table.user-form__table--products thead th.user-form__table-cell:nth-child(5),
table.user-form__table--products tbody td.user-form__table-cell:nth-child(5) {
    width: 22%;
  }
}


.user-form__mail-card {
  margin-top: var(--space-sm);
  padding: var(--space-lg);
  border: none;
  background: var(--surface);
}

.user-form__mail-log {
  display: grid;
  gap: 0.55rem;
  margin: var(--space-sm) 0 0;
  padding: 0;
  list-style: none;
}

.user-form__mail-log-item {
  display: grid;
  grid-template-columns: minmax(5.2rem, auto) minmax(0, 1fr);
  gap: 0.65rem;
  align-items: start;
  padding-top: 0;
}

.user-form__mail-log-item--warning strong {
  color: var(--warning);
}

.user-form__mail-log-time {
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  font-size: var(--text-sm);
}

.user-form__mail-log-copy {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.user-form__verification-card {
  gap: 0.75rem;
}

.user-form__verification-card p {
  margin: 0;
  line-height: 1.55;
}

.user-form__verification-steps {
  margin: 0;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.3rem;
  line-height: 1.5;
}

.user-form__verification-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.user-form__verification-form {
  display: block;
  margin: 0;
}

.user-form__verification-form button {
  white-space: normal;
}

.user-form__meta {
  display: grid;
  gap: 0.2rem;
  margin: 0;
}

.user-form--report-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin: 0;
  padding-inline: var(--space-md);
  padding-block: var(--space-md);
  background: var(--surface);
}

.user-form__report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.user-form__report-log {
  margin: var(--space-md) 0 0;
}

@media (max-width: 768px) {
  table.user-form__table--members {
    min-width: 0;
  }

  table.user-form__table--members thead {
    display: none;
  }

  table.user-form__table--members,
table.user-form__table--members tbody,
table.user-form__table--members tr,
table.user-form__table--members td {
    display: block;
    width: 100%;
  }

  table.user-form__table--members tbody {
    display: grid;
    gap: var(--space-sm);
  }

  table.user-form__table--members tr {
    padding: var(--space-md);
    border-bottom: 0;
    background: var(--bg-overlay-mix);
  }

  table.user-form__table--members tbody td {
    display: grid;
    grid-template-columns: minmax(6.5rem, 7.5rem) minmax(0, 1fr);
    gap: 0.75rem;
    padding: 0;
    border-bottom: 0;
    text-align: left;
  }

  table.user-form__table--members tbody td + td {
    margin-top: 0.5rem;
  }

  table.user-form__table--members tbody td::before {
    content: attr(data-label);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    font-size: var(--text-sm);
  }

  table.user-form__table--members .user-form__table-cell--end,
.user-form__actions-inline {
    text-align: left;
    justify-content: flex-start;
  }

  .user-form__table-wrap {
    overflow: visible;
  }

  table.user-form__table--products {
    overflow: visible;
    min-width: 0;
  }

  table.user-form__table--products thead {
    display: none;
  }

  table.user-form__table--products,
table.user-form__table--products tbody,
table.user-form__table--products tbody tr,
table.user-form__table--products tbody td.user-form__table-cell {
    display: block;
    width: 100%;
  }

  table.user-form__table--products tbody {
    display: grid;
    gap: var(--space-sm);
  }

  table.user-form__table--products tbody tr {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 0.55rem 1rem;
    padding: 0.9rem 1rem;
    border: none;
    border-bottom: none;
    background: var(--bg-overlay-mix);
  }

  table.user-form__table--products tbody td.user-form__table-cell {
    display: grid;
    gap: 0.2rem;
    text-align: left;
    padding: 0;
    border: none;
  }

  table.user-form__table--products tbody td.user-form__table-cell:last-child {
    text-align: left;
  }

  table.user-form__table--products tbody td.user-form__table-cell.user-form__table-cell--thumb {
    grid-row: 1 / span 5;
    align-self: start;
  }

  table.user-form__table--products tbody td.user-form__table-cell.user-form__table-cell--title {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }


  .user-form__subtitle {
    line-height: 1.25;
  }

  .user-form__lead,
.user-form__hint,
.user-form__muted {
    line-height: 1.5;
  }

  .user-form__actions,
.user-form__footer {
    align-items: stretch;
    gap: 0.75rem;
  }

  .user-form__actions {
    flex-direction: column;
  }

  .user-form__actions > * {
    width: 100%;
  }

  .user-form__stack-form > button[type="submit"] {
    justify-self: stretch;
    width: 100%;
  }

  .user-form__link,
.user-form__footer,
.user-form__links,
.user-form__list {
    line-height: 1.5;
  }

  .user-form__profile-form {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .user-form__toggle {
    padding: 0.85rem 0.9rem;
    gap: 0.65rem;
  }

  .user-form__toggle-title {
    line-height: 1.35;
  }

  .user-form__toggle-text {
    line-height: 1.5;
  }

  .user-form__table-wrap {
    margin: 0;
  }

  table.user-form__table--products tbody tr {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 0.45rem 0.9rem;
    padding: 0.85rem 0.9rem;
  }

  .user-form__table-cell--thumb img {
    width: 64px;
    height: 64px;
  }

  .user-form__actions-inline {
    gap: 0.45rem;
  }

  .user-form__product-list {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }

  .user-form__product-item {
    padding: 0.75rem;
    gap: 0.45rem;
  }

  .user-form__product-item span {
    line-height: 1.35;
  }

  .mypage-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .card {
    padding: 0.9rem;
    border: none;
    background: var(--surface);
  }

  .card__title {
    line-height: 1.3;
  }

  .card__value {
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  .user-form__skill-row,
.user-form__report-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .user-form__skill-row > *,
.user-form__report-actions > * {
    width: 100%;
  }

  .user-form__email--readonly,
.user-form__table-cell--email,
.user-form__table-cell--date {
    line-height: 1.45;
    overflow-wrap: anywhere;
  }

  .user-form--report-card {
    padding: 0.95rem;
  }

  .user-form__report-log {
    line-height: 1.45;
  }

  table.user-form__table--members tbody {
    gap: 0.7rem;
  }

  table.user-form__table--members tr {
    padding: 0.85rem 0.9rem;
  }

  table.user-form__table--members tbody td {
    grid-template-columns: minmax(4.75rem, 5.4rem) minmax(0, 1fr);
    gap: 0.45rem;
    align-items: start;
    line-height: 1.4;
  }

  table.user-form__table--members tbody td + td {
    margin-top: 0.35rem;
  }

  table.user-form__table--members tbody td::before {
    line-height: 1.2;
  }

  table.user-form__table--members td[data-label="Email"] {
    line-height: 1.4;
  }

  .user-form__actions-inline {
    gap: 0.35rem;
  }

  .user-form .user-form__inline-form button[type="submit"],
.user-form .user-form__inline-form button.user-form__btn--danger {
    padding: 0.55rem 0.7rem;
    line-height: 1.2;
  }
}

@media (max-width: 768px) {

  table.user-form__table--products tbody tr {
    grid-template-columns: 78px minmax(0, 1fr) auto;
    grid-template-areas:
      "thumb title price"
      "thumb status status"
      "thumb date date";
    gap: 0.45rem 0.75rem;
    align-items: start;
    margin-bottom: 0;
    padding: 0.9rem;
    border: none;
    background: var(--surface);
  }

  table.user-form__table--products tbody td.user-form__table-cell {
    display: block;
    min-width: 0;
  }

table.user-form__table--products tbody td.user-form__table-cell.user-form__table-cell--thumb {
    grid-area: thumb;
    align-self: start;
  }

  table.user-form__table--products tbody td.user-form__table-cell.user-form__table-cell--thumb img {
    width: 78px;
    height: 78px;
  }

  table.user-form__table--products tbody td.user-form__table-cell.user-form__table-cell--title {
    grid-area: title;
    font-weight: 600;
    line-height: 1.35;
    white-space: normal;
    overflow: hidden;
    text-overflow: clip;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  table.user-form__table--products tbody td.user-form__table-cell.user-form__table-cell--price {
    grid-area: price;
    justify-self: end;
    align-self: start;
    padding: 0.2rem 0.45rem;
    border: none;
    background: var(--input-bg);
    line-height: 1.2;
  }

  table.user-form__table--products tbody td.user-form__table-cell.user-form__table-cell--category {
    display: none;
  }


  table.user-form__table--products tbody td.user-form__table-cell.user-form__table-cell--date {
    grid-area: date;
    line-height: 1.45;
    color: var(--muted);
    font-size: var(--text-sm);
  }

  table.user-form__table--products tbody td.user-form__table-cell--date span[aria-hidden="true"],
table.user-form__table--products tbody td.user-form__table-cell--date span[aria-hidden="true"] + span {
    display: none;
  }

  table.user-form__table--products tbody td.user-form__table-cell--date .user-form__table-expiry-note {
    display: none;
  }


  .user-form__mail-card {
    padding: 0.9rem;
  }

  .user-form__mail-log-item {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

}

@media (max-width: 768px) {
  .user-form__footer,
.user-form__links {
    display: grid;
    gap: 0.6rem;
  }

  .user-form__footer > [aria-hidden="true"],
.user-form__sep {
    display: none;
  }

  .user-form__footer a,
.user-form__links a,
.user-form__muted {
    overflow-wrap: anywhere;
  }

  .user-form__actions-inline {
    flex-direction: column;
    align-items: stretch;
  }

  .user-form__inline-form {
    display: flex;
    width: 100%;
  }

  .user-form .user-form__inline-form button[type="submit"],
.user-form .user-form__inline-form button.user-form__btn--danger {
    width: 100%;
  }

  .user-form__verification-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .user-form__verification-form,
.user-form__verification-form button {
    width: 100%;
  }

  table.user-form__table--members tbody td {
    grid-template-columns: minmax(4.4rem, 5rem) minmax(0, 1fr);
    gap: 0.45rem 0.7rem;
  }
}

/* Email combo: local part + fixed domain */
.user-form__email-combo {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.user-form__email-combo input {
  flex: 1;
  min-width: 0;
  border-radius: var(--radius);
}

.user-form__email-domain {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.7rem;
  color: var(--muted);
  font-size: var(--text-sm);
  background: var(--surface-alt);
  border: none;
  border-radius: var(--radius);
  white-space: nowrap;
  user-select: all;
  box-sizing: border-box;
  height: 100%;
}

/* Info button/modal styles moved to components.css */

/* Email suggest dropdown */
.email-suggest-wrap {
  position: relative;
}

.email-suggest-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 50;
  margin: 0.25rem 0 0;
  padding: 0;
  list-style: none;
  background: var(--surface);
  border: none;
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  overflow-y: auto;
}

.email-suggest-item {
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  color: var(--fg);
}

.email-suggest-item:hover,
.email-suggest-item--active {
  background: var(--input-bg);
}

/* ---- Verification card (mypage) ---- */
.verification-card {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-lg);
  padding: 1.5rem;
  background: var(--error-bg);
}

.verification-card__title {
  font-weight: 700;
  margin: 0 0 0.35rem;
  color: var(--error);
}

.verification-card__desc {
  color: var(--muted);
  font-size: var(--text-sm);
  margin: 0 0 0.75rem;
}

.verification-card__email {
  font-weight: 600;
  color: var(--fg);
  margin: 0 0 1rem;
  word-break: break-all;
}

.verification-card__steps {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.verification-card__step {
  color: var(--muted);
  font-size: var(--text-sm);
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.verification-card__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.2rem;
  height: 1.2rem;
  font-weight: 700;
  background: var(--fg);
  color: var(--fg-inverse);
  border-radius: var(--radius);
  flex-shrink: 0;
}

.verification-card__hint {
  color: var(--muted);
  font-size: var(--text-sm);
  margin: 0 0 0.25rem;
}

.verification-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.verification-card__wrong-email {
  margin: 0.75rem 0 0;
}

.verification-card__link {
  color: var(--muted);
  font-size: var(--text-sm);
}
