#arc-shell.writer-shell {
  grid-template-columns: var(--arc-sidebar-width, 280px) minmax(320px, 1fr) var(
      --writer-review-width,
      300px
    );
  gap: 0;
  overflow: hidden;
  --writer-warning: light-dark(#8c652d, #e4b66d);
  --writer-warning-bg: light-dark(#f7efdf, #433929);
  --writer-success: light-dark(#476a53, #96c4a2);
}
#arc-shell.writer-shell [hidden] {
  display: none !important;
}
#arc-shell.writer-shell .arc-sidebar {
  padding-right: 12px;
  overflow: auto;
}
#arc-shell.writer-shell .arc-shortcuts {
  flex-shrink: 0;
}
#arc-shell .writer-main {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--arc-paper);
  border-radius: 10px 0 0 10px;
  overflow: hidden;
}
#arc-shell .writer-header {
  height: 77px;
  flex: 0 0 77px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--arc-line);
}
#arc-shell .writer-header strong {
  font-size: 15px;
  font-weight: 500;
}
#arc-shell .writer-header small {
  display: block;
  color: var(--arc-muted);
  margin-top: 5px;
}
#arc-shell .writer-header-end {
  margin-left: auto;
  font-size: 11px;
  color: var(--arc-muted);
}
#arc-shell .writer-agent {
  width: 28px;
}
#arc-shell .writer-context {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 20px;
  border-bottom: 1px solid color-mix(in srgb, var(--arc-line) 55%, transparent);
  font-size: 12px;
}
#arc-shell .writer-context > span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--arc-muted);
}
#arc-shell .writer-context button {
  font-size: 12px;
  padding: 7px 9px;
  background: var(--arc-selected);
}
#arc-shell .writer-context b {
  font-weight: 500;
  color: var(--arc-muted);
}
#arc-shell .writer-document-scroll {
  padding: 25px 30px 32px;
  overflow-y: auto;
  min-height: 0;
  flex: 1;
}
#arc-shell .writer-document-head {
  max-width: 720px;
  margin: 0 auto;
}
#arc-shell .writer-kicker {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--arc-muted);
}
#arc-shell #writer-status {
  color: var(--writer-warning);
}
#arc-shell .writer-document-head h1 {
  font-size: 25px;
  line-height: 1.25;
  letter-spacing: -0.65px;
  font-weight: 500;
  margin: 14px 0;
}
#arc-shell .writer-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--arc-muted);
  font-size: 11px;
  line-height: 18px;
}
#arc-shell .writer-tabs {
  display: flex;
  align-items: center;
  gap: 22px;
  border-bottom: 1px solid var(--arc-line);
  margin: 20px auto 0;
  max-width: 720px;
}
#arc-shell .writer-tabs button {
  padding: 12px 0 13px;
  border-radius: 0;
  font-size: 12px;
  color: var(--arc-muted);
  border-bottom: 2px solid transparent;
}
#arc-shell .writer-tabs button[aria-pressed="true"] {
  color: var(--arc-text);
  border-color: var(--arc-text);
}
#arc-shell #writer-history {
  margin-left: auto;
}
#arc-shell #writer-history-panel {
  font-size: 12px;
  background: var(--arc-selected);
  padding: 14px;
  margin-top: 10px;
  border-radius: 8px;
}
#arc-shell .writer-editbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--arc-muted);
  font-size: 11px;
  margin: 12px auto;
  max-width: 720px;
}
#arc-shell .writer-editbar > span {
  display: flex;
  align-items: center;
  gap: 6px;
}
#arc-shell .writer-editbar button {
  font-size: 11px;
  padding: 5px;
}
#arc-shell #writer-body {
  font-size: 14px;
  line-height: 1.85;
  max-width: 720px;
  margin: 0 auto;
  padding: 8px 0;
  outline-offset: 6px;
  min-height: 300px;
}
#arc-shell #writer-body p {
  margin: 0 0 18px;
}
#arc-shell #writer-body h2 {
  font-size: 18px;
  line-height: 1.4;
  font-weight: 500;
  margin: 28px 0 12px;
  letter-spacing: -0.2px;
}
#arc-shell #writer-body li {
  padding: 3px 0;
}
#arc-shell #writer-body strong {
  font-weight: 500;
}
#arc-shell #writer-body mark {
  background: var(--writer-warning-bg);
  color: var(--arc-text);
  border-bottom: 1px dashed var(--writer-warning);
  padding: 2px 0;
}
#arc-shell .writer-info {
  width: 100%;
  max-width: 720px;
  min-width: 0;
  margin: 0 auto;
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.7;
  padding-top: 16px;
}
#arc-shell .writer-info h2 {
  font-size: 16px;
  font-weight: 500;
}
#arc-shell .writer-info dl {
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr);
  gap: 15px;
}
#arc-shell .writer-info dt {
  color: var(--arc-muted);
}
#arc-shell .writer-info dd {
  min-width: 0;
  margin: 0;
}
#arc-shell .writer-info textarea {
  resize: vertical;
}
#arc-shell .writer-info label {
  display: block;
  margin: 16px 0;
}
#arc-shell.writer-shell input:not([type="checkbox"]),
#arc-shell.writer-shell textarea {
  width: 100%;
  min-width: 0;
  background: var(--arc-paper);
  border: 1px solid var(--arc-line);
  border-radius: 7px;
  padding: 10px;
  font: inherit;
  color: var(--arc-text);
  margin-top: 6px;
  box-sizing: border-box;
}
#arc-shell .writer-feedback {
  padding: 13px 20px 16px;
  border-top: 1px solid var(--arc-line);
  background: var(--arc-paper);
}
#arc-shell .writer-feedback > div:first-child {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: var(--arc-muted);
}
#arc-shell .writer-feedback strong {
  font-weight: 500;
}
#arc-shell .writer-feedback #writer-save-state {
  margin-left: auto;
}
#arc-shell .writer-feedback form {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 7px;
}
#arc-shell .writer-feedback form input {
  margin: 0;
  border: 0;
  background: var(--arc-selected);
  font-size: 12px;
}
#arc-shell .writer-feedback form button {
  background: var(--arc-text);
  color: var(--arc-paper);
  padding: 8px;
  border-radius: 50%;
}
#arc-shell #writer-feedback-result {
  font-size: 12px;
  line-height: 1.5;
  margin-top: 8px;
  color: var(--writer-success);
}
#arc-shell .writer-review {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--arc-paper);
  border-left: 1px solid var(--arc-line);
  border-radius: 0 10px 10px 0;
  overflow: hidden;
}
#arc-shell .writer-review > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 18px;
  height: 77px;
  flex: 0 0 77px;
  border-bottom: 1px solid var(--arc-line);
}
#arc-shell .writer-review strong {
  font-weight: 500;
}
#arc-shell .writer-review > header small {
  display: block;
  font-size: 11px;
  color: var(--arc-muted);
  margin-top: 6px;
}
#arc-shell .writer-review-scroll {
  overflow: auto;
  flex: 1;
  min-height: 0;
  padding: 18px;
}
#arc-shell .writer-review-scroll > section + section {
  margin-top: 22px;
}
#arc-shell .writer-section-heading {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
}
#arc-shell .writer-attention {
  border: 1px solid
    color-mix(in srgb, var(--writer-warning) 35%, var(--arc-line));
  border-radius: 10px;
  padding: 13px;
  background: var(--writer-warning-bg);
  font-size: 12px;
  line-height: 1.55;
}
#arc-shell .writer-attention > .writer-section-heading {
  color: var(--writer-warning);
}
#arc-shell .writer-attention p {
  margin: 10px 0;
  color: var(--arc-muted);
}
#arc-shell .writer-attention .writer-claim-quote {
  color: var(--arc-text);
}
#arc-shell .writer-suggestion {
  background: var(--arc-paper);
  padding: 10px;
  border-radius: 7px;
  margin: 12px 0;
}
#arc-shell .writer-suggestion small {
  font-size: 11px;
  color: var(--arc-muted);
}
#arc-shell .writer-suggestion p {
  color: var(--arc-text);
  margin: 5px 0 0;
}
#arc-shell button.writer-primary {
  justify-content: center;
  background: var(--arc-text);
  color: var(--arc-paper);
  font-size: 12px;
  width: 100%;
  padding: 11px 9px;
  gap: 7px;
}
#arc-shell button.writer-primary:disabled {
  opacity: 0.4;
}
#arc-shell .writer-evidence {
  margin-top: 13px;
}
#arc-shell .writer-evidence summary {
  font-size: 11px;
}
#arc-shell .writer-evidence label {
  display: block;
  font-size: 11px;
  margin-top: 10px;
}
#arc-shell .writer-evidence button {
  font-size: 11px;
  padding: 8px 0;
}
#arc-shell .writer-remember {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  font-size: 11px;
  margin-top: 14px;
}
#arc-shell .writer-remember input {
  margin: 3px 0 0;
  accent-color: var(--arc-text);
}
#arc-shell .writer-rule-scope {
  display: block;
  margin-left: 18px;
  color: var(--arc-muted);
  font-size: 11px;
}
#arc-shell .writer-checks h2,
#arc-shell .writer-sources h2 {
  font-size: 12px;
  font-weight: 500;
  margin: 0 0 10px;
}
#arc-shell .writer-checks details,
#arc-shell .writer-sources details {
  font-size: 12px;
  border-bottom: 1px solid color-mix(in srgb, var(--arc-line) 55%, transparent);
  padding: 10px 0;
}
#arc-shell .writer-checks summary,
#arc-shell .writer-sources summary {
  display: flex;
  align-items: center;
  gap: 7px;
  list-style: none;
}
#arc-shell .writer-checks summary::after,
#arc-shell .writer-sources summary::after {
  content: "+";
  margin-left: auto;
  color: var(--arc-muted);
}
#arc-shell .writer-checks details[open] summary::after,
#arc-shell .writer-sources details[open] summary::after {
  content: "−";
}
#arc-shell .writer-checks summary svg {
  color: var(--writer-success);
  width: 14px;
  height: 14px;
}
#arc-shell .writer-checks p,
#arc-shell .writer-sources p {
  font-size: 11px;
  line-height: 1.6;
  color: var(--arc-muted);
  margin: 8px 0 0;
}
#arc-shell .writer-sources summary small {
  color: var(--arc-muted);
  font-size: 11px;
}
#arc-shell .writer-ready {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: var(--writer-success);
  line-height: 1.5;
}
#arc-shell .writer-ready p {
  font-size: 11px;
  color: var(--arc-muted);
  margin: 4px 0;
}
#arc-shell .writer-ready svg {
  flex-shrink: 0;
}
#arc-shell .writer-publish {
  padding: 17px 18px 12px;
  border-top: 1px solid var(--arc-line);
  background: var(--arc-selected);
}
#arc-shell #writer-timezone {
  margin-left: auto;
  font-size: 11px;
  color: var(--arc-muted);
}
#arc-shell .writer-date-row {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 7px;
  margin-top: 12px;
  font-size: 11px;
  color: var(--arc-muted);
}
#arc-shell .writer-date-row input {
  padding: 7px !important;
  font-size: 11px !important;
}
#arc-shell .writer-publish p {
  font-size: 11px;
  color: var(--arc-muted);
  line-height: 1.6;
}
#arc-shell .writer-publish p strong {
  color: var(--arc-text);
  margin-left: 5px;
}

