.gsi-material-button {
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  -webkit-appearance: none;
  background-color: WHITE;
  background-image: none;
  border: 2px solid #696969;
  -webkit-border-radius: 50px;
  border-radius: 50px;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  color: #1f1f1f;
  cursor: pointer;
  font-family: 'Roboto', arial, sans-serif;
  font-size: 14px;
  letter-spacing: 0.25px;
  outline: none;
  overflow: hidden;
  padding: 20px 30px;
  position: relative;
  text-align: center;
  -webkit-transition: background-color .218s, border-color .218s, box-shadow .218s;
  transition: background-color .218s, border-color .218s, box-shadow .218s;
  vertical-align: middle;
  white-space: nowrap;
  width: auto;
  max-width: 400px;
  min-width: min-content;
  margin: 35px;
  font-size: 2.1rem;
}

.gsi-material-button .gsi-material-button-icon {
  height: 50px;
  margin-right: 20px;
  min-width: 50px;
  width: 50px;
}

.gsi-material-button .gsi-material-button-content-wrapper {
  -webkit-align-items: center;
  align-items: center;
  display: flex;
  -webkit-flex-direction: row;
  flex-direction: row;
  -webkit-flex-wrap: nowrap;
  flex-wrap: nowrap;
  height: 100%;
  justify-content: space-between;
  position: relative;
  width: 100%;
}

.gsi-material-button .gsi-material-button-contents {
  -webkit-flex-grow: 1;
  flex-grow: 1;
  font-family: 'Roboto', arial, sans-serif;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: top;
}

.gsi-material-button .gsi-material-button-state {
  -webkit-transition: opacity .218s;
  transition: opacity .218s;
  bottom: 0;
  left: 0;
  opacity: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.gsi-material-button:disabled {
  cursor: default;
  background-color: #ffffff61;
  border-color: #1f1f1f1f;
}

.gsi-material-button:disabled .gsi-material-button-contents {
  opacity: 38%;
}

.gsi-material-button:disabled .gsi-material-button-icon {
  opacity: 38%;
}

.gsi-material-button:not(:disabled):active .gsi-material-button-state,
.gsi-material-button:not(:disabled):focus .gsi-material-button-state {
  background-color: #303030;
  opacity: 12%;
}

.gsi-material-button:not(:disabled):hover {
  -webkit-box-shadow: 0 1px 2px 0 rgba(60, 64, 67, .30), 0 1px 3px 1px rgba(60, 64, 67, .15);
  box-shadow: 0 1px 2px 0 rgba(60, 64, 67, .30), 0 1px 3px 1px rgba(60, 64, 67, .15);
}

.gsi-material-button:not(:disabled):hover .gsi-material-button-state {
  background-color: #303030;
  opacity: 8%;
}
.welcome-back {
  font-family: "Playfair Display", serif;
  font-weight: 800;
  font-style: italic;
}

.title-candle {
  margin-top: 0;
  padding: 0;
  font-family: "Playfair Display", serif;
  font-weight: 800;
  font-style: normal;
  font-optical-sizing: auto;
  font-size: 10rem;
  color: #3d473f;
}
.title-c {
  /* margin-top: -35px; */
  font-size: 4rem;
  /* margin-left: 20px; */
  margin: 0;
  padding: 0;
}

/* Short logo "c" (header): green to match full "candle" logo */
.title-candle.title-c {
  color: #22c55e; /* green-500, same as first letter in full logo */
}

/* Compact header logo: overrides .title-candle size */
.logo-short {
  margin: 0;
  font-size: 1.25rem;
}

/* Shared template (slice view, profile view) only: smaller, more appropriate h1 */
.logo-short-standard {
  width: 1.75rem;
  height: 1.75rem;
  min-width: 1.75rem;
  min-height: 1.75rem;
  font-size: 0.875rem;
}

/* Standard layout header: full "candle" text logo at header-appropriate size */
.standard-page-header .standard-page-logo-wrap .title-candle {
  font-size: 1.5rem;
  margin: 0;
  line-height: 1.2;
}

.poetsen-one-regular {
  font-family: "Poetsen One", sans-serif;
  font-weight: 400;
  font-style: normal;
}

#header {
  background: white;
  /* border-bottom: 1px solid black; */
  margin: 0 auto;
  max-width: 100%;
  top: 0;
  align-items: center;
  padding: 5px;
  position: sticky;
  display: block;
  box-sizing: border-box;
  height: 65px;
  z-index: 9999;
}

