:root {
  /* ---- BOLD ----------------------------------------------------------
     Deep espresso rail, safety-orange accent, warm cream paper, and a
     2px outline on anything that holds content. The outline is the whole
     idea: it makes every card feel like a physical thing on a counter.
     -------------------------------------------------------------------- */
  --pd-orange-50:  #EAF7F1;
  --pd-orange-100: #D6F0E6;
  --pd-orange-200: #A9E2CE;
  --pd-orange-300: #65CCB8;
  --pd-orange-400: #57BA98;
  --pd-orange-500: #3B945E;   /* primary */
  --pd-orange-600: #2F7E4F;
  --pd-orange-700: #276B43;
  --pd-orange-800: #1D4F33;
  --pd-orange-900: #182628;   /* rail + every outline */

  --pd-navy-50:  #FFFCF7;
  --pd-navy-100: #FBF3E8;
  --pd-navy-200: #F0E4D4;
  --pd-navy-300: #E0CFB8;
  --pd-navy-400: #9DBBB2;
  --pd-navy-500: #A08A6C;
  --pd-navy-600: #7D6A50;
  --pd-navy-700: #6B5B4A;
  --pd-navy-800: #2E2314;
  --pd-navy-900: #182628;

  --pd-primary:       var(--pd-orange-500);
  --pd-primary-hover: var(--pd-orange-600);
  --pd-success:  #0E8F5E;
  --pd-warning:  #276B43;
  --pd-danger:   #C22B2B;
  --pd-info:     #1D63C7;
  --pd-premium:  #FF6B9D;

  --pd-success-soft: #E3F6EE;
  --pd-warning-soft: #D6F0E6;
  --pd-danger-soft:  #FCEAEA;
  --pd-info-soft:    #E6EFFC;
  --pd-premium-soft: #FFE9F1;

  --pd-expired:  #C22B2B;
  --pd-critical: #E05A1B;
  --pd-warn:     #276B43;
  --pd-ok:       #0E8F5E;

  --pd-bg:         #FFF9F2;
  --pd-surface:    #FFFFFF;
  --pd-border:     #182628;          /* the 2px outline colour */
  --pd-border-soft:#F0E4D4;          /* hairlines inside a card */
  --pd-text:       #182628;
  --pd-text-mute:  #A08A6C;
  --pd-muted:      #A08A6C;

  --pd-sidebar-w: 244px;
  --pd-sidebar-w-collapsed: 68px;
  --pd-topbar-h: 60px;
  --pd-radius: 18px;
  --pd-radius-sm: 12px;
  --pd-outline: 2px;

  --pd-shadow-sm: none;
  --pd-shadow:    3px 3px 0 var(--pd-orange-900);
  --pd-shadow-lg: 5px 5px 0 var(--pd-orange-900);

  /* legacy aliases so no view needed editing when the theme changed */
  --pd-violet-50:  var(--pd-orange-50);
  --pd-violet-100: var(--pd-orange-100);
  --pd-violet-200: var(--pd-orange-200);
  --pd-violet-300: var(--pd-orange-300);
  --pd-violet-400: var(--pd-orange-400);
  --pd-violet-500: var(--pd-orange-500);
  --pd-violet-600: var(--pd-orange-500);
  --pd-violet-700: var(--pd-orange-700);
  --pd-violet-800: var(--pd-orange-800);
  --pd-violet-900: var(--pd-orange-900);
  --pd-teal-50:  var(--pd-orange-50);
  --pd-teal-100: var(--pd-orange-100);
  --pd-teal-200: var(--pd-orange-200);
  --pd-teal-300: var(--pd-orange-300);
  --pd-teal-400: var(--pd-orange-400);
  --pd-teal-500: var(--pd-orange-500);
  --pd-teal-600: var(--pd-orange-500);
  --pd-teal-700: var(--pd-orange-700);
  --pd-teal-800: var(--pd-orange-800);
  --pd-teal-900: var(--pd-orange-900);

  --pd-font: 'Outfit', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --pd-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { -webkit-tap-highlight-color: transparent; box-sizing: border-box; }

body {
  font-family: var(--pd-font);
  background: var(--pd-bg);
  color: var(--pd-navy-700);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 { color: var(--pd-text); font-weight: 700; letter-spacing: -.02em; }
:focus-visible { outline: 2px solid var(--pd-primary); outline-offset: 2px; border-radius: 6px; }

/* Numbers must line up in tables. Non-negotiable for money. */
.num, td.num, .table td.num, .table th.num {
  font-family: var(--pd-mono);
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}
.mono { font-family: var(--pd-mono); }
.pd-small { font-size: 12px; }
.pd-muted { color: var(--pd-text-mute); }
.pd-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

a { color: var(--pd-primary); text-decoration: none; }
a:hover { color: var(--pd-primary-hover); text-decoration: underline; }

/* ---------------------------------------------------------------- shell */
.pd-shell { min-height: 100vh; }

.pd-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--pd-sidebar-w);
  background: var(--pd-violet-900);
  color: var(--pd-navy-400);
  display: flex;
  flex-direction: column;
  z-index: 1040;
  transition: width .18s ease, transform .18s ease;
}
.pd-sidebar__brand {
  height: var(--pd-topbar-h);
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  flex-shrink: 0;
}
.pd-sidebar__logo {
  width: 32px; height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--pd-violet-600), var(--pd-violet-800));
  display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 13px; letter-spacing: -.02em;
  flex-shrink: 0;
}
.pd-sidebar__name { color: #fff; font-weight: 700; font-size: 15px; letter-spacing: -.02em; }

.pd-sidebar__nav {
  flex: 1;
  overflow-y: auto;
  padding: 8px 12px 20px;
  scrollbar-width: thin;
}
.pd-sidebar__nav::-webkit-scrollbar { width: 4px; }
.pd-sidebar__nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.10); border-radius: 3px; }

.pd-nav-section {
  font-family: var(--pd-mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: #6E8B84;
  padding: 12px 10px 6px;
  font-weight: 600;
}
.pd-nav-link {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 7px 9px;
  border-radius: var(--pd-radius-sm);
  color: #9DBBB2;
  font-size: 13.5px;
  font-weight: 500;
  margin-bottom: 1px;
  position: relative;
  transition: background .14s, color .14s;
}
.pd-nav-link:hover { background: rgba(255,255,255,.07); color: #fff; text-decoration: none; }
.pd-nav-link.is-active { background: var(--pd-orange-500); color: var(--pd-orange-900); font-weight: 700; }
.pd-nav-link.is-active::before {
  content: none;
}
/* Icons sit in a tile — bigger, bolder, easier to hit and to recognise. */
.pd-nav-link svg {
  width: 34px; height: 34px; flex: none; padding: 7px;
  border-radius: 11px; background: rgba(255,255,255,.07);
  stroke-width: 2.2; opacity: 1;
}
.pd-nav-link.is-active svg { background: rgba(0,0,0,.18); }
.pd-nav-link__label { flex: 1; }

.pd-gem { font-size: 9px; color: var(--pd-violet-400); flex-shrink: 0; }
.pd-nav-link.is-locked { opacity: .55; }

.pd-main {
  margin-left: var(--pd-sidebar-w);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: margin-left .18s ease;
}

.pd-topbar {
  height: var(--pd-topbar-h);
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--pd-border);
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 18px;
  position: sticky;
  top: 0;
  z-index: 1030;
}

.pd-content { flex: 1; padding: 22px; max-width: 1400px; width: 100%; }
@media (max-width: 575.98px) { .pd-content { padding: 14px 12px; } }

/* quick-entry buttons in topbar */
.pd-quick {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 99px;
  border: var(--pd-outline) solid var(--pd-border);
  background: #fff;
  color: var(--pd-navy-800);
  font-size: 13px;
  font-weight: 600;
  transition: border-color .15s, color .15s, background .15s;
}
.pd-quick:hover { border-color: var(--pd-violet-300); color: var(--pd-primary); text-decoration: none; }
.pd-quick--primary {
  background: var(--pd-orange-900); color: #fff; border-color: var(--pd-orange-900);
}
.pd-quick--primary:hover { background: var(--pd-primary); color: var(--pd-orange-900); }

/* --------------------------------------------------------------- search */
.pd-search { position: relative; flex: 1; max-width: 480px; }
.pd-search .form-control { padding-left: 36px; background: var(--pd-navy-100); border-color: transparent; }
.pd-search .form-control:focus { background: #fff; border-color: var(--pd-violet-400); }
.pd-search__icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--pd-text-mute); pointer-events: none; display: flex;
}
.pd-search__kbd {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  font-family: var(--pd-mono); font-size: 10px; color: var(--pd-text-mute);
  background: #fff; border: 1px solid var(--pd-border); border-radius: 5px; padding: 2px 6px;
}
.pd-search__results {
  position: absolute; top: calc(100% + 7px); left: 0; right: 0; z-index: 1050;
  background: #fff; border: 1px solid var(--pd-border); border-radius: var(--pd-radius);
  box-shadow: var(--pd-shadow-lg); max-height: 420px; overflow-y: auto; padding: 6px;
}
.pd-search__item {
  display: block; padding: 9px 11px; border-radius: var(--pd-radius-sm);
  color: var(--pd-text); font-size: 13.5px;
}
.pd-search__item:hover, .pd-search__item.is-active { background: var(--pd-violet-50); text-decoration: none; }

