.myeditor {
    --myeditor-bg: linear-gradient(180deg, #f6f1e8 0%, #eef3f8 100%);
    --myeditor-panel: rgba(255, 255, 255, 0.78);
    --myeditor-line: #d6dbe3;
    --myeditor-text: #1f2937;
    --myeditor-muted: #6b7280;
    --myeditor-accent: #b45309;
    --myeditor-accent-soft: #fff4de;
    --myeditor-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
    color: var(--myeditor-text);
}

.myeditor-shell {
    overflow: hidden;
    border: 1px solid rgba(123, 141, 160, 0.28);
    border-radius: 24px;
    background: var(--myeditor-bg);
    box-shadow: var(--myeditor-shadow);
}

.myeditor-plain {
    overflow: hidden;
    border: 1px solid rgba(123, 141, 160, 0.28);
    border-radius: 24px;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

.myeditor-plain-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid #e5ebf2;
    background: #f8fafc;
    color: #475569;
    font-size: 13px;
    font-weight: 700;
}

.myeditor-plain-toggle {
    height: 34px;
    padding: 0 12px;
    border: 1px solid #d6dbe3;
    border-radius: 999px;
    background: #fff;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.myeditor-plain-view,
.myeditor-plain-textarea,
.myeditor-plain-html {
    display: block;
    width: 100%;
    padding: 18px;
    border: 0;
    background: #fff;
    color: #1f2937;
    font-size: 14px;
    line-height: 1.7;
    box-sizing: border-box;
    resize: vertical;
}

.myeditor-plain-view {
    outline: 0;
}

.myeditor-plain-textarea[hidden],
.myeditor-plain-html[hidden],
.myeditor-html[hidden],
.myeditor-source[hidden] {
    display: none !important;
}

.myeditor-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px 14px;
}

.myeditor-topbar-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.myeditor-topbar-copy strong {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.myeditor-topbar-copy span {
    color: var(--myeditor-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.myeditor-topbar-badge {
    padding: 8px 12px;
    border: 1px solid rgba(180, 83, 9, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.74);
    color: var(--myeditor-accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.myeditor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0 18px 18px;
}

.myeditor-toolbar-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid rgba(122, 138, 156, 0.2);
    border-radius: 18px;
    background: var(--myeditor-panel);
    backdrop-filter: blur(8px);
}

.myeditor-toolbar-group-wide {
    min-width: 260px;
}

.myeditor-group-title {
    margin-right: 2px;
    color: var(--myeditor-muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.myeditor-tool,
.myeditor-select,
.myeditor-color {
    height: 38px;
    border: 1px solid var(--myeditor-line);
    border-radius: 12px;
    background: #fff;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.myeditor-tool,
.myeditor-select {
    color: var(--myeditor-text);
}

.myeditor-tool {
    min-width: 38px;
    padding: 0 12px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.myeditor-tool:hover,
.myeditor-select:hover,
.myeditor-color:hover {
    transform: translateY(-1px);
    border-color: #c0c8d2;
    box-shadow: 0 10px 24px rgba(148, 163, 184, 0.16);
}

.myeditor-tool-accent {
    border-color: rgba(180, 83, 9, 0.3);
    background: var(--myeditor-accent-soft);
    color: var(--myeditor-accent);
}

.myeditor-tool-code {
    background: #111827;
    border-color: #111827;
    color: #fff;
}

.myeditor-tool-block {
    background: linear-gradient(180deg, #fffaf1 0%, #fff 100%);
    border-color: rgba(180, 83, 9, 0.22);
    color: #9a3412;
}

.myeditor-tool-preset {
    background: linear-gradient(180deg, #eef6ff 0%, #ffffff 100%);
    border-color: rgba(59, 130, 246, 0.22);
    color: #1d4ed8;
}

.myeditor-select {
    min-width: 132px;
    padding: 0 12px;
}

.myeditor-color {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 10px;
    font-size: 12px;
    font-weight: 700;
}

.myeditor-color span {
    color: var(--myeditor-muted);
}

.myeditor-color input[type="color"] {
    width: 22px;
    height: 22px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.myeditor-stage {
    padding: 0 18px 18px;
}

.myeditor-canvas {
    position: relative;
    padding: 22px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.66);
}

.myeditor-canvas::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 22px;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.9), transparent 42%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.34) 100%);
    pointer-events: none;
}

.myeditor-canvas-label {
    position: relative;
    z-index: 1;
    margin-bottom: 14px;
    color: var(--myeditor-muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.myeditor-block-actions {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
    padding: 10px 12px;
    border: 1px solid #f3d3a7;
    border-radius: 14px;
    background: #fff8ef;
}

.myeditor-block-actions-label {
    color: #9a3412;
    font-size: 12px;
    font-weight: 700;
}

.myeditor-block-edit,
.myeditor-block-remove,
.myeditor-table-action {
    height: 34px;
    padding: 0 12px;
    border: 1px solid #e6caa3;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
}

.myeditor-block-remove {
    color: #b91c1c;
}

.myeditor-table-action {
    color: #9a3412;
}

.myeditor-editable,
.myeditor-html {
    position: relative;
    z-index: 1;
    width: 100%;
    box-sizing: border-box;
    padding: 28px 32px;
    border: 1px solid rgba(208, 215, 226, 0.95);
    border-radius: 18px;
    background: #fff;
    color: var(--myeditor-text);
    outline: 0;
    font-size: 16px;
    line-height: 1.8;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.myeditor-editable {
    min-height: 420px;
}

.myeditor-editable h1,
.myeditor-content h1 {
    margin: 0 0 0.7em;
    font-size: 2rem;
    line-height: 1.2;
}

.myeditor-editable h2,
.myeditor-content h2 {
    margin: 0 0 0.75em;
    font-size: 1.6rem;
    line-height: 1.25;
}

.myeditor-editable h3,
.myeditor-content h3 {
    margin: 0 0 0.8em;
    font-size: 1.25rem;
}

.myeditor-editable p,
.myeditor-content p {
    margin: 0 0 1em;
}

.myeditor-editable blockquote,
.myeditor-content blockquote {
    margin: 1.4em 0;
    padding: 0.9em 1.2em;
    border-left: 4px solid #d97706;
    border-radius: 0 14px 14px 0;
    background: #fff7ed;
    color: #7c2d12;
}

.myeditor-editable img,
.myeditor-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 1.2em auto;
    border-radius: 14px;
}

.myeditor-html {
    min-height: 420px;
    font-family: Consolas, "Courier New", monospace;
    resize: vertical;
}

.myeditor-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--myeditor-text);
}

.myeditor-content table,
.myeditor-editable table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 14px;
}

.myeditor-content th,
.myeditor-content td,
.myeditor-editable th,
.myeditor-editable td {
    border: 1px solid #d8dce2;
    padding: 10px 12px;
}

.myeditor-content th,
.myeditor-editable th {
    background: #f8fafc;
}

.myeditor-block-table table {
    margin: 0;
}

.myeditor-block-table th.is-cell-selected,
.myeditor-block-table td.is-cell-selected {
    box-shadow: inset 0 0 0 999px rgba(251, 191, 36, 0.22);
}

.myeditor-block-table th.is-cell-anchor,
.myeditor-block-table td.is-cell-anchor {
    box-shadow: inset 0 0 0 2px rgba(194, 65, 12, 0.9);
}

.myeditor-block {
    margin: 1.4em 0;
    cursor: pointer;
    transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.myeditor-block:hover {
    transform: translateY(-1px);
}

.myeditor-block.is-selected {
    outline: 2px solid rgba(194, 65, 12, 0.55);
    outline-offset: 4px;
    box-shadow: 0 0 0 8px rgba(255, 237, 213, 0.8);
}

.myeditor-block-button {
    text-align: center;
}

.myeditor-chip-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 14px 22px;
    border-radius: 999px;
    color: inherit;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.myeditor-chip-button:hover {
    transform: translateY(-1px);
}

.myeditor-chip-button.is-square {
    border-radius: 14px;
}

.myeditor-chip-button.is-outline {
    border-radius: 999px;
}

.myeditor-chip-button.is-shadow {
    border-radius: 18px;
}

.myeditor-block-notice {
    padding: 18px 20px;
    border: 1px solid #fed7aa;
    border-radius: 18px;
    background: linear-gradient(180deg, #fff8ef 0%, #fff2df 100%);
}

.myeditor-block-notice strong {
    display: block;
    margin-bottom: 8px;
    color: #9a3412;
    font-size: 1.05rem;
}

.myeditor-block-notice p {
    margin: 0;
}

.myeditor-block-columns {
    display: grid;
    gap: 16px;
}

.myeditor-block-columns.cols-1 {
    grid-template-columns: 1fr;
}

.myeditor-block-columns.cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.myeditor-block-columns.cols-2.ratio-2-1 {
    grid-template-columns: 2fr 1fr;
}

.myeditor-block-columns.cols-2.ratio-1-2 {
    grid-template-columns: 1fr 2fr;
}

.myeditor-block-columns.cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.myeditor-block-columns.cols-3.ratio-2-1-1 {
    grid-template-columns: 2fr 1fr 1fr;
}

.myeditor-block-columns.cols-3.ratio-1-1-2 {
    grid-template-columns: 1fr 1fr 2fr;
}

.myeditor-block-columns.cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.myeditor-block-columns.cols-4.ratio-2-1-1-1 {
    grid-template-columns: 2fr 1fr 1fr 1fr;
}

.myeditor-block-columns.cols-4.ratio-1-1-1-2 {
    grid-template-columns: 1fr 1fr 1fr 2fr;
}

.myeditor-block-columns > div {
    padding: 18px;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.myeditor-block-columns h3,
.myeditor-block-card h3 {
    margin-top: 0;
}

.myeditor-block-card {
    padding: 22px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 22px;
    background:
        radial-gradient(circle at top right, rgba(255, 237, 213, 0.95), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 18px 36px rgba(148, 163, 184, 0.12);
}

.myeditor-block-card small {
    display: inline-block;
    margin-bottom: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #fff1db;
    color: #b45309;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.myeditor-block-timeline {
    --timeline-axis-x: 50%;
    --timeline-company-orb-size: 138px;
    --timeline-company-year-font-size: 42px;
    position: relative;
    padding: 28px 24px 28px 110px;
    border: 1px solid var(--timeline-border);
    border-radius: 28px;
    background: linear-gradient(180deg, #ffffff 0%, var(--timeline-bg) 100%);
}

.myeditor-timeline-side {
    position: absolute;
    top: 24px;
    left: 18px;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    color: rgba(15, 23, 42, 0.16);
    font-size: 38px;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.myeditor-timeline-head {
    margin-bottom: 24px;
    text-align: center;
}

.myeditor-timeline-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 150px;
    border-radius: 999px;
    color: #fff;
    font-size: 1.8rem;
    font-weight: 800;
}

.myeditor-timeline-lead {
    margin-top: 14px;
    font-size: 2.5rem;
    font-weight: 800;
}

.myeditor-timeline-track {
    position: relative;
    max-width: 860px;
    margin: 0 auto;
    padding: 12px 0;
}

.myeditor-timeline-track::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--timeline-axis-x);
    width: 2px;
    background: var(--timeline-border);
    transform: translateX(-50%);
}

.myeditor-timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 40px 1fr;
    gap: 18px;
    align-items: center;
    margin: 0 0 24px;
}

.myeditor-timeline-item.is-left .myeditor-timeline-card {
    grid-column: 1;
    text-align: right;
}

.myeditor-timeline-item.is-right .myeditor-timeline-card {
    grid-column: 3;
    text-align: left;
}

.myeditor-timeline-dot {
    position: absolute;
    left: var(--timeline-axis-x);
    top: 50%;
    width: 18px;
    height: 18px;
    margin: 0;
    border: 4px solid #fff;
    border-radius: 999px;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.myeditor-timeline-card {
    padding: 16px 18px;
    border: 1px solid var(--timeline-border);
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.myeditor-timeline-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 2rem;
    line-height: 1;
}

.myeditor-timeline-month {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    margin-bottom: 10px;
    padding: 4px 10px;
    border: 1px solid var(--timeline-border);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.myeditor-timeline-card p {
    margin: 0;
    line-height: 1.7;
}

.myeditor-timeline-detail-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.myeditor-timeline-detail-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}

.myeditor-timeline-detail-row:last-child {
    margin-bottom: 0;
}

.myeditor-timeline-detail-row .myeditor-timeline-month {
    flex: 0 0 auto;
    margin-bottom: 0;
}

.myeditor-timeline-detail-copy {
    flex: 1 1 auto;
    line-height: 1.7;
}

.myeditor-block-timeline.is-milestone {
    padding-left: 40px;
}

.myeditor-block-timeline.is-milestone .myeditor-timeline-side {
    display: none;
}

.myeditor-block-timeline.is-milestone .myeditor-timeline-track::before {
    width: 14px;
    border-radius: 999px;
    background:
        repeating-linear-gradient(
            180deg,
            rgba(203, 213, 225, 0.85) 0 3px,
            rgba(255, 255, 255, 0.95) 3px 6px
        );
}

.myeditor-timeline-item.is-style-milestone .myeditor-timeline-card {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
}

.myeditor-timeline-card-milestone {
    align-self: center;
}

.myeditor-timeline-item.is-style-milestone.is-left .myeditor-timeline-card {
    grid-column: 1;
    text-align: right;
    padding-right: 26px;
}

.myeditor-timeline-item.is-style-milestone.is-right .myeditor-timeline-card {
    grid-column: 3;
    text-align: left;
    padding-left: 26px;
}

.myeditor-timeline-orb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    border-radius: 999px;
    font-size: 1.6rem;
    font-weight: 800;
    justify-self: center;
}

.myeditor-block-timeline.is-company {
    --timeline-axis-x: 222px;
    padding-left: 48px;
}

.myeditor-block-timeline.is-company .myeditor-timeline-side,
.myeditor-block-timeline.is-company .myeditor-timeline-head {
    display: none;
}

.myeditor-block-timeline.is-company .myeditor-timeline-track {
    max-width: 980px;
}

.myeditor-block-timeline.is-company .myeditor-timeline-track::before {
    background: #1e293b;
}

.myeditor-timeline-item.is-style-company {
    grid-template-columns: 180px 40px 1fr;
    align-items: start;
    gap: 22px;
}

.myeditor-timeline-item.is-style-company .myeditor-timeline-card {
    grid-column: 3;
    text-align: left;
}

.myeditor-timeline-orb-company {
    width: var(--timeline-company-orb-size);
    min-width: var(--timeline-company-orb-size);
    height: var(--timeline-company-orb-size);
    padding: 0 12px;
    font-size: var(--timeline-company-year-font-size);
    line-height: 1;
    white-space: nowrap;
    box-sizing: border-box;
}

.myeditor-timeline-orb-company.is-wide {
    width: calc(var(--timeline-company-orb-size) + 36px);
    min-width: calc(var(--timeline-company-orb-size) + 36px);
    height: calc(var(--timeline-company-orb-size) + 36px);
    font-size: calc(var(--timeline-company-year-font-size) * 0.68);
    letter-spacing: -0.04em;
}

.myeditor-timeline-item.is-style-company .myeditor-timeline-dot {
    top: calc(var(--timeline-company-orb-size) / 2);
}

.myeditor-timeline-card-company {
    min-height: 96px;
    padding: 18px 20px;
    border-radius: 0;
    box-shadow: none;
}

.myeditor-timeline-card-company .myeditor-timeline-detail-row {
    gap: 14px;
}

.myeditor-block-timeline.is-business {
    --timeline-axis-x: 202px;
    padding-left: 32px;
}

.myeditor-block-timeline.is-business .myeditor-timeline-side {
    display: none;
}

.myeditor-block-timeline.is-business .myeditor-timeline-head {
    text-align: left;
    margin-bottom: 30px;
}

.myeditor-block-timeline.is-business .myeditor-timeline-badge {
    width: auto;
    height: auto;
    padding: 12px 22px;
    border-radius: 0;
    justify-content: flex-start;
    clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 50%, calc(100% - 28px) 100%, 0 100%);
}

.myeditor-block-timeline.is-business .myeditor-timeline-track::before {
    width: 8px;
    background: var(--timeline-border);
}

.myeditor-timeline-item.is-style-business {
    grid-template-columns: 160px 40px 1fr;
    align-items: center;
    gap: 22px;
}

.myeditor-timeline-item.is-style-business .myeditor-timeline-card,
.myeditor-timeline-item.is-style-business.is-left .myeditor-timeline-card,
.myeditor-timeline-item.is-style-business.is-right .myeditor-timeline-card {
    grid-column: 3;
    text-align: left;
}

.myeditor-timeline-orb-business {
    width: 118px;
    height: 118px;
    border: 10px solid #cbd5e1;
    border-radius: 999px;
    background: #fff;
    justify-self: center;
    position: relative;
}

.myeditor-timeline-orb-business::after {
    content: "";
    position: absolute;
    right: -40px;
    top: 50%;
    width: 36px;
    border-top: 2px dashed currentColor;
    transform: translateY(-50%);
}

.myeditor-timeline-orb-business::before {
    content: "";
    position: absolute;
    right: -48px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
    border-left: 14px solid currentColor;
    opacity: 0.8;
}

.myeditor-timeline-orb-business span {
    display: inline-block;
    padding: 8px 0;
    border-top: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    font-size: 1.5rem;
    font-weight: 800;
}

.myeditor-timeline-item.is-style-business .myeditor-timeline-dot {
    top: 59px;
}

.myeditor-timeline-card-business {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.myeditor-timeline-card-business ul {
    margin: 0;
    padding-left: 18px;
}

.myeditor-timeline-card-business li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.myeditor-timeline-item.is-style-company.is-left .myeditor-timeline-card,
.myeditor-timeline-item.is-style-company.is-right .myeditor-timeline-card {
    grid-column: 3;
    text-align: left;
    padding-left: 20px;
    padding-right: 20px;
}

.myeditor-template {
    margin: 1.8em 0;
    padding: 24px;
    border: 1px solid #dbe5f0;
    border-radius: 24px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 18px 40px rgba(148, 163, 184, 0.12);
}

.myeditor-template-head {
    margin-bottom: 18px;
}

.myeditor-template-kicker {
    display: inline-block;
    margin-bottom: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #e8f1ff;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.myeditor-template h2 {
    margin: 0 0 10px;
}

.myeditor-template-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.myeditor-template-panel {
    padding: 18px;
    border: 1px solid #e5edf5;
    border-radius: 18px;
    background: #fff;
}

.myeditor-template-panel h3 {
    margin-top: 0;
}

.myeditor-template-actions {
    margin-top: 18px;
    text-align: center;
}

.myeditor-template-actions-inline {
    text-align: left;
}

.myeditor-template-location {
    display: grid;
    grid-template-columns: minmax(320px, 1.05fr) minmax(320px, 1fr);
    gap: 28px;
    align-items: stretch;
}

.myeditor-template-location.is-map-right {
    grid-template-columns: minmax(320px, 1fr) minmax(320px, 1.05fr);
}

.myeditor-template-location.is-map-right .myeditor-template-location-map {
    order: 2;
}

.myeditor-template-location.is-map-right .myeditor-template-location-info {
    order: 1;
}

.myeditor-template-location-map {
    position: relative;
    min-height: 360px;
    border: 1px solid #dbe5f0;
    border-radius: 22px;
    overflow: hidden;
    background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.myeditor-template-location-map iframe,
.myeditor-template-location-map img,
.myeditor-location-map-empty {
    width: 100%;
    height: 100%;
    min-height: 360px;
    border: 0;
}

.myeditor-template-location-map img {
    display: block;
    object-fit: cover;
    margin: 0;
    border-radius: 0;
}

.myeditor-location-switch {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    display: inline-flex;
    gap: 8px;
    padding: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.12);
}

.myeditor-location-tab {
    height: 34px;
    padding: 0 14px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #475569;
    font-weight: 700;
    cursor: pointer;
}

.myeditor-location-tab.is-active {
    background: #0f172a;
    color: #fff;
}

.myeditor-location-view {
    display: none;
    min-height: 360px;
    height: 100%;
}

.myeditor-location-view.is-active {
    display: block;
}

.myeditor-location-map-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    color: #64748b;
    font-weight: 600;
    text-align: center;
}

.myeditor-template-location-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
}

.myeditor-location-button {
    min-width: 146px;
    border: 1px solid #d7dee8;
    border-radius: 14px;
    background: #fff;
    color: #111827;
}

.myeditor-location-button.is-route {
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    border-color: #f59e0b;
    color: #fff;
}

.myeditor-location-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.myeditor-location-card {
    border-top: 2px solid #1f2937;
    background: rgba(255, 255, 255, 0.88);
}

.myeditor-location-row {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    border-bottom: 1px solid #e6ebf2;
    background:
        linear-gradient(90deg, rgba(249, 250, 251, 0.96) 0, rgba(249, 250, 251, 0.96) 190px, rgba(255, 255, 255, 0.98) 190px, rgba(255, 255, 255, 0.98) 100%);
}

.myeditor-location-row strong,
.myeditor-location-row span {
    display: block;
    padding: 20px 18px;
}

.myeditor-location-row strong {
    color: #111827;
    font-size: 1.02rem;
    text-align: center;
}

.myeditor-location-row span {
    color: #475569;
}

.myeditor-template-staff {
    background: #fff;
}

.myeditor-staff-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 28px;
}

.myeditor-staff-tab {
    --staff-tab-color: #112b4d;
    height: 82px;
    border: 1px solid #d9e0e8;
    border-radius: 16px;
    background: #fff;
    color: #111827;
    font-size: 1.2rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.myeditor-staff-tab.is-active {
    background: var(--staff-tab-color);
    border-color: var(--staff-tab-color);
    color: #fff;
}

.myeditor-staff-tab-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
}

.myeditor-staff-list {
    display: flex;
    flex-direction: column;
}

.myeditor-staff-person {
    display: none;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 52px;
    align-items: center;
    padding: 32px 30px;
    border-bottom: 1px solid #e6ebf2;
}

.myeditor-staff-person.is-visible {
    display: grid;
}

.myeditor-staff-photo {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-height: 280px;
    width: 100%;
    overflow: hidden;
    border-radius: 24px;
}

.myeditor-staff-photo img {
    display: block;
    max-height: 300px;
    width: min(100%, 320px);
    max-width: 100%;
    margin: 0;
    border-radius: 0;
    object-fit: contain;
}

.myeditor-staff-photo.is-square {
    aspect-ratio: 1 / 1;
    align-items: center;
}

.myeditor-staff-photo.is-landscape {
    aspect-ratio: 16 / 9;
    align-items: center;
}

.myeditor-staff-photo.is-portrait {
    aspect-ratio: 4 / 5;
    align-items: center;
}

.myeditor-staff-photo.is-square img,
.myeditor-staff-photo.is-landscape img,
.myeditor-staff-photo.is-portrait img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
}

.myeditor-staff-photo-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 220px;
    height: 260px;
    border: 1px dashed #cbd5e1;
    border-radius: 24px;
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
    color: #64748b;
    font-weight: 700;
}

.myeditor-staff-copy strong {
    display: block;
    margin-bottom: 10px;
    color: #1f2937;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.myeditor-staff-copy h3 {
    margin: 0 0 12px;
    color: #111827;
    font-size: 2.35rem;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.myeditor-staff-copy span {
    display: inline-block;
    margin-top: 8px;
    padding: 8px 14px;
    border-radius: 8px;
    background: #324c8d;
    color: #fff;
    font-weight: 700;
}

.myeditor-image-wrap {
    display: flex;
    margin: 1.4em 0;
    width: 100%;
}

.myeditor-image-wrap.is-left {
    justify-content: flex-start;
}

.myeditor-image-wrap.is-center {
    justify-content: center;
}

.myeditor-image-wrap.is-right {
    justify-content: flex-end;
}

.myeditor-image-wrap a,
.myeditor-image-wrap img {
    display: block;
}

.myeditor-image-wrap > a,
.myeditor-image-wrap > img {
    width: var(--image-width, 100%);
    max-width: min(100%, var(--image-max-width, 100%));
}

.myeditor-image-wrap a img,
.myeditor-image-wrap > img {
    width: 100%;
    max-width: 100%;
    height: auto;
}

.myeditor-image-frame {
    display: block;
    width: 100%;
    overflow: hidden;
    border-radius: 18px;
}

.myeditor-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.myeditor-image-frame.is-square {
    aspect-ratio: 1 / 1;
}

.myeditor-image-frame.is-landscape {
    aspect-ratio: 16 / 9;
}

.myeditor-image-frame.is-portrait {
    aspect-ratio: 4 / 5;
}

.myeditor-image-wrap.is-left > a,
.myeditor-image-wrap.is-left > img {
    margin-right: auto;
    margin-left: 0;
}

.myeditor-image-wrap.is-center > a,
.myeditor-image-wrap.is-center > img {
    margin-left: auto;
    margin-right: auto;
}

.myeditor-image-wrap.is-right > a,
.myeditor-image-wrap.is-right > img {
    margin-left: auto;
    margin-right: 0;
}

.myeditor-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
}

.myeditor-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.42);
    backdrop-filter: blur(4px);
}

