:root {
  --member-bg: #171a1d;
  --member-panel: #24272b;
  --member-card: #2d3035;
  --member-card-hover: #33373c;
  --member-line: rgba(255, 255, 255, .07);
  --member-text: #b8bec6;
  --member-title: #eef1f4;
  --member-muted: #78818b;
  --member-accent: #f1404b;
  --member-green: #36c275;
  --member-orange: #ff8a18;
  --member-blue: #3988ff;
}

* { box-sizing: border-box; }
html { min-width: 320px; }
body.member-page { min-height: 100vh; margin: 0; padding-top: 80px; color: var(--member-text); background: var(--member-bg); font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.55; }
.member-page a { color: inherit; text-decoration: none; }
.member-page button,.member-page input,.member-page select { font: inherit; }

.member-top-user { display: inline-flex; align-items: center; gap: 8px; }
.member-top-avatar { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: linear-gradient(135deg,#f1404b,#ff8a18); font-size: 11px; font-weight: 700; }
.member-top-user a:hover,.member-logout:hover { color: var(--member-accent) !important; }

.member-shell { width: min(1400px,calc(100% - 40px)); margin: 0 auto; padding: 24px 0 38px; display: grid; grid-template-columns: 238px minmax(0,1fr); gap: 20px; align-items: start; }
.member-sidebar { position: sticky; top: 98px; border: 1px solid var(--member-line); border-radius: 7px; overflow: hidden; background: var(--member-panel); }
.member-profile { padding: 25px 20px 21px; border-bottom: 1px solid var(--member-line); text-align: center; background: linear-gradient(145deg,rgba(241,64,75,.075),transparent 65%); }
.member-avatar { width: 64px; height: 64px; margin: 0 auto 12px; display: grid; place-items: center; border: 3px solid rgba(255,255,255,.14); border-radius: 50%; color: #fff; background: linear-gradient(135deg,#f1404b,#ff8a18); box-shadow: 0 10px 24px rgba(241,64,75,.16); font-size: 22px; font-weight: 700; }
.member-profile strong { display: block; color: var(--member-title); font-size: 17px; }
.member-level { height: 21px; margin-top: 7px; padding: 0 8px; display: inline-flex; align-items: center; border-radius: 11px; color: #f1c98b; background: rgba(255,138,24,.1); font-size: 11px; }
.member-id { display: block; margin-top: 7px; color: var(--member-muted); font-size: 11px; }
.member-nav { padding: 10px; display: grid; gap: 4px; }
.member-nav a { height: 43px; padding: 0 13px; display: flex; align-items: center; gap: 11px; border-radius: 5px; color: #aeb5be; transition: color .18s ease,background .18s ease; }
.member-nav a:hover { color: #fff; background: rgba(255,255,255,.045); }
.member-nav a.active { color: #fff; background: rgba(241,64,75,.14); box-shadow: inset 3px 0 0 var(--member-accent); }
.member-nav .css-icon { width: 18px; height: 18px; color: #858e98; }
.member-nav a.active .css-icon { color: var(--member-accent); }
.member-nav-footer { margin: 0 10px 10px; padding-top: 10px; border-top: 1px solid var(--member-line); }
.member-nav-footer a { height: 39px; padding: 0 13px; display: flex; align-items: center; gap: 10px; border-radius: 5px; color: #8e969f; }
.member-nav-footer a:hover { color: #fff; background: rgba(255,255,255,.04); }

.member-content { min-width: 0; }
.member-page-head { min-height: 74px; margin-bottom: 16px; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 1px solid var(--member-line); border-radius: 7px; background: var(--member-panel); }
.member-page-head h1 { margin: 0; color: var(--member-title); font-size: 23px; line-height: 1.25; }
.member-page-head p { margin: 4px 0 0; color: var(--member-muted); font-size: 12px; }
.member-date,.member-count-badge { min-height: 30px; padding: 0 11px; display: inline-flex; align-items: center; gap: 7px; border-radius: 5px; color: #aab2bc; background: #2d3034; white-space: nowrap; font-size: 12px; }
.member-count-badge b { color: #fff; font-size: 15px; }

.member-stats { margin-bottom: 16px; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.member-stat { min-height: 112px; padding: 18px; position: relative; overflow: hidden; border: 1px solid var(--member-line); border-radius: 7px; background: var(--member-panel); }
.member-stat::after { content: ""; position: absolute; right: -20px; bottom: -30px; width: 85px; height: 85px; border: 18px solid currentColor; border-radius: 50%; opacity: .035; }
.member-stat-icon { width: 34px; height: 34px; margin-bottom: 12px; display: grid; place-items: center; border-radius: 6px; color: #ff7c84; background: rgba(241,64,75,.1); }
.member-stat.blue .member-stat-icon { color: #79adff; background: rgba(57,136,255,.1); }
.member-stat.green .member-stat-icon { color: #72d79e; background: rgba(54,194,117,.1); }
.member-stat.orange .member-stat-icon { color: #ffb364; background: rgba(255,138,24,.1); }
.member-stat-icon .css-icon { width: 18px; height: 18px; }
.member-stat strong { display: block; color: var(--member-title); font-size: 24px; line-height: 1; }
.member-stat > span:last-child { display: block; margin-top: 7px; color: var(--member-muted); font-size: 12px; }

.member-grid { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(300px,.75fr); gap: 16px; align-items: start; }
.member-panel { margin-bottom: 16px; border: 1px solid var(--member-line); border-radius: 7px; overflow: hidden; background: var(--member-panel); }
.member-panel-head { min-height: 52px; padding: 0 17px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--member-line); }
.member-panel-head h2 { margin: 0; display: flex; align-items: center; gap: 8px; color: #dce1e6; font-size: 15px; }
.member-panel-head h2 .css-icon { width: 17px; height: 17px; color: var(--member-accent); }
.member-panel-head a { color: #858e98; font-size: 12px; }
.member-panel-head a:hover { color: var(--member-accent); }

.quick-actions { padding: 14px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.quick-action { min-height: 92px; padding: 14px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 8px; border-radius: 6px; color: #cbd0d6; background: var(--member-card); transition: background .18s ease,color .18s ease; }
.quick-action:hover { color: #fff; background: var(--member-card-hover); }
.quick-action .css-icon { width: 21px; height: 21px; color: var(--member-accent); }
.quick-action small { color: #737c86; font-size: 11px; }

.member-table-wrap { overflow-x: auto; }
.member-table { width: 100%; border-collapse: collapse; min-width: 860px; }
.recent-orders-panel .member-table { min-width: 0; table-layout: fixed; }
.recent-orders-panel .member-table th,
.recent-orders-panel .member-table td { padding-right: 10px; padding-left: 10px; }
.recent-orders-panel .member-table th:nth-child(1),
.recent-orders-panel .member-table td:nth-child(1) { width: 22%; }
.recent-orders-panel .member-table th:nth-child(2),
.recent-orders-panel .member-table td:nth-child(2) { width: 26%; }
.recent-orders-panel .member-table th:nth-child(3),
.recent-orders-panel .member-table td:nth-child(3) { width: 14%; }
.recent-orders-panel .member-table th:nth-child(4),
.recent-orders-panel .member-table td:nth-child(4) { width: 14%; }
.recent-orders-panel .member-table th:nth-child(5),
.recent-orders-panel .member-table td:nth-child(5) { width: 16%; }
.recent-orders-panel .member-table th:nth-child(6),
.recent-orders-panel .member-table td:nth-child(6) { width: 104px; }
.member-table th { height: 42px; padding: 0 15px; color: #737c86; background: #202327; font-size: 11px; font-weight: 500; text-align: left; white-space: nowrap; }
.member-table td { height: 62px; padding: 9px 15px; border-top: 1px solid rgba(255,255,255,.045); color: #aeb5bd; font-size: 12px; white-space: nowrap; }
.member-table tbody tr:hover { background: rgba(255,255,255,.018); }
.order-number { color: #dbe0e5; font-weight: 600; }
.order-product { display: grid; gap: 2px; }
.order-product strong { color: #d6dbe1; font-size: 13px; }
.order-product small { color: #737c86; }
.order-price { color: #f0f2f5; font-weight: 700; }
.order-price small { margin-left: 3px; color: #7c858f; font-weight: 400; }
.status { min-height: 24px; padding: 0 8px; display: inline-flex; align-items: center; border-radius: 12px; font-size: 11px; }
.status.active,.status.paid { color: #68d496; background: rgba(54,194,117,.1); }
.status.pending { color: #ffb563; background: rgba(255,138,24,.1); }
.status.expired { color: #8f98a2; background: rgba(255,255,255,.055); }
.table-action { padding: 5px 8px; border: 0; border-radius: 4px; color: #9da5ae; background: #34373b; cursor: pointer; }
.table-action:hover { color: #fff; background: var(--member-accent); }
.order-actions { display: inline-flex; align-items: center; gap: 5px; }
.table-action.renewal { color: #ffb36a; background: rgba(255,138,24,.1); }
.table-action.renewal:hover { color: #fff; background: #e67d16; }
.table-action.edit { color: #88b7ff; background: rgba(57,136,255,.1); }
.table-action.edit:hover { color: #fff; background: #3279dd; }

.mini-favorites { padding: 12px; display: grid; gap: 8px; }
.mini-favorite { min-height: 58px; padding: 9px; display: flex; align-items: center; gap: 10px; border-radius: 6px; background: var(--member-card); }
.mini-favorite:hover { background: var(--member-card-hover); }
.site-logo { width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; border-radius: 8px; color: #fff; background: #e8213b; font-size: 12px; font-weight: 800; }
.site-logo.blue { background: #287be2; }.site-logo.green { background: #16a66a; }.site-logo.orange { background: #ee861b; }.site-logo.purple { background: #7657d9; }
.mini-favorite span:last-child { min-width: 0; }
.mini-favorite strong,.mini-favorite small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-favorite strong { color: #d6dbe0; font-size: 13px; }.mini-favorite small { margin-top: 3px; color: #747d86; font-size: 11px; }

.member-toolbar { margin-bottom: 14px; padding: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--member-line); border-radius: 7px; background: var(--member-panel); }
.order-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.order-filter { height: 32px; padding: 0 11px; border: 0; border-radius: 5px; color: #929aa4; background: #303338; cursor: pointer; }
.order-filter:hover,.order-filter.active { color: #fff; background: var(--member-accent); }
.member-search { width: min(310px,100%); height: 36px; display: flex; align-items: center; border: 1px solid var(--member-line); border-radius: 5px; background: #202327; }
.member-search .css-icon { width: 17px; height: 17px; margin-left: 11px; color: #717a84; }
.member-search input { width: 100%; min-width: 0; height: 34px; padding: 0 10px; border: 0; outline: 0; color: #e0e4e8; background: transparent; }
.member-search input::placeholder { color: #626b75; }
.orders-panel { overflow: hidden; }
.order-empty,.favorite-empty { display: none; padding: 45px 20px; color: #747d87; text-align: center; }
.order-empty.is-visible,.favorite-empty.is-visible { display: block; }

.favorite-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.favorite-card { min-width: 0; min-height: 150px; padding: 16px; position: relative; border: 1px solid var(--member-line); border-radius: 7px; background: var(--member-panel); transition: background .18s ease,border-color .18s ease; }
.favorite-card:hover { border-color: rgba(255,255,255,.11); background: #292c30; }
.favorite-card-head { display: flex; align-items: center; gap: 11px; }
.favorite-card-info { min-width: 0; }
.favorite-card-info h2 { margin: 0; overflow: hidden; color: #e1e5e9; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.favorite-card-info p { margin: 4px 0 0; overflow: hidden; color: #77808a; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.favorite-card-desc { min-height: 38px; max-height: 38px; margin: 14px 0 12px; overflow: hidden; color: #969ea7; font-size: 12px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
.favorite-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.favorite-category { height: 23px; padding: 0 7px; display: inline-flex; align-items: center; border-radius: 4px; color: #94b9f3; background: rgba(57,136,255,.09); font-size: 10px; }
.favorite-visit { color: #aab2bb; font-size: 11px; }
.favorite-visit:hover { color: var(--member-accent); }
.favorite-remove { position: absolute; right: 11px; top: 11px; width: 30px; height: 30px; padding: 0; border: 0; display: grid; place-items: center; border-radius: 5px; color: #8d959e; background: #33363a; cursor: pointer; }
.favorite-remove:hover { color: #fff; background: var(--member-accent); }
.favorite-remove .css-icon { width: 15px; height: 15px; }

.member-toast { position: fixed; left: 50%; bottom: 28px; z-index: 800; min-width: 180px; padding: 10px 15px; border-radius: 5px; color: #fff; background: #33373b; box-shadow: 0 12px 32px rgba(0,0,0,.35); opacity: 0; visibility: hidden; transform: translate(-50%,8px); transition: opacity .18s ease,transform .18s ease,visibility .18s ease; text-align: center; }
.member-toast.is-visible { opacity: 1; visibility: visible; transform: translate(-50%,0); }
.member-dialog-backdrop { position: fixed; inset: 0; z-index: 850; padding: 18px; display: none; align-items: center; justify-content: center; background: rgba(5,7,9,.72); backdrop-filter: blur(3px); }
.member-dialog-backdrop.is-open { display: flex; }
.member-dialog { width: min(480px,100%); border: 1px solid rgba(255,255,255,.08); border-radius: 7px; overflow: hidden; color: var(--member-text); background: #292c30; box-shadow: 0 24px 70px rgba(0,0,0,.46); }
.member-dialog-head { min-height: 56px; padding: 0 17px; display: flex; align-items: center; gap: 9px; border-bottom: 1px solid var(--member-line); background: #23262a; }
.member-dialog-head > .css-icon { width: 19px; height: 19px; color: var(--member-accent); }
.member-dialog-head strong { color: #eef1f4; font-size: 17px; }
.member-dialog-close { margin-left: auto; width: 34px; height: 34px; padding: 0; border: 0; display: grid; place-items: center; border-radius: 5px; color: #929aa4; background: #303438; cursor: pointer; }
.member-dialog-close:hover { color: #fff; background: #3a3e43; }
.member-dialog-close .css-icon { width: 18px; height: 18px; }
.member-dialog-body { padding: 18px; }
.member-dialog-order { margin: 0 0 15px; color: #818a94; font-size: 12px; }
.member-dialog-order b { color: #dce1e6; }
.member-dialog-fields { display: grid; gap: 13px; }
.member-dialog-field { display: grid; gap: 6px; }
.member-dialog-field label { color: #cbd0d6; font-size: 12px; font-weight: 600; }
.member-dialog-field input,.member-dialog-field select { width: 100%; height: 40px; padding: 0 11px; border: 1px solid rgba(255,255,255,.075); border-radius: 5px; outline: 0; color: #e5e8eb; background: #202327; }
.member-dialog-field input:focus,.member-dialog-field select:focus { border-color: rgba(241,64,75,.7); box-shadow: 0 0 0 3px rgba(241,64,75,.08); }
.member-dialog-field select { color-scheme: dark; }
.renew-order-summary { padding: 4px 12px; border: 1px solid rgba(255,255,255,.06); border-radius: 5px; background: #202327; }
.renew-order-summary > div { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid rgba(255,255,255,.055); }
.renew-order-summary > div:last-child { border-bottom: 0; }
.renew-order-summary span { color: #838b95; font-size: 12px; }
.renew-order-summary strong { color: #dce1e6; font-size: 12px; font-weight: 600; text-align: right; }
.renew-payment-total { min-height: 68px; padding: 10px 13px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border: 1px solid rgba(241,64,75,.22); border-radius: 5px; background: rgba(241,64,75,.055); }
.renew-payment-total > span { display: grid; gap: 3px; }
.renew-payment-total > span b { color: #dce1e6; font-size: 13px; }
.renew-payment-total > span small { color: #7f8790; font-size: 11px; }
.renew-payment-total > strong { display: flex; align-items: baseline; gap: 5px; color: var(--member-accent); }
.renew-payment-total > strong b { font-size: 24px; }
.renew-payment-total > strong small { color: #a7aeb6; font-size: 10px; }
.renew-check { min-height: 42px; padding: 0 11px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-radius: 5px; color: #bec4cb; background: #202327; cursor: pointer; }
.renew-check input { width: 17px; height: 17px; accent-color: var(--member-accent); }
.member-dialog-note { margin: 12px 0 0; color: #777f89; font-size: 11px; }
.member-dialog-actions { margin-top: 18px; display: flex; justify-content: flex-end; gap: 8px; }
.member-dialog-button { height: 36px; padding: 0 15px; border: 0; border-radius: 5px; color: #aeb5bd; background: #363a3f; cursor: pointer; }
.member-dialog-button:hover { color: #fff; background: #41464c; }
.member-dialog-button.primary { color: #fff; background: var(--member-accent); }
.member-dialog-button.primary:hover { background: #d9343e; }
body.member-dialog-open { overflow: hidden; }
.member-page .footer { width: min(1400px,calc(100% - 40px)); margin: 0 auto 28px; color: #646b74; font-size: 12px; text-align: center; }

@media (max-width: 1100px) {
  .member-stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .member-grid { grid-template-columns: 1fr; }
  .favorite-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 991.98px) {
  body.member-page { padding-top: 64px; }
  .member-shell { width: min(760px,calc(100% - 24px)); padding-top: 14px; grid-template-columns: 1fr; gap: 12px; }
  .member-sidebar { position: static; border: 0; background: transparent; overflow: visible; }
  .member-profile,.member-nav-footer { display: none; }
  .member-nav { padding: 5px; grid-template-columns: repeat(3,minmax(0,1fr)); border: 1px solid var(--member-line); border-radius: 7px; background: var(--member-panel); }
  .member-nav a { padding: 0 8px; justify-content: center; gap: 7px; font-size: 12px; }
  .member-nav a:nth-child(n+5) { display: none; }
  .member-nav a.active { box-shadow: inset 0 -2px 0 var(--member-accent); }
  .member-page-head { min-height: 68px; padding: 14px 16px; }
  .member-page-head h1 { font-size: 20px; }
  .member-toolbar { align-items: stretch; flex-direction: column; }
  .member-search { width: 100%; }
}

@media (max-width: 575.98px) {
  .member-shell { width: 100%; padding: 10px 10px 28px; }
  .member-page-head { align-items: flex-start; }
  .member-page-head p { max-width: 230px; }
  .member-date { display: none; }
  .member-stats { gap: 8px; }
  .member-stat { min-height: 100px; padding: 14px; }
  .member-stat-icon { width: 30px; height: 30px; margin-bottom: 10px; }
  .member-stat strong { font-size: 21px; }
  .quick-actions { grid-template-columns: 1fr; }
  .quick-action { min-height: 68px; flex-direction: row; align-items: center; }
  .quick-action small { margin-left: auto; }
  .favorite-grid { grid-template-columns: 1fr; gap: 9px; }
  .favorite-card { min-height: 142px; }
  .member-count-badge { min-height: 27px; padding: 0 8px; }
  .member-page .footer { width: 100%; padding: 0 12px; }
}

/* Member center refinement: give the workspace more balance and readable type. */
body.member-page {
  font-size: 15px;
}
.member-shell {
  grid-template-columns: 260px minmax(0,1fr);
  gap: 16px;
}
.member-nav a { font-size: 14px; }
.member-page-head h1 { font-size: 25px; }
.member-page-head p,
.member-panel-head a { font-size: 13px; }
.quick-actions { grid-template-columns: repeat(4,minmax(0,1fr)); }

.orders-panel .member-table,
.links-panel .member-table {
  min-width: 0;
  table-layout: fixed;
}
.orders-panel .member-table th,
.orders-panel .member-table td,
.links-panel .member-table th,
.links-panel .member-table td {
  padding-left: 8px;
  padding-right: 8px;
  text-align: center;
}
.orders-panel .member-table th { font-size: 12px; }
.orders-panel .member-table td { font-size: 13px; }
.orders-panel .member-table th:nth-child(1),
.orders-panel .member-table td:nth-child(1) { width: 14%; }
.orders-panel .member-table th:nth-child(2),
.orders-panel .member-table td:nth-child(2) { width: 19%; }
.orders-panel .member-table th:nth-child(3),
.orders-panel .member-table td:nth-child(3) { width: 12%; }
.orders-panel .member-table th:nth-child(4),
.orders-panel .member-table td:nth-child(4) { width: 11%; }
.orders-panel .member-table th:nth-child(5),
.orders-panel .member-table td:nth-child(5) { width: 12%; }
.orders-panel .member-table th:nth-child(6),
.orders-panel .member-table td:nth-child(6) { width: 13%; }
.orders-panel .member-table th:nth-child(7),
.orders-panel .member-table td:nth-child(7) { width: 19%; }
.orders-panel .order-product { justify-items: center; }
.orders-panel .order-actions { justify-content: center; flex-wrap: wrap; }

.order-filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-size: 13px;
}

/* Favorites use compact directory cards like the public site, while the whole
   card remains the navigation target. */
.favorite-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.favorite-card {
  min-height: 118px;
  padding: 12px;
  cursor: pointer;
  transition: color .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.favorite-card:hover,
.favorite-card:focus-visible {
  border-color: rgba(241,64,75,.38);
  background: #303438;
  box-shadow: 0 0 18px rgba(241,64,75,.12);
  outline: none;
}
.favorite-card-head { gap: 9px; }
.favorite-card-info h2 { font-size: 16px; }
.favorite-card-info p { font-size: 12px; }
  .favorite-card-desc { min-height: 36px; max-height: 36px; margin: 9px 0 9px; font-size: 13px; line-height:18px; }
.favorite-category { font-size: 11px; }
.favorite-visit { font-size: 12px; }
.favorite-remove { z-index: 2; }

.link-table th { font-size: 12px; }
.link-table td { font-size: 13px; }
.link-table th:nth-child(1), .link-table td:nth-child(1) { width: 17%; }
.link-table th:nth-child(2), .link-table td:nth-child(2) { width: 22%; }
.link-table th:nth-child(3), .link-table td:nth-child(3) { width: 13%; }
.link-table th:nth-child(4), .link-table td:nth-child(4) { width: 10%; }
.link-table th:nth-child(5), .link-table td:nth-child(5) { width: 26%; }
.link-table th:nth-child(6), .link-table td:nth-child(6) { width: 12%; }
.links-panel .link-table th:nth-child(5), .links-panel .link-table td:nth-child(5) { text-align: center; }
.member-exchange-address { display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; }
.member-exchange-address .link-url { flex: 1; min-width: 0; text-align: center; cursor: pointer; }
.member-exchange-address .link-url:hover { color: #c7ddff; text-decoration: underline; text-underline-offset: 3px; }
.link-site-name { display: grid; justify-items: center; gap: 2px; }
.link-site-name strong { color: #dce1e6; font-size: 14px; }
.link-site-name small { color: #77808a; font-size: 11px; }
.links-panel a.link-site-name:hover strong, .links-panel a.link-url:hover { color: #c7ddff; text-decoration: underline; text-underline-offset: 3px; }
.link-url {
  display: block;
  overflow: hidden;
  color: #9dbfff;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.link-category { color: #b8c3d2; }
.link-status {
  min-height: 24px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 11px;
}
.link-status.live { color: #68d496; background: rgba(54,194,117,.1); }
.link-status.pending { color: #ffb563; background: rgba(255,138,24,.1); }
.link-status.update { color: #9dbfff; background: rgba(57,136,255,.1); }
.link-empty { padding: 42px 20px; }

@media (max-width: 1100px) {
  .favorite-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

@media (max-width: 991.98px) {
  .member-shell { grid-template-columns: 1fr; }
  .quick-actions { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .member-nav { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .member-nav a { min-width: 0; padding: 0 5px; gap: 5px; font-size: 12px; justify-content: center; }
  .member-nav a:nth-child(n+5) { display: none; }
  .orders-panel .member-table,
  .links-panel .member-table { min-width: 760px; }
  .favorite-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 575.98px) {
  .quick-actions { grid-template-columns: 1fr; }
  .favorite-grid { grid-template-columns: 1fr; gap: 9px; }
  .favorite-card { min-height: 116px; }
}

/* Auth screens belong to the member flow too; keep their text readable. */
body.auth-page { font-size: 15px; }
.auth-page .auth-field label { font-size: 14px; }
.auth-page .auth-options,
.auth-page .check-row { font-size: 13px; }

/* Current member order identifiers and empty states. */
.member-order-number{display:inline-flex;align-items:center;gap:7px;max-width:100%;white-space:nowrap}
.member-order-abbreviation{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:11px;font-variant-numeric:tabular-nums;letter-spacing:.15px}
.member-order-copy{display:inline-grid;place-items:center;flex:0 0 27px;width:27px;height:27px;padding:0;border:1px solid #ffffff12;border-radius:6px;color:#8793a1;background:#ffffff04;cursor:pointer}
.member-order-copy:hover{color:#f87a83;border-color:#f1404b55;background:#f1404b0c}
.member-order-copy:focus-visible,.member-empty-action:focus-visible{outline:2px solid #f1404b;outline-offset:3px}
.member-order-copy .css-icon-copy{width:12px;height:13px;font-size:12px}
.member-order-unavailable{color:#5e6975}
.member-table-loading{padding:36px 18px!important;text-align:center!important;color:#84909d;font-size:12px;white-space:normal!important}
.member-table-loading .table-action{display:inline-flex;margin-left:12px}
.member-stat .member-spending-total .member-spending-amount{display:block;margin:0;color:inherit;font-size:19px;line-height:1.4}
.member-spending-total .member-spending-amount+.member-spending-amount{margin-top:5px}
.member-empty-action{display:inline-flex;align-items:center;justify-content:center;margin:13px 0 0;padding:8px 17px;border:1px solid #f1404b55;border-radius:6px;color:#ff8a93!important;background:#f1404b12;font-size:12px;text-decoration:none}
.member-empty-action:hover{background:#f1404b26;color:#fff!important}
.member-empty-action[hidden]{display:none!important}
.member-orders-pager{display:flex;align-items:center;justify-content:flex-end;gap:12px;padding:15px 18px;border-top:1px solid #ffffff0b;color:#85919e;font-size:12px}
.member-orders-pager[hidden]{display:none}
.member-orders-pager button{padding:6px 12px;border:1px solid #ffffff16;border-radius:5px;background:#2d333a;color:#c4cbd3;cursor:pointer}
.member-orders-pager button:disabled{opacity:.35;cursor:default}
.member-links-heading{display:flex;align-items:center;flex-wrap:wrap;gap:6px 14px;min-width:0}.member-links-review-note{margin:0;color:#919ba6;font-size:12px;line-height:1.5}.favorite-site-logo{overflow:hidden}.favorite-site-logo img{width:100%;height:100%;object-fit:cover;border-radius:7px}.member-favorite-loading{margin:0;padding:12px;color:#818b96;font-size:12px}.mini-favorites .member-favorite-loading{grid-column:1/-1;padding:10px}
.member-dialog-description{grid-column:1/-1}
.member-dialog-field textarea{width:100%;min-height:84px;padding:10px 11px;resize:vertical;border:1px solid rgba(255,255,255,.075);border-radius:5px;outline:0;color:#e5e8eb;background:#202327;font:inherit;line-height:1.55}
.member-dialog-field textarea:focus{border-color:rgba(241,64,75,.7);box-shadow:0 0 0 3px rgba(241,64,75,.08)}
.member-page .link-invalid-badge{display:inline-flex;align-items:center;justify-content:center;min-height:20px;padding:0 7px;border:1px solid #f1404b;border-radius:999px;color:#f1404b;background:rgba(241,64,75,.16);font-size:11px;font-weight:700;line-height:1.4;white-space:nowrap}

.member-order-detail-dialog{border:1px solid var(--member-line);border-radius:8px;padding:26px;max-width:calc(100vw - 40px);width:420px;color:var(--member-text);background:var(--member-panel);box-shadow:0 20px 70px #0006}.member-order-detail-dialog::backdrop{background:#21133b55}.member-order-detail-dialog h2{color:var(--member-title);font-size:18px;margin:0 0 22px}.member-order-detail-dialog dl{display:grid;grid-template-columns:80px 1fr;gap:14px;font-size:13px}.member-order-detail-dialog dt{color:var(--member-muted)}.member-order-detail-dialog dd{margin:0;overflow-wrap:anywhere}.member-order-detail-dialog .table-action{margin:14px 14px 0 0}
