    * {
      transition: background-color 0.2s ease-in, color 0.2s ease-in, border-color 0.2s ease-in;
    }

    :root {

      --accent-gray: #D4D4D8;
      --accent-gray-low: rgba(212, 212, 216, 0.2);
      --accent-gray-medium: rgba(212, 212, 216, 0.4);
      --accent-gray-bold: #52525B;

      --accent-green: #BCEB66;
      --accent-green-low: rgba(188, 235, 102, 0.2);
      --accent-green-medium: rgba(188, 235, 102, 0.4);
      --accent-green-bold: #6d8f1e;

      --accent-blue: #2853BC;
      --accent-blue-low: rgba(40, 83, 188, 0.2);
      --accent-blue-medium: rgba(40, 83, 188, 0.4);
      --accent-blue-bold: #173b86;

      --accent-purple: #e0b0ff;
      --accent-purple-low: rgba(224, 176, 255, 0.2);
      --accent-purple-medium: rgba(224, 176, 255, 0.4);
      --accent-purple-bold: #8a2be2;

      --accent-pink: #FFD1DE;
      --accent-pink-low: rgba(255, 209, 222, 0.2);
      --accent-pink-medium: rgba(255, 209, 222, 0.4);
      --accent-pink-bold: #cc7f94;

      --accent-emerald: #025e5c;
      --accent-emerald-low: rgba(2, 94, 92, 0.2);
      --accent-emerald-medium: rgba(2, 94, 92, 0.4);
      --accent-emerald-bold: #013534;

      --accent: var(--accent-green);
      --accent-low: var(--accent-green-low);
      --accent-medium: var(--accent-green-medium);
      --accent-bold: var(--accent-green-bold);

      --accent: var(--accent);
      /* default */

      --bg-light: #f5f5f5;
      --bg-dark: #1a1a1a;

      --text-light: #333;
      --text-dark: #f5f5f5;

      --bg-white: #fff;
      --bg-white-dark: #2b2b2b;

      --border-light: #e0e0e0;
      --border-dark: #444;

      --hover-light: #f0f0f0;
      --hover-dark: rgba(255, 255, 255, 0.07);

      --accent: var(--accent);
      --header-height: 60px;


      * {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
        font-family: 'DM Sans', sans-serif;
      }

      body {
        height: 100vh;
        display: flex;
        transition: 0.2s;
        background: var(--bg-light);
        color: var(--text-light);
        font-size: 15px;
      }

a {
  text-decoration: none;
  color: var(--accent);
}
      .panel {
        display: flex;
        flex-direction: column;
        height: 100%;
      }

      .left {
        flex: 1;
        transition: 0.2s;
        background: var(--bg-white);
      }

      .left.full {
        width: 100%;
      }

      .right {
        width: 450px;
        min-width: 450px;
        max-width: 450px;
        border-left: 1px solid var(--border-light);
        background: var(--bg-light);
      }

      .hidden {
        display: none;
      }

      header {
        border-left: 6px solid var(--accent);
        height: var(--header-height);
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 24px;
        border-bottom: 1px solid var(--border-light);
        background: var(--bg-white);
      }
      .magic {display: inline-block; margin-right: 20px}
      .header-actions {
        display: flex;
        align-items: center;
        gap: 14px;
      }

      nav.menu {
        border-left: 6px solid var(--accent);
        padding: 0 24px;
        height: 48px;
        display: flex;
        align-items: center;
        gap: 8px;
        background-color: var(--bg-white);
        border-bottom: 1px solid var(--border-light);
        border-left: 6px solid var(--accent);
      }


      nav.menu a {
        font-size: 13px;
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 6px 0;
        font-size: 14px;
        color: inherit;
        text-decoration: none;
        border-radius: 4px;
        transition: background 0.2s ease-in;
        margin: 0;
      }

      nav.menu a i {
        width: 16px;
        height: 16px;
        color: #666;
      }

      nav.menu a:hover {
        background: var(--hover-light);
      }

      nav.menu a {
        border: none;
        background: none;
        cursor: pointer;
        text-decoration: none;
      }

      button {
        padding: 12px 6px;
        border: none;
        background: none;
        cursor: pointer;
        text-decoration: none;
      }

      button+button {
        margin-left: 6px
      }

      button:hover {
        background: var(--hover-light);
      }

      ul,
      ol {
        margin-left: 1.5em;
        padding-left: 0.5em;
      }

      li {
        margin-bottom: 0.5em;
      }

      .content {
        flex: 1;
        padding: 16px;
        overflow-y: auto;
        background: var(--bg-light);
        background: linear-gradient(135deg, #f7f7f7, #ebebeb, #f7f7f7);
        background-size: 400% 400%;
        animation: gradientSky 15s ease-in infinite;
        padding: 16px;
      }



      @keyframes gradientSky {
        0% {
          background-position: 0% 50%;
        }

        50% {
          background-position: 100% 50%;
        }

        100% {
          background-position: 0% 50%;
        }
      }

      .card {
        background: var(--bg-white);
        border: 1px solid var(--border-light);
        border-radius: 4px;
        padding: 20px;
      }

      .footer {
        position: sticky;
        bottom: 0;
        width: 100%;
        background: var(--bg-white);
        border-top: 1px solid var(--border-light);
        padding: 10px 20px;
        z-index: 10;
      }

      .main-grid {
        display: grid;
        grid-template-columns: 1fr 450px;
        gap: 12px;
      }
	  
      .main-grid-task {
		    display: grid;
        grid-template-columns:  300px 1fr;
		    gap: 12px;
       }

.main-grid.task {
  display: grid;
  grid-template-columns: 200px 1fr 1fr; /* kolom pertama fixed 280px */
  gap: 16px;
}
    @media (max-width: 1440px) {
		 .main-grid.task {grid-template-columns: 100px 1fr 1fr}
    }
       .panel-closed .main-grid-task {grid-template-columns: 350px 1fr 300px}
       .main-grid-milestone {display: none}
       .panel-closed .main-grid-milestone {display: block;}

	  .main-grid-task .main-grid-right {
	  width: 100%;
	  justify-self: stretch;
	}
      .main-grid.single {
        display: grid;
        grid-template-columns: 1fr ;
        gap: 12px;
      }

      .flex-row{
        display: flex;
        align-items: center;
        gap: 8px;
      }
        .flex-row2{
        display: flex;
        align-items: center;
        gap: 6px;
      }
      .flex-row2 a{
        display: inline-block;
        margin-right: 4px;
      }

      table {
        width: 100%;
        border-collapse: collapse;
        margin-bottom: 1em;
      }

      .table_home th,  .table_home td{
          width: 10%;
      }

      th,
      td {
        padding: 8px 12px;
        border: 1px solid var(--border-light);
        text-align: left;
      }

      form input,
      form select,
      form textarea,
      form button {
        font-family: 'DM Sans', sans-serif;
        font-weight: bold;
        font-size: 15px;
        border-radius: 4px;

      }

      form input,
      form select,
      form textarea {
        width: 100%;
        padding: 10px;
        margin-bottom: 12px;
        border: 1px solid var(--border-light);
        border-radius: 4px;
      }

      .btn.primary {
        background: var(--accent);
        border: 1px solid var(--accent);
        border: none;
        padding: 8px 16px;
        border-radius: 4px;
        cursor: pointer;
        font-weight: bold;
        font-size: 15px;
        color: var(--text-on-accent) !important;
      }

      .total{
        font-size:16px;
        font-weight:bold;
        background: var(--accent);
        color: var(--text-on-accent) !important;
        padding:2px 10px;
        border-radius:20px;
        margin-left:2px;

      }

      /* Button Styles */
      button.primary {
        background-color: var(--accent);
        color: var(--text-on-accent);
        border: 1px solid var(--accent);
        padding: 8px 16px;
        border-radius: 4px;
        font-weight: 600;
        cursor: pointer;
        transition: background-color 0.2s ease-in;
      }

      button.primary:hover {
        background-color: var(--accent);
      }

      button.neutral {
        background-color: none;
        color: inherit;
        border: 1px solid var(--border-light);
        padding: 8px 16px;
        border-radius: 4px;
        font-weight: 500;
        cursor: pointer;
        transition: background-color 0.2s ease-in;
      }

      button.neutral:hover {
        background-color: #ddd;
      }

      .avatar {
        width: 28px;
        height: 28px;
        border-radius: 50%;
        object-fit: cover;

      }

      .username {
        margin-left: 5px;
        font-size: 14px;
      }


      h1,
      h2,
      h3,
      h4,
      h5,
      h6 {
        margin-bottom: 12px;
      }


      .text-small {
        font-size: 13px;
      }

      .text-base {
        font-size: 14px;
      }

      .text-medium {
        font-size: 16px;
      }

      .text-large {
        font-size: 18px;
      }

      .text-title {
        font-size: 20px;
        font-weight: bold;
      }

      h1 {
        font-size: 24px;
        font-weight: bold;
      }

      h2 {
        font-size: 20px;
        font-weight: bold;
      }

      h3 {
        font-size: 17px;
        font-weight: bold;
      }

      label {
        font-size: 14px;
        font-weight: 500;
        margin-bottom: 8px;
        display: block;
        margin-bottom: 6px;
      }



      nav.menu i,
      button i,
      .card i {
        color: #666;
      }






      /* Modal Base Styles */
      .modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1000;
      }

      .modal.hidden {
        display: none;
      }

      .modal-content {
        background: var(--bg-white);
        padding: 24px;
        border-radius: 4px;
        width: 90%;
        max-width: 500px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        position: relative;
      }

      .modal-content-box {
        padding: 12px 0;
      }

      .modal .close {
        position: absolute;
        top: 10px;
        right: 14px;
        font-size: 20px;
        cursor: pointer;
      }


      select {
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        background-color: var(--bg-white);
        border: 1px solid var(--border-light);
        border-radius: 9999px;
        padding: 6px 12px;
        padding-right: 28px;
        font-size: 14px;
        background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M70 90L30 50h80z' fill='%23333'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 8px center;
        background-size: 12px;
      }


      header,
      nav.menu {
        border-left: 6px solid var(--accent);
        padding: 0 24px;
      }


      .menu {
            display: flex;
            justify-content: space-between;
      }

      .menu > div {
            display: flex;
            justify-content: flex-start;
            gap: 14px;
      }

      .chip {
        display: inline-block;
        padding: 4px 10px;
        border-radius: 999px;
        font-size: 12px;
        font-weight: 500;
        background-color: #eee;
        color: var(--text-on-accent);
        text-transform: capitalize;
        white-space: nowrap;
      }
      .chip.status {color: #333}
      .chip.indentify {color: var(--text-light);}
      .chip-status{ display:inline-block;
        padding:3px 6px ;border-radius:4px;font-size:14px;color:#333;}
      .chip-squared {
        display: inline-block;
        padding: 4px 10px;
        border-radius: 4px;
        font-size: 14px;
        font-weight: 500;
        color: #333;
        background-color: #eee;
        text-transform: capitalize;
      }

.chip.attention {
  animation: jiggle 0.4s ease-in-out infinite;
}


@keyframes jiggle {
  0% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(3deg);
  }
  50% {
    transform: rotate(-3deg);
  }
  75% {
    transform: rotate(3deg);
  }
  100% {
    transform: rotate(0deg);
  }
}
      .flow-list-section .chip-squared {
        display: inline-block;


      }
      .task-title{
        display: inline-block;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;    
      }
      .chip-squared.indentify {color: var(--text-light);}
      body.dark .chip.indentify,
      body.dark .chip-squared.indentify {color: var(--text-dark);}

      .filter-chip {
        background-color: var(--accent);
        color: var(--text-on-accent);
        display: inline-block;
        padding: 6px 12px;
        margin-right: 8px;
        margin-top: 12px;
        margin-bottom: 30px;
        border-radius: 16px;
        font-size: 16px;
      }

      .filter-chip a {color: var(--text-on-accent);}


      .right .content {
        background-color: var(--bg-light);
      }

      nav.menu a.active {
        background-color: var(--bg-light);
        color: var(--accent);
        font-weight: bold;
      }

      nav.menu a.active:hover {
        background-color: var(--hover-light);
      }

      .avatar-placeholder {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background-color: var(--accent);
        color: var(--text-on-accent);
        font-size: 13px;
        font-weight: bold;
        display: flex;
        align-items: center;
        justify-content: center;
      }

      :focus-visible {
        outline: 2px solid var(--accent);
        outline-offset: 2px;
      }

      form input:focus,
      form select:focus,
      form textarea:focus {
        border-color: var(--accent);
        box-shadow: 0 0 0 2px rgba(76, 230, 153, 0.3);

      }




      /* Toggle Styles Grouped */

      #darkToggle {
        width: 40px;
        height: 20px;
        background: var(--accent);
        border-radius: 20px;
        position: relative;
        border: none;
        padding: 0;
        cursor: pointer;
      }


      .mode-toggle {
        position: relative;
        width: 36px;
        height: 36px;
        background: transparent;
        border: none;
        cursor: pointer;
        font-size: 18px;
      }

      .mode-toggle .icon-sun,
      .mode-toggle .icon-moon {
        position: absolute;
        top: 0;
        left: 0;
        opacity: 0;
        transform: scale(0.8);
        transition: opacity 0.3s ease-in, transform 0.3s ease-in;
        transform-origin: center;
      }

      .mode-toggle .icon-sun {
        opacity: 1;
      }


      .switch-toggle {
        width: 44px;
        height: 24px;
        border-radius: 24px;
        background-color: #ccc;
        border: none;
        cursor: pointer;
        padding: 2px;
        position: relative;
        transition: background-color 0.3s ease-in;
      }

      .switch-knob {
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background-color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: transform 0.3s ease-in;
        font-size: 12px;
        position: absolute;
        left: 0px;
        top: 0px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
      }

      .switch-knob .icon {
        font-size: 14px;
        line-height: 1;
        position: relative;
        top: 1px;
        transition: transform 0.4s ease-in;
      }

      .switch-toggle:focus-visible {
        outline: 2px solid var(--accent);
        outline-offset: 2px;
      }


      /* Toast Notification Styles */

      .toast-container {
        position: fixed;
        top: 70px;
        /* slightly below header */
        left: 50%;
        transform: translateX(-50%);
        z-index: 2000;
        display: flex;
        flex-direction: column;
        gap: 12px;
        align-items: center;
        font-size: 14px;
      }

      .toast {
        background-color: var(--text-on-accent);
        color: var(--text-on-accent);
        padding: 12px 20px;
        border-radius: 4px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        opacity: 0;
        transform: translateY(-10px);
        transition: opacity 0.4s ease-in, transform 0.4s ease-in;
      }

      .toast.show {
        opacity: 1;
        transform: translateY(0);
      }

      .toast.success {
        background-color: var(--accent);
        color: var(--text-on-accent);
      }

      .toast.error {
        background-color: #e74c3c;
        color: var(--text-on-accent);
      }

      .toast.info {
        background-color: #3498db;
        color: var(--text-on-accent);
      }


      main h1,
      main .page-title {
        font-size: 22px;
        color: var(--accent);
      }



    header .logo {
      font-size: 20px;
      color: var(--accent);
    }

    .logo-updated {
      font-size: 20px !important;
      color: var(--accent) !important;
    }

    .logo-final {
      font-size: 22px !important;
      font-weight: bold;
      color: inherit !important;
    }



    .avatar-placeholder+.username {
      margin-left: 4px !important;
    }

    .icon-placeholder {
      display: inline-block;
      width: 15px;
      height: 15px;
      border-radius: 50%;
      background-color: #ccc;
    }

    .info-bar {
      height: 36px;
      display: flex;
      align-items: center;
      width: 100%;
      background-color: var(--accent-low);
      border-bottom: 1px solid var(--border-light);
      color: inherit;
      padding: 4px 12px;
      font-size: 13px;
      text-align: center;

    }





    .shoutout-chip {
      display: inline-block;
      background-color: var(--accent);
      color: var(--text-on-accent) !important;
      padding: 6px 10px;
      font-size: 13px;
      font-weight: 500;
      border-radius: 4px;
    }

    .shoutout-chip-2 {
      display: inline-block;
      padding: 6px 10px;
      font-size: 13px;
      font-weight: normal;
      border-radius: 4px;
    }

    body.green {
      --text-on-accent: #333;
    }

    body.blue {
      --text-on-accent: #fff;
    }

    body.purple {
      --text-on-accent: #fff;
    }

    body.pink {
      --text-on-accent: #333;
    }

    body.emerald {
      --text-on-accent: #fff;
    }

    /* === Dark Mode Styles === */
    body.dark {
      background: var(--bg-dark);
      color: var(--text-dark)
    }

    body.dark .left,
    body.dark .right,
    body.dark header,
    body.dark nav.menu,
    body.dark .footer,
    body.dark .card,
    body.dark form input,
    body.dark form select,
    body.dark form textarea,
    body.dark th,
    body.dark td {
      background: var(--bg-white-dark);
      border-color: var(--border-dark);
    }

    body.dark .task-row {}

    body.dark button.neutral {
      border-color: var(--border-dark);
    }

    body.dark header,
    body.dark nav.menu {
      border-left-color: var(--accent);
    }

    body.dark .content {
      background: linear-gradient(135deg, #1e1e1e, #2a2a2a, #1e1e1e);
      background-size: 400% 400%;
      animation: gradientSky 15s ease-in infinite;
    }

    body.dark button:hover,
    body.dark nav.menu a:hover {
      background: var(--hover-dark);
    }

    body.dark .modal-content {
      background: var(--bg-white-dark);
    }

    body.dark select {
      background-color: var(--bg-white-dark);
      border-color: var(--border-dark);
      color: white;
    }

    body.dark .switch-toggle {
      background-color: var(--accent);
    }

    body.dark .switch-knob {
      transform: translateX(20px);
    }

    body.dark .switch-knob .icon {
      transform: rotate(360deg);
    }

    body.dark .mode-toggle .icon-sun {
      opacity: 0;
      transform: scale(0.8) rotate(-90deg);
    }

    body.dark .mode-toggle .icon-moon {
      opacity: 1;
      transform: scale(1) rotate(0deg);
    }

    body.dark .info-bar {
      background-color: var(--accent-low);
      border-bottom: 1px solid var(--border-dark);
      color: inherit;
    }

    body.dark nav.menu a:hover {
      background: var(--hover-dark);
    }

    body.dark .right .content {
      background-color: var(--bg-dark);
    }

    button.panel-toggle {
      width: 24px;
      height: 24px;
      background: linear-gradient(to right, var(--accent) 50%, transparent 50%);
      border: 1px solid var(--accent) !important;
      border-radius: 4px;
      transition: background 0.3s ease-in;
      padding: 0;
      cursor: pointer;
    }

    body.panel-closed .panel-toggle {
      background: var(--accent);
    }

    .top-section {
      display: flex;
      flex-direction: row;
      gap: 12px;
      margin-bottom: 12px;
    }

    .summary-card.card {
      flex: 1;
      text-align: center;
      cursor: pointer;
      margin-bottom: 0;
      padding: 16px 12px;
    }

    .color-switcher {
      display: flex;
      gap: 0px;
    }

.btn-small {
  padding: 2px 8px;
  font-size: 12px;
  border-radius: 4px;
  background: var(--accent-color);
  color: white;
  border: none;
  cursor: pointer;
}

.btn-ghost {
  padding: 2px 2px;
  font-size: 12px;
  border-radius: 4px;
  color: white;
  border: none;
  cursor: pointer;
}

    button.color-switcher-btn {
      border-radius: 50%;
      border: none;
      cursor: pointer;
      padding: 0;
      width: 12px;
      height: 12px;
      border-radius: 50%;
      border: none;
      cursor: pointer;
      outline: none;
    }




    /* Background colors from variables */
    .color-switcher-btn.green {
      background: var(--accent-green);
    }

    .color-switcher-btn.blue {
      background: var(--accent-blue);
    }

    .color-switcher-btn.purple {
      background: var(--accent-purple);
    }

    .color-switcher-btn.pink {
      background: var(--accent-pink);
    }

    .color-switcher-btn.emerald {
      background: var(--accent-emerald);
    }

.flow-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

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

  flex-wrap: wrap;
}

/* Emoji avatar */
.flow-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #eee;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.gray-title {
  font-size: 12px;
  color:#666;
  padding: 2px 0 6px 0;
}


