/* One shared rail; only the home workspace replaces the native business shell. */
#appPage > .gd-desktop { display: none; }
#appPage.gd-shell > #sidebar { display: none !important; }
#appPage.gd-home > #topbar,
#appPage.gd-home > .main-content { display: none !important; }
#appPage.gd-shell {
  --gd-shell-offset: 128px;
  --sidebar-width: 128px;
  --gd-ink: #263d55; --gd-muted: #7c91a6; --gd-blue: #3989ed; --gd-line: rgba(255,255,255,.83);
}
#appPage.gd-shell > .gd-desktop { color: var(--gd-ink); font-family: -apple-system,BlinkMacSystemFont,"SF Pro Display","PingFang SC","Microsoft YaHei",sans-serif; -webkit-font-smoothing: antialiased; }
#appPage.gd-shell:not(.gd-home) > .gd-desktop { display: block; position: static; width: 0; min-width: 0; height: 0; min-height: 0; margin: 0; padding: 0; overflow: visible; background: none; }
#appPage.gd-shell:not(.gd-home) > .gd-desktop::before { display: none; }
#appPage.gd-shell:not(.gd-home) .gd-workspace { display: none !important; }
#appPage.gd-shell:not(.gd-home) > #topbar { left: var(--gd-shell-offset) !important; right: 0 !important; width: calc(100% - var(--gd-shell-offset)) !important; margin-left: 0 !important; }
#appPage.gd-shell:not(.gd-home) > .main-content { margin-left: var(--gd-shell-offset) !important; width: calc(100% - var(--gd-shell-offset)) !important; min-width: 0; }
#appPage.gd-shell #menuToggle,
#appPage.gd-shell .sidebar-overlay,
#appPage.gd-shell ~ .sidebar-overlay,
#appPage.gd-shell ~ #sidebarOverlay { display: none !important; }

#appPage.gd-home { min-height: 100vh; min-height: 100svh; }
#appPage.gd-shell .gd-desktop,
#appPage.gd-shell .gd-desktop * { box-sizing: border-box; }
#appPage.gd-home .gd-desktop {
  --gd-ink: #263d55;
  --gd-muted: #7c91a6;
  --gd-blue: #3989ed;
  --gd-line: rgba(255,255,255,.83);
  display: grid;
  grid-template-columns: 80px minmax(0,1fr);
  gap: 24px;
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 100vh;
  min-height: 100svh;
  padding: 24px;
  overflow: hidden;
  color: var(--gd-ink);
  background:
    radial-gradient(ellipse at 83% 5%, rgba(179,214,251,.68), transparent 47%),
    radial-gradient(ellipse at 8% 88%, rgba(199,222,243,.65), transparent 44%),
    radial-gradient(ellipse at 75% 89%, rgba(232,223,244,.42), transparent 39%),
    linear-gradient(125deg,#edf4fa 0%,#f7f9fc 46%,#edf4fb 100%);
  font-family: -apple-system,BlinkMacSystemFont,"SF Pro Display","PingFang SC","Microsoft YaHei",sans-serif;
  -webkit-font-smoothing: antialiased;
}
#appPage.gd-home .gd-desktop::before {
  content: "";
  position: absolute;
  z-index: 0;
  width: 520px;
  height: 520px;
  top: 18%;
  right: -260px;
  border: 1px solid rgba(255,255,255,.36);
  border-radius: 50%;
  background: linear-gradient(145deg,rgba(255,255,255,.38),rgba(185,217,247,.07));
  box-shadow: 0 0 0 70px rgba(255,255,255,.075),0 0 0 140px rgba(255,255,255,.045);
  pointer-events: none;
}
#appPage.gd-shell .gd-symbols { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
#appPage.gd-shell .gd-desktop button { font-family: inherit; -webkit-tap-highlight-color: transparent; }
#appPage.gd-shell .gd-desktop button:focus-visible { outline: 3px solid rgba(52,134,235,.7); outline-offset: 5px; }
#appPage.gd-shell .gd-desktop svg { display: block; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
#appPage.gd-shell .gd-sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
#appPage.gd-shell .gd-avatar-input[hidden],
#appPage.gd-shell .gd-app[hidden],
#appPage.gd-shell .gd-folder-item[hidden],
#appPage.gd-shell .gd-folder[hidden] { display: none !important; }