/* ---------------------------------------------------------------- cards */
.pd-card {
  background: var(--pd-surface);
  border: var(--pd-outline) solid var(--pd-border);
  border-radius: var(--pd-radius);
  overflow: hidden;
}
.pd-card__head {
  padding: 14px 18px;
  border-bottom: var(--pd-outline) solid var(--pd-border);
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.pd-card__title { font-size: 14.5px; font-weight: 700; color: var(--pd-text); margin: 0; }
.pd-card__body { padding: 18px; }
.pd-card__foot {
  padding: 12px 18px; border-top: var(--pd-outline) solid var(--pd-border);
  display: flex; align-items: center; gap: 10px; background: var(--pd-navy-50);
}
.pd-divider { height: 1px; background: var(--pd-border-soft); margin: 14px 0; border: 0; }

/* ---------------------------------------------------------------- stats */
.pd-stat { display: flex; flex-direction: column; gap: 2px; }
.pd-stat__label {
  font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase;
  color: var(--pd-text-mute);
}
.pd-stat__value {
  font-family: var(--pd-mono);
  font-variant-numeric: tabular-nums;
  font-size: 24px; font-weight: 700; color: var(--pd-text); letter-spacing: -.03em;
  line-height: 1.15;
}
.pd-stat__delta { font-family: var(--pd-mono); font-size: 11.5px; font-weight: 600; }

/* --------------------------------------------------------------- tables */
.pd-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.pd-table thead th {
  text-align: left; padding: 9px 18px; background: var(--pd-navy-100);
  font-family: var(--pd-mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--pd-text-mute); font-weight: 600; white-space: nowrap;
  border-bottom: var(--pd-outline) solid var(--pd-border);
}
.pd-table tbody td {
  padding: 11px 18px; border-bottom: 1px solid var(--pd-border-soft); vertical-align: middle;
}
.pd-table tbody tr:last-child td { border-bottom: 0; }
.pd-table tbody tr:hover { background: var(--pd-orange-50); }
.pd-table--compact tbody td, .pd-table--compact thead th { padding: 7px 12px; }
.pd-table tfoot td {
  background: var(--pd-navy-100); border-top: 1px solid var(--pd-border);
  font-weight: 600; padding: 11px 18px;
}

/* --------------------------------------------------------------- badges */
.pd-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 600; padding: 2.5px 8px; border-radius: 6px;
  background: var(--pd-navy-100); color: var(--pd-navy-700); white-space: nowrap;
  line-height: 1.5;
}
.pd-badge--success { background: var(--pd-success-soft); color: var(--pd-success); }
.pd-badge--warning { background: var(--pd-warning-soft); color: var(--pd-warning); }
.pd-badge--danger  { background: var(--pd-danger-soft);  color: var(--pd-danger); }
.pd-badge--info    { background: var(--pd-info-soft);    color: var(--pd-info); }
.pd-badge--teal    { background: var(--pd-violet-100);   color: var(--pd-violet-700); }
.pd-badge--premium { background: var(--pd-premium-soft); color: var(--pd-premium); }
.pd-badge--muted   { background: var(--pd-navy-100);     color: var(--pd-text-mute); }

/* expiry pills — the most-read colour on any stock screen */
.pd-exp { font-family: var(--pd-mono); font-size: 11.5px; font-weight: 600; padding: 2px 7px; border-radius: 5px; }
.pd-exp--expired  { background: var(--pd-danger-soft);  color: var(--pd-expired); }
.pd-exp--critical { background: #FDEFE6;                color: var(--pd-critical); }
.pd-exp--warning  { background: var(--pd-warning-soft); color: var(--pd-warn); }
.pd-exp--ok       { background: var(--pd-success-soft); color: var(--pd-ok); }

.pd-h1-flag {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--pd-danger-soft); color: var(--pd-danger);
  font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: 5px;
  text-transform: uppercase; letter-spacing: .04em;
}

/* --------------------------------------------------------------- avatar */
.pd-avatar {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  background: var(--pd-violet-100); color: var(--pd-violet-700);
  display: grid; place-items: center; font-size: 12.5px; font-weight: 700;
}
.pd-avatar--sq { border-radius: 9px; }
.pd-avatar--lg { width: 44px; height: 44px; font-size: 16px; }

/* ---------------------------------------------------------------- forms */
.form-label { font-size: 11.5px; font-weight: 600; color: var(--pd-text-mute); margin-bottom: 5px; }
.form-control, .form-select {
  font-family: var(--pd-font); font-size: 14px; color: var(--pd-text);
  border: var(--pd-outline) solid var(--pd-border); border-radius: var(--pd-radius-sm);
  padding: 9px 12px; background: #fff; font-weight: 500;
  transition: border-color .15s, box-shadow .15s;
}
.form-control:focus, .form-select:focus {
  border-color: var(--pd-primary);
  box-shadow: 3px 3px 0 var(--pd-orange-900);
  outline: 0;
}
.form-control::placeholder { color: var(--pd-navy-400); }
.form-control-sm, .form-select-sm { padding: 6px 10px; font-size: 13px; border-radius: 8px; }
.form-hint { font-size: 11.5px; color: var(--pd-text-mute); margin-top: 4px; }
.invalid-feedback { font-size: 11.5px; color: var(--pd-danger); }
.is-invalid { border-color: var(--pd-danger) !important; }
.pd-input-group { display: flex; gap: 8px; align-items: stretch; }
.form-check-input:checked { background-color: var(--pd-primary); border-color: var(--pd-primary); }

