/* Feedly-inspired reader — Monitoreo de Medios */
:root {
  --fd-bg: #f7f8f3;
  --fd-surface: #ffffff;
  --fd-sidebar: #f3f4ef;
  --fd-border: #e4e6df;
  --fd-text: #1a1a1a;
  --fd-muted: #6b7280;
  --fd-accent: #2bb24c;
  --fd-accent-hover: #239a41;
  --fd-accent-soft: #e8f7ec;
  --fd-danger: #dc2626;
  --fd-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  --fd-radius: 10px;
  --fd-sidebar-w: 280px;
  --fd-sidebar-collapsed: 64px;
  --fd-topbar-h: 56px;
  --fd-font: 'DM Sans', system-ui, -apple-system, sans-serif;
  --fd-display: 'Outfit', system-ui, sans-serif;
  --fd-safe-bottom: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body.feedly-app {
  margin: 0;
  font-family: var(--fd-font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--fd-text);
  background: var(--fd-bg);
  min-height: 100dvh;
  overflow: hidden;
}

.hidden { display: none !important; }

/* ─── Shell ─── */
.feedly-shell {
  display: flex;
  height: 100dvh;
  overflow: hidden;
}

.feedly-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 40;
  opacity: 0;
  transition: opacity 0.2s;
}

.feedly-sidebar-overlay.is-open {
  display: block;
  opacity: 1;
}

.feedly-sidebar {
  flex: 0 0 var(--fd-sidebar-w);
  width: var(--fd-sidebar-w);
  background: var(--fd-sidebar);
  border-right: 1px solid var(--fd-border);
  display: flex;
  flex-direction: column;
  z-index: 50;
  transition: width 0.2s, transform 0.25s ease;
  overflow: hidden;
}

.feedly-sidebar.is-collapsed {
  flex: 0 0 var(--fd-sidebar-collapsed);
  width: var(--fd-sidebar-collapsed);
}

.feedly-sidebar-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--fd-border);
  min-height: var(--fd-topbar-h);
}

.feedly-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--fd-accent);
  color: #fff;
  font-family: var(--fd-display);
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feedly-brand-text h1 {
  margin: 0;
  font-family: var(--fd-display);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.feedly-brand-text p {
  margin: 0;
  font-size: 11px;
  color: var(--fd-muted);
}

.feedly-sidebar.is-collapsed .feedly-brand-text,
.feedly-sidebar.is-collapsed .feedly-sidebar-section-title,
.feedly-sidebar.is-collapsed .feedly-nav-label,
.feedly-sidebar.is-collapsed .feedly-source-search,
.feedly-sidebar.is-collapsed .feedly-sources-list,
.feedly-sidebar.is-collapsed .feedly-sidebar-foot span {
  display: none;
}

.feedly-btn-icon {
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  color: var(--fd-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feedly-btn-icon:hover { background: var(--fd-border); color: var(--fd-text); }

.feedly-sidebar-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px 10px 16px;
  -webkit-overflow-scrolling: touch;
}

.feedly-sidebar-section-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fd-muted);
  padding: 12px 8px 6px;
  margin: 0;
}

.feedly-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  background: transparent;
  border-radius: var(--fd-radius);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--fd-text);
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
}

.feedly-nav-item:hover { background: rgba(0, 0, 0, 0.05); }

.feedly-nav-item.is-active {
  background: var(--fd-accent-soft);
  color: var(--fd-accent-hover);
}

.feedly-nav-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feedly-nav-icon svg { width: 18px; height: 18px; }

.feedly-nav-count {
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  color: var(--fd-muted);
  background: var(--fd-surface);
  padding: 2px 8px;
  border-radius: 99px;
}

.feedly-nav-item.is-active .feedly-nav-count {
  background: var(--fd-accent);
  color: #fff;
}

