* {
  box-sizing: border-box;
}
:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #302b2b;
  background: #faf8f5;
  font-size: 14px;
  font-synthesis: none;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.5;
}
button,
input,
select,
textarea {
  outline-offset: 3px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #916487;
}
button {
  border: 0;
}
svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.arcs {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: #faf8f5;
}
.arcs i {
  position: absolute;
  border-radius: 100%;
  width: 170%;
  height: 140%;
  left: -35%;
  bottom: -95%;
  background: radial-gradient(
    ellipse at 50% 15%,
    transparent 30%,
    #f0d2cb77 43%,
    #ddcced66 52%,
    #d4e5dc44 65%,
    transparent 75%
  );
}
.arcs i:nth-child(2) {
  width: 120%;
  height: 95%;
  left: 15%;
  bottom: -70%;
  background: radial-gradient(
    ellipse at 50% 20%,
    #fff9 15%,
    #eacdbc88 43%,
    #d7c6df66 53%,
    transparent 68%
  );
}
.arcs i:nth-child(3) {
  width: 120%;
  height: 80%;
  left: 30%;
  top: -60%;
  background: radial-gradient(
    ellipse at center,
    transparent 15%,
    #f5e5d777 50%,
    transparent 65%
  );
}
header {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #ded7d077;
  padding: 0 30px;
  background: #fff8;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #332d31;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.5px;
}
.mark {
  font: italic 31px Georgia;
  background: #eee3e7;
  border: 1px solid #fff;
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  box-shadow: 0 2px 7px #5533440a;
}
.brand-sub {
  display: block;
  font-size: 10px;
  letter-spacing: 1px;
  color: #81777a;
  text-transform: uppercase;
  margin-top: 5px;
}
.header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
#save-state {
  font-size: 11px;
  color: #766b70;
  margin-right: 12px;
}
.quiet {
  padding: 9px 12px;
  background: transparent;
  font-size: 12px;
  border-radius: 8px;
}
.quiet:hover {
  background: #e9e2de88;
}
.icon-button {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border-radius: 9px;
  color: #7b6e73;
  position: relative;
  flex-shrink: 0;
  transition:
    background 0.15s,
    transform 0.15s;
}
.icon-button:hover {
  background: #e9e1e2;
  color: #42303d;
}
.icon-button:active {
  transform: scale(0.96);
}
.danger:hover {
  background: #f9e0e0;
  color: #aa3648;
}
.primary {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 12px 17px;
  background: #463642;
  color: #fff;
  border: 1px solid #49313d;
  border-radius: 10px;
  box-shadow:
    0 2px 4px #34203512,
    inset 0 1px 0 #ffffff25;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 500;
  transition:
    background 0.15s,
    transform 0.15s;
}
.primary:hover {
  background: #60475b;
}
.primary:active {
  transform: scale(0.98);
}
.shell {
  display: grid;
  grid-template-columns: 240px minmax(320px, 1fr) 405px;
  height: calc(100dvh - 88px);
}
.sidebar {
  padding: 25px 20px;
  overflow: auto;
  border-right: 1px solid #ded7d077;
  display: flex;
  flex-direction: column;
}
.side-heading {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0 0 8px;
}
.side-heading > span {
  font-size: 10px;
  letter-spacing: 1.3px;
  color: #897e81;
  flex: 1;
}
.side-heading .icon-button {
  width: 27px;
  height: 27px;
}
.select-wrap {
  position: relative;
}
.select-wrap:after {
  content: "";
  position: absolute;
  right: 15px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid #73636e;
  border-bottom: 1.5px solid #73636e;
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  border: 1px solid #ded6d6;
  background: #fffc;
  border-radius: 8px;
  padding: 10px 38px 10px 12px;
  text-overflow: ellipsis;
}
.project-select select {
  font-weight: 500;
  background: #fff8;
}
.project-select {
  margin-top: 0;
}
#project-description {
  font-size: 11px;
  color: #85777d;
  line-height: 1.6;
  margin: 12px 2px 20px;
}
.all-button {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #e8dfe777;
  padding: 11px 12px;
  border-radius: 8px;
  font-size: 12px;
  text-align: left;
  margin-bottom: 23px;
}
.all-button span {
  margin-left: auto;
  color: #8b7c83;
  font-size: 11px;
}
.folder-line {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 3px;
  border-radius: 7px;
}
.folder-line.active {
  background: #e7dce480;
}
.folder-line:hover {
  background: #e9e1e277;
}
.folder-pick {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  text-align: left;
  padding: 9px 2px;
  background: transparent;
  font-size: 12px;
  line-height: 1.4;
}
.folder-pick .folder-name {
  overflow: hidden;
  text-overflow: ellipsis;
}
.folder-line .icon-button {
  width: 25px;
  height: 27px;
}
.folder-line .folder-menu {
  opacity: 0;
}
.folder-line:hover .folder-menu,
.folder-line:focus-within .folder-menu {
  opacity: 1;
}
.folder-pick svg {
  width: 15px;
  color: #9a8692;
}
.folder-count {
  font-size: 10px;
  color: #998992;
  flex-shrink: 0;
}
.sidebar-foot {
  margin-top: auto;
  padding-top: 35px;
  font: italic 16px Georgia;
  color: #7a626e;
}
.sidebar-foot span {
  display: block;
  font:
    10px/1.6 -apple-system,
    sans-serif;
  color: #928389;
  margin-top: 10px;
}
main {
  padding: 38px 32px;
  overflow: auto;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 27px;
}
h1 {
  font:
    38px/1.15 Georgia,
    serif;
  letter-spacing: -1.2px;
  margin: 0;
  overflow-wrap: anywhere;
}
h1 span {
  color: #aa819a;
}
#summary {
  color: #8b7d83;
  font-size: 12px;
  margin: 11px 0 0;
}
.search-line {
  display: flex;
  align-items: center;
  gap: 10px;
}
.search-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #dcd3d6;
  border-radius: 10px;
  padding: 0 13px;
  background: #fff9;
  flex: 1;
  min-width: 0;
}
.search-wrap > span {
  color: #9b8892;
  display: flex;
}
.search-wrap input {
  width: 100%;
  padding: 13px 0;
  background: none;
  border: 0;
  font-size: 12px;
  outline: none;
}
.search-wrap:focus-within {
  outline: 2px solid #b49dad;
  outline-offset: 2px;
}
.search-wrap kbd {
  font: 11px monospace;
  color: #a28f97;
  border: 1px solid #ded3d7;
  border-radius: 4px;
  padding: 2px 6px;
}
.color-filter {
  width: 109px;
}
.color-filter select {
  padding-top: 12px;
  padding-bottom: 12px;
  font-size: 11px;
  background: #fff9;
}
.tab-line {
  display: flex;
  align-items: center;
  gap: 5px;
  border-bottom: 1px solid #d8cdd2;
  margin-top: 20px;
}
#tabs {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1;
  overflow: auto;
}
#tabs button {
  padding: 14px 0;
  background: none;
  border-bottom: 2px solid transparent;
  color: #9a8792;
  font-size: 12px;
  white-space: nowrap;
}
#tabs button.active {
  border-color: #58404f;
  color: #47313f;
}
#tabs button:hover {
  color: #3a2531;
}
.list-heading {
  display: flex;
  justify-content: space-between;
  padding: 23px 8px 12px;
  font-size: 9px;
  letter-spacing: 1.4px;
  color: #9a8a94;
}
.prompt-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 8px;
  border-bottom: 1px solid #dcced755;
  border-radius: 9px;
}
.prompt-row:hover {
  background: #fff8;
}
.prompt-row.active {
  background: #fffb;
  box-shadow: 0 1px 5px #60425706;
}
.prompt-row .dot {
  height: 7px;
  width: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.prompt-open {
  flex: 1;
  min-width: 0;
  text-align: left;
  background: none;
  padding: 0;
}
.prompt-title {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}
.prompt-meta {
  font-size: 10px;
  color: #94818e;
  margin-top: 6px;
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}
.prompt-meta b {
  font: 10px monospace;
  font-weight: 400;
}
.row-actions {
  display: flex;
  gap: 2px;
}
.editor {
  padding: 24px;
  background: #fffc;
  border-left: 1px solid #e6dde1;
  overflow: auto;
}
.editor-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.editor-bar > span {
  font-size: 9px;
  letter-spacing: 1.2px;
  color: #93818e;
}
.editor-bar > div {
  display: flex;
}
.title-input {
  font:
    29px/1.3 Georgia,
    serif;
  letter-spacing: -0.5px;
  padding: 6px 0;
  width: 100%;
  border: 0;
  border-bottom: 1px solid transparent;
  background: none;
  margin-bottom: 20px;
}
.title-input:focus {
  border-bottom-color: #bda9b6;
  outline: none;
}
.editor-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 15px;
}
.editor-fields label,
.field-label {
  font-size: 10px;
  color: #92808e;
  display: block;
}
.editor-fields input {
  display: block;
  width: 100%;
  padding: 9px 10px;
  border: 1px solid #e4dce1;
  background: #faf8fa;
  border-radius: 7px;
  margin-top: 6px;
  font-size: 12px;
  color: #544550;
}
.editor-fields .select-wrap {
  margin-top: 6px;
}
.editor-fields select,
.field-label select {
  font-size: 12px;
  background: #faf8fa;
  border-color: #e4dce1;
  padding: 9px 36px 9px 10px;
}
.field-label {
  margin-bottom: 12px;
}
.field-label .select-wrap {
  margin-top: 6px;
}
.prompt-label {
  display: flex;
  justify-content: space-between;
  margin-top: 25px;
  margin-bottom: 10px;
  font-size: 9px;
  color: #92808e;
  letter-spacing: 1px;
}
textarea {
  width: 100%;
  resize: vertical;
  border: 1px solid #e6dfe3;
  border-radius: 9px;
  background: #fdfcfd;
  padding: 14px;
  color: #5f505c;
  line-height: 1.8;
  font-size: 12px;
  min-height: 340px;
}
#notes {
  min-height: 100px;
}
details {
  font-size: 11px;
  color: #92808e;
  margin: 14px 0;
}
summary {
  cursor: pointer;
  margin-bottom: 10px;
}
.editor-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  position: sticky;
  bottom: -24px;
  background: #fff;
  padding-bottom: 18px;
}
.panel-closed .shell {
  grid-template-columns: 240px minmax(320px, 1fr);
}
.panel-closed .editor {
  display: none;
}
.empty {
  padding: 50px 10px;
  color: #917c8a;
  font-size: 13px;
  line-height: 1.8;
}
.spell .glyph {
  display: flex;
  transition:
    opacity 0.2s,
    transform 0.2s,
    filter 0.2s;
}
.spell .check {
  position: absolute;
  opacity: 0;
  transform: scale(0.7);
  filter: blur(2px);
  transition:
    opacity 0.2s,
    transform 0.2s,
    filter 0.2s;
}
.spell.done .glyph {
  opacity: 0;
  transform: scale(0.3);
  filter: blur(2px);
}
.spell.done .check {
  opacity: 1;
  transform: scale(1);
  filter: none;
}
dialog {
  width: min(480px, calc(100vw - 30px));
  padding: 26px;
  border: 1px solid #e6dce2;
  border-radius: 18px;
  box-shadow: 0 20px 90px #37213030;
  color: #4a3643;
  background: #fffdfc;
  max-height: 85dvh;
  overflow: auto;
}
dialog::backdrop {
  background: #35253644;
}
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
dialog h2 {
  font: 27px Georgia;
  margin: 0;
}
dialog label {
  display: block;
  font-size: 12px;
  color: #7f6877;
  margin: 15px 0;
}
dialog input,
dialog textarea {
  display: block;
  width: 100%;
  border: 1px solid #dcccd6;
  padding: 11px;
  border-radius: 8px;
  margin-top: 8px;
}
dialog textarea {
  min-height: 70px;
}
dialog select {
  margin-top: 8px;
}
#dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 23px;
}
.menu-action {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 10px;
  background: none;
  text-align: left;
  border-radius: 8px;
}
.menu-action:hover {
  background: #f2eaef;
}
.menu-action.danger {
  color: #ac4156;
}
.dialog-note {
  font-size: 12px;
  color: #927a88;
  line-height: 1.7;
}
.sort-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
  border-bottom: 1px solid #eee5eb;
}
.sort-item span {
  flex: 1;
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  padding: 13px 18px;
  border-radius: 12px;
  background: #42313e;
  color: white;
  box-shadow: 0 5px 25px #39203120;
  z-index: 20;
  font-size: 12px;
  max-width: 90vw;
}
#toast button {
  background: #ffffff22;
  color: white;
  border-radius: 5px;
  margin-left: 15px;
  padding: 4px 9px;
}
.shimmer-once {
  animation: shimmer 0.9s ease-out 1;
}
@keyframes shimmer {
  0% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
    text-shadow: 0 0 6px #e5c0dc;
  }
  100% {
    opacity: 1;
  }
}
#mobile-nav {
  display: none;
}
.error-banner {
  padding: 20px;
  background: #fff0f0;
  color: #832f42;
}
@media (min-width: 1550px) {
  .shell {
    grid-template-columns: 260px minmax(400px, 1fr) 460px;
  }
  main {
    padding: 45px 55px;
  }
  .panel-closed .shell {
    grid-template-columns: 260px 1fr;
  }
}
@media (max-width: 1150px) {
  .shell {
    grid-template-columns: 200px minmax(300px, 1fr);
  }
  .sidebar {
    padding: 23px 14px;
  }
  .editor {
    position: fixed;
    top: 88px;
    right: 0;
    bottom: 0;
    width: 405px;
    max-width: 100%;
    z-index: 5;
    box-shadow: -12px 0 45px #4f334b18;
  }
  .panel-closed .shell {
    grid-template-columns: 200px minmax(300px, 1fr);
  }
  main {
    padding: 30px 25px;
  }
  h1 {
    font-size: 33px;
  }
}
@media (max-width: 700px) {
  header {
    height: 74px;
    padding: 0 16px;
  }
  .brand {
    font-size: 12px;
  }
  .brand-sub {
    font-size: 8px;
  }
  .mark {
    height: 35px;
    width: 35px;
    font-size: 25px;
  }
  .header-actions {
    gap: 2px;
  }
  #save-state {
    display: none;
  }
  .header-actions .quiet {
    font-size: 10px;
    padding: 8px;
  }
  #mobile-nav {
    display: flex;
  }
  .shell,
  .panel-closed .shell {
    display: block;
    height: calc(100dvh - 74px);
  }
  .sidebar {
    display: none;
    position: fixed;
    top: 74px;
    bottom: 0;
    left: 0;
    width: 265px;
    background: #faf6f5;
    z-index: 6;
    box-shadow: 10px 0 40px #53314422;
  }
  .nav-open .sidebar {
    display: flex;
  }
  main {
    padding: 26px 17px;
    height: 100%;
    overflow: auto;
  }
  .editor {
    top: 74px;
    width: 100%;
    background: #fff;
  }
  .page-heading {
    gap: 10px;
    margin-bottom: 22px;
  }
  h1 {
    font-size: 30px;
  }
  .page-heading .primary {
    padding: 10px 12px;
    font-size: 11px;
  }
  .search-wrap {
    padding: 0 10px;
  }
  .search-wrap kbd {
    display: none;
  }
  .color-filter {
    width: 90px;
  }
  #tabs {
    gap: 20px;
  }
  .prompt-row {
    padding: 15px 3px;
    gap: 8px;
  }
  .prompt-title {
    font-size: 12px;
  }
  .row-actions .icon-button {
    width: 32px;
    height: 36px;
  }
  .folder-line .folder-menu {
    opacity: 1;
  }
  .editor-footer {
    bottom: -24px;
  }
  .header-actions .icon-button {
    width: 29px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.prompt-title {
  display: flex;
  align-items: center;
  gap: 8px;
}
.prompt-row.selected {
  background: #fff9;
}
.folder-name {
  flex: 1;
}
.folder-count {
  margin-left: auto;
}
.sort-item button {
  background: #f4edf1;
  border-radius: 6px;
  padding: 7px;
}
.sort-item button:hover {
  background: #e8dbe4;
}
.sort-item span {
  min-width: 0;
  overflow-wrap: anywhere;
}
[hidden] {
  display: none !important;
}
#tabs {
  min-width: 0;
}
.tab-line > .icon-button {
  flex-shrink: 0;
}
.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 20px;
}

