@font-face {
  font-family: "Open Sans";
  src: url("./open-sans-light.woff2") format("woff2");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "Open Sans";
  src: url("./open-sans-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --pg-interface-font: "Open Sans", Arial, Helvetica, sans-serif;
}

:root {
  --pg-ui-radius: 12px;
  --pg-theme-scheme: light;
  --pg-elevation-dialog: 0 3px 7px -2px rgba(6,13,12,.16), 0 18px 42px -12px rgba(6,13,12,.28);
  --pg-elevation-menu: 0 2px 4px -1px rgba(6,13,12,.14), 0 8px 20px -6px rgba(6,13,12,.24);
  --pg-theme-bg: #E2E0D8;
  --pg-theme-surface: #F0EDE5;
  --pg-theme-raised: #D2D0C9;
  --pg-theme-text: #060D0C;
  --pg-theme-secondary: #4C504D;
  --pg-theme-muted: var(--pg-theme-secondary);
  --pg-theme-line: #B6B5AF;
  --pg-theme-line-strong: var(--pg-theme-secondary);
  --pg-theme-accent: #0F1615;
  --pg-theme-accent-hover: #323835;
  --pg-theme-accent-pressed: #060D0C;
  --pg-theme-accent-ink: #F0EDE5;
  --pg-theme-focus: var(--pg-theme-secondary);
  --pg-theme-hover: #D6D4CD;
  --pg-theme-selected: #C6C5BE;
  --pg-theme-online: var(--pg-theme-secondary);
  --pg-theme-reply: #3E4340;
  --pg-theme-warning: var(--pg-theme-reply);
  --pg-theme-waiting: var(--pg-theme-secondary);
  --pg-theme-active: var(--pg-theme-text);
  --pg-theme-done: var(--pg-theme-secondary);
  --pg-theme-canvas: #E7E4DC;
  --pg-theme-model: #6F726E;
  --pg-theme-grid: #BDBCB5;
  --pg-theme-viewer-ink: #4C504D;
  --accent: var(--pg-theme-accent);
  --accent-hover: var(--pg-theme-accent-hover);
  --accent-soft: var(--pg-theme-hover);
  accent-color: var(--pg-theme-accent);
  --pg-theme-icon: #585B58;
  --pg-theme-marker-edge: var(--pg-theme-secondary);
}

:root[data-pg-theme="night"] {
  --pg-theme-scheme: dark; --pg-theme-accent: #BFBEB7; --pg-theme-accent-hover: #D6D4CD; --pg-theme-accent-pressed: #A5A5A0; --pg-theme-accent-ink: #060D0C;
  --pg-elevation-dialog: 0 3px 8px -2px rgba(6,13,12,.55), 0 20px 44px -12px rgba(6,13,12,.72);
  --pg-elevation-menu: 0 2px 5px -1px rgba(6,13,12,.48), 0 9px 22px -6px rgba(6,13,12,.65);
  --pg-theme-bg: #060D0C;
  --pg-theme-surface: #202624;
  --pg-theme-raised: #242A28;
  --pg-theme-text: #F0EDE5;
  --pg-theme-secondary: #AEAEA8;
  --pg-theme-line: #404542;
  --pg-theme-hover: #292F2D;
  --pg-theme-selected: #363B39;
  --pg-theme-reply: #BAB9B3;
  --pg-theme-canvas: #191F1D;
  --pg-theme-model: #AEAEA8;
  --pg-theme-grid: #434744;
  --pg-theme-viewer-ink: #AAAAA4;
  --pg-theme-focus: #F0EDE5;
  --pg-theme-icon: var(--pg-theme-secondary);
  --pg-theme-marker-edge: var(--pg-theme-accent);
}

:root,
:root body,
:root #root > :is(.public-home, .public-auth, .cloud-account-shell),
:root .cloud-account-shell > :is(.app, .top) {
  background: var(--pg-theme-bg);
  color: var(--pg-theme-text);
  color-scheme: var(--pg-theme-scheme);
}

:root .home-stage .brand-ring { stroke: var(--pg-theme-text); }
:root :is(.auth-home, .cloud-account-shell .top .cloud-home-link)::before {
  border-color: var(--pg-theme-text);
}

:root .cloud-account-shell .top .cloud-home-link .cloud-mark { color: var(--pg-theme-text); }

:root .public-auth :is(.auth-form, .row-form) {
  background-color: var(--pg-theme-surface);
  border-color: var(--pg-theme-line);
}

:root #root .cloud-account-shell :is(
  .pg-account-profile,
  .pg-file-preview,
  .pg-folder-card,
  .pg-model-layout [data-pg-file-list],
  .pg-people-card,
  .pg-people-composer,
  .pg-people-form,
  .pg-people-thread,
  .pg-profile-name-input,
  .pg-project-chat,
  .pg-project-editor,
  .pg-project-list-row,
  .pg-upload-details,
  .pg-upload-picker,
  .pg-vault-fields,
  .pg-workspace-search-panel,
  .pg-workspace-sidepanel,
  .pg-workspace-trash,
  .pg-quiet-field
) {
  background-color: transparent;
  border-color: var(--pg-theme-line);
}