.feedly-platform-instagram.is-active { color: #c13584; background: #fce7f3; }
.feedly-platform-youtube.is-active { color: #ff0000; background: #fee2e2; }
.feedly-platform-x.is-active { color: #000; background: #f3f4f6; }
.feedly-platform-rss.is-active { color: #ea580c; background: #ffedd5; }

.feedly-source-search {
  width: 100%;
  margin: 8px 0;
  padding: 10px 12px;
  border: 1px solid var(--fd-border);
  border-radius: var(--fd-radius);
  font: inherit;
  font-size: 14px;
  background: var(--fd-surface);
}

.feedly-source-search:focus {
  outline: 2px solid var(--fd-accent);
  outline-offset: 0;
  border-color: var(--fd-accent);
}

.feedly-sources-list { display: flex; flex-direction: column; gap: 2px; }

.feedly-sidebar-foot {
  padding: 12px;
  border-top: 1px solid var(--fd-border);
}

.feedly-sidebar-foot .feedly-nav-item { color: var(--fd-muted); }

/* ─── Main ─── */
.feedly-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--fd-bg);
}

.feedly-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  min-height: var(--fd-topbar-h);
  background: var(--fd-surface);
  border-bottom: 1px solid var(--fd-border);
  flex-shrink: 0;
}

.feedly-search-wrap {
  flex: 1;
  max-width: 520px;
  position: relative;
}

.feedly-search-wrap svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--fd-muted);
  pointer-events: none;
}

.feedly-search {
  width: 100%;
  padding: 10px 12px 10px 40px;
  border: 1px solid var(--fd-border);
  border-radius: 99px;
  font: inherit;
  font-size: 14px;
  background: var(--fd-bg);
}

.feedly-search:focus {
  outline: none;
  border-color: var(--fd-accent);
  background: var(--fd-surface);
  box-shadow: 0 0 0 3px var(--fd-accent-soft);
}

.feedly-view-toggle {
  display: flex;
  background: var(--fd-bg);
  border: 1px solid var(--fd-border);
  border-radius: 8px;
  padding: 2px;
}

.feedly-view-btn {
  padding: 6px 10px;
  border: none;
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  color: var(--fd-muted);
  font-size: 12px;
  font-weight: 600;
}

.feedly-view-btn.is-active {
  background: var(--fd-surface);
  color: var(--fd-text);
  box-shadow: var(--fd-shadow);
}

.feedly-btn {
  padding: 8px 14px;
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--fd-border);
  background: var(--fd-surface);
  color: var(--fd-text);
}

.feedly-btn:hover { background: var(--fd-bg); }

.feedly-btn--primary {
  background: var(--fd-accent);
  border-color: var(--fd-accent);
  color: #fff;
}

.feedly-btn--primary:hover { background: var(--fd-accent-hover); }

.feedly-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 16px 20px 32px;
}

.feedly-feed-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 16px;
}

.feedly-feed-meta h2 {
  margin: 0;
  font-family: var(--fd-display);
  font-size: 22px;
  font-weight: 700;
}

.feedly-feed-meta p {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--fd-muted);
}

.feedly-result-count {
  margin: 6px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--fd-text);
}

.feedly-time-toolbar {
  margin-bottom: 16px;
}

