/* Small additions to the existing Design.css, not a replacement. */
[hidden] { display: none !important; }
#quill-status {
    position: fixed; bottom: 0; right: 0; left: 0; z-index: 4;
    display: flex; align-items: center; justify-content: flex-end;
    gap: var(--padding-s, 8px); padding: 3px 12px;
    background: var(--color-surface, #050505); color: var(--color-text2, #ddd);
    font-size: 12px; border-top: 1px solid var(--color-surface3, #191919);
}
#quill-message { overflow-wrap: anywhere; }
#quill-message.error { color: var(--color-red, #ed333b); }
#Refresh { padding: 5px 10px; white-space: nowrap; }
#Refresh:disabled { opacity: .4; cursor: default; }
#Category[contenteditable] { outline: none; cursor: text; user-select: text; text-overflow: clip; border-bottom: 1px solid var(--color-blue, #3584e4); }
#cat-popup { background: var(--color-surface2, #111113); z-index: 3; }
#filter-popup button.chosen { background: var(--color-surface4, #1e1e1e); }
.job-status.pending { background: var(--color-yellow, #f8e45c); }
.job-status.done { background: var(--color-green, #26a269); }
#Customer { width: min(18vw, 210px); min-width: 0; }
#Name { min-width: 0; }
#attachment-items { width: min(100%, 550px); }
.attachment-row { display: flex; align-items: center; width: 100%; }
.attachment-row .Attachment { min-width: 0; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.attachment-remove { padding: var(--padding-s, 8px); }
.attachment-remove:hover { background: var(--color-red, #ed333b); }
#upload-attachments { align-self: center; }
.attachments-list.opened { overflow-y: auto; }
.job-open { min-height: 0; }
.job-open textarea { flex: 1; min-height: 0; height: auto; }
.job-actions, .job-attachments { flex-shrink: 0; }
#active-jobs { overflow-y: auto; }
.job-list { min-height: 0; }

/* Authorization screen: the workspace remains hidden until unlocked. */
#auth-screen {
    position: fixed; inset: 0; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    background: var(--color-surface, #050505);
    color: var(--color-svg, #e9e9e9);
    font-family: var(--font-mono, monospace);
}
#auth-form {
    width: min(340px, calc(100vw - 32px));
    display: flex; flex-direction: column; gap: var(--padding-s, 8px);
}
.auth-input-row {
    display: flex; align-items: stretch;
    background: var(--color-surface2, #111113);
    border: 1px solid var(--color-surface3, #191919);
}
.auth-input-row:focus-within { border-color: var(--color-blue, #3584e4); }
#api-key {
    flex: 1; min-width: 0; box-sizing: border-box;
    padding: var(--padding-s, 8px) var(--padding, 15px);
    font: inherit; color: inherit;
}
#auth-submit {
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; padding: var(--padding-s, 8px) var(--padding, 15px);
    background: var(--color-blue, #3584e4); color: #fff;
}
#auth-submit:hover { background: var(--color-blue2, #62a0ea); }
#auth-submit:focus-visible { outline: 2px solid var(--color-blue2, #62a0ea); outline-offset: 2px; }
#auth-submit:disabled, #api-key:disabled { opacity: .55; cursor: default; }
#auth-message { font-size: 12px; min-height: 1.3em; overflow-wrap: anywhere; color: var(--color-text2, #ddd); }
#auth-message.error { color: var(--color-red, #ed333b); }
