/* Share card editor (js/sharecard.js). It is a picture editor, so it is always dark, in either app theme. */
.shc{
  position:fixed; inset:0; z-index:9000; display:flex; flex-direction:column; background:#0B0B0C; color:#F3F1EC;
  font-family:var(--font-ui, 'Manrope', system-ui, sans-serif); opacity:0; transition:opacity .18s ease;
  padding-top:env(safe-area-inset-top, 0); padding-bottom:env(safe-area-inset-bottom, 0);
}
.shc.on{ opacity:1; }
body.shc-open{ overflow:hidden; }
.shc-top{ display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 16px 8px; }
.shc-top b{ font-size:15px; font-weight:700; letter-spacing:.01em; }
.shc-x{ width:36px; height:36px; border-radius:50%; border:1px solid #2B2B2E; background:#161617; color:#F3F1EC; font-size:22px; line-height:1; cursor:pointer; }
.shc-x:focus-visible, .shc-btn:focus-visible, .shc-opt:focus-visible, .shc-sw:focus-visible, .shc-range:focus-visible, .shc-check input:focus-visible{ outline:2px solid #F4B04A; outline-offset:2px; }

.shc-stage{ position:relative; flex:1 1 auto; min-height:0; display:flex; align-items:center; justify-content:center; padding:4px 16px 10px; }
.shc-cv{ display:block; max-width:100%; max-height:100%; height:auto; width:auto; border-radius:14px; box-shadow:0 18px 50px -20px rgba(0,0,0,.8), 0 0 0 1px #2B2B2E; background:#111; }
.shc-stage.has-photo .shc-cv{ cursor:grab; }
.shc-hint{ position:absolute; left:50%; bottom:22px; transform:translateX(-50%); max-width:78%; text-align:center; padding:7px 13px; border-radius:999px; background:rgba(0,0,0,.62); color:#F3F1EC; font-size:12.5px; font-weight:600; pointer-events:none; }
.shc-hint[hidden]{ display:none; }

.shc-panel{ flex:0 0 auto; max-height:46vh; overflow:auto; padding:10px 16px 14px; border-top:1px solid #1E1E20; background:#101011; display:flex; flex-direction:column; gap:10px; }
.shc-row{ display:flex; align-items:center; gap:12px; min-height:34px; }
.shc-lbl{ flex:0 0 74px; font-size:11.5px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:#B0AEA8; }
.shc-seg{ display:flex; gap:6px; flex:1; min-width:0; }
.shc-opt{ flex:1; padding:8px 6px; border-radius:10px; border:1px solid #2B2B2E; background:#161617; color:#CFCDC7; font:600 13px var(--font-ui, system-ui); cursor:pointer; }
.shc-opt[aria-pressed="true"]{ border-color:#F4B04A; color:#F4B04A; background:rgba(244,176,74,.1); }
.shc-colors{ gap:12px; }
.shc-sw{ width:34px; height:34px; border-radius:50%; border:2px solid #2B2B2E; cursor:pointer; padding:0; }
.shc-sw[aria-pressed="true"]{ border-color:#F4B04A; box-shadow:0 0 0 2px #101011, 0 0 0 4px #F4B04A; }
.shc-sw-white{ background:#fff; }
.shc-sw-gold{ background:linear-gradient(135deg, #FBE3A6, #F4B04A 50%, #B9802B); }
.shc-sw-black{ background:#101010; border-color:#4A4A4E; }
.shc-range{ flex:1; min-width:0; accent-color:#F4B04A; }
.shc-check{ gap:10px; font-size:13px; color:#CFCDC7; cursor:pointer; }
.shc-check input{ width:18px; height:18px; accent-color:#F4B04A; }
.shc-panel.no-photo .shc-photo-only{ display:none; }
.shc input::placeholder{ color:#A9A7A1; opacity:1; }

.shc-acts{ display:flex; gap:10px; margin-top:2px; }
.shc-btn{ flex:1; padding:13px 14px; border-radius:14px; border:1px solid #2B2B2E; background:#161617; color:#F3F1EC; font:700 15px var(--font-ui, system-ui); cursor:pointer; }
.shc-btn.primary{ flex:1.4; border:0; color:#1A1205; background:linear-gradient(135deg, #FBE3A6, #F4B04A 55%, #D9962F); }
.shc-btn:disabled{ opacity:.55; }
.shc-acts .shc-btn:not(.primary){ font-size:14px; padding-left:10px; padding-right:10px; }
.shc-mirror{ flex:0 0 auto; display:inline-flex; align-items:center; justify-content:center; gap:6px; padding:13px 12px; font-size:13px; }
.shc-mirror[aria-pressed="true"]{ border-color:#F4B04A; color:#F4B04A; background:rgba(244,176,74,.1); }
.shc-mirror:focus-visible{ outline:2px solid #F4B04A; outline-offset:2px; }
@media (max-width:360px){ .shc-mirror span{ display:none; } .shc-mirror{ padding:13px 11px; } }
.shc-note{ min-height:16px; font-size:11.5px; line-height:1.4; color:#A9A7A1; text-align:center; }

/* Content / Look tabs: only the list scrolls, the Share button is always in reach */
.shc-panel{ overflow:hidden; max-height:56vh; }
.shc-tabs{ display:flex; gap:4px; padding:3px; border-radius:12px; background:#161617; flex:0 0 auto; }
.shc-tab{ flex:1; padding:8px 6px; border:0; border-radius:9px; background:transparent; color:#B0AEA8; font:700 13px var(--font-ui, system-ui); cursor:pointer; }
.shc-tab[aria-selected="true"]{ background:#242426; color:#F4B04A; }
.shc-tab:focus-visible{ outline:2px solid #F4B04A; outline-offset:1px; }
.shc-scroll{ flex:1 1 auto; min-height:0; overflow-y:auto; overscroll-behavior:contain; -webkit-overflow-scrolling:touch; }
.shc-pane{ display:flex; flex-direction:column; gap:10px; }
.shc-pane[hidden]{ display:none; }
.shc-detect{ font-size:12.5px; color:#B0AEA8; }
.shc-detect b{ color:#F4B04A; font-weight:700; }
.shc-h{ margin:6px 0 2px; font-size:11.5px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:#B0AEA8; }
.shc-list{ display:flex; flex-direction:column; gap:6px; }
.shc-it{ display:flex; align-items:center; gap:8px; min-width:0; }
.shc-it.off input[type=text]{ opacity:.45; }
.shc-tg{ flex:0 0 auto; display:flex; align-items:center; justify-content:center; width:34px; height:34px; cursor:pointer; }
.shc-tg input{ width:18px; height:18px; accent-color:#F4B04A; }
.shc-it input[type=text]{ min-width:0; height:36px; padding:0 10px; border-radius:10px; border:1px solid #2B2B2E; background:#161617; color:#F3F1EC; font:600 16px var(--font-ui, system-ui); }
.shc-it input[type=text]:focus{ outline:none; border-color:#F4B04A; }
.shc-iv{ flex:0 0 92px; width:92px; }
.shc-il, .shc-ia{ flex:1 1 0; }
.shc-ib{ flex:0 1 38%; }
.shc-text .shc-k{ flex:0 0 74px; font-size:11.5px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:#B0AEA8; }
.shc-text input{ flex:1 1 auto; }
.shc-del{ flex:0 0 auto; width:32px; height:32px; border-radius:50%; border:1px solid #2B2B2E; background:#161617; color:#CFCDC7; font-size:18px; line-height:1; cursor:pointer; }
.shc-add, .shc-reset{ align-self:flex-start; padding:8px 12px; border-radius:10px; border:1px dashed #3A3A3E; background:transparent; color:#F4B04A; font:700 13px var(--font-ui, system-ui); cursor:pointer; }
.shc-reset{ border-style:solid; border-color:#2B2B2E; color:#B0AEA8; margin-top:6px; }
.shc-add:focus-visible, .shc-reset:focus-visible, .shc-del:focus-visible{ outline:2px solid #F4B04A; outline-offset:2px; }
@media (max-width:380px){ .shc-iv{ flex-basis:92px; width:92px; } .shc-il{ font-size:15px !important; } .shc-ib{ flex-basis:34%; } .shc-it{ gap:6px; } }
@media (min-width:700px){ .shc-panel{ align-self:center; width:100%; max-width:640px; border-radius:16px 16px 0 0; } }
/* short screens (small phones, phone sideways): the card preview keeps its room, the list scrolls in a lower panel */
@media (max-height:700px){
  .shc-top{ padding:8px 16px 4px; }
  .shc-stage{ padding:2px 16px 6px; }
  .shc-panel{ max-height:40vh; padding:8px 16px 10px; gap:8px; }
  .shc-note{ display:none; }
  .shc-hint{ display:none; }
}
/* phone sideways: the card on the left, the controls on the right, so the card is not a thumbnail */
@media (max-height:520px) and (min-width:600px){
  .shc{ display:grid; grid-template-columns:minmax(0,1fr) minmax(300px,46%); grid-template-rows:auto minmax(0,1fr); padding-left:env(safe-area-inset-left, 0); padding-right:env(safe-area-inset-right, 0); }
  .shc-top{ grid-column:1 / 3; }
  .shc-stage{ grid-column:1; grid-row:2; min-height:0; }
  .shc-panel{ grid-column:2; grid-row:2; align-self:stretch; width:auto; max-width:none; max-height:none; min-height:0; border-top:0; border-left:1px solid #1E1E20; border-radius:0; }
}

/* the small share buttons that open it */
.shc-open-btn{ display:inline-flex; align-items:center; gap:7px; padding:8px 12px; border-radius:12px; border:1px solid var(--line, #2B2B2E); background:transparent; color:var(--text, #F3F1EC); font:600 12.5px var(--font-ui, system-ui); cursor:pointer; }
.shc-open-btn svg{ color:var(--gold, #F4B04A); }
.shc-open-btn:focus-visible{ outline:2px solid var(--gold, #F4B04A); outline-offset:2px; }
.shc-icon-btn{ width:34px; height:34px; padding:0; justify-content:center; border-radius:50%; flex:0 0 auto; }
.shc-hero-row{ display:flex; margin-top:10px; }
@media (prefers-reduced-motion: reduce){ .shc{ transition:none; } }
