/**
 * Custom CSS for Self-Hosted Excalidraw
 * ======================================
 *
 * This file is injected into the app to customize the UI for self-hosted deployments.
 * Add your custom styles here to hide unwanted elements or restyle the app.
 *
 * HOW TO MAINTAIN AFTER UPSTREAM SYNC:
 *   This file is in worker/ and won't be overwritten by upstream.
 *   See CUSTOMIZATIONS.md for full maintenance instructions.
 */

/* =============================================================================
   Hide Excalidraw+ promotional elements
   ============================================================================= */

/* Hide "Excalidraw+" menu item in hamburger menu */
.dropdown-menu-item[href*="plus"] {
  display: none !important;
}

/* Hide Sign up/Sign in menu items that link to Excalidraw+ */
.dropdown-menu-item[href*="sign-up"],
.dropdown-menu-item[href*="signin"] {
  display: none !important;
}

/* Replace Excalidraw+ promo with Rocket Science logo */
[class*="ExcalidrawPlusPromoBanner"],
[class*="excalidraw-plus"],
[data-testid="excalidraw-plus-promo"],
.excalidraw-ui-top-right > [class*="Promo"],
.excalidraw-ui-top-right > a[href*="plus"] {
  font-size: 0 !important;
  color: transparent !important;
  background: url("data:image/svg+xml,%3Csvg width='206' height='51' viewBox='0 0 206 51' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M70.7109 18.85C70.9709 19.21 71.2009 19.6 71.3709 20.02C72.8009 23.45 72.3309 27.64 70.1609 30.67L69.5909 31.47C67.4809 34.42 64.3509 36.49 60.9009 37.36L66.4709 45.06C67.2209 46.11 67.3009 47.44 66.6909 48.62C66.0009 49.96 64.6009 50.82 63.1209 50.82H13.3309C12.1809 50.82 11.2709 50.28 10.5309 49.26L0.410887 35.26C0.410887 35.26 0.360895 35.18 0.340895 35.14C-0.199105 34.05 -0.0891162 32.76 0.610884 31.76L20.9009 3.57001C22.4809 1.34001 25.0609 0.0100098 27.8009 0.0100098H51.7109C55.1609 0.0300098 58.3509 1.74001 60.3209 4.49001L70.7009 18.86L70.7109 18.85Z' fill='%231E2225'/%3E%3Cpath d='M27.7809 2.17999C25.7409 2.17999 23.8309 3.16999 22.6409 4.82999L2.37087 33.01C1.83087 33.77 2.37087 34.83 3.31087 34.83H17.0209C18.0409 34.83 18.9909 34.34 19.5909 33.52L27.9009 21.92L36.3009 33.54C36.9009 34.22 37.9109 34.84 38.9509 34.84H53.2909C54.4909 34.84 55.5809 33.49 54.8909 32.51L47.1909 21.84H47.4309C51.6309 21.84 55.5609 19.81 58.0009 16.4L58.5709 15.6C62.5609 10.02 58.6009 2.19999 51.7409 2.17999H27.7709H27.7809Z' fill='%23F04F4F'/%3E%3Cpath d='M59.5409 22.36L59.1909 23.77L57.7709 24.13L59.1909 24.48L59.5409 25.9L59.8909 24.48L61.3109 24.13L59.8909 23.77L59.5409 22.36Z' fill='%23FCFCFC'/%3E%3Cpath d='M16.7009 37.86L15.9909 40.69L13.1609 41.4L15.9909 42.11L16.7009 44.94L17.4109 42.11L20.2409 41.4L17.4109 40.69L16.7009 37.86Z' fill='%23FCFCFC'/%3E%3Cpath d='M26.7309 34.91C27.1672 34.91 27.5209 34.5563 27.5209 34.12C27.5209 33.6837 27.1672 33.33 26.7309 33.33C26.2946 33.33 25.9409 33.6837 25.9409 34.12C25.9409 34.5563 26.2946 34.91 26.7309 34.91Z' fill='%23FCFCFC'/%3E%3Cpath d='M52.1709 45.79C52.6072 45.79 52.9609 45.4363 52.9609 45C52.9609 44.5637 52.6072 44.21 52.1709 44.21C51.7346 44.21 51.3809 44.5637 51.3809 45C51.3809 45.4363 51.7346 45.79 52.1709 45.79Z' fill='%23FCFCFC'/%3E%3Cpath d='M31.6509 38.25C31.8552 38.25 32.0209 38.0844 32.0209 37.88C32.0209 37.6757 31.8552 37.51 31.6509 37.51C31.4465 37.51 31.2809 37.6757 31.2809 37.88C31.2809 38.0844 31.4465 38.25 31.6509 38.25Z' fill='%23FCFCFC'/%3E%3Cpath d='M34.0109 44.69C34.2152 44.69 34.3809 44.5244 34.3809 44.32C34.3809 44.1157 34.2152 43.95 34.0109 43.95C33.8065 43.95 33.6409 44.1157 33.6409 44.32C33.6409 44.5244 33.8065 44.69 34.0109 44.69Z' fill='%23FCFCFC'/%3E%3Cpath d='M35.5809 43.37C35.7852 43.37 35.9509 43.2044 35.9509 43C35.9509 42.7957 35.7852 42.63 35.5809 42.63C35.3765 42.63 35.2109 42.7957 35.2109 43C35.2109 43.2044 35.3765 43.37 35.5809 43.37Z' fill='%23FCFCFC'/%3E%3Cpath d='M64.5609 17.84C64.7653 17.84 64.9309 17.6744 64.9309 17.47C64.9309 17.2657 64.7653 17.1 64.5609 17.1C64.3566 17.1 64.1909 17.2657 64.1909 17.47C64.1909 17.6744 64.3566 17.84 64.5609 17.84Z' fill='%23FCFCFC'/%3E%3Cpath d='M63.1209 27.93C63.3253 27.93 63.4909 27.7643 63.4909 27.56C63.4909 27.3557 63.3253 27.19 63.1209 27.19C62.9166 27.19 62.7509 27.3557 62.7509 27.56C62.7509 27.7643 62.9166 27.93 63.1209 27.93Z' fill='%23FCFCFC'/%3E%3Cpath d='M54.3109 39.31C54.5153 39.31 54.6809 39.1443 54.6809 38.94C54.6809 38.7357 54.5153 38.57 54.3109 38.57C54.1066 38.57 53.9409 38.7357 53.9409 38.94C53.9409 39.1443 54.1066 39.31 54.3109 39.31Z' fill='%23FCFCFC'/%3E%3Cpath d='M65.3509 29.18C65.5552 29.18 65.7209 29.0143 65.7209 28.81C65.7209 28.6057 65.5552 28.44 65.3509 28.44C65.1465 28.44 64.9809 28.6057 64.9809 28.81C64.9809 29.0143 65.1465 29.18 65.3509 29.18Z' fill='%23FCFCFC'/%3E%3Cpath d='M43.2509 40.42C43.4553 40.42 43.6209 40.2543 43.6209 40.05C43.6209 39.8457 43.4553 39.68 43.2509 39.68C43.0466 39.68 42.8809 39.8457 42.8809 40.05C42.8809 40.2543 43.0466 40.42 43.2509 40.42Z' fill='%23FCFCFC'/%3E%3Cpath d='M93.461 21.31L88.231 16.01C88.121 15.9 87.961 15.83 87.801 15.83C87.471 15.83 87.201 16.1 87.201 16.43V20.89C87.201 21.22 86.931 21.49 86.601 21.49H81.581C81.251 21.49 80.981 21.22 80.981 20.89V0.609993C80.981 0.279993 81.251 0.00999451 81.581 0.00999451H95.701C96.691 0.00999451 97.491 0.809995 97.491 1.8V14.04C97.491 15.03 96.691 15.83 95.701 15.83C95.171 15.83 94.901 16.47 95.271 16.85L98.841 20.47C99.211 20.85 98.951 21.49 98.411 21.49H93.881C93.721 21.49 93.571 21.43 93.451 21.31H93.461ZM87.211 4.98V10.85C87.211 11.18 87.481 11.45 87.811 11.45H90.681C91.011 11.45 91.281 11.18 91.281 10.85V4.98C91.281 4.65 91.011 4.37999 90.681 4.37999H87.811C87.481 4.37999 87.211 4.65 87.211 4.98Z' fill='%231E2225'/%3E%3Cpath d='M112.191 0.00999451H115.301C117.021 0.00999451 118.411 1.4 118.411 3.12V18.38C118.411 20.1 117.021 21.49 115.301 21.49H103.681C101.961 21.49 100.571 20.1 100.571 18.38V3.12C100.571 1.4 101.961 0.00999451 103.681 0.00999451H112.191ZM112.191 15.48V6.00999C112.191 5.10999 111.461 4.37999 110.561 4.37999H108.421C107.521 4.37999 106.791 5.10999 106.791 6.00999V15.48C106.791 16.38 107.521 17.11 108.421 17.11H110.561C111.461 17.11 112.191 16.38 112.191 15.48Z' fill='%231E2225'/%3E%3Cpath d='M137.411 0.00999451C138.471 0.00999451 139.331 0.869997 139.331 1.93V6.32999C139.331 7.01999 138.771 7.57999 138.081 7.57999H134.361C133.671 7.57999 133.111 7.01999 133.111 6.32999V5.62999C133.111 4.93999 132.551 4.37999 131.861 4.37999H128.961C128.271 4.37999 127.711 4.93999 127.711 5.62999V15.87C127.711 16.56 128.271 17.12 128.961 17.12H131.861C132.551 17.12 133.111 16.56 133.111 15.87V14.58C133.111 13.89 133.671 13.33 134.361 13.33H138.081C138.771 13.33 139.331 13.89 139.331 14.58V19.57C139.331 20.63 138.471 21.49 137.411 21.49H123.421C122.361 21.49 121.501 20.63 121.501 19.57V1.93999C121.501 0.879995 122.361 0.0199928 123.421 0.0199928H137.411V0.00999451Z' fill='%231E2225'/%3E%3Cpath d='M159.901 1.4L151.221 10.18C150.911 10.5 150.911 11.01 151.221 11.32L159.901 20.1C160.411 20.61 160.041 21.49 159.321 21.49H155.391C155.171 21.49 154.961 21.4 154.811 21.25L149.561 15.94C149.051 15.42 148.171 15.78 148.171 16.51V20.67C148.171 21.12 147.811 21.48 147.361 21.48H142.771C142.321 21.48 141.961 21.12 141.961 20.67V0.82C141.961 0.37 142.321 0.00999832 142.771 0.00999832H147.361C147.811 0.00999832 148.171 0.37 148.171 0.82V4.98C148.171 5.71 149.051 6.07 149.561 5.55L154.811 0.239998C154.961 0.0899979 155.171 0 155.391 0H159.321C160.041 0 160.411 0.869999 159.901 1.39V1.4Z' fill='%231E2225'/%3E%3Cpath d='M175.761 4.38H169.171C168.641 4.38 168.211 4.81 168.211 5.34V7.6C168.211 8.13 168.641 8.56 169.171 8.56H173.841C174.371 8.56 174.801 8.99 174.801 9.52V11.97C174.801 12.5 174.371 12.93 173.841 12.93H169.171C168.641 12.93 168.211 13.36 168.211 13.89V16.15C168.211 16.68 168.641 17.11 169.171 17.11H175.761C176.291 17.11 176.721 17.54 176.721 18.07V20.52C176.721 21.05 176.291 21.48 175.761 21.48H162.951C162.421 21.48 161.991 21.05 161.991 20.52V0.959999C161.991 0.429999 162.421 0 162.951 0H175.761C176.291 0 176.721 0.429999 176.721 0.959999V3.41C176.721 3.94 176.291 4.37 175.761 4.37V4.38Z' fill='%231E2225'/%3E%3Cpath d='M196.401 3.29C196.401 3.89 195.911 4.38 195.311 4.38H192.091C191.491 4.38 191.001 4.87 191.001 5.47V20.39C191.001 20.99 190.511 21.48 189.911 21.48H185.881C185.281 21.48 184.791 20.99 184.791 20.39V5.47C184.791 4.87 184.301 4.38 183.701 4.38H179.671C179.071 4.38 178.581 3.89 178.581 3.29V1.11C178.581 0.509997 179.071 0.0199966 179.671 0.0199966H195.321C195.921 0.0199966 196.411 0.509997 196.411 1.11V3.29H196.401Z' fill='%231E2225'/%3E%3Cpath d='M95.551 29.33C96.791 29.33 97.801 30.34 97.801 31.58V34.74C97.801 35.55 97.141 36.21 96.331 36.21H92.471C91.981 36.21 91.591 35.82 91.591 35.33V34.28C91.591 33.97 91.341 33.71 91.021 33.71H88.081C87.771 33.71 87.511 33.96 87.511 34.28V37.32C87.511 37.63 87.761 37.89 88.081 37.89H95.551C96.791 37.89 97.801 38.9 97.801 40.14V48.57C97.801 49.81 96.791 50.82 95.551 50.82H83.241C82.001 50.82 80.991 49.81 80.991 48.57V44.74C80.991 44.3 81.351 43.95 81.781 43.95H86.411C86.851 43.95 87.201 44.31 87.201 44.74V45.88C87.201 46.19 87.451 46.45 87.771 46.45H91.011C91.321 46.45 91.581 46.2 91.581 45.88V42.83C91.581 42.52 91.331 42.26 91.011 42.26H83.541C82.301 42.26 81.291 41.25 81.291 40.01V30.68C81.291 29.93 81.901 29.33 82.641 29.33H95.551Z' fill='%231E2225'/%3E%3Cpath d='M116.171 29.33C117.231 29.33 118.091 30.19 118.091 31.25V35.65C118.091 36.34 117.531 36.9 116.841 36.9H113.121C112.431 36.9 111.871 36.34 111.871 35.65V34.95C111.871 34.26 111.311 33.7 110.621 33.7H107.721C107.031 33.7 106.471 34.26 106.471 34.95V45.19C106.471 45.88 107.031 46.44 107.721 46.44H110.621C111.311 46.44 111.871 45.88 111.871 45.19V43.9C111.871 43.21 112.431 42.65 113.121 42.65H116.841C117.531 42.65 118.091 43.21 118.091 43.9V48.89C118.091 49.95 117.231 50.81 116.171 50.81H102.181C101.121 50.81 100.261 49.95 100.261 48.89V31.26C100.261 30.2 101.121 29.34 102.181 29.34H116.171V29.33Z' fill='%231E2225'/%3E%3Cpath d='M121.981 29.33H125.991C126.601 29.33 127.091 29.82 127.091 30.43V49.71C127.091 50.32 126.601 50.81 125.991 50.81H121.981C121.371 50.81 120.881 50.32 120.881 49.71V30.43C120.881 29.82 121.371 29.33 121.981 29.33Z' fill='%231E2225'/%3E%3Cpath d='M143.941 33.71H137.351C136.821 33.71 136.391 34.14 136.391 34.67V36.93C136.391 37.46 136.821 37.89 137.351 37.89H142.021C142.551 37.89 142.981 38.32 142.981 38.85V41.3C142.981 41.83 142.551 42.26 142.021 42.26H137.351C136.821 42.26 136.391 42.69 136.391 43.22V45.48C136.391 46.01 136.821 46.44 137.351 46.44H143.941C144.471 46.44 144.901 46.87 144.901 47.4V49.85C144.901 50.38 144.471 50.81 143.941 50.81H131.131C130.601 50.81 130.171 50.38 130.171 49.85V30.29C130.171 29.76 130.601 29.33 131.131 29.33H143.941C144.471 29.33 144.901 29.76 144.901 30.29V32.74C144.901 33.27 144.471 33.7 143.941 33.7V33.71Z' fill='%231E2225'/%3E%3Cpath d='M161.491 29.34H166.251C166.651 29.34 166.981 29.66 166.981 30.07V50.09C166.981 50.49 166.651 50.82 166.251 50.82H161.181C160.921 50.82 160.681 50.68 160.551 50.46L155.241 41.23C154.871 40.59 153.881 40.85 153.881 41.59V50.09C153.881 50.49 153.551 50.82 153.151 50.82H148.391C147.991 50.82 147.661 50.49 147.661 50.09V30.07C147.661 29.67 147.991 29.34 148.391 29.34H154.191C154.451 29.34 154.691 29.48 154.821 29.7L159.411 37.66C159.781 38.3 160.771 38.04 160.771 37.3V30.06C160.771 29.66 161.101 29.33 161.501 29.33L161.491 29.34Z' fill='%231E2225'/%3E%3Cpath d='M185.981 29.33C187.041 29.33 187.901 30.19 187.901 31.25V35.65C187.901 36.34 187.341 36.9 186.651 36.9H182.931C182.241 36.9 181.681 36.34 181.681 35.65V34.95C181.681 34.26 181.121 33.7 180.431 33.7H177.531C176.841 33.7 176.281 34.26 176.281 34.95V45.19C176.281 45.88 176.841 46.44 177.531 46.44H180.431C181.121 46.44 181.681 45.88 181.681 45.19V43.9C181.681 43.21 182.241 42.65 182.931 42.65H186.651C187.341 42.65 187.901 43.21 187.901 43.9V48.89C187.901 49.95 187.041 50.81 185.981 50.81H171.991C170.931 50.81 170.071 49.95 170.071 48.89V31.26C170.071 30.2 170.931 29.34 171.991 29.34H185.981V29.33Z' fill='%231E2225'/%3E%3Cpath d='M204.451 33.71H197.861C197.331 33.71 196.901 34.14 196.901 34.67V36.93C196.901 37.46 197.331 37.89 197.861 37.89H202.531C203.061 37.89 203.491 38.32 203.491 38.85V41.3C203.491 41.83 203.061 42.26 202.531 42.26H197.861C197.331 42.26 196.901 42.69 196.901 43.22V45.48C196.901 46.01 197.331 46.44 197.861 46.44H204.451C204.981 46.44 205.411 46.87 205.411 47.4V49.85C205.411 50.38 204.981 50.81 204.451 50.81H191.641C191.111 50.81 190.681 50.38 190.681 49.85V30.29C190.681 29.76 191.111 29.33 191.641 29.33H204.451C204.981 29.33 205.411 29.76 205.411 30.29V32.74C205.411 33.27 204.981 33.7 204.451 33.7V33.71Z' fill='%231E2225'/%3E%3C/svg%3E") no-repeat center center !important;
  background-size: contain !important;
  min-width: 120px !important;
  height: var(--lg-button-size, 40px) !important;
  padding-right: 1em !important;
  display: block !important;
  pointer-events: none !important;
  cursor: default !important;
}

