/* ========== Shared extras for the connected app ========== */
/* Loaded after the page's own CSS on every dashboard */

/* Blocked-account screen */
.gate {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 1.5rem;
    background: var(--bg);
    color: var(--text);
}

.gate-card {
    max-width: 440px;
    padding: 2.2rem;
    border-radius: var(--radius);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .9rem;
}

.gate-card i {
    font-size: 2.6rem;
    color: var(--primary);
}

.gate-card p {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: .92rem;
}

/* Loading and empty states */
.loading-note,
.empty-note {
    padding: 1.2rem;
    color: var(--text-muted);
    font-size: .9rem;
}

/* Plain form blocks used for topics, allocation and accounts */
.panel {
    padding: 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1.4rem;
    display: flex;
    flex-direction: column;
    gap: .9rem;
}

.panel h4 {
    font-size: .95rem;
    font-weight: 600;
}

.panel p.hint {
    font-size: .8rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.field {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    font-size: .8rem;
    font-weight: 500;
    color: var(--text);
}

.field input,
.field textarea,
.field select,
.inline-select {
    padding: .7rem .9rem;
    border-radius: 12px;
    border: none;
    outline: none;
    font: inherit;
    font-size: .9rem;
    color: var(--text);
    background: var(--surface);
    box-shadow: inset 2px 2px 4px var(--shadow-dark), inset -2px -2px 4px var(--shadow-light);
}

.field-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: .8rem;
}

.inline-select {
    padding: .5rem .8rem;
    font-size: .8rem;
    max-width: 170px;
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    align-items: center;
}

/* Row extras */
.row .tag+.tag,
.row .tag+.link-btn,
.row .link-btn+.link-btn {
    margin-left: .4rem;
}

.row.static {
    cursor: default;
}

.row .side {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.tag.danger {
    background: #c0392b;
    color: #fff;
}

.note-line {
    display: block;
    margin-top: .25rem;
    font-size: .78rem;
    color: var(--text-muted);
    font-style: italic;
}

.btn[disabled] {
    opacity: .55;
    pointer-events: none;
}

.link-btn.danger {
    color: #c0392b;
}

/* Student: document cards are clickable, hidden file input */
.doc-card {
    cursor: pointer;
}

.sr-file {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.reviewer-note {
    padding: .6rem .9rem;
    font-size: .8rem;
    color: var(--text-muted);
    border-top: 1px solid var(--glass-border);
}

/* Student: toggle rows in the feedback thread behave like buttons */
.act {
    cursor: pointer;
}

.act[disabled] {
    opacity: .6;
}

.topic-card {
    display: flex;
    flex-direction: column;
    gap: .3rem;
}

/* Landing: message under the Google buttons */
.auth-msg {
    min-height: 1.2rem;
    width: 100%;
    text-align: center;
    font-size: .8rem;
    line-height: 1.4;
    color: var(--text-muted);
}

.auth-msg.error {
    color: #c0392b;
}