:root {
    --ink: #111827;
    --muted: #667085;
    --paper: #f5f7fb;
    --panel: #ffffff;
    --line: rgba(17, 24, 39, .11);
    --brand: #0f766e;
    --brand-dark: #134e4a;
    --accent: #f59e0b;
    --blue: #2563eb;
    --danger: #b42318;
    --ok: #087443;
    --shadow: 0 20px 60px rgba(15, 23, 42, .12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background:
        linear-gradient(180deg, rgba(15, 118, 110, .08), transparent 340px),
        var(--paper);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.has-document-preview {
    overflow: hidden;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

[hidden] {
    display: none !important;
}

.app-shell {
    min-height: 100vh;
    padding-bottom: 104px;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    min-height: 62px;
    margin: 0;
    padding: 6px max(16px, calc((100% - 1160px) / 2));
    background: rgba(245, 247, 251, .86);
    box-sizing: border-box;
}

.brand-lockup,
.session-actions,
.user-chip {
    display: flex;
    align-items: center;
}

.brand-lockup {
    gap: 12px;
    min-width: 0;
}

.avatar {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: #fff;
    font-weight: 950;
}

.logo-mark {
    display: block;
    width: auto;
    height: 54px;
    max-width: 88px;
    flex: 0 0 auto;
    object-fit: contain;
}

.brand-lockup strong {
    display: block;
    font-size: 1.05rem;
}

.eyebrow {
    display: block;
    margin: 0 0 4px;
    color: var(--brand);
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.session-actions {
    justify-content: flex-end;
    gap: 10px;
}

.notification-center {
    position: relative;
    flex: 0 0 auto;
}

.notification-button {
    position: relative;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 13px;
    color: var(--ink);
    background: rgba(255, 255, 255, .88);
}

.notification-button:hover,
.notification-button[aria-expanded="true"] {
    color: #fff;
    border-color: var(--brand-dark);
    background: var(--brand-dark);
}

.notification-button svg {
    width: 21px;
    height: 21px;
    fill: currentColor;
}

.notification-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    display: grid;
    place-items: center;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border: 2px solid var(--paper);
    border-radius: 999px;
    color: #fff;
    background: var(--danger);
    font-size: .67rem;
    font-weight: 950;
    line-height: 1;
}

.notification-panel {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    z-index: 45;
    width: min(390px, calc(100vw - 24px));
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 22px 60px rgba(15, 23, 42, .22);
}

.notification-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 17px 18px 13px;
    border-bottom: 1px solid var(--line);
}

.notification-panel-header h2 {
    margin: 0;
    font-size: 1.08rem;
}

.notification-panel-header > span {
    padding: 6px 9px;
    border-radius: 999px;
    color: var(--brand-dark);
    background: #ccfbf1;
    font-size: .72rem;
    font-weight: 900;
}

.notification-list {
    max-height: min(520px, calc(100vh - 150px));
    overflow-y: auto;
}

.notification-item {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 8px;
    gap: 11px;
    align-items: start;
    width: 100%;
    padding: 13px 16px;
    border: 0;
    border-bottom: 1px solid #eef1f5;
    color: var(--ink);
    background: #fff;
    text-align: left;
}

.notification-item:hover {
    background: #f7fafb;
}

.notification-item.is-unread {
    background: #effcf9;
}

.notification-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    color: var(--brand-dark);
    background: #ccfbf1;
}

.notification-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.notification-copy {
    min-width: 0;
}

.notification-copy strong,
.notification-copy span,
.notification-copy time {
    display: block;
}

.notification-copy strong {
    font-size: .84rem;
    line-height: 1.35;
}

.notification-copy span {
    margin-top: 3px;
    color: var(--muted);
    font-size: .78rem;
    line-height: 1.4;
}

.notification-copy time {
    margin-top: 6px;
    color: #98a2b3;
    font-size: .69rem;
    font-weight: 800;
}

.notification-dot {
    width: 8px;
    height: 8px;
    margin-top: 7px;
    border-radius: 999px;
    background: transparent;
}

.notification-item.is-unread .notification-dot {
    background: var(--brand);
}

.notification-empty {
    margin: 0;
    padding: 34px 22px;
    color: var(--muted);
    text-align: center;
}

.user-chip {
    max-width: 260px;
    gap: 9px;
    padding: 7px 11px 7px 7px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, .8);
    color: var(--ink);
    font-size: .9rem;
    font-weight: 800;
}

.user-chip span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.avatar {
    overflow: hidden;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: var(--blue);
    font-size: .82rem;
}

.avatar img,
.profile-avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.login-button,
.secondary-button,
.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 12px;
    font-weight: 900;
}

.login-button,
.primary-button {
    border: 0;
    color: #fff;
    background: var(--brand-dark);
    box-shadow: 0 14px 26px rgba(19, 78, 74, .2);
}

.login-button {
    padding: 0 18px;
}

.secondary-button {
    padding: 0 14px;
    border: 1px solid var(--line);
    color: var(--ink);
    background: #fff;
}

#logoutButton {
    border-color: rgba(180, 35, 24, .2);
    color: #fff;
    background: var(--danger);
    box-shadow: 0 12px 24px rgba(180, 35, 24, .18);
}