/* Hide any child content inside the promo elements */
[class*="ExcalidrawPlusPromoBanner"] *,
[class*="excalidraw-plus"] *,
.excalidraw-ui-top-right > [class*="Promo"] * {
  display: none !important;
}

/* Hide "Try Excalidraw+" buttons in welcome screen */
.welcome-screen-menu-item[href*="plus"] {
  display: none !important;
}

/* Hide Excalidraw+ items in sidebar */
.sidebar-trigger[href*="plus"],
.sidebar__link[href*="plus"] {
  display: none !important;
}

/* =============================================================================
   Hide Excalidraw+ in "Save to" export dialog
   ============================================================================= */

/* Hide the Excalidraw+ card (third card) in the "Save to" export dialog */
.ExportDialog--json .ExportDialog-cards > .Card:nth-child(3) {
  display: none !important;
}

/* Hide the Excalidraw+ option (third action) in the "Load from Link" dialog */
.OverwriteConfirm__Actions > .OverwriteConfirm__Actions__Action:nth-child(3) {
  display: none !important;
}

/* =============================================================================
   Hide social links (optional - uncomment if desired)
   ============================================================================= */

/*
.dropdown-menu-item[href*="twitter"],
.dropdown-menu-item[href*="discord"],
.dropdown-menu-item[href*="github.com/excalidraw"] {
  display: none !important;
}
*/

/* =============================================================================
   Custom branding (optional - uncomment and modify if desired)
   ============================================================================= */

/*
.App-menu__left .dropdown-menu-button[aria-label="Menu"] {
  // Add your logo styling here
}
*/

/* =============================================================================
   Add your custom styles below
   ============================================================================= */
