*{
  box-sizing:border-box;
}

@font-face{
  font-family:"Be Vietnam Pro";
  src:url("./fonts/BeVietnamPro-Light.ttf") format("truetype");
  font-weight:300;
  font-style:normal;
  font-display:swap;
}

@font-face{
  font-family:"Be Vietnam Pro";
  src:url("./fonts/BeVietnamPro-Regular.ttf") format("truetype");
  font-weight:400;
  font-style:normal;
  font-display:swap;
}

@font-face{
  font-family:"Be Vietnam Pro";
  src:url("./fonts/BeVietnamPro-Medium.ttf") format("truetype");
  font-weight:500;
  font-style:normal;
  font-display:swap;
}

@font-face{
  font-family:"Be Vietnam Pro";
  src:url("./fonts/BeVietnamPro-SemiBold.ttf") format("truetype");
  font-weight:600;
  font-style:normal;
  font-display:swap;
}

@font-face{
  font-family:"Be Vietnam Pro";
  src:url("./fonts/BeVietnamPro-Bold.ttf") format("truetype");
  font-weight:700;
  font-style:normal;
  font-display:swap;
}

@font-face{
  font-family:"Be Vietnam Pro";
  src:url("./fonts/BeVietnamPro-Italic.ttf") format("truetype");
  font-weight:400;
  font-style:italic;
  font-display:swap;
}

/*html,
body {
  overflow-x: hidden;
}*/

.memo-swipe {
  touch-action: pan-y;
}

body{
  margin:0;
  font-family:"Be Vietnam Pro", system-ui;
  background:#f5f5f5;
  color:#111;
  font-weight: 400;
}

  input,
  button,
  textarea,
  select {
  font: inherit;
}

.app{
  max-width:480px;
  margin:0 auto;
  padding:10px;
  padding-top: 50px;
  display:flex;
  flex-direction:column;
  gap:5px;
}

.search{
  width:100%;
  padding:14px 16px;
  border:none;
  border-radius:16px;
  font-size:14px;
}

.filters{
  display:flex;
  gap:8px;
  overflow:auto;
}


.chip{
  border:none;
  background:white;
  padding:8px 16px;
  border-radius:999px;
  white-space:nowrap;
  flex: 1;
}

.chip.active{
  flex: 1;
  background:#111;
  color:white;
}

.list{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.memo-card{
  border:1px solid rgba(175, 175, 175, 0.14);
}
.memo-card.focus-pop{
  animation:memoFocusPop 520ms cubic-bezier(.2,.8,.2,1);
}

@keyframes memoFocusPop{
  0%{
    transform:scale(1);
    border-color:rgba(0,255,140,0.14);
    box-shadow:0 0 0 rgba(0,255,140,0);
  }

  40%{
    transform:scale(1.015);
    border: 3px;
    border-color:rgba(0,255,140,0.8);
    box-shadow:0 0 0 3px rgba(0,255,140,0.16);
  }

  100%{
    transform:scale(1);
    border-color:rgba(0,255,140,0.14);
    box-shadow:0 0 0 rgba(0,255,140,0);
  }
}

@keyframes memoFocusPop {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(0,0,0,0);
  }

  45% {
    transform: scale(1.02);
    box-shadow: 0 10px 24px rgba(0,0,0,0.10);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(0,0,0,0);
  }
}

.memo-card{
  background:white;
  border-radius:20px;
  padding:16px;
  display:flex;
  flex-direction:column;
  gap:12px;
  overflow:hidden;
}

.memo-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.memo-name{
  font-weight:600;
}

.memo-meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;

  font-size:12px;
}

.memo-date-group{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}

.memo-type{
  color:#666;
  font-size:11px;
  font-weight:500;
  text-align:right;
}

.meta-chip{
  display:inline-flex;
  align-items:center;

  padding:6px 10px;
  border-radius:999px;

  gap:3px; 
  background:transparent;
  color:#666;
  font-size: 12px;

  transition:all .18s ease;
}

.meta-icon{
  font-size:12px;
  line-height:1;
}

