body.ea-pw-page {
    margin: 0;
    background: #ecf0f1;
    font-family: Arial, sans-serif;
    color: #2c3e50;
}

.ea-pw {
    width: 960px;
    max-width: calc(100% - 32px);
    margin: 24px auto;
}

.ea-pw--wide {
    width: 820px;
}

.ea-pw__panel {
    background: #fff;
    border: 1px solid #bdc3c7;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 18px;
}

.ea-pw h1 {
    margin: 0 0 14px;
    font-size: 22px;
}

.ea-pw h2 {
    margin: 20px 0 8px;
    font-size: 17px;
}

.ea-pw__field {
    margin: 8px 0;
    word-break: break-word;
}

.ea-pw__steps {
    margin: 16px 0;
    padding: 12px;
    background: #f4f7fa;
    border: 1px solid #d9e1ee;
    border-radius: 8px;
}

.ea-pw__steps p {
    margin: 6px 0;
}

.ea-pw__actions {
    display: flex;
    gap: 10px;
    align-items: center;
    margin: 14px 0;
}

.ea-pw__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 14px;
    border: 0;
    border-radius: 6px;
    background: #3498db;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.ea-pw__button--dark {
    background: #2c3e50;
}

.ea-pw__button--danger {
    background: #a63d3d;
}

.ea-pw__msg {
    margin: 12px 0;
    padding: 10px;
    border: 1px solid #d9e1ee;
    background: #f4f7fa;
    border-radius: 8px;
}

.ea-pw__msg--error {
    border-color: #e2a5a5;
    background: #fff0f0;
    color: #8a1f1f;
}

.ea-pw__details {
    margin-top: 16px;
}

.ea-pw__details pre,
.ea-pw__pre {
    overflow: auto;
    padding: 12px;
    background: #17202a;
    color: #f8f9fa;
    border-radius: 8px;
    white-space: pre-wrap;
}

.ea-pw__table {
    width: 100%;
    border-collapse: collapse;
    margin: 8px 0 14px;
    background: #fff;
}

.ea-pw__table th,
.ea-pw__table td {
    border: 1px solid #d9e1ee;
    padding: 7px;
    text-align: left;
    vertical-align: top;
}

.ea-pw__table th {
    background: #2f3e4e;
    color: #fff;
}

.ea-pw__table--record th {
    width: 190px;
}

.ea-pw__list {
    margin: 8px 0;
    padding-left: 20px;
}

.ea-pw__text {
    max-height: 520px;
    overflow: auto;
    padding: 12px;
    background: #f4f7fa;
    border: 1px solid #d9e1ee;
    border-radius: 8px;
}

.ea-pw__text p {
    margin: 0 0 7px;
}

.ea-pw__reader-form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: end;
    margin: 18px 0 8px;
}

.ea-pw__reader-field {
    flex: 1 1 640px;
}

.ea-pw__reader-label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #385069;
}

.ea-pw__reader-input {
    width: 100%;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid #b8c7d8;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
}

.ea-pw__reader-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.15);
}

.ea-pw__reader-hint {
    margin: 8px 0 0;
    font-size: 12px;
    color: #61788f;
}

.ea-pw__summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin: 16px 0;
}

.ea-pw__summary-card {
    padding: 12px 14px;
    border: 1px solid #d9e1ee;
    border-radius: 10px;
    background: #f8fbfd;
}

.ea-pw__summary-kicker {
    display: block;
    margin-bottom: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #6d8195;
}

.ea-pw__summary-value {
    font-size: 15px;
    font-weight: 700;
    color: #233444;
    word-break: break-word;
}

.ea-pw__activity-feed {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 14px;
}

.ea-pw__activity-entry {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #e8ecf0;
}

.ea-pw__activity-entry:last-child {
    border-bottom: none;
}

.ea-pw__activity-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    margin-top: 2px;
}

.ea-pw__activity-icon--note,
.ea-pw__activity-icon--research {
    background: #e8f4fd;
    color: #3b7fc4;
}

.ea-pw__activity-icon--status,
.ea-pw__activity-icon--assign,
.ea-pw__activity-icon--new,
.ea-pw__activity-icon--generic {
    background: #eef0f4;
    color: #5a6872;
}

.ea-pw__activity-icon--sla {
    background: #fff3e0;
    color: #e65100;
}

.ea-pw__activity-content {
    flex: 1;
    min-width: 0;
}

.ea-pw__activity-title {
    margin: 0 0 2px;
    font-size: 13px;
    font-weight: 600;
    color: #323b43;
    line-height: 1.4;
}

.ea-pw__activity-person {
    color: #1a73e8;
    font-weight: 600;
}

.ea-pw__activity-body {
    margin: 4px 0 0;
    font-family: Arial, sans-serif;
    font-size: 13px;
    white-space: pre-wrap;
    line-height: 1.45;
    color: #4a5568;
}

.ea-pw__activity-body--truncated {
    max-height: 4.4em;
    overflow: hidden;
    position: relative;
}

.ea-pw__activity-body--truncated::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1.6em;
    background: linear-gradient(transparent, #fff);
    pointer-events: none;
}

.ea-pw__activity-toggle {
    display: inline-block;
    margin-top: 2px;
    padding: 0;
    border: none;
    background: none;
    color: #1a73e8;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.ea-pw__activity-toggle:hover {
    text-decoration: underline;
}

.ea-pw__activity-meta {
    margin: 4px 0 0;
    font-size: 11px;
    font-weight: 400;
    color: #8899a6;
}

.ea-pw__activity-empty {
    margin-top: 14px;
    padding: 14px;
    border: 1px dashed #c9d5e3;
    border-radius: 10px;
    background: #f8fbfd;
    color: #61788f;
}
