/* ============================================================
   LMN Site Monitor — admin-theme.css
   v.0.7.0 — JetBrains Mono bundled, cards wider, drag/pin/whois
   ============================================================ */

/* ============================================================
   FONT: JetBrains Mono (self-hosted, no external CDN)
   File: assets/fonts/jetbrains-mono/jetbrains-mono.css
   ============================================================ */

/* --- Theme variables --- */
.lm-scope {
  --lm-bg: #f8fafc;
  --lm-surface: #ffffff;
  --lm-border: #e5e7eb;
  --lm-text: #111827;
  --lm-muted: #7263e9;
  --lm-accent: #3b82f6;
  --lm-accent-soft: #eff6ff;
  --lm-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
  --lm-radius: 14px;
  --lm-mono:
    "JetBrains Mono", "Fira Mono", "Cascadia Code", ui-monospace,
    SFMono-Regular, Menlo, Consolas, monospace;
}

.lm-scope.lm-dark {
  --lm-bg: #0b0f14;
  --lm-surface: #0f141b;
  --lm-border: #1e2733;
  --lm-text: #e5e7eb;
  --lm-muted: #894aff;
  --lm-accent: #60a5fa;
  --lm-accent-soft: #172033;
  --lm-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
}

/* ============================================================
   GLOBAL SCOPE RESET (only inside .lm-scope)
   ============================================================ */
.lm-scope,
.lm-scope * {
  box-sizing: border-box;
}

/* Apply JetBrains Mono to all monospace elements inside the plugin */
.lm-scope code,
.lm-scope pre,
.lm-scope .lm-whois-raw,
.lm-scope .lm-card-url a {
  font-family: var(--lm-mono);
}

/* ============================================================
   HEADER
   ============================================================ */
.lmn-myheader h1 {
  background-image: url(../assets/background-lmn.jpg);
  background-color: #121212 !important;
  background-position: right center;
  background-repeat: no-repeat;
  border-radius: 10px !important;
  padding: 40px 24px !important;
  color: #fff !important;
  font-weight: 700 !important;
  margin-bottom: 20px !important;
}
@media (max-width: 1090px) {
  .lmn-myheader h1 {
    background-image: none;
  }
}

.lmn-version-badge {
  background: #263674;
  color: #fff;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  vertical-align: super;
  font-family: var(--lm-mono);
  letter-spacing: 0.03em;
}

/* ============================================================
   TOOLBAR
   ============================================================ */
.lm-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin: 8px 0 14px;
  flex-wrap: wrap;
}
.lm-description {
  color: var(--lm-text);
  flex: 1 1 400px;
}
.lm-description.postbox.lm-card {
  padding: 16px 20px;
  line-height: 1.5;
  margin: 0;
}
.lm-description.postbox.lm-card li {
  list-style: disc outside;
  margin-left: 20px;
  margin-top: 4px;
}
.lm-theme-toggle {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}
.lm-theme-toggle .button {
  border-radius: 999px !important;
  border: 1px solid var(--lm-border) !important;
  background: var(--lm-surface) !important;
  box-shadow: none !important;
  padding: 4px 10px !important;
  line-height: 1.6;
}
.lm-scope.lm-dark .lm-theme-toggle .button {
  color: var(--lm-text);
  border-color: var(--lm-border) !important;
}

/* ============================================================
   CARD BASE
   ============================================================ */
.lm-card {
  background: var(--lm-surface);
  border: 1px solid var(--lm-border);
  border-radius: var(--lm-radius);
  box-shadow: var(--lm-shadow);
}
.lm-card .inside {
  padding: 18px 20px;
}

h2.hndle:not(.ui-sortable-handle) {
  background: #263674;
  border-radius: var(--lm-radius) var(--lm-radius) 0 0;
  color: #fff !important;
  padding: 10px 16px !important;
  font-size: 13px;
  letter-spacing: 0.02em;
}
#tab-changelog h2.hndle {
  font-size: 14px;
  padding: 10px 16px;
}

/* ============================================================
   LAYOUT GRID
   ============================================================ */
