* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body, html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #121212;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #e0e0e0;
}
#qa-app-root {
    display: flex;
    flex-direction: column;
    width: 100vw;
    height: 100vh;
}
#reviewer-toolbar {
    height: 48px;
    background: #1f1f2e;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
    border-bottom: 1px solid #333;
    z-index: 10;
    flex-shrink: 0;
}
.reviewer-btn-group {
    display: flex;
    align-items: center;
    gap: 8px;
}
.reviewer-label {
    font-size: 13px;
    font-weight: 600;
    color: #a1a1aa;
    margin-right: 4px;
}
button, .history-nav-btn {
    background: #3b82f6;
    color: #ffffff;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
    font-size: 13px;
}
button:hover:not(:disabled), .history-nav-btn:hover:not(:disabled) {
    background: #2563eb;
}
button:disabled, .history-nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
#btn-log-comment {
    background: #10b981;
}
#btn-log-comment:hover:not(:disabled) {
    background: #059669;
}
.counter-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #a1a1aa;
    margin-left: 8px;
}
.counter-input, .name-input {
    background: #27272a;
    color: #ffffff;
    border: 1px solid #3f3f46;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    outline: none;
    transition: border-color 0.2s, background-color 0.2s;
}
.counter-input { 
    width: 56px; 
    text-align: center; 
}
.name-input { 
    width: 180px; 
}
.counter-input:focus, .name-input:focus { 
    border-color: #3b82f6; 
}
.counter-input.invalid { 
    background-color: #7f1d1d !important; 
    border-color: #ef4444 !important; 
    color: #ffffff !important; 
}
.counter-input::-webkit-outer-spin-button, 
.counter-input::-webkit-inner-spin-button { 
    -webkit-appearance: none; 
    margin: 0; 
}
.counter-input[type=number] { 
    -moz-appearance: textfield; 
}
.frame-container {
    display: flex;
    flex: 1;
    width: 100vw;
    height: calc(100vh - 48px);
}
.frame-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #333;
    overflow: hidden;
    min-width: 0;
}
.frame-wrapper:last-child { 
    border-right: none; 
}
.frame-header {
    background: #27272a;
    color: #a1a1aa;
    padding: 6px 12px;
    font-size: 12px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-shrink: 0;
}
.frame-header-left { 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    overflow: hidden; 
    min-width: 0; 
}
.frame-header a { 
    color: #60a5fa; 
    text-decoration: none; 
    overflow: hidden; 
    text-overflow: ellipsis; 
    white-space: nowrap; 
}
.frame-header a:hover { 
    text-decoration: underline; 
}
.history-btn-group { 
    display: flex; 
    align-items: center; 
    gap: 4px; 
    flex-shrink: 0; 
}
.history-nav-btn { 
    padding: 2px 8px; 
    font-size: 11px; 
    background: #3f3f46; 
    color: #d4d4d8; 
}
.history-nav-btn:hover:not(:disabled) { 
    background: #52525b; 
}
iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: #ffffff;
}
#status-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 16px;
    font-weight: 500;
    color: #a1a1aa;
    pointer-events: none;
}