:root {
  color-scheme: light;
  --marker-accent: #4f7ddc;
  --marker-accent-dark: #315fbd;
  --marker-ink: #172033;
  --marker-muted: #697386;
  --marker-line: #e1e7ef;
  --marker-soft: #f2f6ff;
  --marker-surface: #fff;
  --marker-danger: #bd555f;
  --marker-danger-soft: #fff3f4;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: #f7f9fc; color: var(--marker-ink); }
button, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: .65rem; font-size: clamp(1.8rem, 5vw, 2.8rem); letter-spacing: -.035em; line-height: 1.12; }
h2 { margin-bottom: 0; font-size: 1.18rem; letter-spacing: -.015em; }

.marker-header { position: sticky; z-index: 20; top: 0; display: flex; align-items: center; justify-content: space-between; min-height: 3.6rem; padding: .55rem max(1rem, calc((100vw - 70rem) / 2)); border-bottom: 1px solid var(--marker-line); background: rgb(255 255 255 / 90%); backdrop-filter: blur(14px); }
.marker-brand { display: inline-flex; align-items: center; gap: .58rem; color: var(--marker-ink); font-weight: 760; text-decoration: none; }
.marker-logo { display: grid; width: 2rem; height: 2rem; place-items: center; border-radius: .65rem; background: linear-gradient(145deg, #628fe8, var(--marker-accent)); box-shadow: 0 .3rem .8rem rgb(79 125 220 / 22%); color: #fff; }
.marker-account { display: flex; align-items: center; gap: .72rem; color: var(--marker-muted); font-size: .85rem; }
.marker-account form { margin: 0; }
.marker-account button { border: 0; padding: .35rem; border-radius: .5rem; background: transparent; color: var(--marker-accent-dark); cursor: pointer; }
.marker-account button:hover { background: var(--marker-soft); }
.marker-account .marker-admin-nav {
  padding: .35rem;
  border-radius: .5rem;
  background: transparent;
  color: inherit;
  font-weight: inherit;
  text-decoration: none !important;
}
.marker-account .marker-admin-nav:hover,
.marker-account .marker-admin-nav.is-current {
  background: transparent;
  color: inherit;
  font-weight: inherit;
  text-decoration: none !important;
}
.marker-container { width: min(70rem, calc(100% - 2rem)); margin: 0 auto; padding: clamp(1.25rem, 3vw, 2.25rem) 0 4rem; }

.marker-auth-container { width: min(28rem, calc(100% - 2rem)); margin: clamp(1.5rem, 8vh, 5rem) auto 4rem; }
.marker-auth-card { padding: clamp(1.2rem, 4vw, 1.7rem); border: 1px solid var(--marker-line); border-radius: 1.35rem; background: var(--marker-surface); box-shadow: 0 1.1rem 3rem rgb(32 53 84 / 8%); }
.marker-auth-card h1 { margin-bottom: .45rem; }
.marker-auth-intro, .marker-hero p, .marker-editor-heading p, .marker-project-heading p, .marker-empty p { color: var(--marker-muted); line-height: 1.65; }
.marker-auth-intro { margin-bottom: 1rem; }
.marker-form { display: grid; gap: .8rem; }
.marker-form label { display: grid; gap: .4rem; font-weight: 700; }
.marker-form label > span:first-child { font-size: .9rem; }
.marker-form input, .marker-item-card input { width: 100%; min-width: 0; min-height: 3rem; border: 1px solid var(--marker-line); border-radius: .78rem; padding: .72rem .85rem; background: #fff; color: var(--marker-ink); }
.marker-form input:focus, .marker-item-card input:focus { border-color: var(--marker-accent); outline: 0; box-shadow: 0 0 0 .22rem rgb(79 125 220 / 13%); }
.marker-form small, .marker-upload small { color: var(--marker-muted); font-weight: 400; line-height: 1.45; }
.marker-password-input { position: relative; display: block; }
.marker-password-input input { padding-right: 3rem; }
.marker-password-input button { position: absolute; top: 50%; right: .45rem; display: grid; width: 2.2rem; height: 2.2rem; padding: 0; place-items: center; border: 0; border-radius: .6rem; background: transparent; color: var(--marker-muted); cursor: pointer; transform: translateY(-50%); }
.marker-password-input button:hover { background: var(--marker-soft); color: var(--marker-accent-dark); }
.password-eye { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.password-eye-hide { display: none; }
[data-password-toggle][aria-pressed="true"] .password-eye-show { display: none; }
[data-password-toggle][aria-pressed="true"] .password-eye-hide { display: block; }
.marker-auth-footer { margin: 1.2rem 0 0; color: var(--marker-muted); text-align: center; }
.marker-auth-footer a, .marker-back a, .marker-project-title a { color: var(--marker-accent-dark); font-weight: 700; text-decoration: none; }
.marker-auth-note { margin: .7rem 0 0; color: #919bad; font-size: .74rem; line-height: 1.5; text-align: center; }
.marker-field-error, .marker-alert, .marker-error { color: #b64551 !important; }
.marker-alert { margin-bottom: 1rem; border: 1px solid #f0cdd1; border-radius: .75rem; padding: .75rem .85rem; background: var(--marker-danger-soft); }

/* Price marker authentication: primitives → semantic → component tokens. */
.marker-auth-page {
  --pm-text-primary: #1F2328;
  --pm-text-secondary: #5F636A;
  --pm-text-muted: #8A8D92;
  --pm-icon: #3F434A;
  --pm-icon-muted: #8A8D92;
  --pm-bg-primary: #FAFAFB;
  --pm-surface: #FFFFFF;
  --pm-border: #E5E7EB;
  --pm-border-strong: #D8DADF;
  --pm-action: #2F3136;
  --pm-action-hover: #3A3D43;
  --pm-action-active: #26282D;
  --pm-action-secondary-bg: #FFFFFF;
  --pm-action-secondary-text: #3F434A;
  --pm-action-secondary-border: #D8DADF;
  --pm-action-secondary-hover: #F7F7F8;
  --pm-action-secondary-active: #F0F1F2;
  --pm-focus: #A8ADB5;
  --pm-focus-ring: rgb(60 64 72 / 10%);
  --pm-shadow-soft: 0 8px 24px rgb(20 20 22 / 6%);
  --pm-shadow-modal: 0 18px 48px rgb(20 20 22 / 10%);
  --pm-danger: #B85C5C;
  --pm-danger-bg: #FFF5F5;
  --pm-danger-border: #E9CACA;
  --pm-keyword-bg: var(--pm-action);
  --auth-page: var(--pm-bg-primary);
  --auth-surface: var(--pm-surface);
  --auth-text: var(--pm-text-primary);
  --auth-muted: var(--pm-text-secondary);
  --auth-border: var(--pm-border);
  --auth-control: var(--pm-action);
  --auth-control-hover: var(--pm-action-hover);
  --auth-radius: .85rem;
  --auth-transition: 180ms ease;
  background: var(--auth-page);
  color: var(--auth-text);
  scroll-behavior: smooth;
}
.marker-auth-page .marker-header { position: static; min-height: 4.5rem; padding-inline: max(1.25rem, calc((100vw - 70rem) / 2)); border-bottom: 1px solid var(--auth-border); background: rgb(255 255 255 / 94%); box-shadow: none; }
.marker-auth-page .marker-brand { color: var(--auth-text); font-weight: 720; letter-spacing: .005em; }
.marker-auth-page .marker-logo { width: 1.35rem; height: 1.35rem; border-radius: 0; background: transparent; box-shadow: none; color: var(--pm-text-primary); }
.marker-auth-page .marker-logo svg { width: 100%; height: 100%; }
.marker-auth-page .marker-container { width: min(70rem, calc(100% - 2.5rem)); min-height: calc(100dvh - 4.5rem); padding: clamp(3.25rem, 8vh, 6.5rem) 0 4.5rem; }
.marker-auth-page .marker-auth-container { width: 100%; margin: 0; }
.marker-auth-landing { display: grid; justify-items: center; gap: clamp(2.75rem, 7vh, 4.25rem); width: min(100%, 61rem); margin: 0 auto; text-align: center; }
.marker-auth-copy { width: min(100%, 52rem); margin: 0; }
.marker-auth-copy h1 { max-width: 54rem; margin: 0 auto; color: var(--pm-icon); font-size: clamp(2.4rem, 4.37vw, 3.9rem); font-weight: 740; letter-spacing: -.05em; line-height: 1.08; text-wrap: balance; }
.marker-auth-title-line { display: block; white-space: nowrap; }
.marker-auth-title-prefix, .marker-auth-title-keywords { display: inline; }
.marker-auth-title-line + .marker-auth-title-line { margin-top: .085em; }
.marker-auth-keyword { padding: .04em .108em; border-radius: var(--auth-radius); background: var(--pm-keyword-bg); color: #fff; font-weight: 800; white-space: nowrap; }
.marker-auth-title-line:first-child .marker-auth-title-keywords > .marker-auth-keyword:first-of-type { margin-left: .14em; }
.marker-auth-separator { margin-inline: 0; }
.marker-auth-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 1.5rem; }
.marker-auth-page .marker-button { min-height: 2.9rem; border-radius: var(--auth-radius); box-shadow: none; transition: background var(--auth-transition), border-color var(--auth-transition), color var(--auth-transition), transform var(--auth-transition); }
.marker-auth-page .marker-button:focus-visible, .marker-auth-page input:focus-visible, .marker-auth-page .marker-password-input button:focus-visible, .marker-auth-page .marker-login-modal-close:focus-visible { outline: 3px solid var(--pm-focus-ring); outline-offset: 3px; }
.marker-auth-page .marker-auth-primary, .marker-auth-page .marker-form > .marker-button { min-width: 8.6rem; border-color: var(--auth-control); background: var(--auth-control); color: #fff; }
.marker-auth-page .marker-auth-actions .marker-auth-primary:hover:not(:disabled), .marker-auth-page .marker-form > .marker-button:hover:not(:disabled) { background: var(--auth-control-hover); transform: translateY(-1px); }
.marker-auth-page .marker-auth-actions .marker-auth-primary:active:not(:disabled), .marker-auth-page .marker-form > .marker-button:active:not(:disabled) { background: var(--pm-action-active); transform: translateY(0); }
.marker-auth-page .marker-auth-secondary { min-width: 10.6rem; border-color: var(--pm-action-secondary-border); background: var(--pm-action-secondary-bg); color: var(--pm-action-secondary-text); }
.marker-auth-page .marker-auth-secondary:hover:not(:disabled) { border-color: var(--pm-action-secondary-border); background: var(--pm-action-secondary-hover); color: var(--pm-action-secondary-text); transform: translateY(-1px); }
.marker-auth-page .marker-auth-secondary:active:not(:disabled) { background: var(--pm-action-secondary-active); transform: translateY(0); }
.marker-feature-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2.5rem); width: min(100%, 60rem); margin: 0 auto; padding: 0; list-style: none; text-align: center; }
.marker-feature-list li { min-width: 0; padding: 0; }
.marker-feature-list strong, .marker-feature-list small { display: block; }
.marker-feature-list strong { color: var(--auth-text); font-size: .96rem; font-weight: 680; letter-spacing: .005em; }
.marker-feature-list small { margin-top: .38rem; color: var(--pm-text-muted); font-size: .84rem; line-height: 1.58; }
.marker-register-panel { width: min(100%, 25rem); margin: 0 auto; padding: 0; text-align: left; }
.marker-register-panel h1 { margin: 0 0 1.15rem; color: var(--auth-text); font-size: 1.42rem; font-weight: 700; letter-spacing: -.025em; }
.marker-register-container { display: grid; min-height: calc(100dvh - 13rem); place-items: center; }
.marker-auth-kicker { margin: 0 0 .65rem; color: var(--pm-text-secondary); font-size: .8rem; font-weight: 650; letter-spacing: .06em; }
.marker-auth-intro { margin: 0 0 1.75rem; color: var(--auth-muted); line-height: 1.65; }
.marker-auth-page .marker-form { gap: 1rem; }
.marker-auth-page .marker-form label { gap: .45rem; color: var(--auth-text); font-weight: 650; }
.marker-auth-page .marker-form label > span:first-child { font-size: .88rem; }
.marker-auth-page .marker-form input { min-height: 3rem; border-color: var(--auth-border); border-radius: .7rem; background: var(--auth-surface); color: var(--auth-text); }
.marker-auth-page .marker-form input:hover { border-color: var(--pm-border-strong); }
.marker-auth-page .marker-form input::placeholder { color: var(--pm-text-muted); }
.marker-auth-page .marker-form input:focus { border-color: var(--pm-focus); box-shadow: 0 0 0 .22rem var(--pm-focus-ring); }
.marker-auth-page .marker-password-input button { color: var(--auth-muted); }
.marker-auth-page .marker-password-input button:hover { background: var(--pm-bg-primary); color: var(--auth-text); }
.marker-auth-page .marker-auth-footer { margin-top: 1.1rem; color: var(--auth-muted); font-size: .9rem; }
.marker-auth-page .marker-auth-footer a { color: var(--pm-action-secondary-text); font-weight: 700; }
.marker-auth-page .marker-auth-footer a:hover { color: var(--pm-text-primary); }
.marker-auth-page .marker-auth-note { color: var(--auth-muted); }
.marker-auth-page .marker-field-error, .marker-auth-page .marker-alert, .marker-auth-page .marker-error { color: var(--pm-danger) !important; }
.marker-auth-page .marker-alert { border-color: var(--pm-danger-border); background: var(--pm-danger-bg); }
.marker-login-modal { position: fixed; z-index: 100; inset: 0; display: grid; padding: 1.25rem; place-items: center; }
.marker-login-modal-backdrop { position: absolute; inset: 0; background: rgb(23 24 26 / 45%); backdrop-filter: blur(2px); }
.marker-login-modal-card { position: relative; z-index: 1; width: min(100%, 25rem); max-height: min(44rem, calc(100dvh - 2.5rem)); overflow: auto; padding: clamp(1.35rem, 4vw, 1.8rem); border: 1px solid var(--auth-border); border-radius: 1.1rem; background: var(--auth-surface); box-shadow: var(--pm-shadow-modal); }
.marker-login-modal-card h2 { margin: 0 2.6rem 1.15rem 0; color: var(--auth-text); font-size: 1.42rem; font-weight: 700; letter-spacing: -.025em; }
.marker-login-modal-close { position: absolute; top: .85rem; right: .85rem; display: grid; width: 2.25rem; height: 2.25rem; padding: 0; place-items: center; border: 0; border-radius: 50%; background: var(--pm-bg-primary); color: var(--pm-icon); cursor: pointer; font-size: 1.35rem; line-height: 1; }
.marker-login-modal-close:hover { background: var(--pm-border); color: var(--pm-text-primary); }
.marker-login-modal-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; margin-top: .35rem; }
.marker-auth-page .marker-login-modal-actions .marker-button:not(.marker-button-secondary) { border-color: var(--pm-action); background: var(--pm-action); color: #fff; }
.marker-auth-page .marker-login-modal-actions .marker-button:not(.marker-button-secondary):hover:not(:disabled) { background: var(--pm-action-hover); }
.marker-auth-page .marker-login-modal-actions .marker-button:not(.marker-button-secondary):active:not(:disabled) { background: var(--pm-action-active); }
.marker-auth-page .marker-login-modal-actions .marker-button-secondary { border-color: var(--pm-action-secondary-border); background: var(--pm-action-secondary-bg); color: var(--pm-action-secondary-text); }
.marker-auth-page .marker-login-modal-actions .marker-button-secondary:hover:not(:disabled) { border-color: var(--pm-action-secondary-border); background: var(--pm-action-secondary-hover); color: var(--pm-action-secondary-text); }
.marker-auth-page .marker-login-modal-actions .marker-button-secondary:active:not(:disabled) { background: var(--pm-action-secondary-active); }
@media (max-width: 767px) {
  .marker-auth-page .marker-header { min-height: 4rem; padding-inline: 1.25rem; }
  .marker-auth-page .marker-container { width: min(100% - 2.5rem, 32rem); min-height: calc(100dvh - 4rem); padding: 3.25rem 0; }
  .marker-auth-landing { gap: 2.75rem; }
  .marker-auth-copy { text-align: center; }
  .marker-auth-copy h1 { max-width: 22rem; font-size: clamp(1.9rem, 8.2vw, 3.1rem); letter-spacing: -.045em; line-height: 1.12; }
  .marker-auth-title-line { display: inline; white-space: normal; }
  .marker-auth-title-line + .marker-auth-title-line { margin-top: 0; }
  .marker-auth-title-line:first-child { display: block; }
  .marker-auth-title-prefix, .marker-auth-title-keywords { display: block; }
  .marker-auth-title-keywords { display: block; margin-top: .12em; white-space: nowrap; }
  .marker-auth-title-line + .marker-auth-title-line { display: block; margin-top: .26em; }
  .marker-auth-keyword { padding: 0; border-radius: 0; background: transparent; color: inherit; font-weight: inherit; }
  .marker-auth-title-line:first-child .marker-auth-title-keywords > .marker-auth-keyword:first-of-type { margin-left: 0; }
  .marker-auth-separator { display: inline; margin-inline: .06em; }
  .marker-auth-actions { display: grid; margin-top: 1.5rem; }
  .marker-auth-actions .marker-button { width: 100%; }
  .marker-feature-list { grid-template-columns: 1fr; gap: 1.35rem; text-align: left; }
  .marker-register-container { min-height: calc(100dvh - 10.5rem); }
  .marker-login-modal { padding: 1rem; }
  .marker-login-modal-card { max-height: calc(100dvh - 2rem); }
}
@media (min-width: 48rem) {
  .marker-auth-page .marker-container { padding-top: clamp(5.25rem, 12vh, 7.5rem); }
  .marker-auth-actions { margin-top: 1.68rem; }
  .marker-feature-list small { width: 100%; margin-inline: auto; }
}
@media (prefers-reduced-motion: reduce) { .marker-auth-page { scroll-behavior: auto; } .marker-auth-page .marker-button { transition: none; } }

.marker-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(17rem, 25rem); gap: clamp(1.2rem, 4vw, 3rem); align-items: center; padding: clamp(1.35rem, 4vw, 2.8rem); border: 1px solid var(--marker-line); border-radius: 1.45rem; background: var(--marker-surface); }
.marker-home-hero { min-height: 0; padding-block: clamp(1.3rem, 3vw, 2rem); background: #fff; }
.marker-hero-copy { max-width: 36rem; }
.marker-hero-points { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.1rem; }
.marker-hero-points span { padding: .35rem .6rem; border-radius: 999px; background: #edf3ff; color: var(--marker-accent-dark); font-size: .78rem; font-weight: 700; }
.marker-home-actions { padding: .15rem 0 1.05rem; }
.marker-home-points { margin: 0; }
.marker-home-points span { min-height: 1.8rem; padding: .3rem .62rem; font-size: .74rem; }
section.marker-section.marker-projects-section { margin-top: 0; padding: .15rem 0 0; border: 0; border-radius: 0; background: transparent; }
.marker-create-inline { width: 100%; margin-top: .85rem; border-radius: 999px; font-size: .92rem; }
.marker-eyebrow { margin-bottom: .4rem; color: var(--marker-accent-dark) !important; font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.marker-upload { display: grid; gap: .9rem; padding: 1.05rem; border: 1px solid var(--marker-line); border-radius: 1rem; background: #fff; }
.marker-upload label { display: grid; gap: .45rem; font-weight: 700; }
.marker-upload input[type="file"] { width: 100%; padding: .85rem; border: 1px dashed #b9c9e5; border-radius: .8rem; background: #f9fbff; color: var(--marker-muted); }
.marker-button { display: inline-grid; min-height: 2.75rem; place-items: center; border: 1px solid transparent; border-radius: .8rem; padding: .65rem 1rem; background: var(--marker-accent); box-shadow: 0 .3rem .7rem rgb(79 125 220 / 17%); color: #fff; font-weight: 760; text-decoration: none; cursor: pointer; transition: background 150ms ease, border-color 150ms ease, transform 150ms ease; }
.marker-button:hover:not(:disabled) { background: var(--marker-accent-dark); transform: translateY(-1px); }
.marker-button:disabled { cursor: not-allowed; opacity: .48; box-shadow: none; }
.marker-button-secondary { border-color: var(--marker-line); background: #fff; box-shadow: none; color: var(--marker-accent-dark); }
.marker-button-secondary:hover:not(:disabled) { border-color: #b9c9e5; background: var(--marker-soft); }
.marker-button-danger { background: var(--marker-danger); box-shadow: 0 .3rem .7rem rgb(189 85 95 / 15%); }
.marker-button-danger:hover:not(:disabled) { background: #a7434d; }
.marker-error { margin: 0; font-size: .88rem; }
.marker-upload-preview { display: grid; grid-template-columns: 4.2rem minmax(0, 1fr); gap: .75rem; align-items: center; padding: .45rem; border-radius: .8rem; background: #f8faff; color: var(--marker-muted); font-size: .82rem; }
.marker-upload-preview img { width: 4.2rem; height: 4.2rem; border-radius: .7rem; object-fit: cover; }
.marker-create-project { display: grid; gap: .8rem; }
.marker-create-project label { display: grid; gap: .42rem; color: var(--marker-ink); font-size: .9rem; font-weight: 700; }
.marker-create-project input { width: 100%; min-height: 2.8rem; border: 1px solid var(--marker-line); border-radius: .78rem; padding: .62rem .8rem; color: var(--marker-ink); }
.marker-create-project input:focus { border-color: var(--marker-accent); outline: 0; box-shadow: 0 0 0 .22rem rgb(79 125 220 / 13%); }
.marker-create-project-copy { display: grid; gap: .12rem; }
.marker-create-project-copy strong { font-size: 1rem; }
.marker-create-project-copy p { margin: 0; color: var(--marker-muted); font-size: .8rem; }
.marker-project-upload-form { padding: 0; border: 0; background: transparent; }
.marker-upload-dropzone { display: grid !important; min-height: 7.5rem; padding: .9rem; place-items: center; border: 1px dashed #aac0e7; border-radius: 1rem; background: #f8fbff; color: var(--marker-ink); cursor: pointer; text-align: center; transition: border-color 150ms ease, background 150ms ease; }
.marker-upload-dropzone:hover { border-color: var(--marker-accent); background: #eff5ff; }
.marker-upload-dropzone input[type="file"] { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.marker-upload-dropzone strong { margin-top: .3rem; }
.marker-upload-dropzone small { max-width: 24rem; }
.marker-upload-dropzone-plus { display: grid; width: 2.35rem; height: 2.35rem; place-items: center; border-radius: .75rem; background: #fff; box-shadow: 0 .25rem .7rem rgb(49 95 189 / 10%); color: var(--marker-accent-dark); font-size: 1.35rem; font-weight: 400; }

.marker-section { margin-top: 1.3rem; padding: clamp(1rem, 3vw, 1.35rem); border: 1px solid var(--marker-line); border-radius: 1.2rem; background: var(--marker-surface); }
.marker-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.marker-section-heading > span { color: var(--marker-muted); font-size: .84rem; }
.marker-board-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: .9rem; }
.marker-board-card { overflow: hidden; border: 1px solid var(--marker-line); border-radius: .95rem; background: #fff; text-decoration: none; transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease; }
.marker-board-card:hover { border-color: #bfd0ef; box-shadow: 0 .75rem 1.8rem rgb(32 53 84 / 9%); transform: translateY(-2px); }
.marker-image-card > a { display: block; color: inherit; text-decoration: none; }
.marker-board-card img { display: block; width: 100%; aspect-ratio: 4 / 3; background: #edf2f8; object-fit: cover; }
.marker-board-card div { display: grid; gap: .32rem; padding: .82rem; }
.marker-project-card { display: grid; min-height: 10rem; gap: .3rem; padding: .9rem; }
.marker-project-card > div { min-height: 0; padding: 0; }
.marker-project-card-top { display: grid !important; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .65rem; }
.marker-project-card-top strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.marker-project-card-mark { display: grid; width: 2.2rem; height: 2.2rem; place-items: center; border-radius: 50%; background: var(--marker-soft); color: var(--marker-accent-dark) !important; font-size: .9rem !important; font-weight: 800; }
.marker-project-card-meta { display: flex !important; flex-wrap: wrap; gap: .2rem .55rem; align-self: end; }
.marker-project-card > b { align-self: end; color: var(--marker-accent-dark); font-size: 1.25rem; }
.marker-project-card > small { color: var(--marker-muted); }
.marker-board-card span { overflow: hidden; color: var(--marker-muted); font-size: .8rem; text-overflow: ellipsis; white-space: nowrap; }
.marker-board-card b { color: var(--marker-accent-dark); font-size: 1.02rem; }
.marker-board-card small { color: var(--marker-muted); font-size: .76rem; line-height: 1.4; }
.marker-image-actions { display: flex; gap: .4rem; border-top: 1px solid var(--marker-line); padding: .58rem; }
.marker-image-actions form { flex: 1; margin: 0; }
.marker-image-actions button { width: 100%; min-height: 2.15rem; border: 1px solid var(--marker-line); border-radius: .65rem; background: #fff; color: var(--marker-muted); cursor: pointer; font-size: .76rem; }
.marker-image-actions button:hover:not(:disabled) { border-color: #b9c9e5; background: var(--marker-soft); color: var(--marker-accent-dark); }
.marker-image-actions button:disabled { cursor: not-allowed; opacity: .4; }
.marker-image-actions button.is-danger { color: var(--marker-danger); }
.marker-image-actions button.is-danger:hover:not(:disabled) { border-color: #edcdd1; background: var(--marker-danger-soft); color: var(--marker-danger); }
.marker-empty { padding: 1.7rem 1rem; border-radius: .9rem; background: #f7f9fc; text-align: center; }
.marker-empty p { margin: .35rem 0 0; }

.marker-project-list { overflow: hidden; border: 1px solid var(--marker-line); border-radius: 1rem; background: #fff; }
.marker-project-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: auto auto; align-items: center; column-gap: .75rem; row-gap: .14rem; min-height: 5.75rem; padding: .9rem 1rem; color: var(--marker-ink); text-decoration: none; }
.marker-project-card + .marker-project-card { border-top: 1px solid var(--marker-line); }
.marker-project-card:hover { background: #fbfdff; }
.marker-project-card-mark { grid-row: 1 / -1; flex: 0 0 auto; display: grid; width: 2.45rem; height: 2.45rem; place-items: center; border-radius: .72rem; background: var(--marker-soft); color: var(--marker-accent-dark); }
.marker-project-card-mark svg { width: 1.42rem; height: 1.42rem; }
.marker-project-card-copy, .marker-project-card-total { display: contents; }
.marker-project-card-copy strong { grid-column: 2; grid-row: 1; overflow: hidden; font-size: .96rem; font-weight: 700; letter-spacing: .015em; text-overflow: ellipsis; white-space: nowrap; }
.marker-project-card-copy small { grid-column: 2; grid-row: 2; }
.marker-project-card-copy small, .marker-project-card-total small { color: var(--marker-muted); font-size: .78rem; line-height: 1.35; }
.marker-project-card-total b { grid-column: 3; grid-row: 1; color: var(--marker-accent-dark); font-size: 1.08rem; text-align: right; }
.marker-project-card-total small { grid-column: 3; grid-row: 2; text-align: right; white-space: nowrap; }

.marker-image-list { overflow: hidden; border: 1px solid var(--marker-line); border-radius: 1rem; background: #fff; }
.marker-image-row + .marker-image-row { border-top: 1px solid var(--marker-line); }
.marker-image-main { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr) auto; grid-template-rows: auto auto; align-items: center; column-gap: .85rem; row-gap: .16rem; padding: .8rem; color: var(--marker-ink); text-decoration: none; }
.marker-image-main:hover { background: #fbfdff; }
.marker-image-main img { grid-row: 1 / -1; display: block; width: 6.5rem; height: 4.8rem; border-radius: .72rem; background: #edf2f8; object-fit: cover; }
.marker-image-copy, .marker-image-total { display: contents; }
.marker-image-copy strong { grid-column: 2; grid-row: 1; min-width: 0; font-size: .96rem; }
.marker-image-copy small { grid-column: 2; grid-row: 2; }
.marker-image-copy small, .marker-image-total small { overflow: hidden; color: var(--marker-muted); font-size: .78rem; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.marker-image-total b { grid-column: 3; grid-row: 1; color: var(--marker-accent-dark); font-size: 1.08rem; text-align: right; white-space: nowrap; }
.marker-image-total small { grid-column: 3; grid-row: 2; text-align: right; white-space: nowrap; }
.marker-image-actions { display: flex; justify-content: flex-end; gap: .35rem; border-top: 1px solid var(--marker-line); padding: .5rem .8rem; background: #fcfdff; }
.marker-image-actions form { flex: 0 0 auto; margin: 0; }
.marker-image-actions button { width: auto; min-height: 1.9rem; border: 0; border-radius: .55rem; padding: .3rem .5rem; background: transparent; color: var(--marker-muted); cursor: pointer; font-size: .76rem; }
.marker-image-actions button:hover:not(:disabled) { background: var(--marker-soft); color: var(--marker-accent-dark); }
.marker-image-actions button:disabled { display: none; }
.marker-image-actions button.is-danger { color: var(--marker-danger); }
.marker-image-actions button.is-danger:hover:not(:disabled) { background: var(--marker-danger-soft); color: var(--marker-danger); }

.marker-back { margin-bottom: 1rem; }
.marker-back a { display: inline-flex; padding: .35rem 0; }
.marker-editor-heading, .marker-project-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; }
.marker-project-heading h1, .marker-editor-heading h1 { margin: 0; font-size: clamp(1.55rem, 4vw, 2.3rem); }
.marker-project-heading h1 { letter-spacing: .015em; font-weight: 700; }
.marker-project-title { display: flex; align-items: center; gap: .45rem; }
.marker-project-title a { padding: .3rem .45rem; border-radius: .55rem; color: var(--marker-muted); font-size: .78rem; font-weight: 650; white-space: nowrap; }
.marker-project-title a:hover { background: var(--marker-soft); }
.marker-project-edit { margin-top: 1rem; }
.marker-summary { display: flex; flex-wrap: wrap; gap: .55rem; }
.marker-summary span { min-width: 8.2rem; padding: .72rem .85rem; border: 1px solid var(--marker-line); border-radius: .85rem; background: #fff; color: var(--marker-muted); font-size: .79rem; }
.marker-summary strong { display: block; margin-top: .18rem; color: var(--marker-ink); font-size: 1.06rem; }
.marker-summary small { display: block; margin-top: .28rem; color: var(--marker-muted); }
.marker-summary b { color: inherit; }
.marker-project-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; overflow: hidden; border: 1px solid var(--marker-line); border-radius: .9rem; background: #fff; }
.marker-project-stats span { min-width: 0; padding: .78rem 1rem; border: 0; border-radius: 0; }
.marker-project-stats span + span { border-left: 1px solid var(--marker-line); }
.marker-project-stats small { margin: 0; }
.marker-project-stats strong { margin-top: .15rem; font-size: 1.02rem; }
.marker-export-panel { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-top: 1.2rem; border: 1px solid var(--marker-line); border-radius: 1rem; padding: .65rem .8rem; background: #fff; }
.marker-export-panel small { color: var(--marker-muted); font-size: .8rem; line-height: 1.45; }
.marker-export-actions, .marker-export-options { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; }
.marker-project-export-button { min-height: 2.1rem; padding: .38rem .65rem; border-radius: .62rem; font-size: .8rem; }
.marker-export-options label { color: var(--marker-muted); font-size: .82rem; white-space: nowrap; }
.marker-export-actions > span, .marker-export-options > span { color: var(--marker-muted); font-size: .8rem; }
.marker-project-upload { padding: .9rem; }
.marker-project-upload .marker-section-heading { align-items: center; margin-bottom: .75rem; }
.marker-project-upload .marker-section-heading p { margin: .25rem 0 0; color: var(--marker-muted); font-size: .8rem; }
.marker-project-upload .marker-upload-dropzone { min-height: 6.25rem; padding: .75rem; }
.marker-project-upload .marker-upload-dropzone small { font-size: .74rem; }
.marker-project-images .marker-section-heading { align-items: center; margin-bottom: .75rem; }
.marker-project-images .marker-section-heading .marker-eyebrow { margin: 0; }

.marker-image-tabs { display: flex; align-items: center; gap: .5rem; margin-top: 1rem; overflow-x: auto; padding: .1rem .05rem .35rem; }
.marker-tabs-label { flex: 0 0 auto; color: var(--marker-muted); font-size: .8rem; font-weight: 700; }
.marker-image-tabs a { display: grid; min-width: 5.5rem; gap: .15rem; border: 1px solid var(--marker-line); border-radius: .75rem; padding: .58rem .72rem; background: #fff; color: var(--marker-muted); text-decoration: none; }
.marker-image-tabs a.is-current { border-color: #9db7e8; background: var(--marker-soft); color: var(--marker-accent-dark); box-shadow: inset 0 0 0 1px rgb(79 125 220 / 8%); }
.marker-image-tabs span { font-weight: 760; }
.marker-image-tabs small { font-size: .76rem; }
.marker-editor-shell { margin-top: .9rem; overflow: hidden; border: 1px solid var(--marker-line); border-radius: 1.15rem; background: #fff; }
.marker-editor-overview { padding: .15rem 0 .3rem; }
.marker-editor-stats { gap: .4rem; }
.marker-editor-stats span { min-width: 9.75rem; padding: .62rem .75rem; }
.marker-editor-stats small { margin: 0; }
.marker-editor-stats strong { margin-top: .12rem; font-size: .9rem; }
.marker-editor-stats em { display: block; margin-top: .2rem; color: var(--marker-muted); font-size: .78rem; font-style: normal; }
.marker-editor-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 1rem; border-bottom: 1px solid var(--marker-line); }
.marker-editor-toolbar div { display: grid; gap: .2rem; }
.marker-editor-toolbar small { color: var(--marker-muted); }
.marker-editor-toolbar label { display: flex; align-items: center; gap: .5rem; color: var(--marker-muted); font-size: .8rem; }
.marker-image-scroll { overflow: auto; max-height: 72vh; padding: .7rem; background: #edf2f8; }
.marker-image-frame { position: relative; width: 100%; min-width: 100%; margin: 0 auto; border-radius: .8rem; overflow: hidden; box-shadow: 0 .4rem 1rem rgb(32 53 84 / 10%); }
.marker-image-frame img { display: block; width: 100%; height: auto; user-select: none; }
.marker-selection-layer { position: absolute; inset: 0; cursor: crosshair; touch-action: none; }
.marker-region-draft, .marker-region-box { position: absolute; border: 2px solid var(--marker-accent); border-radius: .5rem; background: rgb(79 125 220 / 10%); }
.marker-region-draft { pointer-events: none; }
.marker-region-box { display: block; min-width: 0; min-height: 0; padding: 0; color: #fff; cursor: move; touch-action: none; }
.marker-region-box.is-selected { border-width: 3px; background: rgb(79 125 220 / 18%); box-shadow: 0 0 0 2px rgb(255 255 255 / 84%); }
.marker-region-number { position: absolute; top: .25rem; left: .25rem; display: grid; box-sizing: border-box; max-width: calc(100% - .5rem); max-height: calc(100% - .5rem); min-width: 1.65rem; min-height: 1.5rem; overflow: hidden; padding: .15rem .45rem; place-items: center; border: 1px solid rgb(255 255 255 / 78%); border-radius: .5rem; background: rgb(49 95 189 / 88%); color: #fff; font-size: .72rem; font-weight: 800; line-height: 1.15; text-overflow: clip; white-space: nowrap; }
.marker-region-control,
.marker-region-copy-control { position: absolute; z-index: 2; display: grid; width: var(--marker-region-control-hit-size, 2rem); height: var(--marker-region-control-hit-size, 2rem); margin: 0; padding: 0; place-items: center; border: 0; border-radius: 50%; background: transparent; color: #fff; }
.marker-region-control::before,
.marker-region-copy-control::before { position: absolute; box-sizing: border-box; width: var(--marker-region-control-visual-size, 1.375rem); height: var(--marker-region-control-visual-size, 1.375rem); border: 2px solid #fff; border-radius: 50%; background: var(--marker-accent-dark); content: ""; }
.marker-resize-handle { right: calc(var(--marker-region-control-hit-size, 2rem) / -2); bottom: calc(var(--marker-region-control-hit-size, 2rem) / -2); cursor: nwse-resize; }
.marker-region-copy-control { top: calc(var(--marker-region-control-hit-size, 2rem) / -2); right: calc(var(--marker-region-control-hit-size, 2rem) / -2); cursor: copy; opacity: 0; pointer-events: none; transition: opacity 120ms ease; }
.marker-region-copy-control > span { position: relative; z-index: 1; display: grid; width: .625rem; height: .625rem; place-items: center; }
.marker-region-copy-control > span::before,
.marker-region-copy-control > span::after { grid-area: 1 / 1; border-radius: 1px; background: currentColor; content: ""; }
.marker-region-copy-control > span::before { width: .625rem; height: 2px; }
.marker-region-copy-control > span::after { width: 2px; height: .625rem; }
.marker-region-box:hover .marker-region-copy-control,
.marker-region-box.is-selected .marker-region-copy-control,
.marker-region-box:focus-within .marker-region-copy-control { opacity: 1; pointer-events: auto; }
.marker-region-copy-control:focus { outline: none; }
.marker-region-copy-control:focus-visible::before { box-shadow: 0 0 0 3px rgb(60 64 72 / 18%); }
.marker-items-section { scroll-margin-top: 5rem; }
.marker-item-list { overflow: hidden; display: grid; gap: 0; border: 1px solid var(--marker-line); border-radius: .9rem; background: #fff; }
.marker-item-card { display: grid; grid-template-columns: auto minmax(10rem, 1fr) minmax(8rem, .55fr) auto; gap: .75rem; align-items: end; border: 0; border-radius: 0; padding: .78rem; background: #fff; scroll-margin-top: 5rem; }
.marker-item-card + .marker-item-card { border-top: 1px solid var(--marker-line); }
.marker-item-card.is-selected { background: #fbfdff; box-shadow: inset .2rem 0 0 var(--marker-accent); }
.marker-item-card label { display: grid; gap: .35rem; color: var(--marker-muted); font-size: .8rem; font-weight: 700; }
.marker-item-card input { min-height: 2.6rem; padding: .55rem .65rem; border-radius: .65rem; }
.marker-item-card input.is-invalid { border-color: var(--marker-danger); background: var(--marker-danger-soft); }
.marker-item-number { display: grid; width: 2.35rem; height: 2.35rem; margin-bottom: .12rem; place-items: center; border-radius: 50%; background: var(--marker-soft); color: var(--marker-accent-dark); font-weight: 800; }
.marker-price-input { position: relative; display: block; }
.marker-price-input b { position: absolute; top: 50%; left: .65rem; color: var(--marker-muted); transform: translateY(-50%); }
.marker-price-input input { padding-left: 1.65rem; }
.marker-remove-button { min-height: 2.6rem; border: 0; border-radius: .65rem; padding: .5rem .65rem; background: transparent; color: var(--marker-danger); cursor: pointer; }
.marker-remove-button:hover { background: var(--marker-danger-soft); }
.marker-save-actions { display: flex; align-items: center; gap: .65rem; }
.marker-save-actions > span { color: var(--marker-muted); font-size: .8rem; }
.marker-save-actions > span.is-error { color: #b64551; }
.marker-save-actions .marker-button { min-height: 2.45rem; padding: .55rem .85rem; }
.marker-editor-actions { position: sticky; z-index: 8; bottom: .75rem; justify-content: flex-end; margin-top: 1rem; padding: .7rem; border: 1px solid var(--marker-line); border-radius: .9rem; background: rgb(255 255 255 / 94%); box-shadow: 0 .55rem 1.4rem rgb(32 53 84 / 12%); backdrop-filter: blur(12px); }
.marker-editor-actions > span { margin-right: auto; }

.marker-modal { position: fixed; z-index: 50; inset: 0; display: grid; padding: 1rem; place-items: center; }
.marker-modal-backdrop { position: absolute; inset: 0; background: rgb(23 32 51 / 38%); backdrop-filter: blur(2px); }
.marker-modal-card { position: relative; z-index: 1; width: min(100%, 25rem); padding: 1.65rem; border-radius: 1.45rem; background: #fff; box-shadow: 0 1.5rem 4rem rgb(20 31 54 / 22%); }
.marker-modal-card h2 { padding-right: 2rem; font-size: 1.3rem; }
.marker-modal-card p { margin: .6rem 0 1.45rem; color: var(--marker-muted); line-height: 1.6; white-space: pre-line; }
.marker-modal-close { position: absolute; top: .9rem; right: .9rem; display: grid; width: 2rem; height: 2rem; place-items: center; border: 0; border-radius: 50%; background: #f1f4f8; color: var(--marker-muted); font-size: 1.45rem; line-height: 1; cursor: pointer; }
.marker-modal-close:hover { background: var(--marker-soft); color: var(--marker-accent-dark); }
.marker-modal-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; }

.marker-sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.marker-account .marker-tutorial-link { padding: .35rem; color: var(--marker-muted); }
.marker-account .marker-tutorial-link:hover { color: var(--marker-accent-dark); }
.marker-tutorial-modal { position: fixed; z-index: 60; inset: 0; display: grid; padding: clamp(.75rem, 3vw, 2rem); place-items: center; }
.marker-tutorial-backdrop { position: absolute; inset: 0; background: rgb(23 32 51 / 36%); backdrop-filter: blur(2px); }
.marker-tutorial-card { --marker-tutorial-accent: #D8BE7A; --marker-tutorial-accent-soft: rgb(216 190 122 / 18%); --marker-tutorial-ink: var(--pm-text-primary, #1f2328); --marker-tutorial-muted: var(--pm-text-muted, #8a8d92); --marker-tutorial-line: var(--pm-border, #e5e7eb); --marker-tutorial-figure-radius: 1rem; --marker-tutorial-ui-radius: .82rem; --marker-tutorial-inner-radius: .48rem; --marker-tutorial-ui-inset: .6rem; position: relative; z-index: 1; display: flex; width: min(100%, 80rem); max-height: min(48rem, calc(100dvh - 2rem)); flex-direction: column; overflow: auto; border: 1px solid var(--marker-tutorial-line); border-radius: 1.45rem; background: #fff; box-shadow: var(--pm-shadow-modal); animation: marker-tutorial-in 210ms ease-out both; }
.marker-tutorial-close { position: absolute; z-index: 2; top: .85rem; right: .85rem; display: grid; width: 2rem; height: 2rem; place-items: center; border: 0; border-radius: 50%; background: #f1f4f8; color: var(--marker-muted); cursor: pointer; font-size: 1.35rem; line-height: 1; }
.marker-tutorial-close:hover { background: var(--marker-soft); color: var(--marker-accent-dark); }
.marker-tutorial-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.9rem, 1.6vw, 1.35rem); padding: clamp(2rem, 4vw, 3rem) clamp(1.25rem, 3vw, 2.5rem) 1.25rem; }
.marker-tutorial-step { display: grid; grid-template-rows: auto auto 1fr; gap: .8rem; min-width: 0; }
.marker-tutorial-step h3 { margin: 0; color: var(--marker-tutorial-ink); font-size: 1.08rem; text-align: center; }
.marker-tutorial-figure { display: grid; aspect-ratio: 1.56; min-height: 10.5rem; place-items: center; overflow: hidden; border: 1px solid var(--marker-tutorial-line); border-radius: var(--marker-tutorial-figure-radius); background: #f7f7f8; }
.marker-tutorial-ui { position: relative; box-sizing: border-box; width: 84%; height: 78%; border: 1px solid var(--marker-tutorial-line); border-radius: var(--marker-tutorial-ui-radius); background: #fff; box-shadow: 0 .6rem 1.5rem rgb(31 35 40 / 7%); color: var(--marker-tutorial-ink); }
.marker-tutorial-ui-upload { display: grid; grid-template-rows: 1.7rem minmax(0, 1fr); }
.marker-tutorial-upload-header { display: flex; align-items: center; padding: 0 var(--marker-tutorial-ui-inset); border-bottom: 1px solid var(--marker-tutorial-line); }
.marker-tutorial-upload-header b { font-size: .52rem; font-weight: 720; }
.marker-tutorial-upload-zone { position: relative; display: grid; min-height: 0; margin: var(--marker-tutorial-ui-inset); place-items: center; border: 1px dashed #c9cbd0; border-radius: var(--marker-tutorial-inner-radius); background: #fafafb; }
.marker-tutorial-thumbnail { display: grid; width: 3rem; height: 2.45rem; place-items: center; border: 1px solid var(--marker-tutorial-line); border-radius: .45rem; background: #fff; color: #a6a9ae; }
.marker-tutorial-thumbnail svg { width: 1.35rem; height: 1.35rem; }
.marker-tutorial-upload-action { position: absolute; right: calc(50% - 3.05rem + 6px); bottom: calc(50% - 1.95rem + 2px); display: grid; width: 1.65rem; height: 1.65rem; place-items: center; border: 2px solid #fff; border-radius: 50%; background: var(--marker-tutorial-accent); box-shadow: 0 .2rem .5rem rgb(31 35 40 / 12%); }
.marker-tutorial-upload-action span { font-size: .82rem; font-weight: 800; line-height: 1; }
.marker-tutorial-upload-action b { position: absolute; right: -.15rem; bottom: -.2rem; display: grid; width: .7rem; height: .7rem; place-items: center; border-radius: 50%; background: var(--marker-tutorial-ink); color: #fff; font-size: .55rem; line-height: 1; }
.marker-tutorial-ui-annotate { display: grid; grid-template-rows: 1.7rem 1fr; }
.marker-tutorial-mode-strip { display: flex; align-items: center; gap: .2rem; padding: .3rem .45rem; border-bottom: 1px solid var(--marker-tutorial-line); font-size: .44rem; }
.marker-tutorial-mode-strip span, .marker-tutorial-mode-strip b { padding: .2rem .35rem; border-radius: .28rem; font-style: normal; font-weight: 650; }
.marker-tutorial-mode-strip b { background: var(--marker-tutorial-ink); color: #fff; }
.marker-tutorial-annotate-body { display: grid; grid-template-columns: minmax(0, 1fr) 3.35rem; gap: .45rem; min-height: 0; padding: var(--marker-tutorial-ui-inset); }
.marker-tutorial-canvas { position: relative; overflow: hidden; border: 1px solid #e1e3e6; border-radius: var(--marker-tutorial-inner-radius); background: #f2f3f4; }
.marker-tutorial-canvas-tile { position: absolute; border: 1px solid #d9dce0; border-radius: .36rem; background: #e4e6e8; }
.marker-tutorial-canvas-tile-two { right: 8%; bottom: 10%; width: 36%; height: 38%; background: #dfe1e4; }
.marker-tutorial-point { position: absolute; left: 12%; top: 25%; display: flex; align-items: center; gap: .18rem; font-style: normal; }
.marker-tutorial-point-dot { box-sizing: border-box; width: .58rem; height: .58rem; flex: 0 0 auto; border: 2px solid #fff; border-radius: 50%; background: var(--marker-tutorial-accent); box-shadow: 0 0 0 1px rgb(31 35 40 / 18%); }
.marker-tutorial-price-tag { display: inline-flex; min-height: 1.05rem; align-items: center; padding: 0 .32rem; border-radius: .34rem; background: rgb(229 231 235 / 94%); color: var(--marker-tutorial-ink); font-size: .43rem; font-style: normal; font-weight: 800; line-height: 1; white-space: nowrap; }
.marker-tutorial-box { position: absolute; right: 8%; bottom: 10%; width: 38%; height: 42%; border: 2px solid var(--marker-tutorial-accent); border-radius: .32rem; background: var(--marker-tutorial-accent-soft); }
.marker-tutorial-box > .marker-tutorial-price-tag { position: absolute; top: .18rem; left: .18rem; }
.marker-tutorial-label { position: absolute; right: 13%; bottom: 14%; padding: .14rem .28rem; border: 1px solid #d8dadf; border-radius: .25rem; background: rgb(255 255 255 / 94%); font-size: .4rem; font-style: normal; }
.marker-tutorial-fields { display: grid; align-content: start; gap: .3rem; }
.marker-tutorial-fields span { display: grid; gap: .18rem; }
.marker-tutorial-fields b { color: #858990; font-size: .42rem; font-weight: 650; line-height: 1; }
.marker-tutorial-fields i, .marker-tutorial-field-sequence strong { box-sizing: border-box; height: .76rem; border: 1px solid var(--marker-tutorial-line); border-radius: .28rem; background: #fafafb; }
.marker-tutorial-field-sequence strong { display: grid; place-items: center; color: var(--marker-tutorial-ink); font-size: .48rem; font-weight: 760; }
.marker-tutorial-ui-export { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: 1fr auto; gap: .5rem; padding: var(--marker-tutorial-ui-inset); }
.marker-tutorial-result-card { display: grid; grid-template-rows: minmax(0, 1fr) auto; min-width: 0; overflow: hidden; border: 1px solid var(--marker-tutorial-line); border-radius: var(--marker-tutorial-inner-radius); background: #fafafb; }
.marker-tutorial-result-image { position: relative; min-height: 0; overflow: hidden; border-bottom: 1px solid var(--marker-tutorial-line); background: #f1f2f3; }
.marker-tutorial-result-point { position: absolute; left: 12%; top: 17%; display: flex; align-items: center; gap: .18rem; font-style: normal; }
.marker-tutorial-result-point-three { top: auto; bottom: 22%; left: 24%; }
.marker-tutorial-result-box { position: absolute; right: 11%; bottom: 12%; width: 31%; height: 42%; border: 2px solid var(--marker-tutorial-accent); border-radius: .3rem; background: var(--marker-tutorial-accent-soft); }
.marker-tutorial-result-box > .marker-tutorial-price-tag { position: absolute; top: .18rem; left: .18rem; }
.marker-tutorial-result-summary { display: flex; align-items: center; justify-content: space-between; gap: .35rem; padding: .34rem .45rem; color: #666a71; font-size: .42rem; white-space: nowrap; }
.marker-tutorial-result-summary b { color: var(--marker-tutorial-ink); font-size: .48rem; font-weight: 760; }
.marker-tutorial-export-action { align-self: center; display: grid; grid-template-columns: auto auto; gap: .32rem; align-items: center; padding: .42rem .5rem; border-radius: .45rem; background: var(--marker-tutorial-ink); color: #fff; font-size: .52rem; font-weight: 720; }
.marker-tutorial-export-action b { display: grid; width: 1.08rem; height: 1.08rem; place-items: center; border-radius: 50%; background: var(--marker-tutorial-accent); color: var(--marker-tutorial-ink); font-size: .74rem; }
.marker-tutorial-files { grid-column: 1 / -1; display: flex; justify-content: center; gap: .35rem; }
.marker-tutorial-files span { min-width: 2.4rem; padding: .3rem .4rem; border: 1px solid var(--marker-tutorial-line); border-radius: .38rem; background: #fff; color: #5f636a; font-size: .46rem; font-weight: 750; text-align: center; }
.marker-tutorial-step p { width: 100%; max-width: none; margin: 0 auto; color: var(--marker-muted); font-size: .82rem; line-height: 1.55; text-align: center; }
.marker-tutorial-actions { display: flex; justify-content: center; padding: 0 1.25rem 1.5rem; }
.marker-tutorial-actions .marker-button { min-width: 7rem; }
.marker-tutorial-card .marker-button { border-color: var(--marker-tutorial-ink); background: var(--marker-tutorial-ink); box-shadow: none; color: #fff; }
.marker-tutorial-card .marker-button:hover:not(:disabled) { border-color: #34373c; background: #34373c; }
.marker-tutorial-card .marker-button-secondary { border-color: var(--marker-tutorial-line); background: #fff; color: #5f636a; }
.marker-tutorial-card .marker-button-secondary:hover:not(:disabled) { border-color: #c9cbd0; background: #f7f7f8; color: var(--marker-tutorial-ink); }
.marker-tutorial-mobile-footer { display: none; }
@keyframes marker-tutorial-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .marker-tutorial-card, .marker-tutorial-step { animation: none !important; } }

@media (min-width: 1180px) {
  .marker-tutorial-step p { font-size: .8rem; white-space: nowrap; }
}

@media (max-width: 700px) {
  .marker-header { padding-inline: 1rem; }
  .marker-account > span { display: none; }
  .marker-container { width: min(100% - 1rem, 70rem); padding-top: .75rem; }
  .marker-auth-container { width: min(100% - 1rem, 28rem); margin-top: 1rem; }
  .marker-hero { grid-template-columns: 1fr; padding: 1.2rem; }
  .marker-home-hero { min-height: 0; }
  .marker-home-actions { padding-bottom: .85rem; }
  .marker-home-points { justify-content: center; }
  .marker-editor-heading, .marker-project-heading, .marker-editor-toolbar, .marker-export-panel { align-items: stretch; flex-direction: column; }
  .marker-project-title { align-items: center; flex-direction: row; gap: .35rem; }
  .marker-project-title h1 { min-width: 0; }
  .marker-summary span { flex: 1 1 9.5rem; }
  .marker-project-stats { width: 100%; }
  .marker-project-stats span { padding: .68rem .75rem; }
  .marker-project-stats strong { font-size: .94rem; }
  .marker-project-card { min-height: 5.25rem; padding: .75rem; }
  .marker-project-card-copy small, .marker-project-card-total small { font-size: .72rem; }
  .marker-image-main { grid-template-columns: 5.25rem minmax(0, 1fr) auto; column-gap: .65rem; row-gap: .12rem; padding: .7rem; }
  .marker-image-main img { width: 5.25rem; height: 4rem; }
  .marker-image-actions { padding: .35rem .55rem; }
  .marker-image-scroll { padding: .4rem; }
  .marker-section-heading { align-items: stretch; flex-direction: column; }
  .marker-project-images .marker-section-heading { align-items: center; flex-direction: row; }
  .marker-item-card { grid-template-columns: auto minmax(0, 1fr) auto; }
  .marker-item-card label { grid-column: 2 / -1; }
  .marker-item-card .marker-remove-button { grid-column: 3; grid-row: 1; min-height: 2.35rem; }
  .marker-save-actions { flex-wrap: wrap; align-items: stretch; justify-content: space-between; }
  .marker-save-actions > span { width: 100%; }
  .marker-editor-actions { bottom: .45rem; display: grid; grid-template-columns: 1fr 1.2fr; }
  .marker-editor-actions > span { grid-column: 1 / -1; margin-right: 0; }
  .marker-tutorial-modal { padding: .75rem; place-items: center; }
  .marker-tutorial-card { width: min(100%, 27rem); max-height: calc(100dvh - 1.5rem); border-radius: 1.15rem; overflow: auto; }
  .marker-tutorial-steps { display: block; padding: 2.55rem 1rem .75rem; }
  .marker-tutorial-step { display: none; gap: .65rem; }
  .marker-tutorial-step.is-active { display: grid; }
  .marker-tutorial-step.is-entering-next { animation: marker-tutorial-step-next 210ms ease-out both; }
  .marker-tutorial-step.is-entering-prev { animation: marker-tutorial-step-prev 210ms ease-out both; }
  .marker-tutorial-step h3 { font-size: 1.12rem; }
  .marker-tutorial-figure { min-height: 0; border-radius: .9rem; }
  .marker-tutorial-ui { width: 82%; height: 80%; }
  .marker-tutorial-step p { max-width: 19rem; min-height: 2.7em; font-size: .84rem; white-space: normal; }
  .marker-tutorial-actions { display: none; }
  .marker-tutorial-mobile-footer { display: grid; gap: .8rem; padding: 0 1rem 1rem; }
  .marker-tutorial-dots { display: flex; justify-content: center; gap: .45rem; }
  .marker-tutorial-dots button { width: .42rem; height: .42rem; margin: 0; padding: 0; border: 0; border-radius: 50%; background: #d3d5d9; cursor: pointer; transition: width 180ms ease, background 180ms ease; }
  .marker-tutorial-dots button.is-active { width: 1.15rem; border-radius: 999px; background: var(--marker-tutorial-ink); }
  .marker-tutorial-mobile-nav { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; }
  .marker-tutorial-mobile-nav .marker-button { width: 100%; min-height: 2.55rem; }
  .marker-tutorial-mobile-nav .marker-button:disabled { visibility: hidden; }
}

@keyframes marker-tutorial-step-next { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: translateX(0); } }
@keyframes marker-tutorial-step-prev { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: translateX(0); } }

/* 「我的标价」V1.2：仅作用于登录后的项目列表页，避免影响项目详情与编辑器。 */
.marker-project-list-page {
  --pm-home-bg: #fafafb;
  --pm-home-surface: #ffffff;
  --pm-home-text: #1f2328;
  --pm-home-text-strong: #1c1c1e;
  --pm-home-secondary: #5f636a;
  --pm-home-muted: #8a8d92;
  --pm-home-icon: #55585d;
  --pm-home-border: #e5e7eb;
  --pm-home-border-strong: #d8dadf;
  --pm-home-action: #2f3136;
  --pm-home-action-hover: #3a3d43;
  --pm-home-action-active: #26282d;
  background: var(--pm-home-bg);
  color: var(--pm-home-text);
}

.marker-project-list-page .marker-header {
  min-height: 4.5rem;
  padding: 0 max(1.5rem, calc((100vw - 70rem) / 2));
  border-color: var(--pm-home-border);
  background: var(--pm-home-surface);
  box-shadow: none;
}

.marker-project-list-page .marker-brand {
  gap: .56rem;
  color: var(--pm-home-text-strong);
  font-size: 1.18rem;
  font-weight: 650;
}

.marker-project-list-page .marker-logo {
  display: grid;
  width: 1.35rem;
  height: 1.35rem;
  place-items: center;
  border-radius: 0;
  background: transparent;
  color: var(--pm-home-text-strong);
  box-shadow: none;
}

.marker-project-list-page .marker-logo svg { display: block; width: 100%; height: 100%; overflow: visible; }
.marker-project-list-page .marker-account { color: var(--pm-home-secondary); }
.marker-project-list-page .marker-account button { color: var(--pm-home-secondary); }
.marker-project-list-page .marker-account button:hover { color: var(--pm-home-text-strong); }

/* 管理员统计页沿用「标一下」应用 Header，只增加管理员当前页状态。 */
.marker-admin-page {
  --pm-admin-bg: #fafafb;
  --pm-admin-surface: #fff;
  --pm-admin-text: #1f2328;
  --pm-admin-text-strong: #1c1c1e;
  --pm-admin-secondary: #5f636a;
  --pm-admin-muted: #8a8d92;
  --pm-admin-border: #e5e7eb;
  background: var(--pm-admin-bg);
  color: var(--pm-admin-text);
}
.marker-admin-page .marker-header {
  min-height: 4.5rem;
  padding: 0 max(1.5rem, calc((100vw - 70rem) / 2));
  border-color: var(--pm-admin-border);
  background: var(--pm-admin-surface);
  box-shadow: none;
}
.marker-admin-page .marker-brand {
  gap: .56rem;
  color: var(--pm-admin-text-strong);
  font-size: 1.18rem;
  font-weight: 650;
}
.marker-admin-page .marker-logo {
  display: grid;
  width: 1.35rem;
  height: 1.35rem;
  place-items: center;
  border-radius: 0;
  background: transparent;
  color: var(--pm-admin-text-strong);
  box-shadow: none;
}
.marker-admin-page .marker-logo svg { display: block; width: 100%; height: 100%; overflow: visible; }
.marker-admin-page .marker-account { color: var(--pm-admin-secondary); }
.marker-admin-page .marker-account button,
.marker-admin-page .marker-account .marker-admin-nav { color: var(--pm-admin-secondary); }
.marker-admin-page .marker-account button:hover,
.marker-admin-page .marker-account .marker-admin-nav:hover,
.marker-admin-page .marker-account .marker-admin-nav.is-current { color: var(--pm-admin-text-strong); }
.marker-admin-page .marker-account .marker-admin-nav {
  color: var(--pm-admin-secondary);
}

.marker-project-list-page .marker-container {
  width: min(100% - 3rem, 70rem);
  padding-top: clamp(2rem, 4vw, 2.5rem);
}

.marker-home-main { width: min(100%, 62.5rem); margin: 0 auto; }

.marker-home-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: clamp(1.5rem, 2vw, 1.75rem);
}

.marker-home-main h1 {
  margin: 0;
  color: var(--pm-home-text);
  font-size: clamp(1.875rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.2;
}

.marker-home-project-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

.marker-home-project {
  display: grid;
  padding: 1.1875rem 1.5rem 1.6875rem;
  align-content: center;
  gap: .625rem;
  border: 1px solid var(--pm-home-border);
  border-radius: .95rem;
  background: var(--pm-home-surface);
  transition: border-color .16s ease, background-color .16s ease, color .16s ease;
}

.marker-home-project:hover { border-color: var(--pm-home-border-strong); color: var(--pm-home-text-strong); }
.marker-home-project-link {
  display: grid;
  gap: 1.625rem;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}
.marker-home-project-link:focus-visible,
.marker-home-create:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgb(60 64 72 / 10%);
}

.marker-home-project-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 1rem;
  min-width: 0;
}

.marker-home-project-row strong {
  min-width: 0;
  overflow: hidden;
  overflow-wrap: anywhere;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--pm-home-text);
  font-size: 1.3125rem;
  font-weight: 650;
  letter-spacing: .012em;
  line-height: 1.35;
}

.marker-home-project-row b {
  color: var(--pm-home-text-strong);
  font-size: 1.25rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
}

.marker-home-project-row small {
  color: var(--pm-home-secondary);
  font-size: .9375rem;
  line-height: 1.45;
}
.marker-home-project-row small:last-child { color: var(--pm-home-icon); }
.marker-home-project:hover .marker-home-project-row small:last-child { color: var(--pm-home-text-strong); }

.marker-home-project-delete-form {
  justify-self: end;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 150ms ease, visibility 150ms ease;
  visibility: hidden;
}
.marker-home-project-delete-form button {
  min-height: 1.9rem;
  padding: .28rem .66rem;
  border: 1px solid var(--pm-home-border);
  border-radius: .5rem;
  background: #f7f7f8;
  box-shadow: none;
  color: #3f434a;
  cursor: pointer;
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1.2;
}
.marker-home-project-delete-form button:hover {
  border-color: var(--pm-home-border-strong);
  background: #f0f1f2;
  color: var(--pm-home-text-strong);
}
.marker-home-project-delete-form button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgb(60 64 72 / 10%);
}
.marker-home-project:hover .marker-home-project-delete-form,
.marker-home-project:focus-within .marker-home-project-delete-form {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.marker-home-create {
  flex: 0 0 auto;
  min-height: 2.75rem;
  padding: .6rem 1rem;
  border: 1px solid var(--pm-home-action);
  border-radius: .75rem;
  background: var(--pm-home-action);
  box-shadow: none;
  color: #fff;
  font-size: .9375rem;
  font-weight: 650;
}

body.marker-project-list-page .marker-home-create {
  border-color: #2f3136;
  background: #2f3136;
  color: #fff;
}
body.marker-project-list-page .marker-home-create:hover:not(:disabled) {
  border-color: #3a3d43;
  background: #3a3d43;
  color: #fff;
}
body.marker-project-list-page .marker-home-create:active:not(:disabled) {
  border-color: #26282d;
  background: #26282d;
  color: #fff;
}
body.marker-project-list-page .marker-home-create:focus,
body.marker-project-list-page .marker-home-create:focus-visible {
  outline: none;
  border-color: #2f3136;
  background: #2f3136;
  color: #fff;
  box-shadow: 0 0 0 3px rgb(60 64 72 / 10%);
}

.marker-home-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 23rem;
  padding: clamp(5.5rem, 14vh, 8rem) 1rem 2rem;
  text-align: center;
}

.marker-home-empty-brand-icon {
  display: grid;
  width: 1.7rem;
  height: 1.7rem;
  margin-bottom: 1.375rem;
  color: #a8adb5;
  place-items: center;
}
.marker-home-empty-brand-icon svg { display: block; max-width: 100%; max-height: 100%; }

.marker-home-empty strong { color: var(--pm-home-text); font-size: 1.25rem; font-weight: 650; line-height: 1.35; }
.marker-home-empty p { max-width: 20rem; margin: 1rem 0 0; color: var(--pm-home-muted); line-height: 1.6; }

/* 新建标价弹窗：仅覆盖“我的标价”页面，保留既有弹窗行为。 */
.marker-project-list-page .marker-create-modal .marker-modal-backdrop {
  background: rgb(31 35 40 / 34%);
  backdrop-filter: blur(2px);
}
.marker-project-list-page .marker-create-modal .marker-modal-card {
  width: min(100%, 33rem);
  padding: 1.5rem;
  border: 1px solid var(--pm-home-border);
  border-radius: 1rem;
  background: var(--pm-home-surface);
  box-shadow: 0 18px 48px rgb(20 20 22 / 10%);
}
.marker-project-list-page .marker-create-modal .marker-modal-card h2 {
  margin: 0 2.5rem 1.35rem 0;
  padding: 0;
  color: var(--pm-home-text);
  font-size: 1.25rem;
  font-weight: 700;
}
.marker-project-list-page .marker-create-modal .marker-modal-close {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: transparent;
  color: var(--pm-home-icon);
}
.marker-project-list-page .marker-create-modal .marker-modal-close:hover {
  background: #f0f1f2;
  color: var(--pm-home-text);
}
.marker-project-list-page .marker-create-project { gap: 1rem; }
.marker-project-list-page .marker-create-project > label {
  display: grid;
  gap: .5rem;
  color: var(--pm-home-text);
  font-size: .875rem;
  font-weight: 650;
}
.marker-project-list-page .marker-create-project input[type="text"] {
  min-height: 2.875rem;
  border-color: var(--pm-home-border-strong);
  border-radius: .7rem;
  background: #fff;
  color: var(--pm-home-text);
}
.marker-project-list-page .marker-create-project input[type="text"]::placeholder { color: var(--pm-home-muted); }
.marker-project-list-page .marker-create-project input[type="text"]:hover { border-color: #a8adb5; }
.marker-project-list-page .marker-create-project input[type="text"]:focus {
  border-color: #a8adb5;
  outline: none;
  box-shadow: 0 0 0 3px rgb(60 64 72 / 10%);
}
.marker-project-list-page .marker-create-upload { margin-top: .15rem; }
.marker-project-list-page .marker-create-dropzone {
  display: grid;
  min-height: 7.25rem;
  padding: 1rem;
  place-items: center;
  border: 1px dashed var(--pm-home-border-strong);
  border-radius: .8rem;
  background: #fafafb;
  color: var(--pm-home-secondary);
  cursor: pointer;
  text-align: center;
  transition: border-color 150ms ease, background 150ms ease;
}
.marker-project-list-page .marker-create-dropzone:hover {
  border-color: #a8adb5;
  background: #fafafb;
}
.marker-project-list-page .marker-create-dropzone input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
.marker-project-list-page .marker-create-dropzone strong { color: var(--pm-home-secondary); font-size: .9375rem; }
.marker-project-list-page .marker-create-dropzone small { color: var(--pm-home-muted); font-size: .78rem; font-weight: 400; line-height: 1.45; }
.marker-project-list-page .marker-create-dropzone { row-gap: .18rem; }
.marker-project-list-page .marker-create-dropzone .marker-create-storage-note { color: var(--pm-home-muted); font-size: .74rem; }
.marker-project-list-page .marker-create-selection-count { margin: -.35rem 0 0; color: var(--pm-home-muted); font-size: .8125rem; }
.marker-project-list-page .marker-create-modal .marker-modal-actions { gap: .7rem; margin-top: .2rem; }
.marker-project-list-page .marker-create-modal .marker-button {
  min-height: 2.75rem;
  border-radius: .7rem;
  box-shadow: none;
}
.marker-project-list-page .marker-create-modal .marker-button-secondary {
  border-color: var(--pm-home-border-strong);
  background: #fff;
  color: #3f434a;
}
.marker-project-list-page .marker-create-modal .marker-button-secondary:hover:not(:disabled) {
  border-color: var(--pm-home-border-strong);
  background: #f7f7f8;
  color: #3f434a;
}
.marker-project-list-page .marker-create-modal [data-marker-create-submit] {
  border-color: #2f3136;
  background: #2f3136;
  color: #fff;
}
.marker-project-list-page .marker-create-modal [data-marker-create-submit]:hover:not(:disabled) {
  border-color: #3a3d43;
  background: #3a3d43;
  color: #fff;
}
.marker-project-list-page .marker-create-modal [data-marker-create-submit]:active:not(:disabled) {
  border-color: #26282d;
  background: #26282d;
  color: #fff;
}
.marker-project-list-page .marker-create-modal [data-marker-create-submit]:disabled {
  border-color: #e5e7eb;
  background: #e5e7eb;
  color: #8a8d92;
  cursor: not-allowed;
  opacity: 1;
}
.marker-project-list-page .marker-create-modal .marker-button:focus-visible,
.marker-project-list-page .marker-create-modal .marker-modal-close:focus-visible,
.marker-project-list-page .marker-create-dropzone:focus-within {
  outline: none;
  box-shadow: 0 0 0 3px rgb(60 64 72 / 10%);
}

/* 项目列表删除确认：沿用黑白冷灰与低饱和危险色，不继承旧蓝色主题。 */
.marker-project-list-page [data-marker-modal] .marker-modal-backdrop {
  background: rgb(31 35 40 / 34%);
}
.marker-project-list-page [data-marker-modal] .marker-modal-card {
  width: min(100%, 28rem);
  padding: 1.5rem;
  border: 1px solid var(--pm-home-border);
  border-radius: 1rem;
  background: var(--pm-home-surface);
  box-shadow: 0 18px 48px rgb(20 20 22 / 10%);
}
.marker-project-list-page [data-marker-modal] .marker-modal-card h2 {
  margin: 0 2.5rem 1.2rem 0;
  padding: 0;
  color: var(--pm-home-text);
  font-size: 1.15rem;
}
.marker-project-list-page [data-marker-modal] .marker-modal-card p {
  color: var(--pm-home-secondary);
}
.marker-project-list-page [data-marker-modal] .marker-modal-close {
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--pm-home-icon);
}
.marker-project-list-page [data-marker-modal] .marker-modal-close:hover,
.marker-project-list-page [data-marker-modal] .marker-modal-close:active {
  background: #f0f1f2;
  color: var(--pm-home-text);
}
.marker-project-list-page [data-marker-modal] .marker-modal-close:focus,
.marker-project-list-page [data-marker-modal] .marker-modal-close:focus-visible,
.marker-project-list-page [data-marker-modal] .marker-button:focus,
.marker-project-list-page [data-marker-modal] .marker-button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgb(60 64 72 / 10%);
}
.marker-project-list-page [data-marker-modal] .marker-button-secondary {
  border-color: #d8dadf;
  background: #fff;
  box-shadow: none;
  color: #3f434a;
}
.marker-project-list-page [data-marker-modal] .marker-button-secondary:hover:not(:disabled) {
  border-color: #d8dadf;
  background: #f7f7f8;
  color: #3f434a;
}
.marker-project-list-page [data-marker-modal] .marker-button-danger {
  border-color: #b85c5c;
  background: #b85c5c;
  box-shadow: none;
  color: #fff;
}
.marker-project-list-page [data-marker-modal] .marker-button-danger:hover:not(:disabled) {
  border-color: #a95353;
  background: #a95353;
  color: #fff;
}
.marker-project-list-page [data-marker-modal] .marker-button-danger:active:not(:disabled) {
  border-color: #984b4b;
  background: #984b4b;
  color: #fff;
}

/* 内部使用统计：仅提供四项基础人数，不引入后台导航或图表。 */
.marker-admin-stats {
  width: min(100%, 70rem);
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
  color: var(--pm-admin-text);
}
.marker-admin-stats-heading h1 { margin: 0; font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.25; }
.marker-admin-stats-heading p { margin: .5rem 0 0; color: var(--pm-admin-muted); font-size: .9rem; }
.marker-admin-stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; }
.marker-admin-stat-card { display: grid; grid-template-columns: 1fr auto; gap: .65rem .5rem; padding: 1.25rem; border: 1px solid var(--pm-admin-border); border-radius: 1rem; background: var(--pm-admin-surface); }
.marker-admin-stat-card span { grid-column: 1 / -1; color: var(--pm-admin-secondary); font-size: .9rem; }
.marker-admin-stat-card strong { font-size: 2rem; line-height: 1; }
.marker-admin-stat-card small { align-self: end; color: var(--pm-admin-muted); }
@media (max-width: 47.9375rem) {
  .marker-admin-page .marker-header { min-height: 4rem; padding-inline: 1.25rem; }
  .marker-admin-stats { padding: 2rem 1rem 3rem; }
  .marker-admin-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 48rem) {
  .marker-home-project {
    height: 9.875rem;
    padding: 1.625rem 1.5rem 1.25rem;
    gap: .5rem;
  }
  .marker-home-project-link { gap: 1.5rem; }
}

@media (min-width: 75rem) {
  .marker-home-project-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
}

@media (min-width: 48rem) and (max-width: 74.9375rem) {
  .marker-home-project-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
}

@media (max-width: 47.9375rem) {
  .marker-project-list-page .marker-header { min-height: 4rem; padding-inline: 1.25rem; }
  .marker-project-list-page .marker-container { width: min(100% - 2.5rem, 40rem); padding-top: 2rem; }
  .marker-home-page-header { margin-bottom: 1.5rem; }
  .marker-home-main h1 { font-size: 1.875rem; }
  .marker-home-project-list { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .marker-home-project { padding: 1.25rem 1.1875rem 1.375rem; gap: .75rem; }
  .marker-home-project-link { gap: .9375rem; }
  .marker-home-project-delete-form { opacity: 1; pointer-events: auto; visibility: visible; }
  .marker-home-project-row strong { font-size: 1.1875rem; }
  .marker-home-project-row b { font-size: 1.125rem; }
  .marker-home-project-row small { font-size: .875rem; }
  .marker-home-create { min-height: 2.625rem; padding-inline: .85rem; }
  .marker-project-list-page .marker-create-modal .marker-modal-card { width: min(100%, calc(100vw - 2rem)); padding: 1.25rem; }
}

/* 「我的标价」列表：创建入口与项目使用同一张卡片网格。 */
.marker-project-list-page .marker-container { padding-top: clamp(1.5rem, 3vw, 2.25rem); }
.marker-home-project-list {
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}
.marker-home-project,
.marker-home-create-card { min-height: 9.875rem; }
.marker-home-create-card {
  display: grid;
  gap: .625rem;
  width: 100%;
  padding: 1.1875rem 1.5rem 1.6875rem;
  place-content: center;
  border: 1px dashed var(--pm-home-border-strong);
  border-radius: .95rem;
  background: #fcfcfd;
  color: var(--pm-home-secondary);
  cursor: pointer;
  text-align: center;
  transition: border-color .16s ease, background-color .16s ease, color .16s ease;
}
.marker-home-create-card > span { color: var(--pm-home-icon); font-size: 1.5rem; font-weight: 400; line-height: 1; }
.marker-home-create-card strong { color: inherit; font-size: 1rem; font-weight: 650; }
.marker-home-create-card-copy-empty { font-size: .875rem !important; font-weight: 500 !important; line-height: 1.5; }
.marker-home-create-card:hover { border-color: var(--pm-home-border-strong); background: #f7f7f8; color: var(--pm-home-text-strong); }
.marker-home-create-card:active { background: #f0f1f2; }
.marker-home-create-card:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgb(60 64 72 / 10%);
}
.marker-home-empty {
  display: none;
}

/* 空项目引导已收进创建卡，保留旧选择器以避免影响其他页面。 */
.marker-home-empty-legacy {
  flex-direction: row;
  min-height: 0;
  width: fit-content;
  max-width: 100%;
  margin: clamp(2.5rem, 7vh, 4.5rem) auto 0;
  padding: 0 .25rem;
  gap: .625rem;
  text-align: left;
}
.marker-home-empty-brand-icon {
  flex: 0 0 auto;
  width: 1.35rem;
  height: 1.35rem;
  margin: 0;
  color: #b4b7bc;
}
.marker-home-empty p { max-width: 26rem; margin: 0; color: var(--pm-home-muted); font-size: .9375rem; line-height: 1.55; }

@media (min-width: 48rem) {
  .marker-home-project-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
  .marker-home-create-card {
    height: 9.875rem;
    padding: 1.625rem 1.5rem 1.25rem;
    gap: .5rem;
  }
}

@media (min-width: 75rem) {
  .marker-home-project-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 47.9375rem) {
  .marker-home-project,
  .marker-home-create-card { padding: 1.25rem 1.1875rem 1.375rem; gap: .75rem; }
  .marker-home-empty-legacy { align-items: flex-start; margin-top: 2.75rem; }
}

/* 项目编辑页：复用项目列表的顶栏，仅重排编辑工作区。 */
.marker-editor-page-body {
  --pm-bg-primary: #fafafb;
  --pm-surface: #ffffff;
  --pm-text-primary: #1f2328;
  --pm-text-strong: #1c1c1e;
  --pm-text-secondary: #5f636a;
  --pm-text-muted: #8a8d92;
  --pm-icon: #55585d;
  --pm-border: #e5e7eb;
  --pm-border-strong: #d8dadf;
  --pm-action: #2f3136;
  --pm-action-hover: #3a3d43;
  --pm-action-active: #26282d;
  --pm-focus: #a8adb5;
  --pm-focus-ring: rgb(60 64 72 / 10%);
  --pm-danger: #b85c5c;
  --pm-danger-bg: #fff5f5;
  --pm-danger-border: #e9caca;
}

.marker-editor-page-body .marker-container {
  width: min(100% - 3rem, 70rem);
  padding-top: clamp(1.5rem, 2.5vw, 2.25rem);
}

.marker-editor-page {
  --marker-region-inner-line: #D8BE7A;
  --marker-region-inner-tint: rgb(216 190 122 / 8%);
  --marker-region-inner-selected-tint: rgb(216 190 122 / 12%);
  --marker-region-inner-selected-ring: rgb(216 190 122 / 22%);
  --marker-region-point-control-size: .75rem;
  --marker-region-control-visual-size: 1.375rem;
  --marker-region-control-hit-size: 2rem;
  color: var(--pm-text-primary);
}
.marker-editor-project-header,
.marker-editor-project-tools,
.marker-editor-workspace { width: 100%; }

.marker-editor-project-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.marker-editor-project-title { display: flex; align-items: center; gap: .55rem; min-width: 0; }
.marker-editor-project-title h1 {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: var(--pm-text-primary);
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: .012em;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.marker-editor-return {
  flex: 0 0 auto;
  color: var(--pm-text-secondary);
  font-size: .875rem;
  font-weight: 650;
  text-decoration: none;
}
.marker-editor-return:hover { color: var(--pm-text-primary); }
.marker-editor-return:hover { color: var(--pm-text-primary); }
.marker-editor-title-edit {
  display: grid;
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: .5rem;
  background: transparent;
  color: var(--pm-icon);
  cursor: pointer;
}
.marker-editor-title-edit svg { display: block; width: 1rem; height: 1rem; }
.marker-editor-title-edit:hover { background: #f0f1f2; color: var(--pm-text-primary); }
.marker-editor-title-edit:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--pm-focus-ring); }

.marker-editor-page-body .marker-editor-title-modal { z-index: 110; }
.marker-editor-page-body .marker-editor-title-modal .marker-modal-backdrop { background: rgb(28 28 30 / 38%); }
.marker-editor-page-body .marker-editor-title-modal .marker-modal-card { width: min(100%, 28rem); padding: 1.5rem; border: 1px solid var(--pm-border); border-radius: .9rem; background: var(--pm-surface); box-shadow: var(--pm-shadow-modal); }
.marker-editor-page-body .marker-editor-title-modal .marker-modal-card h2 { margin: 0 2.5rem 1.2rem 0; color: var(--pm-text-primary); font-size: 1.15rem; }
.marker-editor-page-body .marker-editor-title-modal .marker-modal-close,
.marker-editor-page-body [data-marker-modal] .marker-modal-close {
  border: 0;
  background: var(--pm-bg-primary);
  box-shadow: none;
  color: var(--pm-icon);
}
.marker-editor-page-body .marker-editor-title-modal .marker-modal-close:hover,
.marker-editor-page-body [data-marker-modal] .marker-modal-close:hover {
  background: #f0f1f2;
  color: var(--pm-text-primary);
}
.marker-editor-page-body .marker-editor-title-modal .marker-modal-close:active,
.marker-editor-page-body [data-marker-modal] .marker-modal-close:active {
  background: var(--pm-border);
  color: var(--pm-text-primary);
}
.marker-editor-page-body .marker-editor-title-modal .marker-modal-close:focus,
.marker-editor-page-body .marker-editor-title-modal .marker-modal-close:focus-visible,
.marker-editor-page-body [data-marker-modal] .marker-modal-close:focus,
.marker-editor-page-body [data-marker-modal] .marker-modal-close:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--pm-focus-ring);
}
.marker-editor-page-body .marker-editor-title-modal .marker-form { gap: 1rem; }
.marker-editor-page-body .marker-editor-title-modal input { min-height: 2.65rem; border-color: var(--pm-border-strong); color: var(--pm-text-primary); }
.marker-editor-page-body .marker-editor-title-modal input:focus { border-color: var(--pm-focus); outline: none; box-shadow: 0 0 0 3px var(--pm-focus-ring); }
.marker-editor-page-body .marker-editor-title-modal .marker-modal-actions { margin-top: .25rem; }
.marker-editor-page-body .marker-editor-title-modal .marker-button {
  min-height: 2.45rem;
  border-color: #2f3136;
  background: #2f3136;
  box-shadow: none;
  color: #fff;
}
.marker-editor-page-body .marker-editor-title-modal .marker-button:hover:not(:disabled) {
  border-color: #3a3d43;
  background: #3a3d43;
  color: #fff;
  transform: none;
}
.marker-editor-page-body .marker-editor-title-modal .marker-button:active:not(:disabled) {
  border-color: #26282d;
  background: #26282d;
  color: #fff;
  transform: none;
}
.marker-editor-page-body .marker-editor-title-modal .marker-button:focus,
.marker-editor-page-body .marker-editor-title-modal .marker-button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(60, 64, 72, .10);
}
.marker-editor-page-body .marker-editor-title-modal .marker-button-secondary {
  border-color: #d8dadf;
  background: #fff;
  color: #3f434a;
}
.marker-editor-page-body .marker-editor-title-modal .marker-button-secondary:hover:not(:disabled) {
  border-color: #d8dadf;
  background: #f7f7f8;
  color: #1c1c1e;
}
.marker-editor-page-body .marker-editor-title-modal .marker-button-secondary:active:not(:disabled) {
  border-color: #d8dadf;
  background: #f0f1f2;
  color: #1c1c1e;
}

/* Keep the two app dialogs on one close-button geometry and use a drawn
   glyph so the cross cannot drift with a font's baseline or side bearings. */
.marker-project-list-page .marker-create-modal .marker-modal-close,
.marker-editor-page-body .marker-editor-title-modal .marker-modal-close,
.marker-editor-page-body [data-marker-modal] .marker-modal-close {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--pm-home-bg, var(--pm-bg-primary));
  color: var(--pm-home-icon, var(--pm-icon));
  font-size: 0;
  line-height: 0;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease;
}
.marker-project-list-page .marker-create-modal .marker-modal-close:hover,
.marker-editor-page-body .marker-editor-title-modal .marker-modal-close:hover,
.marker-editor-page-body [data-marker-modal] .marker-modal-close:hover {
  background: #f0f1f2;
  color: var(--pm-text-primary);
}
.marker-project-list-page .marker-create-modal .marker-modal-close:active,
.marker-editor-page-body .marker-editor-title-modal .marker-modal-close:active,
.marker-editor-page-body [data-marker-modal] .marker-modal-close:active {
  background: var(--pm-border);
  color: var(--pm-text-primary);
}
.marker-project-list-page .marker-create-modal .marker-modal-close-glyph,
.marker-editor-page-body .marker-editor-title-modal .marker-modal-close-glyph,
.marker-editor-page-body [data-marker-modal] .marker-modal-close-glyph {
  position: relative;
  display: block;
  width: .78rem;
  height: .78rem;
}
.marker-project-list-page .marker-create-modal .marker-modal-close-glyph::before,
.marker-project-list-page .marker-create-modal .marker-modal-close-glyph::after,
.marker-editor-page-body .marker-editor-title-modal .marker-modal-close-glyph::before,
.marker-editor-page-body .marker-editor-title-modal .marker-modal-close-glyph::after,
.marker-editor-page-body [data-marker-modal] .marker-modal-close-glyph::before,
.marker-editor-page-body [data-marker-modal] .marker-modal-close-glyph::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: .82rem;
  height: 1.5px;
  border-radius: 999px;
  background: currentColor;
  content: "";
  transform: translate(-50%, -50%) rotate(45deg);
}
.marker-project-list-page .marker-create-modal .marker-modal-close-glyph::after,
.marker-editor-page-body .marker-editor-title-modal .marker-modal-close-glyph::after,
.marker-editor-page-body [data-marker-modal] .marker-modal-close-glyph::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}
.marker-project-list-page .marker-create-modal .marker-modal-close:focus,
.marker-project-list-page .marker-create-modal .marker-modal-close:focus-visible,
.marker-editor-page-body .marker-editor-title-modal .marker-modal-close:focus,
.marker-editor-page-body .marker-editor-title-modal .marker-modal-close:focus-visible,
.marker-editor-page-body [data-marker-modal] .marker-modal-close:focus,
.marker-editor-page-body [data-marker-modal] .marker-modal-close:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--pm-focus-ring, rgb(60 64 72 / 10%));
}

/* 编辑页的通用确认弹窗：覆盖旧蓝色按钮状态，供删除图片与移除商品共用。 */
.marker-editor-page-body [data-marker-modal] .marker-button-secondary {
  border-color: var(--pm-border-strong);
  background: var(--pm-surface);
  box-shadow: none;
  color: #3f434a;
}
.marker-editor-page-body [data-marker-modal] .marker-button-secondary:hover:not(:disabled) {
  border-color: var(--pm-border-strong);
  background: #f7f7f8;
  color: #3f434a;
}
.marker-editor-page-body [data-marker-modal] .marker-button-secondary:active:not(:disabled) {
  border-color: var(--pm-border-strong);
  background: #f0f1f2;
  color: #3f434a;
}
.marker-editor-page-body [data-marker-modal] .marker-button-danger {
  border-color: var(--pm-danger);
  background: var(--pm-danger);
  box-shadow: none;
  color: #fff;
}
.marker-editor-page-body [data-marker-modal] .marker-button-danger:hover:not(:disabled) {
  border-color: #a95353;
  background: #a95353;
  color: #fff;
}
.marker-editor-page-body [data-marker-modal] .marker-button-danger:active:not(:disabled) {
  border-color: #984b4b;
  background: #984b4b;
  color: #fff;
}
.marker-editor-page-body [data-marker-modal] .marker-button:focus,
.marker-editor-page-body [data-marker-modal] .marker-button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--pm-focus-ring);
}

.marker-editor-project-tools {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-top: 1.25rem;
}

.marker-editor-page .marker-image-tabs {
  position: relative;
  flex: 1 1 auto;
  height: 3.8rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  overflow: visible;
}
.marker-editor-page .marker-image-tabs-scroll {
  position: absolute;
  inset: -.75rem 0;
  display: flex;
  align-items: center;
  gap: .5rem;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
}
.marker-editor-page .marker-image-tab-wrap {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: 3.8rem;
  height: 3.8rem;
}
.marker-editor-page .marker-image-tab-wrap > a {
  display: block;
  min-width: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: .6rem;
  background: transparent;
}
.marker-editor-page .marker-image-tab-wrap > a.is-current {
  border-color: var(--pm-focus);
  background: var(--pm-surface);
  box-shadow: none;
}
.marker-editor-page .marker-image-tabs img { display: block; width: 100%; height: 100%; object-fit: cover; }

.marker-image-tab-remove-form {
  position: absolute;
  z-index: 2;
  /* Anchor the control to the thumbnail corner, rather than laying it over
     the image content. The visual button centre remains ~2px inside. */
  top: -.75rem;
  right: -.75rem;
  display: grid;
  width: 1.75rem;
  height: 1.75rem;
  margin: 0;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease, visibility 120ms ease;
  visibility: hidden;
}
.marker-image-tab-remove {
  display: grid;
  width: 1.35rem;
  height: 1.35rem;
  padding: 0;
  place-items: center;
  border: 1px solid rgb(216 218 223 / 88%);
  border-radius: 999px;
  background: rgb(250 250 251 / 90%);
  color: var(--pm-icon);
  cursor: pointer;
  backdrop-filter: blur(4px);
}
.marker-image-tab-remove > span {
  display: block;
  width: .52rem;
  height: 1.5px;
  border-radius: 999px;
  background: currentColor;
}
.marker-image-tab-remove:hover,
.marker-image-tab-remove:active {
  border-color: #E9CACA;
  background: #FFF5F5;
  color: #B85C5C;
}
.marker-image-tab-remove:focus,
.marker-image-tab-remove:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--pm-focus-ring);
}
.marker-image-tab-wrap:focus-within .marker-image-tab-remove-form {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}
@media (hover: hover) and (pointer: fine) {
  .marker-image-tab-wrap:hover .marker-image-tab-remove-form {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
  }
}

.marker-editor-add-image,
.marker-editor-image-actions,
.marker-editor-project-exports,
.marker-editor-export-group,
.marker-editor-actions { display: flex; align-items: center; gap: .65rem; }
.marker-editor-add-image { flex: 0 0 auto; }
.marker-editor-add-image label { position: relative; display: grid; min-width: 6.3rem; min-height: 2.45rem; place-items: center; overflow: hidden; border: 1px solid var(--pm-border-strong); border-radius: .68rem; background: var(--pm-surface); color: var(--pm-text-secondary); cursor: pointer; font-size: .78rem; font-weight: 650; }
.marker-editor-add-image label:hover { background: #f7f7f8; }
.marker-editor-add-image input { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.marker-editor-add-image .marker-error { max-width: 13rem; margin: 0; color: var(--pm-danger); font-size: .75rem; }
.marker-editor-page .marker-image-tab-add {
  display: block;
  flex: 0 0 auto;
  width: 3.8rem;
  height: 3.8rem;
  margin: 0;
}
.marker-editor-page .marker-image-tab-add.is-disabled label {
  border-color: var(--pm-border);
  background: #f0f1f2;
  color: var(--pm-text-muted);
  cursor: not-allowed;
}
.marker-editor-page .marker-image-tab-add.is-disabled label:hover { background: #f0f1f2; }
.marker-editor-page .marker-image-tab-add label {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: 100%;
  min-height: 0;
  padding: 0;
  border-color: var(--pm-border-strong);
  border-radius: .6rem;
  background: var(--pm-surface);
  color: var(--pm-icon);
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1;
}
.marker-editor-page .marker-image-tab-add label:hover { background: #F7F7F8; }
.marker-editor-page .marker-image-tab-add label:focus-within,
.marker-editor-page .marker-image-tab-add label:active {
  border-color: var(--pm-focus);
  outline: none;
  box-shadow: inset 0 0 0 2px var(--pm-focus-ring);
}
.marker-editor-page .marker-image-tab-add input,
.marker-editor-page .marker-image-tab-add input:hover,
.marker-editor-page .marker-image-tab-add input:active,
.marker-editor-page .marker-image-tab-add input:focus,
.marker-editor-page .marker-image-tab-add input:focus-visible {
  border: 0;
  outline: none;
  box-shadow: none;
}
.marker-editor-page .marker-image-tab-add .marker-error {
  position: absolute;
  top: calc(100% + .35rem);
  left: 0;
  z-index: 4;
  min-width: 11rem;
  padding: .4rem .5rem;
  border-radius: .45rem;
  background: #FFF5F5;
}
.marker-editor-image-actions { flex: 0 0 auto; gap: .25rem; }
.marker-editor-image-actions form { margin: 0; }
.marker-editor-image-actions button {
  min-width: 2.65rem;
  min-height: 2.4rem;
  padding: .35rem .8rem;
  border: 1px solid var(--pm-border-strong);
  border-radius: .68rem;
  background: var(--pm-surface);
  color: var(--pm-text-secondary);
  cursor: pointer;
  font: inherit;
  font-size: .76rem;
  line-height: 1;
  box-sizing: border-box;
}
.marker-editor-image-actions button:hover:not(:disabled) { border-color: var(--pm-border-strong); background: #f0f1f2; color: var(--pm-text-primary); }
.marker-editor-image-actions button:disabled { color: #c1c4c9; cursor: not-allowed; }
.marker-editor-image-actions button.is-danger { border-color: #E9CACA; background: #FFFFFF; color: #B85C5C; }
.marker-editor-image-actions button.is-danger:hover { border-color: #E9CACA; background: #FFF5F5; color: #B85C5C; }
.marker-editor-project-exports { position: relative; flex: 0 0 auto; }
.marker-editor-project-exports [data-marker-copy-status] { display: none; }
.marker-editor-project-exports [data-marker-export-status] {
  position: absolute;
  z-index: 13;
  top: calc(100% + .5rem);
  right: 0;
  display: none;
  max-width: min(20rem, 100vw - 2rem);
  padding: .5rem .65rem;
  border: 1px solid #E9CACA;
  border-radius: .55rem;
  background: #FFF5F5;
  color: var(--pm-danger);
  font-size: .76rem;
  line-height: 1.4;
}
.marker-editor-project-exports [data-marker-export-status]:not(:empty) { display: block; }
.marker-editor-png-export { position: relative; flex: 0 0 auto; }
.marker-editor-png-export::after {
  position: absolute;
  z-index: 11;
  top: 100%;
  right: 0;
  width: max(100%, 10.5rem);
  height: .45rem;
  content: "";
}
.marker-editor-png-options {
  position: absolute;
  z-index: 12;
  top: calc(100% + .45rem);
  right: 0;
  display: grid;
  min-width: 10.5rem;
  gap: .45rem;
  padding: .65rem;
  border: 1px solid var(--pm-border);
  border-radius: .68rem;
  background: var(--pm-surface);
  box-shadow: 0 .6rem 1.5rem rgb(20 20 22 / 9%);
  color: var(--pm-text-secondary);
  font-size: .76rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-.2rem);
  transition: opacity 150ms ease, transform 150ms ease, visibility 150ms ease;
  visibility: hidden;
}
.marker-editor-png-options label { display: flex; align-items: center; gap: .45rem; cursor: pointer; white-space: nowrap; }
.marker-editor-png-options input { accent-color: #55585d; }
.marker-editor-png-export:hover .marker-editor-png-options,
.marker-editor-png-export:focus-within .marker-editor-png-options {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
}

/* Keep the top image actions visually consistent with the export controls. */
.marker-editor-page .marker-editor-add-image:not(.marker-image-tab-add) label,
.marker-editor-page .marker-editor-image-actions button,
.marker-editor-page .marker-editor-project-exports .marker-button {
  min-height: 2.4rem;
  padding: .35rem .8rem;
  border-width: 1px;
  border-radius: .68rem;
  font-size: .76rem;
  line-height: 1;
  box-sizing: border-box;
}

.marker-editor-page .marker-button {
  min-height: 2.45rem;
  border-color: var(--pm-action);
  border-radius: .68rem;
  background: var(--pm-action);
  box-shadow: none;
  color: #fff;
  font-size: .83rem;
  font-weight: 650;
}
.marker-editor-page .marker-button:hover:not(:disabled) { border-color: var(--pm-action-hover); background: var(--pm-action-hover); }
.marker-editor-page .marker-button:active:not(:disabled) { border-color: var(--pm-action-active); background: var(--pm-action-active); transform: none; }
.marker-editor-page .marker-button:focus-visible,
.marker-editor-page input:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--pm-focus-ring); }
.marker-editor-page .marker-button-secondary {
  border-color: var(--pm-border-strong);
  background: var(--pm-surface);
  color: #3f434a;
}
.marker-editor-page .marker-button-secondary:hover:not(:disabled) { border-color: var(--pm-border-strong); background: #f7f7f8; color: #3f434a; }
.marker-editor-page .marker-button-secondary:active:not(:disabled) { background: #f0f1f2; }

.marker-editor-workspace {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(22rem, 2fr);
  gap: clamp(1.5rem, 3vw, 2.75rem);
  align-items: start;
  margin-top: 1.5rem;
}
.marker-editor-left-pane {
  --marker-zoom-control-lane: 2.25rem;
  --marker-editor-mode-height: 2rem;
  --marker-editor-mode-active: #3f434a;
  --marker-editor-mode-offset: .625rem;
  position: relative;
  min-width: 0;
}
.marker-editor-page .marker-editor-shell { margin: 0; overflow: visible; border: 0; border-radius: 0; background: transparent; }
.marker-editor-page .marker-image-scroll {
  position: relative;
  width: calc(100% - var(--marker-zoom-control-lane, 2.25rem));
  height: 100%;
  max-height: none;
  overflow: hidden;
  /* The viewport owns the persistent visual boundary. The frame may grow
     and pan within it, but can never expose square clipping corners. */
  border-radius: .7rem;
  padding: 0;
  background: transparent;
}
.marker-editor-page .marker-image-frame { position: absolute; min-width: 0; margin: 0; border-radius: .7rem; box-shadow: none; }
.marker-editor-page .marker-image-frame { will-change: width, transform; }
.marker-editor-page.is-pan-armed .marker-selection-layer { cursor: grab; }
.marker-editor-page.is-panning .marker-selection-layer,
.marker-editor-page.is-panning .marker-image-frame { cursor: grabbing; }
.marker-editor-image-viewport {
  position: relative;
  height: min(52vh, 37.8125rem);
  min-height: 16rem;
}
.marker-editor-image-navigation {
  position: absolute;
  z-index: 3;
  inset: 0;
  pointer-events: none;
}
.marker-editor-image-navigation[hidden] { display: none; }
.marker-editor-image-navigation button {
  position: absolute;
  top: 50%;
  display: grid;
  width: 2rem;
  height: 2rem;
  padding: 0;
  place-items: center;
  border: 1px solid rgb(63 67 74 / 28%);
  border-radius: 999px;
  background: rgb(255 255 255 / 86%);
  box-shadow: 0 .12rem .35rem rgb(34 38 44 / 12%);
  color: #3f434a;
  cursor: pointer;
  pointer-events: auto;
  transform: translateY(-50%);
  transition: background .15s ease, border-color .15s ease, opacity .15s ease;
}
.marker-editor-image-navigation button:first-child { left: .45rem; }
.marker-editor-image-navigation button:last-child { right: calc(var(--marker-zoom-control-lane, 2.25rem) + .45rem); }
.marker-editor-image-navigation svg { width: 1rem; height: 1rem; }
.marker-editor-image-navigation button:hover:not(:disabled) { border-color: #7b818b; background: #fff; }
.marker-editor-image-navigation button:focus-visible { outline: none; box-shadow: 0 0 0 3px rgb(60 64 72 / 18%), 0 .12rem .35rem rgb(34 38 44 / 12%); }
.marker-editor-image-navigation button:disabled { cursor: default; opacity: .34; }
.marker-editor-mode-control {
  position: absolute;
  z-index: 4;
  top: calc(-1 * (var(--marker-editor-mode-height) + var(--marker-editor-mode-offset)));
  right: calc(var(--marker-zoom-control-lane) + .25rem);
  display: inline-flex;
  gap: .5rem;
  box-sizing: border-box;
  min-height: var(--marker-editor-mode-height);
}
.marker-editor-mode-control button {
  min-height: calc(var(--marker-editor-mode-height) - .25rem);
  border: 0;
  border-radius: .45rem;
  padding: 0 .625rem;
  background: transparent;
  color: var(--pm-text-secondary);
  font: inherit;
  font-size: .75rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}
.marker-editor-primary-modes { display: inline-grid; grid-template-columns: repeat(2, auto); gap: 2px; padding: 2px; border: 1px solid var(--pm-border-strong); border-radius: .65rem; background: var(--pm-surface); }
.marker-editor-mode-control button[data-marker-annotation-mode-option="label"] { border: 1px solid var(--pm-border-strong); border-radius: .65rem; background: var(--pm-surface); }
.marker-editor-mode-control button.is-active {
  background: var(--marker-editor-mode-active);
  color: #fff;
}
.marker-editor-mode-control button:not(:disabled):hover { background: #f0f1f2; color: var(--pm-text-strong); cursor: pointer; }
.marker-editor-mode-control button.is-active:not(:disabled):hover { background: var(--pm-action-hover); color: #fff; }
.marker-editor-mode-control button:focus,
.marker-editor-mode-control button:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--pm-focus-ring); }
.marker-editor-mode-control button:disabled { color: var(--pm-text-muted); cursor: not-allowed; opacity: .62; }
.marker-label,
.marker-editor-page .marker-region-number { border-radius: .38rem; }
.marker-label { position: absolute; z-index: 3; display: inline-flex; align-items: flex-start; touch-action: none; transform: translateY(-50%); border: 0; background: rgb(250 250 251 / 94%); color: var(--pm-text-primary); }
.marker-label.is-selected, .marker-label:hover { border-color: var(--pm-text-secondary); box-shadow: 0 2px 6px rgb(31 35 40 / 12%); }
.marker-label-drag-hit { position: absolute; z-index: 1; inset: -.45rem; touch-action: none; cursor: grab; }
.marker-label-drag-hit:active { cursor: grabbing; }
.marker-label textarea { position: relative; z-index: 2; box-sizing: border-box; width: 1.6rem; min-width: 0; min-height: 1.5rem; margin: 0; padding: .336rem .45rem; resize: none; overflow: hidden; overflow-wrap: anywhere; white-space: pre-wrap; touch-action: auto; border: 0; outline: 0; background: transparent; color: inherit; font: inherit; font-size: .72rem; font-weight: 700; line-height: 1.15; text-align: center; }
.marker-label textarea::placeholder { white-space: nowrap; }
.marker-label textarea.is-multiline { text-align: left; }
.marker-label button { position: absolute; z-index: 3; top: -.6rem; right: -.6rem; display: grid; width: 1.2rem; height: 1.2rem; place-items: center; padding: 0; border: 1px solid var(--pm-border-strong); border-radius: 50%; background: var(--pm-surface); color: var(--pm-text-secondary); cursor: pointer; font-size: .78rem; line-height: 1; box-shadow: 0 1px 2px rgb(31 35 40 / 10%); }
.marker-label button { opacity: 0; pointer-events: none; }
.marker-label.is-selected button, .marker-label:hover button { opacity: 1; pointer-events: auto; }
.marker-label button:hover { background: #f0f1f2; color: var(--pm-text-strong); }
.marker-label button[data-marker-label-delete]:hover { color: var(--marker-danger, #b85c5c); }
@media (max-width: 47.9375rem) {
  .marker-label-drag-hit { inset: -.7rem; }
  .marker-label button { top: -.65rem; right: -.65rem; width: 1.3rem; height: 1.3rem; font-size: .82rem; }
  .marker-label.is-selected button { opacity: 1; pointer-events: auto; }
}
.marker-editor-image-info {
  --marker-image-summary-gap: 1.25rem;
  display: flex;
  gap: var(--marker-image-summary-gap);
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  min-height: 3.125rem;
  margin-top: .6rem;
}
.marker-editor-image-meta { display: grid; flex: 0 0 auto; min-width: 0; min-height: 0; place-items: stretch; }
.marker-editor-image-meta p {
  display: grid;
  width: 3.75rem;
  min-height: 2.875rem;
  margin: 0;
  place-items: center;
  border: 1px solid rgb(212 214 218 / 72%);
  border-radius: .58rem;
  background: var(--marker-image-meta-tint, rgb(246 247 248 / 76%));
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--pm-text-primary);
  font-size: 1.1875rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1;
}
.marker-editor-zoom-control { position: absolute; z-index: 3; top: 50%; right: .75rem; display: grid; grid-template-columns: 1rem; grid-template-rows: auto 7.5rem auto; gap: .35rem; align-items: center; transform: translateY(-50%); color: var(--pm-icon); }
.marker-editor-zoom-icon { display: block; width: 1rem; height: 1rem; color: var(--pm-icon); }
.marker-editor-zoom-control input[type="range"][data-marker-zoom] {
  grid-column: 1;
  grid-row: 2;
  width: 1rem;
  height: 7.5rem;
  margin: 0;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  direction: rtl;
  writing-mode: vertical-lr;
}
.marker-editor-zoom-control input[type="range"][data-marker-zoom]::-webkit-slider-runnable-track { width: .28rem; height: 100%; border-radius: 999px; background: linear-gradient(to top, #55585d 0 var(--marker-zoom-progress, 0%), #d8dadf var(--marker-zoom-progress, 0%) 100%); }
.marker-editor-zoom-control input[type="range"][data-marker-zoom]::-webkit-slider-thumb { width: .9rem; height: .9rem; margin-left: -.31rem; appearance: none; -webkit-appearance: none; border: 2px solid #fff; border-radius: 50%; background: #2f3136; box-shadow: 0 0 0 1px #55585d; }
.marker-editor-zoom-control input[type="range"][data-marker-zoom]::-moz-range-track { width: .28rem; border-radius: 999px; background: #d8dadf; }
.marker-editor-zoom-control input[type="range"][data-marker-zoom]::-moz-range-progress { width: .28rem; border-radius: 999px; background: #55585d; }
.marker-editor-zoom-control input[type="range"][data-marker-zoom]::-moz-range-thumb { width: .72rem; height: .72rem; border: 2px solid #fff; border-radius: 50%; background: #2f3136; box-shadow: 0 0 0 1px #55585d; }
.marker-editor-zoom-control input[type="range"][data-marker-zoom]:focus,
.marker-editor-zoom-control input[type="range"][data-marker-zoom]:focus-visible { outline: none; box-shadow: 0 0 0 3px rgb(60 64 72 / 10%); }
.marker-editor-page .marker-region-draft,
.marker-editor-page .marker-region-box {
  border: 2px solid var(--marker-region-inner-line);
  border-radius: .45rem;
  background: var(--marker-region-inner-tint);
  box-shadow: 0 0 0 1px rgb(255 255 255 / 72%);
}
.marker-editor-page .marker-region-box.is-selected {
  border-color: var(--marker-region-inner-line);
  background: var(--marker-region-inner-selected-tint);
  box-shadow: 0 0 0 1px rgb(255 255 255 / 88%), 0 0 0 3px var(--marker-region-inner-selected-ring);
}
.marker-editor-page .marker-region-number {
  border: 0;
  background: rgb(229 231 235 / 94%);
  color: var(--pm-text-primary);
  font-weight: 700;
}
.marker-editor-page .marker-region-control::before,
.marker-editor-page .marker-region-copy-control::before { border-color: #fff; background: var(--pm-icon); }
.marker-editor-page .marker-region-copy-control { color: #fff; }
.marker-editor-page .marker-region-point {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  cursor: move;
}
.marker-editor-page .marker-region-point.is-selected {
  border: 0;
  background: transparent;
  box-shadow: none;
}
.marker-region-point-dot {
  position: absolute;
  z-index: 2;
  width: var(--marker-region-point-control-size);
  height: var(--marker-region-point-control-size);
  left: -.975rem;
  top: .375rem;
  box-sizing: border-box;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--marker-region-inner-line);
  box-shadow: 0 0 0 1px rgb(31 35 40 / 22%);
}
.marker-region-point::before {
  position: absolute;
  z-index: 1;
  width: 2rem;
  height: 2rem;
  left: -1rem;
  top: -1rem;
  border-radius: 50%;
  content: "";
}
.marker-region-point.is-selected .marker-region-point-dot {
  box-shadow: 0 0 0 2px rgb(255 255 255 / 88%), 0 0 0 4px var(--marker-region-inner-selected-ring);
}
.marker-region-point-content {
  position: absolute;
  z-index: 2;
  top: -.75rem;
  left: .6rem;
  display: inline-flex;
  min-height: 1.5rem;
  align-items: center;
}
.marker-editor-page .marker-region-point .marker-region-number {
  position: static;
  max-width: none;
  max-height: none;
  overflow: visible;
}
.marker-editor-page .marker-region-point.is-label-left .marker-region-point-content {
  right: .6rem;
  left: auto;
}
.marker-editor-page .marker-region-point.is-label-left .marker-region-point-dot {
  right: -.975rem;
  left: auto;
}
.marker-editor-page .marker-region-point.is-label-left .marker-region-point-delete {
  right: auto;
  left: -1rem;
}
.marker-region-point-delete {
  position: absolute;
  z-index: 3;
  top: -1rem;
  right: -1rem;
  display: grid;
  width: var(--marker-region-control-hit-size, 2rem);
  height: var(--marker-region-control-hit-size, 2rem);
  margin: 0;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--pm-icon);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease;
}
.marker-region-point-delete::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--marker-region-point-control-size);
  height: var(--marker-region-point-control-size);
  box-sizing: border-box;
  border: 1px solid var(--pm-border-strong);
  border-radius: 50%;
  background: rgb(255 255 255 / 96%);
  transform: translate(-50%, -50%);
  content: "";
}
.marker-region-point-delete::after {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: .42rem;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transform: translate(-50%, -50%);
  content: "";
}
.marker-region-point:hover .marker-region-point-delete,
.marker-region-point:focus-within .marker-region-point-delete {
  opacity: 1;
  pointer-events: auto;
}
.marker-region-point-delete:hover { color: var(--marker-danger); }
.marker-region-point-delete:hover::before {
  border-color: var(--pm-danger-border);
  background: var(--pm-danger-bg);
}
.marker-region-point-delete:focus,
.marker-region-point-delete:focus-visible { outline: none; }
.marker-region-point-delete:focus-visible::before { box-shadow: 0 0 0 3px var(--pm-focus-ring); }

@media (prefers-reduced-motion: reduce) {
  .marker-region-copy-control,
  .marker-region-point-delete { transition: none; }
}

.marker-editor-image-stats { display: flex; flex: 0 0 auto; min-width: 0; align-items: baseline; gap: var(--marker-image-summary-gap); }
.marker-editor-image-stats span { display: inline-flex; min-width: 0; align-items: baseline; gap: .3rem; white-space: nowrap; }
.marker-editor-image-stats small { color: var(--pm-text-secondary); font-size: .82rem; }
.marker-editor-image-stats strong { color: var(--pm-text-primary); font-size: clamp(1.05rem, 1.55vw, 1.25rem); font-variant-numeric: tabular-nums; font-weight: 700; }
.marker-editor-image-stats span:last-child strong { font-weight: 750; }

.marker-editor-export-group { justify-content: flex-end; flex-wrap: wrap; margin-top: .75rem; }
.marker-editor-export-group label { color: var(--pm-text-secondary); font-size: .8rem; white-space: nowrap; }
.marker-editor-export-group input { accent-color: #55585d; }
.marker-editor-export-group [data-marker-export-status] { color: var(--pm-text-muted); font-size: .78rem; }

.marker-editor-items-pane { --marker-editor-action-column: 3.25rem; --marker-editor-item-columns: 2.4rem minmax(0, 1fr) minmax(6.8rem, .55fr) var(--marker-editor-action-column); display: grid; min-width: 0; }
.marker-editor-items-heading { display: grid; gap: .7rem; min-height: 2.85rem; padding-right: .2rem; }
.marker-editor-items-heading h2 { margin: 0; color: var(--pm-text-primary); font-size: 1.1rem; letter-spacing: 0; }
.marker-editor-items-heading > div,
.marker-editor-page .marker-item-card { display: grid; grid-template-columns: var(--marker-editor-item-columns); gap: .55rem; align-items: end; }
.marker-editor-items-heading > div { color: var(--pm-text-muted); font-size: .72rem; font-weight: 650; text-align: left; }
.marker-editor-items-heading > div span:last-child { text-align: center; }
.marker-editor-items-heading > .marker-editor-items-title-row { align-items: center; color: inherit; font-size: inherit; font-weight: inherit; text-align: initial; }
.marker-editor-items-title-row h2 { grid-column: 1 / 4; }
.marker-item-sort-form { display: flex; grid-column: 4; justify-self: center; }
.marker-item-sort-toggle { display: grid; width: 2rem; height: 2rem; margin: 0; padding: .22rem; place-items: center; border: 1px solid var(--pm-border); border-radius: .58rem; background: var(--pm-surface); color: var(--pm-text-muted); cursor: pointer; transition: border-color 180ms ease, color 180ms ease, background-color 180ms ease; }
.marker-item-sort-toggle:hover { border-color: var(--pm-border-strong); background: var(--pm-bg-primary); }
.marker-item-sort-toggle:focus-visible { outline: 2px solid var(--pm-focus); outline-offset: 2px; }
.marker-item-sort-toggle svg { width: 1.25rem; height: 1.25rem; overflow: visible; }
.marker-item-sort-toggle .marker-sort-arrow-up,
.marker-item-sort-toggle .marker-sort-stem-up,
.marker-item-sort-toggle .marker-sort-arrow-down,
.marker-item-sort-toggle .marker-sort-stem-down { transition: opacity 180ms ease, color 180ms ease; }
.marker-item-sort-toggle .marker-sort-arrow-up,
.marker-item-sort-toggle .marker-sort-stem-up { opacity: .35; }
.marker-item-sort-toggle .marker-sort-arrow-down,
.marker-item-sort-toggle .marker-sort-stem-down { opacity: .35; }
.marker-item-sort-toggle.is-asc .marker-sort-arrow-up,
.marker-item-sort-toggle.is-asc .marker-sort-stem-up { opacity: 1; color: var(--pm-text-primary); }
.marker-item-sort-toggle.is-desc .marker-sort-arrow-down,
.marker-item-sort-toggle.is-desc .marker-sort-stem-down { opacity: 1; color: var(--pm-text-primary); }
.marker-editor-page .marker-item-list { max-height: min(42rem, calc(100vh - 18rem)); overflow: auto; display: grid; gap: .65rem; margin-top: .7rem; padding-right: .2rem; border: 0; border-radius: 0; background: transparent; }
.marker-editor-page .marker-item-card { padding: 0; border: 0; border-radius: 0; background: transparent; scroll-margin-top: 5rem; }
.marker-editor-page .marker-item-card + .marker-item-card { border: 0; }
.marker-editor-page .marker-item-card.is-selected { background: transparent; box-shadow: none; }
.marker-editor-page .marker-item-card label { gap: .25rem; color: var(--pm-text-muted); font-size: .7rem; font-weight: 650; }
.marker-editor-page .marker-item-card label > span:first-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.marker-editor-page .marker-item-card input { min-height: 2.45rem; border-color: var(--pm-border-strong); border-radius: .58rem; color: var(--pm-text-primary); }
.marker-editor-page .marker-item-card input:hover { border-color: #c8cbd0; }
.marker-editor-page .marker-price-input { isolation: isolate; }
.marker-editor-page .marker-price-input b {
  z-index: 2;
  pointer-events: none;
  color: var(--pm-text-secondary);
}
.marker-editor-page .marker-price-input input {
  position: relative;
  z-index: 1;
  padding-left: 1.65rem;
}
.marker-editor-page .marker-price-input.has-fill-price-action input { padding-right: 2.55rem; }
.marker-editor-page .marker-price-fill-down {
  position: absolute;
  z-index: 3;
  top: 50%;
  right: .1rem;
  display: grid;
  width: 2.25rem;
  height: calc(100% - .2rem);
  margin: 0;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: .46rem;
  background: transparent;
  color: var(--pm-text-secondary);
  cursor: pointer;
  opacity: 0;
  transform: translateY(calc(-50% + .15rem));
  transition: opacity 150ms ease, background-color 150ms ease, color 150ms ease, transform 150ms ease;
}
.marker-editor-page .marker-price-fill-down:not([hidden]) { opacity: 1; transform: translateY(-50%); }
.marker-editor-page .marker-price-fill-down[hidden] { display: none; }
.marker-editor-page .marker-price-fill-down svg { width: 1rem; height: 1rem; }
.marker-editor-page .marker-price-fill-down:hover { background: #f0f1f2; color: var(--pm-text-primary); }
.marker-editor-page .marker-price-fill-down:active { background: #e8e9eb; }
.marker-editor-page .marker-price-fill-down:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--pm-focus-ring); }
@media (prefers-reduced-motion: reduce) {
  .marker-editor-page .marker-price-fill-down { transition: none; }
}
.marker-editor-page .marker-item-card input:focus,
.marker-editor-page .marker-item-card input:focus-visible { border: 1px solid var(--pm-focus); border-color: var(--pm-focus); outline: none; box-shadow: 0 0 0 3px var(--pm-focus-ring); box-sizing: border-box; }
.marker-editor-page .marker-item-card input:focus,
.marker-editor-page .marker-item-card input:focus-visible {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  border: 1px solid #A8ADB5 !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgb(60 64 72 / 10%) !important;
}
.marker-editor-page-body .marker-editor-title-modal input:focus,
.marker-editor-page-body .marker-editor-title-modal input:focus-visible {
  box-sizing: border-box;
  border: 1px solid #A8ADB5 !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgb(60 64 72 / 10%) !important;
}
.marker-editor-page .marker-item-card input.is-invalid { border-color: var(--pm-danger); background: var(--pm-danger-bg); }
.marker-editor-page .marker-item-number { width: 2.4rem; height: 2.45rem; margin: 0; border-radius: .58rem; background: #f0f1f2; color: var(--pm-text-secondary); font-size: .8rem; font-weight: 700; }
.marker-editor-page .marker-remove-button { min-height: 2.45rem; border: 0; border-radius: .58rem; background: transparent; color: var(--pm-danger); cursor: pointer; font-size: .78rem; justify-self: center; text-align: center; }
.marker-editor-page .marker-remove-button:hover { background: var(--pm-danger-bg); }
.marker-editor-page .marker-item-list > .marker-empty {
  margin: .5rem 0 0;
  padding: 1.25rem 1rem;
  border-radius: .7rem;
  background: #f7f7f8;
  color: var(--pm-text-secondary);
}
.marker-editor-page .marker-empty p { color: var(--pm-text-muted); }
.marker-editor-page .marker-editor-actions { position: static; justify-content: flex-end; margin-top: .9rem; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; backdrop-filter: none; }
.marker-editor-page .marker-editor-actions > span { margin-right: auto; color: var(--pm-text-muted); font-size: .76rem; }
.marker-editor-page .marker-editor-actions .marker-button { min-width: 7.8rem; min-height: 2.5rem; }
.marker-editor-page .marker-editor-actions > span.is-error { color: var(--pm-danger); }
.marker-editor-page .marker-editor-actions .marker-button:disabled {
  border-color: var(--pm-border-strong);
  background: var(--pm-border-strong);
  color: var(--pm-text-muted);
  cursor: not-allowed;
  opacity: 1;
}
.marker-editor-page .marker-editor-actions .marker-button:disabled:hover,
.marker-editor-page .marker-editor-actions .marker-button:disabled:active {
  border-color: var(--pm-border-strong);
  background: var(--pm-border-strong);
  color: var(--pm-text-muted);
}
.marker-editor-empty-project { display: grid; min-height: 22rem; margin-top: 1.5rem; padding: 3rem 1.5rem; place-content: center; text-align: center; border: 1px dashed var(--pm-border-strong); border-radius: 1rem; background: var(--pm-surface); }
.marker-editor-empty-project strong { color: var(--pm-text-primary); font-size: 1.15rem; }
.marker-editor-empty-project p { margin: .5rem 0 0; color: var(--pm-text-muted); }

@media (min-width: 48rem) and (max-width: 74.9375rem) {
  .marker-editor-page-body .marker-container { width: min(100% - 3rem, 70rem); }
  .marker-editor-workspace { grid-template-columns: minmax(0, 1.22fr) minmax(20rem, 1fr); gap: 1.5rem; }
  .marker-editor-project-tools { flex-wrap: wrap; }
  .marker-editor-project-exports { margin-left: auto; }
}

/* Desktop-only focus correction: keep the ring outside the item grid without
   changing the mobile input treatment, which is already balanced. */
@media (min-width: 48rem) {
  .marker-auth-landing {
    min-height: clamp(24rem, 56vh, 35rem);
    align-content: center;
  }
  .marker-editor-page-body {
    display: flex;
    min-height: 100dvh;
    flex-direction: column;
    overflow: hidden;
  }
  .marker-editor-page-body .marker-container {
    display: flex;
    min-height: 0;
    flex: 1 1 auto;
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
  .marker-editor-page {
    display: flex;
    min-height: 0;
    flex: 1 1 auto;
    flex-direction: column;
  }
  .marker-editor-project-tools {
    flex: 0 0 auto;
    margin-top: .8rem;
  }
  .marker-editor-workspace {
    min-height: 0;
    /* A definite, shrinkable grid track stops item rows from sizing the
       workspace itself. The list may then own the remaining height. */
    flex: 1 1 0;
    grid-template-rows: minmax(0, 1fr);
    align-items: stretch;
    margin-top: 1rem;
  }
  .marker-editor-left-pane {
    display: grid;
    min-height: 0;
    width: min(100%, 42rem);
    align-self: start;
    justify-self: center;
    grid-template-rows: auto auto;
    gap: .75rem;
  }
  .marker-editor-page .marker-editor-shell {
    display: grid;
    min-height: 0;
    grid-template-rows: auto auto;
  }
  .marker-editor-image-viewport {
    width: 100%;
    height: min(31.75rem, calc(100dvh - 19.25rem));
    min-height: 16rem;
  }
  .marker-editor-image-info {
    --marker-image-summary-group-gap: 1.375rem;
    --marker-image-summary-width: 20.5rem;
    display: flex;
    gap: var(--marker-image-summary-group-gap);
    align-items: center;
    justify-content: flex-start;
    width: min(100%, var(--marker-image-summary-width));
    margin-left: auto;
  }
  .marker-editor-image-meta { align-self: center; }
  .marker-editor-image-stats {
    display: flex;
    flex: 0 0 auto;
    align-items: baseline;
    gap: var(--marker-image-summary-group-gap);
  }
  .marker-editor-image-stats span {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: baseline;
    gap: .375rem;
    white-space: nowrap;
  }
  .marker-editor-image-stats small,
  .marker-editor-image-stats strong {
    align-self: baseline;
    line-height: 1.2;
    white-space: nowrap;
  }
  .marker-editor-zoom-control { right: .375rem; }
  .marker-editor-page .marker-image-scroll {
    display: flex;
    min-height: 0;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }
  .marker-editor-image-stats { margin-top: 0; }
  .marker-editor-items-pane {
    display: flex;
    min-height: 0;
    flex-direction: column;
  }
  .marker-editor-items-heading { flex: 0 0 auto; }
  .marker-editor-page .marker-item-list {
    min-height: 0;
    max-height: none;
    flex: 1 1 0;
    align-content: start;
    grid-auto-rows: max-content;
    overscroll-behavior: contain;
    overflow-x: hidden;
    overflow-y: auto;
  }
  .marker-editor-page .marker-item-card { align-self: start; }
  .marker-editor-page .marker-editor-actions { flex: 0 0 auto; }

  .marker-editor-page .marker-item-card label,
  .marker-editor-page .marker-price-input {
    overflow: visible;
    border: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
  }
  .marker-editor-page .marker-item-card input:focus,
  .marker-editor-page .marker-item-card input:focus-visible {
    border: 2px solid #A8ADB5 !important;
    outline: none !important;
    box-shadow: none !important;
    padding-top: calc(.72rem - 1px);
    padding-bottom: calc(.72rem - 1px);
  }
  .marker-editor-page-body .marker-editor-title-modal input:focus,
  .marker-editor-page-body .marker-editor-title-modal input:focus-visible {
    border: 2px solid #A8ADB5 !important;
    outline: none !important;
    box-shadow: none !important;
  }
}

@media (max-width: 47.9375rem) {
  .marker-editor-page-body .marker-container { width: min(100% - 2.5rem, 42rem); padding-top: 1.25rem; }
  .marker-editor-project-header { align-items: flex-start; }
  .marker-editor-project-title { flex-wrap: nowrap; gap: .5rem; }
  .marker-editor-project-title h1 { width: auto; flex: 1 1 auto; font-size: 1.65rem; }
  .marker-editor-project-tools {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: .625rem;
    margin-top: 1rem;
  }
  .marker-editor-page .marker-image-tabs { grid-column: 1 / -1; width: 100%; }
  .marker-editor-project-exports { min-width: 0; width: 100%; }
  .marker-editor-project-exports {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .625rem;
  }
  .marker-editor-project-exports > .marker-button {
    width: 100%;
    min-width: 0;
    min-height: 2.75rem;
    padding-inline: .5rem;
    font-size: .76rem;
    white-space: nowrap;
  }
  .marker-editor-png-export { grid-column: 1 / -1; width: 100%; }
  .marker-editor-png-export > [data-marker-export-png] { width: 100%; min-height: 2.75rem; }
  .marker-editor-png-options {
    top: calc(100% + .5rem);
    right: auto;
    left: 0;
    width: min(13.5rem, calc(100vw - 2.5rem));
    min-width: 0;
    padding: .625rem;
    gap: .25rem;
  }
  .marker-editor-png-options label { min-height: 2.75rem; padding: 0 .15rem; }
  .marker-editor-png-export:hover .marker-editor-png-options,
  .marker-editor-png-export:focus-within .marker-editor-png-options {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-.2rem);
    visibility: hidden;
  }
  .marker-editor-png-export.is-open .marker-editor-png-options {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    visibility: visible;
  }
  .marker-editor-page .marker-image-tab-wrap.is-current .marker-image-tab-remove-form {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
  }
  .marker-editor-workspace { display: block; margin-top: .875rem; }
  .marker-editor-page .marker-editor-left-pane {
    display: grid;
    grid-template-rows: auto auto auto;
    gap: .875rem;
  }
  .marker-editor-mode-control {
    position: static;
    z-index: auto;
    justify-self: end;
    margin: 0;
  }
  .marker-region-point.is-selected .marker-region-point-delete {
    opacity: 1;
    pointer-events: auto;
  }
  .marker-editor-page .marker-image-scroll {
    height: auto;
    max-height: none;
    aspect-ratio: 1 / 1;
  }
  .marker-editor-image-viewport { height: auto; min-height: 0; }
  .marker-editor-image-navigation button { width: 2.25rem; height: 2.25rem; }
  .marker-editor-image-navigation button:first-child { left: .35rem; }
  .marker-editor-image-navigation button:last-child { right: calc(var(--marker-zoom-control-lane, 2.25rem) + .35rem); }
  .marker-editor-zoom-control { right: .5rem; }
  .marker-editor-image-stats { gap: .65rem; }
  .marker-editor-image-stats strong { font-size: 1.25rem; }
  .marker-editor-export-group { justify-content: flex-start; }
  .marker-editor-items-pane { margin-top: 1.5rem; }
  .marker-editor-items-heading > div { display: none; }
  .marker-editor-items-heading > .marker-editor-items-title-row { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr) var(--marker-editor-action-column); gap: .45rem; }
  .marker-editor-items-title-row h2 { grid-column: 1 / 3; }
  .marker-item-sort-form { grid-column: 3; }
  .marker-editor-page .marker-item-list { max-height: none; overflow: visible; }
  .marker-editor-page .marker-item-card { grid-template-columns: 2.4rem minmax(0, 1fr) var(--marker-editor-action-column); gap: .45rem; }
  .marker-editor-page .marker-item-card label { grid-column: 2 / -1; }
  .marker-editor-page .marker-item-card label > span:first-child { position: static; width: auto; height: auto; overflow: visible; clip-path: none; white-space: normal; }
  .marker-editor-page .marker-item-card .marker-remove-button { grid-column: 3; grid-row: 1; }
  .marker-editor-page .marker-editor-actions { flex-wrap: wrap; }
  .marker-editor-page .marker-editor-actions > span { flex-basis: 100%; }
  .marker-editor-page .marker-editor-actions .marker-button { flex: 1 1 0; min-width: 0; }
}
