/* ============================================================
   Client dashboard — dark app shell + editor chrome
   ============================================================ */

body.dash, body.editor-page, body.login-page { background: var(--bg); color: var(--text); }
body.dash { display: flex; min-height: 100vh; }

/* ------------------------------------------------ sidebar */
.dash-side {
  width: 250px;
  flex-shrink: 0;
  background: #08080C;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 22px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.dash-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 4px 8px 22px; font-family: var(--font-display); font-weight: 700; font-size: 16.5px; }
.dash-brand__img { height: 23px; width: auto; display: block; }
.dash-brand__img--lg { height: 34px; margin: 0 auto; display: block; }
.dash-brand__cap { font-family: var(--font-body); font-weight: 500; font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }
.dash-brand small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 2px; }
.dash-brand__mark { width: 34px; height: 34px; flex-shrink: 0; display: grid; place-items: center; background: rgba(255, 90, 31, 0.12); border: 1px solid rgba(255, 154, 31, 0.35); border-radius: 10px; }
.dash-brand__mark svg { width: 18px; height: 18px; }
.dash-brand__mark--lg { width: 52px; height: 52px; border-radius: 14px; }
.dash-brand__mark--lg svg { width: 28px; height: 28px; }

.dash-nav { display: flex; flex-direction: column; gap: 4px; }
.dash-nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 13px; border-radius: 11px;
  color: var(--muted); font-size: 14.5px; font-weight: 500;
  transition: background 0.15s, color 0.15s;
}
.dash-nav a svg { width: 18px; height: 18px; flex-shrink: 0; }
.dash-nav a:hover { background: rgba(255, 255, 255, 0.05); color: var(--text); }
.dash-nav a.is-active { background: rgba(255, 90, 31, 0.12); color: #FFB020; }

.dash-side__foot { margin-top: auto; display: flex; flex-direction: column; gap: 14px; }
.dash-nav__ext {
  display: flex; align-items: center; gap: 10px;
  font-size: 13.5px; color: var(--muted); padding: 10px 13px;
  border: 1px dashed var(--line-strong); border-radius: 11px;
}
.dash-nav__ext svg { width: 15px; height: 15px; }
.dash-nav__ext:hover { color: var(--brand-2); border-color: rgba(255, 154, 31, 0.5); }
.dash-user { display: flex; align-items: center; gap: 10px; padding: 12px 8px 2px; border-top: 1px solid var(--line); }
.dash-user__avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--grad); color: #14140F; display: grid; place-items: center; font-weight: 700; font-size: 14px; font-family: var(--font-display); }
.dash-user strong { display: block; font-size: 13.5px; }
.dash-user small { color: var(--muted); font-size: 11.5px; }
.dash-user form { margin-left: auto; }
.dash-user button { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 6px; border-radius: 8px; }
.dash-user button:hover { color: var(--brand-2); background: rgba(255, 255, 255, 0.05); }
.dash-user button svg { width: 17px; height: 17px; display: block; }

/* ------------------------------------------------ main area */
.dash-main { flex: 1; min-width: 0; padding: 30px 36px 60px; }
.dash-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.dash-top h1 { font-size: 27px; }
.dash-top__actions { display: flex; gap: 12px; }

