/* Outline notes — matches Cornell sheet layout and green theme */

.outline-notes-page .visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.outline-notes-page {
    background: #000000;
    min-height: calc(100vh - 56px);
    padding: clamp(1rem, 4vw, 2rem);
    box-sizing: border-box;
}

.outline-notes-inner {
    max-width: 960px;
    margin: 0 auto;
}

.outline-notes-back {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 1rem;
    padding: 0.35rem 0.5rem;
    background: transparent;
    border: none;
    color: #3dd68c;
    font-size: 0.95rem;
    cursor: pointer;
    font-family: inherit;
}

.outline-notes-back:hover {
    text-decoration: underline;
}

.outline-notes-page h1 {
    color: #f8fafc;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0 0 0.35rem 0;
    font-size: clamp(1.35rem, 4vw, 1.75rem);
}

.outline-notes-lede {
    color: #94a3b8;
    margin: 0 0 1.25rem 0;
    font-size: 0.95rem;
    line-height: 1.45;
}

.outline-notes-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    margin-bottom: 1rem;
}

.outline-notes-toolbar-btn {
    padding: 0.45rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(61, 214, 140, 0.45);
    background: linear-gradient(135deg, #2eb574 0%, #3dd68c 100%);
    color: #041208;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.outline-notes-toolbar-btn:hover {
    filter: brightness(1.06);
}

.outline-notes-toolbar-btn--secondary {
    background: transparent;
    color: #3dd68c;
    border-color: rgba(61, 214, 140, 0.45);
}

.outline-notes-toolbar-btn--secondary:hover {
    background: rgba(61, 214, 140, 0.1);
}

.outline-notes-toolbar-icon {
    font-weight: 800;
}

.outline-notes-save-status {
    font-size: 0.85rem;
    color: #94a3b8;
    flex: 1 1 auto;
    min-width: 120px;
}

.outline-notes-save-status.is-error {
    color: #f87171;
}

.outline-notes-save-status.is-ok {
    color: #3dd68c;
}

.outline-notes-sheet {
    border: 1px solid rgba(61, 214, 140, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

.outline-notes-title-row {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(61, 214, 140, 0.15);
    background: rgba(0, 0, 0, 0.25);
}

.outline-notes-title-input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.5rem 0.65rem;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(15, 23, 42, 0.6);
    color: #f1f5f9;
    font-size: 1rem;
    font-family: inherit;
}

.outline-notes-title-input::placeholder {
    color: #64748b;
}

.outline-notes-title-input:focus {
    outline: none;
    border-color: rgba(61, 214, 140, 0.55);
    box-shadow: 0 0 0 2px rgba(61, 214, 140, 0.15);
}

.outline-notes-grid {
    display: grid;
    grid-template-columns: minmax(120px, 30%) 1fr;
    min-height: min(52vh, 420px);
}

.outline-notes-panel {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.outline-notes-panel--topic {
    border-right: 1px solid rgba(61, 214, 140, 0.2);
}

.outline-notes-panel-label {
    flex-shrink: 0;
    padding: 0.5rem 0.75rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #94a3b8;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(61, 214, 140, 0.12);
}

.outline-notes-area {
    flex: 1;
    width: 100%;
    box-sizing: border-box;
    padding: 0.65rem 0.75rem;
    border: none;
    resize: vertical;
    min-height: 140px;
    background: transparent;
    color: #e2e8f0;
    font-size: 0.95rem;
    line-height: 1.5;
    font-family: inherit;
}

.outline-notes-area::placeholder {
    color: #64748b;
}

.outline-notes-area:focus {
    outline: none;
    background: rgba(15, 23, 42, 0.25);
}

.outline-notes-area--topic {
    min-height: min(36vh, 280px);
}

.outline-notes-lines-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid rgba(61, 214, 140, 0.1);
    background: rgba(0, 0, 0, 0.15);
}

.outline-notes-items {
    flex: 1;
    overflow: auto;
    min-height: 140px;
    padding: 0.65rem 0.75rem 1rem;
    box-sizing: border-box;
}

.outline-notes-empty {
    color: #64748b;
    font-size: 0.9rem;
    margin: 0;
    padding: 0.35rem 0;
    line-height: 1.45;
}

.outline-notes-item {
    margin-bottom: 0.35rem;
}

.outline-notes-item--nested {
    margin-left: 0.25rem;
    padding-left: 0.65rem;
    border-left: 2px solid rgba(61, 214, 140, 0.22);
}

.outline-notes-row {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    padding: 0.2rem 0;
}

.outline-notes-prefix {
    flex: 0 0 auto;
    min-width: 2.5rem;
    padding-top: 0.45rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.78rem;
    color: #64748b;
    text-align: right;
}

.outline-notes-drag-handle {
    flex: 0 0 auto;
    min-width: 1.5rem;
    padding-top: 0.45rem;
    cursor: grab;
    color: rgba(61, 214, 140, 0.85);
    font-size: 0.9rem;
    line-height: 1;
    user-select: none;
}

.outline-notes-drag-handle:active {
    cursor: grabbing;
}

.outline-line-input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.45rem 0.5rem;
    border-radius: 6px;
    border: 1px solid transparent;
    background: rgba(15, 23, 42, 0.2);
    color: #e2e8f0;
    font-size: 0.95rem;
    line-height: 1.45;
    font-family: inherit;
}

.outline-line-input::placeholder {
    color: #64748b;
}

.outline-line-input:focus {
    outline: none;
    border-color: rgba(61, 214, 140, 0.35);
    background: rgba(15, 23, 42, 0.35);
}

.outline-notes-row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    flex: 0 0 auto;
    padding-top: 0.2rem;
}

.outline-notes-mini-btn {
    padding: 0.2rem 0.45rem;
    border-radius: 6px;
    border: 1px solid rgba(61, 214, 140, 0.35);
    background: rgba(0, 0, 0, 0.2);
    color: #cbd5e1;
    font-size: 0.75rem;
    cursor: pointer;
    font-family: inherit;
}

.outline-notes-mini-btn:hover {
    background: rgba(61, 214, 140, 0.1);
    border-color: rgba(61, 214, 140, 0.5);
    color: #e2e8f0;
}

.outline-notes-item--dragging .outline-notes-row {
    opacity: 0.65;
}

.outline-notes-item--drop-target {
    outline: 1px dashed rgba(61, 214, 140, 0.55);
    border-radius: 8px;
}

@media (max-width: 640px) {
    .outline-notes-grid {
        grid-template-columns: 1fr;
    }

    .outline-notes-panel--topic {
        border-right: none;
        border-bottom: 1px solid rgba(61, 214, 140, 0.2);
    }
}