/* Workspace refinement: original adaptations of beUI and Rare UI motion patterns. */
*:focus,*:focus-visible,.search-wrap:focus-within { outline:none; }
button:focus-visible,a:focus-visible { background-color:#e9dfe9; color:#302334; }
input:focus-visible,textarea:focus-visible { border-color:#998294; }
header {height:76px;padding:0 24px;gap:20px;}
.header-actions {gap:8px;flex:1;justify-content:flex-end;}
.header-actions #new-prompt {order:4;}
.header-actions #toggle-panel {order:5;background:#ede7eb;border:1px solid #ddd2db;width:40px;height:40px;}
.header-actions #mobile-nav {order:6;}
#backup,#restore {padding:11px 15px;}
.export-button {background:#e5ebe4;border-color:#d1ddcf;color:#40533e;}
.export-button:hover {background:#d4e1d1;}
.import-button {background:#e9e2f0;border-color:#d9cfe4;color:#675075;}
.import-button:hover {background:#dfd2eb;}
.shell {grid-template-columns:246px minmax(280px,1fr) 410px;height:calc(100dvh - 76px);transition:grid-template-columns .38s cubic-bezier(.22,.8,.22,1);}
.panel-closed .shell {grid-template-columns:246px minmax(280px,1fr) 0px;}
main {padding:26px 28px;min-width:0;}
.sidebar {padding:24px 16px; background:#fff5;}
.side-heading > span {font-size:10px;letter-spacing:.8px;}
.sidebar-foot {font-family:inherit;font-size:11px;font-style:normal;line-height:1.5;}
.collection-heading {margin-bottom:4px;}
.collection-toggle,.disclosure {display:flex;align-items:center;justify-content:space-between;gap:12px;background:none;min-width:0;font-weight:500;}
.collection-toggle {flex:1;padding:12px 10px;font-size:12px;}
.chevron {display:block;width:7px;height:7px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:translateY(-2px) rotate(45deg);flex:none;transition:transform .25s;}
[aria-expanded=true] > .chevron {transform:translateY(2px) rotate(225deg);}
.reveal {display:grid;grid-template-rows:0fr;opacity:0;transition:grid-template-rows .32s cubic-bezier(.22,.8,.22,1),opacity .2s;}
.reveal.open {grid-template-rows:1fr;opacity:1;}
.reveal > div {overflow:hidden;min-height:0;}
#folders {position:relative;padding-left:6px;}
#folders::before {content:'';position:absolute;left:7px;top:12px;bottom:12px;border-left:1px dashed #d3c4cf;}
.folder-line {position:relative;margin-left:4px;min-height:38px;transition:background .2s;}
.folder-line.active::before {content:'';position:absolute;left:-4px;top:0;bottom:0;width:3px;border-radius:3px;background:#99768f;}
.folder-line.active {background:linear-gradient(90deg,#eadce77a,transparent);}
.folder-pick {padding:10px 2px;}
.drag-grip {font-size:17px;color:#aa96a3;width:19px;flex:none;background:transparent;cursor:grab;touch-action:none;opacity:.45;padding:0;}
.folder-line:hover .drag-grip {opacity:1;}
#folder-root {display:none;font-size:10px;text-align:center;padding:15px 8px;margin:10px 0;border:1px dashed #ac94a5;border-radius:8px;color:#806477;}
.is-dragging #folder-root {display:block;}
.dragging {opacity:.3;}
.drag-ghost {position:fixed;left:0;top:0;z-index:1000;padding:12px 18px;border-radius:10px;background:#44323f;color:white;box-shadow:0 10px 40px #33223325;pointer-events:none;font-size:12px;}
.drop-target {background:#decde199!important;box-shadow:inset 0 0 0 1px #ae88ac;}
[data-drag-tab] {touch-action:pan-y;cursor:grab;}
.is-dragging {user-select:none;cursor:grabbing;}
.select-wrap:after {display:none;}
.motion-select {position:relative;width:100%;min-width:0;}
.select-trigger {display:flex;align-items:center;width:100%;min-height:40px;text-align:left;border:1px solid #e0d7df;border-radius:11px;background:#fff9;padding:10px 40px 10px 12px;position:relative;font-size:12px;transition:background .2s,border-radius .2s;}
.select-trigger > span:first-child {white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.select-trigger > .chevron {position:absolute;right:17px;top:calc(50% - 2px);}
.select-trigger:hover,.select-trigger[aria-expanded=true] {background:#fff;border-color:#c4afc0;}
.select-menu {z-index:100;overflow:auto;border:1px solid #e0d6de;background:#fffdfd;box-shadow:0 12px 36px #4f304b18;border-radius:12px;padding:5px;animation:select-unfold .28s cubic-bezier(.18,.9,.25,1.16);}
.select-menu button {display:block;position:relative;width:100%;text-align:left;background:none;border-radius:8px;padding:10px 30px 10px 10px;font-size:12px;overflow-wrap:anywhere;animation:option-in .22s both;animation-delay:calc(var(--i)*18ms);}
.select-menu button[aria-selected=true]::after {content:'✓';position:absolute;right:11px;}
.select-menu button:hover,.select-menu button.highlighted {background:#f0e8ef;}
.select-menu.closing {pointer-events:none;animation:select-out .15s forwards;}
@keyframes select-unfold {from{opacity:0;transform:translateY(-5px) scaleY(.9)}to{opacity:1;transform:none}}
@keyframes select-out {to{opacity:0;transform:scaleY(.95)}}
@keyframes option-in {from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}
.color-filter {width:130px;}
.prompt-row {position:relative;isolation:isolate;overflow:hidden;margin:2px 0;}
.prompt-row[data-color]:not([data-color=none]) {background:color-mix(in srgb,var(--prompt-color) 8%,transparent);}
.prompt-row.selected {box-shadow:inset 3px 0 var(--prompt-color,#b6a4b1);}
.prompt-row::after {content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(110deg,transparent 20%,color-mix(in srgb,var(--prompt-color) 34%,transparent) 48%,transparent 75%);transform:translateX(-110%);}
.prompt-row.shimmer::after {animation:color-sweep .95s ease-out;}
@keyframes color-sweep {to{transform:translateX(110%)}}
.editor,.panel-closed .editor {display:block;min-width:0;width:auto; padding:22px;background:#fffaf9;border-left:1px solid #e7dde3;transition:transform .38s cubic-bezier(.22,.8,.22,1),opacity .2s,padding .38s;}
.panel-closed .editor {transform:translateX(100%);opacity:0;padding-left:0;padding-right:0;visibility:hidden;}
.shell {overflow:hidden;}
.editor-bar {margin-bottom:14px;}
.editor-bar #editor-close {background:#f0e9ee;margin-left:6px;}
.title-input {font-family:inherit;font-size:23px;font-weight:550;letter-spacing:-.6px;margin-bottom:18px;}
#body {min-height:290px;line-height:1.8;background:#fff;border-radius:12px;padding:14px;}
.edit-section {border-top:1px solid #e8dfe5;border-bottom:1px solid #e8dfe5;margin-top:18px;}
.disclosure {width:100%;padding:16px 3px;font-size:12px;}
.disclosure .chevron {margin-right:10px;}
#edit-fields .editor-fields {padding-top:4px;}
#edit-fields > div > .field-label:last-child {margin-bottom:18px;}
.editor-footer {gap:8px;background:#fffaf9;}
#save {min-width:123px;transition:background .2s,transform .2s;}
#save.saved {background:#547760;border-color:#547760;animation:save-pop .25s;}
@keyframes save-pop {50%{transform:scale(1.04)}}
#toast {position:fixed;bottom:24px;left:50%;transform:translate(-50%,18px) scale(.96);opacity:0;pointer-events:none;z-index:200;background:#3e333c;color:#fff;border:1px solid #ffffff22;border-radius:12px;box-shadow:0 8px 30px #38213524;padding:13px 20px;font-size:12px;max-width:calc(100vw - 32px);transition:opacity .22s,transform .3s cubic-bezier(.22,.8,.22,1);}
#toast.visible {opacity:1;transform:translate(-50%,0) scale(1);}
#loading-screen {position:fixed;inset:0;background:#faf8f5;z-index:300;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:24px;font-size:12px;color:#796070;}
.helix {display:flex;align-items:center;gap:4px;height:40px;}
.helix i {position:relative;width:5px;height:32px;--delay:0s;}
.helix i:nth-child(2){--delay:-.12s}.helix i:nth-child(3){--delay:-.24s}.helix i:nth-child(4){--delay:-.36s}.helix i:nth-child(5){--delay:-.48s}.helix i:nth-child(6){--delay:-.6s}.helix i:nth-child(7){--delay:-.72s}.helix i:nth-child(8){--delay:-.84s}
.helix i::before,.helix i::after {content:'';position:absolute;left:0;top:0;width:5px;height:5px;border-radius:50%;background:#8e6f89;animation:helix 1.25s ease-in-out infinite;animation-delay:var(--delay);}
.helix i::after {animation-direction:reverse;background:#d8bcae;}
@keyframes helix {0%,100%{transform:translateY(0) scale(.75);opacity:.5}50%{transform:translateY(27px) scale(1);opacity:1}}
@media(min-width:1550px){.shell{grid-template-columns:260px minmax(400px,1fr) 450px}.panel-closed .shell{grid-template-columns:260px minmax(400px,1fr) 0px}}
@media(max-width:1150px){.shell,.panel-closed .shell{grid-template-columns:220px minmax(280px,1fr)}.editor,.panel-closed .editor{position:fixed;top:76px;bottom:0;right:0;width:410px;max-width:100%;z-index:6}.panel-closed .editor{padding:22px}}
@media(max-width:760px){header{padding:12px 14px;height:auto;min-height:76px;flex-wrap:wrap;gap:8px}.brand-sub{display:none}.brand{font-size:12px}.header-actions{gap:5px}.header-actions .primary{font-size:10px;padding:9px 10px!important}.header-actions #toggle-panel{width:33px;height:34px}#save-state{display:none}.shell,.panel-closed .shell{display:block;height:calc(100dvh - 76px)}.sidebar{position:fixed;top:76px;bottom:0;display:flex;width:265px;transform:translateX(-100%);transition:transform .3s;z-index:8;background:#faf6f5}.nav-open .sidebar{transform:none}.editor{top:76px}.brand>span:not(.mark){display:none}main{padding:20px 16px;height:100%}#mobile-nav{display:flex}.color-filter{width:118px}.search-wrap kbd{display:none}.folder-menu{opacity:1!important}#tabs{gap:20px}#body{min-height:250px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}.helix i::after{top:24px}}
/* Workflow canvas keeps motion finite and text readable at normal zoom. */
.workflow-toolbar,.workflow-tools,.workflow-guide,.workflow-guide>div,.workflow-picker{display:flex;align-items:center;gap:8px}.workflow-toolbar{justify-content:space-between;flex-wrap:wrap;padding:16px 0}.workflow-picker{flex-wrap:wrap}.workflow-picker .chosen{background:#e9e2f5;color:#634b8a}.workflow-guide{justify-content:space-between;font-size:11px;color:#817985;margin-bottom:12px}.workflow-viewport{height:calc(100vh - 310px);min-height:400px;overflow:auto;background:radial-gradient(#d9d2db .8px,transparent .8px) 0 0/20px 20px,#faf8fc;border:1px solid #e7e0e9;border-radius:16px;overscroll-behavior:contain}.workflow-size{position:relative}.workflow-canvas{position:relative;transform-origin:0 0}.workflow-links{position:absolute;inset:0;overflow:visible;pointer-events:none}.workflow-links>path{fill:none;stroke:#b0a4cf;stroke-width:2;marker-end:url(#wf-arrow)}.workflow-node{position:absolute;width:320px;height:220px;background:#fff;border:1px solid #e1dbe8;border-radius:16px;box-shadow:0 5px 20px #49336309;display:flex;flex-direction:column}.workflow-node.completed{border-color:#83aa91;background:#fbfffc}.workflow-node-head{display:flex;align-items:center;gap:10px;padding:15px;border-bottom:1px solid #eee8f0;cursor:grab;touch-action:none;user-select:none}.workflow-node-head strong{flex:1;font-size:13px}.step-number{font-size:12px;color:#8161ad;font-variant-numeric:tabular-nums}.workflow-node>p{padding:0 15px;overflow:hidden;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;font-size:12px;line-height:1.6;color:#756d79;flex:1}.workflow-node-actions{display:flex;gap:2px;align-items:center;padding:4px 8px 10px}.workflow-node-actions .quiet{font-size:11px;padding:6px 8px}.workflow-node-actions .danger{margin-left:auto}.workflow-tools .primary{white-space:nowrap}#auth-screen{position:fixed;inset:0;z-index:1000;background:radial-gradient(ellipse at 90% 100%,#f0d4b6,transparent 55%),radial-gradient(ellipse at 0 0,#e8dff5,transparent 65%),#faf8f5;display:grid;place-items:center}#auth-screen[hidden]{display:none}.auth-card{max-width:480px;padding:40px;text-align:center}.auth-card>.mark{display:inline-flex}.auth-card h1{font-size:38px;letter-spacing:-1.5px}.auth-card p{line-height:1.7;color:#756d78}.auth-card .primary{margin:20px auto;display:flex;align-items:center;gap:12px}.google-mark{background:white;color:#4285f4;border-radius:50%;padding:2px 7px}.saving #save{opacity:.7;pointer-events:none}.saving .shell{cursor:progress}@media(max-width:760px){.workflow-tools{flex-wrap:wrap}.workflow-guide{align-items:flex-start;gap:8px}.workflow-viewport{height:65vh}.workflow-guide>span{max-width:180px}}