#logoutButton:hover {
    background: #8f1d15;
}

.primary-button {
    width: 100%;
    padding: 0 18px;
}

.content-shell {
    width: min(1160px, calc(100% - 32px));
    margin: 18px auto 0;
}

.view-section {
    display: none;
}

.view-section.is-active {
    display: block;
}

.hero-band {
    display: block;
    min-height: 430px;
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: 26px;
    background:
        linear-gradient(135deg, rgba(19, 78, 74, .96), rgba(15, 118, 110, .82)),
        #134e4a;
    color: #fff;
    box-shadow: var(--shadow);
}

.hero-copy {
    display: grid;
    align-content: end;
    max-width: 760px;
    min-height: 360px;
}

.live-pill,
.tag,
.soft-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: max-content;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 900;
}

.live-pill {
    margin-bottom: 18px;
    padding: 9px 13px;
    color: var(--brand-dark);
    background: #ccfbf1;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 760px;
    margin-bottom: 18px;
    font-size: clamp(2.35rem, 6vw, 5.3rem);
    line-height: .94;
}

.hero-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 .24em;
    line-height: .84;
}

.hero-logo {
    display: inline-block;
    width: clamp(170px, 29vw, 300px);
    height: auto;
    object-fit: contain;
    object-position: left center;
    transform: translateY(.03em) scale(1.1);
    transform-origin: left center;
}

.hero-copy p {
    max-width: 600px;
    margin-bottom: 0;
    color: rgba(255, 255, 255, .78);
    font-size: 1.08rem;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.hero-primary-action,
.hero-secondary-action,
.home-login-strip button,
.ticket-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 48px;
    border-radius: 14px;
    font-weight: 950;
}

.hero-primary-action,
.home-login-strip button,
.ticket-button {
    border: 0;
    color: var(--brand-dark);
    background: #ccfbf1;
}

.hero-secondary-action {
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, .22);
    color: #fff;
    background: rgba(255, 255, 255, .12);
}

.hero-primary-action {
    padding: 0 18px;
}

.hero-primary-action svg,
.hero-secondary-action svg,
.ticket-button svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.section-grid,
.app-grid {
    display: grid;
    gap: 16px;
    margin-top: 18px;
}

.section-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
}

.panel,
.app-card,
.profile-panel,
.feed-list,
.post-composer,
.social-post,
.empty-state,
.my-posts-panel {
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--panel);
    box-shadow: 0 14px 42px rgba(15, 23, 42, .07);
}

.panel {
    min-height: 210px;
    padding: 24px;
}

.tag {
    margin-bottom: 18px;
    padding: 7px 11px;
    color: #7c2d12;
    background: #ffedd5;
}

.tag.muted,
.soft-badge {
    color: #344054;
    background: #eef2f7;
}

.panel h2,
.section-heading h2,
.profile-panel h2 {
    margin-bottom: 10px;
    font-size: clamp(1.65rem, 3vw, 2.5rem);
    line-height: 1.05;
}

.panel p,
.app-card p,
.feed-item p,
.profile-panel p,
.modal-copy p {
    color: var(--muted);
    line-height: 1.55;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.post-meta span {
    padding: 7px 10px;
    border-radius: 999px;
    background: #f2f4f7;
    color: #344054;
    font-size: .82rem;
    font-weight: 800;
}

.home-updates,
.audience-grid,
.it-ticket-cta {
    margin-top: 18px;
}

.home-updates {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 14px 42px rgba(15, 23, 42, .07);
}

.updates-preview-grid,
.audience-grid {
    display: grid;
    gap: 14px;
}

.updates-preview-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(240px, .9fr) minmax(240px, .9fr);
}

.update-preview,
.audience-card {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #f8fafc;
}

.update-preview {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    min-height: 170px;
    padding: 18px;
}

.update-preview.is-featured {
    background: #f0fdfa;
}

.update-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    color: #fff;
    background: var(--brand-dark);
}

.update-icon svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.update-preview span:not(.update-icon),
.audience-copy > span {
    display: block;
    margin-bottom: 7px;
    color: var(--brand);
    font-size: .76rem;
    font-weight: 950;
    text-transform: uppercase;
}

.update-preview h3 {
    margin-bottom: 8px;
    font-size: 1.12rem;
}

.update-preview p {
    margin-bottom: 0;
    color: var(--muted);
    line-height: 1.5;
}

.home-login-strip,
.it-ticket-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.home-login-strip {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 18px;
    color: #fff;
    background: var(--brand-dark);
}

.home-login-strip span {
    font-weight: 850;
}

.home-login-strip button {
    flex: 0 0 auto;
    padding: 0 16px;
}

.audience-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.audience-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 4px;
    column-gap: 16px;
    align-items: center;
    min-height: 142px;
    padding: 20px;
    color: var(--ink);
}

.audience-card:hover {
    border-color: rgba(15, 118, 110, .32);
    background: #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .08);
}

.audience-icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: #f0fdfa;
}

