/* Folder City File Explorer Styles - Finder-style column view */

body {
  margin: 0;
  background: #fff;
  color: #000;
  font-size: 14px;
  font-family: "Lora", serif;
}

.wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.title h1 {
  text-align: center;
  font-size: 77px;
  margin: 0 0 10px;
}

.title a {
  text-decoration: none;
  color: #000;
}

.pageDescription {
  padding-right: 9%;
  padding-left: 9%;
  padding-bottom: 0.5%;
  padding-top: 0;
}

.pageDescription p {
  text-align: center;
  margin: 0 0 1em;
  line-height: 150%;
}

.posts {
  padding-right: 9%;
  padding-left: 9%;
  padding-bottom: 5%;
  padding-top: 0;
}

.fc-shell-posts {
  padding-right: 0;
  padding-left: 0;
  padding-bottom: 5%;
  padding-top: 2%;
}

#file-explorer {
  --fc-map-panel-width: 392px;
  --fc-map-popout-gap: 0px;
  --fc-map-seam-overlap: 2px;
  --fc-map-surface: #f9f9f9;
  background: #fff;
  border: 2px solid black;
  font-family: "Lora", serif;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  height: 520px;
  position: relative;
  overflow: visible;
  transition: transform 0.2s ease;
}

@media (min-width: 1200px) {
  #file-explorer.map-open-centered {
    transform: translateX(
      calc((var(--fc-map-panel-width) + var(--fc-map-popout-gap) - var(--fc-map-seam-overlap)) / -2)
    );
  }
}

@media (prefers-reduced-motion: reduce) {
  #file-explorer {
    transition: none;
  }
}

#explorer-toolbar {
  background: #fff;
  border-bottom: 2px solid black;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

#path-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

#path-controls #breadcrumbs-input {
  flex: 1;
}

/* Style the Home button like the original toolbar buttons */
#path-controls button {
  background: #fff;
  border: 2px solid black;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 13px;
  font-family: "Lora", serif;
  font-weight: 700;
  color: black;
  transition: background-color 0.2s;
}

#path-controls button:hover {
  background: #ccc;
}

#path-controls button:active {
  background: #999;
}

#path-controls button:disabled,
#path-controls button.fc-button-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#path-controls button.fc-button-disabled:hover,
#path-controls button.fc-button-disabled:active {
  background: #fff;
}

#breadcrumbs-input {
  flex: 1;
  font-size: 13px;
  color: black;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  text-overflow: clip;
  min-width: 0;
  border: none;
  padding: 4px 0;
  background: transparent;
  outline: none;
  font-family: "Lora", serif;
  direction: rtl;
  text-align: left;
  cursor: text;
}

#breadcrumbs-input::-webkit-scrollbar {
  height: 4px;
}

#breadcrumbs-input::-webkit-scrollbar-track {
  background: transparent;
}

#breadcrumbs-input::-webkit-scrollbar-thumb {
  background: #999;
  border-radius: 2px;
}

#breadcrumbs-input::-webkit-scrollbar-thumb:hover {
  background: #666;
}

#breadcrumbs-input.copied {
  background: #f0f9ff;
  transition: background 0.25s ease;
}

#view-controls {
  display: flex;
  gap: 10px;
  align-items: center;
}

#view-controls button {
  background: #fff;
  border: 2px solid black;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 13px;
  font-family: "Lora", serif;
  font-weight: 700;
  color: black;
  transition: background-color 0.2s;
}

#view-controls button:hover {
  background: #ccc;
}

#view-controls button:active {
  background: #999;
}

#view-controls button:disabled,
#view-controls button.fc-button-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#view-controls button.fc-button-disabled:hover,
#view-controls button.fc-button-disabled:active {
  background: #fff;
}

#shared-status {
  max-width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
}

#shared-status button {
  background: #fff;
  border: 2px solid black;
  padding: 5px 10px;
  cursor: pointer;
  font-size: 12px;
  font-family: "Lora", serif;
  font-weight: 700;
  color: black;
  transition: background-color 0.2s;
}

#shared-status #auth-toggle-btn {
  min-width: 0;
  max-width: 100%;
  flex: 0 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#shared-status #manage-account-btn {
  flex: 0 0 auto;
}

#shared-status button:hover {
  background: #ccc;
}

#shared-status button:disabled,
#shared-status button.fc-button-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#shared-status button.fc-button-disabled:hover,
#shared-status button.fc-button-disabled:active {
  background: #fff;
}

#map-toggle-btn {
  padding: 6px 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

#map-toggle-btn.locked {
  display: none;
}

#map-toggle-btn.open {
  background: #e1e1e1;
}

#map-toggle-btn.open:hover {
  background: #e1e1e1;
}

#map-toggle-btn .toolbar-icon {
  width: 16px;
  height: 16px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#explorer-content {
  background: #fff;
  min-height: 0;
  padding: 0;
  border-bottom: 2px solid black;
  display: flex;
  flex-direction: row;
  flex: 1;
  position: static;
  overflow: visible;
}

#explorer-columns {
  display: flex;
  flex-direction: row;
  overflow-x: auto;
  overflow-y: hidden;
  flex: 1;
  min-width: 0;
  /* Default to left alignment; JS will scroll to right when overflowing */
  justify-content: flex-start;
}

#info-pane {
  width: 272px;
  min-width: 272px;
  flex-shrink: 0;
  box-sizing: border-box;
  border-left: 1px solid #d4d4d4;
  border-right: none;
  background: #f4f4f4;
  padding: 12px 10px;
  font-size: 12px;
  color: #181818;
  overflow-y: auto;
}

#info-pane.hidden {
  display: none;
}

#info-pane .info-file-header {
  display: grid;
  justify-items: center;
  gap: 6px;
  margin: 0;
  padding-bottom: 10px;
  border-bottom: 1px solid #d8d8d8;
}

#info-pane .info-icon {
  width: 36px;
  height: 36px;
  color: #121212;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#info-pane .info-file-name {
  margin: 0;
  width: 100%;
  color: #171717;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  word-break: break-word;
  overflow-wrap: anywhere;
}

#info-pane .info-section {
  margin-top: 12px;
  padding-top: 0;
  border-top: none;
}

#info-pane .info-section-title {
  margin: 0 0 7px;
  color: #101010;
  font-size: 12px;
  line-height: 1.25;
  font-weight: 700;
}

#info-pane .info-description-value {
  min-height: 1.3em;
  color: #2d2d2d;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

#info-pane .info-description-value-empty {
  color: #666;
  font-style: italic;
}

#info-pane .info-table {
  display: grid;
  gap: 0;
}

#info-pane .info-table-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: start;
  column-gap: 7px;
  padding: 5px 0;
  min-width: 0;
}

#info-pane .info-table-label {
  color: #595959;
  font-size: 11px;
  line-height: 1.35;
  font-weight: 600;
}

#info-pane .info-table-value {
  min-width: 0;
  color: #2d2d2d;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 400;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

#info-pane .info-table-value-muted {
  color: #666;
  font-weight: 400;
}

#info-pane .info-location-controls {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 6px;
  flex-wrap: nowrap;
}

#info-pane .info-location-format {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 0 1 auto;
}

#info-pane .info-location-format-label {
  color: #555;
  font-size: 11px;
  line-height: 1.3;
  font-weight: 600;
  flex-shrink: 0;
}