.dash-toast {
  padding: 13px 18px; border-radius: 12px; font-size: 14.5px; font-weight: 500;
  margin-bottom: 18px; border: 1px solid;
}
.dash-toast--ok { background: rgba(92, 231, 162, 0.08); border-color: rgba(92, 231, 162, 0.4); color: #8CF2C3; }
.dash-toast--err { background: rgba(255, 92, 92, 0.08); border-color: rgba(255, 92, 92, 0.45); color: #FF9E9E; }

/* ------------------------------------------------ stat cards */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 24px; }
.stat-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 22px 22px 18px; display: flex; flex-direction: column; gap: 6px;
}
.stat-card__label { font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); font-weight: 600; }
.stat-card strong { font-family: var(--font-display); font-size: 34px; letter-spacing: -0.02em; }
.stat-card small { color: var(--muted); font-size: 13px; }
.stat-card__live { color: #5CE7A2; font-size: 26px !important; }

/* ------------------------------------------------ panels */
.panel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 24px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; margin-bottom: 18px; }
.panel__head {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 18px 22px; border-bottom: 1px solid var(--line);
}
.panel__head h2 { font-size: 16.5px; }
.panel__head a { color: var(--brand-2); font-size: 13.5px; font-weight: 600; }
.panel__hint { color: var(--muted); font-size: 13px; }
.panel__hint code { background: rgba(255,255,255,0.06); padding: 2px 7px; border-radius: 6px; font-size: 12.5px; }
.panel__body { padding: 10px 14px 14px; }
.panel__empty { color: var(--muted); font-size: 14.5px; padding: 18px 8px; }
.panel__empty a { color: var(--brand-2); }

