/* ==========================================================
   Enxora Draw — Editor CSS
   Desktop: Excalidraw-style floating elements over canvas
   Mobile:  Solid sticky header + bottom tool dock
   ========================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Caveat:wght@600&display=swap');

/* ── Design tokens ─────────────────────────────────────── */
:root {
  --ed-bg:           #f5f5f5;
  --ed-canvas-bg:    #ffffff;
  --ed-panel:        #ffffff;
  --ed-line:         #e4e3ea;
  --ed-ink:          #1e1e24;
  --ed-soft:         #868e96;
  --ed-accent:       #57b14b;
  --ed-accent-light: #edf7eb;
  --ed-accent-dark:  #46c050;
  --ed-red:          #dc2626;
  --ed-shadow-sm:    0 1px 3px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.05);
  --ed-shadow:       0 2px 8px rgba(0,0,0,0.10), 0 8px 24px rgba(0,0,0,0.07);
  --ed-radius:       8px;
  --ed-radius-lg:    12px;
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  height: 100%; overflow: hidden;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 13px; color: var(--ed-ink);
  background: var(--ed-bg);
  -webkit-font-smoothing: antialiased;
}

/* ══════════════════════════════════════════════════════════
   DESKTOP LAYOUT  (Excalidraw style — floating elements)
   ══════════════════════════════════════════════════════════ */

/* Root: full viewport, canvas takes all space */
.ed-root {
  position: relative;
  width: 100vw; height: 100vh; height: 100dvh;
  overflow: hidden;
}

/* Canvas wrap fills entire root */
.ed-canvas-wrap {
  position: absolute;
  inset: 0;
}

/* ── Canvas ────────────────────────────────────────────── */
.ed-canvas {
  position: absolute; inset: 0;
  touch-action: none;
  cursor: crosshair;
  background: var(--ed-canvas-bg);
  display: block;
}
.ed-canvas.tool-select { cursor: default; }
.ed-canvas.tool-pan    { cursor: grab; }
.ed-canvas.panning     { cursor: grabbing; }
.ed-canvas.tool-text   { cursor: text; }
.ed-canvas.tool-eraser {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9' fill='none' stroke='%23ef4444' stroke-width='2'/%3E%3C/svg%3E") 12 12, cell;
}

/* ── Topbar: transparent floating row on desktop ────────── */
.ed-topbar {
  position: absolute;
  top: 12px; left: 12px; right: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  box-shadow: none;
  z-index: 30;
  pointer-events: none; /* canvas clicks pass through gaps */
  user-select: none;
}
.ed-topbar > * { pointer-events: auto; }
.ed-topbar-spacer { flex: 0 0 auto; width: 1px; } /* invisible placeholder */

/* ── Back Button — floating pill ────────────────────────── */
.ed-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  padding: 0 12px;
  height: 38px;
  border: 1px solid var(--ed-line);
  border-radius: var(--ed-radius);
  background: var(--ed-panel);
  box-shadow: var(--ed-shadow-sm);
  font-size: 12px; font-weight: 500;
  color: var(--ed-soft);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.12s, background 0.12s, border-color 0.12s;
}
.ed-back:hover { color: var(--ed-ink); background: var(--ed-accent-light); border-color: var(--ed-accent); }

/* ── Board title input — transparent, centred ───────────── */
.ed-title-input {
  flex: 1;
  min-width: 0;
  max-width: 220px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: var(--ed-radius);
  background: transparent;
  font-weight: 600; font-size: 13px; font-family: inherit;
  color: var(--ed-ink);
  text-align: center;
  transition: border-color 0.12s, background 0.12s, box-shadow 0.12s;
}
.ed-title-input:hover { border-color: var(--ed-line); background: var(--ed-panel); box-shadow: var(--ed-shadow-sm); }
.ed-title-input:focus  { outline: none; border-color: var(--ed-accent); background: var(--ed-panel); box-shadow: 0 0 0 3px var(--ed-accent-light); }

