[data-tool-root="goal-weight-time-calculator"],
[data-tool-root="goal-weight-time-calculator"] *,
[data-tool-root="goal-weight-time-calculator"] *::before,
[data-tool-root="goal-weight-time-calculator"] *::after {
  box-sizing: border-box;
}

[data-tool-root="goal-weight-time-calculator"] {
  --gwt-gray-50: #fbfbfb;
  --gwt-gray-100: #f7f7f7;
  --gwt-gray-150: #f2f2f2;
  --gwt-gray-300: #dddddd;
  --gwt-gray-400: #bbbbbb;
  --gwt-gray-600: #666666;
  --gwt-gray-700: #444444;
  --gwt-gray-800: #222222;
  --gwt-gray-900: #111111;
  --gwt-success: #276749;
  --gwt-danger: #a12424;
  --gwt-warning: #7a4d00;
  --gwt-warning-bg: #fff8e8;
  --gwt-radius-sm: 4px;
  --gwt-radius: 6px;
  --gwt-radius-round: 999px;
  --gwt-font: "Noto Sans SC", system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  width: 100%;
  margin: 0;
  padding: 0 360px 48px 30px;
  color: var(--gwt-gray-900);
  font: 15px/1.7 var(--gwt-font);
}

[data-tool-root="goal-weight-time-calculator"] .gwt-section + .gwt-section {
  margin-top: 32px;
}

[data-tool-root="goal-weight-time-calculator"] h2 {
  margin: 0 0 16px;
  padding-left: 12px;
  border-left: 3px solid var(--gwt-gray-900);
  font-size: 24px;
  line-height: 1.3;
}

[data-tool-root="goal-weight-time-calculator"] h3 {
  margin: 0 0 12px;
  font-size: 18px;
  line-height: 1.4;
}

[data-tool-root="goal-weight-time-calculator"] p,
[data-tool-root="goal-weight-time-calculator"] li,
[data-tool-root="goal-weight-time-calculator"] summary,
[data-tool-root="goal-weight-time-calculator"] td,
[data-tool-root="goal-weight-time-calculator"] th {
  overflow-wrap: anywhere;
}

