body {
  margin: 0;
  font-family: "Lato", "Yu Gothic UI", "Yu Gothic", "Meiryo UI", "Meiryo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: #fff;
  color: #34495e;
  line-height: 1.42857143;
  font-size: 15px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #16a085;
  text-decoration: none;
}

a:hover {
  color: #138d75;
  text-decoration: underline;
}

button,
input,
textarea {
  font: inherit;
}

.legacy-page {
  padding: 36px 0 96px;
}

.legacy-container,
.legacy-admin-container {
  width: 90%;
  max-width: 1140px;
  margin: 0 auto;
}

.legacy-login-shell {
  min-height: calc(100vh - 50px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
}

.legacy-login-card {
  width: 100%;
  max-width: 420px;
  padding: 32px 28px;
  background: #fff;
  border: 1px solid #d5dbdb;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(44, 62, 80, 0.08);
}

.legacy-login-card h1 {
  margin: 0 0 20px;
  font-size: 28px;
  font-weight: 300;
}

.legacy-login-form label {
  display: block;
  margin: 14px 0 6px;
  font-size: 14px;
  color: #34495e;
}

.legacy-login-form input {
  width: 100%;
  height: 46px;
  padding: 10px 12px;
  border: 2px solid #dce4ec;
  border-radius: 6px;
  background: #fff;
}

.legacy-login-form button {
  width: 100%;
  margin: 20px 0 0;
}

.legacy-container h3 {
  font-size: 31px;
  margin: 16px 0 18px;
  font-weight: 300;
  letter-spacing: 0;
  color: #34495e;
}

.legacy-info,
.legacy-links {
  margin: 0 0 22px;
  font-size: 20px;
  line-height: 1.65;
}

.legacy-links span {
  display: inline-block;
  margin: 0 6px;
  color: #95a5a6;
}

.legacy-center {
  text-align: center;
}

.legacy-sortbar,
.pager-top,
.pager-bottom {
  margin: 22px 0;
}

.legacy-btn {
  display: inline-block;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #fff;
  padding: 12px 20px;
  margin: 0 8px 10px;
  font-size: 16px;
  line-height: 1.42857143;
  cursor: pointer;
  text-decoration: none;
}

.legacy-btn:hover {
  color: #fff;
  text-decoration: none;
}

.legacy-btn-primary {
  background: #1abc9c;
}

.legacy-btn-primary:hover {
  background: #16a085;
}

.legacy-btn-info {
  background: #3498db;
}

.legacy-btn-info:hover {
  background: #2980b9;
}

.legacy-btn-warning {
  background: #f1c40f;
  color: #fff;
}

.legacy-btn-warning:hover {
  background: #f39c12;
}

.legacy-btn-inverse {
  background: #34495e;
}

.legacy-btn-inverse:hover {
  background: #2c3e50;
}

.legacy-btn-default {
  background: #ecf0f1;
  border-color: #d5dbdb;
  color: #34495e;
}

.legacy-btn-default:hover {
  background: #dfe6e9;
  color: #34495e;
}

.legacy-btn-danger {
  background: #e74c3c;
}

.legacy-btn-danger:hover {
  background: #c0392b;
}

.legacy-records {
  margin-top: 56px;
}

.legacy-wrapper {
  margin: 50px auto;
  width: 90%;
  min-width: 0;
  max-width: 505px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-shadow: 0 0 10px #ddd;
  overflow: hidden;
}

.legacy-article {
  padding: 18px 18px 22px;
  border-bottom: 1px solid #eee;
}

.legacy-twitter-header {
  margin: 2px 0 9px;
  font-weight: bold;
}

.legacy-twitter-header .display_name {
  display: block;
  font-size: 160%;
  line-height: 1;
  font-weight: 700;
}

.legacy-twitter-header .screen_name {
  display: block;
  color: #8899a6;
  margin-top: 4px;
  font-size: 112%;
  font-weight: normal;
}

.legacy-twitter-body {
  margin: 0;
  max-width: none;
  font-size: 130%;
  line-height: 1.8;
  white-space: pre-wrap;
  word-break: break-word;
  font-weight: 400;
}

.legacy-twitter-image {
  margin: 14px 0 0;
}

.legacy-twitter-image a {
  display: inline-block;
}

.legacy-twitter-image img {
  display: block;
  max-width: 200px;
  margin-bottom: 8px;
}

.legacy-postdate {
  margin: 15px 18px;
  color: #aaa;
  font-size: 90%;
}

.legacy-status {
  margin: 15px 18px 18px;
  width: auto;
}

.legacy-status ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 18px;
  white-space: nowrap;
}