#info-pane .info-panel-btn {
  border: 1px solid #8f8f8f;
  background: #fff;
  color: #222;
  font-size: 11px;
  line-height: 1.2;
  font-family: "Lora", serif;
  font-weight: 700;
  padding: 3px 8px;
  min-height: 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

#info-pane .info-panel-btn:hover {
  background: #efefef;
}

#info-pane .info-panel-btn:active {
  background: #e2e2e2;
}

#info-pane .info-panel-btn:focus-visible {
  outline: none;
  border-color: #5f5f5f;
  box-shadow: 0 0 0 2px #c9def9;
}

#info-pane .info-panel-btn:disabled,
#info-pane .info-panel-btn.fc-button-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  background: #fff;
}

#info-pane .info-location-format-toggle {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid #8f8f8f;
  background: #fff;
  flex-shrink: 0;
}

#info-pane .info-location-format-option {
  border: none;
  border-right: 1px solid #8f8f8f;
  border-radius: 0;
  min-height: 25px;
  padding: 3px 7px;
}

#info-pane .info-location-format-option:last-child {
  border-right: none;
}

#info-pane .info-location-format-option.active {
  background: #dce8f8;
  color: #111;
}

#info-pane .info-location-format-option.active:hover {
  background: #dce8f8;
}

#info-pane .info-location-path {
  margin-top: 6px;
  padding: 6px 7px;
  border: 1px solid #d7d7d7;
  background: #fff;
  color: #3e3e3e;
  font-size: 11px;
  line-height: 1.35;
  font-family: "Courier New", Courier, monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}

#info-pane .info-location-path:hover {
  border-color: #b9cbe7;
  background: #f7fbff;
}

#info-pane .info-location-path:focus-visible {
  outline: none;
  border-color: #7ea1d8;
  background: #f7fbff;
  box-shadow: 0 0 0 2px #d8e6fb;
}

#info-pane .info-action {
  margin-top: 10px;
  padding-top: 0;
  border-top: none;
}

#info-pane .info-action-btn {
  width: 100%;
}

#info-pane .info-action-note {
  margin-top: 6px;
  color: #505050;
  font-size: 11px;
  line-height: 1.35;
}

.info-empty {
  color: #555;
  font-style: italic;
}

.column {
  display: flex;
  flex-direction: column;
  border-right: 2px solid black;
  width: 240px;
  min-width: 240px;
  flex-shrink: 0;
}

.column-header {
  background: #f5f5f5;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: bold;
  color: black;
  border-bottom: 1px solid #ddd;
  word-break: break-word;
  white-space: normal;
}

.column-list {
  display: flex;
  flex-direction: column;
  padding: 0;
  margin: 0;
  overflow-y: auto;
  flex: 1;
  scroll-padding-top: 32px;
  scroll-padding-bottom: 32px;
}

.file-item {
  display: flex;
  align-items: center;
  padding: 6px 6px;
  cursor: pointer;
  transition: background-color 0.2s;
  border-bottom: 1px solid #f0f0f0;
  user-select: none;
  min-height: 18px;
  font-size: 14px;
  color: black;
  scroll-margin-top: 32px;
  scroll-margin-bottom: 32px;
}

.file-item:hover {
  background-color: #e8e8e8;
}

.file-item.ancestor-selected {
  background-color: #ececec;
}

.file-item.selected {
  background-color: #d6eaff;
}

.file-item.active {
  background-color: #b3d9ff;
}

.column.focused .column-header {
  background: #eaf2ff;
}

.file-icon {
  width: 16px;
  height: 16px;
  margin-right: 8px;
  user-select: none;
  flex-shrink: 0;
  color: #000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.file-icon-has-direction {
  position: relative;
  overflow: visible;
  width: 18px;
  height: 18px;
}

.file-icon-direction-overlay {
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 8px;
  height: 8px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #111;
  background: transparent;
  border-radius: 50%;
  pointer-events: none;
}

.file-icon-direction-overlay .explorer-direction-icon-svg {
  width: 100%;
  height: 100%;
  display: block;
  transform: rotate(var(--fc-explorer-direction-angle, 0deg));
  transform-origin: 50% 50%;
}

.file-icon-svg,
.info-icon-svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.file-name {
  font-size: 13px;
  color: black;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

#explorer-footer {
  background: #fff;
  border-top: 2px solid black;
  padding: 12px 16px;
  font-size: 13px;
  color: black;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

#shared-status {
  grid-column: 1;
  justify-self: start;
}

#item-count {
  font-style: italic;
  grid-column: 2;
  justify-self: center;
}

#footer-controls {
  grid-column: 3;
  justify-self: end;
  display: flex;
  gap: 8px;
}

#footer-controls button {
  background: #fff;
  border: 2px solid black;
  padding: 5px 10px;
  cursor: pointer;
  font-size: 12px;
  font-family: "Lora", serif;
  font-weight: 700;
  color: black;
  transition: background-color 0.2s;
}

#footer-controls button.icon-only {
  padding: 5px 8px;
  min-width: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

#footer-controls .footer-icon-combo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  line-height: 1;
}

#footer-controls .footer-icon {
  width: 14px;
  height: 14px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#footer-controls .footer-action-icon {
  width: 12px;
  height: 12px;
}

#footer-controls .footer-icon-placeholder {
  visibility: hidden;
}

#footer-controls button:hover {
  background: #ccc;
}

#footer-controls button:active {
  background: #999;
}

#footer-controls button:disabled,
#footer-controls button.fc-button-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#footer-controls button.fc-button-disabled:hover,
#footer-controls button.fc-button-disabled:active {
  background: #fff;
}

#fc-dialog-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.16);
  z-index: 1600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

#fc-dialog-backdrop[hidden] {
  display: none !important;
}

#fc-dialog {
  width: min(420px, 100%);
  background: #fff;
  border: 2px solid black;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  padding: 14px;
  font-family: "Lora", serif;
  color: black;
}

#fc-dialog .fc-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

#fc-dialog-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  white-space: pre-line;
}

#fc-dialog-close-btn {
  border: 2px solid black;
  background: #fff;
  color: black;
  font-size: 18px;
  line-height: 1;
  width: 30px;
  height: 30px;
  cursor: pointer;
  padding: 0;
}

#fc-dialog-close-btn:hover {
  background: #ccc;
}

#fc-dialog-subtitle {
  margin: 0 0 10px;
  font-size: 12px;
  color: #444;
  min-height: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  direction: ltr;
  text-align: left;
}

#fc-dialog-subtitle.fc-dialog-subtitle-path {
  direction: rtl;
  text-align: right;
  unicode-bidi: isolate;
}

#fc-dialog-subtitle.multiline {
  white-space: pre-wrap;
  overflow: auto;
  text-overflow: clip;
  direction: ltr;
  text-align: left;
  max-height: 42vh;
  padding-right: 2px;
}

#fc-dialog-draft-path {
  margin: -4px 0 10px;
  font-size: 11px;
  color: #555;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  direction: rtl;
  text-align: right;
  unicode-bidi: isolate;
}

#fc-dialog-draft-path[hidden] {
  display: none !important;
}

#fc-dialog-preview {
  margin: 0 0 10px;
  border: 1px solid #222;
  background: #f8f8f8;
  padding: 8px;
}

#fc-dialog-preview-summary {
  font-size: 12px;
  color: #333;
  white-space: pre-line;
}

