

@font-face {
  font-family: gicons;
  src: url(./icons.eot?5.21.0);
  src: url(./icons.eot?5.21.0#iefix) format("embedded-opentype"), url(./icons.woff2?5.21.0) format("woff2"), url(../fonts/eicons.woff?5.21.0) format("woff"), url(../fonts/eicons.ttf?5.21.0) format("truetype"), url(./icons.svg?5.21.0#eicon) format("svg");
  font-weight: 400;
  font-style: normal
}

[class*=" gicon-"],
[class^=gicon] {
  display: inline-block;
  font-family: gicons;
  font-size: inherit;
  font-weight: 400;
  font-style: normal;
  font-variant: normal;
  line-height: 1;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale
}

.gicon-close:before {
  content: "\e87f";
}

/* Prevent WP admin link states from overriding Tailwind text color utilities. */
.g-tailwind-link-reset:link,
.g-tailwind-link-reset:visited,
.g-tailwind-link-reset:hover,
.g-tailwind-link-reset:active {
  color: currentColor;
}

.g-top-bar-post-nav {
  position: relative;
  z-index: 2;
  background-color: #f6f7f7;
  min-height: 24px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  border-bottom: 1px solid #dcdcde;
}

/* Fallback for classic editor */
body:not(.block-editor-page) .g-top-bar-post-nav {
  position: relative;
  top: 0;
  margin-bottom: 15px;
}

/* In Gutenberg, mount the breadcrumb inside the editor header stack and offset the canvas below it. */
body.block-editor-page .g-top-bar-post-nav {
  left: auto;
  right: auto;
  top: auto;
  margin: 0;
}

body.block-editor-page .interface-interface-skeleton__header {
  display: flex;
  flex-direction: column;
  min-height: calc(60px + var(--g-editor-breadcrumb-height, 0px));
  height: auto;
}

.g-top-bar-post-nav .g-top-bar-crumb {
  color: #000;
  padding: 0 5px;
}

.g-top-bar-post-nav .g-top-bar-crumb:link,
.g-top-bar-post-nav .g-top-bar-crumb:visited {
  color: #3858E9;
  font-size: 13px;
  font-style: normal;
  font-weight: 400;
  text-decoration: none;
}

.g-folio__theme-2-page .attachment-post-thumbnail {
  width: 100%;
  height: auto;
}

.g-top-bar-root {
  left: 160px;
  font-family: var(--g-a-font-family);
  background: #fff;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.03);
  position: fixed;
  top: 32px;
  width: calc(100% - 160px);
  z-index: 100;
}

.g-top-bar-root .g-top-bar {
  display: flex;
  height: 50px;
  justify-content: space-between;
  padding: 0 16px;
}

.g-top-bar__left {
  display: flex;
  align-items: center;
  font-size: 16px;
  font-weight: 500;
}

body.groove_folio-template-default {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.groove.toplevel_page_groove-overview .g-top-bar-root,
body.groove.groove-overview_page_groove-overview .g-top-bar-root,
body.groove.groove-overview_page_groove-settings .g-top-bar-root,
body.groove.groove-overview_page_groove-themes .g-top-bar-root,
body.groove.groove-overview_page_groove-folio .g-top-bar-root,
body.groove.groove-folios_page_groove-overview .g-top-bar-root,
body.groove.groove-folios_page_groove-settings .g-top-bar-root,
body.groove.groove-folios_page_groove-themes .g-top-bar-root,
body.groove.groove-folios_page_groove-folio .g-top-bar-root {
  height: 50px;
}

body.groove.toplevel_page_groove-overview #wpbody-content,
body.groove.groove-overview_page_groove-overview #wpbody-content,
body.groove.groove-overview_page_groove-settings #wpbody-content,
body.groove.groove-overview_page_groove-themes #wpbody-content,
body.groove.groove-overview_page_groove-folio #wpbody-content,
body.groove.groove-folios_page_groove-overview #wpbody-content,
body.groove.groove-folios_page_groove-settings #wpbody-content,
body.groove.groove-folios_page_groove-themes #wpbody-content,
body.groove.groove-folios_page_groove-folio #wpbody-content {
  margin-top: 0 !important;
}

/* Remove WP admin default field margins that create extra spacing in settings rows. */
body.groove.groove-overview_page_groove-settings .g-settings-form input[type="text"],
body.groove.groove-overview_page_groove-settings .g-settings-form input[type="email"],
body.groove.groove-overview_page_groove-settings .g-settings-form input[type="password"],
body.groove.groove-overview_page_groove-settings .g-settings-form input[type="number"],
body.groove.groove-overview_page_groove-settings .g-settings-form select,
body.groove.groove-overview_page_groove-settings .g-settings-form textarea,
body.groove.groove-folios_page_groove-settings .g-settings-form input[type="text"],
body.groove.groove-folios_page_groove-settings .g-settings-form input[type="email"],
body.groove.groove-folios_page_groove-settings .g-settings-form input[type="password"],
body.groove.groove-folios_page_groove-settings .g-settings-form input[type="number"],
body.groove.groove-folios_page_groove-settings .g-settings-form select,
body.groove.groove-folios_page_groove-settings .g-settings-form textarea {
  margin: 0;
}

body.groove.groove-overview_page_groove-settings .g-settings-form select,
body.groove.groove-folios_page_groove-settings .g-settings-form select {
  max-width: none;
}

/* Add breathing room between settings tabs and tab content. */
body.groove.groove-overview_page_groove-settings .nav-tab-wrapper,
body.groove.groove-folios_page_groove-settings .nav-tab-wrapper {
  margin-bottom: 16px;
}

/* Keep the WP list table contained on All Folios. */
body.groove.groove-overview_page_groove-all-folios #wpbody-content .wrap,
body.groove.groove-folios_page_groove-all-folios #wpbody-content .wrap {
  max-width: 100%;
  overflow-x: auto;
}