#appPage.gd-shell .gd-rail {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  position: fixed; top: 24px; bottom: 24px; left: 24px; z-index: 50;
  width: 80px; min-width: 0; min-height: 0; padding: 18px 10px 14px;
  overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: rgba(147,173,199,.35) transparent;
  border: 1px solid var(--gd-line); border-radius: 28px;
  background: rgba(248,252,255,.74);
  box-shadow: 0 16px 40px rgba(65,96,135,.075),inset 0 1px 0 rgba(255,255,255,.94);
  -webkit-backdrop-filter: blur(26px) saturate(150%); backdrop-filter: blur(26px) saturate(150%);
  pointer-events: auto;
}
#appPage.gd-shell .gd-rail-brand {
  display: grid; place-items: center; position: relative; flex: 0 0 42px;
  width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.85); border-radius: 14px;
  background: linear-gradient(145deg,#fff,#edf6ff);
  box-shadow: 0 6px 15px rgba(71,131,194,.09),inset 0 1px 0 #fff;
  color: #438ee0; font-size: 25px; font-weight: 700; letter-spacing: -2px;
}
#appPage.gd-shell .gd-brand-dot { position: absolute; top: 8px; right: 8px; width: 4px; height: 4px; border-radius: 50%; background: #81baff; }
#appPage.gd-shell .gd-rail-main,
#appPage.gd-shell .gd-rail-secondary,
#appPage.gd-shell .gd-rail-footer { display: flex; flex: 0 0 auto; flex-direction: column; align-items: center; gap: 7px; width: 100%; }
#appPage.gd-shell .gd-rail-secondary { margin-top: auto; }
#appPage.gd-shell .gd-rail-footer { margin-top: 0; padding-top: 13px; border-top: 1px solid rgba(183,204,226,.32); gap: 6px; }
#appPage.gd-shell .gd-rail-item {
  display: flex; flex: 0 0 auto; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  width: 56px; min-height: 56px; padding: 8px 4px; border: 1px solid transparent; border-radius: 17px;
  background: transparent; color: #7890a8; font-size: 11px; line-height: 1.3; text-align: center;
  cursor: pointer; transition: background .18s ease,color .18s ease,box-shadow .18s ease;
}
#appPage.gd-shell .gd-rail-item[hidden] { display: none !important; }
#appPage.gd-shell .gd-rail-item svg { width: 22px; height: 22px; }
#appPage.gd-shell .gd-rail-item:not(:disabled):hover { color: #3685df; background: rgba(255,255,255,.65); }
#appPage.gd-shell .gd-rail-item.gd-rail-active { color: #3687e2; border-color: rgba(255,255,255,.95); background: rgba(255,255,255,.85); box-shadow: 0 5px 15px rgba(68,126,191,.09),inset 0 1px 0 #fff; }
#appPage.gd-shell .gd-rail-item:disabled { opacity: .49; cursor: default; }
#appPage.gd-shell .gd-rail-secondary .gd-rail-item { min-height: 50px; }
#appPage.gd-shell .gd-rail-utility { min-height: 48px; color: #8195a8; }
#appPage.gd-shell .gd-rail-utility svg { width: 20px; height: 20px; }
#appPage.gd-shell .gd-current { min-height: 84px; padding: 9px 3px; gap: 7px; }
#appPage.gd-shell .gd-current-icon { display: grid; place-items: center; flex: 0 0 32px; width: 32px; height: 32px; border: 1px solid rgba(255,255,255,.6); border-radius: 11px; background: var(--gd-icon-bg,linear-gradient(145deg,#71baff,#3989ed)); box-shadow: var(--gd-icon-shadow,0 5px 12px rgba(58,137,232,.17)),inset 0 1px 0 rgba(255,255,255,.45); color: #fff; }
#appPage.gd-shell .gd-current-icon svg { width: 19px; height: 19px; }
#appPage.gd-shell .gd-current-name { width: 100%; max-height: 29px; overflow: hidden; overflow-wrap: anywhere; font-size: 10px; line-height: 1.4; }
#appPage.gd-shell .gd-current-short { display: none; }

#appPage.gd-home .gd-workspace {
  grid-column: 2;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1224px;
  min-width: 0;
  min-height: calc(100svh - 48px);
  margin-inline: auto;
  padding: 26px 32px 8px;
}
#appPage.gd-home .gd-header { display: flex; align-items: center; justify-content: space-between; gap: 28px; min-width: 0; }
#appPage.gd-home .gd-user { display: flex; align-items: center; gap: 19px; min-width: 0; }
#appPage.gd-home .gd-avatar-btn { position: relative; flex: 0 0 70px; width: 70px; height: 70px; padding: 0; border: 0; border-radius: 24px; background: transparent; cursor: pointer; }
#appPage.gd-home .gd-avatar {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,.92);
  border-radius: inherit;
  background: linear-gradient(145deg,#fff 2%,#dfecfa 100%);
  box-shadow: 0 9px 22px rgba(67,109,154,.12),inset 0 1px 1px #fff;
  color: #5d8fb9;
  font-size: 30px;
  font-weight: 500;
}
#appPage.gd-home .gd-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
#appPage.gd-home .gd-avatar-edit { display: grid; place-items: center; position: absolute; right: -4px; bottom: -3px; width: 23px; height: 23px; border: 2px solid #f0f5fa; border-radius: 50%; background: #fff; color: #7b96ae; box-shadow: 0 2px 7px rgba(50,80,110,.12); }
#appPage.gd-home .gd-avatar-edit svg { width: 12px; height: 12px; stroke-width: 1.7; }
#appPage.gd-home .gd-avatar-btn:hover .gd-avatar-edit { color: #3283df; }
#appPage.gd-home .gd-welcome-text { min-width: 0; }
#appPage.gd-home .gd-eyebrow { margin: 0 0 9px; color: #8ca1b5; font-size: 11px; font-weight: 500; letter-spacing: 2px; }
#appPage.gd-home .gd-welcome { display: flex; flex-wrap: wrap; align-items: baseline; margin: 0; color: #2d4258; font-size: clamp(25px,2.1vw,32px); font-weight: 550; line-height: 1.3; letter-spacing: -.7px; }
#appPage.gd-home #gdName { overflow-wrap: anywhere; }
#appPage.gd-home .gd-clock { flex: 0 0 auto; padding-left: 20px; text-align: right; color: #3e5872; }
#appPage.gd-home .gd-time { display: block; min-width: 185px; font-family: -apple-system,BlinkMacSystemFont,"SF Pro Display",sans-serif; font-size: 42px; font-weight: 300; line-height: 1.1; letter-spacing: -1.2px; font-variant-numeric: tabular-nums; }
#appPage.gd-home .gd-date { margin: 10px 0 0; color: #8298ae; font-size: 12px; line-height: 1.5; letter-spacing: .3px; }
#appPage.gd-home .gd-stage { display: flex; align-items: center; flex: 1; min-width: 0; padding-block: 42px 56px; }
#appPage.gd-home .gd-app-surface {
  width: 100%;
  min-width: 0;
  padding: 29px 32px 32px;
  border: 1px solid rgba(255,255,255,.88);
  border-radius: 32px;
  background: linear-gradient(120deg,rgba(255,255,255,.59),rgba(255,255,255,.27));
  box-shadow: 0 24px 70px rgba(68,103,144,.075),inset 0 1px 0 #fff,inset 0 -1px 0 rgba(255,255,255,.46);
  -webkit-backdrop-filter: blur(30px) saturate(145%);
  backdrop-filter: blur(30px) saturate(145%);
}
#appPage.gd-home .gd-surface-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; padding: 0 7px; }
#appPage.gd-home .gd-surface-heading h2 { margin: 0; color: #698198; font-size: 13px; font-weight: 550; letter-spacing: .4px; }
#appPage.gd-home .gd-surface-mark { display: flex; gap: 5px; }
#appPage.gd-home .gd-surface-mark span { display: block; width: 4px; height: 4px; border-radius: 50%; background: #b7cadd; }
#appPage.gd-home .gd-app-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); align-items: start; gap: 15px 9px; min-width: 0; }
#appPage.gd-home .gd-app {
  --gd-icon-bg: linear-gradient(145deg,#71baff,#3989ed);
  --gd-icon-shadow: 0 10px 20px rgba(58,137,232,.20);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 13px;
  width: 100%;
  min-width: 0;
  min-height: 141px;
  padding: 14px 5px 12px;
  border: 1px solid transparent;
  border-radius: 22px;
  background: transparent;
  color: #3e5267;
  text-align: center;
  cursor: pointer;
  transition: background .18s ease,border-color .18s ease,transform .18s ease;
}
#appPage.gd-home .gd-app:hover { transform: translateY(-3px); border-color: rgba(255,255,255,.9); background: rgba(255,255,255,.43); }
#appPage.gd-home .gd-app:active { transform: translateY(0) scale(.98); }
#appPage.gd-shell .gd-app-icon {
  display: grid;
  place-items: center;
  position: relative;
  flex: 0 0 78px;
  width: 78px;
  height: 78px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.46);
  border-radius: 23px;
  background: var(--gd-icon-bg);
  box-shadow: var(--gd-icon-shadow),inset 0 1px 0 rgba(255,255,255,.45),inset 0 -1px 0 rgba(0,0,0,.035);
  color: #fff;
}
#appPage.gd-shell .gd-app-icon::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(135deg,rgba(255,255,255,.15),transparent 60%); pointer-events: none; }
#appPage.gd-shell .gd-app-icon svg { position: relative; width: 33px; height: 33px; stroke-width: 1.65; filter: drop-shadow(0 1px 1px rgba(0,0,0,.05)); }
#appPage.gd-shell .gd-app-name { max-width: 100%; color: inherit; font-size: 13px; font-weight: 550; line-height: 1.5; overflow-wrap: anywhere; }
#appPage.gd-home .gd-app-meta { display: none; }
#appPage.gd-home .gd-desktop-footer { display: flex; align-items: center; justify-content: center; gap: 9px; margin: 0; color: #9aafc1; font-size: 10px; line-height: 1.8; letter-spacing: .5px; }

