.auth-card {
  width: min(100%, 440px);
}

.auth-form {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.auth-form label {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
  color: var(--muted);
  font-weight: 800;
}

.auth-form input[type="tel"],
.auth-form input[type="text"],
.auth-form input[type="password"] {
  display: block;
  width: 100%;
  height: 44px;
  padding: 0 13px;
  color: var(--ink);
  background: #fffaf0;
  border: 1px solid var(--line);
  border-radius: 7px;
  outline: none;
}

.auth-form input:focus {
  border-color: var(--brand);
  background: #fff;
}

.auth-form .check-line {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  color: #514c43;
  font-weight: 600;
}

.auth-form .check-line input {
  width: auto;
  height: auto;
  margin: 6px 0 0;
}

.check-line a,
.auth-switch a {
  color: var(--brand-dark);
  font-weight: 800;
}

.form-message {
  min-height: 24px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.form-message.error {
  color: #a33b2a;
}

.form-message.success {
  color: var(--brand-dark);
}

.auth-switch {
  margin: 18px 0 0;
  color: var(--muted);
  text-align: center;
}

.auth-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.auth-link,
.btn-text {
  color: var(--brand-dark);
  font-weight: 800;
}

.btn-text {
  min-height: 38px;
  padding: 0;
  border: 0;
  background: transparent;
}

.user-badge {
  max-width: 128px;
  overflow: hidden;
  padding: 7px 10px;
  color: var(--brand-dark);
  background: #e8f0ec;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-notice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  margin: 18px 0;
  padding: 12px;
  color: #514c43;
  background: #e8f0ec;
  border: 1px solid #cbded7;
  border-radius: var(--radius);
  font-size: 14px;
}

.account-notice.is-guest {
  background: #fff4e9;
  border-color: #edc9b7;
}

.account-notice strong,
.account-notice a {
  color: var(--brand-dark);
  font-weight: 800;
}

.account-grid {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.account-panel {
  padding: 24px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.account-panel h2 {
  margin: 0 0 16px;
  font-size: 30px;
  line-height: 1.2;
}

.account-list {
  display: grid;
  gap: 0;
  margin: 0 0 20px;
}

.account-list div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.account-list dt {
  color: var(--muted);
  font-weight: 800;
}

.account-list dd {
  margin: 0;
  text-align: right;
}

.account-empty {
  max-width: 560px;
}

.notice-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.order-table-wrap {
  overflow-x: auto;
}

.order-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
}

.order-table th,
.order-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.order-table th {
  color: var(--muted);
  font-size: 14px;
}

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

@media (max-width: 700px) {
  .auth-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
    width: 100%;
  }

  .account-notice {
    grid-template-columns: 1fr;
    align-items: start;
  }
}
