:root {
  --ink: #162c28;
  --muted: #596a63;
  --forest: #163f36;
  --lime: #d1f69a;
  --edge: #d4dbd1;
  --bg: #f6f7f2;
  --mono: "SFMono-Regular",Consolas,"Liberation Mono",monospace;
  font-family: Inter,"PingFang SC","Microsoft YaHei",system-ui,sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

button,input,select {
  font: inherit;
}

button,a {
  touch-action: manipulation;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: .52;
}

button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible {
  outline: 3px solid #5d986b;
  outline-offset: 3px;
}

button {
  border: 0;
}

a {
  color: inherit;
}

p,h1,h2,h3 {
  margin: 0;
}

[hidden] {
  display: none!important;
}

header {
  background: #fff;
  border-bottom: 1px solid var(--edge);
}

.bar,main {
  width: min(1136px,calc(100% - 64px));
  margin: auto;
}

.bar {
  height: 72px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 22px;
  text-decoration: none;
  font-weight: 750;
  letter-spacing: -1px;
}

.brand-en,.foot-brand {
  font: 600 .8rem var(--mono);
  letter-spacing: 1px;
}

.brand-en {
  color: #6e7b74;
  border-left: 1px solid var(--edge);
  padding-left: 14px;
}

.heading {
  margin: 44px 0 25px;
}

.heading h1 {
  font-size: clamp(2rem,3.7vw,2.9rem);
  line-height: 1.26;
  letter-spacing: -.055em;
}

.heading p,.panel-head p {
  color: var(--muted);
  line-height: 1.65;
  margin-top: 9px;
}

.connect {
  background: var(--forest);
  color: #fff;
  border-radius: 18px;
  min-height: 174px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 28px 36px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.connect-info,.connect form,#online {
  z-index: 1;
}

.card-art {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.card-art i {
  position: absolute;
  width: 170px;
  height: 225px;
  border: 1px solid #ffffff10;
  border-radius: 26px;
  transform: rotate(31deg);
  top: -45px;
  left: calc(46% - 85px);
}

.card-art i:nth-child(2) {
  margin-left: 12px;
}

.card-art i:nth-child(3) {
  margin-left: 24px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .79rem;
  color: #e9f6e7;
  background: #ffffff0c;
  border: 1px solid #ffffff38;
  border-radius: 14px;
  padding: 3px 10px;
}

.status b {
  width: 6px;
  height: 6px;
  background: #afbeb8;
  border-radius: 100%;
}

.status.connected b {
  background: var(--lime);
}

.connect h2 {
  font-size: 1.46rem;
  margin-top: 12px;
  letter-spacing: -.035em;
}

.connect-info p {
  margin-top: 6px;
  color: #d0ded3;
  font-size: .94rem;
}

.connect form {
  width: min(48%,470px);
}

label {
  font-size: .88rem;
  font-weight: 600;
}

.authrow {
  display: flex;
  gap: 8px;
  margin-top: 9px;
}

.authrow input {
  width: 100%;
  min-width: 0;
  background: #fbfcf7;
  border: 1px solid #dce2d8;
  padding: 12px 14px;
  border-radius: 8px;
  color: var(--ink);
  font: 1rem var(--mono);
}

.authrow input::placeholder {
  font:  .92rem system-ui,sans-serif;
  color: #66756b;
}

.accent,.primary,.secondary,.ghost {
  border-radius: 8px;
  padding: 11px 17px;
  line-height: 1.4;
  font-size: .91rem;
  font-weight: 650;
  white-space: nowrap;
}

.accent {
  background: var(--lime);
  color: #223c2b;
}

.accent:hover {
  background: #dfffaf;
}

.primary {
  background: var(--forest);
  color: white;
}

.secondary {
  background: white;
  border: 1px solid var(--edge);
  color: var(--ink);
}

.ghost {
  color: white;
  background: transparent;
  border: 1px solid #ffffff4a;
}

.primary:hover,.ghost:hover {
  background: #295749;
}

.secondary:hover {
  background: #f5f7f2;
}

#online,.quota {
  display: flex;
  align-items: center;
  gap: 24px;
}

.quota {
  gap: 8px;
}

.quota strong {
  font: 600 2rem var(--mono);
  color: var(--lime);
}

.layout {
  display: grid;
  grid-template-columns: minmax(0,2.25fr) minmax(246px,1fr);
  gap: 22px;
  align-items: start;
  margin-top: 24px;
}

.work,aside {
  border-radius: 15px;
  border: 1px solid var(--edge);
  background: #fff;
  overflow: hidden;
}

nav {
  display: flex;
  gap: 28px;
  border-bottom: 1px solid var(--edge);
  padding: 0 26px;
}

.tab {
  border: 0;
  background: none;
  color: #68736c;
  padding: 19px 0 16px;
  font-weight: 600;
  font-size: .95rem;
  border-bottom: 3px solid transparent;
}

.tab.active {
  color: var(--forest);
  border-color: var(--forest);
}

#workspace {
  padding: 25px 26px 28px;
  min-height: 289px;
}

