:root {
  --resume-accent: #2563eb;
  --resume-accent-2: #06b6d4;
  --resume-accent-3: #7c3aed;
  --resume-ink: #0f172a;
  --resume-muted: #475569;
  --resume-accent-soft: rgba(37, 99, 235, 0.12);
  --resume-line: rgba(148, 163, 184, 0.28);
  --resume-card: rgba(255, 255, 255, 0.92);
  --resume-card-dark: rgba(17, 24, 39, 0.86);
  --resume-glass-line: rgba(255, 255, 255, 0.56);
  --resume-editor-shadow: 0 24px 70px -42px rgba(15, 23, 42, 0.42);
  --resume-preview-shadow: 0 34px 90px -45px rgba(15, 23, 42, 0.54);
}

body {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: 'Noto Sans SC', system-ui, sans-serif;
  background:
    radial-gradient(circle at 6% 12%, rgba(59, 130, 246, 0.14), transparent 28rem),
    radial-gradient(circle at 92% 18%, rgba(14, 165, 233, 0.13), transparent 24rem),
    linear-gradient(180deg, #f8fbff 0%, #eef5ff 42%, #f8fafc 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.86), transparent 78%);
}

.dark body {
  background:
    radial-gradient(circle at 8% 8%, rgba(37, 99, 235, 0.22), transparent 26rem),
    radial-gradient(circle at 88% 16%, rgba(6, 182, 212, 0.14), transparent 24rem),
    linear-gradient(180deg, #020617 0%, #0f172a 52%, #020617 100%);
}

.hero-bg {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 16%, rgba(125, 211, 252, 0.32), transparent 18rem),
    radial-gradient(circle at 14% 10%, rgba(96, 165, 250, 0.26), transparent 16rem),
    linear-gradient(135deg, #020617 0%, #1d4ed8 54%, #0891b2 100%);
  box-shadow: 0 24px 80px -50px rgba(15, 23, 42, 0.78);
}

.hero-bg::before,
.hero-bg::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 999px;
}

.hero-bg::before {
  width: 24rem;
  height: 24rem;
  right: -8rem;
  top: -10rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
}

.hero-bg::after {
  left: 8%;
  bottom: -7.5rem;
  width: 19rem;
  height: 19rem;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.14), transparent 68%);
}

.hero-bg > div {
  position: relative;
  z-index: 1;
}

.tool-panel {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.88)),
    var(--resume-card);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(226, 232, 240, 0.86);
  box-shadow: var(--resume-editor-shadow);
}

.tool-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--resume-accent), var(--resume-accent-2), rgba(124, 58, 237, 0.72));
  opacity: 0.78;
}

.tool-panel::after {
  content: "";
  position: absolute;
  right: -4.5rem;
  top: -5rem;
  width: 12rem;
  height: 12rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.08), transparent 68%);
  pointer-events: none;
}

.tool-panel > * {
  position: relative;
  z-index: 1;
}

.dark .tool-panel {
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.84)),
    var(--resume-card-dark);
  border-color: rgba(51, 65, 85, 0.9);
  box-shadow: 0 22px 70px -40px rgba(0, 0, 0, 0.92);
}

.dark .tool-panel::after {
  background: radial-gradient(circle, rgba(59, 130, 246, 0.12), transparent 68%);
}

.field-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: rgb(51 65 85);
}

.dark .field-label {
  color: rgb(203 213 225);
}

.field-input,
.field-textarea,
.field-select {
  width: 100%;
  border-radius: 1rem;
  border: 1px solid rgb(226 232 240);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.92));
  padding: 0.84rem 1rem;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease, background-color .2s ease;
  color: rgb(30 41 59);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86), 0 10px 24px -22px rgba(15, 23, 42, 0.5);
}

.field-input:hover,
.field-textarea:hover,
.field-select:hover {
  border-color: rgba(147, 197, 253, 0.95);
}

.field-input:focus,
.field-textarea:focus,
.field-select:focus {
  border-color: rgba(37, 99, 235, 0.58);
  box-shadow:
    0 0 0 4px rgba(37, 99, 235, 0.12),
    0 18px 30px -24px rgba(37, 99, 235, 0.48);
  transform: translateY(-1px);
}

.dark .field-input,
.dark .field-textarea,
.dark .field-select {
  background: rgba(15, 23, 42, 0.85);
  border-color: rgb(51 65 85);
  color: rgb(241 245 249);
}

.field-textarea {
  resize: vertical;
  min-height: 110px;
}

.panel-title {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 1.25rem;
  font-weight: 900;
  color: rgb(15 23 42);
  letter-spacing: -0.02em;
}

