:root {
  --ink: #202b26;
  --muted: #7b837d;
  --green: #295e42;
  --lime: #d8edb4;
  --line: #e4e8df;
  --bg: #f7f8f4;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    14px/1.5 Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button {
  border: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
input,
textarea,
select {
  background: white;
  border: 1px solid #dce2d8;
  border-radius: 9px;
  padding: 12px;
  color: var(--ink);
  width: 100%;
}
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #93b57d;
  outline-offset: 1px;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #91b277;
  outline-offset: 3px;
}
label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin: 19px 0 0;
}
label input,
label textarea,
label select {
  display: block;
  margin-top: 7px;
}
h1,
h2,
p {
  margin-top: 0;
}
.muted {
  color: var(--muted);
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 700;
  color: #6f826b;
  margin-bottom: 12px;
}
.brand {
  display: inline-flex;
  align-items: center;
  font-size: 31px;
  letter-spacing: -1.7px;
  font-weight: 800;
  line-height: 1;
}
.brand span {
  font-weight: 400;
}
.brand i {
  font-size: 12px;
  color: #7eac55;
  align-self: flex-end;
  margin: 0 0 4px 5px;
}
.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: var(--green);
  color: white;
  padding: 13px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.primary:hover {
  background: #204b34;
}
.secondary {
  padding: 12px 17px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}
