/* Export workspace — one surface, one spacing scale, no segmented grey tracks. */
.ex-workspace {
  max-width: 1080px;
  margin: 4px auto 32px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: 0 6px 32px #17274005;
}
.ex-formats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin: 0;
  padding: 10px 20px 0;
  border-bottom: 1px solid var(--line);
}
.ex-format {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 64px;
  gap: 10px;
  padding: 14px 8px 18px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.ex-format::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 16px;
  right: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--action);
  opacity: 0;
  transform: scaleX(0.65);
  transition:
    transform 220ms ease,
    opacity 180ms ease;
}
.ex-format:hover,
.ex-format.selected {
  color: var(--text);
}
.ex-format.selected::after {
  opacity: 1;
  transform: scaleX(1);
}
.ex-format-icon {
  display: flex;
  color: inherit;
  transition:
    color 180ms ease,
    transform 220ms ease;
}
.ex-format.selected .ex-format-icon {
  color: var(--action);
}
.ex-format:hover .ex-format-icon {
  transform: translateY(-2px);
}
.ex-format-icon svg {
  width: 22px;
  height: 22px;
}
.ex-format strong {
  display: block;
  font-size: 14px;
  font-weight: 560;
  letter-spacing: -0.015em;
}
.ex-format small {
  display: none;
}
.ex-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  align-items: start;
  animation: none;
}
.ex-settings {
  min-width: 0;
  padding: 32px;
}
.ex-intro {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  column-gap: 14px;
  align-items: center;
  padding: 0 0 30px;
}
.ex-intro-symbol {
  display: grid;
  place-items: center;
  grid-row: 1 / 3;
  width: 44px;
  height: 50px;
  color: var(--action);
}
.ex-intro-symbol svg {
  width: 34px;
  height: 34px;
}
.ex-intro h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 620;
  line-height: 1.2;
  letter-spacing: -0.035em;
}
.ex-intro p {
  margin: 7px 0 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 46ch;
}
.ex-settings .ex-choice {
  min-width: 0;
  padding: 0 0 26px;
  margin: 0;
  border: 0;
}
.ex-choice legend {
  float: left;
  width: 100%;
  margin: 0 0 12px;
  padding: 0;
  font-size: 14px;
  font-weight: 570;
  color: var(--text);
  letter-spacing: -0.015em;
}
.ex-choice > div {
  display: flex;
  flex-wrap: wrap;
  clear: both;
  gap: 10px;
}
.ex-destination > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.ex-radio {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 11px 14px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  line-height: 1.4;
  cursor: pointer;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
}
.ex-radio input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.ex-option-mark {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border: 1px solid color-mix(in srgb, var(--muted) 40%, var(--line));
  border-radius: 50%;
  color: white;
  transition:
    border-color 160ms ease,
    background 160ms ease;
}
.ex-option-mark svg {
  width: 12px;
  height: 12px;
  opacity: 0;
  transform: scale(0.6);
  transition:
    opacity 160ms ease,
    transform 220ms ease;
}
.ex-radio:has(input:checked) {
  border-color: var(--action);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--action) 14%, transparent);
}
.ex-radio:has(input:checked) .ex-option-mark {
  background: var(--action);
  border-color: var(--action);
}
.ex-radio:has(input:checked) .ex-option-mark svg {
  opacity: 1;
  transform: scale(1);
}
.ex-radio:hover:not(.unavailable) {
  border-color: color-mix(in srgb, var(--action) 60%, var(--line));
}
.ex-radio:has(input:focus-visible) {
  outline: 2px solid var(--action);
  outline-offset: 3px;
}
.ex-option-copy {
  min-width: 0;
}
.ex-option-copy strong {
  display: block;
  font-size: 14px;
  font-weight: 560;
  letter-spacing: -0.015em;
}
.ex-option-copy small {
  display: block;
  font-size: 12px;
  line-height: 1.5;
  margin-top: 5px;
  color: var(--muted);
}
.ex-radio .plus-badge {
  margin-left: auto;
  flex-shrink: 0;
}
.ex-destination .ex-radio {
  align-items: flex-start;
  min-height: 92px;
  padding: 16px;
  flex-wrap: wrap;
}
.ex-destination .ex-option-mark {
  margin-top: 1px;
}
.ex-destination .ex-option-copy {
  flex: 1;
  min-width: 100px;
}
.ex-destination .plus-badge {
  align-self: flex-start;
}
.ex-radio.unavailable {
  color: var(--muted);
  opacity: 0.58;
  cursor: not-allowed;
  background: transparent;
  box-shadow: none;
}
.ex-radio.unavailable .ex-option-mark {
  border: 0;
  color: var(--muted);
}
.ex-radio.unavailable .ex-option-mark svg {
  opacity: 1;
  transform: none;
}
.ex-inline-choice > div {
  justify-content: flex-start;
}
.ex-identity .ex-radio {
  flex: 1;
}
.ex-folder-option {
  min-width: 0;
}
.ex-folder-option > .ex-radio {
  height: 100%;
  max-height: 110px;
}
.ex-settings .ex-folder-order {
  padding: 13px 0 0;
}
.ex-folder-order legend {
  color: var(--muted);
  font-size: 12px;
  font-weight: 450;
  margin-bottom: 8px;
}
.ex-folder-order > div {
  gap: 6px;
}
.ex-folder-order .ex-radio {
  min-height: 36px;
  padding: 7px 9px;
  border-radius: 10px;
  font-size: 12px;
  flex: 1;
  align-items: center;
  flex-wrap: nowrap;
}
.ex-folder-order .ex-option-mark {
  width: 13px;
  height: 13px;
  flex-basis: 13px;
  margin-top: 0;
}
.ex-folder-order .ex-option-mark svg {
  width: 9px;
  height: 9px;
}
.ex-folder-order .ex-option-copy {
  min-width: 0;
  flex: initial;
}
.ex-module-context {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: -10px 0 24px;
}
.ex-module-context svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.ex-fmh-folder-settings {
  padding-top: 14px;
}
.ex-fmh-folder-settings .ex-module-context {
  margin: 0 0 10px;
  font-size: 12px;
}
.ex-toggle {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: 14px 0;
  font-size: 13px;
  line-height: 1.5;
  cursor: pointer;
}
.ex-toggle input {
  appearance: none;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
}
.ex-toggle input:checked {
  background-color: var(--action);
  border-color: var(--action);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'%3E%3Cpath d='m4 9 3 3 7-7' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: center;
}
.ex-toggle:has(input:disabled) {
  opacity: 0.55;
  cursor: not-allowed;
}
.ex-fmh-folder-settings .ex-toggle {
  font-size: 12px;
  padding: 0;
}
.ex-selection {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: 2px;
}
.ex-selection-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 0;
}
.ex-selection-caption {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
}
.ex-selection-caption > svg {
  width: 17px;
  height: 17px;
  color: var(--action);
}
.ex-selection-caption > button {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  padding: 5px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.ex-selection-caption > button:hover {
  color: var(--action);
}
.ex-selection-caption > button svg {
  width: 12px;
  height: 12px;
}
.ex-refine {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: var(--action);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.ex-refine svg {
  width: 13px;
  height: 13px;
  transition: transform 180ms ease;
}
.ex-refine[aria-expanded='true'] > svg:last-child {
  transform: rotate(180deg);
}
.ex-refine.unavailable {
  color: var(--muted);
  opacity: 0.58;
  cursor: not-allowed;
}
#ex-selection-filters[hidden],
#ex-other-criteria[hidden] {
  display: none;
}
.ex-settings .tr-export-filters {
  margin: 0;
  padding: 0 0 22px;
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  animation: none;
}
.ex-settings .tr-export-filter-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 0;
}
.ex-filter-search-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.ex-gesture-filter {
  min-width: 0;
}
.ex-gesture-search {
  position: relative;
  min-width: 0;
  flex: 1;
}
.ex-gesture-input {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}
.ex-gesture-input:focus-within {
  border-color: var(--action);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--action) 7%, transparent);
}
.ex-gesture-input > svg {
  width: 17px;
  height: 17px;
  color: var(--muted);
  flex-shrink: 0;
}
.ex-settings .ex-gesture-input input,
.ex-settings .ex-gesture-input input:focus-visible {
  min-width: 0;
  width: 100%;
  min-height: 44px;
  padding: 10px 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  box-shadow: none;
  color: var(--text);
  background: transparent;
  font: inherit;
  font-size: 14px;
}
.ex-gesture-options {
  position: absolute;
  z-index: 75;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  max-height: 190px;
  overflow: auto;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  box-shadow: 0 8px 26px #00000012;
  animation: ex-suggestions-in 140ms ease;
}
.ex-gesture-options[hidden] {
  display: none;
}
.ex-gesture-options button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 38px;
  padding: 9px 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}
