/*
 * The portrait register and the full Sunflowers salon.
 * This layer deliberately treats Van Gogh's painting as the architecture:
 * its yellows, olive shadows, blue vase and heavy impasto run through every room.
 */

.message-avatar,
.shared-message-avatar,
.identity-miniature,
.portrait-preview {
  overflow: hidden;
}

.message-avatar img,
.shared-message-avatar img,
.identity-miniature img,
.portrait-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.message-avatar.has-image,
.shared-message-avatar.has-image {
  padding: 0;
  background: #241f18;
  border-color: rgba(225, 189, 104, 0.7);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.identity-button {
  display: flex;
  height: 48px;
  padding: 5px 14px 5px 8px;
  align-items: center;
  gap: 10px;
  color: rgba(255, 249, 232, 0.9);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent),
    rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(224, 189, 112, 0.25);
  border-radius: 18px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.16);
}

.identity-button:hover {
  color: #fff9e9;
  background: rgba(217, 174, 73, 0.11);
  border-color: rgba(224, 189, 112, 0.48);
}

.identity-miniatures {
  display: flex;
  padding-left: 15px;
}

.identity-miniature {
  display: grid;
  width: 29px;
  height: 29px;
  margin-left: -15px;
  place-items: center;
  color: #fff7df;
  background: #70323a;
  border: 2px solid #26211b;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
  font-family: var(--serif);
  font-size: 11px;
}

.identity-miniature.profile-user {
  color: #272116;
  background: #d8ad43;
}

.identity-miniature.profile-sunflower {
  color: #292718;
  background: #d8ad28;
}

.identity-button-copy {
  display: grid;
  line-height: 1.05;
  text-align: left;
}

.identity-button-copy strong {
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.identity-button-copy small {
  margin-top: 4px;
  color: rgba(255, 248, 229, 0.45);
  font-size: 8px;
  letter-spacing: 0.1em;
}

/* Three-person portrait register */

.identity-dialog {
  width: min(930px, calc(100vw - 36px));
  max-width: none;
  max-height: min(820px, calc(100dvh - 38px));
  padding: 0;
  overflow: hidden;
  color: #2d281e;
  background:
    radial-gradient(circle at 12% 8%, rgba(225, 188, 94, 0.24), transparent 24%),
    radial-gradient(circle at 90% 92%, rgba(112, 47, 48, 0.13), transparent 28%),
    #e9dcc0;
  border: 7px double #987132;
  border-radius: 32px;
  box-shadow:
    0 0 0 5px #2b241b,
    0 0 0 7px #c49a47,
    0 48px 140px rgba(0, 0, 0, 0.62),
    inset 0 0 70px rgba(112, 73, 23, 0.14);
}

.identity-dialog::backdrop {
  background:
    radial-gradient(circle at 50% 15%, rgba(213, 171, 71, 0.13), transparent 27%),
    rgba(17, 18, 14, 0.82);
  backdrop-filter: blur(12px) saturate(0.72);
}

.identity-dialog form {
  display: grid;
  min-height: 640px;
  max-height: calc(100dvh - 52px);
  grid-template-rows: auto auto minmax(0, 1fr) auto;
}

.identity-dialog-head {
  position: relative;
  display: flex;
  min-height: 132px;
  padding: 28px 36px 24px;
  align-items: flex-start;
  justify-content: space-between;
  color: #fff5d7;
  background:
    linear-gradient(105deg, rgba(31, 36, 25, 0.84), rgba(43, 31, 22, 0.94)),
    url("/assets/van-gogh-sunflowers-desktop.jpg") center 42% / cover no-repeat;
  border-bottom: 3px double rgba(219, 177, 71, 0.75);
  box-shadow: inset 0 -22px 45px rgba(0, 0, 0, 0.25);
}

html[data-site="juhua"] .identity-dialog-head {
  background:
    linear-gradient(105deg, rgba(66, 29, 34, 0.82), rgba(34, 27, 25, 0.95)),
    url("/assets/juhua-bg-desktop-v2.jpg") center / cover no-repeat;
}

.identity-dialog-head::after {
  position: absolute;
  right: 84px;
  bottom: -15px;
  content: "❦";
  width: 52px;
  height: 30px;
  color: #e3bd5d;
  background: #2c2c21;
  border: 2px solid #bd8f36;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  font-family: Georgia, serif;
  font-size: 20px;
  line-height: 27px;
  text-align: center;
}

.identity-dialog-head .eyebrow {
  color: #e4c36e;
}

.identity-dialog-head h2 {
  margin: 6px 0 5px;
  color: #fff7dc;
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 500;
  letter-spacing: 0.12em;
}

.identity-dialog-head p:last-child {
  color: rgba(255, 247, 219, 0.65);
  font-size: 12px;
  letter-spacing: 0.03em;
}

.identity-close {
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0 0 4px;
  place-items: center;
  color: #f4d783;
  background: rgba(22, 22, 17, 0.48);
  border: 1px solid rgba(229, 193, 101, 0.48);
  border-radius: 50%;
  font-family: Georgia, serif;
  font-size: 28px;
  line-height: 1;
}

.identity-tabs {
  display: grid;
  padding: 18px 30px 0;
  background:
    repeating-linear-gradient(90deg, rgba(115, 81, 33, 0.035) 0 1px, transparent 1px 26px);
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.identity-tab {
  display: grid;
  min-height: 67px;
  padding: 11px 20px;
  color: #6c5d43;
  background: rgba(255, 249, 227, 0.52);
  border: 1px solid rgba(111, 78, 31, 0.2);
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
  grid-template-columns: 34px 1fr;
  grid-template-rows: auto auto;
  column-gap: 10px;
  text-align: left;
}

.identity-tab > span {
  grid-row: 1 / 3;
  align-self: center;
  color: #a77a2a;
  font-family: Georgia, serif;
  font-size: 22px;
}

.identity-tab strong {
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.1em;
}

.identity-tab small {
  margin-top: 3px;
  color: #97866b;
  font-size: 9px;
  letter-spacing: 0.12em;
}

.identity-tab.is-active {
  color: #fff4d2;
  background:
    linear-gradient(120deg, rgba(209, 164, 53, 0.14), transparent),
    #343929;
  border-color: #9e792f;
  box-shadow: inset 0 0 0 1px rgba(231, 194, 100, 0.17);
}

.identity-tab.is-active small {
  color: rgba(255, 244, 210, 0.55);
}

.identity-panel {
  display: none;
  min-height: 0;
  padding: 30px 34px 24px;
  overflow-y: auto;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 253, 235, 0.75), transparent 31%),
    repeating-linear-gradient(135deg, rgba(116, 82, 32, 0.026) 0 1px, transparent 1px 8px);
}

