:root {
  color-scheme: dark;
  font-family:
    -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR",
    sans-serif;
  color: #f1e7d5;
  background: #6f5b62;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: transparent;
}
button,
a {
  font: inherit;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  text-decoration: none;
}
.personal-scene {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background: #6f5b62;
}
.scene-ambient {
  position: absolute;
  inset: -55px;
  background: url("/personal-assets/sunset-desktop.webp") center/cover no-repeat;
  filter: blur(40px) brightness(0.78);
}
.personal-scene picture {
  position: absolute;
  inset: 0;
  display: block;
}
.personal-scene img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}
#personal-motion {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
#personal-motion[hidden],
[hidden] {
  display: none !important;
}
.personal-app {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  position: relative;
}
.personal-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 24px clamp(20px, 4vw, 72px) 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 650;
  white-space: nowrap;
  color: #fff;
  text-shadow: 0 2px 8px #121914e6;
}
.brand-logo {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(0, 0, 0, .58)) drop-shadow(0 2px 5px rgba(0, 0, 0, .42));
}
.brand-company {
  color: #fff;
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -.06em;
}
.brand-divider {
  color: #fff;
  font-size: 20px;
  font-weight: 400;
  opacity: .8;
}
.brand-service {
  color: #fff;
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -.04em;
}
.login {
  justify-self: end;
  font-size: 17px;
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 8px;
  text-shadow: 0 1px 6px #171b19;
}
.space-links {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.25vw, 18px);
  min-height: 44px;
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 2px 8px #121914e6;
}
.space-link,
.login {
  justify-self: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 2px;
  font: inherit;
  font-size: inherit;
  white-space: nowrap;
}
.space-link.current {
  color: #fff;
  text-shadow: 0 2px 8px #121914e6;
}
.space-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, 1fr);
  width: 96px;
  min-height: 28px;
  padding: 2px;
  border: 1px solid rgba(255, 255, 255, .75);
  border-radius: 999px;
  background: rgba(255, 255, 255, .62);
  box-shadow: 0 2px 10px rgba(24, 44, 37, .16), inset 0 1px rgba(255, 255, 255, .6);
}
.space-switch .space-link {
  justify-content: center;
  min-height: 24px;
  padding: 0 6px;
  border-radius: 999px;
  color: #315247;
  font-size: 11px;
  font-weight: 750;
  line-height: 1;
  text-shadow: none;
}
.space-switch .space-link.current {
  color: #fff;
  background: #355d50;
  box-shadow: 0 1px 4px rgba(16, 48, 36, .34);
  text-shadow: none;
}
.ai-system {
  font-size: 18px;
  font-weight: 700;
}
.space-icon {
  width: 18px;
  height: 18px;
  flex: none;
}
.mode-switch [aria-pressed="true"] {
  background: #596861ad;
  color: #fff4df;
}
.personal-stage {
  width: min(calc(100% - 48px), 1180px);
  margin-inline: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(36px, 6svh, 70px);
  padding-block: clamp(36px, 7svh, 86px);
}
.main-nodes {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}
.node {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 0;
  min-height: 72px;
  padding: 12px 10px;
  border: 1px solid #fff4e68f;
  border-radius: 16px;
  background: #c6b8ad26;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 18px;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: -0.035em;
  text-shadow:
    0 1px 5px #121b16d9,
    0 0 10px #18251c52;
  transition:
    background 0.2s,
    border-color 0.2s,
    box-shadow 0.2s;
}
.node span {
  min-width: 0;
  word-break: keep-all;
  overflow-wrap: normal;
}
.node-icon {
  flex: none;
  width: 29px;
  height: 29px;
}
.node.selected,
.node:focus-visible {
  color: #243c31;
  background: #f3ead2bf;
  border-color: #fff8e8cf;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-shadow: none;
  box-shadow:
    inset 0 1px 2px #ffffe8a8,
    0 6px 24px #251a1512;
}
.program-area {
  width: min(100%, 930px);
  margin-inline: auto;
}
.program-area h1 {
  font-size: 20px;
  font-weight: 500;
  margin: 0 0 24px;
  text-shadow: 0 1px 6px #18251cd4;
}
.program-area h1:after {
  content: "";
  display: block;
  width: 36px;
  height: 2px;
  background: #d5bd8e99;
  margin-top: 12px;
}
.program-nodes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  min-height: calc(var(--desktop-program-rows, 1) * 68px + (var(--desktop-program-rows, 1) - 1) * 14px);
  align-content: start;
  grid-auto-rows: minmax(68px, auto);
}
.program {
  justify-content: flex-start;
  min-height: 68px;
  font-size: 18px;
  padding: 12px 14px;
}
.personal-footer {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 clamp(20px, 4vw, 72px) max(18px, env(safe-area-inset-bottom));
}
.motion-control {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #fff8e8bd;
  border-radius: 12px;
  background: #f3ead2d9;
  color: #293c31;
  font-size: 13px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.common {
  margin-left: auto;
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 8px;
  font-size: 16px;
  text-shadow: 0 1px 6px #1b211e;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  transform: translateY(-160%);
  padding: 12px;
  background: #f2ead5;
  color: #243a30;
  z-index: 5;
}
.skip-link:focus {
  transform: none;
}
a:focus-visible,
button:focus-visible {
  outline: 2px solid #f0dbae;
  outline-offset: 4px;
}
dialog {
  width: min(90vw, 360px);
  border: 1px solid #fff4e68f;
  border-radius: 22px;
  background: #efe7dce8;
  color: #283a31;
  box-shadow: 0 18px 60px #171b1740;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 26px;
}
dialog::backdrop {
  background: #171d2038;
}
dialog h2 {
  font-size: 20px;
  margin: 0 0 16px;
}
dialog p {
  font-size: 15px;
  line-height: 1.6;
}
.dismiss {
  display: block;
  margin: 20px auto 0;
  min-width: 90px;
  min-height: 44px;
  background: #dce3d2;
  border: 1px solid #83978066;
  border-radius: 12px;
}
.noscript {
  padding: 16px;
  text-align: center;
  background: #f3ecd9e6;
  color: #253b31;
}
.noscript a {
  text-decoration: underline;
}
@media (hover: hover) and (pointer: fine) {
  .node:hover {
    border-color: #fff4e6a3;
    background: #e7dcc02e;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: inset 0 1px 2px #fff4;
  }
  .node.selected:hover {
    color: #243c31;
    background: #f3ead2d9;
    text-shadow: none;
  }
  .common:hover {
    border-radius: 12px;
    background: #e7dcc02e;
  }
}
@media (max-width: 1100px) {
  .main-nodes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .personal-stage {
    max-width: 940px;
    gap: 40px;
  }
  .program-nodes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: calc(var(--small-program-rows, 2) * 68px + (var(--small-program-rows, 2) - 1) * 14px);
  }
}
@media (max-width: 599px) {
  .personal-header {
    grid-template-columns: 1fr;
    padding: 16px 16px 0;
    gap: 14px;
  }
  .brand {
    font-size: 17px;
    gap: 7px;
  }
  .brand-logo {
    width: 29px;
    height: 29px;
    flex-basis: 29px;
  }
  .brand-company {
    font-size: 18px;
  }
  .brand-divider {
    font-size: 17px;
  }
  .brand-service {
    font-size: 16px;
  }
  .login {
    font-size: 16px;
  }
  .space-links {
    justify-self: start;
    gap: 8px;
    min-height: 44px;
    font-size: 16px;
  }
  .space-link,
  .login {
    min-height: 44px;
  }
  .space-icon {
    width: 17px;
    height: 17px;
  }
  .ai-system {
    font-size: 17px;
  }
  .space-switch {
    width: 88px;
  }
  .personal-stage {
    width: calc(100% - 28px);
    gap: 30px;
    padding-block: 32px;
  }
  .main-nodes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .node {
    justify-content: flex-start;
    min-height: 66px;
    padding: 10px 9px;
    gap: 9px;
    font-size: 16px;
  }
  .node-icon {
    width: 25px;
    height: 25px;
  }
  .program-area {
    width: calc(100% - 8px);
  }
  .program-area h1 {
    font-size: 18px;
    margin-bottom: 18px;
  }
  .program-nodes {
    gap: 8px;
    min-height: calc(var(--small-program-rows, 2) * 62px + (var(--small-program-rows, 2) - 1) * 8px);
    grid-auto-rows: minmax(62px, auto);
  }
  .program {
    min-height: 62px;
    font-size: 16px;
    padding-inline: 9px;
  }
  .personal-footer {
    padding-inline: 16px;
  }
  .common {
    font-size: 15px;
  }
}
@media (max-width: 900px) and (orientation: portrait) {
  .scene-ambient {
    background-image: url("/personal-assets/sunset-mobile.webp");
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
@media (prefers-reduced-transparency: reduce) {
  .mode-switch,
  .node.selected,
  dialog {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: #d7cdbedb;
  }
  .mode-switch {
    color: #273c31;
  }
}

/* The approved personal geometry is shared; rainy daylight changes only colour. */
body.corporate { color: #193c34; color-scheme: light; }
.corporate .personal-scene { background: #e1e7db; }
.corporate .brand, .corporate .login, .corporate .space-link { color: #fff; text-shadow: 0 2px 8px #121914e6; }
.corporate .program-area h1 { color: #193c34; text-shadow: 0 1px 5px #ffffffd9; }
.corporate .node { color: #193c34; border-color: #f9fff0bf; background: #f6f8ea45; text-shadow: 0 1px 5px #ffffff80; }
.corporate .node.selected { background: #eef1d9d9; border-color: #fffff2e8; text-shadow: none; }
.corporate .program-area h1::after { background: #496e5b80; }
.corporate .node:hover { background: #f2f5d7b3; border-color: #fffff2e8; }