body.groove.groove-overview_page_groove-folio #wpbody-content .wrap,
body.groove.groove-folios_page_groove-folio #wpbody-content .wrap {
  max-width: 100%;
}

body.groove.groove-overview_page_groove-all-folios #posts-filter,
body.groove.groove-folios_page_groove-all-folios #posts-filter {
  max-width: 100%;
}

body.groove.groove-overview_page_groove-folio #pages-filter,
body.groove.groove-folios_page_groove-folio #pages-filter {
  max-width: 100%;
  overflow-x: auto;
  clear: both;
}

body.groove.groove-overview_page_groove-all-folios #posts-filter .wp-list-table,
body.groove.groove-folios_page_groove-all-folios #posts-filter .wp-list-table {
  width: 100%;
  min-width: 780px;
}

body.groove.groove-overview_page_groove-folio #pages-filter .wp-list-table,
body.groove.groove-folios_page_groove-folio #pages-filter .wp-list-table {
  width: 100%;
  min-width: 780px;
}

body.groove.groove-overview_page_groove-folio #pages-filter .wp-list-table td.column-title .g-folio__title-wrap,
body.groove.groove-folios_page_groove-folio #pages-filter .wp-list-table td.column-title .g-folio__title-wrap {
  display: block;
  min-width: 0;
}

body.groove.groove-overview_page_groove-folio #pages-filter .wp-list-table .g-folio__truncate-text,
body.groove.groove-folios_page_groove-folio #pages-filter .wp-list-table .g-folio__truncate-text {
  display: inline-block;
  max-width: min(100%, 60ch);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
}

/* Normalize WP tablenav spacing/alignment on Groove list screens. */
body.groove.groove-overview_page_groove-all-folios #posts-filter .tablenav.top,
body.groove.groove-folios_page_groove-all-folios #posts-filter .tablenav.top,
body.groove.groove-overview_page_groove-folio #pages-filter .tablenav.top,
body.groove.groove-folios_page_groove-folio #pages-filter .tablenav.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: auto;
  min-height: 0;
  margin: 10px 0;
  padding: 0;
}

body.groove.groove-overview_page_groove-all-folios #posts-filter .tablenav.top .actions,
body.groove.groove-folios_page_groove-all-folios #posts-filter .tablenav.top .actions,
body.groove.groove-overview_page_groove-folio #pages-filter .tablenav.top .actions,
body.groove.groove-folios_page_groove-folio #pages-filter .tablenav.top .actions,
body.groove.groove-overview_page_groove-all-folios #posts-filter .tablenav.top .tablenav-pages,
body.groove.groove-folios_page_groove-all-folios #posts-filter .tablenav.top .tablenav-pages,
body.groove.groove-overview_page_groove-folio #pages-filter .tablenav.top .tablenav-pages,
body.groove.groove-folios_page_groove-folio #pages-filter .tablenav.top .tablenav-pages {
  float: none;
  margin: 0;
  padding: 0;
}

body.groove.groove-overview_page_groove-all-folios #posts-filter .tablenav.top .tablenav-pages,
body.groove.groove-folios_page_groove-all-folios #posts-filter .tablenav.top .tablenav-pages,
body.groove.groove-overview_page_groove-folio #pages-filter .tablenav.top .tablenav-pages,
body.groove.groove-folios_page_groove-folio #pages-filter .tablenav.top .tablenav-pages {
  display: flex;
  align-items: center;
  gap: 8px;
}

body.groove.groove-overview_page_groove-all-folios #posts-filter .tablenav.top .displaying-num,
body.groove.groove-folios_page_groove-all-folios #posts-filter .tablenav.top .displaying-num,
body.groove.groove-overview_page_groove-folio #pages-filter .tablenav.top .displaying-num,
body.groove.groove-folios_page_groove-folio #pages-filter .tablenav.top .displaying-num {
  margin: 0;
}

body.groove.groove-overview_page_groove-all-folios #posts-filter .tablenav.top br.clear,
body.groove.groove-folios_page_groove-all-folios #posts-filter .tablenav.top br.clear,
body.groove.groove-overview_page_groove-folio #pages-filter .tablenav.top br.clear,
body.groove.groove-folios_page_groove-folio #pages-filter .tablenav.top br.clear {
  display: none;
}

/* Align only the header/footer "select all" checkbox column with header labels. */
body.groove.groove-overview_page_groove-all-folios #posts-filter .wp-list-table.widefat thead th.check-column,
body.groove.groove-folios_page_groove-all-folios #posts-filter .wp-list-table.widefat thead th.check-column,
body.groove.groove-overview_page_groove-folio #pages-filter .wp-list-table.widefat thead th.check-column,
body.groove.groove-folios_page_groove-folio #pages-filter .wp-list-table.widefat thead th.check-column,
body.groove.groove-overview_page_groove-all-folios #posts-filter .wp-list-table.widefat tfoot th.check-column,
body.groove.groove-folios_page_groove-all-folios #posts-filter .wp-list-table.widefat tfoot th.check-column,
body.groove.groove-overview_page_groove-folio #pages-filter .wp-list-table.widefat tfoot th.check-column,
body.groove.groove-folios_page_groove-folio #pages-filter .wp-list-table.widefat tfoot th.check-column {
  padding: 8px 0;
}

body.groove.groove-overview_page_groove-all-folios #posts-filter .wp-list-table.widefat tfoot td.check-column,
body.groove.groove-folios_page_groove-all-folios #posts-filter .wp-list-table.widefat tfoot td.check-column,
body.groove.groove-overview_page_groove-folio #pages-filter .wp-list-table.widefat tfoot td.check-column,
body.groove.groove-folios_page_groove-folio #pages-filter .wp-list-table.widefat tfoot td.check-column {
  padding-top: 0;
}