.lm-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
@media (min-width: 1280px) {
  .lm-grid {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
}

/* Lumina banner — desktop aside */
.lm-banner-lumina {
  display: none;
}
@media (min-width: 1025px) {
  .lm-grid {
    position: relative;
  }
  .lm-banner-lumina {
    display: block;
    position: absolute;
    right: 30px;
    top: 10px;
    width: 260px;
    z-index: 5;
  }
  .lm-banner-lumina img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--lm-shadow);
  }
}

/* ============================================================
   FORM ROW (add URL)
   ============================================================ */
.lm-row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  flex-wrap: wrap;
  margin: 0 0 16px;
}
.lm-grow {
  flex: 1 1 360px;
  min-width: 240px;
}
.lm-grow label {
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--lm-text);
}
.lm-row input[type="url"],
.lm-row input[type="text"] {
  width: 100%;
}

/* ============================================================
   BULK BAR
   ============================================================ */
.lm-bulkbar {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0 0 12px;
  padding: 10px 12px;
  background: var(--lm-accent-soft);
  border-radius: 8px;
  border: 1px solid var(--lm-border);
}
.lm-bulkbar select {
  min-width: 160px;
}
form#lm-bulk-form {
  padding: 0;
}

/* ============================================================
   CARDS GRID — WIDER
   ============================================================ */
.lm-cards-wrap {
  margin-top: 4px;
}

.lm-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 14px;
}

/* Wider on large screens */
@media (min-width: 1600px) {
  .lm-cards {
    grid-template-columns: repeat(auto-fill, minmax(440px, 1fr));
  }
}
@media (max-width: 600px) {
  .lm-cards {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   CARD ITEM
   ============================================================ */
.lm-card-item {
  background: var(--lm-surface);
  border: 1px solid var(--lm-border);
  border-radius: 12px;
  box-shadow: var(--lm-shadow);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition:
    box-shadow 0.15s,
    border-color 0.15s;
  position: relative;
}
.lm-card-item:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.11);
}

/* Pinned accent stripe */
.lm-card-item.is-pinned {
  border-left: 3px solid #f59e0b !important;
}

/* DOWN state */
.lm-card-item[data-status="down"] {
  border-color: #dc2626 !important;
  background: #fff5f5;
}
.lm-scope.lm-dark .lm-card-item[data-status="down"] {
  background: #1a0a0a;
  border-color: #dc2626 !important;
}

@keyframes lm-alert-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.35);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(220, 38, 38, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
  }
}
@media (prefers-reduced-motion: no-preference) {
  .lm-card-item[data-status="down"] {
    animation: lm-alert-pulse 2.4s ease-out infinite;
  }
}

/* Dragging states */
.lm-card-item.lm-dragging {
  opacity: 0.35;
  border: 2px dashed var(--lm-accent) !important;
  box-shadow: none !important;
  animation: none !important;
}
.lm-card-item.lm-drag-over {
  outline: 2px solid var(--lm-accent);
  outline-offset: 2px;
}

/* Dark mode card */
.lm-scope.lm-dark .lm-card-item {
  background: color-mix(in srgb, var(--lm-surface) 96%, #000 4%);
}

/* ============================================================
   CARD HEADER
   ============================================================ */
.lm-card-item__head {
  display: grid;
  grid-template-columns: 18px 20px 1fr auto auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

/* Drag handle */
.lm-drag-handle {
  cursor: grab;
  color: var(--lm-muted);
  opacity: 0.45;
  transition:
    opacity 0.15s,
    background 0.15s;
  touch-action: none;
  padding: 3px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  grid-column: 1;
}
.lm-drag-handle:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.06);
}
.lm-drag-handle:active {
  cursor: grabbing;
}
.is-pinned .lm-drag-handle {
  cursor: not-allowed;
  opacity: 0.18;
  pointer-events: none;
}

/* Checkbox */
.lm-card-check {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lm-card-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  cursor: pointer;
}

/* URL */
.lm-card-url {
  grid-column: 3;
  min-width: 0;
  font-family: var(--lm-mono);
  font-size: 12px;
  letter-spacing: -0.01em;
}
.lm-card-url a {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--lm-accent);
  text-decoration: none;
  font-weight: 500;
}
.lm-card-url a:hover {
  text-decoration: underline;
}

/* Status badge */
.lm-card-state {
  grid-column: 4;
  flex-shrink: 0;
}

