* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #fff;
  color: #111;
  font:
    16px/1.5 system-ui,
    -apple-system,
    Segoe UI,
    sans-serif;
}
main {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 16px;
}
a {
  color: #2563eb;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
h1 {
  font-size: 26px;
  margin: 12px 0 4px;
}
h2 {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #666;
  margin: 28px 0 10px;
}
.sub {
  color: #555;
  margin: 0 0 16px;
}
.back {
  font-size: 14px;
}
.links {
  font-size: 14px;
  color: #555;
  margin: 14px 0 0;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.box {
  display: block;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 16px;
  color: #111;
}
.box:hover {
  border-color: #2563eb;
  text-decoration: none;
}
.ab {
  font-size: 22px;
  color: #2563eb;
}
.nm {
  font-weight: 600;
  margin: 4px 0;
}
.ds {
  font-size: 14px;
  color: #666;
}
.tg {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  color: #555;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 0 8px;
}
table {
  border-collapse: collapse;
  width: 100%;
  margin: 8px 0;
  font-size: 14px;
}
th,
td {
  border: 1px solid #ddd;
  padding: 6px 8px;
  text-align: left;
}
th {
  background: #f6f6f6;
}
input,
textarea {
  font: inherit;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 4px 6px;
}
td input {
  width: 80px;
}
textarea {
  width: 100%;
  height: 220px;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 13px;
}
button {
  font: inherit;
  border: 1px solid #ccc;
  background: #fff;
  border-radius: 4px;
  padding: 6px 12px;
  cursor: pointer;
}
button:hover {
  border-color: #2563eb;
}
button.pri {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
}
.ctl {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 12px 0;
}
#err {
  color: #b91c1c;
  margin: 8px 0;
}
.gantt {
  display: flex;
  margin: 16px 0 0;
  overflow-x: auto;
}
.gantt div {
  min-width: 28px;
  text-align: center;
  font-size: 13px;
  padding: 8px 0;
  border: 1px solid #fff;
  color: #111;
}
.ticks {
  display: flex;
  font-size: 12px;
  color: #666;
}
.ticks span {
  min-width: 28px;
  text-align: left;
}
.avg {
  margin: 10px 0;
  font-weight: 600;
}
footer {
  max-width: 900px;
  margin: 24px auto;
  padding: 16px;
  border-top: 1px solid #eee;
  font-size: 14px;
  color: #666;
}
#dia {
  position: relative;
  border: 1px solid #ddd;
  border-radius: 6px;
  height: 70vh;
  min-height: 420px;
  overflow: hidden;
  background: #fff;
}
#cv {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  cursor: grab;
  user-select: none;
}
#hint {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
}
#pop {
  position: absolute;
  display: none;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 10px;
  font-size: 13px;
  z-index: 5;
  flex-direction: column;
  gap: 6px;
}
#pop label {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
#pop select {
  font: inherit;
}
.tb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 10px 0;
}
.leg {
  font-size: 13px;
  color: #555;
}
.sec {
  border-top: 1px solid #ddd;
  margin-top: 20px;
  padding-top: 4px;
}
.sec h2 {
  font-size: 18px;
  text-transform: none;
  letter-spacing: 0;
  color: #111;
  margin: 12px 0 4px;
}
td.best {
  background: #dcfce7;
}
.ui {
  opacity: 0;
}
.t:hover .ui,
.t.sel .ui {
  opacity: 1;
}
#toast {
  color: #166534;
}
#toast button {
  padding: 1px 8px;
}
#pop input:not([type="checkbox"]) {
  width: 150px;
}
.seo {
  margin-top: 40px;
}

.seo h2 {
  margin-top: 28px;
}

.seo p,
.seo li {
  line-height: 1.6;
}