.meta-chip.active{
  background:#00ff8c;
  color:#111;
  font-weight:500;
  font-size: 11px;
}

.countdown{
  font-size:12px;
  text-align:right;
  color:#222;
}

.progress{
  position:relative;
  width: 95%;
  margin-inline: auto;
  height:11px;
  border-radius:999px;
  background:#e9e9e9;
  overflow:visible;
}

.progress-gradient{
  position:absolute;
  inset:0;

  overflow:hidden;
border-radius:999px;

  background:linear-gradient(
    90deg,
    #a5ffd6 0%,
    #98ebfe 42%,
    #d8c7ff 72%,
    #ffc5b4 100%
    
  );
}

.progress-pattern{
  position:absolute;
  inset:0;

  display:flex;
  align-items:center;
  gap:3px;

  overflow:hidden;
  border-radius:999px;
  z-index:1;
  pointer-events:none;
}

.progress-pattern span{
  flex:0 0 8px;
  width:6px;
  height:6px;

  display:flex;
  align-items:center;
  justify-content:center;

  font-size:8px;
  line-height:1;

  transform:rotate(var(--progress-rotate, 0deg))
    scaleX(var(--progress-scale-x, 1))
    scaleY(var(--progress-scale-y, 1));

  transform-origin:center;
}

.progress-icon,
.progress-runner{
  position:absolute;
  top:50%;

  display:flex;
  align-items:center;
  justify-content:center;

  width:24px;
  height:24px;

  transform:translateY(-50%) rotate(var(--progress-rotate, 0deg))
    scaleX(var(--progress-scale-x, 1))
    scaleY(var(--progress-scale-y, 1));

  font-size:16px;
  line-height:1;

  pointer-events:none;

}

.progress-icon {
  z-index: 3;
}

.progress-runner {
  z-index: 4;
}

.progress-icon-from{
  left:0;
  transform:translate(-50%, -50%) rotate(var(--progress-rotate, 0deg))
    scaleX(var(--progress-scale-x, 1))
    scaleY(var(--progress-scale-y, 1));
}

.progress-icon-to{
  right:0;
  transform:translate(50%, -50%) rotate(var(--progress-rotate, 0deg))
    scaleX(var(--progress-scale-x, 1))
    scaleY(var(--progress-scale-y, 1));
}

.progress-runner{
  transform:translate(-50%, -50%)
    rotate(var(--progress-rotate, 0deg))
    scaleX(var(--progress-scale-x, 1))
    scaleY(var(--progress-scale-y, 1));
  transition:left .45s cubic-bezier(.2,.8,.2,1), transform .18s ease;
}

/* phần che bên phải */
.progress-mask{
  position:absolute;
  top:0;
  right:0;
  height:100%;
  border-radius:999px;

  z-index: 2;
background-color:  #e9e9e9;
  /*background:linear-gradient(
    90deg,
    rgba(233,233,233,0) 0px,
    rgba(233,233,233,0.55) 10px,
    #e9e9e9 18px,
    #e9e9e9 100%
  );*/

  transition:width .45s cubic-bezier(.2,.8,.2,1);
}

.memo-detail{
  display:flex;
  flex-direction:column;
  gap:12px;

  overflow:hidden;

  max-height:0;
  opacity:0;

  transform:translateY(-6px);

  padding-top:0;
  margin-top:0;
  border-top:1px solid transparent;

  transition:
    max-height .32s cubic-bezier(.22,1,.36,1),
    opacity .22s ease,
    transform .32s cubic-bezier(.22,1,.36,1),
    padding-top .32s ease,
    margin-top .32s ease,
    border-color .32s ease;
}

.memo-card.expanded .memo-detail{
  max-height:600px; /* đủ lớn cho nội dung */
  opacity:1;

  transform:translateY(0);

  padding-top:12px;
  margin-top:4px;
  border-top:1px solid #eee;
}

.memo-card{
  transition:
    transform .18s ease,
    box-shadow .18s ease,
    background-color .18s ease;
}

