.ct {
    --ct-bg: #fff;
    --ct-bg-panel: #f8fafc;
    --ct-bg-item: #fff;
    --ct-bg-icon: #f1f5f9;
    --ct-border: #e2e8f0;
    --ct-text: #0f172a;
    --ct-text-sub: #475569;
    --ct-text-muted: #94a3b8;
    --ct-primary: #f59e0b;
    --ct-secondary: #6366f1;

    max-width: 72rem;
    margin: 0 auto;
    padding: 2rem 1rem;
  }

  .theme-dark .ct {
    --ct-bg: #09090b;
    --ct-bg-panel: rgba(24, 24, 27, 0.5);
    --ct-bg-item: #18181b;
    --ct-bg-icon: #27272a;
    --ct-border: #27272a;
    --ct-text: #fafafa;
    --ct-text-sub: #a1a1aa;
    --ct-text-muted: #71717a;
  }

  .ct__card {
    width: 100%;
    background-color: var(--ct-bg);
    border: 1px solid var(--ct-border);
    border-radius: 3rem;
    box-shadow:
      0 25px 50px -12px rgba(0, 0, 0, 0.25),
      0 0 0 1px rgba(99, 102, 241, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.5s;
  }

  .ct__grid {
    display: grid;
  }

  .ct__panel {
    background-color: var(--ct-bg-panel);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .ct__main {
    display: flex;
    flex-direction: column;
    background-color: var(--ct-bg);
  }

  
  @media (min-width: 1024px) {
    .ct__card {
      max-height: 85vh;
      overflow: hidden;
    }

    .ct__grid {
      grid-template-columns: 33.333% 66.667%;
      overflow: hidden;
      height: 100%;
      min-height: 0;
    }

    .ct__panel {
      border-right: 1px solid var(--ct-border);
      overflow-y: auto;
    }

    .ct__main {
      height: 100%;
      overflow: hidden;
    }
  }

  .ct__scrollable::-webkit-scrollbar {
    width: 3px;
  }

  .ct__scrollable::-webkit-scrollbar-track {
    background: transparent;
  }

  .ct__scrollable::-webkit-scrollbar-thumb {
    background: rgba(155, 155, 155, 0.1);
    border-radius: 10px;
  }

  .ct__scrollable::-webkit-scrollbar-thumb:hover {
    background: rgba(155, 155, 155, 0.3);
  }

  
  .ct__section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .ct__section--bordered {
    padding-top: 1.5rem;
    border-top: 1px solid var(--ct-border);
  }

  .ct__section-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--ct-text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
  }

  .ct__section-icon {
    color: #92400e;
    width: 1.25rem;
    height: 1.25rem;
  }

  .theme-dark .ct__section-icon {
    color: #f59e0b;
  }

  
  .ct__drink-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .ct__drink-btn {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 0.75rem;
    background-color: var(--ct-bg-item);
    border: 1px solid var(--ct-border);
    cursor: pointer;
    text-align: left;
    overflow: hidden;
    transition:
      border-color 0.2s,
      box-shadow 0.2s;
  }

  .ct__drink-btn:hover {
    border-color: rgba(245, 158, 11, 0.5);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  }

  .ct__drink-btn-icon {
    padding: 0.5rem;
    border-radius: 0.5rem;
    background-color: var(--ct-bg-icon);
    color: var(--ct-text-muted);
    transition:
      background-color 0.2s,
      color 0.2s;
    pointer-events: none;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .ct__drink-btn:hover .ct__drink-btn-icon {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--ct-primary);
  }

  .ct__icon-to-fly {
    display: contents;
  }

  .ct__icon-5 {
    width: 1.25rem;
    height: 1.25rem;
  }

  .ct__drink-info {
    flex: 1;
    min-width: 0;
  }

  .ct__drink-name {
    font-weight: 700;
    color: var(--ct-text);
    font-size: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
  }

  .ct__drink-desc {
    font-size: 0.5625rem;
    color: var(--ct-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
  }

  .ct__drink-add {
    width: 1rem;
    height: 1rem;
    color: var(--ct-border);
    transition: color 0.2s;
    flex-shrink: 0;
  }

  .ct__drink-btn:hover .ct__drink-add {
    color: var(--ct-primary);
  }

  
  .ct__meta-title {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--ct-text-muted);
    margin: 0;
  }

  .ct__meta-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.375rem;
  }

  .ct__meta-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem;
    border-radius: 0.75rem;
    cursor: pointer;
    transition:
      background-color 0.2s,
      border-color 0.2s;
    border: 1px solid transparent;
  }

  .ct__meta-option:hover {
    background-color: var(--ct-bg-item);
    border-color: var(--ct-border);
  }

  .ct__meta-radio {
    accent-color: #d97706;
    width: 0.875rem;
    height: 0.875rem;
    flex-shrink: 0;
  }

  .ct__meta-text {
    flex: 1;
    min-width: 0;
  }

  .ct__meta-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--ct-text);
    transition: color 0.2s;
  }

  .ct__meta-option:hover .ct__meta-label {
    color: var(--ct-primary);
  }

  .ct__meta-desc {
    font-size: 0.5625rem;
    color: var(--ct-text-muted);
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
  }

  
  .ct__journal-header {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--ct-text-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
  }

  .ct__journal-count {
    font-size: 0.5625rem;
    background-color: var(--ct-bg-icon);
    padding: 0.125rem 0.375rem;
    border-radius: 9999px;
    font-weight: 700;
    transition: all 0.3s;
  }

  .ct__journal-count--bump {
    transform: scale(1.25);
    background-color: var(--ct-primary);
    color: #fff;
  }

  .ct__journal {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
  }

  
  .ct__journal-empty {
    text-align: center;
    padding: 1.5rem;
    opacity: 0.3;
    border: 2px dashed var(--ct-border);
    border-radius: 0.75rem;
  }

  .ct__journal-empty p {
    font-size: 0.5625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0;
  }

  
  .ct__item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem;
    background-color: var(--ct-bg-item);
    border-radius: 0.5rem;
    border: 1px solid var(--ct-border);
    transition:
      opacity 0.3s,
      transform 0.3s;
  }

  .ct__item--removing {
    opacity: 0;
    transform: translateX(-1rem);
  }

  .ct__item-icon {
    padding: 0.375rem;
    background-color: var(--ct-bg-icon);
    border-radius: 0.25rem;
    color: var(--ct-text-muted);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
  }

  .ct__item-icon svg {
    width: 0.75rem;
    height: 0.75rem;
  }

  .ct__item:hover .ct__item-icon {
    color: var(--ct-primary);
  }

  .ct__item-info {
    flex: 1;
    min-width: 0;
    text-align: left;
  }

  .ct__item-name {
    font-size: 0.625rem;
    font-weight: 700;
    color: var(--ct-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1;
    margin-bottom: 0.125rem;
  }

  .ct__item-mg {
    font-size: 0.5rem;
    color: var(--ct-primary);
    font-weight: 700;
    line-height: 1;
  }

  .ct__remove-btn {
    padding: 0.375rem;
    color: var(--ct-border);
    border: none;
    background: none;
    cursor: pointer;
    border-radius: 0.25rem;
    transition:
      color 0.2s,
      background-color 0.2s;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .ct__remove-btn:hover {
    color: #f43f5e;
    background-color: rgba(244, 63, 94, 0.1);
  }

  .ct__remove-icon svg {
    width: 0.75rem;
    height: 0.75rem;
  }

  
  .ct__stats {
    padding: 2rem;
    border-bottom: 1px solid var(--ct-border);
    background-color: rgba(248, 250, 252, 0.3);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-shrink: 0;
  }

  .theme-dark .ct__stats {
    background-color: rgba(24, 24, 27, 0.1);
    border-bottom-color: #18181b;
  }

  .ct__stats-left {
    display: flex;
    gap: 3rem;
    text-align: left;
  }

  .ct__stat {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
  }

  .ct__stat-label {
    font-size: 0.5625rem;
    font-weight: 700;
    color: var(--ct-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
  }

  .ct__stat-value {
    font-size: 2.25rem;
    font-weight: 900;
    color: var(--ct-text);
    font-variant-numeric: tabular-nums;
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    transition: all 0.3s;
    transform-origin: left;
  }

  .ct__current-container--bump {
    transform: scale(1.1);
    color: var(--ct-primary);
    transition:
      transform 0.1s ease-out,
      color 0.1s ease-out;
  }

  .ct__stat-unit {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--ct-text-muted);
  }

  .ct__reset-btn {
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    background-color: var(--ct-bg-icon);
    color: var(--ct-text-muted);
    border: none;
    cursor: pointer;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s;
  }

  .ct__reset-btn:hover {
    color: #f43f5e;
  }

  .ct__icon-4 {
    width: 1rem;
    height: 1rem;
  }

  
  .ct__main-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }

  @media (min-width: 1024px) {
    .ct__main-body {
      flex: 1;
      overflow-y: auto;
    }
  }

  
  .ct__chart-wrap {
    min-height: 250px;
    position: relative;
    width: 100%;
  }

  .ct__chart-grid {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    pointer-events: none;
    opacity: 0.3;
  }

  .ct__chart-gridline {
    width: 100%;
    border-top: 1px solid var(--ct-border);
    display: flex;
    justify-content: flex-end;
  }

  .ct__chart-gridlabel {
    font-size: 0.5rem;
    margin-top: -0.5rem;
    padding-right: 0.5rem;
    color: var(--ct-text-muted);
  }

  .ct__chart-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
  }

  .ct__chart-line {
    stroke: #f59e0b;
  }

  .theme-dark .ct__chart-line {
    stroke: #fbbf24;
  }

  
  .ct__sleep {
    background-color: #0f172a;
    border-radius: 2.5rem;
    padding: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    background-image: linear-gradient(
      to bottom right,
      rgba(245, 158, 11, 0.1),
      transparent,
      rgba(99, 102, 241, 0.1)
    );
  }

  .theme-dark .ct__sleep {
    background-color: #18181b;
  }

  .ct__sleep-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
    position: relative;
    z-index: 1;
  }

  @media (min-width: 768px) {
    .ct__sleep-inner {
      flex-direction: row;
    }
  }

  .ct__sleep-controls {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    width: 100%;
  }

  @media (min-width: 768px) {
    .ct__sleep-controls {
      width: 60%;
    }
  }

  .ct__sleep-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }

  .ct__sleep-question {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #94a3b8;
  }

  .ct__sleep-time {
    font-size: 0.75rem;
    color: var(--ct-primary);
    font-weight: 700;
  }

  .ct__sleep-input {
    width: 100%;
    height: 0.375rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    appearance: none;
    cursor: pointer;
    accent-color: var(--ct-primary);
  }

  .ct__sleep-input::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    background: var(--ct-primary);
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid #0f172a;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.5);
  }

  .ct__sleep-result {
    text-align: center;
    flex-shrink: 0;
  }

  @media (min-width: 768px) {
    .ct__sleep-result {
      text-align: right;
    }
  }

  .ct__sleep-status {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.5625rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
    display: inline-block;
    border: 1px solid transparent;
  }

  .ct__sleep-status--optimal {
    background-color: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.1);
  }

  .ct__sleep-status--moderate {
    background-color: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    border-color: rgba(245, 158, 11, 0.3);
    box-shadow: 0 10px 15px -3px rgba(245, 158, 11, 0.1);
  }

  .ct__sleep-status--critical {
    background-color: rgba(244, 63, 94, 0.2);
    color: #f43f5e;
    border-color: rgba(244, 63, 94, 0.3);
    box-shadow: 0 10px 15px -3px rgba(244, 63, 94, 0.2);
    transform: scale(1.05);
  }

  .ct__sleep-mg {
    font-size: 3rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
    letter-spacing: -0.05em;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
  }

  @media (min-width: 768px) {
    .ct__sleep-mg {
      justify-content: flex-end;
    }
  }

  .ct__sleep-mg-unit {
    font-size: 0.875rem;
    font-weight: 400;
    opacity: 0.4;
    margin-left: 0.5rem;
  }

  
  .ct__flyer {
    position: fixed;
    z-index: 100;
    pointer-events: none;
    color: var(--ct-primary);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  
  .ct__icon-cache {
    display: none;
  }