.g-top-bar-tabs {
  position: relative;
}

.g-top-bar-tabs .g-folio__nav-tab {
  background: transparent;
  border: none;
  position: relative;
  cursor: pointer;
}

.g-top-bar-tabs .g-folio__nav-tab.g-folio__nav-tab-active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #3858E9;
}

body.groove .g-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

body.groove .g-page-header__left,
body.groove .g-page-header__right {
  display: flex;
  align-items: center;
}

body.groove .g-page-header__left {
  min-width: 0;
  gap: 12px;
}

body.groove .g-page-header__title {
  margin: 0;
  padding: 0;
  line-height: 1.2;
}

body.groove .g-page-header__buttons {
  display: flex;
  align-items: center;
}

body.groove .g-page-header__buttons-group {
  gap: 8px;
}

body.groove .g-page-header__icon-button {
  width: 32px;
  min-width: 32px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.groove .g-page-header__icon-button .dashicons {
  width: 16px;
  height: 16px;
  font-size: 16px;
  line-height: 16px;
}

body.groove .g-tooltip-button {
  position: relative;
  overflow: visible;
  --g-tooltip-offset: 4px;
  --g-tooltip-arrow-size: 5px;
  --g-tooltip-shift-x: 0px;
  --g-tooltip-shift-y: 0px;
}

body.groove .g-tooltip-button .g-tooltip-bubble {
  position: absolute;
  background: #1f2937;
  color: #fff;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  padding: 6px 8px;
  max-width: min(240px, calc(100vw - 16px));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 100000;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

body.groove .g-tooltip-button .g-tooltip-arrow {
  content: "";
  position: absolute;
  border: var(--g-tooltip-arrow-size) solid transparent;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 100000;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

body.groove .g-tooltip-button[data-tooltip-placement="top"] .g-tooltip-bubble {
  left: 50%;
  bottom: calc(100% + var(--g-tooltip-offset) + var(--g-tooltip-arrow-size));
  transform: translate(calc(-50% + var(--g-tooltip-shift-x)), 2px);
}

body.groove .g-tooltip-button[data-tooltip-placement="top"] .g-tooltip-arrow {
  left: 50%;
  bottom: calc(100% + var(--g-tooltip-offset));
  border-top-color: #1f2937;
  transform: translate(calc(-50% + var(--g-tooltip-shift-x)), 2px);
}

body.groove .g-tooltip-button[data-tooltip-placement="bottom"] .g-tooltip-bubble {
  left: 50%;
  top: calc(100% + var(--g-tooltip-offset) + var(--g-tooltip-arrow-size));
  transform: translate(calc(-50% + var(--g-tooltip-shift-x)), -2px);
}

body.groove .g-tooltip-button[data-tooltip-placement="bottom"] .g-tooltip-arrow {
  left: 50%;
  top: calc(100% + var(--g-tooltip-offset));
  border-bottom-color: #1f2937;
  transform: translate(calc(-50% + var(--g-tooltip-shift-x)), -2px);
}

body.groove .g-tooltip-button[data-tooltip-placement="left"] .g-tooltip-bubble {
  right: calc(100% + var(--g-tooltip-offset) + var(--g-tooltip-arrow-size));
  top: 50%;
  transform: translate(2px, calc(-50% + var(--g-tooltip-shift-y)));
}

body.groove .g-tooltip-button[data-tooltip-placement="left"] .g-tooltip-arrow {
  right: calc(100% + var(--g-tooltip-offset));
  top: 50%;
  border-left-color: #1f2937;
  transform: translate(2px, calc(-50% + var(--g-tooltip-shift-y)));
}

body.groove .g-tooltip-button[data-tooltip-placement="right"] .g-tooltip-bubble {
  left: calc(100% + var(--g-tooltip-offset) + var(--g-tooltip-arrow-size));
  top: 50%;
  transform: translate(-2px, calc(-50% + var(--g-tooltip-shift-y)));
}

body.groove .g-tooltip-button[data-tooltip-placement="right"] .g-tooltip-arrow {
  left: calc(100% + var(--g-tooltip-offset));
  top: 50%;
  border-right-color: #1f2937;
  transform: translate(-2px, calc(-50% + var(--g-tooltip-shift-y)));
}

body.groove .g-tooltip-button:hover .g-tooltip-bubble,
body.groove .g-tooltip-button:focus .g-tooltip-bubble,
body.groove .g-tooltip-button.is-tooltip-visible .g-tooltip-bubble {
  opacity: 1;
  visibility: visible;
}

body.groove .g-tooltip-button:hover .g-tooltip-arrow,
body.groove .g-tooltip-button:focus .g-tooltip-arrow,
body.groove .g-tooltip-button.is-tooltip-visible .g-tooltip-arrow {
  opacity: 1;
  visibility: visible;
}

body.groove .g-tooltip-button[data-tooltip-placement="top"]:hover .g-tooltip-bubble,
body.groove .g-tooltip-button[data-tooltip-placement="top"]:focus .g-tooltip-bubble,
body.groove .g-tooltip-button[data-tooltip-placement="top"].is-tooltip-visible .g-tooltip-bubble {
  transform: translate(calc(-50% + var(--g-tooltip-shift-x)), 0);
}

body.groove .g-tooltip-button[data-tooltip-placement="top"]:hover .g-tooltip-arrow,
body.groove .g-tooltip-button[data-tooltip-placement="top"]:focus .g-tooltip-arrow,
body.groove .g-tooltip-button[data-tooltip-placement="top"].is-tooltip-visible .g-tooltip-arrow {
  transform: translate(calc(-50% + var(--g-tooltip-shift-x)), 0);
}

body.groove .g-tooltip-button[data-tooltip-placement="bottom"]:hover .g-tooltip-bubble,
body.groove .g-tooltip-button[data-tooltip-placement="bottom"]:focus .g-tooltip-bubble,
body.groove .g-tooltip-button[data-tooltip-placement="bottom"].is-tooltip-visible .g-tooltip-bubble {
  transform: translate(calc(-50% + var(--g-tooltip-shift-x)), 0);
}

body.groove .g-tooltip-button[data-tooltip-placement="bottom"]:hover .g-tooltip-arrow,
body.groove .g-tooltip-button[data-tooltip-placement="bottom"]:focus .g-tooltip-arrow,
body.groove .g-tooltip-button[data-tooltip-placement="bottom"].is-tooltip-visible .g-tooltip-arrow {
  transform: translate(calc(-50% + var(--g-tooltip-shift-x)), 0);
}

body.groove .g-tooltip-button[data-tooltip-placement="left"]:hover .g-tooltip-bubble,
body.groove .g-tooltip-button[data-tooltip-placement="left"]:focus .g-tooltip-bubble,
body.groove .g-tooltip-button[data-tooltip-placement="left"].is-tooltip-visible .g-tooltip-bubble {
  transform: translate(0, calc(-50% + var(--g-tooltip-shift-y)));
}

body.groove .g-tooltip-button[data-tooltip-placement="left"]:hover .g-tooltip-arrow,
body.groove .g-tooltip-button[data-tooltip-placement="left"]:focus .g-tooltip-arrow,
body.groove .g-tooltip-button[data-tooltip-placement="left"].is-tooltip-visible .g-tooltip-arrow {
  transform: translate(0, calc(-50% + var(--g-tooltip-shift-y)));
}

body.groove .g-tooltip-button[data-tooltip-placement="right"]:hover .g-tooltip-bubble,
body.groove .g-tooltip-button[data-tooltip-placement="right"]:focus .g-tooltip-bubble,
body.groove .g-tooltip-button[data-tooltip-placement="right"].is-tooltip-visible .g-tooltip-bubble {
  transform: translate(0, calc(-50% + var(--g-tooltip-shift-y)));
}

body.groove .g-tooltip-button[data-tooltip-placement="right"]:hover .g-tooltip-arrow,
body.groove .g-tooltip-button[data-tooltip-placement="right"]:focus .g-tooltip-arrow,
body.groove .g-tooltip-button[data-tooltip-placement="right"].is-tooltip-visible .g-tooltip-arrow {
  transform: translate(0, calc(-50% + var(--g-tooltip-shift-y)));
}

.g-folio__fields {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  overflow: hidden;
}

.g-folio__media-preview-frame {
  width: 160px;
  height: 120px;
  box-sizing: border-box;
  flex: 0 0 auto;
}

.g-folio__media-preview-image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.g-folio__media-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.g-folio__media-col {
  min-width: 0;
}

.g-folio__fields-section {
  overflow: hidden;
  flex: 1 1 0;
  min-width: 0;
  width: auto;
}

.g-folio__fields-left {
  margin-right: 0;
}

.g-folio__fields-header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
  padding: 15px;
}

.g-folio__fields-title {
  font-size: 16px;
  font-weight: 500;
  margin: 0;
}

.g-folio__postbox {
  width: 100%;
}

.g-top-bar__right {
  display: flex;
  align-items: center;
}

.g-folio__buttons {
  display: flex;
  align-items: center;
}

.g-folio__button:link {
  text-decoration: none;
}

.g-folio__button {
  width: 100px;
  min-width: 88px;
  height: 32px;
  border-radius: 2px;
  font-size: 13px;
  color: #3858E9;
  border: 1px solid #3858E9;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 10px;
}

.g-folio__button.g-folio__button-blank {
  color: #3858E9;
  border: 1px solid transparent;
  background-color: #ffffff;
}

.g-folio__button.g-folio__button-secondary {
  color: #3858E9;
  border: 1px solid #F0F6FC;
  background-color: #F0F6FC;
}

.g-folio__button.g-folio__button-primary {
  background-color: #3858E9;
  border-color: #3858E9;
  color: #fff;
}

.g-folio__content {
  display: flex;
  justify-content: center;
  align-items: center;
}

.g-folio__postbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 0 8px rgba(0, 0, 0, .1);
}

.g-folio__postbox-body {
  padding: 15px;
}

.g-folio__postbox-title {
  padding-left: 15px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.g-folio__postbox-close {
  border-inline-start: 1px solid #eee;
  font-size: 0;
  color: inherit;
  cursor: pointer;
}

.g-folio__postbox-icon:link {
  color: #000;
}

.g-folio__postbox-icon {
  padding: 15px;
  font-size: 16px;
  text-decoration: none;
}

.g-folio__postbox-themes .postbox {
  border: none;
}

.g-folio__themes {
  margin-top: 16px;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 16px;
  align-content: start;
  max-height: 360px;
  overflow-y: auto;
  /* Extra padding gives room for the absolutely-positioned Selected badge
     that sticks -8px above and to the right of the first-row cards */
  padding-top: 10px;
  padding-right: 12px;
  scrollbar-gutter: stable;
}

.g-folio__themes-desc {
  margin: 0;
  color: #2C3338;
}

.g-folio__themes-selected {
  margin: 8px 0 0;
  color: #50575e;
}

.g-folio__theme-option {
  appearance: none;
  -webkit-appearance: none;
  border-radius: 8px;
  padding: 0;
  text-align: left;
  background: #fff;
  color: inherit;
  font: inherit;
}

.g-folio__theme-option--add-new {
  width: auto;
  min-width: 0;
  max-width: 100%;
}

.g-folio__theme-option:focus-visible {
  outline: 2px solid #3858E9;
  outline-offset: 2px;
}

.g-folio__themes::-webkit-scrollbar {
  width: 10px;
}

.g-folio__themes::-webkit-scrollbar-track {
  background: #f2f4f6;
  border-radius: 999px;
}

.g-folio__themes::-webkit-scrollbar-thumb {
  background: #c5cbd1;
  border-radius: 999px;
  border: 2px solid #f2f4f6;
}

.g-folio__themes::-webkit-scrollbar-thumb:hover {
  background: #aeb5bc;
}

.g-folio__themes {
  scrollbar-width: thin;
  scrollbar-color: #c5cbd1 #f2f4f6;
}

.g-folio__theme-button {
  display: flex;
  justify-content: flex-end;
}

.g-folio__theme-thumb {
  width: 100%;
  height: 150px;
}

.g-folio__theme-thumb img {
  width: 100%;
}

/* Uniform thumbnail height across all theme cards in the Add New modal */
.g-folio__theme-option-thumb {
  height: 120px !important;
  overflow: hidden;
  background: #f3f4f6;
}

.g-folio__theme-option-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.g-folio__footer-version {}

#g-folio-save-indicator {
  position: fixed;
  left: 50%;
  bottom: 22px;
  right: auto;
  z-index: 9999;
  background: #f0f6fc;
  border: 1px solid #d0d7de;
  border-radius: 999px;
  color: #1d2327;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  padding: 10px 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

#g-folio-save-indicator.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

#g-folio-save-indicator.is-saving {
  background: #fff7e6;
  border-color: #f0b849;
  color: #8a5600;
}

#g-folio-save-indicator.is-saved,
#g-folio-save-indicator.is-visible:not(.is-saving):not(.is-error):not(.is-saved) {
  background: #edfaef;
  border-color: #7bc48b;
  color: #0f5132;
}