.audience-icon img {
    display: block;
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.audience-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.audience-card strong {
    font-size: 1.15rem;
}

.audience-card small {
    color: var(--muted);
    font-weight: 850;
}

.it-ticket-cta {
    margin-bottom: 10px;
    padding: 24px;
    border-radius: 24px;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(17, 24, 39, .96), rgba(19, 78, 74, .92)),
        #111827;
    box-shadow: var(--shadow);
}

.it-ticket-cta h2 {
    margin-bottom: 8px;
    font-size: clamp(1.5rem, 3vw, 2.3rem);
}

.it-ticket-cta p:not(.eyebrow) {
    max-width: 660px;
    margin-bottom: 0;
    color: rgba(255, 255, 255, .74);
    line-height: 1.55;
}

.ticket-button {
    flex: 0 0 auto;
    min-width: 190px;
    padding: 0 18px;
}

.ticket-panel {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 14px 42px rgba(15, 23, 42, .07);
}

.ticket-form {
    display: grid;
    gap: 14px;
}

.ticket-form textarea {
    min-height: 150px;
}

.ticket-success-panel {
    display: grid;
    gap: 18px;
    place-items: center;
    min-height: 360px;
    padding: 34px 20px;
    text-align: center;
}

.ticket-success-icon {
    display: grid;
    place-items: center;
    width: 78px;
    height: 78px;
    border-radius: 24px;
    color: var(--brand-dark);
    background: #ccfbf1;
}

.ticket-success-icon svg {
    width: 42px;
    height: 42px;
    fill: currentColor;
}

.ticket-success-panel h3 {
    margin-bottom: 8px;
    font-size: clamp(1.55rem, 4vw, 2.25rem);
}

.ticket-success-panel p:not(.eyebrow) {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.5;
}

.ticket-success-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    width: 100%;
}

.ticket-success-actions .primary-button,
.ticket-success-actions .secondary-button {
    width: min(100%, 220px);
}

.ticket-form-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(160px, 220px);
    gap: 14px;
    align-items: center;
}

.ticket-submit-frame {
    position: absolute;
    width: 1px;
    height: 1px;
    border: 0;
    opacity: 0;
    pointer-events: none;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.soft-badge {
    padding: 8px 12px;
}

.app-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
}

.app-card {
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 8px;
    min-height: 168px;
    padding: 16px;
    border-radius: 18px;
}

.app-store-empty {
    grid-column: 1 / -1;
}

.app-card-head,
.app-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 9px;
}

.app-card-identity {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.app-card-title {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.app-card-title-row,
.app-platform-info {
    display: flex;
    align-items: center;
}

.app-card-title-row {
    flex-wrap: wrap;
    gap: 5px 8px;
}

.app-card-title-row h3 {
    margin: 0;
}

.app-version {
    color: var(--muted);
    font-size: .76rem;
    font-weight: 850;
    white-space: nowrap;
}

.app-platform-info {
    gap: 7px;
}

.app-icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 16px;
    color: #fff;
    font-weight: 950;
}

.app-card-identity > .app-icon {
    width: 64px;
    height: 64px;
    border-radius: 17px;
}

.app-icon svg,
.app-action svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.app-icon.app-logo {
    overflow: hidden;
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .08);
}

.app-icon.app-logo img {
    width: 100%;
    height: 100%;
    padding: 4px;
    object-fit: contain;
}

.app-platform-mark {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--brand);
    background: #f8fafc;
}

.app-platform-mark svg,
.app-platform-mark img {
    width: 17px;
    height: 17px;
}

.app-platform-mark svg {
    fill: currentColor;
}

.app-platform-mark img {
    object-fit: contain;
}

.app-mobile {
    background: var(--blue);
}

.app-web {
    background: var(--brand);
}

.app-desktop {
    background: #7c3aed;
}

.app-api {
    background: var(--accent);
}

.app-service {
    background: #475467;
}

.app-action {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 14px;
    color: var(--brand-dark);
    background: #fff;
}

.app-action-gate {
    cursor: pointer;
}

.app-action:hover {
    border-color: rgba(15, 118, 110, .3);
    box-shadow: 0 12px 24px rgba(15, 23, 42, .08);
}

.app-action.is-disabled {
    color: #98a2b3;
    background: #f2f4f7;
}

.app-card-copy {
    min-width: 0;
}

.app-card-copy p {
    margin: 0;
    line-height: 1.4;
}

.app-type {
    display: inline-flex;
    width: max-content;
    margin: 0;
    padding: 5px 9px;
    border-radius: 999px;
    color: #344054;
    background: #f2f4f7;
    font-size: .75rem;
    font-weight: 900;
}

.app-meta {
    flex-wrap: wrap;
    padding-top: 6px;
    color: var(--muted);
    font-size: .82rem;
    font-weight: 850;
}

.maintenance-badge {
    color: #92400e;
}

.app-orange {
    background: var(--accent);
}

.app-card h3 {
    margin-bottom: 0;
    font-size: 1.25rem;
}

.app-card p {
    margin-bottom: 8px;
}

.feed-list {
    display: grid;
    overflow: hidden;
}