/* Middle text section */
.flow-info {
  flex: 1;
  display: flex;
  flex-direction: row;
  gap: 4px;
  min-width: 0;
}

.flow-title {
  font-weight: 600;
  font-size: 15px;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.flow-link a {
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
  margin-right: 0px;
}

.flow-status {
  font-size: 13px;
  color: #666;
}

.flow-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.edit-btn,
.delete-btn,
.toggle-btn {
  font-size: 13px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  padding: 0px;
  white-space: nowrap;
}

.edit-btn {
  background: transparent;
  color: var(--accent);
}

.delete-btn {
  background: #eee;
  color: #333;
}

.toggle-btn {
  background: #2f5bea;
  color: white;
}

/* Flow Modal Enhancements */
.modal form {
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  padding: 24px;
  border-radius: 4px;
  width: 100%;
  max-width: 400px;
}
body.dark .modal form {
  background: var(--bg-dark);
  border: 1px solid var(--border-dark);

}

.modal h4 {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 12px;
}

.modal label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 500;
}

.modal input[type="text"],
.modal input[type="url"],
.modal input[type="checkbox"] {
  font-size: 14px;
  padding: 8px;
  width: 100%;
  margin-bottom: 12px;
  border: 1px solid var(--border-light);
  border-radius: 4px;
}

