:root {
  --gpdm-desk-bg: #f3f5f7;
  --gpdm-desk-card: #fff;
  --gpdm-desk-line: #dde2e6;
  --gpdm-desk-text: #18212b;
  --gpdm-desk-muted: #66727e;
  --gpdm-desk-accent: #c91f2c;
  --gpdm-desk-dark: #101821;
}
.gpdm-desk-shell, .gpdm-desk-shell * { box-sizing: border-box; }
.gpdm-desk-shell { min-height: 70vh; background: var(--gpdm-desk-bg); color: var(--gpdm-desk-text); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.gpdm-desk-topbar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; padding: 13px 22px; border-bottom: 1px solid var(--gpdm-desk-line); background: #fff; }
.gpdm-desk-brand { display: flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; }
.gpdm-desk-brand > span { display: inline-grid; place-items: center; min-width: 54px; height: 35px; border-radius: 5px; background: var(--gpdm-desk-dark); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.gpdm-desk-brand strong, .gpdm-desk-brand small { display: block; }
.gpdm-desk-brand strong { font-size: 14px; }
.gpdm-desk-brand small { color: var(--gpdm-desk-muted); font-size: 11px; }
.gpdm-desk-topbar nav a { display: inline-block; padding: 8px 11px; border-radius: 6px; background: #eef1f3; color: var(--gpdm-desk-text); text-decoration: none; font-size: 12px; font-weight: 750; }
.gpdm-desk-user { display: flex; align-items: center; justify-content: flex-end; gap: 14px; }
.gpdm-desk-user span { text-align: right; }
.gpdm-desk-user strong, .gpdm-desk-user small { display: block; }
.gpdm-desk-user strong { font-size: 12px; }
.gpdm-desk-user small { color: var(--gpdm-desk-muted); font-size: 10.5px; }
.gpdm-desk-user > a { color: var(--gpdm-desk-accent); font-size: 12px; font-weight: 750; text-decoration: none; }
.gpdm-desk-main { width: min(1400px, calc(100% - 34px)); margin: 0 auto; padding: 28px 0 68px; }
.gpdm-desk-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 20px; }
.gpdm-desk-heading p { margin: 0 0 4px; color: var(--gpdm-desk-accent); font-size: 10.5px; font-weight: 850; text-transform: uppercase; letter-spacing: .1em; }
.gpdm-desk-heading h1 { margin: 0 0 5px; font-size: clamp(25px, 3vw, 34px); line-height: 1.08; }
.gpdm-desk-heading span { color: var(--gpdm-desk-muted); font-size: 13px; }
.gpdm-desk-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.gpdm-desk-stats > div { padding: 16px; border: 1px solid var(--gpdm-desk-line); border-radius: 9px; background: #fff; }
.gpdm-desk-stats strong, .gpdm-desk-stats span { display: block; }
.gpdm-desk-stats strong { font-size: 26px; line-height: 1; }
.gpdm-desk-stats span { margin-top: 7px; color: var(--gpdm-desk-muted); font-size: 11.5px; font-weight: 700; }
.gpdm-desk-panel { border: 1px solid var(--gpdm-desk-line); border-radius: 9px; background: #fff; overflow: hidden; }
.gpdm-desk-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 17px; border-bottom: 1px solid var(--gpdm-desk-line); }
.gpdm-desk-panel-head h2 { margin: 0; font-size: 15px; }
.gpdm-desk-panel-head span { color: var(--gpdm-desk-muted); font-size: 11px; }
.gpdm-desk-table-wrap { overflow-x: auto; }
.gpdm-desk-table-wrap table { width: 100%; border-collapse: collapse; font-size: 12px; }
.gpdm-desk-table-wrap th { padding: 10px 13px; background: #f7f8f9; color: #66727e; text-align: left; font-size: 10px; text-transform: uppercase; letter-spacing: .05em; }
.gpdm-desk-table-wrap td { padding: 13px; border-top: 1px solid #edf0f2; vertical-align: middle; }
.gpdm-desk-table-wrap td strong, .gpdm-desk-table-wrap td small { display: block; }
.gpdm-desk-table-wrap td small { margin-top: 2px; color: #8c969f; }
.gpdm-desk-table-wrap a { color: var(--gpdm-desk-accent); font-weight: 800; text-decoration: none; }
.gpdm-desk-empty { padding: 34px !important; color: var(--gpdm-desk-muted); text-align: center; }
.gpdm-desk-status { display: inline-flex; padding: 4px 8px; border-radius: 999px; background: #eef1f3; color: #4f5b66; font-size: 10.5px !important; font-weight: 800; }
.status-gpdm_dest_review { background: #e8f1ff; color: #164d8f; }
.status-gpdm_dest_changes { background: #fff1d6; color: #7b5400; }
.status-gpdm_dest_approved { background: #e6f7ed; color: #16663a; }
.gpdm-desk-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
.gpdm-desk-featured img { display: block; width: 100%; height: auto; }
.gpdm-desk-article { padding-bottom: 20px; }
.gpdm-desk-standfirst { margin: 22px 24px 0; color: #394651; font-size: 18px; line-height: 1.45; font-weight: 600; }
.gpdm-desk-content { padding: 8px 24px 18px; font-family: Georgia, serif; font-size: 17px; line-height: 1.72; }
.gpdm-desk-content img { max-width: 100%; height: auto; }
.gpdm-desk-sidebar { display: grid; gap: 14px; }
.gpdm-desk-meta, .gpdm-desk-actions { padding: 16px; }
.gpdm-desk-meta h2, .gpdm-desk-actions h2 { margin: 0 0 12px; font-size: 14px; }
.gpdm-desk-meta-row { padding: 9px 0; border-top: 1px solid #edf0f2; }
.gpdm-desk-meta-row:first-of-type { border-top: 0; }
.gpdm-desk-meta-row span, .gpdm-desk-meta-row strong { display: block; }
.gpdm-desk-meta-row span { margin-bottom: 4px; color: var(--gpdm-desk-muted); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.gpdm-desk-meta-row strong { overflow-wrap: anywhere; font-size: 12px; line-height: 1.45; }
.gpdm-desk-actions label { display: block; margin-bottom: 6px; font-size: 11.5px; font-weight: 800; }
.gpdm-desk-actions textarea { width: 100%; min-height: 90px; padding: 9px; border: 1px solid #ccd3d8; border-radius: 6px; font: inherit; font-size: 12px; resize: vertical; }
.gpdm-desk-action-buttons { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 11px; }
.gpdm-desk-button { appearance: none; display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 8px 12px; border: 1px solid #cbd2d8; border-radius: 6px; background: #fff; color: var(--gpdm-desk-text); font: inherit; font-size: 12px; font-weight: 800; text-decoration: none; cursor: pointer; }
.gpdm-desk-button.is-primary { border-color: var(--gpdm-desk-accent); background: var(--gpdm-desk-accent); color: #fff; }
.gpdm-desk-button.is-warning { border-color: #d7a451; background: #fff8eb; color: #724400; }
.gpdm-desk-button.is-publish { border-color: var(--gpdm-desk-dark); background: var(--gpdm-desk-dark); color: #fff; }
.gpdm-desk-help { margin: 10px 0 0; color: var(--gpdm-desk-muted); font-size: 10.5px; }
.gpdm-desk-alert { width: min(1400px, calc(100% - 34px)); margin: 16px auto 0; padding: 11px 14px; border: 1px solid #b9dfc8; border-radius: 7px; background: #edf9f1; color: #175d35; font-size: 12.5px; }
.gpdm-desk-alert.is-error { border-color: #efb8b8; background: #fff0f0; color: #8a1c1c; }
.gpdm-desk-login { display: grid; min-height: 70vh; place-items: center; padding: 30px 16px; background: var(--gpdm-desk-bg); }
.gpdm-desk-login-card { width: min(420px, 100%); padding: 28px; border: 1px solid var(--gpdm-desk-line); border-radius: 10px; background: #fff; box-shadow: 0 18px 50px rgba(20,30,40,.08); }
.gpdm-desk-login-card .gpdm-desk-brand { margin-bottom: 20px; }
.gpdm-desk-login-card h1 { margin: 0 0 2px; font-size: 20px; }
.gpdm-desk-login-card p { margin: 0; color: var(--gpdm-desk-muted); font-size: 11.5px; }
.gpdm-desk-login-card label { display: block; margin: 12px 0 5px; font-size: 12px; font-weight: 750; }
.gpdm-desk-login-card input[type="text"], .gpdm-desk-login-card input[type="password"] { width: 100%; min-height: 42px; padding: 8px 10px; border: 1px solid #ccd3d8; border-radius: 6px; }
.gpdm-desk-login-card .login-remember label { display: flex; align-items: center; gap: 7px; font-weight: 500; }
.gpdm-desk-login-card .button-primary { width: 100%; min-height: 42px; margin-top: 8px; border: 0; border-radius: 6px; background: var(--gpdm-desk-dark); color: #fff; font-weight: 800; cursor: pointer; }
.gpdm-desk-login-links { margin-top: 14px !important; text-align: center; }
.gpdm-desk-login-links a { color: var(--gpdm-desk-accent); }
.gpdm-desk-security { margin-top: 18px !important; padding-top: 14px; border-top: 1px solid var(--gpdm-desk-line); text-align: center; }
@media (max-width: 980px) {
  .gpdm-desk-layout { grid-template-columns: 1fr; }
  .gpdm-desk-topbar { grid-template-columns: 1fr auto; }
  .gpdm-desk-topbar nav { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .gpdm-desk-topbar { grid-template-columns: 1fr; }
  .gpdm-desk-user { justify-content: space-between; }
  .gpdm-desk-user span { text-align: left; }
  .gpdm-desk-main { width: min(100% - 20px, 1400px); padding-top: 20px; }
  .gpdm-desk-heading { align-items: flex-start; flex-direction: column; }
  .gpdm-desk-stats { grid-template-columns: repeat(2, 1fr); }
  .gpdm-desk-content { padding-left: 17px; padding-right: 17px; font-size: 16px; }
  .gpdm-desk-standfirst { margin-left: 17px; margin-right: 17px; }
}
.status-gpdm_dest_rejected { background: #ffe7e7; color: #8f1d1d; }
.gpdm-desk-button.is-danger { border-color: #c62828; background: #fff0f0; color: #8f1d1d; }
.gpdm-desk-alert.is-warning { border-color: #e1b967; background: #fff8e9; color: #704600; }

/* Standalone Publication Desk canvas: isolate it from publication theme chrome. */
html { margin: 0 !important; padding: 0 !important; background: #f3f5f7; }
body.gpdm-publication-desk-page { margin: 0 !important; padding: 0 !important; min-height: 100vh; background: var(--gpdm-desk-bg) !important; }
body.gpdm-publication-desk-page.admin-bar { margin-top: 0 !important; }
body.gpdm-publication-desk-page #wpadminbar { display: none !important; }
body.gpdm-publication-desk-page > .gpdm-desk-shell,
body.gpdm-publication-desk-page > .gpdm-desk-login { min-height: 100vh; }
