:root {
  color: #111;
  background: #fff;
  font-family: Inter, Arial, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html, body { width: 100%; height: 100%; min-width: 320px; margin: 0; overflow: hidden; }

body {
  background: #fff;
  color: #111;
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }

.new-home {
  height: calc(100vh - var(--global-header-height));
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: clamp(76px, 10vh, 108px) clamp(24px, 1.85vw, 36px) 0;
}

.home-preview-welcome {
  flex: 0 0 auto;
  margin: 0 0 clamp(94px, 12vh, 132px);
}

.home-preview-welcome p,
.home-preview-welcome h1 {
  margin: 0;
  color: #111;
  font-size: clamp(22px, 1.55vw, 29px);
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: -0.025em;
}

.home-preview-welcome h1 { margin-top: 3px; }

.home-directory {
  width: 100%;
  min-height: 0;
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid #d9d9d9;
}

.directory-section {
  min-height: 0;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 34px 40px 36px;
  scrollbar-color: #c9c9c9 transparent;
  scrollbar-width: thin;
}

.directory-section::-webkit-scrollbar { width: 6px; }
.directory-section::-webkit-scrollbar-track { background: transparent; }
.directory-section::-webkit-scrollbar-thumb { border-radius: 10px; background: #c9c9c9; }

.directory-section + .directory-section { border-left: 1px solid #dedede; }

.directory-heading {
  min-height: 58px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border-bottom: 1px solid #dedede;
}

.directory-heading svg {
  width: 23px;
  height: 23px;
  flex: 0 0 auto;
  margin-top: 1px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.45;
}

.directory-company .directory-heading { color: #168fca; }
.directory-personal .directory-heading { color: #9c17be; }

.directory-heading h1 {
  margin: 0;
  color: #111;
  font-size: clamp(21px, 1.6vw, 25px);
  font-weight: 600;
  line-height: 25px;
  letter-spacing: -0.025em;
}

.directory-links { display: grid; }

.directory-links a {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 4px 0 0;
  border-bottom: 1px solid #e2e2e2;
  color: #171717;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
  transition: background-color 130ms ease, padding 130ms ease;
}

.directory-links a:hover,
.directory-links a:focus-visible {
  padding-left: 10px;
  outline: 0;
}

.directory-company .directory-links a:hover,
.directory-company .directory-links a:focus-visible { background: #eefaff; }

.directory-personal .directory-links a:hover,
.directory-personal .directory-links a:focus-visible { background: #f7f2fa; }

.row-arrow {
  color: #8b8b8b;
  font-size: 21px;
  font-weight: 400;
  transition: color 130ms ease, transform 130ms ease;
}

.directory-links a:hover .row-arrow,
.directory-links a:focus-visible .row-arrow {
  color: #111;
  transform: translateX(3px);
}

.directory-add {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  margin: 18px 0 0;
  padding: 0 0 1px;
  border: 1px solid #d7d7d7;
  border-radius: 50%;
  background: transparent;
  color: #696969;
  font-size: 19px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  transition: border-color 120ms ease, background-color 120ms ease, color 120ms ease;
}

.directory-add:hover,
.directory-add:focus-visible,
.directory-add[aria-expanded="true"] {
  border-color: #aaa;
  background: #f5f5f5;
  color: #111;
  outline: 0;
}

.home-preview-create-menu {
  position: fixed;
  z-index: 100;
  width: 196px;
  padding: 5px;
  border: 1px solid #dedede;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 30px rgb(0 0 0 / 11%);
}

.home-preview-create-menu button {
  width: 100%;
  min-height: 34px;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 7px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #222;
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

.home-preview-create-menu button:hover,
.home-preview-create-menu button:focus-visible { background: #f1f1f1; outline: 0; }

.home-preview-template-title {
  margin: 4px 8px 6px;
  color: #777;
  font-size: 12px;
  font-weight: 500;
}

#action-feedback {
  position: fixed;
  z-index: 90;
  right: 20px;
  bottom: 20px;
  padding: 8px 12px;
  border: 1px solid #dedede;
  border-radius: 8px;
  background: #fff;
  color: #333;
  font-size: 13px;
}

@media (max-width: 780px) {
  .new-home { padding: 48px 20px 0; }
  .home-preview-welcome { margin-bottom: 64px; }
  .home-directory { grid-template-columns: 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); }
  .directory-section { min-height: 0; padding: 28px 22px 30px; }
  .directory-section + .directory-section { border-top: 1px solid #dedede; border-left: 0; }
}

@media (max-width: 480px) {
  .new-home { padding-inline: 12px; }
  .home-preview-welcome { padding-inline: 2px; }
  .directory-section { padding-inline: 14px; }
  .directory-links a { min-height: 54px; font-size: 16px; }
}
