.a3-manager {
    padding: 0;
}

.a3-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.a3-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.a3-btn {
    padding: 8px 18px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.a3-btn-primary {
    background: #2563eb;
    color: #fff;
}

.a3-btn-primary:hover {
    background: #1d4ed8;
}

.a3-btn-outline {
    background: #fff;
    color: #334155;
    border: 1px solid #e2e8f0;
}

.a3-btn-outline:hover {
    background: #f1f5f9;
}

.a3-btn-danger {
    background: #ef4444;
    color: #fff;
}

.a3-btn-danger:hover {
    background: #dc2626;
}

.a3-btn-sm {
    padding: 5px 12px;
    font-size: 13px;
}

.a3-btn-success {
    background: #10b981;
    color: #fff;
}

.a3-btn-success:hover {
    background: #059669;
}

.a3-filters {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.a3-select,
.a3-input {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    color: #1e293b;
    min-width: 160px;
}

.a3-select:focus,
.a3-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.a3-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1rem;
}

.a3-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1.25rem;
    cursor: pointer;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.a3-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #2563eb;
}

.a3-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.a3-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.a3-type-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.a3-type-badge.informational {
    background: #dbeafe;
    color: #1e40af;
}

.a3-type-badge.project {
    background: #fef3c7;
    color: #92400e;
}

.a3-type-badge.proposal {
    background: #ede9fe;
    color: #5b21b6;
}

.a3-type-badge.problem_solving {
    background: #fee2e2;
    color: #991b1b;
}

.a3-type-badge.status {
    background: #d1fae5;
    color: #065f46;
}

.a3-type-badge.standard {
    background: #f1f5f9;
    color: #334155;
}

.a3-status-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
}

.a3-status-badge.draft {
    background: #f1f5f9;
    color: #64748b;
}

.a3-status-badge.active {
    background: #dbeafe;
    color: #1d4ed8;
}

.a3-status-badge.completed {
    background: #d1fae5;
    color: #059669;
}

.a3-status-badge.archived {
    background: #f3f4f6;
    color: #6b7280;
}

.a3-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8125rem;
    color: #64748b;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

.a3-card-meta i {
    margin-right: 4px;
}

.a3-empty {
    text-align: center;
    padding: 3rem 1.5rem;
    color: #94a3b8;
    grid-column: 1 / -1;
}

.a3-empty i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.a3-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.a3-modal {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.a3-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.a3-modal-header h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
}

.a3-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #94a3b8;
    line-height: 1;
}

.a3-modal-close:hover {
    color: #1e293b;
}

.a3-modal-body {
    padding: 1.5rem;
}

.a3-form-group {
    margin-bottom: 1rem;
}

.a3-form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #334155;
    margin-bottom: 0.375rem;
}

.a3-form-group textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    resize: vertical;
    font-family: inherit;
}

.a3-form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.a3-form-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 1.25rem;
}

.a3-editor {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.a3-editor-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.a3-editor-toolbar-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.a3-editor-toolbar-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.a3-editor-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8125rem;
    color: #64748b;
}

.a3-save-indicator {
    font-size: 0.8125rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 4px;
}

.a3-save-indicator.saved {
    color: #10b981;
}

.a3-paper {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    aspect-ratio: 17 / 11;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr;
    overflow: hidden;
}

.a3-paper-title {
    grid-column: 1 / -1;
    padding: 1rem 1.5rem;
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.a3-paper-title input {
    font-size: 1.25rem;
    font-weight: 700;
    border: none;
    background: transparent;
    color: #1e293b;
    flex: 1;
    padding: 4px 0;
}

.a3-paper-title input:focus {
    outline: none;
    border-bottom: 2px solid #2563eb;
}

.a3-paper-left,
.a3-paper-right {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 0;
}

.a3-paper-left {
    border-right: 1px solid #e2e8f0;
}

.a3-section {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.a3-section:last-child {
    border-bottom: none;
}

.a3-section-header {
    font-size: 0.75rem;
    font-weight: 700;
    color: #2563eb;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.375rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.a3-section textarea {
    width: 100%;
    border: 1px solid transparent;
    border-radius: 4px;
    padding: 6px 8px;
    font-size: 0.8125rem;
    line-height: 1.5;
    resize: none;
    flex: 1;
    min-height: 40px;
    font-family: inherit;
    color: #334155;
    background: transparent;
    transition: border-color 0.2s, background 0.2s;
}

.a3-section textarea:focus {
    outline: none;
    border-color: #2563eb;
    background: #f8fafc;
}

.a3-section textarea:hover {
    background: #fafbfc;
}

.a3-paper-quadrant {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr 1fr;
}

.a3-quadrant {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 0;
}

.a3-quadrant-tl {
    border-right: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.a3-quadrant-tr {
    border-bottom: 1px solid #e2e8f0;
}

.a3-quadrant-bl {
    border-right: 1px solid #e2e8f0;
}

.a3-quadrant-br {
}

.a3-quadrant .a3-section {
    flex: 1;
    border-bottom: none;
}

.a3-quadrant .a3-section-header {
    padding-bottom: 0.375rem;
    border-bottom: 2px solid #2563eb;
    margin-bottom: 0.5rem;
    font-size: 0.8125rem;
}

.a3-quadrant-br .a3-section-header {
    border-bottom-color: #ef4444;
    color: #ef4444;
}

@media (max-width: 768px) {
    .a3-paper {
        aspect-ratio: auto;
        grid-template-columns: 1fr;
    }

    .a3-paper-left {
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
    }

    .a3-paper-quadrant {
        grid-template-columns: 1fr;
        grid-template-rows: auto repeat(4, auto);
    }

    .a3-quadrant-tl,
    .a3-quadrant-tr,
    .a3-quadrant-bl {
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
    }

    .a3-list {
        grid-template-columns: 1fr;
    }

    .a3-header {
        flex-direction: column;
        align-items: stretch;
    }

    .a3-filters {
        flex-direction: column;
    }

    .a3-editor-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .a3-editor-toolbar-left,
    .a3-editor-toolbar-right {
        justify-content: center;
    }
}

@media print {
    body * {
        visibility: hidden !important;
    }

    .a3-print-view,
    .a3-print-view * {
        visibility: visible !important;
    }

    .a3-print-view {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: auto;
        background: #fff;
    }

    .a3-print-toolbar {
        display: none !important;
    }

    .a3-print-paper {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto 1fr;
        width: 100%;
        height: auto;
        border: 2px solid #000;
        page-break-inside: avoid;
    }

    .a3-print-paper .a3-paper-title {
        grid-column: 1 / -1;
        border-bottom: 2px solid #000;
        background: #f0f0f0 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .a3-print-paper .a3-paper-left {
        border-right: 1px solid #000;
    }

    .a3-print-paper .a3-section {
        border-bottom: 1px solid #ccc;
    }

    .a3-print-paper .a3-section-header {
        color: #000;
        font-weight: 700;
    }

    .a3-print-paper .a3-section-text {
        font-size: 11px;
        color: #000;
    }

    @page {
        size: tabloid landscape;
        margin: 0.5cm;
    }
}
