/* =====================================================================
   NizuSocial → New post — iOS 26 "Liquid Glass" composer
   ---------------------------------------------------------------------
   Scoped to `.nz-compose26` (set on #page-content in Views/posts/create.php)
   so nothing here reaches the posts list, the calendar or the post detail.

   Every colour comes from the shared --ios26-* tokens declared in
   app.all.css, which the dark theme (body.color-1E202D) re-declares, so
   dark mode needs almost no duplicated rules. The exceptions are the
   network previews at the bottom of this file: they imitate how each
   network paints a post, and each network has its own dark palette, so
   those carry an explicit `body.color-1E202D` block.

   Layout
   ------
     .nz-compose-hero    the large plain title + one line of help
     .nz-compose-grid    two columns on desktop (steps | preview),
                         one column below 992px
     .nz-step            one numbered glass card per decision
     .nz-compose-bar     the sticky summary bar with the one button
   ===================================================================== */

.nz-compose26 {
    --nz-gap: 16px;
    --nz-ok: #34c759;
    --nz-warn: #ff9f0a;
    --nz-danger: #ff453a;
    --nz-ok-soft: rgba(52, 199, 89, .14);
    --nz-warn-soft: rgba(255, 159, 10, .14);
    --nz-danger-soft: rgba(255, 69, 58, .14);
    --nz-field: rgba(255, 255, 255, .55);
    --nz-field-solid: rgba(255, 255, 255, .92);
    padding-bottom: 24px;
}

body.color-1E202D .nz-compose26 {
    --nz-field: rgba(255, 255, 255, .05);
    --nz-field-solid: rgba(255, 255, 255, .09);
}

/* ------------------------------------------------------------- hero --- */

.nz-compose26 .nz-compose-hero {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    padding: 4px 4px 18px;
}

.nz-compose26 .nz-compose-hero-text {
    min-width: 0;
}

.nz-compose26 .nz-compose-hero h1 {
    margin: 0;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.022em;
    color: var(--ios26-text);
}

.nz-compose26 .nz-compose-hero p {
    margin: 6px 0 0;
    font-size: 14px;
    line-height: 1.45;
    color: var(--ios26-muted);
}

.nz-compose26 .nz-compose-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    margin-left: auto;
    padding: 9px 16px;
    border: 1px solid var(--ios26-edge);
    border-radius: var(--ios26-pill);
    background: var(--ios26-surface);
    -webkit-backdrop-filter: var(--ios26-blur-sm);
    backdrop-filter: var(--ios26-blur-sm);
    box-shadow: var(--ios26-inset), var(--ios26-shadow-1);
    color: var(--ios26-text);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: transform .25s var(--ios26-spring), box-shadow .25s var(--ios26-ease);
}

.nz-compose26 .nz-compose-back:hover {
    color: var(--ios26-text);
    transform: translateY(-1px);
    box-shadow: var(--ios26-inset), var(--ios26-shadow-2);
}

/* ------------------------------------------------------------- grid --- */

.nz-compose26 .nz-compose-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: var(--nz-gap);
    align-items: start;
}

.nz-compose26 .nz-compose-main {
    display: flex;
    flex-direction: column;
    gap: var(--nz-gap);
    min-width: 0;
}

.nz-compose26 .nz-compose-side {
    position: sticky;
    top: 8px;
    min-width: 0;
}

/* ------------------------------------------------------------- step --- */

.nz-compose26 .nz-step {
    position: relative;
    border: 1px solid var(--ios26-edge);
    border-radius: var(--ios26-radius-lg);
    background: var(--ios26-surface);
    -webkit-backdrop-filter: var(--ios26-blur);
    backdrop-filter: var(--ios26-blur);
    box-shadow: var(--ios26-inset), var(--ios26-shadow-1);
}

.nz-compose26 .nz-step-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 20px 12px;
}

.nz-compose26 .nz-step-num {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--ios26-accent-soft);
    color: var(--ios26-accent-strong);
    font-size: 14px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    margin-top: 1px;
}

.nz-compose26 .nz-step-title {
    min-width: 0;
    flex: 1 1 0%;
}

.nz-compose26 .nz-step-title h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.015em;
    color: var(--ios26-text);
}

.nz-compose26 .nz-step-title p {
    margin: 3px 0 0;
    font-size: 13px;
    line-height: 1.45;
    color: var(--ios26-muted);
}