#appPage.gd-shell .gd-folder,
#appPage.gd-shell .gd-folder * { box-sizing: border-box; }
#appPage.gd-shell .gd-folder button { font-family: inherit; }
#appPage.gd-shell .gd-folder button:focus-visible { outline: 3px solid rgba(52,134,235,.7); outline-offset: 4px; }
#appPage.gd-shell .gd-folder svg { display: block; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
#appPage.gd-shell .gd-folder { display: grid; place-items: center; position: fixed; inset: 0; z-index: 10000; padding: 24px; background: rgba(95,124,152,.17); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
#appPage.gd-shell .gd-folder-panel { width: min(680px,100%); max-height: min(78svh,720px); overflow: hidden; border: 1px solid rgba(255,255,255,.94); border-radius: 30px; background: rgba(247,251,255,.86); box-shadow: 0 30px 100px rgba(41,73,105,.2),inset 0 1px 0 #fff; -webkit-backdrop-filter: blur(32px) saturate(150%); backdrop-filter: blur(32px) saturate(150%); }
#appPage.gd-shell .gd-folder-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 23px 26px 19px; border-bottom: 1px solid rgba(255,255,255,.92); }
#appPage.gd-shell .gd-folder-header h2 { margin: 0; color: #344e67; font-size: 19px; font-weight: 550; line-height: 1.5; }
#appPage.gd-shell .gd-folder-close { display: grid; place-items: center; flex: 0 0 32px; width: 32px; height: 32px; padding: 7px; border: 1px solid rgba(255,255,255,.95); border-radius: 50%; background: rgba(255,255,255,.73); color: #8aa0b3; cursor: pointer; }
#appPage.gd-shell .gd-folder-close svg { width: 16px; height: 16px; }
#appPage.gd-shell .gd-folder-close:hover { color: #397dc0; background: #fff; }
#appPage.gd-shell .gd-folder-items { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; max-height: calc(min(78svh,720px) - 82px); padding: 20px 22px 24px; overflow-y: auto; overscroll-behavior: contain; }
#appPage.gd-shell .gd-folder-item { display: flex; align-items: center; gap: 13px; min-width: 0; min-height: 73px; padding: 13px 14px; border: 1px solid rgba(255,255,255,.9); border-radius: 19px; background: rgba(255,255,255,.48); color: #456078; text-align: left; font-size: 13px; font-weight: 500; line-height: 1.5; cursor: pointer; }
#appPage.gd-shell .gd-folder-item:hover { background: rgba(255,255,255,.91); box-shadow: 0 5px 15px rgba(83,118,155,.055); }
#appPage.gd-shell .gd-folder-item > svg { flex: 0 0 40px; width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--gd-icon-bg,linear-gradient(145deg,#88bdf1,#609fdf)); color: #fff; }
#appPage.gd-shell .gd-folder-item .gd-app-icon { flex-basis: 40px; width: 40px; height: 40px; border-radius: 12px; box-shadow: none; }
#appPage.gd-shell .gd-folder-item .gd-app-icon svg { width: 21px; height: 21px; }
#appPage.gd-shell .gd-folder-item .gd-app-name { flex: 1; text-align: left; }

