:root {
  color-scheme: light;
  font-family: Arial, sans-serif;
  --bg: #f5f4ef;
  --panel: #ffffff;
  --muted: #666;
  --border: #ddd;
  --brand: #d71920;
  --ink: #111;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}

.auth-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #171717;
}

.auth-panel {
  width: min(440px, 100%);
}

.auth-panel h1 {
  margin-top: 0;
  font: 700 28px Georgia, serif;
}

.team-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.team-heading h2,
.team-section-heading h3,
.team-active-site h3 {
  margin-bottom: 4px;
}

.team-eyebrow {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.team-active-site,
.team-section-heading,
.team-site-choice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.team-active-site,
.team-sites,
.team-administration {
  box-shadow: none;
}

.team-administration {
  margin-top: 20px;
}

.team-members {
  margin-top: 24px;
}

.team-section-heading {
  margin-bottom: 12px;
}

.team-section-heading h3,
.team-section-heading p {
  margin-top: 0;
}

.team-site-list {
  display: grid;
  gap: 8px;
  margin: 16px 0 20px;
}

.team-site-choice {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  text-align: left;
}

.team-site-choice:hover {
  border-color: #999;
  background: #fafafa;
}

.team-site-choice.active {
  border-color: var(--brand);
  box-shadow: inset 4px 0 0 var(--brand);
}

.team-site-choice span:first-child {
  display: grid;
  gap: 3px;
}

.team-site-choice small,
.team-role {
  color: var(--muted);
  font-size: 12px;
}

.team-site-edit,
.team-site-create {
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.team-site-edit h4,
.team-site-create h4 {
  margin: 0 0 12px;
}

.team-site-create {
  margin-top: 18px;
}

.team-members-table {
  width: 100%;
  border-collapse: collapse;
}

.team-members-table th,
.team-members-table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.team-members-table select,
.team-members-table button {
  min-height: 36px;
}

.category-editor-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 26px;
}

.category-editor-row {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(150px, 1fr) 90px 90px auto;
  gap: 10px;
  align-items: end;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.category-enabled {
  min-height: 42px;
}

.category-actions {
  flex-wrap: nowrap;
}

.theme-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.theme-option {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
}

.theme-option--selected {
  border-color: var(--brand);
  background: #fff5f5;
}

.theme-option__selection {
  display: flex;
  flex: 1;
  gap: 12px;
  align-items: flex-start;
  min-width: 0;
  cursor: pointer;
}

.theme-option input {
  margin-top: 3px;
}

.theme-option span {
  display: grid;
  gap: 5px;
}

.theme-option small {
  color: var(--muted);
  line-height: 1.4;
}

.theme-option__protected {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.theme-option__delete {
  flex: 0 0 auto;
}

@media (max-width: 760px) {
  .theme-options {
    grid-template-columns: 1fr;
  }
}

.category-create {
  padding-top: 4px;
  border-top: 2px solid var(--ink);
}

.management-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.management-heading h2,
.management-heading p {
  margin-top: 0;
}

.page-editor-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.page-editor-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(160px, 1fr) 90px auto;
  gap: 10px;
  align-items: end;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.page-actions {
  flex-wrap: nowrap;
}

.media-upload-button {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.media-upload-button input {
  display: none;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.media-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fafafa;
}

.media-card__preview {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  background: #ececec;
}

.media-card__preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.media-card__preview--empty {
  color: var(--muted);
  font-size: 13px;
}

.article-media-field {
  display: grid;
  gap: 8px;
}

.article-media-preview {
  display: grid;
  place-items: center;
  width: min(100%, 360px);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ececec;
}

.article-media-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.article-media-upload {
  width: max-content;
}

.media-card__name {
  overflow-wrap: anywhere;
  font-weight: 700;
}

.media-card code,
.media-orphan-row code {
  overflow-wrap: anywhere;
  color: var(--muted);
}

.media-orphans {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 2px solid var(--ink);
}

.media-orphan-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.media-orphan-row div {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.app-notice-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(17, 17, 17, 0.32);
  z-index: 1000;
}

.app-notice {
  min-width: 320px;
  max-width: min(90vw, 560px);
  padding: 18px 22px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14);
  text-align: center;
  font-weight: 700;
}

.app-notice--progress {
  text-align: left;
}

.app-notice-title {
  margin-bottom: 12px;
  font-size: 18px;
}

.app-notice-caption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}

.progress-bar {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #f0efea;
  border: 1px solid var(--border);
}

.progress-bar__fill {
  width: 100%;
  height: 100%;
  transform-origin: left center;
  background: linear-gradient(90deg, #d71920 0%, #ef5350 100%);
  animation: build-progress 5s linear forwards;
}

@keyframes build-progress {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

button, input, select, textarea {
  font: inherit;
}

.shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
}

.sidebar {
  border-right: 1px solid var(--border);
  background: #111;
  color: #fff;
  padding: 20px;
}

.sidebar-header {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}

.sidebar h1 {
  margin: 0 0 18px;
  font: 700 22px Georgia, serif;
}

.sidebar-toggle {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border: 1px solid #444;
  border-radius: 8px;
  background: #1d1d1d;
  color: #fff;
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
}

.sidebar-toggle:hover {
  background: #2b2b2b;
}

.shell.sidebar-collapsed {
  grid-template-columns: 64px 1fr;
}

.sidebar-collapsed .sidebar {
  padding: 14px;
}

.sidebar-collapsed .sidebar h1,
.sidebar-collapsed .sidebar-nav {
  display: none;
}

.nav-group {
  margin-bottom: 22px;
}

.nav-group h2 {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #bbb;
}

.nav-group-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.nav-group-heading h2 {
  margin: 0;
}

.nav-group button,
.nav-group a,
.toolbar button,
.actions button,
.primary {
  cursor: pointer;
}

.nav-group button,
.nav-group a {
  width: 100%;
  display: block;
  text-align: left;
  margin: 4px 0;
  padding: 10px 12px;
  border: 0;
  background: #1d1d1d;
  color: #fff;
  border-radius: 8px;
}

.nav-group button.active {
  background: var(--brand);
}

.nav-group .nav-group-settings {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 0;
  border: 1px solid #444;
  border-radius: 6px;
  background: #1d1d1d;
  color: #ddd;
  font-size: 15px;
  line-height: 1;
}

.nav-group .nav-group-settings:hover,
.nav-group .nav-group-settings.active {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.nav-action-row {
  display: flex;
  gap: 6px;
  align-items: stretch;
}

.nav-group .nav-action-main {
  flex: 1 1 auto;
  width: auto;
}

.nav-group .nav-action-icon {
  flex: 0 0 40px;
  width: 40px;
  padding: 0;
  display: grid;
  place-items: center;
  font-size: 21px;
  text-align: center;
}

.publish-profiles {
  display: grid;
  gap: 6px;
}

.publish-profiles button {
  width: 100%;
  border: 1px solid var(--border);
  background: #f7f7f7;
  color: var(--ink);
  text-align: left;
  padding: 10px 12px;
  border-radius: 8px;
}

.publish-profiles button.active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.publish-profiles button:hover {
  background: #ececec;
}

.content {
  padding: 20px;
}

.topbar {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding-right: 56px;
  margin-bottom: 18px;
}

.topbar .meta {
  color: var(--muted);
  font-size: 13px;
}

.topbar .actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.settings-launcher-backdrop {
  position: fixed;
  inset: 0;
  z-index: 89;
  background: transparent;
}

.settings-launcher {
  position: fixed;
  top: 16px;
  right: 18px;
  z-index: 90;
}

.settings-launcher__toggle {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .12);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.settings-launcher__toggle:hover,
.settings-launcher__toggle.active {
  border-color: var(--brand);
  color: var(--brand);
}

.settings-launcher__panel {
  position: absolute;
  top: 52px;
  right: 0;
  width: 230px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 14px 36px rgba(0, 0, 0, .18);
}

.settings-launcher__heading {
  padding: 8px 10px 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.settings-launcher__panel button {
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.settings-launcher__panel button:hover {
  background: #f1f1ef;
}

.settings-launcher__panel button.active {
  background: var(--brand);
  color: #fff;
}

.primary,
.toolbar button,
.actions button {
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--ink);
  border-radius: 8px;
  padding: 10px 12px;
  -webkit-appearance: none;
  appearance: none;
}

.primary {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

button:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 18px;
}

.panel-header {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}

.panel-toggle {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
}

.article-editor-grid.article-list-collapsed {
  grid-template-columns: 52px minmax(0, 1fr);
}

.article-editor-grid.article-editor-collapsed {
  grid-template-columns: minmax(0, 1fr) 52px;
}

.article-list-collapsed .article-list-panel {
  padding: 8px;
}

.article-list-collapsed .article-list-panel h2,
.article-list-collapsed .article-list-content {
  display: none;
}

.article-editor-collapsed .article-editor-panel {
  padding: 8px;
}

.article-editor-collapsed .article-editor-panel h2,
.article-editor-collapsed .article-editor-content {
  display: none;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 1px 0 rgba(0,0,0,.02);
}

.panel h2 {
  margin: 0 0 12px;
  font: 700 18px Georgia, serif;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.stat {
  background: #faf9f4;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
}

.stat b {
  display: block;
  font-size: 24px;
}

.article-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.article-table th,
.article-table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.article-table th {
  padding: 0;
}

.article-sort {
  display: inline-flex;
  width: 100%;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 8px;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-weight: 700;
  text-align: left;
}

.article-sort:hover,
.article-sort.active {
  background: #f4f3ee;
}

.article-sort__indicator {
  color: var(--muted);
  font-size: 12px;
}

.article-table tr:hover {
  background: #fafafa;
}

.editor {
  display: grid;
  gap: 12px;
}

.editor .row {
  display: grid;
  gap: 8px;
}

.editor .two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.editor input,
.editor select,
.editor textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
}

.editor textarea {
  min-height: 180px;
  resize: vertical;
}

.editor input.article-field--valid,
.editor select.article-field--valid {
  border-color: #7bc88f;
  background: #edf9f0;
  box-shadow: 0 0 0 1px rgba(10, 122, 47, 0.08);
}

.editor input.article-field--invalid,
.editor select.article-field--invalid {
  border-color: #df8d8d;
  background: #fff0f0;
  box-shadow: 0 0 0 1px rgba(166, 0, 0, 0.08);
}

.editor input.article-field--valid:focus,
.editor select.article-field--valid:focus {
  outline-color: #0a7a2f;
}

.editor input.article-field--invalid:focus,
.editor select.article-field--invalid:focus {
  outline-color: #a60000;
}

.publish-htaccess textarea {
  min-height: 420px;
  font-family: Consolas, "Courier New", monospace;
  line-height: 1.5;
}

.publish-htaccess__editor {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.editor-label {
  font-weight: 700;
}

.editor-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.word-count {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.word-count--valid {
  color: #0a7a2f;
}

.word-count--invalid {
  color: #a60000;
}

.field-label-with-help {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.character-count {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.character-count--invalid {
  color: #a60000;
}

.character-count--valid {
  color: #0a7a2f;
}

.character-count--ideal {
  color: #06752b;
  font-weight: 800;
}

.field-help {
  position: relative;
  display: inline-block;
}

.field-help summary {
  list-style: none;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #f7f7f7;
  color: var(--muted);
  cursor: pointer;
  font-weight: 700;
}

.field-help summary::-webkit-details-marker {
  display: none;
}

.field-help-popover {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 20;
  width: 260px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  font-size: 13px;
  line-height: 1.45;
}

.checkbox-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.checkbox-row--inline {
  align-self: end;
  min-height: 44px;
}

.checkbox-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px 18px;
  margin-top: 16px;
}

.social-grid .checkbox-row {
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #faf9f5;
}

.editor-help {
  color: var(--muted);
  font-size: 13px;
}

.editor-mode-switch {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.editor-mode-switch button {
  border: 1px solid var(--border);
  background: #f7f7f7;
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
}

.editor-mode-switch button.active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.wysiwyg-shell {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.wysiwyg-shell .toastui-editor-defaultUI {
  border: 0;
}

.wysiwyg-shell .toastui-editor-toolbar {
  border-bottom-color: var(--border);
}

.wysiwyg-shell .toastui-editor-contents,
.wysiwyg-shell .toastui-editor-md-container,
.wysiwyg-shell .toastui-editor-ww-container {
  font-size: 15px;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.search-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, auto) auto;
  gap: 8px;
  align-items: center;
}

.status {
  font-size: 13px;
  color: var(--muted);
}

.status.ok {
  color: #0a7a2f;
}

.status.warn {
  color: #8c5a00;
}

.status.err {
  color: #a60000;
}

.push-dialog-overlay {
  padding: 24px;
}

.push-dialog {
  width: min(1100px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 18px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.ai-generation-dialog {
  width: min(1000px, 100%);
}

.ai-generation-theme {
  min-height: 100px;
}

.ai-generation-prompt {
  min-height: 420px;
}

.ai-generation-result {
  padding: 14px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.ai-generation-result p {
  margin: 8px 0 14px;
  color: var(--muted);
}

.push-dialog__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.push-dialog__header h2 {
  margin: 0 0 8px;
  font: 700 22px Georgia, serif;
}

.push-dialog__close {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #f7f7f7;
  font-size: 28px;
  line-height: 1;
}

.push-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
}

.push-summary div {
  display: grid;
  gap: 4px;
}

.push-summary strong {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.push-path-list {
  max-height: 320px;
  overflow: auto;
  padding-right: 6px;
}

.push-path-list ul,
.push-tree ul {
  margin: 0;
  padding-left: 20px;
}

.push-path-list li,
.push-tree li {
  margin: 6px 0;
}

.push-check-list {
  max-height: 240px;
  overflow: auto;
  margin: 10px 0 0;
  padding-left: 20px;
}

.push-check-list li {
  margin: 8px 0;
}

.push-check-list li.err {
  color: #9f1d1d;
}

.push-check-list li.warn {
  color: #8a5a00;
}

.push-check-list button {
  margin-left: 8px;
}

/* Analytics Dashboard Styles */
.analytics-dashboard {
  padding: 0;
}

.analytics-toolbar {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 18px;
}

.analytics-toolbar label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #333;
}

.analytics-toolbar input,
.analytics-toolbar select {
  width: 100%;
}

.analytics-search {
  min-width: 0;
}

.analytics-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid #FF6B35;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.stat-label {
  font-size: 12px;
  color: #666;
  font-weight: bold;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-value {
  font-size: 36px;
  font-weight: bold;
  color: #111;
}

.analytics-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.chart-section {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.chart-section h3 {
  margin-top: 0;
  margin-bottom: 16px;
  color: #111;
  font-size: 16px;
}

.popular-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
  align-items: center;
}

.popular-item:last-child {
  border-bottom: none;
}

.popular-item .title {
  font-size: 14px;
  color: #333;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-right: 12px;
}

.popular-item .count {
  font-weight: bold;
  color: #FF6B35;
  font-size: 14px;
  white-space: nowrap;
}

.analytics-table {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-bottom: 16px;
  overflow-x: auto;
}

.analytics-table h3 {
  margin-top: 0;
  margin-bottom: 16px;
  color: #111;
  font-size: 16px;
}

.analytics-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.analytics-table th {
  background: #f5f5f5;
  padding: 12px;
  text-align: left;
  font-weight: bold;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid #ddd;
  color: #666;
}

.analytics-table td {
  padding: 12px;
  border-bottom: 1px solid #f0f0f0;
}

.analytics-table tr:hover {
  background: #fafafa;
}

@media (max-width: 1200px) {
  .shell { grid-template-columns: 1fr; }
  .shell.sidebar-collapsed { grid-template-columns: 64px 1fr; }
  .sidebar { border-right: 0; border-bottom: 1px solid var(--border); }
  .grid { grid-template-columns: 1fr; }
  .article-editor-grid.article-list-collapsed { grid-template-columns: 52px minmax(0, 1fr); }
  .article-editor-grid.article-editor-collapsed { grid-template-columns: minmax(0, 1fr) 52px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .analytics-container { grid-template-columns: 1fr; }
  .analytics-toolbar { grid-template-columns: 1fr; }
  .analytics-actions { justify-content: flex-start; flex-wrap: wrap; }
  .push-summary { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .shell.sidebar-collapsed { grid-template-columns: 1fr; }
  .sidebar-collapsed .sidebar { min-height: 64px; }
  .team-heading,
  .team-active-site,
  .team-section-heading,
  .team-site-choice { align-items: stretch; flex-direction: column; }
  .team-role { align-self: flex-start; }
  .team-members { overflow-x: auto; }
  .editor .two { grid-template-columns: 1fr; }
  .search-toolbar { grid-template-columns: 1fr; }
  .article-editor-grid.article-list-collapsed { grid-template-columns: 1fr; }
  .article-editor-grid.article-editor-collapsed { grid-template-columns: 1fr; }
  .article-list-collapsed .article-list-panel { min-height: 52px; }
  .article-editor-collapsed .article-editor-panel { min-height: 52px; }
  .push-dialog-overlay { padding: 12px; }
}