.nz-compose26 .nz-optional {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 8px;
    border-radius: var(--ios26-pill);
    background: var(--ios26-fill);
    color: var(--ios26-muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .02em;
    text-transform: uppercase;
    vertical-align: middle;
}

.nz-compose26 .nz-step-tools {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    margin-left: auto;
    padding-top: 4px;
}

.nz-compose26 .nz-step-state {
    font-size: 12px;
    font-weight: 600;
    color: var(--ios26-accent-strong);
}

.nz-compose26 .nz-link {
    padding: 0;
    border: 0;
    background: none;
    font-size: 13px;
    font-weight: 600;
    color: var(--ios26-accent-strong);
    cursor: pointer;
}

.nz-compose26 .nz-link:hover {
    text-decoration: underline;
}

.nz-compose26 .nz-step-body {
    padding: 4px 20px 20px;
}

/* ------------------------------------------------------ empty state --- */

.nz-compose26 .nz-step-empty {
    max-width: 560px;
    margin: 12px auto 0;
    padding: 40px 28px;
    text-align: center;
}

.nz-compose26 .nz-empty-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 22px;
    background: var(--ios26-accent-soft);
    color: var(--ios26-accent-strong);
    font-size: 32px;
}

.nz-compose26 .nz-step-empty h2 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 700;
    color: var(--ios26-text);
}

.nz-compose26 .nz-step-empty p {
    margin: 0 0 22px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--ios26-muted);
}

/* ---------------------------------------------------------- accounts --- */

.nz-compose26 .nz-acc-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
}

.nz-compose26 .nz-acc {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 10px 12px;
    min-height: 64px;
    border: 1px solid var(--ios26-hairline);
    border-radius: var(--ios26-radius);
    background: var(--nz-field);
    cursor: pointer;
    user-select: none;
    transition: border-color .2s var(--ios26-ease), box-shadow .2s var(--ios26-ease),
                background .2s var(--ios26-ease), transform .25s var(--ios26-spring);
}

.nz-compose26 .nz-acc:hover {
    border-color: var(--ios26-hairline-strong);
    background: var(--nz-field-solid);
}

.nz-compose26 .nz-acc:active {
    transform: scale(.985);
}

.nz-compose26 .nz-acc.is-selected {
    border-color: var(--ios26-accent);
    background: var(--ios26-accent-soft);
    box-shadow: 0 0 0 3px var(--ios26-accent-ring);
}

.nz-compose26 .nz-acc input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.nz-compose26 .nz-acc:has(input:focus-visible) {
    outline: 2px solid var(--ios26-accent);
    outline-offset: 2px;
}

.nz-compose26 .nz-acc-avatar {
    position: relative;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--ios26-fill);
    color: var(--ios26-muted);
    font-size: 18px;
}

.nz-compose26 .nz-acc-avatar img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
}

.nz-compose26 .nz-acc-badge {
    position: absolute;
    right: -3px;
    bottom: -3px;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--ios26-surface-strong);
    box-shadow: 0 0 0 2px var(--ios26-surface-strong);
    color: var(--nz-brand, currentColor);
    font-size: 10px;
}

