:root {
  --bg: #f7f8f5;
  --surface: #fff;
  --ink: #202b27;
  --muted: #758079;
  --line: #e1e6df;
  --accent: #265c4f;
  --soft: #edf3ed;
  --radius: 14px;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
html {
  height: 100%;
  overflow: hidden;
}
body {
  margin: 0;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font-size: 15px;
  line-height: 1.65;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
:focus-visible {
  outline: 3px solid #669983;
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
.muted,
.header-note {
  color: var(--muted);
}
.header {
  width: min(1120px, calc(100% - 64px));
  margin: 0 auto;
  height: 56px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.6px;
  color: var(--ink);
}
.brand:hover {
  text-decoration: none;
}
.brand-mark {
  display: grid;
  place-items: center;
  background: var(--accent);
  color: white;
  width: 33px;
  height: 33px;
  border-radius: 10px;
  font-size: 24px;
  line-height: 1;
}
.header nav {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.header nav a {
  color: var(--muted);
}
.header nav a,
.header .text-button {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 4px !important;
}
.header form {
  margin: 0;
}
.header-note {
  font-size: 12px;
}
.text-button {
  background: none !important;
  border: 0 !important;
  padding: 0 !important;
  color: var(--muted) !important;
  cursor: pointer;
  border-radius: 0 !important;
}
.text-button:hover {
  color: var(--accent) !important;
}
.home-shell {
  width: min(1120px, calc(100% - 64px));
  margin: 0 auto;
  padding-block: 16px;
  flex: 1;
  min-height: 0;
  display: flex;
  overflow: hidden;
}
.home-shell .page-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}
.home-shell .page-content > :not(.tool-results) {
  flex-shrink: 0;
}
.tool-results {
  flex: 1;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-gutter: stable;
  padding: 8px;
  scroll-padding-block: 8px;
}
h1 {
  font-size: 36px;
  line-height: 1.3;
  letter-spacing: -1.2px;
  font-weight: 650;
  margin: 0 0 14px;
}
h2 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}
.intro {
  color: var(--muted);
  margin: 0;
  line-height: 1.8;
}
.search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin: 0 0 12px;
}
.search:focus-within {
  border-color: #7ca391;
  box-shadow: 0 0 0 3px #265c4f0a;
}
.search svg {
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.6;
  flex-shrink: 0;
}
.search input {
  border: 0;
  background: none;
  outline: none;
  box-shadow: none;
  padding: 0;
  width: 100%;
  min-width: 0;
  font-size: 14px;
}
.search input:focus-visible {
  outline: none;
}
.search kbd {
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 12px;
  color: var(--muted);
  padding: 0 7px;
}
.search button {
  font-size: 12px;
  white-space: nowrap;
}
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.tool-card {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 18px;
  column-gap: 12px;
  row-gap: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  color: var(--ink);
  transition:
    border-color 0.15s,
    transform 0.15s,
    box-shadow 0.15s;
}
.tool-card:hover {
  text-decoration: none;
  border-color: #98b3a6;
  transform: translateY(-2px);
  box-shadow: 0 7px 18px #243f2e06;
}
.tool-icon {
  width: 32px;
  height: 32px;
  grid-row: 1 / span 2;
  align-self: start;
  border-radius: 8px;
  background: var(--soft);
  display: grid;
  place-items: center;
  color: var(--accent);
  font-size: 16px;
  font-weight: 600;
}
.tool-category {
  grid-column: 2;
  font-size: 11px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tool-copy {
  min-width: 0;
}
.arrow {
  grid-column: 3;
  grid-row: 1;
  align-self: start;
  color: #94a098;
  font-size: 20px;
}
.tool-card h2 {
  margin: 0 0 4px;
  font-size: 15px;
  overflow-wrap: anywhere;
}
.tool-card p {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.empty {
  text-align: left;
  border: 1px dashed #ccd7cc;
  border-radius: var(--radius);
  padding: 24px;
  background: #f2f5ef;
}
.empty h2 {
  margin: 12px 0;
}
.empty p {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 23px;
}
.button,
button[type="submit"] {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  background: var(--accent);
  color: white;
  border: 1px solid var(--accent);
  padding: 11px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  font-size: 14px;
}
.button:hover,
button[type="submit"]:hover {
  background: #1d4d41;
  text-decoration: none;
}
.button.secondary {
  color: var(--accent);
  background: white;
  border-color: var(--line);
  font-size: 12px;
}
.account-shell {
  width: min(440px, calc(100% - 48px));
  margin: 0 auto;
  padding-block: clamp(16px, 4dvh, 56px);
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scroll-padding-block: 16px;
}
.account-shell .page-content {
  flex-shrink: 0;
  margin-block: auto;
}
.account-shell h1 {
  font-size: 29px;
}
.account-shell h2 {
  margin-top: 28px;
}
.login-form {
  margin-top: 20px;
}
.field {
  margin-bottom: 20px;
}
label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 7px;
}
input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
textarea,
select {
  display: block;
  width: 100%;
  border: 1px solid #d7dfd6;
  border-radius: 8px;
  padding: 11px 13px;
  background: white;
  color: var(--ink);
}
.search #tool-search {
  border: 0;
  padding: 0;
  border-radius: 0;
}
input:disabled {
  color: var(--muted);
  background: #f0f3ed !important;
}
input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--accent);
}
.wide {
  width: 100%;
  justify-content: space-between !important;
}
.fine-print {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.9;
  margin-top: 25px;
}
.account-shell form > p {
  margin: 20px 0;
}
.account-shell form > div {
  margin-bottom: 20px;
}
.account-shell .helptext {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 7px;
}
.account-shell .helptext ul {
  padding-left: 18px;
}
.account-shell img {
  display: block;
  max-width: 240px;
  width: 100%;
  margin: 22px auto;
}
.errorlist {
  list-style: none;
  padding: 10px 13px;
  background: #fbefeb;
  color: #924d3b;
  border-radius: 8px;
  font-size: 13px;
}
.messages p {
  font-size: 13px;
  padding: 10px 14px;
  border: 1px solid #d4e2d5;
  background: #eef4ec;
  border-radius: 8px;
}
.account-links {
  margin-top: 32px;
  border-top: 1px solid var(--line);
}
.account-links > a,
.account-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
  font-size: 14px;
}
.status {
  font-size: 11px;
  background: #e7f0e6;
  padding: 3px 10px;
  border-radius: 20px;
  color: var(--accent);
}
.back-link {
  font-size: 13px;
  display: inline-block;
  margin-top: 24px;
}
.search-summary {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 12px;
}
.search-summary span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.search-summary a {
  flex-shrink: 0;
}
.empty-filter {
  text-align: center;
  color: var(--muted);
  padding: 40px;
}
.account-shell table {
  font-size: 12px;
  width: 100%;
  border-collapse: collapse;
  display: block;
  overflow: auto;
}
.account-shell th,
.account-shell td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.account-shell textarea {
  font-family: ui-monospace, monospace;
}
.sr-only,
.skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip:focus {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 10;
  background: white;
  padding: 10px;
}
@media (max-width: 760px) {
  h1 {
    font-size: 30px;
  }
  .header nav {
    gap: 8px;
  }
}
@media (max-width: 480px) {
  .header {
    width: calc(100% - 40px);
  }
  .home-shell {
    width: calc(100% - 40px);
  }
  .header nav {
    gap: 4px;
    font-size: 12px;
  }
  .brand {
    font-size: 16px;
  }
  .header-note {
    font-size: 11px;
  }
  .search {
    margin-bottom: 12px;
    padding: 10px 12px;
  }
  .search kbd {
    display: none;
  }
  .empty {
    padding-inline: 18px;
  }
}
@media (max-height: 700px) {
  .home-shell,
  .account-shell {
    padding-block: 16px;
  }
  h1,
  .account-shell h1 {
    font-size: 26px;
    margin-bottom: 8px;
  }
  .search {
    margin-bottom: 16px;
  }
  .login-form {
    margin-top: 20px;
  }
  .field,
  .account-shell form > div {
    margin-bottom: 14px;
  }
  .account-shell form > p {
    margin-block: 12px;
  }
  .fine-print {
    margin-top: 16px;
  }
  .account-shell img {
    max-width: 180px;
    margin-block: 12px;
  }
}
@media (max-height: 480px) {
  .home-shell,
  .account-shell {
    padding-block: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
  .tool-card:hover {
    transform: none;
  }
}