#g-folio-save-indicator.is-error {
  background: #fff1f2;
  border-color: #e35d6a;
  color: #9f1239;
}

.g-folio__blocks {
  width: 650px;
}


/*  */

@media screen and (max-width: 960px) {
  .g-top-bar-root {
    left: 36px;
    width: calc(100% - 36px);
  }
}

@media screen and (max-width: 782px) {
  .g-top-bar-root {
    width: 100%;
  }
}

@media screen and (max-width: 600px) {
  .g-top-bar-root {
    left: 0;
  }
}

@media (max-width: 768px) {
  .g-top-bar-root {
    display: inline-flex;
    left: 0;
    top: 46px;
    flex-direction: column;
  }
}

@media (min-width: 768px) {
  .g-top-bar-root .g-top-bar__secondary-area .g-top-bar__secondary-area-buttons {
    display: flex;
  }
}


/* ── Themes Admin Page ────────────────────────────────────────────────── */

.g-themes-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}

.g-themes-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.g-themes-summary-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  padding: 14px 16px;
}

.g-themes-summary-label {
  color: #6b7280;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.g-themes-summary-value {
  color: #111827;
  font-size: 24px;
  line-height: 1.2;
  margin-top: 6px;
  font-weight: 700;
}

.g-themes-section {
  background: #fff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
}

