:root {
  color-scheme: light;
  --navy: #08184b;
  --blue: #174bdf;
  --text: #232934;
  --muted: #626a77;
  --line: #e1e4e9;
  --canvas: #f6f7f9;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
summary {
  cursor: pointer;
}
button {
  color: inherit;
}
button,
a,
select {
  -webkit-tap-highlight-color: transparent;
}
button:disabled {
  cursor: default;
  color: #838a96;
  opacity: 0.65;
}
button:focus-visible,
a:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[contenteditable]:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
a {
  color: var(--blue);
}
.shell {
  max-width: 1680px;
  margin: auto;
  padding: 0 32px;
}
.topbar {
  height: 76px;
  display: flex;
  align-items: center;
  gap: 28px;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 18px;
  text-decoration: none;
  color: var(--navy);
}
.brand-name {
  font-size: 23px;
  font-weight: 650;
  letter-spacing: -0.8px;
}
.brand-description {
  font-size: 12px;
  color: var(--muted);
  border-left: 1px solid #d3d7df;
  padding-left: 18px;
}
.topbar nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}
.topbar button {
  border: 0;
  background: none;
  padding: 9px 0;
  font-size: 12px;
}
.topbar button:hover {
  color: var(--blue);
}
.topbar .outline-button {
  background: #fff;
  border: 1px solid #d0d5df;
  border-radius: 5px;
  padding: 9px 12px;
  color: var(--navy);
}
.parent-brand {
  display: flex;
  align-items: center;
  gap: 3px;
  padding-left: 22px;
  border-left: 1px solid var(--line);
}
.parent-brand span {
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
}
.parent-brand img {
  width: 116px;
  height: auto;
  mix-blend-mode: multiply;
}
.workspace-heading {
  min-height: 104px;
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
h1 {
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.75px;
  color: #232934;
  line-height: 1.25;
  margin: 0 0 7px;
}
.workspace-heading p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}
#method-open {
  border: 0;
  background: none;
  color: var(--muted);
  padding: 8px 0;
  font-size: 12px;
  text-align: left;
}
#method-open:hover {
  color: var(--blue);
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  height: calc(100dvh - 242px);
  min-height: 560px;
  max-height: 1200px;
  overflow: hidden;
  border: 1px solid #d5dae2;
  border-radius: 8px;
  background: white;
  box-shadow: 0 2px 6px #14264804;
}
.left-column,
#analysis-panel promptline-assistant {
  display: block;
  height: 100%;
}
#analysis-panel {
  min-width: 0;
  min-height: 0;
}
.left-column {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
}
.draft-card {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.draft-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 30px 20px;
}
.draft-name {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
h2 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.3px;
  margin: 0;
  color: #232934;
}
.draft-status {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}
.draft-history {
  display: flex;
  align-items: center;
  gap: 18px;
}
.draft-history button,
.draft-tools button {
  border: 0;
  background: none;
  font-size: 12px;
  padding: 7px 0;
  white-space: nowrap;
}
.draft-history button:hover:not(:disabled),
.draft-tools button:hover:not(:disabled) {
  color: var(--blue);
}
.example-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 30px;
  padding: 0 0 18px;
  border-bottom: 1px solid #edf0f3;
}
.example-row label {
  font-size: 11px;
  color: var(--muted);
}
.example-row select {
  max-width: 200px;
  background: #fff;
  color: #3d4757;
  border: 1px solid #d9dee6;
  border-radius: 4px;
  font-size: 12px;
  padding: 7px 8px;
}
.editor-shortcut {
  margin-left: auto;
  font-size: 10px;
  color: #707886;
  white-space: nowrap;
}
.prompt-editor {
  flex: 1;
  min-height: 160px;
  max-height: none;
  overflow: auto;
  padding: 30px;
  font-size: 18px;
  line-height: 1.9;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  caret-color: var(--blue);
  color: #252e3d;
  scrollbar-width: thin;
}
.prompt-editor:empty::before {
  content: attr(data-placeholder);
  color: #6b7483;
  pointer-events: none;
  font-size: 17px;
}
.prompt-editor:focus-visible {
  outline: 0;
  box-shadow: inset 3px 0 0 #174bdf55;
}
.draft-footer {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 17px 30px;
  border-top: 1px solid var(--line);
  background: #fff;
}
#counts {
  color: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.draft-tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 22px;
}
.review-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 1px solid var(--blue);
  border-radius: 5px;
  background: var(--blue);
  color: white;
  font-size: 12px;
  font-weight: 550;
  padding: 11px 16px;
  text-decoration: none;
}
.review-button:hover:not(:disabled) {
  background: #103cbd;
}
.review-button:disabled {
  color: white;
  opacity: 0.5;
}
#review {
  display: none;
}
#draft-feedback {
  flex-shrink: 0;
  font-size: 12px;
  line-height: 1.6;
  color: #46536b;
  padding: 10px 30px;
  background: #f7f9fd;
  border-top: 1px solid var(--line);
}
#draft-feedback:empty {
  display: none;
}
#analysis-panel {
  border-left: 1px solid #d5dae2;
  background: #fafbfc;
}
.page-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}
.privacy-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #174bdf;
}
.footer-divider {
  color: #8a919d;
}
dialog {
  border: 1px solid #d5dae2;
  border-radius: 10px;
  background: white;
  color: var(--text);
  max-width: 560px;
  width: calc(100% - 40px);
  padding: 36px;
  box-shadow: 0 18px 70px #14264825;
  max-height: calc(100dvh - 40px);
}
dialog::backdrop {
  background: #111b3066;
}
.kicker {
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
}
dialog h2 {
  font-size: 23px;
  line-height: 1.3;
  letter-spacing: -0.6px;
  margin: 14px 0 20px;
}
dialog ol {
  padding-left: 20px;
}
dialog li,
dialog > p {
  font-size: 13px;
  line-height: 1.75;
  color: var(--muted);
}
dialog li {
  padding: 0 0 14px 4px;
}
dialog strong {
  color: var(--text);
  font-weight: 600;
}
.dialog-close {
  position: absolute;
  right: 12px;
  top: 9px;
  border: 0;
  background: none;
  font-size: 25px;
  color: var(--muted);
  padding: 5px 10px;
}
.guide-note {
  padding: 15px;
  background: #f5f7fa;
  border-left: 2px solid #bac7e4;
}
.download-link {
  margin: 8px 0 14px;
}
#method-sources {
  display: grid;
  gap: 12px;
  margin: 20px 0;
}
#method-sources a {
  font-size: 12px;
  line-height: 1.6;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  background: white;
  padding: 14px;
  z-index: 2147483647;
}
.skip-link:focus {
  top: 10px;
}
@media (min-width: 861px) and (max-height: 800px) {
  .workspace {
    min-height: 480px;
  }
}
@media (min-width: 1450px) {
  .workspace {
    grid-template-columns: minmax(0, 1fr) 450px;
  }
  .prompt-editor {
    padding: 36px 40px;
  }
}
@media (max-width: 1100px) {
  .shell {
    padding: 0 24px;
  }
  .workspace {
    grid-template-columns: minmax(0, 1fr) 370px;
  }
  .brand-description,
  .editor-shortcut {
    display: none;
  }
  .draft-heading,
  .draft-footer {
    padding-left: 22px;
    padding-right: 22px;
  }
  .example-row {
    margin-left: 22px;
    margin-right: 22px;
  }
  .prompt-editor {
    padding: 26px 22px;
    font-size: 17px;
  }
  .draft-name {
    gap: 8px;
  }
  .draft-status {
    font-size: 10px;
  }
  .draft-history {
    gap: 12px;
  }
}
@media (max-width: 860px) {
  .shell {
    padding: 0 18px;
  }
  .topbar {
    height: auto;
    min-height: 70px;
    flex-wrap: wrap;
    gap: 8px 14px;
    padding: 12px 0;
  }
  .brand-name {
    font-size: 22px;
  }
  .parent-brand {
    margin-left: auto;
    padding-left: 0;
    border: 0;
  }
  .parent-brand img {
    width: 106px;
  }
  .topbar nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    margin-left: 0;
    gap: 14px;
  }
  .topbar .outline-button {
    border: 0;
    background: none;
    padding: 8px 0;
  }
  .workspace-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
    padding: 22px 0 16px;
  }
  h1 {
    font-size: 24px;
  }
  #method-open {
    font-size: 11px;
  }
  .workspace {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
  }
  .draft-card {
    min-height: 470px;
  }
  .draft-heading {
    padding: 20px 20px 16px;
    align-items: flex-start;
  }
  .draft-name {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .draft-history {
    gap: 16px;
  }
  .draft-history button {
    font-size: 11px;
  }
  .example-row {
    margin: 0 20px;
    padding-bottom: 16px;
  }
  .prompt-editor {
    padding: 24px 20px;
    min-height: 230px;
    max-height: 500px;
  }
  .prompt-editor:empty::before {
    font-size: 16px;
  }
  .draft-footer {
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px 20px;
  }
  .draft-tools {
    gap: 14px;
  }
  .draft-tools button {
    font-size: 11px;
  }
  #review {
    display: flex;
    width: 100%;
  }
  #draft-feedback {
    padding: 10px 20px;
  }
  #analysis-panel {
    border-left: 0;
    border-top: 1px solid #d5dae2;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
    scroll-margin-top: 16px;
  }
  .page-footer {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px 20px;
    padding: 20px 0;
  }
  .page-footer > span:nth-child(2) {
    order: 3;
    width: 100%;
  }
  dialog {
    padding: 30px 24px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  button,
  a {
    transition:
      color 100ms ease,
      background-color 100ms ease;
  }
}