.identity-panel.is-active {
  display: block;
}

.portrait-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.portrait-card {
  position: relative;
  padding: 25px 18px 18px;
  background:
    linear-gradient(145deg, rgba(255, 251, 228, 0.9), rgba(218, 199, 158, 0.72));
  border: 1px solid rgba(115, 78, 25, 0.28);
  border-radius: 24px;
  box-shadow:
    inset 0 0 0 4px rgba(255, 251, 228, 0.48),
    0 15px 32px rgba(75, 54, 26, 0.12);
  text-align: center;
}

.portrait-card::before,
.portrait-card::after {
  position: absolute;
  color: rgba(150, 108, 37, 0.74);
  content: "✦";
  font-size: 12px;
}

.portrait-card::before {
  top: 10px;
  left: 13px;
}

.portrait-card::after {
  right: 13px;
  bottom: 10px;
}

.portrait-frame {
  width: min(150px, 78%);
  aspect-ratio: 1;
  margin: 0 auto 17px;
  padding: 9px;
  background:
    conic-gradient(from 45deg, #684619, #e4c46c, #865d1f, #f0d783, #684619);
  border: 3px solid #704c1c;
  border-radius: 50%;
  box-shadow:
    0 0 0 4px #d3aa4a,
    0 0 0 6px #68491e,
    0 14px 28px rgba(69, 45, 18, 0.27),
    inset 0 0 9px rgba(255, 243, 192, 0.7);
}

.portrait-preview {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: #fff6d7;
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 237, 156, 0.2), transparent 25%),
    #6c3038;
  border: 2px solid #392b1c;
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 48px;
}

.profile-user .portrait-preview {
  color: #2d2819;
  background: #c69b35;
}

.profile-sunflower .portrait-preview {
  color: #302c18;
  background:
    radial-gradient(circle at 50% 50%, #664f19 0 13%, #dfb52d 14% 27%, #71591c 28% 34%, #d7a822 35%);
}

.portrait-copy {
  display: grid;
  margin-bottom: 14px;
}

.portrait-copy span {
  color: #887451;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.portrait-copy strong {
  margin-top: 5px;
  color: #30291e;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
}

.portrait-actions {
  display: flex;
  justify-content: center;
  gap: 7px;
}

.portrait-actions button {
  min-height: 36px;
  padding: 0 12px;
  color: #fff3d0;
  background: #48513b;
  border: 1px solid #293023;
  border-radius: 14px;
  font-size: 10px;
}

.portrait-actions button + button {
  color: #6e5b39;
  background: rgba(255, 250, 231, 0.58);
  border-color: rgba(110, 79, 33, 0.23);
}

.portrait-actions button:disabled {
  opacity: 0.38;
}

.name-register {
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 253, 238, 0.72), rgba(238, 224, 191, 0.75));
  border: 4px double rgba(128, 90, 31, 0.53);
  border-radius: 24px;
  box-shadow:
    inset 0 0 34px rgba(124, 82, 28, 0.12),
    0 16px 38px rgba(67, 45, 19, 0.11);
}