.feed-layout {
    display: grid;
    grid-template-columns: minmax(320px, 390px) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.composer-launcher {
    position: sticky;
    top: 92px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    align-items: center;
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    color: #fff;
    background: var(--brand-dark);
    box-shadow: 0 16px 36px rgba(19, 78, 74, .22);
    text-align: left;
}

.composer-launcher small {
    display: block;
    margin-top: 2px;
    color: rgba(255, 255, 255, .72);
    font-weight: 800;
}

.composer-launcher svg {
    width: 23px;
    height: 23px;
    fill: currentColor;
}

.composer-head,
.post-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.post-author {
    padding-right: 48px;
}

.composer-avatar,
.post-avatar {
    width: 44px;
    height: 44px;
}

.composer-launcher .composer-avatar {
    width: 36px;
    height: 36px;
}

.composer-head strong,
.post-author strong {
    display: block;
}

.modal-composer-head h2 {
    margin: 0 0 4px;
    font-size: 1.8rem;
}

.post-author span:last-child {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: .82rem;
    font-weight: 800;
}

.feed-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    padding: 20px;
    border-bottom: 1px solid var(--line);
}

.feed-item:last-child {
    border-bottom: 0;
}

.feed-dot {
    width: 12px;
    height: 12px;
    margin-top: 6px;
    border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 0 0 6px rgba(15, 118, 110, .1);
}

.feed-item.locked .feed-dot {
    background: var(--accent);
    box-shadow: 0 0 0 6px rgba(245, 158, 11, .13);
}

.feed-item p {
    margin: 6px 0 0;
}

.profile-panel {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 18px;
    align-items: center;
    padding: 28px;
}

.profile-panel p {
    max-width: 720px;
    margin-bottom: 0;
}

.profile-main-avatar {
    width: 86px;
    height: 86px;
    border-radius: 24px;
    font-size: 1.35rem;
}

.profile-identity {
    min-width: 0;
}

.profile-username {
    display: inline-flex;
    margin-bottom: 6px;
    color: var(--brand-dark);
    font-size: .86rem;
    font-weight: 900;
}

.owner-post-actions {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    margin: 0;
}

.owner-post-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 11px;
    background: #eef2f7;
    color: #344054;
}

.owner-post-actions button:hover {
    color: #fff;
    background: var(--brand-dark);
}

.owner-post-actions svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.post-status-badge {
    display: inline-flex;
    width: max-content;
    margin-bottom: 12px;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: .76rem;
    font-weight: 950;
    text-transform: uppercase;
}

.post-status-badge.is-archived {
    color: #7c2d12;
    background: #ffedd5;
}

.switch-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #f8fafc;
}

.switch-row > span:first-child {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.switch-row strong {
    color: var(--ink);
    font-size: .95rem;
}

.switch-row small {
    color: var(--muted);
    font-size: .82rem;
}

.switch-row input {
    position: absolute;
    width: 1px;
    height: 1px;
    min-height: 1px;
    padding: 0;
    border: 0;
    opacity: 0;
    pointer-events: none;
}

.switch-track {
    position: relative;
    width: 54px;
    height: 32px;
    flex: 0 0 54px;
    border-radius: 999px;
    background: #cbd5e1;
    transition: background .18s ease;
}

.switch-track::after {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 3px 8px rgba(15, 23, 42, .18);
    transition: transform .18s ease;
}

.switch-row input:checked + .switch-track {
    background: var(--brand-dark);
}

.switch-row input:checked + .switch-track::after {
    transform: translateX(22px);
}

.switch-row:has(input:focus-visible) {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(15, 118, 110, .14);
}

.edit-post-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.danger-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    min-width: 180px;
    padding: 0 16px;
    border: 0;
    border-radius: 14px;
    background: #fff1f2;
    color: #be123c;
    font-weight: 900;
}

.danger-button:hover {
    color: #fff;
    background: #be123c;
}

.danger-button.is-success {
    color: #087443;
    background: #ecfdf3;
}

.danger-button.is-success:hover {
    color: #fff;
    background: #087443;
}

.bottom-nav {
    position: fixed;
    left: 50%;
    bottom: 16px;
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
    width: min(560px, calc(100% - 28px));
    padding: 7px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 18px 50px rgba(15, 23, 42, .16);
    transform: translateX(-50%);
    backdrop-filter: blur(18px);
}

.documents-shell {
    display: grid;
    gap: 18px;
}

.documents-heading,
.document-browser-bar,
.document-browser-actions,
.document-toolbar,
.document-tabs,
.document-breadcrumbs,
.document-card-actions,
.document-card-meta,
.share-user-button,
.user-search-field {
    display: flex;
    align-items: center;
}

.documents-heading {
    justify-content: space-between;
    gap: 24px;
    min-height: 44px;
}

.document-toolbar {
    flex: 0 0 auto;
    gap: 9px;
}

.document-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 15px;
    border: 1px solid var(--line);
    border-radius: 13px;
    color: var(--ink);
    background: #fff;
    font-weight: 900;
}

.document-action.primary {
    border-color: var(--brand-dark);
    color: #fff;
    background: var(--brand-dark);
}

