/* Workspace UI only: exported documents and signature frames own their styles. */
#workspace-shell {
  --ink: #253447;
  --paper: #f6f8fa;
  --white: #ffffff;
  --line: #e1e7ed;
  --muted: #657587;
  --mint: #e8f3ef;
  --shadow: none;
  --workspace-surface: #ffffff;
  --workspace-subtle: #f6f8fa;
  --workspace-border: #e1e7ed;
  --workspace-text: #253447;
  --workspace-muted: #657587;
  --workspace-accent: #187669;
  --workspace-focus: #1a8274;
  --product-radius: 6px;
  background: var(--workspace-subtle);
  color: var(--workspace-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0;
}
#workspace-shell .sidebar {
  background: #f9fbfc;
  border-right: 1px solid var(--workspace-border);
  color: #35475a;
  padding: 20px 12px 12px;
}
#workspace-shell .brand { gap: 9px; padding: 2px 8px 24px; }
#workspace-shell .brand-lockup strong { color: #9b7b1e; font-size: 9px; font-weight: 700; }
#workspace-shell .primary-nav { gap: 17px; }
#workspace-shell [data-nav-group] > .sidebar-section-label {
  margin: 0 10px 5px;
  color: #73808d;
  font-size: 10px;
  font-weight: 600;
}
#workspace-shell .nav-item {
  min-height: 38px;
  padding: 9px 11px;
  border-radius: var(--product-radius);
  color: #536477;
  font-size: 12px;
  font-weight: 550;
  line-height: 1.45;
  transition: background-color .12s ease, color .12s ease;
}
#workspace-shell .nav-item > [data-ui-icon] { color: #748698; }
#workspace-shell .nav-item:hover { background: #edf2f5; color: #253c50; }
#workspace-shell .nav-item.is-active {
  background: #e5f1ed;
  color: #166356;
  box-shadow: inset 3px 0 #2a8b78;
  font-weight: 650;
}
#workspace-shell .nav-item.is-active > [data-ui-icon] { color: #187669; }
#workspace-shell .sidebar :is(button, a):focus-visible { outline-color: #187669; }
#workspace-shell .sidebar :is(.sidebar-team-button, .sidebar-department-toggle, .sidebar-team-toggle) {
  color: #536477;
  border-radius: var(--product-radius);
}
#workspace-shell .sidebar :is(.sidebar-team-button, .sidebar-department-toggle, .sidebar-team-toggle):hover {
  background: #edf2f5;
  color: #253c50;
}
#workspace-shell .sidebar :is(.sidebar-team-button, .sidebar-department-toggle, .sidebar-team-toggle).is-active {
  border-color: #c5e0d6;
  background: #e5f1ed;
  color: #166356;
}
#workspace-shell .sidebar :is(.sidebar-team-button, .sidebar-department-toggle, .sidebar-team-toggle) small,
#workspace-shell .sidebar-scope-label { color: #708091; }
#workspace-shell .sidebar-department-content,
#workspace-shell .sidebar-team-children { border-left-color: #dbe3e9; }
#workspace-shell .sidebar-teams { border-top-color: #dfe7eb; }
#workspace-shell .sidebar-teams > .sidebar-section-label { color: #73808d; }
#workspace-shell .sidebar-team-children :is(button, a) { color: #617487; }
#workspace-shell .sidebar-team-children :is(button, a):hover { background: #edf2f5; color: #253c50; }
#workspace-shell .sidebar-team-children [aria-current="page"] { background: #e5f1ed; color: #166356; }
#workspace-shell .sidebar :is(.sidebar-team-modules, .sidebar-department-modules) { border-left-color: #dbe3e9; }
#workspace-shell .sidebar :is(.sidebar-team-modules, .sidebar-department-modules) button { color: #617487; }
#workspace-shell .sidebar :is(.sidebar-team-modules, .sidebar-department-modules) button:hover { background: #edf2f5; color: #253c50; }
#workspace-shell .sidebar :is(.sidebar-team-modules, .sidebar-department-modules) button[aria-current="page"] { background: #e5f1ed; color: #166356; }
#workspace-shell .sidebar-department-content > .sidebar-department { margin-left: 8px; }
#workspace-shell .source-panel { border-color: #dfe7eb; }
#workspace-shell .source-panel :is(summary, .source-copy),
#workspace-shell .sidebar-bottom { color: #708091; }
#workspace-shell .nav-count { background: #d8eae3; color: #166356; }
#workspace-shell .nav-state { color: #927019; }
#workspace-shell .topbar {
  min-height: 80px;
  background: #ffffff;
  border-bottom: 1px solid var(--workspace-border);
  padding: 15px 28px;
}
#workspace-shell .workspace-header-copy h1 { font-size: 22px; font-weight: 700; line-height: 1.35; }
#workspace-shell .workspace-header-copy .eyebrow { color: #698077; font-size: 10px; font-weight: 600; }
#workspace-shell .workspace-header-copy > .eyebrow { display: none; }
#workspace-shell .workspace-path { color: #7a8793; }
#workspace-shell .profile-button {
  min-height: 36px;
  border-color: #e0e7ed;
  border-radius: var(--product-radius);
  color: #3e5063;
  padding: 6px 9px;
  font-weight: 600;
}
#workspace-shell .profile-button > span:first-child { background: #edf0e5; color: #7c681e; }
#workspace-shell .profile-button .profile-chevron { background: transparent; color: #7b8a98; }
#workspace-shell .view { padding: 24px 28px 40px; }
#workspace-shell :is(.eyebrow, .sidebar-section-label) { letter-spacing: 0; }
#workspace-shell .eyebrow { color: #6c8078; font-weight: 600; }
#workspace-shell :is(.control-panel-heading h3, .org-toolbar h3, .section-heading h2) {
  color: #2b3c4f;
  font-weight: 650;
  line-height: 1.4;
}
#workspace-shell :is(.primary-action, .secondary-action, .quiet-action, .icon-button, .calendar-today) {
  min-height: 36px;
  border-radius: var(--product-radius);
  font-size: 12px;
  font-weight: 550;
  line-height: 1.4;
  box-shadow: none;
}
#workspace-shell .primary-action {
  border-color: #187669;
  background: #187669;
  color: #ffffff;
}
#workspace-shell .primary-action:hover:not(:disabled) { border-color: #115c52; background: #115c52; }
#workspace-shell :is(.secondary-action, .icon-button, .calendar-today) {
  border-color: #d7e0e7;
  background: #ffffff;
  color: #4a6072;
}
#workspace-shell :is(.secondary-action, .icon-button, .calendar-today):hover:not(:disabled) {
  border-color: #adcac0;
  background: #f0f7f4;
}
#workspace-shell .icon-button { width: 36px; height: 36px; }
#workspace-shell .quiet-action { color: #5c7283; }
#workspace-shell .quiet-action:hover:not(:disabled) { background: #edf2f5; }
#workspace-shell .text-button { border-bottom: 0; color: #356c62; font-weight: 550; }
#workspace-shell .text-button:hover { text-decoration: underline; text-underline-offset: 3px; }
#workspace-shell .danger-button { color: #b5434d; }
#workspace-shell :is(.control-detail, .control-search, .org-form, .official-setup-form, .personnel-form, .member-permissions-form, .comment-form) :is(input:not([type=checkbox]):not([type=radio]):not([type=file]), select, textarea) {
  border: 1px solid #d7e0e7;
  border-radius: var(--product-radius);
  background: #ffffff;
  color: #304457;
  min-height: 38px;
  padding: 9px 11px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
}
#workspace-shell :is(.control-detail, .org-form, .official-setup-form, .personnel-form, .member-permissions-form) :is(input[readonly], textarea[readonly]) {
  background: #f2f5f7;
  color: #687c8e;
}
#workspace-shell :is(.control-detail, .org-form, .official-setup-form, .personnel-form, .member-permissions-form) label { font-weight: 550; }
#workspace-shell :is(input, select, textarea)::placeholder { color: #8796a3; }
#workspace-shell :is(input[type=checkbox], input[type=radio]) { accent-color: #187669; }
#workspace-shell :is(button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid #2d8d7e;
  outline-offset: 3px;
}
#workspace-shell :is(.admin-tabs, .workspace-tabs, .detail-tabs) { border-bottom-color: #dfe7ed; }
#workspace-shell :is(.admin-tabs, .workspace-tabs, .detail-tabs) button {
  min-height: 42px;
  border-radius: 5px 5px 0 0;
  color: #738294;
  padding: 10px 14px;
  font-weight: 550;
}
#workspace-shell :is(.admin-tabs, .workspace-tabs, .detail-tabs) button.is-active {
  background: #edf6f2;
  border-bottom-color: #328c79;
  color: #196b5c;
  font-weight: 650;
}
#workspace-shell .admin-tab-panel { padding-top: 22px; }
#workspace-shell .control-panel-heading { padding-bottom: 18px; }
#workspace-shell .control-split { background: transparent; }
#workspace-shell .control-master-list { background: transparent; }
#workspace-shell .control-master-row { border-radius: 5px; border-bottom-color: #e6ebef; }
#workspace-shell .control-master-row.is-selected { background: #eaf4f0; box-shadow: inset 3px 0 #398c79; }
#workspace-shell .control-master-copy strong { font-size: 13px; font-weight: 600; }
#workspace-shell .control-detail { background: transparent; }
#workspace-shell :is(.file-type, .status-badge, .readiness-badge, .role-badge) {
  border-radius: 4px;
  border-width: 0;
  font-weight: 600;
  letter-spacing: 0;
}
#workspace-shell .file-type { background: #eef2f5; color: #617689; }
#workspace-shell :is(.control-state, .notice) { border-radius: 5px; border-width: 0 0 0 3px; }
#workspace-shell .control-state.is-ready { background: #edf7f0; color: #377250; }
#workspace-shell .control-state.is-error { background: #fff0f1; color: #a33d48; }
#workspace-shell .home-summary > * {
  border-color: #e0e7ed;
  border-radius: 7px;
  background: #ffffff;
  box-shadow: none;
}
#workspace-shell :is(.home-panel, .home-section) { border-top-color: #dce5eb; }
#workspace-shell .recent-card {
  border: 1px solid #e0e7ed;
  border-radius: 7px;
  background: #ffffff;
  box-shadow: none;
}
#workspace-shell .recent-card:hover { transform: none; border-color: #a9c7bd; box-shadow: 0 2px 8px #243f5010; }
#workspace-shell .file-tree { background: #fbfcfd; border-right-color: #e1e7ed; }
#workspace-shell .tree-top .eyebrow { color: #6c7e8e; font-size: 10px; }
#workspace-shell .tree-root { background: #eff3f6; border-radius: 4px; }
#workspace-shell .tree-item.is-active { background: #eaf4f0; }
#workspace-shell .reader { background: #ffffff; }
#workspace-shell .reader-header h2 { font-size: 25px; font-weight: 700; }
#workspace-shell .reader-actions { gap: 6px; }
#workspace-shell .reader-actions button { border-radius: 5px; flex: 0 0 auto; }
#workspace-shell .reader-actions .icon-button { display: inline-grid; place-items: center; }
#workspace-shell .page-body { border-bottom-color: #e1e7ed; }
#workspace-shell :is(.comment-heading, .attachment-heading) > span {
  border-radius: 4px;
  background: #edf2f5;
  color: #5f7487;
  font-weight: 600;
}
#workspace-shell .comment-form textarea { min-height: 88px; resize: vertical; }
#workspace-shell .comment-form button {
  min-height: 34px;
  border: 1px solid #187669;
  border-radius: var(--product-radius);
  padding: 7px 13px;
  background: #187669;
  color: #ffffff;
  font-weight: 550;
}
#workspace-shell .calendar-toolbar { border-bottom: 1px solid #e0e7ed; }
#workspace-shell .calendar-toolbar h2 { font-size: 23px; font-weight: 650; }
#workspace-shell .calendar-weekdays { background: #eff3f6; border-color: #dfe6ec; border-radius: 6px 6px 0 0; }
#workspace-shell .calendar-weekdays span { font-size: 11px; font-weight: 550; }
#workspace-shell .calendar-full-list { border-color: #dfe6ec; background: #ffffff; }
#workspace-shell .calendar-day { background: #ffffff; border-color: #e2e8ed; }
#workspace-shell .calendar-day.is-outside { background: #f8fafb; }
#workspace-shell .calendar-day.is-selected { background: #eaf5ef; }
#workspace-shell .calendar-day:hover { background: #f2f8f5; }
#workspace-shell .calendar-day.is-today time { border-radius: 5px; background: #247d6c; color: #ffffff; }
#workspace-shell .calendar-detail { border-color: #dfe6ec; background: #fbfcfd; }
#workspace-shell .calendar-views { border-radius: 5px; overflow: hidden; }
#workspace-shell .calendar-views button { border-color: #d7e0e7; font-weight: 550; }
#workspace-shell .calendar-views button.is-active { background: #dceee5; color: #176a59; }
#workspace-shell .storage-drop-zone { border-color: #cfddd9; border-radius: 6px; background: #f3f8f5; }
#workspace-shell .storage-table-head { background: #f2f5f8; border-color: #e0e7ed; color: #6b7d8f; }
#workspace-shell .storage-item { border-bottom-color: #e5ebef; }
#workspace-shell .storage-item:hover { background: #f0f7f4; }
#workspace-shell .project-card { border-color: #e0e7ed; border-radius: 7px; box-shadow: none; }
#workspace-shell .project-card:hover { border-color: #a9c7bd; box-shadow: 0 2px 8px #243f5010; }
#workspace-shell .project-card h3 { font-size: 16px; font-weight: 650; }
#workspace-shell :is(.project-metrics, .project-summary) { border-color: #e0e7ed; }
#workspace-shell .project-column { border: 0; border-radius: 6px; background: #edf2f5; }
#workspace-shell .project-column > header { border-bottom: 0; padding: 12px; color: #4b6477; }
#workspace-shell .project-column-items { gap: 10px; padding: 0 10px 10px; }
#workspace-shell :is(.project-column-items, .project-backlog) article { border-color: #dde5eb; border-radius: 6px; box-shadow: 0 1px 2px #233e5010; }
#workspace-shell .project-tabs button { border-radius: 5px 5px 0 0; font-weight: 550; }
#workspace-shell .project-tabs button.is-active { background: #edf6f2; color: #196b5c; }
#workspace-shell #mail-view { padding: 0; }
#workspace-shell .mail-page { background: #ffffff; }
#workspace-shell .mail-toolbar form { border-color: #d7e0e7; border-radius: 6px; }
#workspace-shell .mail-message-row { background: #ffffff; }
#workspace-shell .mail-message-row.is-selected { background: #edf6f2; }
#workspace-shell .mail-folders { background: #f8fafb; }
#workspace-shell .mail-folder-button { border-radius: 5px; }
#workspace-shell .mail-folder-button.is-active { background: #e4f0eb; font-weight: 650; }
#workspace-shell .mail-pane-heading h2 { font-weight: 650; }
#workspace-shell .mail-reader-actions button { border-radius: 5px; }

