/* O助手 v2.6.58 / UI-21: one-row account returns, upload parity and SVG menus.
 * Layered after v2657: previous crown, VIP, payment and mobile safeguards stay intact. */

/* A: the page title (including its existing SVG) and account return are peers. */
#page .view-top.ozs-functional-heading .ozs21-title-return-row{
  display:grid;grid-template-columns:minmax(0,1fr) max-content;align-items:center;
  gap:clamp(7px,1.6vw,16px);width:100%;min-width:0;min-height:44px;margin:0;
}
#page .view-top.ozs-functional-heading .ozs21-title-return-row>.page-title{
  min-width:0;max-width:100%;margin:0!important;overflow:hidden;text-overflow:ellipsis;
  overflow-wrap:normal!important;white-space:nowrap!important;text-wrap:nowrap!important;
}
#page .ozs21-title-return-row>.ozs2657-return-top{
  position:static!important;inset:auto!important;transform:none!important;
  display:inline-flex;align-items:center;justify-content:center;flex:none;flex-wrap:nowrap;
  gap:7px;min-height:44px;min-width:0;margin:0;padding:0 14px;
  border:1px solid #a9cdb4;border-radius:10px;background:#e2f0e5;color:#285942;
  font-size:13px;font-weight:750;line-height:1;white-space:nowrap;
  box-shadow:0 2px 7px rgba(31,72,49,.1);cursor:pointer;
  transition:background .16s ease,border-color .16s ease,box-shadow .16s ease;
}
#page .ozs21-title-return-row>.ozs2657-return-top:hover,
#page .ozs2656-vip-top>.ozs2657-return-top:hover{background:#d4e9d9;border-color:#82b896;color:#1b4933;box-shadow:0 3px 10px rgba(31,72,49,.13)}
#page .ozs21-title-return-row>.ozs2657-return-top[hidden]{display:none!important}
#page .ozs21-title-return-row>.ozs2657-return-top .icon{width:18px;height:18px;flex:none;stroke-width:2}

/* Special request detail: its more specific list-back replaces top account-back. */
#page .ozs21-title-return-row>.ozs2647-list-back{
  display:inline-flex;align-items:center;justify-content:center;flex:none;gap:7px;
  min-height:44px;width:auto;margin:0;padding:0 12px;border:1px solid #a9cdb4;
  border-radius:10px;background:#e2f0e5;color:#285942;font-size:12px;
  font-weight:750;white-space:nowrap;box-shadow:0 2px 7px rgba(31,72,49,.1);
}
#page .ozs21-title-return-row>.ozs2647-list-back:hover{background:#d4e9d9}

/* The VIP introduction has a pill bar rather than a conventional title. */
#page .ozs2656-vip-top{min-height:44px}
#page .ozs2656-vip-top>.ozs2657-return-top{
  position:static!important;transform:none!important;display:inline-flex;align-items:center;
  justify-content:center;gap:7px;min-height:44px;margin-right:auto;padding:0 14px;
  background:#e2f0e5;border:1px solid #a9cdb4;border-radius:10px;color:#285942;
  box-shadow:0 2px 7px rgba(31,72,49,.1);font-size:13px;font-weight:750;white-space:nowrap;
}
#page .ozs2656-vip-top>.ozs2657-return-top[hidden]{display:none!important}

/* Bottom remains full-text but should never degrade to an invisible text link. */
#page .ozs2647-account-back,#page .ozs2657-bottom-return .ozs2647-account-back{
  display:inline-flex!important;align-items:center;justify-content:center;flex-wrap:nowrap;
  gap:8px;min-height:46px;padding:10px 16px;border:1px solid #a9cdb4;
  border-radius:12px;background:#e2f0e5;color:#285942;font-weight:750;
  text-decoration:none;white-space:nowrap;box-shadow:0 2px 7px rgba(31,72,49,.09);
}
#page .ozs2647-account-back:hover{background:#d4e9d9;border-color:#82b896}
#page .ozs2647-account-back:focus-visible,
#page .ozs2657-return-top:focus-visible,
#page .ozs2647-list-back:focus-visible{outline:2px solid #2d7150;outline-offset:3px}