.ex-gesture-options button:hover,
.ex-gesture-options button[aria-selected='true'] {
  color: var(--action);
  background: color-mix(in srgb, var(--action) 5%, var(--surface));
}
.ex-gesture-options button > span {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.ex-gesture-options button svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  color: var(--muted);
}
.ex-gesture-options p {
  padding: 10px;
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}
.ex-filter-search-row > .button {
  min-height: 44px;
  padding: 6px 0;
  font-size: 12px;
  white-space: nowrap;
  color: var(--muted);
}
.ex-gesture-filter .tr-inherited-filters {
  margin: 12px 0 0;
  gap: 7px;
}
.ex-gesture-filter .tr-inherited-filters button {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--action);
  background: var(--surface);
  font-size: 12px;
  text-align: left;
  overflow-wrap: anywhere;
  max-width: 100%;
}
.ex-gesture-filter .tr-inherited-filters svg {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
}
.ex-date-range,
.ex-other-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.ex-settings .ex-date-field,
.ex-filter-control {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
}
.ex-date-input {
  position: relative;
}
.ex-settings .ex-date-input input,
.ex-settings .ex-filter-control > .pick {
  display: flex;
  align-items: center;
  min-width: 0;
  width: 100%;
  min-height: 44px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--text);
  background: var(--surface);
  box-shadow: none;
  font: inherit;
  font-size: 14px;
}
.ex-settings .ex-filter-control > .pick[data-value]:not([data-value='']) {
  color: var(--action);
  border-color: color-mix(in srgb, var(--action) 50%, var(--line));
}
.ex-date-placeholder {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  font-size: 14px;
  color: var(--muted);
}
.ex-settings .ex-date-input input.is-empty:not(:focus),
.ex-date-input input.is-empty:not(:focus)::-webkit-datetime-edit {
  color: transparent;
}
.ex-date-input:focus-within .ex-date-placeholder {
  visibility: hidden;
}
.ex-other-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 5px 0;
  min-height: 34px;
  border: 0;
  background: transparent;
  color: var(--action);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.ex-other-toggle svg {
  width: 15px;
  height: 15px;
}
.ex-other-toggle > svg:last-child {
  margin-left: 3px;
  transition: transform 180ms ease;
}
.ex-other-toggle[aria-expanded='true'] > svg:last-child {
  transform: rotate(180deg);
}
.ex-other-toggle b {
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--action) 7%, var(--surface));
  font-size: 11px;
}
.ex-settings .ex-access-filter.has-technique {
  grid-column: 1 / -1;
}
.ex-settings .technique-selector {
  display: flex;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  animation: none;
}
.ex-settings .technique-selector > button {
  flex: 1;
  min-height: 38px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  box-shadow: none;
}
.ex-settings .technique-selector > button[aria-pressed='true'] {
  color: var(--action);
  border-color: var(--action);
  background: var(--surface);
}
.ex-customize {
  padding: 0;
}
.ex-customize > button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: 72px;
  padding: 20px 0;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.ex-customize > button > span {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ex-customize strong,
.ex-customize small {
  display: block;
}
.ex-customize strong {
  font-size: 14px;
  font-weight: 500;
}
.ex-customize small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}
.ex-customize svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  color: var(--muted);
  transition: transform 180ms ease;
}
.ex-customize > button[aria-expanded='true'] > svg {
  transform: rotate(180deg);
}
.ex-customize-content {
  padding-bottom: 8px;
}
.ex-columns {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.ex-columns .tr-columns-toggle {
  min-height: 52px;
  padding: 15px 0;
  font-size: 13px;
}
.ex-columns .tr-columns-content {
  padding: 0 0 18px;
  animation: none;
}
.ex-columns fieldset {
  border: 0;
  padding: 0;
  margin: 16px 0 0;
}
.ex-columns legend {
  margin: 0 0 10px;
  font-size: 12px;
  color: var(--muted);
}
.ex-columns .tr-column-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 14px;
}
.ex-file {
  position: sticky;
  top: 112px;
  min-width: 0;
  padding: 36px 26px 30px;
  border-left: 1px solid var(--line);
  border-radius: 0 0 28px 0;
  background: transparent;
  text-align: left;
}
.ex-document {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 92px;
  height: 120px;
  padding: 23px 12px 17px;
  margin: 0 0 26px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  color: var(--action);
  box-shadow:
    3px 4px 0 var(--surface),
    3px 4px 0 1px var(--line),
    0 8px 25px #17274008;
  transition: transform 250ms ease;
}
.ex-document::after {
  content: '';
  width: 43px;
  height: 12px;
  background: repeating-linear-gradient(
    180deg,
    var(--line) 0px,
    var(--line) 1px,
    transparent 1px,
    transparent 5px
  );
  margin-top: 8px;
}
.ex-document svg {
  width: 32px;
  height: 32px;
}
.ex-document > span {
  position: absolute;
  right: -10px;
  bottom: 17px;
  padding: 5px 7px;
  border-radius: 5px;
  color: white;
  background: var(--action);
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.1em;
}
.ex-document.excel {
  color: #16915e;
}
.ex-document.protocols {
  color: var(--red);
}
.ex-document.excel > span {
  background: #16915e;
}
.ex-document.protocols > span {
  background: var(--red);
}
.ex-file:hover .ex-document {
  transform: translateY(-3px);
}
.ex-file h2 {
  margin: 0 0 22px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.025em;
}
.ex-file-count {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0;
}
.ex-file-count strong {
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.ex-file-count span {
  font-size: 13px;
  color: var(--muted);
}
.ex-file-description {
  margin: 9px 0 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}
.ex-contents {
  margin: 23px 0 0;
  border-top: 1px solid var(--line);
}
.ex-contents > summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  list-style: none;
  padding: 16px 0 0;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
}
.ex-contents > summary::-webkit-details-marker {
  display: none;
}
.ex-contents > summary > svg {
  width: 13px;
  height: 13px;
  transition: transform 180ms ease;
}
.ex-contents[open] > summary > svg {
  transform: rotate(180deg);
}
.ex-file-contents {
  display: grid;
  gap: 9px;
  padding-top: 16px;
  color: var(--text);
  font-size: 12px;
}
.ex-file-contents > span {
  display: flex;
  gap: 8px;
  align-items: center;
  min-width: 0;
}
.ex-file-contents > span > svg {
  width: 14px;
  height: 14px;
  color: var(--muted);
  flex-shrink: 0;
}
.ex-file-contents > span > span {
  flex: 1;
  min-width: 0;
}
.ex-file-contents small {
  color: var(--muted);
}
.ex-file-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 26px;
}
.ex-file-actions > .button {
  justify-content: center;
  width: 100%;
  min-height: 46px;
  border-radius: 12px;
  font-size: 14px;
}
.ex-file-actions > .button.primary {
  order: -1;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--action) 12%, transparent);
}
.ex-file-actions > .button.secondary {
  min-height: 36px;
  border: 0;
  background: transparent;
  font-size: 13px;
  color: var(--muted);
}
.ex-file-actions > .button.secondary:hover {
  color: var(--action);
}
.ex-missing {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 20px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--amber-text, #94600c);
}
.ex-missing svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.ex-context {
  margin: 14px 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
}
.ex-includes {
  padding: 0;
  list-style: none;
  margin: 0;
}
.ex-includes li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.ex-includes li > span {
  flex: 1;
}
.ex-includes svg {
  width: 18px;
  height: 18px;
  color: var(--action);
}
.ex-includes li > svg:last-child {
  width: 15px;
  color: #16915e;
}
.ex-archive-details {
  padding: 8px 0 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.ex-archive-details > summary {
  cursor: pointer;
}
.ex-version-group {
  margin-bottom: 8px;
}
.ex-version-heading,
.ex-version-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ex-version-heading > svg {
  width: 16px;
  height: 16px;
  color: var(--action);
  flex-shrink: 0;
}
.ex-version-heading strong {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  font-weight: 550;
}
.ex-version-heading small {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}
.ex-version-children {
  border-left: 1px solid var(--line);
  padding-left: 15px;
  margin: 8px 0 0 7px;
}
.ex-version-row {
  padding: 6px 0;
  font-size: 12px;
}
.ex-version-row > span {
  flex: 1;
  min-width: 0;
}
.ex-version-row small,
.ex-version-more {
  font-size: 11px;
  color: var(--muted);
}
.ex-folder-preview .ex-version-group {
  margin-top: 20px;
}
.ex-folder-preview {
  overflow-y: auto;
}
.ex-folder-preview .tr-folder-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ex-folder-preview .tr-folder-row > svg {
  width: 20px;
  height: 20px;
  color: var(--action);
  flex-shrink: 0;
}
.ex-folder-preview .tr-folder-row strong {
  flex: 1;
  font-size: 13px;
}
.ex-folder-preview .tr-folder-row > span {
  color: var(--muted);
  font-size: 12px;
}
.modal.ex-preview-modal {
  width: min(1280px, 94vw);
  max-width: min(1280px, 94vw);
  max-height: 88dvh;
  padding: 26px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.ex-preview-modal .dialog-heading {
  flex-shrink: 0;
  margin-bottom: 20px;
}
.ex-sheet-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  flex-shrink: 0;
  padding-bottom: 8px;
}
.ex-sheet-tabs button {
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 9px 12px;
  background: var(--surface);
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.ex-sheet-tabs button[aria-pressed='true'] {
  color: var(--action);
  border-color: var(--action);
}
.ex-preview-caption {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  margin: 8px 0 15px;
}
.ex-preview-table {
  min-height: 80px;
  overflow: auto;
  max-height: 58dvh;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.ex-preview-table table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  font-size: 12px;
}
.ex-preview-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--surface);
  font-weight: 550;
  white-space: nowrap;
}
.ex-preview-table td,
.ex-preview-table th {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  min-width: 110px;
  max-width: 340px;
  overflow-wrap: anywhere;
  vertical-align: top;
}
.ex-preview-table td {
  white-space: pre-line;
}
.ex-preview-table tr:last-child td {
  border-bottom: 0;
}
.ex-workspace button:focus-visible,
.ex-workspace input:focus-visible,
.ex-workspace summary:focus-visible {
  outline: 2px solid var(--action);
  outline-offset: 3px;
}
.ex-workspace .ex-gesture-input input:focus-visible {
  outline: 0;
}
@keyframes ex-suggestions-in {
  from {
    opacity: 0;
    transform: translateY(-3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 1100px) {
  .ex-layout {
    grid-template-columns: minmax(0, 1fr) 270px;
  }
  .ex-settings {
    padding: 28px;
  }
  .ex-file {
    padding-inline: 22px;
  }
}
@media (max-width: 850px) {
  .ex-layout {
    grid-template-columns: 1fr;
  }
  .ex-file {
    position: static;
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 0 20px;
    border-left: 0;
    border-top: 1px solid var(--line);
    border-radius: 0 0 28px 28px;
    padding: 26px 28px;
  }
  .ex-document {
    grid-row: 1 / 4;
    width: 62px;
    height: 82px;
    margin: 0;
    padding: 14px 8px 10px;
  }
  .ex-document svg {
    width: 25px;
    height: 25px;
  }
  .ex-document::after {
    width: 30px;
    height: 7px;
  }
  .ex-document > span {
    font-size: 7px;
    right: -8px;
    bottom: 10px;
  }
  .ex-file h2 {
    font-size: 17px;
    margin-bottom: 12px;
  }
  .ex-file-count strong {
    font-size: 30px;
  }
  .ex-file-description {
    margin-top: 6px;
  }
  .ex-file-actions,
  .ex-contents,
  .ex-missing,
  .ex-file > .ex-context {
    grid-column: 1 / -1;
  }
  .ex-file-actions {
    margin-top: 22px;
  }
}
@media (max-width: 520px) {
  .ex-workspace {
    margin-top: 0;
    border-radius: 22px;
  }
  .ex-formats {
    padding: 5px 8px 0;
    gap: 0;
  }
  .ex-format {
    flex-direction: column;
    gap: 7px;
    padding: 14px 5px;
    min-height: 82px;
    text-align: center;
  }
  .ex-format strong {
    font-size: 11px;
    line-height: 1.3;
  }
  .ex-format-icon svg {
    width: 22px;
    height: 22px;
  }
  .ex-format::after {
    left: 10px;
    right: 10px;
  }
  .ex-settings {
    padding: 25px 20px 6px;
  }
  .ex-intro {
    grid-template-columns: 1fr;
    gap: 0;
    padding-bottom: 25px;
  }
  .ex-intro-symbol {
    grid-row: auto;
    width: 40px;
    height: 43px;
    place-items: start;
    margin-bottom: 13px;
  }
  .ex-intro-symbol svg {
    width: 31px;
    height: 31px;
  }
  .ex-intro h2 {
    font-size: 23px;
  }
  .ex-intro p {
    font-size: 13px;
  }
  .ex-destination > div {
    grid-template-columns: 1fr;
    gap: 9px;
  }
  .ex-destination .ex-radio {
    min-height: 70px;
    padding: 14px;
  }
  .ex-destination .ex-option-copy {
    min-width: 0;
  }
  .ex-option-copy small {
    font-size: 12px;
    margin-top: 3px;
  }
  .ex-folder-option > .ex-radio {
    height: auto;
  }
  .ex-settings .ex-folder-order {
    padding: 10px 0 8px 29px;
  }
  .ex-folder-order .ex-radio {
    min-height: 36px;
    padding: 7px 8px;
  }
  .ex-fmh-folder-settings {
    padding: 0 0 0 29px;
  }
  .ex-radio {
    padding: 11px 12px;
    gap: 9px;
    font-size: 13px;
  }
  .ex-identity > div {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .ex-identity .ex-option-mark {
    width: 15px;
    height: 15px;
    flex-basis: 15px;
  }
  .ex-inline-choice:not(.ex-identity) > div {
    display: grid;
    grid-template-columns: 1fr;
  }
  .ex-inline-choice .plus-badge {
    margin-left: auto;
  }
  .ex-selection-row {
    gap: 6px;
    padding: 18px 0;
  }
  .ex-refine {
    font-size: 12px;
  }
  .ex-selection-caption {
    font-size: 13px;
  }
  .ex-filter-search-row {
    flex-wrap: wrap;
    gap: 2px;
  }
  .ex-gesture-search {
    flex-basis: 100%;
  }
  .ex-filter-search-row > .button {
    min-height: 29px;
    margin-left: auto;
  }
  .ex-date-range,
  .ex-other-grid {
    gap: 16px 12px;
  }
  .ex-settings .ex-date-input input,
  .ex-settings .ex-filter-control > .pick {
    font-size: 13px;
    padding-inline: 10px;
  }
  .ex-date-placeholder {
    left: 10px;
    font-size: 13px;
  }
  .ex-gesture-options button {
    min-height: 42px;
  }
  .ex-columns .tr-column-grid {
    grid-template-columns: 1fr;
  }
  .ex-file {
    padding: 24px 20px;
    border-radius: 0 0 22px 22px;
  }
  .ex-file-actions > .button {
    min-height: 48px;
  }
  .modal.ex-preview-modal {
    padding: 18px;
    max-height: 92dvh;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ex-workspace *,
  .ex-workspace *::after {
    animation: none !important;
    transition: none !important;
  }
}