#fc-dialog-preview-list {
  margin-top: 8px;
  border: 1px solid #222;
  background: #fff;
  padding: 6px;
  max-height: 220px;
  overflow: auto;
  display: grid;
  gap: 4px;
}

.fc-dialog-preview-path {
  display: block;
  min-width: 0;
  width: 100%;
  font-size: 12px;
  color: #222;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  direction: rtl;
  text-align: right;
  unicode-bidi: isolate;
}

.fc-dialog-preview-block {
  display: block;
  min-width: 0;
  width: 100%;
  font-size: 11px;
  color: #222;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  direction: ltr;
  text-align: left;
  font-family: "Courier New", Courier, monospace;
}

.fc-dialog-preview-empty {
  font-size: 12px;
  color: #666;
  font-style: italic;
}

#fc-dialog-preview-meta {
  margin-top: 6px;
  font-size: 11px;
  color: #555;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

#fc-dialog-preview-meta[hidden] {
  display: none !important;
}

.fc-dialog-preview-more-btn {
  border: 2px solid black;
  background: #fff;
  color: black;
  font-family: "Lora", serif;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  cursor: pointer;
}

.fc-dialog-preview-more-btn:hover {
  background: #ccc;
}

#fc-dialog-input-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

#fc-dialog-input-row[hidden] {
  display: none !important;
}

#fc-dialog-address-group {
  width: 100%;
  flex: 1 1 auto;
}

#fc-dialog-address-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

#fc-dialog-address-number-group {
  width: 132px;
  flex: 0 0 132px;
}

#fc-dialog-address-street {
  margin: 0;
  padding: 0 2px 10px;
  min-width: 0;
  flex: 1 1 auto;
  font-size: 13px;
  color: #444;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#fc-dialog-address-street[hidden] {
  display: none !important;
}

#fc-dialog-address-error {
  margin: 6px 0 0;
  font-size: 11px;
  color: #a40000;
}

#fc-dialog-address-error[hidden] {
  display: none !important;
}

#fc-dialog-name-group {
  width: 100%;
  flex: 1 1 auto;
}

#fc-dialog-secondary-group {
  width: 100%;
  flex: 1 1 auto;
}

#fc-dialog-description-group {
  width: 100%;
  flex: 1 1 auto;
}

.fc-dialog-field-label {
  display: block;
  font-size: 12px;
  margin-bottom: 5px;
  font-weight: 700;
}

#fc-dialog-address-input,
#fc-dialog-input,
#fc-dialog-secondary-input,
#fc-dialog-description-input {
  width: 100%;
  box-sizing: border-box;
  border: 2px solid black;
  background: #fff;
  color: black;
  font-family: "Lora", serif;
  font-size: 14px;
  padding: 8px 10px;
  margin: 0;
}

#fc-dialog-address-input:focus,
#fc-dialog-input:focus,
#fc-dialog-secondary-input:focus,
#fc-dialog-description-input:focus {
  outline: none;
  box-shadow: inset 0 0 0 1px black;
}

#fc-dialog-description-input {
  min-height: 76px;
  resize: vertical;
  line-height: 1.35;
}

.fc-dialog-option-row {
  margin-top: 10px;
}

.fc-dialog-option-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #222;
  cursor: pointer;
  user-select: none;
}

#fc-dialog-option-label.disabled,
#fc-dialog-option-label-2.disabled {
  color: #777;
  cursor: not-allowed;
}

#fc-dialog-option-checkbox,
#fc-dialog-option-checkbox-2 {
  appearance: none;
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  margin: 0;
  border: 2px solid black;
  background: #fff;
  display: inline-block;
  position: relative;
}

#fc-dialog-option-checkbox:checked,
#fc-dialog-option-checkbox-2:checked {
  background: #000;
  box-shadow: inset 0 0 0 2px #fff;
}

#fc-dialog-option-checkbox:focus-visible,
#fc-dialog-option-checkbox-2:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px #c9def9;
}

#fc-dialog-option-checkbox:disabled,
#fc-dialog-option-checkbox-2:disabled {
  opacity: 0.45;
  border-color: #666;
  cursor: not-allowed;
}

#fc-dialog-actions {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

#fc-dialog-actions button {
  border: 2px solid black;
  background: #fff;
  color: black;
  font-family: "Lora", serif;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  cursor: pointer;
}

#fc-dialog-actions button:hover {
  background: #ccc;
}

#fc-dialog-actions button:disabled,
#fc-dialog-actions button:disabled:hover,
#fc-dialog-actions button.fc-button-disabled,
#fc-dialog-actions button.fc-button-disabled:hover,
#fc-dialog-actions button.fc-button-disabled:active {
  background: #f1f1f1;
  color: #666;
  cursor: not-allowed;
}

#fc-dialog-actions #fc-dialog-save-btn.danger {
  background: #f3dcdc;
}

#fc-dialog-actions #fc-dialog-save-btn.danger:hover {
  background: #e9c3c3;
}

#fc-dialog-actions #fc-dialog-delete-btn {
  margin-right: auto;
  background: #f3dcdc;
}

#fc-dialog-actions #fc-dialog-delete-btn:hover {
  background: #e9c3c3;
}

#fc-dialog-actions #fc-dialog-delete-btn.neutral {
  background: #fff;
}

#fc-dialog-actions #fc-dialog-delete-btn.neutral:hover {
  background: #ccc;
}

#fc-auth-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.16);
  z-index: 1620;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

#fc-auth-backdrop[hidden] {
  display: none !important;
}

#fc-auth-dialog {
  width: min(420px, 100%);
  background: #fff;
  border: 2px solid black;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  padding: 14px;
  font-family: "Lora", serif;
  color: black;
}

#fc-auth-dialog .fc-auth-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

#fc-auth-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  white-space: pre-line;
}

#fc-auth-close-btn {
  border: 2px solid black;
  background: #fff;
  color: black;
  font-size: 18px;
  line-height: 1;
  width: 30px;
  height: 30px;
  cursor: pointer;
  padding: 0;
}

#fc-auth-close-btn:hover {
  background: #ccc;
}

#fc-auth-subtitle {
  margin: 0 0 10px;
  font-size: 12px;
  color: #444;
  min-height: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#fc-auth-subtitle[hidden] {
  display: none !important;
}

#fc-auth-form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.fc-auth-field {
  width: 100%;
  flex: 1 1 auto;
}

.fc-auth-field-label {
  display: block;
  font-size: 12px;
  margin-bottom: 5px;
  font-weight: 700;
}

#fc-auth-username,
#fc-auth-password {
  width: 100%;
  box-sizing: border-box;
  border: 2px solid black;
  background: #fff;
  color: black;
  font-family: "Lora", serif;
  font-size: 14px;
  padding: 8px 10px;
  margin: 0;
}

#fc-auth-username:focus,
#fc-auth-password:focus {
  outline: none;
  box-shadow: inset 0 0 0 1px black;
}

#fc-auth-username[readonly] {
  background: #f4f4f4;
  color: #222;
}

#fc-auth-actions {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

#fc-auth-actions button {
  border: 2px solid black;
  background: #fff;
  color: black;
  font-family: "Lora", serif;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  cursor: pointer;
}

#fc-auth-actions button:hover {
  background: #ccc;
}

#fc-password-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.16);
  z-index: 1610;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

#fc-password-backdrop[hidden] {
  display: none !important;
}

