/* Desktop design adapter from the supplied office productivity package. */
@media screen and (min-width: 921px) {
/* A quiet, keyboard-accessible resize control in the existing 24px gutter. */
body.fv-sheet-motion .fv-sheet-splitter-track,
body.fv-sheet-motion .fv-sheet-splitter,
body.fv-sheet-motion .fv-sheet-splitter[hidden] { display: none; }

@media (min-width: 921px) {
  body.fv-sheet-motion .office-spreadsheet-app .office-tool-layout.fv-sheet-resizable {
    --fv-sheet-sidebar-width: 170px;
    display: grid !important;
    grid-template-columns: var(--fv-sheet-sidebar-width) 12px var(--fv-sheet-composer-width, 306px) 24px minmax(0, 1fr) !important;
    column-gap: 0 !important;
    align-items: start;
  }
  body.fv-sheet-motion .office-spreadsheet-app .fv-sheet-resizable > .spreadsheet-sidebar {
    display: block;
    grid-column: 1;
    grid-row: 1;
    width: auto;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    box-sizing: border-box;
  }
  body.fv-sheet-motion .fv-sheet-resizable > .slides-composer {
    grid-column: 3;
    grid-row: 1;
    min-width: 0;
    width: auto;
    max-width: none;
  }
  body.fv-sheet-motion .fv-sheet-resizable > #office-result-card {
    grid-column: 5;
    grid-row: 1;
    min-width: 0;
    width: auto;
    max-width: 100%;
    margin: 0;
    box-sizing: border-box;
  }
  body.fv-sheet-motion .office-spreadsheet-app .spreadsheet-grid-shell,
  body.fv-sheet-motion .office-spreadsheet-app .spreadsheet-grid-scroll {
    min-width: 0;
    max-width: 100%;
  }
  body.fv-sheet-motion .office-spreadsheet-app .spreadsheet-grid-scroll {
    overflow: auto;
    overscroll-behavior-x: contain;
  }
  body.fv-sheet-motion .office-spreadsheet-app .spreadsheet-toolbar,
  body.fv-sheet-motion .office-spreadsheet-app .spreadsheet-toolbar-actions,
  body.fv-sheet-motion .office-spreadsheet-app .spreadsheet-grid-meta { flex-wrap: wrap; }
  body.fv-sheet-motion .fv-sheet-resizable > .fv-sheet-splitter-track {
    display: block;
    grid-column: 4;
    grid-row: 1;
    min-width: 0;
    align-self: start;
    padding-top: 170px;
    box-sizing: border-box;
  }
  body.fv-sheet-motion .fv-sheet-splitter-track > .fv-sheet-splitter {
    display: flex;
    position: sticky;
    top: 170px;
    align-self: start;
    align-items: center;
    justify-content: center;
    height: 136px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #8b9ba9;
    cursor: col-resize;
    touch-action: none;
    z-index: 4;
    outline: none;
  }
  body.fv-sheet-motion .fv-sheet-splitter-track > .fv-sheet-splitter[hidden] { display: none; }
  body.fv-sheet-motion .fv-sheet-splitter::before {
    content: '';
    position: absolute;
    width: 3px;
    top: 10px;
    bottom: 10px;
    border-radius: 3px;
    background: #d5dfe4;
    transition: background .15s ease, opacity .15s ease;
  }
  body.fv-sheet-motion .fv-sheet-splitter-grip {
    position: relative;
    display: block;
    width: 14px;
    height: 36px;
    border: 1px solid #d5dfe4;
    border-radius: 7px;
    background: #fff;
    box-shadow: 0 2px 5px #173b4910;
  }
  body.fv-sheet-motion .fv-sheet-splitter-grip::before,
  body.fv-sheet-motion .fv-sheet-splitter-grip::after {
    content: '';
    position: absolute;
    top: 12px;
    width: 1.5px;
    height: 10px;
    border-radius: 2px;
    background: currentColor;
  }
  body.fv-sheet-motion .fv-sheet-splitter-grip::before { left: 4px; }
  body.fv-sheet-motion .fv-sheet-splitter-grip::after { right: 4px; }
  body.fv-sheet-motion .fv-sheet-splitter:is(:hover, :focus-visible, .is-dragging)::before {
    background: linear-gradient(180deg, #198cff, #28bd98 30%, #dfb749 55%, #f16b90 76%, #a46ee8);
  }
  body.fv-sheet-motion .fv-sheet-splitter:is(:hover, :focus-visible, .is-dragging) .fv-sheet-splitter-grip {
    border-color: #8cabc0;
    color: #41788d;
    box-shadow: 0 0 0 3px #ffffffd9, 0 3px 12px #26485416;
  }
  body.fv-sheet-motion .fv-sheet-splitter:focus-visible .fv-sheet-splitter-grip { outline: 2px solid #286f87; outline-offset: 3px; }
  body.fv-sheet-motion .fv-sheet-splitter-tip {
    position: absolute;
    left: 50%;
    top: -25px;
    transform: translateX(-50%);
    padding: 7px 10px;
    border: 1px solid #e5eaf0;
    border-radius: 7px;
    color: #445767;
    background: #fff;
    box-shadow: 0 3px 12px #2648540d;
    font: 11px/1.4 system-ui, sans-serif;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity .12s ease;
  }
  body.fv-sheet-motion .fv-sheet-splitter:is(:hover, :focus-visible, .is-dragging) .fv-sheet-splitter-tip { opacity: 1; }
  body.fv-sheet-motion .fv-sheet-splitter-help {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  body.fv-sheet-motion.fv-sheet-is-resizing,
  body.fv-sheet-motion.fv-sheet-is-resizing * { cursor: col-resize !important; user-select: none !important; }

  /* Settings adapt to the input panel's actual width; the native table keeps
     its own horizontal scrolling and is never clipped by the page. */
  body.fv-sheet-motion .office-spreadsheet-app .office-field-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
    column-gap: 12px;
  }
  body.fv-sheet-motion .office-spreadsheet-app .office-field-grid > .office-field {
    grid-column: auto;
    min-width: 0;
  }
  body.fv-sheet-motion .office-spreadsheet-app .office-field :is(input, textarea, select) {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }

}

@media (prefers-reduced-motion: reduce) {
  body.fv-sheet-motion .fv-sheet-splitter::before,
  body.fv-sheet-motion .fv-sheet-splitter-tip { transition: none; }
}

@media (min-width: 921px) and (max-width: 1120px) {
  body.fv-sheet-motion .office-spreadsheet-app .office-tool-layout.fv-sheet-resizable {
    --fv-sheet-sidebar-width: 140px;
  }
}

}