.nz-compose26 .nz-acc-text {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.nz-compose26 .nz-acc-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--ios26-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nz-compose26 .nz-acc-handle {
    font-size: 12px;
    color: var(--ios26-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nz-compose26 .nz-acc-check {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1.5px solid var(--ios26-hairline-strong);
    color: transparent;
    font-size: 11px;
    transition: background .2s var(--ios26-ease), border-color .2s var(--ios26-ease), transform .3s var(--ios26-spring);
}

.nz-compose26 .nz-acc.is-selected .nz-acc-check {
    background: var(--ios26-accent);
    border-color: var(--ios26-accent);
    color: #fff;
    transform: scale(1.08);
}

/* ------------------------------------------------------------ fields --- */

.nz-compose26 .nz-field {
    position: relative;
}

.nz-compose26 .nz-textarea,
.nz-compose26 .nz-input {
    display: block;
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--ios26-hairline);
    border-radius: var(--ios26-radius);
    background: var(--nz-field);
    color: var(--ios26-text);
    font-size: 15px;
    line-height: 1.5;
    resize: none;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color .2s var(--ios26-ease), box-shadow .2s var(--ios26-ease), background .2s var(--ios26-ease);
}

.nz-compose26 .nz-textarea::placeholder,
.nz-compose26 .nz-input::placeholder {
    color: var(--ios26-muted);
    opacity: .8;
}

.nz-compose26 .nz-textarea:focus,
.nz-compose26 .nz-input:focus {
    outline: none;
    border-color: var(--ios26-accent);
    background: var(--nz-field-solid);
    box-shadow: 0 0 0 3px var(--ios26-accent-ring);
}

.nz-compose26 #nizusocial_content {
    min-height: 120px;
    padding-bottom: 32px;
}

.nz-compose26 .nz-textarea-sm {
    font-size: 14px;
    min-height: 56px;
}

.nz-compose26 .nz-counter {
    position: absolute;
    right: 12px;
    bottom: 10px;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    color: var(--ios26-muted);
    pointer-events: none;
}

.nz-compose26 .nz-counter.is-near {
    color: var(--nz-warn);
}

.nz-compose26 .nz-counter.is-over {
    color: var(--nz-danger);
    font-weight: 600;
}

.nz-compose26 .nz-datetime {
    max-width: 320px;
    margin-top: 10px;
    color-scheme: light;
}

body.color-1E202D .nz-compose26 .nz-datetime {
    color-scheme: dark;
}

/* ------------------------------------------------------------ market --- */

/* the select2 (3.x) control, in the same glass as every other field */
.nz-compose26 .nz-market {
    max-width: 520px;
}

.nz-compose26 .nz-market .select2-container {
    width: 100%;
}

/* select2-bootstrap.min.css paints .select2-choice #f6f8f9 with !important
   (and the dark theme repaints it the same way), so the glass field needs
   !important of its own to win — the same fight every restyled select2 in
   the app has (see public-ios26.css) */
.nz-compose26 .nz-market .select2-container .select2-choice {
    height: 46px;
    line-height: 44px;
    padding-left: 14px;
    border: 1px solid var(--ios26-hairline) !important;
    border-radius: var(--ios26-radius);
    background-color: var(--nz-field) !important;
    color: var(--ios26-text);
    font-size: 15px;
    box-shadow: none !important;
    transition: border-color .2s var(--ios26-ease), box-shadow .2s var(--ios26-ease);
}

/* the arrow is an 18px sprite (down at 0, up at -18px): keep its width,
   only centre it vertically */
.nz-compose26 .nz-market .select2-container .select2-choice .select2-arrow {
    top: 50%;
    height: 18px;
    margin-top: -9px;
    border: 0;
    background: transparent;
}

.nz-compose26 .nz-market .select2-container .select2-choice .select2-arrow b {
    background-position: 0 0;
}

.nz-compose26 .nz-market .select2-dropdown-open .select2-choice .select2-arrow b {
    background-position: -18px 0;
}

.nz-compose26 .nz-market .select2-container-active .select2-choice,
.nz-compose26 .nz-market .select2-dropdown-open .select2-choice {
    border-color: var(--ios26-accent) !important;
    background-color: var(--nz-field-solid) !important;
    box-shadow: 0 0 0 3px var(--ios26-accent-ring) !important;
}

.nz-compose26 .nz-market-hint {
    margin: 8px 2px 0;
    font-size: 13px;
    line-height: 1.45;
    color: var(--ios26-muted);
}

.nz-compose26 .nz-market-hint:empty {
    display: none;
}

/* ------------------------------------------------------------- chips --- */

.nz-compose26 .nz-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.nz-compose26 .nz-chip-row-tight {
    margin-top: 0;
    gap: 6px;
}

.nz-compose26 .nz-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 6px 13px;
    border: 1px solid var(--ios26-hairline);
    border-radius: var(--ios26-pill);
    background: var(--nz-field);
    color: var(--ios26-text);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
    cursor: pointer;
    white-space: nowrap;
    transition: background .2s var(--ios26-ease), border-color .2s var(--ios26-ease),
                color .2s var(--ios26-ease), transform .25s var(--ios26-spring);
}

.nz-compose26 .nz-chip i {
    font-size: 13px;
    color: var(--ios26-muted);
}

.nz-compose26 .nz-chip:hover {
    background: var(--nz-field-solid);
    border-color: var(--ios26-hairline-strong);
}

.nz-compose26 .nz-chip:active {
    transform: scale(.96);
}

.nz-compose26 .nz-chip.is-active {
    background: var(--ios26-accent);
    border-color: var(--ios26-accent);
    color: #fff;
}

.nz-compose26 .nz-chip.is-active i {
    color: #fff;
}

.nz-compose26 .nz-chip-ai {
    border-style: dashed;
}

.nz-compose26 .nz-chip-ai i {
    color: var(--ios26-accent-strong);
}

.nz-compose26 .nz-chip-ai.is-active {
    border-style: solid;
}

/* ------------------------------------------------------------- sheet --- */

.nz-compose26 .nz-sheet {
    margin-top: 12px;
    padding: 16px;
    border: 1px solid var(--ios26-hairline);
    border-radius: var(--ios26-radius);
    background: var(--ios26-surface-soft);
    animation: nz-sheet-in .3s var(--ios26-spring);
}

@keyframes nz-sheet-in {
    from { opacity: 0; transform: translateY(-6px) scale(.985); }
    to   { opacity: 1; transform: none; }
}