.document-action svg,
.document-tabs svg,
.document-card-icon svg,
.user-search-field svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.document-tabs {
    gap: 8px;
    padding: 6px;
    width: max-content;
    max-width: 100%;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, .75);
}

.document-tabs button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 15px;
    border: 0;
    border-radius: 11px;
    color: var(--muted);
    background: transparent;
    font-weight: 900;
}

.document-tabs button.is-active {
    color: #fff;
    background: var(--brand-dark);
}

.document-browser {
    min-height: 430px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 14px 42px rgba(15, 23, 42, .07);
}

.document-browser-bar {
    justify-content: space-between;
    gap: 16px;
    min-height: 42px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--line);
}

.document-breadcrumbs {
    flex-wrap: wrap;
    gap: 4px;
}

.document-breadcrumbs button {
    padding: 6px 8px;
    border: 0;
    border-radius: 8px;
    color: var(--brand-dark);
    background: transparent;
    font-weight: 900;
}

.document-breadcrumbs button:hover {
    background: #ecfdf9;
}

.document-breadcrumbs span {
    color: #98a2b3;
}

.document-storage {
    flex: 0 0 auto;
    color: var(--muted);
    font-size: .82rem;
    font-weight: 800;
}

.document-browser-actions {
    flex: 0 0 auto;
    gap: 10px;
}

.document-view-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px;
    padding: 3px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #f7f9fc;
}

.document-view-toggle button {
    display: grid;
    place-items: center;
    width: 34px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 7px;
    color: var(--muted);
    background: transparent;
}

.document-view-toggle button.is-active {
    color: #fff;
    background: var(--brand-dark);
}

.document-view-toggle svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
}

.document-status {
    min-height: 20px;
    margin: 12px 0 0;
    color: var(--muted);
    font-size: .88rem;
    font-weight: 800;
}

.document-status.is-error {
    color: var(--danger);
}

.document-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.document-card,
.document-empty {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
}

.document-card {
    position: relative;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 11px;
    padding: 15px;
    text-align: left;
    transition: transform .16s ease, box-shadow .16s ease;
}

.document-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, .09);
}

.document-card-open {
    position: absolute;
    inset: 0;
    border: 0;
    border-radius: inherit;
    background: transparent;
}

.document-card-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    color: #92400e;
    background: #fef3c7;
}

.document-card.is-file .document-card-icon {
    color: var(--blue);
    background: #eaf2ff;
}

.document-card-body {
    min-width: 0;
}

