:root {
  --imece-teal: #39d0ad;
  --imece-gold: #f4a836;
  --imece-danger: #fb7185;
}

[hidden] { display: none !important; }

.imece-page { min-height: 70vh; overflow: hidden; }
.imece-hero { position: relative; padding: 9.5rem 0 5rem; border-bottom: 1px solid var(--glass-border); background: radial-gradient(circle at 80% 35%, rgba(57,208,173,.13), transparent 34%), radial-gradient(circle at 18% 10%, rgba(244,168,54,.1), transparent 30%); }
.imece-hero::after { position: absolute; inset: 0; pointer-events: none; content: ''; background-image: linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(to bottom, rgba(0,0,0,.55), transparent); }
.imece-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0,1.2fr) minmax(300px,.8fr); gap: 4rem; align-items: center; }
.imece-eyebrow, .imece-section-heading > span, .imece-member-heading > div > span { display: inline-flex; align-items: center; gap: .45rem; color: var(--gold-400); font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.imece-eyebrow svg { width: 16px; height: 16px; }
.imece-hero h1 { max-width: 780px; margin: .9rem 0 1rem; color: var(--text-primary); font-size: clamp(2.6rem,5.5vw,5rem); line-height: .98; letter-spacing: -.045em; }
.imece-hero p { max-width: 680px; color: var(--text-secondary); font-size: clamp(1rem,1.6vw,1.14rem); line-height: 1.75; }
.imece-hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.8rem; }
.imece-hero-actions .btn { min-height: 48px; }

.imece-hero-visual { position: relative; width: min(360px,75vw); aspect-ratio: 1; margin-inline: auto; border: 1px solid rgba(57,208,173,.18); border-radius: 50%; background: radial-gradient(circle, rgba(57,208,173,.14), rgba(5,17,30,.1) 55%, transparent 56%); box-shadow: inset 0 0 80px rgba(57,208,173,.06), 0 0 80px rgba(57,208,173,.05); animation: imece-visual-breathe 7s ease-in-out infinite; }
.imece-hero-visual::before, .imece-hero-visual::after { position: absolute; content: ''; border: 1px dashed rgba(244,168,54,.18); border-radius: 50%; }
.imece-hero-visual::before { inset: 15%; animation: imece-ring-spin 25s linear infinite; }
.imece-hero-visual::after { inset: 32%; animation: imece-ring-spin-reverse 18s linear infinite; }
.imece-heart { position: absolute; inset: 50% auto auto 50%; display: grid; width: 92px; height: 92px; place-items: center; transform: translate(-50%,-50%); border: 1px solid rgba(244,168,54,.3); border-radius: 28px; color: var(--gold-300); background: linear-gradient(145deg,rgba(244,168,54,.18),rgba(57,208,173,.08)); box-shadow: 0 22px 65px rgba(0,0,0,.35); animation: imece-heart-pulse 4.8s ease-in-out infinite; }
.imece-heart svg { width: 46px; height: 46px; }
.imece-orbit { position: absolute; display: grid; width: 52px; height: 52px; place-items: center; border: 1px solid var(--glass-border); border-radius: 17px; color: var(--imece-teal); background: rgba(5,17,30,.92); box-shadow: 0 10px 35px rgba(0,0,0,.28); will-change: transform; }
.imece-orbit svg { width: 24px; height: 24px; }
.orbit-one { top: 5%; left: 45%; animation: imece-orbit-one 14s ease-in-out infinite; }
.orbit-two { right: 3%; bottom: 22%; color: var(--gold-400); animation: imece-orbit-two 16s ease-in-out -5s infinite; }
.orbit-three { bottom: 8%; left: 15%; animation: imece-orbit-three 15s ease-in-out -9s infinite; }