.nz-compose26 .nz-sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 2px;
}

.nz-compose26 .nz-sheet-head strong {
    font-size: 15px;
    font-weight: 700;
    color: var(--ios26-text);
}

.nz-compose26 .nz-sheet-close {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: var(--ios26-fill);
    color: var(--ios26-muted);
    cursor: pointer;
}

.nz-compose26 .nz-sheet-close:hover {
    background: var(--ios26-fill-hover);
    color: var(--ios26-text);
}

.nz-compose26 .nz-sheet-help {
    margin: 0 0 10px;
    font-size: 13px;
    line-height: 1.45;
    color: var(--ios26-muted);
}

.nz-compose26 .nz-sheet-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 8px 0 0;
    font-size: 12px;
    color: var(--nz-warn);
}

.nz-compose26 .nz-sheet-label {
    display: block;
    margin: 0 0 6px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: var(--ios26-muted);
}

.nz-compose26 .nz-sheet-row {
    margin-top: 12px;
}

.nz-compose26 .nz-sheet-row .nz-sheet-label {
    margin-bottom: 6px;
}

.nz-compose26 .nz-sheet-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 14px;
}

.nz-compose26 .nz-tpl-row {
    margin-bottom: 12px;
}

.nz-compose26 .nz-note {
    margin: 12px 0 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--ios26-muted);
}

.nz-compose26 .nz-note > i {
    margin-right: 6px;
    color: var(--ios26-accent-strong);
}

.nz-compose26 .nz-note a {
    margin-left: 4px;
    color: var(--ios26-accent-strong);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

/* ------------------------------------------------------------- media --- */

.nz-compose26 .nz-media-req {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.nz-compose26 .nz-media-req span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    border-radius: var(--ios26-pill);
    background: var(--nz-warn-soft);
    color: var(--nz-warn);
    font-size: 13px;
    font-weight: 600;
}

body.color-1E202D .nz-compose26 .nz-media-req span {
    color: #ffb340;
}

.nz-compose26 .nz-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.nz-compose26 .nz-thumbs:empty {
    display: none;
}

.nz-compose26 .nz-thumb {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: var(--ios26-radius-sm);
    overflow: hidden;
    background: var(--ios26-fill);
    box-shadow: var(--ios26-shadow-1);
}

.nz-compose26 .nz-thumb img,
.nz-compose26 .nz-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.nz-compose26 .nz-thumb-play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, .55);
    color: #fff;
    font-size: 12px;
    pointer-events: none;
}

.nz-compose26 .nz-thumb-remove {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, .55);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    opacity: .85;
}

.nz-compose26 .nz-thumb-remove:hover {
    opacity: 1;
    background: var(--nz-danger);
}

.nz-compose26 .nz-drop {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin: 0;
    padding: 26px 16px;
    border: 1.5px dashed var(--ios26-hairline-strong);
    border-radius: var(--ios26-radius);
    background: var(--nz-field);
    cursor: pointer;
    text-align: center;
    transition: border-color .2s var(--ios26-ease), background .2s var(--ios26-ease);
}

.nz-compose26 .nz-drop:hover,
.nz-compose26 .nz-drop.is-dragover {
    border-color: var(--ios26-accent);
    background: var(--ios26-accent-soft);
}

.nz-compose26 .nz-drop-icon {
    font-size: 30px;
    color: var(--ios26-accent-strong);
    margin-bottom: 6px;
}

.nz-compose26 .nz-drop-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--ios26-text);
}

.nz-compose26 .nz-drop-sub {
    font-size: 13px;
    color: var(--ios26-muted);
}

.nz-compose26 .nz-drop-btn {
    margin-top: 10px;
}

/* ---------------------------------------------------------- segmented --- */

.nz-compose26 .nz-seg {
    display: inline-flex;
    gap: 2px;
    padding: 3px;
    border: 1px solid var(--ios26-hairline);
    border-radius: var(--ios26-pill);
    background: var(--ios26-fill);
    max-width: 100%;
}

.nz-compose26 .nz-seg-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 6px 18px;
    border: 0;
    border-radius: var(--ios26-pill);
    background: transparent;
    color: var(--ios26-muted);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background .25s var(--ios26-ease), color .25s var(--ios26-ease), box-shadow .25s var(--ios26-ease);
}

.nz-compose26 .nz-seg-item.is-active {
    background: var(--ios26-surface-strong);
    color: var(--ios26-text);
    box-shadow: var(--ios26-inset), 0 1px 3px rgba(17, 24, 39, .12);
}

.nz-compose26 .nz-seg-item.is-active i {
    color: var(--ios26-accent-strong);
}

