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

:root {
  color-scheme: light dark;
  --fc-space-1: 7px;
  --fc-space-2: 10px;
  --fc-space-3: 16px;
  --fc-space-4: 24px;
  --fc-control-height: 40px;
  --fc-control-padding-x: 11px;
  --fc-border-width-strong: 2px;
  --fc-radius-sm: 2px;
  --fc-radius-md: 2px;
  --fc-explorer-column-width: 240px;
  --fc-shell-column-count: 3;
  --fc-shell-content-width: calc(var(--fc-explorer-column-width) * var(--fc-shell-column-count));
  --fc-shell-border-inline-width: calc(var(--fc-border-width-strong) * 2);
  --fc-shell-base-width: calc(var(--fc-shell-content-width) + var(--fc-shell-border-inline-width));
  --fc-shell-visual-width: var(--fc-shell-base-width);
  --fc-shell-inline-padding: clamp(8px, 1.8vw, 16px);
  --fc-map-panel-width: var(--fc-explorer-column-width);
  --fc-shell-popout-width: var(--fc-shell-base-width);
  --fc-canvas-bg: #ffffff;
  --fc-text-color: #000000;
  --fc-text-muted: #666666;
  --fc-border-color: #000000;
  --fc-surface-color: #ffffff;
  --fc-surface-subtle: #f4f4f4;
  --fc-surface-muted: #efefef;
  --fc-hover-bg: #cccccc;
  --fc-pressed-bg: #999999;
  --fc-active-bg: #e1e1e1;
  --fc-cursor-indicator: #6f6f6f;
  --fc-focus-ring-color: #2f2f2f;
  --fc-focus-ring-width: 2px;
  --fc-focus-ring-offset: 2px;
  --fc-overlay-bg: rgba(0, 0, 0, 0.16);
  --fc-overlay-strong-bg: rgba(0, 0, 0, 0.28);
  --fc-danger-color: #7c1f1f;
  --fc-danger-soft-bg: #f6dede;
  --fc-success-color: #1d5f2a;
  --fc-breadcrumb-valid-border: #2d7a46;
  --fc-breadcrumb-valid-bg: #edf9f0;
  --fc-breadcrumb-invalid-border: #b42318;
  --fc-breadcrumb-invalid-bg: #fff1ef;
  --fc-map-surface: #f9f9f9;
  --fc-map-background: transparent;
  --fc-map-grid-minor: #d9dee5;
  --fc-map-grid-major: #c8d1dc;
  --fc-map-label: #374151;
  --fc-map-landmark: #0f766e;
  --fc-map-landmark-stroke: #ffffff;
  --fc-map-user-stroke: #1f2937;
  --fc-map-cluster: #334155;
  --fc-map-current: #0066cc;
  --fc-map-chip-bg: rgba(255, 255, 255, 0.92);
  --fc-map-chip-stroke: #bfc7d2;
  --fc-map-tooltip-bg: rgba(15, 23, 42, 0.92);
  --fc-map-tooltip-text: #ffffff;
  --fc-serif-font-family: "Lora", "Noto Sans Math", "Noto Sans Symbols 2", serif;
}

body {
  margin: 0;
  background: var(--fc-canvas-bg);
  color: var(--fc-text-color);
  font-size: 14px;
  font-family: var(--fc-serif-font-family);
}

:where(
  #file-explorer,
  #fc-dialog,
  #fc-password-dialog,
  #fc-auth-dialog,
  #fc-account-panel
) :where(
  button,
  input,
  select,
  textarea,
  summary,
  a[href]
):focus-visible {
  outline: var(--fc-focus-ring-width) solid var(--fc-focus-ring-color);
  outline-offset: var(--fc-focus-ring-offset);
}

:where(
  #fc-shell-loading-retry-btn,
  #path-controls button,
  #view-controls button,
  #shared-status button,
  #footer-controls button,
  #fc-portrait-sheet-controls button,
  #fc-dialog-close-btn,
  #fc-auth-close-btn,
  #fc-password-close-btn,
  .fc-account-icon-button
):focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 var(--fc-focus-ring-width) var(--fc-focus-ring-color);
}

:where(
  #fc-auth-subtitle-action-btn,
  #fc-auth-mode-toggle-btn,
  .fc-password-visibility-toggle
):focus-visible {
  outline-offset: 3px;
}

.wrapper {
  max-width: calc(var(--fc-shell-visual-width) + (var(--fc-shell-inline-padding) * 2));
  margin: 0 auto;
}

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

.title a {
  text-decoration: none;
  color: var(--fc-text-color);
}

.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: var(--fc-shell-inline-padding);
  padding-left: var(--fc-shell-inline-padding);
  padding-bottom: 5%;
  padding-top: 2%;
  position: relative;
  box-sizing: border-box;
}

.fc-shell-stage {
  width: min(100%, var(--fc-shell-visual-width));
  margin: 0 auto;
  box-sizing: border-box;
}

.fc-shell-stage[data-fc-resize-offset="true"] {
  transform: translateX(var(--fc-shell-drag-offset-x, 0px));
}

.fc-shell-stage[data-fc-map-popout-open="true"] {
  width: min(100%, var(--fc-shell-visual-width));
  padding-right: 0;
}

#file-explorer {
  --fc-explorer-divider-width: 2px;
  --fc-map-popout-gap: 0px;
  --fc-map-seam-overlap: 2px;
  --fc-shell-scale: 1;
  background: var(--fc-surface-color);
  border: var(--fc-border-width-strong) solid var(--fc-border-color);
  box-sizing: border-box;
  font-family: var(--fc-serif-font-family);
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  width: min(100%, var(--fc-shell-visual-width));
  min-width: 0;
  max-width: var(--fc-shell-visual-width);
  height: clamp(360px, 70svh, 520px);
  position: relative;
  overflow: visible;
  transform: none;
  transform-origin: top center;
}

#fc-shell-loading-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: var(--fc-surface-color);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, visibility 0s linear 0.18s;
}

#fc-shell-loading-indicator {
  position: relative;
  width: 42px;
  height: 42px;
  color: var(--fc-text-muted);
}

.fc-shell-loading-folder {
  display: block;
  width: 100%;
  height: 100%;
}

.fc-shell-loading-folder-fallback {
  fill: none;
  stroke: currentColor;
  stroke-width: 50;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
}

.fc-shell-loading-folder-snake {
  fill: none;
  stroke: currentColor;
  stroke-width: 50;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 75 25;
  stroke-dashoffset: 0;
  opacity: 0.95;
  animation: fc-shell-loading-folder-snake 1.4s linear infinite;
}

#fc-shell-loading-label {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: 0;
  color: var(--fc-text-muted);
  display: inline-block;
  position: relative;
}

#fc-shell-loading-label::after {
  content: attr(data-fc-loading-ellipsis);
  position: absolute;
  left: calc(100% + 0.08em);
  top: 0;
  width: 3ch;
  text-align: left;
}

.fc-shell-loading-failure {
  width: min(360px, calc(100% - 32px));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.fc-shell-loading-failure[hidden] {
  display: none;
}

.fc-shell-loading-message {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--fc-text-color);
}

.fc-shell-loading-detail {
  width: 100%;
  max-height: 120px;
  margin: 0;
  padding: 8px 10px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  border: var(--fc-border-width-strong) solid var(--fc-border-color);
  border-radius: var(--fc-radius-sm);
  background: var(--fc-surface-subtle);
  color: var(--fc-text-muted);
  font: 12px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  text-align: left;
}

#fc-shell-loading-retry-btn {
  min-width: 88px;
}

#file-explorer[data-fc-shell-startup-state="failed"] #fc-shell-loading-indicator {
  display: none;
}

#file-explorer[data-fc-shell-startup-state="failed"] #fc-shell-loading-label {
  max-width: calc(100% - 32px);
  color: var(--fc-text-color);
  font-weight: 700;
  text-align: center;
}

#file-explorer[data-fc-shell-startup-state="failed"] #fc-shell-loading-label::after {
  content: "";
}

#file-explorer > #explorer-toolbar,
#file-explorer > #explorer-content,
#file-explorer > #explorer-footer {
  transition: opacity 0.18s ease;
}

.explorer-resize-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 30;
  width: 16px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: ew-resize;
  touch-action: none;
}

.explorer-resize-handle[data-fc-resize-edge="left"] {
  left: -2px;
}

.explorer-resize-handle[data-fc-resize-edge="right"] {
  right: -2px;
}

.explorer-resize-handle::before {
  content: "";
  position: absolute;
  top: 50%;
  width: 4px;
  height: 54px;
  border-right: 1px solid var(--fc-border-color);
  border-left: 1px solid var(--fc-border-color);
  opacity: 0.32;
  transform: translateY(-50%);
}

.explorer-resize-handle[data-fc-resize-edge="left"]::before {
  left: 2px;
}

.explorer-resize-handle[data-fc-resize-edge="right"]::before {
  right: 2px;
}

.explorer-resize-handle:hover::before,
.explorer-resize-handle:focus-visible::before,
#file-explorer[data-fc-resizing="true"] .explorer-resize-handle::before {
  opacity: 0.9;
}

.explorer-resize-handle:focus-visible {
  outline: var(--fc-focus-ring-width) solid var(--fc-focus-ring-color);
  outline-offset: 2px;
}

#file-explorer[data-fc-resizing="true"],
#file-explorer[data-fc-resizing="true"] * {
  cursor: ew-resize !important;
  user-select: none;
}

#file-explorer[data-fc-resizing="true"],
#file-explorer[data-fc-resize-settling="true"] {
  will-change: width, max-width;
}

#file-explorer[data-fc-shell-ready="false"] > #fc-shell-loading-overlay {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.18s ease, visibility 0s linear 0s;
}

#file-explorer[data-fc-shell-ready="false"] > #explorer-toolbar,
#file-explorer[data-fc-shell-ready="false"] > #explorer-content,
#file-explorer[data-fc-shell-ready="false"] > .explorer-resize-handle,
#file-explorer[data-fc-shell-ready="false"] > #explorer-footer {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: none;
}

#file-explorer[data-fc-shell-ready="false"] {
  border-color: transparent;
}

@media (prefers-reduced-motion: reduce) {
  #fc-shell-loading-overlay,
  #file-explorer > #explorer-toolbar,
  #file-explorer > #explorer-content,
  #file-explorer > #explorer-footer {
    transition: none;
  }

  .fc-shell-loading-folder {
    animation: none;
  }

  .fc-shell-loading-folder-snake {
    animation: none;
    stroke-dashoffset: 0;
    opacity: 0;
  }

  .fc-shell-loading-folder-fallback {
    opacity: 0.72;
  }

  #fc-shortcut-help-panel {
    transition: none;
    transform: none;
  }

}

@keyframes fc-shell-loading-folder-snake {
  from {
    stroke-dashoffset: 0;
  }
  to {
    stroke-dashoffset: -100;
  }
}

#explorer-toolbar {
  background: var(--fc-surface-color);
  border-bottom: var(--fc-border-width-strong) solid var(--fc-border-color);
  padding: var(--fc-space-1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: clamp(4px, 1.1vw, 10px);
  flex-wrap: nowrap;
}

#path-controls {
  display: flex;
  align-items: center;
  gap: clamp(4px, 1vw, 10px);
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

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

#fc-portrait-path-label {
  display: none;
  align-items: center;
  box-sizing: border-box;
  flex: 1 1 8ch;
  min-width: 0;
  height: 34px;
  padding: 5px 8px;
  color: var(--fc-text-color);
  font-family: var(--fc-serif-font-family);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#fc-portrait-path-label[hidden] {
  display: none !important;
}

