/* Etapa H: solicitações de participação */

.imr-public-page,
.imr-layout {
    color: #17362e;
    background: #f6f9f7;
}

.imr-public-main {
    min-height: 75vh;
}

.imr-public-hero,
.imr-hero {
    color: #fff;
    background:
        radial-gradient(circle at 88% 0%, rgba(72, 112, 255, .28), transparent 31%),
        radial-gradient(circle at 5% 100%, rgba(52, 212, 157, .18), transparent 34%),
        linear-gradient(135deg, #062a23 0%, #0a5a47 56%, #113f67 100%);
}

.imr-public-hero {
    padding: clamp(62px, 8vw, 104px) 0 58px;
}

.imr-public-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 350px;
    gap: 48px;
    align-items: center;
}

.imr-public-identity {
    display: flex;
    align-items: center;
    gap: 24px;
}

.imr-public-logo {
    width: 118px;
    height: 118px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .46);
    border-radius: 30px;
    color: #0b4e3e;
    background: linear-gradient(145deg, #fff, #dff5ec);
    box-shadow: 0 20px 45px rgba(0, 0, 0, .18);
    font-size: 32px;
    font-weight: 900;
}

.imr-public-logo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: center;
    padding: 8px;
    background: #fff;
}

.imr-public-kicker,
.imr-kicker {
    display: inline-block;
    color: #91e7c8;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .14em;
}

.imr-public-hero h1 {
    margin: 13px 0 12px;
    font-size: clamp(40px, 5vw, 68px);
    line-height: 1;
    letter-spacing: -.055em;
}

.imr-public-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, .78);
    font-size: 16px;
    line-height: 1.7;
}

.imr-public-hero small {
    display: block;
    margin-top: 13px;
    color: rgba(255, 255, 255, .62);
}

.imr-public-principle {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 22px;
    background: rgba(255, 255, 255, .08);
    backdrop-filter: blur(12px);
}

.imr-public-principle > .material-icons {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 14px;
    color: #0b5d48;
    background: #dff6ed;
}

.imr-public-principle strong {
    display: block;
    font-size: 15px;
}

.imr-public-principle p {
    margin: 6px 0 0;
    color: rgba(255, 255, 255, .72);
    font-size: 12px;
    line-height: 1.58;
}

.imr-public-content {
    padding: 58px 0 90px;
}

.imr-public-layout {
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.imr-public-context,
.imr-public-card {
    border: 1px solid rgba(24, 69, 57, .10);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 15px 42px rgba(7, 47, 38, .07);
}

.imr-public-context {
    position: sticky;
    top: 24px;
    padding: 25px;
}

.imr-public-context__step,
.imr-form-heading > small {
    color: #0b775b;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .12em;
}

.imr-public-context h2,
.imr-form-heading h2 {
    margin: 10px 0;
    color: #173b31;
    letter-spacing: -.035em;
}

.imr-public-context ol {
    display: grid;
    gap: 16px;
    margin: 22px 0;
    padding: 0;
    list-style: none;
}

.imr-public-context li {
    display: grid;
    gap: 4px;
    padding: 14px;
    border-radius: 15px;
    background: #f4f8f6;
}

.imr-public-context li strong {
    color: #21493d;
}

.imr-public-context li span {
    color: #74837d;
    font-size: 12px;
    line-height: 1.5;
}

.imr-public-context > a,
.imr-state > a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    border-radius: 12px;
    color: #fff;
    background: #0a7458;
    text-decoration: none;
    font-weight: 850;
}

.imr-public-card {
    padding: clamp(24px, 4vw, 38px);
}

.imr-alert {
    margin-bottom: 20px;
    padding: 14px 16px;
    border-radius: 14px;
    font-weight: 750;
}

.imr-alert--success {
    color: #0b624b;
    background: #e7f7f0;
}

.imr-alert--error {
    color: #8b2e2e;
    background: #fff0f0;
}

.imr-state {
    display: grid;
    justify-items: start;
    gap: 12px;
    padding: 16px 0;
}

.imr-state > .material-icons {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    color: #0a7458;
    background: #e5f6ef;
    font-size: 30px;
}

.imr-state h2 {
    margin: 0;
    color: #173b31;
}

.imr-state p {
    max-width: 720px;
    margin: 0;
    color: #6d7f77;
    line-height: 1.65;
}

.imr-state dl {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 10px 0;
}

.imr-state dl div {
    padding: 14px;
    border-radius: 14px;
    background: #f3f7f5;
}

.imr-state dt {
    color: #77867f;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .06em;
}

.imr-state dd {
    margin: 5px 0 0;
    color: #23493d;
    font-weight: 800;
}

.imr-state form button {
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid #d5a2a2;
    border-radius: 12px;
    color: #8d3030;
    background: #fff;
    cursor: pointer;
    font-weight: 800;
}

.imr-history-note {
    margin-bottom: 22px;
    padding: 17px;
    border: 1px solid #edd7a3;
    border-radius: 16px;
    color: #725417;
    background: #fff8e8;
}

