/* Rangooo Colour Studio */
html.cc-on,html.cc-on body{overflow:hidden;overscroll-behavior:none}
.cc{--cc-bg:#EDEDE7;--cc-ink:var(--rg-ink,#16202C);--cc-muted:var(--rg-muted,#5A6573);--cc-line:var(--rg-line,#E7E7E1);--cc-acc:var(--rg-accent,#145C63);--cc-acc2:var(--rg-accent-2,#0F474D);--cc-soft:#F1F1EC;
  position:fixed;inset:0;z-index:60;display:grid;background:var(--cc-bg);color:var(--cc-ink);font:500 14px/1.4 var(--rg-ui,var(--ui,system-ui,sans-serif));
  padding:env(safe-area-inset-top,0px) env(safe-area-inset-right,0px) 0 env(safe-area-inset-left,0px);animation:ccIn .25s cubic-bezier(.2,.7,.2,1) both}
.cc[hidden]{display:none}
.cc>*{min-width:0;min-height:0}
@keyframes ccIn{from{opacity:0;transform:scale(.985)}to{opacity:1;transform:none}}
@keyframes ccUp{from{opacity:0;transform:translate(-50%,8px)}to{opacity:1;transform:translate(-50%,0)}}
.cc button{font:inherit;color:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}
.cc button:disabled{opacity:.35;cursor:default}
.cc :focus-visible{outline:3px solid #E8590C;outline-offset:2px}
.cc:focus,.cc:focus-visible{outline:none}
.cc svg{flex-shrink:0}

/* ---------- top bar ---------- */
.cc-top{grid-area:top;display:flex;align-items:center;gap:10px}
.cc-back{display:inline-flex;align-items:center;gap:6px;height:44px;padding:0 16px 0 10px;border-radius:999px;border:1px solid var(--cc-line);background:#fff;font-weight:600 !important}
.cc-ib{width:44px;height:44px;border-radius:999px;border:1px solid var(--cc-line);background:#fff;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;transition:background .15s,transform .1s}
.cc-ib:hover:not(:disabled),.cc-back:hover{background:#F7F7F3}
.cc-ib:active:not(:disabled),.cc-back:active,.cc-save:active{transform:scale(.96)}
.cc-chip{flex:1;min-width:0;display:flex;align-items:center;gap:10px;border:0;background:none;padding:0;text-align:left}
.cc-chth{width:32px;height:32px;border-radius:50%;overflow:hidden;flex-shrink:0;display:block;background:#fff}
.cc-chth svg,.cc-chth img{display:block;width:100%;height:100%;object-fit:cover}
.cc-cht{display:flex;flex-direction:column;min-width:0}
.cc-cht b{font:700 16px/1.2 var(--rg-ui,system-ui);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cc-cht span{font-size:13px;color:var(--cc-muted);white-space:nowrap}
.cc-prog{display:flex;gap:3px;flex-shrink:0}
.cc-prog i{width:6px;height:6px;border-radius:3px;background:#D4D6CF;transition:width .2s,background .2s}
.cc-prog i.on{background:#F28C28}
.cc-prog i.cur{width:14px;background:var(--cc-acc)}
.cc-chev{display:none;color:var(--cc-muted);transition:transform .2s}
.cc-saved{display:inline-flex;align-items:center;gap:4px;font-size:13px;font-weight:600;color:#2F7A4F;white-space:nowrap}
.cc-saved.busy{color:var(--cc-muted)}
.cc-save{height:44px;padding:0 18px;border:0;border-radius:999px;background:var(--cc-acc);color:#fff !important;font-weight:700 !important;display:inline-flex;align-items:center;gap:8px;box-shadow:0 6px 16px rgba(20,92,99,.22);transition:background .15s,transform .1s}
.cc-save:hover:not(:disabled){background:var(--cc-acc2)}

/* ---------- tools ---------- */
.cc-dock{grid-area:dock}
.cc-tools{display:flex;gap:6px}
.cc-tool{display:inline-flex;align-items:center;justify-content:center;border:0;background:var(--cc-soft);color:var(--cc-ink) !important;transition:background .15s,color .15s,transform .12s}
.cc-tool span{display:none}
.cc-tool svg{width:24px;height:24px}
.cc-tool[aria-checked="true"]{background:var(--cc-acc);color:#fff !important;box-shadow:0 6px 14px rgba(20,92,99,.25)}
.cc-tool:active{transform:scale(.94)}
.cc-dots{display:flex;gap:2px;padding:4px;background:var(--cc-soft);border-radius:16px}
.cc-dots.off{visibility:hidden}
.cc-dot{width:36px;height:40px;border:0;border-radius:12px;background:none;display:inline-flex;align-items:center;justify-content:center;padding:0}
.cc-dot i{display:block;border-radius:50%;background:var(--c,#F28C28);box-shadow:inset 0 0 0 1px rgba(22,32,44,.22)}
.cc-dot[aria-checked="true"]{background:#fff;box-shadow:0 1px 2px rgba(22,32,44,.08),0 2px 8px rgba(22,32,44,.08)}
.cc-stk{display:flex;gap:8px}
.cc-stk[hidden]{display:none}
.cc-sk{width:48px;height:48px;border-radius:12px;border:1px solid var(--cc-line);background:#fff;padding:4px;flex-shrink:0}
.cc-sk canvas{width:100%;height:100%;display:block}
.cc-sk[aria-pressed="true"]{box-shadow:0 0 0 3px var(--cc-acc);border-color:transparent}
.cc-pal{display:flex;gap:8px}
.cc-sw{position:relative;border:0;padding:0;background:var(--c);flex-shrink:0;transition:transform .15s cubic-bezier(.2,.7,.2,1),box-shadow .15s}
.cc-sw i{display:none}
.cc-more{display:inline-flex;align-items:center;justify-content:center;background:conic-gradient(#D62828,#F6B10A,#3C9D3C,#0E7C86,#2E3C8F,#7B3FA0,#D62828) !important;cursor:pointer;color:#fff}
.cc-more svg{width:18px;height:18px;filter:drop-shadow(0 1px 1px rgba(0,0,0,.4))}
.cc-more input{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer}

/* ---------- the page ---------- */
.cc-view{grid-area:view;position:relative;display:flex;flex-direction:column;min-height:0;overflow:hidden}
.cc-canvas{position:relative;flex:1;min-height:0;display:flex;align-items:center;justify-content:center;overflow:hidden;touch-action:none}
.cc-stage{position:relative;background:#fff;border-radius:18px;box-shadow:0 1px 2px rgba(22,32,44,.06),0 16px 40px rgba(22,32,44,.14);transform-origin:center center;touch-action:none;cursor:crosshair;will-change:transform}
.cc-stage[data-tool="fill"]{cursor:cell}.cc-stage[data-tool="sticker"]{cursor:copy}
.cc-stage canvas{position:absolute;inset:0;width:100%;height:100%;border-radius:18px;touch-action:none}
.cc-line{pointer-events:none}
.cc-edge{position:absolute;top:50%;width:56px;height:56px;margin-top:-28px;border-radius:999px;border:1px solid var(--cc-line);background:#fff;display:inline-flex;align-items:center;justify-content:center;z-index:2;box-shadow:0 4px 14px rgba(22,32,44,.1);transition:transform .12s,opacity .2s}
.cc-edge svg{width:24px;height:24px}
.cc-edge-l{left:16px}.cc-edge-r{right:16px;background:var(--cc-acc);border-color:transparent;color:#fff !important;box-shadow:0 8px 18px rgba(20,92,99,.3)}
.cc-edge:disabled{opacity:0 !important;pointer-events:none}
.cc-edge:active{transform:scale(.94)}
.cc-fit{position:absolute;right:16px;bottom:16px;width:44px;height:44px;border-radius:999px;border:1px solid var(--cc-line);background:#fff;display:inline-flex;align-items:center;justify-content:center;box-shadow:0 6px 16px rgba(22,32,44,.12);z-index:2}
.cc-fit[hidden]{display:none}
.cc-nudge{position:absolute;left:50%;bottom:18px;transform:translateX(-50%);z-index:3;animation:ccUp .3s cubic-bezier(.2,.7,.2,1) both}
.cc-nudge[hidden]{display:none}
.cc-nudge button{display:inline-flex;align-items:center;gap:6px;height:48px;padding:0 14px 0 20px;border:0;border-radius:999px;background:var(--cc-ink);color:#fff !important;font-weight:700 !important;box-shadow:0 10px 24px rgba(22,32,44,.25)}
.cc-text{display:none;flex-shrink:0;gap:10px;align-items:flex-start;margin:0 auto 12px;width:min(640px,calc(100% - 24px));padding:10px 14px;background:#fff;border:1px solid var(--cc-line);border-radius:14px}
.cc-txt-on .cc-text{display:flex}
.cc-pn{flex-shrink:0;width:24px;height:24px;border-radius:50%;background:var(--cc-acc);color:#fff;display:inline-flex;align-items:center;justify-content:center;font:700 12px var(--rg-ui,system-ui);margin-top:2px}
.cc-tx{display:flex;flex-direction:column;gap:2px;min-width:0}
.cc-main-tx{font:600 16px/1.5 var(--rg-ui,system-ui);color:var(--cc-ink)}
.cc-main-tx .nm{color:var(--cc-acc)}
.cc-gl{font:italic 400 13px/1.45 var(--rg-ui,system-ui);color:var(--cc-muted)}
.cc-gl .nm{color:inherit}
.cc-toast{position:absolute;left:50%;top:84px;transform:translate(-50%,-8px);background:var(--cc-ink);color:#fff;padding:9px 16px;border-radius:999px;font-weight:600;font-size:13px;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;z-index:20}
.cc-toast.on{opacity:1;transform:translate(-50%,0)}

/* ---------- your pages ---------- */
.cc-side{grid-area:side;display:flex;flex-direction:column;gap:14px;background:#fff;min-height:0}
.cc-grab{display:none}
.cc-sh{display:grid;grid-template-columns:44px minmax(0,1fr);gap:4px 12px;align-items:center}
.cc-shth{grid-row:1;width:44px;height:56px;border-radius:10px;overflow:hidden;display:block;background:#F6F6F2}
.cc-shth svg,.cc-shth img{display:block;width:100%;height:100%;object-fit:cover}
.cc-sht{display:flex;flex-direction:column;min-width:0}
.cc-sht b{font:700 16px/1.3 var(--rg-ui,system-ui)}
.cc-sht span{font-size:12.5px;color:var(--cc-muted)}
.cc-chg{grid-column:1/-1;height:42px;border-radius:999px;border:1px solid var(--cc-line);background:#fff;font-weight:600 !important;color:var(--cc-acc) !important;margin-top:6px}
.cc-chg:hover,.cc-chg[aria-expanded="true"]{border-color:var(--cc-acc)}
.cc-pages{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;overflow:auto;min-height:0;padding:2px}
.cc-pg{position:relative;padding:4px;border-radius:12px;border:1px solid var(--cc-line);background:#fff;transition:transform .15s,box-shadow .15s}
.cc-pg canvas{display:block;width:100%;height:auto;aspect-ratio:300/380;border-radius:8px}
.cc-pg b{position:absolute;left:8px;bottom:8px;min-width:20px;height:20px;border-radius:10px;background:rgba(22,32,44,.78);color:#fff;font:700 11px/20px var(--rg-ui,system-ui);text-align:center;padding:0 6px}
.cc-pg i{position:absolute;right:8px;top:8px;width:20px;height:20px;border-radius:50%;background:#2F7A4F;box-shadow:0 0 0 2px #fff;display:none}
.cc-pg i::after{content:"";position:absolute;left:7px;top:4px;width:5px;height:9px;border:solid #fff;border-width:0 2.5px 2.5px 0;transform:rotate(45deg)}
.cc-pg.done i{display:block}
.cc-pg[aria-current="true"]{border:3px solid var(--cc-acc);padding:2px}
.cc-pg:hover{transform:translateY(-2px);box-shadow:0 8px 18px rgba(22,32,44,.1)}
.cc-name{display:flex;align-items:center;gap:8px;height:46px;padding:0 6px 0 12px;border:1px solid #D5D6CF;border-radius:12px;background:#fff;flex-shrink:0}
.cc-name:focus-within{border-color:var(--cc-acc);box-shadow:0 0 0 3px rgba(20,92,99,.12)}
.cc-name span{font:600 11px var(--rg-ui,system-ui);letter-spacing:.05em;text-transform:uppercase;color:var(--cc-muted);white-space:nowrap}
.cc-name input{flex:1;min-width:0;height:40px;border:0;outline:0;background:none;font:600 16px var(--rg-ui,system-ui);color:var(--cc-ink)}
.cc-sacts{display:flex;flex-direction:column;gap:6px;flex-shrink:0}
.cc-sa{display:flex;align-items:center;gap:10px;height:44px;padding:0 14px;border-radius:999px;border:1px solid var(--cc-line);background:#fff;font-weight:600 !important;text-align:left}
.cc-sa svg{color:var(--cc-acc);width:20px;height:20px}
.cc-sa[aria-pressed="true"]{border-color:var(--cc-acc);background:#E8F1F2}
.cc-sa:hover{background:#F7F7F3}
.cc-danger{color:#B23A2B !important}.cc-danger svg{color:#B23A2B}
.cc-backcol{display:none}
.cc-scrim{display:none}

/* story picker (shares the .sp styles of the main story picker) */
.cc-sp{position:absolute;z-index:30;left:50%;top:calc(env(safe-area-inset-top,0px) + 76px);transform:translateX(-50%);width:min(580px,calc(100% - 24px));max-height:calc(100% - 100px);margin:0}
.cc-sp .sp-grid{flex:1;min-height:0;max-height:none}
.cc-sp .sp-head,.cc-sp .sp-chips{flex-shrink:0}
.cc-sp[hidden]{display:none}
.cc .cc-sp{margin:0}
.cc-sp{animation:ccSp .22s cubic-bezier(.2,.7,.2,1) both !important}   /* the shared picker's own animation ends on transform:none, which undid the centring */
@keyframes ccSp{from{opacity:0;transform:translate(-50%,-6px)}to{opacity:1;transform:translate(-50%,0)}}
@media (max-width:760px){
  .cc-sp{position:fixed;inset:0;left:0;top:0;width:100%;max-width:none;max-height:none;height:100%;margin:0;border:0;border-radius:0;box-sizing:border-box;z-index:40;transform:none;
    padding:calc(10px + env(safe-area-inset-top,0px)) 12px calc(12px + env(safe-area-inset-bottom,0px));animation:ccSpUp .24s cubic-bezier(.2,.7,.2,1) both !important}
  @keyframes ccSpUp{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}
  .cc-sp .sp-head{position:sticky;top:0}
  .cc-sp .sp-chips{overflow-x:auto;flex-wrap:nowrap;scrollbar-width:none}
  .cc-sp .sp-chips::-webkit-scrollbar{display:none}
  .cc-sp .sp-grid{overflow-y:auto}
}

/* ---------- desktop / tablet: tools left, page centre, pages right ---------- */
@media (min-width:761px){
  .cc{grid-template-columns:120px minmax(0,1fr) 256px;grid-template-rows:68px minmax(0,1fr);grid-template-areas:"top top top" "dock view side"}
  .cc-top{padding:0 20px;background:#fff;border-bottom:1px solid var(--cc-line)}
  .cc-chip{justify-content:center;cursor:default;pointer-events:none}
  .cc-chip .cc-cht{flex-direction:row;align-items:baseline;gap:10px}
  .cc-chip .cc-cht span::before{content:"· "}
  .cc-dock{display:flex;flex-direction:column;align-items:center;gap:12px;padding:18px 0;background:#fff;border-right:1px solid var(--cc-line);overflow-y:auto;scrollbar-width:none}
  .cc-dock::-webkit-scrollbar{display:none}
  .cc-tools{flex-direction:column;gap:10px}
  .cc-tool{width:64px;height:64px;border-radius:18px}
  .cc-tool svg{width:28px;height:28px}
  .cc-dots{flex-direction:column;background:none;padding:0;gap:4px}
  .cc-dot{width:64px;height:40px}
  .cc-dot[aria-checked="true"]{background:var(--cc-soft);box-shadow:none}
  .cc-stk{display:grid;grid-template-columns:repeat(2,48px)}
  .cc-pal{display:grid;grid-template-columns:repeat(3,30px);gap:8px;margin-top:auto;padding-top:8px}
  .cc-sw{width:30px;height:30px;border-radius:50%;box-shadow:inset 0 0 0 1px rgba(22,32,44,.18)}
  .cc-sw:hover{transform:scale(1.1)}
  .cc-sw[aria-checked="true"]{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--cc-ink);transform:scale(1.08)}
  .cc-side{padding:18px 16px;border-left:1px solid var(--cc-line)}
  .cc-ph{display:none}
  .cc-txt-on .cc-text{margin-bottom:16px}
}
@media (min-width:761px) and (max-width:1020px){
  .cc{grid-template-columns:96px minmax(0,1fr) 208px}
  .cc-tool{width:56px;height:56px}
  .cc-pal{grid-template-columns:repeat(2,30px)}
  .cc-back span,.cc-saved{display:none}.cc-back{padding:0 10px}
  .cc-edge{width:48px;height:48px;margin-top:-24px}
}

/* ---------- phones: a calm studio — one slim bar, the picture, one row of colours ---------- */
.cc-tb,.cc-pager,.cc-mb{display:none}
@media (min-width:761px){.cc-pop{display:contents}}
@media (max-width:760px){
  /* height budget: fixed top bar + fixed dock (+ home-indicator inset); the picture takes exactly what is left */
  .cc{--rg-top:52px;--rg-dock:64px;--rg-safe:env(safe-area-inset-bottom,0px);bottom:auto;height:100vh;height:100svh;height:var(--rg-vh,100dvh);
    grid-template-columns:minmax(0,1fr);grid-template-rows:var(--rg-top) minmax(0,1fr) calc(var(--rg-dock) + var(--rg-safe));grid-template-areas:"top" "view" "dock"}
  .cc.cc-compact{--rg-top:48px;--rg-dock:56px}
  .cc-top{padding:0 8px;gap:6px;height:var(--rg-top);box-sizing:border-box}
  .cc-back{width:40px;height:40px;padding:0;justify-content:center;border:0;background:none;box-shadow:none}
  .cc-back span{display:none}
  .cc-top .cc-ib{width:40px;height:40px;border:0;background:none;box-shadow:none}
  .cc-dk,.cc-chip,.cc-saved,.cc-edge{display:none !important}
  .cc-pager{flex:1;display:flex;align-items:center;justify-content:center;gap:2px;min-width:0}
  .cc-pv{width:40px;height:40px;border:0;border-radius:999px;background:none;display:inline-flex;align-items:center;justify-content:center;padding:0}
  .cc-pv svg{width:20px;height:20px}
  .cc-pc{min-width:44px;text-align:center;font:700 15px/1 var(--rg-ui,system-ui);color:var(--cc-ink);font-variant-numeric:tabular-nums}
  .cc-mb{display:inline-flex;align-items:center;gap:5px;height:40px;padding:0 12px 0 9px;border-radius:999px;border:0;background:var(--cc-acc,#145C63);color:#fff;font:700 13px/1 var(--rg-ui,system-ui);white-space:nowrap;flex-shrink:0;cursor:pointer}
  .cc-mb svg{width:18px;height:18px}
  .cc-mb[aria-expanded="true"]{background:#0F474D}
  .cc-view{padding:0 6px 6px}
  .cc-stage,.cc-stage canvas{border-radius:14px}
  .cc-stage{box-shadow:0 1px 2px rgba(22,32,44,.06),0 8px 24px rgba(22,32,44,.1)}
  .cc-fit{right:14px;bottom:14px}
  .cc-nudge{bottom:12px}
  .cc-txt-on .cc-text{margin:6px auto 0;width:100%;padding:8px 12px;box-sizing:border-box}
  .cc-txt-on .cc-pn,.cc-txt-on .cc-gl{display:none}
  .cc-main-tx{font-size:14.5px;line-height:1.4}
  .cc-toast{top:calc(env(safe-area-inset-top,0px) + 60px)}
  /* bottom dock: the tool button, then one scrolling row of colours */
  .cc-dock{position:relative;display:flex;align-items:center;gap:10px;height:100%;box-sizing:border-box;padding:0 10px var(--rg-safe);background:#fff;border-top:1px solid var(--cc-line)}
  .cc-tb{position:relative;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:48px;height:48px;border:0;border-radius:14px;background:var(--cc-acc);color:#fff !important;padding:0}
  .cc-tb svg{width:24px;height:24px}
  .cc-tb i{position:absolute;right:5px;bottom:5px;border-radius:50%;background:var(--c,#F28C28);box-shadow:0 0 0 2px #fff}
  .cc-tb[aria-expanded="true"]{box-shadow:0 0 0 3px rgba(20,92,99,.25)}
  .cc-pal{flex:1;min-width:0;display:flex;align-items:center;gap:10px;height:48px;overflow-x:auto;overflow-y:hidden;padding:0 6px;scroll-snap-type:x proximity;scrollbar-width:none}
  .cc-pal::-webkit-scrollbar{display:none}
  .cc-sw{width:34px;height:34px;border-radius:50%;scroll-snap-align:start;box-shadow:inset 0 0 0 1px rgba(22,32,44,.16)}
  .cc-sw[aria-checked="true"]{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--cc-ink)}
  .cc-more{width:34px;height:34px;border-radius:50%}
  /* the small tools popover above the tool button */
  .cc-pop{display:none;position:absolute;left:8px;bottom:calc(100% + 8px);z-index:10;flex-direction:column;gap:8px;padding:10px;background:#fff;border-radius:18px;box-shadow:0 12px 36px rgba(22,32,44,.2);max-width:calc(100% - 16px);box-sizing:border-box;animation:ccIn .16s ease-out both}
  .cc-popon .cc-pop{display:flex}
  .cc-tools{display:flex;gap:6px}
  .cc-tool{width:48px;height:48px;border-radius:14px}
  .cc-dots{display:flex;align-self:flex-start}
  .cc-dots.off{display:none}
  .cc-dot{width:48px;height:40px}
  .cc-stk{display:flex;flex-wrap:wrap;gap:6px;max-width:220px}
  .cc-sk{width:44px;height:44px}
  /* compact tier: very short screens (landscape-ish or small iPhones with toolbars) */
  .cc-compact .cc-tb{width:42px;height:42px;border-radius:12px}
  .cc-compact .cc-tb svg{width:22px;height:22px}
  .cc-compact .cc-pal{height:42px;gap:8px}
  .cc-compact .cc-sw,.cc-compact .cc-more{width:30px;height:30px}
  .cc-compact .cc-back,.cc-compact .cc-top .cc-ib,.cc-compact .cc-pv{width:40px;height:40px}
  /* "Your pages" drawer */
  .cc-scrim{display:block;position:fixed;inset:0;z-index:20;background:rgba(22,32,44,.42);animation:ccIn .2s ease-out both}
  .cc-scrim[hidden]{display:none}
  .cc-side{position:fixed;left:0;right:0;bottom:0;top:calc(env(safe-area-inset-top,0px) + 72px);z-index:21;padding:8px 16px calc(16px + env(safe-area-inset-bottom,0px));border-radius:24px 24px 0 0;box-shadow:0 -12px 40px rgba(22,32,44,.18);overflow-y:auto;transform:translateY(105%);visibility:hidden;transition:transform .32s cubic-bezier(.2,.7,.2,1),visibility 0s linear .32s}
  .cc-dopen .cc-side{transform:none;visibility:visible;transition:transform .32s cubic-bezier(.2,.7,.2,1),visibility 0s}
  .cc-grab{display:block;align-self:center;width:40px;height:5px;border-radius:3px;background:var(--cc-line);flex-shrink:0}
  .cc-sh{grid-template-columns:44px minmax(0,1fr) auto}
  .cc-chg{grid-column:auto;margin:0;padding:0 14px;height:40px}
  .cc-pages{display:flex;gap:8px;flex-shrink:0;min-height:auto;overflow-x:auto;overflow-y:hidden;padding:2px 2px 4px;scroll-snap-type:x proximity;scrollbar-width:none}
  .cc-pages::-webkit-scrollbar{display:none}
  .cc-pg{flex:0 0 88px;scroll-snap-align:start}
  .cc-pg:hover{transform:none;box-shadow:none}
  .cc-sacts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  .cc-sa{flex-direction:column;justify-content:center;gap:4px;height:66px;border-radius:16px;padding:4px;text-align:center;font-size:12.5px !important;line-height:1.2}
  .cc-backcol{display:block;flex-shrink:0;height:52px;border:0;border-radius:999px;background:var(--cc-acc);color:#fff !important;font-weight:700 !important;margin-top:auto}
}
@media (max-width:360px){.cc-mb{padding:0 9px 0 7px;font-size:12px}.cc-pc{min-width:40px}.cc-sw{width:30px;height:30px}.cc-more{width:30px;height:30px}.cc-pal{gap:8px}}
@media (prefers-reduced-motion:reduce){.cc,.cc *{animation:none !important;transition:none !important}}
@media print{.cc{display:none !important}html.cc-printing body>*:not(.cc-print){display:none !important}html.cc-printing .cc-print{display:block !important;width:100%;height:auto;padding:8mm 0;text-align:center;break-inside:avoid}html.cc-printing .cc-print img{display:inline-block;width:190mm;height:240mm;max-width:100%;object-fit:contain}html body #view-book .book .page{zoom:.9;margin:0 auto !important;break-inside:avoid;break-after:page;page-break-after:always}html body #view-book .book .page:last-child{break-after:auto !important;page-break-after:auto !important}}
.cc-print{display:none}
.cc-open svg{color:var(--cc-acc,var(--rg-accent,#145C63))}
/* "Colour online" menu item */
nav.main .cc-menu{height:64px;padding:0 14px;border:0;border-radius:0;background:none;font:500 14.5px var(--ui,system-ui);color:var(--muted,#5A6573);position:relative;cursor:pointer}
nav.main .cc-menu:hover{color:var(--ink,#16202C)}
nav.main .cc-menu[aria-current="page"]{color:var(--ink,#16202C);font-weight:600}
nav.main .cc-menu[aria-current="page"]::after{content:"";position:absolute;left:14px;right:14px;bottom:-1px;height:2px;border-radius:2px;background:var(--accent,#145C63)}
@media (max-width:700px){
  .tabbar.cc-tab4{grid-template-columns:repeat(4,1fr)}
  .tabbar .cc-menu{border:0;background:none;display:flex;flex-direction:column;align-items:center;gap:3px;padding:6px 0;font:500 11px var(--ui,system-ui);color:var(--muted,#5A6573);border-radius:12px;cursor:pointer}
  .tabbar .cc-menu[aria-current="page"]{color:var(--accent,#145C63);font-weight:600}
}
