/* RESILIENCE CRM YouTube | clean ONE-inspired web analytics */
#yt-root{display:block;max-width:1320px;margin:0 auto;color:var(--ink,#151515)}
#yt-root *{box-sizing:border-box}
#yt-root .yt-title{margin:0 0 25px}
#yt-root .yt-title small{font-size:11px;letter-spacing:.16em;color:#b50c2e;font-weight:800}
#yt-root .yt-title h1{font-size:clamp(27px,3vw,42px);letter-spacing:-.055em;margin:11px 0 0}
#yt-root .yt-form,#yt-root .yt-report{background:var(--card,#fff);border:1px solid var(--line,#e6e3de);border-radius:16px;padding:26px;margin:0 0 22px}
#yt-root .yt-form h2{margin:0 0 9px;font-size:23px;letter-spacing:-.035em}
#yt-root .yt-form>p{font-size:13px;color:var(--sub,#696763);line-height:1.55;margin:0 0 19px}
#yt-root .yt-form-grid{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:20px;margin:0 0 20px}
#yt-root .yt-form-grid>label{display:flex;flex-direction:column;gap:9px;min-width:0;font-size:13px;font-weight:750}
#yt-root .yt-presets{display:flex;gap:7px;flex-wrap:wrap}
#yt-root .yt-presets button{padding:9px 12px;border-radius:8px;border:1px solid var(--line,#ddd);background:var(--card,#fff);color:var(--ink,#151515);font-size:12px;cursor:pointer}
#yt-root .yt-presets button:hover{border-color:#b50c2e;color:#b50c2e}
#yt-root .yt-dates{display:flex;gap:10px;flex-wrap:wrap}
#yt-root .yt-dates input{flex:1;min-width:145px}
#yt-root .yt-dates input,#yt-root #yt-property{width:100%;height:42px;padding:10px;border:1px solid var(--line,#ddd);border-radius:8px;background:var(--card,#fff);color:var(--ink,#151515);font-size:13px}
#yt-root #yt-property{max-width:100%}
#yt-root .yt-btn{min-height:41px;padding:10px 18px;border:1px solid #b50c2e;border-radius:9px;color:#fff;background:#b50c2e;font-size:13px;font-weight:750;cursor:pointer}
#yt-root .yt-btn:disabled{opacity:.42;cursor:not-allowed}
#yt-root .yt-btn.yt-secondary{color:#b50c2e;background:transparent}
#yt-root .yt-connection-row{display:flex;align-items:center;gap:12px 16px;flex-wrap:wrap;margin:0 0 18px}
#yt-root .yt-connection-row .yt-connected{margin:0!important}
#yt-root .yt-account-actions{display:flex;gap:8px;flex-wrap:wrap}
#yt-root .yt-account-button{font:inherit;font-size:12px;font-weight:700;line-height:1.3;padding:10px 13px;min-height:38px;color:var(--ink,#151515);background:transparent;border:1px solid var(--line,#dedbd6);border-radius:8px;cursor:pointer}
#yt-root .yt-account-button:hover{border-color:#b50c2e;color:#b50c2e}
#yt-root .yt-account-button:focus-visible{outline:2px solid #b50c2e;outline-offset:2px}
#yt-root .yt-account-button:disabled{opacity:.5;cursor:not-allowed}
#yt-root .yt-account-disconnect{color:#b50c2e}
#yt-root .yt-connected{display:inline-block;background:#e8f4e9;color:#23713e;border:1px solid #bcdac1;border-radius:8px;padding:7px 12px!important;font-size:12px!important}
#yt-root .yt-connect{padding:15px 17px;margin:12px 0 20px;border:1px solid var(--line,#e5e2de);border-radius:10px}
#yt-root .yt-connect p{font-size:12px;color:var(--sub,#696763);line-height:1.5}
#yt-root .yt-muted{font-size:12px;color:var(--sub,#696763);line-height:1.55}
#yt-root .yt-error,#yt-root .yt-notice{border:1px solid #e8b9c4;background:#fff0f2;color:#95172f;border-radius:9px;padding:14px;margin-bottom:18px;font-size:13px}
#yt-root .yt-notice{border-color:#bad9c1;background:#e9f5ec;color:#226c3b}
#yt-root .yt-progress{position:sticky;top:10px;z-index:20;border:1px solid #dfb6c0;background:var(--card,#fff);border-radius:12px;padding:15px 17px;margin-bottom:18px;display:flex;align-items:center;gap:12px;flex-wrap:wrap;box-shadow:0 10px 24px rgba(30,20,20,.08)}
#yt-root .yt-progress strong{font-size:13px}
#yt-root .yt-spinner{width:24px;height:24px;flex-shrink:0;border-radius:50%;border:3px solid #f2dce2;border-top-color:#b50c2e;animation:yt-spin .8s linear infinite}
#yt-root .yt-progress-track{height:7px;background:#f4e7ea;overflow:hidden;border-radius:8px;width:100%}
#yt-root .yt-progress-track i{display:block;width:35%;height:100%;background:#b50c2e;animation:yt-move 1.5s ease-in-out infinite}
@keyframes yt-spin{to{transform:rotate(360deg)}}@keyframes yt-move{from{transform:translateX(-105%)}to{transform:translateX(300%)}}
#yt-root .yt-report{background:#fff;color:#171717}
#yt-root .yt-report-head{display:flex;justify-content:space-between;gap:15px;align-items:start;border-bottom:3px solid #b50c2e;padding-bottom:18px}
#yt-root .yt-report-head small{font-size:11px;color:#b50c2e;letter-spacing:.14em;font-weight:800}
#yt-root .yt-report-head h2{font-size:clamp(22px,2.8vw,32px);margin:8px 0 5px;letter-spacing:-.045em}
#yt-root .yt-report-head p{font-size:12px;color:#64615c;margin:0}
#yt-root .yt-report-head>span{background:#f6f4ee;color:#64615c;padding:7px 11px;border-radius:8px;font-size:11px}
#yt-root .yt-report h3{font-size:19px;letter-spacing:-.025em;margin:26px 0 15px}
#yt-root .yt-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px}
#yt-root .yt-kpi{border:1px solid #e6e2dc;border-radius:11px;padding:16px;min-width:0;display:flex;flex-direction:column;gap:7px}
#yt-root .yt-kpi small,#yt-root .yt-kpi span{font-size:11px;color:#696661}
#yt-root .yt-kpi strong{font-size:clamp(18px,2.2vw,27px);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
#yt-root .yt-comparisons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
#yt-root .yt-comparison{padding:17px;border:1px solid #e3e0da;border-radius:12px;min-width:0}
#yt-root .yt-comparison>strong{display:block;font-size:13px}
#yt-root .yt-comparison>small{display:block;font-size:11px;color:#b50c2e;margin:6px 0 12px;font-weight:700}
#yt-root .yt-bars{display:grid;grid-template-columns:78px minmax(0,1fr) 72px;gap:9px;align-items:center;margin:8px 0}
#yt-root .yt-bars span{font-size:10px;color:#666}
#yt-root .yt-bars>b{text-align:right;font-size:11px}
#yt-root .yt-bars>div{height:13px;border-radius:10px;background:#eee;overflow:hidden}
#yt-root .yt-bars i{display:block;height:100%;border-radius:10px;background:#b50c2e}
#yt-root .yt-bars .yt-prev{background:#666}
#yt-root .yt-chart{display:block;width:100%;max-height:230px;height:auto}
#yt-root .yt-table-scroll{max-width:100%;overflow-x:auto}
#yt-root .yt-table{width:100%;min-width:470px;font-size:11px;border-collapse:collapse}
#yt-root .yt-table th,#yt-root .yt-table td{text-align:left;padding:10px 9px;border-bottom:1px solid #e8e6e1;overflow-wrap:anywhere}
#yt-root .yt-table th{background:#f6f4ee;font-weight:800}
#yt-root .yt-page-engagement-note{font-size:12px;color:#64615c;line-height:1.6;margin:-5px 0 15px}
#yt-root .yt-table td:first-child{min-width:145px;max-width:390px;overflow-wrap:anywhere}
#yt-root .yt-table td:nth-child(n+2){font-variant-numeric:tabular-nums}
#yt-root .yt-two-col{display:grid;grid-template-columns:1fr 1fr;gap:15px}
#yt-root .yt-report-note{font-size:11px;color:#6a6762;line-height:1.6;padding-top:12px}
#yt-root .yt-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:21px}
@media(max-width:900px){#yt-root .yt-form-grid{grid-template-columns:1fr}#yt-root .yt-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:650px){#yt-root .yt-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}#yt-root .yt-comparisons,#yt-root .yt-two-col{grid-template-columns:1fr}#yt-root .yt-form,#yt-root .yt-report{padding:17px}}
@media(prefers-reduced-motion:reduce){#yt-root .yt-spinner,#yt-root .yt-progress-track i{animation-duration:4s}}
@media print{
 @page{size:A4 landscape;margin:13mm}
 body *{visibility:hidden!important}
 #yt-print,#yt-print *{visibility:visible!important}
 #yt-print{display:block!important;position:absolute!important;top:0!important;left:0!important;width:100%!important;max-width:none!important;border:0!important;border-radius:0!important;margin:0!important;padding:0!important}
 #yt-print .yt-actions{display:none!important}
 #yt-print .yt-kpi,#yt-print .yt-comparison{break-inside:avoid}
 #yt-print .yt-kpis{grid-template-columns:repeat(4,minmax(0,1fr))}
 #yt-print .yt-comparisons{grid-template-columns:repeat(2,minmax(0,1fr))}
 #yt-print tr{break-inside:avoid}
}
#yt-root .yt-video-list{display:flex;flex-direction:column;gap:10px}
#yt-root .yt-video{display:grid;grid-template-columns:23px 125px minmax(0,1fr) 50px;gap:13px;align-items:center;border:1px solid #e6e2dd;border-radius:10px;padding:11px;break-inside:avoid}
#yt-root .yt-video>img,#yt-root .yt-thumb-fallback{width:125px;aspect-ratio:16/9;border-radius:7px;object-fit:cover;background:#f6f4ee}
#yt-root .yt-thumb-fallback{display:flex;align-items:center;justify-content:center;color:#b50c2e;font-size:24px}
#yt-root .yt-rank{font-size:13px;color:#888;font-weight:800;text-align:center}
#yt-root .yt-video-main{display:flex;flex-direction:column;gap:8px;min-width:0}
#yt-root .yt-video-main>a,#yt-root .yt-video-main>strong{font-size:13px;font-weight:750;color:#151515;text-decoration:none;overflow-wrap:anywhere}
#yt-root .yt-video-main>a:hover{color:#b50c2e}
#yt-root .yt-video-main>small{font-size:11px;line-height:1.5;color:#696660}
#yt-root .yt-video-metrics{display:flex;flex-direction:column;text-align:right;gap:3px}
#yt-root .yt-video-metrics strong{font-size:14px}
#yt-root .yt-video-metrics small{color:#777;font-size:10px}
@media(max-width:600px){
 #yt-root .yt-video{grid-template-columns:17px 85px minmax(0,1fr);gap:8px;padding:8px}
 #yt-root .yt-video>img,#yt-root .yt-thumb-fallback{width:85px}
 #yt-root .yt-video-metrics{display:none}
}
@media print{
 #yt-print .yt-video{grid-template-columns:20px 105px minmax(0,1fr) 50px}
 #yt-print .yt-video>img{width:105px}
}
