.powell-questionnaire-page {
    padding: 20px 0;
    color: var(--ls-text-primary, #0f172a);
}

.powell-questionnaire-hero {
    display: flex;
    align-items: center;
    justify-content: stretch;
    flex-wrap: wrap;
    margin-bottom: 16px;
    padding: 14px 22px;
    border: 1px solid var(--ls-border-light, #e5e7eb);
    border-radius: var(--ls-radius-md, 8px);
    background: var(--ls-card-bg, #ffffff);
}

.powell-questionnaire-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    overflow-x: auto;
}

.powell-questionnaire-tabs button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 36px;
    border: 1px solid var(--ls-border-light, #e5e7eb);
    border-radius: var(--ls-radius-sm, 6px);
    background: var(--ls-bg-hover, #f8fafc);
    color: var(--ls-text-secondary, #64748b);
    padding: 0 14px;
    cursor: pointer;
    white-space: nowrap;
}

.powell-questionnaire-tabs button:hover,
.powell-questionnaire-tabs button.is-active {
    border-color: var(--ls-primary, #2563eb);
    background: var(--ls-primary-light, #eff6ff);
    color: var(--ls-primary, #2563eb);
}

.powell-questionnaire-tabs .powell-questionnaire-tab-action {
    margin-left: auto;
}

.powell-questionnaire-layout {
    display: block;
}

.powell-questionnaire-page.is-detail-page .powell-questionnaire-layout {
    display: block;
}

.powell-questionnaire-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.powell-questionnaire-card {
    border: 1px solid var(--ls-border-light, #e5e7eb);
    border-radius: var(--ls-radius-md, 8px);
    background: var(--ls-card-bg, #ffffff);
    padding: 22px;
    box-shadow: var(--ls-shadow-sm, 0 10px 24px rgba(15, 23, 42, .04));
}

.powell-questionnaire-card h2 {
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 0;
}

.powell-questionnaire-form-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.powell-questionnaire-index-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.powell-questionnaire-index-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border: 1px solid var(--ls-border-light, #e5e7eb);
    border-radius: var(--ls-radius-sm, 6px);
    background: var(--ls-bg-hover, #f8fafc);
    color: var(--ls-text-primary, #0f172a);
    padding: 14px;
    text-decoration: none;
}

.powell-questionnaire-index-item:hover {
    border-color: var(--ls-primary, #2563eb);
}

.powell-questionnaire-index-item .powell-questionnaire-item-title {
    display: block;
    margin-bottom: 5px;
    font-size: 15px;
}

.powell-questionnaire-index-item span {
    display: block;
    color: var(--ls-text-secondary, #64748b);
    font-size: 13px;
    line-height: 1.5;
}

.powell-questionnaire-index-item.is-manage-item {
    align-items: flex-start;
}

.powell-questionnaire-index-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex: 0 0 auto;
    flex-wrap: wrap;
}

.powell-questionnaire-index-actions a,
.powell-questionnaire-index-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 30px;
    border: 1px solid var(--ls-primary, #2563eb);
    border-radius: var(--ls-radius-sm, 6px);
    background: var(--ls-card-bg, #ffffff);
    color: var(--ls-primary, #2563eb);
    padding: 0 10px;
    font-size: 12px;
    font-weight: 400;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
}

.powell-questionnaire-index-actions a:hover,
.powell-questionnaire-index-actions button:hover {
    background: var(--ls-primary-light, #eff6ff);
}

.powell-questionnaire-index-actions button.is-danger {
    border-color: var(--ls-danger, #dc2626);
    color: var(--ls-danger, #dc2626);
}

.powell-questionnaire-index-actions button.is-danger:hover {
    background: var(--ls-danger-light, #fef2f2);
}

.powell-questionnaire-form-item {
    display: block;
    width: 100%;
    border: 1px solid var(--ls-border-light, #e5e7eb);
    border-radius: var(--ls-radius-sm, 6px);
    background: var(--ls-bg-hover, #f8fafc);
    padding: 12px;
    text-align: left;
    cursor: pointer;
    color: var(--ls-text-primary, #0f172a);
    text-decoration: none;
}

.powell-questionnaire-form-item:hover {
    border-color: var(--ls-primary, #2563eb);
}

.powell-questionnaire-form-item.is-active {
    border-color: var(--ls-primary, #2563eb);
    color: var(--ls-primary, #2563eb);
    background: var(--ls-bg, #f8fafc);
}

.powell-questionnaire-form-item .powell-questionnaire-item-title {
    display: block;
    font-size: 14px;
}

.powell-questionnaire-form-item span {
    display: block;
    margin-top: 4px;
    color: var(--ls-text-secondary, #64748b);
    font-size: 12px;
    line-height: 1.5;
}

.powell-questionnaire-main {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.powell-questionnaire-form-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--ls-border-light, #e5e7eb);
    padding-bottom: 16px;
}

.powell-questionnaire-form-head h2 {
    margin-bottom: 6px;
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 0;
}

.powell-questionnaire-form-head p {
    margin: 0;
    color: var(--ls-text-secondary, #64748b);
    line-height: 1.6;
}

.powell-questionnaire-form-tools {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.powell-questionnaire-description {
    margin-bottom: 18px;
    border: 1px solid var(--ls-border-light, #e5e7eb);
    border-radius: var(--ls-radius-md, 8px);
    background: var(--ls-bg-hover, #f8fafc);
    padding: 12px 14px;
    color: var(--ls-text-secondary, #64748b);
    line-height: 1.7;
    white-space: pre-wrap;
}

.powell-questionnaire-description:empty {
    display: none;
}

.powell-questionnaire-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 16px;
}

.powell-questionnaire-field {
    min-width: 0;
    border: 1px solid var(--ls-border-light, #e5e7eb);
    border-radius: var(--ls-radius-md, 8px);
    background: var(--ls-bg-hover, #f8fafc);
    padding: 14px;
}

.powell-questionnaire-field.is-full {
    grid-column: 1 / -1;
}

.powell-questionnaire-field.is-compact {
    grid-column: auto;
}

.powell-questionnaire-field.is-wide {
    grid-column: 1 / -1;
}

.powell-questionnaire-field.is-section {
    border: 0;
    border-bottom: 1px solid var(--ls-border-light, #e5e7eb);
    border-radius: 0;
    background: transparent;
    padding: 16px 0 8px;
}

.powell-questionnaire-field.is-paragraph {
    border-color: var(--ls-primary-light, #dbeafe);
    background: var(--ls-primary-light, #eff6ff);
}

.powell-questionnaire-field h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0;
}

.powell-questionnaire-field p {
    margin: 0;
    color: var(--ls-text-secondary, #64748b);
    line-height: 1.7;
}

.powell-questionnaire-label {
    display: block;
    margin-bottom: 10px;
}

.powell-questionnaire-label span {
    display: block;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
}

.powell-questionnaire-question-no {
    display: inline-block;
    margin-right: 5px;
    color: var(--ls-text-primary, #0f172a);
    font-style: normal;
}

.powell-questionnaire-label em {
    margin-left: 3px;
    color: var(--ls-danger, #dc2626);
    font-style: normal;
}

.powell-questionnaire-label small {
    display: block;
    margin-top: 4px;
    color: var(--ls-text-secondary, #64748b);
    font-size: 12px;
    line-height: 1.5;
}

.powell-questionnaire-field input {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--ls-border-light, #e5e7eb);
    border-radius: var(--ls-radius-sm, 6px);
    background: var(--ls-card-bg, #ffffff);
    color: var(--ls-text-primary, #0f172a);
    padding: 0 12px;
    outline: none;
}

.powell-questionnaire-field textarea {
    width: 100%;
    border: 1px solid var(--ls-border-light, #e5e7eb);
    border-radius: var(--ls-radius-sm, 6px);
    background: var(--ls-card-bg, #ffffff);
    color: var(--ls-text-primary, #0f172a);
    padding: 10px 12px;
    outline: none;
    resize: vertical;
}

.powell-questionnaire-field select {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--ls-border-light, #e5e7eb);
    border-radius: var(--ls-radius-sm, 6px);
    background: var(--ls-card-bg, #ffffff);
    color: var(--ls-text-primary, #0f172a);
    padding: 0 12px;
    outline: none;
}

.powell-questionnaire-field input:focus,
.powell-questionnaire-field textarea:focus,
.powell-questionnaire-field select:focus {
    border-color: var(--ls-primary, #2563eb);
    box-shadow: 0 0 0 3px var(--ls-primary-light, #eff6ff);
}

/* 单选、多选和滑块保留原生控件外观，避免被通用输入框样式压扁。 */
.powell-questionnaire-field input[type="radio"],
.powell-questionnaire-field input[type="checkbox"] {
    -webkit-appearance: auto;
    appearance: auto;
    display: inline-block;
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    min-width: 16px;
    min-height: 16px;
    max-width: 16px;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    accent-color: var(--ls-primary, #2563eb);
    vertical-align: middle;
}

.powell-questionnaire-field input[type="range"] {
    -webkit-appearance: auto;
    appearance: auto;
    width: 100%;
    min-width: 0;
    height: 24px;
    min-height: 24px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    accent-color: var(--ls-primary, #2563eb);
}

.powell-questionnaire-field input[type="radio"]:focus,
.powell-questionnaire-field input[type="checkbox"]:focus,
.powell-questionnaire-field input[type="range"]:focus {
    border-color: transparent;
    box-shadow: none;
    outline: 2px solid var(--ls-primary-light, #eff6ff);
    outline-offset: 2px;
}

.powell-questionnaire-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.powell-questionnaire-options label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 38px;
    border: 1px solid var(--ls-border-light, #e5e7eb);
    border-radius: var(--ls-radius-sm, 6px);
    padding: 8px 12px;
    background: var(--ls-card-bg, #ffffff);
    cursor: pointer;
    transition: border-color .2s ease, color .2s ease, background .2s ease;
}

.powell-questionnaire-options label:hover {
    border-color: var(--ls-primary, #2563eb);
    color: var(--ls-primary, #2563eb);
    background: var(--ls-primary-light, #eff6ff);
}

.powell-questionnaire-options input[type="radio"],
.powell-questionnaire-options input[type="checkbox"] {
    margin-top: 1px;
}

.powell-questionnaire-range {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 54px;
    align-items: center;
    gap: 10px;
}

.powell-questionnaire-range input[type="range"] {
    width: 100%;
}

.powell-questionnaire-range span {
    border: 1px solid var(--ls-border-light, #e5e7eb);
    border-radius: var(--ls-radius-sm, 6px);
    background: var(--ls-card-bg, #ffffff);
    padding: 8px 10px;
    text-align: center;
}

.powell-questionnaire-rating {
    display: flex;
    align-items: center;
    gap: 6px;
}

.powell-questionnaire-rating button {
    width: 38px;
    height: 38px;
    border: 1px solid var(--ls-border-light, #e5e7eb);
    border-radius: var(--ls-radius-sm, 6px);
    background: var(--ls-card-bg, #ffffff);
    color: var(--ls-text-secondary, #64748b);
    cursor: pointer;
}

.powell-questionnaire-rating button.is-active {
    border-color: var(--ls-warning, #f59e0b);
    color: var(--ls-warning, #f59e0b);
    background: var(--ls-warning-light, #fffbeb);
}

.powell-questionnaire-nps {
    display: grid;
    grid-template-columns: repeat(11, minmax(0, 1fr));
    gap: 6px;
}

.powell-questionnaire-nps button {
    min-height: 34px;
    border: 1px solid var(--ls-border-light, #e5e7eb);
    border-radius: var(--ls-radius-sm, 6px);
    background: var(--ls-card-bg, #ffffff);
    color: var(--ls-text-primary, #0f172a);
    cursor: pointer;
}

.powell-questionnaire-nps button.is-active {
    border-color: var(--ls-primary, #2563eb);
    color: var(--ls-primary, #2563eb);
    background: var(--ls-primary-light, #eff6ff);
}

.powell-questionnaire-checkline {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--ls-text-primary, #0f172a);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
}

.powell-questionnaire-checkline input[type="checkbox"] {
    margin-top: 1px;
}

.powell-questionnaire-checkline span {
    color: var(--ls-text-primary, #0f172a);
    font-size: 14px;
    font-weight: 400;
}

.powell-questionnaire-matrix {
    width: 100%;
    min-width: 560px;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--ls-border-light, #e5e7eb);
    border-radius: var(--ls-radius-sm, 6px);
    overflow: hidden;
    background: var(--ls-card-bg, #ffffff);
}

.powell-questionnaire-field[data-type="matrix_single"],
.powell-questionnaire-field[data-type="matrix_multi"] {
    overflow-x: auto;
}

.powell-questionnaire-matrix th {
    border-bottom: 1px solid var(--ls-border-light, #e5e7eb);
    background: var(--ls-bg-hover, #f8fafc);
    padding: 10px;
    text-align: center;
    color: var(--ls-text-secondary, #64748b);
    font-weight: 400;
}

.powell-questionnaire-matrix td {
    border-bottom: 1px solid var(--ls-border-light, #e5e7eb);
    padding: 10px;
    text-align: center;
}

.powell-questionnaire-matrix input[type="radio"],
.powell-questionnaire-matrix input[type="checkbox"] {
    margin: 0 auto;
}

.powell-questionnaire-actions {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    border-top: 1px solid var(--ls-border-light, #e5e7eb);
    padding-top: 16px;
}

.powell-questionnaire-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 38px;
    border: 1px solid var(--ls-primary, #2563eb);
    border-radius: var(--ls-radius-sm, 6px);
    background: var(--ls-primary, #2563eb);
    color: var(--ls-button-text, #ffffff);
    padding: 0 14px;
    cursor: pointer;
}

.powell-questionnaire-button.is-ghost {
    background: var(--ls-card-bg, #ffffff);
    color: var(--ls-primary, #2563eb);
}

.powell-questionnaire-button:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.powell-questionnaire-empty {
    border: 1px dashed var(--ls-border-light, #e5e7eb);
    border-radius: var(--ls-radius-sm, 6px);
    padding: 16px;
    color: var(--ls-text-secondary, #64748b);
    text-align: center;
}

.powell-questionnaire-index-list .powell-questionnaire-empty {
    grid-column: 1 / -1;
    width: 100%;
}

/* 问卷记录卡片按头部、摘要、答案分区，便于快速扫读。 */
.powell-questionnaire-record {
    border: 1px solid var(--ls-border-light, #e5e7eb);
    border-radius: var(--ls-radius-md, 8px);
    padding: 14px;
    background: var(--ls-card-bg, #ffffff);
}

.powell-questionnaire-record + .powell-questionnaire-record {
    margin-top: 12px;
}

.powell-questionnaire-record-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--ls-border-light, #e5e7eb);
    padding-bottom: 10px;
}

.powell-questionnaire-record-meta {
    min-width: 0;
}

.powell-questionnaire-record-title {
    display: block;
    color: var(--ls-text-primary, #0f172a);
    font-size: 15px;
    line-height: 1.5;
}

.powell-questionnaire-record-time {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
    color: var(--ls-text-secondary, #64748b);
    font-size: 12px;
    line-height: 1.4;
}

.powell-questionnaire-record-user {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    min-height: 28px;
    border: 1px solid var(--ls-primary-light, #dbeafe);
    border-radius: var(--ls-radius-sm, 6px);
    background: var(--ls-bg-hover, #f8fafc);
    color: var(--ls-primary, #2563eb);
    padding: 0 10px;
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
}

em.powell-questionnaire-record-user {
    color: var(--ls-text-secondary, #64748b);
    font-style: normal;
}

.powell-questionnaire-record-head-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 auto;
    gap: 8px;
}

.powell-questionnaire-record-share {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex: 0 0 auto;
    min-height: 28px;
    border: 1px solid var(--ls-primary-light, #dbeafe);
    border-radius: var(--ls-radius-sm, 6px);
    background: var(--ls-card-bg, #ffffff);
    color: var(--ls-primary, #2563eb);
    padding: 0 10px;
    font-size: 13px;
    white-space: nowrap;
    cursor: pointer;
}

.powell-questionnaire-record-share:hover {
    background: var(--ls-primary-light, #eff6ff);
}

.powell-questionnaire-record-summary {
    margin-bottom: 10px;
    border: 1px solid var(--ls-border-light, #e5e7eb);
    border-radius: var(--ls-radius-sm, 6px);
    background: var(--ls-bg-hover, #f8fafc);
    padding: 10px 12px;
}

.powell-questionnaire-record-summary span {
    display: block;
    margin-bottom: 4px;
    color: var(--ls-text-secondary, #64748b);
    font-size: 12px;
}

.powell-questionnaire-record-summary p {
    margin: 0;
    color: var(--ls-text-primary, #0f172a);
    line-height: 1.6;
}

.powell-questionnaire-record-details {
    border: 1px solid var(--ls-border-light, #e5e7eb);
    border-radius: var(--ls-radius-sm, 6px);
    background: var(--ls-card-bg, #ffffff);
    color: var(--ls-text-secondary, #64748b);
    overflow: hidden;
}

.powell-questionnaire-record-details summary {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 12px;
    color: var(--ls-text-primary, #0f172a);
    cursor: pointer;
    list-style: none;
}

.powell-questionnaire-record-details summary::-webkit-details-marker {
    display: none;
}

.powell-questionnaire-record-details[open] summary {
    border-bottom: 1px solid var(--ls-border-light, #e5e7eb);
}

.powell-questionnaire-record-details[open] summary i {
    transform: rotate(180deg);
}

.powell-questionnaire-answer-list {
    display: grid;
    grid-template-columns: minmax(110px, 22%) minmax(0, 1fr);
    gap: 0;
    margin: 0;
}

.powell-questionnaire-answer-list dt {
    border-top: 1px solid var(--ls-border-light, #e5e7eb);
    padding: 10px 12px;
    color: var(--ls-text-secondary, #64748b);
}

.powell-questionnaire-answer-list dd {
    margin: 0;
    border-top: 1px solid var(--ls-border-light, #e5e7eb);
    padding: 10px 12px;
    color: var(--ls-text-primary, #0f172a);
    word-break: break-word;
}

.powell-questionnaire-share-modal {
    display: grid;
    gap: 12px;
}

.powell-questionnaire-share-note,
.powell-questionnaire-share-error {
    margin: 0;
    color: var(--ls-text-secondary, #64748b);
    font-size: 13px;
    line-height: 1.6;
}

.powell-questionnaire-share-error {
    color: var(--ls-danger, #ef4444);
}

.powell-questionnaire-share-modal label,
.powell-questionnaire-share-result {
    display: grid;
    gap: 6px;
    color: var(--ls-text-secondary, #64748b);
    font-size: 13px;
}

.powell-questionnaire-share-modal input {
    box-sizing: border-box;
    width: 100%;
    min-height: 38px;
    border: 1px solid var(--ls-border, #d8dee8);
    border-radius: var(--ls-radius-sm, 6px);
    background: var(--ls-card-bg, #ffffff);
    color: var(--ls-text-primary, #0f172a);
    padding: 0 12px;
}

.powell-questionnaire-share-result {
    border: 1px solid var(--ls-border-light, #e5e7eb);
    border-radius: var(--ls-radius-md, 8px);
    background: var(--ls-bg-hover, #f8fafc);
    padding: 10px 12px;
}

.powell-questionnaire-share-result[hidden] {
    display: none;
}

.powell-questionnaire-shared-page {
    min-height: 60vh;
}

.powell-questionnaire-shared-shell {
    width: min(760px, calc(100% - 32px));
    margin: 32px auto;
}

.powell-questionnaire-shared-card {
    border: 1px solid var(--ls-border-light, #e5e7eb);
    border-radius: var(--ls-radius-md, 8px);
    background: var(--ls-card-bg, #ffffff);
    padding: 18px;
}

.powell-questionnaire-shared-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--ls-border-light, #e5e7eb);
    padding-bottom: 14px;
}

.powell-questionnaire-shared-head h2 {
    margin: 0;
    color: var(--ls-text-primary, #0f172a);
    font-size: 22px;
    line-height: 1.4;
}

.powell-questionnaire-shared-head p,
.powell-questionnaire-shared-head span {
    margin: 6px 0 0;
    color: var(--ls-text-secondary, #64748b);
    font-size: 13px;
    line-height: 1.6;
}

.powell-questionnaire-share-password {
    display: grid;
    gap: 12px;
}

.powell-questionnaire-share-password label {
    display: grid;
    gap: 6px;
    color: var(--ls-text-secondary, #64748b);
    font-size: 13px;
}

.powell-questionnaire-share-password input {
    box-sizing: border-box;
    width: 100%;
    min-height: 40px;
    border: 1px solid var(--ls-border, #d8dee8);
    border-radius: var(--ls-radius-sm, 6px);
    background: var(--ls-card-bg, #ffffff);
    color: var(--ls-text-primary, #0f172a);
    padding: 0 12px;
}

.powell-questionnaire-share-password p {
    min-height: 18px;
    margin: 0;
    color: var(--ls-danger, #ef4444);
    font-size: 13px;
}

.powell-questionnaire-shared-answer {
    margin-top: 12px;
}

@media (max-width: 640px) {
    .powell-questionnaire-record-head {
        align-items: flex-start;
    }

    .powell-questionnaire-record-head-actions {
        flex-direction: column;
        align-items: flex-end;
    }

    .powell-questionnaire-shared-shell {
        width: calc(100% - 20px);
        margin: 18px auto;
    }

    .powell-questionnaire-shared-card {
        padding: 14px;
    }

    .powell-questionnaire-shared-head {
        flex-direction: column;
    }

    .powell-questionnaire-shared-head h2 {
        font-size: 20px;
    }
}

/* 创建者数据面板同时展示统计和提交记录。 */
.powell-questionnaire-owner-section + .powell-questionnaire-owner-section {
    margin-top: 16px;
}

.powell-questionnaire-owner-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.powell-questionnaire-owner-stat {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--ls-border-light, #e5e7eb);
    border-radius: var(--ls-radius-md, 8px);
    background: var(--ls-bg-hover, #f8fafc);
    padding: 12px;
}

.powell-questionnaire-owner-stat > i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: var(--ls-radius-sm, 6px);
    background: var(--ls-primary-light, #eff6ff);
    color: var(--ls-primary, #2563eb);
    font-size: 18px;
}

.powell-questionnaire-owner-stat span,
.powell-questionnaire-owner-stat em {
    display: block;
    font-style: normal;
    line-height: 1.4;
}

.powell-questionnaire-owner-stat span {
    color: var(--ls-text-primary, #0f172a);
    font-size: 18px;
}

.powell-questionnaire-owner-stat em {
    color: var(--ls-text-secondary, #64748b);
    font-size: 12px;
}

.powell-questionnaire-owner-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    color: var(--ls-text-primary, #0f172a);
    font-size: 15px;
}

.powell-questionnaire-owner-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.powell-questionnaire-owner-field {
    border: 1px solid var(--ls-border-light, #e5e7eb);
    border-radius: var(--ls-radius-md, 8px);
    background: var(--ls-card-bg, #ffffff);
    padding: 12px;
}

.powell-questionnaire-owner-field-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}

.powell-questionnaire-owner-field-head span {
    color: var(--ls-text-primary, #0f172a);
    font-size: 15px;
}

.powell-questionnaire-owner-field-head em,
.powell-questionnaire-owner-field-meta,
.powell-questionnaire-owner-empty {
    color: var(--ls-text-secondary, #64748b);
    font-style: normal;
    font-size: 12px;
}

.powell-questionnaire-owner-numeric {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.powell-questionnaire-owner-numeric span {
    border-radius: var(--ls-radius-sm, 6px);
    background: var(--ls-bg-hover, #f8fafc);
    color: var(--ls-text-secondary, #64748b);
    padding: 5px 8px;
    font-size: 12px;
}

.powell-questionnaire-owner-insight {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    border: 1px solid rgba(37, 99, 235, 0.18);
    border-radius: var(--ls-radius-sm, 6px);
    background: var(--ls-primary-light, #eff6ff);
    padding: 8px 10px;
}

.powell-questionnaire-owner-insight span {
    color: var(--ls-primary, #2563eb);
    font-size: 12px;
    white-space: nowrap;
}

.powell-questionnaire-owner-insight strong {
    min-width: 0;
    overflow: hidden;
    color: var(--ls-text-primary, #0f172a);
    font-size: 13px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.powell-questionnaire-owner-insight em {
    color: var(--ls-text-secondary, #64748b);
    font-size: 12px;
    font-style: normal;
    white-space: nowrap;
}

.powell-questionnaire-owner-bars,
.powell-questionnaire-owner-samples {
    margin-top: 10px;
}

.powell-questionnaire-owner-sample-title {
    margin-top: 10px;
    color: var(--ls-text-secondary, #64748b);
    font-size: 12px;
}

.powell-questionnaire-owner-bar + .powell-questionnaire-owner-bar {
    margin-top: 8px;
}

.powell-questionnaire-owner-bar div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--ls-text-secondary, #64748b);
    font-size: 12px;
}

.powell-questionnaire-owner-bar div em {
    color: var(--ls-text-primary, #0f172a);
    font-style: normal;
}

.powell-questionnaire-owner-bar.is-top div span {
    color: var(--ls-primary, #2563eb);
    font-weight: 600;
}

.powell-questionnaire-owner-bar i {
    display: block;
    height: 6px;
    margin-top: 5px;
    border-radius: 999px;
    background: var(--ls-bg-hover, #f8fafc);
    overflow: hidden;
}

.powell-questionnaire-owner-bar i span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--ls-primary, #2563eb);
}

.powell-questionnaire-owner-bar.is-top i span {
    background: linear-gradient(90deg, #2563eb, #60a5fa);
}

.powell-questionnaire-owner-samples {
    margin-bottom: 0;
    padding-left: 18px;
    color: var(--ls-text-secondary, #64748b);
    line-height: 1.7;
}

.powell-questionnaire-submit-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 8px 0 4px;
    text-align: center;
}

.powell-questionnaire-submit-success > i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--ls-success-light, #ecfdf5);
    color: var(--ls-success, #10b981);
    font-size: 26px;
}

.powell-questionnaire-submit-success p {
    margin: 2px 0 0;
    color: var(--ls-text-primary, #0f172a);
    font-size: 16px;
    line-height: 1.5;
}

.powell-questionnaire-submit-success span {
    color: var(--ls-text-secondary, #64748b);
    font-size: 13px;
    line-height: 1.6;
}

.powell-questionnaire-submit-success button {
    min-width: 96px;
    min-height: 34px;
    margin-top: 6px;
    border: 0;
    border-radius: var(--ls-radius-sm, 6px);
    background: var(--ls-primary, #2563eb);
    color: var(--ls-button-text, #ffffff);
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
}

.powell-questionnaire-more {
    width: 100%;
    margin-top: 10px;
    border: 1px solid var(--ls-border-light, #e5e7eb);
    border-radius: var(--ls-radius-sm, 6px);
    background: var(--ls-card-bg, #ffffff);
    color: var(--ls-primary, #2563eb);
    padding: 10px;
    cursor: pointer;
}

.powell-questionnaire-manage-tools {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    margin-bottom: 14px;
}

.powell-questionnaire-manage-tools input {
    min-height: 38px;
    border: 1px solid var(--ls-border-light, #e5e7eb);
    border-radius: var(--ls-radius-sm, 6px);
    padding: 0 12px;
    outline: none;
}

.powell-questionnaire-create-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.powell-questionnaire-create-fields {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.powell-questionnaire-create-field {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) 160px 90px minmax(0, 1fr) 38px;
    gap: 8px;
    align-items: center;
    border: 1px solid var(--ls-border-light, #e5e7eb);
    border-radius: var(--ls-radius-sm, 6px);
    padding: 10px;
}

.powell-questionnaire-create-field input {
    min-height: 36px;
    border: 1px solid var(--ls-border-light, #e5e7eb);
    border-radius: var(--ls-radius-sm, 6px);
    padding: 0 10px;
}

.powell-questionnaire-create-field select {
    -webkit-appearance: auto;
    appearance: auto;
    width: 100%;
    min-width: 0;
    min-height: 36px;
    border: 1px solid var(--ls-border-light, #e5e7eb);
    border-radius: var(--ls-radius-sm, 6px);
    background-color: var(--ls-card-bg, #ffffff);
    box-sizing: border-box;
    color: var(--ls-text-primary, #0f172a);
    padding: 0 10px;
    font-size: 14px;
    line-height: 1.4;
}

.powell-questionnaire-create-field textarea {
    min-height: 36px;
    border: 1px solid var(--ls-border-light, #e5e7eb);
    border-radius: var(--ls-radius-sm, 6px);
    padding: 7px 10px;
    resize: vertical;
}

.powell-questionnaire-create-field button {
    width: 36px;
    height: 36px;
    border: 1px solid var(--ls-border-light, #e5e7eb);
    border-radius: var(--ls-radius-sm, 6px);
    background: var(--ls-card-bg, #ffffff);
    color: var(--ls-danger, #dc2626);
    cursor: pointer;
}

.powell-questionnaire-create-field {
    display: block;
    padding: 0;
    background: var(--ls-card-bg, #ffffff);
    overflow: hidden;
}

.powell-questionnaire-create-field-header {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) auto;
    align-items: center;
    min-height: 44px;
    gap: 8px;
    padding: 0 12px 0 8px;
    background: var(--ls-bg-hover, #f8fafc);
    border-left: 3px solid var(--ls-primary, #2563eb);
}

.powell-questionnaire-create-field .powell-questionnaire-create-field-toggle {
    width: 28px;
    height: 28px;
    border: 0;
    background: transparent;
    color: var(--ls-text-secondary, #64748b);
    cursor: pointer;
}

.powell-questionnaire-create-field-toggle i {
    display: inline-block;
    transition: transform .2s ease;
}

.powell-questionnaire-create-field.is-open .powell-questionnaire-create-field-toggle i {
    transform: rotate(90deg);
}

.powell-questionnaire-create-field-title {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.powell-questionnaire-create-field-title span {
    color: var(--ls-text-primary, #0f172a);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
}

.powell-questionnaire-create-field-title small {
    border: 1px solid var(--ls-border-light, #e5e7eb);
    border-radius: var(--ls-radius-sm, 6px);
    padding: 3px 7px;
    background: var(--ls-card-bg, #ffffff);
    color: var(--ls-text-secondary, #64748b);
    font-size: 12px;
    line-height: 1;
}

.powell-questionnaire-create-field-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.powell-questionnaire-create-field-actions button {
    width: 28px;
    height: 28px;
    border: 0;
    background: transparent;
    color: var(--ls-text-secondary, #64748b);
    cursor: pointer;
}

.powell-questionnaire-create-required {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 28px;
    border: 1px solid var(--ls-border-light, #e5e7eb);
    border-radius: var(--ls-radius-sm, 6px);
    padding: 0 8px;
    background: var(--ls-card-bg, #ffffff);
    color: var(--ls-text-secondary, #64748b);
    font-size: 12px;
    cursor: pointer;
}

.powell-questionnaire-create-required input[type="checkbox"],
.powell-questionnaire-create-control.is-check input[type="checkbox"] {
    -webkit-appearance: checkbox;
    appearance: auto;
    display: inline-block;
    flex: 0 0 14px;
    width: 14px;
    height: 14px;
    min-width: 14px;
    min-height: 14px;
    max-width: 14px;
    max-height: 14px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    accent-color: var(--ls-primary, #2563eb);
    vertical-align: middle;
}

.powell-questionnaire-create-field-actions button[data-action="remove-create-field"] {
    color: var(--ls-danger, #dc2626);
}

.powell-questionnaire-create-field-content {
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 12px 14px 14px;
    border-top: 1px solid var(--ls-border-light, #e5e7eb);
}

.powell-questionnaire-create-field.is-open .powell-questionnaire-create-field-content {
    display: grid;
}

.powell-questionnaire-create-control {
    display: flex;
    flex-direction: column;
    gap: 5px;
    color: var(--ls-text-secondary, #64748b);
}

.powell-questionnaire-create-control span {
    color: var(--ls-text-secondary, #64748b);
    font-size: 13px;
}

.powell-questionnaire-create-control.is-check {
    flex-direction: row;
    align-items: center;
    padding-top: 24px;
}

.powell-questionnaire-create-control.is-full {
    grid-column: 1 / -1;
}

.powell-questionnaire-create-control.is-options,
.powell-questionnaire-create-control.is-matrix {
    display: none;
}

.powell-questionnaire-create-field.has-options .powell-questionnaire-create-control.is-options,
.powell-questionnaire-create-field.has-matrix .powell-questionnaire-create-control.is-matrix {
    display: flex;
}

.powell-questionnaire-create-control textarea {
    min-height: 64px;
    padding: 8px 10px;
}
