html[data-theme="memo"] {
  --bg: #fffaf1;
  --surface: #fffdf7;
  --text: #59373b;
  --muted: #8c6065;
  --hint: #ad8380;
  --line: #eab5ba;
  --accent: #ce4f6b;
  --accent-soft: #ffe6e9;
  --self: #c84a67;
  --self-soft: #ffdce2;
  --warn-soft: #fff0d7;
  --warn: #95612b;
  --danger: #b83e56;
  --peach: #efb38f;
  --paper-line: rgba(177, 132, 119, 0.2);
  color-scheme: light;
}

html[data-theme="memo"] body {
  background: #fffaf1;
  color: #59373b;
  font-family: "Klee One", "Hiragino Maru Gothic ProN", "PingFang SC", sans-serif;
}

html[data-theme="memo"] .view {
  background: #fffaf1;
}

html[data-theme="memo"] .langbar {
  border-bottom: 1px dashed #dc9da4;
  background: #fffdf7;
}

html[data-theme="memo"] .langbar .flag {
  border: 1px dashed transparent;
  border-radius: 7px;
}

html[data-theme="memo"] .langbar .flag.active {
  border-color: #ce4f6b;
  background: #ffe6e9;
  color: #aa3e57;
}

html[data-theme="memo"] .login-box {
  border: 1px solid #dc9da4;
  border-radius: 12px;
  background: #fffdf7;
  box-shadow: 8px 9px 0 rgba(239, 179, 143, 0.26);
  transform: rotate(-0.25deg);
}

html[data-theme="memo"] .login-box h1::after {
  content: "  ✿";
  color: #ce4f6b;
  font-size: 0.7em;
}

html[data-theme="memo"] input,
html[data-theme="memo"] select,
html[data-theme="memo"] textarea {
  border: 1px solid #dc9da4;
  border-radius: 9px;
  background: #fffef9;
  color: #59373b;
}

html[data-theme="memo"] input:focus,
html[data-theme="memo"] select:focus,
html[data-theme="memo"] textarea:focus {
  border-color: #ce4f6b;
  outline: 2px dashed rgba(206, 79, 107, 0.2);
  outline-offset: 2px;
}

html[data-theme="memo"] button {
  border-color: #dc9da4;
  border-radius: 9px;
  background: #fffdf7;
  color: #59373b;
}

html[data-theme="memo"] button.primary {
  border-color: #b83e56;
  background: #ce4f6b;
  box-shadow: 3px 4px 0 rgba(121, 54, 63, 0.15);
  color: #fff;
}

html[data-theme="memo"] button.ghost {
  color: #c54865;
}

html[data-theme="memo"] .bar {
  position: relative;
  border-bottom: 1px dashed #dc9da4;
  background: rgba(255, 251, 244, 0.97);
}

html[data-theme="memo"] .bar::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  width: 54px;
  height: 13px;
  background: rgba(242, 173, 185, 0.48);
  transform: rotate(-4deg);
  pointer-events: none;
}

html[data-theme="memo"] .bar h2 {
  color: #713c48;
  font-weight: 650;
}

html[data-theme="memo"] .bar .sub {
  color: #bd445f;
}

html[data-theme="memo"] .header-language {
  border: 1px solid #dc9da4;
  border-radius: 8px;
  background: #fffdf7;
}

html[data-theme="memo"] .account-bar,
html[data-theme="memo"] .friend-form,
html[data-theme="memo"] .relation-section {
  border-color: #e5aaaF;
  border-style: dashed;
  background: #fffdf7;
}

html[data-theme="memo"] .list {
  background: #fffaf1;
}

html[data-theme="memo"] .list li {
  border-color: #e7b2b6;
  background: rgba(255, 253, 247, 0.86);
}

html[data-theme="memo"] .partner-main {
  border-bottom: 1px dashed #e4b4b5;
  background: rgba(255, 253, 247, 0.9);
}

html[data-theme="memo"] .partner-main:hover,
html[data-theme="memo"] .partner-main:focus-visible {
  background: #fff0ed;
}

html[data-theme="memo"] .partner-remark-action {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 120ms ease;
}