#fc-password-dialog {
  width: min(420px, 100%);
  background: #fff;
  border: 2px solid black;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  padding: 14px;
  font-family: "Lora", serif;
  color: black;
}

#fc-password-dialog .fc-password-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

#fc-password-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  white-space: pre-line;
}

#fc-password-close-btn {
  border: 2px solid black;
  background: #fff;
  color: black;
  font-size: 18px;
  line-height: 1;
  width: 30px;
  height: 30px;
  cursor: pointer;
  padding: 0;
}

#fc-password-close-btn:hover {
  background: #ccc;
}

#fc-password-subtitle {
  margin: 0 0 10px;
  font-size: 12px;
  color: #444;
  min-height: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#fc-password-subtitle[hidden] {
  display: none !important;
}

#fc-password-form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.fc-password-field {
  width: 100%;
  flex: 1 1 auto;
}

.fc-password-field[hidden] {
  display: none !important;
}

.fc-password-field-label {
  display: block;
  font-size: 12px;
  margin-bottom: 5px;
  font-weight: 700;
}

#fc-password-username,
#fc-password-current,
#fc-password-new,
#fc-password-confirm {
  width: 100%;
  box-sizing: border-box;
  border: 2px solid black;
  background: #fff;
  color: black;
  font-family: "Lora", serif;
  font-size: 14px;
  padding: 8px 10px;
  margin: 0;
}

#fc-password-username:focus,
#fc-password-current:focus,
#fc-password-new:focus,
#fc-password-confirm:focus {
  outline: none;
  box-shadow: inset 0 0 0 1px black;
}

#fc-password-username[readonly] {
  background: #f4f4f4;
  color: #222;
}

#fc-password-actions {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

#fc-password-actions button {
  border: 2px solid black;
  background: #fff;
  color: black;
  font-family: "Lora", serif;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  cursor: pointer;
}

#fc-password-actions button:hover {
  background: #ccc;
}

#fc-account-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  z-index: 1550;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

#fc-account-backdrop[hidden] {
  display: none !important;
}

#fc-account-panel {
  width: min(520px, 100%);
  max-height: calc(100vh - 32px);
  overflow: auto;
  background: #fff;
  border: 2px solid black;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.2);
  padding: 14px;
  font-family: "Lora", serif;
  color: black;
}

.fc-account-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}

#fc-account-title {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
}

#fc-account-close-btn {
  border: 2px solid black;
  background: #fff;
  color: black;
  font-size: 18px;
  line-height: 1;
  width: 30px;
  height: 30px;
  cursor: pointer;
  padding: 0;
}

#fc-account-close-btn:hover {
  background: #ccc;
}

#fc-account-subtitle {
  margin: 0 0 10px;
  font-size: 12px;
  color: #333;
}

.fc-account-intro {
  margin: 0 0 10px;
  font-size: 12px;
  color: #444;
  padding: 8px 10px;
  border: 1px solid #222;
  background: #f6f6f6;
}

.fc-account-toggle-row {
  margin: 0 0 10px;
  border: 1px solid #222;
  background: #fbfbfb;
  padding: 8px 10px;
}

.fc-account-toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #111;
}

.fc-account-toggle-row input {
  width: 14px;
  height: 14px;
}

.fc-account-note {
  margin: 6px 0 0;
  font-size: 11px;
  color: #444;
}

.fc-account-color-row {
  margin: 0 0 10px;
  border: 1px solid #222;
  background: #fbfbfb;
  padding: 8px 10px;
}

#fc-account-color-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 6px;
}

.fc-account-color-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

#fc-account-color-input {
  width: 44px;
  min-width: 44px;
  height: 32px;
  border: 2px solid black;
  padding: 0;
  background: #fff;
  cursor: pointer;
}

#fc-account-save-color-btn {
  border: 2px solid black;
  background: #fff;
  color: black;
  font-family: "Lora", serif;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  cursor: pointer;
}

#fc-account-save-color-btn:hover {
  background: #ccc;
}

#fc-account-save-color-btn:disabled,
#fc-account-save-color-btn:disabled:hover {
  background: #f1f1f1;
  color: #666;
  cursor: not-allowed;
}

.fc-account-actions {
  display: grid;
  gap: 8px;
}

.fc-account-actions button {
  border: 2px solid black;
  background: #fff;
  color: black;
  font-family: "Lora", serif;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 10px;
  cursor: pointer;
  text-align: left;
}

.fc-account-actions button:hover {
  background: #ccc;
}

.fc-account-actions button.danger {
  background: #f3dcdc;
}

.fc-account-actions button.danger:hover {
  background: #e9c3c3;
}

#fc-account-status {
  min-height: 18px;
  margin-top: 10px;
  font-size: 12px;
}

#fc-account-status.error {
  color: #7c1f1f;
}

#fc-account-status.success {
  color: #1d5f2a;
}

#fc-admin-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

#fc-admin-backdrop[hidden] {
  display: none !important;
}

#fc-admin-panel {
  width: min(1220px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  background: #fff;
  border: 2px solid black;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.24);
  padding: 18px;
  font-family: "Lora", serif;
  color: black;
  box-sizing: border-box;
}

.fc-admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

#fc-admin-title {
  margin: 0;
  font-size: 24px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: 0.2px;
}

#fc-admin-close-btn {
  border: 2px solid black;
  background: #fff;
  color: black;
  font-size: 18px;
  line-height: 1;
  width: 30px;
  height: 30px;
  cursor: pointer;
  padding: 0;
}

#fc-admin-close-btn:hover {
  background: #ccc;
}

#fc-admin-subtitle {
  margin: 0 0 8px;
  font-size: 13px;
  color: #2f2f2f;
}

.fc-admin-intro {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.4;
  color: #222;
  padding: 10px 12px;
  border: 1px solid #444;
  background: #f6f6f6;
}

#fc-admin-layout {
  display: grid;
  grid-template-columns: 198px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.fc-admin-nav {
  border: 1px solid #222;
  background: #fafafa;
  padding: 10px;
}

.fc-admin-workspace {
  min-width: 0;
}

.fc-admin-tabs {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  margin: 0;
}

.fc-admin-tab-btn {
  border: 2px solid black;
  background: #fff;
  color: black;
  font-family: "Lora", serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-align: left;
  padding: 10px 12px;
  cursor: pointer;
  width: 100%;
}

.fc-admin-tab-btn:hover {
  background: #ccc;
}

.fc-admin-tab-btn[aria-selected="true"] {
  background: #0f0f0f;
  color: #fff;
}

.fc-admin-tab-btn:focus-visible {
  outline: 2px solid #111;
  outline-offset: 2px;
}

.fc-admin-section[role="tabpanel"][hidden] {
  display: none !important;
}

.fc-admin-section {
  border: 1px solid #222;
  padding: 14px;
  margin: 0;
  box-sizing: border-box;
  background: #fff;
}

.fc-admin-section h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
}

.fc-admin-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.fc-admin-section-head h3 {
  margin: 0;
}

.fc-admin-users-workspace {
  padding: 0;
  border: none;
  background: transparent;
}

.fc-admin-users-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 14px;
}

