@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@500;600;700;800&family=Quicksand:wght@500;600;700;800&display=swap");

:root {
  --bg: #f3f0ff;
  --paper: #ffffff;
  --ink: #3d3560;
  --muted: #8a82a8;
  --line: #ece8f8;
  --blue: #8a70ff;
  --blue-2: #6c5ce7;
  --coral: #ff5e7e;
  --orange: #ff8e53;
  --shadow: 0 10px 28px rgba(108, 92, 231, .10);
  --radius: 22px;
}
body, body.theme-gunisigi, body.theme-lavanta, body.theme-okyanus, body.theme-seker {
  font-family: Quicksand, "Segoe UI", sans-serif;
  background:
    radial-gradient(900px 420px at 88% -8%, #ffe3f0 0%, transparent 55%),
    radial-gradient(700px 380px at -10% 110%, #d9fff3 0%, transparent 50%),
    linear-gradient(#f6f3ff, #eef2ff);
}

.btn.primary, .compose-main, .compose-caret {
  background: linear-gradient(90deg, var(--coral), var(--orange));
  box-shadow: 0 10px 20px rgba(255, 94, 126, .28);
  border-radius: 999px;
}
.compose-caret { width: 42px; }
.folder { justify-content: flex-start; text-align: left; }
.folder.on { background: #efeaff; color: var(--blue-2); }
.folder i { background: #efeaff; color: var(--blue-2); font-weight: 800; }
.rail-h { color: var(--blue-2); font-weight: 800; letter-spacing: .08em; text-align: left; }
.pill.on { background: var(--blue); color: #fff; }

/* Splash / hesap ekle */
.login-screen {
  background:
    radial-gradient(circle at 78% 28%, rgba(255,255,255,.7), transparent 34%),
    linear-gradient(160deg, #f4f1ff, #eaf3ff 48%, #fff3f8);
  padding: 18px 18px 28px;
  overflow-x: hidden;
  overflow-y: auto;
  align-content: start;
  place-items: start center;
}
.login-screen .splash {
  width: min(1180px, 100%);
  height: auto;
  display: grid;
  grid-template-rows: auto auto;
  gap: 16px;
  margin: auto;
}
.splash-main {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 12px;
  align-items: start;
  background: rgba(255,255,255,.55);
  border-radius: 28px;
  padding: 28px 28px 24px;
  box-shadow: var(--shadow);
  overflow: visible;
}
.wordmark { font-size: 30px; font-weight: 800; margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }
.wordmark .mark-ico { display: grid; place-items: center; flex-shrink: 0; }
.wordmark .a { color: #6c5ce7; }
.wordmark .b { color: #ff5e7e; }
.splash-copy h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.15;
  background: linear-gradient(90deg, #6c5ce7, #ff5e7e);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.splash-copy > p:not(.wordmark):not(.secure) { color: var(--muted); max-width: 420px; line-height: 1.5; }
.providers { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 12px 0 10px; }
.provider {
  width: auto; height: auto; min-height: 86px; border-radius: 16px; background: #fff;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  cursor: pointer; font: inherit; font-size: 11px; font-weight: 800; color: var(--ink); padding: 10px 4px;
}
.provider svg { display: block; }
.provider.on { outline: 2px solid var(--blue); }
.splash-cta {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 280px; padding: 14px 22px; border: 0; border-radius: 999px;
  color: #fff; font: inherit; font-weight: 800; cursor: pointer; text-transform: uppercase;
  background: linear-gradient(90deg, #ff5e7e, #ff8e53);
  box-shadow: 0 12px 24px rgba(255, 94, 126, .3);
}
.splash-later {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 200px; margin: 8px 0 2px; padding: 9px 20px;
  background: #fff; border: 2px solid #c4b5fd; border-radius: 999px;
  color: var(--blue-2); font: inherit; font-weight: 800; cursor: pointer; text-decoration: none;
}
.splash-copy .secure { display: flex; gap: 8px; align-items: center; color: #00b894; font-size: 13px; font-weight: 700; margin: 12px 0 0; }
.secure .shield {
  width: 16px; height: 16px; border-radius: 50% 50% 50% 50% / 12% 12% 88% 88%;
  background: #00b894; box-shadow: inset 0 -2px 0 rgba(0,0,0,.12);
  position: relative; display: inline-block;
}
.secure .shield::after { content: "✓"; color: #fff; font-size: 10px; position: absolute; inset: 0; display: grid; place-items: center; }
.splash-hero { position: relative; display: grid; place-items: center; min-height: 340px; overflow: visible; }
.splash-hero .flyer { position: relative; z-index: 2; animation: floaty 3.2s ease-in-out infinite; filter: drop-shadow(0 18px 24px rgba(108,92,231,.22)); }
.splash-hero .flyer .cape { transform-origin: 120px 120px; animation: cape 2.4s ease-in-out infinite; }
.hero-glow {
  position: absolute; width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.95) 0%, rgba(196,181,253,.45) 40%, transparent 70%);
  animation: pulse 3.6s ease-in-out infinite;
}
.hero-swirl {
  position: absolute; width: 240px; height: 240px; border-radius: 50%;
  border: 10px solid transparent; border-top-color: rgba(255,94,126,.35); border-left-color: rgba(108,92,231,.25);
  animation: spin 8s linear infinite;
}
.bit { position: absolute; z-index: 3; display: block; }
.bit.heart { width: 14px; height: 14px; background: #ff5e7e; transform: rotate(45deg); animation: pop 2.8s ease-in-out infinite; }
.bit.heart::before, .bit.heart::after {
  content: ""; position: absolute; width: 14px; height: 14px; background: #ff5e7e; border-radius: 50%;
}
.bit.heart::before { left: -7px; } .bit.heart::after { top: -7px; }
.bit.heart.a { top: 18%; right: 18%; animation-delay: .2s; }
.bit.heart.b { bottom: 28%; left: 12%; animation-delay: 1.1s; background: #ff8aa8; }
.bit.star { width: 12px; height: 12px; background: #ffd166; clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); animation: pop 2.4s ease-in-out infinite; }
.bit.star.a { top: 12%; left: 22%; }
.bit.star.b { bottom: 18%; right: 14%; animation-delay: .8s; }
.bit.conf { width: 8px; height: 8px; border-radius: 2px; animation: confetti 3s linear infinite; }
.bit.conf.c1 { background: #00b894; top: 30%; left: 16%; }
.bit.conf.c2 { background: #ff8e53; top: 40%; right: 10%; animation-delay: .6s; }
.bit.conf.c3 { background: #8a70ff; bottom: 22%; left: 28%; animation-delay: 1.2s; }
.mini-env {
  position: absolute; z-index: 3; width: 28px; height: 18px; border-radius: 3px;
  animation: floaty 2.8s ease-in-out infinite;
}
.mini-env.teal { background: #7ee0d6; top: 22%; right: 8%; }
.mini-env.pink { background: #ff9bb3; bottom: 24%; right: 22%; animation-delay: .5s; }
.mini-env.gold { background: #ffe08a; top: 48%; left: 6%; animation-delay: 1s; }
.splash-cards { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.splash-cards article {
  border-radius: 20px; padding: 14px 16px; background: #fff; box-shadow: var(--shadow);
  display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 10px;
}
.splash-cards article svg { flex-shrink: 0; grid-row: 1 / span 2; }
.splash-cards article:nth-child(1) { background: #f3eaff; }
.splash-cards article:nth-child(2) { background: #e8fff6; }
.splash-cards article:nth-child(3) { background: #fff8dc; }
.splash-cards h3 { margin: 0; font-size: 15px; grid-column: 2; }
.splash-cards p { margin: 2px 0 0; color: var(--muted); font-size: 13px; grid-column: 2; }
.login-fields { display: grid; gap: 8px; margin-top: 12px; max-width: 420px; justify-items: start; }
.login-fields input { width: 100%; border: 1px solid var(--line); border-radius: 14px; padding: 11px 12px; font: inherit; }

@keyframes cape {
  0%, 100% { transform: rotate(-6deg) translateX(0); }
  50% { transform: rotate(8deg) translateX(-6px); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: .85; }
  50% { transform: scale(1.08); opacity: 1; }
}
@keyframes pop {
  0%, 100% { transform: translateY(0) scale(1); opacity: .9; }
  50% { transform: translateY(-10px) scale(1.15); opacity: 1; }
}
@keyframes confetti {
  0% { transform: translateY(0) rotate(0); opacity: 1; }
  100% { transform: translateY(40px) rotate(180deg); opacity: .2; }
}

#app { background: transparent; }
#app > .top { display: none; }
.shell { padding: 14px; gap: 14px; grid-template-columns: 268px var(--yy-list-w, 300px) 8px 1fr; }
body.rail-slim .shell { grid-template-columns: 72px var(--yy-list-w, 300px) 8px 1fr; }
.rail {
  width: 268px;
  padding: 16px 12px 12px;
  min-width: 0;
  overflow: hidden;
  transition: none;
}
.rail-ico { font-style: normal; font-size: 15px; line-height: 1; flex-shrink: 0; font-variant-emoji: emoji; }
.yy-i, .gear-ico { display: block; width: 18px; height: 18px; flex-shrink: 0; }
.rail-min { color: #6c5ce7; font-weight: 800; }
body.rail-slim .rail {
  width: 72px !important;
  max-width: 72px;
  min-width: 0;
  padding: 10px 6px !important;
  overflow-x: hidden;
  font-size: 0;
  line-height: 0;
  transition: none;
}
body.rail-slim .mark,
body.rail-slim .rail-who,
body.rail-slim .rail-h,
body.rail-slim .folder span,
body.rail-slim .folder i:not(.dot),
body.rail-slim .compose-caret,
body.rail-slim .compose-menu,
body.rail-slim .linkish,
body.rail-slim #btn-logout,
body.rail-slim .compose-main span,
body.rail-slim .foot-ico span { display: none !important; }
body.rail-slim .rail-ico,
body.rail-slim .dot,
body.rail-slim .rail-avatar,
body.rail-slim .rail-min { font-size: 16px !important; line-height: 1; }
body.rail-slim .rail-avatar { font-size: 13px !important; }
body.rail-slim .mark { display: none; }
body.rail-slim .mark-row { justify-content: center; padding: 0 0 6px; }
body.rail-slim .rail-min { transform: scaleX(-1); }
body.rail-slim .rail-account { justify-content: center; padding: 6px; }
body.rail-slim .compose-split { justify-content: center; }
body.rail-slim .compose-main {
  width: 100%;
  font-size: 0;
  letter-spacing: 0;
  padding: 10px 0;
}
body.rail-slim .compose-main::before { content: "+"; font-size: 22px; }
body.rail-slim .folder,
body.rail-slim .foot-ico {
  justify-content: center;
  overflow: hidden;
  white-space: nowrap;
  min-width: 0;
  padding-left: 0;
  padding-right: 0;
  font-size: 0;
  letter-spacing: 0;
}
body.rail-slim .rail-ico {
  opacity: 1 !important;
  color: inherit;
  -webkit-text-fill-color: unset;
  font-variant-emoji: emoji;
}
body.rail-slim .rail-ico svg,
body.rail-slim .gear-ico,
body.rail-slim .yy-i {
  display: block;
  width: 18px;
  height: 18px;
  color: #6c5ce7;
}
body.rail-slim .rail-min {
  color: #6c5ce7 !important;
  -webkit-text-fill-color: #6c5ce7;
}
body.rail-slim .folder span,
body.rail-slim .foot-ico span {
  width: 0 !important;
  min-width: 0;
  max-width: 0;
  flex: 0 0 0;
  overflow: hidden;
  opacity: 0;
}
body.rail-slim .rail-foot-btns {
  grid-template-columns: 1fr;
  gap: 4px;
}
body.rail-slim .foot-ico { font-size: 0; padding: 8px 0; }
body.rail-slim .foot-ico .rail-ico { font-size: 15px; }
.mark-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 4px 8px; }
.rail-min { width: 32px; height: 32px; border-radius: 10px; background: #f3eeff; }
.mark { font-size: 22px; font-weight: 800; padding: 2px 8px 0; }
.mark .a { color: #6c5ce7; }
.mark .b { color: #ff5e7e; }
.rail-account {
  background: #f7f5ff; border: 1px solid var(--line); border-radius: 16px; padding: 8px 10px;
}
.compose-split { margin-top: 4px; }
.compose-main { text-transform: uppercase; letter-spacing: .04em; }
.rail-foot { border: 0; flex-shrink: 0; z-index: 3; background: #fff; }
.rail-foot-btns { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 4px; }
.rail-foot-btns .foot-ico {
  background: #f7f5ff; border: 0; border-radius: 14px; padding: 8px 4px; font: inherit; font-size: 11px; font-weight: 700; cursor: pointer; color: var(--ink);
  display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; overflow: hidden;
}

.list-col { background: #fff; }
.list-head { padding: 14px 14px 8px; }
.list-head h2 { display: none; }
#btn-refresh-list, #btn-settings-3 { margin: 8px 8px 0 0; }
.list-search input {
  width: 100%; border: 0; background: #f4f1ff; border-radius: 999px; padding: 12px 16px; font: inherit;
}
.pills { margin-top: 12px; }
.mail-row {
  position: relative;
  margin: 6px 10px; border: 0; border-radius: 16px; background: #fbfaff;
  grid-template-columns: 44px 1fr auto;
}
.mail-row.unread { box-shadow: inset 3px 0 0 var(--blue); }
.mail-row.active { background: #efeaff; }
.unread-dot {
  position: absolute; left: 8px; top: 18px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--blue); font-size: 0;
}
.snip { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.tag-pill { display: inline-block; margin-top: 4px; font-size: 11px; font-weight: 800; border-radius: 999px; padding: 2px 8px; }
.tag-pill.purple { background: #efeaff; color: #6c5ce7; }
.tag-pill.green { background: #e8fff4; color: #059669; }
.tag-pill.orange { background: #fff3e6; color: #ea580c; }

.read-col { background: #fff; position: relative; }
.read-chrome { display: flex; justify-content: flex-end; margin: -6px 0 8px; }
.read-chrome-l { display: flex; gap: 6px; margin-right: auto; }
.read-chrome .bell { position: relative; }
.read-chrome .bell i {
  position: absolute; top: 4px; right: 4px; background: #ff4d6d; color: #fff;
  font-size: 9px; font-style: normal; border-radius: 999px; padding: 0 4px;
}
.read-tools { gap: 6px; }
.read-pane h3 { font-size: 26px; margin: 8px 0 12px; }
.read-who { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; margin-bottom: 12px; }
.read-who b { display: block; }
.read-who small, .read-who #read-date { color: var(--muted); font-size: 12px; }
.letter-stage {
  margin: 8px 8px 0; border-radius: 24px; min-height: 280px;
  background:
    radial-gradient(circle at 70% 20%, #fff 0, transparent 40%),
    linear-gradient(180deg, #f3eeff, #fff8fb);
  display: grid; place-items: center; text-align: center; padding: 20px;
}
.letter-stage .cake { font-size: 48px; letter-spacing: 8px; animation: floaty 3.6s ease-in-out infinite; }
.letter-stage h2 {
  margin: 8px 0 6px; font-size: 28px;
  background: linear-gradient(90deg, #6c5ce7, #ff5e7e);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.letter-stage p { color: var(--muted); max-width: 420px; }
.paper-pick { padding: 12px 16px 20px; }
.paper-pick h4 { margin: 0 0 8px; }
.paper-thumbs { display: flex; gap: 8px; overflow: auto; padding-bottom: 8px; }
.paper-thumbs button {
  width: 72px; height: 56px; border-radius: 12px; border: 2px solid transparent; cursor: pointer;
}
.paper-thumbs button.on { border-color: var(--blue); }
.read-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.read-actions .btn.primary { margin-left: auto; }

.attach-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.attach-list button, .attach-list a {
  border: 1px solid var(--line); background: #f7f5ff; border-radius: 999px;
  padding: 6px 10px; font: inherit; font-size: 12px; cursor: pointer; color: var(--ink); text-decoration: none;
}
.drop-zone {
  margin-top: 10px; border: 2px dashed var(--line); border-radius: 16px; padding: 14px;
  text-align: center; color: var(--muted); position: relative;
}
.drop-zone.on { border-color: var(--blue); background: #efeaff; }
.drop-zone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.compose-page {
  position: fixed; inset: 0; z-index: 45;
  background:
    radial-gradient(900px 420px at 12% -10%, #f3e8ff 0%, transparent 55%),
    radial-gradient(700px 380px at 100% 0%, #e8f0ff 0%, transparent 50%),
    linear-gradient(160deg, #f6f2ff, #eef3ff 48%, #fff6fa);
  display: grid; padding: 10px 12px 12px;
  font-family: Nunito, Quicksand, "Segoe UI", sans-serif;
}
.compose-page.hidden { display: none !important; }
.compose-shell {
  background: #fff; border-radius: 26px; box-shadow: 0 18px 50px rgba(91, 33, 182, .12);
  display: flex; flex-direction: column; min-height: 0; overflow: hidden;
  width: 100%; height: 100%; margin: 0;
}
.cmp-top {
  display: grid; grid-template-columns: 180px 1fr auto; gap: 12px; align-items: center;
  padding: 12px 18px; border-bottom: 1px solid var(--line); background: #fff;
}
.cmp-brand { display: flex; align-items: center; gap: 10px; }
.cmp-brand img {
  width: 38px; height: 38px; border-radius: 50%;
  background: #12203d;
  box-shadow: 0 0 0 2px #e8b923, 0 0 0 4px #1a2a4d;
  object-fit: cover;
}
.cmp-brand strong { font-size: 14px; color: #6c5ce7; font-weight: 800; }
.cmp-heading { text-align: center; }
.cmp-heading h2 { margin: 0; font-size: 22px; color: #3d3560; letter-spacing: -.02em; }
.cmp-draft { margin: 4px 0 0; color: #059669; font-size: 13px; font-weight: 800; display: flex; gap: 6px; justify-content: center; align-items: center; }
.cmp-check {
  display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%;
  background: #059669; color: #fff; font-size: 11px; line-height: 1;
}
.cmp-top-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: flex-end; }
.cmp-tool {
  border: 1px solid var(--line); background: #fff; border-radius: 14px;
  padding: 8px 12px; font: inherit; font-weight: 800; cursor: pointer; color: var(--ink);
  display: inline-flex; align-items: center; gap: 6px;
}
.cmp-tool:hover { border-color: #c4b5fd; background: #fbfaff; }
.cmp-when { border: 1px solid var(--line); border-radius: 12px; padding: 7px 8px; font: inherit; max-width: 190px; }
.cmp-send {
  min-width: 148px; border: 0; color: #fff; cursor: pointer; font: inherit; font-weight: 800;
  letter-spacing: .06em; border-radius: 999px;
  padding: 10px 18px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(90deg, #8b6cff, #6c5ce7);
  box-shadow: 0 12px 24px rgba(108, 92, 231, .32);
}
.cmp-send:hover { filter: brightness(1.04); }
.cmp-meta {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px;
  padding: 12px 18px 10px; border-bottom: 1px solid var(--line);
}
.cmp-meta label { display: grid; grid-template-columns: 72px 1fr; gap: 8px; align-items: center; margin: 0; font-size: 12px; font-weight: 800; color: var(--muted); }
.cmp-meta .cmp-wide, .cmp-meta .cmp-to-row { grid-column: 1 / -1; }
.cmp-meta input, .cmp-meta select {
  width: 100%; border: 1px solid #eeeaf8; border-radius: 14px; padding: 9px 12px; font: inherit; color: var(--ink);
  background: #faf9ff;
}
.cmp-to-wrap { display: flex; gap: 8px; align-items: center; }
.cmp-plus {
  width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer; flex-shrink: 0;
  background: #6ea8ff; color: #fff; font: inherit; font-weight: 900; font-size: 20px; line-height: 1;
  box-shadow: 0 6px 14px rgba(80, 140, 255, .28);
}
.cmp-toolbar {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  padding: 8px 16px; border-bottom: 1px solid var(--line); background: #fff;
}
.cmp-toolbar select, .cmp-toolbar button, .cmp-color {
  border: 1px solid var(--line); background: #fff; border-radius: 10px;
  padding: 6px 10px; font: inherit; font-weight: 800; cursor: pointer; color: var(--ink);
}
.cmp-toolbar button.on, .cmp-toolbar button:hover { background: #f3eeff; border-color: #c4b5fd; }
.cmp-sep { width: 1px; height: 22px; background: var(--line); margin: 0 4px; }
.cmp-toolbar button[data-wrap="**"] { font-weight: 900; }
.cmp-toolbar button[data-wrap="*"] { font-style: italic; }
.cmp-color { position: relative; overflow: hidden; padding: 6px 10px 8px; }
.cmp-color input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.cmp-studio {
  display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; align-items: center;
  padding: 6px 16px 8px; border-bottom: 1px solid var(--line); background: #fbfaff;
}
.cmp-tabs { display: flex; flex-wrap: nowrap; gap: 2px; overflow: auto; }
.cmp-tabs button {
  border: 0; background: transparent; padding: 8px 10px 7px; font: inherit; font-weight: 800;
  color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px;
}
.cmp-tabs button span { font-size: 15px; }
.cmp-tabs button.on { color: #6c5ce7; border-bottom-color: #6c5ce7; }
.cmp-studio-panes { min-height: 72px; min-width: 0; }
.cmp-theme-pane { display: flex; gap: 10px; align-items: center; min-width: 0; }
.cmp-seeall {
  border: 0; background: none; color: #6c5ce7; font: inherit; font-weight: 800; cursor: pointer;
  white-space: nowrap; padding: 6px;
}
.cmp-card-row { display: flex; gap: 8px; overflow: auto; padding-bottom: 6px; }
.cmp-card-row button {
  flex: 0 0 auto; min-width: 98px; border: 2px solid transparent; background: #fff; border-radius: 16px;
  padding: 8px; font: inherit; cursor: pointer; box-shadow: var(--shadow);
}
.cmp-card-row button.on { border-color: #6c5ce7; }
.cmp-card-row b { display: block; font-size: 22px; }
.cmp-canvas {
  flex: 1; min-height: 0; display: flex; padding: 14px 22px;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 186, 214, .28), transparent 42%),
    radial-gradient(circle at 88% 80%, rgba(186, 210, 255, .32), transparent 46%),
    #efeaff;
}
.cmp-stage {
  flex: 1; min-height: 0; display: flex; justify-content: center;
  border-radius: 22px; padding: 18px 12px; overflow: auto;
  background: var(--cmp-outer, #efeaff);
}
.cmp-inner {
  width: min(640px, 100%); min-height: 100%;
  background: var(--cmp-inner, #fff);
  border: 1px solid var(--cmp-line, #ece8f8);
  border-radius: 20px; box-shadow: 0 22px 50px rgba(91, 33, 182, .14);
  display: flex; flex-direction: column; overflow: hidden; position: relative;
}
.cmp-inner::before {
  content: ""; display: block; height: 8px; background: var(--cmp-accent, #8a70ff);
}
.cmp-chrome { text-align: center; padding: 14px 24px 0; }
.cmp-chrome.hidden { display: none; }
.cmp-chrome img { max-height: 88px; margin: 0 auto 6px; display: block; }
.cmp-banner { font-size: 34px; line-height: 1.2; }
.cmp-card-title { margin: 4px 0 0; font-size: 22px; font-weight: 800; color: var(--cmp-accent, #6c5ce7); }
.cmp-canvas textarea {
  flex: 1; width: 100%; min-height: 180px; border: 0; resize: none;
  padding: 16px 28px 22px; background: transparent; font: inherit; font-size: 16px;
  color: var(--cmp-ink, #3d3560); line-height: 1.65;
}
.cmp-preview-wrap { display: none; min-height: 0; overflow: auto; background: transparent; }
.compose-page.is-preview .cmp-canvas textarea { display: none; }
.compose-page.is-preview .cmp-preview-wrap { display: block; flex: 1; }
.compose-page.is-preview .cmp-chrome { display: none; }
.cmp-preview-label { display: block; padding: 8px 12px 0; font-size: 11px; color: var(--muted); font-weight: 800; }
#compose-letter-preview { min-height: 180px; border: 0; background: transparent; }
.cmp-foot {
  display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center;
  padding: 10px 16px 12px; border-top: 1px solid var(--line); background: #fff;
}
.cmp-addfile { margin: 0; padding: 10px 16px; min-width: 140px; border-radius: 14px; font-weight: 800; }
.cmp-addfile p { margin: 0; }
.cmp-foot-r { display: flex; gap: 12px; align-items: center; font-size: 12px; font-weight: 800; color: var(--muted); }
.cmp-ok { color: #059669; }
#compose-sign-edit, [data-cmp-pane="imza"] select {
  width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; font: inherit; margin-bottom: 6px;
}
.paper-thumbs { display: flex; gap: 10px; overflow: auto; padding: 2px 0 6px; flex: 1; min-width: 0; }
.paper-thumbs button, .cmp-thumb {
  width: auto; height: auto; border-radius: 14px; border: 2px solid transparent; cursor: pointer;
  background: #fff; padding: 4px; display: grid; gap: 4px; justify-items: center; font: inherit; font-size: 10px; font-weight: 800; color: var(--muted);
}
.paper-thumbs button.on, .cmp-thumb.on { border-color: #6c5ce7; color: #6c5ce7; }
.cmp-thumb-art {
  width: 86px; height: 54px; border-radius: 10px; display: block; position: relative;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.06);
}
.cmp-thumb.on .cmp-thumb-art::after {
  content: "✓"; position: absolute; right: 4px; top: 4px; width: 16px; height: 16px;
  border-radius: 50%; background: #6c5ce7; color: #fff; font-size: 10px; display: grid; place-items: center;
}
#compose-attach.attach-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
#compose-attach.attach-list .cmp-chip {
  display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: #f7f5ff;
  border-radius: 14px; padding: 6px 10px; font: inherit; cursor: pointer; color: var(--ink);
}
#compose-attach.attach-list .cmp-chip i {
  font-style: normal; font-size: 10px; font-weight: 900; background: #6c5ce7; color: #fff;
  border-radius: 8px; padding: 6px 7px; min-width: 36px; text-align: center;
}
#compose-attach.attach-list .cmp-chip span { display: grid; text-align: left; line-height: 1.15; }
#compose-attach.attach-list .cmp-chip b { font-size: 12px; }
#compose-attach.attach-list .cmp-chip small { color: var(--muted); font-size: 11px; }
.emoji-row { display: flex; flex-wrap: wrap; gap: 6px; }
.emoji-chip { border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 6px 8px; cursor: pointer; font-size: 18px; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@media (max-width: 980px) {
  .compose-grid { grid-template-columns: 1fr; }
  .compose-side { border-left: 0; border-top: 1px solid var(--line); }
  .cmp-meta { grid-template-columns: 1fr; }
  .cmp-studio { grid-template-columns: 1fr; }
  .cmp-top { grid-template-columns: 1fr; }
  .cmp-foot { grid-template-columns: 1fr; }
  .cmp-heading { text-align: left; }
  .cmp-draft { justify-content: flex-start; }
  .providers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .splash-main { grid-template-columns: 1fr; }
  .splash-hero { display: none; }
  .splash-cards { grid-template-columns: 1fr; }
}
@media (max-height: 820px) {
  .splash-hero { min-height: 220px; }
  .provider { min-height: 72px; padding: 8px 4px; }
  .splash-main { padding: 20px 24px 18px; }
}
