/* ALLHIR Round71 / 2.39.5 — Instagram-inspired publication composer and browser camera. */

.allhir-publication-composer-page {
  --r71-composer-gold: #c58a24;
  --r71-composer-gold-dark: #81530a;
  --r71-composer-ink: #211d19;
  --r71-composer-muted: #786d63;
  --r71-composer-line: #e9dfd4;
  padding: 34px 16px 78px !important;
  background:
    radial-gradient(circle at 10% 0, rgba(244, 206, 126, .22), transparent 28%),
    linear-gradient(180deg, #f8f4ef 0%, #f3eee8 100%) !important;
}

.allhir-publication-composer-page .allhir-composer-shell {
  width: min(1120px, 100%) !important;
  max-width: 1120px !important;
  margin: 0 auto;
}

.allhir-publication-composer-page .allhir-composer-topbar {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
}

.allhir-publication-composer-page .allhir-composer-topbar a {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(154, 105, 20, .24);
  border-radius: 50%;
  background: rgba(255,255,255,.8);
  color: #4d3510;
  text-decoration: none;
  box-shadow: 0 7px 18px rgba(57, 37, 11, .07);
}

.allhir-publication-composer-page .allhir-composer-topbar h1 {
  margin: 0;
  color: #2b241d;
  font-size: 21px;
  font-weight: 850;
}

.allhir-publication-composer-page .allhir-composer-card {
  overflow: hidden;
  padding: 0 !important;
  border: 1px solid rgba(151, 104, 24, .28) !important;
  border-radius: 25px !important;
  background: #fff !important;
  box-shadow: 0 28px 75px rgba(52, 34, 16, .14) !important;
}

.allhir-publication-composer-page .allhir-publication-alert {
  margin: 16px 18px 0 !important;
}

.allhir-publication-composer-page .allhir-social-composer,
.allhir-publication-composer-page .allhir-r71-instagram-composer {
  display: block !important;
  margin: 0 !important;
}

.allhir-r71-composer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(340px, .82fr);
  min-height: 650px;
}

/* Media stage */
.allhir-r71-media-composer {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  background:
    radial-gradient(circle at 80% 10%, rgba(190, 135, 39, .18), transparent 30%),
    #151311;
  color: #fff;
}

.allhir-r71-media-stage {
  position: relative;
  display: grid;
  min-height: 560px;
  height: min(660px, 72vh);
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 19px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.045), rgba(255,255,255,.015)),
    #0d0c0b;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.22);
  transition: border-color .18s ease, transform .18s ease;
}

.allhir-r71-media-stage.is-dragging {
  border-color: #e3b659;
  transform: scale(.995);
}

.allhir-r71-media-empty {
  display: grid;
  width: min(370px, 88%);
  place-items: center;
  gap: 9px;
  padding: 30px 22px;
  border: 0;
  border-radius: 22px;
  background: transparent;
  color: #fff;
  font: inherit;
  text-align: center;
  cursor: pointer;
}

.allhir-r71-media-empty[hidden] {
  display: none !important;
}

.allhir-r71-media-empty__icon {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border: 1px solid rgba(232, 191, 102, .55);
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(234,188,91,.24), rgba(255,255,255,.04));
  color: #f0cb79;
  font-size: 34px;
  line-height: 1;
  box-shadow: 0 14px 35px rgba(0,0,0,.23);
}

.allhir-r71-media-empty strong {
  margin-top: 3px;
  font-size: 19px;
  font-weight: 850;
}

.allhir-r71-media-empty small {
  max-width: 310px;
  color: rgba(255,255,255,.63);
  font-size: 12px;
  line-height: 1.45;
}

.allhir-composer-media-input {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  opacity: 0 !important;
}

.allhir-r71-media-grid {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  min-width: 0;
  align-items: flex-end;
  gap: 7px;
  padding: 12px;
  pointer-events: none;
}

.allhir-r71-media-grid:empty {
  display: none;
}

.allhir-r71-media-item {
  position: relative;
  z-index: 3;
  overflow: hidden;
  width: 62px;
  height: 62px;
  flex: 0 0 62px;
  border: 2px solid rgba(255,255,255,.82);
  border-radius: 12px;
  background: #191715;
  box-shadow: 0 8px 22px rgba(0,0,0,.32);
  cursor: grab;
  pointer-events: auto;
}

.allhir-r71-media-item.is-cover {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  cursor: default;
}

.allhir-r71-media-item img,
.allhir-r71-media-item video {
  display: block;
  width: 100%;
  height: 100%;
  background: #0a0908;
  object-fit: cover;
}

