:root {
  --pomp-bg-card: #ffffff;
  --pomp-border: #e2e8f0;
  --pomp-text: #1e293b;
  --pomp-muted: #64748b;
  --pomp-primary: #e11d48;
  --pomp-primary-hover: #be123c;
  --pomp-primary-fg: #ffffff;
  --pomp-btn-bg: #f8fafc;
  --pomp-btn-border: #cbd5e1;
  --pomp-btn-hover: #e2e8f0;
  --pomp-stat-bg: #f8fafc;
  --pomp-tag-focus-bg: #ffe4e6;
  --pomp-tag-focus-text: #9f1239;
  --pomp-tag-break-bg: #dcfce7;
  --pomp-tag-break-text: #166534;
  --pomp-tag-long-bg: #e0f2fe;
  --pomp-tag-long-text: #075985;
}

.pomp-main {
  max-width: 900px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
}

.pomp-card {
  background: var(--pomp-bg-card);
  border: 1px solid var(--pomp-border);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.pomp-tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.pomp-tab {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 9999px;
  border: 1px solid var(--pomp-border);
  background: var(--pomp-btn-bg);
  color: var(--pomp-muted);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.pomp-tab:hover {
  color: var(--pomp-text);
}

.pomp-tab-active {
  background: var(--pomp-primary);
  color: var(--pomp-primary-fg);
  border-color: var(--pomp-primary);
}

.pomp-tab-active:hover {
  color: var(--pomp-primary-fg);
}

.pomp-timer-wrap {
  text-align: center;
  margin-bottom: 1.5rem;
}

.pomp-timer-display {
  font-size: clamp(3.5rem, 12vw, 5.5rem);
  font-weight: 800;
  font-family: ui-monospace, SFMono-Regular, monospace;
  color: var(--pomp-text);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.pomp-session-badge {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--pomp-muted);
  background-color: var(--pomp-stat-bg);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid var(--pomp-border);
}

.pomp-timer-controls {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.pomp-btn {
  padding: 0.6rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pomp-btn-primary {
  background: var(--pomp-primary);
  color: var(--pomp-primary-fg);
  border: 1px solid var(--pomp-primary);
}

.pomp-btn-primary:hover {
  background: var(--pomp-primary-hover);
}

.pomp-btn-outline {
  background: var(--pomp-btn-bg);
  color: var(--pomp-text);
  border: 1px solid var(--pomp-btn-border);
}

.pomp-btn-outline:hover:not(:disabled) {
  background: var(--pomp-btn-hover);
}

.pomp-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pomp-planner-section {
  border-top: 1px solid var(--pomp-border);
  padding-top: 1.5rem;
}

.pomp-planner-header {
  margin-bottom: 1.25rem;
}

.pomp-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--pomp-text);
  margin: 0 0 0.25rem 0;
}

.pomp-section-sub {
  font-size: 0.8125rem;
  color: var(--pomp-muted);
  margin: 0;
}

.pomp-planner-inputs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
  background-color: var(--pomp-stat-bg);
  border: 1px solid var(--pomp-border);
  border-radius: 8px;
  padding: 1rem;
}

.pomp-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.pomp-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--pomp-text);
}

.pomp-time-input, .pomp-select {
  padding: 0.45rem 0.65rem;
  font-size: 0.875rem;
  border: 1px solid var(--pomp-border);
  border-radius: 6px;
  background-color: var(--pomp-bg-card);
  color: var(--pomp-text);
}

.pomp-summary-banner {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem;
  background-color: var(--pomp-stat-bg);
  border: 1px solid var(--pomp-border);
  border-radius: 8px;
  margin-bottom: 1.25rem;
}

.pomp-sum-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.pomp-sum-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--pomp-muted);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.pomp-sum-val {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--pomp-text);
}

.pomp-timetable-wrap {
  border: 1px solid var(--pomp-border);
  border-radius: 8px;
  overflow-x: auto;
}

.pomp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  text-align: left;
}

.pomp-table th, .pomp-table td {
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid var(--pomp-border);
}

.pomp-table th {
  background: var(--pomp-stat-bg);
  color: var(--pomp-muted);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pomp-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
}

.pomp-tag-focus {
  background-color: var(--pomp-tag-focus-bg);
  color: var(--pomp-tag-focus-text);
}

.pomp-tag-break {
  background-color: var(--pomp-tag-break-bg);
  color: var(--pomp-tag-break-text);
}

.pomp-tag-longbreak {
  background-color: var(--pomp-tag-long-bg);
  color: var(--pomp-tag-long-text);
}

@media (max-width: 600px) {
  .pomp-planner-inputs {
    grid-template-columns: 1fr;
  }
  .pomp-summary-banner {
    flex-direction: column;
    align-items: stretch;
  }
}
/* tf:dark-palette — generated by migrate_chrome.py */
/* Neutrals inherit the shared chrome tokens so all tools share one
   ground; brand hues are kept and lightened, never inverted. */
[data-theme="dark"] {
  --pomp-bg-card: var(--tf-surface);
  --pomp-border: var(--tf-surface);
  --pomp-text: var(--tf-ink);
  --pomp-muted: var(--tf-ink-faint);
  --pomp-primary: #da8194;
  --pomp-primary-hover: #da8196;
  --pomp-primary-fg: var(--tf-surface);
  --pomp-btn-bg: var(--tf-surface);
  --pomp-btn-border: #98abc3;
  --pomp-btn-hover: var(--tf-surface);
  --pomp-stat-bg: var(--tf-surface);
  --pomp-tag-focus-bg: var(--tf-surface);
  --pomp-tag-focus-text: #d6738f;
  --pomp-tag-break-bg: var(--tf-surface);
  --pomp-tag-break-text: #59cf86;
  --pomp-tag-long-bg: var(--tf-surface);
  --pomp-tag-long-text: #59a6cf;
}
