/* [project]/components/PillarPage.css [app-client] (css) */
.pillar-safe {
  width: 100%;
  min-height: 100dvh;
  padding: clamp(8px, 3vw, 16px);
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  flex-direction: column;
  flex: 1;
  gap: 10px;
  min-height: 0;
  display: flex;
}

@media (max-height: 720px) {
  .pillar-safe {
    gap: 6px;
    padding: 8px 8px 10px;
  }
}

.pillar-header {
  font-family: var(--sans);
  font-size: var(--fs-xs);
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--mute);
  border-bottom: 1px solid var(--border-faint);
  justify-content: space-between;
  align-items: center;
  padding: 18px 4px 8px;
  display: flex;
}

.pillar-header .title {
  color: var(--ink);
  font-weight: 500;
}

.pillar-back {
  font-family: var(--sans);
  font-size: var(--fs-xxs);
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--mute);
  -webkit-tap-highlight-color: transparent;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  text-decoration: none;
  transition: color .15s;
  display: flex;
}

.pillar-back:active {
  color: var(--ox);
  transform: scale(.96);
}

.pillar-back-arrow {
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6px;
  width: 14px;
  height: 14px;
  display: inline-block;
}

.pillar-surface {
  background: linear-gradient(180deg, var(--ivory) 0%, color-mix(in srgb, var(--ivory) 90%, var(--paper)) 100%);
  border: 1px solid var(--border-faint);
  border-radius: 20px;
  flex-direction: column;
  flex: auto;
  gap: 14px;
  min-height: 0;
  padding: clamp(12px, 3.2vw, 16px);
  display: flex;
  position: relative;
  overflow: hidden;
}

.pillar-surface:before {
  content: "";
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(80% 50% at 50% 0, #ffffff80 0%, #0000 70%);
  height: 120px;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

.pillar-head {
  z-index: 1;
  align-items: flex-start;
  gap: 12px;
  display: flex;
  position: relative;
}

.pillar-icon {
  border: 1px solid var(--border-med);
  background: var(--ivory);
  width: 42px;
  height: 42px;
  color: var(--ox);
  border-radius: 13px;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  display: flex;
  box-shadow: 0 2px 8px #2a1f120f;
}

.pillar-icon svg {
  width: 22px;
  height: 22px;
}

.pillar-info {
  flex-direction: column;
  gap: 2px;
  display: flex;
}

.pillar-title {
  font-size: var(--fs-xl);
  font-weight: 500;
  line-height: 1.15;
}

.pillar-title em {
  color: var(--ox);
  font-style: italic;
  font-weight: 400;
}

.pillar-sub {
  font-size: var(--fs-md);
  color: var(--mute);
  font-style: italic;
}

.pillar-time {
  font-family: var(--sans);
  font-size: var(--fs-xs);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--rule);
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  display: flex;
}

.pillar-time:before {
  content: "";
  background: var(--ox);
  border-radius: 50%;
  width: 4px;
  height: 4px;
  animation: 3s ease-in-out infinite pulse-dot;
  display: inline-block;
}

@keyframes pulse-dot {
  0%, 100% {
    opacity: .4;
  }

  50% {
    opacity: 1;
  }
}

.pillar-tabs {
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  z-index: 1;
  gap: 6px;
  padding-bottom: 2px;
  display: flex;
  position: relative;
  overflow-x: auto;
}

.pillar-tabs::-webkit-scrollbar {
  display: none;
}

.cards-hint {
  z-index: 1;
  font-family: var(--sans);
  font-size: var(--fs-xxs);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--rule);
  position: relative;
}

.pillar-tab {
  white-space: nowrap;
  border: 1px solid var(--border-med);
  min-height: 36px;
  color: var(--mute);
  font-family: var(--sans);
  font-size: var(--fs-xxs);
  letter-spacing: .18em;
  text-transform: uppercase;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  background: none;
  border-radius: 999px;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  transition: all .2s;
  display: flex;
}

.pillar-tab:active {
  transform: scale(.96);
}

.pillar-tab.active {
  border-color: var(--ox);
  color: var(--ox);
  background: #6e1b1b0a;
}

.pillar-badge {
  border-radius: 999px;
  justify-content: center;
  align-items: center;
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  font-size: 7.5px;
  font-weight: 500;
  transition: all .2s;
  display: inline-flex;
}

