html, body { overflow: auto; height: auto; }
body {
  background: var(--bg) url('https://shipit-test.oss-cn-beijing.aliyuncs.com/yA3vZ7cP7wC1jO3sN2eA2gU1pH7oZ6tT.png') center / cover no-repeat fixed;
}
.ac-wrap {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  color: var(--text);
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.ac-wrap.on { opacity: 1; }
.ac-auth-load {
  position: fixed; inset: 0;
  background: transparent;
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.2s ease;
}
.ac-auth-load.hide { opacity: 0; pointer-events: none; }
.ac-auth-load-spinner {
  position: relative; width: 220px; height: 12px; border-radius: 6px;
  background: var(--control-bg); overflow: hidden;
}
.ac-auth-load-spinner::after { content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 45%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.12) 50%, transparent); transform: translateX(-120%); animation: ac-auth-shine 1.35s linear infinite; }
@keyframes ac-auth-shine { to { transform: translateX(320%); } }

.ac-side {
  width: 220px; flex-shrink: 0;
  background: #0e0e0f;
  border-right: 1px solid var(--glass-border);
  display: flex; flex-direction: column;
  padding: 22px 14px;
}
.ac-side-brand {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding: 0 8px 20px;
}
.ac-side-logo { height: 15px; width: auto; fill: var(--text); }
.ac-side-logo .logo-dim { fill: var(--text-faint); }
.ac-side-divider { display: none; }
.ac-side-name { font-size: 14.5px; font-weight: 700; letter-spacing: -0.2px; }
.ac-icp, .icp-link { color: var(--text-dim); text-decoration: none; transition: color 0.2s ease; }
.ac-icp { display: block; margin: auto 8px 8px; font-size: 10px; text-align: center; }
.login-icp { display: block; margin-top: 5px; text-align: center; }
.icp-link:hover { color: var(--accent); }
.ga-beian img { height: 14px; width: auto; vertical-align: -3px; margin-right: 3px; }
.ac-side-nav { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.ac-nav-item {
  position: relative;
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px;
  border-radius: 9px;
  font-size: 13.5px; font-weight: 500;
  color: var(--text-dim);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.ac-nav-item svg { width: 17px; height: 17px; flex-shrink: 0; }
.ac-nav-item:hover { background: rgba(255, 255, 255, 0.06); color: var(--text); }
.ac-nav-item.active { background: rgba(255, 255, 255, 0.09); color: var(--text); }
.ac-nav-item.active::before {
  content: '';
  position: absolute; left: 0; top: 9px; bottom: 9px;
  width: 3px; border-radius: 2px;
  background: #30d158;
}
.ac-switch-account { text-decoration: none; }
.ac-nav-group { font-size: 13px; color: var(--text-faint); margin-top: 10px; padding: 11px 14px; }
.ac-card-empty-body {
  min-height: 96px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12.5px; color: var(--text-faint);
}
.ac-main {
  flex: 1; min-width: 0;
  min-height: 100vh;
  min-height: 100dvh;
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  position: relative;
}
.ac-panel {
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
  min-height: calc(100vh - 44px);
  min-height: calc(100dvh - 44px);
  background: var(--card-bg);
  -webkit-backdrop-filter: blur(10px) saturate(1.15);
  backdrop-filter: blur(10px) saturate(1.15);
  border: 1px solid var(--glass-border);
  padding: 30px 34px 24px;
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(120, 120, 128, 0.35); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(120, 120, 128, 0.55); }
.ac-topbar {
  position: fixed; top: 18px; right: 20px;
}
.ac-section-title {
  font-size: 20px; font-weight: 700; margin: 34px 0 14px;
  padding-bottom: 10px; border-bottom: 1px solid var(--glass-border);
}
.ac-section-title:first-of-type { margin-top: 0; }
.ac-card {
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 18px 16px;
  margin-bottom: 14px;
}

.ac-card-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.ac-card-head .ac-label { margin-bottom: 0; }

.ac-field { margin-bottom: 14px; }
.ac-field:last-child { margin-bottom: 0; }
.ac-label { display: block; font-size: 12.5px; color: var(--text); margin-bottom: 7px; }
.ac-label .req { color: #ff453a; margin-left: 2px; }
.ac-label .opt { color: var(--text-faint); margin-left: 4px; font-size: 11.5px; }

.ac-input, .ac-select, .ac-textarea {
  width: 100%;
  background: var(--control-bg);
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--text);
  font-size: 13.5px;
  padding: 10px 12px;
  outline: none;
  transition: background 0.2s ease;
}
.ac-input:focus, .ac-select:focus, .ac-textarea:focus { background-color: var(--control-bg-focus); }
.ac-input::placeholder, .ac-textarea::placeholder { color: var(--text-faint); }
.ac-textarea { resize: vertical; min-height: 60px; }
.ac-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' stroke='%2398989d' stroke-width='1.4' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 30px;
  border: 1px solid var(--glass-border);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.ac-select:hover { border-color: var(--btn-border-hover); }
.ac-select option {
  background: #1c1c1e;
  color: #fff;
  padding: 8px;
}
.ac-select:focus {
  border-color: rgba(48, 209, 88, 0.55);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 5l4-4 4 4' stroke='%2330d158' stroke-width='1.4' fill='none' stroke-linecap='round'/></svg>");
}

.ac-dd { position: relative; width: 100%; }
.ac-dd-btn {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: var(--control-bg);
  border: 1px solid var(--glass-border);
  border-radius: 9px;
  color: var(--text);
  font-size: 13.5px;
  padding: 10px 12px;
  cursor: pointer;
  outline: none;
  font-family: inherit;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.ac-dd-btn:hover { background-color: var(--control-bg-focus); border-color: var(--btn-border-hover); }
.ac-dd.open .ac-dd-btn { border-color: rgba(48, 209, 88, 0.55); }
.ac-dd-arrow { width: 10px; height: 6px; flex-shrink: 0; color: var(--text-faint); transition: transform 0.2s ease; }
.ac-dd.open .ac-dd-arrow { transform: rotate(180deg); color: #30d158; }
.ac-dd-list {
  position: absolute; left: 7px; top: 100%;
  width: calc(100% - 14px);
  max-height: 192px;
  max-height: min(32vh, 192px);
  max-height: min(32dvh, 192px);
  overflow: auto;
  background: var(--menu-bg);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: 0 0 10px 10px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.35);
  z-index: 120;
  display: none;
}
.ac-dd.up .ac-dd-list { top: auto; bottom: 100%; border-radius: 10px 10px 0 0; }
.ac-dd.open .ac-dd-list { display: block; }
.ac-dd-list::-webkit-scrollbar { width: 6px; }
.ac-dd-list::-webkit-scrollbar-track { background: transparent; }
.ac-dd-list::-webkit-scrollbar-thumb { background: rgba(120, 120, 128, 0.35); border-radius: 3px; }
.ac-dd-opt {
  padding: 9px 12px;
  font-size: 13px;
  color: var(--text-dim);
  cursor: pointer;
  white-space: nowrap;
}
.ac-dd-opt:hover { background: rgba(255, 255, 255, 0.06); color: var(--text); }
.ac-dd-opt.sel { background: rgba(48, 209, 88, 0.16); color: #30d158; font-weight: 600; }
.ac-dd-opt.ac-dd-opt-dis { opacity: 0.4; cursor: not-allowed; pointer-events: none; }

.ac-row { display: flex; gap: 10px; align-items: center; }
.ac-row .ac-select { width: auto; min-width: 72px; }
.ac-row .ac-input { flex: 1; min-width: 60%; }
.ac-row .grow { flex: 1; }
.grow.smallinput {max-width: 30%;}
.grow.selectinput {max-width: 12%;}

.ac-avatar-row { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.ac-avatar-box {
  width: 50px; height: 50px;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
  background: var(--control-bg);
}
.ac-avatar { width: 100%; height: 100%; object-fit: cover; display: block; }
.ac-avatar-reqs {
  display: flex; flex-direction: column; gap: 3px;
  font-size: 11.5px; color: var(--text-faint);
}
.ac-avatar-reqs .strong { color: var(--text); font-weight: 600; }
.ac-field-line { display: flex; gap: 14px; align-items: flex-end; margin-bottom: 14px; }
.ac-field-line .ac-field { margin-bottom: 0; }
.ac-field-line .ac-select { width: auto; min-width: 78px; }
.ac-field-line .ac-row .ac-select { flex: 1; min-width: 0; }
.ac-field-line .grow { flex: 1; min-width: 0; }

.ac-btn {
  background: #fff; color: #000;
  border: none; border-radius: 8px;
  font-size: 13px; font-weight: 600;
  padding: 8px 16px; cursor: pointer;
  transition: opacity 0.15s ease;
}
.ac-btn:hover { opacity: 0.85; }
.ac-btn:disabled { opacity: 0.4; cursor: default; }
.ac-btn.ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--btn-border);
}
.ac-btn.ghost:hover { border-color: var(--btn-border-hover); }
.ac-btn.danger { background: transparent; color: #ff453a; border: 1px solid rgba(255, 69, 58, 0.4); }
.ac-btn.sm { padding: 6px 12px; font-size: 12px; }
.ac-btn.current { background: rgba(120, 120, 128, 0.24); color: var(--text-dim); border: none; cursor: default; }

.ac-save-fab {
  position: absolute;
  left: 100%; top: 10px;
  height: calc(100% - 20px); width: 42px;
  writing-mode: vertical-rl; letter-spacing: 3px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(48, 209, 88, 0.82); color: #fff;
  border: none; border-radius: 0 10px 10px 0;
  font-size: 13px; font-weight: 600;
  cursor: pointer;
  clip-path: inset(0 100% 0 0);
  pointer-events: none;
  transition: clip-path 0.3s cubic-bezier(0.22, 1, 0.36, 1), background 0.2s ease;
  z-index: 50;
}
.ac-save-fab.on { clip-path: inset(0 0 0 0); pointer-events: auto; }
.ac-save-fab:hover { background: rgba(48, 209, 88, 0.95); }

.ac-link-item {
  display: flex; align-items: center; gap: 10px; margin-bottom: 8px;
}
.ac-link-item .ac-input { flex: 1; }
.ac-link-icon {
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--control-bg);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ac-link-icon svg { width: 18px; height: 18px; }

.ac-contact-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.ac-contact-row:last-child { margin-bottom: 0; }
.ac-contact-icon {
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--control-bg);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ac-contact-icon svg { width: 18px; height: 18px; fill: var(--text); }

.ac-device {
  display: flex; gap: 12px; align-items: flex-start;
  background: rgba(120, 120, 128, 0.14);
  border-radius: 10px;
  padding: 12px 14px; margin-bottom: 10px;
}
.ac-device:last-child { margin-bottom: 0; }
.ac-device-icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--control-bg);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.ac-device-icon svg { width: 20px; height: 20px; fill: var(--text-dim); }
.ac-authorized-app .ac-device-icon img { width: 30px; height: 30px; object-fit: cover; border-radius: 8px; }
.ac-device-main { flex: 1; min-width: 0; }
.ac-device-name { font-size: 13.5px; font-weight: 600; }
.ac-device-os { font-size: 11.5px; color: var(--text-dim); margin-top: 2px; }
.ac-device-meta { font-size: 11px; color: var(--text-faint); text-align: right; line-height: 1.6; align-self: center; }

  .ac-toast {
    position: fixed; top: 24px; left: 50%; transform: translateX(-50%) translateY(-8px);
  background: var(--menu-bg); color: var(--text);
  border: 1px solid var(--glass-border);
  border-radius: 10px; padding: 10px 18px; font-size: 13px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 200;
}
.ac-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.ac-toast.err { border-color: rgba(255, 69, 58, 0.5); color: #ff453a; }

.ac-legal-links {
  display: flex; gap: 14px; justify-content: center;
  margin-top: 26px; padding: 18px 0 4px;
  border-top: 1px solid var(--glass-border);
  font-size: 12px;
}
.ac-legal-links a { color: var(--text-dim); text-decoration: none; transition: color 0.2s ease; }
.ac-legal-links a:hover { color: var(--accent); }

@media (max-width: 680px) {
  .ac-main { padding: 0px; overflow-y: auto; }
  .ac-panel { padding: 0px 14px 16px; min-height: calc(100vh - 24px); min-height: calc(100dvh - 24px); }
  .ac-row { flex-wrap: wrap; }
  .ac-row .ac-select { flex: 1; }
  .ac-field-line { flex-direction: column; align-items: stretch; }
  .ac-side { width: 64px; padding: 16px 8px; }
  .ac-side-brand { flex-direction: column; gap: 8px; padding: 0 0 16px; }
  .ac-side-divider, .ac-side-name, .ac-nav-item span, .ac-nav-group span { display: none; }
  .ac-nav-item, .ac-nav-group { justify-content: center; padding: 11px 8px; }
  .ac-save-fab {
    left: -1px; top: 100%; right: auto;
    width: calc(100% + 2px); height: 40px;
    writing-mode: horizontal-tb; letter-spacing: 1px;
    border-radius: 0 0 14px 14px;
    clip-path: inset(0 0 100% 0);
  }
  .ac-save-fab.on { clip-path: inset(0); }
  .ac-card { transition: margin-bottom 0.3s cubic-bezier(0.22, 1, 0.36, 1); }
  .ac-card:has(.ac-save-fab.on) { margin-bottom: 54px; }
}

.ac-side-user { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px 8px 0; border-top: 1px solid var(--glass-border); }
.ac-side-avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: var(--card-bg); border: 1px solid var(--glass-border); }
.ac-side-uinfo { min-width: 0; }
.ac-side-uname { font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-side-umail { font-size: 11px; color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-side { justify-content: flex-start; }
.ac-side .ac-side-nav { flex: 1; }

.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  background: rgba(120, 120, 128, 0.16);
  color: var(--text-dim);
}
.tag.green { background: rgba(48, 209, 88, 0.16); color: #30d158; }
.tag.orange { background: rgba(255, 214, 10, 0.16); color: #ffd60a; }
.tag.blue { background: rgba(10, 132, 255, 0.16); color: #0a84ff; }
.tag.red { background: rgba(255, 69, 58, 0.16); color: #ff453a; }
.tag.gray { background: rgba(120, 120, 128, 0.16); color: var(--text-dim); }
