.media-page { min-height: calc(100dvh - 49px); padding-bottom: 15px; background: #f5f3fa; color: #322d4b; }
.media-hero { position: relative; isolation: isolate; overflow: hidden; padding: 20px 15px 28px; background: linear-gradient(110deg, #342752, #624984); color: #fff; }
.media-hero h2 { margin: 7px 0 5px; font-size: clamp(22px, 6.2cqw, 32px); line-height: 1.25; }
.media-hero p, .media-subhero p { margin: 0; font-size: 13px; line-height: 1.55; }
.media-hero p { color: #efe6fc; }
.media-hero .media-kicker, .media-subhero .media-kicker { font-size: 12px; }
.media-kicker span { margin-left: 3px; padding: 1px 4px; border: 1px solid #e8d6ff82; border-radius: 4px; font-size: 11px; }
.media-art { position: absolute; z-index: -1; right: -7px; bottom: -13px; width: 142px; color: #e5d5ff; opacity: .41; }
.media-panel { margin: 9px 12px 0; padding: 11px; border: 1px solid #e9e4f1; border-radius: 9px; background: #fff; }
.media-catalog { position: relative; margin-top: -9px; }
.media-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 8px; margin-bottom: 7px; }
.media-heading h2, .media-heading h3 { margin: 0; font-size: 16px; }
.media-heading > span { color: #655c81; font-size: 12px; }
.media-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.media-tile { position: relative; display: grid; align-content: start; gap: 5px; min-width: 0; padding: 8px; border: 1px solid #ece7f3; border-radius: 7px; background: #fdfbff; }
.media-tile:hover { border-color: #c8b7de; background: #f7f2fc; }
.media-tile strong { font-size: clamp(12px, 3.55cqw, 16px); line-height: 1.35; text-wrap: balance; }
.media-tile small { color: #675d7d; font-size: 12px; line-height: 1.45; }
.media-emblem { display: grid; flex: none; place-items: center; width: 35px; height: 35px; border-radius: 7px; background: #eee6fa; color: #7654a4; }
.media-emblem[data-media-tone="blue"] { background: #e7effc; color: #40679e; }
.media-emblem[data-media-tone="teal"] { background: #e5f4ee; color: #2b725e; }
.media-emblem[data-media-tone="orange"] { background: #fcf0e3; color: #925c32; }
.media-emblem .icon { width: 19px; height: 19px; }
.media-tile .media-next { position: absolute; top: 17px; right: 7px; width: 15px; height: 15px; color: #81719d; }
.media-notice, .media-muted { margin: 7px 0 0; color: #695e7a; font-size: 12px; line-height: 1.55; }
.media-notice { margin: 10px 12px 0; text-align: center; }
.media-subhero { display: flex; align-items: center; gap: 8px; padding: 14px 15px; background: linear-gradient(108deg, #eee7f9, #faf7fe); }
.media-subhero h2 { margin: 3px 0; color: #543e76; font-size: clamp(19px, 5.2cqw, 26px); }
.media-subhero p { color: #6c5e82; }
.media-message { margin: 8px 12px 0; padding: 6px 7px; border: 1px solid #d4e6dc; border-radius: 6px; background: #ebf7ef; color: #365e55; font-size: 13px; }
.media-message:empty { display: none; }
.media-form, .media-records, .media-rows { display: grid; gap: 6px; }
.media-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.media-form label, .media-channel-field legend { display: grid; gap: 4px; min-width: 0; color: #624e7b; font-size: 13px; font-weight: 650; }
.media-form input:not([type="checkbox"]), .media-form select, .media-form textarea { width: 100%; min-width: 0; min-height: 41px; padding: 6px; border: 1px solid #e6dff0; border-radius: 6px; background: #fbf8fe; color: #4e3c68; font-size: 16px; font-weight: 400; }
.media-form textarea { resize: vertical; }
.media-form input::placeholder, .media-form textarea::placeholder { font-size: 13px; }
.media-form .primary { background: #664b86; }
.media-error { margin: 0; color: #9d3836; font-size: 13px; }
.media-channel-field { min-inline-size: 0; margin: 0; padding: 0; border: 0; }
.media-channel-field > div { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 3px; }
.media-channel-field label { display: flex; align-items: center; gap: 4px; min-height: 34px; padding: 3px 6px; border-radius: 5px; background: #f2edf9; }
.media-channel-field input { accent-color: #694c8b; }
.media-records { margin-top: 6px; }
.media-record, .media-rows > div { display: grid; gap: 4px; padding: 7px; border: 1px solid #eee7f4; border-radius: 6px; background: #fcf9fe; }
.media-record-head { display: flex; align-items: start; justify-content: space-between; gap: 5px; }
.media-record-head strong, .media-rows dt { color: #52416e; font-size: 14px; overflow-wrap: anywhere; }
.media-rows { margin: 6px 0; }
.media-rows dt { font-weight: 700; }
.media-record small, .media-record p, .media-rows dd { margin: 0; color: #685878; font-size: 13px; line-height: 1.48; white-space: pre-wrap; overflow-wrap: anywhere; }
.media-record small { font-size: 12px; }
.media-tag, .media-tags span { flex: none; padding: 2px 4px; border-radius: 4px; background: #eee8f8; color: #674e8c; font-size: 11px; }
.media-tag.verify { background: #f9eedf; color: #80582d; }
.media-tags, .media-actions { display: flex; flex-wrap: wrap; gap: 5px; }
.media-small-action, .media-actions a { justify-self: start; display: inline-flex; align-items: center; min-height: 34px; padding: 4px 6px; border: 0; border-radius: 5px; background: #efe8f8; color: #664d89; font-size: 13px; }
.media-small-action[aria-pressed="true"] { color: #315f50; background: #e7f4eb; }