.allhir-r71-media-item.is-cover img,
.allhir-r71-media-item.is-cover video {
  object-fit: contain;
}

.allhir-r71-media-item__tools {
  position: absolute;
  z-index: 4;
  inset: auto 4px 4px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  opacity: 0;
  transition: opacity .15s ease;
}

.allhir-r71-media-item:hover .allhir-r71-media-item__tools,
.allhir-r71-media-item:focus-within .allhir-r71-media-item__tools,
.allhir-r71-media-item.is-cover .allhir-r71-media-item__tools {
  opacity: 1;
}

.allhir-r71-media-item.is-cover .allhir-r71-media-item__tools {
  inset: 12px 12px auto auto;
  max-width: calc(100% - 24px);
  flex-wrap: wrap;
}

.allhir-r71-media-item__tools button {
  display: grid;
  min-width: 32px;
  min-height: 32px;
  place-items: center;
  padding: 6px 8px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  background: rgba(18,16,14,.78);
  color: #fff;
  font: inherit;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(7px);
}

.allhir-r71-media-item__tools button.is-cover-control {
  color: #f2cd79;
}

.allhir-r71-cover-badge {
  position: absolute;
  z-index: 4;
  top: 12px;
  left: 12px;
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  background: rgba(22,19,15,.73);
  color: #f2cf81;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .04em;
  backdrop-filter: blur(7px);
}

.allhir-r71-existing-remove {
  position: absolute;
  z-index: 7;
  top: 12px;
  right: 12px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.23);
  border-radius: 50%;
  background: rgba(20,18,16,.78);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  backdrop-filter: blur(7px);
}

.allhir-publication-composer-page .allhir-r71-source-tools,
.allhir-publication-composer-page .allhir-composer-tools.allhir-r71-source-tools {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 0 !important;
  border: 0 !important;
}

.allhir-publication-composer-page .allhir-r71-source-tools .allhir-composer-media-action {
  display: grid;
  min-width: 0;
  min-height: 66px;
  grid-template-columns: 1fr;
  place-items: center;
  gap: 4px;
  padding: 9px 7px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 15px;
  background: rgba(255,255,255,.075);
  color: #fff;
  font: inherit;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}

.allhir-publication-composer-page .allhir-r71-source-tools .allhir-composer-media-action:hover,
.allhir-publication-composer-page .allhir-r71-source-tools .allhir-composer-media-action:focus-visible {
  border-color: rgba(232, 190, 98, .72);
  background: rgba(217, 164, 58, .17);
  outline: 0;
  transform: translateY(-1px);
}

.allhir-r71-source-tools .allhir-composer-media-action span {
  color: #edc66e !important;
  font-size: 22px !important;
  line-height: 1;
}