#appPage.gd-shell .gd-ops-folder { background: rgba(83,108,155,.12); backdrop-filter: none; }
#appPage.gd-shell .gd-ops-folder .gd-folder-panel {
  position: absolute;
  top: var(--gd-dept-top, 12px);
  left: var(--gd-dept-left, 12px);
  width: min(356px,calc(100% - 24px));
  border-radius: 22px;
  background: rgba(248,250,255,.96);
  animation: gd-dept-slide .2s ease-out both;
}
#appPage.gd-shell .gd-ops-folder .gd-folder-header { padding: 14px 16px; }
#appPage.gd-shell .gd-ops-folder .gd-folder-header h2 { font-size: 16px; }
#appPage.gd-shell .gd-ops-folder .gd-folder-items {
  align-items: start;
  padding: 12px 14px 16px;
  gap: 8px;
  max-height: calc(min(78svh,720px) - 62px);
}
#appPage.gd-shell .gd-ops-folder .gd-folder-item {
  width: 100%;
  min-height: 48px;
  padding: 8px 9px;
  gap: 7px;
  border-radius: 13px;
}
#appPage.gd-shell .gd-ops-folder .gd-folder-item i {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  border-radius: 8px;
  background: #eeebfb;
  color: #6d62ac;
  font-size: 12px;
}
#appPage.gd-shell [data-ops-department],
#appPage.gd-shell #page-administration-center {
  min-height: 55svh;
  padding: clamp(16px, 3vw, 32px);
}
#appPage.gd-shell .gd-dept-page-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  color: #304b66;
}
#appPage.gd-shell .gd-dept-page-heading h1 {
  margin: 0;
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 600;
}
#appPage.gd-shell .gd-dept-page-heading a {
  padding: 8px 12px;
  border: 1px solid #e6e2f8;
  border-radius: 10px;
  background: #f2effd;
  color: #5d4fa5;
}
@keyframes gd-dept-slide {
  from { opacity: 0; transform: translate(var(--gd-dept-slide-x, 0),var(--gd-dept-slide-y, 12px)); }
  to { opacity: 1; transform: none; }
}
@media (max-width: 560px) {
  #appPage.gd-shell .gd-ops-folder .gd-folder-panel {
    top: auto;
    bottom: max(12px,env(safe-area-inset-bottom));
    left: 50%;
    translate: -50% 0;
    --gd-dept-slide-x: 0px;
    --gd-dept-slide-y: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #appPage.gd-shell .gd-ops-folder .gd-folder-panel { animation: none; }
}

/* This one small control is intentionally available on existing module pages. */
#appPage .gd-return-desktop { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 5px 10px; border: 1px solid #e4eaf0; border-radius: 10px; background: #fff; color: #71869a; font: inherit; font-size: 12px; line-height: 1.4; cursor: pointer; }
#appPage .gd-return-desktop:hover { border-color: #cfdfef; background: #f4f8fc; color: #3b82c7; }
#appPage .gd-return-desktop:focus-visible { outline: 2px solid #75ade7; outline-offset: 3px; }
#appPage .gd-return-desktop svg { display: block; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
#appPage.gd-shell ~ #aiFloatBtn { left: auto !important; right: 24px !important; }

@media (max-width: 1180px) {
  #appPage.gd-home .gd-workspace { min-height: calc(100svh - 36px); padding: 24px 20px 6px; }
  #appPage.gd-home .gd-app-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
  #appPage.gd-home .gd-app-surface { padding: 25px 24px 27px; }
  #appPage.gd-home .gd-app { min-height: 132px; }
  #appPage.gd-shell .gd-app-icon { flex-basis: 72px; width: 72px; height: 72px; border-radius: 21px; }
  #appPage.gd-home .gd-stage { padding-block: 32px 40px; }
}
@media (max-width: 780px) {
  #appPage.gd-home .gd-workspace { padding: 20px 12px 4px; min-height: calc(100svh - 28px); }
  #appPage.gd-home .gd-header { flex-wrap: wrap; gap: 23px; }
  #appPage.gd-home .gd-clock { padding-left: 0; text-align: left; }
  #appPage.gd-home .gd-time { font-size: 31px; min-width: 150px; }
  #appPage.gd-home .gd-date { margin-top: 5px; font-size: 11px; }
  #appPage.gd-home .gd-app-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px 2px; }
  #appPage.gd-home .gd-app-surface { padding: 22px 17px 20px; border-radius: 25px; }
  #appPage.gd-shell .gd-app-icon { flex-basis: 66px; width: 66px; height: 66px; border-radius: 20px; }
  #appPage.gd-shell .gd-app-icon svg { width: 29px; height: 29px; }
  #appPage.gd-home .gd-app { min-height: 122px; gap: 11px; }
  #appPage.gd-shell .gd-app-name { font-size: 12px; }
}
@media (max-width: 560px) {
  
  #appPage.gd-home .gd-desktop { display: block; padding: 22px 14px 100px; }
  #appPage.gd-home .gd-desktop::before { width: 300px; height: 300px; top: 10%; right: -240px; }
  #appPage.gd-home .gd-workspace { min-height: calc(100svh - 122px); padding: 4px 0 0; }
  #appPage.gd-home .gd-header { align-items: center; flex-wrap: nowrap; gap: 12px; }
  #appPage.gd-home .gd-user { gap: 12px; }
  #appPage.gd-home .gd-avatar-btn { flex-basis: 50px; width: 50px; height: 50px; border-radius: 18px; }
  #appPage.gd-home .gd-avatar { font-size: 22px; }
  #appPage.gd-home .gd-avatar-edit { right: -4px; bottom: -4px; width: 21px; height: 21px; }
  #appPage.gd-home .gd-eyebrow { margin-bottom: 6px; font-size: 9px; letter-spacing: 1px; }
  #appPage.gd-home .gd-welcome { display: block; font-size: 21px; line-height: 1.35; letter-spacing: -.5px; }
  #appPage.gd-home #gdName { display: block; max-width: 145px; font-size: 19px; }
  #appPage.gd-home .gd-clock { max-width: 132px; text-align: right; }
  #appPage.gd-home .gd-time { min-width: 0; font-size: 27px; letter-spacing: -.9px; }
  #appPage.gd-home .gd-date { max-width: 132px; margin-top: 6px; font-size: 10px; line-height: 1.6; }
  #appPage.gd-home .gd-stage { align-items: flex-start; padding-block: 29px 25px; }
  #appPage.gd-home .gd-app-surface { padding: 20px 11px 15px; border-radius: 26px; }
  #appPage.gd-home .gd-surface-heading { margin-bottom: 13px; padding-inline: 9px; }
  #appPage.gd-home .gd-surface-heading h2 { font-size: 12px; }
  #appPage.gd-home .gd-app-grid { gap: 8px 0; }
  #appPage.gd-home .gd-app { min-height: 116px; padding: 12px 3px 9px; gap: 10px; border-radius: 18px; }
  #appPage.gd-shell .gd-app-icon { flex-basis: 64px; width: 64px; height: 64px; border-radius: 19px; }
  #appPage.gd-shell .gd-app-name { font-size: 11px; font-weight: 550; }
  #appPage.gd-home .gd-desktop-footer { gap: 7px; font-size: 9px; }
  #appPage.gd-shell .gd-folder { padding: 18px; }
  #appPage.gd-shell .gd-folder-panel { max-height: 82svh; border-radius: 25px; }
  #appPage.gd-shell .gd-folder-header { padding: 18px 20px 16px; }
  #appPage.gd-shell .gd-folder-header h2 { font-size: 17px; }
  #appPage.gd-shell .gd-folder-items { grid-template-columns: 1fr; max-height: calc(82svh - 76px); padding: 15px 16px 19px; gap: 8px; }
  #appPage.gd-shell .gd-folder-item { min-height: 65px; padding: 11px 12px; }
}
@media (max-width: 359px) {
  #appPage.gd-home .gd-desktop { padding-inline: 10px; }
  #appPage.gd-home .gd-user { gap: 9px; }
  #appPage.gd-home .gd-avatar-btn { flex-basis: 44px; width: 44px; height: 44px; border-radius: 16px; }
  #appPage.gd-home .gd-welcome { font-size: 18px; }
  #appPage.gd-home #gdName { max-width: 120px; font-size: 17px; }
  #appPage.gd-home .gd-clock { max-width: 112px; }
  #appPage.gd-home .gd-time { font-size: 23px; }
  #appPage.gd-home .gd-date { font-size: 9px; }
  #appPage.gd-home .gd-app-surface { padding-inline: 7px; }
  #appPage.gd-shell .gd-app-icon { flex-basis: 59px; width: 59px; height: 59px; border-radius: 18px; }
  #appPage.gd-shell .gd-app-name { font-size: 10px; }
}
@media (max-height: 760px) and (min-width: 1181px) {
  #appPage.gd-home .gd-workspace { padding-top: 15px; }
  #appPage.gd-home .gd-stage { padding-block: 27px 35px; }
  #appPage.gd-home .gd-app-surface { padding-block: 23px 25px; }
  #appPage.gd-home .gd-app { min-height: 132px; }
}
@media (prefers-reduced-motion: reduce) {
  #appPage.gd-home .gd-app,
  #appPage.gd-home .gd-app:hover,
  #appPage.gd-home .gd-app:active { transform: none; }
}