@media(max-width:420px){
  #page .view-top.ozs-functional-heading .ozs21-title-return-row{gap:7px}
  #page .view-top.ozs-functional-heading .ozs21-title-return-row>.page-title{
    font-size:clamp(18px,5.15vw,22px)!important;padding-left:34px!important;
  }
  #page .ozs21-title-return-row>.ozs2657-return-top,
  #page .ozs2656-vip-top>.ozs2657-return-top{gap:5px;padding:0 9px;font-size:12px}
  #page .ozs21-title-return-row>.ozs2647-list-back{gap:5px;padding:0 8px;font-size:11px}
  #page .view-top.ozs-functional-heading h1 .ozs-v24-title-symbol{width:28px!important;height:28px!important}
}

/* B/C: front end avatar picker uses the same surface as the established
 * demand-form picker. Never hide file inputs with display:none: keyboard access. */
#page .ozs21-avatar-upload{display:grid;gap:7px;min-width:0}
#page .ozs21-upload-title{display:block;font-weight:700;color:#365747;font-size:13px}
#page .ozs21-upload-shell{
  position:relative;display:flex;align-items:center;flex-wrap:wrap;gap:11px;
  width:100%;min-width:0;min-height:58px;padding:9px 12px;border:1px solid #d5e2d6;
  border-radius:13px;background:#f8fbf7;transition:border-color .18s,background .18s;
}
#page .ozs21-upload-shell:hover{border-color:#8eb59a;background:#f4faf3}
#page .ozs21-upload-shell:focus-within{border-color:#347958;box-shadow:0 0 0 3px rgba(77,144,103,.17)}
#page .ozs21-upload-shell.is-invalid{border-color:#c78177;background:#fff6f4}
#page .ozs21-upload-input{
  position:absolute!important;top:50%;left:14px;width:1px!important;height:1px!important;
  padding:0!important;margin:0!important;opacity:0!important;border:0!important;overflow:hidden!important;
}
#page .ozs21-upload-trigger{
  display:inline-flex;align-items:center;justify-content:center;flex:none;gap:8px;
  min-height:40px;padding:0 15px;border:1px solid #b7d2bf;border-radius:10px;
  background:#e7f2e9;color:#235c43;font-size:14px;font-weight:750;
  white-space:nowrap;box-shadow:0 2px 4px rgba(31,77,53,.07);cursor:pointer;
}
#page .ozs21-upload-trigger>.icon{width:17px;height:17px}
#page .ozs21-upload-name{flex:1;min-width:0;font-size:13px;color:#687a6e;overflow-wrap:anywhere}
#page .ozs21-upload-shell.is-chosen .ozs21-upload-name{color:#2b6149;font-weight:650}
#page .ozs21-upload-clear{
  display:inline-flex;align-items:center;gap:5px;min-height:36px;padding:0 9px;
  border:1px solid #e0c9c2;border-radius:9px;background:#fff7f4;color:#a06456;cursor:pointer;
}
#page .ozs21-upload-clear[hidden],#page .ozs21-upload-error[hidden]{display:none!important}
#page .ozs21-upload-hint{color:#7d9081;font-size:12px}
#page .ozs21-upload-error:not([hidden]){color:#b5483b;font-size:12px}
@media(max-width:420px){#page .ozs21-upload-shell{gap:8px;padding:9px}#page .ozs21-upload-trigger{padding:0 11px}}

/* D: compact 18px hand-drawn SVGs and a consistent 44px hit target. */
.site-header .ozs-profile-menu.ozs21-profile-menu{
  width:244px;min-width:0;max-width:calc(100vw - 22px);padding:9px;border:1px solid #d8e5d9;
  border-radius:17px;background:#fffefa;box-shadow:0 18px 38px rgba(25,52,34,.18);
}
.site-header .ozs21-profile-menu .ozs21-profile-caption{
  display:flex;align-items:center;gap:10px;min-height:46px;padding:8px 10px 11px;
  margin-bottom:5px;border-bottom:1px solid #e5ede4;color:#57725f;font-size:13px;
}
.site-header .ozs21-profile-menu .ozs21-profile-caption>svg{width:17px;height:17px}
.site-header .ozs21-profile-menu .ozs21-profile-caption strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.site-header .ozs21-profile-menu .ozs21-profile-item{
  display:flex!important;align-items:center;justify-content:flex-start;gap:10px;
  width:100%;min-height:44px;padding:6px 8px;margin:0;border:0;border-radius:11px;
  background:transparent;text-align:left;text-decoration:none;white-space:nowrap;
  color:#345947;font-size:12px;font-weight:700;cursor:pointer;
}
.site-header .ozs21-profile-menu .ozs21-profile-item:hover,
.site-header .ozs21-profile-menu .ozs21-profile-item.is-current{background:#eaf4eb;color:#22593b}
.site-header .ozs21-profile-menu .ozs21-menu-icon{
  display:grid;place-items:center;flex:0 0 29px;height:29px;border-radius:9px;
  background:#edf4ed;color:#376b4d;
}
.site-header .ozs21-profile-menu .ozs21-menu-chevron{display:grid;place-items:center;margin-left:auto;color:#93a799}
.site-header .ozs21-profile-menu .ozs21-menu-chevron svg{width:13px;height:13px}
.site-header .ozs21-profile-menu .ozs21-menu-logout{margin-top:6px;border-top:1px solid #e5ede4;border-radius:0 0 10px 10px;color:#a45c4b}
.site-header .ozs21-profile-menu .ozs21-menu-logout .ozs21-menu-icon{background:#fff0ec;color:#b96957}
.site-header .ozs21-profile-menu .ozs21-menu-logout:hover{background:#fff2ed;color:#994e3e}
.site-header .ozs21-profile-menu .ozs21-profile-item:focus-visible,
.site-header .ozs21-theme-menu button:focus-visible{outline:2px solid #28744e;outline-offset:1px}
.site-header .ozs21-theme-menu{min-width:183px;padding:8px}
.site-header .ozs21-theme-menu button{display:flex!important;align-items:center;gap:9px;min-height:43px;padding:8px 10px;white-space:nowrap}
.site-header .ozs21-theme-menu button>.ozs21-glyph{width:18px;height:18px;color:#47715a}
.site-header .ozs21-theme-menu .ozs21-theme-check{margin-left:auto;visibility:hidden}
.site-header .ozs21-theme-menu button.is-selected .ozs21-theme-check{visibility:visible;color:#27854f}
.site-header .ozs21-theme-menu .ozs21-theme-check svg{width:15px;height:15px}

/* The previous release intentionally glows ONLY around a gray non-VIP crown. */
html[data-ozs-theme="dark"] #page .ozs2657-return-top,
html[data-ozs-theme="dark"] #page .ozs2647-account-back,
html[data-ozs-theme="dark"] #page .ozs2647-list-back{background:#294638;border-color:#52765b;color:#e0f1e2}
html[data-ozs-theme="dark"] #page .ozs21-upload-shell{background:#223229;border-color:#44624b}
html[data-ozs-theme="dark"] #page .ozs21-upload-trigger{background:#2c4936;border-color:#4e7459;color:#d7eedc}
html[data-ozs-theme="dark"] #page .ozs21-upload-name{color:#c0d1c4}
html[data-ozs-theme="dark"] .site-header .ozs21-profile-menu{background:#23372c;border-color:#3e5543}
html[data-ozs-theme="dark"] .site-header .ozs21-profile-menu .ozs21-profile-item{color:#e9ede5}
html[data-ozs-theme="dark"] .site-header .ozs21-profile-menu .ozs21-menu-icon{background:#31513c;color:#cce8d2}
html[data-ozs-theme="dark"] .site-header .ozs21-profile-menu .ozs21-menu-logout{color:#f3b9a8}
html[data-ozs-theme="dark"] .site-header .ozs21-profile-menu .ozs21-menu-logout .ozs21-menu-icon{background:#543b35;color:#f3b9a8}
@media(prefers-color-scheme:dark){
  html[data-ozs-theme="system"] #page .ozs2657-return-top,
  html[data-ozs-theme="system"] #page .ozs2647-account-back,
  html[data-ozs-theme="system"] #page .ozs2647-list-back{background:#294638;border-color:#52765b;color:#e0f1e2}
  html[data-ozs-theme="system"] #page .ozs21-upload-shell{background:#223229;border-color:#44624b}
  html[data-ozs-theme="system"] #page .ozs21-upload-trigger{background:#2c4936;border-color:#4e7459;color:#d7eedc}
  html[data-ozs-theme="system"] .site-header .ozs21-profile-menu{background:#23372c;border-color:#3e5543}
  html[data-ozs-theme="system"] .site-header .ozs21-profile-menu .ozs21-profile-item{color:#e9ede5}
}
@media(prefers-reduced-motion:reduce){#page .ozs21-return-control,#page .ozs21-upload-shell{transition:none}}