.fc-admin-users-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fc-admin-user-inspector {
  min-width: 0;
  border: 1px solid #222;
  background: #fcfcfc;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fc-admin-toolbar-card,
.fc-admin-status-card,
.fc-admin-results-card,
.fc-admin-create-panel {
  border: 1px solid #9f9f9f;
  background: #fbfbfb;
}

.fc-admin-toolbar-card {
  padding: 10px;
}

.fc-admin-status-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
}

.fc-admin-results-card {
  padding: 10px;
}

.fc-admin-users-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.fc-admin-content-tools {
  flex-wrap: wrap;
  justify-content: flex-start;
}

.fc-admin-content-tools-primary {
  margin-bottom: 8px;
}

.fc-admin-advanced-panel {
  border: 1px solid #9f9f9f;
  background: #f5f5f5;
}

.fc-admin-advanced-panel > summary {
  list-style: none;
  user-select: none;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 10px;
  border-bottom: 1px solid transparent;
}

.fc-admin-advanced-panel > summary::-webkit-details-marker {
  display: none;
}

.fc-admin-advanced-panel[open] > summary {
  background: #ececec;
  border-bottom-color: #9f9f9f;
}

.fc-admin-advanced-panel > .fc-admin-users-tools {
  padding: 10px;
}

.fc-admin-users-tools input[type="search"] {
  width: min(360px, 100%);
  box-sizing: border-box;
  border: 1px solid #222;
  background: #fff;
  color: black;
  font-family: "Lora", serif;
  font-size: 14px;
  line-height: 1.3;
  padding: 8px 10px;
}

.fc-admin-users-tools select {
  max-width: 260px;
  box-sizing: border-box;
  border: 1px solid #222;
  background: #fff;
  color: black;
  font-family: "Lora", serif;
  font-size: 13px;
  line-height: 1.3;
  padding: 8px 10px;
}

.fc-admin-user-details-controls input[type="search"],
.fc-admin-create-grid input,
.fc-admin-create-grid select,
.fc-admin-ban-row select,
.fc-admin-role-row select,
#fc-admin-users-filter-row input,
#fc-admin-users-filter-row select,
#fc-admin-audit-filter-actor-id,
#fc-admin-audit-filter-event-type {
  box-sizing: border-box;
  border: 1px solid #222;
  background: #fff;
  color: black;
  font-family: "Lora", serif;
  font-size: 13px;
  line-height: 1.3;
  padding: 7px 9px;
}

#fc-admin-users-filter-row input,
#fc-admin-users-filter-row select {
  width: 100%;
}

.fc-admin-users-tools input[type="search"]:focus {
  outline: none;
  box-shadow: inset 0 0 0 1px #111;
}

.fc-admin-users-tools select:focus {
  outline: none;
  box-shadow: inset 0 0 0 1px #111;
}

.fc-admin-content-tools input[type="search"] {
  flex: 1 1 340px;
}

.fc-admin-columns-filter {
  position: relative;
}

.fc-admin-columns-filter > summary {
  list-style: none;
  border: 2px solid black;
  background: #fff;
  color: black;
  font-family: "Lora", serif;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 10px;
  cursor: pointer;
  user-select: none;
}

.fc-admin-columns-filter > summary::-webkit-details-marker {
  display: none;
}

.fc-admin-columns-filter[open] > summary {
  background: #ccc;
}

.fc-admin-columns-list {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  min-width: 190px;
  border: 2px solid black;
  background: #fff;
  padding: 10px;
  display: grid;
  gap: 8px;
  z-index: 4;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.2);
}

.fc-admin-columns-list label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  cursor: pointer;
}

.fc-admin-columns-list input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.fc-admin-section-head button,
.fc-admin-actions button,
.fc-admin-user-details-controls button,
.fc-admin-ban-row button,
.fc-admin-role-row button,
#fc-admin-details-save-color-btn,
#fc-admin-create-user-btn,
.fc-admin-pagination-controls button,
#fc-admin-users-filter-row button,
.fc-admin-table-btn {
  border: 2px solid black;
  background: #fff;
  color: black;
  font-family: "Lora", serif;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 10px;
  cursor: pointer;
}

.fc-admin-section-head button:hover,
.fc-admin-actions button:hover,
.fc-admin-user-details-controls button:hover,
.fc-admin-ban-row button:hover,
.fc-admin-role-row button:hover,
#fc-admin-details-save-color-btn:hover,
#fc-admin-create-user-btn:hover,
.fc-admin-pagination-controls button:hover,
#fc-admin-users-filter-row button:hover,
.fc-admin-table-btn:hover {
  background: #ccc;
}

#fc-admin-users-status,
#fc-admin-nodes-status,
#fc-admin-audit-status,
#fc-admin-create-status,
#fc-admin-access-status,
#fc-admin-user-details-status,
#fc-admin-nodes-action-status,
#fc-admin-user-details-content-status,
#fc-admin-user-details-content-action-status {
  min-height: 20px;
  margin-bottom: 2px;
  font-size: 13px;
  line-height: 1.35;
}

#fc-admin-users-status.error,
#fc-admin-nodes-status.error,
#fc-admin-audit-status.error,
#fc-admin-create-status.error,
#fc-admin-access-status.error,
#fc-admin-user-details-status.error,
#fc-admin-nodes-action-status.error,
#fc-admin-user-details-content-status.error,
#fc-admin-user-details-content-action-status.error {
  color: #7c1f1f;
}

#fc-admin-users-status.success,
#fc-admin-nodes-status.success,
#fc-admin-audit-status.success,
#fc-admin-create-status.success,
#fc-admin-access-status.success,
#fc-admin-user-details-status.success,
#fc-admin-nodes-action-status.success,
#fc-admin-user-details-content-status.success,
#fc-admin-user-details-content-action-status.success {
  color: #1d5f2a;
}

.fc-admin-pagination {
  min-height: 24px;
  margin-bottom: 0;
  font-size: 13px;
}

.fc-admin-pagination-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.fc-admin-pagination-label {
  color: #222;
}

.fc-admin-pagination-controls button {
  font-size: 12px;
  padding: 6px 10px;
}

.fc-admin-pagination-controls button:disabled,
.fc-admin-pagination-controls button.fc-button-disabled {
  opacity: 0.45;
  cursor: default;
}

#fc-admin-user-summary,
#fc-admin-node-summary,
#fc-admin-user-details-summary {
  margin-bottom: 0;
  padding: 9px 10px;
  border: 1px solid #222;
  background: #f8f8f8;
  font-size: 13px;
  line-height: 1.45;
}

#fc-admin-user-details-summary {
  border-color: #a1a1a1;
  background: #fff;
}

.fc-admin-user-summary-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.fc-admin-summary-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid #8f8f8f;
  background: #fff;
  padding: 4px 8px;
  font-size: 13px;
  line-height: 1.2;
}

.fc-admin-summary-badge.status-active {
  border-color: #2f6d3e;
  color: #1f512d;
}

.fc-admin-summary-badge.status-disabled {
  border-color: #7c1f1f;
  color: #7c1f1f;
}

.fc-admin-summary-color-swatch {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid #111;
  flex: 0 0 auto;
}

#fc-admin-user-summary.empty,
#fc-admin-node-summary.empty,
#fc-admin-user-details-summary.empty {
  color: #666;
  font-style: italic;
  background: #f2f2f2;
}

.fc-admin-summary {
  margin-bottom: 0;
  padding: 9px 10px;
  border: 1px solid #222;
  background: #f8f8f8;
  font-size: 13px;
  line-height: 1.45;
}

