/* GREEN-ACCOUNT-SHELL-START */
.green-account-gate {
  position: fixed;
  z-index: 210;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 560px);
  gap: clamp(24px, 6vw, 96px);
  align-items: center;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  padding: clamp(24px, 6vw, 88px);
  color: #18251d;
  background: linear-gradient(118deg, #f5f7f5 0 56%, #eaf5ed 56% 100%);
}
.green-account-gate.hidden { display: none; }
.green-account-context { max-width: 720px; }
.green-account-context small { color: #15723e; font-weight: 800; letter-spacing: .12em; }
.green-account-context h1 { max-width: 640px; margin: 18px 0 14px; font: 800 clamp(38px, 5.2vw, 72px)/1.02 "OPPO Sans", "PingFang SC", sans-serif; letter-spacing: -.045em; }
.green-account-context p { max-width: 580px; margin: 0; color: #526158; font-size: clamp(15px, 1.6vw, 19px); line-height: 1.75; }
.green-account-context ul { display: grid; gap: 8px; margin: 26px 0 0; padding: 0; list-style: none; color: #35473c; }
.green-account-context li::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 10px; border-radius: 50%; background: #2cff73; box-shadow: 0 0 0 4px rgba(44, 255, 115, .18); }
.green-account-panel { display: grid; gap: 14px; padding: clamp(22px, 3vw, 34px); border: 1px solid rgba(21, 32, 24, .11); border-radius: 24px; background: rgba(255, 255, 255, .94); box-shadow: 0 30px 90px rgba(15, 45, 27, .13); }
.green-account-panel header { display: grid; gap: 8px; }
.green-account-panel header small { color: #15723e; font-weight: 800; letter-spacing: .08em; }
.green-account-panel h2 { margin: 0; font: 800 clamp(24px, 3vw, 34px)/1.15 "OPPO Sans", "PingFang SC", sans-serif; }
.green-account-panel header p { margin: 0; color: #667168; line-height: 1.65; }
.green-account-panel-head { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
.green-account-entry-close { width: 42px; height: 42px; border: 0; border-radius: 12px; color: #18251d; background: #eef3ef; font-size: 24px; }
.green-account-gate:not([data-account-state="active"]):not([data-account-state="entitlement_required"]):not([data-phone-binding-intent="true"]) .green-account-entry-close { display: none; }
.green-entry-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 5px; border: 1px solid rgba(21, 32, 24, .1); border-radius: 16px; background: #eef3ef; }
.green-entry-tabs button { height: 42px; min-height: 42px; padding: 0 10px; border: 0; border-radius: 11px; color: #657068; background: transparent; font: 750 13px/1 "OPPO Sans", "PingFang SC", sans-serif; }
.green-entry-tabs button.is-active { color: #0c2816; background: #fff; box-shadow: 0 5px 18px rgba(15, 45, 27, .1); }
.green-entry-tabs button:focus-visible { outline: 3px solid rgba(44, 255, 115, .25); outline-offset: 2px; }
.green-account-form { display: grid; gap: 12px; }
.green-account-form [data-green-entry-panel] { display: grid; min-height: 0; align-content: start; gap: 12px; }
.green-account-form [data-green-entry-panel][hidden] { display: none; }
.green-account-form label { display: grid; gap: 7px; color: #35473c; font-size: 13px; font-weight: 700; }
.green-account-form input, .green-account-form select { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid rgba(21, 32, 24, .16); border-radius: 13px; color: #18251d; background: #f8fbf8; font: 500 16px/1 "OPPO Sans", "PingFang SC", sans-serif; box-sizing: border-box; }
.green-account-form input:focus, .green-account-form select:focus { border-color: #15723e; outline: 3px solid rgba(44, 255, 115, .2); }
.green-field-feedback { display: block; min-height: 17px; color: #a12b23; font-size: 12px; font-weight: 600; line-height: 1.45; }
.green-field-feedback[hidden] { display: none; }
.green-field-feedback[data-tone="success"] { color: #15723e; }
.green-consent-feedback { margin: -6px 0 0 26px; }
.green-account-actions { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.green-account-actions span { align-self: center; max-width: 220px; color: #778078; font-size: 12px; line-height: 1.45; }
.green-account-actions button, .green-provider-grid button, .green-account-subflow button, [data-green-entry-panel] > button, .green-profile-panel > button { min-height: 46px; border: 1px solid rgba(21, 32, 24, .12); border-radius: 13px; color: #18251d; background: #fff; font: 700 14px/1 "OPPO Sans", "PingFang SC", sans-serif; }
.green-account-actions button:first-child { color: #07150c; border-color: #2cff73; background: #2cff73; }
.green-account-actions button:focus-visible, .green-provider-grid button:focus-visible { outline: 3px solid rgba(44, 255, 115, .25); outline-offset: 2px; }
.green-otp-code-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 10px; }
.green-otp-code-row[hidden] { display: none; }
.green-otp-code-row > button { min-width: 128px; min-height: 48px; margin-top: 24px; padding: 0 16px; border: 1px solid #bfe8cc; border-radius: 13px; color: #087b38; background: #effaf2; font: 750 13px/1 "OPPO Sans", "PingFang SC", sans-serif; cursor: pointer; white-space: nowrap; }
.green-otp-code-row > button:disabled { color: #909b92; background: #f5f7f5; cursor: wait; }
.green-otp-code-row > button:focus-visible, .green-account-primary:focus-visible { outline: 3px solid rgba(44, 255, 115, .25); outline-offset: 2px; }
.green-otp-hint { margin: -2px 0 0 !important; color: #778078 !important; font-size: 11px !important; line-height: 1.5 !important; }
.green-account-form .green-account-primary { width: 100%; min-height: 50px; border: 1px solid #2cff73; border-radius: 13px; color: #07150c; background: #2cff73; box-shadow: 0 14px 28px rgba(44, 255, 115, .18); font: 800 14px/1 "OPPO Sans", "PingFang SC", sans-serif; cursor: pointer; }
.green-account-form .green-account-primary:disabled { color: #607067; border-color: #cfe6d6; background: #e5efe8; box-shadow: none; cursor: wait; }
.green-account-subflow { display: grid; gap: 11px; padding: 14px; border-left: 3px solid #2cff73; border-radius: 4px 13px 13px 4px; background: #f4faf5; }
.green-account-subflow[hidden] { display: none; }
.green-account-subflow p, [data-green-entry-panel] > p { margin: 0; color: #67736a; font-size: 12px; line-height: 1.6; }
.green-activation-binding-note { display: grid; gap: 5px; padding: 12px 14px; border-radius: 12px; color: #53635a; background: #f4f8f5; font-size: 12px; line-height: 1.6; }
.green-activation-binding-note[hidden] { display: none; }
.green-activation-binding-note strong { color: #24412f; }
.green-activation-binding-note p { margin: 0; }
.green-profile-panel { display: grid; gap: 11px; padding: 16px; border: 1px solid rgba(21, 114, 62, .18); border-radius: 16px; background: #f0f8f2; }
.green-profile-panel[hidden] { display: none; }
.green-profile-panel label[hidden] { display: none; }
.green-profile-panel header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.green-profile-panel header strong { color: #18251d; }
.green-profile-panel header span, .green-profile-panel p { margin: 0; color: #667168; font-size: 12px; line-height: 1.55; }
.green-profile-panel > button { color: #07150c; border-color: #2cff73; background: #2cff73; }
.green-account-form .auth-consent { grid-template-columns: 18px minmax(0, 1fr); align-items: start; column-gap: 8px !important; row-gap: 0; line-height: 1.55; }
.green-account-form .auth-consent input { align-self: start; width: 18px; min-height: 18px; height: 18px; margin: 1px 0 0; padding: 0; accent-color: #15723e; }
.green-account-form .auth-consent > span { min-width: 0; line-height: 1.55; overflow-wrap: anywhere; }
.green-account-form .auth-consent > span button { display: inline; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 0; color: #0b7d42; background: transparent; font: inherit; line-height: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; cursor: pointer; }
.green-account-form .auth-consent > span button:focus-visible { outline: 2px solid rgba(44, 255, 115, .35); outline-offset: 2px; border-radius: 3px; }
.green-provider-block { display: grid; gap: 9px; padding-top: 4px; border-top: 1px solid rgba(21, 32, 24, .08); }
.green-provider-block > span { color: #78827b; font-size: 12px; }
.green-provider-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.green-provider-grid button { display: grid; grid-template-columns: 22px minmax(0, auto); align-items: center; justify-content: center; gap: 7px; min-height: 46px; padding: 5px 8px; color: #758078; background: #f4f6f4; cursor: not-allowed; }
.green-provider-icon { display: block; width: 22px; height: 22px; border-radius: 6px; object-fit: contain; }
.green-provider-grid button > span { display: grid; gap: 3px; min-width: 0; text-align: left; }
.green-provider-grid button strong { color: #58635b; font-size: 13px; line-height: 1; }
.green-provider-grid button small { color: #8b948d; font-size: 10px; font-weight: 600; line-height: 1; }
.green-account-status { min-height: 18px; margin: 0; color: #a12b23; font-size: 12px; word-break: break-word; }
.green-account-facts { margin: 0; color: #667168; font-size: 12px; line-height: 1.6; }
.auth-sms-feedback { display: grid; gap: 13px; padding: 16px; border: 1px solid rgba(173, 78, 31, .24); border-radius: 16px; color: #3b2117; background: #fff8f2; box-shadow: 0 12px 30px rgba(83, 36, 15, .08); }
.auth-sms-feedback[hidden] { display: none; }
.auth-sms-feedback header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.auth-sms-feedback header div { display: grid; gap: 4px; }
.auth-sms-feedback header small { color: #a3471e; font-size: 10px; font-weight: 850; letter-spacing: .12em; }
.auth-sms-feedback h3 { margin: 0; font: 800 18px/1.25 "OPPO Sans", "PingFang SC", sans-serif; }
.auth-sms-feedback header > button { flex: 0 0 36px; width: 36px; height: 36px; border: 0; border-radius: 10px; color: #6d3b25; background: rgba(173, 78, 31, .09); font-size: 22px; cursor: pointer; }
.auth-sms-feedback > p { margin: 0; font-size: 13px; line-height: 1.65; }
.auth-sms-feedback dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 5px 10px; margin: 0; padding: 10px 12px; border-radius: 11px; background: rgba(255, 255, 255, .72); font-size: 11px; line-height: 1.55; }
.auth-sms-feedback [data-sms-feedback-diagnostics][hidden] { display: none; }
.auth-sms-feedback dt { color: #8a624f; }
.auth-sms-feedback dd { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.auth-sms-feedback__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.auth-sms-feedback__actions button { min-height: 40px; padding: 0 12px; border: 1px solid rgba(173, 78, 31, .22); border-radius: 11px; color: #5c2b16; background: #fff; font: 730 12px/1.25 "OPPO Sans", "PingFang SC", sans-serif; cursor: pointer; }
.auth-sms-feedback__actions button:first-child { color: #fff; border-color: #a3471e; background: #a3471e; }
.auth-sms-feedback button:focus-visible { outline: 3px solid rgba(173, 78, 31, .2); outline-offset: 2px; }
.auth-sms-feedback__fallback { box-sizing: border-box; width: 100%; min-height: 116px; resize: vertical; padding: 10px 12px; border: 1px solid rgba(173, 78, 31, .22); border-radius: 11px; color: #3b2117; background: #fff; font: 12px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; }
.auth-sms-feedback__copy-status { min-height: 18px; color: #6d3b25; }
.auth-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding-top: 14px; border-top: 1px solid rgba(21, 32, 24, .08); color: #66736b; }
.auth-footer__copyright { font-size: 12px; line-height: 1.6; }
.auth-footer-author { display: inline-flex; min-width: 0; min-height: 40px; align-items: center; gap: 10px; padding: 7px 10px 7px 13px; border: 1px solid rgba(11, 143, 70, .2); border-radius: 999px; color: #0b8f46; background: #f5f8f5; font: 760 13px/1.2 "OPPO Sans", "PingFang SC", sans-serif; cursor: pointer; }
.auth-footer-author__name { display: inline-flex; min-width: 0; color: #101713; letter-spacing: .015em; white-space: nowrap; }
.auth-footer-author__character { display: inline-block; animation: auth-footer-author-wave 3.2s cubic-bezier(.22, .7, .22, 1) infinite; animation-delay: calc(var(--auth-author-character-index) * 65ms); will-change: transform, opacity; }
.auth-footer-author__cue { padding: 5px 8px; border-radius: 999px; color: #0b8f46; background: rgba(22, 168, 91, .1); white-space: nowrap; }
.auth-footer__record { color: #0b8f46; font-size: 12px; line-height: 1.6; text-decoration: none; }
.auth-footer__record:hover { text-decoration: underline; text-underline-offset: 3px; }
.auth-footer__record:focus-visible { outline: 3px solid rgba(44, 255, 115, .28); outline-offset: 3px; border-radius: 4px; }
.auth-footer-author:hover { border-color: rgba(11, 143, 70, .38); background: #eef8f1; }
.auth-footer-author:active { transform: scale(.98); }
.auth-footer-author:focus-visible { outline: 3px solid rgba(44, 255, 115, .28); outline-offset: 2px; }
@keyframes auth-footer-author-wave {
  0%, 15%, 100% { transform: translateY(0); opacity: 1; }
  6% { transform: translateY(-4px); opacity: .78; }
  10% { transform: translateY(1px); opacity: 1; }
}
.green-session-dialog { max-width: 520px; width: calc(100% - 32px); padding: 0; border: 0; border-radius: 22px; color: #18251d; }
.green-session-dialog::backdrop { background: rgba(10, 20, 13, .46); backdrop-filter: blur(8px); }
.green-session-dialog section { display: grid; gap: 16px; padding: 28px; }
.green-session-dialog header { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.green-session-dialog h2 { margin: 0; font: 800 24px/1.2 "OPPO Sans", "PingFang SC", sans-serif; }
.green-session-dialog header button { width: 44px; height: 44px; border: 0; border-radius: 12px; background: #eef3ef; }
.green-session-state { padding: 16px; border-radius: 15px; color: #15723e; background: #eef8f1; font-weight: 800; }
.green-session-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.green-session-actions button { min-height: 46px; border: 1px solid rgba(21, 32, 24, .12); border-radius: 13px; background: #fff; font-weight: 700; }
.green-workbench-notice { position: fixed; z-index: 145; right: clamp(16px, 3vw, 42px); bottom: clamp(16px, 3vw, 36px); display: grid; gap: 10px; max-width: min(460px, calc(100vw - 32px)); padding: 16px 18px; border: 1px solid rgba(21, 114, 62, .22); border-radius: 16px; color: #18251d; background: #f4faf5; box-shadow: 0 18px 48px rgba(15, 45, 27, .15); }
.green-workbench-notice[hidden] { display: none; }
.green-workbench-notice strong { line-height: 1.5; }
.green-workbench-notice div { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.green-workbench-notice button { min-height: 40px; padding: 0 14px; border: 1px solid #15723e; border-radius: 11px; color: #fff; background: #15723e; font-weight: 750; }
.green-workbench-notice span { color: #667168; font-size: 12px; }
.green-account-gate.auth-gate { display: flex; align-items: center; justify-content: center; }
.green-account-gate.auth-gate.hidden { display: none; }
.green-account-gate.auth-gate .auth-shell { flex: 0 1 auto; }
.green-account-gate.auth-gate .green-account-panel { min-width: 0; }
@media (max-width: 860px) {
  .green-account-gate { grid-template-columns: 1fr; align-content: start; overflow: auto; padding: 26px 18px max(30px, env(safe-area-inset-bottom, 0px)); }
  .green-account-context h1 { margin-top: 10px; font-size: clamp(34px, 10vw, 54px); }
  .green-account-context ul { display: none; }
  .green-account-panel { border-radius: 22px; }
}
@media (max-width: 600px) {
  .green-account-gate.auth-gate .auth-shell { grid-template-rows: auto auto; }
  .green-account-gate.auth-gate .green-account-panel { align-self: start; }
}
@media (max-width: 480px) {
  .green-account-gate { gap: 20px; }
  .green-account-context p { font-size: 14px; }
  .green-account-panel { padding: 22px 18px; }
  .green-account-actions { grid-template-columns: 1fr; }
  .green-account-actions span { max-width: none; }
  .green-entry-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; padding: 4px; }
  .green-entry-tabs button { padding-inline: 4px; font-size: 10px; text-align: center; }
  .green-account-form [data-green-entry-panel] { min-height: 0; }
  .green-otp-code-row { grid-template-columns: minmax(0, 1fr) auto; gap: 7px; }
  .green-otp-code-row > button { min-width: 104px; padding-inline: 10px; }
  .green-provider-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .green-provider-grid button { grid-template-columns: 1fr; justify-items: center; gap: 4px; padding-inline: 4px; }
  .green-provider-grid button > span { justify-items: center; text-align: center; }
  .green-profile-panel { padding: 14px; }
  .auth-sms-feedback__actions { display: grid; grid-template-columns: 1fr; }
  .auth-sms-feedback__actions button { width: 100%; }
  .auth-footer { align-items: flex-start; flex-direction: column; }
  .auth-footer-author { max-width: 100%; }
  .green-workbench-notice div { align-items: stretch; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .green-account-gate *, .green-session-dialog * { animation-duration: 1ms !important; transition-duration: 1ms !important; }
  .auth-footer-author__character { animation: none !important; opacity: 1; transform: none; will-change: auto; }
}
/* GREEN-ACCOUNT-SHELL-END */