/* Style the Home button like the original toolbar buttons */
#path-controls button {
  background: var(--fc-surface-color);
  border: var(--fc-border-width-strong) solid var(--fc-border-color);
  width: 34px;
  min-width: 34px;
  height: 34px;
  padding: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px;
  line-height: 1;
  cursor: pointer;
  font-size: 13px;
  font-family: var(--fc-serif-font-family);
  font-weight: 700;
  color: var(--fc-text-color);
  transition: background-color 0.2s;
}

#path-controls button:hover {
  background: var(--fc-hover-bg);
}

#path-controls button:active {
  background: var(--fc-pressed-bg);
}

#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: var(--fc-surface-color);
}

#breadcrumbs-input {
  flex: 1;
  height: 34px;
  font-size: 13px;
  color: var(--fc-text-color);
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  text-overflow: clip;
  min-width: 0;
  box-sizing: border-box;
  border: var(--fc-border-width-strong) solid transparent;
  border-radius: var(--fc-radius-sm);
  padding: 5px 8px;
  background: transparent;
  font-family: var(--fc-serif-font-family);
  direction: ltr;
  text-align: left;
  unicode-bidi: plaintext;
  cursor: text;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

#breadcrumbs-input:focus {
  background: var(--fc-surface-color);
}

#breadcrumbs-input.breadcrumbs-valid {
  border-color: var(--fc-breadcrumb-valid-border);
  background-color: var(--fc-breadcrumb-valid-bg);
  box-shadow: inset 0 0 0 1px var(--fc-breadcrumb-valid-border);
}

#breadcrumbs-input.breadcrumbs-invalid {
  border-color: var(--fc-breadcrumb-invalid-border);
  background-color: var(--fc-breadcrumb-invalid-bg);
  box-shadow: inset 0 0 0 1px var(--fc-breadcrumb-invalid-border);
}

#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: clamp(4px, 1vw, 10px);
  align-items: center;
  flex: 0 0 auto;
  min-width: max-content;
  margin-left: 0;
  justify-content: flex-end;
}

#view-controls button {
  background: var(--fc-surface-color);
  border: var(--fc-border-width-strong) solid var(--fc-border-color);
  width: 34px;
  min-width: 34px;
  height: 34px;
  padding: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px;
  line-height: 1;
  cursor: pointer;
  font-size: 13px;
  font-family: var(--fc-serif-font-family);
  font-weight: 700;
  color: var(--fc-text-color);
  transition: background-color 0.2s;
}

#view-controls button:hover {
  background: var(--fc-hover-bg);
}

#view-controls button:active {
  background: var(--fc-pressed-bg);
}

#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: var(--fc-surface-color);
}

#path-controls button .toolbar-icon,
#view-controls button .toolbar-icon {
  width: 100%;
  height: 100%;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.portrait-parent-btn {
  display: inline-flex !important;
}

.portrait-parent-btn .toolbar-icon {
  transform: none;
}

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

#shared-status button {
  background: var(--fc-surface-color);
  border: var(--fc-border-width-strong) solid var(--fc-border-color);
  min-height: 34px;
  padding: 0 9px;
  cursor: pointer;
  font-size: 12px;
  font-family: var(--fc-serif-font-family);
  font-weight: 700;
  color: var(--fc-text-color);
  transition: background-color 0.2s;
}

#shared-status button[hidden],
#footer-controls button[hidden] {
  display: none !important;
}

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

#shared-status #manage-account-btn {
  flex: 0 0 34px;
  width: 34px;
  min-width: 34px;
  padding: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

#shared-status #manage-account-btn .toolbar-icon {
  width: 100%;
  height: 100%;
  display: block;
}

.fc-manage-account-mobile-label {
  display: none;
}

#shared-status button:hover {
  background: var(--fc-hover-bg);
}

#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: var(--fc-surface-color);
}

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

#map-toggle-btn.locked {
  color: var(--fc-text-color);
}

#map-toggle-btn.open {
  background: var(--fc-active-bg);
}

#map-toggle-btn.open:hover {
  background: var(--fc-active-bg);
}

#explorer-content {
  background: var(--fc-surface-color);
  min-height: 0;
  padding: 0;
  border-bottom: var(--fc-border-width-strong) solid var(--fc-border-color);
  display: flex;
  flex-direction: row;
  flex: 1;
  position: static;
  overflow: visible;
}

#fc-portrait-sheet-controls {
  display: none;
}

#fc-portrait-sheet-controls[hidden] {
  display: none !important;
}

#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,
.column {
  flex: 0 0 var(--fc-explorer-column-width);
  width: var(--fc-explorer-column-width);
  min-width: var(--fc-explorer-column-width);
  max-width: var(--fc-explorer-column-width);
  box-sizing: border-box;
}

#info-pane {
  position: relative;
  border-right: var(--fc-explorer-divider-width) solid var(--fc-border-color);
  background: #f4f4f4;
  padding: 12px 10px;
  font-size: 12px;
  color: #181818;
  overflow-y: auto;
}

#info-pane::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 1px;
  background: #d4d4d4;
  pointer-events: none;
}

#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;
  position: relative;
}

#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,
#info-pane .info-content-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,
#info-pane .info-content-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: 72px minmax(0, 1fr);
  align-items: start;
  column-gap: 4px;
  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-panel-btn {
  border: 1px solid #8f8f8f;
  background: #fff;
  color: #222;
  font-size: 11px;
  line-height: 1.2;
  font-family: var(--fc-serif-font-family);
  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:disabled,
#info-pane .info-panel-btn.fc-button-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  background: #fff;
}

#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: var(--fc-explorer-divider-width) solid var(--fc-border-color);
}

.explorer-trailing-pane.explorer-trailing-pane-flush {
  border-right: none;
}

#info-pane.explorer-trailing-pane.explorer-trailing-pane-flush {
  border-right: none;
}

.column-header {
  background: #f5f5f5;
  padding: 8px 12px;
  font-size: 12px;
  line-height: 1.15;
  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;
}

.column-list[role="tree"]:focus,
.column-list[role="tree"]:focus-visible {
  outline: none;
  box-shadow: none;
}

.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;
  line-height: 1.15;
  color: black;
  scroll-margin-top: 32px;
  scroll-margin-bottom: 32px;
}

.file-item.hidden-entry .file-icon,
.file-item.hidden-entry .file-name {
  color: #666;
  font-style: italic;
}

.file-item.hidden-entry.selected .file-icon,
.file-item.hidden-entry.selected .file-name,
.file-item.hidden-entry.selected-active .file-icon,
.file-item.hidden-entry.selected-active .file-name,
.file-item.hidden-entry.active .file-icon,
.file-item.hidden-entry.active .file-name {
  color: inherit;
  font-style: normal;
  opacity: 1;
}

@media (hover: hover) and (pointer: fine) {
  .file-item:hover {
    background-color: #e8e8e8;
  }

}

.file-item.context-menu-active {
  background-color: #e8e8e8;
}

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

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

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

.file-item.active:not(.keyboard-cursor-active) {
  background-color: #b3d9ff;
}

.file-item.keyboard-cursor-active {
  box-shadow: inset 3px 0 0 var(--fc-cursor-indicator);
}

.file-item.cut-pending {
  opacity: 0.62;
}

.file-item.cut-pending.selected,
.file-item.cut-pending.selected.selected-active {
  opacity: 0.82;
}

.file-item.explorer-drag-source-selected {
  background: #cde4ff;
}

.file-item.explorer-drag-source-primary {
  background: #b9d8ff;
  box-shadow: inset 0 0 0 2px #5b7ea9;
}

.file-item.explorer-drop-target-valid {
  background: #d9efda;
  box-shadow: inset 0 0 0 2px #3f8048;
}

.file-item.explorer-drop-target-invalid {
  background: #f6dfdf;
  box-shadow: inset 0 0 0 2px #b85a5a;
}

.column-list.explorer-drop-target-valid {
  background: rgba(86, 165, 95, 0.12);
  outline: 2px dashed #4a8f53;
  outline-offset: -3px;
}

.column-list.explorer-drop-target-invalid {
  background: rgba(186, 83, 83, 0.1);
  outline: 2px dashed #b55e5e;
  outline-offset: -3px;
}

.column-list.explorer-create-target-preview {
  background: rgba(86, 165, 95, 0.07);
  outline: 1px dashed #79ab80;
  outline-offset: -3px;
}

@keyframes fc-explorer-hover-open-pulse {
  0% {
    box-shadow: inset 0 0 0 1px #6c8eb4;
  }
  50% {
    box-shadow: inset 0 0 0 2px #4f77a8;
  }
  100% {
    box-shadow: inset 0 0 0 1px #6c8eb4;
  }
}

.file-item.explorer-drag-hover-open-pending {
  animation: fc-explorer-hover-open-pulse 0.9s ease-in-out infinite;
}

.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-svg,
.info-icon-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.explorer-map-discovery-marker {
  width: 16px;
  height: 16px;
  margin-left: 8px;
  user-select: none;
  flex: 0 0 16px;
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.explorer-map-discovery-marker-svg {
  width: 100%;
  height: 100%;
  display: block;
}

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

.file-name[data-middle-truncated="1"] {
  text-overflow: clip;
}

#explorer-footer {
  background: var(--fc-surface-color);
  border-top: var(--fc-border-width-strong) solid var(--fc-border-color);
  padding: var(--fc-space-1);
  font-size: 13px;
  color: var(--fc-text-color);
  container-type: inline-size;
  display: grid;
  grid-template-columns: minmax(0, max-content) minmax(max-content, 1fr) max-content;
  align-items: center;
  column-gap: clamp(4px, 1.4vw, 10px);
  justify-items: stretch;
  overflow: hidden;
}

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

#item-count {
  font-style: italic;
  grid-column: 2;
  justify-self: center;
  min-width: 0;
  line-height: 34px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#footer-controls {
  grid-column: 3;
  justify-self: end;
  display: flex;
  gap: clamp(4px, 1.1vw, 8px);
  align-items: center;
  flex-wrap: nowrap;
  min-width: 0;
  overflow: hidden;
}

#footer-controls button {
  background: var(--fc-surface-color);
  border: var(--fc-border-width-strong) solid var(--fc-border-color);
  min-height: 34px;
  padding: 0 9px;
  cursor: pointer;
  font-size: 12px;
  font-family: var(--fc-serif-font-family);
  font-weight: 700;
  color: var(--fc-text-color);
  transition: background-color 0.2s;
}

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

#footer-actions-btn {
  min-width: 84px;
}

#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 .fc-footer-pinned-action {
  display: inline-flex;
}

#footer-controls button:hover {
  background: var(--fc-hover-bg);
}

#footer-controls button:active {
  background: var(--fc-pressed-bg);
}

#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: var(--fc-surface-color);
}

#fc-shortcut-help-panel {
  position: absolute;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  max-height: none;
  overflow: hidden;
  border: none;
  background: var(--fc-surface-color);
  box-shadow: none;
  box-sizing: border-box;
  padding: 14px;
  --fc-shortcut-columns: 1;
  --fc-shortcut-gap: 12px;
  --fc-shortcut-row-gap: 6px;
  --fc-shortcut-section-padding-y: 10px;
  --fc-shortcut-section-padding-x: 11px;
  --fc-shortcut-title-size: 20px;
  z-index: 18;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
}

#fc-shortcut-help-panel[data-map-open="1"] {
  width: 100%;
}

#fc-shortcut-help-panel[data-visible="1"] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0s;
}

#fc-shortcut-help-panel[hidden] {
  display: none;
}

#fc-shortcut-help-title {
  margin: 0 0 12px;
  font-size: var(--fc-shortcut-title-size);
  font-weight: 700;
  line-height: 1.15;
  color: var(--fc-text-color);
}