.nz-compose26 .nz-schedule {
    margin-top: 14px;
}

/* the suggested-time rows: a bold "when", a one-line "why", a check */
.nz-compose26 .nz-suggest-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nz-compose26 .nz-suggest {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    width: 100%;
    padding: 11px 44px 11px 14px;
    border: 1px solid var(--ios26-hairline);
    border-radius: var(--ios26-radius);
    background: var(--nz-field);
    color: var(--ios26-text);
    text-align: left;
    cursor: pointer;
    transition: border-color .2s var(--ios26-ease), box-shadow .2s var(--ios26-ease), background .2s var(--ios26-ease);
}

.nz-compose26 .nz-suggest:hover {
    border-color: var(--ios26-hairline-strong);
    background: var(--nz-field-solid);
}

.nz-compose26 .nz-suggest.is-active {
    border-color: var(--ios26-accent);
    background: var(--ios26-accent-soft);
    box-shadow: 0 0 0 3px var(--ios26-accent-ring);
}

.nz-compose26 .nz-suggest-when {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
}

.nz-compose26 .nz-suggest-best {
    padding: 1px 8px;
    border-radius: var(--ios26-pill);
    background: var(--nz-ok-soft);
    color: var(--nz-ok);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
}

body.color-1E202D .nz-compose26 .nz-suggest-best {
    color: #4cd964;
}

.nz-compose26 .nz-suggest-why {
    font-size: 13px;
    line-height: 1.4;
    color: var(--ios26-muted);
}

.nz-compose26 .nz-suggest-check {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1.5px solid var(--ios26-hairline-strong);
    color: transparent;
    font-size: 11px;
}

.nz-compose26 .nz-suggest.is-active .nz-suggest-check {
    background: var(--ios26-accent);
    border-color: var(--ios26-accent);
    color: #fff;
}

.nz-compose26 .nz-when-line {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 14px 0 0;
    font-size: 13px;
    color: var(--ios26-muted);
}

.nz-compose26 .nz-when-line i {
    color: var(--ios26-accent-strong);
}

/* ----------------------------------------------------------- buttons --- */

.nz-compose26 .nz-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 18px;
    border: 1px solid transparent;
    border-radius: var(--ios26-pill);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: transform .25s var(--ios26-spring), box-shadow .25s var(--ios26-ease),
                background .2s var(--ios26-ease), opacity .2s var(--ios26-ease);
}

.nz-compose26 .nz-btn-text,
.nz-compose26 .nz-btn-busy {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.nz-compose26 .nz-btn-primary {
    background: var(--ios26-accent);
    color: #fff;
    box-shadow: 0 6px 18px var(--ios26-accent-ring);
}

.nz-compose26 .nz-btn-primary:hover:not(:disabled) {
    background: var(--ios26-accent-strong);
    color: #fff;
    transform: translateY(-1px);
}

.nz-compose26 .nz-btn-primary:disabled {
    opacity: .45;
    box-shadow: none;
    cursor: not-allowed;
}

.nz-compose26 .nz-btn-soft {
    background: var(--ios26-fill);
    color: var(--ios26-text);
    border-color: var(--ios26-hairline);
}

.nz-compose26 .nz-btn-soft:hover {
    background: var(--ios26-fill-hover);
    color: var(--ios26-text);
}

.nz-compose26 .nz-btn-lg {
    min-height: 48px;
    padding: 10px 26px;
    font-size: 15px;
}

/* ------------------------------------------------------- sticky bar --- */

/* the desktop scroller (perfect-scrollbar's .main-scrollable-page) keeps a
   focused field above the bar too */
.main-scrollable-page:has(.nz-compose26) {
    scroll-padding-bottom: 120px;
}

.nz-compose26 .nz-compose-bar {
    position: sticky;
    bottom: 8px;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: var(--nz-gap);
    padding: 12px 14px 12px 20px;
    border: 1px solid var(--ios26-edge);
    border-radius: var(--ios26-radius-lg);
    background: var(--ios26-surface-strong);
    -webkit-backdrop-filter: var(--ios26-blur);
    backdrop-filter: var(--ios26-blur);
    box-shadow: var(--ios26-inset), var(--ios26-shadow-2);
}

/* the floating chat button (#js-init-chat-icon) lives in the bottom-right
   corner; leave it room instead of hiding the button under it */
body:has(.init-chat-icon) .nz-compose26 .nz-compose-bar {
    margin-right: 66px;
}

.nz-compose26 .nz-compose-bar-summary {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nz-compose26 .nz-compose-bar-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    font-size: 13px;
    color: var(--ios26-muted);
}

.nz-compose26 .nz-compose-bar-facts span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.nz-compose26 .nz-compose-bar-status {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ios26-text);
}