.memo-card.expanded{
  transform:translateY(-1px);
  box-shadow:0 4px 16px rgba(0,0,0,.06);
}

.note-box,
.task-box{
  background:#fafafa;
  border-radius:16px;
  padding:16px;
  position:relative;
  cursor:text;
  font-size:15px;
  overflow:hidden;
  overflow-wrap:anywhere;
  word-break:break-word;
  line-height:1.5;
}

.task-box{
  padding: 22px;
  }
.note-box{
  white-space: pre-wrap;
  }

.note-box.empty::before{
  content:"Chạm để thêm ghi chú";
  color:#999;
}

.task-box.empty .task-list::before{
  content:"Chạm để thêm công việc";
  color:#999;
}

.task-list{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.task{
  display:flex;
  align-items:flex-start;
  gap:8px;
  width:100%;
  cursor:pointer;
  padding:2px 0;
  white-space:normal;
  overflow-wrap:anywhere;
  word-break:break-word;
}

.task-bullet{
  flex-shrink:0;
  line-height:1.4;
}

.task-text{
  line-height:1.4;
}

.task.done .task-text{
  text-decoration:line-through;
  color:#666;
}

.task-editor{
  display:none;
  width:100%;
  min-height:72px;
  border:none;
  outline:none;
  background:transparent;
  resize:none;
  font:inherit;
  line-height:1.6;
}

.task-list,
.task-editor{
  transition:opacity .15s ease;
}

:root{
  --surface-idle: inset 0 0 0 1px #e8e8e8;

  --surface-focus:
    inset 0 0 0 1px #414141,
    inset 0 0 0 4px rgba(17,17,17,.05);
}

.search,
.note-box,
.task-box{
  background:#fff;
  box-shadow: var(--surface-idle);
  transition: box-shadow .18s ease;
}

.note-wrap{
  display: flex;
}

.note-box{
  width: 100%;
  max-width: 100%;
  white-space: pre-wrap;
}

.search:focus,
.note-box:focus,
.task-box:focus-within{
  outline:none;
  box-shadow: var(--surface-focus);
}

.fab{
  position:fixed;
  left:16px;
  right:16px;
  bottom:16px;
  max-width:448px;
  margin:0 auto;
  height:56px;
  border:none;
  border-radius:28px;
  background:#2c2c2c;
  color:rgb(241, 241, 241);
  font-size:16px;
  z-index: 20;
}

.sheet-backdrop{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.18);

  opacity:0;
  pointer-events:none;

  transition:opacity .22s ease;
  z-index:50;
}

.add-sheet{
  position:fixed;
  left:16px;
  right:16px;
  bottom:-120vh;

  max-width:448px;
  margin:0 auto;

  background:#fff;
  border-radius:28px;
  padding:16px;

  display:flex;
  flex-direction:column;
  gap:12px;

  min-height:560px; /* hoặc 560px tùy bà */

 transform:none;

  transition:bottom .32s cubic-bezier(.22,1,.36,1);

  z-index:60;
}

.sheet-spacer{
  flex:1;
  font-size: 14px;
  font-style: italic;
  padding-left: 15px;
 line-height: 2;
  color: #777;
}

.sheet-backdrop.show{
  opacity:1;
  pointer-events:auto;
}

.add-sheet.show{
  transform:translateY(0);
}

.sheet-handle{
  width:40px;
  height:4px;
  border-radius:999px;
  background:#ddd;
  align-self:center;
}

.sheet-title{
  font-weight:600;
  font-size:18px;
}

.sheet-group{
  display:flex;
  gap:8px;
}

.seg{
  flex:1;
  border:none;
  border-radius:14px;
  padding:12px;
  background:#f5f5f5;
  font-weight:500;
}

.seg.active{
  background:#111;
  color:#fff;
}

.sheet-row{
  display:flex;
  gap:12px;
}

.sheet-row .sheet-input{
  flex:1;
}

.sheet-input{
  width:100%;
  padding:14px 16px;
  border:none;
  border-radius:16px;
  background:#fff;
  box-shadow: var(--surface-idle);
  font-size: 15px;
}

