/* Spatial glass: physical-looking surfaces, functional HTML controls. */
.ai-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.ai-waiting { color: #ddd; padding: 18px 0; font-size: 13px; }
.bubble.assistant > .row { margin-top: 16px; }
.topbar > .top-actions { display: flex; }
:root {
  --glass-fill: linear-gradient(
    125deg,
    rgba(238, 238, 238, 0.28),
    rgba(149, 149, 149, 0.14) 48%,
    rgba(229, 229, 229, 0.22)
  );
  --glass-line: rgba(248, 248, 248, 0.42);
  --glass-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.48),
    inset -1px -1px 0 rgba(255, 255, 255, 0.12),
    0 20px 50px rgba(27, 27, 27, 0.18);
  --glass-blur: blur(24px) saturate(115%);
}
body {
  background: #090909;
  color: #fff;
}
.ambient {
  background: #001f33;
}
.ambient video {
  opacity: 1;
  filter: none;
  transition: opacity 0.45s;
}
.ambient:after {
  background: linear-gradient(0deg, #0009, #0004 60%, #0005);
}
.workspace {
  height: 100dvh;
  min-height: 0;
}
.sidebar {
  position: fixed;
  inset: auto auto calc(18px + env(safe-area-inset-bottom)) 50%;
  transform: translateX(-50%);
  padding: 0;
  width: auto;
  height: auto;
  display: block;
  background: none;
  border: 0;
  z-index: 10;
  backdrop-filter: none;
}
.sidebar > .brand,
.sidebar > .new-chat,
.sidebar > .sidebar-extra,
.sidebar > .profile {
  display: none;
}
.sidebar nav {
  display: flex;
  gap: 18px;
  padding: 0;
  justify-content: center;
}
.nav-item {
  isolation: isolate;
  position: relative;
  width: 76px;
  height: 76px;
  flex: none;
  padding: 12px 0 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.58);
  background:
    radial-gradient(ellipse at 28% 17%, #ffffff5e, transparent 52%),
    linear-gradient(145deg, #fff3, #ffffff0b 65%, #ffffff30);
  box-shadow:
    inset 0 2px 3px #ffffff73,
    inset 0 -5px 10px #ffffff16,
    0 12px 24px #0003;
  backdrop-filter: blur(20px) saturate(135%);
  -webkit-backdrop-filter: blur(20px) saturate(135%);
  color: #fff;
  font-size: 11px;
  transition:
    transform 0.22s,
    background 0.22s;
  overflow: hidden;
  text-shadow: 0 1px 6px #0005;
}
.nav-item:before {
  content: "";
  position: absolute;
  top: 6px;
  left: 18%;
  right: 18%;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(#ffffff3d, transparent);
  pointer-events: none;
}
.nav-item svg {
  width: 22px;
  height: 22px;
}
.nav-item span:last-child {
  display: none;
}
.nav-item:hover {
  transform: translateY(-5px);
  background: linear-gradient(145deg, #ffffff60, #fff1);
}
.nav-item.selected {
  color: #2b2b2b;
  text-shadow: none;
  border-color: #fff9;
  background:
    radial-gradient(ellipse at 28% 17%, #fffc, transparent 65%),
    linear-gradient(145deg, #ffffffba, #ffffff5c);
  box-shadow:
    inset 0 2px 4px #fff,
    0 12px 28px #0003,
    0 0 20px #ffffff24;
}
.main {
  width: 100%;
  padding: 0 0 112px;
}
.topbar {
  width: calc(100% - 96px);
  max-width: 1400px;
  align-self: center;
  margin: 0;
  padding: 25px 0 20px;
  border-bottom: 1px solid #ffffff27;
  gap: 20px;
}
.top-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 17px;
  letter-spacing: 0.8px;
}
.top-brand small {
  display: block;
  font-size: 8px;
  letter-spacing: 1.8px;
  color: #e4e4e4;
  margin-top: 3px;
}
.top-brand .mark {
  background: var(--glass-fill);
  border: 1px solid #fff6;
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(15px);
  color: #fff;
  width: 42px;
  height: 42px;
}
.topbar > div:not(.top-actions) {
  margin-left: auto;
  display: block;
  text-align: right;
}
.topbar #breadcrumb {
  color: #ebebeb;
  font-size: 9px;
}
.topbar .mode {
  display: block;
  color: #dbdbdb;
  font-size: 9px;
  margin-top: 4px;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.top-actions button {
  font-size: 11px;
  background: var(--glass-fill);
  border-color: var(--glass-line);
  backdrop-filter: var(--glass-blur);
  box-shadow: inset 0 1px 1px #fff5;
}
.page {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 40px 28px;
  scrollbar-color: #ffffff60 transparent;
}
.chat-page {
  max-width: 850px;
}
.chat-scroll {
  padding: 0 10px 12px;
}
.intro {
  padding: 2.5vh 0 15px;
  text-shadow: 0 2px 25px #0005;
}
.intro .orbit {
  background: var(--glass-fill);
  border-color: var(--glass-line);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
  width: 58px;
  height: 58px;
  margin-bottom: 16px;
}
.intro .orbit .secretary-spark {
  display: block;
  width: 30px;
  height: 30px;
  color: #f3faff;
  filter: drop-shadow(0 0 7px #c4eaff55);
}
.intro .pixel {
  color: white;
}
.intro p {
  color: #e0e0e0;
}
.suggestions {
  margin: 16px 0 22px;
}
.suggestion,
.composer,
.action-card,
.panel,
.memory-card,
.profile-hero,
.calendar-scroll,
.monthgrid,
.timeline {
  background: var(--glass-fill);
  border: 1px solid var(--glass-line);
  box-shadow: var(--glass-shadow);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: 26px;
}
.suggestion {
  min-height: 113px;
  position: relative;
}
.suggestion:hover {
  background: linear-gradient(135deg, #ffffff52, #fff2);
  transform: translateY(-3px);
}
.suggestion small,
.suggestion svg {
  color: #e7e7e7;
}
.suggestion strong {
  font-size: 13px;
}
.suggestion small {
  font-size: 11px;
}
.composer {
  border-radius: 27px;
  padding: 18px 22px 14px;
}
.composer textarea {
  color: white;
}
.composer textarea::placeholder {
  color: #ececec;
}
.composer-controls button:not(.send) {
  background: #ffffff12;
  border-color: #ffffff42;
  color: #fff;
}
.composer-foot {
  color: #dfdfdf;
  text-shadow: 0 1px 4px #0009;
}
.composer .attachment {
  color: white;
}
.today-strip {
  color: #dcdcdc;
  border-color: #ffffff39;
}
.today-strip strong {
  color: #fff;
}
.today-strip button {
  background: #ffffff17;
  border-color: #ffffff42;
}
.bubble.user {
  background: linear-gradient(135deg, #ffffff40, #ffffff1a);
  backdrop-filter: blur(20px);
  border: 1px solid #ffffff4a;
  box-shadow: inset 0 1px 0 #ffffff60;
  color: white;
}
.bubble.assistant {
  color: #fff;
  text-shadow: 0 1px 10px #0009;
}
.assistant-head,
.assistant-head small {
  color: #e7e7e7;
}
.action-card {
  text-shadow: none;
  background: linear-gradient(125deg, #5b5b5b90, #4e4e4e6e);
}
.action-card p,
.action-card small {
  color: #e9e9e9;
}
.action-card button {
  border-color: #ffffff52;
  background: #ffffff14;
}
.action-card button.primary {
  background: #efefef;
  color: #2c2c2c;
}
.section-head {
  margin: 12px 0 27px;
}
.section-head h1 {
  font-size: 36px;
  font-weight: 400;
  letter-spacing: -1px;
  text-shadow: 0 2px 14px #28282830;
}
.section-head p,
.micro {
  color: #e5e5e5;
}
.section-head > button {
  box-shadow: 0 10px 25px #29292920;
}
.tabs {
  background: var(--glass-fill);
  backdrop-filter: var(--glass-blur);
  box-shadow:
    inset 0 1px 0 #fff7,
    0 8px 22px #28282818;
  border: 1px solid var(--glass-line);
  padding: 5px;
  margin-bottom: 30px;
}
.tabs button {
  color: #fff;
}
.tabs button.active {
  background: linear-gradient(135deg, #fffc, #ffffff8c);
  box-shadow:
    0 3px 8px #2a2a2a20,
    inset 0 1px 0 white;
  color: #2f2f2f;
}
.date-heading {
  border-color: #ffffff48;
  margin-bottom: 18px;
}
.date-heading small,
.event-time small {
  color: #e3e3e3;
}
.date-heading h2 > span {
  color: #d8d8d8 !important;
}
.badge {
  color: #f3f3f3;
  background: #4b4b4b1a;
  border-color: #ffffff4f;
}
.timeline {
  padding: 0 25px;
  overflow: hidden;
  background: linear-gradient(130deg, #c5c5c54d, #51515133);
}
.event {
  padding: 25px 0;
  border-color: #ffffff35;
}
.event:last-child {
  border-bottom: 0;
}
.event-details {
  border-color: #e5e5e5;
}
.event-details p,
.event-details button {
  color: #e9e9e9;
}
.event-details h3 {
  font-size: 16px;
}
.event-actions button {
  background: #ffffff15;
  border-color: #fff5;
  backdrop-filter: blur(12px);
}
.event-time {
  font-size: 23px;
}
.weekgrid {
  background: #fff2;
  border: 0;
}
.day {
  background: #8080804a;
  min-height: 350px;
}
.day > small {
  color: #fff;
}
.mini-event {
  background: linear-gradient(135deg, #fff5, #ffffff20);
  border-color: #ffffff70;
  box-shadow: inset 0 1px 0 #ffffff75;
  color: white;
}
.mini-event small {
  color: #e7e7e7;
}
.monthgrid {
  overflow: hidden;
  border-color: #fff5;
}
.monthgrid > button {
  border-color: #fff4;
  background: #ffffff09;
  color: #fff;
}
.monthgrid > button:hover {
  background: #fff3;
}
.monthgrid small {
  color: white;
}
.panel,
.memory-card {
  padding: 30px;
  background: linear-gradient(125deg, #93939375, #60606045);
}
.panel p,
.memory-card p,
.panel small,
.setting p {
  color: #e9e9e9;
}
.panel h2 {
  font-weight: 400;
}
.memory-grid {
  gap: 28px;
  align-items: start;
}
.memory-card {
  min-height: 260px;
  padding: 34px;
  position: relative;
}
.memory-card:nth-child(2) {
  margin-top: 45px;
}
.memory-card .micro {
  color: #dadada;
  margin-bottom: 34px;
}
.memory-card h3 {
  font-size: 23px;
  font-weight: 400;
}
.memory-card button,
.panel button:not(.primary),
.setting button {
  background: #ffffff15;
  border-color: #ffffff65;
  color: white;
}
.memory-card p {
  line-height: 1.9;
}
.profile-hero {
  padding: 28px 32px;
  max-width: 520px;
  background: linear-gradient(130deg, #fff4, #ffffff17);
  margin: 0 0 28px;
}
.profile-hero p {
  color: #e7e7e7;
}
.profile-hero .avatar {
  background: radial-gradient(at 25% 15%, #fff7, #fff1);
  border-color: #fff8;
  box-shadow:
    inset 0 1px 3px #fff8,
    0 10px 18px #0001;
}
.setting {
  border-color: #ffffff35;
}
.setting:last-child {
  border-bottom: 0;
}
.empty {
  color: #f0f0f0;
}
body:not([data-page="chat"]) .page > .row > button {
  background: #ffffff25;
  border-color: #fff7;
  backdrop-filter: blur(18px);
}
dialog {
  background: linear-gradient(130deg, #767676d9, #3d3d3dcf);
  border: 1px solid #fff7;
  box-shadow:
    inset 1px 1px 0 #fff8,
    0 30px 90px #17171766;
  backdrop-filter: blur(36px) saturate(110%);
  -webkit-backdrop-filter: blur(36px) saturate(110%);
  border-radius: 32px;
}
dialog::backdrop {
  background: #1c1c1c42;
  backdrop-filter: blur(8px);
}
dialog label.field,
dialog small,
dialog .map-warning {
  color: #e7e7e7;
}
dialog input,
dialog select {
  background: #ffffff24;
  border-color: #fff6;
  color: #fff;
  box-shadow: inset 0 1px 2px #fff2;
}
dialog input::placeholder {
  color: #d8d8d8;
}
.map-schematic {
  background-color: #bababa40;
  border: 1px solid #fff5;
}
.map-schematic svg {
  opacity: 0.75;
}
.map-caption {
  color: white;
}
.place-list button {
  border-color: #fff5;
}
.place-list small {
  color: #d8d8d8;
}
#toast {
  bottom: 112px;
  background: #fffa;
  backdrop-filter: blur(20px);
  color: #2c2c2c;
  border: 1px solid #fffc;
  box-shadow: 0 12px 25px #22222225;
}
@media (min-width: 721px) {
  body:not([data-page="chat"]) .main .page {
    padding-top: 44px;
  }
  body[data-page="memory"] .section-head {
    margin-bottom: 42px;
  }
}
@media (max-width: 720px) {
  .sidebar {
    bottom: calc(10px + env(safe-area-inset-bottom));
    left: 50%;
    right: auto;
    height: auto;
    border: 0;
    padding: 0;
    background: none;
    backdrop-filter: none;
    width: auto;
  }
  .sidebar nav {
    gap: 16px;
  }
  .nav-item {
    width: 61px;
    height: 61px;
    padding: 10px 0 8px;
    font-size: 10px;
    gap: 3px;
  }
  .nav-item svg {
    width: 19px;
    height: 19px;
  }
  .main {
    padding-bottom: calc(88px + env(safe-area-inset-bottom));
  }
  .topbar {
    width: calc(100% - 36px);
    padding: 16px 0 12px;
    gap: 10px;
  }
  .top-brand {
    font-size: 14px;
    gap: 8px;
  }
  .top-brand .mark {
    width: 32px;
    height: 32px;
    font-size: 22px;
  }
  .top-brand small {
    font-size: 6px;
    letter-spacing: 1px;
  }
  .topbar > div:not(.top-actions) {
    display: none;
  }
  .top-actions {
    margin-left: auto;
    gap: 7px;
  }
  .top-actions button {
    font-size: 10px;
    padding: 8px 12px;
  }
  .top-actions .icon-button {
    padding: 0;
    width: 32px;
    height: 32px;
  }
  .page {
    padding: 18px 18px 15px;
  }
  .intro {
    padding: 10px 0;
  }
  .intro .orbit {
    width: 42px;
    height: 42px;
    font-size: 24px;
    margin-bottom: 13px;
  }
  .intro .pixel {
    font-size: 33px;
    letter-spacing: -1px;
  }
  .intro h1 {
    font-size: 22px;
  }
  .intro p {
    font-size: 11px;
    line-height: 1.8;
  }
  .suggestions {
    gap: 8px;
    margin: 13px 0;
  }
  .suggestion {
    border-radius: 18px;
    padding: 13px 10px;
    min-height: 112px;
  }
  .suggestion strong {
    font-size: 10px;
  }
  .suggestion small {
    font-size: 9px;
  }
  .composer {
    padding: 13px 15px 11px;
    border-radius: 24px;
  }
  .composer textarea {
    font-size: 12px;
    min-height: 43px;
    height: 43px;
  }
  .composer-foot {
    font-size: 8px;
  }
  .chat-scroll {
    padding: 0 0 9px;
  }
  .today-strip {
    font-size: 9px;
  }
  .section-head h1 {
    font-size: 29px;
  }
  .section-head {
    margin: 8px 0 23px;
  }
  .section-head p {
    font-size: 11px;
  }
  .tabs {
    margin-bottom: 21px;
  }
  .tabs button {
    font-size: 11px;
    padding: 8px 11px;
  }
  .timeline {
    padding: 0 17px;
    border-radius: 23px;
  }
  .event {
    padding: 21px 0;
  }
  .event-details h3 {
    font-size: 13px;
  }
  .event-time {
    font-size: 18px;
  }
  .event-time small {
    font-size: 9px;
  }
  .event-actions {
    gap: 7px;
  }
  .event-actions button {
    font-size: 10px;
    padding: 7px 12px;
  }
  .memory-grid {
    gap: 17px;
  }
  .memory-card {
    min-height: 220px;
    padding: 26px;
    border-radius: 26px;
  }
  .memory-card:nth-child(2) {
    margin: 0;
  }
  .memory-card .micro {
    margin-bottom: 23px;
  }
  .memory-card h3 {
    font-size: 21px;
  }
  .panel {
    padding: 23px;
  }
  .profile-hero {
    padding: 24px;
    border-radius: 25px;
  }
  .profile-hero .avatar {
    width: 54px;
    height: 54px;
  }
  .setting {
    padding: 18px 0;
  }
  .setting p {
    line-height: 1.7;
  }
  dialog {
    padding: 23px;
    border-radius: 28px;
  }
  #toast {
    bottom: 95px;
  }
  .monthgrid > button {
    height: 82px;
  }
  .date-heading h2 {
    font-size: 17px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ambient video {
    display: block;
  }
  .nav-item,
  .suggestion,
  .ambient video {
    transition: none !important;
  }
  .nav-item:hover,
  .suggestion:hover {
    transform: none;
  }
}
@supports not (
  (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))
) {
  .suggestion,
  .composer,
  .action-card,
  .panel,
  .memory-card,
  .profile-hero,
  .calendar-scroll,
  .monthgrid,
  .timeline,
  dialog {
    background: #5c5c5cf2;
  }
  .nav-item {
    background: #6b6b6b;
  }
  .nav-item.selected {
    background: #e3e3e3;
  }
}
@media (prefers-reduced-transparency: reduce) {
  .suggestion,
  .composer,
  .action-card,
  .panel,
  .memory-card,
  .profile-hero,
  .calendar-scroll,
  .monthgrid,
  .timeline,
  dialog {
    background: #575757;
  }
  .nav-item {
    background: #6b6b6b;
  }
  .nav-item.selected {
    background: #e3e3e3;
  }
}

.schedule-conflict{background:rgba(190,72,80,.13)!important;border-color:rgba(242,132,140,.45)!important;box-shadow:inset 3px 0 rgba(235,125,132,.65)}
.conflict-note{display:block;color:#f0abb0;margin-bottom:7px}