#header-left {
  cursor: pointer;
}

#authed-header-list {
  display: inline-flex !important;
  list-style: none;
  margin-top: 0px;
}

#authed-header-list>li {
  font-size: 1em;
}


.email {
  display: block;
  padding: 20px;
  font-family: 'Times New Roman', Times, serif;
  font-size: 1em;
}

body {
  padding: 0;
  margin: 0;
  background: white;
  height: 100%;
}

#profile-avatar:hover {
  cursor: pointer;
  background: rgba(61, 71, 63, .8);
  box-shadow: inset 4px 4px 3px rgb(39, 39, 39);

}

.profile-avatar-depressed {
  background: rgba(61, 71, 63, .8) !important;
  box-shadow: inset 4px 4px 3px rgb(39, 39, 39) !important;

}

#profile-avatar {
  border-radius: 50%;
  padding: 0;
  transition: .35s;
  -webkit-transition: .35s;
  background: rgba(61, 71, 63, .5);
}
#profile-avatar > img {
  width: auto;
  height: auto;
  max-width: 50px;
  max-height: 50px;
}

.menu-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.profItem {
  text-align: left;
  margin: auto;
  border: none !important;
  box-shadow: none;
}

/* .profItem:nth-of-type(1) {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
  } */
.profItem:nth-of-type(3) {
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

.profItem:hover {
  background: rgba(0, 0, 0, .1);
  cursor: pointer;
}

.menu-trigger {
  background: #ffffff;
  border-radius: 100%;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 6px;
  box-shadow: 0 1px 0px rgba(0, 0, 0, 0.3);
  border: none;
  vertical-align: middle;
  transition: box-shadow 0.5s ease;
  -webkit-transition: box-shadow 0.5s ease;
  margin-left: auto;
  /* Strictly for positioning */
}

.menu-trigger:hover {
}

.menu-trigger span {
  font-weight: 700;
  vertical-align: middle;
  font-size: 14px;
  margin: 0 10px;
}

.menu-trigger img {
  border-radius: 100%;
}

.menu {
  box-shadow: 0px 1px 1px rgb(16, 16, 16);
  background: #ffffff;
  position: absolute;
  top: 80px;
  right: 0;
  width: 180px;
  opacity: 0;
  border-radius: 10px;
  visibility: hidden;
  transform: translateY(-20px);
  transition: opacity 0.1s ease, transform 0.1s ease, visibility 0.1s;
  -webkit-transition: opacity 0.1s ease, transform 0.1s ease, visibility 0.1s;
}

.menu:after {
  content: "";
  position: absolute;
  right: 19px;
  /* top: 0px; */
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 17px 17px 17px;
  border-color: transparent transparent #ffffff transparent;
}

.menu.active {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
}

.menu ul {
  list-style: none;
  padding: 0;
  margin: 0;

  border-radius: 10px;
}

.menu li {
  text-decoration: none;
  color: #333333;
  padding: 15px 20px;
  display: block;
  border-bottom: 1px solid #dddddd;
}

.profile-menu-links {
  text-decoration: none;
  color: #333333;
}

.profile-menu-icons {
  width: 25px;
  color: #3d473f;
  font-size: 20px;
  margin-right: 10px;
}

.signout {
  color: #DA8080;
}

.account {

}

.landing {
  border: 2px solid black;
  font-family: 'Roboto', arial, sans-serif;
  background: white;
  display: block;
  max-width: 600px;
  min-width: 500px;
  top: 0;
  padding: 20px 30px;
  border-radius: 5px;
  box-shadow: 1px 2px 0px #1f1f1f1f;
  margin: auto;
  position: relative;
  margin-top: 20px;
}

.landing-sub-heading{
    font-family: 'Verdana, Arial, Helvetica, sans-serif';
    color:#0F0F0F;
  }
.setion1 {
  width: 100%;
  display: block;
  position: relative;
}

.error-message {
  color:red;
}
.error input {
    box-shadow: 0 0 3px #CC0000;
 }
.valid input {
    box-shadow: 0 0 3px #36cc00;
 }

 #login-modal {
    position: relative;
    top: 10vh;
    text-align: center;
    background: white;
    /* max-width: 25vw; */
    min-width: 500px;
    max-height: 30vh;
    border-radius: 10px;
    font-family: 'Roboto', arial, sans-serif;
    /* padding: 50px; */
    /* box-shadow: 5px 3px 10px 3px rgb(204 204 204); */
    display: block;
    margin: auto;
    top: 10vh;
 }