.sheet-input:focus{
  outline:none;
  box-shadow: var(--surface-focus);
}

.sheet-add{
  border:none;
  border-radius:18px;
  padding:16px;
  background:#00ff8c;
  border-radius: 28px;
  color:#fff;
  font-size:16px;
  font-weight:600;
}

.toggle-row{
  position:relative;
  display:flex;
  background:#f5f5f5;
  border-radius:28px;
  padding:1px;
  height: 36px;
  cursor:pointer;
  user-select:none;
 
}

.toggle-thumb{
  position:absolute;
  top: 3px;
  left:3px;
  width:calc(50% - 4px);
  height:30px;
  background:#2c2c2c;
  border-radius:30px;
  box-shadow:0 1px 2px rgba(0,0,0,.15);
  transition:transform .24s cubic-bezier(.22,1,.36,1);
}

.toggle-row.right .toggle-thumb{
  transform:translateX(100%);
}

.toggle-option{
  flex:1;

  display:flex;
  align-items:center;
  justify-content:center;

  height:100%;

  z-index:1;
   font-size: 15px;
  font-weight:300;
  transition:color .18s ease;
}

.toggle-option.active{
  color:#fff;
}

.memo-swipe{
  position:relative;
  overflow:hidden;
  border-radius:20px;
  background:#f5f5f5; /* cùng màu nền app */
}

.memo-actions{
  position:absolute;
  top:8px;
  right:8px;
  bottom:8px;

  display:flex;
  gap:8px;

  z-index:0;
}

.action-btn{
  border:none;
  border-radius:16px;
  width:72px;

  
  font-weight:500;
  font-size: 12px;
}

.action-btn.edit{
  background:#00ff8c;
  color: #156631;
  
}

.action-btn.progress-edit{
  background:#f7ff87;
  color: #876e00;
  
}

.action-btn.repeat{
  background:#82bcff;
  color: #3140a3;
}

.action-btn.clear{
  background:#ff9b96;
  color: #8b1a47;
}

.memo-card{
  position:relative;
  z-index:1;

  transition:transform .22s cubic-bezier(.22,1,.36,1);
}

.memo-swipe.open .memo-card{
  transform:translateX(-240px);
}

.action-btn.disabled{
  opacity: .45;
  cursor: default;
  pointer-events: none;
}

.memo-created{
  color: #666666;
  font-size: 11px;
  font-style: italic;
  font-weight: 400;
}

/* ===== Sticky top controls ===== */

.top-controls{
  position: sticky;
  top: 0;
  z-index: 30;

  padding: 12px 16px 10px;

  background: linear-gradient(
    to bottom,
    rgba(245, 243, 255, 1) 0%,
    rgba(245, 243, 255, 0.92) 35%,
    rgba(245, 243, 255, 0.70) 65%,
    rgba(245, 243, 255, 0) 100%
  );
  padding-top: 50px;
  padding-bottom: 14px;

  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

/* ===== Search ===== */

.search-wrap{
  margin-bottom: 10px;
}

#search-input{
  width: 100%;
  height: 44px;


  border-radius: 14px;

   background: rgba(255,255,255,0.92);
  border: 1px solid rgba(139,92,246,0.12);
  box-shadow: 0 4px 14px rgba(15,23,42,0.06);
  color: #363636;

  padding: 0 16px;
  font-size: 15px;

  outline: none;
  transition: .2s ease;
}

#search-input::placeholder{
  color: rgba(66, 66, 66, 0.5);
  font-style: italic;
  font-size: 12px;
}

#search-input:focus{
  border-color: rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.07);
}

/* ===== Tabs ===== */

.tab-row{
  display: flex;
  gap: 8px;
}

.tab-chip{
  height: 36px;
  padding: 0 14px;
  flex: 1;
  border-radius: 999px;

   background: rgba(255,255,255,0.88);
  border: 1px solid rgba(139,92,246,0.12);
  color: #363636;

  font-size: 12px;
  font-weight: 600;

  transition: .2s ease;
}