@keyframes imece-visual-breathe { 0%,100% { box-shadow: inset 0 0 80px rgba(57,208,173,.06), 0 0 80px rgba(57,208,173,.05); } 50% { box-shadow: inset 0 0 92px rgba(57,208,173,.1), 0 0 105px rgba(57,208,173,.1); } }
@keyframes imece-ring-spin { to { transform: rotate(360deg); } }
@keyframes imece-ring-spin-reverse { to { transform: rotate(-360deg); } }
@keyframes imece-heart-pulse { 0%,100% { transform: translate(-50%,-50%) scale(1); box-shadow: 0 22px 65px rgba(0,0,0,.35); } 50% { transform: translate(-50%,-50%) scale(1.045); box-shadow: 0 22px 72px rgba(0,0,0,.4), 0 0 28px rgba(244,168,54,.16); } }
@keyframes imece-orbit-one { 0%,100% { transform: translate(0,0) rotate(0deg); } 25% { transform: translate(38px,28px) rotate(5deg); } 50% { transform: translate(0,58px) rotate(0deg); } 75% { transform: translate(-38px,28px) rotate(-5deg); } }
@keyframes imece-orbit-two { 0%,100% { transform: translate(0,0) rotate(0deg); } 25% { transform: translate(-20px,38px) rotate(-5deg); } 50% { transform: translate(-52px,0) rotate(0deg); } 75% { transform: translate(-20px,-34px) rotate(5deg); } }
@keyframes imece-orbit-three { 0%,100% { transform: translate(0,0) rotate(0deg); } 25% { transform: translate(30px,-30px) rotate(5deg); } 50% { transform: translate(58px,-2px) rotate(0deg); } 75% { transform: translate(30px,32px) rotate(-5deg); } }

.imece-guest, .imece-member { padding-top: 4rem; padding-bottom: 5rem; }
.imece-section-heading { max-width: 700px; margin: 0 auto 2rem; text-align: center; }
.imece-section-heading h2, .imece-member-heading h2 { margin: .5rem 0; color: var(--text-primary); font-size: clamp(2rem,4vw,3rem); }
.imece-section-heading p { line-height: 1.7; }
.imece-how-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; }
.imece-how-grid article { position: relative; min-height: 240px; padding: 1.5rem; overflow: hidden; border: 1px solid var(--glass-border); border-radius: 24px; background: linear-gradient(145deg,rgba(255,255,255,.05),rgba(255,255,255,.018)); }
.imece-how-grid article > span { position: absolute; top: 1rem; right: 1rem; color: rgba(255,255,255,.09); font-family: 'Outfit',sans-serif; font-size: 3rem; font-weight: 800; }
.imece-how-grid article > svg { width: 32px; height: 32px; margin: 1.2rem 0 2rem; color: var(--imece-teal); }
.imece-how-grid h3 { margin-bottom: .55rem; font-size: 1.15rem; }
.imece-how-grid p { font-size: .9rem; line-height: 1.65; }
.imece-safety-note { display: flex; max-width: 900px; gap: 1rem; align-items: flex-start; margin: 1.2rem auto 0; padding: 1.15rem 1.25rem; border: 1px solid rgba(244,168,54,.22); border-radius: 18px; background: rgba(244,168,54,.055); }
.imece-safety-note > svg { flex: 0 0 auto; color: var(--gold-400); }
.imece-safety-note strong { color: var(--text-primary); }
.imece-safety-note p { margin-top: .25rem; font-size: .85rem; line-height: 1.55; }

.imece-member-heading { display: flex; justify-content: space-between; gap: 1rem; align-items: end; margin-bottom: 1.25rem; }
.imece-member-heading h2 { margin-bottom: 0; }
.imece-filters { display: grid; grid-template-columns: minmax(260px,1fr) repeat(3,minmax(145px,.35fr)) auto; gap: .75rem; align-items: end; margin-bottom: 1.25rem; padding: 1rem; border: 1px solid var(--glass-border); border-radius: 20px; background: var(--glass-bg); }
.imece-filters label { display: grid; gap: .4rem; min-width: 0; color: var(--text-muted); font-size: .72rem; font-weight: 700; }
.imece-filters input, .imece-filters select, .imece-dialog input:not([type="checkbox"]), .imece-dialog select, .imece-dialog textarea { width: 100%; min-height: 44px; border: 1px solid rgba(255,255,255,.11); border-radius: 12px; outline: none; color: var(--text-primary); background: rgba(255,255,255,.045); font: inherit; transition: border-color .2s, box-shadow .2s, background .2s; }
.imece-filters input, .imece-dialog input:not([type="checkbox"]), .imece-dialog select, .imece-dialog textarea { padding: .72rem .85rem; }
.imece-filters select { padding: .65rem .75rem; }
.imece-filters select option, .imece-dialog select option { color: var(--text-primary); background: var(--navy-800); }
.imece-filters input:focus, .imece-filters select:focus, .imece-dialog input:not([type="checkbox"]):focus, .imece-dialog select:focus, .imece-dialog textarea:focus { border-color: var(--gold-500); box-shadow: 0 0 0 3px rgba(244,168,54,.12); background: rgba(255,255,255,.06); }
.imece-search { position: relative; }
.imece-search > svg { position: absolute; z-index: 1; bottom: 12px; left: .8rem; width: 18px; height: 18px; color: var(--text-muted); }
.imece-search input { padding-left: 2.5rem; }
.imece-clear-filters { min-height: 44px; padding: .65rem .85rem; border: 0; color: var(--text-secondary); background: transparent; cursor: pointer; font: inherit; font-size: .82rem; text-decoration: underline; text-underline-offset: 4px; }
.imece-feed-status { min-height: 24px; margin-bottom: .5rem; color: var(--text-muted); font-size: .82rem; }
.imece-feed { display: grid; gap: 1rem; }
.imece-loading { display: grid; gap: .85rem; }
.imece-loading span { display: block; height: 180px; border: 1px solid var(--glass-border); border-radius: 22px; background: linear-gradient(100deg,rgba(255,255,255,.025) 20%,rgba(255,255,255,.065) 40%,rgba(255,255,255,.025) 60%); background-size: 200% 100%; animation: imece-shimmer 1.4s linear infinite; }
@keyframes imece-shimmer { to { background-position: -200% 0; } }