/* -------------------------------------------------------------- buttons */
.btn {
  font-family: var(--pd-font); font-weight: 700; font-size: 14px;
  border-radius: 99px; padding: 9px 18px; border-width: var(--pd-outline);
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
}
.btn-sm { padding: 6px 12px; font-size: 13px; border-radius: 8px; }
.btn-lg { padding: 12px 22px; font-size: 15px; }
.btn-primary {
  background: var(--pd-orange-900); border-color: var(--pd-orange-900); color: #fff;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--pd-primary); border-color: var(--pd-orange-900); color: var(--pd-orange-900);
}
.btn-light { background: #fff; border-color: var(--pd-border); color: var(--pd-navy-900); }
.btn-light:hover { background: var(--pd-orange-100); border-color: var(--pd-border); color: var(--pd-orange-900); }
.btn-outline-primary { border-color: var(--pd-violet-300); color: var(--pd-primary); background: #fff; }
.btn-outline-primary:hover { background: var(--pd-primary); border-color: var(--pd-primary); color: #fff; }
.btn-success { background: var(--pd-success); border-color: transparent; }
.btn-danger  { background: var(--pd-danger);  border-color: transparent; }
.btn-warning { background: var(--pd-warning); border-color: transparent; color: #fff; }
.text-danger  { color: var(--pd-danger) !important; }
.text-success { color: var(--pd-success) !important; }
.text-warning { color: var(--pd-warning) !important; }

/* ---------------------------------------------------------- empty state */
.pd-empty { text-align: center; padding: 44px 24px; }
.pd-empty__icon {
  width: 56px; height: 56px; margin: 0 auto 14px;
  border-radius: 18px; background: var(--pd-violet-50);
  display: grid; place-items: center; font-size: 24px; line-height: 1;
}
.pd-empty__title { font-size: 15.5px; font-weight: 700; color: var(--pd-text); margin-bottom: 5px; }
.pd-empty__text { color: var(--pd-text-mute); max-width: 380px; margin: 0 auto; line-height: 1.6; }

/* ---------------------------------------------------------------- flash */
.pd-flash-stack {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%);
  z-index: 1100; width: min(94%, 460px); display: grid; gap: 8px;
}
.pd-flash {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 15px; border-radius: var(--pd-radius-sm); font-size: 13.5px; font-weight: 500;
  background: #fff; border: 1px solid var(--pd-border); color: var(--pd-text);
  box-shadow: var(--pd-shadow-lg);
}
.pd-flash--success { background: var(--pd-success-soft); border-color: #BFE8DA; color: #0B7A5C; }
.pd-flash--error   { background: var(--pd-danger-soft);  border-color: #F6CFCC; color: #A82B24; }
.pd-flash--warning { background: var(--pd-warning-soft); border-color: #F3DCB4; color: #8A5606; }
.pd-flash--info    { background: var(--pd-info-soft);    border-color: #CBDDFB; color: #1D4ED8; }
.pd-flash__close { margin-left: auto; background: none; border: 0; opacity: .5; cursor: pointer; font-size: 17px; line-height: 1; }
.pd-flash__close:hover { opacity: 1; }

/* --------------------------------------------------------------- upsell */
.pd-upsell {
  background: linear-gradient(135deg, var(--pd-violet-50), #fff);
  border: 1px solid var(--pd-violet-200);
  border-radius: var(--pd-radius); padding: 18px;
}
.pd-feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.pd-feature-list li { display: flex; gap: 9px; align-items: flex-start; font-size: 13.5px; }
.pd-feature-list li::before { content: '\2726'; color: var(--pd-success); flex: none; }

/* --------------------------------------------------------------- widget */
.pd-widget { position: relative; }
.pd-widget__toggle {
  position: absolute; top: 10px; right: 10px;
  background: none; border: 0; color: var(--pd-navy-400); cursor: pointer; padding: 4px;
}
.pd-widget__toggle:hover { color: var(--pd-primary); }
.pd-widget.is-collapsed .pd-card__body { display: none; }
.pd-widget.is-collapsed .pd-widget__toggle svg { transform: rotate(-90deg); }

/* ----------------------------------------------------------- auth pages */
.pd-auth { min-height: 100vh; display: grid; grid-template-columns: 1fr; }
.pd-auth__aside {
  display: none;
  background: var(--pd-violet-900); color: #fff;
  padding: 46px 44px; flex-direction: column; justify-content: center;
  background-image:
    radial-gradient(620px 320px at 12% -10%, rgba(91,61,245,.42), transparent 60%),
    radial-gradient(480px 280px at 92% 108%, rgba(255,122,69,.20), transparent 60%);
}
.pd-auth__panel { display: grid; place-items: center; padding: 34px 22px; background: var(--pd-bg); }
.pd-auth__box { width: 100%; max-width: 400px; }
.pd-auth__box--wide { max-width: 620px; }
@media (min-width: 992px) {
  .pd-auth { grid-template-columns: 1.05fr .95fr; }
  .pd-auth__aside { display: flex; }
}

/* ----------------------------------------------------------- responsive */
@media (max-width: 991.98px) {
  .pd-sidebar { transform: translateX(-100%); box-shadow: var(--pd-shadow-lg); }
  .pd-sidebar.is-open { transform: none; }
  .pd-main { margin-left: 0; }
}

@media print {
  .pd-sidebar, .pd-topbar, .pd-flash-stack, .btn, .pd-widget__toggle { display: none !important; }
  .pd-main { margin-left: 0; }
  .pd-content { padding: 0; max-width: none; }
  .pd-card { border: 0; box-shadow: none; }
  body { background: #fff; font-size: 12px; }
}

/* ------------------------------------------------- shop identity chip */
.pd-bizchip {
  display: flex; align-items: center; gap: 9px;
  padding: 5px 12px 5px 5px; border-radius: 999px;
  background: var(--pd-navy-100); border: 1px solid var(--pd-border);
  max-width: 260px; flex: none;
}
.pd-bizchip__av {
  width: 28px; height: 28px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, var(--pd-violet-600), var(--pd-violet-800));
  color: #fff; display: grid; place-items: center;
  font-size: 11px; font-weight: 800; letter-spacing: -.02em;
}
.pd-bizchip__txt { min-width: 0; line-height: 1.25; }
.pd-bizchip__txt b {
  display: block; font-size: 12.5px; font-weight: 700; color: var(--pd-text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pd-bizchip__txt span {
  display: block; font-size: 10.5px; color: var(--pd-text-mute);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* Sidebar labels must never wrap onto two lines — it breaks the rhythm
   of the whole rail and makes the app look unfinished. */
.pd-nav-link__label {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0;
}

/* An empty screen should look considered, not abandoned. */
.pd-empty { padding: 32px 24px; }
.pd-empty__icon { width: 46px; height: 46px; border-radius: 15px; font-size: 20px; margin-bottom: 12px; }
.pd-empty__title { font-size: 14.5px; }
.pd-empty__text { font-size: 12.5px; }

/* ===================================================================
   Polish pass — the small things that separate a tool from a product
   =================================================================== */

/* ---- the premium diamond ---- */
.pd-gem { width: 13px; height: 13px; display: inline-flex; flex: none; }
.pd-gem svg { width: 100%; height: 100%; filter: drop-shadow(0 1px 3px rgba(255,107,157,.5)); }
.pd-nav-link.is-locked { opacity: .72; }
.pd-nav-link.is-locked:hover { opacity: 1; }
.pd-nav-link.is-locked .pd-nav-link__label { color: #B9AEE8; }

/* a locked row should feel like a door, not a dead end */
.pd-nav-link.is-locked::after {
  content: 'Upgrade';
  position: absolute; right: 10px;
  font-size: 9.5px; font-weight: 700; letter-spacing: .04em;
  color: #FFD36E; opacity: 0; transform: translateX(4px);
  transition: opacity .16s, transform .16s;
  background: rgba(255,211,110,.12); padding: 1px 6px; border-radius: 5px;
}
.pd-nav-link.is-locked:hover::after { opacity: 1; transform: none; }
.pd-nav-link.is-locked:hover .pd-gem { opacity: 0; }

/* ---- nav icons pick up the accent on hover ---- */
.pd-nav-link svg { transition: transform .16s, opacity .16s; }
.pd-nav-link:hover svg { transform: translateX(1px); opacity: 1; }
.pd-nav-link.is-active svg { opacity: 1; }

/* ---- section headings get a tick mark ---- */
.pd-nav-section { display: flex; align-items: center; gap: 7px; }
.pd-nav-section::before {
  content: ''; width: 10px; height: 1px; background: #3B3468; flex: none;
}

/* ---- stat cards carry a colour spine so a wall of numbers reads fast ---- */
.pd-card .pd-stat { position: relative; padding-left: 12px; }
.pd-card .pd-stat::before {
  content: ''; position: absolute; left: 0; top: 3px; bottom: 3px; width: 3px;
  border-radius: 3px; background: var(--pd-violet-200);
}
.pd-card .pd-stat--good::before  { background: var(--pd-success); }
.pd-card .pd-stat--warn::before  { background: var(--pd-warning); }
.pd-card .pd-stat--bad::before   { background: var(--pd-danger); }
.pd-card .pd-stat--key::before   { background: var(--pd-primary); }

/* ---- cards lift a little on hover when they are clickable ---- */
a.pd-card, .pd-card--link {
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
a.pd-card:hover, .pd-card--link:hover {
  transform: translateY(-2px);
  box-shadow: var(--pd-shadow);
  border-color: var(--pd-violet-300);
  text-decoration: none;
}

/* ---- topbar icon buttons, evened out ---- */
.pd-topbar .btn-light {
  width: 34px; height: 34px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px;
}
.pd-topbar .btn-light svg { opacity: .8; }
.pd-topbar .btn-light:hover svg { opacity: 1; }

/* ---- the upgrade rail at the foot of the sidebar ---- */
.pd-plan {
  margin: 12px; padding: 13px 14px; border-radius: 12px;
  background: linear-gradient(140deg, rgba(255,159,69,.16), rgba(255,107,157,.12));
  border: 1px solid rgba(255,211,110,.22);
}
.pd-plan__top { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.pd-plan__top b { color: #FFD36E; font-size: 12px; font-weight: 700; letter-spacing: .01em; }
.pd-plan p { margin: 0 0 10px; font-size: 11.5px; color: #A79FCE; line-height: 1.5; }
.pd-plan a {
  display: block; text-align: center; padding: 7px; border-radius: 9px;
  background: linear-gradient(135deg, #FF9F45, #FF6B9D); color: #fff;
  font-size: 12px; font-weight: 700; text-decoration: none;
}
.pd-plan a:hover { filter: brightness(1.07); color: #fff; text-decoration: none; }

/* ---- table rows that lead somewhere show it ---- */
.pd-table tbody tr[onclick], .pd-table tbody tr.is-link { cursor: pointer; }

/* ---- badges get a leading dot for state-ish values ---- */
.pd-badge .dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

/* ===================================================================
   BOLD — the animated pieces
   =================================================================== */

/* ---- premium diamond: slow flip, warm halo ---- */
.pd-gem { position: relative; width: 20px; height: 20px; display: inline-grid; place-items: center; flex: none; }
.pd-gem svg { width: 18px; height: 18px; display: block; animation: pdGemFlip 5s ease-in-out infinite; }
.pd-gem::after {
  content: ''; position: absolute; inset: -6px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255,159,69,.55), transparent 68%);
  animation: pdGemPulse 2.4s ease-in-out infinite;
}
@keyframes pdGemFlip {
  0%, 100% { transform: rotateY(0deg) scale(1); }
  45%, 55% { transform: rotateY(180deg) scale(1.15); }
}
@keyframes pdGemPulse {
  0%, 100% { opacity: .22; transform: scale(.82); }
  50%      { opacity: .72; transform: scale(1.18); }
}

/* ---- animated divider between menu groups ---- */
.pd-nav-div { display: flex; align-items: center; gap: 7px; margin: 12px 8px 4px; }
.pd-nav-div span { height: 1px; flex: 1; background: rgba(255,255,255,.10); }
.pd-nav-div i {
  width: 5px; height: 5px; border-radius: 50%; background: var(--pd-orange-500);
  animation: pdBeat 1.9s ease-in-out infinite; flex: none;
}
@keyframes pdBeat {
  0%, 100% { transform: scale(1);   opacity: .55; }
  50%      { transform: scale(1.8); opacity: 1; }
}

/* ---- travelling underline under card headings ---- */
.pd-card__head { position: relative; }
.pd-card__head::after {
  content: ''; position: absolute; left: 0; bottom: -2px; height: 2px; width: 34%;
  background: var(--pd-orange-500); animation: pdSlide 3.4s cubic-bezier(.5,0,.5,1) infinite;
}
@keyframes pdSlide { 0% { left: -34%; } 100% { left: 100%; } }

/* ---- section headings ---- */
.pd-nav-section::before { background: rgba(255,255,255,.16); }

/* ---- locked rows ---- */
.pd-nav-link.is-locked { opacity: .7; }
.pd-nav-link.is-locked:hover { opacity: 1; }
.pd-nav-link.is-locked::after {
  content: 'Upgrade'; position: absolute; right: 10px;
  font-size: 9.5px; font-weight: 700; letter-spacing: .04em; color: var(--pd-orange-900);
  background: var(--pd-orange-500); padding: 2px 7px; border-radius: 99px;
  opacity: 0; transform: translateX(4px); transition: opacity .16s, transform .16s;
}
.pd-nav-link.is-locked:hover::after { opacity: 1; transform: none; }
.pd-nav-link.is-locked:hover .pd-gem { opacity: 0; }

/* ---- cards you can click press down like a physical key ---- */
a.pd-card, .pd-card--link { transition: transform .12s ease, box-shadow .12s ease; }
a.pd-card:hover, .pd-card--link:hover {
  transform: translate(-2px, -2px); box-shadow: var(--pd-shadow); text-decoration: none;
}
a.pd-card:active, .pd-card--link:active { transform: none; box-shadow: none; }

/* ---- stat spines become thick blocks ---- */
.pd-card .pd-stat { padding-left: 13px; }
.pd-card .pd-stat::before { width: 4px; border-radius: 2px; background: var(--pd-navy-300); }
.pd-card .pd-stat--key::before  { background: var(--pd-orange-500); }
.pd-card .pd-stat--good::before { background: var(--pd-success); }
.pd-card .pd-stat--warn::before { background: var(--pd-warning); }
.pd-card .pd-stat--bad::before  { background: var(--pd-danger); }
.pd-stat__value { font-weight: 700; }

/* ---- badges get the outline too ---- */
.pd-badge { border: 1.5px solid currentColor; font-weight: 700; }
.pd-badge--muted { border-color: var(--pd-navy-300); }

/* ---- topbar sits on cream, with a hard rule under it ---- */
.pd-topbar {
  background: var(--pd-surface);
  border-bottom: var(--pd-outline) solid var(--pd-border);
  backdrop-filter: none;
}
.pd-topbar .btn-light { border-width: var(--pd-outline); border-radius: 12px; }

.pd-bizchip {
  background: var(--pd-orange-100); border: var(--pd-outline) solid var(--pd-border);
  padding: 4px 13px 4px 4px;
}
.pd-bizchip__av { background: var(--pd-orange-500); color: var(--pd-orange-900); }

.pd-search .form-control { background: var(--pd-navy-100); border-color: var(--pd-border); }

/* ---- the upgrade rail ---- */
.pd-plan {
  background: var(--pd-orange-500); border: 0; border-radius: 16px;
}
.pd-plan__top b { color: var(--pd-orange-900); }
.pd-plan p { color: rgba(28,20,8,.72); }
.pd-plan a { background: var(--pd-orange-900); color: #fff; border-radius: 99px; }
.pd-plan a:hover { filter: none; background: #000; color: #fff; }

/* ---- flash messages keep the outline language ---- */
.pd-flash { border-width: var(--pd-outline); box-shadow: 3px 3px 0 var(--pd-orange-900); }

/* ---- empty states ---- */
.pd-empty__icon { background: var(--pd-orange-100); border: var(--pd-outline) solid var(--pd-border); }

@media (prefers-reduced-motion: reduce) {
  .pd-gem svg, .pd-gem::after, .pd-nav-div i, .pd-card__head::after { animation: none; }
  .pd-card__head::after { display: none; }
}

/* ===================================================================
   Clean-up pass
   =================================================================== */

/* The search input carries no .form-control class, so every rule written
   against it silently missed. Style the element itself. */
.pd-search { flex: 1 1 auto; max-width: 460px; min-width: 0; }
.pd-search input {
  width: 100%; height: 40px;
  font-family: var(--pd-font); font-size: 13.5px; font-weight: 500; color: var(--pd-text);
  background: #fff; border: var(--pd-outline) solid var(--pd-border);
  border-radius: 99px; padding: 0 62px 0 38px;
}
.pd-search input:focus { outline: 0; box-shadow: 3px 3px 0 var(--pd-orange-900); }
.pd-search input::placeholder { color: var(--pd-navy-500); font-weight: 400; }
.pd-search__icon { left: 15px; color: var(--pd-navy-500); }
.pd-search__kbd {
  right: 8px; background: var(--pd-navy-100); border: 1px solid var(--pd-navy-300);
  color: var(--pd-navy-600); font-weight: 600;
}

/* Cream everywhere reads muddy. Lift the page, keep cards pure white,
   and stop internal hairlines from going tan. */
:root {
  --pd-bg: #FFFCF7;
  --pd-border-soft: #EFE7DC;
}
.pd-card__foot { background: #FFFCF7; }
.pd-table thead th { background: #FBF6EF; color: var(--pd-navy-600); }

/* An empty state was taking half the screen. */
.pd-empty { padding: 26px 20px; }
.pd-empty__icon {
  width: 42px; height: 42px; border-radius: 13px; font-size: 18px;
  margin-bottom: 10px; border-width: 2px;
}
.pd-empty__title { font-size: 15px; }
.pd-empty__text { font-size: 12.5px; max-width: 340px; }

/* The diamond was drowning in its own halo. Bigger stone, quieter glow. */
.pd-gem { width: 22px; height: 22px; }
.pd-gem svg { width: 20px; height: 20px; }
.pd-gem::after { inset: -3px; opacity: .3; background: radial-gradient(circle, rgba(255,159,69,.5), transparent 70%); }

/* Dividers were louder than the headings they introduced. */
.pd-nav-div { margin: 10px 8px 2px; }
.pd-nav-div span { background: rgba(255,255,255,.07); }
.pd-nav-div i { width: 4px; height: 4px; }
.pd-nav-section { padding: 6px 10px 6px; }

/* Cards were floating in space on wide screens. */
.pd-content { max-width: 1240px; padding: 20px 22px 40px; }

/* A moving underline under every single card heading is too much motion
   on a page with eight cards. Keep it for the page's first card only. */
.pd-card__head::after { display: none; }
.pd-card:first-of-type > .pd-card__head::after { display: block; }

/* Tighter cards — the outline already does the separating. */
.pd-card__body { padding: 16px; }
.pd-card__head { padding: 13px 16px; }
.pd-card__foot { padding: 11px 16px; }

/* Topbar breathing room */
.pd-topbar { gap: 10px; padding: 0 16px; }
.pd-bizchip { max-width: 210px; }

/* ===================================================================
   Fit and finish
   =================================================================== */

:root {
  --pd-sidebar-w: 268px;   /* 244 felt cramped with 34px icon tiles */
  --pd-outline: 1.5px;     /* 2px read as heavy at this density */
}

/* ---- sidebar scrollbar: thin, dark, out of the way ---- */
.pd-sidebar__nav {
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.14) transparent;
  padding: 6px 14px 22px;
}
.pd-sidebar__nav::-webkit-scrollbar { width: 6px; }
.pd-sidebar__nav::-webkit-scrollbar-track { background: transparent; }
.pd-sidebar__nav::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.14); border-radius: 99px;
}
.pd-sidebar__nav::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.26); }

/* ---- nav rows: a touch more air now that the rail is wider ---- */
.pd-nav-link { padding: 8px 10px; gap: 12px; font-size: 14px; }
.pd-nav-link svg { width: 36px; height: 36px; padding: 8px; border-radius: 12px; }

/* ---- the diamond, properly sized ---- */
.pd-gem { width: 26px; height: 26px; }
.pd-gem svg { width: 24px; height: 24px; }
.pd-gem::after { inset: -2px; opacity: .28; }

/* ---- topbar: everything on one baseline ---- */
.pd-topbar { align-items: center; }
.pd-topbar > * { align-self: center; }
.pd-topbar .btn-light,
.pd-topbar .pd-quick,
.pd-topbar .pd-bizchip,
.pd-topbar .dropdown > .pd-quick { height: 40px; }
.pd-topbar .pd-quick { padding: 0 16px; }
.pd-topbar .btn-light { width: 40px; height: 40px; border-radius: 12px; padding: 0; }
.pd-topbar .pd-avatar { width: 34px; height: 34px; }
.pd-topbar .dropdown { display: flex; align-items: center; }
.pd-topbar .ms-auto { gap: 8px !important; }

/* ---- borders back down to a hairline-and-a-half ---- */
.pd-card, .pd-card__head, .pd-card__foot,
.form-control, .form-select, .pd-search input,
.pd-quick, .pd-bizchip, .pd-empty__icon,
.pd-table thead th, .pd-flash { border-width: var(--pd-outline); }
.btn { border-width: var(--pd-outline); }
.pd-table tbody td { border-bottom: 1px solid var(--pd-border-soft); }
.pd-badge { border-width: 1px; }
.pd-card__head { border-bottom-width: var(--pd-outline); }
.pd-card__foot { border-top-width: 1px; border-top-color: var(--pd-border-soft); }

/* ---- softer hard-shadows to match the thinner line ---- */
:root { --pd-shadow: 2px 2px 0 var(--pd-orange-900); --pd-shadow-lg: 3px 3px 0 var(--pd-orange-900); }
.form-control:focus, .form-select:focus, .pd-search input:focus { box-shadow: 2px 2px 0 var(--pd-orange-900); }
.pd-flash { box-shadow: 2px 2px 0 var(--pd-orange-900); }

/* ===================================================================
   CLEAN — final layer
   The 2px outline was the problem. Cards now separate themselves with
   whitespace and one soft shadow, the way a calm dashboard should.
   Orange stays as the accent; it just stops being the frame.
   =================================================================== */

:root {
  --pd-bg:          #F2F2F2;
  --pd-surface:     #FFFFFF;
  --pd-line:        #EDE9E4;   /* the only line colour that shows */
  --pd-border:      #EDE9E4;
  --pd-border-soft: #F3F0EC;
  --pd-text:        #182628;
  --pd-text-mute:   #8C8378;
  --pd-muted:       #8C8378;
  --pd-outline:     1px;
  --pd-radius:      14px;
  --pd-radius-sm:   10px;
  --pd-shadow-sm:   0 1px 2px rgba(24,38,40,.05);
  --pd-shadow:      0 2px 8px rgba(24,38,40,.07);
  --pd-shadow-lg:   0 12px 32px rgba(24,38,40,.10);
}

/* ---- cards: no border at all ---- */
.pd-card {
  border: 0;
  border-radius: var(--pd-radius);
  box-shadow: var(--pd-shadow-sm);
  background: var(--pd-surface);
}
.pd-card__head {
  border-bottom: 1px solid var(--pd-line);
  padding: 15px 18px;
}
.pd-card__head::after { display: none !important; }
.pd-card__foot {
  border-top: 1px solid var(--pd-line);
  background: transparent;
  padding: 13px 18px;
}
.pd-card__body { padding: 18px; }

/* LocalWell's one flourish: a short accent rule under the card title */
.pd-card__title { position: relative; padding-bottom: 7px; }
.pd-card__title::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 26px; height: 2px; border-radius: 2px; background: var(--pd-orange-500);
}

/* ---- tables ---- */
.pd-table thead th {
  background: transparent; color: var(--pd-text-mute);
  border-bottom: 1px solid var(--pd-line); font-family: var(--pd-font);
  font-size: 11px; letter-spacing: .04em; font-weight: 600; text-transform: uppercase;
}
.pd-table tbody td { border-bottom: 1px solid var(--pd-border-soft); }
.pd-table tbody tr:hover { background: #FDF9F5; }
.pd-table tfoot td { background: transparent; border-top: 1px solid var(--pd-line); }

/* ---- controls: light lines, orange focus ---- */
.form-control, .form-select, .pd-search input {
  border: 1px solid var(--pd-line); font-weight: 400; background: #fff;
}
.form-control:focus, .form-select:focus, .pd-search input:focus {
  border-color: var(--pd-orange-400);
  box-shadow: 0 0 0 3px rgba(59,148,94,.14);
}
.pd-search input { background: #F3F0EC; border-color: transparent; }
.pd-search input:focus { background: #fff; }
.pd-search__kbd { background: #fff; border-color: var(--pd-line); }

/* ---- buttons ---- */
.btn { border-width: 1px; font-weight: 600; box-shadow: none; }
.btn-primary { background: var(--pd-orange-500); border-color: var(--pd-orange-500); color: #fff; }
.btn-primary:hover, .btn-primary:focus { background: var(--pd-orange-600); border-color: var(--pd-orange-600); color: #fff; }
.btn-light { background: #fff; border-color: var(--pd-line); color: var(--pd-text); }
.btn-light:hover { background: #FBF8F5; border-color: #E2DCD4; color: var(--pd-text); }
.pd-quick { border: 1px solid var(--pd-line); background: #fff; font-weight: 600; }
.pd-quick:hover { background: #FBF8F5; border-color: #E2DCD4; color: var(--pd-text); }
.pd-quick--primary { background: var(--pd-orange-500); border-color: var(--pd-orange-500); color: #fff; }
.pd-quick--primary:hover { background: var(--pd-orange-600); color: #fff; }

/* ---- chips, badges, empty ---- */
.pd-bizchip { background: #fff; border: 1px solid var(--pd-line); }
.pd-bizchip__av { background: var(--pd-orange-500); color: #fff; }
.pd-badge { border: 0; font-weight: 600; }
.pd-empty__icon { background: #FBF3EA; border: 0; }
.pd-flash { border-width: 1px; box-shadow: var(--pd-shadow-lg); }

/* ---- topbar ---- */
.pd-topbar { background: #fff; border-bottom: 1px solid var(--pd-line); }
/* Only the icon-only buttons are squares. The profile button holds an
   avatar, a name and a caret — forcing it to 40px was what knocked the
   avatar out of line. */
.pd-topbar .btn-light { width: auto; height: 40px; padding: 0 10px; border-radius: 10px; }
.pd-topbar .ms-auto > .btn-light { width: 40px; padding: 0; }
.pd-topbar .dropdown > .btn-light { padding: 0 10px 0 6px; gap: 8px; }
.pd-topbar .pd-avatar { width: 28px !important; height: 28px !important; font-size: 11px !important; }

/* ---- sidebar: quieter, no tiles ---- */
.pd-sidebar { background: #182628; }
.pd-nav-link { color: #B7ADA1; border-radius: 10px; }
.pd-nav-link svg {
  width: 20px; height: 20px; padding: 0; background: none !important;
  border-radius: 0; stroke-width: 1.9;
}
.pd-nav-link:hover { background: rgba(255,255,255,.06); }
.pd-nav-link.is-active { background: var(--pd-orange-500); color: #fff; }
.pd-nav-link.is-active svg { background: none !important; }
.pd-nav-div { margin: 8px 10px 2px; }
.pd-nav-div span { background: rgba(255,255,255,.08); }
.pd-nav-section { color: #7C7268; }
.pd-sidebar__logo { background: var(--pd-orange-500); }

/* ---- stat spines off; LocalWell has none and it reads cleaner ---- */
.pd-card .pd-stat { padding-left: 0; }
.pd-card .pd-stat::before { display: none; }
.pd-stat__label { font-size: 11px; letter-spacing: .04em; }
.pd-stat__value { font-family: var(--pd-font); font-weight: 700; letter-spacing: -.02em; }

/* ---- no more press-down cards ---- */
a.pd-card:hover, .pd-card--link:hover { transform: none; box-shadow: var(--pd-shadow); }

/* ===================================================================
   Widget wall — soft 3D cards
   A card is lit from above: a bright top edge, a two-layer shadow that
   spreads as it falls, and a real lift on hover. Enough to feel solid,
   not enough to look like a 2009 button.
   =================================================================== */

.pd-card {
  background:
    linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,0) 42%),
    var(--pd-surface);
  border-top: 1px solid rgba(255,255,255,.9);
  box-shadow:
    0 1px 1px rgba(24,38,40,.04),
    0 3px 6px rgba(24,38,40,.05),
    0 10px 22px rgba(24,38,40,.055);
  transition: transform .2s cubic-bezier(.2,.7,.3,1), box-shadow .2s cubic-bezier(.2,.7,.3,1);
}
.pd-card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 2px 2px rgba(24,38,40,.05),
    0 6px 12px rgba(24,38,40,.07),
    0 18px 38px rgba(24,38,40,.09);
}

/* the accent rule under a card title picks up the light too */
.pd-card__title::after { box-shadow: 0 1px 2px rgba(59,148,94,.45); }

/* ---- greeting row ---- */
.pd-hello h1 { font-size: 21px; font-weight: 800; letter-spacing: -.03em; }
.pd-hello p  { font-size: 12.5px; color: var(--pd-text-mute); margin-top: 1px; }

/* ---- segmented range control ---- */
.pd-seg { display: inline-flex; background: var(--pd-soft, #F3F0EC); border-radius: 99px; padding: 3px; gap: 2px; }
.pd-seg a {
  font-size: 12.5px; font-weight: 600; color: var(--pd-text-mute);
  padding: 6px 14px; border-radius: 99px; text-decoration: none; white-space: nowrap;
}
.pd-seg a:hover { color: var(--pd-text); text-decoration: none; }
.pd-seg a.is-on { background: #fff; color: var(--pd-text); box-shadow: 0 1px 2px rgba(24,38,40,.10); }

/* ---- the three-column wall ---- */
.pd-wall { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) 330px; gap: 14px; align-items: start; }
.pd-wall > div { display: grid; gap: 14px; }
@media (max-width: 1180px) { .pd-wall { grid-template-columns: minmax(0,1fr) minmax(0,1fr); } .pd-wall > div:last-child { grid-column: 1 / -1; } }
@media (max-width: 760px)  { .pd-wall { grid-template-columns: 1fr; } .pd-wall > div:last-child { grid-column: auto; } }

/* ---- kpi tile ---- */
.pd-kpi__v { display: flex; align-items: baseline; gap: 8px; margin: 7px 0 2px; }
.pd-kpi__v b { font-size: 25px; font-weight: 700; color: var(--pd-text); letter-spacing: -.03em; }
.pd-delta { font-family: var(--pd-mono); font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: 99px; }
.pd-delta--up { background: var(--pd-success-soft); color: var(--pd-success); }
.pd-delta--dn { background: var(--pd-danger-soft);  color: var(--pd-danger); }
.pd-delta--flat { background: var(--pd-border-soft); color: var(--pd-text-mute); }

/* ---- a stat line with a coloured leading tile ---- */
.pd-line { display: flex; align-items: center; gap: 11px; padding: 10px 0; border-top: 1px solid var(--pd-border-soft); }
.pd-line:first-child { border-top: 0; padding-top: 0; }
.pd-line > i {
  width: 34px; height: 34px; border-radius: 11px; flex: none; font-style: normal;
  display: grid; place-items: center; font-size: 11.5px; font-weight: 700;
  font-family: var(--pd-mono);
}
.pd-line b { display: block; font-size: 12.5px; font-weight: 600; color: var(--pd-text); }
.pd-line span { display: block; font-size: 11.5px; color: var(--pd-text-mute); }
.pd-line s { margin-left: auto; text-decoration: none; font-family: var(--pd-mono); font-weight: 700; color: var(--pd-text); font-size: 13px; }

/* ---- setup, reduced to one dismissible line ---- */
.pd-setup {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: var(--pd-orange-50); border-radius: 12px;
  padding: 11px 15px; margin-bottom: 14px;
}
.pd-setup b { font-size: 13px; color: var(--pd-text); font-weight: 600; }
.pd-setup__bar { width: 92px; height: 6px; border-radius: 3px; background: rgba(59,148,94,.22); overflow: hidden; }
.pd-setup__bar i { display: block; height: 100%; background: var(--pd-primary); border-radius: 3px; }
.pd-setup__next { font-size: 12px; color: var(--pd-orange-700); }
.pd-setup a { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--pd-orange-700); }
.pd-setup__x {
  background: none; border: 0; cursor: pointer; color: var(--pd-orange-700);
  opacity: .55; font-size: 14px; line-height: 1; padding: 2px 4px;
}
.pd-setup__x:hover { opacity: 1; }

/* ---- sidebar: narrower rail, louder labels ---- */
:root { --pd-sidebar-w: 250px; }
.pd-sidebar__nav { padding: 6px 11px 22px; }
.pd-nav-link {
  font-size: 14.5px;
  font-weight: 600;
  gap: 12px;
  padding: 9px 10px;
  color: #C6BCB0;
}
.pd-nav-link.is-active { font-weight: 700; }
.pd-nav-link svg { width: 21px; height: 21px; stroke-width: 2.1; }
.pd-nav-section { font-size: 10px; letter-spacing: .13em; font-weight: 700; color: #7C9089; }
.pd-sidebar__name { font-size: 16px; }

/* ==================================================================
   POLISH LAYER — richer colour, motion, illustration support.
   Sits on top of CLEAN: still borderless, still airy. Every animation
   is disabled under prefers-reduced-motion.
   ================================================================== */

:root {
  --pd-grad: linear-gradient(135deg, #3B945E 0%, #57BA98 55%, #65CCB8 100%);
  --pd-grad-deep: linear-gradient(135deg, #2F7E4F 0%, #3B945E 100%);
  --pd-ease: cubic-bezier(.22,.9,.32,1);
  /* avatar hue palette (JS assigns data-hue 0..7 from the name) */
  --pd-h0:#3B945E; --pd-h1:#0E8F5E; --pd-h2:#5B6DEE; --pd-h3:#276B43;
  --pd-h4:#0E8FA8; --pd-h5:#B4489B; --pd-h6:#7A5CC9; --pd-h7:#2E7D46;
}

/* ---------- card entrance + hover ---------- */
.pd-card { transition: transform .22s var(--pd-ease), box-shadow .22s var(--pd-ease); }
.pd-anim .pd-card {
  opacity: 0; transform: translateY(14px);
  animation: pdRise .5s var(--pd-ease) forwards;
  animation-delay: calc(var(--pd-d, 0) * 60ms);
}
@keyframes pdRise { to { opacity: 1; transform: none; } }
a.pd-card:hover, .pd-card--hover:hover {
  transform: translateY(-3px);
  box-shadow: 0 2px 4px rgba(24,38,40,.05), 0 10px 26px rgba(24,38,40,.10);
}

/* ---------- KPI value pop after count-up ---------- */
.pd-stat__value { font-variant-numeric: tabular-nums; }
.pd-stat__value.pd-pop { animation: pdPop .35s var(--pd-ease); }
@keyframes pdPop { 40% { transform: scale(1.06); } 100% { transform: none; } }

/* ---------- coloured avatars ---------- */
.pd-avatar { transition: transform .18s var(--pd-ease); color: #fff; }
.pd-avatar[data-hue="0"] { background: var(--pd-h0); } .pd-avatar[data-hue="1"] { background: var(--pd-h1); }
.pd-avatar[data-hue="2"] { background: var(--pd-h2); } .pd-avatar[data-hue="3"] { background: var(--pd-h3); }
.pd-avatar[data-hue="4"] { background: var(--pd-h4); } .pd-avatar[data-hue="5"] { background: var(--pd-h5); }
.pd-avatar[data-hue="6"] { background: var(--pd-h6); } .pd-avatar[data-hue="7"] { background: var(--pd-h7); }
a:hover > .pd-avatar, .pd-card:hover .pd-avatar--lg { transform: scale(1.06) rotate(-2deg); }

/* ---------- buttons: gradient primary with sheen sweep ---------- */
.btn-primary {
  background: var(--pd-grad-deep); border: 0;
  position: relative; overflow: hidden;
  transition: transform .15s var(--pd-ease), box-shadow .2s var(--pd-ease), filter .2s;
}
.btn-primary::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.35) 48%, transparent 62%);
  transform: translateX(-120%);
}
.btn-primary:hover { filter: brightness(1.04); box-shadow: 0 6px 18px rgba(59,148,94,.32); }
.btn-primary:hover::after { transform: translateX(120%); transition: transform .6s var(--pd-ease); }
.btn:active { transform: scale(.97); }
.btn-success { box-shadow: none; transition: transform .15s var(--pd-ease), box-shadow .2s; }
.btn-success:hover { box-shadow: 0 5px 14px rgba(14,143,94,.3); }

/* ---------- topbar quick links: sliding underline ---------- */
.pd-quick { position: relative; }
.pd-quick::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: 3px; height: 2px;
  background: var(--pd-grad); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .25s var(--pd-ease);
}
.pd-quick:hover::after { transform: scaleX(1); }
.pd-search input { transition: box-shadow .2s var(--pd-ease); }
.pd-search input:focus { box-shadow: 0 0 0 3px rgba(59,148,94,.18); }

/* ---------- sidebar micro-motion ---------- */
.pd-nav-link { transition: background .18s, color .18s, padding-left .18s var(--pd-ease); }
.pd-nav-link:hover { padding-left: 18px; }
.pd-nav-link svg { transition: transform .18s var(--pd-ease); }
.pd-nav-link:hover svg { transform: translateX(2px) scale(1.06); }
.pd-nav-link.is-active { box-shadow: 0 4px 14px rgba(59,148,94,.35); }

/* ---------- tables ---------- */
.pd-table tbody tr { transition: background .15s, box-shadow .15s; }
.pd-table tbody tr:hover { background: #F0F8F4; box-shadow: inset 3px 0 0 var(--pd-primary, #3B945E); }

/* ---------- badges: soft tinted pills + due pulse ---------- */
.pd-badge { transition: transform .15s var(--pd-ease); }
tr:hover .pd-badge { transform: scale(1.04); }
.pd-badge--warning { animation: pdBreath 2.6s ease-in-out infinite; }
@keyframes pdBreath { 50% { box-shadow: 0 0 0 4px rgba(39,107,67,.10); } }

/* ---------- flash messages slide in ---------- */
.alert { animation: pdFlash .4s var(--pd-ease); }
@keyframes pdFlash { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- empty states with illustrations ---------- */
.pd-empty__art {
  width: 132px; max-width: 40vw; height: auto; margin: 0 auto 14px; display: block;
  animation: pdFloat 4.5s ease-in-out infinite;
}
@keyframes pdFloat { 50% { transform: translateY(-6px); } }
.pd-empty__title { font-weight: 700; }

/* ---------- setup progress shimmer ---------- */
.pd-setup .progress-bar, .pd-setup__bar i {
  background: var(--pd-grad) !important; background-size: 200% 100% !important;
  animation: pdSlide 2.4s linear infinite;
}
@keyframes pdSlide { to { background-position: -200% 0; } }

/* ---------- skeleton shimmer utility ---------- */
.pd-skel {
  border-radius: 8px; background: linear-gradient(90deg, #E7EEEA 25%, #F3F8F5 45%, #E7EEEA 65%);
  background-size: 200% 100%; animation: pdSlide 1.4s linear infinite; color: transparent !important;
}

/* ---------- sparkline draw ---------- */
.pd-drawn { stroke-dasharray: var(--pd-len, 300); stroke-dashoffset: var(--pd-len, 300);
  animation: pdDraw 1s var(--pd-ease) .25s forwards; }
@keyframes pdDraw { to { stroke-dashoffset: 0; } }

/* ---------- workspace left list ---------- */
.pd-cust { transition: background .15s, transform .15s var(--pd-ease); border-radius: 10px; }
.pd-cust:hover { background: #F0F8F4; transform: translateX(2px); }

/* ---------- gem: soft float + halo (kept subtle) ---------- */
.pd-gem, .pd-nav-link .pd-gem { animation: pdGem 5s ease-in-out infinite; }
@keyframes pdGem { 50% { transform: translateY(-2px); filter: drop-shadow(0 3px 5px rgba(101,204,184,.45)); } }

/* ---------- reduced motion: everything off ---------- */
@media (prefers-reduced-motion: reduce) {
  .pd-anim .pd-card { animation: none; opacity: 1; transform: none; }
  .pd-card, .pd-nav-link, .pd-avatar, .btn, .pd-quick::after { transition: none !important; }
  .pd-badge--warning, .pd-empty__art, .pd-setup .progress-bar, .pd-setup__bar i,
  .pd-skel, .pd-drawn, .pd-gem, .alert { animation: none !important; }
  .pd-drawn { stroke-dashoffset: 0; }
}

/* gradient text (dashboard greeting etc.) */
.pd-grad-text {
  background: var(--pd-grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ==================================================================
   GREEN THEME EXTRAS — logo, auth ambience, page fade.
   ================================================================== */
.pd-logo-img { transition: transform .25s var(--pd-ease); }
a:hover > .pd-logo-img, .pd-sidebar__brand:hover .pd-logo-img { transform: scale(1.04) rotate(-1.5deg); }

/* soft floating colour blobs behind the login card */
body.pd-auth { position: relative; overflow-x: hidden; background: #F2F2F2; }
body.pd-auth::before, body.pd-auth::after {
  content: ""; position: fixed; z-index: 0; border-radius: 50%;
  filter: blur(70px); opacity: .5; pointer-events: none;
}
body.pd-auth::before {
  width: 420px; height: 420px; left: -120px; top: -100px;
  background: radial-gradient(circle, #65CCB8, transparent 70%);
  animation: pdBlobA 16s ease-in-out infinite;
}
body.pd-auth::after {
  width: 480px; height: 480px; right: -160px; bottom: -140px;
  background: radial-gradient(circle, #3B945E, transparent 70%);
  animation: pdBlobB 19s ease-in-out infinite;
}
@keyframes pdBlobA { 50% { transform: translate(50px, 40px) scale(1.12); } }
@keyframes pdBlobB { 50% { transform: translate(-60px, -40px) scale(1.08); } }
body.pd-auth > main, body.pd-auth .pd-auth-card { position: relative; z-index: 1; }

/* gentle page fade on every app screen */
.pd-main { animation: pdPage .35s var(--pd-ease); }
@keyframes pdPage { from { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  body.pd-auth::before, body.pd-auth::after, .pd-main { animation: none !important; }
  .pd-logo-img { transition: none; }
}

/* ==================================================================
   GREEN SIDEBAR — the whole side menu wears the active-state green.
   Active item inverts to a white pill so it still stands out.
   ================================================================== */
.pd-sidebar {
  background: linear-gradient(180deg, #3B945E 0%, #338554 55%, #2F7E4F 100%);
  color: rgba(255,255,255,.88);
}
.pd-sidebar__name { color: #fff; }
.pd-nav-section { color: rgba(255,255,255,.62); }
.pd-nav-link { color: rgba(255,255,255,.88); }
.pd-nav-link:hover { background: rgba(255,255,255,.12); color: #fff; }
.pd-nav-link svg { background: rgba(255,255,255,.10); border-radius: 8px; padding: 3px; }
.pd-nav-link:hover svg { background: rgba(255,255,255,.18); }
.pd-nav-link.is-active {
  background: #FFFFFF; color: #276B43; font-weight: 700;
  box-shadow: 0 6px 18px rgba(15,40,25,.28);
}
.pd-nav-link.is-active::before { background: #65CCB8; }
.pd-nav-link.is-active svg { background: #EAF7F1; color: #2F7E4F; }
.pd-nav-link.is-locked { opacity: .6; }
.pd-sidebar hr, .pd-sidebar__sep { border-color: rgba(255,255,255,.15); }
/* logo chip: white pad so the colourful emblem sits clean on green */
.pd-sidebar__brand .pd-logo-img {
  background: #fff; border-radius: 10px; padding: 3px;
  box-shadow: 0 3px 10px rgba(15,40,25,.25);
}
/* scrollbar + any footer card */
.pd-sidebar ::-webkit-scrollbar-thumb { background: rgba(255,255,255,.28); }
.pd-sidebar .pd-upgrade, .pd-sidebar__foot { background: rgba(0,0,0,.16); color: rgba(255,255,255,.9); }

/* ==================================================================
   LOGIN SPLIT v2 — half video, half login. No blobs, no clutter.
   ================================================================== */
body.pd-auth::before, body.pd-auth::after { display: none; }   /* blobs off */

.pd-auth { grid-template-columns: 1fr; }
@media (min-width: 992px) { .pd-auth { grid-template-columns: 1fr 1fr; } }

.pd-auth__aside {
  position: relative; overflow: hidden; background: #182628;
  padding: 48px 52px;
}
.pd-auth__video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.pd-auth__shade {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(24,38,40,.55) 0%, rgba(24,38,40,.28) 45%, rgba(24,38,40,.68) 100%);
}
.pd-auth__aside-in {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; justify-content: space-between;
}
.pd-auth__brandchip {
  display: inline-block; background: #fff; border-radius: 16px;
  padding: 12px 18px; box-shadow: 0 12px 34px rgba(0,0,0,.35);
  width: fit-content;
  animation: pdRise .6s var(--pd-ease) both;
}
.pd-auth__aside-in h1 {
  color: #fff; text-shadow: 0 2px 14px rgba(0,0,0,.35);
  animation: pdRise .6s var(--pd-ease) .12s both;
}
.pd-auth__aside-in p, .pd-auth__aside-in .pd-feature-list { animation: pdRise .6s var(--pd-ease) .22s both; }
.pd-feature-list li { color: #fff; font-size: 15px; font-weight: 500; }
.pd-feature-list .tick {
  background: rgba(255,255,255,.16); color: #65CCB8;
  border-radius: 50%; font-weight: 800;
}

/* right side: calm, focused card */
.pd-auth__panel { background: #F2F2F2; }
.pd-auth__box {
  max-width: 430px; background: #fff; border-radius: 20px;
  padding: 38px 36px; box-shadow: 0 4px 10px rgba(24,38,40,.05), 0 24px 60px rgba(24,38,40,.10);
  animation: pdRise .55s var(--pd-ease) .1s both;
}
.pd-auth__box h1, .pd-auth__box .h3, .pd-auth__box h2 { letter-spacing: -.02em; }
.pd-auth__box .btn-primary { padding-top: 12px; padding-bottom: 12px; font-weight: 700; border-radius: 12px; }
.pd-auth__box .form-control { padding: 11px 14px; border-radius: 11px; }
@media (max-width: 991.98px) { .pd-auth__box { box-shadow: 0 10px 30px rgba(24,38,40,.10); } }

/* ==================================================================
   SIDEBAR SIZE-UP — bigger, bolder menu, roomier rows.
   ================================================================== */
:root { --pd-sidebar-w: 268px; }
.pd-nav-link {
  font-size: 15.5px; font-weight: 700; letter-spacing: .1px;
  padding-top: 11px; padding-bottom: 11px; gap: 12px;
}
.pd-nav-link svg { width: 26px; height: 26px; stroke-width: 2.2; padding: 4px; }
.pd-nav-section { font-size: 11.5px; letter-spacing: .16em; font-weight: 800; }
.pd-sidebar__name { font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.pd-nav-link.is-active { font-weight: 800; }

/* ==================================================================
   GLOBAL TIGHTEN — headers, tables, focus states.
   ================================================================== */
.pd-card__title { font-weight: 700; letter-spacing: -.01em; }
.pd-table thead th {
  text-transform: uppercase; font-size: 11.5px; letter-spacing: .06em;
  color: #6E8B84; font-weight: 700;
}
.form-control:focus, .form-select:focus {
  border-color: #57BA98; box-shadow: 0 0 0 3px rgba(87,186,152,.22);
}
.pd-topbar { backdrop-filter: saturate(1.1) blur(6px); }

@media (prefers-reduced-motion: reduce) {
  .pd-auth__brandchip, .pd-auth__aside-in h1, .pd-auth__aside-in p,
  .pd-auth__aside-in .pd-feature-list, .pd-auth__box { animation: none !important; }
}

/* ==================================================================
   LOGIN SPLIT v3 — true 50/50. (body.pd-auth was also catching the
   grid rules, halving the halves — pin it to display:block.)
   ================================================================== */
body.pd-auth { display: block !important; }
@media (min-width: 992px) {
  div.pd-auth { grid-template-columns: 50% 50% !important; }
}
.pd-auth__aside { padding: 56px 60px; }
.pd-auth__shade {
  background: linear-gradient(180deg, rgba(24,38,40,.42) 0%, rgba(24,38,40,.16) 45%, rgba(24,38,40,.55) 100%);
}

/* bigger, richer login card — and flatten the inner pd-card so it's ONE card */
.pd-auth__box {
  max-width: 520px; padding: 46px 46px 40px; border-radius: 24px;
  position: relative; overflow: hidden;
}
.pd-auth__box::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 5px;
  background: linear-gradient(90deg, #3B945E, #57BA98, #65CCB8);
}
.pd-auth__box .pd-card { background: transparent; box-shadow: none; border-radius: 0; }
.pd-auth__box .pd-card__body { padding: 0 !important; }
.pd-auth__box h1, .pd-auth__box .h4, .pd-auth__box h2 { font-size: 30px; font-weight: 800; }
.pd-auth__box .form-control { padding: 13px 15px; font-size: 15.5px; }
.pd-auth__box .btn-primary { padding: 13px; font-size: 16px; border-radius: 13px; }
.pd-auth__box label, .pd-auth__box .form-label { font-weight: 700; }
@media (max-width: 991.98px) { .pd-auth__box { max-width: 460px; padding: 34px 26px; } }

/* ==================================================================
   SIDEBAR ICON SHINE — a light glint sweeps each icon chip in turn.
   ================================================================== */
.pd-nav-link svg {
  background-image: linear-gradient(115deg,
    rgba(255,255,255,.10) 0%, rgba(255,255,255,.10) 38%,
    rgba(255,255,255,.55) 50%,
    rgba(255,255,255,.10) 62%, rgba(255,255,255,.10) 100%);
  background-size: 300% 100%; background-position: 110% 0;
  animation: pdGlint 7s linear infinite;
}
.pd-nav-link:nth-child(1) svg  { animation-delay: 0s; }
.pd-nav-link:nth-child(2) svg  { animation-delay: .35s; }
.pd-nav-link:nth-child(3) svg  { animation-delay: .7s; }
.pd-nav-link:nth-child(4) svg  { animation-delay: 1.05s; }
.pd-nav-link:nth-child(5) svg  { animation-delay: 1.4s; }
.pd-nav-link:nth-child(6) svg  { animation-delay: 1.75s; }
.pd-nav-link:nth-child(7) svg  { animation-delay: 2.1s; }
.pd-nav-link:nth-child(8) svg  { animation-delay: 2.45s; }
@keyframes pdGlint {
  0%   { background-position: 110% 0; }
  18%  { background-position: -10% 0; }
  100% { background-position: -10% 0; }
}
.pd-nav-link.is-active svg { animation: none; background-image: none; }

/* sidebar brand: full real logo on a white chip, no text */
.pd-sidebar__brand { justify-content: center; padding-top: 14px; padding-bottom: 14px; }
.pd-sidebar__brand .pd-logo-img {
  height: 44px !important; width: auto !important;
  padding: 6px 12px; border-radius: 12px;
}

@media (prefers-reduced-motion: reduce) {
  .pd-nav-link svg { animation: none !important; }
}

/* ==================================================================
   LOGIN VIDEO v2 — the left half is ONLY the video (user's mp4),
   looping, with a sound toggle. No overlay content.
   ================================================================== */
.pd-auth__aside--video { padding: 0; }
.pd-auth__aside--video .pd-auth__video { position: absolute; inset: 0; }
.pd-auth__sound {
  position: absolute; right: 18px; bottom: 18px; z-index: 3;
  width: 46px; height: 46px; border-radius: 50%; border: 0;
  background: rgba(24,38,40,.55); color: #fff; font-size: 20px;
  backdrop-filter: blur(4px); cursor: pointer;
  transition: transform .15s var(--pd-ease), background .2s;
}
.pd-auth__sound:hover { background: rgba(24,38,40,.75); transform: scale(1.06); }

/* ==================================================================
   SIDEBAR ICON ANIMATION v2 — unmistakable: each icon glints AND does
   a quick wiggle in turn, forever.
   ================================================================== */
.pd-nav-link svg {
  background-image: linear-gradient(115deg,
    rgba(255,255,255,.10) 0%, rgba(255,255,255,.10) 35%,
    rgba(255,255,255,.85) 50%,
    rgba(255,255,255,.10) 65%, rgba(255,255,255,.10) 100%);
  background-size: 300% 100%; background-position: 110% 0;
  animation: pdGlint 6s linear infinite, pdWiggle 6s ease-in-out infinite;
}
@keyframes pdWiggle {
  0%, 8%, 100% { transform: none; }
  2% { transform: rotate(-10deg) scale(1.18); }
  4% { transform: rotate(7deg)  scale(1.12); }
  6% { transform: rotate(-3deg) scale(1.05); }
}
.pd-nav-link:hover svg { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .pd-auth__sound { transition: none; }
}