/* Pin button */
.lm-pin-btn {
  grid-column: 5;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 5px;
  border-radius: 6px;
  color: var(--lm-muted);
  transition:
    color 0.15s,
    background 0.15s;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
}
.lm-pin-btn:hover {
  background: rgba(0, 0, 0, 0.07);
  color: var(--lm-text);
}
.lm-pin-btn.is-pinned {
  color: #f59e0b;
}
.lm-pin-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--lm-mono);
}

/* ============================================================
   CARD META (dl)
   ============================================================ */
.lm-card-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
  margin: 0;
  font-size: 12.5px;
}
.lm-card-meta > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.lm-card-meta dt {
  font-weight: 600;
  color: var(--lm-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0em;
  font-family: var(--lm-mono);
}
.lm-card-meta dd {
  margin: 0;
  color: var(--lm-text);
  font-family: var(--lm-mono);
  font-size: 13px;
  word-break: break-all;
}

@media (max-width: 480px) {
  .lm-card-meta {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   CARD FOOTER (actions)
   ============================================================ */
.lm-card-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
  padding-top: 4px;
  border-top: 1px solid var(--lm-border);
}
.lm-card-actions .button,
.lm-card-actions .button-secondary {
  font-family: var(--lm-mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  padding: 3px 10px !important;
  height: auto !important;
  line-height: 1.7;
  text-transform: uppercase;
}
.lm-inline {
  display: inline;
}
.inside input.button.button-primary {
  margin-top: 16px;
}

/* ============================================================
   BADGES & PILLS
   ============================================================ */
.lm-badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: 0.03em;
  font-family: var(--lm-mono);
}
.lm-badge.ok {
  background: #16a34a !important;
  color: #fff !important;
}
.lm-badge.down {
  background: #dc2626 !important;
  color: #fff !important;
}

.lm-days {
  display: inline-block;
  font-family: var(--lm-mono);
  font-weight: 600;
  font-size: 12px;
  color: var(--lm-text);
}
.lm-days.warn {
  font-weight: 700;
  color: #d97706;
}
.lm-days.down {
  background: #dc2626;
  color: #fff !important;
  padding: 2px 7px;
  border-radius: 999px;
}

.lm-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 11px;
  font-family: var(--lm-mono);
  background: #e5e7eb;
  color: #111;
}
.lm-scope.lm-dark .lm-pill {
  background: #2b3443;
  color: #e5e7eb;
}
.lm-pill.warn {
  background: #f59e0b;
  color: #111;
}

/* ============================================================
   DARK MODE — TEXT & FORM ELEMENTS
   ============================================================ */
.lm-scope.lm-dark,
.lm-scope.lm-dark .wrap,
.lm-scope.lm-dark .lm-card,
.lm-scope.lm-dark .form-table th label,
.lm-scope.lm-dark .postbox .inside {
  color: var(--lm-text);
}
.lm-scope.lm-dark .hndle,
.lm-scope.lm-dark .form-table th,
.lm-scope.lm-dark .form-table td,
.lm-scope.lm-dark .description {
  color: var(--lm-text);
}
.lm-scope.lm-dark .notice,
.lm-scope.lm-dark .notice p {
  color: #111827;
}
.lm-scope.lm-dark input[type="text"],
.lm-scope.lm-dark input[type="email"],
.lm-scope.lm-dark input[type="url"],
.lm-scope.lm-dark input[type="number"],
.lm-scope.lm-dark input[type="password"],
.lm-scope.lm-dark select,
.lm-scope.lm-dark textarea {
  background: var(--lm-surface);
  color: var(--lm-text);
  border-color: var(--lm-border);
  box-shadow: none;
}
.lm-scope.lm-dark input::placeholder,
.lm-scope.lm-dark textarea::placeholder {
  color: var(--lm-muted);
  opacity: 0.9;
}
.lm-scope.lm-dark .button,
.lm-scope.lm-dark .button-secondary {
  color: var(--lm-text);
  border-color: var(--lm-border);
  background: color-mix(in srgb, var(--lm-surface) 90%, #000 10%);
}
.lm-scope.lm-dark .button:hover,
.lm-scope.lm-dark .button-secondary:hover {
  background: color-mix(in srgb, var(--lm-surface) 80%, #000 20%);
}

/* ============================================================
   DARK MODE — BODY BACKGROUND
   ============================================================ */
body.toplevel_page_lmn-site-monitor:has(.lm-scope.lm-dark),
body.toplevel_page_lmn-site-monitor:has(.lm-scope.lm-dark) #wpwrap,
body.toplevel_page_lmn-site-monitor:has(.lm-scope.lm-dark) #wpcontent,
body.toplevel_page_lmn-site-monitor:has(.lm-scope.lm-dark) #wpbody,
body.toplevel_page_lmn-site-monitor:has(.lm-scope.lm-dark) #wpbody-content {
  background-color: #0b0f14 !important;
}
body.toplevel_page_lmn-site-monitor:has(.lm-scope.lm-dark) .wrap {
  background: transparent !important;
}

/* ============================================================
   ACCORDION
   ============================================================ */
details.lm-accordion {
  border: 1px solid var(--lm-border);
  border-radius: 8px;
  padding: 0.6rem 0.9rem;
  background: var(--lm-surface);
  margin-top: 12px;
}
details.lm-accordion > summary {
  cursor: pointer;
  outline: none;
  color: var(--lm-text);
}
details.lm-accordion .lm-acc-body {
  margin-top: 0.6rem;
}
.lm-scope.lm-dark details.lm-accordion {
  border-color: #1e3a5a;
  background: #080c12;
}

/* ============================================================
   CHANGELOG
   ============================================================ */
.lm-changelog-body {
  padding: 18px 22px;
  max-height: 62vh;
  overflow: auto;
  background: var(--lm-surface);
  border-radius: 0 0 var(--lm-radius) var(--lm-radius);
}
.lm-changelog-list {
  margin: 0.4em 0 0.8em 1.4em;
}
.lm-changelog-list li {
  margin: 0.25em 0;
  color: var(--lm-text);
}
.lm-changelog-hr {
  border: 0;
  height: 1px;
  background: var(--lm-border);
  margin: 0.8em 0;
}
.lm-changelog-body code {
  padding: 0.15em 0.35em;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.06);
  font-family: var(--lm-mono);
  font-size: 0.92em;
}
.lm-scope.lm-dark .lm-changelog-body code {
  background: rgba(255, 255, 255, 0.07);
}

/* ============================================================
   DASHBOARD WIDGET
   ============================================================ */
.lm-kpis {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}
.lm-kpis .k {
  flex: 1 1 0;
  background: var(--lm-surface);
  border: 1px solid var(--lm-border);
  border-radius: 10px;
  padding: 8px;
  text-align: center;
  color: var(--lm-text);
  box-shadow: var(--lm-shadow);
}
.lm-mini {
  width: 100%;
  border-collapse: collapse;
}
.lm-mini td {
  padding: 6px 8px;
  border-bottom: 1px solid var(--lm-border);
  color: var(--lm-text);
  font-size: 12px;
}
.lm-mini .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 5px;
}
.lm-mini .dot.ok {
  background: #16a34a;
}
.lm-mini .dot.down {
  background: #dc2626;
}
.lm-mini .right {
  text-align: right;
  color: var(--lm-muted);
}

