/* Reusable App Framework — Home tiles + AppShell (Apple standing rules). */
.af-home-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-top:28px;align-items:stretch}
a.af-tile{display:flex;flex-direction:column;align-items:flex-start;min-height:206px;height:206px;padding:28px 24px;background:#FFFFFF;border:1px solid #E5E5EA;border-radius:20px;box-shadow:0 2px 6px rgba(0,0,0,.04),0 12px 32px rgba(0,0,0,.06);color:#1D1D1F!important;text-decoration:none!important;transition:transform .14s ease,box-shadow .14s ease}
a.af-tile:hover{transform:translateY(-2px);box-shadow:0 8px 24px rgba(0,0,0,.08);text-decoration:none!important}
a.af-tile:focus-visible{outline:3px solid #2147C7;outline-offset:2px}
.af-tile-ico{width:40px;height:40px;border-radius:12px;background:#EAF0FF;display:inline-flex;align-items:center;justify-content:center;flex:none}
.af-tile-ico svg{width:24px;height:24px;display:block}
.af-tile-title{margin:16px 0 0;font-size:22px;font-weight:600;line-height:1.25;color:#1D1D1F;letter-spacing:-.01em}
.af-tile-sub{margin:4px 0 0;font-size:17px;line-height:1.35;color:#424245;font-weight:400}
.af-tile-status{margin-top:auto;padding-top:16px;font-size:17px;font-weight:500;color:#1D1D1F;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.af-pill{display:inline-flex;align-items:center;border-radius:999px;padding:4px 12px;font-weight:600;font-size:15px;white-space:nowrap}
.af-pill-amber{background:#F8E4C4;color:#5A2D00}
.af-pill-red{background:#FCE8E6;color:#8F1D14}

.af-shell{margin:0}
.af-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin:0 0 28px;flex-wrap:wrap}
.af-head .p2-h1,.af-head h1.p2-h1{font-size:40px;font-weight:700;letter-spacing:-.02em;line-height:1.1;color:#1D1D1F;margin:0 0 8px}
.af-head .p2-sub{font-size:19px;line-height:1.4;color:#424245;margin:0;max-width:none}
.af-head-action{flex:none;display:flex;align-items:center;gap:12px}
.af-tabs{display:flex;gap:0;border-bottom:1px solid #E5E5EA;margin:0 0 28px;overflow-x:auto;scrollbar-width:none}
.af-tabs::-webkit-scrollbar{display:none}
.af-tabs [role=tab]{appearance:none;-webkit-appearance:none;background:none;border:0;border-radius:0;min-height:48px;height:48px;padding:12px 4px;margin:0 28px 0 0;font-size:17px;font-weight:500;color:#424245;cursor:pointer;box-shadow:none;text-decoration:none!important}
.af-tabs [role=tab]:hover{color:#1D1D1F;text-decoration:none!important}
.af-tabs [role=tab][aria-selected=true]:hover{background:#F2F2F7} /* design-gate button-states (CEO Nov 6) */
.af-tabs [role=tab][aria-selected=true]{color:#1D1D1F;font-weight:600;box-shadow:inset 0 -2px 0 #2147C7}
.af-tabs [role=tab]:focus-visible{outline:3px solid #2147C7;outline-offset:2px}
/* v5.1 delta: tab labels never wrap; tighter gap on phones so Overview / Top Pages / Sources fit at 390 (row still scrolls, never the page) */
.af-tabs [role=tab]{white-space:nowrap;flex:0 0 auto}.af-tabs [role=tab]:last-child{margin-right:0}
@media (max-width:600px){.af-tabs [role=tab]{margin-right:20px}.af-tabs [role=tab]:last-child{margin-right:0}}
.af-body{min-width:0}

.af-card{background:#FFFFFF;border:1px solid #E5E5EA;border-radius:20px;box-shadow:0 2px 6px rgba(0,0,0,.04),0 12px 32px rgba(0,0,0,.06);overflow:hidden}
.af-card + .af-card{margin-top:24px}
.af-card-band{display:flex;align-items:center;gap:16px;min-height:96px;padding:24px 32px;background:#F5F5F7;border-bottom:1px solid #E5E5EA}
.af-card-band .af-tile-ico{background:#EAF0FF;border-radius:10px}
.af-card-band h2{margin:0;font-size:20px;font-weight:600;color:#1D1D1F;letter-spacing:-.01em}
.af-card-band p{margin:2px 0 0;font-size:17px;font-weight:400;color:#424245}
.af-card-body{padding:32px}
.af-card-foot{display:flex;justify-content:flex-end;align-items:center;gap:12px;margin-top:24px;flex-wrap:wrap}
.af-list{margin:0;padding:0;list-style:none}
.af-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:19px 0;border-bottom:1px solid #E3E3E8;min-height:48px}
.af-row:first-child{padding-top:0}
.af-row:last-child{border-bottom:0;padding-bottom:0}
.af-row-main{min-width:0}
.af-row-main b{display:block;font-weight:600;color:#1D1D1F;font-size:17px}
.af-row-main span{display:block;color:#424245;font-size:17px;margin-top:2px}
.af-row-end{flex:none;text-align:right;font-weight:500;color:#1D1D1F;font-size:17px;white-space:nowrap}
.af-metric{font-size:40px;font-weight:700;letter-spacing:-.02em;color:#1D1D1F;line-height:1.1;margin:0 0 16px}
.af-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;align-items:stretch}
.af-pair > .af-card{margin-top:0;height:100%}

/* Apple 48px select (framework + global portal rule reinforced here) */
.af-select,.af-shell select,select.af-select{
  appearance:none;-webkit-appearance:none;-moz-appearance:none;
  height:48px;min-height:48px;border-radius:12px;background-color:#F5F5F7;border:1px solid #D2D2D7;
  padding:0 44px 0 16px;font-size:17px;font-weight:500;color:#1D1D1F;cursor:pointer;width:auto;min-width:184px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%232147C7' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 14px center;background-size:20px 20px}
.af-select:focus,.af-shell select:focus{outline:none;border-color:#2147C7;box-shadow:0 0 0 3px rgba(33,71,199,.22)}

.p2-btn{display:inline-flex;align-items:center;justify-content:center;height:48px;min-height:48px;padding:0 24px;border-radius:999px;border:0;font-size:17px;font-weight:600;cursor:pointer;white-space:nowrap;text-decoration:none!important;background:#2147C7;color:#fff!important}
.p2-btn:hover{background:#1B3BA8;color:#fff!important;text-decoration:none!important}
.p2-btn:focus-visible{outline:3px solid #2147C7;outline-offset:2px}

.af-site-card{background:#FFFFFF;border:1px solid #E5E5EA;border-radius:20px;box-shadow:0 2px 6px rgba(0,0,0,.04),0 12px 32px rgba(0,0,0,.06);overflow:hidden}
.af-site-card .af-card-band{min-height:96px}
.af-site-body{padding:24px 32px 32px}
.p2-preview{position:relative;border:1px solid #E3E3E8;border-radius:12px;overflow:hidden;background:#fff;aspect-ratio:16/10;max-height:360px}
.p2-preview .hm-frame{position:absolute;inset:0;width:100%;height:100%;border:0;pointer-events:none;background:#fff}
.p2-preview.hm-real{width:100%;min-width:0;box-sizing:border-box;aspect-ratio:auto;max-height:none;height:auto;overflow:hidden}
.p2-preview.hm-real .hm-scale{position:absolute;top:0;left:0;width:1280px;max-width:none;transform-origin:top left}
.p2-preview.hm-real .hm-frame{position:relative;inset:auto;display:block;width:1280px;max-width:none;height:800px}
.af-site-foot{display:flex;justify-content:flex-end;margin-top:24px}

@media (max-width:720px){.af-pair{grid-template-columns:1fr}}
@media (max-width:680px){
  .af-home-grid{grid-template-columns:1fr}
  a.af-tile{height:auto;min-height:206px;padding:24px}
  .af-card-band{padding:20px 24px}.af-card-body{padding:24px}.af-site-body{padding:20px 24px 24px}
  .af-head-action{width:100%}.af-head-action select,.af-head-action .af-select{width:100%}
}
@media (max-width:640px){.af-head .p2-h1,.af-head h1.p2-h1{font-size:32px}}

.af-flash{display:flex;align-items:center;justify-content:space-between;gap:16px;background:#F5F5F7;border-radius:14px;padding:12px 20px;margin:0 0 24px;font-weight:500;color:#1D1D1F}
.af-flash[hidden]{display:none!important}
.af-fgrid{display:grid;grid-template-columns:1fr 1fr;gap:20px 16px;margin-bottom:8px}
.af-fgrid .af-fg{margin:0}
.af-fg label,.af-fg .p2-l{display:block;margin-bottom:8px;font-weight:500;color:#424245;font-size:17px}
.af-in,input.af-in{display:block;width:100%;height:48px;min-height:48px;border-radius:12px;background:#F5F5F7;border:1px solid #D2D2D7;padding:0 16px;font:inherit;font-size:17px;color:#1D1D1F}
.af-in:focus,input.af-in:focus{outline:none;border-color:#2147C7;box-shadow:0 0 0 3px rgba(33,71,199,.22)}
.af-link{display:inline-flex;align-items:center;justify-content:center;min-height:48px;min-width:48px;padding:0 4px;color:#2147C7;background:none;border:0;font-size:17px;font-weight:500;text-decoration:none!important;cursor:pointer}
.af-link:hover,.af-link:focus-visible{text-decoration:none!important;opacity:.85}
.af-link:hover{color:#1A3AA6;opacity:1} /* design-gate button-states (CEO Nov 6): visible hover, 9.6:1 on white */
@media (max-width:680px){.af-fgrid{grid-template-columns:1fr}}

/* Coming soon: grayed-out non-clickable Home tile (Owner ruling #2, 3:38-3:48 PM CT): #F2F2F7 fill, #E0E0E6 border,
   muted #6E6E73 icon + copy, "Coming soon.", a plain <div aria-disabled="true">: no href, no hover lift, no chevron. */
div.af-tile.af-tile-disabled{display:flex;flex-direction:column;align-items:flex-start;box-sizing:border-box;min-height:206px;height:206px;padding:28px 24px;border-radius:20px;
  background:#F2F2F7;border:1px solid #E0E0E6;box-shadow:none;cursor:default;transform:none;transition:none;color:#6E6E73!important;text-decoration:none!important;user-select:none}
div.af-tile.af-tile-disabled:hover,div.af-tile.af-tile-disabled:focus,div.af-tile.af-tile-disabled:focus-visible{background:#F2F2F7;border-color:#E0E0E6;transform:none;box-shadow:none;outline:none}
.af-tile-disabled .af-tile-ico{background:#E5E5EA}
.af-tile-disabled .af-tile-ico svg{stroke:#6E6E73}
.af-tile-disabled .af-tile-title,.af-tile-disabled .af-tile-sub,.af-tile-disabled .af-tile-status{color:#6E6E73}
@media (max-width:680px){div.af-tile.af-tile-disabled{height:auto;min-height:206px;padding:24px}}
/* My Account two-step: plain-text state + one text control (no pill) */
.ac-2fa{display:inline-flex;align-items:center;gap:12px}
.ac-2fa #ac-2fa-state{font-weight:500;color:#1D1D1F}
/* single-surface #F5F5F7 fields inside cards (Get Help question box) */
.af-card textarea.p2-in{background:#F5F5F7;border:1px solid #D2D2D7;border-radius:12px;padding:12px 16px;min-height:96px}
.af-card textarea.p2-in:focus{outline:none;border-color:#2147C7;box-shadow:0 0 0 3px rgba(33,71,199,.22)}
.af-stack{display:flex;flex-direction:column;gap:24px}.af-stack > .af-card{margin-top:0}

/* QA1 M-2: non-Home MVP routes scrollHeight <= 1125 @ 1440x900 (keep >=17px / >=48px / >=7:1). */
#n4p[data-page=account] .p2-sub,#n4p[data-page=bill] .p2-sub{margin-bottom:20px}
#n4p[data-page=account] .af-card-band,#n4p[data-page=bill] .af-card-band{min-height:72px;padding:16px 28px}
#n4p[data-page=account] .af-card-body,#n4p[data-page=bill] .af-card-body{padding:20px 28px}
#n4p[data-page=account] .af-card-foot{margin-top:16px}
#n4p[data-page=account] .af-pair{margin-top:16px;gap:16px}
#n4p[data-page=account] .af-row{padding:12px 0}
#n4p[data-page=bill] .bl-acts{margin-top:16px;display:flex;flex-wrap:wrap;gap:12px;justify-content:flex-end}
#n4p[data-page=bill] .bl-cx-note{margin:8px 0 0;font-size:17px;color:#424245}
#n4p[data-page=bill] .p2-sec-block{margin-bottom:24px}
#n4p[data-page=traffic] .af-shell .af-head{margin-bottom:16px}
#n4p[data-page=traffic] .af-shell .af-tabs{margin-bottom:16px}
#n4p[data-page=traffic] .af-shell .af-card-band{min-height:72px;padding:16px 28px}
#n4p[data-page=traffic] .af-shell .af-card-body{padding:20px 28px}
#n4p[data-page=traffic] .af-shell .af-pair{gap:16px}
#n4p[data-page=traffic] .af-shell .af-metric{margin:0 0 10px;font-size:36px}
#n4p[data-page=traffic] .af-shell .af-pair + div{margin-top:16px!important}
#n4p[data-page=bill] .bl-plain{color:#1D1D1F;font-weight:500;font-size:17px}
#n4p[data-page=bill] .bl-alert{display:inline-flex;align-items:center;min-height:32px;padding:4px 12px;border-radius:8px;background:#FDECEC;color:#9A1B14;font-weight:600;font-size:17px}

#n4p[data-page=help] .p2-sub{margin-bottom:16px}
#n4p[data-page=help] .af-card-band{min-height:72px;padding:16px 28px}
#n4p[data-page=help] .af-card-body{padding:20px 28px}
#n4p[data-page=help] .af-stack{gap:16px}
#n4p[data-page=help] textarea.p2-in{min-height:72px}
#n4p[data-page=bill] .bl-pair{margin-top:0;gap:16px;align-items:start}
#n4p[data-page=bill] .af-card-band{min-height:56px;padding:12px 20px}
#n4p[data-page=bill] .af-card-body{padding:12px 20px 16px}
#n4p[data-page=bill] .af-row{padding:8px 0}
#n4p[data-page=bill] .bl-acts{margin-top:12px}
#n4p[data-page=bill] .p2-sub{margin-bottom:12px}
#n4p[data-page=account] .af-card-band{min-height:56px;padding:12px 20px}
#n4p[data-page=account] .af-card-body{padding:12px 20px 16px}
#n4p[data-page=account] .af-row{padding:8px 0}
#n4p[data-page=account] .af-fgrid{gap:12px 16px}
#n4p[data-page=account] .p2-sub{margin-bottom:12px}
#n4p[data-page=account] .af-pair{margin-top:12px;gap:12px}
@media (max-width:900px){#n4p[data-page=bill] .bl-pair{grid-template-columns:1fr}}

/* videos-lean-1117 A3: sub-menu apps. The sub-menu sits on the '\2190 Home' bar (KonaView app standard 3, 16, 17; lifted from the v38 reference).
   Current item #1D1D1F 600; the others #4A4A4F 400, darkening to #1D1D1F on hover. No underline, pill, bar or background. Same on phone. */
.af-sdiv{flex:none;width:1px;height:17px;background:#C7C7CC;margin:0 8px 0 4px}
.af-smenu{display:flex;flex-wrap:wrap;align-items:center;gap:0;min-width:0}
.af-smitem{display:inline-flex;align-items:center;min-height:44px;padding:0 12px;border:0;background:none;font-size:15px;font-weight:400;line-height:1.4;color:#4A4A4F;white-space:nowrap;text-decoration:none;border-radius:0;cursor:pointer}
.af-smitem:hover{color:#1D1D1F;text-decoration:none}
.af-smitem[aria-current=page]{color:#1D1D1F;font-weight:600}
.af-smitem:focus-visible{outline:3px solid #2147C7;outline-offset:-3px;border-radius:6px}
.af-subbar .p2-subwrap{flex-wrap:wrap}
.af-page{min-width:0}
.af-gate{display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding:8px 0 0}
.af-gate b{font-size:19px;font-weight:600;line-height:1.35;color:#1D1D1F}
.af-gate p{margin:0 0 16px;font-size:17px;line-height:1.47;color:#4A4A4F}
.af-soft{font-size:17px;line-height:1.47;color:#4A4A4F;margin:0}
@media (max-width:600px){.af-gate .p2-main,.af-gate .p2-btn{width:100%}}

/* Shared Save button (videos-prod-1119; Careers uses it too). Blue when there is something to save; disabled = #4A4A4F on #D4D4DA (6:1); is-saved = the brief "Saved" state, blue. */
.btn-save:disabled,.btn-save:disabled:hover,.p2-main.btn-save:disabled,.p2-main.btn-save:disabled:hover{background:#D4D4DA;color:#4A4A4F;cursor:not-allowed;opacity:1}
.btn-save.is-saved:disabled,.btn-save.is-saved:disabled:hover,.p2-main.btn-save.is-saved:disabled,.p2-main.btn-save.is-saved:disabled:hover{background:#2147C7;color:#fff;cursor:default;opacity:1}