.imr-history-note p {
    margin: 6px 0;
    line-height: 1.55;
}

.imr-form-heading p {
    margin: 0;
    color: #73827c;
}

.imr-form {
    display: grid;
    gap: 18px;
    margin-top: 24px;
}

.imr-form label {
    display: grid;
    gap: 8px;
}

.imr-form label > span {
    color: #274c41;
    font-weight: 850;
}

.imr-form select,
.imr-form textarea,
.imr-decision input,
.imr-filter select {
    width: 100%;
    border: 1px solid rgba(24, 69, 57, .16);
    border-radius: 13px;
    color: #24483d;
    background: #fbfdfc;
    outline: none;
}

.imr-form select,
.imr-decision input,
.imr-filter select {
    min-height: 48px;
    padding: 0 13px;
}

.imr-form textarea {
    min-height: 135px;
    resize: vertical;
    padding: 13px;
    line-height: 1.55;
}

.imr-form label small {
    color: #84918c;
    font-size: 11px;
}

.imr-form__consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px;
    border-radius: 14px;
    background: #f0f7f4;
}

.imr-form__consent .material-icons {
    color: #0a7458;
}

.imr-form__consent p {
    margin: 0;
    color: #65776f;
    font-size: 12px;
    line-height: 1.55;
}

.imr-form > button {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, #0b8967, #075843);
    cursor: pointer;
    font-weight: 900;
}

/* Painel privado */

.imr-layout {
    min-height: 100vh;
}

.imr-shell {
    max-width: 1420px;
    margin: 0 auto;
    padding: 24px 24px 72px;
}

.imr-breadcrumb {
    margin-bottom: 16px;
}

.imr-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 34px;
    border-radius: 28px;
    box-shadow: 0 25px 75px rgba(7, 48, 39, .18);
}

.imr-hero h1 {
    margin: 9px 0;
    font-size: clamp(34px, 4vw, 54px);
    letter-spacing: -.05em;
}

.imr-hero p {
    max-width: 800px;
    margin: 0;
    color: rgba(255, 255, 255, .78);
    line-height: 1.65;
}

.imr-hero__actions {
    display: grid;
    gap: 10px;
    min-width: 225px;
}

.imr-hero__actions a {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 15px;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 13px;
    color: #fff;
    background: rgba(255, 255, 255, .08);
    text-decoration: none;
    font-weight: 850;
}

.imr-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 13px;
    margin: 20px 0;
}

.imr-kpis article {
    padding: 20px;
    border: 1px solid rgba(24, 69, 57, .10);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(7, 47, 38, .055);
}

.imr-kpis strong,
.imr-kpis span {
    display: block;
}

.imr-kpis strong {
    color: #173b31;
    font-size: 30px;
}

.imr-kpis span {
    margin-top: 5px;
    color: #78877f;
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
}

.imr-filter {
    display: flex;
    align-items: end;
    gap: 10px;
    margin-bottom: 18px;
    padding: 15px;
    border: 1px solid rgba(24, 69, 57, .10);
    border-radius: 17px;
    background: #fff;
}

.imr-filter label {
    color: #486158;
    font-size: 11px;
    font-weight: 850;
}

.imr-filter select {
    width: 240px;
}

.imr-filter button {
    min-height: 48px;
    padding: 0 16px;
    border: 0;
    border-radius: 13px;
    color: #fff;
    background: #0a7458;
    cursor: pointer;
    font-weight: 850;
}

.imr-list {
    display: grid;
    gap: 16px;
}

.imr-request {
    overflow: hidden;
    border: 1px solid rgba(24, 69, 57, .10);
    border-radius: 21px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(7, 47, 38, .06);
}

.imr-request header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(24, 69, 57, .08);
}

.imr-avatar {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: #0a684f;
    background: #e4f5ee;
    font-size: 20px;
    font-weight: 900;
}

.imr-status {
    display: inline-flex;
    padding: 5px 8px;
    border-radius: 999px;
    color: #765714;
    background: #fff1cf;
    font-size: 10px;
    font-weight: 850;
}

.imr-request.is-approved .imr-status {
    color: #0a684f;
    background: #e3f5ed;
}

.imr-request.is-rejected .imr-status {
    color: #8b3030;
    background: #fff0f0;
}

.imr-request header h2 {
    margin: 6px 0 3px;
    color: #173b31;
    font-size: 22px;
}

.imr-request header p,
.imr-request header time {
    margin: 0;
    color: #7a8982;
    font-size: 11px;
}

.imr-request__content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
    padding: 20px;
}

.imr-request__content section {
    padding: 15px;
    border-radius: 15px;
    background: #f6f9f7;
}

.imr-request__content small {
    color: #0a7458;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .08em;
}

.imr-request__content p {
    margin: 8px 0 0;
    color: #5e7269;
    line-height: 1.6;
}

.imr-decision-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 0 20px 20px;
}

.imr-decision {
    display: grid;
    gap: 10px;
    padding: 15px;
    border: 1px solid rgba(24, 69, 57, .10);
    border-radius: 15px;
}