.panel-title i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 0.86rem;
  background: linear-gradient(135deg, rgba(219, 234, 254, 0.96), rgba(224, 242, 254, 0.86));
  box-shadow: inset 0 0 0 1px rgba(191, 219, 254, 0.72);
}

.dark .panel-title {
  color: rgb(248 250 252);
}

.dark .panel-title i {
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.35), rgba(14, 116, 144, 0.26));
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.28);
}

.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border-radius: 1rem;
  padding: 0.72rem 1rem;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
  border: 1px solid transparent;
  cursor: pointer;
  user-select: none;
}

.action-btn:hover {
  transform: translateY(-1px);
}

.action-primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8 58%, #0e7490);
  color: #fff;
  box-shadow: 0 16px 34px -18px rgba(37, 99, 235, 0.82);
}

.action-primary:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
}

.action-secondary {
  background:
    linear-gradient(180deg, #ffffff, #f8fafc);
  color: rgb(30 41 59);
  border-color: rgb(226 232 240);
  box-shadow: 0 10px 24px -22px rgba(15, 23, 42, 0.52);
}

.action-secondary:hover {
  background: rgb(248 250 252);
}

.dark .action-secondary {
  background: rgba(15, 23, 42, 0.85);
  color: rgb(226 232 240);
  border-color: rgb(51 65 85);
}

.dark .action-secondary:hover {
  background: rgba(30, 41, 59, 0.95);
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.42rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 800;
  background:
    linear-gradient(180deg, rgba(239, 246, 255, 0.96), rgba(224, 242, 254, 0.82));
  color: var(--resume-accent);
  border: 1px solid rgba(191, 219, 254, 0.78);
  box-shadow: 0 9px 18px -16px rgba(37, 99, 235, 0.62);
}

.dark .tag-chip {
  background: rgba(30, 64, 175, 0.22);
  color: #93c5fd;
  border-color: rgba(59, 130, 246, 0.24);
}

.sortable-section {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 1.25rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.88));
  padding: 1rem;
  cursor: grab;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease, background-color .2s ease;
}

.sortable-section::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--resume-accent), var(--resume-accent-2));
  opacity: 0;
  transition: opacity .2s ease;
}

.sortable-section:hover {
  transform: translateY(-2px);
  border-color: rgba(147, 197, 253, 0.95);
  box-shadow: 0 18px 34px -24px rgba(15, 23, 42, 0.45);
}

.sortable-section:hover::before,
.sortable-section.drag-over::before {
  opacity: 1;
}

.sortable-section.dragging {
  opacity: 0.5;
}

.sortable-section.drag-over {
  border-color: rgba(37, 99, 235, 0.65);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.dark .sortable-section {
  background: rgba(15, 23, 42, 0.85);
  border-color: rgba(51, 65, 85, 0.95);
}

.resume-paper {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(circle at 88% 5%, rgba(59, 130, 246, 0.12), transparent 14rem),
    linear-gradient(180deg, rgba(248, 251, 255, 0.82) 0%, rgba(255, 255, 255, 0) 18%),
    linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
  color: #111827;
  min-height: 1180px;
  border-radius: 1.25rem;
  border: 1px solid #d6deea;
  box-shadow:
    var(--resume-preview-shadow),
    0 0 0 10px rgba(255, 255, 255, 0.62);
  overflow: hidden;
  font-size: 14px;
  line-height: 1.75;
}

.resume-paper::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(180deg, #1d4ed8 0%, #38bdf8 42%, #0f172a 100%);
  pointer-events: none;
  z-index: 2;
}

.resume-paper::after {
  content: "";
  position: absolute;
  right: -5.5rem;
  top: -5.5rem;
  z-index: -1;
  width: 16rem;
  height: 16rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.14), transparent 68%);
  pointer-events: none;
}

.resume-header {
  position: relative;
  padding: 1.72rem 1.84rem 1.16rem;
  border-bottom: 0;
  background:
    radial-gradient(circle at 88% 12%, rgba(56, 189, 248, 0.26) 0%, rgba(56, 189, 248, 0) 30%),
    linear-gradient(135deg, rgba(37, 99, 235, 0.14) 0%, rgba(255, 255, 255, 0) 44%),
    linear-gradient(180deg, #f8fbff 0%, #ffffff 76%);
}

.resume-header::before {
  content: "";
  position: absolute;
  left: 1.72rem;
  right: 1.72rem;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #0f172a 0%, #2563eb 45%, rgba(56, 189, 248, 0.15) 100%);
}

.resume-header::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -70px;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.14) 0%, rgba(59, 130, 246, 0.02) 55%, rgba(59, 130, 246, 0) 72%);
  pointer-events: none;
}

