.workspace-disclosure { margin-top:16px; border:1px solid var(--line); border-radius:9px; padding:12px; min-width:0; }
.workspace-disclosure > summary { cursor:pointer; font-weight:700; overflow-wrap:anywhere; }
.workspace-disclosure > summary:focus-visible { outline:2px solid var(--blue); outline-offset:5px; }
.workspace-disclosure > summary small { display:block; margin:5px 0 0 18px; color:var(--muted); font-weight:400; }
.workspace-disclosure .plan-results { margin:12px 0 0; padding:0; border:0; }
.workspace-disclosure .schedule-scope { border:0; padding-top:0; }
.system-controls .system-columns { margin-top:16px; }
.system-controls label input[type=number] { display:block; width:150px; margin-top:6px; }
.folder-list-actions { display:flex; gap:14px; align-items:center; flex-wrap:wrap; }
.system-columns { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.automation-columns { margin-top:18px; }
.system-pane { min-width:0; padding:18px; border:1px solid var(--line); border-radius:12px; background:#fff; }
.sharepoint-pane { border-top:4px solid #d97706; }
.nas-pane { border-top:4px solid var(--blue); }
.system-pane > h3,.system-pane > h4 { margin:0; font-size:20px; }
.system-pane > p { color:var(--muted); margin:4px 0 16px; }
.system-pane > button { margin:10px 8px 0 0; }
.target-columns { margin:0 20px 20px; align-items:start; }
.system-pane > .metric { padding:12px; border-bottom:1px solid var(--line); }
.system-pane > .metric strong,.system-pane > .metric small { display:block; }
.system-pane .schedule-card { margin:16px 0; padding:14px; }
.system-pane .cleanup-whitelist { padding:12px 0 0; flex-wrap:wrap; }
.system-pane .archive-activity { padding:16px 0 0; }
.system-pane .live-progress { margin:14px 0; }
.system-pane .plan-results { margin-top:16px; padding:14px; }
.system-pane .plan-table-wrap table { min-width:0; table-layout:fixed; font-size:12px; }
.system-pane .plan-table-wrap td,.system-pane .plan-table-wrap th { overflow-wrap:anywhere; padding:8px 5px; }
.system-pane .plan-table-wrap th:first-child { width:40%; }
.automation-global { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:14px; padding:16px 0; }
.automation-global .check-label { margin:0; }
.schedule-scope { padding-top:16px; border-top:1px solid var(--line); }
.scope-table { min-width:0; margin-top:14px; table-layout:fixed; }
.scope-table th,.scope-table td { overflow-wrap:anywhere; }
.scope-table tbody th { text-transform:none; letter-spacing:normal; color:var(--ink); font-size:13px; }
.scope-table small { display:block; color:var(--muted); font-weight:400; }
.scope-table .selected-site { background:#eef7ff; }
.automation-card { margin: 18px 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.automation-head, .automation-grid { display: flex; align-items: end; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.automation-grid { margin-top: 16px; justify-content: flex-start; }
.automation-grid label { font-size: 12px; font-weight: 700; }
.automation-grid label small { display: block; max-width: 210px; margin-top: 4px; color: var(--muted); font-weight: 500; }
.automation-grid input, .automation-grid select, dialog select { display: block; min-width: 150px; padding: 9px; border: 1px solid var(--line); border-radius: 7px; margin-top: 5px; }
.schedule-state { font-weight: 800; color: var(--green); }
.schedule-state.off { color: var(--muted); }
.target-automation { padding: 0 20px 16px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.target-automation > div { flex: 1 1 360px; }
.target-automation strong { display: block; font-size: 13px; }
.target-automation small { display: block; color: var(--muted); margin-top: 3px; }
.schedule-summary { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.schedule-summary span, .schedule-summary strong { display: block; }
.schedule-summary strong { color: var(--ink); margin-bottom: 3px; }
.folder-policy { margin: 18px 20px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: #f8fafc; }
.policy-head h4 { margin: 0; }
.policy-head p { margin: 5px 0 0; color: var(--muted); }
.schedule-pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin-top: 14px; }
.schedule-card { display: flex; flex-direction: column; gap: 9px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.schedule-card.archive-schedule { border-top: 4px solid var(--blue); }
.schedule-card.cleanup-schedule { border-top: 4px solid #d97706; }
.schedule-card > strong { font-size: 17px; }
.schedule-card > small { color: var(--muted); }
.schedule-kicker { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.schedule-card label { font-size: 12px; font-weight: 700; }
.schedule-card input { width: 110px; margin: 0 5px; padding: 8px; border: 1px solid var(--line); border-radius: 7px; }
.schedule-actions, .retention-row { display: flex; align-items: end; gap: 9px; flex-wrap: wrap; }
.retention-row { padding-top: 10px; border-top: 1px solid var(--line); }
.cleanup-whitelist { padding: 12px 0 0; border-top: 1px solid var(--line); }
.metric-note { display: block; margin-top: 4px; color: var(--muted); line-height: 1.3; }
.new-folder-policy { margin-top: 16px; border: 1px solid var(--line); border-radius: 10px; }
.new-folder-policy legend { font-weight: 800; }
.remove-target { color: var(--red); border-color: #efc4bf; }
.configured-folders { margin: 18px 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.configured-folders-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; }
.configured-folders-head p, .configured-folders-head > span { color: var(--muted); }
.configured-folder-list { display: grid; gap: 8px; margin-top: 14px; }
.configured-folder { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #fff; color: var(--ink); border: 1px solid var(--line); text-align: left; }
.configured-folder:hover { background: #f5f9fc; filter: none; }
.configured-folder.selected { border-color: var(--blue); box-shadow: inset 3px 0 var(--blue); background: #eef7ff; }
.configured-folder > span:first-child { flex: 1; min-width: 0; }
.configured-folder strong, .configured-folder small { display: block; }
.configured-folder small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.folder-schedule { border-radius: 99px; font-size: 10px; font-weight: 800; padding: 4px 8px; white-space: nowrap; }
.folder-schedule.included { background: #e8f6f0; color: var(--green); }
.folder-schedule.paused { background: #eef1f3; color: var(--muted); }
.folder-list-empty { padding: 14px; border: 1px dashed var(--line); border-radius: 9px; }
.check-label { display: flex; align-items: center; gap: 8px; margin-top: 15px; }
.check-label input { display: inline-block; width: auto; margin: 0; }
dialog label + label { display: block; margin-top: 13px; }
.folder-browser { margin-top: 14px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #f8fafc; }
.folder-browser-head, .folder-selection { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; }
.folder-browser-head { border-bottom: 1px solid var(--line); }
.folder-browser-head div, .folder-selection { min-width: 0; }
.folder-browser-head span, .folder-selection span { display: block; color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.folder-browser-head strong, .folder-selection strong { display: block; overflow-wrap: anywhere; }
.folder-browser-status { padding: 10px 12px; color: var(--muted); font-size: 13px; }
.folder-browser-status.error { color: var(--red); background: #fff0ef; }
.folder-browser-list { max-height: 280px; overflow: auto; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.folder-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; border-top: 1px solid #edf1f4; }
.folder-row:first-child { border-top: 0; }
.folder-row.selected { background: #eaf4ff; box-shadow: inset 3px 0 var(--blue); }
.folder-row.configured { background: #f3f4f5; }
.folder-row.current-location { border-bottom: 2px solid var(--line); }
.folder-choice { border: 0; border-radius: 0; background: transparent; color: var(--ink); text-align: left; padding: 11px 12px; }
.folder-choice:hover { background: #f2f7fb; filter: none; }
.folder-choice span, .folder-choice small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.folder-choice span { font-weight: 750; }
.folder-choice small { color: var(--muted); font-size: 11px; }
.folder-open { align-self: center; margin-right: 9px; padding: 7px 10px; }
.folder-selection { background: #f8fafc; }
.folder-selection strong { text-align: right; }
@media (max-width: 600px) {
  .system-columns { grid-template-columns:1fr; }
  .configured-folder-list { grid-template-columns:minmax(0,1fr); }
  .configured-folder { flex-direction:column; align-items:flex-start; min-width:0; }
  .configured-folder > span:first-child { width:100%; }
  .folder-schedule { white-space:normal; }
  .system-pane .cleanup-whitelist { flex-direction:column; align-items:stretch; }
  .system-pane .cleanup-whitelist > div { flex:auto; width:100%; }
  .system-pane .activity-head { align-items:flex-start; flex-direction:column; }
  .target-columns { margin:0 10px 14px; }
  .system-pane { padding:12px; }
  .scope-table { font-size:12px; }
  .scope-table th,.scope-table td { padding:8px 4px; }
  .automation-grid { align-items: stretch; flex-direction: column; }
  .automation-grid label, .automation-grid input, .automation-grid select { width: 100%; }
  .configured-folders-head { align-items: flex-start; flex-direction: column; }
  .schedule-pair { grid-template-columns: 1fr; }
  .folder-policy { margin: 14px 10px; }
}
.health.connected{color:#b6f2d6}.health.disconnected{color:#ffd0cd}.health.connected:before,.health.disconnected:before{content:"";display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:8px}.health.connected:before{background:#55e0a4}.health.disconnected:before{background:#ff7770}