.g-themes-section-header {
  margin-bottom: 16px;
  border-bottom: 1px solid #f3f4f6;
  padding-bottom: 12px;
}

.g-themes-section-title {
  color: #1f2937;
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}

.g-themes-section-desc {
  color: #6b7280;
  margin: 6px 0 0;
  font-size: 13px;
}

.g-themes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}

.g-themes-card {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.g-themes-card:hover {
  border-color: #c7d2fe;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.g-themes-card-thumb {
  position: relative;
  height: 160px;
  background: #f3f4f6;
  border-bottom: 1px solid #f3f4f6;
}

.g-themes-card-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.g-themes-card-body {
  padding: 12px 14px 14px;
}

.g-themes-card-meta {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  min-height: 24px;
}

.g-themes-card-name {
  color: #111827;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.3;
  flex: 1;
}

.g-themes-tag {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border-radius: 999px;
  font-weight: 600;
  white-space: nowrap;
}

.g-themes-tag--builtin {
  background: #f3f4f6;
  color: #4b5563;
}

.g-themes-tag--installed {
  background: #e0e7ff;
  color: #3730a3;
}

.g-themes-card-id {
  color: #6b7280;
  font-size: 12px;
  margin: 0 0 12px;
  word-break: break-word;
}

.g-themes-card-id code {
  background: #f3f4f6;
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 11px;
}

.g-themes-delete-btn {
  color: #b42318 !important;
  border-color: #fecaca !important;
  background: #fff !important;
}

.g-themes-delete-btn:hover {
  color: #912018 !important;
  border-color: #fca5a5 !important;
  background: #fef2f2 !important;
}

.g-themes-empty {
  background: #f9fafb;
  border: 1px dashed #d1d5db;
  border-radius: 8px;
  padding: 18px;
  color: #4b5563;
}

.g-themes-empty p {
  margin: 0;
}

/* ── Upload Section ──────────────────────────────────────────────────── */

.g-themes-upload-section {
  border-top: 3px solid #4f46e5;
}

.g-themes-upload-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 16px;
}

.g-themes-upload-form {
  margin: 0;
}

.g-themes-dropzone {
  border: 2px dashed #cbd5e1;
  border-radius: 8px;
  padding: 32px 24px;
  text-align: center;
  background: #f8fafc;
  transition: all 0.2s ease;
  margin-bottom: 12px;
  position: relative;
}

.g-themes-dropzone--over {
  border-color: #4f46e5;
  background: #eef2ff;
}

.g-themes-dropzone--has-file {
  border-style: solid;
  border-color: #4f46e5;
}

.g-themes-dropzone-icon {
  font-size: 34px;
  margin-bottom: 10px;
}

.g-themes-dropzone-label {
  color: #0f172a;
  font-size: 16px;
  font-weight: 500;
  margin: 0 0 8px;
}