.imr-decision label {
    display: grid;
    gap: 6px;
}

.imr-decision label span {
    color: #5f746b;
    font-size: 10px;
    font-weight: 850;
}

.imr-decision button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 850;
}

.imr-decision--approve button {
    color: #fff;
    background: #0a7458;
}

.imr-decision--reject button {
    color: #8a3030;
    background: #fff0f0;
}

.imr-request__decision {
    margin: 0 20px 20px;
    padding: 15px;
    border-radius: 14px;
    color: #5d7168;
    background: #f3f7f5;
}

.imr-request__decision p {
    margin: 7px 0;
}

.imr-empty {
    display: grid;
    justify-items: center;
    padding: 56px 20px;
    border: 1px dashed rgba(24, 69, 57, .18);
    border-radius: 22px;
    text-align: center;
    background: #fff;
}

.imr-empty .material-icons {
    color: #8b9a94;
    font-size: 48px;
}

@media (max-width: 900px) {
    .imr-public-hero__grid,
    .imr-public-layout,
    .imr-request__content,
    .imr-decision-grid {
        grid-template-columns: 1fr;
    }

    .imr-public-context {
        position: static;
    }

    .imr-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .imr-hero__actions {
        width: 100%;
    }

    .imr-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .imr-public-identity {
        align-items: flex-start;
        flex-direction: column;
    }

    .imr-public-logo {
        width: 88px;
        height: 88px;
        border-radius: 22px;
    }

    .imr-shell {
        padding: 16px 14px 52px;
    }

    .imr-kpis {
        grid-template-columns: 1fr;
    }

    .imr-request header {
        grid-template-columns: auto 1fr;
    }

    .imr-request header time {
        grid-column: 2;
    }

    .imr-filter {
        align-items: stretch;
        flex-direction: column;
    }

    .imr-filter select {
        width: 100%;
    }
}

/* INSTITUTION.ACTIVATION.SEAL | CLAIM is a governed request, not authority. */
.imr-public-principle.is-representation {
    border-color: #d5dfb4;
    background: #fbfcf2;
}

.imr-context-secondary {
    display: block !important;
    margin-top: 10px;
    color: #4c6678 !important;
    font-size: 13px;
}

.imr-form__fixed-value {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 46px;
    margin-top: 8px;
    padding: 10px 12px;
    border: 1px solid #d3e0e7;
    border-radius: 12px;
    background: #f5f8fa;
    color: #173650;
    font-weight: 750;
}

.imr-form__fixed-value .material-icons {
    font-size: 19px;
    color: #58758a;
}

.imr-activation-note,
.imr-governance-note {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
    padding: 14px 16px;
    border: 1px solid #e4d5ab;
    border-radius: 14px;
    background: #fffaf0;
    color: #5e4a22;
}

.imr-activation-note .material-icons,
.imr-governance-note .material-icons {
    flex: 0 0 auto;
    color: #8a6a25;
}

.imr-activation-note p,
.imr-governance-note p {
    margin: 0;
    line-height: 1.5;
}

.imr-governance-note strong {
    display: block;
    margin-bottom: 3px;
}

.imr-representation-badge {
    display: inline-flex;
    margin-left: 6px;
    padding: 4px 7px;
    border: 1px solid #e2cf96;
    border-radius: 999px;
    background: #fff8df;
    color: #71531b;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .06em;
}

.imr-state--governed {
    border-color: #d8e1e6;
    background: #f6f9fa;
}

/* =========================================================
   WORLD.SEAL.01 | Authenticated bridge
   Participation/representation remain public-capable routes, but an
   authenticated person keeps the private world's navigation and context.
========================================================= */
.imr-public-main--private {
    min-width: 0;
    min-height: calc(100dvh - var(--cr-topbar-h, 72px));
    overflow-x: visible;
    color: #17362e;
    background: #f6f9f7;
}

.imr-public-main--private .crpub-shell {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.imr-public-main--private .imr-public-hero {
    padding-top: 44px;
}

.imr-public-main--private .imr-public-context {
    top: calc(var(--cr-topbar-h, 72px) + 18px);
}

@media (max-width: 680px) {
    .imr-public-main--private .crpub-shell {
        width: min(100% - 24px, 1180px);
    }

    .imr-public-main--private .imr-public-hero {
        padding-top: 30px;
    }
}



/* WORLD.SEAL.02 | Visible keyboard focus on activation forms. */
.imr-form select:focus-visible,
.imr-form textarea:focus-visible,
.imr-decision input:focus-visible,
.imr-filter select:focus-visible,
.imr-form a:focus-visible,
.imr-form button:focus-visible,
.imr-decision button:focus-visible,
.imr-decision a:focus-visible{
    outline: 3px solid rgba(34, 92, 175, .20);
    outline-offset: 2px;
    border-color: rgba(34, 92, 175, .42);
    box-shadow: 0 0 0 4px rgba(34, 92, 175, .07);
}