.panel-head h2,aside h2 {
  font-size: 1.16rem;
  letter-spacing: -.025em;
}

.panel-head p,.steps p,.aside-note p {
  font-size: .9rem;
}

.panel-head {
  margin-bottom: 19px;
}

.panel-head p {
  margin-top: 4px;
}

.readout {
  border: 1px dashed #c3cfc3;
  border-radius: 10px;
  background: #f6f8f3;
  padding: 17px 20px;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
}

.readout+.readout {
  margin-top: 9px;
}

.readout .hint {
  grid-column: 1 / -1;
}

.readout small {
  font-size: .87rem;
  color: var(--muted);
  grid-column: 1/-1;
}

.readout strong {
  font: 600 clamp(1.3rem,2.4vw,1.75rem) var(--mono);
  letter-spacing: .04em;
  overflow-wrap: anywhere;
}

.readout .blank {
  color: #7a8b7b;
  letter-spacing: .18em;
}

.copy,.small {
  background: transparent;
  color: var(--forest);
  font-size: .86rem;
  padding: 6px 4px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.actions {
  margin-top: 17px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.hint {
  font-size: .86rem;
  line-height: 1.6;
  color: var(--muted);
}

.lease+.lease {
  border-top: 1px solid var(--edge);
  padding-top: 16px;
  margin-top: 18px;
}

.lease-status {
  margin: 8px 0 0;
}

.lease-status.loading {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lease-status.loading::before {
  content: "";
  flex: 0 0 14px;
  height: 14px;
  box-sizing: border-box;
  border: 2px solid var(--edge);
  border-top-color: var(--forest);
  border-radius: 50%;
  animation: lease-spin 1s linear infinite;
}

@keyframes lease-spin {
  to { transform: rotate(1turn); }
}

@media (prefers-reduced-motion: reduce) {
  .lease-status.loading::before { animation: none; }
}

.notice {
  background: #fff6e0;
  color: #654617;
  padding: 11px 15px;
  border: 1px solid #e7d7b3;
  border-radius: 8px;
  margin-top: 16px;
  font-size: .93rem;
}

aside {
  padding: 24px;
}

aside h2 {
  margin-bottom: 21px;
}

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
}

.steps li {
  position: relative;
  padding: 0 0 20px 26px;
}

.steps li:before {
  content: "";
  width: 9px;
  height: 9px;
  border: 2px solid #518265;
  border-radius: 50%;
  background: #f2f6e9;
  position: absolute;
  left: 1px;
  top: 5px;
  z-index: 1;
}

.steps li:not(:last-child):after {
  content: "";
  background: #d4dfce;
  width: 1px;
  position: absolute;
  left: 7px;
  top: 12px;
  bottom: -6px;
}

.steps li:last-child {
  padding-bottom: 0;
}

.steps b {
  font-size: .96rem;
}

.steps p,.aside-note p {
  color: var(--muted);
  line-height: 1.7;
  margin-top: 3px;
}

.aside-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding-top: 15px;
  margin-top: 18px;
  border-top: 1px solid var(--edge);
}

.aside-note p {
  margin: 0;
  font-size: .84rem;
}

.info {
  border-radius: 50%;
  border: 1px solid #7d9382;
  font: italic bold 12px Georgia;
  padding: 0 5px;
  margin-top: 4px;
  color: #536e57;
}

footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 32px 0 24px;
  border-top: 1px solid var(--edge);
  padding-top: 17px;
  color: #68766d;
  font-size: .8rem;
}

