/* wikibucket.css -- styles wikibucket UI */

/* Quill's CSS (snow + quill-fixes.css) is editor-only and loads lazily in
   loadQuill() — into cascade layers — so a plain visit stays quill-free. */

/* Fixes */
[hidden] { display: none !important; }

/* Notice */
.notice {
    margin: 0 0 1rem;
    padding: .6rem .9rem;
    background: #fff8e1;
    border: 1px solid #f0d98a;
    border-radius: 6px;
    font-size: .92rem;
    color: #7a5b00;
}

/* Controls */
.controls {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    display: flex;
    gap: .5rem;
    z-index: 50;
}
.ctl {
    border: none;
    border-radius: 999px;
    padding: .55rem 1.1rem;
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,.18);
    background: #fff;
    color: #222831;
}
.ctl--edit, .ctl--save {
    background: #1b6ec2;
    color: #fff;
}
.ctl--edit:hover, .ctl--save:hover {
    background: #155a9c;
}
.ctl--cancel {
    background: #fff;
    color: #5b6b7c;
}
.ctl[disabled] {
    opacity: .6;
    cursor: default;
}

/* Login Modal */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    display: flex;
    align-items: center;
    justify-content:
	center; z-index: 100;
}
.modal-box {
    background: #fff;
    border-radius: 10px;
    padding: 1.5rem 1.75rem;
    width: min(92vw, 340px);
    box-shadow: 0 10px 40px rgba(0,0,0,.25);
}
.modal-box h2 {
    margin: 0 0 1rem;
    font-size: 1.2rem;
}
.modal-box label {
    display: block;
    font-size: .85rem;
    color: #5b6b7c;
    margin-bottom: .75rem;
}
.modal-box input {
    width: 100%;
    margin-top: .25rem;
    padding: .5rem .6rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 1rem;
}
.login-error {
    color: #c0392b;
    font-size: .85rem;
    margin: 0 0 .75rem;
}
.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: .5rem;
}
