#appView { --workspace-width: 244px; min-height: 100vh; padding-inline-start: var(--workspace-width); }
#appView.workspace-compact { --workspace-width: 70px; }
.workspace-page { min-width: 0; }
.workspace-sidebar { --workspace-surface: #172a35; position: fixed; inset: 0 auto 0 0; width: var(--workspace-width); z-index: 22; display: flex; flex-direction: column; background: var(--workspace-surface); color: #e4edf0; border-inline-end: 1px solid #26414e; }
.workspace-sidebar[data-custom-image]::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  opacity: var(--workspace-image-opacity, .35);
  background: var(--workspace-background-image) center / cover no-repeat;
}
.workspace-brand { --workspace-brand-surface: var(--workspace-custom-background, var(--workspace-surface)); display: flex; align-items: center; gap: 11px; padding: 18px 17px; min-height: 74px; white-space: nowrap; }
.workspace-logo {
  flex: 0 0 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: #a1eacb;
  background: color-mix(in srgb, #a1efcf 76%, color-mix(in srgb, currentColor 58%, var(--workspace-brand-surface)));
}
.workspace-logo::before {
  content: '';
  box-sizing: border-box;
  width: 11px;
  height: 20px;
  border: solid #123e2d;
  border-color: color-mix(in srgb, #032b19 78%, var(--workspace-brand-surface));
  border-width: 0 4px 4px 0;
  border-radius: 2px;
  transform: translateY(-2px) rotate(42deg);
}
.workspace-wordmark { font-family: "Avenir Next", "Segoe UI", system-ui, sans-serif; font-size: 27px; font-weight: 750; line-height: 1; letter-spacing: -.052em; }
.workspace-nav { flex: 1; min-height: 0; padding: 2px 10px 12px; overflow-y: auto; }
.workspace-group { display: grid; gap: 4px; }
.workspace-admin { margin-top: 15px; padding-top: 15px; border-top: 1px solid #354d58; }
.workspace-link { min-width: 0; width: 100%; min-height: 43px; display: flex; align-items: center; gap: 11px; border: 1px solid transparent; border-radius: 9px; padding: 7px 10px; background: transparent; color: #c4d4da; font: inherit; font-size: 14px; text-align: left; white-space: nowrap; cursor: pointer; }
.workspace-link:hover, .workspace-account-button:hover { background: #263e4b; color: #fff; }
.workspace-link[aria-current="page"] { background: #2c4c55; border-color: #3b6066; color: #f3fffb; font-weight: 650; }
.workspace-icon { flex: 0 0 25px; display: grid; place-items: center; color: #a7cbc9; font: 700 18px/1 system-ui, sans-serif; }
.workspace-link[aria-current="page"] .workspace-icon { color: #a8e5d5; }
.workspace-colors { position: relative; align-self: flex-start; margin: 5px 14px 10px; z-index: 4; }
.workspace-colors > summary {
  width: 32px;
  height: 32px;
  list-style: none;
  border: 2px solid #ffffffb0;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #ffffffb0, transparent 48%),
              conic-gradient(#ff795f, #ffc947, #56c986, #45b7f1, #8564e4, #ed69b4, #ff795f);
  box-shadow: 0 2px 7px #0003;
  cursor: pointer;
}
.workspace-colors > summary::-webkit-details-marker { display: none; }
.workspace-colors > summary:focus-visible { outline: 2px solid #77aece; outline-offset: 3px; }
.workspace-color-panel {
  position: absolute;
  inset: auto auto calc(100% + 8px) 0;
  width: 196px;
  padding: 5px 10px;
  background: #fff;
  color: #243c4d;
  border: 1px solid #ccdae0;
  border-radius: 12px;
  box-shadow: 0 8px 24px #0c202c40;
}
.workspace-color-panel label { display: flex; align-items: center; justify-content: space-between; min-height: 36px; font-size: 13px; cursor: pointer; }
.workspace-color-panel label + label { border-top: 1px solid #e7edf3; }
.workspace-color-panel input[type="color"] { width: 27px; height: 27px; padding: 3px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.workspace-color-panel input::-webkit-color-swatch-wrapper { padding: 0; }
.workspace-color-panel input::-webkit-color-swatch { border: 1px solid #a5aab7; border-radius: 50%; }
.workspace-color-panel input::-moz-color-swatch { border: 1px solid #a5aab7; border-radius: 50%; }
.workspace-color-panel input:focus-visible { outline: 2px solid #397fba; outline-offset: 2px; }
.workspace-image-settings { padding: 9px 0 5px; border-top: 1px solid #e7edf3; font-size: 13px; }
.workspace-image-actions { display: flex; flex-wrap: wrap; gap: 5px; margin: 7px 0 2px; }
.workspace-image-actions button[hidden] { display: none; }
.workspace-image-settings label { min-height: 28px; font-size: 12px; }
.workspace-image-settings input[type="range"] { display: block; width: 100%; margin: 0; accent-color: #4f58b7; }
.workspace-image-settings output { font-variant-numeric: tabular-nums; }
.workspace-sidebar[data-default-green]:not([data-custom-background]) { --workspace-surface: #195544; border-color: #326356; }
.workspace-sidebar[data-default-green]:not([data-custom-background]) :is(.workspace-link:hover, .workspace-account-button:hover) { background: #2c6154; }
.workspace-sidebar[data-default-green]:not([data-custom-background]) .workspace-link[aria-current="page"] { background: #3b685f; border-color: #4c7a70; }
.workspace-sidebar[data-default-green]:not([data-custom-background]) .workspace-bottom { border-color: #397061; }
.workspace-sidebar[data-default-green]:not([data-custom-text]),
.workspace-sidebar[data-default-green]:not([data-custom-text]) :is(.workspace-link, .workspace-icon, .workspace-account-label small, .workspace-account-chevron) { color: #afd6e2; }
.workspace-sidebar[data-custom-background] {
  --workspace-custom-line: color-mix(in srgb, var(--workspace-custom-background), #8991a0 40%);
  --workspace-custom-hover: color-mix(in srgb, var(--workspace-custom-background), #8991a0 20%);
  --workspace-custom-active: color-mix(in srgb, var(--workspace-custom-background), #8991a0 33%);
  background: var(--workspace-custom-background);
  border-color: var(--workspace-custom-line);
}
.workspace-sidebar[data-custom-background] :is(.workspace-admin, .workspace-bottom, .workspace-task-child) {
  border-color: var(--workspace-custom-line);
}
.workspace-sidebar[data-custom-background] :is(.workspace-link:hover, .workspace-account-button:hover, .workspace-task-child, .workspace-task-active) {
  background: var(--workspace-custom-hover);
}
.workspace-sidebar[data-custom-background] .workspace-link[aria-current="page"] {
  background: var(--workspace-custom-active);
  border-color: var(--workspace-custom-line);
}
.workspace-sidebar[data-custom-text],
.workspace-sidebar[data-custom-text] :is(.workspace-link, .workspace-icon, .workspace-account-label small, .workspace-account-chevron) {
  color: var(--workspace-custom-text);
}
.workspace-bottom { position: relative; z-index: 5; border-top: 1px solid #354d58; padding: 10px; }
.workspace-account { position: relative; }
.workspace-account-button { width: 100%; display: flex; align-items: center; gap: 10px; background: transparent; padding: 8px; border: 1px solid transparent; border-radius: 10px; color: inherit; text-align: left; cursor: pointer; }
.workspace-avatar { flex: 0 0 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #d3eee8; color: #20584e; font-weight: 750; }
.workspace-avatar { overflow: hidden; }
.workspace-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.workspace-profile-avatar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.workspace-profile-avatar .workspace-avatar { width: 62px; height: 62px; flex-basis: 62px; font-size: 24px; }
.workspace-avatar-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.workspace-avatar-hint { margin: 6px 0 0; color: #526577; font-size: 12px; }
.check-dialog.workspace-crop-dialog { width: min(440px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 20px; border-radius: 16px; box-shadow: 0 16px 55px #14243b39; }
.workspace-crop-dialog::backdrop { background: #16283c88; }
.workspace-crop-heading h2 { margin: 0; font-size: 19px; }
.workspace-crop-dialog p { margin: 8px 0 14px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.workspace-crop-surface { display: grid; place-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #f0f3f9; }
.workspace-crop-frame { position: relative; height: min(320px, 43dvh); max-width: 100%; aspect-ratio: var(--crop-ratio); overflow: hidden; border-radius: 10px; background: #e1e8f0; box-shadow: 0 0 0 1px #839dbd; touch-action: none; cursor: grab; }
.workspace-crop-frame.workspace-crop-circle { height: min(240px, 34dvh, 65vw); border-radius: 50%; }
.workspace-crop-frame.dragging { cursor: grabbing; }
.workspace-crop-frame:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.workspace-crop-frame img { position: absolute; max-width: none; max-height: none; user-select: none; pointer-events: none; }
.workspace-crop-zoom { display: flex; gap: 12px; align-items: center; margin: 14px 0; font-size: 13px; }
.workspace-crop-zoom input { flex: 1; min-width: 0; accent-color: var(--brand); }
.workspace-crop-zoom output { min-width: 4ch; text-align: right; font-variant-numeric: tabular-nums; }
.workspace-crop-status:empty { display: none; }
.workspace-crop-actions { display: flex; justify-content: flex-end; gap: 8px; }
.workspace-account-label { flex: 1; min-width: 0; display: grid; gap: 3px; }
.workspace-account-label strong, .workspace-account-label small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.workspace-account-label small { font-size: 11px; color: #b6cdd1; }
.workspace-account-chevron { color: #b6cdd1; }
.workspace-account-popup { position: absolute; inset: auto 0 100% 0; padding-bottom: 5px; z-index: 3; }
.workspace-account-popup[hidden], .workspace-overlay[hidden] { display: none; }
.workspace-account-panel { background: #fff; border: 1px solid #ccdae0; border-radius: 11px; box-shadow: 0 12px 30px #0c202c55; padding: 5px; min-width: 160px; }
.workspace-account-panel button { display: block; width: 100%; padding: 9px 10px; border: 0; border-radius: 6px; background: transparent; color: #243c4d; font: inherit; text-align: left; cursor: pointer; }
.workspace-account-panel button:hover, .workspace-account-panel button:focus-visible { background: #eaf3f4; }
.workspace-account-panel .workspace-logout { color: #992e3c; }
.workspace-collapse { margin-top: 3px; min-height: 36px; font-size: 12px; }
.workspace-sidebar button:focus-visible { outline: 2px solid #77aece; outline-offset: 2px; }
#appView .workspace-topbar { padding: 10px clamp(14px, 3vw, 32px); gap: 10px; flex-wrap: nowrap; }
#appView .workspace-topbar .search { min-width: 0; max-width: 520px; }
.workspace-drawer-toggle, .workspace-overlay { display: none; }
.workspace-profile { display: grid; gap: 9px; margin: 14px 0 20px; }
.workspace-profile div { display: grid; grid-template-columns: 90px minmax(0, 1fr); padding: 10px 0; border-bottom: 1px solid #e0eaf0; }
.workspace-profile dt { color: #506879; }
.workspace-profile dd { margin: 0; overflow-wrap: anywhere; }
@media (min-width: 741px) {
  .workspace-compact .workspace-label, .workspace-compact .workspace-account-label, .workspace-compact .workspace-account-chevron { display: none; }
  .workspace-compact .workspace-brand, .workspace-compact .workspace-link, .workspace-compact .workspace-account-button { justify-content: center; padding-inline: 0; }
  .workspace-compact .workspace-account-popup { inset-inline-end: auto; }
  .workspace-compact .workspace-colors { align-self: center; margin-inline: 0; }
}
@media (max-width: 740px) {
  #appView, #appView.workspace-compact { --workspace-width: min(248px, 85vw); padding-inline-start: 0; }
  .workspace-sidebar { transform: translateX(-100%); visibility: hidden; transition: transform .2s; }
  .workspace-drawer-open .workspace-sidebar { transform: translateX(0); visibility: visible; }
  .workspace-drawer-toggle { display: inline-grid; place-items: center; width: 38px; height: 38px; padding: 0; flex: none; }
  .workspace-overlay:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 21; border: 0; background: #10233365; }
  .workspace-collapse { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .workspace-sidebar { transition: none; }
}

.workspace-feature { max-width: 1450px; min-width: 0; margin-inline: auto; padding: 32px clamp(16px, 3vw, 38px) 64px; }
.workspace-feature-content { min-width: 0; }
.workspace-feature-content > .ed-head { margin: 0 0 22px; align-items: flex-start; }
.workspace-feature-content > .ed-head h1 { margin: 0; color: #14283d; font-size: clamp(24px, 3vw, 36px); line-height: 1.2; letter-spacing: -.025em; }
.workspace-feature-content > .ed-head p { margin: 8px 0 0; color: #526577; }
.workspace-feature-content > .user-list,
.workspace-feature-content #taskHubList { border: 1px solid #dbe5ec; border-radius: 14px; background: #fff; padding: 14px 18px; }
.workspace-feature-content .chart-box { min-width: 0; }
.workspace-feature-content[role="alert"], .workspace-feature-content > [role="alert"] { padding: 14px; background: #fff; border-radius: 8px; color: #9b313b; }
#workspaceFeature .nc-report-dialog { max-width: none; width: auto; max-height: none; overflow: visible; padding: 0; background: transparent; }
#workspaceFeature .nc-report-dialog .nc-report-heading { background: transparent; position: static; padding: 0; }
#workspaceFeature .nc-table-wrap { overflow-x: auto; }
#appView[data-workspace-feature] .workspace-topbar .search { display: none; }
@media (min-width: 741px) {
  #appView[data-workspace-feature] .workspace-topbar { display: none; }
}
@media (max-width: 740px) {
  .workspace-feature { padding-block-start: 18px; }
  #workspaceFeature .nc-filters { grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); }
}