.allhir-r71-source-tools .allhir-composer-media-action b {
  overflow: hidden;
  max-width: 100%;
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.allhir-r71-media-hint {
  margin: -2px 4px 0;
  color: rgba(255,255,255,.5);
  font-size: 10.5px;
  line-height: 1.4;
  text-align: center;
}

/* Caption/details column */
.allhir-r71-composer-details {
  display: flex;
  min-width: 0;
  max-height: 760px;
  flex-direction: column;
  padding: 24px 25px 22px;
  overflow: auto;
  background: #fff;
}

.allhir-publication-composer-page .allhir-composer-author {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 0 16px !important;
  border-bottom: 1px solid var(--r71-composer-line) !important;
}

.allhir-publication-composer-page .allhir-composer-avatar,
.allhir-publication-composer-page .allhir-composer-avatar img,
.allhir-publication-composer-page .allhir-composer-avatar video {
  width: 46px !important;
  height: 46px !important;
  flex: 0 0 46px;
  border-radius: 50%;
  object-fit: cover;
}

.allhir-publication-composer-page .allhir-composer-avatar {
  padding: 2px;
  background: conic-gradient(#8d5a05, #f1d071, #fff0af, #9f6709, #8d5a05);
}

.allhir-publication-composer-page .allhir-composer-avatar img,
.allhir-publication-composer-page .allhir-composer-avatar video {
  border: 2px solid #fff;
}

.allhir-publication-composer-page .allhir-composer-author strong {
  min-width: 0;
  overflow: hidden;
  color: #34291f;
  font-size: 14px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.allhir-publication-composer-page .allhir-composer-text {
  position: relative;
  display: block;
  border-bottom: 1px solid var(--r71-composer-line);
}

.allhir-publication-composer-page .allhir-composer-text textarea {
  display: block;
  width: 100%;
  min-height: 214px !important;
  max-height: 360px !important;
  padding: 18px 0 32px !important;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  color: var(--r71-composer-ink);
  font: inherit;
  font-size: 16px !important;
  line-height: 1.55;
  resize: none;
}

.allhir-publication-composer-page .allhir-composer-text textarea::placeholder {
  color: #9c928a;
}

.allhir-publication-composer-page [data-composer-counter-wrap] {
  position: absolute;
  right: 0;
  bottom: 8px;
  color: #948981;
  font-size: 10.5px;
}

.allhir-r71-template-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 13px 0;
  border-bottom: 1px solid var(--r71-composer-line);
}

.allhir-r71-template-tools button {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border: 1px solid #eadfd4;
  border-radius: 50%;
  background: #fffaf3;
  font: inherit;
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease;
}

.allhir-r71-template-tools button:hover,
.allhir-r71-template-tools button:focus-visible {
  border-color: #d5a548;
  outline: 0;
  transform: translateY(-1px);
}

.allhir-r71-advanced-options {
  margin: 0;
  border-bottom: 1px solid var(--r71-composer-line);
}

.allhir-r71-advanced-options summary {
  display: flex;
  min-height: 49px;
  align-items: center;
  gap: 9px;
  padding: 10px 0;
  color: #65564a;
  list-style: none;
  cursor: pointer;
}

.allhir-r71-advanced-options summary::-webkit-details-marker {
  display: none;
}

.allhir-r71-advanced-options summary > span {
  color: #bb7d13;
  font-size: 17px;
}

.allhir-r71-advanced-options summary b {
  font-size: 12px;
  font-weight: 850;
}

.allhir-r71-advanced-options summary i {
  margin-left: auto;
  color: #b9852b;
  font-style: normal;
  transition: transform .16s ease;
}

.allhir-r71-advanced-options[open] summary i {
  transform: rotate(180deg);
}

.allhir-r71-composer-options,
.allhir-r71-composer-options--wide {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 10px !important;
  padding: 0 0 15px;
}

.allhir-r71-composer-options label {
  display: grid;
  gap: 5px;
  min-width: 0;
  font-size: 10.5px;
  font-weight: 850;
  color: #675a50;
}

.allhir-r71-composer-options input,
.allhir-r71-composer-options select {
  width: 100%;
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid #e4d9cf;
  border-radius: 11px;
  background: #fffdf9;
  color: #302820;
  font: inherit;
  font-size: 12px;
}

.allhir-r71-composer-options input:focus,
.allhir-r71-composer-options select:focus {
  border-color: #c5902f;
  outline: 3px solid rgba(202, 151, 55, .14);
}

.allhir-publication-composer-page .allhir-upload-feedback {
  margin: 10px 0 0;
  font-size: 11px;
  line-height: 1.4;
}

.allhir-publication-composer-page .allhir-upload-feedback.is-error {
  color: #a32e28;
}

.allhir-publication-composer-page .allhir-upload-feedback.is-ready {
  color: #307154;
}

.allhir-r71-draft-status {
  display: flex;
  min-height: 30px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #8e8279;
  font-size: 10.5px;
}

.allhir-r71-draft-status button {
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: #98630d;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.allhir-publication-composer-page .allhir-composer-rules-note {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin: 9px 0 15px !important;
  color: var(--r71-composer-muted);
  font-size: 10.5px;
  line-height: 1.45;
}

.allhir-publication-composer-page .allhir-composer-rules-note span {
  max-width: 76%;
}

.allhir-publication-composer-page .allhir-composer-rules-note button {
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #94610d;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.allhir-publication-composer-page .allhir-composer-actions {
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: auto;
  padding-top: 4px;
}

.allhir-publication-composer-page .allhir-composer-submit {
  min-width: 150px;
  min-height: 47px;
  padding: 11px 22px;
  border: 1px solid #9a6308;
  border-radius: 13px;
  background: linear-gradient(135deg, #8f5903, #d2a23d) !important;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 23px rgba(115, 70, 3, .2);
}

.allhir-publication-composer-page .allhir-composer-submit:disabled {
  box-shadow: none;
  opacity: .46;
  cursor: default;
}

.allhir-publication-composer-page .allhir-composer-cancel {
  color: #75695f;
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
}

/* Browser camera modal. */
.allhir-r71-camera-dialog {
  width: min(760px, calc(100% - 28px));
  max-width: 760px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(232, 191, 101, .36);
  border-radius: 24px;
  background: #11100f;
  color: #fff;
  box-shadow: 0 35px 100px rgba(0,0,0,.52);
}

.allhir-r71-camera-dialog::backdrop {
  background: rgba(13, 11, 10, .78);
  backdrop-filter: blur(5px);
}

.allhir-r71-camera-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.allhir-r71-camera-shell > header {
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,.11);
}

.allhir-r71-camera-shell > header small {
  display: block;
  margin-bottom: 2px;
  color: #dfb962;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.allhir-r71-camera-shell > header h2 {
  margin: 0;
  color: #fff;
  font-size: 18px;
}

.allhir-r71-camera-shell > header button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

.allhir-r71-camera-stage {
  position: relative;
  display: grid;
  min-height: 430px;
  place-items: center;
  overflow: hidden;
  background: #050505;
}

.allhir-r71-camera-stage video {
  display: block;
  width: 100%;
  height: min(66vh, 560px);
  background: #050505;
  object-fit: contain;
}

.allhir-r71-camera-message {
  position: absolute;
  z-index: 2;
  max-width: 440px;
  padding: 14px 18px;
  border: 1px solid rgba(255,255,255,.17);
  border-radius: 15px;
  background: rgba(22,20,18,.78);
  color: rgba(255,255,255,.82);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
  backdrop-filter: blur(8px);
}

.allhir-r71-camera-message[hidden] {
  display: none;
}

.allhir-r71-camera-timer {
  position: absolute;
  z-index: 3;
  top: 14px;
  left: 14px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(187, 31, 31, .88);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.allhir-r71-camera-shell > footer {
  display: grid;
  grid-template-columns: 1fr 76px 1fr;
  align-items: center;
  gap: 12px;
  padding: 15px 18px 17px;
  border-top: 1px solid rgba(255,255,255,.1);
}

.allhir-r71-camera-secondary {
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 12px;
  background: rgba(255,255,255,.07);
  color: #fff;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.allhir-r71-camera-secondary:last-child {
  justify-self: end;
}

.allhir-r71-camera-shutter {
  display: grid;
  width: 66px;
  height: 66px;
  place-items: center;
  justify-self: center;
  padding: 5px;
  border: 3px solid rgba(255,255,255,.9);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.allhir-r71-camera-shutter span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #fff;
  transition: border-radius .16s ease, transform .16s ease, background .16s ease;
}

.allhir-r71-camera-dialog.is-video .allhir-r71-camera-shutter span {
  background: #e43d35;
}

.allhir-r71-camera-dialog.is-recording .allhir-r71-camera-shutter span {
  width: 55%;
  height: 55%;
  border-radius: 8px;
  background: #e43d35;
}

.allhir-r71-camera-dialog.is-processing .allhir-r71-camera-shutter {
  pointer-events: none;
  opacity: .5;
}

/* Lightweight image editor used for a selected photo. */
.allhir-r71-editor-overlay {
  position: fixed;
  z-index: 100000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(16,14,12,.84);
  backdrop-filter: blur(4px);
}

.allhir-r71-editor {
  display: grid;
  width: min(820px, 100%);
  gap: 13px;
  padding: 15px;
  border: 1px solid rgba(230, 190, 102, .3);
  border-radius: 20px;
  background: #181512;
  box-shadow: 0 30px 90px rgba(0,0,0,.42);
}

.allhir-r71-editor canvas {
  display: block;
  max-width: 100%;
  max-height: 70vh;
  margin: auto;
  background: #080706;
}

.allhir-r71-editor-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: #fff;
}

.allhir-r71-editor-controls label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}

.allhir-r71-editor-controls button,
.allhir-r71-editor-controls select {
  min-height: 39px;
  padding: 8px 11px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 10px;
  background: #2a2622;
  color: #fff;
  font: inherit;
  font-size: 12px;
}

.allhir-r71-editor-controls [data-apply] {
  border-color: #b98223;
  background: linear-gradient(135deg, #875403, #c8932f);
  color: #fff;
  font-weight: 900;
}

/* Publication carousel remains shared with feed/profile views. */
.allhir-r71-carousel {
  position: relative;
  overflow: hidden;
  background: #171513;
}

.allhir-r71-carousel-track {
  display: flex;
  transition: transform .25s ease;
}

.allhir-r71-carousel-slide {
  position: relative;
  min-width: 100%;
  margin: 0;
}

.allhir-r71-carousel-slide img,
.allhir-r71-carousel-slide video {
  width: 100%;
  max-height: 640px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #111;
}

.allhir-r71-carousel-slide figcaption {
  position: absolute;
  right: 10px;
  bottom: 10px;
  left: 10px;
  padding: 7px 9px;
  border-radius: 10px;
  background: rgba(20,18,16,.62);
  color: #fff;
  font-size: 12px;
}

.allhir-r71-carousel-dots {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(22,20,18,.72);
  color: #fff;
  font-size: 11px;
}

.allhir-r71-carousel-dots button {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.14);
  color: #fff;
  cursor: pointer;
}

@media (max-width: 820px) {
  .allhir-publication-composer-page {
    min-height: calc(100svh - 64px);
    padding: 0 !important;
    background: #fff !important;
  }

  .allhir-publication-composer-page .allhir-composer-shell {
    width: 100% !important;
    max-width: none !important;
  }

  .allhir-publication-composer-page .allhir-composer-topbar {
    position: sticky;
    z-index: 20;
    top: 0;
    min-height: 58px;
    margin: 0;
    padding: 8px 13px;
    border-bottom: 1px solid #e9dfd5;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(12px);
  }

  .allhir-publication-composer-page .allhir-composer-topbar h1 {
    font-size: 18px;
  }

  .allhir-publication-composer-page .allhir-composer-card {
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  .allhir-r71-composer-layout {
    display: flex;
    min-height: 0;
    flex-direction: column;
  }

  .allhir-r71-media-composer {
    gap: 10px;
    padding: 12px;
  }

  .allhir-r71-media-stage {
    width: 100%;
    min-height: 0;
    height: auto;
    aspect-ratio: 4 / 5;
    border-radius: 17px;
  }

  .allhir-r71-media-item {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
    border-radius: 10px;
  }

  .allhir-r71-media-item__tools {
    opacity: 1;
  }

  .allhir-r71-media-item:not(.is-cover) .allhir-r71-media-item__tools button:not(.is-cover-control) {
    display: none;
  }

  .allhir-r71-media-item.is-cover .allhir-r71-media-item__tools {
    top: 10px;
    right: 10px;
  }

  .allhir-r71-cover-badge {
    top: 10px;
    left: 10px;
  }

  .allhir-publication-composer-page .allhir-r71-source-tools .allhir-composer-media-action {
    min-height: 58px;
    padding: 7px 4px;
  }

  .allhir-r71-source-tools .allhir-composer-media-action b {
    font-size: 10px;
  }

  .allhir-r71-media-hint {
    display: none;
  }

  .allhir-r71-composer-details {
    max-height: none;
    padding: 17px 16px calc(18px + env(safe-area-inset-bottom));
    overflow: visible;
  }

  .allhir-publication-composer-page .allhir-composer-text textarea {
    min-height: 155px !important;
    max-height: 320px !important;
    font-size: 16px !important;
  }

  .allhir-r71-composer-options,
  .allhir-r71-composer-options--wide {
    grid-template-columns: 1fr !important;
  }

  .allhir-publication-composer-page .allhir-composer-actions {
    position: sticky;
    z-index: 8;
    bottom: 0;
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 6px;
    margin: 5px -16px calc(-18px - env(safe-area-inset-bottom));
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid #eadfd4;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(12px);
  }

  .allhir-publication-composer-page .allhir-composer-submit {
    width: 100%;
    min-height: 50px;
  }

  .allhir-publication-composer-page .allhir-composer-cancel {
    display: block;
    padding: 7px;
    text-align: center;
  }

  .allhir-r71-camera-dialog {
    width: 100%;
    max-width: none;
    max-height: 100svh;
    margin: auto 0 0;
    border: 0;
    border-radius: 22px 22px 0 0;
  }

  .allhir-r71-camera-stage {
    min-height: 0;
    aspect-ratio: 3 / 4;
  }

  .allhir-r71-camera-stage video {
    height: 100%;
  }

  .allhir-r71-camera-shell > footer {
    padding-bottom: calc(17px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 390px) {
  .allhir-r71-media-empty__icon {
    width: 62px;
    height: 62px;
    font-size: 29px;
  }

  .allhir-r71-media-empty strong {
    font-size: 17px;
  }

  .allhir-r71-source-tools .allhir-composer-media-action b {
    font-size: 9px;
  }

  .allhir-r71-camera-shell > footer {
    grid-template-columns: minmax(0, 1fr) 68px minmax(0, 1fr);
    padding-inline: 12px;
  }

  .allhir-r71-camera-shutter {
    width: 60px;
    height: 60px;
  }

  .allhir-r71-camera-secondary {
    padding-inline: 8px;
    font-size: 9.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .allhir-r71-media-stage,
  .allhir-r71-source-tools .allhir-composer-media-action,
  .allhir-r71-template-tools button,
  .allhir-r71-camera-shutter span,
  .allhir-r71-carousel-track {
    transition: none !important;
  }
}