/* Compact vertical rail: no shrinking, overlap, or auto footer margins. */
@media (max-height: 760px) and (min-width: 561px) {
  #appPage.gd-shell .gd-rail { gap: 12px; padding-block: 14px 12px; }
  #appPage.gd-shell .gd-rail-brand { flex-basis: 38px; width: 38px; height: 38px; border-radius: 13px; font-size: 23px; }
  #appPage.gd-shell .gd-rail-main, #appPage.gd-shell .gd-rail-secondary { gap: 5px; }
  #appPage.gd-shell .gd-rail-item { min-height: 50px; padding-block: 6px; }
  #appPage.gd-shell .gd-current { min-height: 78px; }
  #appPage.gd-shell .gd-rail-secondary .gd-rail-item, #appPage.gd-shell .gd-rail-utility { min-height: 44px; }
  #appPage.gd-shell .gd-rail-footer { gap: 4px; padding-top: 10px; }
}
@media (max-width: 560px) {
  #appPage.gd-shell { --gd-shell-offset: 0px; --sidebar-width: 0px; }
  #appPage.gd-shell:not(.gd-home) > .main-content { padding-bottom: 108px !important; }
  #appPage.gd-shell .gd-rail {
    inset: auto 12px max(12px,env(safe-area-inset-bottom)); width: auto; height: 80px; min-height: 0;
    display: flex; flex-direction: row; align-items: center; justify-content: flex-start; gap: 4px;
    padding: 6px 8px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain;
    border-radius: 24px; background: rgba(245,250,255,.9); box-shadow: 0 7px 35px rgba(57,91,130,.14),inset 0 1px 0 #fff;
    scrollbar-width: thin; touch-action: pan-x;
  }
  #appPage.gd-shell .gd-rail-brand { display: none; }
  #appPage.gd-shell .gd-rail-main, #appPage.gd-shell .gd-rail-secondary, #appPage.gd-shell .gd-rail-footer { display: contents; margin: 0; padding: 0; border: 0; }
  #appPage.gd-shell .gd-rail-item, #appPage.gd-shell .gd-current, #appPage.gd-shell .gd-rail-secondary .gd-rail-item, #appPage.gd-shell .gd-rail-utility {
    flex: 0 0 44px; width: 44px; min-width: 44px; min-height: 60px; height: 60px;
    padding: 6px 2px; gap: 5px; border-radius: 15px; font-size: 10px; line-height: 1.25;
  }
  #appPage.gd-shell .gd-rail-item svg { width: 21px; height: 21px; }
  #appPage.gd-shell .gd-current-icon { flex-basis: 28px; width: 28px; height: 28px; border-radius: 10px; }
  #appPage.gd-shell .gd-current-icon svg { width: 18px; height: 18px; }
  #appPage.gd-shell .gd-current-name { display: none; }
  #appPage.gd-shell .gd-current-short { display: block; }
  #appPage.gd-shell .gd-rail-utility svg { width: 20px; height: 20px; }
  #appPage.gd-shell ~ #aiFloatBtn { left: auto !important; right: 20px !important; bottom: max(108px,calc(env(safe-area-inset-bottom) + 96px)) !important; }
}

