* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: #f5f5f5;
  color: #333;
  padding: 2rem 1rem;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 2rem;
}

.day-section {
  margin-bottom: 0.5rem;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  overflow: hidden;
}

.day-section summary {
  padding: 0.75rem 1rem;
  background: #f8f9fa;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  color: #212529;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.day-section summary:hover {
  background: #e9ecef;
}

.day-section[open] summary {
  background: #e9ecef;
  border-bottom: 1px solid #dee2e6;
}

.day-section summary::marker,
.day-section summary::-webkit-details-marker {
  display: none;
}

.day-section summary::after {
  content: '▼';
  font-size: 0.7rem;
  color: #6c757d;
  transition: transform 0.2s;
}

.day-section[open] summary::after {
  transform: rotate(180deg);
}

.day-section.today summary {
  background: #e7f3ff;
  color: #004085;
}

.day-section.today[open] summary {
  background: #d0e7ff;
}

.day-section.today summary:hover {
  background: #d0e7ff;
}

.table-wrapper {
  overflow-x: auto;
}

h1 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  gap: 1rem;
}

h2 {
  color: #666;
  font-size: 1rem;
  margin: 0;
  flex: 1;
}

.reset-btn {
  padding: 0.3rem 0.6rem;
  background: transparent;
  color: #5d656c;
  border: 1px solid #5d656c;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 400;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}

.reset-btn:hover, .reset-btn:active {
  background: #f8f9fa;
  color: #495057;
  border-color: #adb5bd;
}

.info-section {
  margin-bottom: 1.5rem;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  overflow: hidden;
}

.info-section summary {
  padding: 0.6rem 1rem;
  background: #f8f9fa;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.875rem;
  color: #495057;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.info-section summary:hover {
  background: #e9ecef;
}

.info-section[open] summary {
  background: #e9ecef;
  border-bottom: 1px solid #dee2e6;
}

.info-section summary::marker,
.info-section summary::-webkit-details-marker {
  display: none;
}

.info-section summary::after {
  content: '▼';
  font-size: 0.65rem;
  color: #6c757d;
  transition: transform 0.2s;
}

.info-section[open] summary::after {
  transform: rotate(180deg);
}

.info-box {
  background: #f8f9fa;
  padding: 1rem;
  font-size: 0.875rem;
  line-height: 1.6;
}

.info-box strong {
  color: #212529;
}

.info-box code {
  background: #e9ecef;
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-family: 'SF Mono', Monaco, 'Courier New', monospace;
  font-size: 0.8rem;
  color: #d63384;
}

.info-box p {
  margin: 0.5rem 0;
}

.info-box p:first-child {
  margin-top: 0;
}

.info-box p:last-child {
  margin-bottom: 0;
}

.info-box hr {
  border: none;
  border-top: 1px solid #dee2e6;
  margin: 1.2rem 0 1rem 0;
}

.info-box ul {
  margin: 0.5rem 0 0 1.5rem;
}

.info-box ul.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(2rem, 10vw, 25rem);
  row-gap: 0.5rem;
  list-style-position: inside;
}

.info-box ul.two-columns li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style-position: inside;
}

.info-box li {
  margin-bottom: 0.5rem;
}

.info-section a {
  color: #d63384;
  text-decoration: underline;
}

.info-section a:hover, .info-section a:focus, .info-section a:active {
  color: #d63384;
  text-decoration: underline;
}

.info-section a.add-to-url {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  background: #e9ecef;
  color: #495057;
  font-size: 0.7rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.info-section a.add-to-url:hover,
.info-section a.add-to-url:focus {
  background: #dee2e6;
  color: #343a40;
  text-decoration: none;
}

.day-section table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.day-section thead {
  background: #f8f9fa;
}

.day-section th {
  padding: 0.5rem 0.5rem;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid #dee2e6;
  color: #495057;
}

.day-section th:first-child {
  padding-left: 1rem;
}

.day-section td {
  padding: 0.4rem 0.5rem;
  border-bottom: 1px solid #f1f3f5;
  font-family: 'SF Mono', Monaco, 'Courier New', monospace;
  font-size: 0.8rem;
}

.day-section td:first-child {
  padding-left: 1rem;
}

.day-section tr:hover {
  background: #f8f9fa;
}

.day-section td.working-hours {
  background: #e5f8ec;
}

.day-section tr:hover td.working-hours {
  background: #ccf6dc;
}

.time-display {
  display: block;
}

.tz-abbr {
  color: #6c757d;
  font-size: 0.75rem;
  margin-left: 0.25rem;
}

@media (max-width: 768px) {
  body {
    padding: 1rem 0.5rem;
  }

  .container {
    padding: 1rem;
    border-radius: 0;
  }

  h1 {
    font-size: 1.25rem;
  }

  .info-section summary,
  .day-section summary {
    padding: 0.6rem 0.75rem;
    font-size: 0.875rem;
  }

  .day-section table {
    font-size: 0.7rem;
  }

  .day-section th,
  .day-section td {
    padding: 0.3rem 0.2rem;
  }

  .day-section td:first-child {
    padding-left: 0.75rem;
  }

  .day-section th:first-child {
    padding-left: 0.75rem;
  }

  .tz-abbr {
    display: block;
    margin-left: 0;
    font-size: 0.65rem;
  }
}