html[data-theme="memo"] .partner-item.action-open .partner-remark-action {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

html[data-theme="memo"] .partner-delete {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 120ms ease;
}

html[data-theme="memo"] .partner-item.action-open .partner-delete {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

html[data-theme="memo"] .partner-avatar,
html[data-theme="memo"] .chat-peer-avatar,
html[data-theme="memo"] .chat-unread-avatar {
  border: 2px solid #fffdf7;
  border-radius: 9px;
  box-shadow: 2px 3px 0 rgba(206, 79, 107, 0.19);
  transform: rotate(-1.5deg);
}

html[data-theme="memo"] .install-card {
  border: 1px dashed #ce4f6b;
  border-radius: 10px;
  background: #fff3dc;
  box-shadow: 4px 4px 0 rgba(239, 179, 143, 0.28);
}

html[data-theme="memo"] .install-card b,
html[data-theme="memo"] .install-card span {
  color: #864957;
}

html[data-theme="memo"] .msgs {
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
  background-color: #fffaf1;
  background-image: linear-gradient(var(--paper-line) 1px, transparent 1px), linear-gradient(90deg, var(--paper-line) 1px, transparent 1px);
  background-size: 22px 22px;
}

html[data-theme="memo"] .msgs::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 38px;
  left: 14px;
  width: 64px;
  height: 14px;
  background: rgba(242, 173, 185, 0.55);
  transform: rotate(-6deg);
  pointer-events: none;
}

html[data-theme="memo"] .msgs::after {
  content: "♥ memo";
  position: absolute;
  z-index: -1;
  right: 18px;
  bottom: 28px;
  color: rgba(206, 79, 107, 0.66);
  font-family: "Comic Sans MS", "Klee One", cursive;
  font-size: 11px;
  transform: rotate(-3deg);
  pointer-events: none;
}

html[data-theme="memo"] .row {
  position: relative;
  z-index: 1;
}

html[data-theme="memo"] .bubble {
  padding-block-start: 7px;
  border: 1px solid #dfa1a8;
  border-radius: 11px 11px 11px 3px;
  background: #fffdf7;
  box-shadow: 3px 4px 0 rgba(224, 165, 156, 0.15);
}

html[data-theme="memo"] .row.self .bubble {
  border-color: #d98292;
  border-radius: 11px 11px 3px 11px;
  background: #ffdce2;
  transform: rotate(0.2deg);
}

html[data-theme="memo"] .message-time,
html[data-theme="memo"] .row.self .message-time {
  top: -2px;
  right: 9px;
  padding: 0;
  background: transparent;
  color: #996d70;
  font-family: "Arial Narrow", "Roboto Condensed", sans-serif;
  font-size: 9px;
  line-height: 11px;
  letter-spacing: -0.01em;
}

html[data-theme="memo"] .quote-reference {
  border: 0;
  border-bottom: 1px dashed #dca1a7;
  border-radius: 0;
  background: #fff;
}

html[data-theme="memo"] .quote-reference b,
html[data-theme="memo"] .quote-reference span {
  color: #bd405c;
}

html[data-theme="memo"] .quoted-message-table {
  width: 100%;
  overflow: hidden;
  border: 1px solid #d98292;
  border-radius: 6px;
  background: #fff;
  box-shadow: 3px 3px 0 rgba(239, 179, 143, 0.18);
}

html[data-theme="memo"] .quoted-message-table > .translated,
html[data-theme="memo"] .quoted-message-table > .pending,
html[data-theme="memo"] .quoted-message-table > .origin,
html[data-theme="memo"] .quoted-message-table > .note,
html[data-theme="memo"] .quoted-message-table > .expl {
  margin: 0;
  padding: 8px 10px;
}

html[data-theme="memo"] .quoted-message-table > .origin,
html[data-theme="memo"] .quoted-message-table > .note,
html[data-theme="memo"] .quoted-message-table > .expl {
  border-top: 1px dashed #dca1a7;
}

html[data-theme="memo"] .bubble.has-quote-table {
  padding: 7px 6px 6px;
  background: rgba(255, 250, 241, 0.96);
}

html[data-theme="memo"] .bubble .origin {
  border-color: #dca1a7;
  color: #9b5863;
}

html[data-theme="memo"] .quote-preview {
  border: 1px dashed #ce4f6b;
  border-radius: 9px;
  background: #fff2ef;
}

html[data-theme="memo"] .composer {
  border-top: 1px dashed #dc9da4;
  background: #fffaf1;
  box-shadow: 0 -5px 0 rgba(239, 179, 143, 0.12);
}

html[data-theme="memo"] .composer-menu {
  border: 1px dashed #dc9da4;
  border-radius: 10px;
  background: #fffdf7;
}

html[data-theme="memo"] .inputrow textarea {
  border-radius: 10px;
  background: #fffef9;
}

html[data-theme="memo"] .composer-toggle,
html[data-theme="memo"] .send {
  border-radius: 9px;
}

html[data-theme="memo"] .toolrow > button {
  border: 1px solid #d98292;
  border-radius: 8px;
  border-style: dashed;
  background: #fffdf7;
  color: #c54865;
  box-shadow: 2px 2px 0 rgba(239, 179, 143, 0.18);
}

html[data-theme="memo"] .toolrow > button:nth-child(odd) {
  transform: rotate(-1.5deg);
}

html[data-theme="memo"] .toolrow > button:nth-child(even) {
  transform: rotate(1deg);
}

html[data-theme="memo"] .toolrow > button:hover,
html[data-theme="memo"] .toolrow > button[aria-expanded="true"] {
  border-style: solid;
  background: #ffe6e9;
  color: #a83954;
}

html[data-theme="memo"] .toolrow > button svg {
  stroke-width: 1.7;
}

html[data-theme="memo"] .emoji-picker {
  border: 1px dashed #dc9da4;
  border-radius: 12px;
  background: #fffdf7;
  box-shadow: 7px 8px 0 rgba(239, 179, 143, 0.22);
}

html[data-theme="memo"] .emoji-tabs button[aria-selected="true"],
html[data-theme="memo"] .history-tabs button[aria-selected="true"] {
  border-style: dashed;
  background: #ffe6e9;
  color: #aa3e57;
}

html[data-theme="memo"] .profile-card {
  border: 1px solid #dc9da4;
  border-radius: 12px;
  background: #fffdf7;
  box-shadow: 7px 8px 0 rgba(239, 179, 143, 0.22);
}

html[data-theme="memo"] .history-controls,
html[data-theme="memo"] .history-list,
html[data-theme="memo"] .advisor-thread {
  border-color: #dc9da4;
  background-color: #fffaf1;
  background-image: linear-gradient(var(--paper-line) 1px, transparent 1px), linear-gradient(90deg, var(--paper-line) 1px, transparent 1px);
  background-size: 22px 22px;
}

html[data-theme="memo"] .history-item {
  border: 1px solid #dfa1a8;
  border-radius: 8px;
  background: #fffdf7;
  box-shadow: 3px 4px 0 rgba(224, 165, 156, 0.14);
}

html[data-theme="memo"] .history-item.self {
  background: #ffdce2;
  transform: rotate(0.25deg);
}

html[data-theme="memo"] .file-card {
  border: 1px dashed #ce4f6b;
  border-radius: 9px;
  background: #fffdf7;
}

html[data-theme="memo"] .file-card-icon {
  border-radius: 6px;
  background: #ffe6e9;
  color: #b63f59;
  box-shadow: 2px 2px 0 rgba(239, 179, 143, 0.32);
}

html[data-theme="memo"] .chat-video {
  border: 4px solid #fffdf7;
  border-radius: 7px;
  box-shadow: 0 0 0 1px #dc9da4, 4px 5px 0 rgba(239, 179, 143, 0.18);
}

html[data-theme="memo"] .sheet-box {
  border: 1px solid #dc9da4;
  border-radius: 12px;
  background: #fffdf7;
  box-shadow: 9px 10px 0 rgba(103, 62, 55, 0.16);
}

html[data-theme="memo"] #notification-center {
  background: rgba(83, 57, 50, 0.32);
  backdrop-filter: blur(3px);
}

html[data-theme="memo"] .notification-box {
  border: 1px solid #dc9da4;
  background: #fffdf7;
}

html[data-theme="memo"] .notification-setting,
html[data-theme="memo"] .notification-list li {
  border-color: #dc9da4;
  border-style: dashed;
  background: rgba(255, 253, 247, 0.82);
}

html[data-theme="memo"] .file-viewer-box {
  background: #fffaf1;
}

html[data-theme="memo"] .image-viewer-box {
  color: #ffe6e9;
}

html[data-theme="memo"] .jump-latest,
html[data-theme="memo"] .chat-unread-more {
  border: 1px dashed #ce4f6b;
  border-radius: 8px;
  background: #fffdf7;
  color: #bd405c;
  box-shadow: 3px 4px 0 rgba(239, 179, 143, 0.22);
}
