#yef-app { font-family: var(--font-sans); }
#yef-app * { box-sizing: border-box; }
#yef-app {
  --accent: #FF6A2B; --accent-hover: #E8541A; --accent-soft: rgba(255,106,43,0.10); --accent-soft-strong: rgba(255,106,43,0.18);
  --st-red: #EF4444; --st-amber: #F59E0B; --st-blue: #3B82F6; --st-green: #22C55E;
  --ink: #171310; --cream: #F5F0E6; --cream-dim: #C9C2B0;
  --surface-1: #F3F0EA; --surface-2: #FAF8F5;
  --text-primary: #1A1710; --text-secondary: #57503F; --text-muted: #948C7C;
  --border: #E5E2DC; --border-strong: #D6D3CE;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-voice: Georgia, "Times New Roman", serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}
#yef-app { background: var(--surface-2); padding: 12px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
#yef-app input, #yef-app select, #yef-app textarea { font-family: var(--font-sans); font-size: 13.5px; }
#yef-app input, #yef-app select { height: 36px; padding: 0 11px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text-primary); }
#yef-app input:focus, #yef-app select:focus, #yef-app textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
#yef-app textarea { width: 100%; min-height: 76px; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text-primary); resize: vertical; line-height: 1.5; }

.btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 9px; font-size: 13px; cursor: pointer; border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text-primary); font-weight: 500; }
.btn:hover { background: var(--surface-1); }
.btn.primary, .goldbtn { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn.primary:hover, .goldbtn:hover { background: var(--accent-hover); }
.ghostbtn { background: #fff; border: 1px solid var(--border-strong); color: var(--text-primary); }
.ghostbtn:hover { background: var(--surface-1); }
.btnrow { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.linkbtn { background: none; border: none; color: var(--accent); font-size: 12.5px; font-weight: 500; cursor: pointer; display: flex; align-items: center; gap: 4px; }
.linkbtn:hover { text-decoration: underline; }

/* ---------- Site nav ---------- */
.sitenav { background: #fff; padding: 14px 32px; border-bottom: 1px solid var(--border); }
.sitenavinner { display: flex; align-items: center; gap: 28px; max-width: 980px; margin: 0 auto; }
.logogroup { display: flex; align-items: center; gap: 8px; }
.logowordmark { font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em; color: var(--text-muted); text-transform: uppercase; }
.navlinks { display: flex; gap: 22px; flex: 1; }
.navlink { font-size: 13.5px; color: var(--text-secondary); background: transparent; border: none; cursor: pointer; padding: 0; font-family: var(--font-sans); }
.navlink:hover { color: var(--text-primary); }
.heromark { width: 32px; height: 32px; border-radius: 8px; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12.5px; font-weight: 700; flex-shrink: 0; }
.teamloginlink { display: flex; align-items: center; gap: 5px; background: #fff; border: 1px solid var(--accent); color: var(--accent); font-size: 12.5px; font-weight: 500; padding: 8px 15px; border-radius: 8px; cursor: pointer; white-space: nowrap; }
.teamloginlink:hover { background: var(--accent-soft); }
.teamloginlink.inline { border: none; padding: 0; text-decoration: underline; color: var(--text-muted); background: none; }

/* ---------- Hero ---------- */
.hero { position: relative; background: #fff; padding: 44px 32px 40px; overflow: hidden; }
.heroring { position: absolute; border: 2px solid var(--accent-soft-strong); border-radius: 50%; pointer-events: none; }
.heroring.r1 { width: 340px; height: 340px; right: -120px; top: -100px; }
.heroring.r2 { width: 220px; height: 220px; right: -40px; top: 40px; border-color: var(--accent-soft); }
.heroinner { max-width: 620px; margin: 0 auto; position: relative; }
.herobadge { display: inline-flex; font-size: 11.5px; font-weight: 600; letter-spacing: 0.05em; padding: 6px 14px; border-radius: 20px; background: var(--accent-soft-strong); color: var(--accent-hover); margin-bottom: 18px; }
.herotitle { font-family: var(--font-voice); font-size: 40px; font-weight: 500; margin: 0 0 10px; color: var(--text-primary); letter-spacing: -0.01em; line-height: 1.12; }
.herotheme { font-size: 15px; color: var(--accent-hover); margin: 0 0 14px; font-weight: 600; }
.herobrief { font-size: 14px; color: var(--text-secondary); line-height: 1.7; margin: 0 0 26px; max-width: 540px; }
.herobtns { display: flex; gap: 10px; flex-wrap: wrap; }

.statsrow { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1px; background: var(--border); max-width: 980px; margin: 0 auto; border: 1px solid var(--border); border-top: none; }
@media (max-width: 640px) { .statsrow { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.statitem { background: #fff; padding: 16px 18px; display: flex; align-items: center; gap: 10px; }
.statitem i { font-size: 20px; color: var(--accent); }
.statitem .statnum { font-size: 19px; font-weight: 600; margin: 0; color: var(--text-primary); line-height: 1.2; }
.statitem .statlbl { font-size: 11.5px; color: var(--text-muted); margin: 0; }

.publicbody { background: var(--surface-2); border: 1px solid var(--border); border-top: none; padding: 34px 32px 26px; max-width: 980px; margin: 0 auto; }
.publicfooter { font-size: 12px; color: var(--text-muted); text-align: center; margin: 32px 0 4px; }
.section { margin-bottom: 32px; }
.sectionlabel { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); margin: 0 0 14px; }
.sectionheadrow { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }

.cardrow { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
@media (max-width: 640px) { .cardrow { grid-template-columns: 1fr; } }
.infocard { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 18px; }
.infoicon { width: 38px; height: 38px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 18px; margin-bottom: 12px; }
.infocardtitle { font-size: 14.5px; font-weight: 600; margin: 0 0 6px; color: var(--text-primary); }
.infocardtext { font-size: 12.5px; color: var(--text-secondary); line-height: 1.6; margin: 0; }

.stepper { display: flex; align-items: flex-start; overflow-x: auto; padding-bottom: 6px; gap: 0; }
.stepitem { flex: 1; min-width: 118px; text-align: center; position: relative; padding: 0 6px; }
.stepline { position: absolute; top: 17px; left: -50%; width: 100%; height: 2px; background: var(--border-strong); z-index: 0; }
.stepitem:first-child .stepline { display: none; }
.stepcircle { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; margin: 0 auto 10px; position: relative; z-index: 1; }
.stepdate { font-size: 11px; color: var(--accent-hover); font-weight: 600; margin: 0 0 3px; }
.steptitle { font-size: 12.5px; font-weight: 600; color: var(--text-primary); margin: 0 0 3px; line-height: 1.3; }
.steptext { font-size: 11px; color: var(--text-muted); margin: 0; line-height: 1.4; }

.updaterow { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border); background: #fff; margin-bottom: 8px; }
.updateicon { width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 15px; flex-shrink: 0; }
.updateicon.skeleton { background: var(--surface-1); animation: pulse 1.1s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }
.updatethumb { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; flex-shrink: 0; border: 1px solid #E5E2DC; }
.updatedate { min-width: 44px; }
.updatedate p:first-child { font-size: 12.5px; font-weight: 600; margin: 0; color: var(--text-primary); }
.updatedate p:last-child { font-size: 10.5px; margin: 0; color: var(--text-muted); }
.updatebody { flex: 1; min-width: 0; }
.updatetitle { font-size: 13.5px; font-weight: 500; color: var(--text-primary); margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.updatesub { font-size: 11.5px; color: var(--text-muted); margin: 1px 0 0; }
.updatetag { font-size: 10.5px; padding: 3px 9px; border-radius: 20px; white-space: nowrap; font-weight: 600; }
.updatetag.live { background: rgba(34,197,94,0.14); color: #16803D; }
.updatetag.upcoming { background: var(--surface-1); color: var(--text-muted); border: 1px solid var(--border); }
.updatedl { background: var(--accent); color: #fff; border: none; border-radius: 8px; padding: 8px 14px; font-size: 12.5px; font-weight: 500; display: flex; align-items: center; gap: 5px; cursor: pointer; flex-shrink: 0; }
.updatedl:hover { background: var(--accent-hover); }

.packrow { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
@media (max-width: 560px) { .packrow { grid-template-columns: 1fr; } }
.packcard { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; display: flex; align-items: center; gap: 14px; }
.packicon { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.packtitle { font-size: 14px; font-weight: 600; margin: 0; color: var(--text-primary); }
.packsub { font-size: 11.5px; color: var(--text-muted); margin: 2px 0 0; }
.packdl { width: 38px; height: 38px; border-radius: 9px; background: var(--accent); color: #fff; border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }
.packdl:hover { background: var(--accent-hover); }

.backlink { display: flex; align-items: center; gap: 6px; background: transparent; border: none; color: var(--text-muted); font-size: 12.5px; cursor: pointer; padding: 0; margin-bottom: 18px; }
.backlink:hover { color: var(--accent); }

/* ---------- Session gate ---------- */
.landing { display: flex; align-items: center; justify-content: center; min-height: 560px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); padding: 40px 24px; }
.landinginner { max-width: 420px; width: 100%; text-align: center; }
.landingbadge { display: inline-flex; font-size: 12.5px; font-weight: 600; padding: 5px 14px; border-radius: 20px; background: var(--accent-soft); color: var(--accent); margin-bottom: 18px; }
.landingtitle { font-family: var(--font-voice); font-size: 26px; font-weight: 500; margin: 0 0 10px; color: var(--text-primary); }
.landingsub { font-size: 13.5px; color: var(--text-secondary); margin: 0 0 20px; line-height: 1.6; }
.sessiontabs { display: flex; gap: 6px; margin-bottom: 16px; background: var(--surface-1); border-radius: 10px; padding: 4px; }
.sesstab { flex: 1; padding: 9px; border-radius: 7px; border: none; background: transparent; color: var(--text-secondary); font-size: 12.5px; cursor: pointer; font-weight: 500; border-bottom: 2px solid transparent; }
.sesstab.active { background: #fff; color: var(--accent); box-shadow: 0 1px 2px rgba(0,0,0,0.06); }
.sessioncard { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 22px 24px; text-align: left; }
.sessionhint { font-size: 11.5px; color: var(--text-muted); margin: 8px 0 0; }
.sessionerror { font-size: 12px; color: var(--st-red); margin: 10px 0 0; }
.landingfooter { font-size: 12px; color: var(--text-muted); margin: 24px 0 0; }
.codebox { margin-top: 14px; padding: 14px; border-radius: 10px; background: var(--accent-soft); text-align: center; }
.codebox p:first-child { font-size: 11px; color: var(--text-secondary); margin: 0 0 6px; text-transform: uppercase; letter-spacing: 0.03em; }
.codebox .code { font-size: 20px; font-weight: 600; color: var(--accent); letter-spacing: 0.04em; margin: 0 0 10px; font-family: var(--font-mono); }

/* ---------- App shell ---------- */
.shell { display: flex; min-height: 560px; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--surface-2); }
.sidebar { width: 236px; flex-shrink: 0; background: #fff; border-right: 1px solid var(--border); display: flex; flex-direction: column; padding: 20px 14px; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 20px; }
.brandmark { width: 34px; height: 34px; border-radius: 9px; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex-shrink: 0; }
.brandtitle { font-size: 14px; font-weight: 600; margin: 0; color: var(--text-primary); line-height: 1.3; }
.brandsub { font-size: 11px; margin: 0; color: var(--text-muted); line-height: 1.3; }
.navlist { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.navitem { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; border: none; background: transparent; color: var(--text-secondary); font-size: 13.5px; cursor: pointer; text-align: left; width: 100%; }
.navitem i { font-size: 17px; }
.navitem:hover { background: var(--surface-1); color: var(--text-primary); }
.navitem.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.sidebarfooter { padding: 12px 8px 4px; border-top: 1px solid var(--border); margin-top: 8px; }
.sidebarfooter > p { margin: 0; font-size: 11px; color: var(--text-muted); }
.footerbrand { color: var(--text-secondary) !important; font-size: 12px !important; margin-top: 2px !important; }
.sessionblock { display: flex; align-items: center; gap: 9px; padding: 8px; border-radius: 10px; background: var(--surface-1); margin-bottom: 8px; }
.sessionavatar { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 11.5px; font-weight: 600; flex-shrink: 0; }
.sessionname { font-size: 12.5px; font-weight: 600; margin: 0; color: var(--text-primary); line-height: 1.3; }
.sessionrole { font-size: 11px; margin: 0; color: var(--text-muted); line-height: 1.3; }
.switchbtn { display: flex; align-items: center; gap: 6px; font-size: 12px; background: transparent; border: 1px solid var(--border-strong); border-radius: 8px; color: var(--text-secondary); cursor: pointer; padding: 7px 10px; width: 100%; justify-content: center; }
.switchbtn:hover { background: var(--surface-1); color: var(--text-primary); }

.main { flex: 1; min-width: 0; padding: 28px 32px; overflow-y: auto; max-height: 900px; }
.page { animation: fadein 0.15s ease; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.pagehead { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 22px; flex-wrap: wrap; }
.pagetitle { font-size: 22px; font-weight: 600; margin: 0 0 4px; color: var(--text-primary); }
.pagedesc { font-size: 13.5px; color: var(--text-secondary); margin: 0; max-width: 540px; line-height: 1.5; }

.stats { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 12px; margin-bottom: 24px; }
@media (max-width: 800px) { .stats { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.statcard { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; }
.statlabel { font-size: 12px; color: var(--text-secondary); margin: 0 0 8px; display: flex; align-items: center; gap: 8px; }
.staticon { width: 22px; height: 22px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 12px; flex-shrink: 0; }
.statval { font-size: 25px; font-weight: 600; margin: 0; color: var(--text-primary); }

.progresswrap { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 18px 20px; margin-bottom: 24px; }
.progresslabel { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; color: var(--text-secondary); margin-bottom: 10px; }
.progresslabel .big { font-size: 22px; font-weight: 700; color: var(--accent); }
.progressbar { height: 10px; border-radius: 5px; background: var(--surface-2); border: 1px solid var(--border); overflow: hidden; display: flex; }
.progressseg { height: 100%; }

.twocol { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 760px) { .twocol { grid-template-columns: 1fr; } }
.panelcard { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 18px 20px; }
.panelhead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.panelheadtitle { font-size: 14.5px; font-weight: 600; margin: 0; color: var(--text-primary); }

.upnext { display: flex; flex-direction: column; gap: 8px; }
.upnextrow { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-2); cursor: pointer; }
.upnextrow:hover { border-color: var(--border-strong); }
.upnextdate { min-width: 50px; }
.upnextdate p:first-child { font-size: 12px; font-weight: 600; margin: 0; color: var(--text-primary); }
.upnextdate p:last-child { font-size: 10px; margin: 0; color: var(--text-muted); }
.upnexttitle { flex: 1; font-size: 13px; color: var(--text-primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.pill { font-size: 11.5px; padding: 4px 11px; border-radius: 20px; white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; font-weight: 600; }
.pill .dot { width: 6px; height: 6px; border-radius: 50%; }

.toolbar { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; align-items: center; }

/* ---------- Calendar table ---------- */
.tablewrap { overflow-x: auto; border: 1px solid #D6D3CE; border-radius: 10px; background: #fff; box-shadow: 0 1px 3px rgba(23,19,16,0.06); }
.datatable { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 760px; }
.datatable thead th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: #6B6459; font-weight: 700; padding: 12px 16px; background: #FAF8F5; border-bottom: 1px solid #D6D3CE; border-right: 1px solid #E5E2DC; white-space: nowrap; }
.datatable thead th:last-child { border-right: none; }
.datatable tbody td { padding: 12px 16px; border-bottom: 1px solid #E5E2DC; border-right: 1px solid #E5E2DC; color: var(--text-primary); vertical-align: middle; }
.datatable tbody td:last-child { border-right: none; }
.datatable tbody tr:last-child td { border-bottom: none; }
.datatable tbody tr:hover { background: #FFF6F0; }
.tabletypeicon { width: 26px; height: 26px; border-radius: 7px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 12.5px; }
.tablepreview { width: 42px; height: 42px; border-radius: 8px; object-fit: cover; display: block; border: 1px solid #E5E2DC; }
.tabletitle { max-width: 260px; }
.tabletitlemain { font-size: 13px; font-weight: 600; color: var(--text-primary); margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tablesnippet { font-size: 11.5px; color: var(--text-muted); margin: 2px 0 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rowactions { display: flex; gap: 4px; }
.rowactionbtn { width: 28px; height: 28px; border-radius: 7px; border: 1px solid var(--border); background: #fff; color: var(--text-secondary); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.rowactionbtn:hover { background: var(--surface-1); color: var(--text-primary); }
.rowactionbtn.danger:hover { background: rgba(239,68,68,0.08); color: var(--st-red); border-color: var(--st-red); }

/* ---------- Insertion / codes table ---------- */
.insertiontable { width: 100%; border-collapse: collapse; font-size: 13px; border: 1px solid #D6D3CE; border-radius: 10px; overflow: hidden; box-shadow: 0 1px 3px rgba(23,19,16,0.06); }
.insertiontable th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: #6B6459; font-weight: 700; padding: 10px 14px; background: #FAF8F5; border: 1px solid #E5E2DC; }
.insertiontable td { padding: 11px 14px; border: 1px solid #E5E2DC; color: var(--text-primary); vertical-align: top; }
.insertiontable tr:nth-child(even) td { background: #FBFAF8; }

/* ---------- Modal ---------- */
.modalroot { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modaloverlay { position: absolute; inset: 0; background: rgba(23,19,16,0.55); }
.modalpanel { position: relative; background: #fff; border-radius: 14px; max-width: 640px; width: 100%; max-height: 88vh; overflow-y: auto; padding: 26px 28px; box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.modalhead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.modaltitle { font-size: 17px; font-weight: 600; margin: 0; color: var(--text-primary); }
.modalclose { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--border); background: #fff; color: var(--text-secondary); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.modalclose:hover { background: var(--surface-1); }

.formgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 500px) { .formgrid { grid-template-columns: 1fr; } }
.formfield { margin-bottom: 14px; }
.formfield input, .formfield select, .formfield textarea { width: 100%; }
.fieldlabel { font-size: 12px; font-weight: 600; color: var(--text-secondary); margin: 0 0 6px; display: block; }
.fieldbox { font-size: 13.5px; padding: 10px 12px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-primary); }
.dangerbtn { color: var(--st-red); border-color: var(--st-red); background: #fff; }
.dangerbtn:hover { background: rgba(239,68,68,0.08); }
.checkrow { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-secondary); }
.checkrow input { width: auto; height: auto; }

.flyerpreview { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--border); }
.flyerpreview img { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; }

.cardgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.rolecard { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; }
.rolename { font-size: 14.5px; font-weight: 600; margin: 0 0 8px; color: var(--text-primary); }
.roledesc { font-size: 12.5px; color: var(--text-secondary); margin: 0 0 8px; line-height: 1.5; }
.roletouch { font-size: 11.5px; color: var(--text-muted); margin: 0; padding-top: 8px; border-top: 1px solid var(--border); }

.trendcard { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; margin-bottom: 10px; display: flex; gap: 14px; align-items: flex-start; }
.trendnum { width: 34px; height: 34px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; flex-shrink: 0; }
.trendbody p:first-child { font-size: 14px; font-weight: 600; margin: 0 0 4px; }
.trendbody p:last-child { font-size: 13px; color: var(--text-secondary); margin: 0; line-height: 1.5; }

.hashtagrow { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 22px; }
.hashtagchip { font-size: 13px; padding: 6px 12px; border-radius: 20px; background: var(--accent-soft); color: var(--accent); font-weight: 600; }

.strategybody h3 { font-size: 15.5px; font-weight: 600; margin: 22px 0 8px; color: var(--text-primary); }
.strategybody h3:first-child { margin-top: 0; }
.strategybody p { font-size: 13.5px; line-height: 1.7; color: var(--text-secondary); margin: 0 0 6px; }

.promoterhero { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 24px; max-width: 460px; }
.promoterdate { font-size: 12.5px; color: var(--text-muted); margin: 0 0 4px; }
.promotertitle { font-size: 17px; font-weight: 600; margin: 0 0 14px; }

.activityfeed { display: flex; flex-direction: column; gap: 2px; }
.activityrow { display: flex; align-items: baseline; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 12.5px; }
.activityrow:last-child { border-bottom: none; }
.activityuser { font-weight: 600; color: var(--text-primary); white-space: nowrap; }
.activitytext { color: var(--text-secondary); flex: 1; }
.activitytime { color: var(--text-muted); white-space: nowrap; font-size: 11.5px; }

/* ---------- Roles / tasks / approvals ---------- */
.approvalpill { font-size: 10.5px; padding: 3px 9px; border-radius: 20px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; white-space: nowrap; }
.approvalpill.draft { background: #F1EEE8; color: #8A8272; }
.approvalpill.submitted { background: #FFF1D6; color: #9C6F0E; }
.approvalpill.approved { background: rgba(34,197,94,0.14); color: #16803D; }

.taskcard { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; margin-bottom: 10px; }
.taskcardhead { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.taskcardtitle { font-size: 14.5px; font-weight: 600; margin: 0 0 3px; color: var(--text-primary); }
.taskcarddate { font-size: 12px; color: var(--text-muted); margin: 0; }
.taskcardbrief { font-size: 12.5px; color: var(--text-secondary); line-height: 1.5; background: var(--surface-2); border-radius: 8px; padding: 10px 12px; margin: 10px 0; }

.lockednotice { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-muted); background: var(--surface-2); border-radius: 8px; padding: 8px 10px; margin-bottom: 12px; }

.settingsblock { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 20px 22px; margin-bottom: 18px; }
.settingsblocktitle { font-size: 14.5px; font-weight: 600; margin: 0 0 14px; color: var(--text-primary); }
.chapterrow { display: grid; grid-template-columns: 100px 1fr 1.4fr 36px; gap: 8px; margin-bottom: 8px; align-items: start; }
@media (max-width: 640px) { .chapterrow { grid-template-columns: 1fr; } }
.chapterremove { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--border); background: #fff; color: var(--st-red); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.chapterremove:hover { background: rgba(239,68,68,0.08); }