.feedly-time-segments {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.feedly-time-btn {
  padding: 6px 12px;
  border: 1px solid var(--fd-border);
  border-radius: 99px;
  background: var(--fd-surface);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--fd-muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.feedly-time-btn:hover {
  border-color: var(--fd-accent);
  color: var(--fd-text);
}

.feedly-time-btn.is-active {
  background: var(--fd-accent);
  border-color: var(--fd-accent);
  color: #fff;
}

.feedly-time-select {
  display: none;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--fd-border);
  border-radius: var(--fd-radius);
  font: inherit;
  font-size: 14px;
  background: var(--fd-surface);
  color: var(--fd-text);
}

.feed-skeleton {
  margin-bottom: 16px;
}

.sk-wrap { pointer-events: none; }

.sk-item {
  background: var(--fd-surface);
  border: 1px solid var(--fd-border);
  border-radius: var(--fd-radius);
  overflow: hidden;
}

.sk-item--list {
  display: flex;
  gap: 12px;
  padding: 12px;
  margin-bottom: 8px;
}

.sk-thumb {
  flex: 0 0 72px;
  height: 72px;
  border-radius: 8px;
  background: linear-gradient(90deg, #eceee8 25%, #f5f6f2 50%, #eceee8 75%);
  background-size: 200% 100%;
  animation: sk-shimmer 1.2s ease-in-out infinite;
}

.sk-item--card,
.sk-item--mag {
  margin-bottom: 12px;
}

.sk-card-media,
.sk-mag-media {
  height: 140px;
  background: linear-gradient(90deg, #eceee8 25%, #f5f6f2 50%, #eceee8 75%);
  background-size: 200% 100%;
  animation: sk-shimmer 1.2s ease-in-out infinite;
}

.sk-mag-media { height: 180px; }

.sk-lines {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.sk-line {
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, #eceee8 25%, #f5f6f2 50%, #eceee8 75%);
  background-size: 200% 100%;
  animation: sk-shimmer 1.2s ease-in-out infinite;
}

.sk-line--short { width: 55%; }

@keyframes sk-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.feedly-empty-state {
  max-width: 420px;
  margin: 0 auto;
}

.feedly-empty-state p {
  margin: 0 0 8px;
  font-size: 15px;
  color: var(--fd-text);
}

.feedly-empty-state p:first-child {
  font-family: var(--fd-display);
  font-size: 18px;
  font-weight: 700;
}

.feedly-empty-hint {
  font-size: 13px !important;
  color: var(--fd-muted) !important;
}

.feedly-feed-meta-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.feedly-monitoring-window {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  color: var(--fd-muted);
  letter-spacing: 0.02em;
  text-align: right;
}

.feedly-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--fd-accent-hover);
  background: var(--fd-accent-soft);
  padding: 4px 10px;
  border-radius: 99px;
}

.feedly-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--fd-accent);
  animation: fd-pulse 2s infinite;
}

@keyframes fd-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ─── Empty / loader ─── */
.feedly-empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--fd-muted);
}

.feedly-empty strong { color: var(--fd-text); }

.feedly-loader {
  text-align: center;
  padding: 24px;
  color: var(--fd-muted);
  font-size: 14px;
}

.feedly-sentinel { height: 1px; }

/* ─── List view ─── */
.feed-list { display: flex; flex-direction: column; gap: 0; }

.feed-list-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 12px;
  border-bottom: 1px solid var(--fd-border);
  background: var(--fd-surface);
  transition: background 0.12s;
  color: inherit;
}

