/* Galley's workspace chrome. Native .xt / .li-card previews keep their own platform styles. */
.workspace {
  --ink: #252722; --muted: #74766e; --line: #e6e7df; --chrome: #f7f7f2;
  --accent: #385742; --accent-soft: #e9eee6; --ok: #356344; --okbg: #e9f2e9;
  font: 13px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--chrome);
}
:where(.workspace) :where(button, input) { font: inherit; }
.workspace button { transition: background 120ms, border-color 120ms; }
.workspace button:focus-visible, .workspace a:focus-visible, .workspace input:focus-visible, .workspace summary:focus-visible { outline: 2px solid #628468; outline-offset: 3px; }
.workspace [hidden] { display: none !important; }
.skip-link { position: fixed; top: -80px; left: 12px; z-index: 100; background: #fff; color: var(--ink); padding: 12px; }
.skip-link:focus { top: 8px; }
.workspace .top { height: 72px; padding: 0 28px; gap: 24px; background: #fff; }
/* One brand mark everywhere: the F-flag and the serif wordmark (the same as the sign-up pages and Billing). */
@font-face { font-family: "Newsreader"; src: url(/door/newsreader.woff2) format("woff2"); font-weight: 400 500; font-style: normal; font-display: swap; }
.workspace .brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 15px; height: 20px; color: var(--ink); margin-top: -1px; }
.brand-mark svg { width: 15px; height: 20px; fill: currentColor; display: block; }
.brand-name { font: 500 22px/1 "Newsreader", "Iowan Old Style", Georgia, serif; letter-spacing: -0.01em; font-variation-settings: "opsz" 24; }
.brand-divider { width: 1px; height: 22px; background: var(--line); margin: 0 6px 0 14px; }
.workspace .brand .sub { font-size: 12px; letter-spacing: 0; margin: 0; }
.top-right { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.workspace .save { font-size: 11px; min-width: 0; }
.workspace .save:not(.err)::before { content: ""; display: inline-block; width: 6px; height: 6px; background: #709475; border-radius: 50%; margin-right: 6px; }
.workspace .save.err { max-width: 320px; }
.workspace .navlink { color: var(--ink); font-size: 12px; }
.workspace .layout { grid-template-columns: 264px minmax(0, 1fr) 326px; }
.sidebar { display: flex; flex-direction: column; min-height: 0; min-width: 0; background: #fff; border-right: 1px solid var(--line); }
.sidebar-head { padding: 28px 20px 20px; }
.eyebrow { font-size: 9px; font-weight: 650; letter-spacing: 1.6px; color: var(--muted); }
.sidebar h1 { font-size: 26px; line-height: 1.2; letter-spacing: -0.8px; font-weight: 600; margin: 8px 0 20px; display: flex; align-items: center; gap: 9px; }
#postCount { font-size: 11px; letter-spacing: 0; font-weight: 500; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; }
.workspace .btn { min-height: 34px; font-size: 12px; border: 1px solid #dddfd6; border-radius: 7px; padding: 7px 12px; font-weight: 550; background: #fff; }
.workspace .btn:hover { background: #f0f2eb; border-color: #cbd1c5; }
.workspace .btn.primary, .workspace .btn.approve { background: var(--accent); border-color: var(--accent); color: #fff; }
.workspace .btn.primary:hover, .workspace .btn.approve:hover { background: #2b4634; }
.workspace .btn.small { padding: 3px 8px; min-height: 28px; font-size: 11px; }
.workspace .btn.deny { background: transparent; color: var(--muted); border-color: var(--line); }
.new-post { display: flex; align-items: center; gap: 8px; width: 100%; justify-content: center; }
.new-post > span { font-size: 20px; line-height: 18px; font-weight: 400; }
.new-post kbd { margin-left: auto; opacity: .65; font-size: 10px; line-height: 18px; border: 1px solid #ffffff50; width: 20px; border-radius: 4px; }
.library-tools { padding: 0 14px 10px; }
.search-box { display: flex; align-items: center; gap: 8px; padding: 6px 10px; background: #f7f8f4; border: 1px solid var(--line); border-radius: 7px; }
.search-box span { font-size: 22px; line-height: 20px; color: var(--muted); }
.search-box input { width: 100%; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--ink); font-size: 12px; }
.search-box:focus-within { outline: 2px solid #628468; outline-offset: 2px; }
.filter-tabs { display: flex; gap: 3px; margin-top: 12px; }
.filter-tabs button { flex: 1; padding: 6px 4px; font-size: 10px; border: 0; background: transparent; border-radius: 6px; color: var(--muted); cursor: pointer; white-space: nowrap; }
.filter-tabs button.on { background: var(--accent-soft); color: var(--accent); font-weight: 650; }
.workspace .list { flex: 1; border: 0; padding: 0 10px 12px; }
.workspace .item { border: 1px solid transparent; border-radius: 9px; padding: 12px; margin-bottom: 4px; }
.workspace .item.sel { background: #f0f3eb; border-color: #dce4d6; box-shadow: none; }
.workspace .item:hover:not(.sel) { background: #f7f8f4; }
.workspace .item .row1 { margin-bottom: 7px; gap: 6px; }
.platform-mark { display: inline-grid; place-items: center; width: 19px; height: 19px; border-radius: 4px; font-weight: 650; font-size: 11px; color: #fff; background: #171917; flex: none; }
.platform-mark.linkedin { background: #0a66c2; font-family: Arial, sans-serif; }
.workspace .item .plat { font-size: 10px; }
.workspace .pill { font-size: 9px; padding: 2px 6px; font-weight: 550; }
.workspace .item .ttl { font-size: 12px; line-height: 1.45; font-weight: 600; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.item-excerpt { margin-top: 4px; color: var(--muted); font-size: 11px; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.workspace .item .when { font-size: 10px; margin-top: 8px; }
.workspace .arch-toggle { border: 0; border-radius: 6px; background: transparent; font-size: 11px; margin-top: 12px; }
.sidebar-foot { border-top: 1px solid var(--line); padding: 16px 20px; }
.workspace .conn { flex-direction: column; align-items: flex-start; gap: 6px; margin-top: 10px; }
.workspace .conn .pill { background: none; padding: 0; font-size: 10px; }
.sidebar-foot p { font-size: 10px; color: var(--muted); margin: 12px 0 0; }
.workspace .stage { background: var(--chrome); display: flex; flex-direction: column; }
.workspace .stage:focus { outline: 0; }
.workspace .stage-bar { background: #f7f7f2f5; min-height: 70px; padding: 16px 28px; justify-content: space-between; border: 0; flex-wrap: wrap; gap: 12px; }
.stage-label { font-size: 12px; display: flex; align-items: center; gap: 8px; }
.stage-label small { color: var(--muted); font-weight: 400; }
.workspace .stage-bar .seg { border: 1px solid var(--line); padding: 3px; border-radius: 8px; background: #eeeFE8; }
.workspace .stage-bar .seg button { border-radius: 5px; padding: 5px 12px; background: none; font-size: 11px; font-weight: 550; }
.workspace .stage-bar .seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px #19200e14; }
.preview-heading { padding: 18px 28px 24px; text-align: center; }
.preview-heading h2 { font: 500 28px/1.2 Georgia, "Times New Roman", serif; letter-spacing: -.7px; margin: 0 0 8px; }
.preview-heading p { color: var(--muted); font-size: 12px; margin: 0; }
.preview-canvas { flex: 1; padding: 8px 24px 32px; min-width: 0; overflow-x: auto; }
.workspace .x-wrap { width: 600px; min-height: 0; border: 1px solid rgb(47, 51, 54); border-radius: 12px; overflow: hidden; box-shadow: 0 8px 24px #1d241611; }
.workspace .x-wrap .xt-cell:last-child { border-bottom: 0; }
.workspace .li-wrap { padding: 0; }
.workspace .li-wrap > .li-card { box-shadow: 0 8px 24px #1d241609; }
.preview-footer { text-align: center; margin: 20px auto 0; max-width: 540px; font-size: 10px; color: var(--muted); line-height: 1.6; }
.preview-footer .btn { margin-bottom: 12px; }
.preview-controls { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.preview-controls button { padding: 4px 10px; border: 1px solid var(--line); background: transparent; color: var(--muted); border-radius: 999px; cursor: pointer; font-size: 10px; }
.preview-controls button.on { background: #e8ede2; color: var(--accent); border-color: #cbd7c5; }
.workspace .panel { padding: 28px 22px; gap: 22px; border-left: 1px solid var(--line); }
.workspace .panel h2 { font-size: 14px; font-weight: 600; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; }
.workspace .panel .meta { font-size: 11px; line-height: 1.6; }
.draft-title { display: block; width: 100%; font-size: 16px; font-weight: 600; line-height: 1.4; border: 0; padding: 8px 0; color: var(--ink); background: transparent; text-overflow: ellipsis; }
.field-label { display: block; font-size: 10px; color: var(--muted); margin-top: 16px; }
.workspace .panel .label { font-size: 11px; margin-bottom: 9px; }
.workspace .decision { padding: 12px; font-size: 11px; line-height: 1.6; }
.workspace .decision b { font-size: 12px; }
.workspace .diffnote { font-size: 10px; line-height: 1.6; }
.workspace .when-row { align-items: flex-start; flex-direction: column; gap: 5px; margin-bottom: 10px; }
.workspace .when-input { width: 100%; font-size: 12px; padding: 8px; }
.workspace .when-label, .workspace .when-row .hint { font-size: 10px; color: var(--muted); font-weight: 400; }
.workspace .picks { gap: 5px; }
.workspace .picks > .hint { flex-basis: 100%; font-size: 10px; color: var(--muted); }
.workspace .chip { font-size: 10px; padding: 4px 8px; }
.workspace .btns { gap: 6px; }
.workspace .btns .approve { flex-basis: 100%; }
.workspace input.note { font-size: 11px; margin-top: 8px; padding: 8px; }
.workspace .icon-btn { width: 28px; height: 28px; flex: none; }
.workspace .mrow { flex-wrap: wrap; gap: 4px; }
.workspace .mrow img, .workspace .mrow video { width: 42px; height: 36px; margin-right: 4px; }
.workspace .mrow .mname { font-size: 10px; }
.workspace .mrow .mdim { font-size: 9px; }
.workspace .mrow .icon-btn { width: 23px; height: 26px; font-size: 11px; }
.workspace .history, .workspace .box { font-size: 11px; }
.panel-section { border-top: 1px solid var(--line); padding-top: 16px; }
.panel-section > summary { cursor: pointer; font-size: 11px; font-weight: 600; color: var(--muted); list-style-position: outside; margin-left: 12px; }
.panel-section > .section-body { margin-top: 12px; }
.workspace .mentions:empty { display: none; }
.workspace .count { font-size: 11px; }
.workspace .list-empty { border: 0; padding: 24px 12px; line-height: 1.7; }
.empty-state { margin: auto; padding: 40px; text-align: center; max-width: 470px; }
.empty-state .empty-mark { color: var(--ink); margin-bottom: 28px; }
.empty-state .empty-mark svg { width: 30px; height: 40px; fill: currentColor; display: block; margin: 0 auto; }
.empty-state h2 { font: 32px/1.2 Georgia, serif; margin: 0 0 14px; }
.empty-state p { color: var(--muted); line-height: 1.8; margin: 0 0 24px; }
.empty-panel { color: var(--muted); font-size: 12px; line-height: 1.8; }
/* Only Compose changes the post body. Feed preview continues to use the native renderer untouched. */
.inline-editor { display: block; box-sizing: border-box; width: 100%; min-height: 20px; padding: 8px 0; margin: 0; border: 0; border-radius: 0; resize: none; outline: none; background: transparent; color: inherit; font: inherit; line-height: 1.5; white-space: pre-wrap; overflow-wrap: break-word; overflow: hidden; caret-color: #1d9bf0; }
/* Compose types in the feed's own text metrics (.xt-text, .li-text), so lines wrap exactly where the posted version will. */
.xt .inline-editor { font-family: TwitterChirp, -apple-system, "system-ui", "Segoe UI", Roboto, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 20px; padding: 0; color: rgb(231, 233, 234); }
.xt .inline-editor::placeholder { color: #71767b; opacity: 1; }
.li-editor-wrap { padding: 4px 12px 8px 12px; }
.li-card .inline-editor { font-size: 14px; line-height: 20.0004px; padding: 0; color: rgba(0, 0, 0, 0.9); word-break: break-word; overflow-wrap: anywhere; }
.li-card .inline-editor::placeholder { color: #777; opacity: 1; }
.inline-editor:focus-visible { outline: none; }
.composing:focus-within { outline: 2px solid #83a7bb; outline-offset: 3px; }
.compose-tools { display: flex; align-items: center; gap: 8px; margin-top: 12px; border-top: 1px solid #2f3336; padding-top: 12px; min-height: 40px; }
.compose-tools button { border: 0; background: transparent; color: #1d9bf0; border-radius: 999px; padding: 5px 9px; cursor: pointer; font-size: 12px; font-weight: 600; }
.compose-tools button:hover { background: #1d9bf020; }
.compose-tools .count { margin-left: auto; color: #8a9298; font: 12px/1.4 -apple-system, sans-serif; }
.compose-tools .count.over { color: #f67e8a; }
.compose-tools .count.near { color: #d8b25e; }
.li-card .compose-tools { border-top: 1px solid #e6e6e6; margin: 0; padding: 12px; }
.li-card .compose-tools button { color: #0a66c2; }
.li-card .compose-tools .count.over { color: #b42318; }
.thread-add { display: block; width: 100%; border: 0; background: #080c0e; color: #1d9bf0; padding: 16px; font: 600 13px/1.4 -apple-system, sans-serif; text-align: center; cursor: pointer; }
.thread-add:hover { background: #0c151b; }
.dragover { outline: 3px dashed #79ad8c !important; outline-offset: 6px; }
.workspace .toast { font-size: 12px; padding: 12px 20px; box-shadow: 0 4px 18px #0002; max-width: min(520px, 90vw); text-align: center; }
.new-dialog { border: 1px solid var(--line); border-radius: 18px; padding: 28px; width: min(540px, calc(100vw - 32px)); color: var(--ink); box-shadow: 0 24px 90px #18231424; }
.new-dialog::backdrop, .workspace .picker::backdrop { background: #1a241c55; backdrop-filter: blur(4px); }
.dialog-heading { display: flex; justify-content: space-between; align-items: center; }
.dialog-heading .icon-btn { border: 0; background: transparent; font-size: 22px; }
.new-dialog h2 { font: 30px/1.2 Georgia, serif; letter-spacing: -.5px; margin: 22px 0 12px; }
.new-dialog p { color: var(--muted); font-size: 13px; line-height: 1.7; }
.platform-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 24px 0; }
.platform-choice { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 20px; background: #fafbf7; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; color: var(--ink); text-align: left; }
.platform-choice:hover { background: var(--accent-soft); border-color: #a6b69f; }
.platform-choice:disabled { opacity: .45; cursor: not-allowed; }
.platform-choice .platform-mark { width: 30px; height: 30px; font-size: 19px; margin-bottom: 6px; }
.platform-choice b { font-size: 14px; }
.platform-choice small { font-size: 10px; color: var(--muted); }
.dialog-foot { border-top: 1px solid var(--line); padding-top: 18px; color: var(--muted); font-size: 11px; }
@media (min-width: 1800px) { .workspace .layout { grid-template-columns: 288px minmax(0, 1fr) 356px; } .workspace .panel { padding: 32px 28px; } .preview-heading { padding-top: 40px; padding-bottom: 34px; } }
@media (max-width: 1250px) {
  .workspace { height: auto; min-height: 100%; }
  .workspace .layout { grid-template-columns: 240px minmax(0, 1fr); min-height: calc(100vh - 72px); align-items: start; }
  .sidebar { grid-column: 1; grid-row: 1 / 3; position: sticky; top: 0; height: calc(100vh - 72px); }
  .workspace .stage { grid-column: 2; min-height: 540px; overflow: visible; }
  .workspace .panel { grid-column: 2; border-left: 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 24px; padding: 24px; }
  .preview-canvas { padding-left: 16px; padding-right: 16px; }
}
@media (max-width: 900px) {
  .workspace .layout { grid-template-columns: 200px minmax(0, 1fr); }
  .workspace .top { padding: 0 20px; }
  .workspace .brand .sub, .brand-divider { display: none; }
  .sidebar-head { padding: 24px 14px 16px; }
  .workspace .stage-bar { padding: 16px; }
  .workspace .panel { grid-template-columns: 1fr; }
  .workspace .item .plat { display: none; }
  .workspace .item .pill { margin-left: 0; }
  .workspace .item .row1 { justify-content: space-between; }
}
@media (max-width: 650px) {
  .workspace .top { height: 60px; padding: 0 16px; gap: 12px; }
  .brand-name { font-size: 21px; }
  .top-right { gap: 12px; }
  .workspace .save { font-size: 9px; max-width: 125px; }
  .workspace .layout { display: flex; flex-direction: column; min-height: 0; }
  .sidebar { position: static; height: auto; width: 100%; border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar-head { padding: 16px; display: flex; align-items: center; gap: 12px; }
  .sidebar-head .eyebrow, .sidebar-foot, .new-post kbd { display: none; }
  .sidebar h1 { margin: 0; font-size: 20px; }
  .workspace .new-post { width: auto; margin-left: auto; }
  .library-tools { padding: 0 16px 10px; display: flex; gap: 8px; }
  .search-box { min-width: 0; flex: 1; }
  .filter-tabs { margin: 0; }
  .filter-tabs button { padding: 6px; font-size: 10px; }
  .workspace .list { display: flex; gap: 6px; overflow-x: auto; flex: none; max-height: 130px; padding: 0 16px 12px; }
  .workspace .item { flex: 0 0 200px; padding: 10px; margin: 0; }
  .workspace .item .ttl { -webkit-line-clamp: 1; }
  .item-excerpt { display: none; }
  .workspace .arch-toggle { flex: 0 0 100px; margin: 0; }
  .workspace .stage { width: 100%; min-height: 420px; }
  .composing .xt-head { height: auto; min-height: 40px; }
  .composing .xt-who { height: auto; flex-wrap: wrap; }
  .composing .xt-namewrap { flex: none; max-width: 100%; }
  .composing .xt-meta { margin-left: 0; flex-basis: 100%; font-size: 12px; }
  .composing .xt-headright { gap: 4px; }
  .composing .xt-grok { display: none; }
  .workspace .stage-bar { min-height: 60px; padding: 12px 16px; }
  .stage-label small { display: none; }
  .preview-heading { padding: 8px 20px 20px; }
  .preview-heading h2 { font-size: 24px; }
  .preview-heading p { font-size: 11px; }
  .workspace .panel { display: flex; width: 100%; padding: 24px; }
  .preview-canvas { padding: 0 12px 24px; }
  .platform-choices { gap: 8px; }
  .platform-choice { padding: 16px; }
  .workspace .picker-head { flex-wrap: wrap; }
  .workspace .picker-hint { flex-basis: 100%; order: 2; }
}
/* Compose may reflow to the desk width; a desktop feed preview is deliberately never scaled down. */
.preview-canvas.edit-mode .x-wrap, .preview-canvas.edit-mode .li-card { max-width: 100%; }
.preview-canvas.edit-mode .xt { width: 100%; }
.preview-canvas.edit-mode .xt-single, .preview-canvas.edit-mode .xt-mediacol { max-width: 100%; }
.empty-panel { white-space: pre-line; }
.publishing .panel-section { border: 0; padding: 2px 0 10px; }
@media (prefers-reduced-motion: reduce) { .workspace * { transition: none !important; scroll-behavior: auto !important; } }
/* Who posts it, posting by hand, and the live check after posting. */
.how-posts { margin-bottom: 12px; }
.how-posts .seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--line); padding: 3px; border-radius: 8px; background: #eeefe8; margin-bottom: 6px; }
.how-posts .seg button { border: 0; border-radius: 5px; padding: 5px 10px; background: none; font-size: 11px; font-weight: 550; color: var(--muted); cursor: pointer; }
.how-posts .seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px #19200e14; }
.how-posts .btn.small { margin-top: 6px; }
.workspace .btn.confirming { background: #b42318; border-color: #b42318; color: #fff; }
.hand-kit { background: #fffaf0; border-color: #f0dca0; display: flex; flex-direction: column; gap: 10px; }
.hand-kit .label { margin: 0; font-weight: 650; }
.hand-post { display: flex; flex-direction: column; gap: 6px; }
.hand-post + .hand-post { border-top: 1px solid #f0dca0; padding-top: 10px; }
.hand-kit .btns, .hand-done { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.hand-kit a.btn { text-decoration: none; color: var(--ink); display: inline-flex; align-items: center; }
.hand-kit .mrow .mname { white-space: normal; }
.hand-kit .mrow .btn.small { min-height: 24px; padding: 2px 7px; }
.hand-done input.note { flex: 1 1 100%; margin: 0; }
.live-check { margin-top: 8px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.live-check .ok { color: var(--ok); font-weight: 600; }
.live-check .bad { color: #7a1a12; font-weight: 600; }
.live-check ul { margin: 0; padding-left: 16px; }

/* The plan's one line under the top bar, only while posting is off (T-724 §8): paper, ink, one small ink pill. */
.fh-state { flex: none; min-height: 44px; display: flex; align-items: center; gap: 12px; padding: 8px 20px; border-bottom: 1px solid rgba(23, 22, 20, .10); background: #f6f4ef; color: #171614; font: 400 14px/1.35 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif; letter-spacing: -0.006em; }
.fh-state .msg { display: flex; align-items: center; gap: 12px; }
.fh-state .dot { width: 7px; height: 7px; border-radius: 50%; background: #a3341f; flex: none; }
.fh-state .act { display: inline-flex; align-items: center; height: 28px; padding: 0 13px; border-radius: 999px; background: #171614; color: #f6f4ef; font: 500 12.5px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif; white-space: nowrap; text-decoration: none; margin-left: 4px; flex: none; }
.fh-state .act:focus-visible { outline: 2px solid rgba(23, 22, 20, .55); outline-offset: 2px; }
@media (max-width: 640px) {
  .fh-state { min-height: 52px; padding: 10px 16px; justify-content: space-between; }
  .fh-state .act { height: 32px; font-size: 13px; padding: 0 14px; }
}