[data-tool-root="goal-weight-time-calculator"] a {
  color: var(--gwt-gray-900);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

[data-tool-root="goal-weight-time-calculator"] :focus-visible {
  outline: 2px solid var(--gwt-gray-900);
  outline-offset: 2px;
}

[data-tool-root="goal-weight-time-calculator"] .gwt-workspace {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

[data-tool-root="goal-weight-time-calculator"] .gwt-card {
  padding: 16px 24px;
  border: 1px solid var(--gwt-gray-300);
  border-radius: var(--gwt-radius);
  background: var(--gwt-gray-100);
}

[data-tool-root="goal-weight-time-calculator"] .gwt-input-card,
[data-tool-root="goal-weight-time-calculator"] .gwt-result-shell {
  min-width: 0;
}

[data-tool-root="goal-weight-time-calculator"] .gwt-unit-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

[data-tool-root="goal-weight-time-calculator"] .gwt-unit-title,
[data-tool-root="goal-weight-time-calculator"] label {
  color: var(--gwt-gray-700);
  font-size: 13px;
  font-weight: 700;
}

[data-tool-root="goal-weight-time-calculator"] label {
  display: block;
  margin-bottom: 4px;
}

[data-tool-root="goal-weight-time-calculator"] .gwt-segmented {
  display: grid;
  grid-template-columns: repeat(2, minmax(64px, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--gwt-gray-300);
  border-radius: var(--gwt-radius);
  background: #fff;
}

[data-tool-root="goal-weight-time-calculator"] .gwt-segmented button {
  min-width: 64px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: var(--gwt-radius-sm);
  background: transparent;
  color: var(--gwt-gray-900);
  font: 700 13px/1 var(--gwt-font);
  cursor: pointer;
}

[data-tool-root="goal-weight-time-calculator"] .gwt-segmented button:hover {
  background: var(--gwt-gray-150);
}

[data-tool-root="goal-weight-time-calculator"] .gwt-segmented button[aria-pressed="true"] {
  background: var(--gwt-gray-900);
  color: #fff;
}

[data-tool-root="goal-weight-time-calculator"] .gwt-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

[data-tool-root="goal-weight-time-calculator"] .gwt-field,
[data-tool-root="goal-weight-time-calculator"] .gwt-input-wrap {
  min-width: 0;
}

[data-tool-root="goal-weight-time-calculator"] .gwt-input-wrap {
  position: relative;
}

[data-tool-root="goal-weight-time-calculator"] .gwt-input {
  width: 100%;
  height: 44px;
  padding: 0 48px 0 12px;
  border: 1px solid var(--gwt-gray-300);
  border-radius: var(--gwt-radius);
  background: #fff;
  color: var(--gwt-gray-900);
  font: 400 15px/1 var(--gwt-font);
  font-variant-numeric: tabular-nums;
}

[data-tool-root="goal-weight-time-calculator"] .gwt-date-input {
  padding-right: 12px;
}

[data-tool-root="goal-weight-time-calculator"] .gwt-input:hover {
  border-color: var(--gwt-gray-400);
}

[data-tool-root="goal-weight-time-calculator"] .gwt-input:focus {
  border-color: var(--gwt-gray-900);
}

[data-tool-root="goal-weight-time-calculator"] .gwt-input[aria-invalid="true"] {
  border-color: var(--gwt-danger);
}

[data-tool-root="goal-weight-time-calculator"] .gwt-unit-suffix {
  position: absolute;
  top: 50%;
  right: 12px;
  color: var(--gwt-gray-600);
  font-size: 13px;
  transform: translateY(-50%);
  pointer-events: none;
}

[data-tool-root="goal-weight-time-calculator"] .gwt-field-help,
[data-tool-root="goal-weight-time-calculator"] .gwt-error {
  min-height: 19px;
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.55;
}

[data-tool-root="goal-weight-time-calculator"] .gwt-field-help {
  color: var(--gwt-gray-600);
}

[data-tool-root="goal-weight-time-calculator"] .gwt-error {
  color: var(--gwt-danger);
}

[data-tool-root="goal-weight-time-calculator"] .gwt-preset-row,
[data-tool-root="goal-weight-time-calculator"] .gwt-action-row,
[data-tool-root="goal-weight-time-calculator"] .gwt-result-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

[data-tool-root="goal-weight-time-calculator"] .gwt-btn,
[data-tool-root="goal-weight-time-calculator"] .gwt-chip {
  min-width: 0;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--gwt-gray-300);
  border-radius: var(--gwt-radius);
  background: #fff;
  color: var(--gwt-gray-900);
  font: 600 14px/1.2 var(--gwt-font);
  cursor: pointer;
}

[data-tool-root="goal-weight-time-calculator"] .gwt-chip {
  min-height: 36px;
  border-radius: var(--gwt-radius-round);
  font-size: 13px;
}

[data-tool-root="goal-weight-time-calculator"] .gwt-btn:hover,
[data-tool-root="goal-weight-time-calculator"] .gwt-chip:hover {
  background: var(--gwt-gray-150);
  border-color: var(--gwt-gray-400);
}

[data-tool-root="goal-weight-time-calculator"] .gwt-btn-primary {
  border-color: var(--gwt-gray-900);
  background: var(--gwt-gray-900);
  color: #fff;
}

[data-tool-root="goal-weight-time-calculator"] .gwt-btn-primary:hover {
  background: var(--gwt-gray-800);
}

[data-tool-root="goal-weight-time-calculator"] .gwt-btn:disabled {
  border-color: var(--gwt-gray-300);
  background: var(--gwt-gray-150);
  color: var(--gwt-gray-600);
  cursor: not-allowed;
}

[data-tool-root="goal-weight-time-calculator"] .gwt-status {
  min-height: 22px;
  margin: 8px 0 0;
  color: var(--gwt-gray-600);
  font-size: 13px;
}

[data-tool-root="goal-weight-time-calculator"] .gwt-status.is-error { color: var(--gwt-danger); }
[data-tool-root="goal-weight-time-calculator"] .gwt-status.is-success { color: var(--gwt-success); }

[data-tool-root="goal-weight-time-calculator"] .gwt-result-strong {
  height: 100%;
  padding: 24px;
  border-radius: var(--gwt-radius);
  background: var(--gwt-gray-900);
  color: #fff;
}

[data-tool-root="goal-weight-time-calculator"] .gwt-result-kicker {
  margin: 0 0 4px;
  color: rgba(255,255,255,.72);
  font-size: 13px;
  font-weight: 700;
}

[data-tool-root="goal-weight-time-calculator"] .gwt-result-value {
  min-height: 52px;
  margin: 0;
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

[data-tool-root="goal-weight-time-calculator"] .gwt-result-summary,
[data-tool-root="goal-weight-time-calculator"] .gwt-speed-panel p {
  color: rgba(255,255,255,.72);
}

[data-tool-root="goal-weight-time-calculator"] .gwt-result-summary { margin: 8px 0 0; }
[data-tool-root="goal-weight-time-calculator"] .gwt-result-divider { height: 1px; margin: 16px 0; background: rgba(255,255,255,.18); }

[data-tool-root="goal-weight-time-calculator"] .gwt-result-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

[data-tool-root="goal-weight-time-calculator"] .gwt-stat,
[data-tool-root="goal-weight-time-calculator"] .gwt-speed-panel {
  padding: 12px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--gwt-radius);
  background: rgba(255,255,255,.05);
}

[data-tool-root="goal-weight-time-calculator"] .gwt-stat dt { color: rgba(255,255,255,.72); font-size: 12px; font-weight: 700; }
[data-tool-root="goal-weight-time-calculator"] .gwt-stat dd { margin: 4px 0 0; font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
[data-tool-root="goal-weight-time-calculator"] .gwt-speed-panel { margin-top: 12px; }
[data-tool-root="goal-weight-time-calculator"] .gwt-speed-heading { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin-bottom: 8px; }
[data-tool-root="goal-weight-time-calculator"] .gwt-speed-heading span { color: rgba(255,255,255,.72); font-size: 12px; }

[data-tool-root="goal-weight-time-calculator"] .gwt-speed-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: 10px;
  border-radius: var(--gwt-radius-round);
  background: rgba(255,255,255,.18);
}
[data-tool-root="goal-weight-time-calculator"] .gwt-speed-track span:nth-child(1) { background: rgba(255,255,255,.24); border-radius: var(--gwt-radius-round) 0 0 var(--gwt-radius-round); }
[data-tool-root="goal-weight-time-calculator"] .gwt-speed-track span:nth-child(2) { background: rgba(255,255,255,.40); }
[data-tool-root="goal-weight-time-calculator"] .gwt-speed-track span:nth-child(3) { background: rgba(255,255,255,.58); border-radius: 0 var(--gwt-radius-round) var(--gwt-radius-round) 0; }
[data-tool-root="goal-weight-time-calculator"] .gwt-speed-track i { position: absolute; top: 50%; left: 0; width: 16px; height: 16px; border: 2px solid var(--gwt-gray-900); border-radius: 50%; background: #fff; transform: translate(-50%,-50%); }
[data-tool-root="goal-weight-time-calculator"] .gwt-speed-labels { display: grid; grid-template-columns: repeat(3,1fr); gap: 4px; margin-top: 6px; color: rgba(255,255,255,.72); font-size: 11px; }
[data-tool-root="goal-weight-time-calculator"] .gwt-speed-labels span:nth-child(2) { text-align: center; }
[data-tool-root="goal-weight-time-calculator"] .gwt-speed-labels span:nth-child(3) { text-align: right; }
[data-tool-root="goal-weight-time-calculator"] .gwt-speed-panel p { margin: 10px 0 0; font-size: 13px; }
[data-tool-root="goal-weight-time-calculator"] .gwt-result-actions .gwt-btn { border-color: rgba(255,255,255,.32); background: transparent; color: #fff; }
[data-tool-root="goal-weight-time-calculator"] .gwt-result-actions .gwt-btn:hover { border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.10); }

[data-tool-root="goal-weight-time-calculator"] .gwt-plan-block { margin-top: 24px; }
[data-tool-root="goal-weight-time-calculator"] .gwt-plan-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
[data-tool-root="goal-weight-time-calculator"] .gwt-plan-toolbar p,
[data-tool-root="goal-weight-time-calculator"] .gwt-plan-note { margin: 0; color: var(--gwt-gray-700); }
[data-tool-root="goal-weight-time-calculator"] .gwt-plan-note { margin-top: 12px; }
[data-tool-root="goal-weight-time-calculator"] .gwt-table-wrap { overflow-x: auto; border: 1px solid var(--gwt-gray-300); border-radius: var(--gwt-radius); background: #fff; -webkit-overflow-scrolling: touch; }
[data-tool-root="goal-weight-time-calculator"] .gwt-plan-table { width: 100%; min-width: 760px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
[data-tool-root="goal-weight-time-calculator"] .gwt-plan-table th,
[data-tool-root="goal-weight-time-calculator"] .gwt-plan-table td { padding: 11px 12px; border-bottom: 1px solid var(--gwt-gray-300); text-align: left; vertical-align: middle; white-space: nowrap; }
[data-tool-root="goal-weight-time-calculator"] .gwt-plan-table th { background: var(--gwt-gray-100); color: var(--gwt-gray-700); font-size: 13px; }
[data-tool-root="goal-weight-time-calculator"] .gwt-plan-table tbody tr:nth-child(even) { background: var(--gwt-gray-50); }
[data-tool-root="goal-weight-time-calculator"] .gwt-plan-table tbody tr:last-child td { border-bottom: 0; }
[data-tool-root="goal-weight-time-calculator"] .gwt-plan-empty { padding-block: 24px; color: var(--gwt-gray-600); text-align: center; }
[data-tool-root="goal-weight-time-calculator"] .gwt-plan-record { display: inline-block; min-width: 84px; height: 28px; border-bottom: 1px solid var(--gwt-gray-400); }

[data-tool-root="goal-weight-time-calculator"] .gwt-how-to-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
[data-tool-root="goal-weight-time-calculator"] .gwt-how-to-list li { padding: 12px 14px; border: 1px solid var(--gwt-gray-300); border-radius: var(--gwt-radius); background: #fff; }
[data-tool-root="goal-weight-time-calculator"] .gwt-how-to-list strong,
[data-tool-root="goal-weight-time-calculator"] .gwt-how-to-list span { display: block; }
[data-tool-root="goal-weight-time-calculator"] .gwt-how-to-list span { margin-top: 4px; color: var(--gwt-gray-700); }

[data-tool-root="goal-weight-time-calculator"] .gwt-warning-box { margin-top: 12px; padding: 12px 14px; border: 1px solid #d7b875; border-radius: var(--gwt-radius); background: var(--gwt-warning-bg); color: var(--gwt-warning); }
[data-tool-root="goal-weight-time-calculator"] .gwt-warning-box ul { margin: 0; padding-left: 22px; }

[data-tool-root="goal-weight-time-calculator"] .gwt-acc { border-top: 1px solid var(--gwt-gray-300); }
[data-tool-root="goal-weight-time-calculator"] .gwt-acc:first-child { border-top: 0; }
[data-tool-root="goal-weight-time-calculator"] .gwt-acc summary { min-height: 48px; display: flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 700; cursor: pointer; list-style: none; }
[data-tool-root="goal-weight-time-calculator"] .gwt-acc summary::-webkit-details-marker { display: none; }
[data-tool-root="goal-weight-time-calculator"] .gwt-acc summary::after { content: "+"; margin-left: auto; color: var(--gwt-gray-600); font-size: 20px; font-weight: 400; }
[data-tool-root="goal-weight-time-calculator"] .gwt-acc[open] summary::after { content: "−"; }
[data-tool-root="goal-weight-time-calculator"] .gwt-acc[open] > summary { margin-bottom: 12px; border-bottom: 1px solid var(--gwt-gray-300); }
[data-tool-root="goal-weight-time-calculator"] .gwt-acc-panel { padding: 0 0 16px; color: var(--gwt-gray-700); }
[data-tool-root="goal-weight-time-calculator"] .gwt-acc-panel p { max-width: 72ch; margin: 0 0 10px; }
[data-tool-root="goal-weight-time-calculator"] .gwt-acc-panel p:last-child { margin-bottom: 0; }
[data-tool-root="goal-weight-time-calculator"] .gwt-formula p { display: grid; grid-template-columns: minmax(110px,auto) 1fr; gap: 12px; }
[data-tool-root="goal-weight-time-calculator"] .gwt-example-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
[data-tool-root="goal-weight-time-calculator"] .gwt-example-grid p { padding: 12px; border: 1px solid var(--gwt-gray-300); border-radius: var(--gwt-radius); background: #fff; }
[data-tool-root="goal-weight-time-calculator"] .gwt-example-grid strong,
[data-tool-root="goal-weight-time-calculator"] .gwt-example-grid span { display: block; }
[data-tool-root="goal-weight-time-calculator"] .gwt-example-grid span { margin-top: 4px; color: var(--gwt-gray-600); }
[data-tool-root="goal-weight-time-calculator"] .gwt-source-list { display: grid; gap: 8px; margin: 0 0 10px; padding: 0; list-style: none; }
[data-tool-root="goal-weight-time-calculator"] .gwt-source-list li { display: grid; gap: 4px; padding: 12px; border: 1px solid var(--gwt-gray-300); border-radius: var(--gwt-radius); background: #fff; }
[data-tool-root="goal-weight-time-calculator"] .gwt-source-list a { width: fit-content; }

[data-tool-root="goal-weight-time-calculator"] .gwt-toast {
  position: fixed;
  z-index: 1000;
  left: 50%;
  bottom: max(16px, env(safe-area-inset-bottom));
  max-width: calc(100vw - 24px);
  padding: 10px 14px;
  border: 1px solid var(--gwt-gray-900);
  border-radius: var(--gwt-radius);
  background: var(--gwt-gray-900);
  color: #fff;
  font-size: 14px;
  transform: translateX(-50%);
}
[data-tool-root="goal-weight-time-calculator"] .gwt-toast[hidden] { display: none; }

@media (max-width: 900px) {
  [data-tool-root="goal-weight-time-calculator"] {
    padding-right: 8px;
    padding-left: 8px;
  }
}

@media (max-width: 720px) {
  [data-tool-root="goal-weight-time-calculator"] .gwt-workspace,
  [data-tool-root="goal-weight-time-calculator"] .gwt-form-grid,
  [data-tool-root="goal-weight-time-calculator"] .gwt-how-to-list,
  [data-tool-root="goal-weight-time-calculator"] .gwt-example-grid { grid-template-columns: 1fr; gap: 8px; }
  [data-tool-root="goal-weight-time-calculator"] .gwt-card,
  [data-tool-root="goal-weight-time-calculator"] .gwt-result-strong { padding: 14px; }
  [data-tool-root="goal-weight-time-calculator"] .gwt-plan-toolbar { align-items: stretch; flex-direction: column; }
  [data-tool-root="goal-weight-time-calculator"] .gwt-formula p { grid-template-columns: 1fr; gap: 4px; }
}

@media (max-width: 430px) {
  [data-tool-root="goal-weight-time-calculator"] .gwt-preset-row,
  [data-tool-root="goal-weight-time-calculator"] .gwt-action-row,
  [data-tool-root="goal-weight-time-calculator"] .gwt-result-actions,
  [data-tool-root="goal-weight-time-calculator"] .gwt-result-stats { grid-template-columns: 1fr; }
  [data-tool-root="goal-weight-time-calculator"] .gwt-unit-row { align-items: stretch; flex-direction: column; }
  [data-tool-root="goal-weight-time-calculator"] .gwt-segmented,
  [data-tool-root="goal-weight-time-calculator"] .gwt-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  [data-tool-root="goal-weight-time-calculator"],
  [data-tool-root="goal-weight-time-calculator"] *,
  [data-tool-root="goal-weight-time-calculator"] *::before,
  [data-tool-root="goal-weight-time-calculator"] *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
