/* =============================================================================
   Staircase text - the sentence, its preview and the copy button in one
   column, the shape settings beside them (under them on a phone).
   Paper ground: white writing sheets, ink focus, as in the breaker and templates.
   ============================================================================= */
.sk__work{
  grid-template-columns:minmax(0,1fr) 392px;
  grid-template-areas:"in panel" "view panel" "out panel";
  grid-template-rows:auto auto 1fr;
  row-gap:22px;
}
.sk__in{grid-area:in;display:flex;flex-direction:column;gap:10px;min-width:0}
.sk__in > .label{display:block}
.sk__panel{grid-area:panel}
.sk__view{grid-area:view;display:flex;flex-direction:column;gap:10px;min-width:0}
.sk__out{grid-area:out;display:flex;flex-direction:column;gap:10px;min-width:0}

/* ---- writing sheets ---- */
.sk__area{
  display:block;width:100%;resize:vertical;outline:none;
  background:#fff;color:var(--ink);caret-color:var(--ink);
  border:1px solid rgba(10,10,10,.22);border-radius:var(--r-md);
  transition:border-color .2s var(--ease),box-shadow .2s var(--ease);
}
.sk__area:focus{border-color:var(--ink);box-shadow:0 0 0 3px rgba(204,211,118,.55)}
.sk__area:focus-visible{outline:none}
.sk__area::placeholder{color:rgba(10,10,10,.52);font-style:italic}
#skText{
  min-height:96px;padding:16px 20px;
  font-family:'Inter Tight',system-ui,sans-serif;font-size:18px;line-height:1.5;letter-spacing:-.005em;
}

/* ---- settings ---- */
/* The shared paper rule sets background:#fff, which switches the chevron back
   to repeat; pin it once more, in ink so it reads on white. */
.sk .field select,.sk .field select:focus{
  width:100%;font-size:15px;padding-left:14px;
  background-color:#fff;background-repeat:no-repeat;background-position:right 16px center;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1L6 6L11 1' stroke='%230a0a0a' stroke-width='1.5' fill='none'/></svg>")!important;
}
.sk__charHint{font-size:13px;line-height:1.45;color:var(--fg-2)}

/* ---- preview: a neutral post card in a grey feed ---- */
.sk__viewHead{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:22px}
.sk__tag{
  padding:3px 9px;border-radius:999px;border:1px solid rgba(10,10,10,.24);
  font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--fg-2);
}
.sk__feed{padding:18px;border-radius:var(--r-md);background:var(--paper-2)}
.sk__card{
  max-width:552px;margin:0 auto;padding:14px 16px 18px;
  border:1px solid rgba(10,10,10,.1);border-radius:10px;background:#fff;
}
.sk__who{display:flex;align-items:center;gap:10px;margin-bottom:12px}
.sk__avatar{flex:none;width:44px;height:44px;border-radius:50%;background:#d6d6cf}
.sk__id{display:flex;flex-direction:column;gap:1px;min-width:0}
.sk__name{font-size:14px;font-weight:600;line-height:1.3;color:var(--ink)}
.sk__time{font-size:12px;line-height:1.3;color:rgba(10,10,10,.62)}
/* The feed's own system font, so the indents look as wide as they will. */
.sk__post{
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  font-size:15px;line-height:1.45;letter-spacing:0;color:rgba(10,10,10,.9);
  white-space:pre-wrap;overflow-wrap:anywhere;
}
.sk__post.is-sample{color:rgba(10,10,10,.6)}

/* ---- copy ---- */
.sk__status{text-align:left}
.sk__status:empty{min-height:0;margin-top:-10px}   /* stays in the tree for the live region */
.sk__panel .counter{margin-top:0}

@media (max-width:980px){
  .sk__work{grid-template-columns:1fr;grid-template-areas:"in" "view" "out" "panel";grid-template-rows:auto}
}
@media (max-width:560px){
  #skText{padding:14px 16px;font-size:17px}
  .sk .field select{font-size:16px}
  .sk__feed{padding:10px;margin:0 -6px}
  .sk__card{padding:12px 14px 16px}
}