/* HR keeps its permitted subpages in the shared rail, with one scrolling middle. */
#appPage.gd-shell .gd-hr-nav[hidden],
#appPage.gd-shell .gd-hr-item[hidden],
#appPage.gd-shell #gdMoreTools[hidden] { display: none !important; }
#appPage.gd-shell:not(.gd-hr-nav-open) .gd-hr-nav,
#appPage.gd-shell:not(.gd-hr-nav-open) .gd-more,
#appPage.gd-home .gd-hr-nav,
#appPage.gd-home .gd-more { display: none !important; }
#appPage.gd-shell.gd-hr-nav-open:not(.gd-home) {
  --gd-shell-offset: 244px;
  --sidebar-width: 244px;
}
#appPage.gd-shell.gd-hr-nav-open:not(.gd-home) .gd-rail {
  width: 196px;
  align-items: stretch;
  gap: 12px;
  padding: 18px 12px 14px;
  overflow: hidden;
}
#appPage.gd-shell.gd-hr-nav-open:not(.gd-home) .gd-rail-brand { align-self: flex-start; margin-left: 8px; }
#appPage.gd-shell.gd-hr-nav-open:not(.gd-home) .gd-rail-main { align-items: stretch; gap: 6px; }
#appPage.gd-shell.gd-hr-nav-open:not(.gd-home) .gd-rail-main > .gd-rail-item,
#appPage.gd-shell.gd-hr-nav-open:not(.gd-home) .gd-more {
  width: 100%;
  min-height: 44px;
  flex-direction: row;
  justify-content: flex-start;
  gap: 11px;
  padding: 9px 12px;
  border-radius: 15px;
  font-size: 12px;
  text-align: left;
}
#appPage.gd-shell.gd-hr-nav-open:not(.gd-home) .gd-rail-main > .gd-current { min-height: 52px; }
#appPage.gd-shell.gd-hr-nav-open:not(.gd-home) .gd-current-name { width: auto; max-height: none; font-size: 12px; line-height: 1.5; }
#appPage.gd-shell.gd-hr-nav-open:not(.gd-home) .gd-hr-nav {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(147,173,199,.35) transparent;
}
#appPage.gd-shell .gd-hr-items { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 2px 1px 4px; }
#appPage.gd-shell .gd-hr-item {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-width: 0;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: #71889d;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.5;
  text-align: left;
  cursor: pointer;
  transition: background .16s ease,color .16s ease,border-color .16s ease;
}
#appPage.gd-shell .gd-hr-item > svg,
#appPage.gd-shell .gd-hr-item > i { flex: 0 0 17px; width: 17px; height: 17px; font-size: 15px; text-align: center; }
#appPage.gd-shell .gd-hr-item > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#appPage.gd-shell .gd-hr-item[data-gd-ai-page^="ai-center-"] > span { white-space: normal; }
#appPage.gd-shell .gd-hr-item:not(:disabled):hover { color: #3a83d0; background: rgba(255,255,255,.66); }
#appPage.gd-shell .gd-hr-item[aria-current="page"],
#appPage.gd-shell .gd-hr-item.gd-hr-active {
  border-color: rgba(255,255,255,.92);
  background: rgba(255,255,255,.88);
  box-shadow: 0 3px 10px rgba(65,109,161,.055),inset 0 1px 0 #fff;
  color: #397fc7;
  font-weight: 500;
}
#appPage.gd-shell .gd-hr-item:disabled { opacity: .49; cursor: default; }
#appPage.gd-shell .gd-more .gd-more-chevron { width: 14px; height: 14px; margin-left: auto; transition: transform .16s ease; }
#appPage.gd-shell.gd-tools-open .gd-more .gd-more-chevron { transform: rotate(180deg); }
#appPage.gd-shell.gd-tools-open .gd-more { background: rgba(255,255,255,.67); color: #4c87c2; }
#appPage.gd-shell.gd-hr-nav-open:not(.gd-home):not(.gd-tools-open) #gdMoreTools { display: none; }
#appPage.gd-shell.gd-hr-nav-open:not(.gd-home) #gdMoreTools {
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 5px;
  margin: 0;
  padding: 7px;
  border: 1px solid rgba(255,255,255,.81);
  border-radius: 17px;
  background: rgba(233,243,252,.45);
}
#appPage.gd-shell.gd-hr-nav-open:not(.gd-home) #gdMoreTools > .gd-rail-item {
  width: 100%;
  min-height: 44px;
  flex-direction: row;
  justify-content: center;
  gap: 7px;
  padding: 7px 4px;
  border-radius: 11px;
  font-size: 10px;
}
#appPage.gd-shell.gd-hr-nav-open:not(.gd-home) #gdMoreTools > .gd-rail-item svg { width: 18px; height: 18px; }
#appPage.gd-shell.gd-hr-nav-open:not(.gd-home) .gd-rail-footer { flex-direction: row; gap: 5px; padding-top: 10px; }
#appPage.gd-shell.gd-hr-nav-open:not(.gd-home) .gd-rail-footer > .gd-rail-item {
  flex: 1 1 0;
  width: auto;
  min-height: 44px;
  flex-direction: row;
  gap: 6px;
  padding: 8px 3px;
  font-size: 10px;
}
#appPage.gd-shell.gd-hr-nav-open:not(.gd-home) .gd-rail-footer > .gd-rail-item svg { width: 18px; height: 18px; }
@media (max-height: 620px) and (min-width: 561px) {
  #appPage.gd-shell.gd-hr-nav-open:not(.gd-home) .gd-rail { gap: 7px; padding: 10px; }
  #appPage.gd-shell.gd-hr-nav-open:not(.gd-home) .gd-rail-brand { flex-basis: 28px; width: 28px; height: 28px; border-radius: 10px; font-size: 19px; }
  #appPage.gd-shell.gd-hr-nav-open:not(.gd-home) .gd-rail-main { gap: 4px; }
  #appPage.gd-shell.gd-hr-nav-open:not(.gd-home) .gd-rail-main > .gd-rail-item { min-height: 34px; padding-block: 5px; }
  #appPage.gd-shell.gd-hr-nav-open:not(.gd-home) .gd-rail-main > .gd-current { min-height: 42px; }
  #appPage.gd-shell.gd-hr-nav-open:not(.gd-home) .gd-more { min-height: 34px; padding-block: 5px; }
  #appPage.gd-shell.gd-hr-nav-open:not(.gd-home) .gd-rail-footer { padding-top: 8px; }
  #appPage.gd-shell.gd-hr-nav-open:not(.gd-home) .gd-rail-footer > .gd-rail-item { min-height: 34px; padding-block: 5px; }
  #appPage.gd-shell.gd-hr-nav-open:not(.gd-home) #gdMoreTools { padding: 4px; gap: 3px; }
  #appPage.gd-shell.gd-hr-nav-open:not(.gd-home) #gdMoreTools > .gd-rail-item { min-height: 30px; padding-block: 4px; }
}
@media (max-width: 560px), (max-width: 780px) and (max-height: 480px) {
  #appPage.gd-shell.gd-hr-nav-open:not(.gd-home) { --gd-shell-offset: 0px; --sidebar-width: 0px; }
  #appPage.gd-shell.gd-hr-nav-open:not(.gd-home) > .main-content { padding-bottom: calc(224px + env(safe-area-inset-bottom)) !important; }
  #appPage.gd-shell.gd-hr-nav-open.gd-tools-open:not(.gd-home) > .main-content { padding-bottom: calc(334px + env(safe-area-inset-bottom)) !important; }
  #appPage.gd-shell.gd-hr-nav-open:not(.gd-home) .gd-rail {
    inset: auto 12px max(12px,env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: repeat(5,minmax(44px,1fr));
    grid-template-rows: minmax(44px,110px) 72px;
    grid-template-areas: "hr hr hr hr hr" "home current more profile logout";
    align-items: stretch;
    gap: 8px 4px;
    width: auto;
    height: auto;
    max-height: calc(100svh - 24px);
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    pointer-events: none;
  }
  #appPage.gd-shell.gd-hr-nav-open.gd-tools-open:not(.gd-home) .gd-rail {
    grid-template-rows: minmax(44px,110px) auto 72px;
    grid-template-areas: "hr hr hr hr hr" "tools tools tools tools tools" "home current more profile logout";
  }
  #appPage.gd-shell.gd-hr-nav-open:not(.gd-home) .gd-rail::after {
    content: "";
    position: absolute;
    z-index: -1;
    right: 0;
    bottom: 0;
    left: 0;
    height: 72px;
    border: 1px solid var(--gd-line);
    border-radius: 24px;
    background: rgba(245,250,255,.93);
    box-shadow: 0 7px 35px rgba(57,91,130,.14),inset 0 1px 0 #fff;
    -webkit-backdrop-filter: blur(26px) saturate(150%);
    backdrop-filter: blur(26px) saturate(150%);
  }
  #appPage.gd-shell.gd-hr-nav-open:not(.gd-home) .gd-rail-brand { display: none; }
  #appPage.gd-shell.gd-hr-nav-open:not(.gd-home) .gd-rail-main,
  #appPage.gd-shell.gd-hr-nav-open:not(.gd-home) .gd-rail-footer { display: contents; }
  #appPage.gd-shell.gd-hr-nav-open:not(.gd-home) #gdHomeBtn { grid-area: home; }
  #appPage.gd-shell.gd-hr-nav-open:not(.gd-home) #gdCurrentBtn { grid-area: current; }
  #appPage.gd-shell.gd-hr-nav-open:not(.gd-home) #gdMoreBtn { grid-area: more; }
  #appPage.gd-shell.gd-hr-nav-open:not(.gd-home) #gdProfileBtn { grid-area: profile; }
  #appPage.gd-shell.gd-hr-nav-open:not(.gd-home) #gdLogoutBtn { grid-area: logout; }
  #appPage.gd-shell.gd-hr-nav-open:not(.gd-home) .gd-rail-main > .gd-rail-item,
  #appPage.gd-shell.gd-hr-nav-open:not(.gd-home) .gd-more,
  #appPage.gd-shell.gd-hr-nav-open:not(.gd-home) .gd-rail-footer > .gd-rail-item {
    align-self: center;
    width: 100%;
    min-width: 44px;
    min-height: 60px;
    height: 60px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 6px 2px;
    border-radius: 15px;
    font-size: 10px;
    text-align: center;
    pointer-events: auto;
  }
  #appPage.gd-shell.gd-hr-nav-open:not(.gd-home) .gd-current-name { display: none; }
  #appPage.gd-shell.gd-hr-nav-open:not(.gd-home) .gd-current-short { display: block; }
  #appPage.gd-shell.gd-hr-nav-open:not(.gd-home) .gd-current-icon { flex-basis: 28px; width: 28px; height: 28px; }
  #appPage.gd-shell.gd-hr-nav-open:not(.gd-home) .gd-more .gd-more-chevron { display: none; }
  #appPage.gd-shell.gd-hr-nav-open:not(.gd-home) .gd-hr-nav {
    grid-area: hr;
    width: 100%;
    min-height: 44px;
    overflow: auto;
    border: 1px solid var(--gd-line);
    border-radius: 21px;
    background: rgba(246,251,255,.93);
    box-shadow: 0 8px 27px rgba(57,91,130,.09),inset 0 1px 0 #fff;
    -webkit-backdrop-filter: blur(26px) saturate(150%);
    backdrop-filter: blur(26px) saturate(150%);
    scrollbar-width: thin;
    touch-action: pan-x pan-y;
    pointer-events: auto;
  }
  #appPage.gd-shell.gd-hr-nav-open:not(.gd-home) .gd-hr-items {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(2,44px);
    grid-auto-columns: max-content;
    gap: 6px;
    width: max-content;
    min-width: 100%;
    padding: 7px;
  }
  #appPage.gd-shell.gd-hr-nav-open:not(.gd-home) .gd-hr-item { width: auto; min-width: 128px; min-height: 44px; padding: 10px 12px; font-size: 11px; white-space: nowrap; }
  #appPage.gd-shell.gd-hr-nav-open:not(.gd-home) #gdMoreTools {
    grid-area: tools;
    width: 100%;
    padding: 7px;
    border-radius: 21px;
    background: rgba(246,251,255,.94);
    box-shadow: 0 8px 27px rgba(57,91,130,.09),inset 0 1px 0 #fff;
    -webkit-backdrop-filter: blur(26px) saturate(150%);
    backdrop-filter: blur(26px) saturate(150%);
    pointer-events: auto;
  }
  #appPage.gd-shell.gd-hr-nav-open:not(.gd-home) #gdMoreTools > .gd-rail-item { height: auto; min-height: 44px; }
  #appPage.gd-shell.gd-hr-nav-open:not(.gd-home) ~ #aiFloatBtn { bottom: max(224px,calc(env(safe-area-inset-bottom) + 212px)) !important; }
  #appPage.gd-shell.gd-hr-nav-open.gd-tools-open:not(.gd-home) ~ #aiFloatBtn { bottom: max(334px,calc(env(safe-area-inset-bottom) + 322px)) !important; }
}
@media (min-width: 561px) and (max-width: 780px) and (max-height: 480px) {
  #appPage.gd-shell.gd-hr-nav-open.gd-tools-open:not(.gd-home) .gd-rail {
    height: min(307px,calc(100svh - 24px));
    grid-template-rows: minmax(44px,1fr) auto 72px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #appPage.gd-shell .gd-hr-item,
  #appPage.gd-shell .gd-more .gd-more-chevron { transition: none; }
}