.myeditor-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(980px, calc(100% - 32px));
    margin: 8vh auto 0;
    max-height: calc(100vh - 16vh);
    display: flex;
    flex-direction: column;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.28);
    overflow: hidden;
}

.myeditor-modal-head,
.myeditor-modal-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 22px;
    border-bottom: 1px solid #edf1f5;
}

.myeditor-modal-foot {
    justify-content: flex-end;
    border-top: 1px solid #edf1f5;
    border-bottom: 0;
    flex-shrink: 0;
}

.myeditor-modal-body {
    padding: 20px 22px;
    overflow-y: auto;
    flex: 1 1 auto;
}

.myeditor-modal-title {
    font-size: 18px;
    font-weight: 700;
}

.myeditor-modal-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}

.myeditor-modal-field:last-child {
    margin-bottom: 0;
}

.myeditor-modal-field span {
    color: #475569;
    font-size: 13px;
    font-weight: 700;
}

.myeditor-modal-field input {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1px solid #d6dbe3;
    border-radius: 12px;
    font-size: 14px;
    box-sizing: border-box;
}

.myeditor-color-field {
    display: flex;
    align-items: center;
    gap: 10px;
}

.myeditor-color-field input[type="text"] {
    flex: 1 1 auto;
}

.myeditor-modal-field .myeditor-color-picker {
    flex: 0 0 54px;
    width: 54px;
    min-width: 54px;
    padding: 4px;
    cursor: pointer;
}

