.cc-shell {
  --cc-bg: #241412;
  --cc-field: #362321;
  --cc-red: #b72f43;
  --cc-muted: #ad9792;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  width: 100%;
  overflow: hidden;
  background: var(--cc-bg);
  color: #f9f4ef;
  font: 15px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: dark;
}
.cc-shell *, .cc-shell *::before, .cc-shell *::after { box-sizing: border-box; }
.cc-shell [hidden] { display: none !important; }
.cc-shell button, .cc-shell input, .cc-shell textarea { font: inherit; }
.cc-shell button { cursor: pointer; color: inherit; border: 0; -webkit-tap-highlight-color: transparent; }
.cc-shell button:disabled { cursor: default; }
.cc-shell button:focus-visible, .cc-shell input:focus-visible, .cc-shell textarea:focus-visible { outline: 2px solid #ef9aa5; outline-offset: 3px; }
.cc-shell h1, .cc-shell h2, .cc-shell p { margin: 0; }
.cc-header { flex: 0 0 64px; display: grid; grid-template-columns: 76px 1fr 76px; align-items: center; padding: 0 12px; background: var(--cc-bg); z-index: 1; }
.cc-header h1 { font-weight: 500; text-align: center; font-size: 19px; }
.cc-icon-button { display: inline-grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; background: transparent; border-radius: 50%; font-size: 27px !important; }
.cc-back { font-size: 36px !important; justify-self: start; padding-bottom: 5px; }
.cc-preview { justify-self: end; background: transparent; padding: 10px 0; white-space: nowrap; }
.cc-content { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; padding: 4px 16px 28px; scrollbar-width: thin; scrollbar-color: #76504b transparent; }
.cc-type-switch { display: flex; width: 236px; margin: 2px auto 22px; border-radius: 30px; background: #2d1c1a; overflow: hidden; }
.cc-type-switch button { width: 50%; padding: 9px 8px; background: transparent; color: #b49c96; border-radius: 30px; }
.cc-type-switch button[aria-pressed="true"] { background: var(--cc-red); color: #fff7f5; }
.cc-multi-hint { margin: -8px 6px 18px !important; text-align: center; color: var(--cc-muted); font-size: 12px; }
.cc-avatar-section { display: flex; align-items: center; flex-direction: column; margin: 0 0 32px; min-height: 193px; }
.cc-avatar { position: relative; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 9px; width: 140px; height: 185px; background: #3a2a27; border: 1px dashed #684640 !important; border-radius: 10px; overflow: hidden; color: #c7aba3 !important; }
.cc-avatar-symbol { font-size: 29px; font-weight: 200; color: #f8e6de; }
.cc-avatar small { font-size: 9px; color: #a4877f; }
.cc-avatar img { height: 100%; width: 100%; object-fit: cover; }
.cc-avatar-edit { position: absolute; bottom: 0; left: 0; right: 0; padding: 6px; background: #180c0bb0; color: white; font-size: 11px; }
.cc-file-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; pointer-events: none; }
.cc-remove-image { padding: 8px 10px 0 !important; font-size: 12px !important; }
.cc-field { margin-bottom: 22px; }
.cc-field-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 9px; font-size: 16px; }
.cc-required { color: #d25264; }
.cc-inline-hint { color: #a78c84; font-size: 13px; }
.cc-count { white-space: nowrap; font-size: 12px; color: #967b73; font-variant-numeric: tabular-nums; }
.cc-input { display: block; width: 100%; border: 1px solid transparent; border-radius: 9px; padding: 12px 11px; background: var(--cc-field); color: #f2e5e0; outline: none; resize: vertical; font-size: 14px !important; line-height: 1.55 !important; }
input.cc-input { min-height: 43px; }
textarea.cc-input { min-height: 112px; }
.cc-input::placeholder { color: #9e827a; opacity: 1; }
.cc-input:focus { border-color: #9e4a51; }
.cc-input[aria-invalid="true"] { border-color: #f07886; }
.cc-field-error { color: #ffa8b0; font-size: 12px; margin-top: 6px !important; }
.cc-choice-group, .cc-tag-options { display: flex; flex-wrap: wrap; gap: 10px; }
.cc-chip { border-radius: 25px; background: #30201d; color: #c4aaa2 !important; padding: 8px 19px; min-height: 38px; border: 1px solid transparent !important; }
.cc-chip[aria-pressed="true"] { color: #ffdee1 !important; background: #77303a; border-color: #a74756 !important; }
.cc-local-hint { margin: -12px 1px 22px !important; color: #a38a82; font-size: 11px; }
.cc-select-row { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 14px; text-align: left; padding: 13px 12px; border-radius: 9px; background: var(--cc-field); min-height: 48px; }
.cc-select-row > span:first-child { overflow-wrap: anywhere; }
.cc-placeholder { color: #ad9189; }
.cc-chevron { color: #b3968d; font-size: 27px; line-height: 1; flex: 0 0 auto; }
.cc-more { width: 100%; padding: 7px 0 25px; background: transparent; font-size: 16px !important; }
.cc-extra { padding-top: 3px; }
.cc-form-note { font-size: 11px; color: #ae938b; padding-bottom: 8px; }
.cc-footer { position: relative; flex: 0 0 auto; padding: 13px 14px max(18px, env(safe-area-inset-bottom)); background: linear-gradient(180deg, #281613 0%, #2b1715 100%); box-shadow: 0 -9px 20px #24141277; z-index: 1; }
.cc-consent { display: flex; align-items: flex-start; gap: 7px; font-size: 11px; color: #c8b4ad; line-height: 1.5; cursor: pointer; }
.cc-consent input { flex: 0 0 auto; margin: 2px 0 0; width: 15px; height: 15px; accent-color: var(--cc-red); }
.cc-actions { display: grid; grid-template-columns: 42px 1fr 1fr; gap: 11px; margin-top: 12px; }
.cc-drafts-button { width: 42px; height: 44px; padding: 0; font-size: 26px !important; background: #33211e; border: 1px solid #583831 !important; border-radius: 50%; }
.cc-primary, .cc-create, .cc-secondary { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 28px; padding: 10px 18px; text-align: center; }
.cc-primary { background: var(--cc-red); color: #fff !important; }
.cc-primary:disabled { opacity: .55; }
.cc-create { background: var(--cc-red); border: 1px solid transparent !important; }
.cc-create:disabled { color: #a0857d; border-color: #603b35 !important; background: #34201d; }
.cc-secondary { background: #43302c; border: 1px solid #73504a !important; }
.cc-text-button { background: transparent; color: #bda29a !important; padding: 11px 16px; }
.cc-status { position: absolute; bottom: 137px; left: 20px; right: 20px; z-index: 20; border: 1px solid #966b5f; background: #4d332c; color: #fff5e7; padding: 11px 15px; border-radius: 12px; box-shadow: 0 5px 24px #14090566; text-align: center; font-size: 12px; pointer-events: none; }
.cc-status-error { border-color: #c96370; background: #56272e; }
.cc-overlay { position: absolute; inset: 0; z-index: 10; background: #0b0508ae; display: flex; align-items: flex-end; justify-content: center; padding-top: 24px; }
.cc-modal { display: flex; flex-direction: column; width: 100%; max-height: 90%; overflow-y: auto; padding: 14px 17px max(24px, env(safe-area-inset-bottom)); background: #392b28; color: #fff6ee; border-radius: 22px 22px 0 0; box-shadow: 0 -10px 45px #0003; }
.cc-modal-heading { display: flex; align-items: center; justify-content: space-between; margin: 0 0 17px; }
.cc-modal-heading h2 { font-size: 19px; font-weight: 600; }
.cc-modal-heading .cc-icon-button { background: #2d211f; }
.cc-style-options { display: flex; flex-direction: column; }
.cc-style-option { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 7px; background: transparent; text-align: left; border-bottom: 1px solid #503a35 !important; }
.cc-style-option strong { font-size: 16px; font-weight: 500; }
.cc-style-option p { color: #c4ada4; font-size: 13px; line-height: 1.5; margin-top: 3px; }
.cc-radio-indicator { width: 18px; height: 18px; flex: 0 0 18px; border: 2px solid #b6a197; border-radius: 50%; }
.cc-style-option[aria-checked="true"] .cc-radio-indicator { background: #fff8ed; border: 5px solid #fff8ed; box-shadow: inset 0 0 0 2px #5c3b33; }
.cc-sheet-hint { font-size: 11px; color: #bda69c; margin: 18px 4px 15px !important; }
.cc-sheet-confirm { flex-shrink: 0; width: 100%; margin-top: 24px; }
.cc-tag-options { margin-top: 5px; }
.cc-tag-options .cc-chip { padding: 8px 16px; }
.cc-overlay-dialog { align-items: center; padding: 20px; }
.cc-modal-dialog { border-radius: 18px; padding: 18px; max-width: 365px; }
.cc-modal-copy { color: #ccb5ac; font-size: 14px; line-height: 1.65; margin-bottom: 20px !important; }
.cc-dialog-actions { display: flex; flex-direction: column; gap: 9px; }
.cc-empty { text-align: center; color: #c2a89e; padding: 25px 0 40px; white-space: pre-line; line-height: 1.9; }
.cc-draft-list { display: flex; flex-direction: column; gap: 8px; }
.cc-draft-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px; background: #49312b; border-radius: 11px; text-align: left; }
.cc-draft-thumb { display: grid; place-items: center; width: 46px; height: 61px; background: #704637; color: #e7b291; border-radius: 7px; overflow: hidden; flex: 0 0 46px; font-size: 22px; }
.cc-draft-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cc-draft-copy { min-width: 0; flex: 1; }
.cc-draft-copy strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 500; }
.cc-draft-copy span { display: block; color: #c2a69b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; margin-top: 4px; }
@media (min-width: 600px) {
  .cc-content { padding-left: 25px; padding-right: 25px; }
  .cc-header { padding-left: 21px; padding-right: 21px; }
  .cc-footer { padding-left: 24px; padding-right: 24px; }
}
@media (max-height: 650px) {
  .cc-header { flex-basis: 53px; }
  .cc-avatar { height: 155px; width: 117px; }
  .cc-avatar-section { min-height: 165px; margin-bottom: 22px; }
  .cc-footer { padding-top: 10px; padding-bottom: 10px; }
  .cc-actions { margin-top: 8px; }
}