/* ── Actions row — floating pills ───────────────────────── */
.ed-actions {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
}
.ed-action-btn {
  display: inline-flex; align-items: center; gap: 5px;
  height: 38px; padding: 0 12px;
  border: 1px solid var(--ed-line);
  border-radius: var(--ed-radius);
  background: var(--ed-panel);
  box-shadow: var(--ed-shadow-sm);
  cursor: pointer;
  font-size: 12px; font-weight: 600; font-family: inherit;
  color: var(--ed-ink);
  white-space: nowrap;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}
.ed-action-btn:hover { background: var(--ed-accent-light); border-color: var(--ed-accent); color: var(--ed-accent); }
.ed-action-btn.primary { background: var(--ed-accent); color: #fff; border-color: var(--ed-accent); }
.ed-action-btn.primary:hover { background: var(--ed-accent-dark); border-color: var(--ed-accent-dark); }
.ed-action-icon-only { width: 38px; padding: 0; justify-content: center; }
.ed-collab-badge {
  display: inline-flex; align-items: center; justify-content: center;
  height: 38px; padding: 0 12px;
  border-radius: var(--ed-radius);
  background: #fef9c3; border: 1px solid #fde047;
  box-shadow: var(--ed-shadow-sm);
  font-size: 12px; font-weight: 700; color: #854d0e; gap: 5px;
}

/* ── Drawing Toolbar — floating top-centre ──────────────── */
.ed-toolbar {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  background: var(--ed-panel);
  border: 1px solid var(--ed-line);
  border-radius: var(--ed-radius-lg);
  box-shadow: var(--ed-shadow);
  display: flex; align-items: center;
  gap: 1px; padding: 4px;
  z-index: 30;
  user-select: none;
}
.ed-tool {
  position: relative;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 6px; border: none;
  background: transparent; cursor: pointer;
  color: var(--ed-ink);
  transition: background 0.12s, color 0.12s;
  flex-shrink: 0;
}
.ed-tool-icon { display: flex; align-items: center; justify-content: center; pointer-events: none; }
.ed-tool:hover { background: var(--ed-accent-light); color: var(--ed-accent); }
.ed-tool:hover .ed-tool-tooltip { opacity: 1; transform: translateX(-50%) translateY(0); }
.ed-tool.active { background: var(--ed-accent); color: #fff; }
.ed-tool.active .ed-tool-hint { color: rgba(255,255,255,0.75); }
.ed-tool-hint {
  position: absolute; bottom: 2px; right: 3px;
  font-size: 8px; line-height: 1; color: var(--ed-soft);
  font-weight: 600; pointer-events: none;
}
.ed-tool-tooltip {
  position: absolute; top: calc(100% + 8px);
  left: 50%; transform: translateX(-50%) translateY(4px);
  background: var(--ed-ink); color: #fff;
  font-size: 11px; line-height: 1.4; white-space: nowrap;
  padding: 5px 8px; border-radius: 6px;
  box-shadow: var(--ed-shadow-sm);
  opacity: 0; transition: opacity 0.15s, transform 0.15s;
  pointer-events: none; z-index: 100;
}
.ed-tool-tooltip::before {
  content: ''; position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%);
  border: 5px solid transparent; border-bottom-color: var(--ed-ink);
}
.ed-tool-tooltip strong { font-weight: 600; margin-right: 4px; }
.ed-tool-tooltip kbd {
  display: inline-block; background: rgba(255,255,255,0.15);
  border-radius: 3px; padding: 0 4px; font-family: inherit; font-size: 10px;
}
.ed-tool-sep { width: 1px; height: 20px; background: var(--ed-line); margin: 0 3px; flex-shrink: 0; }

/* ── Style/Properties Panel — floating left-side ────────── */
.ed-style-panel {
  position: absolute; top: 50%; left: 12px;
  transform: translateY(-50%);
  width: 208px;
  background: var(--ed-panel);
  border: 1px solid var(--ed-line);
  border-radius: var(--ed-radius-lg);
  box-shadow: var(--ed-shadow);
  padding: 28px 12px 10px;
  z-index: 25;
  max-height: calc(100vh - 120px); overflow-y: auto;
  scrollbar-width: thin;
  transition: width 0.2s, height 0.2s, padding 0.2s, border-radius 0.2s;
}
.ed-style-panel.minimized {
  width: 40px; height: 40px; padding: 0; overflow: hidden; border-radius: 50%;
  top: 50%; transform: translateY(-50%); left: 12px;
}
.ed-style-panel-expand {
  width: 100%; height: 100%; border: none; background: transparent;
  font-size: 16px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--ed-accent); transition: background 0.12s;
}
.ed-style-panel-expand:hover { background: var(--ed-accent-light); }
.ed-style-panel-minimize {
  position: absolute; top: 6px; right: 6px;
  width: 22px; height: 22px; border: none; background: transparent;
  color: var(--ed-soft); font-size: 11px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  border-radius: 4px; transition: background 0.12s, color 0.12s; z-index: 2;
}
.ed-style-panel-minimize:hover { background: var(--ed-accent-light); color: var(--ed-accent); }
.ed-style-panel::-webkit-scrollbar { width: 4px; }
.ed-style-panel::-webkit-scrollbar-thumb { background: var(--ed-line); border-radius: 4px; }
.ed-style-panel h4 {
  font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .07em;
  color: var(--ed-soft); margin: 12px 0 8px;
}
.ed-style-panel h4:first-child { margin-top: 0; }
.ed-style-group { margin-bottom: 4px; }
.ed-swatches { display: flex; gap: 5px; flex-wrap: wrap; align-items: center; }
.ed-swatch {
  width: 22px; height: 22px; border-radius: 5px;
  border: 2.5px solid transparent; cursor: pointer;
  transition: transform 0.1s, border-color 0.1s; flex-shrink: 0;
}
.ed-swatch:hover { transform: scale(1.15); }
.ed-swatch.selected { border-color: var(--ed-accent); box-shadow: 0 0 0 2px var(--ed-accent-light); }
.ed-swatch.transparent-swatch {
  background-image: linear-gradient(45deg,#ccc 25%,transparent 25%),
    linear-gradient(-45deg,#ccc 25%,transparent 25%),
    linear-gradient(45deg,transparent 75%,#ccc 75%),
    linear-gradient(-45deg,transparent 75%,#ccc 75%);
  background-size: 8px 8px;
  background-position: 0 0, 0 4px, 4px -4px, -4px 0;
}
.ed-style-panel input[type=color] {
  width: 22px; height: 22px; padding: 0;
  border: 2px solid var(--ed-line); border-radius: 5px;
  cursor: pointer; flex-shrink: 0; background: none;
}
.ed-btn-row { display: flex; gap: 4px; }
.ed-btn-row button {
  flex: 1; padding: 6px 4px;
  border: 1.5px solid var(--ed-line); background: #fff;
  border-radius: 6px; cursor: pointer; font-size: 12px; color: var(--ed-ink);
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}
.ed-btn-row button:hover { background: var(--ed-accent-light); border-color: var(--ed-accent); color: var(--ed-accent); }
.ed-btn-row button.active { background: var(--ed-accent); border-color: var(--ed-accent); color: #fff; }
.ed-range { width: 100%; -webkit-appearance: none; height: 4px; background: var(--ed-line); border-radius: 2px; outline: none; cursor: pointer; }
.ed-range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%;
  background: var(--ed-accent); border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.2); cursor: pointer;
}
.ed-range::-moz-range-thumb {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--ed-accent); border: 2px solid #fff; cursor: pointer;
}

/* ── Zoom controls — bottom-left ────────────────────────── */
.ed-zoom {
  position: absolute; bottom: 14px; left: 14px;
  background: var(--ed-panel); border: 1px solid var(--ed-line);
  border-radius: var(--ed-radius); box-shadow: var(--ed-shadow-sm);
  display: flex; align-items: center; overflow: hidden; z-index: 30;
}
.ed-zoom button {
  width: 32px; height: 32px; border: none; background: none; cursor: pointer;
  font-size: 12px; color: var(--ed-soft);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.12s, color 0.12s;
}
.ed-zoom button:hover { background: var(--ed-accent-light); color: var(--ed-accent); }
.ed-zoom span {
  font-size: 11px; font-weight: 600; width: 44px; text-align: center;
  color: var(--ed-soft);
  border-left: 1px solid var(--ed-line); border-right: 1px solid var(--ed-line);
}

/* ── Save status — bottom-centre ────────────────────────── */
.ed-save-status {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  font-size: 11px; color: var(--ed-soft); z-index: 30;
  background: var(--ed-panel); border: 1px solid var(--ed-line);
  border-radius: 20px; padding: 4px 10px;
  box-shadow: var(--ed-shadow-sm);
  transition: opacity 0.3s; pointer-events: none;
}

/* ── Guest banner ───────────────────────────────────────── */
.ed-guest-banner {
  position: absolute; bottom: 56px; left: 50%; transform: translateX(-50%);
  background: var(--ed-ink); color: #fff;
  padding: 9px 16px; border-radius: 999px;
  font-size: 12px; font-weight: 500;
  display: flex; align-items: center; gap: 8px;
  z-index: 30; box-shadow: var(--ed-shadow); white-space: nowrap;
}
.ed-guest-banner a { color: #a5b4fc; font-weight: 700; text-decoration: none; }
.ed-guest-banner a:hover { color: #fff; }

/* ── Inline text editor ─────────────────────────────────── */
.ed-text-editor {
  position: absolute; z-index: 150;
  background: transparent; border: none; outline: none; resize: none;
  overflow: hidden; white-space: pre-wrap; word-wrap: break-word;
  padding: 0; margin: 0;
  font-family: 'Caveat', cursive; font-weight: 600; line-height: 1.25;
  text-align: left; color: var(--ed-ink);
  border-radius: 0; box-shadow: none; -webkit-appearance: none;
}

/* ── Context menu ───────────────────────────────────────── */
.ed-context-menu {
  position: absolute; z-index: 50; background: var(--ed-panel);
  border: 1px solid var(--ed-line); border-radius: var(--ed-radius);
  box-shadow: var(--ed-shadow); padding: 4px; min-width: 160px;
}
.ed-context-menu button {
  display: block; width: 100%; text-align: left;
  padding: 7px 10px; border: none; background: none;
  border-radius: 5px; cursor: pointer; font-size: 12px;
  color: var(--ed-ink); font-family: inherit; transition: background 0.1s;
}
.ed-context-menu button:hover { background: var(--ed-accent-light); color: var(--ed-accent); }

/* ── Collab cursor layer ────────────────────────────────── */
.ed-cursor-layer {
  position: absolute; inset: 0;
  pointer-events: none; z-index: 60; overflow: hidden;
}
.ed-collab-cursor {
  position: absolute; top: 0; left: 0;
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 3px; will-change: transform; transition: transform 0.1s linear;
}
.ed-cursor-dot {
  display: flex; align-items: center; justify-content: center;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.25));
}
.ed-cursor-dot svg { display: block; }
.ed-cursor-label {
  display: inline-block; padding: 2px 7px; border-radius: 10px;
  font-size: 11px; font-weight: 700; color: #ffffff;
  white-space: nowrap; opacity: 0.92;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2); margin-left: 4px;
}

/* ══════════════════════════════════════════════════════════
   MOBILE LAYOUT  (≤ 768px)  — solid sticky header + bottom dock
   ══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  /* Switch root to flex column so topbar takes its own row */
  .ed-root {
    display: flex;
    flex-direction: column;
  }

  /* Canvas wrap fills all space below the header */
  .ed-canvas-wrap {
    flex: 1 1 0;
    position: relative;
    overflow: hidden;
  }

  /* Canvas fills the wrap */
  .ed-canvas {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
  }

  /* Topbar: turn into solid sticky header */
  .ed-topbar {
    position: relative;
    top: auto; left: auto; right: auto;
    order: -1;          /* Appears before canvas-wrap in flex column */
    flex-shrink: 0;
    height: 52px;
    padding: 0 8px;
    gap: 5px;
    align-items: center;
    background: var(--ed-panel);
    border-bottom: 1px solid var(--ed-line);
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    pointer-events: auto;
    z-index: 30;
  }

  /* Back: icon only */
  .ed-back span { display: none; }
  .ed-back {
    padding: 0; width: 38px; height: 38px; justify-content: center;
    border: none; background: transparent; box-shadow: none;
  }
  .ed-back:hover { background: var(--ed-accent-light); border: none; box-shadow: none; }

  /* Title: flex, transparent background in bar */
  .ed-title-input {
    flex: 1; max-width: none;
    height: 36px; font-size: 13px;
    background: transparent; border-color: transparent; box-shadow: none;
  }
  .ed-title-input:hover { border-color: var(--ed-line); background: var(--ed-bg); box-shadow: none; }
  .ed-title-input:focus { background: var(--ed-panel); border-color: var(--ed-accent); box-shadow: 0 0 0 2px var(--ed-accent-light); }

  /* Actions: icon-only, no shadow or border inside the bar */
  .ed-actions { flex: 0 0 auto; justify-content: flex-end; gap: 3px; }
  .ed-action-btn span { display: none; }
  .ed-action-btn {
    padding: 0; width: 38px; height: 38px; justify-content: center;
    border: none; background: transparent; box-shadow: none; font-size: 15px;
  }
  .ed-action-btn:hover { background: var(--ed-accent-light); border: none; box-shadow: none; color: var(--ed-accent); }
  .ed-action-btn.primary {
    width: auto; padding: 0 12px;
    background: var(--ed-accent); border: none; box-shadow: none; color: #fff;
  }
  .ed-action-btn.primary span { display: inline; }
  .ed-action-btn.primary:hover { background: var(--ed-accent-dark); }
  .ed-collab-badge { height: 38px; padding: 0 8px; box-shadow: none; }

  /* Topbar spacer: hide on mobile (no need since back btn always shown or ignored) */
  .ed-topbar-spacer { display: none; }

  /* Toolbar → bottom pill dock */
  .ed-toolbar {
    top: auto;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    left: 50%;
    transform: translateX(-50%);
    border-radius: 999px;
    padding: 6px 12px;
    gap: 2px;
    max-width: min(96vw, 540px);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .ed-toolbar::-webkit-scrollbar { display: none; }
  .ed-tool { width: 42px; height: 42px; border-radius: 50%; font-size: 16px; }
  .ed-tool-hint { display: none !important; }
  .ed-tool-sep { height: 22px; margin: 0 5px; }
  .ed-tool-tooltip { display: none !important; }

  /* Style panel → bottom-left above toolbar */
  .ed-style-panel {
    top: auto; transform: none;
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    left: 10px; right: auto;
    width: min(230px, calc(100vw - 90px));
    max-height: min(300px, 50vh);
    z-index: 35;
  }
  .ed-style-panel.minimized {
    top: auto; transform: none;
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    left: 10px;
    width: 42px; height: 42px;
    border-radius: 50%; padding: 0;
  }

  /* Zoom → bottom-right above toolbar */
  .ed-zoom {
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    right: 10px; left: auto;
  }
  .ed-zoom button { width: 34px; height: 34px; }
  .ed-zoom span { width: 36px; font-size: 10px; }

  /* Save status → bottom-centre below toolbar */
  .ed-save-status {
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    left: 50%; right: auto;
    transform: translateX(-50%);
  }

  /* Guest banner above toolbar */
  .ed-guest-banner {
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    font-size: 11px; padding: 7px 14px;
  }
}

/* ── Tiny phones 480px ──────────────────────────────────── */
@media (max-width: 480px) {
  .ed-topbar { height: 48px; padding: 0 6px; gap: 3px; }
  .ed-back { width: 36px; height: 36px; }
  .ed-title-input { font-size: 12px; }
  .ed-action-btn { width: 36px; height: 36px; font-size: 14px; }
  .ed-action-btn.primary { padding: 0 8px; }

  .ed-toolbar { padding: 4px 8px; }
  .ed-tool { width: 38px; height: 38px; }
  .ed-tool-sep { margin: 0 3px; }

  .ed-style-panel { width: min(200px, calc(100vw - 75px)); max-height: 220px; }
  .ed-zoom button { width: 30px; height: 30px; }
  .ed-zoom span { display: none; }
  .ed-save-status { display: none; }
}

/* ── Share modal ─────────────────────────────────────────── */
.ed-modal-overlay {
  position: fixed; inset: 0; background: rgba(14,18,24,0.45);
  z-index: 200; display: flex; align-items: center; justify-content: center; padding: 16px;
}
.ed-modal {
  background: #ffffff; border-radius: 12px;
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.12), 0 4px 10px -6px rgba(0,0,0,0.06);
  width: 100%; max-width: 400px; overflow: hidden;
  border: 1px solid var(--ed-line);
  animation: ed-modal-in 0.1s cubic-bezier(0,0,0.2,1);
}
@keyframes ed-modal-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.ed-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px 12px; border-bottom: 1px solid var(--ed-line);
}
.ed-modal-header-left { display: flex; align-items: center; gap: 8px; }
.ed-modal-header h3 { margin: 0; font-size: 0.95rem; font-weight: 700; color: var(--ed-ink); }
.ed-modal-close {
  background: none; border: none; cursor: pointer; color: var(--ed-soft);
  width: 26px; height: 26px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  transition: background-color 0.07s, color 0.07s; flex-shrink: 0;
}
.ed-modal-close:hover { background: var(--ed-accent-light); color: var(--ed-accent); }
.ed-modal-body { padding: 14px 18px 18px; }
.ed-modal-desc { margin: 0 0 12px; font-size: 0.83rem; color: var(--ed-soft); }
.ed-share-options { display: flex; flex-direction: column; gap: 7px; margin-bottom: 12px; }
.ed-share-opt {
  display: flex; align-items: center; gap: 12px; padding: 11px 13px;
  border: 1px solid var(--ed-line); border-radius: 8px;
  background: #fff; cursor: pointer; text-align: left;
  transition: border-color 0.07s, background-color 0.07s; font-family: inherit;
}
.ed-share-opt:hover { border-color: var(--ed-accent); background: var(--ed-accent-light); }
.ed-share-opt.active { border-color: var(--ed-accent); background: var(--ed-accent-light); }
.ed-share-opt-icon {
  width: 36px; height: 36px; background: var(--ed-bg); border-radius: 8px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--ed-ink);
}
.ed-share-opt.active .ed-share-opt-icon { background: rgba(87,177,75,0.15); color: var(--ed-accent); }
.ed-share-opt-text { flex: 1; }
.ed-share-opt-text strong { display: block; font-size: 0.85rem; color: var(--ed-ink); margin-bottom: 1px; font-weight: 600; }
.ed-share-opt-text small { font-size: 0.75rem; color: var(--ed-soft); font-weight: 400; }
.ed-share-opt-check { display: none; align-items: center; justify-content: center; width: 20px; height: 20px; flex-shrink: 0; }
.ed-share-link-row { display: flex; gap: 6px; align-items: center; margin-bottom: 8px; }
.ed-share-link-row input {
  flex: 1; padding: 8px 10px; border: 1px solid var(--ed-line);
  border-radius: 6px; font-size: 0.78rem; font-family: monospace;
  background: #f8f8f8; color: var(--ed-ink); outline: none; min-width: 0;
}
.ed-share-link-row button {
  display: flex; align-items: center; gap: 5px; padding: 8px 12px;
  background: var(--ed-accent); color: #fff; border: none; border-radius: 6px;
  font-weight: 600; font-size: 0.78rem; cursor: pointer; white-space: nowrap;
  font-family: inherit; transition: background-color 0.07s;
}
.ed-share-link-row button:hover:not(:disabled) { background: var(--ed-accent-dark); }
.ed-share-link-row button:disabled { opacity: 0.6; cursor: default; }
.ed-share-link-row button.copied { background: #16a34a; }
.ed-share-note {
  display: flex; align-items: center; gap: 6px; font-size: 0.78rem; color: var(--ed-soft);
  margin: 0; padding: 6px 10px; background: #f5f5f5; border-radius: 6px;
}