.myeditor-color-swatches {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
}

.myeditor-color-swatches-compact {
    grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
    margin-top: 8px;
}

.myeditor-timeline-builder-item .myeditor-color-swatch {
    padding: 6px 8px;
}

.myeditor-timeline-builder-item .myeditor-color-swatch-label {
    font-size: 11px;
}

.myeditor-color-swatch {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid #d6dbe3;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    text-align: left;
}

.myeditor-color-swatch-chip {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 999px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.myeditor-color-swatch-label {
    color: #334155;
    font-size: 12px;
    font-weight: 700;
}

.myeditor-modal-field select {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1px solid #d6dbe3;
    border-radius: 12px;
    font-size: 14px;
    box-sizing: border-box;
    background: #fff;
}

.myeditor-modal-field input[type="file"] {
    padding: 10px 12px;
    height: auto;
}

.myeditor-modal-field textarea {
    width: 100%;
    min-height: 140px;
    padding: 12px 14px;
    border: 1px solid #d6dbe3;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.6;
    box-sizing: border-box;
    resize: vertical;
}

.myeditor-timeline-builder {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.myeditor-timeline-builder-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.myeditor-timeline-builder-item {
    padding: 14px;
    border: 1px solid #dbe3ee;
    border-radius: 14px;
    background: #f8fafc;
}

.myeditor-timeline-builder-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 10px;
}

.myeditor-timeline-builder-grid label,
.myeditor-timeline-builder-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.myeditor-timeline-builder-grid span,
.myeditor-timeline-builder-body span {
    color: #475569;
    font-size: 12px;
    font-weight: 700;
}

.myeditor-timeline-builder-body textarea {
    min-height: 96px;
}

.myeditor-timeline-detail-builder {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.myeditor-timeline-detail-builder-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.myeditor-timeline-detail-builder-item {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 10px;
    border: 1px solid #dde5ef;
    border-radius: 12px;
    background: #fff;
}

.myeditor-timeline-detail-builder-item label {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.myeditor-timeline-detail-builder-item label.is-copy {
    min-width: 0;
}

.myeditor-timeline-detail-builder-item span {
    color: #475569;
    font-size: 12px;
    font-weight: 700;
}

.myeditor-timeline-detail-builder-actions {
    display: flex;
    gap: 8px;
    align-items: end;
}

.myeditor-timeline-builder-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.myeditor-timeline-builder-btn,
.myeditor-timeline-builder-add {
    height: 36px;
    padding: 0 12px;
    border: 1px solid #d6dbe3;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
}

.myeditor-timeline-builder-btn.is-danger {
    color: #b91c1c;
}

.myeditor-timeline-builder-add {
    align-self: flex-start;
    font-weight: 700;
}

.myeditor-staff-builder {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.myeditor-staff-builder-section {
    padding: 14px;
    border: 1px solid #dbe3ee;
    border-radius: 14px;
    background: #f8fafc;
}

.myeditor-staff-builder-section-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: end;
    margin-bottom: 12px;
}

.myeditor-staff-builder-section-meta {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr) minmax(0, .8fr);
    gap: 10px;
}

.myeditor-staff-builder-section-head label {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.myeditor-staff-builder-section-head span,
.myeditor-staff-builder-body span {
    color: #475569;
    font-size: 12px;
    font-weight: 700;
}

.myeditor-staff-builder-active {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 8px;
    padding-bottom: 10px;
    white-space: nowrap;
}

.myeditor-staff-builder-section-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.myeditor-staff-builder-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.myeditor-staff-builder-item {
    padding: 14px;
    border: 1px solid #dbe3ee;
    border-radius: 14px;
    background: #fff;
}

.myeditor-staff-builder-preview {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    margin-bottom: 12px;
    padding: 12px;
    border: 1px solid #e5ebf2;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.myeditor-staff-builder-preview-photo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 110px;
    height: 130px;
    overflow: hidden;
    border-radius: 12px;
    background: #eef2f7;
}

.myeditor-staff-builder-preview-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.myeditor-staff-builder-preview-photo.is-square {
    aspect-ratio: 1 / 1;
    height: auto;
}

.myeditor-staff-builder-preview-photo.is-landscape {
    aspect-ratio: 16 / 9;
    height: auto;
}

.myeditor-staff-builder-preview-photo.is-portrait {
    aspect-ratio: 4 / 5;
    height: auto;
}

.myeditor-staff-builder-preview-photo.is-empty {
    border: 1px dashed #cbd5e1;
    color: #64748b;
    font-weight: 700;
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

.myeditor-staff-builder-preview-copy strong {
    display: block;
    margin-bottom: 6px;
    color: #1f2937;
    font-size: 1rem;
}

.myeditor-staff-builder-preview-copy h4 {
    margin: 0 0 8px;
    color: #111827;
    font-size: 1.6rem;
    line-height: 1.15;
}

.myeditor-staff-builder-preview-copy span {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 8px;
    background: #324c8d;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.myeditor-staff-builder-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 10px;
}

.myeditor-staff-builder-grid label,
.myeditor-staff-builder-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.myeditor-staff-builder-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.myeditor-staff-builder-btn,
.myeditor-staff-builder-add {
    height: 36px;
    padding: 0 12px;
    border: 1px solid #d6dbe3;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
}

.myeditor-staff-builder-btn.is-danger {
    color: #b91c1c;
}

.myeditor-staff-builder-add {
    margin-top: 10px;
    align-self: flex-start;
    font-weight: 700;
}

.myeditor-modal-note {
    margin-bottom: 14px;
    padding: 14px 16px;
    border: 1px solid #d8e1ea;
    border-radius: 14px;
    background: #f8fafc;
    color: #516072;
    font-size: 13px;
    line-height: 1.7;
}

.myeditor-modal-note:last-child {
    margin-bottom: 0;
}

.myeditor-template-library {
    border: 1px solid #d8e1ea;
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
}

.myeditor-template-library-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    background: #f8fafc;
    border-bottom: 1px solid #e5ebf2;
}

.myeditor-template-library-head strong {
    font-size: 14px;
}

.myeditor-template-library-head span {
    color: #64748b;
    font-size: 12px;
}

.myeditor-template-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.myeditor-template-filter {
    height: 34px;
    padding: 0 12px;
    border: 1px solid #d6dbe3;
    border-radius: 999px;
    background: #fff;
    color: #475569;
    font-size: 13px;
    cursor: pointer;
}

.myeditor-template-filter.is-active {
    border-color: #c2410c;
    background: #fff7ed;
    color: #9a3412;
}

.myeditor-template-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.myeditor-template-category {
    height: 30px;
    padding: 0 10px;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #fff;
    color: #64748b;
    font-size: 12px;
    cursor: pointer;
}

.myeditor-template-category.is-active {
    border-color: #b45309;
    background: #fff4de;
    color: #9a3412;
}

.myeditor-template-library-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    max-height: 260px;
    overflow-y: auto;
    padding: 14px;
}

.myeditor-template-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    border: 1px solid #e5ebf2;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.myeditor-template-row:last-child {
    border-bottom: 0;
}

.myeditor-template-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    width: 100%;
    padding: 14px 16px;
    border: 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    text-align: left;
    cursor: pointer;
}

