/* WASecret design apps: shared full-screen editor frame (see editor-shell.js). Light theme, our own colours. */
.ad-shell {
  --ads-grad: linear-gradient(90deg, #14b8a6 0%, #2f80ff 40%, #5b4cf0 75%, #8b5cf6 100%);
  --ads-accent: #5b4cf0; --ads-accent-2: #2f80ff; --ads-fg: #1b2133; --ads-muted: #657089; --ads-line: #e4e6ef;
  --ads-soft: #f4f3ff; --ads-canvas: #ebedf3; --ads-white: #fff; --ads-radius: 12px;
  --ads-shadow: 0 1px 2px rgba(27, 33, 51, .06), 0 6px 22px rgba(27, 33, 51, .1);
  --ads-top: 56px; --ads-rail: 72px; --ads-pw: 340px; --ads-bot: 48px;
  --ads-ease: cubic-bezier(.2, .8, .2, 1);
  position: fixed; inset: 0; z-index: 5; height: 100vh; height: 100dvh; width: 100%;
  display: grid; overflow: hidden;
  grid-template-columns: var(--ads-rail) auto minmax(0, 1fr);
  grid-template-rows: var(--ads-top) minmax(0, 1fr) var(--ads-bot);
  grid-template-areas: "top top top" "rail panel canvas" "rail panel bottom";
  background: var(--ads-canvas); color: var(--ads-fg);
  font: 14px/1.4 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
html.ad-shell-on, html.ad-shell-on body { overflow: hidden !important; height: 100%; overscroll-behavior: none; }
.ad-shell *, .ad-shell *::before, .ad-shell *::after { box-sizing: border-box; }
.ad-shell [hidden] { display: none !important; }
/* Zero-specificity reset: every .ads-* class rule (one class) must win over it. (A ".ad-shell button" reset outranked
   ".ads-share { color }" and made the Share text and icon white on white, and reset the rail/menu font sizes.) */
:where(.ad-shell) :where(button, input, select, textarea) { font: inherit; color: inherit; }
:where(.ad-shell) :where(button) { cursor: pointer; }
.ad-shell :focus-visible { outline: 2px solid var(--ads-accent); outline-offset: 2px; }
.ads-i { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; display: inline-block; }
.ads-i .f { fill: currentColor; stroke: none; }
.ads-grow { flex: 1 1 auto; min-width: 8px; }
.ads-muted { color: var(--ads-muted); margin: 6px 0; font-size: 13px; }

/* ---------- top bar */
.ads-top { grid-area: top; display: flex; align-items: center; gap: 4px; padding: 0 10px; background: var(--ads-grad); color: #fff; min-width: 0; position: relative; z-index: 3; }
.ads-top :focus-visible { outline-color: #fff; }
.ads-tb { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 12px; border: 0; border-radius: 9px; background: transparent; color: #fff; font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; transition: background .15s; }
.ads-tb:hover, .ads-tb[aria-expanded="true"], .ads-tb.on { background: rgba(255, 255, 255, .18); }
.ads-icon-only { width: 44px; padding: 0; justify-content: center; }
.ads-sq { width: 40px; padding: 0; justify-content: center; border: 1px solid rgba(255, 255, 255, .38); position: relative; }
.ads-chev { width: 18px; height: 18px; opacity: .9; }
.ads-sep { width: 1px; height: 24px; background: rgba(255, 255, 255, .35); margin: 0 6px; }
.ads-save { display: inline-flex; align-items: center; gap: 6px; padding: 0 8px; height: 40px; color: #fff; font-size: 13px; white-space: nowrap; opacity: .95; }
.ads-save[data-state="saving"] .ads-i { animation: ads-pulse 1s ease-in-out infinite; }
.ads-save[data-state="unsaved"] { color: #fff7d6; }
@keyframes ads-pulse { 50% { opacity: .35; } }
.ads-title { min-width: 120px; width: 300px; max-width: 34vw; height: 38px; padding: 0 10px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: #fff; font-size: 15px; font-weight: 500; text-align: right; text-overflow: ellipsis; }
@supports (field-sizing: content) { .ads-title { field-sizing: content; width: auto; } }
.ads-title::placeholder { color: rgba(255, 255, 255, .78); }
.ads-title:hover { border-color: rgba(255, 255, 255, .45); }
.ads-title:focus { outline: none; background: #fff; color: var(--ads-fg); text-align: left; border-color: #fff; }
.ads-title[readonly] { pointer-events: none; }
.ads-avatar { display: inline-grid; place-items: center; width: 38px; height: 38px; margin: 0 4px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .7); background: #ff7a59; color: #fff; font-weight: 700; font-size: 16px; flex: none; }
.ads-avatar.sm { width: 26px; height: 26px; font-size: 12px; border: 0; margin: 0; }
.ads-badge { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #ff7a59; color: #fff; font: 700 11px/18px system-ui, sans-serif; text-align: center; }
.ads-share { display: inline-flex; align-items: center; gap: 7px; height: 40px; margin-left: 6px; padding: 0 16px; border: 0; border-radius: 9px; background: #fff; color: var(--ads-fg); font-weight: 650; font-size: 15px; box-shadow: 0 2px 8px rgba(27, 33, 51, .18); white-space: nowrap; }
.ads-share:hover { background: #f4f3ff; }
.ads-top .ads-share, .ads-top .ads-share .ads-l, .ads-top .ads-share .ads-i { color: var(--ads-fg); }
.ads-share .ads-i { width: 20px; height: 20px; }
.ads-mob { display: none; }

/* ---------- rail */
.ads-rail { grid-area: rail; display: flex; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px 0; background: #fff; border-right: 1px solid var(--ads-line); overflow-y: auto; overflow-x: hidden; scrollbar-width: none; z-index: 2; }
.ads-rb { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px 8px; border: 0; background: none; color: #3d465c; font-size: 11.5px; font-weight: 550; }
.ads-rb .ads-i { box-sizing: content-box; padding: 7px; border-radius: 11px; transition: background .15s, color .15s; }
.ads-rb:hover .ads-i { background: #f0f1f7; }
.ads-rb.on { color: var(--ads-fg); }
.ads-rb.on .ads-i { background: var(--ads-grad); color: #fff; box-shadow: 0 4px 12px rgba(91, 76, 240, .3); }
.ads-rl { max-width: 68px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- side panel */
.ads-panel { grid-area: panel; position: relative; width: var(--ads-pw); background: #fff; border-right: 1px solid var(--ads-line); display: flex; flex-direction: column; min-height: 0; z-index: 2; }
.ads-collapsed .ads-panel { width: 0; border-right: 0; }
.ads-collapsed .ads-panel > :not(.ads-handle) { display: none; }
.ads-phead { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 16px 0; }
.ads-plain-head .ads-phead { display: none; }
.ads-ptitle { margin: 0; font-size: 16px; font-weight: 700; }
.ads-pclose { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 9px; background: none; color: var(--ads-muted); }
.ads-pclose:hover { background: #f0f1f7; color: var(--ads-fg); }
.ads-pscroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 14px 16px 24px; }
.ads-handle { position: absolute; top: 50%; right: -16px; transform: translateY(-50%); z-index: 4; display: grid; place-items: center; width: 16px; height: 64px; padding: 0; border: 1px solid var(--ads-line); border-left: 0; border-radius: 0 12px 12px 0; background: #fff; color: #3d465c; box-shadow: 4px 0 10px rgba(27, 33, 51, .06); }
.ads-handle .ads-i { width: 16px; height: 16px; transition: transform .2s; }
.ads-handle:hover { color: var(--ads-accent); }
.ads-collapsed .ads-handle .ads-i { transform: rotate(180deg); }
.ads-grip { display: none; }
.ads-h3 { margin: 18px 0 10px; font-size: 15px; font-weight: 700; }
.ads-pbody > .ads-h3:first-child, .ads-tlist > .ads-tsec:first-child .ads-h3 { margin-top: 6px; }

/* search */
.ads-search { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px; border: 1.5px solid #d9dcea; border-radius: 12px; background: #fff; color: var(--ads-muted); transition: border-color .15s, box-shadow .15s; }
.ads-search:focus-within { border-color: var(--ads-accent); box-shadow: 0 0 0 3px rgba(91, 76, 240, .15); }
.ads-search-in { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 14.5px; }
.ads-search .ads-i { width: 20px; height: 20px; }
.ads-tlist { margin-top: 8px; }
.ads-chips { margin: 10px -16px 0 0; }
.ads-chiprow { display: flex; gap: 6px; overflow-x: auto; padding: 2px 16px 6px 0; scrollbar-width: none; }
.ads-chiprow::-webkit-scrollbar { display: none; }
.ads-fchip { flex: none; height: 32px; padding: 0 12px; border: 1px solid #d9dcea; border-radius: 16px; background: #fff; color: #3d465c; font-size: 13px; font-weight: 550; white-space: nowrap; }
.ads-fchip:hover { border-color: #cfc9ff; background: var(--ads-soft); }
.ads-fchip.on { border-color: transparent; background: var(--ads-fg); color: #fff; }
.ads-tcount { margin: 8px 0 0; color: var(--ads-muted); font-size: 12.5px; font-weight: 600; }
.ads-more { margin-top: 14px; }

/* template + generic cards */
.ads-tgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ads-tcard { display: flex; flex-direction: column; gap: 6px; padding: 0; border: 0; background: none; text-align: left; min-width: 0; }
.ads-tthumb { display: block; contain: content; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: #f3f4f8; border: 1px solid var(--ads-line); transition: transform .15s var(--ads-ease), box-shadow .15s; }
.ads-tthumb > svg, .ads-tthumb > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ads-contain > img { object-fit: contain; }
.ads-tcard:hover .ads-tthumb { transform: translateY(-2px); box-shadow: var(--ads-shadow); border-color: #cfc9ff; }
.ads-tcard.busy .ads-tthumb { opacity: .55; }
.ads-tname { font-size: 12.5px; font-weight: 550; color: #3d465c; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* buttons, inputs */
.ads-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; padding: 7px 14px; border: 1px solid #d9dcea; border-radius: 10px; background: #fff; color: var(--ads-fg); font-weight: 600; text-decoration: none; transition: background .15s, border-color .15s; }
.ads-btn:hover { background: var(--ads-soft); border-color: #cfc9ff; }
.ads-btn.primary { background: var(--ads-grad); border-color: transparent; color: #fff; box-shadow: 0 4px 12px rgba(91, 76, 240, .25); }
.ads-btn.primary:hover { filter: brightness(1.05); }
.ads-btn.on { border-color: var(--ads-accent); background: var(--ads-soft); color: var(--ads-accent); }
.ads-btn.sm { min-height: 30px; padding: 4px 10px; font-size: 12.5px; }
.ads-btn.sm .ads-i { width: 16px; height: 16px; }
.ads-btn:disabled { opacity: .5; cursor: default; }
.ads-block { display: flex; width: 100%; margin: 12px 0; }
.ads-link { display: inline-flex; align-items: center; gap: 5px; border: 0; background: none; color: var(--ads-accent); font-weight: 600; font-size: 13px; padding: 6px 0; }
.ads-link .ads-i { width: 16px; height: 16px; }
.ads-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.ads-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.ads-in, .ads-ta { width: 100%; border: 1.5px solid #d9dcea; border-radius: 10px; padding: 8px 10px; background: #fff; }
.ads-in { height: 38px; }
.ads-ta { resize: vertical; min-height: 70px; line-height: 1.45; }
.ads-in:focus, .ads-ta:focus { outline: none; border-color: var(--ads-accent); box-shadow: 0 0 0 3px rgba(91, 76, 240, .15); }
.ads-notes { min-height: 260px; }
.ads-x { display: inline-grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 8px; background: none; color: var(--ads-muted); flex: none; }
.ads-x:hover, .ads-x.sure { background: #ffe9e4; color: #c2410c; }
.ads-x .ads-i { width: 18px; height: 18px; }

/* brand */
.ads-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.ads-swatch { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(27, 33, 51, .15); background: var(--c, #fff); padding: 0; position: relative; display: grid; place-items: center; color: var(--ads-muted); }
.ads-swatch:hover { transform: scale(1.06); }
.ads-swadd { border-style: dashed; background: #fff; cursor: pointer; }
.ads-colorin { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.ads-fontbtn { display: flex; flex-direction: column; align-items: flex-start; width: 100%; margin-bottom: 8px; padding: 10px 12px; border: 1px solid var(--ads-line); border-radius: 10px; background: #fff; text-align: left; }
.ads-fontbtn b { font-size: 18px; }
.ads-fontbtn small { color: var(--ads-muted); font-family: system-ui, sans-serif; }
.ads-fontbtn:hover { border-color: #cfc9ff; background: var(--ads-soft); }

/* uploads */
.ads-drop { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 18px 12px; border: 2px dashed #cfd3e3; border-radius: 14px; background: #fafaff; text-align: center; cursor: pointer; position: relative; }
.ads-drop.on, .ads-drop:hover { border-color: var(--ads-accent); background: var(--ads-soft); }
.ads-drop:focus-within { outline: 2px solid var(--ads-accent); outline-offset: 2px; }
.ads-drop .ads-i { width: 30px; height: 30px; color: var(--ads-accent); }
.ads-drop small { color: var(--ads-muted); }
.ads-file { position: absolute; width: 1px; height: 1px; opacity: 0; }
.ads-upitem { position: relative; }
.ads-upitem .ads-x { position: absolute; top: 4px; right: 4px; background: rgba(255, 255, 255, .92); }

/* projects */
.ads-pitem { display: flex; align-items: center; gap: 4px; margin-bottom: 6px; }
.ads-prow { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 6px; border: 1px solid transparent; border-radius: 10px; background: none; text-align: left; }
.ads-prow:hover, .ads-prow.on { background: var(--ads-soft); border-color: #e2deff; }
.ads-prow b, .ads-prow small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ads-prow small { color: var(--ads-muted); font-size: 12px; }
.ads-pthumb { display: grid; place-items: center; width: 64px; height: 44px; flex: none; border-radius: 8px; overflow: hidden; background: #f0f1f7; color: var(--ads-muted); }
.ads-pthumb img, .ads-pthumb svg:not(.ads-i) { width: 100%; height: 100%; object-fit: cover; }

/* apps */
.ads-apps { display: grid; gap: 6px; }
.ads-app { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 12px; color: var(--ads-fg); text-decoration: none; }
.ads-app:hover { background: var(--ads-soft); }
.ads-app b, .ads-app small { display: block; }
.ads-app small { color: var(--ads-muted); font-size: 12px; }
.ads-appic { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--ads-grad); color: #fff; }
.ads-app:nth-child(3n+2) .ads-appic { background: linear-gradient(135deg, #2f80ff, #14b8a6); }
.ads-app:nth-child(3n) .ads-appic { background: linear-gradient(135deg, #8b5cf6, #ff7a59); }

/* Brand / Uploads / Projects / Apps in Canva's structure (panels/shell-panels.js) */
.ads-ksec { margin-top: 4px; }
.ads-khead { display: flex; align-items: center; gap: 8px; }
.ads-khead .ads-h3 { flex: 1 1 auto; }
.ads-kadd { display: inline-grid; place-items: center; width: 30px; height: 30px; flex: none; border: 0; border-radius: 8px; background: none; color: var(--ads-fg); }
.ads-kadd:hover { background: var(--ads-soft); color: var(--ads-accent); }
.ads-kadd .ads-i { width: 18px; height: 18px; }
.ads-klink { border: 0; background: none; padding: 4px 2px; color: var(--ads-accent); font-weight: 600; font-size: 13px; }
.ads-klink:hover { text-decoration: underline; }
.ads-kpickrow { position: relative; display: grid; gap: 6px; }
.ads-kitpick { display: flex; align-items: center; gap: 10px; width: 100%; height: 48px; padding: 0 12px 0 8px; border: 1.5px solid #d9dcea; border-radius: 24px; background: #fff; text-align: left; }
.ads-kitpick:hover, .ads-kitpick[aria-expanded="true"] { border-color: #cfc9ff; }
.ads-kitpick b { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.ads-kitdot { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 50%; overflow: hidden; background: var(--c); }
.ads-kitdot img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.ads-allassets { display: flex; align-items: center; justify-content: space-between; margin: 10px 0 2px; padding: 6px 6px 6px 14px; border-radius: 12px; background: var(--ads-soft); }
.ads-allassets b { font-weight: 600; }
.ads-kguide { margin: 0; padding: 10px 12px; border-radius: 10px; background: #f7f7fb; white-space: pre-wrap; font-size: 13px; }
.ads-kgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ads-kgrid4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ads-kgrid4 .ads-tname { display: none; }
.ads-kgrid4 .ads-tthumb { aspect-ratio: 1; }
.ads-kgrid > .ads-muted, .ads-kgrid > .ads-kempty { grid-column: 1 / -1; }
.ads-kempty { display: flex; align-items: center; justify-content: center; min-height: 64px; border: 2px dashed #d9dcea; border-radius: 12px; background: #fafaff; color: var(--ads-accent); font-weight: 600; }
.ads-kempty:hover { border-color: var(--ads-accent); background: var(--ads-soft); }
.ads-kpal { display: flex; align-items: center; justify-content: space-between; margin: 8px 0 6px; color: var(--ads-muted); }
.ads-kpal small { font-size: 12px; font-weight: 600; }
.ads-swdel { color: #fff; }
.ads-swdel .ads-i { width: 16px; height: 16px; filter: drop-shadow(0 0 2px rgba(0, 0, 0, .6)); }
.ads-frow { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px; margin-bottom: 8px; }
.ads-frow .ads-fontbtn { margin: 0; }
.ads-frow .ads-fsel { grid-column: 1 / -1; }
.ads-fontbtn.ads-f-heading b { font-size: 22px; }
.ads-fontbtn.ads-f-subheading b { font-size: 17px; }
.ads-fontbtn.ads-f-body b { font-size: 14px; font-weight: 400; }
.ads-kwrap { flex-wrap: wrap; margin-bottom: 8px; }
.ads-uptop { display: flex; gap: 8px; }
.ads-upbtn { flex: 1 1 auto; position: relative; cursor: pointer; min-height: 44px; }
.ads-upbtn:focus-within { outline: 2px solid var(--ads-accent); outline-offset: 2px; }
.ads-upmorebtn { width: 44px; min-height: 44px; padding: 0; }
.ads-kpane { display: grid; gap: 8px; margin-top: 10px; padding: 12px; border: 1px solid #e2deff; border-radius: 12px; background: var(--ads-soft); }
.ads-kpane .ads-row { margin: 0; }
.ads-recv { width: 100%; aspect-ratio: 16 / 9; border-radius: 10px; background: #111827; object-fit: cover; }
.ads-kuploads .ads-psearch, .ads-kprojects .ads-psearch, .ads-kapps .ads-psearch { margin-top: 10px; }
.ads-ktabs { display: flex; gap: 2px; margin: 10px 0 4px; border-bottom: 1px solid var(--ads-line); overflow-x: auto; scrollbar-width: none; }
.ads-ktab { flex: none; padding: 9px 10px 8px; border: 0; border-bottom: 2.5px solid transparent; background: none; color: #3d465c; font-weight: 600; font-size: 13.5px; }
.ads-ktab:hover { color: var(--ads-fg); }
.ads-ktab.on { border-bottom-color: var(--ads-accent); color: var(--ads-fg); }
.ads-pbody.ads-upon { outline: 2px dashed var(--ads-accent); outline-offset: -6px; border-radius: 12px; background: var(--ads-soft); }
.ads-upitem .ads-upmore { position: absolute; top: 4px; right: 4px; display: inline-grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 8px; background: rgba(255, 255, 255, .94); color: var(--ads-fg); opacity: 0; box-shadow: 0 1px 4px rgba(27, 33, 51, .18); transition: opacity .12s; }
.ads-upitem:hover .ads-upmore, .ads-upitem:focus-within .ads-upmore, .ads-upmore[aria-expanded="true"] { opacity: 1; }
@media (hover: none) { .ads-upitem .ads-upmore { opacity: 1; } }
.ads-upmore .ads-i { width: 18px; height: 18px; }
.ads-ucard .ads-tthumb { position: relative; display: grid; place-items: center; }
.ads-udur { position: absolute; left: 6px; bottom: 6px; padding: 1px 6px; border-radius: 6px; background: rgba(17, 24, 39, .75); color: #fff; font-size: 11px; font-weight: 600; }
.ads-uvicon .ads-i, .ads-uaicon .ads-i { width: 30px; height: 30px; color: var(--ads-accent); }
.ads-kalist { display: grid; gap: 6px; }
.ads-kalist .ads-upitem { display: flex; align-items: center; gap: 6px; padding-right: 34px; }
.ads-kalist .ads-tcard { flex-direction: row; align-items: center; flex: 1 1 auto; gap: 10px; }
.ads-kalist .ads-tthumb { width: 48px; height: 48px; aspect-ratio: auto; flex: none; }
.ads-kalist .ads-upmore { top: 50%; transform: translateY(-50%); }
.ads-uplay { display: inline-grid; place-items: center; width: 34px; height: 34px; flex: none; border: 0; border-radius: 50%; background: var(--ads-soft); color: var(--ads-accent); }
.ads-kback { display: flex; align-items: center; gap: 6px; flex: 1 1 auto; min-width: 0; margin: 10px 0; padding: 4px 6px 4px 2px; border: 0; border-radius: 8px; background: none; color: var(--ads-fg); font-size: 15px; text-align: left; }
.ads-kback b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ads-kback:hover { background: #f0f1f7; }
.ads-fmore { position: static; opacity: 1; box-shadow: none; }
.ads-fupl { position: relative; margin-bottom: 10px; cursor: pointer; }
.ads-flist { display: grid; gap: 4px; }
.ads-folder { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px; border: 1px solid transparent; border-radius: 10px; background: none; text-align: left; }
.ads-folder:hover { background: var(--ads-soft); border-color: #e2deff; }
.ads-folder b, .ads-folder small { display: block; }
.ads-folder small { color: var(--ads-muted); font-size: 12px; }
.ads-fic { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 10px; background: #fff4e0; color: #b45309; }
.ads-rename { margin-top: 6px; }
.ads-kprojects .ads-pitem { position: relative; }
.ads-kprojects .ads-pitem .ads-upmore { position: static; opacity: .7; box-shadow: none; background: none; }
.ads-kprojects .ads-pitem:hover .ads-upmore { opacity: 1; }
.ads-kprojects a.ads-prow { color: var(--ads-fg); text-decoration: none; }
.ads-kfeat { position: relative; display: grid; gap: 6px; margin-top: 12px; padding: 16px; border-radius: 16px; background: linear-gradient(135deg, #2f80ff, #14b8a6); color: #fff; }
.ads-kfeat b { font-size: 18px; line-height: 1.2; }
.ads-kfeat p { margin: 0 0 4px; font-size: 13px; opacity: .95; }
.ads-kfeat .ads-btn { justify-self: start; background: #fff; color: var(--ads-fg); box-shadow: none; }
.ads-kfchip { justify-self: start; padding: 1px 8px; border-radius: 8px; background: rgba(17, 24, 39, .35); font-size: 11px; font-weight: 700; }
.ads-kpicks { display: grid; grid-auto-flow: column; grid-auto-columns: 62%; gap: 10px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.ads-kpick { display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; min-height: 96px; padding: 12px; border-radius: 14px; background: var(--c); color: #fff; text-decoration: none; }
.ads-kpick small { opacity: .9; font-size: 12px; }
.ads-kpick:hover { filter: brightness(1.06); }
.ads-kapps .ads-chiprow { margin: 0 -16px 10px 0; }
.ads-app2 { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 12px; color: var(--ads-fg); text-decoration: none; }
.ads-app2:hover { background: var(--ads-soft); }
.ads-app2 b, .ads-app2 small { display: block; }
.ads-app2 small { color: var(--ads-muted); font-size: 12px; }

/* Brand: two columns like Canva (menu | content); the panel is wider while Brand is open */
@media (min-width: 760px) { .ad-shell[data-panel="brand"] { --ads-pw: 580px; } }
@media (min-width: 760px) and (max-width: 1100px) { .ad-shell[data-panel="brand"] { --ads-pw: 500px; } }
.ads-kbrand2 { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 16px; align-items: start; }
.ads-bnav { position: sticky; top: 0; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; align-self: start; min-width: 0; background: #fff; }
.ads-bsearch .ads-search-in { width: 100%; }
.ads-bsearch { height: 40px; }
.ads-kbrand2 .ads-kitpick { height: 44px; border-radius: 12px; }
.ads-kbrand2 .ads-kitdot { width: 26px; height: 26px; }
.ads-bmenu { display: flex; flex-direction: column; gap: 2px; margin-top: 2px; }
.ads-bmrow { display: flex; align-items: center; gap: 2px; }
.ads-bmrow .ads-bmi { flex: 1 1 auto; width: auto; min-width: 0; }
.ads-bmi { display: block; width: 100%; padding: 8px 10px; border: 0; border-radius: 9px; background: none; color: #3d465c; font-size: 14px; text-align: left; }
.ads-bmi:hover { background: #f0f1f7; color: var(--ads-fg); }
.ads-bmi.on { background: var(--ads-soft); color: var(--ads-fg); font-weight: 600; }
.ads-bsep { display: block; height: 1px; margin: 6px 4px; background: var(--ads-line); }
.ads-bmain { min-width: 0; }
.ads-bmain > .ads-ksec:first-of-type .ads-h3 { margin-top: 6px; }
.ads-bhero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; text-align: center; }
.ads-bhero > svg { display: block; width: 100%; height: auto; border-radius: 14px; }
.ads-bhero > svg, .ads-uempty svg, .ads-qrhost svg { fill: initial; stroke: none; stroke-width: initial; stroke-linecap: initial; stroke-linejoin: initial; }
.ads-bhero p { margin: 0; color: #3d465c; font-size: 13.5px; }
.ads-bhero .ads-row { justify-content: center; margin: 0; }
.ads-bhero .ads-block { margin: 0; }
.ads-bmanage { margin-top: 10px; padding-top: 4px; border-top: 1px solid var(--ads-line); }
.ads-bmanage .ads-row2 { margin-bottom: 6px; }
.ads-bmanage .ads-klink { display: block; padding: 6px 0; }
@media (max-width: 759.98px) {
  .ads-kbrand2 { grid-template-columns: 1fr; gap: 10px; }
  .ads-bnav { position: static; }
  .ads-bmenu { flex-direction: row; overflow-x: auto; scrollbar-width: none; gap: 4px; }
  .ads-bmenu .ads-bmi, .ads-bmrow { flex: none; width: auto; white-space: nowrap; }
  .ads-bsep { display: none; }
}
/* Uploads: Record yourself + empty state */
.ads-recbtn { margin: 8px 0 0; }
.ads-uempty { display: grid; justify-items: center; gap: 6px; padding: 18px 8px 8px; text-align: center; }
.ads-uempty svg { width: 200px; height: auto; }
.ads-uempty b { font-size: 15px; }
.ads-uempty p { margin: 0; color: var(--ads-muted); font-size: 13px; max-width: 260px; }
/* Projects: picker row, design cards, folder tiles */
.ads-ppickrow { display: flex; gap: 8px; margin-top: 10px; }
.ads-ppick { flex: 1 1 auto; min-width: 0; height: 44px; border-radius: 12px; }
.ads-pdot { background: linear-gradient(135deg, #ff7a59, #e11d48); color: #fff; font-size: 12px; font-weight: 700; width: 26px; height: 26px; }
.ads-ppickrow .ads-btn { min-height: 44px; }
.ads-pgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ads-kprojects .ads-pcitem { position: relative; display: block; margin: 0; }
.ads-pcard { display: flex; flex-direction: column; align-items: stretch; gap: 6px; width: 100%; padding: 0; border: 0; background: none; text-align: left; }
.ads-kprojects .ads-pcard .ads-pthumb { width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: 10px; border: 1px solid var(--ads-line); }
.ads-kprojects .ads-pcard:hover, .ads-kprojects .ads-pcard.on { background: none; border-color: transparent; }
.ads-pcard:hover .ads-pthumb, .ads-pcard.on .ads-pthumb { border-color: #cfc9ff; box-shadow: var(--ads-shadow); }
.ads-pctext b, .ads-pctext small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ads-pctext b { font-size: 13px; }
.ads-pctext small { color: var(--ads-muted); font-size: 11.5px; }
.ads-kprojects .ads-pcitem .ads-upmore { position: absolute; top: 6px; right: 6px; background: rgba(255, 255, 255, .94); box-shadow: 0 1px 4px rgba(27, 33, 51, .18); opacity: 0; }
.ads-kprojects .ads-pcitem:hover .ads-upmore, .ads-kprojects .ads-pcitem:focus-within .ads-upmore { opacity: 1; }
.ads-pstar { position: absolute; top: 8px; left: 8px; color: #f59e0b; font-size: 16px; text-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.ads-fnew { background: #fff; border: 1.5px dashed #cfd3e3; color: var(--ads-fg); }
.ads-fstar { background: #ece9ff; color: var(--ads-accent); font-size: 18px; }
/* Apps: tools for this design, quick tools, AI tools */
.ads-kowntools { display: grid; gap: 6px; }
.ads-qtools { display: grid; gap: 4px; }
.ads-qtool, .ads-soonapp { width: 100%; border: 0; background: none; text-align: left; }
.ads-qtool .ads-appic, .ads-aitools .ads-appic { background: var(--ads-soft); color: var(--ads-accent); }
.ads-soonapp { position: relative; padding-right: 92px; }
.ads-soonbadge { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); padding: 1px 8px; border-radius: 9px; background: #fff1d6; color: #8a4b00; font-size: 11px; font-weight: 700; }
.ads-qrhost .kt-form { margin: 6px 0 10px; }
.ads-kown { margin-top: 14px; border-top: 1px solid var(--ads-line); }
.ads-kownsum { padding: 12px 2px; font-weight: 700; font-size: 14px; cursor: pointer; color: #3d465c; }
.ads-kown[open] .ads-kownsum { color: var(--ads-fg); }

/* translate, comments */
.ads-status { min-height: 1.4em; }
.ads-out { margin-top: 8px; padding: 10px 12px; border-radius: 10px; background: var(--ads-soft); border: 1px solid #e2deff; white-space: pre-wrap; }
.ads-clist { margin-top: 12px; }
.ads-citem { padding: 10px 12px; border: 1px solid var(--ads-line); border-radius: 12px; margin-bottom: 8px; background: #fff; }
.ads-citem.done { background: #f7f8fb; }
.ads-citem.done p { color: var(--ads-muted); text-decoration: line-through; }
.ads-citem p { margin: 6px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.ads-citem .ads-row { margin: 4px 0 0; }
.ads-cmeta { display: flex; align-items: center; gap: 8px; }
.ads-cmeta small { color: var(--ads-muted); margin-left: auto; }
.ads-resolved summary { cursor: pointer; color: var(--ads-muted); font-weight: 600; margin: 10px 0; }

/* ---------- canvas */
.ads-canvas { grid-area: canvas; position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--ads-canvas); overflow: hidden; }
.ads-pill { align-self: center; display: flex; align-items: center; max-width: calc(100% - 24px); min-height: 48px; margin: 10px 12px 8px; padding: 4px 8px; background: #fff; border-radius: 14px; box-shadow: var(--ads-shadow); overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; flex: none; z-index: 2; }
.ads-pill > * { flex: none; }
.ads-formula { flex: none; margin: 0 12px 8px; background: #fff; border: 1px solid var(--ads-line); border-radius: 10px; overflow: hidden; }
.ads-stage { position: relative; z-index: 0; isolation: isolate; flex: 1 1 auto; min-height: 0; min-width: 0; display: flex; flex-direction: column; overflow: hidden; }
.ads-stage > :first-child { flex: 1 1 auto; min-height: 0; min-width: 0; }
.ads-cover { position: absolute; inset: 0; z-index: 30; background: transparent; cursor: default; }
.ad-shell[data-mode="comment"] .ads-cover { cursor: copy; }
.ad-shell[data-mode="view"] .ads-pill, .ad-shell[data-mode="view"] .ads-formula { display: none; }
.ad-shell[data-mode="comment"] .ads-pill { opacity: .55; }
.ads-chip { position: absolute; top: 12px; left: 12px; z-index: 31; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 0; border-radius: 16px; background: #1b2133; color: #fff; font-size: 12.5px; font-weight: 650; box-shadow: var(--ads-shadow); }
.ads-chip .ads-i { width: 17px; height: 17px; }
.ads-chip:hover { background: #2c3550; }

/* grid view */
.ads-gridview { position: absolute; inset: 0; z-index: 40; background: rgba(235, 237, 243, .97); overflow: auto; padding: 18px 22px; }
.ads-ghead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; font-size: 16px; }
.ads-glist { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.ads-gcard { display: flex; flex-direction: column; gap: 6px; padding: 0; border: 0; background: none; font-weight: 600; color: #3d465c; }
.ads-gthumb { display: grid; place-items: center; aspect-ratio: 16 / 10; border-radius: 10px; background: #fff; border: 2px solid transparent; box-shadow: var(--ads-shadow); overflow: hidden; font-size: 28px; color: #9aa3b8; }
.ads-gthumb > * { max-width: 100%; max-height: 100%; }
.ads-gcard.on .ads-gthumb, .ads-gcard:hover .ads-gthumb { border-color: var(--ads-accent); }
.ads-gadd .ads-i { width: 100%; height: auto; aspect-ratio: 16 / 10; padding: 28px; border-radius: 10px; border: 2px dashed #c6cbe0; color: var(--ads-muted); box-sizing: border-box; }

/* ---------- bottom bar */
.ads-bottom { grid-area: bottom; display: flex; align-items: center; gap: 2px; padding: 0 8px; background: #fff; border-top: 1px solid var(--ads-line); min-width: 0; overflow: hidden; z-index: 2; }
.ads-bb { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 9px; border: 0; border-radius: 9px; background: none; color: #3d465c; font-size: 14px; font-weight: 550; white-space: nowrap; flex: none; }
.ads-bb:hover, .ads-bb.on, .ads-bb[aria-expanded="true"] { background: #f0f1f7; color: var(--ads-fg); }
.ads-bb.on .ads-i { color: var(--ads-accent); }
.ads-bb[data-running="true"] { color: var(--ads-accent); font-variant-numeric: tabular-nums; }
.ads-count { font-variant-numeric: tabular-nums; }
.ads-zoomwrap { display: inline-flex; align-items: center; gap: 6px; margin-right: 4px; flex: none; }
.ads-zoom { width: 170px; accent-color: var(--ads-accent); cursor: pointer; }
.ads-zoomi { width: 58px; height: 32px; border: 1px solid transparent; border-radius: 8px; background: none; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.ads-zoomi:hover, .ads-zoomi:focus { border-color: #d9dcea; outline: none; background: #fff; }
/* fit levels set by the shell when the bar would overflow (narrow canvas): icons only, smaller slider, no slider */
.ads-bottom.ads-bc1 .ads-bb .ads-l { display: none; }
.ads-bottom.ads-bc1 .ads-bb { padding: 0 7px; }
.ads-bottom.ads-bc2 .ads-zoom { width: 76px; }
.ads-bottom.ads-bc3 .ads-zoom { display: none; }
.ads-bottom > * { flex-shrink: 0; }
.ads-bottom > .ads-grow { flex: 1 1 0; min-width: 0; }

/* ---------- popovers, menus, toast */
.ads-pop { position: fixed; z-index: 1000; min-width: 240px; max-width: min(360px, calc(100vw - 16px)); max-height: calc(100dvh - 80px); overflow: auto; padding: 6px; background: #fff; color: var(--ads-fg); border: 1px solid var(--ads-line); border-radius: 14px; box-shadow: 0 18px 50px rgba(27, 33, 51, .22); animation: ads-in .14s var(--ads-ease); }
.ads-pop:focus { outline: none; }
.ads-pop.ads-wide { width: 340px; padding: 8px 10px 10px; }
@keyframes ads-in { from { opacity: 0; transform: translateY(-4px); } }
.ads-pophead { display: flex; flex-direction: column; gap: 2px; padding: 8px 8px 10px; }
.ads-pophead b { font-size: 15px; }
.ads-pophead small { color: var(--ads-muted); font-size: 12.5px; }
.ads-me { flex-direction: row; align-items: center; gap: 10px; }
.ads-me small { display: block; }
.ads-mi { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 9px; background: none; text-align: left; color: var(--ads-fg); }
.ads-mi:hover, .ads-mi:focus-visible { background: var(--ads-soft); outline: none; }
.ads-mi:disabled { opacity: .45; cursor: default; }
.ads-mi .ads-i { width: 20px; height: 20px; color: #4a5470; }
.ads-mi-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ads-mi-t b { font-weight: 550; }
.ads-mi-t small { color: var(--ads-muted); font-size: 12px; }
.ads-mi-ok { color: var(--ads-accent) !important; }
.ads-mh { padding: 10px 10px 4px; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ads-muted); }
.ads-hr { border: 0; border-top: 1px solid var(--ads-line); margin: 6px 4px; }
.ads-dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; padding: 4px 8px 8px; }
.ads-dl dt { color: var(--ads-muted); }
.ads-dl dd { margin: 0; font-weight: 600; text-align: right; }
.ads-keys dd { text-align: left; font-weight: 500; }
.ads-keys kbd { display: inline-block; padding: 2px 6px; border: 1px solid #d9dcea; border-bottom-width: 2px; border-radius: 6px; background: #f7f8fb; font: 600 12px/1.4 ui-monospace, Menlo, Consolas, monospace; white-space: nowrap; }
.ads-tbig { margin: 4px 0 8px; text-align: center; font-size: 44px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.ads-presets { justify-content: center; }
.ads-tcustom { justify-content: center; align-items: center; gap: 6px; font-size: 13px; }
.ads-num { width: 58px; text-align: center; }
.ads-pop .ads-row { justify-content: center; }
.ads-toast { position: absolute; left: 50%; bottom: calc(var(--ads-bot) + 18px); transform: translateX(-50%); z-index: 1100; max-width: calc(100vw - 32px); padding: 10px 18px; border-radius: 12px; background: #1b2133; color: #fff; font-weight: 550; box-shadow: 0 12px 30px rgba(27, 33, 51, .3); pointer-events: none; animation: ads-in .16s var(--ads-ease); }

/* ---------- round 2: share tiles, download sheet, see all, drag & drop, page strip, comments extras */
.ads-present { border: 1px solid rgba(255, 255, 255, .38); }
/* Top bar like Canva: plain undo/redo, the honest "WASecret Pro" pill, Present split with a ▾, the cloud alone */
.ads-ic { width: 40px; padding: 0; justify-content: center; }
.ads-ic .ads-i { width: 22px; height: 22px; }
.ads-top .st-undo { border-color: transparent; background: transparent; }
.ads-top .st-undo:disabled, .ads-undo:disabled { opacity: .45; }
.ads-sep2 { margin: 0 4px; }
.ads-save-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ads-free { gap: 6px; height: 38px; padding: 0 14px; border: 1px solid rgba(255, 255, 255, .45); border-radius: 10px; background: rgba(255, 255, 255, .12); font-size: 14px; }
.ads-free .ads-i { width: 18px; height: 18px; color: #ffe08a; }
.ads-freepop { display: grid; gap: 8px; padding: 10px 12px; max-width: 290px; }
.ads-freepop b { font-size: 15px; }
.ads-freepop ul { margin: 0; padding-left: 18px; color: #3d465c; font-size: 13.5px; line-height: 1.5; }
.ads-freepop .ads-btn { justify-self: start; }
.ads-present.ads-split { border-radius: 9px 0 0 9px; border-right: 0; }
.ads-present-more { width: 34px; padding: 0; justify-content: center; border: 1px solid rgba(255, 255, 255, .38); border-radius: 0 9px 9px 0; margin-left: -4px; }
.ads-present-more .ads-i { width: 18px; height: 18px; }
@media (max-width: 1240px) { .ads-free .ads-l { display: none; } .ads-free { width: 40px; padding: 0; justify-content: center; } }
@media (max-width: 1060px) { .ads-free, .ads-sep2 { display: none; } }
.ads-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 4px 0 8px; }
.ads-tile { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border: 1px solid var(--ads-line); border-radius: 12px; background: #fff; color: var(--ads-fg); font-size: 12px; font-weight: 600; text-decoration: none; text-align: center; }
.ads-tile:hover { background: var(--ads-soft); border-color: #cfc9ff; }
.ads-note { font-size: 12px; margin: 6px 4px; }
.ads-field { display: grid; gap: 4px; margin: 6px 4px 10px; font-size: 12.5px; font-weight: 600; color: var(--ads-muted); }
.ads-sbtn { display: inline-grid; place-items: center; width: 30px; height: 30px; margin-right: -6px; border: 0; border-radius: 8px; background: none; color: var(--ads-muted); }
.ads-sbtn[aria-pressed="true"] { color: var(--ads-accent); background: var(--ads-soft); }
.ads-sbtn .ads-i { width: 18px; height: 18px; }
.ads-sechead { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.ads-sechead .ads-link { flex: none; }
.ads-secback { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.ads-secback .ads-sectitle { font-size: 15px; }
/* While anything is dragged from a panel (templates, uploads, kit items), an iframe on the stage (Websites' live
   preview) must not swallow the drop. */
.ad-shell.ads-dragging .ads-stage iframe { pointer-events: none; }
.ads-dragging .ads-stage::after { content: ""; position: absolute; inset: 6px; border: 2px dashed rgba(91, 76, 240, .35); border-radius: 12px; pointer-events: none; z-index: 29; }
.ads-stage.ads-dropping::after { border-color: var(--ads-accent); background: rgba(91, 76, 240, .06); }
[draggable="true"].ads-tcard, .ads-swatch[draggable="true"] { cursor: grab; }
.ad-shell .ads-nomatch { display: none !important; }
.ads-searching :is(h3, h4, .ads-h3) { display: none; }
.ads-psearch { margin-bottom: 12px; }
.ads-zchev { width: 26px; padding: 0; justify-content: center; margin-left: -4px; }
.ads-zchev .ads-i { width: 16px; height: 16px; }
.ads-strip { flex: none; display: flex; gap: 10px; align-items: flex-end; overflow-x: auto; padding: 8px 14px 10px; background: #fff; border-top: 1px solid var(--ads-line); z-index: 2; }
.ads-scard { flex: none; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 0; border: 0; background: none; color: var(--ads-muted); font-size: 11.5px; font-weight: 600; }
.ads-sthumb { display: grid; place-items: center; width: 96px; height: 60px; border-radius: 8px; border: 2px solid var(--ads-line); background: #f6f7fb; overflow: hidden; font-size: 18px; color: #9aa3b8; }
.ads-sthumb > * { max-width: 100%; max-height: 100%; }
.ads-scard.on .ads-sthumb, .ads-scard:hover .ads-sthumb { border-color: var(--ads-accent); }
.ads-scard.on { color: var(--ads-accent); }
.ads-sadd { width: 60px; height: 60px; align-self: flex-start; justify-content: center; border: 2px dashed #c6cbe0; border-radius: 8px; }
/* Canva page strip: centred thumbnails, then a "+" tile with a ▾ page menu */
.ads-strip > :first-child { margin-left: auto; }
.ads-strip > :last-child { margin-right: auto; }
.ads-saddwrap { display: inline-flex; align-self: flex-start; flex: none; }
.ads-saddwrap .ads-sadd { width: 72px; border: 1px solid #d9dcea; border-radius: 10px 0 0 10px; background: #fff; color: var(--ads-fg); }
.ads-saddwrap .ads-sadd:hover, .ads-saddm:hover { background: var(--ads-soft); }
.ads-saddm { width: 28px; height: 60px; justify-content: center; border: 1px solid #d9dcea; border-left: 0; border-radius: 0 10px 10px 0; background: #fff; color: #3d465c; }
.ads-saddm .ads-i { width: 16px; height: 16px; }
.ads-bb[data-ads="pages"].on { background: #ecebff; color: var(--ads-accent); }
.ads-over .ads-sthumb, .ads-over .ads-gthumb { outline: 3px solid var(--ads-accent-2); outline-offset: 2px; }
.ads-gitem { position: relative; }
.ads-gitem .ads-gcard { width: 100%; }
.ads-gact { position: absolute; top: 6px; right: 6px; display: flex; gap: 4px; opacity: 0; transition: opacity .15s; }
.ads-gitem:hover .ads-gact, .ads-gitem:focus-within .ads-gact { opacity: 1; }
.ads-gact .ads-x { background: rgba(255, 255, 255, .95); box-shadow: var(--ads-shadow); }
.ads-ghead small { flex: 1; margin: 0 12px; }
.ads-check { display: flex; align-items: center; gap: 8px; margin: 2px 8px 8px; font-size: 13px; cursor: pointer; }
.ads-check .ads-i { width: 18px; height: 18px; color: var(--ads-accent); }
.ads-notes-page { margin: 0 0 8px; font-weight: 700; }
.ads-mlist { margin: 4px 0; padding: 4px; border: 1px solid var(--ads-line); border-radius: 10px; background: #fff; box-shadow: var(--ads-shadow); }
.ads-mention { color: var(--ads-accent); font-weight: 650; background: var(--ads-soft); border-radius: 5px; padding: 0 3px; }
.ads-ptag { border: 0; border-radius: 10px; padding: 1px 8px; background: #eef2ff; color: var(--ads-accent); font-size: 11.5px; font-weight: 650; }
.ads-reacts { display: flex; gap: 4px; margin: 2px 0 4px; }
.ads-react { min-width: 34px; height: 28px; padding: 0 6px; border: 1px solid var(--ads-line); border-radius: 14px; background: #fff; font-size: 13px; }
.ads-react.on { border-color: var(--ads-accent); background: var(--ads-soft); }
.ads-replies { margin: 4px 0 6px 14px; padding-left: 10px; border-left: 2px solid var(--ads-line); }
.ads-reply p { margin: 2px 0 6px; }
.ads-replybox { margin-top: 6px; }
.ads-cfilter { margin: 12px 0 2px; padding-right: 0; }
.ads-version { gap: 8px; }
.ads-vtext { flex: 1; min-width: 0; }
.ads-vtext b, .ads-vtext small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ads-vtext small { color: var(--ads-muted); font-size: 12px; }

.ads-tbadge { position: absolute; right: 6px; bottom: 6px; padding: 2px 7px; border-radius: 10px; background: rgba(27, 33, 51, .78); color: #fff; font-size: 11px; font-weight: 650; pointer-events: none; }
.ads-tthumb { position: relative; }
.ads-spot { position: fixed; inset: 0; z-index: 900; pointer-events: none; }
.ads-spot-hole { position: fixed; border-radius: 10px; box-shadow: 0 0 0 200vmax rgba(15, 18, 30, .62); outline: 2px solid rgba(255, 255, 255, .85); transition: left .2s, top .2s, width .2s, height .2s; }
.ads-spot-bar { position: fixed; left: 50%; top: 66px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; max-width: min(640px, calc(100vw - 24px)); padding: 8px 10px 8px 14px; border-radius: 14px; background: #fff; color: var(--ads-fg); box-shadow: 0 12px 30px rgba(0, 0, 0, .3); font-size: 13px; pointer-events: auto; }
.ads-spot-bar .ads-i { color: var(--ads-accent); }

.ads-blankrow { margin: 10px 0 2px; }
.ads-blankcard { display: flex; align-items: center; gap: 12px; width: 100%; padding: 6px; border: 1px dashed #c6cbe0; border-radius: 12px; background: #fafaff; color: var(--ads-fg); text-align: left; }
.ads-blankcard:hover { border-color: var(--ads-accent); background: var(--ads-soft); }
.ads-blankthumb { display: grid; place-items: center; width: 72px; height: 46px; border-radius: 8px; background: #fff; border: 1px solid var(--ads-line); color: var(--ads-accent); }
.ads-blankcard .ads-tname { font-size: 13.5px; font-weight: 650; color: var(--ads-fg); }
.ads-canchor { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; padding: 4px 4px 4px 10px; border-radius: 10px; background: var(--ads-soft); color: var(--ads-accent); font-size: 12.5px; font-weight: 650; }
.ads-atag { background: #fff4ec; color: #c2410c; }
.ads-snum { max-width: 96px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* fallback "full screen" when the browser has no Fullscreen API: hide the side chrome */
.ad-shell.ads-full { grid-template-columns: 0 0 minmax(0, 1fr); }
.ad-shell.ads-full .ads-rail, .ad-shell.ads-full .ads-panel { visibility: hidden; }

/* ---------- desktop-medium */
@media (max-width: 1180px) { .ads-save-t { display: none; } .ads-zoom { width: 120px; } }
@media (max-width: 960px) and (min-width: 760px) { .ad-shell { --ads-pw: 300px; } .ads-bb .ads-l { display: none; } .ads-title { max-width: 22vw; } .ads-sep { display: none; } }

/* ---------- phones: rail = bottom tab strip, panel = bottom sheet, compact top bar */
@media (max-width: 759.98px) {
  .ad-shell { --ads-top: 52px; --ads-bot: 44px; --ads-tabs: 62px;
    grid-template-columns: minmax(0, 1fr); grid-template-rows: var(--ads-top) minmax(0, 1fr) var(--ads-bot) var(--ads-tabs);
    grid-template-areas: "top" "canvas" "bottom" "rail"; }
  .ads-desk { display: none !important; }
  .ads-mob { display: inline-flex; }
  .ads-top { padding: 0 6px; gap: 2px; }
  .ads-title { flex: 1 1 auto; width: auto; min-width: 0; max-width: none; text-align: left; font-size: 14px; }
  @supports (field-sizing: content) { .ads-title { field-sizing: fixed; } }
  .ads-save { padding: 0 4px; }
  .ads-share { padding: 0 12px; margin-left: 2px; }
  .ads-share .ads-l { display: none; }
  .ads-share { width: 40px; padding: 0; justify-content: center; }
  .ads-rail { flex-direction: row; padding: 0 4px; gap: 0; border-right: 0; border-top: 1px solid var(--ads-line); overflow-x: auto; overflow-y: hidden; padding-bottom: env(safe-area-inset-bottom); }
  .ads-rb { flex: 1 0 64px; justify-content: center; padding: 4px 2px; font-size: 10.5px; }
  .ads-rb .ads-i { padding: 4px 10px; border-radius: 10px; }
  .ads-panel { position: fixed; left: 0; right: 0; bottom: calc(var(--ads-tabs) + var(--ads-bot)); width: auto; height: min(60dvh, 560px); border: 0; border-radius: 18px 18px 0 0; box-shadow: 0 -12px 40px rgba(27, 33, 51, .2); z-index: 20; transform: translateY(var(--ads-drag, 0)); transition: transform .22s var(--ads-ease); }
  .ads-collapsed .ads-panel { width: auto; transform: translateY(calc(100% + var(--ads-tabs) + var(--ads-bot) + 20px)); box-shadow: none; visibility: hidden; transition: transform .22s var(--ads-ease), visibility 0s .22s; }
  .ads-collapsed .ads-panel > :not(.ads-handle) { display: flex; }
  .ads-collapsed .ads-panel > .ads-pscroll { display: block; }
  .ads-handle { display: none; }
  .ads-grip { display: flex; justify-content: center; padding: 8px 0 2px; cursor: grab; touch-action: none; flex: none; }
  .ads-grip span { width: 44px; height: 5px; border-radius: 3px; background: #cfd3e3; }
  .ads-phead { padding: 2px 14px 0; }
  .ads-plain-head .ads-phead { display: flex; }
  .ads-pscroll { padding: 10px 14px 20px; }
  .ads-pill { margin: 8px 8px 6px; max-width: calc(100% - 16px); min-height: 44px; }
  .ads-formula { margin: 0 8px 6px; }
  .ads-bottom { padding: 0 4px; gap: 0; }
  .ads-bb { padding: 0 7px; }
  .ads-bb .ads-l { display: none; }
  .ads-bb[data-running="true"] .ads-l, .ads-bb.on[data-ads="timer"] .ads-l { display: inline; }
  .ads-zoom { display: none; }
  .ads-zoomi { width: 52px; }
  .ads-toast { bottom: calc(var(--ads-bot) + var(--ads-tabs) + 14px); }
  .ads-pop { max-width: calc(100vw - 16px); }
  .ads-pop.ads-wide { width: calc(100vw - 16px); }
  .ads-glist { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ads-sthumb { width: 72px; height: 46px; }
  .ads-strip { padding: 6px 8px 8px; }
  .ads-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ads-zchev { display: none; }
  .ads-gridview { padding: 14px; }
}

/* Design panel (Canva): Templates | Layouts | Styles tabs; filters in a popover; template detail */
.ads-dtabs { display: flex; gap: 4px; margin: 0 0 12px; border-bottom: 1px solid var(--ads-line); }
.ads-dtab { flex: 1; height: 38px; border: 0; border-bottom: 2.5px solid transparent; background: none; color: var(--ads-muted); font-size: 14px; font-weight: 600; cursor: pointer; }
.ads-dtab:hover { color: var(--ads-fg); }
.ads-dtab.on { color: var(--ads-fg); border-bottom-color: var(--ads-accent); }
.ads-swrap { position: relative; }
.ads-chips.ads-filterpop { position: absolute; z-index: 40; top: calc(100% + 6px); left: 0; right: 0; margin: 0; padding: 12px; max-height: min(60vh, 420px); overflow: auto; border: 1px solid var(--ads-line); border-radius: 12px; background: #fff; box-shadow: 0 12px 32px rgba(20, 24, 40, .18); }
.ads-filterpop .ads-chiprow { flex-wrap: wrap; overflow: visible; margin: 0 0 8px; padding: 0; }
.ads-sbtn[aria-pressed="true"] { color: var(--ads-accent); background: var(--ads-soft); }
.ads-tdetail .ads-dhead { display: flex; align-items: center; gap: 6px; margin: 0 0 12px; }
.ads-tdetail .ads-dhead .ads-sectitle { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 15px; }
.ads-tdetail [data-ads="template-apply-all"] { margin: 0 0 14px; }
.ads-tpages { margin-bottom: 18px; }
.ads-tpage .ads-tbadge { left: 6px; right: auto; }
.ads-stylecard { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 1px solid var(--ads-line); border-radius: 12px; background: #fff; text-align: left; cursor: pointer; }
.ads-stylecard:hover { border-color: #cfc9ff; background: var(--ads-soft); }
.ads-stylecard b { display: block; font-size: 14px; }
.ads-stylecard small { color: var(--ads-muted); font-size: 12px; }
.ads-stylesw { display: inline-flex; flex: none; width: 44px; height: 44px; overflow: hidden; border-radius: 10px; background: var(--ads-soft); }
.ads-stylesw i { flex: 1; }

@media (prefers-reduced-motion: reduce) {
  .ad-shell *, .ad-shell *::before, .ad-shell *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