.pillar-tab.active .pillar-badge {
  background: var(--ox);
  color: var(--ivory);
}

.pillar-tab:not(.active) .pillar-badge {
  background: var(--border-med);
  color: var(--mute);
}

.cards-scroll {
  scrollbar-width: thin;
  scrollbar-color: var(--border-med) transparent;
  z-index: 1;
  flex: none;
  min-height: 0;
  max-height: 0;
  padding: 0 2px 0 0;
  transition: max-height .35s cubic-bezier(.4, 0, .2, 1), padding .35s cubic-bezier(.4, 0, .2, 1);
  position: relative;
  overflow: hidden;
}

.pillar-surface.cards-open .cards-scroll {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  max-height: 35%;
  padding-right: 2px;
  overflow-y: auto;
}

.cards-scroll::-webkit-scrollbar {
  width: 3px;
}

.cards-scroll::-webkit-scrollbar-track {
  background: none;
}

.cards-scroll::-webkit-scrollbar-thumb {
  background: var(--border-med);
  border-radius: 3px;
}

.pillar-cards {
  flex-direction: column;
  gap: 8px;
  animation: .35s cardIn;
  display: none;
}

.pillar-cards.active {
  display: flex;
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.pillar-card {
  background: var(--ivory);
  border: 1px solid var(--border-faint);
  border-radius: 14px;
  padding: 10px 12px 10px 14px;
  transition: transform .12s, box-shadow .12s;
  position: relative;
  overflow: hidden;
}

.pillar-card:active {
  transform: scale(.985);
}

.pillar-card:before {
  content: "";
  border-radius: 3px 0 0 3px;
  width: 3px;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
}

.pillar-card[data-priority="action"]:before {
  background: var(--ox);
}

.pillar-card[data-priority="watch"]:before {
  background: var(--ox-light);
}

.pillar-card[data-priority="awareness"]:before {
  background: var(--rule);
}

.pillar-card[data-priority="calm"]:before {
  background: var(--border-med);
}

.pillar-card[data-priority="action"] {
  border-color: #6e1b1b1f;
}

.card-title {
  font-family: var(--sans);
  font-size: var(--fs-xxs);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 4px;
}

.card-body {
  font-size: var(--fs-md);
  margin-bottom: 6px;
  line-height: 1.45;
}

.card-tag {
  font-family: var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  background: none;
  border: none;
  border-radius: 999px;
  align-items: center;
  gap: 4px;
  padding: 3px 7px;
  font-size: 6.5px;
  display: inline-flex;
}

.card-tag.action {
  color: var(--ox);
  background: #6e1b1b14;
}

.card-tag.action:before {
  content: "◆";
  font-size: 5px;
}

.card-tag.watch {
  color: var(--ox-light);
  background: #8a2a2a14;
}

.card-tag.watch:before {
  content: "◇";
  font-size: 6px;
}

.card-tag.awareness {
  color: var(--rule);
  border: 1px solid var(--border-med);
  background: none;
}

.card-tag.calm {
  color: var(--mute);
}

.chat-section {
  border-top: 1px solid var(--border-faint);
  z-index: 1;
  flex-direction: column;
  flex: 1 1 0;
  min-height: 0;
  padding-top: 10px;
  transition: opacity .25s;
  display: flex;
  position: relative;
}

.chat-section.dimmed {
  opacity: .25;
  pointer-events: none;
}

.chat-status-row {
  font-family: var(--sans);
  font-size: var(--fs-xxs);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mute);
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  display: flex;
}

.chat-status {
  color: var(--mute);
}

.chat-status.warning {
  color: var(--ox);
}

.chat-status-meta {
  color: var(--rule);
  text-align: right;
}

.chat-archive-handle {
  width: 100%;
  color: var(--mute);
  cursor: pointer;
  z-index: 2;
  -webkit-tap-highlight-color: transparent;
  background: none;
  border: none;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  padding: 8px 0;
  transition: color .2s;
  display: flex;
  position: relative;
}

.chat-archive-handle:active {
  color: var(--ox);
}

.handle-label {
  font-family: var(--sans);
  font-size: var(--fs-xxs);
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 400;
  transition: color .2s, font-weight .2s;
}

.chat-archive-handle.open .handle-label {
  color: var(--ox);
  font-weight: 600;
}