#fc-shortcut-help-body {
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
  overflow: auto;
  display: grid;
  grid-template-columns: repeat(var(--fc-shortcut-columns), minmax(0, 1fr));
  gap: var(--fc-shortcut-gap);
  align-content: start;
  align-items: start;
  grid-auto-flow: row dense;
  grid-auto-rows: 4px;
  padding-right: 4px;
  box-sizing: border-box;
}

.fc-shortcut-help-section {
  border: 1px solid color-mix(in srgb, var(--fc-border-color) 72%, transparent);
  background: var(--fc-surface-subtle);
  padding: var(--fc-shortcut-section-padding-y) var(--fc-shortcut-section-padding-x);
  margin: 0;
  box-sizing: border-box;
  grid-row: span var(--fc-shortcut-row-span, 1);
}

.fc-shortcut-help-section h3 {
  margin: 0 0 9px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--fc-text-muted);
}

.fc-shortcut-help-row {
  display: grid;
  grid-template-columns: fit-content(58%) minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
}

.fc-shortcut-help-row > * {
  min-width: 0;
}

.fc-shortcut-help-row.fc-shortcut-help-row--stacked {
  grid-template-columns: 1fr;
  gap: 5px;
}

.fc-shortcut-help-row + .fc-shortcut-help-row {
  margin-top: var(--fc-shortcut-row-gap);
  padding-top: var(--fc-shortcut-row-gap);
  border-top: 1px solid color-mix(in srgb, var(--fc-border-color) 28%, transparent);
}

.fc-shortcut-help-row > span {
  color: var(--fc-text-color);
  overflow-wrap: anywhere;
  word-break: normal;
}

.fc-shortcut-help-combo {
  display: inline-block;
  min-width: 0;
  width: fit-content;
  padding: 3px 7px;
  border: 1px solid var(--fc-border-color);
  background: var(--fc-surface-color);
  color: var(--fc-text-color);
  font-size: 12px;
  font-family: var(--fc-serif-font-family);
  font-weight: 700;
  white-space: nowrap;
}

.fc-shortcut-help-row.fc-shortcut-help-row--stacked .fc-shortcut-help-combo {
  width: fit-content;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

#fc-shortcut-help-panel[data-density="compact"] {
  --fc-shortcut-gap: 9px;
  --fc-shortcut-row-gap: 4px;
  --fc-shortcut-section-padding-y: 8px;
  --fc-shortcut-section-padding-x: 9px;
  --fc-shortcut-title-size: 18px;
}

#fc-shortcut-help-panel[data-density="compact"] .fc-shortcut-help-row {
  font-size: 12px;
  line-height: 1.32;
}

#fc-shortcut-help-panel[data-density="compact"] .fc-shortcut-help-row.fc-shortcut-help-row--stacked {
  gap: 4px;
}

#fc-shortcut-help-panel[data-density="compact"] .fc-shortcut-help-combo {
  font-size: 11px;
  padding: 2px 6px;
}

#fc-shortcut-help-legend {
  flex: 0 0 auto;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid color-mix(in srgb, var(--fc-border-color) 38%, transparent);
}

#fc-shortcut-help-legend h3 {
  margin: 0 0 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--fc-text-muted);
}

#fc-shortcut-help-legend-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  align-content: flex-start;
  gap: 8px;
  overflow: visible;
  padding-bottom: 0;
}

.fc-shortcut-help-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  min-height: 0;
  font-size: 10px;
  line-height: 1.28;
  color: var(--fc-text-color);
}

.fc-shortcut-help-legend-item span {
  white-space: normal;
  overflow-wrap: anywhere;
}

.fc-shortcut-help-legend-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  width: fit-content;
  padding: 1px 4px;
  border: 1px solid var(--fc-border-color);
  background: var(--fc-surface-color);
  color: var(--fc-text-color);
  font-size: 9px;
  font-family: var(--fc-serif-font-family);
  font-weight: 700;
  line-height: 1.1;
}

#fc-shortcut-help-panel[data-density="compact"] #fc-shortcut-help-legend {
  margin-top: 8px;
  padding-top: 6px;
}

#fc-shortcut-help-panel[data-density="compact"] #fc-shortcut-help-legend h3 {
  margin-bottom: 6px;
  font-size: 11px;
}

#fc-shortcut-help-panel[data-density="compact"] #fc-shortcut-help-legend-grid {
  gap: 6px;
}

#fc-shortcut-help-panel[data-density="compact"] .fc-shortcut-help-legend-item {
  font-size: 9px;
  gap: 5px;
}

#fc-shortcut-help-panel[data-density="compact"] .fc-shortcut-help-legend-glyph {
  min-width: 0;
  font-size: 8px;
  padding: 1px 3px;
}

@media (max-width: 640px) {
  #fc-shortcut-help-panel {
    padding: 10px;
  }

  #fc-shortcut-help-body {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .fc-shortcut-help-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  #fc-shortcut-help-legend-grid {
    gap: 6px;
  }

  .fc-shortcut-help-legend-item {
    min-height: 0;
  }

  .fc-shortcut-help-legend-item span {
    white-space: normal;
    overflow-wrap: anywhere;
  }

}

#fc-dialog-backdrop {
  position: fixed;
  inset: 0;
  background: var(--fc-overlay-bg);
  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: var(--fc-serif-font-family);
  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-summary-line {
  display: block;
}

.fc-dialog-preview-summary-line + .fc-dialog-preview-summary-line {
  margin-top: 3px;
}

#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: var(--fc-serif-font-family);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 7px;
  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-name-hint {
  margin: 6px 0 0;
  font-size: 11px;
  color: #666;
  line-height: 1.35;
}

#fc-dialog-name-hint.is-error {
  color: #8b1a1a;
  opacity: 1;
}

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

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

#fc-dialog-option-primary-field-slot,
#fc-dialog-option-secondary-field-slot {
  width: 100%;
}

#fc-dialog-option-primary-field-slot[hidden],
#fc-dialog-option-secondary-field-slot[hidden] {
  display: none !important;
}

#fc-dialog-secondary-hint {
  margin: 6px 0 0;
  font-size: 11px;
  color: #666;
  line-height: 1.35;
}

#fc-dialog-secondary-hint.is-error {
  color: #8b1a1a;
  opacity: 1;
}

#fc-dialog-secondary-hint.is-success {
  color: #1d5e2d;
  opacity: 1;
}

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

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

.fc-dialog-bulk-edit-controls {
  display: grid;
  gap: 10px;
}

.fc-dialog-bulk-edit-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.fc-dialog-bulk-edit-group textarea {
  min-height: 72px;
  resize: vertical;
}

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

.fc-dialog-field-label-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

#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: var(--fc-serif-font-family);
  font-size: 14px;
  padding: 8px 10px;
  margin: 0;
}

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

#fc-dialog[data-variant="file-contents"] {
  width: min(760px, calc(100vw - 32px));
}

#fc-dialog-title.fc-file-content-title {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.fc-file-content-title-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
}

.fc-file-content-title-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#fc-dialog[data-variant="file-contents"] #fc-dialog-preview {
  margin-top: 14px;
  border: 0;
  background: transparent;
  padding: 0;
}

#fc-dialog[data-variant="file-contents"] #fc-dialog-preview-list {
  margin-top: 0;
  border: 0;
  background: transparent;
  padding: 0;
  max-height: none;
  overflow: visible;
  display: block;
}

#fc-dialog[data-variant="file-contents"] #fc-dialog-preview-meta {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  flex-wrap: wrap;
  font-size: 11px;
  line-height: 1.35;
}

.fc-file-content-meta-item {
  display: inline-flex;
  align-items: center;
}

.fc-file-content-meta-item + .fc-file-content-meta-item::before {
  content: "·";
  padding: 0 7px;
  color: var(--fc-text-muted);
}

.fc-file-content-editor {
  width: 100%;
}

.fc-file-content-name-field {
  margin-bottom: 12px;
}

.fc-file-content-name-input {
  width: 100%;
  box-sizing: border-box;
  border: 2px solid var(--fc-border-color);
  background: var(--fc-surface-color);
  color: var(--fc-text-color);
  font-family: var(--fc-serif-font-family);
  font-size: 14px;
  padding: 8px 10px;
  margin: 0;
}

.fc-file-content-name-hint {
  margin: 6px 0 0;
  font-size: 11px;
  color: #8b1a1a;
  line-height: 1.35;
}

.fc-file-content-name-hint[hidden] {
  display: none !important;
}

.fc-file-content-textarea,
.fc-file-content-viewer {
  width: 100%;
  min-height: min(48vh, 420px);
  box-sizing: border-box;
  border: 2px solid var(--fc-border-color);
  background: var(--fc-surface-color);
  color: var(--fc-text-color);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 1.45;
  padding: 10px 12px;
}

.fc-file-content-textarea {
  resize: vertical;
}

.fc-file-content-viewer {
  margin: 0;
  max-height: min(48vh, 420px);
  overflow: auto;
  resize: none;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  user-select: text;
}

.fc-file-content-textarea:focus-visible,
.fc-file-content-viewer:focus-visible {
  outline: 2px solid var(--fc-border-color);
  outline-offset: 2px;
}

.fc-dialog-option-row {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fc-dialog-option-row[hidden],
.fc-dialog-option-label[hidden],
#fc-dialog-option-checkbox[hidden],
#fc-dialog-option-checkbox-2[hidden],
#fc-dialog-option-text[hidden],
#fc-dialog-option-text-2[hidden] {
  display: none !important;
}

.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-help {
  margin: -3px 0 0 22px;
  font-size: 11px;
  line-height: 1.35;
  color: #555;
}

.fc-dialog-option-help[hidden] {
  display: none !important;
}

.fc-dialog-option-field-slot {
  padding-left: 22px;
}

#fc-dialog-option-primary-field-slot {
  padding-left: 0;
}

.fc-dialog-option-field-slot > #fc-dialog-secondary-group,
.fc-dialog-option-field-slot > #fc-dialog-address-group {
  width: 100%;
}

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

#fc-dialog-option-label.disabled + .fc-dialog-option-help,
#fc-dialog-option-label-2.disabled + .fc-dialog-option-help {
  color: #666;
}

#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: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: var(--fc-serif-font-family);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
  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-dialog[data-variant="audit-details"] {
  width: min(760px, 100%);
}

#fc-dialog[data-variant="audit-details"] #fc-dialog-subtitle {
  margin-bottom: 8px;
  font-size: 13px;
  color: #303030;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

#fc-dialog[data-variant="audit-details"] #fc-dialog-preview {
  padding: 10px;
  background: #f6f6f6;
}

#fc-dialog[data-variant="audit-details"] #fc-dialog-preview-summary {
  font-size: 12px;
  line-height: 1.42;
  white-space: normal;
}

#fc-dialog[data-variant="audit-details"] #fc-dialog-preview-list {
  margin-top: 10px;
  padding: 8px;
  max-height: min(320px, 42vh);
}

#fc-dialog[data-variant="audit-details"] .fc-dialog-preview-block {
  font-size: 12px;
  line-height: 1.42;
}

#fc-dialog[data-variant="audit-details"] #fc-dialog-preview-meta {
  margin-top: 8px;
  font-size: 12px;
  color: #444;
}

#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: var(--fc-serif-font-family);
  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;
}

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

#fc-auth-subtitle-action-btn {
  border: none;
  background: transparent;
  color: inherit;
  font-family: var(--fc-serif-font-family);
  font-size: inherit;
  font-style: normal;
  font-weight: 400;
  display: inline-grid;
  grid-template-areas: "label";
  align-items: baseline;
  padding: 0;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  cursor: pointer;
}