.modal input[type="checkbox"] {
  width: auto;
  margin-right: 8px;
}

.modal button {
  margin-top: 8px;
}

.modal button[type="submit"] {
  background-color: var(--accent);
  color: var(--text-on-accent);
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
}

.modal button[type="submit"]:hover {
  background-color: var(--accent-medium);
}

.modal button[type="button"] {
  background: none;
  border: 1px solid var(--border-light);
  color: inherit;
  padding: 6px 12px;
  margin-left: 8px;
  border-radius: 4px;
  cursor: pointer;
}

body.dark .modal button[type="button"] {  border: 1px solid var(--border-dark);}
.modal button[type="button"]:hover {
  background-color: var(--hover-light);
}

#shoutoutMarquee  {display: flex;}

#shoutoutMarquee  button {
  padding: 0; 
  margin-right: 20px;
  background-color: var(--accent);
  width: 20px;
    height: 20px;
    border-radius: 20px;
}

.shoutout-fader {
  height: 24px;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 4px 12px;
  background: var(--bg-secondary);

}

.shoutout-item {
  opacity: 0;
  transition: opacity 0.5s ease;
  display: flex;
  gap: 6px;
  align-items: center;
  height: 24px;
  white-space: nowrap;
}

.shoutout-item.visible {
  opacity: 1;
}