.name-register-row {
  display: grid;
  min-height: 96px;
  padding: 17px 22px;
  align-items: center;
  grid-template-columns: 50px minmax(170px, 0.8fr) minmax(220px, 1.2fr);
  gap: 14px;
  border-bottom: 1px solid rgba(112, 76, 29, 0.16);
}

.name-register-row:last-child {
  border-bottom: 0;
}

.name-register-index {
  color: #ae812e;
  font-family: Georgia, serif;
  font-size: 27px;
}

.name-register-copy {
  display: grid;
}

.name-register-copy strong {
  color: #342d21;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.07em;
}

.name-register-copy small {
  margin-top: 5px;
  color: #948266;
  font-size: 9px;
  letter-spacing: 0.08em;
}

.name-register-row input {
  width: 100%;
  min-height: 49px;
  padding: 0 16px;
  color: #28231b;
  background: rgba(255, 253, 241, 0.82);
  border: 1px solid rgba(110, 75, 27, 0.3);
  border-radius: 16px;
  box-shadow: inset 0 2px 6px rgba(82, 55, 21, 0.07);
  font-family: var(--serif);
  font-size: 16px;
}

.identity-footnote {
  margin-top: 18px;
  color: #8d7b5f;
  font-size: 10px;
  letter-spacing: 0.03em;
  text-align: center;
}

.identity-dialog-actions {
  display: flex;
  min-height: 76px;
  padding: 14px 30px;
  align-items: center;
  justify-content: space-between;
  color: #8d7b5d;
  background: rgba(211, 192, 151, 0.5);
  border-top: 1px solid rgba(109, 75, 27, 0.18);
  font-size: 10px;
}

.identity-dialog-actions > div {
  display: flex;
  gap: 9px;
}

.identity-dialog-actions button {
  min-height: 42px;
  padding: 0 20px;
  border-radius: 16px;
}

.identity-save {
  color: #fff1c8;
  background:
    linear-gradient(135deg, rgba(229, 190, 83, 0.12), transparent),
    #3e4a36;
  border: 1px solid #273021;
  box-shadow:
    inset 0 0 0 1px rgba(238, 206, 122, 0.16),
    0 8px 18px rgba(45, 50, 36, 0.18);
}

/* Sunflowers is the room, not a wall decoration. */

html[data-site="sunflower"] {
  --sun-gold: #e0b633;
  --sun-gold-bright: #f0cc56;
  --sun-ochre: #b27716;
  --sun-umber: #5f3d16;
  --sun-olive: #313c2b;
  --sun-olive-dark: #1d271d;
  --sun-blue: #547a91;
  --sun-cream: #f2e5b9;
  --sun-parchment: #ead8a2;
}

html[data-site="sunflower"] body {
  background-color: #1e271c;
  background-image:
    radial-gradient(circle at 72% 18%, rgba(238, 188, 44, 0.18), transparent 25%),
    linear-gradient(100deg, rgba(23, 29, 21, 0.18), rgba(22, 28, 20, 0.67)),
    url("/assets/van-gogh-sunflowers-desktop.jpg");
  background-position: center 38%;
  background-attachment: fixed;
  background-size: cover;
}

html[data-site="sunflower"] .paper-grain {
  opacity: 0.3;
  background-image:
    repeating-radial-gradient(circle at 20% 30%, rgba(255, 242, 183, 0.1) 0 1px, transparent 1px 4px);
  mix-blend-mode: overlay;
}

html[data-site="sunflower"] .app-shell {
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(105deg, rgba(30, 39, 27, 0.27), rgba(26, 33, 24, 0.66)),
    url("/assets/van-gogh-sunflowers-desktop.jpg") center 39% / cover fixed;
}

html[data-site="sunflower"] .app-shell::before {
  position: absolute;
  inset: 72px 0 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at 15% 30%, rgba(230, 183, 47, 0.13), transparent 20%),
    repeating-linear-gradient(90deg, rgba(244, 214, 119, 0.03) 0 1px, transparent 1px 31px);
  box-shadow: inset 0 0 180px rgba(13, 17, 12, 0.5);
}