.document-card-body strong {
    display: block;
    overflow: hidden;
    padding-right: 4px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.document-card-body small {
    display: block;
    overflow: hidden;
    margin-top: 4px;
    color: var(--muted);
    font-size: .75rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.document-card-meta {
    grid-column: 1 / -1;
    justify-content: space-between;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid #eef1f5;
    color: var(--muted);
    font-size: .72rem;
}

.document-card-actions {
    position: relative;
    z-index: 2;
    grid-column: 1 / -1;
    justify-content: flex-end;
    gap: 6px;
}

.document-card-actions button,
.document-card-actions a {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--line);
    border-radius: 9px;
    color: var(--muted);
    background: #fff;
}

.document-card-actions button:hover,
.document-card-actions a:hover {
    color: var(--brand-dark);
    border-color: rgba(19, 78, 74, .3);
}

.document-card-actions .delete-document:hover {
    color: var(--danger);
}

.document-card-actions svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.document-grid.is-list {
    grid-template-columns: 1fr;
}

.document-grid.is-list .document-card {
    grid-template-columns: 42px minmax(0, 1fr) minmax(160px, .45fr) auto;
    align-items: center;
}

.document-grid.is-list .document-card-meta {
    grid-column: auto;
    padding: 0;
    border-top: 0;
}

.document-grid.is-list .document-card-actions {
    grid-column: auto;
}

.document-empty {
    grid-column: 1 / -1;
    display: grid;
    place-items: center;
    min-height: 250px;
    padding: 30px;
    color: var(--muted);
    text-align: center;
    background: #f8fafc;
}

.document-empty svg {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    fill: #a7b0c0;
}

.document-empty p {
    margin: 7px 0 0;
}

.document-empty-upload {
    display: grid;
    justify-items: center;
    padding: 20px;
    border: 0;
    border-radius: 16px;
    color: var(--muted);
    background: transparent;
    text-align: center;
}

.document-empty-upload:hover,
.document-empty-upload:focus-visible {
    color: var(--brand-dark);
    background: #ecfdf9;
    outline: 0;
}

.document-empty-upload strong {
    color: var(--ink);
    font-size: 1rem;
}

.document-empty-upload span {
    margin-top: 6px;
    font-size: .88rem;
}

.share-document-modal {
    width: min(620px, 100%);
}

.document-preview-backdrop {
    z-index: 70;
    padding: 12px;
}

.document-preview-modal {
    display: flex;
    flex-direction: column;
    width: min(1400px, 100%);
    height: min(94vh, 980px);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 26px 80px rgba(15, 23, 42, .28);
}

.document-preview-header,
.document-preview-actions {
    display: flex;
    align-items: center;
}

.document-preview-header {
    justify-content: space-between;
    gap: 18px;
    min-height: 76px;
    padding: 12px 18px;
    border-bottom: 1px solid var(--line);
}

.document-preview-header h2 {
    max-width: min(65vw, 850px);
    margin: 0;
    overflow: hidden;
    font-size: 1rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.document-preview-header .eyebrow {
    margin-bottom: 3px;
}

.document-preview-actions {
    flex: 0 0 auto;
    gap: 9px;
}

.document-preview-close {
    position: static;
    flex: 0 0 auto;
}

.document-preview-stage {
    position: relative;
    flex: 1;
    min-height: 0;
    background: #dfe5ec;
}

.document-preview-stage iframe {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    border: 0;
    background: #eef2f6;
}

.document-preview-loading {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--muted);
    font-weight: 850;
}

.user-search-field {
    gap: 10px;
    margin: 18px 0 12px;
    padding: 0 13px;
    border: 1px solid var(--line);
    border-radius: 13px;
    color: var(--muted);
    background: #f8fafc;
}

.user-search-field input {
    width: 100%;
    min-height: 46px;
    border: 0;
    outline: 0;
    background: transparent;
}

.share-user-list {
    display: grid;
    gap: 7px;
    max-height: 360px;
    overflow-y: auto;
}

.share-user-button {
    width: 100%;
    gap: 11px;
    padding: 10px;
    border: 1px solid transparent;
    border-radius: 13px;
    color: var(--ink);
    background: #fff;
    text-align: left;
}

.share-user-button:hover {
    border-color: rgba(19, 78, 74, .2);
    background: #effcf9;
}

.share-user-button.is-shared {
    border-color: rgba(15, 118, 110, .16);
    background: #f0fdfa;
}

.share-user-button.is-shared > span:last-child {
    color: var(--danger);
}

.share-user-avatar {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    color: #fff;
    background: var(--blue);
    font-weight: 950;
}

.share-user-copy {
    min-width: 0;
    flex: 1;
}

.share-user-copy strong,
.share-user-copy small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.share-user-copy small {
    margin-top: 2px;
    color: var(--muted);
}

.share-user-button > span:last-child {
    color: var(--brand-dark);
    font-size: .8rem;
    font-weight: 900;
}

.bottom-nav a {
    display: grid;
    place-items: center;
    min-height: 58px;
    border-radius: 16px;
    color: #667085;
}

.bottom-nav svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.bottom-nav a.is-active {
    color: #fff;
    background: var(--brand-dark);
}

@media (min-width: 900px) {
    .app-shell {
        padding-left: 84px;
        padding-bottom: 32px;
    }

    .bottom-nav {
        top: 82px;
        left: 12px;
        bottom: auto;
        grid-template-columns: 1fr;
        width: 64px;
        padding: 7px;
        border-radius: 18px;
        transform: none;
    }

    .bottom-nav a {
        min-height: 50px;
        border-radius: 12px;
    }
}

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

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(15, 23, 42, .48);
    backdrop-filter: blur(12px);
}

.login-modal {
    position: relative;
    width: min(460px, 100%);
    padding: 26px;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 28px 90px rgba(15, 23, 42, .28);
}

.profile-modal {
    width: min(620px, 100%);
}

.post-modal {
    width: min(680px, 100%);
    max-height: min(92vh, 860px);
    overflow: auto;
}

.confirm-modal {
    width: min(430px, 100%);
}

.confirm-modal .modal-copy {
    padding-right: 0;
}

.confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.confirm-actions .primary-button,
.confirm-actions .secondary-button {
    width: auto;
    min-width: 120px;
}

.close-button {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
    font-size: 1.35rem;
    line-height: 1;
}

.modal-copy {
    padding-right: 44px;
}

.modal-copy h2 {
    margin-bottom: 10px;
    font-size: 2rem;
}

.login-form {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.avatar-editor {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #f8fafc;
}

.profile-avatar-preview {
    display: grid;
    place-items: center;
    overflow: hidden;
    width: 76px;
    height: 76px;
    flex: 0 0 76px;
    border-radius: 24px;
    color: #fff;
    background: var(--blue);
    font-size: 1.8rem;
    font-weight: 950;
}

.file-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: max-content;
    min-height: 42px;
    margin: 0;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--ink);
    background: #fff;
    font-weight: 900;
}

.file-button input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

label {
    display: grid;
    gap: 8px;
    color: #344054;
    font-size: .9rem;
    font-weight: 850;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid rgba(17, 24, 39, .16);
    border-radius: 14px;
    padding: 0 14px;
    color: var(--ink);
    background: #fff;
    outline: none;
}

input,
select {
    min-height: 50px;
}

textarea {
    min-height: 128px;
    padding: 14px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(15, 118, 110, .14);
}

.attachment-picker {
    min-height: 54px;
    align-content: center;
    padding: 14px;
    border: 1px dashed rgba(17, 24, 39, .2);
    border-radius: 16px;
    background: #f8fafc;
}

.attachment-picker input {
    min-height: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.visually-hidden-control {
    position: absolute;
    width: 1px;
    height: 1px;
    min-height: 1px;
    padding: 0;
    border: 0;
    opacity: 0;
    pointer-events: none;
}

.composer-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #f8fafc;
}

