:root {
  color-scheme: light;
  --ink: #20252b;
  --muted: #7b838d;
  --line: #e4e7eb;
  --panel: #262b30;
  --panel-deep: #202428;
  --accent: #254665;
  --stage: #e9ecef;
  --paper-shadow: 0 20px 55px rgba(29, 36, 43, 0.18), 0 2px 6px rgba(29, 36, 43, 0.08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

/* Source-style interaction layer: drawers, modal tools, and hover toolboxes. */
.feature-panel {
  position: fixed;
  top: 85px;
  left: 245px;
  z-index: 100;
  width: 260px;
  height: calc(100vh - 85px);
  max-height: none;
  padding: 0;
  margin: 0;
  overflow: auto;
  color: #47545e;
  background: #fff;
  border: 1px solid #d9e1e6;
  border-top: 0;
  border-left: 0;
  border-radius: 0 0 3px 0;
  box-shadow: 8px 14px 28px rgba(37, 52, 62, 0.16);
}

.feature-panel[hidden] {
  display: none;
}

.feature-panel[data-panel="toolbox"] {
  width: 188px;
}

.feature-panel[data-panel="template"] {
  width: 350px;
}

.feature-panel[data-panel="blocks"] {
  width: 680px;
}

.feature-panel[data-panel="tips"] {
  right: 0;
  left: auto;
  width: 400px;
  border-right: 0;
  border-left: 1px solid #d9e1e6;
  border-radius: 0 0 0 3px;
}

.feature-panel[data-panel="theme"] {
  top: 138px;
  left: 520px;
  width: 112px;
  height: 214px;
  border-top: 1px solid #d9e1e6;
  border-radius: 0 0 3px 3px;
}

.feature-panel[data-panel="theme"] .feature-panel-head {
  display: none;
}

.feature-panel[data-panel="theme"] .feature-panel-body {
  padding: 10px;
}

.feature-panel[data-panel="theme"] .panel-intro,
.feature-panel[data-panel="theme"] .theme-current span:last-child {
  display: none;
}

.feature-panel[data-panel="theme"] .theme-current {
  justify-content: center;
  margin-bottom: 10px;
}

.feature-panel[data-panel="theme"] .swatch-grid {
  grid-template-columns: repeat(3, 25px);
  gap: 8px;
}

.feature-panel.is-modal {
  top: 50%;
  left: 50%;
  width: 600px;
  height: auto;
  max-height: min(760px, calc(100vh - 40px));
  transform: translate(-50%, -50%);
  border: 1px solid #d9e1e6;
  border-radius: 3px;
  box-shadow: 0 18px 60px rgba(20, 28, 34, 0.28);
  isolation: isolate;
}

.feature-panel.is-modal::before {
  position: fixed;
  z-index: -1;
  inset: -100vh -100vw;
  content: "";
  background: rgba(21, 28, 33, 0.42);
}

.feature-panel.is-modal[data-panel="baseinfo"] {
  width: 684px;
}

.feature-panel.is-modal[data-panel="import"] {
  width: 450px;
}

.feature-panel.is-modal[data-panel="send"] {
  width: 520px;
}

.feature-panel.is-modal[data-panel="share"] {
  width: 500px;
}

.feature-panel.is-modal .feature-panel-head {
  padding: 18px 22px 13px;
}

.feature-panel.is-modal .feature-panel-body {
  padding: 16px 22px 22px;
}

.feature-panel[data-panel="toolbox"] .feature-panel-body,
.feature-panel[data-panel="history"] .feature-panel-body,
.feature-panel[data-panel="style"] .feature-panel-body,
.feature-panel[data-panel="tips"] .feature-panel-body {
  padding-right: 16px;
  padding-left: 16px;
}

.toolbox-links {
  display: grid;
  gap: 2px;
  margin: -2px -6px 14px;
}

.tool-link {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 39px;
  padding: 0 10px;
  color: #63737c;
  font-size: 12px;
  text-align: left;
  background: transparent;
  cursor: pointer;
  border-radius: 3px;
}

.tool-link:hover {
  color: #254665;
  background: #eef4f7;
}

.tool-link span {
  width: 20px;
  color: #7996a6;
  font-size: 17px;
  text-align: center;
}

.diagnostic-summary {
  display: block;
  padding: 12px 0 8px;
}

.diagnostic-summary strong,
.diagnostic-summary span {
  display: block;
}

.diagnostic-summary span {
  margin-top: 4px;
}

.history-tip {
  padding-bottom: 3px;
}

.history-list {
  margin-top: 10px;
}

.history-entry {
  position: relative;
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px;
  padding: 11px 0 11px 1px;
}

.history-entry::before {
  position: absolute;
  top: 26px;
  bottom: -1px;
  left: 5px;
  width: 1px;
  content: "";
  background: #e1e7ea;
}

.history-entry:last-child::before {
  display: none;
}

.history-dot {
  position: relative;
  z-index: 1;
  width: 10px;
  height: 10px;
  margin-top: 2px;
  background: #b6c8d1;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #c5d2d8;
}

.history-entry.latest .history-dot {
  background: #5e8aa1;
}

.history-copy {
  min-width: 0;
}

.history-copy strong,
.history-copy small {
  display: block;
}

.history-copy strong {
  color: #5b6b74;
  font-size: 11px;
  font-weight: 600;
}

.history-copy small {
  margin-top: 4px;
  overflow: hidden;
  color: #a0aab0;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-undo {
  padding: 3px 6px;
  color: #66889a;
  font-size: 10px;
  background: transparent;
  cursor: pointer;
  border: 1px solid #d0dee5;
  border-radius: 3px;
}

.history-undo:hover:not(:disabled) {
  color: #254665;
  background: #eef5f8;
}

.history-undo:disabled {
  color: #adb7bb;
  cursor: default;
  border-color: #e8edef;
}

.template-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.template-card {
  min-height: 193px;
  gap: 8px;
  padding: 8px;
  border-radius: 2px;
}

.template-card:hover .template-back,
.template-card.selected .template-back {
  opacity: 1;
}

.template-meta {
  display: block;
  min-width: 0;
}

.template-meta strong,
.template-meta small {
  display: block;
}

.template-meta small {
  margin-top: 3px;
  color: #a3adb2;
  font-size: 9px;
}

.template-back {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 3px 7px;
  color: #fff;
  font-size: 9px;
  background: var(--accent, #254665);
  opacity: 0;
  border-radius: 2px;
  transition: opacity 120ms ease;
}

.block-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.block-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 9px;
  color: #5c6c75;
  text-align: left;
  background: #fff;
  border: 1px solid #e0e7ea;
  border-radius: 3px;
  cursor: pointer;
}

.block-card:hover {
  background: #f4f8fa;
  border-color: #9ab4c2;
}

.block-card-preview {
  grid-column: 1 / -1;
  min-height: 82px;
  padding: 9px;
  overflow: hidden;
  color: #87959c;
  font-size: 9px;
  line-height: 1.55;
  background: #fafcfc;
  border: 1px solid #edf1f2;
}

.block-card-copy strong,
.block-card-copy small {
  display: block;
}

.block-card-copy strong {
  color: #4a5d67;
  font-size: 11px;
}

.block-card-copy small {
  margin-top: 3px;
  color: #9eaaaf;
  font-size: 9px;
}

.block-card-add {
  align-self: end;
  color: #7293a3;
  font-size: 20px;
  line-height: 1;
}

.custom-block-form,
.baseinfo-form {
  display: grid;
  gap: 12px;
}

.custom-block-form {
  grid-template-columns: 1fr auto;
  align-items: end;
  padding-top: 14px;
  margin-top: 14px;
  border-top: 1px solid #edf0f2;
}

.custom-block-form label,
.baseinfo-form label {
  display: grid;
  gap: 5px;
  color: #65737c;
  font-size: 10px;
}

.custom-block-form input,
.baseinfo-form input,
.baseinfo-form select {
  min-height: 34px;
  padding: 0 9px;
  color: #4c5b64;
  background: #fbfcfc;
  border: 1px solid #dce4e7;
  border-radius: 4px;
  outline: 0;
}

.custom-block-form input:focus,
.baseinfo-form input:focus,
.baseinfo-form select:focus {
  border-color: #8caebe;
  box-shadow: 0 0 0 3px rgba(81, 126, 151, 0.1);
}

.baseinfo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px 14px;
}

.baseinfo-extra,
.baseinfo-photo-row,
.baseinfo-actions,
.send-actions,
.send-two-columns {
  display: flex;
  align-items: end;
  gap: 9px;
}

.baseinfo-extra {
  padding-top: 3px;
}

.baseinfo-extra label {
  flex: 1;
}

.baseinfo-photo-row {
  align-items: center;
  padding-top: 4px;
  color: #65737c;
  font-size: 10px;
}

.baseinfo-actions,
.send-actions {
  justify-content: flex-end;
  padding-top: 4px;
}

.send-two-columns > label {
  flex: 1;
}

.send-checkbox {
  display: flex !important;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 6px;
}

.send-checkbox input {
  min-height: 0;
}

.send-form input[readonly] {
  color: #87979f;
  background: #f4f7f8;
}

.share-link-box {
  align-items: center;
}

.share-link-box > div {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.share-link-box small {
  color: #8d9aa0;
  font-size: 9px;
}

.share-options label > span {
  display: grid;
  gap: 2px;
}

.share-options label strong,
.share-options label small {
  display: block;
}

.share-options label strong {
  font-size: 11px;
  font-weight: 600;
}

.share-options label small {
  font-size: 9px;
}

.share-password small {
  color: #a0a9ae;
  font-size: 9px;
}

.tips-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  margin-bottom: 15px;
  color: #9da9ae;
  background: #f5f8f9;
  border: 1px solid #e2e9eb;
  border-radius: 3px;
}

.tips-search input {
  flex: 1;
  min-width: 0;
  color: #65737c;
  background: transparent;
  border: 0;
  outline: 0;
}

.tips-category {
  display: flex;
  justify-content: space-between;
  padding-bottom: 9px;
  color: #7f8d94;
  font-size: 10px;
  border-bottom: 1px solid #edf0f2;
}

.tips-category span {
  color: #41667d;
}

.tips-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.tips-list li {
  display: flex;
  gap: 8px;
  padding: 12px 0;
  color: #65737c;
  font-size: 11px;
  line-height: 1.55;
  border-bottom: 1px solid #f0f2f3;
}

.tips-list li span {
  color: #78a089;
  font-weight: 700;
}

.section-tools,
.item-tools {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #dfe7ea;
  border-radius: 3px;
  box-shadow: 0 3px 10px rgba(47, 67, 78, 0.08);
}

.section-tools {
  flex: 0 0 auto;
}

.section-tools .row-action,
.item-tools .row-action {
  padding: 3px 6px;
  white-space: nowrap;
}

.item-tools {
  top: -8px;
  right: 0;
}

.resume-item:hover > .item-tools,
.resume-item:focus-within > .item-tools,
.section-heading:hover .section-tools {
  z-index: 5;
}

.preview-overlay {
  position: fixed;
  z-index: 200;
  inset: 0;
  overflow: auto;
  padding: 56px 24px 70px;
  background: rgba(0, 0, 0, 0.9);
}

.preview-overlay[hidden] {
  display: none;
}

/* Final source-shell overrides. These come last because the original editor styles above
   are still reused by the resume canvas and would otherwise reintroduce the old sidebar. */
.workspace {
  display: block !important;
  width: 100%;
  min-height: calc(100vh - 85px);
}

.stage {
  display: block !important;
  width: 100%;
  min-width: 0;
  min-height: calc(100vh - 85px);
  background: #f5f7fa;
}

.editor-menu {
  position: relative !important;
  top: auto;
  left: auto;
  z-index: 1000;
  display: block;
  width: 100%;
  height: 55px;
  min-height: 55px;
  padding: 0;
  margin-top: 0;
  background: #fff;
  border: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.editor-menu-inner {
  position: relative;
  width: min(1150px, calc(100% - 30px));
  height: 55px;
  margin: 0 auto;
}

.editor-menu-group {
  position: absolute;
  top: 0;
  display: flex;
  align-items: stretch;
  height: 55px;
  gap: 0;
}

.editor-menu-group:first-child { left: 0; }
.editor-menu-group-right { right: 0; }

.editor-menu-button {
  position: relative;
  display: inline-flex;
  width: 72px;
  min-width: 0;
  height: 55px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 0;
  color: #333;
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
  background: #fff;
  border: 0;
  border-radius: 0;
}

.editor-menu-group:first-child .editor-menu-button:first-child { width: 66px; }
.editor-menu-group-right .editor-menu-button { width: 68px; }
.editor-menu-button:hover,
.editor-menu-button:focus-visible { color: #667cff; background: #f7f8ff; outline: 0; }
.editor-menu-button.is-primary { color: #fff; background: linear-gradient(135deg, #ffbd68, #ff964d); }
.editor-menu-button.is-primary:hover,
.editor-menu-button.is-primary:focus-visible { color: #fff; background: linear-gradient(135deg, #ffb158, #ff8b44); }
.menu-icon { width: 24px; height: 22px; color: currentcolor; font-size: 20px; line-height: 22px; text-align: center; }
.menu-badge { top: 3px; right: 4px; min-width: 14px; height: 14px; font-size: 9px; line-height: 14px; }

.paper-scroll {
  display: block !important;
  width: 100%;
  min-height: calc(100vh - 85px);
  padding: 30px 0 80px;
  overflow: visible;
}

.source-header {
  box-sizing: border-box;
  padding-top: 30px;
}

.paper-frame {
  display: block !important;
  width: 950px;
  min-width: 950px;
  min-height: 1345px;
  margin: 0 auto;
}

.resume-paper {
  display: block;
  width: 950px;
  min-height: 1345px;
  height: auto;
  padding: 70px 80px;
  margin: 0;
  overflow: visible;
  background: #fff;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.feature-panel {
  position: fixed !important;
  top: 85px;
  left: 0;
  z-index: 1010;
  width: 260px;
  height: 635px;
  max-height: none;
  padding: 0;
  margin: 0;
  overflow: auto;
  background: #fff;
  border: 0;
  border-radius: 0;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.12);
}

.feature-panel[data-panel="toolbox"] { width: 78px; height: 96px; overflow: visible; }
.feature-panel[data-panel="template"] { width: 350px; }
.feature-panel[data-panel="theme"] { width: 112px; height: 214px; }
.feature-panel[data-panel="tips"] { right: 0; left: auto; width: 400px; }
.feature-panel[data-panel="toolbox"] .feature-panel-head,
.feature-panel[data-panel="theme"] .feature-panel-head { display: none; }
.feature-panel[data-panel="toolbox"] .feature-panel-body { padding: 0; }
.feature-panel[data-panel="toolbox"] .toolbox-links { margin: 0; }
.feature-panel[data-panel="toolbox"] .tool-link { width: 78px; min-height: 32px; padding: 0; justify-content: center; color: #555; font-size: 12px; }
.feature-panel[data-panel="toolbox"] .tool-link span,
.feature-panel[data-panel="toolbox"] .diagnostic-summary,
.feature-panel[data-panel="toolbox"] .check-list { display: none; }
.feature-panel.is-modal {
  top: 50%;
  left: 50%;
  width: 600px;
  height: auto;
  max-height: min(760px, calc(100vh - 40px));
  border: 1px solid #e0e0e0;
  border-radius: 3px;
  box-shadow: 0 12px 45px rgba(0, 0, 0, 0.22);
  transform: translate(-50%, -50%);
}
.feature-panel.is-modal::before { z-index: -1; background: rgba(0, 0, 0, 0.35); }

.source-side-menu {
  position: fixed;
  z-index: 20;
  top: 85px;
  right: 0;
  display: flex;
  width: 70px;
  height: 635px;
  flex-direction: column;
  align-items: center;
  padding-top: 30px;
}

.page-info,
.page-scale { bottom: 1px; z-index: 30; }
.page-info { left: 100px; }
.page-scale { right: 100px; }

/* Last cascade layer: source page geometry must win over the legacy workspace rules above. */
html,
body {
  min-width: 1080px;
  background: #f5f7fa;
  color: #000;
  font-family: "Helvetica Neue", Helvetica, "PingFang SC", 微软雅黑, Tahoma, Arial, sans-serif;
}

.source-header {
  position: relative;
  z-index: 1000;
  height: 85px;
  padding-top: 30px;
  box-sizing: border-box;
}

.editor-menu {
  position: relative !important;
  top: auto;
  left: auto;
  z-index: 1000;
  display: block;
  width: 100%;
  height: 55px;
  min-height: 55px;
  padding: 0;
  margin: 0;
  background: #fff;
  border: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.editor-menu-inner {
  position: relative;
  width: min(1150px, calc(100% - 30px));
  height: 55px;
  margin: 0 auto;
}

.editor-menu-group {
  position: absolute;
  top: 0;
  display: flex;
  align-items: stretch;
  height: 55px;
  gap: 0;
}

.editor-menu-group:first-child { left: 0; }
.editor-menu-group-right { right: 0; }

.editor-menu-button {
  position: relative;
  display: inline-flex;
  width: 72px;
  min-width: 0;
  height: 55px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 0;
  color: #333;
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
  background: #fff;
  border: 0;
  border-radius: 0;
}

.editor-menu-group:first-child .editor-menu-button:first-child { width: 66px; }
.editor-menu-group-right .editor-menu-button { width: 68px; }
.editor-menu-button:hover,
.editor-menu-button:focus-visible { color: #667cff; background: #f7f8ff; outline: 0; }
.editor-menu-button.is-primary { color: #fff; background: linear-gradient(135deg, #ffbd68, #ff964d); }
.editor-menu-button.is-primary:hover,
.editor-menu-button.is-primary:focus-visible { color: #fff; background: linear-gradient(135deg, #ffb158, #ff8b44); }
.menu-icon { width: 24px; height: 22px; color: currentcolor; font-size: 20px; line-height: 22px; text-align: center; }
.menu-badge { top: 3px; right: 4px; min-width: 14px; height: 14px; font-size: 9px; line-height: 14px; }

.workspace,
.stage {
  display: block !important;
  width: 100%;
  min-width: 0;
  min-height: calc(100vh - 85px);
  background: #f5f7fa;
}

.paper-scroll {
  display: block !important;
  width: 100%;
  min-height: calc(100vh - 85px);
  padding: 30px 0 80px;
  overflow: visible;
}

.paper-frame {
  display: block !important;
  width: 950px;
  min-width: 950px;
  min-height: 1345px;
  margin: 0 auto;
}

.resume-paper {
  display: block;
  width: 950px;
  min-height: 1345px;
  height: auto;
  padding: 70px 80px;
  margin: 0;
  overflow: visible;
  background: #fff;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.feature-panel {
  position: fixed !important;
  top: 85px;
  left: 0;
  z-index: 1010;
  width: 260px;
  height: 635px;
  max-height: none;
  padding: 0;
  margin: 0;
  overflow: auto;
  background: #fff;
  border: 0;
  border-radius: 0;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.12);
}

.feature-panel[data-panel="toolbox"] { width: 78px; height: 96px; overflow: visible; }
.feature-panel[data-panel="template"] { width: 350px; }
.feature-panel[data-panel="theme"] { width: 112px; height: 214px; }
.feature-panel[data-panel="tips"] { right: 0; left: auto; width: 400px; }
.feature-panel[data-panel="toolbox"] .feature-panel-head,
.feature-panel[data-panel="theme"] .feature-panel-head { display: none; }
.feature-panel[data-panel="toolbox"] .feature-panel-body { padding: 0; }
.feature-panel[data-panel="toolbox"] .toolbox-links { margin: 0; }
.feature-panel[data-panel="toolbox"] .tool-link { width: 78px; min-height: 32px; padding: 0; justify-content: center; color: #555; font-size: 12px; }
.feature-panel[data-panel="toolbox"] .tool-link span,
.feature-panel[data-panel="toolbox"] .diagnostic-summary,
.feature-panel[data-panel="toolbox"] .check-list { display: none; }
.feature-panel.is-modal {
  top: 50%;
  left: 50%;
  width: 600px;
  height: auto;
  max-height: min(760px, calc(100vh - 40px));
  border: 1px solid #e0e0e0;
  border-radius: 3px;
  box-shadow: 0 12px 45px rgba(0, 0, 0, 0.22);
  transform: translate(-50%, -50%);
}
.feature-panel.is-modal::before { z-index: -1; background: rgba(0, 0, 0, 0.35); }

.source-side-menu {
  position: fixed;
  z-index: 20;
  top: 85px;
  right: 0;
  display: flex;
  width: 70px;
  height: 635px;
  flex-direction: column;
  align-items: center;
  padding-top: 30px;
}

.page-info,
.page-scale { bottom: 10px; z-index: 30; }
.page-info { left: 100px; }
.page-scale { right: 100px; }

.profile-account-card { height: 200px; margin-top: 60px; }
.profile-content-card { min-height: 1106px; padding-top: 10px; margin-top: 30px; }
.profile-tabs,
.profile-tab { height: 51px; }
.profile-resume-list { padding-top: 40px; }

.page-info,
.page-scale { bottom: 10px; }

.profile-account-card {
  height: 200px;
  margin-top: 60px;
}

.profile-content-card {
  min-height: 1106px;
  padding-top: 10px;
}

.profile-tabs {
  height: 51px;
}

.profile-tab {
  height: 51px;
}

.profile-resume-list {
  padding-top: 40px;
}

.profile-resume-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Source page shell: the editor deliberately has no resume list sidebar. */
html,
body {
  min-width: 1080px;
  min-height: 100%;
  background: #f5f7fa;
  color: #000;
  font-family: "Helvetica Neue", Helvetica, "PingFang SC", 微软雅黑, Tahoma, Arial, sans-serif;
}

.app-shell {
  min-height: 100vh;
  background: #f5f7fa;
}

.source-header {
  position: relative;
  z-index: 1000;
  height: 85px;
}

.source-header-top {
  position: fixed;
  z-index: 1001;
  top: 0;
  left: 0;
  display: grid;
  grid-template-columns: 30% 40% 30%;
  width: 100%;
  height: 30px;
  color: #eee;
  font-size: 14px;
  line-height: 30px;
  background: #667cff;
}

.source-header-top a,
.source-link-button {
  color: #eee;
  text-decoration: none;
  cursor: pointer;
}

.source-header-top a:hover,
.source-link-button:hover {
  color: #fff;
  text-decoration: underline;
}

.source-top-side {
  height: 30px;
  overflow: hidden;
  white-space: nowrap;
}

.source-top-left {
  padding-left: 10px;
}

.source-top-left a {
  font-size: 14px;
}

.source-top-center {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 30px;
  overflow: hidden;
  white-space: nowrap;
}

.source-resume-title {
  display: inline-block;
  max-width: 70%;
  overflow: hidden;
  color: #eee;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.source-resume-title:hover {
  text-decoration: underline;
}

.resume-status,
.save-state {
  display: none !important;
}

.source-save-button {
  display: none;
}

.source-top-right {
  padding-right: 10px;
  text-align: right;
}

.source-top-right a,
.source-link-button,
.source-separator {
  font-size: 12px;
  line-height: 30px;
}

.source-link-button {
  padding: 0;
  background: transparent;
}

.editor-menu {
  position: relative;
  z-index: 1000;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 55px;
  min-height: 55px;
  padding: 0;
  background: #fff;
  border: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.editor-menu-inner {
  position: relative;
  width: min(1150px, calc(100% - 30px));
  height: 55px;
  margin: 0 auto;
}

.editor-menu-group {
  position: absolute;
  top: 0;
  display: flex;
  align-items: stretch;
  height: 55px;
  gap: 0;
}

.editor-menu-group:first-child {
  left: 0;
}

.editor-menu-group-right {
  right: 0;
  justify-content: flex-end;
}

.editor-menu-button {
  position: relative;
  display: inline-flex;
  width: 72px;
  min-width: 0;
  height: 55px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 0;
  color: #333;
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
  background: #fff;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  transition: color 120ms ease, background 120ms ease;
}

.editor-menu-group:first-child .editor-menu-button:first-child {
  width: 66px;
}

.editor-menu-group-right .editor-menu-button {
  width: 68px;
}

.editor-menu-button:hover,
.editor-menu-button:focus-visible {
  color: #667cff;
  background: #f7f8ff;
  outline: 0;
}

.editor-menu-button.is-primary {
  color: #fff;
  background: linear-gradient(135deg, #ffbd68 0%, #ff964d 100%);
}

.editor-menu-button.is-primary:hover,
.editor-menu-button.is-primary:focus-visible {
  color: #fff;
  background: linear-gradient(135deg, #ffb158 0%, #ff8b44 100%);
}

.menu-icon {
  display: block;
  width: 24px;
  height: 22px;
  color: #333;
  font-size: 20px;
  font-weight: 400;
  line-height: 22px;
  text-align: center;
}

.editor-menu-button:hover .menu-icon,
.editor-menu-button:focus-visible .menu-icon,
.editor-menu-button.is-primary .menu-icon {
  color: inherit;
}

.menu-badge {
  top: 3px;
  right: 4px;
  min-width: 14px;
  height: 14px;
  font-size: 9px;
  line-height: 14px;
}

.workspace {
  display: block;
  min-height: calc(100vh - 85px);
  background: #f5f7fa;
}

.stage {
  position: relative;
  display: block;
  min-width: 0;
  min-height: calc(100vh - 85px);
  color: #000;
  background: #f5f7fa;
}

.paper-scroll {
  display: block;
  overflow: visible;
  min-height: calc(100vh - 85px);
  padding: 30px 0 80px;
}

.paper-frame {
  display: block;
  width: 950px;
  min-width: 0;
  min-height: 1345px;
  margin: 0 auto;
}

.resume-paper {
  width: 950px;
  min-height: 1345px;
  height: auto;
  padding: 70px 80px;
  margin: 0;
  overflow: visible;
  color: var(--resume-text, #333);
  font-family: var(--resume-font-family, "Helvetica Neue", Helvetica, "PingFang SC", 微软雅黑, Tahoma, Arial, sans-serif);
  font-size: var(--resume-font-size, 14.4px);
  line-height: normal;
  background: #fff;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.source-side-menu {
  position: fixed;
  z-index: 20;
  top: 85px;
  right: 0;
  display: flex;
  width: 70px;
  height: 635px;
  flex-direction: column;
  align-items: center;
  padding-top: 30px;
  background: transparent;
}

.source-side-item {
  display: block;
  width: 70px;
  height: 48px;
  padding: 0;
  margin: 0 0 30px;
  color: #999;
  font-size: 12px;
  line-height: 18px;
  text-align: center;
  background: transparent;
  cursor: pointer;
}

.source-side-item:hover {
  color: #667cff;
}

.side-icon {
  display: block;
  height: 30px;
  color: currentcolor;
  font-size: 28px;
  line-height: 30px;
}

.page-info,
.page-scale {
  position: fixed;
  z-index: 30;
  bottom: 1px;
  height: 20px;
  color: #999;
  font-size: 12px;
  line-height: 20px;
  background: #e2e4e7;
}

.page-info {
  left: 100px;
  padding: 0 6px;
}

.page-scale {
  right: 100px;
  display: flex;
  align-items: center;
  padding: 0;
}

.page-scale button {
  width: 24px;
  height: 20px;
  padding: 0;
  color: #999;
  font-size: 17px;
  line-height: 18px;
  background: transparent;
  cursor: pointer;
}

.page-scale button:hover {
  color: #667cff;
}

.page-scale-value {
  display: inline-block;
  width: 40px;
  text-align: center;
}

.feature-panel {
  position: fixed;
  z-index: 1010;
  top: 85px;
  left: 0;
  width: 260px;
  height: 635px;
  max-height: none;
  padding: 0;
  margin: 0;
  overflow: auto;
  color: #333;
  background: #fff;
  border: 0;
  border-radius: 0;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.12);
}

.source-header .feature-panel {
  position: fixed;
}

.feature-panel[data-panel="toolbox"] {
  width: 78px;
  height: 96px;
  overflow: visible;
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.16);
}

.feature-panel[data-panel="template"],
.feature-panel[data-panel="style"],
.feature-panel[data-panel="history"] {
  width: 260px;
}

.feature-panel[data-panel="template"] {
  width: 350px;
}

.feature-panel[data-panel="theme"] {
  top: 85px;
  width: 112px;
  height: 214px;
  border: 0;
  border-radius: 0;
}

.feature-panel[data-panel="tips"] {
  right: 0;
  left: auto;
  width: 400px;
}

.feature-panel[data-panel="toolbox"] .feature-panel-head,
.feature-panel[data-panel="theme"] .feature-panel-head {
  display: none;
}

.feature-panel[data-panel="toolbox"] .feature-panel-body {
  padding: 0;
}

.feature-panel[data-panel="toolbox"] .toolbox-links {
  margin: 0;
}

.feature-panel[data-panel="toolbox"] .tool-link {
  width: 78px;
  min-height: 32px;
  padding: 0;
  color: #555;
  font-size: 12px;
  justify-content: center;
}

.feature-panel[data-panel="toolbox"] .tool-link span {
  display: none;
}

.feature-panel[data-panel="toolbox"] .diagnostic-summary,
.feature-panel[data-panel="toolbox"] .check-list {
  display: none;
}

.feature-panel.is-modal {
  top: 50%;
  left: 50%;
  width: 600px;
  height: auto;
  max-height: min(760px, calc(100vh - 40px));
  border: 1px solid #e0e0e0;
  border-radius: 3px;
  box-shadow: 0 12px 45px rgba(0, 0, 0, 0.22);
  transform: translate(-50%, -50%);
}

.feature-panel.is-modal::before {
  z-index: -1;
  background: rgba(0, 0, 0, 0.35);
}

.feature-panel[data-panel="theme"] .feature-panel-body {
  padding: 10px;
}

.feature-panel[data-panel="theme"] .panel-intro,
.feature-panel[data-panel="theme"] .theme-current span:last-child {
  display: none;
}

.feature-panel[data-panel="theme"] .theme-current {
  justify-content: center;
  margin-bottom: 10px;
}

.feature-panel[data-panel="theme"] .swatch-grid {
  grid-template-columns: repeat(3, 25px);
  gap: 8px;
}

.section-tools,
.item-tools {
  border-radius: 0;
  box-shadow: none;
}

.profile-screen {
  min-height: 100vh;
  color: #333;
  background: #f5f7fa;
}

.profile-header {
  height: 60px;
  color: #fff;
  background: linear-gradient(110deg, #48c6ef 0%, #667cff 58%, #8757f5 100%);
}

.profile-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1150px, calc(100% - 30px));
  height: 60px;
  margin: 0 auto;
}

.profile-brand,
.profile-nav a,
.profile-user a {
  color: #fff;
  text-decoration: none;
}

.profile-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 205px;
  font-size: 25px;
}

.profile-brand-mark {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  color: #4ea7e6;
  font-family: Arial, sans-serif;
  font-size: 24px;
  font-weight: 800;
  background: #fff;
  border-radius: 7px;
}

.profile-nav {
  display: flex;
  align-items: center;
  gap: 62px;
  margin-right: auto;
  margin-left: 25px;
  font-size: 14px;
}

.profile-nav button {
  padding: 0;
  color: #fff;
  font-size: 20px;
  background: transparent;
  cursor: pointer;
}

.profile-user {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 205px;
  justify-content: flex-end;
  font-size: 13px;
}

.profile-avatar,
.profile-account-avatar {
  display: grid;
  place-items: center;
  color: #3c83cc;
  background: #e5effc;
  border-radius: 50%;
}

.profile-avatar {
  width: 36px;
  height: 36px;
  color: #fff;
  font-size: 24px;
  background: rgba(255, 255, 255, 0.45);
}

.profile-main {
  width: min(1150px, calc(100% - 30px));
  margin: 0 auto;
}

.profile-account-card {
  position: relative;
  display: flex;
  align-items: center;
  height: 198px;
  padding: 0 40px;
  margin-top: 59px;
  overflow: hidden;
  background: #fff;
  border-radius: 4px;
}

.profile-account-avatar {
  width: 132px;
  height: 132px;
  margin-right: 35px;
  color: #3c83cc;
  font-size: 62px;
  border: 6px solid #eef4ff;
}

.profile-account-copy {
  position: relative;
  z-index: 1;
}

.profile-account-copy h1 {
  margin: 0 0 13px;
  color: #333;
  font-size: 23px;
  font-weight: 400;
}

.profile-account-copy p {
  margin: 0 0 12px;
  color: #999;
  font-size: 12px;
}

.profile-light-button {
  min-width: 78px;
  height: 30px;
  padding: 0 13px;
  margin-right: 12px;
  color: #888;
  font-size: 12px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 15px;
  cursor: pointer;
}

.profile-light-button:hover {
  color: #667cff;
  border-color: #bfc8ff;
}

.profile-account-art {
  position: absolute;
  right: 75px;
  bottom: -35px;
  color: #dce5ff;
  font-size: 190px;
  line-height: 1;
  transform: rotate(-12deg);
}

.profile-content-card {
  min-height: 800px;
  padding: 0 30px 40px;
  margin-top: 0;
  background: #fff;
}

.profile-tabs {
  display: flex;
  align-items: center;
  height: 61px;
  border-bottom: 1px solid #eee;
}

.profile-tab {
  position: relative;
  height: 61px;
  padding: 0 25px;
  color: #666;
  font-size: 14px;
  background: transparent;
  cursor: pointer;
}

.profile-tab.active {
  color: #667cff;
  font-weight: 600;
}

.profile-tab.active::after {
  position: absolute;
  right: 13px;
  bottom: 0;
  left: 13px;
  height: 3px;
  content: "";
  background: #667cff;
}

.profile-tab b {
  margin-left: 4px;
  font-weight: 400;
}

.profile-new-button {
  height: 38px;
  padding: 0 18px;
  margin-left: auto;
  color: #fff;
  font-size: 13px;
  background: linear-gradient(110deg, #48c6ef, #667cff 62%, #8757f5);
  border-radius: 4px;
  cursor: pointer;
}

.profile-resume-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
  padding: 40px 0;
}

.profile-resume-card {
  position: relative;
  min-width: 0;
  background: #fff;
}

.profile-resume-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 200px;
  padding: 0;
  overflow: hidden;
  background: #f1f4fc;
  cursor: pointer;
}

.profile-resume-preview:hover {
  background: #eaf0ff;
}

.mini-paper {
  display: block;
  width: 168px;
  height: 190px;
  padding: 17px 13px;
  color: #333;
  text-align: left;
  background: #fff;
  box-shadow: 0 2px 8px rgba(60, 75, 110, 0.12);
  transform: scale(0.82);
}

.mini-paper::before {
  display: block;
  width: 100%;
  height: 7px;
  margin-bottom: 12px;
  content: "";
  background: var(--accent, #546b8a);
}

.mini-paper i,
.mini-paper b,
.mini-paper em {
  display: block;
  height: 4px;
  margin: 7px 0;
  background: #d9dee8;
}

.mini-paper i {
  width: 45%;
  height: 9px;
  margin-bottom: 10px;
  background: #37475c;
}

.mini-paper b {
  width: 85%;
  background: #526984;
}

.mini-paper em:nth-of-type(1) { width: 92%; }
.mini-paper em:nth-of-type(2) { width: 76%; }
.mini-paper em:nth-of-type(3) { width: 89%; }
.mini-paper em:nth-of-type(4) { width: 68%; }

.profile-resume-title {
  display: flex;
  align-items: center;
  height: 50px;
  padding: 0 18px;
  border-bottom: 1px solid #f1f1f1;
}

.profile-resume-title button {
  min-width: 0;
  overflow: hidden;
  padding: 0;
  color: #444;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: transparent;
  cursor: pointer;
}

.profile-resume-title button:hover {
  color: #667cff;
}

.profile-pencil {
  margin-left: 6px;
  color: #777;
  font-size: 14px;
}

.profile-resume-toolbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 55px;
  padding: 0 18px;
  color: #999;
  font-size: 12px;
}

.profile-more {
  padding: 0 4px;
  color: #999;
  font-size: 20px;
  line-height: 20px;
  background: transparent;
  cursor: pointer;
}

.profile-more:hover {
  color: #667cff;
}

.profile-resume-setting {
  position: absolute;
  z-index: 5;
  top: 35px;
  right: 10px;
  display: flex;
  flex-direction: column;
  min-width: 60px;
  padding: 4px 0;
  background: #fff;
  border: 1px solid #eee;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
}

.profile-resume-setting button {
  padding: 6px 12px;
  color: #666;
  font-size: 12px;
  text-align: left;
  background: #fff;
  cursor: pointer;
}

.profile-resume-setting button:hover {
  color: #667cff;
  background: #f5f7ff;
}

.profile-list-empty {
  grid-column: 1 / -1;
  padding: 100px 0;
  color: #888;
  text-align: center;
}

.profile-list-empty small {
  display: block;
  margin-top: 10px;
  color: #aaa;
}

.profile-footer {
  padding: 30px 0 35px;
  color: #aaa;
  font-size: 12px;
  text-align: center;
}

.profile-screen[hidden],
.app-shell[hidden] {
  display: none !important;
}

@media (max-width: 1220px) {
  .editor-menu-inner,
  .profile-header-inner,
  .profile-main {
    width: calc(100% - 30px);
  }

  .profile-resume-list {
    gap: 18px;
  }
}

.editor-menu {
  position: relative;
  z-index: 110;
}

.feature-panel.is-modal {
  z-index: 150;
}

.feature-panel[data-panel="toolbox"] {
  width: 112px;
  height: auto;
}

.feature-panel[data-panel="toolbox"] .feature-panel-body {
  padding: 10px 8px;
}

.feature-panel[data-panel="toolbox"] .diagnostic-summary,
.feature-panel[data-panel="toolbox"] .check-list {
  display: none;
}

#current-title {
  cursor: pointer;
}

#current-title:hover,
#current-title:focus {
  color: #315d80;
  outline: 0;
}

.resume-cover-page,
.resume-letter-page {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 1205px;
  flex-direction: column;
  justify-content: center;
  padding: 90px 80px;
  margin: -70px -80px 70px;
  color: var(--resume-text);
  text-align: center;
  break-after: page;
  page-break-after: always;
}

.resume-cover-page {
  align-items: center;
  background: linear-gradient(145deg, #f8fafb 0%, #fff 60%, #f0f5f7 100%);
}

.cover-inner {
  width: 74%;
  padding: 40px 38px;
  border: 1px solid rgba(37, 70, 101, 0.25);
}

.cover-rule {
  width: 58px;
  height: 4px;
  margin: 0 auto 28px;
  background: var(--accent);
}

.cover-title {
  min-height: 50px;
  color: var(--accent);
  font-size: 34px;
  font-weight: 700;
  line-height: 1.35;
}

.cover-subtitle {
  min-height: 27px;
  margin-top: 10px;
  color: #7c8990;
  font-size: 16px;
}

.cover-info-list {
  display: grid;
  gap: 5px;
  margin-top: 55px;
}

.cover-info-row {
  display: grid;
  grid-template-columns: 35% 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  text-align: left;
  border-bottom: 1px solid #edf0f1;
}

.cover-info-label {
  color: #89979e;
  font-size: 12px;
  text-align: right;
}

.cover-info-value {
  font-size: 13px;
}

.cover-add-row {
  min-height: 26px;
  margin-top: 13px;
}

.resume-letter-page {
  justify-content: flex-start;
  padding-top: 100px;
  text-align: left;
}

.letter-title {
  padding-bottom: 12px;
  margin-bottom: 28px;
  color: var(--accent);
  font-size: 25px;
  font-weight: 700;
  border-bottom: 1px solid var(--accent);
}

.letter-content {
  min-height: 360px;
  color: var(--resume-text);
  font-size: var(--resume-font-size, 14.4px);
  line-height: var(--resume-line-height, 1.3);
  text-align: left;
}

.cover-tools,
.letter-tools {
  position: absolute;
  top: 10px;
  right: 0;
  opacity: 0;
}

.resume-cover-page:hover .cover-tools,
.resume-letter-page:hover .letter-tools,
.resume-cover-page:focus-within .cover-tools,
.resume-letter-page:focus-within .letter-tools {
  opacity: 1;
}

.cover-info-row:hover .row-action,
.cover-info-row:focus-within .row-action {
  opacity: 1;
}

.cover-info-row .row-action {
  opacity: 0;
}

.preview-overlay-content .resume-cover-page,
.preview-overlay-content .resume-letter-page {
  margin-right: 0;
  margin-left: 0;
}

@media print {
  .cover-tools,
  .letter-tools,
  .cover-add-row {
    display: none !important;
  }
}

.preview-overlay-content {
  width: 950px;
  min-height: 1345px;
  margin: 0 auto;
}

.preview-overlay-content .resume-paper {
  margin: 0;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.32);
  transform: none;
}

.preview-overlay-close {
  position: fixed;
  top: 15px;
  right: 22px;
  z-index: 201;
  width: 32px;
  height: 32px;
  color: #dce6ea;
  font-size: 26px;
  line-height: 1;
  background: transparent;
  cursor: pointer;
}

.preview-overlay-close:hover {
  color: #fff;
}

@media (max-width: 1250px) {
  .feature-panel[data-panel="theme"] {
    left: 430px;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 1080px;
  min-height: 100%;
  margin: 0;
  background: var(--panel-deep);
  color: #eef1f4;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
}

.app-shell {
  min-height: 100vh;
  transition: filter 180ms ease;
}

.app-shell.behind-login {
  filter: blur(3px);
  pointer-events: none;
  user-select: none;
}

.topbar {
  display: flex;
  align-items: center;
  height: 72px;
  padding: 0 28px;
  background: #24282d;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 3px 16px rgba(0, 0, 0, 0.1);
}

.brand-lockup,
.topbar-actions,
.brand-name,
.breadcrumb,
.sidebar-heading,
.stage-toolbar,
.header-main,
.contact-list,
.section-heading,
.section-heading-line,
.item-grid,
.skill-grid,
.topbar-hint {
  display: flex;
  align-items: center;
}

.brand-lockup {
  flex: 0 0 245px;
  gap: 11px;
}

.brand-mark {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #fff;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 20px;
  background: #315d80;
  border-radius: 9px;
  box-shadow: 0 4px 12px rgba(49, 93, 128, 0.4);
}

.brand-name {
  gap: 8px;
  color: #f3f5f7;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-name span {
  padding: 2px 5px;
  color: #8fa5b6;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
  border: 1px solid #526371;
  border-radius: 3px;
}

.brand-subtitle {
  margin-top: 2px;
  color: #87909a;
  font-size: 10px;
  letter-spacing: 0.06em;
}

.topbar-hint {
  flex: 1;
  gap: 8px;
  color: #aab1b8;
  font-size: 12px;
}

.hint-dot {
  width: 7px;
  height: 7px;
  background: #78b999;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(120, 185, 153, 0.12);
}

.topbar-actions {
  gap: 8px;
}

.save-state {
  min-width: 72px;
  margin-right: 5px;
  color: #8e989f;
  font-size: 11px;
  text-align: right;
}

.save-state[data-state="saved"] {
  color: #80bd9b;
}

.save-state[data-state="dirty"],
.save-state[data-state="saving"] {
  color: #e0b875;
}

.save-state[data-state="error"] {
  color: #ea8c8c;
}

.button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 12px;
  color: #dce2e7;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  border-radius: 6px;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.button:hover,
.icon-button:hover {
  transform: translateY(-1px);
}

.button:active,
.icon-button:active {
  transform: translateY(0);
}

.button:disabled {
  color: #68717a;
  cursor: not-allowed;
  opacity: 0.6;
}

.button-primary {
  color: #fff;
  background: #315d80;
  box-shadow: 0 4px 12px rgba(17, 49, 73, 0.27);
}

.button-primary:hover {
  background: #3b6c92;
}

.button-quiet {
  color: #aeb6bd;
  background: transparent;
}

.button-quiet:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

.button-outline {
  color: #546271;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid #d8dde2;
}

.button-outline:hover {
  color: #254665;
  border-color: #9fb2c2;
}

.button-danger-outline {
  color: #b26464;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid #e1c6c6;
}

.button-danger-outline:hover {
  color: #fff;
  background: #b26464;
  border-color: #b26464;
}

.icon-button {
  width: 32px;
  padding: 0;
  color: #99a3ab;
  font-size: 18px;
  background: transparent;
}

.workspace {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  min-height: calc(100vh - 72px);
}

.sidebar {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 72px);
  padding: 26px 15px 18px;
  background: var(--panel);
  border-right: 1px solid rgba(255, 255, 255, 0.07);
}

.sidebar-heading {
  justify-content: space-between;
  padding: 0 10px 16px;
}

.eyebrow {
  color: #89939c;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.sidebar h1 {
  margin: 5px 0 0;
  color: #f1f3f5;
  font-size: 20px;
  font-weight: 650;
}

.count-badge {
  display: grid;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  place-items: center;
  color: #a5bdcd;
  font-size: 11px;
  font-weight: 700;
  background: #313a42;
  border-radius: 12px;
}

.resume-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.resume-card {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 12px;
  align-items: center;
  width: 100%;
  gap: 8px;
  min-height: 63px;
  padding: 9px 9px;
  color: #bac2c9;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease;
}

.resume-card:hover {
  background: rgba(255, 255, 255, 0.055);
}

.resume-card.active {
  color: #f0f3f5;
  background: #303941;
  border-color: #475560;
  box-shadow: inset 3px 0 0 #79a2bd;
}

.resume-card-icon {
  display: grid;
  width: 28px;
  height: 32px;
  place-items: center;
  color: #8aa8bb;
  font-size: 14px;
  background: #3a454d;
  border-radius: 5px;
}

.resume-card-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
}

.resume-card-copy strong {
  overflow: hidden;
  color: inherit;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.resume-card-copy small {
  overflow: hidden;
  color: #7e8992;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.active-mark {
  color: #7db293;
  font-size: 8px;
}

.list-empty {
  padding: 32px 10px;
  color: #7e878e;
  font-size: 12px;
  text-align: center;
}

.sidebar-footer {
  margin-top: auto;
}

.tip-card {
  display: flex;
  gap: 10px;
  margin: 20px 2px 12px;
  padding: 12px 10px;
  color: #b5bec5;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
}

.tip-icon {
  flex: 0 0 auto;
  color: #d4a867;
  font-size: 15px;
}

.tip-card strong {
  display: block;
  margin-bottom: 5px;
  color: #e0e4e7;
  font-size: 11px;
}

.tip-card p {
  margin: 0;
  color: #87919a;
  font-size: 10px;
  line-height: 1.55;
}

.storage-note {
  padding: 0 7px;
  color: #737e87;
  font-size: 10px;
}

.storage-note span {
  margin-right: 4px;
  color: #7da28f;
}

.stage {
  display: flex;
  min-width: 0;
  flex-direction: column;
  color: var(--ink);
  background: var(--stage);
}

.stage-toolbar {
  justify-content: space-between;
  min-height: 57px;
  padding: 0 26px;
  background: rgba(245, 247, 248, 0.94);
  border-bottom: 1px solid #dfe3e6;
}

.breadcrumb {
  gap: 10px;
  min-width: 0;
  color: #89939c;
  font-size: 12px;
}

.breadcrumb b {
  color: #c4cbd0;
  font-weight: 400;
}

.breadcrumb strong {
  overflow: hidden;
  color: #4c5965;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stage-actions {
  display: flex;
  gap: 7px;
}

.paper-scroll {
  overflow: auto;
  flex: 1;
  padding: 38px 44px 60px;
}

.paper-frame {
  display: flex;
  justify-content: center;
  min-width: 950px;
}

.resume-paper {
  width: 950px;
  min-height: 1345px;
  padding: var(--paper-margin-top) var(--paper-margin-right) var(--paper-margin-bottom) var(--paper-margin-left);
  overflow: hidden;
  color: var(--resume-text);
  font-family: var(--resume-font-family, "Helvetica Neue", Helvetica, "PingFang SC", 微软雅黑, Tahoma, Arial, sans-serif);
  font-size: 15px;
  line-height: normal;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  background: #fff;
  box-shadow: var(--paper-shadow);
  transform-origin: top center;
}

.resume-header {
  position: relative;
  min-height: 121px;
  padding-top: 40px;
  padding-bottom: 5px;
  margin-bottom: 0;
  border-bottom: 1px solid #d7dadd;
}

.header-main {
  justify-content: space-between;
  align-items: flex-start;
  min-height: 46px;
}

.header-name-wrap {
  min-width: 0;
}

.resume-name {
  display: inline-block;
  min-height: 46px;
  color: var(--resume-text);
  font-size: var(--resume-name-size, 36px);
  font-weight: 700;
  line-height: 40px;
  letter-spacing: normal;
}

.resume-headline {
  display: flex;
  align-items: baseline;
  margin-top: 8px;
  color: var(--accent);
  font-size: 15px;
  font-weight: 600;
}

.headline-value {
  display: inline-block;
  min-width: 100px;
}

.canvas-badge {
  margin-top: 5px;
  color: #a3a9ae;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.12em;
  text-align: right;
}

.canvas-badge small {
  color: #c1c5c8;
  font-size: 8px;
  letter-spacing: 0.08em;
}

.contact-list {
  flex-wrap: wrap;
  gap: 0;
  min-height: 20px;
  margin-top: 9px;
}

.contact-item {
  display: flex;
  align-items: baseline;
  min-height: 20px;
  padding: 0 10px;
  font-size: 14.4px;
  border-right: 1px solid #d0d3d5;
}

.contact-item:first-child {
  padding-left: 0;
}

.contact-item:last-child {
  border-right: 0;
}

.contact-label {
  margin-right: 0;
  color: var(--resume-text);
  font-size: inherit;
}

.contact-value {
  min-width: 18px;
  font-size: inherit;
}

.resume-section {
  position: relative;
  margin-bottom: 15px;
}

.section-heading {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 3px;
}

.section-heading-line {
  flex: 1;
  min-width: 0;
  gap: 10px;
}

.section-marker {
  position: relative;
  display: inline-block;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  background: var(--accent);
  border-radius: 50%;
}

.section-marker::after {
  position: absolute;
  top: 9px;
  left: 9px;
  width: 12px;
  height: 12px;
  content: "";
  background: #fff;
  border-radius: 50%;
}

.section-heading h2 {
  flex: 0 0 auto;
  min-width: 0;
  margin: 0;
  color: var(--accent);
  font-size: 22px;
  font-weight: 700;
  line-height: 20px;
}

.section-heading-line::after {
  flex: 1;
  height: 1px;
  margin-top: 5px;
  content: "";
  background: var(--accent);
  opacity: 1;
}

.section-tools,
.item-tools,
.item-footer-tools {
  opacity: 0;
  transition: opacity 130ms ease;
}

.section-heading:hover .section-tools,
.resume-item:hover > .item-tools,
.resume-item:focus-within > .item-tools,
.resume-item:hover > .item-footer-tools,
.resume-item:focus-within > .item-footer-tools {
  opacity: 1;
}

.row-action {
  padding: 2px 5px;
  color: #70889a;
  font-size: 10px;
  line-height: 1.4;
  background: transparent;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 3px;
}

.row-action:hover {
  color: #254665;
  background: #edf3f7;
  border-color: #c6d4de;
}

.resume-item {
  position: relative;
  padding: 2px 0 5px;
  margin-bottom: 3px;
  border-radius: 3px;
}

.resume-item:hover {
  background: rgba(37, 70, 101, 0.018);
}

.item-tools {
  position: absolute;
  top: 2px;
  right: -2px;
  z-index: 2;
}

.item-grid {
  display: grid;
  grid-template-columns: 29% 39% 32%;
  align-items: baseline;
  gap: 0;
  min-height: 23px;
}

.item-period {
  padding-right: 12px;
  color: var(--resume-text);
  font-size: 14.4px;
}

.item-primary {
  min-width: 0;
  padding-right: 10px;
  font-size: 14.4px;
  font-weight: 700;
}

.item-secondary {
  min-width: 0;
  color: #333;
  font-size: 14.4px;
  text-align: right;
}

.item-title {
  font-weight: 700;
}

.item-note {
  margin-top: 1px;
  color: #333;
  font-size: 14.4px;
  line-height: 18.72px;
}

.award-level {
  color: #333;
  font-weight: 700;
}

.award-line,
.skill-line {
  min-height: 24px;
  font-size: 14.4px;
  line-height: 18.72px;
}

.award-line .edit-block {
  display: inline;
  width: auto;
}

.award-date {
  color: #555;
}

.award-separator {
  white-space: pre;
}

.skill-line {
  position: relative;
  min-height: 22px;
  padding-left: 17px;
  color: #333;
}

.skill-line::before {
  position: absolute;
  top: 0;
  left: 2px;
  content: "•";
  color: #333;
  font-size: 14.4px;
  line-height: 18.72px;
}

.skill-line .edit-target {
  display: inline;
}

.skill-line .item-title {
  font-weight: 700;
}

.skill-line .skill-divider {
  padding: 0 3px;
}

.skill-line .item-drag-handle {
  position: absolute;
  left: -18px;
  margin-right: 0;
}

.skill-grid {
  display: grid;
  grid-template-columns: 29% 71%;
  align-items: baseline;
  min-height: 22px;
}

.skill-name {
  padding-right: 12px;
  font-size: 14px;
}

.skill-detail {
  min-width: 0;
  color: #4d5358;
  font-size: 13.5px;
}

.skill-divider {
  display: inline-block;
  padding: 0 6px;
  color: var(--accent);
}

.long-item {
  padding-bottom: 7px;
  margin-bottom: 4px;
}

.section-education .resume-item {
  padding: 1px 0 2px;
  margin-bottom: 1px;
}

.section-awards .resume-item {
  padding: 2px 0 3.5px;
  margin-bottom: 0;
}

.section-skills .resume-item {
  padding: 1px 0;
  margin-bottom: 1px;
}

.section-skills .skill-line {
  min-height: 22px;
  line-height: 18.72px;
}

.section-experience .long-item,
.section-projects .long-item {
  padding-bottom: 2px;
}

.evaluation-item > .drag-handle {
  position: absolute;
}

.evaluation-item {
  padding-bottom: 8px;
}

.item-intro,
.evaluation-text {
  margin-top: 2px;
  color: #333;
  font-size: 14.4px;
  line-height: 18.72px;
}

.item-intro > .edit-block,
.item-note > .edit-block,
.evaluation-item > .edit-block {
  padding: 3px 0;
  margin: 1px 0;
}

.item-intro p,
.item-note p,
.evaluation-text p,
.item-intro div,
.item-note div,
.evaluation-text div {
  margin: 0;
}

.item-intro ul,
.item-intro ol,
.item-note ul,
.item-note ol,
.evaluation-text ul,
.evaluation-text ol {
  padding-left: 16px;
  margin: 2px 0;
}

.item-bullets {
  padding: 0 0 0 19px;
  margin: 2px 0 0;
}

.item-bullets li {
  position: relative;
  display: list-item;
  padding: 0;
  margin: 0;
  color: #333;
  font-size: 14.4px;
  line-height: 18.72px;
}

.item-bullets li .edit-target {
  display: inline;
  width: auto;
}

.bullet-mark {
  display: none;
}

.item-bullets li .row-action {
  position: absolute;
  top: 0;
  right: 0;
  opacity: 0;
}

.item-bullets li:hover .row-action,
.item-bullets li:focus-within .row-action {
  opacity: 1;
}

.item-footer-tools {
  position: absolute;
  right: 0;
  bottom: -18px;
  min-height: 0;
  height: 0;
  padding-left: 15px;
}

.section-empty {
  padding: 8px 0 11px 13px;
  color: #9aa0a4;
  font-size: 12px;
  font-style: italic;
}

.edit-target {
  display: inline-block;
  min-width: 12px;
  max-width: 100%;
  min-height: 1em;
  padding: 0 1px;
  vertical-align: baseline;
  border: 1px solid transparent;
  border-radius: 2px;
  outline: 0;
  cursor: text;
  transition: background 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.edit-target:hover {
  background: #f2f6f8;
  border-color: #dce7ed;
}

.edit-target:focus {
  background: #f7fbfd;
  border-color: #9fbaca;
  box-shadow: 0 0 0 2px rgba(80, 130, 157, 0.12);
}

.edit-target:empty::before {
  color: #aeb7bd;
  font-size: 0.84em;
  font-weight: 400;
  content: attr(data-placeholder);
  pointer-events: none;
}

.edit-block {
  display: block;
  width: 100%;
  white-space: pre-wrap;
}

.evaluation-item {
  padding-right: 0;
}

.editor-menu {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  min-height: 66px;
  padding: 0 26px;
  background: #f7f8f9;
  border-bottom: 1px solid #dfe3e6;
  box-shadow: 0 2px 8px rgba(39, 49, 58, 0.04);
}

.editor-menu-group {
  display: flex;
  align-items: stretch;
  gap: 3px;
}

.editor-menu-group-right {
  justify-content: flex-end;
}

.editor-menu-button {
  position: relative;
  display: inline-flex;
  min-width: 62px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 7px 9px 6px;
  color: #6d7880;
  font-size: 10px;
  line-height: 1;
  background: transparent;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 140ms ease, background 140ms ease, border-color 140ms ease;
}

.editor-menu-button:hover {
  color: #254665;
  background: #eef3f6;
  border-bottom-color: #9eb8c8;
}

.menu-icon {
  color: #7895a7;
  font-size: 17px;
  line-height: 1;
}

.editor-menu-button:hover .menu-icon {
  color: #254665;
}

.menu-badge {
  position: absolute;
  top: 7px;
  right: 7px;
  display: grid;
  min-width: 15px;
  height: 15px;
  padding: 0 3px;
  place-items: center;
  color: #fff;
  font-size: 9px;
  background: #ca7b70;
  border-radius: 8px;
}

.disabled-menu {
  opacity: 0.52;
}

.feature-panel {
  position: relative;
  z-index: 5;
  width: min(720px, calc(100% - 52px));
  max-height: min(590px, calc(100vh - 205px));
  padding: 17px 20px 19px;
  margin: 12px 26px 0;
  overflow: auto;
  color: #47545e;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid #d9e1e6;
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(37, 52, 62, 0.14);
}

.feature-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid #edf0f2;
}

.panel-kicker {
  color: #9aa7af;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.feature-panel h2 {
  margin: 4px 0 0;
  color: #34434e;
  font-size: 17px;
  font-weight: 700;
}

.panel-close {
  width: 27px;
  height: 27px;
  color: #89969e;
  font-size: 22px;
  line-height: 1;
  background: transparent;
  cursor: pointer;
  border-radius: 5px;
}

.panel-close:hover {
  color: #254665;
  background: #eef3f6;
}

.feature-panel-body {
  padding-top: 14px;
}

.panel-intro,
.panel-note {
  margin: 0 0 14px;
  color: #87939b;
  font-size: 11px;
  line-height: 1.55;
}

.panel-note {
  margin: 12px 0 0;
  font-size: 10px;
}

.toolbox-grid,
.download-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.download-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-card {
  display: flex;
  min-height: 92px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 5px;
  padding: 12px;
  color: #5a6871;
  text-align: left;
  background: #f7fafb;
  border: 1px solid #e1e8ec;
  border-radius: 6px;
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
}

.feature-card:hover {
  background: #f0f6f9;
  border-color: #a9c0cd;
  transform: translateY(-1px);
}

.feature-card > span {
  color: #7397aa;
  font-size: 20px;
  font-weight: 700;
}

.feature-card strong {
  color: #41515c;
  font-size: 12px;
}

.feature-card small {
  color: #98a2a8;
  font-size: 9px;
  line-height: 1.35;
}

.diagnostic-summary,
.theme-current,
.history-actions,
.style-toggles,
.share-actions,
.share-link-box {
  display: flex;
  align-items: center;
}

.diagnostic-summary {
  justify-content: space-between;
  padding: 15px 0 8px;
  margin-top: 9px;
  color: #64737d;
  font-size: 11px;
  border-top: 1px solid #edf0f2;
}

.diagnostic-summary span {
  color: #9aa5ac;
  font-size: 10px;
}

.check-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  padding: 0;
  margin: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 0;
  color: #76838b;
  font-size: 11px;
}

.check-list li span {
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  color: #fff;
  font-size: 10px;
  background: #79ae91;
  border-radius: 50%;
}

.check-list li.warn span {
  background: #d1a066;
}

.history-actions {
  gap: 7px;
  flex-wrap: wrap;
}

.history-actions .panel-note {
  margin: 0 0 0 4px;
}

.history-list {
  margin-top: 15px;
  border-top: 1px solid #edf0f2;
}

.history-entry {
  display: flex;
  justify-content: space-between;
  padding: 10px 2px;
  color: #66757e;
  font-size: 11px;
  border-bottom: 1px solid #f0f2f3;
}

.history-entry small {
  color: #a3adb2;
  font-size: 10px;
}

.panel-loading,
.panel-empty {
  padding: 20px 0 4px;
  color: #9ba5aa;
  font-size: 11px;
  text-align: center;
}

.template-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.template-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  color: #52616a;
  text-align: left;
  background: #fff;
  border: 1px solid #e1e7ea;
  border-radius: 6px;
  cursor: pointer;
}

.template-card:hover,
.template-card.selected {
  border-color: #8eacbc;
  box-shadow: 0 3px 12px rgba(46, 75, 92, 0.1);
}

.template-card strong {
  font-size: 11px;
}

.template-card small {
  min-height: 26px;
  color: #99a3a9;
  font-size: 9px;
  line-height: 1.4;
}

.template-card mark {
  position: absolute;
  top: 7px;
  right: 7px;
  padding: 2px 4px;
  color: #5d9278;
  font-size: 8px;
  background: #e9f5ee;
  border-radius: 3px;
}

.template-preview {
  display: block;
  height: 108px;
  padding: 12px 10px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e4e8ea;
  box-shadow: inset 0 0 0 1px #fafafa;
}

.template-preview i,
.template-preview b,
.template-preview em {
  display: block;
  height: 4px;
  margin-bottom: 7px;
  background: #d6dce0;
}

.template-preview i {
  width: 52%;
  height: 10px;
  background: var(--preview-accent);
}

.template-preview b {
  width: 78%;
  height: 2px;
  margin: 11px 0 9px;
  background: var(--preview-accent);
}

.template-preview em:nth-of-type(1) { width: 88%; }
.template-preview em:nth-of-type(2) { width: 72%; }
.template-preview em:nth-of-type(3) { width: 93%; }
.template-compact { padding-top: 8px; }
.template-compact em { margin-bottom: 4px; }
.template-minimal i { background: #26323a; }
.template-minimal b { background: #d4dadd; }
.template-split { padding-left: 26px; border-left: 10px solid var(--preview-accent); }

.theme-current {
  gap: 8px;
  margin-bottom: 12px;
  color: #65747d;
  font-size: 11px;
}

.current-color {
  width: 21px;
  height: 21px;
  background: var(--swatch);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #cdd6da;
}

.swatch-grid {
  display: grid;
  grid-template-columns: repeat(9, 25px);
  gap: 9px;
}

.color-swatch {
  width: 25px;
  height: 25px;
  padding: 0;
  background: var(--swatch);
  border: 3px solid #fff;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 0 1px #d8e0e3;
}

.color-swatch:hover,
.color-swatch.selected {
  box-shadow: 0 0 0 2px #7899aa;
}

.style-form {
  display: grid;
  gap: 13px;
}

.setting-row,
.range-row,
.send-form label,
.share-password {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #65737c;
  font-size: 10px;
}

.setting-row {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.setting-row select,
.send-form input,
.send-form textarea,
.share-password input,
.public-unlock input {
  min-height: 34px;
  padding: 0 9px;
  color: #4c5b64;
  background: #fbfcfc;
  border: 1px solid #dce4e7;
  border-radius: 4px;
  outline: 0;
}

.setting-row select {
  width: 210px;
}

.setting-row select:focus,
.send-form input:focus,
.send-form textarea:focus,
.share-password input:focus,
.public-unlock input:focus {
  border-color: #8caebe;
  box-shadow: 0 0 0 3px rgba(81, 126, 151, 0.1);
}

.setting-block {
  display: grid;
  gap: 8px;
  color: #65737c;
  font-size: 10px;
}

/* 数字框 + 滑块并排：数字框负责精确输入，滑块负责快速试。
   原站也是这套组合，只有滑块时用户既看不到当前值也没法敲 14.4 这种小数。 */
.range-control {
  display: flex;
  align-items: center;
  gap: 9px;
}

.range-control input[type="range"] {
  flex: 1;
  min-width: 0;
  accent-color: #658da4;
}

.number-field {
  width: 62px;
  min-height: 28px;
  padding: 0 3px 0 7px;
  color: #4c5b64;
  font-size: 11px;
  text-align: center;
  background: #fbfcfc;
  border: 1px solid #dce4e7;
  border-radius: 4px;
  outline: 0;
}

.number-field:focus {
  border-color: #8caebe;
  box-shadow: 0 0 0 3px rgba(81, 126, 151, 0.1);
}

.setting-row .number-field {
  width: 210px;
  text-align: left;
}

.style-toggles {
  gap: 7px;
  padding-top: 2px;
}

.button-wide {
  width: 100%;
}

.import-mode,
.share-options {
  display: grid;
  gap: 8px;
  margin: 13px 0 15px;
}

.import-mode label,
.share-options label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #63727b;
  font-size: 11px;
}

.share-options small {
  color: #a0a9ae;
  font-size: 9px;
}

.send-form {
  display: grid;
  gap: 10px;
}

.send-form textarea {
  min-height: 105px;
  padding-top: 8px;
  resize: vertical;
}

.share-password {
  max-width: 360px;
}

.share-actions {
  gap: 8px;
  margin-top: 15px;
}

.share-link-box {
  justify-content: space-between;
  gap: 12px;
  padding: 10px;
  margin-top: 15px;
  color: #587688;
  font-size: 10px;
  background: #f3f8fa;
  border: 1px solid #dce9ed;
  border-radius: 5px;
}

.share-link-box span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 复刻原站 FishEditor 浮动工具条：浅灰底、两行、雪碧图线性图标。
   尺寸与配色取自原站计算样式：padding 2px / #f5f5f5 / 1px #868686 / 圆角 3px / 0 0 10px 阴影 */
.rich-toolbar {
  position: fixed;
  z-index: 30;
  padding: 2px;
  background: #f5f5f5;
  border: 1px solid #868686;
  border-radius: 3px;
  box-shadow: 0 0 10px #868686;
  font-size: 12px;
}

.tb-row {
  display: flex;
  align-items: center;
}

.tb-wrap {
  display: block;
  margin: 5px;
  line-height: 0;
}

/* 图标来自 16x2688 的竖条雪碧图，每格 32px 高 */
.tb-btn {
  display: block;
  width: 21px;
  height: 21px;
  padding: 2px;
  box-sizing: border-box;
  background-image: url("/img/fishEditor.png");
  background-repeat: no-repeat;
  border-radius: 2px;
  cursor: pointer;
}

.tb-btn:hover {
  background-color: #e3e3e3;
}

.tb-btn[data-command="bold"] { background-position: 50% -31px; }
.tb-btn[data-command="italic"] { background-position: 50% -63px; }
.tb-btn[data-command="underline"] { background-position: 50% -191px; }
.tb-btn[data-command="justifyLeft"] { background-position: 50% -1631px; }
.tb-btn[data-command="justifyCenter"] { background-position: 50% -1599px; }
.tb-btn[data-command="justifyRight"] { background-position: 50% -1663px; }
.tb-btn[data-command="insertUnorderedList"] { background-position: 50% -703px; }
.tb-btn[data-command="insertOrderedList"] { background-position: 50% -767px; }
.tb-btn[data-command="createLink"] { background-position: 50% -1759px; }
.tb-btn[data-command="unlink"] { background-position: 50% -1791px; }
.tb-btn[data-command="specialChar"] { background-position: 2px -2431px; }
.tb-btn[data-command="insertImage"] { background-position: 50% -1502px; }

.tb-text-btn {
  width: auto;
  min-width: 21px;
  padding: 0 4px;
  color: #474747;
  font-size: 12px;
  line-height: 21px;
  text-align: center;
  text-decoration: none;
  background-image: none;
}

/* 文字颜色：A 图标 + 一条跟随当前颜色的下划线 */
.tb-color-wrap {
  position: relative;
  display: block;
  width: 33px;
  height: 21px;
  cursor: pointer;
}

.tb-color-wrap input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  opacity: 0;
  cursor: pointer;
}

.tb-color-a {
  display: block;
  width: 33px;
  height: 21px;
  box-sizing: border-box;
  background: url("/img/fishEditor.png") no-repeat 2px -543px;
  border-bottom: 3px solid var(--tb-color, #333);
}

/* 原生 select 去掉系统外观，换成原站那种"文字 + 小三角"。
   必须固定宽度：select 的宽度由最长选项决定，"Microsoft YaHei" 会把
   "字体"撑得很宽，三角就被甩到很远，和原站紧凑的两行完全不像。 */
.tb-select {
  width: 52px;
  height: 21px;
  padding: 0 13px 0 4px;
  color: #474747;
  font-size: 12px;
  line-height: 21px;
  text-overflow: ellipsis;
  background-color: #f5f5f5;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5'%3E%3Cpath d='M0 0l4 5 4-5z' fill='%23474747'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 3px center;
  border: 1px solid transparent;
  border-radius: 2px;
  outline: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.tb-select-sm {
  width: 48px;
}

.tb-select:hover {
  background-color: #e3e3e3;
}

.tb-select option {
  color: #333;
  background: #fff;
}

/* 内嵌输入条，替代 window.prompt */
.rich-inline-prompt {
  position: fixed;
  z-index: 31;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 8px;
  background: #26343e;
  border: 1px solid #41535e;
  border-radius: 6px;
  box-shadow: 0 9px 22px rgba(25, 38, 47, 0.28);
}

.rich-inline-prompt span {
  color: #a9bcc6;
  font-size: 11px;
  white-space: nowrap;
}

.rich-inline-prompt input {
  width: 186px;
  height: 26px;
  padding: 0 7px;
  color: #eaf1f5;
  font-size: 11px;
  background: #1b262d;
  border: 1px solid #41535e;
  border-radius: 4px;
  outline: 0;
}

.rich-inline-prompt input:focus {
  border-color: #6d93a8;
}

.rich-inline-prompt button {
  height: 26px;
  padding: 0 9px;
  color: #dbe5ea;
  font-size: 11px;
  background: transparent;
  border: 1px solid #4a5f6b;
  border-radius: 4px;
  cursor: pointer;
}

.rich-inline-prompt button[data-inline="ok"] {
  color: #fff;
  background: #3d7ea6;
  border-color: #3d7ea6;
}

.rich-inline-prompt button:hover {
  filter: brightness(1.15);
}

.drag-handle {
  display: inline-block;
  color: #a8b6bd;
  font-size: 11px;
  letter-spacing: -3px;
  cursor: grab;
  opacity: 0;
  transition: opacity 120ms ease, color 120ms ease;
}

.drag-handle:active {
  cursor: grabbing;
}

.section-heading:hover .drag-handle,
.resume-item:hover .item-drag-handle,
.drag-handle:focus {
  color: #7191a1;
  opacity: 1;
}

.item-drag-handle {
  margin-right: 5px;
  vertical-align: middle;
}

.hidden-label {
  padding: 2px 5px;
  color: #a18155;
  font-size: 9px;
  background: #fff6e7;
  border-radius: 3px;
}

.section-hidden {
  padding: 7px 8px 4px;
  margin-right: -8px;
  margin-left: -8px;
  background: repeating-linear-gradient(135deg, rgba(183, 146, 92, 0.035), rgba(183, 146, 92, 0.035) 5px, transparent 5px, transparent 10px);
  border: 1px dashed #d7c8ad;
  border-radius: 5px;
}

.section-hidden .section-items,
.section-hidden .section-tools {
  opacity: 0.48;
}

.add-section-row {
  height: 0;
  padding: 0;
  text-align: center;
  border-top: 0;
}

.add-section-row .row-action {
  position: relative;
  top: 8px;
}

.resume-photo-slot {
  position: relative;
  display: flex;
  width: 76px;
  height: 94px;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 1px dashed #cbd8de;
  border-radius: 3px;
}

.resume-photo-slot:not(.has-photo) {
  width: 0;
  height: 0;
  overflow: visible;
  border: 0;
}

.resume-photo-slot:not(.has-photo) .photo-placeholder {
  position: absolute;
  top: 0;
  right: 0;
  opacity: 0;
  white-space: nowrap;
}

.resume-header:hover .resume-photo-slot:not(.has-photo) .photo-placeholder,
.resume-photo-slot:not(.has-photo):focus-within .photo-placeholder {
  opacity: 1;
}

.resume-photo-slot.has-photo {
  border-style: solid;
  border-color: #e1e5e7;
}

.resume-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2px;
}

.photo-placeholder {
  padding: 4px;
  color: #9aabb4;
  font-size: 9px;
  background: transparent;
  cursor: pointer;
}

.photo-placeholder:hover {
  color: var(--accent);
}

.photo-remove {
  position: absolute;
  top: -8px;
  right: -8px;
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  color: #fff;
  font-size: 12px;
  background: #b87872;
  border: 2px solid #fff;
  border-radius: 50%;
  cursor: pointer;
}

.header-edit-hint {
  display: none;
  color: #b1b8bc;
  font-size: 8px;
  letter-spacing: 0.04em;
  text-align: right;
}

.resume-paper[data-template="minimal"] .section-marker,
.resume-paper[data-template="minimal"] .section-heading-line::after {
  background: #b5bdc2;
}

.resume-paper[data-template="minimal"] .section-heading h2 {
  color: var(--resume-text);
}

.resume-paper[data-template="compact"] .resume-section {
  margin-bottom: 8px;
}

.resume-paper[data-template="compact"] .section-heading h2 {
  font-size: 18px;
}

.resume-paper[data-template="compact"] .resume-header {
  padding-bottom: 9px;
  margin-bottom: 10px;
}

.resume-paper[data-template="split"] .contact-list {
  padding: 8px 10px;
  background: #f5f8f9;
  border-left: 3px solid var(--accent);
}

.resume-paper[data-template="split"] .contact-item:first-child {
  padding-left: 0;
}

.resume-section {
  margin-bottom: var(--resume-block-space, 0px);
}

.public-mode .topbar,
.public-mode .sidebar,
.public-mode .stage-toolbar,
.public-mode .editor-menu,
.public-mode .feature-panel,
.public-mode .rich-toolbar,
.public-mode .add-section-row,
.public-mode .header-edit-hint,
.public-mode .section-tools,
.public-mode .item-tools,
.public-mode .item-footer-tools,
.public-mode .drag-handle,
.public-mode .photo-placeholder,
.public-mode .photo-remove {
  display: none !important;
}

.public-mode .item-bullets .row-action,
.public-mode .edit-target:empty::before {
  display: none !important;
  content: none;
}

.public-mode .workspace,
.public-mode .stage,
.public-mode .paper-scroll {
  display: block;
  min-height: 100vh;
  background: #e9ecef;
}

.public-mode .paper-scroll {
  padding: 45px 24px 70px;
}

.public-mode .paper-frame {
  margin: 0 auto;
}

.public-mode .edit-target {
  padding: 0;
  border-color: transparent;
  cursor: default;
  pointer-events: none;
}

.public-mode .section-hidden {
  display: none;
}

.public-mode .resume-paper {
  box-shadow: 0 20px 55px rgba(29, 36, 43, 0.18), 0 2px 6px rgba(29, 36, 43, 0.08);
}

.public-unlock {
  display: flex;
  min-height: 420px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #64727b;
  text-align: center;
}

.public-lock {
  display: grid;
  width: 55px;
  height: 55px;
  margin-bottom: 16px;
  place-items: center;
  color: #7898a9;
  font-size: 24px;
  background: #edf4f7;
  border-radius: 50%;
}

.public-unlock h2 {
  margin: 0 0 7px;
  color: #42515b;
  font-size: 18px;
}

.public-unlock p {
  margin: 0 0 18px;
  color: #929da3;
  font-size: 11px;
}

.public-unlock form {
  display: flex;
  gap: 7px;
}

.public-unlock input {
  width: 180px;
}

.preview-mode .topbar,
.preview-mode .sidebar,
.preview-mode .stage-toolbar,
.preview-mode .editor-menu,
.preview-mode .feature-panel,
.preview-mode .rich-toolbar,
.preview-mode .add-section-row,
.preview-mode .header-edit-hint,
.preview-mode .section-tools,
.preview-mode .item-tools,
.preview-mode .item-footer-tools,
.preview-mode .drag-handle,
.preview-mode .photo-placeholder,
.preview-mode .photo-remove {
  display: none !important;
}

.preview-mode .item-bullets .row-action,
.preview-mode .edit-target:empty::before {
  display: none !important;
  content: none;
}

.preview-mode .workspace,
.preview-mode .stage,
.preview-mode .paper-scroll {
  min-height: 100vh;
  background: #e9ecef;
}

.preview-mode .paper-scroll {
  padding-top: 45px;
}

.preview-exit {
  position: fixed;
  top: 18px;
  right: 22px;
  z-index: 25;
  height: 32px;
  padding: 0 12px;
  color: #e9f0f3;
  font-size: 11px;
  background: #2f4654;
  border: 1px solid #627b89;
  border-radius: 5px;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(33, 49, 59, 0.2);
}

.preview-exit:hover {
  background: #3e5e70;
}

.public-mode .preview-exit,
.preview-mode .preview-exit[hidden] {
  display: none !important;
}

.preview-mode .edit-target {
  padding: 0;
  border-color: transparent;
  cursor: default;
}

.award-line > .edit-block {
  display: inline !important;
  width: auto;
}

.preview-mode .section-hidden {
  display: none;
}

.toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  z-index: 20;
  padding: 10px 15px;
  color: #fff;
  font-size: 12px;
  background: #2e3941;
  border: 1px solid #4b5b66;
  border-radius: 7px;
  box-shadow: 0 10px 25px rgba(28, 37, 43, 0.22);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.empty-state {
  max-width: 430px;
  padding: 105px 30px;
  margin: auto;
  color: #66727b;
  text-align: center;
}

.empty-illustration {
  display: grid;
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  place-items: center;
  color: #54738a;
  font-size: 30px;
  background: #d8e4eb;
  border-radius: 20px;
}

.empty-state h2 {
  margin: 0 0 10px;
  color: #46545f;
  font-size: 21px;
}

.empty-state p {
  margin: 0 0 20px;
  font-size: 13px;
  line-height: 1.65;
}

.login-screen {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  min-width: 1080px;
  background: rgba(24, 29, 34, 0.68);
  backdrop-filter: blur(9px);
}

.login-card {
  width: 390px;
  padding: 36px 38px 40px;
  color: #34404a;
  background: #f8fafb;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 13px;
  box-shadow: 0 25px 75px rgba(0, 0, 0, 0.26);
}

.login-mark {
  margin-bottom: 28px;
}

.login-card h1 {
  margin: 8px 0 7px;
  color: #2a353e;
  font-size: 23px;
}

.login-description {
  margin: 0 0 24px;
  color: #7c878f;
  font-size: 12px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.login-form label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #64717b;
  font-size: 11px;
  font-weight: 700;
}

.login-form input {
  width: 100%;
  height: 40px;
  padding: 0 11px;
  color: #2d3841;
  background: #fff;
  border: 1px solid #d9e0e4;
  border-radius: 6px;
  outline: 0;
}

.login-form input:focus {
  border-color: #8aa9bc;
  box-shadow: 0 0 0 3px rgba(79, 126, 155, 0.12);
}

.form-error {
  min-height: 16px;
  color: #b65f5f;
  font-size: 11px;
}

.button-wide {
  width: 100%;
  height: 41px;
  margin-top: 2px;
}

[hidden] {
  display: none !important;
}

@media (max-width: 1220px) {
  .topbar {
    padding: 0 18px;
  }

  .brand-lockup {
    flex-basis: 210px;
  }

  .topbar-hint {
    display: none;
  }

  .paper-scroll {
    padding-right: 22px;
    padding-left: 22px;
  }
}

@media print {
  html,
  body {
    min-width: 0;
    background: #fff;
  }

  .topbar,
  .sidebar,
  .stage-toolbar,
  .editor-menu,
  .feature-panel,
  .rich-toolbar,
  .preview-exit,
  .login-screen,
  .toast,
  .section-tools,
  .item-tools,
  .item-footer-tools,
  .item-bullets .row-action,
  .add-section-row,
  .section-hidden,
  .header-edit-hint,
  .drag-handle,
  .photo-placeholder,
  .photo-remove,
  .canvas-badge {
    display: none !important;
  }

  .app-shell,
  .workspace,
  .stage,
  .paper-scroll,
  .paper-frame {
    display: block;
    min-height: 0;
    background: #fff;
  }

  .workspace {
    min-height: 0;
  }

  .paper-scroll {
    overflow: visible;
    padding: 0;
  }

  .paper-frame {
    min-width: 0;
  }

  .resume-paper {
    width: 950px;
    min-height: 1345px;
    height: auto;
    padding: 70px 80px;
    overflow: visible;
    zoom: 0.8345;
    box-shadow: none;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .resume-header,
  .resume-section,
  .resume-item,
  .item-bullets li {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .edit-target {
    border: 0;
  }

  .item-intro > .edit-block,
  .item-note > .edit-block,
  .evaluation-item > .edit-block {
    padding: 3px 0;
    margin: 1px 0;
  }

  @page {
    size: A4;
    margin: 0;
  }
}

/* FINAL-CASCADE-SOURCE-SHELL */
.profile-account-card { height: 200px; margin-top: 60px; }
.profile-content-card { min-height: 1106px; padding-top: 10px; margin-top: 30px; }
.profile-tabs,
.profile-tab { height: 51px; }
.profile-resume-list { padding-top: 40px; }
#page-info,
#page-scale { bottom: 10px !important; }

.feature-panel {
  position: fixed;
  top: 85px;
  left: 0;
  z-index: 1010;
  width: 260px;
  height: 635px;
  max-height: none;
  padding: 0;
  margin: 0;
  overflow: auto;
  background: #fff;
  border: 0;
  border-radius: 0;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.12);
}

.feature-panel[hidden],
.preview-overlay[hidden] {
  display: none;
}

.preview-overlay {
  position: fixed;
  z-index: 200;
  inset: 0;
  overflow: auto;
  padding: 56px 24px 70px;
  background: rgba(0, 0, 0, 0.9);
}

.workspace {
  display: block !important;
  width: 100%;
  min-height: calc(100vh - 85px);
}

.stage {
  display: block !important;
  width: 100%;
  min-width: 0;
  min-height: calc(100vh - 85px);
  background: #f5f7fa;
}

.editor-menu {
  position: relative !important;
  top: auto;
  left: auto;
  z-index: 1000;
  display: block;
  width: 100%;
  height: 55px;
  min-height: 55px;
  padding: 0;
  margin-top: 0;
  background: #fff;
  border: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.editor-menu-inner {
  position: relative;
  width: min(1150px, calc(100% - 30px));
  height: 55px;
  margin: 0 auto;
}

.source-header {
  box-sizing: border-box;
  padding-top: 30px;
}

.editor-menu-group {
  position: absolute;
  top: 0;
  display: flex;
  align-items: stretch;
  height: 55px;
  gap: 0;
}

.editor-menu-group:first-child { left: 0; }
.editor-menu-group-right { right: 0; }

.editor-menu-button {
  position: relative;
  display: inline-flex;
  width: 72px;
  min-width: 0;
  height: 55px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 0;
  color: #333;
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
  background: #fff;
  border: 0;
  border-radius: 0;
  cursor: pointer;
}

.editor-menu-group:first-child .editor-menu-button:first-child { width: 66px; }
.editor-menu-group-right .editor-menu-button { width: 68px; }
.editor-menu-button:hover,
.editor-menu-button:focus-visible { color: #667cff; background: #f7f8ff; outline: 0; }
.editor-menu-button.is-primary { color: #fff; background: linear-gradient(135deg, #ffbd68, #ff964d); }
.editor-menu-button.is-primary:hover,
.editor-menu-button.is-primary:focus-visible { color: #fff; background: linear-gradient(135deg, #ffb158, #ff8b44); }
/* 图标换成原站 jlbfont 字体后，元素是 <i>（行内），宽高不生效，必须显式 block。
   字号对齐原站 #header .header-menu .layui-btn i{font-size:20px}。 */
.menu-icon { display: block; width: 24px; height: 22px; color: currentcolor; font-size: 20px; line-height: 22px; text-align: center; }
.menu-badge { top: 3px; right: 4px; min-width: 14px; height: 14px; font-size: 9px; line-height: 14px; }

.paper-scroll {
  display: block !important;
  width: 100%;
  min-height: calc(100vh - 85px);
  padding: 30px 0 80px;
  overflow: visible;
}

.paper-frame {
  display: block !important;
  width: 950px;
  min-width: 950px;
  min-height: 1345px;
  margin: 0 auto;
}

.resume-paper {
  display: block;
  width: 950px;
  min-height: 1345px;
  height: auto;
  padding: 70px 80px;
  margin: 0;
  overflow: visible;
  background: #fff;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.feature-panel[data-panel="toolbox"] { width: 78px; height: 96px; overflow: visible; }
.feature-panel[data-panel="template"] { width: 350px; }
.feature-panel[data-panel="theme"] { width: 112px; height: 214px; }
.feature-panel[data-panel="tips"] { right: 0; left: auto; width: 400px; }
.feature-panel[data-panel="toolbox"] .feature-panel-head,
.feature-panel[data-panel="theme"] .feature-panel-head { display: none; }
.feature-panel[data-panel="toolbox"] .feature-panel-body { padding: 0; }
.feature-panel[data-panel="toolbox"] .toolbox-links { margin: 0; }
.feature-panel[data-panel="toolbox"] .tool-link { width: 78px; min-height: 32px; padding: 0; justify-content: center; color: #555; font-size: 12px; }
.feature-panel[data-panel="toolbox"] .tool-link span,
.feature-panel[data-panel="toolbox"] .diagnostic-summary,
.feature-panel[data-panel="toolbox"] .check-list { display: none; }
.feature-panel.is-modal {
  top: 50%;
  left: 50%;
  width: 600px;
  height: auto;
  max-height: min(760px, calc(100vh - 40px));
  border: 1px solid #e0e0e0;
  border-radius: 3px;
  box-shadow: 0 12px 45px rgba(0, 0, 0, 0.22);
  transform: translate(-50%, -50%);
}
.feature-panel.is-modal::before { z-index: -1; background: rgba(0, 0, 0, 0.35); }

.source-side-menu {
  position: fixed;
  z-index: 20;
  top: 85px;
  right: 0;
  display: flex;
  width: 70px;
  height: 635px;
  flex-direction: column;
  align-items: center;
  padding-top: 30px;
}

.page-info,
.page-scale { bottom: 1px; z-index: 30; }
.page-info { left: 100px; }
.page-scale { right: 100px; }
