/* Shared porcelain surface, selected design 1. Card views only: never table rows.
   Keep overflow visible so project pickers and product menus remain usable. */
:root {
  --pc-surface: radial-gradient(ellipse at 105% -5%,#a7b7e866,transparent 62%),linear-gradient(155deg,#fff 55%,#f9f8fc 100%);
  --pc-border: #dfe3e8;
  --pc-shadow: 0 12px 26px -10px #434b5826,0 3px 7px #29365706,inset 0 1px 0 #fff;
  --pc-hover: 0 16px 30px -10px #434b5833,0 4px 9px #29365708,inset 0 1px 0 #fff;
  --pc-ground: #f2f3fb;
  --pc-rule: #e7e8f3;
  --pc-tint: #f1eeff;
  --pc-purple: #6554e8;
}
html .fd-stat-filter {cursor:pointer;border-radius:8px!important;transition:box-shadow .15s,background .15s}
html .fd-stat-filter:hover {color:var(--pc-purple)}
html .fd-stat-filter[aria-pressed=true] {background:var(--pc-tint)!important;box-shadow:0 0 0 5px var(--pc-tint)!important}
html .fd-stat-filter:focus-visible {outline:2px solid var(--pc-purple);outline-offset:6px}
/* Behind workspace content, never over text, cards or interactive controls. */
html body>.app>.main.fd-ambient-host {position:relative;isolation:isolate}
.fd-ambient {position:fixed;inset:0;overflow:hidden;pointer-events:none;z-index:-1}
.fd-ambient>span {position:absolute;left:15%;top:10%;width:65vw;height:70vh;
  background:radial-gradient(ellipse at center,#aa92df26,transparent 68%)}
.fd-ambient>span:nth-child(2) {background:radial-gradient(ellipse at center,#73adcc26,transparent 68%)}
.fd-ambient>span:nth-child(3) {background:radial-gradient(ellipse at center,#7cb99f1c,transparent 68%)}
html[data-flowdo-theme=dark] .fd-ambient {opacity:.5}
@media(prefers-reduced-motion:reduce) {.fd-ambient {display:none}}
html[data-flowdo-theme=dark] {
  --pc-surface: radial-gradient(ellipse at 105% -5%,#8270c550,transparent 62%),linear-gradient(155deg,#242b3e,#202638);
  --pc-border: #3b425b;
  --pc-shadow: 0 12px 26px -10px #0008,inset 0 1px 0 #ffffff0d;
  --pc-hover: 0 16px 30px -10px #000a,inset 0 1px 0 #ffffff14;
  --pc-ground: #191f2e;
  --pc-rule: #343d53;
  --pc-tint: #302c49;
  --pc-purple: #b3a7ff;
}
:is(#customerList,#productGrid,#materialGrid).fd-collection-cards,
#delivery .attention-cards,.exam-workspace .exam-collection.cards,
.classroom-directory .classroom-directory-body.cards {
  background:var(--pc-ground)!important;padding:22px!important;gap:20px!important;align-content:start;
  grid-template-columns:repeat(auto-fill,minmax(0,min(100%,360px)))!important;
  justify-content:start;align-items:start;
}
#customerList.fd-collection-cards .customer-row.crm-grid,
.attention-cards .attention-project,
:is(#productGrid,#materialGrid).fd-collection-cards>.catalog-card,
.exam-workspace .exam-collection.cards>.exam-item,
.classroom-directory .classroom-directory-body.cards>article {
  box-sizing:border-box;min-width:0;border:1px solid var(--pc-border)!important;
  border-radius:16px!important;background:var(--pc-surface)!important;
  box-shadow:var(--pc-shadow)!important;padding:22px;
  width:100%;aspect-ratio:5/6;min-height:432px;
  transition:box-shadow .18s ease,border-color .18s ease;
  overflow:visible;
}
#customerList.fd-collection-cards .customer-row.crm-grid:hover,
.attention-cards .attention-project:hover,
:is(#productGrid,#materialGrid).fd-collection-cards>.catalog-card:hover,
.exam-workspace .exam-collection.cards>.exam-item:hover,
.classroom-directory .classroom-directory-body.cards>article:hover {
  box-shadow:var(--pc-hover)!important;border-color:#b5bcc8!important;
}
#customerList.fd-collection-cards .customer-row.crm-grid::before,
.attention-cards .attention-card-art {display:none}
#customerList.fd-collection-cards .customer-row.crm-grid {gap:0 12px;height:432px;grid-template-rows:auto minmax(0,1fr) auto}
.crm-card-details {display:contents}
html #customerList.fd-collection-cards .crm-card-details {display:block;grid-column:1/-1;grid-row:2;min-height:0;min-width:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#bdb5df transparent;padding-right:6px}
html #customerList.fd-collection-cards .crm-card-details .crm-cell {overflow:visible;max-height:none;min-height:0;height:auto;white-space:pre-wrap;overflow-wrap:anywhere}
#customerList.fd-collection-list .crm-card-details>.crm-cell {text-align:center}
html #customerList.fd-collection-cards .crm-grid>.cust {padding-bottom:20px;margin-bottom:12px;border-color:var(--pc-rule);gap:14px}
html #customerList.fd-collection-cards .cust .pic {width:48px;height:48px;flex:0 0 48px;border-radius:14px;background:var(--pc-tint);color:var(--pc-purple);font-size:20px}
html #customerList.fd-collection-cards .cust strong {font-size:16px;line-height:1.5}
.crm-card-subtitle {display:none}
#customerList.fd-collection-list .crm-row-actions .mini-btn.primary {background:var(--fd-surface,#fff);color:var(--fd-text,#263a53);border-color:var(--fd-border,#dfe3e8);box-shadow:none}
#customerList.fd-collection-cards .crm-card-subtitle {display:block;margin-top:5px;font-size:12px;color:var(--fd-muted,#768098)}
html #customerList.fd-collection-cards .crm-cell {grid-column:1/-1;display:grid;grid-template-columns:76px minmax(0,1fr);gap:12px;align-items:baseline;padding:9px 0;background:none;border-radius:0;max-height:none;font-size:13px}
#customerList.fd-collection-cards .crm-card-label {margin:0;font-size:12px}
#customerList.fd-collection-cards .crm-grid>div:nth-last-child(2),
#customerList.fd-collection-cards .crm-row-actions {border-top:1px solid var(--pc-rule);margin-top:18px;padding-top:18px}
#customerList.fd-collection-cards .customer-project-picker summary {padding:8px 10px;font-size:12px;border-radius:9px}
#customerList.fd-collection-cards .customer-row:has(.customer-project-picker[open]),
#productGrid.fd-collection-cards>.catalog-card:has(details[open]) {z-index:30}
/* Aspect-ratio plus flex shrink previously let long feedback push the footer
   outside the painted card. Use a minimum, not a constrained block size. */
html .attention-cards {align-items:stretch!important}
html .attention-cards .attention-project {
  gap:4px;padding:20px;position:relative;aspect-ratio:5/6;height:432px;min-height:432px;
  --pc-art:#a7b7e866;--pc-glow:100% 0;
  --pc-surface:radial-gradient(ellipse at var(--pc-glow),var(--pc-art),transparent 65%),var(--fd-panel,#fff);
}
html .attention-cards .attention-project>* {flex-shrink:0;min-width:0;max-width:100%;overflow-wrap:anywhere}
html .attention-cards .attention-project:nth-child(4n+2) {--pc-art:#97c4e366;--pc-glow:110% 15%}
html .attention-cards .attention-project:nth-child(4n+3) {--pc-art:#9ccdd366;--pc-glow:90% -10%}
html .attention-cards .attention-project:nth-child(4n+4) {--pc-art:#b9afe366;--pc-glow:110% 25%}
html .attention-cards .attention-project footer {flex-shrink:0}
html .attention-cards .attention-project footer>div {min-width:0;max-width:100%;flex-wrap:wrap}
html .attention-project h3,html .attention-project .attention-node strong,html .attention-project .attention-risk {display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;margin:0}
html .attention-project .attention-customer {margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html .attention-project footer {margin-top:auto}
html .attention-project h3 {line-height:22px}
html .attention-project .attention-risk,html .attention-project .attention-node strong {-webkit-line-clamp:1}
html .attention-cards .attention-project footer {padding-top:10px}
.attention-feedback-picker {position:relative;font-size:12px;color:var(--pc-purple)}
.attention-feedback-preview {display:flex;align-items:center;gap:8px;text-align:left;width:100%;padding:6px 10px;border:1px solid var(--pc-rule);border-radius:9px;background:var(--pc-tint);color:var(--fd-text,#263a53);cursor:pointer}
.attention-feedback-preview small {flex:none;color:var(--pc-purple);font-size:10px;line-height:14px}
.attention-feedback-preview strong {display:block;min-width:0;font-size:12px;line-height:18px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.attention-project {cursor:pointer}
.attention-feedback-preview+.attention-feedback-picker summary {padding:3px 8px;font-size:11px}
html #customers .fd-directory-head h1 {margin-right:4px}
html #customers .fd-directory-head .customer-stats {margin-left:0;margin-right:auto;flex-wrap:wrap}
.attention-feedback-picker summary {cursor:pointer;padding:9px 12px;border:1px solid var(--pc-rule);border-radius:9px;background:var(--pc-tint)}
.attention-feedback-options {position:absolute;top:calc(100% + 6px);left:0;right:0;max-height:240px;overflow:auto;padding:8px;background:var(--fd-panel,#fff);border:1px solid var(--pc-border);border-radius:12px;box-shadow:var(--pc-hover);z-index:40}
.attention-project:has(.attention-feedback-picker[open]) {z-index:40}
.attention-feedback-options .attention-feedback-item {width:100%;text-align:left;cursor:pointer;padding:10px;border:0;border-bottom:1px solid var(--pc-rule);background:transparent;color:var(--fd-text,#263a53)}
.attention-feedback-options .attention-feedback-item :is(strong,span) {display:block;line-height:1.5;white-space:normal;overflow-wrap:anywhere}
.attention-feedback-options .attention-feedback-item:hover {background:var(--pc-tint)}
html #delivery .attention-directory-head button:not(:disabled) {background:linear-gradient(135deg,#7868ff,#585bfa)!important;color:#fff!important;border-color:#746aff!important;box-shadow:0 4px 10px #655bff28}
html #customers .customer-stats strong {font-size:21px!important;font-weight:750!important;line-height:1;color:#387f9e!important;margin:0 0 0 6px!important}
html #customers .customer-stats .card:nth-child(2) strong {color:#259b73!important}
html #customers .customer-stats .card:nth-child(3) strong {color:#8060d7!important}
html #customers .customer-stats .card:nth-child(4) strong {color:#ca8a29!important}
html #customers .customer-stats .card:nth-child(5) strong {color:#7c879b!important}
/* The embedded exam directory already has workspace padding outside its iframe. */
html body:has(>#root>.exam-workspace) #root>.exam-workspace:has(.exam-collection) {padding:0!important;min-height:100dvh;background:transparent}
html body>.app>.sidebar {border-right:1px solid var(--pc-border);box-shadow:6px 0 24px #625b9c0a,inset -1px 0 0 #ffffff70;background:linear-gradient(160deg,var(--fd-panel,#fff),var(--fd-bg,#f5f6fc))!important}
html body>.app>.sidebar .v1-rail-toggle {color:var(--fd-muted,#73829a);background:transparent;border:1px solid transparent;border-radius:9px;transition:color .16s,background-color .16s,border-color .16s,box-shadow .16s}
html body>.app>.sidebar .v1-rail-toggle:hover {color:var(--pc-purple,#6554ec);background:var(--pc-tint,#efedff);border-color:var(--pc-border,#dfe3e8);box-shadow:0 3px 8px #655bff14}
html body>.app>.sidebar .v1-rail-toggle:active {background:var(--pc-tint,#efedff);color:var(--pc-purple,#6554ec);box-shadow:inset 0 1px 3px #655bff1c}
html body>.app>.sidebar .v1-rail-toggle:focus-visible {outline:2px solid var(--pc-purple,#6554ec);outline-offset:3px}
html body>.app>.sidebar .v1-rail-toggle svg {stroke:currentColor}
html body>.app>.sidebar .nav button {display:flex;align-items:center;gap:12px;border:1px solid transparent;border-radius:12px;padding:12px 14px;transition:background .18s,box-shadow .18s}
html body>.app>.sidebar .nav button.active {color:var(--pc-purple)!important;background:linear-gradient(135deg,var(--pc-tint),var(--fd-panel,#fff))!important;border-color:var(--pc-border);box-shadow:0 5px 12px #655bff16,inset 0 1px #ffffff90}
html body>.app>.sidebar .nav button:hover {box-shadow:0 4px 10px #625b9c12;background:var(--pc-tint)!important}
.fd-nav-icon {width:20px;height:20px;flex:none;stroke:currentColor;stroke-width:1.7;fill:none;stroke-linecap:round;stroke-linejoin:round}
@property --pc-ground-x {syntax:'<percentage>';inherits:false;initial-value:10%}
@keyframes pc-ground-flow {0%,100%{--pc-ground-x:10%}43%{--pc-ground-x:85%}72%{--pc-ground-x:44%}}
html :is(#customerList,#productGrid,#materialGrid):is(.fd-collection-cards,.fd-collection-list),
html #delivery .attention-cards,html .exam-workspace .exam-collection,html .classroom-directory .classroom-directory-body {
  background:radial-gradient(ellipse at var(--pc-ground-x) 15%,#aa92df18,transparent 65%),radial-gradient(ellipse at 80% 85%,#73adcc15,transparent 65%),var(--pc-ground)!important;
}
@media(prefers-reduced-motion:no-preference) {
  :is(#customerList,#productGrid,#materialGrid):is(.fd-collection-cards,.fd-collection-list),.attention-cards,.exam-collection,.classroom-directory-body {animation:pc-ground-flow 38s cubic-bezier(.37,0,.63,1) infinite}
}
.attention-cards .attention-project h3 {font-size:16px;line-height:1.5}
.attention-cards .attention-customer {font-size:13px}
.attention-cards .attention-progress {font-size:12px}
.attention-cards .attention-progress>div {height:7px;background:var(--pc-rule);box-shadow:inset 0 1px 3px #55517916}
.attention-cards .attention-progress i {background:#7966f5;box-shadow:inset 0 1px 1px #ffffff65}
.attention-cards .attention-node strong {font-size:13px}
.attention-cards .attention-feedback {background:var(--pc-tint);border:1px solid var(--pc-rule);border-radius:10px}
.attention-cards .attention-feedback small {color:var(--pc-purple)}
.attention-cards .attention-project footer {border-color:var(--pc-rule);padding-top:18px;gap:12px}
.attention-cards .attention-project footer>div {flex-wrap:wrap}
:is(#customerList,#productGrid,#materialGrid).fd-collection-cards .mini-btn,
.attention-cards .attention-project footer button,
.classroom-directory .classroom-directory-body.cards button {
  border-radius:9px;box-shadow:0 3px 7px #5d548d0c,inset 0 1px 0 #ffffff50;
}
:is(#customerList,#productGrid,#materialGrid).fd-collection-cards .mini-btn.primary,
.attention-cards .attention-project footer .primary {
  background:linear-gradient(160deg,#8270ff,#6554ec);border-color:#7968f1;color:#fff;
  box-shadow:0 6px 12px -4px #7160de55,inset 0 1px 0 #ffffff50;
}
:is(#productGrid,#materialGrid).fd-collection-cards>.catalog-card {display:flex;flex-direction:column}
:is(#productGrid,#materialGrid).fd-collection-cards .catalog-meta {margin-top:auto;padding-top:16px;border-top:1px solid var(--pc-rule);gap:10px;flex-wrap:wrap}
#materialGrid .material-kind {display:inline-flex;align-items:center;align-self:flex-start;width:fit-content;gap:7px;background:transparent;color:#63728d;font-size:11px;font-weight:600;letter-spacing:.06em;white-space:nowrap}
#materialGrid .material-kind::before {content:'';width:5px;height:5px;border-radius:50%;background:#8c9fba}
#materialGrid .material-actions {display:inline-flex;align-items:center;gap:4px;flex-wrap:nowrap;white-space:nowrap}
#materialGrid.fd-collection-cards .catalog-meta {display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px}
#materialGrid.fd-collection-cards .catalog-meta>.tiny {flex-shrink:0;white-space:nowrap}
#materialGrid.fd-collection-cards .material-actions {justify-self:end;min-width:0;max-width:100%}
#materialGrid .catalog-meta>[data-learning-state] {margin-left:auto;justify-content:flex-end}
#materialGrid.fd-collection-cards .catalog-meta>[data-learning-state] {grid-column:1/-1;justify-self:end}
#materialGrid .material-actions .mini-btn {flex-shrink:0;padding:6px 7px}
#productGrid.fd-collection-cards .fd-product-thumbnail {border-radius:12px;overflow:hidden;flex-shrink:0}
#productGrid.fd-collection-cards>.catalog-card {padding:0 22px 22px!important}
#productGrid.fd-collection-cards .fd-project-cover {width:calc(100% + 44px);margin:0 -22px 18px!important;border-radius:15px 15px 0 0;aspect-ratio:2/1}
.exam-workspace .exam-collection.cards>.exam-item {color:var(--fd-text,#263a53);gap:14px;min-height:432px}
.exam-workspace .exam-collection.cards>.exam-item .exam-item-kind {color:var(--pc-purple);font-size:12px}
.exam-workspace .exam-collection.cards>.exam-item footer {border-color:var(--pc-rule);padding-top:16px}
.exam-workspace .exam-collection.cards>.exam-item footer>span:last-child {color:var(--pc-purple)}
.classroom-directory .classroom-directory-body.cards>article {gap:14px;align-content:start;align-items:center}
.classroom-directory .classroom-directory-body.cards>article>strong {font-size:16px;line-height:1.6}
.classroom-directory .classroom-directory-body.cards>article>div {width:100%;padding-top:16px;border-top:1px solid var(--pc-rule);display:flex;gap:8px;flex-wrap:wrap}
/* Backgrounds are painted inside the rounded border, never overflowing menus. */
#materialGrid.fd-collection-cards>.catalog-card {--pc-surface:radial-gradient(ellipse at 100% 0,#9ccdd366,transparent 65%),linear-gradient(155deg,#fff 55%,#f7faf9)}
.exam-workspace .exam-collection.cards>.exam-item {--pc-surface:radial-gradient(ellipse at 100% 0,#97c4e366,transparent 65%),linear-gradient(155deg,#fff 55%,#f8f9fc)}
.classroom-directory .classroom-directory-body.cards>article {display:grid;grid-template-columns:auto auto 1fr;grid-template-rows:auto auto 1fr;align-content:stretch}
.classroom-directory .classroom-directory-body.cards>article>strong {width:100%;grid-column:1/-1}
.classroom-directory .classroom-directory-body.cards>article>div {margin-top:auto;grid-column:1/-1;align-self:end}
html[data-flowdo-theme=dark] #materialGrid.fd-collection-cards>.catalog-card,
html[data-flowdo-theme=dark] .exam-workspace .exam-collection.cards>.exam-item {--pc-surface:radial-gradient(ellipse at 100% 0,#777bb72e,transparent 55%),linear-gradient(155deg,#242b3e,#202638)}
:is(#customerList,#productGrid,#materialGrid).fd-collection-cards :focus-visible,
.attention-cards :focus-visible,.exam-collection.cards>.exam-item:focus-visible,
.classroom-directory-body.cards :focus-visible {outline:2px solid var(--pc-purple);outline-offset:3px}
@media(max-width:600px) {
  :is(#customerList,#productGrid,#materialGrid).fd-collection-cards,
  #delivery .attention-cards,.exam-workspace .exam-collection.cards,
  .classroom-directory .classroom-directory-body.cards {grid-template-columns:minmax(0,min(100%,360px))!important;padding:14px!important;gap:16px!important}
}
/* The same gradient is used at rest and during hover; menus remain unclipped. */
@property --pc-flow-x {syntax:'<percentage>';inherits:true;initial-value:105%}
@property --pc-flow-y {syntax:'<percentage>';inherits:true;initial-value:0%}
html :is(#customerList.fd-collection-cards .customer-row.crm-grid,
  .attention-cards .attention-project,
  #productGrid.fd-collection-cards>.catalog-card,
  #materialGrid.fd-collection-cards>.catalog-card,
  .exam-workspace .exam-collection.cards>.exam-item,
  .classroom-directory .classroom-directory-body.cards>article) {
  position:relative;isolation:isolate;
  --pc-art:#a7b7e866;
  --pc-surface:radial-gradient(ellipse at var(--pc-flow-x,105%) var(--pc-flow-y,0%),var(--pc-art),transparent 65%),var(--fd-panel,#fff);
  &:nth-child(4n+2) {--pc-art:#97c4e366}
  &:nth-child(4n+3) {--pc-art:#9ccdd366}
  &:nth-child(4n+4) {--pc-art:#b9afe366}
}
@media(prefers-reduced-motion:reduce) {
  #customerList.fd-collection-cards .customer-row.crm-grid,.attention-cards .attention-project,
  :is(#productGrid,#materialGrid).fd-collection-cards>.catalog-card,
  .exam-workspace .exam-collection.cards>.exam-item,
  .classroom-directory .classroom-directory-body.cards>article {transition:none}
}
