[hidden]{display:none!important}

:root{
  --ux-green:#16845b;
  --ux-green-soft:rgba(22,132,91,.10);
  --ux-border:rgba(60,60,67,.12);
}

*{box-sizing:border-box}
button,input,select,textarea{font:inherit}
button{-webkit-tap-highlight-color:transparent}
button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{
  outline:3px solid rgba(22,132,91,.24);
  outline-offset:2px;
}

.app-shell{
  padding-right:max(16px,env(safe-area-inset-right));
  padding-bottom:calc(86px + env(safe-area-inset-bottom,0px));
  scroll-padding-bottom:calc(86px + env(safe-area-inset-bottom,0px));
  padding-left:max(16px,env(safe-area-inset-left));
}

.large-title{padding-top:6px;margin-bottom:16px}
.large-title p{font-size:12px;line-height:1.45}
.large-title h1{margin-top:3px;letter-spacing:-.045em}
.large-title.with-action{align-items:end}
.circle-add{width:46px;height:46px}

.surface{
  border:1px solid var(--ux-border);
  box-shadow:0 8px 28px rgba(36,48,42,.055);
}
.section-header{min-height:58px}
.section-header h2{font-size:16px}
.section-header span{font-size:11px;line-height:1.35}
.section-header>button{min-width:44px;min-height:38px;padding:0 10px;border-radius:11px}

.primary-tile{min-height:76px;padding:14px 15px}
.primary-tile strong{font-size:15px}
.primary-tile small{font-size:11px;line-height:1.4}

.period-navigator{
  display:grid;
  grid-template-columns:44px minmax(0,1fr) 44px;
  gap:8px;
  align-items:stretch;
  margin:8px 0 14px;
}
.period-navigator .period-picker{
  min-width:0;
  min-height:62px;
  margin:0;
  padding:11px 12px;
  grid-template-columns:minmax(0,1fr) auto;
  border:1px solid var(--ux-border);
  box-shadow:none;
}
.period-navigator .period-picker strong{font-size:14px}
.period-navigator .period-picker small{overflow:hidden;font-size:11px;line-height:1.35;text-overflow:ellipsis;white-space:nowrap}
.period-navigator .period-picker em{font-size:11px}
.period-step{
  display:grid;
  min-width:44px;
  border:1px solid var(--ux-border);
  border-radius:16px;
  place-items:center;
  background:var(--surface);
  color:var(--blue);
  box-shadow:0 5px 18px rgba(36,48,42,.045);
}
.period-step svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.period-step.previous svg{transform:rotate(180deg)}
.period-step:disabled{opacity:.4}

.person-row{min-height:92px;padding:14px 0}
.person-row strong{font-size:15px}
.person-row>div>small{font-size:11px;line-height:1.35}
.member-metric-grid{gap:5px!important;margin-top:8px}
.member-metric-grid>span{padding:7px 3px;border-radius:9px}
.member-metric-grid strong{font-size:13px}
.member-metric-grid small{font-size:9px!important}
.log-count{font-size:11px;white-space:nowrap}

.account-summary{padding:4px 14px 8px}
button.account-summary-row{
  width:100%;
  min-height:78px;
  padding:10px 0;
  border:0;
  border-radius:0;
  background:transparent;
  color:inherit;
  text-align:left;
}
button.account-summary-row+button.account-summary-row{border-top:1px solid var(--separator)}
button.account-summary-row:active{background:var(--ux-green-soft)}
.account-summary-list strong{font-size:14px;line-height:1.35}
.account-summary-list small{font-size:10px}
.account-stats{grid-template-columns:minmax(38px,auto) minmax(54px,auto) minmax(38px,auto);gap:7px}
.account-stats strong{font-size:14px}
.account-stats small{font-size:9px}