.foot-brand span {
  color: #abb6ac;
  margin: 0 6px;
}

.empty {
  padding: 24px 18px;
  background: #f6f8f3;
  border: 1px dashed #c3cfc3;
  border-radius: 10px;
  color: var(--muted);
  font-size: .94rem;
  line-height: 1.7;
}

.binding {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--edge);
  padding: 13px 0;
}

.binding strong,td.phone,td.code {
  font-family: var(--mono);
}

.binding p {
  margin-top: 5px;
}

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

table {
  border-collapse: collapse;
  width: 100%;
  white-space: nowrap;
  font-size: .9rem;
  text-align: left;
}

th,td {
  padding: 11px 8px;
  border-bottom: 1px solid var(--edge);
}

th {
  font-size: .84rem;
  color: var(--muted);
  background: #f7f8f4;
}

.pager {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 14px;
}

@media(max-width:800px) {
  .layout {
    grid-template-columns: minmax(0,1fr) 240px;
    gap: 14px;
  }
  .connect {
    padding: 26px;
  }
  .bar,main {
    width: calc(100% - 40px);
  }
  aside {
    padding: 19px;
  }
  .connect form {
    width: 51%;
  }
}

@media(max-width:680px) {
  .us-phone small { grid-column: 1; }
  .us-phone .copy { grid-column: 2; grid-row: 1; }
  .us-phone strong { grid-column: 1 / -1; }
  .bar,main {
    width: calc(100% - 32px);
  }
  .bar {
    height: 58px;
  }
  .heading {
    margin: 27px 0 18px;
  }
  .heading p {
    font-size: .94rem;
  }
  .connect {
    align-items: stretch;
    flex-direction: column;
    gap: 20px;
    padding: 21px;
    border-radius: 13px;
  }
  .connect form {
    width: 100%;
  }
  .card-art i {
    left: 75%;
  }
  .layout {
    grid-template-columns: minmax(0,1fr);
    margin-top: 16px;
  }
  .authrow input {
    font-size: 16px;
  }
  .tab {
    padding: 16px 0 14px;
  }
  nav {
    padding: 0 19px;
    gap: 24px;
  }
  #workspace {
    padding: 19px;
    min-height: 250px;
  }
  #online {
    justify-content: space-between;
  }
  footer {
    margin-top: 22px;
  }
  .brand-en {
    font-size: .71rem;
  }
  .readout {
    padding: 14px;
  }
  .connect-info p {
    font-size: .9rem;
  }
}


.repeat-form {
  display: grid;
  gap: .65rem;
  margin: 1rem 0;
}
.repeat-form textarea {
  resize: vertical;
  font: 1rem var(--mono);
}
#batch { padding: clamp(19px, 3vw, 26px); }
#batch caption { text-align: left; padding: 1rem 0 .4rem; }
nav { overflow-x: auto; }
.tab { white-space: nowrap; }
.repeat-form textarea,.repeat-form input {
  width: 100%;
  border: 1px solid var(--edge);
  border-radius: 8px;
  padding: .72rem .9rem;
}
.repeat-form button {
  justify-self: start;
}
.repeat-form .actions {
  margin-top: .3rem;
}
.modes {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.control-countdown {
  margin-top: .5rem;
  font-variant-numeric: tabular-nums;
}