.tool-menu-wrap {
    position: relative;
}

.tool-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 13px;
    color: var(--ink);
    background: #fff;
    font-weight: 900;
}

.tool-button svg {
    width: 20px;
    height: 20px;
    fill: var(--brand);
}

.tool-menu {
    position: absolute;
    left: 0;
    top: calc(100% + 8px);
    z-index: 4;
    display: grid;
    min-width: 180px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(15, 23, 42, .16);
}

.tool-menu button {
    min-height: 38px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--ink);
    font-weight: 850;
    text-align: left;
}

.tool-menu button:hover {
    background: #eef2f7;
}

.event-location-field {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #ecfdf3;
}

.composer-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(140px, 190px);
    gap: 12px;
    align-items: center;
}

.composer-footer .primary-button {
    width: auto;
}

.edit-post-footer {
    grid-template-columns: 1fr;
}

.social-feed,
.public-feed {
    display: grid;
    gap: 14px;
}

.social-post,
.empty-state {
    padding: 20px;
}

.social-post {
    position: relative;
}

.social-post h3 {
    margin: 16px 0 8px;
    font-size: 1.24rem;
}

.public-post h3 {
    margin-top: 12px;
}

.official-badge {
    display: inline-flex;
    width: max-content;
    padding: 7px 10px;
    border-radius: 999px;
    color: var(--brand-dark);
    background: #ccfbf1;
    font-size: .76rem;
    font-weight: 950;
    text-transform: uppercase;
}

.post-open {
    display: block;
    width: 100%;
    border: 0;
    padding: 0;
    color: var(--ink);
    background: transparent;
    text-align: left;
}

.social-post p {
    margin-bottom: 0;
    color: #344054;
    line-height: 1.6;
}

.event-chip {
    display: grid;
    gap: 2px;
    margin-top: 16px;
    padding: 12px;
    border-radius: 16px;
    background: #ecfdf3;
    color: #065f46;
}

.event-chip span {
    color: #047857;
    font-size: .9rem;
    font-weight: 800;
}

.post-images {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 16px;
}

.post-images a {
    display: block;
    overflow: hidden;
    border-radius: 16px;
    background: #eef2f7;
}

.post-images img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.post-documents {
    display: grid;
    gap: 8px;
    margin-top: 16px;
}

.post-documents a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #f8fafc;
    color: var(--ink);
    font-weight: 850;
}

.post-documents span {
    display: grid;
    place-items: center;
    width: 38px;
    height: 28px;
    border-radius: 9px;
    color: #fff;
    background: var(--brand-dark);
    font-size: .72rem;
}

.post-stats,
.post-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.post-stats {
    color: var(--muted);
    font-size: .84rem;
    font-weight: 850;
}

.reaction-count {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.reaction-count svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
}

.post-stats button,
.post-actions button,
.comment-body button {
    border: 0;
    background: transparent;
    color: var(--brand);
    font-weight: 900;
}

.post-actions {
    justify-content: flex-start;
    margin-top: 0;
    border-top: 0;
}

.post-actions button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 38px;
    padding: 0 12px;
    border-radius: 12px;
    color: #344054;
    background: #f8fafc;
}

.post-actions button.icon-only {
    justify-content: center;
    width: 44px;
    padding: 0;
}

.post-actions button.is-active {
    color: #fff;
    background: var(--brand-dark);
}

.post-actions svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.post-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(320px, .58fr);
    gap: 18px;
    align-items: start;
}

.comments-panel {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 14px 42px rgba(15, 23, 42, .07);
}

.compact-heading {
    align-items: center;
    margin-bottom: 12px;
}

.compact-heading h2 {
    font-size: 1.35rem;
}

.comments-list {
    display: grid;
    gap: 10px;
}

.comment-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
}

.comment-item.is-reply {
    margin-left: 46px;
}

.comment-item.notification-highlight {
    border-color: rgba(15, 118, 110, .45);
    background: #ecfdf9;
    box-shadow: 0 0 0 4px rgba(15, 118, 110, .1);
}

.comment-avatar {
    width: 34px;
    height: 34px;
    font-size: .78rem;
}

.comment-body {
    padding: 11px 12px;
    border-radius: 16px;
    background: #f8fafc;
}