.account-editor{gap:9px}
.account-row{padding:0;overflow:hidden;border:1px solid var(--ux-border);background:var(--surface)}
.editor-disclosure{
  display:grid;
  width:100%;
  min-height:64px;
  grid-template-columns:minmax(0,1fr) auto 18px;
  gap:9px;
  align-items:center;
  padding:10px 12px;
  border:0;
  background:transparent;
  color:inherit;
  text-align:left;
}
.editor-disclosure>span:first-child{display:grid;min-width:0;gap:2px}
.editor-disclosure strong{overflow:hidden;font-size:14px;text-overflow:ellipsis;white-space:nowrap}
.editor-disclosure small{font-size:10px;color:var(--secondary)}
.editor-summary{max-width:112px;overflow:hidden;color:var(--secondary);font-size:10px;text-align:right;text-overflow:ellipsis;white-space:nowrap}
.editor-disclosure svg{width:17px;height:17px;fill:none;stroke:var(--tertiary);stroke-width:2;transition:transform .18s ease}
.editor-disclosure[aria-expanded="true"] svg{transform:rotate(90deg)}
.account-row-body{padding:12px;border-top:1px solid var(--separator);background:var(--bg)}
.account-row-head input{min-height:42px;font-size:15px}
.account-row-head .remove-account{min-width:44px;min-height:42px}
.account-owner-field select,.account-numbers input{min-height:44px}
.account-numbers span{font-size:11px}
.metrics-sheet,.video-editor~.privacy-note{padding-bottom:calc(12px + env(safe-area-inset-bottom))}

.video-summary-row .account-stats{text-align:right}
.video-stats strong{font-size:22px}
.video-stats span{font-size:10px}

.empty-panel{padding:28px 18px;text-align:center}
.empty-panel strong{display:block;font-size:16px}
.empty-panel p{max-width:290px;margin:8px auto 16px;color:var(--secondary);font-size:12px;line-height:1.55}
.empty-panel button{min-height:44px;padding:0 18px;border:0;border-radius:13px;background:var(--blue);color:#fff;font-weight:650}

.performance-member-button{
  width:100%;
  border:0;
  background:transparent;
  color:inherit;
  text-align:left;
}
.performance-member-button:active{background:var(--ux-green-soft)}
.performance-member strong{font-size:14px}
.performance-member small{font-size:10px;line-height:1.4}
.performance-member em{font-size:10px;white-space:nowrap}
.performance-quality{
  display:grid;
  grid-column:2/-1;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:5px;
  margin-top:2px;
}
.performance-quality>span{padding:7px 3px;border-radius:9px;background:rgba(118,118,128,.065);text-align:center}
.performance-quality strong,.performance-quality small{display:block;text-align:center}
.performance-quality strong{font-size:13px;font-variant-numeric:tabular-nums}
.performance-quality small{margin-top:1px;font-size:9px}

.tabbar{
  --tabbar-background:#fafafa;
  position:fixed;
  z-index:100;
  left:0;
  right:0;
  bottom:0;
  transform:none;
  margin-inline:auto;
  width:100%;
  max-width:680px;
  grid-template-columns:repeat(5,1fr);
  gap:2px;
  padding:6px max(8px,env(safe-area-inset-right,0px)) calc(6px + env(safe-area-inset-bottom,0px)) max(8px,env(safe-area-inset-left,0px));
  border:0;
  border-top:1px solid var(--ux-border);
  border-radius:0;
  background:var(--tabbar-background);
  /* Continue the opaque surface below the bar during mobile toolbar transitions. */
  box-shadow:0 100px 0 var(--tabbar-background),0 -4px 18px rgba(24,38,31,.045);
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
}
.tabbar button{min-height:54px;border-radius:12px;gap:2px}
.tabbar button span{font-size:10px;font-weight:600}
.tabbar button svg{width:20px;height:20px}
.tabbar button.active{background:var(--ux-green-soft);color:var(--blue)}

dialog .sheet{max-height:min(92dvh,820px);overflow:auto;overscroll-behavior:contain}
dialog .sheet>header{position:sticky;z-index:5;top:0;background:var(--sheet, var(--background, var(--bg)));border-bottom:1px solid var(--separator)}
body:has(dialog[open]){overflow:hidden}

@media (max-width:390px){
  .app-shell{padding-right:12px;padding-left:12px}
  .period-navigator{grid-template-columns:42px minmax(0,1fr) 42px;gap:6px}
  .period-step{min-width:42px;border-radius:14px}
  .period-navigator .period-picker{padding-right:10px;padding-left:10px}
  .period-navigator .period-picker em{display:none}
  .account-summary{padding-right:11px;padding-left:11px}
  .account-stats{gap:4px}
  .editor-summary{max-width:88px}
}

@media (prefers-color-scheme:dark){
  :root{--ux-green:#30d158;--ux-green-soft:rgba(48,209,88,.12);--ux-border:rgba(235,235,245,.12)}
  .tabbar{--tabbar-background:#1c1c1e;border-color:rgba(235,235,245,.14)}
}

@media (prefers-reduced-motion:reduce){
  .editor-disclosure svg{transition:none}
}