.myeditor-template-card-top {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
}

.myeditor-template-card-mark {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    background: #fff4de;
    color: #b45309;
    font-size: 11px;
    font-weight: 700;
}

.myeditor-template-item strong {
    font-size: 14px;
    color: #1f2937;
}

.myeditor-template-item-head {
    display: flex;
    align-items: center;
    gap: 8px;
}

.myeditor-template-item-head em {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 11px;
    font-style: normal;
}

.myeditor-template-item span {
    font-size: 12px;
    color: #64748b;
}

.myeditor-template-item:hover,
.myeditor-template-item.is-selected {
    background: linear-gradient(180deg, #fff7ed 0%, #fffbf5 100%);
}

.myeditor-template-delete {
    min-width: 62px;
    padding: 0 14px;
    border: 0;
    border-left: 1px solid #eef2f6;
    background: #fff;
    color: #b91c1c;
    font-size: 13px;
    cursor: pointer;
}

.myeditor-template-delete:hover {
    background: #fef2f2;
}

.myeditor-template-favorite {
    min-width: 48px;
    padding: 0 10px;
    border: 0;
    border-left: 1px solid #eef2f6;
    background: #fff;
    color: #94a3b8;
    font-size: 18px;
    cursor: pointer;
}

.myeditor-template-favorite.is-active {
    color: #d97706;
}

.myeditor-template-favorite:hover {
    background: #fffbeb;
}

.myeditor-template-library-empty {
    grid-column: 1 / -1;
    padding: 18px 16px;
    color: #64748b;
    font-size: 13px;
    border: 1px dashed #d6dbe3;
    border-radius: 14px;
    background: #fff;
}

.myeditor-template-preview {
    border-top: 1px solid #e5ebf2;
    background: #fcfdfd;
}

.myeditor-template-preview-head {
    padding: 12px 16px;
    border-bottom: 1px solid #eef2f6;
    color: #475569;
    font-size: 13px;
    font-weight: 700;
}

.myeditor-template-preview-body {
    max-height: 280px;
    overflow: auto;
    padding: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.myeditor-template-preview-body .myeditor-template,
.myeditor-template-preview-body .myeditor-block {
    margin: 0;
}

@media (max-width: 768px) {
    .myeditor-template-library-list {
        grid-template-columns: 1fr;
    }
}

.myeditor-modal-close,
.myeditor-modal-cancel,
.myeditor-modal-submit {
    height: 40px;
    padding: 0 16px;
    border: 1px solid #d6dbe3;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
}

.myeditor-modal-submit {
    border-color: #c2410c;
    background: linear-gradient(135deg, #c2410c 0%, #ea580c 100%);
    color: #fff;
    font-weight: 700;
}

@media (max-width: 768px) {
    .myeditor-shell {
        border-radius: 18px;
    }

    .myeditor-topbar {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px 16px 10px;
    }

    .myeditor-toolbar {
        gap: 8px;
        padding: 0 12px 12px;
    }

    .myeditor-toolbar-group {
        width: 100%;
        padding: 10px;
    }

    .myeditor-toolbar-group-wide {
        min-width: 0;
    }

    .myeditor-stage {
        padding: 0 12px 12px;
    }

    .myeditor-template-location,
    .myeditor-template-location.is-map-right {
        grid-template-columns: 1fr;
    }

    .myeditor-template-location.is-map-right .myeditor-template-location-map,
    .myeditor-template-location.is-map-right .myeditor-template-location-info {
        order: initial;
    }

    .myeditor-template-location-map,
    .myeditor-template-location-map iframe,
    .myeditor-template-location-map img,
    .myeditor-location-view,
    .myeditor-location-map-empty {
        min-height: 260px;
    }

    .myeditor-location-switch {
        top: 12px;
        right: 12px;
    }

    .myeditor-location-row {
        grid-template-columns: 1fr;
        background: #fff;
    }

    .myeditor-location-row strong {
        padding-bottom: 8px;
        text-align: left;
    }

    .myeditor-location-row span {
        padding-top: 0;
    }

    .myeditor-staff-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .myeditor-staff-tab {
        height: 64px;
        font-size: 1rem;
    }

    .myeditor-staff-person {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 24px 0;
    }

    .myeditor-staff-photo {
        min-height: auto;
    }

    .myeditor-staff-photo img {
        width: min(100%, 260px);
        max-height: 220px;
    }

    .myeditor-staff-copy h3 {
        font-size: 1.9rem;
    }

    .myeditor-block-columns {
        grid-template-columns: 1fr;
    }

    .myeditor-timeline-builder-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .myeditor-timeline-detail-builder-item {
        grid-template-columns: 1fr;
    }

    .myeditor-timeline-detail-builder-actions {
        align-items: stretch;
        flex-wrap: wrap;
    }

.myeditor-staff-builder-toggle {
    height: 36px;
    padding: 0 12px;
    border: 1px solid #d6dbe3;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    white-space: nowrap;
}

.myeditor-staff-builder-detail[hidden] {
    display: none !important;
}

.myeditor-staff-builder-item.is-collapsed {
    background: #f8fafc;
}

    .myeditor-staff-builder-section-head,
    .myeditor-staff-builder-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .myeditor-staff-builder-section-meta {
        grid-template-columns: 1fr;
    }

    .myeditor-staff-builder-preview {
        grid-template-columns: 1fr;
    }

    .myeditor-image-wrap > a,
    .myeditor-image-wrap > img {
        width: var(--image-mobile-width, 100%);
        max-width: 100%;
    }

    .myeditor-staff-builder-section-tools {
        justify-content: flex-start;
    }

    .myeditor-staff-builder-active {
        justify-content: flex-start;
        padding-bottom: 0;
    }

    .myeditor-block-timeline,
    .myeditor-block-timeline.is-milestone {
        padding: 20px 14px 20px 14px;
    }

    .myeditor-timeline-side {
        display: none;
    }

    .myeditor-timeline-badge {
        width: 110px;
        height: 110px;
        font-size: 1.35rem;
    }

    .myeditor-timeline-lead {
        font-size: 2rem;
    }

    .myeditor-timeline-track {
        margin-left: 0;
        padding-left: 44px;
    }

    .myeditor-timeline-track::before {
        left: 20px;
        transform: none;
    }

    .myeditor-timeline-item {
        grid-template-columns: 40px 1fr;
        gap: 14px;
        margin-bottom: 18px;
    }

    .myeditor-timeline-dot {
        grid-column: 1;
        margin: 0;
    }

    .myeditor-timeline-item.is-left .myeditor-timeline-card,
    .myeditor-timeline-item.is-right .myeditor-timeline-card,
    .myeditor-timeline-item.is-style-milestone.is-left .myeditor-timeline-card,
    .myeditor-timeline-item.is-style-milestone.is-right .myeditor-timeline-card {
        grid-column: 2;
        text-align: left;
    }

    .myeditor-timeline-item.is-left .myeditor-timeline-card,
    .myeditor-timeline-item.is-right .myeditor-timeline-card {
        padding-left: 16px;
        padding-right: 16px;
    }

    .myeditor-timeline-item.is-style-milestone.is-left .myeditor-timeline-card,
    .myeditor-timeline-item.is-style-milestone.is-right .myeditor-timeline-card {
        padding: 12px 16px;
    }

    .myeditor-timeline-orb {
        grid-column: 2 !important;
        justify-self: start;
        width: 68px;
        height: 68px;
        margin-bottom: 10px;
        font-size: 1.2rem;
    }

    .myeditor-timeline-item.is-style-milestone {
        align-items: start;
    }

    .myeditor-block-timeline.is-company {
        --timeline-company-orb-size: 76px;
        --timeline-company-year-font-size: 24px;
        --timeline-axis-x: 20px;
        padding-left: 14px;
    }

    .myeditor-block-timeline.is-company .myeditor-timeline-track {
        padding-left: 0;
    }

    .myeditor-block-timeline.is-company .myeditor-timeline-track::before {
        left: 20px !important;
        transform: translateX(-50%) !important;
    }

    .myeditor-timeline-item.is-style-company {
        display: block;
        position: relative;
        padding-left: 46px;
        margin-bottom: 20px;
    }

    .myeditor-timeline-item.is-style-company .myeditor-timeline-dot {
        left: 20px !important;
        top: 34px !important;
        transform: translate(-50%, -50%) !important;
        width: 18px;
        height: 18px;
        margin: 0;
        z-index: 2;
    }

    .myeditor-timeline-orb-company {
        display: inline-flex;
        width: auto;
        min-width: 112px;
        height: 68px;
        padding: 0 20px;
        margin: 0 0 8px;
        border-radius: 999px;
        font-size: 22px;
        margin-left: 0;
    }

    .myeditor-timeline-orb-company.is-wide {
        width: auto;
        min-width: 132px;
        height: 68px;
        padding: 0 22px;
        font-size: 19px;
        border-radius: 999px;
    }

    .myeditor-timeline-item.is-style-company .myeditor-timeline-card,
    .myeditor-timeline-item.is-style-company.is-left .myeditor-timeline-card,
    .myeditor-timeline-item.is-style-company.is-right .myeditor-timeline-card {
        display: block;
        text-align: left;
        padding: 14px 16px;
        width: auto;
        max-width: none;
        min-width: 0;
        box-sizing: border-box;
        overflow: hidden;
        margin-top: 0;
        margin-right: 0;
        margin-left: 0;
    }

    .myeditor-timeline-detail-row {
        flex-direction: row;
        align-items: flex-start;
        gap: 10px;
        flex-wrap: wrap;
    }

    .myeditor-timeline-detail-copy,
    .myeditor-timeline-card-company p {
        min-width: 0;
        word-break: keep-all;
        overflow-wrap: anywhere;
    }

    .myeditor-template-grid {
        grid-template-columns: 1fr;
    }

    .myeditor-modal-dialog {
        width: calc(100% - 20px);
        margin-top: 4vh;
        max-height: calc(100vh - 8vh);
        border-radius: 18px;
    }

    .myeditor-modal-head,
    .myeditor-modal-body,
    .myeditor-modal-foot {
        padding-left: 16px;
        padding-right: 16px;
    }

    .myeditor-canvas {
        padding: 14px;
        border-radius: 18px;
    }

    .myeditor-editable,
    .myeditor-html {
        padding: 18px 16px;
        font-size: 15px;
        border-radius: 14px;
    }
}