.fc-admin-summary.empty {
  color: #666;
  font-style: italic;
  background: #f2f2f2;
}

.fc-admin-user-details-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.fc-admin-user-details-controls input[type="search"] {
  width: min(340px, 100%);
}

.fc-admin-user-details-controls input[type="search"]:focus {
  outline: none;
  box-shadow: inset 0 0 0 1px #111;
}

.fc-admin-user-details-content {
  margin-top: 2px;
  border: 1px solid #b3b3b3;
  background: #fbfbfb;
  padding: 10px;
}

.fc-admin-user-details-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.fc-admin-user-detail-card {
  border: 1px solid #b3b3b3;
  background: #fcfcfc;
  padding: 10px;
}

.fc-admin-user-detail-card h4 {
  margin: 0 0 5px;
  font-size: 14px;
}

.fc-admin-user-detail-card p {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.35;
  color: #444;
}

.fc-admin-user-detail-card .fc-admin-ban-row,
.fc-admin-user-detail-card .fc-admin-role-row,
.fc-admin-user-detail-card .fc-admin-color-row {
  margin-bottom: 0;
}

.fc-admin-danger-zone {
  grid-column: 1 / -1;
  border-color: #9a3535;
  background: #fff8f8;
}

.fc-admin-danger-zone h4 {
  color: #7c1f1f;
}

#fc-admin-create-panel {
  margin: 0;
  padding: 0;
  border: 1px solid #8f8f8f;
  background: #f7f7f7;
  overflow: hidden;
}

#fc-admin-create-panel > summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 12px;
  border-bottom: 1px solid transparent;
}

#fc-admin-create-panel > summary::-webkit-details-marker {
  display: none;
}

#fc-admin-create-panel[open] > summary {
  background: #ededed;
  border-bottom-color: #8f8f8f;
}

#fc-admin-create-panel .fc-admin-create-grid,
#fc-admin-create-panel .fc-admin-note,
#fc-admin-create-panel #fc-admin-create-user-btn,
#fc-admin-create-panel #fc-admin-create-status {
  margin-left: 12px;
  margin-right: 12px;
}

#fc-admin-create-panel .fc-admin-create-grid {
  margin-top: 10px;
}

.fc-admin-create-grid {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 10px;
  align-items: center;
}

.fc-admin-create-grid label {
  font-size: 13px;
  font-weight: 700;
}

.fc-admin-create-grid input,
.fc-admin-create-grid select {
  width: 100%;
}

#fc-admin-create-user-btn {
  margin-top: 10px;
  margin-bottom: 10px;
}

.fc-admin-ban-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.fc-admin-ban-row label {
  font-size: 13px;
  font-weight: 700;
}

.fc-admin-ban-row select {
  min-width: 170px;
}

.fc-admin-ban-badge {
  border: 1px solid #222;
  background: #f4f4f4;
  padding: 5px 8px;
  font-size: 13px;
}

.fc-admin-color-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.fc-admin-role-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.fc-admin-role-row label {
  font-size: 13px;
  font-weight: 700;
  min-width: 65px;
}

.fc-admin-role-row select {
  min-width: 110px;
}

.fc-admin-color-row label {
  font-size: 13px;
  font-weight: 700;
  min-width: 65px;
}

#fc-admin-details-color-input {
  width: 46px;
  min-width: 46px;
  height: 34px;
  border: 2px solid black;
  padding: 0;
  background: #fff;
  cursor: pointer;
}

.fc-admin-user-details-controls input[type="search"]:focus-visible,
.fc-admin-user-details-controls button:focus-visible,
.fc-admin-ban-row select:focus-visible,
.fc-admin-ban-row button:focus-visible,
.fc-admin-role-row select:focus-visible,
.fc-admin-role-row button:focus-visible,
#fc-admin-details-color-input:focus-visible,
#fc-admin-details-save-color-btn:focus-visible,
.fc-admin-actions button:focus-visible {
  outline: 2px solid #1a4d8f;
  outline-offset: 1px;
}

.fc-admin-user-details-content-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.fc-admin-filter-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  min-height: 24px;
}

.fc-admin-filter-chip {
  border: 1px solid #222;
  background: #f1f1f1;
  padding: 3px 7px;
  font-size: 12px;
}

.fc-admin-user-details-content .fc-admin-section-head {
  margin-bottom: 6px;
}

.fc-admin-user-details-content .fc-admin-section-head h4 {
  margin: 0;
  font-size: 15px;
}

#fc-admin-user-details-content-status {
  padding: 8px 9px;
  border: 1px solid #666;
  background: #fbfbfb;
}

#fc-admin-user-details-content-status.empty {
  color: #666;
  font-style: italic;
}

.fc-admin-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.fc-admin-actions button.danger {
  border-color: #7c1f1f;
  color: #7c1f1f;
}

.fc-admin-actions button.danger:hover {
  background: #f6dede;
}

.fc-admin-users-wrap {
  max-height: 360px;
  overflow: auto;
  border: 1px solid #111;
  background: #fff;
}

#fc-admin-users-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

#fc-admin-users-table th,
#fc-admin-users-table td,
#fc-admin-nodes-table th,
#fc-admin-nodes-table td,
#fc-admin-user-details-nodes-table th,
#fc-admin-user-details-nodes-table td,
#fc-admin-audit-table th,
#fc-admin-audit-table td {
  border-bottom: 1px solid #1f1f1f;
  padding: 8px 8px;
  text-align: left;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: top;
  font-weight: 400;
}

#fc-admin-users-table th,
#fc-admin-nodes-table th,
#fc-admin-user-details-nodes-table th,
#fc-admin-audit-table th {
  font-size: 13px;
  letter-spacing: 0.1px;
  color: #101010;
  font-weight: 700;
}

#fc-admin-users-table tbody tr {
  cursor: pointer;
}

#fc-admin-users-table tbody tr:hover {
  background: #f6f6f6;
}

#fc-admin-users-table tbody tr.selected {
  background: #ececec;
}

#fc-admin-users-table tbody tr.pending {
  opacity: 0.7;
}

#fc-admin-nodes-table tbody tr {
  cursor: pointer;
}

#fc-admin-user-details-nodes-table tbody tr {
  cursor: pointer;
}

#fc-admin-nodes-table tbody tr:hover {
  background: #f6f6f6;
}

#fc-admin-user-details-nodes-table tbody tr:hover {
  background: #f6f6f6;
}

#fc-admin-nodes-table tbody tr.selected {
  background: #ececec;
}

#fc-admin-user-details-nodes-table tbody tr.selected {
  background: #ececec;
}

#fc-admin-nodes-table tbody tr.pending {
  opacity: 0.7;
}

#fc-admin-user-details-nodes-table tbody tr.pending {
  opacity: 0.7;
}

#fc-admin-audit-table tbody tr:hover {
  background: #f6f6f6;
}

#fc-admin-users-table td,
#fc-admin-nodes-table td,
#fc-admin-user-details-nodes-table td,
#fc-admin-audit-table td {
  line-height: 1.45;
}

#fc-admin-users-table th,
#fc-admin-nodes-table th,
#fc-admin-user-details-nodes-table th,
#fc-admin-audit-table th {
  background: #efefef;
  position: sticky;
  top: 0;
  z-index: 1;
}

