:root {
  --accent: #aa7d3a;
  --accent-dark: #815c29;
  --accent-soft: #f1e7d7;
  --bg: #f5f4f1;
  --card: #ffffff;
  --ink: #201f1c;
  --muted: #7e7a73;
  --line: #e9e5de;
  --danger: #b84d45;
  --success: #3d8d67;
  --sidebar: #22221f;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
}

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

button,
a,
label.upload-button {
  -webkit-tap-highlight-color: transparent;
}

.hidden {
  display: none !important;
}

.login-view {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  background: #fff;
}

.login-visual {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(11, 11, 10, 0.25), rgba(11, 11, 10, 0.8)),
    url("/assets/home-hero.jpg") center/cover;
}

.login-visual::after {
  position: absolute;
  content: "";
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.68), transparent 55%);
}

.login-brand {
  position: absolute;
  z-index: 2;
  left: 8vw;
  bottom: 9vh;
  color: #fff;
}

.login-brand span,
.eyebrow {
  color: #cda760;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 4px;
}

.login-brand h1 {
  margin: 15px 0 8px;
  font-family: serif;
  font-size: clamp(48px, 6vw, 82px);
  letter-spacing: 10px;
}

.login-brand p {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 18px;
  letter-spacing: 5px;
}

.login-card {
  width: min(430px, calc(100% - 60px));
  margin: auto;
}

.login-card h2 {
  margin: 18px 0 10px;
  font-size: 34px;
}

.login-card > p {
  margin: 0 0 34px;
  color: var(--muted);
  line-height: 1.7;
}

.login-card label,
.field {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.login-card label {
  margin-bottom: 20px;
}

.login-card label span,
.field span {
  font-size: 13px;
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  min-height: 44px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

textarea {
  min-height: 110px;
  resize: vertical;
  line-height: 1.6;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(170, 125, 58, 0.12);
}

.primary-button,
.upload-button,
.ghost-button,
.danger-button {
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, opacity 0.15s;
}

.primary-button,
.upload-button {
  color: #fff;
  background: linear-gradient(135deg, #b58a48, #94703a);
  box-shadow: 0 10px 24px rgba(139, 97, 42, 0.18);
}

.login-card .primary-button {
  width: 100%;
  margin-top: 6px;
}

.primary-button:hover,
.upload-button:hover,
.ghost-button:hover,
.danger-button:hover {
  transform: translateY(-1px);
}

.primary-button.compact,
.ghost-button,
.danger-button {
  min-height: 38px;
  padding: 0 16px;
  font-size: 13px;
}

.ghost-button {
  color: var(--ink);
  border: 1px solid var(--line);
  background: #fff;
}

.danger-button {
  color: var(--danger);
  background: #fbecea;
}

.login-card small {
  display: block;
  margin-top: 20px;
  text-align: center;
  color: #aaa59d;
}

.admin-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 238px 1fr;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 26px 18px 20px;
  display: flex;
  flex-direction: column;
  color: #fff;
  background:
    radial-gradient(circle at 10% 0%, rgba(184, 139, 70, 0.15), transparent 32%),
    var(--sidebar);
}

.sidebar-brand {
  padding: 0 10px 27px;
  display: flex;
  align-items: center;
  gap: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-mark {
  width: 43px;
  height: 43px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #c39854, #8d672f);
  font-family: serif;
  font-size: 22px;
}

.sidebar-brand strong,
.sidebar-brand span {
  display: block;
}

.sidebar-brand strong {
  font-size: 18px;
  letter-spacing: 3px;
}

.sidebar-brand span {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 11px;
}

nav {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.nav-item {
  width: 100%;
  height: 45px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.62);
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.nav-item span {
  width: 20px;
  text-align: center;
  font-size: 19px;
}

.nav-item:hover,
.nav-item.active {
  color: #fff;
  background: rgba(183, 139, 72, 0.2);
}

.nav-item.active {
  box-shadow: inset 3px 0 #bd914c;
}

.sidebar-footer {
  margin-top: auto;
  padding: 17px 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
}

.sidebar-footer button {
  border: 0;
  color: #d3ad6c;
  background: transparent;
  cursor: pointer;
}

.main-content {
  min-width: 0;
}

.topbar {
  height: 92px;
  padding: 0 34px;
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.topbar h1 {
  margin: 0;
  font-size: 23px;
}

.topbar p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.menu-button {
  display: none;
  border: 0;
  background: transparent;
  font-size: 22px;
}

.status-chip {
  margin-left: auto;
  padding: 8px 12px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--success);
  background: #e8f4ed;
  text-decoration: none;
  font-size: 12px;
}

.status-chip i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
}

.content-section {
  display: none;
  padding: 30px 34px 50px;
}

.content-section.active {
  display: block;
}

.quote-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.quote-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 16px;
}

.quote-card {
  padding: 20px;
  border: 1px solid rgba(181, 132, 57, 0.12);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(35, 31, 26, 0.05);
}

.quote-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.quote-card-head > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.quote-card-head strong {
  font-size: 18px;
}

.quote-card-head span {
  color: var(--muted);
  font-size: 11px;
}

.quote-status {
  padding: 5px 10px;
  border-radius: 14px;
  color: #946722 !important;
  background: #f8f0e4;
  white-space: nowrap;
}

.quote-phone {
  margin: 16px 0;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 10px;
  color: #24211d;
  background: #f8f6f2;
  text-decoration: none;
}

.quote-phone small {
  color: var(--muted);
}

.quote-phone strong {
  color: var(--accent);
  font-size: 17px;
}

.quote-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.quote-details > div,
.quote-remark {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.quote-details span,
.quote-remark span {
  color: var(--muted);
  font-size: 11px;
}

.quote-details strong {
  overflow-wrap: anywhere;
  font-size: 13px;
}

.quote-remark {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.quote-remark p {
  margin: 0;
  color: #4f4a44;
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-wrap;
}

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

.stat-card {
  min-height: 132px;
  padding: 22px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(35, 31, 26, 0.04);
}

.stat-card .stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
}

.stat-card .stat-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: var(--accent-soft);
  font-size: 18px;
}

.stat-card strong {
  display: block;
  margin-top: 16px;
  font-size: 31px;
}

.stat-card small {
  color: #9e9990;
}

.dashboard-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1.6fr 0.8fr;
  gap: 20px;
}

.panel {
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(35, 31, 26, 0.04);
}

.welcome-panel {
  min-height: 285px;
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr 230px;
  gap: 24px;
  overflow: hidden;
}

.welcome-panel h2 {
  max-width: 440px;
  margin: 17px 0 15px;
  font-size: 28px;
}

.welcome-panel p {
  max-width: 520px;
  color: var(--muted);
  line-height: 1.8;
}

.stone-art {
  position: relative;
  min-height: 210px;
}

.stone-art span {
  position: absolute;
  width: 120px;
  height: 220px;
  border-radius: 60px;
  transform: rotate(24deg);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.15);
}