.shoutout-chip {
  padding: 2px 8px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 4px;
  color: #333;
}

.todo-done {

}

.chip-done {
  text-decoration: line-through;
  opacity: 0.6;
}


.pulse-dot, .static-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #555;
  margin-right: 4px;
}
.pulse-dot {
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.5); opacity: 0.3; }
  100% { transform: scale(1); opacity: 0.8; }
}


.presence-mini {
  display: flex;
  align-items: center;

}

.presence-mini .chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
  line-height: 1;
  color: #fff;
}

.presence-mini .chip::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  display: inline-block;
}

.presence-mini select {
  max-width: 160px;
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid #ddd;
  background: #fff;
  font-size: 13px;
  cursor: pointer;
  line-height: 1.2;
}

.presence-mini small {
  font-size: 12px;
  opacity: 0.7;
}

@media (max-width: 768px) {
  .presence-mini select {
    max-width: 120px;
  }
  .presence-mini .chip {
    padding: 4px;
  }
}
.presence-mini .chip {
  cursor: pointer;
}

.presence-mini .presence-form {
  display: none;
}

.presence-mini.show-form .presence-form {
  display: inline-block;
}

.initial-badge {
    display: inline-block;
    width: 24px;
    height: 24px;
    line-height: 24px;
    border-radius: 4px;
    color: #333;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    vertical-align: middle;
    box-shadow: 0 1px 2px #0001;
}
.avatar-badge {
  display: inline-block;
  width: 20px;
    height: 20px;
    line-height: 20px;
    border-radius: 50%;
    object-fit: cover;
    vertical-align: middle;
    font-size: 13px;
    text-align: center;
    font-weight: 600;
    background: #eee;
}
.avatar-on-list {
  width:20px;height:20px;border-radius:50%;object-fit:cover;vertical-align:middle;
}
.task-details{
  display:flex; gap:20px; flex-wrap:wrap; 
}


