.shell-inspector {
    position: sticky;
    top: calc(var(--shell-header-height) + 18px);
    align-self: start;
    padding: 12px;
    max-height: calc(100vh - var(--shell-header-height) - 20px);
    overflow: auto;
}

.shell-app.is-ideas-view .shell-inspector {
    top: var(--shell-header-height);
    min-height: calc(100vh - var(--shell-header-height));
    border-width: 0 0 0 1px;
    border-radius: 0;
    box-shadow: none;
}

.shell-inspector-empty {
    display: grid;
    gap: 10px;
}

.shell-inspector-section {
    display: grid;
    gap: 7px;
    padding-top: 10px;
    border-top: 1px solid var(--shell-line);
}

.shell-field-grid {
    display: grid;
    gap: 10px;
}

.shell-field-value {
    line-height: 1.5;
    white-space: pre-wrap;
}

.shell-html-content {
    max-height: 280px;
    overflow: auto;
    padding: 10px;
    border: 1px solid var(--shell-line);
    border-radius: var(--shell-radius-sm);
    background: var(--shell-control);
}

.idea-editor {
    display: grid;
    gap: 10px;
}

.idea-editor.is-create-mode {
    padding-top: 2px;
    border-top: 3px solid var(--shell-accent-strong);
}

.idea-editor__header,
.idea-editor__fields,
.idea-editor__actions {
    display: grid;
    gap: 7px;
}

.idea-editor__mode-note {
    margin: 0;
    color: var(--shell-text-soft);
    font-size: 0.82rem;
}

.idea-editor__image {
    display: grid;
    gap: 6px;
}

.idea-editor-image-frame {
    position: relative;
    display: grid;
    width: 100%;
    max-height: 220px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    place-items: center;
    border: 1px solid var(--shell-line);
    border-radius: var(--shell-radius);
    background: var(--shell-control);
}

.idea-editor-image-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.idea-editor-image-frame .ui-inspector-panel__thumbnail-placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    color: var(--shell-text-soft);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.idea-editor__image-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 6px;
}

.idea-editor__icon-button {
    position: relative;
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border: 1px solid color-mix(in srgb, var(--shell-line-strong) 70%, transparent);
    border-radius: var(--shell-radius-sm);
    background: color-mix(in srgb, var(--shell-chrome) 86%, transparent);
    color: var(--shell-text);
    cursor: pointer;
    backdrop-filter: blur(8px);
}

.idea-editor__icon-button:hover {
    border-color: var(--shell-line-strong);
    background: var(--surface_hover);
}

.idea-editor__icon-button svg {
    width: 16px;
    height: 16px;
}

.idea-editor__icon-button:disabled {
    cursor: not-allowed;
    opacity: 0.56;
}

.idea-editor__file-button {
    overflow: hidden;
}

.idea-editor__file-button input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.idea-editor__visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.idea-editor__field {
    display: grid;
    gap: 5px;
}

.idea-editor__input {
    width: 100%;
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid var(--shell-line);
    border-radius: var(--shell-radius-sm);
    background: var(--shell-control);
    color: var(--shell-text);
    font: inherit;
}

.idea-editor__input:focus {
    border-color: var(--shell-accent-strong);
    outline: 2px solid color-mix(in srgb, var(--shell-accent-strong) 24%, transparent);
    outline-offset: 1px;
}

.idea-editor__select {
    appearance: none;
    padding-right: 34px;
    background:
        linear-gradient(45deg, transparent 50%, var(--shell-text-soft) 50%) right 15px center / 6px 6px no-repeat,
        linear-gradient(135deg, var(--shell-text-soft) 50%, transparent 50%) right 10px center / 6px 6px no-repeat,
        var(--shell-control);
}

.idea-editor__type-picker {
    position: relative;
    width: 100%;
}

.idea-editor__type-trigger {
    display: flex;
    width: 100%;
    min-height: 38px;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 10px;
    border: 1px solid var(--shell-line);
    border-radius: var(--shell-radius-sm);
    background: var(--shell-control);
    color: var(--shell-text);
    cursor: pointer;
    font: inherit;
    text-align: left;
}

.idea-editor__type-trigger:hover {
    border-color: var(--shell-line-strong);
    background: var(--surface_hover);
}

.idea-editor__type-trigger:focus {
    border-color: var(--shell-accent-strong);
    outline: 2px solid color-mix(in srgb, var(--shell-accent-strong) 24%, transparent);
    outline-offset: 1px;
}

.idea-editor__type-trigger:disabled {
    cursor: not-allowed;
    opacity: 0.56;
}

.idea-editor__type-selected {
    display: inline-flex;
    min-width: 0;
}

.idea-editor__type-selected .ui-type-chip {
    max-width: 100%;
}

.idea-editor__type-caret {
    flex: 0 0 auto;
    width: 7px;
    height: 7px;
    margin-right: 2px;
    border-width: 0 1.5px 1.5px 0;
    border-style: solid;
    border-color: var(--shell-text-soft);
    transform: rotate(45deg) translateY(-1px);
}

.idea-editor__type-picker.is-open .idea-editor__type-caret {
    transform: rotate(225deg) translate(-1px, -1px);
}