.g-themes-dropzone-sub {
  color: #64748b;
  margin: 0 0 12px;
  font-size: 13px;
}

.g-themes-file-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.g-themes-file-name {
  margin: 12px 0 0;
  font-weight: 500;
  color: #3730a3;
}

.g-themes-upload-actions {
  display: flex;
  justify-content: flex-end;
}

.g-themes-package-info {
  margin: 0;
  padding: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.g-themes-package-info h3 {
  margin: 0 0 8px;
  color: #0f172a;
}

.g-themes-package-info p {
  margin: 0 0 10px;
  color: #475569;
  font-size: 13px;
}

.g-themes-code {
  background: #0f172a;
  color: #e2e8f0;
  padding: 12px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.55;
  overflow-x: auto;
  margin: 0 0 12px;
}

/* ── Notices ─────────────────────────────────────────────────────────── */

.g-themes-notice {
  padding: 12px 14px;
  border-radius: 8px;
  margin-bottom: 16px;
  border: 1px solid transparent;
  border-left-width: 4px;
  font-size: 13px;
}

.g-themes-notice--success {
  background: #ecfdf3;
  border-color: #34d399;
  color: #065f46;
}

.g-themes-notice--error {
  background: #fef2f2;
  border-color: #f87171;
  color: #991b1b;
}

@media (max-width: 960px) {
  .g-themes-summary-grid {
    grid-template-columns: 1fr;
  }

  .g-themes-upload-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Theme Selection in Folio Editor ─────────────────────────────────── */

.g-theme-selection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 15px;
  margin-top: 10px;
}

.g-theme-selection-item {
  position: relative;
  border: 1px solid #dcdcde;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #fff;
}

.g-theme-selection-item:hover {
  border-color: #3858E9;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.g-theme-selection-item.is-active {
  border-color: #3858E9;
  box-shadow: 0 0 0 2px rgba(56, 88, 233, 0.2);
}

.g-theme-selection-thumb {
  height: 85px;
  background-size: cover;
  background-position: center;
  background-color: #f6f7f7;
  border-bottom: 1px solid #f0f0f1;
}

.g-theme-selection-name {
  padding: 6px;
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  color: #1d2327;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.g-theme-selection-badge {
  position: absolute;
  top: 5px;
  right: 5px;
  background: #3858E9;
  color: #fff;
  font-size: 9px;
  padding: 1px 5px;
  border-radius: 3px;
  text-transform: uppercase;
  font-weight: 600;
  line-height: 1.4;
}

body.groove .g-theme-picker-summary {
  border: 1px solid #dcdcde;
  border-radius: 10px;
  background: #f8f9fb;
  padding: 14px;
}

body.groove .g-theme-picker-summary__layout {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

body.groove .g-theme-picker-summary__thumb {
  width: 96px;
  height: 80px;
  flex: 0 0 96px;
  overflow: hidden;
  border: 1px solid #dcdcde;
  border-radius: 8px;
  background: #fff;
}

body.groove .g-theme-picker-summary__thumb-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.groove .g-theme-picker-summary__content {
  min-width: 0;
  flex: 1 1 auto;
}

body.groove .g-theme-picker-summary__name {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 600;
  color: #1d2327;
}

body.groove .g-theme-picker-summary__description {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: #646970;
}

body.groove .g-theme-picker-modal__close,
body.groove .g-theme-picker-modal__done {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #c3c4c7;
  border-radius: 6px;
  background: #fff;
  color: #2c3338;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

body.groove .g-theme-picker-modal__close:hover,
body.groove .g-theme-picker-modal__done:hover {
  background: #f6f7f7;
  border-color: #8c8f94;
}

body.groove .g-theme-picker-summary__button {
  margin-top: 12px;
}

body.groove .g-theme-picker-modal__close:focus,
body.groove .g-theme-picker-modal__done:focus {
  outline: 2px solid #3858e9;
  outline-offset: 2px;
}

body.groove .g-theme-picker-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

body.groove .g-theme-picker-modal.hidden {
  display: none;
}

body.groove .g-theme-picker-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.45);
}

body.groove .g-theme-picker-modal__frame {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1120px;
  max-height: 90vh;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
}

body.groove .g-theme-picker-modal__header,
body.groove .g-theme-picker-modal__footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid #dcdcde;
}

body.groove .g-theme-picker-modal__footer {
  justify-content: flex-end;
  align-items: center;
  border-top: 1px solid #dcdcde;
  border-bottom: 0;
}

body.groove .g-theme-picker-modal__heading {
  min-width: 0;
}

body.groove .g-theme-picker-modal__title {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 600;
  color: #1d2327;
}

body.groove .g-theme-picker-modal__subtitle {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: #646970;
}

body.groove .g-theme-picker-modal__close {
  width: 36px;
  height: 36px;
  padding: 0;
  flex: 0 0 36px;
}

body.groove .g-theme-picker-modal__body {
  overflow-y: auto;
  padding: 20px;
}

body.groove .g-theme-picker-modal__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

