/* Zoho Creator custom apps hub (/zoho-creator/apps/) only. Loaded via `extra: mid, p-zc-apps`. Every class is scoped with .pzca- */
.pzca-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- 1. hero: sticky-note wall that tidies into app tiles ---------- */
.pzca-hero .pzca-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
.pzca-hero .crm-sub { margin: 16px 0 0; font: 600 clamp(18px, 1rem + .4vw, 21px)/1.4 var(--f-display); color: #0B2A3F; max-width: 44ch; }
.pzca-hero .pg-trust__badge img { width: 40px; height: 40px; }

.pzca-wall { position: relative; margin: 0; padding: 16px 16px 14px; border-radius: 24px; background:
  radial-gradient(circle at 18% 22%, rgba(255,255,255,.55) 0 2px, transparent 3px) 0 0 / 26px 26px,
  linear-gradient(160deg, #E9DCC6, #DCCBAE); border: 1px solid #CDB894; box-shadow: 0 44px 80px -50px rgba(8,34,56,.6), inset 0 0 0 6px rgba(255,255,255,.18);
  transition: background 600ms ease; }
.pzca-wall.is-tidy { background: linear-gradient(160deg, #EEF4FB, #EAF6F4); border-color: #D6E2EC; }
.pzca-wall__bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 12px; }
.pzca-wall__tag { margin: 0; font: 800 10.5px/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: #5B4A2E; }
.pzca-wall.is-tidy .pzca-wall__tag { color: #475569; }
.pzca-wall__btn { min-height: 36px; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(8,34,56,.2); background: #fff; font: 700 13px/1.2 var(--f-body); color: #082238; cursor: pointer; }
.pzca-wall__btn:hover { border-color: #0A6FA8; color: #0A6FA8; }
.pzca-wall__btn:focus-visible { outline: 3px solid #00A3D9; outline-offset: 2px; }
.pzca-notes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.pzca-note a { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 8px; min-height: 118px; padding: 12px 11px 10px; border-radius: 4px 4px 14px 4px;
  background: var(--c); color: #2B2210; text-decoration: none; box-shadow: 0 14px 18px -14px rgba(60,40,10,.6);
  transform: translate(var(--x), var(--y)) rotate(var(--r)); transition: transform 520ms cubic-bezier(.2,.8,.2,1), background 420ms, border-radius 420ms, box-shadow 420ms; }
.pzca-note a::before { content: ""; position: absolute; top: -6px; left: 50%; width: 34px; height: 12px; margin-left: -17px; background: rgba(255,255,255,.55); border: 1px solid rgba(0,0,0,.05); transform: rotate(-3deg); transition: opacity 300ms; }
.pzca-note__was { font: 600 14px/1.3 "Bradley Hand", "Segoe Print", "Comic Sans MS", var(--f-body); overflow-wrap: anywhere; }
.pzca-note__app { display: flex; align-items: center; gap: 7px; font: 700 12.5px/1.25 var(--f-display); color: #082238; max-height: 0; overflow: hidden; transition: max-height 420ms; }
.pzca-note__app svg { flex: none; width: 22px; height: 22px; padding: 4px; border-radius: 8px; background: #E8F5FC; fill: none; stroke: #0A6FA8; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* tidy state = app tiles */
.pzca-wall.is-tidy .pzca-note a { transform: none; background: #fff; border-radius: 14px; box-shadow: 0 14px 24px -20px rgba(8,34,56,.55); outline: 1px solid #DCE4EC; }
.pzca-wall.is-tidy .pzca-note a::before { opacity: 0; }
.pzca-wall.is-tidy .pzca-note__was { order: 2; font: 500 11.5px/1.35 var(--f-body); color: #475569; }
.pzca-wall.is-tidy .pzca-note__was::before { content: "Was: "; font-weight: 700; }
.pzca-wall.is-tidy .pzca-note__app { order: 1; max-height: 60px; }
.pzca-note a:hover { transform: translate(var(--x), calc(var(--y) - 3px)) rotate(0deg); }
.pzca-wall.is-tidy .pzca-note a:hover { transform: translateY(-3px); outline-color: #00A3D9; }
.pzca-note a:focus-visible { outline: 3px solid #00A3D9; outline-offset: 2px; }
.pzca-wall__cap { margin: 12px 2px 0; font: 500 12.5px/1.45 var(--f-body); color: #4A3D25; }
.pzca-wall.is-tidy .pzca-wall__cap { color: #475569; }
/* no-JS and reduced motion: show tiles with the note text visible (end state) */
.pzca-wall:not(.is-js) .pzca-note__app { max-height: 60px; }

/* ---------- 2. what it is ---------- */
.pzca-what .mk-deal { margin-top: 32px; }
.pzca-what .pg-answer { max-width: 78ch; }

/* ---------- 3. symptom switchboard + directory ---------- */
.pzca-find .pg-answer { max-width: 78ch; }
.pzca-board { margin: 32px 0 0; padding: clamp(18px, 2.4vw, 28px); border-radius: 24px; background: #082238; background: linear-gradient(135deg, #061A2E, #0A3A63 60%, #07605E); color: #fff; }
.pzca-sym { margin: 0; padding: 0; border: 0; min-width: 0; }
.pzca-sym legend { padding: 0; margin: 0 0 14px; font: 700 clamp(18px, 1rem + .4vw, 21px)/1.3 var(--f-display); color: #fff; }
.pzca-sym__list { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.pzca-sym__list button { position: relative; min-height: 44px; text-align: left; padding: 10px 16px 10px 38px; border-radius: 999px; border: 1px solid rgba(159,192,216,.45); background: rgba(255,255,255,.06); font: 600 14px/1.25 var(--f-body); color: #E6F0F7; cursor: pointer; transition: background 200ms, border-color 200ms, color 200ms; }
.pzca-sym__list button::before { content: ""; position: absolute; left: 14px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; border: 2px solid #9FC0D8; background: transparent; transition: background 200ms, border-color 200ms, box-shadow 200ms; }
.pzca-sym__list button:hover { border-color: #5FD3F3; }
.pzca-sym__list button[aria-pressed="true"] { background: #FFB81C; border-color: #FFB81C; color: #082238; }
.pzca-sym__list button[aria-pressed="true"]::before { background: #082238; border-color: #082238; box-shadow: 0 0 0 3px rgba(255,255,255,.6); }
.pzca-sym__list button:focus-visible { outline: 3px solid #5FD3F3; outline-offset: 2px; }
.pzca-tray { margin: 20px 0 0; padding: 16px 18px; border-radius: 16px; background: #fff; color: #082238; }
.pzca-tray[hidden] { display: none; }
.pzca-tray__head { margin: 0 0 10px; font: 700 15.5px/1.4 var(--f-display); }
.pzca-tray__list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; padding: 0; list-style: none; }
.pzca-tray__list a { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 7px 12px; border-radius: 10px; background: #FFF4DA; border: 1px solid #F2D488; font: 600 13.5px/1.2 var(--f-body); color: #082238; text-decoration: none; }
.pzca-tray__list a:hover { border-color: #F0A400; }
.pzca-tray__list i { font-style: normal; font-weight: 800; color: #7A4A00; }
.pzca-tray__acts { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.pzca-tray__send { min-height: 44px; padding: 10px 18px; border: 0; border-radius: 12px; background: #FFB81C; font: 700 14.5px/1.2 var(--f-body); color: #082238; cursor: pointer; }
.pzca-tray__send:hover { background: #F0A400; }
.pzca-tray__clear { min-height: 44px; padding: 10px 14px; border: 1px solid #CBD5E1; border-radius: 12px; background: #fff; font: 600 14px/1.2 var(--f-body); color: #334155; cursor: pointer; }
.pzca-tray button:focus-visible { outline: 3px solid #00A3D9; outline-offset: 2px; }

.pzca-dir { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin: 28px 0 0; align-items: start; }
.pzca-drawer { border-radius: 20px; background: #fff; border: 1px solid #E2E8F0; box-shadow: 0 22px 36px -32px rgba(8,34,56,.55); overflow: hidden; }
.pzca-drawer__h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0; padding: 14px 18px; background: var(--gt); border-bottom: 3px solid var(--g); font: 700 16px/1.3 var(--f-display); color: #082238; }
.pzca-drawer__h em { font: 700 12px/1 var(--f-body); font-style: normal; color: #082238; background: #FFB81C; border-radius: 999px; padding: 5px 9px; }
.pzca-drawer__h em:empty { display: none; }
.pzca-drawer__list { margin: 0; padding: 6px; list-style: none; }
.pzca-drawer__list a { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 12px; row-gap: 2px; padding: 11px 12px; border-radius: 14px; border: 2px solid transparent; text-decoration: none; transition: background 200ms, border-color 200ms; }
.pzca-drawer__list svg { grid-row: 1 / span 2; width: 36px; height: 36px; padding: 7px; box-sizing: border-box; border-radius: 11px; background: var(--gt); fill: none; stroke: var(--g); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pzca-drawer__list b { font: 700 15px/1.3 var(--f-display); color: #082238; }
.pzca-drawer__list span { font: 400 13.5px/1.45 var(--f-body); color: #475569; }
.pzca-drawer__list a:hover { background: #F3F7F9; }
.pzca-drawer__list a:hover b { color: #0A6FA8; }
.pzca-drawer__list a:focus-visible { outline: 3px solid #00A3D9; outline-offset: 0; }
.pzca-drawer__list li.is-hit a { background: #FFF8E6; border-color: #FFB81C; }
.pzca-drawer__list li.is-hit a::after { content: "Match"; position: absolute; top: 10px; right: 10px; padding: 3px 7px; border-radius: 6px; background: #FFB81C; font: 800 10.5px/1 var(--f-body); letter-spacing: .06em; text-transform: uppercase; color: #082238; }
.pzca-drawer__list li.is-hit b { padding-right: 56px; }
.pzca-find .pg-trustnote { margin-top: 22px; }

/* ---------- 4. ready-made or custom ---------- */
.pzca-fit__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.pzca-fit__links { margin: 16px 0 0; font: 500 14.5px/1.6 var(--f-body); color: #475569; }

/* ---------- 5. DIY ---------- */
.pzca-diy .mk-split { margin-top: 30px; }
.pzca-diy .pg-answer { max-width: 78ch; }

/* ---------- 6. cost: dark band with a three-line bill ---------- */
.pzca-cost { background: linear-gradient(135deg, #061A2E 0%, #0A3A63 55%, #07605E 100%) !important; color: #fff; }
.pzca-cost .pg-h2 { color: #fff; }
.pzca-cost .pg-answer { color: #D3E3EE; }
.pzca-cost .hp-kick__t, .pzca-cost .hp-kick__n { color: #9FE3F5; }
.pzca-cost__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.pzca-cost__more { margin: 18px 0 0; }
.pzca-cost .pzca-cost__more a.pg-link { color: #FFD56B; font-weight: 700; }
.pzca-bill { margin: 0; padding: 22px; border-radius: 20px; background: #FDFBF6; color: #082238; list-style: none; box-shadow: 0 40px 70px -40px rgba(0,0,0,.7);
  -webkit-mask: radial-gradient(circle 7px at 50% 100%, transparent 98%, #000) 0 0 / 22px 100% repeat-x; mask: radial-gradient(circle 7px at 50% 100%, transparent 98%, #000) 0 0 / 22px 100% repeat-x; padding-bottom: 30px; }
.pzca-bill li { display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 14px; row-gap: 6px; padding: 16px 0; border-bottom: 1px dashed #CBD5E1; }
.pzca-bill li:last-child { border-bottom: 0; }
.pzca-bill__n { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #082238; color: #fff; font: 800 14px/1 var(--f-display); }
.pzca-bill b { font: 700 16.5px/1.3 var(--f-display); }
.pzca-bill p { margin: 4px 0 0; font: 400 14px/1.5 var(--f-body); color: #334155; }
.pzca-bill em { grid-column: 2; justify-self: start; padding: 5px 10px; border-radius: 8px; background: #E8F5FC; font: 700 12.5px/1.3 var(--f-body); font-style: normal; color: #0A4E7A; }
.pzca-bill li:last-child em { background: #FFB81C; color: #082238; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .pzca-notes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .pzca-hero .pzca-hero__grid, .pzca-fit__grid, .pzca-cost__grid { grid-template-columns: 1fr; }
  .pzca-notes { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .pzca-notes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pzca-note a { min-height: 104px; transform: translate(calc(var(--x) / 2), calc(var(--y) / 2)) rotate(calc(var(--r) / 2)); }
  .pzca-note__was { font-size: 13px; }
  .pzca-dir { grid-template-columns: 1fr; }
  .pzca-sym__list button { font-size: 13.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .pzca-note a, .pzca-note__app, .pzca-wall, .pzca-drawer__list a { transition: none; }
}