.nz-compose26 .nz-compose-bar-status i {
    color: var(--nz-warn);
}

.nz-compose26 .nz-compose-bar-status.is-ready,
.nz-compose26 .nz-compose-bar-status.is-ready i {
    color: var(--nz-ok);
}

body.color-1E202D .nz-compose26 .nz-compose-bar-status.is-ready,
body.color-1E202D .nz-compose26 .nz-compose-bar-status.is-ready i {
    color: #4cd964;
}

.nz-compose26 .nz-compose-bar .nz-btn-lg {
    flex: 0 0 auto;
}

/* ------------------------------------------------------------ preview --- */

.nz-compose26 .nz-preview-toggle {
    display: none;
}

.nz-compose26 .nz-preview-empty {
    padding: 34px 16px;
    text-align: center;
    color: var(--ios26-muted);
}

.nz-compose26 .nz-preview-empty i {
    font-size: 34px;
    margin-bottom: 10px;
    color: var(--ios26-accent-strong);
    opacity: .7;
}

.nz-compose26 .nz-preview-empty p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
}

.nz-compose26 .nz-preview-tabs {
    margin-bottom: 12px;
}

.nz-compose26 .nz-pv-tab i {
    color: var(--nz-brand, currentColor);
}

.nz-compose26 .nz-pv-tab.is-active i {
    color: #fff;
}

/* X and TikTok are black marks: on the dark theme they take the text colour */
body.color-1E202D .nz-compose26 .nz-pv-tab:not(.is-active)[data-platform="twitter"] i,
body.color-1E202D .nz-compose26 .nz-pv-tab:not(.is-active)[data-platform="tiktok"] i,
body.color-1E202D .nz-compose26 .nz-acc[data-platform="twitter"] .nz-acc-badge,
body.color-1E202D .nz-compose26 .nz-acc[data-platform="tiktok"] .nz-acc-badge {
    color: var(--ios26-text);
}

.nz-compose26 .nz-preview-stage {
    padding: 14px;
    border-radius: var(--ios26-radius);
    background: var(--ios26-fill);
}

/* the network mock-ups: light palettes here, each network's own dark
   palette in the block at the end of the file */
.nz-compose26 .nz-pv {
    --pv-bg: #ffffff;
    --pv-text: #050505;
    --pv-muted: #65676b;
    --pv-line: #e4e6eb;
    --pv-fill: #f0f2f5;
    border-radius: 12px;
    overflow: hidden;
    background: var(--pv-bg);
    color: var(--pv-text);
    font-size: 13.5px;
    line-height: 1.45;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .12), 0 6px 18px rgba(0, 0, 0, .06);
}

.nz-compose26 .nz-pv-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 12px 8px;
}

.nz-compose26 .nz-pv-avatar {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    object-fit: cover;
    background: var(--pv-fill);
    color: var(--pv-muted);
    font-size: 16px;
}

.nz-compose26 .nz-pv-avatar-square {
    border-radius: 4px;
}

.nz-compose26 .nz-pv-avatar-ring {
    box-shadow: 0 0 0 2px var(--pv-bg), 0 0 0 4px #E4405F;
}

.nz-compose26 .nz-pv-meta {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.nz-compose26 .nz-pv-meta b {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nz-compose26 .nz-pv-meta small {
    font-size: 12px;
    color: var(--pv-muted);
}

.nz-compose26 .nz-pv-dots {
    color: var(--pv-muted);
}

.nz-compose26 .nz-pv-body {
    padding: 0 12px 10px;
    word-break: break-word;
    white-space: normal;
}

.nz-compose26 .nz-pv-body:empty {
    display: none;
}

.nz-compose26 .nz-pv-actions {
    display: flex;
    justify-content: space-around;
    gap: 8px;
    padding: 8px 12px;
    border-top: 1px solid var(--pv-line);
    color: var(--pv-muted);
    font-size: 13px;
    font-weight: 600;
}

.nz-compose26 .nz-pv-actions span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nz-compose26 .nz-pv-actions-ig {
    justify-content: flex-start;
    gap: 16px;
    border-top: 0;
    font-size: 20px;
}

.nz-compose26 .nz-pv-right {
    margin-left: auto;
}

.nz-compose26 .nz-pv-media {
    position: relative;
    background: var(--pv-fill);
}

.nz-compose26 .nz-pv-media-rounded {
    margin: 0 12px 10px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--pv-line);
}

.nz-compose26 .nz-pv-grid {
    display: grid;
    gap: 2px;
}

.nz-compose26 .nz-pv-grid-1 { grid-template-columns: 1fr; }
.nz-compose26 .nz-pv-grid-2 { grid-template-columns: 1fr 1fr; }
.nz-compose26 .nz-pv-grid-3 { grid-template-columns: 1fr 1fr; }
.nz-compose26 .nz-pv-grid-3 .nz-pv-cell:first-child { grid-column: 1 / -1; }
.nz-compose26 .nz-pv-grid-4 { grid-template-columns: 1fr 1fr; }

.nz-compose26 .nz-pv-cell {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.nz-compose26 .nz-pv-grid-1 .nz-pv-cell {
    aspect-ratio: auto;
    max-height: 320px;
}

.nz-compose26 .nz-pv-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.nz-compose26 .nz-pv-more {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .45);
    color: #fff;
    font-size: 22px;
    font-weight: 700;
}

.nz-compose26 .nz-pv-square {
    aspect-ratio: 1 / 1;
    background: var(--pv-fill);
    overflow: hidden;
}

.nz-compose26 .nz-pv-square-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pv-muted);
    font-size: 40px;
}

