/* ShiftControl Core frontend styles (stub) */

.scc-feed-list{display:flex;flex-direction:column;gap:12px}.scc-post{padding:12px;border:1px solid rgba(0,0,0,.12);border-radius:10px}.scc-post-meta{opacity:.7;font-size:12px;margin-top:8px}.scc-profile-card{display:flex;gap:12px;align-items:center;padding:12px;border:1px solid rgba(0,0,0,.12);border-radius:12px;max-width:520px}.scc-avatar{width:48px;height:48px;border-radius:50%}.scc-follow-btn{margin-top:10px;padding:8px 10px;border-radius:10px;border:1px solid rgba(0,0,0,.15);background:#fff;cursor:pointer}

/* Profile header (cover + avatar) */
.scc-profile{max-width:640px}
.scc-profile-header{position:relative;margin:0 0 12px 0;border-radius:16px;overflow:visible;border:1px solid rgba(0,0,0,.12)}
.scc-profile-cover{border-radius:16px;overflow:hidden;height:180px;background:radial-gradient(1200px 300px at 30% 0%, rgba(55,160,200,.30), rgba(0,0,0,0)) , radial-gradient(900px 260px at 80% 30%, rgba(105,80,255,.22), rgba(0,0,0,0));background-color:rgba(0,0,0,.15);background-size:cover;background-position:center}
.scc-profile-avatar-wrap{position:absolute;left:16px;bottom:-24px;display:flex;align-items:flex-end;gap:10px}
.scc-profile-avatar{width:72px;height:72px;border-radius:50%;border:2px solid rgba(255,255,255,.55);box-shadow:0 10px 30px rgba(0,0,0,.25)}
.scc-profile-card{margin-top:28px}
.scc-profile-cover-edit,.scc-profile-avatar-edit{position:absolute;right:12px;bottom:12px;padding:6px 10px;border-radius:10px;border:1px solid rgba(255,255,255,.18);background:rgba(0,0,0,.35);color:#fff;cursor:pointer;font-size:12px}
.scc-profile-avatar-edit{position:static;padding:6px 10px;border:1px solid rgba(255,255,255,.20);background:rgba(0,0,0,.35);color:#fff}

.scc-post-actions{display:flex;align-items:center;gap:10px;margin-top:10px}.scc-like-btn,.scc-comment-submit{padding:6px 10px;border-radius:10px;border:1px solid rgba(0,0,0,.15);background:#fff;cursor:pointer}.scc-comment-form{display:flex;gap:8px;margin-top:10px}.scc-comment-input{flex:1;padding:8px 10px;border-radius:10px;border:1px solid rgba(0,0,0,.15)}

.scc-composer{padding:12px;border:1px solid rgba(0,0,0,.12);border-radius:12px;margin-bottom:12px}.scc-post-input{width:100%;padding:10px;border-radius:10px;border:1px solid rgba(0,0,0,.15);resize:vertical}.scc-post-form-actions{display:flex;justify-content:flex-end;margin-top:10px}.scc-post-submit{padding:8px 12px;border-radius:10px;border:1px solid rgba(0,0,0,.15);background:#fff;cursor:pointer}

.scc-post-media{margin-bottom:10px}.scc-post-img{max-width:100%;height:auto;border-radius:12px;display:block}.scc-post-image-url{width:100%;padding:10px;border-radius:10px;border:1px solid rgba(0,0,0,.15);margin-top:10px}

.scc-feed-toolbar{display:flex;align-items:center;gap:10px;padding:10px;border:1px solid rgba(0,0,0,.08);border-radius:12px;margin-bottom:12px}.scc-feed-sort-label{font-size:12px;opacity:.7}.scc-feed-sort{padding:6px 10px;border-radius:10px;border:1px solid rgba(0,0,0,.15);background:#fff}

.scc-post-author{font-size:12px;opacity:.7;margin-bottom:6px}

.scc-feed-mode{padding:6px 10px;border-radius:10px;border:1px solid rgba(0,0,0,.15);background:#fff}

.scc-section-title{font-size:14px;font-weight:600;opacity:.8;margin:0 0 8px 0}
.scc-section-body{margin-bottom:16px}

.scc-post-author{display:flex;align-items:center;gap:8px;cursor:pointer}
.scc-author-avatar{width:28px;height:28px;border-radius:50%}
.scc-author-name{font-weight:600}

.scc-notif-badge{font-size:12px;opacity:.7;margin-left:6px}
.scc-notif-list{display:flex;flex-direction:column;gap:10px}
.scc-notif-item{display:flex;gap:10px;align-items:flex-start;padding:10px;border:1px solid rgba(0,0,0,.08);border-radius:12px;cursor:pointer}
.scc-notif-item.is-unread{border-color: rgba(0,0,0,.22);}
.scc-notif-avatar{width:34px;height:34px;border-radius:50%}
.scc-notif-line{font-size:14px}
.scc-notif-meta{font-size:12px;opacity:.6;margin-top:4px}

/*
  SCC-INTERACTION-OWNERSHIP-V1
  Defensive click-through rules.
  Some themes/layers may introduce full-area pseudo elements (e.g. .sc-shell::before)
  which can intercept clicks above UI regions. Ensure pseudo overlays cannot block
  navigation or rails interaction.
*/
.shiftcontrol-app .sc-shell::before,
.shiftcontrol-app .sc-shell::after,
.shiftcontrol-app .sc-col.sc-left::before,
.shiftcontrol-app .sc-col.sc-left::after,
.shiftcontrol-app .sc-col.sc-right::before,
.shiftcontrol-app .sc-col.sc-right::after{
  pointer-events:none !important;
}

/* Ensure nav links remain interactive even under exotic stacking contexts */
.shiftcontrol-app .sc-navlist a{pointer-events:auto !important;position:relative;z-index:20}
.scc-notif-more{padding:8px 12px;border-radius:10px;border:1px solid rgba(0,0,0,.15);background:#fff;cursor:pointer;margin-top:12px}

.scc-profile-panel{padding:12px;border:1px solid rgba(0,0,0,.10);border-radius:14px;margin:0 0 16px 0}

.scc-runtime{font-size:12px;opacity:.45;margin-left:6px}

.scc-post-author{cursor:pointer}

.scc-profile-topbar{display:flex;justify-content:flex-start;margin:0 0 12px 0}
.scc-back-feed{padding:8px 12px;border-radius:10px;border:1px solid rgba(0,0,0,.15);background:#fff;cursor:pointer}

/* === POLISH PASS (global primitives for non-themed pages) === */
:root{
  --scc-font: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  --scc-fs: 15px;
  --scc-lh: 1.6;
  --scc-muted: rgba(0,0,0,.62);
  --scc-radius: 14px;
  --scc-border: rgba(0,0,0,.10);
  --scc-surface: #fff;
  --scc-shadow: 0 10px 26px rgba(0,0,0,.08);
}

.scc-feed,.scc-profile,.scc-profile-feed,.scc-notifications,.scc-settings{font-family:var(--scc-font);font-size:var(--scc-fs);line-height:var(--scc-lh)}
.scc-muted{color:var(--scc-muted)}
.scc-h2{font-size:22px;line-height:1.25;letter-spacing:-.01em;margin:0}
.scc-card{background:var(--scc-surface);border:1px solid var(--scc-border);border-radius:var(--scc-radius);padding:16px;box-shadow:var(--scc-shadow)}
.scc-stack{display:grid;gap:14px}
.scc-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.scc-btn{appearance:none;border:1px solid rgba(0,0,0,.14);background:#fff;color:#0f172a;border-radius:12px;padding:9px 12px;font-size:13.5px;font-weight:650;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:8px}
.scc-btn:hover{border-color:rgba(0,0,0,.22)}
.scc-btn-primary{background:#0b1220;color:#e2e8f0;border-color:#0b1220}
.scc-btn-ghost{background:#fff}
.scc-check{display:flex;gap:10px;align-items:center}
.scc-check input[type="checkbox"]{width:16px;height:16px}
.scc-notice{border-radius:12px;padding:10px 12px;border:1px solid rgba(0,0,0,.10);background:rgba(0,0,0,.03)}
.scc-notice-success{border-color:rgba(16,185,129,.35);background:rgba(16,185,129,.08)}
.scc-notice-error{border-color:rgba(244,63,94,.35);background:rgba(244,63,94,.08)}

/* Flagship widgets (foundation) */
.scc-hero .scc-actions { margin-top: 12px; }
.scc-stats-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 900px) { .scc-stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.scc-stat { padding: 12px; border-radius: 14px; border: 1px solid rgba(255,255,255,.06); background: rgba(255,255,255,.03); }
.scc-stat-value { font-size: 22px; line-height: 1.1; font-weight: 650; }

/* --- ShiftControl widgets: Hero / CTA / Stats (foundation) --- */
.scc-hero { padding: var(--scc-pad, 18px); }
.scc-hero__inner { gap: var(--scc-gap, 12px); }
.scc-stats__grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: var(--scc-gap, 12px); }
.scc-stats__value { font-weight: 700; font-size: 20px; line-height: 1.15; }
@media (max-width: 640px){ .scc-stats__grid { grid-template-columns: 1fr; } }

/* === Widget primitives (Hero / CTA / Stats) === */
.scc-h3{font-size:1rem;line-height:1.25;margin:0 0 .5rem 0;}
.scc-hero .scc-h2{margin:0 0 .5rem 0;}
.scc-actions{display:flex;gap:.5rem;flex-wrap:wrap;margin-top:.75rem;}
.scc-stats-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem;margin-top:.75rem;}
.scc-stat-value{font-size:1.25rem;line-height:1.1;font-weight:600;}
.scc-stat-label{font-size:.875rem;line-height:1.2;}
@media (max-width: 640px){.scc-stats-grid{grid-template-columns:1fr;}}

/* === Widget: ShiftControl Feed (read-only) === */
.scc-feed-widget__list{display:grid;gap:12px;margin-top:12px}
.scc-feed-item{display:flex;gap:12px;align-items:flex-start;border:1px solid rgba(255,255,255,.08);border-radius:14px;padding:12px;background:rgba(255,255,255,.02)}
.scc-feed-item__media{width:92px;flex:0 0 92px}
.scc-feed-item__img{display:block;width:92px;height:92px;object-fit:cover;border-radius:12px}
.scc-feed-item__body{flex:1;min-width:0}
.scc-feed-item__title{font-weight:650;text-decoration:none;color:inherit;display:block}
.scc-feed-item__title:hover{text-decoration:underline}
.scc-feed-item__meta{font-size:12px;margin-top:6px}
.scc-feed-item__excerpt{font-size:13px;margin-top:8px}
.scc-feed-widget__foot{margin-top:12px;display:flex;gap:10px;flex-wrap:wrap}
.scc-profile-header-widget{overflow:hidden}
.scc-profile-header__row{display:flex;gap:12px;align-items:center}
.scc-profile-header__avatar{width:64px;height:64px}
.scc-profile-header__name{font-weight:700;font-size:16px;line-height:1.2}
.scc-profile-header__handle{font-size:12px;margin-top:4px}
.scc-profile-header__bio{font-size:13px;margin-top:8px}
.scc-profile-header__counts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:14px}

/* Upgrade CTA Widget */
.scc-upgrade-widget__row,.scc-upgrade__top{display:flex;gap:16px;align-items:flex-start;margin-top:12px}
.scc-upgrade-widget__price,.scc-upgrade__price{font-weight:800;font-size:28px;line-height:1;white-space:nowrap}
.scc-upgrade-widget__period,.scc-upgrade__period{font-size:13px;margin-left:6px;opacity:.75}
.scc-upgrade-widget__features,.scc-upgrade__features{margin:12px 0 0 0;padding:0;list-style:none;display:grid;gap:8px}
.scc-upgrade-widget__features li,.scc-upgrade__features li{display:flex;gap:8px;align-items:flex-start}
.scc-upgrade-widget__features li::before,.scc-upgrade__features li::before{content:'✓';display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;border-radius:6px;border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.03);flex:0 0 auto;line-height:1;font-weight:800;font-size:12px;margin-top:1px}
.scc-upgrade-widget__actions,.scc-upgrade__actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}
.scc-upgrade-widget--emphasis{border-color:rgba(255,255,255,.14);box-shadow:0 10px 30px rgba(0,0,0,.25)}
@media (max-width:640px){.scc-upgrade-widget__row,.scc-upgrade__top{flex-direction:column;gap:10px}.scc-upgrade-widget__price,.scc-upgrade__price{font-size:26px}}

@media (max-width:640px){
  .scc-feed-item{flex-direction:column}
  .scc-feed-item__media{width:100%;flex:0 0 auto}
  .scc-feed-item__img{width:100%;height:auto;aspect-ratio:16/9}
  .scc-feed-toolbar{flex-wrap:wrap;gap:8px}
  .scc-profile-header__row{flex-direction:column;align-items:flex-start}
  .scc-profile-header__actions{align-items:flex-start}
}


/* SCC-APP-BACKGROUND-V1 */
.shiftcontrol-app {
  min-height: 100vh;
  background:
    radial-gradient(1200px 700px at 20% -10%, rgba(34,211,238,0.14), transparent 60%),
    radial-gradient(1000px 650px at 90% 0%, rgba(167,139,250,0.12), transparent 55%),
    #0b1220;
  color: rgba(255,255,255,0.90);
}
.shiftcontrol-app .sc-widget-title,
.shiftcontrol-app .scc-section-title { color: rgba(255,255,255,0.86); }
.shiftcontrol-app .scc-section-body { color: rgba(255,255,255,0.80); }

/* Profile header (cover + avatar) */
.scc-profile{max-width:820px}
.scc-profile-header{position:relative;border-radius:18px;overflow:visible;border:1px solid rgba(255,255,255,.10);background:rgba(255,255,255,.03);box-shadow:0 12px 35px rgba(0,0,0,.28)}
.scc-profile-cover{border-radius:16px;overflow:hidden;height:180px;background-size:cover;background-position:center;background-image:linear-gradient(135deg, rgba(34,211,238,0.18), rgba(167,139,250,0.14));position:relative}
.scc-profile-cover-edit{position:absolute;right:10px;bottom:10px;padding:8px 10px;border-radius:12px;border:1px solid rgba(255,255,255,.18);background:rgba(0,0,0,.25);color:rgba(255,255,255,.90);cursor:pointer}
.scc-profile-avatar-wrap{position:absolute;left:16px;bottom:-28px;display:flex;align-items:flex-end;gap:10px}
.scc-profile-avatar{width:84px;height:84px;border-radius:50%;border:3px solid rgba(11,18,32,.95);box-shadow:0 8px 20px rgba(0,0,0,.35);object-fit:cover;background:rgba(255,255,255,.06)}
.scc-profile-avatar-edit{margin-bottom:10px;padding:8px 10px;border-radius:12px;border:1px solid rgba(255,255,255,.18);background:rgba(0,0,0,.25);color:rgba(255,255,255,.90);cursor:pointer}
.scc-profile .scc-profile-card{margin-top:44px;max-width:none}

@media (max-width:640px){
  .scc-profile-cover{border-radius:16px;overflow:hidden;height:140px}
  .scc-profile-avatar-wrap{left:12px;bottom:-26px}
  .scc-profile-avatar{width:72px;height:72px}
}

/* Facebook-ish profile header: cover + overlapping avatar + action bar + tabs */
.scc-profile{max-width:920px}
.scc-profile-header{margin:0;border-radius:18px 18px 0 0}
.scc-profile-cover{border-radius:16px;overflow:hidden;height:240px}
.scc-profile-avatar-wrap{left:20px;bottom:-56px;gap:12px}
.scc-profile-avatar{width:128px;height:128px;border-radius:18px;border:4px solid rgba(11,18,32,.95)}
.scc-profile-bar{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;padding:14px 16px 12px 170px;border:1px solid rgba(255,255,255,.10);border-top:none;border-radius:0 0 18px 18px;background:rgba(255,255,255,.03);box-shadow:0 12px 35px rgba(0,0,0,.28)}
.scc-profile-name{font-weight:800;font-size:20px;line-height:1.1}
.scc-profile-sub{margin-top:6px;font-size:12px;opacity:.82;display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.scc-dot{opacity:.55}
.scc-profile-actions .scc-follow-btn{margin-top:0}
.scc-profile-tabs{display:flex;gap:6px;align-items:center;margin-top:10px;padding:6px;border:1px solid rgba(255,255,255,.10);border-radius:14px;background:rgba(255,255,255,.02)}
.scc-profile-tab{display:inline-flex;align-items:center;justify-content:center;padding:8px 12px;border-radius:12px;text-decoration:none;color:rgba(255,255,255,.86);border:1px solid transparent;font-weight:700;font-size:13px}
.scc-profile-tab:hover{background:rgba(255,255,255,.04);border-color:rgba(255,255,255,.08)}
.scc-profile-tab.is-active{background:rgba(34,211,238,.10);border-color:rgba(34,211,238,.22);color:rgba(255,255,255,.92)}

@media (max-width: 720px){
  .scc-profile-cover{border-radius:16px;overflow:hidden;height:170px}
  .scc-profile-avatar-wrap{left:12px;bottom:-44px}
  .scc-profile-avatar{width:96px;height:96px;border-radius:16px}
  .scc-profile-bar{padding-left:120px;flex-direction:column;align-items:flex-start}
}


/* === Profile FB-ish Frame (non-derivative) === */
[data-scc="profile"]{margin-bottom:24px}
.sc-profile-header{position:relative;border-radius:16px;overflow:hidden;margin-bottom:16px}
.sc-profile-cover{height:360px;border-radius:16px;background:linear-gradient(135deg,#0f3b46,#1b2b4a)}
.sc-profile-avatar{width:160px;height:160px;border-radius:50%;background:#111;position:absolute;left:32px;bottom:-80px;border:6px solid rgba(10,18,32,.95)}
.sc-profile-identity{padding:96px 24px 16px}
.sc-profile-stats{display:flex;gap:24px;flex-wrap:wrap}
.sc-profile-tabs{display:flex;gap:10px;padding:10px 12px;border-top:1px solid rgba(255,255,255,.08)}



/* PROFILE_FRAME_OVERRIDES_V12419 */
/* Hide legacy Profile Header widget on Profile surface so cover is the true top */
.shiftcontrol-app[data-sc-page="profile"] .scc-profile-header-widget{display:none !important;}
/* Make cover/header wider/taller than the timeline content */
.shiftcontrol-app[data-sc-page="profile"] .scc-profile{max-width:none;}
.shiftcontrol-app[data-sc-page="profile"] .scc-profile-header{
  margin-left:-24px; margin-right:-24px;
  border-radius:20px;
}
.shiftcontrol-app[data-sc-page="profile"] .scc-profile-cover{border-radius:16px;overflow:hidden;height:360px;}
.shiftcontrol-app[data-sc-page="profile"] .scc-profile-avatar-wrap{
  left:32px;
  bottom:-72px;
}
.shiftcontrol-app[data-sc-page="profile"] .scc-profile-avatar{
  width:144px; height:144px;
  border-width:6px;
}
.shiftcontrol-app[data-sc-page="profile"] .scc-profile-bar{
  margin-top:84px;
}
.shiftcontrol-app[data-sc-page="profile"] .scc-profile-cover button{
  position:absolute; right:16px; bottom:16px;
}
.shiftcontrol-app[data-sc-page="profile"] .scc-profile-avatar-wrap .scc-avatar-edit{
  width:44px; height:44px;
  border-radius:999px;
}


/* SCC_PROFILE_SPACING_V12420 */
.sc-profile-header{position:relative;margin:0 0 22px 0}
.sc-profile-cover{height:300px; border-radius:18px; overflow:visible}
/* allow avatar to extend outside cover without clipping */
.sc-profile-header{overflow:visible}
.sc-profile-avatar{width:168px;height:168px;left:42px;bottom:-84px;border-radius:999px;
  display:flex;align-items:center;justify-content:center;
  background:rgba(15,26,40,.95); border:6px solid rgba(10,18,32,.98);
  box-shadow:0 10px 30px rgba(0,0,0,.35);}
.sc-profile-avatar img{width:100%;height:100%;object-fit:cover;border-radius:999px;display:block}
.sc-profile-avatar .sc-avatar-initials{font-weight:800;font-size:42px;letter-spacing:.5px}
/* Full-bleed cover inside center column only (wider than timeline cards) */
.sc-profile-header,
.sc-profile-cover{margin-left:-18px;margin-right:-18px}
@media (max-width: 900px){
  .sc-profile-header,.sc-profile-cover{margin-left:0;margin-right:0}
  .sc-profile-avatar{left:22px}
}
/* Identity spacing so it doesn't float too low */
.sc-profile-identity{padding:104px 28px 18px}
.sc-profile-tabs{margin-top:10px}


/* SCC_PROFILE_SPACING_V12421 — tighten header, ensure avatar fully visible, align identity like FB (non-derivative) */
.sc-profile-header{overflow:visible;margin:0 0 14px 0}
.sc-profile-cover{height:300px;border-radius:18px;overflow:visible}
.sc-profile-avatar{width:168px;height:168px;left:42px;bottom:-56px}
.sc-profile-identity{
  /* pull identity closer to cover and leave room for overlapping avatar */
  padding:14px 28px 14px 240px;
  margin-top:-6px;
}
.sc-profile-identity h2{margin:0 0 6px 0}
.sc-profile-stats{gap:18px}
.sc-profile-tabs{margin-top:12px}
@media (max-width: 900px){
  .sc-profile-identity{padding-left:28px;padding-top:82px}
  .sc-profile-avatar{left:22px}
}


/* SCC_AVATAR_OVERLAP_FIX_V12427 */
.scc-profile-avatar-wrap{z-index:5}
.scc-profile-avatar{background:rgba(15,26,40,.92);display:flex;align-items:center;justify-content:center;color:rgba(255,255,255,.9);font-weight:800;font-size:18px;letter-spacing:.5px}
.scc-avatar-initials{user-select:none}
.scc-avatar-edit{position:absolute;left:86px;bottom:0;transform:translateY(-6px);padding:6px 10px;border-radius:999px;border:1px solid rgba(255,255,255,.18);background:rgba(0,0,0,.35);color:rgba(255,255,255,.92);cursor:pointer}