body.groove .g-theme-picker-modal__option {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  border-width: 2px;
  border-style: solid;
  border-color: #dcdcde;
  box-shadow: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

body.groove .g-theme-picker-modal__option:hover {
  border-color: #b9c0c8;
}

body.groove .g-theme-picker-modal__option.is-active {
  border-color: #3858e9;
  box-shadow: 0 0 0 1px #3858e9;
}

body.groove .g-theme-picker-modal__option.is-active:hover {
  border-color: #3858e9;
}

body.groove .g-theme-picker-modal__option-media {
  height: 96px;
  overflow: hidden;
  border-bottom: 1px solid #dcdcde;
  background: #eef1f4;
}

body.groove .g-theme-picker-modal__option-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.groove .g-theme-picker-modal__option-copy {
  padding: 12px;
  background: #fff;
}

body.groove .g-theme-picker-modal__option-name {
  font-size: 14px;
  line-height: 1.4;
  font-weight: 600;
  color: #1d2327;
}

body.groove .g-theme-picker-modal__option-description {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.5;
  color: #646970;
}

body.groove .g-theme-picker-modal__badge {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #3858e9;
  color: #fff;
  padding: 4px 8px;
  font-size: 11px;
  line-height: 1;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(56, 88, 233, 0.28);
}

body.groove .g-theme-picker-modal__badge.is-hidden {
  display: none;
}

body.groove .g-theme-picker-modal__done {
  padding: 9px 14px;
}

body.groove .g-version-history-modal__frame {
  max-width: 960px;
}

@media screen and (max-width: 782px) {
  body.groove .g-theme-picker-summary__layout {
    flex-direction: column;
  }

  body.groove .g-theme-picker-summary__thumb {
    width: 100%;
    max-width: 220px;
    height: 120px;
    flex-basis: auto;
  }

  body.groove .g-theme-picker-modal {
    padding: 12px;
  }

  body.groove .g-theme-picker-modal__header,
  body.groove .g-theme-picker-modal__footer,
  body.groove .g-theme-picker-modal__body {
    padding: 16px;
  }

  body.groove .g-theme-picker-modal__grid {
    grid-template-columns: 1fr;
  }
}

/* Proposal information modal (folio setup) */
body.groove .g-proposal-info-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

body.groove .g-proposal-info-modal.hidden {
  display: none;
}

body.groove .g-proposal-info-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.6);
}

body.groove .g-proposal-info-modal__frame {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 960px;
}

body.groove .g-proposal-info-modal__panel {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
}

body.groove .g-proposal-info-modal__body {
  max-height: 75vh;
  overflow-y: auto;
}

/* WordPress admin notices conflict with Tailwind's global `.inline` utility. */
body.groove .notice.inline:not(.hidden) {
  display: block;
}

/* All Folios collection filter pills */
body.groove .g-all-folios__collection-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
}

body.groove .g-all-folios__filters-row {
  clear: both;
  margin: 4px 0 0;
  padding-bottom: 8px;
  border-bottom: 1px solid #b9c0c8;
}

body.groove .g-all-folios__collection-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid #c3c4c7;
  border-radius: 999px;
  background: #fff;
  color: #1d2327;
  text-decoration: none;
  line-height: 1;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

body.groove .g-all-folios__collection-pill[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  top: calc(100% + 7px);
  left: 50%;
  transform: translateX(-50%);
  background: #1d2327;
  color: #fff;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.4;
  white-space: nowrap;
  padding: 4px 8px;
  border-radius: 4px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 9999;
}

body.groove .g-all-folios__collection-pill[data-tooltip]:hover::after,
body.groove .g-all-folios__collection-pill[data-tooltip]:focus::after {
  opacity: 1;
}

body.groove .g-all-folios__collection-pill:hover,
body.groove .g-all-folios__collection-pill:focus {
  border-color: #2271b1;
  color: #135e96;
  box-shadow: 0 0 0 1px rgba(34, 113, 177, 0.15);
  outline: none;
}

body.groove .g-all-folios__collection-pill.is-active {
  border-color: #2271b1;
  background: #2271b1;
  color: #fff;
  box-shadow: none;
}

body.groove .g-all-folios__collection-pill.is-active:hover,
body.groove .g-all-folios__collection-pill.is-active:focus {
  border-color: #135e96;
  background: #135e96;
  color: #fff;
}

/* All Folios table — fixed column widths so pill filtering doesn't shift columns */
body.groove .wp-list-table.table-view-list.posts {
  table-layout: fixed;
}

body.groove .wp-list-table.table-view-list.posts .column-cb {
  width: 38px;
}

body.groove .wp-list-table.table-view-list.posts th:nth-child(3),
body.groove .wp-list-table.table-view-list.posts th:nth-child(4),
body.groove .wp-list-table.table-view-list.posts th:nth-child(5),
body.groove .wp-list-table.table-view-list.posts th:nth-child(6),
body.groove .wp-list-table.table-view-list.posts th:nth-child(7) {
  white-space: nowrap;
}

body.groove .wp-list-table.table-view-list.posts th:nth-child(3) {
  width: 155px;
}

body.groove .wp-list-table.table-view-list.posts th:nth-child(4) {
  width: 155px;
}

body.groove .wp-list-table.table-view-list.posts th:nth-child(5) {
  width: 115px;
}

body.groove .wp-list-table.table-view-list.posts th:nth-child(6) {
  width: 115px;
}

body.groove .wp-list-table.table-view-list.posts th:nth-child(7) {
  width: 195px;
}

/* Collection tags combobox dropdown */
body.groove .g-tag-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 4px;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  list-style: none;
  padding: 4px 0;
  margin-left: 0;
  max-height: 180px;
  overflow-y: auto;
  z-index: 9999;
}

body.groove .g-tag-dropdown.is-open {
  display: block;
}

body.groove .g-tag-dropdown li {
  padding: 7px 12px;
  font-size: 13px;
  cursor: pointer;
  color: #374151;
  margin: 0;
}

body.groove .g-tag-dropdown li:hover,
body.groove .g-tag-dropdown li.is-active {
  background: #eef2ff;
  color: #4338ca;
}

body.groove .g-tag-dropdown li.g-tag-dropdown__create {
  color: #6b7280;
  font-style: italic;
}

body.groove .g-tag-dropdown li.g-tag-dropdown__create:hover,
body.groove .g-tag-dropdown li.g-tag-dropdown__create.is-active {
  background: #eef2ff;
  color: #4338ca;
}

/* ── Add New Folio modal ────────────────────────────────────────────────── */

