:root {
  --ink: #302546;
  --muted: #716783;
  --purple: #7450cd;
  --cyan: #39becf;
  --yellow: #ded0fb;
  --blue: #eef0fc;
  --pink: #f2edff;
  --line: #e4def0;
  --background: #f7f7fd;
}
body { background: radial-gradient(ellipse at 95% 0, #e9f9fc 0, transparent 42%), radial-gradient(ellipse at 0 40%, #f1eafd 0, transparent 44%), var(--background); }
.site-header { border-color: var(--line); }
.brand-caption { color: #716783; }
.eyebrow, .entry-count, .entry-date, .entry-by, .logout-button { color: #716783; }
.sun-dot { color: var(--cyan); }
.primary { background: var(--purple); color: #fff; box-shadow: 0 4px 0 #513599; }
.primary:hover { background: #6542b9; }
.secondary, .icon-button { background: #f0ecfa; color: #594282; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline-color: var(--cyan); }
.auth-card { border-color: #ded7ed; box-shadow: 7px 7px 0 #e4dcf6; }
.small-sticker { background: #e2f8fb; color: #22636e; transform: none; }
.auth-story h1 { font-size: clamp(2rem, 4vw, 3.1rem); }
.story-pills span { background: #ece5fa; color: #604393; border-color: #dbccf3; }
.avatar.mulham { background: #ece3fc; color: #6745af; }
.avatar.raneem { background: #dff7fa; color: #196978; }
.view-tab.active { color: var(--purple); border-color: var(--purple); }
.filter { border-color: #e1d9ee; color: #716783; }
.filter.active { background: #ece4fb; border-color: #c6afea; color: #5f3d9b; }
.entry-card { border-color: #e6e0f1; }
.entry-card.good { border-top-color: var(--purple); }
.entry-card.bad { border-top-color: var(--cyan); }
.good .kind-badge { background: #eee7fc; color: #6745af; }
.bad .kind-badge { background: #e2f8fb; color: #236875; }
.entry-stars, .rating button { color: #8b65d4; }
.text-button { color: #6f608b; }
.reaction { background: #f9f7fd; border-color: #e6dff1; }
.reaction.selected { background: #ebe2fb; border-color: #ad90df; }
.reaction:hover { border-color: #bba2e5; }
.private-banner { background: #eeebfb; border-color: #d9cdef; color: #604583; }
.note-card { background: #f5fcfd; border-color: #cbe9ed; }
.note-card::before { background: #d9f0f4; }
.note-footer time, .note-footer .entry-actions .text-button { color: #4b717a; }
.private-info { background: linear-gradient(135deg, #ede6fa, #e5f8fb); border-color: #d6d4ee; }
.info-card { border-color: #e1d8ed; }
.kindness-symbol { color: var(--purple); }
.dashed-line { border-color: #d7cbe8; }
.comments-section, .entry-footer, .note-footer { border-color: #e4dcee; }
.comments-hint, .comments-empty, .comment-time, .comment-length { color: #766a86; }
.comment-item { background: #f6f2fc; }
.comment-total { background: #eee6fb; color: #6845aa; }
.comment-submit { background: var(--purple); color: #fff; }
.comment-submit:hover { background: #6440b8; }
.comment-input, input, select, textarea { border-color: #dad1e8; }
.field-hint { color: #766a86; }
.empty-star { background: linear-gradient(135deg, #e7dcfc, #d9f7fa); color: var(--purple); }
.kind-option:has(input:checked) { background: #eee7fc; border-color: #b899e2; }
.kind-option.bad:has(input:checked) { background: #e5f8fb; border-color: #85d1dc; }
.kind-option input { accent-color: var(--purple); }
blockquote { background: #f3eefe; border-color: var(--purple); color: #6a5486; }
.compose-tools details { background: #fcfbff; border-color: #e3daed; }
.compose-tools summary::marker { color: var(--purple); }
.emoji-choice:hover, .emoji-choice:focus-visible { background: #e8f6fa; }
.sticker-choice { background: #f7f3fd; color: var(--ink); }
.sticker-choice[aria-pressed="true"] { background: #ebe2fc; border-color: #a489d7; }
.selected-sticker { background: #f1ecfb; }
.sticker-caption { color: #735a91; }
.image-upload-section { border-color: #d9cfe7; }
.draft-image { background: #f5f1fa; border-color: #e3d9ed; }
.draft-image-picture, .entry-image, .viewer-picture { background: #efecf5; }
.draft-image progress { accent-color: var(--purple); }
.photos-heading:has(#entryPhotos:focus-visible) .photo-picker { outline-color: var(--cyan); }
.toast { background: #49346c; }
.score-panel { margin: 0 0 27px; }
.score-heading { display: flex; align-items: start; justify-content: space-between; gap: 15px; margin-bottom: 12px; }
.score-heading h2 { font-size: 1rem; margin: 0; padding-top: 8px; }
.score-rules { max-width: 520px; min-width: 0; flex: 1; text-align: left; }
.score-rules summary { width: fit-content; margin-right: auto; padding: 8px 10px; min-height: 44px; cursor: pointer; color: #7a6797; font-size: .8rem; border-radius: 10px; }
.score-rules p { margin: 4px 0 0; padding: 12px 15px; text-align: right; background: #eee7fa; border-radius: 13px; color: #66517f; font-size: .83rem; line-height: 1.8; }
.score-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.score-card { min-width: 0; border: 1px solid #ded1ef; border-radius: 20px; padding: 17px 20px; background: linear-gradient(125deg, #f6f1ff, #fff); }
.score-card.raneem { border-color: #c9e7ec; background: linear-gradient(125deg, #ecfbfd, #fff); }
.score-card-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.score-card-heading .avatar { width: 32px; height: 32px; font-size: .9rem; }
.score-card-heading > strong { font-size: .95rem; }
.score-level { margin-right: auto; border-radius: 8px; padding: 3px 8px; background: #eae0fa; color: #71539c; font-size: .72rem; }
.raneem .score-level { background: #def4f7; color: #39747f; }
.score-value { display: flex; align-items: baseline; gap: 9px; margin: 7px 0 6px; min-width: 0; }
.score-value strong { font-size: clamp(30px, 4vw, 42px); line-height: 1.3; font-weight: 800; color: #6745ad; overflow-wrap: anywhere; }
.score-value > span { color: #6d5c85; font-size: .8rem; }
.raneem .score-value strong { color: #196d7d; }
.score-recent { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; color: #6d5c85; font-size: .77rem; }
.score-recent strong { color: #6745ad; }
.raneem .score-recent strong { color: #196d7d; }
.score-progress { display: block; border: 0; border-radius: 20px; width: 100%; height: 5px; margin: 12px 0 7px; background: #e6dcf2; accent-color: var(--purple); overflow: hidden; }
.score-progress::-webkit-progress-bar { background: #e7ddf2; border-radius: 20px; }
.score-progress::-webkit-progress-value { background: linear-gradient(90deg, #8c67db, #39becf); border-radius: 20px; }
.score-progress::-moz-progress-bar { background: linear-gradient(90deg, #8c67db, #39becf); border-radius: 20px; }
.raneem .score-progress::-webkit-progress-bar { background: #d9eef2; }
.score-next { font-size: .72rem; color: #6d5c85; margin: 0; }
.entry-points { display: inline-flex; align-items: center; gap: 5px; color: #6c4ba5; background: #f0e9fb; padding: 3px 9px; border-radius: 9px; font-size: .73rem; }
@media (max-width: 900px) {
  .site-header { background: #f7f7fdf5; backdrop-filter: blur(12px); }
  .workspace-heading { margin-bottom: 14px; }
  .workspace-heading h1 { font-size: 1.65rem; }
  .workspace-heading p { margin-bottom: 0; }
  .score-panel { margin-bottom: 20px; }
  .score-heading { margin-bottom: 8px; }
  .score-cards { gap: 10px; }
  .score-card { padding: 13px 12px; border-radius: 17px; }
  .score-card-heading { gap: 6px; }
  .score-card-heading .avatar { width: 26px; height: 26px; font-size: 14px; }
  .score-card-heading > strong { font-size: max(14px, .9rem); }
  .score-level { padding: 2px 5px; font-size: 12px; }
  .score-value { gap: 6px; }
  .score-value strong { font-size: clamp(30px, 8vw, 40px); }
  .score-recent, .score-next, .score-value > span { font-size: 13px; }
  .score-rules summary { font-size: 14px; }
  .score-rules p { font-size: 14px; }
  .view-tabs { border-color: #e2d9ee; }
  .view-tab.active { background: #eee7fa; color: #6844ab; }
  .view-tabs #add .add-icon { background: linear-gradient(135deg, #8660d8, #567cce); color: #fff; }
  .entry-footer > .entry-actions .text-button { background: #f3eefb; }
  .dialog-heading, .dialog-actions { border-color: #ece5f5; }
  .entry-points { font-size: 14px; }
}
@media (max-width: 360px) {
  .score-card-heading .avatar { display: none; }
  .score-level { font-size: 12px; }
  .score-card { padding: 12px 10px; }
}