/* Inner workspace cards and lists use the lighter surface inside the cabinet frame. */
:root #root .cloud-account-shell .work :is(
  [data-pg-file-list] > :is(.pg-file-row, .pg-upload-job, .pg-trash-locked-row),
  .pg-folder-card,
  .pg-project-list-row,
  .pg-project-create-slot:has(> .pg-project-create:not([hidden])),
  .pg-project-info,
  .pg-trash-project-body,
  .pg-vault-fields,
  .pg-workspace-contacts-panel :is(.pg-people-card, .pg-people-form),
  .pg-workspace-search-panel input.pg-quiet-field,
  .pg-search-results,
  .cloud-account-settings :is(.cloud-setting-row, .pg-settings-links > button),
  .pg-security-panel,
  .plan-grid > .plan,
  .pg-workspace-history
):not(:where(dialog *, .pg-workspace-transfer-panel *)) {
  background-color: var(--pg-theme-surface);
}

:root #root .cloud-account-shell :is(
  .pg-account-profile, .pg-folder-card, .pg-people-thread, .pg-project-list-row
):is(:hover, :focus-visible) {
  border-color: var(--pg-theme-line-strong);
}

:root #root .cloud-account-shell :is(
  .pg-trash-form input:focus,
  :is(input, textarea, select).pg-quiet-field:focus,
  .pg-workspace-search-panel:has(input:focus),
  .pg-people-composer:has(input:focus)
) {
  border-color: var(--pg-theme-focus);
}

:root .pg-account-profile .pg-home-profile-online { color: var(--pg-theme-online); }
:root .pg-account-profile .pg-home-profile-online::before { background: var(--pg-theme-online); }

:root .pgc24 :is(input, textarea)::placeholder,
:root .cloud-account-shell :is(input, textarea)::placeholder { color: var(--pg-theme-muted); }

:root .cloud-account-shell > .app > .sidebar > nav.cloud-menu {
  background-color: transparent;
  border-radius: var(--pg-ui-radius);
  box-shadow: inset 0 0 0 1px var(--pg-theme-line);
}

/* Use one focus treatment for action controls, including dialogs attached to body. */
:where(button, a[href], summary, input:is([type="button"], [type="submit"], [type="reset"], [type="image"]),
       [role="button"], [role="tab"], [role="option"], [role="switch"],
       [role="menuitem"], [role="menuitemcheckbox"], [role="menuitemradio"]):focus {
  outline: none !important;
}

:root:not([data-pg-pointer-input])
:where(button, a[href], summary, input:is([type="button"], [type="submit"], [type="reset"], [type="image"]),
       [role="button"], [role="tab"], [role="option"], [role="switch"],
       [role="menuitem"], [role="menuitemcheckbox"], [role="menuitemradio"]):focus-visible {
  outline: 2px solid var(--pg-theme-focus) !important;
  outline-offset: -2px !important;
}


/* Keep every scroll container usable with touch, wheel, and keyboard. */
:where(html, body, body *) { scrollbar-width: none !important; }
::-webkit-scrollbar { display: none !important; }

html,body,button,input,textarea,select,option,dialog,summary,code,pre,kbd,samp{font-family:var(--pg-interface-font)}

.pg-owner-search{display:flex;gap:8px;align-items:end;flex-wrap:wrap}
.pg-owner-search label{display:grid;gap:4px;min-width:min(16rem,100%)}
.pg-owner-search input,.pg-owner-search button{box-sizing:border-box;min-height:36px;padding:6px 12px;border:1px solid var(--pg-theme-line);border-radius:var(--pg-ui-radius);background:var(--pg-theme-surface);color:var(--pg-theme-text);font:inherit}