.task-details-content {
  display: grid;
  grid-template-columns: 1fr ;
  gap: 24px;
}


.designer-list td, .designer-list th {font-size: 15px; }
.designer-list th a{color: var(--text-light);}
body.dark .designer-list th a {color: var(--text-dark);}
.designer-list td a {font-size: 15px;}

.flow-link{display: none;}
.my-tasks { max-width: 600px; }
.task-list {display: flex;
    flex-direction: column;}
.task-row { 
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 0;
}
.task-row a {color: var(--text-light); font-size: 15px;}
body.dark .task-row a {color: var(--text-dark)}
.task-link { flex: 1 1 0; text-decoration: none; color: inherit; font-weight: 500; }

.counter-all, .counter-user {
  background: #e53e3e; color: #fff; min-width: 26px; padding: 0 7px;
  border-radius: 50px; font-size: 13px; font-weight: bold; margin-left: 7px; text-align: center;
  display: inline-block;
  position: relative; right: 0;
}
.counter-user { background: #3182ce; }

/* Drawer overlay and panel */
.drawer-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.3);
  z-index: 9999;
  display: flex;
  justify-content: flex-start; 
}
.calendar-table {
  background: var(--bg-white);
}
body.dark .calendar-table {
  background: var(--bg-dark);
}
.calendar-table td.slot-filled { background: var(--accent-low); }

