@charset "UTF-8";
:root {
  font-family:
    -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic",
    sans-serif;
  color: #c4c4c4;
  background: #1f1f1f;
  font-size: 15px;
  --green: #b8b8b8;
  --line: #313131;
  --muted: #838383;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #202020;
  color: inherit;
  padding: 11px 17px;
}
button:hover {
  background: #272727;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
button.primary {
  background: var(--green);
  border-color: var(--green);
  color: #ededed;
}
button.primary:hover {
  background: #c5c5c5;
}
input,
textarea,
select {
  border: 1px solid #383838;
  border-radius: 8px;
  padding: 12px;
  background: #181818;
  color: #c4c4c4;
  max-width: 100%;
}
textarea {
  resize: vertical;
  line-height: 1.7;
}
input:focus,
textarea:focus,
button:focus-visible {
  outline: 2px solid #7c7c7c;
  outline-offset: 3px;
}
label {
  display: grid;
  gap: 9px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}
h1,
h2,
p {
  margin-top: 0;
}
h1 {
  font-size: 32px;
  font-weight: 650;
  letter-spacing: -1.4px;
}
h2 {
  font-size: 19px;
  letter-spacing: -0.5px;
}
p {
  line-height: 1.75;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 1.8px;
  font-weight: 600;
  color: #8a8a8a;
}
.muted,
small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
.brand {
  font-size: 37px;
  font-weight: 750;
  letter-spacing: -2px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.brand span {
  font-size: 8px;
  letter-spacing: 1.6px;
  line-height: 1.8;
  width: 80px;
  font-weight: 600;
}
.login {
  min-height: 100vh;
  padding: 45px 6%;
  background:
    radial-gradient(ellipse at 75% 40%, #2f2f2f, transparent 55%), #1f1f1f;
}
.login-card {
  max-width: 410px;
  margin: 8vh auto;
}
.login h1 {
  font-size: 50px;
  line-height: 1.3;
  margin-bottom: 22px;
}
.login form {
  margin: 35px 0 12px;
}
.login .primary {
  width: 100%;
}
.login footer {
  font-size: 9px;
  letter-spacing: 3px;
  color: #717171;
  text-align: center;
}
.workspace {
  display: grid;
  grid-template-columns: 236px 1fr;
  min-height: 100vh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid var(--line);
  padding: 33px 23px;
  background: #252525;
  display: flex;
  flex-direction: column;
}
.nav-label {
  font-size: 10px;
  color: #6c6c6c;
  letter-spacing: 1px;
  margin: 55px 12px 15px;
}
nav {
  display: grid;
  gap: 8px;
}
nav button {
  display: flex;
  gap: 14px;
  align-items: center;
  border: 0;
  background: none;
  text-align: left;
  color: #868686;
  padding: 14px;
}
nav button.active {
  background: #323232;
  color: #bbbbbb;
  font-weight: 650;
}
nav b {
  margin-left: auto;
  background: #b8b8b8;
  color: #ededed;
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 11px;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 20px 10px 0;
  font-size: 13px;
}
.sidebar-bottom small {
  display: block;
  margin: 10px 0 24px;
}
.sidebar-bottom button {
  background: none;
  border: 0;
  font-size: 12px;
  padding: 0;
  color: #777777;
}
.status-dot,
.sync i {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #818181;
  margin-right: 7px;
}
main {
  padding: 44px clamp(24px, 4.5vw, 80px);
  max-width: 1440px;
  width: 100%;
}
header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
header h1 {
  margin: 8px 0 9px;
}
header p {
  color: #838383;
  font-size: 13px;
  margin-bottom: 0;
}
.sync {
  font-size: 11px;
  white-space: nowrap;
  color: #828282;
  padding-top: 6px;
}
.connection-note {
  font-size: 12px;
  color: #858585;
  background: #292929;
  border: 1px solid #323232;
  padding: 13px 17px;
  border-radius: 8px;
  line-height: 1.7;
  margin-bottom: 31px;
}
.connection-note span {
  font-weight: 700;
  color: #8e8e8e;
  margin-right: 10px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 38px;
}
.metrics > div {
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #181818;
}
.metrics span {
  font-size: 12px;
  color: #808080;
  display: block;
}
.metrics strong {
  display: block;
  font-size: 35px;
  font-weight: 500;
  margin-top: 16px;
}
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.section-title h2 {
  margin: 0;
}
.section-title select {
  padding: 8px 12px;
  font-size: 12px;
}
.section-title span {
  font-size: 12px;
  color: var(--muted);
}
.task-card {
  width: 100%;
  display: block;
  text-align: left;
  background: #202020;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 23px 26px;
  margin-bottom: 12px;
}
.task-card:hover {
  border-color: #626262;
  background: #202020;
  transform: translateY(-1px);
}
.task-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.avatar {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  background: #272727;
  border-radius: 10px;
  font-size: 14px;
}
.task-top strong {
  font-size: 14px;
}
.tag {
  font-size: 10px;
  letter-spacing: 0.4px;
  padding: 4px 8px;
  border-radius: 5px;
  background: #252525;
  color: #919191;
  margin-left: auto;
}
.task-card p {
  font-size: 14px;
  margin: 0 0 13px;
  line-height: 1.8;
}
.task-footer {
  color: #767676;
  font-size: 11px;
  display: flex;
  justify-content: space-between;
}
.empty {
  min-height: 230px;
  border: 1px dashed #3b3b3b;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: #777777;
  text-align: center;
  padding: 30px;
}
.empty b {
  font-size: 17px;
  color: #a3a3a3;
  font-weight: 500;
  margin: 14px;
}
.empty .symbol {
  font-size: 34px;
  color: #666666;
}
.empty p {
  font-size: 12px;
  margin: 0;
  max-width: 380px;
}
.messages {
  min-height: 280px;
  max-height: 55vh;
  overflow: auto;
  padding: 8px 0 24px;
}
.message {
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  max-width: 85%;
  background: #181818;
  margin: 12px 0 12px auto;
  white-space: pre-wrap;
  line-height: 1.7;
}
.message small {
  display: block;
  margin-top: 8px;
}
.composer,
.panel {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #202020;
  padding: 24px;
}
.composer textarea {
  width: 100%;
  border: 0;
  padding: 5px 0;
  background: transparent;
}
.composer-bottom {
  display: flex;
  align-items: center;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.composer-bottom > span {
  font-size: 11px;
  color: var(--muted);
}
.composer-bottom .primary {
  margin-left: auto;
  white-space: nowrap;
}
.composer label small {
  margin-left: auto;
  font-weight: 400;
}
.composer label {
  display: flex;
}
.file-picker {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  padding: 9px 12px;
  border-radius: 8px;
  cursor: pointer;
  margin: 0;
  white-space: nowrap;
  font-weight: 400;
}
.file-picker input {
  width: 1px;
  height: 1px;
  opacity: 0;
  position: absolute;
}
.file-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}
.file-list a {
  color: #a3a3a3;
  font-size: 12px;
  word-break: break-all;
}
.file-item {
  background: #232323;
  padding: 6px 10px;
  border-radius: 7px;
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
}
.file-item button {
  padding: 2px 5px;
  border: 0;
  background: none;
}
.drag-over {
  outline: 2px dashed #858585;
  outline-offset: 3px;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.panel p {
  color: var(--muted);
  font-size: 12px;
}
.memory-row {
  display: block;
  text-align: left;
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 15px 0;
  background: none;
}
.memory-row small {
  display: block;
}
.memory-row p {
  margin: 6px 0;
  color: #a8a8a8;
}
.integrations {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.integrations span {
  border: 1px solid var(--line);
  padding: 9px;
  font-size: 12px;
  border-radius: 6px;
}
.history-row {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 20px;
  align-items: center;
}
.history-row small {
  margin-left: auto;
}
.history-row span {
  font-size: 13px;
}
dialog {
  width: min(700px, 94vw);
  max-height: 90vh;
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 28px;
  color: inherit;
}
dialog::backdrop {
  background: #cbcbcb66;
  backdrop-filter: blur(4px);
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}
.dialog-head button {
  border: 0;
}
.dialog-head .eyebrow {
  margin: 0;
}
dialog h2 {
  font-size: 23px;
}
dialog form {
  background: #202020;
  padding: 20px;
  border-radius: 10px;
}
dialog label input,
dialog textarea {
  width: 100%;
}
.recipients {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.recipients label:first-child {
  grid-column: 1/-1;
}
.decision-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
#detail-error {
  color: #9b9b9b;
  font-size: 13px;
  margin-top: 15px;
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  background: #c2c2c2;
  color: #181818;
  padding: 13px 24px;
  border-radius: 9px;
  max-width: 90vw;
  display: none;
  font-size: 13px;
}
[hidden] {
  display: none !important;
}
@media (max-width: 850px) {
  .workspace {
    grid-template-columns: 80px 1fr;
  }
  .sidebar {
    padding: 25px 12px;
    align-items: center;
  }
  .brand span,
  .nav-label,
  .sidebar nav span,
  .sidebar nav b,
  .sidebar-bottom {
    display: none;
  }
  .sidebar .brand {
    font-size: 30px;
  }
  .sidebar nav {
    margin-top: 40px;
  }
  .sidebar nav button {
    font-size: 20px;
    padding: 13px;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .composer-bottom > span {
    display: none;
  }
  main {
    padding: 30px 22px;
  }
}
@media (max-width: 540px) {
  .workspace {
    display: block;
    padding-bottom: 70px;
  }
  .sidebar {
    position: fixed;
    bottom: 0;
    top: auto;
    height: 64px;
    width: 100%;
    z-index: 5;
    background: #252525f5;
    border-top: 1px solid var(--line);
    padding: 6px;
  }
  .sidebar > .brand {
    display: none;
  }
  .sidebar nav {
    margin: 0;
    display: flex;
    width: 100%;
    justify-content: space-around;
  }
  .sidebar nav button {
    font-size: 20px;
  }
  .metrics {
    gap: 8px;
    margin-bottom: 25px;
  }
  .metrics > div {
    padding: 16px 12px;
  }
  .metrics span {
    font-size: 10px;
  }
  .metrics strong {
    font-size: 27px;
    margin-top: 10px;
  }
  header h1 {
    font-size: 28px;
  }
  .sync {
    font-size: 10px;
  }
  main {
    padding: 25px 17px;
  }
  .connection-note {
    font-size: 11px;
  }
  .task-card {
    padding: 20px;
  }
  .composer {
    padding: 17px;
  }
  .composer-bottom {
    gap: 8px;
  }
  .composer label small {
    display: none;
  }
  .recipients {
    grid-template-columns: 1fr;
  }
  dialog {
    padding: 20px;
  }
  .message {
    max-width: 95%;
  }
}

.message.assistant {
  margin-left: 0;
  margin-right: auto;
  background: #262626;
}

/* A quiet conversation space; decisions appear only when needed. */
.decision-summary {
  width: 100%; text-align: left; padding: 18px 22px; margin-bottom: 24px;
  background: #2b2b2b; border: 1px solid #434343; border-radius: 16px;
  color: #bbbbbb; font-size: 15px;
}
#view-chat { max-width: 820px; margin-inline: auto; }
#view-chat .messages { min-height: 24vh; }
#view-chat .composer { position: sticky; bottom: 18px; background: var(--paper, #1d1d1d); }
#view-chat .message small:empty { display: none; }
#view-chat .empty { border: 0; background: transparent; padding: 40px 16px; }
#connection-note[hidden] { display: none; }
details.panel summary { cursor: pointer; font-weight: 600; }
details.panel[open] summary { margin-bottom: 20px; }
.history-link { margin-block: 20px; }
@media (max-width: 540px) {
  .sidebar nav span { display: inline; font-size: 11px; }
  .sidebar nav button { display: grid; gap: 3px; padding: 8px 12px; }
  #view-chat .composer { bottom: 76px; }
}

/* Personal, low-glare slate palette. */
:root { color: #bababa; background: #272727; --green: #9d9d9d; --line: #3b3b3b; --muted: #8e8e8e; --paper: #232323; }
body { background: #272727; }
.sidebar { background: #2c2c2c; border-color: var(--line); }
main { max-width: 1280px; width: 100%; padding-top: 40px; }
.brand { font-size: 28px; letter-spacing: -1px; }
.sidebar nav button { border-radius: 12px; }
.sidebar nav button.active { background: #383838; color: #b0b0b0; }
.sidebar-bottom small, .eyebrow { letter-spacing: 0; }
header { margin-bottom: 28px; }
header h1 { font-size: 27px; font-weight: 600; letter-spacing: -1px; }
header p { color: var(--muted); }
.sync { opacity: .7; }
button { background: #242424; border-color: #3f3f3f; }
button:hover { background: #2f2f2f; }
button.primary { background: #9d9d9d; border-color: #9d9d9d; }
button.primary:hover { background: #aaaaaa; }
input,textarea,select { color: #bababa; background: #232323; border-color: #3f3f3f; }
input:focus,textarea:focus,button:focus-visible { outline-color: #7f7f7f; }
.panel,.task-card,.routine-card { background: #232323; border: 1px solid var(--line); box-shadow: none; }
.message.user { background: #343434; }
.message.assistant { background: transparent; border: 0; padding-left: 0; }
.composer { box-shadow: 0 5px 25px #b2b2b208; border-color: #464646; border-radius: 18px; }
.empty { background: transparent; border: 0; }
.empty .symbol { display: none; }
.routine-card { padding: 25px; border-radius: 16px; margin-bottom: 16px; }
.routine-card h2 { margin: 10px 0; font-size: 18px; }
.routine-card > small { display: block; color: #969696; }
.routine-card > button { margin-top: 18px; }
.routine-card p { white-space: pre-wrap; }
.proposal { border-color: #6f6f6f; }
#routine-dialog { width: min(560px,94vw); }
#routine-request { width: 100%; }
dialog { background: #232323; color: #bababa; border-color: #434343; }
.decision-summary { background: #333333; color: #aaaaaa; border-color: #444444; }
.login,.login-card { background: #272727; box-shadow: none; }
@media (max-width:540px) {
  main { padding: 22px 16px; }
  .sidebar { background: #2c2c2cf5; }
  .sidebar nav button { padding: 7px 8px; }
  header h1 { font-size: 23px; }
  .routine-card { padding: 20px; }
}
.empty, .empty b, .empty p { color: #9a9a9a; }
.sidebar nav button, .muted { color: #9a9a9a; }

/* Neutral dark mode, with no brand or color accents. */
:root { color-scheme: dark; color: #dedede; background: #181818; --green: #dedede; --line: #363636; --muted: #a6a6a6; --paper: #222222; }
body, .login { background: #181818; }
.sidebar { background: #1d1d1d; padding-top: 24px; }
.sidebar nav { margin-top: 0; }
.sidebar nav button { color: #b5b5b5; }
.sidebar nav button.active { background: #303030; color: #eeeeee; }
button { background: #292929; color: #dedede; border-color: #404040; }
button:hover { background: #363636; }
button.primary { background: #d5d5d5; border-color: #d5d5d5; color: #191919; }
button.primary:hover { background: #eeeeee; }
input, textarea, select { background: #242424; color: #dedede; border-color: #444444; }
input::placeholder, textarea::placeholder { color: #929292; }
input:focus, textarea:focus, button:focus-visible { outline-color: #b0b0b0; }
.panel, .task-card, .routine-card, .composer, dialog, dialog form { background: #222222; color: #dedede; border-color: #3c3c3c; }
.task-card:hover { background: #292929; border-color: #666666; }
.message.user { background: #303030; }
.message.assistant { background: transparent; }
.empty, .empty b, .empty p, .muted, .routine-card > small, .eyebrow { color: #acacac; }
.decision-summary, .connection-note, .tag { background: #2c2c2c; color: #d6d6d6; border-color: #454545; }
.status-dot, .sync i { background: #a6a6a6; }
.proposal { border-color: #777777; }
a { color: #dedede; }
dialog::backdrop { background: #000000aa; }
#toast { background: #dedede; color: #181818; }
@media (max-width:540px) { .sidebar { background: #1d1d1df5; } }
.report-open { display: block; margin-top: 16px; }
.review-body { white-space: pre-wrap; line-height: 1.8; }

/* Distinct speakers, using position and shape as well as gray values. */
#messages .message {
  width: fit-content;
  max-width: 80%;
  padding: 16px 20px;
  margin-top: 20px;
  margin-bottom: 20px;
  overflow-wrap: anywhere;
}
#messages .message.assistant {
  margin-left: 0;
  margin-right: auto;
  background: #252525;
  border: 1px solid #414141;
  border-radius: 4px 18px 18px 18px;
  color: #dedede;
}
#messages .message.user {
  margin-left: auto;
  margin-right: 0;
  background: #454545;
  border: 1px solid #555555;
  border-radius: 18px 4px 18px 18px;
  color: #f0f0f0;
}
.message-author {
  display: block;
  margin-bottom: 8px;
  color: #bcbcbc;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
}
.message.user .message-author { color: #dedede; }
@media (max-width: 540px) {
  #messages .message { max-width: 90%; padding: 14px 16px; }
}
/* Keep the latest bubble above the composer instead of underneath it. */
#view-chat { display: flex; flex-direction: column; height: calc(100dvh - 200px); min-height: 420px; }
#view-chat .messages { flex: 1 1 0; min-height: 120px; max-height: none; overflow-y: auto; overflow-anchor: none; }
#view-chat .composer { position: static; flex: 0 0 auto; margin-top: 12px; }
#view-chat .decision-summary { flex: 0 0 auto; margin-bottom: 10px; }
@media (max-width: 540px) { #view-chat { height: calc(100dvh - 250px); } }
.report-status {
  display: table; margin-top: 18px; padding: 6px 11px;
  border: 1px solid #777; border-radius: 6px;
  font-size: 12px; font-weight: 650; color: #eee; background: #393939;
}
#messages .message.report-handled { background: #1d1d1d; border-color: #333; color: #aaa; }
.report-handled .report-status { background: #373737; border-color: #666; color: #ddd; }
.report-seen .report-status { background: #292929; border-style: dashed; }
.report-unseen .report-status { background: #ddd; color: #191919; border-color: #ddd; }
.suggestion { padding: 18px; background: #2a2a2a; border: 1px solid #555; border-radius: 12px; margin: 20px 0; }
.suggestion p { white-space: pre-wrap; }
.suggestion small { display: block; margin-top: 12px; color: #aaa; }

.check-option { display: flex; align-items: center; gap: 10px; }
.check-option input[type="checkbox"] { width: 18px; height: 18px; accent-color: #bbb; }
#person-notification-form { margin-top: 20px; }
#notification-rules { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