#login-modal-header > .title-candle {
  /* margin-left: 30px; */
}

#login-modal-signin-text {
  text-align: center;
  margin-bottom: 0;
  margin-top: 20px;
}

 .oauth {
  cursor: pointer;
 }

 #login-modal-contents {
  margin-top: 20px;
 }

.htmx-settling img {
  opacity: 0;
}
.generated-names {
  transition: 300ms ease-in;
  -webkit-transition: 300ms ease-in;
  fill: #0F0F0F; 
  display: block;
  position: relative;
  margin: auto; 
}
.spinner-container{
  width: 25px;
  margin: auto;
}

#login-modal-outer {
  left: 0;
  background: rgba(0, 0, 0, 0.2);
  width: 100vw;
  height: 100vh;
  position: fixed;
  display: block;
  backdrop-filter: blur(20px);
  top: 0;
  margin: auto;
  padding: 0;
  animation: 0.2s ease-out 0s 1 fadein;
  z-index: 9999;
}

@media (min-width:320px)  {}
@media (min-width:481px)  { /* portrait e-readers (Nook/Kindle), smaller tablets @ 600 or @ 640 wide. */ }
@media (min-width:641px)  { 
     /* smartphones, iPhone, portrait 480x320 phones */ 
     #login-modal {
      scale: 1;
    }  
    /* portrait tablets, portrait iPad, landscape e-readers, landscape 800x480 or 854x480 phones */ 
}
@media (min-width:961px)  { /* tablet, landscape iPad, lo-res laptops ands desktops */ }
@media (min-width:1025px) { 
  /* big landscape tablets, laptops, and desktops */ 
  #login-modal {
    scale: .6;
  }
}
@media (min-width:1281px) { /* hi-res laptops and desktops */ }


.stepper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 80%;
}

.stepper:has(.first-slice-step.active) {
  justify-content: flex-start;
  padding-top: 0;
}
.stepper > h2 .stepper > span {
  cursor: default;
}
.step {
  display: none;
  flex-direction: column;
  align-items: center;
}
.prof-frag {
  box-shadow: 1px 1px 3px 0px rgb(39, 39, 39);
  border: 2px solid rgb(34, 34, 34);
  border-radius: 15px;
  padding: 10px 20px;
}
.step.active {
  display: flex;
}

/* Username step: static-width namecard for consistent look on mobile and desktop */
.username-step {
  width: 100%;
  max-width: 100%;
}

/* Username namecard: fixed width by breakpoint, no overflow */
.username-namecard {
  box-sizing: border-box;
  width: 100%;
  max-width: 280px;
  gap: 0.75rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}
