.member-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 2%, rgba(227,237,211,.8), transparent 24rem),
    radial-gradient(circle at 90% 90%, rgba(251,235,203,.7), transparent 25rem),
    #fffdf8;
}
.member-shell { display: grid; min-height: 100vh; place-items: center; padding: 42px 18px; }
.member-card {
  width: min(100%, 560px);
  padding: clamp(28px, 6vw, 58px);
  border: 1px solid rgba(81,100,58,.2);
  border-radius: 30px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 24px 70px rgba(61,74,45,.13);
}
.member-brand { margin-bottom: 38px; }
.member-card h1 { margin: 0; color: #315f3d; font-family: "Yu Mincho",serif; font-size: clamp(28px,5vw,40px); }
.member-card > p:not(.section-kicker):not(.member-note) { color: #6f6d65; font-size: 13px; }
.login-flow { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 25px 0; padding: 14px; border-radius: 16px; background: #f3f6ec; color: #315f3d; font-size: 11px; }
.login-flow b { color: #e6b84b; }
.member-form { display: grid; gap: 20px; margin-top: 28px; }
.member-form label { color: #34241d; font-size: 13px; font-weight: 700; }
.member-form input, .member-form select {
  width: 100%; height: 54px; margin-top: 7px; padding: 0 15px;
  border: 1px solid #ced7ca; border-radius: 12px; background: white; outline: none;
}
.member-form input:focus, .member-form select:focus { border-color: #779560; box-shadow: 0 0 0 3px rgba(119,149,96,.16); }
.member-alert { margin: 20px 0; padding: 13px 16px; border-radius: 12px; font-size: 12px; }
.member-alert.is-error { color: #8b382d; background: #fff0ed; }
.member-alert.is-success { color: #315f3d; background: #edf5e8; }
.member-note { margin: 22px 0 0; color: #85857d; font-size: 10px; text-align: center; }
.member-bar { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 13px max(18px, calc((100% - 1160px) / 2)); background: #f3f6ec; color: #315f3d; font-size: 12px; }
.member-bar strong { font-size: 17px; }
.member-bar nav { display: flex; align-items: center; gap: 14px; }
.member-bar a { font-weight: 700; text-underline-offset: 4px; }
.admin-page {
  min-height: 100vh;
  padding: 35px 18px 80px;
  background:
    radial-gradient(circle at 5% 0%, rgba(227,237,211,.75), transparent 26rem),
    radial-gradient(circle at 100% 32%, rgba(251,235,203,.55), transparent 28rem),
    #f5f6f1;
}
.admin-shell { width: min(1180px,100%); margin: 0 auto; }
.admin-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.admin-header nav { display: flex; gap: 15px; }
.admin-header nav a { color: #315f3d; font-size: 12px; font-weight: 700; text-underline-offset: 4px; }
.admin-welcome { display: grid; grid-template-columns: .8fr 1.2fr; gap: 28px; align-items: end; margin-bottom: 24px; padding: clamp(26px,4vw,42px); border: 1px solid rgba(81,100,58,.15); border-radius: 28px; background: rgba(255,255,255,.82); box-shadow: 0 18px 50px rgba(61,74,45,.08); }
.admin-welcome h1 { margin: 5px 0 10px; color: #315f3d; font-family: "Yu Mincho",serif; font-size: clamp(30px,5vw,44px); }
.admin-welcome p { margin: 0; color: #6f6d65; font-size: 12px; }
.admin-summary { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.admin-summary article { padding: 18px 14px; border-radius: 18px; background: #f3f6ec; text-align: center; }
.admin-summary article:nth-child(3) { background: #fff5e3; }
.admin-summary span { display: block; min-height: 30px; color: #747b6c; font-size: 10px; }
.admin-summary strong { color: #315f3d; font-family: Georgia,serif; font-size: 29px; }
.admin-summary small { margin-left: 4px; color: #77756d; }
.admin-action-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; align-items: start; }
.admin-panel { padding: 28px; border: 1px solid rgba(81,100,58,.17); border-radius: 22px; background: rgba(255,255,255,.96); box-shadow: 0 12px 36px rgba(61,74,45,.06); }
.admin-panel h2 { margin-top: 0; color: #315f3d; font-family: "Yu Mincho",serif; }
.admin-panel .section-kicker + h2 { margin-top: 6px; }
.admin-point-panel { background: linear-gradient(145deg,#fffdf9,#fff7e8); }
.admin-password-panel { grid-column: 1 / -1; }
.admin-help { margin: -6px 0 18px; color: #77756d; font-size: 11px; line-height: 1.8; }
.admin-form-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.admin-wide-panel { margin-top: 18px; }
.admin-panel-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.admin-panel-heading h2 { margin-bottom: 0; }
.admin-filter-form, .admin-history-actions { display: flex; align-items: center; gap: 8px; }
.admin-filter-form input { width: 210px; height: 38px; padding: 0 11px; border: 1px solid #ccd5c7; border-radius: 10px; background: white; }
.admin-history-actions { flex-wrap: wrap; justify-content: flex-end; }
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.admin-table th, .admin-table td { padding: 13px 9px; border-bottom: 1px solid #e6e8e1; text-align: left; white-space: nowrap; }
.admin-table th { color: #315f3d; background: #f3f6ec; }
.inline-form { display: flex; align-items: center; gap: 6px; }
.inline-form input { width: 72px; height: 34px; border: 1px solid #ccd5c7; border-radius: 8px; padding: 0 8px; }
.small-button { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 999px; padding: 9px 13px; color: white; background: #315f3d; font-size: 11px; text-decoration: none; cursor: pointer; }
.small-button.is-stop { background: #a16c5e; }
.small-button.is-download { background: #8b7049; }
.status-badge { display: inline-flex; border-radius: 999px; padding: 5px 9px; font-size: 10px; font-weight: 700; }
.status-badge.is-active { color: #315f3d; background: #eaf4e5; }
.status-badge.is-disabled { color: #8b382d; background: #fff0ed; }
.point-amount.is-plus { color: #315f3d; }
.point-amount.is-minus { color: #9c4c42; }
.admin-user-editor { grid-column: 1 / -1; }
.admin-account-panel { grid-column: 1 / -1; }
.admin-account-list { display: grid; gap: 10px; margin-top: 22px; }
.admin-account-list article { display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 14px; align-items: center; padding: 14px 16px; border: 1px solid #e1e7dc; border-radius: 14px; background: #f9faf6; }
.admin-account-list article > div { display: grid; gap: 3px; }
.admin-account-list strong { color: #315f3d; font-size: 13px; }
.admin-account-list span, .admin-account-list small { color: #77756d; font-size: 10px; }
.small-button.is-edit { color: #315f3d; background: #eaf1e4; }
.table-actions { display: flex; align-items: center; gap: 6px; }
.point-issue-summary { display: grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap: 10px; margin: 18px 0 22px; }
.point-issue-summary article { display: grid; gap: 5px; padding: 16px; border-radius: 15px; background: #f3f6ec; }
.point-issue-summary article:first-child { background: #fff2db; }
.point-issue-summary span { color: #6f7468; font-size: 10px; }
.point-issue-summary strong { color: #315f3d; font-family: Georgia,serif; font-size: 21px; }
.point-issue-summary small { color: #8a887f; font-size: 10px; }
@media (max-width: 800px) {
  .admin-welcome, .admin-action-grid { grid-template-columns: 1fr; }
  .admin-summary { grid-template-columns: repeat(3,1fr); }
  .admin-password-panel, .admin-user-editor, .admin-account-panel { grid-column: auto; }
  .admin-header, .member-bar { align-items: flex-start; flex-direction: column; }
  .admin-panel-heading { align-items: flex-start; flex-direction: column; }
  .admin-history-actions { justify-content: flex-start; }
}
@media (max-width: 560px) {
  .admin-page { padding: 22px 12px 60px; }
  .admin-welcome, .admin-panel { padding: 22px 18px; border-radius: 19px; }
  .admin-summary { grid-template-columns: 1fr; }
  .admin-summary span { min-height: 0; }
  .admin-form-columns { grid-template-columns: 1fr; }
  .admin-filter-form { width: 100%; }
  .admin-filter-form input { width: 100%; min-width: 0; }
  .admin-table thead { display: none; }
  .admin-table, .admin-table tbody, .admin-table tr, .admin-table td { display: block; width: 100%; }
  .admin-table tr { margin-bottom: 14px; padding: 8px 12px; border: 1px solid #e1e7dc; border-radius: 14px; background: #fff; }
  .admin-table td { display: grid; grid-template-columns: 86px minmax(0,1fr); gap: 10px; padding: 8px 0; border-bottom: 1px dashed #e6e8e1; white-space: normal; word-break: break-word; }
  .admin-table td:last-child { border-bottom: 0; }
  .admin-table td::before { content: attr(data-label); color: #73806e; font-size: 10px; font-weight: 700; }
  .admin-account-list article { grid-template-columns: 1fr auto; }
  .admin-account-list .small-button { grid-column: 1 / -1; justify-self: start; }
  .table-actions { align-items: flex-start; flex-direction: column; }
}