#fc-auth-subtitle-action-btn .fc-auth-link-label,
#fc-auth-mode-toggle-btn .fc-auth-link-label,
#fc-auth-subtitle-action-btn::before,
#fc-auth-subtitle-action-btn::after,
#fc-auth-mode-toggle-btn::before,
#fc-auth-mode-toggle-btn::after {
  grid-area: label;
  white-space: pre;
}

#fc-auth-subtitle-action-btn::before,
#fc-auth-subtitle-action-btn::after,
#fc-auth-mode-toggle-btn::before,
#fc-auth-mode-toggle-btn::after {
  content: attr(data-fc-link-label);
  visibility: hidden;
  pointer-events: none;
  user-select: none;
}

#fc-auth-subtitle-action-btn::before,
#fc-auth-mode-toggle-btn::before {
  font-style: normal;
}

#fc-auth-subtitle-action-btn::after,
#fc-auth-mode-toggle-btn::after {
  font-style: italic;
}

#fc-auth-subtitle-action-btn:hover {
  color: black;
  font-style: italic;
  text-decoration-thickness: 2px;
}

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

#fc-auth-mode-toggle-row {
  margin: -2px 0 10px;
  font-size: 12px;
  color: #444;
}

#fc-auth-mode-toggle-row[hidden] {
  display: none !important;
}

#fc-auth-mode-toggle-prefix {
  margin-right: 4px;
}

#fc-auth-mode-toggle-btn {
  border: none;
  background: transparent;
  color: #444;
  font-family: var(--fc-serif-font-family);
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  display: inline-grid;
  grid-template-areas: "label";
  align-items: baseline;
  padding: 0;
  margin: 0;
  text-align: left;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  cursor: pointer;
}

#fc-auth-mode-toggle-btn:hover {
  color: black;
  font-style: italic;
  text-decoration-thickness: 2px;
}

#fc-auth-mode-toggle-btn[hidden] {
  display: none !important;
}

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

.fc-auth-form[hidden] {
  display: none !important;
}

.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-field-help {
  margin: 5px 0 0;
  color: #444;
  font-size: 12px;
  line-height: 1.35;
}

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

.fc-auth-input {
  --fc-credential-input-bg: #fff;
  --fc-credential-input-fg: black;
  --fc-credential-input-border: black;
  width: 100%;
  box-sizing: border-box;
  border: 2px solid var(--fc-credential-input-border);
  background: var(--fc-credential-input-bg);
  color: var(--fc-credential-input-fg);
  font-family: var(--fc-serif-font-family);
  font-size: 14px;
  padding: 8px 10px;
  margin: 0;
}

.fc-auth-input:-webkit-autofill,
.fc-auth-input:-webkit-autofill:hover,
.fc-auth-input:-webkit-autofill:focus,
#fc-password-username:-webkit-autofill,
#fc-password-username:-webkit-autofill:hover,
#fc-password-username:-webkit-autofill:focus,
#fc-password-current:-webkit-autofill,
#fc-password-current:-webkit-autofill:hover,
#fc-password-current:-webkit-autofill:focus,
#fc-password-new:-webkit-autofill,
#fc-password-new:-webkit-autofill:hover,
#fc-password-new:-webkit-autofill:focus,
#fc-password-confirm:-webkit-autofill,
#fc-password-confirm:-webkit-autofill:hover,
#fc-password-confirm:-webkit-autofill:focus {
  border-color: var(--fc-credential-input-border);
  -webkit-text-fill-color: var(--fc-credential-input-fg);
  caret-color: var(--fc-credential-input-fg);
  box-shadow: 0 0 0 1000px var(--fc-credential-input-bg) inset;
  transition: background-color 9999s ease-out 0s;
}

.fc-auth-input[readonly] {
  background: #f4f4f4;
  color: #222;
  -webkit-text-fill-color: #222;
  opacity: 1;
  -webkit-appearance: none;
  appearance: none;
}

.fc-password-visibility-row {
  display: flex;
  justify-content: flex-end;
  margin-top: -4px;
}

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

.fc-password-visibility-toggle {
  border: none;
  background: transparent;
  color: #444;
  font-family: var(--fc-serif-font-family);
  font-size: 12px;
  font-weight: 400;
  padding: 0;
  text-align: right;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  cursor: pointer;
}

.fc-password-visibility-toggle:hover {
  color: black;
  font-style: italic;
  text-decoration-thickness: 2px;
}

.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: var(--fc-serif-font-family);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
  cursor: pointer;
}

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

#fc-password-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  width: 100svw;
  height: 100svh;
  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%);
  max-height: calc(100vh - 32px);
  max-height: calc(100svh - 32px);
  overflow: auto;
  box-sizing: border-box;
  background: #fff;
  border: 2px solid black;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  padding: 14px;
  font-family: var(--fc-serif-font-family);
  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-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 {
  --fc-credential-input-bg: #fff;
  --fc-credential-input-fg: black;
  --fc-credential-input-border: black;
  width: 100%;
  box-sizing: border-box;
  border: 2px solid var(--fc-credential-input-border);
  background: var(--fc-credential-input-bg);
  color: var(--fc-credential-input-fg);
  font-family: var(--fc-serif-font-family);
  font-size: 14px;
  padding: 8px 10px;
  margin: 0;
}

#fc-password-username[readonly] {
  background: #f4f4f4;
  color: #222;
  -webkit-text-fill-color: #222;
  opacity: 1;
  -webkit-appearance: none;
  appearance: none;
}

#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: var(--fc-serif-font-family);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
  cursor: pointer;
}

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

#fc-account-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  width: 100svw;
  height: 100svh;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.2);
  z-index: 1550;
  display: block;
  overflow: hidden;
  padding: 16px;
}

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

#fc-account-panel {
  --fc-settings-space-1: var(--fc-space-1);
  --fc-settings-space-2: var(--fc-space-2);
  --fc-settings-space-3: var(--fc-space-3);
  --fc-settings-space-4: var(--fc-space-4);
  --fc-settings-radius: var(--fc-radius-sm);
  --fc-settings-radius-lg: var(--fc-radius-md);
  --fc-settings-border: var(--fc-border-color);
  --fc-settings-border-strong: var(--fc-border-color);
  --fc-settings-surface: var(--fc-surface-subtle);
  --fc-settings-surface-strong: var(--fc-surface-color);
  --fc-settings-surface-accent: var(--fc-active-bg);
  --fc-settings-text: var(--fc-text-color);
  --fc-settings-muted: var(--fc-text-muted);
  --fc-settings-accent: var(--fc-text-color);
  --fc-settings-accent-strong: var(--fc-text-color);
  --fc-settings-danger-border: var(--fc-danger-color);
  --fc-settings-danger-surface: var(--fc-danger-soft-bg);
  --fc-settings-danger-strong: var(--fc-danger-color);
  width: min(620px, 100%);
  max-height: calc(100% - 32px);
  overflow: auto;
  margin: 0 auto;
  box-sizing: border-box;
  background: var(--fc-settings-surface-strong);
  border: var(--fc-border-width-strong) solid var(--fc-settings-border-strong);
  border-radius: var(--fc-settings-radius-lg);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
  padding: 14px;
  font-family: var(--fc-serif-font-family);
  color: var(--fc-settings-text);
  font-size: 14px;
  line-height: 1.35;
}

#fc-account-panel:focus-visible {
  outline: none;
}

.fc-account-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--fc-settings-space-2);
  margin-bottom: var(--fc-settings-space-3);
}

.fc-account-header-copy {
  display: grid;
  gap: var(--fc-settings-space-1);
}

#fc-account-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 700;
  text-align: left;
}

#fc-account-close-btn {
  font-size: 18px;
  line-height: 1;
}

.fc-account-shell {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: var(--fc-settings-space-3);
  align-items: start;
}

.fc-account-tablist {
  display: grid;
  gap: var(--fc-settings-space-1);
  align-content: start;
}

.fc-account-tablist .fc-account-tab {
  width: 100%;
  min-height: var(--fc-control-height);
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  padding: 0 11px;
  border: var(--fc-border-width-strong) solid var(--fc-settings-border);
  border-radius: var(--fc-settings-radius);
  background: var(--fc-settings-surface-strong);
  color: var(--fc-settings-muted);
  font-family: var(--fc-serif-font-family);
  font-size: 12px;
  line-height: 1.3;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.fc-account-tablist .fc-account-tab:hover {
  background: #dcdcdc;
  color: var(--fc-settings-text);
}

.fc-account-tablist .fc-account-tab[aria-selected="true"] {
  background: var(--fc-settings-surface-accent);
  border-color: var(--fc-settings-border-strong);
  color: var(--fc-settings-accent-strong);
}

.fc-account-tablist .fc-account-tab[aria-selected="true"]:hover,
.fc-account-tablist .fc-account-tab[aria-selected="true"]:active {
  background: var(--fc-settings-surface-accent);
}

.fc-account-content {
  display: grid;
  min-width: 0;
}

.fc-account-section {
  display: grid;
  gap: 0;
}

.fc-account-tabpanel[hidden],
.fc-account-empty-state[hidden],
.fc-account-setting-row[hidden],
#fc-account-auth-section[hidden],
#fc-account-color-row[hidden],
.fc-account-subsection[hidden] {
  display: none !important;
}

.fc-account-subsection {
  display: grid;
  gap: 0;
  margin-top: 0;
}

#fc-account-auth-section {
  display: grid;
  gap: 0;
}

.fc-account-section-head {
  display: grid;
  gap: var(--fc-settings-space-1);
}

.fc-account-section-head h3,
.fc-account-section-head h4 {
  margin: 0;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 700;
}

.fc-account-section-head p {
  margin: 0;
  max-width: 54ch;
  font-size: 12px;
  line-height: 1.3;
  color: var(--fc-settings-muted);
}

:is(
  .fc-account-setting-row,
  .fc-account-empty-state
) {
  margin: 0;
  border: var(--fc-border-width-strong) solid var(--fc-settings-border);
  border-radius: var(--fc-settings-radius);
  background: var(--fc-settings-surface-strong);
  padding: 12px;
  box-sizing: border-box;
}

.fc-account-setting-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--fc-settings-space-2);
}

.fc-account-setting-main {
  min-width: 0;
  flex: 1 1 auto;
}

.fc-account-setting-title {
  display: block;
  margin: 0;
  font-size: 13px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--fc-settings-text);
}

.fc-account-setting-value {
  margin: 0;
  font-size: 13px;
  line-height: 1.3;
  font-weight: 500;
  color: var(--fc-settings-text);
}

.fc-account-note {
  max-width: 54ch;
  margin: 0;
  font-size: 12px;
  line-height: 1.3;
  color: var(--fc-settings-muted);
}

.fc-account-setting-row > button,
.fc-account-setting-row > .fc-account-shortcut-help-controls,
.fc-account-setting-row > .fc-account-color-controls,
.fc-account-setting-row > .fc-account-setting-checkbox,
.fc-account-empty-state button {
  flex: 0 0 auto;
  align-self: center;
}

.fc-account-shortcut-help-controls,
.fc-account-color-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--fc-settings-space-2);
  flex-wrap: wrap;
}

.fc-account-setting-checkbox {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--fc-settings-accent);
}

#fc-account-color-input {
  width: 40px;
  min-width: 40px;
  height: 40px;
  border: 2px solid var(--fc-settings-border-strong);
  border-radius: 0;
  padding: 0;
  background: var(--fc-settings-surface-strong);
  cursor: pointer;
  box-sizing: border-box;
  overflow: hidden;
  -webkit-appearance: none;
  appearance: none;
}

#fc-account-color-input::-webkit-color-swatch-wrapper {
  padding: 0;
  border-radius: 0;
}

#fc-account-color-input::-webkit-color-swatch {
  border: 0;
  border-radius: 0;
}

#fc-account-color-input::-moz-color-swatch {
  border: 0;
  border-radius: 0;
}

