body.toreteru-modern {
  --tt-bg: #f4efe6;
  --tt-panel: rgba(255, 252, 247, 0.92);
  --tt-panel-strong: #fffdf9;
  --tt-line: rgba(98, 74, 42, 0.14);
  --tt-text: #1f1b16;
  --tt-muted: #6e6253;
  --tt-accent: #0f6b5d;
  --tt-accent-strong: #0a5449;
  --tt-highlight: #c6853d;
  margin: 0;
  min-height: 100vh;
  color: var(--tt-text);
  font-family: "Avenir Next", "Hiragino Sans", "Yu Gothic", sans-serif;
  line-height: 1.6;
  background:
    radial-gradient(circle at top left, rgba(15, 107, 93, 0.12), transparent 34%),
    radial-gradient(circle at top right, rgba(198, 133, 61, 0.13), transparent 28%),
    linear-gradient(180deg, #f9f5ed 0%, var(--tt-bg) 100%);
}

body.toreteru-modern a {
  color: var(--tt-accent);
  text-decoration: none;
}

body.toreteru-modern a:hover {
  color: var(--tt-accent-strong);
  text-decoration: underline;
}

body.toreteru-modern #universal {
  width: min(1120px, calc(100% - 32px));
  flex: 0 1 min(1120px, calc(100% - 32px));
  margin: 24px auto 48px;
}

body.toreteru-modern #header,
body.toreteru-modern #body,
body.toreteru-modern #footer {
  background: var(--tt-panel);
  border: 1px solid var(--tt-line);
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(64, 44, 21, 0.08);
}

body.toreteru-modern #header,
body.toreteru-modern #footer {
  backdrop-filter: blur(12px);
}

body.toreteru-modern #body {
  margin-top: 18px;
  padding-bottom: 8px;
}

body.toreteru-modern #footer {
  margin-top: 18px;
}

body.toreteru-modern .sec {
  overflow: hidden;
}

body.toreteru-modern .sec-p,
body.toreteru-modern .sec-fp {
  padding: 18px 24px;
  max-width: 1024px;
  margin: 0 auto;
}

body.toreteru-modern .sec-lc50,
body.toreteru-modern .sec-rc50,
body.toreteru-modern .sec-lc70,
body.toreteru-modern .sec-rc30,
body.toreteru-modern .sec-lc80,
body.toreteru-modern .sec-rc20,
body.toreteru-modern .sec-fc {
  box-sizing: border-box;
}

body.toreteru-modern h1,
body.toreteru-modern h2 {
  margin: 0;
  letter-spacing: 0.02em;
}

body.toreteru-modern h1 {
  font-size: clamp(1.9rem, 3vw, 3rem);
  font-weight: 700;
}

body.toreteru-modern h2 {
  font-size: clamp(1.25rem, 2vw, 2rem);
}

body.toreteru-modern p,
body.toreteru-modern li,
body.toreteru-modern td,
body.toreteru-modern th,
body.toreteru-modern small {
  color: var(--tt-text);
}

body.toreteru-modern .right {
  text-align: right;
}

body.toreteru-modern .left {
  text-align: left;
}

body.toreteru-modern .center {
  text-align: center;
}

body.toreteru-modern .line-gray,
body.toreteru-modern .hr {
  margin: 0 24px;
  border: 0;
  border-top: 1px solid var(--tt-line);
}

body.toreteru-modern .hr40 {
  height: 24px;
}

body.toreteru-modern .glonavi,
body.toreteru-modern #footer ul,
body.toreteru-modern .join-progress ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  padding: 0;
  margin: 0;
  list-style: none;
}

body.toreteru-modern .glonavi {
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

body.toreteru-modern .glonavi li,
body.toreteru-modern #footer li {
  position: relative;
}

body.toreteru-modern .glonavi li + li::before,
body.toreteru-modern #footer li + li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 14px;
  margin-top: -7px;
  background: rgba(98, 74, 42, 0.22);
}

body.toreteru-modern .glonavi li a,
body.toreteru-modern #footer li a {
  display: inline-block;
  min-height: 0;
  padding: 4px 16px 6px;
  background: transparent;
  border-radius: 0;
  color: var(--tt-muted);
  text-decoration: none;
}

body.toreteru-modern .glonavi li a:hover,
body.toreteru-modern #footer li a:hover {
  color: var(--tt-accent);
  text-decoration: none;
}

body.toreteru-modern .join-progress {
  font-weight: 600;
}

body.toreteru-modern .join-progress li {
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(31, 27, 22, 0.05);
}

body.toreteru-modern .join-progress .li-current {
  color: #fff;
  background: linear-gradient(135deg, var(--tt-accent), var(--tt-accent-strong));
}

body.toreteru-modern.toreteru-modern-toreteru_top #header .sec-lc50,
body.toreteru-modern.toreteru-modern-toreteru_top #header .sec-rc50,
body.toreteru-modern.toreteru-modern-toreteru_top #footer .sec-lc70,
body.toreteru-modern.toreteru-modern-toreteru_top #footer .sec-rc30,
body.toreteru-modern.toreteru-modern-toreteru_auth_global #header .sec-lc70,
body.toreteru-modern.toreteru-modern-toreteru_auth_global #header .sec-rc30,
body.toreteru-modern.toreteru-modern-toreteru_dashboard #header .sec-lc50,
body.toreteru-modern.toreteru-modern-toreteru_dashboard #header .sec-rc50 {
  width: auto;
  float: none;
  text-align: center;
}

