/* Above the two utility rails (1200 / 1350), below studio overlays.
   Only opacity and transform animate; the page background is untouched. */
.xc-home-shortcut-panel {
  --hsp-bg: #fffdf8;
  --hsp-inset: #f4f1e9;
  --hsp-text: #302b22;
  --hsp-muted: #716653;
  --hsp-line: #e8e0d0;
  --hsp-accent: #80611c;
  --hsp-error: #a83232;
  --hsp-success: #216c4b;
  --hsp-shadow: 0 14px 48px #4d3e2520, 0 3px 12px #4d3e2510;
  --ac-text: var(--hsp-text);
  --ac-muted: var(--hsp-muted);
  --ac-line: var(--hsp-line);
  --ac-inset: var(--hsp-inset);
  --ac-accent: var(--hsp-accent);
  --ac-positive: var(--hsp-success);
  --ac-danger: var(--hsp-error);
  --ac-gold: #ead69a;
  --ac-gold-ink: #30260e;
  --ac-focus: var(--hsp-accent);
  position: fixed;
  z-index: 1360;
  width: min(340px, calc(100vw - 24px));
  box-sizing: border-box;
  margin: 0;
  padding: 20px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  border: 1px solid var(--hsp-line);
  border-radius: 18px;
  background: var(--hsp-bg);
  color: var(--hsp-text);
  box-shadow: var(--hsp-shadow);
  font: 13px/1.65 "Space Grotesk", "PingFang SC", "Microsoft YaHei", sans-serif;
  text-align: left;
  isolation: isolate;
}
html:is(.theme-dark, .studio-theme-dark) .xc-home-shortcut-panel {
  --hsp-bg: #242320;
  --hsp-inset: #1c1c1a;
  --hsp-text: #f3ede1;
  --hsp-muted: #bcb2a1;
  --hsp-line: #454137;
  --hsp-accent: #ead69a;
  --hsp-error: #ffaca4;
  --hsp-success: #98d3b4;
  --hsp-shadow: 0 16px 48px #0006, 0 3px 12px #0004;
}
.xc-home-shortcut-panel[hidden], .xc-home-shortcut-panel [hidden] { display: none !important; }
.xc-home-shortcut-panel * { box-sizing: border-box; }
.xc-home-shortcut-panel .hsp-head { display: flex; align-items: flex-start; gap: 11px; margin: 0 0 20px; padding: 0; border: 0; background: none; }
.hsp-head > div { flex: 1; min-width: 0; }
.xc-home-shortcut-panel h2 { margin: 1px 0 5px; font-size: 16px; line-height: 1.45; font-weight: 650; letter-spacing: -.2px; color: var(--hsp-text); }
.hsp-head p { margin: 0; font-size: 12px; color: var(--hsp-muted); line-height: 1.65; }
.hsp-icon { display: grid; place-items: center; flex: 0 0 34px; height: 34px; border-radius: 10px; background: var(--hsp-inset); color: var(--hsp-accent); }
.hsp-icon svg { width: 18px; height: 18px; }
.xc-home-shortcut-panel button { font-family: inherit; cursor: pointer; white-space: nowrap; }
.xc-home-shortcut-panel .hsp-close { display: grid; place-items: center; flex: 0 0 28px; height: 28px; padding: 0; margin: -5px -6px 0 0; border: 0; border-radius: 8px; background: transparent; color: var(--hsp-muted); font-size: 22px; font-weight: 400; line-height: 1; }
.hsp-close:hover { background: var(--hsp-inset); color: var(--hsp-text); }
.hsp-note, .hsp-loading, .hsp-error { margin: 0 0 16px; color: var(--hsp-muted); font-size: 13px; line-height: 1.75; overflow-wrap: anywhere; }
.hsp-error { color: var(--hsp-error); }
.hsp-steps { display: grid; gap: 10px; margin: 0 0 20px; padding-left: 20px; color: var(--hsp-muted); }
.hsp-steps li::marker { color: var(--hsp-accent); font-variant-numeric: tabular-nums; }
.xc-home-shortcut-panel .hsp-action,
.xc-home-shortcut-panel .ac-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 42px; padding: 9px 14px; margin: 0; border: 1px solid var(--hsp-line); border-radius: 10px;
  background: var(--hsp-inset); color: var(--hsp-text); font-size: 13px; font-weight: 550; line-height: 1.4; text-decoration: none;
}
.xc-home-shortcut-panel .hsp-action,
.xc-home-shortcut-panel .ac-primary { border-color: transparent; background: #ead69a; color: #30260e; }
.xc-home-shortcut-panel .hsp-action, .xc-home-shortcut-panel .ac-full { width: 100%; }
.hsp-action > span { margin-left: auto; font-size: 16px; }
.xc-home-shortcut-panel .hsp-action:hover, .xc-home-shortcut-panel .ac-primary:hover { background: #e2c983; }
.xc-home-shortcut-panel button:disabled { opacity: .55; cursor: default; }
.xc-home-shortcut-panel :is(button, input, a):focus-visible { outline: 2px solid var(--hsp-accent); outline-offset: 3px; }
.xc-home-shortcut-panel .ac-field { display: grid; gap: 8px; margin-bottom: 16px; }
.xc-home-shortcut-panel .ac-field label { display: block; font-size: 12px; font-weight: 550; color: var(--hsp-text); }
.xc-home-shortcut-panel .ac-field input {
  width: 100%; min-width: 0; height: 46px; margin: 0; padding: 11px 12px;
  border: 1px solid var(--hsp-line); border-radius: 10px; background: var(--hsp-inset); color: var(--hsp-text);
  font-family: inherit; font-size: 14px; line-height: 1.5; letter-spacing: .5px; box-shadow: none;
}
.xc-home-shortcut-panel .ac-field input::placeholder { color: var(--hsp-muted); opacity: 1; font-size: 12px; letter-spacing: 0; }
.xc-home-shortcut-panel .ac-field input[aria-invalid="true"] { border-color: var(--hsp-error); }
.xc-home-shortcut-panel .ac-help { color: var(--hsp-muted); font-size: 11.5px; line-height: 1.65; }
.xc-home-shortcut-panel .ac-message { margin: 12px 0 0; font-size: 12px; line-height: 1.7; color: var(--hsp-muted); overflow-wrap: anywhere; }
.xc-home-shortcut-panel .ac-message:empty { display: none; }
.xc-home-shortcut-panel .ac-message[data-tone="error"] { color: var(--hsp-error); }
.xc-home-shortcut-panel .ac-message[data-tone="success"] { color: var(--hsp-success); }
.xc-home-shortcut-panel .ac-gift-note { display: block; margin: 0 0 18px; padding: 16px; border: 0; border-radius: 12px; background: var(--hsp-inset); }
.xc-home-shortcut-panel .ac-gift-stamp { display: none; }
.xc-home-shortcut-panel .ac-gift-note strong { display: block; font-size: 16px; color: var(--hsp-accent); }
.xc-home-shortcut-panel .ac-gift-note p { margin: 6px 0 0; font-size: 12px; color: var(--hsp-muted); }
.xc-home-shortcut-panel .ac-success { margin: 0; padding: 0; border: 0; background: none; text-align: left; }
.xc-home-shortcut-panel .ac-success h3 { margin: 0 0 8px; font-size: 14px; color: var(--hsp-success); }
.xc-home-shortcut-panel .ac-amount { margin: 4px 0; font-size: 36px; line-height: 1.25; color: var(--hsp-accent); font-variant-numeric: tabular-nums; }
.xc-home-shortcut-panel .ac-amount small { margin-left: 6px; font-size: 12px; }
.xc-home-shortcut-panel .ac-success p { color: var(--hsp-muted); font-size: 12px; line-height: 1.75; margin: 10px 0 16px; }
.xc-home-shortcut-panel .ac-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.xc-home-shortcut-panel .hsp-footer { padding: 13px 0 0; margin-top: 18px; border-top: 1px solid var(--hsp-line); background: none; }
.hsp-footer button { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 28px; margin: 0; padding: 0; border: 0; background: none; color: var(--hsp-muted); font-size: 12px; }
.hsp-footer button:hover { color: var(--hsp-accent); }
.xc-home [data-home-quick-panel] .xc-home-pill-tip { display: none !important; }
.xc-home [data-home-quick-panel][aria-expanded="true"] { background: var(--gold-soft-bg) !important; color: var(--gold) !important; }
@media (prefers-reduced-motion: no-preference) {
  .xc-home-shortcut-panel:not([hidden]) { animation: hsp-enter .16s ease-out; }
  @keyframes hsp-enter { from { opacity: 0; transform: translateX(-5px); } to { opacity: 1; transform: translateX(0); } }
}
@media (max-width: 760px) {
  .xc-home-shortcut-panel { width: min(340px, calc(100vw - 24px)); padding: 18px; border-radius: 16px; }
  .xc-home-shortcut-panel .ac-field input { font-size: 16px; }
  .xc-home-shortcut-panel .hsp-close { flex-basis: 34px; height: 34px; }
  .xc-home-shortcut-panel .hsp-footer button { min-height: 36px; }
}
