/* resume-md-editor/src/styles.css */
:root {
  color: #17202a;
  background: #f4f6f8;
  font-family:
    Aptos,
    "Segoe UI",
    "Helvetica Neue",
    Arial,
    ui-sans-serif,
    system-ui,
    sans-serif;
  font-size: 16px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 320px;
}
button,
textarea,
select {
  font: inherit;
}
button {
  appearance: none;
  background: transparent;
  border: 1px solid transparent;
  color: inherit;
  cursor: pointer;
  min-height: 34px;
  padding: 4px 2px;
}
button.primary {
  background: #eef4f8;
  border-color: rgba(68, 112, 168, .28);
  color: #193a5e;
  font-weight: 650;
}
button:focus-visible {
  outline: 2px solid rgba(68, 112, 168, .35);
  outline-offset: 2px;
}
.shell {
  height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 18px;
  padding: 18px;
}
.startup-error {
  align-self: start;
  background: #fff;
  border: 1px solid rgba(146, 64, 14, .22);
  box-shadow: 0 18px 50px rgba(31, 41, 55, .08);
  max-width: 720px;
  padding: 22px;
}
.startup-error p {
  color: #6c7785;
  margin-top: 8px;
}
.startup-error pre {
  background: #f8f3ee;
  color: #7c2d12;
  margin: 16px 0 0;
  overflow: auto;
  padding: 12px;
  white-space: pre-wrap;
}
.topbar {
  align-items: end;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  min-width: 0;
}
h1,
p {
  margin: 0;
}
h1 {
  font-size: 24px;
  font-weight: 520;
  letter-spacing: 0;
}
.topbar p {
  color: #6c7785;
  font-size: 13px;
  margin-top: 6px;
}
.toolbar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.icon-button {
  align-items: center;
  border-color: rgba(84, 99, 120, .16);
  border-radius: 7px;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  padding: 0;
  transition:
    background-color .15s ease,
    border-color .15s ease,
    color .15s ease,
    box-shadow .15s ease;
  width: 34px;
}
.icon-button:hover {
  background: rgba(255, 255, 255, .72);
  border-color: rgba(84, 99, 120, .28);
  box-shadow: 0 5px 16px rgba(31, 41, 55, .06);
}
.icon-button svg {
  display: block;
  fill: none;
  height: 18px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 18px;
}
.divider {
  background: rgba(84, 99, 120, .18);
  height: 22px;
  width: 1px;
}
.select-field {
  align-items: center;
  color: #6c7785;
  display: flex;
  font-size: 12px;
  gap: 8px;
}
select {
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(84, 99, 120, .24);
  color: #17202a;
  min-height: 34px;
  outline: none;
}
.workspace {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) minmax(420px, .92fr);
  min-height: 0;
}
.editor-panel,
.preview-panel {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 0;
}
.panel-head {
  align-items: center;
  border-bottom: 1px solid rgba(84, 99, 120, .16);
  color: #6c7785;
  display: flex;
  font-size: 12px;
  justify-content: space-between;
  min-height: 32px;
}
textarea {
  background: transparent;
  border: 0;
  color: #17202a;
  font-family:
    "Cascadia Mono",
    "SFMono-Regular",
    Consolas,
    "Liberation Mono",
    Menlo,
    monospace;
  font-size: 13px;
  line-height: 1.65;
  min-height: 0;
  outline: none;
  padding: 14px 2px;
  resize: none;
  width: 100%;
}
.paper-scroll {
  min-height: 0;
  overflow: auto;
  padding: 18px 0;
}
.paper {
  background: #fff;
  box-shadow: 0 18px 50px rgba(31, 41, 55, .09);
  color: #17202a;
  margin: 0 auto;
  min-height: 297mm;
  padding: 17mm 18mm;
  width: 210mm;
}
.resume {
  font-family:
    Aptos,
    "Segoe UI",
    "Helvetica Neue",
    Arial,
    ui-sans-serif,
    system-ui,
    sans-serif;
  font-size: 11pt;
  line-height: 1.42;
}
.resume.compact {
  font-size: 10.2pt;
  line-height: 1.28;
  padding: 13mm 15mm;
}
.resume.modern {
  font-family:
    Aptos,
    "Segoe UI",
    "Helvetica Neue",
    Arial,
    ui-sans-serif,
    system-ui,
    sans-serif;
  font-size: 10.6pt;
  line-height: 1.4;
}
.resume h1 {
  border-bottom: 1px solid #cfd6df;
  font-family: inherit;
  font-size: 24pt;
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 6px;
  padding-bottom: 7px;
}
.resume h2 {
  border-bottom: 1px solid #d9dee6;
  font-size: 12pt;
  letter-spacing: .04em;
  margin: 15px 0 7px;
  padding-bottom: 3px;
  text-transform: uppercase;
}
.resume h3 {
  font-size: 11.4pt;
  margin: 10px 0 2px;
}
.resume p {
  color: inherit;
  margin: 5px 0;
}
.resume ul,
.resume ol {
  margin: 5px 0 7px 18px;
  padding: 0;
}
.resume li {
  margin: 2px 0;
}
.resume li p {
  margin: 0;
}
.resume .contains-task-list {
  list-style: none;
  margin-left: 0;
}
.resume .task-list-item {
  align-items: baseline;
  display: flex;
  gap: 7px;
}
.resume .task-list-item-checkbox {
  flex: 0 0 auto;
  margin: 0;
}
.resume a {
  color: #1e4e79;
  text-decoration: none;
}
.resume table {
  border-collapse: collapse;
  margin: 8px 0;
  width: 100%;
}
.resume th,
.resume td {
  border-bottom: 1px solid #e1e6ee;
  padding: 4px 6px 4px 0;
  text-align: left;
  vertical-align: top;
}
.resume code {
  background: #eef2f7;
  border-radius: 3px;
  font-family:
    "SFMono-Regular",
    Consolas,
    monospace;
  font-size: .92em;
  padding: 1px 4px;
}
.resume pre {
  background: #f6f8fb;
  border: 1px solid #e4e9f1;
  border-radius: 4px;
  overflow: auto;
  padding: 10px 11px;
}
.resume pre code {
  background: transparent;
  border-radius: 0;
  color: #1f2937;
  display: block;
  font-size: .9em;
  line-height: 1.55;
  padding: 0;
}
.hljs-keyword,
.hljs-selector-tag,
.hljs-built_in,
.hljs-name {
  color: #385f8f;
}
.hljs-string,
.hljs-title,
.hljs-section,
.hljs-attribute {
  color: #2f684e;
}
.hljs-comment,
.hljs-quote {
  color: #7a8491;
}
.hljs-number,
.hljs-literal,
.hljs-variable,
.hljs-template-variable {
  color: #8a5630;
}
.hljs-function,
.hljs-title.function_ {
  color: #5a4f8f;
}
.hljs-meta,
.hljs-symbol,
.hljs-bullet {
  color: #7a5a2a;
}
.resume blockquote {
  border-left: 3px solid #cfd6df;
  color: #586575;
  margin: 8px 0;
  padding-left: 10px;
}
.resume .task input {
  margin-right: 6px;
}
@media (max-width: 1180px) {
  .shell {
    height: auto;
    min-height: 100vh;
  }
  .workspace {
    grid-template-columns: 1fr;
  }
  .paper-scroll {
    overflow: visible;
  }
}