.fc-admin-empty-row td {
  color: #666;
  font-style: italic;
  text-align: center;
  background: #fcfcfc;
  padding-top: 18px;
  padding-bottom: 18px;
}

.fc-admin-empty-cell {
  color: #666;
  font-style: italic;
}

#fc-admin-users-table thead tr:first-child th {
  top: 0;
  z-index: 3;
}

#fc-admin-users-filter-row th {
  top: 32px;
  z-index: 2;
  background: #f7f7f7;
}

.fc-admin-sort-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: none;
  background: transparent;
  color: inherit;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 0;
  cursor: pointer;
}

.fc-admin-sort-btn:hover {
  text-decoration: underline;
}

.fc-admin-sort-btn[data-active-sort="1"] {
  color: #111;
}

#fc-admin-users-filter-row input,
#fc-admin-users-filter-row select,
#fc-admin-users-filter-row button {
  font-size: 12px;
  padding: 6px 7px;
}

#fc-admin-users-filter-row button {
  font-weight: 700;
  cursor: pointer;
}

#fc-admin-users-table td.actions-cell {
  width: 196px;
  white-space: normal;
  overflow: visible;
}

#fc-admin-nodes-table td.actions-cell {
  width: 320px;
  white-space: normal;
  overflow: visible;
}

#fc-admin-user-details-nodes-table td.actions-cell {
  width: 320px;
  white-space: normal;
  overflow: visible;
}

.fc-admin-username-with-color {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  min-width: 0;
}

.fc-admin-user-pin-swatch {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid #111;
  flex: 0 0 auto;
}

.fc-admin-username-text {
  display: inline-block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fc-admin-color-cell {
  font-family: "Courier New", Courier, monospace;
}

#fc-admin-nodes-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

#fc-admin-user-details-nodes-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

#fc-admin-audit-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

#fc-admin-nodes-table td.path-cell {
  white-space: normal;
  word-break: break-word;
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
}

#fc-admin-user-details-nodes-table td.path-cell {
  white-space: normal;
  word-break: break-word;
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
}

#fc-admin-nodes-table td.seq-cell,
#fc-admin-user-details-nodes-table td.seq-cell,
#fc-admin-nodes-table td.type-cell,
#fc-admin-user-details-nodes-table td.type-cell {
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
}

#fc-admin-nodes-table td.owner-cell,
#fc-admin-user-details-nodes-table td.owner-cell {
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}

#fc-admin-users-table td[data-user-column="username"],
#fc-admin-users-table td[data-user-column="role"],
#fc-admin-users-table td[data-user-column="color"],
#fc-admin-audit-table td.target-cell {
  white-space: normal;
  word-break: break-word;
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
}

#fc-admin-audit-table td.details-cell {
  white-space: normal;
  word-break: break-word;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  min-width: 190px;
}

.fc-admin-audit-target-cell {
  min-width: 150px;
}

.fc-admin-audit-details-cell {
  min-width: 190px;
}

.fc-admin-audit-time-cell {
  width: 170px;
  white-space: normal;
}

.fc-admin-audit-type-cell {
  width: 160px;
}

.fc-admin-audit-actor-cell {
  width: 140px;
}

.fc-admin-table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.fc-admin-table-btn {
  font-size: 11px;
  padding: 5px 7px;
}

.fc-admin-table-btn.danger {
  border-color: #7c1f1f;
  color: #7c1f1f;
}

.fc-admin-table-btn.danger:hover {
  background: #f6dede;
}

.fc-admin-audit-details-btn {
  margin-top: 5px;
  border: 2px solid black;
  background: #fff;
  font-size: 11px;
  padding: 4px 7px;
  cursor: pointer;
  font-family: "Lora", serif;
  align-self: flex-start;
}

.fc-admin-audit-details-btn:hover {
  background: #ccc;
}

.fc-admin-note {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.35;
  color: #444;
}

@media (max-width: 1140px) {
  #fc-admin-layout {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .fc-admin-tabs {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .fc-admin-tab-btn {
    width: auto;
    flex: 1 1 170px;
    text-align: center;
  }

  .fc-admin-users-layout {
    grid-template-columns: 1fr;
  }
}


/* Empty folder message */
.empty-folder {
  text-align: center;
  padding: 60px 20px;
  color: #333;
  font-style: italic;
}

/* Copy feedback bubble */
.copy-fly {
  position: fixed;
  z-index: 1100;
  max-width: min(420px, calc(100vw - 24px));
  background: #fff;
  color: #111;
  padding: 6px 10px;
  border: 2px solid #000;
  border-radius: 0;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.2);
  font-size: 12px;
  font-family: "Lora", serif;
  font-weight: 700;
  line-height: 1.3;
  white-space: normal;
  word-break: break-word;
  opacity: 0;
  transform: translateY(0);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.copy-fly.error {
  background: #f7eaea;
  color: #7b1f1f;
  border-color: #7b1f1f;
}