.idea-editor__type-menu {
    position: absolute;
    z-index: 20;
    top: calc(100% + 5px);
    right: 0;
    left: 0;
    display: grid;
    max-height: 240px;
    overflow: auto;
    padding: 5px;
    border: 1px solid var(--shell-line-strong);
    border-radius: var(--shell-radius-sm);
    background: var(--shell-panel);
    box-shadow: var(--shell-shadow);
}

.idea-editor__type-menu[hidden] {
    display: none;
}

.idea-editor__type-option {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 8px;
    padding: 7px;
    border: 0;
    border-radius: var(--shell-radius-sm);
    background: transparent;
    color: var(--shell-text);
    cursor: pointer;
    font: inherit;
    text-align: left;
}

.idea-editor__type-option:hover,
.idea-editor__type-option:focus {
    outline: none;
    background: var(--surface_hover);
}

.idea-editor__type-option.is-selected {
    background: color-mix(in srgb, var(--shell-accent-strong) 15%, transparent);
}

.idea-editor__textarea {
    min-height: 118px;
    resize: vertical;
}

.idea-editor__rating {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
    min-height: 34px;
}

.idea-editor__rating-stars {
    display: inline-flex;
    gap: 2px;
}

.idea-editor__rating-star,
.idea-editor__rating-clear {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--shell-text-soft);
    cursor: pointer;
    font: inherit;
}

.idea-editor__rating-star {
    width: 24px;
    height: 24px;
    padding: 0;
    font-size: 1.1rem;
    line-height: 1;
}

.idea-editor__rating-star:hover,
.idea-editor__rating-star.is-active {
    color: var(--warning);
}

.idea-editor__rating-clear,
.idea-editor__rating-value {
    color: var(--shell-text-soft);
    font-size: 0.78rem;
}

.idea-editor__rating-clear {
    padding: 2px 4px;
    border-radius: var(--shell-radius-sm);
}

.idea-editor__rating-star:disabled,
.idea-editor__rating-clear:disabled {
    cursor: not-allowed;
    opacity: 0.56;
}

.idea-editor__rating-clear:hover {
    color: var(--shell-text);
    background: var(--surface_hover);
}

.idea-editor__tag-editor {
    gap: 7px;
}

.idea-editor__tag-chips {
    display: flex;
    min-height: 28px;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.idea-editor__tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.idea-editor__tag-chip .ui-tag-chip {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.idea-editor__tag-remove {
    display: inline-flex;
    width: 24px;
    min-height: 24px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--shell-line);
    border-left: 0;
    border-radius: 0 999px 999px 0;
    background: var(--shell-control);
    color: var(--shell-text-soft);
    cursor: pointer;
    font: inherit;
    font-size: 0.95rem;
    line-height: 1;
}

.idea-editor__tag-remove:hover,
.idea-editor__tag-remove:focus {
    color: var(--shell-danger);
    background: var(--surface_hover);
    outline: none;
}

.idea-editor__tag-remove:disabled {
    cursor: not-allowed;
    opacity: 0.56;
}

.idea-editor__tag-empty {
    color: var(--shell-text-soft);
    font-size: 0.8rem;
}

.idea-editor__tag-picker {
    position: relative;
}

.idea-editor__tag-suggestions {
    position: absolute;
    z-index: 30;
    top: calc(100% + 5px);
    right: 0;
    left: 0;
    display: grid;
    max-height: 220px;
    overflow: auto;
    padding: 5px;
    border: 1px solid var(--shell-line-strong);
    border-radius: var(--shell-radius-sm);
    background: var(--shell-panel);
    box-shadow: var(--shell-shadow);
}

.idea-editor__tag-suggestion {
    display: flex;
    width: 100%;
    min-height: 32px;
    align-items: center;
    padding: 7px 8px;
    border: 0;
    border-radius: var(--shell-radius-sm);
    background: transparent;
    color: var(--shell-text);
    cursor: pointer;
    font: inherit;
    text-align: left;
}

.idea-editor__tag-suggestion:hover,
.idea-editor__tag-suggestion:focus {
    background: var(--surface_hover);
    outline: none;
}

.idea-editor__tag-suggestion.is-create {
    color: var(--shell-accent-strong);
    font-weight: 700;
}

.idea-editor__tag-error {
    padding: 7px 8px;
    border: 1px solid rgba(163, 61, 43, 0.28);
    border-radius: var(--shell-radius-sm);
    background: rgba(163, 61, 43, 0.08);
    color: var(--shell-danger);
    font-size: 0.78rem;
}

.idea-editor__metadata .shell-inspector-section {
    padding-top: 8px;
}

.idea-editor__metadata .shell-field-label,
.idea-editor__metadata .shell-field-value {
    font-size: 0.78rem;
}

.idea-editor__error {
    padding: 9px 10px;
    border: 1px solid rgba(163, 61, 43, 0.28);
    border-radius: var(--shell-radius-sm);
    background: rgba(163, 61, 43, 0.08);
    color: var(--shell-danger);
    font-size: 0.88rem;
}

.idea-editor__actions {
    grid-template-columns: 1fr 1fr;
}

