/* octoolo.com/account/ (tools/seo/account.mjs, assets/account.js). */

.acc {
  position: relative;
  padding: 40px 0 96px;
}
.acc [hidden] {
  display: none !important;
}
.acc-loading {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-3);
}
.acc-spin {
  width: 18px;
  height: 18px;
  border: 2.5px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: acc-spin 0.8s linear infinite;
}
@keyframes acc-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .acc-spin {
    animation-duration: 2.4s;
  }
}
.acc-note {
  padding: 16px 20px;
  border-radius: 14px;
  background: var(--sand);
}

/* ------------------------------------------------------------------ signing in */

.acc-auth {
  width: min(460px, 100%);
  margin: 0 auto;
  padding: 36px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-pop);
}
.acc-auth__title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.acc-auth__lede {
  margin: 0 0 24px;
  color: var(--ink-2);
  line-height: 1.5;
}
.acc-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 52px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: var(--white);
  color: var(--ink);
  font-size: 16px;
  font-weight: 650;
  text-decoration: none;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease);
}
.acc-google:hover {
  background: var(--sand);
  border-color: var(--field-line);
}
.acc-or {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 20px 0;
  color: var(--ink-4);
  font-size: 14px;
}
.acc-or::before,
.acc-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.acc-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.acc-label {
  font-size: 14px;
  font-weight: 650;
}
.acc-input {
  width: 100%;
  min-width: 0;
  height: 50px;
  padding: 0 16px;
  border: 1px solid var(--field-line);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}