.copy-fly.show {
  opacity: 1;
  transform: translateY(-10px);
}
.copy-fly.hide {
  opacity: 0;
  transform: translateY(-16px);
}
@media (max-width: 768px) {
  .file-item {
    padding: 6px 6px;
  }

  .file-icon {
    width: 16px;
    height: 16px;
    margin-right: 8px;
  }

  .file-icon-direction-overlay {
    right: 2px;
    bottom: 2px;
    width: 8px;
    height: 8px;
  }

  .file-icon-has-direction {
    width: 18px;
    height: 18px;
  }

  .file-name {
    font-size: 13px;
  }

  #breadcrumbs {
    font-size: 12px;
  }

  #explorer-footer {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
  }

  #shared-status {
    order: 1;
  }

  #item-count {
    order: 3;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  #footer-controls {
    order: 2;
    margin-left: auto;
  }

  #info-pane {
    padding: 9px 8px;
  }

  #info-pane .info-file-header {
    gap: 5px;
    margin-bottom: 0;
    padding-bottom: 8px;
  }

  #info-pane .info-icon {
    width: 30px;
    height: 30px;
  }

  #info-pane .info-file-name {
    font-size: 15px;
  }

  #info-pane .info-section {
    margin-top: 8px;
    padding-top: 0;
  }

  #info-pane .info-section-title {
    font-size: 12px;
    margin-bottom: 6px;
  }

  #info-pane .info-table-row {
    grid-template-columns: 70px minmax(0, 1fr);
    column-gap: 7px;
    padding: 4px 0;
  }

  #info-pane .info-table-label {
    font-size: 10px;
  }

  #info-pane .info-table-value {
    font-size: 11px;
  }

  #info-pane .info-description-value {
    font-size: 11px;
  }

  #info-pane .info-location-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
  }

  #info-pane .info-location-format {
    justify-content: space-between;
    width: 100%;
  }

  #info-pane .info-location-format-toggle {
    margin-left: auto;
  }

  #info-pane .info-location-format-label {
    font-size: 10px;
  }

  #info-pane .info-panel-btn {
    font-size: 10px;
    min-height: 24px;
    padding: 3px 7px;
  }

  #info-pane .info-location-format-option {
    min-height: 24px;
    padding: 3px 7px;
  }

  #info-pane .info-action-btn {
    width: 100%;
  }

  #info-pane .info-location-path {
    font-size: 10px;
    margin-top: 5px;
    padding: 5px 6px;
  }

  #fc-dialog {
    padding: 12px;
  }

  #fc-auth-dialog {
    padding: 12px;
  }

  #fc-password-dialog {
    padding: 12px;
  }

  #fc-dialog-title {
    font-size: 16px;
  }

  #fc-auth-title {
    font-size: 16px;
  }

  #fc-password-title {
    font-size: 16px;
  }

  #fc-dialog-input-row {
    gap: 8px;
  }

  #fc-dialog-address-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  #fc-dialog-address-number-group {
    width: 100%;
    flex: 1 1 auto;
  }

  #fc-dialog-address-street {
    padding: 0;
  }

  #fc-admin-panel {
    padding: 12px;
  }

  #fc-admin-layout {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .fc-admin-nav {
    padding: 8px;
  }

  .fc-admin-tabs {
    flex-direction: column;
    gap: 6px;
  }

  .fc-admin-tab-btn {
    width: 100%;
    text-align: left;
    flex: 0 1 auto;
    padding: 8px 10px;
    font-size: 13px;
  }

  .fc-admin-users-layout {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .fc-admin-user-inspector {
    padding: 10px;
  }

  .fc-admin-users-tools {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .fc-admin-users-tools,
  .fc-admin-toolbar-card,
  .fc-admin-status-card {
    row-gap: 6px;
  }

  .fc-admin-users-tools input[type="search"] {
    width: 100%;
  }

  .fc-admin-users-tools select {
    width: 100%;
    max-width: none;
  }

  .fc-admin-user-details-controls input[type="search"],
  .fc-admin-user-details-controls button {
    width: 100%;
    max-width: none;
  }

  .fc-admin-advanced-panel > .fc-admin-users-tools {
    padding: 8px;
  }

  .fc-admin-toolbar-card,
  .fc-admin-status-card,
  .fc-admin-results-card,
  .fc-admin-create-panel {
    padding: 8px;
  }

  .fc-admin-filter-chips {
    gap: 4px;
  }

  .fc-admin-filter-chip {
    font-size: 10px;
  }

  .fc-admin-user-details-layout {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .fc-admin-create-grid {
    grid-template-columns: 1fr;
  }

  .fc-admin-ban-row {
    align-items: stretch;
  }

  .fc-admin-ban-row select,
  .fc-admin-ban-row button,
  .fc-admin-role-row select,
  .fc-admin-role-row button {
    width: 100%;
  }

  .fc-admin-role-row {
    align-items: stretch;
  }

  .fc-admin-color-row {
    align-items: stretch;
  }

  #fc-admin-details-save-color-btn {
    width: 100%;
  }

  #fc-admin-users-table td.actions-cell {
    width: 180px;
  }

  #fc-admin-nodes-table td.actions-cell {
    width: auto;
    min-width: 0;
  }

  #fc-admin-user-details-nodes-table td.actions-cell {
    width: auto;
    min-width: 0;
  }

  .fc-admin-table-actions {
    flex-wrap: wrap;
    gap: 3px;
  }

  #fc-admin-users-table,
  #fc-admin-nodes-table,
  #fc-admin-user-details-nodes-table,
  #fc-admin-audit-table {
    font-size: 12px;
  }

  #fc-admin-users-table th,
  #fc-admin-nodes-table th,
  #fc-admin-user-details-nodes-table th,
  #fc-admin-audit-table th,
  #fc-admin-users-table td,
  #fc-admin-nodes-table td,
  #fc-admin-user-details-nodes-table td,
  #fc-admin-audit-table td {
    padding: 5px 5px;
  }

  .fc-admin-audit-time-cell,
  .fc-admin-audit-type-cell,
  .fc-admin-audit-actor-cell,
  #fc-admin-audit-table th,
  #fc-admin-audit-table td {
    width: auto;
    min-width: 0;
  }

  .fc-admin-audit-details-btn {
    align-self: stretch;
  }
}

/* Special styling for markers and important locations */
.file-item.marker .file-name {
  font-weight: 700;
  color: #c33;
}

/* Map Panel Styles */
/* Keep explorer-content/columns behavior from earlier block; do not override scrolling */

#map-panel {
  position: absolute;
  top: -2px;
  bottom: -2px;
  left: calc(100% + var(--fc-map-popout-gap) - var(--fc-map-seam-overlap));
  width: var(--fc-map-panel-width);
  border: 2px solid black;
  background: var(--fc-map-surface);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  contain: paint;
  box-shadow: none;
  z-index: 8;
  pointer-events: auto;
  transition: transform 0.28s ease, opacity 0.2s ease, border-color 0.2s ease;
}

#map-panel.collapsed {
  transform: translateX(24px);
  opacity: 0;
  border-color: transparent;
  pointer-events: none;
}

#map-panel.collapsed #map-container {
  visibility: hidden;
}

#map-panel.collapsed #map-nearby {
  display: none;
}

#map-container {
  flex: 1;
  padding: 10px;
  overflow: hidden;
  background: var(--fc-map-surface);
  display: flex;
  align-items: center;
  justify-content: center;
}

#map-nearby {
  border-top: 1px solid rgba(0, 0, 0, 0.15);
  padding: 8px 10px 10px;
  background: var(--fc-map-surface);
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 132px;
  overflow: hidden;
}

#map-nearby-title {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  color: #2f3e4d;
}

#map-current-location {
  margin: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  order: -1;
}

#map-current-location .map-current-location-title {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  color: #2f3e4d;
}

#map-current-location .map-current-location-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-size: 11px;
  line-height: 1.25;
  color: #1f2937;
}

#map-current-location .map-current-location-icon {
  width: 14px;
  height: 14px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

#map-current-location .map-nearby-item-icon-svg {
  width: 100%;
  height: 100%;
  display: block;
}

#map-current-location .map-current-location-name {
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

#map-nearby-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: auto;
  min-height: 0;
}

#map-nearby-list li {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  align-items: flex-start;
  font-size: 11px;
  line-height: 1.25;
  color: #1f2937;
  cursor: pointer;
}

#map-nearby-list .map-nearby-item-label-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

#map-nearby-list .map-nearby-item-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.3);
  flex-shrink: 0;
}

#map-nearby-list .map-nearby-item-label {
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#map-nearby-list .map-nearby-item-distance {
  flex-shrink: 0;
  color: #4b5563;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

#map-nearby-list .map-nearby-item-distance-indicator {
  width: 14px;
  height: 14px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

#map-nearby-list .map-nearby-item-distance-indicator-here {
  color: #b91c1c;
}

#map-nearby-list .map-nearby-item-distance-indicator-direction {
  color: #4b5563;
}

#map-nearby-list .map-nearby-item-icon-svg {
  width: 100%;
  height: 100%;
  display: block;
}

#map-nearby-list .map-nearby-item-distance-indicator-direction .map-nearby-item-icon-svg {
  transform: rotate(var(--map-nearby-direction-angle, 0deg));
  transform-origin: 50% 50%;
}

#map-nearby-list .map-nearby-item-hovered {
  color: #111827;
}

#map-nearby-list .map-nearby-item-hovered .map-nearby-item-distance {
  color: #1f2937;
}

#map-nearby-empty {
  margin: 0;
  color: #6b7280;
  font-size: 11px;
  min-height: 16px;
}

#city-map {
  background: transparent;
  border: none;
  max-width: 100%;
  max-height: 100%;
  display: block;
}

@media (max-width: 1280px) {
  #file-explorer {
    --fc-map-panel-width: 352px;
  }
}
