:root {
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #2d241f;
  background: #f7f4ef;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: #f7f4ef; }
button, input { font: inherit; }
.hidden { display: none !important; }

.account-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  padding: 12px max(24px, calc((100vw - 1440px) / 2));
  border-bottom: 1px solid rgba(73, 56, 45, 0.08);
  background: rgba(250, 248, 244, 0.92);
  backdrop-filter: blur(18px);
}

.account-brand { display: flex; align-items: center; gap: 18px; color: inherit; text-decoration: none; }
.account-brand img { width: 148px; height: auto; }
.account-brand span { display: grid; gap: 2px; padding-left: 18px; border-left: 1px solid rgba(73, 56, 45, 0.12); }
.account-brand strong { font-size: 17px; }
.account-brand small { color: #8a817a; font-size: 11px; }
.account-top-actions { display: flex; align-items: center; gap: 10px; }
.account-top-actions a { padding: 9px 14px; border: 1px solid rgba(73, 56, 45, 0.11); border-radius: 999px; background: #fff; color: #53463e; font-size: 13px; text-decoration: none; }
.account-top-actions a:hover { border-color: #7b5b48; }

.account-shell {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 24px;
  width: min(1440px, calc(100% - 48px));
  margin: 30px auto 64px;
}

.account-sidebar,
.account-content {
  border: 1px solid rgba(73, 56, 45, 0.09);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(62, 43, 31, 0.06);
}

.account-sidebar { position: sticky; top: 108px; align-self: start; padding: 18px 14px 14px; }
.account-profile { display: flex; align-items: center; gap: 12px; padding: 10px 10px 20px; border-bottom: 1px solid rgba(73, 56, 45, 0.08); }
.profile-avatar { display: grid; place-items: center; flex: 0 0 auto; width: 44px; height: 44px; overflow: hidden; border-radius: 50%; background: #0f8b8d; color: #fff; font-weight: 700; }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.account-profile div { display: grid; min-width: 0; gap: 3px; }
.account-profile strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.account-profile span:not(.profile-avatar) { color: #8a817a; font-size: 11px; }
#accountNav { display: grid; gap: 4px; padding: 14px 0; }
#accountNav button, .account-logout { width: 100%; min-height: 43px; padding: 10px 13px; border: 0; border-radius: 11px; background: transparent; color: #5c5049; text-align: left; cursor: pointer; }
#accountNav button:hover, #accountNav button.active { background: #f6f1eb; color: #2d211a; }
#accountNav button.active { box-shadow: inset 3px 0 #6c4d3b; font-weight: 700; }
.account-logout { margin-top: 4px; border-top: 1px solid rgba(73, 56, 45, 0.08); border-radius: 0 0 11px 11px; color: #a14335; }

.account-content { min-height: 680px; padding: 30px; }
.account-content-head { display: flex; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.account-content-head div > span { color: #927561; font-size: 11px; font-weight: 800; letter-spacing: 0.12em; }
.account-content-head h1 { margin: 7px 0 0; font-size: 27px; letter-spacing: 0; }
.account-content-head p { max-width: 420px; margin: 23px 0 0; color: #8a817a; font-size: 13px; text-align: right; }
.account-loading { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 320px; color: #8a817a; }
.account-loading span { width: 18px; height: 18px; border: 2px solid #e5ddd5; border-top-color: #6c4d3b; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.account-error, .empty-state { display: grid; place-items: center; gap: 10px; min-height: 290px; padding: 40px; border: 1px dashed rgba(73, 56, 45, 0.16); border-radius: 16px; color: #8a817a; text-align: center; }
.account-error a, .empty-state a { color: #6c4d3b; font-weight: 700; }

.works-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.work-card, .order-row, .ai-row, .coupon-card, .address-card, .settings-card { overflow: hidden; border: 1px solid rgba(73, 56, 45, 0.09); border-radius: 16px; background: #fff; box-shadow: 0 8px 24px rgba(62, 43, 31, 0.04); }
.work-cover { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: linear-gradient(145deg, #ebe4dc, #f8f5f0); }
.work-cover img { width: 100%; height: 100%; object-fit: cover; }
.work-cover span { position: absolute; top: 10px; right: 10px; padding: 5px 8px; border-radius: 999px; background: rgba(255,255,255,.9); color: #655247; font-size: 11px; backdrop-filter: blur(8px); }
.work-body { display: grid; gap: 11px; padding: 15px; }
.work-body h2 { margin: 0; overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.work-body time { color: #8a817a; font-size: 11px; }
.card-actions { display: flex; gap: 8px; }
.card-actions a, .card-actions button { flex: 1; padding: 9px 10px; border: 1px solid rgba(73, 56, 45, 0.12); border-radius: 10px; background: #fff; color: #4b3d35; font-size: 12px; text-align: center; text-decoration: none; cursor: pointer; }
.card-actions .primary-action { border-color: #2e2119; background: #2e2119; color: #fff; }

.ai-benefits { display: grid; gap: 18px; }
.ai-benefits-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 22px 24px; overflow: hidden; border: 1px solid rgba(159,113,56,.16); border-radius: 18px; background: radial-gradient(circle at 88% 8%, rgba(199,154,94,.22), transparent 34%), linear-gradient(135deg, #fffaf2 0%, #f5ecde 100%); }
.ai-benefits-intro > div { display: grid; gap: 7px; }
.ai-benefits-intro span { color: #9a6f36; font-size: 10px; font-weight: 800; letter-spacing: .14em; }
.ai-benefits-intro strong { max-width: 520px; color: #3b2b21; font-family: Georgia, "Songti SC", serif; font-size: 21px; line-height: 1.4; }
.ai-benefits-intro p { max-width: 310px; margin: 0; color: #806f63; font-size: 11px; line-height: 1.7; text-align: right; }
.ai-benefit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ai-benefit-card { position: relative; display: grid; min-height: 330px; gap: 16px; padding: 20px; overflow: hidden; border: 1px solid rgba(73,56,45,.1); border-radius: 18px; background: linear-gradient(145deg, #fff 0%, #fdfaf6 100%); box-shadow: 0 12px 32px rgba(62,43,31,.06); }
.ai-benefit-card::after { position: absolute; right: -44px; bottom: -58px; width: 150px; height: 150px; border-radius: 50%; background: rgba(197,151,88,.08); content: ""; pointer-events: none; }
.ai-benefit-card.is-available { border-color: rgba(173,124,59,.25); box-shadow: 0 14px 34px rgba(115,77,37,.09); }
.ai-benefit-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ai-benefit-icon { display: grid; place-items: center; width: 50px; height: 50px; border: 1px solid rgba(139,96,43,.16); border-radius: 15px; background: linear-gradient(145deg, #f3e5cf, #fff8ed); color: #79532c; font-family: Georgia, "Songti SC", serif; font-size: 18px; font-weight: 700; box-shadow: inset 0 1px rgba(255,255,255,.9); }
.ai-benefit-state { padding: 6px 9px; border-radius: 999px; background: #f2ece5; color: #77665b; font-size: 10px; font-weight: 700; }
.is-available .ai-benefit-state { background: #f8ead2; color: #885d24; }
.is-exhausted .ai-benefit-state { background: #eeeae6; color: #897c73; }
.ai-benefit-copy { display: grid; align-content: start; gap: 7px; }
.ai-benefit-copy h2 { margin: 0; color: #352820; font-size: 18px; }
.ai-benefit-copy p { min-height: 42px; margin: 0; color: #87796f; font-size: 12px; line-height: 1.75; }
.ai-benefit-numbers { display: grid; grid-template-columns: .8fr 1.2fr; gap: 8px; margin: 0; }
.ai-benefit-numbers div { display: grid; gap: 5px; padding: 11px 12px; border-radius: 12px; background: #f7f2ec; }
.ai-benefit-numbers dt { color: #9a8b80; font-size: 10px; }
.ai-benefit-numbers dd { margin: 0; color: #4c382b; font-size: 13px; font-weight: 800; }
.is-available .ai-benefit-numbers div:last-child dd { color: #9b692b; }
.ai-benefit-followup { min-height: 18px; margin: -3px 0 0; color: #8d6a42; font-size: 11px; }
.is-exhausted .ai-benefit-followup { color: #78695f; }
.ai-benefit-action { position: relative; z-index: 1; align-self: end; justify-self: start; min-width: 112px; padding: 10px 17px; border-radius: 10px; background: #5c4030; color: #fffaf3; font-size: 12px; font-weight: 700; text-align: center; text-decoration: none; box-shadow: 0 7px 18px rgba(74,49,35,.16); }
.ai-benefit-action:hover { background: #493226; }
.empty-state [data-reload-ai-benefits] { padding: 10px 16px; border: 0; border-radius: 10px; background: #5c4030; color: #fff; font-weight: 700; cursor: pointer; }
.empty-state [data-reload-ai-benefits]:disabled { cursor: wait; opacity: .68; }

.order-status-tabs { display: flex; gap: 7px; margin-bottom: 16px; padding: 6px; overflow-x: auto; border: 1px solid rgba(108,77,59,.09); border-radius: 14px; background: #f8f2e9; scrollbar-width: none; }
.order-status-tabs::-webkit-scrollbar { display: none; }
.order-status-tabs button { display: inline-flex; flex: 1 0 auto; align-items: center; justify-content: center; gap: 7px; min-width: 92px; min-height: 42px; padding: 8px 13px; border: 0; border-radius: 10px; background: transparent; color: #5b4639; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; transition: background .18s ease, color .18s ease, box-shadow .18s ease; }
.order-status-tabs button:hover { background: rgba(255,255,255,.72); }
.order-status-tabs button:focus-visible { outline: 2px solid #b78a4e; outline-offset: 2px; }
.order-status-tabs button em { display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: rgba(108,77,59,.1); color: #795e4d; font-size: 11px; font-style: normal; }
.order-status-tabs button.active { background: #6c4d3b; color: #fffaf3; box-shadow: 0 7px 16px rgba(74,49,35,.18); }
.order-status-tabs button.active em { background: #c79a5e; color: #2f2118; }
.order-filtered-list + .order-aftersale-overlay { margin: 0; }

.data-list { display: grid; gap: 12px; }
.order-row, .ai-row, .address-card { display: grid; grid-template-columns: minmax(180px, 1.1fr) minmax(180px, 1.5fr) minmax(100px, .7fr) minmax(110px, .8fr) auto; align-items: center; gap: 16px; padding: 17px 18px; }
.order-row { grid-template-columns: minmax(150px, 1.05fr) minmax(210px, 1.45fr) minmax(80px, .45fr) minmax(84px, .5fr) minmax(250px, auto); }
.order-row.is-completed { border-color: rgba(40,115,77,.18); background: linear-gradient(105deg, #fff 0%, #fff 72%, #fbfdfb 100%); }
.row-main, .row-detail { display: grid; gap: 4px; min-width: 0; }
.row-main strong, .row-detail strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.row-main span, .row-detail span, .order-row time, .ai-row time { color: #8a817a; font-size: 11px; }
.status-pill { justify-self: start; padding: 6px 9px; border-radius: 999px; background: #f3eee8; color: #695345; font-size: 11px; font-weight: 700; }
.status-pill.success { background: #eaf6f0; color: #28734d; }
.status-pill.warning { background: #fff4df; color: #9a6a13; }
.row-link { padding: 8px 11px; border: 1px solid rgba(73, 56, 45, 0.12); border-radius: 9px; color: #4b3d35; font-size: 12px; text-decoration: none; white-space: nowrap; }
.order-product { display: flex; grid-template: none; align-items: center; gap: 10px; }
.order-product img { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 9px; background: #f1ece5; object-fit: cover; }
.order-product > div { display: grid; min-width: 0; gap: 4px; }
.order-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.order-actions a, .order-actions button { min-height: 38px; padding: 8px 11px; border: 1px solid rgba(73,56,45,.14); border-radius: 9px; background: #fff; color: #4b3d35; font-size: 12px; text-align: center; text-decoration: none; white-space: nowrap; cursor: pointer; }
.order-actions .order-review-action { border-color: rgba(108,77,59,.34); color: #604635; }
.order-actions .order-publish-action { border-color: #6c4d3b; background: #6c4d3b; color: #fff; }
.order-actions a:hover, .order-actions button:hover { border-color: #6c4d3b; }
.order-actions .order-publish-action:hover { background: #573c2d; }
.order-progress-copy { display: flex; grid-column: 1 / -1; align-items: center; gap: 10px; padding-top: 12px; border-top: 1px solid rgba(73,56,45,.07); }
.order-progress-copy strong { color: #63564e; font-size: 12px; }
.order-progress-copy span { color: #8a817a; font-size: 11px; }
.order-progress-copy.completed strong { color: #28734d; }
.order-shipping { display: flex; grid-column: 1 / -1; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 14px; border: 1px solid rgba(183,138,78,.22); border-radius: 12px; background: #fbf7f0; }
.order-shipping-copy { display: grid; grid-template-columns: auto auto minmax(180px, 1fr); align-items: center; gap: 8px 12px; min-width: 0; }
.order-shipping-copy span { color: #9a7652; font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.order-shipping-copy strong { color: #4a382d; font-size: 12px; }
.order-shipping-copy code { overflow: hidden; color: #755640; font-family: inherit; font-size: 12px; font-weight: 700; letter-spacing: .035em; text-overflow: ellipsis; white-space: nowrap; }
.order-shipping > button { flex: 0 0 auto; min-height: 34px; padding: 7px 12px; border: 1px solid rgba(108,77,59,.24); border-radius: 9px; background: #fff; color: #604635; font: inherit; font-size: 11px; font-weight: 700; cursor: pointer; }
.order-shipping > button:hover, .order-shipping > button:focus-visible { border-color: #6c4d3b; outline: none; }
.order-shipping > button.is-copied { border-color: rgba(40,115,77,.28); background: #edf7f1; color: #28734d; }
.order-shipping.is-pending { border-color: rgba(73,56,45,.09); background: #faf9f7; }
.order-shipping.is-pending .order-shipping-copy code { color: #9a8d84; font-weight: 500; letter-spacing: 0; }

body.order-aftersale-open { overflow: hidden; }
.order-aftersale-overlay { position: fixed; inset: 0; z-index: 1100; display: grid; place-items: center; padding: 20px; background: rgba(36,27,21,.52); backdrop-filter: blur(7px); }
.order-aftersale-dialog { width: min(680px, 100%); max-height: calc(100vh - 40px); overflow: auto; padding: 26px; border-radius: 18px; outline: none; background: #fffdf9; box-shadow: 0 28px 80px rgba(33,25,20,.3); }
.order-aftersale-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; margin-bottom: 18px; }
.order-aftersale-head > div { min-width: 0; }
.order-aftersale-head span { color: #927561; font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.order-aftersale-head h2 { margin: 6px 0 5px; font-size: 24px; }
.order-aftersale-head p { margin: 0; color: #81756d; font-size: 12px; line-height: 1.6; }
.order-aftersale-head > button { flex: 0 0 auto; width: 40px; height: 40px; border: 1px solid rgba(73,56,45,.12); border-radius: 50%; background: #fff; color: #5e4d42; font-size: 22px; cursor: pointer; }
.order-aftersale-summary { display: flex; align-items: center; gap: 13px; margin-bottom: 20px; padding: 12px; border: 1px solid rgba(73,56,45,.09); border-radius: 13px; background: #faf7f2; }
.order-aftersale-summary img, .order-summary-placeholder { flex: 0 0 auto; width: 64px; height: 64px; border-radius: 10px; background: linear-gradient(145deg, #e8dfd6, #f7f2ec); object-fit: cover; }
.order-aftersale-summary > div { display: grid; min-width: 0; gap: 4px; }
.order-aftersale-summary strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.order-aftersale-summary span { color: #81756d; font-size: 11px; }
.order-rating-list { display: grid; gap: 8px; }
.order-rating-row { display: flex; align-items: center; justify-content: space-between; min-height: 48px; gap: 20px; padding: 7px 12px; border: 1px solid rgba(73,56,45,.09); border-radius: 11px; background: #fff; }
.order-rating-row > span { font-size: 13px; font-weight: 700; }
.order-stars { display: flex; gap: 2px; }
.order-stars button { width: 40px; height: 40px; padding: 0; border: 0; background: transparent; color: #d8cec5; font-size: 25px; line-height: 1; cursor: pointer; }
.order-stars button.is-selected { color: #b88a42; }
.order-stars button:focus-visible { border-radius: 8px; outline: 2px solid #7b5b48; outline-offset: 1px; }
.order-photo-upload { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; width: 100%; gap: 11px; margin-top: 14px; padding: 13px; border: 1px dashed rgba(146,117,97,.42); border-radius: 12px; background: #fbf7f1; color: #5e493b; text-align: left; cursor: pointer; }
.order-photo-upload-visual { display: grid; place-items: center; width: 42px; height: 42px; overflow: hidden; border-radius: 10px; background: #efe5d8; color: #8d6d45; font-size: 23px; }
.order-photo-upload-visual > img { width: 100%; height: 100%; object-fit: cover; }
.order-photo-upload-copy { display: grid; min-width: 0; gap: 2px; }
.order-photo-upload-copy strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.order-photo-upload-copy small { overflow: hidden; color: #96877d; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.order-photo-upload-state { color: #9a6d32; font-size: 11px; font-weight: 700; white-space: nowrap; }
.order-photo-upload:hover { border-color: #b88a42; background: #fffaf3; }
.order-photo-upload.has-photo { border-style: solid; border-color: rgba(40,115,77,.3); background: #fbfdfb; }
.order-photo-upload.has-photo .order-photo-upload-state { color: #28734d; }
.order-photo-upload.is-uploading { cursor: wait; opacity: .76; }
.order-photo-upload:disabled { color: #5e493b; }
.order-aftersale-field { position: relative; display: grid; gap: 7px; margin-top: 16px; color: #66594f; font-size: 12px; }
.order-aftersale-field textarea { width: 100%; min-height: 108px; resize: vertical; padding: 12px 13px 26px; border: 1px solid rgba(73,56,45,.16); border-radius: 11px; background: #fff; color: #2d241f; font: inherit; outline: none; }
.order-aftersale-field textarea:focus { border-color: #7b5b48; box-shadow: 0 0 0 3px rgba(108,77,59,.08); }
.order-aftersale-field > small { position: absolute; right: 11px; bottom: 8px; color: #9a8d84; }
.order-public-option { display: flex; align-items: center; min-height: 40px; gap: 8px; margin-top: 10px; color: #66594f; font-size: 12px; }
.order-memory-preview { margin-bottom: 18px; }
.order-memory-preview-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 9px; }
.order-memory-preview-head strong { color: #4c3b31; font-size: 12px; }
.order-memory-preview-head span { color: #9a8b80; font-size: 10px; }
.order-memory-preview-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.order-memory-preview-grid article { display: grid; grid-template-columns: 54px 1fr; align-items: center; min-height: 66px; overflow: hidden; border: 1px solid rgba(91,68,54,.1); border-radius: 11px; background: linear-gradient(135deg, #fff 0%, #faf5ee 100%); }
.order-memory-preview-grid article > img, .memory-preview-symbol { width: 54px; height: 66px; object-fit: cover; }
.memory-preview-symbol { display: grid; place-items: center; background: linear-gradient(145deg, #eadfce, #f8f1e7); color: #8c6d48; font-family: Georgia, serif; font-size: 18px; font-weight: 700; }
.order-memory-preview-grid article > div { display: grid; min-width: 0; gap: 3px; padding: 8px 10px; }
.order-memory-preview-grid article strong { color: #4e3d33; font-size: 11px; }
.order-memory-preview-grid article small { overflow: hidden; color: #9b8d83; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.order-publish-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; border: 0; }
.order-publish-options legend { grid-column: 1 / -1; margin-bottom: 2px; color: #66594f; font-size: 12px; font-weight: 700; }
.order-publish-options label { display: flex; align-items: center; min-height: 46px; gap: 8px; padding: 9px 11px; border: 1px solid rgba(73,56,45,.1); border-radius: 10px; background: #fff; color: #55483f; font-size: 12px; }
.order-publish-options label.is-disabled { background: #f6f2ed; color: #a0948b; }
.order-publish-options label small { margin-left: auto; color: #a0948b; font-size: 10px; }
.order-publish-options input { accent-color: #8a6842; }
.order-publish-notice { margin: 13px 0 0; padding: 10px 12px; border-radius: 10px; background: #f4eee7; color: #75665d; font-size: 11px; line-height: 1.6; }
.order-aftersale-result { min-height: 20px; margin: 10px 0 0; color: #8a5f24; font-size: 12px; }
.order-aftersale-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 10px; }
.order-aftersale-actions button { min-width: 116px; min-height: 44px; padding: 9px 16px; border-radius: 10px; font-weight: 700; cursor: pointer; }
.order-aftersale-actions .secondary { border: 1px solid rgba(73,56,45,.14); background: #fff; color: #4b3d35; }
.order-aftersale-actions .primary { border: 1px solid #6c4d3b; background: #6c4d3b; color: #fff; }

.coupon-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.coupon-card { display: grid; grid-template-columns: 112px 1fr; min-height: 142px; }
.coupon-value { display: grid; place-items: center; align-content: center; gap: 2px; border-right: 1px dashed rgba(73,56,45,.16); background: #fbf4ea; color: #a44a35; }
.coupon-value strong { font-size: 28px; }
.coupon-value span { font-size: 11px; }
.coupon-info { display: grid; align-content: center; gap: 7px; padding: 18px; }
.coupon-info strong { font-size: 14px; }
.coupon-info span { color: #8a817a; font-size: 11px; }
.coupon-info .expired { color: #a14335; }

.address-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.address-toolbar > div { display: grid; gap: 3px; }
.address-toolbar strong { font-size: 15px; }
.address-toolbar span { color: #8a817a; font-size: 11px; }
.address-toolbar > button, .empty-state button { min-height: 40px; padding: 9px 15px; border: 0; border-radius: 10px; background: #2e2119; color: #fff; font-weight: 700; cursor: pointer; }
.address-card { grid-template-columns: minmax(120px, .65fr) minmax(160px, .75fr) minmax(280px, 2fr) auto; }
.address-card.is-default { border-color: rgba(108,77,59,.28); box-shadow: 0 8px 24px rgba(62,43,31,.07); }
.address-full strong { white-space: normal; }
.address-card-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; }
.address-card-actions button { min-height: 38px; padding: 8px 12px; border: 1px solid rgba(73,56,45,.14); border-radius: 9px; background: #fff; color: #4b3d35; cursor: pointer; }
.address-card-actions button:hover { border-color: #6c4d3b; }
.address-card-actions button.danger { color: #a14335; }
.address-default-badge { padding: 5px 8px; border-radius: 999px; background: #f3eee8; color: #6c4d3b; font-size: 11px; font-weight: 700; white-space: nowrap; }
body.address-editor-open { overflow: hidden; }
.address-editor-overlay { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 20px; background: rgba(33,25,20,.46); backdrop-filter: blur(5px); }
.address-editor-dialog { width: min(640px, 100%); max-height: calc(100vh - 40px); overflow: auto; padding: 24px; border-radius: 16px; background: #fffdf9; box-shadow: 0 24px 70px rgba(33,25,20,.25); }
.address-editor-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.address-editor-head span { color: #927561; font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.address-editor-head h2 { margin: 5px 0 0; font-size: 22px; }
.address-editor-head > button { width: 40px; height: 40px; border: 1px solid rgba(73,56,45,.12); border-radius: 50%; background: #fff; color: #5e4d42; font-size: 22px; cursor: pointer; }
.address-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.address-form-grid label { display: grid; gap: 7px; color: #66594f; font-size: 12px; }
.address-form-grid input, .address-form-grid select, .address-form-grid textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid rgba(73,56,45,.16); border-radius: 10px; background: #fff; color: #2d241f; font: inherit; outline: none; }
.address-form-grid input:focus, .address-form-grid select:focus, .address-form-grid textarea:focus { border-color: #7b5b48; box-shadow: 0 0 0 3px rgba(108,77,59,.08); }
.address-form-grid textarea { resize: vertical; }
.address-detail-field { grid-column: 1 / -1; }
.address-default-option { display: flex; align-items: center; gap: 8px; margin-top: 16px; color: #5f5148; font-size: 12px; }
.address-editor-result { min-height: 20px; margin: 10px 0; color: #a14335; font-size: 12px; }
.address-editor-actions { display: flex; justify-content: flex-end; gap: 10px; }
.address-editor-actions button { min-width: 108px; min-height: 44px; padding: 10px 16px; border-radius: 10px; font-weight: 700; cursor: pointer; }
.address-editor-actions .secondary { border: 1px solid rgba(73,56,45,.14); background: #fff; color: #4b3d35; }
.address-editor-actions .primary { border: 1px solid #2e2119; background: #2e2119; color: #fff; }
.settings-card { max-width: 680px; padding: 24px; }
.settings-card label { display: grid; gap: 8px; margin-bottom: 16px; color: #74685f; font-size: 12px; }
.settings-card input { width: 100%; min-height: 46px; padding: 10px 13px; border: 1px solid rgba(73,56,45,.14); border-radius: 11px; color: #2d241f; outline: none; }
.settings-card input:focus { border-color: #7b5b48; box-shadow: 0 0 0 3px rgba(108,77,59,.08); }
.settings-card button { min-height: 44px; padding: 10px 18px; border: 0; border-radius: 11px; background: #2e2119; color: #fff; font-weight: 700; cursor: pointer; }
.settings-result { min-height: 20px; margin: 12px 0 0; color: #28734d; font-size: 12px; }

.creation-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.creation-toolbar > a { flex: 0 0 auto; padding: 10px 14px; border-radius: 10px; background: #2e2119; color: #fff; font-size: 12px; font-weight: 700; text-decoration: none; }
.creation-filters { display: flex; flex-wrap: wrap; gap: 7px; }
.creation-filters button { min-height: 36px; padding: 8px 13px; border: 1px solid rgba(73,56,45,.11); border-radius: 999px; background: #fff; color: #73645b; font-size: 12px; cursor: pointer; }
.creation-filters button:hover, .creation-filters button.active { border-color: #6c4d3b; background: #f7f1eb; color: #35271f; }
.ai-creation-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ai-creation-card { overflow: hidden; border: 1px solid rgba(73,56,45,.09); border-radius: 16px; background: #fff; box-shadow: 0 8px 24px rgba(62,43,31,.04); }
.ai-creation-cover { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #f1ece5; }
.ai-creation-cover img { position: relative; z-index: 2; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .24s ease; }
/* 360 Chrome 86 does not support aspect-ratio; retain the same 4:3 cover box. */
@supports not (aspect-ratio: 4 / 3) {
  .ai-creation-cover { height: 0; padding-bottom: 75%; }
  .ai-creation-cover img { position: absolute; inset: 0; }
}

.ai-creation-cover.is-loaded img { opacity: 1; }
.creation-image-skeleton { position: absolute; inset: 0; z-index: 1; background: linear-gradient(100deg, #eee8e1 18%, #f8f4ef 42%, #eee8e1 68%); background-size: 220% 100%; animation: creation-image-loading 1.25s ease-in-out infinite; }
.creation-image-error { position: absolute; inset: 0; z-index: 3; display: none; place-items: center; align-content: center; gap: 9px; padding: 20px; background: #f1ece5; color: #76685f; font-size: 12px; text-align: center; }
.creation-image-error button { padding: 8px 13px; border: 1px solid rgba(73,56,45,.14); border-radius: 9px; background: #fff; color: #4b3d35; cursor: pointer; }
.creation-image-retry { position: absolute; inset: 0; z-index: 3; display: none; place-items: center; padding: 20px; border: 0; background: #f1ece5; color: #76685f; font-size: 12px; text-align: center; cursor: pointer; }
.ai-creation-cover.is-loaded .creation-image-skeleton { display: none; }
.ai-creation-cover.is-error .creation-image-skeleton,
.ai-creation-cover.is-error img { display: none; }
.ai-creation-cover.is-error .creation-image-error { display: grid; }
.ai-creation-cover.is-error .creation-image-retry { display: grid; }
@keyframes creation-image-loading { to { background-position-x: -220%; } }
.creation-badge { display: inline-flex; align-items: center; width: fit-content; padding: 5px 9px; border-radius: 999px; background: #f4eee7; color: #634b3c; font-size: 10px; font-weight: 800; }
.ai-creation-cover .creation-badge { position: absolute; top: 10px; left: 10px; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); }
.creation-badge.fun { color: #8a4f1d; background: rgba(255, 245, 228, .94); }
.creation-badge.cartoon { color: #75529a; }
.creation-badge.upscale { color: #216778; }
.creation-badge.remove { color: #27714d; }
.creation-badge.scene { color: #9b611e; }
.ai-creation-body { display: grid; gap: 8px; padding: 15px; }
.ai-creation-body h2 { margin: 0; overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.ai-creation-body time { color: #8a817a; font-size: 11px; }
.ai-creation-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-top: 4px; }
.ai-creation-actions button, .ai-creation-actions a { min-height: 36px; padding: 8px 7px; border: 1px solid rgba(73,56,45,.12); border-radius: 9px; background: #fff; color: #4b3d35; font-size: 11px; text-align: center; text-decoration: none; cursor: pointer; }
.ai-creation-actions .primary-action { border-color: #2e2119; background: #2e2119; color: #fff; }
.ai-creation-actions .danger-action { color: #a14335; }
.ai-creation-actions button:disabled { opacity: .55; cursor: wait; }
.account-shell.shared-mode { grid-template-columns: minmax(0, 1fr); max-width: 1080px; }
.shared-creation { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(260px, .6fr); gap: 28px; align-items: center; }
.shared-creation > img { width: 100%; max-height: 650px; border-radius: 18px; background: #eee8e1; object-fit: contain; box-shadow: 0 18px 48px rgba(62,43,31,.1); }
.shared-creation > div { display: grid; gap: 12px; }
.shared-creation h2 { margin: 0; font-size: 24px; }
.shared-creation time { color: #8a817a; font-size: 12px; }
.shared-creation a { width: fit-content; padding: 12px 18px; border-radius: 11px; background: #2e2119; color: #fff; font-size: 13px; font-weight: 700; text-decoration: none; }

@media (max-width: 1240px) {
  .order-row { grid-template-columns: minmax(145px, 1fr) minmax(210px, 1.35fr) minmax(80px, .5fr) minmax(80px, .5fr); }
  .order-actions { grid-column: 1 / -1; justify-content: flex-start; }
}

@media (max-width: 1050px) {
  .works-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ai-creation-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .order-row, .ai-row { grid-template-columns: 1fr 1.2fr auto; }
  .order-row time, .ai-row time { display: none; }
  .order-actions { grid-column: 1 / -1; justify-content: flex-start; }
}

@media (max-width: 760px) {
  .account-topbar { min-height: 68px; padding: 10px 16px; }
  .account-brand img { width: 112px; }
  .account-brand span { display: none; }
  .account-top-actions a { padding: 8px 10px; font-size: 11px; }
  .account-shell { display: block; width: calc(100% - 24px); margin: 14px auto 38px; }
  .account-sidebar { position: static; padding: 12px; }
  .account-profile { padding: 6px 6px 13px; }
  #accountNav { grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 12px 0; }
  #accountNav button { padding: 8px 4px; text-align: center; font-size: 12px; }
  #accountNav button.active { box-shadow: inset 0 -2px #6c4d3b; }
  .account-logout { min-height: 38px; padding: 7px; text-align: center; }
  .account-content { min-height: 520px; margin-top: 12px; padding: 20px 14px; }
  .account-content-head { display: block; }
  .account-content-head h1 { font-size: 23px; }
  .account-content-head p { margin: 8px 0 0; text-align: left; }
  .ai-benefits-intro { align-items: flex-start; flex-direction: column; padding: 18px; }
  .ai-benefits-intro strong { font-size: 19px; }
  .ai-benefits-intro p { text-align: left; }
  .ai-benefit-grid { grid-template-columns: 1fr; }
  .ai-benefit-card { min-height: 0; padding: 18px; }
  .ai-benefit-numbers { grid-template-columns: 1fr 1.2fr; }
  .ai-benefit-action { width: 100%; min-height: 43px; }
  .order-status-tabs { margin-right: -4px; margin-left: -4px; padding: 5px; }
  .order-status-tabs button { min-width: 86px; min-height: 44px; padding: 8px 11px; }
  .works-grid, .coupon-grid { grid-template-columns: 1fr; }
  .ai-creation-grid { grid-template-columns: 1fr; }
  .creation-toolbar { align-items: stretch; flex-direction: column; }
  .creation-toolbar > a { text-align: center; }
  .shared-creation { grid-template-columns: 1fr; }
  .order-row, .ai-row, .address-card { grid-template-columns: 1fr auto; gap: 10px; }
  .order-row .row-detail, .ai-row .row-detail, .address-card .row-detail { grid-column: 1 / -1; }
  .row-link { grid-column: 1 / -1; text-align: center; }
  .order-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .order-actions .order-publish-action { grid-column: 1 / -1; }
  .order-progress-copy { display: grid; gap: 4px; }
  .order-shipping { align-items: stretch; flex-direction: column; }
  .order-shipping-copy { grid-template-columns: 1fr; gap: 4px; }
  .order-shipping > button { width: 100%; min-height: 42px; }
  .order-aftersale-overlay { align-items: end; padding: 10px; }
  .order-aftersale-dialog { max-height: calc(100vh - 20px); padding: 20px 16px; border-radius: 16px; }
  .order-aftersale-head h2 { font-size: 21px; }
  .order-rating-row { align-items: flex-start; flex-direction: column; gap: 4px; }
  .order-stars { width: 100%; justify-content: space-between; }
  .order-stars button { min-width: 44px; height: 44px; }
  .order-photo-upload { grid-template-columns: 42px minmax(0, 1fr); }
  .order-photo-upload-state { grid-column: 2; }
  .order-memory-preview-grid { grid-template-columns: 1fr; }
  .order-publish-options { grid-template-columns: 1fr; }
  .order-aftersale-actions { position: sticky; bottom: -20px; margin: 12px -16px -20px; padding: 12px 16px; background: #fffdf9; box-shadow: 0 -8px 20px rgba(33,25,20,.05); }
  .order-aftersale-actions button { flex: 1; min-width: 0; }
  .address-toolbar { align-items: stretch; }
  .address-card-actions { grid-column: 1 / -1; justify-content: flex-start; flex-wrap: wrap; }
  .address-card-actions button { min-width: 74px; min-height: 42px; }
  .address-form-grid { grid-template-columns: 1fr; }
  .address-detail-field { grid-column: auto; }
  .address-editor-overlay { padding: 10px; }
  .address-editor-dialog { max-height: calc(100vh - 20px); padding: 19px 16px; }
}

.order-review-saved { display: flex; grid-column: 1 / -1; justify-content: space-between; gap: 12px; padding: 11px 13px; border-radius: 10px; background: #f7f2ea; color: #665346; font-size: 12px; }
.order-review-saved.approved { background: #eaf6ee; color: #28734d; }
.order-review-saved.pending { background: #fff7e8; color: #8f651f; }
.order-review-saved span { color: inherit; opacity: .82; }
.order-stars.is-readonly span { width: 32px; color: #d8cec5; font-size: 25px; line-height: 1; text-align: center; }
.order-stars.is-readonly span.is-selected { color: #b88a42; }
.order-photo-upload.is-readonly { cursor: default; }

.creative-wallet { display: grid; gap: 16px; }
.creative-wallet-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; padding: 28px; border-radius: 20px; color: #fff9ef; background: radial-gradient(circle at 82% 5%, rgba(224,184,111,.28), transparent 34%), linear-gradient(135deg, #3b291f, #6d4a35); box-shadow: 0 18px 38px rgba(61,39,27,.16); }
.creative-wallet-hero > div { display: grid; gap: 5px; }
.creative-wallet-hero span, .creative-ledger header span { color: #d9b77e; font-size: 10px; font-weight: 800; letter-spacing: .15em; }
.creative-wallet-hero p { margin: 8px 0 0; color: #eadfce; font-size: 12px; }
.creative-wallet-hero > div > strong { font-family: Georgia, serif; font-size: 54px; line-height: 1; }
.creative-wallet-hero dl { display: grid; grid-template-columns: repeat(3, minmax(82px,1fr)); gap: 10px; margin: 0; }
.creative-wallet-hero dl div { padding: 12px 14px; border: 1px solid rgba(255,255,255,.13); border-radius: 13px; background: rgba(255,255,255,.08); }
.creative-wallet-hero dt { color: #ddcebd; font-size: 10px; }
.creative-wallet-hero dd { margin: 5px 0 0; font-size: 17px; font-weight: 800; }
.creative-wallet-note { padding: 12px 15px; border: 1px solid #eadcc7; border-radius: 12px; background: #fff8ed; color: #7c6041; font-size: 11px; line-height: 1.7; }
.creative-ledger { overflow: hidden; border: 1px solid #ece4db; border-radius: 18px; background: #fff; }
.creative-ledger header { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid #eee7df; }
.creative-ledger header h2 { margin: 3px 0 0; color: #38291f; font-size: 17px; }
.creative-ledger header button, [data-reload-creative-points] { padding: 8px 13px; border: 1px solid #ded2c6; border-radius: 9px; background: #fffaf4; color: #654733; cursor: pointer; }
.creative-ledger ul { margin: 0; padding: 0; list-style: none; }
.creative-ledger li { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 12px; padding: 15px 20px; border-bottom: 1px solid #f0ebe6; }
.creative-ledger li:last-child { border-bottom: 0; }
.creative-ledger-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: #f2e9df; color: #76523a; font-weight: 900; }
.creative-ledger-icon.is-income { background: #e8f4ed; color: #287a4a; }
.creative-ledger li > div { display: grid; gap: 4px; }
.creative-ledger li small { color: #9b8d82; font-size: 10px; }
.creative-ledger-amount { justify-items: end; }
.creative-ledger-amount strong { color: #6b4730; font-size: 14px; }
.creative-ledger-amount strong.is-income { color: #287a4a; }
.creative-ledger-empty { display: block !important; color: #998b80; text-align: center; }
/* HK-CREATIVE-POINTS-LEDGER-PAGINATION-V1 */
.creative-ledger-pagination { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 15px 20px; border-top: 1px solid #f0ebe6; background: #fffdf9; }
.creative-ledger-pagination button { min-width: 82px; padding: 8px 14px; border: 1px solid #ded2c6; border-radius: 999px; background: #fff; color: #654733; font: inherit; cursor: pointer; transition: border-color .18s ease, background .18s ease, color .18s ease; }
.creative-ledger-pagination button:hover:not(:disabled) { border-color: #b99068; background: #f8f0e7; color: #38291f; }
.creative-ledger-pagination button:focus-visible { outline: 2px solid rgba(181, 138, 85, .58); outline-offset: 2px; }
.creative-ledger-pagination button:disabled { cursor: not-allowed; opacity: .42; }
.creative-ledger-pagination span { min-width: 66px; color: #8b786a; font-size: 12px; text-align: center; }
.creative-ledger-page-error { margin: 0; padding: 0 20px 14px; color: #b2493f; font-size: 12px; text-align: center; }
@media (max-width: 720px) {
  .creative-wallet-hero { align-items: stretch; flex-direction: column; padding: 22px; }
  .creative-wallet-hero dl { grid-template-columns: repeat(3, 1fr); }
  .creative-wallet-hero dl div { padding: 10px; }
  .creative-wallet-hero > div > strong { font-size: 46px; }
  .creative-ledger li { grid-template-columns: 34px 1fr auto; padding: 13px 14px; }
  .creative-ledger-pagination { gap: 8px; padding: 13px 14px; }
  .creative-ledger-pagination button { min-width: 76px; padding: 8px 12px; }
} 

/* HK-ONBOARDING-SPOTLIGHT-GUIDE-V1.0 */
.onboarding-replay-setting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid rgba(73, 56, 45, .1);
}

.onboarding-replay-setting > div {
  display: grid;
  gap: 4px;
}

.onboarding-replay-setting span {
  color: #a27645;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.onboarding-replay-setting strong {
  color: #30231c;
  font-size: 15px;
}

.onboarding-replay-setting p {
  margin: 0;
  color: #7b6d64;
  font-size: 12px;
  line-height: 1.55;
}

.settings-card .onboarding-replay-setting button {
  flex: 0 0 auto;
  border: 1px solid rgba(108, 77, 59, .2);
  background: #fffaf4;
  color: #654733;
}

@media (max-width: 620px) {
  .onboarding-replay-setting {
    align-items: stretch;
    flex-direction: column;
  }

  .settings-card .onboarding-replay-setting button {
    width: 100%;
  }
}
/* HK-CREATIVE-POINT-GROWTH-V1 */
.creative-wallet-hero > div > small { margin-top: 5px; color: #dbc9b5; font-size: 11px; }
.creative-growth-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.creative-growth-grid > article { position: relative; overflow: hidden; padding: 20px; border: 1px solid #eadfd3; border-radius: 17px; background: linear-gradient(145deg, #fff, #fffaf3); box-shadow: 0 10px 28px rgba(66,45,31,.06); }
.creative-growth-grid > article > span { color: #bd8b4d; font-size: 9px; font-weight: 900; letter-spacing: .17em; }
.creative-growth-grid h2 { margin: 12px 0 6px; color: #39281f; font-size: 18px; }
.creative-growth-grid p { min-height: 38px; margin: 0 0 16px; color: #817168; font-size: 12px; line-height: 1.65; }
.growth-icon { position: absolute; top: 16px; right: 17px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: #f0e2cd; color: #775036; font-weight: 900; }
.creative-growth-grid > article > button, .creative-recharge-submit { min-height: 42px; padding: 0 17px; border: 0; border-radius: 11px; background: #3a281f; color: #fffaf3; font-weight: 800; cursor: pointer; }
.creative-growth-grid > article > button:disabled { background: #e8e0d8; color: #95877c; cursor: default; }
.creative-recharge-card { grid-column: 1 / -1; }
.creative-recharge-options { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin-bottom: 13px; }
.creative-recharge-options button { display: grid; gap: 3px; padding: 10px; border: 1px solid #e1d5c7; border-radius: 11px; background: #fff; color: #583d2d; font-weight: 800; cursor: pointer; }
.creative-recharge-options button small { color: #a38773; font-size: 10px; font-weight: 500; }
.creative-recharge-options button.active { border-color: #9a6c45; background: #f5eadb; box-shadow: inset 0 0 0 1px #9a6c45; }
.creative-recharge-card label { display: grid; grid-template-columns: auto minmax(120px,220px) 1fr; align-items: center; gap: 10px; margin-bottom: 13px; color: #685044; font-size: 12px; }
.creative-recharge-card label input { height: 40px; padding: 0 12px; border: 1px solid #dfd2c6; border-radius: 10px; background: #fff; color: #34241c; font-size: 14px; }
.creative-recharge-card label em { color: #9b887a; font-size: 11px; font-style: normal; }
.creative-action-result { min-height: 18px !important; margin: 10px 0 0 !important; color: #2f7954 !important; }
.creative-action-result.is-error { color: #b24838 !important; }
.creative-recharge-payment { display: flex; align-items: center; gap: 18px; margin-top: 16px; padding: 16px; border: 1px solid #dfd0bd; border-radius: 14px; background: #fbf5eb; }
.creative-recharge-payment.hidden { display: none; }
.creative-recharge-payment canvas, .creative-recharge-payment img { display: block; width: 168px; height: 168px; border-radius: 8px; background: #fff; }
.creative-recharge-payment > div:last-child { display: grid; gap: 8px; }
.creative-recharge-payment strong { color: #3a281f; font-size: 16px; }
.creative-recharge-payment span { color: #7d604a; font-size: 13px; }
.creative-recharge-payment small { color: #aa7845; font-size: 11px; }
@media (max-width: 720px) {
  .creative-growth-grid { grid-template-columns: 1fr; }
  .creative-recharge-card { grid-column: auto; }
  .creative-recharge-options { grid-template-columns: repeat(2, 1fr); }
  .creative-recharge-card label { grid-template-columns: 1fr; }
  .creative-recharge-payment { align-items: center; flex-direction: column; text-align: center; }
}
/* HK-AI-BENEFITS-VS-CREATIVE-POINTS-UX-V1 */
.creative-wallet-definition { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(250px, .75fr); gap: 14px; }
.creative-wallet-definition > div { display: grid; align-content: center; gap: 7px; padding: 18px 20px; border: 1px solid #eadfd3; border-radius: 16px; background: linear-gradient(145deg, #fffdf9, #f8f0e6); }
.creative-wallet-definition span { color: #ad7c42; font-size: 9px; font-weight: 900; letter-spacing: .16em; }
.creative-wallet-definition strong { color: #39281f; font-size: 17px; }
.creative-wallet-definition p, .creative-wallet-definition small { margin: 0; color: #7f6d61; font-size: 11px; line-height: 1.7; }
.creative-startup-card { border-color: rgba(175,126,68,.3) !important; background: radial-gradient(circle at 88% 8%, rgba(214,168,95,.2), transparent 34%), #fff8ee !important; }
.creative-startup-card b { color: #745034; font-family: Georgia, "Songti SC", serif; font-size: 22px; }
@media (max-width: 720px) {
  .creative-wallet-definition { grid-template-columns: 1fr; }
}
/* HK-CREATIVE-RECHARGE-PACKAGE-IMPLEMENT-V1 */
.creative-recharge-options button { position: relative; align-content: center; min-height: 82px; }
.creative-recharge-options button strong { color: #503628; font-size: 15px; }
.creative-recharge-options button em { justify-self: center; padding: 3px 8px; border-radius: 999px; background: #f1dfbf; color: #9a642b; font-size: 10px; font-style: normal; font-weight: 800; }
.creative-recharge-options button.active em { background: #d9bd88; color: #5d3b20; }
.creative-recharge-empty { grid-column: 1 / -1; margin: 0; padding: 18px; border: 1px dashed #d9c6b3; border-radius: 11px; color: #8c796c; text-align: center; }
.creative-recharge-submit:disabled { cursor: not-allowed; opacity: .5; }
.share-reward-state { display: block; margin-top: 10px; color: #9b7447; font-size: 11px; line-height: 1.5; }
.share-reward-center { margin-top: 16px; overflow: hidden; border: 1px solid #eadfd3; border-radius: 18px; background: linear-gradient(145deg,#fffdf9,#fbf4e9); }
.share-reward-center > header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px; border-bottom: 1px solid #eee2d5; }
.share-reward-center header span { color: #bd8b4d; font-size: 9px; font-weight: 900; letter-spacing: .16em; }
.share-reward-center header h2 { margin: 4px 0; color: #35231b; font-size: 20px; }
.share-reward-center header p { margin: 0; color: #7f6d62; font-size: 12px; }
.share-reward-center header button { min-height: 40px; padding: 0 16px; border: 0; border-radius: 10px; background: #3a281f; color: #fff; font-weight: 800; cursor: pointer; }
.share-reward-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; padding: 18px 20px; }
.share-reward-metrics article { padding: 14px; border-radius: 13px; background: rgba(255,255,255,.8); }
.share-reward-metrics span,.share-reward-metrics small { display: block; color: #8a776b; font-size: 11px; }
.share-reward-metrics strong { display: inline-block; margin-top: 7px; color: #493125; font-size: 24px; }
.share-referral-link { display: flex; gap: 12px; align-items: center; padding: 0 20px 20px; color: #806d60; font-size: 11px; }
.share-referral-link code { overflow: hidden; flex: 1; padding: 10px 12px; border-radius: 9px; background: #f4ece2; color: #5a4031; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width:700px){.share-reward-center > header{align-items:flex-start;flex-direction:column}.share-reward-metrics{grid-template-columns:repeat(2,1fr)}.share-referral-link{align-items:flex-start;flex-direction:column}.share-referral-link code{box-sizing:border-box;width:100%}}
/* HK-CREATIVE-WALLET-RECHARGE-FOCUS-V1 */
.creative-wallet { gap: 18px; }
.creative-wallet-hero { display: grid; grid-template-columns: minmax(250px, 1.2fr) auto minmax(300px, .9fr); align-items: end; gap: 24px; padding: 30px; }
.creative-wallet-balance { display: grid; gap: 5px; }
.creative-wallet-hero .creative-wallet-balance h2 { margin: 4px 0 8px; color: #fffaf2; font-size: 22px; }
.creative-wallet-hero .creative-wallet-balance p { margin: 0; }
.creative-wallet-hero .creative-wallet-balance > strong { margin-top: 3px; font-family: Georgia, "Songti SC", serif; font-size: 64px; line-height: .95; }
.creative-wallet-hero-actions { display: grid; gap: 9px; min-width: 150px; }
.creative-wallet-hero-actions button { min-height: 44px; padding: 0 20px; border: 1px solid #e0bb76; border-radius: 12px; background: linear-gradient(135deg, #f5d99d, #d9ae64); color: #3c281a; font-weight: 900; cursor: pointer; box-shadow: 0 8px 20px rgba(21,12,7,.2); }
.creative-wallet-hero-actions button + button { min-height: 38px; border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.06); color: #e9d9c4; box-shadow: none; font-size: 11px; }
.creative-wallet-hero dl { opacity: .78; }
.creative-recharge-card { scroll-margin-top: 18px; padding: 24px; border: 1px solid #ddc9ad; border-radius: 19px; background: linear-gradient(145deg, #fffdf9, #faf1e3); box-shadow: 0 14px 34px rgba(80,51,31,.09); }
.creative-recharge-card > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.creative-recharge-card > header span, .creative-free-section > header span { color: #ad7a3c; font-size: 9px; font-weight: 900; letter-spacing: .16em; }
.creative-recharge-card > header h2, .creative-free-section > header h2 { margin: 5px 0 3px; color: #38271e; font-size: 21px; }
.creative-recharge-card > header p, .creative-recharge-card > header small { margin: 0; color: #8b7463; font-size: 12px; }
.creative-recharge-options { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 15px; }
.creative-recharge-options .creative-recharge-option { align-content: center; min-height: 132px; padding: 18px 12px 14px; border: 1px solid #dfd0bc; border-radius: 14px; background: #fffdf9; box-shadow: 0 5px 14px rgba(83,55,34,.04); transition: border-color .16s ease, background .16s ease, transform .16s ease, box-shadow .16s ease; }
.creative-recharge-options .creative-recharge-option:hover { transform: translateY(-2px); border-color: #c29a62; }
.creative-recharge-options .creative-recharge-option.active { transform: translateY(-2px); border-color: #b27b36; background: #f3e4ce; box-shadow: 0 10px 22px rgba(123,82,38,.16), inset 0 0 0 1px #c89959; }
.creative-recharge-options .creative-recharge-option strong { margin-top: 6px; color: #432b1d; font-size: 20px; }
.creative-recharge-options .creative-recharge-option small { color: #826a58; font-size: 12px; }
.creative-package-badge { justify-self: center; padding: 4px 9px; border-radius: 999px; background: #eee5da; color: #755d4b !important; font-size: 10px !important; letter-spacing: 0 !important; }
.creative-recharge-option.active .creative-package-badge { background: #754a27; color: #fff4df !important; }
.creative-recharge-options .creative-recharge-option em { margin-top: 4px; background: #f2dfbd; }
.creative-recharge-options .creative-recharge-option em.is-placeholder { visibility: hidden; }
.creative-recharge-options .creative-recharge-custom { display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; align-items: stretch; gap: 6px; min-width: 0; min-height: 132px; margin-bottom: 0; padding: 14px 12px; border: 1px solid #dfd0bc; border-radius: 14px; background: #fffdf9; color: #503628; box-shadow: 0 5px 14px rgba(83,55,34,.04); cursor: text; }
.creative-recharge-options .creative-recharge-custom.active { transform: translateY(-2px); border-color: #b27b36; background: #f3e4ce; box-shadow: 0 10px 22px rgba(123,82,38,.16), inset 0 0 0 1px #c89959; }
.creative-recharge-custom > strong { min-width: 0; margin-top: 2px; font-size: 16px; text-align: center; white-space: nowrap; }
.creative-recharge-custom-input { display: flex; box-sizing: border-box; min-width: 0; width: 100%; align-items: center; gap: 6px; padding: 0 9px; border: 1px solid #d8c5af; border-radius: 10px; background: #fff; }
.creative-recharge-card .creative-recharge-custom-input input { box-sizing: border-box; min-width: 0; width: 100%; height: 36px; padding: 0; border: 0; border-radius: 0; outline: 0; background: transparent; box-shadow: none; color: #432b1d; font-size: 17px; font-weight: 800; text-align: center; appearance: textfield; }
.creative-recharge-custom-input i { color: #806a59; font-size: 10px; font-style: normal; white-space: nowrap; }
.creative-recharge-custom > small { color: #826a58; font-size: 10px; text-align: center; }
.creative-recharge-submit { width: 100%; min-height: 52px; background: linear-gradient(135deg, #563923, #332219); font-size: 15px; box-shadow: 0 8px 18px rgba(61,38,23,.16); }
.creative-wallet-note { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; padding: 13px 16px; }
.creative-wallet-note strong { color: #60472f; }
.creative-wallet-note span { position: relative; padding-left: 12px; }
.creative-wallet-note span::before { position: absolute; left: 0; content: "·"; }
.creative-free-section { padding: 19px 20px; border: 1px solid #eee4d7; border-radius: 17px; background: #fcf8f2; }
.creative-free-section > header { margin-bottom: 12px; }
.creative-growth-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.creative-growth-grid > article { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 70px; padding: 13px 14px; border-color: #eadfd2; border-radius: 13px; background: #fffaf3; box-shadow: none; }
.creative-growth-grid .growth-icon { position: static; width: 36px; height: 36px; border-radius: 11px; background: #eee2d2; color: #7d6046; }
.creative-growth-grid h3 { margin: 0 0 4px; color: #49362a; font-size: 15px; }
.creative-growth-grid p { min-height: 0; margin: 0; color: #8a776a; font-size: 11px; line-height: 1.5; }
.creative-growth-grid article small { display: block; margin-top: 3px; color: #a08f82; font-size: 10px; }
.creative-growth-grid > article > button { min-width: 82px; min-height: 36px; padding: 0 12px; border: 1px solid #d7c7b5; background: #fffdf9; color: #6a4b36; font-size: 11px; }
.creative-growth-grid > article > button:disabled { border-color: #e2d9d0; background: #f3eee8; }
.creative-wallet-definition { opacity: .88; }
.share-reward-center { margin-top: 0; background: #fcf9f5; box-shadow: none; }
.share-reward-center > header { padding: 17px 19px; }
.share-reward-center header h2 { font-size: 17px; }
.share-reward-center header button { border: 1px solid #d8c8b7; background: #fffdf9; color: #684b37; }
.share-reward-center header [data-copy-referral-link] { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 142px; transition: transform .18s ease, border-color .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease; }
.share-copy-feedback-icon { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #f1e8de; color: #78583f; font-style: normal; transition: transform .18s ease, background .18s ease, color .18s ease; }
.share-copy-feedback-icon::before { content: "⧉"; font-size: 13px; font-weight: 900; line-height: 1; }
.share-reward-center header [data-copy-referral-link]:active { transform: scale(.97); }
.share-reward-center header [data-copy-referral-link].is-copied { border-color: #78b99a; background: #edf8f2; color: #176b45; box-shadow: 0 7px 18px rgba(28,118,75,.15); }
.share-reward-center header [data-copy-referral-link].is-copied .share-copy-feedback-icon { background: #23865a; color: #fff; animation: share-copy-feedback-pop .3s ease; }
.share-reward-center header [data-copy-referral-link].is-copied .share-copy-feedback-icon::before { content: "✓"; }
.share-reward-center header [data-copy-referral-link].is-copy-error { border-color: #d9a095; background: #fff2ef; color: #a63f31; }
.share-reward-center header [data-copy-referral-link].is-copy-error .share-copy-feedback-icon { background: #b84c3d; color: #fff; }
.share-reward-center header [data-copy-referral-link].is-copy-error .share-copy-feedback-icon::before { content: "!"; }
@keyframes share-copy-feedback-pop { 0% { transform: scale(.72); } 65% { transform: scale(1.16); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .share-reward-center header [data-copy-referral-link], .share-copy-feedback-icon { transition: none; } .share-reward-center header [data-copy-referral-link].is-copied .share-copy-feedback-icon { animation: none; } }
.share-reward-metrics { padding: 14px 19px; }
.share-reward-metrics article { background: #fff; }
.share-reward-metrics strong { font-size: 20px; }
.creative-ledger { scroll-margin-top: 18px; }

@media (max-width: 980px) {
  .creative-wallet-hero { grid-template-columns: minmax(220px, 1fr) minmax(140px, .55fr); }
  .creative-wallet-hero dl { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .creative-wallet { gap: 14px; }
  .creative-wallet-hero { display: flex; align-items: stretch; flex-direction: column; gap: 17px; padding: 22px 18px; }
  .creative-wallet-hero .creative-wallet-balance > strong { font-size: 52px; }
  .creative-wallet-hero-actions { width: 100%; }
  .creative-wallet-hero-actions button { width: 100%; }
  .creative-wallet-hero dl { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .creative-wallet-hero dl div { min-width: 0; padding: 9px 7px; }
  .creative-wallet-hero dt { font-size: 9px; }
  .creative-wallet-hero dd { font-size: 15px; }
  .creative-recharge-card { padding: 18px 14px; }
  .creative-recharge-card > header { flex-direction: column; gap: 5px; }
  .creative-recharge-options { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .creative-recharge-options .creative-recharge-option { min-height: 116px; padding: 14px 8px 11px; }
  .creative-recharge-options .creative-recharge-option strong { font-size: 17px; }
  .creative-recharge-submit { min-height: 50px; }
  .creative-wallet-note { align-items: flex-start; flex-direction: column; gap: 6px; }
  .creative-free-section { padding: 16px 13px; }
  .creative-growth-grid { grid-template-columns: 1fr; }
  .creative-growth-grid > article { grid-template-columns: 36px minmax(0, 1fr) auto; padding: 12px 10px; }
  .creative-growth-grid > article > button { min-width: 72px; padding: 0 9px; }
  .creative-wallet-definition { grid-template-columns: 1fr; }
  .creative-recharge-payment { overflow: hidden; }
  .creative-ledger { max-width: 100%; }
}

/* HK-PARTNER-ENTRY-UX-OPTIMIZATION-V1 */
.account-cooperation-links { display: flex; align-items: center; gap: 10px; color: #b1a59c; }
.account-top-actions .account-cooperation-links a { padding: 7px 2px; border: 0; border-radius: 0; background: transparent; color: #776960; font-size: 12px; }
.account-top-actions .account-cooperation-links a:hover,
.account-top-actions .account-cooperation-links a.is-active { color: #3f3028; }
.account-top-actions .account-cooperation-links .account-partner-entry { padding: 8px 12px; border: 1px solid rgba(108,77,59,.18); border-radius: 999px; background: rgba(255,255,255,.68); color: #604b3d; }
.account-top-actions .account-cooperation-links .account-partner-entry:hover { border-color: rgba(108,77,59,.42); background: #fff; }
.account-top-actions .account-channel-entry { text-underline-offset: 4px; }
.account-top-actions .account-channel-entry:hover { text-decoration: underline; }
.account-top-actions .account-workbench-button { padding: 10px 16px; border-color: #2f211a; background: #2f211a; color: #fff; font-weight: 750; box-shadow: 0 7px 18px rgba(47,33,26,.14); }
.account-top-actions .account-workbench-button:hover { border-color: #4a3529; background: #4a3529; }
.account-workbench-short { display: none; }
.account-more-menu { position: relative; display: none; }
.account-more-menu summary { padding: 8px 10px; border: 1px solid rgba(73,56,45,.12); border-radius: 999px; background: #fff; color: #5d5048; font-size: 11px; cursor: pointer; list-style: none; }
.account-more-menu summary::-webkit-details-marker { display: none; }
.account-more-popover { position: absolute; top: calc(100% + 9px); right: 0; z-index: 30; display: grid; width: 220px; padding: 8px; border: 1px solid rgba(73,56,45,.11); border-radius: 14px; background: #fff; box-shadow: 0 16px 38px rgba(50,35,27,.16); }
.account-top-actions .account-more-popover a { display: grid; gap: 3px; padding: 11px 12px; border: 0; border-radius: 10px; background: transparent; }
.account-top-actions .account-more-popover a:hover,
.account-top-actions .account-more-popover a.is-active { background: #f6f1eb; }
.account-more-popover strong { color: #41342c; font-size: 13px; }
.account-more-popover small { color: #8b7d74; font-size: 10px; }

@media (max-width: 760px) {
  .account-top-actions { gap: 6px; }
  .account-cooperation-links { display: none; }
  .account-more-menu { display: block; }
  .account-top-actions .account-workbench-button { padding: 8px 10px; font-size: 11px; }
  .account-workbench-full { display: none; }
  .account-workbench-short { display: inline; }
}

@media (max-width: 390px) {
  .account-brand img { width: 96px; }
  .account-topbar { padding-right: 10px; padding-left: 10px; }
}