.legacy-status li {
  display: inline-flex;
  align-items: center;
  margin-right: 0;
}

.metric {
  display: inline-flex;
  align-items: center;
  margin-right: 5px;
  font-size: 16px;
  font-weight: 400;
}

.metric-icon {
  margin-right: 0;
  font-size: 17px;
  line-height: 1;
}

.replay_count,
.retweet_count,
.heart_count {
  font-size: 17px;
}

.metric-reply,
.replay_count {
  color: #aaa;
}

.metric-retweet,
.retweet_count {
  color: #19cf86;
}

.metric-heart,
.heart_count {
  color: #e0245e;
}

.legacy-navbar {
  background: #2c3e50;
  border-color: #1a242f;
  min-height: 50px;
}

.legacy-navbar-inner {
  width: 95%;
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 50px;
}

.legacy-brand {
  color: #fff;
  font-size: 24px;
  line-height: 50px;
  text-decoration: none;
  font-weight: 700;
}

.legacy-brand:hover {
  color: #fff;
  text-decoration: none;
}

.legacy-navbar-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.legacy-navbar-links a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
}

.legacy-navbar-links a:hover {
  color: #fff;
}

.legacy-navbar-links .legacy-x-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 26px;
}

.legacy-x-icon {
  width: 18px;
  height: 18px;
  display: block;
}

.legacy-admin-center {
  text-align: center;
  padding: 28px 0 48px;
}

.legacy-flash-space {
  margin-top: 20px;
}

.alert {
  border-radius: 4px;
  padding: 15px;
  margin: 0 0 20px;
}

.alert.ok {
  background: #dff0d8;
  color: #3c763d;
}

.alert.error {
  background: #f2dede;
  color: #a94442;
}

.legacy-memo-row,
.legacy-search-form {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.legacy-admin-actions {
  display: block;
  margin: 0 0 16px;
}

.legacy-search-form {
  margin-top: 12px;
}

#memo,
#search_word {
  width: 300px;
  max-width: 100%;
  padding: 8px 12px;
  border: 2px solid #bdc3c7;
  border-radius: 6px;
  background: #fff;
  box-sizing: border-box;
  color: #34495e;
  transition: border-color 0.25s linear, box-shadow 0.25s linear;
}

#length {
  font-size: 300%;
  line-height: normal;
  margin: 10px 0 18px;
}

textarea#word {
  display: block;
  width: 500px;
  max-width: 100%;
  height: 150px;
  margin: 0 auto 16px;
  padding: 10px 12px;
  font-size: 16px;
  border: 2px solid #bdc3c7;
  border-radius: 6px;
  background: #ffffe0;
  box-sizing: border-box;
  color: #34495e;
  transition: border-color 0.25s linear, box-shadow 0.25s linear;
}

#memo:focus,
#search_word:focus,
textarea#word:focus {
  border-color: #1abc9c;
  box-shadow: none;
  outline: 0;
}

.legacy-image-space {
  margin: 24px auto 0;
  width: 100%;
  max-width: 430px;
  display: block;
  text-align: left;
}

.legacy-image-record {
  margin-bottom: 10px;
}

.legacy-schedule-container {
  padding: 28px 0 60px;
}

.legacy-schedule-header h2 {
  margin: 0 0 10px;
  font-size: 30px;
  font-weight: 300;
}

.legacy-schedule-header p {
  margin: 0 0 24px;
  color: #7f8c8d;
  font-size: 16px;
}

.legacy-schedule-list {
  display: grid;
  gap: 14px;
}

.legacy-schedule-card {
  background: #fff;
  border: 1px solid #dce4ec;
  border-radius: 8px;
  padding: 12px 14px;
  box-shadow: 0 2px 8px rgba(44, 62, 80, 0.06);
}