#fc-account-color-input:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

#fc-account-color-swatch {
  display: none;
}

.fc-account-control-input,
#fc-account-shortcut-help-threshold {
  box-sizing: border-box;
  min-height: var(--fc-control-height);
  border: var(--fc-border-width-strong) solid var(--fc-settings-border-strong);
  border-radius: var(--fc-settings-radius);
  background: var(--fc-settings-surface-strong);
  color: var(--fc-settings-text);
  font-family: var(--fc-serif-font-family);
  font-size: 13px;
  line-height: 1.35;
  padding: 0 10px;
}

#fc-account-shortcut-help-threshold {
  width: 84px;
  min-width: 84px;
}

#fc-account-color-hex-input {
  width: 96px;
  min-width: 96px;
  text-transform: uppercase;
}

.fc-account-empty-state {
  display: grid;
  gap: var(--fc-settings-space-2);
  padding: var(--fc-settings-space-2);
}

.fc-account-empty-state h4,
.fc-account-empty-state p {
  margin: 0;
}

.fc-account-empty-state h4 {
  font-size: 14px;
  line-height: 1.3;
  color: var(--fc-settings-text);
}

.fc-account-empty-state p {
  max-width: 54ch;
  font-size: 12px;
  line-height: 1.3;
  color: var(--fc-settings-muted);
}

#fc-account-sign-in-btn {
  justify-self: start;
}

.fc-account-danger-zone {
  display: grid;
  gap: 0;
}

.fc-account-advanced {
  margin: 0;
}

.fc-account-advanced-summary {
  box-sizing: border-box;
  margin: 0;
  border: var(--fc-border-width-strong) solid var(--fc-settings-border);
  border-radius: 0;
  background: var(--fc-settings-surface-strong);
  color: var(--fc-settings-text);
  padding: 12px;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.fc-account-advanced-summary:hover {
  background: var(--fc-hover-bg);
}

.fc-account-advanced[open] > .fc-account-advanced-summary {
  background: var(--fc-settings-surface);
}

.fc-account-advanced-summary:active,
.fc-account-advanced[open] > .fc-account-advanced-summary:active {
  background: var(--fc-pressed-bg);
}

.fc-account-advanced-summary:focus-visible {
  outline: var(--fc-focus-ring-width) solid var(--fc-focus-ring-color);
  outline-offset: calc(-1 * var(--fc-focus-ring-offset));
}

.fc-account-advanced-summary::marker {
  color: var(--fc-settings-muted);
}

.fc-account-advanced-copy {
  display: inline-grid;
  max-width: calc(100% - 1.5em);
  vertical-align: top;
}

.fc-account-advanced[open] > .fc-account-danger-zone {
  margin-top: -2px;
}

:is(
  .fc-account-section,
  .fc-account-subsection,
  #fc-account-auth-section,
  .fc-account-danger-zone
) > :is(
  .fc-account-setting-row,
  .fc-account-empty-state
) {
  border-radius: 0;
}

:is(
  .fc-account-section,
  .fc-account-subsection,
  #fc-account-auth-section,
  .fc-account-danger-zone
) > :is(
  .fc-account-setting-row,
  .fc-account-empty-state
) + :is(
  .fc-account-setting-row,
  .fc-account-empty-state
) {
  margin-top: -2px;
}

.fc-account-section > :is(
  #fc-account-auth-section,
  .fc-account-subsection
) + :is(
  #fc-account-auth-section,
  .fc-account-subsection
) {
  margin-top: -2px;
}

:where(#fc-account-panel) button {
  min-height: var(--fc-control-height);
  border: var(--fc-border-width-strong) solid var(--fc-settings-border-strong);
  border-radius: var(--fc-settings-radius);
  background: var(--fc-settings-surface-strong);
  color: var(--fc-settings-text);
  font-family: var(--fc-serif-font-family);
  font-size: 12px;
  line-height: 1.3;
  font-weight: 700;
  padding: 0 11px;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

:where(#fc-account-panel) button:hover {
  background: #dcdcdc;
}

:where(#fc-account-panel) button:active {
  background: #cfcfcf;
}

:where(#fc-account-panel) button:disabled,
:where(#fc-account-panel) button.fc-button-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

:where(#fc-account-panel) button.fc-button-disabled:hover,
:where(#fc-account-panel) button.fc-button-disabled:active,
:where(#fc-account-panel) button:disabled:hover {
  background: var(--fc-settings-surface-strong);
}

.fc-account-button-primary {
  background: #dfeaf7;
  border-color: var(--fc-settings-border-strong);
  color: var(--fc-settings-accent-strong);
}

.fc-account-button-primary:hover,
.fc-account-button-primary:active {
  background: #ccdced;
  color: var(--fc-settings-accent-strong);
}

.fc-account-button-secondary {
  background: var(--fc-settings-surface-strong);
}

.fc-account-button-danger {
  background: var(--fc-settings-danger-surface);
  border-color: var(--fc-settings-danger-border);
  color: var(--fc-settings-danger-strong);
}

.fc-account-button-danger:hover,
.fc-account-button-danger:active {
  background: #f2dede;
  color: var(--fc-settings-danger-strong);
}

.fc-account-icon-button {
  width: 40px;
  min-width: 40px;
  padding: 0;
  justify-content: center;
}

#fc-account-status {
  font-size: 12px;
  line-height: 1.4;
  color: var(--fc-settings-muted);
}

#fc-account-status:empty {
  display: none;
}

#fc-account-status:not(:empty) {
  margin-top: var(--fc-settings-space-2);
}

#fc-account-status.error {
  color: var(--fc-settings-danger-strong);
}

#fc-account-status.success {
  color: var(--fc-success-color);
}

#fc-account-delete-account-btn,
.fc-account-button-danger {
  background: var(--fc-settings-danger-surface);
  border-color: var(--fc-settings-danger-border);
  color: var(--fc-settings-danger-strong);
}

#fc-account-delete-account-btn:hover,
#fc-account-delete-account-btn:active,
.fc-account-button-danger:hover,
.fc-account-button-danger:active {
  background: color-mix(in srgb, var(--fc-settings-danger-surface) 88%, var(--fc-settings-surface-strong));
  color: var(--fc-settings-danger-strong);
}

#fc-account-delete-account-btn:disabled,
#fc-account-delete-account-btn.fc-button-disabled,
.fc-account-button-danger:disabled,
.fc-account-button-danger.fc-button-disabled {
  opacity: 1;
  background: color-mix(in srgb, var(--fc-settings-danger-surface) 88%, var(--fc-settings-surface-strong));
  border-color: var(--fc-settings-danger-border);
  color: var(--fc-settings-danger-strong);
}

@media (max-width: 680px) {
  #fc-account-panel {
    width: min(520px, 100%);
    padding: var(--fc-settings-space-2);
  }

  .fc-account-shell {
    grid-template-columns: 1fr;
    gap: var(--fc-settings-space-2);
  }

  .fc-account-tablist {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fc-account-tablist .fc-account-tab {
    justify-content: center;
    text-align: center;
  }

  .fc-account-setting-row {
    flex-direction: column;
  }

  .fc-account-setting-row > button,
  .fc-account-setting-row > .fc-account-shortcut-help-controls,
  .fc-account-setting-row > .fc-account-color-controls,
  .fc-account-setting-row > .fc-account-setting-checkbox,
  .fc-account-empty-state button {
    align-self: start;
  }

  .fc-account-color-controls {
    align-items: stretch;
  }

}


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

/* Explorer context menu */
.fc-explorer-context-menu {
  position: fixed;
  z-index: 2050;
  width: max-content;
  min-width: 188px;
  max-width: min(264px, calc(100vw - 16px));
  max-height: calc(100vh - 16px);
  border: 2px solid var(--fc-border-color);
  background: var(--fc-surface-color);
  box-shadow: 3px 3px 0 color-mix(in srgb, var(--fc-border-color) 24%, transparent);
  padding: 5px 5px 6px;
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: auto;
  color: var(--fc-text-color);
  font-family: var(--fc-serif-font-family);
  font-size: 12px;
}

.fc-explorer-context-menu-target {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  margin: -5px -5px 4px;
  padding: 6px 12px;
  border-bottom: 1px solid var(--fc-border-color);
  background: color-mix(in srgb, var(--fc-surface-subtle) 90%, var(--fc-surface-color));
  color: var(--fc-text-color);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.fc-explorer-context-menu-target-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: color-mix(in srgb, var(--fc-text-color) 76%, var(--fc-surface-color));
}

.fc-explorer-context-menu-target-icon-svg {
  display: block;
  width: 16px;
  height: 16px;
}

.fc-explorer-context-menu-target-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fc-explorer-context-menu-target-label:only-child {
  grid-column: 1 / -1;
}

.fc-explorer-context-menu-section + .fc-explorer-context-menu-section {
  margin-top: 3px;
  padding-top: 0;
}

.fc-explorer-context-menu-section + .fc-explorer-context-menu-section::before {
  content: "";
  display: block;
  height: 1px;
  margin: 3px 7px;
  border-top: 1px solid var(--fc-border-color);
}

.fc-explorer-context-menu-section-title {
  margin: 0;
  padding: 0;
}

.fc-explorer-context-menu-list {
  display: grid;
  gap: 1px;
}

.fc-explorer-context-menu-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 4px;
}

.fc-explorer-context-menu-item {
  display: grid;
  grid-template-columns: 18px minmax(0, max-content) auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  border: 1px solid transparent;
  background: var(--fc-surface-color);
  color: var(--fc-text-color);
  text-align: left;
  font: inherit;
  line-height: 1.25;
  padding: 3px 7px;
  cursor: pointer;
}

.fc-explorer-context-menu-pin {
  border: 1px solid transparent;
  background: var(--fc-surface-color);
  color: var(--fc-text-muted);
  font: inherit;
  line-height: 1.25;
  padding: 3px 7px;
  cursor: pointer;
  min-width: 52px;
}

.fc-explorer-context-menu-item-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: currentColor;
}

.fc-explorer-context-menu-icon {
  display: block;
  width: 16px;
  height: 16px;
}

.fc-explorer-context-menu-item-label {
  min-width: 0;
}

.fc-explorer-context-menu-item-shortcut {
  justify-self: end;
  white-space: nowrap;
  color: var(--fc-text-muted);
  font-size: 11px;
  letter-spacing: 0.01em;
}

.fc-explorer-context-menu-item:hover {
  background: var(--fc-hover-bg);
  border-color: color-mix(in srgb, var(--fc-border-color) 70%, var(--fc-surface-color));
}

.fc-explorer-context-menu-pin:hover {
  background: var(--fc-hover-bg);
  border-color: color-mix(in srgb, var(--fc-border-color) 70%, var(--fc-surface-color));
  color: var(--fc-text-color);
}

.fc-explorer-context-menu-item.fc-explorer-context-menu-item-disabled,
.fc-explorer-context-menu-item:disabled {
  opacity: 0.72;
  color: var(--fc-text-muted);
  cursor: not-allowed;
  background: var(--fc-surface-color);
  border-color: transparent;
}

.fc-explorer-context-menu-item.fc-explorer-context-menu-item-disabled:hover,
.fc-explorer-context-menu-item:disabled:hover {
  background: var(--fc-surface-color);
  border-color: transparent;
}

.fc-explorer-context-menu-pin[aria-pressed="true"] {
  color: var(--fc-text-color);
  border-color: color-mix(in srgb, var(--fc-border-color) 60%, var(--fc-surface-color));
  background: color-mix(in srgb, var(--fc-surface-subtle) 88%, var(--fc-surface-color));
}

