:root {
  --bg: #0f1419;
  --surface: #1a2332;
  --border: #2d3a4d;
  --text: #e8eef5;
  --muted: #8b9cb3;
  --accent: #3d9cf5;
  --accent-dim: #2563a8;
  --danger: #f87171;
  --radius: 10px;
  --font: "Segoe UI", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  background: linear-gradient(160deg, var(--bg) 0%, #151c28 100%);
  color: var(--text);
  line-height: 1.5;
}

.header {
  padding: 2rem 1.5rem 1rem;
  max-width: 960px;
  margin: 0 auto;
}

.header-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.header-titles {
  flex: 1;
  min-width: 200px;
}

.day-block {
  margin-bottom: 0.85rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
}

.day-block:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.in-out-row {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 0.25rem;
  padding-left: 0.35rem;
}

.header h1 {
  margin: 0 0 0.35rem;
  font-size: 1.75rem;
  font-weight: 600;
}

.sub {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.layout {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}

.card h2 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
}

label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--muted);
}

input,
select,
button {
  font: inherit;
}

input[type="month"],
input[type="text"],
input[type="datetime-local"],
select {
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  min-width: 200px;
}

.btn {
  padding: 0.55rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.btn:hover {
  border-color: var(--accent-dim);
}

.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #0a0f14;
  font-weight: 600;
}

.btn.primary:hover {
  filter: brightness(1.08);
}

.btn-rename {
  margin-left: 0.5rem;
  padding: 0.3rem 0.6rem;
  font-size: 0.8rem;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-width: 420px;
}

.hint {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0 0 1rem;
}

.error {
  color: var(--danger);
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
}

.hidden {
  display: none !important;
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 0.92rem;
}

.table th,
.table td {
  text-align: left;
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--border);
}

.table th {
  color: var(--muted);
  font-weight: 500;
}

.table tbody tr:hover {
  background: rgba(61, 156, 245, 0.06);
}

.toggle-day {
  font-size: 0.85rem;
  color: var(--accent);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}

.day-detail {
  margin: 0.5rem 0 0;
  padding-left: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.list li {
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}

.list code {
  font-size: 0.82rem;
  color: var(--accent);
}

.site-footer {
  margin-top: 0.5rem;
  padding: 0 1.5rem 2.5rem;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.site-footer-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.site-footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}

.site-footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.site-footer-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
}

.site-footer-desc {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.4;
  max-width: 28rem;
}

.site-footer-cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.1rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--bg);
  background: linear-gradient(165deg, var(--accent) 0%, var(--accent-dim) 100%);
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid rgba(61, 156, 245, 0.35);
  transition: filter 0.15s ease, transform 0.15s ease;
}

.site-footer-cta:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.site-footer-cta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.site-footer-hint {
  margin: 1rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.45;
}

.site-footer-hint code {
  font-size: 0.74rem;
  color: var(--accent);
}

.muted {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}