.calendar-table th.th-today{
  background: var(--accent-low, #eef);
  /* optional polish */
  border-bottom: 2px solid var(--accent, currentColor);
  /* keeps text readable without forcing a color */
}

.drawer-panel {
  background: var(--bg-light);
  width: 360px;
  max-width: 100vw;
  height: 100%;
  box-shadow: 4px 0 24px rgba(0,0,0,0.08);
  padding: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  border-right: solid 1px var(--border-light);
}

body.dark .drawer-panel { background: var(--bg-dark); border-right: solid 1px var(--border-dark);}
.drawer-close {
  position: absolute;
  top: 12px;
  right: 18px;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
}

.drawer-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 2rem;
}

.form-group {
  margin-bottom: 1.3rem;
}
@keyframes slideInLeft {
  from { transform: translateX(-100%); opacity: 0.2; }
  to   { transform: translateX(0); opacity: 1; }
}




.timeline-status {
  font-size: 15px;
  display: flex; align-items: flex-start; gap: 8px; margin-bottom: 8px;
}
.timeline-dot {
  margin-top: 4px;
  width: 12px; height: 12px; border-radius: 50%;
  background: #d2d6dc; /* Gray for never */
  flex-shrink: 0;
  transition: background 0.2s;
}
.timeline-dot.ongoing {
  background: #1b72e8; /* Blue */
  animation: pulse 1s infinite;
}
.timeline-dot.done {
  background: #34c759; /* Green */
}
.timeline-dot.never {
  background: #d2d6dc;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 #1b72e833; }
  70% { box-shadow: 0 0 0 7px #1b72e800; }
  100% { box-shadow: 0 0 0 0 #1b72e800; }
}
.timeline-label {
  font-weight: 500; letter-spacing: 0.2px;
}
.timeline-sub {
  color: #888; margin-top: 2px;
  font-size: 13px;
}

.calendar-widget {
  padding: 0;
  overflow: hidden;
  font-size: 15px;
}
.calendar-header {
  display: flex;
  align-items: center;
  gap: 0.7em;
  margin-bottom: 20px;
}
.calendar-header .emoji { font-size: 1.6em; }
.calendar-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
}
.calendar-row {
  display: flex;
  border-bottom: 1px solid var(--border-light);
  align-items: flex-start;
  padding: 8px 0;
}
body.dark .calendar-row {

  border-bottom: 1px solid var(--border-dark);

}
.calendar-row:last-child { border-bottom: none; }
.calendar-time {
  width: 60px;
  flex-shrink: 0;
  padding-right: 1em;
  text-align: right;
  letter-spacing: 0.02em;
}
.calendar-event {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.event-title {
  font-weight: 500;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.event-todo {
  color: #889;
  margin-left: 1px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.calendar-row.now {
  background: #f4fafd;
}
.calendar-row .empty { color: #ddd; font-style: italic; }
.calendar-cta {
  padding: 0.7em 1.3em 1em 1.3em;
  text-align: right;
}
.calendar-cta a {
  display: inline-flex;
  align-items: center;
  color: #3376c8;
  font-weight: 500;
  text-decoration: none;
  padding: 0.23em 0.9em;
  transition: background .17s;
}

#avatarMenu a {display: block; color: var(--text-light); font-size: 16px; padding: 4px 0}
body.dark #avatarMenu a  {color: var(--text-dark)}
#avatarMenu a:hover {color: var(--accent); }

.task_table {font-size: 15px}
.task_table a {color: var(--text-light);}
body.dark .task_table a {color: var(--text-dark)}
body.dark .chip-status {color: var(--text-light) !important;}

.modal-bg { display:none; position:fixed; top:0; left:0; width:100vw; height:100vh; background:rgba(0,0,0,.3); z-index:9999; align-items:center; justify-content:center; }

.circle-follow-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px !important; 
  height: 24px !important; 
  border-radius: 50% !important; ;
  background: var(--accent-low, #e9eefb) !important;
  border: none;
  color: #1976d2;
  font-size: 18px;
  cursor: pointer;
  box-shadow: none;
  margin-left: 4px;
  transition: background 0.18s, color 0.18s;
  padding: 0 !important;
}
.circle-follow-btn:hover, .circle-follow-btn:focus {
  background: var(--accent-hover, #d6e4ff);
  color: #004aad;
  outline: none;
}

.modal-bg[style*="display:flex"] { display:flex !important; }

.calendar-table td.today { position: relative; }
.calendar-table td.today::before{
  content:""; position:absolute; left:-1px; top:0; bottom:0; width:2px; background:#c9a7ff;
}

  .topbar { display:flex; gap:12px; align-items:center; justify-content:space-between; margin-bottom:12px; }
  .header { display:flex; align-items:center; justify-content:space-between; margin:8px 0 16px 0; }
  .center { display:flex; align-items:center; gap:8px; }
  .btn { display:inline-flex; align-items:center; justify-content:center; padding:6px 10px; border:1px solid #ccc; background:#fafafa; cursor:pointer; border-radius:6px; text-decoration:none; color:#111; }
  .btn:hover { background:#f0f0f0; }
  select { padding:6px 8px; border:1px solid #ccc; border-radius:6px; background:#fff; }
  table { width:100%; border-collapse:collapse; }
  th, td { border-bottom:1px solid #eee; padding:8px 10px; text-align:left; vertical-align:top; }
  th { background:#fafafa; position:sticky; top:0; }
  .muted { color:#666; }
  .day-holiday { background:#fffef3; }
  .day-weekend { background:#fafcff; }
  .day-today { background:#e8f5ff !important; } /* highlight today */
  .date-cell { white-space:nowrap; }
  .wrap { white-space:normal; }
  .summary-table td, .summary-table th { font-size:14px; }
  .filters { display:flex; gap:12px; }
  .filters select { flex:1; width:100%; }
/* Date badge (1 line) */
.date-chip{display:flex;align-items:center;gap:8px}
.date-chip .num{
  width:26px;height:26px;border-radius:6px;
  display:flex;align-items:center;justify-content:center;
  font-weight:700;background:var(--accent-low);
  color: var(--text-on-accent);
}
.date-chip .dow{}

/* variants */
.date-chip.is-today .num{background:var(--accent);}
.date-chip.is-weekend .num{background:var(--accent-gray);}
.date-chip.is-holiday .num{background:var(--accent-gray);}


 .section-head{
  display:flex; align-items:center; justify-content:space-between;
  gap:12px; margin-bottom:12px;
}

.h-title{
  display:flex; align-items:center;
  font-size:18px;
  margin:0;              /* kill default h3 margins */
  line-height:1;         /* tighter line box */
  margin-bottom: 12px;
}
.section-head .h-title{margin-bottom: 0;}
.h-title span{
  display:inline-flex;   /* emoji sits centered */
  align-items:center; justify-content:center;
  margin-right:8px;
  line-height:1;
}

.icon-btn{
  display:inline-flex; align-items:center; justify-content:center;
  width:24px; height:24px; border-radius:999px;
  box-sizing:border-box;  /* so size includes padding if any */
  padding:0;              /* avoid extra height */
  font-weight:700; line-height:1;
  background:var(--accent); color:var(--text-on-accent);
  cursor:pointer; transition:.15s ease;
  font-size:18px;         /* keep the + crisp */
}
.icon-btn:hover{ background:var(--accent-low,#eef); border-color:var(--accent,#6c6); }
.icon-btn:active{ transform:translateY(1px); }


.emoji-avatars {
  display: flex;
  gap: 12px;
}

.avatar {
  width: 40px;          /* same width */
  height: 40px;         /* same height */
  border-radius: 50%;   /* circle */
  background: #f5f5f5;  /* or your theme color */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;      /* adjust emoji size */
  line-height: 1;       /* prevents vertical skew */
  overflow: hidden;     /* avoids stretching */
}