/* Copy feedback bubble */
.copy-fly {
  position: fixed;
  z-index: 2100;
  box-sizing: border-box;
  /* Safari can resolve vw-based max-width to 0 for this fixed bubble; use % instead. */
  max-width: min(420px, calc(100% - 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: var(--fc-serif-font-family);
  font-weight: 700;
  line-height: 1.3;
  white-space: normal;
  word-break: break-word;
  opacity: 0;
  transform: translateY(4px);
  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(0);
}
.copy-fly.hide {
  opacity: 0;
  transform: translateY(0);
}
@media (max-width: 768px) {
  .wrapper {
    max-width: 100%;
    padding: 0 12px;
    box-sizing: border-box;
  }

  .fc-shell-posts {
    margin-right: -12px;
    margin-left: -12px;
  }

  .title h1 {
    font-size: clamp(56px, 18vw, 72px);
    line-height: 0.95;
    margin-bottom: 16px;
    overflow-wrap: anywhere;
  }

  .pageDescription {
    padding-right: 4%;
    padding-left: 4%;
  }

  .pageDescription p {
    font-size: clamp(20px, 5.2vw, 28px);
    line-height: 1.35;
  }

  #fc-dialog {
    padding: 12px;
  }

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

  .fc-auth-form {
    min-width: 0;
  }

  .fc-auth-input,
  .fc-auth-actions {
    max-width: 100%;
  }

  #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-option-field-slot {
    padding-left: 0;
  }

  #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;
  }


}