body.toreteru-modern.toreteru-modern-toreteru_top .border,
body.toreteru-modern.toreteru-modern-toreteru_auth_global .form-join,
body.toreteru-modern.toreteru-modern-toreteru_dashboard .border,
body.toreteru-modern.toreteru-modern-toreteru_dashboard .accordion {
  margin-left: auto;
  margin-right: auto;
}

body.toreteru-modern .form-join {
  width: min(100%, 760px);
  margin: 0 auto;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--tt-panel-strong);
  border: 1px solid var(--tt-line);
  border-radius: 18px;
  overflow: hidden;
}

body.toreteru-modern .form-join.form-w640 {
  width: min(100%, 640px);
}

body.toreteru-modern .form-join td,
body.toreteru-modern .form-join th {
  padding: 14px 16px;
  border-top: 1px solid var(--tt-line);
  vertical-align: top;
}

body.toreteru-modern .form-join tr:first-child td,
body.toreteru-modern .form-join tr:first-child th {
  border-top: 0;
}

body.toreteru-modern .form-join td:first-child,
body.toreteru-modern .form-join th:first-child {
  width: 34%;
  font-weight: 700;
  color: var(--tt-muted);
  background: rgba(15, 107, 93, 0.05);
}

body.toreteru-modern input[type="text"],
body.toreteru-modern input[type="password"],
body.toreteru-modern input[type="email"],
body.toreteru-modern textarea,
body.toreteru-modern select {
  width: 100%;
  max-width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(31, 27, 22, 0.16);
  border-radius: 12px;
  box-sizing: border-box;
  background: #fff;
  color: var(--tt-text);
  font: inherit;
}

body.toreteru-modern input[type="submit"],
body.toreteru-modern input[type="button"],
body.toreteru-modern button,
body.toreteru-modern a.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--tt-accent), var(--tt-accent-strong));
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(15, 107, 93, 0.18);
}

body.toreteru-modern input[type="submit"]:hover,
body.toreteru-modern input[type="button"]:hover,
body.toreteru-modern button:hover,
body.toreteru-modern a.button:hover {
  text-decoration: none;
  filter: brightness(1.04);
}

body.toreteru-modern img {
  max-width: 100%;
  height: auto;
}

body.toreteru-modern .attension,
body.toreteru-modern .border {
  margin: 0 24px 24px;
  border-radius: 24px;
  border: 1px solid var(--tt-line);
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,248,240,0.92));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.65);
}

body.toreteru-modern .attension h2 {
  margin-bottom: 10px;
}

body.toreteru-modern .btn-purchase {
  margin: 0;
  text-align: center;
}

body.toreteru-modern .btn-purchase a {
  display: inline-block;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(198, 133, 61, 0.18);
}

body.toreteru-modern .pankuzu {
  color: var(--tt-muted);
}

body.toreteru-modern .td-error {
  background: rgba(173, 44, 44, 0.08) !important;
}

body.toreteru-modern .modern-callout {
  width: min(100%, 760px);
  margin: 0 auto 24px;
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid rgba(198, 133, 61, 0.24);
  background: linear-gradient(180deg, rgba(255,250,241,0.96), rgba(255,245,227,0.96));
  box-shadow: 0 12px 28px rgba(198, 133, 61, 0.12);
}

body.toreteru-modern .modern-callout strong {
  display: block;
  margin-bottom: 6px;
  color: var(--tt-accent-strong);
  font-size: 1.05rem;
}

body.toreteru-modern .modern-secret {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #171411;
  color: #f5f0e8;
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

@media (max-width: 900px) {
  body.toreteru-modern #universal {
    width: min(100% - 20px, 1120px);
    margin-top: 12px;
  }

  body.toreteru-modern .sec-lc50,
  body.toreteru-modern .sec-rc50,
  body.toreteru-modern .sec-lc70,
  body.toreteru-modern .sec-rc30,
  body.toreteru-modern .sec-lc80,
  body.toreteru-modern .sec-rc20 {
    float: none;
    width: 100%;
  }

  body.toreteru-modern .sec-p,
  body.toreteru-modern .sec-fp {
    padding: 16px 18px;
  }

  body.toreteru-modern .form-join td:first-child,
  body.toreteru-modern .form-join th:first-child {
    width: auto;
  }
}

@media (max-width: 640px) {
  body.toreteru-modern #header,
  body.toreteru-modern #body,
  body.toreteru-modern #footer {
    border-radius: 18px;
  }

  body.toreteru-modern .glonavi li,
  body.toreteru-modern #footer li,
  body.toreteru-modern .join-progress li {
    width: 100%;
  }

  body.toreteru-modern .glonavi li a,
  body.toreteru-modern #footer li a {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }

  body.toreteru-modern .form-join,
  body.toreteru-modern .form-join tr,
  body.toreteru-modern .form-join td,
  body.toreteru-modern .form-join th,
  body.toreteru-modern .form-join tbody {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  body.toreteru-modern .form-join td,
  body.toreteru-modern .form-join th {
    border-top: 0;
  }

  body.toreteru-modern .form-join td:first-child,
  body.toreteru-modern .form-join th:first-child {
    border-bottom: 1px solid var(--tt-line);
    border-radius: 18px 18px 0 0;
  }
}