.imece-card { position: relative; display: grid; gap: 1rem; padding: 1.35rem; border: 1px solid var(--glass-border); border-radius: 22px; outline: none; background: linear-gradient(145deg,rgba(255,255,255,.045),rgba(255,255,255,.018)); transition: transform .2s, border-color .2s, box-shadow .2s; }
.imece-card:hover { transform: translateY(-2px); border-color: rgba(57,208,173,.23); }
.imece-card:focus-visible { border-color: var(--gold-400); box-shadow: 0 0 0 3px rgba(244,168,54,.2); }
.imece-card-head { display: flex; gap: 1rem; align-items: flex-start; justify-content: space-between; }
.imece-card-author { display: flex; min-width: 0; gap: .75rem; align-items: center; }
.imece-card-author .avatar { flex: 0 0 auto; width: 44px; height: 44px; }
.imece-card-author strong, .imece-card-author span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.imece-card-author strong { color: var(--text-primary); font-size: .9rem; }
.imece-card-author span { margin-top: .15rem; color: var(--text-muted); font-size: .72rem; }
.imece-badges { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: flex-end; }
.imece-badge { display: inline-flex; min-height: 28px; align-items: center; padding: .25rem .62rem; border: 1px solid rgba(255,255,255,.08); border-radius: 999px; color: var(--text-secondary); background: rgba(255,255,255,.035); font-size: .68rem; font-weight: 750; }
.imece-badge.category { color: var(--imece-teal); border-color: rgba(57,208,173,.2); background: rgba(57,208,173,.075); }
.imece-badge.urgent { color: #fecdd3; border-color: rgba(251,113,133,.3); background: rgba(251,113,133,.1); }
.imece-badge.soon { color: #fde68a; border-color: rgba(244,168,54,.28); background: rgba(244,168,54,.08); }
.imece-badge.resolved { color: #a7f3d0; border-color: rgba(57,208,173,.25); }
.imece-badge.closed { color: var(--text-muted); }
.imece-card-body h3 { margin-bottom: .55rem; font-size: clamp(1.1rem,2vw,1.35rem); }
.imece-card-description { color: var(--text-secondary); line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.imece-card-meta { display: flex; flex-wrap: wrap; gap: .65rem 1rem; color: var(--text-muted); font-size: .74rem; }
.imece-card-meta span { display: inline-flex; gap: .35rem; align-items: center; }
.imece-card-meta svg { width: 15px; height: 15px; }
.imece-target-summary { display: flex; gap: .55rem; align-items: flex-start; padding: .75rem .85rem; border-radius: 13px; color: var(--text-muted); background: rgba(255,255,255,.025); font-size: .78rem; line-height: 1.5; }
.imece-target-summary svg { flex: 0 0 auto; width: 16px; height: 16px; margin-top: .1rem; color: var(--imece-teal); }
.imece-card-actions { display: flex; flex-wrap: wrap; gap: .55rem; padding-top: .85rem; border-top: 1px solid rgba(255,255,255,.07); }
.imece-card-actions .btn, .imece-card-action { min-height: 44px; }
.imece-card-action { display: inline-flex; gap: .4rem; align-items: center; justify-content: center; padding: .6rem .85rem; border: 1px solid rgba(255,255,255,.1); border-radius: 999px; color: var(--text-secondary); background: rgba(255,255,255,.025); cursor: pointer; font: inherit; font-size: .78rem; font-weight: 650; }
.imece-card-action:hover { color: var(--text-primary); border-color: rgba(244,168,54,.25); }
.imece-card-action.report { margin-left: auto; color: var(--text-muted); }
.imece-card-action svg { width: 16px; height: 16px; }
.imece-state { display: grid; min-height: 300px; place-items: center; align-content: center; gap: .7rem; padding: 2rem; border: 1px dashed var(--glass-border); border-radius: 22px; text-align: center; }
.imece-state > svg { width: 38px; height: 38px; color: var(--gold-400); }
.imece-state h3 { font-size: 1.15rem; }
.imece-state p { max-width: 520px; font-size: .88rem; line-height: 1.55; }

.imece-dialog { position: fixed; top: 50%; left: 50%; width: min(780px,calc(100% - 2rem)); max-height: min(92vh,900px); margin: 0; padding: 0; overflow: hidden; transform: translate(-50%,-50%); border: 1px solid rgba(255,255,255,.12); border-radius: 24px; color: var(--text-primary); background: #071522; box-shadow: 0 30px 100px rgba(0,0,0,.65); }
.imece-dialog::backdrop { background: rgba(0,7,14,.78); backdrop-filter: blur(9px); }
.imece-dialog-card { max-height: min(92vh,900px); padding: 1.4rem; overflow-y: auto; }
.imece-dialog-header { display: flex; gap: 1rem; justify-content: space-between; align-items: flex-start; margin-bottom: 1.1rem; }
.imece-dialog-header span { color: var(--gold-400); font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.imece-dialog-header h2 { margin-top: .2rem; font-size: 1.75rem; }
.imece-icon-button { display: grid; flex: 0 0 auto; width: 44px; height: 44px; place-items: center; border: 1px solid var(--glass-border); border-radius: 14px; color: var(--text-secondary); background: rgba(255,255,255,.035); cursor: pointer; }
.imece-icon-button svg { width: 20px; height: 20px; }
.imece-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .85rem; }
.imece-form-grid label, .imece-person-picker > label { display: grid; gap: .4rem; color: var(--text-secondary); font-size: .78rem; font-weight: 700; }
.imece-form-wide { grid-column: 1 / -1; }
.imece-dialog textarea { resize: vertical; line-height: 1.5; }
.imece-warning { display: flex; gap: .75rem; align-items: flex-start; margin: 1rem 0; padding: .9rem; border: 1px solid rgba(251,113,133,.22); border-radius: 14px; background: rgba(251,113,133,.065); }
.imece-warning svg { flex: 0 0 auto; width: 19px; color: #fda4af; }
.imece-warning p { color: var(--text-secondary); font-size: .78rem; line-height: 1.5; }
.imece-warning strong { color: #fecdd3; }
.imece-targeting { min-width: 0; padding: 1rem; border: 1px solid var(--glass-border); border-radius: 18px; }
.imece-targeting > legend, .imece-role-picker > legend { padding: 0 .4rem; color: var(--text-primary); font-size: .85rem; font-weight: 800; }
.imece-targeting-disclosure { margin: 0 0 .7rem; color: var(--text-muted); font-size: .76rem; line-height: 1.5; }
.imece-everyone { display: flex; gap: .7rem; align-items: flex-start; padding: .8rem; border-radius: 13px; background: rgba(57,208,173,.055); cursor: pointer; }
.imece-everyone input, .imece-role-picker input { width: 18px; min-height: 18px; margin-top: .1rem; accent-color: var(--imece-teal); }
.imece-everyone strong, .imece-everyone small { display: block; }
.imece-everyone strong { font-size: .82rem; }
.imece-everyone small { margin-top: .15rem; color: var(--text-muted); font-size: .7rem; line-height: 1.45; }
#imeceTargetFields[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.imece-role-picker { display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin: .9rem 0; padding: .75rem; border: 1px solid rgba(255,255,255,.07); border-radius: 13px; }
.imece-role-picker label { display: inline-flex; gap: .4rem; align-items: center; min-height: 36px; color: var(--text-secondary); font-size: .76rem; cursor: pointer; }
.imece-tag-fields { margin-bottom: .85rem; }
.imece-combobox { position: relative; }
.imece-combobox > svg { position: absolute; top: 13px; left: .75rem; width: 18px; height: 18px; color: var(--text-muted); }
.imece-combobox input { padding-left: 2.4rem; }
.imece-person-results { max-height: 190px; margin-top: .35rem; overflow-y: auto; border: 1px solid var(--glass-border); border-radius: 13px; background: var(--navy-900); }
.imece-person-option { display: flex; width: 100%; min-height: 48px; gap: .65rem; align-items: center; padding: .55rem .7rem; border: 0; border-bottom: 1px solid rgba(255,255,255,.055); color: var(--text-primary); background: transparent; cursor: pointer; text-align: left; }
.imece-person-option:last-child { border-bottom: 0; }
.imece-person-option:hover, .imece-person-option:focus-visible { background: rgba(255,255,255,.055); }
.imece-person-option .avatar { flex: 0 0 auto; width: 34px; height: 34px; }
.imece-person-option strong, .imece-person-option small { display: block; }
.imece-person-option small { margin-top: .1rem; color: var(--text-muted); }
.imece-person-message { padding: .85rem; color: var(--text-muted); font-size: .76rem; text-align: center; }
.imece-chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .55rem; }
.imece-chip { display: inline-flex; min-height: 36px; gap: .35rem; align-items: center; padding: .3rem .35rem .3rem .65rem; border: 1px solid rgba(57,208,173,.2); border-radius: 999px; color: var(--imece-teal); background: rgba(57,208,173,.07); font-size: .72rem; }
.imece-chip button { display: grid; width: 28px; height: 28px; place-items: center; border: 0; border-radius: 50%; color: inherit; background: transparent; cursor: pointer; }
.imece-chip svg { width: 14px; height: 14px; }
.imece-field-error, .imece-submit-status { min-height: 20px; margin-top: .5rem; color: #fda4af; font-size: .76rem; }
.imece-submit-status { color: var(--text-muted); }
.imece-dialog-actions { display: flex; justify-content: flex-end; gap: .65rem; margin-top: .8rem; }
.imece-dialog-actions .btn { min-height: 46px; }
.imece-report-dialog { width: min(560px,calc(100% - 2rem)); }
.imece-report-dialog #imeceReportHelp { margin: -.3rem 0 1rem; font-size: .82rem; line-height: 1.55; }
.imece-report-label { display: block; margin-bottom: .4rem; color: var(--text-secondary); font-size: .78rem; font-weight: 700; }
.imece-login-heading { display: grid; justify-items: center; margin-bottom: 1.25rem; text-align: center; }
.imece-login-heading > svg { width: 36px; height: 36px; margin-bottom: .5rem; color: var(--gold-400); }
.imece-login-heading p { margin-top: .3rem; font-size: .84rem; }
.imece-login-heading + .form-group ~ .btn { width: 100%; }

.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }

@media (max-width: 980px) {
  .imece-hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .imece-hero-visual { width: min(300px,70vw); }
  .imece-filters { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .imece-search { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .imece-hero { padding: 7.5rem 0 3.5rem; }
  .imece-how-grid { grid-template-columns: 1fr; }
  .imece-member-heading { align-items: flex-start; }
  .imece-card-head { flex-direction: column; }
  .imece-badges { justify-content: flex-start; }
  .imece-card-action.report { margin-left: 0; }
}

@media (max-width: 480px) {
  .imece-hero { padding-top: 6.8rem; }
  .imece-hero h1 { font-size: clamp(2.3rem,12vw,3.2rem); }
  .imece-hero-actions, .imece-hero-actions .btn { width: 100%; }
  .imece-hero-visual { width: min(260px,78vw); }
  .imece-member { padding-top: 2.75rem; }
  .imece-member-heading { display: grid; }
  .imece-member-heading .btn { width: 100%; }
  .imece-filters { grid-template-columns: 1fr; padding: .8rem; }
  .imece-search { grid-column: auto; }
  .imece-card { padding: 1rem; border-radius: 18px; }
  .imece-card-actions > * { flex: 1 1 130px; }
  .imece-dialog { width: calc(100% - 1rem); max-height: 96vh; border-radius: 18px; }
  .imece-dialog-card { max-height: 96vh; padding: 1rem; }
  .imece-form-grid { grid-template-columns: 1fr; }
  .imece-form-wide { grid-column: auto; }
  .imece-dialog-actions { display: grid; grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .imece-loading span { animation: none; }
  .imece-hero-visual, .imece-hero-visual::before, .imece-hero-visual::after, .imece-heart, .imece-orbit { animation: none; }
  .imece-card, .imece-filters input, .imece-filters select, .imece-dialog input:not([type="checkbox"]), .imece-dialog select, .imece-dialog textarea { transition: none; }
  .imece-card:hover { transform: none; }
  html { scroll-behavior: auto !important; }
}