@media (min-width: 400px) {
  .username-namecard {
    max-width: 340px;
    gap: 1rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}
@media (min-width: 640px) {
  .username-namecard {
    max-width: 400px;
    gap: 1.25rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Namecard icon: square, responsive size */
.username-namecard .fadein {
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  flex-shrink: 0;
}
.username-namecard .profile-picture {
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  object-fit: cover;
}
@media (min-width: 400px) {
  .username-namecard .fadein {
    width: 56px;
    height: 56px;
    min-width: 56px;
    min-height: 56px;
  }
  .username-namecard .profile-picture {
    width: 56px;
    height: 56px;
    min-width: 56px;
    min-height: 56px;
  }
}
@media (min-width: 640px) {
  .username-namecard .fadein {
    width: 64px;
    height: 64px;
    min-width: 64px;
    min-height: 64px;
  }
  .username-namecard .profile-picture {
    width: 64px;
    height: 64px;
    min-width: 64px;
    min-height: 64px;
  }
}

/* Namecard input wrapper: fill remaining space, vertically centered, no overflow */
.username-namecard > div:last-child {
  flex: 1 1 0;
  min-width: 0;
  float: none;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding-top: 20px;
}
.username-namecard input {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0;
}
.username-namecard > div:last-child label {
  margin-bottom: 0;
}

.profile-picture {
  width: 100px;
  height: 100px;
  border-radius: 50%;
}

form {
  display: flex;
  flex-direction: column;
}

form label, form input, form button {
  margin-bottom: 10px;
}


.progress-bar {
  width: 100%;
  text-align: center;
}

.progress-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.progress-indicator {
  font-weight: bold;
}


.dot {
  width: 35px;
  height: 10px;
  border-radius: 10px;
  background-color: #d3d3d3;
}
.dot.active {
  background-color: #4CAF50;
}


.fadein {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0;
}
.fadein img {
  position:absolute;
  left: 0;
  top: 0;
  -webkit-animation-name: fade;
  -webkit-animation-iteration-count: infinite;
  -webkit-animation-duration: 6s;
  animation-name: fade;
  animation-iteration-count: infinite;
  animation-duration: 6s;
}

@-webkit-keyframes fade {
  0% {opacity: 0;}
  20% {opacity: 1;}
  80% {opacity: 1;}
  100% {opacity: 0;}
}
@keyframes fade {
  0% {opacity: 0;}
  20% {opacity: 1;}
  80% {opacity: 1;}
  100% {opacity: 0;}
}

#f2 {
  -webkit-animation-delay: -3s;
  animation-delay: -3s;
}

@keyframes slideInFromLeft {
  0% {
    transform: translateX(-10%);
    opacity: 0;
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}
.step-header {
  animation: .3s ease-out slideInFromLeft;
}

.fadeIn {
  animation: .5s ease-out fadeIn;
}

.bg-input-color{
  background-color: rgb(232, 240, 254);
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.fade-bg {
  animation: fadeOffBGColor  1s ease forwards;;
}

@keyframes fadeOffBGColor {
  to {
    background-color: rgba(255, 255, 255, 0.5);
  }
}

@keyframes fadeInBGColor {
  to {
    /* border: dashed 1px black; */
    background-color: rgb(216, 216, 216);
    scale: .9;
    transform: translateY(-20px);
  }
}

.fadeInBG {
  animation: fadeInBGColor  .3s ease-out forwards;;
}



.cta-btn {
  line-height: 1;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  color: #fff;
  border-radius: 10rem;
  font-weight: 600;
  padding: .75rem 1.5rem;
  padding-left: 20px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background-color .3s;
  opacity: 0;
  animation: fadeIn .3s ease-out forwards;
}

.button__icon-wrapper {
  flex-shrink: 0;
  width: 25px;
  height: 25px;
  position: relative;
  background-color: #fff;
  border-radius: 50%;
  display: grid;
  padding: 10px;
  place-items: center;
  overflow: hidden;
}

.cta-btn:hover {
  background-color: #000;
}

.cta-btn:hover .button__icon-wrapper {
  color: #000;
}

.button__icon-svg--copy {
  position: absolute;
  transform: translate(-150%, 150%);
}

.cta-btn:hover .button__icon-svg:first-child {
  transition: transform .3s ease-in-out;
  transform: translate(150%, -150%);
}

.cta-btn:hover .button__icon-svg--copy {
  transition: transform .3s ease-in-out .1s;
  transform: translate(0);
}


.cta2-button {
  display: inline-block;
  outline: 0;
  border: none;
  box-shadow: none;
  cursor: pointer;
  padding: 9px 22px;
  font-size: 22px;
  height: 50px;
  font-weight: 400;
  color: #fff;
  text-align: center;
  line-height: normal;
  background: linear-gradient(90deg,#5522fa 0,#0074e4 100%);
  border-radius: 50px;
  transition: color .2s ease,background-color .2s ease,box-shadow .2s ease;
}

.cta2-button:hover{
  box-shadow: 0 0 0 0.15rem #5ceace;
}

#onboarding-new-portfolio {
  opacity: 0;
  animation: fadeIn .5s ease-out forwards;
}

/* Your first slice page: papery, flat, green */
.first-slice-step {
  background: #f0fdf4;
  box-shadow: none;
  margin-top: 1rem;
}

/* Slice creation step: width scales with viewport */
.slice-creation-step {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
@media (min-width: 640px) {
  .slice-creation-step {
    max-width: 512px;
  }
}
@media (min-width: 768px) {
  .slice-creation-step {
    max-width: 576px;
  }
}
@media (min-width: 1024px) {
  .slice-creation-step {
    max-width: 688px;
  }
}
@media (min-width: 1280px) {
  .slice-creation-step {
    max-width: 768px;
  }
}

.slice-creation-card {
  max-width: 100%;
  box-sizing: border-box;
}

.first-slice-step .step-header {
  color: #166534;
}

.prof-frag-first-slice {
  box-shadow: none;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  background: #fff;
  display: flex;
  align-items: center;
  padding-left: 1.25rem;
  padding-right: 1rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.prof-frag-first-slice .fadein {
  margin-bottom: 0;
  margin-left: 0;
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  min-width: 64px;
  min-height: 64px;
}
.prof-frag-first-slice .profile-picture {
  width: 64px;
  height: 64px;
  min-width: 64px;
  min-height: 64px;
  object-fit: cover;
}
.prof-frag-first-slice > div:last-child {
  float: none;
  flex: 1 1 0;
  min-width: 0;
  margin-left: 1rem;
}

.first-slice-card {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: none;
}

.slice-chart-paper {
  background: #fff;
  border: 1px solid #bbf7d0;
  border-radius: 6px;
  overflow: hidden;
}

/* Chart area with top padding for verification badge */
.slice-chart-with-badge {
  position: relative;
  padding-top: 40px;
}

.chart-verification-badge {
  position: absolute;
  top: 8px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  z-index: 2;
  pointer-events: none;
}

.chart-verification-badge--verified {
  color: #14532d;
  background: #dcfce7;
  border: 1px solid #86efac;
}

.chart-verification-badge--verified .chart-verification-icon {
  color: #15803d;
}

.chart-verification-badge--unverified {
  color: #94a3b8;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}

.chart-verification-badge--unverified .chart-verification-icon {
  color: #cbd5e1;
}

.chart-verification-icon {
  font-size: 14px;
  line-height: 1;
}

.chart-verification-label {
  white-space: nowrap;
}

.chart-row-highlight {
  background-color: #dcfce7;
  border-radius: 4px;
  outline: 1px solid #86efac;
}

/* Portfolio (hover) price: white text with black border */
.chart-hover-price {
  font-size: 18px !important;
  fill: #fff !important;
  stroke: #000 !important;
  stroke-width: 2px !important;
  paint-order: stroke fill;
}

.chart-segment-delta {
  fill: #000 !important;
  font-weight: bold !important;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}

.slice-title-input {
  width: 100%;
  border-radius: 6px;
}

.chart-input-invalid {
  border-color: #dc2626 !important;
  outline: 1px solid #dc2626;
  background-color: #fef2f2;
}

.first-slice-input {
  background: #fff;
  color: #334155;
}

.first-slice-input:focus {
  outline: none;
  border-color: #16a34a;
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.2);
}

.first-slice-input.ticker-unavailable {
  border-color: #dc2626;
  background-color: #fef2f2;
}

.first-slice-input.ticker-unavailable:focus {
  border-color: #dc2626;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.2);
}

.first-slice-btn {
  background: #16a34a;
  color: #fff;
  border: none;
  padding: 0.6rem 1rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.first-slice-btn:hover {
  background: #15803d;
}

.first-slice-delete-btn {
  background: transparent;
  color: #64748b;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.first-slice-delete-btn:hover {
  color: #dc2626;
}

.first-slice-publish {
  padding: 0.75rem 1.5rem;
}

/* Position inputs: single line, no wrap; header aligns with columns */
.slice-position-table {
  width: 100%;
  min-width: 0;
}
.slice-position-header {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
}
.slice-position-header .slice-col-ticker { width: 4rem; flex-shrink: 0; }
.slice-position-header .slice-col-value { width: 4.5rem; flex-shrink: 0; }
.slice-position-header .slice-col-start { width: 5.5rem; flex-shrink: 0; }
.slice-position-header .slice-col-end { width: 5.5rem; flex-shrink: 0; }
.slice-position-header .slice-col-delete { width: 2rem; flex-shrink: 0; }
.slice-position-inputs {
  flex-wrap: nowrap;
  min-width: 0;
}
.slice-position-inputs .slice-ticker-input {
  width: 4rem;
  min-width: 4rem;
  max-width: 4rem;
  box-sizing: border-box;
}
.slice-position-inputs .slice-value-input {
  width: 4.5rem;
  min-width: 4.5rem;
  max-width: 4.5rem;
  box-sizing: border-box;
}
.slice-position-inputs .slice-start-input {
  width: 5.5rem;
  min-width: 5.5rem;
  max-width: 5.5rem;
  box-sizing: border-box;
}
.slice-position-inputs .slice-end-input {
  width: 5.5rem;
  min-width: 5.5rem;
  max-width: 5.5rem;
  box-sizing: border-box;
}

.stepper:has(.first-slice-step.active) .dot.active {
  background-color: #16a34a;
}

#chart-card-container {
  opacity: 0;
  animation: fadeIn .5s ease-out forwards;
}

#slice-chart {
  min-height: 280px;
  display: block;
}

#slice-chart > svg {
  margin: auto;
  display: block;
  max-width: 100%;
}

.card-width {
  width: 450px;
}

.draw-svg {
  stroke-dasharray: 450;
  stroke-dashoffset: 450;
  animation: draw 2s linear forwards;
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

/* Rectangle toggle switch (on/off) */
.toggle-rect-wrap {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.toggle-rect-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.toggle-rect-track {
  display: inline-flex;
  align-items: center;
  width: 48px;
  height: 26px;
  border-radius: 6px;
  background-color: #cbd5e1;
  border: 1px solid #94a3b8;
  transition: background-color 0.2s ease, border-color 0.2s ease;
  padding: 2px;
  box-sizing: border-box;
}

.toggle-rect-thumb {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  background-color: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.toggle-rect-input:checked + .toggle-rect-track {
  background-color: #16a34a;
  border-color: #15803d;
}

.toggle-rect-input:checked + .toggle-rect-track .toggle-rect-thumb {
  transform: translateX(22px);
}

.toggle-rect-wrap:hover .toggle-rect-track {
  border-color: #64748b;
}

.toggle-rect-input:focus-visible + .toggle-rect-track {
  outline: 2px solid #16a34a;
  outline-offset: 2px;
}

.public-toggle-hint:not(.hidden) {
  display: block;
}

/* Plaid response debug panel */
#response.plaid-response,
.plaid-response {
  top: 60px;
  margin-left: 10px;
  bottom: 0;
  position: fixed;
  overflow-y: scroll;
  overflow-x: hidden;
  font-size: 14px;
}

/* Slice view chart container */
.slice-view-chart {
  min-height: 320px;
}

/* Oops page layout */
.oops-container {
  width: 650px;
  flex: auto;
  margin: 10% auto;
}
.oops-inner {
  width: 100%;
}

/* Newsfeed tag (clickable tag with border) */
.newsfeed-tag {
  font-family: serif;
  padding: 3px 5px;
  border: 1px dashed black;
}

/* Week separator in newsfeed */
.week-sep-title {
  transform: translateY(80px);
  font-style: bold;
}
.week-sep-img {
  position: relative;
  margin: auto;
}

/* Week ahead heading */
.week-ahead-title {
  font-family: Playfair Display, serif;
  font-style: bold;
}

/* Card tag (shared with newsfeed) */
.card-tag-serif {
  font-family: serif;
}

/* Header layout (replacing inline styles) */
.header-float-left {
  float: left;
}
.header-nav-wrap {
  display: flex;
}
.avatar-spacer {
  left: 184px;
}
.profile-menu-item-inline {
  display: inline-block;
}
.header-float-right {
  float: right;
  display: flex;
}
.authed-header-list-inline {
  display: inline-flex;
  list-style: none;
}

/* Brand / OAuth button */
.gsi-material-button-icon svg,
.gsi-material-button-icon-svg {
  display: block;
}
.gsi-material-button-sr {
  display: none;
}
