/* v49: community-first creator UI. Private gates and [hidden] always win. */
:root { --page: #f5f7f6; --line: #dfe7e3; --shadow: 0 14px 40px rgba(15, 35, 26, .07); }
.button { min-height: 46px; border-radius: 12px; padding: 11px 18px; }
.button:focus-visible, .text-button:focus-visible, .app-nav a:focus-visible { outline: 3px solid #2285b5; outline-offset: 3px; }
.app-topbar { min-height: 76px; padding: 12px 24px; }
.brand-button img { width: 46px; height: 46px; }
.brand-button strong { font-size: 23px; letter-spacing: -.7px; }
.language-control { border-radius: 12px; overflow: hidden; }
.app-layout { grid-template-columns: 228px minmax(0, 1fr); }
.app-sidebar { top: 76px; height: calc(100vh - 76px); padding: 22px 16px; }
.identity-mark { border-radius: 15px; }
.app-nav { gap: 7px; }
.app-nav button { min-height: 52px; border-radius: 12px; }
.app-nav button[data-view-button="capture"] { color: white; background: #087f55; border-left-color: transparent; }
.app-nav button[data-view-button="capture"] span { font-size: 0; }
.app-nav button[data-view-button="capture"] span::before { content: '+'; font-size: 24px; }
.app-nav a.admin-entry { display: flex; align-items: center; min-height: 48px; margin-top: 14px; padding: 12px; color: #d7e9e0; border: 1px solid #547564; border-radius: 12px; font-weight: 750; font-size: 12px; text-decoration: none; }
.app-workspace { padding: 28px; }
.app-view { max-width: 1120px; }
.view-header h1 { font-family: inherit; font-size: clamp(28px, 4vw, 43px); letter-spacing: -1.2px; }
.intro-stage { min-height: 330px; height: auto; border-radius: 24px; background-position: 65% center; }
.intro-stage::before { background: linear-gradient(95deg, rgba(6, 28, 20, .94), rgba(6, 28, 20, .78) 48%, rgba(6, 28, 20, .22)); }
.intro-overlay { padding: 38px 36px 95px; }
.intro-overlay h1 { margin: 16px 0; font-family: inherit; font-size: clamp(54px, 8vw, 82px); font-weight: 950; letter-spacing: -5px; }
.intro-overlay p { max-width: 590px; margin: 15px 0 25px; min-height: 56px; font-size: 21px; }
.intro-progress { display: none; }
.creator-primary::before, .record-open::before { content: ''; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 5px rgba(255, 255, 255, .16); margin-right: 5px; }
.intro-actions .creator-primary { background: #0a9160; padding: 14px 22px; font-size: 16px; }
.intro-safety { background: rgba(6, 28, 20, .85); padding: 14px 24px; font-size: 11px; border-top: 1px solid rgba(255,255,255,.18); }
.home-strip { border: 1px solid var(--line); border-radius: 18px; margin: 16px 0; overflow: hidden; }
.home-strip article { min-height: 83px; padding: 17px; }
.home-strip strong { font-size: 18px; }
.why-10asec { margin-top: 22px; padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.why-10asec h2 { font-size: 22px; line-height: 1.25; }
.why-10asec > div { grid-template-columns: repeat(3,minmax(0,1fr)); }
.why-10asec article { padding: 15px; border-radius: 13px; }
.why-10asec article:last-child { display: none; }
.home-extra { margin: 18px 0; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.home-extra > summary { padding: 18px 20px; color: #224c38; cursor: pointer; font-weight: 800; }
.home-extra > section { margin: 0; border: 0; box-shadow: none; }
.feed-band { margin-top: 26px; border: 0; background: transparent; padding: 0; }
.feed-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.feed-card { border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.feed-card video { width: 100%; height: 320px; object-fit: contain; display: block; background: #0f2019; }
.feed-card img { width: 100%; object-fit: cover; }
.feed-card h3, .feed-card p { overflow-wrap: anywhere; }
.feed-card .button { min-height: 44px; }
.feed-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding-top: 12px; }
.feed-actions button { min-height: 44px; }
.feed-actions button[aria-pressed="true"] { color: #fff; background: #087f55; }
.video-directory-form { display: grid; grid-template-columns: minmax(0,1fr) 170px auto; gap: 10px; align-items: end; padding: 18px; margin-bottom: 14px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.video-directory-form label { display: grid; gap: 7px; font-weight: 750; font-size: 12px; }
.video-directory-form input, .video-directory-form select { width: 100%; min-height: 46px; border: 1px solid #bbcfc3; border-radius: 10px; padding: 10px 12px; background: #fff; }
.directory-status { display: block; min-height: 24px; margin: 8px 2px 14px; line-height: 1.5; color: #4e655a; }
.directory-more { margin: 22px auto; display: flex; }
.creator-stage-nav { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 18px; padding: 8px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.creator-stage-nav button { flex: 1; min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 11px; color: #587064; background: #f3f6f4; font-weight: 850; cursor: pointer; }
.creator-stage-nav button span { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: #e2ebe6; font-size: 11px; }
.creator-stage-nav button[aria-current="step"], .creator-stage-nav button.active { background: #e0f4e9; color: #065e40; }
.creator-stage-nav button[aria-current="step"] span, .creator-stage-nav button.active span { color: #fff; background: #087f55; }
#capture-form.creator-wizard-ready[data-capture-stage-current="1"] [data-capture-stage="2"],
#capture-form.creator-wizard-ready[data-capture-stage-current="1"] [data-capture-stage="3"],
#capture-form.creator-wizard-ready[data-capture-stage-current="2"] [data-capture-stage="1"],
#capture-form.creator-wizard-ready[data-capture-stage-current="2"] [data-capture-stage="3"],
#capture-form.creator-wizard-ready[data-capture-stage-current="3"] [data-capture-stage="1"],
#capture-form.creator-wizard-ready[data-capture-stage-current="3"] [data-capture-stage="2"] { display: none; }
.capture-step { padding: 22px; margin-bottom: 16px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow); }
.capture-step header > span { border-radius: 10px; }
.capture-step h2 { font-family: inherit; font-size: 22px; }
#purpose-step { padding: 16px 20px; }
#purpose-step header { display: block; margin-bottom: 10px; }
#purpose-step header p { margin: 4px 0 0; }
#purpose-selector { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; }
#purpose-selector button { min-width: 0; min-height: 43px; padding: 9px 8px; border-radius: 10px; font-size: 12px; line-height: 1.35; }
.quick-capture-title, #quick-capture-title { font-family: inherit; }
.quick-capture { padding: 0; border: 0; background: transparent; }
.quick-capture-copy { margin-bottom: 15px; }
.quick-capture-copy p { max-width: 580px; color: var(--muted); line-height: 1.5; }
.creator-camera { position: relative; display: grid; place-items: center; min-height: 245px; max-height: 440px; overflow: hidden; border-radius: 18px; background: #11261d; color: #d3e8df; }
.creator-camera[data-quick-state="idle"] { display: none; }
.creator-camera video { display: block; width: 100%; height: 360px; max-height: 55vh; margin: 0 !important; border: 0 !important; object-fit: contain; background: #08150f; }
.creator-camera audio { width: calc(100% - 40px); margin: 30px 20px; }
.camera-placeholder { display: grid; place-items: center; gap: 24px; padding: 36px 24px; max-width: 330px; text-align: center; font-size: 13px; line-height: 1.5; }
.camera-glyph { position: relative; width: 64px; height: 47px; border: 3px solid #74c8a3; border-radius: 13px; }
.camera-glyph::after { content: ''; position: absolute; top: 11px; right: -17px; width: 12px; height: 21px; border: 3px solid #74c8a3; border-radius: 4px; }
.creator-camera[data-quick-state="preview"] .camera-placeholder, .creator-camera[data-quick-state="recording"] .camera-placeholder, .creator-camera[data-quick-state="stopping"] .camera-placeholder, .creator-camera[data-quick-state="review"] .camera-placeholder { display: none; }
.creator-camera[data-quick-state="recording"] { box-shadow: 0 0 0 3px #c62e43; }
.quick-capture-controls { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 16px 0 12px; }
.quick-capture-controls .record-open, .quick-capture-controls .record-trigger { min-height: 50px; padding: 12px 24px; }
.record-trigger { color: #fff; background: #b5263d; }
.record-trigger::before { content: ''; width: 13px; height: 13px; border-radius: 50%; background: #fff; }
.recording-meter { border-radius: 12px; background: #fff1f3; color: #941d31; padding: 12px 16px; }
#quick-record-status { display: block; text-align: center; min-height: 20px; color: #4a6558; }
.media-inputs { margin-top: 22px; gap: 10px; }
.media-inputs label { min-height: 108px; border-radius: 13px; padding: 14px; }
.media-inputs strong { font-size: 14px; }
.media-inputs .media-pick { border-radius: 9px; }
.media-studio > article { border-radius: 15px; }
.capture-window-panel { margin-top: 15px; border-radius: 13px; }
.creator-stage-controls { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 15px 0; }
#capture-stage-current { font-size: 12px; font-weight: 800; color: #547163; }
.capture-review { border-radius: 16px; }
.submit-bar { border-radius: 18px; }
.submit-bar .button { min-height: 50px; }
body[data-rewards-enabled="false"] .profile-snapshot,
body[data-rewards-enabled="false"] #mi-coins-wallet,
body[data-rewards-enabled="false"] .wallet-details,
body[data-rewards-enabled="false"] #contributor-rewards,
body[data-rewards-enabled="false"] .reward-table { display: none !important; }
.account-band, .compact-disclosure { border-radius: 18px; }
.mobile-nav { gap: 4px; padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); }
.mobile-nav button { min-height: 45px; border-radius: 11px; }
.mobile-nav button[data-view-button="capture"] { background: #087f55; color: #fff; font-weight: 850; }
@media (max-width: 1100px) {
  .app-layout { grid-template-columns: 202px minmax(0,1fr); }
  .app-workspace { padding: 20px; }
  .feed-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 800px) {
  .app-layout { display: block; }
  .app-topbar { min-height: 66px; padding: 9px 13px; gap: 7px; }
  .app-top-actions { gap: 5px; }
  .connection-state { max-width: 86px; font-size: 10px; }
  .brand-button img { width: 36px; height: 36px; }
  .brand-button strong { font-size: 20px; }
  .brand-button small { font-size: 8px; }
  .language-control button { width: 32px; height: 36px; }
  .app-workspace { padding: 15px 12px 96px; }
  .intro-stage { min-height: 330px; border-radius: 20px; }
  .intro-overlay { padding: 28px 22px 105px; }
  .intro-overlay h1 { font-size: 66px; }
  .intro-overlay p { font-size: 18px; min-height: 76px; }
  .intro-actions { gap: 8px; }
  .intro-actions .button { padding: 12px 15px; font-size: 13px; }
  .intro-safety { display: grid; grid-template-columns: 1fr; gap: 5px; padding: 12px 18px; }
  .intro-safety span { font-size: 10px; }
  .home-strip { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .home-strip article { min-height: 98px; padding: 12px 9px; }
  .home-strip strong { font-size: 14px; }
  .home-strip span { font-size: 10px; }
  .why-10asec { padding: 18px; }
  .why-10asec > div { grid-template-columns: 1fr; gap: 8px; }
  .why-10asec article { padding: 10px 12px; }
  .video-directory-form { grid-template-columns: minmax(0,1fr) 115px; padding: 13px; gap: 10px; }
  .video-directory-form > .button { grid-column: 1 / -1; }
  .feed-grid { grid-template-columns: 1fr; gap: 16px; }
  .feed-card video { height: auto; min-height: 240px; max-height: 68vh; }
  .creator-stage-nav { gap: 5px; padding: 6px; }
  .creator-stage-nav button { padding: 8px 5px; font-size: 11px; gap: 5px; }
  .creator-stage-nav button span { width: 20px; height: 20px; }
  .capture-step { padding: 16px; }
  .capture-step h2 { font-size: 20px; }
  #purpose-step { padding: 12px 16px; }
  #purpose-step header > span, #purpose-step header p { display: none; }
  #purpose-step h2 { font-size: 16px; }
  #purpose-selector button { min-height: 43px; font-size: 11px; }
  .creator-camera { min-height: 210px; }
  .creator-camera video { height: 320px; }
  .quick-capture-controls .button { flex: 1 1 calc(50% - 10px); padding: 11px; font-size: 12px; }
  .quick-capture-controls .record-open, .quick-capture-controls .record-trigger, .quick-capture-controls #keep-quick-clip { flex-basis: 100%; }
  .media-inputs { grid-template-columns: 1fr; }
  .media-inputs label { min-height: 75px; padding: 13px; }
  .creator-stage-controls { position: sticky; bottom: calc(68px + env(safe-area-inset-bottom)); z-index: 8; padding: 12px; background: #f5f7f6; border-radius: 15px; box-shadow: var(--shadow); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