html[data-site="sunflower"] .site-header {
  position: relative;
  z-index: 20;
  color: #fff2c8;
  background:
    linear-gradient(90deg, rgba(24, 31, 22, 0.92), rgba(42, 43, 25, 0.82)),
    url("/assets/van-gogh-sunflowers-desktop.jpg") center 58% / cover;
  border-top: 2px solid #6f4b17;
  border-bottom: 4px double rgba(226, 181, 67, 0.82);
  box-shadow:
    0 9px 25px rgba(8, 12, 8, 0.4),
    inset 0 1px rgba(255, 223, 131, 0.18);
}

html[data-site="sunflower"] .site-header::after {
  position: absolute;
  right: 23%;
  bottom: -11px;
  width: 58px;
  height: 17px;
  content: "❦";
  color: #e2b942;
  background: #293124;
  border: 1px solid #a87b24;
  border-radius: 0 0 18px 18px;
  font-family: Georgia, serif;
  font-size: 13px;
  line-height: 14px;
  text-align: center;
}

html[data-site="sunflower"] .brand-mark {
  color: #2f2d17;
  background:
    radial-gradient(circle, #5d4918 0 15%, #e4b92f 16% 45%, #7f631c 46% 55%, #d9aa24 56%);
  border: 3px double #f0ce67;
  border-radius: 50%;
  box-shadow:
    0 0 0 2px #61431b,
    0 7px 15px rgba(0, 0, 0, 0.32);
  transform: none;
}

html[data-site="sunflower"] .brand-words strong {
  color: #fff1bd;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

html[data-site="sunflower"] .module-nav {
  background: transparent;
}

html[data-site="sunflower"] .module-tab {
  color: rgba(255, 239, 194, 0.62);
  border: 1px solid transparent;
}

html[data-site="sunflower"] .module-tab:hover {
  color: #fff1bd;
  border-color: rgba(222, 178, 64, 0.22);
}

html[data-site="sunflower"] .module-tab.is-active {
  color: #fff1bd;
  background:
    linear-gradient(135deg, rgba(223, 179, 59, 0.16), rgba(27, 36, 25, 0.32));
  border-color: rgba(232, 195, 95, 0.35);
  box-shadow: inset 0 0 0 1px rgba(38, 28, 13, 0.3);
}

html[data-site="sunflower"] .identity-button {
  background:
    linear-gradient(135deg, rgba(227, 183, 62, 0.15), transparent),
    rgba(24, 31, 22, 0.54);
  border-color: rgba(233, 197, 99, 0.42);
}

html[data-site="sunflower"] .main-stage {
  min-height: 0;
  background: transparent;
}

html[data-site="sunflower"] .chat-view.is-active {
  padding: 18px;
  background:
    radial-gradient(circle at 16% 34%, rgba(228, 174, 37, 0.17), transparent 22%),
    linear-gradient(110deg, rgba(21, 28, 20, 0.28), rgba(22, 29, 20, 0.62));
  gap: 16px;
}

html[data-site="sunflower"] .conversation-rail {
  position: relative;
  overflow: hidden;
  color: #f5e6b8;
  background:
    linear-gradient(160deg, rgba(35, 43, 30, 0.86), rgba(22, 30, 21, 0.96)),
    url("/assets/van-gogh-sunflowers-desktop.jpg") 24% 43% / auto 130% no-repeat;
  border: 4px double rgba(213, 164, 50, 0.62);
  border-radius: 28px;
  box-shadow:
    0 22px 55px rgba(8, 12, 7, 0.36),
    inset 0 0 55px rgba(9, 13, 8, 0.32);
}

html[data-site="sunflower"] .conversation-rail::before {
  display: block;
  position: absolute;
  inset: 11px;
  pointer-events: none;
  content: "";
  border: 1px solid rgba(236, 202, 112, 0.18);
  border-radius: 19px;
}

html[data-site="sunflower"] .conversation-rail .eyebrow,
html[data-site="sunflower"] .conversation-rail h2,
html[data-site="sunflower"] .rail-foot {
  color: #f2dda1;
}

html[data-site="sunflower"] .conversation-rail .icon-button {
  color: #f1cf69;
  background: rgba(19, 26, 19, 0.58);
  border-color: rgba(227, 184, 66, 0.42);
}

html[data-site="sunflower"] .conversation-item {
  color: rgba(255, 238, 190, 0.78);
  border: 1px solid transparent;
}

html[data-site="sunflower"] .conversation-item:hover {
  background: rgba(239, 199, 83, 0.08);
  border-color: rgba(229, 186, 65, 0.15);
}

html[data-site="sunflower"] .conversation-item.is-active {
  color: #382c19;
  background:
    linear-gradient(135deg, rgba(255, 250, 216, 0.96), rgba(224, 193, 114, 0.94));
  border-color: #c99a32;
  box-shadow:
    inset 0 0 0 2px rgba(255, 248, 209, 0.54),
    0 10px 25px rgba(0, 0, 0, 0.22);
}

html[data-site="sunflower"] .conversation-item.is-active::before {
  background: var(--sun-blue);
}

html[data-site="sunflower"] .chat-panel {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(242, 229, 183, 0.9), rgba(232, 211, 154, 0.94)),
    radial-gradient(circle at 20% 30%, #f4d775 0 2px, transparent 3px);
  border: 5px double rgba(137, 94, 25, 0.74);
  border-radius: 30px;
  box-shadow:
    0 26px 65px rgba(10, 14, 9, 0.35),
    inset 0 0 80px rgba(118, 71, 16, 0.14);
}

html[data-site="sunflower"] .chat-panel::after,
html[data-site="sunflower"] .shared-room::after,
html[data-site="sunflower"] .prompt-card::after {
  position: absolute;
  right: 15px;
  bottom: 11px;
  pointer-events: none;
  content: "❦";
  color: rgba(132, 91, 25, 0.52);
  font-family: Georgia, serif;
  font-size: 22px;
}

html[data-site="sunflower"] .chat-topbar {
  color: #3d3420;
  background:
    linear-gradient(90deg, rgba(255, 246, 209, 0.88), rgba(221, 190, 110, 0.75)),
    repeating-radial-gradient(circle at 10% 50%, rgba(127, 89, 26, 0.09) 0 1px, transparent 2px 13px);
  border-bottom: 3px double rgba(137, 94, 25, 0.42);
}

html[data-site="sunflower"] .memory-status {
  color: #594929;
  background: rgba(255, 248, 215, 0.68);
  border: 1px solid rgba(127, 87, 22, 0.25);
}

html[data-site="sunflower"] .messages {
  background:
    radial-gradient(circle at 92% 10%, rgba(224, 174, 42, 0.25), transparent 25%),
    repeating-radial-gradient(ellipse at 8% 70%, rgba(98, 115, 77, 0.06) 0 7px, transparent 8px 26px),
    linear-gradient(150deg, rgba(247, 234, 194, 0.86), rgba(228, 207, 151, 0.74));
}

html[data-site="sunflower"] .empty-copy {
  color: #392f1c;
  background:
    linear-gradient(140deg, rgba(255, 249, 219, 0.93), rgba(224, 192, 108, 0.82));
  border: 4px double rgba(129, 86, 22, 0.52);
  box-shadow:
    inset 0 0 0 6px rgba(255, 248, 213, 0.32),
    0 20px 50px rgba(74, 47, 12, 0.18);
}

html[data-site="sunflower"] .message-avatar,
html[data-site="sunflower"] .shared-message-avatar {
  border: 3px double #e4bd57;
  border-radius: 50%;
  box-shadow:
    0 0 0 2px #6d4d1e,
    0 8px 18px rgba(60, 40, 14, 0.24);
}

html[data-site="sunflower"] .message-content {
  color: #332c1e;
  background:
    linear-gradient(135deg, rgba(255, 250, 225, 0.98), rgba(238, 219, 165, 0.96));
  border: 2px solid rgba(135, 92, 25, 0.34);
  border-radius: 24px;
  box-shadow:
    inset 0 0 0 2px rgba(255, 250, 223, 0.42),
    0 11px 27px rgba(84, 55, 17, 0.11);
}

html[data-site="sunflower"] .message.user .message-content {
  color: #fff3c8;
  background:
    linear-gradient(145deg, rgba(82, 112, 128, 0.94), rgba(45, 71, 81, 0.98));
  border-color: #365465;
  box-shadow:
    inset 0 0 0 2px rgba(226, 203, 127, 0.13),
    0 13px 30px rgba(31, 53, 62, 0.23);
}

html[data-site="sunflower"] .composer {
  background: linear-gradient(transparent, rgba(91, 71, 31, 0.19) 31%);
}

html[data-site="sunflower"] .composer-paper {
  background:
    linear-gradient(135deg, rgba(255, 250, 226, 0.98), rgba(229, 207, 151, 0.97));
  border: 4px double rgba(126, 84, 20, 0.58);
  border-radius: 25px;
  box-shadow:
    0 20px 44px rgba(70, 45, 12, 0.2),
    inset 0 0 0 3px rgba(255, 248, 214, 0.46);
}

html[data-site="sunflower"] .send-button,
html[data-site="sunflower"] .primary-button {
  color: #fff0be;
  background:
    linear-gradient(135deg, rgba(224, 182, 63, 0.12), transparent),
    #3d503b;
  border: 1px solid #273726;
  box-shadow: inset 0 0 0 1px rgba(237, 202, 111, 0.16);
}

html[data-site="sunflower"] .shared-view,
html[data-site="sunflower"] .memory-view {
  background:
    linear-gradient(108deg, rgba(24, 31, 22, 0.28), rgba(21, 28, 20, 0.67)),
    url("/assets/van-gogh-sunflowers-desktop.jpg") center 42% / cover fixed;
}

html[data-site="sunflower"] .shared-shell {
  width: min(1390px, calc(100% - 42px));
  padding: 25px 0;
}

html[data-site="sunflower"] .shared-hero {
  border: 7px double #bf8d2d;
  background:
    linear-gradient(155deg, rgba(34, 43, 30, 0.23), rgba(24, 31, 23, 0.88)),
    url("/assets/van-gogh-sunflowers-desktop.jpg") center 38% / cover no-repeat;
  border-radius: 27px;
  box-shadow:
    0 0 0 3px rgba(42, 31, 14, 0.92),
    0 25px 60px rgba(0, 0, 0, 0.38),
    inset 0 0 45px rgba(0, 0, 0, 0.24);
}

html[data-site="sunflower"] .shared-hero h1 {
  color: #fff1bd;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.58);
}

html[data-site="sunflower"] .shared-presence {
  background: rgba(27, 34, 24, 0.68);
  border: 1px solid rgba(232, 195, 97, 0.42);
  box-shadow: inset 0 0 0 1px rgba(16, 20, 14, 0.43);
}

html[data-site="sunflower"] .shared-room-tab {
  color: rgba(255, 238, 190, 0.73);
  background:
    linear-gradient(145deg, rgba(57, 67, 47, 0.92), rgba(28, 37, 27, 0.95));
  border: 3px double rgba(194, 145, 43, 0.46);
}

html[data-site="sunflower"] .shared-room-tab:hover,
html[data-site="sunflower"] .shared-room-tab.is-active {
  color: #392e1b;
  background:
    linear-gradient(140deg, rgba(255, 245, 202, 0.96), rgba(220, 185, 88, 0.96));
  border-color: #a77724;
  box-shadow:
    inset 0 0 0 2px rgba(255, 246, 207, 0.44),
    0 14px 32px rgba(9, 13, 8, 0.3);
}

html[data-site="sunflower"] .room-tab-mark {
  color: #2f2f1c;
  background: #d9ac27;
  border: 2px solid #6f501d;
  border-radius: 50%;
}

html[data-site="sunflower"] .shared-room {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(244, 232, 192, 0.94), rgba(229, 207, 150, 0.94));
  border: 6px double rgba(136, 91, 22, 0.72);
  box-shadow:
    0 0 0 2px rgba(224, 182, 77, 0.58),
    0 27px 70px rgba(7, 11, 7, 0.38),
    inset 0 0 68px rgba(116, 72, 18, 0.12);
}

html[data-site="sunflower"] .shared-room-head {
  background:
    linear-gradient(90deg, rgba(255, 247, 210, 0.88), rgba(218, 185, 98, 0.74));
  border-bottom: 3px double rgba(132, 88, 22, 0.39);
}

html[data-site="sunflower"] .shared-messages {
  background:
    radial-gradient(circle at 93% 5%, rgba(223, 171, 37, 0.23), transparent 24%),
    repeating-radial-gradient(ellipse at 10% 80%, rgba(79, 98, 65, 0.055) 0 6px, transparent 7px 25px),
    linear-gradient(160deg, rgba(248, 236, 198, 0.82), rgba(228, 207, 151, 0.75));
}

html[data-site="sunflower"] .shared-message-content {
  background:
    linear-gradient(135deg, rgba(255, 250, 225, 0.98), rgba(238, 218, 163, 0.97));
  border: 2px solid rgba(131, 88, 21, 0.29);
  box-shadow:
    inset 0 0 0 2px rgba(255, 250, 224, 0.35),
    0 10px 25px rgba(79, 50, 14, 0.1);
}

html[data-site="sunflower"] .shared-message.sender-sunflower .shared-message-content {
  color: #3c321d;
  background:
    linear-gradient(135deg, rgba(255, 243, 184, 0.98), rgba(223, 181, 63, 0.91));
  border-color: rgba(123, 82, 18, 0.36);
}

html[data-site="sunflower"] .shared-message.sender-user .shared-message-content {
  color: #fff2c4;
  background: linear-gradient(145deg, #557489, #304e5c);
  border-color: #365665;
}

html[data-site="sunflower"] .shared-composer {
  background:
    linear-gradient(90deg, rgba(213, 180, 95, 0.64), rgba(197, 160, 67, 0.58));
  border-top: 3px double rgba(129, 84, 19, 0.33);
}

html[data-site="sunflower"] .shared-composer textarea {
  background: rgba(255, 248, 216, 0.93);
  border: 2px solid rgba(125, 84, 21, 0.36);
}

html[data-site="sunflower"] .memory-page {
  padding-bottom: 50px;
}

html[data-site="sunflower"] .memory-hero {
  margin: 26px 0 22px;
  padding: 30px 34px;
  color: #fff0bc;
  background:
    linear-gradient(120deg, rgba(30, 39, 28, 0.85), rgba(27, 34, 24, 0.69)),
    url("/assets/van-gogh-sunflowers-desktop.jpg") center 42% / cover;
  border: 7px double #bc892b;
  border-radius: 30px;
  box-shadow:
    0 0 0 3px #2c271a,
    0 24px 55px rgba(6, 10, 6, 0.36);
}

html[data-site="sunflower"] .memory-hero h1,
html[data-site="sunflower"] .memory-hero p {
  color: #fff0bc;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.48);
}

html[data-site="sunflower"] .memory-workbench,
html[data-site="sunflower"] .prompt-card,
html[data-site="sunflower"] .memory-card {
  position: relative;
  background:
    linear-gradient(145deg, rgba(250, 238, 197, 0.96), rgba(226, 203, 145, 0.95));
  border: 4px double rgba(133, 91, 26, 0.55);
  box-shadow:
    inset 0 0 0 3px rgba(255, 247, 211, 0.4),
    0 18px 44px rgba(22, 22, 12, 0.19);
}

html[data-site="sunflower"] .login-screen {
  background:
    radial-gradient(circle at 26% 42%, rgba(244, 198, 63, 0.12), transparent 25%),
    linear-gradient(100deg, rgba(18, 23, 17, 0.06), rgba(18, 23, 17, 0.68));
}

html[data-site="sunflower"] .login-screen::before {
  border: 15px ridge #9b6c21;
  box-shadow:
    0 0 0 4px #2a2115,
    0 0 0 8px #d0a23c,
    0 39px 105px rgba(0, 0, 0, 0.58),
    inset 0 0 45px rgba(36, 27, 13, 0.28);
}

html[data-site="sunflower"] .login-card {
  background:
    radial-gradient(circle at 12% 8%, rgba(225, 184, 57, 0.13), transparent 25%),
    linear-gradient(145deg, rgba(51, 63, 43, 0.96), rgba(21, 29, 21, 0.985));
  border: 5px double rgba(220, 174, 55, 0.72);
  box-shadow:
    0 0 0 3px #201c12,
    0 0 0 5px rgba(223, 179, 62, 0.66),
    0 40px 110px rgba(0, 0, 0, 0.54),
    inset 0 0 55px rgba(7, 11, 7, 0.34);
}

html[data-site="sunflower"] .login-card::before,
html[data-site="sunflower"] .login-card::after {
  width: 72px;
  height: 72px;
  border-width: 3px;
  border-color: #e0b640;
}

html[data-site="sunflower"] .login-card h1 {
  color: #fff0b6;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
}

html[data-site="sunflower"] .seal {
  color: #312c16;
  background:
    radial-gradient(circle, #5a4717 0 16%, #e7bb31 17% 45%, #7a5e1c 46% 54%, #d9a922 55%);
  border: 4px double #f0cf6c;
  border-radius: 50%;
  box-shadow:
    0 0 0 2px #5b3d17,
    0 14px 30px rgba(0, 0, 0, 0.34);
  transform: none;
}

@media (max-width: 980px) {
  .identity-button-copy {
    display: none;
  }

  .identity-button {
    padding-right: 8px;
  }

  html[data-site="sunflower"] .chat-view.is-active {
    padding: 11px;
    gap: 10px;
  }

  html[data-site="sunflower"] .shared-shell {
    width: calc(100% - 24px);
  }
}

@media (max-width: 720px) {
  .header-actions {
    gap: 5px;
  }

  .identity-button {
    width: 51px;
    height: 40px;
    padding: 4px 5px;
    justify-content: center;
    border-radius: 14px;
  }

  .identity-miniatures {
    padding-left: 12px;
  }

  .identity-miniature {
    width: 24px;
    height: 24px;
    margin-left: -12px;
    border-width: 1px;
    font-size: 9px;
  }

  .logout-button {
    min-width: 44px;
    padding: 0 8px;
  }

  .identity-dialog {
    width: calc(100vw - 18px);
    max-height: calc(100dvh - 18px);
    border-width: 5px;
    border-radius: 25px;
  }

  .identity-dialog form {
    min-height: calc(100dvh - 30px);
    max-height: calc(100dvh - 30px);
  }

  .identity-dialog-head {
    min-height: 117px;
    padding: 22px 21px 18px;
  }

  .identity-dialog-head h2 {
    font-size: 30px;
  }

  .identity-dialog-head p:last-child {
    max-width: 270px;
    font-size: 10px;
  }

  .identity-dialog-head::after {
    right: 66px;
  }

  .identity-tabs {
    padding: 13px 13px 0;
    gap: 7px;
  }

  .identity-tab {
    min-height: 58px;
    padding: 8px 10px;
    grid-template-columns: 25px 1fr;
    column-gap: 5px;
  }

  .identity-tab > span {
    font-size: 17px;
  }

  .identity-tab strong {
    font-size: 13px;
  }

  .identity-tab small {
    display: none;
  }

  .identity-panel {
    padding: 19px 13px 16px;
  }

  .portrait-gallery {
    display: flex;
    flex-direction: column;
    gap: 11px;
  }

  .portrait-card {
    display: grid;
    min-height: 116px;
    padding: 14px;
    align-items: center;
    grid-template-columns: 82px 1fr;
    grid-template-rows: 1fr auto;
    column-gap: 14px;
    text-align: left;
  }

  .portrait-frame {
    width: 72px;
    margin: 0;
    padding: 5px;
    grid-row: 1 / 3;
  }

  .portrait-preview {
    font-size: 28px;
  }

  .portrait-copy {
    margin: 0;
  }

  .portrait-actions {
    justify-content: flex-start;
  }

  .portrait-actions button {
    min-height: 32px;
    padding: 0 9px;
  }

  .name-register-row {
    min-height: 112px;
    padding: 14px;
    grid-template-columns: 32px 1fr;
    grid-template-rows: auto auto;
    gap: 8px;
  }

  .name-register-row input {
    min-height: 44px;
    grid-column: 1 / 3;
  }

  .name-register-index {
    font-size: 22px;
  }

  .identity-dialog-actions {
    min-height: 72px;
    padding: 10px 13px;
  }

  .identity-dialog-actions > span {
    max-width: 92px;
  }

  .identity-dialog-actions button {
    min-height: 40px;
    padding: 0 13px;
  }

  html[data-site="sunflower"] .app-shell {
    background:
      linear-gradient(rgba(25, 32, 23, 0.43), rgba(24, 31, 22, 0.69)),
      url("/assets/van-gogh-sunflowers-mobile.jpg") center top / cover fixed;
  }

  html[data-site="sunflower"] .site-header {
    background:
      linear-gradient(90deg, rgba(24, 31, 22, 0.93), rgba(53, 50, 25, 0.88)),
      url("/assets/van-gogh-sunflowers-mobile.jpg") center 54% / cover;
  }

  html[data-site="sunflower"] .site-header::after {
    display: none;
  }

  html[data-site="sunflower"] .chat-view.is-active {
    padding: 0;
    gap: 0;
  }

  html[data-site="sunflower"] .chat-panel {
    border: 0;
    border-radius: 0;
  }

  html[data-site="sunflower"] .conversation-rail {
    border-radius: 0 24px 24px 0;
  }

  html[data-site="sunflower"] .shared-view,
  html[data-site="sunflower"] .memory-view {
    background:
      linear-gradient(rgba(24, 31, 22, 0.38), rgba(22, 29, 21, 0.69)),
      url("/assets/van-gogh-sunflowers-mobile.jpg") center top / cover fixed;
  }

  html[data-site="sunflower"] .shared-shell {
    width: calc(100% - 16px);
    padding-top: 13px;
  }

  html[data-site="sunflower"] .shared-hero {
    border-width: 5px;
  }

  html[data-site="sunflower"] .shared-room {
    border-width: 4px;
  }

  html[data-site="sunflower"] .memory-page {
    width: calc(100% - 16px);
  }

  html[data-site="sunflower"] .memory-hero {
    margin-top: 15px;
    padding: 23px 20px;
    border-width: 5px;
  }
}