.feed-list-item .feed-list-body {
  flex: 1;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

.feed-list-item .feed-list-body:hover .feed-list-title {
  color: var(--fd-accent-hover);
}

.feed-list-item:first-child { border-radius: var(--fd-radius) var(--fd-radius) 0 0; }
.feed-list-item:last-child { border-radius: 0 0 var(--fd-radius) var(--fd-radius); border-bottom: none; }

.feed-list-item:hover { background: #fafbf8; }

.feed-list-thumb {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--fd-border);
}

.feed-media-trigger {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  color: inherit;
}

.feed-media-trigger:focus-visible {
  outline: 2px solid var(--fd-accent);
  outline-offset: 2px;
}

body.feedly-modal-open {
  overflow: hidden;
}

.feed-media-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.feed-media-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.feed-media-modal-panel {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  max-height: 90vh;
  background: #000;
  border-radius: var(--fd-radius);
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

.feed-media-modal-close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.feed-media-modal-body {
  min-height: 200px;
  background: #000;
}

.feed-media-modal-iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  min-height: 280px;
  border: none;
  background: #000;
}

.feed-media-modal-iframe--ig {
  min-height: 480px;
  max-height: 80vh;
}

.feed-media-modal-iframe--x {
  min-height: 420px;
}

.feed-media-modal-video {
  display: block;
  width: 100%;
  max-height: 80vh;
  background: #000;
}

.feed-media-cover--video .feed-media-video {
  object-fit: cover;
}

.feed-media-img--error {
  opacity: 0;
}

.feed-media-modal-fallback {
  padding: 32px 24px;
  text-align: center;
  color: #fff;
  background: var(--fd-text);
}

.feed-media-modal-fallback p {
  margin: 0 0 16px;
}

.feed-list-title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.feed-list-meta {
  font-size: 12px;
  color: var(--fd-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

/* ─── Cards view ─── */
.feed-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.feed-card {
  background: var(--fd-surface);
  border: 1px solid var(--fd-border);
  border-radius: var(--fd-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.15s, transform 0.15s;
}

.feed-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.feed-card-media {
  aspect-ratio: 16/10;
  background: #e5e7eb;
  overflow: hidden;
  position: relative;
}

.feed-card-media .feed-media-link,
.feed-mag-media .feed-media-link {
  display: block;
  width: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.feed-media-cover,
.feed-media-slot {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100%;
}

.feed-media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #e5e7eb;
}

.feed-media-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  background: linear-gradient(transparent 40%, rgba(0, 0, 0, 0.35));
}

.feed-media-play-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.feed-media-play-btn svg {
  width: 26px;
  height: 26px;
  margin-left: 3px;
}

.feed-media-placeholder {
  width: 100%;
  height: 100%;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feed-media-placeholder--list {
  min-height: 72px;
}

.feed-media-placeholder-icon {
  width: 48px;
  height: 48px;
  opacity: 0.9;
}

.feed-media-placeholder--list .feed-media-placeholder-icon {
  width: 32px;
  height: 32px;
}

.feed-media-placeholder.platform-instagram {
  background: linear-gradient(145deg, #f9ce34, #ee2a7b 55%, #6228d7);
  color: #fff;
}

.feed-media-placeholder.platform-youtube {
  background: linear-gradient(145deg, #ff0000, #cc0000);
  color: #fff;
}

.feed-media-placeholder.platform-x {
  background: linear-gradient(145deg, #1a1a1a, #3d3d3d);
  color: #fff;
}

.feed-media-placeholder.platform-rss {
  background: linear-gradient(145deg, #ea580c, #f97316);
  color: #fff;
}

.feed-list-thumb-wrap {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  background: #e5e7eb;
}

.feed-list-thumb-wrap .feed-media-slot,
.feed-list-thumb-wrap .feed-media-cover,
.feed-list-thumb-wrap .feed-media-placeholder {
  min-height: 72px;
  height: 72px;
}

.feed-list-thumb-wrap .feed-media-img {
  width: 72px;
  height: 72px;
}

.feed-list-thumb-wrap .feed-media-play-btn {
  width: 36px;
  height: 36px;
}

.feed-list-thumb-wrap .feed-media-play-btn svg {
  width: 18px;
  height: 18px;
}

.feed-card-body { padding: 14px 16px; flex: 1; display: flex; flex-direction: column; }

.feed-card-source {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--fd-muted);
}

.feed-card-title {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.feed-card-time { font-size: 12px; color: var(--fd-muted); }

.feed-card-actions {
  display: flex;
  gap: 6px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--fd-border);
}

/* ─── Magazine view ─── */
.feed-magazine { display: flex; flex-direction: column; gap: 20px; }

.feed-mag-item {
  background: var(--fd-surface);
  border: 1px solid var(--fd-border);
  border-radius: var(--fd-radius);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  min-height: 200px;
}

.feed-mag-media {
  background: #e5e7eb;
  min-height: 180px;
  position: relative;
  overflow: hidden;
}

.feed-mag-media .feed-media-cover,
.feed-mag-media .feed-media-placeholder {
  min-height: 180px;
}

.feed-mag-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feed-mag-body h3 {
  margin: 0 0 12px;
  font-family: var(--fd-display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

.feed-mag-summary {
  margin: 0 0 16px;
  color: var(--fd-muted);
  font-size: 15px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ─── Shared post bits ─── */
.fd-platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.fd-platform-badge svg { width: 14px; height: 14px; }

.platform-instagram { color: #c13584; }
.platform-youtube { color: #ff0000; }
.platform-x { color: #000; }
.platform-rss { color: #ea580c; }

.feed-bookmark-btn {
  padding: 6px 10px;
  border: 1px solid var(--fd-border);
  border-radius: 6px;
  background: var(--fd-surface);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  color: var(--fd-muted);
}

.feed-bookmark-btn.is-fav { color: #d97706; border-color: #fcd34d; background: #fffbeb; }
.feed-bookmark-btn.is-later { color: #2563eb; border-color: #93c5fd; background: #eff6ff; }

.feed-link-btn {
  font-size: 13px;
  font-weight: 600;
  color: var(--fd-accent-hover);
  text-decoration: none;
  margin-left: auto;
}

.feed-link-btn:hover { text-decoration: underline; }

/* ─── Admin panel ─── */
.feedly-admin {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--fd-bg);
  overflow-y: auto;
  padding: 20px;
  padding-bottom: calc(20px + var(--fd-safe-bottom));
}

.feedly-admin-inner { max-width: 1100px; margin: 0 auto; }

.feedly-admin-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}

.feedly-admin-head h2 {
  margin: 0;
  font-family: var(--fd-display);
  font-size: 24px;
}

.feedly-admin-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 24px;
}

@media (max-width: 900px) {
  .feedly-admin-grid { grid-template-columns: 1fr; }
}

.feedly-card {
  background: var(--fd-surface);
  border: 1px solid var(--fd-border);
  border-radius: var(--fd-radius);
  padding: 20px;
  box-shadow: var(--fd-shadow);
}

.feedly-form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--fd-text);
}

.feedly-form-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--fd-border);
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  margin-bottom: 14px;
}

.feedly-form-input:focus {
  outline: 2px solid var(--fd-accent);
  border-color: var(--fd-accent);
}

.feedly-fieldset {
  border: 1px solid var(--fd-border);
  border-radius: var(--fd-radius);
  padding: 16px;
  margin-bottom: 16px;
}

.feedly-fieldset legend {
  font-size: 13px;
  font-weight: 700;
  padding: 0 6px;
}

.feedly-feedback {
  font-size: 14px;
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 12px;
}

.feedly-feedback.is-error { background: #fef2f2; color: var(--fd-danger); border: 1px solid #fecaca; }
.feedly-feedback.is-ok { background: var(--fd-accent-soft); color: var(--fd-accent-hover); border: 1px solid #bbf7d0; }

.feedly-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.feedly-table th,
.feedly-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--fd-border);
}

.feedly-table th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--fd-muted);
  background: var(--fd-bg);
}

.feedly-table-actions { display: flex; gap: 6px; justify-content: flex-end; }

.feedly-table-actions button {
  padding: 6px;
  border: 1px solid var(--fd-border);
  border-radius: 6px;
  background: var(--fd-surface);
  cursor: pointer;
}

.feedly-table-actions button:hover { background: var(--fd-bg); }

/* ─── Mobile ─── */
@media (max-width: 768px) {
  .feedly-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    transform: translateX(-100%);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
  }

  .feedly-sidebar.is-mobile-open {
    transform: translateX(0);
  }

  .feedly-sidebar.is-collapsed {
    width: var(--fd-sidebar-w);
    flex: 0 0 var(--fd-sidebar-w);
  }

  .feedly-sidebar.is-collapsed .feedly-brand-text,
  .feedly-sidebar.is-collapsed .feedly-nav-label {
    display: block;
  }

  .feedly-view-toggle .feedly-view-label { display: none; }

  .feedly-content { padding: 12px 14px 24px; }

  .feedly-feed-meta-aside {
    align-items: flex-start;
    width: 100%;
  }

  .feedly-monitoring-window { text-align: left; }

  .feedly-time-segments { display: none; }
  .feedly-time-select { display: block; }

  .feed-cards { grid-template-columns: 1fr; gap: 12px; }

  .feed-mag-item { grid-template-columns: 1fr; }

  .feed-mag-media { min-height: 200px; }

  .feed-list-item { padding: 16px 14px; min-height: 56px; }

  .feed-bookmark-btn,
  .feedly-btn { min-height: 44px; padding: 10px 14px; }

  .feedly-topbar { padding: 8px 12px; gap: 8px; }
}

@media (min-width: 769px) {
  #btn-menu-mobile { display: none; }
}