.g-add-new-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.g-add-new-modal[hidden] {
  display: flex !important;
  visibility: hidden;
}

.g-add-new-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.g-add-new-modal.is-open {
  visibility: visible;
}

.g-add-new-modal.is-open .g-add-new-modal__backdrop {
  opacity: 1;
}

.g-add-new-modal__dialog {
  position: relative;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
  width: 700px;
  max-width: calc(100vw - 40px);
  max-height: calc(100vh - 60px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.g-add-new-modal.is-open .g-add-new-modal__dialog {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.g-add-new-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #e5e7eb;
  flex-shrink: 0;
}

.g-add-new-modal__title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #111827;
}

.g-add-new-modal__close {
  -webkit-appearance: none;
  appearance: none;
  background: none;
  border: none;
  padding: 6px;
  margin: 0;
  cursor: pointer;
  color: #9ca3af;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, background 0.15s;
}

.g-add-new-modal__close:hover,
.g-add-new-modal__close:focus-visible {
  color: #374151;
  background: #f3f4f6;
  outline: none;
}

.g-add-new-modal__body {
  overflow-y: auto;
  padding: 20px;
  flex: 1 1 auto;
}

/* Remove the existing postbox chrome when rendered inside the modal */
.g-add-new-modal__body .g-folio__content,
.g-add-new-modal__body .g-folio__postbox-themes {
  display: block !important;
}

.g-add-new-modal__body .g-folio__postbox,
.g-add-new-modal__body .postbox-container,
.g-add-new-modal__body .postbox {
  width: auto !important;
  box-shadow: none !important;
  border: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
}

.g-add-new-modal__body .g-folio__postbox-header,
.g-add-new-modal__body .g-folio__postbox-close {
  display: none !important;
}

.g-add-new-modal__body .g-folio__postbox-body {
  padding: 0 !important;
}

@media (prefers-reduced-motion: reduce) {
  .g-add-new-modal__backdrop {
    transition: none;
  }
  .g-add-new-modal__dialog {
    transition: none;
  }
}

/* ── Theme card wrap + preview button ───────────────────────────────────── */

.g-folio__theme-card-wrap {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
}

.g-theme-preview-btn {
  -webkit-appearance: none;
  appearance: none;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  font-size: 11px;
  color: #6b7280;
  cursor: pointer;
  text-align: center;
  letter-spacing: 0.01em;
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: color 0.15s, text-decoration-color 0.15s;
}

.g-theme-preview-btn:hover,
.g-theme-preview-btn:focus-visible {
  color: #374151;
  text-decoration-color: currentColor;
  outline: none;
}

/* ── Theme Picker Preview overlay ───────────────────────────────────────── */

.g-tpp-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  flex-direction: column;
  background: #111;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.22s ease, transform 0.22s ease;
  /* pointer-events blocked while hidden so clicks pass through */
  pointer-events: none;
}

.g-tpp-overlay[hidden] {
  /* hidden attr hides, but we keep it in the DOM for transitions */
  display: flex !important;
  visibility: hidden;
}

.g-tpp-overlay.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  visibility: visible;
}

/* Header */
.g-tpp-header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 0;
  height: 44px;
  background: #1a1a1a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding: 0 12px 0 16px;
}

/* Tab bar */
.g-tpp-tabs {
  display: flex;
  align-items: stretch;
  gap: 0;
  flex: 1 1 auto;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.g-tpp-tab {
  -webkit-appearance: none;
  appearance: none;
  background: none;
  border: none;
  padding: 0 14px;
  margin: 0;
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  position: relative;
  height: 100%;
  transition: color 0.15s;
}

.g-tpp-tab:hover {
  color: rgba(255, 255, 255, 0.75);
}

.g-tpp-tab.is-active {
  color: #fff;
}

/* Tab active indicator — view-transition animates this */
.g-tpp-tab.is-active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 12px;
  right: 12px;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: rgba(255, 255, 255, 0.7);
  view-transition-name: gfp-tab-active;
}

/* Close button */
.g-tpp-close {
  -webkit-appearance: none;
  appearance: none;
  background: none;
  border: none;
  padding: 6px;
  margin: 0 0 0 8px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.45);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: color 0.15s, background 0.15s;
  font-size: 18px;
  line-height: 1;
}

.g-tpp-close:hover,
.g-tpp-close:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

/* Iframe container */
.g-tpp-iframe-wrap {
  flex: 1 1 auto;
  position: relative;
  overflow: hidden;
  background: #1e1e1e;
}

.g-tpp-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  transition: opacity 0.18s;
}

/* Loading state */
.g-tpp-iframe-wrap.is-loading .g-tpp-iframe {
  opacity: 0;
}

.g-tpp-loader {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s;
}

.g-tpp-iframe-wrap.is-loading .g-tpp-loader {
  opacity: 1;
}

/* Spinner ring */
.g-tpp-loader::after {
  content: '';
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-top-color: rgba(255, 255, 255, 0.5);
  animation: g-tpp-spin 0.7s linear infinite;
}

@keyframes g-tpp-spin {
  to { transform: rotate(360deg); }
}

/* ── View Transition — tab indicator slide ──────────────────────────────── */

::view-transition-old(gfp-tab-active),
::view-transition-new(gfp-tab-active) {
  animation-duration: 0.2s;
  animation-timing-function: ease;
  mix-blend-mode: normal;
}

/* ── Reduced motion ─────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .g-tpp-overlay {
    transition: none;
  }
  .g-tpp-iframe {
    transition: none;
  }
  .g-tpp-loader {
    transition: none;
  }
  .g-tpp-loader::after {
    animation: none;
    border-top-color: rgba(255, 255, 255, 0.5);
  }
  ::view-transition-old(gfp-tab-active),
  ::view-transition-new(gfp-tab-active) {
    animation: none;
  }
}