/* Cornell notes workspace — in-app page */

.cornell-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;
}

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

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

.cornell-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;
}

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

.cornell-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);
}

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

.cornell-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;
}

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

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

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

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

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

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

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

.cornell-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;
}

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

.cornell-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;
}

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

.cornell-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);
}

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

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

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

.cornell-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);
}

.cornell-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;
}

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

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

.cornell-notes-summary-block {
    border-top: 2px solid rgba(61, 214, 140, 0.35);
}

.cornell-notes-summary-block .cornell-notes-area {
    min-height: 100px;
}

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

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