.tab-chip.active{
  background: rgba(47, 47, 47, 0.888);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.911);
}

.tab-chip:active{
  transform: scale(1.2);
}

/* ===== Memo list spacing ===== */

#memo-list{
  padding: 12px 16px 120px;
}



/* ===== Memo card polish ===== */

.memo-card{
  transition:
    transform .18s ease,
    box-shadow .22s ease,
    border-color .22s ease;
}

.memo-card:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.28);
}

.empty-state{
  padding: 72px 24px;
  text-align: center;
  color: #666;
}

.empty-icon{
  font-size: 32px;
  margin-bottom: 14px;
  opacity: .7;
}

.empty-title{
  font-size: 16px;
  font-weight: 700;
  color: #222;
  margin-bottom: 8px;
}

.empty-sub{
  font-size: 14px;
  line-height: 1.6;
  color: #777;
}

/* ===== App bar ===== */

.app-bar{
  position:relative;

  display:flex;
  align-items:center;
  justify-content:space-between;

  padding:10px 12px;

  background:#ffffff;
  border:1px solid rgba(139,92,246,.10);
  border-radius:20px;

  box-shadow:0 6px 18px rgba(15,23,42,.06);
}

.app-title{
  position:absolute;
  left:50%;
  transform:translateX(-50%);

  font-size:16px;
  font-weight:600;
  letter-spacing:-0.02em;
  color:#111;

  pointer-events:none;
}

.app-logo{
  width:36px;
  height:36px;
  padding:5px;
  padding-left: 7px;
  border-radius:12px;
  
  color:#484848;
  background-color: #00ff8c;
  display:flex;
  align-items:center;
  justify-content:center;
}

.app-logo-svg{
  width:100%;
  height:auto;
}

/* ===== Menu logo real ===== */

.menu-logo{
  width:48px;
  height:48px;
  border-radius:16px;
  padding: 9px;
  padding-left: 11px;

  background:#00ff8c;
  color:#484848;

  display:flex;
  align-items:center;
  justify-content:center;

  box-shadow:0 4px 12px rgba(15,23,42,.08);
}

.menu-logo-svg{
  width:32px;
  height:auto;
}

/* ===== Menu info box ===== */

.menu-info{
  background:#fff;
  border:1px solid rgba(139,92,246,.12);
  border-radius:20px;
  padding:16px;
  box-shadow:0 4px 12px rgba(15,23,42,.05);
}

.menu-info-title{
  font-size:15px;
  font-weight:700;
  color:#111;
  margin-bottom:10px;
}

/* Khung info có thể co giãn trong menu */

.menu-info{
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.menu-info-content{
  flex: 1;
  min-height: 0;

  overflow-y: auto;
  -webkit-overflow-scrolling: touch;

  padding-right: 4px;
}

.menu-info-content{
  font-size:14px;
  line-height:1.7;
  color:#555;
  white-space:pre-wrap;
  overflow-y: scroll;
}

/* Version spacing */

.menu-version{
  margin-top:20px;
}

.menu-btn{
  width:36px;
  height:36px;

  border:none;
  border-radius:12px;

  background:transparent;

  font-size:18px;
  color:#333;
}

/* ===== Fullscreen menu ===== */

.menu-backdrop{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.28);
  opacity:0;
  pointer-events:none;
  transition:.22s ease;
  z-index:80;
}

.menu-sheet{
  position:fixed;
  inset:0;
  background:#f5f5f5;
  padding:24px 20px 32px;

  display:flex;
  flex-direction:column;
  gap:16px;

  transform:translateY(16px);
  opacity:0;
  pointer-events:none;

  transition:
    transform .28s cubic-bezier(.22,1,.36,1),
    opacity .22s ease;

  z-index:90;
}

.menu-backdrop.show{
  opacity:1;
  pointer-events:auto;
}

.menu-sheet.show{
  transform:translateY(0);
  opacity:1;
  pointer-events:auto;
}

.menu-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
}


