.gt-root {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    padding: 0.5rem;
    box-sizing: border-box;
  }

  .gt-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-base);
    border-radius: 20px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    box-shadow: 0 4px 6px -1px var(--shadow-base);
    width: 100%;
    box-sizing: border-box;
  }

  .gt-header-row {
    display: flex;
    gap: 0.75rem;
    align-items: flex-end;
  }

  .gt-field {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
  }

  .gt-field label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  .gt-icon-label {
    width: 16px;
    height: 16px;
    color: var(--primary);
  }

  .gt-select {
    width: 100%;
    padding: 0.6rem 2rem 0.6rem 0.75rem;
    background: var(--bg-page);
    border: 1px solid var(--border-base);
    border-radius: 10px;
    color: var(--text-base);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    appearance: none;
    outline: none;
    text-overflow: ellipsis;
  }

  .gt-select-box {
    position: relative;
    width: 100%;
  }

  .gt-select-box::after {
    content: "\25BC";
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.6rem;
    color: var(--text-muted);
    pointer-events: none;
  }

  .gt-btn-toggle {
    background: var(--bg-page);
    border: 1px solid var(--border-base);
    border-radius: 10px;
    width: 2.75rem;
    height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
  }

  .gt-btn-toggle:hover {
    background: var(--primary-bg);
    transform: scale(1.05);
  }

  .gt-custom-form {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--bg-page);
    border-radius: 12px;
    border: 1px dashed var(--border-base);
  }

  .gt-label-small {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
  }

  .gt-custom-row {
    display: flex;
    gap: 0.5rem;
  }

  .gt-input-text {
    flex: 1;
    min-width: 0;
    padding: 0.5rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-base);
    border-radius: 8px;
    color: var(--text-base);
    font-size: 0.9rem;
  }

  .gt-btn-secondary {
    background: var(--bg-surface);
    border: 1px solid var(--border-base);
    color: var(--text-base);
    padding: 0 0.75rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.75rem;
    cursor: pointer;
  }

  .gt-btn-icon {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1rem;
    cursor: pointer;
    padding: 0 0.5rem;
  }

  .gt-log-section {
    background: var(--primary-bg);
    padding: 1rem;
    border-radius: 14px;
    border: 1px solid var(--primary-soft);
  }

  .gt-label-main {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    font-size: 0.8rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
  }

  .gt-log-row {
    display: flex;
    gap: 0.75rem;
  }

  .gt-input-number {
    flex: 1;
    min-width: 0;
    padding: 0.75rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-base);
    border-radius: 10px;
    color: var(--primary);
    font-size: 1.25rem;
    font-weight: 900;
    text-align: center;
    outline: none;
  }

  .gt-btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 0 1.5rem;
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 4px 12px var(--primary-soft);
  }

  .gt-timer-section {
    background: var(--bg-page);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-base);
  }

  .gt-timer-container {
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
  }

  .gt-timer-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 100px;
  }

  .gt-timer-text {
    font-size: 2rem;
    font-weight: 900;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
  }

  .gt-timer-text.gt-timer-active {
    color: var(--primary);
    text-shadow: 0 0 15px var(--primary-soft);
  }

  .gt-timer-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
  }

  .gt-btn-round {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-surface);
    border: 1px solid var(--border-base);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-base);
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .gt-btn-round:hover {
    background: var(--bg-page);
    transform: scale(1.1);
  }

  .gt-timer-presets {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .gt-presets-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
  }

  .gt-preset-btn {
    background: var(--bg-surface);
    border: 1px solid var(--border-base);
    color: var(--text-base);
    border-radius: 6px;
    padding: 0.4rem;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
  }

  .gt-custom-timer {
    display: flex;
    gap: 0.4rem;
  }

  .gt-input-timer {
    flex: 1;
    padding: 0.3rem;
    border-radius: 6px;
    border: 1px solid var(--border-base);
    background: var(--bg-surface);
    color: var(--text-base);
    font-size: 0.8rem;
    text-align: center;
    min-width: 0;
  }

  .gt-btn-ok {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0 0.75rem;
    font-size: 0.7rem;
    font-weight: 800;
    cursor: pointer;
  }

  .gt-progress-bg {
    height: 4px;
    background: var(--border-base);
    width: 100%;
  }

  .gt-progress-bar {
    height: 100%;
    background: var(--primary);
    width: 0%;
    transition: width 1s linear;
  }

  .gt-dashboard {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }

  .gt-chart-wrapper {
    background: var(--bg-page);
    border-radius: 12px;
    padding: 0.75rem;
    height: 120px;
    position: relative;
    border: 1px solid var(--border-base);
    min-width: 0;
  }

  .gt-chart-box {
    width: 100%;
    height: 100%;
  }

  .gt-svg-chart {
    width: 100%;
    height: 100%;
    color: var(--primary);
    overflow: visible;
  }

  .gt-path {
    filter: drop-shadow(0 0 4px var(--primary-soft));
  }

  .gt-chart-dot {
    fill: var(--primary);
    stroke: var(--bg-page);
    stroke-width: 2;
  }

  .gt-empty-state {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
  }

  .gt-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    width: 100%;
  }

  .gt-stat-item {
    background: var(--bg-page);
    border: 1px solid var(--border-base);
    padding: 0.75rem;
    border-radius: 12px;
    text-align: center;
    min-width: 0;
  }

  .gt-stat-label {
    display: block;
    font-size: 0.6rem;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 0.25rem;
  }

  .gt-stat-val {
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--text-base);
  }

  .gt-history {
    border-top: 1px solid var(--border-base);
    padding-top: 1rem;
    min-width: 0;
  }

  .gt-history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
  }

  .gt-history-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--text-base);
    text-transform: uppercase;
    white-space: nowrap;
  }

  .gt-history-actions {
    display: flex;
    gap: 0.75rem;
  }

  .gt-btn-text {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.25rem;
  }

  .gt-btn-text:hover {
    color: var(--primary);
  }

  .gt-export-menu {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
  }

  .gt-export-item {
    background: var(--bg-page);
    border: 1px solid var(--border-base);
    color: var(--text-base);
    border-radius: 6px;
    padding: 0.4rem 0.75rem;
    font-size: 0.65rem;
    font-weight: 800;
    cursor: pointer;
  }

  .gt-history-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .gt-history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0.75rem;
    background: var(--bg-page);
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    animation: gt-slide-in 0.3s ease-out;
  }

  @keyframes gt-slide-in {
    from {
      opacity: 0;
      transform: translateY(4px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .gt-history-row {
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  .gt-history-weight {
    color: var(--primary);
    font-weight: 800;
  }

  .gt-btn-delete-log {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.8rem;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .gt-btn-delete-log:hover {
    color: #ef4444;
  }

  .gt-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
  }

  .gt-modal-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-base);
    border-radius: 20px;
    padding: 1.5rem;
    max-width: 320px;
    width: 100%;
    text-align: center;
  }

  .gt-modal-box h4 {
    margin: 0 0 0.75rem;
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--text-base);
  }

  .gt-modal-box p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0 0 1.5rem;
    line-height: 1.5;
  }

  .gt-modal-btns {
    display: flex;
    gap: 0.75rem;
  }

  .gt-btn-danger {
    flex: 1;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 0.75rem;
    font-weight: 800;
    font-size: 0.8rem;
    cursor: pointer;
  }

  .gt-btn-cancel {
    flex: 1;
    background: var(--bg-page);
    border: 1px solid var(--border-base);
    color: var(--text-base);
    border-radius: 10px;
    font-weight: 800;
    font-size: 0.8rem;
    cursor: pointer;
  }

  .gt-icon-xs {
    width: 14px;
    height: 14px;
  }

  .gt-icon-sm {
    width: 18px;
    height: 18px;
  }

  .gt-icon-md {
    width: 22px;
    height: 22px;
  }

  .gt-hidden {
    display: none;
  }
  .gt-option-highlight {
    color: var(--primary);
    font-weight: 800;
  }

  @media (min-width: 400px) {
    .gt-dashboard {
      flex-direction: column;
    }
    .gt-chart-wrapper {
      height: 160px;
    }
    .gt-stats {
      display: grid;
      grid-template-columns: 1fr 1fr;
      width: 100%;
      gap: 0.75rem;
    }
  }

  .gt-animate-in {
    animation: gt-fade-up 0.5s ease-out;
  }

  @keyframes gt-fade-up {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .theme-dark .gt-card {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
  }

  .theme-dark .gt-select,
  .theme-dark .gt-input-text,
  .theme-dark .gt-input-number,
  .theme-dark .gt-input-timer,
  .theme-dark .gt-btn-toggle,
  .theme-dark .gt-btn-round,
  .theme-dark .gt-preset-btn,
  .theme-dark .gt-export-item,
  .theme-dark .gt-stat-item,
  .theme-dark .gt-history-item {
    background-color: var(--bg-page);
    border-color: rgba(255, 255, 255, 0.1);
  }