/* row items */
.row-item {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 10px; border-radius: 12px;
  transition: background 0.15s;
}
.row-item:hover { background: rgba(255, 255, 255, 0.04); }
.row-item__icon {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  background: rgba(255, 90, 31, 0.12); color: var(--brand-2);
  display: grid; place-items: center;
}
.row-item__icon svg { width: 18px; height: 18px; }
.row-item__icon--post { background: rgba(92, 231, 162, 0.1); color: #5CE7A2; }
.row-item__main { flex: 1; min-width: 0; }
.row-item__main strong { display: block; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-item__main small { color: var(--muted); font-size: 12.5px; }
.row-item__meta { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.row-item__cta {
  font-size: 13px; font-weight: 600; color: var(--brand-2);
  border: 1px solid rgba(255, 154, 31, 0.4); border-radius: 9px;
  padding: 6px 14px; transition: background 0.15s;
}
.row-item:hover .row-item__cta { background: rgba(255, 90, 31, 0.14); }
.row-item__del { background: none; border: 0; cursor: pointer; opacity: 0.55; font-size: 14px; }
.row-item__del:hover { opacity: 1; }

/* tables */
.panel__body--table { padding: 6px 10px 12px; }
.table-head, .table-row {
  display: grid;
  grid-template-columns: 2.2fr 1fr 0.9fr 1fr auto;
  gap: 14px; align-items: center;
  padding: 13px 12px;
}
.table-head--blog { grid-template-columns: 2.4fr 0.9fr 1fr 1fr auto; }
.table-head { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: #7A7A92; font-weight: 600; border-bottom: 1px solid var(--line); }
.table-row { border-radius: 12px; font-size: 14px; color: #C9C9DA; }
.table-row:hover { background: rgba(255, 255, 255, 0.04); }
.table-row__title { display: flex; align-items: center; gap: 13px; min-width: 0; }
.table-row__title strong { color: var(--text); font-size: 14.5px; display: block; }
.table-row__link small { color: var(--muted); font-size: 12.5px; }
.table-row__mono { font-family: ui-monospace, monospace; font-size: 13px; color: var(--muted); }
.table-row__muted { color: var(--muted); font-size: 13.5px; }
.table-row__actions { display: flex; align-items: center; gap: 10px; }
.table-row__actions form { display: inline; }

.badge {
  display: inline-block; font-size: 12px; font-weight: 700;
  padding: 5px 12px; border-radius: 999px; letter-spacing: 0.03em;
}
.badge--live { background: rgba(92, 231, 162, 0.12); color: #5CE7A2; border: 1px solid rgba(92, 231, 162, 0.4); }
.badge--draft { background: rgba(255, 255, 255, 0.06); color: var(--muted); border: 1px solid var(--line-strong); }

/* quick actions */
.quick-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.quick-actions a {
  background: var(--surface); border: 1px solid var(--line); border-radius: 15px;
  padding: 20px 20px 18px; display: flex; flex-direction: column; gap: 4px;
  transition: transform 0.18s, border-color 0.18s;
}
.quick-actions a:hover { transform: translateY(-3px); border-color: rgba(255, 154, 31, 0.45); }
.quick-actions span { font-size: 22px; margin-bottom: 6px; }
.quick-actions strong { font-size: 14.5px; font-family: var(--font-display); }
.quick-actions small { color: var(--muted); font-size: 12.5px; }

/* ------------------------------------------------ forms */
.settings-form .panel { margin-bottom: 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field > span, .field__label { font-size: 13px; font-weight: 600; color: #B9B9CC; }
.field > span small, .field__label small { color: var(--muted); font-weight: 400; }
.field input, .field textarea, .field__area {
  background: #0D0D14; border: 1px solid var(--line-strong); border-radius: 11px;
  color: var(--text); font-size: 14.5px; font-family: var(--font-body);
  padding: 12px 14px; outline: none; transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
}
.field input:focus, .field textarea:focus, .field__area:focus {
  border-color: var(--brand); box-shadow: 0 0 0 3px rgba(255, 90, 31, 0.15);
}
.field__area--mono { font-family: ui-monospace, monospace; font-size: 13.5px; line-height: 1.7; resize: vertical; }
.settings-form__save { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-top: 6px; }

/* ------------------------------------------------ blog edit */
.post-form { display: grid; grid-template-columns: 1fr 310px; gap: 20px; align-items: start; }
.post-form__main { display: flex; flex-direction: column; gap: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.post-form__side { display: flex; flex-direction: column; gap: 0; }
.post-form__side .panel { margin-bottom: 16px; }
.post-form__side .panel__body { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.post-form__side .panel__body .field { width: 100%; }
.post-title { font-size: 22px !important; font-family: var(--font-display); font-weight: 600; }
.post-form__hint { color: var(--muted); font-size: 13px; }
.post-form__view { color: var(--brand-2); font-size: 13.5px; font-weight: 600; }

/* Quill — dark */
.rte-wrap { border: 1px solid var(--line-strong); border-radius: 12px; overflow: hidden; background: #0D0D14; }
.rte-wrap .ql-container { font-family: var(--font-body); font-size: 16px; min-height: 340px; border: 0 !important; color: var(--text); }
.rte-wrap .ql-editor { line-height: 1.75; color: var(--text); padding: 20px 22px; }
.rte-wrap .ql-editor.ql-blank::before { color: #6E6E85; font-style: normal; left: 22px; right: 22px; }
.rte-wrap .ql-editor h2 { font-family: var(--font-display); font-size: 25px; margin: 22px 0 10px; color: var(--text); }
.rte-wrap .ql-editor h3 { font-family: var(--font-display); font-size: 20px; margin: 18px 0 8px; color: var(--text); }
.rte-wrap .ql-editor p { margin-bottom: 12px; }
.rte-wrap .ql-editor a { color: var(--brand-2); }
.rte-wrap .ql-editor blockquote { border-left: 3px solid var(--brand); color: var(--muted); padding-left: 14px; }
.ql-toolbar.ql-snow {
  background: var(--surface-2) !important;
  border: 0 !important; border-bottom: 1px solid var(--line) !important;
}
.ql-toolbar.ql-snow .ql-stroke { stroke: #B9B9CC !important; }
.ql-toolbar.ql-snow .ql-fill { fill: #B9B9CC !important; }
.ql-toolbar.ql-snow .ql-picker-label { color: #B9B9CC !important; }
.ql-toolbar.ql-snow .ql-active .ql-stroke, .ql-toolbar.ql-snow .ql-active .ql-fill,
.ql-toolbar.ql-snow button.ql-active .ql-stroke { stroke: var(--brand-2) !important; }
.ql-toolbar.ql-snow button:hover { background: rgba(255,255,255,0.07) !important; }
.ql-snow .ql-tooltip {
  background: var(--surface-2) !important; border: 1px solid var(--line-strong) !important;
  color: var(--text) !important; box-shadow: var(--shadow) !important; z-index: 5;
}
.ql-snow .ql-tooltip input[type=text] { background: #0D0D14; border: 1px solid var(--line-strong); color: var(--text); border-radius: 6px; padding: 4px 8px; }
.ql-snow .ql-tooltip a { color: var(--brand-2); }

/* ------------------------------------------------ login */
.login-page {
  min-height: 100vh; display: grid; place-items: center; padding: 30px;
  background:
    radial-gradient(70% 60% at 80% 0%, rgba(255, 90, 31, 0.13), transparent 60%),
    radial-gradient(60% 50% at 0% 100%, rgba(255, 176, 32, 0.08), transparent 55%),
    var(--bg);
}
.login-card {
  width: min(410px, 100%);
  background: rgba(20, 20, 29, 0.85);
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  padding: 38px 34px 30px;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}
.login-card__brand { text-align: center; margin-bottom: 28px; }
.login-card__brand h1 { font-size: 23px; margin-top: 16px; }
.login-card__brand p { color: var(--muted); font-size: 14px; margin-top: 7px; }
.login-card .dash-toast { margin-bottom: 16px; }
.login-form { display: flex; flex-direction: column; gap: 16px; }
.login-form label { display: flex; flex-direction: column; gap: 7px; font-size: 13.5px; font-weight: 600; color: #B9B9CC; }
.login-form input {
  background: #0D0D14; border: 1px solid var(--line-strong); border-radius: 11px;
  color: var(--text); font-size: 15px; padding: 13px 15px; outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.login-form input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(255, 90, 31, 0.15); }
.login-card__back { display: block; text-align: center; margin-top: 20px; color: var(--muted); font-size: 13.5px; }
.login-card__back:hover { color: var(--brand-2); }

/* ============================================================
   EDITOR PAGE
   ============================================================ */
body.editor-page { overflow: hidden; }
.ed-top {
  height: 54px;
  display: flex; align-items: center; gap: 18px;
  padding: 0 16px;
  background: #08080C;
  border-bottom: 1px solid var(--line);
  position: relative; z-index: 50;
}
.ed-top__back {
  display: flex; align-items: center; gap: 5px;
  color: var(--muted); font-size: 14px; font-weight: 500;
}
.ed-top__back svg { width: 16px; height: 16px; }
.ed-top__back:hover { color: var(--text); }
.ed-top__title { display: flex; align-items: center; gap: 14px; min-width: 0; }
.ed-top__title strong { font-family: var(--font-display); font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ed-top__lock {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 600; color: #FFC46B;
  background: rgba(255, 154, 31, 0.1); border: 1px solid rgba(255, 154, 31, 0.35);
  padding: 4px 11px; border-radius: 999px; white-space: nowrap;
}
.ed-top__lock svg { width: 12px; height: 12px; }
.ed-top__actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.ed-top__btn {
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line-strong);
  color: var(--muted); font-size: 13.5px; font-weight: 600;
  padding: 8px 14px; border-radius: 10px; cursor: pointer;
}
.ed-top__btn:hover { color: var(--text); border-color: var(--brand); }
.ed-top__count {
  background: var(--grad); color: #14140F; border-radius: 999px;
  font-size: 11px; font-weight: 700; padding: 1px 7px; margin-left: 4px;
}
.ed-status { color: var(--muted); font-size: 13px; white-space: nowrap; }
.ed-top__view {
  width: 36px; height: 36px; display: grid; place-items: center;
  border: 1px solid var(--line-strong); border-radius: 10px; color: var(--muted);
}
.ed-top__view svg { width: 16px; height: 16px; }
.ed-top__view:hover { color: var(--brand-2); border-color: var(--brand); }

/* history slide-over */
.ed-history {
  position: fixed; top: 54px; right: -340px; width: 330px; bottom: 0;
  background: #0B0B11; border-left: 1px solid var(--line);
  z-index: 60; transition: right 0.25s ease;
  padding: 20px; overflow-y: auto;
}
.ed-history.is-open { right: 0; box-shadow: -30px 0 60px rgba(0,0,0,0.5); }
.ed-history__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.ed-history__head strong { font-family: var(--font-display); font-size: 16px; }
.ed-history__head button { background: none; border: 0; color: var(--muted); font-size: 15px; cursor: pointer; }
.ed-history__hint { color: var(--muted); font-size: 13px; margin-bottom: 16px; line-height: 1.5; }
.ed-history__item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 13px 15px; margin-bottom: 10px;
}
.ed-history__item strong { font-size: 13.5px; display: block; }
.ed-history__item small { color: var(--muted); font-size: 12px; }
.ed-history__item button {
  background: rgba(255, 90, 31, 0.12); border: 1px solid rgba(255, 154, 31, 0.45);
  color: #FFC46B; font-size: 12.5px; font-weight: 700;
  padding: 7px 13px; border-radius: 9px; cursor: pointer;
}
.ed-history__item button:hover { background: rgba(255, 90, 31, 0.25); }
.ed-history__empty { color: var(--muted); font-size: 13.5px; }

/* ------------------------------------------------ GrapesJS dark theme */
#gjs { background: #0A0A0F; }
#gjs .gjs-pn-panels { background: transparent; }
#gjs .gjs-pn-panel {
  background: #101018 !important;
  border: 1px solid var(--line) !important;
  border-radius: 10px !important;
}
#gjs .gjs-pn-btn {
  color: #B9B9CC !important;
  border-radius: 8px !important;
}
#gjs .gjs-pn-btn:hover { background: rgba(255, 255, 255, 0.07) !important; color: #fff !important; }
#gjs .gjs-pn-btn.gjs-pn-btn-active {
  background: rgba(255, 90, 31, 0.16) !important;
  color: #FFB020 !important;
}
#gjs .gjs-pn-panels.gjs-pn-top { top: 8px !important; }
#gjs .gjs-pn-panels.gjs-pn-left { left: 8px !important; }
#gjs .gjs-pn-panels.gjs-pn-right { right: 8px !important; }

#gjs .gjs-sidebar, #gjs .gjs-main-panel {
  background: #101018 !important;
  border: 1px solid var(--line) !important;
  border-radius: 12px !important;
  color: var(--text);
}
#gjs .gjs-title, #gjs .gjs-layer-title {
  background: #16161F !important; color: var(--text) !important;
  border-color: var(--line) !important;
}
#gjs .gjs-layer { color: #C9C9DA !important; }
#gjs .gjs-layer:hover { background: rgba(255, 255, 255, 0.05) !important; }
#gjs .gjs-layer.gjs-selected { background: rgba(255, 90, 31, 0.18) !important; color: #FFC46B !important; }

/* fields / inputs */
#gjs .gjs-field {
  background: #0D0D14 !important;
  border: 1px solid var(--line-strong) !important;
  border-radius: 8px !important;
  color: var(--text) !important;
}
#gjs input.gjs-field__input, #gjs .gjs-field select, #gjs .gjs-field textarea {
  color: var(--text) !important; background: transparent !important;
}
#gjs .gjs-field-color-wrp { border-radius: 8px !important; }

/* style manager */
#gjs .gjs-sm-sector { background: #16161F !important; border-color: var(--line) !important; }
#gjs .gjs-sm-sector-title { color: #C9C9DA !important; }
#gjs .gjs-sm-properties { background: #101018 !important; }
#gjs .gjs-sm-property { border-color: var(--line) !important; }
#gjs .gjs-sm-label { color: var(--muted) !important; }
#gjs .gjs-sm-property.gjs-sm-empty { display: none; }

/* traits */
#gjs .gjs-trt-trait__wrp { background: #101018 !important; }
#gjs .gjs-trt-trait__label { color: var(--muted) !important; }
#gjs .gjs-field__wrp { background: #0D0D14 !important; border-color: var(--line-strong) !important; }

/* canvas */
#gjs .gjs-cv-canvas { background: #0A0A0F; }
#gjs .gjs-cv-canvas-bg { background: transparent; }
body.gjs-pn-activation #gjs .gjs-cv-canvas { top: 46px !important; }

/* component toolbar (black bubble) */
#gjs .gjs-toolbar {
  background: #16161F !important;
  border: 1px solid var(--line-strong) !important;
  border-radius: 9px !important;
  color: var(--text) !important;
}
#gjs .gjs-toolbar .gjs-toolbar-item { color: #C9C9DA !important; }
#gjs .gjs-toolbar .gjs-toolbar-item:hover { color: #FFB020 !important; }
#gjs .gjs-no-select { user-select: none; }

/* highlighter + ghost */
#gjs .gjs-hl, #gjs .gjs-hl-b {
  background: rgba(255, 90, 31, 0.25) !important;
  outline: 1px solid var(--brand) !important;
}
#gjs .gjs-ghost { opacity: 0.55; }

/* asset manager modal */
#gjs .gjs-am-container { background: #101018 !important; }
#gjs .gjs-am-file-uploader { background: #0D0D14 !important; border-color: var(--line-strong) !important; }
#gjs .gjs-am-add-field { background: #0D0D14 !important; border-color: var(--line-strong) !important; color: var(--text) !important; }
#gjs .gjs-am-assets {
  background: #0D0D14 !important;
  border: 1px solid var(--line) !important;
  border-radius: 10px !important;
}
#gjs .gjs-am-asset { border-color: var(--line) !important; background: var(--surface) !important; border-radius: 10px !important; }

/* commands modals (export etc.) */
#gjs .gjs-mdl-container { background: rgba(5, 5, 8, 0.8) !important; }
#gjs .gjs-mdl-dialog {
  background: #101018 !important;
  border: 1px solid var(--line-strong) !important;
  border-radius: 14px !important; color: var(--text) !important;
}
#gjs .gjs-mdl-title { color: var(--text) !important; border-color: var(--line) !important; }
#gjs .gjs-code-editor .CodeMirror { background: #0D0D14 !important; color: var(--text) !important; }

/* placeholder text in inputs */
#gjs .gjs-field input::placeholder, #gjs .gjs-field textarea::placeholder { color: #6E6E85 !important; }

/* ------------------------------------------------ responsive dashboard */
@media (max-width: 1100px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .panel-grid { grid-template-columns: 1fr; }
  .quick-actions { grid-template-columns: repeat(2, 1fr); }
  .post-form { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  body.dash { flex-direction: column; }
  .dash-side { width: 100%; height: auto; position: static; flex-direction: row; align-items: center; gap: 14px; padding: 12px 16px; overflow-x: auto; }
  .dash-brand { padding: 0; white-space: nowrap; }
  .dash-brand small { display: none; }
  .dash-nav { flex-direction: row; gap: 4px; }
  .dash-nav a { white-space: nowrap; padding: 9px 11px; }
  .dash-nav a svg { display: none; }
  .dash-side__foot { margin-top: 0; margin-left: auto; flex-direction: row; align-items: center; }
  .dash-nav__ext { display: none; }
  .dash-user { border-top: 0; padding: 0; }
  .dash-user div { display: none; }
  .dash-main { padding: 22px 18px 50px; }
  .form-grid { grid-template-columns: 1fr; }
  .table-head { display: none; }
  .table-row, .table-row--blog { grid-template-columns: 1fr auto; gap: 8px; }
  .table-row > span:nth-child(3), .table-row > span:nth-child(4) { display: none; }
  .quick-actions { grid-template-columns: 1fr; }
}
