.dan3d-login-page { background: linear-gradient(145deg, #F6F8FC 0%, #EEF2FF 100%); }
.d3d-login-shell { min-height: 100vh; display: grid; place-items: center; padding: 28px; }
.d3d-login-card {
  width: min(440px, 100%);
  padding: 38px;
  border: 1px solid var(--d3d-border);
  border-radius: 24px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 26px 80px rgba(31, 41, 55, .10);
}
.d3d-login-card .d3d-brand-mark { margin-bottom: 24px; }
.d3d-login-card h1 { margin: 0 0 8px; font-size: clamp(24px, 5vw, 32px); line-height: 1.25; }
.d3d-login-card > .d3d-muted { margin: 0 0 25px; font-size: 12px; }

.d3d-app { min-height: 100vh; display: grid; grid-template-columns: 256px minmax(0, 1fr); }
.d3d-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--d3d-border);
  background: #fff;
  padding: 18px 14px;
}
.d3d-sidebar-brand { display: flex; align-items: center; gap: 11px; padding: 3px 6px 22px; }
.d3d-sidebar-brand strong { display: block; color: #242C3A; font-size: 16px; }
.d3d-sidebar-brand small { display: block; margin-top: 1px; color: #98A2B3; font-size: 9px; }

.d3d-nav { display: grid; gap: 5px; }
.d3d-nav-section { margin: 17px 10px 6px; color: #98A2B3; font-size: 8px; font-weight: 700; letter-spacing: .12em; }
.d3d-nav button {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #596477;
  padding: 9px 11px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
}
.d3d-nav button:hover { background: var(--d3d-primary-soft-2); color: var(--d3d-primary-strong); }
.d3d-nav button.active { background: var(--d3d-primary-soft); color: var(--d3d-primary-strong); box-shadow: inset 3px 0 0 var(--d3d-primary); }
.d3d-nav-icon { width: 20px; color: var(--d3d-primary); text-align: center; font-size: 15px; }

.d3d-admin-menu { margin-top: auto; padding-top: 14px; }
.d3d-wordpress-link {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 2px 8px;
  align-items: center;
  border: 1px solid var(--d3d-border);
  border-radius: 10px;
  background: #FAFBFD;
  color: #4B5565;
  padding: 10px 11px;
  text-decoration: none;
  font-size: 10px;
  font-weight: 700;
}
.d3d-wordpress-link small { grid-column: 2; color: #98A2B3; font-size: 8px; font-weight: 500; }
.d3d-wordpress-link:hover { border-color: #C6D0F0; background: var(--d3d-primary-soft-2); color: var(--d3d-primary-strong); }

.d3d-sidebar-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; padding: 14px 7px 0; border-top: 1px solid var(--d3d-border); }
.d3d-user strong { display: block; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.d3d-user small { display: block; color: #98A2B3; font-size: 8px; }

.d3d-main { min-width: 0; padding: 30px clamp(20px, 3.2vw, 48px) 48px; }
.d3d-topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.d3d-topbar h1 { margin: 0; font-size: clamp(23px, 3vw, 32px); line-height: 1.25; }
.d3d-status { display: inline-flex; align-items: center; gap: 7px; border: 1px solid #CFE9D7; border-radius: 999px; background: #F2FBF5; color: #287443; padding: 7px 10px; font-size: 9px; font-weight: 700; }
.d3d-status i { width: 7px; height: 7px; border-radius: 50%; background: #22A652; }
.d3d-view { display: none; }
.d3d-view.active { display: block; }
.d3d-welcome { margin-top: 16px; padding: clamp(24px, 4vw, 38px); background: linear-gradient(135deg, #fff 0%, #F6F8FF 100%); }
.d3d-welcome h2 { max-width: 720px; margin: 3px 0 10px; font-size: clamp(20px, 3vw, 28px); }
.d3d-welcome p:last-child { max-width: 820px; margin-bottom: 0; color: var(--d3d-text-soft); font-size: 12px; }
.table-panel { overflow: hidden; }

@media (max-width: 980px) {
  .d3d-app { grid-template-columns: 82px minmax(0, 1fr); }
  .d3d-sidebar-brand { justify-content: center; }
  .d3d-sidebar-brand > div,
  .d3d-nav button > span:not(.d3d-nav-icon),
  .d3d-nav-section,
  .d3d-user,
  .d3d-wordpress-link > span:not(:first-child),
  .d3d-wordpress-link small { display: none; }
  .d3d-nav button { justify-content: center; padding-inline: 6px; }
  .d3d-nav-icon { width: auto; }
  .d3d-wordpress-link { display: flex; justify-content: center; }
  .d3d-sidebar-footer { justify-content: center; }
}

@media (max-width: 680px) {
  .d3d-app { display: block; }
  .d3d-sidebar {
    position: fixed;
    z-index: 1000;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    width: auto;
    height: auto;
    flex-direction: row;
    border: 0;
    border-top: 1px solid var(--d3d-border);
    padding: 7px max(8px, env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
    box-shadow: 0 -8px 24px rgba(31, 41, 55, .06);
  }
  .d3d-sidebar-brand,
  .d3d-admin-menu,
  .d3d-sidebar-footer,
  .d3d-nav-section { display: none; }
  .d3d-nav { width: 100%; display: flex; justify-content: space-around; gap: 3px; overflow-x: auto; }
  .d3d-nav button { width: auto; min-width: 52px; padding: 10px 12px; }
  .d3d-main { padding: 22px 16px 96px; }
  .d3d-topbar { align-items: flex-start; margin-bottom: 21px; }
  .d3d-status { display: none; }
}

@media (max-width: 430px) {
  .d3d-login-shell { padding: 14px; }
  .d3d-login-card { padding: 28px 22px; border-radius: 20px; }
}