/* 「我的应用」里的协作白板磁贴（不对应侧栏页面，人人可见） */
#appPage.gd-home .gd-app-board { text-decoration: none; }
#appPage.gd-home .gd-app-board .gd-app-icon { color: #fff; }
#appPage.gd-home .gd-app-board .gd-app-meta { color: #8aa0b5; }
#appPage .aic-page .aic-tools {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}
#appPage .aic-page .aic-tools h2 { font-size: 16px; }
#appPage .aic-page .aic-tool-list { display: flex; flex-wrap: wrap; gap: 10px; }
#appPage .aic-page .aic-tool-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  background: #e9f3ff;
  color: #214f8a;
  cursor: pointer;
}
#appPage .aic-page .aic-tool-button:not(:disabled):hover { background: #dcecff; }
#appPage .aic-page .aic-tool-button:focus-visible { outline: 2px solid #3a67a2; outline-offset: 2px; }
#appPage .aic-page #gdMediaBtn {
  min-width: 88px;
  min-height: 70px;
  padding: 10px 13px;
}
#appPage .aic-page #gdMediaBtn .fa-download {
  font-size: 28px;
  line-height: 1;
}
#appPage.gd-shell .gd-media-dialog {
  box-sizing: border-box;
  width: min(520px, calc(100vw - 28px));
  max-height: 86svh;
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 1px solid #fff;
  border-radius: 26px;
  background: linear-gradient(145deg, #fbfdff, #edf5fc);
  color: #304b66;
  box-shadow: 0 24px 80px rgba(46, 78, 108, .24);
}
#appPage.gd-shell .gd-media-dialog::backdrop {
  background: rgba(44, 69, 100, .22);
  backdrop-filter: blur(8px);
}
#appPage.gd-shell .gd-media-form {
  display: grid;
  justify-items: start;
  gap: 12px;
  padding: 20px 26px 25px;
}
#appPage.gd-shell .gd-media-form label { font-size: 14px; font-weight: 650; }
#appPage.gd-shell .gd-media-form textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 92px;
  padding: 12px;
  border: 1px solid #bcd0e5;
  border-radius: 13px;
  background: #fff;
  color: inherit;
  font: inherit;
  font-size: 14px;
  line-height: 1.55;
  resize: vertical;
}
#appPage.gd-shell .gd-media-form :is(button, a, textarea):focus-visible {
  outline: 2px solid #367dd4;
  outline-offset: 3px;
}
#appPage.gd-shell .gd-media-primary {
  min-height: 40px;
  padding: 8px 15px;
  border: 0;
  border-radius: 11px;
  background: #2867be;
  color: #fff;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