.lm-widget-pref {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: flex-end;
  margin: 4px 0 8px;
}
.lm-widget-pref label {
  font-size: 12px;
  color: var(--lm-muted);
}
.lm-widget-pref select {
  min-width: 70px;
}
.lm-widget-pref .button {
  padding: 2px 8px;
  line-height: 1.6;
  height: auto;
}

/* ============================================================
   WHOIS MODAL
   ============================================================ */
#lm-whois-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.58);
  align-items: center;
  justify-content: center;
}
#lm-whois-modal.is-open {
  display: flex;
}

.lm-whois-dialog {
  background: var(--lm-surface);
  border: 1px solid var(--lm-border);
  border-radius: 18px;
  padding: 26px 30px;
  max-width: 560px;
  width: 95%;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
  position: relative;
  max-height: 82vh;
  overflow-y: auto;
}
.lm-whois-dialog h3 {
  margin: 0 0 18px;
  font-size: 15px;
  font-weight: 700;
  color: var(--lm-text);
  font-family: var(--lm-mono);
  letter-spacing: 0.02em;
}
.lm-whois-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: var(--lm-muted);
  line-height: 1;
  padding: 5px;
  border-radius: 6px;
  transition: background 0.12s;
}
.lm-whois-close:hover {
  background: rgba(0, 0, 0, 0.07);
}