.menu-close{
  width:40px;
  height:40px;
  border:none;
  border-radius:14px;
  background:#fff;
  border:1px solid rgba(139,92,246,.12);
  box-shadow:0 4px 12px rgba(15,23,42,.06);
  font-size:18px;
}

.menu-title{
  font-size:28px;
  font-weight:700;
  margin-top:8px;
  margin-bottom:8px;
}

.menu-item{
  width:100%;
  height:56px;

  display:flex;
  align-items:center;
  gap:12px;

  padding:0 16px;

  border:none;
  border-radius:18px;

  background:#fff;
  border:1px solid rgba(139,92,246,.12);
  box-shadow:0 4px 12px rgba(15,23,42,.05);

  font-size:16px;
  font-weight:500;
  color:#111;
}

.menu-version{
  margin-top:auto;
  text-align:center;
  color:#777;
  font-size:13px;
}

/* iOS PWA keyboard fix */

.add-sheet.show{
  transform: none;
  bottom: 16px;
}

#search-input{ font-size:16px; }
.sheet-input{ font-size:16px; }
.task-editor{ font-size:16px; }
.note-box{ font-size:16px; }

/* ===== Custom Progress Sheet ===== */

.progress-backdrop{
  position:fixed;
  inset:0;

  background:rgba(0,0,0,.18);

  opacity:0;
  pointer-events:none;

  transition:opacity .22s ease;

  z-index:70;
}

.progress-backdrop.show{
  opacity:1;
  pointer-events:auto;
}

.progress-sheet{
  position:fixed;

  left:16px;
  right:16px;
  bottom:-120vh;

  max-width:448px;
  margin:0 auto;

  background:#fff;
  border-radius:28px;

  padding:16px;

  display:flex;
  flex-direction:column;
  gap:12px;

  min-height:520px;

  transition:bottom .32s cubic-bezier(.22,1,.36,1);

  z-index:75;
}

.progress-sheet.show{
  bottom:16px;
}

.progress-custom-row{
  margin-inline: 30px;
  display:flex;
  align-items:center;
  gap:12px;
}

.progress-custom-label{
  flex:1;

  font-size:14px;
  color:#555;
}

.progress-icon-input-wrap{
  position:relative;
  width:64px;
  height:56px;
  flex:0 0 64px;
}

.progress-icon-input{
  width:64px;
  height:56px;

  border:none;
  border-radius:18px;

  background:#fff;

  box-shadow:var(--surface-idle);

  text-align:center;

  font-size:28px;
  line-height:1;

  color:transparent;
  caret-color:#555;
}

.progress-icon-input:focus{
  outline:none;
  box-shadow:var(--surface-focus);
}

.progress-icon-input-wrap.active .progress-icon-input{
  box-shadow:var(--surface-focus);
}

.progress-icon-input-preview{
  position:absolute;
  inset:0;

  display:flex;
  align-items:center;
  justify-content:center;

  font-size:28px;
  line-height:1;

  pointer-events:none;
  user-select:none;

  transform:rotate(var(--progress-rotate, 0deg))
    scaleX(var(--progress-scale-x, 1))
    scaleY(var(--progress-scale-y, 1));

  transition:transform .18s ease;
}

.progress-transform-tools{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:20px;
  margin-top:12px;
}

.progress-transform-btn{
  width:50px;
  height:50px;

  border:none;
  border-radius:14px;

  background:#fff;
  box-shadow:var(--surface-idle);

  font-size:18px;
  line-height:1;
  cursor:pointer;

  transition:transform .12s ease, box-shadow .12s ease;
}

.progress-transform-btn:active{
  transform:scale(.92);
}

.progress-transform-btn:focus-visible{
  outline:none;
  box-shadow:var(--surface-focus);
}

.progress-warning{
  min-height:20px;

  font-size:12px;
  color:#d14a4a;

  text-align:center;
}

.progress-preview-label{
  font-size:12px;
  color:#777;
  font-style:italic;
}