.legacy-schedule-top {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.legacy-field {
  display: block;
  text-align: left;
}

.legacy-field > span {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #34495e;
}

.legacy-field input[type="time"],
.legacy-field textarea {
  width: 100%;
  border: 2px solid #dce4ec;
  border-radius: 6px;
  padding: 8px 10px;
  background: #fff;
  color: #34495e;
}

.legacy-field textarea {
  min-height: 74px;
  resize: vertical;
}

.legacy-inline-field {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.legacy-inline-field > span {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: #34495e;
  white-space: nowrap;
}

.legacy-inline-field input[type="time"] {
  width: 125px;
  min-width: 125px;
}

.legacy-inline-field-weekdays {
  flex: 1 1 320px;
  min-width: 260px;
}

.legacy-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-right: 10px;
  font-size: 14px;
  color: #34495e;
  font-weight: 400;
  cursor: pointer;
  user-select: none;
}

.legacy-checkbox-ui {
  position: relative;
  width: 18px;
  height: 18px;
  border: 2px solid #dce4ec;
  border-radius: 4px;
  background: #fff;
  flex: 0 0 18px;
}

.legacy-checkbox input:checked + .legacy-checkbox-ui {
  background: #1abc9c;
  border-color: #1abc9c;
}

.legacy-checkbox input:checked + .legacy-checkbox-ui::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.legacy-weekday-picker {
  padding-top: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.legacy-weekday-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin-top: 0;
}

.legacy-weekday-list.is-disabled {
  opacity: 0.5;
}

.legacy-schedule-details {
  margin-top: 8px;
  border-top: 1px solid #ecf0f1;
  padding-top: 8px;
}

.legacy-schedule-details summary {
  cursor: pointer;
  color: #16a085;
  font-size: 13px;
  font-weight: 700;
  list-style: none;
}

.legacy-schedule-details summary::-webkit-details-marker {
  display: none;
}

.legacy-schedule-details summary::before {
  content: "▶";
  display: inline-block;
  margin-right: 6px;
  font-size: 10px;
  transform: translateY(-1px);
}

.legacy-schedule-details[open] summary::before {
  content: "▼";
}

.legacy-fixed-tweet-field {
  margin-top: 8px;
}

.legacy-schedule-actions {
  margin-top: 16px;
  text-align: center;
}

@media (max-width: 768px) {
  .legacy-schedule-top {
    align-items: flex-start;
  }

  .legacy-inline-field,
  .legacy-inline-field-weekdays,
  .legacy-weekday-picker {
    width: 100%;
  }
}

.legacy-image-record input[type="file"] {
  display: inline-block;
  margin-bottom: 0;
  font-size: 14px;
}

.legacy-image-preview-space {
  min-height: 0;
  margin: 6px 0 12px;
}

.preview {
  display: block;
  max-width: 200px;
  max-height: 160px;
}

.preview[src=""] {
  display: none;
}

#search_result_space {
  margin-top: 24px;
  text-align: left;
}

#search_result_space p {
  width: 90%;
  margin: 0 auto 12px;
}

#search_result_word,
#search_result_count {
  font-size: 120%;
  color: #ff0000;
}

#search_result {
  width: 90%;
  margin: 0 auto;
  background: #fff;
}

#search_result th,
#search_result td {
  padding: 10px 12px;
  vertical-align: top;
  text-align: left;
}

#search_result thead th:last-child,
#search_result td:last-child {
  width: 120px;
  text-align: center;
}

.result-body {
  white-space: pre-wrap;
  word-break: break-word;
}

.result-actions {
  width: 100px;
  white-space: nowrap;
}

.result-actions form {
  margin: 0;
  display: inline;
}

.search-thumb {
  max-width: 100px;
  max-height: 100px;
  margin: 0 6px 6px 0;
  display: inline-block;
  vertical-align: top;
}

.muted {
  color: #95a5a6;
}

.result-actions .btn {
  margin: 0 4px;
  padding: 6px 10px;
}

.result-actions .fui-new,
.result-actions .fui-trash {
  display: inline-block;
  font-size: 14px;
  line-height: 1;
}

@media (max-width: 768px) {
  .legacy-page {
    padding: 24px 0 56px;
  }

  .legacy-navbar-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 10px 0;
  }

  .legacy-brand {
    line-height: 1.3;
  }

  .legacy-wrapper {
    width: 100%;
    min-width: 0;
    margin: 0 auto 36px;
  }

  #search_result {
    width: 100%;
    font-size: 14px;
  }
}