/* 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: relative;
  width: auto;
  min-width: 0;
  box-sizing: border-box;
  border: 0;
  background: var(--fc-map-surface);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  contain: paint;
  box-shadow: none;
  z-index: 8;
  pointer-events: auto;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

#map-panel.collapsed {
  display: none;
  width: auto;
  border-width: 0;
  opacity: 0;
  border-color: transparent;
  pointer-events: none;
}

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

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

#map-panel-close-btn {
  display: none;
}

#map-container {
  flex: 1;
  min-height: 0;
  padding: 2px;
  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: 6px 8px 8px;
  background: var(--fc-map-surface);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  gap: 4px;
  max-height: 152px;
  overflow: hidden;
}

#map-nearby-title {
  margin: 0;
  flex-shrink: 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;
  flex-shrink: 0;
  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: normal;
  overflow-wrap: anywhere;
  min-width: 0;
}

#map-nearby-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1 1 auto;
  min-height: calc((14px * 4) + (3px * 3));
  overflow-y: auto;
  overflow-x: hidden;
}

#map-nearby-list li {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  align-items: flex-start;
  min-width: 0;
  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;
  flex: 1 1 auto;
  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: normal;
  overflow-wrap: anywhere;
}

#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: inherit;
}

#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 (prefers-color-scheme: dark) {
  :root {
    --fc-canvas-bg: #1b1e24;
    --fc-text-color: #f3f5f8;
    --fc-text-muted: #c1c9d4;
    --fc-border-color: #8f99a8;
    --fc-surface-color: #272c34;
    --fc-surface-subtle: #303640;
    --fc-surface-muted: #39414d;
    --fc-hover-bg: #3a4350;
    --fc-pressed-bg: #475261;
    --fc-active-bg: #516078;
    --fc-cursor-indicator: #8c95a3;
    --fc-focus-ring-color: #d7dee9;
    --fc-overlay-bg: rgba(0, 0, 0, 0.48);
    --fc-overlay-strong-bg: rgba(0, 0, 0, 0.64);
    --fc-danger-color: #ffb3b3;
    --fc-danger-soft-bg: #6b3434;
    --fc-success-color: #ace1b9;
    --fc-breadcrumb-valid-border: #8fd4a2;
    --fc-breadcrumb-valid-bg: #314639;
    --fc-breadcrumb-invalid-border: #ffb3b3;
    --fc-breadcrumb-invalid-bg: #57333a;
    --fc-map-surface: #2f343d;
    --fc-map-background: transparent;
    --fc-map-grid-minor: #4c5563;
    --fc-map-grid-major: #647183;
    --fc-map-label: #e5ebf3;
    --fc-map-landmark: #62d3c5;
    --fc-map-landmark-stroke: #171c24;
    --fc-map-user-stroke: #e2e8f0;
    --fc-map-cluster: #c9d3e1;
    --fc-map-current: #7fb3ff;
    --fc-map-chip-bg: rgba(16, 20, 27, 0.92);
    --fc-map-chip-stroke: #73839a;
    --fc-map-tooltip-bg: rgba(6, 10, 16, 0.96);
    --fc-map-tooltip-text: #f8fafc;
  }

  .fc-account-tablist .fc-account-tab[aria-selected="true"] {
    background: var(--fc-surface-color);
    color: var(--fc-text-color);
  }

  #auth-toggle-btn {
    background: var(--fc-surface-color);
    color: var(--fc-text-color);
    border-color: var(--fc-border-color);
  }

  .fc-account-tablist .fc-account-tab:not([aria-selected="true"]) {
    background: var(--fc-surface-subtle);
  }

  #auth-toggle-btn:hover {
    background: var(--fc-hover-bg);
  }

  #auth-toggle-btn:active {
    background: var(--fc-pressed-bg);
  }

  #auth-toggle-btn:disabled,
  #auth-toggle-btn:disabled:hover,
  #auth-toggle-btn.fc-button-disabled,
  #auth-toggle-btn.fc-button-disabled:hover,
  #auth-toggle-btn.fc-button-disabled:active {
    background: var(--fc-surface-muted);
    color: var(--fc-text-muted);
    cursor: not-allowed;
  }

  .fc-account-button-secondary {
    background: var(--fc-surface-color);
    color: var(--fc-text-color);
    border-color: var(--fc-border-color);
  }

  .fc-account-button-secondary:hover {
    background: var(--fc-hover-bg);
  }

  .fc-account-button-secondary:active {
    background: var(--fc-pressed-bg);
  }

  .fc-account-empty-state h4 {
    color: var(--fc-text-color);
  }

  #fc-dialog-preview-summary,
  .fc-dialog-preview-summary-line,
  .fc-dialog-preview-path,
  .fc-dialog-preview-block {
    color: var(--fc-text-color);
  }

  #fc-dialog {
    background: var(--fc-surface-color);
    border-color: var(--fc-border-color);
    color: var(--fc-text-color);
    box-shadow: 0 10px 34px rgba(0, 0, 0, 0.38);
  }

  #fc-dialog-close-btn,
  #fc-dialog-actions button,
  .fc-dialog-preview-more-btn {
    background: var(--fc-surface-subtle);
    border-color: var(--fc-border-color);
    color: var(--fc-text-color);
  }

  #fc-dialog-close-btn:hover,
  #fc-dialog-actions button:hover,
  .fc-dialog-preview-more-btn:hover {
    background: var(--fc-hover-bg);
  }

  #fc-dialog-subtitle,
  #fc-dialog-draft-path,
  #fc-dialog-address-street,
  #fc-dialog-name-hint,
  #fc-dialog-secondary-hint,
  #fc-dialog-preview-meta,
  .fc-dialog-option-label,
  .fc-dialog-preview-empty {
    color: var(--fc-text-muted);
  }

  #fc-dialog-preview,
  #fc-dialog-preview-list {
    background: var(--fc-surface-subtle);
    border-color: var(--fc-border-color);
  }

  #fc-dialog-address-input,
  #fc-dialog-input,
  #fc-dialog-secondary-input,
  #fc-dialog-description-input {
    background: var(--fc-surface-subtle);
    border-color: var(--fc-border-color);
    color: var(--fc-text-color);
  }

  #fc-auth-dialog,
  #fc-password-dialog {
    background: var(--fc-surface-color);
    border-color: var(--fc-border-color);
    color: var(--fc-text-color);
    box-shadow: 0 10px 34px rgba(0, 0, 0, 0.38);
  }

  #fc-auth-subtitle,
  #fc-auth-mode-toggle-row,
  #fc-auth-mode-toggle-btn,
  .fc-auth-field-help,
  .fc-password-visibility-toggle {
    color: var(--fc-text-muted);
  }

  #fc-auth-close-btn,
  .fc-auth-actions button,
  #fc-password-close-btn,
  #fc-password-actions button {
    background: var(--fc-surface-subtle);
    border-color: var(--fc-border-color);
    color: var(--fc-text-color);
  }

  #fc-auth-close-btn:hover,
  .fc-auth-actions button:hover,
  #fc-password-close-btn:hover,
  #fc-password-actions button:hover {
    background: var(--fc-hover-bg);
  }

  #fc-auth-close-btn:active,
  .fc-auth-actions button:active,
  #fc-password-close-btn:active,
  #fc-password-actions button:active {
    background: var(--fc-pressed-bg);
  }

  .fc-auth-actions button:disabled,
  .fc-auth-actions button:disabled:hover,
  .fc-auth-actions button.fc-button-disabled,
  .fc-auth-actions button.fc-button-disabled:hover,
  .fc-auth-actions button.fc-button-disabled:active,
  #fc-password-actions button:disabled,
  #fc-password-actions button:disabled:hover,
  #fc-password-actions button.fc-button-disabled,
  #fc-password-actions button.fc-button-disabled:hover,
  #fc-password-actions button.fc-button-disabled:active {
    background: var(--fc-surface-muted);
    color: var(--fc-text-muted);
    cursor: not-allowed;
  }

  .fc-auth-input,
  #fc-password-username,
  #fc-password-current,
  #fc-password-new,
  #fc-password-confirm {
    --fc-credential-input-bg: var(--fc-surface-subtle);
    --fc-credential-input-fg: var(--fc-text-color);
    --fc-credential-input-border: var(--fc-border-color);
    background: var(--fc-credential-input-bg);
    border-color: var(--fc-credential-input-border);
    color: var(--fc-credential-input-fg);
    -webkit-text-fill-color: var(--fc-credential-input-fg);
  }

  #fc-dialog-name-hint.is-error,
  #fc-dialog-secondary-hint.is-error,
  #fc-dialog-address-error {
    color: var(--fc-danger-color);
  }

  #fc-dialog-secondary-hint.is-success {
    color: var(--fc-success-color);
  }

  #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: var(--fc-surface-muted);
    color: var(--fc-text-muted);
  }

  #fc-dialog-actions #fc-dialog-save-btn.danger,
  #fc-dialog-actions #fc-dialog-delete-btn {
    background: var(--fc-danger-soft-bg);
    color: var(--fc-danger-color);
  }

  #fc-dialog-actions #fc-dialog-save-btn.danger:hover,
  #fc-dialog-actions #fc-dialog-delete-btn:hover {
    background: color-mix(in srgb, var(--fc-danger-soft-bg) 80%, var(--fc-hover-bg));
  }

  #fc-dialog-actions #fc-dialog-delete-btn.neutral {
    background: var(--fc-surface-subtle);
    color: var(--fc-text-color);
  }

  #fc-dialog[data-variant="audit-details"] #fc-dialog-preview-summary,
  #fc-dialog[data-variant="audit-details"] .fc-dialog-preview-summary-line,
  #fc-dialog[data-variant="audit-details"] .fc-dialog-preview-path,
  #fc-dialog[data-variant="audit-details"] .fc-dialog-preview-block {
    color: var(--fc-text-color);
  }

  #fc-dialog[data-variant="audit-details"] #fc-dialog-preview,
  #fc-dialog[data-variant="audit-details"] #fc-dialog-preview-list {
    background: var(--fc-surface-subtle);
  }

  #fc-dialog-option-label.disabled,
  #fc-dialog-option-label-2.disabled {
    color: var(--fc-text-muted);
  }

  .file-item.context-menu-active {
    background: var(--fc-hover-bg);
  }

  @media (hover: hover) and (pointer: fine) {
    .file-item:hover {
      background: var(--fc-hover-bg);
    }
  }

  .fc-account-tablist .fc-account-tab[aria-selected="true"]:hover {
    background: var(--fc-surface-color);
  }

  #path-controls button:active,
  #view-controls button:active,
  #footer-controls button:active {
    background: var(--fc-pressed-bg);
  }

  #map-toggle-btn.open,
  #map-toggle-btn.open:hover,
  .column.focused .column-header,
  .file-item.selected,
  .file-item.selected.selected-active,
  .file-item.active:not(.keyboard-cursor-active) {
    background: var(--fc-active-bg);
  }

  .file-item.keyboard-cursor-active {
    box-shadow: inset 3px 0 0 var(--fc-cursor-indicator);
  }

  .file-item.ancestor-selected {
    background: #737984;
    background: color-mix(in srgb, var(--fc-active-bg) 70%, var(--fc-surface-color));
  }

  .file-item.cut-pending {
    opacity: 0.58;
  }

  .file-item.cut-pending.selected,
  .file-item.cut-pending.selected.selected-active {
    opacity: 0.78;
  }

  .file-item.explorer-drag-source-selected {
    background: color-mix(in srgb, var(--fc-active-bg) 76%, var(--fc-surface-color));
  }

  .file-item.explorer-drag-source-primary {
    background: color-mix(in srgb, var(--fc-active-bg) 90%, var(--fc-surface-color));
    box-shadow: inset 0 0 0 2px var(--fc-border-color);
  }

  .file-item.explorer-drop-target-valid {
    background: color-mix(in srgb, var(--fc-success-color) 28%, var(--fc-surface-color));
    box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--fc-success-color) 72%, var(--fc-border-color));
  }

  .file-item.explorer-drop-target-invalid {
    background: color-mix(in srgb, var(--fc-danger-soft-bg) 58%, var(--fc-surface-color));
    box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--fc-danger-color) 68%, var(--fc-border-color));
  }

  .column-list.explorer-drop-target-valid {
    background: color-mix(in srgb, var(--fc-success-color) 16%, transparent);
    outline-color: color-mix(in srgb, var(--fc-success-color) 70%, var(--fc-border-color));
  }

  .column-list.explorer-drop-target-invalid {
    background: color-mix(in srgb, var(--fc-danger-soft-bg) 30%, transparent);
    outline-color: color-mix(in srgb, var(--fc-danger-color) 66%, var(--fc-border-color));
  }

  .column-list.explorer-create-target-preview {
    background: color-mix(in srgb, var(--fc-success-color) 9%, transparent);
    outline-color: color-mix(in srgb, var(--fc-success-color) 48%, var(--fc-border-color));
  }

  .file-item.explorer-drag-hover-open-pending {
    animation-name: fc-explorer-hover-open-pulse;
  }

  .fc-auth-input[readonly],
  #fc-password-username[readonly] {
    background: var(--fc-surface-subtle);
    color: var(--fc-text-color);
    border-color: var(--fc-border-color);
    -webkit-text-fill-color: var(--fc-text-color);
    opacity: 1;
    -webkit-appearance: none;
    appearance: none;
  }

  #fc-auth-subtitle-action-btn,
  #fc-auth-mode-toggle-btn,
  .fc-password-visibility-toggle {
    background: transparent;
    border-color: transparent;
    color: inherit;
    font-style: normal;
    font-weight: 400;
    text-decoration-color: currentColor;
  }

  #fc-auth-subtitle-action-btn:hover,
  #fc-auth-mode-toggle-btn:hover,
  .fc-password-visibility-toggle:hover {
    background: transparent;
    color: var(--fc-text-color);
    font-style: italic;
    text-decoration-thickness: 2px;
  }

  #fc-auth-subtitle-action-btn:active,
  #fc-auth-mode-toggle-btn:active {
    background: transparent;
    color: var(--fc-text-color);
    font-style: italic;
    text-decoration-thickness: 2px;
  }

  .fc-account-actions button.danger:disabled,
  .fc-account-actions button.danger.fc-button-disabled {
    opacity: 1;
    background: color-mix(in srgb, var(--fc-settings-danger-surface) 78%, var(--fc-settings-surface-strong));
    border-color: var(--fc-settings-danger-border);
    color: var(--fc-settings-danger-strong);
  }

  #fc-account-panel select {
    border-color: var(--fc-border-color);
  }

  #fc-dialog-option-checkbox,
  #fc-dialog-option-checkbox-2 {
    background: var(--fc-surface-color);
    border-color: var(--fc-border-color);
  }

  #fc-dialog-option-checkbox:checked,
  #fc-dialog-option-checkbox-2:checked {
    background: var(--fc-border-color);
    box-shadow: inset 0 0 0 2px var(--fc-surface-color);
  }

  #fc-dialog-backdrop,
  #fc-auth-backdrop,
  #fc-password-backdrop,
  #fc-account-backdrop {
    background: var(--fc-overlay-bg);
  }

  #info-pane .info-panel-btn:hover,
  #fc-dialog-actions #fc-dialog-delete-btn.neutral:hover {
    background: var(--fc-hover-bg);
  }

  #info-pane .info-file-header,
  #info-pane .info-table,
  #info-pane .info-panel-btn,
  #map-nearby {
    border-color: #b1b6be;
    border-color: color-mix(in srgb, var(--fc-border-color) 70%, var(--fc-surface-color));
  }

  #map-nearby-title,
  #map-current-location .map-current-location-title,
  #map-current-location .map-current-location-row,
  #map-nearby-list li,
  #map-nearby-list .map-nearby-item-hovered,
  #map-nearby-list .map-nearby-item-hovered .map-nearby-item-distance {
    color: var(--fc-text-color);
  }

  #map-nearby-list .map-nearby-item-dot {
    border-color: #7f8a98;
    border-color: color-mix(in srgb, var(--fc-map-tooltip-bg) 35%, var(--fc-map-surface));
  }

  #city-map {
    background: var(--fc-map-background);
  }

}

@media (prefers-color-scheme: dark) {
  :root {
    --fc-canvas-bg: #1b1e24;
    --fc-text-color: #f5f7fb;
    --fc-text-muted: #c4cbd7;
    --fc-border-color: #8893a3;
    --fc-surface-color: #252a32;
    --fc-surface-subtle: #2f353f;
    --fc-surface-muted: #394252;
    --fc-hover-bg: #394354;
    --fc-pressed-bg: #455266;
    --fc-active-bg: #4e6078;
    --fc-cursor-indicator: #8c95a3;
    --fc-focus-ring-color: #d7dee9;
    --fc-breadcrumb-valid-border: #8fd4a2;
    --fc-breadcrumb-valid-bg: #314639;
    --fc-breadcrumb-invalid-border: #ffb3b3;
    --fc-breadcrumb-invalid-bg: #57333a;
    --fc-map-surface: #2c323b;
  }

  body {
    background: var(--fc-canvas-bg);
    color: var(--fc-text-color);
  }

  #fc-account-panel {
    --fc-settings-border: #8a96a8;
    --fc-settings-border-strong: #b8c5d8;
    --fc-settings-surface: #2f353f;
    --fc-settings-surface-strong: #394252;
    --fc-settings-surface-accent: #455266;
    --fc-settings-text: #eef4ff;
    --fc-settings-muted: #d0d9e6;
    --fc-settings-accent: var(--fc-settings-text);
    --fc-settings-accent-strong: #f5f9ff;
    --fc-settings-danger-border: #d8a1aa;
    --fc-settings-danger-surface: #5f3941;
    --fc-settings-danger-strong: #ffe1e1;
  }

  #fc-account-sign-in-btn,
  .fc-account-button-primary {
    background: #51627c;
    border-color: #c3d2e7;
    color: #f5f9ff;
  }

  #fc-account-sign-in-btn:hover,
  #fc-account-sign-in-btn:active,
  .fc-account-button-primary:hover,
  .fc-account-button-primary:active {
    background: #5d6f8b;
    color: #f5f9ff;
  }

  #fc-shortcut-help-panel {
    background: var(--fc-surface-color);
  }

  #file-explorer {
    background: var(--fc-surface-color);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
  }

  #explorer-content,
  .column {
    background: var(--fc-surface-color);
  }

  .column-header {
    background: var(--fc-surface-muted);
    border-bottom-color: color-mix(in srgb, var(--fc-border-color) 70%, var(--fc-surface-color));
    color: var(--fc-text-color);
  }

  .file-item {
    color: var(--fc-text-color);
    border-bottom-color: rgba(183, 194, 210, 0.26);
  }

  .file-name,
  .file-icon,
  #item-count,
  #info-pane .info-file-name,
  #info-pane .info-description-value,
  #info-pane .info-content-value,
  #info-pane .info-table-value,
  #info-pane .info-section-title,
  #info-pane .info-icon,
  #map-nearby-list .map-nearby-item-label,
  #map-nearby-list .map-nearby-item-distance,
  #map-current-location .map-current-location-name {
    color: var(--fc-text-color);
  }

  .file-item.hidden-entry .file-icon,
  .file-item.hidden-entry .file-name {
    color: var(--fc-text-muted);
  }

  #info-pane {
    background: var(--fc-surface-subtle);
    color: var(--fc-text-color);
  }

  #info-pane::before {
    background: rgba(175, 186, 200, 0.3);
  }

  #info-pane .info-file-header {
    border-bottom-color: color-mix(in srgb, var(--fc-border-color) 70%, var(--fc-surface-color));
  }

  #info-pane .info-table-label,
  #info-pane .info-description-value-empty,
  #info-pane .info-content-value-empty,
  #info-pane .info-table-value-muted,
  #info-pane .info-action-note,
  .info-empty {
    color: var(--fc-text-muted);
  }

  #info-pane .info-panel-btn {
    background: var(--fc-surface-color);
    border-color: var(--fc-border-color);
    color: var(--fc-text-color);
  }

  #info-pane .info-panel-btn:active {
    background: var(--fc-pressed-bg);
  }

  #info-pane .info-panel-btn:disabled,
  #info-pane .info-panel-btn.fc-button-disabled {
    background: var(--fc-surface-muted);
    color: var(--fc-text-muted);
  }

  #path-controls button,
  #view-controls button,
  #shared-status button,
  #footer-controls button {
    background: var(--fc-surface-subtle);
  }

  #map-panel,
  #map-container,
  #map-nearby {
    background: var(--fc-map-surface);
  }

}

#footer {
  text-align: center;
  font-size: 0.5em;
  padding-top: 12px;
  color: var(--fc-text-muted);
  line-height: 1.4;
}

#footer .foldercity-footer-version {
  font-variant-numeric: tabular-nums;
  display: block;
  margin-top: 2px;
}

.error {
  color: #b91c1c !important;
}

.success {
  color: #166534 !important;
}

/* UX consistency cleanup overrides */

#file-explorer {
  overflow: visible;
}

@media (max-width: 620px) {
  .title h1 {
    font-size: 48px;
  }

}

@media (max-height: 480px) and (min-width: 680px) {
  .fc-shell-posts {
    padding-top: 0;
  }

  .title h1 {
    font-size: 48px;
    margin-bottom: 6px;
  }

  #file-explorer[data-fc-column-capacity] {
    --fc-shell-scale: 0.66;
    transform: scale(var(--fc-shell-scale));
  }
}

@media (max-height: 430px) and (min-width: 680px) {
  #file-explorer[data-fc-column-capacity] {
    --fc-shell-scale: 0.62;
    transform: scale(var(--fc-shell-scale));
  }
}

@container (max-width: 640px) {
  #footer-controls .fc-footer-pinned-action[data-footer-pinned-index="2"] {
    display: none !important;
  }

}

@container (max-width: 540px) {
  #footer-controls .fc-footer-pinned-action[data-footer-pinned-index="1"] {
    display: none !important;
  }

}