.progress-preview{
  padding:18px 12px;
  border-radius:20px;
  background:#fafafa;
}

.progress-preview-bar{
  position:relative;

  width:95%;
  height:11px;

  margin-inline:auto;

  border-radius:999px;
  background:#e9e9e9;

  overflow:visible;
}

/* Preview dùng lại visual progress hiện tại */

.progress-preview-bar .progress-gradient{
  position:absolute;
  inset:0;

  border-radius:999px;

  background:linear-gradient(
    90deg,
    #a5ffd6 0%,
    #98ebfe 42%,
    #d8c7ff 72%,
    #ffc5b4 100%
  );
}

.progress-preview-bar .progress-mask{
  position:absolute;

  top:0;
  right:0;

  height:100%;

  border-radius:999px;

  z-index:2;
  background-color:  #e9e9e9;

  /*background:linear-gradient(
    90deg,
    rgba(233,233,233,0) 0px,
    rgba(233,233,233,0.55) 10px,
    #e9e9e9 18px,
    #e9e9e9 100%
  );*/
}

.progress-preview-bar .progress-pattern{
  position:absolute;
  inset:0;

  display:flex;
  align-items:center;
  gap:3px;

  overflow:hidden;
  border-radius:999px;
  z-index:1;
  pointer-events:none;
}

.progress-preview-bar .progress-pattern span{
  flex:0 0 8px;
  width:6px;
  height:6px;

  display:flex;
  align-items:center;
  justify-content:center;

  font-size:8px;
  line-height:1;

  transform:rotate(var(--progress-rotate, 0deg))
    scaleX(var(--progress-scale-x, 1))
    scaleY(var(--progress-scale-y, 1));

  transform-origin:center;
}

.progress-preview-bar .progress-icon{
  position:absolute;

  top:50%;

  display:flex;
  align-items:center;
  justify-content:center;

  width:24px;
  height:24px;

  transform:translateY(-50%) rotate(var(--progress-rotate, 0deg))
    scaleX(var(--progress-scale-x, 1))
    scaleY(var(--progress-scale-y, 1));

  font-size:16px;
  line-height:1;

  pointer-events:none;

  z-index:3;
}

.progress-preview-bar .progress-icon-from{
  left:0;
  transform:translate(-50%, -50%) rotate(var(--progress-rotate, 0deg))
    scaleX(var(--progress-scale-x, 1))
    scaleY(var(--progress-scale-y, 1));
}

.progress-preview-bar .progress-icon-to{
  right:0;
  transform:translate(50%, -50%) rotate(var(--progress-rotate, 0deg))
    scaleX(var(--progress-scale-x, 1))
    scaleY(var(--progress-scale-y, 1));
}

.progress-preview-bar .progress-runner{
  position:absolute;

  top:50%;

  display:flex;
  align-items:center;
  justify-content:center;

  width:24px;
  height:24px;

  transform:translate(-50%, -50%) rotate(var(--progress-rotate, 0deg))
    scaleX(var(--progress-scale-x, 1))
    scaleY(var(--progress-scale-y, 1));

  font-size:16px;
  line-height:1;

  pointer-events:none;

  z-index:4;

  transition:left .25s ease;
}

.progress-save{
  border:none;
  border-radius:28px;

  padding:16px;

  background:#00ff8c;
  color:#156631;

  font-size:16px;
  font-weight:600;
}
/* Progress pattern: three optional emoji slots */
.progress-pattern-input {
  width: 34px;
  height: 34px;
  padding: 0;
  text-align: center;
  font-size: 18px;
  line-height: 1;
  flex: 0 0 34px;
}


/* Progress pattern: three independent optional emoji slots */
.progress-pattern-slots{
  display:flex;
  align-items:center;
  gap:8px;
  width:auto;
  flex:0 0 auto;
}
.progress-pattern-slot{
  position:relative;
  width:64px;
  height:56px;
  flex:0 0 64px;
}
.progress-pattern-slot .progress-icon-input,
.progress-pattern-slot .progress-icon-input-preview{
  width:64px;
  height:56px;
}