#appPage.gd-shell .gd-media-primary:disabled { opacity: .6; cursor: wait; }
#appPage.gd-shell .gd-media-original { color: #205c9c; font-size: 13px; text-decoration: underline; }
#appPage.gd-shell .gd-media-drop {
  box-sizing: border-box;
  width: 100%;
  padding: 12px 14px;
  border: 1px dashed #a9c0d9;
  border-radius: 14px;
  background: rgba(255, 255, 255, .66);
}
#appPage.gd-shell .gd-media-local:not([hidden]) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}
#appPage.gd-shell .gd-media-local img {
  display: block;
  max-width: min(160px, 100%);
  max-height: 104px;
  object-fit: contain;
  border-radius: 7px;
}
#appPage.gd-shell .gd-media-drop p,
#appPage.gd-shell .gd-media-form #gdMediaHint,
#appPage.gd-shell .gd-media-status { margin: 0; color: #455f7b; font-size: 13px; line-height: 1.6; }
#appPage.gd-shell .gd-media-status:empty { display: none; }

/* Follow the active operations branch in the sidebar. */
#appPage.gd-shell .gd-hr-item[data-gd-ops-level="2"] {
  color: #345673;
  font-weight: 650;
}
#appPage.gd-shell .gd-hr-item[data-gd-ops-level="3"] {
  margin-inline-start: 12px;
  width: calc(100% - 12px);
  border-inline-start: 1px solid rgba(126,159,192,.35);
}
#appPage.gd-shell .gd-hr-item[data-gd-ops-level][aria-current="page"] { color: #397fc7; }
@media (max-width:560px), (max-width:780px) and (max-height:480px) {
  #appPage.gd-shell.gd-hr-nav-open:not(.gd-home) .gd-hr-items.gd-ops-rail {
    grid-template-rows: 44px;
  }
  #appPage.gd-shell .gd-hr-item[data-gd-ops-level="3"] {
    margin-inline-start: 0;
    width: auto;
  }
}
