html, body {
  overflow-x: hidden;
}

body {
  font-family: 'Inter', sans-serif;
}

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

.editorial-shadow {
  box-shadow: 0 20px 40px rgba(27,28,28,.06);
}

.tab-active {
  border-color: #b72301;
  color: #1b1c1c;
}

.tab-inactive {
  border-color: transparent;
  color: rgba(27,28,28,.3);
}

.status-processing {
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #fed7aa;
}

.status-confirmed {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.status-done {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.status-cancelled {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.skeleton {
  background: linear-gradient(90deg, #e9e8e7 25%, #f5f3f3 50%, #e9e8e7 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 4px;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

#panelLogin #btnLogin{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:168px;
  min-height:44px;
  margin-top:4px;
  border:1px solid #b72301;
  border-radius:10px;
  background:#b72301;
  color:#fff;
  font-weight:800;
  letter-spacing:.08em;
  text-decoration:none;
}

#panelLogin #btnLogin:hover{
  background:#9f1f02;
  border-color:#9f1f02;
}

#panelLogin #btnLogin:disabled{
  opacity:.72;
  cursor:not-allowed;
}

.hidden-init{
  display:none;
}

.is-hidden{
  display:none !important;
}

.hub-brand-link{
  font-weight:800;
  font-size:18px;
  letter-spacing:.2px;
}

.hub-icon-20{
  font-size:20px;
}

.hub-icon-32{
  font-size:32px;
}

.hub-icon-36{
  font-size:36px;
}

.hub-icon-fill{
  font-variation-settings:'FILL' 1;
}

.hub-line-badge-icon{
  flex-shrink:0;
}

.hub-line-bind-btn{
  background:#06C755;
}

.hub-dialog-close-inline{
  font-size:20px;
  background:none;
  border:none;
  cursor:pointer;
  padding:4px;
  border-radius:999px;
  line-height:1;
  transition:color .16s ease, background-color .16s ease, box-shadow .16s ease;
}

.hub-dialog-close-inline:focus-visible{
  outline:2px solid rgba(183,35,1,.55);
  outline-offset:3px;
  box-shadow:0 0 0 4px rgba(183,35,1,.12);
}

.hub-summary-pane{
  overflow-y:auto;
  height:calc(100% - 53px);
  padding:20px;
}

.hub-summary-image-wrap{
  display:flex;
  justify-content:center;
  padding:4px 0 10px;
}

.hub-summary-card-image{
  display:block;
  width:min(100%, 520px);
  height:auto;
  border-radius:28px;
  box-shadow:0 18px 42px rgba(47,34,22,.16);
}

@media (max-width: 640px){
  .hub-summary-pane{
    padding:16px;
  }

  .hub-summary-card-image{
    width:100%;
    border-radius:22px;
  }
}

.hub-login-logo{
  width:72px;
  height:72px;
  display:block;
  margin:0 auto;
  object-fit:contain;
}

.hub-main-tabs {
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.hub-main-tabs::-webkit-scrollbar {
  display: none;
}
.hub-main-tabs .tab-btn {
  flex: 0 0 auto;
}

.hub-profile-name-row{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:12px;
  min-width:0;
}

.hub-profile-edit-inline{
  margin-left: 8px;
  flex-shrink: 0;
}

.hub-profile-guardian-row{
  display:flex;
  align-items:center;
  min-height: 34px;
}

.hub-profile-guardian.guardian-badge{
  position:relative;
  display:flex;
  align-items:center;
  gap:10px;
  padding:7px 12px;
  min-width:0;
  border-radius:999px;
  background:linear-gradient(135deg,#fff8ec 0%,#ffe8d2 100%);
  border:1px solid #f2cfad;
  color:#7a3f12;
  box-shadow:0 10px 24px rgba(183,35,1,.12);
  cursor:pointer;
  user-select:none;
  margin-bottom:2px;
}
.hub-profile-guardian.guardian-badge img{
  width:22px;
  height:22px;
  object-fit:contain;
  filter:drop-shadow(0 2px 4px rgba(122,63,18,.2));
}
.hub-profile-guardian .guardian-meta{
  display:flex;
  flex-direction:column;
  gap:1px;
  min-width:0;
}
.hub-profile-guardian .guardian-meta strong{
  font-size:12px;
  font-weight:800;
  color:#7a3f12;
  line-height:1.2;
  white-space:nowrap;
}
.hub-profile-guardian .guardian-sub{
  font-size:10px;
  color:rgba(122,63,18,.72);
  line-height:1.2;
  white-space:nowrap;
}
.hub-profile-guardian .guardian-alert{
  position:absolute;
  top:-4px;
  right:-4px;
  min-width:18px;
  height:18px;
  padding:0 5px;
  border-radius:999px;
  background:#ef4444;
  color:#fff;
  font-size:11px;
  font-weight:700;
  display:none;
  align-items:center;
  justify-content:center;
  border:2px solid #fff;
  line-height:1;
}
.hub-profile-guardian .guardian-menu{
  position:absolute;
  top:calc(100% + 8px);
  right:0;
  min-width:176px;
  display:none;
  flex-direction:column;
  gap:4px;
  padding:6px;
  border-radius:12px;
  background:#0b1022;
  border:1px solid rgba(148,163,184,.25);
  box-shadow:0 18px 36px rgba(0,0,0,.35);
  z-index:40;
}
.hub-profile-guardian .guardian-menu.guardian-menu--open{
  display:flex;
}
.hub-profile-guardian .guardian-menu button{
  display:flex;
  align-items:center;
  gap:8px;
  width:100%;
  padding:8px 10px;
  border-radius:10px;
  background:transparent;
  border:0;
  color:#e2e8f0;
  font-size:12px;
  font-weight:700;
  text-align:left;
  cursor:pointer;
}
.hub-profile-guardian .guardian-menu button:hover{
  background:rgba(148,163,184,.12);
}
.hub-profile-guardian .guardian-menu-badge{
  margin-left:auto;
  min-width:18px;
  height:18px;
  padding:0 5px;
  border-radius:999px;
  background:#ef4444;
  color:#fff;
  font-size:11px;
  font-weight:700;
  display:none;
  align-items:center;
  justify-content:center;
  line-height:1;
}
.hub-profile-guardian--empty{
  text-decoration:none !important;
}

/* ── Hub Order Cards ──────────────────────────────────────────────────────── */
.hub-orders-heading{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:18px;
}
.hub-orders-heading-right{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.hub-orders-freshness{
  display:none !important;
  min-height:18px;
  margin-top:5px;
  font-size:11px;
  color:rgba(27,28,28,.42);
  font-weight:700;
}
.hub-orders-freshness.is-syncing{ color:#b45309; }
.hub-orders-freshness.is-error{ color:#b91c1c; }
.hub-orders-refresh{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  min-height:34px;
  padding:0 12px;
  border-radius:999px;
  border:1px solid rgba(183,35,1,.22);
  background:#fff;
  color:#9a3412;
  font-size:11px;
  font-weight:800;
  letter-spacing:.04em;
  cursor:pointer;
  transition:background .16s ease, border-color .16s ease, transform .1s ease;
}
.hub-orders-refresh .material-symbols-outlined{ font-size:16px; }
.hub-orders-refresh:hover{
  background:#fff7ed;
  border-color:rgba(183,35,1,.42);
}
.hub-orders-refresh:active{ transform:translateY(1px); }
.hub-orders-toolbar{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(210px,240px) minmax(180px,210px);
  gap:12px;
  margin-bottom:20px;
  align-items:center;
}
.hub-orders-toolbar .hub-orders-filter{
  grid-column:1 / -1;
}
.hub-orders-filter{
  display:flex;
  gap:4px;
  padding:4px;
  border-radius:14px;
  background:#efedeb;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
}
.hub-orders-filter::-webkit-scrollbar{ display:none; }
.hub-orders-filter .hub-ctab-btn{
  flex:0 0 auto;
  min-height:36px;
  padding:0 14px;
  border-radius:10px;
  font-size:11px;
  font-weight:800;
  letter-spacing:.08em;
  white-space:nowrap;
}
.hub-orders-search{
  display:flex;
  align-items:center;
  gap:8px;
  min-height:44px;
  padding:0 12px;
  border-radius:14px;
  border:1px solid #e1dfdd;
  background:#fff;
  color:rgba(27,28,28,.4);
}
.hub-orders-search .material-symbols-outlined{ font-size:19px; }
.hub-orders-sort{
  display:flex;
  align-items:center;
  gap:8px;
  min-height:44px;
  padding:0 12px;
  border-radius:14px;
  border:1px solid #e1dfdd;
  background:#fff;
  color:rgba(27,28,28,.4);
}
.hub-orders-sort .material-symbols-outlined{
  font-size:19px;
}
.hub-orders-search input{
  min-width:0;
  width:100%;
  border:0;
  background:transparent;
  font-size:13px;
  font-weight:650;
  color:#1b1c1c;
  outline:none;
  box-shadow:none;
}
.hub-orders-search input:focus{ outline:none; box-shadow:none; }
.hub-retry-btn{
  min-height:38px;
  padding:0 16px;
  border-radius:10px;
  border:1px solid #d7c9c3;
  background:#fff;
  color:#9a3412;
  font-size:12px;
  font-weight:800;
  letter-spacing:.04em;
  transition:background .16s ease, border-color .16s ease;
}
.hub-retry-btn:hover{
  background:#fff7ed;
  border-color:#d08f78;
}
.hub-orders-sort select{
  width:100%;
  min-width:0;
  border:0;
  background:transparent;
  color:#1b1c1c;
  font-size:13px;
  font-weight:650;
  outline:none;
  box-shadow:none;
  appearance:auto;
}
.hub-order-card {
  background: #fff;
  border: 1px solid #e9e8e7;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(27,28,28,0.05);
  margin-bottom: 16px;
}
.hub-order-skeleton-card{ pointer-events:none; }
.hub-order-skeleton-card .hub-order-head{ min-height:62px; }
.hub-order-skeleton-card .hub-product-row{ min-height:96px; }
.hub-order-skeleton-card .hub-order-actions{ min-height:64px; }
.hub-skel-stack{
  display:flex;
  flex-direction:column;
  gap:8px;
  min-width:0;
}
.hub-skel-line,
.hub-skel-pill,
.hub-skel-img,
.hub-skel-btn{
  display:block;
  background:linear-gradient(90deg,#e9e8e7 25%,#f7f5f4 50%,#e9e8e7 75%);
  background-size:200% 100%;
  animation:hubOrderShimmer 1.2s ease-in-out infinite;
  border-radius:999px;
}
@keyframes hubOrderShimmer{
  0%{background-position:200% 0}
  100%{background-position:-200% 0}
}
.hub-skel-line{ height:14px; width:180px; max-width:100%; }
.hub-skel-line.small{ height:10px; opacity:.78; }
.hub-skel-line.w-20{ width:80px; }
.hub-skel-line.w-28{ width:112px; }
.hub-skel-line.w-40{ width:160px; }
.hub-skel-line.w-72{ width:288px; }
.hub-skel-pill{ width:92px; height:26px; }
.hub-skel-img{ width:64px; height:64px; border-radius:10px; flex-shrink:0; }
.hub-skel-btn{ width:112px; height:34px; border-radius:999px; }
.hub-skel-btn.ghost{ width:88px; opacity:.72; }
.hub-order-card--deep-linked{
  border-color: #f5bc7a;
  box-shadow: 0 0 0 3px rgba(245, 188, 122, 0.24), 0 10px 24px rgba(183, 35, 1, 0.12);
  animation: hubOrderDeepLinkedPulse 1.4s ease-out;
}
@keyframes hubOrderDeepLinkedPulse{
  0% { transform: translateY(0); }
  35% { transform: translateY(-1px); }
  100% { transform: translateY(0); }
}
.hub-order-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid #f0efef;
  background: #fafafa;
  gap: 12px;
}
.hub-order-id {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 11px;
  font-weight: 700;
  color: #1b1c1c;
  letter-spacing: 0.04em;
}
.hub-order-date {
  font-size: 11px;
  color: rgba(27,28,28,0.4);
  margin-left: 10px;
}
.hub-status-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  flex-shrink: 0;
  white-space: nowrap;
}
/* Product row */
.hub-product-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid #f0efef;
}
.hub-product-img {
  width: 64px; height: 64px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid #e9e8e7;
  background: #f5f3f3;
}
.hub-product-img-placeholder {
  width: 64px; height: 64px;
  border-radius: 10px;
  flex-shrink: 0;
  background: #f5f3f3;
  border: 1px solid #e9e8e7;
  display: flex; align-items: center; justify-content: center;
  color: #a8a29e;
}
.hub-product-info { flex: 1; min-width: 0; }
.hub-product-name {
  font-size: 14px;
  font-weight: 700;
  color: #1b1c1c;
  line-height: 1.4;
  margin-bottom: 6px;
}
.hub-product-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.hub-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.hub-tag-phone    { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.hub-tag-duration { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.hub-tag-option   { background: #f5f5f7; color: #555;    border: 1px solid #e5e7eb; }
.hub-product-price {
  font-size: 15px;
  font-weight: 800;
  color: #1b1c1c;
  flex-shrink: 0;
  margin-top: 2px;
  white-space: nowrap;
}
/* Info table */
.hub-info-table { padding: 12px 18px; border-bottom: 1px solid #f0efef; display: flex; flex-direction: column; gap: 6px; }
.hub-info-row { display: flex; gap: 12px; font-size: 12px; }
.hub-info-label { color: rgba(27,28,28,0.4); width: 64px; flex-shrink: 0; }
.hub-info-value { color: #1b1c1c; }
/* Timeline */
/* ── Order timeline (vertical) ────────────────────────────────────────────── */
.hub-timeline-wrap { margin: 0 16px 16px; }
.hub-timeline-toggle {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border: 1px solid #ebebeb; border-radius: 12px; background: #fafafa; padding: 14px 16px;
  font: inherit; cursor: pointer; color: #1b1c1c; text-align: left;
}
.hub-timeline-toggle-label { font-size: 12px; color: #6b7280; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.hub-timeline-toggle-icon { font-size: 20px; line-height: 1; color: #6b7280; }
.hub-timeline { margin-top: 10px; border: 1px solid #ebebeb; border-radius: 12px; background: #fafafa; padding: 14px 16px 16px; }
.hub-steps { display: flex; flex-direction: column; }
.hub-step {
  display: flex; align-items: flex-start; gap: 12px;
  position: relative; padding-bottom: 18px;
}
.hub-step:last-child { padding-bottom: 0; }
/* vertical connector line */
.hub-step::before {
  content: ''; position: absolute;
  left: 10px; top: 22px;
  width: 2px; height: calc(100% - 22px);
  background: #d2d2d7; border-radius: 999px; z-index: 0;
}
.hub-step:last-child::before { display: none; }
.hub-step.is-complete::before { background: #28a745; }
.hub-step-dot {
  width: 22px; height: 22px; border-radius: 999px; flex-shrink: 0;
  background: #a1a1a6; box-shadow: 0 0 0 3px rgba(161,161,166,.18);
  position: relative; z-index: 1;
}
.hub-step.is-complete .hub-step-dot { background: #28a745; box-shadow: 0 0 0 3px rgba(40,167,69,.2); }
.hub-step.is-current  .hub-step-dot { background: #0071e3; box-shadow: 0 0 0 4px rgba(0,113,227,.2); }
.hub-step-content { padding-top: 2px; min-width: 0; }
.hub-step-label { font-size: 13px; font-weight: 600; color: #6b7280; line-height: 1.3; }
.hub-step.is-complete .hub-step-label { color: #374151; }
.hub-step.is-current  .hub-step-label { color: #0071e3; font-weight: 700; }
.hub-step-date { margin-top: 3px; font-size: 11px; font-weight: 500; color: #9ca3af; line-height: 1.5; font-variant-numeric: tabular-nums; }
/* Footer */
.hub-order-footer {
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}
.hub-detail-link {
  font-size: 11px;
  font-weight: 700;
  color: #b72301;
  text-decoration: none;
  letter-spacing: 0.03em;
}
.hub-detail-link:hover { text-decoration: underline; }
.hub-order-actions{
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 18px;
  border-bottom:1px solid #f0efef;
  flex-wrap:wrap;
}
.hub-order-action{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:34px;
  padding:0 14px;
  border-radius:999px;
  border:1px solid #e5e1dd;
  background:#fff;
  color:#5f534b;
  font-size:12px;
  font-weight:800;
  text-decoration:none;
  cursor:pointer;
  transition:background .16s ease, border-color .16s ease, color .16s ease, transform .1s ease;
}
.hub-order-action:hover{
  background:#faf7f4;
  border-color:#d8ccc2;
  color:#1b1c1c;
}
.hub-order-action.primary{
  background:#b72301;
  border-color:#b72301;
  color:#fff;
  box-shadow:0 8px 18px rgba(183,35,1,.14);
}
.hub-order-action.primary:hover{
  background:#9f1f02;
  border-color:#9f1f02;
  color:#fff;
}
.hub-order-action:active{ transform:translateY(1px); }
/* Reward / conflict / meeting / result */
/* ── Review reward block ──────────────────────────────────────────────────── */
.hub-order-reward {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid #f0efef;
  background: #f0fdf4;
  flex-wrap: wrap;
}
.hub-order-reward.claimed { background: #f0fdf4; }
.hub-order-reward.pending {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  justify-content: space-between;
  position: relative;
  isolation: isolate;
}
.hub-order-reward.pending::before{
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 15% 8%, rgba(255,255,255,0.55), transparent 38%);
  z-index: -1;
}
.hub-reward-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.hub-reward-icon { font-size: 20px; flex-shrink: 0; }
.hub-order-reward.claimed .hub-reward-icon { color: #16a34a; }
.hub-order-reward.pending  .hub-reward-icon { color: #b45309; }
.hub-reward-title { font-size: 13px; font-weight: 700; color: #78350f; }
.hub-order-reward.claimed .hub-reward-title { color: #15803d; }
.hub-reward-sub { font-size: 11px; color: #92400e; margin-top: 1px; }
.hub-reward-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 8px 16px;
  background: #b72301;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(140, 24, 0, 0.18);
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
}
.hub-reward-action-btn:hover { background: #991b0a; transform: translateY(-1px); box-shadow: 0 10px 20px rgba(140, 24, 0, 0.25); }
.hub-reward-action-btn:active { transform: translateY(0); }
.hub-reward-action-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(183,35,1,0.22), 0 10px 20px rgba(140,24,0,0.2);
}
.hub-reward-action-btn[aria-expanded="true"] { background: #7f1d1d; box-shadow: 0 0 0 2px rgba(127,29,29,0.22); }

/* ── Inline review panel (member hub orders) ────────────────────────────── */
.hub-inline-review {
  width: 100%;
  margin-top: 10px;
  animation: hubReviewReveal .24s ease-out;
}
.hub-inline-review-panel {
  width: 100%;
  border: 1px solid #f5d0a7;
  background: linear-gradient(180deg, #fffef9 0%, #fffaf1 100%);
  border-radius: 12px;
  padding: 14px 14px 12px;
  box-shadow: 0 12px 30px rgba(163, 86, 17, .08), inset 0 1px 0 rgba(255,255,255,.8);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.hub-inline-review-panel.is-loading-list { border-color: #efc58f; }
.hub-inline-review-panel.is-submitting { border-color: #e4b172; box-shadow: 0 14px 32px rgba(163, 86, 17, .12), inset 0 1px 0 rgba(255,255,255,.9); }
.hub-inline-review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.hub-inline-review-head strong {
  font-size: 13px;
  font-weight: 700;
  color: #7c2d12;
}
.hub-inline-review-count {
  font-size: 11px;
  font-weight: 700;
  color: #92400e;
}
.hub-inline-review-hint {
  font-size: 11px;
  color: #92400e;
  margin-bottom: 10px;
}
.hub-inline-review-list {
  max-height: 300px;
  overflow: auto;
  border: 1px solid #f4e2cf;
  background: #fff;
  border-radius: 10px;
  padding: 10px;
}
.hub-inline-review-loading,
.hub-inline-review-empty {
  font-size: 12px;
  color: rgba(27,28,28,0.5);
}
.hub-inline-review-panel.is-loading-list .hub-inline-review-list{
  position: relative;
  overflow: hidden;
}
.hub-inline-review-panel.is-loading-list .hub-inline-review-list::after{
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(255,255,255,0) 20%, rgba(255,255,255,.7) 45%, rgba(255,255,255,0) 70%);
  transform: translateX(-100%);
  animation: hubShimmer 1.05s ease-in-out infinite;
  pointer-events: none;
}
.hub-inline-review-item {
  border-bottom: 1px solid #f3f4f6;
  padding-bottom: 10px;
  margin-bottom: 10px;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
  border-radius: 8px;
  padding-left: 8px;
  padding-right: 8px;
}
.hub-inline-review-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.hub-inline-review-item:hover{
  transform: translateY(-1px);
  border-color: #e9d4bd;
  box-shadow: 0 6px 16px rgba(15,23,42,.06);
}
.hub-inline-review-item-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.hub-inline-review-item-head strong {
  font-size: 12px;
  color: #1f2937;
}
.hub-inline-review-item-head span {
  font-size: 10px;
  color: rgba(27,28,28,0.45);
}
.hub-inline-review-item-msg {
  font-size: 12px;
  color: #111827;
  line-height: 1.55;
  white-space: pre-wrap;
}
.hub-inline-review-image {
  display: block;
  margin-top: 8px;
  max-width: 120px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  transition: transform .16s ease, box-shadow .16s ease;
}
.hub-inline-review-image:hover{
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(15,23,42,.14);
}
.hub-inline-review-form {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}
.hub-inline-review-form input[type="text"],
.hub-inline-review-form textarea {
  width: 100%;
  border: 1px solid #f0d7bd;
  border-radius: 8px;
  padding: 9px 10px;
  font-size: 13px;
  background: #fff;
  font-family: inherit;
  outline: none;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.hub-inline-review-form textarea {
  min-height: 90px;
  resize: vertical;
}
.hub-inline-review-form input[type="text"]:focus,
.hub-inline-review-form textarea:focus {
  border-color: #d97706;
  box-shadow: 0 0 0 3px rgba(217,119,6,0.18);
  background: #fffdf8;
}
.hub-inline-review-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 11px;
  color: rgba(27,28,28,0.58);
}
.hub-inline-review-upload {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #f3cba0;
  background: #fff8ef;
  color: #9a3412;
  cursor: pointer;
  font-weight: 600;
  transition: background .16s ease, border-color .16s ease, color .16s ease, transform .1s ease;
}
.hub-inline-review-upload input {
  display: none;
}
.hub-inline-review-upload:hover{
  background: #fff2de;
  border-color: #e8b980;
}
.hub-inline-review-upload:active{
  transform: translateY(1px);
}
.hub-inline-review-submit {
  justify-self: end;
  border: none;
  border-radius: 999px;
  background: #b72301;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 16px;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(183,35,1,0.16);
  transition: background .16s ease, transform .1s ease, box-shadow .16s ease;
}
.hub-inline-review-submit:hover { background: #991b0a; transform: translateY(-1px); box-shadow: 0 10px 20px rgba(153,27,10,0.25); }
.hub-inline-review-submit:active { transform: translateY(0); }
.hub-inline-review-submit:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(183,35,1,0.2), 0 10px 20px rgba(153,27,10,0.24);
}
.hub-inline-review-submit:disabled { opacity: 0.64; cursor: default; transform: none; box-shadow: none; }
.hub-inline-review-panel.is-submitting .hub-inline-review-submit{
  position: relative;
  color: #ffe3db;
}
.hub-inline-review-panel.is-submitting .hub-inline-review-submit::after{
  content: '';
  width: 13px;
  height: 13px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,0.52);
  border-top-color: #fff;
  display: inline-block;
  margin-left: 8px;
  vertical-align: -2px;
  animation: hubSpin .8s linear infinite;
}
.hub-inline-review-status {
  min-height: 18px;
  font-size: 12px;
  color: rgba(27,28,28,0.52);
  transition: color .16s ease;
}
.hub-inline-review-status.is-error { color: #b91c1c; }
.hub-inline-review-status.is-success { color: #166534; }

/* ── Review flow / reward dialogs ───────────────────────────────────────── */
.reward-dialog-modal{
  border: none;
  border-radius: 20px;
  padding: 0;
  width: min(92vw, 560px);
  background: transparent;
  animation: hubDialogFadeIn .18s ease-out;
}
.reward-dialog-modal::backdrop{
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(2px);
}
.reward-dialog-panel{
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 28px 54px rgba(15, 23, 42, 0.2);
  padding: 22px 22px 18px;
  animation: hubDialogSlideUp .22s ease-out;
}
.reward-dialog-head{ display:flex; align-items:center; justify-content:space-between; gap:10px; }
.reward-dialog-title{ font-size: 22px; font-weight: 800; color: #0f172a; }
.reward-dialog-close{
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid #dbe3ee;
  background: #f8fafc;
  color: #334155;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, transform .1s ease;
}
.reward-dialog-close:hover{ border-color: #bfcad8; background: #eef2f7; transform: translateY(-1px); }
.reward-dialog-close:active{ transform: translateY(0); }
.reward-dialog-body{ margin-top: 10px; display:grid; gap:10px; color:#334155; font-size:14px; line-height:1.7; }
.reward-dialog-code{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:8px;
  border:1px dashed #93c5fd;
  border-radius:12px;
  padding:10px 12px;
  background:#eff6ff;
}
.reward-dialog-code strong{ color:#0b3668; font-size:17px; }
.reward-dialog-list{ margin:0; padding-left:18px; display:grid; gap:6px; }
.reward-dialog-actions{ display:flex; flex-wrap:wrap; justify-content:flex-end; gap:10px; margin-top: 12px; }
.reward-dialog-btn{
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .1s ease, box-shadow .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.reward-dialog-btn.primary{ background:#b72301; color:#fff; box-shadow: 0 8px 16px rgba(183,35,1,.18); }
.reward-dialog-btn.primary:hover{ background:#8f1900; transform: translateY(-1px); box-shadow: 0 10px 20px rgba(143,25,0,.25); }
.reward-dialog-btn.ghost{ background:#fff; color:#1f2937; border-color:#d0d8e3; }
.reward-dialog-btn.ghost:hover{ background:#f8fafc; border-color:#b9c6d5; transform: translateY(-1px); }
.review-flow-modal .reward-dialog-panel{ border-radius: 22px; }
.review-flow-chip{
  display:inline-flex;
  align-items:center;
  border-radius:999px;
  border:1px solid #c7d2fe;
  background:#eef2ff;
  color:#3730a3;
  font-size:11px;
  font-weight:700;
  padding:4px 10px;
}
.review-flow-title{ font-size:22px; color:#0f172a; line-height:1.25; }
.review-flow-desc{ margin:0; color:#475569; font-size:14px; line-height:1.7; }
.review-flow-meter{
  margin-top: 10px;
  width:100%;
  height:8px;
  background:#e2e8f0;
  border-radius:999px;
  overflow:hidden;
}
.review-flow-meter span{
  display:block;
  width:0;
  height:100%;
  background:linear-gradient(90deg,#3b82f6,#2563eb);
  transition:width .24s ease;
}
.review-flow-status{ margin-top:8px; font-size:13px; font-weight:700; color:#166534; }
.review-flow-steps{ margin:10px 0 0; padding:0; list-style:none; display:grid; gap:8px; }
.review-flow-steps li{
  display:flex;
  align-items:center;
  gap:10px;
  padding:8px 10px;
  border-radius:10px;
  border:1px solid #e2e8f0;
  background:#f8fafc;
  color:#475569;
  font-size:13px;
}
.review-flow-steps .dot{
  width:22px;
  height:22px;
  border-radius:999px;
  border:1px solid #cbd5e1;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:11px;
  font-weight:700;
}
.review-flow-steps li.is-active{ border-color:#bfdbfe; background:#eff6ff; color:#1e3a8a; }
.review-flow-steps li.is-active .dot{ border-color:#60a5fa; background:#dbeafe; color:#1d4ed8; }
.review-flow-steps li.is-done{ border-color:#86efac; background:#f0fdf4; color:#166534; }
.review-flow-steps li.is-done .dot{ border-color:#4ade80; background:#dcfce7; color:#166534; }
.review-flow-steps li.is-error{ border-color:#fecaca; background:#fff1f2; color:#b91c1c; }
.review-flow-steps li.is-error .dot{ border-color:#fca5a5; background:#fee2e2; color:#b91c1c; }

@media (max-width: 720px){
  .hub-order-reward { padding: 12px 14px; }
  .hub-order-reward.pending .hub-reward-left { width: 100%; }
  .hub-reward-action-btn {
    width: 100%;
    min-height: 38px;
  }
  .hub-inline-review { margin-top: 8px; }
  .hub-inline-review-panel { padding: 12px; border-radius: 10px; }
  .hub-inline-review-item { padding-left: 6px; padding-right: 6px; }
  .hub-inline-review-submit { width: 100%; min-height: 38px; justify-self: stretch; }
  .reward-dialog-modal{ width: min(94vw, 560px); }
  .reward-dialog-panel{ padding: 16px 16px 14px; border-radius: 16px; }
  .reward-dialog-title, .review-flow-title{ font-size: 18px; }
  .reward-dialog-actions{ justify-content: stretch; }
  .reward-dialog-btn{ width: 100%; text-align: center; justify-content: center; }
  .review-flow-steps li{ font-size: 12px; padding: 8px; }
}

@keyframes hubReviewReveal{
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes hubShimmer{
  0% { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}
@keyframes hubSpin{
  to { transform: rotate(360deg); }
}
@keyframes hubDialogFadeIn{
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes hubDialogSlideUp{
  from { opacity: 0; transform: translateY(8px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Conflict block ───────────────────────────────────────────────────────── */
.hub-order-conflict { padding: 12px 18px; border-bottom: 1px solid #f0efef; background: #fff1f2; font-size: 12px; color: #be123c; }
.hub-conflict-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.hub-conflict-btn { padding: 6px 14px; border: 1px solid #b72301; border-radius: 6px; font-size: 11px; font-weight: 700; color: #b72301; background: #fff; cursor: pointer; }
.hub-conflict-btn:disabled { opacity: 0.5; cursor: default; }

/* ── Meeting link block ───────────────────────────────────────────────────── */
.hub-meeting-row {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid #f0efef;
  background: #eff6ff;
  flex-direction: column;
}
.hub-meeting-left { display: flex; align-items: center; gap: 10px; }
.hub-meeting-icon { font-size: 20px; color: #1d4ed8; flex-shrink: 0; }
.hub-meeting-label { font-size: 13px; font-weight: 700; color: #1e3a8a; }
.hub-meeting-url {
  width: 100%;
  font-size: 12px;
  color: #475569;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.45;
}
.hub-result-panel { padding: 14px 18px; border-bottom: 1px solid #f0efef; }
.hub-result-title { font-size: 11px; font-weight: 700; color: rgba(27,28,28,0.5); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px; }
.hub-result-row { margin-bottom: 10px; }
.hub-result-row-label { font-size: 12px; color: #1b1c1c; margin-bottom: 6px; }
.hub-result-row-note { font-size: 11px; color: rgba(27,28,28,0.4); }
.hub-result-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.hub-result-btn { padding: 6px 14px; border-radius: 6px; font-size: 11px; font-weight: 700; text-decoration: none; }
.hub-result-btn.primary { background: #1b1c1c; color: #fff; }
.hub-result-btn.ghost   { background: #fff; color: #1b1c1c; border: 1px solid #e9e8e7; }
.hub-atm-panel{
  margin:14px 18px 0;
  padding:14px 16px;
  border:1px solid #fed7aa;
  border-radius:14px;
  background:#fff7ed;
  color:#431407;
}
.hub-atm-title{font-weight:800;color:#9a3412;margin-bottom:6px;}
.hub-atm-note{font-size:13px;line-height:1.6;color:#9a3412;}
.hub-atm-rows{display:grid;gap:8px;margin-top:10px;}
.hub-atm-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:8px;border-top:1px solid rgba(251,146,60,.28);}
.hub-atm-row span{color:#9a3412;font-size:13px;font-weight:700;}
.hub-atm-row strong{color:#1f2937;text-align:right;word-break:break-all;}
/* QnA */
.hub-qna-row { border-top: 1px solid #f0efef; }
.hub-qna-btn-bar { display: flex; gap: 8px; padding: 12px 18px; flex-wrap: wrap; }
.hub-qna-btn {
  padding: 7px 14px; border: 1.5px solid #e9e8e7; border-radius: 999px;
  font-size: 12px; font-weight: 600; color: #1b1c1c; background: #fff;
  cursor: pointer; display: flex; align-items: center; gap: 6px; transition: border-color .15s;
}
.hub-qna-btn:hover { border-color: #b72301; color: #b72301; }
.hub-qna-badge {
  font-size: 10px; font-weight: 700; padding: 1px 6px;
  border-radius: 999px; background: #e9e8e7; color: rgba(27,28,28,0.5);
}
.hub-qna-badge.has-items { background: #fde68a; color: #92400e; }
.hub-qna-body, .hub-pending-q-body { padding: 0 18px 14px; display: none; }
.hub-qna-item { padding: 10px 0; border-bottom: 1px solid #f5f3f3; }
.hub-qna-item:last-child { border-bottom: none; }
.hub-qna-item-head { display: flex; gap: 8px; align-items: baseline; margin-bottom: 4px; }
.hub-qna-role { font-size: 10px; font-weight: 700; color: rgba(27,28,28,0.4); }
.hub-qna-item.admin .hub-qna-role { color: #0071e3; }
.hub-qna-time { font-size: 10px; color: rgba(27,28,28,0.3); }
.hub-qna-text { font-size: 13px; color: #1b1c1c; white-space: pre-wrap; }
.hub-qna-form { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.hub-qna-form textarea { width: 100%; padding: 10px 12px; border: 1.5px solid #e9e8e7; border-radius: 8px; font-size: 13px; font-family: inherit; resize: vertical; min-height: 72px; outline: none; transition: border-color .15s; }
.hub-qna-form textarea:focus { border-color: #b72301; }
.hub-qna-send-btn { align-self: flex-end; padding: 7px 18px; background: #1b1c1c; color: #fff; border: none; border-radius: 6px; font-size: 12px; font-weight: 700; cursor: pointer; }
.hub-qna-send-btn:disabled { opacity: 0.5; cursor: default; }
.hub-qna-status { font-size: 11px; color: rgba(27,28,28,0.4); padding: 4px 18px; }
/* Pending questions */
.hub-pending-q-item { padding: 10px 0; border-bottom: 1px solid #f5f3f3; }
.hub-pending-q-item:last-child { border-bottom: none; }
.hub-pending-q-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.hub-pending-q-idx { font-size: 11px; font-weight: 700; color: #b72301; }
.hub-pending-q-time { font-size: 10px; color: rgba(27,28,28,0.3); }
.hub-pending-q-text { font-size: 13px; color: #1b1c1c; }
.hub-pending-q-hint { font-size: 11px; color: rgba(27,28,28,0.4); margin-bottom: 10px; }
.hub-item-actions { display: flex; gap: 8px; margin-top: 6px; }
.hub-item-actions button { font-size: 11px; padding: 3px 10px; border-radius: 4px; border: 1px solid #e9e8e7; background: #fff; color: rgba(27,28,28,0.5); cursor: pointer; }
.hub-item-actions button:hover { border-color: #b72301; color: #b72301; }
.hub-tz { color: #dc2626; }
.hub-inline-empty { font-size: 12px; color: rgba(27,28,28,0.3); padding: 8px 0; }
.hub-product-placeholder-icon { font-size: 22px; }
.hub-orders-empty-icon { font-size: 36px; margin-bottom: 12px; }
.hub-orders-load-failed { text-align: center; padding: 32px; color: rgba(27,28,28,0.3); font-size: 13px; }

/* ── Hub Sub-Tabs (coupon / wishlist) ──────────────────────────────────────── */
.hub-ctab-btn { border: none; cursor: pointer; }
.hub-ctab-btn:focus { outline: none; }
.hub-ctab-btn:focus-visible {
  outline:2px solid rgba(183,35,1,.55) !important;
  outline-offset:2px;
  box-shadow:0 0 0 4px rgba(183,35,1,.12) !important;
}
.hub-ctab-active   { background: #fff !important; color: #b72301 !important; box-shadow: 0 1px 6px rgba(0,0,0,.10) !important; }
.hub-ctab-inactive { background: transparent !important; color: rgba(27,28,28,0.38) !important; }

.hub-coupons-heading{
  align-items:flex-end;
}

.hub-coupon-rule-note{
  padding:12px 14px;
  border:1px solid rgba(180,138,58,.32);
  border-radius:12px;
  background:rgba(255,250,244,.86);
  color:rgba(58,43,31,.78);
  font-size:13px;
  line-height:1.75;
}

.hub-coupon-redeem{
  padding:10px;
  border:1px solid rgba(183,35,1,.12);
  border-radius:18px;
  background:linear-gradient(135deg,rgba(255,255,255,.96),rgba(255,249,243,.92));
  box-shadow:0 18px 38px rgba(47,34,22,.06);
}

.hub-coupon-input{
  min-height:46px;
  border-radius:13px !important;
  border-color:rgba(183,35,1,.18) !important;
  background:#fff !important;
  font-weight:800;
  letter-spacing:.08em;
}

.hub-coupon-input:focus{
  border-color:rgba(183,35,1,.42) !important;
  box-shadow:0 0 0 4px rgba(183,35,1,.08) !important;
}

.hub-coupon-redeem-btn{
  min-height:46px;
  min-width:104px;
  border-radius:13px !important;
  background:linear-gradient(135deg,#b72301,#8f1d04) !important;
  box-shadow:0 12px 24px rgba(183,35,1,.18);
}

.hub-coupon-redeem-btn:disabled{
  opacity:.68;
  cursor:not-allowed;
  box-shadow:none;
}

.hub-coupon-tabs{
  border:1px solid rgba(27,28,28,.06);
  background:#f3efea !important;
}

.hub-coupon-list{
  display:grid;
  gap:16px;
}

.hub-coupon-card {
  position:relative;
  display:grid;
  grid-template-columns:56px minmax(0,1fr) auto;
  gap:18px;
  align-items:start;
  min-height:132px;
  overflow:hidden;
  border:1px solid rgba(183,35,1,.08);
  border-radius:20px;
  background:
    radial-gradient(circle at top left,rgba(242,231,207,.62),transparent 38%),
    linear-gradient(135deg,#fff 0%,#fffaf4 100%);
  box-shadow:0 22px 50px rgba(47,34,22,.08),0 2px 8px rgba(47,34,22,.04);
  padding:22px;
}

.hub-coupon-card--used,
.hub-coupon-card--expired {
  opacity:.68;
  filter:saturate(.78);
}

.hub-coupon-card::after{
  content:"";
  position:absolute;
  top:18px;
  bottom:18px;
  right:118px;
  border-right:1px dashed rgba(183,35,1,.16);
  pointer-events:none;
}

.hub-coupon-symbol {
  display:flex;
  align-items:center;
  justify-content:center;
  width:56px;
  height:56px;
  border-radius:18px;
  color:#fff;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.45),0 14px 28px rgba(47,34,22,.10);
}

.hub-coupon-symbol--deity {
  background:linear-gradient(135deg,#c64a24,#8f1d04);
}

.hub-coupon-symbol--all {
  background:linear-gradient(135deg,#4e8055,#1f5b39);
}

.hub-coupon-symbol--ship {
  background:linear-gradient(135deg,#6c7892,#42526d);
}

.hub-coupon-symbol--service {
  background:linear-gradient(135deg,#8a6b3a,#5d4320);
}

.hub-coupon-icon {
  display:block;
  font-size:26px;
  line-height:1;
  font-variation-settings: 'FILL' 1, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

.hub-coupon-main {
  min-width:0;
  padding-right:16px;
}

.hub-coupon-title {
  min-width:0;
}

.hub-coupon-kicker {
  color:rgba(27,28,28,.54);
  font-size:12px;
  font-weight:750;
  line-height:1.45;
  margin-bottom:5px;
}

.hub-coupon-code {
  overflow-wrap:anywhere;
  color:#1b1c1c;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size:18px;
  font-weight:850;
  letter-spacing:.13em;
  line-height:1.25;
}

.hub-coupon-amount {
  margin-top:10px;
  margin-bottom:12px;
  color:#b72301;
  font-size:24px;
  font-weight:850;
  line-height:1.16;
}

.hub-coupon-details {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px 18px;
  margin:0;
  color:rgba(27,28,28,.58);
  font-size:12px;
  line-height:1.45;
}

.hub-coupon-details div{
  min-width:0;
}

.hub-coupon-details dt{
  color:rgba(27,28,28,.38);
  font-size:11px;
  font-weight:800;
  line-height:1.2;
  margin-bottom:2px;
}

.hub-coupon-details dd{
  margin:0;
  min-width:0;
  overflow-wrap:anywhere;
}

.hub-coupon-order-id {
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;
}

.hub-coupon-actions {
  position:relative;
  z-index:1;
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  align-self:stretch;
  min-width:86px;
}

.hub-coupon-badge {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:26px;
  border-radius:999px;
  padding:0 10px;
  font-size:11px;
  font-weight:850;
  line-height:1;
  white-space:nowrap;
}

.hub-coupon-badge--active {
  background:#fff2d9;
  color:#8a5a08;
  border:1px solid rgba(202,143,42,.24);
}

.hub-coupon-badge--muted {
  background:#efeeee;
  color:rgba(27,28,28,.52);
  border:1px solid rgba(27,28,28,.08);
}

.hub-coupon-copy {
  min-height:34px;
  border:1px solid rgba(183,35,1,.18);
  border-radius:999px;
  background:#fff;
  color:#8f1d04;
  cursor:pointer;
  padding:0 14px;
  font-size:12px;
  font-weight:850;
  line-height:1;
  text-decoration:none;
  transition:border-color .18s ease,color .18s ease,background-color .18s ease,box-shadow .18s ease;
}

.hub-coupon-copy:hover,
.hub-coupon-copy:focus-visible {
  border-color:#b72301;
  color:#b72301;
  background:#fff8f5;
  box-shadow:0 8px 18px rgba(183,35,1,.10);
  outline:none;
}

.hub-coupon-state{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  min-height:220px;
  border:1px solid rgba(183,35,1,.08);
  border-radius:20px;
  background:linear-gradient(135deg,#fff,#fff9f2);
  box-shadow:0 18px 38px rgba(47,34,22,.06);
  padding:34px;
  text-align:left;
}

.hub-coupon-state-icon{
  display:flex;
  align-items:center;
  justify-content:center;
  width:52px;
  height:52px;
  flex:0 0 52px;
  border-radius:18px;
  background:#f5ebe7;
  color:#b72301;
  font-size:26px;
  font-variation-settings:'FILL' 1,'wght' 300,'GRAD' 0,'opsz' 24;
}

.hub-coupon-state--loading .hub-coupon-state-icon{
  background:#eef1f7;
  color:#42526d;
}

.hub-coupon-state--error .hub-coupon-state-icon{
  background:#fff1f1;
  color:#b91c1c;
}

.hub-coupon-state-title{
  color:#1b1c1c;
  font-size:16px;
  font-weight:850;
  line-height:1.4;
}

.hub-coupon-state-text{
  margin-top:4px;
  color:rgba(27,28,28,.48);
  font-size:13px;
  line-height:1.55;
}

@media (max-width: 640px) {
  .hub-coupons-heading{
    margin-bottom:16px;
  }

  .hub-coupon-redeem{
    flex-direction:column;
    padding:8px;
    border-radius:18px;
    margin-bottom:18px !important;
  }

  .hub-coupon-redeem-btn{
    width:100%;
  }

  .hub-coupon-tabs{
    margin-bottom:18px !important;
  }

  .hub-coupon-card {
    grid-template-columns:44px minmax(0,1fr);
    gap:12px;
    min-height:0;
    border-radius:18px;
    padding:16px;
  }

  .hub-coupon-card::after{
    display:none;
  }

  .hub-coupon-symbol{
    width:44px;
    height:44px;
    border-radius:15px;
  }

  .hub-coupon-icon{
    font-size:23px;
  }

  .hub-coupon-main{
    padding-right:0;
  }

  .hub-coupon-code {
    font-size:16px;
    letter-spacing:.1em;
  }

  .hub-coupon-amount {
    font-size:21px;
    margin-top:9px;
    margin-bottom:10px;
  }

  .hub-coupon-details {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:7px 12px;
    font-size:11.5px;
  }

  .hub-coupon-details dt{
    font-size:10px;
  }

  .hub-coupon-actions {
    grid-column:1 / -1;
    flex-direction:row;
    align-items:center;
    justify-content:space-between;
    min-width:0;
    align-self:auto;
    border-top:1px solid rgba(183,35,1,.08);
    padding-top:12px;
  }

  .hub-coupon-copy{
    min-width:84px;
  }

  .hub-coupon-state{
    align-items:flex-start;
    justify-content:flex-start;
    min-height:180px;
    padding:24px;
    border-radius:18px;
  }

  .hub-coupon-state-icon{
    width:46px;
    height:46px;
    flex-basis:46px;
  }
}

/* ── Wishlist Cards ─────────────────────────────────────────────────────────── */
.hub-wish-card {
  background: #fff; border-radius: 16px; overflow: hidden;
  box-shadow: 0 2px 12px rgba(15,23,42,.07), 0 1px 3px rgba(15,23,42,.05);
  display: flex; flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}
.hub-wish-card:hover {
  box-shadow: 0 8px 28px rgba(15,23,42,.13), 0 2px 6px rgba(15,23,42,.07);
  transform: translateY(-2px);
}
/* cover */
.hub-wish-cover {
  position: relative; width: 100%; padding-top: 72%; /* ~4:3 ratio */
  background: #f1f5f9; overflow: hidden; flex-shrink: 0;
}
.hub-wish-cover-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; object-position: center center; display: block;
  transition: transform .45s ease;
}
.hub-wish-card:hover .hub-wish-cover-img { transform: scale(1.04); }
.hub-wish-cover-placeholder {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
}
/* rating badge (food) */
.hub-wish-rating {
  position: absolute; top: 10px; right: 10px;
  background: rgba(255,251,235,.95); border: 1px solid #fcd34d;
  color: #92400e; border-radius: 999px;
  font-size: 11px; font-weight: 800; padding: 3px 9px;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  backdrop-filter: blur(4px);
}
/* body */
.hub-wish-body {
  padding: 14px 16px 10px; flex: 1; display: flex; flex-direction: column; gap: 6px;
}
.hub-wish-name {
  font-size: 14px; font-weight: 700; color: #0f172a; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hub-wish-meta   { display: flex; gap: 5px; flex-wrap: wrap; align-items: center; }
.hub-wish-chip   { font-size: 11px; padding: 3px 8px; border-radius: 999px; background: #f1f5f9; color: #475569; font-weight: 600; }
.hub-wish-chip--area { background: #fff7ed; color: #9a3412; }
.hub-wish-price  { font-size: 13px; font-weight: 800; color: #b72301; }
.hub-wish-addr   { font-size: 11px; color: #94a3b8; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
/* footer */
.hub-wish-foot {
  padding: 0 12px 12px; margin-top: auto;
}
/* 查看詳情 button */
.hub-wish-detail-btn {
  display: block; width: 100%; padding: 9px 0; border-radius: 10px;
  border: 1.5px solid #e2e8f0; background: #fff; color: #475569;
  font-size: 12px; font-weight: 700; cursor: pointer; letter-spacing: .4px;
  transition: border-color .18s, color .18s, background .18s, box-shadow .18s;
}
.hub-wish-detail-btn:hover {
  border-color: #b72301; color: #b72301; background: #fff7f2;
  box-shadow: 0 4px 12px rgba(183,35,1,.1);
}

/* ── Detail Dialog (food / temple / product) ───────────────────────────────── */
#dlgHubDetail {
  border: none; border-radius: 18px; padding: 0;
  max-width: 560px; width: 92%;
  box-shadow: 0 20px 48px rgba(0,0,0,.28);
  max-height: 92vh; overflow: hidden;
}
#dlgHubDetail::backdrop { background: rgba(15,23,42,.5); backdrop-filter: blur(4px); }
/* modal content shared with food-map / temple-map style */
.modal-body   { padding: 18px; display: grid; gap: 14px; background: #fff; max-height: 88vh; overflow: auto; border-radius: 18px; }
.modal-head   { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.modal-head-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.modal-title  { font-size: 18px; font-weight: 800; color: #0f172a; line-height: 1.3; }
.modal-close  { border: none; background: #f1f5f9; border-radius: 10px; padding: 6px 12px; cursor: pointer; color: #0f172a; font-weight: 700; font-size: 12px; white-space: nowrap; }
.modal-close:hover { background: #e2e8f0; }
.modal-tags   { display: flex; gap: 6px; flex-wrap: wrap; }
.modal-chip   { background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; border-radius: 8px; padding: 5px 10px; font-size: 12px; font-weight: 600; }
.modal-embed  { border-radius: 14px; overflow: hidden; background: #f8fafc; border: 1px solid #e2e8f0; }
.modal-embed-inner { max-width: 420px; margin: 0 auto; }
.modal-embed iframe { width: 100%; aspect-ratio: 9/16; border: 0; display: block; background: #fff; }
.modal-embed.yt iframe { aspect-ratio: 16/9; }
.modal-section { display: grid; gap: 6px; font-size: 13px; color: #334155; line-height: 1.7; }
.modal-section strong { color: #0f172a; }
.modal-gallery { display: grid; gap: 8px; }
.modal-gallery-title { font-size: 12px; font-weight: 700; color: #0f172a; }
.modal-gallery-grid  { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); }
.modal-gallery-thumb { border: none; background: none; padding: 0; border-radius: 10px; overflow: hidden; border: 1px solid #e2e8f0; cursor: pointer; }
.modal-gallery-thumb img { width: 100%; height: 72px; object-fit: cover; display: block; transition: transform .2s; }
.modal-gallery-thumb:hover img { transform: scale(1.05); }
.modal-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.modal-actions .btn { flex: 1; min-width: 140px; }
/* btn styles (used inside modal-actions) */
.modal-body .btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 14px; border-radius: 12px; border: 1px solid #e2e8f0;
  background: #fff; font-weight: 700; cursor: pointer; text-decoration: none;
  color: #0f172a; font-family: inherit; font-size: 13px; letter-spacing: .2px;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.modal-body .btn:hover   { transform: translateY(-1px); box-shadow: 0 10px 18px rgba(15,23,42,.12); border-color: #cbd5e1; }
.modal-body .btn.primary { background: linear-gradient(135deg,#ff6a3d 0%,#ff9a2f 100%); color: #fff; border-color: transparent; box-shadow: 0 12px 24px rgba(255,106,61,.28); }
.modal-body .btn.primary:hover { box-shadow: 0 14px 28px rgba(255,106,61,.32); }
.modal-body .btn.ghost   { background: #fff7f2; border-color: #ffd9cc; color: #d9480f; }
.modal-body .btn.pill    { border-radius: 999px; padding: 7px 12px; font-size: 12px; flex: 0 0 auto; }
/* product-specific */
.hub-d-big-wrap { border-radius: 14px; overflow: hidden; background: #f8fafc; border: 1px solid #e2e8f0; }
.hub-d-big      { width: 100%; max-height: 300px; object-fit: contain; display: block; }
.hub-d-thumbs   { display: flex; gap: 8px; flex-wrap: wrap; }
.hub-d-thumb    { border: none; padding: 0; border-radius: 10px; overflow: hidden; border: 2px solid #e2e8f0; cursor: pointer; width: 60px; height: 60px; flex-shrink: 0; transition: border-color .15s; }
.hub-d-thumb.is-active { border-color: #b72301; }
.hub-d-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hub-d-price-wrap { display: flex; align-items: baseline; gap: 10px; }
.hub-d-price-old  { font-size: 13px; color: #94a3b8; text-decoration: line-through; }
.hub-d-price-cur  { font-size: 22px; font-weight: 800; color: #b72301; }
.hub-d-select {
  width: 100%; padding: 9px 12px; border-radius: 10px;
  border: 1px solid #e2e8f0; background: #fff; font-size: 13px;
  color: #0f172a; font-family: inherit; cursor: pointer;
}
/* lightbox */
#dlgHubDetailLb { border: none; border-radius: 0; padding: 0; background: transparent; max-width: 100vw; width: 100vw; max-height: 100vh; }
#dlgHubDetailLb::backdrop { background: rgba(15,23,42,.88); }
.hub-det-lb-inner { position: relative; display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 20px; }
#dlgHubDetailLbImg { max-width: min(90vw,900px); max-height: 86vh; border-radius: 16px; object-fit: contain; }
#dlgHubDetailLbClose { position: fixed; top: 16px; right: 16px; border: none; border-radius: 999px; padding: 10px 16px; background: rgba(255,255,255,.92); color: #0f172a; font-size: 12px; font-weight: 800; cursor: pointer; z-index: 10; }

/* ── Hub Store Dialog ──────────────────────────────────────────────────────── */
.hub-dialog {
  border: none;
  border-radius: 16px;
  padding: 0;
  box-shadow: 0 8px 40px rgba(27,28,28,0.18);
  width: min(420px, 92vw);
  max-height: 90vh;
  overflow: hidden;
}
.hub-dialog::backdrop {
  background: rgba(27,28,28,0.45);
  backdrop-filter: blur(4px);
}
.hub-dialog-inner {
  display: flex;
  flex-direction: column;
}
.hub-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid rgba(27,28,28,0.08);
}
.hub-dialog-close {
  font-size: 20px;
  color: rgba(27,28,28,0.4);
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px;
  line-height: 1;
  border-radius: 50%;
  transition: color 0.15s, background 0.15s;
}
.hub-dialog-close:hover,
.hub-dialog-close:focus-visible {
  color: rgba(27,28,28,0.9);
  background: rgba(27,28,28,0.06);
}
.hub-dialog-close:focus-visible {
  outline:2px solid rgba(183,35,1,.55);
  outline-offset:3px;
  box-shadow:0 0 0 4px rgba(183,35,1,.12);
}
.hub-dialog-body {
  padding: 20px 24px 24px;
}

/* ── Ritual Progress Preview ──────────────────────────────────────────────── */
.hub-journey-preview {
  margin: -24px 0 34px;
}
.hub-journey-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(280px, .76fr);
  gap: 20px;
  overflow: hidden;
  padding: 26px 28px;
  border: 1px solid rgba(122,75,43,.18);
  border-radius: 22px;
  background:
    radial-gradient(circle at 94% 12%, rgba(183,151,91,.16), transparent 28%),
    linear-gradient(135deg,#fffaf2 0%,#f6eee3 58%,#efe1cf 100%);
  box-shadow: 0 18px 52px rgba(66,43,25,.08);
  color: #2b1b12;
}
.hub-journey-shell--loading,
.hub-journey-shell--empty {
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center;
}
.hub-journey-shell--loading {
  min-height: 136px;
}
.hub-journey-orbit {
  position: absolute;
  right: -92px;
  top: -130px;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(122,75,43,.13);
  border-radius: 50%;
}
.hub-journey-orbit::before,
.hub-journey-orbit::after {
  content: "";
  position: absolute;
  inset: 38px;
  border: 1px solid rgba(122,75,43,.1);
  border-radius: 50%;
}
.hub-journey-orbit::after {
  inset: 82px;
}
.hub-journey-main,
.hub-journey-side,
.hub-journey-empty-copy,
.hub-journey-mark {
  position: relative;
  z-index: 1;
}
.hub-journey-kicker {
  margin-bottom: 8px;
  color: #7a4b2b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.hub-journey-main h2,
.hub-journey-empty-copy h2 {
  margin: 0;
  max-width: 660px;
  color: #26170f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(27px, 3.5vw, 40px);
  line-height: 1.1;
  letter-spacing: 0;
}
.hub-journey-empty-copy h2 {
  font-size: clamp(24px, 3vw, 34px);
}
.hub-journey-sub,
.hub-journey-empty-copy p {
  max-width: 620px;
  margin: 12px 0 0;
  color: rgba(43,27,18,.68);
  font-size: 15px;
  line-height: 1.72;
}
.hub-journey-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.hub-journey-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 10px;
  border: 1px solid rgba(122,75,43,.16);
  border-radius: 999px;
  background: rgba(255,253,249,.58);
  color: rgba(43,27,18,.72);
  font-size: 12px;
  font-weight: 700;
}
.hub-journey-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.hub-journey-primary,
.hub-journey-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform .16s ease, background .16s ease, border-color .16s ease, color .16s ease;
}
.hub-journey-primary {
  border: 1px solid #6c4024;
  background: #6c4024;
  color: #fffdf9;
  box-shadow: 0 12px 24px rgba(108,64,36,.16);
}
.hub-journey-secondary {
  border: 1px solid rgba(108,64,36,.32);
  background: rgba(255,253,249,.56);
  color: #6c4024;
}
.hub-journey-primary:hover,
.hub-journey-secondary:hover {
  transform: translateY(-1px);
}
.hub-journey-primary:disabled,
.hub-journey-secondary:disabled {
  cursor: not-allowed;
  opacity: .48;
  transform: none;
  box-shadow: none;
}
.hub-journey-fallback,
.hub-journey-progress-note {
  margin: 12px 0 0;
  color: rgba(43,27,18,.55);
  font-size: 12px;
  line-height: 1.65;
}
.hub-journey-report-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.hub-journey-report-links span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 9px;
  border: 1px solid rgba(122,75,43,.14);
  border-radius: 999px;
  background: rgba(255,253,249,.48);
  color: rgba(43,27,18,.58);
  font-size: 11px;
  font-weight: 700;
}
.hub-journey-side {
  display: grid;
  align-content: start;
  gap: 10px;
}
.hub-journey-progress-card {
  display: grid;
  grid-template-columns: 64px minmax(0,1fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(122,75,43,.14);
  border-radius: 18px;
  background: rgba(255,253,249,.64);
}
.hub-journey-ring {
  --journey-progress: 0;
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle closest-side,#fffaf2 73%,transparent 74%),
    conic-gradient(#9a7651 calc(var(--journey-progress) * 1%), rgba(154,118,81,.14) 0);
  color: #6c4024;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 700;
}
.hub-journey-ring--p0 { --journey-progress: 0; }
.hub-journey-ring--p10 { --journey-progress: 10; }
.hub-journey-ring--p20 { --journey-progress: 20; }
.hub-journey-ring--p30 { --journey-progress: 30; }
.hub-journey-ring--p40 { --journey-progress: 40; }
.hub-journey-ring--p50 { --journey-progress: 50; }
.hub-journey-ring--p60 { --journey-progress: 60; }
.hub-journey-ring--p70 { --journey-progress: 70; }
.hub-journey-ring--p80 { --journey-progress: 80; }
.hub-journey-ring--p90 { --journey-progress: 90; }
.hub-journey-ring--p100 { --journey-progress: 100; }
.hub-journey-progress-card strong {
  display: block;
  color: #2b1b12;
  font-size: 14px;
  line-height: 1.45;
}
.hub-journey-progress-card p {
  margin: 5px 0 0;
  color: rgba(43,27,18,.56);
  font-size: 12px;
  line-height: 1.55;
}
.hub-journey-task-preview {
  display: grid;
  gap: 0;
  padding: 2px 0;
}
.hub-journey-task-row,
.hub-journey-task-empty {
  display: grid;
  grid-template-columns: 18px minmax(0,1fr);
  gap: 9px;
  padding: 9px 2px 10px;
  border: 0;
  border-bottom: 1px solid rgba(122,75,43,.12);
  border-radius: 0;
  background: transparent;
}
.hub-journey-task-row:last-child {
  border-bottom: 0;
}
.hub-journey-task-empty {
  grid-template-columns: 28px minmax(0,1fr);
  align-items: start;
  padding: 12px 14px;
  border: 1px solid rgba(122,75,43,.12);
  border-radius: 15px;
  background: rgba(255,253,249,.48);
}
.hub-journey-task-empty .material-symbols-outlined {
  color: rgba(108,64,36,.62);
  font-size: 22px;
}
.hub-journey-task-dot {
  width: 6px;
  height: 6px;
  margin: 10px auto 0;
  border-radius: 50%;
  background: #9a7651;
  box-shadow: 0 0 0 4px rgba(154,118,81,.1);
}
.hub-journey-task-cat {
  display: inline-flex;
  margin-bottom: 4px;
  color: rgba(108,64,36,.76);
  font-size: 11px;
  font-weight: 800;
}
.hub-journey-task-row p,
.hub-journey-task-empty p {
  margin: 0;
  color: rgba(43,27,18,.75);
  font-size: 13px;
  line-height: 1.65;
}
.hub-journey-task-empty strong {
  display: block;
  margin-bottom: 3px;
  color: #2b1b12;
  font-size: 13px;
}
.hub-journey-legacy-note {
  margin: 0;
  color: rgba(43,27,18,.52);
  font-size: 12px;
  line-height: 1.55;
}
.hub-journey-task-preview--v2 {
  gap: 10px;
}
.hub-journey-task-row--v2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(122,75,43,.13);
  border-radius: 15px;
  background: rgba(255,253,249,.58);
}
.hub-journey-task-v2-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.hub-journey-task-row--v2 h3 {
  margin: 0;
  color: #2b1b12;
  font-size: 15px;
  line-height: 1.42;
  letter-spacing: 0;
}
.hub-journey-task-row--v2 p {
  display: grid;
  gap: 2px;
  margin: 0;
  color: rgba(43,27,18,.72);
  font-size: 13px;
  line-height: 1.65;
}
.hub-journey-task-row--v2 p strong {
  color: rgba(108,64,36,.8);
  font-size: 11px;
  line-height: 1.3;
}
.hub-journey-task-note {
  color: rgba(43,27,18,.58) !important;
}
.hub-journey-task-source {
  padding-top: 8px;
  border-top: 1px solid rgba(122,75,43,.1);
  color: rgba(43,27,18,.48) !important;
}
.hub-journey-task-pace {
  display: inline-flex;
  color: rgba(43,27,18,.48);
  font-size: 11px;
  font-weight: 800;
}
.hub-journey-inline-link {
  justify-self: start;
  padding: 0;
  border: 0;
  background: transparent;
  color: #7a4b2b;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}
.hub-journey-inline-link:hover {
  color: #5e321d;
}
.hub-journey-mark {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border: 1px solid rgba(122,75,43,.17);
  border-radius: 18px;
  background: rgba(255,253,249,.62);
  color: #7a4b2b;
}
.hub-journey-loading {
  color: rgba(43,27,18,.58);
  font-size: 14px;
}

@media (max-width: 900px) {
  .hub-journey-preview {
    margin: -16px 0 30px;
  }
  .hub-journey-shell,
  .hub-journey-shell--loading,
  .hub-journey-shell--empty {
    grid-template-columns: 1fr;
    padding: 18px 20px;
  }
  .hub-journey-progress-card {
    grid-template-columns: 58px minmax(0,1fr);
  }
  .hub-journey-ring {
    width: 52px;
    height: 52px;
    font-size: 17px;
  }
  .hub-journey-main h2 {
    font-size: clamp(24px, 7.3vw, 30px);
    line-height: 1.06;
  }
  .hub-journey-sub {
    margin-top: 9px;
    font-size: 14px;
    line-height: 1.58;
  }
  .hub-journey-meta {
    margin-top: 12px;
  }
  .hub-journey-actions {
    margin-top: 14px;
  }
  .hub-journey-report-links {
    margin-top: 8px;
  }
  .hub-journey-progress-card {
    grid-template-columns: 54px minmax(0,1fr);
    padding: 11px;
  }
  .hub-journey-task-row {
    padding: 6px 0 7px;
  }
  .hub-journey-task-cat {
    margin-bottom: 2px;
  }
  .hub-journey-task-row p {
    line-height: 1.5;
  }
  .hub-journey-task-preview .hub-journey-task-row:nth-child(n+2),
  .hub-journey-progress-note {
    display: none;
  }
}

/* Compact member overview cards */
.hub-journey-preview {
  margin: -18px 0 24px;
}
.hub-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(190px, .5fr) minmax(190px, .5fr);
  gap: 12px;
  align-items: stretch;
}
.hub-overview-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(122,75,43,.15);
  border-radius: 18px;
  background: #fffaf4;
  color: #2b1b12;
  box-shadow: 0 10px 30px rgba(66,43,25,.055);
}
.hub-journey-card {
  display: grid;
  gap: 10px;
  min-height: 0;
  padding: 18px 20px;
  background:
    radial-gradient(circle at 100% 0%, rgba(183,151,91,.14), transparent 34%),
    linear-gradient(135deg,#fffaf4 0%,#f7efe5 100%);
}
.hub-journey-card::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -86px;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(122,75,43,.12);
  border-radius: 50%;
}
.hub-journey-card > * {
  position: relative;
  z-index: 1;
}
.hub-journey-card-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
}
.hub-journey-card h2,
.hub-journey-detail h2 {
  margin: 0;
  color: #26170f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  line-height: 1.18;
  letter-spacing: 0;
}
.hub-journey-card h2 {
  font-size: 24px;
}
.hub-journey-card p,
.hub-journey-card-main p {
  max-width: 540px;
  margin: 5px 0 0;
  color: rgba(43,27,18,.64);
  font-size: 13px;
  line-height: 1.6;
}
.hub-journey-card .hub-journey-meta {
  margin-top: 0;
}
.hub-journey-card .hub-journey-meta span {
  min-height: 24px;
  padding: 4px 9px;
  background: rgba(255,253,249,.58);
  font-size: 11px;
}
.hub-journey-ring--compact {
  width: 52px;
  height: 52px;
  font-size: 14px;
  letter-spacing: 0;
}
.hub-journey-card-progress {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid rgba(122,75,43,.12);
  border-radius: 13px;
  background: rgba(255,253,249,.56);
}
.hub-journey-card-progress strong {
  color: #2b1b12;
  font-size: 13px;
  line-height: 1.4;
}
.hub-journey-card-progress span {
  color: rgba(43,27,18,.55);
  font-size: 12px;
  line-height: 1.5;
}
.hub-journey-card-task {
  display: grid;
  gap: 2px;
  padding-left: 10px;
  border-left: 2px solid rgba(154,118,81,.42);
}
.hub-journey-card-task p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: rgba(43,27,18,.72);
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}
.hub-journey-actions--compact {
  margin-top: 0;
}
.hub-journey-primary--compact,
.hub-journey-secondary--compact {
  min-height: 36px;
  padding: 9px 14px;
  font-size: 12px;
}
.hub-journey-tertiary--compact {
  min-height: 36px;
  padding: 9px 0;
  border: 0;
  background: transparent;
  color: rgba(108,64,36,.78);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
}
.hub-journey-tertiary--compact:hover {
  color: #6c4024;
}
.hub-overview-card--quiet {
  display: grid;
  grid-template-columns: 32px minmax(0,1fr);
  gap: 10px;
  align-self: start;
  align-content: start;
  min-height: 128px;
  padding: 15px;
  background: #fffdf8;
}
.hub-overview-card--quiet > .material-symbols-outlined,
.hub-overview-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 11px;
  background: rgba(154,118,81,.1);
  color: #7a4b2b;
  font-size: 20px;
}
.hub-overview-card--quiet strong {
  display: block;
  color: #2b1b12;
  font-size: 13px;
  line-height: 1.35;
}
.hub-overview-card--quiet p {
  margin: 3px 0 0;
  color: rgba(43,27,18,.52);
  font-size: 12px;
  line-height: 1.45;
}
.hub-overview-card--quiet button {
  grid-column: 2;
  justify-self: start;
  margin-top: 2px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #7a4b2b;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.hub-journey-card--empty {
  grid-template-columns: 42px minmax(0,1fr) auto;
  align-items: center;
  min-height: 132px;
}
.hub-journey-card--loading {
  grid-column: 1 / -1;
  min-height: 104px;
  align-content: center;
}
.hub-journey-dialog {
  width: min(680px, calc(100vw - 32px));
  max-height: min(760px, calc(100vh - 48px));
  border: 0;
  border-radius: 22px;
  background: #fffaf4;
  color: #2b1b12;
  box-shadow: 0 30px 80px rgba(27,28,28,.22);
  overflow: hidden;
}
.hub-journey-dialog::backdrop {
  background: rgba(20,14,9,.42);
  backdrop-filter: blur(4px);
}
#dlgHubJourneyDetailBody {
  max-height: calc(min(760px, 100vh - 48px) - 54px);
  overflow: auto;
  padding: 20px 24px 24px;
}
.hub-journey-detail {
  display: grid;
  gap: 14px;
}
.hub-journey-detail-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
}
.hub-journey-actions--detail {
  margin-top: 0;
}
.hub-journey-progress-card--detail {
  display: block;
  padding: 13px 14px;
}
.hub-journey-task-preview--detail .hub-journey-task-row:nth-child(n+2),
.hub-journey-task-preview--detail + .hub-journey-progress-note {
  display: grid;
}

@media (max-width: 900px) {
  .hub-journey-preview {
    margin: -10px 0 18px;
  }
  .hub-overview-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 10px;
  }
  .hub-journey-card {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 0;
    padding: 16px;
    gap: 10px;
    border-radius: 17px;
  }
  .hub-journey-card::after {
    width: 150px;
    height: 150px;
    right: -70px;
    top: -80px;
  }
  .hub-journey-card h2 {
    font-size: 21px;
  }
  .hub-journey-card p {
    font-size: 12.5px;
    line-height: 1.52;
  }
  .hub-journey-card-head {
    gap: 12px;
  }
  .hub-journey-ring--compact {
    width: 46px;
    height: 46px;
    font-size: 12px;
  }
  .hub-journey-card .hub-journey-meta {
    gap: 6px;
  }
  .hub-journey-card-progress {
    padding: 8px 10px;
  }
  .hub-journey-card-task p {
    -webkit-line-clamp: 1;
  }
  .hub-journey-actions--compact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .hub-journey-primary--compact,
  .hub-journey-secondary--compact {
    width: 100%;
    min-height: 34px;
    padding: 8px 10px;
  }
  .hub-journey-tertiary--compact {
    grid-column: 1 / -1;
    justify-self: start;
    min-height: 28px;
    padding: 2px 0 0;
  }
  .hub-overview-card--quiet {
    grid-template-columns: 1fr;
    gap: 7px;
    min-height: 88px;
    padding: 12px;
  }
  .hub-overview-card--quiet p {
    display: none;
  }
  .hub-overview-card--quiet button {
    grid-column: 1;
    margin-top: 0;
  }
  .hub-journey-card--empty {
    grid-template-columns: 34px minmax(0,1fr);
  }
  .hub-journey-card--empty .hub-journey-primary--compact {
    grid-column: 1 / -1;
    width: auto;
    justify-self: start;
  }
  .hub-journey-dialog {
    width: min(94vw, 680px);
    max-height: calc(100vh - 32px);
  }
  #dlgHubJourneyDetailBody {
    max-height: calc(100vh - 90px);
    padding: 16px 16px calc(18px + env(safe-area-inset-bottom, 0px));
  }
  .hub-journey-detail-head {
    grid-template-columns: minmax(0,1fr);
  }
  .hub-journey-detail-head .hub-journey-ring {
    display: none;
  }
}

/* ── All readings library ───────────────────────────────────────────────── */
.hub-readings-dialog {
  width: min(900px, calc(100vw - 32px));
  max-height: min(820px, calc(100vh - 48px));
  border: 0;
  border-radius: 22px;
  background: #fffaf4;
  color: #2b1b12;
  box-shadow: 0 30px 80px rgba(27,28,28,.22);
  overflow: hidden;
}
.hub-readings-dialog::backdrop {
  background: rgba(20,14,9,.42);
  backdrop-filter: blur(4px);
}
.hub-readings-dialog-body {
  max-height: calc(min(820px, 100vh - 48px) - 54px);
  overflow: auto;
  padding: 20px 24px 24px;
}
.hub-readings-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
.hub-readings-head h2 {
  margin: 0;
  color: #26170f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: 0;
}
.hub-readings-head p,
.hub-readings-intro p {
  margin: 0;
  color: rgba(43,27,18,.58);
  font-size: 13px;
  line-height: 1.6;
}
.hub-readings-intro {
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(122,75,43,.12);
  border-radius: 14px;
  background: rgba(255,253,249,.62);
}
.hub-readings-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}
.hub-readings-filters::-webkit-scrollbar {
  display: none;
}
.hub-readings-filter {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 8px 13px;
  border: 1px solid rgba(122,75,43,.16);
  border-radius: 999px;
  background: rgba(255,253,249,.72);
  color: rgba(43,27,18,.68);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.hub-readings-filter.is-active {
  border-color: rgba(108,64,36,.34);
  background: #6c4024;
  color: #fffaf4;
}
.hub-readings-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.hub-reading-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(122,75,43,.14);
  border-radius: 16px;
  background:
    radial-gradient(circle at 100% 0%, rgba(183,151,91,.09), transparent 34%),
    #fffdf8;
  box-shadow: 0 8px 22px rgba(66,43,25,.05);
}
.hub-reading-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}
.hub-reading-teacher {
  color: rgba(108,64,36,.78);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hub-reading-card h3 {
  margin: 3px 0 0;
  color: #26170f;
  font-size: 15px;
  line-height: 1.35;
}
.hub-reading-card time {
  flex: 0 0 auto;
  color: rgba(43,27,18,.45);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.hub-reading-status-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.hub-reading-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(154,118,81,.1);
  color: rgba(43,27,18,.68);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
}
.hub-reading-status.is-ready {
  background: rgba(183,151,91,.16);
  color: #6c4024;
}
.hub-reading-status.is-muted {
  background: rgba(43,27,18,.055);
  color: rgba(43,27,18,.46);
}
.hub-reading-card p {
  margin: 0;
  color: rgba(43,27,18,.56);
  font-size: 12px;
  line-height: 1.6;
}
.hub-reading-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hub-reading-actions button,
.hub-readings-primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 9px 14px;
  border: 1px solid rgba(108,64,36,.18);
  border-radius: 10px;
  background: #6c4024;
  color: #fffaf4;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}
.hub-reading-actions button + button {
  background: transparent;
  color: #6c4024;
}
.hub-reading-actions button:disabled {
  cursor: not-allowed;
  opacity: .52;
}
.hub-readings-empty {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 44px 18px;
  text-align: center;
  color: rgba(43,27,18,.56);
}
.hub-readings-empty .material-symbols-outlined {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: rgba(154,118,81,.1);
  color: #7a4b2b;
}
.hub-readings-empty h3 {
  margin: 0;
  color: #26170f;
  font-size: 18px;
}
.hub-readings-empty p {
  max-width: 420px;
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
}

@media (max-width: 767px) {
  .hub-readings-dialog {
    width: min(94vw, 680px);
    max-height: calc(100vh - 32px);
  }
  .hub-readings-dialog-body {
    max-height: calc(100vh - 90px);
    padding: 16px 16px calc(22px + env(safe-area-inset-bottom, 0px));
  }
  .hub-readings-head {
    display: grid;
    gap: 8px;
    align-items: start;
  }
  .hub-readings-head h2 {
    font-size: 23px;
  }
  .hub-readings-list {
    grid-template-columns: 1fr;
  }
  .hub-reading-card {
    padding: 14px;
    border-radius: 15px;
  }
  .hub-reading-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .hub-reading-actions button {
    width: 100%;
  }
}

/* ── Summary Cards ────────────────────────────────────────────────────────── */
.hub-sum-card {
  background: #fff;
  border: 1px solid #e9e8e7;
  border-radius: 14px;
  padding: 20px 22px;
  margin-bottom: 12px;
  box-shadow: 0 2px 10px rgba(27,28,28,0.04);
}
.hub-sum-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.hub-sum-card-label {
  font-size: 14px;
  font-weight: 700;
  color: #1b1c1c;
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.3;
}
.hub-sum-card-meta {
  font-size: 11px;
  color: rgba(27,28,28,0.4);
  margin-top: 4px;
  letter-spacing: 0.02em;
}
.hub-sum-lock { font-size: 15px; }
.hub-sum-done { color: #16a34a; font-size: 17px; }
.hub-sum-view-btn {
  flex-shrink: 0;
  padding: 8px 16px;
  background: #b72301;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}
.hub-sum-view-btn:hover { background: #8c1800; }
.hub-sum-unlock-btn {
  flex-shrink: 0;
  display: inline-block;
  padding: 8px 16px;
  border: 1.5px solid #b72301;
  color: #b72301;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.hub-sum-unlock-btn:hover { background: #b72301; color: #fff; }
.hub-sum-preview-txt {
  font-size: 13px;
  color: rgba(27,28,28,0.5);
  line-height: 1.65;
  border-top: 1px solid rgba(27,28,28,0.06);
  padding-top: 12px;
}
.hub-sum-locked-body {
  border-top: 1px solid rgba(27,28,28,0.06);
  padding-top: 12px;
}
.hub-sum-preview-blur {
  font-size: 13px;
  color: rgba(27,28,28,0.4);
  line-height: 1.6;
  filter: blur(4px);
  user-select: none;
  pointer-events: none;
  max-height: 52px;
  overflow: hidden;
  margin-bottom: 10px;
}
.hub-sum-unlock-hint {
  font-size: 12px;
  color: rgba(27,28,28,0.45);
  font-weight: 600;
}
.hub-sum-lock-icon{
  font-size:15px;
  vertical-align:-3px;
}

/* Summary dialog with iframe */
#dlgHubSummary {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(94vw, 680px);
  height: min(88vh, 820px);
  max-width: min(94vw, 680px);
  max-height: min(88vh, 820px);
  padding: 0;
  border: none;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 72px rgba(0,0,0,0.22);
}
#dlgHubSummary::backdrop {
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
}

/* Summary card action row */
.hub-sum-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(27,28,28,0.06);
}
.hub-sum-task-btn {
  flex-shrink: 0;
  padding: 8px 16px;
  background: transparent;
  color: #b72301;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 8px;
  border: 1.5px solid #b72301;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.hub-sum-task-btn:hover { background: #b72301; color: #fff; }

/* ── Task Dialog ────────────────────────────────────────────────────────────── */
#dlgHubTask {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(94vw, 480px);
  height: min(86vh, 680px);
  max-width: min(94vw, 480px);
  max-height: min(86vh, 680px);
  padding: 0;
  border: none;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 72px rgba(0,0,0,0.22);
}
#dlgHubTask::backdrop { background: rgba(0,0,0,0.5); backdrop-filter: blur(4px); }
#dlgHubTaskBody { overflow-y: auto; height: calc(100% - 53px); padding: 16px 20px; }

.hub-task-section {
  border: 1px solid rgba(122,75,43,.16);
  background: linear-gradient(180deg,#fffaf2,#f6eee3);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 10px 24px rgba(66,43,25,.07);
  position: relative;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.hub-task-section.is-all-done { border-color:rgba(154,118,81,.32); background:linear-gradient(180deg,#fff7ea,#f2e4d2); box-shadow:0 12px 26px rgba(66,43,25,.1); }
.hub-task-section.is-gently-complete { box-shadow:0 14px 30px rgba(108,64,36,.14); }
.hub-task-head { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:10px; }
.hub-task-head strong { font-size:17px; line-height:1.25; color:#2b1b12; }
.hub-task-count { display:inline-flex; align-items:center; padding:5px 10px; border-radius:999px; border:1px solid rgba(154,118,81,.28); background:rgba(255,253,249,.7); color:#6c4024; font-size:12px; font-weight:800; }
.hub-task-progress-wrap { margin:2px 0 10px; padding:10px 12px; border-radius:12px; border:1px solid rgba(154,118,81,.18); background:rgba(255,253,249,.58); }
.hub-task-progress-top { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:7px; }
.hub-task-progress-label { font-size:12px; font-weight:800; color:#6c4024; }
.hub-task-progress-value { font-size:12px; font-weight:900; color:#7a4b2b; }
.hub-task-progress-track { height:8px; border-radius:999px; background:rgba(154,118,81,.16); overflow:hidden; box-shadow:inset 0 1px 2px rgba(66,43,25,.08); }
.hub-task-progress-bar { display:block; height:100%; width:0; border-radius:999px; background:linear-gradient(90deg,#b9975b 0%,#9a7651 58%,#6c4024 100%); box-shadow:none; transition:width .38s cubic-bezier(.22,.61,.36,1); }
.hub-task-progress-bar--p0 { width:0; }
.hub-task-progress-bar--p10 { width:10%; }
.hub-task-progress-bar--p20 { width:20%; }
.hub-task-progress-bar--p30 { width:30%; }
.hub-task-progress-bar--p40 { width:40%; }
.hub-task-progress-bar--p50 { width:50%; }
.hub-task-progress-bar--p60 { width:60%; }
.hub-task-progress-bar--p70 { width:70%; }
.hub-task-progress-bar--p80 { width:80%; }
.hub-task-progress-bar--p90 { width:90%; }
.hub-task-progress-bar--p100 { width:100%; }
.hub-task-empty { padding:24px; text-align:center; color:rgba(27,28,28,.4); font-size:13px; }
.hub-task-encourage { margin:8px 0 0; font-size:13px; line-height:1.6; color:rgba(43,27,18,.64); font-weight:700; }
.hub-task-list { list-style:none; margin:0; padding:0; display:grid; gap:9px; }
.hub-task-item { display:grid; grid-template-columns:30px minmax(0,1fr); gap:10px; align-items:flex-start; padding:4px 0; cursor:pointer; }
.hub-task-check { position:relative; width:24px; height:24px; display:inline-grid; place-items:center; margin-top:1px; }
.hub-task-check input { position:absolute; inset:0; margin:0; opacity:0; cursor:pointer; }
.hub-task-icon { width:24px; height:24px; border-radius:999px; border:2px solid #9a7651; background:#fffdf9; display:inline-flex; align-items:center; justify-content:center; transition:background .2s ease, box-shadow .2s ease, transform .2s ease; position:relative; }
.hub-task-icon::after { content:""; width:7px; height:12px; border-right:3px solid #fff; border-bottom:3px solid #fff; transform:rotate(45deg) scale(.35); opacity:0; transition:opacity .2s ease, transform .2s ease; }
.hub-task-check input:checked + .hub-task-icon { background:linear-gradient(180deg,#9a7651,#6c4024); box-shadow:0 6px 12px rgba(108,64,36,.18); transform:scale(1.02); }
.hub-task-check input:checked + .hub-task-icon::after { opacity:1; transform:rotate(45deg) scale(1); }
.hub-task-copy { display:grid; gap:4px; min-width:0; }
.hub-task-text { font-size:15px; line-height:1.7; color:#0f172a; word-break:break-word; }
.hub-task-time { font-size:11px; line-height:1.5; color:rgba(43,27,18,.42); font-weight:500; }
.hub-task-item.is-done .hub-task-text { color:#6c4024; text-decoration:none; }
.hub-task-item.is-done .hub-task-time { color:#6c4024; }
.hub-task-meta-row {
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  margin-top:2px;
}
.hub-task-category,
.hub-task-pace {
  display:inline-flex;
  align-items:center;
  min-height:22px;
  padding:3px 8px;
  border-radius:999px;
  font-size:11px;
  line-height:1.25;
  font-weight:800;
}
.hub-task-category {
  border:1px solid rgba(154,118,81,.24);
  background:rgba(255,253,249,.74);
  color:#6c4024;
}
.hub-task-pace {
  color:rgba(43,27,18,.5);
  background:rgba(122,75,43,.06);
}
.hub-task-v2-line,
.hub-task-v2-note,
.hub-task-v2-source,
.hub-task-legacy-note {
  display:grid;
  gap:2px;
  color:rgba(43,27,18,.68);
  font-size:13px;
  line-height:1.6;
}
.hub-task-v2-line strong {
  color:rgba(108,64,36,.78);
  font-size:11px;
  line-height:1.3;
}
.hub-task-v2-note,
.hub-task-legacy-note {
  color:rgba(43,27,18,.52);
}
.hub-task-v2-source {
  margin-top:2px;
  padding-top:7px;
  border-top:1px solid rgba(122,75,43,.1);
  color:rgba(43,27,18,.45);
  font-size:12px;
}
.hub-sum-dlg-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(27,28,28,0.07);
  background: #fbf9f9;
}

@media (max-width: 767px) {
  body {
    padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  }
  #dlgHubTask {
    width: min(94vw, 430px);
    height: min(82vh, 640px);
    max-height: min(82vh, 640px);
  }
  #dlgHubTaskBody {
    padding-bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  }
  .hub-task-section {
    padding: 14px;
  }
  .hub-task-time {
    font-size: 10.5px;
  }
}
#dlgHubSummaryFrame {
  width: 100%;
  height: calc(100% - 53px);
  border: none;
  display: block;
}

/* ── Avatar upload ────────────────────────────────────────────────────────── */
.hub-avatar-wrap {
  position: relative;
  cursor: pointer;
}
.hub-avatar-wrap:hover .hub-avatar-overlay {
  opacity: 1;
}
.hub-avatar-overlay {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
  color: #fff;
  gap: 3px;
  user-select: none;
  pointer-events: none;
}
.hub-avatar-overlay .material-symbols-outlined {
  font-size: 22px !important;
}
.hub-avatar-overlay-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

/* Stable panel geometry for lower CLS on account tabs */
#tab-orders,
#tab-wishlist,
#tab-coupons,
#tab-summary{
  min-height: 640px;
}
#ordersList{
  min-height: 420px;
}
#hubWishProducts,
#hubWishFood,
#hubWishTemple{
  min-height: 340px;
  align-content: start;
}
#couponsList{
  min-height: 320px;
}
#summaryList{
  min-height: 300px;
}

@media (max-width: 767px) {
  #tab-orders,
  #tab-wishlist,
  #tab-coupons,
  #tab-summary{
    min-height: 520px;
  }
  #ordersList{
    min-height: 340px;
  }
  #hubWishProducts,
  #hubWishFood,
  #hubWishTemple{
    min-height: 280px;
  }
  #couponsList{
    min-height: 260px;
  }
  #summaryList{
    min-height: 260px;
  }
  .hub-orders-heading{
    flex-direction:column;
    align-items:stretch;
    margin-bottom:14px;
  }
  .hub-orders-heading-right{
    justify-content:space-between;
  }
  .hub-orders-toolbar{
    grid-template-columns:1fr;
  }
  .hub-orders-filter .hub-ctab-btn{
    min-height:38px;
    padding:0 12px;
  }
  .hub-order-head{
    align-items:flex-start;
    flex-direction:column;
  }
  .hub-product-row{
    display:grid;
    grid-template-columns:64px minmax(0,1fr);
    align-items:start;
    gap:12px;
    padding:14px;
  }
  .hub-product-info{
    min-width:0;
    width:100%;
  }
  .hub-product-name{
    overflow-wrap:anywhere;
    word-break:normal;
    line-height:1.45;
    margin-bottom:8px;
  }
  .hub-product-tags{
    gap:6px;
  }
  .hub-tag{
    white-space:normal;
    line-height:1.25;
  }
  .hub-product-price{
    grid-column:2;
    width:auto;
    margin-left:0;
    justify-self:start;
    margin-top:4px;
    font-size:16px;
  }
  .hub-order-actions{
    display:grid;
    grid-template-columns:1fr 1fr;
  }
  .hub-order-action{
    width:100%;
  }
  .hub-profile-name-row{
    align-items:center;
    gap:8px;
  }
  .hub-profile-edit-inline{
    margin-left: 0;
    padding: 6px 12px !important;
    font-size: 11px !important;
  }
  .hub-profile-guardian.guardian-badge{
    width:auto;
    max-width:100%;
    padding:6px 10px;
    margin-bottom:0;
  }
  .hub-profile-guardian .guardian-meta strong{
    font-size:11px;
  }
  .hub-profile-guardian .guardian-sub{
    font-size:10px;
  }
  .hub-main-tabs {
    margin-left: -16px;
    margin-right: -16px;
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* Task 43 active surface: member hub order shell polish */
:root{
  --hub-order-card-border:rgba(183,35,1,.10);
  --hub-order-card-shadow:0 22px 54px rgba(47,34,22,.08),0 2px 8px rgba(47,34,22,.04);
  --hub-order-soft:#fff8f2;
  --hub-order-soft-2:#fffdf9;
}

#tab-orders{
  --order-shell-radius:22px;
}

.hub-orders-heading{
  align-items:center;
  padding:14px 16px;
  border:1px solid rgba(183,35,1,.08);
  border-radius:var(--order-shell-radius);
  background:linear-gradient(135deg,#fff,#fffaf5);
  box-shadow:0 16px 36px rgba(47,34,22,.06);
}

.hub-orders-heading h2{
  font-size:24px;
  line-height:1.2;
}

.hub-orders-heading-right{
  gap:10px;
}

#ordersTotalLabel{
  min-height:30px;
  display:inline-flex;
  align-items:center;
  padding:0 10px;
  border-radius:999px;
  background:#fff;
  border:1px solid rgba(183,35,1,.10);
  color:rgba(27,28,28,.52) !important;
  font-weight:800 !important;
}

.hub-orders-refresh{
  min-height:38px;
  padding:0 14px;
  border-color:rgba(183,35,1,.18);
  box-shadow:0 8px 18px rgba(47,34,22,.06);
}

.hub-orders-toolbar{
  padding:12px;
  border:1px solid rgba(183,35,1,.08);
  border-radius:20px;
  background:linear-gradient(135deg,rgba(255,255,255,.98),rgba(255,249,243,.92));
  box-shadow:0 16px 34px rgba(47,34,22,.06);
}

.hub-orders-filter{
  border:1px solid rgba(27,28,28,.04);
  background:#efedeb;
}

.hub-orders-filter .hub-ctab-btn{
  min-height:38px;
  padding:0 15px;
  font-weight:850;
}

.hub-orders-search,
.hub-orders-sort{
  border-color:rgba(183,35,1,.12);
  box-shadow:0 8px 18px rgba(47,34,22,.04);
}

.hub-orders-search:focus-within,
.hub-orders-sort:focus-within{
  border-color:rgba(183,35,1,.34);
  box-shadow:0 0 0 3px rgba(183,35,1,.08),0 8px 18px rgba(47,34,22,.04);
}

.hub-order-card{
  position:relative;
  border:1px solid var(--hub-order-card-border);
  border-radius:22px;
  background:
    radial-gradient(circle at top left,rgba(242,231,207,.48),transparent 38%),
    linear-gradient(135deg,#fff 0%,#fffaf4 100%);
  box-shadow:var(--hub-order-card-shadow);
  overflow:hidden;
}

.hub-order-card::before{
  content:'';
  position:absolute;
  top:0;
  left:0;
  right:0;
  height:3px;
  background:linear-gradient(90deg,#b72301,#e7b85c,#2563eb);
  opacity:.72;
}

.hub-order-card:hover{
  box-shadow:0 26px 64px rgba(47,34,22,.11),0 2px 8px rgba(47,34,22,.04);
}

.hub-order-head{
  padding:16px 18px 14px;
  background:rgba(255,250,245,.86);
  border-bottom-color:rgba(183,35,1,.08);
}

.hub-order-id{
  display:inline-flex;
  align-items:center;
  min-height:26px;
  padding:0 9px;
  border-radius:999px;
  background:#fff;
  border:1px solid rgba(27,28,28,.08);
  color:#111827;
  box-shadow:0 5px 12px rgba(47,34,22,.04);
}

.hub-order-date{
  font-weight:700;
}

.hub-status-badge{
  min-height:28px;
  display:inline-flex;
  align-items:center;
  border-width:1px;
  font-weight:850;
}

.hub-product-row{
  padding:18px;
  border-bottom-color:rgba(183,35,1,.08);
}

.hub-product-img,
.hub-product-img-placeholder{
  width:72px;
  height:72px;
  border-radius:16px;
  border-color:rgba(183,35,1,.10);
  box-shadow:0 10px 20px rgba(47,34,22,.06);
}

.hub-product-name{
  font-size:15px;
  font-weight:850;
  color:#111827;
}

.hub-tag{
  min-height:22px;
  display:inline-flex;
  align-items:center;
  font-weight:850;
}

.hub-product-price{
  padding:6px 10px;
  border-radius:999px;
  background:#fff;
  border:1px solid rgba(183,35,1,.10);
  color:#8f1d04;
}

.hub-info-table{
  padding:14px 18px;
  border-bottom-color:rgba(183,35,1,.08);
  background:rgba(255,255,255,.38);
}

.hub-info-row{
  align-items:flex-start;
  gap:14px;
}

.hub-info-label{
  width:74px;
  color:rgba(27,28,28,.44);
  font-weight:800;
}

.hub-info-value{
  min-width:0;
  overflow-wrap:anywhere;
  line-height:1.55;
  font-weight:650;
}

.hub-order-actions,
.hub-qna-row{
  border-color:rgba(183,35,1,.08);
  background:rgba(255,253,249,.68);
}

.hub-order-action,
.hub-qna-btn,
.hub-result-btn,
.hub-conflict-btn,
.hub-item-actions button{
  text-decoration:none !important;
}

.hub-order-action,
.hub-qna-btn{
  border-color:rgba(183,35,1,.14);
  background:#fff;
  box-shadow:0 7px 16px rgba(47,34,22,.04);
}

.hub-order-action:hover,
.hub-qna-btn:hover{
  border-color:rgba(183,35,1,.32);
  background:#fff7ed;
}

.hub-order-action.primary{
  background:linear-gradient(135deg,#b72301,#8f1d04);
  border-color:#b72301;
}

.hub-timeline-wrap{
  margin:0 18px 18px;
}

.hub-timeline-toggle,
.hub-timeline{
  border-color:rgba(183,35,1,.10);
  background:#fffdf9;
}

.hub-orders-load-failed,
.hub-inline-empty{
  border-radius:18px;
  background:#fffaf5;
  border:1px solid rgba(183,35,1,.10);
}

#ordersPager button{
  text-decoration:none !important;
  border-color:rgba(183,35,1,.18) !important;
  border-radius:999px !important;
  background:#fff !important;
  color:#8f1d04 !important;
  box-shadow:0 8px 18px rgba(47,34,22,.05);
}

#ordersPager button:hover:not(:disabled){
  background:#fff7ed !important;
  border-color:rgba(183,35,1,.34) !important;
}

@media (max-width: 767px){
  .hub-orders-heading{
    padding:14px;
    border-radius:20px;
  }

  .hub-orders-heading h2{
    font-size:22px;
  }

  .hub-orders-heading-right{
    width:100%;
  }

  #ordersTotalLabel{
    flex:1;
    justify-content:center;
  }

  .hub-orders-toolbar{
    padding:10px;
    border-radius:18px;
  }

  .hub-order-card{
    border-radius:20px;
  }

  .hub-order-head{
    padding:16px 14px 12px;
    gap:10px;
  }

  .hub-order-id{
    margin-bottom:6px;
  }

  .hub-order-date{
    display:block;
    margin-left:0;
  }

  .hub-product-row{
    grid-template-columns:72px minmax(0,1fr);
    padding:14px;
  }

  .hub-product-img,
  .hub-product-img-placeholder{
    width:72px;
    height:72px;
  }

  .hub-info-table{
    padding:12px 14px;
  }

  .hub-info-row{
    display:grid;
    grid-template-columns:74px minmax(0,1fr);
  }

  .hub-order-actions{
    padding:12px 14px;
  }

  .hub-qna-btn-bar{
    padding:12px 14px;
  }

  .hub-qna-btn{
    flex:1 1 150px;
    justify-content:center;
  }

  .hub-timeline-wrap{
    margin:0 14px 14px;
  }
}