.chat-archive-drawer {
  z-index: 1;
  flex-direction: column;
  flex-shrink: 0;
  gap: 6px;
  max-height: 0;
  padding: 0 2px;
  transition: max-height .35s cubic-bezier(.4, 0, .2, 1);
  display: flex;
  position: relative;
  overflow: hidden;
}

.chat-archive-drawer.open {
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--border-med) transparent;
  max-height: 220px;
  padding-bottom: 8px;
  overflow-y: auto;
}

.chat-archive-drawer::-webkit-scrollbar {
  width: 3px;
}

.chat-archive-drawer::-webkit-scrollbar-thumb {
  background: var(--border-med);
  border-radius: 3px;
}

.archive-empty {
  font-family: var(--sans);
  font-size: var(--fs-xxs);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mute);
  text-align: center;
  opacity: .5;
  padding: 16px 0;
}

.archive-new-chat {
  border: 1px dashed var(--border-med);
  width: 100%;
  color: var(--rule);
  font-family: var(--sans);
  font-size: var(--fs-xxs);
  letter-spacing: .16em;
  text-transform: uppercase;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  background: none;
  border-radius: 10px;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  gap: 7px;
  margin-bottom: 4px;
  padding: 10px 12px;
  transition: border-color .2s, color .2s, background .2s;
  display: flex;
}

.archive-new-chat:hover {
  border-color: var(--ox);
  color: var(--ox);
  background: #6e1b1b08;
}

.archive-new-chat:active {
  transform: scale(.98);
}

.new-chat-plus {
  width: 12px;
  height: 12px;
}

.archive-entry {
  border: 1px solid var(--border-faint);
  background: var(--ivory);
  cursor: pointer;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
  border-radius: 10px;
  flex-direction: column;
  gap: 3px;
  width: 100%;
  padding: 10px 12px;
  transition: border-color .2s, background .2s;
  display: flex;
}

.archive-entry:hover {
  border-color: var(--border-med);
}

.archive-entry:active {
  background: #00000008;
  transform: scale(.985);
}

.archive-date {
  font-family: var(--sans);
  font-size: var(--fs-xs);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--rule);
}

.archive-snippet {
  font-size: var(--fs-md);
  color: var(--ink);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.35;
  display: -webkit-box;
  overflow: hidden;
}

.chat-thread {
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--border-med) transparent;
  flex-direction: column;
  flex: 1 1 0;
  gap: 10px;
  min-height: 0;
  padding-right: 2px;
  display: flex;
  overflow-y: auto;
}

.chat-thread::-webkit-scrollbar {
  width: 2px;
}

.chat-thread::-webkit-scrollbar-thumb {
  background: var(--border-med);
  border-radius: 2px;
}

.msg {
  gap: 8px;
  max-width: 85%;
  animation: .3s msgIn;
  display: flex;
}

.msg.eva {
  align-self: flex-start;
}

.msg.user {
  flex-direction: row-reverse;
  align-self: flex-end;
}

@keyframes msgIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.msg-avatar {
  border: 1px solid var(--border-med);
  background: var(--ivory);
  width: 21px;
  height: 21px;
  color: var(--ox);
  border-radius: 50%;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  margin-top: 2px;
  display: flex;
}

.msg-avatar svg {
  width: 11px;
  height: 11px;
}

.msg-content {
  flex-direction: column;
  gap: 2px;
  display: flex;
}

.msg.user .msg-content {
  align-items: flex-end;
}

.msg-bubble {
  border-radius: 14px;
  padding: 9px 13px;
  font-size: clamp(13px, 3.2vw, 16px);
  line-height: 1.46;
}

.msg.eva .msg-bubble {
  background: var(--ivory);
  border: 1px solid var(--border-faint);
  color: var(--ink);
  border-top-left-radius: 4px;
}

.msg.eva .msg-bubble strong {
  color: var(--ox);
  font-weight: 700;
}

.msg.eva .msg-bubble em {
  font-style: italic;
}

.msg.eva .msg-bubble code {
  font-family: var(--mono);
  background: var(--kraft);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: .88em;
}

.msg.eva .msg-bubble ul, .msg.eva .msg-bubble ol {
  margin: 4px 0;
  padding-left: 20px;
}

.msg.eva .msg-bubble li {
  margin: 2px 0;
}

.msg.eva .msg-bubble br + br {
  margin-top: 6px;
  display: block;
}