/* TikTok: a phone, the caption over the video */
.nz-compose26 .nz-pv-tt {
    background: #000;
}

.nz-compose26 .nz-pv-phone {
    position: relative;
    aspect-ratio: 9 / 16;
    max-height: 460px;
    margin: 0 auto;
    background: #000;
    color: #fff;
    overflow: hidden;
}

.nz-compose26 .nz-pv-phone-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nz-compose26 .nz-pv-phone-side {
    position: absolute;
    right: 10px;
    bottom: 80px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    font-size: 11px;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .6);
}

.nz-compose26 .nz-pv-phone-side span {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.nz-compose26 .nz-pv-phone-side i {
    font-size: 22px;
}

.nz-compose26 .nz-pv-phone-bottom {
    position: absolute;
    left: 12px;
    right: 56px;
    bottom: 16px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .7);
}

.nz-compose26 .nz-pv-phone-bottom b {
    display: block;
    font-size: 14px;
    margin-bottom: 4px;
}

.nz-compose26 .nz-pv-phone-bottom p {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
}

/* YouTube: thumbnail + title row */
.nz-compose26 .nz-pv-yt-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--pv-fill);
    overflow: hidden;
}

.nz-compose26 .nz-pv-yt-empty {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pv-muted);
    font-size: 40px;
}

.nz-compose26 .nz-pv-yt-play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 54px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 0, 0, .92);
    color: #fff;
    font-size: 16px;
}

/* Google Business Profile: the "Updates" card of a Search / Maps listing */
.nz-compose26 .nz-pv-gb-photo {
    aspect-ratio: 4 / 3;
    background: var(--pv-fill);
    overflow: hidden;
}

.nz-compose26 .nz-pv-gb-photo .nz-pv-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.nz-compose26 .nz-pv-actions-gb {
    justify-content: flex-start;
    gap: 16px;
}

.nz-compose26 .nz-pv-gb-cta {
    color: #1a73e8;
    font-weight: 600;
}

/* dark palettes, one per network */
body.color-1E202D .nz-compose26 .nz-pv-gb {
    --pv-bg: #202124;
    --pv-text: #e8eaed;
    --pv-muted: #9aa0a6;
    --pv-line: #3c4043;
    --pv-fill: #303134;
}

body.color-1E202D .nz-compose26 .nz-pv-gb-cta {
    color: #8ab4f8;
}

body.color-1E202D .nz-compose26 .nz-pv-fb {
    --pv-bg: #242526;
    --pv-text: #e4e6eb;
    --pv-muted: #b0b3b8;
    --pv-line: #3e4042;
    --pv-fill: #3a3b3c;
}

body.color-1E202D .nz-compose26 .nz-pv-x {
    --pv-bg: #000000;
    --pv-text: #e7e9ea;
    --pv-muted: #71767b;
    --pv-line: #2f3336;
    --pv-fill: #16181c;
}

body.color-1E202D .nz-compose26 .nz-pv-ig {
    --pv-bg: #000000;
    --pv-text: #f5f5f5;
    --pv-muted: #a8a8a8;
    --pv-line: #262626;
    --pv-fill: #121212;
}

body.color-1E202D .nz-compose26 .nz-pv-li {
    --pv-bg: #1b1f23;
    --pv-text: #e9e5df;
    --pv-muted: #b0b0b0;
    --pv-line: #38434f;
    --pv-fill: #293138;
}

body.color-1E202D .nz-compose26 .nz-pv-yt {
    --pv-bg: #0f0f0f;
    --pv-text: #f1f1f1;
    --pv-muted: #aaaaaa;
    --pv-line: #272727;
    --pv-fill: #212121;
}