.acc-input:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgb(13 13 13 / 0.07);
}
.acc-input::placeholder {
  color: var(--ink-4);
}
.acc-input--code {
  font-family: var(--font-mono);
  font-size: 22px;
  letter-spacing: 0.35em;
  text-align: center;
}
.acc-form .btn {
  margin-top: 6px;
}
.acc-fine {
  margin: 18px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-3);
}
.acc-fine a {
  color: inherit;
}
.acc-link {
  padding: 0;
  background: none;
  border: 0;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.acc-link:disabled {
  color: var(--ink-4);
  cursor: default;
  text-decoration: none;
}
.acc-alert {
  margin: 14px 0 0;
  padding: 11px 16px;
  border-radius: 14px;
  background: var(--danger-bg);
  color: var(--danger);
  font-size: 15px;
  line-height: 1.45;
}
.acc-auth > .acc-alert {
  margin: 0 0 18px;
}

/* ------------------------------------------------------------------ signed in */

.acc-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}
.acc-side {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.acc-me {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.acc-avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--c-pdf);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
}
.acc-me__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.acc-me__text strong {
  font-size: 16px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.acc-me__text span {
  font-size: 14px;
  color: var(--ink-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.acc-tabs {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.acc-tabs a,
.acc-signout {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--r-pill);
  background: none;
  color: var(--ink-2);
  font: inherit;
  font-size: 15.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.acc-tabs a:hover,
.acc-signout:hover {
  background: var(--sand);
  color: var(--ink);
}
.acc-tabs a.is-on {
  background: var(--ink);
  color: var(--white);
}
.acc-ico {
  flex: none;
}
.acc-signout {
  color: var(--ink-3);
}

.acc-main {
  min-width: 0;
}
.acc-pane {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.acc-pane__title {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.035em;
}
.acc-card {
  padding: 26px 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
}
.acc-card__title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.acc-muted {
  margin: 0;
  color: var(--ink-3);
  line-height: 1.5;
}
.acc-block {
  display: block;
  font-size: 14px;
}
.acc-kicker {
  margin: 0 0 2px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.acc-big {
  margin: 0;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.acc-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.acc-row--center {
  align-items: center;
}
.acc-row .acc-card__title {
  margin: 0;
}
.acc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.acc-btn-quiet {
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.acc-btn-danger {
  background: var(--danger);
  color: var(--white);
}
.acc-btn-danger:hover {
  background: #a51f16;
}
.acc .btn:disabled {
  opacity: 0.45;
  cursor: progress;
}
.acc-pill {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: var(--r-pill);
  background: var(--sand);
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 650;
  white-space: nowrap;
}
.acc-pill--ok {
  background: var(--ok-bg);
  color: var(--ok);
}
.acc-pill--bad {
  background: var(--danger-bg);
  color: var(--danger);
}
.acc-pill--warn {
  background: #fff3d6;
  color: #8a5a00;
}
.acc-facts {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 10px 28px;
  margin: 20px 0 0;
  font-size: 15.5px;
}
.acc-facts:empty {
  display: none;
}
.acc-facts dt {
  color: var(--ink-3);
}
.acc-facts dd {
  margin: 0;
  font-weight: 600;
}
.acc-confirm {
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--sand);
}
.acc-confirm p {
  margin: 0;
  line-height: 1.5;
}
.acc-confirm .acc-actions,
.acc-confirm .acc-inline {
  margin-top: 14px;
}

/* The plan card on the overview. */
.acc-plan {
  position: relative;
  overflow: hidden;
  padding-top: 30px;
}
.acc-plan::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: linear-gradient(90deg, var(--c-pdf), var(--c-office) 18%, var(--c-image) 34%, var(--c-video) 50%, var(--c-audio) 66%, var(--c-convert) 82%, var(--c-calc));
}
.acc-plan__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.acc-plan__text {
  margin: 10px 0 0;
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink-2);
}
.acc-progress {
  height: 8px;
  margin-top: 18px;
  border-radius: 8px;
  background: var(--sand-2);
  overflow: hidden;
}
.acc-progress span {
  display: block;
  height: 100%;
  border-radius: 8px;
  background: var(--ink);
}

.acc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.acc-tile {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.15s var(--ease), transform 0.15s var(--ease);
}
.acc-tile:hover {
  border-color: var(--field-line);
  transform: translateY(-1px);
}
.acc-tile__label {
  font-size: 13.5px;
  color: var(--ink-3);
}
.acc-tile__value {
  font-weight: 700;
  font-size: 16px;
  overflow-wrap: anywhere;
}
.acc-tile--ink {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}
.acc-tile--ink .acc-tile__label {
  color: rgb(255 255 255 / 0.7);
}

.acc-key {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding: 14px 14px 14px 20px;
  background: var(--sand);
  border-radius: 16px;
}
.acc-key code {
  flex: 1;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.06em;
  overflow-wrap: anywhere;
}
.acc-meter {
  height: 8px;
  margin: 14px 0 12px;
  border-radius: 8px;
  background: var(--sand-2);
  overflow: hidden;
}
.acc-meter span {
  display: block;
  height: 100%;
  background: var(--ink);
}
.acc-list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
.acc-list:empty {
  display: none;
}
.acc-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.acc-list li:first-child {
  border-top: 0;
}
.acc-list li > span:first-child {
  min-width: 0;
}
.acc-list svg {
  vertical-align: -3px;
}
.acc-item__name {
  font-weight: 650;
}
.acc-item__info {
  margin-top: 2px;
  font-size: 14px;
  color: var(--ink-3);
}
.acc-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.acc-inline .acc-input {
  flex: 1 1 240px;
  height: 44px;
}
.acc-inline .acc-input--code {
  flex: 0 1 180px;
  font-size: 18px;
}
.acc-danger summary {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: var(--danger);
  cursor: pointer;
}
.acc-danger[open] summary {
  margin-bottom: 10px;
}

.acc-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 50;
  max-width: calc(100% - 32px);
  padding: 13px 20px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: var(--white);
  font-weight: 600;
  box-shadow: var(--shadow-pop);
  transform: translateX(-50%);
}

@media (max-width: 900px) {
  .acc-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }
  .acc-side {
    position: static;
  }
  .acc-tabs {
    flex-direction: row;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .acc-tabs a {
    flex: none;
    border: 1px solid var(--line);
    background: var(--white);
  }
  .acc-signout {
    display: none;
  }
  .acc-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 640px) {
  .acc {
    padding-top: 24px;
  }
  .acc-auth {
    padding: 26px 20px;
  }
  .acc-card {
    padding: 22px 18px;
  }
  .acc-pane__title {
    font-size: 28px;
  }
  .acc-key {
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
  }
  .acc-key code {
    font-size: 14px;
    letter-spacing: 0;
    text-align: center;
  }
  .acc-actions .btn {
    flex: 1 1 100%;
  }
  .acc-facts {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
  .acc-facts dd {
    margin-bottom: 10px;
  }
}

/* One rhythm inside every card (after the rules above, so it wins): 16px between parts, 6px
   between a title and the line under it, more air above the buttons. */
.acc-card > * {
  margin-top: 0;
  margin-bottom: 0;
}
.acc-card > * + * {
  margin-top: 16px;
}
.acc-card > .acc-card__title + .acc-muted,
.acc-card > .acc-row:first-child + .acc-muted {
  margin-top: 6px;
}
.acc-card > .acc-plan__text {
  margin-top: 10px;
}
.acc-card > .acc-progress {
  margin-top: 18px;
}
.acc-card > .acc-actions {
  margin-top: 22px;
}
.acc-card > .acc-fine {
  margin-top: 18px;
}
.acc-danger > summary + * {
  margin-top: 12px;
}
.acc-inline .btn {
  height: 44px;
}
.acc-row > .acc-muted {
  margin: 0;
}
