/* Dashboard board for the built-in nexa-layout-def/1 layout.
   Column count follows viewport width. A cell does not grow past --nexa-layout-card-max.
   Card height follows content. */
.nexa-home,.nexa-preview-nav,.nexa-preview-banner,.nexa-home button,.nexa-home input{
  font-family:"PingFang TC","Noto Sans TC","Microsoft JhengHei","Segoe UI","Helvetica Neue",Arial,sans-serif
}
.nexa-home{background:var(--nexa-surface-page,#eef0f3);color:#172038;padding:var(--nexa-layout-pad,24px)}
.nexa-layout-board{
  display:grid;
  grid-template-columns:repeat(var(--nexa-layout-columns,1),minmax(0,var(--nexa-layout-card-max)));
  grid-auto-rows:auto;
  gap:var(--nexa-layout-gap);
  justify-content:center;
  align-items:start;
  width:min(100%,calc(var(--nexa-layout-columns,1)*var(--nexa-layout-card-max) + (var(--nexa-layout-columns,1) - 1)*var(--nexa-layout-gap)));
  margin:0 auto var(--nexa-layout-pad);
}
.nexa-layout-board>.home-card,
.nexa-layout-board>.home-compact-card{
  width:auto;max-width:none;min-width:0;position:relative;
  align-self:start;height:auto;
  border-radius:var(--nexa-radius-xl);
  background:var(--nexa-card-background,#fff);
  border:1px solid transparent;
  box-shadow:var(--nexa-layout-shadow);
  padding:var(--nexa-layout-card-pad);
  display:flex;flex-direction:column;gap:8px;min-height:0;
  grid-template-rows:none;
}
.nexa-layout-board .home-card-title{margin:0;font-size:16px;font-weight:600;letter-spacing:-.01em}
.nexa-layout-board .home-card-status:empty{display:none}
.nexa-layout-board .home-card-body{height:auto;max-height:none;overflow:visible;font-size:14px;line-height:1.45}
.nexa-layout-board .home-card-controls{display:flex;gap:8px;align-items:center}
.nexa-layout-board .home-card-controls .home-card-action,
.nexa-layout-board .home-card-controls button[data-nexa-open-upm],
.nexa-layout-board .home-card-controls button[data-home-action="refresh"]{
  appearance:none;-webkit-appearance:none;cursor:pointer;
  border:1px solid #d5dbe6;background:#fff;color:#172038;
  border-radius:999px;min-height:36px;padding:0 16px;
  font:600 14px/1 "PingFang TC","Noto Sans TC","Microsoft JhengHei","Segoe UI",sans-serif;
  box-shadow:none
}
.nexa-layout-board .home-pager{display:flex;align-items:center;gap:6px;font-size:12px;color:#526780}
.nexa-layout-board .home-pager button{
  appearance:none;min-height:28px;min-width:28px;padding:0;border-radius:8px;
  border:1px solid #d5dbe6;background:#fff;color:#172038;font-size:12px
}
.nexa-layout-board .home-pin{
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;
  clip:rect(0,0,0,0);white-space:nowrap;border:0
}
.nexa-metric{display:block;margin:4px 0 0;font-size:36px;font-weight:600;letter-spacing:-.03em;line-height:1}
.nexa-recent{margin:4px 0 0;font-size:14px}
.nexa-recent-row{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.nexa-recent-row span{padding:6px 10px;border-radius:999px;background:#f4f6fb;font-size:13px;line-height:1.3}
.nexa-layout-board .home-secondary{display:block;margin:6px 0 0;color:#526780;font-size:13px}
.nexa-home{overflow:visible;padding-bottom:28px}
.nexa-home>.home-tools{display:flex;flex-wrap:wrap;gap:8px;align-items:center;width:100%;max-width:100%;box-sizing:border-box;margin:16px 0 0;overflow:visible}
.nexa-home>.home-tools button,.nexa-home>.home-tools p{white-space:normal}
.nexa-home .home-tools button{appearance:none;border:1px solid #d5dbe6;background:#fff;color:#172038;border-radius:999px;min-height:32px;padding:0 12px;font:600 13px/1 "PingFang TC","Noto Sans TC","Microsoft JhengHei","Segoe UI",sans-serif}
.nexa-home [data-home-region][hidden]{display:none}
.nexa-face-hero .home-work-name,.nexa-face-tile strong{font-size:var(--nexa-font-compat-44,44px);font-weight:600;letter-spacing:-.03em;line-height:1}
.nexa-face-flag,.nexa-face-badge{
  display:inline-flex;align-items:center;border-radius:var(--nexa-radius-pill,999px);
  padding:2px 8px;background:var(--nexa-status-warning-soft);color:var(--nexa-status-warning,#79531d);
  font-size:var(--nexa-font-caption,12px);
}
.nexa-face-badge[data-tone="ok"]{background:color-mix(in srgb,var(--nexa-status-success,#1f7a4d) 16%,#fff);color:var(--nexa-status-success,#1f7a4d)}
.nexa-face-row{border-top:1px solid var(--nexa-border,#cbd2e2)}
.nexa-face-row summary{display:flex;justify-content:space-between;gap:8px;align-items:center;min-height:44px;cursor:pointer}
.nexa-face-row p{margin:0 0 8px;color:var(--nexa-text-secondary)}
.nexa-face-bars{display:flex;align-items:flex-end;gap:8px;height:96px}
.nexa-face-bar{flex:1;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;height:100%;min-width:0}
.nexa-face-bar span{display:block;width:8px;border-radius:999px;background:var(--nexa-accent,#2457cc)}
.nexa-face-bar small{margin-top:4px;font-size:11px;color:var(--nexa-text-secondary)}
.nexa-face-scale{height:8px;border-radius:999px;background:var(--nexa-tone-18,#e1e8f2);overflow:hidden}
.nexa-face-scale span{display:block;height:100%;background:var(--nexa-accent,#2457cc)}
.nexa-face-avatars{display:flex;flex-direction:column;gap:8px}
.nexa-face-avatar{display:flex;gap:8px;align-items:center}
.nexa-face-avatar i{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:var(--nexa-tone-11,#f2f7ff);font-style:normal;font-size:12px}
.nexa-face-timeline{display:flex;flex-direction:column;gap:6px}
.nexa-face-timeline li{display:flex;gap:8px;align-items:baseline}
.nexa-face-timeline i{width:8px;height:8px;border-radius:50%;background:var(--nexa-accent,#2457cc);flex:none}
.nexa-face-modules{display:flex;flex-wrap:wrap;gap:6px}
.nexa-face-modules span{display:inline-flex;gap:6px;align-items:center;padding:4px 8px;border-radius:var(--nexa-radius-pill,999px);background:var(--nexa-tone-29,#f7faff)}
.nexa-face-modules i{width:8px;height:8px;border-radius:50%;background:var(--nexa-status-success,#1f7a4d)}
.nexa-face-empty,.nexa-face-error{display:flex;flex-direction:column;gap:8px}
.nexa-face-skeleton{display:flex;flex-direction:column;gap:8px}
.nexa-skel-title,.nexa-skel-line,.nexa-skel-bars{display:block;border-radius:8px;background:var(--nexa-tone-18,#e1e8f2)}
.nexa-skel-title{height:16px;width:46%}
.nexa-skel-line{height:10px;width:100%}
.nexa-skel-bars{height:48px;width:100%}
.nexa-preview-nav{font-family:"PingFang TC","Noto Sans TC","Microsoft JhengHei","Segoe UI","Helvetica Neue",Arial,sans-serif}
.nexa-preview-banner{margin:0;padding:10px 16px;background:#1c1c1a;color:#fff;font:600 14px/1.4 "Segoe UI",sans-serif}
@media(max-width:767px){
  .nexa-layout-board{--nexa-layout-columns:1}
}
@media(min-width:768px) and (max-width:1199px){
  .nexa-layout-board{--nexa-layout-columns:2}
}
@media(min-width:1200px) and (max-width:1599px){
  .nexa-layout-board{--nexa-layout-columns:3}
}
@media(min-width:1600px) and (max-width:1999px){
  .nexa-layout-board{--nexa-layout-columns:4}
}
@media(min-width:2000px) and (max-width:2399px){
  .nexa-layout-board{--nexa-layout-columns:5}
}
@media(min-width:2400px){
  .nexa-layout-board{--nexa-layout-columns:6}
}