.stone-art span:nth-child(1) {
  right: 84px;
  top: 5px;
  background: linear-gradient(145deg, #344b42, #a7b194);
}

.stone-art span:nth-child(2) {
  right: 24px;
  top: 35px;
  background: linear-gradient(145deg, #181817, #725633);
}

.stone-art span:nth-child(3) {
  right: -35px;
  top: 60px;
  background: linear-gradient(145deg, #d2aaa0, #9e746b);
}

.quick-panel {
  padding: 24px;
}

.panel-heading h3 {
  margin: 0 0 18px;
}

.quick-panel button {
  width: 100%;
  height: 47px;
  margin-top: 10px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: #5c5852;
  background: #fff;
  cursor: pointer;
  text-align: left;
}

.quick-panel button:hover {
  color: var(--accent-dark);
  border-color: #d8c3a2;
  background: #fbf7f0;
}

.section-toolbar {
  margin-bottom: 21px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.section-toolbar h2 {
  margin: 0;
  font-size: 24px;
}

.section-toolbar p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.upload-button input {
  display: none;
}

.media-upload-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.upload-control {
  cursor: pointer;
}

.upload-control input {
  display: none;
}

.media-folder-panel {
  margin-bottom: 18px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(35, 31, 26, 0.04);
}

.media-folder-bar {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
}

.media-folder-tools {
  flex: 0 0 auto;
  display: flex;
  gap: 8px;
}

.media-folder-tools .ghost-button,
.media-folder-tools .danger-button {
  min-height: 34px;
}

.media-batch-toolbar {
  margin: -6px 0 18px;
  min-height: 46px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.media-select-all {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #4f4a44;
  cursor: pointer;
  font-size: 13px;
}

.media-select-all input,
.media-select-control input {
  width: 17px;
  height: 17px;
  accent-color: var(--accent);
  cursor: pointer;
}

.media-selected-count {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
}

.media-batch-toolbar .danger-button {
  min-height: 32px;
}

.media-batch-toolbar .danger-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.folder-chip {
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: #6e6962;
  background: #faf9f7;
  cursor: pointer;
  white-space: nowrap;
}

.folder-chip.active {
  color: #fff;
  border-color: var(--accent);
  background: var(--accent);
}

.folder-chip small {
  margin-left: 5px;
  opacity: 0.7;
}

.table-panel {
  overflow: hidden;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(35, 31, 26, 0.04);
}

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

.data-table th,
.data-table td {
  padding: 15px 17px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.data-table th {
  color: #8f8a82;
  background: #faf9f7;
  font-size: 12px;
  font-weight: 600;
}

.data-table td {
  font-size: 13px;
}

.table-media {
  display: flex;
  align-items: center;
  gap: 12px;
}

.table-thumb {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  border-radius: 10px;
  object-fit: cover;
  background: #eeeae4;
}

.table-media strong,
.table-media small {
  display: block;
}

.table-media small {
  margin-top: 5px;
  color: var(--muted);
}

.badge {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 20px;
  color: #7b5a2c;
  background: #f3eadc;
  font-size: 11px;
}

.badge.hidden-badge {
  color: #8b5550;
  background: #f7e8e6;
}

.table-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.table-actions button {
  min-height: 32px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  color: #625e58;
  background: #f3f1ed;
  cursor: pointer;
  white-space: nowrap;
}

.table-actions button.danger {
  color: var(--danger);
  background: #fbecea;
}

.switch {
  position: relative;
  width: 42px;
  height: 23px;
  border: 0;
  border-radius: 12px;
  background: #ccc7be;
  cursor: pointer;
}

.switch::after {
  position: absolute;
  content: "";
  width: 17px;
  height: 17px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: #fff;
  transition: left 0.2s;
}

.switch.on {
  background: var(--accent);
}

.switch.on::after {
  left: 22px;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.media-card {
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(35, 31, 26, 0.05);
}

.media-card.selected {
  border-color: var(--accent);
  box-shadow: 0 10px 26px rgba(181, 132, 57, 0.18);
}

.media-select-control {
  position: absolute;
  z-index: 2;
  top: 9px;
  left: 9px;
  min-height: 29px;
  padding: 0 9px;
  display: flex;
  align-items: center;
  gap: 5px;
  border-radius: 15px;
  color: #332f2a;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  font-size: 11px;
}

.media-card img {
  width: 100%;
  aspect-ratio: 1.25;
  display: block;
  object-fit: cover;
  background: #eeeae4;
}

.media-card-body {
  padding: 12px;
}

.media-card strong {
  display: block;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.media-meta {
  margin-top: 7px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 10px;
}

.media-card-actions {
  margin-top: 11px;
  display: flex;
  gap: 7px;
}

.media-card-actions button {
  flex: 1;
  height: 31px;
  border: 0;
  border-radius: 7px;
  color: #625e58;
  background: #f2f0ec;
  cursor: pointer;
  font-size: 11px;
}

.media-card-actions button.delete {
  color: var(--danger);
  background: #fbecea;
}

.media-folder-label {
  margin-top: 7px;
  overflow: hidden;
  color: #8d6a38;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.content-form {
  max-width: 980px;
  padding: 27px;
}

.form-grid,
.editor-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.field.full {
  grid-column: 1 / -1;
}

.field-hint {
  color: #9d978f;
  font-size: 11px;
  font-weight: 400 !important;
}

.check-field {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 600;
}

.check-field input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--accent);
}

.form-actions,
.modal-actions {
  margin-top: 24px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.media-input-row {
  display: flex;
  gap: 8px;
}

.media-input-row input {
  flex: 1;
}

.media-input-row button {
  min-width: 104px;
  border: 1px solid #d8c3a2;
  border-radius: 10px;
  color: var(--accent-dark);
  background: #fbf7f0;
  cursor: pointer;
}

.selected-media-preview {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.selected-media-item {
  width: 132px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.selected-media-image-wrap {
  position: relative;
  height: 86px;
  background: #eeeae4;
}

.selected-media-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.cover-badge,
.order-badge {
  position: absolute;
  top: 6px;
  padding: 3px 6px;
  border-radius: 10px;
  color: #fff;
  background: rgba(30, 28, 25, 0.72);
  font-size: 10px;
}

.cover-badge {
  left: 6px;
  color: #fff5df;
  background: rgba(151, 105, 46, 0.88);
}

.order-badge {
  right: 6px;
  min-width: 20px;
  text-align: center;
}

.selected-media-actions {
  padding: 6px;
  display: flex;
  gap: 4px;
}

.selected-media-actions button {
  min-width: 0;
  height: 27px;
  flex: 1;
  padding: 0 5px;
  border: 0;
  border-radius: 6px;
  color: #625e58;
  background: #f2f0ec;
  cursor: pointer;
  font-size: 10px;
}

.selected-media-actions button:hover {
  background: #e9e5de;
}

.selected-media-actions button.danger {
  color: var(--danger);
  background: #fbecea;
}

.selected-media-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.selected-media-empty {
  width: 100%;
  padding: 16px;
  border: 1px dashed #d8d2c8;
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
}

.modal {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 14, 12, 0.62);
  backdrop-filter: blur(5px);
}

.modal-card {
  position: relative;
  z-index: 2;
  width: min(820px, calc(100vw - 42px));
  max-height: calc(100vh - 42px);
  overflow: auto;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.25);
}

.modal-header {
  position: sticky;
  z-index: 4;
  top: 0;
  padding: 21px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.modal-header h2 {
  margin: 8px 0 0;
  font-size: 22px;
}

.icon-button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  color: #77726b;
  background: #f2f0ec;
  cursor: pointer;
  font-size: 24px;
}

.editor-form {
  padding: 24px;
}

.media-picker-card {
  width: min(1040px, calc(100vw - 42px));
}

.move-media-card {
  width: min(460px, calc(100vw - 42px));
}

.move-media-form {
  padding: 24px;
}

.move-media-form p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.picker-grid {
  max-height: 60vh;
  padding: 22px;
  overflow: auto;
}

.picker-item {
  position: relative;
  overflow: hidden;
  border: 3px solid transparent;
  border-radius: 12px;
  cursor: pointer;
}

.picker-item.selected {
  border-color: var(--accent);
}

.picker-item img {
  width: 100%;
  aspect-ratio: 1.2;
  display: block;
  object-fit: cover;
}

.picker-item span {
  position: absolute;
  right: 7px;
  top: 7px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: none;
  place-items: center;
  color: #fff;
  background: var(--accent);
}

.picker-item.selected span {
  display: grid;
}

.media-picker-card .modal-actions {
  position: sticky;
  bottom: 0;
  margin: 0;
  padding: 16px 22px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.picker-selection-count {
  margin-right: auto;
  color: var(--muted);
  font-size: 12px;
}

.empty-state {
  padding: 70px 20px;
  color: #98928a;
  text-align: center;
}

.toast {
  position: fixed;
  z-index: 200;
  left: 50%;
  bottom: 28px;
  max-width: calc(100vw - 40px);
  padding: 12px 18px;
  border-radius: 10px;
  color: #fff;
  background: rgba(30, 28, 25, 0.92);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 0.2s, transform 0.2s;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 1050px) {
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .login-view {
    display: block;
    padding: 50px 0;
    background: #f5f3ef;
  }

  .login-visual {
    display: none;
  }

  .login-card {
    padding: 28px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 16px 50px rgba(35, 31, 26, 0.08);
  }

  .admin-layout {
    display: block;
  }

  .sidebar {
    position: fixed;
    z-index: 50;
    left: -250px;
    width: 238px;
    transition: left 0.25s;
  }

  .sidebar.open {
    left: 0;
  }

  .menu-button {
    display: block;
  }

  .topbar {
    padding: 0 18px;
  }

  .status-chip {
    display: none;
  }

  .content-section {
    padding: 23px 17px 40px;
  }

  .stat-grid,
  .form-grid,
  .editor-grid {
    grid-template-columns: 1fr;
  }

  .field.full {
    grid-column: auto;
  }

  .welcome-panel {
    grid-template-columns: 1fr;
  }

  .stone-art {
    display: none;
  }

  .section-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .media-upload-actions {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .media-upload-actions > * {
    width: 100%;
  }

  .media-folder-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .media-folder-tools {
    justify-content: flex-end;
  }

  .media-batch-toolbar {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .media-selected-count {
    margin-left: 0;
    flex: 1;
    align-self: center;
    text-align: right;
  }

  .media-batch-toolbar .danger-button {
    width: 100%;
  }

  .table-panel {
    overflow-x: auto;
  }

  .data-table {
    min-width: 720px;
  }

  .media-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .quote-list {
    grid-template-columns: 1fr;
  }

  .quote-details {
    grid-template-columns: 1fr;
  }
}