#arc-shell #writer-request-changes {
  font-size: 12px;
  width: 100%;
  justify-content: center;
  margin-top: 4px;
}

#arc-shell #writer-queue {
  position: absolute;
  top: 124px;
  left: 16px;
  right: 16px;
  background: var(--arc-paper);
  border: 1px solid var(--arc-line);
  border-radius: 10px;
  box-shadow: 0 14px 40px #30241425;
  padding: 16px;
  z-index: 20;
}
#arc-shell .writer-queue-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 10px;
  font-size: 13px;
}
#arc-shell .writer-queue-heading small {
  font-size: 11px;
  color: var(--arc-muted);
}
#arc-shell #writer-queue-items button {
  display: grid;
  width: 100%;
  grid-template-columns: 1fr auto;
  gap: 7px;
  padding: 13px;
  text-align: left;
  border-radius: 7px;
  border-bottom: 1px solid var(--arc-line);
}
#arc-shell #writer-queue-items button[aria-current="true"] {
  background: var(--arc-selected);
}
#arc-shell #writer-queue-items button strong {
  font-size: 13px;
  font-weight: 500;
}
#arc-shell #writer-queue-items button small {
  font-size: 11px;
  color: var(--arc-muted);
  grid-column: 1;
}
#arc-shell #writer-queue-items button span {
  font-size: 11px;
  color: var(--writer-warning);
  grid-column: 2;
  grid-row: 1/3;
  align-self: center;
}
#arc-shell #writer-toast {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 90%;
  padding: 12px 18px;
  border-radius: 9px;
  background: var(--arc-text);
  color: var(--arc-paper);
  z-index: 50;
  font-size: 12px;
  box-shadow: 0 4px 16px #30241425;
}
#arc-shell #writer-review-open {
  position: absolute;
  right: 8px;
  top: 24px;
  background: var(--arc-selected);
  z-index: 3;
}
#arc-shell.writer-shell[data-focus="true"] {
  grid-template-columns: minmax(0, 1fr);
}
#arc-shell.writer-shell[data-focus="true"] > .arc-sidebar,
#arc-shell.writer-shell[data-focus="true"] > .writer-review {
  display: none;
}
#arc-shell.writer-shell[data-focus="true"] > .writer-main {
  border-radius: 10px;
}
#arc-shell.writer-shell[data-review="false"] {
  grid-template-columns: var(--arc-sidebar-width, 280px) minmax(320px, 1fr);
}
@media (max-width: 1150px) {
  #arc-shell.writer-shell {
    grid-template-columns: 210px minmax(300px, 1fr) 265px;
  }
  #arc-shell.writer-shell[data-review="false"] {
    grid-template-columns: 210px minmax(300px, 1fr);
  }
  #arc-shell .writer-document-scroll {
    padding: 22px;
  }
  #arc-shell .writer-header-end {
    display: none;
  }
  #arc-shell .writer-review-scroll {
    padding: 13px;
  }
  #arc-shell .writer-document-head h1 {
    font-size: 23px;
  }
}
@media (max-width: 850px) {
  #arc-shell.writer-shell {
    grid-template-columns: minmax(0, 1fr) 250px;
  }
  #arc-shell.writer-shell > .arc-sidebar {
    display: none;
  }
  #arc-shell.writer-shell[data-review="false"] {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 600px) {
  #arc-shell.writer-shell {
    display: flex;
    flex-direction: column;
    height: auto;
    overflow: visible;
  }
  #arc-shell .writer-main {
    min-height: 760px;
    border-radius: 9px;
  }
  #arc-shell .writer-review {
    border-left: 0;
    border-top: 1px solid var(--arc-line);
    border-radius: 9px;
  }
  #arc-shell .writer-document-scroll {
    overflow: visible;
  }
  #arc-shell .writer-review-scroll {
    overflow: visible;
  }
  #arc-shell .writer-header {
    padding: 15px;
  }
  #arc-shell .writer-context {
    padding: 10px;
  }
  #arc-shell .writer-document-head h1 {
    font-size: 23px;
  }
  #arc-shell .writer-feedback {
    padding: 12px;
  }
  #arc-shell .writer-review > header {
    height: 65px;
    flex-basis: 65px;
  }
}

#arc-shell.writer-shell[data-focus="true"][data-review="false"] {
  grid-template-columns: minmax(0, 1fr);
}

#arc-shell #writer-locate-claim {
  font-size: 11px;
  padding: 0;
  color: var(--writer-warning);
  text-decoration: underline;
  text-underline-offset: 3px;
}

#arc-shell > .writer-main[hidden],
#arc-shell > .writer-review[hidden],
#arc-shell > #writer-review-open[hidden],
#arc-shell > #writer-toast[hidden] {
  display: none !important;
}
#arc-shell.writer-shell > .arc-content {
  display: none;
}
#arc-shell.writer-shell[data-collapsed="true"] {
  grid-template-columns: minmax(320px, 1fr) var(--writer-review-width, 300px);
}
#arc-shell.writer-shell[data-collapsed="true"][data-review="false"] {
  grid-template-columns: minmax(320px, 1fr);
}
#arc-shell.writer-shell[data-focus="true"] {
  grid-template-columns: minmax(0, 1fr);
}
#arc-shell.writer-shell[data-focus="true"] > #sidebar-resizer {
  display: none;
}
@media (max-width: 600px) {
  #arc-shell.writer-shell[data-collapsed="true"] {
    display: flex;
  }
}