.member-permissions-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 20px; }
.member-permissions-toolbar h3 { margin: 0; font-size: 18px; font-weight: 650; }
.member-permissions-toolbar label { display: grid; gap: 6px; min-width: 220px; color: #657587; font-size: 12px; }
.member-permissions-toolbar input { width: 100%; min-height: 38px; border: 1px solid #d7e0e7; border-radius: 6px; padding: 9px 11px; background: #fff; color: #304457; font: inherit; }
.member-permissions-layout { display: grid; grid-template-columns: minmax(230px, .65fr) minmax(0, 1.65fr); gap: 24px; border-top: 1px solid #e1e7ed; }
.member-permissions-list { display: grid; align-content: start; gap: 4px; min-width: 0; padding: 16px 18px 16px 0; border-right: 1px solid #e1e7ed; }
.member-permissions-member { display: grid; width: 100%; min-width: 0; gap: 4px; border: 1px solid transparent; border-radius: 6px; padding: 13px 12px; background: transparent; color: #3a4d60; text-align: left; }
.member-permissions-member strong { font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.member-permissions-member small { color: #7b8b99; font-size: 11px; overflow-wrap: anywhere; }
.member-permissions-member:hover { background: #f0f5f6; }
.member-permissions-member[aria-pressed=true] { background: #eaf4f0; border-color: #c6e0d5; color: #176454; }
.member-permissions-detail { min-width: 0; padding-top: 20px; }
.member-permissions-contexts { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 22px; }
.member-permissions-contexts button { border: 1px solid #d7e0e7; border-radius: 5px; padding: 7px 10px; background: #fff; color: #586d80; font: inherit; }
.member-permissions-contexts button[aria-pressed=true] { border-color: #9fc7b8; background: #eaf4f0; color: #176454; }
.member-permissions-context { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 18px; color: #657587; font-size: 12px; }
.member-permissions-context strong { color: #30495e; }
.member-permissions-group { margin: 0; border: 0; padding: 0; border-top: 1px solid #e1e7ed; }
.member-permissions-group > summary { min-height: 48px; padding: 13px 0; cursor: pointer; color: #43596c; font-size: 13px; }
.member-permissions-group > summary strong { margin-left: 8px; font-weight: 600; }
.member-permissions-group > summary span { float: right; color: #748597; font-size: 11px; }
.member-permissions-group fieldset { margin: 0; padding: 0 0 14px; min-width: 0; border: 0; }
.member-permissions-group .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.member-permissions-options { display: grid; gap: 2px; }
.member-permissions-option { display: grid; grid-template-columns: minmax(130px, 1fr) minmax(100px, auto) auto auto; align-items: center; gap: 12px; min-height: 46px; border-bottom: 1px solid #edf1f4; padding: 8px 0; }
.member-permissions-option > span { min-width: 0; overflow-wrap: anywhere; font-size: 12px; }
.member-permissions-option small { color: #748597; font-size: 10px; }
.member-permissions-option label { display: inline-flex; align-items: center; gap: 6px; margin: 0; white-space: nowrap; font-size: 11px; }
.member-permissions-effective { color: #287761; font-size: 11px; }
.member-permissions-effective.is-denied { color: #7b8895; }
.member-permissions-form > label { display: grid; gap: 6px; margin-top: 18px; font-size: 12px; }
.member-permissions-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; padding-top: 18px; border-top: 1px solid #e1e7ed; }
.member-permissions-status { padding: 12px 14px; border-radius: 5px; background: #eef5f8; color: #536e80; margin-bottom: 16px; }
.member-permissions-status.is-error { background: #fff0f1; color: #a33d48; }
.member-permissions-empty { padding: 36px 0; color: #758696; font-size: 13px; }

@media (max-width: 850px) {
  #workspace-shell .workspace-navigation-toggle { border-color: #d0ded8; background: #ffffff; color: #376b60; }
  #workspace-shell .workspace-navigation-toggle:hover:not(:disabled) { background: #eaf4f0; color: #176454; }
  #workspace-shell .topbar { padding: 14px; }
  #workspace-shell .view { padding: 18px 14px 30px; }
  #workspace-shell .workspace-header-copy h1 { font-size: 20px; }
  #workspace-shell .sidebar { border-right: 0; padding: 18px 12px; }
  #workspace-shell .primary-nav { gap: 14px; }
  #workspace-shell .nav-item { min-height: 42px; }
  #workspace-shell :is(.admin-tabs, .workspace-tabs, .detail-tabs) { flex-wrap: wrap; overflow: visible; align-items: stretch; }
  #workspace-shell :is(.admin-tabs, .workspace-tabs, .detail-tabs) button { min-height: 40px; padding: 9px 10px; }
  #workspace-shell .control-master-list { border-right: 0; }
  #workspace-shell .calendar-toolbar h2 { font-size: 21px; }
  .member-permissions-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .member-permissions-list { padding-right: 0; border-right: 0; border-bottom: 1px solid #e1e7ed; }
  .member-permissions-toolbar label { width: 100%; min-width: 0; }
  .member-permissions-option { grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; }
  .member-permissions-option > span { grid-column: 1 / -1; }
  .member-permissions-option small { grid-column: 1; }
}
@media (prefers-reduced-motion: reduce) {
  #workspace-shell .nav-item { transition: none; }
}
