/* T168/T174 «تجربهٔ تازه»: the one-screen composer sheet (explore-composer.js) and the full-width photo of an Explore post.
   Colours come from the current theme (light/dark) through the shared --n-* variables; no inline style anywhere (CSP style-src 'self'). */

/* the photo of a post: edge to edge inside the card (its padding is 16px), in a box of its own aspect ratio (width/height attributes) */
html[data-theme] :is(#app,.f-layer) .f-post__photo{margin:0 -16px;padding:0;overflow:hidden;background:var(--n-surface2);touch-action:manipulation;-webkit-tap-highlight-color:transparent;-webkit-user-select:none;user-select:none}
html[data-theme] :is(#app,.f-layer) .f-post__photo img{display:block;width:100%;height:auto;max-height:min(80vh,760px);object-fit:cover;-webkit-touch-callout:none}

/* T174: ONE screen (composerMarkup); the sheet reuses .f-post-sheet / .f-post-sheet__panel (scrim, rounded top, safe area).
   .f-post-sheet makes every raised button full width (final-ui.css, !important); here only «افزودن عکس» and «انتشار» fill their row. */
.xc-panel{display:block}
.xc-body{display:flex;flex-direction:column;gap:12px;padding-bottom:4px}
.xc-sr{position:absolute!important;width:1px!important;height:1px!important;margin:-1px!important;padding:0!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;white-space:nowrap!important;border:0!important}
.xc-head{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:44px}
.xc-panel .xc-title{flex:1;margin:0;color:var(--n-ink);font-size:17px;font-weight:900;line-height:1.5;text-align:center}
.xc-head__gap{min-width:44px}
html[data-theme] .xc-sheet .xc-close{width:44px!important;min-width:44px;height:44px;min-height:44px!important;padding:0;border:0;border-radius:999px;background:transparent;color:var(--n-muted);font:inherit;font-size:20px!important;font-weight:700;line-height:1;cursor:pointer}
.xc-who{display:flex;align-items:center;gap:10px;color:var(--n-ink);font-size:15px;font-weight:800}
.xc-field{display:grid;gap:6px}
.xc-sheet textarea{box-sizing:border-box;width:100%;min-height:132px;padding:14px;border:1px solid var(--n-line);border-radius:18px;background:var(--n-surface);color:var(--n-ink);font:inherit;font-size:17px;line-height:1.9;resize:vertical}
.xc-sheet textarea::placeholder{color:var(--n-muted);opacity:1}
.xc-sheet textarea:focus-visible,.xc-sheet button:focus-visible,.xc-tick input:focus-visible{outline:3px solid var(--n-focus,var(--n-gold));outline-offset:2px}

/* «افزودن عکس» (gallery) with the camera beside it, or the chosen photo as a thumbnail with ✕ */
.xc-addrow{display:flex;gap:10px}
html[data-theme] .xc-sheet .xc-add{flex:1;display:flex;align-items:center;justify-content:center;gap:8px;width:auto!important;min-height:52px!important;padding:8px 14px;border:1.5px dashed var(--n-line);border-radius:16px;background:var(--n-surface);color:var(--n-ink);font:inherit;font-size:15px!important;font-weight:800;cursor:pointer}
html[data-theme] .xc-sheet .xc-cam{flex:none;display:flex;align-items:center;justify-content:center;width:56px!important;min-height:52px!important;padding:0;border:1.5px dashed var(--n-line);border-radius:16px;background:var(--n-surface);color:var(--n-ink);cursor:pointer}
.xc-add__icon{width:26px;height:26px;flex:none;color:var(--n-gold-d,var(--n-gold))}
.xc-thumb{position:relative;align-self:flex-start;margin:0;max-width:100%;border-radius:16px;overflow:hidden;background:var(--n-surface2)}
.xc-thumb img{display:block;width:auto;max-width:100%;height:auto;max-height:200px;object-fit:contain}
html[data-theme] .xc-sheet .xc-thumb__remove{position:absolute;top:6px;inset-inline-end:6px;display:flex;align-items:center;justify-content:center;width:44px!important;min-width:44px;height:44px;min-height:44px!important;padding:0;border:0;border-radius:999px;background:rgba(0,0,0,.62);color:#fff;font:inherit;font-size:18px!important;font-weight:900;line-height:1;cursor:pointer}
.xc-hint{margin:0;color:var(--n-muted);font-size:12.5px;line-height:1.8}

/* the single approved tick, unticked; required only for «انتشار» */
.xc-tick{display:flex;align-items:flex-start;gap:10px;padding:12px;border:1.5px solid var(--n-gold,var(--n-line));border-radius:16px;background:var(--n-surface2);color:var(--n-ink);font-size:14.5px;font-weight:700;line-height:1.8;cursor:pointer}
.xc-tick input{flex:none;width:22px;height:22px;margin:3px 0 0;accent-color:var(--n-gold-d,var(--n-gold))}
html[data-theme] .xc-sheet .xc-publish{min-height:54px!important;border-radius:999px;font:inherit;font-size:17px!important;font-weight:900;cursor:pointer}
/* «نوع دیگر»: a small link at the bottom; the four special kinds open in a row on the same screen */
html[data-theme] .xc-sheet .xc-more{align-self:center;width:auto!important;min-height:44px!important;padding:0 12px;border:0;background:transparent;color:var(--n-muted);font:inherit;font-size:13.5px!important;font-weight:700;text-decoration:underline;text-underline-offset:4px;cursor:pointer}
.xc-others{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}
.xc-others[hidden]{display:none}
html[data-theme] .xc-sheet .xc-other{width:auto!important;min-height:44px!important;padding:6px 14px;border:1px solid var(--n-line);border-radius:999px;background:var(--n-surface2);color:var(--n-ink);font:inherit;font-size:13px!important;font-weight:700;cursor:pointer}
.xc-sheet button[disabled]{opacity:.6;cursor:progress}
.xc-status{margin:0;color:var(--n-muted);font-size:13px}
.xc-status:empty,.xc-error:empty{display:none}
.xc-error{margin:0;color:var(--n-danger,#b42318);font-size:14px;font-weight:800}