@container (max-width: 460px) {
  #footer-controls .fc-footer-pinned-action[data-footer-pinned-index="0"] {
    display: none !important;
  }

}

/* Width-capped explorer overrides: column count is based on available width, not orientation. */
.fc-shell-stage[data-fc-map-popout-open="true"] {
  width: min(100%, var(--fc-shell-visual-width));
  padding-right: 0;
}

#file-explorer[data-fc-column-capacity] {
  max-width: var(--fc-shell-visual-width);
  height: 520px;
}

#file-explorer[data-fc-column-capacity="1"] {
  width: min(100%, calc((var(--fc-explorer-column-width) * 2) + var(--fc-shell-border-inline-width)));
}

#file-explorer:not([data-fc-column-capacity="1"]) {
  width: min(100%, var(--fc-shell-visual-width));
}

/* A one-column viewport is already the mobile layout; keep it fitted to the screen. */
.wrapper[data-fc-resize-enabled="false"] {
  max-width: none;
}

.fc-shell-stage[data-fc-resize-enabled="false"],
#file-explorer[data-fc-resize-enabled="false"] {
  width: 100%;
  max-width: none;
}

#file-explorer[data-fc-resize-enabled="false"] > .explorer-resize-handle {
  display: none;
  pointer-events: none;
}

#file-explorer[data-fc-column-capacity] #explorer-toolbar {
  flex-wrap: nowrap;
  align-items: center;
  gap: clamp(4px, 1.1vw, 10px);
  padding: var(--fc-space-1);
}

#file-explorer[data-fc-column-capacity] #path-controls {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  gap: clamp(4px, 1vw, 10px);
  overflow: hidden;
}

#file-explorer[data-fc-column-capacity] #view-controls {
  flex: 0 0 auto;
  width: auto;
  min-width: max-content;
  margin-left: 0;
  gap: clamp(4px, 1vw, 10px);
  justify-content: flex-end;
}

#file-explorer[data-fc-column-capacity] #explorer-footer {
  display: grid;
  grid-template-columns: minmax(0, max-content) minmax(max-content, 1fr) max-content;
  align-items: center;
  column-gap: clamp(4px, 1.4vw, 10px);
  padding: var(--fc-space-1);
  justify-items: stretch;
  overflow: hidden;
}

#file-explorer[data-fc-column-capacity] #shared-status {
  grid-column: 1;
  display: flex;
  width: auto;
  min-width: 0;
  justify-self: start;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: clamp(4px, 1.1vw, 8px);
  overflow: hidden;
}

#file-explorer[data-fc-column-capacity] #shared-status button {
  flex: 0 1 auto;
  min-width: 0;
  min-height: 34px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#file-explorer[data-fc-column-capacity] #item-count {
  grid-column: 2;
  justify-self: center;
  min-width: 0;
  line-height: 34px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#file-explorer[data-fc-column-capacity] #footer-controls {
  grid-column: 3;
  display: flex;
  width: auto;
  min-width: 0;
  justify-self: end;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: clamp(4px, 1.1vw, 8px);
  overflow: hidden;
}

#file-explorer[data-fc-column-capacity] #footer-controls button {
  flex: 0 0 auto;
  min-height: 34px;
}

#file-explorer[data-fc-column-capacity] #footer-controls .fc-footer-pinned-action {
  display: inline-flex;
}

#file-explorer[data-fc-column-capacity] #explorer-content {
  flex-direction: row;
  flex-wrap: nowrap;
  overflow: hidden;
}

#file-explorer[data-fc-column-capacity] #explorer-columns {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: hidden;
}

#file-explorer[data-fc-column-capacity] .column,
#file-explorer[data-fc-column-capacity] #info-pane,
#file-explorer[data-fc-column-capacity] #map-panel {
  flex: 0 0 var(--fc-explorer-column-width);
  width: var(--fc-explorer-column-width);
  height: 100%;
  min-width: var(--fc-explorer-column-width);
  min-height: 0;
  max-width: var(--fc-explorer-column-width);
  box-sizing: border-box;
}

#file-explorer:not([data-fc-column-capacity="1"]) #explorer-columns {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-gutter: stable;
}

#file-explorer:not([data-fc-column-capacity="1"])[data-fc-map-open="true"] #explorer-columns {
  flex: 0 0 calc(100% - var(--fc-explorer-column-width));
  width: calc(100% - var(--fc-explorer-column-width));
}

#file-explorer:not([data-fc-column-capacity="1"])[data-fc-map-open="true"] #map-panel:not(.collapsed) {
  flex: 0 0 var(--fc-explorer-column-width);
  width: var(--fc-explorer-column-width);
  min-width: var(--fc-explorer-column-width);
  max-width: var(--fc-explorer-column-width);
  height: 100%;
  border-left: var(--fc-explorer-divider-width) solid var(--fc-border-color);
}

#file-explorer:not([data-fc-column-capacity="1"]) .column {
  border-right: var(--fc-explorer-divider-width) solid var(--fc-border-color);
}

#file-explorer:not([data-fc-column-capacity="1"]) .column.explorer-trailing-pane.explorer-trailing-pane-flush {
  border-right: none;
}

#file-explorer[data-fc-column-capacity="1"] #explorer-content {
  flex-direction: column;
}

#file-explorer[data-fc-details-sheet="open"] #explorer-content {
  flex-direction: column;
}

#file-explorer[data-fc-column-capacity="1"] #explorer-toolbar {
  gap: 4px;
}

#file-explorer[data-fc-column-capacity="1"] #path-controls,
#file-explorer[data-fc-column-capacity="1"] #view-controls {
  gap: 4px;
}

#file-explorer[data-fc-column-capacity="1"] #path-controls button,
#file-explorer[data-fc-column-capacity="1"] #view-controls button {
  width: 34px;
  min-width: 34px;
  height: 34px;
  flex-basis: 34px;
  padding: 4px;
}

#file-explorer[data-fc-column-capacity="1"] .column {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  max-width: none;
  border-right: 0;
}

#file-explorer[data-fc-column-capacity="1"] #map-panel {
  flex: 0 0 var(--fc-explorer-column-width);
  width: var(--fc-explorer-column-width);
  min-width: 0;
  max-width: var(--fc-explorer-column-width);
}

#file-explorer[data-fc-column-capacity="1"] #info-pane,
#file-explorer[data-fc-details-sheet="open"] #info-pane {
  display: none;
  flex: 0 0 auto;
  width: 100%;
  min-width: 0;
  max-width: none;
  max-height: min(34svh, 280px);
  border-top: var(--fc-border-width-strong) solid var(--fc-border-color);
  border-right: 0;
}

#file-explorer[data-fc-details-sheet="open"] #info-pane:not(.hidden) {
  display: block;
}

#file-explorer:not([data-fc-column-capacity="1"])[data-fc-details-sheet="closed"] #info-pane:not(.hidden) {
  display: block;
  border-top: 0;
  border-right: var(--fc-explorer-divider-width) solid var(--fc-border-color);
}

#file-explorer[data-fc-column-capacity="1"] .portrait-parent-btn {
  display: inline-flex !important;
}

#file-explorer[data-fc-column-capacity="1"] .portrait-parent-btn[hidden] {
  display: none !important;
}

#file-explorer[data-fc-column-capacity] #breadcrumbs-input {
  display: block;
  flex: 1 1 8ch;
  min-width: 0;
}

#file-explorer[data-fc-column-capacity] #fc-portrait-path-label {
  display: none;
}

#file-explorer[data-fc-column-capacity="1"] #breadcrumbs-input {
  display: none;
}

#file-explorer[data-fc-column-capacity="1"] #fc-portrait-path-label {
  display: flex;
}

#file-explorer[data-fc-column-capacity="1"] #fc-portrait-path-label[hidden] {
  display: none !important;
}

#file-explorer[data-fc-column-capacity="1"] #explorer-footer {
  grid-template-columns: minmax(0, max-content) minmax(max-content, 1fr) max-content;
  gap: 4px;
}

#file-explorer[data-fc-column-capacity="1"] #shared-status {
  gap: 4px;
}

#file-explorer[data-fc-column-capacity="1"] #shared-status button {
  max-width: 66px;
  min-height: 34px;
  padding-right: 5px;
  padding-left: 5px;
}

#file-explorer[data-fc-column-capacity="1"] #shared-status #manage-account-btn {
  flex-basis: auto;
  width: auto;
  min-width: 0;
  max-width: none;
  gap: 4px;
  padding: 4px 8px;
}

#file-explorer[data-fc-column-capacity="1"] #shared-status #manage-account-btn .toolbar-icon {
  width: 24px;
  height: 24px;
}

#file-explorer[data-fc-column-capacity="1"] .fc-manage-account-mobile-label {
  display: inline;
}

#file-explorer[data-fc-column-capacity="1"] #shared-status #admin-tools-btn,
#file-explorer[data-fc-column-capacity="1"] #shared-status #auth-toggle-btn,
#file-explorer[data-fc-column-capacity="1"] .fc-footer-pinned-action {
  display: none !important;
}

#file-explorer[data-fc-column-capacity="1"] #item-count {
  font-size: 12px;
}

#file-explorer[data-fc-column-capacity="1"] #footer-actions-btn {
  min-width: 64px;
  padding-right: 6px;
  padding-left: 6px;
}

#file-explorer[data-fc-map-mode="inner"] {
  overflow: hidden;
}

#file-explorer[data-fc-map-mode="inner"] #explorer-content {
  position: relative;
  overflow: hidden;
}

#file-explorer[data-fc-map-mode="inner"] #map-panel {
  display: none;
  position: relative;
  width: auto;
  min-height: 0;
  max-height: none;
  border: 0;
  opacity: 1;
  transform: none;
  z-index: 9;
}

#file-explorer[data-fc-map-mode="inner"][data-fc-map-open="true"] #map-panel:not(.collapsed) {
  display: flex;
}

#file-explorer[data-fc-map-mode="inner"] #map-panel.collapsed {
  display: none;
  width: auto;
  min-height: 0;
  border-width: 0;
  opacity: 0;
}

#file-explorer[data-fc-column-capacity="1"][data-fc-map-mode="inner"] #map-panel:not(.collapsed) {
  position: absolute;
  inset: 0;
  width: 100%;
  min-width: 0;
  max-width: none;
  height: 100%;
  z-index: 20;
}

#file-explorer[data-fc-column-capacity="1"] #map-panel:not(.collapsed) #map-panel-close-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: var(--fc-border-width-strong) solid var(--fc-border-color);
  background: var(--fc-surface-color);
  color: var(--fc-text-color);
  font: 700 20px/1 var(--fc-serif-font-family);
  cursor: pointer;
}

#file-explorer[data-fc-map-mode="popout"] {
  overflow: hidden;
}

#file-explorer[data-fc-map-mode="popout"] #explorer-content {
  position: relative;
  overflow: hidden;
}

#file-explorer[data-fc-map-mode="popout"] #map-panel {
  position: relative;
  width: auto;
  min-height: 0;
  max-height: none;
  border: 0;
  opacity: 1;
  transform: none;
}

#file-explorer[data-fc-map-mode="popout"] #map-panel.collapsed {
  display: none;
  width: auto;
  border-width: 0;
  opacity: 0;
}

#file-explorer[data-fc-column-capacity] .column-header {
  padding: 8px 12px;
  font-size: 12px;
  line-height: 1.15;
}

#file-explorer[data-fc-column-capacity] .file-item {
  min-height: 18px;
  padding: 6px;
  font-size: 14px;
  line-height: 1.15;
}

#file-explorer[data-fc-column-capacity] .file-name {
  font-size: 13px;
  line-height: 1.25;
}