.resume-header-top {
  margin-bottom: 0.9rem;
}

.resume-header-title-group {
  display: flex;
  align-items: center;
}

.resume-header-ribbon {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 1.85rem;
  padding: 0.28rem 0.9rem 0.28rem 0;
  border-radius: 0;
  background: transparent;
  color: #1e3a5f;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.72);
}

.resume-header-ribbon::before {
  content: "";
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 999px;
  background: #2563eb;
  box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.12);
}

.resume-header-ribbon-main {
  font-size: 0.94rem;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.resume-header-ribbon-sub {
  font-size: 0.54rem;
  line-height: 1.2;
  letter-spacing: 0.18em;
  opacity: 0.8;
}

.resume-header-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  gap: 1rem;
  align-items: start;
}

.resume-photo-dropzone {
  cursor: pointer;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease, transform .2s ease;
}

.resume-photo-dropzone:hover {
  transform: translateY(-1px);
}

.resume-photo-dropzone.is-dragover {
  border-color: rgba(37, 99, 235, 0.65) !important;
  background: rgba(219, 234, 254, 0.9) !important;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.resume-photo-dropzone:focus-visible {
  border-color: rgba(37, 99, 235, 0.65) !important;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.dark .resume-photo-dropzone.is-dragover {
  background: rgba(30, 64, 175, 0.25) !important;
}

.resume-header-info {
  min-width: 0;
}

.resume-identity {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem 1rem;
  padding-bottom: 0.86rem;
  border-bottom: 1px solid #dbe4ef;
}

.resume-name-block {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
}

.resume-identity h2 {
  margin: 0;
  font-size: 2.26rem;
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #0f172a;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.82);
}

.resume-role {
  display: inline-flex;
  width: fit-content;
  margin-top: 0.18rem;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(219, 234, 254, 0.82), rgba(224, 242, 254, 0.62));
  border: 1px solid rgba(191, 219, 254, 0.82);
  padding: 0.2rem 0.78rem;
  font-size: 0.88rem;
  font-weight: 900;
  color: #1e3a5f;
  letter-spacing: 0.08em;
}

.resume-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem 1.35rem;
  padding-top: 0.78rem;
}

.resume-contact-item {
  display: grid;
  grid-template-columns: 1rem auto minmax(0, 1fr);
  align-items: center;
  gap: 0.42rem;
  min-width: 0;
  min-height: 1.76rem;
  border-radius: 0.72rem;
  padding: 0.1rem 0.28rem;
  font-size: 0.8rem;
  color: #0f172a;
  word-break: break-all;
  background: rgba(255, 255, 255, 0.42);
}

.resume-contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #2563eb;
  font-size: 0.72rem;
}

.resume-contact-label {
  flex: 0 0 auto;
  font-weight: 800;
  color: #1e3a5f;
}

.resume-contact-value {
  min-width: 0;
  font-weight: 600;
  color: #1f2937;
}

.resume-contact-item-empty {
  grid-column: 1 / -1;
}

.resume-avatar-card {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.resume-avatar-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 82px;
  height: 104px;
  border: 1px solid #cfd9e6;
  border-radius: 0.56rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76) 0%, rgba(239, 246, 255, 0.88) 100%),
    linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(56, 189, 248, 0.12));
  color: #5c7292;
  font-size: 2rem;
  box-shadow: 0 16px 34px -22px rgba(15, 23, 42, 0.5);
}

.resume-photo-card {
  width: 96px;
  height: 126px;
  overflow: hidden;
  border: 1px solid #cfd9e6;
  border-radius: 0.56rem;
  background: linear-gradient(180deg, #f8fafc 0%, #eef4fb 100%);
  box-shadow: 0 16px 34px -20px rgba(15, 23, 42, 0.38);
}

.resume-photo-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.resume-body {
  padding: 1.14rem 1.84rem 1.65rem;
}

.resume-section {
  margin-top: 1.12rem;
  padding-top: 1.12rem;
  border-top: 1px solid #e5ebf3;
  break-inside: auto;
  page-break-inside: auto;
}

.resume-section:first-child {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}

.resume-section-title {
  display: flex;
  align-items: center;
  margin-bottom: 0.82rem;
  color: #1e3a5f;
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  break-after: avoid;
  page-break-after: avoid;
}

.resume-section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  margin-left: 0.7rem;
  background: linear-gradient(90deg, rgba(30, 58, 95, 0.42), rgba(30, 58, 95, 0.08));
}