.comment-body header {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.comment-body header span {
    color: var(--muted);
    font-size: .8rem;
    font-weight: 800;
}

.comment-body p {
    margin: 6px 0 8px;
    color: #344054;
    line-height: 1.5;
}

.comment-form {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.comment-form textarea {
    min-height: 86px;
}

.comment-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(120px, 170px);
    gap: 10px;
}

.comment-actions .primary-button {
    width: auto;
}

.small-empty {
    padding: 14px;
    box-shadow: none;
}

.empty-state p {
    margin: 8px 0 0;
    color: var(--muted);
}

.my-posts-panel {
    margin-top: 18px;
    padding: 22px;
}

.compact-feed .social-post h3 {
    font-size: 1.08rem;
}

.password-row {
    position: relative;
    display: block;
}

.ghost-icon {
    position: absolute;
    top: 50%;
    right: 8px;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #475467;
    font-weight: 900;
    transform: translateY(-50%);
}

.password-row input {
    padding-right: 54px;
}

.ghost-icon:hover {
    color: var(--brand-dark);
    background: #eef2f7;
}

.ghost-icon svg {
    width: 21px;
    height: 21px;
    fill: currentColor;
}

.form-message {
    min-height: 22px;
    margin: 0;
    color: var(--danger);
    font-size: .9rem;
    font-weight: 800;
}

.form-message.ok {
    color: var(--ok);
}

@media (max-width: 860px) {
    .hero-band,
    .section-grid,
    .updates-preview-grid,
    .audience-grid,
    .app-grid,
    .profile-panel,
    .feed-layout,
    .post-detail-layout {
        grid-template-columns: 1fr;
    }

    .composer-launcher {
        position: static;
    }

    .hero-band {
        min-height: auto;
        padding: 24px;
    }

    .home-login-strip,
    .it-ticket-cta {
        align-items: stretch;
        flex-direction: column;
    }

    .home-login-strip button,
    .ticket-button {
        width: 100%;
    }

    .profile-panel .primary-button {
        width: auto;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .composer-footer {
        grid-template-columns: 1fr;
    }

    .ticket-form-actions {
        grid-template-columns: 1fr;
    }

    .documents-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .document-toolbar {
        flex-wrap: wrap;
    }

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

    .composer-footer .primary-button,
    .ticket-form-actions .primary-button {
        width: 100%;
    }
}

@media (max-width: 560px) {
    .app-shell {
        padding-bottom: 96px;
    }

    .content-shell {
        width: min(100% - 24px, 1160px);
    }

    .topbar {
        width: 100%;
        padding: 6px 12px;
    }

    .brand-lockup span:last-child {
        display: none;
    }

    .user-chip {
        max-width: 150px;
    }

    .notification-panel {
        position: fixed;
        top: 70px;
        right: 12px;
        left: 12px;
        width: auto;
    }

    .login-button,
    .secondary-button {
        min-height: 42px;
        padding: 0 12px;
        font-size: .86rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    .hero-actions {
        display: grid;
    }

    .hero-primary-action,
    .hero-secondary-action {
        width: 100%;
    }

    .home-updates,
    .ticket-panel,
    .it-ticket-cta {
        padding: 18px;
        border-radius: 20px;
    }

    .section-heading {
        align-items: start;
    }

    .bottom-nav {
        bottom: 10px;
        width: calc(100% - 20px);
        border-radius: 18px;
    }

    .bottom-nav a {
        min-height: 54px;
        border-radius: 13px;
    }

    .bottom-nav svg {
        width: 21px;
        height: 21px;
    }

    .document-browser {
        padding: 16px;
        border-radius: 20px;
    }

    .document-toolbar {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .document-action {
        padding: 0 10px;
        font-size: .8rem;
    }

    .document-tabs {
        display: grid;
        grid-template-columns: 1fr 1.25fr;
        width: 100%;
    }

    .document-tabs button {
        justify-content: center;
        min-width: 0;
        padding: 0 8px;
        font-size: .79rem;
    }

    .document-tabs svg {
        width: 17px;
        height: 17px;
    }

    .document-browser-bar {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .document-browser-actions {
        width: 100%;
        justify-content: space-between;
    }

    .document-grid {
        grid-template-columns: 1fr;
    }

    .document-grid.is-list .document-card {
        grid-template-columns: 42px minmax(0, 1fr) auto;
    }

    .document-grid.is-list .document-card-meta {
        grid-column: 1 / 3;
        padding-top: 9px;
        border-top: 1px solid #eef1f5;
    }

    .document-grid.is-list .document-card-actions {
        grid-column: 3;
        grid-row: 1 / 3;
        flex-direction: column;
    }

    .document-preview-backdrop {
        padding: 0;
    }

    .document-preview-modal {
        width: 100%;
        height: 100%;
        border: 0;
        border-radius: 0;
    }

    .document-preview-header {
        min-height: 68px;
        padding: 9px 12px;
    }

    .document-preview-actions .secondary-button {
        min-height: 38px;
    }

    .login-modal {
        padding: 22px;
        border-radius: 20px;
    }

    .post-images {
        grid-template-columns: 1fr;
    }

    .comment-item.is-reply {
        margin-left: 18px;
    }

    .comment-actions {
        grid-template-columns: 1fr;
    }

    .comment-actions .primary-button {
        width: 100%;
    }

    .edit-post-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .edit-post-actions .primary-button,
    .edit-post-actions .danger-button {
        width: 100%;
    }

    .avatar-editor {
        align-items: flex-start;
        flex-direction: column;
    }

    .profile-panel {
        align-items: start;
        padding: 22px;
    }

    .profile-main-avatar {
        width: 72px;
        height: 72px;
        border-radius: 20px;
    }

    .composer-tools {
        align-items: stretch;
        flex-direction: column;
    }

    .tool-button {
        justify-content: flex-start;
        width: 100%;
    }

    .tool-menu {
        position: static;
        margin-top: 8px;
    }
}
