.aht-submission-portal,
.aht-admin-wrap { max-width: 1100px; }
.aht-submission-header { margin-bottom: 24px; }
.aht-message { padding: 12px 14px; margin-bottom: 18px; border-radius: 8px; }
.aht-message.success { background: #edf9f0; color: #116b2d; }
.aht-message.error { background: #fff1f0; color: #8f1d1d; }
.aht-submission-tabs input[type="radio"] { display: none; }
.aht-tab-labels { display: flex; gap: 12px; margin-bottom: 20px; }
.aht-tab-labels label { display: inline-block; padding: 12px 18px; border-radius: 999px; background: #edf1f7; cursor: pointer; font-weight: 600; }
#aht-tab-news:checked ~ .aht-tab-labels label[for="aht-tab-news"],
#aht-tab-publication:checked ~ .aht-tab-labels label[for="aht-tab-publication"] { background: #0b5ed7; color: #fff; }
.aht-tab-panels .aht-tab-panel { display: none; }
#aht-tab-news:checked ~ .aht-tab-panels .aht-panel-news,
#aht-tab-publication:checked ~ .aht-tab-panels .aht-panel-publication { display: block; }
.aht-submission-form, .aht-admin-card { background: #fff; border: 1px solid #d8e0ea; border-radius: 14px; padding: 24px; box-shadow: 0 8px 24px rgba(6,24,44,.04); }
.aht-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px 20px; }
.aht-form-grid p { margin: 0; min-width: 0; }
.aht-form-grid label { display: block; margin-bottom: 6px; font-weight: 600; }
.aht-form-grid input[type="email"], .aht-form-grid input[type="text"], .aht-form-grid input[type="file"], .aht-form-grid textarea { width: 100%; }
.aht-full { grid-column: 1 / -1; }
.aht-help { display: block; margin-top: 8px; color: #526172; font-size: 13px; }
.aht-image-preview-frame { position: relative; display: block; width: 100%; max-width: 620px; aspect-ratio: 4 / 3; min-height: 240px; margin-top: 10px; border: 2px dashed #9db4d0; border-radius: 12px; background: linear-gradient(135deg, #f7fafc, #edf3fb); overflow: hidden; cursor: grab; touch-action: none; }
.aht-image-preview-frame.is-dragging { cursor: grabbing; }
.aht-image-preview-stage { position: absolute; inset: 0; display: block; width: 100%; height: 100%; overflow: hidden; }
.aht-image-preview-placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 12px; text-align: center; color: #58718f; z-index: 3; }
.aht-submission-portal .aht-image-preview,
.aht-image-preview { position: absolute; inset: 0; display: block; width: 100% !important; height: 100% !important; max-width: none !important; max-height: none !important; object-fit: cover; object-position: 50% 50%; user-select: none; pointer-events: none; z-index: 1; opacity: 1 !important; visibility: visible !important; }
.aht-image-pan { position: absolute; right: 12px; bottom: 12px; z-index: 3; padding: 8px 12px; border: 0; border-radius: 999px; background: rgba(11, 94, 215, 0.92); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 0.02em; cursor: grab; box-shadow: 0 8px 18px rgba(6,24,44,.16); }
.aht-image-preview-frame.is-dragging .aht-image-pan { cursor: grabbing; }
.aht-featured-preview { position: relative; display: flex; width: min(100%,420px); aspect-ratio: 4 / 3; margin-top: 10px; border: 2px dashed #9db4d0; border-radius: 12px; align-items: center; justify-content: center; color: #58718f; background: linear-gradient(135deg, #f7fafc, #edf3fb); overflow: hidden; }
.aht-featured-preview img { width: 100%; height: 100%; object-fit: cover; }
.aht-submit-row { margin-top: 20px; position: relative; z-index: 1; }
.aht-admin-grid { display: grid; grid-template-columns: minmax(320px,1fr) minmax(420px,1.2fr); gap: 20px; align-items: start; }
.aht-preview-card { margin-top: 20px; }
.aht-preview-box { padding: 16px; background: #f7fafc; border: 1px solid #d8e0ea; border-radius: 10px; }
.aht-actions { white-space: nowrap; }
.aht-allowlist-row { margin-bottom: 8px; }
@media (max-width: 800px) {
  .aht-form-grid, .aht-admin-grid { grid-template-columns: 1fr; }
  .aht-image-preview-frame { max-width: 100%; min-height: 220px; }
}

.aht-image-preview-stage[hidden], .aht-image-preview[hidden], .aht-image-preview-placeholder[hidden], .aht-image-pan[hidden] { display: none !important; }
