/* canopy-web.css — Drift web view */
.cnp-web{ position:relative; width:100%; min-height:180px; border-radius:14px; overflow:hidden; background:#fff; border:1px solid var(--border,#2a3441); flex:none; }
.cnp-web-frame{ position:absolute; left:0; top:0; border:0; background:#fff; display:block; }
.cnp-web-bar{ position:absolute; left:0; right:0; top:0; height:3px; background:transparent; pointer-events:none; opacity:0; transition:opacity .2s; z-index:3; }
.cnp-web-bar.on{ opacity:1; }
.cnp-web-prog{ display:block; height:100%; width:35%; background:var(--accent,#00ffcc); animation:cnp-webprog 1.1s ease-in-out infinite; border-radius:0 3px 3px 0; }
@keyframes cnp-webprog{ 0%{ margin-left:-35%; } 100%{ margin-left:100%; } }
.cnp-web-open{ position:absolute; right:8px; bottom:8px; z-index:4; width:36px; height:36px; border-radius:18px; border:1px solid rgba(255,255,255,.25); background:rgba(16,21,28,.82); color:#fff; font-size:17px; line-height:1; cursor:pointer; backdrop-filter:blur(6px); opacity:.85; }
.cnp-web-open:hover{ opacity:1; border-color:var(--accent,#00ffcc); }
.cnp-web-note{ position:absolute; left:8px; right:52px; bottom:8px; z-index:3; padding:6px 10px; border-radius:10px; font-size:11.5px; line-height:1.35; background:rgba(16,21,28,.88); color:#d7e0ea; display:none; pointer-events:none; }
.cnp-web.slow:not(.loaded) .cnp-web-note{ display:block; }
.cnp-web:not([data-has]) .cnp-web-frame:not([src]){ display:none; }

/* ---- Drift browser chrome (phone/apps/drift.ashos). Theme variables only; 44px+ touch targets. ---- */
.dhide{ display:none!important; }
.cnp-scroll:has(>.cnp-web:not(.dhide)){ overflow:hidden; padding-bottom:20px; gap:8px; }
.cnp-button.k-mode{ flex:2.2 1 0; min-width:0; min-height:44px; padding:4px 6px; font-size:11.5px; letter-spacing:.03em; border-radius:22px; background:color-mix(in srgb,var(--accent) 14%,var(--surface2)); border-color:color-mix(in srgb,var(--accent) 30%,var(--border)); color:var(--accent); }
.cnp-button.k-x{ flex:0 0 52px!important; min-height:56px; color:var(--danger); background:color-mix(in srgb,var(--danger) 13%,var(--surface2)); border-color:color-mix(in srgb,var(--danger) 38%,var(--border)); font-size:18px; padding:0; }
.cnp-button.k-hint{ min-height:0; padding:6px 10px; justify-content:flex-start; text-align:left; font-size:11.5px; font-weight:450; line-height:1.3; color:var(--dim); border-radius:10px; background:color-mix(in srgb,var(--accent) 8%,var(--surface)); box-shadow:none; }
.cnp-button.k-tool{ min-width:0; min-height:44px; font-size:24px; }
.cnp-scroll>.cnp-col>.cnp-row>.cnp-input{ min-height:44px; padding:8px 12px; }
.cnp-scroll>.cnp-col>.cnp-row>.cnp-button.k-go{ min-height:44px; flex:0 0 64px!important; }
.cnp-scroll>.cnp-col:first-child>.cnp-row:first-child{ gap:6px; }
/* start page: hero search, bookmark tiles (2 cols portrait, 4 landscape), recents */
.cnp-scroll>.cnp-col>.cnp-row:first-child>.cnp-input{ min-height:56px; font-size:17px; border-radius:28px; padding:10px 20px; }
.cnp-scroll>.cnp-col>.cnp-row:first-child>.cnp-button.k-go{ min-height:56px; border-radius:28px; flex:0 0 72px!important; }
.cnp-col .cnp-grid>.cnp-button.k-card{ font-size:12.5px; min-height:52px; padding:8px 6px 8px 10px; gap:6px; overflow-wrap:anywhere; letter-spacing:0; }
.cnp-col .cnp-grid>.cnp-button.k-card::after{ display:none; }
.cnp-col .cnp-grid>.cnp-button.k-card::before{ width:3px; margin-right:-2px; }
.cnp-scroll>.cnp-col>.cnp-text[style*="font-size: 12px"]{ letter-spacing:.12em; font-weight:650; padding:6px 2px 0; }
.cnp-scroll>.cnp-col>.cnp-text[style*="font-size: 12px"]:last-child{ letter-spacing:.01em; font-weight:400; text-align:center; padding:6px 8px 0; }
.cnp-device.landscape .cnp-col .cnp-grid{ grid-template-columns:repeat(4,minmax(0,1fr))!important; }
.cnp-device.landscape .cnp-scroll>.cnp-col:first-child>.cnp-row:first-child{ flex:0 0 320px; }
.cnp-device.landscape .cnp-scroll>.cnp-col>.cnp-row:first-child{ max-width:560px; }
