.material-page {
  --material-line: #dfe6e0;
  --material-muted: #59675f;
  --material-green: #2e654b;
  --material-surface: #f5f8f5;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #fff;
}
.material-page .post-workspace { display: flex; flex-direction: column; height: 100%; }
.material-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 18px 28px;
  min-height: 92px;
  border-bottom: 1px solid var(--material-line);
  background: #fff;
}
.material-back {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  align-self: stretch;
  padding-right: 24px;
  border-right: 1px solid var(--material-line);
  color: var(--material-green);
  font-size: 13px;
  font-weight: 680;
  white-space: nowrap;
}
.material-back:hover { text-decoration: underline; }
.material-back .icon { transform: rotate(180deg); width: 15px; }
.material-title { min-width: 0; }
.material-title h1 {
  font-size: clamp(19px, 2.1vw, 30px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
}
.material-meta, .material-header-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.material-meta { margin-top: 7px; color: var(--material-muted); font-size: 13px; }
.material-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.material-meta > span + span::before { content: '·'; color: #7b8880; margin-right: 6px; }
.material-meta .icon { width: 14px; height: 14px; }
.material-meta .platform-dot { margin: 0; }
.material-header-actions { justify-content: flex-end; }
.material-header-actions .btn { min-height: 34px; padding: 6px 11px; font-size: 12px; }
.material-side-toggle, .material-side-close { display: none !important; }
.material-body {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(310px, 28vw, 380px);
}
.material-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: var(--material-surface);
}
.material-main .post-tabs {
  position: static;
  z-index: auto;
  flex: none;
  display: flex;
  flex-wrap: nowrap;
  overflow: auto;
  gap: 22px;
  padding: 0 28px;
  margin: 0;
  border: 0;
  border-bottom: 1px solid var(--material-line);
  border-radius: 0;
  box-shadow: none;
  scrollbar-width: thin;
}
.material-main .post-tabs > [role=tab] {
  flex: none;
  white-space: nowrap;
  gap: 6px;
  min-height: 48px;
  padding: 0 3px;
  border: 0;
  border-radius: 0;
  border-bottom: 2px solid transparent;
  color: var(--material-muted);
  font-size: 13px;
  font-weight: 660;
}
.material-main .post-tabs > [aria-selected=true] {
  background: transparent;
  color: var(--material-green);
  border-bottom-color: var(--material-green);
}
.material-main .post-tabs > [aria-selected=true] > span { background: #e5efe8; color: var(--material-green); }
.material-main .post-tabs > [role=tab]:focus-visible { outline-offset: -4px; }
.material-panels { flex: 1; min-height: 0; overflow: auto; }
.material-panels > [data-post-panel]:not([data-post-panel=chat]) {
  max-width: 1160px;
  margin: 0 auto;
  padding: 25px clamp(14px, 3vw, 36px) 36px;
}
.material-panels > [data-post-panel=chat] { height: 100%; }
.material-page .chat-box { min-height: 0; height: 100%; overflow: hidden; }
.material-page .chat-messages {
  display: flex;
  flex-direction: column;
  flex: 1;
  height: auto;
  min-height: 0;
  max-height: none;
  width: 100%;
  overflow: auto;
  scroll-behavior: auto;
  overflow-anchor: none;
  padding: 22px clamp(16px, 4vw, 54px) 14px;
}
.material-page .chat-messages:focus-visible { outline: 2px solid var(--material-green); outline-offset: -2px; }
.material-page #chat-feed { width: min(100%, 850px); margin: auto auto 0; }
.material-page #chat-feed:has(.chat-empty) { margin: auto; }
.material-page .chat-empty { min-height: 0; padding: 20px 10px; }
.material-page .chat-empty h3 { font-size: 20px; color: #243b2e; }
.material-page .chat-empty p { font-size: 14px; color: var(--material-muted); }
.chat-empty-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 14px;
  border: 1px solid #d8e5db;
  border-radius: 16px;
  background: #e6efe8;
  color: var(--material-green);
}
.chat-empty-icon .icon { width: 24px; height: 24px; }
.chat-earlier { display: block; width: max-content; margin: 0 auto 20px; }
.chat-earlier[hidden], .chat-selection[hidden] { display: none; }
.material-page .message { gap: 10px; margin: 0 0 18px; }
.material-page .message > .avatar, .material-page .message > .codex-avatar { margin-top: 3px; }
.material-page .message-content {
  flex: 0 1 auto;
  min-width: min(210px, 82%);
  max-width: min(720px, calc(100% - 40px));
  padding: 10px 13px;
  border: 1px solid #dce5dd;
  border-radius: 3px 12px 12px;
  background: #fff;
  overflow-wrap: anywhere;
}
.material-page .message.own .message-content { background: #edf5ee; border-color: #dbe8dd; }
.material-page .message-content header { flex-wrap: wrap; gap: 3px 10px; }
.material-page .message-content header time { color: var(--material-muted); }
.material-page .message-content .prose { color: #25342b; font-size: 14px; }
.material-page .message-content .prose p:last-child { margin-bottom: 0; }
.chat-event {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin: 2px 0 15px;
  color: #506257;
  font-size: 12px;
  line-height: 1.45;
}
.chat-event .icon { width: 13px; height: 13px; flex: none; align-self: start; }
.chat-event div { min-width: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.chat-event time { white-space: nowrap; margin-left: auto; }
.material-page .chat-job:empty { display: none; }
.material-page .chat-composer {
  flex: none;
  border-radius: 0;
  background: #fff;
  padding: 11px clamp(14px, 4vw, 54px) 12px;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
}
.material-page .chat-composer > * { width: min(100%, 850px); margin-inline: auto; }
.material-page .composer-text { display: flex; align-items: flex-start; gap: 7px; }
.material-page .chat-composer textarea {
  flex: 1;
  width: 0;
  min-height: 49px;
  max-height: min(170px, 25vh);
  padding: 7px 2px;
  border: 0;
  box-shadow: none;
  background: transparent;
  resize: vertical;
}
.material-page .chat-composer textarea:focus-visible { outline: 2px solid #98b8a2; outline-offset: 1px; }
.material-page .composer-bottom { margin-top: 3px; }
.material-page .composer-bottom > span { font-size: 12px; }
.material-page .chat-attach { flex: none; color: var(--material-green); }
.material-page .send-button { border-radius: 10px; background: #2d644a; }
.material-page .send-button:hover { background: #204c37; }
.material-page .send-button .icon { color: white; }
.chat-selection { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 5px; }
.chat-selection > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  padding: 1px 2px 1px 7px;
  border-radius: 6px;
  background: #edf3ed;
  color: #385345;
  font-size: 12px;
}
.chat-selection > span > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-selection .icon { width: 13px; height: 13px; flex: none; }
.chat-selection .icon-btn { min-width: 27px; width: 27px; height: 27px; flex: none; }

.material-side {
  overflow: auto;
  min-width: 0;
  min-height: 0;
  border-left: 1px solid var(--material-line);
  background: #fff;
  padding: 21px 22px 24px;
  scrollbar-width: thin;
}
.material-side-heading, .material-side-section > header { display: flex; align-items: center; gap: 8px; margin-bottom: 11px; }
.material-side h2 { margin: 0; font-size: 15px; font-weight: 730; }
.material-side-heading > span, .material-side-section > header > span {
  margin-left: auto;
  font-size: 12px;
  font-weight: 680;
  color: var(--material-green);
  white-space: nowrap;
}
.material-side p.muted { color: var(--material-muted); font-size: 13px; line-height: 1.45; }
.material-progress-bar, .plan-workflow progress {
  appearance: none;
  display: block;
  width: 100%;
  height: 5px;
  border: 0;
  overflow: hidden;
  border-radius: 6px;
  background: #e8eee8;
  color: #408264;
}
.material-progress-bar::-webkit-progress-bar, .plan-workflow progress::-webkit-progress-bar { background: #e8eee8; }
.material-progress-bar::-webkit-progress-value, .plan-workflow progress::-webkit-progress-value { background: #408264; }
.material-progress-bar::-moz-progress-bar, .plan-workflow progress::-moz-progress-bar { background: #408264; }
.material-check-list { margin: 9px 0 0; padding: 0; list-style: none; }
.material-check {
  display: flex;
  gap: 9px;
  padding: 12px 0;
  border-bottom: 1px solid #e7ede8;
}
.material-check:last-child { border-bottom: 0; }
.material-check.awaiting-review {
  margin: 4px -9px;
  padding: 12px 8px;
  border: 1px solid #86a693;
  border-radius: 9px;
  background: #f5f9f6;
}
.check-main { min-width: 0; flex: 1; }
.check-heading { display: flex; align-items: start; justify-content: space-between; flex-wrap: wrap; gap: 5px 7px; }
.check-heading > strong { flex: 1 1 110px; color: #25382c; font-size: 13px; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.check-avatar { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border: 0; padding: 0; border-radius: 50%; background: transparent; margin-top: 1px; }
button.check-avatar { cursor: pointer; }
button.check-avatar:hover { outline: 2px solid #97b5a1; outline-offset: 2px; }
.check-unassigned { display: grid; place-items: center; width: 27px; height: 27px; border: 1px dashed #95a69a; border-radius: 50%; color: #708477; font-size: 17px; }
.check-person { margin-top: 3px; color: #5d6d62; font-size: 11px; line-height: 1.4; overflow-wrap: anywhere; }
.check-status { display: inline-flex; align-items: center; gap: 4px; flex: none; padding: 3px 7px; border: 1px dashed #aebcb1; border-radius: 12px; background: #fff; color: #5e6b61; font-size: 10px; font-weight: 600; white-space: nowrap; line-height: 1.4; }
button.check-status { cursor: pointer; }
button.check-status:hover { box-shadow: 0 0 0 2px #dfe9e2; }
.check-status.in_progress { border-style: solid; border-color: #a2bac9; color: #375a72; background: #f3f8fb; }
.check-status.in_review { border-style: solid; border-color: #c3b7e0; background: #f1ecf9; color: #65468b; }
.check-status.changes_requested { border-style: solid; border-color: #ddc094; background: #fff6e8; color: #895b20; }
.check-status.accepted { border-style: solid; border-color: #b4d0bd; background: #edf7ef; color: #2a6946; }
.check-status-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.check-status.not_started .check-status-dot { display: none; }
.check-review-link { display: inline-flex; align-items: center; gap: 4px; padding: 0; margin-top: 5px; border: 0; background: transparent; color: #466c53; font-size: 11px; font-weight: 650; cursor: pointer; text-align: left; }
.check-review-link .icon { width: 12px; height: 12px; flex: none; }
.material-check small { display: block; color: #65766b; font-size: 10px; line-height: 1.4; margin-top: 5px; overflow-wrap: anywhere; }
.material-check .check-comment { white-space: pre-wrap; color: #4e6154; }
.material-side-section { border-top: 1px solid var(--material-line); margin-top: 17px; padding-top: 15px; }
.material-side-section > header .icon-btn { margin-left: auto; width: 30px; height: 30px; }
.material-member { display: flex; gap: 9px; align-items: center; min-width: 0; padding: 5px 0; }
.material-member > div { min-width: 0; overflow-wrap: anywhere; }
.material-member strong, .material-member small { display: block; line-height: 1.3; }
.material-member strong { font-size: 12px; font-weight: 670; }
.material-member small { font-size: 11px; color: var(--material-muted); margin-top: 2px; }
.material-member-empty { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 50%; background: #eef3ef; color: #5a7062; }
.material-member-empty .icon { width: 13px; height: 13px; }
.workflow-dialog-item { font-weight: 650; margin-bottom: 16px; }
.workflow-template { margin: 8px 0 16px; border: 1px solid #dfe6df; border-radius: 8px; padding: 12px 14px; }
.workflow-template-toggle { display: flex; align-items: center; gap: 7px; cursor: pointer; }
.workflow-template-fields { display: none; padding-top: 12px; }
.workflow-template:has(input:checked) .workflow-template-fields { display: block; }
.type-workflow-summary { display: grid; gap: 4px; color: #495c50; margin: 11px 0; font-size: 12px; }

.chat-attachments { display: grid; gap: 8px; margin: 6px 0 2px; }
.chat-attachments.multiple {
  width: min(620px, calc(100vw - 88px));
  max-width: 100%;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 195px), 1fr));
}
.chat-attachment { width: min(100%, 395px); overflow: hidden; border: 1px solid #dce5dd; border-radius: 8px; background: #fff; }
.attachment-preview { display: block; width: 100%; background: #e9efeb; }
.attachment-preview img, video.attachment-preview { display: block; width: 100%; max-height: 270px; object-fit: contain; }
.attachment-info { display: flex; align-items: center; gap: 7px; min-width: 0; padding: 8px; }
.attachment-info > div { flex: 1; min-width: 0; }
.attachment-info a {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #264f3b;
  font-size: 13px;
  font-weight: 650;
}
.attachment-info a:hover { text-decoration: underline; }
.chat-attachment .attachment-info { display: grid; grid-template-columns: 28px minmax(0, 1fr); }
.chat-attachment .attachment-info a { white-space: normal; overflow-wrap: anywhere; }
.chat-attachment [data-attachment-decision]:not(:empty) { grid-column: 2; }
.attachment-info small { display: block; color: #59675f; font-size: 11px; line-height: 1.4; margin-top: 2px; }
.attachment-icon { display: grid; place-items: center; width: 28px; height: 28px; flex: none; color: #4a6756; background: #edf3ed; border-radius: 6px; }
.attachment-icon .icon { width: 15px; height: 15px; }
.attachment-info button { white-space: nowrap; }
.attachment-accepted { display: flex; align-items: center; gap: 3px; color: #2d6749; font-size: 11px; font-weight: 700; }
.attachment-accepted .icon { width: 13px; height: 13px; }
.repository-file { border: 1px solid #e4eae4; border-radius: 8px; margin-bottom: 6px; }
.repository-revoke { flex: none; width: 26px; height: 26px; }
.repository-revoke .icon { width: 13px; height: 13px; }
.media-share > summary .icon { width: 15px; height: 15px; vertical-align: text-bottom; }
.media-share li { display: flex; align-items: center; gap: 9px; justify-content: space-between; overflow-wrap: anywhere; margin-bottom: 5px; }
.plan-workflow {
  display: grid;
  grid-template-columns: minmax(40px, 84px) auto;
  width: max-content;
  max-width: 100%;
  align-items: center;
  gap: 4px 6px;
  margin-top: 5px;
  color: #516257;
  font-size: 11px;
}
.plan-workflow small { grid-column: 1/-1; max-width: 135px; font-size: inherit; overflow: hidden; text-overflow: ellipsis; }
.board-card .plan-workflow { margin: 0 0 9px; }

@media (max-width: 860px) {
  .material-header { gap: 10px; padding: 12px 14px; grid-template-columns: auto minmax(0, 1fr) auto; min-height: 74px; }
  .material-back { padding-right: 10px; }
  .material-back span { display: none; }
  .material-header-actions { gap: 5px; }
  .material-body { display: flex; position: relative; }
  .material-main { width: 100%; }
  .material-main .post-tabs { padding-inline: 12px; gap: 13px; }
  .material-main .post-tabs > [role=tab] { min-height: 42px; }
  .material-side { display: none; width: 100%; border-left: 0; padding: 16px max(18px, calc((100% - 560px)/2)); }
  .show-material-side .material-main { display: none; }
  .show-material-side .material-side { display: block; }
  .material-side-toggle { display: inline-flex !important; }
  .material-side-close { display: inline-flex !important; width: 34px; height: 34px; }
  .material-header .material-back { min-width: 32px; }
}
@media (max-width: 520px) {
  .material-header-actions { max-width: 100px; }
  .material-header-actions .status { padding: 4px 5px; font-size: 10px; }
  .material-header-actions .btn { min-height: 28px; padding: 4px 6px; font-size: 10px; }
  .material-header-actions .btn .icon { width: 14px; height: 14px; }
  .material-meta { font-size: 11px; gap: 4px 7px; margin-top: 4px; }
  .material-meta > span + span::before { margin-right: 0; }
  .material-page .chat-messages { padding-inline: 12px; }
  .material-page .message { gap: 6px; }
  .material-page .message-content { padding: 8px 9px; }
  .material-page .composer-bottom > span { display: none; }
  .chat-event time { display: none; }
}

.material-decisions { display: inline-flex; gap: 7px; align-items: center; padding: 7px 10px; border: 1px solid #b6cbbb; border-radius: 18px; background: #f4f8f5; color: #355943; cursor: pointer; font-size: 12px; font-weight: 650; }
.material-decisions[hidden] { display: none; }
.material-decisions > span { display: grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; background: #355c42; color: white; font-size: 10px; }
.chat-review-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 9px; padding-top: 5px; padding-bottom: 4px; font-size: 12px; color: #4b6352; }
.chat-review-controls[hidden] { display: none; }
.chat-review-controls > label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.chat-review-controls input { accent-color: #347150; }
.review-card { border: 1px solid #99b3a2; border-radius: 12px; overflow: hidden; margin-bottom: 18px; background: white; }
.review-card:focus-visible { outline: 3px solid #81a890; outline-offset: 3px; }
.review-card-head { display: flex; align-items: center; gap: 10px; padding: 12px 15px; background: #edf4ef; border-bottom: 1px solid #dce6df; }
.review-card-head > div { flex: 1; min-width: 0; }
.review-card-head strong { font-size: 13px; color: #273e30; }
.review-card-head small { display: block; margin-top: 2px; font-size: 11px; color: #5e7064; }
.review-version { font-size: 12px; font-weight: 700; color: #587261; }
.review-card-body { padding: 16px; }
.review-card h3 { margin: 0 0 9px; font-size: 15px; color: #243e2e; overflow-wrap: anywhere; }
.review-card .prose { font-size: 14px; }
.review-card .chat-attachments { margin-top: 12px; }
.review-state { margin-top: 13px; }
.review-state-badge { display: inline-flex; padding: 4px 9px; border-radius: 12px; background: #eee9f6; color: #69488b; font-size: 11px; font-weight: 700; }
.review-state.accepted .review-state-badge { background: #e7f2e9; color: #2d6a43; }
.review-state.changes_requested .review-state-badge { background: #fff0d9; color: #805522; }
.review-state.superseded .review-state-badge, .review-state.cancelled .review-state-badge { background: #f0f1f0; color: #68746b; }
.review-state dl { display: grid; grid-template-columns: auto 1fr; gap: 5px 14px; font-size: 12px; margin: 12px 0; line-height: 1.45; }
.review-state dt { color: #68766c; }
.review-state dd { margin: 0; color: #263d2e; overflow-wrap: anywhere; }
.review-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 13px; }
.review-actions .btn { min-height: 34px; padding: 7px 10px; font-size: 12px; }
.review-feedback { white-space: pre-wrap; padding: 10px 12px; border-left: 3px solid #ccaa73; border-radius: 3px; background: #fff7ec; color: #6a5431; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.review-card[data-state=accepted] { border-color: #b4d3bf; }
.review-card[data-state=superseded] { border-color: #d5dfd8; }
.review-state .text-link { display: inline-flex; align-items: center; gap: 5px; margin-top: 7px; font-size: 12px; }
.review-state .text-link .icon { width: 13px; height: 13px; }
@media(max-width:860px) {
 .material-header-actions { max-width: 165px; }
 .material-decisions { font-size: 10px; padding: 4px 6px; }
 .material-decisions > span { width: 15px; height: 15px; }
}
@media(max-width:520px) {
 .material-header-actions { max-width: 120px; }
 .review-card-body { padding: 12px; }
 .review-card-head { padding: 10px 12px; }
 .review-state dl { gap: 5px 9px; font-size: 11px; }
 .review-actions { gap: 6px; }
 .review-actions .btn { font-size: 11px; }
 .chat-review-controls { font-size: 11px; }
}

.material-body { grid-template-columns: clamp(300px, 26vw, 365px) minmax(0, 1fr); }
.material-side { border-left: 0; border-right: 1px solid var(--material-line); }
.check-chat-toolbar { flex: none; display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 16px 28px 13px; background: #fff; border-bottom: 1px solid #e4ebe5; }
.check-chat-toolbar > div { min-width: 0; }
.check-chat-toolbar > div:last-child { display: flex; gap: 9px; align-items: center; flex: none; }
.check-chat-toolbar h2 { font-size: 18px; line-height: 1.3; margin: 0; color: #264030; overflow-wrap: anywhere; }
.check-chat-toolbar span { display: block; font-size: 12px; margin-top: 3px; color: #617167; }
.check-title { flex: 1 1 105px; border: 0; padding: 0; background: transparent; color: #25382c; font-size: 13px; font-weight: 700; line-height: 1.4; text-align: left; cursor: pointer; overflow-wrap: anywhere; }
.check-title:hover { color: #286b49; text-decoration: underline; }
.material-check.selected { background: #edf4ee; border-radius: 8px; margin-inline: -9px; padding-inline: 9px; }
.material-check.selected .check-title { color: #246140; }
.generator-panel { max-width: 1050px; margin: 0 auto; }
.generator-heading { display: flex; align-items: start; justify-content: space-between; gap: 14px; margin-bottom: 21px; }
.generator-heading h2 { font-size: 26px; letter-spacing: -.02em; margin: 0 0 5px; }
.generator-heading p { font-size: 13px; color: #5f7065; line-height: 1.5; }
.generator-heading .text-link { flex: none; font-size: 12px; display: flex; gap: 5px; align-items: center; }
.generator-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
#generator-form label { display: flex; flex-direction: column; gap: 6px; color: #3f5748; font-size: 13px; }
#generator-form select, #generator-form textarea { width: 100%; border: 1px solid #d5e0d7; border-radius: 8px; background: #fff; padding: 10px 12px; font: inherit; color: #273d2f; }
.generator-prompt { margin-top: 15px; }
#generator-prompt { min-height: 76px; resize: vertical; }
.generator-actions { display: flex; align-items: start; justify-content: space-between; gap: 15px; margin: 14px 0 20px; }
#generator-media-settings summary { cursor: pointer; font-size: 12px; color: #5a7363; }
#generator-media-settings { min-width: 0; }
#generator-media-settings[hidden] { display: none; }
#generator-media-settings[open] { background: #fff; padding: 10px 13px; border-radius: 8px; border: 1px solid #d9e3dc; }
#generator-media-settings > label { margin-top: 10px; }
#generator-media-settings .generator-capture { flex-direction: row; align-items: center; }
.generator-capture input { accent-color: #337650; }
#generator-generate { margin-left: auto; min-width: 130px; }
.generator-results-heading { border-top: 1px solid #dbe5de; padding-top: 20px; margin-bottom: 14px; display: flex; gap: 15px; align-items: center; justify-content: space-between; }
.generator-results-heading h3 { font-size: 17px; }
#generator-version { max-width: 72%; padding: 8px 25px 8px 10px; border-radius: 7px; border: 1px solid #d5e0d7; background: #fff; font-size: 12px; }
.generator-empty { padding: 40px 24px; border: 1px dashed #cddbd1; border-radius: 12px; color: #65796b; font-size: 14px; text-align: center; line-height: 1.6; }
.generator-text { background: #fff; border: 1px solid #d9e4dc; border-radius: 12px; padding: 22px; }
.generator-text > header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 16px; color: #57705f; font-size: 12px; }
.generator-text > header strong { font-size: 14px; color: #2f4c39; }
.generator-text .prose { font-size: 15px; }
.generator-result-actions { display: flex; gap: 9px; flex-wrap: wrap; padding-top: 18px; border-top: 1px solid #edf0ed; margin-top: 20px; }
#generator-result .media-version { margin: 0; padding: 20px; border: 1px solid #d9e4dc; border-radius: 12px; background: #fff; }
#generator-result .media-video { grid-template-columns: minmax(0, 1fr) minmax(150px, .7fr); }
#generator-result .media-share { margin-top: 15px; }
#generator-result .media-share > .btn { font-size: 13px; }
.generator-submit-files { display: grid; gap: 9px; margin: 5px 0 17px; }
.generator-submit-files label { display: flex; align-items: center; gap: 8px; color: #445a4c; font-size: 13px; overflow-wrap: anywhere; }
.generator-submit-files input { flex: none; accent-color: #337650; }
#generator-access { margin-top: 20px; background: #fff; padding: 15px; border: 1px solid #dbe5df; border-radius: 9px; }
#generator-access[hidden], #post-media[hidden] { display: none; }
#generator-access > summary { cursor: pointer; font-weight: 600; }
@media(max-width:860px) {
 .material-side { border-right: 0; }
 .check-chat-toolbar { padding: 12px 16px; }
 .check-chat-toolbar h2 { font-size: 16px; }
}
@media(max-width:520px) {
 .check-chat-toolbar { padding: 9px 12px; gap: 7px; }
 .check-chat-toolbar span { font-size: 10px; }
 .check-chat-toolbar .btn { font-size: 10px; padding: 6px 8px; min-height: 31px; }
 .check-chat-toolbar > div:last-child { gap: 4px; }
 .check-chat-toolbar .icon-btn { width: 28px; height: 28px; }
 .generator-heading { flex-direction: column; gap: 8px; }
 .generator-heading h2 { font-size: 23px; }
 .generator-controls { grid-template-columns: 1fr; gap: 10px; }
 .generator-text { padding: 15px; }
 #generator-result .media-version { padding: 12px; }
 #generator-result .media-video { grid-template-columns: 1fr; }
 .generator-results-heading { flex-wrap: wrap; }
 #generator-version { max-width: 100%; }
}

.check-toolbar-actions { display: flex; align-items: center; gap: 14px; }
.check-chat-toolbar .check-toolbar-actions > #active-check-status { display: flex; margin: 0; }
.check-chat-toolbar #active-check-status .check-status { font-size: 12px; padding: 5px 10px; }
.tool-link { display: inline-flex; align-items: center; gap: 5px; color: #54715e; font-size: 12px; white-space: nowrap; }
.tool-link .icon { width: 14px; height: 14px; }
.tool-link:hover { color: #2a6642; text-decoration: underline; }
.check-chat-toolbar .tool-link > span { font-size: inherit; margin: 0; color: inherit; }
.status.material-checkpoint { white-space: normal; max-width: 230px; overflow-wrap: anywhere; }
.status.material-checkpoint i { flex: 0 0 6px; }
.status.material-checkpoint.unstarted { color: #53625a; background: #edf1ed; }
.calendar-post .calendar-checkpoint { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
#material-status { min-width: 0; }
.accepted-materials-panel { margin-top: 20px; }
.accepted-materials-panel h2 { margin-bottom: 12px; }
.accepted-text { margin-bottom: 6px; padding: 10px 12px; border: 1px solid #e4eae4; border-radius: 8px; }
.accepted-text summary { cursor: pointer; color: #2e654b; font-size: 13px; font-weight: 650; overflow-wrap: anywhere; }
.accepted-text .prose { margin: 10px 0; overflow-wrap: anywhere; }
.generator-review-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; }
.template-stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(130px, .75fr) auto; align-items: center; gap: 8px; margin: 8px 0; }
.template-stage > input, .template-stage > select { font: inherit; min-width: 0; width: 100%; padding: 8px; border: 1px solid #cfdad1; border-radius: 6px; background: #fff; color: inherit; }
.template-stage-actions { display: flex; gap: 2px; }
.template-stage-actions .icon-btn { width: 27px; height: 27px; }
.template-roles { margin-top: 12px; }
.template-roles summary { cursor: pointer; font-size: 13px; }
.plan-work-link { margin-top: 6px; font-size: 12px; white-space: normal; }
.chat-messages .prose a, .accepted-text .prose a { color: #295e46; text-decoration: underline; overflow-wrap: anywhere; }
@media(max-width: 540px) {
 .template-stage { grid-template-columns: minmax(0, 1fr) auto; }
 .template-stage > input { grid-column: 1 / -1; }
}
@media(max-width: 760px) {
 .plan-toolbar .filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
 .plan-toolbar .filters select { min-width: 0; width: 100%; }
 .plan-toolbar #filter-work { grid-column: 1 / -1; }
}
.generator-material-picker { display: flex; align-items: center; gap: 15px; margin-bottom: 24px; font-size: 14px; color: #465c4d; }
.generator-material-picker > select { width: min(100%, 600px); min-width: 0; font: inherit; color: #2d4334; border: 1px solid #cfdbd2; border-radius: 8px; padding: 10px 30px 10px 12px; background: #fff; }
.generator-tool-page .generator-panel { margin: 0; max-width: none; }
.generator-tool-page .generator-workspace { background: #f7faf7; border: 1px solid #dfe8e0; border-radius: 12px; padding: 24px; }
.generator-tool-page .generator-heading { align-items: center; }
.generator-tool-page .generator-heading > p { flex: 1; }
.generator-tool-page .generator-results-heading .text-link { font-size: 12px; margin-left: auto; }
.generator-tool-page .media-images img { max-height: 300px; }
.context-tabs { display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 20px; }
.context-workspace .editor-panel { max-width: 1100px; }
@media(max-width:760px) {
 .check-toolbar-actions { gap: 7px; }
 .check-chat-toolbar #active-check-status .check-status { font-size: 10px; padding: 4px 7px; }
 .check-chat-toolbar .tool-link > span { display: none; }
 .check-chat-toolbar .tool-link { padding: 6px; }
 .generator-material-picker { flex-direction: column; align-items: stretch; gap: 6px; }
 .generator-tool-page .generator-workspace { padding: 14px; }
 .generator-tool-page .generator-heading { align-items: start; }
}