.resume-section-title span {
  position: static;
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.12rem 0.56rem 0.12rem 0;
}

.resume-section-title span::before {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.resume-grid-two {
  display: grid;
  gap: 0.8rem 1.2rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.resume-item {
  padding: 0.44rem 0 0.92rem;
  border-bottom: 1px dashed #d8e0ea;
  break-inside: avoid;
  page-break-inside: avoid;
}

.resume-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.resume-item-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 178px;
  gap: 0.8rem;
  align-items: start;
}

.resume-item-main,
.resume-item-side {
  min-width: 0;
}

.resume-item-side {
  text-align: right;
}

.resume-item-title {
  font-size: 0.94rem;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.5;
}

.resume-item-subtitle {
  margin-top: 0.12rem;
  color: #334155;
  font-size: 0.81rem;
  font-weight: 700;
  line-height: 1.65;
}

.resume-project-list {
  position: relative;
}

.resume-project-item {
  position: relative;
  margin-left: 0.08rem;
  padding-left: 1.08rem;
}

.resume-project-item::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.84rem;
  bottom: -0.16rem;
  width: 1px;
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.42), rgba(148, 163, 184, 0.16));
}

.resume-project-item:last-child::before {
  bottom: 0.85rem;
}

.resume-project-item .resume-item-head {
  grid-template-columns: minmax(0, 1fr);
}

.resume-project-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 0.75rem;
  min-width: 0;
}

.resume-project-title-group {
  display: flex;
  align-items: baseline;
  gap: 0.58rem;
  min-width: 0;
}

.resume-project-index {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.86rem;
  height: 1.3rem;
  padding: 0 0.38rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #eff6ff, #e0f2fe);
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  flex: 0 0 auto;
  box-shadow: 0 6px 14px -10px rgba(37, 99, 235, 0.65);
}

.resume-project-title-row .resume-item-title {
  min-width: 0;
}

.resume-project-meta-row {
  display: flex;
  align-items: baseline;
  gap: 0.48rem 0.85rem;
  margin-top: 0.22rem;
  min-width: 0;
  flex-wrap: wrap;
}

.resume-project-meta-row .resume-item-subtitle {
  margin-top: 0;
  flex: 0 1 auto;
}

.resume-project-tech {
  min-width: 0;
  flex: 1 1 100%;
  text-align: left;
  color: #334155;
  font-size: 0.77rem;
  font-weight: 700;
  line-height: 1.7;
  word-break: break-word;
}

.resume-item-meta {
  font-size: 0.76rem;
  color: #475569;
  font-weight: 700;
  line-height: 1.6;
  margin-top: 0.02rem;
  word-break: break-word;
}

.resume-project-time {
  justify-self: end;
  text-align: right;
  white-space: nowrap;
  font-weight: 800;
  color: #1e3a5f;
}

.resume-project-label {
  display: inline-flex;
  align-items: center;
  margin-right: 0.4rem;
  padding: 0.08rem 0.45rem;
  border-radius: 999px;
  background: rgba(30, 58, 95, 0.08);
  color: #1e3a5f;
  font-weight: 800;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}

.resume-item-desc {
  margin-top: 0.35rem;
  color: #1f2937;
  line-height: 1.8;
  white-space: pre-line;
  font-size: 0.8rem;
}

.resume-summary-card {
  padding: 0.9rem 1.04rem;
  border: 1px solid #dbe7f4;
  border-radius: 0.95rem;
  background:
    radial-gradient(circle at 96% 10%, rgba(14, 165, 233, 0.08), transparent 10rem),
    linear-gradient(90deg, rgba(37, 99, 235, 0.06), rgba(255, 255, 255, 0) 36%),
    linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  box-shadow:
    inset 4px 0 0 rgba(37, 99, 235, 0.22),
    0 12px 28px -24px rgba(15, 23, 42, 0.38);
}

.resume-summary-text {
  color: #1f2937;
  line-height: 1.9;
  font-size: 0.82rem;
  text-align: justify;
}

.resume-skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem 0.48rem;
}

.resume-bullet-list {
  margin: 0.42rem 0 0;
  padding-left: 1.08rem;
  color: #1f2937;
  font-size: 0.8rem;
  line-height: 1.82;
}

.resume-section-title,
.resume-item-head,
.resume-summary-card,
.resume-skill-list,
.resume-item-desc,
.resume-bullet-list li {
  break-inside: avoid;
  page-break-inside: avoid;
}

.resume-bullet-list li::marker {
  color: #2563eb;
}

.resume-bullet-list li + li {
  margin-top: 0.16rem;
}