.text-button {
  background: transparent;
  color: #6a756b;
  font-size: 12px;
  padding: 6px 8px;
}
.text-button:hover {
  color: var(--green);
  background: #edf1e8;
  border-radius: 5px;
}
.icon-button {
  background: transparent;
  font-size: 23px;
  color: #71816b;
  line-height: 1;
  padding: 5px 8px;
  border-radius: 5px;
}
.icon-button:hover {
  background: #e8eddf;
}
.error {
  color: #a33730;
  font-size: 13px;
  min-height: 6px;
}
.login-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.login-story {
  padding: 50px 10%;
  background: #e9efdf;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}
.login-story h1 {
  font-size: clamp(50px, 5vw, 80px);
  line-height: 1.07;
  letter-spacing: -4px;
  font-weight: 500;
  margin-bottom: 25px;
}
.login-story > div {
  position: relative;
  padding: 65px 0;
}
.login-story > div > p:not(.eyebrow) {
  color: #6c7969;
  font-size: 17px;
  line-height: 1.8;
}
.login-story small {
  color: #77836f;
}
.orbit {
  position: relative;
  width: 200px;
  height: 160px;
  margin: 30px 0 0 65px;
  border: 1px solid #cedabb;
  border-radius: 50%;
  transform: rotate(-15deg);
}
.orbit span {
  display: grid;
  place-items: center;
  width: 80px;
  height: 80px;
  background: var(--green);
  color: #e7f0d8;
  border-radius: 22px;
  font-size: 57px;
  position: absolute;
  top: 40px;
  left: 60px;
  transform: rotate(15deg);
}
.orbit b {
  position: absolute;
  background: #f7faef;
  border: 1px solid #d2dec1;
  border-radius: 12px;
  padding: 6px 15px;
  font-size: 24px;
  font-weight: 400;
  transform: rotate(15deg);
}
.orbit b:nth-child(2) {
  right: -25px;
  top: 20px;
}
.orbit b:nth-child(3) {
  bottom: -10px;
  left: 15px;
}
.orbit b:nth-child(4) {
  left: -35px;
  top: 0;
}
.login-panel {
  display: grid;
  place-items: center;
  padding: 40px;
}
.login-panel form {
  width: 100%;
  max-width: 360px;
}
.login-panel h2 {
  font-size: 28px;
  letter-spacing: -1px;
  margin-bottom: 10px;
  font-weight: 600;
}
.login-panel .primary {
  width: 100%;
  justify-content: space-between;
  margin-top: 10px;
}
.lock-badge {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid #dce4d3;
  border-radius: 13px;
  color: var(--green);
  font-size: 32px;
  margin-bottom: 35px;
}
.login-note {
  font-size: 11px;
  color: #8a9387;
  text-align: center;
  margin-top: 25px;
}
.app-shell {
  display: grid;
  grid-template-columns: 242px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: #f0f3e9;
  border-right: 1px solid var(--line);
  padding: 38px 22px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.sidebar .brand {
  padding: 0 14px;
}
.workspace-label {
  font-size: 9px;
  color: #8d9685;
  letter-spacing: 1.5px;
  margin: 51px 14px 16px;
  font-weight: 700;
}
.nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  border-radius: 7px;
  background: transparent;
  padding: 12px 14px;
  color: #74806f;
  font-size: 13px;
}
.nav-item > span {
  font-size: 18px;
}
.nav-item b {
  margin-left: auto;
  font-size: 10px;
  font-weight: 500;
  background: #e7ecdf;
  padding: 1px 7px;
  border-radius: 4px;
}
.nav-item.active {
  background: #dfe8d3;
  color: #294a30;
  font-weight: 600;
}
.nav-item:hover {
  background: #e4ebd9;
}
.folder-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #89937f;
  font-size: 9px;
  letter-spacing: 1.4px;
  font-weight: 700;
  margin: 36px 5px 10px 14px;
}
.folder-row {
  display: flex;
  align-items: center;
}
.folder-row .nav-item {
  min-width: 0;
}
.folder-row .folder-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}
.folder-actions {
  display: flex;
}
.folder-actions button {
  font-size: 12px;
  padding: 5px;
  color: #89937f;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 40px 14px 0;
  font-size: 11px;
  color: #71836b;
}
.sidebar-bottom p {
  color: #98a08f;
  font-size: 10px;
  margin: 7px 0;
}
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #80a961;
  border-radius: 50%;
  margin-right: 6px;
}
.main-shell {
  min-width: 0;
}
.topbar {
  height: 84px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 0 48px;
  background: #fbfcf9;
}
.breadcrumb {
  font-size: 11px;
  color: #8b9389;
}
.breadcrumb > span {
  padding: 0 13px;
  color: #bdc3b7;
}
.breadcrumb strong {
  font-weight: 500;
  color: #485644;
}
.account {
  display: flex;
  gap: 20px;
  align-items: center;
  font-size: 12px;
}
.account > span {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
}
main {
  max-width: 1450px;
  margin: auto;
  padding: 46px 48px 0;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 33px;
}
.page-heading h1 {
  font-size: 37px;
  font-weight: 500;
  letter-spacing: -1.6px;
  line-height: 1.2;
  margin-bottom: 11px;
  overflow-wrap: anywhere;
}
.page-heading h1 span {
  color: #77a45e;
}
.page-heading .muted {
  font-size: 12px;
  margin-bottom: 0;
}
.overview {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.15fr;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  margin-bottom: 39px;
  overflow: hidden;
}
.overview > div {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 24px;
  border-right: 1px solid var(--line);
}
.stat-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  background: #f0f4e9;
  border-radius: 10px;
  color: #7c9568;
  font-size: 22px;
}
.overview p {
  margin: 0;
}
.overview b {
  display: block;
  font-size: 25px;
  line-height: 1.2;
  font-weight: 500;
}
.overview p span {
  font-size: 10px;
  color: #909788;
  display: block;
  margin-top: 5px;
}
.overview .overview-note {
  display: block;
  background: #eaf0de;
  border: 0;
  padding: 18px 23px;
}
.overview-note > span {
  font-size: 8px;
  letter-spacing: 1.1px;
  color: #859373;
}
.overview-note p {
  font-size: 17px;
  line-height: 1.4;
  color: #4c6140;
  margin-top: 7px;
}
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.search {
  margin: 0;
  position: relative;
  width: 350px;
  max-width: 60%;
}
.search > span {
  position: absolute;
  left: 13px;
  top: 7px;
  font-size: 25px;
  color: #8a9680;
}
.search input {
  margin: 0;
  padding: 12px 12px 12px 40px;
  font-size: 11px;
  background: #fff;
}
.sort {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  color: #8e9686;
  font-weight: 400;
}
.sort select {
  margin: 0;
  font-size: 11px;
  width: auto;
  min-width: 140px;
  padding: 11px;
}
.collection-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 23px 0 16px;
}
.collection-heading > span {
  font-size: 9px;
  letter-spacing: 1.3px;
  color: #8c9682;
}
.site-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.site-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 21px;
  display: flex;
  flex-direction: column;
  min-height: 224px;
  transition:
    border-color 0.15s,
    transform 0.15s;
}
.site-card:hover {
  border-color: #a5b792;
  transform: translateY(-2px);
}
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.site-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid #e1e9d8;
  border-radius: 11px;
  background: #f1f5eb;
  color: #557241;
  font-size: 18px;
  font-weight: 600;
}
.favorite-button {
  background: transparent;
  font-size: 23px;
  color: #bec6b4;
  padding: 0 5px;
}
.favorite-button.selected {
  color: #a28c39;
}
.site-card h2 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 4px;
  overflow-wrap: anywhere;
}
.site-domain {
  font-size: 10px;
  color: #9aa18f;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.site-description {
  font-size: 11px;
  line-height: 1.7;
  color: #859079;
  margin: 12px 0 20px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.card-bottom {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 5px;
  border-top: 1px solid #f0f2eb;
  padding-top: 14px;
}
.folder-tag {
  font-size: 9px;
  background: #f0f3e9;
  border-radius: 4px;
  color: #7a8b6a;
  padding: 3px 6px;
  max-width: 44%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.card-bottom a {
  margin-left: auto;
  color: #3b6240;
  font-size: 11px;
  font-weight: 600;
}
.card-bottom button {
  font-size: 12px;
  padding: 4px;
  color: #89917f;
  background: transparent;
}
.empty-state {
  text-align: center;
  padding: 65px 20px 85px;
  border: 1px dashed #d9e1cd;
  border-radius: 12px;
  background: #f9fbf5;
}
.empty-state > span {
  font-size: 32px;
  color: #769760;
}
.empty-state h2 {
  font-size: 20px;
  font-weight: 500;
  margin: 18px 0 8px;
}
.empty-state p {
  font-size: 12px;
  color: #8a947f;
  max-width: 340px;
  margin: 0 auto 25px;
}
footer {
  display: flex;
  justify-content: space-between;
  color: #a1a996;
  font-size: 9px;
  border-top: 1px solid var(--line);
  padding: 22px 0;
  margin-top: 55px;
}
dialog {
  padding: 27px;
  border: 1px solid var(--line);
  border-radius: 14px;
  width: min(480px, calc(100% - 32px));
  max-height: 90vh;
  overflow-y: auto;
  color: var(--ink);
  box-shadow: 0 20px 80px #182e2329;
}
dialog::backdrop {
  background: #14261c77;
  backdrop-filter: blur(3px);
}
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.dialog-heading h2 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.5px;
  margin: 0;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 25px;
}
.check-label {
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 400;
}
.check-label input {
  width: auto;
  margin: 0;
  accent-color: var(--green);
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  padding: 13px 22px;
  background: #244531;
  color: white;
  border-radius: 8px;
  box-shadow: 0 4px 20px #0002;
  z-index: 10;
  max-width: 90vw;
  text-align: center;
}
[hidden] {
  display: none !important;
}
@media (min-width: 1600px) {
  main {
    padding-top: 60px;
  }
  .site-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 1150px) {
  .app-shell {
    grid-template-columns: 210px 1fr;
  }
  .sidebar {
    padding: 32px 12px;
  }
  .topbar {
    padding: 0 28px;
  }
  main {
    padding: 32px 28px 0;
  }
  .site-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .overview > div {
    padding: 18px 14px;
    gap: 8px;
  }
  .overview {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .overview .overview-note {
    display: none;
  }
  .stat-icon {
    width: 30px;
    height: 30px;
  }
  .overview p span {
    font-size: 9px;
  }
}
@media (max-width: 760px) {
  .app-shell {
    display: block;
  }
  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    padding: 18px 20px;
    border-bottom: 1px solid var(--line);
    border-right: 0;
  }
  .sidebar .brand {
    padding: 0;
    font-size: 27px;
  }
  .workspace-label,
  .sidebar-bottom {
    display: none;
  }
  .sidebar > nav:first-of-type {
    display: flex;
    gap: 8px;
    margin-top: 20px;
  }
  .folder-heading {
    margin: 12px 0 4px;
  }
  #folder-list {
    display: flex;
    overflow-x: auto;
    gap: 6px;
  }
  .folder-row {
    flex-shrink: 0;
    max-width: 250px;
  }
  .nav-item {
    padding: 8px 12px;
  }
  .topbar {
    height: 58px;
    padding: 0 20px;
  }
  .account {
    gap: 8px;
  }
  .breadcrumb {
    font-size: 10px;
  }
  .breadcrumb > span {
    padding: 0 7px;
  }
  main {
    padding: 28px 20px 0;
  }
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 25px;
  }
  .page-heading h1 {
    font-size: 32px;
  }
  .page-heading > .primary {
    align-self: stretch;
  }
  .overview {
    margin-bottom: 25px;
  }
  .overview > div {
    padding: 16px 10px;
    display: block;
  }
  .stat-icon {
    display: none;
  }
  .overview b {
    font-size: 23px;
  }
  .overview p span {
    font-size: 9px;
  }
  .toolbar {
    gap: 10px;
    align-items: flex-end;
  }
  .search {
    max-width: 60%;
    width: 100%;
  }
  .sort {
    display: block;
    font-size: 9px;
  }
  .sort select {
    min-width: 110px;
    margin-top: 5px;
    padding: 10px 5px;
  }
  .site-grid {
    gap: 12px;
  }
  .site-card {
    padding: 16px;
  }
  .site-description {
    margin-bottom: 15px;
  }
  .card-bottom {
    flex-wrap: wrap;
  }
  .folder-tag {
    max-width: 75%;
  }
  .card-bottom a {
    margin-left: auto;
  }
  .login-layout {
    display: block;
  }
  .login-story {
    padding: 25px 30px;
  }
  .login-story > div {
    padding: 35px 0 10px;
  }
  .login-story h1 {
    font-size: 45px;
    letter-spacing: -2px;
  }
  .login-story > div > p:not(.eyebrow) {
    font-size: 14px;
  }
  .orbit,
  .login-story small {
    display: none;
  }
  .login-panel {
    padding: 35px 25px;
  }
  .lock-badge {
    display: none;
  }
  .login-panel h2 {
    font-size: 25px;
  }
}
@media (max-width: 420px) {
  .site-grid {
    grid-template-columns: 1fr;
  }
  .site-card {
    min-height: 205px;
  }
  .account > span {
    display: none;
  }
  .collection-heading .text-button {
    font-size: 10px;
    padding: 6px;
  }
  footer {
    font-size: 8px;
  }
}

.site-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 4px;
}