.msg.user .msg-bubble {
  background: var(--ox);
  color: var(--ivory);
  border-top-right-radius: 4px;
}

.msg-time {
  font-family: var(--sans);
  font-size: var(--fs-xs);
  letter-spacing: .1em;
  color: var(--mute);
  opacity: .6;
  padding: 0 4px;
}

.typing {
  align-items: flex-start;
  gap: 6px;
  display: flex;
}

.typing-dots {
  background: var(--ivory);
  border: 1px solid var(--border-faint);
  border-radius: 4px 14px 14px;
  gap: 4px;
  padding: 9px 12px;
  display: flex;
}

.typing-dots span {
  background: var(--mute);
  border-radius: 50%;
  width: 5px;
  height: 5px;
  animation: 1.4s ease-in-out infinite bounce;
}

.typing-dots span:nth-child(2) {
  animation-delay: .2s;
}

.typing-dots span:nth-child(3) {
  animation-delay: .4s;
}

@keyframes bounce {
  0%, 60%, 100% {
    opacity: .35;
    transform: translateY(0);
  }

  30% {
    opacity: 1;
    transform: translateY(-4px);
  }
}

.chat-input-bar {
  background: var(--ivory);
  border: 1px solid var(--border-med);
  z-index: 1;
  border-radius: 999px;
  align-items: center;
  gap: 7px;
  padding: 5px 7px 5px 10px;
  transition: border-color .2s, box-shadow .2s;
  display: flex;
  position: relative;
}

.chat-input-bar:focus-within {
  border-color: var(--ox);
  box-shadow: 0 0 0 3px #6e1b1b12;
}

.chat-input-bar input {
  width: 100%;
  font-family: var(--serif);
  color: var(--ink);
  background: none;
  border: none;
  outline: none;
  min-width: 0;
  font-size: clamp(13px, 3.2vw, 16px);
}

.chat-input-bar input::placeholder {
  color: var(--mute);
  opacity: .5;
}

.chat-action-btn {
  border: 1px solid var(--border-faint);
  background: var(--ivory);
  width: 44px;
  height: 44px;
  color: var(--mute);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  border-radius: 50%;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  transition: all .2s;
  display: flex;
}

.chat-action-btn svg {
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8px;
  stroke-linecap: round;
  stroke-linejoin: round;
  width: 16px;
  height: 16px;
}

.chat-action-btn:active {
  transform: scale(.92);
}

.chat-action-btn:disabled {
  cursor: not-allowed;
  opacity: .45;
}

.chat-action-btn:disabled:active {
  transform: none;
}

.send-btn {
  background: var(--border-med);
  width: 44px;
  height: 44px;
  color: var(--mute);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  border: none;
  border-radius: 50%;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  transition: all .2s;
  display: flex;
}

.send-btn.active {
  background: var(--ox);
  color: var(--ivory);
  box-shadow: 0 2px 8px #6e1b1b33;
}

.send-btn:active {
  transform: scale(.88);
}

.send-btn svg {
  stroke: currentColor;
  fill: none;
  stroke-width: 2px;
  stroke-linecap: round;
  stroke-linejoin: round;
  width: 16px;
  height: 16px;
}

.send-btn:not(.active) {
  cursor: default;
}

@media (max-width: 420px) {
  .pillar-safe {
    padding: 10px 10px 14px;
  }

  .pillar-icon {
    border-radius: 12px;
    width: 40px;
    height: 40px;
  }

  .pillar-icon svg {
    width: 20px;
    height: 20px;
  }

  .chat-status-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .chat-status-meta {
    text-align: left;
  }
}

.chat-action-btn.recording {
  background: var(--ox);
  color: var(--ivory);
  border-color: var(--ox);
  animation: 1.2s ease-in-out infinite pulse-record;
}

@keyframes pulse-record {
  0%, 100% {
    box-shadow: 0 0 #6e1b1b4d;
  }

  50% {
    box-shadow: 0 0 0 6px #6e1b1b00;
  }
}

.chat-action-btn.recording svg {
  fill: var(--ivory);
}

.spin {
  animation: 1s linear infinite spin;
}

@keyframes spin {
  from {
    transform: rotate(0);
  }

  to {
    transform: rotate(360deg);
  }
}

/*# sourceMappingURL=components_PillarPage_15tw2aw.css.map*/