.lm-whois-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}
.lm-whois-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--lm-border);
  color: var(--lm-text);
  vertical-align: top;
  line-height: 1.5;
}
.lm-whois-table td:first-child {
  font-weight: 700;
  color: var(--lm-muted);
  width: 140px;
  white-space: nowrap;
  font-family: var(--lm-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.lm-whois-table td:last-child {
  font-family: var(--lm-mono);
  font-size: 12px;
  word-break: break-all;
}

/* Raw WHOIS textarea */
.lm-whois-raw {
  margin-top: 14px;
  padding: 10px 14px;
  background: color-mix(in srgb, var(--lm-surface) 85%, #000 15%);
  border-radius: 8px;
  font-family: var(--lm-mono);
  font-size: 11px;
  line-height: 1.55;
  max-height: 200px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-all;
  color: var(--lm-muted);
  border: 1px solid var(--lm-border);
}
.lm-whois-raw-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--lm-muted);
  font-family: var(--lm-mono);
  margin: 14px 0 4px;
}

/* Dark modal */
.lm-scope.lm-dark .lm-whois-dialog {
  background: #0d1219;
  border-color: #1e2a38;
}
.lm-scope.lm-dark .lm-whois-raw {
  background: rgba(255, 255, 255, 0.04);
}

/* Loading spinner */
.lm-whois-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--lm-muted);
  font-family: var(--lm-mono);
  font-size: 13px;
  padding: 10px 0;
}
.lm-whois-loading::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid var(--lm-border);
  border-top-color: var(--lm-accent);
  border-radius: 50%;
  animation: lm-spin 0.7s linear infinite;
  flex-shrink: 0;
}
@keyframes lm-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ============================================================
   DRAG HANDLE
   ============================================================ */
.lm-drag-handle {
  cursor: grab;
  color: var(--lm-muted);
  opacity: 0.42;
  transition:
    opacity 0.15s,
    background 0.15s;
  touch-action: none;
  padding: 3px 2px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  user-select: none;
}
.lm-drag-handle:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.06);
}
.lm-drag-handle:active {
  cursor: grabbing;
  opacity: 1;
}
.is-pinned .lm-drag-handle {
  cursor: not-allowed;
  opacity: 0.15;
  pointer-events: none;
}

/* ============================================================
   PIN BUTTON
   ============================================================ */
.lm-pin-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 5px;
  border-radius: 6px;
  color: var(--lm-muted);
  transition:
    color 0.15s,
    background 0.15s;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
}
.lm-pin-btn:hover {
  background: rgba(0, 0, 0, 0.07);
  color: var(--lm-text);
}
.lm-pin-btn.is-pinned {
  color: #f59e0b;
}
.lm-pin-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--lm-mono);
}

/* ============================================================
   INLINE ACTIONS (export/import row)
   ============================================================ */
.lm-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet: stack grid */
@media (max-width: 1280px) {
  .lm-grid {
    grid-template-columns: 1fr;
  }
}

/* Fluid card columns at mid-sizes */
@media (min-width: 600px) and (max-width: 900px) {
  .lm-cards {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}

/* Full-width inputs at tablet */
@media (max-width: 1280px) {
  .lm-scope input.regular-text,
  .lm-scope input[type="text"],
  .lm-scope input[type="url"],
  .lm-scope input[type="email"],
  .lm-scope select,
  .lm-scope textarea {
    width: 100% !important;
    max-width: none !important;
  }
  .lm-row {
    flex-direction: column;
    align-items: stretch;
  }
  .lm-row .button {
    align-self: flex-start;
  }
}

/* Mobile card header: wrap URL to 2nd row */
@media (max-width: 480px) {
  .lm-card-item__head {
    grid-template-columns: 18px 20px 1fr auto;
    grid-template-rows: auto auto;
    row-gap: 6px;
  }
  .lm-card-url {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .lm-card-state {
    grid-column: 3;
    grid-row: 1;
  }
  .lm-pin-btn {
    grid-column: 4;
    grid-row: 1;
  }
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.lm-card-item.lm-empty {
  justify-content: center;
  align-items: center;
  min-height: 80px;
  color: var(--lm-muted);
  font-style: italic;
  border-style: dashed;
}
.lm-card-item.lm-empty p {
  margin: 0;
}