/* ---------------------------------------------------------- responsive --- */

@media (max-width: 1199px) {
    .nz-compose26 .nz-compose-grid {
        grid-template-columns: minmax(0, 1fr) 320px;
    }
}

@media (max-width: 991px) {
    .nz-compose26 .nz-compose-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .nz-compose26 .nz-compose-side {
        position: static;
    }

    /* the preview folds under a toggle so the form stays short */
    .nz-compose26 .nz-preview-toggle {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
        min-height: 48px;
        padding: 10px 18px;
        border: 1px solid var(--ios26-edge);
        border-radius: var(--ios26-radius-lg);
        background: var(--ios26-surface);
        -webkit-backdrop-filter: var(--ios26-blur-sm);
        backdrop-filter: var(--ios26-blur-sm);
        box-shadow: var(--ios26-inset), var(--ios26-shadow-1);
        color: var(--ios26-text);
        font-size: 15px;
        font-weight: 600;
        cursor: pointer;
        text-align: left;
    }

    .nz-compose26 .nz-preview-toggle > i:first-child {
        color: var(--ios26-accent-strong);
    }

    .nz-compose26 .nz-preview-toggle-chev {
        margin-left: auto;
        color: var(--ios26-muted);
        transition: transform .3s var(--ios26-spring);
    }

    .nz-compose26 .nz-preview-toggle.is-open .nz-preview-toggle-chev {
        transform: rotate(180deg);
    }

    .nz-compose26 .nz-preview {
        display: none;
        margin-top: var(--nz-gap);
    }

    .nz-compose26 .nz-preview.is-open {
        display: block;
    }
}

@media (max-width: 799px) {
    .nz-compose26 .nz-compose-hero {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 0 2px 14px;
    }

    .nz-compose26 .nz-compose-hero h1 {
        font-size: 26px;
    }

    .nz-compose26 .nz-compose-back {
        margin-left: 0;
    }

    .nz-compose26 .nz-step-head {
        padding: 16px 16px 10px;
        flex-wrap: wrap;
    }

    .nz-compose26 .nz-step-tools {
        flex-basis: 100%;
        margin-left: 44px;
        padding-top: 0;
    }

    .nz-compose26 .nz-step-body {
        padding: 4px 16px 16px;
    }

    .nz-compose26 .nz-acc-list {
        grid-template-columns: 1fr;
    }

    .nz-compose26 .nz-seg {
        display: flex;
    }

    .nz-compose26 .nz-seg-item {
        flex: 1 1 0;
        justify-content: center;
        padding: 6px 10px;
    }

    .nz-compose26 .nz-datetime {
        max-width: none;
    }

    /* `position: sticky` sticks to the nearest scrollport. On a phone the
       WINDOW scrolls, but .page-container is overflow-y:auto and so still
       counts as one — a scrollport that never scrolls, which traps the bar
       and lets it ride away with the content (measured: at scrollY 600 the
       bar sat at 1233px, not at the viewport bottom). Release it, as
       dashboard-ios26.css does. */
    body:has(.nz-compose26) .page-container {
        overflow: visible !important;
    }

    /* whatever the browser scrolls into view (a focused field, a tapped
       control) lands above the sticky bar and the tab bar, not under them */
    html:has(.nz-compose26) {
        scroll-padding-bottom: 220px;
    }

    body:has(.init-chat-icon) .nz-compose26 .nz-compose-bar {
        margin-right: 0;
    }

    /* the bar sits above the floating mobile tab bar (bottombar-ios26).
       A sticky element with `bottom: 76px` is pulled 76px up from its
       natural place once the page is scrolled to the end, so it would
       cover the last 76px of content (the preview toggle): the margin
       above it is that same 76px, a gap the bar rides into. */
    .nz-compose26 .nz-compose-bar {
        bottom: calc(76px + env(safe-area-inset-bottom, 0px));
        margin-top: calc(76px + var(--nz-gap) + env(safe-area-inset-bottom, 0px));
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 10px 12px;
    }

    /* the facts row is desktop detail; the status line says what matters */
    .nz-compose26 .nz-compose-bar-facts {
        display: none;
    }

    .nz-compose26 .nz-compose-bar .nz-btn-lg {
        width: 100%;
    }

    .nz-compose26 .nz-compose-bar-status {
        font-size: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nz-compose26 .nz-sheet {
        animation: none;
    }

    .nz-compose26 .nz-acc,
    .nz-compose26 .nz-chip,
    .nz-compose26 .nz-btn,
    .nz-compose26 .nz-acc-check {
        transition: none;
    }
}