.resume-paper .tag-chip {
  padding: 0.2rem 0.62rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  color: #1f2937;
  border: 1px solid #d9e2ef;
  box-shadow: 0 6px 14px -11px rgba(15, 23, 42, 0.42);
  font-size: 0.74rem;
  font-weight: 800;
}

.resume-empty {
  border: 1px dashed #cdd8e6;
  border-radius: 0.75rem;
  padding: 0.85rem 0.95rem;
  color: #64748b;
  font-size: 0.84rem;
  line-height: 1.75;
  background: #f8fafc;
}

.section-editor {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 1.3rem;
  padding: 1rem;
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.84), rgba(255, 255, 255, 0.72));
  box-shadow: 0 14px 34px -30px rgba(15, 23, 42, 0.48);
}

.section-editor::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.35), transparent 70%);
}

.section-editor > * {
  position: relative;
  z-index: 1;
}

.dark .section-editor {
  border-color: rgba(51, 65, 85, 0.95);
  background: rgba(15, 23, 42, 0.45);
}

.section-editor + .section-editor {
  margin-top: 1rem;
}

.mini-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 999px;
  border: 1px solid rgb(226 232 240);
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  color: rgb(51 65 85);
  cursor: pointer;
  transition: all .2s ease;
  box-shadow: 0 10px 20px -18px rgba(15, 23, 42, 0.55);
}

.mini-btn:hover {
  background: rgb(248 250 252);
  color: rgb(37 99 235);
  border-color: rgb(191 219 254);
}

.dark .mini-btn {
  border-color: rgb(51 65 85);
  background: rgba(15, 23, 42, 0.85);
  color: rgb(226 232 240);
}

.status-text {
  font-size: 0.88rem;
  font-weight: 700;
}

.status-ok { color: #16a34a; }
.status-warn { color: #ea580c; }
.status-info { color: #2563eb; }

.resume-photo-dropzone {
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.9), rgba(239, 246, 255, 0.72)) !important;
}

.dark .resume-photo-dropzone {
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.72), rgba(30, 41, 59, 0.44)) !important;
}

.resume-pdf-export {
  border-radius: 0 !important;
  box-shadow: none !important;
}

@media (max-width: 1280px) {
  .editor-shell {
    gap: 2rem;
  }
}

@media (max-width: 1024px) {
  .resume-paper {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .resume-header,
  .resume-body {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .resume-header-main {
    grid-template-columns: 1fr;
  }

  .resume-avatar-card {
    justify-content: flex-start;
  }

  .resume-photo-card {
    width: 96px;
    height: 124px;
  }

  .resume-identity h2 {
    font-size: 1.6rem;
  }

  .resume-contact-grid {
    grid-template-columns: 1fr;
  }

  .resume-contact-item {
    grid-template-columns: 1rem auto minmax(0, 1fr);
  }

  .resume-item-head {
    grid-template-columns: 1fr;
  }

  .resume-item-side {
    text-align: left;
  }

  .resume-project-title-row {
    grid-template-columns: 1fr;
  }

  .resume-project-title-group {
    align-items: flex-start;
  }

  .resume-project-meta-row {
    flex-wrap: wrap;
  }

  .resume-project-tech {
    flex-basis: 100%;
    text-align: left;
  }

  .resume-project-time {
    justify-self: start;
    text-align: left;
  }

  .resume-grid-two {
    grid-template-columns: 1fr;
  }
}

@media print {
  body {
    background: #fff !important;
  }

  body::before,
  #site-nav-root,
  #site-footer-root,
  header,
  .editor-shell > section,
  aside .panel-title,
  aside .panel-title + p {
    display: none !important;
  }

  main {
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .editor-shell {
    display: block !important;
  }

  aside {
    position: static !important;
    display: block !important;
  }

  aside .tool-panel {
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
  }

  aside .tool-panel::before,
  aside .tool-panel::after,
  aside .tool-panel > .flex {
    display: none !important;
  }

  .resume-paper {
    width: 210mm !important;
    max-width: 210mm !important;
    margin: 0 auto !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    min-height: auto !important;
    background: #fff !important;
  }

  .resume-header::before,
  .resume-header::after,
  .resume-paper::before,
  .resume-paper::after {
    display: none !important;
  }

  .resume-section {
    break-inside: auto;
    page-break-inside: auto;
  }

  .resume-section-title {
    break-after: avoid;
    page-break-after: avoid;
  }

  .resume-item,
  .resume-item-head,
  .resume-summary-card,
  .resume-skill-list,
  .resume-item-desc,
  .resume-bullet-list li {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}
